@oisincoveney/pipeline 3.11.10 → 3.11.11

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.
@@ -80,6 +80,7 @@ declare const runnerArgoWorkflowManifestSchema: z.ZodObject<{
80
80
  path: z.ZodOptional<z.ZodString>;
81
81
  }, z.core.$strict>>;
82
82
  }, z.core.$strict>>;
83
+ activeDeadlineSeconds: z.ZodOptional<z.ZodNumber>;
83
84
  name: z.ZodString;
84
85
  retryStrategy: z.ZodOptional<z.ZodObject<{
85
86
  expression: z.ZodOptional<z.ZodString>;
@@ -31,6 +31,7 @@ const DEFAULT_RUNNER_RESOURCES = {
31
31
  memory: "8Gi"
32
32
  }
33
33
  };
34
+ const DEFAULT_RUNNER_DEADLINE_SECONDS = 3600;
34
35
  const kubernetesNameSchema = z.string().min(1);
35
36
  const labelValueSchema = z.string().min(1);
36
37
  const stringMapSchema = z.record(z.string().min(1), z.string().min(1));
@@ -109,6 +110,7 @@ const argoWorkflowTemplateSchema = z.object({
109
110
  parameters: z.array(z.object({ name: z.string().min(1) }).strict()).optional()
110
111
  }).strict().optional(),
111
112
  outputs: z.object({ artifacts: z.array(argoWorkflowArtifactSchema) }).strict().optional(),
113
+ activeDeadlineSeconds: z.number().int().positive().optional(),
112
114
  name: z.string().min(1),
113
115
  retryStrategy: argoWorkflowRetryStrategySchema.optional()
114
116
  }).strict().refine((template) => template.container !== void 0 || template.dag !== void 0, { message: "Workflow templates must declare container or dag" });
@@ -384,7 +386,8 @@ function runnerLifecycleTemplate(options, volumeMounts) {
384
386
  volumeMounts
385
387
  },
386
388
  name: RUNNER_WORKFLOW_START_TASK,
387
- retryStrategy: { ...RUNNER_RETRY_STRATEGY }
389
+ retryStrategy: { ...RUNNER_RETRY_STRATEGY },
390
+ activeDeadlineSeconds: DEFAULT_RUNNER_DEADLINE_SECONDS
388
391
  };
389
392
  }
390
393
  function runnerCommandTemplate(task, options, volumeMounts) {
@@ -412,7 +415,8 @@ function runnerCommandTemplate(task, options, volumeMounts) {
412
415
  volumeMounts: [...volumeMounts, taskVolumeMount]
413
416
  },
414
417
  name: task.templateName,
415
- retryStrategy: { ...RUNNER_RETRY_STRATEGY }
418
+ retryStrategy: { ...RUNNER_RETRY_STRATEGY },
419
+ activeDeadlineSeconds: DEFAULT_RUNNER_DEADLINE_SECONDS
416
420
  };
417
421
  }
418
422
  function runnerFinalizerTemplate(options, volumeMounts) {
@@ -435,7 +439,8 @@ function runnerFinalizerTemplate(options, volumeMounts) {
435
439
  resources: options.resources ?? DEFAULT_RUNNER_RESOURCES,
436
440
  volumeMounts
437
441
  },
438
- name: "pipeline-finalizer"
442
+ name: "pipeline-finalizer",
443
+ activeDeadlineSeconds: DEFAULT_RUNNER_DEADLINE_SECONDS
439
444
  };
440
445
  }
441
446
  function compactRecord(input) {
package/dist/hooks.d.ts CHANGED
@@ -13,8 +13,8 @@ declare const hookResultSchema: z.ZodObject<{
13
13
  taskContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  }, z.core.$strict>>;
15
15
  status: z.ZodEnum<{
16
- fail: "fail";
17
16
  pass: "pass";
17
+ fail: "fail";
18
18
  skip: "skip";
19
19
  }>;
20
20
  summary: z.ZodOptional<z.ZodString>;
@@ -108,8 +108,8 @@ declare const runnerEventRecordSchema: z.ZodUnion<readonly [z.ZodObject<{
108
108
  nodeId: z.ZodOptional<z.ZodString>;
109
109
  outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
110
  status: z.ZodEnum<{
111
- fail: "fail";
112
111
  pass: "pass";
112
+ fail: "fail";
113
113
  skip: "skip";
114
114
  }>;
115
115
  summary: z.ZodOptional<z.ZodString>;
@@ -286,8 +286,8 @@ declare const runnerEventBatchSchema: z.ZodObject<{
286
286
  nodeId: z.ZodOptional<z.ZodString>;
287
287
  outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
288
288
  status: z.ZodEnum<{
289
- fail: "fail";
290
289
  pass: "pass";
290
+ fail: "fail";
291
291
  skip: "skip";
292
292
  }>;
293
293
  summary: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -127,7 +127,7 @@
127
127
  "prepack": "bun run build:cli"
128
128
  },
129
129
  "type": "module",
130
- "version": "3.11.10",
130
+ "version": "3.11.11",
131
131
  "description": "Config-driven multi-agent pipeline runner for repository work",
132
132
  "main": "./dist/index.js",
133
133
  "types": "./dist/index.d.ts",