@exaudeus/workrail 3.2.0 → 3.3.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.
@@ -40,10 +40,10 @@ exports.FEATURE_FLAG_DEFINITIONS = [
40
40
  {
41
41
  key: 'agenticRoutines',
42
42
  envVar: 'WORKRAIL_ENABLE_AGENTIC_ROUTINES',
43
- defaultValue: false,
43
+ defaultValue: true,
44
44
  description: 'Enable Agentic Orchestration features (subagent delegation, .agentic.json overrides, routines)',
45
45
  since: '0.8.3',
46
- stable: false,
46
+ stable: true,
47
47
  },
48
48
  {
49
49
  key: 'leanWorkflows',
@@ -162,7 +162,8 @@ class StaticFeatureFlagProvider {
162
162
  this.flags = flags;
163
163
  }
164
164
  isEnabled(key) {
165
- return this.flags[key] ?? false;
165
+ const definition = exports.FEATURE_FLAG_DEFINITIONS.find(flag => flag.key === key);
166
+ return this.flags[key] ?? definition?.defaultValue ?? false;
166
167
  }
167
168
  getAll() {
168
169
  const allFlags = {};
@@ -334,8 +334,8 @@
334
334
  "bytes": 1512
335
335
  },
336
336
  "config/feature-flags.js": {
337
- "sha256": "b42066c19fce793fe7bafb1ecb264d05c8e453fff32263f9e8cbcea7e59ddc6b",
338
- "bytes": 7256
337
+ "sha256": "ce45dded930747e989783df453bfea0458f87bf790c8be4a1b0bd9ceac9ac2a5",
338
+ "bytes": 7374
339
339
  },
340
340
  "core/error-handler.d.ts": {
341
341
  "sha256": "80451f12ac8e185133ec3dc4c57285491a785f27525ed21e729db1da3f61010d",
@@ -814,8 +814,8 @@
814
814
  "bytes": 3036
815
815
  },
816
816
  "mcp/handlers/v2-execution/start.js": {
817
- "sha256": "5a7a811a40f70f82feb7c158dfb1dc613c138c746f37ae3bd257c010a89041e0",
818
- "bytes": 15842
817
+ "sha256": "4f52d3b4dea3e1bdfcdb1057cb925de6293d938a4f1bddc396dc982bebab5ff6",
818
+ "bytes": 15841
819
819
  },
820
820
  "mcp/handlers/v2-resume.d.ts": {
821
821
  "sha256": "d88f6c35bcaf946666c837b72fda3702a2ebab5e478eb90f7b4b672a0e5fa24f",
@@ -830,8 +830,8 @@
830
830
  "bytes": 1733
831
831
  },
832
832
  "mcp/handlers/v2-state-conversion.js": {
833
- "sha256": "93110d8a27ca03c0f0936f5d817db4930323ada0ecaaa9cc1154e2c9f552f0fd",
834
- "bytes": 4335
833
+ "sha256": "d5f4203c340fe8b49c99322e864623db097db5e610cf86e2cc0c53aa7480b625",
834
+ "bytes": 4333
835
835
  },
836
836
  "mcp/handlers/v2-token-ops.d.ts": {
837
837
  "sha256": "bfbc6ab9ed413838cab8ee76fcf24cb7200bb1d257c08205b0eb5a8e48657b27",
@@ -1682,12 +1682,12 @@
1682
1682
  "bytes": 4556
1683
1683
  },
1684
1684
  "v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts": {
1685
- "sha256": "a7f455d0bef1dce88b712ee9a29066d97033f31e180dc8de6c0733713a484936",
1686
- "bytes": 195786
1685
+ "sha256": "d198ecbe4adde9cc3a7d0764d6720926b8e032dd4ee580aaacdcf15c6233e8e9",
1686
+ "bytes": 196009
1687
1687
  },
1688
1688
  "v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.js": {
1689
- "sha256": "ec330ed72b7d5cc13ed4e000fd398f4c3c0f14e4d3e02ee4f59f10383377be94",
1690
- "bytes": 5616
1689
+ "sha256": "485a8bfbb864a6dbac82559a968e903e8456469248772fc5f58826f669b06adf",
1690
+ "bytes": 5615
1691
1691
  },
1692
1692
  "v2/durable-core/schemas/execution-snapshot/index.d.ts": {
1693
1693
  "sha256": "8b61108a487b7ed225785ffefd3cb51669f008cd3cfadd2c05df439d20f4df88",
@@ -1698,16 +1698,16 @@
1698
1698
  "bytes": 2747
1699
1699
  },
1700
1700
  "v2/durable-core/schemas/execution-snapshot/step-instance-key.d.ts": {
1701
- "sha256": "183bf693b36827a93882732269ef0dab8380eb7e2426f0fd72fbc7407647ee04",
1702
- "bytes": 1147
1701
+ "sha256": "2f4da8c2f1f1c19d202d190d7ff096c50950a050db030d91f8938aa4ab2b64b4",
1702
+ "bytes": 1390
1703
1703
  },
1704
1704
  "v2/durable-core/schemas/execution-snapshot/step-instance-key.js": {
1705
- "sha256": "600b896c6a23e064478f600ae82923317ce343d9a79e7fe919a8fe8d3354bd4e",
1706
- "bytes": 2983
1705
+ "sha256": "044235e54b5ede5f86c7847d2e4e9f481d48cb0f781d9c88804eecc97acbc8b9",
1706
+ "bytes": 3397
1707
1707
  },
1708
1708
  "v2/durable-core/schemas/export-bundle/index.d.ts": {
1709
- "sha256": "3106396993ba9d99bdb557b3b273b74a4c5efaa5c2084b2b56d5ca1824532e3f",
1710
- "bytes": 479882
1709
+ "sha256": "f9726d4f6794f2a0b90505dee4ab3d3f1af2bd4d0e4a376c11506fdcd45eb6f5",
1710
+ "bytes": 479848
1711
1711
  },
1712
1712
  "v2/durable-core/schemas/export-bundle/index.js": {
1713
1713
  "sha256": "6e3566b2d05ea6302bbf4d311b8ec3e94725a8523834efe7670a79e7bd7dc40d",
@@ -1718,8 +1718,8 @@
1718
1718
  "bytes": 2248
1719
1719
  },
1720
1720
  "v2/durable-core/schemas/lib/decision-trace-ref.js": {
1721
- "sha256": "f32533369a34e14237e70a2bcbba44a1bf98cbc34497369c26bd188c35be41e7",
1722
- "bytes": 1632
1721
+ "sha256": "411d1997701274211115307e3bb9c43099ef7fbf070b84f916f231fc84ea504a",
1722
+ "bytes": 1727
1723
1723
  },
1724
1724
  "v2/durable-core/schemas/lib/dedupe-key.d.ts": {
1725
1725
  "sha256": "990634582387e57bd6e24306c7c4d01da1c904ea23b9fb88b75b635dea2c8799",
@@ -232,7 +232,7 @@ function executeStartWorkflow(input, ctx) {
232
232
  kind: 'running',
233
233
  completed: { kind: 'set', values: [] },
234
234
  loopStack: [],
235
- pending: { kind: 'some', step: { stepId: (0, step_instance_key_js_1.asDelimiterSafeIdV1)(firstStep.id), loopPath: [] } },
235
+ pending: { kind: 'some', step: { stepId: (0, step_instance_key_js_1.asExpandedStepIdV1)(firstStep.id), loopPath: [] } },
236
236
  },
237
237
  },
238
238
  };
@@ -37,7 +37,7 @@ function toV1ExecutionState(engineState) {
37
37
  }
38
38
  function convertRunningExecutionStateToEngineState(state) {
39
39
  const completedArray = [...state.completed].sort((a, b) => a.localeCompare(b));
40
- const completed = completedArray.map(s => (0, step_instance_key_js_1.stepInstanceKeyFromParts)((0, step_instance_key_js_1.asDelimiterSafeIdV1)(s), []));
40
+ const completed = completedArray.map(s => (0, step_instance_key_js_1.stepInstanceKeyFromParts)((0, step_instance_key_js_1.asExpandedStepIdV1)(s), []));
41
41
  const loopStack = state.loopStack.map((f) => ({
42
42
  loopId: (0, step_instance_key_js_1.asDelimiterSafeIdV1)(f.loopId),
43
43
  iteration: f.iteration,
@@ -47,7 +47,7 @@ function convertRunningExecutionStateToEngineState(state) {
47
47
  ? {
48
48
  kind: 'some',
49
49
  step: {
50
- stepId: (0, step_instance_key_js_1.asDelimiterSafeIdV1)(state.pendingStep.stepId),
50
+ stepId: (0, step_instance_key_js_1.asExpandedStepIdV1)(state.pendingStep.stepId),
51
51
  loopPath: state.pendingStep.loopPath.map((p) => ({
52
52
  loopId: (0, step_instance_key_js_1.asDelimiterSafeIdV1)(p.loopId),
53
53
  iteration: p.iteration,
@@ -54,7 +54,7 @@ export declare const LoopPathFrameV1Schema: z.ZodObject<{
54
54
  }>;
55
55
  export type PendingStepV1 = z.infer<typeof PendingStepV1Schema>;
56
56
  export declare const PendingStepV1Schema: z.ZodObject<{
57
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
57
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
58
58
  loopPath: z.ZodArray<z.ZodObject<{
59
59
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
60
60
  iteration: z.ZodNumber;
@@ -69,7 +69,7 @@ export declare const PendingStepV1Schema: z.ZodObject<{
69
69
  }>, "many">;
70
70
  }, "strict", z.ZodTypeAny, {
71
71
  stepId: string & {
72
- readonly __brand: "v2.DelimiterSafeIdV1";
72
+ readonly __brand: "v2.ExpandedStepIdV1";
73
73
  };
74
74
  loopPath: {
75
75
  loopId: string & {
@@ -93,7 +93,7 @@ export declare const PendingV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
93
93
  }>, z.ZodObject<{
94
94
  kind: z.ZodLiteral<"some">;
95
95
  step: z.ZodObject<{
96
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
96
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
97
97
  loopPath: z.ZodArray<z.ZodObject<{
98
98
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
99
99
  iteration: z.ZodNumber;
@@ -108,7 +108,7 @@ export declare const PendingV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
108
108
  }>, "many">;
109
109
  }, "strict", z.ZodTypeAny, {
110
110
  stepId: string & {
111
- readonly __brand: "v2.DelimiterSafeIdV1";
111
+ readonly __brand: "v2.ExpandedStepIdV1";
112
112
  };
113
113
  loopPath: {
114
114
  loopId: string & {
@@ -127,7 +127,7 @@ export declare const PendingV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
127
127
  kind: "some";
128
128
  step: {
129
129
  stepId: string & {
130
- readonly __brand: "v2.DelimiterSafeIdV1";
130
+ readonly __brand: "v2.ExpandedStepIdV1";
131
131
  };
132
132
  loopPath: {
133
133
  loopId: string & {
@@ -196,7 +196,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
196
196
  }>, z.ZodObject<{
197
197
  kind: z.ZodLiteral<"some">;
198
198
  step: z.ZodObject<{
199
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
199
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
200
200
  loopPath: z.ZodArray<z.ZodObject<{
201
201
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
202
202
  iteration: z.ZodNumber;
@@ -211,7 +211,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
211
211
  }>, "many">;
212
212
  }, "strict", z.ZodTypeAny, {
213
213
  stepId: string & {
214
- readonly __brand: "v2.DelimiterSafeIdV1";
214
+ readonly __brand: "v2.ExpandedStepIdV1";
215
215
  };
216
216
  loopPath: {
217
217
  loopId: string & {
@@ -230,7 +230,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
230
230
  kind: "some";
231
231
  step: {
232
232
  stepId: string & {
233
- readonly __brand: "v2.DelimiterSafeIdV1";
233
+ readonly __brand: "v2.ExpandedStepIdV1";
234
234
  };
235
235
  loopPath: {
236
236
  loopId: string & {
@@ -268,7 +268,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
268
268
  kind: "some";
269
269
  step: {
270
270
  stepId: string & {
271
- readonly __brand: "v2.DelimiterSafeIdV1";
271
+ readonly __brand: "v2.ExpandedStepIdV1";
272
272
  };
273
273
  loopPath: {
274
274
  loopId: string & {
@@ -343,7 +343,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
343
343
  }>, z.ZodObject<{
344
344
  kind: z.ZodLiteral<"some">;
345
345
  step: z.ZodObject<{
346
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
346
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
347
347
  loopPath: z.ZodArray<z.ZodObject<{
348
348
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
349
349
  iteration: z.ZodNumber;
@@ -358,7 +358,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
358
358
  }>, "many">;
359
359
  }, "strict", z.ZodTypeAny, {
360
360
  stepId: string & {
361
- readonly __brand: "v2.DelimiterSafeIdV1";
361
+ readonly __brand: "v2.ExpandedStepIdV1";
362
362
  };
363
363
  loopPath: {
364
364
  loopId: string & {
@@ -377,7 +377,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
377
377
  kind: "some";
378
378
  step: {
379
379
  stepId: string & {
380
- readonly __brand: "v2.DelimiterSafeIdV1";
380
+ readonly __brand: "v2.ExpandedStepIdV1";
381
381
  };
382
382
  loopPath: {
383
383
  loopId: string & {
@@ -1025,7 +1025,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
1025
1025
  kind: "some";
1026
1026
  step: {
1027
1027
  stepId: string & {
1028
- readonly __brand: "v2.DelimiterSafeIdV1";
1028
+ readonly __brand: "v2.ExpandedStepIdV1";
1029
1029
  };
1030
1030
  loopPath: {
1031
1031
  loopId: string & {
@@ -1169,7 +1169,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
1169
1169
  kind: "some";
1170
1170
  step: {
1171
1171
  stepId: string & {
1172
- readonly __brand: "v2.DelimiterSafeIdV1";
1172
+ readonly __brand: "v2.ExpandedStepIdV1";
1173
1173
  };
1174
1174
  loopPath: {
1175
1175
  loopId: string & {
@@ -1282,7 +1282,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
1282
1282
  kind: "some";
1283
1283
  step: {
1284
1284
  stepId: string & {
1285
- readonly __brand: "v2.DelimiterSafeIdV1";
1285
+ readonly __brand: "v2.ExpandedStepIdV1";
1286
1286
  };
1287
1287
  loopPath: {
1288
1288
  loopId: string & {
@@ -1480,7 +1480,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1480
1480
  }>, z.ZodObject<{
1481
1481
  kind: z.ZodLiteral<"some">;
1482
1482
  step: z.ZodObject<{
1483
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
1483
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
1484
1484
  loopPath: z.ZodArray<z.ZodObject<{
1485
1485
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
1486
1486
  iteration: z.ZodNumber;
@@ -1495,7 +1495,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1495
1495
  }>, "many">;
1496
1496
  }, "strict", z.ZodTypeAny, {
1497
1497
  stepId: string & {
1498
- readonly __brand: "v2.DelimiterSafeIdV1";
1498
+ readonly __brand: "v2.ExpandedStepIdV1";
1499
1499
  };
1500
1500
  loopPath: {
1501
1501
  loopId: string & {
@@ -1514,7 +1514,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1514
1514
  kind: "some";
1515
1515
  step: {
1516
1516
  stepId: string & {
1517
- readonly __brand: "v2.DelimiterSafeIdV1";
1517
+ readonly __brand: "v2.ExpandedStepIdV1";
1518
1518
  };
1519
1519
  loopPath: {
1520
1520
  loopId: string & {
@@ -1552,7 +1552,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1552
1552
  kind: "some";
1553
1553
  step: {
1554
1554
  stepId: string & {
1555
- readonly __brand: "v2.DelimiterSafeIdV1";
1555
+ readonly __brand: "v2.ExpandedStepIdV1";
1556
1556
  };
1557
1557
  loopPath: {
1558
1558
  loopId: string & {
@@ -1627,7 +1627,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1627
1627
  }>, z.ZodObject<{
1628
1628
  kind: z.ZodLiteral<"some">;
1629
1629
  step: z.ZodObject<{
1630
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
1630
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
1631
1631
  loopPath: z.ZodArray<z.ZodObject<{
1632
1632
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
1633
1633
  iteration: z.ZodNumber;
@@ -1642,7 +1642,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1642
1642
  }>, "many">;
1643
1643
  }, "strict", z.ZodTypeAny, {
1644
1644
  stepId: string & {
1645
- readonly __brand: "v2.DelimiterSafeIdV1";
1645
+ readonly __brand: "v2.ExpandedStepIdV1";
1646
1646
  };
1647
1647
  loopPath: {
1648
1648
  loopId: string & {
@@ -1661,7 +1661,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
1661
1661
  kind: "some";
1662
1662
  step: {
1663
1663
  stepId: string & {
1664
- readonly __brand: "v2.DelimiterSafeIdV1";
1664
+ readonly __brand: "v2.ExpandedStepIdV1";
1665
1665
  };
1666
1666
  loopPath: {
1667
1667
  loopId: string & {
@@ -2309,7 +2309,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
2309
2309
  kind: "some";
2310
2310
  step: {
2311
2311
  stepId: string & {
2312
- readonly __brand: "v2.DelimiterSafeIdV1";
2312
+ readonly __brand: "v2.ExpandedStepIdV1";
2313
2313
  };
2314
2314
  loopPath: {
2315
2315
  loopId: string & {
@@ -2453,7 +2453,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
2453
2453
  kind: "some";
2454
2454
  step: {
2455
2455
  stepId: string & {
2456
- readonly __brand: "v2.DelimiterSafeIdV1";
2456
+ readonly __brand: "v2.ExpandedStepIdV1";
2457
2457
  };
2458
2458
  loopPath: {
2459
2459
  loopId: string & {
@@ -2566,7 +2566,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
2566
2566
  kind: "some";
2567
2567
  step: {
2568
2568
  stepId: string & {
2569
- readonly __brand: "v2.DelimiterSafeIdV1";
2569
+ readonly __brand: "v2.ExpandedStepIdV1";
2570
2570
  };
2571
2571
  loopPath: {
2572
2572
  loopId: string & {
@@ -2736,7 +2736,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
2736
2736
  kind: "some";
2737
2737
  step: {
2738
2738
  stepId: string & {
2739
- readonly __brand: "v2.DelimiterSafeIdV1";
2739
+ readonly __brand: "v2.ExpandedStepIdV1";
2740
2740
  };
2741
2741
  loopPath: {
2742
2742
  loopId: string & {
@@ -2849,7 +2849,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
2849
2849
  kind: "some";
2850
2850
  step: {
2851
2851
  stepId: string & {
2852
- readonly __brand: "v2.DelimiterSafeIdV1";
2852
+ readonly __brand: "v2.ExpandedStepIdV1";
2853
2853
  };
2854
2854
  loopPath: {
2855
2855
  loopId: string & {
@@ -3053,7 +3053,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3053
3053
  }>, z.ZodObject<{
3054
3054
  kind: z.ZodLiteral<"some">;
3055
3055
  step: z.ZodObject<{
3056
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
3056
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
3057
3057
  loopPath: z.ZodArray<z.ZodObject<{
3058
3058
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
3059
3059
  iteration: z.ZodNumber;
@@ -3068,7 +3068,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3068
3068
  }>, "many">;
3069
3069
  }, "strict", z.ZodTypeAny, {
3070
3070
  stepId: string & {
3071
- readonly __brand: "v2.DelimiterSafeIdV1";
3071
+ readonly __brand: "v2.ExpandedStepIdV1";
3072
3072
  };
3073
3073
  loopPath: {
3074
3074
  loopId: string & {
@@ -3087,7 +3087,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3087
3087
  kind: "some";
3088
3088
  step: {
3089
3089
  stepId: string & {
3090
- readonly __brand: "v2.DelimiterSafeIdV1";
3090
+ readonly __brand: "v2.ExpandedStepIdV1";
3091
3091
  };
3092
3092
  loopPath: {
3093
3093
  loopId: string & {
@@ -3125,7 +3125,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3125
3125
  kind: "some";
3126
3126
  step: {
3127
3127
  stepId: string & {
3128
- readonly __brand: "v2.DelimiterSafeIdV1";
3128
+ readonly __brand: "v2.ExpandedStepIdV1";
3129
3129
  };
3130
3130
  loopPath: {
3131
3131
  loopId: string & {
@@ -3200,7 +3200,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3200
3200
  }>, z.ZodObject<{
3201
3201
  kind: z.ZodLiteral<"some">;
3202
3202
  step: z.ZodObject<{
3203
- stepId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
3203
+ stepId: z.ZodEffects<z.ZodString, import("./step-instance-key.js").ExpandedStepIdV1, string>;
3204
3204
  loopPath: z.ZodArray<z.ZodObject<{
3205
3205
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
3206
3206
  iteration: z.ZodNumber;
@@ -3215,7 +3215,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3215
3215
  }>, "many">;
3216
3216
  }, "strict", z.ZodTypeAny, {
3217
3217
  stepId: string & {
3218
- readonly __brand: "v2.DelimiterSafeIdV1";
3218
+ readonly __brand: "v2.ExpandedStepIdV1";
3219
3219
  };
3220
3220
  loopPath: {
3221
3221
  loopId: string & {
@@ -3234,7 +3234,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3234
3234
  kind: "some";
3235
3235
  step: {
3236
3236
  stepId: string & {
3237
- readonly __brand: "v2.DelimiterSafeIdV1";
3237
+ readonly __brand: "v2.ExpandedStepIdV1";
3238
3238
  };
3239
3239
  loopPath: {
3240
3240
  loopId: string & {
@@ -3882,7 +3882,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
3882
3882
  kind: "some";
3883
3883
  step: {
3884
3884
  stepId: string & {
3885
- readonly __brand: "v2.DelimiterSafeIdV1";
3885
+ readonly __brand: "v2.ExpandedStepIdV1";
3886
3886
  };
3887
3887
  loopPath: {
3888
3888
  loopId: string & {
@@ -4026,7 +4026,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
4026
4026
  kind: "some";
4027
4027
  step: {
4028
4028
  stepId: string & {
4029
- readonly __brand: "v2.DelimiterSafeIdV1";
4029
+ readonly __brand: "v2.ExpandedStepIdV1";
4030
4030
  };
4031
4031
  loopPath: {
4032
4032
  loopId: string & {
@@ -4139,7 +4139,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
4139
4139
  kind: "some";
4140
4140
  step: {
4141
4141
  stepId: string & {
4142
- readonly __brand: "v2.DelimiterSafeIdV1";
4142
+ readonly __brand: "v2.ExpandedStepIdV1";
4143
4143
  };
4144
4144
  loopPath: {
4145
4145
  loopId: string & {
@@ -4309,7 +4309,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
4309
4309
  kind: "some";
4310
4310
  step: {
4311
4311
  stepId: string & {
4312
- readonly __brand: "v2.DelimiterSafeIdV1";
4312
+ readonly __brand: "v2.ExpandedStepIdV1";
4313
4313
  };
4314
4314
  loopPath: {
4315
4315
  loopId: string & {
@@ -4422,7 +4422,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
4422
4422
  kind: "some";
4423
4423
  step: {
4424
4424
  stepId: string & {
4425
- readonly __brand: "v2.DelimiterSafeIdV1";
4425
+ readonly __brand: "v2.ExpandedStepIdV1";
4426
4426
  };
4427
4427
  loopPath: {
4428
4428
  loopId: string & {
@@ -4599,7 +4599,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
4599
4599
  kind: "some";
4600
4600
  step: {
4601
4601
  stepId: string & {
4602
- readonly __brand: "v2.DelimiterSafeIdV1";
4602
+ readonly __brand: "v2.ExpandedStepIdV1";
4603
4603
  };
4604
4604
  loopPath: {
4605
4605
  loopId: string & {
@@ -4712,7 +4712,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
4712
4712
  kind: "some";
4713
4713
  step: {
4714
4714
  stepId: string & {
4715
- readonly __brand: "v2.DelimiterSafeIdV1";
4715
+ readonly __brand: "v2.ExpandedStepIdV1";
4716
4716
  };
4717
4717
  loopPath: {
4718
4718
  loopId: string & {
@@ -39,7 +39,7 @@ exports.LoopPathFrameV1Schema = zod_1.z.object({
39
39
  iteration: zod_1.z.number().int().nonnegative(),
40
40
  }).strict();
41
41
  exports.PendingStepV1Schema = zod_1.z.object({
42
- stepId: step_instance_key_js_1.DelimiterSafeIdV1Schema,
42
+ stepId: step_instance_key_js_1.ExpandedStepIdV1Schema,
43
43
  loopPath: zod_1.z.array(exports.LoopPathFrameV1Schema),
44
44
  }).strict();
45
45
  exports.PendingV1Schema = zod_1.z.discriminatedUnion('kind', [
@@ -4,6 +4,9 @@ import type { Result } from 'neverthrow';
4
4
  export type DelimiterSafeIdV1 = Brand<string, 'v2.DelimiterSafeIdV1'>;
5
5
  export declare function asDelimiterSafeIdV1(value: string): DelimiterSafeIdV1;
6
6
  export declare const DelimiterSafeIdV1Schema: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
7
+ export type ExpandedStepIdV1 = Brand<string, 'v2.ExpandedStepIdV1'>;
8
+ export declare function asExpandedStepIdV1(value: string): ExpandedStepIdV1;
9
+ export declare const ExpandedStepIdV1Schema: z.ZodEffects<z.ZodString, ExpandedStepIdV1, string>;
7
10
  export type StepInstanceKeyV1 = Brand<string, 'v2.StepInstanceKeyV1'>;
8
11
  export interface LoopPathFrameV1 {
9
12
  readonly loopId: DelimiterSafeIdV1;
@@ -16,6 +19,6 @@ export type StepInstanceKeyParseErrorV1 = {
16
19
  readonly code: 'STEP_INSTANCE_KEY_BAD_FORMAT';
17
20
  readonly message: string;
18
21
  };
19
- export declare function stepInstanceKeyFromParts(stepId: DelimiterSafeIdV1, loopPath: readonly LoopPathFrameV1[]): StepInstanceKeyV1;
22
+ export declare function stepInstanceKeyFromParts(stepId: ExpandedStepIdV1, loopPath: readonly LoopPathFrameV1[]): StepInstanceKeyV1;
20
23
  export declare function parseStepInstanceKeyV1(raw: string): Result<StepInstanceKeyV1, StepInstanceKeyParseErrorV1>;
21
24
  export declare const StepInstanceKeyV1Schema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, StepInstanceKeyV1, string>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StepInstanceKeyV1Schema = exports.DelimiterSafeIdV1Schema = void 0;
3
+ exports.StepInstanceKeyV1Schema = exports.ExpandedStepIdV1Schema = exports.DelimiterSafeIdV1Schema = void 0;
4
4
  exports.asDelimiterSafeIdV1 = asDelimiterSafeIdV1;
5
+ exports.asExpandedStepIdV1 = asExpandedStepIdV1;
5
6
  exports.stepInstanceKeyFromParts = stepInstanceKeyFromParts;
6
7
  exports.parseStepInstanceKeyV1 = parseStepInstanceKeyV1;
7
8
  const zod_1 = require("zod");
@@ -13,6 +14,14 @@ exports.DelimiterSafeIdV1Schema = zod_1.z
13
14
  .string()
14
15
  .regex(/^[a-z0-9_-]+$/, 'Expected delimiter-safe id: [a-z0-9_-]+')
15
16
  .transform(asDelimiterSafeIdV1);
17
+ function asExpandedStepIdV1(value) {
18
+ return value;
19
+ }
20
+ const EXPANDED_STEP_ID_PATTERN = /^[a-z0-9_-]+(?:\.[a-z0-9_-]+)*$/;
21
+ exports.ExpandedStepIdV1Schema = zod_1.z
22
+ .string()
23
+ .regex(EXPANDED_STEP_ID_PATTERN, 'Expected expanded step id: [a-z0-9_-]+(?:\\.[a-z0-9_-]+)*')
24
+ .transform(asExpandedStepIdV1);
16
25
  function asStepInstanceKeyV1(value) {
17
26
  return value;
18
27
  }
@@ -28,7 +37,7 @@ function parseStepInstanceKeyV1(raw) {
28
37
  const parts = raw.split('::');
29
38
  if (parts.length === 1) {
30
39
  const stepId = parts[0];
31
- if (!/^[a-z0-9_-]+$/.test(stepId)) {
40
+ if (!EXPANDED_STEP_ID_PATTERN.test(stepId)) {
32
41
  return (0, neverthrow_1.err)({ code: 'STEP_INSTANCE_KEY_BAD_FORMAT', message: 'Invalid stepId segment' });
33
42
  }
34
43
  return (0, neverthrow_1.ok)(asStepInstanceKeyV1(stepId));
@@ -37,7 +46,7 @@ function parseStepInstanceKeyV1(raw) {
37
46
  return (0, neverthrow_1.err)({ code: 'STEP_INSTANCE_KEY_BAD_FORMAT', message: 'Expected at most one "::" separator' });
38
47
  }
39
48
  const [loopPathRaw, stepId] = parts;
40
- if (!/^[a-z0-9_-]+$/.test(stepId)) {
49
+ if (!EXPANDED_STEP_ID_PATTERN.test(stepId)) {
41
50
  return (0, neverthrow_1.err)({ code: 'STEP_INSTANCE_KEY_BAD_FORMAT', message: 'Invalid stepId segment' });
42
51
  }
43
52
  const frames = loopPathRaw.split('/');
@@ -2279,7 +2279,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2279
2279
  }>, z.ZodObject<{
2280
2280
  kind: z.ZodLiteral<"some">;
2281
2281
  step: z.ZodObject<{
2282
- stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
2282
+ stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").ExpandedStepIdV1, string>;
2283
2283
  loopPath: z.ZodArray<z.ZodObject<{
2284
2284
  loopId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
2285
2285
  iteration: z.ZodNumber;
@@ -2294,7 +2294,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2294
2294
  }>, "many">;
2295
2295
  }, "strict", z.ZodTypeAny, {
2296
2296
  stepId: string & {
2297
- readonly __brand: "v2.DelimiterSafeIdV1";
2297
+ readonly __brand: "v2.ExpandedStepIdV1";
2298
2298
  };
2299
2299
  loopPath: {
2300
2300
  loopId: string & {
@@ -2313,7 +2313,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2313
2313
  kind: "some";
2314
2314
  step: {
2315
2315
  stepId: string & {
2316
- readonly __brand: "v2.DelimiterSafeIdV1";
2316
+ readonly __brand: "v2.ExpandedStepIdV1";
2317
2317
  };
2318
2318
  loopPath: {
2319
2319
  loopId: string & {
@@ -2351,7 +2351,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2351
2351
  kind: "some";
2352
2352
  step: {
2353
2353
  stepId: string & {
2354
- readonly __brand: "v2.DelimiterSafeIdV1";
2354
+ readonly __brand: "v2.ExpandedStepIdV1";
2355
2355
  };
2356
2356
  loopPath: {
2357
2357
  loopId: string & {
@@ -2426,7 +2426,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2426
2426
  }>, z.ZodObject<{
2427
2427
  kind: z.ZodLiteral<"some">;
2428
2428
  step: z.ZodObject<{
2429
- stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
2429
+ stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").ExpandedStepIdV1, string>;
2430
2430
  loopPath: z.ZodArray<z.ZodObject<{
2431
2431
  loopId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
2432
2432
  iteration: z.ZodNumber;
@@ -2441,7 +2441,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2441
2441
  }>, "many">;
2442
2442
  }, "strict", z.ZodTypeAny, {
2443
2443
  stepId: string & {
2444
- readonly __brand: "v2.DelimiterSafeIdV1";
2444
+ readonly __brand: "v2.ExpandedStepIdV1";
2445
2445
  };
2446
2446
  loopPath: {
2447
2447
  loopId: string & {
@@ -2460,7 +2460,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2460
2460
  kind: "some";
2461
2461
  step: {
2462
2462
  stepId: string & {
2463
- readonly __brand: "v2.DelimiterSafeIdV1";
2463
+ readonly __brand: "v2.ExpandedStepIdV1";
2464
2464
  };
2465
2465
  loopPath: {
2466
2466
  loopId: string & {
@@ -3108,7 +3108,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3108
3108
  kind: "some";
3109
3109
  step: {
3110
3110
  stepId: string & {
3111
- readonly __brand: "v2.DelimiterSafeIdV1";
3111
+ readonly __brand: "v2.ExpandedStepIdV1";
3112
3112
  };
3113
3113
  loopPath: {
3114
3114
  loopId: string & {
@@ -3252,7 +3252,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3252
3252
  kind: "some";
3253
3253
  step: {
3254
3254
  stepId: string & {
3255
- readonly __brand: "v2.DelimiterSafeIdV1";
3255
+ readonly __brand: "v2.ExpandedStepIdV1";
3256
3256
  };
3257
3257
  loopPath: {
3258
3258
  loopId: string & {
@@ -3365,7 +3365,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3365
3365
  kind: "some";
3366
3366
  step: {
3367
3367
  stepId: string & {
3368
- readonly __brand: "v2.DelimiterSafeIdV1";
3368
+ readonly __brand: "v2.ExpandedStepIdV1";
3369
3369
  };
3370
3370
  loopPath: {
3371
3371
  loopId: string & {
@@ -3535,7 +3535,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3535
3535
  kind: "some";
3536
3536
  step: {
3537
3537
  stepId: string & {
3538
- readonly __brand: "v2.DelimiterSafeIdV1";
3538
+ readonly __brand: "v2.ExpandedStepIdV1";
3539
3539
  };
3540
3540
  loopPath: {
3541
3541
  loopId: string & {
@@ -3648,7 +3648,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3648
3648
  kind: "some";
3649
3649
  step: {
3650
3650
  stepId: string & {
3651
- readonly __brand: "v2.DelimiterSafeIdV1";
3651
+ readonly __brand: "v2.ExpandedStepIdV1";
3652
3652
  };
3653
3653
  loopPath: {
3654
3654
  loopId: string & {
@@ -3825,7 +3825,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3825
3825
  kind: "some";
3826
3826
  step: {
3827
3827
  stepId: string & {
3828
- readonly __brand: "v2.DelimiterSafeIdV1";
3828
+ readonly __brand: "v2.ExpandedStepIdV1";
3829
3829
  };
3830
3830
  loopPath: {
3831
3831
  loopId: string & {
@@ -3938,7 +3938,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3938
3938
  kind: "some";
3939
3939
  step: {
3940
3940
  stepId: string & {
3941
- readonly __brand: "v2.DelimiterSafeIdV1";
3941
+ readonly __brand: "v2.ExpandedStepIdV1";
3942
3942
  };
3943
3943
  loopPath: {
3944
3944
  loopId: string & {
@@ -4123,7 +4123,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4123
4123
  kind: "some";
4124
4124
  step: {
4125
4125
  stepId: string & {
4126
- readonly __brand: "v2.DelimiterSafeIdV1";
4126
+ readonly __brand: "v2.ExpandedStepIdV1";
4127
4127
  };
4128
4128
  loopPath: {
4129
4129
  loopId: string & {
@@ -4236,7 +4236,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4236
4236
  kind: "some";
4237
4237
  step: {
4238
4238
  stepId: string & {
4239
- readonly __brand: "v2.DelimiterSafeIdV1";
4239
+ readonly __brand: "v2.ExpandedStepIdV1";
4240
4240
  };
4241
4241
  loopPath: {
4242
4242
  loopId: string & {
@@ -7401,7 +7401,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7401
7401
  }>, z.ZodObject<{
7402
7402
  kind: z.ZodLiteral<"some">;
7403
7403
  step: z.ZodObject<{
7404
- stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
7404
+ stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").ExpandedStepIdV1, string>;
7405
7405
  loopPath: z.ZodArray<z.ZodObject<{
7406
7406
  loopId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
7407
7407
  iteration: z.ZodNumber;
@@ -7416,7 +7416,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7416
7416
  }>, "many">;
7417
7417
  }, "strict", z.ZodTypeAny, {
7418
7418
  stepId: string & {
7419
- readonly __brand: "v2.DelimiterSafeIdV1";
7419
+ readonly __brand: "v2.ExpandedStepIdV1";
7420
7420
  };
7421
7421
  loopPath: {
7422
7422
  loopId: string & {
@@ -7435,7 +7435,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7435
7435
  kind: "some";
7436
7436
  step: {
7437
7437
  stepId: string & {
7438
- readonly __brand: "v2.DelimiterSafeIdV1";
7438
+ readonly __brand: "v2.ExpandedStepIdV1";
7439
7439
  };
7440
7440
  loopPath: {
7441
7441
  loopId: string & {
@@ -7473,7 +7473,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7473
7473
  kind: "some";
7474
7474
  step: {
7475
7475
  stepId: string & {
7476
- readonly __brand: "v2.DelimiterSafeIdV1";
7476
+ readonly __brand: "v2.ExpandedStepIdV1";
7477
7477
  };
7478
7478
  loopPath: {
7479
7479
  loopId: string & {
@@ -7548,7 +7548,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7548
7548
  }>, z.ZodObject<{
7549
7549
  kind: z.ZodLiteral<"some">;
7550
7550
  step: z.ZodObject<{
7551
- stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
7551
+ stepId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").ExpandedStepIdV1, string>;
7552
7552
  loopPath: z.ZodArray<z.ZodObject<{
7553
7553
  loopId: z.ZodEffects<z.ZodString, import("../execution-snapshot/step-instance-key.js").DelimiterSafeIdV1, string>;
7554
7554
  iteration: z.ZodNumber;
@@ -7563,7 +7563,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7563
7563
  }>, "many">;
7564
7564
  }, "strict", z.ZodTypeAny, {
7565
7565
  stepId: string & {
7566
- readonly __brand: "v2.DelimiterSafeIdV1";
7566
+ readonly __brand: "v2.ExpandedStepIdV1";
7567
7567
  };
7568
7568
  loopPath: {
7569
7569
  loopId: string & {
@@ -7582,7 +7582,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7582
7582
  kind: "some";
7583
7583
  step: {
7584
7584
  stepId: string & {
7585
- readonly __brand: "v2.DelimiterSafeIdV1";
7585
+ readonly __brand: "v2.ExpandedStepIdV1";
7586
7586
  };
7587
7587
  loopPath: {
7588
7588
  loopId: string & {
@@ -8230,7 +8230,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8230
8230
  kind: "some";
8231
8231
  step: {
8232
8232
  stepId: string & {
8233
- readonly __brand: "v2.DelimiterSafeIdV1";
8233
+ readonly __brand: "v2.ExpandedStepIdV1";
8234
8234
  };
8235
8235
  loopPath: {
8236
8236
  loopId: string & {
@@ -8374,7 +8374,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8374
8374
  kind: "some";
8375
8375
  step: {
8376
8376
  stepId: string & {
8377
- readonly __brand: "v2.DelimiterSafeIdV1";
8377
+ readonly __brand: "v2.ExpandedStepIdV1";
8378
8378
  };
8379
8379
  loopPath: {
8380
8380
  loopId: string & {
@@ -8487,7 +8487,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8487
8487
  kind: "some";
8488
8488
  step: {
8489
8489
  stepId: string & {
8490
- readonly __brand: "v2.DelimiterSafeIdV1";
8490
+ readonly __brand: "v2.ExpandedStepIdV1";
8491
8491
  };
8492
8492
  loopPath: {
8493
8493
  loopId: string & {
@@ -8657,7 +8657,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8657
8657
  kind: "some";
8658
8658
  step: {
8659
8659
  stepId: string & {
8660
- readonly __brand: "v2.DelimiterSafeIdV1";
8660
+ readonly __brand: "v2.ExpandedStepIdV1";
8661
8661
  };
8662
8662
  loopPath: {
8663
8663
  loopId: string & {
@@ -8770,7 +8770,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8770
8770
  kind: "some";
8771
8771
  step: {
8772
8772
  stepId: string & {
8773
- readonly __brand: "v2.DelimiterSafeIdV1";
8773
+ readonly __brand: "v2.ExpandedStepIdV1";
8774
8774
  };
8775
8775
  loopPath: {
8776
8776
  loopId: string & {
@@ -8947,7 +8947,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8947
8947
  kind: "some";
8948
8948
  step: {
8949
8949
  stepId: string & {
8950
- readonly __brand: "v2.DelimiterSafeIdV1";
8950
+ readonly __brand: "v2.ExpandedStepIdV1";
8951
8951
  };
8952
8952
  loopPath: {
8953
8953
  loopId: string & {
@@ -9060,7 +9060,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9060
9060
  kind: "some";
9061
9061
  step: {
9062
9062
  stepId: string & {
9063
- readonly __brand: "v2.DelimiterSafeIdV1";
9063
+ readonly __brand: "v2.ExpandedStepIdV1";
9064
9064
  };
9065
9065
  loopPath: {
9066
9066
  loopId: string & {
@@ -9245,7 +9245,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9245
9245
  kind: "some";
9246
9246
  step: {
9247
9247
  stepId: string & {
9248
- readonly __brand: "v2.DelimiterSafeIdV1";
9248
+ readonly __brand: "v2.ExpandedStepIdV1";
9249
9249
  };
9250
9250
  loopPath: {
9251
9251
  loopId: string & {
@@ -9358,7 +9358,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9358
9358
  kind: "some";
9359
9359
  step: {
9360
9360
  stepId: string & {
9361
- readonly __brand: "v2.DelimiterSafeIdV1";
9361
+ readonly __brand: "v2.ExpandedStepIdV1";
9362
9362
  };
9363
9363
  loopPath: {
9364
9364
  loopId: string & {
@@ -10298,7 +10298,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10298
10298
  kind: "some";
10299
10299
  step: {
10300
10300
  stepId: string & {
10301
- readonly __brand: "v2.DelimiterSafeIdV1";
10301
+ readonly __brand: "v2.ExpandedStepIdV1";
10302
10302
  };
10303
10303
  loopPath: {
10304
10304
  loopId: string & {
@@ -10411,7 +10411,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10411
10411
  kind: "some";
10412
10412
  step: {
10413
10413
  stepId: string & {
10414
- readonly __brand: "v2.DelimiterSafeIdV1";
10414
+ readonly __brand: "v2.ExpandedStepIdV1";
10415
10415
  };
10416
10416
  loopPath: {
10417
10417
  loopId: string & {
@@ -9,9 +9,10 @@ exports.DecisionTraceRefKindSchema = zod_1.z.enum([
9
9
  'condition_id',
10
10
  'iteration',
11
11
  ]);
12
+ const EXPANDED_STEP_ID_PATTERN = /^[a-z0-9_-]+(?:\.[a-z0-9_-]+)*$/;
12
13
  const StepIdRefSchema = zod_1.z.object({
13
14
  kind: zod_1.z.literal('step_id'),
14
- stepId: zod_1.z.string().regex(constants_js_1.DELIMITER_SAFE_ID_PATTERN, 'stepId must be delimiter-safe: [a-z0-9_-]+'),
15
+ stepId: zod_1.z.string().regex(EXPANDED_STEP_ID_PATTERN, 'stepId must be delimiter-safe segments joined by dots: [a-z0-9_-]+(?:\\.[a-z0-9_-]+)*'),
15
16
  }).strict();
16
17
  const LoopIdRefSchema = zod_1.z.object({
17
18
  kind: zod_1.z.literal('loop_id'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Step-by-step workflow enforcement for AI agents via MCP",
5
5
  "license": "MIT",
6
6
  "repository": {