@saturn-universe/storage 0.1.2-dev.6 → 0.1.2-dev.7
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/queries.d.ts +1 -1
- package/dist/queries.js +13 -8
- package/dist/schema.js +2 -2
- package/dist/store.d.ts +1 -0
- package/dist/store.js +1 -0
- package/dist/worker.d.ts +9 -4
- package/dist/worker.js +13 -2
- package/package.json +3 -3
package/dist/queries.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ type HistoryCommand = Extract<HostCommand, {
|
|
|
49
49
|
type: 'session.history' | 'session.history.message';
|
|
50
50
|
}>;
|
|
51
51
|
export declare function readSessionHistory(db: Database, state: ProjectionState, generation: number, command: HistoryCommand): SessionHistoryPage | SessionHistoryMessage;
|
|
52
|
-
export declare function readSessionList(db: Database, generation: number, command: Extract<HostCommand, {
|
|
52
|
+
export declare function readSessionList(db: Database, state: ProjectionState, generation: number, command: Extract<HostCommand, {
|
|
53
53
|
type: 'session.list';
|
|
54
54
|
}>): readonly SessionListItem[];
|
|
55
55
|
export declare function readSessionExport(db: Database, state: ProjectionState, generation: number, command: Extract<HostCommand, {
|
package/dist/queries.js
CHANGED
|
@@ -216,6 +216,13 @@ export function createProjectionReaders(db, current) {
|
|
|
216
216
|
const activeRequest = requests.find((fact) => ['running', 'paused'].includes(state.turns[fact.request.turnId].status))?.request;
|
|
217
217
|
const rawSurface = found(state.surfaces[id]);
|
|
218
218
|
const currentSurface = surface(id);
|
|
219
|
+
const historicalRuns = new Set(currentSurface.items.flatMap(({ active, message }) => active && message.role === 'assistant' && message.runId !== runId && message.toolCalls.length
|
|
220
|
+
? [message.runId]
|
|
221
|
+
: []));
|
|
222
|
+
const historicalRunModes = Object.fromEntries([...historicalRuns].flatMap((historicalRunId) => {
|
|
223
|
+
const mode = state.memberships[`${historicalRunId}:${id}`]?.config.modeRef;
|
|
224
|
+
return mode ? [[historicalRunId, mode]] : [];
|
|
225
|
+
}));
|
|
219
226
|
const byEvent = new Map(Object.values(rawSurface.requests).map((entry) => [entry.responseEventId, entry]));
|
|
220
227
|
return {
|
|
221
228
|
surface: {
|
|
@@ -233,6 +240,7 @@ export function createProjectionReaders(db, current) {
|
|
|
233
240
|
generation,
|
|
234
241
|
throughPosition: state.through,
|
|
235
242
|
...(activeRequest ? { activeRequest } : {}),
|
|
243
|
+
...(historicalRuns.size ? { historicalRunModes } : {}),
|
|
236
244
|
...(teamReports?.length ? { teamReports } : {}),
|
|
237
245
|
...(planSummary ? { planSummary } : {}),
|
|
238
246
|
};
|
|
@@ -649,7 +657,7 @@ function extractFirstMessageText(payloadJson) {
|
|
|
649
657
|
return undefined;
|
|
650
658
|
}
|
|
651
659
|
}
|
|
652
|
-
export function readSessionList(db, generation, command) {
|
|
660
|
+
export function readSessionList(db, state, generation, command) {
|
|
653
661
|
const { workspaceId } = command;
|
|
654
662
|
const limit = Math.max(1, Math.min(command.limit ?? DEFAULT_SESSION_LIST_LIMIT, MAX_SESSION_LIST_LIMIT));
|
|
655
663
|
const workspaceFilter = workspaceId ? ' AND s.workspace_id = ?' : '';
|
|
@@ -690,17 +698,14 @@ export function readSessionList(db, generation, command) {
|
|
|
690
698
|
const latestRun = latestRunStmt.get(generation, id);
|
|
691
699
|
const latestRunId = typeof latestRun?.run_id === 'string' ? latestRun.run_id : undefined;
|
|
692
700
|
const latestRunStatus = typeof latestRun?.status === 'string' ? latestRun.status : undefined;
|
|
693
|
-
const
|
|
701
|
+
const selectedModeRef = state.sessions[id]?.modeRef;
|
|
702
|
+
const runMode = !selectedModeRef && latestRunId
|
|
694
703
|
? runModeStmt.get(generation, latestRunId)
|
|
695
704
|
: undefined;
|
|
696
|
-
const bindMode = !runMode?.mode_ref
|
|
705
|
+
const bindMode = !selectedModeRef && !runMode?.mode_ref
|
|
697
706
|
? bindingModeStmt.get(generation, id)
|
|
698
707
|
: undefined;
|
|
699
|
-
const modeRef =
|
|
700
|
-
? runMode.mode_ref
|
|
701
|
-
: typeof bindMode?.mode_ref === 'string' && bindMode.mode_ref
|
|
702
|
-
? bindMode.mode_ref
|
|
703
|
-
: undefined;
|
|
708
|
+
const modeRef = selectedModeRef ?? runMode?.mode_ref ?? bindMode?.mode_ref;
|
|
704
709
|
const firstUserRow = firstUserStmt.get(generation, id);
|
|
705
710
|
const firstUserMessage = typeof firstUserRow?.payload_json === 'string'
|
|
706
711
|
? extractFirstMessageText(firstUserRow.payload_json)
|
package/dist/schema.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated by scripts/generate-validation.mjs.
|
|
2
|
-
export const schemas = [{ "object": { "commandId": { "type": 1, "optional": false }, "commandHash": { "type": 2, "optional": false }, "correlationId": { "type": 2, "optional": false }, "actor": { "type": 3, "optional": false }, "expected": { "type": 9, "optional": false }, "events": { "type": 18, "optional": false }, "hostEpoch": { "type": 17, "optional": false } } }, { "kind": "string" }, { "kind": "string" }, { "object": { "kind": { "type": 4, "optional": false }, "id": { "type": 2, "optional": false } } }, { "union": [5, 6, 7, 8] }, { "literal": "user" }, { "literal": "runtime" }, { "literal": "agent" }, { "literal": "recovery" }, { "array": 10 }, { "object": { "stream": { "type": 11, "optional": false }, "lastSeq": { "type": 17, "optional": false } } }, { "object": { "kind": { "type": 12, "optional": false }, "id": { "type": 2, "optional": false } } }, { "union": [13, 14, 15, 16] }, { "literal": "workspace" }, { "literal": "session" }, { "literal": "run" }, { "literal": "agent_session" }, { "kind": "number" }, { "array": 19 }, { "union": [20, 33, 36, 47, 53, 60, 63, 77, 84, 91, 202, 208, 212, 215, 218, 222, 233, 240, 246, 249, 256, 261, 267, 270, 277, 291, 296, 300, 303, 306, 309, 312, 315, 323, 336, 339, 342, 345, 359, 373, 407, 447, 482, 486, 490, 495, 499, 504, 519, 523, 527, 530, 539, 543] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 22, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 28, "optional": false } } }, { "kind": "string" }, { "literal": "workspace.created" }, { "literal": 1 }, { "object": { "kind": { "type": 13, "optional": false }, "workspaceId": { "type": 25, "optional": false } } }, { "kind": "string" }, { "union": [27, 21] }, { "literal": null }, { "object": { "workspace": { "type": 29, "optional": false } } }, { "object": { "id": { "type": 25, "optional": false }, "rootUri": { "type": 2, "optional": false }, "status": { "type": 30, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "union": [31, 32] }, { "literal": "open" }, { "literal": "archived" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 34, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 35, "optional": false } } }, { "literal": "workspace.archived" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 37, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 38, "optional": false } } }, { "literal": "agent.created" }, { "object": { "agent": { "type": 39, "optional": false } } }, { "object": { "id": { "type": 40, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "role": { "type": 41, "optional": false }, "defaultScope": { "type": 45, "optional": false }, "modeRef": { "type": 2, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "kind": "string" }, { "union": [42, 43, 44] }, { "literal": "main" }, { "literal": "worker" }, { "literal": "specialist" }, { "union": [14, 15, 46] }, { "literal": "project" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 48, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 51, "optional": false } } }, { "literal": "session.created" }, { "object": { "kind": { "type": 14, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "sessionId": { "type": 50, "optional": false } } }, { "kind": "string" }, { "object": { "session": { "type": 52, "optional": false } } }, { "object": { "id": { "type": 50, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "title": { "type": 2, "optional": false }, "status": { "type": 30, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 54, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 55, "optional": false } } }, { "literal": "session.agent.bound" }, { "object": { "binding": { "type": 56, "optional": false } } }, { "object": { "sessionId": { "type": 50, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "role": { "type": 58, "optional": false } } }, { "kind": "string" }, { "union": [42, 59] }, { "literal": "participant" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 61, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 62, "optional": false } } }, { "literal": "session.archived" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 64, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 71, "optional": false } } }, { "literal": "agent_session.created" }, { "union": [66, 68, 69] }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "sessionId": { "type": 67, "optional": true }, "runId": { "type": 67, "optional": true } } }, { "kind": "undefined" }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 67, "optional": true } } }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 70, "optional": false } } }, { "kind": "string" }, { "object": { "agentSession": { "type": 72, "optional": false } } }, { "object": { "id": { "type": 57, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "owner": { "type": 73, "optional": false }, "status": { "type": 30, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "union": [74, 75, 76] }, { "object": { "scope": { "type": 15, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 70, "optional": false } } }, { "object": { "scope": { "type": 14, "optional": false }, "sessionId": { "type": 50, "optional": false } } }, { "object": { "scope": { "type": 46, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 78, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 79, "optional": false } } }, { "literal": "agent_session.archived" }, { "object": { "reason": { "type": 80, "optional": false } } }, { "union": [81, 82, 83] }, { "literal": "run_ended" }, { "literal": "session_archived" }, { "literal": "explicit" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 85, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 87, "optional": false } } }, { "literal": "run.created" }, { "object": { "kind": { "type": 15, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 70, "optional": false } } }, { "object": { "runId": { "type": 70, "optional": false }, "inputMessageId": { "type": 88, "optional": false }, "workingDirectoryUri": { "type": 2, "optional": false }, "submissionIdentityVersion": { "type": 89, "optional": true } } }, { "kind": "string" }, { "union": [67, 90] }, { "literal": 2 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 92, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 93, "optional": false } } }, { "literal": "run.agent.attached" }, { "object": { "membership": { "type": 94, "optional": false } } }, { "object": { "runId": { "type": 70, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "agentId": { "type": 40, "optional": false }, "role": { "type": 95, "optional": false }, "teamMemberId": { "type": 96, "optional": true }, "searchBranchId": { "type": 96, "optional": true }, "branchWorkingDirectoryUri": { "type": 96, "optional": true }, "config": { "type": 97, "optional": false } } }, { "union": [42, 43] }, { "union": [67, 2] }, { "object": { "modeRef": { "type": 2, "optional": false }, "team": { "type": 98, "optional": true }, "teamMaxDepth": { "type": 106, "optional": true }, "agentDepth": { "type": 106, "optional": true }, "teamAsyncCoordinator": { "type": 107, "optional": true }, "coordinatorPollIntervalMs": { "type": 106, "optional": true }, "workerSoftCheckpointMs": { "type": 106, "optional": true }, "teamMaxActiveDepth1": { "type": 106, "optional": true }, "teamMaxConcurrency": { "type": 106, "optional": true }, "teamHint": { "type": 110, "optional": true }, "planner": { "type": 112, "optional": true }, "contextExtensions": { "type": 131, "optional": true }, "model": { "type": 141, "optional": false }, "providerBinding": { "type": 142, "optional": true }, "toolSnapshot": { "type": 144, "optional": true }, "pluginBindings": { "type": 171, "optional": true }, "policyVersion": { "type": 2, "optional": false }, "toolSetVersion": { "type": 2, "optional": false }, "streamText": { "type": 107, "optional": true }, "workerReasoningEffort": { "type": 96, "optional": true }, "disabledSkills": { "type": 135, "optional": true }, "limits": { "type": 188, "optional": false }, "retry": { "type": 189, "optional": false }, "responses": { "type": 190, "optional": false }, "continuation": { "type": 198, "optional": true }, "search": { "type": 117, "optional": true }, "checkpoint": { "type": 200, "optional": true } } }, { "union": [67, 99] }, { "object": { "members": { "type": 100, "optional": false }, "concurrency": { "type": 106, "optional": true }, "rootId": { "type": 96, "optional": true } } }, { "array": 101 }, { "object": { "id": { "type": 2, "optional": false }, "parent": { "type": 2, "optional": false }, "task": { "type": 2, "optional": false }, "sandboxProfile": { "type": 102, "optional": true }, "workSubpath": { "type": 96, "optional": true } } }, { "union": [67, 103, 104, 105] }, { "literal": "default" }, { "literal": "readonly" }, { "literal": "build" }, { "union": [67, 17] }, { "union": [67, 108, 109] }, { "literal": false }, { "literal": true }, { "union": [67, 111] }, { "object": { "force": { "type": 107, "optional": true }, "concurrency": { "type": 106, "optional": true }, "maxMembers": { "type": 106, "optional": true } } }, { "union": [67, 113] }, { "object": { "mode": { "type": 114, "optional": false }, "maxMembers": { "type": 106, "optional": true }, "concurrency": { "type": 106, "optional": true }, "search": { "type": 117, "optional": true } } }, { "union": [115, 116] }, { "literal": "auto" }, { "literal": "force_team" }, { "union": [67, 118] }, { "object": { "mode": { "type": 119, "optional": false }, "triggers": { "type": 122, "optional": true }, "branchFactor": { "type": 106, "optional": true }, "maxRollouts": { "type": 106, "optional": true }, "maxDepth": { "type": 106, "optional": true }, "concurrency": { "type": 106, "optional": true }, "maxBudgetRatio": { "type": 106, "optional": true }, "maxBranchSteps": { "type": 106, "optional": true }, "isolation": { "type": 129, "optional": true }, "maxCopyBytes": { "type": 106, "optional": true } } }, { "union": [120, 121] }, { "literal": "off" }, { "literal": "selective" }, { "union": [67, 123] }, { "array": 124 }, { "union": [125, 126, 127, 128] }, { "literal": "planning_phase" }, { "literal": "consecutive_failures" }, { "literal": "stagnation" }, { "literal": "model_fork" }, { "union": [67, 104, 130] }, { "literal": "isolated" }, { "union": [67, 132] }, { "object": { "mode": { "type": 133, "optional": true }, "skills": { "type": 137, "optional": false } } }, { "union": [67, 134] }, { "object": { "ref": { "type": 2, "optional": false }, "instructions": { "type": 2, "optional": false }, "allowedTools": { "type": 135, "optional": true }, "deniedTools": { "type": 135, "optional": true } } }, { "union": [67, 136] }, { "array": 2 }, { "array": 138 }, { "object": { "ref": { "type": 2, "optional": false }, "instructions": { "type": 2, "optional": false }, "resources": { "type": 139, "optional": false } } }, { "array": 140 }, { "object": { "path": { "type": 2, "optional": false }, "text": { "type": 2, "optional": false } } }, { "object": { "providerId": { "type": 2, "optional": false }, "modelId": { "type": 2, "optional": false }, "profileRef": { "type": 2, "optional": false } } }, { "union": [67, 143] }, { "object": { "profileId": { "type": 2, "optional": false }, "profileRevision": { "type": 2, "optional": false }, "endpointFingerprint": { "type": 2, "optional": false }, "credentialScopeRef": { "type": 2, "optional": false }, "modelId": { "type": 2, "optional": false }, "codecId": { "type": 2, "optional": false }, "codecVersion": { "type": 17, "optional": false }, "compatibilityKey": { "type": 2, "optional": false }, "capabilityDigest": { "type": 2, "optional": false } } }, { "union": [67, 145] }, { "object": { "version": { "type": 2, "optional": false }, "definitions": { "type": 146, "optional": false } } }, { "array": 147 }, { "object": { "scopeKey": { "type": 96, "optional": true }, "name": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "description": { "type": 2, "optional": false }, "inputSchema": { "type": 148, "optional": false }, "outputSchema": { "type": 152, "optional": true }, "source": { "type": 153, "optional": false }, "effects": { "type": 163, "optional": false }, "supportsIdempotencyKey": { "type": 167, "optional": false }, "supportsReconcile": { "type": 167, "optional": false }, "concurrency": { "type": 168, "optional": false }, "timeoutMs": { "type": 17, "optional": false }, "abortGraceMs": { "type": 106, "optional": true } } }, { "object": {}, "index": 149 }, { "union": [27, 2, 17, 108, 109, 150, 151] }, { "array": 149 }, { "object": {}, "index": 149 }, { "union": [67, 148] }, { "union": [154, 156, 161] }, { "object": { "kind": { "type": 155, "optional": false } } }, { "literal": "builtin" }, { "object": { "kind": { "type": 157, "optional": false }, "sourceId": { "type": 2, "optional": false } } }, { "union": [158, 159, 160] }, { "literal": "custom" }, { "literal": "plugin" }, { "literal": "script" }, { "object": { "kind": { "type": 162, "optional": false }, "serverId": { "type": 2, "optional": false }, "remoteName": { "type": 2, "optional": false } } }, { "literal": "mcp" }, { "union": [164, 165, 166] }, { "literal": "read" }, { "literal": "idempotent_write" }, { "literal": "non_idempotent_write" }, { "union": [108, 109] }, { "union": [169, 170] }, { "literal": "parallel" }, { "literal": "serial_per_run" }, { "union": [67, 172] }, { "object": { "modelProvider": { "type": 173, "optional": true }, "derived": { "type": 175, "optional": true }, "tools": { "type": 182, "optional": false }, "contextProviders": { "type": 184, "optional": false }, "hooks": { "type": 186, "optional": false } } }, { "union": [67, 174] }, { "object": { "profileRef": { "type": 2, "optional": false }, "providerId": { "type": 2, "optional": false }, "revision": { "type": 2, "optional": false }, "compatibilityKey": { "type": 96, "optional": true } } }, { "union": [67, 176] }, { "array": 177 }, { "object": { "role": { "type": 178, "optional": false }, "agentSessionId": { "type": 180, "optional": true }, "bindings": { "type": 181, "optional": false }, "toolSnapshot": { "type": 144, "optional": true } } }, { "union": [43, 179] }, { "literal": "search" }, { "union": [67, 57] }, { "object": { "tools": { "type": 182, "optional": false }, "contextProviders": { "type": 184, "optional": false }, "hooks": { "type": 186, "optional": false } } }, { "array": 183 }, { "object": { "name": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "source": { "type": 153, "optional": false }, "scopeKey": { "type": 96, "optional": true }, "definitionDigest": { "type": 96, "optional": true } } }, { "array": 185 }, { "object": { "id": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "scopeKey": { "type": 96, "optional": true } } }, { "array": 187 }, { "object": { "id": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "scopeKey": { "type": 96, "optional": true } } }, { "object": { "maxModelAttempts": { "type": 17, "optional": false }, "maxToolCalls": { "type": 17, "optional": false }, "maxSteps": { "type": 17, "optional": false }, "maxTotalTokens": { "type": 17, "optional": false }, "subagentMaxModelAttempts": { "type": 106, "optional": true }, "wallTimeMs": { "type": 106, "optional": true }, "subagentWallTimeMs": { "type": 106, "optional": true }, "modelTimeoutMs": { "type": 17, "optional": false }, "streamIdleTimeoutMs": { "type": 106, "optional": true }, "requestTotalTimeoutMs": { "type": 106, "optional": true }, "toolTimeoutMs": { "type": 17, "optional": false }, "shellTimeoutMs": { "type": 106, "optional": true }, "maxParallelTools": { "type": 17, "optional": false } } }, { "object": { "modelMaxAttemptsPerCall": { "type": 17, "optional": false }, "toolMaxAttemptsPerCall": { "type": 17, "optional": false }, "baseDelayMs": { "type": 17, "optional": false }, "maxDelayMs": { "type": 17, "optional": false } } }, { "object": { "storage": { "type": 191, "optional": false }, "reasoning": { "type": 192, "optional": true }, "parallelToolCalls": { "type": 107, "optional": true }, "metadata": { "type": 194, "optional": true }, "extensionOptions": { "type": 196, "optional": true } } }, { "literal": "local_stateless" }, { "union": [67, 193] }, { "object": { "effort": { "type": 96, "optional": true }, "summary": { "type": 96, "optional": true }, "context": { "type": 96, "optional": true } } }, { "union": [67, 195] }, { "object": {}, "index": 2 }, { "union": [67, 197] }, { "object": {}, "index": 149 }, { "union": [67, 199] }, { "object": { "enabled": { "type": 107, "optional": true }, "maxTurns": { "type": 106, "optional": true } } }, { "union": [67, 201] }, { "object": { "sourceRunId": { "type": 70, "optional": false }, "originalInputId": { "type": 88, "optional": false }, "summary": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 203, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 204, "optional": false } } }, { "literal": "run.team.planned" }, { "object": { "plannerAgentSessionId": { "type": 57, "optional": false }, "decision": { "type": 205, "optional": false }, "reason": { "type": 2, "optional": false }, "summary": { "type": 96, "optional": true }, "fallback": { "type": 107, "optional": true }, "evidence": { "type": 135, "optional": true }, "executionSteps": { "type": 135, "optional": true }, "verificationCriteria": { "type": 135, "optional": true }, "team": { "type": 98, "optional": true } } }, { "union": [206, 207] }, { "literal": "single" }, { "literal": "team" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 209, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 210, "optional": false } } }, { "literal": "run.team.member.stop_requested" }, { "object": { "memberId": { "type": 2, "optional": false }, "turnId": { "type": 211, "optional": false }, "requesterAgentSessionId": { "type": 57, "optional": false }, "requestedBy": { "type": 42, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 213, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 214, "optional": false } } }, { "literal": "run.team.message.sent" }, { "object": { "messageId": { "type": 2, "optional": false }, "from": { "type": 2, "optional": false }, "to": { "type": 2, "optional": false }, "text": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 216, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 217, "optional": false } } }, { "literal": "run.team.message.read" }, { "object": { "messageId": { "type": 2, "optional": false }, "memberId": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 219, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 220, "optional": false } } }, { "literal": "run.search.started" }, { "object": { "searchId": { "type": 2, "optional": false }, "trigger": { "type": 124, "optional": false }, "anchorAgentSessionId": { "type": 57, "optional": false }, "goal": { "type": 2, "optional": false }, "isolation": { "type": 221, "optional": false }, "maxRollouts": { "type": 17, "optional": false }, "branchFactor": { "type": 17, "optional": false }, "maxDepth": { "type": 17, "optional": false }, "concurrency": { "type": 17, "optional": false } } }, { "union": [104, 130] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 223, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 224, "optional": false } } }, { "literal": "run.search.branch.created" }, { "object": { "searchId": { "type": 2, "optional": false }, "branchId": { "type": 2, "optional": false }, "parentBranchId": { "type": 225, "optional": false }, "depth": { "type": 17, "optional": false }, "mode": { "type": 226, "optional": false }, "hypothesis": { "type": 2, "optional": false }, "strategy": { "type": 2, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "workspaceKind": { "type": 229, "optional": false }, "degradedToReadonly": { "type": 107, "optional": true } } }, { "union": [27, 2] }, { "union": [227, 228] }, { "literal": "wider" }, { "literal": "deeper" }, { "union": [230, 231, 232] }, { "literal": "shared_readonly" }, { "literal": "git_worktree" }, { "literal": "shallow_copy" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 234, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 235, "optional": false } } }, { "literal": "run.search.branch.evaluated" }, { "object": { "searchId": { "type": 2, "optional": false }, "branchId": { "type": 2, "optional": false }, "hardScore": { "type": 106, "optional": true }, "softScore": { "type": 17, "optional": false }, "combinedScore": { "type": 17, "optional": false }, "verdict": { "type": 236, "optional": false }, "summary": { "type": 2, "optional": false }, "reflection": { "type": 96, "optional": true } } }, { "union": [237, 238, 239] }, { "literal": "solved" }, { "literal": "promising" }, { "literal": "pruned" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 241, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 242, "optional": false } } }, { "literal": "run.search.converged" }, { "object": { "searchId": { "type": 2, "optional": false }, "winnerBranchId": { "type": 225, "optional": false }, "outcome": { "type": 243, "optional": false }, "winnerSummary": { "type": 2, "optional": false }, "mergedReflections": { "type": 136, "optional": false }, "mergedFiles": { "type": 135, "optional": true } } }, { "union": [237, 244, 245] }, { "literal": "best_candidate" }, { "literal": "exhausted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 247, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 248, "optional": false } } }, { "literal": "run.started" }, { "object": { "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 250, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 251, "optional": false } } }, { "literal": "run.paused" }, { "object": { "reason": { "type": 252, "optional": false }, "blockedTurnId": { "type": 211, "optional": false } } }, { "union": [253, 254, 255] }, { "literal": "approval" }, { "literal": "tool_outcome_unknown" }, { "literal": "recovery_review" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 257, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 258, "optional": false } } }, { "literal": "run.resumed" }, { "object": { "reason": { "type": 259, "optional": false } } }, { "union": [5, 8, 253, 260] }, { "literal": "reconciled" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 262, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 263, "optional": false } } }, { "literal": "run.plugin.availability" }, { "object": { "block": { "type": 264, "optional": false } } }, { "union": [27, 265] }, { "object": { "code": { "type": 266, "optional": false }, "message": { "type": 2, "optional": false } } }, { "literal": "PLUGIN_VERSION_UNAVAILABLE" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 268, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 269, "optional": false } } }, { "literal": "run.cancel_requested" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 271, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 272, "optional": false } } }, { "literal": "run.completed" }, { "object": { "resultMessageId": { "type": 88, "optional": false }, "usage": { "type": 273, "optional": false } } }, { "object": { "inputTokens": { "type": 17, "optional": false }, "outputTokens": { "type": 17, "optional": false }, "cachedInputTokens": { "type": 106, "optional": true }, "reasoningTokens": { "type": 106, "optional": true }, "accuracy": { "type": 274, "optional": false } } }, { "union": [275, 276] }, { "literal": "reported" }, { "literal": "estimated" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 278, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 279, "optional": false } } }, { "literal": "run.failed" }, { "object": { "error": { "type": 280, "optional": false }, "usage": { "type": 273, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 167, "optional": false }, "budget": { "type": 281, "optional": true }, "checkpoint": { "type": 200, "optional": true } } }, { "union": [67, 282] }, { "object": { "resource": { "type": 283, "optional": false }, "used": { "type": 17, "optional": false }, "max": { "type": 17, "optional": false }, "required": { "type": 106, "optional": true }, "unknownUsageTokens": { "type": 106, "optional": true }, "triggeredByUnknownUsage": { "type": 107, "optional": true } } }, { "union": [284, 285, 286, 287, 288, 289, 290] }, { "literal": "modelAttempts" }, { "literal": "toolCalls" }, { "literal": "steps" }, { "literal": "tokens" }, { "literal": "context" }, { "literal": "timeMs" }, { "literal": "modelOutput" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 292, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 293, "optional": false } } }, { "literal": "run.cancelled" }, { "object": { "reason": { "type": 2, "optional": false }, "unresolvedCallIds": { "type": 294, "optional": false } } }, { "array": 295 }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 297, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 299, "optional": false } } }, { "literal": "turn.queued" }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 70, "optional": false } } }, { "object": { "turnId": { "type": 211, "optional": false }, "ordinal": { "type": 17, "optional": false }, "inputMessageId": { "type": 88, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 301, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 302, "optional": false } } }, { "literal": "turn.started" }, { "object": { "turnId": { "type": 211, "optional": false }, "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 304, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 305, "optional": false } } }, { "literal": "turn.paused" }, { "object": { "turnId": { "type": 211, "optional": false }, "reason": { "type": 252, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 307, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 308, "optional": false } } }, { "literal": "turn.resumed" }, { "object": { "turnId": { "type": 211, "optional": false }, "reason": { "type": 2, "optional": false }, "deadlineAt": { "type": 96, "optional": true } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 310, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 311, "optional": false } } }, { "literal": "turn.completed" }, { "object": { "turnId": { "type": 211, "optional": false }, "finalMessageId": { "type": 88, "optional": false }, "usage": { "type": 273, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 313, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 314, "optional": false } } }, { "literal": "turn.failed" }, { "object": { "turnId": { "type": 211, "optional": false }, "error": { "type": 280, "optional": false }, "usage": { "type": 273, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 316, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 317, "optional": false } } }, { "literal": "turn.interrupted" }, { "object": { "turnId": { "type": 211, "optional": false }, "stoppedByMain": { "type": 318, "optional": true }, "reason": { "type": 319, "optional": false }, "usage": { "type": 273, "optional": false }, "unresolvedCallIds": { "type": 294, "optional": false }, "budget": { "type": 281, "optional": true } } }, { "union": [67, 109] }, { "union": [320, 321, 322] }, { "literal": "cancelled" }, { "literal": "timeout" }, { "literal": "limit" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 324, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 325, "optional": false } } }, { "literal": "step.started" }, { "object": { "step": { "type": 326, "optional": false } } }, { "object": { "id": { "type": 327, "optional": false }, "turnId": { "type": 211, "optional": false }, "ordinal": { "type": 17, "optional": false }, "kind": { "type": 328, "optional": false }, "status": { "type": 331, "optional": false } } }, { "kind": "string" }, { "union": [6, 329, 330] }, { "literal": "model" }, { "literal": "tool" }, { "union": [332, 333, 334, 335] }, { "literal": "completed" }, { "literal": "failed" }, { "literal": "running" }, { "literal": "interrupted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 337, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 338, "optional": false } } }, { "literal": "step.completed" }, { "object": { "stepId": { "type": 327, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 340, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 341, "optional": false } } }, { "literal": "step.failed" }, { "object": { "stepId": { "type": 327, "optional": false }, "error": { "type": 280, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 343, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 344, "optional": false } } }, { "literal": "step.interrupted" }, { "object": { "stepId": { "type": 327, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 346, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 347, "optional": false } } }, { "literal": "message.user.added" }, { "object": { "message": { "type": 348, "optional": false }, "steering": { "type": 318, "optional": true }, "steeringSource": { "type": 358, "optional": true } } }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 349, "optional": false }, "id": { "type": 88, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 211, "optional": false } } }, { "array": 350 }, { "union": [351, 353, 356] }, { "object": { "type": { "type": 352, "optional": false }, "text": { "type": 2, "optional": false } } }, { "literal": "text" }, { "object": { "type": { "type": 354, "optional": false }, "artifact": { "type": 355, "optional": false }, "alt": { "type": 96, "optional": true } } }, { "literal": "image" }, { "object": { "artifactId": { "type": 2, "optional": false }, "sha256": { "type": 2, "optional": false }, "mediaType": { "type": 2, "optional": false }, "byteLength": { "type": 17, "optional": false } } }, { "object": { "type": { "type": 357, "optional": false }, "artifact": { "type": 355, "optional": false }, "name": { "type": 2, "optional": false } } }, { "literal": "file" }, { "union": [67, 42] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 360, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 361, "optional": false } } }, { "literal": "message.assistant.added" }, { "object": { "message": { "type": 362, "optional": false }, "requestId": { "type": 372, "optional": false } } }, { "object": { "role": { "type": 363, "optional": false }, "content": { "type": 349, "optional": false }, "toolCalls": { "type": 364, "optional": false }, "structuredOutput": { "type": 371, "optional": true }, "id": { "type": 88, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 211, "optional": false } } }, { "literal": "assistant" }, { "array": 365 }, { "object": { "id": { "type": 295, "optional": false }, "assistantMessageId": { "type": 88, "optional": false }, "providerCallId": { "type": 2, "optional": false }, "callIndex": { "type": 17, "optional": false }, "toolName": { "type": 2, "optional": false }, "toolVersion": { "type": 2, "optional": false }, "arguments": { "type": 366, "optional": false } } }, { "union": [367, 369] }, { "object": { "kind": { "type": 368, "optional": false }, "value": { "type": 149, "optional": false } } }, { "literal": "json" }, { "object": { "kind": { "type": 370, "optional": false }, "raw": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "invalid" }, { "union": [67, 27, 2, 17, 108, 109, 150, 151] }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 374, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 375, "optional": false } } }, { "literal": "model.requested" }, { "object": { "stepId": { "type": 327, "optional": false }, "request": { "type": 376, "optional": false } } }, { "object": { "id": { "type": 372, "optional": false }, "callGroupId": { "type": 2, "optional": false }, "attempt": { "type": 17, "optional": false }, "retryOf": { "type": 377, "optional": true }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 211, "optional": false }, "model": { "type": 141, "optional": false }, "binding": { "type": 143, "optional": false }, "responses": { "type": 378, "optional": false }, "responsesOptions": { "type": 190, "optional": false }, "output": { "type": 398, "optional": false }, "maxOutputTokens": { "type": 17, "optional": false }, "budget": { "type": 401, "optional": false }, "temperature": { "type": 106, "optional": true }, "context": { "type": 405, "optional": false } } }, { "union": [67, 372] }, { "object": { "version": { "type": 23, "optional": false }, "binding": { "type": 143, "optional": false }, "epochId": { "type": 2, "optional": false }, "decision": { "type": 379, "optional": false }, "initialSystemPrompt": { "type": 96, "optional": true }, "initialBackground": { "type": 391, "optional": true }, "prunedToolResults": { "type": 107, "optional": true }, "fullInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "backgroundDigest": { "type": 96, "optional": true }, "replaySources": { "type": 394, "optional": false }, "transport": { "type": 396, "optional": false } } }, { "union": [380, 382, 384] }, { "object": { "kind": { "type": 381, "optional": false } } }, { "literal": "new" }, { "object": { "kind": { "type": 383, "optional": false }, "previousResponseEventId": { "type": 21, "optional": false } } }, { "literal": "append" }, { "object": { "kind": { "type": 385, "optional": false }, "atTurnId": { "type": 211, "optional": false }, "reason": { "type": 386, "optional": false } } }, { "literal": "reset" }, { "union": [387, 388, 389, 390] }, { "literal": "history_trimmed" }, { "literal": "compacted" }, { "literal": "prefix_changed" }, { "literal": "binding_changed" }, { "union": [67, 392] }, { "array": 393 }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 349, "optional": false }, "sourceBackgroundId": { "type": 2, "optional": false } } }, { "array": 395 }, { "object": { "responseEventId": { "type": 21, "optional": false }, "outputDigest": { "type": 2, "optional": false }, "inputStart": { "type": 17, "optional": false }, "inputCount": { "type": 17, "optional": false }, "removedOutputOnlyPaths": { "type": 136, "optional": false } } }, { "object": { "kind": { "type": 397, "optional": false } } }, { "literal": "local_replay" }, { "union": [399, 400] }, { "object": { "kind": { "type": 352, "optional": false } } }, { "object": { "kind": { "type": 368, "optional": false }, "schema": { "type": 148, "optional": false }, "name": { "type": 2, "optional": false } } }, { "object": { "estimatedInputTokens": { "type": 17, "optional": false }, "reservedTotalTokens": { "type": 17, "optional": false }, "accuracy": { "type": 402, "optional": false } } }, { "union": [403, 404] }, { "literal": "tokenizer" }, { "literal": "conservative_estimate" }, { "object": { "surfaceSeq": { "type": 17, "optional": false }, "selectedMessageIds": { "type": 406, "optional": false }, "assemblyHash": { "type": 2, "optional": false }, "providerVersions": { "type": 195, "optional": false } } }, { "array": 88 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 408, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 409, "optional": false } } }, { "literal": "model.responded" }, { "object": { "stepId": { "type": 327, "optional": false }, "response": { "type": 410, "optional": false }, "reasoningSummary": { "type": 96, "optional": true } } }, { "object": { "requestId": { "type": 372, "optional": false }, "providerResponseId": { "type": 2, "optional": false }, "content": { "type": 349, "optional": false }, "toolCalls": { "type": 411, "optional": false }, "structuredOutput": { "type": 371, "optional": true }, "continuation": { "type": 413, "optional": false }, "turnDisposition": { "type": 439, "optional": false }, "finishReason": { "type": 443, "optional": false }, "usage": { "type": 273, "optional": false } } }, { "array": 412 }, { "object": { "outputIndex": { "type": 17, "optional": false }, "providerCallId": { "type": 2, "optional": false }, "toolName": { "type": 2, "optional": false }, "arguments": { "type": 366, "optional": false } } }, { "object": { "version": { "type": 23, "optional": false }, "protocol": { "type": 414, "optional": false }, "binding": { "type": 143, "optional": false }, "epochId": { "type": 2, "optional": false }, "responseId": { "type": 2, "optional": false }, "sourceRequestId": { "type": 372, "optional": false }, "requestInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "outputItems": { "type": 419, "optional": false }, "outputDigest": { "type": 2, "optional": false }, "providerMetadata": { "type": 197, "optional": false }, "capture": { "type": 434, "optional": false } } }, { "union": [415, 416, 417, 418] }, { "literal": "openai-responses" }, { "literal": "openai-chat" }, { "literal": "anthropic" }, { "literal": "gemini" }, { "array": 420 }, { "union": [421, 426, 429, 432] }, { "object": { "kind": { "type": 422, "optional": false }, "value": { "type": 423, "optional": false } } }, { "literal": "message" }, { "object": { "type": { "type": 422, "optional": false }, "role": { "type": 363, "optional": false }, "id": { "type": 2, "optional": false }, "content": { "type": 424, "optional": false }, "phase": { "type": 425, "optional": true } }, "index": 149 }, { "array": 197 }, { "union": [67, 27, 2] }, { "object": { "kind": { "type": 427, "optional": false }, "value": { "type": 428, "optional": false } } }, { "literal": "reasoning" }, { "object": { "type": { "type": 427, "optional": false }, "id": { "type": 2, "optional": false }, "summary": { "type": 424, "optional": false }, "encrypted_content": { "type": 425, "optional": true } }, "index": 149 }, { "object": { "kind": { "type": 430, "optional": false }, "value": { "type": 431, "optional": false } } }, { "literal": "function_call" }, { "object": { "type": { "type": 430, "optional": false }, "id": { "type": 2, "optional": false }, "call_id": { "type": 2, "optional": false }, "name": { "type": 2, "optional": false }, "arguments": { "type": 2, "optional": false } }, "index": 149 }, { "object": { "kind": { "type": 433, "optional": false }, "codecId": { "type": 2, "optional": false }, "codecVersion": { "type": 17, "optional": false }, "value": { "type": 197, "optional": false } } }, { "literal": "extension" }, { "object": { "source": { "type": 435, "optional": false }, "complete": { "type": 109, "optional": false } } }, { "union": [436, 437, 438] }, { "literal": "wire_json" }, { "literal": "wire_sse" }, { "literal": "sdk" }, { "union": [440, 441, 442] }, { "literal": "final" }, { "literal": "tool_calls" }, { "literal": "continue" }, { "union": [441, 444, 445, 446] }, { "literal": "stop" }, { "literal": "length" }, { "literal": "content_filter" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 448, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 449, "optional": false } } }, { "literal": "model.failed" }, { "object": { "stepId": { "type": 327, "optional": false }, "requestId": { "type": 372, "optional": false }, "error": { "type": 450, "optional": false }, "chargedUsage": { "type": 468, "optional": true }, "reasoningSummary": { "type": 96, "optional": true }, "retryAt": { "type": 96, "optional": true } } }, { "object": { "code": { "type": 451, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 167, "optional": false }, "retryAfterMs": { "type": 106, "optional": true }, "providerCode": { "type": 96, "optional": true }, "outcomeUnknown": { "type": 167, "optional": false }, "usage": { "type": 468, "optional": true }, "details": { "type": 469, "optional": true } } }, { "union": [320, 321, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467] }, { "literal": "auth" }, { "literal": "rate_limit" }, { "literal": "transport" }, { "literal": "context_overflow" }, { "literal": "invalid_request" }, { "literal": "unsupported_capability" }, { "literal": "invalid_output" }, { "literal": "protocol" }, { "literal": "provider_internal" }, { "literal": "response_not_committed" }, { "literal": "steered" }, { "literal": "continuation_unavailable" }, { "literal": "continuation_mismatch" }, { "literal": "unsupported_item" }, { "literal": "native_capture_incomplete" }, { "literal": "profile_mismatch" }, { "union": [67, 273] }, { "union": [67, 470] }, { "object": { "phase": { "type": 471, "optional": false }, "elapsedMs": { "type": 17, "optional": false }, "timeoutKind": { "type": 475, "optional": true }, "underlyingCode": { "type": 96, "optional": true }, "causes": { "type": 479, "optional": true } } }, { "union": [472, 473, 474] }, { "literal": "awaiting_headers" }, { "literal": "awaiting_first_frame" }, { "literal": "stream_idle" }, { "union": [67, 476, 477, 478] }, { "literal": "idle" }, { "literal": "total" }, { "literal": "deadline" }, { "union": [67, 480] }, { "array": 481 }, { "object": { "code": { "type": 96, "optional": true }, "message": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 483, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 484, "optional": false } } }, { "literal": "tool.call.requested" }, { "object": { "turnId": { "type": 211, "optional": false }, "call": { "type": 365, "optional": false }, "executionKey": { "type": 2, "optional": false }, "policyVersion": { "type": 2, "optional": false }, "definition": { "type": 485, "optional": false } } }, { "union": [27, 147] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 487, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 488, "optional": false } } }, { "literal": "tool.call.rejected" }, { "object": { "toolCallId": { "type": 295, "optional": false }, "error": { "type": 489, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 167, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 491, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 492, "optional": false } } }, { "literal": "tool.approval.requested" }, { "object": { "request": { "type": 493, "optional": false } } }, { "object": { "approvalId": { "type": 494, "optional": false }, "toolCallId": { "type": 295, "optional": false }, "argumentsHash": { "type": 2, "optional": false }, "toolVersion": { "type": 2, "optional": false }, "policyVersion": { "type": 2, "optional": false }, "resources": { "type": 136, "optional": false }, "reason": { "type": 2, "optional": false }, "expiresAt": { "type": 2, "optional": false } } }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 496, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 497, "optional": false } } }, { "literal": "tool.approval.resolved" }, { "object": { "decision": { "type": 498, "optional": false }, "deferResume": { "type": 318, "optional": true } } }, { "object": { "approvalId": { "type": 494, "optional": false }, "toolCallId": { "type": 295, "optional": false }, "approved": { "type": 167, "optional": false }, "decidedBy": { "type": 2, "optional": false }, "decidedAt": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 500, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 501, "optional": false } } }, { "literal": "tool.call.started" }, { "object": { "attempt": { "type": 502, "optional": false } } }, { "object": { "id": { "type": 503, "optional": false }, "toolCallId": { "type": 295, "optional": false }, "stepId": { "type": 327, "optional": false }, "number": { "type": 17, "optional": false }, "executionKey": { "type": 2, "optional": false }, "executorInstanceId": { "type": 2, "optional": false }, "hostEpoch": { "type": 17, "optional": false }, "startedAt": { "type": 2, "optional": false } } }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 505, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 506, "optional": false } } }, { "literal": "tool.call.completed" }, { "object": { "attemptId": { "type": 503, "optional": false }, "result": { "type": 507, "optional": false } } }, { "object": { "toolCallId": { "type": 295, "optional": false }, "outcome": { "type": 508, "optional": false }, "effect": { "type": 515, "optional": false }, "evidenceRef": { "type": 96, "optional": true } } }, { "union": [509, 511] }, { "object": { "status": { "type": 510, "optional": false }, "content": { "type": 349, "optional": false }, "data": { "type": 371, "optional": true } } }, { "literal": "success" }, { "object": { "status": { "type": 512, "optional": false }, "error": { "type": 489, "optional": false }, "data": { "type": 371, "optional": true } } }, { "union": [320, 513, 514] }, { "literal": "error" }, { "literal": "denied" }, { "union": [516, 517, 518] }, { "literal": "none" }, { "literal": "applied" }, { "literal": "unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 520, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 521, "optional": false } } }, { "literal": "tool.call.failed" }, { "object": { "attemptId": { "type": 503, "optional": false }, "toolCallId": { "type": 295, "optional": false }, "error": { "type": 489, "optional": false }, "effect": { "type": 522, "optional": false }, "retryAt": { "type": 96, "optional": true } } }, { "union": [516, 517] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 524, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 525, "optional": false } } }, { "literal": "tool.call.denied" }, { "object": { "toolCallId": { "type": 295, "optional": false }, "approvalId": { "type": 526, "optional": true }, "reason": { "type": 2, "optional": false } } }, { "union": [67, 494] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 528, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 529, "optional": false } } }, { "literal": "tool.call.outcome_unknown" }, { "object": { "toolCallId": { "type": 295, "optional": false }, "attemptId": { "type": 503, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 531, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 532, "optional": false } } }, { "literal": "tool.call.reconciled" }, { "object": { "toolCallId": { "type": 295, "optional": false }, "attemptId": { "type": 503, "optional": false }, "decision": { "type": 533, "optional": false } } }, { "union": [534, 535, 537] }, { "object": { "kind": { "type": 332, "optional": false }, "result": { "type": 507, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "object": { "kind": { "type": 536, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "literal": "not_applied" }, { "object": { "kind": { "type": 538, "optional": false }, "acceptedBy": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "abandon_unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 540, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 541, "optional": false } } }, { "literal": "tool.call.settled" }, { "object": { "message": { "type": 542, "optional": false } } }, { "object": { "role": { "type": 330, "optional": false }, "result": { "type": 507, "optional": false }, "id": { "type": 88, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 211, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 544, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 545, "optional": false } } }, { "literal": "surface.compacted" }, { "object": { "compaction": { "type": 546, "optional": false } } }, { "object": { "id": { "type": 2, "optional": false }, "expectedSurfaceSeq": { "type": 17, "optional": false }, "replacedMessageIds": { "type": 406, "optional": false }, "replacement": { "type": 348, "optional": false }, "sourceDigest": { "type": 2, "optional": false }, "summaryModelRef": { "type": 96, "optional": true }, "boundary": { "type": 547, "optional": true } } }, { "union": [67, 548, 549] }, { "literal": "turn" }, { "literal": "step_prefix" }, { "union": [551, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 22, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 28, "optional": false } } }, { "kind": "string" }, { "object": { "actor": { "type": 3, "optional": false }, "correlationId": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "commandId": { "type": 1, "optional": false }, "commandHash": { "type": 2, "optional": false }, "commandEventIndex": { "type": 17, "optional": false }, "commandEventCount": { "type": 17, "optional": false }, "traceparent": { "type": 96, "optional": true }, "links": { "type": 554, "optional": true } } }, { "union": [67, 555] }, { "array": 21 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 34, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 35, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 37, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 38, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 48, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 51, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 54, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 55, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 61, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 62, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 64, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 71, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 78, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 79, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 85, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 87, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 92, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 93, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 203, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 204, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 209, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 210, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 213, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 214, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 216, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 217, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 219, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 220, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 223, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 224, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 234, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 235, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 241, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 242, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 247, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 248, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 250, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 251, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 257, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 258, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 262, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 263, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 268, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 269, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 271, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 272, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 278, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 279, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 292, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 293, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 297, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 299, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 301, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 302, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 304, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 305, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 307, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 308, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 310, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 311, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 313, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 314, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 316, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 317, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 324, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 325, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 337, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 338, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 340, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 341, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 343, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 344, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 346, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 347, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 360, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 361, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 374, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 375, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 408, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 409, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 448, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 449, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 483, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 484, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 487, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 488, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 491, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 492, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 496, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 497, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 500, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 501, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 505, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 506, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 520, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 521, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 524, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 525, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 528, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 529, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 531, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 532, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 540, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 298, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 541, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 544, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 552, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 553, "optional": false }, "payload": { "type": 545, "optional": false } } }];
|
|
3
|
-
export const roots = { "CommitRequest": 0, "V1RuntimeEvent":
|
|
2
|
+
export const schemas = [{ "object": { "commandId": { "type": 1, "optional": false }, "commandHash": { "type": 2, "optional": false }, "correlationId": { "type": 2, "optional": false }, "actor": { "type": 3, "optional": false }, "expected": { "type": 9, "optional": false }, "events": { "type": 18, "optional": false }, "hostEpoch": { "type": 17, "optional": false } } }, { "kind": "string" }, { "kind": "string" }, { "object": { "kind": { "type": 4, "optional": false }, "id": { "type": 2, "optional": false } } }, { "union": [5, 6, 7, 8] }, { "literal": "user" }, { "literal": "runtime" }, { "literal": "agent" }, { "literal": "recovery" }, { "array": 10 }, { "object": { "stream": { "type": 11, "optional": false }, "lastSeq": { "type": 17, "optional": false } } }, { "object": { "kind": { "type": 12, "optional": false }, "id": { "type": 2, "optional": false } } }, { "union": [13, 14, 15, 16] }, { "literal": "workspace" }, { "literal": "session" }, { "literal": "run" }, { "literal": "agent_session" }, { "kind": "number" }, { "array": 19 }, { "union": [20, 33, 36, 47, 55, 62, 65, 68, 81, 88, 95, 205, 211, 215, 218, 221, 225, 236, 243, 249, 252, 259, 264, 270, 273, 280, 294, 299, 303, 306, 309, 312, 315, 318, 326, 339, 342, 345, 348, 362, 376, 410, 450, 485, 489, 493, 498, 502, 507, 522, 526, 530, 533, 542, 546] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 22, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 28, "optional": false } } }, { "kind": "string" }, { "literal": "workspace.created" }, { "literal": 1 }, { "object": { "kind": { "type": 13, "optional": false }, "workspaceId": { "type": 25, "optional": false } } }, { "kind": "string" }, { "union": [27, 21] }, { "literal": null }, { "object": { "workspace": { "type": 29, "optional": false } } }, { "object": { "id": { "type": 25, "optional": false }, "rootUri": { "type": 2, "optional": false }, "status": { "type": 30, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "union": [31, 32] }, { "literal": "open" }, { "literal": "archived" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 34, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 35, "optional": false } } }, { "literal": "workspace.archived" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 37, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 38, "optional": false } } }, { "literal": "agent.created" }, { "object": { "agent": { "type": 39, "optional": false } } }, { "object": { "id": { "type": 40, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "role": { "type": 41, "optional": false }, "defaultScope": { "type": 45, "optional": false }, "modeRef": { "type": 2, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "kind": "string" }, { "union": [42, 43, 44] }, { "literal": "main" }, { "literal": "worker" }, { "literal": "specialist" }, { "union": [14, 15, 46] }, { "literal": "project" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 48, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 51, "optional": false } } }, { "literal": "session.created" }, { "object": { "kind": { "type": 14, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "sessionId": { "type": 50, "optional": false } } }, { "kind": "string" }, { "object": { "session": { "type": 52, "optional": false } } }, { "object": { "id": { "type": 50, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "title": { "type": 2, "optional": false }, "status": { "type": 30, "optional": false }, "createdAt": { "type": 2, "optional": false }, "modeRef": { "type": 53, "optional": true } } }, { "union": [54, 2] }, { "kind": "undefined" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 56, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 57, "optional": false } } }, { "literal": "session.agent.bound" }, { "object": { "binding": { "type": 58, "optional": false } } }, { "object": { "sessionId": { "type": 50, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "role": { "type": 60, "optional": false } } }, { "kind": "string" }, { "union": [42, 61] }, { "literal": "participant" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 63, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 64, "optional": false } } }, { "literal": "session.archived" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 66, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 67, "optional": false } } }, { "literal": "session.mode.selected" }, { "object": { "modeRef": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 69, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 75, "optional": false } } }, { "literal": "agent_session.created" }, { "union": [71, 72, 73] }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "sessionId": { "type": 54, "optional": true }, "runId": { "type": 54, "optional": true } } }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 54, "optional": true } } }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 74, "optional": false } } }, { "kind": "string" }, { "object": { "agentSession": { "type": 76, "optional": false } } }, { "object": { "id": { "type": 59, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "owner": { "type": 77, "optional": false }, "status": { "type": 30, "optional": false }, "createdAt": { "type": 2, "optional": false } } }, { "union": [78, 79, 80] }, { "object": { "scope": { "type": 15, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 74, "optional": false } } }, { "object": { "scope": { "type": 14, "optional": false }, "sessionId": { "type": 50, "optional": false } } }, { "object": { "scope": { "type": 46, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 82, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 83, "optional": false } } }, { "literal": "agent_session.archived" }, { "object": { "reason": { "type": 84, "optional": false } } }, { "union": [85, 86, 87] }, { "literal": "run_ended" }, { "literal": "session_archived" }, { "literal": "explicit" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 89, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 91, "optional": false } } }, { "literal": "run.created" }, { "object": { "kind": { "type": 15, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 74, "optional": false } } }, { "object": { "runId": { "type": 74, "optional": false }, "inputMessageId": { "type": 92, "optional": false }, "workingDirectoryUri": { "type": 2, "optional": false }, "submissionIdentityVersion": { "type": 93, "optional": true } } }, { "kind": "string" }, { "union": [54, 94] }, { "literal": 2 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 96, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 97, "optional": false } } }, { "literal": "run.agent.attached" }, { "object": { "membership": { "type": 98, "optional": false } } }, { "object": { "runId": { "type": 74, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "agentId": { "type": 40, "optional": false }, "role": { "type": 99, "optional": false }, "teamMemberId": { "type": 53, "optional": true }, "searchBranchId": { "type": 53, "optional": true }, "branchWorkingDirectoryUri": { "type": 53, "optional": true }, "config": { "type": 100, "optional": false } } }, { "union": [42, 43] }, { "object": { "modeRef": { "type": 2, "optional": false }, "team": { "type": 101, "optional": true }, "teamMaxDepth": { "type": 109, "optional": true }, "agentDepth": { "type": 109, "optional": true }, "teamAsyncCoordinator": { "type": 110, "optional": true }, "coordinatorPollIntervalMs": { "type": 109, "optional": true }, "workerSoftCheckpointMs": { "type": 109, "optional": true }, "teamMaxActiveDepth1": { "type": 109, "optional": true }, "teamMaxConcurrency": { "type": 109, "optional": true }, "teamHint": { "type": 113, "optional": true }, "planner": { "type": 115, "optional": true }, "contextExtensions": { "type": 134, "optional": true }, "model": { "type": 144, "optional": false }, "providerBinding": { "type": 145, "optional": true }, "toolSnapshot": { "type": 147, "optional": true }, "pluginBindings": { "type": 174, "optional": true }, "policyVersion": { "type": 2, "optional": false }, "toolSetVersion": { "type": 2, "optional": false }, "streamText": { "type": 110, "optional": true }, "workerReasoningEffort": { "type": 53, "optional": true }, "disabledSkills": { "type": 138, "optional": true }, "limits": { "type": 191, "optional": false }, "retry": { "type": 192, "optional": false }, "responses": { "type": 193, "optional": false }, "continuation": { "type": 201, "optional": true }, "search": { "type": 120, "optional": true }, "checkpoint": { "type": 203, "optional": true } } }, { "union": [54, 102] }, { "object": { "members": { "type": 103, "optional": false }, "concurrency": { "type": 109, "optional": true }, "rootId": { "type": 53, "optional": true } } }, { "array": 104 }, { "object": { "id": { "type": 2, "optional": false }, "parent": { "type": 2, "optional": false }, "task": { "type": 2, "optional": false }, "sandboxProfile": { "type": 105, "optional": true }, "workSubpath": { "type": 53, "optional": true } } }, { "union": [54, 106, 107, 108] }, { "literal": "default" }, { "literal": "readonly" }, { "literal": "build" }, { "union": [54, 17] }, { "union": [54, 111, 112] }, { "literal": false }, { "literal": true }, { "union": [54, 114] }, { "object": { "force": { "type": 110, "optional": true }, "concurrency": { "type": 109, "optional": true }, "maxMembers": { "type": 109, "optional": true } } }, { "union": [54, 116] }, { "object": { "mode": { "type": 117, "optional": false }, "maxMembers": { "type": 109, "optional": true }, "concurrency": { "type": 109, "optional": true }, "search": { "type": 120, "optional": true } } }, { "union": [118, 119] }, { "literal": "auto" }, { "literal": "force_team" }, { "union": [54, 121] }, { "object": { "mode": { "type": 122, "optional": false }, "triggers": { "type": 125, "optional": true }, "branchFactor": { "type": 109, "optional": true }, "maxRollouts": { "type": 109, "optional": true }, "maxDepth": { "type": 109, "optional": true }, "concurrency": { "type": 109, "optional": true }, "maxBudgetRatio": { "type": 109, "optional": true }, "maxBranchSteps": { "type": 109, "optional": true }, "isolation": { "type": 132, "optional": true }, "maxCopyBytes": { "type": 109, "optional": true } } }, { "union": [123, 124] }, { "literal": "off" }, { "literal": "selective" }, { "union": [54, 126] }, { "array": 127 }, { "union": [128, 129, 130, 131] }, { "literal": "planning_phase" }, { "literal": "consecutive_failures" }, { "literal": "stagnation" }, { "literal": "model_fork" }, { "union": [54, 107, 133] }, { "literal": "isolated" }, { "union": [54, 135] }, { "object": { "mode": { "type": 136, "optional": true }, "skills": { "type": 140, "optional": false } } }, { "union": [54, 137] }, { "object": { "ref": { "type": 2, "optional": false }, "instructions": { "type": 2, "optional": false }, "allowedTools": { "type": 138, "optional": true }, "deniedTools": { "type": 138, "optional": true } } }, { "union": [54, 139] }, { "array": 2 }, { "array": 141 }, { "object": { "ref": { "type": 2, "optional": false }, "instructions": { "type": 2, "optional": false }, "resources": { "type": 142, "optional": false } } }, { "array": 143 }, { "object": { "path": { "type": 2, "optional": false }, "text": { "type": 2, "optional": false } } }, { "object": { "providerId": { "type": 2, "optional": false }, "modelId": { "type": 2, "optional": false }, "profileRef": { "type": 2, "optional": false } } }, { "union": [54, 146] }, { "object": { "profileId": { "type": 2, "optional": false }, "profileRevision": { "type": 2, "optional": false }, "endpointFingerprint": { "type": 2, "optional": false }, "credentialScopeRef": { "type": 2, "optional": false }, "modelId": { "type": 2, "optional": false }, "codecId": { "type": 2, "optional": false }, "codecVersion": { "type": 17, "optional": false }, "compatibilityKey": { "type": 2, "optional": false }, "capabilityDigest": { "type": 2, "optional": false } } }, { "union": [54, 148] }, { "object": { "version": { "type": 2, "optional": false }, "definitions": { "type": 149, "optional": false } } }, { "array": 150 }, { "object": { "scopeKey": { "type": 53, "optional": true }, "name": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "description": { "type": 2, "optional": false }, "inputSchema": { "type": 151, "optional": false }, "outputSchema": { "type": 155, "optional": true }, "source": { "type": 156, "optional": false }, "effects": { "type": 166, "optional": false }, "supportsIdempotencyKey": { "type": 170, "optional": false }, "supportsReconcile": { "type": 170, "optional": false }, "concurrency": { "type": 171, "optional": false }, "timeoutMs": { "type": 17, "optional": false }, "abortGraceMs": { "type": 109, "optional": true } } }, { "object": {}, "index": 152 }, { "union": [27, 2, 17, 111, 112, 153, 154] }, { "array": 152 }, { "object": {}, "index": 152 }, { "union": [54, 151] }, { "union": [157, 159, 164] }, { "object": { "kind": { "type": 158, "optional": false } } }, { "literal": "builtin" }, { "object": { "kind": { "type": 160, "optional": false }, "sourceId": { "type": 2, "optional": false } } }, { "union": [161, 162, 163] }, { "literal": "custom" }, { "literal": "plugin" }, { "literal": "script" }, { "object": { "kind": { "type": 165, "optional": false }, "serverId": { "type": 2, "optional": false }, "remoteName": { "type": 2, "optional": false } } }, { "literal": "mcp" }, { "union": [167, 168, 169] }, { "literal": "read" }, { "literal": "idempotent_write" }, { "literal": "non_idempotent_write" }, { "union": [111, 112] }, { "union": [172, 173] }, { "literal": "parallel" }, { "literal": "serial_per_run" }, { "union": [54, 175] }, { "object": { "modelProvider": { "type": 176, "optional": true }, "derived": { "type": 178, "optional": true }, "tools": { "type": 185, "optional": false }, "contextProviders": { "type": 187, "optional": false }, "hooks": { "type": 189, "optional": false } } }, { "union": [54, 177] }, { "object": { "profileRef": { "type": 2, "optional": false }, "providerId": { "type": 2, "optional": false }, "revision": { "type": 2, "optional": false }, "compatibilityKey": { "type": 53, "optional": true } } }, { "union": [54, 179] }, { "array": 180 }, { "object": { "role": { "type": 181, "optional": false }, "agentSessionId": { "type": 183, "optional": true }, "bindings": { "type": 184, "optional": false }, "toolSnapshot": { "type": 147, "optional": true } } }, { "union": [43, 182] }, { "literal": "search" }, { "union": [54, 59] }, { "object": { "tools": { "type": 185, "optional": false }, "contextProviders": { "type": 187, "optional": false }, "hooks": { "type": 189, "optional": false } } }, { "array": 186 }, { "object": { "name": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "source": { "type": 156, "optional": false }, "scopeKey": { "type": 53, "optional": true }, "definitionDigest": { "type": 53, "optional": true } } }, { "array": 188 }, { "object": { "id": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "scopeKey": { "type": 53, "optional": true } } }, { "array": 190 }, { "object": { "id": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "scopeKey": { "type": 53, "optional": true } } }, { "object": { "maxModelAttempts": { "type": 17, "optional": false }, "maxToolCalls": { "type": 17, "optional": false }, "maxSteps": { "type": 17, "optional": false }, "maxTotalTokens": { "type": 17, "optional": false }, "subagentMaxModelAttempts": { "type": 109, "optional": true }, "wallTimeMs": { "type": 109, "optional": true }, "subagentWallTimeMs": { "type": 109, "optional": true }, "modelTimeoutMs": { "type": 17, "optional": false }, "streamIdleTimeoutMs": { "type": 109, "optional": true }, "requestTotalTimeoutMs": { "type": 109, "optional": true }, "toolTimeoutMs": { "type": 17, "optional": false }, "shellTimeoutMs": { "type": 109, "optional": true }, "maxParallelTools": { "type": 17, "optional": false } } }, { "object": { "modelMaxAttemptsPerCall": { "type": 17, "optional": false }, "toolMaxAttemptsPerCall": { "type": 17, "optional": false }, "baseDelayMs": { "type": 17, "optional": false }, "maxDelayMs": { "type": 17, "optional": false } } }, { "object": { "storage": { "type": 194, "optional": false }, "reasoning": { "type": 195, "optional": true }, "parallelToolCalls": { "type": 110, "optional": true }, "metadata": { "type": 197, "optional": true }, "extensionOptions": { "type": 199, "optional": true } } }, { "literal": "local_stateless" }, { "union": [54, 196] }, { "object": { "effort": { "type": 53, "optional": true }, "summary": { "type": 53, "optional": true }, "context": { "type": 53, "optional": true } } }, { "union": [54, 198] }, { "object": {}, "index": 2 }, { "union": [54, 200] }, { "object": {}, "index": 152 }, { "union": [54, 202] }, { "object": { "enabled": { "type": 110, "optional": true }, "maxTurns": { "type": 109, "optional": true } } }, { "union": [54, 204] }, { "object": { "sourceRunId": { "type": 74, "optional": false }, "originalInputId": { "type": 92, "optional": false }, "summary": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 206, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 207, "optional": false } } }, { "literal": "run.team.planned" }, { "object": { "plannerAgentSessionId": { "type": 59, "optional": false }, "decision": { "type": 208, "optional": false }, "reason": { "type": 2, "optional": false }, "summary": { "type": 53, "optional": true }, "fallback": { "type": 110, "optional": true }, "evidence": { "type": 138, "optional": true }, "executionSteps": { "type": 138, "optional": true }, "verificationCriteria": { "type": 138, "optional": true }, "team": { "type": 101, "optional": true } } }, { "union": [209, 210] }, { "literal": "single" }, { "literal": "team" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 212, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 213, "optional": false } } }, { "literal": "run.team.member.stop_requested" }, { "object": { "memberId": { "type": 2, "optional": false }, "turnId": { "type": 214, "optional": false }, "requesterAgentSessionId": { "type": 59, "optional": false }, "requestedBy": { "type": 42, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 216, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 217, "optional": false } } }, { "literal": "run.team.message.sent" }, { "object": { "messageId": { "type": 2, "optional": false }, "from": { "type": 2, "optional": false }, "to": { "type": 2, "optional": false }, "text": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 219, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 220, "optional": false } } }, { "literal": "run.team.message.read" }, { "object": { "messageId": { "type": 2, "optional": false }, "memberId": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 222, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 223, "optional": false } } }, { "literal": "run.search.started" }, { "object": { "searchId": { "type": 2, "optional": false }, "trigger": { "type": 127, "optional": false }, "anchorAgentSessionId": { "type": 59, "optional": false }, "goal": { "type": 2, "optional": false }, "isolation": { "type": 224, "optional": false }, "maxRollouts": { "type": 17, "optional": false }, "branchFactor": { "type": 17, "optional": false }, "maxDepth": { "type": 17, "optional": false }, "concurrency": { "type": 17, "optional": false } } }, { "union": [107, 133] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 226, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 227, "optional": false } } }, { "literal": "run.search.branch.created" }, { "object": { "searchId": { "type": 2, "optional": false }, "branchId": { "type": 2, "optional": false }, "parentBranchId": { "type": 228, "optional": false }, "depth": { "type": 17, "optional": false }, "mode": { "type": 229, "optional": false }, "hypothesis": { "type": 2, "optional": false }, "strategy": { "type": 2, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "workspaceKind": { "type": 232, "optional": false }, "degradedToReadonly": { "type": 110, "optional": true } } }, { "union": [27, 2] }, { "union": [230, 231] }, { "literal": "wider" }, { "literal": "deeper" }, { "union": [233, 234, 235] }, { "literal": "shared_readonly" }, { "literal": "git_worktree" }, { "literal": "shallow_copy" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 237, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 238, "optional": false } } }, { "literal": "run.search.branch.evaluated" }, { "object": { "searchId": { "type": 2, "optional": false }, "branchId": { "type": 2, "optional": false }, "hardScore": { "type": 109, "optional": true }, "softScore": { "type": 17, "optional": false }, "combinedScore": { "type": 17, "optional": false }, "verdict": { "type": 239, "optional": false }, "summary": { "type": 2, "optional": false }, "reflection": { "type": 53, "optional": true } } }, { "union": [240, 241, 242] }, { "literal": "solved" }, { "literal": "promising" }, { "literal": "pruned" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 244, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 245, "optional": false } } }, { "literal": "run.search.converged" }, { "object": { "searchId": { "type": 2, "optional": false }, "winnerBranchId": { "type": 228, "optional": false }, "outcome": { "type": 246, "optional": false }, "winnerSummary": { "type": 2, "optional": false }, "mergedReflections": { "type": 139, "optional": false }, "mergedFiles": { "type": 138, "optional": true } } }, { "union": [240, 247, 248] }, { "literal": "best_candidate" }, { "literal": "exhausted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 250, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 251, "optional": false } } }, { "literal": "run.started" }, { "object": { "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 253, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 254, "optional": false } } }, { "literal": "run.paused" }, { "object": { "reason": { "type": 255, "optional": false }, "blockedTurnId": { "type": 214, "optional": false } } }, { "union": [256, 257, 258] }, { "literal": "approval" }, { "literal": "tool_outcome_unknown" }, { "literal": "recovery_review" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 260, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 261, "optional": false } } }, { "literal": "run.resumed" }, { "object": { "reason": { "type": 262, "optional": false } } }, { "union": [5, 8, 256, 263] }, { "literal": "reconciled" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 265, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 266, "optional": false } } }, { "literal": "run.plugin.availability" }, { "object": { "block": { "type": 267, "optional": false } } }, { "union": [27, 268] }, { "object": { "code": { "type": 269, "optional": false }, "message": { "type": 2, "optional": false } } }, { "literal": "PLUGIN_VERSION_UNAVAILABLE" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 271, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 272, "optional": false } } }, { "literal": "run.cancel_requested" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 274, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 275, "optional": false } } }, { "literal": "run.completed" }, { "object": { "resultMessageId": { "type": 92, "optional": false }, "usage": { "type": 276, "optional": false } } }, { "object": { "inputTokens": { "type": 17, "optional": false }, "outputTokens": { "type": 17, "optional": false }, "cachedInputTokens": { "type": 109, "optional": true }, "reasoningTokens": { "type": 109, "optional": true }, "accuracy": { "type": 277, "optional": false } } }, { "union": [278, 279] }, { "literal": "reported" }, { "literal": "estimated" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 281, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 282, "optional": false } } }, { "literal": "run.failed" }, { "object": { "error": { "type": 283, "optional": false }, "usage": { "type": 276, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 170, "optional": false }, "budget": { "type": 284, "optional": true }, "checkpoint": { "type": 203, "optional": true } } }, { "union": [54, 285] }, { "object": { "resource": { "type": 286, "optional": false }, "used": { "type": 17, "optional": false }, "max": { "type": 17, "optional": false }, "required": { "type": 109, "optional": true }, "unknownUsageTokens": { "type": 109, "optional": true }, "triggeredByUnknownUsage": { "type": 110, "optional": true } } }, { "union": [287, 288, 289, 290, 291, 292, 293] }, { "literal": "modelAttempts" }, { "literal": "toolCalls" }, { "literal": "steps" }, { "literal": "tokens" }, { "literal": "context" }, { "literal": "timeMs" }, { "literal": "modelOutput" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 295, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 296, "optional": false } } }, { "literal": "run.cancelled" }, { "object": { "reason": { "type": 2, "optional": false }, "unresolvedCallIds": { "type": 297, "optional": false } } }, { "array": 298 }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 300, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 302, "optional": false } } }, { "literal": "turn.queued" }, { "object": { "kind": { "type": 16, "optional": false }, "workspaceId": { "type": 25, "optional": false }, "agentId": { "type": 40, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "sessionId": { "type": 50, "optional": false }, "runId": { "type": 74, "optional": false } } }, { "object": { "turnId": { "type": 214, "optional": false }, "ordinal": { "type": 17, "optional": false }, "inputMessageId": { "type": 92, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 304, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 305, "optional": false } } }, { "literal": "turn.started" }, { "object": { "turnId": { "type": 214, "optional": false }, "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 307, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 308, "optional": false } } }, { "literal": "turn.paused" }, { "object": { "turnId": { "type": 214, "optional": false }, "reason": { "type": 255, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 310, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 311, "optional": false } } }, { "literal": "turn.resumed" }, { "object": { "turnId": { "type": 214, "optional": false }, "reason": { "type": 2, "optional": false }, "deadlineAt": { "type": 53, "optional": true } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 313, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 314, "optional": false } } }, { "literal": "turn.completed" }, { "object": { "turnId": { "type": 214, "optional": false }, "finalMessageId": { "type": 92, "optional": false }, "usage": { "type": 276, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 316, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 317, "optional": false } } }, { "literal": "turn.failed" }, { "object": { "turnId": { "type": 214, "optional": false }, "error": { "type": 283, "optional": false }, "usage": { "type": 276, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 319, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 320, "optional": false } } }, { "literal": "turn.interrupted" }, { "object": { "turnId": { "type": 214, "optional": false }, "stoppedByMain": { "type": 321, "optional": true }, "reason": { "type": 322, "optional": false }, "usage": { "type": 276, "optional": false }, "unresolvedCallIds": { "type": 297, "optional": false }, "budget": { "type": 284, "optional": true } } }, { "union": [54, 112] }, { "union": [323, 324, 325] }, { "literal": "cancelled" }, { "literal": "timeout" }, { "literal": "limit" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 327, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 328, "optional": false } } }, { "literal": "step.started" }, { "object": { "step": { "type": 329, "optional": false } } }, { "object": { "id": { "type": 330, "optional": false }, "turnId": { "type": 214, "optional": false }, "ordinal": { "type": 17, "optional": false }, "kind": { "type": 331, "optional": false }, "status": { "type": 334, "optional": false } } }, { "kind": "string" }, { "union": [6, 332, 333] }, { "literal": "model" }, { "literal": "tool" }, { "union": [335, 336, 337, 338] }, { "literal": "completed" }, { "literal": "failed" }, { "literal": "running" }, { "literal": "interrupted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 340, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 341, "optional": false } } }, { "literal": "step.completed" }, { "object": { "stepId": { "type": 330, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 343, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 344, "optional": false } } }, { "literal": "step.failed" }, { "object": { "stepId": { "type": 330, "optional": false }, "error": { "type": 283, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 346, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 347, "optional": false } } }, { "literal": "step.interrupted" }, { "object": { "stepId": { "type": 330, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 349, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 350, "optional": false } } }, { "literal": "message.user.added" }, { "object": { "message": { "type": 351, "optional": false }, "steering": { "type": 321, "optional": true }, "steeringSource": { "type": 361, "optional": true } } }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 352, "optional": false }, "id": { "type": 92, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 214, "optional": false } } }, { "array": 353 }, { "union": [354, 356, 359] }, { "object": { "type": { "type": 355, "optional": false }, "text": { "type": 2, "optional": false } } }, { "literal": "text" }, { "object": { "type": { "type": 357, "optional": false }, "artifact": { "type": 358, "optional": false }, "alt": { "type": 53, "optional": true } } }, { "literal": "image" }, { "object": { "artifactId": { "type": 2, "optional": false }, "sha256": { "type": 2, "optional": false }, "mediaType": { "type": 2, "optional": false }, "byteLength": { "type": 17, "optional": false } } }, { "object": { "type": { "type": 360, "optional": false }, "artifact": { "type": 358, "optional": false }, "name": { "type": 2, "optional": false } } }, { "literal": "file" }, { "union": [54, 42] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 363, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 364, "optional": false } } }, { "literal": "message.assistant.added" }, { "object": { "message": { "type": 365, "optional": false }, "requestId": { "type": 375, "optional": false } } }, { "object": { "role": { "type": 366, "optional": false }, "content": { "type": 352, "optional": false }, "toolCalls": { "type": 367, "optional": false }, "structuredOutput": { "type": 374, "optional": true }, "id": { "type": 92, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 214, "optional": false } } }, { "literal": "assistant" }, { "array": 368 }, { "object": { "id": { "type": 298, "optional": false }, "assistantMessageId": { "type": 92, "optional": false }, "providerCallId": { "type": 2, "optional": false }, "callIndex": { "type": 17, "optional": false }, "toolName": { "type": 2, "optional": false }, "toolVersion": { "type": 2, "optional": false }, "arguments": { "type": 369, "optional": false } } }, { "union": [370, 372] }, { "object": { "kind": { "type": 371, "optional": false }, "value": { "type": 152, "optional": false } } }, { "literal": "json" }, { "object": { "kind": { "type": 373, "optional": false }, "raw": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "invalid" }, { "union": [54, 27, 2, 17, 111, 112, 153, 154] }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 377, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 378, "optional": false } } }, { "literal": "model.requested" }, { "object": { "stepId": { "type": 330, "optional": false }, "request": { "type": 379, "optional": false } } }, { "object": { "id": { "type": 375, "optional": false }, "callGroupId": { "type": 2, "optional": false }, "attempt": { "type": 17, "optional": false }, "retryOf": { "type": 380, "optional": true }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 214, "optional": false }, "model": { "type": 144, "optional": false }, "binding": { "type": 146, "optional": false }, "responses": { "type": 381, "optional": false }, "responsesOptions": { "type": 193, "optional": false }, "output": { "type": 401, "optional": false }, "maxOutputTokens": { "type": 17, "optional": false }, "budget": { "type": 404, "optional": false }, "temperature": { "type": 109, "optional": true }, "context": { "type": 408, "optional": false } } }, { "union": [54, 375] }, { "object": { "version": { "type": 23, "optional": false }, "binding": { "type": 146, "optional": false }, "epochId": { "type": 2, "optional": false }, "decision": { "type": 382, "optional": false }, "initialSystemPrompt": { "type": 53, "optional": true }, "initialBackground": { "type": 394, "optional": true }, "prunedToolResults": { "type": 110, "optional": true }, "projectedToolHistory": { "type": 321, "optional": true }, "fullInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "backgroundDigest": { "type": 53, "optional": true }, "replaySources": { "type": 397, "optional": false }, "transport": { "type": 399, "optional": false } } }, { "union": [383, 385, 387] }, { "object": { "kind": { "type": 384, "optional": false } } }, { "literal": "new" }, { "object": { "kind": { "type": 386, "optional": false }, "previousResponseEventId": { "type": 21, "optional": false } } }, { "literal": "append" }, { "object": { "kind": { "type": 388, "optional": false }, "atTurnId": { "type": 214, "optional": false }, "reason": { "type": 389, "optional": false } } }, { "literal": "reset" }, { "union": [390, 391, 392, 393] }, { "literal": "history_trimmed" }, { "literal": "compacted" }, { "literal": "prefix_changed" }, { "literal": "binding_changed" }, { "union": [54, 395] }, { "array": 396 }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 352, "optional": false }, "sourceBackgroundId": { "type": 2, "optional": false } } }, { "array": 398 }, { "object": { "responseEventId": { "type": 21, "optional": false }, "outputDigest": { "type": 2, "optional": false }, "inputStart": { "type": 17, "optional": false }, "inputCount": { "type": 17, "optional": false }, "removedOutputOnlyPaths": { "type": 139, "optional": false } } }, { "object": { "kind": { "type": 400, "optional": false } } }, { "literal": "local_replay" }, { "union": [402, 403] }, { "object": { "kind": { "type": 355, "optional": false } } }, { "object": { "kind": { "type": 371, "optional": false }, "schema": { "type": 151, "optional": false }, "name": { "type": 2, "optional": false } } }, { "object": { "estimatedInputTokens": { "type": 17, "optional": false }, "reservedTotalTokens": { "type": 17, "optional": false }, "accuracy": { "type": 405, "optional": false } } }, { "union": [406, 407] }, { "literal": "tokenizer" }, { "literal": "conservative_estimate" }, { "object": { "surfaceSeq": { "type": 17, "optional": false }, "selectedMessageIds": { "type": 409, "optional": false }, "assemblyHash": { "type": 2, "optional": false }, "providerVersions": { "type": 198, "optional": false } } }, { "array": 92 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 411, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 412, "optional": false } } }, { "literal": "model.responded" }, { "object": { "stepId": { "type": 330, "optional": false }, "response": { "type": 413, "optional": false }, "reasoningSummary": { "type": 53, "optional": true } } }, { "object": { "requestId": { "type": 375, "optional": false }, "providerResponseId": { "type": 2, "optional": false }, "content": { "type": 352, "optional": false }, "toolCalls": { "type": 414, "optional": false }, "structuredOutput": { "type": 374, "optional": true }, "continuation": { "type": 416, "optional": false }, "turnDisposition": { "type": 442, "optional": false }, "finishReason": { "type": 446, "optional": false }, "usage": { "type": 276, "optional": false } } }, { "array": 415 }, { "object": { "outputIndex": { "type": 17, "optional": false }, "providerCallId": { "type": 2, "optional": false }, "toolName": { "type": 2, "optional": false }, "arguments": { "type": 369, "optional": false } } }, { "object": { "version": { "type": 23, "optional": false }, "protocol": { "type": 417, "optional": false }, "binding": { "type": 146, "optional": false }, "epochId": { "type": 2, "optional": false }, "responseId": { "type": 2, "optional": false }, "sourceRequestId": { "type": 375, "optional": false }, "requestInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "outputItems": { "type": 422, "optional": false }, "outputDigest": { "type": 2, "optional": false }, "providerMetadata": { "type": 200, "optional": false }, "capture": { "type": 437, "optional": false } } }, { "union": [418, 419, 420, 421] }, { "literal": "openai-responses" }, { "literal": "openai-chat" }, { "literal": "anthropic" }, { "literal": "gemini" }, { "array": 423 }, { "union": [424, 429, 432, 435] }, { "object": { "kind": { "type": 425, "optional": false }, "value": { "type": 426, "optional": false } } }, { "literal": "message" }, { "object": { "type": { "type": 425, "optional": false }, "role": { "type": 366, "optional": false }, "id": { "type": 2, "optional": false }, "content": { "type": 427, "optional": false }, "phase": { "type": 428, "optional": true } }, "index": 152 }, { "array": 200 }, { "union": [54, 27, 2] }, { "object": { "kind": { "type": 430, "optional": false }, "value": { "type": 431, "optional": false } } }, { "literal": "reasoning" }, { "object": { "type": { "type": 430, "optional": false }, "id": { "type": 2, "optional": false }, "summary": { "type": 427, "optional": false }, "encrypted_content": { "type": 428, "optional": true } }, "index": 152 }, { "object": { "kind": { "type": 433, "optional": false }, "value": { "type": 434, "optional": false } } }, { "literal": "function_call" }, { "object": { "type": { "type": 433, "optional": false }, "id": { "type": 2, "optional": false }, "call_id": { "type": 2, "optional": false }, "name": { "type": 2, "optional": false }, "arguments": { "type": 2, "optional": false } }, "index": 152 }, { "object": { "kind": { "type": 436, "optional": false }, "codecId": { "type": 2, "optional": false }, "codecVersion": { "type": 17, "optional": false }, "value": { "type": 200, "optional": false } } }, { "literal": "extension" }, { "object": { "source": { "type": 438, "optional": false }, "complete": { "type": 112, "optional": false } } }, { "union": [439, 440, 441] }, { "literal": "wire_json" }, { "literal": "wire_sse" }, { "literal": "sdk" }, { "union": [443, 444, 445] }, { "literal": "final" }, { "literal": "tool_calls" }, { "literal": "continue" }, { "union": [444, 447, 448, 449] }, { "literal": "stop" }, { "literal": "length" }, { "literal": "content_filter" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 451, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 452, "optional": false } } }, { "literal": "model.failed" }, { "object": { "stepId": { "type": 330, "optional": false }, "requestId": { "type": 375, "optional": false }, "error": { "type": 453, "optional": false }, "chargedUsage": { "type": 471, "optional": true }, "reasoningSummary": { "type": 53, "optional": true }, "retryAt": { "type": 53, "optional": true } } }, { "object": { "code": { "type": 454, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 170, "optional": false }, "retryAfterMs": { "type": 109, "optional": true }, "providerCode": { "type": 53, "optional": true }, "outcomeUnknown": { "type": 170, "optional": false }, "usage": { "type": 471, "optional": true }, "details": { "type": 472, "optional": true } } }, { "union": [323, 324, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470] }, { "literal": "auth" }, { "literal": "rate_limit" }, { "literal": "transport" }, { "literal": "context_overflow" }, { "literal": "invalid_request" }, { "literal": "unsupported_capability" }, { "literal": "invalid_output" }, { "literal": "protocol" }, { "literal": "provider_internal" }, { "literal": "response_not_committed" }, { "literal": "steered" }, { "literal": "continuation_unavailable" }, { "literal": "continuation_mismatch" }, { "literal": "unsupported_item" }, { "literal": "native_capture_incomplete" }, { "literal": "profile_mismatch" }, { "union": [54, 276] }, { "union": [54, 473] }, { "object": { "phase": { "type": 474, "optional": false }, "elapsedMs": { "type": 17, "optional": false }, "timeoutKind": { "type": 478, "optional": true }, "underlyingCode": { "type": 53, "optional": true }, "causes": { "type": 482, "optional": true } } }, { "union": [475, 476, 477] }, { "literal": "awaiting_headers" }, { "literal": "awaiting_first_frame" }, { "literal": "stream_idle" }, { "union": [54, 479, 480, 481] }, { "literal": "idle" }, { "literal": "total" }, { "literal": "deadline" }, { "union": [54, 483] }, { "array": 484 }, { "object": { "code": { "type": 53, "optional": true }, "message": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 486, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 487, "optional": false } } }, { "literal": "tool.call.requested" }, { "object": { "turnId": { "type": 214, "optional": false }, "call": { "type": 368, "optional": false }, "executionKey": { "type": 2, "optional": false }, "policyVersion": { "type": 2, "optional": false }, "definition": { "type": 488, "optional": false } } }, { "union": [27, 150] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 490, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 491, "optional": false } } }, { "literal": "tool.call.rejected" }, { "object": { "toolCallId": { "type": 298, "optional": false }, "error": { "type": 492, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 170, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 494, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 495, "optional": false } } }, { "literal": "tool.approval.requested" }, { "object": { "request": { "type": 496, "optional": false } } }, { "object": { "approvalId": { "type": 497, "optional": false }, "toolCallId": { "type": 298, "optional": false }, "argumentsHash": { "type": 2, "optional": false }, "toolVersion": { "type": 2, "optional": false }, "policyVersion": { "type": 2, "optional": false }, "resources": { "type": 139, "optional": false }, "reason": { "type": 2, "optional": false }, "expiresAt": { "type": 2, "optional": false } } }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 499, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 500, "optional": false } } }, { "literal": "tool.approval.resolved" }, { "object": { "decision": { "type": 501, "optional": false }, "deferResume": { "type": 321, "optional": true } } }, { "object": { "approvalId": { "type": 497, "optional": false }, "toolCallId": { "type": 298, "optional": false }, "approved": { "type": 170, "optional": false }, "decidedBy": { "type": 2, "optional": false }, "decidedAt": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 503, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 504, "optional": false } } }, { "literal": "tool.call.started" }, { "object": { "attempt": { "type": 505, "optional": false } } }, { "object": { "id": { "type": 506, "optional": false }, "toolCallId": { "type": 298, "optional": false }, "stepId": { "type": 330, "optional": false }, "number": { "type": 17, "optional": false }, "executionKey": { "type": 2, "optional": false }, "executorInstanceId": { "type": 2, "optional": false }, "hostEpoch": { "type": 17, "optional": false }, "startedAt": { "type": 2, "optional": false } } }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 508, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 509, "optional": false } } }, { "literal": "tool.call.completed" }, { "object": { "attemptId": { "type": 506, "optional": false }, "result": { "type": 510, "optional": false } } }, { "object": { "toolCallId": { "type": 298, "optional": false }, "outcome": { "type": 511, "optional": false }, "effect": { "type": 518, "optional": false }, "evidenceRef": { "type": 53, "optional": true } } }, { "union": [512, 514] }, { "object": { "status": { "type": 513, "optional": false }, "content": { "type": 352, "optional": false }, "data": { "type": 374, "optional": true } } }, { "literal": "success" }, { "object": { "status": { "type": 515, "optional": false }, "error": { "type": 492, "optional": false }, "data": { "type": 374, "optional": true } } }, { "union": [323, 516, 517] }, { "literal": "error" }, { "literal": "denied" }, { "union": [519, 520, 521] }, { "literal": "none" }, { "literal": "applied" }, { "literal": "unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 523, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 524, "optional": false } } }, { "literal": "tool.call.failed" }, { "object": { "attemptId": { "type": 506, "optional": false }, "toolCallId": { "type": 298, "optional": false }, "error": { "type": 492, "optional": false }, "effect": { "type": 525, "optional": false }, "retryAt": { "type": 53, "optional": true } } }, { "union": [519, 520] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 527, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 528, "optional": false } } }, { "literal": "tool.call.denied" }, { "object": { "toolCallId": { "type": 298, "optional": false }, "approvalId": { "type": 529, "optional": true }, "reason": { "type": 2, "optional": false } } }, { "union": [54, 497] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 531, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 532, "optional": false } } }, { "literal": "tool.call.outcome_unknown" }, { "object": { "toolCallId": { "type": 298, "optional": false }, "attemptId": { "type": 506, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 534, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 535, "optional": false } } }, { "literal": "tool.call.reconciled" }, { "object": { "toolCallId": { "type": 298, "optional": false }, "attemptId": { "type": 506, "optional": false }, "decision": { "type": 536, "optional": false } } }, { "union": [537, 538, 540] }, { "object": { "kind": { "type": 335, "optional": false }, "result": { "type": 510, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "object": { "kind": { "type": 539, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "literal": "not_applied" }, { "object": { "kind": { "type": 541, "optional": false }, "acceptedBy": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "abandon_unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 543, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 544, "optional": false } } }, { "literal": "tool.call.settled" }, { "object": { "message": { "type": 545, "optional": false } } }, { "object": { "role": { "type": 333, "optional": false }, "result": { "type": 510, "optional": false }, "id": { "type": 92, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 214, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 547, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 548, "optional": false } } }, { "literal": "surface.compacted" }, { "object": { "compaction": { "type": 549, "optional": false } } }, { "object": { "id": { "type": 2, "optional": false }, "expectedSurfaceSeq": { "type": 17, "optional": false }, "replacedMessageIds": { "type": 409, "optional": false }, "replacement": { "type": 351, "optional": false }, "sourceDigest": { "type": 2, "optional": false }, "summaryModelRef": { "type": 53, "optional": true }, "boundary": { "type": 550, "optional": true } } }, { "union": [54, 551, 552] }, { "literal": "turn" }, { "literal": "step_prefix" }, { "union": [554, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 22, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 28, "optional": false } } }, { "kind": "string" }, { "object": { "actor": { "type": 3, "optional": false }, "correlationId": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "commandId": { "type": 1, "optional": false }, "commandHash": { "type": 2, "optional": false }, "commandEventIndex": { "type": 17, "optional": false }, "commandEventCount": { "type": 17, "optional": false }, "traceparent": { "type": 53, "optional": true }, "links": { "type": 557, "optional": true } } }, { "union": [54, 558] }, { "array": 21 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 34, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 35, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 37, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 24, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 38, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 48, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 51, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 56, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 57, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 63, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 64, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 66, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 49, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 67, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 69, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 75, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 82, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 83, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 89, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 91, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 96, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 97, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 206, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 207, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 212, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 213, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 216, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 217, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 219, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 220, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 222, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 223, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 226, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 227, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 237, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 238, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 244, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 245, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 250, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 251, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 253, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 254, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 260, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 261, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 265, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 266, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 271, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 272, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 274, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 275, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 281, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 282, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 295, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 296, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 300, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 302, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 304, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 305, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 307, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 308, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 310, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 311, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 313, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 314, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 316, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 317, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 319, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 320, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 327, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 328, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 340, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 341, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 343, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 344, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 346, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 347, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 349, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 350, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 363, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 364, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 377, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 378, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 411, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 412, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 451, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 452, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 486, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 487, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 490, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 491, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 494, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 495, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 499, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 500, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 503, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 504, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 508, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 509, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 523, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 524, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 527, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 528, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 531, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 532, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 534, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 535, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 543, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 301, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 544, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 547, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 555, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 556, "optional": false }, "payload": { "type": 548, "optional": false } } }];
|
|
3
|
+
export const roots = { "CommitRequest": 0, "V1RuntimeEvent": 553 };
|
package/dist/store.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface SqliteStore extends RuntimeCommit, EventReader, JournalReader {
|
|
|
20
20
|
runDetails(runId: RunId): Promise<RunDetails>;
|
|
21
21
|
pendingApprovals(runId: RunId): Promise<readonly import('@saturn-universe/core').ToolExecution[]>;
|
|
22
22
|
sessionDetails(sessionId: SessionId): Promise<SessionDetails>;
|
|
23
|
+
sessionModeState(sessionId: SessionId): Promise<WorkerResult<'sessionModeState'>>;
|
|
23
24
|
sessionUsage(sessionId: SessionId): Promise<SessionUsageSummary>;
|
|
24
25
|
sessionHistory(command: Extract<HostCommand, {
|
|
25
26
|
type: 'session.history' | 'session.history.message';
|
package/dist/store.js
CHANGED
|
@@ -118,6 +118,7 @@ export async function openSqliteWorkerStore(options) {
|
|
|
118
118
|
runDetails: (id) => call('runDetails', id),
|
|
119
119
|
pendingApprovals: (id) => call('pendingApprovals', id),
|
|
120
120
|
sessionDetails: (id) => call('sessionDetails', id),
|
|
121
|
+
sessionModeState: (id) => call('sessionModeState', id),
|
|
121
122
|
sessionUsage: (id) => call('sessionUsage', id),
|
|
122
123
|
sessionHistory: (command) => call('sessionHistory', command),
|
|
123
124
|
sessionList: (command) => call('sessionList', command),
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArtifactRef, CommitRequest, CommitReceipt, EventId, EventPosition, ExpectedStepOrdinal, JournalAppendSnapshot, JournalRunCursor, RunId, RuntimeCommand, RuntimeEvent, StreamRef, TurnId } from '@saturn-universe/core';
|
|
1
|
+
import type { ArtifactRef, CommitRequest, CommitReceipt, EventId, EventPosition, ExpectedStepOrdinal, JournalAppendSnapshot, JournalRunCursor, RunId, RuntimeCommand, RuntimeEvent, SessionId, StreamRef, TurnId } from '@saturn-universe/core';
|
|
2
2
|
import { type ProjectionState } from '@saturn-universe/projections';
|
|
3
3
|
import { readSessionExport, readSessionHistory, readSessionList } from './queries.js';
|
|
4
4
|
export interface SqliteWorkerOptions {
|
|
@@ -38,7 +38,12 @@ declare const commands: {
|
|
|
38
38
|
state: ProjectionState;
|
|
39
39
|
};
|
|
40
40
|
sessionHistory: (command: Parameters<typeof readSessionHistory>[3]) => import("@saturn-universe/core").SessionHistoryMessage | import("@saturn-universe/core").SessionHistoryPage;
|
|
41
|
-
sessionList: (command: Parameters<typeof readSessionList>[
|
|
41
|
+
sessionList: (command: Parameters<typeof readSessionList>[3]) => readonly import("@saturn-universe/core").SessionListItem[];
|
|
42
|
+
sessionModeState(sessionId: SessionId): {
|
|
43
|
+
session: import("@saturn-universe/core").Session;
|
|
44
|
+
busy: boolean;
|
|
45
|
+
lastSeq: number;
|
|
46
|
+
};
|
|
42
47
|
sessionExport: (command: Parameters<typeof readSessionExport>[3]) => import("@saturn-universe/core").SessionExportPage & {
|
|
43
48
|
readonly platformCredentials: readonly string[];
|
|
44
49
|
};
|
|
@@ -89,8 +94,8 @@ declare const commands: {
|
|
|
89
94
|
context(id: import("@saturn-universe/core").AgentSessionId, runId: RunId): import("@saturn-universe/core").ContextStateSnapshot;
|
|
90
95
|
environment(id: RunId, related?: import("@saturn-universe/core").AgentSessionId): import("@saturn-universe/core").ExecutionEnvironment;
|
|
91
96
|
runDetails(id: RunId): import("./queries.js").RunDetails;
|
|
92
|
-
sessionDetails(id:
|
|
93
|
-
sessionUsage(id:
|
|
97
|
+
sessionDetails(id: SessionId): import("@saturn-universe/core").SessionDetails;
|
|
98
|
+
sessionUsage(id: SessionId): import("@saturn-universe/core").SessionUsageSummary;
|
|
94
99
|
};
|
|
95
100
|
declare function open(): Promise<{
|
|
96
101
|
sqliteVersion: string;
|
package/dist/worker.js
CHANGED
|
@@ -4,7 +4,7 @@ import { copyFile, mkdtemp, mkdir, rename, rm } from 'node:fs/promises';
|
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
6
6
|
import { eventPositionCodec, MAX_EVENT_POSITION, RuntimeError, streamForScope, streamKey, terminalRunEventTypes, } from '@saturn-universe/core';
|
|
7
|
-
import { initialProjection, projectBatch, projectBatchWithChanges, } from '@saturn-universe/projections';
|
|
7
|
+
import { initialProjection, projectBatch, projectBatchWithChanges, sessionHasActiveRun, } from '@saturn-universe/projections';
|
|
8
8
|
import { Sqlite } from './driver.js';
|
|
9
9
|
import { initializeDatabaseSchema } from './database-schema.js';
|
|
10
10
|
import { canonicalDigest } from './integrity.js';
|
|
@@ -72,7 +72,18 @@ const commands = {
|
|
|
72
72
|
},
|
|
73
73
|
snapshot: () => ({ generation, state }),
|
|
74
74
|
sessionHistory: (command) => readSessionHistory(db, state, generation, command),
|
|
75
|
-
sessionList: (command) => readSessionList(db, generation, command),
|
|
75
|
+
sessionList: (command) => readSessionList(db, state, generation, command),
|
|
76
|
+
sessionModeState(sessionId) {
|
|
77
|
+
const session = state.sessions[sessionId];
|
|
78
|
+
if (!session)
|
|
79
|
+
throw new RuntimeError('NOT_FOUND', 'Session not found');
|
|
80
|
+
const stream = { kind: 'session', id: sessionId };
|
|
81
|
+
return {
|
|
82
|
+
session,
|
|
83
|
+
busy: sessionHasActiveRun(state, sessionId),
|
|
84
|
+
lastSeq: state.streams[streamKey(stream)] ?? 0,
|
|
85
|
+
};
|
|
86
|
+
},
|
|
76
87
|
sessionExport: (command) => readSessionExport(db, state, generation, command),
|
|
77
88
|
workspaceRoots: () => Object.values(state.workspaces).map((workspace) => workspace.rootUri),
|
|
78
89
|
recoverableRuns: () => readRecoverableRuns(db, generation),
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saturn-universe/storage",
|
|
3
|
-
"version": "0.1.2-dev.
|
|
3
|
+
"version": "0.1.2-dev.7",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@saturn-universe/core": "0.1.2-dev.
|
|
11
|
-
"@saturn-universe/projections": "0.1.2-dev.
|
|
10
|
+
"@saturn-universe/core": "0.1.2-dev.7",
|
|
11
|
+
"@saturn-universe/projections": "0.1.2-dev.7",
|
|
12
12
|
"better-sqlite3": "13.0.3"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|