iteration-cli
v0.22.0
Published
This package owns the `[email protected]` product executable. Clerk sign-in, workspace enrollment and automatic expansion, the default Iteration endpoint, commands/status UI, history progress, friction summaries, Codex/Cursor billing clients and `itera
Readme
Iteration CLI (private source)
This package owns the [email protected] product executable. Clerk sign-in,
workspace enrollment and automatic expansion, the default Iteration endpoint,
commands/status UI, history progress, friction summaries, Codex/Cursor billing
clients and iteration mcp, which gives connected agents the workspace's tools,
live here, not in the public Trace Vault repository.
Running iteration connect again reuses the computer's saved workspace and agent
credentials and reopens project choices. Several connected workspaces require a
choice in the terminal, or an explicit --workspace in automation. Existing
source connections are verified and reused; only missing sources are expanded.
Server failures stop setup without starting sign-in, and a revoked source needs
its own explicit sign-in. Reconnecting preserves history and sharing choices.
The bundled collector requires Node.js 22.22.0 or later. Keep collector data on a local filesystem; the shared API owns its single-writer lock and recovery contract.
Every message a person reads in the terminal is built with src/terminal.ts, so
commands share one look: a ◆ Iteration header, indented sections, bold for
what matters and dim for secondary detail, and color only where it carries
meaning (green ✓, yellow !, red ✗, and status dots). Prose wraps at the window
width up to 80 columns. Piped output, NO_COLOR and consoles without Unicode
get plain text and symbols, and output that programs read (version,
self-check, hooks and background logs) stays unstyled.
Reusable native collection is imported from the supported root API of the public
iteration-trace-collector workspace package. Do not copy its collectors or
deep-import public source. Product wire contracts come from the private
iteration-collector-contracts; public event/source/capture contracts come from
iteration-trace-contracts.
The build bundles three self-contained entries: dist/cli.js,
dist/cursor-hook-entry.js, and dist/launcher.js, without runtime npm
dependencies. The package name/version, npm update target, six-hour rollout,
sha512 verification, candidate self-check, native launchd/systemd/Windows Job
Object supervision, runtime trial/rollback, stable launcher and
~/.config/iteration state paths retain the existing deployed contract. Public
collector/library versions do not influence the private updater's version lookup.
Standalone trace-vault remains in @useiteration/trace-vault-collector; this
package installs only iteration.
From the private repository root after workspace initialization:
pnpm --filter "iteration-cli..." --recursive --workspace-concurrency=4 run build
pnpm --filter iteration-cli pack --pack-destination /tmp/iteration-cli-pack
node packages/cli/smoke.mjs /tmp/iteration-cli-pack/iteration-cli-0.19.1.tgzThe package smoke installs the tarball offline under a disposable home and checks help/version, self-check, update settings, runtime adoption, launcher resolution, real Cursor queue capture and repeated-start rollback to the previous package. It installs no native service and does not contact the Iteration backend or npm registry. Real OS service registration still needs platform-specific verification.
