@maiaos/cli 0.1.0-canary.3 → 0.1.0-canary.4

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/dist/cli/cli.js CHANGED
@@ -255,9 +255,15 @@ const makeDefaultCliDependencies = (binding) => ({
255
255
  ...lazyDependencies(loadConnection, (module, node) => module.makeConnectionClient(node), {
256
256
  ...binding,
257
257
  names: [
258
+ "confirmConnectionGrant",
259
+ "confirmConnectionPool",
258
260
  "createConnection",
259
261
  "createGatewayConnection",
262
+ "listConnectionGrants",
263
+ "listConnectionPools",
260
264
  "listConnections",
265
+ "previewConnectionGrant",
266
+ "previewConnectionPool",
261
267
  "listConnectionModels",
262
268
  "showConnection",
263
269
  "showConnectionUsage",
@@ -0,0 +1,13 @@
1
+ import { type ConnectionGrantListParameters, type ConnectionGrantListResult, type ConnectionGrantSetConfirmParameters, type ConnectionGrantSetConfirmResult, type ConnectionGrantSetPreviewParameters, type ConnectionGrantSetPreviewResult, type ConnectionPoolListParameters, type ConnectionPoolListResult, type ConnectionPoolSetConfirmParameters, type ConnectionPoolSetConfirmResult, type ConnectionPoolSetPreviewParameters, type ConnectionPoolSetPreviewResult } from "@maiaos/sdk";
2
+ import type { CliNodeEffect, CliNodeOperations } from "../../local-node/index.js";
3
+ export type Operation<TInput, TResult> = (input: TInput) => CliNodeEffect<TResult>;
4
+ export type ConnectionAccessClient = {
5
+ readonly confirmConnectionGrant: Operation<ConnectionGrantSetConfirmParameters, ConnectionGrantSetConfirmResult>;
6
+ readonly confirmConnectionPool: Operation<ConnectionPoolSetConfirmParameters, ConnectionPoolSetConfirmResult>;
7
+ readonly listConnectionGrants: Operation<ConnectionGrantListParameters, ConnectionGrantListResult>;
8
+ readonly listConnectionPools: Operation<ConnectionPoolListParameters, ConnectionPoolListResult>;
9
+ readonly previewConnectionGrant: Operation<ConnectionGrantSetPreviewParameters, ConnectionGrantSetPreviewResult>;
10
+ readonly previewConnectionPool: Operation<ConnectionPoolSetPreviewParameters, ConnectionPoolSetPreviewResult>;
11
+ };
12
+ export declare const makeConnectionAccessClient: (node: CliNodeOperations) => ConnectionAccessClient;
13
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { connectionGrantListParametersSchema, connectionGrantSetConfirmParametersSchema, connectionGrantSetPreviewParametersSchema, connectionPoolListParametersSchema, connectionPoolSetConfirmParametersSchema, connectionPoolSetPreviewParametersSchema, } from "@maiaos/sdk";
2
+ const reads = (node) => ({
3
+ listConnectionGrants: (input) => node.runValidatedNodeOperation(input, connectionGrantListParametersSchema, (client, parameters, options) => client.listConnectionGrants(parameters, options)),
4
+ listConnectionPools: (input) => node.runValidatedNodeOperation(input, connectionPoolListParametersSchema, (client, parameters, options) => client.listConnectionPools(parameters, options)),
5
+ });
6
+ const previews = (node) => ({
7
+ previewConnectionGrant: (input) => node.runValidatedNodeOperation(input, connectionGrantSetPreviewParametersSchema, (client, parameters, options) => client.previewConnectionGrant(parameters, options)),
8
+ previewConnectionPool: (input) => node.runValidatedNodeOperation(input, connectionPoolSetPreviewParametersSchema, (client, parameters, options) => client.previewConnectionPool(parameters, options)),
9
+ });
10
+ const confirmations = (node) => ({
11
+ confirmConnectionGrant: (input) => node.runValidatedNodeOperation(input, connectionGrantSetConfirmParametersSchema, (client, parameters, options) => client.confirmConnectionGrant(parameters, options), { commandId: input.commandId }),
12
+ confirmConnectionPool: (input) => node.runValidatedNodeOperation(input, connectionPoolSetConfirmParametersSchema, (client, parameters, options) => client.confirmConnectionPool(parameters, options), { commandId: input.commandId }),
13
+ });
14
+ export const makeConnectionAccessClient = (node) => ({
15
+ ...confirmations(node),
16
+ ...previews(node),
17
+ ...reads(node),
18
+ });
19
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1,6 @@
1
+ import { type CommandContext, type CommandEffect } from "../../command-line/index.js";
2
+ export declare const runConnectionGrantList: (tokens: readonly string[], context: CommandContext) => CommandEffect;
3
+ export declare const runConnectionPoolList: (tokens: readonly string[], context: CommandContext) => CommandEffect;
4
+ export declare const runConnectionGrantSet: (tokens: readonly string[], context: CommandContext) => CommandEffect;
5
+ export declare const runConnectionPoolSet: (tokens: readonly string[], context: CommandContext) => CommandEffect;
6
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1,60 @@
1
+ import { connectionGrantSetConfirmParametersSchema, connectionPoolSetConfirmParametersSchema, } from "@maiaos/sdk";
2
+ import * as Effect from "effect/Effect";
3
+ import { CliArgumentError, confirmParameters, parseOptions, readTwoPhaseMode, runTwoPhase, TWO_PHASE_FLAGS, writeNodeResult, } from "../../command-line/index.js";
4
+ import { formatConnectionAccessResult, } from "./format.js";
5
+ import { GRANT_SET_OPTIONS, POOL_SET_OPTIONS, readGrantList, readGrantPreview, readPoolList, readPoolPreview, } from "./input.js";
6
+ const write = (context) => (result) => writeNodeResult(result, context, {
7
+ toResult: (value) => ({
8
+ command: value.method,
9
+ result: value,
10
+ }),
11
+ toText: formatConnectionAccessResult,
12
+ });
13
+ const unavailable = () => new CliArgumentError("Connection grants and pools are unavailable.");
14
+ const list = (step, read) => (tokens, context) => Effect.gen(function* () {
15
+ const operation = step(context.dependencies);
16
+ if (operation === undefined)
17
+ return yield* unavailable();
18
+ return write(context)(yield* operation(read(tokens)));
19
+ });
20
+ export const runConnectionGrantList = list((dependencies) => dependencies.listConnectionGrants, readGrantList);
21
+ export const runConnectionPoolList = list((dependencies) => dependencies.listConnectionPools, readPoolList);
22
+ const PROMPT = {
23
+ describe: (preview) => formatConnectionAccessResult({ command: preview.method, result: preview }),
24
+ question: "Apply this change?",
25
+ };
26
+ const runSet = (spec, tokens, context) => Effect.gen(function* () {
27
+ const parsed = parseOptions(tokens, spec.options, new Set(spec.flags));
28
+ const mode = readTwoPhaseMode(parsed.flags, context);
29
+ const send = spec.confirm(context.dependencies);
30
+ const preview = spec.preview(context.dependencies);
31
+ if (send === undefined || preview === undefined)
32
+ return yield* unavailable();
33
+ return yield* runTwoPhase({
34
+ confirm: (previewed) => Effect.flatMap(confirmParameters(spec.confirmSchema, previewed, ["current"]), send),
35
+ context,
36
+ mode,
37
+ preview: () => Effect.flatMap(spec.read(parsed), preview),
38
+ prompt: PROMPT,
39
+ writeConfirm: write(context),
40
+ writePreview: write(context),
41
+ });
42
+ });
43
+ const set = (spec) => (tokens, context) => runSet(spec, tokens, context);
44
+ export const runConnectionGrantSet = set({
45
+ confirm: (dependencies) => dependencies.confirmConnectionGrant,
46
+ confirmSchema: connectionGrantSetConfirmParametersSchema,
47
+ flags: ["--revoke", ...TWO_PHASE_FLAGS],
48
+ options: GRANT_SET_OPTIONS,
49
+ preview: (dependencies) => dependencies.previewConnectionGrant,
50
+ read: readGrantPreview,
51
+ });
52
+ export const runConnectionPoolSet = set({
53
+ confirm: (dependencies) => dependencies.confirmConnectionPool,
54
+ confirmSchema: connectionPoolSetConfirmParametersSchema,
55
+ flags: TWO_PHASE_FLAGS,
56
+ options: POOL_SET_OPTIONS,
57
+ preview: (dependencies) => dependencies.previewConnectionPool,
58
+ read: readPoolPreview,
59
+ });
60
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1,8 @@
1
+ import type { ConnectionGrantListResult, ConnectionGrantSetConfirmResult, ConnectionGrantSetPreviewResult, ConnectionPoolListResult, ConnectionPoolSetConfirmResult, ConnectionPoolSetPreviewResult } from "@maiaos/sdk";
2
+ export type ConnectionAccessResult = ConnectionGrantListResult | ConnectionGrantSetConfirmResult | ConnectionGrantSetPreviewResult | ConnectionPoolListResult | ConnectionPoolSetConfirmResult | ConnectionPoolSetPreviewResult;
3
+ export type CliConnectionAccessResult = {
4
+ readonly command: ConnectionAccessResult["method"];
5
+ readonly result: ConnectionAccessResult;
6
+ };
7
+ export declare const formatConnectionAccessResult: ({ result, }: CliConnectionAccessResult) => string;
8
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1,61 @@
1
+ import { formatRows, tab, withNextPage } from "../../command-line/index.js";
2
+ const scopeCell = (scope) => `${scope.kind === "project" ? "project" : "container"}:${scope.id}`;
3
+ const grantLine = (grant) => tab([
4
+ grant.grantId,
5
+ grant.connectionId,
6
+ scopeCell(grant.scope),
7
+ grant.state,
8
+ `revision=${grant.revision}`,
9
+ ]);
10
+ const poolLine = (pool) => tab([
11
+ pool.poolId,
12
+ scopeCell(pool.scope),
13
+ pool.mode,
14
+ pool.members.length === 0 ? "-" : pool.members.join(","),
15
+ `revision=${pool.revision}`,
16
+ ]);
17
+ const grantPreviewLines = (result) => [
18
+ result.current === undefined
19
+ ? tab([result.connectionId, scopeCell(result.scope), "none", "current"])
20
+ : `${grantLine(result.current)}\tcurrent`,
21
+ tab([
22
+ result.connectionId,
23
+ scopeCell(result.scope),
24
+ result.granted ? "grant" : "revoke",
25
+ "proposed",
26
+ `command=${result.commandId}`,
27
+ `expires=${result.expiresAt}`,
28
+ ]),
29
+ ].join("\n");
30
+ const poolPreviewLines = (result) => [
31
+ result.current === undefined
32
+ ? tab([scopeCell(result.scope), "none", "current"])
33
+ : `${poolLine(result.current)}\tcurrent`,
34
+ tab([
35
+ scopeCell(result.scope),
36
+ result.mode,
37
+ result.members.length === 0 ? "-" : result.members.join(","),
38
+ "proposed",
39
+ `command=${result.commandId}`,
40
+ `expires=${result.expiresAt}`,
41
+ ]),
42
+ ].join("\n");
43
+ const confirmed = (line, result) => tab([line, result.receipt.receiptId, result.delivery]);
44
+ const formatLines = (result) => {
45
+ switch (result.method) {
46
+ case "connection.grant.list":
47
+ return withNextPage(formatRows(result.items, grantLine, "No grants."), result.nextCursor).trimEnd();
48
+ case "connection.pool.list":
49
+ return withNextPage(formatRows(result.items, poolLine, "No pools."), result.nextCursor).trimEnd();
50
+ case "connection.grant.set.preview":
51
+ return grantPreviewLines(result);
52
+ case "connection.pool.set.preview":
53
+ return poolPreviewLines(result);
54
+ case "connection.grant.set.confirm":
55
+ return confirmed(grantLine(result.grant), result);
56
+ case "connection.pool.set.confirm":
57
+ return confirmed(poolLine(result.pool), result);
58
+ }
59
+ };
60
+ export const formatConnectionAccessResult = ({ result, }) => `${formatLines(result)}\n`;
61
+ //# sourceMappingURL=format.js.map
@@ -0,0 +1,3 @@
1
+ export { makeConnectionAccessClient } from "./client.js";
2
+ export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./commands.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { makeConnectionAccessClient } from "./client.js";
2
+ export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./commands.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,53 @@
1
+ import * as Effect from "effect/Effect";
2
+ import { type ParsedOptions } from "../../command-line/index.js";
3
+ type PoolMode = "off" | "rotate" | "single";
4
+ export declare const readGrantList: (tokens: readonly string[]) => {
5
+ afterCursor?: string | undefined;
6
+ limit: number;
7
+ scope?: undefined;
8
+ connectionId?: string | undefined;
9
+ state?: "active" | "revoked" | undefined;
10
+ } | {
11
+ afterCursor?: string | undefined;
12
+ limit: number;
13
+ scope: {
14
+ readonly id: string;
15
+ readonly kind: "project" | "workspace";
16
+ };
17
+ connectionId?: string | undefined;
18
+ state?: "active" | "revoked" | undefined;
19
+ };
20
+ export declare const readPoolList: (tokens: readonly string[]) => {
21
+ afterCursor?: string | undefined;
22
+ limit: number;
23
+ scope?: undefined;
24
+ } | {
25
+ afterCursor?: string | undefined;
26
+ limit: number;
27
+ scope: {
28
+ readonly id: string;
29
+ readonly kind: "project" | "workspace";
30
+ };
31
+ };
32
+ export declare const GRANT_SET_OPTIONS: ReadonlySet<string>;
33
+ export declare const readGrantPreview: (parsed: ParsedOptions) => Effect.Effect<{
34
+ commandId: string;
35
+ connectionId: string;
36
+ granted: boolean;
37
+ scope: {
38
+ readonly id: string;
39
+ readonly kind: "project" | "workspace";
40
+ };
41
+ }, never, import("effect/Crypto").Crypto>;
42
+ export declare const POOL_SET_OPTIONS: ReadonlySet<string>;
43
+ export declare const readPoolPreview: (parsed: ParsedOptions) => Effect.Effect<{
44
+ commandId: string;
45
+ members: readonly string[];
46
+ mode: PoolMode;
47
+ scope: {
48
+ readonly id: string;
49
+ readonly kind: "project" | "workspace";
50
+ };
51
+ }, never, import("effect/Crypto").Crypto>;
52
+ export {};
53
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1,83 @@
1
+ import * as Effect from "effect/Effect";
2
+ import { CliArgumentError, parseOptions, readPageSize, requirePositionals, } from "../../command-line/index.js";
3
+ import { commandIdentifier } from "../../local-node/index.js";
4
+ const SCOPE_OPTIONS = ["--container", "--project"];
5
+ const isMode = (value) => value === "off" || value === "rotate" || value === "single";
6
+ const isState = (value) => value === "active" || value === "revoked";
7
+ const readScope = (options) => {
8
+ const project = options.get("--project");
9
+ const container = options.get("--container");
10
+ if (project !== undefined && container !== undefined)
11
+ throw new CliArgumentError("Use one of '--project' or '--container'.");
12
+ if (project !== undefined)
13
+ return { id: project, kind: "project" };
14
+ return container === undefined
15
+ ? undefined
16
+ : { id: container, kind: "workspace" };
17
+ };
18
+ const requireScope = (options) => {
19
+ const scope = readScope(options);
20
+ if (scope === undefined)
21
+ throw new CliArgumentError("Use one of '--project' or '--container'.");
22
+ return scope;
23
+ };
24
+ const readPage = (options) => {
25
+ const afterCursor = options.get("--after");
26
+ return {
27
+ ...(afterCursor === undefined ? {} : { afterCursor }),
28
+ limit: readPageSize(options.get("--limit")),
29
+ };
30
+ };
31
+ const withScope = (scope) => scope === undefined ? {} : { scope };
32
+ export const readGrantList = (tokens) => {
33
+ const parsed = parseOptions(tokens, new Set([
34
+ ...SCOPE_OPTIONS,
35
+ "--after",
36
+ "--connection",
37
+ "--limit",
38
+ "--state",
39
+ ]));
40
+ requirePositionals(parsed.positionals, 0);
41
+ const connectionId = parsed.options.get("--connection");
42
+ const state = parsed.options.get("--state");
43
+ if (state !== undefined && !isState(state))
44
+ throw new CliArgumentError("Option '--state' must be 'active' or 'revoked'.");
45
+ return {
46
+ ...readPage(parsed.options),
47
+ ...(connectionId === undefined ? {} : { connectionId }),
48
+ ...withScope(readScope(parsed.options)),
49
+ ...(state === undefined ? {} : { state }),
50
+ };
51
+ };
52
+ export const readPoolList = (tokens) => {
53
+ const parsed = parseOptions(tokens, new Set([...SCOPE_OPTIONS, "--after", "--limit"]));
54
+ requirePositionals(parsed.positionals, 0);
55
+ return {
56
+ ...readPage(parsed.options),
57
+ ...withScope(readScope(parsed.options)),
58
+ };
59
+ };
60
+ export const GRANT_SET_OPTIONS = new Set([
61
+ ...SCOPE_OPTIONS,
62
+ "--command-id",
63
+ ]);
64
+ export const readGrantPreview = (parsed) => {
65
+ requirePositionals(parsed.positionals, 1);
66
+ const scope = requireScope(parsed.options);
67
+ const connectionId = parsed.positionals[0] ?? "";
68
+ const granted = !parsed.flags.has("--revoke");
69
+ return Effect.map(commandIdentifier(parsed.options.get("--command-id")), (commandId) => ({ commandId, connectionId, granted, scope }));
70
+ };
71
+ export const POOL_SET_OPTIONS = new Set([
72
+ ...SCOPE_OPTIONS,
73
+ "--command-id",
74
+ "--mode",
75
+ ]);
76
+ export const readPoolPreview = (parsed) => {
77
+ const scope = requireScope(parsed.options);
78
+ const mode = parsed.options.get("--mode") ?? "";
79
+ if (!isMode(mode))
80
+ throw new CliArgumentError("Option '--mode' must be 'off', 'rotate' or 'single'.");
81
+ return Effect.map(commandIdentifier(parsed.options.get("--command-id")), (commandId) => ({ commandId, members: parsed.positionals, mode, scope }));
82
+ };
83
+ //# sourceMappingURL=input.js.map
@@ -1,6 +1,12 @@
1
1
  import { type ConnectionCapacitySetParameters, type ConnectionCreateParameters, type ConnectionDetectParameters, type ConnectionGatewayCreateParameters, type ConnectionListParameters, type ConnectionLoginStartParameters, type ConnectionModelsListParameters, type ConnectionShowParameters, type ConnectionStateSetParameters, type ConnectionSystemConfirmParameters, type ConnectionSystemPreviewParameters, type ConnectionUpkeepConfirmParameters, type ConnectionUpkeepPreviewParameters, type ConnectionUpkeepRefreshParameters, type ConnectionUsageShowParameters } from "@maiaos/sdk";
2
2
  import type { CliNodeOperations } from "../local-node/index.js";
3
3
  export declare const makeConnectionClient: (node: CliNodeOperations) => {
4
+ confirmConnectionGrant: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantSetConfirmParameters, import("@maiaos/sdk").ConnectionGrantSetConfirmResult>;
5
+ confirmConnectionPool: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolSetConfirmParameters, import("@maiaos/sdk").ConnectionPoolSetConfirmResult>;
6
+ listConnectionGrants: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantListParameters, import("@maiaos/sdk").ConnectionGrantListResult>;
7
+ listConnectionPools: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolListParameters, import("@maiaos/sdk").ConnectionPoolListResult>;
8
+ previewConnectionGrant: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantSetPreviewParameters, import("@maiaos/sdk").ConnectionGrantSetPreviewResult>;
9
+ previewConnectionPool: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolSetPreviewParameters, import("@maiaos/sdk").ConnectionPoolSetPreviewResult>;
4
10
  listConnectionModels: (input: ConnectionModelsListParameters) => import("../local-node/client.js").CliNodeEffect<{
5
11
  readonly connectionId: string;
6
12
  readonly format: "anthropic" | "openai";
@@ -1,4 +1,5 @@
1
1
  import { connectionCapacitySetParametersSchema, connectionCreateParametersSchema, connectionDetectParametersSchema, connectionGatewayCreateParametersSchema, connectionListParametersSchema, connectionLoginStartParametersSchema, connectionModelsListParametersSchema, connectionShowParametersSchema, connectionStateSetParametersSchema, connectionSystemConfirmParametersSchema, connectionSystemPreviewParametersSchema, connectionUpkeepConfirmParametersSchema, connectionUpkeepPreviewParametersSchema, connectionUpkeepRefreshParametersSchema, connectionUsageShowParametersSchema, } from "@maiaos/sdk";
2
+ import { makeConnectionAccessClient } from "./access/index.js";
2
3
  const readClient = (node) => ({
3
4
  listConnectionModels: (input) => node.runValidatedNodeOperation(input, connectionModelsListParametersSchema, (client, parameters, options) => client.listConnectionModels(parameters, options)),
4
5
  listConnections: (input) => node.runValidatedNodeOperation(input, connectionListParametersSchema, (client, parameters, options) => client.listConnections(parameters, options)),
@@ -25,6 +26,7 @@ const upkeepClient = (node) => ({
25
26
  refreshConnectionUpkeep: (input) => node.runValidatedNodeOperation(input, connectionUpkeepRefreshParametersSchema, (client, parameters, options) => client.refreshConnectionUpkeep(parameters, options)),
26
27
  });
27
28
  export const makeConnectionClient = (node) => ({
29
+ ...makeConnectionAccessClient(node),
28
30
  ...readClient(node),
29
31
  ...mutationClient(node),
30
32
  ...signInClient(node),
@@ -1,3 +1,4 @@
1
+ export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./access/index.js";
1
2
  export { type ConnectionCliDependencies, makeConnectionClient, } from "./client.js";
2
3
  export { runConnectionCapacitySet, runConnectionCreate, runConnectionDisable, runConnectionEnable, runConnectionList, runConnectionLoginStart, runConnectionModelsList, runConnectionShow, runConnectionUsageShow, type VendorLogin, } from "./commands.js";
3
4
  export { runVendorLogin } from "./login.js";
@@ -1,3 +1,4 @@
1
+ export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./access/index.js";
1
2
  export { makeConnectionClient, } from "./client.js";
2
3
  export { runConnectionCapacitySet, runConnectionCreate, runConnectionDisable, runConnectionEnable, runConnectionList, runConnectionLoginStart, runConnectionModelsList, runConnectionShow, runConnectionUsageShow, } from "./commands.js";
3
4
  export { runVendorLogin } from "./login.js";
@@ -10,7 +10,9 @@ export const CONNECTION_TREE = {
10
10
  ["connection usage", "A Connection's usage."],
11
11
  ["connection models", "Models a Connection offers."],
12
12
  ["connection capacity", "A Connection's Session limit."],
13
- ["connection update-policy", "Whether Maia proposes vendor CLI updates."],
13
+ ["connection grant", "Grants."],
14
+ ["connection pool", "Pools."],
15
+ ["connection update-policy", "Vendor CLI update proposals."],
14
16
  ["integration", "Approve vendor executables."],
15
17
  ["integration plan", "Plan approving a vendor executable."],
16
18
  ["integration status", "A vendor integration's status."],
@@ -24,7 +26,7 @@ export const CONNECTION_TREE = {
24
26
  "setup [--max-sessions <1..16>] [--command-id <id>] [--dry-run | --confirm-stdin | --yes]",
25
27
  1,
26
28
  ["connection.system.preview", "connection.system.confirm"],
27
- "Use the installed vendor CLIs as system-default accounts.",
29
+ "Use installed vendor CLIs as system-default accounts.",
28
30
  {
29
31
  example: "maia setup --max-sessions 4",
30
32
  kind: "two-phase",
@@ -60,7 +62,7 @@ export const CONNECTION_TREE = {
60
62
  "login gateway --name <name> --base-url <url> --api-key-stdin [--max-sessions <1..16>] [--command-id <id>]",
61
63
  1,
62
64
  "connection.gateway.create",
63
- "Add an AI gateway Connection with its API key.",
65
+ "Add a gateway Connection with its API key.",
64
66
  { run: [login, "runLoginGateway"] },
65
67
  ],
66
68
  [
@@ -91,7 +93,7 @@ export const CONNECTION_TREE = {
91
93
  "connection detect [--refresh]",
92
94
  1,
93
95
  ["connection.detect", "connection.upkeep.refresh"],
94
- "Detect the installed vendor CLIs and whether newer versions exist.",
96
+ "Detect installed vendor CLIs and newer versions.",
95
97
  {
96
98
  example: "maia --json connection detect --refresh",
97
99
  kind: "composite",
@@ -102,7 +104,7 @@ export const CONNECTION_TREE = {
102
104
  "connection update-policy set <claude-code|codex-cli> <off|notify> [--command-id <id>] [--dry-run | --confirm-stdin | --yes]",
103
105
  1,
104
106
  ["connection.upkeep.preview", "connection.upkeep.confirm"],
105
- "Choose whether Maia proposes updates for a vendor CLI.",
107
+ "Set a vendor CLI's update policy.",
106
108
  {
107
109
  example: "maia connection update-policy set codex-cli off",
108
110
  kind: "two-phase",
@@ -113,7 +115,7 @@ export const CONNECTION_TREE = {
113
115
  "connection login start <connection> [--device-code] [--command-id <id>]",
114
116
  1,
115
117
  "connection.login.start",
116
- "Start a Node-side sign-in for a Connection.",
118
+ "Start a Node-side sign-in.",
117
119
  { run: [connection, "runConnectionLoginStart"] },
118
120
  ],
119
121
  [
@@ -127,7 +129,7 @@ export const CONNECTION_TREE = {
127
129
  "connection models list --connection <connection>",
128
130
  1,
129
131
  "connection.models.list",
130
- "List the models a Connection offers.",
132
+ "List a Connection's models.",
131
133
  { run: [connection, "runConnectionModelsList"] },
132
134
  ],
133
135
  [
@@ -137,6 +139,42 @@ export const CONNECTION_TREE = {
137
139
  "Set a Connection's Session limit.",
138
140
  { run: [connection, "runConnectionCapacitySet"] },
139
141
  ],
142
+ [
143
+ "connection grant list [--connection <connection>] [--project <project-id> | --container <container-id>] [--state <active|revoked>] [--limit <1..100>] [--after <cursor>]",
144
+ 1,
145
+ "connection.grant.list",
146
+ "List grants.",
147
+ { run: [connection, "runConnectionGrantList"] },
148
+ ],
149
+ [
150
+ "connection grant set <connection> (--project <project-id> | --container <container-id> | --confirm-stdin) [--revoke] [--command-id <id>] [--dry-run]",
151
+ 1,
152
+ ["connection.grant.set.preview", "connection.grant.set.confirm"],
153
+ "Grant or revoke a Connection.",
154
+ {
155
+ example: "maia connection grant set claude-a --project maiaos",
156
+ kind: "two-phase",
157
+ run: [connection, "runConnectionGrantSet"],
158
+ },
159
+ ],
160
+ [
161
+ "connection pool list [--project <project-id> | --container <container-id>] [--limit <1..100>] [--after <cursor>]",
162
+ 1,
163
+ "connection.pool.list",
164
+ "List pools.",
165
+ { run: [connection, "runConnectionPoolList"] },
166
+ ],
167
+ [
168
+ "connection pool set (--project <project-id> | --container <container-id> | --confirm-stdin) --mode <off|rotate|single> [<connection>...] [--command-id <id>] [--dry-run]",
169
+ 1,
170
+ ["connection.pool.set.preview", "connection.pool.set.confirm"],
171
+ "Pin, rotate or clear a pool.",
172
+ {
173
+ example: "maia connection pool set --project maiaos --mode rotate claude-a claude-b",
174
+ kind: "two-phase",
175
+ run: [connection, "runConnectionPoolSet"],
176
+ },
177
+ ],
140
178
  [
141
179
  "connection enable <connection> --expected-revision <revision> [--command-id <id>]",
142
180
  1,
@@ -18,7 +18,7 @@ export declare const makeAgentPermissionCliClient: (node: CliNodeOperations) =>
18
18
  readonly commandId: string;
19
19
  readonly grantedAt: string;
20
20
  readonly inputDigest: string;
21
- readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
21
+ readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
22
22
  readonly revision: "1";
23
23
  };
24
24
  readonly method: "session.agent-permission.confirm";
@@ -55,7 +55,7 @@ export declare const makeAgentPermissionCliClient: (node: CliNodeOperations) =>
55
55
  readonly inputDigest: string;
56
56
  readonly issuedAt: string;
57
57
  readonly method: "session.agent-permission.preview";
58
- readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
58
+ readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
59
59
  readonly proof: string;
60
60
  }>;
61
61
  };