@rizom/ops 0.2.0-alpha.561 → 0.2.0-alpha.562
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 +1 -1
- package/dist/brains-ops.js +48 -48
- package/dist/index.js +60 -60
- package/dist/user-add.d.ts +1 -0
- package/package.json +1 -1
- package/templates/rover-pilot/README.md +1 -1
- package/templates/rover-pilot/docs/onboarding-checklist.md +3 -3
- package/templates/rover-pilot/docs/operator-playbook.md +6 -4
package/dist/user-add.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@ When a push changes only deploy contract files, CI prints `No affected user conf
|
|
|
39
39
|
- `brains-ops init <repo>`
|
|
40
40
|
- `brains-ops upgrade <repo>` — bumps `@rizom/ops` (or `--to <version>`) and refreshes the generated scaffold; the Upgrade workflow runs this on a schedule and opens a PR
|
|
41
41
|
- `brains-ops render <repo>` — regenerates `views/users.md` with live DNS, `/health/ready`, and unauthenticated `/mcp` status checks
|
|
42
|
-
- `brains-ops user:add <repo> <handle> --cohort <cohort
|
|
42
|
+
- `brains-ops user:add <repo> <handle> --cohort <cohort> [--discord] [--anchor-id <id>]` — scaffolds a browser-chat-first user with Discord disabled by default; use `--discord` to include Discord config and its per-user secret
|
|
43
43
|
- `brains-ops onboard <repo> <handle>` — creates/seeds the user's content repo with separate admin and sync tokens
|
|
44
44
|
- `brains-ops age-key:bootstrap <repo>`
|
|
45
45
|
- `brains-ops ssh-key:bootstrap <repo>`
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
- confirm `agePublicKey`
|
|
10
10
|
4. Run `bunx brains-ops user:add <repo> <handle> --cohort <cohort>`.
|
|
11
11
|
- Web chat is the primary interface; it needs no per-user setup beyond the passkey.
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
12
|
+
- The default scaffold writes `discord.enabled: false` and does not add `discordBotToken` to the per-user secrets template.
|
|
13
|
+
- To enable Discord, add `--discord`. If the user should be an anchor on Discord, also add `--anchor-id <discord-user-id>`; `--anchor-id` alone still enables Discord for compatibility.
|
|
14
|
+
- The command creates `users/<handle>.yaml`, `users/<handle>.secrets.yaml`, and the cohort membership without duplicating existing entries.
|
|
15
15
|
5. Edit the generated user file if the anchor profile needs richer metadata.
|
|
16
16
|
- Set `setup.delivery: email` and `setup.email` so the user gets the passkey setup email — this is the default onboarding path.
|
|
17
17
|
- For ATProto publishing, add `atproto.identifier` to the user file; put only `atprotoAppPassword` in the per-user secrets file.
|
|
@@ -430,9 +430,11 @@ Notes:
|
|
|
430
430
|
|
|
431
431
|
## Discord application credential checklist
|
|
432
432
|
|
|
433
|
-
Use this when enabling Discord for a
|
|
433
|
+
Discord is optional. Browser chat with passkey setup is the default pilot interface. Use this checklist only when enabling Discord for a user.
|
|
434
434
|
|
|
435
|
-
1.
|
|
435
|
+
1. Add the user with Discord enabled:
|
|
436
|
+
- `bunx brains-ops user:add . <handle> --cohort <cohort> --discord`
|
|
437
|
+
- Add `--anchor-id <discord-user-id>` if the user should be a Discord anchor. For compatibility, `--anchor-id` also enables Discord when `--discord` is omitted.
|
|
436
438
|
2. Open the Discord Developer Portal.
|
|
437
439
|
3. Create a **new application** for that user's brain.
|
|
438
440
|
4. Add a **Bot** to the application.
|
|
@@ -441,7 +443,7 @@ Use this when enabling Discord for a pilot user.
|
|
|
441
443
|
- `DISCORD_BOT_TOKEN=...`
|
|
442
444
|
- `DISCORD_PUBLIC_KEY=...`
|
|
443
445
|
- `DISCORD_APPLICATION_ID=...`
|
|
444
|
-
7.
|
|
446
|
+
7. Confirm `users/<handle>.yaml` contains `discord.enabled: true` and its secrets template contains `discordBotToken`.
|
|
445
447
|
8. Encrypt the current per-user credential payload:
|
|
446
448
|
- `bunx brains-ops secrets:encrypt . <handle>`
|
|
447
449
|
9. Reconcile/deploy the user or cohort:
|
|
@@ -454,7 +456,7 @@ Notes:
|
|
|
454
456
|
|
|
455
457
|
- Use **one Discord application credential set per user/brain**.
|
|
456
458
|
- Do not reuse the same Discord application across multiple pilot users.
|
|
457
|
-
- Discord
|
|
459
|
+
- Discord-disabled users generate `anchors: []`, no `plugins.discord` block, and require no Discord secret.
|
|
458
460
|
- The encrypted `users/<handle>.secrets.yaml.age` file is the durable checked-in deploy input; your local env is only the operator staging source.
|
|
459
461
|
- Direct MCP client access should use OAuth/passkey-capable clients where possible.
|
|
460
462
|
- When explaining the content workflow, describe it first as a normal **git repo** of **markdown/text files**.
|