@koda-sl/baker-cli 0.123.0-dev.31b784126 → 0.123.0-dev.70bf43ce4
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 +16 -87
- package/dist/{chunk-Q3K5TXC6.js → chunk-VSVGPYJK.js} +355 -505
- package/dist/chunk-VSVGPYJK.js.map +1 -0
- package/dist/cli.js +1312 -2342
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +0 -39
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-Q3K5TXC6.js.map +0 -1
package/dist/engine/index.d.ts
CHANGED
|
@@ -15,10 +15,6 @@ type ExecRequest = {
|
|
|
15
15
|
/** Run-scoped dedupe key: the backend replays the stored response for a
|
|
16
16
|
* repeated key instead of re-dispatching to the provider (and re-charging). */
|
|
17
17
|
idempotency_key?: string;
|
|
18
|
-
/** Run + node identity, so a completed async job can be mapped back to its
|
|
19
|
-
* frozen run's node by the backend stale-run reconciliation sweep. */
|
|
20
|
-
canvas_run_id?: string;
|
|
21
|
-
node_id?: string;
|
|
22
18
|
};
|
|
23
19
|
type ExecResponse = {
|
|
24
20
|
outputs: Record<string, RawAssetOutput | RawAssetOutput[] | unknown>;
|
|
@@ -58,12 +54,6 @@ declare class BackendClient$1 {
|
|
|
58
54
|
}, signal?: AbortSignal): Promise<void>;
|
|
59
55
|
/** Durable run-history record — POST /api/canvas/runs (idempotent server-side on runId). */
|
|
60
56
|
recordRun(payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Chat-scoped blueprint sync — POST /api/creatives/definition. Lets the
|
|
63
|
-
* dashboard draw a scaffolded creative's workflow graph BEFORE the first run.
|
|
64
|
-
* Additive on the backend (never archives siblings, never sets definitionPath).
|
|
65
|
-
*/
|
|
66
|
-
syncCreativeDefinition(payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
67
57
|
getArtifact(kind: string, name: string, version?: string, signal?: AbortSignal): Promise<ArtifactResponse>;
|
|
68
58
|
}
|
|
69
59
|
|
|
@@ -137,7 +127,6 @@ declare const CanvasSchema: z.ZodObject<{
|
|
|
137
127
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
128
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
139
129
|
when: z.ZodOptional<z.ZodUnknown>;
|
|
140
|
-
regenerate: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
141
130
|
}, z.core.$strict>>;
|
|
142
131
|
output: z.ZodOptional<z.ZodObject<{
|
|
143
132
|
node: z.ZodString;
|
|
@@ -267,14 +256,6 @@ type ExecCtx = {
|
|
|
267
256
|
/** Content-addressed cache key for this node execution. Remote delegation
|
|
268
257
|
* derives its idempotency key from it so backend retries never double-charge. */
|
|
269
258
|
cacheKey?: string;
|
|
270
|
-
/**
|
|
271
|
-
* Whether this node's outputs must be downloaded to the local content store.
|
|
272
|
-
* False when NO downstream consumer is a local (ffmpeg/magick) node — the
|
|
273
|
-
* backend already persisted the bytes to R2 with a durable sha256 URL, so the
|
|
274
|
-
* redundant R2→sandbox transfer is skipped and the ref is kept URL-only.
|
|
275
|
-
* Absent/true means download (the safe default for older call sites).
|
|
276
|
-
*/
|
|
277
|
-
downloadOutputs?: boolean;
|
|
278
259
|
client: BackendClient$1;
|
|
279
260
|
assets: AssetStore;
|
|
280
261
|
log: LogFn;
|
|
@@ -337,12 +318,6 @@ type NodeDefinition<I = unknown, P = unknown, O = unknown> = {
|
|
|
337
318
|
outputs: z.ZodType<O>;
|
|
338
319
|
/** "local" runs in-process; "remote" delegates to Convex via ctx.client */
|
|
339
320
|
location: "local" | "remote";
|
|
340
|
-
/**
|
|
341
|
-
* Local node that only forwards asset refs and never reads their bytes
|
|
342
|
-
* (e.g. `collect`). Exempts its upstream producers from the forced R2→disk
|
|
343
|
-
* download local consumers otherwise trigger.
|
|
344
|
-
*/
|
|
345
|
-
passthroughRefs?: true;
|
|
346
321
|
cost?: CostFn<P>;
|
|
347
322
|
validateExtra?: ValidateExtraFn;
|
|
348
323
|
cacheKeyExtras?: CacheKeyExtrasFn;
|
|
@@ -411,13 +386,6 @@ type RunOptions = {
|
|
|
411
386
|
cache_policy?: "read_write" | "bypass" | "read_only";
|
|
412
387
|
/** Max nodes of one layer in flight at once; invalid or missing → 5. */
|
|
413
388
|
concurrency?: number;
|
|
414
|
-
/**
|
|
415
|
-
* Node ids to force fresh for THIS run only (the `--regenerate` flag). Folds
|
|
416
|
-
* the run id into each named node's cache key so it re-renders regardless of
|
|
417
|
-
* the content cache, without editing the canvas. Persistent regeneration uses
|
|
418
|
-
* the per-node `regenerate` field instead.
|
|
419
|
-
*/
|
|
420
|
-
regenerate?: ReadonlySet<string>;
|
|
421
389
|
onProgress?: (event: RunProgressEvent) => void;
|
|
422
390
|
};
|
|
423
391
|
type EngineOptions = {
|
|
@@ -483,13 +451,6 @@ declare class Engine$1 {
|
|
|
483
451
|
private writeFinal;
|
|
484
452
|
private executeOne;
|
|
485
453
|
private materializeNodeOutputs;
|
|
486
|
-
/**
|
|
487
|
-
* Download any URL-only asset ref reachable in a local node's inputs so the
|
|
488
|
-
* bytes are on disk before the local runner stages them. Returns a copy —
|
|
489
|
-
* refs are replaced, never mutated in place, so the producer's cached output
|
|
490
|
-
* (shared object) keeps its URL-only shape.
|
|
491
|
-
*/
|
|
492
|
-
private materializeLocalInputs;
|
|
493
454
|
}
|
|
494
455
|
|
|
495
456
|
type ValidationResult = {
|
package/dist/engine/index.js
CHANGED
package/package.json
CHANGED