@oisincoveney/pipeline 2.8.2 → 2.8.3
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/pipeline-runtime.js +23 -5
- package/package.json +1 -1
package/dist/pipeline-runtime.js
CHANGED
|
@@ -456,13 +456,22 @@ function cancelledRetry(nodeId, attempt, last) {
|
|
|
456
456
|
retryReason: "timeout"
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
|
+
function unwrapAttemptError(error) {
|
|
460
|
+
const inner = error?.error;
|
|
461
|
+
return inner !== void 0 && inner !== error ? inner : error;
|
|
462
|
+
}
|
|
463
|
+
function attemptErrorMessage(error) {
|
|
464
|
+
const inner = unwrapAttemptError(error);
|
|
465
|
+
if (inner !== error) return attemptErrorMessage(inner);
|
|
466
|
+
return error instanceof Error && error.message ? error.message : String(error);
|
|
467
|
+
}
|
|
459
468
|
function failedAttemptRetry(nodeId, attempt, last, err) {
|
|
460
|
-
const message =
|
|
469
|
+
const message = attemptErrorMessage(err);
|
|
461
470
|
return {
|
|
462
471
|
attempt,
|
|
463
472
|
evidence: [...last.evidence, message],
|
|
464
473
|
gate: nodeId,
|
|
465
|
-
reason:
|
|
474
|
+
reason: message,
|
|
466
475
|
retryReason: nodeRetryReason(last)
|
|
467
476
|
};
|
|
468
477
|
}
|
|
@@ -970,13 +979,22 @@ const nodeAttemptExecutors = {
|
|
|
970
979
|
parallel: executeParallelAttempt
|
|
971
980
|
};
|
|
972
981
|
function executeAgentAttempt(node, context, attempt) {
|
|
973
|
-
return Effect.tryPromise(
|
|
982
|
+
return Effect.tryPromise({
|
|
983
|
+
catch: (error) => error,
|
|
984
|
+
try: () => executeAgentNode(node, context, attempt)
|
|
985
|
+
});
|
|
974
986
|
}
|
|
975
987
|
function executeCommandAttempt(node, context) {
|
|
976
|
-
return Effect.tryPromise(
|
|
988
|
+
return Effect.tryPromise({
|
|
989
|
+
catch: (error) => error,
|
|
990
|
+
try: () => executeCommand(node.command ?? [], context, { timeout: node.timeoutMs })
|
|
991
|
+
});
|
|
977
992
|
}
|
|
978
993
|
function executeBuiltinAttempt(node, context) {
|
|
979
|
-
return Effect.tryPromise(
|
|
994
|
+
return Effect.tryPromise({
|
|
995
|
+
catch: (error) => error,
|
|
996
|
+
try: () => executeBuiltin(node.builtin ?? "", context, node)
|
|
997
|
+
});
|
|
980
998
|
}
|
|
981
999
|
function executeGroupAttempt(node) {
|
|
982
1000
|
return Effect.succeed({
|
package/package.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"prepack": "bun run build:cli"
|
|
127
127
|
},
|
|
128
128
|
"type": "module",
|
|
129
|
-
"version": "2.8.
|
|
129
|
+
"version": "2.8.3",
|
|
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",
|