@rizom/ops 0.2.0-alpha.6 → 0.2.0-alpha.61
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 +6 -3
- package/dist/age-key-bootstrap.d.ts +17 -0
- package/dist/brains-ops.js +305 -149
- package/dist/cert-bootstrap.d.ts +2 -2
- package/dist/content-repo.d.ts +13 -0
- package/dist/default-user-runner.d.ts +1 -1
- package/dist/deploy.js +24 -24
- package/dist/index.d.ts +3 -0
- package/dist/index.js +305 -149
- package/dist/load-registry.d.ts +19 -3
- package/dist/onboard-user.d.ts +2 -2
- package/dist/parse-args.d.ts +2 -0
- package/dist/push-secrets.d.ts +1 -1
- package/dist/reconcile-all.d.ts +2 -2
- package/dist/reconcile-cohort.d.ts +2 -2
- package/dist/reconcile-lib.d.ts +4 -2
- package/dist/run-command.d.ts +0 -1
- package/dist/run-subprocess.d.ts +1 -0
- package/dist/schema.d.ts +100 -0
- package/dist/secrets-encrypt.d.ts +32 -0
- package/dist/secrets-push.d.ts +1 -1
- package/dist/user-add.d.ts +15 -0
- package/dist/user-runner.d.ts +5 -0
- package/package.json +7 -3
- package/templates/rover-pilot/.env.schema +11 -0
- package/templates/rover-pilot/.github/workflows/build.yml +1 -0
- package/templates/rover-pilot/.github/workflows/deploy.yml +74 -19
- package/templates/rover-pilot/.github/workflows/reconcile.yml +16 -2
- package/templates/rover-pilot/README.md +6 -3
- package/templates/rover-pilot/deploy/scripts/decrypt-user-secrets.ts +83 -0
- package/templates/rover-pilot/deploy/scripts/provision-server.ts +1 -1
- package/templates/rover-pilot/deploy/scripts/resolve-deploy-handles.ts +15 -4
- package/templates/rover-pilot/deploy/scripts/resolve-user-config.ts +12 -12
- package/templates/rover-pilot/deploy/scripts/sync-content-repo.ts +179 -0
- package/templates/rover-pilot/deploy/scripts/update-dns.ts +14 -4
- package/templates/rover-pilot/docs/onboarding-checklist.md +28 -11
- package/templates/rover-pilot/docs/operator-playbook.md +43 -5
- package/templates/rover-pilot/docs/user-onboarding.md +505 -0
- package/templates/rover-pilot/package.json +3 -0
- package/templates/rover-pilot/pilot.yaml +4 -0
- package/templates/rover-pilot/users/alice.yaml +5 -1
- package/dist/user-secret-names.d.ts +0 -6
- package/templates/rover-pilot/.kamal/hooks/pre-deploy +0 -9
- package/templates/rover-pilot/deploy/Dockerfile +0 -15
- package/templates/rover-pilot/deploy/kamal/deploy.yml +0 -39
package/README.md
CHANGED
|
@@ -6,10 +6,13 @@ Operator CLI package for managing pilot brain fleet registry repos.
|
|
|
6
6
|
|
|
7
7
|
- `brains-ops init <repo>`
|
|
8
8
|
- `brains-ops render <repo>` — regenerates `views/users.md` and fills status columns from built-in live probes (`DNS`, `/health`, unauthenticated `/mcp`)
|
|
9
|
-
- `brains-ops
|
|
9
|
+
- `brains-ops user:add <repo> <handle> --cohort <cohort>` — scaffolds a user file, per-user secrets template, and cohort membership
|
|
10
|
+
- `brains-ops onboard <repo> <handle>` — creates/seeds the user's content repo using `CONTENT_REPO_ADMIN_TOKEN` for GitHub repo administration and `GIT_SYNC_TOKEN` for git clone/push
|
|
11
|
+
- `brains-ops age-key:bootstrap <repo>`
|
|
10
12
|
- `brains-ops ssh-key:bootstrap <repo>`
|
|
11
|
-
- `brains-ops cert:bootstrap <repo
|
|
12
|
-
- `brains-ops secrets:push <repo
|
|
13
|
+
- `brains-ops cert:bootstrap <repo>`
|
|
14
|
+
- `brains-ops secrets:push <repo>`
|
|
15
|
+
- `brains-ops secrets:encrypt <repo> <handle>`
|
|
13
16
|
- `brains-ops reconcile-cohort <repo> <cohort>`
|
|
14
17
|
- `brains-ops reconcile-all <repo>`
|
|
15
18
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type RunCommand } from "./run-subprocess";
|
|
2
|
+
export interface AgeKeyBootstrapOptions {
|
|
3
|
+
logger?: (message: string) => void;
|
|
4
|
+
pushTo?: string | undefined;
|
|
5
|
+
runCommand?: RunCommand | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface AgeKeyBootstrapResult {
|
|
8
|
+
createdLocalKey: boolean;
|
|
9
|
+
identityPath: string;
|
|
10
|
+
agePublicKey: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function runPilotAgeKeyBootstrap(rootDir: string, options?: AgeKeyBootstrapOptions): Promise<{
|
|
13
|
+
success: boolean;
|
|
14
|
+
message?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function bootstrapPilotAgeKey(rootDir: string, options?: AgeKeyBootstrapOptions): Promise<AgeKeyBootstrapResult>;
|
|
17
|
+
export declare function extractAgeIdentity(contents: string): string;
|