@koda-sl/baker-cli 0.422.0-dev.f9f855bf1 → 0.423.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.
Files changed (29) hide show
  1. package/README.md +211 -45
  2. package/dist/{chunk-VF77MVEM.js → chunk-3X2EMLBQ.js} +3 -3
  3. package/dist/{chunk-D76DSHL2.js → chunk-5JVAP5DC.js} +28 -1
  4. package/dist/{chunk-D76DSHL2.js.map → chunk-5JVAP5DC.js.map} +1 -1
  5. package/dist/{chunk-4RN4CBIQ.js → chunk-G5L5FX2B.js} +3 -3
  6. package/dist/{chunk-HFH5HQTP.js → chunk-S36N4SOX.js} +43 -4
  7. package/dist/chunk-S36N4SOX.js.map +1 -0
  8. package/dist/chunk-SWYBHYB5.js +24919 -0
  9. package/dist/chunk-SWYBHYB5.js.map +1 -0
  10. package/dist/{chunk-TTBMFAGF.js → chunk-XNFV6BQU.js} +4 -4
  11. package/dist/cli.js +9568 -14799
  12. package/dist/cli.js.map +1 -1
  13. package/dist/{client-OA2QMHOI.js → client-PIKJZFRA.js} +4 -4
  14. package/dist/engine/index.d.ts +8 -0
  15. package/dist/engine/index.js +3 -3
  16. package/dist/{env-Q5FUIVIJ.js → env-6UAIAY4M.js} +6 -2
  17. package/dist/{output-NMXF2VIL.js → output-CFDBWWYJ.js} +5 -5
  18. package/dist/{shared-PD226SU6.js → shared-3O5RKQYZ.js} +6 -6
  19. package/package.json +4 -1
  20. package/dist/chunk-FQ7WNNOG.js +0 -11637
  21. package/dist/chunk-FQ7WNNOG.js.map +0 -1
  22. package/dist/chunk-HFH5HQTP.js.map +0 -1
  23. /package/dist/{chunk-VF77MVEM.js.map → chunk-3X2EMLBQ.js.map} +0 -0
  24. /package/dist/{chunk-4RN4CBIQ.js.map → chunk-G5L5FX2B.js.map} +0 -0
  25. /package/dist/{chunk-TTBMFAGF.js.map → chunk-XNFV6BQU.js.map} +0 -0
  26. /package/dist/{client-OA2QMHOI.js.map → client-PIKJZFRA.js.map} +0 -0
  27. /package/dist/{env-Q5FUIVIJ.js.map → env-6UAIAY4M.js.map} +0 -0
  28. /package/dist/{output-NMXF2VIL.js.map → output-CFDBWWYJ.js.map} +0 -0
  29. /package/dist/{shared-PD226SU6.js.map → shared-3O5RKQYZ.js.map} +0 -0
@@ -4,9 +4,9 @@ import {
4
4
  apiGetWithHeaders,
5
5
  apiPost,
6
6
  validateConvexId
7
- } from "./chunk-4RN4CBIQ.js";
8
- import "./chunk-HFH5HQTP.js";
9
- import "./chunk-D76DSHL2.js";
7
+ } from "./chunk-G5L5FX2B.js";
8
+ import "./chunk-S36N4SOX.js";
9
+ import "./chunk-5JVAP5DC.js";
10
10
  export {
11
11
  ApiError,
12
12
  apiGet,
@@ -14,4 +14,4 @@ export {
14
14
  apiPost,
15
15
  validateConvexId
16
16
  };
17
- //# sourceMappingURL=client-OA2QMHOI.js.map
17
+ //# sourceMappingURL=client-PIKJZFRA.js.map
@@ -1,3 +1,4 @@
1
+ import { CanvasRenderBudgetData } from '@baker/api';
1
2
  import { z } from 'zod';
2
3
 
3
4
  type RawAssetOutput = {
@@ -86,6 +87,12 @@ declare class BackendClient$1 {
86
87
  * route (both 404).
87
88
  */
88
89
  getActiveRun(creativeSlug: string, canvasSha?: string, signal?: AbortSignal): Promise<ActiveRunInfo | null>;
90
+ /**
91
+ * Render budget — GET /api/canvas/render-budget. Where the next render of a static ad
92
+ * stands in its round, counted by the backend. Null when the backend predates the route
93
+ * (404) or answers something else; the caller then falls back to its local ledger.
94
+ */
95
+ getRenderBudget(creativeSlug: string, chatId?: string, signal?: AbortSignal): Promise<CanvasRenderBudgetData | null>;
89
96
  /**
90
97
  * Portable-rerun lookup — GET /api/canvas/runs/latest. The newest run for
91
98
  * the creative that recorded a canvas snapshot manifest; null when none
@@ -525,6 +532,7 @@ type RunProgressEvent = {
525
532
  node_type: string;
526
533
  deps: string[];
527
534
  params: unknown;
535
+ role?: string;
528
536
  }>;
529
537
  } | {
530
538
  kind: "node_start";
@@ -8,9 +8,9 @@ import {
8
8
  defaultRegistry,
9
9
  generateCatalog,
10
10
  validateCanvasDeep
11
- } from "../chunk-FQ7WNNOG.js";
12
- import "../chunk-HFH5HQTP.js";
13
- import "../chunk-D76DSHL2.js";
11
+ } from "../chunk-SWYBHYB5.js";
12
+ import "../chunk-S36N4SOX.js";
13
+ import "../chunk-5JVAP5DC.js";
14
14
  export {
15
15
  BackendClient,
16
16
  Engine,
@@ -1,4 +1,5 @@
1
1
  import {
2
+ canvasAssetOriginsSetting,
2
3
  captureBudgetMs,
3
4
  captureProxyCredentials,
4
5
  captureVimeoCookie,
@@ -10,11 +11,13 @@ import {
10
11
  hasOpenRouterKey,
11
12
  openRouterKey,
12
13
  optionalChatId,
14
+ optionalConnection,
13
15
  requireChatId,
14
16
  requireConnection,
15
17
  resolveChatId
16
- } from "./chunk-D76DSHL2.js";
18
+ } from "./chunk-5JVAP5DC.js";
17
19
  export {
20
+ canvasAssetOriginsSetting,
18
21
  captureBudgetMs,
19
22
  captureProxyCredentials,
20
23
  captureVimeoCookie,
@@ -26,8 +29,9 @@ export {
26
29
  hasOpenRouterKey,
27
30
  openRouterKey,
28
31
  optionalChatId,
32
+ optionalConnection,
29
33
  requireChatId,
30
34
  requireConnection,
31
35
  resolveChatId
32
36
  };
33
- //# sourceMappingURL=env-Q5FUIVIJ.js.map
37
+ //# sourceMappingURL=env-6UAIAY4M.js.map
@@ -4,10 +4,10 @@ import {
4
4
  writeAdsJson,
5
5
  writeAdsOutput,
6
6
  writeJsonEnvelope
7
- } from "./chunk-VF77MVEM.js";
8
- import "./chunk-4RN4CBIQ.js";
9
- import "./chunk-HFH5HQTP.js";
10
- import "./chunk-D76DSHL2.js";
7
+ } from "./chunk-3X2EMLBQ.js";
8
+ import "./chunk-G5L5FX2B.js";
9
+ import "./chunk-S36N4SOX.js";
10
+ import "./chunk-5JVAP5DC.js";
11
11
  export {
12
12
  resolveCustomerId,
13
13
  toCsvRow,
@@ -15,4 +15,4 @@ export {
15
15
  writeAdsOutput,
16
16
  writeJsonEnvelope
17
17
  };
18
- //# sourceMappingURL=output-NMXF2VIL.js.map
18
+ //# sourceMappingURL=output-CFDBWWYJ.js.map
@@ -9,11 +9,11 @@ import {
9
9
  resolveEffectiveStatus,
10
10
  statusFilterHints,
11
11
  todayIso
12
- } from "./chunk-TTBMFAGF.js";
13
- import "./chunk-VF77MVEM.js";
14
- import "./chunk-4RN4CBIQ.js";
15
- import "./chunk-HFH5HQTP.js";
16
- import "./chunk-D76DSHL2.js";
12
+ } from "./chunk-XNFV6BQU.js";
13
+ import "./chunk-3X2EMLBQ.js";
14
+ import "./chunk-G5L5FX2B.js";
15
+ import "./chunk-S36N4SOX.js";
16
+ import "./chunk-5JVAP5DC.js";
17
17
  export {
18
18
  NAME_CONTAINS_ARG,
19
19
  csvOrJson,
@@ -26,4 +26,4 @@ export {
26
26
  statusFilterHints,
27
27
  todayIso
28
28
  };
29
- //# sourceMappingURL=shared-PD226SU6.js.map
29
+ //# sourceMappingURL=shared-3O5RKQYZ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koda-sl/baker-cli",
3
- "version": "0.422.0-dev.f9f855bf1",
3
+ "version": "0.423.0",
4
4
  "description": "AI-agent-first CLI for interacting with Baker, including the Baker creative canvas.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,8 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@t3-oss/env-core": "^0.13.10",
30
+ "chroma-js": "^3.2.0",
30
31
  "citty": "^0.2.2",
31
32
  "csv-parse": "^7.0.2",
33
+ "fastest-levenshtein": "^1.0.16",
32
34
  "gsap": "^3.15.0",
33
35
  "image-size": "^2.0.2",
34
36
  "libphonenumber-js": "^1.13.14",
@@ -46,6 +48,7 @@
46
48
  "@baker/canvas-contract": "workspace:*",
47
49
  "@baker/landing-dna": "workspace:*",
48
50
  "@baker/proxy": "workspace:*",
51
+ "@types/chroma-js": "^3.1.2",
49
52
  "@types/node": "25.3.0",
50
53
  "@types/quantize": "^1.0.2",
51
54
  "tsup": "^8.5.0",