@the-vibe-company/armada 0.2.5 → 0.2.7
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.
- package/README.md +8 -6
- package/dist/armada.js +175 -35
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,10 +54,12 @@ armada init --program-root ABC-1 # one pull request that adds it all
|
|
|
54
54
|
- `.conductor/settings.toml` has a `[scripts] setup` command;
|
|
55
55
|
- `.gitignore` ignores `plans/ship-pr-dev/`;
|
|
56
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
|
+
- this CLI is as recent as that Armada expects (signed in only): every answer of the Armada API names the oldest CLI that reads it right and the latest one, and a CLI older than the oldest prints one line on any command, `Armada <version> is older than this server expects: npm install -g @the-vibe-company/armada@<latest>`;
|
|
57
58
|
- 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`)
|
|
59
|
+
- the Linear label groups `Agent phase` and `Agent runtime` exist with every value (needs a Linear key, from Armada or `LINEAR_API_KEY`);
|
|
60
|
+
- with Conductor profiles in `armada.toml`, the `conductor` command is found: on PATH, or inside the macOS app at `/Applications/Conductor.app/Contents/Resources/bin/conductor`, with the fix that puts it on PATH.
|
|
59
61
|
|
|
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.
|
|
62
|
+
Each problem is an error or a warning, with its fix. A missing skill, or a CLI older than Armada expects, 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.
|
|
61
63
|
|
|
62
64
|
`armada init` fixes everything doctor reports in one go:
|
|
63
65
|
|
|
@@ -82,7 +84,7 @@ armada brief ABC-12 --profile codex --reason "a back-end bug behind a web label"
|
|
|
82
84
|
- 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
85
|
- **Plan rule.** A "Plan" section says in one line whether the worker waits for approval: "post your plan with `armada report implementing --plan-file -` and go on" when plans are pre-approved, "post your plan with `armada report awaiting-approval --plan-file -` and wait for approval" otherwise. `[policy] plans` decides (`approve` by default, or `pre-approved`); a ticket labelled `plan-approved` (`policy.pre_approved_label`) is pre-approved, and one labelled `needs-plan-approval` (`policy.approval_label`) waits for approval, which wins when a ticket has both. The settings show the rule and where it comes from (`Plans:`), and `--json` carries it as `plans`.
|
|
84
86
|
- **Project conventions.** `[brief] extra = "<path>"` names a file of the repository (relative to `armada.toml`) that every prompt ends with, under "Project conventions": the checks to run, the generated files to refresh, how to bring main in. A missing file is a brief warning, and `armada doctor` checks it.
|
|
85
|
-
- **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.
|
|
87
|
+
- **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). Only `--prompt` prints the token; the full brief and `--json` show it as `armada_launch_••••`, so it stays out of the coordinator's transcript. 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.
|
|
86
88
|
- 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). Each shows whether this shell has it. No value is ever printed.
|
|
87
89
|
- A profile with `runtime = "claude-code"` routes the launch to the `armada-runtime-claude-code` skill: the `Runtime:` line names the skill, the claim runs `--runtime claude-code` with the subagent's name as its handle (the ticket id in lowercase), and the prompt first makes the worker check it runs in its own worktree. The Agent tool applies no effort; the brief says so.
|
|
88
90
|
- 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.
|
|
@@ -122,7 +124,7 @@ armada watch # coordinator, in the background: returns when so
|
|
|
122
124
|
armada inbox --wait # returns when a new item arrives, or after --timeout (default 300 s)
|
|
123
125
|
armada answer 12 "SQLite, for the first slice." # after delivering it in the worker's session
|
|
124
126
|
armada answer 13 "approved" # a plan, after delivering approval
|
|
125
|
-
armada answer --note ABC-12 "main moved:
|
|
127
|
+
armada answer --note ABC-12 "main moved: bring it in before you ship" # an unsolicited message, same path
|
|
126
128
|
```
|
|
127
129
|
|
|
128
130
|
- `ask` reports the `blocked` phase with `Agent status: blocked — question: <first line>` (the rest and the numbered options below it) and adds a `question` item to the coordinator's inbox on Armada. The worker then stops and waits for the answer in its session, and reports the phase it resumes. It finds the ticket like `report`.
|
|
@@ -174,7 +176,7 @@ Try it locally with synthetic data and no key:
|
|
|
174
176
|
|
|
175
177
|
```sh
|
|
176
178
|
cd packages/dashboard
|
|
177
|
-
bun run demo:seed # a local PGlite database (Postgres in the process) with
|
|
179
|
+
bun run demo:seed # a local PGlite database (Postgres in the process) with the mockup's Acme world (three projects, ten sessions)
|
|
178
180
|
ARMADA_DASHBOARD_PASSWORD=off ARMADA_DASHBOARD_DEMO=fleet ARMADA_DATABASE_URL=pglite:.demo/armada bun run dev # http://localhost:4822
|
|
179
181
|
```
|
|
180
182
|
|
|
@@ -368,7 +370,7 @@ repository = "acme/widgets" # owner/name (required)
|
|
|
368
370
|
|
|
369
371
|
[gates]
|
|
370
372
|
required_checks = ["test"] # CI checks that must be green before a hand-back or a merge (default: every check)
|
|
371
|
-
local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge of a head behind its base (default: none
|
|
373
|
+
local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge of a head behind its base (default: none: the worker brings the base branch in instead)
|
|
372
374
|
|
|
373
375
|
[policy]
|
|
374
376
|
silence_minutes = 15 # a worker with no report for longer is flagged silent (default 15)
|
package/dist/armada.js
CHANGED
|
@@ -320,16 +320,35 @@ var CHANGED_COMMENTS_QUERY = `
|
|
|
320
320
|
|
|
321
321
|
// ../core/src/armada-api.ts
|
|
322
322
|
var displayCode = (code) => code.length === 8 ? `${code.slice(0, 4)}-${code.slice(4)}` : code;
|
|
323
|
+
var CLI_PACKAGE = "@the-vibe-company/armada";
|
|
324
|
+
var CLI_VERSION_HEADER = "x-armada-cli-version";
|
|
325
|
+
var CLI_MINIMUM_HEADER = "x-armada-cli-minimum";
|
|
326
|
+
var CLI_LATEST_HEADER = "x-armada-cli-latest";
|
|
327
|
+
function compareVersions(a, b) {
|
|
328
|
+
const parts = (v) => v.split(/[-+]/)[0]?.split(".").map((n) => Number.parseInt(n, 10) || 0) ?? [];
|
|
329
|
+
const [x, y] = [parts(a), parts(b)];
|
|
330
|
+
for (let i = 0;i < Math.max(x.length, y.length); i++) {
|
|
331
|
+
const d = (x[i] ?? 0) - (y[i] ?? 0);
|
|
332
|
+
if (d)
|
|
333
|
+
return Math.sign(d);
|
|
334
|
+
}
|
|
335
|
+
return 0;
|
|
336
|
+
}
|
|
337
|
+
var versionToInstall = (minimum, latest) => latest && compareVersions(latest, minimum) >= 0 ? latest : minimum;
|
|
338
|
+
var installCommand = (version) => `npm install -g ${CLI_PACKAGE}@${version}`;
|
|
339
|
+
var upgradeLine = (version, install) => `Armada ${version} is older than this server expects: ${installCommand(install)}`;
|
|
323
340
|
|
|
324
341
|
class ArmadaApiError extends Error {
|
|
325
342
|
next;
|
|
326
343
|
signedOut;
|
|
327
344
|
status;
|
|
328
|
-
|
|
345
|
+
upgrade;
|
|
346
|
+
constructor(message, next = null, signedOut = false, status = null, upgrade = null) {
|
|
329
347
|
super(message);
|
|
330
348
|
this.next = next;
|
|
331
349
|
this.signedOut = signedOut;
|
|
332
350
|
this.status = status;
|
|
351
|
+
this.upgrade = upgrade;
|
|
333
352
|
}
|
|
334
353
|
}
|
|
335
354
|
var LOGIN_NEXT = "armada login";
|
|
@@ -356,6 +375,7 @@ function armadaApi(opts) {
|
|
|
356
375
|
const doFetch = opts.fetch ?? fetch;
|
|
357
376
|
const timeoutMs = opts.timeoutMs ?? TIMEOUT_MS;
|
|
358
377
|
const host = base.host;
|
|
378
|
+
let serverCli = null;
|
|
359
379
|
async function call(method, path, init = {}) {
|
|
360
380
|
const limit = init.timeoutMs ?? timeoutMs;
|
|
361
381
|
const headers = { Accept: "application/json" };
|
|
@@ -365,6 +385,8 @@ function armadaApi(opts) {
|
|
|
365
385
|
headers.Authorization = `Bearer ${init.signIn.token}`;
|
|
366
386
|
if (init.signIn?.kind === "api-key")
|
|
367
387
|
headers["x-api-key"] = init.signIn.key;
|
|
388
|
+
if (opts.version)
|
|
389
|
+
headers[CLI_VERSION_HEADER] = opts.version;
|
|
368
390
|
const res = await doFetch(new URL(`api/cli/${path}`, base).toString(), {
|
|
369
391
|
method,
|
|
370
392
|
headers,
|
|
@@ -373,6 +395,15 @@ function armadaApi(opts) {
|
|
|
373
395
|
}).catch((err) => {
|
|
374
396
|
throw new ArmadaApiError(`Armada (${host}) unreachable: ${networkReason(err, limit)}`, "the same command again once it answers, or check ARMADA_API_URL");
|
|
375
397
|
});
|
|
398
|
+
const minimum = res.headers.get(CLI_MINIMUM_HEADER);
|
|
399
|
+
const latest = res.headers.get(CLI_LATEST_HEADER) || null;
|
|
400
|
+
if (minimum)
|
|
401
|
+
serverCli = { minimum, latest };
|
|
402
|
+
if (opts.version && minimum && compareVersions(opts.version, minimum) < 0) {
|
|
403
|
+
await res.body?.cancel().catch(() => {});
|
|
404
|
+
const install = versionToInstall(minimum, latest);
|
|
405
|
+
throw new ArmadaApiError(upgradeLine(opts.version, install), null, false, res.status, install);
|
|
406
|
+
}
|
|
376
407
|
if (res.status === 304)
|
|
377
408
|
return { status: 304, body: {} };
|
|
378
409
|
const body = await res.json().catch(() => null);
|
|
@@ -386,6 +417,7 @@ function armadaApi(opts) {
|
|
|
386
417
|
return new ArmadaApiError(what ? `${what}: ${error}` : error, next, status === 401, status);
|
|
387
418
|
};
|
|
388
419
|
return {
|
|
420
|
+
serverCli: () => serverCli,
|
|
389
421
|
async startDeviceLogin() {
|
|
390
422
|
const { status, body } = await call("POST", "device/code");
|
|
391
423
|
if (status !== 200)
|
|
@@ -2205,7 +2237,7 @@ function handBackProblems({ pr, repository, sha, requiredChecks }) {
|
|
|
2205
2237
|
if (pr.draft)
|
|
2206
2238
|
problems.push(`pull request #${pr.number} is a draft; mark it ready for review`);
|
|
2207
2239
|
if (pr.mergeable === "CONFLICTING")
|
|
2208
|
-
problems.push(`pull request #${pr.number} conflicts with its base; rebase it`);
|
|
2240
|
+
problems.push(`pull request #${pr.number} conflicts with its base; bring the base branch in (rebase, or merge it into your branch)`);
|
|
2209
2241
|
if (!pr.headSha)
|
|
2210
2242
|
problems.push(`the head of pull request #${pr.number} could not be read from GitHub`);
|
|
2211
2243
|
else if (sha && FULL_SHA.test(sha) && pr.headSha !== sha)
|
|
@@ -2337,7 +2369,9 @@ async function live(ctx, warnings, what, step) {
|
|
|
2337
2369
|
})
|
|
2338
2370
|
]);
|
|
2339
2371
|
} catch (err) {
|
|
2340
|
-
|
|
2372
|
+
const warning = err instanceof ArmadaApiError && err.upgrade ? err.message : `Armada: could not ${what} (${err instanceof Error ? err.message : String(err)}); Linear is up to date`;
|
|
2373
|
+
if (!warnings.includes(warning))
|
|
2374
|
+
warnings.push(warning);
|
|
2341
2375
|
return null;
|
|
2342
2376
|
} finally {
|
|
2343
2377
|
clearTimeout(timer);
|
|
@@ -4186,9 +4220,9 @@ function findHandBack(ticket) {
|
|
|
4186
4220
|
}
|
|
4187
4221
|
var MERGEABLE_STATES = new Set(["CLEAN", "HAS_HOOKS"]);
|
|
4188
4222
|
var STATE_HELP = {
|
|
4189
|
-
BEHIND: "the base branch requires it to be up to date; ask the worker to
|
|
4223
|
+
BEHIND: "the base branch requires it to be up to date; ask the worker to bring the base branch in, or armada merge --wait updates it",
|
|
4190
4224
|
BLOCKED: "a branch protection rule blocks it (a required review or check)",
|
|
4191
|
-
DIRTY: "it conflicts with its base; ask the worker to
|
|
4225
|
+
DIRTY: "it conflicts with its base; ask the worker to bring the base branch in and resolve the conflicts",
|
|
4192
4226
|
DRAFT: "it is a draft",
|
|
4193
4227
|
UNKNOWN: "GitHub is still computing mergeability; try again in a minute",
|
|
4194
4228
|
UNSTABLE: "a check that is not required is failing"
|
|
@@ -4268,7 +4302,7 @@ function baseProblem(pull, cmp, localCommands) {
|
|
|
4268
4302
|
if (cmp.behindBy === 0)
|
|
4269
4303
|
return null;
|
|
4270
4304
|
if (!localCommands.length)
|
|
4271
|
-
return `the head lacks ${cmp.behindBy} commit${cmp.behindBy > 1 ? "s" : ""} of ${pull.baseRef}; ask the worker to
|
|
4305
|
+
return `the head lacks ${cmp.behindBy} commit${cmp.behindBy > 1 ? "s" : ""} of ${pull.baseRef}; ask the worker to bring ${pull.baseRef} in, or declare [gates] local_commands in armada.toml so armada merge can test the merge (armada merge --wait updates the branch instead)`;
|
|
4272
4306
|
return null;
|
|
4273
4307
|
}
|
|
4274
4308
|
var CODE_FILE = /\.(?:[cm]?[jt]sx?|py|go|rs)$/;
|
|
@@ -4838,7 +4872,7 @@ async function readProjectConfig(p, opts) {
|
|
|
4838
4872
|
import { createHash } from "node:crypto";
|
|
4839
4873
|
|
|
4840
4874
|
// ../../skills/armada-coordinator/MERGE.md
|
|
4841
|
-
var MERGE_default = "# Merging a pull request\n\nRun `armada merge <pr>` (add `--dry-run` to see the checklist only, `--wait` when main keeps moving, `--no-ticket` for a pull request no ticket owns). It checks everything below, takes the project's merge lock, merges pinned to the handed-back SHA, confirms the merge on GitHub and closes the ticket. Its output lists the workers in flight to tell and the worker session to archive. When a refusal names a rule, fix the cause (usually: ask the worker to
|
|
4875
|
+
var MERGE_default = "# Merging a pull request\n\nRun `armada merge <pr>` (add `--dry-run` to see the checklist only, `--wait` when main keeps moving, `--no-ticket` for a pull request no ticket owns). It checks everything below, takes the project's merge lock, merges pinned to the handed-back SHA, confirms the merge on GitHub and closes the ticket. Its output lists the workers in flight to tell and the worker session to archive. When a refusal names a rule, fix the cause (usually: ask the worker to bring the default branch in and report again) rather than merging by hand. When you must merge by hand, follow the same steps.\n\n## Main kept moving: `--wait`\n\nWith several workers in flight, main often moves between a green hand-back and its merge. Instead of asking the worker to bring main in, run `armada merge <pr> --wait [--timeout <min>]` (30 minutes by default), in the background where your runtime allows it (Claude Code: `run_in_background`):\n\n- A head behind main that GitHub says merges cleanly is updated with GitHub's \"update branch\": a merge commit on the branch, no force-push. Squash merges make that merge commit harmless. When main does not require heads to be up to date and `[gates] local_commands` is set, it is test-merged instead, as without `--wait`, so a busy main does not restart CI each time.\n- It waits for every required check on the new head, then merges pinned to that head.\n- It holds the project's merge lock only while merging, not while waiting, so two waits never block each other. Signed in with Armada down, it refuses before touching the branch.\n- It stops at once, naming the cause, on a red check, a conflict, any other refused rule, or when GitHub refuses the update (a branch protection rule or ruleset can forbid it) or accepts it without the head moving within 3 minutes: ask the worker to fix it. A refusal after an update says so: the worker pulls the updated branch before pushing again.\n- The updated head still counts as the worker's hand-back, because the only change is main coming in: `armada merge` accepts a head that is the handed-back SHA followed only by merge commits, each bringing in a commit of main, with the tree of a clean merge (checked with git). That holds without `--wait` too, for example after \"Update branch\" on GitHub. The ticket's merged comment names both heads: `head <new>, the handed-back <old> updated with main`.\n\n## No ticket: `--no-ticket`\n\n`armada merge <pr> --no-ticket` merges a pull request no ticket owns: the `armada init` pull request (its output names the command) or the release pull request below. There is no hand-back and nothing is written to Linear; every other check is unchanged, and the merge is pinned to the head it checked. It refuses a branch that names a ticket of the program: that one is merged on its worker's hand-back.\n\nWhen none of the required checks ran on the head (a release pull request opened with the workflow's own token gets no CI run), it passes with a note, on GitHub's own state (`UNSTABLE` included, when nothing failed) and the checks that did run, once the head is a minute old; a younger head, or a head this run updated (its update starts CI), is waited for (`--wait`) or refused.\n\n## Before\n\n1. The worker has handed back: `Agent phase` is `ready-to-merge` and you have the full 40-character head SHA it reported.\n2. `gh pr view <n> --json headRefOid,mergeStateStatus,isDraft,title` shows that SHA (or that SHA with only main merged in), `CLEAN` (or `HAS_HOOKS`), not a draft, and a Commitizen title.\n3. `gh pr checks <n>` shows every required check passing.\n4. The head contains the current default branch: `git merge-base --is-ancestor origin/<default> <sha>`. If not, update it (`--wait`) or ask the worker to bring the default branch in (rebase, or merge it into their branch; never force-push a branch someone else pushed to).\n5. Semantic check: search the default branch for callers of anything the pull request deletes or renames.\n\n## Merge\n\n```sh\ngh pr merge <n> --squash --match-head-commit <full-sha>\n```\n\n- One merge at a time: `armada merge` holds the project's merge lock. If it refuses because Armada is down, use `--no-lock` only when you are sure no other coordinator merges in the project.\n- Leave out `--delete-branch`: it deletes local worktrees that have the branch checked out, including other agents'. Delete the branch once its worktree is gone.\n- If GitHub answers with a 5xx, check `gh pr view <n> --json state` before retrying.\n\n## After\n\n1. The ticket is Done, its `Agent phase` and `Agent runtime` labels removed, the pull request linked.\n2. Tell every in-flight worker what the merge changes for them: a shared file, a migration, a new check, code they must now reuse or delete.\n3. Archive the merged worker's workspace with the \"Stop and archive\" section of its runtime guide.\n4. Launch the tickets this merge unblocked.\n\n## The release pull request\n\nSome repositories publish through release-please: every merge to the default branch opens or updates one release pull request, and merging it tags the version and publishes it. When the repository's rules (`AGENTS.md`) say to merge it after each merge, do it right after the ticket's merge, without a hand-back: no worker owns it.\n\n- **What it looks like.** Title `chore(main): release <version>`, opened by `github-actions`, label `autorelease: pending`, and a diff that only touches the changelog, the manifest and version fields. It is opened with the workflow's own token, so **no CI check runs on it** (only checks from apps such as Vercel, if any) and `mergeStateStatus` is often `UNSTABLE` (`armada merge --no-ticket` accepts it when none of the required checks ran and nothing failed). Both are expected: the publish job runs the repository's checks again before publishing. Anything else in the diff, or a `DIRTY` state, is not expected: stop and tell the owner.\n- **Find it and its head:**\n\n```sh\ngh pr list --state open --label \"autorelease: pending\" --json number,title,headRefOid,mergeStateStatus\n```\n\n- **Merge it** with `armada merge <n> --no-ticket`: no ticket owns it, and no required check runs on it (see \"No ticket\" above). By hand, pin it to that head, like any merge, and without `--delete-branch`:\n\n```sh\ngh pr merge <n> --squash --match-head-commit <full-sha>\n```\n\n- **Check the publish.** After a minute or two the new version is on the registry, for example `npm view <package> version` for an npm package (the package is named in `AGENTS.md` or the release workflow). If it is not, open the Release run (`gh run list --workflow release.yml --limit 3`), fix the cause and re-run its failed jobs: a later push does not publish a version already tagged.\n- Release-please updates the same pull request on each merge to the default branch; one release pull request can carry several merges.\n";
|
|
4842
4876
|
|
|
4843
4877
|
// ../../skills/armada-coordinator/SKILL.md
|
|
4844
4878
|
var SKILL_default = `---
|
|
@@ -4866,7 +4900,7 @@ A coordinator may start cold, on a laptop or in a fresh cloud session, with noth
|
|
|
4866
4900
|
## Loop
|
|
4867
4901
|
|
|
4868
4902
|
1. **Read the fleet** with \`armada status\` and \`armada inbox\`, never from memory. Done when you can name every ticket in flight and its phase, every ready ticket, every pull request waiting, every silent worker and every pending question, plan or request.
|
|
4869
|
-
2. **Answer what waits for you first.** For each question in \`armada inbox\`: decide it, or escalate it to the owner when it is a product decision and wait for theirs. For each \`plan\` item: read the full plan, approve it or give concrete amendments. Deliver the decision in the worker's session with the runtime guide's *message* section, then record it with \`armada answer <item> "approved"\` or \`armada answer <item> "<amendments and reason>"\`. The worker resumes with \`implementing\` on approval, or returns to \`planning\` and submits a revised plan. \`armada answer\` only records; it never reaches the worker. Decide reversible choices yourself and prefer the option that keeps behaviour observable. When two workers need the same shared resource (a migration slot, a generated file, a version number), set the rule once and tell both. A message the worker did not ask for (main moved,
|
|
4903
|
+
2. **Answer what waits for you first.** For each question in \`armada inbox\`: decide it, or escalate it to the owner when it is a product decision and wait for theirs. For each \`plan\` item: read the full plan, approve it or give concrete amendments. Deliver the decision in the worker's session with the runtime guide's *message* section, then record it with \`armada answer <item> "approved"\` or \`armada answer <item> "<amendments and reason>"\`. The worker resumes with \`implementing\` on approval, or returns to \`planning\` and submits a revised plan. \`armada answer\` only records; it never reaches the worker. Decide reversible choices yourself and prefer the option that keeps behaviour observable. When two workers need the same shared resource (a migration slot, a generated file, a version number), set the rule once and tell both. A message the worker did not ask for (main moved, bring it in) takes the same path: deliver it with the runtime guide, then \`armada answer --note <ticket> "<message>"\`. Done when the inbox shows no open question or plan.
|
|
4870
4904
|
3. **Carry out the owner's dashboard requests.** They are the owner's word, signed with their name; they never reached a worker.
|
|
4871
4905
|
- \`answer-request\` (it names the question or plan it answers, \`answers #<id>\`): deliver its text in the worker's session with the runtime guide's *message* section, as the owner's answer or plan approval, then \`armada answer <request id> "<the text you delivered>"\`. That resolves the request and its question or plan, and the ticket names who answered. If the item is gone (the worker was released or changed phase), \`armada answer <request id> "<why>"\` closes it.
|
|
4872
4906
|
- \`launch-request\` (it names the profile the owner chose): launch the ticket as in step 5, with that profile. When it differs from the routed one, the request's body gives the \`--profile\` and \`--reason\` to pass to \`armada brief\` and to the worker's claim. The worker's \`armada claim\` resolves the request and posts who asked. If the ticket must not start (it collides with work in flight, or its plan changed), decline it: \`armada answer <request id> "<why>"\`, and tell the owner in your report.
|
|
@@ -4897,7 +4931,7 @@ You only learn of something new when a command you run ends. So while a worker i
|
|
|
4897
4931
|
|
|
4898
4932
|
## Rules of thumb
|
|
4899
4933
|
|
|
4900
|
-
- Merge only after the worker's hand-back; a green pull request can still get one more
|
|
4934
|
+
- Merge only after the worker's hand-back; a green pull request can still get one more push that brings the default branch in.
|
|
4901
4935
|
- Parallel workers in one area collide: stagger them, or give each a disjoint area and tell them the boundary.
|
|
4902
4936
|
- Everything that must survive your session goes to the tracker or the repository. The next coordinator may be a fresh cloud session with none of your context: it resumes from \`armada status\` and \`armada inbox\`.
|
|
4903
4937
|
- When a command named here is missing from your Armada version (\`armada --help\`), do the step by hand with the same protocol and say so in your report.
|
|
@@ -5013,7 +5047,7 @@ A subagent launched without \`isolation: "worktree"\` runs in your checkout. The
|
|
|
5013
5047
|
`;
|
|
5014
5048
|
|
|
5015
5049
|
// ../../skills/armada-runtime-conductor/SKILL.md
|
|
5016
|
-
var SKILL_default3 = "---\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`, 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. Without a launch token the worker is not signed in to Armada: its claims and reports reach Linear only, with a warning. 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 < /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";
|
|
5050
|
+
var SKILL_default3 = "---\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- On a Mac, the app ships the CLI at `/Applications/Conductor.app/Contents/Resources/bin/conductor`, which is not on PATH. `armada doctor` looks for it and prints the fix: a link from a directory already on PATH (`ln -s \"/Applications/Conductor.app/Contents/Resources/bin/conductor\" ~/.local/bin/conductor`), or a PATH line for your shell profile.\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. This view and `--json` show the token as `armada_launch_••••`; only `--prompt` prints it.\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`, 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. Without a launch token the worker is not signed in to Armada: its claims and reports reach Linear only, with a warning. 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 < /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";
|
|
5017
5051
|
|
|
5018
5052
|
// ../../skills/armada-worker/SKILL.md
|
|
5019
5053
|
var SKILL_default4 = `---
|
|
@@ -5039,7 +5073,7 @@ You are a worker. You own exactly one ticket, named in your launch brief. You tu
|
|
|
5039
5073
|
3. **Plan.** Write the plan: what changes, how it is tested, and the checks a person could observe when it is done. Your brief's "Plan" section says in one line whether it needs approval (from \`[policy] plans\` in \`armada.toml\`, or a label on the ticket); follow that line, do not guess. Pre-approved: post the plan with \`armada report implementing --plan-file -\` (or \`--plan-file <path>\`) and go on; do not enter \`awaiting-approval\`. Otherwise post it with \`armada report awaiting-approval --plan-file -\`: it creates a \`plan\` item in the coordinator's inbox. \`--plan-file\` posts the plan as its own block, under a one-line status (\`--message\` sets that line, else the plan's first line). 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.
|
|
5040
5074
|
4. **Implement** test-first. A material change to the approved plan needs a new approval.
|
|
5041
5075
|
5. **Ship.** \`armada report shipping --pr <number>\`. Use the \`ship-pr-dev\` skill when the repository has it; otherwise run the repository's local checks, open the pull request with a Commitizen title (\`feat(scope): …\`), link it on the ticket, and fix CI until every required check is green.
|
|
5042
|
-
6. **
|
|
5076
|
+
6. **Bring the default branch in** right before hand-back (rebase, or merge it into your branch; squash merges make both fine), and get CI green on that final head. Never force-push a branch someone else pushed to.
|
|
5043
5077
|
7. **Hand back.** \`armada report ready-to-merge --pr <number> --sha <full 40-character head SHA>\`. Armada refuses a short SHA, a SHA that is not the pull request head, or a red check. Then report to the coordinator: pull request URL, full SHA, CI state, the decisions you made, and what the next tickets need to know.
|
|
5044
5078
|
|
|
5045
5079
|
If you stop without finishing, run \`armada release --reason "<why>"\` so the ticket is free again.
|
|
@@ -5490,7 +5524,10 @@ async function loadStatus(config, opts) {
|
|
|
5490
5524
|
});
|
|
5491
5525
|
}
|
|
5492
5526
|
// package.json
|
|
5493
|
-
var version = "0.2.
|
|
5527
|
+
var version = "0.2.7";
|
|
5528
|
+
|
|
5529
|
+
// src/api.ts
|
|
5530
|
+
var apiOf = (io, url, cliVersion = version) => armadaApi({ url, version: cliVersion, ...io.fetch ? { fetch: io.fetch } : {} });
|
|
5494
5531
|
|
|
5495
5532
|
// src/io.ts
|
|
5496
5533
|
class UsageError extends Error {
|
|
@@ -5520,12 +5557,14 @@ async function fromArmada(io, credentials, purpose) {
|
|
|
5520
5557
|
return null;
|
|
5521
5558
|
let answer;
|
|
5522
5559
|
try {
|
|
5523
|
-
answer = await
|
|
5560
|
+
answer = await apiOf(io, credentials.armadaApi.url).credentials(signIn, purpose);
|
|
5524
5561
|
} catch (err) {
|
|
5525
5562
|
if (!(err instanceof ArmadaApiError))
|
|
5526
5563
|
throw err;
|
|
5527
5564
|
if ((err.signedOut || err.status === 403) && signIn.kind === "worker")
|
|
5528
5565
|
throw err;
|
|
5566
|
+
if (err.upgrade)
|
|
5567
|
+
throw err;
|
|
5529
5568
|
if (err.status === 503)
|
|
5530
5569
|
return null;
|
|
5531
5570
|
io.stderr(`! Armada gave no keys (${err.message}); using this machine's${err.next ? `. Next: ${err.next}` : ""}
|
|
@@ -5751,7 +5790,6 @@ var hostOf = (url) => {
|
|
|
5751
5790
|
}
|
|
5752
5791
|
};
|
|
5753
5792
|
var RETIRED = Object.fromEntries(RETIRED_VARIABLES.map((v) => [v, null]));
|
|
5754
|
-
var apiOf = (io, url) => armadaApi({ url, ...io.fetch ? { fetch: io.fetch } : {} });
|
|
5755
5793
|
var storedAt = (machine) => armadaAddress(machine.store?.values[SIGNED_IN_TO_VARIABLE]?.trim() || DEFAULT_ARMADA_API_URL);
|
|
5756
5794
|
var sleepOf = (io) => io.sleep ?? ((ms) => new Promise((done) => setTimeout(done, ms)));
|
|
5757
5795
|
function requireSignIn(credentials) {
|
|
@@ -5944,7 +5982,7 @@ function liveFleet(io, config, credentials) {
|
|
|
5944
5982
|
warning: "not signed in to Armada (armada login); live activity is not recorded, Linear is"
|
|
5945
5983
|
};
|
|
5946
5984
|
try {
|
|
5947
|
-
const api =
|
|
5985
|
+
const api = apiOf(io, credentials.armadaApi.url);
|
|
5948
5986
|
return { fleet: fleetClient({ api, signIn, project: projectOf(config) }), warning: null };
|
|
5949
5987
|
} catch (err) {
|
|
5950
5988
|
return {
|
|
@@ -6106,7 +6144,7 @@ async function endWorkerSessions(io, config, credentials, ticket, reason, quiet)
|
|
|
6106
6144
|
const signIn = credentials.armadaSignIn;
|
|
6107
6145
|
if (!signIn)
|
|
6108
6146
|
return;
|
|
6109
|
-
const api =
|
|
6147
|
+
const api = apiOf(io, credentials.armadaApi.url);
|
|
6110
6148
|
try {
|
|
6111
6149
|
if (signIn.kind === "worker") {
|
|
6112
6150
|
const paths = machinePaths(io.env);
|
|
@@ -6358,6 +6396,14 @@ async function hookStop(io, rest, findConfig) {
|
|
|
6358
6396
|
}
|
|
6359
6397
|
|
|
6360
6398
|
// src/brief.ts
|
|
6399
|
+
var HIDDEN_LAUNCH_TOKEN = "armada_launch_••••";
|
|
6400
|
+
function hideLaunchToken(b) {
|
|
6401
|
+
if (!b.launch)
|
|
6402
|
+
return b;
|
|
6403
|
+
const token = b.launch.command.match(/--launch-token[ =](\S+)/)?.[1];
|
|
6404
|
+
const hide = (text) => (token ? text.replaceAll(token, HIDDEN_LAUNCH_TOKEN) : text).replace(/armada_launch_[^\s'"`•]+/g, HIDDEN_LAUNCH_TOKEN);
|
|
6405
|
+
return { ...b, prompt: hide(b.prompt), launch: { ...b.launch, command: hide(b.launch.command) } };
|
|
6406
|
+
}
|
|
6361
6407
|
function renderBrief(b) {
|
|
6362
6408
|
const p = b.profile;
|
|
6363
6409
|
const width = Math.max(...b.environment.map((v) => v.name.length + (v.value ? v.value.length + 1 : 0)));
|
|
@@ -6372,7 +6418,8 @@ function renderBrief(b) {
|
|
|
6372
6418
|
...b.conventions ? [`Conventions: ${b.conventions.path} (under "Project conventions" in the prompt)`] : [],
|
|
6373
6419
|
`Repository: ${b.repository.url}`,
|
|
6374
6420
|
`Branch: ${b.ticket.branch ?? "none suggested by Linear"} (the worker renames its workspace branch to it)`,
|
|
6375
|
-
`Launch: ${b.launch ? `one-time token in the prompt, valid until ${b.launch.expiresAt.slice(0, 16).replace("T", " ")} UTC: the worker needs no key
|
|
6421
|
+
`Launch: ${b.launch ? `one-time token in the prompt, valid until ${b.launch.expiresAt.slice(0, 16).replace("T", " ")} UTC: the worker needs no key
|
|
6422
|
+
(shown as ${HIDDEN_LAUNCH_TOKEN} here; \`armada brief ${b.ticket.id} --prompt\` prints it)` : `no launch token${b.noLaunch ? ` (${b.noLaunch})` : ""}: pass the keys below in the worker's environment`}`,
|
|
6376
6423
|
"",
|
|
6377
6424
|
"Environment to pass (values are never printed):",
|
|
6378
6425
|
...b.environment.map((v) => {
|
|
@@ -6397,7 +6444,7 @@ function launcher(io, config, credentials) {
|
|
|
6397
6444
|
};
|
|
6398
6445
|
const url = credentials.armadaApi.url;
|
|
6399
6446
|
try {
|
|
6400
|
-
const t = await
|
|
6447
|
+
const t = await apiOf(io, url).launchToken(signIn, {
|
|
6401
6448
|
project: config.project.slug,
|
|
6402
6449
|
ticket
|
|
6403
6450
|
});
|
|
@@ -6466,11 +6513,12 @@ async function brief2(io, config, credentials, a, version, configPath) {
|
|
|
6466
6513
|
return 0;
|
|
6467
6514
|
}
|
|
6468
6515
|
const next = await rearmFor(io, project, { inFlight, open: null });
|
|
6516
|
+
const shown = hideLaunchToken(b);
|
|
6469
6517
|
if (a.json)
|
|
6470
|
-
io.stdout(`${JSON.stringify({ ...
|
|
6518
|
+
io.stdout(`${JSON.stringify({ ...shown, watch: next }, null, 2)}
|
|
6471
6519
|
`);
|
|
6472
6520
|
else
|
|
6473
|
-
io.stdout(`${renderBrief(
|
|
6521
|
+
io.stdout(`${renderBrief(shown)}
|
|
6474
6522
|
|
|
6475
6523
|
----- once launched -----
|
|
6476
6524
|
${next.line}
|
|
@@ -6570,7 +6618,7 @@ async function gitRoot(exec, cwd) {
|
|
|
6570
6618
|
|
|
6571
6619
|
// src/doctor.ts
|
|
6572
6620
|
var SIGN_IN_FIX = `\`armada login\`; a headless coordinator sets ${API_KEY_VARIABLE} to an organization API key`;
|
|
6573
|
-
async function signInChecks(
|
|
6621
|
+
async function signInChecks(credentials, api) {
|
|
6574
6622
|
const host = hostOf(credentials.armadaApi.url);
|
|
6575
6623
|
const signIn = credentials.armadaSignIn;
|
|
6576
6624
|
const warning = (message, fix) => [{ id: "sign-in", level: "warning", message, fix }];
|
|
@@ -6583,10 +6631,7 @@ The worker session${credentials.workerTickets.length === 1 ? "" : "s"} of ${cred
|
|
|
6583
6631
|
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);
|
|
6584
6632
|
}
|
|
6585
6633
|
try {
|
|
6586
|
-
const identity = await
|
|
6587
|
-
url: credentials.armadaApi.url,
|
|
6588
|
-
...io.fetch ? { fetch: io.fetch } : {}
|
|
6589
|
-
}).whoami(signIn);
|
|
6634
|
+
const identity = await api.whoami(signIn);
|
|
6590
6635
|
if (!identity.organization)
|
|
6591
6636
|
return warning(`signed in to ${host} as ${describeIdentity(identity)}: launch tokens need an organization`, `create or join an organization on ${credentials.armadaApi.url}`);
|
|
6592
6637
|
return [
|
|
@@ -6595,6 +6640,8 @@ The worker session${credentials.workerTickets.length === 1 ? "" : "s"} of ${cred
|
|
|
6595
6640
|
} catch (err) {
|
|
6596
6641
|
if (!(err instanceof ArmadaApiError))
|
|
6597
6642
|
throw err;
|
|
6643
|
+
if (err.upgrade)
|
|
6644
|
+
throw err;
|
|
6598
6645
|
if (err.signedOut)
|
|
6599
6646
|
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);
|
|
6600
6647
|
return warning(`Armada sign-in not checked: ${err.message}`, err.next ?? "run doctor again once Armada answers");
|
|
@@ -6628,18 +6675,21 @@ function keyFileChecks(machine, credentials) {
|
|
|
6628
6675
|
}
|
|
6629
6676
|
];
|
|
6630
6677
|
}
|
|
6631
|
-
async function
|
|
6678
|
+
async function projectConfig(root) {
|
|
6632
6679
|
const text = await fsRepoView(root).readFile(CONFIG_FILE);
|
|
6633
6680
|
if (text === null)
|
|
6634
|
-
return
|
|
6635
|
-
let config;
|
|
6681
|
+
return null;
|
|
6636
6682
|
try {
|
|
6637
|
-
|
|
6683
|
+
return parseConfig(text, CONFIG_FILE);
|
|
6638
6684
|
} catch (err) {
|
|
6639
6685
|
if (err instanceof ConfigError)
|
|
6640
|
-
return
|
|
6686
|
+
return null;
|
|
6641
6687
|
throw err;
|
|
6642
6688
|
}
|
|
6689
|
+
}
|
|
6690
|
+
async function labelChecks(io, config, credentials) {
|
|
6691
|
+
if (!config)
|
|
6692
|
+
return [];
|
|
6643
6693
|
const { linearApiKey } = credentials;
|
|
6644
6694
|
if (!linearApiKey)
|
|
6645
6695
|
return [
|
|
@@ -6664,14 +6714,104 @@ async function labelChecks(io, root, credentials) {
|
|
|
6664
6714
|
];
|
|
6665
6715
|
}
|
|
6666
6716
|
}
|
|
6717
|
+
function versionChecks(host, api, armadaVersion, outdated) {
|
|
6718
|
+
if (outdated?.upgrade)
|
|
6719
|
+
return [
|
|
6720
|
+
{
|
|
6721
|
+
id: "cli-version",
|
|
6722
|
+
level: "error",
|
|
6723
|
+
message: `Armada ${armadaVersion} is older than ${host} expects: it no longer reads its answers`,
|
|
6724
|
+
fix: installCommand(outdated.upgrade)
|
|
6725
|
+
}
|
|
6726
|
+
];
|
|
6727
|
+
const server = api.serverCli();
|
|
6728
|
+
if (!server)
|
|
6729
|
+
return [];
|
|
6730
|
+
const newer = server.latest && compareVersions(server.latest, armadaVersion) > 0 ? server.latest : null;
|
|
6731
|
+
return [
|
|
6732
|
+
{
|
|
6733
|
+
id: "cli-version",
|
|
6734
|
+
level: "ok",
|
|
6735
|
+
message: `Armada ${armadaVersion} is recent enough for ${host} (${server.minimum} or newer)${newer ? `; ${newer} is out: ${installCommand(newer)}` : ""}`,
|
|
6736
|
+
fix: null
|
|
6737
|
+
}
|
|
6738
|
+
];
|
|
6739
|
+
}
|
|
6740
|
+
var BUNDLED_CONDUCTOR = "/Applications/Conductor.app/Contents/Resources/bin/conductor";
|
|
6741
|
+
async function versionOf(io, command) {
|
|
6742
|
+
if (!io.exec)
|
|
6743
|
+
return null;
|
|
6744
|
+
try {
|
|
6745
|
+
const r = await io.exec(command, ["--version"], { cwd: io.cwd });
|
|
6746
|
+
return r.code === 0 ? r.stdout.trim().split(`
|
|
6747
|
+
`)[0] ?? "" : "";
|
|
6748
|
+
} catch {
|
|
6749
|
+
return null;
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6752
|
+
async function conductorChecks(io, config) {
|
|
6753
|
+
if (!io.exec || !Object.values(config?.conductor.profiles ?? {}).some((p) => p.runtime === "conductor"))
|
|
6754
|
+
return [];
|
|
6755
|
+
const onPath = await versionOf(io, "conductor");
|
|
6756
|
+
if (onPath !== null)
|
|
6757
|
+
return [
|
|
6758
|
+
{ id: "conductor-cli", level: "ok", message: `conductor ${onPath ? `${onPath} ` : ""}is on PATH`, fix: null }
|
|
6759
|
+
];
|
|
6760
|
+
const home = io.env.HOME?.replace(/\/+$/, "");
|
|
6761
|
+
const path = (io.env.PATH ?? "").split(":").map((d) => d.replace(/\/+$/, ""));
|
|
6762
|
+
const userBin = home ? [".local/bin", "bin"].find((d) => path.includes(`${home}/${d}`)) : undefined;
|
|
6763
|
+
const link = (dir) => `ln -s "${BUNDLED_CONDUCTOR}" ${dir}/conductor`;
|
|
6764
|
+
const pathLine = `export PATH="${BUNDLED_CONDUCTOR.slice(0, -"/conductor".length)}:$PATH"`;
|
|
6765
|
+
const fix = userBin ? link(`~/${userBin}`) : `add \`${pathLine}\` to your shell profile (~/.zshrc), or \`sudo ${link("/usr/local/bin")}\``;
|
|
6766
|
+
if (await versionOf(io, BUNDLED_CONDUCTOR) !== null)
|
|
6767
|
+
return [
|
|
6768
|
+
{
|
|
6769
|
+
id: "conductor-cli",
|
|
6770
|
+
level: "warning",
|
|
6771
|
+
message: `conductor is not on PATH; the Conductor app ships it at ${BUNDLED_CONDUCTOR}`,
|
|
6772
|
+
fix
|
|
6773
|
+
}
|
|
6774
|
+
];
|
|
6775
|
+
return [
|
|
6776
|
+
{
|
|
6777
|
+
id: "conductor-cli",
|
|
6778
|
+
level: "warning",
|
|
6779
|
+
message: `conductor is not on PATH, nor at ${BUNDLED_CONDUCTOR}: the armada-runtime-conductor guide launches workers with it`,
|
|
6780
|
+
fix: "on a Mac, install the Conductor app, then run doctor again; elsewhere, put a conductor command on PATH (a Conductor workspace has one)"
|
|
6781
|
+
}
|
|
6782
|
+
];
|
|
6783
|
+
}
|
|
6667
6784
|
async function buildDoctor(io, armadaVersion) {
|
|
6668
6785
|
const root = (io.exec ? await gitRoot(io.exec, io.cwd) : null) ?? io.cwd;
|
|
6669
|
-
const
|
|
6786
|
+
const upgrade = (err) => err instanceof ArmadaApiError && err.upgrade ? err : null;
|
|
6787
|
+
let outdated = null;
|
|
6788
|
+
let loaded;
|
|
6789
|
+
try {
|
|
6790
|
+
loaded = await loadCredentials(io);
|
|
6791
|
+
} catch (err) {
|
|
6792
|
+
outdated = upgrade(err);
|
|
6793
|
+
if (!outdated)
|
|
6794
|
+
throw err;
|
|
6795
|
+
loaded = await loadCredentials(io, { armada: false });
|
|
6796
|
+
}
|
|
6797
|
+
const { machine, credentials } = loaded;
|
|
6798
|
+
const api = apiOf(io, credentials.armadaApi.url, armadaVersion);
|
|
6799
|
+
const config = await projectConfig(root);
|
|
6800
|
+
let signIn = [];
|
|
6801
|
+
try {
|
|
6802
|
+
signIn = await signInChecks(credentials, api);
|
|
6803
|
+
} catch (err) {
|
|
6804
|
+
outdated = upgrade(err);
|
|
6805
|
+
if (!outdated)
|
|
6806
|
+
throw err;
|
|
6807
|
+
}
|
|
6670
6808
|
const checks = [
|
|
6671
6809
|
...await checkRepository(fsRepoView(root), armadaVersion),
|
|
6672
|
-
...
|
|
6810
|
+
...signIn,
|
|
6811
|
+
...versionChecks(hostOf(credentials.armadaApi.url), api, armadaVersion, outdated),
|
|
6673
6812
|
...keyFileChecks(machine, credentials),
|
|
6674
|
-
...await labelChecks(io,
|
|
6813
|
+
...await labelChecks(io, config, credentials),
|
|
6814
|
+
...await conductorChecks(io, config)
|
|
6675
6815
|
];
|
|
6676
6816
|
return {
|
|
6677
6817
|
schemaVersion: 1,
|
|
@@ -7070,7 +7210,7 @@ function render(o) {
|
|
|
7070
7210
|
if (!o.workers.length)
|
|
7071
7211
|
out.push("No other worker is in flight.");
|
|
7072
7212
|
else {
|
|
7073
|
-
out.push(`Tell these workers in flight what landed on ${o.pr.base} (
|
|
7213
|
+
out.push(`Tell these workers in flight what landed on ${o.pr.base} (bring it in, shared files, new checks):`);
|
|
7074
7214
|
for (const w of o.workers)
|
|
7075
7215
|
out.push(` ${w.ticket} ${w.phase} ${[w.runtime, w.handle].filter(Boolean).join(" · ") || "runtime unknown"} ${w.title}`);
|
|
7076
7216
|
}
|
|
@@ -7273,7 +7413,7 @@ async function statusAll(io, json) {
|
|
|
7273
7413
|
const linearApiKey = credentials.linearApiKey;
|
|
7274
7414
|
if (!linearApiKey)
|
|
7275
7415
|
throw missingKey(LINEAR_KEY);
|
|
7276
|
-
const api =
|
|
7416
|
+
const api = apiOf(io, credentials.armadaApi.url);
|
|
7277
7417
|
const records = await api.projects(signIn);
|
|
7278
7418
|
const projects = await Promise.all(records.map(async (p) => {
|
|
7279
7419
|
const base = { slug: p.slug, name: p.name, repository: p.repository };
|