@koda-sl/baker-cli 0.352.0 → 0.353.0-dev.0a55fe912

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 CHANGED
@@ -5553,7 +5553,7 @@ Resolves the run dir against `--outputs-dir` (default `./canvas`) or accepts an
5553
5553
 
5554
5554
  #### `baker canvas catalog`
5555
5555
 
5556
- Prints the agent-facing node catalog. By default it is a compact index (a few KB): `categories` (category → node ids) and `nodes` (node id → one line), plus `hints`. Ask for full JSON Schemas by name:
5556
+ Prints the agent-facing node catalog. By default it is a compact index (a few KB): `categories` (category → node ids), `nodes` (node id → one line) and `compositions` (the Hyperframes compositions the CLI ships: `id`, `title` and the absolute `dir` to copy from), plus `hints`. `compositions` is left out once `--node` or `--category` narrows the call. Ask for full JSON Schemas by name:
5557
5557
 
5558
5558
  - `--node <id>[,<id>…]` — those nodes' full entries: `id`, `version`, `location`, `category`, `summary`, `when_to_use`, `inputs`/`params`/`outputs` schemas, `cost_estimate_credits`, `runtime_estimate_seconds`.
5559
5559
  - `--category <name>` — narrow the index to one category; add `--full` for that category's full entries.
@@ -5565,6 +5565,7 @@ An unknown node or category exits 1 with `{ ok: false, error: { code: "NOT_FOUND
5565
5565
  baker canvas catalog
5566
5566
  baker canvas catalog --node video_generate
5567
5567
  baker canvas catalog --category audio --full
5568
+ baker canvas catalog | jq '.compositions[].id'
5568
5569
  ```
5569
5570
 
5570
5571
  ---
@@ -20,9 +20,9 @@ import {
20
20
  shouldEscalate
21
21
  } from "./chunk-2OKSJNLA.js";
22
22
 
23
- // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
23
+ // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js
24
24
  var require_safe_stable_stringify = __commonJS({
25
- "../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports, module) {
25
+ "../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js"(exports, module) {
26
26
  "use strict";
27
27
  var { hasOwnProperty } = Object.prototype;
28
28
  var stringify = configure2();
@@ -1114,7 +1114,7 @@ function resolveAdaptFormats(params) {
1114
1114
  return params.formats ?? [];
1115
1115
  }
1116
1116
 
1117
- // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/esm/wrapper.js
1117
+ // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/esm/wrapper.js
1118
1118
  var import__ = __toESM(require_safe_stable_stringify(), 1);
1119
1119
  var configure = import__.default.configure;
1120
1120
  var wrapper_default = import__.default;
@@ -9609,7 +9609,8 @@ function generateCatalog(registry, opts = {}) {
9609
9609
  schema: "baker-canvas-catalog/2",
9610
9610
  generated_at: opts.generatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
9611
9611
  categories: groupIds(entries),
9612
- entries
9612
+ entries,
9613
+ compositions: opts.compositions ?? []
9613
9614
  };
9614
9615
  }
9615
9616
  var INDEX_SUMMARY_MAX = 160;
@@ -9665,8 +9666,15 @@ function catalogView(catalog, opts) {
9665
9666
  const entries = catalog.entries.filter((e) => requestedIds.includes(e.id));
9666
9667
  return { ok: true, schema: catalog.schema, categories: groupIds(entries), entries };
9667
9668
  }
9669
+ const compositions = opts.category === void 0 ? { compositions: catalog.compositions } : {};
9668
9670
  if (opts.full) {
9669
- return { ok: true, schema: catalog.schema, categories, entries: catalog.entries.filter(inCategory) };
9671
+ return {
9672
+ ok: true,
9673
+ schema: catalog.schema,
9674
+ categories,
9675
+ entries: catalog.entries.filter(inCategory),
9676
+ ...compositions
9677
+ };
9670
9678
  }
9671
9679
  const nodes = {};
9672
9680
  for (const e of catalog.entries.filter(inCategory)) nodes[e.id] = oneLine(e.summary);
@@ -9675,9 +9683,13 @@ function catalogView(catalog, opts) {
9675
9683
  schema: catalog.schema,
9676
9684
  categories,
9677
9685
  nodes,
9686
+ ...compositions,
9678
9687
  hints: [
9679
9688
  "One node's params, inputs, outputs, models and when to use it: baker canvas catalog --node <id> (comma-separate several).",
9680
- "Every schema in a category: --category <name> --full. Every node: --full (large; prefer --node)."
9689
+ "Every schema in a category: --category <name> --full. Every node: --full (large; prefer --node).",
9690
+ ...opts.category === void 0 ? [
9691
+ "compositions: ready-made motion graphics. Copy one's `dir` next to your canvas, then point a hyperframe_render or hyperframe_snapshot `params.composition` at the copy; its meta.json lists the params."
9692
+ ] : []
9681
9693
  ]
9682
9694
  };
9683
9695
  }
@@ -9867,6 +9879,7 @@ export {
9867
9879
  durationSeconds,
9868
9880
  canonicalUrl,
9869
9881
  toModelSafeImage,
9882
+ loadCompositionMeta,
9870
9883
  catalogView,
9871
9884
  BackendClient2,
9872
9885
  Engine2 as Engine,
@@ -9878,4 +9891,4 @@ export {
9878
9891
  defaultRegistry,
9879
9892
  createEngineFromEnv
9880
9893
  };
9881
- //# sourceMappingURL=chunk-4HRJQGVW.js.map
9894
+ //# sourceMappingURL=chunk-Q2VR3FVM.js.map