@maiaos/cli 0.1.0-canary.81 → 0.1.0-canary.82
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/bin/maia.cdx.json +24 -24
- package/dist/bin/maia.mjs +1 -1
- package/dist/cli/cli.js +4 -0
- package/dist/command-line/context.d.ts +6 -2
- package/dist/local-node/client.d.ts +1 -0
- package/dist/local-node/client.js +4 -2
- package/dist/local-node/index.d.ts +1 -1
- package/dist/local-node/index.js +1 -1
- package/dist/local-node/launch/index.d.ts +2 -0
- package/dist/local-node/launch/index.js +2 -0
- package/dist/local-node/launch/launch.d.ts +19 -0
- package/dist/local-node/launch/launch.js +49 -0
- package/dist/mcp/routing.js +1 -0
- package/dist/remote-node/commands.d.ts +1 -0
- package/dist/remote-node/commands.js +29 -2
- package/dist/remote-node/index.d.ts +1 -1
- package/dist/remote-node/index.js +1 -1
- package/dist/remote-node/lifecycle.js +66 -0
- package/dist/remote-node/tree/tree.js +12 -0
- package/dist/session/agent-permission.d.ts +2 -2
- package/dist/session/attach-render.js +6 -0
- package/dist/session/client.d.ts +3 -2
- package/dist/session/commands.js +7 -1
- package/dist/session/create-tasks.js +2 -1
- package/dist/session/tree/tree.js +47 -3
- package/dist/session/turn/client.d.ts +7 -1
- package/dist/session/turn/client.js +15 -1
- package/dist/session/turn/commands.d.ts +3 -0
- package/dist/session/turn/commands.js +52 -8
- package/dist/session/turn/index.d.ts +2 -2
- package/dist/session/turn/index.js +1 -1
- package/dist/session/turn/output.d.ts +6 -4
- package/dist/session/turn/output.js +7 -0
- package/package.json +4 -4
package/dist/cli/cli.js
CHANGED
|
@@ -260,6 +260,7 @@ const loadSkillsSync = () => import("../skills-sync/index.js");
|
|
|
260
260
|
const loadPanel = () => import("../panel/index.js");
|
|
261
261
|
const loadReach = () => import("../reach/index.js");
|
|
262
262
|
const loadLocalNode = () => import("../local-node/index.js");
|
|
263
|
+
const loadLaunch = () => import("../local-node/launch/index.js");
|
|
263
264
|
const loadBootstrap = () => import("../team-workspace/index.js");
|
|
264
265
|
const lazyDependencies = (load, makeClient, binding) => Object.fromEntries(binding.names.map((name) => [
|
|
265
266
|
name,
|
|
@@ -518,8 +519,10 @@ const makeDefaultCliDependencies = (binding) => ({
|
|
|
518
519
|
...binding,
|
|
519
520
|
names: [
|
|
520
521
|
"cancelTurn",
|
|
522
|
+
"editQueuedTurn",
|
|
521
523
|
"interruptTurn",
|
|
522
524
|
"listTurnQueue",
|
|
525
|
+
"promoteQueuedTurn",
|
|
523
526
|
"sendTurn",
|
|
524
527
|
"showTurn",
|
|
525
528
|
"showTurnAttachmentPolicy",
|
|
@@ -709,6 +712,7 @@ const makeDefaultCliDependencies = (binding) => ({
|
|
|
709
712
|
names: ["callCoordinatorTool", "serveMcp"],
|
|
710
713
|
}),
|
|
711
714
|
...lazyDependencies(loadStatus, (module, node) => module.makeStatusClient(node), { ...binding, names: ["createMonitorBootstrap", "readStatus"] }),
|
|
715
|
+
startLocalNode: (profile) => Effect.flatMap(Effect.promise(loadLaunch), (module) => module.startLocalNode(profile)),
|
|
712
716
|
});
|
|
713
717
|
const remoteConnector = (remote, local, ssh) => {
|
|
714
718
|
const cache = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentPermissionConfirmParameters, AgentPermissionConfirmResult, AgentPermissionPreviewParameters, AgentPermissionPreviewResult, ExecutionCatalogGetResult, ExecutionCommandRunResult, ExecutionFileReadResult, ExecutionPlacementCreateResult, ExecutionPlacementShowResult, ExecutionRelocationApplyResult, ExecutionRelocationPlanResult, ExecutionRelocationReconcileResult, ExecutionRelocationShowResult, ExecutionWorktreeCheckpointCreateResult, ExecutionWorktreeCheckpointShowResult, ExecutionWorktreeCreateResult, ExecutionWorktreeImportResult, ExecutionWorktreeReconcileResult, ExecutionWorktreeRemoveApplyResult, ExecutionWorktreeRemovePlanResult, ExecutionWorktreeStatusResult, InvocationContextShowResult, LiveTerminalCloseResult, LiveTerminalControllerAcquireResult, LiveTerminalControllerReleaseResult, LiveTerminalControllerRequestResult, LiveTerminalControllerRequestShowResult, LiveTerminalResizeResult, LiveTerminalSignalResult, LiveTerminalWriteResult, LocalNodeStatusResult, MonitorBootstrapCreateResult, OrchestrationDispatchSettleTerminalResult, OrchestrationDispatchShowResult, OrchestrationInboxAckResult, OrchestrationInboxCheckResult, OrchestrationQuestionCancelResult, OrchestrationQuestionOpenResult, OrchestrationQuestionReplyResult, OrchestrationRunCreateResult, OrchestrationRunListResult, OrchestrationRunShowResult, OrchestrationTaskListResult, OrchestrationTaskShowResult, ProjectContextListResult, ProjectContextRecordResult, ProjectContextShowResult, ProjectListResult, ProjectRegisterResult, ProjectShowResult, ProviderPoolListResult, ReceiptGetResult, ReceiptListParameters, ReceiptListResult, SessionArchiveResult, SessionCreateResult, SessionDiffResult, SessionEventsListResult, SessionInboxAckResult, SessionInboxCheckResult, SessionListResult, SessionMessageSendResult, SessionObserveResult, SessionResumeResult, SessionShowResult, SessionStartResult, SessionStopResult, TerminalCreateResult, TerminalEventsListResult, TerminalListResult, TerminalReadResult, TerminalShowResult, TurnAttachmentPolicyResult, TurnCancelResult, TurnInterruptResult, TurnQueueListResult, TurnSendResult, TurnShowResult, TurnWaitResult, WorkspaceContextShowResult, WorkspaceExecutionConfigureResult, WorkspaceExecutionShowResult, WorkspaceListResult, WorkspaceMembershipAttachResult, WorkspaceRepositoryAttachResult, WorkspaceSelectResult, WorkspaceShowResult } from "@maiaos/sdk";
|
|
1
|
+
import type { AgentPermissionConfirmParameters, AgentPermissionConfirmResult, AgentPermissionPreviewParameters, AgentPermissionPreviewResult, ExecutionCatalogGetResult, ExecutionCommandRunResult, ExecutionFileReadResult, ExecutionPlacementCreateResult, ExecutionPlacementShowResult, ExecutionRelocationApplyResult, ExecutionRelocationPlanResult, ExecutionRelocationReconcileResult, ExecutionRelocationShowResult, ExecutionWorktreeCheckpointCreateResult, ExecutionWorktreeCheckpointShowResult, ExecutionWorktreeCreateResult, ExecutionWorktreeImportResult, ExecutionWorktreeReconcileResult, ExecutionWorktreeRemoveApplyResult, ExecutionWorktreeRemovePlanResult, ExecutionWorktreeStatusResult, InvocationContextShowResult, LiveTerminalCloseResult, LiveTerminalControllerAcquireResult, LiveTerminalControllerReleaseResult, LiveTerminalControllerRequestResult, LiveTerminalControllerRequestShowResult, LiveTerminalResizeResult, LiveTerminalSignalResult, LiveTerminalWriteResult, LocalNodeStatusResult, MonitorBootstrapCreateResult, OrchestrationDispatchSettleTerminalResult, OrchestrationDispatchShowResult, OrchestrationInboxAckResult, OrchestrationInboxCheckResult, OrchestrationQuestionCancelResult, OrchestrationQuestionOpenResult, OrchestrationQuestionReplyResult, OrchestrationRunCreateResult, OrchestrationRunListResult, OrchestrationRunShowResult, OrchestrationTaskListResult, OrchestrationTaskShowResult, ProjectContextListResult, ProjectContextRecordResult, ProjectContextShowResult, ProjectListResult, ProjectRegisterResult, ProjectShowResult, ProviderPoolListResult, ReceiptGetResult, ReceiptListParameters, ReceiptListResult, SessionArchiveResult, SessionCreateResult, SessionDiffResult, SessionEventsListResult, SessionInboxAckResult, SessionInboxCheckResult, SessionListResult, SessionMessageSendResult, SessionObserveResult, SessionResumeResult, SessionShowResult, SessionStartResult, SessionStopResult, TerminalCreateResult, TerminalEventsListResult, TerminalListResult, TerminalReadResult, TerminalShowResult, TurnAttachmentPolicyResult, TurnCancelResult, TurnInterruptResult, TurnQueueEditResult, TurnQueueListResult, TurnQueuePromoteResult, TurnSendResult, TurnShowResult, TurnWaitResult, WorkspaceContextShowResult, WorkspaceExecutionConfigureResult, WorkspaceExecutionShowResult, WorkspaceListResult, WorkspaceMembershipAttachResult, WorkspaceRepositoryAttachResult, WorkspaceSelectResult, WorkspaceShowResult } from "@maiaos/sdk";
|
|
2
2
|
import type * as Crypto from "effect/Crypto";
|
|
3
3
|
import type * as Effect from "effect/Effect";
|
|
4
4
|
import type { AgentsCliDependencies } from "../agents/index.js";
|
|
@@ -13,6 +13,7 @@ import type { DiscoveryCliDependencies } from "../import/index.js";
|
|
|
13
13
|
import type { InboxCliDependencies } from "../inbox/index.js";
|
|
14
14
|
import type { IntegrationCliDependencies } from "../integration/index.js";
|
|
15
15
|
import type { CliNodeCall, CliNodeEffect } from "../local-node/index.js";
|
|
16
|
+
import type { StartLocalNode } from "../local-node/launch/index.js";
|
|
16
17
|
import type { AgentProviderAccess } from "../login/index.js";
|
|
17
18
|
import type { McpCliDependencies } from "../mcp/index.js";
|
|
18
19
|
import type { NodeUpdateCliDependencies } from "../node-update/index.js";
|
|
@@ -34,7 +35,7 @@ import type { SecretCliDependencies } from "../secret/index.js";
|
|
|
34
35
|
import type { ApprovalCliDependencies } from "../session/approval/index.js";
|
|
35
36
|
import type { ArchiveSessionInput, AttachSessionInput, CreateSessionInput, DiffSessionInput, ListSessionsInput, makeSessionClient, ResumeSessionInput, SessionAttachStream, StartSessionInput } from "../session/index.js";
|
|
36
37
|
import type { InteractionCliDependencies } from "../session/interaction/index.js";
|
|
37
|
-
import type { CancelTurnInput, InterruptTurnInput, SendTurnInput, WaitTurnsInput } from "../session/turn/index.js";
|
|
38
|
+
import type { CancelTurnInput, EditTurnInput, InterruptTurnInput, SendTurnInput, WaitTurnsInput } from "../session/turn/index.js";
|
|
38
39
|
import type { SkillsSyncCliDependencies } from "../skills-sync/index.js";
|
|
39
40
|
import type { BootstrapCliDependencies } from "../team-workspace/index.js";
|
|
40
41
|
import type { CreateTerminalInput, makeTerminalClient } from "../terminal/index.js";
|
|
@@ -71,6 +72,7 @@ export type CliDependencies = Partial<AgentsCliDependencies & ApprovalCliDepende
|
|
|
71
72
|
readonly createSession: (input: CreateSessionInput) => CliNodeEffect<SessionCreateResult>;
|
|
72
73
|
readonly createTerminal: (input: CreateTerminalInput) => CliNodeEffect<TerminalCreateResult>;
|
|
73
74
|
readonly diffSession?: (input: DiffSessionInput) => CliNodeEffect<SessionDiffResult>;
|
|
75
|
+
readonly editQueuedTurn?: (input: EditTurnInput) => CliNodeEffect<TurnQueueEditResult>;
|
|
74
76
|
readonly getReceipt: (commandId: string) => CliNodeEffect<ReceiptGetResult>;
|
|
75
77
|
readonly importExecutionWorktree?: (input: ImportExecutionWorktreeInput) => CliNodeEffect<ExecutionWorktreeImportResult>;
|
|
76
78
|
readonly interruptTurn: (input: InterruptTurnInput) => CliNodeEffect<TurnInterruptResult>;
|
|
@@ -126,6 +128,7 @@ export type CliDependencies = Partial<AgentsCliDependencies & ApprovalCliDepende
|
|
|
126
128
|
readonly planExecutionWorktreeRemove?: (workspaceId: string) => CliNodeEffect<ExecutionWorktreeRemovePlanResult>;
|
|
127
129
|
readonly planSessions?: SessionClient["planSessions"];
|
|
128
130
|
readonly previewAgentPermission?: (input: AgentPermissionPreviewParameters) => CliNodeEffect<AgentPermissionPreviewResult>;
|
|
131
|
+
readonly promoteQueuedTurn?: (input: CancelTurnInput) => CliNodeEffect<TurnQueuePromoteResult>;
|
|
129
132
|
readonly readExecutionCatalog?: () => CliNodeEffect<ExecutionCatalogGetResult>;
|
|
130
133
|
readonly readExecutionFile?: (input: ReadExecutionFileInput) => CliNodeEffect<ExecutionFileReadResult>;
|
|
131
134
|
readonly readStatus: () => Effect.Effect<LocalNodeStatusResult, unknown, Crypto.Crypto>;
|
|
@@ -179,6 +182,7 @@ export type CliDependencies = Partial<AgentsCliDependencies & ApprovalCliDepende
|
|
|
179
182
|
readonly showWorkspaceExecution?: (workspaceId: string) => CliNodeEffect<WorkspaceExecutionShowResult>;
|
|
180
183
|
readonly signalTerminal: (input: Parameters<TerminalClient["signalTerminal"]>[0]) => CliNodeEffect<LiveTerminalSignalResult>;
|
|
181
184
|
readonly sshLayer?: SshLayer;
|
|
185
|
+
readonly startLocalNode?: StartLocalNode;
|
|
182
186
|
readonly startSession: (input: StartSessionInput) => CliNodeEffect<SessionStartResult>;
|
|
183
187
|
readonly stopSession?: (input: StartSessionInput) => CliNodeEffect<SessionStopResult>;
|
|
184
188
|
readonly waitSession?: SessionClient["waitSession"];
|
|
@@ -25,6 +25,7 @@ export declare const connectLocalNode: CliNodeConnector;
|
|
|
25
25
|
export declare const holdsSessionCredential: Effect.Effect<boolean>;
|
|
26
26
|
export declare const discoveryUnavailable: (failure: NodeDiscoveryFailure, profile: string | undefined) => ProtocolError;
|
|
27
27
|
export declare const discoveryError: (error: unknown) => ProtocolError | undefined;
|
|
28
|
+
export declare const discoveryReason: (error: unknown) => NodeDiscoveryFailure["reason"] | undefined;
|
|
28
29
|
export declare const nodeAnswerOf: (error: unknown) => ProtocolError | undefined;
|
|
29
30
|
export declare const operationError: (error: unknown) => ProtocolError;
|
|
30
31
|
export declare const outcomeCanBeAmbiguous: (error: unknown) => boolean;
|
|
@@ -79,9 +79,10 @@ const SESSION_CREDENTIAL_VARIABLE = "MAIA_SESSION_CREDENTIAL", SESSION_NODE_ORIG
|
|
|
79
79
|
}), explained = (error, profile) => Effect.map(Effect.promise(() => import("@maiaos/sdk/node/effect")), (sdk) => {
|
|
80
80
|
const failure = sdk.discoveryFailureOf(error);
|
|
81
81
|
return failure === void 0 ? error : new CliLocalNodeError({
|
|
82
|
-
error: discoveryUnavailable(failure, profile)
|
|
82
|
+
error: discoveryUnavailable(failure, profile),
|
|
83
|
+
reason: failure.reason
|
|
83
84
|
});
|
|
84
|
-
}), explainingDiscovery = (connector) => (options) => Effect.catch(connector(options), (error) => Effect.flatMap(explained(error, options.profile), Effect.fail)), discoveryError = (error) => error instanceof CliLocalNodeError && error.error.code === "node_unavailable" ? error.error : void 0, localOperationError = (code) => {
|
|
85
|
+
}), explainingDiscovery = (connector) => (options) => Effect.catch(connector(options), (error) => Effect.flatMap(explained(error, options.profile), Effect.fail)), discoveryError = (error) => error instanceof CliLocalNodeError && error.error.code === "node_unavailable" ? error.error : void 0, discoveryReason = (error) => error instanceof CliLocalNodeError ? error.reason : void 0, localOperationError = (code) => {
|
|
85
86
|
if (code === "deadline_exceeded")
|
|
86
87
|
return LOCAL_DEADLINE_ERROR;
|
|
87
88
|
if (code === "outcome_unknown")
|
|
@@ -191,6 +192,7 @@ export {
|
|
|
191
192
|
connectLocalNode,
|
|
192
193
|
discoveryError,
|
|
193
194
|
discoveryOptionsFor,
|
|
195
|
+
discoveryReason,
|
|
194
196
|
discoveryUnavailable,
|
|
195
197
|
fillCommandIdentifier,
|
|
196
198
|
holdsSessionCredential,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { type CliNodeCall, makeCallClient } from "./call.js";
|
|
2
|
-
export { changeAtRevision, type CliMutationRecovery, type CliNodeBinding, type CliNodeConnection, type CliNodeConnector, type CliNodeEffect, type CliNodeOperations, type CliNodeOperationsOptions, type CliNodeResult, commandIdentifier, connectLocalNode, discoveryError, discoveryOptionsFor, fillCommandIdentifier, holdsSessionCredential, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, nodeAnswerOf, operationError, outcomeCanBeAmbiguous, type ParameterSchema, retryBriefSaturation, revisionOrCurrent, runLazyNodeDependency, } from "./client.js";
|
|
2
|
+
export { changeAtRevision, type CliMutationRecovery, type CliNodeBinding, type CliNodeConnection, type CliNodeConnector, type CliNodeEffect, type CliNodeOperations, type CliNodeOperationsOptions, type CliNodeResult, commandIdentifier, connectLocalNode, discoveryError, discoveryOptionsFor, discoveryReason, fillCommandIdentifier, holdsSessionCredential, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, nodeAnswerOf, operationError, outcomeCanBeAmbiguous, type ParameterSchema, retryBriefSaturation, revisionOrCurrent, runLazyNodeDependency, } from "./client.js";
|
|
3
3
|
export { repeatBoundedWait } from "./wait.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/local-node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { makeCallClient } from "./call.js";
|
|
2
|
-
export { changeAtRevision, commandIdentifier, connectLocalNode, discoveryError, discoveryOptionsFor, fillCommandIdentifier, holdsSessionCredential, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, nodeAnswerOf, operationError, outcomeCanBeAmbiguous, retryBriefSaturation, revisionOrCurrent, runLazyNodeDependency, } from "./client.js";
|
|
2
|
+
export { changeAtRevision, commandIdentifier, connectLocalNode, discoveryError, discoveryOptionsFor, discoveryReason, fillCommandIdentifier, holdsSessionCredential, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, nodeAnswerOf, operationError, outcomeCanBeAmbiguous, retryBriefSaturation, revisionOrCurrent, runLazyNodeDependency, } from "./client.js";
|
|
3
3
|
export { repeatBoundedWait } from "./wait.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import type * as Scope from "effect/Scope";
|
|
3
|
+
declare const LocalNodeLaunchError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
4
|
+
readonly _tag: "LocalNodeLaunchError";
|
|
5
|
+
} & Readonly<A>;
|
|
6
|
+
export declare class LocalNodeLaunchError extends LocalNodeLaunchError_base<{
|
|
7
|
+
readonly message: string;
|
|
8
|
+
}> {
|
|
9
|
+
}
|
|
10
|
+
export type LaunchedNode = {
|
|
11
|
+
readonly exited: Effect.Effect<number>;
|
|
12
|
+
readonly via: "process" | "service";
|
|
13
|
+
};
|
|
14
|
+
export type StartLocalNode = (profile?: string) => Effect.Effect<LaunchedNode, LocalNodeLaunchError, Scope.Scope>;
|
|
15
|
+
export declare const launchArguments: (profile?: string) => readonly string[];
|
|
16
|
+
export declare const serviceStartArguments: (profile?: string) => readonly string[];
|
|
17
|
+
export declare const startLocalNode: StartLocalNode;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=launch.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as NodeChildProcessSpawner from "@effect/platform-node-shared/NodeChildProcessSpawner";
|
|
2
|
+
import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
|
|
3
|
+
import * as NodePath from "@effect/platform-node-shared/NodePath";
|
|
4
|
+
import * as Data from "effect/Data";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ChildProcess from "effect/process/ChildProcess";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import * as Stream from "effect/Stream";
|
|
10
|
+
import "../index.js";
|
|
11
|
+
class LocalNodeLaunchError extends Data.TaggedError("LocalNodeLaunchError") {
|
|
12
|
+
}
|
|
13
|
+
const NODE_EXECUTABLE = "maia-node", SERVICE_DEADLINE = "35 seconds", EXIT_USAGE = 64, profileArguments = (profile) => profile === void 0 ? [] : ["--profile", profile], launchArguments = (profile) => [
|
|
14
|
+
"--desktop",
|
|
15
|
+
...profileArguments(profile)
|
|
16
|
+
], serviceStartArguments = (profile) => [
|
|
17
|
+
"service",
|
|
18
|
+
"start",
|
|
19
|
+
...profileArguments(profile),
|
|
20
|
+
"--json"
|
|
21
|
+
], spawner = NodeChildProcessSpawner.layer.pipe(Layer.provide(Layer.merge(NodeFileSystem.layer, NodePath.layer))), DETACHED = {
|
|
22
|
+
detached: !0,
|
|
23
|
+
extendEnv: !0,
|
|
24
|
+
stderr: "ignore",
|
|
25
|
+
stdin: "ignore",
|
|
26
|
+
stdout: "ignore"
|
|
27
|
+
}, failure = (message) => new LocalNodeLaunchError({ message }), launchFailed = () => failure(`The Node could not be started: '${NODE_EXECUTABLE}' is not on the PATH or cannot run.`), testEnvironment = (profile) => Effect.succeed({}), text = (stream) => stream.pipe(Stream.decodeText(), Stream.mkString), decodeStarted = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ result: Schema.Struct({ installed: Schema.Boolean }) }))), decodeRefusal = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ error: Schema.Struct({ message: Schema.String }) }))), TOO_OLD = `The '${NODE_EXECUTABLE}' on the PATH predates 'maia-node service start', so this command cannot tell whether a background service owns the Node, and starts none beside it. Update maia-node, or start the Node yourself: ${NODE_EXECUTABLE}`, byHand = (profile) => `${NODE_EXECUTABLE} service start${profile === void 0 ? "" : ` --profile ${profile}`}`, serviceAnswer = (profile, [stdout, stderr, code]) => code === EXIT_USAGE ? Effect.fail(failure(TOO_OLD)) : code !== 0 ? decodeRefusal(stderr).pipe(Effect.match({
|
|
28
|
+
onFailure: () => `The Node's background service did not start; run '${byHand(profile)}' to see why.`,
|
|
29
|
+
onSuccess: ({ error }) => `The Node's background service did not start: ${error.message}`
|
|
30
|
+
}), Effect.flatMap((message) => Effect.fail(failure(message)))) : decodeStarted(stdout).pipe(Effect.map(({ result }) => result.installed), Effect.mapError(() => failure(`The answer of '${byHand(profile)}' was unreadable, so this command starts no Node beside a service that may own it.`))), startedService = (profile) => Effect.gen(function* () {
|
|
31
|
+
const handle = yield* ChildProcess.make(NODE_EXECUTABLE, serviceStartArguments(profile), { extendEnv: !0, stderr: "pipe", stdin: "ignore", stdout: "pipe" });
|
|
32
|
+
return yield* Effect.all([
|
|
33
|
+
text(handle.stdout),
|
|
34
|
+
text(handle.stderr),
|
|
35
|
+
Effect.map(handle.exitCode, Number)
|
|
36
|
+
], { concurrency: "unbounded" });
|
|
37
|
+
}).pipe(Effect.scoped, Effect.mapError(launchFailed), Effect.flatMap((answer) => serviceAnswer(profile, answer)), Effect.timeoutOrElse({
|
|
38
|
+
duration: SERVICE_DEADLINE,
|
|
39
|
+
orElse: () => Effect.fail(failure(`The Node's background service did not answer within ${SERVICE_DEADLINE}.`))
|
|
40
|
+
})), spawnNode = (profile) => Effect.gen(function* () {
|
|
41
|
+
const environment = yield* testEnvironment(profile), handle = yield* ChildProcess.make(NODE_EXECUTABLE, launchArguments(profile), { ...DETACHED, env: environment });
|
|
42
|
+
return yield* handle.unref, { exited: handle.exitCode.pipe(Effect.map(Number), Effect.orElseSucceed(() => -1)), via: "process" };
|
|
43
|
+
}).pipe(Effect.mapError(launchFailed)), startLocalNode = (profile) => startedService(profile).pipe(Effect.flatMap((installed) => installed ? Effect.succeed({ exited: Effect.never, via: "service" }) : spawnNode(profile)), Effect.provide(spawner));
|
|
44
|
+
export {
|
|
45
|
+
LocalNodeLaunchError,
|
|
46
|
+
launchArguments,
|
|
47
|
+
serviceStartArguments,
|
|
48
|
+
startLocalNode
|
|
49
|
+
};
|
package/dist/mcp/routing.js
CHANGED
|
@@ -75,6 +75,7 @@ export const TOOL_ROUTES = new Map([
|
|
|
75
75
|
["turn.cancel", held("turn", "turnId")],
|
|
76
76
|
["turn.interrupt", held("turn", "turnId")],
|
|
77
77
|
["turn.queue.list", held("session", "sessionId")],
|
|
78
|
+
["turn.queue.promote", held("turn", "turnId")],
|
|
78
79
|
["turn.send", held("session", "sessionId")],
|
|
79
80
|
["turn.show", held("turn", "turnId")],
|
|
80
81
|
["turn.wait", held("turn", "turnIds")],
|
|
@@ -11,5 +11,6 @@ export declare const runNodeInstall: (tokens: readonly string[], context: Comman
|
|
|
11
11
|
export declare const runNodeRegister: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
12
12
|
export declare const runNodeList: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
13
13
|
export declare const runNodeRemove: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
14
|
+
export declare const runNodeStart: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
14
15
|
export {};
|
|
15
16
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -6,8 +6,9 @@ import * as Data from "effect/Data";
|
|
|
6
6
|
import * as Duration from "effect/Duration";
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
8
8
|
import * as Schedule from "effect/Schedule";
|
|
9
|
-
import { askToConfirm, CliArgumentError, confirmParameters, jsonLine, LOCAL_NODE, parseOptions, promptOrRefuse, readPipedPreview, readTwoPhaseMode, reportError, requestedTwoPhaseMode, requirePositionals, TWO_PHASE_FLAGS, } from "../command-line/index.js";
|
|
9
|
+
import { askToConfirm, CliArgumentError, confirmParameters, jsonLine, LOCAL_NODE, parseOptions, promptOrRefuse, readPipedPreview, readTwoPhaseMode, reportError, requestedTwoPhaseMode, requireNoArguments, requirePositionals, TWO_PHASE_FLAGS, writeSuccess, } from "../command-line/index.js";
|
|
10
10
|
import { commandIdentifier, } from "../local-node/index.js";
|
|
11
|
+
import { ensureRunning, instanceOf, LifecycleError, } from "./lifecycle.js";
|
|
11
12
|
import { withReachability } from "./reachability.js";
|
|
12
13
|
import { ACTIVE_SESSIONS_QUERY, readingOf, unknownReading } from "./reading.js";
|
|
13
14
|
import { installedText, listText, planText, registerPlanText, removedText, } from "./text.js";
|
|
@@ -344,7 +345,7 @@ export const runNodeRemove = (tokens, context) => guarded(Effect.gen(function* (
|
|
|
344
345
|
return yield* finishRemove(context, { ...removal, ...proven });
|
|
345
346
|
}), context);
|
|
346
347
|
const failure = (error) => {
|
|
347
|
-
if (error instanceof NodeCommandError)
|
|
348
|
+
if (error instanceof NodeCommandError || error instanceof LifecycleError)
|
|
348
349
|
return error.error;
|
|
349
350
|
const usage = error instanceof CliArgumentError;
|
|
350
351
|
return {
|
|
@@ -354,4 +355,30 @@ const failure = (error) => {
|
|
|
354
355
|
};
|
|
355
356
|
};
|
|
356
357
|
const guarded = (program, context) => Effect.suspend(() => program).pipe(Effect.catch((error) => Effect.sync(() => reportError(failure(error), context))));
|
|
358
|
+
const lifecycleOf = (context) => {
|
|
359
|
+
const { readStatus, startLocalNode } = context.dependencies;
|
|
360
|
+
return startLocalNode === undefined
|
|
361
|
+
? Effect.fail(new NodeCommandError({
|
|
362
|
+
error: {
|
|
363
|
+
code: "internal_error",
|
|
364
|
+
message: "This CLI was composed without its Node launcher.",
|
|
365
|
+
retryable: false,
|
|
366
|
+
},
|
|
367
|
+
}))
|
|
368
|
+
: Effect.succeed({
|
|
369
|
+
...(context.profile === undefined ? {} : { profile: context.profile }),
|
|
370
|
+
readStatus,
|
|
371
|
+
startLocalNode,
|
|
372
|
+
});
|
|
373
|
+
};
|
|
374
|
+
export const runNodeStart = (tokens, context) => guarded(Effect.gen(function* () {
|
|
375
|
+
requireNoArguments(tokens, "Start");
|
|
376
|
+
const lifecycle = yield* lifecycleOf(context);
|
|
377
|
+
const { launched, status } = yield* ensureRunning(lifecycle);
|
|
378
|
+
const result = { ...instanceOf(status), started: launched };
|
|
379
|
+
writeSuccess({ command: "node.start", result }, context, () => launched
|
|
380
|
+
? `Started the Node of profile ${status.profile} (instance ${status.instanceId}).\n`
|
|
381
|
+
: `The Node of profile ${status.profile} is already running (instance ${status.instanceId}); nothing changed.\n`);
|
|
382
|
+
return 0;
|
|
383
|
+
}), context);
|
|
357
384
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { makeRemoteNodeClient, type RemoteNodeCliDependencies, } from "./client.js";
|
|
2
|
-
export { runNodeInstall, runNodeList, runNodeRegister, runNodeRemove, } from "./commands.js";
|
|
2
|
+
export { runNodeInstall, runNodeList, runNodeRegister, runNodeRemove, runNodeStart, } from "./commands.js";
|
|
3
3
|
export { makeRemoteNodeConnector, remoteVendorLogin, type SshLayer, } from "./connector.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { makeRemoteNodeClient, } from "./client.js";
|
|
2
|
-
export { runNodeInstall, runNodeList, runNodeRegister, runNodeRemove, } from "./commands.js";
|
|
2
|
+
export { runNodeInstall, runNodeList, runNodeRegister, runNodeRemove, runNodeStart, } from "./commands.js";
|
|
3
3
|
export { makeRemoteNodeConnector, remoteVendorLogin, } from "./connector.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as Data from "effect/Data";
|
|
2
|
+
import * as Duration from "effect/Duration";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Schedule from "effect/Schedule";
|
|
5
|
+
import { discoveryError, discoveryReason } from "../local-node/index.js";
|
|
6
|
+
export const START_DEADLINE = Duration.seconds(60);
|
|
7
|
+
const POLL = Schedule.spaced(Duration.millis(250));
|
|
8
|
+
const EXIT_TEMPORARY_FAILURE = 75;
|
|
9
|
+
const relaunchDelay = (launches) => Duration.millis(Math.min(500 * 2 ** (launches - 1), 5000));
|
|
10
|
+
export class LifecycleError extends Data.TaggedError("LifecycleError") {
|
|
11
|
+
}
|
|
12
|
+
const fail = (code, message, retryable) => new LifecycleError({ error: { code, message, retryable } });
|
|
13
|
+
const withProfile = (command, profile) => profile === undefined ? command : `${command} --profile ${profile}`;
|
|
14
|
+
const readStatus = (lifecycle) => Effect.suspend(() => lifecycle.readStatus());
|
|
15
|
+
const observe = (lifecycle) => readStatus(lifecycle).pipe(Effect.map((status) => status.lifecycle === "ready"
|
|
16
|
+
? { status, tag: "ready" }
|
|
17
|
+
: { tag: "unsettled" }), Effect.catch((error) => {
|
|
18
|
+
const reason = discoveryReason(error);
|
|
19
|
+
const refusal = discoveryError(error);
|
|
20
|
+
if (reason === "transport_failed")
|
|
21
|
+
return Effect.succeed({ tag: "absent" });
|
|
22
|
+
if (reason !== "discovery_invalid" && refusal !== undefined)
|
|
23
|
+
return Effect.fail(new LifecycleError({ error: refusal }));
|
|
24
|
+
return Effect.succeed({ tag: "unsettled" });
|
|
25
|
+
}));
|
|
26
|
+
const settled = (lifecycle) => observe(lifecycle).pipe(Effect.repeat({
|
|
27
|
+
schedule: POLL,
|
|
28
|
+
until: (presence) => presence.tag !== "unsettled",
|
|
29
|
+
}));
|
|
30
|
+
const notReady = () => fail("node_unavailable", "not ready", true);
|
|
31
|
+
const answersReady = (lifecycle) => readStatus(lifecycle).pipe(Effect.mapError(notReady), Effect.flatMap((status) => status.lifecycle === "ready"
|
|
32
|
+
? Effect.succeed(status)
|
|
33
|
+
: Effect.fail(notReady())), Effect.retry({ schedule: POLL }));
|
|
34
|
+
const launchOnce = (lifecycle) => Effect.scoped(Effect.gen(function* () {
|
|
35
|
+
const launched = yield* lifecycle
|
|
36
|
+
.startLocalNode(lifecycle.profile)
|
|
37
|
+
.pipe(Effect.mapError((error) => fail("node_unavailable", error.message, false)));
|
|
38
|
+
return yield* answersReady(lifecycle).pipe(Effect.map((status) => ({ status, tag: "ready" })), Effect.raceFirst(Effect.map(launched.exited, (code) => ({
|
|
39
|
+
code,
|
|
40
|
+
tag: "exited",
|
|
41
|
+
}))));
|
|
42
|
+
}));
|
|
43
|
+
const exitedEarly = (profile, code) => fail("node_unavailable", `The Node did not start: maia-node exited with code ${String(code)} before it was ready. Run '${withProfile("maia-node", profile)}' to see why.`, true);
|
|
44
|
+
const startUntilReady = (lifecycle, launches = 0) => Effect.gen(function* () {
|
|
45
|
+
const presence = yield* settled(lifecycle);
|
|
46
|
+
if (presence.tag === "ready")
|
|
47
|
+
return { launched: false, status: presence.status };
|
|
48
|
+
const outcome = yield* launchOnce(lifecycle);
|
|
49
|
+
if (outcome.tag === "ready")
|
|
50
|
+
return { launched: true, status: outcome.status };
|
|
51
|
+
if (outcome.code !== EXIT_TEMPORARY_FAILURE)
|
|
52
|
+
return yield* exitedEarly(lifecycle.profile, outcome.code);
|
|
53
|
+
yield* Effect.sleep(relaunchDelay(launches + 1));
|
|
54
|
+
return yield* startUntilReady(lifecycle, launches + 1);
|
|
55
|
+
});
|
|
56
|
+
export const ensureRunning = (lifecycle) => startUntilReady(lifecycle).pipe(Effect.timeoutOrElse({
|
|
57
|
+
duration: START_DEADLINE,
|
|
58
|
+
orElse: () => Effect.fail(fail("deadline_exceeded", `The Node did not answer ready within ${String(Duration.toSeconds(START_DEADLINE))} s; '${withProfile("maia", lifecycle.profile)} node status' shows where it stands.`, true)),
|
|
59
|
+
}));
|
|
60
|
+
export const instanceOf = (status) => ({
|
|
61
|
+
instanceId: status.instanceId,
|
|
62
|
+
lifecycle: status.lifecycle,
|
|
63
|
+
profile: status.profile,
|
|
64
|
+
...(status.version === undefined ? {} : { version: status.version }),
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -27,6 +27,18 @@ export const NODE_TREE = {
|
|
|
27
27
|
"Show whether the Node is ready.",
|
|
28
28
|
{ example: "maia --json node status", run: nodeStatus },
|
|
29
29
|
],
|
|
30
|
+
[
|
|
31
|
+
"node start",
|
|
32
|
+
0,
|
|
33
|
+
"node.status",
|
|
34
|
+
"Start this machine's Node in the background, unless one runs.",
|
|
35
|
+
{
|
|
36
|
+
example: "maia node start",
|
|
37
|
+
kind: "composite",
|
|
38
|
+
remote: false,
|
|
39
|
+
run: [remote, "runNodeStart"],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
30
42
|
[
|
|
31
43
|
"node monitor",
|
|
32
44
|
0,
|
|
@@ -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.detect" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "board.message.post" | "board.message.reply" | "board.path.read" | "board.task.assign" | "board.task.cancel" | "board.task.claim" | "board.task.complete" | "board.task.create" | "board.task.fail" | "board.task.list" | "board.task.needs.replace" | "board.task.plan" | "board.task.promote" | "board.task.release" | "board.task.renew" | "board.task.reopen" | "board.task.show" | "board.thread.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.executors.list" | "connection.executors.show" | "connection.gateway.create" | "connection.github.create" | "connection.github.revoke" | "connection.github.show" | "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" | "events.read" | "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" | "goal.clear" | "goal.mark" | "goal.set" | "goal.show" | "goal.transition" | "goal.update" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "inbox.list" | "inbox.respond" | "inbox.settle" | "inbox.show" | "inbox.snooze" | "integration.apply.antigravity" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.grok-cli" | "integration.apply.maia-agent" | "integration.apply.pi" | "integration.apply.pi-rpc" | "integration.plan.antigravity" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.grok-cli" | "integration.plan.maia-agent" | "integration.plan.pi" | "integration.plan.pi-rpc" | "integration.remove.antigravity" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.grok-cli" | "integration.remove.maia-agent" | "integration.remove.pi" | "integration.remove.pi-rpc" | "integration.status.antigravity" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.grok-cli" | "integration.status.maia-agent" | "integration.status.pi" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.pairing.confirm" | "node.pairing.preview" | "node.pairing.redeem" | "node.pairing.show" | "node.principal.confirm" | "node.principal.preview" | "node.principal.show" | "node.reach.confirm" | "node.reach.preview" | "node.reach.show" | "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" | "node.update.apply.confirm" | "node.update.apply.preview" | "node.update.check" | "node.update.pause" | "node.update.policy.get" | "node.update.policy.set" | "node.update.resume" | "node.update.rollback.confirm" | "node.update.rollback.preview" | "node.update.show" | "node.update.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "pr.link" | "pr.status" | "pr.watch" | "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.instructions.change.confirm" | "project.instructions.change.preview" | "project.instructions.show" | "project.knowledge.add.chunk" | "project.knowledge.add.commit" | "project.knowledge.add.confirm" | "project.knowledge.add.preview" | "project.knowledge.list" | "project.knowledge.remove.confirm" | "project.knowledge.remove.preview" | "project.knowledge.search" | "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.move.confirm" | "routine.move.preview" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.runs" | "routine.show" | "routine.trigger.create.confirm" | "routine.trigger.create.preview" | "routine.trigger.disable" | "routine.trigger.list" | "routine.update.confirm" | "routine.update.preview" | "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" | "secret.request" | "secret.set.confirm" | "secret.set.preview" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.command.confirm" | "session.command.list" | "session.command.preview" | "session.command.send" | "session.create" | "session.defaults.show" | "session.detach.confirm" | "session.detach.preview" | "session.diff" | "session.events.list" | "session.fork.confirm" | "session.fork.preview" | "session.git.status" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.pause.confirm" | "session.pause.preview" | "session.placement.show" | "session.rename" | "session.resume" | "session.setup.confirm" | "session.setup.preview" | "session.show" | "session.spawn-caps.confirm" | "session.spawn-caps.preview" | "session.spawn-caps.show" | "session.spawn.confirm" | "session.spawn.preview" | "session.spawn.record" | "session.start" | "session.stop" | "session.switch.confirm" | "session.switch.preview" | "session.wait" | "skills.sync.confirm" | "skills.sync.preview" | "skills.sync.show" | "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.attachment.policy" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.steer.confirm" | "turn.steer.preview" | "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" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "workspace.branches.list" | "workspace.code-host.show" | "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.detect" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "board.message.post" | "board.message.reply" | "board.path.read" | "board.task.assign" | "board.task.cancel" | "board.task.claim" | "board.task.complete" | "board.task.create" | "board.task.fail" | "board.task.list" | "board.task.needs.replace" | "board.task.plan" | "board.task.promote" | "board.task.release" | "board.task.renew" | "board.task.reopen" | "board.task.show" | "board.thread.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.executors.list" | "connection.executors.show" | "connection.gateway.create" | "connection.github.create" | "connection.github.revoke" | "connection.github.show" | "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" | "events.read" | "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" | "goal.clear" | "goal.mark" | "goal.set" | "goal.show" | "goal.transition" | "goal.update" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "inbox.list" | "inbox.respond" | "inbox.settle" | "inbox.show" | "inbox.snooze" | "integration.apply.antigravity" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.grok-cli" | "integration.apply.maia-agent" | "integration.apply.pi" | "integration.apply.pi-rpc" | "integration.plan.antigravity" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.grok-cli" | "integration.plan.maia-agent" | "integration.plan.pi" | "integration.plan.pi-rpc" | "integration.remove.antigravity" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.grok-cli" | "integration.remove.maia-agent" | "integration.remove.pi" | "integration.remove.pi-rpc" | "integration.status.antigravity" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.grok-cli" | "integration.status.maia-agent" | "integration.status.pi" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.pairing.confirm" | "node.pairing.preview" | "node.pairing.redeem" | "node.pairing.show" | "node.principal.confirm" | "node.principal.preview" | "node.principal.show" | "node.reach.confirm" | "node.reach.preview" | "node.reach.show" | "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" | "node.update.apply.confirm" | "node.update.apply.preview" | "node.update.check" | "node.update.pause" | "node.update.policy.get" | "node.update.policy.set" | "node.update.resume" | "node.update.rollback.confirm" | "node.update.rollback.preview" | "node.update.show" | "node.update.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "pr.link" | "pr.status" | "pr.watch" | "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.instructions.change.confirm" | "project.instructions.change.preview" | "project.instructions.show" | "project.knowledge.add.chunk" | "project.knowledge.add.commit" | "project.knowledge.add.confirm" | "project.knowledge.add.preview" | "project.knowledge.list" | "project.knowledge.remove.confirm" | "project.knowledge.remove.preview" | "project.knowledge.search" | "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.move.confirm" | "routine.move.preview" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.runs" | "routine.show" | "routine.trigger.create.confirm" | "routine.trigger.create.preview" | "routine.trigger.disable" | "routine.trigger.list" | "routine.update.confirm" | "routine.update.preview" | "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" | "secret.request" | "secret.set.confirm" | "secret.set.preview" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.command.confirm" | "session.command.list" | "session.command.preview" | "session.command.send" | "session.create" | "session.defaults.show" | "session.detach.confirm" | "session.detach.preview" | "session.diff" | "session.events.list" | "session.fork.confirm" | "session.fork.preview" | "session.git.status" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.pause.confirm" | "session.pause.preview" | "session.placement.show" | "session.rename" | "session.resume" | "session.setup.confirm" | "session.setup.preview" | "session.show" | "session.spawn-caps.confirm" | "session.spawn-caps.preview" | "session.spawn-caps.show" | "session.spawn.confirm" | "session.spawn.preview" | "session.spawn.record" | "session.start" | "session.stop" | "session.switch.confirm" | "session.switch.preview" | "session.wait" | "skills.sync.confirm" | "skills.sync.preview" | "skills.sync.show" | "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.attachment.policy" | "turn.cancel" | "turn.interrupt" | "turn.queue.edit" | "turn.queue.list" | "turn.queue.promote" | "turn.send" | "turn.show" | "turn.steer.confirm" | "turn.steer.preview" | "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" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "workspace.branches.list" | "workspace.code-host.show" | "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";
|
|
@@ -56,7 +56,7 @@ export declare const makeAgentPermissionCliClient: (node: CliNodeOperations) =>
|
|
|
56
56
|
readonly inputDigest: string;
|
|
57
57
|
readonly issuedAt: string;
|
|
58
58
|
readonly method: "session.agent-permission.preview";
|
|
59
|
-
readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "board.message.post" | "board.message.reply" | "board.path.read" | "board.task.assign" | "board.task.cancel" | "board.task.claim" | "board.task.complete" | "board.task.create" | "board.task.fail" | "board.task.list" | "board.task.needs.replace" | "board.task.plan" | "board.task.promote" | "board.task.release" | "board.task.renew" | "board.task.reopen" | "board.task.show" | "board.thread.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.executors.list" | "connection.executors.show" | "connection.gateway.create" | "connection.github.create" | "connection.github.revoke" | "connection.github.show" | "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" | "events.read" | "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" | "goal.clear" | "goal.mark" | "goal.set" | "goal.show" | "goal.transition" | "goal.update" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "inbox.list" | "inbox.respond" | "inbox.settle" | "inbox.show" | "inbox.snooze" | "integration.apply.antigravity" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.grok-cli" | "integration.apply.maia-agent" | "integration.apply.pi" | "integration.apply.pi-rpc" | "integration.plan.antigravity" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.grok-cli" | "integration.plan.maia-agent" | "integration.plan.pi" | "integration.plan.pi-rpc" | "integration.remove.antigravity" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.grok-cli" | "integration.remove.maia-agent" | "integration.remove.pi" | "integration.remove.pi-rpc" | "integration.status.antigravity" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.grok-cli" | "integration.status.maia-agent" | "integration.status.pi" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.pairing.confirm" | "node.pairing.preview" | "node.pairing.redeem" | "node.pairing.show" | "node.principal.confirm" | "node.principal.preview" | "node.principal.show" | "node.reach.confirm" | "node.reach.preview" | "node.reach.show" | "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" | "node.update.apply.confirm" | "node.update.apply.preview" | "node.update.check" | "node.update.pause" | "node.update.policy.get" | "node.update.policy.set" | "node.update.resume" | "node.update.rollback.confirm" | "node.update.rollback.preview" | "node.update.show" | "node.update.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "pr.link" | "pr.status" | "pr.watch" | "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.instructions.change.confirm" | "project.instructions.change.preview" | "project.instructions.show" | "project.knowledge.add.chunk" | "project.knowledge.add.commit" | "project.knowledge.add.confirm" | "project.knowledge.add.preview" | "project.knowledge.list" | "project.knowledge.remove.confirm" | "project.knowledge.remove.preview" | "project.knowledge.search" | "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.move.confirm" | "routine.move.preview" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.runs" | "routine.show" | "routine.trigger.create.confirm" | "routine.trigger.create.preview" | "routine.trigger.disable" | "routine.trigger.list" | "routine.update.confirm" | "routine.update.preview" | "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" | "secret.request" | "secret.set.confirm" | "secret.set.preview" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.command.confirm" | "session.command.list" | "session.command.preview" | "session.command.send" | "session.create" | "session.defaults.show" | "session.detach.confirm" | "session.detach.preview" | "session.diff" | "session.events.list" | "session.fork.confirm" | "session.fork.preview" | "session.git.status" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.pause.confirm" | "session.pause.preview" | "session.placement.show" | "session.rename" | "session.resume" | "session.setup.confirm" | "session.setup.preview" | "session.show" | "session.spawn-caps.confirm" | "session.spawn-caps.preview" | "session.spawn-caps.show" | "session.spawn.confirm" | "session.spawn.preview" | "session.spawn.record" | "session.start" | "session.stop" | "session.switch.confirm" | "session.switch.preview" | "session.wait" | "skills.sync.confirm" | "skills.sync.preview" | "skills.sync.show" | "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.attachment.policy" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.steer.confirm" | "turn.steer.preview" | "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" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "workspace.branches.list" | "workspace.code-host.show" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
|
|
59
|
+
readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "board.message.post" | "board.message.reply" | "board.path.read" | "board.task.assign" | "board.task.cancel" | "board.task.claim" | "board.task.complete" | "board.task.create" | "board.task.fail" | "board.task.list" | "board.task.needs.replace" | "board.task.plan" | "board.task.promote" | "board.task.release" | "board.task.renew" | "board.task.reopen" | "board.task.show" | "board.thread.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.executors.list" | "connection.executors.show" | "connection.gateway.create" | "connection.github.create" | "connection.github.revoke" | "connection.github.show" | "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" | "events.read" | "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" | "goal.clear" | "goal.mark" | "goal.set" | "goal.show" | "goal.transition" | "goal.update" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "inbox.list" | "inbox.respond" | "inbox.settle" | "inbox.show" | "inbox.snooze" | "integration.apply.antigravity" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.grok-cli" | "integration.apply.maia-agent" | "integration.apply.pi" | "integration.apply.pi-rpc" | "integration.plan.antigravity" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.grok-cli" | "integration.plan.maia-agent" | "integration.plan.pi" | "integration.plan.pi-rpc" | "integration.remove.antigravity" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.grok-cli" | "integration.remove.maia-agent" | "integration.remove.pi" | "integration.remove.pi-rpc" | "integration.status.antigravity" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.grok-cli" | "integration.status.maia-agent" | "integration.status.pi" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.pairing.confirm" | "node.pairing.preview" | "node.pairing.redeem" | "node.pairing.show" | "node.principal.confirm" | "node.principal.preview" | "node.principal.show" | "node.reach.confirm" | "node.reach.preview" | "node.reach.show" | "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" | "node.update.apply.confirm" | "node.update.apply.preview" | "node.update.check" | "node.update.pause" | "node.update.policy.get" | "node.update.policy.set" | "node.update.resume" | "node.update.rollback.confirm" | "node.update.rollback.preview" | "node.update.show" | "node.update.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "pr.link" | "pr.status" | "pr.watch" | "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.instructions.change.confirm" | "project.instructions.change.preview" | "project.instructions.show" | "project.knowledge.add.chunk" | "project.knowledge.add.commit" | "project.knowledge.add.confirm" | "project.knowledge.add.preview" | "project.knowledge.list" | "project.knowledge.remove.confirm" | "project.knowledge.remove.preview" | "project.knowledge.search" | "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.move.confirm" | "routine.move.preview" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.runs" | "routine.show" | "routine.trigger.create.confirm" | "routine.trigger.create.preview" | "routine.trigger.disable" | "routine.trigger.list" | "routine.update.confirm" | "routine.update.preview" | "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" | "secret.request" | "secret.set.confirm" | "secret.set.preview" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.command.confirm" | "session.command.list" | "session.command.preview" | "session.command.send" | "session.create" | "session.defaults.show" | "session.detach.confirm" | "session.detach.preview" | "session.diff" | "session.events.list" | "session.fork.confirm" | "session.fork.preview" | "session.git.status" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.pause.confirm" | "session.pause.preview" | "session.placement.show" | "session.rename" | "session.resume" | "session.setup.confirm" | "session.setup.preview" | "session.show" | "session.spawn-caps.confirm" | "session.spawn-caps.preview" | "session.spawn-caps.show" | "session.spawn.confirm" | "session.spawn.preview" | "session.spawn.record" | "session.start" | "session.stop" | "session.switch.confirm" | "session.switch.preview" | "session.wait" | "skills.sync.confirm" | "skills.sync.preview" | "skills.sync.show" | "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.attachment.policy" | "turn.cancel" | "turn.interrupt" | "turn.queue.edit" | "turn.queue.list" | "turn.queue.promote" | "turn.send" | "turn.show" | "turn.steer.confirm" | "turn.steer.preview" | "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" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "workspace.branches.list" | "workspace.code-host.show" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
|
|
60
60
|
readonly proof: string;
|
|
61
61
|
}>;
|
|
62
62
|
};
|
|
@@ -19,10 +19,14 @@ const header = (item) => {
|
|
|
19
19
|
case "error":
|
|
20
20
|
return "error: ";
|
|
21
21
|
case "file_change":
|
|
22
|
+
case "html":
|
|
22
23
|
case "usage":
|
|
23
24
|
return "";
|
|
24
25
|
}
|
|
25
26
|
};
|
|
27
|
+
const htmlLine = (item) => item.file === undefined
|
|
28
|
+
? "html page\n"
|
|
29
|
+
: `html ${cell(item.file.path)} (${String(item.file.byteLength)} bytes)\n`;
|
|
26
30
|
const footer = (record) => {
|
|
27
31
|
const { item } = record;
|
|
28
32
|
const status = record.status === "completed" ? "" : `[${record.status}]\n`;
|
|
@@ -30,6 +34,8 @@ const footer = (record) => {
|
|
|
30
34
|
return `[exit ${String(item.exitCode)}]\n${status}`;
|
|
31
35
|
if (item.kind === "file_change")
|
|
32
36
|
return `${item.changes.map((change) => `${change.change} ${cell(change.path)}\n`).join("")}${status}`;
|
|
37
|
+
if (item.kind === "html")
|
|
38
|
+
return `${htmlLine(item)}${status}`;
|
|
33
39
|
if (item.kind === "usage")
|
|
34
40
|
return `tokens: ${String(item.inputTokens)} in (${String(item.cachedInputTokens)} cached), ${String(item.outputTokens)} out${item.modelCallCount === undefined ? "" : `, ${String(item.modelCallCount)} model call${item.modelCallCount === 1 ? "" : "s"}`}\n`;
|
|
35
41
|
return status;
|