@oisincoveney/pipeline 3.6.0 → 3.6.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/schemas.d.ts
CHANGED
|
@@ -481,8 +481,8 @@ declare const configSchema: z.ZodObject<{
|
|
|
481
481
|
schedules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
482
|
description: z.ZodOptional<z.ZodString>;
|
|
483
483
|
baseline: z.ZodEnum<{
|
|
484
|
-
execute: "execute";
|
|
485
484
|
quick: "quick";
|
|
485
|
+
execute: "execute";
|
|
486
486
|
}>;
|
|
487
487
|
max_parallel_nodes: z.ZodOptional<z.ZodNumber>;
|
|
488
488
|
node_catalog: z.ZodOptional<z.ZodString>;
|
package/dist/moka-submit.d.ts
CHANGED
|
@@ -160,8 +160,8 @@ declare const mokaSubmitOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
160
160
|
}, z.core.$strict>>;
|
|
161
161
|
serviceAccountName: z.ZodOptional<z.ZodString>;
|
|
162
162
|
mode: z.ZodEnum<{
|
|
163
|
-
quick: "quick";
|
|
164
163
|
full: "full";
|
|
164
|
+
quick: "quick";
|
|
165
165
|
}>;
|
|
166
166
|
schedulePath: z.ZodOptional<z.ZodString>;
|
|
167
167
|
scheduleYaml: z.ZodOptional<z.ZodString>;
|
|
@@ -232,11 +232,13 @@ function runSetupCommand(command, index, options) {
|
|
|
232
232
|
const io = yield* RunnerCommandIoService;
|
|
233
233
|
const commandIndex = index + 1;
|
|
234
234
|
options.logger.info(setupCommandLog(command.command, commandIndex, "start"), "setup.command start");
|
|
235
|
-
const
|
|
235
|
+
const result = yield* io.runSetupCommand(command.command, command.args, {
|
|
236
236
|
cwd: options.worktreePath,
|
|
237
237
|
env: options.env
|
|
238
|
-
})
|
|
238
|
+
});
|
|
239
|
+
const exitCode = setupExitCode(result.exitCode);
|
|
239
240
|
options.logger.info(setupCommandFinishLog(command, commandIndex, exitCode), "setup.command finish");
|
|
241
|
+
if (exitCode !== 0) options.logger.error(setupCommandOutputLog(command.command, commandIndex, result), "setup.command output");
|
|
240
242
|
if (exitCode !== 0 && command.required) return yield* Effect.fail(/* @__PURE__ */ new Error(`runner setup command '${command.command}' failed with exit ${exitCode}`));
|
|
241
243
|
});
|
|
242
244
|
}
|
|
@@ -244,6 +246,21 @@ function setupExitCode(exitCode) {
|
|
|
244
246
|
if (typeof exitCode === "number") return exitCode;
|
|
245
247
|
return 1;
|
|
246
248
|
}
|
|
249
|
+
const SETUP_OUTPUT_TAIL = 4e3;
|
|
250
|
+
function setupOutputTail(output) {
|
|
251
|
+
if (typeof output !== "string" || output.length === 0) return "";
|
|
252
|
+
return output.length > SETUP_OUTPUT_TAIL ? output.slice(-4e3) : output;
|
|
253
|
+
}
|
|
254
|
+
function setupCommandOutputLog(command, index, result) {
|
|
255
|
+
return {
|
|
256
|
+
command,
|
|
257
|
+
index,
|
|
258
|
+
phase: "setup.command",
|
|
259
|
+
status: "output",
|
|
260
|
+
stderr: setupOutputTail(result.stderr),
|
|
261
|
+
stdout: setupOutputTail(result.stdout)
|
|
262
|
+
};
|
|
263
|
+
}
|
|
247
264
|
function setupCommandLog(command, index, status) {
|
|
248
265
|
return {
|
|
249
266
|
command,
|
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"prepack": "bun run build:cli"
|
|
127
127
|
},
|
|
128
128
|
"type": "module",
|
|
129
|
-
"version": "3.6.
|
|
129
|
+
"version": "3.6.1",
|
|
130
130
|
"description": "Config-driven multi-agent pipeline runner for repository work",
|
|
131
131
|
"main": "./dist/index.js",
|
|
132
132
|
"types": "./dist/index.d.ts",
|