@exaudeus/workrail 3.60.1 → 3.62.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.
@@ -17,6 +17,7 @@ export declare const DomainEventEnvelopeV1Schema: z.ZodObject<{
17
17
  nodeId?: string | undefined;
18
18
  }>>;
19
19
  data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
20
+ timestampMs: z.ZodNumber;
20
21
  }, "strip", z.ZodTypeAny, {
21
22
  kind: string;
22
23
  v: 1;
@@ -24,6 +25,7 @@ export declare const DomainEventEnvelopeV1Schema: z.ZodObject<{
24
25
  eventIndex: number;
25
26
  eventId: string;
26
27
  dedupeKey: string;
28
+ timestampMs: number;
27
29
  scope?: {
28
30
  runId?: string | undefined;
29
31
  nodeId?: string | undefined;
@@ -36,6 +38,7 @@ export declare const DomainEventEnvelopeV1Schema: z.ZodObject<{
36
38
  eventIndex: number;
37
39
  eventId: string;
38
40
  dedupeKey: string;
41
+ timestampMs: number;
39
42
  scope?: {
40
43
  runId?: string | undefined;
41
44
  nodeId?: string | undefined;
@@ -58,6 +61,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
58
61
  runId?: string | undefined;
59
62
  nodeId?: string | undefined;
60
63
  }>>;
64
+ timestampMs: z.ZodNumber;
61
65
  } & {
62
66
  kind: z.ZodLiteral<"session_created">;
63
67
  data: z.ZodObject<{
@@ -77,6 +81,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
77
81
  data: {
78
82
  parentSessionId?: string | undefined;
79
83
  };
84
+ timestampMs: number;
80
85
  scope?: {
81
86
  runId?: string | undefined;
82
87
  nodeId?: string | undefined;
@@ -91,6 +96,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
91
96
  data: {
92
97
  parentSessionId?: string | undefined;
93
98
  };
99
+ timestampMs: number;
94
100
  scope?: {
95
101
  runId?: string | undefined;
96
102
  nodeId?: string | undefined;
@@ -101,6 +107,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
101
107
  eventIndex: z.ZodNumber;
102
108
  sessionId: z.ZodString;
103
109
  dedupeKey: z.ZodString;
110
+ timestampMs: z.ZodNumber;
104
111
  } & {
105
112
  kind: z.ZodLiteral<"observation_recorded">;
106
113
  scope: z.ZodUndefined;
@@ -201,6 +208,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
201
208
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
202
209
  confidence: "low" | "med" | "high";
203
210
  };
211
+ timestampMs: number;
204
212
  scope?: undefined;
205
213
  }, {
206
214
  kind: "observation_recorded";
@@ -226,6 +234,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
226
234
  key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
227
235
  confidence: "low" | "med" | "high";
228
236
  };
237
+ timestampMs: number;
229
238
  scope?: undefined;
230
239
  }>, z.ZodObject<{
231
240
  v: z.ZodLiteral<1>;
@@ -233,6 +242,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
233
242
  eventIndex: z.ZodNumber;
234
243
  sessionId: z.ZodString;
235
244
  dedupeKey: z.ZodString;
245
+ timestampMs: z.ZodNumber;
236
246
  } & {
237
247
  kind: z.ZodLiteral<"run_started">;
238
248
  scope: z.ZodObject<{
@@ -274,6 +284,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
274
284
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
275
285
  workflowSourceRef: string;
276
286
  };
287
+ timestampMs: number;
277
288
  }, {
278
289
  kind: "run_started";
279
290
  v: 1;
@@ -290,12 +301,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
290
301
  workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
291
302
  workflowSourceRef: string;
292
303
  };
304
+ timestampMs: number;
293
305
  }>, z.ZodObject<{
294
306
  v: z.ZodLiteral<1>;
295
307
  eventId: z.ZodString;
296
308
  eventIndex: z.ZodNumber;
297
309
  sessionId: z.ZodString;
298
310
  dedupeKey: z.ZodString;
311
+ timestampMs: z.ZodNumber;
299
312
  } & {
300
313
  kind: z.ZodLiteral<"node_created">;
301
314
  scope: z.ZodObject<{
@@ -341,6 +354,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
341
354
  parentNodeId: string | null;
342
355
  workflowHash: never;
343
356
  };
357
+ timestampMs: number;
344
358
  }, {
345
359
  kind: "node_created";
346
360
  v: 1;
@@ -358,12 +372,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
358
372
  parentNodeId: string | null;
359
373
  workflowHash: string;
360
374
  };
375
+ timestampMs: number;
361
376
  }>, z.ZodObject<{
362
377
  v: z.ZodLiteral<1>;
363
378
  eventId: z.ZodString;
364
379
  eventIndex: z.ZodNumber;
365
380
  sessionId: z.ZodString;
366
381
  dedupeKey: z.ZodString;
382
+ timestampMs: z.ZodNumber;
367
383
  } & {
368
384
  kind: z.ZodLiteral<"edge_created">;
369
385
  scope: z.ZodObject<{
@@ -439,6 +455,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
439
455
  eventId: string;
440
456
  };
441
457
  };
458
+ timestampMs: number;
442
459
  }, {
443
460
  kind: "edge_created";
444
461
  v: 1;
@@ -458,12 +475,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
458
475
  eventId: string;
459
476
  };
460
477
  };
478
+ timestampMs: number;
461
479
  }>, z.ZodObject<{
462
480
  v: z.ZodLiteral<1>;
463
481
  eventId: z.ZodString;
464
482
  eventIndex: z.ZodNumber;
465
483
  sessionId: z.ZodString;
466
484
  dedupeKey: z.ZodString;
485
+ timestampMs: z.ZodNumber;
467
486
  } & {
468
487
  kind: z.ZodLiteral<"advance_recorded">;
469
488
  scope: z.ZodObject<{
@@ -817,6 +836,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
817
836
  toNodeId: string;
818
837
  };
819
838
  };
839
+ timestampMs: number;
820
840
  }, {
821
841
  kind: "advance_recorded";
822
842
  v: 1;
@@ -860,12 +880,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
860
880
  toNodeId: string;
861
881
  };
862
882
  };
883
+ timestampMs: number;
863
884
  }>, z.ZodObject<{
864
885
  v: z.ZodLiteral<1>;
865
886
  eventId: z.ZodString;
866
887
  eventIndex: z.ZodNumber;
867
888
  sessionId: z.ZodString;
868
889
  dedupeKey: z.ZodString;
890
+ timestampMs: z.ZodNumber;
869
891
  } & {
870
892
  kind: z.ZodLiteral<"validation_performed">;
871
893
  scope: z.ZodObject<{
@@ -943,6 +965,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
943
965
  suggestions: readonly string[];
944
966
  };
945
967
  };
968
+ timestampMs: number;
946
969
  }, {
947
970
  kind: "validation_performed";
948
971
  v: 1;
@@ -964,12 +987,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
964
987
  suggestions: readonly string[];
965
988
  };
966
989
  };
990
+ timestampMs: number;
967
991
  }>, z.ZodObject<{
968
992
  v: z.ZodLiteral<1>;
969
993
  eventId: z.ZodString;
970
994
  eventIndex: z.ZodNumber;
971
995
  sessionId: z.ZodString;
972
996
  dedupeKey: z.ZodString;
997
+ timestampMs: z.ZodNumber;
973
998
  } & {
974
999
  kind: z.ZodLiteral<"node_output_appended">;
975
1000
  scope: z.ZodObject<{
@@ -1097,6 +1122,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1097
1122
  };
1098
1123
  supersedesOutputId?: string | undefined;
1099
1124
  };
1125
+ timestampMs: number;
1100
1126
  }, {
1101
1127
  kind: "node_output_appended";
1102
1128
  v: 1;
@@ -1123,12 +1149,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1123
1149
  };
1124
1150
  supersedesOutputId?: string | undefined;
1125
1151
  };
1152
+ timestampMs: number;
1126
1153
  }>, z.ZodObject<{
1127
1154
  v: z.ZodLiteral<1>;
1128
1155
  eventId: z.ZodString;
1129
1156
  eventIndex: z.ZodNumber;
1130
1157
  sessionId: z.ZodString;
1131
1158
  dedupeKey: z.ZodString;
1159
+ timestampMs: z.ZodNumber;
1132
1160
  } & {
1133
1161
  kind: z.ZodLiteral<"assessment_recorded">;
1134
1162
  scope: z.ZodObject<{
@@ -1212,6 +1240,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1212
1240
  }[];
1213
1241
  summary?: string | undefined;
1214
1242
  };
1243
+ timestampMs: number;
1215
1244
  }, {
1216
1245
  kind: "assessment_recorded";
1217
1246
  v: 1;
@@ -1236,12 +1265,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1236
1265
  }[];
1237
1266
  summary?: string | undefined;
1238
1267
  };
1268
+ timestampMs: number;
1239
1269
  }>, z.ZodObject<{
1240
1270
  v: z.ZodLiteral<1>;
1241
1271
  eventId: z.ZodString;
1242
1272
  eventIndex: z.ZodNumber;
1243
1273
  sessionId: z.ZodString;
1244
1274
  dedupeKey: z.ZodString;
1275
+ timestampMs: z.ZodNumber;
1245
1276
  } & {
1246
1277
  kind: z.ZodLiteral<"assessment_consequence_applied">;
1247
1278
  scope: z.ZodObject<{
@@ -1323,6 +1354,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1323
1354
  guidance: string;
1324
1355
  };
1325
1356
  };
1357
+ timestampMs: number;
1326
1358
  }, {
1327
1359
  kind: "assessment_consequence_applied";
1328
1360
  v: 1;
@@ -1346,12 +1378,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1346
1378
  guidance: string;
1347
1379
  };
1348
1380
  };
1381
+ timestampMs: number;
1349
1382
  }>, z.ZodObject<{
1350
1383
  v: z.ZodLiteral<1>;
1351
1384
  eventId: z.ZodString;
1352
1385
  eventIndex: z.ZodNumber;
1353
1386
  sessionId: z.ZodString;
1354
1387
  dedupeKey: z.ZodString;
1388
+ timestampMs: z.ZodNumber;
1355
1389
  } & {
1356
1390
  kind: z.ZodLiteral<"preferences_changed">;
1357
1391
  scope: z.ZodObject<{
@@ -1479,6 +1513,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1479
1513
  riskPolicy: "conservative" | "balanced" | "aggressive";
1480
1514
  };
1481
1515
  };
1516
+ timestampMs: number;
1482
1517
  }, {
1483
1518
  kind: "preferences_changed";
1484
1519
  v: 1;
@@ -1505,12 +1540,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1505
1540
  riskPolicy: "conservative" | "balanced" | "aggressive";
1506
1541
  };
1507
1542
  };
1543
+ timestampMs: number;
1508
1544
  }>, z.ZodObject<{
1509
1545
  v: z.ZodLiteral<1>;
1510
1546
  eventId: z.ZodString;
1511
1547
  eventIndex: z.ZodNumber;
1512
1548
  sessionId: z.ZodString;
1513
1549
  dedupeKey: z.ZodString;
1550
+ timestampMs: z.ZodNumber;
1514
1551
  } & {
1515
1552
  kind: z.ZodLiteral<"capability_observed">;
1516
1553
  scope: z.ZodObject<{
@@ -1772,6 +1809,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1772
1809
  enforcementGrade: "weak";
1773
1810
  };
1774
1811
  };
1812
+ timestampMs: number;
1775
1813
  }, {
1776
1814
  kind: "capability_observed";
1777
1815
  v: 1;
@@ -1812,12 +1850,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
1812
1850
  enforcementGrade: "weak";
1813
1851
  };
1814
1852
  };
1853
+ timestampMs: number;
1815
1854
  }>, z.ZodObject<{
1816
1855
  v: z.ZodLiteral<1>;
1817
1856
  eventId: z.ZodString;
1818
1857
  eventIndex: z.ZodNumber;
1819
1858
  sessionId: z.ZodString;
1820
1859
  dedupeKey: z.ZodString;
1860
+ timestampMs: z.ZodNumber;
1821
1861
  } & {
1822
1862
  kind: z.ZodLiteral<"gap_recorded">;
1823
1863
  scope: z.ZodObject<{
@@ -2009,6 +2049,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2009
2049
  outputId: string;
2010
2050
  })[] | undefined;
2011
2051
  };
2052
+ timestampMs: number;
2012
2053
  }, {
2013
2054
  kind: "gap_recorded";
2014
2055
  v: 1;
@@ -2051,12 +2092,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2051
2092
  outputId: string;
2052
2093
  })[] | undefined;
2053
2094
  };
2095
+ timestampMs: number;
2054
2096
  }>, z.ZodObject<{
2055
2097
  v: z.ZodLiteral<1>;
2056
2098
  eventId: z.ZodString;
2057
2099
  eventIndex: z.ZodNumber;
2058
2100
  sessionId: z.ZodString;
2059
2101
  dedupeKey: z.ZodString;
2102
+ timestampMs: z.ZodNumber;
2060
2103
  } & {
2061
2104
  kind: z.ZodLiteral<"context_set">;
2062
2105
  scope: z.ZodObject<{
@@ -2094,6 +2137,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2094
2137
  contextId: string;
2095
2138
  context?: unknown;
2096
2139
  };
2140
+ timestampMs: number;
2097
2141
  }, {
2098
2142
  kind: "context_set";
2099
2143
  v: 1;
@@ -2109,12 +2153,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2109
2153
  contextId: string;
2110
2154
  context?: unknown;
2111
2155
  };
2156
+ timestampMs: number;
2112
2157
  }>, z.ZodObject<{
2113
2158
  v: z.ZodLiteral<1>;
2114
2159
  eventId: z.ZodString;
2115
2160
  eventIndex: z.ZodNumber;
2116
2161
  sessionId: z.ZodString;
2117
2162
  dedupeKey: z.ZodString;
2163
+ timestampMs: z.ZodNumber;
2118
2164
  } & {
2119
2165
  kind: z.ZodLiteral<"divergence_recorded">;
2120
2166
  scope: z.ZodObject<{
@@ -2160,6 +2206,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2160
2206
  divergenceId: string;
2161
2207
  relatedStepId?: string | undefined;
2162
2208
  };
2209
+ timestampMs: number;
2163
2210
  }, {
2164
2211
  kind: "divergence_recorded";
2165
2212
  v: 1;
@@ -2177,12 +2224,14 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2177
2224
  divergenceId: string;
2178
2225
  relatedStepId?: string | undefined;
2179
2226
  };
2227
+ timestampMs: number;
2180
2228
  }>, z.ZodObject<{
2181
2229
  v: z.ZodLiteral<1>;
2182
2230
  eventId: z.ZodString;
2183
2231
  eventIndex: z.ZodNumber;
2184
2232
  sessionId: z.ZodString;
2185
2233
  dedupeKey: z.ZodString;
2234
+ timestampMs: z.ZodNumber;
2186
2235
  } & {
2187
2236
  kind: z.ZodLiteral<"decision_trace_appended">;
2188
2237
  scope: z.ZodObject<{
@@ -2378,6 +2427,7 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2378
2427
  }[];
2379
2428
  traceId: string;
2380
2429
  };
2430
+ timestampMs: number;
2381
2431
  }, {
2382
2432
  kind: "decision_trace_appended";
2383
2433
  v: 1;
@@ -2409,5 +2459,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
2409
2459
  }[];
2410
2460
  traceId: string;
2411
2461
  };
2462
+ timestampMs: number;
2412
2463
  }>]>;
2413
2464
  export type DomainEventV1 = z.infer<typeof DomainEventV1Schema>;
@@ -36,6 +36,7 @@ exports.DomainEventEnvelopeV1Schema = zod_1.z.object({
36
36
  })
37
37
  .optional(),
38
38
  data: json_zod_js_1.JsonValueSchema,
39
+ timestampMs: zod_1.z.number().int().positive(),
39
40
  });
40
41
  const WorkflowSourceKindSchema = zod_1.z.enum(['bundled', 'user', 'project', 'remote', 'plugin']);
41
42
  const RunStartedDataV1Schema = zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "3.60.1",
3
+ "version": "3.62.0",
4
4
  "description": "Step-by-step workflow enforcement for AI agents via MCP",
5
5
  "license": "MIT",
6
6
  "repository": {