The repository or configuration that created this release differ from a previous release. View details.
Delta CLI
Source upload
delta deploy freezes working files and builds their source-history commit with
pure-Python Dulwich; no Git executable or local repository is required. The CLI
gets one signed create-only bundle PUT, never a source-prefix token. The bundle
contains every current tree/blob plus the new commit. A concurrent deployment
can move the parent: the CLI reparents and reuploads, with bounded retries, without
rebuilding wheels. Limits and environment-file exclusions are unchanged.
The API verifies the bundle before accepting the history edge. Existing snapshot and Git-push clients keep their protocols; a new CLI requires a server advertising CLI-direct support in its requested prepare response. See the source-history protocol.
Durable per-step execution budgets are declared in pyproject.toml; see
step timeouts for precedence, runtime limits and rollout.
Delta CLI is a command line interface for the Delta service.
This repository contains the Delta command router, version output, and browser-based CLI authentication.
Features
- Built-in help via
delta --helpand per-command--help - Version output via
delta versionanddelta --version - OAuth login with Authorization Code + PKCE
- One-shot
127.0.0.1:8400callback server or an optional Console callback handoff - Session storage in
~/.trampoline-ai/delta/auth.jsonwith owner-only permissions - Automatic bearer authentication for service API commands
Project selectors
--project accepts a stable ID beginning with proj_ or an exact project name
in the selected organization. Quote names containing spaces, for example
delta flows list --org ORG --project "Daily reports". Names are resolved through
the same paginated API as delta projects list; unknown names fail with
no project named NAME in ORG; see delta projects list. Duplicate names fail with
the matching IDs so you can select one explicitly. IDs bypass the lookup, including
legacy proj_ IDs without a project record. Configuration and DELTA_PROJECT
selectors follow the same rule.
This applies to deploy, runs, flows, deployments, schedules, and webhooks. For env commands,
--project remains a boolean scope flag; --project-id accepts an ID or name.
Terminal UI (delta tui, opt-in)
uv tool install trampoline-delta
# In the workflow project, add avalanche-ai>=0.15.0 and run uv sync.
delta tui --org ORG --project "Daily reports"
delta tui --org ORG --project PROJECT --flow hello --run RUN --read-only
The CLI has no [tui] extra and its base dependency closure contains no
Avalanche, PredictRLM, DSPy, LiteLLM or Textual. delta tui launches the
project's <project root>/.venv/bin/python, or the explicit --python PATH.
It requires avalanche-ai>=0.15.0, TuiExtensions v1 and the revamped store
contract in that interpreter. A subprocess preflight fails before authentication
or HTTP if these are missing; add the dependency to the project and run uv sync.
The CLI never installs, syncs or relocks on TUI launch. There is no legacy fallback.
The standalone provider/launcher ships in the Delta wheel and is loaded by absolute
path; Delta need not be installed in the project. Credentials pass only through the
child environment, never its argv. The terminal is inherited, child exit codes
propagate, and Ctrl-C/teardown terminates its process group.
Authentication, DELTA_TOKEN, upward delta.toml discovery, org selection and
project ID/exact-name resolution are shared with the other commands. Conflicting
flow/run links are refused. Use the command palette for provider panels and
explicit actions. Catalogs pin the finalized deployment used to discover them;
unknown historical deployment/flow/timestamps remain unknown in the inspector.
- Project history is paged; existing APIs without snapshot revisions expose incomplete loaded windows, not a fictitious stable full-history snapshot.
- Selecting a run loads its detail once, then reduces its contiguous fact SSE.
Resume uses that run's
Last-Event-ID, never another run's maximum sequence. There is no periodic resource GET or network health/ping loop. A stream reset rereads selected detail and installs its hydrated nodes/error in the baseline before ACK; a terminal frame reuses the last fact ID, not a new data position. Covered pre-cut states are not replayed over that baseline, and queued detail updates are released once. Missing optional project events keeps project scope stale but does not prevent selected-run fact reconciliation. - Observation reads are auxiliary: any non-2xx (including 503
observation_integrity,observation_unavailableorobservation_pending) leaves the fact stream and baseline intact. Log/trace detail showsobservation unavailable: <reason>without inventing trace/evidence or changing execution status. Failed attempt identities are cached; only node selection or explicit refresh permits a reread. There are no automatic observation retries, including whenRetry-Afteris supplied. A known CONSOLE-owned read-before-archive race can briefly returnobservation_integrity; this client does not read spill storage or hide a failed completion-log/trace proof. - Project notices, live activity, original inputs, effective capabilities and org discovery are negotiated. Unsupported panels/streams are hidden; Server availability reports “not available on this server.” The shared CONSOLE project-feed adapter follows its frozen contract, including opaque cursors. M1 notices concern runs only. Catalog/schedule/env reads refresh on selection, reset/reconnect or explicit panel refresh, never on a timer.
--read-only, or lack of server-verifiedrun:create, disables all backend mutations. Without a capabilities endpoint, actions remain unavailable with a reason; decoded JWT claims never grant permission. Downloads separately need verifiedstorage:read, an explicit destination and confirmation.- Start previews schema-validated input and pins deployment + SID. Retry the same
intent and exact payload after an uncertain result or
429 run_rate_limited;Retry-Afteris shown, with no automatic replacement intent. Cancel retains its command ID; 202 means requested, not terminated. Only genuinely resolvable legacy waits are offered. Schedules have disable only, never enable/toggle. - Env inspection retains names/flags/provenance only and immediately discards values. Observations pin node/attempt/auth; absent/truncated traces are not manufactured. Live activity and retained terminal traces are separate surfaces.
Local headless proof
make dev, then make dev-hello ARGS='--tui', extends the existing real Compose
hello fixture with Textual Pilot navigation, a live DAG through fact SSE, a strict
single selected-detail GET assertion, resize, and read-only checks. The Pilot runs
through the wheel's absolute-path tui_entry.py loader in the fixture's
project .venv, with -I so neither the project nor scripts/dev/runtime.py
can shadow Avalanche's packages. The fixture uses published Avalanche 0.15.0
without wheel/index overrides. Check other lanes'
Compose stacks and use an owned project name before starting it. The fixture also
deploys tui-agent: two deterministic JSON DummyLM actions (plan/code), with
no external LM calls. The Pilot opens its native agent trace inspector and checks
hydrated iteration code/output and retained usage. tui-failing-agent deliberately
uses incompatible DummyLM output to exhaust three real agent attempts. The Pilot
forces one provider reset at the first retry, lets the run seal while baseline
loading is paused, then checks a complete hydrated failed baseline, exact ACK,
once-only buffered detail delivery, failed DAG/history, and the native node-detail
error. This is a controlled reset cut, not a claim to reproduce every spontaneous
transport failure. Existing success-path request-count assertions are unchanged.
Cancel uses the provider when
capabilities permit it; otherwise the authorized fixture client performs the write
and the Pilot asserts its cancel control is disabled. New-stream checks that lack
server support are reported NOT RUN, not counted as passing. Allow-all Compose is
not a Clerk permission proof.
Schedules (/v1)
Declare a flow's schedule in code with @ava.workflow(cron="..."); it follows the
flow's current deployment (deploy, rollback and promote move it). delta schedules list, get and disable inspect and stop schedules; there is no create command.
See scheduled flows for cron semantics,
permissions and restart/missed-window behavior.
Runs (/v1)
delta runs starts and inspects runs of deployed flows using the committed merged
OpenAPI contract. Use delta runs --help for the seven run commands.
Start a deployed flow, then follow the returned run ID:
delta deploy . --org ORG --project PROJECT
RUN=$(delta runs start --flow hello --input '{"name":"Ada"}' \
--org ORG --project PROJECT)
delta runs events "$RUN" --org ORG --project PROJECT
delta runs outputs "$RUN" --org ORG --project PROJECT --json
start uses the flow's current deployment (the newest finalized one unless
delta deployments promote or rollback set another); use --deployment D to pin
one. --input must be a JSON object. The supplied --sid S or a fresh cli-<hex>
SID is printed to stderr before submission. Retry with the
same --sid and input/deployment after a lost response; no automatic retry is
made. Human stdout is only the run_id; --json prints the exact generated create
response (201 accepted or 200 existing replay).
delta runs get RUN --org ORG --project PROJECT --json
delta runs outputs RUN --org ORG --project PROJECT
delta runs artifacts RUN --org ORG --project PROJECT
delta runs start --flow process_document --input '{}' --file document=./report.pdf \
--org ORG --project PROJECT
delta runs download RUN --out ./downloads --org ORG --project PROJECT
delta runs download RUN --path .outputs/STEP/ATTEMPT/INVOCATION/FIELD/result.pdf \
--out ./downloads --org ORG --project PROJECT
# Legacy single-file form remains available:
delta runs download RUN INV reports/result.txt --dest ./result.txt \
--org ORG --project PROJECT
delta runs cancel RUN --cmd-id retry-stable-id --org ORG --project PROJECT
delta runs events RUN --last-event-id 12 --max-reconnects 3 \
--org ORG --project PROJECT --json
All commands use existing delta login, DELTA_TOKEN/--token, local project/user
config and DELTA_ORG/DELTA_PROJECT resolution. Explicit org/project flags work
outside a local checkout. The default API host is
https://api.avalanche.run, the authenticated /v1 release host. Until it is
bound to the /v1 gateway, point commands at https://v2-gateway-staging.avalanche.run
with --api-url or DELTA_API_URL.
API URL precedence (highest first): --api-url, DELTA_API_URL, project
delta.toml api_url, user ~/.config/trampoline-ai/delta/config.toml api_url,
then the default.
--api-url accepts an origin or its /v1 base. --json
prints generated model JSON without filling absent fields; events are JSON lines.
Starting a run through the selected edge project establishes its binding. Reads of a
run not bound to that project report 404 run_not_found, including cancel/events
before the rollout gate. Outputs/artifacts/download are live. Until runtime R16-d,
cancel/events report 503 durable_runs_upstream_unavailable as not yet available
on this deployment, with exit status 1. Other errors preserve the edge {detail}
and runtime/new-route {reason} families.
Cancel prints its supplied or once-generated cmd_id to stderr, does not retry,
and tells you to retry with the SAME --cmd-id on ambiguous outcome 503. A 202
records the command; it does not prove child termination. SSE ignores heartbeat
comments, checks contiguous fact IDs, resumes exclusively after the last delivered
ID, and stops on terminal/stream_end/stream_error. Reconnects are bounded by a total
count (default 3); stream_error exits 1. Requests have 15-second HTTPX budgets;
SSE reads allow 60 seconds, above the 45-second upstream idle bound.
Download gets a JSON descriptor from the edge, then uses its exact signed URL and headers directly against storage, without the edge bearer. Bytes must match the immutable file size and SHA-256 before exclusive atomic publication. Existing files/symlinks and racing destination creators are never overwritten. Destination parents must exist. JSON download output is the descriptor and can contain a signed URL: treat that output as sensitive.
Generation and opt-in evidence
From the monorepo root:
uv run --frozen --package trampoline-delta python apps/cli/tools/generate_v1_client.py --write
uv run --frozen --package trampoline-delta python apps/cli/tools/generate_v1_client.py --check
uv run --frozen python apps/cli/tools/e2e_durable_run.py --help
datamodel-code-generator==0.83.0 generates the reachable component closure for
Pydantic v2/Python 3.13. Narrow, schema-derived post-processing preserves conditional
and composition constraints with Draft 2020-12 entrypoint validators, PEP 695
aliases for hashable dictionary keys, Pydantic recursive JsonValue, compiled regex
patterns, and unchanged URI/date-time strings. No DTO fields are handwritten.
--check regenerates in memory and verifies frozen/merged/overlay hashes against
spec bytes, info fields and apps/api/openapi/SHA256SUMS. Builds verify committed
module digests and spec identities without requiring codegen at wheel runtime;
the generated models, constants and digest inventory ship in the wheel.
The E2E driver requires --base, --org, --project, --run, --wrong-project
and --evidence; supply --binding/--path together or auto-select the first file.
It uses only DELTA_TOKEN, the generated models and the CLI client, compares
outputs at equal watermarks, verifies direct-storage bytes, and requires the same
run to return 404 run_not_found under the wrong project for all six exact routes.
Default evidence expects gated cancel/events. --runtime-enabled mutates the
selected owned fixture by cancelling it and observes incremental SSE (30-second /
20-frame smoke bound). Evidence includes candidate identity, all three spec hashes,
rerun arguments, status observations and cleanup, without payloads, bearer tokens,
signed URLs/query strings or headers. Do not run against a live host without
explicit fixture authorization.
Requirements
- Python 3.13+
- uv
Installation
From this directory, install the CLI in editable mode:
uv tool install -e .
You can also run the CLI directly during development:
uv run --with-editable . delta --help
uv run --with-editable . delta version
Authentication Setup
The CLI uses a public OAuth application. Do not use secret keys for interactive CLI user login.
The local session is stored in ~/.trampoline-ai/delta/auth.json. Delta creates the
containing directory with mode 0700 and writes the credential file atomically with
mode 0600.
Create an OAuth application in the same auth project as ../console:
- Loopback redirect URI (a browser opened on the same machine):
http://127.0.0.1:8400/callback - Console callback URI (any other browser; the response is pasted into the CLI):
https://cloud.avalanche.run/oauth/callback - Public client: enabled
- PKCE required: enabled
- Scopes:
profile email offline_access user:org:read
A Clerk administrator must register both redirect URIs: delta login picks one per
sign-in, depending on whether it can open a browser on the same machine.
The production issuer, public OAuth client ID, and callback port are built in. Sign in without configuration:
delta login
For another deployment, override the public auth configuration explicitly:
export DELTA_AUTH_ISSUER_URL="https://your-auth-issuer.example.com"
export DELTA_AUTH_CLIENT_ID="your_oauth_client_id"
For local development in this monorepo, the CLI can also derive the issuer from
DELTA_AUTH_PUBLISHABLE_KEY.
Command Overview
delta deploy
Deployment discovery runs only in the project's interpreter, not the CLI's
installation. Install avalanche-ai==0.17.3 and your workflow dependencies in the
project, then run uv sync there before deploying. The CLI never syncs, installs,
or relocks the project. The CLI wheel itself has no Avalanche, DSPy, PredictRLM,
or LiteLLM dependency.
The default interpreter is .venv/bin/python (.venv\Scripts\python.exe on
Windows). For a nonstandard environment, set python = "path/to/venv/bin/python"
in the root of delta.toml, or DELTA_PROJECT_PYTHON (takes precedence). Relative
paths are project-root-relative. DELTA_DISCOVERY_TIMEOUT sets the positive,
finite timeout in seconds (default 30), including imports, builders and metadata.
User workflow code executes in a subprocess, not a security sandbox.
The first delta deploy in a folder without delta.toml registers the project and
writes delta.toml (same path as delta init; a non-enabled org is refused before
anything is written). delta projects rename "<name>" changes the display name;
deploy never does. Unlike deploy, delta init also adds
[tool.uv] exclude-dependencies = ["litellm"] to
pyproject.toml, preserving existing exclusions and formatting. Commit that
change and re-sync the project yourself; it does not change pip wheel metadata.
Build and upload frozen source and the wheelhouse, then finalize the deployment
through /v1. Deploy prints the deployment ID and finalized state; --json keeps
the deployment, canonical source, flows, bundle, finalize request and diagnostics.
Source includes optional local commit/dirty metadata, never credential-bearing remote URLs.
Deploy needs no local Git repository, Git executable or remote helper. Dirty and
unborn repositories work; --allow-dirty remains an accepted deprecated no-op.
The CLI freezes project-local working files once, respecting root/nested
.gitignore and hard excludes (.git, .delta, virtualenvs, caches, build outputs
and dotenv files). The explicit --env-file and its aliases are excluded even if
tracked. Discovery and wheel building run from that frozen copy. Intake rejects
selected links/non-regular files, nested repositories, collisions and limit
violations (20,000 files, 128 MiB expanded, 25 MiB per file).
The next release requires this CLI-direct protocol. Older git-push and snapshot-upload
CLIs are refused at prepare with HTTP 426 cli_upgrade_required; run
uv tool upgrade trampoline-delta. Existing stored deployments remain readable
without migration. Deploy sends only source_direct tree metadata and uploads
one create-only Dulwich bundle; the API no longer builds commits.
VCS dependencies must be published as locked wheels; VCS version backends require static version configuration. See the accepted design.
delta deploy . --org ORG --project PROJECT
delta deploy . --org ORG --project PROJECT --env-file .env.production --json
delta deployments list --org ORG --project PROJECT
delta flows list --org ORG --project PROJECT
delta flows get FLOW --org ORG --project PROJECT --deployment-id DPL
Without --deployment-id, flow list/get show each flow at its current
deployment: the one new runs, schedule firings and webhooks use
(GET .../flows/{slug}/current). After a rollback that is the older deployment.
flows list enumerates the newest finalized deployment's flows (newest
created_at, deployment ID breaks ties) and reads each flow's pointer; flows get
text also prints Current: when --deployment-id pins another deployment. Flow
requests always send an explicit deployment ID. Pinned human continuations include
--deployment-id; keep it when using a JSON next_cursor. An empty deployment
catalog reports an error asking you to deploy.
deployments list and deployments get mark which flows each deployment is
current for: a third text column (current: daily,weekly or -), Current for:
on get, and a current_for list of flow slugs added to each --json deployment
object. Each flow has exactly one current deployment.
Runs target finalized deployments; /v1 has no "live" deployment or set-live step.
Dependencies
Deploy includes the project's frozen uv.lock dependency closure as verified
runtime-target wheels. Runtime-provided packages are omitted only at matching
versions; conflicts print the complete [tool.uv] constraint-dependencies fix.
Use the version your runtime reports, then uv lock and commit the result.
See Flow dependencies for the constraint block,
binary-wheel/system-library limits and the imageio-ffmpeg==0.6.0 example.
delta version
Shows the installed Delta CLI version.
delta auth login
Signs in to Delta through a browser. delta login is the same command.
delta login
The CLI picks how the sign-in comes back:
- Browser on this machine. On macOS, Windows, or Linux with a graphical display,
and not in an SSH session, it opens your browser and receives the callback on the
registered loopback port
8400. Pass--callback-port 0for a random loopback port when another provider supports RFC 8252 loopback redirects. - Any other browser. Over SSH (
SSH_CONNECTION,SSH_CLIENTorSSH_TTYset), on Linux withoutDISPLAYorWAYLAND_DISPLAY, when no browser can be started, or with--no-browser, it prints a sign-in URL and waits at a hidden prompt. Open the URL in any browser, for example on your laptop, finish sign-in, select Copy response on the Delta Console callback page, and paste it at the prompt.
If the CLI opened a browser but nothing appeared (for example a forwarded browser on another machine), press Enter while it waits to switch to the paste prompt with a new sign-in URL.
The paste flow needs a terminal. With no terminal to read from (CI, or an agent
without a TTY) the CLI fails immediately instead of waiting; set DELTA_TOKEN for
automation.
The pasted response is bound to this sign-in attempt (PKCE verifier and state held in memory, issuer checked). It is not echoed or logged. Never copy, paste, log, or share the raw browser callback URL, and do not paste the response into logs or chat.
Paste sign-in requires Delta CLI 0.1.6 or newer. Older CLI releases cannot complete
this handoff; upgrade the CLI and start sign-in again if the Console reports that an
upgrade is required. --manual-callback is a deprecated, hidden alias of
--no-browser.
delta auth status
Shows whether you are signed in.
delta auth whoami
Shows the signed-in account.
delta auth logout
Signs out of Delta.
delta --help
Shows available commands and global options.
Service API commands automatically load and refresh the signed-in session from
~/.trampoline-ai/delta/auth.json. An explicit --token wins, then a nonblank
DELTA_TOKEN, then the saved session; the user TOML configuration rejects plaintext
tokens.
The API enforces the selected Clerk organization and its role permissions. The signed-in user must belong to the requested organization, and that role must include the Delta action used by the service command.
Listing pages
Collection commands accept --limit (default 100, maximum 500) and --cursor.
Human output prints the next continuation; list JSON is now an
{items,next_cursor} envelope. HttpDeploymentApi returns a list-compatible
ApiPage exposing next_cursor; iterating it makes no additional requests.
Live paging continues after the last returned item. Refresh without a cursor to see newer items that sort before that position. Filtered pages may contain no items and still have a continuation.
Webhook URLs now include organization, project and flow scope:
/v2/hooks/orgs/ORG/projects/PROJECT/flows/FLOW/[CONFIGURED_PATH/]TOKEN.
Use the complete URL returned by the API; opaque-only URLs are removed.
Metadata
Release files for trampoline-delta 0.19.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trampoline_delta-0.19.4.tar.gz | 307.4 kB | With provenance | Details for trampoline_delta-0.19.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trampoline_delta-0.19.4-py3-none-any.whl | Python 3 | none | any | Details for trampoline_delta-0.19.4-py3-none-any.whl |
Total release size: 597.8 kB
Release files / trampoline_delta-0.19.4.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | trampoline_delta-0.19.4.tar.gz |
|---|---|
| Size | 307.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf93db79e9789572c115b637d1e5f55365892e2331d0844a0ad3ac06e44ad4cf
|
|
BLAKE2b-256 checksum How to use checksums |
5de553a4ef48662773e765a70b498dd499acfff0c43e2f8053297ac7036c0a54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / trampoline_delta-0.19.4-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | trampoline_delta-0.19.4-py3-none-any.whl |
|---|---|
| Size | 290.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acf2d97f4698d32c907d0dc6b850ac931528fa290d860fa0859a16db613d96fd
|
|
BLAKE2b-256 checksum How to use checksums |
15ca24e94663f87866532dcd9143a11db11d816f979c3d1580424f9207380e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for trampoline-delta 0.19.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The configuration that created this release differs from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Attestation for trampoline_delta-0.19.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.