@oisincoveney/pipeline 1.28.0 → 1.28.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/hooks.d.ts +1 -1
- package/dist/runner-command/run.js +13 -0
- package/package.json +1 -1
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
|
-
pass: "pass";
|
|
17
16
|
fail: "fail";
|
|
17
|
+
pass: "pass";
|
|
18
18
|
skip: "skip";
|
|
19
19
|
}>;
|
|
20
20
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -162,6 +162,7 @@ async function runRunnerCommand(rawOptions = {}) {
|
|
|
162
162
|
resultStatus: result.status,
|
|
163
163
|
status: "finish"
|
|
164
164
|
}, "task.run finish");
|
|
165
|
+
logFailedTaskRun(logger, descriptor.nodeId, result);
|
|
165
166
|
logger.info({
|
|
166
167
|
nodeId: descriptor.nodeId,
|
|
167
168
|
phase: "git.node-ref.push",
|
|
@@ -227,6 +228,18 @@ async function runSetupCommands(commands, options) {
|
|
|
227
228
|
if (result.exitCode !== 0 && command.required) throw new Error(`runner setup command '${command.command}' failed with exit ${result.exitCode}`);
|
|
228
229
|
}
|
|
229
230
|
}
|
|
231
|
+
function logFailedTaskRun(logger, nodeId, result) {
|
|
232
|
+
if (result.status === "passed" && result.exitCode === 0) return;
|
|
233
|
+
logger.error({
|
|
234
|
+
evidence: result.evidence,
|
|
235
|
+
exitCode: result.exitCode,
|
|
236
|
+
nodeId,
|
|
237
|
+
output: result.output,
|
|
238
|
+
phase: "task.run",
|
|
239
|
+
resultStatus: result.status,
|
|
240
|
+
status: "failed"
|
|
241
|
+
}, "task.run failed");
|
|
242
|
+
}
|
|
230
243
|
function runnerTaskText(task, worktreePath) {
|
|
231
244
|
if (task.kind === "prompt") return task.prompt;
|
|
232
245
|
if (task.path) return readFileSync(resolve(worktreePath, task.path), "utf8");
|
package/package.json
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"prepack": "bun run build:cli"
|
|
124
124
|
},
|
|
125
125
|
"type": "module",
|
|
126
|
-
"version": "1.28.
|
|
126
|
+
"version": "1.28.1",
|
|
127
127
|
"description": "Config-driven multi-agent pipeline runner for repository work",
|
|
128
128
|
"main": "./dist/index.js",
|
|
129
129
|
"types": "./dist/index.d.ts",
|