@koda-sl/baker-cli 0.124.0-dev.2ddde71d7 → 0.124.0-dev.8e4328629
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/README.md +1 -62
- package/dist/{chunk-TKL2CJ6G.js → chunk-Q3K5TXC6.js} +14 -100
- package/dist/chunk-Q3K5TXC6.js.map +1 -0
- package/dist/cli.js +1513 -2526
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +1 -40
- package/dist/engine/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-TKL2CJ6G.js.map +0 -1
package/dist/engine/index.d.ts
CHANGED
|
@@ -25,23 +25,6 @@ type ExecResponse = {
|
|
|
25
25
|
credits_charged?: number;
|
|
26
26
|
duration_ms?: number;
|
|
27
27
|
};
|
|
28
|
-
/** A resumable run as reported by `GET /api/canvas/runs/active`. */
|
|
29
|
-
type ActiveRunInfo = {
|
|
30
|
-
runId: string;
|
|
31
|
-
status: "running" | "completed" | "failed";
|
|
32
|
-
interrupted?: boolean;
|
|
33
|
-
updatedAt?: number;
|
|
34
|
-
canvasSha?: string;
|
|
35
|
-
canvasSnapshotUrl?: string;
|
|
36
|
-
};
|
|
37
|
-
/** The newest snapshot-bearing run for a creative — `GET /api/canvas/runs/latest`. */
|
|
38
|
-
type SnapshotRunInfo = {
|
|
39
|
-
runId: string;
|
|
40
|
-
status: "running" | "completed" | "failed";
|
|
41
|
-
interrupted?: boolean;
|
|
42
|
-
canvasSha?: string;
|
|
43
|
-
canvasSnapshotUrl: string;
|
|
44
|
-
};
|
|
45
28
|
type ArtifactResponse = {
|
|
46
29
|
artifact: {
|
|
47
30
|
kind: string;
|
|
@@ -64,7 +47,7 @@ declare class BackendClient$1 {
|
|
|
64
47
|
});
|
|
65
48
|
exec(req: ExecRequest, signal?: AbortSignal): Promise<ExecResponse>;
|
|
66
49
|
private pollJob;
|
|
67
|
-
presignAssetUpload(sha256: string, mime: string, signal?: AbortSignal
|
|
50
|
+
presignAssetUpload(sha256: string, mime: string, signal?: AbortSignal): Promise<{
|
|
68
51
|
putUrl: string;
|
|
69
52
|
publicUrl: string;
|
|
70
53
|
}>;
|
|
@@ -75,20 +58,6 @@ declare class BackendClient$1 {
|
|
|
75
58
|
}, signal?: AbortSignal): Promise<void>;
|
|
76
59
|
/** Durable run-history record — POST /api/canvas/runs (idempotent server-side on runId). */
|
|
77
60
|
recordRun(payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
78
|
-
/**
|
|
79
|
-
* Resumable-run lookup — GET /api/canvas/runs/active. Returns the newest
|
|
80
|
-
* still-running/interrupted run for the creative (pinned to the exact canvas
|
|
81
|
-
* sha), so a fresh sandbox can adopt its run id and re-attach billed
|
|
82
|
-
* in-flight jobs. Null on no active run — or an older backend without the
|
|
83
|
-
* route (both 404).
|
|
84
|
-
*/
|
|
85
|
-
getActiveRun(creativeSlug: string, canvasSha?: string, signal?: AbortSignal): Promise<ActiveRunInfo | null>;
|
|
86
|
-
/**
|
|
87
|
-
* Portable-rerun lookup — GET /api/canvas/runs/latest. The newest run for
|
|
88
|
-
* the creative that recorded a canvas snapshot manifest; null when none
|
|
89
|
-
* exists (or the backend predates the route — both 404).
|
|
90
|
-
*/
|
|
91
|
-
getLatestSnapshotRun(creativeSlug: string, signal?: AbortSignal): Promise<SnapshotRunInfo | null>;
|
|
92
61
|
/**
|
|
93
62
|
* Chat-scoped blueprint sync — POST /api/creatives/definition. Lets the
|
|
94
63
|
* dashboard draw a scaffolded creative's workflow graph BEFORE the first run.
|
|
@@ -442,14 +411,6 @@ type RunOptions = {
|
|
|
442
411
|
cache_policy?: "read_write" | "bypass" | "read_only";
|
|
443
412
|
/** Max nodes of one layer in flight at once; invalid or missing → 5. */
|
|
444
413
|
concurrency?: number;
|
|
445
|
-
/**
|
|
446
|
-
* Credit ceiling (`--max-credits`). Enforced pre-flight against the deep
|
|
447
|
-
* validator's estimate (nothing billed) and at layer boundaries against
|
|
448
|
-
* actual spend — a boundary is the only point with no async job in flight,
|
|
449
|
-
* so aborting there strands nothing. Cached nodes cost 0, so a capped run
|
|
450
|
-
* retried with a higher cap loses no completed work.
|
|
451
|
-
*/
|
|
452
|
-
max_credits?: number;
|
|
453
414
|
/**
|
|
454
415
|
* Node ids to force fresh for THIS run only (the `--regenerate` flag). Folds
|
|
455
416
|
* the run id into each named node's cache key so it re-renders regardless of
|
package/dist/engine/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
BackendClient,
|
|
3
3
|
Engine,
|
|
4
4
|
LocalAssetStore,
|
|
5
5
|
LocalCacheStore,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
defaultRegistry,
|
|
9
9
|
generateCatalog,
|
|
10
10
|
validateCanvasDeep
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-Q3K5TXC6.js";
|
|
12
12
|
import "../chunk-5WRI5ZAA.js";
|
|
13
13
|
export {
|
|
14
14
|
BackendClient,
|
package/package.json
CHANGED