@exaudeus/workrail 3.24.4 → 3.26.0
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/cli/commands/index.d.ts +6 -0
- package/dist/cli/commands/index.js +14 -1
- package/dist/cli/commands/version.d.ts +6 -0
- package/dist/cli/commands/version.js +14 -0
- package/dist/cli/commands/worktrain-await.d.ts +35 -0
- package/dist/cli/commands/worktrain-await.js +207 -0
- package/dist/cli/commands/worktrain-inbox.d.ts +23 -0
- package/dist/cli/commands/worktrain-inbox.js +82 -0
- package/dist/cli/commands/worktrain-init.d.ts +23 -0
- package/dist/cli/commands/worktrain-init.js +338 -0
- package/dist/cli/commands/worktrain-spawn.d.ts +28 -0
- package/dist/cli/commands/worktrain-spawn.js +106 -0
- package/dist/cli/commands/worktrain-tell.d.ts +25 -0
- package/dist/cli/commands/worktrain-tell.js +32 -0
- package/dist/cli-worktrain.d.ts +2 -0
- package/dist/cli-worktrain.js +169 -0
- package/dist/cli.js +100 -0
- package/dist/config/config-file.d.ts +2 -0
- package/dist/config/config-file.js +55 -0
- package/dist/console/assets/index-8dh0Psu-.css +1 -0
- package/dist/console/assets/{index-TMfptYpQ.js → index-HhtarvD5.js} +10 -10
- package/dist/console/index.html +2 -2
- package/dist/daemon/agent-loop.d.ts +90 -0
- package/dist/daemon/agent-loop.js +214 -0
- package/dist/daemon/pi-mono-loader.d.ts +0 -0
- package/dist/daemon/pi-mono-loader.js +1 -0
- package/dist/daemon/soul-template.d.ts +2 -0
- package/dist/daemon/soul-template.js +22 -0
- package/dist/daemon/workflow-runner.d.ts +63 -0
- package/dist/daemon/workflow-runner.js +689 -0
- package/dist/infrastructure/session/HttpServer.js +2 -2
- package/dist/manifest.json +226 -50
- package/dist/mcp/handlers/v2-execution/start.d.ts +2 -1
- package/dist/mcp/handlers/v2-execution/start.js +4 -3
- package/dist/mcp/output-schemas.d.ts +154 -154
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/transports/bridge-entry.js +20 -2
- package/dist/mcp/transports/bridge-events.d.ts +34 -0
- package/dist/mcp/transports/bridge-events.js +24 -0
- package/dist/mcp/transports/fatal-exit.d.ts +5 -0
- package/dist/mcp/transports/fatal-exit.js +82 -0
- package/dist/mcp/transports/http-entry.js +3 -0
- package/dist/mcp/transports/stdio-entry.js +3 -7
- package/dist/mcp/v2/tools.d.ts +7 -7
- package/dist/trigger/delivery-action.d.ts +37 -0
- package/dist/trigger/delivery-action.js +204 -0
- package/dist/trigger/delivery-client.d.ts +11 -0
- package/dist/trigger/delivery-client.js +27 -0
- package/dist/trigger/index.d.ts +5 -0
- package/dist/trigger/index.js +8 -0
- package/dist/trigger/trigger-listener.d.ts +32 -0
- package/dist/trigger/trigger-listener.js +176 -0
- package/dist/trigger/trigger-router.d.ts +38 -0
- package/dist/trigger/trigger-router.js +343 -0
- package/dist/trigger/trigger-store.d.ts +39 -0
- package/dist/trigger/trigger-store.js +698 -0
- package/dist/trigger/types.d.ts +70 -0
- package/dist/trigger/types.js +10 -0
- package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +22 -22
- package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +114 -114
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +454 -454
- package/dist/v2/durable-core/schemas/session/blockers.d.ts +14 -14
- package/dist/v2/durable-core/schemas/session/events.d.ts +93 -93
- package/dist/v2/durable-core/schemas/session/gaps.d.ts +2 -2
- package/dist/v2/durable-core/schemas/session/validation-event.d.ts +4 -4
- package/dist/v2/infra/in-memory/daemon-registry/index.d.ts +14 -0
- package/dist/v2/infra/in-memory/daemon-registry/index.js +32 -0
- package/dist/v2/infra/in-memory/keyed-async-queue/index.d.ts +5 -0
- package/dist/v2/infra/in-memory/keyed-async-queue/index.js +32 -0
- package/dist/v2/usecases/console-routes.d.ts +3 -1
- package/dist/v2/usecases/console-routes.js +132 -1
- package/dist/v2/usecases/console-service.d.ts +2 -0
- package/dist/v2/usecases/console-service.js +18 -2
- package/dist/v2/usecases/console-types.d.ts +2 -0
- package/package.json +6 -2
- package/spec/workflow-tags.json +1 -0
- package/workflows/classify-task-workflow.json +68 -0
- package/workflows/coding-task-workflow-agentic.lean.v2.json +43 -13
- package/workflows/workflow-for-workflows.json +4 -2
- package/workflows/workflow-for-workflows.v2.json +4 -2
- package/dist/console/assets/index-BXRk3te_.css +0 -1
- package/workflows/rich-object-contribution.json +0 -258
|
@@ -63,8 +63,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
63
63
|
data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
65
|
kind: "session_created";
|
|
66
|
-
sessionId: string;
|
|
67
66
|
data: {};
|
|
67
|
+
sessionId: string;
|
|
68
68
|
v: 1;
|
|
69
69
|
eventIndex: number;
|
|
70
70
|
eventId: string;
|
|
@@ -75,8 +75,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
75
75
|
} | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
kind: "session_created";
|
|
78
|
-
sessionId: string;
|
|
79
78
|
data: {};
|
|
79
|
+
sessionId: string;
|
|
80
80
|
v: 1;
|
|
81
81
|
eventIndex: number;
|
|
82
82
|
eventId: string;
|
|
@@ -100,93 +100,93 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
100
100
|
type: z.ZodLiteral<"short_string">;
|
|
101
101
|
value: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
value: string;
|
|
104
103
|
type: "short_string";
|
|
105
|
-
}, {
|
|
106
104
|
value: string;
|
|
105
|
+
}, {
|
|
107
106
|
type: "short_string";
|
|
107
|
+
value: string;
|
|
108
108
|
}>, z.ZodObject<{
|
|
109
109
|
type: z.ZodLiteral<"git_sha1">;
|
|
110
110
|
value: z.ZodString;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
value: string;
|
|
113
112
|
type: "git_sha1";
|
|
114
|
-
}, {
|
|
115
113
|
value: string;
|
|
114
|
+
}, {
|
|
116
115
|
type: "git_sha1";
|
|
116
|
+
value: string;
|
|
117
117
|
}>, z.ZodObject<{
|
|
118
118
|
type: z.ZodLiteral<"sha256">;
|
|
119
119
|
value: z.ZodString;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
value: string;
|
|
122
121
|
type: "sha256";
|
|
123
|
-
}, {
|
|
124
122
|
value: string;
|
|
123
|
+
}, {
|
|
125
124
|
type: "sha256";
|
|
125
|
+
value: string;
|
|
126
126
|
}>, z.ZodObject<{
|
|
127
127
|
type: z.ZodLiteral<"path">;
|
|
128
128
|
value: z.ZodString;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
value: string;
|
|
131
130
|
type: "path";
|
|
132
|
-
}, {
|
|
133
131
|
value: string;
|
|
132
|
+
}, {
|
|
134
133
|
type: "path";
|
|
134
|
+
value: string;
|
|
135
135
|
}>]>;
|
|
136
136
|
confidence: z.ZodEnum<["low", "med", "high"]>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
value: {
|
|
139
|
-
value: string;
|
|
140
139
|
type: "short_string";
|
|
141
|
-
} | {
|
|
142
140
|
value: string;
|
|
143
|
-
type: "git_sha1";
|
|
144
141
|
} | {
|
|
142
|
+
type: "git_sha1";
|
|
145
143
|
value: string;
|
|
146
|
-
type: "sha256";
|
|
147
144
|
} | {
|
|
145
|
+
type: "sha256";
|
|
148
146
|
value: string;
|
|
147
|
+
} | {
|
|
149
148
|
type: "path";
|
|
149
|
+
value: string;
|
|
150
150
|
};
|
|
151
|
-
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
152
151
|
confidence: "high" | "low" | "med";
|
|
152
|
+
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
153
153
|
}, {
|
|
154
154
|
value: {
|
|
155
|
-
value: string;
|
|
156
155
|
type: "short_string";
|
|
157
|
-
} | {
|
|
158
156
|
value: string;
|
|
159
|
-
type: "git_sha1";
|
|
160
157
|
} | {
|
|
158
|
+
type: "git_sha1";
|
|
161
159
|
value: string;
|
|
162
|
-
type: "sha256";
|
|
163
160
|
} | {
|
|
161
|
+
type: "sha256";
|
|
164
162
|
value: string;
|
|
163
|
+
} | {
|
|
165
164
|
type: "path";
|
|
165
|
+
value: string;
|
|
166
166
|
};
|
|
167
|
-
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
168
167
|
confidence: "high" | "low" | "med";
|
|
168
|
+
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
169
169
|
}>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
kind: "observation_recorded";
|
|
172
|
-
sessionId: string;
|
|
173
172
|
data: {
|
|
174
173
|
value: {
|
|
175
|
-
value: string;
|
|
176
174
|
type: "short_string";
|
|
177
|
-
} | {
|
|
178
175
|
value: string;
|
|
179
|
-
type: "git_sha1";
|
|
180
176
|
} | {
|
|
177
|
+
type: "git_sha1";
|
|
181
178
|
value: string;
|
|
182
|
-
type: "sha256";
|
|
183
179
|
} | {
|
|
180
|
+
type: "sha256";
|
|
184
181
|
value: string;
|
|
182
|
+
} | {
|
|
185
183
|
type: "path";
|
|
184
|
+
value: string;
|
|
186
185
|
};
|
|
187
|
-
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
188
186
|
confidence: "high" | "low" | "med";
|
|
187
|
+
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
189
188
|
};
|
|
189
|
+
sessionId: string;
|
|
190
190
|
v: 1;
|
|
191
191
|
eventIndex: number;
|
|
192
192
|
eventId: string;
|
|
@@ -194,24 +194,24 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
194
194
|
scope?: undefined;
|
|
195
195
|
}, {
|
|
196
196
|
kind: "observation_recorded";
|
|
197
|
-
sessionId: string;
|
|
198
197
|
data: {
|
|
199
198
|
value: {
|
|
200
|
-
value: string;
|
|
201
199
|
type: "short_string";
|
|
202
|
-
} | {
|
|
203
200
|
value: string;
|
|
204
|
-
type: "git_sha1";
|
|
205
201
|
} | {
|
|
202
|
+
type: "git_sha1";
|
|
206
203
|
value: string;
|
|
207
|
-
type: "sha256";
|
|
208
204
|
} | {
|
|
205
|
+
type: "sha256";
|
|
209
206
|
value: string;
|
|
207
|
+
} | {
|
|
210
208
|
type: "path";
|
|
209
|
+
value: string;
|
|
211
210
|
};
|
|
212
|
-
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
213
211
|
confidence: "high" | "low" | "med";
|
|
212
|
+
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
214
213
|
};
|
|
214
|
+
sessionId: string;
|
|
215
215
|
v: 1;
|
|
216
216
|
eventIndex: number;
|
|
217
217
|
eventId: string;
|
|
@@ -250,13 +250,13 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
250
250
|
}>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
252
|
kind: "run_started";
|
|
253
|
-
sessionId: string;
|
|
254
253
|
data: {
|
|
255
254
|
workflowId: string;
|
|
256
255
|
workflowHash: never;
|
|
257
256
|
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
258
257
|
workflowSourceRef: string;
|
|
259
258
|
};
|
|
259
|
+
sessionId: string;
|
|
260
260
|
v: 1;
|
|
261
261
|
eventIndex: number;
|
|
262
262
|
eventId: string;
|
|
@@ -266,13 +266,13 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
266
266
|
};
|
|
267
267
|
}, {
|
|
268
268
|
kind: "run_started";
|
|
269
|
-
sessionId: string;
|
|
270
269
|
data: {
|
|
271
270
|
workflowId: string;
|
|
272
271
|
workflowHash: string;
|
|
273
272
|
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
274
273
|
workflowSourceRef: string;
|
|
275
274
|
};
|
|
275
|
+
sessionId: string;
|
|
276
276
|
v: 1;
|
|
277
277
|
eventIndex: number;
|
|
278
278
|
eventId: string;
|
|
@@ -316,13 +316,13 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
316
316
|
}>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
318
|
kind: "node_created";
|
|
319
|
-
sessionId: string;
|
|
320
319
|
data: {
|
|
321
320
|
snapshotRef: never;
|
|
322
321
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
323
322
|
parentNodeId: string | null;
|
|
324
323
|
workflowHash: never;
|
|
325
324
|
};
|
|
325
|
+
sessionId: string;
|
|
326
326
|
v: 1;
|
|
327
327
|
eventIndex: number;
|
|
328
328
|
eventId: string;
|
|
@@ -333,13 +333,13 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
333
333
|
};
|
|
334
334
|
}, {
|
|
335
335
|
kind: "node_created";
|
|
336
|
-
sessionId: string;
|
|
337
336
|
data: {
|
|
338
337
|
snapshotRef: string;
|
|
339
338
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
340
339
|
parentNodeId: string | null;
|
|
341
340
|
workflowHash: string;
|
|
342
341
|
};
|
|
342
|
+
sessionId: string;
|
|
343
343
|
v: 1;
|
|
344
344
|
eventIndex: number;
|
|
345
345
|
eventId: string;
|
|
@@ -412,7 +412,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
412
412
|
}>;
|
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
|
414
414
|
kind: "edge_created";
|
|
415
|
-
sessionId: string;
|
|
416
415
|
data: {
|
|
417
416
|
cause: {
|
|
418
417
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -422,6 +421,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
422
421
|
fromNodeId: string;
|
|
423
422
|
toNodeId: string;
|
|
424
423
|
};
|
|
424
|
+
sessionId: string;
|
|
425
425
|
v: 1;
|
|
426
426
|
eventIndex: number;
|
|
427
427
|
eventId: string;
|
|
@@ -431,7 +431,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
431
431
|
};
|
|
432
432
|
}, {
|
|
433
433
|
kind: "edge_created";
|
|
434
|
-
sessionId: string;
|
|
435
434
|
data: {
|
|
436
435
|
cause: {
|
|
437
436
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -441,6 +440,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
441
440
|
fromNodeId: string;
|
|
442
441
|
toNodeId: string;
|
|
443
442
|
};
|
|
443
|
+
sessionId: string;
|
|
444
444
|
v: 1;
|
|
445
445
|
eventIndex: number;
|
|
446
446
|
eventId: string;
|
|
@@ -478,11 +478,11 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
478
478
|
kind: z.ZodLiteral<"context_key">;
|
|
479
479
|
key: z.ZodString;
|
|
480
480
|
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
key: string;
|
|
482
481
|
kind: "context_key";
|
|
483
|
-
}, {
|
|
484
482
|
key: string;
|
|
483
|
+
}, {
|
|
485
484
|
kind: "context_key";
|
|
485
|
+
key: string;
|
|
486
486
|
}>, z.ZodObject<{
|
|
487
487
|
kind: z.ZodLiteral<"context_budget">;
|
|
488
488
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -523,8 +523,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
523
523
|
message: string;
|
|
524
524
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
525
525
|
pointer: {
|
|
526
|
-
key: string;
|
|
527
526
|
kind: "context_key";
|
|
527
|
+
key: string;
|
|
528
528
|
} | {
|
|
529
529
|
kind: "context_budget";
|
|
530
530
|
} | {
|
|
@@ -542,8 +542,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
542
542
|
message: string;
|
|
543
543
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
544
544
|
pointer: {
|
|
545
|
-
key: string;
|
|
546
545
|
kind: "context_key";
|
|
546
|
+
key: string;
|
|
547
547
|
} | {
|
|
548
548
|
kind: "context_budget";
|
|
549
549
|
} | {
|
|
@@ -563,8 +563,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
563
563
|
message: string;
|
|
564
564
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
565
565
|
pointer: {
|
|
566
|
-
key: string;
|
|
567
566
|
kind: "context_key";
|
|
567
|
+
key: string;
|
|
568
568
|
} | {
|
|
569
569
|
kind: "context_budget";
|
|
570
570
|
} | {
|
|
@@ -584,8 +584,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
584
584
|
message: string;
|
|
585
585
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
586
586
|
pointer: {
|
|
587
|
-
key: string;
|
|
588
587
|
kind: "context_key";
|
|
588
|
+
key: string;
|
|
589
589
|
} | {
|
|
590
590
|
kind: "context_budget";
|
|
591
591
|
} | {
|
|
@@ -605,8 +605,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
605
605
|
message: string;
|
|
606
606
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
607
607
|
pointer: {
|
|
608
|
-
key: string;
|
|
609
608
|
kind: "context_key";
|
|
609
|
+
key: string;
|
|
610
610
|
} | {
|
|
611
611
|
kind: "context_budget";
|
|
612
612
|
} | {
|
|
@@ -626,8 +626,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
626
626
|
message: string;
|
|
627
627
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
628
628
|
pointer: {
|
|
629
|
-
key: string;
|
|
630
629
|
kind: "context_key";
|
|
630
|
+
key: string;
|
|
631
631
|
} | {
|
|
632
632
|
kind: "context_budget";
|
|
633
633
|
} | {
|
|
@@ -650,8 +650,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
650
650
|
message: string;
|
|
651
651
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
652
652
|
pointer: {
|
|
653
|
-
key: string;
|
|
654
653
|
kind: "context_key";
|
|
654
|
+
key: string;
|
|
655
655
|
} | {
|
|
656
656
|
kind: "context_budget";
|
|
657
657
|
} | {
|
|
@@ -674,8 +674,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
674
674
|
message: string;
|
|
675
675
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
676
676
|
pointer: {
|
|
677
|
-
key: string;
|
|
678
677
|
kind: "context_key";
|
|
678
|
+
key: string;
|
|
679
679
|
} | {
|
|
680
680
|
kind: "context_budget";
|
|
681
681
|
} | {
|
|
@@ -702,8 +702,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
702
702
|
toNodeId: string;
|
|
703
703
|
}>]>;
|
|
704
704
|
}, "strip", z.ZodTypeAny, {
|
|
705
|
-
intent: "ack_pending";
|
|
706
|
-
attemptId: string;
|
|
707
705
|
outcome: {
|
|
708
706
|
kind: "blocked";
|
|
709
707
|
blockers: {
|
|
@@ -711,8 +709,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
711
709
|
message: string;
|
|
712
710
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
713
711
|
pointer: {
|
|
714
|
-
key: string;
|
|
715
712
|
kind: "context_key";
|
|
713
|
+
key: string;
|
|
716
714
|
} | {
|
|
717
715
|
kind: "context_budget";
|
|
718
716
|
} | {
|
|
@@ -732,9 +730,9 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
732
730
|
kind: "advanced";
|
|
733
731
|
toNodeId: string;
|
|
734
732
|
};
|
|
735
|
-
}, {
|
|
736
733
|
intent: "ack_pending";
|
|
737
734
|
attemptId: string;
|
|
735
|
+
}, {
|
|
738
736
|
outcome: {
|
|
739
737
|
kind: "blocked";
|
|
740
738
|
blockers: {
|
|
@@ -742,8 +740,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
742
740
|
message: string;
|
|
743
741
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
744
742
|
pointer: {
|
|
745
|
-
key: string;
|
|
746
743
|
kind: "context_key";
|
|
744
|
+
key: string;
|
|
747
745
|
} | {
|
|
748
746
|
kind: "context_budget";
|
|
749
747
|
} | {
|
|
@@ -763,13 +761,12 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
763
761
|
kind: "advanced";
|
|
764
762
|
toNodeId: string;
|
|
765
763
|
};
|
|
764
|
+
intent: "ack_pending";
|
|
765
|
+
attemptId: string;
|
|
766
766
|
}>;
|
|
767
767
|
}, "strip", z.ZodTypeAny, {
|
|
768
768
|
kind: "advance_recorded";
|
|
769
|
-
sessionId: string;
|
|
770
769
|
data: {
|
|
771
|
-
intent: "ack_pending";
|
|
772
|
-
attemptId: string;
|
|
773
770
|
outcome: {
|
|
774
771
|
kind: "blocked";
|
|
775
772
|
blockers: {
|
|
@@ -777,8 +774,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
777
774
|
message: string;
|
|
778
775
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
779
776
|
pointer: {
|
|
780
|
-
key: string;
|
|
781
777
|
kind: "context_key";
|
|
778
|
+
key: string;
|
|
782
779
|
} | {
|
|
783
780
|
kind: "context_budget";
|
|
784
781
|
} | {
|
|
@@ -798,7 +795,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
798
795
|
kind: "advanced";
|
|
799
796
|
toNodeId: string;
|
|
800
797
|
};
|
|
798
|
+
intent: "ack_pending";
|
|
799
|
+
attemptId: string;
|
|
801
800
|
};
|
|
801
|
+
sessionId: string;
|
|
802
802
|
v: 1;
|
|
803
803
|
eventIndex: number;
|
|
804
804
|
eventId: string;
|
|
@@ -809,10 +809,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
809
809
|
};
|
|
810
810
|
}, {
|
|
811
811
|
kind: "advance_recorded";
|
|
812
|
-
sessionId: string;
|
|
813
812
|
data: {
|
|
814
|
-
intent: "ack_pending";
|
|
815
|
-
attemptId: string;
|
|
816
813
|
outcome: {
|
|
817
814
|
kind: "blocked";
|
|
818
815
|
blockers: {
|
|
@@ -820,8 +817,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
820
817
|
message: string;
|
|
821
818
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
822
819
|
pointer: {
|
|
823
|
-
key: string;
|
|
824
820
|
kind: "context_key";
|
|
821
|
+
key: string;
|
|
825
822
|
} | {
|
|
826
823
|
kind: "context_budget";
|
|
827
824
|
} | {
|
|
@@ -841,7 +838,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
841
838
|
kind: "advanced";
|
|
842
839
|
toNodeId: string;
|
|
843
840
|
};
|
|
841
|
+
intent: "ack_pending";
|
|
842
|
+
attemptId: string;
|
|
844
843
|
};
|
|
844
|
+
sessionId: string;
|
|
845
845
|
v: 1;
|
|
846
846
|
eventIndex: number;
|
|
847
847
|
eventId: string;
|
|
@@ -895,36 +895,36 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
895
895
|
}>;
|
|
896
896
|
}, "strict", z.ZodTypeAny, {
|
|
897
897
|
contractRef: string;
|
|
898
|
-
attemptId: string;
|
|
899
|
-
validationId: string;
|
|
900
898
|
result: {
|
|
901
899
|
issues: readonly string[];
|
|
902
900
|
valid: boolean;
|
|
903
901
|
suggestions: readonly string[];
|
|
904
902
|
};
|
|
905
|
-
}, {
|
|
906
|
-
contractRef: string;
|
|
907
903
|
attemptId: string;
|
|
908
904
|
validationId: string;
|
|
905
|
+
}, {
|
|
906
|
+
contractRef: string;
|
|
909
907
|
result: {
|
|
910
908
|
issues: readonly string[];
|
|
911
909
|
valid: boolean;
|
|
912
910
|
suggestions: readonly string[];
|
|
913
911
|
};
|
|
912
|
+
attemptId: string;
|
|
913
|
+
validationId: string;
|
|
914
914
|
}>;
|
|
915
915
|
}, "strip", z.ZodTypeAny, {
|
|
916
916
|
kind: "validation_performed";
|
|
917
|
-
sessionId: string;
|
|
918
917
|
data: {
|
|
919
918
|
contractRef: string;
|
|
920
|
-
attemptId: string;
|
|
921
|
-
validationId: string;
|
|
922
919
|
result: {
|
|
923
920
|
issues: readonly string[];
|
|
924
921
|
valid: boolean;
|
|
925
922
|
suggestions: readonly string[];
|
|
926
923
|
};
|
|
924
|
+
attemptId: string;
|
|
925
|
+
validationId: string;
|
|
927
926
|
};
|
|
927
|
+
sessionId: string;
|
|
928
928
|
v: 1;
|
|
929
929
|
eventIndex: number;
|
|
930
930
|
eventId: string;
|
|
@@ -935,17 +935,17 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
935
935
|
};
|
|
936
936
|
}, {
|
|
937
937
|
kind: "validation_performed";
|
|
938
|
-
sessionId: string;
|
|
939
938
|
data: {
|
|
940
939
|
contractRef: string;
|
|
941
|
-
attemptId: string;
|
|
942
|
-
validationId: string;
|
|
943
940
|
result: {
|
|
944
941
|
issues: readonly string[];
|
|
945
942
|
valid: boolean;
|
|
946
943
|
suggestions: readonly string[];
|
|
947
944
|
};
|
|
945
|
+
attemptId: string;
|
|
946
|
+
validationId: string;
|
|
948
947
|
};
|
|
948
|
+
sessionId: string;
|
|
949
949
|
v: 1;
|
|
950
950
|
eventIndex: number;
|
|
951
951
|
eventId: string;
|
|
@@ -1063,7 +1063,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1063
1063
|
}>;
|
|
1064
1064
|
}, "strip", z.ZodTypeAny, {
|
|
1065
1065
|
kind: "node_output_appended";
|
|
1066
|
-
sessionId: string;
|
|
1067
1066
|
data: {
|
|
1068
1067
|
outputId: string;
|
|
1069
1068
|
outputChannel: "recap" | "artifact";
|
|
@@ -1079,6 +1078,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1079
1078
|
};
|
|
1080
1079
|
supersedesOutputId?: string | undefined;
|
|
1081
1080
|
};
|
|
1081
|
+
sessionId: string;
|
|
1082
1082
|
v: 1;
|
|
1083
1083
|
eventIndex: number;
|
|
1084
1084
|
eventId: string;
|
|
@@ -1089,7 +1089,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1089
1089
|
};
|
|
1090
1090
|
}, {
|
|
1091
1091
|
kind: "node_output_appended";
|
|
1092
|
-
sessionId: string;
|
|
1093
1092
|
data: {
|
|
1094
1093
|
outputId: string;
|
|
1095
1094
|
outputChannel: "recap" | "artifact";
|
|
@@ -1105,6 +1104,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1105
1104
|
};
|
|
1106
1105
|
supersedesOutputId?: string | undefined;
|
|
1107
1106
|
};
|
|
1107
|
+
sessionId: string;
|
|
1108
1108
|
v: 1;
|
|
1109
1109
|
eventIndex: number;
|
|
1110
1110
|
eventId: string;
|
|
@@ -1180,7 +1180,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1180
1180
|
}>;
|
|
1181
1181
|
}, "strip", z.ZodTypeAny, {
|
|
1182
1182
|
kind: "assessment_recorded";
|
|
1183
|
-
sessionId: string;
|
|
1184
1183
|
data: {
|
|
1185
1184
|
assessmentId: string;
|
|
1186
1185
|
dimensions: readonly {
|
|
@@ -1194,6 +1193,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1194
1193
|
normalizationNotes: readonly string[];
|
|
1195
1194
|
summary?: string | undefined;
|
|
1196
1195
|
};
|
|
1196
|
+
sessionId: string;
|
|
1197
1197
|
v: 1;
|
|
1198
1198
|
eventIndex: number;
|
|
1199
1199
|
eventId: string;
|
|
@@ -1204,7 +1204,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1204
1204
|
};
|
|
1205
1205
|
}, {
|
|
1206
1206
|
kind: "assessment_recorded";
|
|
1207
|
-
sessionId: string;
|
|
1208
1207
|
data: {
|
|
1209
1208
|
assessmentId: string;
|
|
1210
1209
|
dimensions: readonly {
|
|
@@ -1218,6 +1217,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1218
1217
|
normalizationNotes: readonly string[];
|
|
1219
1218
|
summary?: string | undefined;
|
|
1220
1219
|
};
|
|
1220
|
+
sessionId: string;
|
|
1221
1221
|
v: 1;
|
|
1222
1222
|
eventIndex: number;
|
|
1223
1223
|
eventId: string;
|
|
@@ -1292,7 +1292,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1292
1292
|
}>;
|
|
1293
1293
|
}, "strip", z.ZodTypeAny, {
|
|
1294
1294
|
kind: "assessment_consequence_applied";
|
|
1295
|
-
sessionId: string;
|
|
1296
1295
|
data: {
|
|
1297
1296
|
assessmentId: string;
|
|
1298
1297
|
effect: {
|
|
@@ -1305,6 +1304,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1305
1304
|
dimensionId: string;
|
|
1306
1305
|
};
|
|
1307
1306
|
};
|
|
1307
|
+
sessionId: string;
|
|
1308
1308
|
v: 1;
|
|
1309
1309
|
eventIndex: number;
|
|
1310
1310
|
eventId: string;
|
|
@@ -1315,7 +1315,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1315
1315
|
};
|
|
1316
1316
|
}, {
|
|
1317
1317
|
kind: "assessment_consequence_applied";
|
|
1318
|
-
sessionId: string;
|
|
1319
1318
|
data: {
|
|
1320
1319
|
assessmentId: string;
|
|
1321
1320
|
effect: {
|
|
@@ -1328,6 +1327,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1328
1327
|
dimensionId: string;
|
|
1329
1328
|
};
|
|
1330
1329
|
};
|
|
1330
|
+
sessionId: string;
|
|
1331
1331
|
v: 1;
|
|
1332
1332
|
eventIndex: number;
|
|
1333
1333
|
eventId: string;
|
|
@@ -1445,7 +1445,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1445
1445
|
}>;
|
|
1446
1446
|
}, "strip", z.ZodTypeAny, {
|
|
1447
1447
|
kind: "preferences_changed";
|
|
1448
|
-
sessionId: string;
|
|
1449
1448
|
data: {
|
|
1450
1449
|
source: "user" | "workflow_recommendation" | "system";
|
|
1451
1450
|
changeId: string;
|
|
@@ -1461,6 +1460,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1461
1460
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1462
1461
|
};
|
|
1463
1462
|
};
|
|
1463
|
+
sessionId: string;
|
|
1464
1464
|
v: 1;
|
|
1465
1465
|
eventIndex: number;
|
|
1466
1466
|
eventId: string;
|
|
@@ -1471,7 +1471,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1471
1471
|
};
|
|
1472
1472
|
}, {
|
|
1473
1473
|
kind: "preferences_changed";
|
|
1474
|
-
sessionId: string;
|
|
1475
1474
|
data: {
|
|
1476
1475
|
source: "user" | "workflow_recommendation" | "system";
|
|
1477
1476
|
changeId: string;
|
|
@@ -1487,6 +1486,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1487
1486
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1488
1487
|
};
|
|
1489
1488
|
};
|
|
1489
|
+
sessionId: string;
|
|
1490
1490
|
v: 1;
|
|
1491
1491
|
eventIndex: number;
|
|
1492
1492
|
eventId: string;
|
|
@@ -1724,7 +1724,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1724
1724
|
}>;
|
|
1725
1725
|
}, "strip", z.ZodTypeAny, {
|
|
1726
1726
|
kind: "capability_observed";
|
|
1727
|
-
sessionId: string;
|
|
1728
1727
|
data: {
|
|
1729
1728
|
status: "unknown" | "available" | "unavailable";
|
|
1730
1729
|
capability: "delegation" | "web_browsing";
|
|
@@ -1754,6 +1753,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1754
1753
|
enforcementGrade: "weak";
|
|
1755
1754
|
};
|
|
1756
1755
|
};
|
|
1756
|
+
sessionId: string;
|
|
1757
1757
|
v: 1;
|
|
1758
1758
|
eventIndex: number;
|
|
1759
1759
|
eventId: string;
|
|
@@ -1764,7 +1764,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1764
1764
|
};
|
|
1765
1765
|
}, {
|
|
1766
1766
|
kind: "capability_observed";
|
|
1767
|
-
sessionId: string;
|
|
1768
1767
|
data: {
|
|
1769
1768
|
status: "unknown" | "available" | "unavailable";
|
|
1770
1769
|
capability: "delegation" | "web_browsing";
|
|
@@ -1794,6 +1793,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1794
1793
|
enforcementGrade: "weak";
|
|
1795
1794
|
};
|
|
1796
1795
|
};
|
|
1796
|
+
sessionId: string;
|
|
1797
1797
|
v: 1;
|
|
1798
1798
|
eventIndex: number;
|
|
1799
1799
|
eventId: string;
|
|
@@ -1918,7 +1918,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1918
1918
|
resolvesGapId: string;
|
|
1919
1919
|
};
|
|
1920
1920
|
gapId: string;
|
|
1921
|
-
severity: "
|
|
1921
|
+
severity: "info" | "warning" | "critical";
|
|
1922
1922
|
evidenceRefs?: ({
|
|
1923
1923
|
kind: "event";
|
|
1924
1924
|
eventId: string;
|
|
@@ -1948,7 +1948,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1948
1948
|
resolvesGapId: string;
|
|
1949
1949
|
};
|
|
1950
1950
|
gapId: string;
|
|
1951
|
-
severity: "
|
|
1951
|
+
severity: "info" | "warning" | "critical";
|
|
1952
1952
|
evidenceRefs?: ({
|
|
1953
1953
|
kind: "event";
|
|
1954
1954
|
eventId: string;
|
|
@@ -1959,7 +1959,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1959
1959
|
}>;
|
|
1960
1960
|
}, "strip", z.ZodTypeAny, {
|
|
1961
1961
|
kind: "gap_recorded";
|
|
1962
|
-
sessionId: string;
|
|
1963
1962
|
data: {
|
|
1964
1963
|
summary: string;
|
|
1965
1964
|
reason: {
|
|
@@ -1982,7 +1981,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1982
1981
|
resolvesGapId: string;
|
|
1983
1982
|
};
|
|
1984
1983
|
gapId: string;
|
|
1985
|
-
severity: "
|
|
1984
|
+
severity: "info" | "warning" | "critical";
|
|
1986
1985
|
evidenceRefs?: ({
|
|
1987
1986
|
kind: "event";
|
|
1988
1987
|
eventId: string;
|
|
@@ -1991,6 +1990,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1991
1990
|
outputId: string;
|
|
1992
1991
|
})[] | undefined;
|
|
1993
1992
|
};
|
|
1993
|
+
sessionId: string;
|
|
1994
1994
|
v: 1;
|
|
1995
1995
|
eventIndex: number;
|
|
1996
1996
|
eventId: string;
|
|
@@ -2001,7 +2001,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2001
2001
|
};
|
|
2002
2002
|
}, {
|
|
2003
2003
|
kind: "gap_recorded";
|
|
2004
|
-
sessionId: string;
|
|
2005
2004
|
data: {
|
|
2006
2005
|
summary: string;
|
|
2007
2006
|
reason: {
|
|
@@ -2024,7 +2023,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2024
2023
|
resolvesGapId: string;
|
|
2025
2024
|
};
|
|
2026
2025
|
gapId: string;
|
|
2027
|
-
severity: "
|
|
2026
|
+
severity: "info" | "warning" | "critical";
|
|
2028
2027
|
evidenceRefs?: ({
|
|
2029
2028
|
kind: "event";
|
|
2030
2029
|
eventId: string;
|
|
@@ -2033,6 +2032,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2033
2032
|
outputId: string;
|
|
2034
2033
|
})[] | undefined;
|
|
2035
2034
|
};
|
|
2035
|
+
sessionId: string;
|
|
2036
2036
|
v: 1;
|
|
2037
2037
|
eventIndex: number;
|
|
2038
2038
|
eventId: string;
|
|
@@ -2071,12 +2071,12 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2071
2071
|
}>;
|
|
2072
2072
|
}, "strip", z.ZodTypeAny, {
|
|
2073
2073
|
kind: "context_set";
|
|
2074
|
-
sessionId: string;
|
|
2075
2074
|
data: {
|
|
2076
2075
|
source: "initial" | "agent_delta";
|
|
2077
2076
|
contextId: string;
|
|
2078
2077
|
context?: unknown;
|
|
2079
2078
|
};
|
|
2079
|
+
sessionId: string;
|
|
2080
2080
|
v: 1;
|
|
2081
2081
|
eventIndex: number;
|
|
2082
2082
|
eventId: string;
|
|
@@ -2086,12 +2086,12 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2086
2086
|
};
|
|
2087
2087
|
}, {
|
|
2088
2088
|
kind: "context_set";
|
|
2089
|
-
sessionId: string;
|
|
2090
2089
|
data: {
|
|
2091
2090
|
source: "initial" | "agent_delta";
|
|
2092
2091
|
contextId: string;
|
|
2093
2092
|
context?: unknown;
|
|
2094
2093
|
};
|
|
2094
|
+
sessionId: string;
|
|
2095
2095
|
v: 1;
|
|
2096
2096
|
eventIndex: number;
|
|
2097
2097
|
eventId: string;
|
|
@@ -2135,13 +2135,13 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2135
2135
|
}>;
|
|
2136
2136
|
}, "strip", z.ZodTypeAny, {
|
|
2137
2137
|
kind: "divergence_recorded";
|
|
2138
|
-
sessionId: string;
|
|
2139
2138
|
data: {
|
|
2140
2139
|
summary: string;
|
|
2141
2140
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2142
2141
|
divergenceId: string;
|
|
2143
2142
|
relatedStepId?: string | undefined;
|
|
2144
2143
|
};
|
|
2144
|
+
sessionId: string;
|
|
2145
2145
|
v: 1;
|
|
2146
2146
|
eventIndex: number;
|
|
2147
2147
|
eventId: string;
|
|
@@ -2152,13 +2152,13 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2152
2152
|
};
|
|
2153
2153
|
}, {
|
|
2154
2154
|
kind: "divergence_recorded";
|
|
2155
|
-
sessionId: string;
|
|
2156
2155
|
data: {
|
|
2157
2156
|
summary: string;
|
|
2158
2157
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2159
2158
|
divergenceId: string;
|
|
2160
2159
|
relatedStepId?: string | undefined;
|
|
2161
2160
|
};
|
|
2161
|
+
sessionId: string;
|
|
2162
2162
|
v: 1;
|
|
2163
2163
|
eventIndex: number;
|
|
2164
2164
|
eventId: string;
|
|
@@ -2339,7 +2339,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2339
2339
|
}>;
|
|
2340
2340
|
}, "strip", z.ZodTypeAny, {
|
|
2341
2341
|
kind: "decision_trace_appended";
|
|
2342
|
-
sessionId: string;
|
|
2343
2342
|
data: {
|
|
2344
2343
|
entries: {
|
|
2345
2344
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -2360,6 +2359,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2360
2359
|
}[];
|
|
2361
2360
|
traceId: string;
|
|
2362
2361
|
};
|
|
2362
|
+
sessionId: string;
|
|
2363
2363
|
v: 1;
|
|
2364
2364
|
eventIndex: number;
|
|
2365
2365
|
eventId: string;
|
|
@@ -2370,7 +2370,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2370
2370
|
};
|
|
2371
2371
|
}, {
|
|
2372
2372
|
kind: "decision_trace_appended";
|
|
2373
|
-
sessionId: string;
|
|
2374
2373
|
data: {
|
|
2375
2374
|
entries: {
|
|
2376
2375
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -2391,6 +2390,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2391
2390
|
}[];
|
|
2392
2391
|
traceId: string;
|
|
2393
2392
|
};
|
|
2393
|
+
sessionId: string;
|
|
2394
2394
|
v: 1;
|
|
2395
2395
|
eventIndex: number;
|
|
2396
2396
|
eventId: string;
|