@the-vibe-company/armada 0.2.23 → 0.2.25

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 CHANGED
@@ -89,7 +89,7 @@ armada launch revoke ABC-12 # cancel the newest pending launch throug
89
89
  - **Workers need no key.** Only `brief --prompt` asks Armada for a launch token: one ticket, used once, valid one hour. Human and `--json` views are read-only, mint no token and add no worker to watch state; they show `Launch: a one-time token is made when you print the prompt (--prompt)`. With `--prompt --profile-line`, stdout remains the exact worker prompt and stderr gives the selected profile, agent, model, effort, runtime and reason: one call supplies both the prompt and runtime settings. The worker exchanges the token for a session limited to its ticket's `claim`, `report`, `ask` and `release`, and Armada gives each command its keys. Make the prompt right before the launch; its token is the only secret a prompt ever holds, useless once used. The launch message is the `--prompt` output only, never either preview. Without a token, the profile line's `Launch:` summary says why (not signed in, or an Armada without accounts or keys).
90
90
  - **Cancel a launch.** `armada launch revoke <ticket>` ends the newest pending launch through the API and records the same revocation audit as Organization > Workers. It also cancels a worker that signed in but never claimed; a claimed worker is refused with the `armada release` hint. Owners and admins can revoke, including an organization API key whose creator still has that role. `armada status` lists pending launches with the cancel command.
91
91
  - **Unused launches clear.** Once an unused launch token expired more than an hour ago, it stops being followed. The next coordinator inbox read ends it server-side, shows one `not started (token expired)` notice, then clears it. Exchanged-but-unclaimed launches remain revocable and stop being followed after the existing 24-hour window from their launch.
92
- - **A version npm serves.** The brief pins the coordinator's Armada version, after one request to npm (3 s at most, beside the Linear reads). When npm does not serve it yet (a release still publishing, a checkout ahead of npm), the brief pins the newest published version and warns; offline, it only warns. Merging or releasing the ticket ends the worker's session, and Organization > Workers on the dashboard revokes one.
92
+ - **A version npm serves.** The brief pins the coordinator's Armada version after checking npm's metadata and that the tarball answers HEAD with HTTP 200 (3 s total at most, beside the Linear reads). When npm does not serve it yet (a release still publishing, a checkout ahead of npm), the brief pins the newest downloadable stable version no higher than the coordinator's build and warns; offline, it only warns. The server uses the same check for release notices and watch version items, cached for five minutes and refreshed after a CLI response, never blocking it. A cold cache stays quiet; an outage keeps the last verified version. Merging or releasing the ticket ends the worker's session, and Organization > Workers on the dashboard revokes one.
93
93
  - 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.
94
94
  - 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.
95
95
  - Label rules win: the first `[[conductor.routing]]` rule with a label the ticket carries (case, spaces and punctuation ignored) selects its profile. Otherwise, profiles with `when = "front end: dashboard pages, components, styles, design, UI copy"` or `when = "back end: CLI, core rules, API, database, migrations, tests, docs"` ask the coordinator to choose. `armada brief ABC-12` prints **Choose a profile**, the ticket's title and In short, and every profile's rule; it creates no launch token or watch entry. `--json` returns the choice information; `--prompt` refuses until a profile is chosen. Read the ticket and parent spec, choose the rule covering most files/work (explain mixed work), then run `armada brief ABC-12 --profile codex --reason "mostly CLI and core rules" --prompt`. Armada does not call a model to classify tickets. Projects without `when` keep their old `conductor.default_profile` or only-profile fallback.
package/dist/armada.js CHANGED
@@ -2460,6 +2460,41 @@ function checkAttachment(input) {
2460
2460
  }
2461
2461
  }
2462
2462
 
2463
+ // ../core/src/npm.ts
2464
+ var ARMADA_PACKAGE = CLI_PACKAGE;
2465
+ var NPM_REGISTRY_URL = `https://registry.npmjs.org/${ARMADA_PACKAGE.replace("/", "%2f")}`;
2466
+ var NPM_CHECK_MS = 3000;
2467
+ async function checkPublished(version, fetch2, timeoutMs = NPM_CHECK_MS) {
2468
+ try {
2469
+ const signal = AbortSignal.timeout(timeoutMs);
2470
+ const res = await fetch2(NPM_REGISTRY_URL, {
2471
+ headers: { accept: "application/vnd.npm.install-v1+json" },
2472
+ cache: "no-store",
2473
+ signal
2474
+ });
2475
+ if (!res.ok)
2476
+ return { state: "unknown", reason: `npm answered HTTP ${res.status}` };
2477
+ const body = await res.json();
2478
+ const versions = body?.versions;
2479
+ if (!versions || typeof versions !== "object" || Array.isArray(versions) || !Object.keys(versions).length)
2480
+ return { state: "unknown", reason: "npm listed no version" };
2481
+ const candidates = Object.keys(versions).filter((candidate) => /^\d+\.\d+\.\d+$/.test(candidate) && compareVersions(candidate, version) <= 0).sort((first, second) => compareVersions(second, first));
2482
+ for (const candidate of candidates) {
2483
+ const tarball = versions[candidate]?.dist?.tarball;
2484
+ if (typeof tarball !== "string" || !tarball)
2485
+ continue;
2486
+ const download = await fetch2(tarball, { method: "HEAD", cache: "no-store", signal });
2487
+ if (download.status === 200)
2488
+ return candidate === version ? { state: "published" } : { state: "missing", newest: candidate };
2489
+ if (download.status !== 404)
2490
+ return { state: "unknown", reason: `npm tarball answered HTTP ${download.status}` };
2491
+ }
2492
+ return { state: "missing", newest: null };
2493
+ } catch (err) {
2494
+ return { state: "unknown", reason: networkReason(err, timeoutMs) };
2495
+ }
2496
+ }
2497
+
2463
2498
  // ../core/src/phases.ts
2464
2499
  var TRANSITIONS = {
2465
2500
  planning: ["awaiting-approval", "implementing", "awaiting-validation"],
@@ -3039,28 +3074,6 @@ async function releaseTicket(ctx, input) {
3039
3074
  }
3040
3075
 
3041
3076
  // ../core/src/brief.ts
3042
- var ARMADA_PACKAGE = "@the-vibe-company/armada";
3043
- var NPM_REGISTRY_URL = `https://registry.npmjs.org/${ARMADA_PACKAGE.replace("/", "%2f")}`;
3044
- var NPM_CHECK_MS = 3000;
3045
- async function checkPublished(version, fetch2, timeoutMs = NPM_CHECK_MS) {
3046
- try {
3047
- const res = await fetch2(NPM_REGISTRY_URL, {
3048
- headers: { accept: "application/vnd.npm.install-v1+json" },
3049
- signal: AbortSignal.timeout(timeoutMs)
3050
- });
3051
- if (!res.ok)
3052
- return { state: "unknown", reason: `npm answered HTTP ${res.status}` };
3053
- const versions = Object.keys((await res.json()).versions ?? {});
3054
- if (!versions.length)
3055
- return { state: "unknown", reason: "npm listed no version" };
3056
- if (versions.includes(version))
3057
- return { state: "published" };
3058
- const older = versions.filter((v) => !v.includes("-") && compareVersions(v, version) < 0).sort(compareVersions);
3059
- return { state: "missing", newest: older.at(-1) ?? null };
3060
- } catch (err) {
3061
- return { state: "unknown", reason: networkReason(err, timeoutMs) };
3062
- }
3063
- }
3064
3077
  var WORKER_SKILL_PATH = ".agents/skills/armada-worker/SKILL.md";
3065
3078
  var CONDUCTOR_HANDLE = '"$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID"';
3066
3079
  var subagentName = (ticket) => ticket.toLowerCase();
@@ -6515,7 +6528,7 @@ ${attachments.join(`
6515
6528
  };
6516
6529
  }
6517
6530
  // package.json
6518
- var version = "0.2.23";
6531
+ var version = "0.2.25";
6519
6532
 
6520
6533
  // src/attach.ts
6521
6534
  import { resolve } from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "type": "module",
5
5
  "description": "Run a fleet of coding agents on one project: the armada command line.",
6
6
  "license": "MIT",