@the-vibe-company/armada 0.1.13 → 0.1.14
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 +21 -1
- package/dist/armada.js +829 -456
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ On a repository without `armada.toml`, pass `--program-root <ISSUE-ID>`; the nam
|
|
|
61
61
|
|
|
62
62
|
## Launch a worker (coordinators)
|
|
63
63
|
|
|
64
|
-
Armada prepares a launch; it never starts a runtime itself. The `armada-runtime-conductor` skill gives the exact Conductor Cloud commands.
|
|
64
|
+
Armada prepares a launch; it never starts a runtime itself. The `armada-runtime-conductor` skill gives the exact Conductor Cloud commands. [`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.
|
|
65
65
|
|
|
66
66
|
```sh
|
|
67
67
|
armada brief ABC-12 # launch settings, then the worker's prompt
|
|
@@ -177,6 +177,7 @@ ARMADA_AUTH_URL=http://localhost:4822 ARMADA_AUTH_OWNER_EMAILS=you@example.com b
|
|
|
177
177
|
- Accounts are by invitation: an account is created only for an owner address or an address with a pending invitation. The first owner to sign in creates the organization; the projects already registered, and those the CLI registers until it signs in, join the deployment's first organization. Organizations cannot be deleted.
|
|
178
178
|
- An owner or admin invites by email from the Organization page (the name in the top bar). No email provider is plugged in yet: messages (invitations, address confirmations) go to the server log, and the Organization page shows each pending invitation's link to copy and send. The invited person signs in with that address and accepts.
|
|
179
179
|
- Sessions are HttpOnly, SameSite=Lax cookies (Secure over https) valid 30 days; a revoked session can last up to five minutes (signed cookie cache). Without its accounts database the dashboard fails closed (503).
|
|
180
|
+
- Terminals sign in too (see [Sign in from a terminal](#sign-in-from-a-terminal)): `armada login` shows a code that the person confirms on the dashboard's `/device` page, and owners create API keys for headless coordinators on the Organization page. A key is shown once, belongs to the organization, and revoking it signs out whatever uses it. The CLI calls only `/api/cli/*`; without accounts those routes refuse with the next step.
|
|
180
181
|
|
|
181
182
|
**Switch from the shared password to accounts** (a deployment that runs on `ARMADA_DASHBOARD_PASSWORD` keeps working until the redeploy of step 4; set every variable before it, since a partial set locks the dashboard):
|
|
182
183
|
|
|
@@ -196,6 +197,22 @@ ARMADA_AUTH_URL=http://localhost:4822 ARMADA_AUTH_OWNER_EMAILS=you@example.com b
|
|
|
196
197
|
|
|
197
198
|
One deployment covers one Linear workspace and one GitHub organization: its keys must read every registered project.
|
|
198
199
|
|
|
200
|
+
## Sign in from a terminal
|
|
201
|
+
|
|
202
|
+
The CLI knows who is acting, and for which organization, by signing in to Armada, the way `gh auth login` does:
|
|
203
|
+
|
|
204
|
+
```sh
|
|
205
|
+
armada login # shows a one-time code, opens the confirmation page; you approve it in the browser
|
|
206
|
+
armada whoami # the person (or API key) and the organization; --json for scripts
|
|
207
|
+
armada logout # revokes this terminal's session and removes it from the machine
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
- A coordinator without a browser (a cloud workspace, CI) uses an organization API key instead: an owner creates it on the Organization page (it is shown once), and the coordinator sets `ARMADA_API_KEY`, or stores it with `armada login --api-key` (hidden prompt, or standard input: `printf %s "$KEY" | armada login --api-key`; never on the command line). `ARMADA_API_KEY` in the environment wins over what `armada login` stored. Revoking the key signs the coordinator out.
|
|
211
|
+
- The session token or key is kept in the credentials file below (mode 0600) and never printed; `armada auth status` says how the terminal is signed in, without it. A session lasts 30 days and is renewed while in use.
|
|
212
|
+
- Commands that need a sign-in say so and name `armada login` as the next step; so does an expired session or a revoked key.
|
|
213
|
+
- The CLI talks to `https://armada.thevibecompany.co`. A self-hosted Armada is named by `ARMADA_API_URL`, or `[api] url` in `config.toml` (https; plain http only for `localhost`). A stored sign-in is sent only to the Armada that issued it: pointing the CLI at another one asks for `armada login` there.
|
|
214
|
+
- Until an Armada has accounts (it runs on the shared dashboard password), it refuses terminal sign-ins and says so; the keys below keep working as they do today.
|
|
215
|
+
|
|
199
216
|
## Keys
|
|
200
217
|
|
|
201
218
|
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).
|
|
@@ -223,6 +240,9 @@ url = "libsql://<database>-<organization>.turso.io" # used when ARMADA_TURSO_U
|
|
|
223
240
|
|
|
224
241
|
[dashboard]
|
|
225
242
|
url = "https://<your-armada-dashboard>"
|
|
243
|
+
|
|
244
|
+
[api]
|
|
245
|
+
url = "https://armada.example.com" # a self-hosted Armada for `armada login`; used when ARMADA_API_URL is not set
|
|
226
246
|
```
|
|
227
247
|
|
|
228
248
|
## Configure a project
|