@maiaos/protocol 0.1.0-canary.6 → 0.1.0-canary.60
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 +20 -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 +52 -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 +125 -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 +91 -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 +25 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +21 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +21 -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 +255 -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 +982 -4
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +136 -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 +40 -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,37 @@ 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
|
+
}>>;
|
|
41
85
|
readonly schemaVersion: Schema.Literal<4>;
|
|
86
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
87
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
88
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
89
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
42
90
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
43
91
|
readonly title: Schema.optional<Schema.String>;
|
|
44
92
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -69,6 +117,12 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
69
117
|
readonly key: Schema.String;
|
|
70
118
|
readonly version: Schema.String;
|
|
71
119
|
}>>;
|
|
120
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
121
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
122
|
+
/** `none` when the Session runs with host authority. */
|
|
123
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
124
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
125
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
72
126
|
/** The account the Session binds to, named or picked by the Node. */
|
|
73
127
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
74
128
|
readonly connectionId: Schema.String;
|
|
@@ -76,6 +130,8 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
76
130
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
77
131
|
readonly model: Schema.optional<Schema.String>;
|
|
78
132
|
}>>;
|
|
133
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
134
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
79
135
|
readonly projectId: Schema.String;
|
|
80
136
|
readonly workspaceId: Schema.String;
|
|
81
137
|
readonly workspaceRevision: Schema.String;
|
|
@@ -276,9 +332,13 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
276
332
|
* both `connectionId` and `executor`, and optionally the `model`. An Agent
|
|
277
333
|
* (`agentId`) supplies the harness, Connection, model and effort itself, so it
|
|
278
334
|
* excludes every one of them. `role` (default `worker`) bounds what the
|
|
279
|
-
* Session's own credential reaches.
|
|
280
|
-
*
|
|
281
|
-
*
|
|
335
|
+
* Session's own credential reaches. `hostAuthority` opts one executor Session
|
|
336
|
+
* out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
|
|
337
|
+
* runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
|
|
338
|
+
* role, and passes `permission` to its vendor CLI unchanged. A vendor
|
|
339
|
+
* executor Session with `worktree` is a coding Session: it gets its own
|
|
340
|
+
* worktree from the base ref of the Workspace's repository and may write
|
|
341
|
+
* inside it.
|
|
282
342
|
*/
|
|
283
343
|
export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
284
344
|
readonly commandId: Schema.String;
|
|
@@ -286,6 +346,8 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
286
346
|
readonly workspaceId: Schema.String;
|
|
287
347
|
readonly agentId: Schema.optional<Schema.String>;
|
|
288
348
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
349
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
350
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
289
351
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
290
352
|
readonly contentDigest: Schema.String;
|
|
291
353
|
readonly key: Schema.String;
|
|
@@ -293,7 +355,10 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
293
355
|
}>>;
|
|
294
356
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
295
357
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
358
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
359
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
296
360
|
readonly model: Schema.optional<Schema.String>;
|
|
361
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
297
362
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
298
363
|
readonly title: Schema.optional<Schema.String>;
|
|
299
364
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
@@ -322,13 +387,27 @@ export declare const sessionSpawnParametersEffectSchema: Schema.Struct<{
|
|
|
322
387
|
export declare const sessionListParametersEffectSchema: Schema.Struct<{
|
|
323
388
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
324
389
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
390
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
391
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
392
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
393
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
325
394
|
readonly limit: Schema.optional<Schema.Int>;
|
|
326
395
|
readonly projectId: Schema.optional<Schema.String>;
|
|
396
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
397
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
327
398
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
328
399
|
}>;
|
|
329
400
|
export declare const sessionShowParametersEffectSchema: Schema.Struct<{
|
|
330
401
|
readonly sessionId: Schema.String;
|
|
331
402
|
}>;
|
|
403
|
+
export declare const sessionWaitParametersEffectSchema: Schema.Struct<{
|
|
404
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
405
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
406
|
+
readonly sessionId: Schema.String;
|
|
407
|
+
/** The wait ends when the Session is in any of these states. */
|
|
408
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
409
|
+
readonly waitMilliseconds: Schema.Int;
|
|
410
|
+
}>;
|
|
332
411
|
export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
|
|
333
412
|
readonly afterSessionCursor: Schema.String;
|
|
334
413
|
readonly limit: Schema.Int;
|
|
@@ -579,11 +658,19 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
579
658
|
readonly updatedAt: Schema.String;
|
|
580
659
|
readonly workspaceId: Schema.String;
|
|
581
660
|
readonly workspaceRevision: Schema.String;
|
|
661
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
662
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
582
663
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
583
664
|
readonly contentDigest: Schema.String;
|
|
584
665
|
readonly key: Schema.String;
|
|
585
666
|
readonly version: Schema.String;
|
|
586
667
|
}>>;
|
|
668
|
+
/**
|
|
669
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
670
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
671
|
+
* A sandboxed Session carries none.
|
|
672
|
+
*/
|
|
673
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
587
674
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
588
675
|
readonly connectionId: Schema.String;
|
|
589
676
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -595,7 +682,37 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
595
682
|
readonly code: Schema.String;
|
|
596
683
|
readonly message: Schema.String;
|
|
597
684
|
}>>;
|
|
685
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
686
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
687
|
+
/** 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. */
|
|
688
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
689
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
690
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
691
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
692
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
693
|
+
/**
|
|
694
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
695
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
696
|
+
* one of the two and never otherwise: a `question` names a question
|
|
697
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
698
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
699
|
+
* it.
|
|
700
|
+
*/
|
|
701
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
702
|
+
readonly approvalId: Schema.String;
|
|
703
|
+
readonly expiresAt: Schema.String;
|
|
704
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
705
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
706
|
+
readonly label: Schema.String;
|
|
707
|
+
readonly optionId: Schema.String;
|
|
708
|
+
}>>>;
|
|
709
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
710
|
+
}>>;
|
|
598
711
|
readonly schemaVersion: Schema.Literal<4>;
|
|
712
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
713
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
714
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
715
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
599
716
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
600
717
|
readonly title: Schema.optional<Schema.String>;
|
|
601
718
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -642,11 +759,19 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
642
759
|
readonly updatedAt: Schema.String;
|
|
643
760
|
readonly workspaceId: Schema.String;
|
|
644
761
|
readonly workspaceRevision: Schema.String;
|
|
762
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
763
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
645
764
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
646
765
|
readonly contentDigest: Schema.String;
|
|
647
766
|
readonly key: Schema.String;
|
|
648
767
|
readonly version: Schema.String;
|
|
649
768
|
}>>;
|
|
769
|
+
/**
|
|
770
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
771
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
772
|
+
* A sandboxed Session carries none.
|
|
773
|
+
*/
|
|
774
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
650
775
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
651
776
|
readonly connectionId: Schema.String;
|
|
652
777
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -658,7 +783,37 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
658
783
|
readonly code: Schema.String;
|
|
659
784
|
readonly message: Schema.String;
|
|
660
785
|
}>>;
|
|
786
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
787
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
788
|
+
/** 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. */
|
|
789
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
790
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
791
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
792
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
793
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
794
|
+
/**
|
|
795
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
796
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
797
|
+
* one of the two and never otherwise: a `question` names a question
|
|
798
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
799
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
800
|
+
* it.
|
|
801
|
+
*/
|
|
802
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
803
|
+
readonly approvalId: Schema.String;
|
|
804
|
+
readonly expiresAt: Schema.String;
|
|
805
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
806
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
807
|
+
readonly label: Schema.String;
|
|
808
|
+
readonly optionId: Schema.String;
|
|
809
|
+
}>>>;
|
|
810
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
811
|
+
}>>;
|
|
661
812
|
readonly schemaVersion: Schema.Literal<4>;
|
|
813
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
814
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
815
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
816
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
662
817
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
663
818
|
readonly title: Schema.optional<Schema.String>;
|
|
664
819
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -689,11 +844,19 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
689
844
|
readonly updatedAt: Schema.String;
|
|
690
845
|
readonly workspaceId: Schema.String;
|
|
691
846
|
readonly workspaceRevision: Schema.String;
|
|
847
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
848
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
692
849
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
693
850
|
readonly contentDigest: Schema.String;
|
|
694
851
|
readonly key: Schema.String;
|
|
695
852
|
readonly version: Schema.String;
|
|
696
853
|
}>>;
|
|
854
|
+
/**
|
|
855
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
856
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
857
|
+
* A sandboxed Session carries none.
|
|
858
|
+
*/
|
|
859
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
697
860
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
698
861
|
readonly connectionId: Schema.String;
|
|
699
862
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -705,7 +868,37 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
705
868
|
readonly code: Schema.String;
|
|
706
869
|
readonly message: Schema.String;
|
|
707
870
|
}>>;
|
|
871
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
872
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
873
|
+
/** 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. */
|
|
874
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
875
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
876
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
877
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
878
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
879
|
+
/**
|
|
880
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
881
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
882
|
+
* one of the two and never otherwise: a `question` names a question
|
|
883
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
884
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
885
|
+
* it.
|
|
886
|
+
*/
|
|
887
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
888
|
+
readonly approvalId: Schema.String;
|
|
889
|
+
readonly expiresAt: Schema.String;
|
|
890
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
891
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
892
|
+
readonly label: Schema.String;
|
|
893
|
+
readonly optionId: Schema.String;
|
|
894
|
+
}>>>;
|
|
895
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
896
|
+
}>>;
|
|
708
897
|
readonly schemaVersion: Schema.Literal<4>;
|
|
898
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
899
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
900
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
901
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
709
902
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
710
903
|
readonly title: Schema.optional<Schema.String>;
|
|
711
904
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -735,11 +928,103 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
735
928
|
readonly updatedAt: Schema.String;
|
|
736
929
|
readonly workspaceId: Schema.String;
|
|
737
930
|
readonly workspaceRevision: Schema.String;
|
|
931
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
932
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
933
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
934
|
+
readonly contentDigest: Schema.String;
|
|
935
|
+
readonly key: Schema.String;
|
|
936
|
+
readonly version: Schema.String;
|
|
937
|
+
}>>;
|
|
938
|
+
/**
|
|
939
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
940
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
941
|
+
* A sandboxed Session carries none.
|
|
942
|
+
*/
|
|
943
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
944
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
945
|
+
readonly connectionId: Schema.String;
|
|
946
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
947
|
+
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
948
|
+
readonly model: Schema.optional<Schema.String>;
|
|
949
|
+
}>>;
|
|
950
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
951
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
952
|
+
readonly code: Schema.String;
|
|
953
|
+
readonly message: Schema.String;
|
|
954
|
+
}>>;
|
|
955
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
956
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
957
|
+
/** 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. */
|
|
958
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
959
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
960
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
961
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
962
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
963
|
+
/**
|
|
964
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
965
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
966
|
+
* one of the two and never otherwise: a `question` names a question
|
|
967
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
968
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
969
|
+
* it.
|
|
970
|
+
*/
|
|
971
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
972
|
+
readonly approvalId: Schema.String;
|
|
973
|
+
readonly expiresAt: Schema.String;
|
|
974
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
975
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
976
|
+
readonly label: Schema.String;
|
|
977
|
+
readonly optionId: Schema.String;
|
|
978
|
+
}>>>;
|
|
979
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
980
|
+
}>>;
|
|
981
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
982
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
983
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
984
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
985
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
986
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
987
|
+
readonly title: Schema.optional<Schema.String>;
|
|
988
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
989
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
990
|
+
readonly baseRef: Schema.String;
|
|
991
|
+
readonly baseRevision: Schema.String;
|
|
992
|
+
readonly branch: Schema.String;
|
|
993
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
994
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
995
|
+
readonly digest: Schema.String;
|
|
996
|
+
readonly name: Schema.String;
|
|
997
|
+
}>>>;
|
|
998
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
999
|
+
}>>;
|
|
1000
|
+
}>;
|
|
1001
|
+
}>;
|
|
1002
|
+
/** `satisfied` is false when the bounded wait ended first; `session` is then its last read. */
|
|
1003
|
+
export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
1004
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
1005
|
+
readonly satisfied: Schema.Boolean;
|
|
1006
|
+
readonly session: Schema.Struct<{
|
|
1007
|
+
readonly createdAt: Schema.String;
|
|
1008
|
+
readonly id: Schema.String;
|
|
1009
|
+
readonly projectId: Schema.String;
|
|
1010
|
+
readonly revision: Schema.String;
|
|
1011
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1012
|
+
readonly updatedAt: Schema.String;
|
|
1013
|
+
readonly workspaceId: Schema.String;
|
|
1014
|
+
readonly workspaceRevision: Schema.String;
|
|
1015
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1016
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
738
1017
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
739
1018
|
readonly contentDigest: Schema.String;
|
|
740
1019
|
readonly key: Schema.String;
|
|
741
1020
|
readonly version: Schema.String;
|
|
742
1021
|
}>>;
|
|
1022
|
+
/**
|
|
1023
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1024
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1025
|
+
* A sandboxed Session carries none.
|
|
1026
|
+
*/
|
|
1027
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
743
1028
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
744
1029
|
readonly connectionId: Schema.String;
|
|
745
1030
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -751,7 +1036,37 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
751
1036
|
readonly code: Schema.String;
|
|
752
1037
|
readonly message: Schema.String;
|
|
753
1038
|
}>>;
|
|
1039
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1040
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1041
|
+
/** 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. */
|
|
1042
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1043
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1044
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1045
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1046
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1047
|
+
/**
|
|
1048
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1049
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1050
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1051
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1052
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1053
|
+
* it.
|
|
1054
|
+
*/
|
|
1055
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1056
|
+
readonly approvalId: Schema.String;
|
|
1057
|
+
readonly expiresAt: Schema.String;
|
|
1058
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1059
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1060
|
+
readonly label: Schema.String;
|
|
1061
|
+
readonly optionId: Schema.String;
|
|
1062
|
+
}>>>;
|
|
1063
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1064
|
+
}>>;
|
|
754
1065
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1066
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1067
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1068
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1069
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
755
1070
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
756
1071
|
readonly title: Schema.optional<Schema.String>;
|
|
757
1072
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -785,6 +1100,12 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
785
1100
|
readonly key: Schema.String;
|
|
786
1101
|
readonly version: Schema.String;
|
|
787
1102
|
}>>;
|
|
1103
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
1104
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
1105
|
+
/** `none` when the Session runs with host authority. */
|
|
1106
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1107
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
1108
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
788
1109
|
/** The account the Session binds to, named or picked by the Node. */
|
|
789
1110
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
790
1111
|
readonly connectionId: Schema.String;
|
|
@@ -792,6 +1113,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
792
1113
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
793
1114
|
readonly model: Schema.optional<Schema.String>;
|
|
794
1115
|
}>>;
|
|
1116
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
1117
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
795
1118
|
readonly projectId: Schema.String;
|
|
796
1119
|
readonly workspaceId: Schema.String;
|
|
797
1120
|
readonly workspaceRevision: Schema.String;
|
|
@@ -987,6 +1310,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
987
1310
|
}>]>]>>;
|
|
988
1311
|
readonly method: Schema.Literal<"session.events.list">;
|
|
989
1312
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
1313
|
+
/** Set when a prune removed events after the caller's cursor: the oldest retained cursor. */
|
|
1314
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
990
1315
|
readonly sessionId: Schema.String;
|
|
991
1316
|
}>;
|
|
992
1317
|
export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
@@ -1017,11 +1342,19 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1017
1342
|
readonly updatedAt: Schema.String;
|
|
1018
1343
|
readonly workspaceId: Schema.String;
|
|
1019
1344
|
readonly workspaceRevision: Schema.String;
|
|
1345
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1346
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1020
1347
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1021
1348
|
readonly contentDigest: Schema.String;
|
|
1022
1349
|
readonly key: Schema.String;
|
|
1023
1350
|
readonly version: Schema.String;
|
|
1024
1351
|
}>>;
|
|
1352
|
+
/**
|
|
1353
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1354
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1355
|
+
* A sandboxed Session carries none.
|
|
1356
|
+
*/
|
|
1357
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1025
1358
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1026
1359
|
readonly connectionId: Schema.String;
|
|
1027
1360
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1033,7 +1366,37 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1033
1366
|
readonly code: Schema.String;
|
|
1034
1367
|
readonly message: Schema.String;
|
|
1035
1368
|
}>>;
|
|
1369
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1370
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1371
|
+
/** 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. */
|
|
1372
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1373
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1374
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1375
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1376
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1377
|
+
/**
|
|
1378
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1379
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1380
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1381
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1382
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1383
|
+
* it.
|
|
1384
|
+
*/
|
|
1385
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1386
|
+
readonly approvalId: Schema.String;
|
|
1387
|
+
readonly expiresAt: Schema.String;
|
|
1388
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1389
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1390
|
+
readonly label: Schema.String;
|
|
1391
|
+
readonly optionId: Schema.String;
|
|
1392
|
+
}>>>;
|
|
1393
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1394
|
+
}>>;
|
|
1036
1395
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1396
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1397
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1398
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1399
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1037
1400
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1038
1401
|
readonly title: Schema.optional<Schema.String>;
|
|
1039
1402
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1078,11 +1441,19 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1078
1441
|
readonly updatedAt: Schema.String;
|
|
1079
1442
|
readonly workspaceId: Schema.String;
|
|
1080
1443
|
readonly workspaceRevision: Schema.String;
|
|
1444
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1445
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1081
1446
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1082
1447
|
readonly contentDigest: Schema.String;
|
|
1083
1448
|
readonly key: Schema.String;
|
|
1084
1449
|
readonly version: Schema.String;
|
|
1085
1450
|
}>>;
|
|
1451
|
+
/**
|
|
1452
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1453
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1454
|
+
* A sandboxed Session carries none.
|
|
1455
|
+
*/
|
|
1456
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1086
1457
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1087
1458
|
readonly connectionId: Schema.String;
|
|
1088
1459
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1094,7 +1465,37 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1094
1465
|
readonly code: Schema.String;
|
|
1095
1466
|
readonly message: Schema.String;
|
|
1096
1467
|
}>>;
|
|
1468
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1469
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1470
|
+
/** 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. */
|
|
1471
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1472
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1473
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1474
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1475
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1476
|
+
/**
|
|
1477
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1478
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1479
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1480
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1481
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1482
|
+
* it.
|
|
1483
|
+
*/
|
|
1484
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1485
|
+
readonly approvalId: Schema.String;
|
|
1486
|
+
readonly expiresAt: Schema.String;
|
|
1487
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1488
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1489
|
+
readonly label: Schema.String;
|
|
1490
|
+
readonly optionId: Schema.String;
|
|
1491
|
+
}>>>;
|
|
1492
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1493
|
+
}>>;
|
|
1097
1494
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1495
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1496
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1497
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1498
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1098
1499
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1099
1500
|
readonly title: Schema.optional<Schema.String>;
|
|
1100
1501
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1139,11 +1540,19 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1139
1540
|
readonly updatedAt: Schema.String;
|
|
1140
1541
|
readonly workspaceId: Schema.String;
|
|
1141
1542
|
readonly workspaceRevision: Schema.String;
|
|
1543
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1544
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1142
1545
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1143
1546
|
readonly contentDigest: Schema.String;
|
|
1144
1547
|
readonly key: Schema.String;
|
|
1145
1548
|
readonly version: Schema.String;
|
|
1146
1549
|
}>>;
|
|
1550
|
+
/**
|
|
1551
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1552
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1553
|
+
* A sandboxed Session carries none.
|
|
1554
|
+
*/
|
|
1555
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1147
1556
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1148
1557
|
readonly connectionId: Schema.String;
|
|
1149
1558
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1155,7 +1564,37 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1155
1564
|
readonly code: Schema.String;
|
|
1156
1565
|
readonly message: Schema.String;
|
|
1157
1566
|
}>>;
|
|
1567
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1568
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1569
|
+
/** 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. */
|
|
1570
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1571
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1572
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1573
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1574
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1575
|
+
/**
|
|
1576
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1577
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1578
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1579
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1580
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1581
|
+
* it.
|
|
1582
|
+
*/
|
|
1583
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1584
|
+
readonly approvalId: Schema.String;
|
|
1585
|
+
readonly expiresAt: Schema.String;
|
|
1586
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1587
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1588
|
+
readonly label: Schema.String;
|
|
1589
|
+
readonly optionId: Schema.String;
|
|
1590
|
+
}>>>;
|
|
1591
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1592
|
+
}>>;
|
|
1158
1593
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1594
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1595
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1596
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1597
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1159
1598
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1160
1599
|
readonly title: Schema.optional<Schema.String>;
|
|
1161
1600
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1200,11 +1639,19 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1200
1639
|
readonly updatedAt: Schema.String;
|
|
1201
1640
|
readonly workspaceId: Schema.String;
|
|
1202
1641
|
readonly workspaceRevision: Schema.String;
|
|
1642
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1643
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1203
1644
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1204
1645
|
readonly contentDigest: Schema.String;
|
|
1205
1646
|
readonly key: Schema.String;
|
|
1206
1647
|
readonly version: Schema.String;
|
|
1207
1648
|
}>>;
|
|
1649
|
+
/**
|
|
1650
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1651
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1652
|
+
* A sandboxed Session carries none.
|
|
1653
|
+
*/
|
|
1654
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1208
1655
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1209
1656
|
readonly connectionId: Schema.String;
|
|
1210
1657
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1216,7 +1663,37 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1216
1663
|
readonly code: Schema.String;
|
|
1217
1664
|
readonly message: Schema.String;
|
|
1218
1665
|
}>>;
|
|
1666
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1667
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1668
|
+
/** 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. */
|
|
1669
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1670
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1671
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1672
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1673
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1674
|
+
/**
|
|
1675
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1676
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1677
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1678
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1679
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1680
|
+
* it.
|
|
1681
|
+
*/
|
|
1682
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1683
|
+
readonly approvalId: Schema.String;
|
|
1684
|
+
readonly expiresAt: Schema.String;
|
|
1685
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1686
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1687
|
+
readonly label: Schema.String;
|
|
1688
|
+
readonly optionId: Schema.String;
|
|
1689
|
+
}>>>;
|
|
1690
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1691
|
+
}>>;
|
|
1219
1692
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1693
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1694
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1695
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1696
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1220
1697
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1221
1698
|
readonly title: Schema.optional<Schema.String>;
|
|
1222
1699
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1272,11 +1749,19 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1272
1749
|
readonly updatedAt: Schema.String;
|
|
1273
1750
|
readonly workspaceId: Schema.String;
|
|
1274
1751
|
readonly workspaceRevision: Schema.String;
|
|
1752
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1753
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1275
1754
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1276
1755
|
readonly contentDigest: Schema.String;
|
|
1277
1756
|
readonly key: Schema.String;
|
|
1278
1757
|
readonly version: Schema.String;
|
|
1279
1758
|
}>>;
|
|
1759
|
+
/**
|
|
1760
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1761
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1762
|
+
* A sandboxed Session carries none.
|
|
1763
|
+
*/
|
|
1764
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1280
1765
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1281
1766
|
readonly connectionId: Schema.String;
|
|
1282
1767
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1288,7 +1773,37 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1288
1773
|
readonly code: Schema.String;
|
|
1289
1774
|
readonly message: Schema.String;
|
|
1290
1775
|
}>>;
|
|
1776
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1777
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1778
|
+
/** 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. */
|
|
1779
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1780
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1781
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1782
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1783
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1784
|
+
/**
|
|
1785
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1786
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1787
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1788
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1789
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1790
|
+
* it.
|
|
1791
|
+
*/
|
|
1792
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1793
|
+
readonly approvalId: Schema.String;
|
|
1794
|
+
readonly expiresAt: Schema.String;
|
|
1795
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1796
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1797
|
+
readonly label: Schema.String;
|
|
1798
|
+
readonly optionId: Schema.String;
|
|
1799
|
+
}>>>;
|
|
1800
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1801
|
+
}>>;
|
|
1291
1802
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1803
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1804
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1805
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1806
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1292
1807
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1293
1808
|
readonly title: Schema.optional<Schema.String>;
|
|
1294
1809
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1304,6 +1819,9 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1304
1819
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1305
1820
|
}>>;
|
|
1306
1821
|
}>;
|
|
1822
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
1823
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1824
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1307
1825
|
}>;
|
|
1308
1826
|
export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1309
1827
|
readonly method: Schema.Literal<"session.create">;
|
|
@@ -1313,6 +1831,8 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1313
1831
|
readonly workspaceId: Schema.String;
|
|
1314
1832
|
readonly agentId: Schema.optional<Schema.String>;
|
|
1315
1833
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
1834
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
1835
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1316
1836
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
1317
1837
|
readonly contentDigest: Schema.String;
|
|
1318
1838
|
readonly key: Schema.String;
|
|
@@ -1320,7 +1840,10 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1320
1840
|
}>>;
|
|
1321
1841
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1322
1842
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
1843
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1844
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1323
1845
|
readonly model: Schema.optional<Schema.String>;
|
|
1846
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1324
1847
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
1325
1848
|
readonly title: Schema.optional<Schema.String>;
|
|
1326
1849
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
@@ -1332,8 +1855,14 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1332
1855
|
readonly parameters: Schema.Struct<{
|
|
1333
1856
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
1334
1857
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
1858
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
1859
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
1860
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
1861
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1335
1862
|
readonly limit: Schema.optional<Schema.Int>;
|
|
1336
1863
|
readonly projectId: Schema.optional<Schema.String>;
|
|
1864
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
1865
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
1337
1866
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1338
1867
|
}>;
|
|
1339
1868
|
}>, Schema.Struct<{
|
|
@@ -1341,6 +1870,16 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1341
1870
|
readonly parameters: Schema.Struct<{
|
|
1342
1871
|
readonly sessionId: Schema.String;
|
|
1343
1872
|
}>;
|
|
1873
|
+
}>, Schema.Struct<{
|
|
1874
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
1875
|
+
readonly parameters: Schema.Struct<{
|
|
1876
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
1877
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
1878
|
+
readonly sessionId: Schema.String;
|
|
1879
|
+
/** The wait ends when the Session is in any of these states. */
|
|
1880
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1881
|
+
readonly waitMilliseconds: Schema.Int;
|
|
1882
|
+
}>;
|
|
1344
1883
|
}>, Schema.Struct<{
|
|
1345
1884
|
readonly method: Schema.Literal<"session.spawn">;
|
|
1346
1885
|
readonly parameters: Schema.Struct<{
|
|
@@ -1421,6 +1960,8 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1421
1960
|
readonly commandId: Schema.String;
|
|
1422
1961
|
readonly expectedRevision: Schema.String;
|
|
1423
1962
|
readonly sessionId: Schema.String;
|
|
1963
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1964
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1424
1965
|
}>;
|
|
1425
1966
|
}>, Schema.Struct<{
|
|
1426
1967
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -1459,11 +2000,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1459
2000
|
readonly updatedAt: Schema.String;
|
|
1460
2001
|
readonly workspaceId: Schema.String;
|
|
1461
2002
|
readonly workspaceRevision: Schema.String;
|
|
2003
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2004
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1462
2005
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1463
2006
|
readonly contentDigest: Schema.String;
|
|
1464
2007
|
readonly key: Schema.String;
|
|
1465
2008
|
readonly version: Schema.String;
|
|
1466
2009
|
}>>;
|
|
2010
|
+
/**
|
|
2011
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2012
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2013
|
+
* A sandboxed Session carries none.
|
|
2014
|
+
*/
|
|
2015
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1467
2016
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1468
2017
|
readonly connectionId: Schema.String;
|
|
1469
2018
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1475,7 +2024,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1475
2024
|
readonly code: Schema.String;
|
|
1476
2025
|
readonly message: Schema.String;
|
|
1477
2026
|
}>>;
|
|
2027
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2028
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2029
|
+
/** 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. */
|
|
2030
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2031
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2032
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2033
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2034
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2035
|
+
/**
|
|
2036
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2037
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2038
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2039
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2040
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2041
|
+
* it.
|
|
2042
|
+
*/
|
|
2043
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2044
|
+
readonly approvalId: Schema.String;
|
|
2045
|
+
readonly expiresAt: Schema.String;
|
|
2046
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2047
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2048
|
+
readonly label: Schema.String;
|
|
2049
|
+
readonly optionId: Schema.String;
|
|
2050
|
+
}>>>;
|
|
2051
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2052
|
+
}>>;
|
|
1478
2053
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2054
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2055
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2056
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2057
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1479
2058
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1480
2059
|
readonly title: Schema.optional<Schema.String>;
|
|
1481
2060
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1584,11 +2163,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1584
2163
|
readonly updatedAt: Schema.String;
|
|
1585
2164
|
readonly workspaceId: Schema.String;
|
|
1586
2165
|
readonly workspaceRevision: Schema.String;
|
|
2166
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2167
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1587
2168
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1588
2169
|
readonly contentDigest: Schema.String;
|
|
1589
2170
|
readonly key: Schema.String;
|
|
1590
2171
|
readonly version: Schema.String;
|
|
1591
2172
|
}>>;
|
|
2173
|
+
/**
|
|
2174
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2175
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2176
|
+
* A sandboxed Session carries none.
|
|
2177
|
+
*/
|
|
2178
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1592
2179
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1593
2180
|
readonly connectionId: Schema.String;
|
|
1594
2181
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1600,7 +2187,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1600
2187
|
readonly code: Schema.String;
|
|
1601
2188
|
readonly message: Schema.String;
|
|
1602
2189
|
}>>;
|
|
2190
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2191
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2192
|
+
/** 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. */
|
|
2193
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2194
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2195
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2196
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2197
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2198
|
+
/**
|
|
2199
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2200
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2201
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2202
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2203
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2204
|
+
* it.
|
|
2205
|
+
*/
|
|
2206
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2207
|
+
readonly approvalId: Schema.String;
|
|
2208
|
+
readonly expiresAt: Schema.String;
|
|
2209
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2210
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2211
|
+
readonly label: Schema.String;
|
|
2212
|
+
readonly optionId: Schema.String;
|
|
2213
|
+
}>>>;
|
|
2214
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2215
|
+
}>>;
|
|
1603
2216
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2217
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2218
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2219
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2220
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1604
2221
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1605
2222
|
readonly title: Schema.optional<Schema.String>;
|
|
1606
2223
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1695,11 +2312,101 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1695
2312
|
readonly updatedAt: Schema.String;
|
|
1696
2313
|
readonly workspaceId: Schema.String;
|
|
1697
2314
|
readonly workspaceRevision: Schema.String;
|
|
2315
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2316
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2317
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2318
|
+
readonly contentDigest: Schema.String;
|
|
2319
|
+
readonly key: Schema.String;
|
|
2320
|
+
readonly version: Schema.String;
|
|
2321
|
+
}>>;
|
|
2322
|
+
/**
|
|
2323
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2324
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2325
|
+
* A sandboxed Session carries none.
|
|
2326
|
+
*/
|
|
2327
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2328
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
2329
|
+
readonly connectionId: Schema.String;
|
|
2330
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2331
|
+
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
2332
|
+
readonly model: Schema.optional<Schema.String>;
|
|
2333
|
+
}>>;
|
|
2334
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
2335
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2336
|
+
readonly code: Schema.String;
|
|
2337
|
+
readonly message: Schema.String;
|
|
2338
|
+
}>>;
|
|
2339
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2340
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2341
|
+
/** 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. */
|
|
2342
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2343
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2344
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2345
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2346
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2347
|
+
/**
|
|
2348
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2349
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2350
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2351
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2352
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2353
|
+
* it.
|
|
2354
|
+
*/
|
|
2355
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2356
|
+
readonly approvalId: Schema.String;
|
|
2357
|
+
readonly expiresAt: Schema.String;
|
|
2358
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2359
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2360
|
+
readonly label: Schema.String;
|
|
2361
|
+
readonly optionId: Schema.String;
|
|
2362
|
+
}>>>;
|
|
2363
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2364
|
+
}>>;
|
|
2365
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2366
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2367
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2368
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2369
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2370
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2371
|
+
readonly title: Schema.optional<Schema.String>;
|
|
2372
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
2373
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2374
|
+
readonly baseRef: Schema.String;
|
|
2375
|
+
readonly baseRevision: Schema.String;
|
|
2376
|
+
readonly branch: Schema.String;
|
|
2377
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
2378
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2379
|
+
readonly digest: Schema.String;
|
|
2380
|
+
readonly name: Schema.String;
|
|
2381
|
+
}>>>;
|
|
2382
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2383
|
+
}>>;
|
|
2384
|
+
}>;
|
|
2385
|
+
}>, Schema.Struct<{
|
|
2386
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
2387
|
+
readonly satisfied: Schema.Boolean;
|
|
2388
|
+
readonly session: Schema.Struct<{
|
|
2389
|
+
readonly createdAt: Schema.String;
|
|
2390
|
+
readonly id: Schema.String;
|
|
2391
|
+
readonly projectId: Schema.String;
|
|
2392
|
+
readonly revision: Schema.String;
|
|
2393
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
2394
|
+
readonly updatedAt: Schema.String;
|
|
2395
|
+
readonly workspaceId: Schema.String;
|
|
2396
|
+
readonly workspaceRevision: Schema.String;
|
|
2397
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2398
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1698
2399
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1699
2400
|
readonly contentDigest: Schema.String;
|
|
1700
2401
|
readonly key: Schema.String;
|
|
1701
2402
|
readonly version: Schema.String;
|
|
1702
2403
|
}>>;
|
|
2404
|
+
/**
|
|
2405
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2406
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2407
|
+
* A sandboxed Session carries none.
|
|
2408
|
+
*/
|
|
2409
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1703
2410
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1704
2411
|
readonly connectionId: Schema.String;
|
|
1705
2412
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1711,7 +2418,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1711
2418
|
readonly code: Schema.String;
|
|
1712
2419
|
readonly message: Schema.String;
|
|
1713
2420
|
}>>;
|
|
2421
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2422
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2423
|
+
/** 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. */
|
|
2424
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2425
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2426
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2427
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2428
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2429
|
+
/**
|
|
2430
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2431
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2432
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2433
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2434
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2435
|
+
* it.
|
|
2436
|
+
*/
|
|
2437
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2438
|
+
readonly approvalId: Schema.String;
|
|
2439
|
+
readonly expiresAt: Schema.String;
|
|
2440
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2441
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2442
|
+
readonly label: Schema.String;
|
|
2443
|
+
readonly optionId: Schema.String;
|
|
2444
|
+
}>>>;
|
|
2445
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2446
|
+
}>>;
|
|
1714
2447
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2448
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2449
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2450
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2451
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1715
2452
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1716
2453
|
readonly title: Schema.optional<Schema.String>;
|
|
1717
2454
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1757,11 +2494,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1757
2494
|
readonly updatedAt: Schema.String;
|
|
1758
2495
|
readonly workspaceId: Schema.String;
|
|
1759
2496
|
readonly workspaceRevision: Schema.String;
|
|
2497
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2498
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1760
2499
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1761
2500
|
readonly contentDigest: Schema.String;
|
|
1762
2501
|
readonly key: Schema.String;
|
|
1763
2502
|
readonly version: Schema.String;
|
|
1764
2503
|
}>>;
|
|
2504
|
+
/**
|
|
2505
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2506
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2507
|
+
* A sandboxed Session carries none.
|
|
2508
|
+
*/
|
|
2509
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1765
2510
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1766
2511
|
readonly connectionId: Schema.String;
|
|
1767
2512
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1773,7 +2518,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1773
2518
|
readonly code: Schema.String;
|
|
1774
2519
|
readonly message: Schema.String;
|
|
1775
2520
|
}>>;
|
|
2521
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2522
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2523
|
+
/** 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. */
|
|
2524
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2525
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2526
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2527
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2528
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2529
|
+
/**
|
|
2530
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2531
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2532
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2533
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2534
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2535
|
+
* it.
|
|
2536
|
+
*/
|
|
2537
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2538
|
+
readonly approvalId: Schema.String;
|
|
2539
|
+
readonly expiresAt: Schema.String;
|
|
2540
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2541
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2542
|
+
readonly label: Schema.String;
|
|
2543
|
+
readonly optionId: Schema.String;
|
|
2544
|
+
}>>>;
|
|
2545
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2546
|
+
}>>;
|
|
1776
2547
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2548
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2549
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2550
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2551
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1777
2552
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1778
2553
|
readonly title: Schema.optional<Schema.String>;
|
|
1779
2554
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1806,6 +2581,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1806
2581
|
readonly key: Schema.String;
|
|
1807
2582
|
readonly version: Schema.String;
|
|
1808
2583
|
}>>;
|
|
2584
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
2585
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
2586
|
+
/** `none` when the Session runs with host authority. */
|
|
2587
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2588
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
2589
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1809
2590
|
/** The account the Session binds to, named or picked by the Node. */
|
|
1810
2591
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1811
2592
|
readonly connectionId: Schema.String;
|
|
@@ -1813,6 +2594,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1813
2594
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
1814
2595
|
readonly model: Schema.optional<Schema.String>;
|
|
1815
2596
|
}>>;
|
|
2597
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
2598
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1816
2599
|
readonly projectId: Schema.String;
|
|
1817
2600
|
readonly workspaceId: Schema.String;
|
|
1818
2601
|
readonly workspaceRevision: Schema.String;
|
|
@@ -2008,6 +2791,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2008
2791
|
}>]>]>>;
|
|
2009
2792
|
readonly method: Schema.Literal<"session.events.list">;
|
|
2010
2793
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
2794
|
+
/** Set when a prune removed events after the caller's cursor: the oldest retained cursor. */
|
|
2795
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
2011
2796
|
readonly sessionId: Schema.String;
|
|
2012
2797
|
}>, Schema.Struct<{
|
|
2013
2798
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -2037,11 +2822,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2037
2822
|
readonly updatedAt: Schema.String;
|
|
2038
2823
|
readonly workspaceId: Schema.String;
|
|
2039
2824
|
readonly workspaceRevision: Schema.String;
|
|
2825
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2826
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2040
2827
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2041
2828
|
readonly contentDigest: Schema.String;
|
|
2042
2829
|
readonly key: Schema.String;
|
|
2043
2830
|
readonly version: Schema.String;
|
|
2044
2831
|
}>>;
|
|
2832
|
+
/**
|
|
2833
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2834
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2835
|
+
* A sandboxed Session carries none.
|
|
2836
|
+
*/
|
|
2837
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2045
2838
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2046
2839
|
readonly connectionId: Schema.String;
|
|
2047
2840
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2053,7 +2846,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2053
2846
|
readonly code: Schema.String;
|
|
2054
2847
|
readonly message: Schema.String;
|
|
2055
2848
|
}>>;
|
|
2849
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2850
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2851
|
+
/** 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. */
|
|
2852
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2853
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2854
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2855
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2856
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2857
|
+
/**
|
|
2858
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2859
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2860
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2861
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2862
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2863
|
+
* it.
|
|
2864
|
+
*/
|
|
2865
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2866
|
+
readonly approvalId: Schema.String;
|
|
2867
|
+
readonly expiresAt: Schema.String;
|
|
2868
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2869
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2870
|
+
readonly label: Schema.String;
|
|
2871
|
+
readonly optionId: Schema.String;
|
|
2872
|
+
}>>>;
|
|
2873
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2874
|
+
}>>;
|
|
2056
2875
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2876
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2877
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2878
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2879
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2057
2880
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2058
2881
|
readonly title: Schema.optional<Schema.String>;
|
|
2059
2882
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2097,11 +2920,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2097
2920
|
readonly updatedAt: Schema.String;
|
|
2098
2921
|
readonly workspaceId: Schema.String;
|
|
2099
2922
|
readonly workspaceRevision: Schema.String;
|
|
2923
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2924
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2100
2925
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2101
2926
|
readonly contentDigest: Schema.String;
|
|
2102
2927
|
readonly key: Schema.String;
|
|
2103
2928
|
readonly version: Schema.String;
|
|
2104
2929
|
}>>;
|
|
2930
|
+
/**
|
|
2931
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2932
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2933
|
+
* A sandboxed Session carries none.
|
|
2934
|
+
*/
|
|
2935
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2105
2936
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2106
2937
|
readonly connectionId: Schema.String;
|
|
2107
2938
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2113,7 +2944,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2113
2944
|
readonly code: Schema.String;
|
|
2114
2945
|
readonly message: Schema.String;
|
|
2115
2946
|
}>>;
|
|
2947
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2948
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2949
|
+
/** 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. */
|
|
2950
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2951
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2952
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2953
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2954
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2955
|
+
/**
|
|
2956
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2957
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2958
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2959
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2960
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2961
|
+
* it.
|
|
2962
|
+
*/
|
|
2963
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2964
|
+
readonly approvalId: Schema.String;
|
|
2965
|
+
readonly expiresAt: Schema.String;
|
|
2966
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2967
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2968
|
+
readonly label: Schema.String;
|
|
2969
|
+
readonly optionId: Schema.String;
|
|
2970
|
+
}>>>;
|
|
2971
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2972
|
+
}>>;
|
|
2116
2973
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2974
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2975
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2976
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2977
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2117
2978
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2118
2979
|
readonly title: Schema.optional<Schema.String>;
|
|
2119
2980
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2157,11 +3018,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2157
3018
|
readonly updatedAt: Schema.String;
|
|
2158
3019
|
readonly workspaceId: Schema.String;
|
|
2159
3020
|
readonly workspaceRevision: Schema.String;
|
|
3021
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3022
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2160
3023
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2161
3024
|
readonly contentDigest: Schema.String;
|
|
2162
3025
|
readonly key: Schema.String;
|
|
2163
3026
|
readonly version: Schema.String;
|
|
2164
3027
|
}>>;
|
|
3028
|
+
/**
|
|
3029
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3030
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3031
|
+
* A sandboxed Session carries none.
|
|
3032
|
+
*/
|
|
3033
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2165
3034
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2166
3035
|
readonly connectionId: Schema.String;
|
|
2167
3036
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2173,7 +3042,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2173
3042
|
readonly code: Schema.String;
|
|
2174
3043
|
readonly message: Schema.String;
|
|
2175
3044
|
}>>;
|
|
3045
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3046
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3047
|
+
/** 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. */
|
|
3048
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3049
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3050
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3051
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3052
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3053
|
+
/**
|
|
3054
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3055
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3056
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3057
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3058
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3059
|
+
* it.
|
|
3060
|
+
*/
|
|
3061
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3062
|
+
readonly approvalId: Schema.String;
|
|
3063
|
+
readonly expiresAt: Schema.String;
|
|
3064
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3065
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3066
|
+
readonly label: Schema.String;
|
|
3067
|
+
readonly optionId: Schema.String;
|
|
3068
|
+
}>>>;
|
|
3069
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3070
|
+
}>>;
|
|
2176
3071
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3072
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3073
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3074
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3075
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2177
3076
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2178
3077
|
readonly title: Schema.optional<Schema.String>;
|
|
2179
3078
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2240,11 +3139,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2240
3139
|
readonly updatedAt: Schema.String;
|
|
2241
3140
|
readonly workspaceId: Schema.String;
|
|
2242
3141
|
readonly workspaceRevision: Schema.String;
|
|
3142
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3143
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2243
3144
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2244
3145
|
readonly contentDigest: Schema.String;
|
|
2245
3146
|
readonly key: Schema.String;
|
|
2246
3147
|
readonly version: Schema.String;
|
|
2247
3148
|
}>>;
|
|
3149
|
+
/**
|
|
3150
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3151
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3152
|
+
* A sandboxed Session carries none.
|
|
3153
|
+
*/
|
|
3154
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2248
3155
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2249
3156
|
readonly connectionId: Schema.String;
|
|
2250
3157
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2256,7 +3163,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2256
3163
|
readonly code: Schema.String;
|
|
2257
3164
|
readonly message: Schema.String;
|
|
2258
3165
|
}>>;
|
|
3166
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3167
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3168
|
+
/** 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. */
|
|
3169
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3170
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3171
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3172
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3173
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3174
|
+
/**
|
|
3175
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3176
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3177
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3178
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3179
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3180
|
+
* it.
|
|
3181
|
+
*/
|
|
3182
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3183
|
+
readonly approvalId: Schema.String;
|
|
3184
|
+
readonly expiresAt: Schema.String;
|
|
3185
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3186
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3187
|
+
readonly label: Schema.String;
|
|
3188
|
+
readonly optionId: Schema.String;
|
|
3189
|
+
}>>>;
|
|
3190
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3191
|
+
}>>;
|
|
2259
3192
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3193
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3194
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3195
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3196
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2260
3197
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2261
3198
|
readonly title: Schema.optional<Schema.String>;
|
|
2262
3199
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2272,6 +3209,9 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2272
3209
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2273
3210
|
}>>;
|
|
2274
3211
|
}>;
|
|
3212
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
3213
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3214
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
2275
3215
|
}>, Schema.Struct<{
|
|
2276
3216
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2277
3217
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -2300,11 +3240,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2300
3240
|
readonly updatedAt: Schema.String;
|
|
2301
3241
|
readonly workspaceId: Schema.String;
|
|
2302
3242
|
readonly workspaceRevision: Schema.String;
|
|
3243
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3244
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2303
3245
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2304
3246
|
readonly contentDigest: Schema.String;
|
|
2305
3247
|
readonly key: Schema.String;
|
|
2306
3248
|
readonly version: Schema.String;
|
|
2307
3249
|
}>>;
|
|
3250
|
+
/**
|
|
3251
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3252
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3253
|
+
* A sandboxed Session carries none.
|
|
3254
|
+
*/
|
|
3255
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2308
3256
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2309
3257
|
readonly connectionId: Schema.String;
|
|
2310
3258
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2316,7 +3264,37 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2316
3264
|
readonly code: Schema.String;
|
|
2317
3265
|
readonly message: Schema.String;
|
|
2318
3266
|
}>>;
|
|
3267
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3268
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3269
|
+
/** 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. */
|
|
3270
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3271
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3272
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3273
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3274
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3275
|
+
/**
|
|
3276
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3277
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3278
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3279
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3280
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3281
|
+
* it.
|
|
3282
|
+
*/
|
|
3283
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3284
|
+
readonly approvalId: Schema.String;
|
|
3285
|
+
readonly expiresAt: Schema.String;
|
|
3286
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3287
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3288
|
+
readonly label: Schema.String;
|
|
3289
|
+
readonly optionId: Schema.String;
|
|
3290
|
+
}>>>;
|
|
3291
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3292
|
+
}>>;
|
|
2319
3293
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3294
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3295
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3296
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3297
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2320
3298
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2321
3299
|
readonly title: Schema.optional<Schema.String>;
|
|
2322
3300
|
/** A coding Session's own worktree; a reading Session has none. */
|