@maiaos/protocol 0.1.0-canary.5 → 0.1.0-canary.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/definition.d.ts +2 -2
- package/dist/agent/worker-operation.d.ts +8 -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 +4 -0
- package/dist/approval/contract.d.ts.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/request-effect-schema.d.ts +2 -0
- package/dist/approval/request-effect-schema.d.ts.map +1 -1
- package/dist/approval/request-effect-schema.js +2 -0
- 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/connection/request-effect-schema.d.ts +1 -1
- package/dist/connection/request-effect-schema.js +1 -1
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +14 -1
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +12 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/effect-schema.d.ts +20 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/discovery/effect-schema.js +19 -2
- package/dist/discovery/effect-schema.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/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 +48 -6
- package/dist/event/registry.js.map +1 -1
- package/dist/event/session-activity-effect-schema.d.ts +14 -0
- package/dist/event/session-activity-effect-schema.d.ts.map +1 -0
- package/dist/event/session-activity-effect-schema.js +21 -0
- package/dist/event/session-activity-effect-schema.js.map +1 -0
- package/dist/event/session-activity.d.ts +16 -0
- package/dist/event/session-activity.d.ts.map +1 -0
- package/dist/event/session-activity.js +11 -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 +2 -0
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +2 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/local-node/contract.d.ts +19 -7
- 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 +93 -7
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +32 -6
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +7 -4
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +7 -0
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/presentation/contract.d.ts +8 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +6 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +6 -0
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- 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/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 +138 -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 +500 -4
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +95 -7
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +25 -0
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +23 -0
- 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 +32 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +38 -0
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +16 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.d.ts +7 -0
- package/dist/session/worktree-effect-schema.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.js +14 -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/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](../../../../docs/decisions.md#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,6 +56,14 @@ 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"]>>;
|
|
41
67
|
readonly schemaVersion: Schema.Literal<4>;
|
|
42
68
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
43
69
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -69,6 +95,12 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
69
95
|
readonly key: Schema.String;
|
|
70
96
|
readonly version: Schema.String;
|
|
71
97
|
}>>;
|
|
98
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
99
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
100
|
+
/** `none` when the Session runs with host authority. */
|
|
101
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
102
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
103
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
72
104
|
/** The account the Session binds to, named or picked by the Node. */
|
|
73
105
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
74
106
|
readonly connectionId: Schema.String;
|
|
@@ -76,6 +108,8 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
76
108
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
77
109
|
readonly model: Schema.optional<Schema.String>;
|
|
78
110
|
}>>;
|
|
111
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
112
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
79
113
|
readonly projectId: Schema.String;
|
|
80
114
|
readonly workspaceId: Schema.String;
|
|
81
115
|
readonly workspaceRevision: Schema.String;
|
|
@@ -276,9 +310,13 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
276
310
|
* both `connectionId` and `executor`, and optionally the `model`. An Agent
|
|
277
311
|
* (`agentId`) supplies the harness, Connection, model and effort itself, so it
|
|
278
312
|
* excludes every one of them. `role` (default `worker`) bounds what the
|
|
279
|
-
* Session's own credential reaches.
|
|
280
|
-
*
|
|
281
|
-
*
|
|
313
|
+
* Session's own credential reaches. `hostAuthority` opts one executor Session
|
|
314
|
+
* out of the Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)): it
|
|
315
|
+
* runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
|
|
316
|
+
* role, and passes `permission` to its vendor CLI unchanged. A vendor
|
|
317
|
+
* executor Session with `worktree` is a coding Session: it gets its own
|
|
318
|
+
* worktree from the base ref of the Workspace's repository and may write
|
|
319
|
+
* inside it.
|
|
282
320
|
*/
|
|
283
321
|
export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
284
322
|
readonly commandId: Schema.String;
|
|
@@ -286,6 +324,8 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
286
324
|
readonly workspaceId: Schema.String;
|
|
287
325
|
readonly agentId: Schema.optional<Schema.String>;
|
|
288
326
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
327
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
328
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
289
329
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
290
330
|
readonly contentDigest: Schema.String;
|
|
291
331
|
readonly key: Schema.String;
|
|
@@ -293,7 +333,10 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
293
333
|
}>>;
|
|
294
334
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
295
335
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
336
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
337
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
296
338
|
readonly model: Schema.optional<Schema.String>;
|
|
339
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
297
340
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
298
341
|
readonly title: Schema.optional<Schema.String>;
|
|
299
342
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
@@ -329,6 +372,14 @@ export declare const sessionListParametersEffectSchema: Schema.Struct<{
|
|
|
329
372
|
export declare const sessionShowParametersEffectSchema: Schema.Struct<{
|
|
330
373
|
readonly sessionId: Schema.String;
|
|
331
374
|
}>;
|
|
375
|
+
export declare const sessionWaitParametersEffectSchema: Schema.Struct<{
|
|
376
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
377
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
378
|
+
readonly sessionId: Schema.String;
|
|
379
|
+
/** The wait ends when the Session is in any of these states. */
|
|
380
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
381
|
+
readonly waitMilliseconds: Schema.Int;
|
|
382
|
+
}>;
|
|
332
383
|
export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
|
|
333
384
|
readonly afterSessionCursor: Schema.String;
|
|
334
385
|
readonly limit: Schema.Int;
|
|
@@ -579,11 +630,19 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
579
630
|
readonly updatedAt: Schema.String;
|
|
580
631
|
readonly workspaceId: Schema.String;
|
|
581
632
|
readonly workspaceRevision: Schema.String;
|
|
633
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
634
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
582
635
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
583
636
|
readonly contentDigest: Schema.String;
|
|
584
637
|
readonly key: Schema.String;
|
|
585
638
|
readonly version: Schema.String;
|
|
586
639
|
}>>;
|
|
640
|
+
/**
|
|
641
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
642
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
643
|
+
* A sandboxed Session carries none.
|
|
644
|
+
*/
|
|
645
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
587
646
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
588
647
|
readonly connectionId: Schema.String;
|
|
589
648
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -595,6 +654,14 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
595
654
|
readonly code: Schema.String;
|
|
596
655
|
readonly message: Schema.String;
|
|
597
656
|
}>>;
|
|
657
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
658
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
659
|
+
/** 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. */
|
|
660
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
661
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
662
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
663
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
664
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
598
665
|
readonly schemaVersion: Schema.Literal<4>;
|
|
599
666
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
600
667
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -642,11 +709,19 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
642
709
|
readonly updatedAt: Schema.String;
|
|
643
710
|
readonly workspaceId: Schema.String;
|
|
644
711
|
readonly workspaceRevision: Schema.String;
|
|
712
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
713
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
645
714
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
646
715
|
readonly contentDigest: Schema.String;
|
|
647
716
|
readonly key: Schema.String;
|
|
648
717
|
readonly version: Schema.String;
|
|
649
718
|
}>>;
|
|
719
|
+
/**
|
|
720
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
721
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
722
|
+
* A sandboxed Session carries none.
|
|
723
|
+
*/
|
|
724
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
650
725
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
651
726
|
readonly connectionId: Schema.String;
|
|
652
727
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -658,6 +733,14 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
658
733
|
readonly code: Schema.String;
|
|
659
734
|
readonly message: Schema.String;
|
|
660
735
|
}>>;
|
|
736
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
737
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
738
|
+
/** 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. */
|
|
739
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
740
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
741
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
742
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
743
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
661
744
|
readonly schemaVersion: Schema.Literal<4>;
|
|
662
745
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
663
746
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -689,11 +772,19 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
689
772
|
readonly updatedAt: Schema.String;
|
|
690
773
|
readonly workspaceId: Schema.String;
|
|
691
774
|
readonly workspaceRevision: Schema.String;
|
|
775
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
776
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
692
777
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
693
778
|
readonly contentDigest: Schema.String;
|
|
694
779
|
readonly key: Schema.String;
|
|
695
780
|
readonly version: Schema.String;
|
|
696
781
|
}>>;
|
|
782
|
+
/**
|
|
783
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
784
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
785
|
+
* A sandboxed Session carries none.
|
|
786
|
+
*/
|
|
787
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
697
788
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
698
789
|
readonly connectionId: Schema.String;
|
|
699
790
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -705,6 +796,14 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
705
796
|
readonly code: Schema.String;
|
|
706
797
|
readonly message: Schema.String;
|
|
707
798
|
}>>;
|
|
799
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
800
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
801
|
+
/** 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. */
|
|
802
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
803
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
804
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
805
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
806
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
708
807
|
readonly schemaVersion: Schema.Literal<4>;
|
|
709
808
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
710
809
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -735,11 +834,81 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
735
834
|
readonly updatedAt: Schema.String;
|
|
736
835
|
readonly workspaceId: Schema.String;
|
|
737
836
|
readonly workspaceRevision: Schema.String;
|
|
837
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
838
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
839
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
840
|
+
readonly contentDigest: Schema.String;
|
|
841
|
+
readonly key: Schema.String;
|
|
842
|
+
readonly version: Schema.String;
|
|
843
|
+
}>>;
|
|
844
|
+
/**
|
|
845
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
846
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
847
|
+
* A sandboxed Session carries none.
|
|
848
|
+
*/
|
|
849
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
850
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
851
|
+
readonly connectionId: Schema.String;
|
|
852
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
853
|
+
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
854
|
+
readonly model: Schema.optional<Schema.String>;
|
|
855
|
+
}>>;
|
|
856
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
857
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
858
|
+
readonly code: Schema.String;
|
|
859
|
+
readonly message: Schema.String;
|
|
860
|
+
}>>;
|
|
861
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
862
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
863
|
+
/** 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. */
|
|
864
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
865
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
866
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
867
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
868
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
869
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
870
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
871
|
+
readonly title: Schema.optional<Schema.String>;
|
|
872
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
873
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
874
|
+
readonly baseRef: Schema.String;
|
|
875
|
+
readonly baseRevision: Schema.String;
|
|
876
|
+
readonly branch: Schema.String;
|
|
877
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
878
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
879
|
+
readonly digest: Schema.String;
|
|
880
|
+
readonly name: Schema.String;
|
|
881
|
+
}>>>;
|
|
882
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
883
|
+
}>>;
|
|
884
|
+
}>;
|
|
885
|
+
}>;
|
|
886
|
+
/** `satisfied` is false when the bounded wait ended first; `session` is then its last read. */
|
|
887
|
+
export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
888
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
889
|
+
readonly satisfied: Schema.Boolean;
|
|
890
|
+
readonly session: Schema.Struct<{
|
|
891
|
+
readonly createdAt: Schema.String;
|
|
892
|
+
readonly id: Schema.String;
|
|
893
|
+
readonly projectId: Schema.String;
|
|
894
|
+
readonly revision: Schema.String;
|
|
895
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
896
|
+
readonly updatedAt: Schema.String;
|
|
897
|
+
readonly workspaceId: Schema.String;
|
|
898
|
+
readonly workspaceRevision: Schema.String;
|
|
899
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
900
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
738
901
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
739
902
|
readonly contentDigest: Schema.String;
|
|
740
903
|
readonly key: Schema.String;
|
|
741
904
|
readonly version: Schema.String;
|
|
742
905
|
}>>;
|
|
906
|
+
/**
|
|
907
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
908
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
909
|
+
* A sandboxed Session carries none.
|
|
910
|
+
*/
|
|
911
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
743
912
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
744
913
|
readonly connectionId: Schema.String;
|
|
745
914
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -751,6 +920,14 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
751
920
|
readonly code: Schema.String;
|
|
752
921
|
readonly message: Schema.String;
|
|
753
922
|
}>>;
|
|
923
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
924
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
925
|
+
/** 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. */
|
|
926
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
927
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
928
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
929
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
930
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
754
931
|
readonly schemaVersion: Schema.Literal<4>;
|
|
755
932
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
756
933
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -785,6 +962,12 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
785
962
|
readonly key: Schema.String;
|
|
786
963
|
readonly version: Schema.String;
|
|
787
964
|
}>>;
|
|
965
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
966
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
967
|
+
/** `none` when the Session runs with host authority. */
|
|
968
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
969
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
970
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
788
971
|
/** The account the Session binds to, named or picked by the Node. */
|
|
789
972
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
790
973
|
readonly connectionId: Schema.String;
|
|
@@ -792,6 +975,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
792
975
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
793
976
|
readonly model: Schema.optional<Schema.String>;
|
|
794
977
|
}>>;
|
|
978
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
979
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
795
980
|
readonly projectId: Schema.String;
|
|
796
981
|
readonly workspaceId: Schema.String;
|
|
797
982
|
readonly workspaceRevision: Schema.String;
|
|
@@ -987,6 +1172,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
987
1172
|
}>]>]>>;
|
|
988
1173
|
readonly method: Schema.Literal<"session.events.list">;
|
|
989
1174
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
1175
|
+
/** Set when a prune removed events after the caller's cursor: the oldest retained cursor. */
|
|
1176
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
990
1177
|
readonly sessionId: Schema.String;
|
|
991
1178
|
}>;
|
|
992
1179
|
export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
@@ -1017,11 +1204,19 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1017
1204
|
readonly updatedAt: Schema.String;
|
|
1018
1205
|
readonly workspaceId: Schema.String;
|
|
1019
1206
|
readonly workspaceRevision: Schema.String;
|
|
1207
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1208
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1020
1209
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1021
1210
|
readonly contentDigest: Schema.String;
|
|
1022
1211
|
readonly key: Schema.String;
|
|
1023
1212
|
readonly version: Schema.String;
|
|
1024
1213
|
}>>;
|
|
1214
|
+
/**
|
|
1215
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1216
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1217
|
+
* A sandboxed Session carries none.
|
|
1218
|
+
*/
|
|
1219
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1025
1220
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1026
1221
|
readonly connectionId: Schema.String;
|
|
1027
1222
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1033,6 +1228,14 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1033
1228
|
readonly code: Schema.String;
|
|
1034
1229
|
readonly message: Schema.String;
|
|
1035
1230
|
}>>;
|
|
1231
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1232
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1233
|
+
/** 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. */
|
|
1234
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1235
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1236
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1237
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1238
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1036
1239
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1037
1240
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1038
1241
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1078,11 +1281,19 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1078
1281
|
readonly updatedAt: Schema.String;
|
|
1079
1282
|
readonly workspaceId: Schema.String;
|
|
1080
1283
|
readonly workspaceRevision: Schema.String;
|
|
1284
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1285
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1081
1286
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1082
1287
|
readonly contentDigest: Schema.String;
|
|
1083
1288
|
readonly key: Schema.String;
|
|
1084
1289
|
readonly version: Schema.String;
|
|
1085
1290
|
}>>;
|
|
1291
|
+
/**
|
|
1292
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1293
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1294
|
+
* A sandboxed Session carries none.
|
|
1295
|
+
*/
|
|
1296
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1086
1297
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1087
1298
|
readonly connectionId: Schema.String;
|
|
1088
1299
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1094,6 +1305,14 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1094
1305
|
readonly code: Schema.String;
|
|
1095
1306
|
readonly message: Schema.String;
|
|
1096
1307
|
}>>;
|
|
1308
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1309
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1310
|
+
/** 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. */
|
|
1311
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1312
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1313
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1314
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1315
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1097
1316
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1098
1317
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1099
1318
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1139,11 +1358,19 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1139
1358
|
readonly updatedAt: Schema.String;
|
|
1140
1359
|
readonly workspaceId: Schema.String;
|
|
1141
1360
|
readonly workspaceRevision: Schema.String;
|
|
1361
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1362
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1142
1363
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1143
1364
|
readonly contentDigest: Schema.String;
|
|
1144
1365
|
readonly key: Schema.String;
|
|
1145
1366
|
readonly version: Schema.String;
|
|
1146
1367
|
}>>;
|
|
1368
|
+
/**
|
|
1369
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1370
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1371
|
+
* A sandboxed Session carries none.
|
|
1372
|
+
*/
|
|
1373
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1147
1374
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1148
1375
|
readonly connectionId: Schema.String;
|
|
1149
1376
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1155,6 +1382,14 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1155
1382
|
readonly code: Schema.String;
|
|
1156
1383
|
readonly message: Schema.String;
|
|
1157
1384
|
}>>;
|
|
1385
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1386
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1387
|
+
/** 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. */
|
|
1388
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1389
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1390
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1391
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1392
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1158
1393
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1159
1394
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1160
1395
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1200,11 +1435,19 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1200
1435
|
readonly updatedAt: Schema.String;
|
|
1201
1436
|
readonly workspaceId: Schema.String;
|
|
1202
1437
|
readonly workspaceRevision: Schema.String;
|
|
1438
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1439
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1203
1440
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1204
1441
|
readonly contentDigest: Schema.String;
|
|
1205
1442
|
readonly key: Schema.String;
|
|
1206
1443
|
readonly version: Schema.String;
|
|
1207
1444
|
}>>;
|
|
1445
|
+
/**
|
|
1446
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1447
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1448
|
+
* A sandboxed Session carries none.
|
|
1449
|
+
*/
|
|
1450
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1208
1451
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1209
1452
|
readonly connectionId: Schema.String;
|
|
1210
1453
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1216,6 +1459,14 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1216
1459
|
readonly code: Schema.String;
|
|
1217
1460
|
readonly message: Schema.String;
|
|
1218
1461
|
}>>;
|
|
1462
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1463
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1464
|
+
/** 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. */
|
|
1465
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1466
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1467
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1468
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1469
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1219
1470
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1220
1471
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1221
1472
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1272,11 +1523,19 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1272
1523
|
readonly updatedAt: Schema.String;
|
|
1273
1524
|
readonly workspaceId: Schema.String;
|
|
1274
1525
|
readonly workspaceRevision: Schema.String;
|
|
1526
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1527
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1275
1528
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1276
1529
|
readonly contentDigest: Schema.String;
|
|
1277
1530
|
readonly key: Schema.String;
|
|
1278
1531
|
readonly version: Schema.String;
|
|
1279
1532
|
}>>;
|
|
1533
|
+
/**
|
|
1534
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1535
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1536
|
+
* A sandboxed Session carries none.
|
|
1537
|
+
*/
|
|
1538
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1280
1539
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1281
1540
|
readonly connectionId: Schema.String;
|
|
1282
1541
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1288,6 +1547,14 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1288
1547
|
readonly code: Schema.String;
|
|
1289
1548
|
readonly message: Schema.String;
|
|
1290
1549
|
}>>;
|
|
1550
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1551
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1552
|
+
/** 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. */
|
|
1553
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1554
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1555
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1556
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1557
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1291
1558
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1292
1559
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1293
1560
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1313,6 +1580,8 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1313
1580
|
readonly workspaceId: Schema.String;
|
|
1314
1581
|
readonly agentId: Schema.optional<Schema.String>;
|
|
1315
1582
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
1583
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
1584
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1316
1585
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
1317
1586
|
readonly contentDigest: Schema.String;
|
|
1318
1587
|
readonly key: Schema.String;
|
|
@@ -1320,7 +1589,10 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1320
1589
|
}>>;
|
|
1321
1590
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1322
1591
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
1592
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1593
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1323
1594
|
readonly model: Schema.optional<Schema.String>;
|
|
1595
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1324
1596
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
1325
1597
|
readonly title: Schema.optional<Schema.String>;
|
|
1326
1598
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
@@ -1341,6 +1613,16 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1341
1613
|
readonly parameters: Schema.Struct<{
|
|
1342
1614
|
readonly sessionId: Schema.String;
|
|
1343
1615
|
}>;
|
|
1616
|
+
}>, Schema.Struct<{
|
|
1617
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
1618
|
+
readonly parameters: Schema.Struct<{
|
|
1619
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
1620
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
1621
|
+
readonly sessionId: Schema.String;
|
|
1622
|
+
/** The wait ends when the Session is in any of these states. */
|
|
1623
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1624
|
+
readonly waitMilliseconds: Schema.Int;
|
|
1625
|
+
}>;
|
|
1344
1626
|
}>, Schema.Struct<{
|
|
1345
1627
|
readonly method: Schema.Literal<"session.spawn">;
|
|
1346
1628
|
readonly parameters: Schema.Struct<{
|
|
@@ -1459,11 +1741,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1459
1741
|
readonly updatedAt: Schema.String;
|
|
1460
1742
|
readonly workspaceId: Schema.String;
|
|
1461
1743
|
readonly workspaceRevision: Schema.String;
|
|
1744
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1745
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1462
1746
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1463
1747
|
readonly contentDigest: Schema.String;
|
|
1464
1748
|
readonly key: Schema.String;
|
|
1465
1749
|
readonly version: Schema.String;
|
|
1466
1750
|
}>>;
|
|
1751
|
+
/**
|
|
1752
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1753
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1754
|
+
* A sandboxed Session carries none.
|
|
1755
|
+
*/
|
|
1756
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1467
1757
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1468
1758
|
readonly connectionId: Schema.String;
|
|
1469
1759
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1475,6 +1765,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1475
1765
|
readonly code: Schema.String;
|
|
1476
1766
|
readonly message: Schema.String;
|
|
1477
1767
|
}>>;
|
|
1768
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1769
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1770
|
+
/** 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. */
|
|
1771
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1772
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1773
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1774
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1775
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1478
1776
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1479
1777
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1480
1778
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1584,11 +1882,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1584
1882
|
readonly updatedAt: Schema.String;
|
|
1585
1883
|
readonly workspaceId: Schema.String;
|
|
1586
1884
|
readonly workspaceRevision: Schema.String;
|
|
1885
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1886
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1587
1887
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1588
1888
|
readonly contentDigest: Schema.String;
|
|
1589
1889
|
readonly key: Schema.String;
|
|
1590
1890
|
readonly version: Schema.String;
|
|
1591
1891
|
}>>;
|
|
1892
|
+
/**
|
|
1893
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1894
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
1895
|
+
* A sandboxed Session carries none.
|
|
1896
|
+
*/
|
|
1897
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1592
1898
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1593
1899
|
readonly connectionId: Schema.String;
|
|
1594
1900
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1600,6 +1906,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1600
1906
|
readonly code: Schema.String;
|
|
1601
1907
|
readonly message: Schema.String;
|
|
1602
1908
|
}>>;
|
|
1909
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1910
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1911
|
+
/** 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. */
|
|
1912
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1913
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1914
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1915
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1916
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1603
1917
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1604
1918
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1605
1919
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1695,11 +2009,79 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1695
2009
|
readonly updatedAt: Schema.String;
|
|
1696
2010
|
readonly workspaceId: Schema.String;
|
|
1697
2011
|
readonly workspaceRevision: Schema.String;
|
|
2012
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2013
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2014
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2015
|
+
readonly contentDigest: Schema.String;
|
|
2016
|
+
readonly key: Schema.String;
|
|
2017
|
+
readonly version: Schema.String;
|
|
2018
|
+
}>>;
|
|
2019
|
+
/**
|
|
2020
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2021
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2022
|
+
* A sandboxed Session carries none.
|
|
2023
|
+
*/
|
|
2024
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2025
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
2026
|
+
readonly connectionId: Schema.String;
|
|
2027
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2028
|
+
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
2029
|
+
readonly model: Schema.optional<Schema.String>;
|
|
2030
|
+
}>>;
|
|
2031
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
2032
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2033
|
+
readonly code: Schema.String;
|
|
2034
|
+
readonly message: Schema.String;
|
|
2035
|
+
}>>;
|
|
2036
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2037
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2038
|
+
/** 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. */
|
|
2039
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2040
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2041
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2042
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2043
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2044
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2045
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2046
|
+
readonly title: Schema.optional<Schema.String>;
|
|
2047
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
2048
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2049
|
+
readonly baseRef: Schema.String;
|
|
2050
|
+
readonly baseRevision: Schema.String;
|
|
2051
|
+
readonly branch: Schema.String;
|
|
2052
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
2053
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2054
|
+
readonly digest: Schema.String;
|
|
2055
|
+
readonly name: Schema.String;
|
|
2056
|
+
}>>>;
|
|
2057
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2058
|
+
}>>;
|
|
2059
|
+
}>;
|
|
2060
|
+
}>, Schema.Struct<{
|
|
2061
|
+
readonly method: Schema.Literal<"session.wait">;
|
|
2062
|
+
readonly satisfied: Schema.Boolean;
|
|
2063
|
+
readonly session: Schema.Struct<{
|
|
2064
|
+
readonly createdAt: Schema.String;
|
|
2065
|
+
readonly id: Schema.String;
|
|
2066
|
+
readonly projectId: Schema.String;
|
|
2067
|
+
readonly revision: Schema.String;
|
|
2068
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
2069
|
+
readonly updatedAt: Schema.String;
|
|
2070
|
+
readonly workspaceId: Schema.String;
|
|
2071
|
+
readonly workspaceRevision: Schema.String;
|
|
2072
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2073
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1698
2074
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1699
2075
|
readonly contentDigest: Schema.String;
|
|
1700
2076
|
readonly key: Schema.String;
|
|
1701
2077
|
readonly version: Schema.String;
|
|
1702
2078
|
}>>;
|
|
2079
|
+
/**
|
|
2080
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2081
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2082
|
+
* A sandboxed Session carries none.
|
|
2083
|
+
*/
|
|
2084
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1703
2085
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1704
2086
|
readonly connectionId: Schema.String;
|
|
1705
2087
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1711,6 +2093,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1711
2093
|
readonly code: Schema.String;
|
|
1712
2094
|
readonly message: Schema.String;
|
|
1713
2095
|
}>>;
|
|
2096
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2097
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2098
|
+
/** 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. */
|
|
2099
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2100
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2101
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2102
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2103
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1714
2104
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1715
2105
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1716
2106
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1757,11 +2147,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1757
2147
|
readonly updatedAt: Schema.String;
|
|
1758
2148
|
readonly workspaceId: Schema.String;
|
|
1759
2149
|
readonly workspaceRevision: Schema.String;
|
|
2150
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2151
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1760
2152
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1761
2153
|
readonly contentDigest: Schema.String;
|
|
1762
2154
|
readonly key: Schema.String;
|
|
1763
2155
|
readonly version: Schema.String;
|
|
1764
2156
|
}>>;
|
|
2157
|
+
/**
|
|
2158
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2159
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2160
|
+
* A sandboxed Session carries none.
|
|
2161
|
+
*/
|
|
2162
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1765
2163
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1766
2164
|
readonly connectionId: Schema.String;
|
|
1767
2165
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -1773,6 +2171,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1773
2171
|
readonly code: Schema.String;
|
|
1774
2172
|
readonly message: Schema.String;
|
|
1775
2173
|
}>>;
|
|
2174
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2175
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2176
|
+
/** 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. */
|
|
2177
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2178
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2179
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2180
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2181
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1776
2182
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1777
2183
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1778
2184
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1806,6 +2212,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1806
2212
|
readonly key: Schema.String;
|
|
1807
2213
|
readonly version: Schema.String;
|
|
1808
2214
|
}>>;
|
|
2215
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
2216
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
2217
|
+
/** `none` when the Session runs with host authority. */
|
|
2218
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2219
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
2220
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1809
2221
|
/** The account the Session binds to, named or picked by the Node. */
|
|
1810
2222
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1811
2223
|
readonly connectionId: Schema.String;
|
|
@@ -1813,6 +2225,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1813
2225
|
readonly kind: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
1814
2226
|
readonly model: Schema.optional<Schema.String>;
|
|
1815
2227
|
}>>;
|
|
2228
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
2229
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1816
2230
|
readonly projectId: Schema.String;
|
|
1817
2231
|
readonly workspaceId: Schema.String;
|
|
1818
2232
|
readonly workspaceRevision: Schema.String;
|
|
@@ -2008,6 +2422,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2008
2422
|
}>]>]>>;
|
|
2009
2423
|
readonly method: Schema.Literal<"session.events.list">;
|
|
2010
2424
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
2425
|
+
/** Set when a prune removed events after the caller's cursor: the oldest retained cursor. */
|
|
2426
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
2011
2427
|
readonly sessionId: Schema.String;
|
|
2012
2428
|
}>, Schema.Struct<{
|
|
2013
2429
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -2037,11 +2453,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2037
2453
|
readonly updatedAt: Schema.String;
|
|
2038
2454
|
readonly workspaceId: Schema.String;
|
|
2039
2455
|
readonly workspaceRevision: Schema.String;
|
|
2456
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2457
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2040
2458
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2041
2459
|
readonly contentDigest: Schema.String;
|
|
2042
2460
|
readonly key: Schema.String;
|
|
2043
2461
|
readonly version: Schema.String;
|
|
2044
2462
|
}>>;
|
|
2463
|
+
/**
|
|
2464
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2465
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2466
|
+
* A sandboxed Session carries none.
|
|
2467
|
+
*/
|
|
2468
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2045
2469
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2046
2470
|
readonly connectionId: Schema.String;
|
|
2047
2471
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2053,6 +2477,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2053
2477
|
readonly code: Schema.String;
|
|
2054
2478
|
readonly message: Schema.String;
|
|
2055
2479
|
}>>;
|
|
2480
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2481
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2482
|
+
/** 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. */
|
|
2483
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2484
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2485
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2486
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2487
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2056
2488
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2057
2489
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2058
2490
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2097,11 +2529,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2097
2529
|
readonly updatedAt: Schema.String;
|
|
2098
2530
|
readonly workspaceId: Schema.String;
|
|
2099
2531
|
readonly workspaceRevision: Schema.String;
|
|
2532
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2533
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2100
2534
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2101
2535
|
readonly contentDigest: Schema.String;
|
|
2102
2536
|
readonly key: Schema.String;
|
|
2103
2537
|
readonly version: Schema.String;
|
|
2104
2538
|
}>>;
|
|
2539
|
+
/**
|
|
2540
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2541
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2542
|
+
* A sandboxed Session carries none.
|
|
2543
|
+
*/
|
|
2544
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2105
2545
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2106
2546
|
readonly connectionId: Schema.String;
|
|
2107
2547
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2113,6 +2553,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2113
2553
|
readonly code: Schema.String;
|
|
2114
2554
|
readonly message: Schema.String;
|
|
2115
2555
|
}>>;
|
|
2556
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2557
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2558
|
+
/** 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. */
|
|
2559
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2560
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2561
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2562
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2563
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2116
2564
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2117
2565
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2118
2566
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2157,11 +2605,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2157
2605
|
readonly updatedAt: Schema.String;
|
|
2158
2606
|
readonly workspaceId: Schema.String;
|
|
2159
2607
|
readonly workspaceRevision: Schema.String;
|
|
2608
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2609
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2160
2610
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2161
2611
|
readonly contentDigest: Schema.String;
|
|
2162
2612
|
readonly key: Schema.String;
|
|
2163
2613
|
readonly version: Schema.String;
|
|
2164
2614
|
}>>;
|
|
2615
|
+
/**
|
|
2616
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2617
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2618
|
+
* A sandboxed Session carries none.
|
|
2619
|
+
*/
|
|
2620
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2165
2621
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2166
2622
|
readonly connectionId: Schema.String;
|
|
2167
2623
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2173,6 +2629,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2173
2629
|
readonly code: Schema.String;
|
|
2174
2630
|
readonly message: Schema.String;
|
|
2175
2631
|
}>>;
|
|
2632
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2633
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2634
|
+
/** 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. */
|
|
2635
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2636
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2637
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2638
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2639
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2176
2640
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2177
2641
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2178
2642
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2240,11 +2704,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2240
2704
|
readonly updatedAt: Schema.String;
|
|
2241
2705
|
readonly workspaceId: Schema.String;
|
|
2242
2706
|
readonly workspaceRevision: Schema.String;
|
|
2707
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2708
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2243
2709
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2244
2710
|
readonly contentDigest: Schema.String;
|
|
2245
2711
|
readonly key: Schema.String;
|
|
2246
2712
|
readonly version: Schema.String;
|
|
2247
2713
|
}>>;
|
|
2714
|
+
/**
|
|
2715
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2716
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2717
|
+
* A sandboxed Session carries none.
|
|
2718
|
+
*/
|
|
2719
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2248
2720
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2249
2721
|
readonly connectionId: Schema.String;
|
|
2250
2722
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2256,6 +2728,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2256
2728
|
readonly code: Schema.String;
|
|
2257
2729
|
readonly message: Schema.String;
|
|
2258
2730
|
}>>;
|
|
2731
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2732
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2733
|
+
/** 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. */
|
|
2734
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2735
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2736
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2737
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2738
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2259
2739
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2260
2740
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2261
2741
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2300,11 +2780,19 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2300
2780
|
readonly updatedAt: Schema.String;
|
|
2301
2781
|
readonly workspaceId: Schema.String;
|
|
2302
2782
|
readonly workspaceRevision: Schema.String;
|
|
2783
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2784
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2303
2785
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2304
2786
|
readonly contentDigest: Schema.String;
|
|
2305
2787
|
readonly key: Schema.String;
|
|
2306
2788
|
readonly version: Schema.String;
|
|
2307
2789
|
}>>;
|
|
2790
|
+
/**
|
|
2791
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2792
|
+
* Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
|
|
2793
|
+
* A sandboxed Session carries none.
|
|
2794
|
+
*/
|
|
2795
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2308
2796
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2309
2797
|
readonly connectionId: Schema.String;
|
|
2310
2798
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
@@ -2316,6 +2804,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2316
2804
|
readonly code: Schema.String;
|
|
2317
2805
|
readonly message: Schema.String;
|
|
2318
2806
|
}>>;
|
|
2807
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2808
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2809
|
+
/** 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. */
|
|
2810
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2811
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2812
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2813
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2814
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2319
2815
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2320
2816
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2321
2817
|
readonly title: Schema.optional<Schema.String>;
|