@koda-sl/baker-cli 0.136.0 → 0.136.2
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/engine/index.d.ts
CHANGED
|
@@ -116,6 +116,19 @@ declare class ValidationError$1 extends CanvasError {
|
|
|
116
116
|
issues: ValidationIssue[];
|
|
117
117
|
constructor(issues: ValidationIssue[]);
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Structured per-node failure detail persisted onto the run record so the
|
|
121
|
+
* dashboard can show *why* a node died — the real upstream status/provider —
|
|
122
|
+
* instead of only a red node and the layer's summary banner. Mirrors the
|
|
123
|
+
* `NodeExecutionErrorCause` variants into a compact, display-ready shape.
|
|
124
|
+
*/
|
|
125
|
+
type NodeFailureDetail = {
|
|
126
|
+
message: string;
|
|
127
|
+
/** Engine/provider error code (`server_error`, `unauthorized`, `content_policy`, `timeout`, …). */
|
|
128
|
+
code?: string;
|
|
129
|
+
provider?: string;
|
|
130
|
+
retryable?: boolean;
|
|
131
|
+
};
|
|
119
132
|
|
|
120
133
|
declare const CanvasSchema: z.ZodObject<{
|
|
121
134
|
schema: z.ZodLiteral<"baker-canvas/1">;
|
|
@@ -450,6 +463,7 @@ type RunProgressEvent = {
|
|
|
450
463
|
} | {
|
|
451
464
|
kind: "node_failed";
|
|
452
465
|
node_id: string;
|
|
466
|
+
error: NodeFailureDetail;
|
|
453
467
|
};
|
|
454
468
|
type RunOptions = {
|
|
455
469
|
signal?: AbortSignal;
|
package/dist/engine/index.js
CHANGED