@koda-sl/baker-cli 0.120.0-dev.3b02f951b → 0.120.0
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 +0 -33
- package/dist/{chunk-AWSEBYP4.js → chunk-IWPAXJC3.js} +57 -243
- package/dist/chunk-IWPAXJC3.js.map +1 -0
- package/dist/cli.js +92 -412
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +0 -30
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AWSEBYP4.js.map +0 -1
package/dist/engine/index.d.ts
CHANGED
|
@@ -47,13 +47,6 @@ declare class BackendClient$1 {
|
|
|
47
47
|
putUrl: string;
|
|
48
48
|
publicUrl: string;
|
|
49
49
|
}>;
|
|
50
|
-
/** Remote cache lookup. A miss (404) — or an old backend without the route — returns null. */
|
|
51
|
-
getCacheEntry<T>(cacheKey: string, signal?: AbortSignal): Promise<T | null>;
|
|
52
|
-
putCacheEntry(entry: {
|
|
53
|
-
cacheKey: string;
|
|
54
|
-
}, signal?: AbortSignal): Promise<void>;
|
|
55
|
-
/** Durable run-history record — POST /api/canvas/runs (idempotent server-side on runId). */
|
|
56
|
-
recordRun(payload: unknown, signal?: AbortSignal): Promise<void>;
|
|
57
50
|
getArtifact(kind: string, name: string, version?: string, signal?: AbortSignal): Promise<ArtifactResponse>;
|
|
58
51
|
}
|
|
59
52
|
|
|
@@ -346,14 +339,6 @@ type RunResult = {
|
|
|
346
339
|
duration_ms: number;
|
|
347
340
|
};
|
|
348
341
|
outputs_dir: string;
|
|
349
|
-
node_runs: NodeRunRecord[];
|
|
350
|
-
};
|
|
351
|
-
type NodeRunRecord = {
|
|
352
|
-
node_id: string;
|
|
353
|
-
node_type: string;
|
|
354
|
-
cached: boolean;
|
|
355
|
-
duration_ms: number;
|
|
356
|
-
credits: number;
|
|
357
342
|
};
|
|
358
343
|
type RunOptions = {
|
|
359
344
|
signal?: AbortSignal;
|
|
@@ -369,13 +354,6 @@ type EngineOptions = {
|
|
|
369
354
|
cache: CacheStore;
|
|
370
355
|
outputsDir: string;
|
|
371
356
|
log?: LogFn;
|
|
372
|
-
/**
|
|
373
|
-
* Stamp durable canvas-assets URLs onto fresh node outputs before they are
|
|
374
|
-
* cached — the precondition for remote cache portability and run-history
|
|
375
|
-
* records. Best-effort: a failed upload logs a warning and keeps the entry
|
|
376
|
-
* local-only, never fails the node.
|
|
377
|
-
*/
|
|
378
|
-
persistAssets?: boolean;
|
|
379
357
|
};
|
|
380
358
|
declare class Engine$1 {
|
|
381
359
|
private readonly registry;
|
|
@@ -384,7 +362,6 @@ declare class Engine$1 {
|
|
|
384
362
|
private readonly cache;
|
|
385
363
|
private readonly outputsDir;
|
|
386
364
|
private readonly log;
|
|
387
|
-
private readonly persistAssets;
|
|
388
365
|
constructor(opts: EngineOptions);
|
|
389
366
|
validate(canvas: unknown): {
|
|
390
367
|
ok: true;
|
|
@@ -490,13 +467,6 @@ declare function createEngineFromEnv(opts?: {
|
|
|
490
467
|
cacheDir?: string;
|
|
491
468
|
outputsDir?: string;
|
|
492
469
|
log?: (line: string) => void;
|
|
493
|
-
/**
|
|
494
|
-
* Layer the company-scoped remote cache over the local one (and stamp
|
|
495
|
-
* durable asset URLs onto fresh outputs) so a fresh sandbox re-runs an
|
|
496
|
-
* already-computed canvas at zero credits. Defaults to on; disable with
|
|
497
|
-
* `remoteCache: false` or env BAKER_CANVAS_REMOTE_CACHE=off.
|
|
498
|
-
*/
|
|
499
|
-
remoteCache?: boolean;
|
|
500
470
|
}): Engine$1;
|
|
501
471
|
|
|
502
472
|
export { BackendClient, Engine, LocalAssetStore, LocalCacheStore, ValidationError, createEngineFromEnv, defaultRegistry, generateCatalog, validateCanvasDeep };
|
package/dist/engine/index.js
CHANGED