@koda-sl/baker-cli 0.575.0 → 0.576.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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/{canvas-FRYDW4YS.js → canvas-JP5EFSGB.js} +6 -6
  3. package/dist/{chunk-6A3MVR5D.js → chunk-AUFQAR3V.js} +2 -2
  4. package/dist/{chunk-MNSHFXG6.js → chunk-BS4VGXTM.js} +2 -2
  5. package/dist/{chunk-ERTG5BBY.js → chunk-G624WZD6.js} +2 -2
  6. package/dist/{chunk-SSFU4LKG.js → chunk-IQ2V4ENC.js} +2 -2
  7. package/dist/{chunk-NSU6IKOE.js → chunk-JMTCCPK6.js} +2 -2
  8. package/dist/{chunk-PFWDYIDG.js → chunk-WPBXN37A.js} +4 -4
  9. package/dist/{chunk-MTROFUSC.js → chunk-ZWFYBQ7N.js} +4 -4
  10. package/dist/{chunk-MTROFUSC.js.map → chunk-ZWFYBQ7N.js.map} +1 -1
  11. package/dist/cli.js +2 -2
  12. package/dist/{creatives-NQHLWE6F.js → creatives-QNPP5S4Q.js} +5 -5
  13. package/dist/{feedback-G3RB3HVK.js → feedback-FB2QIIRX.js} +4 -4
  14. package/dist/{feedback-record-KMIQCEAR.js → feedback-record-O4KVZAOF.js} +4 -4
  15. package/dist/{make-LYY7W523.js → make-4IIUKMLK.js} +4 -4
  16. package/dist/{rerun-RAOZJYYI.js → rerun-5JHAKEXF.js} +5 -5
  17. package/dist/{run-BG7WR3W4.js → run-XVULTREI.js} +5 -5
  18. package/dist/{scaffold-static-ad-N7P47U6N.js → scaffold-static-ad-TVMEGBHZ.js} +5 -5
  19. package/dist/{select-I4HA6HUB.js → select-UH73L657.js} +3 -3
  20. package/dist/{stale-EOTWB2NV.js → stale-TDAEKOJB.js} +3 -3
  21. package/dist/stale-TDAEKOJB.js.map +1 -0
  22. package/dist/{translate-2VAZU7BT.js → translate-TIFUZLPE.js} +4 -4
  23. package/dist/{validate-EFTSHSRZ.js → validate-BBXOFK4S.js} +3 -3
  24. package/package.json +1 -1
  25. package/dist/stale-EOTWB2NV.js.map +0 -1
  26. /package/dist/{canvas-FRYDW4YS.js.map → canvas-JP5EFSGB.js.map} +0 -0
  27. /package/dist/{chunk-6A3MVR5D.js.map → chunk-AUFQAR3V.js.map} +0 -0
  28. /package/dist/{chunk-MNSHFXG6.js.map → chunk-BS4VGXTM.js.map} +0 -0
  29. /package/dist/{chunk-ERTG5BBY.js.map → chunk-G624WZD6.js.map} +0 -0
  30. /package/dist/{chunk-SSFU4LKG.js.map → chunk-IQ2V4ENC.js.map} +0 -0
  31. /package/dist/{chunk-NSU6IKOE.js.map → chunk-JMTCCPK6.js.map} +0 -0
  32. /package/dist/{chunk-PFWDYIDG.js.map → chunk-WPBXN37A.js.map} +0 -0
  33. /package/dist/{creatives-NQHLWE6F.js.map → creatives-QNPP5S4Q.js.map} +0 -0
  34. /package/dist/{feedback-G3RB3HVK.js.map → feedback-FB2QIIRX.js.map} +0 -0
  35. /package/dist/{feedback-record-KMIQCEAR.js.map → feedback-record-O4KVZAOF.js.map} +0 -0
  36. /package/dist/{make-LYY7W523.js.map → make-4IIUKMLK.js.map} +0 -0
  37. /package/dist/{rerun-RAOZJYYI.js.map → rerun-5JHAKEXF.js.map} +0 -0
  38. /package/dist/{run-BG7WR3W4.js.map → run-XVULTREI.js.map} +0 -0
  39. /package/dist/{scaffold-static-ad-N7P47U6N.js.map → scaffold-static-ad-TVMEGBHZ.js.map} +0 -0
  40. /package/dist/{select-I4HA6HUB.js.map → select-UH73L657.js.map} +0 -0
  41. /package/dist/{translate-2VAZU7BT.js.map → translate-TIFUZLPE.js.map} +0 -0
  42. /package/dist/{validate-EFTSHSRZ.js.map → validate-BBXOFK4S.js.map} +0 -0
package/README.md CHANGED
@@ -7148,7 +7148,7 @@ baker canvas run --slug spring-offer --force-remote --regenerate gen
7148
7148
 
7149
7149
  #### `baker canvas stale`
7150
7150
 
7151
- Lists the creatives edited since their last render in this workspace, each with the command to re-render it: `{ ok, data: { stale: [{ slug, canvasPath, renderedRunId, sourceSha, refusedThisTurn? }] }, hints? }`. `refusedThisTurn` says why a plain `run` of it is refused in this chat turn (`BAKER_TURN_ID`: it is ready, or had its two renders or its time), so the turn-end reminder never orders that render. "Edited" is one content fingerprint of what the models would be sent: the canvas as it renders (after the copy, logo and scene projections), `prompt.json` without its bookkeeping (`reference`, `source_context`, `notes`), every `scenes/sNN.json`, the files of every local composition directory the canvas renders (a linked file counts by what it points at), and the `formats` in `_definition.md`, so a change counts however it was made and reformatting a JSON file is not a change. A composition is read by its files, not its folder's name: renaming the folder and pointing the canvas at the new name is not a change, while a file changed inside it is. The fingerprint is prefixed `v4:`; a render fingerprinted by an older rule (a bare sha, `v2:` or `v3:`) is never reported stale, so upgrading the CLI re-renders nothing (a creative edited before the upgrade is not listed until it is rendered again). A completed `run` records the fingerprint it drew in `canvas/.rendered/<slug>.json`, and a render attempt of the current source is not asked for again until the source moves. Creatives never rendered in this workspace, and ones with an unfilled `[TODO]` asset slot, are not listed. Read-only, offline, free. The scaffold's turn-end reminder and its `validate-creative-renders` check read this list (at Publish it is a warning: Publish ships the last version the person was shown and never renders); the same fingerprint is what `sync-definition` and `run` post as `sourceSha`.
7151
+ Lists the creatives edited since their last render in this workspace, each with the command to re-render it: `{ ok, data: { stale: [{ slug, canvasPath, renderedRunId, sourceSha, refusedThisTurn?, attemptedSinceEdit? }] }, hints? }`. `refusedThisTurn` says why a plain `run` of it is refused in this chat turn (`BAKER_TURN_ID`: it is ready, or had its two renders or its time), so the turn-end reminder never orders that render. "Edited" is one content fingerprint of what the models would be sent: the canvas as it renders (after the copy, logo and scene projections), `prompt.json` without its bookkeeping (`reference`, `source_context`, `notes`), every `scenes/sNN.json`, the files of every local composition directory the canvas renders (a linked file counts by what it points at), and the `formats` in `_definition.md`, so a change counts however it was made and reformatting a JSON file is not a change. A composition is read by its files, not its folder's name: renaming the folder and pointing the canvas at the new name is not a change, while a file changed inside it is. The fingerprint is prefixed `v4:`; a render fingerprinted by an older rule (a bare sha, `v2:` or `v3:`) is never reported stale, so upgrading the CLI re-renders nothing (a creative edited before the upgrade is not listed until it is rendered again). A completed `run` records the fingerprint it drew in `canvas/.rendered/<slug>.json`; only a completed run makes a creative fresh. A run of the current source that was killed, failed or refused leaves it listed, with `attemptedSinceEdit: true`, so the turn-end reminder does not ask for it again until the source moves while the publish check still names it. Creatives never rendered in this workspace, and ones with an unfilled `[TODO]` asset slot, are not listed. Read-only, offline, free. The scaffold's turn-end reminder and its `validate-creative-renders` check read this list (at Publish it is a warning: Publish ships the last version the person was shown and never renders); the same fingerprint is what `sync-definition` and `run` post as `sourceSha`.
7152
7152
 
7153
7153
  #### `baker canvas inspect <run_id> [--thumbnails]`
7154
7154
 
@@ -25,22 +25,22 @@ Subcommands:
25
25
  Full guide: __tooling__/docs/tools/baker/canvas.md`
26
26
  },
27
27
  subCommands: {
28
- run: () => import("./run-BG7WR3W4.js").then((m) => m.runCommand),
29
- rerun: () => import("./rerun-RAOZJYYI.js").then((m) => m.rerunCommand),
30
- validate: () => import("./validate-EFTSHSRZ.js").then((m) => m.validateCommand),
28
+ run: () => import("./run-XVULTREI.js").then((m) => m.runCommand),
29
+ rerun: () => import("./rerun-5JHAKEXF.js").then((m) => m.rerunCommand),
30
+ validate: () => import("./validate-BBXOFK4S.js").then((m) => m.validateCommand),
31
31
  critique: () => import("./critique-KSQKDC7Y.js").then((m) => m.critiqueCommand),
32
32
  "viewer-check": () => import("./viewer-check-OIORNTQG.js").then((m) => m.viewerCheckCommand),
33
33
  catalog: () => import("./catalog-2P422WOQ.js").then((m) => m.catalogCommand),
34
34
  inspect: () => import("./inspect-WYOMSTBG.js").then((m) => m.inspectCommand),
35
35
  "scaffold-ad": () => import("./scaffold-ad-Y4FKVKVJ.js").then((m) => m.scaffoldAdCommand),
36
36
  "scaffold-video": () => import("./scaffold-video-JYUGPW2L.js").then((m) => m.scaffoldVideoCommand),
37
- "scaffold-static-ad": () => import("./scaffold-static-ad-N7P47U6N.js").then((m) => m.scaffoldStaticAdCommand),
37
+ "scaffold-static-ad": () => import("./scaffold-static-ad-TVMEGBHZ.js").then((m) => m.scaffoldStaticAdCommand),
38
38
  "set-prompt": () => import("./set-prompt-Y3IPUFUH.js").then((m) => m.setPromptCommand),
39
39
  "sync-definition": () => import("./sync-definition-AP6CA6BU.js").then((m) => m.syncDefinitionCommand),
40
- stale: () => import("./stale-EOTWB2NV.js").then((m) => m.staleCommand)
40
+ stale: () => import("./stale-TDAEKOJB.js").then((m) => m.staleCommand)
41
41
  }
42
42
  });
43
43
  export {
44
44
  canvasCommand
45
45
  };
46
- //# sourceMappingURL=canvas-FRYDW4YS.js.map
46
+ //# sourceMappingURL=canvas-JP5EFSGB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readRenderState,
3
3
  recordSeen
4
- } from "./chunk-MTROFUSC.js";
4
+ } from "./chunk-ZWFYBQ7N.js";
5
5
  import {
6
6
  GLOBAL_PROMPT_FILE,
7
7
  ideaBaseline,
@@ -217,4 +217,4 @@ export {
217
217
  shownVersion,
218
218
  shownBaseline
219
219
  };
220
- //# sourceMappingURL=chunk-6A3MVR5D.js.map
220
+ //# sourceMappingURL=chunk-AUFQAR3V.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  latestVersion
3
- } from "./chunk-MTROFUSC.js";
3
+ } from "./chunk-ZWFYBQ7N.js";
4
4
  import {
5
5
  canvasOutputsRoot
6
6
  } from "./chunk-CGLNCFAG.js";
@@ -16,4 +16,4 @@ async function versionOf(slug, run) {
16
16
  export {
17
17
  versionOf
18
18
  };
19
- //# sourceMappingURL=chunk-MNSHFXG6.js.map
19
+ //# sourceMappingURL=chunk-BS4VGXTM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recordIdeaLines
3
- } from "./chunk-MTROFUSC.js";
3
+ } from "./chunk-ZWFYBQ7N.js";
4
4
  import {
5
5
  anchorLines,
6
6
  readIdeaAnchor
@@ -63,4 +63,4 @@ export {
63
63
  withAnchor,
64
64
  readCreativeIdea
65
65
  };
66
- //# sourceMappingURL=chunk-ERTG5BBY.js.map
66
+ //# sourceMappingURL=chunk-G624WZD6.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  leadVersion,
3
3
  writeSeriesMemberCanvas
4
- } from "./chunk-NSU6IKOE.js";
4
+ } from "./chunk-JMTCCPK6.js";
5
5
  import {
6
6
  definitionFieldsOf,
7
7
  setDefinitionFields,
@@ -88,4 +88,4 @@ export {
88
88
  makeSeriesAd,
89
89
  seriesMadeEnvelope
90
90
  };
91
- //# sourceMappingURL=chunk-SSFU4LKG.js.map
91
+ //# sourceMappingURL=chunk-IQ2V4ENC.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isStaticAdCanvas,
3
3
  readRenderState
4
- } from "./chunk-MTROFUSC.js";
4
+ } from "./chunk-ZWFYBQ7N.js";
5
5
  import {
6
6
  finalOutputLabelsFromCanvas
7
7
  } from "./chunk-M7BSXJNL.js";
@@ -927,4 +927,4 @@ export {
927
927
  writeSeriesMemberCanvas,
928
928
  seriesRunHints
929
929
  };
930
- //# sourceMappingURL=chunk-NSU6IKOE.js.map
930
+ //# sourceMappingURL=chunk-JMTCCPK6.js.map
@@ -3,7 +3,7 @@ import {
3
3
  runResult,
4
4
  shownBaseline,
5
5
  shownVersion
6
- } from "./chunk-6A3MVR5D.js";
6
+ } from "./chunk-AUFQAR3V.js";
7
7
  import {
8
8
  nodeParamsPreview
9
9
  } from "./chunk-Z3KRNKEA.js";
@@ -36,7 +36,7 @@ import {
36
36
  variantImage,
37
37
  versionRun,
38
38
  writeSeriesMemberCanvas
39
- } from "./chunk-NSU6IKOE.js";
39
+ } from "./chunk-JMTCCPK6.js";
40
40
  import {
41
41
  AUTO_FIX_ROUNDS,
42
42
  autoFixStep,
@@ -75,7 +75,7 @@ import {
75
75
  withRelayEdit,
76
76
  withRelayNote,
77
77
  withSizesFollowingFix
78
- } from "./chunk-MTROFUSC.js";
78
+ } from "./chunk-ZWFYBQ7N.js";
79
79
  import {
80
80
  buildFailedRunRecord,
81
81
  buildInitialRunRecord,
@@ -2231,4 +2231,4 @@ export {
2231
2231
  executeCanvasRun,
2232
2232
  buildBackendClient
2233
2233
  };
2234
- //# sourceMappingURL=chunk-PFWDYIDG.js.map
2234
+ //# sourceMappingURL=chunk-WPBXN37A.js.map
@@ -1827,8 +1827,7 @@ async function recordSnapshot(canvasRoot, slug, snapshot) {
1827
1827
  }
1828
1828
  function isRenderStale(state, currentSourceSha) {
1829
1829
  if (!state.rendered) return false;
1830
- if (!isSourceStale(currentSourceSha, state.rendered.sourceSha)) return false;
1831
- return state.attempted?.sourceSha !== currentSourceSha;
1830
+ return isSourceStale(currentSourceSha, state.rendered.sourceSha);
1832
1831
  }
1833
1832
  async function staleCreatives(workspaceRoot, turnId) {
1834
1833
  const creativesDir = path3.join(workspaceRoot, "src", "creatives");
@@ -1865,7 +1864,8 @@ async function staleCreatives(workspaceRoot, turnId) {
1865
1864
  canvasPath: path3.relative(workspaceRoot, canvasPath).split(path3.sep).join("/"),
1866
1865
  renderedRunId: state.rendered.runId,
1867
1866
  sourceSha: current,
1868
- ...refusal ? { refusedThisTurn: `${refusal.message} ${refusal.fix}` } : {}
1867
+ ...refusal ? { refusedThisTurn: `${refusal.message} ${refusal.fix}` } : {},
1868
+ ...state.attempted?.sourceSha === current ? { attemptedSinceEdit: true } : {}
1869
1869
  });
1870
1870
  }
1871
1871
  return stale;
@@ -1917,4 +1917,4 @@ export {
1917
1917
  staleCreatives,
1918
1918
  clearLegacyDirtyMarker
1919
1919
  };
1920
- //# sourceMappingURL=chunk-MTROFUSC.js.map
1920
+ //# sourceMappingURL=chunk-ZWFYBQ7N.js.map