@koda-sl/baker-cli 0.443.0-dev.edb8d8767 → 0.444.0-dev.cac1750ec

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/dist/cli.js CHANGED
@@ -198,7 +198,7 @@ import {
198
198
  withoutCastName,
199
199
  wordCount,
200
200
  ytDlpBlockSignal
201
- } from "./chunk-APTNJ2EY.js";
201
+ } from "./chunk-GY352NRN.js";
202
202
  import {
203
203
  NAME_CONTAINS_ARG,
204
204
  csvOrJson,
@@ -81430,7 +81430,8 @@ function briefHints(parts) {
81430
81430
  return hints2;
81431
81431
  }
81432
81432
  async function readBrief(root, args8) {
81433
- const [company, offers, viewer, insights, ideas, performance, feedback, accountId] = await Promise.all([
81433
+ const account = metaAccountId(args8.accountId).catch(() => null);
81434
+ const [company, offers, viewer, insights, ideas, performance, feedback, accountId, bottleneck, market] = await Promise.all([
81434
81435
  companyStatus(root),
81435
81436
  readOffers(root),
81436
81437
  readViewer(root, args8.adset),
@@ -81443,10 +81444,8 @@ async function readBrief(root, args8) {
81443
81444
  )
81444
81445
  ),
81445
81446
  section(() => apiPost("/api/creatives/feedback", {})),
81446
- metaAccountId(args8.accountId).catch(() => null)
81447
- ]);
81448
- const [bottleneck, market] = await Promise.all([
81449
- accountId ? section(() => readBottleneck(accountId)) : null,
81447
+ account,
81448
+ account.then((id) => id ? section(() => readBottleneck(id)) : null),
81450
81449
  section(() => readMarket(root))
81451
81450
  ]);
81452
81451
  return { company, offers, viewer, insights, ideas, performance, feedback, accountId, bottleneck, market };
@@ -82228,8 +82227,9 @@ function makeEnvelope(made) {
82228
82227
  `Rewrite before running: ${made.unsourcedCopy.map((l) => JSON.stringify(l)).join(", ")} claim a figure nothing the company wrote holds (the reference's promise, not ours).`
82229
82228
  ] : [],
82230
82229
  `Write the copy lines and the scene in src/creatives/${made.slug}/prompt.json${made.reference ? ": the drafted lines are the reference's, so keep one only if the Knowledge says it (badges, ratings and guarantees too)" : ""}. Say the message in the customer's words${quote ? ` ("${quote.slice(0, 80)}")` : ""}; keep \`message\` as it is.`,
82231
- `Then: baker canvas run ${made.canvasPath}`,
82232
- ...made.scaffoldHints.slice(0, 4)
82230
+ `Then: baker canvas run ${made.canvasPath} (it validates and asks the viewer itself: nothing to run before it).`,
82231
+ // The scaffold's own next steps name a separate validate; the run does it (dev, Oct 2026: five validates before one run).
82232
+ ...made.scaffoldHints.filter((h) => !/canvas (?:validate|viewer-check)/.test(h)).slice(0, 4)
82233
82233
  ]
82234
82234
  };
82235
82235
  }