@the-vibe-company/armada 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +21 -8
  2. package/dist/armada.js +263 -208
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -17,13 +17,21 @@ npm install -g @the-vibe-company/armada # then: armada status
17
17
 
18
18
  `armada --version` prints the installed version, `armada --help` every command and `armada <command> --help` one. When a command cannot continue, it prints the reason and a `Next:` line with the command to run, for example `armada init` in a repository without `armada.toml`. Each release is listed on [GitHub releases](https://github.com/The-Vibe-Company/armada/releases) with its changelog.
19
19
 
20
- ## Try it
20
+ ## Set up
21
+
22
+ 1. **Create the organization.** Sign in to Armada ([armada.thevibecompany.co](https://armada.thevibecompany.co), or [your own deployment](#watch-the-fleet-dashboard)) with GitHub, create your organization and invite the others.
23
+ 2. **Enter the keys** once, on Organization > Keys: the Linear API key and the Turso access. They stay sealed in Armada: no laptop or runtime needs them ([Keys](#keys)).
24
+ 3. **Sign in from the terminal**: `armada login`, then approve the code in the browser. A headless coordinator sets `ARMADA_API_KEY` to an organization API key instead ([Sign in from a terminal](#sign-in-from-a-terminal)).
25
+ 4. **Set up the repository**: `armada doctor` lists what it lacks, `armada init --program-root ABC-1` opens one pull request that adds it all ([Set up a repository](#set-up-a-repository)); merge it.
21
26
 
22
27
  ```sh
23
- armada auth login # once per machine: asks for the missing keys, input hidden
28
+ armada login
29
+ armada init --program-root ABC-1
24
30
  armada status # or: armada status --json
25
31
  ```
26
32
 
33
+ Workers then need no key either: each one's launch message carries a one-time token, and Armada gives it its keys ([Launch a worker](#launch-a-worker-coordinators)). Without an Armada that keeps keys (a self-hosted one without accounts, CI), set the keys in the environment or run `armada auth login` ([Keys](#keys)).
34
+
27
35
  `armada status` reads the `armada.toml` of the current repository (or the nearest parent directory) and prints:
28
36
 
29
37
  - **In flight**: tickets an agent holds, with their phase, runtime, last report and pull request. A worker with no report (an `armada report` event in Turso, an `Agent status:` comment or its claim) for longer than `policy.silence_minutes` is flagged `silent`, unless it is waiting on a human (`awaiting-approval`, `blocked`, `ready-to-merge`). A ticket that never had a report falls back to its last sign of life (ticket edit, comment or pull request update).
@@ -45,9 +53,11 @@ armada init --program-root ABC-1 # one pull request that adds it all
45
53
  - the Armada skills (`armada-coordinator`, `armada-worker`, `armada-runtime-conductor`) are in `.agents/skills`, linked from `.claude/skills`, recorded in `skills-lock.json` (the [`npx skills`](https://github.com/vercel-labs/skills) format), and match this version of Armada;
46
54
  - `.conductor/settings.toml` has a `[scripts] setup` command;
47
55
  - `.gitignore` ignores `plans/ship-pr-dev/`;
48
- - the Linear label groups `Agent phase` and `Agent runtime` exist with every value (needs `LINEAR_API_KEY`).
56
+ - this terminal is signed in to Armada, and to which organization: without a sign-in, `armada brief` gives workers no launch token, so each would need the keys in its environment;
57
+ - no key is left in the credentials file that Armada now gives this terminal (`armada auth logout` removes them, the sign-in stays);
58
+ - the Linear label groups `Agent phase` and `Agent runtime` exist with every value (needs a Linear key, from Armada or `LINEAR_API_KEY`).
49
59
 
50
- Each problem is an error or a warning, with its fix. A missing skill is an error: workers cannot run without it. A skill that differs from this Armada version, or a missing ignore line, is a warning. Doctor exits 1 when there is an error. `--json` prints the same report as JSON.
60
+ Each problem is an error or a warning, with its fix. A missing skill is an error: workers cannot run without it. A skill that differs from this Armada version, a missing ignore line, a missing sign-in or a leftover key is a warning. Doctor exits 1 when there is an error. `--json` prints the same report as JSON.
51
61
 
52
62
  `armada init` fixes everything doctor reports in one go:
53
63
 
@@ -55,7 +65,7 @@ Each problem is an error or a warning, with its fix. A missing skill is an error
55
65
  2. It builds the missing or outdated files on a fresh checkout of the default branch, commits them on the branch `armada/init-<version>` and opens a pull request with `gh`. Your own checkout is not touched. Running it again rebuilds that branch and updates the same pull request. When the default branch already has everything, no pull request is opened.
56
66
  3. It registers the project (slug, name, repository, program root) in the Turso database, so `armada status --all` and the dashboard list it.
57
67
 
58
- On a repository without `armada.toml`, pass `--program-root <ISSUE-ID>`; the name comes from the GitHub repository unless you pass `--name`, and the slug from the name unless you pass `--slug`. An existing `armada.toml` is never replaced. `init` needs `git`, the GitHub CLI logged in (`gh auth login`), `LINEAR_API_KEY` and `ARMADA_TURSO_URL`; on a terminal it asks for missing keys first.
68
+ On a repository without `armada.toml`, pass `--program-root <ISSUE-ID>`; the name comes from the GitHub repository unless you pass `--name`, and the slug from the name unless you pass `--slug`. An existing `armada.toml` is never replaced. `init` needs `git`, the GitHub CLI logged in (`gh auth login`), and the Linear key and Turso database URL, from Armada when signed in or from `LINEAR_API_KEY` and `ARMADA_TURSO_URL`; on a terminal it asks for missing keys first.
59
69
 
60
70
  `armada status --all` prints the status of every registered project, each read with the `armada.toml` on its repository's default branch. A project that cannot be read shows its error without hiding the others.
61
71
 
@@ -69,8 +79,9 @@ armada brief ABC-12 --prompt # only the prompt, to pipe into the runti
69
79
  armada brief ABC-12 --profile codex --reason "a back-end bug behind a web label" --json
70
80
  ```
71
81
 
72
- - The prompt names the ticket and its Linear branch, starts by installing the coordinator's Armada version (`npm install -g`, with an `npm exec` fallback) and running `armada claim` with the handle `$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID`, and carries the blockers with their hand-back notes, the comments already on the ticket and the workers in flight.
73
- - The settings give the profile's agent, model and effort from `[conductor]` in `armada.toml`, and the environment variables to pass: `LINEAR_API_KEY` (required), `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN` (optional), `ARMADA_TICKET=<ticket>`. Each shows whether this shell has it. No value is ever printed.
82
+ - The prompt names the ticket and its Linear branch, starts by installing the coordinator's Armada version (`npm install -g`, with an `npm exec` fallback), signing in with `armada login --launch-token <token>` and running `armada claim` with the handle `$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID`, and carries the blockers with their hand-back notes, the comments already on the ticket and the workers in flight.
83
+ - **Workers need no key.** When the coordinator is signed in to an Armada that keeps the organization's keys, the brief asks it for a launch token: one ticket, used once, valid one hour. The worker exchanges it for a session limited to its ticket's `claim`, `report`, `ask` and `release`, and Armada gives each of those commands its keys. The `Launch:` line says whether the prompt carries one, and when there is none, why (not signed in, or an Armada without accounts or keys). Make the brief right before the launch; the token is the only secret a prompt ever holds, useless once used. Merging or releasing the ticket ends the worker's session, and Organization > Workers on the dashboard revokes one.
84
+ - The settings give the profile's agent, model and effort from `[conductor]` in `armada.toml`, and the environment variables: `ARMADA_TICKET=<ticket>`, and, only without a launch token, `LINEAR_API_KEY` (required), `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN` (optional). Each shows whether this shell has it. No value is ever printed.
74
85
  - The profile follows the ticket's Linear labels: the first `[[conductor.routing]]` rule with a label the ticket carries (case, spaces and punctuation ignored), else `conductor.default_profile`, else the only profile. The settings say which rule chose it.
75
86
  - `--profile` overrides that choice. When `armada.toml` has routing rules and the profile differs from the routed one, `--reason` is required. The reason travels into the claim command, so the claim comment records the profile and why. An unknown profile exits 2.
76
87
 
@@ -79,6 +90,7 @@ armada brief ABC-12 --profile codex --reason "a back-end bug behind a web label"
79
90
  A worker writes to the tracker only through three commands. They set the labels and write the comments in the protocol format, and record each event in Turso.
80
91
 
81
92
  ```sh
93
+ armada login --launch-token <token> # the first line of the launch message: no key needed after it
82
94
  armada claim ABC-12 --runtime conductor --handle <workspace>/<session>
83
95
  armada report awaiting-approval --message-file plan.md # first line = summary
84
96
  armada report implementing --message "plan approved, writing the parser"
@@ -225,13 +237,14 @@ armada logout # revokes this terminal's session and removes it from the machi
225
237
 
226
238
  - A coordinator without a browser (a cloud workspace, CI) uses an organization API key instead: an owner creates it on the Organization page (it is shown once), and the coordinator sets `ARMADA_API_KEY`, or stores it with `armada login --api-key` (hidden prompt, or standard input: `printf %s "$KEY" | armada login --api-key`; never on the command line). `ARMADA_API_KEY` in the environment wins over what `armada login` stored. Revoking the key signs the coordinator out.
227
239
  - The session token or key is kept in the credentials file below (mode 0600) and never printed; `armada auth status` says how the terminal is signed in, without it. A session lasts 30 days and is renewed while in use.
240
+ - A worker signs in with the launch token of its launch message, as its first command: `armada login --launch-token <token>` (plus `--api-url <url>` for a self-hosted Armada, which the brief adds). The worker session it gets is kept per ticket in the credentials file and signs in that ticket's `claim`, `report`, `ask` and `release` only; each of them asks Armada for its keys, and stops with Armada's reason once the session is revoked (Organization > Workers) or ended (`armada release`, or the coordinator's `armada merge`). It lasts while the worker keeps reporting, up to three days idle.
228
241
  - Commands that need a sign-in say so and name `armada login` as the next step; so does an expired session or a revoked key.
229
242
  - The CLI talks to `https://armada.thevibecompany.co`. A self-hosted Armada is named by `ARMADA_API_URL`, or `[api] url` in `config.toml` (https; plain http only for `localhost`). A stored sign-in is sent only to the Armada that issued it: pointing the CLI at another one asks for `armada login` there.
230
243
  - Until an Armada has accounts (it runs on the shared dashboard password), it refuses terminal sign-ins and says so; the keys below keep working as they do today.
231
244
 
232
245
  ## Keys
233
246
 
234
- Armada needs a few keys. A terminal signed in to an Armada that keeps its organization's keys ([Keys kept in Armada](#keys-kept-in-armada)) needs none on the machine: `armada login`, then `armada status`. Otherwise set them up once per machine with `armada auth login`, or pass them as environment variables (the way to go in CI and cloud sandboxes).
247
+ Armada needs a few keys. A terminal signed in to an Armada that keeps its organization's keys ([Keys kept in Armada](#keys-kept-in-armada)) needs none on the machine: `armada login`, then `armada status`. Otherwise set them up once per machine with `armada auth login`, or pass them as environment variables (the way to go in CI and with an Armada without accounts): a key in the environment wins over Armada's.
235
248
 
236
249
  Each key comes from the environment first, then from Armada when signed in, then from the credentials file. Armada is asked only for what the environment does not set, on each command that needs keys, so a key replaced on the Keys page takes effect on the next command. The Linear key it gives stays in memory; the Turso token it makes for the terminal is kept in the credentials file (`ARMADA_TURSO_LEASE`, with its expiry) and renewed when less than an hour is left. When Armada cannot be reached, the command warns and goes on with the machine's keys (and the Turso token kept earlier, until it expires). `armada logout` and `armada auth logout` remove the kept token.
237
250
 
package/dist/armada.js CHANGED
@@ -4964,13 +4964,14 @@ The coordinator turns the owner's intent into merged pull requests. Each worker
4964
4964
 
4965
4965
  ## Take over a run
4966
4966
 
4967
- A coordinator may start cold, on a laptop or in a fresh cloud session, with nothing but the repository and its keys. Everything it needs is in the tracker, GitHub and Turso; the Armada [runbook](https://github.com/The-Vibe-Company/armada/blob/main/docs/runbook.md) says how to start one.
4967
+ A coordinator may start cold, on a laptop or in a fresh cloud session, with nothing but the repository and a sign-in to Armada. Everything it needs is in the tracker, GitHub and Turso; the Armada [runbook](https://github.com/The-Vibe-Company/armada/blob/main/docs/runbook.md) says how to start one.
4968
4968
 
4969
- 1. **Find your coordination ticket.** When the owner gives the coordinator a ticket of its own (a run to carry out, for example "run this ticket end to end"), that ticket holds the run's history. Read its comments, newest first. A last comment \`Agent status: released — <text>\` is a hand-over: the previous coordinator stopped on purpose, \`<text>\` is the state it left (who runs, what was asked and answered, what remains), and the ticket is back without agent labels, waiting for you.
4970
- 2. **Claim it with your own handle**, never the previous coordinator's: \`armada claim <ticket> --runtime <your runtime> --handle <your handle> --branch <default branch>\`. In a Conductor workspace the runtime is \`conductor\` and the handle \`"$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID"\`; on a laptop, the runtime you run in (a value of the runtime label group, for example \`claude-code\`) and a handle that names your session. The claim is refused while the previous coordinator still holds the ticket: ask the owner whether it stopped before releasing it for them. Without a coordination ticket, skip this step.
4971
- 3. **Read the fleet** (step 1 of the loop): \`armada status\` and \`armada inbox\` give each worker's handle, phase, question and hand-back. Trust them over the hand-over comment where they disagree: the comment is older.
4972
- 4. **Report on your ticket** as a worker would, \`armada report implementing --ticket <ticket> --message "<what you found and do next>"\`, at least every \`policy.silence_minutes\`, and post the run's evidence there when it ends.
4973
- 5. **Hand over** when you stop before the run ends: \`armada release --ticket <ticket> --reason "<state so far and what remains>"\`. It posts the \`released\` comment the next coordinator reads. Write it for a reader with none of your context.
4969
+ 1. **Sign in to Armada.** \`armada doctor\` (or \`armada whoami\`) says whether this terminal is signed in and to which organization. If not: a person runs \`armada login\` and approves the code in the browser; a headless coordinator (a cloud workspace, CI) sets \`ARMADA_API_KEY\` to an organization API key an owner created on the Organization page. Signed in, Armada gives your commands the organization's keys, and every brief carries a one-time launch token, so no worker needs a key in its environment. Keys set in the environment still win over Armada's: they are the override for CI and a self-hosted Armada without accounts.
4970
+ 2. **Find your coordination ticket.** When the owner gives the coordinator a ticket of its own (a run to carry out, for example "run this ticket end to end"), that ticket holds the run's history. Read its comments, newest first. A last comment \`Agent status: released — <text>\` is a hand-over: the previous coordinator stopped on purpose, \`<text>\` is the state it left (who runs, what was asked and answered, what remains), and the ticket is back without agent labels, waiting for you.
4971
+ 3. **Claim it with your own handle**, never the previous coordinator's: \`armada claim <ticket> --runtime <your runtime> --handle <your handle> --branch <default branch>\`. In a Conductor workspace the runtime is \`conductor\` and the handle \`"$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID"\`; on a laptop, the runtime you run in (a value of the runtime label group, for example \`claude-code\`) and a handle that names your session. The claim is refused while the previous coordinator still holds the ticket: ask the owner whether it stopped before releasing it for them. Without a coordination ticket, skip this step.
4972
+ 4. **Read the fleet** (step 1 of the loop): \`armada status\` and \`armada inbox\` give each worker's handle, phase, question and hand-back. Trust them over the hand-over comment where they disagree: the comment is older.
4973
+ 5. **Report on your ticket** as a worker would, \`armada report implementing --ticket <ticket> --message "<what you found and do next>"\`, at least every \`policy.silence_minutes\`, and post the run's evidence there when it ends.
4974
+ 6. **Hand over** when you stop before the run ends: \`armada release --ticket <ticket> --reason "<state so far and what remains>"\`. It posts the \`released\` comment the next coordinator reads. Write it for a reader with none of your context.
4974
4975
 
4975
4976
  ## Loop
4976
4977
 
@@ -4985,7 +4986,7 @@ A coordinator may start cold, on a laptop or in a fresh cloud session, with noth
4985
4986
  - pick the ticket from the frontier in \`armada status\`;
4986
4987
  - run \`armada brief <ticket>\` and resolve its warnings. The profile (agent, model, effort) is routed from the ticket's labels by \`[[conductor.routing]]\` in \`armada.toml\`, else \`default_profile\`, and the brief says which rule chose it. Follow it. Override it only when the ticket's labels mislead (for example a \`web\` ticket that is really a tricky back-end bug): \`armada brief <ticket> --profile <name> --reason "<why>"\`. The reason lands in the worker's claim comment;
4987
4988
  - write the prompt with \`armada brief <ticket> --prompt > <file>\` and add what only you know: which parallel workers touch neighbouring code and where the boundary is, and decisions not yet on the ticket;
4988
- - launch it with the runtime guide's *launch* section, passing the profile's values and the environment variables the brief names;
4989
+ - launch it with the runtime guide's *launch* section, passing the profile's values. When the brief's \`Launch:\` line says the prompt carries a one-time token, pass no key: the worker signs in with it. When it says there is none, fix the reason (usually your sign-in) and brief again, rather than pass keys; the token works once, within the hour, so brief right before the launch;
4989
4990
  - check the claim: \`armada status\` shows the ticket in flight, phase \`planning\`, with the handle the runtime returned. Done when every launched ticket is In Progress with a claim.
4990
4991
  6. **Merge handed-back pull requests** one at a time with \`armada merge <pr>\`, following [MERGE.md](MERGE.md). Done when the pull request is merged, the ticket is Done with its agent labels removed, and every in-flight worker affected by what landed has been told. When the repository's rules (\`AGENTS.md\`) ask you to ship each merge through its release pull request (release-please's \`chore(main): release …\`), merge that one next, as "The release pull request" in [MERGE.md](MERGE.md) describes.
4991
4992
  7. **Turn findings into tickets.** A gap a worker reports or a bug you see becomes a ticket under the right spec, with blocked-by relations, and is launched when ready. No finding lives only in a transcript.
@@ -5002,7 +5003,7 @@ Repeat from step 1. Between rounds, \`armada inbox --wait\` blocks until a new i
5002
5003
  `;
5003
5004
 
5004
5005
  // ../../skills/armada-runtime-conductor/SKILL.md
5005
- var SKILL_default2 = "---\nname: armada-runtime-conductor\ndescription: Runtime guide for running Armada workers on Conductor Cloud. Use when an Armada coordinator must launch a worker on a ticket, send it a message, check whether a silent worker is still alive, or stop and archive it. Four fixed sections, each with the exact conductor command and how to read its output.\n---\n\nArmada never calls a runtime. This guide tells the coordinator how to launch, message, check and stop a worker with the `conductor` command line tool, and what to record in Armada afterwards. It was checked against `conductor` 0.89.x (the desktop app's CLI, macOS) and 0.1.x (the CLI inside a Conductor Cloud workspace, Linux); every command below works in both. `conductor --version` prints yours; if a flag is refused, compare with `conductor <command> --help`.\n\n- Always pass `--json` and read fields with `jq`. Exit codes: 0 ok, 1 runtime error, 2 usage error, 3 authentication, 4 server error.\n- On exit code 3, `conductor auth whoami` checks the token the CLI uses (it exits 0 when the token works). Do not rely on `conductor auth status`: it only looks for a macOS Keychain entry and fails on Linux (\"Keychain storage is only supported on macOS\"). In a Conductor Cloud workspace the CLI reads `CONDUCTOR_API_KEY` from the environment and needs no login; on a Mac, `conductor auth login` stores a token in the Keychain.\n- A worker is one workspace with one session. Its Armada handle is `<workspaceId>/<sessionId>`; the worker's claim comment carries it, so `armada status` and the ticket always lead back to the session.\n- Never type a secret value into a command, a file or a message: name the variable and let your shell expand it. The expanded value is still in the `conductor` process's arguments while it runs, so launch from a machine only you use.\n\n## Launch\n\n1. Pick a ready ticket from `armada status` that does not collide with work in flight.\n2. Run `armada brief ABC-12` (with `--profile <name> --reason \"<why>\"` when you override the routed profile). Read the profile (agent, model, effort, fast mode), the environment table and the warnings. Resolve every warning first: an open blocker, a ticket already in flight. Export each required variable the table marks `NOT set in this shell`. One marked `in credentials file` is in Armada's machine store: keep the `set -a` line of the launch command below, which loads that file without printing it.\n3. Write the prompt to a file, and add what only you know (the boundary with a parallel worker, a decision not yet on the ticket):\n\n```sh\narmada brief ABC-12 --prompt > /tmp/abc-12-brief.md\n```\n\n4. Create the workspace with every value from the profile. Never leave the agent, model or effort to Conductor's defaults. Add `--fast-mode` when the profile says fast mode; drop an optional `--env` line whose variable you do not have. Run the whole block as one command: shell state does not carry over between separate calls, and the subshell keeps the keys out of the rest of your session. Drop the `set -a` line when every variable is set in your shell.\n\n```sh\n(\n set -a; . \"${XDG_CONFIG_HOME:-$HOME/.config}/armada/credentials\"; set +a\n [ -n \"$LINEAR_API_KEY\" ] || { echo \"LINEAR_API_KEY is missing\" >&2; exit 1; }\n conductor --json workspace create \\\n --repo-url https://github.com/<owner>/<name> \\\n --branch main \\\n --name \"ABC-12 <short title>\" \\\n --agent claude --model opus-5-5-1m --effort high \\\n --message-file - \\\n --env ARMADA_TICKET=ABC-12 \\\n --env LINEAR_API_KEY=\"$LINEAR_API_KEY\" \\\n --env ARMADA_TURSO_URL=\"$ARMADA_TURSO_URL\" \\\n --env ARMADA_TURSO_TOKEN=\"$ARMADA_TURSO_TOKEN\" \\\n < /tmp/abc-12-brief.md > /tmp/abc-12-launch.json\n)\njq -r '\"\\(.workspaceId)/\\(.sessionId)\"' /tmp/abc-12-launch.json\n```\n\n- `--branch` is the base branch (the default branch). Conductor creates a branch named `conductor/<slug of --name>`; the brief tells the worker to rename it to the ticket's branch.\n- The output has `workspaceId`, `sessionId`, `deepLink` and `initialMessage` (`messageId`, `state: \"queued\"`). Keep the handle the `jq` line prints, and give the owner the `deepLink` when they want to watch.\n- Conductor sets `CONDUCTOR_WORKSPACE_ID` and `CONDUCTOR_SESSION_ID` inside the workspace. The brief's first commands install your Armada version (`npm install -g`) and claim the ticket with them. `--env` values are not shown back by `workspace get`.\n- An unknown agent, model or effort fails the command. Check the ids with `conductor model` (each agent's models, efforts and defaults) and fix the profile in `armada.toml`.\n\n5. **Check the claim.** Within a few minutes, `armada status` lists the ticket in flight, phase `planning`, runtime `Conductor`, and the ticket's claim comment reads `session: <workspaceId>/<sessionId>` and `profile: <name>`. No claim after ten minutes: read the transcript (Status section). If the worker cannot claim (for example a missing key), fix the cause and message it; as a last resort record the handle yourself with `armada claim ABC-12 --runtime conductor --handle <workspaceId>/<sessionId> --profile <name>`, adding the brief's `--reason` for an override.\n\n## Message\n\n```sh\nprintf '%s\\n' \"Plan approved. Go on.\" | conductor --json message create --session <sessionId> --message-file -\nconductor --json message create --session <sessionId> --message-file - < /tmp/abc-12-answer.md\n```\n\nThe output is `{\"messageId\": …, \"state\": \"sent\"}`. Exit code 0 means Conductor accepted the message, not that the worker read it: check that the session turns `working`, then read its reply in the transcript. Use it to deliver an answer, a plan approval, or a heads-up that the default branch moved. Then record it in Armada: `armada answer <item> \"<answer>\"` for a question from `armada inbox`, `armada answer --note ABC-12 \"<message>\"` for a message the worker did not ask for.\n\n## Status\n\n```sh\nconductor --json session status <sessionId>\n```\n\nThe output is `{\"workspaceId\", \"sessionId\", \"status\", \"updatedAt\"}`. For a worker:\n\n- `working`: a turn is running. A silent worker that is `working` is busy (a long build or test run): leave it, and read the transcript if it stays silent past twice `policy.silence_minutes`.\n- `idle`: no turn is running. The worker finished its turn: it handed back, it waits for an answer, or it stopped without finishing. If `armada status` does not show it `ready-to-merge`, `awaiting-approval` or `blocked`, it has stopped: read its last reply, then message it to go on, or release and relaunch the ticket.\n- `error`: the last turn failed (agent or provider failure). Read the transcript and message it to resume; if it fails again, cancel, archive, release and relaunch.\n- Right after launch the session is `idle` for a few seconds while the workspace is initializing and the first message is queued; it turns `working` when the agent starts.\n\nThe workspace itself: `conductor --json workspace status <workspaceId>` gives `status` `initializing`, `ready` or `archived`.\n\n**Read the transcript** to see what a worker did or said. Events come oldest first, 100 per page; `hasMore` tells when to fetch the next page with `--after` the last event id. Keep the last id you read and poll from it.\n\n```sh\nconductor --json session message <sessionId> --limit 100 > /tmp/abc-12-events.json\njq -r '.hasMore, .data[-1].id' /tmp/abc-12-events.json\nconductor --json session message <sessionId> --after <lastEventId> --limit 100\n```\n\nThe second line prints whether more pages exist and the id to continue from. `.content.rawPayload` is the agent's own event format, so the filters depend on the worker's agent (the `agent` of its profile in `armada.toml`).\n\nA `claude` worker: each turn's final reply, then the commands and tools it ran.\n\n```sh\njq -r '.data[] | select(.content.rawPayload.type == \"result\") | .content.rawPayload | \"error=\\(.is_error)\\n\\(.result)\"' /tmp/abc-12-events.json\njq -r '.data[] | select(.content.rawPayload.type == \"assistant\") | .content.rawPayload.message.content[] | select(.type == \"tool_use\") | .input.command // .name' /tmp/abc-12-events.json\n```\n\nA `codex` worker: its events are `.content.rawPayload.event`, each item once as `item.started` and once as `item.completed`; read the completed ones. Its messages (`phase` is `commentary` along the way, `final_answer` at the end of a turn), then each command with its exit code, and its tool calls (Linear and other MCP servers).\n\n```sh\njq -r '.data[] | .content.rawPayload.event | select(.type == \"item.completed\") | .item | select(.type == \"agentMessage\") | \"[\\(.phase)] \\(.text)\"' /tmp/abc-12-events.json\njq -r '.data[] | .content.rawPayload.event | select(.type == \"item.completed\") | .item | select(.type == \"commandExecution\") | \"exit=\\(.exitCode) \\(.command)\"' /tmp/abc-12-events.json\njq -r '.data[] | .content.rawPayload.event | select(.type == \"item.completed\") | .item | select(.type == \"mcpToolCall\") | \"\\(.server) \\(.tool)\"' /tmp/abc-12-events.json\n```\n\nAnother agent, or a filter that prints nothing: count the event types, look at one event of the type you need, and adapt the filter.\n\n```sh\njq -r '.data[].content.rawPayload | .type // .event.type // \"(no payload)\"' /tmp/abc-12-events.json | sort | uniq -c\n```\n\n## Stop and archive\n\n```sh\nconductor --json session cancel <sessionId>\nconductor --json workspace archive <workspaceId>\n```\n\n- `session cancel` stops the running turn: `{\"status\", \"canceledQueuedMessages\"}`, and the session is `idle` within seconds. The workspace stays; a message starts a new turn. Use it on a worker that runs the wrong thing.\n- `workspace archive` answers `{\"status\": \"archived\"}`. Archive a worker's workspace after its pull request is merged, or after `armada release --ticket ABC-12 --reason \"<why>\"` for a worker that stops without handing back. The branch and the pull request stay on GitHub.\n- **Wait for `idle` before archiving.** A hand-back often arrives while the worker's session is still `working`: `armada report ready-to-merge` runs inside its last turn, which then writes its final reply. Archive only once `session status` answers `idle`. Poll it every 15 seconds; if it is still `working` after 10 minutes, cancel the turn and archive (the transcript keeps what it was doing). Run the whole block as one command; it can take up to 10 minutes, so run it in the background or give it a longer command timeout:\n\n```sh\nfor i in $(seq 40); do\n [ \"$(conductor --json session status <sessionId> | jq -r .status)\" = working ] || break\n sleep 15\ndone\n[ \"$(conductor --json session status <sessionId> | jq -r .status)\" = working ] && conductor --json session cancel <sessionId>\nconductor --json workspace archive <workspaceId>\n```\n- After an archive, `session status` still answers `idle`; `workspace status` says `archived`.\n";
5006
+ var SKILL_default2 = "---\nname: armada-runtime-conductor\ndescription: Runtime guide for running Armada workers on Conductor Cloud. Use when an Armada coordinator must launch a worker on a ticket, send it a message, check whether a silent worker is still alive, or stop and archive it. Four fixed sections, each with the exact conductor command and how to read its output.\n---\n\nArmada never calls a runtime. This guide tells the coordinator how to launch, message, check and stop a worker with the `conductor` command line tool, and what to record in Armada afterwards. It was checked against `conductor` 0.89.x (the desktop app's CLI, macOS) and 0.1.x (the CLI inside a Conductor Cloud workspace, Linux); every command below works in both. `conductor --version` prints yours; if a flag is refused, compare with `conductor <command> --help`.\n\n- Always pass `--json` and read fields with `jq`. Exit codes: 0 ok, 1 runtime error, 2 usage error, 3 authentication, 4 server error.\n- On exit code 3, `conductor auth whoami` checks the token the CLI uses (it exits 0 when the token works). Do not rely on `conductor auth status`: it only looks for a macOS Keychain entry and fails on Linux (\"Keychain storage is only supported on macOS\"). In a Conductor Cloud workspace the CLI reads `CONDUCTOR_API_KEY` from the environment and needs no login; on a Mac, `conductor auth login` stores a token in the Keychain.\n- A worker is one workspace with one session. Its Armada handle is `<workspaceId>/<sessionId>`; the worker's claim comment carries it, so `armada status` and the ticket always lead back to the session.\n- A worker needs no key in its workspace: the prompt of `armada brief` carries a one-time launch token, and the worker's first command exchanges it for a session limited to its ticket, through which Armada gives each command its keys. The token works once, within the hour, so a copy left in a transcript is useless once used.\n- Never type a secret value into a command, a file or a message: name the variable and let your shell expand it. The expanded value is still in the `conductor` process's arguments while it runs, so launch from a machine only you use.\n\n## Launch\n\n1. Pick a ready ticket from `armada status` that does not collide with work in flight.\n2. Run `armada brief ABC-12` (with `--profile <name> --reason \"<why>\"` when you override the routed profile), right before the launch. Read the profile (agent, model, effort, fast mode), the `Launch:` line and the warnings. Resolve every warning first: an open blocker, a ticket already in flight.\n - `Launch: one-time token in the prompt` is the normal case: the worker signs in to Armada with it and fetches its own keys. Its workspace receives no key at all.\n - `Launch: no launch token (…)` says why. Not signed in: `armada login` (a headless coordinator sets `ARMADA_API_KEY`), then brief again; `armada doctor` checks the sign-in. Launch with keys (step 4, second block) only on an Armada that keeps no keys yet (no accounts or no vault: a self-hosted one, CI, or before the owner's switch to the Keys page).\n3. Write the prompt to a file only you can read, and add what only you know (the boundary with a parallel worker, a decision not yet on the ticket). The token in it works once, within the hour: brief again when that hour has passed before the launch.\n\n```sh\n(umask 077; armada brief ABC-12 --prompt > /tmp/abc-12-brief.md)\n```\n\n4. Create the workspace with every value from the profile. Never leave the agent, model or effort to Conductor's defaults. Add `--fast-mode` when the profile says fast mode. Run the whole block as one command: shell state does not carry over between separate calls.\n\n```sh\nconductor --json workspace create \\\n --repo-url https://github.com/<owner>/<name> \\\n --branch main \\\n --name \"ABC-12 <short title>\" \\\n --agent claude --model opus-5-5-1m --effort high \\\n --message-file - \\\n --env ARMADA_TICKET=ABC-12 \\\n < /tmp/abc-12-brief.md > /tmp/abc-12-launch.json\nrm -f /tmp/abc-12-brief.md\njq -r '\"\\(.workspaceId)/\\(.sessionId)\"' /tmp/abc-12-launch.json\n```\n\nWithout a launch token (an Armada that keeps no keys), pass the keys the brief's environment table marks `required` or `optional`, from your shell or from Armada's credentials file (`in credentials file`: the `set -a` line loads it without printing it; drop it when every variable is set in your shell). The subshell keeps the keys out of the rest of your session; drop an optional `--env` line whose variable you do not have. When Conductor's organization environment still holds the keys, every workspace already has them: use the first block.\n\n```sh\n(\n set -a; . \"${XDG_CONFIG_HOME:-$HOME/.config}/armada/credentials\"; set +a\n [ -n \"$LINEAR_API_KEY\" ] || { echo \"LINEAR_API_KEY is missing\" >&2; exit 1; }\n conductor --json workspace create \\\n --repo-url https://github.com/<owner>/<name> \\\n --branch main \\\n --name \"ABC-12 <short title>\" \\\n --agent claude --model opus-5-5-1m --effort high \\\n --message-file - \\\n --env ARMADA_TICKET=ABC-12 \\\n --env LINEAR_API_KEY=\"$LINEAR_API_KEY\" \\\n --env ARMADA_TURSO_URL=\"$ARMADA_TURSO_URL\" \\\n --env ARMADA_TURSO_TOKEN=\"$ARMADA_TURSO_TOKEN\" \\\n < /tmp/abc-12-brief.md > /tmp/abc-12-launch.json\n)\nrm -f /tmp/abc-12-brief.md\n```\n\n- `--branch` is the base branch (the default branch). Conductor creates a branch named `conductor/<slug of --name>`; the brief tells the worker to rename it to the ticket's branch.\n- The output has `workspaceId`, `sessionId`, `deepLink` and `initialMessage` (`messageId`, `state: \"queued\"`). Keep the handle the `jq` line prints, and give the owner the `deepLink` when they want to watch.\n- Conductor sets `CONDUCTOR_WORKSPACE_ID` and `CONDUCTOR_SESSION_ID` inside the workspace, and signs `gh` in for the worker's pushes. The brief's first commands install your Armada version (`npm install -g`), sign in with the launch token (`armada login --launch-token`) and claim the ticket. `--env` values are not shown back by `workspace get`.\n- Keys in Conductor's organization environment reach every workspace, workers included: once Armada keeps the organization's keys, they belong on Armada's Keys page, not there.\n- An unknown agent, model or effort fails the command. Check the ids with `conductor model` (each agent's models, efforts and defaults) and fix the profile in `armada.toml`.\n\n5. **Check the claim.** Within a few minutes, `armada status` lists the ticket in flight, phase `planning`, runtime `Conductor`, and the ticket's claim comment reads `session: <workspaceId>/<sessionId>` and `profile: <name>`. No claim after ten minutes: read the transcript (Status section). A worker whose launch token was refused (already used, or more than an hour old) needs a new one: `armada brief ABC-12 --prompt` again, and message it only the `armada login --launch-token …` line of the new prompt (Message section). A worker cut off from Armada was revoked on the dashboard (Organization > Workers says by whom) or left idle for three days: ask the owner before you give a revoked worker a new token. If the worker cannot claim for another reason, fix the cause and message it; as a last resort record the handle yourself with `armada claim ABC-12 --runtime conductor --handle <workspaceId>/<sessionId> --profile <name>`, adding the brief's `--reason` for an override.\n\n## Message\n\n```sh\nprintf '%s\\n' \"Plan approved. Go on.\" | conductor --json message create --session <sessionId> --message-file -\nconductor --json message create --session <sessionId> --message-file - < /tmp/abc-12-answer.md\n```\n\nThe output is `{\"messageId\": …, \"state\": \"sent\"}`. Exit code 0 means Conductor accepted the message, not that the worker read it: check that the session turns `working`, then read its reply in the transcript. Use it to deliver an answer, a plan approval, or a heads-up that the default branch moved. Then record it in Armada: `armada answer <item> \"<answer>\"` for a question from `armada inbox`, `armada answer --note ABC-12 \"<message>\"` for a message the worker did not ask for.\n\n## Status\n\n```sh\nconductor --json session status <sessionId>\n```\n\nThe output is `{\"workspaceId\", \"sessionId\", \"status\", \"updatedAt\"}`. For a worker:\n\n- `working`: a turn is running. A silent worker that is `working` is busy (a long build or test run): leave it, and read the transcript if it stays silent past twice `policy.silence_minutes`.\n- `idle`: no turn is running. The worker finished its turn: it handed back, it waits for an answer, or it stopped without finishing. If `armada status` does not show it `ready-to-merge`, `awaiting-approval` or `blocked`, it has stopped: read its last reply, then message it to go on, or release and relaunch the ticket.\n- `error`: the last turn failed (agent or provider failure). Read the transcript and message it to resume; if it fails again, cancel, archive, release and relaunch.\n- Right after launch the session is `idle` for a few seconds while the workspace is initializing and the first message is queued; it turns `working` when the agent starts.\n\nThe workspace itself: `conductor --json workspace status <workspaceId>` gives `status` `initializing`, `ready` or `archived`.\n\n**Read the transcript** to see what a worker did or said. Events come oldest first, 100 per page; `hasMore` tells when to fetch the next page with `--after` the last event id. Keep the last id you read and poll from it.\n\n```sh\nconductor --json session message <sessionId> --limit 100 > /tmp/abc-12-events.json\njq -r '.hasMore, .data[-1].id' /tmp/abc-12-events.json\nconductor --json session message <sessionId> --after <lastEventId> --limit 100\n```\n\nThe second line prints whether more pages exist and the id to continue from. `.content.rawPayload` is the agent's own event format, so the filters depend on the worker's agent (the `agent` of its profile in `armada.toml`).\n\nA `claude` worker: each turn's final reply, then the commands and tools it ran.\n\n```sh\njq -r '.data[] | select(.content.rawPayload.type == \"result\") | .content.rawPayload | \"error=\\(.is_error)\\n\\(.result)\"' /tmp/abc-12-events.json\njq -r '.data[] | select(.content.rawPayload.type == \"assistant\") | .content.rawPayload.message.content[] | select(.type == \"tool_use\") | .input.command // .name' /tmp/abc-12-events.json\n```\n\nA `codex` worker: its events are `.content.rawPayload.event`, each item once as `item.started` and once as `item.completed`; read the completed ones. Its messages (`phase` is `commentary` along the way, `final_answer` at the end of a turn), then each command with its exit code, and its tool calls (Linear and other MCP servers).\n\n```sh\njq -r '.data[] | .content.rawPayload.event | select(.type == \"item.completed\") | .item | select(.type == \"agentMessage\") | \"[\\(.phase)] \\(.text)\"' /tmp/abc-12-events.json\njq -r '.data[] | .content.rawPayload.event | select(.type == \"item.completed\") | .item | select(.type == \"commandExecution\") | \"exit=\\(.exitCode) \\(.command)\"' /tmp/abc-12-events.json\njq -r '.data[] | .content.rawPayload.event | select(.type == \"item.completed\") | .item | select(.type == \"mcpToolCall\") | \"\\(.server) \\(.tool)\"' /tmp/abc-12-events.json\n```\n\nAnother agent, or a filter that prints nothing: count the event types, look at one event of the type you need, and adapt the filter.\n\n```sh\njq -r '.data[].content.rawPayload | .type // .event.type // \"(no payload)\"' /tmp/abc-12-events.json | sort | uniq -c\n```\n\n## Stop and archive\n\n```sh\nconductor --json session cancel <sessionId>\nconductor --json workspace archive <workspaceId>\n```\n\n- `session cancel` stops the running turn: `{\"status\", \"canceledQueuedMessages\"}`, and the session is `idle` within seconds. The workspace stays; a message starts a new turn. Use it on a worker that runs the wrong thing.\n- `workspace archive` answers `{\"status\": \"archived\"}`. Archive a worker's workspace after its pull request is merged, or after `armada release --ticket ABC-12 --reason \"<why>\"` for a worker that stops without handing back. The branch and the pull request stay on GitHub.\n- **Wait for `idle` before archiving.** A hand-back often arrives while the worker's session is still `working`: `armada report ready-to-merge` runs inside its last turn, which then writes its final reply. Archive only once `session status` answers `idle`. Poll it every 15 seconds; if it is still `working` after 10 minutes, cancel the turn and archive (the transcript keeps what it was doing). Run the whole block as one command; it can take up to 10 minutes, so run it in the background or give it a longer command timeout:\n\n```sh\nfor i in $(seq 40); do\n [ \"$(conductor --json session status <sessionId> | jq -r .status)\" = working ] || break\n sleep 15\ndone\n[ \"$(conductor --json session status <sessionId> | jq -r .status)\" = working ] && conductor --json session cancel <sessionId>\nconductor --json workspace archive <workspaceId>\n```\n- After an archive, `session status` still answers `idle`; `workspace status` says `archived`.\n";
5006
5007
 
5007
5008
  // ../../skills/armada-worker/SKILL.md
5008
5009
  var SKILL_default3 = `---
@@ -5023,7 +5024,7 @@ You are a worker. You own exactly one ticket, named in your launch brief. You tu
5023
5024
 
5024
5025
  ## Steps
5025
5026
 
5026
- 1. **Claim** with the exact commands your brief starts with, for example \`armada claim <ticket> --runtime conductor --handle "$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID"\`. Install the Armada version the brief names first; if it gives a fallback command, use it wherever this skill says \`armada\`. When the brief has an \`armada login --launch-token <token>\` line, run it once, before the claim: it signs your workspace in to Armada for your ticket only, and Armada then gives each command its keys, so none is needed in your environment. The token works once, within the hour; if it is refused, or a later command says you were cut off from Armada, stop and say so in your reply. The claim assigns the ticket, moves it to In Progress, sets \`Agent phase = planning\` and your \`Agent runtime\`, and posts the \`Agent claim\` comment. If it refuses because another claim exists, stop: the older claim wins.
5027
+ 1. **Claim** with the exact commands your brief starts with, for example \`armada claim <ticket> --runtime conductor --handle "$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID"\`. Install the Armada version the brief names first; if it gives a fallback command, use it wherever this skill says \`armada\`. When the brief has an \`armada login --launch-token <token>\` line, run it once, right after the install and before the claim: it signs your workspace in to Armada for your ticket only, and Armada then gives your \`claim\`, \`report\`, \`ask\` and \`release\` their keys, so none is needed in your environment (do not ask for one; \`armada whoami\` shows the sign-in). The token works once, within the hour; never copy it anywhere else. If it is refused, or a later command says you were cut off from Armada, stop and say so in your reply: the coordinator decides whether you get a new one. The claim assigns the ticket, moves it to In Progress, sets \`Agent phase = planning\` and your \`Agent runtime\`, and posts the \`Agent claim\` comment. If it refuses because another claim exists, stop: the older claim wins.
5027
5028
  2. **Branch.** Use the branch named after the ticket (the tracker suggests one, for example \`feature/abc-12-short-title\`), created from the latest default branch.
5028
5029
  3. **Plan.** Write the plan: what changes, how it is tested, and the checks a person could observe when it is done. If the ticket's plan policy or your brief says plans are pre-approved, post the full plan with \`armada report implementing --message "<plan>"\` and go on; do not enter \`awaiting-approval\`. Otherwise post the full plan with \`armada report awaiting-approval --message "<plan>"\`: it creates a \`plan\` item in the coordinator's inbox. Push your branch and wait for the coordinator's decision in your session. On approval, report \`implementing\`; on amendments, report \`planning\`, revise the plan and submit it for approval again.
5029
5030
  4. **Implement** test-first. A material change to the approved plan needs a new approval.
@@ -5406,7 +5407,7 @@ async function loadStatus(config, opts) {
5406
5407
  });
5407
5408
  }
5408
5409
  // package.json
5409
- var version = "0.1.18";
5410
+ var version = "0.1.19";
5410
5411
 
5411
5412
  // src/io.ts
5412
5413
  class UsageError extends Error {
@@ -5797,6 +5798,198 @@ async function brief2(io, config, credentials, a, version) {
5797
5798
  return 0;
5798
5799
  }
5799
5800
 
5801
+ // src/login.ts
5802
+ var hostOf = (url) => {
5803
+ try {
5804
+ return new URL(url).host;
5805
+ } catch {
5806
+ return url;
5807
+ }
5808
+ };
5809
+ var apiOf = (io, url) => armadaApi({ url, ...io.fetch ? { fetch: io.fetch } : {} });
5810
+ var storedAt = (machine) => armadaAddress(machine.store?.values[SIGNED_IN_TO_VARIABLE]?.trim() || DEFAULT_ARMADA_API_URL);
5811
+ var sleepOf = (io) => io.sleep ?? ((ms) => new Promise((done) => setTimeout(done, ms)));
5812
+ function requireSignIn(credentials) {
5813
+ if (credentials.armadaSignIn)
5814
+ return credentials.armadaSignIn;
5815
+ const elsewhere = credentials.armadaSignInElsewhere;
5816
+ if (elsewhere)
5817
+ throw new UsageError(`this terminal is signed in to ${hostOf(elsewhere)}, not to ${hostOf(credentials.armadaApi.url)} (named by ARMADA_API_URL or [api] url); its sign-in is never sent to another Armada`, `armada login to sign in to ${hostOf(credentials.armadaApi.url)}, or point ARMADA_API_URL back to ${elsewhere}`);
5818
+ throw new UsageError(`not signed in to Armada (${hostOf(credentials.armadaApi.url)}). A person signs in with \`armada login\`; a headless coordinator sets ${API_KEY_VARIABLE} to an organization API key`, LOGIN_NEXT);
5819
+ }
5820
+ function describeIdentity(identity) {
5821
+ const org = identity.organization ? `${identity.organization.name}${identity.organization.role ? ` (${identity.organization.role})` : ""}` : "no organization yet";
5822
+ if (identity.via === "api-key") {
5823
+ const key = identity.apiKey?.name ?? identity.apiKey?.start ?? "an API key";
5824
+ return `the API key "${key}" of ${org}`;
5825
+ }
5826
+ if (identity.via === "worker") {
5827
+ const w = identity.worker;
5828
+ return w ? `the worker of ${w.ticket} (${w.project}), launched by ${w.launchedBy}, in ${org}` : `a worker of ${org}`;
5829
+ }
5830
+ const who = identity.user ? identity.user.name ? `${identity.user.name} <${identity.user.email}>` : identity.user.email : "?";
5831
+ return `${who}, ${org}`;
5832
+ }
5833
+ function paths(io) {
5834
+ const p = machinePaths(io.env);
5835
+ if (p)
5836
+ return p;
5837
+ throw new UsageError(`neither HOME nor XDG_CONFIG_HOME is set, so this machine has no place to keep a sign-in. Set ${API_KEY_VARIABLE} in the environment instead.`);
5838
+ }
5839
+ async function readApiKey(io) {
5840
+ if (io.interactive && io.prompt)
5841
+ return io.prompt("Armada API key (hidden): ", { hidden: true });
5842
+ if (io.readStdin)
5843
+ return io.readStdin();
5844
+ return null;
5845
+ }
5846
+ async function loginWithApiKey(io, credentials) {
5847
+ const p = paths(io);
5848
+ const answer = await readApiKey(io);
5849
+ if (answer === null) {
5850
+ io.stderr(`Cancelled. Nothing was saved.
5851
+ `);
5852
+ return 130;
5853
+ }
5854
+ const key = answer.trim();
5855
+ if (!key)
5856
+ throw new UsageError('no API key given. Paste it at the prompt, or pipe it in: printf %s "$KEY" | armada login --api-key', "the Organization page of Armada, where an owner creates one");
5857
+ const url = credentials.armadaApi.url;
5858
+ const identity = await apiOf(io, url).whoami({ kind: "api-key", key });
5859
+ await updateCredentialStore(p, {
5860
+ [API_KEY_VARIABLE]: key,
5861
+ [SESSION_TOKEN_VARIABLE]: null,
5862
+ [SIGNED_IN_TO_VARIABLE]: armadaAddress(url),
5863
+ [TURSO_LEASE_VARIABLE]: null
5864
+ });
5865
+ io.stdout(`Signed in to ${hostOf(credentials.armadaApi.url)} as ${describeIdentity(identity)}.
5866
+ The key is stored in ${p.credentials}.
5867
+ `);
5868
+ return 0;
5869
+ }
5870
+ async function loginWithLaunchToken(io, credentials, token, apiUrl) {
5871
+ const p = paths(io);
5872
+ let url = credentials.armadaApi.url;
5873
+ if (apiUrl) {
5874
+ apiBaseUrl(apiUrl);
5875
+ if (credentials.armadaApi.source.kind !== "default" && armadaAddress(apiUrl) !== armadaAddress(url))
5876
+ throw new UsageError(`the launch message names ${hostOf(apiUrl)}, but ARMADA_API_URL or [api] url names ${hostOf(url)}`, "unset ARMADA_API_URL, or ask the coordinator for a launch from that Armada");
5877
+ url = apiUrl;
5878
+ }
5879
+ const session = await apiOf(io, url).exchangeLaunchToken(token.trim());
5880
+ const w = session.worker;
5881
+ await updateCredentialStore(p, {
5882
+ [workerSessionVariable(w.ticket)]: formatWorkerSession({
5883
+ api: armadaAddress(url),
5884
+ token: session.token,
5885
+ ticket: w.ticket,
5886
+ project: w.project,
5887
+ organization: session.organization.id,
5888
+ id: w.id
5889
+ })
5890
+ });
5891
+ io.stdout(`Signed in to ${hostOf(url)} as the worker of ${w.ticket} (${w.project}) in ${session.organization.name}, launched by ${w.launchedBy}.
5892
+ This terminal claims, reports, asks and releases ${w.ticket} only; Armada gives each of those commands its keys.
5893
+ `);
5894
+ return 0;
5895
+ }
5896
+ async function login(io, o) {
5897
+ if (o.apiUrl !== null && o.launchToken === null)
5898
+ throw new UsageError("--api-url goes with --launch-token: it names the Armada of the launch message");
5899
+ if (o.launchToken !== null && o.apiKey)
5900
+ throw new UsageError("pass --api-key or --launch-token, not both");
5901
+ const { machine, credentials } = await loadCredentials(io, { armada: false });
5902
+ if (o.launchToken !== null) {
5903
+ if (!o.launchToken.trim())
5904
+ throw new UsageError("--launch-token needs the token of the launch message");
5905
+ return loginWithLaunchToken(io, credentials, o.launchToken, o.apiUrl);
5906
+ }
5907
+ const host = hostOf(credentials.armadaApi.url);
5908
+ if (credentials.armadaSignIn?.source.kind === "env")
5909
+ io.stderr(`! ${API_KEY_VARIABLE} is set in the environment: it wins over what \`armada login\` stores.
5910
+ `);
5911
+ if (o.apiKey)
5912
+ return loginWithApiKey(io, credentials);
5913
+ const p = paths(io);
5914
+ const url = credentials.armadaApi.url;
5915
+ const api = apiOf(io, url);
5916
+ const code = await api.startDeviceLogin();
5917
+ io.stderr(`First copy your one-time code: ${displayCode(code.userCode)}
5918
+ Then confirm it at ${code.verificationUriComplete}
5919
+ `);
5920
+ if (io.interactive && io.openUrl?.(code.verificationUriComplete))
5921
+ io.stderr(`Opening it in your browser.
5922
+ `);
5923
+ io.stderr(`Waiting for the confirmation (the code expires in ${Math.round(code.expiresInSeconds / 60)} minutes)…
5924
+ `);
5925
+ const token = await waitForApproval({ api, code, sleep: sleepOf(io), now: io.now ?? (() => new Date) });
5926
+ const identity = await api.whoami({ kind: "session", token });
5927
+ const previous = machine.store?.values[SESSION_TOKEN_VARIABLE]?.trim();
5928
+ await updateCredentialStore(p, {
5929
+ [SESSION_TOKEN_VARIABLE]: token,
5930
+ [API_KEY_VARIABLE]: null,
5931
+ [SIGNED_IN_TO_VARIABLE]: armadaAddress(url),
5932
+ [TURSO_LEASE_VARIABLE]: null
5933
+ });
5934
+ if (previous && previous !== token)
5935
+ await apiOf(io, storedAt(machine)).signOut({ kind: "session", token: previous }).catch(() => {});
5936
+ io.stdout(`Signed in to ${host} as ${describeIdentity(identity)}.
5937
+ `);
5938
+ if (!identity.organization)
5939
+ io.stdout(`Next: accept an invitation, or create an organization, at ${new URL("welcome", apiBaseUrl(credentials.armadaApi.url))}
5940
+ `);
5941
+ return 0;
5942
+ }
5943
+ async function whoami(io, json) {
5944
+ let { credentials } = await loadCredentials(io, { armada: false });
5945
+ const [only] = credentials.workerTickets;
5946
+ if (!credentials.armadaSignIn && only && credentials.workerTickets.length === 1)
5947
+ ({ credentials } = await loadCredentials(io, {
5948
+ armada: false,
5949
+ worker: { command: "whoami", project: "", ticket: () => only }
5950
+ }));
5951
+ const signIn = requireSignIn(credentials);
5952
+ const identity = await apiOf(io, credentials.armadaApi.url).whoami(signIn);
5953
+ if (json) {
5954
+ const out = { ...identity, api: credentials.armadaApi.url, source: signIn.source };
5955
+ io.stdout(`${JSON.stringify(out, null, 2)}
5956
+ `);
5957
+ return 0;
5958
+ }
5959
+ io.stdout(`Signed in to ${hostOf(credentials.armadaApi.url)} as ${describeIdentity(identity)}.
5960
+ `);
5961
+ return 0;
5962
+ }
5963
+ async function logout(io) {
5964
+ const { machine } = await loadCredentials(io, { armada: false });
5965
+ const p = paths(io);
5966
+ const at = storedAt(machine);
5967
+ const workers = (machine.store?.assigned ?? []).filter((k) => k.startsWith(WORKER_SESSION_PREFIX));
5968
+ const stored = [SESSION_TOKEN_VARIABLE, API_KEY_VARIABLE, TURSO_LEASE_VARIABLE, ...workers].filter((k) => machine.store?.assigned.includes(k));
5969
+ const session = machine.store?.values[SESSION_TOKEN_VARIABLE]?.trim();
5970
+ if (session) {
5971
+ await apiOf(io, at).signOut({ kind: "session", token: session }).catch((err) => io.stderr(`! the session could not be revoked on Armada (${err instanceof Error ? err.message : String(err)}); it expires on its own
5972
+ `));
5973
+ }
5974
+ if (stored.length) {
5975
+ await updateCredentialStore(p, {
5976
+ [SESSION_TOKEN_VARIABLE]: null,
5977
+ [API_KEY_VARIABLE]: null,
5978
+ [SIGNED_IN_TO_VARIABLE]: null,
5979
+ [TURSO_LEASE_VARIABLE]: null,
5980
+ ...Object.fromEntries(workers.map((k) => [k, null]))
5981
+ });
5982
+ io.stdout(`Signed out of ${hostOf(at)}: removed the sign-in from ${p.credentials}.
5983
+ `);
5984
+ } else
5985
+ io.stdout(`This terminal was not signed in to Armada (nothing in ${p.credentials}).
5986
+ `);
5987
+ if (io.env[API_KEY_VARIABLE]?.trim())
5988
+ io.stdout(`${API_KEY_VARIABLE} is still set in the environment, and still signs this terminal in. Unset it to stop.
5989
+ `);
5990
+ return 0;
5991
+ }
5992
+
5800
5993
  // src/repo.ts
5801
5994
  import { lstat, mkdir as mkdir2, readdir, readFile as readFile2, readlink, rm as rm2, symlink, writeFile } from "node:fs/promises";
5802
5995
  import { dirname, join as join2, relative, sep } from "node:path";
@@ -5888,7 +6081,54 @@ async function gitRoot(exec, cwd) {
5888
6081
  }
5889
6082
 
5890
6083
  // src/doctor.ts
5891
- async function labelChecks(io, root) {
6084
+ var SIGN_IN_FIX = `\`armada login\`; a headless coordinator sets ${API_KEY_VARIABLE} to an organization API key`;
6085
+ async function signInChecks(io, credentials) {
6086
+ const host = hostOf(credentials.armadaApi.url);
6087
+ const signIn = credentials.armadaSignIn;
6088
+ const warning = (message, fix) => [{ id: "sign-in", level: "warning", message, fix }];
6089
+ if (!signIn) {
6090
+ const elsewhere = credentials.armadaSignInElsewhere;
6091
+ if (elsewhere)
6092
+ return warning(`this terminal is signed in to ${hostOf(elsewhere)}, not to ${host} (named by ARMADA_API_URL or [api] url)`, `\`armada login\` to sign in to ${host}, or point ARMADA_API_URL back to ${elsewhere}`);
6093
+ const workers = credentials.workerTickets.length ? `
6094
+ The worker session${credentials.workerTickets.length === 1 ? "" : "s"} of ${credentials.workerTickets.join(", ")} sign${credentials.workerTickets.length === 1 ? "s" : ""} in only that ticket's claim, report, ask and release.` : "";
6095
+ return warning(`not signed in to Armada (${host}): \`armada brief\` gives workers no launch token, so each worker needs the fleet's keys in its environment${workers}`, SIGN_IN_FIX);
6096
+ }
6097
+ try {
6098
+ const identity = await armadaApi({
6099
+ url: credentials.armadaApi.url,
6100
+ ...io.fetch ? { fetch: io.fetch } : {}
6101
+ }).whoami(signIn);
6102
+ if (!identity.organization)
6103
+ return warning(`signed in to ${host} as ${describeIdentity(identity)}: launch tokens need an organization`, `create or join an organization on ${credentials.armadaApi.url}`);
6104
+ return [
6105
+ { id: "sign-in", level: "ok", message: `signed in to ${host} as ${describeIdentity(identity)}`, fix: null }
6106
+ ];
6107
+ } catch (err) {
6108
+ if (!(err instanceof ArmadaApiError))
6109
+ throw err;
6110
+ if (err.signedOut)
6111
+ return warning(`the Armada sign-in of this terminal no longer works: ${err.message}`, signIn.kind === "api-key" && signIn.source.kind === "env" ? `replace ${API_KEY_VARIABLE} with a valid organization API key` : SIGN_IN_FIX);
6112
+ return warning(`Armada sign-in not checked: ${err.message}`, err.next ?? "run doctor again once Armada answers");
6113
+ }
6114
+ }
6115
+ function keyFileChecks(machine, credentials) {
6116
+ const store = machine.store;
6117
+ if (!store?.exists || !credentials.armadaSignIn)
6118
+ return [];
6119
+ const unneeded = STORED_KEYS.filter((k) => store.values[k.variable]?.trim() && credentials.sources[k.name]?.kind === "armada").map((k) => k.variable);
6120
+ if (!unneeded.length)
6121
+ return [];
6122
+ return [
6123
+ {
6124
+ id: "local-keys",
6125
+ level: "warning",
6126
+ message: `${store.path} still holds ${unneeded.join(", ")}, which Armada now gives this terminal: ${unneeded.length === 1 ? "it is" : "they are"} no longer needed`,
6127
+ fix: `\`armada auth logout\` removes ${unneeded.length === 1 ? "it" : "them"} from this machine; the sign-in to Armada stays`
6128
+ }
6129
+ ];
6130
+ }
6131
+ async function labelChecks(io, root, credentials) {
5892
6132
  const text = await fsRepoView(root).readFile(CONFIG_FILE);
5893
6133
  if (text === null)
5894
6134
  return [];
@@ -5900,14 +6140,14 @@ async function labelChecks(io, root) {
5900
6140
  return [];
5901
6141
  throw err;
5902
6142
  }
5903
- const { linearApiKey } = (await loadCredentials(io)).credentials;
6143
+ const { linearApiKey } = credentials;
5904
6144
  if (!linearApiKey)
5905
6145
  return [
5906
6146
  {
5907
6147
  id: "labels",
5908
6148
  level: "warning",
5909
- message: `Linear labels not checked: ${LINEAR_KEY.variable} is not set`,
5910
- fix: `set ${LINEAR_KEY.variable} or run \`armada auth login\`, then run doctor again`
6149
+ message: `Linear labels not checked: no Linear key (${LINEAR_KEY.variable})`,
6150
+ fix: `\`armada login\` to an Armada that keeps your organization's keys, or set ${LINEAR_KEY.variable}, then run doctor again`
5911
6151
  }
5912
6152
  ];
5913
6153
  try {
@@ -5926,7 +6166,13 @@ async function labelChecks(io, root) {
5926
6166
  }
5927
6167
  async function buildDoctor(io, armadaVersion) {
5928
6168
  const root = (io.exec ? await gitRoot(io.exec, io.cwd) : null) ?? io.cwd;
5929
- const checks = [...await checkRepository(fsRepoView(root), armadaVersion), ...await labelChecks(io, root)];
6169
+ const { machine, credentials } = await loadCredentials(io);
6170
+ const checks = [
6171
+ ...await checkRepository(fsRepoView(root), armadaVersion),
6172
+ ...await signInChecks(io, credentials),
6173
+ ...keyFileChecks(machine, credentials),
6174
+ ...await labelChecks(io, root, credentials)
6175
+ ];
5930
6176
  return {
5931
6177
  schemaVersion: 1,
5932
6178
  root,
@@ -6480,198 +6726,6 @@ async function init(io, opts) {
6480
6726
  }
6481
6727
  }
6482
6728
 
6483
- // src/login.ts
6484
- var hostOf = (url) => {
6485
- try {
6486
- return new URL(url).host;
6487
- } catch {
6488
- return url;
6489
- }
6490
- };
6491
- var apiOf = (io, url) => armadaApi({ url, ...io.fetch ? { fetch: io.fetch } : {} });
6492
- var storedAt = (machine) => armadaAddress(machine.store?.values[SIGNED_IN_TO_VARIABLE]?.trim() || DEFAULT_ARMADA_API_URL);
6493
- var sleepOf = (io) => io.sleep ?? ((ms) => new Promise((done) => setTimeout(done, ms)));
6494
- function requireSignIn(credentials) {
6495
- if (credentials.armadaSignIn)
6496
- return credentials.armadaSignIn;
6497
- const elsewhere = credentials.armadaSignInElsewhere;
6498
- if (elsewhere)
6499
- throw new UsageError(`this terminal is signed in to ${hostOf(elsewhere)}, not to ${hostOf(credentials.armadaApi.url)} (named by ARMADA_API_URL or [api] url); its sign-in is never sent to another Armada`, `armada login to sign in to ${hostOf(credentials.armadaApi.url)}, or point ARMADA_API_URL back to ${elsewhere}`);
6500
- throw new UsageError(`not signed in to Armada (${hostOf(credentials.armadaApi.url)}). A person signs in with \`armada login\`; a headless coordinator sets ${API_KEY_VARIABLE} to an organization API key`, LOGIN_NEXT);
6501
- }
6502
- function describeIdentity(identity) {
6503
- const org = identity.organization ? `${identity.organization.name}${identity.organization.role ? ` (${identity.organization.role})` : ""}` : "no organization yet";
6504
- if (identity.via === "api-key") {
6505
- const key = identity.apiKey?.name ?? identity.apiKey?.start ?? "an API key";
6506
- return `the API key "${key}" of ${org}`;
6507
- }
6508
- if (identity.via === "worker") {
6509
- const w = identity.worker;
6510
- return w ? `the worker of ${w.ticket} (${w.project}), launched by ${w.launchedBy}, in ${org}` : `a worker of ${org}`;
6511
- }
6512
- const who = identity.user ? identity.user.name ? `${identity.user.name} <${identity.user.email}>` : identity.user.email : "?";
6513
- return `${who}, ${org}`;
6514
- }
6515
- function paths(io) {
6516
- const p = machinePaths(io.env);
6517
- if (p)
6518
- return p;
6519
- throw new UsageError(`neither HOME nor XDG_CONFIG_HOME is set, so this machine has no place to keep a sign-in. Set ${API_KEY_VARIABLE} in the environment instead.`);
6520
- }
6521
- async function readApiKey(io) {
6522
- if (io.interactive && io.prompt)
6523
- return io.prompt("Armada API key (hidden): ", { hidden: true });
6524
- if (io.readStdin)
6525
- return io.readStdin();
6526
- return null;
6527
- }
6528
- async function loginWithApiKey(io, credentials) {
6529
- const p = paths(io);
6530
- const answer = await readApiKey(io);
6531
- if (answer === null) {
6532
- io.stderr(`Cancelled. Nothing was saved.
6533
- `);
6534
- return 130;
6535
- }
6536
- const key = answer.trim();
6537
- if (!key)
6538
- throw new UsageError('no API key given. Paste it at the prompt, or pipe it in: printf %s "$KEY" | armada login --api-key', "the Organization page of Armada, where an owner creates one");
6539
- const url = credentials.armadaApi.url;
6540
- const identity = await apiOf(io, url).whoami({ kind: "api-key", key });
6541
- await updateCredentialStore(p, {
6542
- [API_KEY_VARIABLE]: key,
6543
- [SESSION_TOKEN_VARIABLE]: null,
6544
- [SIGNED_IN_TO_VARIABLE]: armadaAddress(url),
6545
- [TURSO_LEASE_VARIABLE]: null
6546
- });
6547
- io.stdout(`Signed in to ${hostOf(credentials.armadaApi.url)} as ${describeIdentity(identity)}.
6548
- The key is stored in ${p.credentials}.
6549
- `);
6550
- return 0;
6551
- }
6552
- async function loginWithLaunchToken(io, credentials, token, apiUrl) {
6553
- const p = paths(io);
6554
- let url = credentials.armadaApi.url;
6555
- if (apiUrl) {
6556
- apiBaseUrl(apiUrl);
6557
- if (credentials.armadaApi.source.kind !== "default" && armadaAddress(apiUrl) !== armadaAddress(url))
6558
- throw new UsageError(`the launch message names ${hostOf(apiUrl)}, but ARMADA_API_URL or [api] url names ${hostOf(url)}`, "unset ARMADA_API_URL, or ask the coordinator for a launch from that Armada");
6559
- url = apiUrl;
6560
- }
6561
- const session = await apiOf(io, url).exchangeLaunchToken(token.trim());
6562
- const w = session.worker;
6563
- await updateCredentialStore(p, {
6564
- [workerSessionVariable(w.ticket)]: formatWorkerSession({
6565
- api: armadaAddress(url),
6566
- token: session.token,
6567
- ticket: w.ticket,
6568
- project: w.project,
6569
- organization: session.organization.id,
6570
- id: w.id
6571
- })
6572
- });
6573
- io.stdout(`Signed in to ${hostOf(url)} as the worker of ${w.ticket} (${w.project}) in ${session.organization.name}, launched by ${w.launchedBy}.
6574
- This terminal claims, reports, asks and releases ${w.ticket} only; Armada gives each of those commands its keys.
6575
- `);
6576
- return 0;
6577
- }
6578
- async function login(io, o) {
6579
- if (o.apiUrl !== null && o.launchToken === null)
6580
- throw new UsageError("--api-url goes with --launch-token: it names the Armada of the launch message");
6581
- if (o.launchToken !== null && o.apiKey)
6582
- throw new UsageError("pass --api-key or --launch-token, not both");
6583
- const { machine, credentials } = await loadCredentials(io, { armada: false });
6584
- if (o.launchToken !== null) {
6585
- if (!o.launchToken.trim())
6586
- throw new UsageError("--launch-token needs the token of the launch message");
6587
- return loginWithLaunchToken(io, credentials, o.launchToken, o.apiUrl);
6588
- }
6589
- const host = hostOf(credentials.armadaApi.url);
6590
- if (credentials.armadaSignIn?.source.kind === "env")
6591
- io.stderr(`! ${API_KEY_VARIABLE} is set in the environment: it wins over what \`armada login\` stores.
6592
- `);
6593
- if (o.apiKey)
6594
- return loginWithApiKey(io, credentials);
6595
- const p = paths(io);
6596
- const url = credentials.armadaApi.url;
6597
- const api = apiOf(io, url);
6598
- const code = await api.startDeviceLogin();
6599
- io.stderr(`First copy your one-time code: ${displayCode(code.userCode)}
6600
- Then confirm it at ${code.verificationUriComplete}
6601
- `);
6602
- if (io.interactive && io.openUrl?.(code.verificationUriComplete))
6603
- io.stderr(`Opening it in your browser.
6604
- `);
6605
- io.stderr(`Waiting for the confirmation (the code expires in ${Math.round(code.expiresInSeconds / 60)} minutes)…
6606
- `);
6607
- const token = await waitForApproval({ api, code, sleep: sleepOf(io), now: io.now ?? (() => new Date) });
6608
- const identity = await api.whoami({ kind: "session", token });
6609
- const previous = machine.store?.values[SESSION_TOKEN_VARIABLE]?.trim();
6610
- await updateCredentialStore(p, {
6611
- [SESSION_TOKEN_VARIABLE]: token,
6612
- [API_KEY_VARIABLE]: null,
6613
- [SIGNED_IN_TO_VARIABLE]: armadaAddress(url),
6614
- [TURSO_LEASE_VARIABLE]: null
6615
- });
6616
- if (previous && previous !== token)
6617
- await apiOf(io, storedAt(machine)).signOut({ kind: "session", token: previous }).catch(() => {});
6618
- io.stdout(`Signed in to ${host} as ${describeIdentity(identity)}.
6619
- `);
6620
- if (!identity.organization)
6621
- io.stdout(`Next: accept an invitation, or create an organization, at ${new URL("welcome", apiBaseUrl(credentials.armadaApi.url))}
6622
- `);
6623
- return 0;
6624
- }
6625
- async function whoami(io, json) {
6626
- let { credentials } = await loadCredentials(io, { armada: false });
6627
- const [only] = credentials.workerTickets;
6628
- if (!credentials.armadaSignIn && only && credentials.workerTickets.length === 1)
6629
- ({ credentials } = await loadCredentials(io, {
6630
- armada: false,
6631
- worker: { command: "whoami", project: "", ticket: () => only }
6632
- }));
6633
- const signIn = requireSignIn(credentials);
6634
- const identity = await apiOf(io, credentials.armadaApi.url).whoami(signIn);
6635
- if (json) {
6636
- const out = { ...identity, api: credentials.armadaApi.url, source: signIn.source };
6637
- io.stdout(`${JSON.stringify(out, null, 2)}
6638
- `);
6639
- return 0;
6640
- }
6641
- io.stdout(`Signed in to ${hostOf(credentials.armadaApi.url)} as ${describeIdentity(identity)}.
6642
- `);
6643
- return 0;
6644
- }
6645
- async function logout(io) {
6646
- const { machine } = await loadCredentials(io, { armada: false });
6647
- const p = paths(io);
6648
- const at = storedAt(machine);
6649
- const workers = (machine.store?.assigned ?? []).filter((k) => k.startsWith(WORKER_SESSION_PREFIX));
6650
- const stored = [SESSION_TOKEN_VARIABLE, API_KEY_VARIABLE, TURSO_LEASE_VARIABLE, ...workers].filter((k) => machine.store?.assigned.includes(k));
6651
- const session = machine.store?.values[SESSION_TOKEN_VARIABLE]?.trim();
6652
- if (session) {
6653
- await apiOf(io, at).signOut({ kind: "session", token: session }).catch((err) => io.stderr(`! the session could not be revoked on Armada (${err instanceof Error ? err.message : String(err)}); it expires on its own
6654
- `));
6655
- }
6656
- if (stored.length) {
6657
- await updateCredentialStore(p, {
6658
- [SESSION_TOKEN_VARIABLE]: null,
6659
- [API_KEY_VARIABLE]: null,
6660
- [SIGNED_IN_TO_VARIABLE]: null,
6661
- [TURSO_LEASE_VARIABLE]: null,
6662
- ...Object.fromEntries(workers.map((k) => [k, null]))
6663
- });
6664
- io.stdout(`Signed out of ${hostOf(at)}: removed the sign-in from ${p.credentials}.
6665
- `);
6666
- } else
6667
- io.stdout(`This terminal was not signed in to Armada (nothing in ${p.credentials}).
6668
- `);
6669
- if (io.env[API_KEY_VARIABLE]?.trim())
6670
- io.stdout(`${API_KEY_VARIABLE} is still set in the environment, and still signs this terminal in. Unset it to stop.
6671
- `);
6672
- return 0;
6673
- }
6674
-
6675
6729
  // src/merge.ts
6676
6730
  import { randomUUID } from "node:crypto";
6677
6731
  import { rm as rm4 } from "node:fs/promises";
@@ -7040,7 +7094,8 @@ var COMMAND_HELP = {
7040
7094
  status: ` status Tickets in flight, tickets ready to start and pull requests waiting
7041
7095
  status --all The same for every project registered by \`armada init\`
7042
7096
  `,
7043
- doctor: ` doctor What this repository lacks to be run by Armada, with the fix for each
7097
+ doctor: ` doctor What this repository lacks to be run by Armada, with the fix for each,
7098
+ and whether this terminal is signed in to Armada
7044
7099
  `,
7045
7100
  init: ` init [--program-root <ISSUE-ID>] [--name <name>] [--slug <slug>]
7046
7101
  Open one pull request that installs or updates it all, create the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "description": "Run a fleet of coding agents on one project: the armada command line.",
6
6
  "license": "MIT",