@oisincoveney/pipeline 3.11.19 → 3.11.20

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.
@@ -21,6 +21,9 @@ const RUNNER_RETRY_STRATEGY = {
21
21
  const RUNNER_OPENCODE_ENV = [{
22
22
  name: "CODEX_AUTH_PER_PROJECT_ACCOUNTS",
23
23
  value: "0"
24
+ }, {
25
+ name: "PIPELINE_AGENT_TIMEOUT_MS",
26
+ value: "1200000"
24
27
  }];
25
28
  const DEFAULT_RUNNER_RESOURCES = {
26
29
  limits: {
@@ -32,7 +35,7 @@ const DEFAULT_RUNNER_RESOURCES = {
32
35
  memory: "5Gi"
33
36
  }
34
37
  };
35
- const DEFAULT_RUNNER_DEADLINE_SECONDS = 3600;
38
+ const DEFAULT_RUNNER_DEADLINE_SECONDS = 5400;
36
39
  const kubernetesNameSchema = z.string().min(1);
37
40
  const labelValueSchema = z.string().min(1);
38
41
  const stringMapSchema = z.record(z.string().min(1), z.string().min(1));
@@ -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>;
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>;
@@ -161,8 +161,8 @@ declare const mokaSubmitOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
161
161
  }, z.core.$strict>>;
162
162
  serviceAccountName: z.ZodOptional<z.ZodString>;
163
163
  mode: z.ZodEnum<{
164
- quick: "quick";
165
164
  full: "full";
165
+ quick: "quick";
166
166
  }>;
167
167
  schedulePath: z.ZodOptional<z.ZodString>;
168
168
  scheduleYaml: z.ZodOptional<z.ZodString>;
@@ -43,8 +43,8 @@ declare const runnerDeliverySchema: z.ZodObject<{
43
43
  declare const mokaSubmissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
44
  kind: z.ZodLiteral<"graph">;
45
45
  mode: z.ZodEnum<{
46
- quick: "quick";
47
46
  full: "full";
47
+ quick: "quick";
48
48
  }>;
49
49
  }, z.core.$strict>, z.ZodObject<{
50
50
  argv: z.ZodArray<z.ZodString>;
@@ -104,8 +104,8 @@ declare const runnerCommandPayloadSchema: z.ZodObject<{
104
104
  submission: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
105
105
  kind: z.ZodLiteral<"graph">;
106
106
  mode: z.ZodEnum<{
107
- quick: "quick";
108
107
  full: "full";
108
+ quick: "quick";
109
109
  }>;
110
110
  }, z.core.$strict>, z.ZodObject<{
111
111
  argv: z.ZodArray<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>;
@@ -24,7 +24,17 @@ 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(Effect.catchAll((error) => Effect.succeed(failureResult(plan, error))));
27
+ }).pipe(withAgentTimeout(plan), Effect.catchAll((error) => Effect.succeed(failureResult(plan, error))));
28
+ }
29
+ function withAgentTimeout(plan) {
30
+ return (effect) => {
31
+ const timeoutMs = plan.timeoutMs;
32
+ if (!timeoutMs || timeoutMs <= 0) return effect;
33
+ return Effect.timeoutFail(effect, {
34
+ duration: Duration.millis(timeoutMs),
35
+ onTimeout: () => /* @__PURE__ */ new Error(`agent session timed out after ${timeoutMs}ms`)
36
+ });
37
+ };
28
38
  }
29
39
  function validateOpencodePlan(plan) {
30
40
  if (plan.type === "opencode") return Effect.void;
package/package.json CHANGED
@@ -128,7 +128,7 @@
128
128
  "prepack": "bun run build:cli"
129
129
  },
130
130
  "type": "module",
131
- "version": "3.11.19",
131
+ "version": "3.11.20",
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",