@rosthq/cli 0.7.116 → 0.7.118
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 +64 -0
- package/dist/cli-version.d.ts.map +1 -1
- package/dist/command-client.d.ts +3 -0
- package/dist/command-client.d.ts.map +1 -1
- package/dist/commands/implementation-access.d.ts +22 -0
- package/dist/commands/implementation-access.d.ts.map +1 -0
- package/dist/commands/implementation-access.test.d.ts +2 -0
- package/dist/commands/implementation-access.test.d.ts.map +1 -0
- package/dist/commands/onboarding.d.ts +11 -0
- package/dist/commands/onboarding.d.ts.map +1 -0
- package/dist/commands/onboarding.test.d.ts +2 -0
- package/dist/commands/onboarding.test.d.ts.map +1 -0
- package/dist/device-auth.d.ts +28 -0
- package/dist/device-auth.d.ts.map +1 -1
- package/dist/docs.d.ts.map +1 -1
- package/dist/forge-workspace.d.ts +31 -3
- package/dist/forge-workspace.d.ts.map +1 -1
- package/dist/generated/command-manifest.d.ts.map +1 -1
- package/dist/generator/flags.d.ts +1 -0
- package/dist/generator/flags.d.ts.map +1 -1
- package/dist/generator/groups.d.ts.map +1 -1
- package/dist/generator/verbs.d.ts +0 -1
- package/dist/generator/verbs.d.ts.map +1 -1
- package/dist/implementation-credential-store.d.ts +35 -0
- package/dist/implementation-credential-store.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25497 -19721
- package/dist/index.js.map +4 -4
- package/dist/mcp-install.d.ts +10 -0
- package/dist/mcp-install.d.ts.map +1 -1
- package/dist/redact.d.ts.map +1 -1
- package/dist/reference.d.ts.map +1 -1
- package/dist/runner-reconcile.d.ts +42 -0
- package/dist/runner-reconcile.d.ts.map +1 -0
- package/dist/runner-sandbox.d.ts +24 -0
- package/dist/runner-sandbox.d.ts.map +1 -1
- package/dist/runner-serve.d.ts +14 -1
- package/dist/runner-serve.d.ts.map +1 -1
- package/dist/skill-install.d.ts +67 -0
- package/dist/skill-install.d.ts.map +1 -0
- package/dist/skill-trust.d.ts +89 -0
- package/dist/skill-trust.d.ts.map +1 -0
- package/dist/skills.d.ts.map +1 -1
- package/dist/token-store.d.ts +12 -1
- package/dist/token-store.d.ts.map +1 -1
- package/package.json +1 -1
- package/prompts/how-tos/human-confirmations.md +2 -2
- package/prompts/how-tos/tenant-onboarding.md +80 -16
package/README.md
CHANGED
|
@@ -31,6 +31,28 @@ rost runner serve --once
|
|
|
31
31
|
|
|
32
32
|
Node does not have a separate registry to register with. `npx` and `npm i -g` resolve from registry.npmjs.org, so `npm publish --access public` is the public registration step.
|
|
33
33
|
|
|
34
|
+
## Public implementation Skill (v0 preview)
|
|
35
|
+
|
|
36
|
+
The installer fetches a signed release from GitHub and turns a general-purpose agent into a mode-aware ROST implementer. Regular mode is available today.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
rost skills install-implementation --client claude-code
|
|
40
|
+
rost skills install-implementation --client codex
|
|
41
|
+
rost skills install-implementation --client cursor
|
|
42
|
+
# Or without a prior install:
|
|
43
|
+
npx @rosthq/cli@latest skills install-implementation --client codex
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
What the installer verifies before any file is used:
|
|
47
|
+
|
|
48
|
+
1. The annotated release tag is signed against the CLI-held trust root.
|
|
49
|
+
2. The manifest's repository owner matches the trusted source.
|
|
50
|
+
3. The manifest checksum matches the pinned default release, when available.
|
|
51
|
+
4. Every fetched file matches its manifest checksum.
|
|
52
|
+
5. The release's skill protocol range is compatible with this CLI version.
|
|
53
|
+
|
|
54
|
+
v0 preview: Full Operator external-effect handoff is not yet available and activates only through live capability discovery.
|
|
55
|
+
|
|
34
56
|
## Reference corpus
|
|
35
57
|
|
|
36
58
|
The CLI includes the public implementation reference corpus for local agents and operators:
|
|
@@ -41,3 +63,45 @@ rost reference search "agent tools"
|
|
|
41
63
|
rost reference get agent-reference-map
|
|
42
64
|
pnpm --filter @rosthq/cli dev -- reference get agent-reference-map
|
|
43
65
|
```
|
|
66
|
+
|
|
67
|
+
## Implementation access (agent-led setup)
|
|
68
|
+
|
|
69
|
+
A local setup agent can run under a bounded, owner-approved implementation credential instead of the human operator's personal session. This is useful when an external agent (Claude Code, Codex, Cursor, or another headless shell) is driving onboarding on a separate machine.
|
|
70
|
+
|
|
71
|
+
There are two credential families:
|
|
72
|
+
|
|
73
|
+
- **Human operator session** — the ordinary Supabase session created by `rost login` or `rost login --device`. It is stored in the user credential slot (OS keychain or the owner-only file store with `ROST_CLI_ALLOW_FILE_TOKEN_STORE=1`). An interactive human operator can approve their own confirmations in a TTY.
|
|
74
|
+
- **Implementation credential** — a short-lived, run-bound `rost_impl_` bearer minted only after a human owner approves the device-code flow at `/auth/device`. It is stored in a separate implementation-bootstrap slot (`implementation-bootstrap` account / `implementation-bootstrap.json`), never in the user session slot.
|
|
75
|
+
|
|
76
|
+
Start a bounded implementation run:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npx @rosthq/cli@latest implementation access start --source-client claude-code
|
|
80
|
+
npx @rosthq/cli@latest implementation access start --source-client codex
|
|
81
|
+
npx @rosthq/cli@latest implementation access start --source-client cursor
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Check, complete, or abandon the run:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
rost implementation access status
|
|
88
|
+
rost implementation access complete
|
|
89
|
+
rost implementation access abandon
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Read onboarding state and resume context:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
rost onboard status
|
|
96
|
+
rost onboard resume
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Register the same `rost_impl_` bearer with an MCP client. This uses the bearer directly; there is no `mcp_token.create` step and no second token:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
rost implementation access install-mcp --client claude-code
|
|
103
|
+
rost implementation access install-mcp --client codex
|
|
104
|
+
rost implementation access install-mcp --client cursor
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The implementation credential is intentionally narrow and fail-closed. It can run vetted reads (for example `onboarding.status`, `graph.get`, `charter.get/list`, `compass.get_current`, `goal.list`, `agent.list_fleet`, `system.health`), stage human-gated drafts (`agent.create_custom`, `agent.create_from_template`, `compass.set`, `compass.approve_version`, `onboarding.finish`), and close its own run. Everything else, including direct durable mutations and `confirmation.approve`, is denied. The policy module is `packages/commands/src/implementation-bootstrap-policy.ts` and is enforced by both the runtime guard and a CI drift test.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-version.d.ts","sourceRoot":"","sources":["../src/cli-version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-version.d.ts","sourceRoot":"","sources":["../src/cli-version.ts"],"names":[],"mappings":"AA2BA,wBAAsB,cAAc,CAClC,eAAe,GAAE,MAAM,GAAG,SAAuF,GAChH,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWxB"}
|
package/dist/command-client.d.ts
CHANGED
|
@@ -28,12 +28,15 @@ export declare class CommandClientError extends Error {
|
|
|
28
28
|
export type CommandClientOptions = {
|
|
29
29
|
appUrl: string;
|
|
30
30
|
token: string;
|
|
31
|
+
credentialKind: "user_session" | "implementation_bootstrap";
|
|
31
32
|
fetchImpl?: typeof fetch;
|
|
32
33
|
};
|
|
33
34
|
export declare class CommandClient {
|
|
34
35
|
private readonly appUrl;
|
|
35
36
|
private readonly token;
|
|
36
37
|
private readonly fetchImpl;
|
|
38
|
+
private readonly _credentialKind;
|
|
39
|
+
get credentialKind(): "user_session" | "implementation_bootstrap";
|
|
37
40
|
constructor(options: CommandClientOptions);
|
|
38
41
|
execute(commandId: string, body?: unknown, options?: {
|
|
39
42
|
targetSeatId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-client.d.ts","sourceRoot":"","sources":["../src/command-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eA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EAAE,eAAe,CAAC;gBAExB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe;CAQxE;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,cAAc,GAAG,0BAA0B,CAAC;IAC5D,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B,CAAC;AAEF,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8C;IAE9E,IAAI,cAAc,IAAI,cAAc,GAAG,0BAA0B,CAEhE;gBAEW,OAAO,EAAE,oBAAoB;IAOnC,OAAO,CACX,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,OAAY,EAClB,OAAO,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAO,GACtC,OAAO,CAAC,sBAAsB,CAAC;CA2CnC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CommandClient } from "../command-client.js";
|
|
2
|
+
import { pollDeviceAuthorizationHandoff } from "../device-auth.js";
|
|
3
|
+
import { type ImplementationCredentialStore } from "../implementation-credential-store.js";
|
|
4
|
+
export type ImplementationAccessAction = "start" | "status" | "complete" | "abandon";
|
|
5
|
+
type CliIo = {
|
|
6
|
+
stdout: Pick<NodeJS.WriteStream, "write">;
|
|
7
|
+
stderr: Pick<NodeJS.WriteStream, "write">;
|
|
8
|
+
};
|
|
9
|
+
export type ImplementationAccessDeps = {
|
|
10
|
+
appUrl: string;
|
|
11
|
+
createImplementationStore(): ImplementationCredentialStore;
|
|
12
|
+
pollDeviceAuthorizationHandoff: typeof pollDeviceAuthorizationHandoff;
|
|
13
|
+
CommandClient: typeof CommandClient;
|
|
14
|
+
};
|
|
15
|
+
export declare class ImplementationAccessError extends Error {
|
|
16
|
+
constructor(message: string);
|
|
17
|
+
}
|
|
18
|
+
export declare function runImplementationAccess(args: string[], io: CliIo, deps: ImplementationAccessDeps): Promise<number>;
|
|
19
|
+
export declare function isDeadRunError(error: unknown): boolean;
|
|
20
|
+
export declare function defaultImplementationAccessDeps(appUrl: string): ImplementationAccessDeps;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=implementation-access.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-access.d.ts","sourceRoot":"","sources":["../../src/commands/implementation-access.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAsB,MAAM,sBAAsB,CAAC;AAGzE,OAAO,EACL,8BAA8B,EAI/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,uCAAuC,CAAC;AAe/C,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAErF,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB,IAAI,6BAA6B,CAAC;IAC3D,8BAA8B,EAAE,OAAO,8BAA8B,CAAC;IACtE,aAAa,EAAE,OAAO,aAAa,CAAC;CACrC,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,KAAK;gBACtC,OAAO,EAAE,MAAM;CAI5B;AAKD,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,EAAE,KAAK,EACT,IAAI,EAAE,wBAAwB,GAC7B,OAAO,CAAC,MAAM,CAAC,CA8BjB;AA2ID,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAStD;AAiGD,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,MAAM,GAAG,wBAAwB,CAOxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-access.test.d.ts","sourceRoot":"","sources":["../../src/commands/implementation-access.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommandClient } from "../command-client.js";
|
|
2
|
+
type CliIo = {
|
|
3
|
+
stdout: Pick<NodeJS.WriteStream, "write">;
|
|
4
|
+
stderr: Pick<NodeJS.WriteStream, "write">;
|
|
5
|
+
};
|
|
6
|
+
export type OnboardingDeps = {
|
|
7
|
+
makeClient(): Promise<CommandClient>;
|
|
8
|
+
};
|
|
9
|
+
export declare function runOnboarding(args: string[], io: CliIo, deps: OnboardingDeps): Promise<number>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=onboarding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../src/commands/onboarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,sBAAsB,CAAC;AAIzE,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAI3B,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC,CAAC;AAEF,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.test.d.ts","sourceRoot":"","sources":["../../src/commands/onboarding.test.ts"],"names":[],"mappings":""}
|
package/dist/device-auth.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { CliConfig } from "./config.js";
|
|
2
3
|
import type { CliSession } from "./token-store.js";
|
|
3
4
|
type CliIo = {
|
|
@@ -14,9 +15,36 @@ export type DeviceLoginDeps = {
|
|
|
14
15
|
}) => Promise<CliSession>;
|
|
15
16
|
now?: () => number;
|
|
16
17
|
};
|
|
18
|
+
declare const startResponseSchema: z.ZodObject<{
|
|
19
|
+
device_code: z.ZodString;
|
|
20
|
+
user_code: z.ZodString;
|
|
21
|
+
verification_uri: z.ZodString;
|
|
22
|
+
verification_uri_complete: z.ZodOptional<z.ZodString>;
|
|
23
|
+
expires_in: z.ZodNumber;
|
|
24
|
+
interval: z.ZodNumber;
|
|
25
|
+
operator_poll_secret: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
export type StartSession = z.infer<typeof startResponseSchema>;
|
|
28
|
+
type OperatorPollProof = {
|
|
29
|
+
installation_fingerprint_hash: string;
|
|
30
|
+
installation_public_key: string;
|
|
31
|
+
challenge_signature: string;
|
|
32
|
+
};
|
|
33
|
+
declare const approvedPollResponseSchema: z.ZodObject<{
|
|
34
|
+
status: z.ZodLiteral<"approved">;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
export type ApprovedPoll = z.infer<typeof approvedPollResponseSchema>;
|
|
17
37
|
export declare class DeviceLoginError extends Error {
|
|
18
38
|
constructor(message: string);
|
|
19
39
|
}
|
|
20
40
|
export declare function loginWithDeviceCode(config: CliConfig, io: CliIo, deps?: DeviceLoginDeps): Promise<CliSession>;
|
|
41
|
+
export declare function pollDeviceAuthorizationHandoff<TApproved>(config: CliConfig, io: CliIo, options: {
|
|
42
|
+
purpose?: "user_session" | "implementation_bootstrap" | "operator_grant";
|
|
43
|
+
sourceClient?: string;
|
|
44
|
+
startBody?: Record<string, unknown>;
|
|
45
|
+
operatorPollProof?: (session: StartSession) => OperatorPollProof;
|
|
46
|
+
onStart?: (session: StartSession) => void;
|
|
47
|
+
silent?: boolean;
|
|
48
|
+
}, deps: DeviceLoginDeps, mapApproved: (approved: ApprovedPoll) => TApproved | null): Promise<TApproved>;
|
|
21
49
|
export {};
|
|
22
50
|
//# sourceMappingURL=device-auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-auth.d.ts","sourceRoot":"","sources":["../src/device-auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-auth.d.ts","sourceRoot":"","sources":["../src/device-auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAcnD,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAGhD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO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SAAS,CAAC,CA2IpB"}
|
package/dist/docs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,IAAI,MAAM,CAexC;AAED,wBAAgB,sBAAsB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,IAAI,MAAM,CAexC;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAoD/C"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { type StepLedger } from "./step-ledger.js";
|
|
2
2
|
export declare const MODEL_SPAWN_ENV_ALLOWLIST: readonly ["PATH", "HOME", "USER", "LANG", "LC_ALL", "TMPDIR", "SHELL", "NODE_OPTIONS"];
|
|
3
|
-
export declare function buildModelSpawnEnv(base: NodeJS.ProcessEnv, claudeConfigDir?: string): NodeJS.ProcessEnv;
|
|
3
|
+
export declare function buildModelSpawnEnv(base: NodeJS.ProcessEnv, claudeConfigDir?: string, codexHomeDir?: string): NodeJS.ProcessEnv;
|
|
4
4
|
export declare function resolveSourceClaudeConfigDir(base: NodeJS.ProcessEnv): string;
|
|
5
|
-
export declare function provisionIsolatedClaudeConfigDir(base: NodeJS.ProcessEnv, configDir: string): Promise<string>;
|
|
5
|
+
export declare function provisionIsolatedClaudeConfigDir(base: NodeJS.ProcessEnv, configDir: string, onRepair?: (message: string) => void): Promise<string>;
|
|
6
|
+
export declare function resolveSourceCodexHomeDir(base: NodeJS.ProcessEnv): string;
|
|
7
|
+
export declare const CODEX_HOME_TMP_PREFIX = ".rost-tmp-";
|
|
8
|
+
export declare function writeFileAtomicNoFollow(dest: string, data: Buffer | string, options?: {
|
|
9
|
+
mode?: number;
|
|
10
|
+
exclusive?: boolean;
|
|
11
|
+
requireAtomic?: boolean;
|
|
12
|
+
durable?: boolean;
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
export declare function ensureVerifiedPrivateDir(dir: string, label: string, onRepair?: (message: string) => void): Promise<void>;
|
|
15
|
+
export declare function ensureVerifiedCodexHomeDir(homeDir: string, onRepair?: (message: string) => void): Promise<string>;
|
|
16
|
+
export declare function commitCodexHomeSeedMarker(homeDir: string): Promise<void>;
|
|
17
|
+
export declare function provisionIsolatedCodexHomeDir(base: NodeJS.ProcessEnv, homeDir: string, projectRoot?: string, onRepair?: (message: string) => void): Promise<string>;
|
|
18
|
+
export type CodexHomeLock = {
|
|
19
|
+
release: () => Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
export declare function codexHomeBusySummary(waitedMs: number): string;
|
|
22
|
+
export declare const CODEX_HOME_BUSY_SUMMARY: string;
|
|
23
|
+
export declare function acquireCodexHomeLock(homeDir: string, options?: {
|
|
24
|
+
waitMs?: number;
|
|
25
|
+
staleMs?: number;
|
|
26
|
+
}): Promise<CodexHomeLock | null>;
|
|
6
27
|
export type ForgeCredential = {
|
|
7
28
|
token: string;
|
|
8
29
|
expiresAt: string;
|
|
@@ -36,6 +57,9 @@ export type PrepareForgeWorkspaceOptions = {
|
|
|
36
57
|
remoteUrl?: string;
|
|
37
58
|
ledger?: StepLedger;
|
|
38
59
|
};
|
|
60
|
+
export declare function isNonFastForwardRejection(message: string): boolean;
|
|
61
|
+
export declare function isCredentialExpiryFailure(message: string, credential: ForgeCredential, now?: Date): boolean;
|
|
62
|
+
export declare function withCredentialRemint<T>(credential: ForgeCredential, remintCredential: (() => Promise<ForgeCredential>) | undefined, op: (credential: ForgeCredential) => Promise<T>): Promise<T>;
|
|
39
63
|
export declare function prepareAskpassTurnDir(baseDir: string): Promise<string>;
|
|
40
64
|
export declare function prepareForgeWorkspace(options: PrepareForgeWorkspaceOptions): Promise<ForgeWorkspace>;
|
|
41
65
|
export type PrepareMergeWorkspaceOptions = {
|
|
@@ -53,8 +77,11 @@ export type PrepareMergeWorkspaceOptions = {
|
|
|
53
77
|
ledger?: StepLedger;
|
|
54
78
|
};
|
|
55
79
|
export declare function prepareMergeWorkspace(options: PrepareMergeWorkspaceOptions): Promise<ForgeWorkspace>;
|
|
56
|
-
export declare function pushChangeset(ws: ForgeWorkspace, credential: ForgeCredential, ledger?: StepLedger
|
|
80
|
+
export declare function pushChangeset(ws: ForgeWorkspace, credential: ForgeCredential, ledger?: StepLedger, options?: {
|
|
81
|
+
remintCredential?: () => Promise<ForgeCredential>;
|
|
82
|
+
}): Promise<{
|
|
57
83
|
commitSha: string;
|
|
84
|
+
credential: ForgeCredential;
|
|
58
85
|
} | null>;
|
|
59
86
|
export declare function computeChangedPaths(ws: ForgeWorkspace): Promise<string[]>;
|
|
60
87
|
export type OpenDraftPullRequestOptions = {
|
|
@@ -70,6 +97,7 @@ export type OpenDraftPullRequestOptions = {
|
|
|
70
97
|
apiBaseUrl?: string;
|
|
71
98
|
fetchImpl?: typeof fetch;
|
|
72
99
|
ledger?: StepLedger;
|
|
100
|
+
remintCredential?: () => Promise<ForgeCredential>;
|
|
73
101
|
};
|
|
74
102
|
export type ForgePullRequest = {
|
|
75
103
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-workspace.d.ts","sourceRoot":"","sources":["../src/forge-workspace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forge-workspace.d.ts","sourceRoot":"","sources":["../src/forge-workspace.ts"],"names":[],"mappings":"AA6CA,OAAO,EAAqB,KAAK,UAAU,EAAiB,MAAM,kBAAkB,CAAC;AASrF,eAAO,MAAM,yBAAyB,wFAc5B,CAAC;AAEX,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,CAAC,UAAU,EAOvB,eAAe,CAAC,EAAE,MAAM,EAMxB,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CAAC,UAAU,CA0BnB;AAcD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAQ5E;AAOD,wBAAsB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IAC5B,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBhB;AAgBD,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CA0BxH;AAiBD,wBAAsB,eAAe,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAOvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/command-manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,eAAO,MAAM,gBAAgB,EAAE,SAAS,oBAAoB,
|
|
1
|
+
{"version":3,"file":"command-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/command-manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,eAAO,MAAM,gBAAgB,EAAE,SAAS,oBAAoB,EAiS3D,CAAC"}
|
|
@@ -4,6 +4,7 @@ export type FlagOverrides = {
|
|
|
4
4
|
flagAliases?: Readonly<Record<string, string>>;
|
|
5
5
|
primaryPositional?: string;
|
|
6
6
|
defaults?: Readonly<Record<string, unknown>>;
|
|
7
|
+
negatedFlags?: Readonly<Record<string, string>>;
|
|
7
8
|
};
|
|
8
9
|
export declare function booleanFlagsFor(entry: CommandManifestEntry, overrides?: FlagOverrides): Set<string>;
|
|
9
10
|
export declare function buildBodyFromFlags(entry: CommandManifestEntry, parsed: ParsedFlags, positional?: string, overrides?: FlagOverrides): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../src/generator/flags.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../src/generator/flags.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,oBAAoB,EAAiB,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAwB,KAAK,WAAW,EAAc,MAAM,cAAc,CAAC;AA2BlF,MAAM,MAAM,aAAa,GAAG;IAG1B,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAE/C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAI3B,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAI7C,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACjD,CAAC;AAMF,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,EAAE,SAAS,GAAE,aAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,CAsBvG;AA6GD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,WAAW,EACnB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,GAAE,aAAkB,GAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsFzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/generator/groups.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/generator/groups.ts"],"names":[],"mappings":"AA2CA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAM1D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKhF,CAAC;AAi3CF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAyQjD,CAAC"}
|
|
@@ -15,5 +15,4 @@ export declare function manifestById(commandId: string): CommandManifestEntry |
|
|
|
15
15
|
export declare function renderVerbSchema(entry: CommandManifestEntry): string;
|
|
16
16
|
export declare function groupUsage(bin: string, group: string, spec: GroupSpec): string;
|
|
17
17
|
export declare function makeGroupWrapper(group: string, spec: GroupSpec): Wrapper;
|
|
18
|
-
export declare function autoGroupSpec(namespace: string): GroupSpec;
|
|
19
18
|
//# sourceMappingURL=verbs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verbs.d.ts","sourceRoot":"","sources":["../../src/generator/verbs.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAErF,OAAO,EAOL,KAAK,OAAO,EAEb,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,CAAC;IAIrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IAEtB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAEhF;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CA2BpE;AAYD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAa9E;
|
|
1
|
+
{"version":3,"file":"verbs.d.ts","sourceRoot":"","sources":["../../src/generator/verbs.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAErF,OAAO,EAOL,KAAK,OAAO,EAEb,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,CAAC;IAIrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IAEtB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAEhF;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CA2BpE;AAYD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAa9E;AA4CD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAMxE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ExecFile } from "./token-store.js";
|
|
3
|
+
declare const implementationBootstrapCredentialSchema: z.ZodObject<{
|
|
4
|
+
token: z.ZodString;
|
|
5
|
+
token_id: z.ZodString;
|
|
6
|
+
tenant_id: z.ZodString;
|
|
7
|
+
implementation_run_id: z.ZodString;
|
|
8
|
+
scope: z.ZodLiteral<"implementation_bootstrap">;
|
|
9
|
+
expires_at: z.ZodString;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type ImplementationBootstrapCredential = z.infer<typeof implementationBootstrapCredentialSchema>;
|
|
12
|
+
export type ImplementationCredentialStore = {
|
|
13
|
+
read(): Promise<ImplementationBootstrapCredential | null>;
|
|
14
|
+
write(credential: ImplementationBootstrapCredential): Promise<void>;
|
|
15
|
+
clear(): Promise<void>;
|
|
16
|
+
describe(): string;
|
|
17
|
+
};
|
|
18
|
+
export declare class ImplementationFileTokenStore implements ImplementationCredentialStore {
|
|
19
|
+
private readonly filePath;
|
|
20
|
+
constructor(filePath?: string);
|
|
21
|
+
read(): Promise<ImplementationBootstrapCredential | null>;
|
|
22
|
+
write(credential: ImplementationBootstrapCredential): Promise<void>;
|
|
23
|
+
clear(): Promise<void>;
|
|
24
|
+
describe(): string;
|
|
25
|
+
private chmodOwnerOnly;
|
|
26
|
+
}
|
|
27
|
+
export type CreateImplementationCredentialStoreOptions = {
|
|
28
|
+
platform?: NodeJS.Platform;
|
|
29
|
+
env?: NodeJS.ProcessEnv;
|
|
30
|
+
execFile?: ExecFile;
|
|
31
|
+
stderr?: Pick<NodeJS.WriteStream, "write">;
|
|
32
|
+
};
|
|
33
|
+
export declare function createImplementationCredentialStore(options?: CreateImplementationCredentialStoreOptions): ImplementationCredentialStore;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=implementation-credential-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-credential-store.d.ts","sourceRoot":"","sources":["../src/implementation-credential-store.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAOL,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAC;AAO1B,QAAA,MAAM,uCAAuC;;;;;;;kBAOlC,CAAC;AAEZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,IAAI,OAAO,CAAC,iCAAiC,GAAG,IAAI,CAAC,CAAC;IAC1D,KAAK,CAAC,UAAU,EAAE,iCAAiC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,QAAQ,IAAI,MAAM,CAAC;CACpB,CAAC;AA8OF,qBAAa,4BAA6B,YAAW,6BAA6B;IACpE,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,SAAqB;IAEpD,IAAI,IAAI,OAAO,CAAC,iCAAiC,GAAG,IAAI,CAAC;IAezD,KAAK,CAAC,UAAU,EAAE,iCAAiC,GAAG,OAAO,CAAC,IAAI,CAAC;IAOnE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,QAAQ,IAAI,MAAM;YAIJ,cAAc;CAI7B;AAED,MAAM,MAAM,0CAA0C,GAAG;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,mCAAmC,CACjD,OAAO,GAAE,0CAA+C,GACvD,6BAA6B,CAmC/B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { CommandClient } from "./command-client.js";
|
|
2
3
|
import { loginWithBrowser, refreshCliSessionIfNeeded } from "./auth.js";
|
|
3
4
|
import { loginWithDeviceCode } from "./device-auth.js";
|
|
4
5
|
import { type TokenStore } from "./token-store.js";
|
|
@@ -14,6 +15,7 @@ type MainOptions = {
|
|
|
14
15
|
login?: typeof loginWithBrowser;
|
|
15
16
|
deviceLogin?: typeof loginWithDeviceCode;
|
|
16
17
|
refreshSession?: typeof refreshCliSessionIfNeeded;
|
|
18
|
+
commandClient?: typeof CommandClient;
|
|
17
19
|
};
|
|
18
20
|
export declare function main(argv?: string[], options?: MainOptions): Promise<number>;
|
|
19
21
|
export declare function isCliEntrypoint(moduleUrl: string, argvPath: string | undefined): boolean;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAoB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA6BrE,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAK1C,WAAW,CAAC,EAAE,OAAO,CAAC;IAOtB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAClD,CAAC;AAcF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC;IACX,KAAK,CAAC,EAAE,OAAO,gBAAgB,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,mBAAmB,CAAC;IACzC,cAAc,CAAC,EAAE,OAAO,yBAAyB,CAAC;IAGlD,aAAa,CAAC,EAAE,OAAO,aAAa,CAAC;CACtC,CAAC;AAEF,wBAAsB,IAAI,CAAC,IAAI,WAAwB,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CA0ZnG;AA4hBD,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAUxF"}
|