@rizom/ops 0.2.0-alpha.1 → 0.2.0-alpha.2
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 -0
- package/dist/brains-ops.js +76 -75
- package/dist/deploy.js +40 -40
- package/dist/index.d.ts +1 -0
- package/dist/index.js +99 -98
- package/dist/parse-args.d.ts +1 -0
- package/dist/run-command.d.ts +4 -0
- package/dist/secrets-push.d.ts +16 -0
- package/package.json +1 -1
- package/templates/rover-pilot/.github/workflows/deploy.yml +1 -0
- package/templates/rover-pilot/README.md +1 -0
- package/templates/rover-pilot/docs/onboarding-checklist.md +4 -3
package/dist/parse-args.d.ts
CHANGED
package/dist/run-command.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LoadPilotRegistryOptions } from "./load-registry";
|
|
2
2
|
import type { ParsedArgs } from "./parse-args";
|
|
3
|
+
import { type RunCommand as SecretRunCommand } from "./secrets-push";
|
|
3
4
|
import type { UserRunner } from "./user-runner";
|
|
4
5
|
export interface CommandResult {
|
|
5
6
|
success: boolean;
|
|
@@ -7,5 +8,8 @@ export interface CommandResult {
|
|
|
7
8
|
}
|
|
8
9
|
export interface CommandDependencies extends LoadPilotRegistryOptions {
|
|
9
10
|
runner?: UserRunner;
|
|
11
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
12
|
+
logger?: ((message: string) => void) | undefined;
|
|
13
|
+
secretRunCommand?: SecretRunCommand | undefined;
|
|
10
14
|
}
|
|
11
15
|
export declare function runCommand(parsed: ParsedArgs, dependencies?: CommandDependencies): Promise<CommandResult>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface SecretsPushOptions {
|
|
2
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
3
|
+
logger?: ((message: string) => void) | undefined;
|
|
4
|
+
dryRun?: boolean | undefined;
|
|
5
|
+
runCommand?: RunCommand | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface SecretsPushResult {
|
|
8
|
+
pushedKeys: string[];
|
|
9
|
+
skippedKeys: string[];
|
|
10
|
+
dryRun?: boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export type RunCommand = (command: string, args: string[], options?: {
|
|
13
|
+
stdin?: string;
|
|
14
|
+
env?: NodeJS.ProcessEnv;
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
export declare function pushPilotSecrets(rootDir: string, handle: string, options?: SecretsPushOptions): Promise<SecretsPushResult>;
|
package/package.json
CHANGED
|
@@ -38,5 +38,6 @@ When a push changes only deploy contract files, CI prints `No affected user conf
|
|
|
38
38
|
- `brains-ops init <repo>`
|
|
39
39
|
- `brains-ops render <repo>`
|
|
40
40
|
- `brains-ops onboard <repo> <handle>`
|
|
41
|
+
- `brains-ops secrets:push <repo> <handle>`
|
|
41
42
|
- `brains-ops reconcile-cohort <repo> <cohort>`
|
|
42
43
|
- `brains-ops reconcile-all <repo>`
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
3. Add or edit `users/<handle>.yaml`.
|
|
6
6
|
4. Add the user to a cohort in `cohorts/*.yaml`.
|
|
7
7
|
5. Run `bunx brains-ops render <repo>`.
|
|
8
|
-
6. Run `bunx brains-ops
|
|
9
|
-
7.
|
|
10
|
-
8.
|
|
8
|
+
6. Run `bunx brains-ops secrets:push <repo> <handle>`.
|
|
9
|
+
7. Run `bunx brains-ops onboard <repo> <handle>`.
|
|
10
|
+
8. For fleet upgrades, edit `pilot.yaml.brainVersion` and push once; CI rebuilds the shared image tag, refreshes generated user env files, and redeploys affected users.
|
|
11
|
+
9. Hand the MCP connection details to the user.
|