@the-vibe-company/armada 0.1.7 → 0.1.9
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 +36 -9
- package/dist/armada.js +3377 -3004
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npx @the-vibe-company/armada status # or: bunx @the-vibe-company/armada stat
|
|
|
15
15
|
npm install -g @the-vibe-company/armada # then: armada status
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
`armada --version` prints the installed version. Each release is listed on [GitHub releases](https://github.com/The-Vibe-Company/armada/releases) with its changelog.
|
|
18
|
+
`armada --version` prints the installed version, `armada --help` every command and `armada <command> --help` one. When a command cannot continue, it prints the reason and a `Next:` line with the command to run, for example `armada init` in a repository without `armada.toml`. Each release is listed on [GitHub releases](https://github.com/The-Vibe-Company/armada/releases) with its changelog.
|
|
19
19
|
|
|
20
20
|
## Try it
|
|
21
21
|
|
|
@@ -66,12 +66,13 @@ Armada prepares a launch; it never starts a runtime itself. The `armada-runtime-
|
|
|
66
66
|
```sh
|
|
67
67
|
armada brief ABC-12 # launch settings, then the worker's prompt
|
|
68
68
|
armada brief ABC-12 --prompt # only the prompt, to pipe into the runtime (--message-file -)
|
|
69
|
-
armada brief ABC-12 --profile codex --json
|
|
69
|
+
armada brief ABC-12 --profile codex --reason "a back-end bug behind a web label" --json
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
- The prompt names the ticket and its Linear branch, starts by installing the coordinator's Armada version (`npm install -g`, with an `npm exec` fallback) and running `armada claim` with the handle `$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID`, and carries the blockers with their hand-back notes, the comments already on the ticket and the workers in flight.
|
|
73
73
|
- The settings give the profile's agent, model and effort from `[conductor]` in `armada.toml`, and the environment variables to pass: `LINEAR_API_KEY` (required), `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN` (optional), `ARMADA_TICKET=<ticket>`. Each shows whether this shell has it. No value is ever printed.
|
|
74
|
-
-
|
|
74
|
+
- The profile follows the ticket's Linear labels: the first `[[conductor.routing]]` rule with a label the ticket carries (case, spaces and punctuation ignored), else `conductor.default_profile`, else the only profile. The settings say which rule chose it.
|
|
75
|
+
- `--profile` overrides that choice. When `armada.toml` has routing rules and the profile differs from the routed one, `--reason` is required. The reason travels into the claim command, so the claim comment records the profile and why. An unknown profile exits 2.
|
|
75
76
|
|
|
76
77
|
## Work on a ticket (workers)
|
|
77
78
|
|
|
@@ -87,8 +88,9 @@ armada report ready-to-merge --pr 34 --sha <full 40-character head SHA>
|
|
|
87
88
|
armada release --reason "wrong ticket"
|
|
88
89
|
```
|
|
89
90
|
|
|
90
|
-
- `claim` re-reads the ticket and refuses it when another worker holds it; if two claims race, the older comment wins and the other withdraws. It assigns the ticket to the Linear key's user, moves it to the team's first started state, sets the `planning` phase label and the runtime label (matched by name, so `conductor` finds `Conductor`), and posts an `Agent claim — runtime · session · branch · started` line. The handle is kept in that comment and in Turso, so a coordinator finds the session either way. Claiming again with the same handle repairs labels and state.
|
|
91
|
+
- `claim` re-reads the ticket and refuses it when another worker holds it; if two claims race, the older comment wins and the other withdraws. It assigns the ticket to the Linear key's user, moves it to the team's first started state, sets the `planning` phase label and the runtime label (matched by name, so `conductor` finds `Conductor`), and posts an `Agent claim — runtime · session · branch · started` line. The handle is kept in that comment and in Turso, so a coordinator finds the session either way. Claiming again with the same handle repairs labels and state. It reads every comment and label of the ticket, however many.
|
|
91
92
|
- `report <phase>` accepts: planning → awaiting-approval or implementing; awaiting-approval → planning or implementing; implementing → shipping; shipping → implementing or ready-to-merge; ready-to-merge → shipping; blocked from anywhere and back to any phase; the current phase again as a status update. Anything else exits 1 with the reason. The output lists what waits in the worker's inbox.
|
|
93
|
+
- `claim` and `report` read the ticket back and print where it stands, for example `Now: In Progress · phase implementing · runtime Conductor · profile none`, so a worker can check it without opening Linear. `--json` carries the same as `state`.
|
|
92
94
|
- `ready-to-merge` is refused unless the pull request is open in the project repository, `--sha` is the full 40-character SHA of its head, and every check in `[gates] required_checks` is green on that head (with none declared: at least one check, all green). It needs a GitHub token.
|
|
93
95
|
- `release` removes the phase and runtime labels, moves the ticket back to the team's first unstarted state and posts `Agent status: released — <reason>`.
|
|
94
96
|
- `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
|
|
@@ -120,7 +122,7 @@ armada merge 34 # or the pull request URL; --ticket ABC-12 when the
|
|
|
120
122
|
- Hints, never blocking: top-level functions, classes, types and constants the pull request removes or renames that the base branch still uses in files the pull request does not touch.
|
|
121
123
|
- One merge at a time per project: a `merge` lease in Turso (20 minutes, renewed before the merge) makes a second coordinator wait. When Turso is configured but unreachable the merge is refused; `--no-lock` forces it, with a warning and "merged without lock" in the ticket's merged comment. Without Turso configured at all (one coordinator) the merge runs unlocked with a warning.
|
|
122
124
|
- The merge is `gh pr merge <n> --squash --match-head-commit <sha>`, never `--delete-branch` (it removes local worktrees that have the branch checked out). A GitHub 5xx is retried with backoff, each time after checking that the pull request is still open at the same head. Success is reported only once GitHub shows the pull request as merged at that head.
|
|
123
|
-
- Then the ticket moves to Done with its agent labels removed, the pull request is linked, `Agent status: merged — …` is posted, the Turso hand-back is resolved and the runtime handle released. The output lists the workers in flight to tell and the worker session to archive with its runtime guide.
|
|
125
|
+
- Then the ticket moves to Done with its agent labels removed, the pull request is linked, `Agent status: merged — …` is posted, the Turso hand-back is resolved and the runtime handle released. The output lists the workers in flight to tell and the worker session to archive with its runtime guide, when one is installed for that runtime in `.agents/skills` or `.claude/skills`; otherwise it says there is none, since a local session or subagent has nothing to archive.
|
|
124
126
|
- It runs `gh` and `git` in the repository checkout and needs `LINEAR_API_KEY` and a GitHub token.
|
|
125
127
|
|
|
126
128
|
## Watch the fleet (dashboard)
|
|
@@ -139,15 +141,23 @@ Try it locally with synthetic data and no key:
|
|
|
139
141
|
```sh
|
|
140
142
|
cd packages/dashboard
|
|
141
143
|
bun run demo:seed # a local file: database with two invented projects
|
|
142
|
-
ARMADA_DASHBOARD_DEMO=fleet ARMADA_TURSO_URL=file:.demo/armada.db bun run dev # http://localhost:4822
|
|
144
|
+
ARMADA_DASHBOARD_PASSWORD=off ARMADA_DASHBOARD_DEMO=fleet ARMADA_TURSO_URL=file:.demo/armada.db bun run dev # http://localhost:4822
|
|
143
145
|
bun run demo:report WID-12 shipping "Opened the pull request" # watch the row change
|
|
144
146
|
```
|
|
145
147
|
|
|
146
148
|
**Deploy on Vercel.** Create a project from this repository and set these options:
|
|
147
149
|
|
|
148
150
|
- Root Directory: `packages/dashboard`, with files outside the root directory included (the default). The framework preset is Next.js, and Bun installs the workspace from `bun.lock`.
|
|
149
|
-
- Environment variables: `LINEAR_API_KEY`, `GITHUB_TOKEN`, `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN`. Optional: `ARMADA_REPOSITORIES` (the `owner/name` list shown while Turso is unreachable on a fresh server), `ARMADA_DASHBOARD_LANGUAGE` (`en` or `fr`) and `ARMADA_DASHBOARD_SNAPSHOT_SECONDS` (Linear and GitHub read period, default 60).
|
|
150
|
-
-
|
|
151
|
+
- Environment variables: `ARMADA_DASHBOARD_PASSWORD`, `LINEAR_API_KEY`, `GITHUB_TOKEN`, `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN`. Optional: `ARMADA_REPOSITORIES` (the `owner/name` list shown while Turso is unreachable on a fresh server), `ARMADA_DASHBOARD_LANGUAGE` (`en` or `fr`) and `ARMADA_DASHBOARD_SNAPSHOT_SECONDS` (Linear and GitHub read period, default 60).
|
|
152
|
+
- The keys stay on the server; the browser only receives the fleet reading.
|
|
153
|
+
|
|
154
|
+
**Password.** The dashboard asks for `ARMADA_DASHBOARD_PASSWORD` before it shows anything, on every host, a custom domain included. Every page, the polling route and every server action answer 401 or send the viewer to the login page until then; only the build's static files are public.
|
|
155
|
+
|
|
156
|
+
- Use a long random value, for example `openssl rand -base64 24`, and set it for the Production and Preview environments. It stays on the server: never prefix it with `NEXT_PUBLIC_`.
|
|
157
|
+
- A correct password sets a signed session cookie (HttpOnly, Secure, SameSite=Lax) for 30 days. The signature is derived from the password, so changing it and redeploying logs every browser out. "Log out" in the top bar ends one session.
|
|
158
|
+
- Five wrong passwords from one address block it for 15 minutes, counted per server instance.
|
|
159
|
+
- Without the variable, the dashboard fails closed: every route answers 503 and names the variable. `ARMADA_DASHBOARD_PASSWORD=off` turns the password off for local development only; a production server refuses it the same way.
|
|
160
|
+
- Vercel Authentication (Settings > Deployment Protection) is a useful second layer, but its standard protection leaves the production custom domain open (covering it takes a paid option), so it cannot replace the password.
|
|
151
161
|
|
|
152
162
|
One deployment covers one Linear workspace and one GitHub organization: its keys must read every registered project.
|
|
153
163
|
|
|
@@ -210,7 +220,7 @@ local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge
|
|
|
210
220
|
silence_minutes = 15 # a worker with no report for longer is flagged silent (default 15)
|
|
211
221
|
|
|
212
222
|
[conductor]
|
|
213
|
-
default_profile = "opus" #
|
|
223
|
+
default_profile = "opus" # for tickets no routing rule matches (required with routing)
|
|
214
224
|
|
|
215
225
|
[conductor.profiles.opus] # one table per profile; `conductor model` lists the ids
|
|
216
226
|
agent = "claude"
|
|
@@ -222,6 +232,23 @@ effort = "high"
|
|
|
222
232
|
agent = "codex"
|
|
223
233
|
model = "gpt-6.1-sol"
|
|
224
234
|
effort = "high"
|
|
235
|
+
|
|
236
|
+
[conductor.profiles.debug]
|
|
237
|
+
agent = "codex"
|
|
238
|
+
model = "gpt-6.1-sol"
|
|
239
|
+
effort = "xhigh"
|
|
240
|
+
|
|
241
|
+
[[conductor.routing]] # first rule with a label the ticket carries wins, in file order
|
|
242
|
+
labels = ["web"] # any of these labels
|
|
243
|
+
profile = "opus"
|
|
244
|
+
|
|
245
|
+
[[conductor.routing]]
|
|
246
|
+
labels = ["api"]
|
|
247
|
+
profile = "codex"
|
|
248
|
+
|
|
249
|
+
[[conductor.routing]]
|
|
250
|
+
labels = ["Bug"]
|
|
251
|
+
profile = "debug"
|
|
225
252
|
```
|
|
226
253
|
|
|
227
254
|
A missing or invalid key stops the command with a message naming it, for example `missing required key "tracker.program_root"`. This repository's own configuration is in [`armada.toml`](https://github.com/The-Vibe-Company/armada/blob/main/armada.toml).
|