@oisincoveney/pipeline 1.19.0 → 1.19.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.
- package/dist/config.d.ts +3 -3
- package/dist/runner-job/run.js +12 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -223,8 +223,8 @@ declare const configSchema: z.ZodObject<{
|
|
|
223
223
|
policy: z.ZodOptional<z.ZodObject<{
|
|
224
224
|
commands: z.ZodOptional<z.ZodEnum<{
|
|
225
225
|
allow: "allow";
|
|
226
|
-
deny: "deny";
|
|
227
226
|
"trusted-only": "trusted-only";
|
|
227
|
+
deny: "deny";
|
|
228
228
|
}>>;
|
|
229
229
|
modules: z.ZodOptional<z.ZodEnum<{
|
|
230
230
|
allow: "allow";
|
|
@@ -279,10 +279,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
279
279
|
}, z.core.$strict>>;
|
|
280
280
|
output: z.ZodOptional<z.ZodObject<{
|
|
281
281
|
format: z.ZodEnum<{
|
|
282
|
-
json_schema: "json_schema";
|
|
283
282
|
text: "text";
|
|
284
283
|
json: "json";
|
|
285
284
|
jsonl: "jsonl";
|
|
285
|
+
json_schema: "json_schema";
|
|
286
286
|
}>;
|
|
287
287
|
repair: z.ZodOptional<z.ZodObject<{
|
|
288
288
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -340,10 +340,10 @@ declare const configSchema: z.ZodObject<{
|
|
|
340
340
|
disabled: "disabled";
|
|
341
341
|
}>>>;
|
|
342
342
|
output_formats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
343
|
-
json_schema: "json_schema";
|
|
344
343
|
text: "text";
|
|
345
344
|
json: "json";
|
|
346
345
|
jsonl: "jsonl";
|
|
346
|
+
json_schema: "json_schema";
|
|
347
347
|
}>>>;
|
|
348
348
|
rules: z.ZodOptional<z.ZodBoolean>;
|
|
349
349
|
skills: z.ZodOptional<z.ZodBoolean>;
|
package/dist/runner-job/run.js
CHANGED
|
@@ -65,12 +65,19 @@ async function runRunnerJob(options = {}) {
|
|
|
65
65
|
worktreePath: workspace.worktreePath
|
|
66
66
|
});
|
|
67
67
|
if (result.outcome === "PASS") await deliverSuccessfulRun(options, payload, workspace, readiness, sink);
|
|
68
|
-
|
|
68
|
+
recordFinalResultIfMissing(sink, result.outcome, result.plan.workflowId, {
|
|
69
|
+
sawWorkflowFinish,
|
|
70
|
+
signalFinalResultRecorded
|
|
71
|
+
});
|
|
69
72
|
if (await flushAndReport(sink.flush, stderr) && !signalExitCode) return EXIT_STARTUP;
|
|
70
73
|
return signalExitCode ?? exitCodeForRuntimeResult(result);
|
|
71
74
|
} catch (err) {
|
|
72
75
|
const message = err instanceof Error ? err.message : String(err);
|
|
73
76
|
stderr.write(`${message}\n`);
|
|
77
|
+
recordFinalResultIfMissing(sink, "FAIL", RUNNER_SCHEDULE_ENTRYPOINT, {
|
|
78
|
+
sawWorkflowFinish,
|
|
79
|
+
signalFinalResultRecorded
|
|
80
|
+
});
|
|
74
81
|
await flushAndReport(sink.flush, stderr);
|
|
75
82
|
if (err instanceof PipelineConfigError) return signalExitCode ?? EXIT_VALIDATION;
|
|
76
83
|
return signalExitCode ?? EXIT_STARTUP;
|
|
@@ -79,6 +86,10 @@ async function runRunnerJob(options = {}) {
|
|
|
79
86
|
removeSignalListener(signalEmitter, "SIGINT", handleSigint);
|
|
80
87
|
}
|
|
81
88
|
}
|
|
89
|
+
function recordFinalResultIfMissing(sink, outcome, workflowId, state) {
|
|
90
|
+
if (state.sawWorkflowFinish || state.signalFinalResultRecorded) return;
|
|
91
|
+
sink.recordFinalResult(outcome, workflowId);
|
|
92
|
+
}
|
|
82
93
|
async function prepareReadyWorkspace(options, payload, env, sink) {
|
|
83
94
|
const workspace = await prepareWorkspace(options, payload, env);
|
|
84
95
|
sink.recordRunnerJobPhase("workspace.prepared", "runner workspace prepared", { worktreePath: workspace.worktreePath });
|
package/package.json
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"prepack": "bun run build:cli"
|
|
100
100
|
},
|
|
101
101
|
"type": "module",
|
|
102
|
-
"version": "1.19.
|
|
102
|
+
"version": "1.19.1",
|
|
103
103
|
"description": "Config-driven multi-agent pipeline runner for repository work",
|
|
104
104
|
"main": "./dist/index.js",
|
|
105
105
|
"types": "./dist/index.d.ts",
|