@maiaos/protocol 0.1.0-canary.6 → 0.1.0-canary.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/agent/definition.d.ts +2 -2
- package/dist/agent/worker-operation.d.ts +24 -0
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/agents/contract.d.ts +25 -0
- package/dist/agents/contract.d.ts.map +1 -1
- package/dist/agents/contract.js +3 -1
- package/dist/agents/contract.js.map +1 -1
- package/dist/agents/effect-schema.d.ts +45 -0
- package/dist/agents/effect-schema.d.ts.map +1 -1
- package/dist/agents/effect-schema.js +38 -0
- package/dist/agents/effect-schema.js.map +1 -1
- package/dist/agents/feature.d.ts +25 -0
- package/dist/agents/feature.d.ts.map +1 -1
- package/dist/agents/feature.js +23 -0
- package/dist/agents/feature.js.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/approval/contract.d.ts +15 -0
- package/dist/approval/contract.d.ts.map +1 -1
- package/dist/approval/contract.js +2 -1
- package/dist/approval/contract.js.map +1 -1
- package/dist/approval/effect-schema.d.ts +1 -1
- package/dist/approval/effect-schema.d.ts.map +1 -1
- package/dist/approval/effect-schema.js +1 -1
- package/dist/approval/effect-schema.js.map +1 -1
- package/dist/approval/feature.d.ts +6 -2
- package/dist/approval/feature.d.ts.map +1 -1
- package/dist/approval/feature.js +6 -2
- package/dist/approval/feature.js.map +1 -1
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.d.ts.map +1 -1
- package/dist/approval/index.js +1 -1
- package/dist/approval/index.js.map +1 -1
- package/dist/approval/request-effect-schema.d.ts +23 -0
- package/dist/approval/request-effect-schema.d.ts.map +1 -1
- package/dist/approval/request-effect-schema.js +19 -2
- package/dist/approval/request-effect-schema.js.map +1 -1
- package/dist/approval/result-effect-schema.d.ts +6 -0
- package/dist/approval/result-effect-schema.d.ts.map +1 -1
- package/dist/command-receipt/contract.d.ts +1 -0
- package/dist/command-receipt/contract.d.ts.map +1 -1
- package/dist/command-receipt/effect-schema.d.ts +2 -0
- package/dist/command-receipt/effect-schema.d.ts.map +1 -1
- package/dist/command-receipt/effect-schema.js +2 -0
- package/dist/command-receipt/effect-schema.js.map +1 -1
- package/dist/configuration/configuration.d.ts +2 -0
- package/dist/configuration/configuration.d.ts.map +1 -1
- package/dist/configuration/configuration.js +11 -3
- package/dist/configuration/configuration.js.map +1 -1
- package/dist/configuration/index.d.ts +1 -1
- package/dist/configuration/index.d.ts.map +1 -1
- package/dist/configuration/index.js +1 -1
- package/dist/configuration/index.js.map +1 -1
- package/dist/connection/request-effect-schema.d.ts +1 -1
- package/dist/connection/request-effect-schema.js +1 -1
- package/dist/coordinator-tool/index.d.ts +1 -1
- package/dist/coordinator-tool/index.d.ts.map +1 -1
- package/dist/coordinator-tool/index.js +1 -1
- package/dist/coordinator-tool/index.js.map +1 -1
- package/dist/coordinator-tool/input-schema.d.ts +0 -7
- package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
- package/dist/coordinator-tool/input-schema.js +0 -38
- package/dist/coordinator-tool/input-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +5 -0
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +23 -2
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +56 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/contract.js +3 -1
- package/dist/discovery/contract.js.map +1 -1
- package/dist/discovery/effect-schema.d.ts +133 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/discovery/effect-schema.js +70 -2
- package/dist/discovery/effect-schema.js.map +1 -1
- package/dist/discovery/feature.d.ts +1 -1
- package/dist/discovery/feature.d.ts.map +1 -1
- package/dist/discovery/feature.js +1 -1
- package/dist/discovery/feature.js.map +1 -1
- package/dist/discovery/index.d.ts +1 -1
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/index.js +1 -1
- package/dist/discovery/index.js.map +1 -1
- package/dist/event/contract.d.ts +47 -0
- package/dist/event/contract.d.ts.map +1 -1
- package/dist/event/contract.js +3 -0
- package/dist/event/contract.js.map +1 -1
- package/dist/event/effect-schema.d.ts +3 -1
- package/dist/event/effect-schema.d.ts.map +1 -1
- package/dist/event/effect-schema.js +3 -1
- package/dist/event/effect-schema.js.map +1 -1
- package/dist/event/envelope-effect-schema.d.ts +2 -0
- package/dist/event/envelope-effect-schema.d.ts.map +1 -1
- package/dist/event/envelope-effect-schema.js +2 -0
- package/dist/event/envelope-effect-schema.js.map +1 -1
- package/dist/event/feature.d.ts +30 -0
- package/dist/event/feature.d.ts.map +1 -0
- package/dist/event/feature.js +34 -0
- package/dist/event/feature.js.map +1 -0
- package/dist/event/format.d.ts +6 -0
- package/dist/event/format.d.ts.map +1 -1
- package/dist/event/format.js +6 -0
- package/dist/event/format.js.map +1 -1
- package/dist/event/index.d.ts +4 -1
- package/dist/event/index.d.ts.map +1 -1
- package/dist/event/index.js +4 -1
- package/dist/event/index.js.map +1 -1
- package/dist/event/lifecycle/effect-schema.d.ts +20 -0
- package/dist/event/lifecycle/effect-schema.d.ts.map +1 -0
- package/dist/event/lifecycle/effect-schema.js +23 -0
- package/dist/event/lifecycle/effect-schema.js.map +1 -0
- package/dist/event/lifecycle/index.d.ts +2 -0
- package/dist/event/lifecycle/index.d.ts.map +1 -0
- package/dist/event/lifecycle/index.js +2 -0
- package/dist/event/lifecycle/index.js.map +1 -0
- package/dist/event/lifecycle/schema.d.ts +14 -0
- package/dist/event/lifecycle/schema.d.ts.map +1 -0
- package/dist/event/lifecycle/schema.js +6 -0
- package/dist/event/lifecycle/schema.js.map +1 -0
- package/dist/event/read-effect-schema.d.ts +105 -0
- package/dist/event/read-effect-schema.d.ts.map +1 -0
- package/dist/event/read-effect-schema.js +64 -0
- package/dist/event/read-effect-schema.js.map +1 -0
- package/dist/event/registry.d.ts +5 -0
- package/dist/event/registry.d.ts.map +1 -1
- package/dist/event/registry.js +92 -6
- package/dist/event/registry.js.map +1 -1
- package/dist/event/session-activity-effect-schema.d.ts +36 -0
- package/dist/event/session-activity-effect-schema.d.ts.map +1 -0
- package/dist/event/session-activity-effect-schema.js +58 -0
- package/dist/event/session-activity-effect-schema.js.map +1 -0
- package/dist/event/session-activity.d.ts +30 -0
- package/dist/event/session-activity.d.ts.map +1 -0
- package/dist/event/session-activity.js +19 -0
- package/dist/event/session-activity.js.map +1 -0
- package/dist/event/update-effect-schema.d.ts +20 -0
- package/dist/event/update-effect-schema.d.ts.map +1 -0
- package/dist/event/update-effect-schema.js +29 -0
- package/dist/event/update-effect-schema.js.map +1 -0
- package/dist/event/update.d.ts +16 -0
- package/dist/event/update.d.ts.map +1 -0
- package/dist/event/update.js +6 -0
- package/dist/event/update.js.map +1 -0
- package/dist/event-stream/contract.d.ts +120 -0
- package/dist/event-stream/contract.d.ts.map +1 -0
- package/dist/event-stream/contract.js +5 -0
- package/dist/event-stream/contract.js.map +1 -0
- package/dist/event-stream/effect-schema.d.ts +117 -0
- package/dist/event-stream/effect-schema.d.ts.map +1 -0
- package/dist/event-stream/effect-schema.js +90 -0
- package/dist/event-stream/effect-schema.js.map +1 -0
- package/dist/event-stream/index.d.ts +2 -0
- package/dist/event-stream/index.d.ts.map +1 -0
- package/dist/event-stream/index.js +2 -0
- package/dist/event-stream/index.js.map +1 -0
- package/dist/feature/registry.d.ts +5 -1
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +4 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/local-node/contract.d.ts +22 -9
- package/dist/local-node/contract.d.ts.map +1 -1
- package/dist/local-node/contract.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +278 -10
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +35 -6
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +11 -4
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +15 -0
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/local-node/receipt-list.d.ts +1 -1
- package/dist/local-node/receipt-list.d.ts.map +1 -1
- package/dist/local-node/receipt-list.js +1 -0
- package/dist/local-node/receipt-list.js.map +1 -1
- package/dist/presentation/contract.d.ts +29 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +25 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +25 -0
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/release/version.d.ts +2 -2
- package/dist/release/version.d.ts.map +1 -1
- package/dist/release/version.js +2 -2
- package/dist/release/version.js.map +1 -1
- package/dist/remote-node/bridge-effect-schema.js +2 -2
- package/dist/run-ledger/contract.d.ts +2 -0
- package/dist/run-ledger/contract.d.ts.map +1 -1
- package/dist/run-ledger/result-effect-schema.d.ts +4 -0
- package/dist/run-ledger/result-effect-schema.d.ts.map +1 -1
- package/dist/runtime-schema/effect-json-schema.d.ts +9 -0
- package/dist/runtime-schema/effect-json-schema.d.ts.map +1 -0
- package/dist/runtime-schema/effect-json-schema.js +41 -0
- package/dist/runtime-schema/effect-json-schema.js.map +1 -0
- package/dist/runtime-schema/effect-schema.d.ts +1 -0
- package/dist/runtime-schema/effect-schema.d.ts.map +1 -1
- package/dist/runtime-schema/effect-schema.js +1 -0
- package/dist/runtime-schema/effect-schema.js.map +1 -1
- package/dist/session/agent-permission-contract.d.ts +5 -5
- package/dist/session/agent-permission-effect-schema.d.ts +9 -9
- package/dist/session/contract.d.ts +319 -1
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/contract.js +3 -1
- package/dist/session/contract.js.map +1 -1
- package/dist/session/effect-schema.d.ts +1213 -4
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +149 -10
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +26 -1
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +24 -1
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +2 -2
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +2 -2
- package/dist/session/index.js.map +1 -1
- package/dist/session/policy.d.ts +46 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +52 -0
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +48 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.d.ts +18 -0
- package/dist/session/worktree-effect-schema.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.js +30 -1
- package/dist/session/worktree-effect-schema.js.map +1 -1
- package/dist/session-guard/contract.d.ts +30 -1
- package/dist/session-guard/contract.d.ts.map +1 -1
- package/dist/session-guard/contract.js +10 -2
- package/dist/session-guard/contract.js.map +1 -1
- package/dist/session-guard/index.d.ts +1 -1
- package/dist/session-guard/index.d.ts.map +1 -1
- package/dist/session-guard/index.js +1 -1
- package/dist/session-guard/index.js.map +1 -1
- package/dist/session-guard/request-effect-schema.d.ts +33 -0
- package/dist/session-guard/request-effect-schema.d.ts.map +1 -1
- package/dist/session-guard/request-effect-schema.js +22 -0
- package/dist/session-guard/request-effect-schema.js.map +1 -1
- package/dist/session-guard/result-effect-schema.d.ts +26 -0
- package/dist/session-guard/result-effect-schema.d.ts.map +1 -1
- package/dist/session-guard/result-effect-schema.js +3 -1
- package/dist/session-guard/result-effect-schema.js.map +1 -1
- package/dist/terminal/contract.d.ts +1 -0
- package/dist/terminal/contract.d.ts.map +1 -1
- package/dist/terminal/effect-schema.d.ts +4 -0
- package/dist/terminal/effect-schema.d.ts.map +1 -1
- package/dist/terminal/effect-schema.js +2 -0
- package/dist/terminal/effect-schema.js.map +1 -1
- package/dist/turn/contract.d.ts +12 -0
- package/dist/turn/contract.d.ts.map +1 -1
- package/dist/turn/effect-schema.d.ts +43 -0
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +16 -9
- package/dist/turn/effect-schema.js.map +1 -1
- package/dist/voice/contract.d.ts +6 -6
- package/dist/voice/effect-schema.d.ts +9 -9
- package/dist/voice/effect-schema.d.ts.map +1 -1
- package/dist/voice/effect-schema.js +3 -1
- package/dist/voice/effect-schema.js.map +1 -1
- package/dist/voice/feature.d.ts +2 -2
- package/dist/voice/orchestrator-system-prompt.d.ts +2 -2
- package/dist/voice/orchestrator-system-prompt.js +2 -2
- package/dist/webhooks/contract.d.ts +342 -0
- package/dist/webhooks/contract.d.ts.map +1 -0
- package/dist/webhooks/contract.js +25 -0
- package/dist/webhooks/contract.js.map +1 -0
- package/dist/webhooks/effect-schema.d.ts +536 -0
- package/dist/webhooks/effect-schema.d.ts.map +1 -0
- package/dist/webhooks/effect-schema.js +177 -0
- package/dist/webhooks/effect-schema.js.map +1 -0
- package/dist/webhooks/feature.d.ts +105 -0
- package/dist/webhooks/feature.d.ts.map +1 -0
- package/dist/webhooks/feature.js +103 -0
- package/dist/webhooks/feature.js.map +1 -0
- package/dist/webhooks/hook-effect-schema.d.ts +38 -0
- package/dist/webhooks/hook-effect-schema.d.ts.map +1 -0
- package/dist/webhooks/hook-effect-schema.js +64 -0
- package/dist/webhooks/hook-effect-schema.js.map +1 -0
- package/dist/webhooks/index.d.ts +3 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +3 -0
- package/dist/webhooks/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import { SESSION_EFFORT_LEVELS } from "./policy.js";
|
|
2
|
+
import { SESSION_EFFORT_LEVELS, SESSION_PERMISSION_MODES } from "./policy.js";
|
|
3
3
|
/**
|
|
4
4
|
* A person-readable Session name: one line of 1 to 80 characters without
|
|
5
5
|
* surrounding spaces. Titles need not be unique; a reference to one fails
|
|
6
6
|
* when it matches more than one Session.
|
|
7
7
|
*/
|
|
8
8
|
export declare const sessionTitleEffectSchema: Schema.String;
|
|
9
|
+
/**
|
|
10
|
+
* Up to 8 labels that tell a person or a bot which lane a Session belongs to
|
|
11
|
+
* (owner, lane, goal). A key is a lower-case name of up to 32 characters; a
|
|
12
|
+
* value is 1 to 64 printable ASCII characters without spaces or commas. A
|
|
13
|
+
* label is not a place for secrets: it shows in every Session list.
|
|
14
|
+
*/
|
|
15
|
+
export declare const sessionLabelsEffectSchema: Schema.$Record<Schema.String, Schema.String>;
|
|
9
16
|
/** 1 to 100 items. */
|
|
10
17
|
export declare const pageSizeEffectSchema: Schema.Int;
|
|
11
18
|
export declare const sessionExecutorKindEffectSchema: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
@@ -13,6 +20,9 @@ export declare const sessionExecutorKindEffectSchema: Schema.Literals<readonly [
|
|
|
13
20
|
export declare const agentIdentifierEffectSchema: Schema.String;
|
|
14
21
|
export declare const sessionEffortEffectSchema: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>;
|
|
15
22
|
export declare const supportsEffort: (kind: keyof typeof SESSION_EFFORT_LEVELS, effort: string) => boolean;
|
|
23
|
+
/** A permission mode either vendor CLI documents; the Node checks it against the Session's executor kind. */
|
|
24
|
+
export declare const sessionPermissionEffectSchema: Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>;
|
|
25
|
+
export declare const supportsPermission: (kind: keyof typeof SESSION_PERMISSION_MODES, permission: string) => boolean;
|
|
16
26
|
export declare const sessionEffectSchema: Schema.Struct<{
|
|
17
27
|
readonly createdAt: Schema.String;
|
|
18
28
|
readonly id: Schema.String;
|
|
@@ -22,11 +32,19 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
22
32
|
readonly updatedAt: Schema.String;
|
|
23
33
|
readonly workspaceId: Schema.String;
|
|
24
34
|
readonly workspaceRevision: Schema.String;
|
|
35
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
36
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
25
37
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
26
38
|
readonly contentDigest: Schema.String;
|
|
27
39
|
readonly key: Schema.String;
|
|
28
40
|
readonly version: Schema.String;
|
|
29
41
|
}>>;
|
|
42
|
+
/**
|
|
43
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
44
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
45
|
+
* A sandboxed Session carries none.
|
|
46
|
+
*/
|
|
47
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
30
48
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
31
49
|
readonly connectionId: Schema.String;
|
|
32
50
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -38,7 +56,46 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
38
56
|
readonly code: Schema.String;
|
|
39
57
|
readonly message: Schema.String;
|
|
40
58
|
}>>;
|
|
59
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
60
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
61
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
62
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
63
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
64
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
65
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
66
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
67
|
+
/**
|
|
68
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
69
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
70
|
+
* one of the two and never otherwise: a `question` names a question
|
|
71
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
72
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
73
|
+
* it.
|
|
74
|
+
*/
|
|
75
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
76
|
+
readonly approvalId: Schema.String;
|
|
77
|
+
readonly expiresAt: Schema.String;
|
|
78
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
79
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
80
|
+
readonly label: Schema.String;
|
|
81
|
+
readonly optionId: Schema.String;
|
|
82
|
+
}>>>;
|
|
83
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
84
|
+
}>>;
|
|
85
|
+
/**
|
|
86
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
87
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
88
|
+
* every other state.
|
|
89
|
+
*/
|
|
90
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
91
|
+
readonly code: Schema.String;
|
|
92
|
+
readonly message: Schema.String;
|
|
93
|
+
}>>;
|
|
41
94
|
readonly schemaVersion: Schema.Literal<4>;
|
|
95
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
96
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
97
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
98
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
42
99
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
43
100
|
readonly title: Schema.optional<Schema.String>;
|
|
44
101
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -69,6 +126,12 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
69
126
|
readonly key: Schema.String;
|
|
70
127
|
readonly version: Schema.String;
|
|
71
128
|
}>>;
|
|
129
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
130
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
131
|
+
/** `none` when the Session runs with host authority. */
|
|
132
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
133
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
134
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
72
135
|
/** The account the Session binds to, named or picked by the Node. */
|
|
73
136
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
74
137
|
readonly connectionId: Schema.String;
|
|
@@ -76,6 +139,8 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
76
139
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
77
140
|
readonly model: Schema.optional<Schema.String>;
|
|
78
141
|
}>>;
|
|
142
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
143
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
79
144
|
readonly projectId: Schema.String;
|
|
80
145
|
readonly workspaceId: Schema.String;
|
|
81
146
|
readonly workspaceRevision: Schema.String;
|
|
@@ -119,6 +184,20 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
119
184
|
readonly schemaVersion: Schema.Literal<4>;
|
|
120
185
|
readonly sessionCursor: Schema.String;
|
|
121
186
|
readonly sessionId: Schema.String;
|
|
187
|
+
}>, Schema.Struct<{
|
|
188
|
+
readonly commandId: Schema.String;
|
|
189
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
190
|
+
readonly globalCursor: Schema.String;
|
|
191
|
+
readonly payload: Schema.Struct<{
|
|
192
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
193
|
+
readonly code: Schema.String;
|
|
194
|
+
readonly message: Schema.String;
|
|
195
|
+
}>>;
|
|
196
|
+
}>;
|
|
197
|
+
readonly recordedAt: Schema.String;
|
|
198
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
199
|
+
readonly sessionCursor: Schema.String;
|
|
200
|
+
readonly sessionId: Schema.String;
|
|
122
201
|
}>, Schema.Struct<{
|
|
123
202
|
readonly commandId: Schema.String;
|
|
124
203
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -276,9 +355,13 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
276
355
|
* both `connectionId` and `executor`, and optionally the `model`. An Agent
|
|
277
356
|
* (`agentId`) supplies the harness, Connection, model and effort itself, so it
|
|
278
357
|
* excludes every one of them. `role` (default `worker`) bounds what the
|
|
279
|
-
* Session's own credential reaches.
|
|
280
|
-
*
|
|
281
|
-
*
|
|
358
|
+
* Session's own credential reaches. `hostAuthority` opts one executor Session
|
|
359
|
+
* out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
|
|
360
|
+
* runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
|
|
361
|
+
* role, and passes `permission` to its vendor CLI unchanged. A vendor
|
|
362
|
+
* executor Session with `worktree` is a coding Session: it gets its own
|
|
363
|
+
* worktree from the base ref of the Workspace's repository and may write
|
|
364
|
+
* inside it.
|
|
282
365
|
*/
|
|
283
366
|
export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
284
367
|
readonly commandId: Schema.String;
|
|
@@ -286,6 +369,8 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
286
369
|
readonly workspaceId: Schema.String;
|
|
287
370
|
readonly agentId: Schema.optional<Schema.String>;
|
|
288
371
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
372
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
373
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
289
374
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
290
375
|
readonly contentDigest: Schema.String;
|
|
291
376
|
readonly key: Schema.String;
|
|
@@ -293,7 +378,10 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
293
378
|
}>>;
|
|
294
379
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
295
380
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
381
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
382
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
296
383
|
readonly model: Schema.optional<Schema.String>;
|
|
384
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
297
385
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
298
386
|
readonly title: Schema.optional<Schema.String>;
|
|
299
387
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
@@ -322,13 +410,27 @@ export declare const sessionSpawnParametersEffectSchema: Schema.Struct<{
|
|
|
322
410
|
export declare const sessionListParametersEffectSchema: Schema.Struct<{
|
|
323
411
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
324
412
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
413
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
414
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
415
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
416
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
325
417
|
readonly limit: Schema.optional<Schema.Int>;
|
|
326
418
|
readonly projectId: Schema.optional<Schema.String>;
|
|
419
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
420
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
327
421
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
328
422
|
}>;
|
|
329
423
|
export declare const sessionShowParametersEffectSchema: Schema.Struct<{
|
|
330
424
|
readonly sessionId: Schema.String;
|
|
331
425
|
}>;
|
|
426
|
+
export declare const sessionWaitParametersEffectSchema: Schema.Struct<{
|
|
427
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
428
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
429
|
+
readonly sessionId: Schema.String;
|
|
430
|
+
/** The wait ends when the Session is in any of these states. */
|
|
431
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
432
|
+
readonly waitMilliseconds: Schema.Int;
|
|
433
|
+
}>;
|
|
332
434
|
export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
|
|
333
435
|
readonly afterSessionCursor: Schema.String;
|
|
334
436
|
readonly limit: Schema.Int;
|
|
@@ -579,11 +681,19 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
579
681
|
readonly updatedAt: Schema.String;
|
|
580
682
|
readonly workspaceId: Schema.String;
|
|
581
683
|
readonly workspaceRevision: Schema.String;
|
|
684
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
685
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
582
686
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
583
687
|
readonly contentDigest: Schema.String;
|
|
584
688
|
readonly key: Schema.String;
|
|
585
689
|
readonly version: Schema.String;
|
|
586
690
|
}>>;
|
|
691
|
+
/**
|
|
692
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
693
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
694
|
+
* A sandboxed Session carries none.
|
|
695
|
+
*/
|
|
696
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
587
697
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
588
698
|
readonly connectionId: Schema.String;
|
|
589
699
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -595,7 +705,46 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
595
705
|
readonly code: Schema.String;
|
|
596
706
|
readonly message: Schema.String;
|
|
597
707
|
}>>;
|
|
708
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
709
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
710
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
711
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
712
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
713
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
714
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
715
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
716
|
+
/**
|
|
717
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
718
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
719
|
+
* one of the two and never otherwise: a `question` names a question
|
|
720
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
721
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
722
|
+
* it.
|
|
723
|
+
*/
|
|
724
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
725
|
+
readonly approvalId: Schema.String;
|
|
726
|
+
readonly expiresAt: Schema.String;
|
|
727
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
728
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
729
|
+
readonly label: Schema.String;
|
|
730
|
+
readonly optionId: Schema.String;
|
|
731
|
+
}>>>;
|
|
732
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
733
|
+
}>>;
|
|
734
|
+
/**
|
|
735
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
736
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
737
|
+
* every other state.
|
|
738
|
+
*/
|
|
739
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
740
|
+
readonly code: Schema.String;
|
|
741
|
+
readonly message: Schema.String;
|
|
742
|
+
}>>;
|
|
598
743
|
readonly schemaVersion: Schema.Literal<4>;
|
|
744
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
745
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
746
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
747
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
599
748
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
600
749
|
readonly title: Schema.optional<Schema.String>;
|
|
601
750
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -642,11 +791,19 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
642
791
|
readonly updatedAt: Schema.String;
|
|
643
792
|
readonly workspaceId: Schema.String;
|
|
644
793
|
readonly workspaceRevision: Schema.String;
|
|
794
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
795
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
645
796
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
646
797
|
readonly contentDigest: Schema.String;
|
|
647
798
|
readonly key: Schema.String;
|
|
648
799
|
readonly version: Schema.String;
|
|
649
800
|
}>>;
|
|
801
|
+
/**
|
|
802
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
803
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
804
|
+
* A sandboxed Session carries none.
|
|
805
|
+
*/
|
|
806
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
650
807
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
651
808
|
readonly connectionId: Schema.String;
|
|
652
809
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -658,7 +815,46 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
658
815
|
readonly code: Schema.String;
|
|
659
816
|
readonly message: Schema.String;
|
|
660
817
|
}>>;
|
|
818
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
819
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
820
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
821
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
822
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
823
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
824
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
825
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
826
|
+
/**
|
|
827
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
828
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
829
|
+
* one of the two and never otherwise: a `question` names a question
|
|
830
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
831
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
832
|
+
* it.
|
|
833
|
+
*/
|
|
834
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
835
|
+
readonly approvalId: Schema.String;
|
|
836
|
+
readonly expiresAt: Schema.String;
|
|
837
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
838
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
839
|
+
readonly label: Schema.String;
|
|
840
|
+
readonly optionId: Schema.String;
|
|
841
|
+
}>>>;
|
|
842
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
843
|
+
}>>;
|
|
844
|
+
/**
|
|
845
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
846
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
847
|
+
* every other state.
|
|
848
|
+
*/
|
|
849
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
850
|
+
readonly code: Schema.String;
|
|
851
|
+
readonly message: Schema.String;
|
|
852
|
+
}>>;
|
|
661
853
|
readonly schemaVersion: Schema.Literal<4>;
|
|
854
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
855
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
856
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
857
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
662
858
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
663
859
|
readonly title: Schema.optional<Schema.String>;
|
|
664
860
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -689,11 +885,19 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
689
885
|
readonly updatedAt: Schema.String;
|
|
690
886
|
readonly workspaceId: Schema.String;
|
|
691
887
|
readonly workspaceRevision: Schema.String;
|
|
888
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
889
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
692
890
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
693
891
|
readonly contentDigest: Schema.String;
|
|
694
892
|
readonly key: Schema.String;
|
|
695
893
|
readonly version: Schema.String;
|
|
696
894
|
}>>;
|
|
895
|
+
/**
|
|
896
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
897
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
898
|
+
* A sandboxed Session carries none.
|
|
899
|
+
*/
|
|
900
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
697
901
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
698
902
|
readonly connectionId: Schema.String;
|
|
699
903
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -705,7 +909,46 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
705
909
|
readonly code: Schema.String;
|
|
706
910
|
readonly message: Schema.String;
|
|
707
911
|
}>>;
|
|
912
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
913
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
914
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
915
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
916
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
917
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
918
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
919
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
920
|
+
/**
|
|
921
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
922
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
923
|
+
* one of the two and never otherwise: a `question` names a question
|
|
924
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
925
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
926
|
+
* it.
|
|
927
|
+
*/
|
|
928
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
929
|
+
readonly approvalId: Schema.String;
|
|
930
|
+
readonly expiresAt: Schema.String;
|
|
931
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
932
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
933
|
+
readonly label: Schema.String;
|
|
934
|
+
readonly optionId: Schema.String;
|
|
935
|
+
}>>>;
|
|
936
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
937
|
+
}>>;
|
|
938
|
+
/**
|
|
939
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
940
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
941
|
+
* every other state.
|
|
942
|
+
*/
|
|
943
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
944
|
+
readonly code: Schema.String;
|
|
945
|
+
readonly message: Schema.String;
|
|
946
|
+
}>>;
|
|
708
947
|
readonly schemaVersion: Schema.Literal<4>;
|
|
948
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
949
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
950
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
951
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
709
952
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
710
953
|
readonly title: Schema.optional<Schema.String>;
|
|
711
954
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -735,11 +978,112 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
735
978
|
readonly updatedAt: Schema.String;
|
|
736
979
|
readonly workspaceId: Schema.String;
|
|
737
980
|
readonly workspaceRevision: Schema.String;
|
|
981
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
982
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
983
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
984
|
+
readonly contentDigest: Schema.String;
|
|
985
|
+
readonly key: Schema.String;
|
|
986
|
+
readonly version: Schema.String;
|
|
987
|
+
}>>;
|
|
988
|
+
/**
|
|
989
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
990
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
991
|
+
* A sandboxed Session carries none.
|
|
992
|
+
*/
|
|
993
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
994
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
995
|
+
readonly connectionId: Schema.String;
|
|
996
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
997
|
+
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
998
|
+
readonly model: Schema.optional<Schema.String>;
|
|
999
|
+
}>>;
|
|
1000
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
1001
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1002
|
+
readonly code: Schema.String;
|
|
1003
|
+
readonly message: Schema.String;
|
|
1004
|
+
}>>;
|
|
1005
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1006
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1007
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1008
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1009
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1010
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1011
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1012
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1013
|
+
/**
|
|
1014
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1015
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1016
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1017
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1018
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1019
|
+
* it.
|
|
1020
|
+
*/
|
|
1021
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1022
|
+
readonly approvalId: Schema.String;
|
|
1023
|
+
readonly expiresAt: Schema.String;
|
|
1024
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1025
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1026
|
+
readonly label: Schema.String;
|
|
1027
|
+
readonly optionId: Schema.String;
|
|
1028
|
+
}>>>;
|
|
1029
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1030
|
+
}>>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1033
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1034
|
+
* every other state.
|
|
1035
|
+
*/
|
|
1036
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1037
|
+
readonly code: Schema.String;
|
|
1038
|
+
readonly message: Schema.String;
|
|
1039
|
+
}>>;
|
|
1040
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
1041
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1042
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1043
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1044
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1045
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1046
|
+
readonly title: Schema.optional<Schema.String>;
|
|
1047
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1048
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1049
|
+
readonly baseRef: Schema.String;
|
|
1050
|
+
readonly baseRevision: Schema.String;
|
|
1051
|
+
readonly branch: Schema.String;
|
|
1052
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
1053
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1054
|
+
readonly digest: Schema.String;
|
|
1055
|
+
readonly name: Schema.String;
|
|
1056
|
+
}>>>;
|
|
1057
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1058
|
+
}>>;
|
|
1059
|
+
}>;
|
|
1060
|
+
}>;
|
|
1061
|
+
/** `satisfied` is false when the bounded wait ended first; `session` is then its last read. */
|
|
1062
|
+
export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
1063
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
1064
|
+
readonly satisfied: Schema.Boolean;
|
|
1065
|
+
readonly session: Schema.Struct<{
|
|
1066
|
+
readonly createdAt: Schema.String;
|
|
1067
|
+
readonly id: Schema.String;
|
|
1068
|
+
readonly projectId: Schema.String;
|
|
1069
|
+
readonly revision: Schema.String;
|
|
1070
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1071
|
+
readonly updatedAt: Schema.String;
|
|
1072
|
+
readonly workspaceId: Schema.String;
|
|
1073
|
+
readonly workspaceRevision: Schema.String;
|
|
1074
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1075
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
738
1076
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
739
1077
|
readonly contentDigest: Schema.String;
|
|
740
1078
|
readonly key: Schema.String;
|
|
741
1079
|
readonly version: Schema.String;
|
|
742
1080
|
}>>;
|
|
1081
|
+
/**
|
|
1082
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1083
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1084
|
+
* A sandboxed Session carries none.
|
|
1085
|
+
*/
|
|
1086
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
743
1087
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
744
1088
|
readonly connectionId: Schema.String;
|
|
745
1089
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -751,7 +1095,46 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
751
1095
|
readonly code: Schema.String;
|
|
752
1096
|
readonly message: Schema.String;
|
|
753
1097
|
}>>;
|
|
1098
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1099
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1100
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1101
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1102
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1103
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1104
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1105
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1106
|
+
/**
|
|
1107
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1108
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1109
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1110
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1111
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1112
|
+
* it.
|
|
1113
|
+
*/
|
|
1114
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1115
|
+
readonly approvalId: Schema.String;
|
|
1116
|
+
readonly expiresAt: Schema.String;
|
|
1117
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1118
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1119
|
+
readonly label: Schema.String;
|
|
1120
|
+
readonly optionId: Schema.String;
|
|
1121
|
+
}>>>;
|
|
1122
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1123
|
+
}>>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1126
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1127
|
+
* every other state.
|
|
1128
|
+
*/
|
|
1129
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1130
|
+
readonly code: Schema.String;
|
|
1131
|
+
readonly message: Schema.String;
|
|
1132
|
+
}>>;
|
|
754
1133
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1134
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1135
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1136
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1137
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
755
1138
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
756
1139
|
readonly title: Schema.optional<Schema.String>;
|
|
757
1140
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -785,6 +1168,12 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
785
1168
|
readonly key: Schema.String;
|
|
786
1169
|
readonly version: Schema.String;
|
|
787
1170
|
}>>;
|
|
1171
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
1172
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
1173
|
+
/** `none` when the Session runs with host authority. */
|
|
1174
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1175
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
1176
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
788
1177
|
/** The account the Session binds to, named or picked by the Node. */
|
|
789
1178
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
790
1179
|
readonly connectionId: Schema.String;
|
|
@@ -792,6 +1181,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
792
1181
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
793
1182
|
readonly model: Schema.optional<Schema.String>;
|
|
794
1183
|
}>>;
|
|
1184
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
1185
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
795
1186
|
readonly projectId: Schema.String;
|
|
796
1187
|
readonly workspaceId: Schema.String;
|
|
797
1188
|
readonly workspaceRevision: Schema.String;
|
|
@@ -835,6 +1226,20 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
835
1226
|
readonly schemaVersion: Schema.Literal<4>;
|
|
836
1227
|
readonly sessionCursor: Schema.String;
|
|
837
1228
|
readonly sessionId: Schema.String;
|
|
1229
|
+
}>, Schema.Struct<{
|
|
1230
|
+
readonly commandId: Schema.String;
|
|
1231
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
1232
|
+
readonly globalCursor: Schema.String;
|
|
1233
|
+
readonly payload: Schema.Struct<{
|
|
1234
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1235
|
+
readonly code: Schema.String;
|
|
1236
|
+
readonly message: Schema.String;
|
|
1237
|
+
}>>;
|
|
1238
|
+
}>;
|
|
1239
|
+
readonly recordedAt: Schema.String;
|
|
1240
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
1241
|
+
readonly sessionCursor: Schema.String;
|
|
1242
|
+
readonly sessionId: Schema.String;
|
|
838
1243
|
}>, Schema.Struct<{
|
|
839
1244
|
readonly commandId: Schema.String;
|
|
840
1245
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -987,6 +1392,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
987
1392
|
}>]>]>>;
|
|
988
1393
|
readonly method: Schema.Literal<"session.events.list">;
|
|
989
1394
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
1395
|
+
/** Set when a prune removed events after the caller's cursor: the oldest retained cursor. */
|
|
1396
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
990
1397
|
readonly sessionId: Schema.String;
|
|
991
1398
|
}>;
|
|
992
1399
|
export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
@@ -1017,11 +1424,19 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1017
1424
|
readonly updatedAt: Schema.String;
|
|
1018
1425
|
readonly workspaceId: Schema.String;
|
|
1019
1426
|
readonly workspaceRevision: Schema.String;
|
|
1427
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1428
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1020
1429
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1021
1430
|
readonly contentDigest: Schema.String;
|
|
1022
1431
|
readonly key: Schema.String;
|
|
1023
1432
|
readonly version: Schema.String;
|
|
1024
1433
|
}>>;
|
|
1434
|
+
/**
|
|
1435
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1436
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1437
|
+
* A sandboxed Session carries none.
|
|
1438
|
+
*/
|
|
1439
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1025
1440
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1026
1441
|
readonly connectionId: Schema.String;
|
|
1027
1442
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1033,7 +1448,46 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1033
1448
|
readonly code: Schema.String;
|
|
1034
1449
|
readonly message: Schema.String;
|
|
1035
1450
|
}>>;
|
|
1451
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1452
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1453
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1454
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1455
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1456
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1457
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1458
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1459
|
+
/**
|
|
1460
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1461
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1462
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1463
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1464
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1465
|
+
* it.
|
|
1466
|
+
*/
|
|
1467
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1468
|
+
readonly approvalId: Schema.String;
|
|
1469
|
+
readonly expiresAt: Schema.String;
|
|
1470
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1471
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1472
|
+
readonly label: Schema.String;
|
|
1473
|
+
readonly optionId: Schema.String;
|
|
1474
|
+
}>>>;
|
|
1475
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1476
|
+
}>>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1479
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1480
|
+
* every other state.
|
|
1481
|
+
*/
|
|
1482
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1483
|
+
readonly code: Schema.String;
|
|
1484
|
+
readonly message: Schema.String;
|
|
1485
|
+
}>>;
|
|
1036
1486
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1487
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1488
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1489
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1490
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1037
1491
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1038
1492
|
readonly title: Schema.optional<Schema.String>;
|
|
1039
1493
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1078,11 +1532,19 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1078
1532
|
readonly updatedAt: Schema.String;
|
|
1079
1533
|
readonly workspaceId: Schema.String;
|
|
1080
1534
|
readonly workspaceRevision: Schema.String;
|
|
1535
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1536
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1081
1537
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1082
1538
|
readonly contentDigest: Schema.String;
|
|
1083
1539
|
readonly key: Schema.String;
|
|
1084
1540
|
readonly version: Schema.String;
|
|
1085
1541
|
}>>;
|
|
1542
|
+
/**
|
|
1543
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1544
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1545
|
+
* A sandboxed Session carries none.
|
|
1546
|
+
*/
|
|
1547
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1086
1548
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1087
1549
|
readonly connectionId: Schema.String;
|
|
1088
1550
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1094,7 +1556,46 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1094
1556
|
readonly code: Schema.String;
|
|
1095
1557
|
readonly message: Schema.String;
|
|
1096
1558
|
}>>;
|
|
1559
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1560
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1561
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1562
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1563
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1564
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1565
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1566
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1567
|
+
/**
|
|
1568
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1569
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1570
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1571
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1572
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1573
|
+
* it.
|
|
1574
|
+
*/
|
|
1575
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1576
|
+
readonly approvalId: Schema.String;
|
|
1577
|
+
readonly expiresAt: Schema.String;
|
|
1578
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1579
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1580
|
+
readonly label: Schema.String;
|
|
1581
|
+
readonly optionId: Schema.String;
|
|
1582
|
+
}>>>;
|
|
1583
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1584
|
+
}>>;
|
|
1585
|
+
/**
|
|
1586
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1587
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1588
|
+
* every other state.
|
|
1589
|
+
*/
|
|
1590
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1591
|
+
readonly code: Schema.String;
|
|
1592
|
+
readonly message: Schema.String;
|
|
1593
|
+
}>>;
|
|
1097
1594
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1595
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1596
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1597
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1598
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1098
1599
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1099
1600
|
readonly title: Schema.optional<Schema.String>;
|
|
1100
1601
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1139,11 +1640,19 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1139
1640
|
readonly updatedAt: Schema.String;
|
|
1140
1641
|
readonly workspaceId: Schema.String;
|
|
1141
1642
|
readonly workspaceRevision: Schema.String;
|
|
1643
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1644
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1142
1645
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1143
1646
|
readonly contentDigest: Schema.String;
|
|
1144
1647
|
readonly key: Schema.String;
|
|
1145
1648
|
readonly version: Schema.String;
|
|
1146
1649
|
}>>;
|
|
1650
|
+
/**
|
|
1651
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1652
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1653
|
+
* A sandboxed Session carries none.
|
|
1654
|
+
*/
|
|
1655
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1147
1656
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1148
1657
|
readonly connectionId: Schema.String;
|
|
1149
1658
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1155,7 +1664,46 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1155
1664
|
readonly code: Schema.String;
|
|
1156
1665
|
readonly message: Schema.String;
|
|
1157
1666
|
}>>;
|
|
1667
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1668
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1669
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1670
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1671
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1672
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1673
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1674
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1675
|
+
/**
|
|
1676
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1677
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1678
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1679
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1680
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1681
|
+
* it.
|
|
1682
|
+
*/
|
|
1683
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1684
|
+
readonly approvalId: Schema.String;
|
|
1685
|
+
readonly expiresAt: Schema.String;
|
|
1686
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1687
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1688
|
+
readonly label: Schema.String;
|
|
1689
|
+
readonly optionId: Schema.String;
|
|
1690
|
+
}>>>;
|
|
1691
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1692
|
+
}>>;
|
|
1693
|
+
/**
|
|
1694
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1695
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1696
|
+
* every other state.
|
|
1697
|
+
*/
|
|
1698
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1699
|
+
readonly code: Schema.String;
|
|
1700
|
+
readonly message: Schema.String;
|
|
1701
|
+
}>>;
|
|
1158
1702
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1703
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1704
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1705
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1706
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1159
1707
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1160
1708
|
readonly title: Schema.optional<Schema.String>;
|
|
1161
1709
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1200,11 +1748,19 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1200
1748
|
readonly updatedAt: Schema.String;
|
|
1201
1749
|
readonly workspaceId: Schema.String;
|
|
1202
1750
|
readonly workspaceRevision: Schema.String;
|
|
1751
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1752
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1203
1753
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1204
1754
|
readonly contentDigest: Schema.String;
|
|
1205
1755
|
readonly key: Schema.String;
|
|
1206
1756
|
readonly version: Schema.String;
|
|
1207
1757
|
}>>;
|
|
1758
|
+
/**
|
|
1759
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1760
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1761
|
+
* A sandboxed Session carries none.
|
|
1762
|
+
*/
|
|
1763
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1208
1764
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1209
1765
|
readonly connectionId: Schema.String;
|
|
1210
1766
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1216,7 +1772,46 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1216
1772
|
readonly code: Schema.String;
|
|
1217
1773
|
readonly message: Schema.String;
|
|
1218
1774
|
}>>;
|
|
1775
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1776
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1777
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1778
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1779
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1780
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1781
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1782
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1783
|
+
/**
|
|
1784
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1785
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1786
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1787
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1788
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1789
|
+
* it.
|
|
1790
|
+
*/
|
|
1791
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1792
|
+
readonly approvalId: Schema.String;
|
|
1793
|
+
readonly expiresAt: Schema.String;
|
|
1794
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1795
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1796
|
+
readonly label: Schema.String;
|
|
1797
|
+
readonly optionId: Schema.String;
|
|
1798
|
+
}>>>;
|
|
1799
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1800
|
+
}>>;
|
|
1801
|
+
/**
|
|
1802
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1803
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1804
|
+
* every other state.
|
|
1805
|
+
*/
|
|
1806
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1807
|
+
readonly code: Schema.String;
|
|
1808
|
+
readonly message: Schema.String;
|
|
1809
|
+
}>>;
|
|
1219
1810
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1811
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1812
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1813
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1814
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1220
1815
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1221
1816
|
readonly title: Schema.optional<Schema.String>;
|
|
1222
1817
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1272,11 +1867,19 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1272
1867
|
readonly updatedAt: Schema.String;
|
|
1273
1868
|
readonly workspaceId: Schema.String;
|
|
1274
1869
|
readonly workspaceRevision: Schema.String;
|
|
1870
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1871
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1275
1872
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1276
1873
|
readonly contentDigest: Schema.String;
|
|
1277
1874
|
readonly key: Schema.String;
|
|
1278
1875
|
readonly version: Schema.String;
|
|
1279
1876
|
}>>;
|
|
1877
|
+
/**
|
|
1878
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1879
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1880
|
+
* A sandboxed Session carries none.
|
|
1881
|
+
*/
|
|
1882
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1280
1883
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1281
1884
|
readonly connectionId: Schema.String;
|
|
1282
1885
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1288,7 +1891,46 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1288
1891
|
readonly code: Schema.String;
|
|
1289
1892
|
readonly message: Schema.String;
|
|
1290
1893
|
}>>;
|
|
1894
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1895
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1896
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1897
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1898
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1899
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1900
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1901
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1902
|
+
/**
|
|
1903
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1904
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1905
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1906
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1907
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1908
|
+
* it.
|
|
1909
|
+
*/
|
|
1910
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1911
|
+
readonly approvalId: Schema.String;
|
|
1912
|
+
readonly expiresAt: Schema.String;
|
|
1913
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1914
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1915
|
+
readonly label: Schema.String;
|
|
1916
|
+
readonly optionId: Schema.String;
|
|
1917
|
+
}>>>;
|
|
1918
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1919
|
+
}>>;
|
|
1920
|
+
/**
|
|
1921
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1922
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1923
|
+
* every other state.
|
|
1924
|
+
*/
|
|
1925
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1926
|
+
readonly code: Schema.String;
|
|
1927
|
+
readonly message: Schema.String;
|
|
1928
|
+
}>>;
|
|
1291
1929
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1930
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1931
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1932
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1933
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1292
1934
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1293
1935
|
readonly title: Schema.optional<Schema.String>;
|
|
1294
1936
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1304,6 +1946,9 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1304
1946
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1305
1947
|
}>>;
|
|
1306
1948
|
}>;
|
|
1949
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
1950
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1951
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1307
1952
|
}>;
|
|
1308
1953
|
export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1309
1954
|
readonly method: Schema.Literal<"session.create">;
|
|
@@ -1313,6 +1958,8 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1313
1958
|
readonly workspaceId: Schema.String;
|
|
1314
1959
|
readonly agentId: Schema.optional<Schema.String>;
|
|
1315
1960
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
1961
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
1962
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1316
1963
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
1317
1964
|
readonly contentDigest: Schema.String;
|
|
1318
1965
|
readonly key: Schema.String;
|
|
@@ -1320,7 +1967,10 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1320
1967
|
}>>;
|
|
1321
1968
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1322
1969
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
1970
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1971
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1323
1972
|
readonly model: Schema.optional<Schema.String>;
|
|
1973
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1324
1974
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
1325
1975
|
readonly title: Schema.optional<Schema.String>;
|
|
1326
1976
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
@@ -1332,8 +1982,14 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1332
1982
|
readonly parameters: Schema.Struct<{
|
|
1333
1983
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
1334
1984
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
1985
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
1986
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
1987
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
1988
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1335
1989
|
readonly limit: Schema.optional<Schema.Int>;
|
|
1336
1990
|
readonly projectId: Schema.optional<Schema.String>;
|
|
1991
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
1992
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
1337
1993
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1338
1994
|
}>;
|
|
1339
1995
|
}>, Schema.Struct<{
|
|
@@ -1341,6 +1997,16 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1341
1997
|
readonly parameters: Schema.Struct<{
|
|
1342
1998
|
readonly sessionId: Schema.String;
|
|
1343
1999
|
}>;
|
|
2000
|
+
}>, Schema.Struct<{
|
|
2001
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
2002
|
+
readonly parameters: Schema.Struct<{
|
|
2003
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
2004
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
2005
|
+
readonly sessionId: Schema.String;
|
|
2006
|
+
/** The wait ends when the Session is in any of these states. */
|
|
2007
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
2008
|
+
readonly waitMilliseconds: Schema.Int;
|
|
2009
|
+
}>;
|
|
1344
2010
|
}>, Schema.Struct<{
|
|
1345
2011
|
readonly method: Schema.Literal<"session.spawn">;
|
|
1346
2012
|
readonly parameters: Schema.Struct<{
|
|
@@ -1421,6 +2087,8 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1421
2087
|
readonly commandId: Schema.String;
|
|
1422
2088
|
readonly expectedRevision: Schema.String;
|
|
1423
2089
|
readonly sessionId: Schema.String;
|
|
2090
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2091
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1424
2092
|
}>;
|
|
1425
2093
|
}>, Schema.Struct<{
|
|
1426
2094
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -1459,11 +2127,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1459
2127
|
readonly updatedAt: Schema.String;
|
|
1460
2128
|
readonly workspaceId: Schema.String;
|
|
1461
2129
|
readonly workspaceRevision: Schema.String;
|
|
2130
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2131
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1462
2132
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1463
2133
|
readonly contentDigest: Schema.String;
|
|
1464
2134
|
readonly key: Schema.String;
|
|
1465
2135
|
readonly version: Schema.String;
|
|
1466
2136
|
}>>;
|
|
2137
|
+
/**
|
|
2138
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2139
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2140
|
+
* A sandboxed Session carries none.
|
|
2141
|
+
*/
|
|
2142
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1467
2143
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1468
2144
|
readonly connectionId: Schema.String;
|
|
1469
2145
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1475,7 +2151,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1475
2151
|
readonly code: Schema.String;
|
|
1476
2152
|
readonly message: Schema.String;
|
|
1477
2153
|
}>>;
|
|
2154
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2155
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2156
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2157
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2158
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2159
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2160
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2161
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2162
|
+
/**
|
|
2163
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2164
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2165
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2166
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2167
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2168
|
+
* it.
|
|
2169
|
+
*/
|
|
2170
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2171
|
+
readonly approvalId: Schema.String;
|
|
2172
|
+
readonly expiresAt: Schema.String;
|
|
2173
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2174
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2175
|
+
readonly label: Schema.String;
|
|
2176
|
+
readonly optionId: Schema.String;
|
|
2177
|
+
}>>>;
|
|
2178
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2179
|
+
}>>;
|
|
2180
|
+
/**
|
|
2181
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2182
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2183
|
+
* every other state.
|
|
2184
|
+
*/
|
|
2185
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2186
|
+
readonly code: Schema.String;
|
|
2187
|
+
readonly message: Schema.String;
|
|
2188
|
+
}>>;
|
|
1478
2189
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2190
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2191
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2192
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2193
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1479
2194
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1480
2195
|
readonly title: Schema.optional<Schema.String>;
|
|
1481
2196
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1584,11 +2299,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1584
2299
|
readonly updatedAt: Schema.String;
|
|
1585
2300
|
readonly workspaceId: Schema.String;
|
|
1586
2301
|
readonly workspaceRevision: Schema.String;
|
|
2302
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2303
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1587
2304
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1588
2305
|
readonly contentDigest: Schema.String;
|
|
1589
2306
|
readonly key: Schema.String;
|
|
1590
2307
|
readonly version: Schema.String;
|
|
1591
2308
|
}>>;
|
|
2309
|
+
/**
|
|
2310
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2311
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2312
|
+
* A sandboxed Session carries none.
|
|
2313
|
+
*/
|
|
2314
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1592
2315
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1593
2316
|
readonly connectionId: Schema.String;
|
|
1594
2317
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1600,7 +2323,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1600
2323
|
readonly code: Schema.String;
|
|
1601
2324
|
readonly message: Schema.String;
|
|
1602
2325
|
}>>;
|
|
2326
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2327
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2328
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2329
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2330
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2331
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2332
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2333
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2334
|
+
/**
|
|
2335
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2336
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2337
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2338
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2339
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2340
|
+
* it.
|
|
2341
|
+
*/
|
|
2342
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2343
|
+
readonly approvalId: Schema.String;
|
|
2344
|
+
readonly expiresAt: Schema.String;
|
|
2345
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2346
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2347
|
+
readonly label: Schema.String;
|
|
2348
|
+
readonly optionId: Schema.String;
|
|
2349
|
+
}>>>;
|
|
2350
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2351
|
+
}>>;
|
|
2352
|
+
/**
|
|
2353
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2354
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2355
|
+
* every other state.
|
|
2356
|
+
*/
|
|
2357
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2358
|
+
readonly code: Schema.String;
|
|
2359
|
+
readonly message: Schema.String;
|
|
2360
|
+
}>>;
|
|
1603
2361
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2362
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2363
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2364
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2365
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1604
2366
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1605
2367
|
readonly title: Schema.optional<Schema.String>;
|
|
1606
2368
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1695,11 +2457,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1695
2457
|
readonly updatedAt: Schema.String;
|
|
1696
2458
|
readonly workspaceId: Schema.String;
|
|
1697
2459
|
readonly workspaceRevision: Schema.String;
|
|
2460
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2461
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1698
2462
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1699
2463
|
readonly contentDigest: Schema.String;
|
|
1700
2464
|
readonly key: Schema.String;
|
|
1701
2465
|
readonly version: Schema.String;
|
|
1702
2466
|
}>>;
|
|
2467
|
+
/**
|
|
2468
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2469
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2470
|
+
* A sandboxed Session carries none.
|
|
2471
|
+
*/
|
|
2472
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1703
2473
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1704
2474
|
readonly connectionId: Schema.String;
|
|
1705
2475
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1711,7 +2481,137 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1711
2481
|
readonly code: Schema.String;
|
|
1712
2482
|
readonly message: Schema.String;
|
|
1713
2483
|
}>>;
|
|
2484
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2485
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2486
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2487
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2488
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2489
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2490
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2491
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2492
|
+
/**
|
|
2493
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2494
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2495
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2496
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2497
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2498
|
+
* it.
|
|
2499
|
+
*/
|
|
2500
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2501
|
+
readonly approvalId: Schema.String;
|
|
2502
|
+
readonly expiresAt: Schema.String;
|
|
2503
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2504
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2505
|
+
readonly label: Schema.String;
|
|
2506
|
+
readonly optionId: Schema.String;
|
|
2507
|
+
}>>>;
|
|
2508
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2509
|
+
}>>;
|
|
2510
|
+
/**
|
|
2511
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2512
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2513
|
+
* every other state.
|
|
2514
|
+
*/
|
|
2515
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2516
|
+
readonly code: Schema.String;
|
|
2517
|
+
readonly message: Schema.String;
|
|
2518
|
+
}>>;
|
|
1714
2519
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2520
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2521
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2522
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2523
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2524
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2525
|
+
readonly title: Schema.optional<Schema.String>;
|
|
2526
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
2527
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2528
|
+
readonly baseRef: Schema.String;
|
|
2529
|
+
readonly baseRevision: Schema.String;
|
|
2530
|
+
readonly branch: Schema.String;
|
|
2531
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
2532
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2533
|
+
readonly digest: Schema.String;
|
|
2534
|
+
readonly name: Schema.String;
|
|
2535
|
+
}>>>;
|
|
2536
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2537
|
+
}>>;
|
|
2538
|
+
}>;
|
|
2539
|
+
}>, Schema.Struct<{
|
|
2540
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
2541
|
+
readonly satisfied: Schema.Boolean;
|
|
2542
|
+
readonly session: Schema.Struct<{
|
|
2543
|
+
readonly createdAt: Schema.String;
|
|
2544
|
+
readonly id: Schema.String;
|
|
2545
|
+
readonly projectId: Schema.String;
|
|
2546
|
+
readonly revision: Schema.String;
|
|
2547
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
2548
|
+
readonly updatedAt: Schema.String;
|
|
2549
|
+
readonly workspaceId: Schema.String;
|
|
2550
|
+
readonly workspaceRevision: Schema.String;
|
|
2551
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2552
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2553
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2554
|
+
readonly contentDigest: Schema.String;
|
|
2555
|
+
readonly key: Schema.String;
|
|
2556
|
+
readonly version: Schema.String;
|
|
2557
|
+
}>>;
|
|
2558
|
+
/**
|
|
2559
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2560
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2561
|
+
* A sandboxed Session carries none.
|
|
2562
|
+
*/
|
|
2563
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2564
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
2565
|
+
readonly connectionId: Schema.String;
|
|
2566
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2567
|
+
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
2568
|
+
readonly model: Schema.optional<Schema.String>;
|
|
2569
|
+
}>>;
|
|
2570
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
2571
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2572
|
+
readonly code: Schema.String;
|
|
2573
|
+
readonly message: Schema.String;
|
|
2574
|
+
}>>;
|
|
2575
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2576
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2577
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2578
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2579
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2580
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2581
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2582
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2583
|
+
/**
|
|
2584
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2585
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2586
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2587
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2588
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2589
|
+
* it.
|
|
2590
|
+
*/
|
|
2591
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2592
|
+
readonly approvalId: Schema.String;
|
|
2593
|
+
readonly expiresAt: Schema.String;
|
|
2594
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2595
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2596
|
+
readonly label: Schema.String;
|
|
2597
|
+
readonly optionId: Schema.String;
|
|
2598
|
+
}>>>;
|
|
2599
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2600
|
+
}>>;
|
|
2601
|
+
/**
|
|
2602
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2603
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2604
|
+
* every other state.
|
|
2605
|
+
*/
|
|
2606
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2607
|
+
readonly code: Schema.String;
|
|
2608
|
+
readonly message: Schema.String;
|
|
2609
|
+
}>>;
|
|
2610
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2611
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2612
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2613
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2614
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1715
2615
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1716
2616
|
readonly title: Schema.optional<Schema.String>;
|
|
1717
2617
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1757,11 +2657,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1757
2657
|
readonly updatedAt: Schema.String;
|
|
1758
2658
|
readonly workspaceId: Schema.String;
|
|
1759
2659
|
readonly workspaceRevision: Schema.String;
|
|
2660
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2661
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1760
2662
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1761
2663
|
readonly contentDigest: Schema.String;
|
|
1762
2664
|
readonly key: Schema.String;
|
|
1763
2665
|
readonly version: Schema.String;
|
|
1764
2666
|
}>>;
|
|
2667
|
+
/**
|
|
2668
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2669
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2670
|
+
* A sandboxed Session carries none.
|
|
2671
|
+
*/
|
|
2672
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1765
2673
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1766
2674
|
readonly connectionId: Schema.String;
|
|
1767
2675
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1773,7 +2681,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1773
2681
|
readonly code: Schema.String;
|
|
1774
2682
|
readonly message: Schema.String;
|
|
1775
2683
|
}>>;
|
|
2684
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2685
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2686
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2687
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2688
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2689
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2690
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2691
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2692
|
+
/**
|
|
2693
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2694
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2695
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2696
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2697
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2698
|
+
* it.
|
|
2699
|
+
*/
|
|
2700
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2701
|
+
readonly approvalId: Schema.String;
|
|
2702
|
+
readonly expiresAt: Schema.String;
|
|
2703
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2704
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2705
|
+
readonly label: Schema.String;
|
|
2706
|
+
readonly optionId: Schema.String;
|
|
2707
|
+
}>>>;
|
|
2708
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2709
|
+
}>>;
|
|
2710
|
+
/**
|
|
2711
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2712
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2713
|
+
* every other state.
|
|
2714
|
+
*/
|
|
2715
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2716
|
+
readonly code: Schema.String;
|
|
2717
|
+
readonly message: Schema.String;
|
|
2718
|
+
}>>;
|
|
1776
2719
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2720
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2721
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2722
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2723
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1777
2724
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1778
2725
|
readonly title: Schema.optional<Schema.String>;
|
|
1779
2726
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1806,6 +2753,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1806
2753
|
readonly key: Schema.String;
|
|
1807
2754
|
readonly version: Schema.String;
|
|
1808
2755
|
}>>;
|
|
2756
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
2757
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
2758
|
+
/** `none` when the Session runs with host authority. */
|
|
2759
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2760
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
2761
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1809
2762
|
/** The account the Session binds to, named or picked by the Node. */
|
|
1810
2763
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1811
2764
|
readonly connectionId: Schema.String;
|
|
@@ -1813,6 +2766,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1813
2766
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
1814
2767
|
readonly model: Schema.optional<Schema.String>;
|
|
1815
2768
|
}>>;
|
|
2769
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
2770
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1816
2771
|
readonly projectId: Schema.String;
|
|
1817
2772
|
readonly workspaceId: Schema.String;
|
|
1818
2773
|
readonly workspaceRevision: Schema.String;
|
|
@@ -1856,6 +2811,20 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1856
2811
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1857
2812
|
readonly sessionCursor: Schema.String;
|
|
1858
2813
|
readonly sessionId: Schema.String;
|
|
2814
|
+
}>, Schema.Struct<{
|
|
2815
|
+
readonly commandId: Schema.String;
|
|
2816
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
2817
|
+
readonly globalCursor: Schema.String;
|
|
2818
|
+
readonly payload: Schema.Struct<{
|
|
2819
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2820
|
+
readonly code: Schema.String;
|
|
2821
|
+
readonly message: Schema.String;
|
|
2822
|
+
}>>;
|
|
2823
|
+
}>;
|
|
2824
|
+
readonly recordedAt: Schema.String;
|
|
2825
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2826
|
+
readonly sessionCursor: Schema.String;
|
|
2827
|
+
readonly sessionId: Schema.String;
|
|
1859
2828
|
}>, Schema.Struct<{
|
|
1860
2829
|
readonly commandId: Schema.String;
|
|
1861
2830
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -2008,6 +2977,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2008
2977
|
}>]>]>>;
|
|
2009
2978
|
readonly method: Schema.Literal<"session.events.list">;
|
|
2010
2979
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
2980
|
+
/** Set when a prune removed events after the caller's cursor: the oldest retained cursor. */
|
|
2981
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
2011
2982
|
readonly sessionId: Schema.String;
|
|
2012
2983
|
}>, Schema.Struct<{
|
|
2013
2984
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -2037,11 +3008,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2037
3008
|
readonly updatedAt: Schema.String;
|
|
2038
3009
|
readonly workspaceId: Schema.String;
|
|
2039
3010
|
readonly workspaceRevision: Schema.String;
|
|
3011
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3012
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2040
3013
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2041
3014
|
readonly contentDigest: Schema.String;
|
|
2042
3015
|
readonly key: Schema.String;
|
|
2043
3016
|
readonly version: Schema.String;
|
|
2044
3017
|
}>>;
|
|
3018
|
+
/**
|
|
3019
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3020
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3021
|
+
* A sandboxed Session carries none.
|
|
3022
|
+
*/
|
|
3023
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2045
3024
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2046
3025
|
readonly connectionId: Schema.String;
|
|
2047
3026
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2053,7 +3032,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2053
3032
|
readonly code: Schema.String;
|
|
2054
3033
|
readonly message: Schema.String;
|
|
2055
3034
|
}>>;
|
|
3035
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3036
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3037
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3038
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3039
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3040
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3041
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3042
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3043
|
+
/**
|
|
3044
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3045
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3046
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3047
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3048
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3049
|
+
* it.
|
|
3050
|
+
*/
|
|
3051
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3052
|
+
readonly approvalId: Schema.String;
|
|
3053
|
+
readonly expiresAt: Schema.String;
|
|
3054
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3055
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3056
|
+
readonly label: Schema.String;
|
|
3057
|
+
readonly optionId: Schema.String;
|
|
3058
|
+
}>>>;
|
|
3059
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3060
|
+
}>>;
|
|
3061
|
+
/**
|
|
3062
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3063
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3064
|
+
* every other state.
|
|
3065
|
+
*/
|
|
3066
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3067
|
+
readonly code: Schema.String;
|
|
3068
|
+
readonly message: Schema.String;
|
|
3069
|
+
}>>;
|
|
2056
3070
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3071
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3072
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3073
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3074
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2057
3075
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2058
3076
|
readonly title: Schema.optional<Schema.String>;
|
|
2059
3077
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2097,11 +3115,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2097
3115
|
readonly updatedAt: Schema.String;
|
|
2098
3116
|
readonly workspaceId: Schema.String;
|
|
2099
3117
|
readonly workspaceRevision: Schema.String;
|
|
3118
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3119
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2100
3120
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2101
3121
|
readonly contentDigest: Schema.String;
|
|
2102
3122
|
readonly key: Schema.String;
|
|
2103
3123
|
readonly version: Schema.String;
|
|
2104
3124
|
}>>;
|
|
3125
|
+
/**
|
|
3126
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3127
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3128
|
+
* A sandboxed Session carries none.
|
|
3129
|
+
*/
|
|
3130
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2105
3131
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2106
3132
|
readonly connectionId: Schema.String;
|
|
2107
3133
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2113,7 +3139,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2113
3139
|
readonly code: Schema.String;
|
|
2114
3140
|
readonly message: Schema.String;
|
|
2115
3141
|
}>>;
|
|
3142
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3143
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3144
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3145
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3146
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3147
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3148
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3149
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3150
|
+
/**
|
|
3151
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3152
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3153
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3154
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3155
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3156
|
+
* it.
|
|
3157
|
+
*/
|
|
3158
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3159
|
+
readonly approvalId: Schema.String;
|
|
3160
|
+
readonly expiresAt: Schema.String;
|
|
3161
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3162
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3163
|
+
readonly label: Schema.String;
|
|
3164
|
+
readonly optionId: Schema.String;
|
|
3165
|
+
}>>>;
|
|
3166
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3167
|
+
}>>;
|
|
3168
|
+
/**
|
|
3169
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3170
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3171
|
+
* every other state.
|
|
3172
|
+
*/
|
|
3173
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3174
|
+
readonly code: Schema.String;
|
|
3175
|
+
readonly message: Schema.String;
|
|
3176
|
+
}>>;
|
|
2116
3177
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3178
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3179
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3180
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3181
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2117
3182
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2118
3183
|
readonly title: Schema.optional<Schema.String>;
|
|
2119
3184
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2157,11 +3222,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2157
3222
|
readonly updatedAt: Schema.String;
|
|
2158
3223
|
readonly workspaceId: Schema.String;
|
|
2159
3224
|
readonly workspaceRevision: Schema.String;
|
|
3225
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3226
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2160
3227
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2161
3228
|
readonly contentDigest: Schema.String;
|
|
2162
3229
|
readonly key: Schema.String;
|
|
2163
3230
|
readonly version: Schema.String;
|
|
2164
3231
|
}>>;
|
|
3232
|
+
/**
|
|
3233
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3234
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3235
|
+
* A sandboxed Session carries none.
|
|
3236
|
+
*/
|
|
3237
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2165
3238
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2166
3239
|
readonly connectionId: Schema.String;
|
|
2167
3240
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2173,7 +3246,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2173
3246
|
readonly code: Schema.String;
|
|
2174
3247
|
readonly message: Schema.String;
|
|
2175
3248
|
}>>;
|
|
3249
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3250
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3251
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3252
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3253
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3254
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3255
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3256
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3257
|
+
/**
|
|
3258
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3259
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3260
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3261
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3262
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3263
|
+
* it.
|
|
3264
|
+
*/
|
|
3265
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3266
|
+
readonly approvalId: Schema.String;
|
|
3267
|
+
readonly expiresAt: Schema.String;
|
|
3268
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3269
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3270
|
+
readonly label: Schema.String;
|
|
3271
|
+
readonly optionId: Schema.String;
|
|
3272
|
+
}>>>;
|
|
3273
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3274
|
+
}>>;
|
|
3275
|
+
/**
|
|
3276
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3277
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3278
|
+
* every other state.
|
|
3279
|
+
*/
|
|
3280
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3281
|
+
readonly code: Schema.String;
|
|
3282
|
+
readonly message: Schema.String;
|
|
3283
|
+
}>>;
|
|
2176
3284
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3285
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3286
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3287
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3288
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2177
3289
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2178
3290
|
readonly title: Schema.optional<Schema.String>;
|
|
2179
3291
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2240,11 +3352,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2240
3352
|
readonly updatedAt: Schema.String;
|
|
2241
3353
|
readonly workspaceId: Schema.String;
|
|
2242
3354
|
readonly workspaceRevision: Schema.String;
|
|
3355
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3356
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2243
3357
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2244
3358
|
readonly contentDigest: Schema.String;
|
|
2245
3359
|
readonly key: Schema.String;
|
|
2246
3360
|
readonly version: Schema.String;
|
|
2247
3361
|
}>>;
|
|
3362
|
+
/**
|
|
3363
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3364
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3365
|
+
* A sandboxed Session carries none.
|
|
3366
|
+
*/
|
|
3367
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2248
3368
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2249
3369
|
readonly connectionId: Schema.String;
|
|
2250
3370
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2256,7 +3376,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2256
3376
|
readonly code: Schema.String;
|
|
2257
3377
|
readonly message: Schema.String;
|
|
2258
3378
|
}>>;
|
|
3379
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3380
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3381
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3382
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3383
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3384
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3385
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3386
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3387
|
+
/**
|
|
3388
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3389
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3390
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3391
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3392
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3393
|
+
* it.
|
|
3394
|
+
*/
|
|
3395
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3396
|
+
readonly approvalId: Schema.String;
|
|
3397
|
+
readonly expiresAt: Schema.String;
|
|
3398
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3399
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3400
|
+
readonly label: Schema.String;
|
|
3401
|
+
readonly optionId: Schema.String;
|
|
3402
|
+
}>>>;
|
|
3403
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3404
|
+
}>>;
|
|
3405
|
+
/**
|
|
3406
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3407
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3408
|
+
* every other state.
|
|
3409
|
+
*/
|
|
3410
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3411
|
+
readonly code: Schema.String;
|
|
3412
|
+
readonly message: Schema.String;
|
|
3413
|
+
}>>;
|
|
2259
3414
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3415
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3416
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3417
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3418
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2260
3419
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2261
3420
|
readonly title: Schema.optional<Schema.String>;
|
|
2262
3421
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2272,6 +3431,9 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2272
3431
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2273
3432
|
}>>;
|
|
2274
3433
|
}>;
|
|
3434
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
3435
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3436
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
2275
3437
|
}>, Schema.Struct<{
|
|
2276
3438
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2277
3439
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -2300,11 +3462,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2300
3462
|
readonly updatedAt: Schema.String;
|
|
2301
3463
|
readonly workspaceId: Schema.String;
|
|
2302
3464
|
readonly workspaceRevision: Schema.String;
|
|
3465
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3466
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2303
3467
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2304
3468
|
readonly contentDigest: Schema.String;
|
|
2305
3469
|
readonly key: Schema.String;
|
|
2306
3470
|
readonly version: Schema.String;
|
|
2307
3471
|
}>>;
|
|
3472
|
+
/**
|
|
3473
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3474
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3475
|
+
* A sandboxed Session carries none.
|
|
3476
|
+
*/
|
|
3477
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2308
3478
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2309
3479
|
readonly connectionId: Schema.String;
|
|
2310
3480
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2316,7 +3486,46 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2316
3486
|
readonly code: Schema.String;
|
|
2317
3487
|
readonly message: Schema.String;
|
|
2318
3488
|
}>>;
|
|
3489
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3490
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3491
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3492
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3493
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3494
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3495
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3496
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3497
|
+
/**
|
|
3498
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3499
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3500
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3501
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3502
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3503
|
+
* it.
|
|
3504
|
+
*/
|
|
3505
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3506
|
+
readonly approvalId: Schema.String;
|
|
3507
|
+
readonly expiresAt: Schema.String;
|
|
3508
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3509
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3510
|
+
readonly label: Schema.String;
|
|
3511
|
+
readonly optionId: Schema.String;
|
|
3512
|
+
}>>>;
|
|
3513
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3514
|
+
}>>;
|
|
3515
|
+
/**
|
|
3516
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3517
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3518
|
+
* every other state.
|
|
3519
|
+
*/
|
|
3520
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3521
|
+
readonly code: Schema.String;
|
|
3522
|
+
readonly message: Schema.String;
|
|
3523
|
+
}>>;
|
|
2319
3524
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3525
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3526
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3527
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3528
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2320
3529
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2321
3530
|
readonly title: Schema.optional<Schema.String>;
|
|
2322
3531
|
/** A coding Session's own worktree; a reading Session has none. */
|