@saturn-universe/storage 0.1.1 → 0.1.2-dev.10
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/persist.js +15 -3
- 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 +34 -20
- package/package.json +3 -3
package/dist/persist.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { coreProjectionName, coreProjectionVersion } from '@saturn-universe/projections';
|
|
2
|
+
const projectionWrites = new WeakMap();
|
|
2
3
|
export function writeProjectionRows(db, s, generation, changes) {
|
|
3
4
|
const collections = s;
|
|
4
5
|
const rows = (name) => {
|
|
@@ -7,7 +8,12 @@ export function writeProjectionRows(db, s, generation, changes) {
|
|
|
7
8
|
? [...changes[name]].flatMap((key) => (values[key] === undefined ? [] : [values[key]]))
|
|
8
9
|
: Object.values(values);
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
let statements = projectionWrites.get(db);
|
|
12
|
+
if (!statements) {
|
|
13
|
+
statements = new Map();
|
|
14
|
+
projectionWrites.set(db, statements);
|
|
15
|
+
}
|
|
16
|
+
const put = (table, columns) => upsert(db, statements, table, { generation, ...columns });
|
|
11
17
|
for (const w of rows('workspaces'))
|
|
12
18
|
put('workspaces', { workspace_id: w.id, root_uri: w.rootUri, status: w.status, created_at: w.createdAt });
|
|
13
19
|
for (const a of rows('agents'))
|
|
@@ -211,7 +217,13 @@ export function writeProjectionRows(db, s, generation, changes) {
|
|
|
211
217
|
function json(value) {
|
|
212
218
|
return value === undefined || value === null ? null : JSON.stringify(value);
|
|
213
219
|
}
|
|
214
|
-
function upsert(db, table, values) {
|
|
220
|
+
function upsert(db, statements, table, values) {
|
|
215
221
|
const columns = Object.keys(values);
|
|
216
|
-
|
|
222
|
+
const key = table + ':' + columns.join(',');
|
|
223
|
+
let statement = statements.get(key);
|
|
224
|
+
if (!statement) {
|
|
225
|
+
statement = db.prepare(`INSERT INTO ${table} (${columns.join(',')}) VALUES (${columns.map(() => '?').join(',')}) ON CONFLICT DO UPDATE SET ${columns.map((key) => `${key}=excluded.${key}`).join(',')}`);
|
|
226
|
+
statements.set(key, statement);
|
|
227
|
+
}
|
|
228
|
+
statement.run(...Object.values(values));
|
|
217
229
|
}
|
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, 211, 214, 218, 229, 236, 242, 245, 253, 258, 264, 267, 274, 288, 293, 297, 300, 303, 306, 309, 312, 319, 332, 335, 338, 341, 355, 369, 403, 443, 478, 482, 486, 491, 495, 500, 515, 519, 523, 526, 535, 539] }, { "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.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": 212, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 213, "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": 215, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 216, "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": 217, "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": 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.branch.created" }, { "object": { "searchId": { "type": 2, "optional": false }, "branchId": { "type": 2, "optional": false }, "parentBranchId": { "type": 221, "optional": false }, "depth": { "type": 17, "optional": false }, "mode": { "type": 222, "optional": false }, "hypothesis": { "type": 2, "optional": false }, "strategy": { "type": 2, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "workspaceKind": { "type": 225, "optional": false }, "degradedToReadonly": { "type": 107, "optional": true } } }, { "union": [27, 2] }, { "union": [223, 224] }, { "literal": "wider" }, { "literal": "deeper" }, { "union": [226, 227, 228] }, { "literal": "shared_readonly" }, { "literal": "git_worktree" }, { "literal": "shallow_copy" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 230, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 231, "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": 232, "optional": false }, "summary": { "type": 2, "optional": false }, "reflection": { "type": 96, "optional": true } } }, { "union": [233, 234, 235] }, { "literal": "solved" }, { "literal": "promising" }, { "literal": "pruned" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 237, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 238, "optional": false } } }, { "literal": "run.search.converged" }, { "object": { "searchId": { "type": 2, "optional": false }, "winnerBranchId": { "type": 221, "optional": false }, "outcome": { "type": 239, "optional": false }, "winnerSummary": { "type": 2, "optional": false }, "mergedReflections": { "type": 136, "optional": false }, "mergedFiles": { "type": 135, "optional": true } } }, { "union": [233, 240, 241] }, { "literal": "best_candidate" }, { "literal": "exhausted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 243, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 244, "optional": false } } }, { "literal": "run.started" }, { "object": { "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 246, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 247, "optional": false } } }, { "literal": "run.paused" }, { "object": { "reason": { "type": 248, "optional": false }, "blockedTurnId": { "type": 252, "optional": false } } }, { "union": [249, 250, 251] }, { "literal": "approval" }, { "literal": "tool_outcome_unknown" }, { "literal": "recovery_review" }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 254, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 255, "optional": false } } }, { "literal": "run.resumed" }, { "object": { "reason": { "type": 256, "optional": false } } }, { "union": [5, 8, 249, 257] }, { "literal": "reconciled" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 259, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 260, "optional": false } } }, { "literal": "run.plugin.availability" }, { "object": { "block": { "type": 261, "optional": false } } }, { "union": [27, 262] }, { "object": { "code": { "type": 263, "optional": false }, "message": { "type": 2, "optional": false } } }, { "literal": "PLUGIN_VERSION_UNAVAILABLE" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 265, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 266, "optional": false } } }, { "literal": "run.cancel_requested" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "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.completed" }, { "object": { "resultMessageId": { "type": 88, "optional": false }, "usage": { "type": 270, "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": 271, "optional": false } } }, { "union": [272, 273] }, { "literal": "reported" }, { "literal": "estimated" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 275, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 276, "optional": false } } }, { "literal": "run.failed" }, { "object": { "error": { "type": 277, "optional": false }, "usage": { "type": 270, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 167, "optional": false }, "budget": { "type": 278, "optional": true }, "checkpoint": { "type": 200, "optional": true } } }, { "union": [67, 279] }, { "object": { "resource": { "type": 280, "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": [281, 282, 283, 284, 285, 286, 287] }, { "literal": "modelAttempts" }, { "literal": "toolCalls" }, { "literal": "steps" }, { "literal": "tokens" }, { "literal": "context" }, { "literal": "timeMs" }, { "literal": "modelOutput" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 289, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 86, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 290, "optional": false } } }, { "literal": "run.cancelled" }, { "object": { "reason": { "type": 2, "optional": false }, "unresolvedCallIds": { "type": 291, "optional": false } } }, { "array": 292 }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 294, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 296, "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": 252, "optional": false }, "ordinal": { "type": 17, "optional": false }, "inputMessageId": { "type": 88, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 298, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 299, "optional": false } } }, { "literal": "turn.started" }, { "object": { "turnId": { "type": 252, "optional": false }, "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 301, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 302, "optional": false } } }, { "literal": "turn.paused" }, { "object": { "turnId": { "type": 252, "optional": false }, "reason": { "type": 248, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 304, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 305, "optional": false } } }, { "literal": "turn.resumed" }, { "object": { "turnId": { "type": 252, "optional": false }, "reason": { "type": 2, "optional": false }, "deadlineAt": { "type": 96, "optional": true } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 307, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 308, "optional": false } } }, { "literal": "turn.completed" }, { "object": { "turnId": { "type": 252, "optional": false }, "finalMessageId": { "type": 88, "optional": false }, "usage": { "type": 270, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 310, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 311, "optional": false } } }, { "literal": "turn.failed" }, { "object": { "turnId": { "type": 252, "optional": false }, "error": { "type": 277, "optional": false }, "usage": { "type": 270, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 313, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 314, "optional": false } } }, { "literal": "turn.interrupted" }, { "object": { "turnId": { "type": 252, "optional": false }, "reason": { "type": 315, "optional": false }, "usage": { "type": 270, "optional": false }, "unresolvedCallIds": { "type": 291, "optional": false }, "budget": { "type": 278, "optional": true } } }, { "union": [316, 317, 318] }, { "literal": "cancelled" }, { "literal": "timeout" }, { "literal": "limit" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 320, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 321, "optional": false } } }, { "literal": "step.started" }, { "object": { "step": { "type": 322, "optional": false } } }, { "object": { "id": { "type": 323, "optional": false }, "turnId": { "type": 252, "optional": false }, "ordinal": { "type": 17, "optional": false }, "kind": { "type": 324, "optional": false }, "status": { "type": 327, "optional": false } } }, { "kind": "string" }, { "union": [6, 325, 326] }, { "literal": "model" }, { "literal": "tool" }, { "union": [328, 329, 330, 331] }, { "literal": "completed" }, { "literal": "failed" }, { "literal": "running" }, { "literal": "interrupted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 333, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 334, "optional": false } } }, { "literal": "step.completed" }, { "object": { "stepId": { "type": 323, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 336, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 337, "optional": false } } }, { "literal": "step.failed" }, { "object": { "stepId": { "type": 323, "optional": false }, "error": { "type": 277, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 339, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 340, "optional": false } } }, { "literal": "step.interrupted" }, { "object": { "stepId": { "type": 323, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 342, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 343, "optional": false } } }, { "literal": "message.user.added" }, { "object": { "message": { "type": 344, "optional": false }, "steering": { "type": 354, "optional": true } } }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 345, "optional": false }, "id": { "type": 88, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 252, "optional": false } } }, { "array": 346 }, { "union": [347, 349, 352] }, { "object": { "type": { "type": 348, "optional": false }, "text": { "type": 2, "optional": false } } }, { "literal": "text" }, { "object": { "type": { "type": 350, "optional": false }, "artifact": { "type": 351, "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": 353, "optional": false }, "artifact": { "type": 351, "optional": false }, "name": { "type": 2, "optional": false } } }, { "literal": "file" }, { "union": [67, 109] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 356, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 357, "optional": false } } }, { "literal": "message.assistant.added" }, { "object": { "message": { "type": 358, "optional": false }, "requestId": { "type": 368, "optional": false } } }, { "object": { "role": { "type": 359, "optional": false }, "content": { "type": 345, "optional": false }, "toolCalls": { "type": 360, "optional": false }, "structuredOutput": { "type": 367, "optional": true }, "id": { "type": 88, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 252, "optional": false } } }, { "literal": "assistant" }, { "array": 361 }, { "object": { "id": { "type": 292, "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": 362, "optional": false } } }, { "union": [363, 365] }, { "object": { "kind": { "type": 364, "optional": false }, "value": { "type": 149, "optional": false } } }, { "literal": "json" }, { "object": { "kind": { "type": 366, "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": 370, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 371, "optional": false } } }, { "literal": "model.requested" }, { "object": { "stepId": { "type": 323, "optional": false }, "request": { "type": 372, "optional": false } } }, { "object": { "id": { "type": 368, "optional": false }, "callGroupId": { "type": 2, "optional": false }, "attempt": { "type": 17, "optional": false }, "retryOf": { "type": 373, "optional": true }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 252, "optional": false }, "model": { "type": 141, "optional": false }, "binding": { "type": 143, "optional": false }, "responses": { "type": 374, "optional": false }, "responsesOptions": { "type": 190, "optional": false }, "output": { "type": 394, "optional": false }, "maxOutputTokens": { "type": 17, "optional": false }, "budget": { "type": 397, "optional": false }, "temperature": { "type": 106, "optional": true }, "context": { "type": 401, "optional": false } } }, { "union": [67, 368] }, { "object": { "version": { "type": 23, "optional": false }, "binding": { "type": 143, "optional": false }, "epochId": { "type": 2, "optional": false }, "decision": { "type": 375, "optional": false }, "initialSystemPrompt": { "type": 96, "optional": true }, "initialBackground": { "type": 387, "optional": true }, "prunedToolResults": { "type": 107, "optional": true }, "fullInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "backgroundDigest": { "type": 96, "optional": true }, "replaySources": { "type": 390, "optional": false }, "transport": { "type": 392, "optional": false } } }, { "union": [376, 378, 380] }, { "object": { "kind": { "type": 377, "optional": false } } }, { "literal": "new" }, { "object": { "kind": { "type": 379, "optional": false }, "previousResponseEventId": { "type": 21, "optional": false } } }, { "literal": "append" }, { "object": { "kind": { "type": 381, "optional": false }, "atTurnId": { "type": 252, "optional": false }, "reason": { "type": 382, "optional": false } } }, { "literal": "reset" }, { "union": [383, 384, 385, 386] }, { "literal": "history_trimmed" }, { "literal": "compacted" }, { "literal": "prefix_changed" }, { "literal": "binding_changed" }, { "union": [67, 388] }, { "array": 389 }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 345, "optional": false }, "sourceBackgroundId": { "type": 2, "optional": false } } }, { "array": 391 }, { "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": 393, "optional": false } } }, { "literal": "local_replay" }, { "union": [395, 396] }, { "object": { "kind": { "type": 348, "optional": false } } }, { "object": { "kind": { "type": 364, "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": 398, "optional": false } } }, { "union": [399, 400] }, { "literal": "tokenizer" }, { "literal": "conservative_estimate" }, { "object": { "surfaceSeq": { "type": 17, "optional": false }, "selectedMessageIds": { "type": 402, "optional": false }, "assemblyHash": { "type": 2, "optional": false }, "providerVersions": { "type": 195, "optional": false } } }, { "array": 88 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 404, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 405, "optional": false } } }, { "literal": "model.responded" }, { "object": { "stepId": { "type": 323, "optional": false }, "response": { "type": 406, "optional": false }, "reasoningSummary": { "type": 96, "optional": true } } }, { "object": { "requestId": { "type": 368, "optional": false }, "providerResponseId": { "type": 2, "optional": false }, "content": { "type": 345, "optional": false }, "toolCalls": { "type": 407, "optional": false }, "structuredOutput": { "type": 367, "optional": true }, "continuation": { "type": 409, "optional": false }, "turnDisposition": { "type": 435, "optional": false }, "finishReason": { "type": 439, "optional": false }, "usage": { "type": 270, "optional": false } } }, { "array": 408 }, { "object": { "outputIndex": { "type": 17, "optional": false }, "providerCallId": { "type": 2, "optional": false }, "toolName": { "type": 2, "optional": false }, "arguments": { "type": 362, "optional": false } } }, { "object": { "version": { "type": 23, "optional": false }, "protocol": { "type": 410, "optional": false }, "binding": { "type": 143, "optional": false }, "epochId": { "type": 2, "optional": false }, "responseId": { "type": 2, "optional": false }, "sourceRequestId": { "type": 368, "optional": false }, "requestInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "outputItems": { "type": 415, "optional": false }, "outputDigest": { "type": 2, "optional": false }, "providerMetadata": { "type": 197, "optional": false }, "capture": { "type": 430, "optional": false } } }, { "union": [411, 412, 413, 414] }, { "literal": "openai-responses" }, { "literal": "openai-chat" }, { "literal": "anthropic" }, { "literal": "gemini" }, { "array": 416 }, { "union": [417, 422, 425, 428] }, { "object": { "kind": { "type": 418, "optional": false }, "value": { "type": 419, "optional": false } } }, { "literal": "message" }, { "object": { "type": { "type": 418, "optional": false }, "role": { "type": 359, "optional": false }, "id": { "type": 2, "optional": false }, "content": { "type": 420, "optional": false }, "phase": { "type": 421, "optional": true } }, "index": 149 }, { "array": 197 }, { "union": [67, 27, 2] }, { "object": { "kind": { "type": 423, "optional": false }, "value": { "type": 424, "optional": false } } }, { "literal": "reasoning" }, { "object": { "type": { "type": 423, "optional": false }, "id": { "type": 2, "optional": false }, "summary": { "type": 420, "optional": false }, "encrypted_content": { "type": 421, "optional": true } }, "index": 149 }, { "object": { "kind": { "type": 426, "optional": false }, "value": { "type": 427, "optional": false } } }, { "literal": "function_call" }, { "object": { "type": { "type": 426, "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": 429, "optional": false }, "codecId": { "type": 2, "optional": false }, "codecVersion": { "type": 17, "optional": false }, "value": { "type": 197, "optional": false } } }, { "literal": "extension" }, { "object": { "source": { "type": 431, "optional": false }, "complete": { "type": 109, "optional": false } } }, { "union": [432, 433, 434] }, { "literal": "wire_json" }, { "literal": "wire_sse" }, { "literal": "sdk" }, { "union": [436, 437, 438] }, { "literal": "final" }, { "literal": "tool_calls" }, { "literal": "continue" }, { "union": [437, 440, 441, 442] }, { "literal": "stop" }, { "literal": "length" }, { "literal": "content_filter" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 444, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 445, "optional": false } } }, { "literal": "model.failed" }, { "object": { "stepId": { "type": 323, "optional": false }, "requestId": { "type": 368, "optional": false }, "error": { "type": 446, "optional": false }, "chargedUsage": { "type": 464, "optional": true }, "reasoningSummary": { "type": 96, "optional": true }, "retryAt": { "type": 96, "optional": true } } }, { "object": { "code": { "type": 447, "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": 464, "optional": true }, "details": { "type": 465, "optional": true } } }, { "union": [316, 317, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463] }, { "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, 270] }, { "union": [67, 466] }, { "object": { "phase": { "type": 467, "optional": false }, "elapsedMs": { "type": 17, "optional": false }, "timeoutKind": { "type": 471, "optional": true }, "underlyingCode": { "type": 96, "optional": true }, "causes": { "type": 475, "optional": true } } }, { "union": [468, 469, 470] }, { "literal": "awaiting_headers" }, { "literal": "awaiting_first_frame" }, { "literal": "stream_idle" }, { "union": [67, 472, 473, 474] }, { "literal": "idle" }, { "literal": "total" }, { "literal": "deadline" }, { "union": [67, 476] }, { "array": 477 }, { "object": { "code": { "type": 96, "optional": true }, "message": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 479, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 480, "optional": false } } }, { "literal": "tool.call.requested" }, { "object": { "turnId": { "type": 252, "optional": false }, "call": { "type": 361, "optional": false }, "executionKey": { "type": 2, "optional": false }, "policyVersion": { "type": 2, "optional": false }, "definition": { "type": 481, "optional": false } } }, { "union": [27, 147] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 483, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 484, "optional": false } } }, { "literal": "tool.call.rejected" }, { "object": { "toolCallId": { "type": 292, "optional": false }, "error": { "type": 485, "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": 487, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 488, "optional": false } } }, { "literal": "tool.approval.requested" }, { "object": { "request": { "type": 489, "optional": false } } }, { "object": { "approvalId": { "type": 490, "optional": false }, "toolCallId": { "type": 292, "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": 492, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 493, "optional": false } } }, { "literal": "tool.approval.resolved" }, { "object": { "decision": { "type": 494, "optional": false }, "deferResume": { "type": 354, "optional": true } } }, { "object": { "approvalId": { "type": 490, "optional": false }, "toolCallId": { "type": 292, "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": 496, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 497, "optional": false } } }, { "literal": "tool.call.started" }, { "object": { "attempt": { "type": 498, "optional": false } } }, { "object": { "id": { "type": 499, "optional": false }, "toolCallId": { "type": 292, "optional": false }, "stepId": { "type": 323, "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": 501, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 502, "optional": false } } }, { "literal": "tool.call.completed" }, { "object": { "attemptId": { "type": 499, "optional": false }, "result": { "type": 503, "optional": false } } }, { "object": { "toolCallId": { "type": 292, "optional": false }, "outcome": { "type": 504, "optional": false }, "effect": { "type": 511, "optional": false }, "evidenceRef": { "type": 96, "optional": true } } }, { "union": [505, 507] }, { "object": { "status": { "type": 506, "optional": false }, "content": { "type": 345, "optional": false }, "data": { "type": 367, "optional": true } } }, { "literal": "success" }, { "object": { "status": { "type": 508, "optional": false }, "error": { "type": 485, "optional": false }, "data": { "type": 367, "optional": true } } }, { "union": [316, 509, 510] }, { "literal": "error" }, { "literal": "denied" }, { "union": [512, 513, 514] }, { "literal": "none" }, { "literal": "applied" }, { "literal": "unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 516, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 517, "optional": false } } }, { "literal": "tool.call.failed" }, { "object": { "attemptId": { "type": 499, "optional": false }, "toolCallId": { "type": 292, "optional": false }, "error": { "type": 485, "optional": false }, "effect": { "type": 518, "optional": false }, "retryAt": { "type": 96, "optional": true } } }, { "union": [512, 513] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 520, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 521, "optional": false } } }, { "literal": "tool.call.denied" }, { "object": { "toolCallId": { "type": 292, "optional": false }, "approvalId": { "type": 522, "optional": true }, "reason": { "type": 2, "optional": false } } }, { "union": [67, 490] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 524, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 525, "optional": false } } }, { "literal": "tool.call.outcome_unknown" }, { "object": { "toolCallId": { "type": 292, "optional": false }, "attemptId": { "type": 499, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 527, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 528, "optional": false } } }, { "literal": "tool.call.reconciled" }, { "object": { "toolCallId": { "type": 292, "optional": false }, "attemptId": { "type": 499, "optional": false }, "decision": { "type": 529, "optional": false } } }, { "union": [530, 531, 533] }, { "object": { "kind": { "type": 328, "optional": false }, "result": { "type": 503, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "object": { "kind": { "type": 532, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "literal": "not_applied" }, { "object": { "kind": { "type": 534, "optional": false }, "acceptedBy": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "abandon_unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 536, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 537, "optional": false } } }, { "literal": "tool.call.settled" }, { "object": { "message": { "type": 538, "optional": false } } }, { "object": { "role": { "type": 326, "optional": false }, "result": { "type": 503, "optional": false }, "id": { "type": 88, "optional": false }, "agentSessionId": { "type": 57, "optional": false }, "runId": { "type": 70, "optional": false }, "turnId": { "type": 252, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 540, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 65, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 541, "optional": false } } }, { "literal": "surface.compacted" }, { "object": { "compaction": { "type": 542, "optional": false } } }, { "object": { "id": { "type": 2, "optional": false }, "expectedSurfaceSeq": { "type": 17, "optional": false }, "replacedMessageIds": { "type": 402, "optional": false }, "replacement": { "type": 344, "optional": false }, "sourceDigest": { "type": 2, "optional": false }, "summaryModelRef": { "type": 96, "optional": true }, "boundary": { "type": 543, "optional": true } } }, { "union": [67, 544, 545] }, { "literal": "turn" }, { "literal": "step_prefix" }, { "union": [547, 552, 553, 554, 555, 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] }, { "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 550, "optional": true } } }, { "union": [67, 551] }, { "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 210, "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": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 213, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 215, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 216, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 220, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 230, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 231, "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": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 238, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 243, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 244, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 246, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 247, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 254, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 255, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 259, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 260, "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": 86, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 266, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 269, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 275, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 276, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 289, "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": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 290, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 294, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 296, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 298, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 314, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 320, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 321, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 333, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 334, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 336, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 337, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 339, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 340, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 342, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 343, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 356, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 357, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 370, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 371, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 404, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 405, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 444, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 445, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 479, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 480, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 488, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 492, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 493, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 497, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 501, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 502, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 516, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 517, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 525, "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": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 528, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 536, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 295, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 537, "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": 65, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 548, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 549, "optional": false }, "payload": { "type": 541, "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, 221, 227, 231, 234, 237, 241, 252, 259, 265, 268, 275, 280, 286, 289, 296, 310, 315, 319, 322, 325, 328, 331, 334, 341, 354, 357, 360, 363, 377, 391, 425, 465, 500, 504, 508, 513, 517, 522, 537, 541, 545, 548, 557, 561] }, { "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 }, "teamDefaultConcurrency": { "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": 148, "optional": false }, "providerBinding": { "type": 149, "optional": true }, "toolSnapshot": { "type": 151, "optional": true }, "pluginBindings": { "type": 178, "optional": true }, "policyVersion": { "type": 2, "optional": false }, "toolSetVersion": { "type": 2, "optional": false }, "streamText": { "type": 110, "optional": true }, "workerReasoningEffort": { "type": 53, "optional": true }, "workerReasoningDefaults": { "type": 195, "optional": true }, "disabledSkills": { "type": 138, "optional": true }, "limits": { "type": 200, "optional": false }, "retry": { "type": 201, "optional": false }, "compaction": { "type": 202, "optional": true }, "runtimeOverrides": { "type": 204, "optional": true }, "responses": { "type": 210, "optional": false }, "continuation": { "type": 217, "optional": true }, "search": { "type": 120, "optional": true }, "checkpoint": { "type": 219, "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 }, "modeRef": { "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": 144, "optional": false } } }, { "union": [54, 137] }, { "object": { "allowedTools": { "type": 138, "optional": true }, "deniedTools": { "type": 138, "optional": true }, "ref": { "type": 2, "optional": false }, "instructions": { "type": 2, "optional": false }, "toolRoles": { "type": 140, "optional": true } } }, { "union": [54, 139] }, { "array": 2 }, { "union": [54, 141] }, { "object": { "main": { "type": 142, "optional": true }, "worker": { "type": 142, "optional": true } } }, { "union": [54, 143] }, { "object": { "allowedTools": { "type": 138, "optional": true }, "deniedTools": { "type": 138, "optional": true } } }, { "array": 145 }, { "object": { "ref": { "type": 2, "optional": false }, "instructions": { "type": 2, "optional": false }, "resources": { "type": 146, "optional": false } } }, { "array": 147 }, { "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, 150] }, { "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, 152] }, { "object": { "version": { "type": 2, "optional": false }, "definitions": { "type": 153, "optional": false } } }, { "array": 154 }, { "object": { "scopeKey": { "type": 53, "optional": true }, "name": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "description": { "type": 2, "optional": false }, "inputSchema": { "type": 155, "optional": false }, "outputSchema": { "type": 159, "optional": true }, "source": { "type": 160, "optional": false }, "effects": { "type": 170, "optional": false }, "supportsIdempotencyKey": { "type": 174, "optional": false }, "supportsReconcile": { "type": 174, "optional": false }, "concurrency": { "type": 175, "optional": false }, "timeoutMs": { "type": 17, "optional": false }, "abortGraceMs": { "type": 109, "optional": true } } }, { "object": {}, "index": 156 }, { "union": [27, 2, 17, 111, 112, 157, 158] }, { "array": 156 }, { "object": {}, "index": 156 }, { "union": [54, 155] }, { "union": [161, 163, 168] }, { "object": { "kind": { "type": 162, "optional": false } } }, { "literal": "builtin" }, { "object": { "kind": { "type": 164, "optional": false }, "sourceId": { "type": 2, "optional": false } } }, { "union": [165, 166, 167] }, { "literal": "custom" }, { "literal": "plugin" }, { "literal": "script" }, { "object": { "kind": { "type": 169, "optional": false }, "serverId": { "type": 2, "optional": false }, "remoteName": { "type": 2, "optional": false } } }, { "literal": "mcp" }, { "union": [171, 172, 173] }, { "literal": "read" }, { "literal": "idempotent_write" }, { "literal": "non_idempotent_write" }, { "union": [111, 112] }, { "union": [176, 177] }, { "literal": "parallel" }, { "literal": "serial_per_run" }, { "union": [54, 179] }, { "object": { "modelProvider": { "type": 180, "optional": true }, "derived": { "type": 182, "optional": true }, "tools": { "type": 189, "optional": false }, "contextProviders": { "type": 191, "optional": false }, "hooks": { "type": 193, "optional": false } } }, { "union": [54, 181] }, { "object": { "profileRef": { "type": 2, "optional": false }, "providerId": { "type": 2, "optional": false }, "revision": { "type": 2, "optional": false }, "compatibilityKey": { "type": 53, "optional": true } } }, { "union": [54, 183] }, { "array": 184 }, { "object": { "role": { "type": 185, "optional": false }, "agentSessionId": { "type": 187, "optional": true }, "bindings": { "type": 188, "optional": false }, "toolSnapshot": { "type": 151, "optional": true } } }, { "union": [43, 186] }, { "literal": "search" }, { "union": [54, 59] }, { "object": { "tools": { "type": 189, "optional": false }, "contextProviders": { "type": 191, "optional": false }, "hooks": { "type": 193, "optional": false } } }, { "array": 190 }, { "object": { "name": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "source": { "type": 160, "optional": false }, "scopeKey": { "type": 53, "optional": true }, "definitionDigest": { "type": 53, "optional": true } } }, { "array": 192 }, { "object": { "id": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "scopeKey": { "type": 53, "optional": true } } }, { "array": 194 }, { "object": { "id": { "type": 2, "optional": false }, "version": { "type": 2, "optional": false }, "scopeKey": { "type": 53, "optional": true } } }, { "union": [54, 196] }, { "object": { "reasoning": { "type": 197, "optional": false }, "modeEffort": { "type": 53, "optional": true }, "explicitEffort": { "type": 199, "optional": true } } }, { "union": [27, 198] }, { "object": { "effort": { "type": 53, "optional": true }, "summary": { "type": 53, "optional": true }, "context": { "type": 53, "optional": true } } }, { "union": [54, 112] }, { "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 } } }, { "union": [54, 203] }, { "object": { "enabled": { "type": 110, "optional": true }, "thresholdRatio": { "type": 109, "optional": true }, "maxHeadroomTokens": { "type": 109, "optional": true }, "headroomRatio": { "type": 109, "optional": true }, "minRecentSteps": { "type": 109, "optional": true }, "tailWindowRatio": { "type": 109, "optional": true }, "preflightWindowRatio": { "type": 109, "optional": true }, "maxHalvings": { "type": 109, "optional": true }, "minPrefixChars": { "type": 109, "optional": true }, "summaryTimeoutMs": { "type": 109, "optional": true } } }, { "union": [54, 205] }, { "object": { "limits": { "type": 206, "optional": true }, "retry": { "type": 208, "optional": true }, "compaction": { "type": 202, "optional": true } } }, { "union": [54, 207] }, { "object": { "modelTimeoutMs": { "type": 109, "optional": true }, "streamIdleTimeoutMs": { "type": 109, "optional": true }, "requestTotalTimeoutMs": { "type": 109, "optional": true }, "toolTimeoutMs": { "type": 109, "optional": true }, "shellTimeoutMs": { "type": 109, "optional": true }, "maxParallelTools": { "type": 109, "optional": true } } }, { "union": [54, 209] }, { "object": { "modelMaxAttemptsPerCall": { "type": 109, "optional": true }, "toolMaxAttemptsPerCall": { "type": 109, "optional": true }, "baseDelayMs": { "type": 109, "optional": true }, "maxDelayMs": { "type": 109, "optional": true } } }, { "object": { "storage": { "type": 211, "optional": false }, "reasoning": { "type": 212, "optional": true }, "parallelToolCalls": { "type": 110, "optional": true }, "metadata": { "type": 213, "optional": true }, "extensionOptions": { "type": 215, "optional": true } } }, { "literal": "local_stateless" }, { "union": [54, 198] }, { "union": [54, 214] }, { "object": {}, "index": 2 }, { "union": [54, 216] }, { "object": {}, "index": 156 }, { "union": [54, 218] }, { "object": { "enabled": { "type": 110, "optional": true }, "maxTurns": { "type": 109, "optional": true } } }, { "union": [54, 220] }, { "object": { "sourceRunId": { "type": 74, "optional": false }, "originalInputId": { "type": 92, "optional": false }, "summary": { "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.team.planned" }, { "object": { "plannerAgentSessionId": { "type": 59, "optional": false }, "decision": { "type": 224, "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": [225, 226] }, { "literal": "single" }, { "literal": "team" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 228, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 229, "optional": false } } }, { "literal": "run.team.member.stop_requested" }, { "object": { "memberId": { "type": 2, "optional": false }, "turnId": { "type": 230, "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": 232, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 233, "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": 235, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 236, "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": 238, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 239, "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": 240, "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": 242, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 243, "optional": false } } }, { "literal": "run.search.branch.created" }, { "object": { "searchId": { "type": 2, "optional": false }, "branchId": { "type": 2, "optional": false }, "parentBranchId": { "type": 244, "optional": false }, "depth": { "type": 17, "optional": false }, "mode": { "type": 245, "optional": false }, "hypothesis": { "type": 2, "optional": false }, "strategy": { "type": 2, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "workspaceKind": { "type": 248, "optional": false }, "degradedToReadonly": { "type": 110, "optional": true } } }, { "union": [27, 2] }, { "union": [246, 247] }, { "literal": "wider" }, { "literal": "deeper" }, { "union": [249, 250, 251] }, { "literal": "shared_readonly" }, { "literal": "git_worktree" }, { "literal": "shallow_copy" }, { "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.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": 255, "optional": false }, "summary": { "type": 2, "optional": false }, "reflection": { "type": 53, "optional": true } } }, { "union": [256, 257, 258] }, { "literal": "solved" }, { "literal": "promising" }, { "literal": "pruned" }, { "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.search.converged" }, { "object": { "searchId": { "type": 2, "optional": false }, "winnerBranchId": { "type": 244, "optional": false }, "outcome": { "type": 262, "optional": false }, "winnerSummary": { "type": 2, "optional": false }, "mergedReflections": { "type": 139, "optional": false }, "mergedFiles": { "type": 138, "optional": true } } }, { "union": [256, 263, 264] }, { "literal": "best_candidate" }, { "literal": "exhausted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 266, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 267, "optional": false } } }, { "literal": "run.started" }, { "object": { "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 269, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 270, "optional": false } } }, { "literal": "run.paused" }, { "object": { "reason": { "type": 271, "optional": false }, "blockedTurnId": { "type": 230, "optional": false } } }, { "union": [272, 273, 274] }, { "literal": "approval" }, { "literal": "tool_outcome_unknown" }, { "literal": "recovery_review" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 276, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 277, "optional": false } } }, { "literal": "run.resumed" }, { "object": { "reason": { "type": 278, "optional": false } } }, { "union": [5, 8, 272, 279] }, { "literal": "reconciled" }, { "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.plugin.availability" }, { "object": { "block": { "type": 283, "optional": false } } }, { "union": [27, 284] }, { "object": { "code": { "type": 285, "optional": false }, "message": { "type": 2, "optional": false } } }, { "literal": "PLUGIN_VERSION_UNAVAILABLE" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 287, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 288, "optional": false } } }, { "literal": "run.cancel_requested" }, { "object": { "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 290, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 291, "optional": false } } }, { "literal": "run.completed" }, { "object": { "resultMessageId": { "type": 92, "optional": false }, "usage": { "type": 292, "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": 293, "optional": false } } }, { "union": [294, 295] }, { "literal": "reported" }, { "literal": "estimated" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 297, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 298, "optional": false } } }, { "literal": "run.failed" }, { "object": { "error": { "type": 299, "optional": false }, "usage": { "type": 292, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 174, "optional": false }, "budget": { "type": 300, "optional": true }, "checkpoint": { "type": 219, "optional": true } } }, { "union": [54, 301] }, { "object": { "resource": { "type": 302, "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": [303, 304, 305, 306, 307, 308, 309] }, { "literal": "modelAttempts" }, { "literal": "toolCalls" }, { "literal": "steps" }, { "literal": "tokens" }, { "literal": "context" }, { "literal": "timeMs" }, { "literal": "modelOutput" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 311, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 90, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 312, "optional": false } } }, { "literal": "run.cancelled" }, { "object": { "reason": { "type": 2, "optional": false }, "unresolvedCallIds": { "type": 313, "optional": false } } }, { "array": 314 }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 316, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 318, "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": 230, "optional": false }, "ordinal": { "type": 17, "optional": false }, "inputMessageId": { "type": 92, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 320, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 321, "optional": false } } }, { "literal": "turn.started" }, { "object": { "turnId": { "type": 230, "optional": false }, "startedAt": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 323, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 324, "optional": false } } }, { "literal": "turn.paused" }, { "object": { "turnId": { "type": 230, "optional": false }, "reason": { "type": 271, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 326, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 327, "optional": false } } }, { "literal": "turn.resumed" }, { "object": { "turnId": { "type": 230, "optional": false }, "reason": { "type": 2, "optional": false }, "deadlineAt": { "type": 53, "optional": true } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 329, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 330, "optional": false } } }, { "literal": "turn.completed" }, { "object": { "turnId": { "type": 230, "optional": false }, "finalMessageId": { "type": 92, "optional": false }, "usage": { "type": 292, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 332, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 333, "optional": false } } }, { "literal": "turn.failed" }, { "object": { "turnId": { "type": 230, "optional": false }, "error": { "type": 299, "optional": false }, "usage": { "type": 292, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 335, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 336, "optional": false } } }, { "literal": "turn.interrupted" }, { "object": { "turnId": { "type": 230, "optional": false }, "stoppedByMain": { "type": 199, "optional": true }, "reason": { "type": 337, "optional": false }, "usage": { "type": 292, "optional": false }, "unresolvedCallIds": { "type": 313, "optional": false }, "budget": { "type": 300, "optional": true } } }, { "union": [338, 339, 340] }, { "literal": "cancelled" }, { "literal": "timeout" }, { "literal": "limit" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 342, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 343, "optional": false } } }, { "literal": "step.started" }, { "object": { "step": { "type": 344, "optional": false } } }, { "object": { "id": { "type": 345, "optional": false }, "turnId": { "type": 230, "optional": false }, "ordinal": { "type": 17, "optional": false }, "kind": { "type": 346, "optional": false }, "status": { "type": 349, "optional": false } } }, { "kind": "string" }, { "union": [6, 347, 348] }, { "literal": "model" }, { "literal": "tool" }, { "union": [350, 351, 352, 353] }, { "literal": "completed" }, { "literal": "failed" }, { "literal": "running" }, { "literal": "interrupted" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 355, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 356, "optional": false } } }, { "literal": "step.completed" }, { "object": { "stepId": { "type": 345, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 358, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 359, "optional": false } } }, { "literal": "step.failed" }, { "object": { "stepId": { "type": 345, "optional": false }, "error": { "type": 299, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 361, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 362, "optional": false } } }, { "literal": "step.interrupted" }, { "object": { "stepId": { "type": 345, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 364, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 365, "optional": false } } }, { "literal": "message.user.added" }, { "object": { "message": { "type": 366, "optional": false }, "steering": { "type": 199, "optional": true }, "steeringSource": { "type": 376, "optional": true } } }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 367, "optional": false }, "id": { "type": 92, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 230, "optional": false } } }, { "array": 368 }, { "union": [369, 371, 374] }, { "object": { "type": { "type": 370, "optional": false }, "text": { "type": 2, "optional": false } } }, { "literal": "text" }, { "object": { "type": { "type": 372, "optional": false }, "artifact": { "type": 373, "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": 375, "optional": false }, "artifact": { "type": 373, "optional": false }, "name": { "type": 2, "optional": false } } }, { "literal": "file" }, { "union": [54, 42] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 378, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 379, "optional": false } } }, { "literal": "message.assistant.added" }, { "object": { "message": { "type": 380, "optional": false }, "requestId": { "type": 390, "optional": false } } }, { "object": { "role": { "type": 381, "optional": false }, "content": { "type": 367, "optional": false }, "toolCalls": { "type": 382, "optional": false }, "structuredOutput": { "type": 389, "optional": true }, "id": { "type": 92, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 230, "optional": false } } }, { "literal": "assistant" }, { "array": 383 }, { "object": { "id": { "type": 314, "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": 384, "optional": false } } }, { "union": [385, 387] }, { "object": { "kind": { "type": 386, "optional": false }, "value": { "type": 156, "optional": false } } }, { "literal": "json" }, { "object": { "kind": { "type": 388, "optional": false }, "raw": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "invalid" }, { "union": [54, 27, 2, 17, 111, 112, 157, 158] }, { "kind": "string" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 392, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 393, "optional": false } } }, { "literal": "model.requested" }, { "object": { "stepId": { "type": 345, "optional": false }, "request": { "type": 394, "optional": false } } }, { "object": { "id": { "type": 390, "optional": false }, "callGroupId": { "type": 2, "optional": false }, "attempt": { "type": 17, "optional": false }, "retryOf": { "type": 395, "optional": true }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 230, "optional": false }, "model": { "type": 148, "optional": false }, "binding": { "type": 150, "optional": false }, "responses": { "type": 396, "optional": false }, "responsesOptions": { "type": 210, "optional": false }, "output": { "type": 416, "optional": false }, "maxOutputTokens": { "type": 17, "optional": false }, "budget": { "type": 419, "optional": false }, "temperature": { "type": 109, "optional": true }, "context": { "type": 423, "optional": false } } }, { "union": [54, 390] }, { "object": { "version": { "type": 23, "optional": false }, "binding": { "type": 150, "optional": false }, "epochId": { "type": 2, "optional": false }, "decision": { "type": 397, "optional": false }, "initialSystemPrompt": { "type": 53, "optional": true }, "initialBackground": { "type": 409, "optional": true }, "prunedToolResults": { "type": 110, "optional": true }, "projectedToolHistory": { "type": 199, "optional": true }, "fullInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "backgroundDigest": { "type": 53, "optional": true }, "replaySources": { "type": 412, "optional": false }, "transport": { "type": 414, "optional": false } } }, { "union": [398, 400, 402] }, { "object": { "kind": { "type": 399, "optional": false } } }, { "literal": "new" }, { "object": { "kind": { "type": 401, "optional": false }, "previousResponseEventId": { "type": 21, "optional": false } } }, { "literal": "append" }, { "object": { "kind": { "type": 403, "optional": false }, "atTurnId": { "type": 230, "optional": false }, "reason": { "type": 404, "optional": false } } }, { "literal": "reset" }, { "union": [405, 406, 407, 408] }, { "literal": "history_trimmed" }, { "literal": "compacted" }, { "literal": "prefix_changed" }, { "literal": "binding_changed" }, { "union": [54, 410] }, { "array": 411 }, { "object": { "role": { "type": 5, "optional": false }, "content": { "type": 367, "optional": false }, "sourceBackgroundId": { "type": 2, "optional": false } } }, { "array": 413 }, { "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": 415, "optional": false } } }, { "literal": "local_replay" }, { "union": [417, 418] }, { "object": { "kind": { "type": 370, "optional": false } } }, { "object": { "kind": { "type": 386, "optional": false }, "schema": { "type": 155, "optional": false }, "name": { "type": 2, "optional": false } } }, { "object": { "estimatedInputTokens": { "type": 17, "optional": false }, "reservedTotalTokens": { "type": 17, "optional": false }, "accuracy": { "type": 420, "optional": false } } }, { "union": [421, 422] }, { "literal": "tokenizer" }, { "literal": "conservative_estimate" }, { "object": { "surfaceSeq": { "type": 17, "optional": false }, "selectedMessageIds": { "type": 424, "optional": false }, "assemblyHash": { "type": 2, "optional": false }, "providerVersions": { "type": 214, "optional": false } } }, { "array": 92 }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 426, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 427, "optional": false } } }, { "literal": "model.responded" }, { "object": { "stepId": { "type": 345, "optional": false }, "response": { "type": 428, "optional": false }, "reasoningSummary": { "type": 53, "optional": true } } }, { "object": { "requestId": { "type": 390, "optional": false }, "providerResponseId": { "type": 2, "optional": false }, "content": { "type": 367, "optional": false }, "toolCalls": { "type": 429, "optional": false }, "structuredOutput": { "type": 389, "optional": true }, "continuation": { "type": 431, "optional": false }, "turnDisposition": { "type": 457, "optional": false }, "finishReason": { "type": 461, "optional": false }, "usage": { "type": 292, "optional": false } } }, { "array": 430 }, { "object": { "outputIndex": { "type": 17, "optional": false }, "providerCallId": { "type": 2, "optional": false }, "toolName": { "type": 2, "optional": false }, "arguments": { "type": 384, "optional": false } } }, { "object": { "version": { "type": 23, "optional": false }, "protocol": { "type": 432, "optional": false }, "binding": { "type": 150, "optional": false }, "epochId": { "type": 2, "optional": false }, "responseId": { "type": 2, "optional": false }, "sourceRequestId": { "type": 390, "optional": false }, "requestInputDigest": { "type": 2, "optional": false }, "configurationDigest": { "type": 2, "optional": false }, "outputItems": { "type": 437, "optional": false }, "outputDigest": { "type": 2, "optional": false }, "providerMetadata": { "type": 216, "optional": false }, "capture": { "type": 452, "optional": false } } }, { "union": [433, 434, 435, 436] }, { "literal": "openai-responses" }, { "literal": "openai-chat" }, { "literal": "anthropic" }, { "literal": "gemini" }, { "array": 438 }, { "union": [439, 444, 447, 450] }, { "object": { "kind": { "type": 440, "optional": false }, "value": { "type": 441, "optional": false } } }, { "literal": "message" }, { "object": { "type": { "type": 440, "optional": false }, "role": { "type": 381, "optional": false }, "id": { "type": 2, "optional": false }, "content": { "type": 442, "optional": false }, "phase": { "type": 443, "optional": true } }, "index": 156 }, { "array": 216 }, { "union": [54, 27, 2] }, { "object": { "kind": { "type": 445, "optional": false }, "value": { "type": 446, "optional": false } } }, { "literal": "reasoning" }, { "object": { "type": { "type": 445, "optional": false }, "id": { "type": 2, "optional": false }, "summary": { "type": 442, "optional": false }, "encrypted_content": { "type": 443, "optional": true } }, "index": 156 }, { "object": { "kind": { "type": 448, "optional": false }, "value": { "type": 449, "optional": false } } }, { "literal": "function_call" }, { "object": { "type": { "type": 448, "optional": false }, "id": { "type": 2, "optional": false }, "call_id": { "type": 2, "optional": false }, "name": { "type": 2, "optional": false }, "arguments": { "type": 2, "optional": false } }, "index": 156 }, { "object": { "kind": { "type": 451, "optional": false }, "codecId": { "type": 2, "optional": false }, "codecVersion": { "type": 17, "optional": false }, "value": { "type": 216, "optional": false } } }, { "literal": "extension" }, { "object": { "source": { "type": 453, "optional": false }, "complete": { "type": 112, "optional": false } } }, { "union": [454, 455, 456] }, { "literal": "wire_json" }, { "literal": "wire_sse" }, { "literal": "sdk" }, { "union": [458, 459, 460] }, { "literal": "final" }, { "literal": "tool_calls" }, { "literal": "continue" }, { "union": [459, 462, 463, 464] }, { "literal": "stop" }, { "literal": "length" }, { "literal": "content_filter" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 466, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 467, "optional": false } } }, { "literal": "model.failed" }, { "object": { "stepId": { "type": 345, "optional": false }, "requestId": { "type": 390, "optional": false }, "error": { "type": 468, "optional": false }, "chargedUsage": { "type": 486, "optional": true }, "reasoningSummary": { "type": 53, "optional": true }, "retryAt": { "type": 53, "optional": true } } }, { "object": { "code": { "type": 469, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 174, "optional": false }, "retryAfterMs": { "type": 109, "optional": true }, "providerCode": { "type": 53, "optional": true }, "outcomeUnknown": { "type": 174, "optional": false }, "usage": { "type": 486, "optional": true }, "details": { "type": 487, "optional": true } } }, { "union": [338, 339, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485] }, { "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, 292] }, { "union": [54, 488] }, { "object": { "phase": { "type": 489, "optional": false }, "elapsedMs": { "type": 17, "optional": false }, "timeoutKind": { "type": 493, "optional": true }, "underlyingCode": { "type": 53, "optional": true }, "causes": { "type": 497, "optional": true } } }, { "union": [490, 491, 492] }, { "literal": "awaiting_headers" }, { "literal": "awaiting_first_frame" }, { "literal": "stream_idle" }, { "union": [54, 494, 495, 496] }, { "literal": "idle" }, { "literal": "total" }, { "literal": "deadline" }, { "union": [54, 498] }, { "array": 499 }, { "object": { "code": { "type": 53, "optional": true }, "message": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 501, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 502, "optional": false } } }, { "literal": "tool.call.requested" }, { "object": { "turnId": { "type": 230, "optional": false }, "call": { "type": 383, "optional": false }, "executionKey": { "type": 2, "optional": false }, "policyVersion": { "type": 2, "optional": false }, "definition": { "type": 503, "optional": false } } }, { "union": [27, 154] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 505, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 506, "optional": false } } }, { "literal": "tool.call.rejected" }, { "object": { "toolCallId": { "type": 314, "optional": false }, "error": { "type": 507, "optional": false } } }, { "object": { "code": { "type": 2, "optional": false }, "message": { "type": 2, "optional": false }, "retryable": { "type": 174, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 509, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 510, "optional": false } } }, { "literal": "tool.approval.requested" }, { "object": { "request": { "type": 511, "optional": false } } }, { "object": { "approvalId": { "type": 512, "optional": false }, "toolCallId": { "type": 314, "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": 514, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 515, "optional": false } } }, { "literal": "tool.approval.resolved" }, { "object": { "decision": { "type": 516, "optional": false }, "deferResume": { "type": 199, "optional": true } } }, { "object": { "approvalId": { "type": 512, "optional": false }, "toolCallId": { "type": 314, "optional": false }, "approved": { "type": 174, "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": 518, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 519, "optional": false } } }, { "literal": "tool.call.started" }, { "object": { "attempt": { "type": 520, "optional": false } } }, { "object": { "id": { "type": 521, "optional": false }, "toolCallId": { "type": 314, "optional": false }, "stepId": { "type": 345, "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": 523, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 524, "optional": false } } }, { "literal": "tool.call.completed" }, { "object": { "attemptId": { "type": 521, "optional": false }, "result": { "type": 525, "optional": false } } }, { "object": { "toolCallId": { "type": 314, "optional": false }, "outcome": { "type": 526, "optional": false }, "effect": { "type": 533, "optional": false }, "evidenceRef": { "type": 53, "optional": true } } }, { "union": [527, 529] }, { "object": { "status": { "type": 528, "optional": false }, "content": { "type": 367, "optional": false }, "data": { "type": 389, "optional": true } } }, { "literal": "success" }, { "object": { "status": { "type": 530, "optional": false }, "error": { "type": 507, "optional": false }, "data": { "type": 389, "optional": true } } }, { "union": [338, 531, 532] }, { "literal": "error" }, { "literal": "denied" }, { "union": [534, 535, 536] }, { "literal": "none" }, { "literal": "applied" }, { "literal": "unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 538, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 539, "optional": false } } }, { "literal": "tool.call.failed" }, { "object": { "attemptId": { "type": 521, "optional": false }, "toolCallId": { "type": 314, "optional": false }, "error": { "type": 507, "optional": false }, "effect": { "type": 540, "optional": false }, "retryAt": { "type": 53, "optional": true } } }, { "union": [534, 535] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 542, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 543, "optional": false } } }, { "literal": "tool.call.denied" }, { "object": { "toolCallId": { "type": 314, "optional": false }, "approvalId": { "type": 544, "optional": true }, "reason": { "type": 2, "optional": false } } }, { "union": [54, 512] }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 546, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 547, "optional": false } } }, { "literal": "tool.call.outcome_unknown" }, { "object": { "toolCallId": { "type": 314, "optional": false }, "attemptId": { "type": 521, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 549, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 550, "optional": false } } }, { "literal": "tool.call.reconciled" }, { "object": { "toolCallId": { "type": 314, "optional": false }, "attemptId": { "type": 521, "optional": false }, "decision": { "type": 551, "optional": false } } }, { "union": [552, 553, 555] }, { "object": { "kind": { "type": 350, "optional": false }, "result": { "type": 525, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "object": { "kind": { "type": 554, "optional": false }, "evidenceRef": { "type": 2, "optional": false } } }, { "literal": "not_applied" }, { "object": { "kind": { "type": 556, "optional": false }, "acceptedBy": { "type": 2, "optional": false }, "reason": { "type": 2, "optional": false } } }, { "literal": "abandon_unknown" }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 558, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 559, "optional": false } } }, { "literal": "tool.call.settled" }, { "object": { "message": { "type": 560, "optional": false } } }, { "object": { "role": { "type": 348, "optional": false }, "result": { "type": 525, "optional": false }, "id": { "type": 92, "optional": false }, "agentSessionId": { "type": 59, "optional": false }, "runId": { "type": 74, "optional": false }, "turnId": { "type": 230, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 562, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 70, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "causationId": { "type": 26, "optional": false }, "payload": { "type": 563, "optional": false } } }, { "literal": "surface.compacted" }, { "object": { "compaction": { "type": 564, "optional": false } } }, { "object": { "id": { "type": 2, "optional": false }, "expectedSurfaceSeq": { "type": 17, "optional": false }, "replacedMessageIds": { "type": 424, "optional": false }, "replacement": { "type": 366, "optional": false }, "sourceDigest": { "type": 2, "optional": false }, "summaryModelRef": { "type": 53, "optional": true }, "boundary": { "type": 565, "optional": true } } }, { "union": [54, 566, 567] }, { "literal": "turn" }, { "literal": "step_prefix" }, { "union": [569, 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, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627] }, { "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 572, "optional": true } } }, { "union": [54, 573] }, { "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 97, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 223, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 228, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 229, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 232, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 233, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 235, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 236, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 238, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 239, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 242, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 243, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 261, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 266, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 267, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 269, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 270, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 276, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 277, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 282, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 287, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 288, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 290, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 291, "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": 90, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 298, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 311, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 312, "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": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 318, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 320, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 321, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 323, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 324, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 326, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 327, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 329, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 330, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 332, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 333, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 335, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 336, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 342, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 343, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 355, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 356, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 358, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 359, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 361, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 362, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 364, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 365, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 378, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 379, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 392, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 393, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 426, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 427, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 466, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 467, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 501, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 502, "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": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 506, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 509, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 510, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 514, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 515, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 518, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 519, "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": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 524, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 538, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 539, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 542, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 543, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 546, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 547, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 549, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 550, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 558, "optional": false }, "envelopeVersion": { "type": 23, "optional": false }, "eventVersion": { "type": 23, "optional": false }, "scope": { "type": 317, "optional": false }, "stream": { "type": 11, "optional": false }, "streamSeq": { "type": 17, "optional": false }, "position": { "type": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 559, "optional": false } } }, { "object": { "id": { "type": 21, "optional": false }, "type": { "type": 562, "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": 570, "optional": false }, "occurredAt": { "type": 2, "optional": false }, "recordedAt": { "type": 2, "optional": false }, "metadata": { "type": 571, "optional": false }, "payload": { "type": 563, "optional": false } } }];
|
|
3
|
+
export const roots = { "CommitRequest": 0, "V1RuntimeEvent": 568 };
|
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),
|
|
@@ -82,7 +93,7 @@ const commands = {
|
|
|
82
93
|
return db
|
|
83
94
|
.prepare(`SELECT * FROM events WHERE run_id=? AND position>? AND position<=? AND (
|
|
84
95
|
event_type IN ('run.started','run.paused','run.resumed',${terminalEventParameters},'run.plugin.availability',
|
|
85
|
-
'run.team.planned','run.team.message.sent','run.search.started','run.search.branch.created',
|
|
96
|
+
'run.team.planned','run.team.member.stop_requested','run.team.message.sent','run.search.started','run.search.branch.created',
|
|
86
97
|
'run.search.branch.evaluated','run.search.converged','model.failed')
|
|
87
98
|
OR (event_type='tool.call.settled' AND json_extract(payload_json,'$.message.result.outcome.data.kind') IN ('todo_write','review_numeric_data'))
|
|
88
99
|
) ORDER BY position LIMIT ?`)
|
|
@@ -282,14 +293,23 @@ async function open() {
|
|
|
282
293
|
.immediate();
|
|
283
294
|
return { epoch, generation, startupTimings, ...integrity };
|
|
284
295
|
}
|
|
296
|
+
// The storage worker owns one connection. These statements use fixed SQL and
|
|
297
|
+
// synchronous get/all/run calls, so they cannot overlap an active iterator.
|
|
298
|
+
const journalStatements = new Map();
|
|
299
|
+
function journalStatement(sql) {
|
|
300
|
+
let statement = journalStatements.get(sql);
|
|
301
|
+
if (!statement) {
|
|
302
|
+
statement = db.prepare(sql);
|
|
303
|
+
journalStatements.set(sql, statement);
|
|
304
|
+
}
|
|
305
|
+
return statement;
|
|
306
|
+
}
|
|
285
307
|
function commit(request) {
|
|
286
308
|
let next = state;
|
|
287
309
|
let nextCheckpoint = checkpoint;
|
|
288
310
|
const result = db
|
|
289
311
|
.transaction(() => {
|
|
290
|
-
const previous =
|
|
291
|
-
.prepare('SELECT command_hash FROM command_receipts WHERE command_id=?')
|
|
292
|
-
.get(request.commandId);
|
|
312
|
+
const previous = journalStatement('SELECT command_hash FROM command_receipts WHERE command_id=?').get(request.commandId);
|
|
293
313
|
if (previous) {
|
|
294
314
|
if (previous.command_hash !== request.commandHash)
|
|
295
315
|
throw new RuntimeError('IDEMPOTENCY_CONFLICT', 'command ID already has another hash');
|
|
@@ -307,7 +327,7 @@ function commit(request) {
|
|
|
307
327
|
const seqs = new Map(expected.map(({ stream, lastSeq }) => [streamKey(stream), lastSeq]));
|
|
308
328
|
const recordedAt = new Date().toISOString();
|
|
309
329
|
let position = BigInt(head());
|
|
310
|
-
const allocated = BigInt(String(
|
|
330
|
+
const allocated = BigInt(String(journalStatement("SELECT CAST(seq AS TEXT) value FROM sqlite_sequence WHERE name='events'").get()
|
|
311
331
|
?.value ?? '0'));
|
|
312
332
|
if (allocated > position)
|
|
313
333
|
position = allocated;
|
|
@@ -368,8 +388,8 @@ function commit(request) {
|
|
|
368
388
|
throw new RuntimeError('PROJECTION_FAILED', error instanceof Error ? error.message : 'projector failed');
|
|
369
389
|
}
|
|
370
390
|
for (const item of expected)
|
|
371
|
-
|
|
372
|
-
|
|
391
|
+
journalStatement('INSERT INTO event_streams VALUES(?,?,?) ON CONFLICT(scope_kind,stream_id) DO UPDATE SET last_seq=excluded.last_seq').run(item.stream.kind, item.stream.id, seqs.get(streamKey(item.stream)));
|
|
392
|
+
journalStatement('INSERT INTO command_receipts VALUES(?,?,?,?,?)').run(request.commandId, request.commandHash, events.length, BigInt(events[0].position), BigInt(events.at(-1).position));
|
|
373
393
|
return {
|
|
374
394
|
commandId: request.commandId,
|
|
375
395
|
events,
|
|
@@ -385,7 +405,7 @@ function commit(request) {
|
|
|
385
405
|
}
|
|
386
406
|
function insertEvent(e) {
|
|
387
407
|
const s = e.scope;
|
|
388
|
-
|
|
408
|
+
journalStatement(`INSERT INTO events(position,event_id,envelope_version,event_type,event_version,workspace_id,scope_kind,session_id,run_id,agent_id,agent_session_id,stream_id,stream_seq,occurred_at,recorded_at,correlation_id,causation_id,command_id,command_hash,command_event_index,command_event_count,actor_json,payload_json) VALUES(${Array(23).fill('?').join(',')})`).run(BigInt(e.position), e.id, 1, e.type, e.eventVersion, s.workspaceId, s.kind, 'sessionId' in s ? (s.sessionId ?? null) : null, 'runId' in s ? (s.runId ?? null) : null, 'agentId' in s ? s.agentId : null, 'agentSessionId' in s ? s.agentSessionId : null, e.stream.id, e.streamSeq, e.occurredAt, e.recordedAt, e.metadata.correlationId, e.metadata.causationId, e.metadata.commandId, e.metadata.commandHash, e.metadata.commandEventIndex, e.metadata.commandEventCount, JSON.stringify(e.metadata.actor), JSON.stringify(e.payload));
|
|
389
409
|
}
|
|
390
410
|
function eventFromRow(row) {
|
|
391
411
|
if (row.envelope_version !== 1n || row.event_version !== 1n)
|
|
@@ -429,8 +449,7 @@ function safeCount(value) {
|
|
|
429
449
|
return Number(value);
|
|
430
450
|
}
|
|
431
451
|
function readStreamHead(stream) {
|
|
432
|
-
const row =
|
|
433
|
-
.prepare('SELECT last_seq FROM event_streams WHERE scope_kind=? AND stream_id=?')
|
|
452
|
+
const row = journalStatement('SELECT last_seq FROM event_streams WHERE scope_kind=? AND stream_id=?')
|
|
434
453
|
.safeIntegers()
|
|
435
454
|
.get(stream.kind, stream.id);
|
|
436
455
|
return row ? safeCount(row.last_seq) : 0;
|
|
@@ -439,16 +458,12 @@ function readStreamHeads(streams) {
|
|
|
439
458
|
return streams.map((stream) => ({ stream, lastSeq: readStreamHead(stream) }));
|
|
440
459
|
}
|
|
441
460
|
function nextStepOrdinal(turnId) {
|
|
442
|
-
return Number(
|
|
443
|
-
.prepare('SELECT COALESCE(MAX(ordinal),0)+1 value FROM steps WHERE generation=? AND turn_id=?')
|
|
444
|
-
.get(generation, turnId).value);
|
|
461
|
+
return Number(journalStatement('SELECT COALESCE(MAX(ordinal),0)+1 value FROM steps WHERE generation=? AND turn_id=?').get(generation, turnId).value);
|
|
445
462
|
}
|
|
446
463
|
function readRunTails(runs) {
|
|
447
464
|
if (!runs.length)
|
|
448
465
|
return [];
|
|
449
|
-
const query =
|
|
450
|
-
.prepare('SELECT * FROM events WHERE run_id=? AND position>? ORDER BY position')
|
|
451
|
-
.safeIntegers();
|
|
466
|
+
const query = journalStatement('SELECT * FROM events WHERE run_id=? AND position>? ORDER BY position').safeIntegers();
|
|
452
467
|
return runs.map(({ runId, after }) => ({
|
|
453
468
|
runId,
|
|
454
469
|
events: query.all(runId, BigInt(after ?? '0')).map(eventFromRow),
|
|
@@ -505,8 +520,7 @@ function scanBackupCoverage(database, through) {
|
|
|
505
520
|
return { eventCount, refs };
|
|
506
521
|
}
|
|
507
522
|
function receipt(commandId, deduplicated) {
|
|
508
|
-
const events =
|
|
509
|
-
.prepare('SELECT * FROM events WHERE command_id=? ORDER BY command_event_index')
|
|
523
|
+
const events = journalStatement('SELECT * FROM events WHERE command_id=? ORDER BY command_event_index')
|
|
510
524
|
.safeIntegers()
|
|
511
525
|
.all(commandId)
|
|
512
526
|
.map(eventFromRow);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saturn-universe/storage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-dev.10",
|
|
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.
|
|
11
|
-
"@saturn-universe/projections": "0.1.
|
|
10
|
+
"@saturn-universe/core": "0.1.2-dev.10",
|
|
11
|
+
"@saturn-universe/projections": "0.1.2-dev.10",
|
|
12
12
|
"better-sqlite3": "13.0.3"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|