@the-vibe-company/armada 0.1.5 → 0.1.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 +45 -3
- package/dist/armada.js +1603 -1146
- 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` and `armada
|
|
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` and `armada merge` work; the other commands are being built.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -94,6 +94,20 @@ armada release --reason "wrong ticket"
|
|
|
94
94
|
- `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
|
|
95
95
|
- Turso is optional. When it is not configured or not reachable, the commands still write Linear and print a warning.
|
|
96
96
|
|
|
97
|
+
## Questions and answers
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
armada ask "Which store keeps the sessions? I recommend SQLite." --options "SQLite | Redis" # worker
|
|
101
|
+
armada inbox # coordinator: what waits, oldest first
|
|
102
|
+
armada inbox --wait # returns when a new item arrives, or after --timeout (default 300 s)
|
|
103
|
+
armada answer 12 "SQLite, for the first slice." # after delivering it in the worker's session
|
|
104
|
+
armada answer --note ABC-12 "main moved: rebase before you ship" # an unsolicited message, same path
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
- `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 in Turso. The worker then stops and waits for the answer in its session, and reports the phase it resumes. It finds the ticket like `report`.
|
|
108
|
+
- `inbox` lists the coordinator's open items (questions, requests, hand-backs) and silent workers, oldest first. A worker is silent when it holds a ticket, its newest Turso event is older than `policy.silence_minutes`, and its phase does not wait on someone else. It reads Turso only (no Linear key) and records that the coordinator is at work, for the dashboard. `--wait` polls every 5 s and marks the items that were not there before with `*`; loop on it.
|
|
109
|
+
- `answer` never calls a runtime: deliver the answer first with the runtime guide's message section. It posts `Agent status: <current phase> — answer: …` on the ticket and resolves the item. An item id needs Turso; a ticket id answers that ticket's open questions and also works without Turso. `--note` records a message the worker did not ask for as `Agent status: <phase> — note: …`. These two are the coordinator's records: Armada never reads them as the worker's phase, hand-back or sign of life. Only questions and requests can be answered; `merge` resolves hand-backs, and `release` and `merge` resolve the ticket's open questions. A worker that does not report within `policy.silence_minutes` of an answer shows as silent.
|
|
110
|
+
|
|
97
111
|
## Merge a finished pull request (coordinator)
|
|
98
112
|
|
|
99
113
|
```sh
|
|
@@ -109,6 +123,34 @@ armada merge 34 # or the pull request URL; --ticket ABC-12 when the
|
|
|
109
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.
|
|
110
124
|
- It runs `gh` and `git` in the repository checkout and needs `LINEAR_API_KEY` and a GitHub token.
|
|
111
125
|
|
|
126
|
+
## Watch the fleet (dashboard)
|
|
127
|
+
|
|
128
|
+
`packages/dashboard` is a Next.js app with one page: the Fleet of every project registered in Turso.
|
|
129
|
+
|
|
130
|
+
- **Waiting for you** comes first, across projects. It lists questions, blocked workers, plans to approve, hand-backs and silent workers, the most urgent first.
|
|
131
|
+
- **At work** has one row per ticket in flight. A row shows the project, the runtime and session, the six-step phase pipeline, time in phase, the last report, the pull request with its CI, and the flags (red CI, conflict, double claim).
|
|
132
|
+
- A filter shows one project. Each project shows whether its coordinator is active, from its last inbox read.
|
|
133
|
+
- It stays live without a reload. Linear and GitHub are read at most once a minute per project. Turso is read on every 5-second poll, so a worker's `armada report` shows within seconds.
|
|
134
|
+
- When Turso is unreachable, a banner says so and the view falls back to Linear and GitHub.
|
|
135
|
+
- The interface is in English or French (`ARMADA_DASHBOARD_LANGUAGE`, or the EN/FR switch).
|
|
136
|
+
|
|
137
|
+
Try it locally with synthetic data and no key:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
cd packages/dashboard
|
|
141
|
+
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
|
|
143
|
+
bun run demo:report WID-12 shipping "Opened the pull request" # watch the row change
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Deploy on Vercel.** Create a project from this repository and set these options:
|
|
147
|
+
|
|
148
|
+
- 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
|
+
- Keep it private. Turn on Vercel Authentication (Settings > Deployment Protection). The keys stay on the server; the browser only receives the fleet reading.
|
|
151
|
+
|
|
152
|
+
One deployment covers one Linear workspace and one GitHub organization: its keys must read every registered project.
|
|
153
|
+
|
|
112
154
|
## Keys
|
|
113
155
|
|
|
114
156
|
Armada needs a few keys. Set them up once per machine with `armada auth login`, or pass them as environment variables, which always win over the stored ones (the way to go in CI and cloud sandboxes).
|
|
@@ -116,7 +158,7 @@ Armada needs a few keys. Set them up once per machine with `armada auth login`,
|
|
|
116
158
|
| Variable | What | Needed by |
|
|
117
159
|
| --- | --- | --- |
|
|
118
160
|
| `LINEAR_API_KEY` | Linear personal API key (Linear > Settings > Security & access > Personal API keys) | `armada status` |
|
|
119
|
-
| `ARMADA_TURSO_URL` | Turso database URL, `libsql://...` (`file:/path/armada.db` for a local database) | `armada init` and `armada status --all` (project registry)
|
|
161
|
+
| `ARMADA_TURSO_URL` | Turso database URL, `libsql://...` (`file:/path/armada.db` for a local database) | `armada init` and `armada status --all` (project registry), `armada inbox`; live activity: events, runtime handles, inbox (optional) |
|
|
120
162
|
| `ARMADA_TURSO_TOKEN` | Turso database token | the same (optional for a `file:` database) |
|
|
121
163
|
| `GITHUB_TOKEN` or `GH_TOKEN` | GitHub token; otherwise `gh auth token` is used | pull requests and CI |
|
|
122
164
|
|
|
@@ -205,7 +247,7 @@ See [AGENTS.md](https://github.com/The-Vibe-Company/armada/blob/main/AGENTS.md)
|
|
|
205
247
|
- **Linear** holds the plan: specs, tickets, dependencies and agent phases.
|
|
206
248
|
- **Turso** (libSQL) holds live telemetry: events, heartbeats, pending questions and locks. Losing it loses live detail, never progress.
|
|
207
249
|
- **Conductor Cloud** runs the workers in the first version. Other runtimes come later without changing the worker contract.
|
|
208
|
-
- **Dashboard
|
|
250
|
+
- **Dashboard** (Next.js, `packages/dashboard`): the live Fleet view of every project. The program view comes later.
|
|
209
251
|
|
|
210
252
|
## License
|
|
211
253
|
|