@rizom/ops 0.2.0-alpha.84 → 0.2.0-alpha.841

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.
Files changed (76) hide show
  1. package/README.md +84 -3
  2. package/dist/age-key-bootstrap.d.ts +1 -1
  3. package/dist/brains-ops.js +709 -214
  4. package/dist/capability-bundle-migration.d.ts +26 -0
  5. package/dist/cert-bootstrap.d.ts +4 -2
  6. package/dist/content-repo-ref.d.ts +10 -0
  7. package/dist/content-repo.d.ts +1 -1
  8. package/dist/deploy.js +114 -3
  9. package/dist/directory-sync-stress-system.d.ts +75 -0
  10. package/dist/directory-sync-stress.d.ts +117 -0
  11. package/dist/entries/deploy.d.ts +2 -0
  12. package/dist/fetch-with-timeout.d.ts +3 -0
  13. package/dist/fs-paths.d.ts +4 -0
  14. package/dist/health-watchdog-smoke.d.ts +54 -0
  15. package/dist/image-inventory.d.ts +4 -0
  16. package/dist/image-types.d.ts +7 -0
  17. package/dist/images.d.ts +89 -0
  18. package/dist/index.d.ts +7 -0
  19. package/dist/index.js +723 -216
  20. package/dist/legacy-pilot-migration.d.ts +11 -0
  21. package/dist/legacy-projection-job-recovery.d.ts +29 -0
  22. package/dist/load-registry.d.ts +72 -7
  23. package/dist/observed-status.d.ts +1 -1
  24. package/dist/parse-args.d.ts +2 -12
  25. package/dist/preview-domain.d.ts +9 -0
  26. package/dist/provider-key-migration.d.ts +20 -0
  27. package/dist/reconcile-dry-run.d.ts +9 -0
  28. package/dist/run-command.d.ts +22 -5
  29. package/dist/runtime-image-lock.d.ts +12 -0
  30. package/dist/schema.d.ts +132 -172
  31. package/dist/secrets-encrypt.d.ts +9 -11
  32. package/dist/secrets-push.d.ts +1 -1
  33. package/dist/ssh-key-bootstrap.d.ts +1 -26
  34. package/dist/stage-legacy-crossover.d.ts +25 -0
  35. package/dist/stress-command.d.ts +14 -0
  36. package/dist/stress-git-checkout.d.ts +21 -0
  37. package/dist/stress-health-monitor.d.ts +56 -0
  38. package/dist/upgrade.d.ts +10 -0
  39. package/dist/user-add.d.ts +1 -0
  40. package/dist/user-offboard.d.ts +61 -0
  41. package/dist/verify-user.d.ts +5 -2
  42. package/package.json +51 -44
  43. package/templates/rover-pilot/.env.schema +25 -5
  44. package/templates/rover-pilot/.github/actions/varlock-env/action.yml +47 -0
  45. package/templates/rover-pilot/.github/workflows/build.yml +63 -17
  46. package/templates/rover-pilot/.github/workflows/deploy.yml +106 -70
  47. package/templates/rover-pilot/.github/workflows/directory-sync-stress.yml +119 -0
  48. package/templates/rover-pilot/.github/workflows/health-watchdog-smoke.yml +95 -0
  49. package/templates/rover-pilot/.github/workflows/offboard.yml +107 -0
  50. package/templates/rover-pilot/.github/workflows/reconcile.yml +10 -4
  51. package/templates/rover-pilot/.github/workflows/upgrade.yml +104 -0
  52. package/templates/rover-pilot/README.md +14 -6
  53. package/templates/rover-pilot/deploy/scripts/create-predeploy-backup.ts +1265 -0
  54. package/templates/rover-pilot/deploy/scripts/decrypt-user-secrets.ts +84 -23
  55. package/templates/rover-pilot/deploy/scripts/helpers.ts +3 -0
  56. package/templates/rover-pilot/deploy/scripts/install-health-watchdog.ts +144 -0
  57. package/templates/rover-pilot/deploy/scripts/provision-server.ts +51 -21
  58. package/templates/rover-pilot/deploy/scripts/pull-local-models.ts +69 -0
  59. package/templates/rover-pilot/deploy/scripts/reload-homeserver.ts +73 -0
  60. package/templates/rover-pilot/deploy/scripts/resolve-deploy-handles.ts +4 -0
  61. package/templates/rover-pilot/deploy/scripts/resolve-missing-images.ts +13 -0
  62. package/templates/rover-pilot/deploy/scripts/resolve-user-config.ts +74 -9
  63. package/templates/rover-pilot/deploy/scripts/sync-content-repo.ts +51 -47
  64. package/templates/rover-pilot/deploy/scripts/update-dns.ts +58 -12
  65. package/templates/rover-pilot/deploy/scripts/validate-secrets.ts +12 -1
  66. package/templates/rover-pilot/deploy/scripts/verify-runtime-image.ts +18 -0
  67. package/templates/rover-pilot/docs/canonical-crossover-record.md +107 -0
  68. package/templates/rover-pilot/docs/onboarding-checklist.md +24 -25
  69. package/templates/rover-pilot/docs/operator-playbook.md +351 -59
  70. package/templates/rover-pilot/docs/user-onboarding.md +48 -297
  71. package/templates/rover-pilot/package.json +1 -0
  72. package/templates/rover-pilot/pilot.yaml +7 -4
  73. package/dist/origin-ca.d.ts +0 -1
  74. package/dist/push-secrets.d.ts +0 -9
  75. package/dist/push-target.d.ts +0 -2
  76. package/dist/run-subprocess.d.ts +0 -6
@@ -1,339 +1,90 @@
1
- # Rover Pilot User Onboarding
1
+ # Welcome to your brain
2
2
 
3
- Welcome to the Rover pilot.
3
+ ---
4
4
 
5
- This guide is for first-time Rover users. You do not need prior experience with Rover, MCP, git, GitHub, or Obsidian to get started.
5
+ Most of us have more thinking happening than we can hold onto. Ideas show up in the wrong moment, notes land in five different places, and half of what you've figured out is effectively invisible by the time you need it again.
6
6
 
7
- ## What Rover is
7
+ Your brain is a private space where that thinking accumulates — notes, links, fragments, and half-formed ideas — plus an AI that can work with all of it. It can find things you saved months ago, connect topics, or help turn a rough note into a draft. The more useful material you add, the more useful it becomes.
8
8
 
9
- Rover is your private AI assistant for working with your own notes, links, and ideas.
9
+ ---
10
10
 
11
- For the current pilot, the normal core experience is:
11
+ ## What it is
12
12
 
13
- - **Passkey setup email** — your secure first step
14
- - **Discord** — the main chat interface when enabled for your pilot
15
- - **Dashboard** — your browser overview at `https://<handle>.rizom.ai/`
16
- - **MCP** — optional direct access from OAuth/passkey-capable AI clients
13
+ Your brain is a private knowledge companion. It holds your notes, links, and ideas and helps you think with them, not just store them.
17
14
 
18
- Some users may also receive:
15
+ Ask a question and it searches what you've saved. Give it a fragment of thinking and it can help develop it.
19
16
 
20
- - **CMS** access at `https://<handle>.rizom.ai/cms`
21
- - **GitHub/content repo** access for editing the underlying markdown files
22
- - **Obsidian** instructions for a local file-based workflow
17
+ ## Getting in
23
18
 
24
- If we did not explicitly give you CMS, GitHub, MCP, or Obsidian instructions, you can ignore those sections for now.
19
+ We'll send you a personal URL such as `https://<handle>.rizom.ai/`.
25
20
 
26
- ## Start here: setup
21
+ The first time you open it, you will be asked to set a passkey. No password is required after that.
27
22
 
28
- 1. Open the setup email from Rover.
29
- 2. Click the passkey setup link.
30
- 3. Register a passkey in your browser.
31
- 4. Open your Dashboard: `https://<handle>.rizom.ai/`.
32
- 5. If Discord is enabled for you, send Rover a first message there.
33
- 6. If we asked you to test MCP, use the separate MCP connection instructions we sent for your pilot.
23
+ Your main interfaces are:
34
24
 
35
- ## Your setup email
25
+ - **Chat** (`/chat`) — talk to your brain;
26
+ - **Dashboard/site** (`/`) — the configured browser surface;
27
+ - **Studio** (`/studio`) — edit durable content in a browser.
36
28
 
37
- The setup email contains a single-use passkey setup link.
29
+ Start with Chat.
38
30
 
39
- Treat that link like a temporary password:
31
+ ## Your first five minutes
40
32
 
41
- - do not forward it
42
- - use it once
43
- - expect it to expire
44
- - ask us for help if it has expired or does not work
33
+ 1. Open Chat and say: _Help me save my first note._
34
+ 2. Save a thought, link, or idea. It does not need to be polished.
35
+ 3. Ask about it and inspect what comes back.
45
36
 
46
- After you register your passkey, the setup link closes. Your passkey becomes the sign-in method for Rover's browser and OAuth-capable client flows.
37
+ That save–ask–use loop is the core workflow.
47
38
 
48
- If your Rover already existed before you received this email, nothing is being reset. The email is just the secure handoff for registering your own passkey so you can sign in yourself.
39
+ ## Chat or Studio?
49
40
 
50
- ## Your first Rover session
41
+ **Chat** is for thinking aloud, asking questions, saving things quickly, and day-to-day work.
51
42
 
52
- Start in **Discord** if it is enabled for your pilot. That is the normal first interface.
43
+ **Studio** is for deliberate browsing and editing. It becomes more useful as your content grows.
53
44
 
54
- ### 1. Say hello
45
+ ## Other interfaces and peer brains
55
46
 
56
- Send:
47
+ Chat is primary. Your configured posture may also enable Discord, Slack, MCP clients, or agent-to-agent calls. We will send setup steps for integrations enabled for your instance.
57
48
 
58
- > What can you help me do, and what should I use you for?
49
+ With permission, you can save another participant's brain as a contact and call it by its shared address:
59
50
 
60
- Rover should answer with a short overview of what it can do.
51
+ - _Add jane.rizom.ai to my contacts._
52
+ - _Call jane.rizom.ai and ask [your question]._
61
53
 
62
- ### 2. Create your first note
54
+ ## Connecting other tools
63
55
 
64
- Ask Rover to save a simple note:
56
+ MCP is a standard protocol that lets compatible AI clients use your brain's tools and lets configured integrations connect to external services. If MCP is part of your setup, we will send specific instructions alongside your URL.
65
57
 
66
- > Save a note: I am trying Rover because I want a better way to collect ideas, links, and questions in one place.
58
+ ## Common questions
67
59
 
68
- Or:
60
+ **How do I access my data?**
69
61
 
70
- > Help me save my first note.
62
+ Use the Studio. If your cohort includes GitHub access, the same durable markdown also lives in a private repository.
71
63
 
72
- ### 3. Add your first link
64
+ **Does it search the public internet?**
73
65
 
74
- Send Rover a link you want to remember:
66
+ Not by default. Answers are grounded in your own knowledge unless an explicitly configured integration provides another source.
75
67
 
76
- > Save this link and tell me why it might be useful later: https://example.com
68
+ **What does this cost?**
77
69
 
78
- Or:
70
+ Nothing during the pilot; hosting is covered by the programme.
79
71
 
80
- > Add this as a link about tools I want to revisit: https://example.com
72
+ ## This is a pilot
81
73
 
82
- Rover should save the link and, when possible, keep a short description of why it matters.
74
+ The product works, but it is not finished. You will encounter rough edges and missing behavior. If something breaks or falls short, tell us what you tried, what you expected, and what happened.
83
75
 
84
- ### 4. Upload an existing Markdown doc
76
+ A built-in wishlist can record unsupported requests as product feedback.
85
77
 
86
- If you already have notes or docs in Markdown, you do not need to retype them.
78
+ ## Your access details
87
79
 
88
- Upload a `.md` file and ask Rover to save or import it:
89
-
90
- > Save this Markdown doc in my notes.
91
-
92
- Or:
93
-
94
- > Import this doc and tell me what it is about.
95
-
96
- This is often the fastest way to give Rover useful context.
97
-
98
- ### 5. Ask Rover about what you just added
99
-
100
- After you have saved a note, link, or Markdown doc, ask Rover to reflect it back:
101
-
102
- > What have I added so far?
103
-
104
- Or:
105
-
106
- > What do you know about what I am interested in so far?
107
-
108
- This is the basic Rover loop: add material, then ask Rover to help you think with it.
109
-
110
- ### 6. Try a more useful task
111
-
112
- Once Rover has a little context, try one of these:
113
-
114
- > Summarize my notes so far.
115
-
116
- > What themes do you see in what I have added?
117
-
118
- > Turn my rough note into a clearer paragraph.
119
-
120
- > Help me make a small reading list from the links I saved.
121
-
122
- These examples show the main scope of Rover: saving material, organizing it, reflecting on it, and helping you make something from it.
123
-
124
- ### 7. Ask another agent
125
-
126
- If your pilot has agent-to-agent access enabled, we will tell you which other agents you can address and how to talk to them. Otherwise Rover should clearly say that this workflow is not available yet.
127
-
128
- ## The default mental model
129
-
130
- If you remember only one thing, remember this:
131
-
132
- - **Discord** = talk to Rover, when enabled
133
- - **Dashboard** = browser overview
134
- - **MCP** = optional direct client integration through OAuth/passkey login
135
- - **CMS / git / Obsidian** = optional content-editing workflows when we enable them for you
136
-
137
- ## What you will receive from us
138
-
139
- Depending on your pilot cohort, we will send you some or all of these:
140
-
141
- - a passkey setup email from Rover
142
- - this onboarding guide, or a link to it
143
- - confirmation that Discord is enabled for you, plus the invite/setup steps
144
- - your **Dashboard URL**: `https://<handle>.rizom.ai/`
145
- - CMS URL and GitHub token instructions, if CMS editing is enabled
146
- - private content repo access, if file-based editing is enabled
147
- - separate MCP connection instructions, if MCP testing is enabled
148
- - any extra instructions if we are testing a specific workflow with your cohort
149
-
150
- Keep setup links, GitHub tokens, and any MCP credentials separate. Do not paste the passkey setup link into an MCP client.
151
-
152
- ## Discord
153
-
154
- Discord is the default chat interface when it is enabled for your pilot. It is separate from the passkey setup email: the email sets up browser/client identity, while Discord is where many users chat with Rover day to day.
155
-
156
- Use it to:
157
-
158
- - save quick notes
159
- - drop in links
160
- - ask questions
161
- - use Rover day to day without setting up a separate client
162
-
163
- If Discord is enabled, we will send the exact invite/setup steps separately.
164
-
165
- ## Dashboard basics
166
-
167
- The Dashboard is the browser landing page for your Rover.
168
-
169
- Open it at:
170
-
171
- ```text
172
- https://<handle>.rizom.ai/
173
- ```
174
-
175
- Use it to confirm your Rover is up, see available endpoints, and orient yourself before using optional tools. This is not meant to be a public marketing website.
176
-
177
- ## Optional: Working in the CMS
178
-
179
- If CMS is enabled for you, open:
180
-
181
- ```text
182
- https://<handle>.rizom.ai/cms
183
- ```
184
-
185
- The CMS is a browser editor for your Rover content. It may ask for GitHub access because your content lives in a private GitHub repo.
186
-
187
- Use the CMS when you want to:
188
-
189
- - create or edit notes in the browser
190
- - add existing Markdown docs
191
- - browse structured content collections
192
- - make cleaner edits than you would in chat
193
-
194
- A good first CMS task is:
195
-
196
- 1. open the **Notes** collection
197
- 2. create a note titled `Why I’m using Rover`
198
- 3. write 3 to 5 sentences
199
- 4. save it
200
- 5. refresh the CMS and confirm the note is still there
201
-
202
- If the CMS asks for GitHub access, use the fine-grained GitHub token for your private Rover content repo. If you were not given CMS/GitHub instructions, skip this section.
203
-
204
- ## Optional: direct MCP access
205
-
206
- MCP is an optional way to connect Rover directly to an AI client that supports remote HTTP MCP.
207
-
208
- Use MCP only if we ask you to test it or if you already use a client that supports remote HTTP / Streamable HTTP MCP servers.
209
-
210
- We will send MCP connection details separately when MCP testing is enabled. The normal hosted MCP path is `https://<handle>.rizom.ai/mcp`, but use the exact server URL we send for your pilot.
211
-
212
- ### What the MCP login flow looks like
213
-
214
- If your client supports OAuth / browser login, the normal flow is:
215
-
216
- 1. In your MCP client, add a remote MCP server.
217
- 2. Enter the Rover MCP server URL we sent you.
218
- 3. The client discovers Rover's OAuth settings automatically.
219
- 4. The client opens a browser window for Rover login.
220
- 5. You sign in with your passkey.
221
- 6. Rover asks you to approve client access.
222
- 7. The client receives an access token automatically.
223
- 8. You can use Rover tools from that client.
224
-
225
- You should not need to copy a setup link into the client. The setup link is only for registering your first passkey.
226
-
227
- If your client asks for a token or other credential, use only the MCP instructions we sent separately. Treat any MCP credentials like a password. Do not share them.
228
-
229
- ### Client-specific notes
230
-
231
- Different MCP clients support remote HTTP and OAuth at different speeds. If you are using Claude Desktop, Cursor, VS Code, MCP Inspector, or another client, tell us the exact version before assuming it should work.
232
-
233
- ### If MCP does not work
234
-
235
- Send us:
236
-
237
- - the client name
238
- - the client version
239
- - the exact error message
240
- - a screenshot if possible
241
- - the server URL you entered, without any secret token
242
-
243
- Do not paste your passkey setup link into an MCP client.
244
-
245
- ## Optional: git, text files, and Obsidian
246
-
247
- Rover content can also live as normal markdown/text files in a private GitHub repo.
248
-
249
- This workflow is optional. Use it only if we explicitly enabled it for you or if you want more control.
250
-
251
- If enabled, we will:
252
-
253
- 1. create or confirm your private content repo
254
- 2. invite your GitHub account to that repo
255
- 3. send you the repo URL
256
- 4. explain whether to use GitHub Desktop, command-line git, Obsidian, or the CMS
257
-
258
- You do not need GitHub repo access just to use Rover in Discord.
259
-
260
- ## Wishlist: when Rover cannot do something yet
261
-
262
- Rover has a built-in wishlist.
263
-
264
- If you ask for something Rover cannot do yet, it should explain the limitation and save the request as a wish. This helps us see which missing capabilities matter most.
265
-
266
- ## What to expect in the pilot
267
-
268
- This is a real working system, but it is still an early pilot. Expect some rough edges, setup steps that may still be a bit manual, and improvements during the pilot.
269
-
270
- ## Privacy and boundaries
271
-
272
- For the pilot:
273
-
274
- - your Rover is deployed specifically for you
275
- - browser/client access uses passkeys/OAuth where supported
276
- - if you are using MCP, we will send separate access instructions
277
- - your content repo is private when repo access is enabled
278
- - avoid putting highly sensitive material into the pilot unless we have explicitly agreed that it is in scope
279
-
280
- If you are unsure whether something belongs in Rover, ask us first.
281
-
282
- ## Troubleshooting
283
-
284
- ### I did not receive the setup email
285
-
286
- Check spam/promotions first. If it is not there, tell us which email address we should use.
287
-
288
- ### The setup link expired or does not work
289
-
290
- Reply to your Rover operator. We can rotate/reissue setup.
291
-
292
- ### I opened the domain and it does not look like a normal public site
293
-
294
- That is expected. The root URL is your Dashboard, not a public marketing site.
295
-
296
- ### The browser asks me to use a passkey
297
-
298
- That is expected after setup. Use the same passkey you registered from the setup email.
299
-
300
- ### My MCP client cannot connect
301
-
302
- Send us the client name, version, exact error message, and a screenshot if possible.
303
-
304
- ### The CMS asks for GitHub auth and I am not sure what to do
305
-
306
- That is expected only if CMS is enabled for you. Use the GitHub token instructions we sent for your private Rover content repo. If you did not receive those instructions, ask us before continuing.
307
-
308
- ## What feedback helps us most
309
-
310
- We especially want to hear:
311
-
312
- - what was confusing during setup
313
- - whether the setup email and passkey flow made sense
314
- - whether Discord and Dashboard made sense
315
- - what felt useful immediately
316
- - what felt weak, awkward, or unclear
317
- - what you expected Rover to do but could not get it to do
318
- - whether you would keep using it after the pilot
319
-
320
- Short, honest feedback is perfect.
321
-
322
- ## Quick handoff template
323
-
324
- When we onboard you, the message will look roughly like this:
80
+ We will send details in this shape:
325
81
 
326
82
  ```text
327
- Setup email: sent to <email>
328
- Onboarding guide: attached / linked
83
+ Chat URL: https://<handle>.rizom.ai/chat
329
84
  Dashboard URL: https://<handle>.rizom.ai/
330
- Discord enabled: yes/no
331
- Discord setup: <invite link or setup steps>
332
- MCP access: optional / enabled / not enabled
333
- MCP setup: sent separately if enabled
334
- CMS enabled: yes/no
335
- CMS URL: https://<handle>.rizom.ai/cms
336
- Content repo access: yes/no
85
+ Studio URL: https://<handle>.rizom.ai/studio
86
+ Discord: yes/no — setup steps if enabled
87
+ MCP: enabled/not enabled — setup details if enabled
337
88
  ```
338
89
 
339
- If anything is unclear, reply with the exact error text or a screenshot and we will help.
90
+ If anything is unclear, reply with what you see and we will help.
@@ -7,6 +7,7 @@
7
7
  "age-encryption": "^0.3.0"
8
8
  },
9
9
  "devDependencies": {
10
+ "@brains/utils": "workspace:*",
10
11
  "@rizom/ops": "__BRAINS_OPS_VERSION__"
11
12
  }
12
13
  }
@@ -1,11 +1,14 @@
1
- schemaVersion: 1
2
1
  brainVersion: 0.1.1-alpha.14
3
- model: rover
2
+ bundleContract: capability-bundles-v1
4
3
  githubOrg: <github-org>
5
4
  contentRepoPrefix: rover-
6
5
  domainSuffix: .rizom.ai
7
- preset: core
8
- aiApiKey: AI_API_KEY
6
+ bundles:
7
+ - core
8
+ - media
9
+ - web
10
+ - chat
11
+ openaiApiKey: OPENAI_API_KEY
9
12
  gitSyncToken: GIT_SYNC_TOKEN
10
13
  contentRepoAdminToken: CONTENT_REPO_ADMIN_TOKEN
11
14
  agePublicKey: age1replace-with-your-public-key
@@ -1 +0,0 @@
1
- export { createOriginCertificateRequest, generateOriginKeyPair, issueCloudflareOriginCertificate, setCloudflareZoneSslStrict, type CloudflareOriginCaResult, type FetchLike, type OriginCertificateRequest, type OriginKeyPair, } from "@brains/deploy-support/origin-ca";
@@ -1,9 +0,0 @@
1
- import { normalizePushTarget, type PushTarget } from "./push-target";
2
- import { type RunCommand } from "./run-subprocess";
3
- export type SecretPair = readonly [name: string, value: string];
4
- export interface PushSecretsOptions {
5
- runCommand?: RunCommand | undefined;
6
- logger?: ((message: string) => void) | undefined;
7
- }
8
- export declare function pushSecretsToBackend(_target: PushTarget, secrets: readonly SecretPair[], options?: PushSecretsOptions): Promise<void>;
9
- export { normalizePushTarget };
@@ -1,2 +0,0 @@
1
- export type PushTarget = "gh";
2
- export declare function normalizePushTarget(value?: string): PushTarget | undefined;
@@ -1,6 +0,0 @@
1
- export type RunCommand = (command: string, args: string[], options?: {
2
- stdin?: string;
3
- env?: NodeJS.ProcessEnv;
4
- cwd?: string;
5
- }) => Promise<void>;
6
- export declare const runSubprocess: RunCommand;