@exaudeus/workrail 3.31.1 → 3.33.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.
Files changed (82) hide show
  1. package/dist/cli/commands/index.d.ts +1 -0
  2. package/dist/cli/commands/index.js +3 -1
  3. package/dist/cli/commands/worktrain-await.js +11 -9
  4. package/dist/cli/commands/worktrain-daemon-install.d.ts +35 -0
  5. package/dist/cli/commands/worktrain-daemon-install.js +291 -0
  6. package/dist/cli/commands/worktrain-daemon.d.ts +31 -0
  7. package/dist/cli/commands/worktrain-daemon.js +272 -0
  8. package/dist/cli/commands/worktrain-spawn.js +11 -9
  9. package/dist/cli-worktrain.js +329 -0
  10. package/dist/cli.js +4 -22
  11. package/dist/console/standalone-console.d.ts +28 -0
  12. package/dist/console/standalone-console.js +142 -0
  13. package/dist/{console/assets/index-6H9DeFxj.js → console-ui/assets/index-BuJFLLfY.js} +1 -1
  14. package/dist/{console → console-ui}/index.html +1 -1
  15. package/dist/daemon/agent-loop.d.ts +26 -0
  16. package/dist/daemon/agent-loop.js +53 -2
  17. package/dist/daemon/daemon-events.d.ts +103 -0
  18. package/dist/daemon/daemon-events.js +56 -0
  19. package/dist/daemon/workflow-runner.d.ts +6 -3
  20. package/dist/daemon/workflow-runner.js +229 -33
  21. package/dist/infrastructure/session/HttpServer.js +133 -34
  22. package/dist/manifest.json +134 -70
  23. package/dist/mcp/output-schemas.d.ts +30 -30
  24. package/dist/mcp/transports/bridge-events.d.ts +4 -0
  25. package/dist/mcp/transports/fatal-exit.js +4 -0
  26. package/dist/mcp/transports/http-entry.js +2 -0
  27. package/dist/mcp/transports/stdio-entry.js +26 -6
  28. package/dist/mcp/v2/tools.d.ts +4 -4
  29. package/dist/trigger/adapters/github-poller.d.ts +44 -0
  30. package/dist/trigger/adapters/github-poller.js +190 -0
  31. package/dist/trigger/adapters/gitlab-poller.d.ts +27 -0
  32. package/dist/trigger/adapters/gitlab-poller.js +81 -0
  33. package/dist/trigger/delivery-client.d.ts +2 -1
  34. package/dist/trigger/delivery-client.js +4 -1
  35. package/dist/trigger/index.d.ts +4 -1
  36. package/dist/trigger/index.js +5 -1
  37. package/dist/trigger/polled-event-store.d.ts +22 -0
  38. package/dist/trigger/polled-event-store.js +173 -0
  39. package/dist/trigger/polling-scheduler.d.ts +20 -0
  40. package/dist/trigger/polling-scheduler.js +249 -0
  41. package/dist/trigger/trigger-listener.d.ts +5 -0
  42. package/dist/trigger/trigger-listener.js +53 -4
  43. package/dist/trigger/trigger-router.d.ts +4 -2
  44. package/dist/trigger/trigger-router.js +7 -4
  45. package/dist/trigger/trigger-store.js +114 -33
  46. package/dist/trigger/types.d.ts +17 -1
  47. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +224 -224
  48. package/dist/v2/durable-core/schemas/session/events.d.ts +42 -42
  49. package/dist/v2/durable-core/schemas/session/manifest.d.ts +6 -6
  50. package/dist/v2/durable-core/schemas/session/validation-event.d.ts +2 -2
  51. package/dist/v2/durable-core/tokens/payloads.d.ts +52 -52
  52. package/dist/v2/usecases/console-routes.js +3 -3
  53. package/dist/v2/usecases/console-service.js +133 -9
  54. package/dist/v2/usecases/console-types.d.ts +7 -0
  55. package/docs/design/daemon-conversation-logging-plan.md +98 -0
  56. package/docs/design/daemon-conversation-logging-review.md +55 -0
  57. package/docs/design/daemon-conversation-logging.md +129 -0
  58. package/docs/design/github-polling-adapter-design-candidates.md +226 -0
  59. package/docs/design/github-polling-adapter-design-review-findings.md +131 -0
  60. package/docs/design/github-polling-adapter-implementation-plan.md +284 -0
  61. package/docs/design/implementation_plan.md +192 -0
  62. package/docs/design/workflow-id-validation-at-startup.md +146 -0
  63. package/docs/design/workflow-id-validation-design-review.md +87 -0
  64. package/docs/design/workflow-id-validation-implementation-plan.md +185 -0
  65. package/docs/design/worktrain-system-prompt-report-issue-candidates.md +135 -0
  66. package/docs/design/worktrain-system-prompt-report-issue-design-review.md +73 -0
  67. package/docs/ideas/backlog.md +465 -0
  68. package/package.json +1 -1
  69. package/workflows/architecture-scalability-audit.json +1 -1
  70. package/workflows/bug-investigation.agentic.v2.json +3 -3
  71. package/workflows/coding-task-workflow-agentic.json +32 -32
  72. package/workflows/coding-task-workflow-agentic.lean.v2.json +1 -1
  73. package/workflows/coding-task-workflow-agentic.v2.json +7 -7
  74. package/workflows/mr-review-workflow.agentic.v2.json +21 -12
  75. package/workflows/personal-learning-materials-creation-branched.json +2 -2
  76. package/workflows/production-readiness-audit.json +1 -1
  77. package/workflows/relocation-workflow-us.json +2 -2
  78. package/workflows/ui-ux-design-workflow.json +14 -14
  79. package/workflows/workflow-for-workflows.json +3 -3
  80. package/workflows/workflow-for-workflows.v2.json +2 -2
  81. package/workflows/wr.discovery.json +1 -1
  82. /package/dist/{console → console-ui}/assets/index-8dh0Psu-.css +0 -0
@@ -79,8 +79,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  kind: "session_created";
81
81
  data: {};
82
- sessionId: string;
83
82
  v: 1;
83
+ sessionId: string;
84
84
  eventIndex: number;
85
85
  eventId: string;
86
86
  dedupeKey: string;
@@ -91,8 +91,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
91
91
  }, {
92
92
  kind: "session_created";
93
93
  data: {};
94
- sessionId: string;
95
94
  v: 1;
95
+ sessionId: string;
96
96
  eventIndex: number;
97
97
  eventId: string;
98
98
  dedupeKey: string;
@@ -201,8 +201,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
201
201
  confidence: "high" | "low" | "med";
202
202
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
203
203
  };
204
- sessionId: string;
205
204
  v: 1;
205
+ sessionId: string;
206
206
  eventIndex: number;
207
207
  eventId: string;
208
208
  dedupeKey: string;
@@ -226,8 +226,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
226
226
  confidence: "high" | "low" | "med";
227
227
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
228
228
  };
229
- sessionId: string;
230
229
  v: 1;
230
+ sessionId: string;
231
231
  eventIndex: number;
232
232
  eventId: string;
233
233
  dedupeKey: string;
@@ -271,8 +271,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
271
271
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
272
272
  workflowSourceRef: string;
273
273
  };
274
- sessionId: string;
275
274
  v: 1;
275
+ sessionId: string;
276
276
  eventIndex: number;
277
277
  eventId: string;
278
278
  dedupeKey: string;
@@ -287,8 +287,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
287
287
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
288
288
  workflowSourceRef: string;
289
289
  };
290
- sessionId: string;
291
290
  v: 1;
291
+ sessionId: string;
292
292
  eventIndex: number;
293
293
  eventId: string;
294
294
  dedupeKey: string;
@@ -337,8 +337,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
337
337
  parentNodeId: string | null;
338
338
  workflowHash: never;
339
339
  };
340
- sessionId: string;
341
340
  v: 1;
341
+ sessionId: string;
342
342
  eventIndex: number;
343
343
  eventId: string;
344
344
  dedupeKey: string;
@@ -354,8 +354,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
354
354
  parentNodeId: string | null;
355
355
  workflowHash: string;
356
356
  };
357
- sessionId: string;
358
357
  v: 1;
358
+ sessionId: string;
359
359
  eventIndex: number;
360
360
  eventId: string;
361
361
  dedupeKey: string;
@@ -436,8 +436,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
436
436
  fromNodeId: string;
437
437
  toNodeId: string;
438
438
  };
439
- sessionId: string;
440
439
  v: 1;
440
+ sessionId: string;
441
441
  eventIndex: number;
442
442
  eventId: string;
443
443
  dedupeKey: string;
@@ -455,8 +455,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
455
455
  fromNodeId: string;
456
456
  toNodeId: string;
457
457
  };
458
- sessionId: string;
459
458
  v: 1;
459
+ sessionId: string;
460
460
  eventIndex: number;
461
461
  eventId: string;
462
462
  dedupeKey: string;
@@ -745,8 +745,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
745
745
  kind: "advanced";
746
746
  toNodeId: string;
747
747
  };
748
- intent: "ack_pending";
749
748
  attemptId: string;
749
+ intent: "ack_pending";
750
750
  }, {
751
751
  outcome: {
752
752
  kind: "blocked";
@@ -776,8 +776,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
776
776
  kind: "advanced";
777
777
  toNodeId: string;
778
778
  };
779
- intent: "ack_pending";
780
779
  attemptId: string;
780
+ intent: "ack_pending";
781
781
  }>;
782
782
  }, "strip", z.ZodTypeAny, {
783
783
  kind: "advance_recorded";
@@ -810,11 +810,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
810
810
  kind: "advanced";
811
811
  toNodeId: string;
812
812
  };
813
- intent: "ack_pending";
814
813
  attemptId: string;
814
+ intent: "ack_pending";
815
815
  };
816
- sessionId: string;
817
816
  v: 1;
817
+ sessionId: string;
818
818
  eventIndex: number;
819
819
  eventId: string;
820
820
  dedupeKey: string;
@@ -853,11 +853,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
853
853
  kind: "advanced";
854
854
  toNodeId: string;
855
855
  };
856
- intent: "ack_pending";
857
856
  attemptId: string;
857
+ intent: "ack_pending";
858
858
  };
859
- sessionId: string;
860
859
  v: 1;
860
+ sessionId: string;
861
861
  eventIndex: number;
862
862
  eventId: string;
863
863
  dedupeKey: string;
@@ -915,8 +915,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
915
915
  valid: boolean;
916
916
  suggestions: readonly string[];
917
917
  };
918
- attemptId: string;
919
918
  validationId: string;
919
+ attemptId: string;
920
920
  }, {
921
921
  contractRef: string;
922
922
  result: {
@@ -924,8 +924,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
924
924
  valid: boolean;
925
925
  suggestions: readonly string[];
926
926
  };
927
- attemptId: string;
928
927
  validationId: string;
928
+ attemptId: string;
929
929
  }>;
930
930
  }, "strip", z.ZodTypeAny, {
931
931
  kind: "validation_performed";
@@ -936,11 +936,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
936
936
  valid: boolean;
937
937
  suggestions: readonly string[];
938
938
  };
939
- attemptId: string;
940
939
  validationId: string;
940
+ attemptId: string;
941
941
  };
942
- sessionId: string;
943
942
  v: 1;
943
+ sessionId: string;
944
944
  eventIndex: number;
945
945
  eventId: string;
946
946
  dedupeKey: string;
@@ -957,11 +957,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
957
957
  valid: boolean;
958
958
  suggestions: readonly string[];
959
959
  };
960
- attemptId: string;
961
960
  validationId: string;
961
+ attemptId: string;
962
962
  };
963
- sessionId: string;
964
963
  v: 1;
964
+ sessionId: string;
965
965
  eventIndex: number;
966
966
  eventId: string;
967
967
  dedupeKey: string;
@@ -1093,8 +1093,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1093
1093
  };
1094
1094
  supersedesOutputId?: string | undefined;
1095
1095
  };
1096
- sessionId: string;
1097
1096
  v: 1;
1097
+ sessionId: string;
1098
1098
  eventIndex: number;
1099
1099
  eventId: string;
1100
1100
  dedupeKey: string;
@@ -1119,8 +1119,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1119
1119
  };
1120
1120
  supersedesOutputId?: string | undefined;
1121
1121
  };
1122
- sessionId: string;
1123
1122
  v: 1;
1123
+ sessionId: string;
1124
1124
  eventIndex: number;
1125
1125
  eventId: string;
1126
1126
  dedupeKey: string;
@@ -1208,8 +1208,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1208
1208
  normalizationNotes: readonly string[];
1209
1209
  summary?: string | undefined;
1210
1210
  };
1211
- sessionId: string;
1212
1211
  v: 1;
1212
+ sessionId: string;
1213
1213
  eventIndex: number;
1214
1214
  eventId: string;
1215
1215
  dedupeKey: string;
@@ -1232,8 +1232,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1232
1232
  normalizationNotes: readonly string[];
1233
1233
  summary?: string | undefined;
1234
1234
  };
1235
- sessionId: string;
1236
1235
  v: 1;
1236
+ sessionId: string;
1237
1237
  eventIndex: number;
1238
1238
  eventId: string;
1239
1239
  dedupeKey: string;
@@ -1319,8 +1319,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1319
1319
  dimensionId: string;
1320
1320
  };
1321
1321
  };
1322
- sessionId: string;
1323
1322
  v: 1;
1323
+ sessionId: string;
1324
1324
  eventIndex: number;
1325
1325
  eventId: string;
1326
1326
  dedupeKey: string;
@@ -1342,8 +1342,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1342
1342
  dimensionId: string;
1343
1343
  };
1344
1344
  };
1345
- sessionId: string;
1346
1345
  v: 1;
1346
+ sessionId: string;
1347
1347
  eventIndex: number;
1348
1348
  eventId: string;
1349
1349
  dedupeKey: string;
@@ -1475,8 +1475,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1475
1475
  riskPolicy: "conservative" | "balanced" | "aggressive";
1476
1476
  };
1477
1477
  };
1478
- sessionId: string;
1479
1478
  v: 1;
1479
+ sessionId: string;
1480
1480
  eventIndex: number;
1481
1481
  eventId: string;
1482
1482
  dedupeKey: string;
@@ -1501,8 +1501,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1501
1501
  riskPolicy: "conservative" | "balanced" | "aggressive";
1502
1502
  };
1503
1503
  };
1504
- sessionId: string;
1505
1504
  v: 1;
1505
+ sessionId: string;
1506
1506
  eventIndex: number;
1507
1507
  eventId: string;
1508
1508
  dedupeKey: string;
@@ -1768,8 +1768,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1768
1768
  enforcementGrade: "weak";
1769
1769
  };
1770
1770
  };
1771
- sessionId: string;
1772
1771
  v: 1;
1772
+ sessionId: string;
1773
1773
  eventIndex: number;
1774
1774
  eventId: string;
1775
1775
  dedupeKey: string;
@@ -1808,8 +1808,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1808
1808
  enforcementGrade: "weak";
1809
1809
  };
1810
1810
  };
1811
- sessionId: string;
1812
1811
  v: 1;
1812
+ sessionId: string;
1813
1813
  eventIndex: number;
1814
1814
  eventId: string;
1815
1815
  dedupeKey: string;
@@ -2005,8 +2005,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2005
2005
  outputId: string;
2006
2006
  })[] | undefined;
2007
2007
  };
2008
- sessionId: string;
2009
2008
  v: 1;
2009
+ sessionId: string;
2010
2010
  eventIndex: number;
2011
2011
  eventId: string;
2012
2012
  dedupeKey: string;
@@ -2047,8 +2047,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2047
2047
  outputId: string;
2048
2048
  })[] | undefined;
2049
2049
  };
2050
- sessionId: string;
2051
2050
  v: 1;
2051
+ sessionId: string;
2052
2052
  eventIndex: number;
2053
2053
  eventId: string;
2054
2054
  dedupeKey: string;
@@ -2091,8 +2091,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2091
2091
  contextId: string;
2092
2092
  context?: unknown;
2093
2093
  };
2094
- sessionId: string;
2095
2094
  v: 1;
2095
+ sessionId: string;
2096
2096
  eventIndex: number;
2097
2097
  eventId: string;
2098
2098
  dedupeKey: string;
@@ -2106,8 +2106,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2106
2106
  contextId: string;
2107
2107
  context?: unknown;
2108
2108
  };
2109
- sessionId: string;
2110
2109
  v: 1;
2110
+ sessionId: string;
2111
2111
  eventIndex: number;
2112
2112
  eventId: string;
2113
2113
  dedupeKey: string;
@@ -2156,8 +2156,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2156
2156
  divergenceId: string;
2157
2157
  relatedStepId?: string | undefined;
2158
2158
  };
2159
- sessionId: string;
2160
2159
  v: 1;
2160
+ sessionId: string;
2161
2161
  eventIndex: number;
2162
2162
  eventId: string;
2163
2163
  dedupeKey: string;
@@ -2173,8 +2173,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2173
2173
  divergenceId: string;
2174
2174
  relatedStepId?: string | undefined;
2175
2175
  };
2176
- sessionId: string;
2177
2176
  v: 1;
2177
+ sessionId: string;
2178
2178
  eventIndex: number;
2179
2179
  eventId: string;
2180
2180
  dedupeKey: string;
@@ -2374,8 +2374,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2374
2374
  }[];
2375
2375
  traceId: string;
2376
2376
  };
2377
- sessionId: string;
2378
2377
  v: 1;
2378
+ sessionId: string;
2379
2379
  eventIndex: number;
2380
2380
  eventId: string;
2381
2381
  dedupeKey: string;
@@ -2405,8 +2405,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2405
2405
  }[];
2406
2406
  traceId: string;
2407
2407
  };
2408
- sessionId: string;
2409
2408
  v: 1;
2409
+ sessionId: string;
2410
2410
  eventIndex: number;
2411
2411
  eventId: string;
2412
2412
  dedupeKey: string;
@@ -2427,20 +2427,20 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2427
2427
  bytes: z.ZodNumber;
2428
2428
  }, "strip", z.ZodTypeAny, {
2429
2429
  kind: "segment_closed";
2430
- sessionId: string;
2431
- sha256: string;
2432
2430
  v: 1;
2431
+ sha256: string;
2433
2432
  manifestIndex: number;
2433
+ sessionId: string;
2434
2434
  firstEventIndex: number;
2435
2435
  lastEventIndex: number;
2436
2436
  segmentRelPath: string;
2437
2437
  bytes: number;
2438
2438
  }, {
2439
2439
  kind: "segment_closed";
2440
- sessionId: string;
2441
- sha256: string;
2442
2440
  v: 1;
2441
+ sha256: string;
2443
2442
  manifestIndex: number;
2443
+ sessionId: string;
2444
2444
  firstEventIndex: number;
2445
2445
  lastEventIndex: number;
2446
2446
  segmentRelPath: string;
@@ -2455,17 +2455,17 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2455
2455
  createdByEventId: z.ZodString;
2456
2456
  }, "strip", z.ZodTypeAny, {
2457
2457
  kind: "snapshot_pinned";
2458
- sessionId: string;
2459
2458
  v: 1;
2460
2459
  manifestIndex: number;
2460
+ sessionId: string;
2461
2461
  eventIndex: number;
2462
2462
  snapshotRef: string;
2463
2463
  createdByEventId: string;
2464
2464
  }, {
2465
2465
  kind: "snapshot_pinned";
2466
- sessionId: string;
2467
2466
  v: 1;
2468
2467
  manifestIndex: number;
2468
+ sessionId: string;
2469
2469
  eventIndex: number;
2470
2470
  snapshotRef: string;
2471
2471
  createdByEventId: string;
@@ -4554,7 +4554,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4554
4554
  }>>;
4555
4555
  pinnedWorkflows: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4556
4556
  }, "strip", z.ZodTypeAny, {
4557
- sessionId: string;
4558
4557
  snapshots: Record<string, {
4559
4558
  kind: "execution_snapshot";
4560
4559
  v: 1;
@@ -4726,8 +4725,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4726
4725
  events: ({
4727
4726
  kind: "session_created";
4728
4727
  data: {};
4729
- sessionId: string;
4730
4728
  v: 1;
4729
+ sessionId: string;
4731
4730
  eventIndex: number;
4732
4731
  eventId: string;
4733
4732
  dedupeKey: string;
@@ -4754,8 +4753,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4754
4753
  confidence: "high" | "low" | "med";
4755
4754
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
4756
4755
  };
4757
- sessionId: string;
4758
4756
  v: 1;
4757
+ sessionId: string;
4759
4758
  eventIndex: number;
4760
4759
  eventId: string;
4761
4760
  dedupeKey: string;
@@ -4768,8 +4767,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4768
4767
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
4769
4768
  workflowSourceRef: string;
4770
4769
  };
4771
- sessionId: string;
4772
4770
  v: 1;
4771
+ sessionId: string;
4773
4772
  eventIndex: number;
4774
4773
  eventId: string;
4775
4774
  dedupeKey: string;
@@ -4784,8 +4783,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4784
4783
  parentNodeId: string | null;
4785
4784
  workflowHash: never;
4786
4785
  };
4787
- sessionId: string;
4788
4786
  v: 1;
4787
+ sessionId: string;
4789
4788
  eventIndex: number;
4790
4789
  eventId: string;
4791
4790
  dedupeKey: string;
@@ -4804,8 +4803,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4804
4803
  fromNodeId: string;
4805
4804
  toNodeId: string;
4806
4805
  };
4807
- sessionId: string;
4808
4806
  v: 1;
4807
+ sessionId: string;
4809
4808
  eventIndex: number;
4810
4809
  eventId: string;
4811
4810
  dedupeKey: string;
@@ -4843,11 +4842,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4843
4842
  kind: "advanced";
4844
4843
  toNodeId: string;
4845
4844
  };
4846
- intent: "ack_pending";
4847
4845
  attemptId: string;
4846
+ intent: "ack_pending";
4848
4847
  };
4849
- sessionId: string;
4850
4848
  v: 1;
4849
+ sessionId: string;
4851
4850
  eventIndex: number;
4852
4851
  eventId: string;
4853
4852
  dedupeKey: string;
@@ -4864,11 +4863,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4864
4863
  valid: boolean;
4865
4864
  suggestions: readonly string[];
4866
4865
  };
4867
- attemptId: string;
4868
4866
  validationId: string;
4867
+ attemptId: string;
4869
4868
  };
4870
- sessionId: string;
4871
4869
  v: 1;
4870
+ sessionId: string;
4872
4871
  eventIndex: number;
4873
4872
  eventId: string;
4874
4873
  dedupeKey: string;
@@ -4893,8 +4892,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4893
4892
  };
4894
4893
  supersedesOutputId?: string | undefined;
4895
4894
  };
4896
- sessionId: string;
4897
4895
  v: 1;
4896
+ sessionId: string;
4898
4897
  eventIndex: number;
4899
4898
  eventId: string;
4900
4899
  dedupeKey: string;
@@ -4917,8 +4916,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4917
4916
  normalizationNotes: readonly string[];
4918
4917
  summary?: string | undefined;
4919
4918
  };
4920
- sessionId: string;
4921
4919
  v: 1;
4920
+ sessionId: string;
4922
4921
  eventIndex: number;
4923
4922
  eventId: string;
4924
4923
  dedupeKey: string;
@@ -4940,8 +4939,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4940
4939
  dimensionId: string;
4941
4940
  };
4942
4941
  };
4943
- sessionId: string;
4944
4942
  v: 1;
4943
+ sessionId: string;
4945
4944
  eventIndex: number;
4946
4945
  eventId: string;
4947
4946
  dedupeKey: string;
@@ -4966,8 +4965,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4966
4965
  riskPolicy: "conservative" | "balanced" | "aggressive";
4967
4966
  };
4968
4967
  };
4969
- sessionId: string;
4970
4968
  v: 1;
4969
+ sessionId: string;
4971
4970
  eventIndex: number;
4972
4971
  eventId: string;
4973
4972
  dedupeKey: string;
@@ -5006,8 +5005,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5006
5005
  enforcementGrade: "weak";
5007
5006
  };
5008
5007
  };
5009
- sessionId: string;
5010
5008
  v: 1;
5009
+ sessionId: string;
5011
5010
  eventIndex: number;
5012
5011
  eventId: string;
5013
5012
  dedupeKey: string;
@@ -5048,8 +5047,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5048
5047
  outputId: string;
5049
5048
  })[] | undefined;
5050
5049
  };
5051
- sessionId: string;
5052
5050
  v: 1;
5051
+ sessionId: string;
5053
5052
  eventIndex: number;
5054
5053
  eventId: string;
5055
5054
  dedupeKey: string;
@@ -5064,8 +5063,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5064
5063
  contextId: string;
5065
5064
  context?: unknown;
5066
5065
  };
5067
- sessionId: string;
5068
5066
  v: 1;
5067
+ sessionId: string;
5069
5068
  eventIndex: number;
5070
5069
  eventId: string;
5071
5070
  dedupeKey: string;
@@ -5080,8 +5079,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5080
5079
  divergenceId: string;
5081
5080
  relatedStepId?: string | undefined;
5082
5081
  };
5083
- sessionId: string;
5084
5082
  v: 1;
5083
+ sessionId: string;
5085
5084
  eventIndex: number;
5086
5085
  eventId: string;
5087
5086
  dedupeKey: string;
@@ -5111,8 +5110,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5111
5110
  }[];
5112
5111
  traceId: string;
5113
5112
  };
5114
- sessionId: string;
5115
5113
  v: 1;
5114
+ sessionId: string;
5116
5115
  eventIndex: number;
5117
5116
  eventId: string;
5118
5117
  dedupeKey: string;
@@ -5121,28 +5120,28 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5121
5120
  nodeId: string;
5122
5121
  };
5123
5122
  })[];
5123
+ sessionId: string;
5124
5124
  manifest: ({
5125
5125
  kind: "segment_closed";
5126
- sessionId: string;
5127
- sha256: string;
5128
5126
  v: 1;
5127
+ sha256: string;
5129
5128
  manifestIndex: number;
5129
+ sessionId: string;
5130
5130
  firstEventIndex: number;
5131
5131
  lastEventIndex: number;
5132
5132
  segmentRelPath: string;
5133
5133
  bytes: number;
5134
5134
  } | {
5135
5135
  kind: "snapshot_pinned";
5136
- sessionId: string;
5137
5136
  v: 1;
5138
5137
  manifestIndex: number;
5138
+ sessionId: string;
5139
5139
  eventIndex: number;
5140
5140
  snapshotRef: string;
5141
5141
  createdByEventId: string;
5142
5142
  })[];
5143
5143
  pinnedWorkflows: Record<string, unknown>;
5144
5144
  }, {
5145
- sessionId: string;
5146
5145
  snapshots: Record<string, {
5147
5146
  kind: "execution_snapshot";
5148
5147
  v: 1;
@@ -5302,8 +5301,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5302
5301
  events: ({
5303
5302
  kind: "session_created";
5304
5303
  data: {};
5305
- sessionId: string;
5306
5304
  v: 1;
5305
+ sessionId: string;
5307
5306
  eventIndex: number;
5308
5307
  eventId: string;
5309
5308
  dedupeKey: string;
@@ -5330,8 +5329,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5330
5329
  confidence: "high" | "low" | "med";
5331
5330
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
5332
5331
  };
5333
- sessionId: string;
5334
5332
  v: 1;
5333
+ sessionId: string;
5335
5334
  eventIndex: number;
5336
5335
  eventId: string;
5337
5336
  dedupeKey: string;
@@ -5344,8 +5343,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5344
5343
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
5345
5344
  workflowSourceRef: string;
5346
5345
  };
5347
- sessionId: string;
5348
5346
  v: 1;
5347
+ sessionId: string;
5349
5348
  eventIndex: number;
5350
5349
  eventId: string;
5351
5350
  dedupeKey: string;
@@ -5360,8 +5359,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5360
5359
  parentNodeId: string | null;
5361
5360
  workflowHash: string;
5362
5361
  };
5363
- sessionId: string;
5364
5362
  v: 1;
5363
+ sessionId: string;
5365
5364
  eventIndex: number;
5366
5365
  eventId: string;
5367
5366
  dedupeKey: string;
@@ -5380,8 +5379,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5380
5379
  fromNodeId: string;
5381
5380
  toNodeId: string;
5382
5381
  };
5383
- sessionId: string;
5384
5382
  v: 1;
5383
+ sessionId: string;
5385
5384
  eventIndex: number;
5386
5385
  eventId: string;
5387
5386
  dedupeKey: string;
@@ -5419,11 +5418,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5419
5418
  kind: "advanced";
5420
5419
  toNodeId: string;
5421
5420
  };
5422
- intent: "ack_pending";
5423
5421
  attemptId: string;
5422
+ intent: "ack_pending";
5424
5423
  };
5425
- sessionId: string;
5426
5424
  v: 1;
5425
+ sessionId: string;
5427
5426
  eventIndex: number;
5428
5427
  eventId: string;
5429
5428
  dedupeKey: string;
@@ -5440,11 +5439,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5440
5439
  valid: boolean;
5441
5440
  suggestions: readonly string[];
5442
5441
  };
5443
- attemptId: string;
5444
5442
  validationId: string;
5443
+ attemptId: string;
5445
5444
  };
5446
- sessionId: string;
5447
5445
  v: 1;
5446
+ sessionId: string;
5448
5447
  eventIndex: number;
5449
5448
  eventId: string;
5450
5449
  dedupeKey: string;
@@ -5469,8 +5468,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5469
5468
  };
5470
5469
  supersedesOutputId?: string | undefined;
5471
5470
  };
5472
- sessionId: string;
5473
5471
  v: 1;
5472
+ sessionId: string;
5474
5473
  eventIndex: number;
5475
5474
  eventId: string;
5476
5475
  dedupeKey: string;
@@ -5493,8 +5492,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5493
5492
  normalizationNotes: readonly string[];
5494
5493
  summary?: string | undefined;
5495
5494
  };
5496
- sessionId: string;
5497
5495
  v: 1;
5496
+ sessionId: string;
5498
5497
  eventIndex: number;
5499
5498
  eventId: string;
5500
5499
  dedupeKey: string;
@@ -5516,8 +5515,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5516
5515
  dimensionId: string;
5517
5516
  };
5518
5517
  };
5519
- sessionId: string;
5520
5518
  v: 1;
5519
+ sessionId: string;
5521
5520
  eventIndex: number;
5522
5521
  eventId: string;
5523
5522
  dedupeKey: string;
@@ -5542,8 +5541,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5542
5541
  riskPolicy: "conservative" | "balanced" | "aggressive";
5543
5542
  };
5544
5543
  };
5545
- sessionId: string;
5546
5544
  v: 1;
5545
+ sessionId: string;
5547
5546
  eventIndex: number;
5548
5547
  eventId: string;
5549
5548
  dedupeKey: string;
@@ -5582,8 +5581,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5582
5581
  enforcementGrade: "weak";
5583
5582
  };
5584
5583
  };
5585
- sessionId: string;
5586
5584
  v: 1;
5585
+ sessionId: string;
5587
5586
  eventIndex: number;
5588
5587
  eventId: string;
5589
5588
  dedupeKey: string;
@@ -5624,8 +5623,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5624
5623
  outputId: string;
5625
5624
  })[] | undefined;
5626
5625
  };
5627
- sessionId: string;
5628
5626
  v: 1;
5627
+ sessionId: string;
5629
5628
  eventIndex: number;
5630
5629
  eventId: string;
5631
5630
  dedupeKey: string;
@@ -5640,8 +5639,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5640
5639
  contextId: string;
5641
5640
  context?: unknown;
5642
5641
  };
5643
- sessionId: string;
5644
5642
  v: 1;
5643
+ sessionId: string;
5645
5644
  eventIndex: number;
5646
5645
  eventId: string;
5647
5646
  dedupeKey: string;
@@ -5656,8 +5655,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5656
5655
  divergenceId: string;
5657
5656
  relatedStepId?: string | undefined;
5658
5657
  };
5659
- sessionId: string;
5660
5658
  v: 1;
5659
+ sessionId: string;
5661
5660
  eventIndex: number;
5662
5661
  eventId: string;
5663
5662
  dedupeKey: string;
@@ -5687,8 +5686,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5687
5686
  }[];
5688
5687
  traceId: string;
5689
5688
  };
5690
- sessionId: string;
5691
5689
  v: 1;
5690
+ sessionId: string;
5692
5691
  eventIndex: number;
5693
5692
  eventId: string;
5694
5693
  dedupeKey: string;
@@ -5697,21 +5696,22 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
5697
5696
  nodeId: string;
5698
5697
  };
5699
5698
  })[];
5699
+ sessionId: string;
5700
5700
  manifest: ({
5701
5701
  kind: "segment_closed";
5702
- sessionId: string;
5703
- sha256: string;
5704
5702
  v: 1;
5703
+ sha256: string;
5705
5704
  manifestIndex: number;
5705
+ sessionId: string;
5706
5706
  firstEventIndex: number;
5707
5707
  lastEventIndex: number;
5708
5708
  segmentRelPath: string;
5709
5709
  bytes: number;
5710
5710
  } | {
5711
5711
  kind: "snapshot_pinned";
5712
- sessionId: string;
5713
5712
  v: 1;
5714
5713
  manifestIndex: number;
5714
+ sessionId: string;
5715
5715
  eventIndex: number;
5716
5716
  snapshotRef: string;
5717
5717
  createdByEventId: string;
@@ -5787,8 +5787,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5787
5787
  }, "strip", z.ZodTypeAny, {
5788
5788
  kind: "session_created";
5789
5789
  data: {};
5790
- sessionId: string;
5791
5790
  v: 1;
5791
+ sessionId: string;
5792
5792
  eventIndex: number;
5793
5793
  eventId: string;
5794
5794
  dedupeKey: string;
@@ -5799,8 +5799,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5799
5799
  }, {
5800
5800
  kind: "session_created";
5801
5801
  data: {};
5802
- sessionId: string;
5803
5802
  v: 1;
5803
+ sessionId: string;
5804
5804
  eventIndex: number;
5805
5805
  eventId: string;
5806
5806
  dedupeKey: string;
@@ -5909,8 +5909,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5909
5909
  confidence: "high" | "low" | "med";
5910
5910
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
5911
5911
  };
5912
- sessionId: string;
5913
5912
  v: 1;
5913
+ sessionId: string;
5914
5914
  eventIndex: number;
5915
5915
  eventId: string;
5916
5916
  dedupeKey: string;
@@ -5934,8 +5934,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5934
5934
  confidence: "high" | "low" | "med";
5935
5935
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
5936
5936
  };
5937
- sessionId: string;
5938
5937
  v: 1;
5938
+ sessionId: string;
5939
5939
  eventIndex: number;
5940
5940
  eventId: string;
5941
5941
  dedupeKey: string;
@@ -5979,8 +5979,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5979
5979
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
5980
5980
  workflowSourceRef: string;
5981
5981
  };
5982
- sessionId: string;
5983
5982
  v: 1;
5983
+ sessionId: string;
5984
5984
  eventIndex: number;
5985
5985
  eventId: string;
5986
5986
  dedupeKey: string;
@@ -5995,8 +5995,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5995
5995
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
5996
5996
  workflowSourceRef: string;
5997
5997
  };
5998
- sessionId: string;
5999
5998
  v: 1;
5999
+ sessionId: string;
6000
6000
  eventIndex: number;
6001
6001
  eventId: string;
6002
6002
  dedupeKey: string;
@@ -6045,8 +6045,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6045
6045
  parentNodeId: string | null;
6046
6046
  workflowHash: never;
6047
6047
  };
6048
- sessionId: string;
6049
6048
  v: 1;
6049
+ sessionId: string;
6050
6050
  eventIndex: number;
6051
6051
  eventId: string;
6052
6052
  dedupeKey: string;
@@ -6062,8 +6062,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6062
6062
  parentNodeId: string | null;
6063
6063
  workflowHash: string;
6064
6064
  };
6065
- sessionId: string;
6066
6065
  v: 1;
6066
+ sessionId: string;
6067
6067
  eventIndex: number;
6068
6068
  eventId: string;
6069
6069
  dedupeKey: string;
@@ -6144,8 +6144,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6144
6144
  fromNodeId: string;
6145
6145
  toNodeId: string;
6146
6146
  };
6147
- sessionId: string;
6148
6147
  v: 1;
6148
+ sessionId: string;
6149
6149
  eventIndex: number;
6150
6150
  eventId: string;
6151
6151
  dedupeKey: string;
@@ -6163,8 +6163,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6163
6163
  fromNodeId: string;
6164
6164
  toNodeId: string;
6165
6165
  };
6166
- sessionId: string;
6167
6166
  v: 1;
6167
+ sessionId: string;
6168
6168
  eventIndex: number;
6169
6169
  eventId: string;
6170
6170
  dedupeKey: string;
@@ -6453,8 +6453,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6453
6453
  kind: "advanced";
6454
6454
  toNodeId: string;
6455
6455
  };
6456
- intent: "ack_pending";
6457
6456
  attemptId: string;
6457
+ intent: "ack_pending";
6458
6458
  }, {
6459
6459
  outcome: {
6460
6460
  kind: "blocked";
@@ -6484,8 +6484,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6484
6484
  kind: "advanced";
6485
6485
  toNodeId: string;
6486
6486
  };
6487
- intent: "ack_pending";
6488
6487
  attemptId: string;
6488
+ intent: "ack_pending";
6489
6489
  }>;
6490
6490
  }, "strip", z.ZodTypeAny, {
6491
6491
  kind: "advance_recorded";
@@ -6518,11 +6518,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6518
6518
  kind: "advanced";
6519
6519
  toNodeId: string;
6520
6520
  };
6521
- intent: "ack_pending";
6522
6521
  attemptId: string;
6522
+ intent: "ack_pending";
6523
6523
  };
6524
- sessionId: string;
6525
6524
  v: 1;
6525
+ sessionId: string;
6526
6526
  eventIndex: number;
6527
6527
  eventId: string;
6528
6528
  dedupeKey: string;
@@ -6561,11 +6561,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6561
6561
  kind: "advanced";
6562
6562
  toNodeId: string;
6563
6563
  };
6564
- intent: "ack_pending";
6565
6564
  attemptId: string;
6565
+ intent: "ack_pending";
6566
6566
  };
6567
- sessionId: string;
6568
6567
  v: 1;
6568
+ sessionId: string;
6569
6569
  eventIndex: number;
6570
6570
  eventId: string;
6571
6571
  dedupeKey: string;
@@ -6623,8 +6623,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6623
6623
  valid: boolean;
6624
6624
  suggestions: readonly string[];
6625
6625
  };
6626
- attemptId: string;
6627
6626
  validationId: string;
6627
+ attemptId: string;
6628
6628
  }, {
6629
6629
  contractRef: string;
6630
6630
  result: {
@@ -6632,8 +6632,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6632
6632
  valid: boolean;
6633
6633
  suggestions: readonly string[];
6634
6634
  };
6635
- attemptId: string;
6636
6635
  validationId: string;
6636
+ attemptId: string;
6637
6637
  }>;
6638
6638
  }, "strip", z.ZodTypeAny, {
6639
6639
  kind: "validation_performed";
@@ -6644,11 +6644,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6644
6644
  valid: boolean;
6645
6645
  suggestions: readonly string[];
6646
6646
  };
6647
- attemptId: string;
6648
6647
  validationId: string;
6648
+ attemptId: string;
6649
6649
  };
6650
- sessionId: string;
6651
6650
  v: 1;
6651
+ sessionId: string;
6652
6652
  eventIndex: number;
6653
6653
  eventId: string;
6654
6654
  dedupeKey: string;
@@ -6665,11 +6665,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6665
6665
  valid: boolean;
6666
6666
  suggestions: readonly string[];
6667
6667
  };
6668
- attemptId: string;
6669
6668
  validationId: string;
6669
+ attemptId: string;
6670
6670
  };
6671
- sessionId: string;
6672
6671
  v: 1;
6672
+ sessionId: string;
6673
6673
  eventIndex: number;
6674
6674
  eventId: string;
6675
6675
  dedupeKey: string;
@@ -6801,8 +6801,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6801
6801
  };
6802
6802
  supersedesOutputId?: string | undefined;
6803
6803
  };
6804
- sessionId: string;
6805
6804
  v: 1;
6805
+ sessionId: string;
6806
6806
  eventIndex: number;
6807
6807
  eventId: string;
6808
6808
  dedupeKey: string;
@@ -6827,8 +6827,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6827
6827
  };
6828
6828
  supersedesOutputId?: string | undefined;
6829
6829
  };
6830
- sessionId: string;
6831
6830
  v: 1;
6831
+ sessionId: string;
6832
6832
  eventIndex: number;
6833
6833
  eventId: string;
6834
6834
  dedupeKey: string;
@@ -6916,8 +6916,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6916
6916
  normalizationNotes: readonly string[];
6917
6917
  summary?: string | undefined;
6918
6918
  };
6919
- sessionId: string;
6920
6919
  v: 1;
6920
+ sessionId: string;
6921
6921
  eventIndex: number;
6922
6922
  eventId: string;
6923
6923
  dedupeKey: string;
@@ -6940,8 +6940,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6940
6940
  normalizationNotes: readonly string[];
6941
6941
  summary?: string | undefined;
6942
6942
  };
6943
- sessionId: string;
6944
6943
  v: 1;
6944
+ sessionId: string;
6945
6945
  eventIndex: number;
6946
6946
  eventId: string;
6947
6947
  dedupeKey: string;
@@ -7027,8 +7027,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7027
7027
  dimensionId: string;
7028
7028
  };
7029
7029
  };
7030
- sessionId: string;
7031
7030
  v: 1;
7031
+ sessionId: string;
7032
7032
  eventIndex: number;
7033
7033
  eventId: string;
7034
7034
  dedupeKey: string;
@@ -7050,8 +7050,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7050
7050
  dimensionId: string;
7051
7051
  };
7052
7052
  };
7053
- sessionId: string;
7054
7053
  v: 1;
7054
+ sessionId: string;
7055
7055
  eventIndex: number;
7056
7056
  eventId: string;
7057
7057
  dedupeKey: string;
@@ -7183,8 +7183,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7183
7183
  riskPolicy: "conservative" | "balanced" | "aggressive";
7184
7184
  };
7185
7185
  };
7186
- sessionId: string;
7187
7186
  v: 1;
7187
+ sessionId: string;
7188
7188
  eventIndex: number;
7189
7189
  eventId: string;
7190
7190
  dedupeKey: string;
@@ -7209,8 +7209,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7209
7209
  riskPolicy: "conservative" | "balanced" | "aggressive";
7210
7210
  };
7211
7211
  };
7212
- sessionId: string;
7213
7212
  v: 1;
7213
+ sessionId: string;
7214
7214
  eventIndex: number;
7215
7215
  eventId: string;
7216
7216
  dedupeKey: string;
@@ -7476,8 +7476,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7476
7476
  enforcementGrade: "weak";
7477
7477
  };
7478
7478
  };
7479
- sessionId: string;
7480
7479
  v: 1;
7480
+ sessionId: string;
7481
7481
  eventIndex: number;
7482
7482
  eventId: string;
7483
7483
  dedupeKey: string;
@@ -7516,8 +7516,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7516
7516
  enforcementGrade: "weak";
7517
7517
  };
7518
7518
  };
7519
- sessionId: string;
7520
7519
  v: 1;
7520
+ sessionId: string;
7521
7521
  eventIndex: number;
7522
7522
  eventId: string;
7523
7523
  dedupeKey: string;
@@ -7713,8 +7713,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7713
7713
  outputId: string;
7714
7714
  })[] | undefined;
7715
7715
  };
7716
- sessionId: string;
7717
7716
  v: 1;
7717
+ sessionId: string;
7718
7718
  eventIndex: number;
7719
7719
  eventId: string;
7720
7720
  dedupeKey: string;
@@ -7755,8 +7755,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7755
7755
  outputId: string;
7756
7756
  })[] | undefined;
7757
7757
  };
7758
- sessionId: string;
7759
7758
  v: 1;
7759
+ sessionId: string;
7760
7760
  eventIndex: number;
7761
7761
  eventId: string;
7762
7762
  dedupeKey: string;
@@ -7799,8 +7799,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7799
7799
  contextId: string;
7800
7800
  context?: unknown;
7801
7801
  };
7802
- sessionId: string;
7803
7802
  v: 1;
7803
+ sessionId: string;
7804
7804
  eventIndex: number;
7805
7805
  eventId: string;
7806
7806
  dedupeKey: string;
@@ -7814,8 +7814,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7814
7814
  contextId: string;
7815
7815
  context?: unknown;
7816
7816
  };
7817
- sessionId: string;
7818
7817
  v: 1;
7818
+ sessionId: string;
7819
7819
  eventIndex: number;
7820
7820
  eventId: string;
7821
7821
  dedupeKey: string;
@@ -7864,8 +7864,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7864
7864
  divergenceId: string;
7865
7865
  relatedStepId?: string | undefined;
7866
7866
  };
7867
- sessionId: string;
7868
7867
  v: 1;
7868
+ sessionId: string;
7869
7869
  eventIndex: number;
7870
7870
  eventId: string;
7871
7871
  dedupeKey: string;
@@ -7881,8 +7881,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7881
7881
  divergenceId: string;
7882
7882
  relatedStepId?: string | undefined;
7883
7883
  };
7884
- sessionId: string;
7885
7884
  v: 1;
7885
+ sessionId: string;
7886
7886
  eventIndex: number;
7887
7887
  eventId: string;
7888
7888
  dedupeKey: string;
@@ -8082,8 +8082,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8082
8082
  }[];
8083
8083
  traceId: string;
8084
8084
  };
8085
- sessionId: string;
8086
8085
  v: 1;
8086
+ sessionId: string;
8087
8087
  eventIndex: number;
8088
8088
  eventId: string;
8089
8089
  dedupeKey: string;
@@ -8113,8 +8113,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8113
8113
  }[];
8114
8114
  traceId: string;
8115
8115
  };
8116
- sessionId: string;
8117
8116
  v: 1;
8117
+ sessionId: string;
8118
8118
  eventIndex: number;
8119
8119
  eventId: string;
8120
8120
  dedupeKey: string;
@@ -8135,20 +8135,20 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8135
8135
  bytes: z.ZodNumber;
8136
8136
  }, "strip", z.ZodTypeAny, {
8137
8137
  kind: "segment_closed";
8138
- sessionId: string;
8139
- sha256: string;
8140
8138
  v: 1;
8139
+ sha256: string;
8141
8140
  manifestIndex: number;
8141
+ sessionId: string;
8142
8142
  firstEventIndex: number;
8143
8143
  lastEventIndex: number;
8144
8144
  segmentRelPath: string;
8145
8145
  bytes: number;
8146
8146
  }, {
8147
8147
  kind: "segment_closed";
8148
- sessionId: string;
8149
- sha256: string;
8150
8148
  v: 1;
8149
+ sha256: string;
8151
8150
  manifestIndex: number;
8151
+ sessionId: string;
8152
8152
  firstEventIndex: number;
8153
8153
  lastEventIndex: number;
8154
8154
  segmentRelPath: string;
@@ -8163,17 +8163,17 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8163
8163
  createdByEventId: z.ZodString;
8164
8164
  }, "strip", z.ZodTypeAny, {
8165
8165
  kind: "snapshot_pinned";
8166
- sessionId: string;
8167
8166
  v: 1;
8168
8167
  manifestIndex: number;
8168
+ sessionId: string;
8169
8169
  eventIndex: number;
8170
8170
  snapshotRef: string;
8171
8171
  createdByEventId: string;
8172
8172
  }, {
8173
8173
  kind: "snapshot_pinned";
8174
- sessionId: string;
8175
8174
  v: 1;
8176
8175
  manifestIndex: number;
8176
+ sessionId: string;
8177
8177
  eventIndex: number;
8178
8178
  snapshotRef: string;
8179
8179
  createdByEventId: string;
@@ -10262,7 +10262,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10262
10262
  }>>;
10263
10263
  pinnedWorkflows: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10264
10264
  }, "strip", z.ZodTypeAny, {
10265
- sessionId: string;
10266
10265
  snapshots: Record<string, {
10267
10266
  kind: "execution_snapshot";
10268
10267
  v: 1;
@@ -10434,8 +10433,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10434
10433
  events: ({
10435
10434
  kind: "session_created";
10436
10435
  data: {};
10437
- sessionId: string;
10438
10436
  v: 1;
10437
+ sessionId: string;
10439
10438
  eventIndex: number;
10440
10439
  eventId: string;
10441
10440
  dedupeKey: string;
@@ -10462,8 +10461,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10462
10461
  confidence: "high" | "low" | "med";
10463
10462
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
10464
10463
  };
10465
- sessionId: string;
10466
10464
  v: 1;
10465
+ sessionId: string;
10467
10466
  eventIndex: number;
10468
10467
  eventId: string;
10469
10468
  dedupeKey: string;
@@ -10476,8 +10475,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10476
10475
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
10477
10476
  workflowSourceRef: string;
10478
10477
  };
10479
- sessionId: string;
10480
10478
  v: 1;
10479
+ sessionId: string;
10481
10480
  eventIndex: number;
10482
10481
  eventId: string;
10483
10482
  dedupeKey: string;
@@ -10492,8 +10491,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10492
10491
  parentNodeId: string | null;
10493
10492
  workflowHash: never;
10494
10493
  };
10495
- sessionId: string;
10496
10494
  v: 1;
10495
+ sessionId: string;
10497
10496
  eventIndex: number;
10498
10497
  eventId: string;
10499
10498
  dedupeKey: string;
@@ -10512,8 +10511,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10512
10511
  fromNodeId: string;
10513
10512
  toNodeId: string;
10514
10513
  };
10515
- sessionId: string;
10516
10514
  v: 1;
10515
+ sessionId: string;
10517
10516
  eventIndex: number;
10518
10517
  eventId: string;
10519
10518
  dedupeKey: string;
@@ -10551,11 +10550,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10551
10550
  kind: "advanced";
10552
10551
  toNodeId: string;
10553
10552
  };
10554
- intent: "ack_pending";
10555
10553
  attemptId: string;
10554
+ intent: "ack_pending";
10556
10555
  };
10557
- sessionId: string;
10558
10556
  v: 1;
10557
+ sessionId: string;
10559
10558
  eventIndex: number;
10560
10559
  eventId: string;
10561
10560
  dedupeKey: string;
@@ -10572,11 +10571,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10572
10571
  valid: boolean;
10573
10572
  suggestions: readonly string[];
10574
10573
  };
10575
- attemptId: string;
10576
10574
  validationId: string;
10575
+ attemptId: string;
10577
10576
  };
10578
- sessionId: string;
10579
10577
  v: 1;
10578
+ sessionId: string;
10580
10579
  eventIndex: number;
10581
10580
  eventId: string;
10582
10581
  dedupeKey: string;
@@ -10601,8 +10600,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10601
10600
  };
10602
10601
  supersedesOutputId?: string | undefined;
10603
10602
  };
10604
- sessionId: string;
10605
10603
  v: 1;
10604
+ sessionId: string;
10606
10605
  eventIndex: number;
10607
10606
  eventId: string;
10608
10607
  dedupeKey: string;
@@ -10625,8 +10624,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10625
10624
  normalizationNotes: readonly string[];
10626
10625
  summary?: string | undefined;
10627
10626
  };
10628
- sessionId: string;
10629
10627
  v: 1;
10628
+ sessionId: string;
10630
10629
  eventIndex: number;
10631
10630
  eventId: string;
10632
10631
  dedupeKey: string;
@@ -10648,8 +10647,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10648
10647
  dimensionId: string;
10649
10648
  };
10650
10649
  };
10651
- sessionId: string;
10652
10650
  v: 1;
10651
+ sessionId: string;
10653
10652
  eventIndex: number;
10654
10653
  eventId: string;
10655
10654
  dedupeKey: string;
@@ -10674,8 +10673,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10674
10673
  riskPolicy: "conservative" | "balanced" | "aggressive";
10675
10674
  };
10676
10675
  };
10677
- sessionId: string;
10678
10676
  v: 1;
10677
+ sessionId: string;
10679
10678
  eventIndex: number;
10680
10679
  eventId: string;
10681
10680
  dedupeKey: string;
@@ -10714,8 +10713,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10714
10713
  enforcementGrade: "weak";
10715
10714
  };
10716
10715
  };
10717
- sessionId: string;
10718
10716
  v: 1;
10717
+ sessionId: string;
10719
10718
  eventIndex: number;
10720
10719
  eventId: string;
10721
10720
  dedupeKey: string;
@@ -10756,8 +10755,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10756
10755
  outputId: string;
10757
10756
  })[] | undefined;
10758
10757
  };
10759
- sessionId: string;
10760
10758
  v: 1;
10759
+ sessionId: string;
10761
10760
  eventIndex: number;
10762
10761
  eventId: string;
10763
10762
  dedupeKey: string;
@@ -10772,8 +10771,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10772
10771
  contextId: string;
10773
10772
  context?: unknown;
10774
10773
  };
10775
- sessionId: string;
10776
10774
  v: 1;
10775
+ sessionId: string;
10777
10776
  eventIndex: number;
10778
10777
  eventId: string;
10779
10778
  dedupeKey: string;
@@ -10788,8 +10787,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10788
10787
  divergenceId: string;
10789
10788
  relatedStepId?: string | undefined;
10790
10789
  };
10791
- sessionId: string;
10792
10790
  v: 1;
10791
+ sessionId: string;
10793
10792
  eventIndex: number;
10794
10793
  eventId: string;
10795
10794
  dedupeKey: string;
@@ -10819,8 +10818,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10819
10818
  }[];
10820
10819
  traceId: string;
10821
10820
  };
10822
- sessionId: string;
10823
10821
  v: 1;
10822
+ sessionId: string;
10824
10823
  eventIndex: number;
10825
10824
  eventId: string;
10826
10825
  dedupeKey: string;
@@ -10829,28 +10828,28 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10829
10828
  nodeId: string;
10830
10829
  };
10831
10830
  })[];
10831
+ sessionId: string;
10832
10832
  manifest: ({
10833
10833
  kind: "segment_closed";
10834
- sessionId: string;
10835
- sha256: string;
10836
10834
  v: 1;
10835
+ sha256: string;
10837
10836
  manifestIndex: number;
10837
+ sessionId: string;
10838
10838
  firstEventIndex: number;
10839
10839
  lastEventIndex: number;
10840
10840
  segmentRelPath: string;
10841
10841
  bytes: number;
10842
10842
  } | {
10843
10843
  kind: "snapshot_pinned";
10844
- sessionId: string;
10845
10844
  v: 1;
10846
10845
  manifestIndex: number;
10846
+ sessionId: string;
10847
10847
  eventIndex: number;
10848
10848
  snapshotRef: string;
10849
10849
  createdByEventId: string;
10850
10850
  })[];
10851
10851
  pinnedWorkflows: Record<string, unknown>;
10852
10852
  }, {
10853
- sessionId: string;
10854
10853
  snapshots: Record<string, {
10855
10854
  kind: "execution_snapshot";
10856
10855
  v: 1;
@@ -11010,8 +11009,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11010
11009
  events: ({
11011
11010
  kind: "session_created";
11012
11011
  data: {};
11013
- sessionId: string;
11014
11012
  v: 1;
11013
+ sessionId: string;
11015
11014
  eventIndex: number;
11016
11015
  eventId: string;
11017
11016
  dedupeKey: string;
@@ -11038,8 +11037,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11038
11037
  confidence: "high" | "low" | "med";
11039
11038
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
11040
11039
  };
11041
- sessionId: string;
11042
11040
  v: 1;
11041
+ sessionId: string;
11043
11042
  eventIndex: number;
11044
11043
  eventId: string;
11045
11044
  dedupeKey: string;
@@ -11052,8 +11051,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11052
11051
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
11053
11052
  workflowSourceRef: string;
11054
11053
  };
11055
- sessionId: string;
11056
11054
  v: 1;
11055
+ sessionId: string;
11057
11056
  eventIndex: number;
11058
11057
  eventId: string;
11059
11058
  dedupeKey: string;
@@ -11068,8 +11067,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11068
11067
  parentNodeId: string | null;
11069
11068
  workflowHash: string;
11070
11069
  };
11071
- sessionId: string;
11072
11070
  v: 1;
11071
+ sessionId: string;
11073
11072
  eventIndex: number;
11074
11073
  eventId: string;
11075
11074
  dedupeKey: string;
@@ -11088,8 +11087,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11088
11087
  fromNodeId: string;
11089
11088
  toNodeId: string;
11090
11089
  };
11091
- sessionId: string;
11092
11090
  v: 1;
11091
+ sessionId: string;
11093
11092
  eventIndex: number;
11094
11093
  eventId: string;
11095
11094
  dedupeKey: string;
@@ -11127,11 +11126,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11127
11126
  kind: "advanced";
11128
11127
  toNodeId: string;
11129
11128
  };
11130
- intent: "ack_pending";
11131
11129
  attemptId: string;
11130
+ intent: "ack_pending";
11132
11131
  };
11133
- sessionId: string;
11134
11132
  v: 1;
11133
+ sessionId: string;
11135
11134
  eventIndex: number;
11136
11135
  eventId: string;
11137
11136
  dedupeKey: string;
@@ -11148,11 +11147,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11148
11147
  valid: boolean;
11149
11148
  suggestions: readonly string[];
11150
11149
  };
11151
- attemptId: string;
11152
11150
  validationId: string;
11151
+ attemptId: string;
11153
11152
  };
11154
- sessionId: string;
11155
11153
  v: 1;
11154
+ sessionId: string;
11156
11155
  eventIndex: number;
11157
11156
  eventId: string;
11158
11157
  dedupeKey: string;
@@ -11177,8 +11176,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11177
11176
  };
11178
11177
  supersedesOutputId?: string | undefined;
11179
11178
  };
11180
- sessionId: string;
11181
11179
  v: 1;
11180
+ sessionId: string;
11182
11181
  eventIndex: number;
11183
11182
  eventId: string;
11184
11183
  dedupeKey: string;
@@ -11201,8 +11200,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11201
11200
  normalizationNotes: readonly string[];
11202
11201
  summary?: string | undefined;
11203
11202
  };
11204
- sessionId: string;
11205
11203
  v: 1;
11204
+ sessionId: string;
11206
11205
  eventIndex: number;
11207
11206
  eventId: string;
11208
11207
  dedupeKey: string;
@@ -11224,8 +11223,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11224
11223
  dimensionId: string;
11225
11224
  };
11226
11225
  };
11227
- sessionId: string;
11228
11226
  v: 1;
11227
+ sessionId: string;
11229
11228
  eventIndex: number;
11230
11229
  eventId: string;
11231
11230
  dedupeKey: string;
@@ -11250,8 +11249,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11250
11249
  riskPolicy: "conservative" | "balanced" | "aggressive";
11251
11250
  };
11252
11251
  };
11253
- sessionId: string;
11254
11252
  v: 1;
11253
+ sessionId: string;
11255
11254
  eventIndex: number;
11256
11255
  eventId: string;
11257
11256
  dedupeKey: string;
@@ -11290,8 +11289,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11290
11289
  enforcementGrade: "weak";
11291
11290
  };
11292
11291
  };
11293
- sessionId: string;
11294
11292
  v: 1;
11293
+ sessionId: string;
11295
11294
  eventIndex: number;
11296
11295
  eventId: string;
11297
11296
  dedupeKey: string;
@@ -11332,8 +11331,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11332
11331
  outputId: string;
11333
11332
  })[] | undefined;
11334
11333
  };
11335
- sessionId: string;
11336
11334
  v: 1;
11335
+ sessionId: string;
11337
11336
  eventIndex: number;
11338
11337
  eventId: string;
11339
11338
  dedupeKey: string;
@@ -11348,8 +11347,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11348
11347
  contextId: string;
11349
11348
  context?: unknown;
11350
11349
  };
11351
- sessionId: string;
11352
11350
  v: 1;
11351
+ sessionId: string;
11353
11352
  eventIndex: number;
11354
11353
  eventId: string;
11355
11354
  dedupeKey: string;
@@ -11364,8 +11363,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11364
11363
  divergenceId: string;
11365
11364
  relatedStepId?: string | undefined;
11366
11365
  };
11367
- sessionId: string;
11368
11366
  v: 1;
11367
+ sessionId: string;
11369
11368
  eventIndex: number;
11370
11369
  eventId: string;
11371
11370
  dedupeKey: string;
@@ -11395,8 +11394,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11395
11394
  }[];
11396
11395
  traceId: string;
11397
11396
  };
11398
- sessionId: string;
11399
11397
  v: 1;
11398
+ sessionId: string;
11400
11399
  eventIndex: number;
11401
11400
  eventId: string;
11402
11401
  dedupeKey: string;
@@ -11405,21 +11404,22 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11405
11404
  nodeId: string;
11406
11405
  };
11407
11406
  })[];
11407
+ sessionId: string;
11408
11408
  manifest: ({
11409
11409
  kind: "segment_closed";
11410
- sessionId: string;
11411
- sha256: string;
11412
11410
  v: 1;
11411
+ sha256: string;
11413
11412
  manifestIndex: number;
11413
+ sessionId: string;
11414
11414
  firstEventIndex: number;
11415
11415
  lastEventIndex: number;
11416
11416
  segmentRelPath: string;
11417
11417
  bytes: number;
11418
11418
  } | {
11419
11419
  kind: "snapshot_pinned";
11420
- sessionId: string;
11421
11420
  v: 1;
11422
11421
  manifestIndex: number;
11422
+ sessionId: string;
11423
11423
  eventIndex: number;
11424
11424
  snapshotRef: string;
11425
11425
  createdByEventId: string;
@@ -11443,7 +11443,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11443
11443
  kind: "sha256_manifest_v1";
11444
11444
  };
11445
11445
  session: {
11446
- sessionId: string;
11447
11446
  snapshots: Record<string, {
11448
11447
  kind: "execution_snapshot";
11449
11448
  v: 1;
@@ -11615,8 +11614,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11615
11614
  events: ({
11616
11615
  kind: "session_created";
11617
11616
  data: {};
11618
- sessionId: string;
11619
11617
  v: 1;
11618
+ sessionId: string;
11620
11619
  eventIndex: number;
11621
11620
  eventId: string;
11622
11621
  dedupeKey: string;
@@ -11643,8 +11642,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11643
11642
  confidence: "high" | "low" | "med";
11644
11643
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
11645
11644
  };
11646
- sessionId: string;
11647
11645
  v: 1;
11646
+ sessionId: string;
11648
11647
  eventIndex: number;
11649
11648
  eventId: string;
11650
11649
  dedupeKey: string;
@@ -11657,8 +11656,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11657
11656
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
11658
11657
  workflowSourceRef: string;
11659
11658
  };
11660
- sessionId: string;
11661
11659
  v: 1;
11660
+ sessionId: string;
11662
11661
  eventIndex: number;
11663
11662
  eventId: string;
11664
11663
  dedupeKey: string;
@@ -11673,8 +11672,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11673
11672
  parentNodeId: string | null;
11674
11673
  workflowHash: never;
11675
11674
  };
11676
- sessionId: string;
11677
11675
  v: 1;
11676
+ sessionId: string;
11678
11677
  eventIndex: number;
11679
11678
  eventId: string;
11680
11679
  dedupeKey: string;
@@ -11693,8 +11692,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11693
11692
  fromNodeId: string;
11694
11693
  toNodeId: string;
11695
11694
  };
11696
- sessionId: string;
11697
11695
  v: 1;
11696
+ sessionId: string;
11698
11697
  eventIndex: number;
11699
11698
  eventId: string;
11700
11699
  dedupeKey: string;
@@ -11732,11 +11731,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11732
11731
  kind: "advanced";
11733
11732
  toNodeId: string;
11734
11733
  };
11735
- intent: "ack_pending";
11736
11734
  attemptId: string;
11735
+ intent: "ack_pending";
11737
11736
  };
11738
- sessionId: string;
11739
11737
  v: 1;
11738
+ sessionId: string;
11740
11739
  eventIndex: number;
11741
11740
  eventId: string;
11742
11741
  dedupeKey: string;
@@ -11753,11 +11752,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11753
11752
  valid: boolean;
11754
11753
  suggestions: readonly string[];
11755
11754
  };
11756
- attemptId: string;
11757
11755
  validationId: string;
11756
+ attemptId: string;
11758
11757
  };
11759
- sessionId: string;
11760
11758
  v: 1;
11759
+ sessionId: string;
11761
11760
  eventIndex: number;
11762
11761
  eventId: string;
11763
11762
  dedupeKey: string;
@@ -11782,8 +11781,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11782
11781
  };
11783
11782
  supersedesOutputId?: string | undefined;
11784
11783
  };
11785
- sessionId: string;
11786
11784
  v: 1;
11785
+ sessionId: string;
11787
11786
  eventIndex: number;
11788
11787
  eventId: string;
11789
11788
  dedupeKey: string;
@@ -11806,8 +11805,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11806
11805
  normalizationNotes: readonly string[];
11807
11806
  summary?: string | undefined;
11808
11807
  };
11809
- sessionId: string;
11810
11808
  v: 1;
11809
+ sessionId: string;
11811
11810
  eventIndex: number;
11812
11811
  eventId: string;
11813
11812
  dedupeKey: string;
@@ -11829,8 +11828,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11829
11828
  dimensionId: string;
11830
11829
  };
11831
11830
  };
11832
- sessionId: string;
11833
11831
  v: 1;
11832
+ sessionId: string;
11834
11833
  eventIndex: number;
11835
11834
  eventId: string;
11836
11835
  dedupeKey: string;
@@ -11855,8 +11854,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11855
11854
  riskPolicy: "conservative" | "balanced" | "aggressive";
11856
11855
  };
11857
11856
  };
11858
- sessionId: string;
11859
11857
  v: 1;
11858
+ sessionId: string;
11860
11859
  eventIndex: number;
11861
11860
  eventId: string;
11862
11861
  dedupeKey: string;
@@ -11895,8 +11894,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11895
11894
  enforcementGrade: "weak";
11896
11895
  };
11897
11896
  };
11898
- sessionId: string;
11899
11897
  v: 1;
11898
+ sessionId: string;
11900
11899
  eventIndex: number;
11901
11900
  eventId: string;
11902
11901
  dedupeKey: string;
@@ -11937,8 +11936,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11937
11936
  outputId: string;
11938
11937
  })[] | undefined;
11939
11938
  };
11940
- sessionId: string;
11941
11939
  v: 1;
11940
+ sessionId: string;
11942
11941
  eventIndex: number;
11943
11942
  eventId: string;
11944
11943
  dedupeKey: string;
@@ -11953,8 +11952,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11953
11952
  contextId: string;
11954
11953
  context?: unknown;
11955
11954
  };
11956
- sessionId: string;
11957
11955
  v: 1;
11956
+ sessionId: string;
11958
11957
  eventIndex: number;
11959
11958
  eventId: string;
11960
11959
  dedupeKey: string;
@@ -11969,8 +11968,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11969
11968
  divergenceId: string;
11970
11969
  relatedStepId?: string | undefined;
11971
11970
  };
11972
- sessionId: string;
11973
11971
  v: 1;
11972
+ sessionId: string;
11974
11973
  eventIndex: number;
11975
11974
  eventId: string;
11976
11975
  dedupeKey: string;
@@ -12000,8 +11999,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12000
11999
  }[];
12001
12000
  traceId: string;
12002
12001
  };
12003
- sessionId: string;
12004
12002
  v: 1;
12003
+ sessionId: string;
12005
12004
  eventIndex: number;
12006
12005
  eventId: string;
12007
12006
  dedupeKey: string;
@@ -12010,21 +12009,22 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12010
12009
  nodeId: string;
12011
12010
  };
12012
12011
  })[];
12012
+ sessionId: string;
12013
12013
  manifest: ({
12014
12014
  kind: "segment_closed";
12015
- sessionId: string;
12016
- sha256: string;
12017
12015
  v: 1;
12016
+ sha256: string;
12018
12017
  manifestIndex: number;
12018
+ sessionId: string;
12019
12019
  firstEventIndex: number;
12020
12020
  lastEventIndex: number;
12021
12021
  segmentRelPath: string;
12022
12022
  bytes: number;
12023
12023
  } | {
12024
12024
  kind: "snapshot_pinned";
12025
- sessionId: string;
12026
12025
  v: 1;
12027
12026
  manifestIndex: number;
12027
+ sessionId: string;
12028
12028
  eventIndex: number;
12029
12029
  snapshotRef: string;
12030
12030
  createdByEventId: string;
@@ -12048,7 +12048,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12048
12048
  kind: "sha256_manifest_v1";
12049
12049
  };
12050
12050
  session: {
12051
- sessionId: string;
12052
12051
  snapshots: Record<string, {
12053
12052
  kind: "execution_snapshot";
12054
12053
  v: 1;
@@ -12208,8 +12207,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12208
12207
  events: ({
12209
12208
  kind: "session_created";
12210
12209
  data: {};
12211
- sessionId: string;
12212
12210
  v: 1;
12211
+ sessionId: string;
12213
12212
  eventIndex: number;
12214
12213
  eventId: string;
12215
12214
  dedupeKey: string;
@@ -12236,8 +12235,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12236
12235
  confidence: "high" | "low" | "med";
12237
12236
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
12238
12237
  };
12239
- sessionId: string;
12240
12238
  v: 1;
12239
+ sessionId: string;
12241
12240
  eventIndex: number;
12242
12241
  eventId: string;
12243
12242
  dedupeKey: string;
@@ -12250,8 +12249,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12250
12249
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
12251
12250
  workflowSourceRef: string;
12252
12251
  };
12253
- sessionId: string;
12254
12252
  v: 1;
12253
+ sessionId: string;
12255
12254
  eventIndex: number;
12256
12255
  eventId: string;
12257
12256
  dedupeKey: string;
@@ -12266,8 +12265,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12266
12265
  parentNodeId: string | null;
12267
12266
  workflowHash: string;
12268
12267
  };
12269
- sessionId: string;
12270
12268
  v: 1;
12269
+ sessionId: string;
12271
12270
  eventIndex: number;
12272
12271
  eventId: string;
12273
12272
  dedupeKey: string;
@@ -12286,8 +12285,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12286
12285
  fromNodeId: string;
12287
12286
  toNodeId: string;
12288
12287
  };
12289
- sessionId: string;
12290
12288
  v: 1;
12289
+ sessionId: string;
12291
12290
  eventIndex: number;
12292
12291
  eventId: string;
12293
12292
  dedupeKey: string;
@@ -12325,11 +12324,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12325
12324
  kind: "advanced";
12326
12325
  toNodeId: string;
12327
12326
  };
12328
- intent: "ack_pending";
12329
12327
  attemptId: string;
12328
+ intent: "ack_pending";
12330
12329
  };
12331
- sessionId: string;
12332
12330
  v: 1;
12331
+ sessionId: string;
12333
12332
  eventIndex: number;
12334
12333
  eventId: string;
12335
12334
  dedupeKey: string;
@@ -12346,11 +12345,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12346
12345
  valid: boolean;
12347
12346
  suggestions: readonly string[];
12348
12347
  };
12349
- attemptId: string;
12350
12348
  validationId: string;
12349
+ attemptId: string;
12351
12350
  };
12352
- sessionId: string;
12353
12351
  v: 1;
12352
+ sessionId: string;
12354
12353
  eventIndex: number;
12355
12354
  eventId: string;
12356
12355
  dedupeKey: string;
@@ -12375,8 +12374,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12375
12374
  };
12376
12375
  supersedesOutputId?: string | undefined;
12377
12376
  };
12378
- sessionId: string;
12379
12377
  v: 1;
12378
+ sessionId: string;
12380
12379
  eventIndex: number;
12381
12380
  eventId: string;
12382
12381
  dedupeKey: string;
@@ -12399,8 +12398,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12399
12398
  normalizationNotes: readonly string[];
12400
12399
  summary?: string | undefined;
12401
12400
  };
12402
- sessionId: string;
12403
12401
  v: 1;
12402
+ sessionId: string;
12404
12403
  eventIndex: number;
12405
12404
  eventId: string;
12406
12405
  dedupeKey: string;
@@ -12422,8 +12421,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12422
12421
  dimensionId: string;
12423
12422
  };
12424
12423
  };
12425
- sessionId: string;
12426
12424
  v: 1;
12425
+ sessionId: string;
12427
12426
  eventIndex: number;
12428
12427
  eventId: string;
12429
12428
  dedupeKey: string;
@@ -12448,8 +12447,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12448
12447
  riskPolicy: "conservative" | "balanced" | "aggressive";
12449
12448
  };
12450
12449
  };
12451
- sessionId: string;
12452
12450
  v: 1;
12451
+ sessionId: string;
12453
12452
  eventIndex: number;
12454
12453
  eventId: string;
12455
12454
  dedupeKey: string;
@@ -12488,8 +12487,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12488
12487
  enforcementGrade: "weak";
12489
12488
  };
12490
12489
  };
12491
- sessionId: string;
12492
12490
  v: 1;
12491
+ sessionId: string;
12493
12492
  eventIndex: number;
12494
12493
  eventId: string;
12495
12494
  dedupeKey: string;
@@ -12530,8 +12529,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12530
12529
  outputId: string;
12531
12530
  })[] | undefined;
12532
12531
  };
12533
- sessionId: string;
12534
12532
  v: 1;
12533
+ sessionId: string;
12535
12534
  eventIndex: number;
12536
12535
  eventId: string;
12537
12536
  dedupeKey: string;
@@ -12546,8 +12545,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12546
12545
  contextId: string;
12547
12546
  context?: unknown;
12548
12547
  };
12549
- sessionId: string;
12550
12548
  v: 1;
12549
+ sessionId: string;
12551
12550
  eventIndex: number;
12552
12551
  eventId: string;
12553
12552
  dedupeKey: string;
@@ -12562,8 +12561,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12562
12561
  divergenceId: string;
12563
12562
  relatedStepId?: string | undefined;
12564
12563
  };
12565
- sessionId: string;
12566
12564
  v: 1;
12565
+ sessionId: string;
12567
12566
  eventIndex: number;
12568
12567
  eventId: string;
12569
12568
  dedupeKey: string;
@@ -12593,8 +12592,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12593
12592
  }[];
12594
12593
  traceId: string;
12595
12594
  };
12596
- sessionId: string;
12597
12595
  v: 1;
12596
+ sessionId: string;
12598
12597
  eventIndex: number;
12599
12598
  eventId: string;
12600
12599
  dedupeKey: string;
@@ -12603,21 +12602,22 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
12603
12602
  nodeId: string;
12604
12603
  };
12605
12604
  })[];
12605
+ sessionId: string;
12606
12606
  manifest: ({
12607
12607
  kind: "segment_closed";
12608
- sessionId: string;
12609
- sha256: string;
12610
12608
  v: 1;
12609
+ sha256: string;
12611
12610
  manifestIndex: number;
12611
+ sessionId: string;
12612
12612
  firstEventIndex: number;
12613
12613
  lastEventIndex: number;
12614
12614
  segmentRelPath: string;
12615
12615
  bytes: number;
12616
12616
  } | {
12617
12617
  kind: "snapshot_pinned";
12618
- sessionId: string;
12619
12618
  v: 1;
12620
12619
  manifestIndex: number;
12620
+ sessionId: string;
12621
12621
  eventIndex: number;
12622
12622
  snapshotRef: string;
12623
12623
  createdByEventId: string;