@the-vibe-company/armada 0.2.43 → 0.2.44
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 +22 -2
- package/dist/armada.js +41 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Armada runs a fleet of coding agents on one project and keeps every piece of wor
|
|
|
4
4
|
|
|
5
5
|
It imposes one method: grill the decisions, write a spec, cut it into tickets, let one worker agent ship each ticket as a green pull request, and let a coordinator agent merge. The tracker is the source of truth for progress; Armada adds live telemetry, contention rules and a fleet dashboard on top.
|
|
6
6
|
|
|
7
|
-
**Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada claim`, `armada report`, `armada release`, `armada ask`, `armada inbox`, `armada answer`, `armada merge`, `armada validate`, `armada ask-owner` and `armada done` work; the other commands are being built.
|
|
7
|
+
**Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada launch`, `armada claim`, `armada report`, `armada release`, `armada ask`, `armada inbox`, `armada answer`, `armada merge`, `armada validate`, `armada ask-owner` and `armada done` work; the other commands are being built.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -91,7 +91,7 @@ On a repository without `armada.toml`, pass `--program-root <ISSUE-ID>`; the nam
|
|
|
91
91
|
|
|
92
92
|
## Launch a worker (coordinators)
|
|
93
93
|
|
|
94
|
-
Armada starts persistent local workers through herdr; Conductor and Claude Code subagents follow their runtime guides. The `armada-runtime-conductor` skill gives the exact Conductor Cloud commands; the `armada-runtime-claude-code` skill launches a worker as a background subagent of a coordinator running in Claude Code, in its own git worktree (it dies with the coordinator's session, so long runs go to Conductor). [`docs/runbook.md`](docs/runbook.md) says how to start a coordinator on a laptop or in Conductor Cloud, what the owner sets up once, and how one coordinator hands over to the next.
|
|
94
|
+
Armada starts [persistent local workers through herdr](#run-workers-on-your-own-machine); Conductor and Claude Code subagents follow their runtime guides. The `armada-runtime-conductor` skill gives the exact Conductor Cloud commands; the `armada-runtime-claude-code` skill launches a worker as a background subagent of a coordinator running in Claude Code, in its own git worktree (it dies with the coordinator's session, so long runs go to Conductor or a persistent herdr worker). [`docs/runbook.md`](docs/runbook.md) says how to start a coordinator on a laptop or in Conductor Cloud, what the owner sets up once, and how one coordinator hands over to the next.
|
|
95
95
|
|
|
96
96
|
```sh
|
|
97
97
|
armada brief ABC-12 # read-only settings and prompt preview; no launch
|
|
@@ -112,6 +112,26 @@ armada launch revoke ABC-12 # cancel the newest pending launch throug
|
|
|
112
112
|
- 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.
|
|
113
113
|
- `--profile` also overrides a label route. `--reason` is required for semantic choices and, when routing rules exist, overrides of the routed profile. Keep both flags on subsequent `--prompt` calls. The generated claim command carries the reason; the claim comment, `armada status` and dashboard agent Profile row show it. An unknown profile exits 2. The dashboard's ready-to-launch row shows a label-routed profile or "chosen by the coordinator"; Launch still sends an inbox request, not a runtime call.
|
|
114
114
|
|
|
115
|
+
## Run workers on your own machine
|
|
116
|
+
|
|
117
|
+
Workers do not have to run in Conductor Cloud. With [herdr](https://herdr.dev) 0.9.1 or newer, the coordinator runs each worker on this machine, in its own git worktree and terminal, and the worker keeps going when the coordinator disconnects (the machine must stay awake). Four harnesses are supported: `claude`, `codex`, `opencode`, and `deepseek`, which runs a persistent OpenCode session with the DeepSeek model you configure. Add a local profile to the project's `armada.toml`:
|
|
118
|
+
|
|
119
|
+
```toml
|
|
120
|
+
[herdr.profiles.backend]
|
|
121
|
+
harness = "codex" # claude, codex, opencode or deepseek (OpenCode + DeepSeek model)
|
|
122
|
+
model = "your-model-id" # exact id: `opencode models` lists them for opencode and deepseek
|
|
123
|
+
effort = "high"
|
|
124
|
+
extra_args = ["--sandbox", "workspace-write"] # arguments for this harness only
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Label routing follows the same rules as the Conductor profiles (`[[herdr.routing]]`). Launch from the signed-in coordinator; the worker's brief carries a one-time launch token, so it needs no key:
|
|
128
|
+
|
|
129
|
+
```sh
|
|
130
|
+
armada launch ABC-12 --runtime herdr --profile backend --reason "back end work"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`armada doctor` checks what the local profiles need: herdr (0.9.1 or newer), each harness CLI, the Claude and Codex sign-ins, and every OpenCode or DeepSeek profile's exact model against `opencode models`. On a terminal it offers the official installs and a numbered model pick, each only with your consent; `--json` and CI only print the fixes. Armada never runs a sign-in and never handles a provider key. The runbook's [Launch a persistent local worker](docs/runbook.md#launch-a-persistent-local-worker) has the rest: routing and model choice, messaging the worker, and safe archival with `armada stop`.
|
|
134
|
+
|
|
115
135
|
## Work on a ticket (workers)
|
|
116
136
|
|
|
117
137
|
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 on Armada with the worker's sign-in.
|
package/dist/armada.js
CHANGED
|
@@ -10156,7 +10156,7 @@ ${attachments.join(`
|
|
|
10156
10156
|
};
|
|
10157
10157
|
}
|
|
10158
10158
|
// package.json
|
|
10159
|
-
var version = "0.2.
|
|
10159
|
+
var version = "0.2.44";
|
|
10160
10160
|
|
|
10161
10161
|
// src/attach.ts
|
|
10162
10162
|
import { resolve } from "node:path";
|
|
@@ -10695,14 +10695,37 @@ async function logout(io) {
|
|
|
10695
10695
|
|
|
10696
10696
|
// src/opencode-model.ts
|
|
10697
10697
|
import { stripVTControlCharacters } from "node:util";
|
|
10698
|
-
|
|
10698
|
+
var displayName = (value) => typeof value === "string" && !!value.trim() && !/[\r\n]/.test(value) && stripVTControlCharacters(value) === value;
|
|
10699
|
+
function providersFrom(raw, configuration) {
|
|
10700
|
+
try {
|
|
10701
|
+
const catalog = JSON.parse(stripVTControlCharacters(raw));
|
|
10702
|
+
const config = JSON.parse(stripVTControlCharacters(configuration));
|
|
10703
|
+
const providers = Array.isArray(catalog?.providers) ? catalog.providers.filter((provider) => provider && displayName(provider.id) && displayName(provider.name)) : [];
|
|
10704
|
+
for (const [id, value] of Object.entries(config?.provider ?? {})) {
|
|
10705
|
+
const name = value?.name;
|
|
10706
|
+
if (!displayName(id) || name !== undefined && !displayName(name))
|
|
10707
|
+
continue;
|
|
10708
|
+
if (name === undefined && providers.some((provider) => provider.id === id))
|
|
10709
|
+
continue;
|
|
10710
|
+
for (let index = providers.length - 1;index >= 0; index--)
|
|
10711
|
+
if (providers[index]?.id === id)
|
|
10712
|
+
providers.splice(index, 1);
|
|
10713
|
+
providers.push({ id, name: name ?? id });
|
|
10714
|
+
}
|
|
10715
|
+
return providers;
|
|
10716
|
+
} catch {
|
|
10717
|
+
return [];
|
|
10718
|
+
}
|
|
10719
|
+
}
|
|
10720
|
+
function modelsFrom(raw, providers) {
|
|
10699
10721
|
const models = [];
|
|
10700
10722
|
for (const match of stripVTControlCharacters(raw).matchAll(/^([^\s/#]+\/[^\s#]+)\r?\n(\{\r?\n[\s\S]*?^\})/gm)) {
|
|
10701
10723
|
try {
|
|
10702
10724
|
const metadata = JSON.parse(match[2] ?? "");
|
|
10703
10725
|
const id = match[1] ?? "";
|
|
10704
|
-
if (metadata && `${metadata.providerID}/${metadata.id}` === id &&
|
|
10705
|
-
|
|
10726
|
+
if (metadata && `${metadata.providerID}/${metadata.id}` === id && displayName(metadata.name))
|
|
10727
|
+
for (const provider of providers.filter((provider) => provider.id === metadata.providerID))
|
|
10728
|
+
models.push({ id, name: metadata.name, provider: provider.name });
|
|
10706
10729
|
} catch {}
|
|
10707
10730
|
}
|
|
10708
10731
|
return models;
|
|
@@ -10711,12 +10734,15 @@ function selectedModel(pane, models) {
|
|
|
10711
10734
|
const lines = stripVTControlCharacters(pane).split(`
|
|
10712
10735
|
`);
|
|
10713
10736
|
const footers = lines.flatMap((line, index) => {
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
const match = line.trim().match(
|
|
10737
|
+
const bordered = /^\s*╹/.test(lines[index + 1] ?? "");
|
|
10738
|
+
const pattern = bordered ? /^(?:[┃│]\s*)?[A-Z][\w-]*(?:\s+auto)?(?:\s+·)?\s+(.+)$/ : /^(?:[┃│]\s*)?[A-Z][\w-]*(?:\s+auto)?\s+·\s+(.+)$/;
|
|
10739
|
+
const match = line.trim().match(pattern);
|
|
10717
10740
|
return match?.[1] ? [match[1]] : [];
|
|
10718
10741
|
});
|
|
10719
|
-
const candidates = models.filter((model) => footers.some((footer) =>
|
|
10742
|
+
const candidates = models.filter((model) => footers.some((footer) => [model.name, model.id].some((name) => {
|
|
10743
|
+
const identity = `${name} ${model.provider}`;
|
|
10744
|
+
return footer === identity || footer.startsWith(`${identity} · `);
|
|
10745
|
+
})));
|
|
10720
10746
|
const ids = [...new Set(candidates.map((model) => model.id))];
|
|
10721
10747
|
return ids.length === 1 ? ids[0] ?? null : null;
|
|
10722
10748
|
}
|
|
@@ -10725,7 +10751,13 @@ async function verifyOpenCodeModel(io, pane, expected) {
|
|
|
10725
10751
|
if (!io.exec)
|
|
10726
10752
|
throw failure();
|
|
10727
10753
|
const metadata = await io.exec("opencode", ["models", "--verbose"], { cwd: io.cwd, timeoutMs: 5000 }).catch(() => null);
|
|
10728
|
-
|
|
10754
|
+
if (metadata?.code !== 0)
|
|
10755
|
+
throw failure();
|
|
10756
|
+
const catalog = await io.exec("opencode", ["debug", "v2"], { cwd: io.cwd, timeoutMs: 5000 }).catch(() => null);
|
|
10757
|
+
if (catalog?.code !== 0)
|
|
10758
|
+
throw failure();
|
|
10759
|
+
const config = await io.exec("opencode", ["debug", "config"], { cwd: io.cwd, timeoutMs: 5000 }).catch(() => null);
|
|
10760
|
+
const models = config?.code === 0 ? modelsFrom(metadata.stdout, providersFrom(catalog.stdout, config.stdout)) : [];
|
|
10729
10761
|
if (!models.some((model) => model.id === expected))
|
|
10730
10762
|
throw failure();
|
|
10731
10763
|
const now = io.now ?? (() => new Date);
|