@oisincoveney/pipeline 3.12.0 → 3.12.1

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.
@@ -99,10 +99,10 @@ declare const workflowNodeBaseSchema: z.ZodObject<{
99
99
  models: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
100
  needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
101
  reasoning_effort: z.ZodOptional<z.ZodEnum<{
102
- none: "none";
103
- low: "low";
104
- medium: "medium";
105
102
  high: "high";
103
+ medium: "medium";
104
+ low: "low";
105
+ none: "none";
106
106
  xhigh: "xhigh";
107
107
  }>>;
108
108
  retries: z.ZodOptional<z.ZodObject<{
@@ -319,10 +319,10 @@ declare const configSchema: z.ZodObject<{
319
319
  schema_path: z.ZodOptional<z.ZodString>;
320
320
  }, z.core.$strict>>;
321
321
  reasoning_effort: z.ZodOptional<z.ZodEnum<{
322
- none: "none";
323
- low: "low";
324
- medium: "medium";
325
322
  high: "high";
323
+ medium: "medium";
324
+ low: "low";
325
+ none: "none";
326
326
  xhigh: "xhigh";
327
327
  }>>;
328
328
  rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -407,10 +407,10 @@ declare const configSchema: z.ZodObject<{
407
407
  host_models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
408
408
  model: z.ZodOptional<z.ZodString>;
409
409
  reasoning_effort: z.ZodOptional<z.ZodEnum<{
410
- none: "none";
411
- low: "low";
412
- medium: "medium";
413
410
  high: "high";
411
+ medium: "medium";
412
+ low: "low";
413
+ none: "none";
414
414
  xhigh: "xhigh";
415
415
  }>>;
416
416
  type: z.ZodEnum<{
@@ -496,10 +496,10 @@ declare const configSchema: z.ZodObject<{
496
496
  models: z.ZodArray<z.ZodString>;
497
497
  profile: z.ZodString;
498
498
  reasoning_effort: z.ZodOptional<z.ZodEnum<{
499
- none: "none";
500
- low: "low";
501
- medium: "medium";
502
499
  high: "high";
500
+ medium: "medium";
501
+ low: "low";
502
+ none: "none";
503
503
  xhigh: "xhigh";
504
504
  }>>;
505
505
  }, z.core.$strict>>>;
@@ -509,8 +509,8 @@ declare const configSchema: z.ZodObject<{
509
509
  schedules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
510
510
  description: z.ZodOptional<z.ZodString>;
511
511
  baseline: z.ZodEnum<{
512
- execute: "execute";
513
512
  quick: "quick";
513
+ execute: "execute";
514
514
  }>;
515
515
  max_parallel_nodes: z.ZodOptional<z.ZodNumber>;
516
516
  node_catalog: z.ZodOptional<z.ZodString>;
@@ -5,13 +5,13 @@ import { z } from "zod";
5
5
  //#region src/moka-submit.d.ts
6
6
  declare const mokaSubmitDirectHooksSchema: z.ZodRecord<z.ZodEnum<{
7
7
  "workflow.start": "workflow.start";
8
- "node.finish": "node.finish";
9
- "node.start": "node.start";
10
8
  "workflow.success": "workflow.success";
11
9
  "workflow.failure": "workflow.failure";
12
10
  "workflow.complete": "workflow.complete";
11
+ "node.start": "node.start";
13
12
  "node.success": "node.success";
14
13
  "node.error": "node.error";
14
+ "node.finish": "node.finish";
15
15
  "gate.failure": "gate.failure";
16
16
  }> & z.core.$partial, z.ZodDiscriminatedUnion<[z.ZodObject<{
17
17
  failure: z.ZodDefault<z.ZodEnum<{
@@ -98,13 +98,13 @@ declare const mokaSubmitOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
98
98
  }, z.core.$strict>>;
99
99
  hooks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
100
100
  "workflow.start": "workflow.start";
101
- "node.finish": "node.finish";
102
- "node.start": "node.start";
103
101
  "workflow.success": "workflow.success";
104
102
  "workflow.failure": "workflow.failure";
105
103
  "workflow.complete": "workflow.complete";
104
+ "node.start": "node.start";
106
105
  "node.success": "node.success";
107
106
  "node.error": "node.error";
107
+ "node.finish": "node.finish";
108
108
  "gate.failure": "gate.failure";
109
109
  }> & z.core.$partial, z.ZodDiscriminatedUnion<[z.ZodObject<{
110
110
  failure: z.ZodDefault<z.ZodEnum<{
@@ -166,8 +166,8 @@ declare const mokaSubmitOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
166
166
  }, z.core.$strict>>;
167
167
  serviceAccountName: z.ZodOptional<z.ZodString>;
168
168
  mode: z.ZodEnum<{
169
- quick: "quick";
170
169
  full: "full";
170
+ quick: "quick";
171
171
  }>;
172
172
  schedulePath: z.ZodOptional<z.ZodString>;
173
173
  scheduleYaml: z.ZodOptional<z.ZodString>;
@@ -216,13 +216,13 @@ declare const mokaSubmitOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
216
216
  }, z.core.$strict>>;
217
217
  hooks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
218
218
  "workflow.start": "workflow.start";
219
- "node.finish": "node.finish";
220
- "node.start": "node.start";
221
219
  "workflow.success": "workflow.success";
222
220
  "workflow.failure": "workflow.failure";
223
221
  "workflow.complete": "workflow.complete";
222
+ "node.start": "node.start";
224
223
  "node.success": "node.success";
225
224
  "node.error": "node.error";
225
+ "node.finish": "node.finish";
226
226
  "gate.failure": "gate.failure";
227
227
  }> & z.core.$partial, z.ZodDiscriminatedUnion<[z.ZodObject<{
228
228
  failure: z.ZodDefault<z.ZodEnum<{
@@ -77,7 +77,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
77
77
  })[] | undefined;
78
78
  models?: string[] | undefined;
79
79
  needs?: string[] | undefined;
80
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
80
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
81
81
  retries?: {
82
82
  max_attempts: number;
83
83
  backoff_ms?: number | undefined;
@@ -156,7 +156,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
156
156
  })[] | undefined;
157
157
  models?: string[] | undefined;
158
158
  needs?: string[] | undefined;
159
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
159
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
160
160
  retries?: {
161
161
  max_attempts: number;
162
162
  backoff_ms?: number | undefined;
@@ -234,7 +234,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
234
234
  })[] | undefined;
235
235
  models?: string[] | undefined;
236
236
  needs?: string[] | undefined;
237
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
237
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
238
238
  retries?: {
239
239
  max_attempts: number;
240
240
  backoff_ms?: number | undefined;
@@ -312,7 +312,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
312
312
  })[] | undefined;
313
313
  models?: string[] | undefined;
314
314
  needs?: string[] | undefined;
315
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
315
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
316
316
  retries?: {
317
317
  max_attempts: number;
318
318
  backoff_ms?: number | undefined;
@@ -390,7 +390,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
390
390
  })[] | undefined;
391
391
  models?: string[] | undefined;
392
392
  needs?: string[] | undefined;
393
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
393
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
394
394
  retries?: {
395
395
  max_attempts: number;
396
396
  backoff_ms?: number | undefined;
@@ -467,7 +467,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
467
467
  })[] | undefined;
468
468
  models?: string[] | undefined;
469
469
  needs?: string[] | undefined;
470
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
470
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
471
471
  retries?: {
472
472
  max_attempts: number;
473
473
  backoff_ms?: number | undefined;
@@ -546,7 +546,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
546
546
  })[] | undefined;
547
547
  models?: string[] | undefined;
548
548
  needs?: string[] | undefined;
549
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
549
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
550
550
  retries?: {
551
551
  max_attempts: number;
552
552
  backoff_ms?: number | undefined;
@@ -624,7 +624,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
624
624
  })[] | undefined;
625
625
  models?: string[] | undefined;
626
626
  needs?: string[] | undefined;
627
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
627
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
628
628
  retries?: {
629
629
  max_attempts: number;
630
630
  backoff_ms?: number | undefined;
@@ -702,7 +702,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
702
702
  })[] | undefined;
703
703
  models?: string[] | undefined;
704
704
  needs?: string[] | undefined;
705
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
705
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
706
706
  retries?: {
707
707
  max_attempts: number;
708
708
  backoff_ms?: number | undefined;
@@ -780,7 +780,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
780
780
  })[] | undefined;
781
781
  models?: string[] | undefined;
782
782
  needs?: string[] | undefined;
783
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
783
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
784
784
  retries?: {
785
785
  max_attempts: number;
786
786
  backoff_ms?: number | undefined;
@@ -856,7 +856,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
856
856
  })[] | undefined;
857
857
  models?: string[] | undefined;
858
858
  needs?: string[] | undefined;
859
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
859
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
860
860
  retries?: {
861
861
  max_attempts: number;
862
862
  backoff_ms?: number | undefined;
@@ -935,7 +935,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
935
935
  })[] | undefined;
936
936
  models?: string[] | undefined;
937
937
  needs?: string[] | undefined;
938
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
938
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
939
939
  retries?: {
940
940
  max_attempts: number;
941
941
  backoff_ms?: number | undefined;
@@ -1013,7 +1013,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1013
1013
  })[] | undefined;
1014
1014
  models?: string[] | undefined;
1015
1015
  needs?: string[] | undefined;
1016
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1016
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1017
1017
  retries?: {
1018
1018
  max_attempts: number;
1019
1019
  backoff_ms?: number | undefined;
@@ -1091,7 +1091,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1091
1091
  })[] | undefined;
1092
1092
  models?: string[] | undefined;
1093
1093
  needs?: string[] | undefined;
1094
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1094
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1095
1095
  retries?: {
1096
1096
  max_attempts: number;
1097
1097
  backoff_ms?: number | undefined;
@@ -1169,7 +1169,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1169
1169
  })[] | undefined;
1170
1170
  models?: string[] | undefined;
1171
1171
  needs?: string[] | undefined;
1172
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1172
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1173
1173
  retries?: {
1174
1174
  max_attempts: number;
1175
1175
  backoff_ms?: number | undefined;
@@ -1246,7 +1246,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1246
1246
  })[] | undefined;
1247
1247
  models?: string[] | undefined;
1248
1248
  needs?: string[] | undefined;
1249
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1249
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1250
1250
  retries?: {
1251
1251
  max_attempts: number;
1252
1252
  backoff_ms?: number | undefined;
@@ -1325,7 +1325,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1325
1325
  })[] | undefined;
1326
1326
  models?: string[] | undefined;
1327
1327
  needs?: string[] | undefined;
1328
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1328
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1329
1329
  retries?: {
1330
1330
  max_attempts: number;
1331
1331
  backoff_ms?: number | undefined;
@@ -1403,7 +1403,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1403
1403
  })[] | undefined;
1404
1404
  models?: string[] | undefined;
1405
1405
  needs?: string[] | undefined;
1406
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1406
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1407
1407
  retries?: {
1408
1408
  max_attempts: number;
1409
1409
  backoff_ms?: number | undefined;
@@ -1481,7 +1481,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1481
1481
  })[] | undefined;
1482
1482
  models?: string[] | undefined;
1483
1483
  needs?: string[] | undefined;
1484
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1484
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1485
1485
  retries?: {
1486
1486
  max_attempts: number;
1487
1487
  backoff_ms?: number | undefined;
@@ -1559,7 +1559,7 @@ declare const scheduleArtifactSchema: z.ZodObject<{
1559
1559
  })[] | undefined;
1560
1560
  models?: string[] | undefined;
1561
1561
  needs?: string[] | undefined;
1562
- reasoning_effort?: "none" | "low" | "medium" | "high" | "xhigh" | undefined;
1562
+ reasoning_effort?: "high" | "medium" | "low" | "none" | "xhigh" | undefined;
1563
1563
  retries?: {
1564
1564
  max_attempts: number;
1565
1565
  backoff_ms?: number | undefined;
@@ -48,8 +48,8 @@ declare const runnerDeliverySchema: z.ZodObject<{
48
48
  declare const mokaSubmissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
49
  kind: z.ZodLiteral<"graph">;
50
50
  mode: z.ZodEnum<{
51
- quick: "quick";
52
51
  full: "full";
52
+ quick: "quick";
53
53
  }>;
54
54
  }, z.core.$strict>, z.ZodObject<{
55
55
  argv: z.ZodArray<z.ZodString>;
@@ -114,8 +114,8 @@ declare const runnerCommandPayloadSchema: z.ZodObject<{
114
114
  submission: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
115
115
  kind: z.ZodLiteral<"graph">;
116
116
  mode: z.ZodEnum<{
117
- quick: "quick";
118
117
  full: "full";
118
+ quick: "quick";
119
119
  }>;
120
120
  }, z.core.$strict>, z.ZodObject<{
121
121
  argv: z.ZodArray<z.ZodString>;
@@ -11,8 +11,8 @@ declare const runnerEventRecordSchema: z.ZodUnion<readonly [z.ZodObject<{
11
11
  runId: z.ZodString;
12
12
  sequence: z.ZodNumber;
13
13
  type: z.ZodEnum<{
14
- "workflow.planned": "workflow.planned";
15
14
  "workflow.start": "workflow.start";
15
+ "workflow.planned": "workflow.planned";
16
16
  }>;
17
17
  workflowPlan: z.ZodObject<{
18
18
  edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -58,10 +58,10 @@ declare const runnerEventRecordSchema: z.ZodUnion<readonly [z.ZodObject<{
58
58
  }>;
59
59
  }, z.core.$strip>;
60
60
  type: z.ZodEnum<{
61
+ "node.start": "node.start";
62
+ "node.finish": "node.finish";
61
63
  "agent.finish": "agent.finish";
62
64
  "agent.start": "agent.start";
63
- "node.finish": "node.finish";
64
- "node.start": "node.start";
65
65
  }>;
66
66
  }, z.core.$strip>, z.ZodObject<{
67
67
  at: z.ZodOptional<z.ZodString>;
@@ -208,9 +208,9 @@ declare const runnerEventRecordSchema: z.ZodUnion<readonly [z.ZodObject<{
208
208
  blocked: "blocked";
209
209
  }>;
210
210
  priority: z.ZodOptional<z.ZodEnum<{
211
- low: "low";
212
- medium: "medium";
213
211
  high: "high";
212
+ medium: "medium";
213
+ low: "low";
214
214
  }>>;
215
215
  status: z.ZodEnum<{
216
216
  "To Do": "To Do";
@@ -256,8 +256,8 @@ declare const runnerEventBatchSchema: z.ZodObject<{
256
256
  runId: z.ZodString;
257
257
  sequence: z.ZodNumber;
258
258
  type: z.ZodEnum<{
259
- "workflow.planned": "workflow.planned";
260
259
  "workflow.start": "workflow.start";
260
+ "workflow.planned": "workflow.planned";
261
261
  }>;
262
262
  workflowPlan: z.ZodObject<{
263
263
  edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -303,10 +303,10 @@ declare const runnerEventBatchSchema: z.ZodObject<{
303
303
  }>;
304
304
  }, z.core.$strip>;
305
305
  type: z.ZodEnum<{
306
+ "node.start": "node.start";
307
+ "node.finish": "node.finish";
306
308
  "agent.finish": "agent.finish";
307
309
  "agent.start": "agent.start";
308
- "node.finish": "node.finish";
309
- "node.start": "node.start";
310
310
  }>;
311
311
  }, z.core.$strip>, z.ZodObject<{
312
312
  at: z.ZodOptional<z.ZodString>;
@@ -453,9 +453,9 @@ declare const runnerEventBatchSchema: z.ZodObject<{
453
453
  blocked: "blocked";
454
454
  }>;
455
455
  priority: z.ZodOptional<z.ZodEnum<{
456
- low: "low";
457
- medium: "medium";
458
456
  high: "high";
457
+ medium: "medium";
458
+ low: "low";
459
459
  }>>;
460
460
  status: z.ZodEnum<{
461
461
  "To Do": "To Do";
@@ -24,13 +24,13 @@ function executeOpencodeEffect(deps, plan, options) {
24
24
  function executeOpencodeSession(deps, plan, options) {
25
25
  return Effect.gen(function* () {
26
26
  return successResult(plan, yield* driveSession(deps, plan, options));
27
- }).pipe(withAgentTimeout(plan), Effect.catchAll((error) => Effect.succeed(failureResult(plan, error))));
27
+ }).pipe(boundByAgentTimeout(plan), Effect.catchAll((error) => Effect.succeed(failureResult(plan, error))));
28
28
  }
29
- function withAgentTimeout(plan) {
29
+ function boundByAgentTimeout(plan) {
30
30
  return (effect) => {
31
31
  const timeoutMs = plan.timeoutMs;
32
32
  if (!timeoutMs || timeoutMs <= 0) return effect;
33
- return Effect.timeoutFail(effect, {
33
+ return Effect.timeoutFail(Effect.disconnect(effect), {
34
34
  duration: Duration.millis(timeoutMs),
35
35
  onTimeout: () => /* @__PURE__ */ new Error(`agent session timed out after ${timeoutMs}ms`)
36
36
  });
package/package.json CHANGED
@@ -128,7 +128,7 @@
128
128
  "prepack": "bun run build:cli"
129
129
  },
130
130
  "type": "module",
131
- "version": "3.12.0",
131
+ "version": "3.12.1",
132
132
  "description": "Config-driven multi-agent pipeline runner for repository work",
133
133
  "main": "./dist/index.js",
134
134
  "types": "./dist/index.d.ts",