@koda-sl/baker-cli 0.363.0 → 0.364.0-dev.24387b84c

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
@@ -69,7 +69,7 @@ import {
69
69
  validateCanvasDeep,
70
70
  withoutCastName,
71
71
  ytDlpBlockSignal
72
- } from "./chunk-AI4HWQVN.js";
72
+ } from "./chunk-K2IKLMCM.js";
73
73
  import {
74
74
  csvOrJson,
75
75
  daysAgoIso,
@@ -78,7 +78,7 @@ import {
78
78
  resolveAccountIdArg,
79
79
  resolveEffectiveStatus,
80
80
  todayIso
81
- } from "./chunk-SR56QQTD.js";
81
+ } from "./chunk-BLMXG42J.js";
82
82
  import {
83
83
  buildQueryCacheKey,
84
84
  cacheGet,
@@ -94,7 +94,7 @@ import {
94
94
  writeAdsJson,
95
95
  writeAdsOutput,
96
96
  writeJsonEnvelope
97
- } from "./chunk-VVQLRFCI.js";
97
+ } from "./chunk-A2LM5EDF.js";
98
98
  import {
99
99
  ApiError,
100
100
  apiGet,
@@ -4394,7 +4394,7 @@ var CAPABILITY_SURFACE_SPECS = {
4394
4394
  provider: "google-analytics",
4395
4395
  resourceNoun: "property",
4396
4396
  // Like Tag Manager: staged during the chat, applied for real at publish,
4397
- // with no simulated mode. A connection made before writes existed is
4397
+ // every time. A connection made before writes existed is
4398
4398
  // read-only until it is reconnected, and `access` does NOT say so — it
4399
4399
  // reports what the Baker app asks Google for, which is now app-wide
4400
4400
  // read-write. The per-company signal is `scopeBlockers`, which compares
@@ -8538,7 +8538,7 @@ var SURFACE_RULES = [
8538
8538
  ];
8539
8539
  var FAN_OUT_NUDGE_THRESHOLD = 2;
8540
8540
  var FAN_OUT_THRESHOLD = 3;
8541
- var SCHEDULED_HINT = 'This reads as recurring/scheduled work. If it should run on a cadence or a future date, create a Scheduled agent instead \u2014 baker scheduled-agents create --cron "0 9 * * MON" (or --run-at, or --trigger for a reaction rather than a clock; guide: `__tooling__/docs/tools/baker/scheduled-agents.md`). Do NOT capture "set up a schedule" as a Work Action.';
8541
+ var SCHEDULED_HINT = 'This reads as recurring/scheduled work. If it should run on a cadence or a future date, create a Scheduled agent instead \u2014 baker scheduled-agents create --cron "0 9 * * MON" (or --run-at, or --trigger for a reaction rather than a clock; guide: `__tooling__/docs/tools/baker/scheduled-agents.md`). Do not capture "set up a schedule" as a Work Action.';
8542
8542
  function looksExecutable(name, description) {
8543
8543
  const foldedName = fold(name);
8544
8544
  const full = `${foldedName}
@@ -8789,7 +8789,7 @@ var claimCommand = defineCommand({
8789
8789
  import { defineCommand as defineCommand2 } from "citty";
8790
8790
  registerSchema({
8791
8791
  command: "actions.complete",
8792
- description: "Stage completion of an action (it was DONE). Accepts a real action ID (must be claimed) or a temp ID from the same draft. The action becomes completed when the chat is published. --note is REQUIRED and must describe what you actually did to resolve it (what changed, where, and the outcome) \u2014 it is the client-facing record surfaced by `baker actions log`. Do NOT use this to drop an action you no longer want \u2014 to remove a staged op use `actions draft remove`, to close an unwanted published action use `actions discard`.",
8792
+ description: "Stage completion of an action (it was done). Accepts a real action ID (must be claimed) or a temp ID from the same draft. The action becomes completed when the chat is published. --note is required and must describe what you actually did to resolve it (what changed, where, and the outcome) \u2014 it is the client-facing record surfaced by `baker actions log`. Don't use this to drop an action you no longer want \u2014 to remove a staged op use `actions draft remove`, to close an unwanted published action use `actions discard`.",
8793
8793
  args: {
8794
8794
  id: { type: "string", description: "Action ID or temp ID", required: true },
8795
8795
  note: {
@@ -12529,7 +12529,7 @@ var PLANNER_FIELD_DESCRIPTIONS = {
12529
12529
  // src/commands/ads/google/keywords/discover.ts
12530
12530
  registerSchema({
12531
12531
  command: "ads.google.keywords.discover",
12532
- description: 'Discover keyword ideas from seed keywords or URLs. Returns { source: "keyword_planner_estimate", keywords, total_results, next_page_token? }. THESE ARE ESTIMATES OF TOTAL MARKET SEARCH VOLUME, NOT THIS ACCOUNT\'S DATA: every row carries a source column and every metric is prefixed planner_ (planner_avg_monthly_searches, planner_competition, ...). Never report a planner_ number as impressions, clicks or any account metric \u2014 read those with `baker ads google query` against the account. IMPORTANT: If --location and --language are omitted, defaults to United States (2840) and English (1000). The response includes a query_context object showing which location/language were used.',
12532
+ description: 'Discover keyword ideas from seed keywords or URLs. Returns { source: "keyword_planner_estimate", keywords, total_results, next_page_token? }. These are Keyword Planner estimates of total market search volume, not this account\'s data: every row carries a source column and every metric is prefixed planner_ (planner_avg_monthly_searches, planner_competition, ...). Never report a planner_ number as impressions, clicks or any account metric \u2014 read those with `baker ads google query` against the account. If --location and --language are omitted, they default to United States (2840) and English (1000); `query_context` shows which were used.',
12533
12533
  args: {
12534
12534
  "customer-id": {
12535
12535
  type: "string",
@@ -12540,12 +12540,12 @@ registerSchema({
12540
12540
  url: { type: "string", description: "URL to extract keyword ideas from", required: false },
12541
12541
  location: {
12542
12542
  type: "string",
12543
- description: "Geo target ID. DEFAULTS TO 2840 (United States) if omitted \u2014 always set this for non-US markets",
12543
+ description: "Geo target ID. Defaults to 2840 (United States) if omitted \u2014 always set this for non-US markets",
12544
12544
  required: false
12545
12545
  },
12546
12546
  language: {
12547
12547
  type: "string",
12548
- description: "Language ID. DEFAULTS TO 1000 (English) if omitted \u2014 always set this for non-English markets",
12548
+ description: "Language ID. Defaults to 1000 (English) if omitted \u2014 always set this for non-English markets",
12549
12549
  required: false
12550
12550
  },
12551
12551
  limit: { type: "string", description: "Max keyword ideas (default: 20, max: 100)", required: false, default: 20 },
@@ -12706,7 +12706,7 @@ var locationsCommand = defineCommand25({
12706
12706
  import { defineCommand as defineCommand26 } from "citty";
12707
12707
  registerSchema({
12708
12708
  command: "ads.google.keywords.metrics",
12709
- description: 'Get historical market metrics for specific keywords. Returns { source: "keyword_planner_estimate", historical_metrics: [...] }. THESE ARE KEYWORD PLANNER ESTIMATES OF TOTAL MARKET SEARCH VOLUME, NOT THIS ACCOUNT\'S DATA: every row carries a source column and every metric is prefixed planner_ (planner_avg_monthly_searches, planner_competition, ...). Never report a planner_ number as impressions, clicks or any account metric \u2014 read those with `baker ads google query` against the account. IMPORTANT: If --location and --language are omitted, defaults to United States (2840) and English (1000). The response includes a query_context object showing which location/language were used.',
12709
+ description: 'Get historical market metrics for specific keywords. Returns { source: "keyword_planner_estimate", historical_metrics: [...] }. These are Keyword Planner estimates of total market search volume, not this account\'s data: every row carries a source column and every metric is prefixed planner_ (planner_avg_monthly_searches, planner_competition, ...). Never report a planner_ number as impressions, clicks or any account metric \u2014 read those with `baker ads google query` against the account. If --location and --language are omitted, they default to United States (2840) and English (1000); `query_context` shows which were used.',
12710
12710
  args: {
12711
12711
  "customer-id": {
12712
12712
  type: "string",
@@ -12716,12 +12716,12 @@ registerSchema({
12716
12716
  keywords: { type: "string", description: "Comma-separated keywords to analyze (max 200)", required: true },
12717
12717
  location: {
12718
12718
  type: "string",
12719
- description: "Geo target ID. DEFAULTS TO 2840 (United States) if omitted \u2014 always set this for non-US markets",
12719
+ description: "Geo target ID. Defaults to 2840 (United States) if omitted \u2014 always set this for non-US markets",
12720
12720
  required: false
12721
12721
  },
12722
12722
  language: {
12723
12723
  type: "string",
12724
- description: "Language ID. DEFAULTS TO 1000 (English) if omitted \u2014 always set this for non-English markets",
12724
+ description: "Language ID. Defaults to 1000 (English) if omitted \u2014 always set this for non-English markets",
12725
12725
  required: false
12726
12726
  },
12727
12727
  output: { type: "string", description: "Format: json|csv|jsonl|md", required: false, default: "json" },
@@ -13635,7 +13635,7 @@ function completenessWarnings(read) {
13635
13635
  return [
13636
13636
  {
13637
13637
  code: "TRUNCATED_RESULTS",
13638
- message: `INCOMPLETE READ \u2014 ${cause} These rows are a page, not the data set. Do NOT count, total or describe them as the whole picture. ${fix}`
13638
+ message: `INCOMPLETE READ \u2014 ${cause} These rows are a page, not the data set. Don't count, total or describe them as the whole picture. ${fix}`
13639
13639
  }
13640
13640
  ];
13641
13641
  }
@@ -18212,6 +18212,7 @@ var fileArg = {
18212
18212
  description: "The op payload: a JSON file path, or the JSON object inline (flags override it)"
18213
18213
  }
18214
18214
  };
18215
+ var STAGED_WRITE = "Stages only \u2014 applies to the live account when the chat is published. Field contract: `baker capabilities google-ads`.";
18215
18216
  var BUDGET_DEMAND_HINTS = [
18216
18217
  "Check this daily budget against the search volume you measured for these keywords, not against the plan you had before you measured it. A budget many times larger than the traffic the target pool can absorb never spends, and reads to the client as a number nobody costed.",
18217
18218
  "No volume measured yet? Pull it first \u2014 `baker ads google query --preset search-terms` for what the account already captures, `baker ads google keywords metrics` for the market estimate (those are planner figures, never account performance)."
@@ -18223,11 +18224,14 @@ var budgetsCommand = defineCommand31({
18223
18224
  // first. A budget several times what the target pool can absorb never spends, and reads to the
18224
18225
  // client as a plan nobody costed.
18225
18226
  create: defineCommand31({
18226
- meta: { name: "create", description: "Stage a campaign budget" },
18227
+ meta: {
18228
+ name: "create",
18229
+ description: `Stage a daily campaign budget; campaigns reference it by the g_temp_* ref it returns (--budget-ref). ${STAGED_WRITE}`
18230
+ },
18227
18231
  args: {
18228
18232
  ...customerIdArg,
18229
18233
  ...fileArg,
18230
- name: { type: "string", description: "Budget name" },
18234
+ name: { type: "string", description: 'Budget name as shown in Google Ads (e.g. "Brand search \u2014 daily")' },
18231
18235
  amount: { type: "string", description: "Daily amount in major currency units (e.g. 50)" },
18232
18236
  delivery: { type: "string", description: "STANDARD | ACCELERATED" },
18233
18237
  shared: { type: "boolean", description: "Explicitly shared budget" }
@@ -18244,11 +18248,14 @@ var budgetsCommand = defineCommand31({
18244
18248
  }
18245
18249
  }),
18246
18250
  update: defineCommand31({
18247
- meta: { name: "update", description: "Stage a budget update" },
18251
+ meta: {
18252
+ name: "update",
18253
+ description: `Stage a change to an existing budget's name, daily amount or delivery. ${STAGED_WRITE}`
18254
+ },
18248
18255
  args: {
18249
18256
  ...customerIdArg,
18250
18257
  ...fileArg,
18251
- name: { type: "string" },
18258
+ name: { type: "string", description: "New budget name as shown in Google Ads" },
18252
18259
  amount: { type: "string", description: "New daily amount in major currency units" },
18253
18260
  delivery: { type: "string" }
18254
18261
  },
@@ -18457,11 +18464,14 @@ var campaignsCommand = defineCommand31({
18457
18464
  meta: { name: "campaigns", description: "Stage campaign create/update/pause/resume/remove" },
18458
18465
  subCommands: {
18459
18466
  create: defineCommand31({
18460
- meta: { name: "create", description: "Stage a campaign" },
18467
+ meta: {
18468
+ name: "create",
18469
+ description: `Stage a new campaign on a budget (--budget-ref); it is created paused unless --status ENABLED. ${STAGED_WRITE}`
18470
+ },
18461
18471
  args: {
18462
18472
  ...customerIdArg,
18463
18473
  ...fileArg,
18464
- name: { type: "string" },
18474
+ name: { type: "string", description: 'Campaign name, unique in the account (e.g. "Search \u2014 Brand \u2014 ES")' },
18465
18475
  "channel-type": {
18466
18476
  type: "string",
18467
18477
  description: "SEARCH | DISPLAY | SHOPPING | VIDEO | PERFORMANCE_MAX | DEMAND_GEN | \u2026"
@@ -18524,11 +18534,14 @@ var campaignsCommand = defineCommand31({
18524
18534
  }
18525
18535
  }),
18526
18536
  update: defineCommand31({
18527
- meta: { name: "update", description: "Stage a campaign update" },
18537
+ meta: {
18538
+ name: "update",
18539
+ description: `Stage a change to an existing campaign's name, budget, bidding or settings. ${STAGED_WRITE}`
18540
+ },
18528
18541
  args: {
18529
18542
  ...customerIdArg,
18530
18543
  ...fileArg,
18531
- name: { type: "string" },
18544
+ name: { type: "string", description: "New campaign name, unique in the account" },
18532
18545
  "budget-ref": { type: "string" },
18533
18546
  "bidding-strategy": {
18534
18547
  type: "string",
@@ -18608,15 +18621,21 @@ var adGroupsCommand = defineCommand31({
18608
18621
  meta: { name: "ad-groups", description: "Stage ad group create/update/pause/resume/remove" },
18609
18622
  subCommands: {
18610
18623
  create: defineCommand31({
18611
- meta: { name: "create", description: "Stage an ad group" },
18624
+ meta: {
18625
+ name: "create",
18626
+ description: `Stage a new ad group in a campaign (--campaign-ref); it is created paused unless --status ENABLED. ${STAGED_WRITE}`
18627
+ },
18612
18628
  args: {
18613
18629
  ...customerIdArg,
18614
18630
  ...fileArg,
18615
- name: { type: "string" },
18631
+ name: {
18632
+ type: "string",
18633
+ description: 'Ad group name, unique within its campaign (e.g. "Solar panels \u2014 price")'
18634
+ },
18616
18635
  "campaign-ref": { type: "string", description: "Campaign ref (g_temp_*, id, or resource name)" },
18617
18636
  type: {
18618
18637
  type: "string",
18619
- description: "Ad group type \u2014 leave it out and Google derives it from the campaign's channel, which is REQUIRED on a Demand Gen campaign (there is no Demand Gen ad group type). SEARCH_STANDARD | DISPLAY_STANDARD | SHOPPING_PRODUCT_ADS | VIDEO_*"
18638
+ description: "Ad group type \u2014 leave it out and Google derives it from the campaign's channel, which is required on a Demand Gen campaign (there is no Demand Gen ad group type). SEARCH_STANDARD | DISPLAY_STANDARD | SHOPPING_PRODUCT_ADS | VIDEO_*"
18620
18639
  },
18621
18640
  "cpc-bid": { type: "string", description: "Default CPC bid in major units" },
18622
18641
  status: { type: "string" }
@@ -18634,11 +18653,14 @@ var adGroupsCommand = defineCommand31({
18634
18653
  }
18635
18654
  }),
18636
18655
  update: defineCommand31({
18637
- meta: { name: "update", description: "Stage an ad group update" },
18656
+ meta: {
18657
+ name: "update",
18658
+ description: `Stage a change to an existing ad group's name, default CPC bid or status. ${STAGED_WRITE}`
18659
+ },
18638
18660
  args: {
18639
18661
  ...customerIdArg,
18640
18662
  ...fileArg,
18641
- name: { type: "string" },
18663
+ name: { type: "string", description: "New ad group name, unique within its campaign" },
18642
18664
  "cpc-bid": { type: "string" },
18643
18665
  status: { type: "string" }
18644
18666
  },
@@ -19416,7 +19438,7 @@ var assetsCommand = defineCommand31({
19416
19438
  ),
19417
19439
  update: assetsUpdateCommand,
19418
19440
  attach: fileCreateCommand("attach", "google.assetLink.attach", "Attach an asset to a campaign/adGroup/customer", [
19419
- "Image extensions cannot be linked \u2014 Google refuses AD_IMAGE and every marketing-image field type at every level, on every API version \u2014 but stage the link anyway: it is skipped rather than stored, the rest of a batch is unaffected, and it is what records the handover Task naming those images and that campaign. That is the ONLY record when the images are already in the account and you are uploading nothing. Then tell the user they are already in their Google Ads account and only need adding to the campaign under Assets; do not stage a second Task with `baker actions`. Two images that DO link: the advertiser's logo through this command (`BUSINESS_LOGO`, campaign or customer level, on a verified account), and Performance Max asset-group images, which are a different mechanism (`asset-groups attach`)."
19441
+ "Image extensions cannot be linked \u2014 Google refuses AD_IMAGE and every marketing-image field type at every level, on every API version \u2014 but stage the link anyway: it is skipped rather than stored, the rest of a batch is unaffected, and it is what records the handover Task naming those images and that campaign. That is the only record when the images are already in the account and you are uploading nothing. Then tell the user they are already in their Google Ads account and only need adding to the campaign under Assets; do not stage a second Task with `baker actions`. Two images that do link: the advertiser's logo through this command (`BUSINESS_LOGO`, campaign or customer level, on a verified account), and Performance Max asset-group images, which are a different mechanism (`asset-groups attach`)."
19420
19442
  ]),
19421
19443
  detach: statusCommand2("google.assetLink.detach", "asset link", [
19422
19444
  "Pass the resource name Google gave you \u2014 `SELECT campaign_asset.resource_name \u2026 FROM campaign_asset WHERE campaign_asset.status != 'REMOVED'` (or `ad_group_asset` / `customer_asset`) \u2014 never one composed out of an owner id and an asset id. A link's own status is not its campaign's and not its ad group's, so an inventory read scoped only to those lists extensions that are already detached, and a link between an asset and an owner that never held it parses fine and exists nowhere. Either way the target is read back before it is staged, and a detach of a link that is not there is refused here rather than at publish."
@@ -19426,14 +19448,14 @@ var assetsCommand = defineCommand31({
19426
19448
  var audienceModeArg = {
19427
19449
  mode: {
19428
19450
  type: "string",
19429
- description: "observation = the audience only adjusts bids, reach is unchanged | targeting = the ads are shown ONLY to people in the audiences attached to this campaign/ad group"
19451
+ description: "observation = the audience only adjusts bids, reach is unchanged | targeting = the ads are shown only to people in the audiences attached to this campaign/ad group"
19430
19452
  }
19431
19453
  };
19432
19454
  function requireAudienceMode(value) {
19433
19455
  const mode = typeof value === "string" ? value.toLowerCase() : void 0;
19434
19456
  if (mode !== "observation" && mode !== "targeting") {
19435
19457
  failWriteValidation(
19436
- `pass --mode observation (the audience adjusts bids and reach is unchanged \u2014 the Google Ads interface's default) or --mode targeting (the ads are shown ONLY to people in the audiences on this campaign/ad group). There is no safe default: the API's own default is targeting, which can cut a campaign's reach to the size of the list.`
19458
+ `pass --mode observation (the audience adjusts bids and reach is unchanged \u2014 the Google Ads interface's default) or --mode targeting (the ads are shown only to people in the audiences on this campaign/ad group). There is no safe default: the API's own default is targeting, which can cut a campaign's reach to the size of the list.`
19437
19459
  );
19438
19460
  }
19439
19461
  return mode === "observation" ? "OBSERVATION" : "TARGETING";
@@ -23927,7 +23949,7 @@ Performance \u2014 the workhorse (3 axes):
23927
23949
  baker ads linkedin analytics --list-intents
23928
23950
  baker ads linkedin analytics --list-pivots
23929
23951
 
23930
- Staged writes (NEVER hit LinkedIn directly \u2014 ops stage on this chat's draft,
23952
+ Staged writes (never hit LinkedIn directly \u2014 ops stage on this chat's draft,
23931
23953
  show in the dashboard as pending LinkedIn changes, and apply when the chat is
23932
23954
  published, at which point they reach the real ad account):
23933
23955
  baker ads linkedin account url-params \u2014 UTMs for every ad in the account
@@ -26359,8 +26381,8 @@ Example: baker ads meta ads retag 120252158038400247 --url-tags "utm_source={{si
26359
26381
  run: async ({ args: args5 }) => {
26360
26382
  const { apiPost: apiPost2 } = await import("./client-3DGBQ2H3.js");
26361
26383
  const { requireChatId: requireChatId2 } = await import("./env-BSG7TY5Y.js");
26362
- const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-OSSBUGT7.js");
26363
- const { handleMetaError: handleMetaError2 } = await import("./shared-MSI4UMZ3.js");
26384
+ const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-M2DBCZFG.js");
26385
+ const { handleMetaError: handleMetaError2 } = await import("./shared-BROA3UXS.js");
26364
26386
  try {
26365
26387
  const accountId = bareAccountId2(args5);
26366
26388
  const urlTags = typeof args5["url-tags"] === "string" ? args5["url-tags"] : void 0;
@@ -26507,8 +26529,8 @@ function duplicateCommand2(entity, label) {
26507
26529
  run: async ({ args: args5 }) => {
26508
26530
  const { apiPost: apiPost2 } = await import("./client-3DGBQ2H3.js");
26509
26531
  const { requireChatId: requireChatId2 } = await import("./env-BSG7TY5Y.js");
26510
- const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-OSSBUGT7.js");
26511
- const { handleMetaError: handleMetaError2 } = await import("./shared-MSI4UMZ3.js");
26532
+ const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-M2DBCZFG.js");
26533
+ const { handleMetaError: handleMetaError2 } = await import("./shared-BROA3UXS.js");
26512
26534
  try {
26513
26535
  const accountId = bareAccountId2(args5);
26514
26536
  const chatId = requireChatId2();
@@ -33025,7 +33047,7 @@ var sourcesResponseSchema = z40.strictObject({
33025
33047
  import { defineCommand as defineCommand98 } from "citty";
33026
33048
 
33027
33049
  // src/commands/hubspot/refusal.ts
33028
- var CONTINUE = "Do not abort the wider task: say which part you could not read, skip it, and finish everything else. If the `request_connection` tool is not available to you, point them at the dashboard, Brain -> Integrations -> Tools -> HubSpot.";
33050
+ var CONTINUE = "Keep going with the wider task: say which part you could not read, skip it, and finish everything else. If the `request_connection` call fails, say so plainly and give the exact route: dashboard \u2192 Brain \u2192 Integrations \u2192 Tools \u2192 HubSpot.";
33029
33051
  function hubspotRefusal(code, message) {
33030
33052
  if (code === "NOT_FOUND" && message.includes(HUBSPOT_NOT_CONNECTED_MESSAGE)) {
33031
33053
  return {
@@ -33041,7 +33063,7 @@ function hubspotRefusal(code, message) {
33041
33063
  code: "HUBSPOT_RECONNECT_REQUIRED",
33042
33064
  fix: {
33043
33065
  action: "request_connection",
33044
- explanation: 'AGENT INSTRUCTION: HubSpot IS connected \u2014 do not tell the user it is missing, and do not retry. Its access does not cover this read (it was connected before Baker asked for it, or the access was withdrawn), and only the user can widen it. Call the `request_connection` tool with { platform: "hubspot", reason } naming what you need to read; the card offers them a Reconnect button. Run this command again once they have. ' + CONTINUE
33066
+ explanation: 'AGENT INSTRUCTION: HubSpot is connected \u2014 do not tell the user it is missing, and do not retry. Its access does not cover this read (it was connected before Baker asked for it, or the access was withdrawn), and only the user can widen it. Call the `request_connection` tool with { platform: "hubspot", reason } naming what you need to read; the card offers them a Reconnect button. Run this command again once they have. ' + CONTINUE
33045
33067
  }
33046
33068
  };
33047
33069
  }
@@ -34544,8 +34566,8 @@ import { defineCommand as defineCommand105 } from "citty";
34544
34566
  import { defineCommand as defineCommand100 } from "citty";
34545
34567
 
34546
34568
  // src/commands/avatars/casting.ts
34547
- var CAST_FLAG_RULE = "Cast with `--avatar <handle>` on `baker studio generate`, `baker studio animate`, `baker canvas scaffold-ad`, `baker canvas scaffold-static-ad` and `baker canvas scaffold-video`. Do NOT hand-roll it by pasting `subjectDescription` into the prompt or by passing the sheet through `--reference` \u2014 both render something that merely resembles them. `--avatar` is also the ONLY thing that carries their ACCENT and delivery into a clip. An avatar has no pinned voice by design (ADR 0005): the video model renders the voice, and the region on their profile is the only thing steering it \u2014 without the flag the clip is performed flat, in whatever accent the model picks on its own. `baker canvas scaffold-video` casts only their FACE: a reproduced video keeps the source ad's accent direction, so never tell the user it speaks in theirs.";
34548
- var VERBATIM_RULE = "When you do write the description yourself \u2014 a hand-built canvas node, a landing image, anywhere `--avatar` does not exist \u2014 copy `subjectDescription` VERBATIM, word for word. Re-phrasing it per generation is the other reason a face drifts across a set.";
34569
+ var CAST_FLAG_RULE = "Cast with `--avatar <handle>` on `baker studio generate`, `baker studio animate`, `baker canvas scaffold-ad`, `baker canvas scaffold-static-ad` and `baker canvas scaffold-video`. Don't hand-roll it by pasting `subjectDescription` into the prompt or by passing the sheet through `--reference` \u2014 both render something that merely resembles them. `--avatar` is also the only thing that carries their accent and delivery into a clip. An avatar has no pinned voice by design (ADR 0005): the video model renders the voice, and the region on their profile is the only thing steering it \u2014 without the flag the clip is performed flat, in whatever accent the model picks on its own. `baker canvas scaffold-video` casts only their face: a reproduced video keeps the source ad's accent direction, so never tell the user it speaks in theirs.";
34570
+ var VERBATIM_RULE = "When you do write the description yourself \u2014 a hand-built canvas node, a landing image, anywhere `--avatar` does not exist \u2014 copy `subjectDescription` verbatim, word for word. Re-phrasing it per generation is the other reason a face drifts across a set.";
34549
34571
  var VIDEO_ROUTING = "In video, a photoreal presenter renders on `google/veo-3.1` (or `google/veo-3.1-fast`), never `bytedance/seedance-2.0` \u2014 it refuses photoreal human faces, AI-generated ones included. Reproducing a video the user gave you: `baker canvas scaffold-video \u2026 --avatar <handle> --real-face`.";
34550
34572
  function castingHints(avatar) {
34551
34573
  if (avatar.status === "generating" && avatar.needsFace) {
@@ -34639,7 +34661,7 @@ function creationHints(created, profile) {
34639
34661
  const casting = created.likeness === "synthetic" && created.faceChoice === "auto" ? [
34640
34662
  `No one was asked about this face \u2014 \`--face auto\` cast it and it is kept. Do not tell the user they chose it, and do not offer them a pick you are not going to run. If this should have been theirs, say so and create it again with \`--face ask\`.`
34641
34663
  ] : created.likeness === "synthetic" ? [
34642
- `The user is being shown real portraits of @${created.handle} right now, and the turn waits for them to pick \u2014 this happens on its own, triggered by the command you just ran. Do NOT call request_avatar_casting, do not ask about the face in a question of your own, and do not wait or poll: whatever you do next simply runs after they have chosen. Say what you created and get on with the work.`
34664
+ `The user is being shown real portraits of @${created.handle} right now, and the turn waits for them to pick \u2014 this happens on its own, triggered by the command you just ran. The picker is already showing, so don't call request_avatar_casting, don't ask about the face in a question of your own, and don't wait or poll: whatever you do next simply runs after they have chosen. Say what you created and get on with the work.`
34643
34665
  ] : [];
34644
34666
  const hints2 = [
34645
34667
  ...casting,
@@ -34725,7 +34747,7 @@ function avatarFailureFix(err, handle, context = {}) {
34725
34747
  if (err.code === "CONFLICT" && handle) {
34726
34748
  return {
34727
34749
  action: "use_the_existing_avatar",
34728
- explanation: `@${handle} already exists in THIS company \u2014 avatars belong to the company, not to a chat, so one made in an earlier conversation is still here and still castable. If it is the person you want, use it as it is: \`--avatar ${handle}\`. Read it first with \`baker avatars get ${handle} --full\` and say who they already are. Do NOT create the same person under a second name: the user would be told about one avatar and handed another, and the company ends up with duplicates nobody chose a face for. If you genuinely need a different person, ask the user what to call them.`
34750
+ explanation: `@${handle} already exists in this company \u2014 avatars belong to the company, not to a chat, so one made in an earlier conversation is still here and still castable. If it is the person you want, use it as it is: \`--avatar ${handle}\`. Read it first with \`baker avatars get ${handle} --full\` and say who they already are. Do not create the same person under a second name: the user would be told about one avatar and handed another, and the company ends up with duplicates nobody chose a face for. If you genuinely need a different person, ask the user what to call them.`
34729
34751
  };
34730
34752
  }
34731
34753
  return void 0;
@@ -34827,7 +34849,7 @@ registerSchema({
34827
34849
  },
34828
34850
  subject: {
34829
34851
  type: "string",
34830
- description: "The identity, reused VERBATIM in every render: one person, plainly described (age, build, hair, skin, face). No scene, no lighting, no camera, no wardrobe \u2014 those belong in the render prompt or in --wardrobe/--setting.",
34852
+ description: "The identity, reused verbatim in every render: one person, plainly described (age, build, hair, skin, face). No scene, no lighting, no camera, no wardrobe \u2014 those belong in the render prompt or in --wardrobe/--setting.",
34831
34853
  required: true
34832
34854
  },
34833
34855
  persona: { type: "string", description: "Who they are on camera \u2014 role, attitude, energy", required: false },
@@ -35055,7 +35077,7 @@ async function waitForSheet(first, read, sleep4 = (ms) => new Promise((resolve5)
35055
35077
  // src/commands/avatars/get.ts
35056
35078
  registerSchema({
35057
35079
  command: "avatars.get",
35058
- description: "Read one avatar by handle \u2014 the command you run before casting it. Returns its status (only `ready` can be cast), the identity sheet URL every render must be grounded on via --reference, and the subject description that goes into the prompt VERBATIM. Add --full for the whole written profile (persona, speech, motion, wardrobe, setting, guardrails, voice, source photos).",
35080
+ description: "Read one avatar by handle \u2014 the command you run before casting it. Returns its status (only `ready` can be cast), the identity sheet URL every render must be grounded on via --reference, and the subject description that goes into the prompt verbatim. Add --full for the whole written profile (persona, speech, motion, wardrobe, setting, guardrails, voice, source photos).",
35059
35081
  args: {
35060
35082
  handle: { type: "string", description: 'Avatar handle, e.g. "marta" (lowercase, dashes)', required: true },
35061
35083
  full: {
@@ -35304,7 +35326,7 @@ How casting works:
35304
35326
  2. baker avatars get <handle> Status, identity sheet URL, subject description
35305
35327
  3. baker images generate "<scene>" --reference <sheetUrl>
35306
35328
  Ground the render on the identity sheet, never on a source photo,
35307
- and copy the subject description into the prompt VERBATIM
35329
+ and copy the subject description into the prompt verbatim
35308
35330
 
35309
35331
  Examples:
35310
35332
  baker avatars list --status ready --output md
@@ -36164,7 +36186,7 @@ async function unresolvedAction(css, unresolved) {
36164
36186
  const { plans } = planFontAdoption(await astroSources(), unresolved);
36165
36187
  if (plans.length > 0) {
36166
36188
  const names = plans.map((p) => `"${p.family}"`).join(", ");
36167
- return `Run \`baker brand fonts adopt\` \u2014 ${names} is already self-hosted by ${plans[0]?.files.join(", ")}, so it only needs moving into ${GLOBAL_CSS} to load on every page. Do NOT fetch it: that downloads a different build of the same face.`;
36189
+ return `Run \`baker brand fonts adopt\` \u2014 ${names} is already self-hosted by ${plans[0]?.files.join(", ")}, so it only needs moving into ${GLOBAL_CSS} to load on every page. Don't fetch it: that downloads a different build of the same face.`;
36168
36190
  }
36169
36191
  const viaFontsource = [...fontsourceFamilies(css)];
36170
36192
  const stranded = unresolved.filter((family) => viaFontsource.includes(family.toLowerCase()));
@@ -38630,7 +38652,7 @@ function emitScreenScene(i, scene, lengths, out, surfaceIngests, nodes, clips) {
38630
38652
  type: "ingest",
38631
38653
  params: {
38632
38654
  source: "path",
38633
- path: `[TODO: supply the REAL screen for "${label}" \u2014 NEVER AI-generate a UI. Capture a clean, text-free screenshot with \`baker images screenshot https://<brand-domain>/<path>\` (image-library skill); spoken/overlay text rides the overlay layer, not the screenshot. Wire it in as a path relative to this canvas file, never an absolute path]`,
38655
+ path: `[TODO: supply the real screen for "${label}" \u2014 never AI-generate a UI. Capture a clean, text-free screenshot with \`baker images screenshot https://<brand-domain>/<path>\` (image-library skill); spoken/overlay text rides the overlay layer, not the screenshot. Wire it in as a path relative to this canvas file, never an absolute path]`,
38634
38656
  expect: "image"
38635
38657
  }
38636
38658
  });
@@ -38682,7 +38704,7 @@ function emitGraphicScene(i, scene, lengths, out, surfaceIngests, nodes, clips)
38682
38704
  type: "ingest",
38683
38705
  params: {
38684
38706
  source: "path",
38685
- path: `[TODO: supply the REAL designed graphic for "${label}" \u2014 NEVER AI-generate a designed panel (its typography/wordmarks garble). Rebuild it as brand HTML in video-overlay-composition (the scene's text/logos are already seeded there), export the design from the brand kit, or source stock art; text rides the overlay layer, not this plate. Wire it in as a path relative to this canvas file, never an absolute path]`,
38707
+ path: `[TODO: supply the real designed graphic for "${label}" \u2014 never AI-generate a designed panel (its typography/wordmarks garble). Rebuild it as brand HTML in video-overlay-composition (the scene's text/logos are already seeded there), export the design from the brand kit, or source stock art; text rides the overlay layer, not this plate. Wire it in as a path relative to this canvas file, never an absolute path]`,
38686
38708
  expect: "image"
38687
38709
  }
38688
38710
  });
@@ -39765,13 +39787,13 @@ function uiSurfaceStub(blueprint, run, clock) {
39765
39787
  }) : [];
39766
39788
  const isGraphic = scenes.some((s) => (compositeRegionsOf(s) ?? []).some((r) => r.kind === "static_graphic"));
39767
39789
  const sourcing = isGraphic ? [
39768
- " Build it as a REAL designed panel, NEVER AI-generate its text/typography:",
39790
+ " Build it as a real designed panel; never AI-generate its text/typography:",
39769
39791
  " hand-build a brand-accurate HTML block in this composition (restyle the seeded",
39770
39792
  " overlay text, or `npx hyperframes add <block>` for a ready-made card),",
39771
39793
  " \u2014 OR drop the design asset (export it from the brand kit) as panel.png here;",
39772
39794
  " then nest it as a timed clip:"
39773
39795
  ] : [
39774
- " Build it as a REAL surface, NEVER AI: capture the live page \u2014",
39796
+ " Build it as a real surface, never AI: capture the live page \u2014",
39775
39797
  " baker images screenshot https://<brand-domain>/<path> (image-library skill)",
39776
39798
  " \u2014 OR hand-build a brand-accurate HTML screen; then frame it in a phone mockup:",
39777
39799
  " npx hyperframes add phone-scroll (writes compositions/phone-scroll.html)",
@@ -40173,7 +40195,7 @@ function buildModelConstraints() {
40173
40195
  };
40174
40196
  }
40175
40197
  return {
40176
- note: "Switching a clip's video model has cross-node constraints. ALL video_generate nodes in one canvas MUST share ONE aspect_ratio (the composite silently crops otherwise). Each model's `duration` is a hard enum and differs per model \u2014 a scene longer than the model's max must be split. `person_generation` differs (Veo requires \"allow_all\"). `baker canvas validate` gates duration, aspect agreement, per-model params, AND a scene-span-vs-model-max advisory before any billed run \u2014 run it after every model edit.",
40198
+ note: "Switching a clip's video model has cross-node constraints. All video_generate nodes in one canvas must share one aspect_ratio (the composite silently crops otherwise). Each model's `duration` is a hard enum and differs per model \u2014 a scene longer than the model's max must be split. `person_generation` differs (Veo requires \"allow_all\"). `baker canvas validate` gates duration, aspect agreement, per-model params, and a scene-span-vs-model-max advisory before any billed run \u2014 run it after every model edit.",
40177
40199
  models
40178
40200
  };
40179
40201
  }
@@ -40248,7 +40270,7 @@ function buildMotionBoard(blueprint) {
40248
40270
  });
40249
40271
  }
40250
40272
  var VIDEO_GUIDE = [
40251
- "Scaffolded by `baker canvas scaffold-video` \u2014 a runnable reproduction of your reference video, built like an editing timeline. It is a sequence of clear SHOTS separated at COMPLETE BREAKS (hard cuts): two adjacent presenter shots at a cut are TWO clips, never glued into one take. What stays continuous is the VOICE \u2014 a voiceover narration is ONE read across the b-roll it plays over, and a b-roll CUTAWAY between two on-camera moments leaves the presenter shot continuous with the insert sliced in \u2014 and each person keeps ONE brand voice (all their clips' native audio re-voiced in a single per-speaker pass), so timbre holds across the cuts. A presenter shot is ONE Seedance clip (native lip-sync + audio); a pure-voiceover stretch is one ElevenLabs tts read; a sub-2s flash is a still hold. A single shot too long for one clip splits into takes that share a boundary frame \u2014 the spine drops the duplicated frame (`--seam-dedup head|tail|off`). Every clip gets a CLEAN-PLATE start AND end keyframe (no baked text), RECAST to your dropped reference assets \u2014 Seedance interpolates real in-shot motion between them. Each frame grounds ONLY on its own extracted frame + el_* slots (never another generated frame), so all frames render in PARALLEL (no cross-frame cascade). A SPLIT-SCREEN / PICTURE-IN-PICTURE / KEYED-PRESENTER scene is reproduced as one clip PER REGION, stacked or overlaid (see `metadata.todo.composition`). On-screen text/graphics are a separate HTML overlay layer you paint; audio is the voice + SFX + a ducked music bed, normalized stereo. It is a STARTING POINT, not a locked render: add, delete, reorder, split, merge, or re-time scenes freely \u2014 see `metadata.todo.full_flexibility`.",
40273
+ "Scaffolded by `baker canvas scaffold-video` \u2014 a runnable reproduction of your reference video, built like an editing timeline. It is a sequence of clear SHOTS separated at COMPLETE BREAKS (hard cuts): two adjacent presenter shots at a cut are TWO clips, never glued into one take. What stays continuous is the VOICE \u2014 a voiceover narration is ONE read across the b-roll it plays over, and a b-roll CUTAWAY between two on-camera moments leaves the presenter shot continuous with the insert sliced in \u2014 and each person keeps ONE brand voice (all their clips' native audio re-voiced in a single per-speaker pass), so timbre holds across the cuts. A presenter shot is ONE Seedance clip (native lip-sync + audio); a pure-voiceover stretch is one ElevenLabs tts read; a sub-2s flash is a still hold. A single shot too long for one clip splits into takes that share a boundary frame \u2014 the spine drops the duplicated frame (`--seam-dedup head|tail|off`). Every clip gets a CLEAN-PLATE start AND end keyframe (no baked text), RECAST to your dropped reference assets \u2014 Seedance interpolates real in-shot motion between them. Each frame grounds only on its own extracted frame + el_* slots (never another generated frame), so all frames render in PARALLEL (no cross-frame cascade). A SPLIT-SCREEN / PICTURE-IN-PICTURE / KEYED-PRESENTER scene is reproduced as one clip PER REGION, stacked or overlaid (see `metadata.todo.composition`). On-screen text/graphics are a separate HTML overlay layer you paint; audio is the voice + SFX + a ducked music bed, normalized stereo. It is a STARTING POINT, not a locked render: add, delete, reorder, split, merge, or re-time scenes freely \u2014 see `metadata.todo.full_flexibility`.",
40252
40274
  "",
40253
40275
  "WHAT TO DO NEXT:",
40254
40276
  "0. RE-CRAFT THE SCRIPT FIRST (don't clone). This reference already won in-market, but copying a video is much harder than a static: the hook is targeting and may not transfer, and the message must become TRUE for our brand. Work the `metadata.todo.script_recraft` checklist \u2014 for each scene judge its role (hook/body/CTA), decide keep/cut/reorder/replace, and re-author every line for OUR customer's pain + OUR offer. See `references/script-craft.md` (hook/body/CTA framework) and the `meta-ads-playbook` skill. Most of the work lives here.",
@@ -40289,7 +40311,7 @@ function recraftTextForRole(role, sceneIndex) {
40289
40311
  return `[RECRAFT HOOK \u2014 the #1 decision, but usually the LIGHTEST move wins: this hook already worked, so default to KEEPING it and building on top (swap only the specifics for ours). REBUILD only when it doesn't transfer \u2014 a claim we lack or a different funnel/awareness stage \u2014 by reaching for its deeper INNER MECHANIC and delivering that truthfully. DIAGNOSE (device + mechanic + stage) \u2192 DECIDE keep/adapt/rebuild \u2192 hold the opener to criteria: ${HOOK_OPENER_CRITERIA}. It lives on s${sceneIndex}_start (first frame) + the scene-${sceneIndex} overlay. See references/hook-craft.md + meta-ads-playbook \xA710/\xA739.]`;
40290
40312
  }
40291
40313
  if (role === "cta") {
40292
- return "[RECRAFT CTA \u2014 the close: state what to do (where to go) + what to expect (offer/bundle/discount) for OUR brand; soft for top-of-funnel, hard for bottom. Do NOT render the reference's words. See references/script-craft.md.]";
40314
+ return "[RECRAFT CTA \u2014 the close: state what to do (where to go) + what to expect (offer/bundle/discount) for OUR brand; soft for top-of-funnel, hard for bottom. Don't render the reference's words. See references/script-craft.md.]";
40293
40315
  }
40294
40316
  return `[RECRAFT: rewrite this ${role} for OUR brand \u2014 true claims only; do NOT render the reference's words. See references/script-craft.md + meta-ads-playbook.]`;
40295
40317
  }
@@ -40372,7 +40394,7 @@ function buildVideoTodo(report, overlayCount, floatingCount, opts, blueprint) {
40372
40394
  // ALWAYS-ON safety net: the scaffold can only seed what the deconstruct
40373
40395
  // cataloged, and it under-detects on-image graphics + sound cues. Never trust
40374
40396
  // "none detected" — re-watch the reference and fill the gaps with the right tool.
40375
- completeness_check: 'The scaffold mirrors the deconstruct\'s catalog, which UNDER-DETECTS \u2014 never trust a 0 count. Re-watch the reference frame-by-frame and add anything missing: (1) ON-IMAGE GRAPHICS not in floating_elements (dollar/coin icons, emojis, checkmarks, rating stars, price tags, arrows, progress bars, app UI) \u2192 source each with `baker images icon "<desc>"` / `baker images sticker` / `baker images gif` / `baker images logo <domain>` and add it as an <img class="ov pos-* " data-start data-dur> in video-overlay-composition/index.html (NEVER bake graphics into the frame plates). (2) SOUND CUES not in sound_effects (cha-ching/coin, whoosh, ding, pop, notification, keyboard) \u2192 add a `sound_effect` node (eleven_text_to_sound) and wire it onto `audio_mix` at its timestamp. (3) RECURRING people/animals/products/logos/sets with no el_* slot \u2192 add an `ingest` [TODO] slot and reference it from the frames they appear in. (4) Burned-in captions/text not in text_overlays \u2192 add an <img>-free <div class="ov"> in index.html. (5) ONE person playing MULTIPLE personas/wardrobes (skeptic vs believer, before vs after, two outfits) collapsed into a single el_* slot \u2192 split into one el_* slot PER look, each linked as the SAME individual via `same_as` so every outfit has its own reference image but the face/identity stays identical.',
40397
+ completeness_check: 'The scaffold mirrors the deconstruct\'s catalog, which UNDER-DETECTS \u2014 never trust a 0 count. Re-watch the reference frame-by-frame and add anything missing: (1) ON-IMAGE GRAPHICS not in floating_elements (dollar/coin icons, emojis, checkmarks, rating stars, price tags, arrows, progress bars, app UI) \u2192 source each with `baker images icon "<desc>"` / `baker images sticker` / `baker images gif` / `baker images logo <domain>` and add it as an <img class="ov pos-* " data-start data-dur> in video-overlay-composition/index.html (never bake graphics into the frame plates). (2) SOUND CUES not in sound_effects (cha-ching/coin, whoosh, ding, pop, notification, keyboard) \u2192 add a `sound_effect` node (eleven_text_to_sound) and wire it onto `audio_mix` at its timestamp. (3) RECURRING people/animals/products/logos/sets with no el_* slot \u2192 add an `ingest` [TODO] slot and reference it from the frames they appear in. (4) Burned-in captions/text not in text_overlays \u2192 add an <img>-free <div class="ov"> in index.html. (5) ONE person playing MULTIPLE personas/wardrobes (skeptic vs believer, before vs after, two outfits) collapsed into a single el_* slot \u2192 split into one el_* slot PER look, each linked as the SAME individual via `same_as` so every outfit has its own reference image but the face/identity stays identical.',
40376
40398
  scenes_clamped_to_15s: report.clamped_scenes,
40377
40399
  oversize_scenes: report.oversize_scenes.length > 0 ? {
40378
40400
  scenes: report.oversize_scenes,
@@ -42063,9 +42085,9 @@ ${describeRewrites(healed.rewrites)}
42063
42085
  }) : null;
42064
42086
  const hints2 = reviewable ? review === null ? [RENDER_REVIEW_UNAVAILABLE] : review.length === 0 ? ["Reviewed the finished video frame by frame \u2014 nothing to report."] : [
42065
42087
  `Reviewed the finished video and found ${review.length} thing${review.length === 1 ? "" : "s"} to fix. Show the user what is wrong before you show them the ad.`,
42066
- ...review.map((f) => `${f.severity === "blocking" ? "MUST FIX" : "SHOULD FIX"} \u2014 ${f.what}`),
42088
+ ...review.map((f) => `${f.severity === "blocking" ? "Must fix" : "Should fix"} \u2014 ${f.what}`),
42067
42089
  ...review.some((f) => f.scene) ? [
42068
- `Anything about the MARK or the closing card is a composition fix, not a re-render: both are drawn as HTML by the caption composition, so editing it and re-running re-renders only that pass \u2014 the clips are cached and no generation is paid for again. Fix them, then re-run: edit the \`show\` of the scene files named above \u2014 a shot with a person handling equipment is where limbs and objects go wrong, so widen it, move the hands out of frame, or drop the person from that beat. Re-running re-renders ONLY the scenes you edited; everything else comes from the cache (this run: ${result.stats?.cached_nodes ?? 0} of ${result.stats?.total_nodes ?? 0} nodes were cached).`
42090
+ `Anything about the mark or the closing card is a composition fix, not a re-render: both are drawn as HTML by the caption composition, so editing it and re-running re-renders only that pass \u2014 the clips are cached and no generation is paid for again. Fix them, then re-run: edit the \`show\` of the scene files named above \u2014 a shot with a person handling equipment is where limbs and objects go wrong, so widen it, move the hands out of frame, or drop the person from that beat. Re-running re-renders only the scenes you edited; everything else comes from the cache (this run: ${result.stats?.cached_nodes ?? 0} of ${result.stats?.total_nodes ?? 0} nodes were cached).`
42069
42091
  ] : []
42070
42092
  ] : [];
42071
42093
  if (poster) {
@@ -44175,7 +44197,7 @@ registerSchema({
44175
44197
  spec: {
44176
44198
  type: "string",
44177
44199
  required: true,
44178
- description: 'Path to the ad spec JSON. Shape: { format?, market?, brand?, cast?, end_card?, voice?, music?, beats: [{ say, show, on_camera?, cast? }] }. Fill `brand` from src/brand/BRAND.md \u2014 `palette` (its hex tokens, most important first) and `logo` (the repo path to the mark) are what make the ad look like the client rather than like stock. `market` is where the ad is SET; omitted, it is inferred from the voice language, and getting it wrong is what fills a Spanish ad with British houses. `say` is ONE clause ending in its own punctuation \u2014 it becomes a caption card verbatim, so two sentences in one beat produce a card holding both. `show` is the shot brief for that line. Set `on_camera` ONLY when that beat\'s subject talks to camera. A beat\'s `sound` is one sound EFFECT for that shot \u2014 and MOST BEATS SHOULD NOT HAVE ONE. Add it only where the picture shows a specific physical event the viewer expects to hear (a drill tightening a bolt, a door closing, rain on glass, a graphic snapping in). On a talking head or a calm lifestyle shot it reads as a stock sting, and one per beat turns a quiet ad into a noisy one. A music bed plus two well-placed effects beats eight. `voiceover: false` makes it a MUSIC-LED ad: nobody speaks, the `say` lines become on-screen text captioned straight from the script, and it needs `music`. `cast` is WHO the ad is about, and an ad with people in it needs one: `{ "avatar": "marta" }` names a cast avatar (`baker avatars list`) and every beat is grounded on that avatar\'s identity sheet with its subject description copied verbatim \u2014 the same face here as in the rest of the company\'s work. Without it each beat invents its own stranger, which is how one 28-second ad came back with five different men playing one customer. `{ "description": "..." }` is the fallback when there is no avatar, and it scaffolds a canvas that asks you to drop a photo before it can run \u2014 so prefer the avatar. A beat sets `cast: false` for a shot they are not in. `end_card` is on by default whenever `brand` is set: the last beat becomes a flat brand plate with the mark and a call to action drawn over it. `{ "cta": "..." }` sets the button copy \u2014 there is no default, so with no `cta` the card carries the mark alone, and a `cta` repeating the closing line is dropped rather than printed twice. `false` keeps the footage.'
44200
+ description: 'Path to the ad spec JSON. Shape: { format?, market?, brand?, cast?, end_card?, voice?, music?, beats: [{ say, show, on_camera?, cast? }] }. Fill `brand` from src/brand/BRAND.md \u2014 `palette` (its hex tokens, most important first) and `logo` (the repo path to the mark) are what make the ad look like the client rather than like stock. `market` is where the ad is set; omitted, it is inferred from the voice language, and getting it wrong is what fills a Spanish ad with British houses. `say` is one clause ending in its own punctuation \u2014 it becomes a caption card verbatim, so two sentences in one beat produce a card holding both. `show` is the shot brief for that line. Set `on_camera` only when that beat\'s subject talks to camera. A beat\'s `sound` is one sound effect for that shot, and most beats should not have one. Add it only where the picture shows a specific physical event the viewer expects to hear (a drill tightening a bolt, a door closing, rain on glass, a graphic snapping in). On a talking head or a calm lifestyle shot it reads as a stock sting, and one per beat turns a quiet ad into a noisy one. A music bed plus two well-placed effects beats eight. `voiceover: false` makes it a MUSIC-LED ad: nobody speaks, the `say` lines become on-screen text captioned straight from the script, and it needs `music`. `cast` is WHO the ad is about, and an ad with people in it needs one: `{ "avatar": "marta" }` names a cast avatar (`baker avatars list`) and every beat is grounded on that avatar\'s identity sheet with its subject description copied verbatim \u2014 the same face here as in the rest of the company\'s work. Without it each beat invents its own stranger, which is how one 28-second ad came back with five different men playing one customer. `{ "description": "..." }` is the fallback when there is no avatar, and it scaffolds a canvas that asks you to drop a photo before it can run \u2014 so prefer the avatar. A beat sets `cast: false` for a shot they are not in. `end_card` is on by default whenever `brand` is set: the last beat becomes a flat brand plate with the mark and a call to action drawn over it. `{ "cta": "..." }` sets the button copy \u2014 there is no default, so with no `cta` the card carries the mark alone, and a `cta` repeating the closing line is dropped rather than printed twice. `false` keeps the footage.'
44179
44201
  },
44180
44202
  avatar: {
44181
44203
  type: "string",
@@ -44214,7 +44236,7 @@ function avatarVoiceBrief(avatar) {
44214
44236
  var scaffoldAdCommand = defineCommand115({
44215
44237
  meta: {
44216
44238
  name: "scaffold-ad",
44217
- description: 'Build a captioned vertical ad from a written spec, with no reference video to copy.\n\nA spec is a list of BEATS. One beat = one line the voice says + one shot on screen while it is said. That pairing is what keeps the ad honest: the caption card IS the line, so it can never end mid-sentence, and the picture can never drift from the read.\n\nTwo rules the spec enforces for you, both learned the expensive way:\n \u2022 `say` is ONE clause with its own punctuation. Two sentences in a beat is rejected.\n \u2022 Nobody in shot is speaking unless you set `on_camera` on that beat. A person visibly talking under a voice that is not theirs reads as bad dubbing.\n\nExample spec:\n { "beats": [\n { "say": "Mientras t\xFA sigues pagando la luz a precio de oro,", "show": "Aerial over Spanish rooftops at golden hour." },\n { "say": "Haz clic en el enlace y reserva tu estudio gratuito.", "show": "A couple walking home at sunset." } ] }\n\nWho is in it:\n `cast: { avatar: "marta" }` grounds every beat on that avatar\'s face \u2014 cast one with `baker avatars`.\n Without a cast, each beat invents its own person and the ad reads as a stock-footage collage.\n\nHow it ends: with a `brand`, the last beat closes on a flat brand plate carrying the mark and the CTA.\n\nThen: baker canvas run <the canvas it writes>'
44239
+ description: 'Build a captioned vertical ad from a written spec, with no reference video to copy.\n\nA spec is a list of BEATS. One beat = one line the voice says + one shot on screen while it is said. That pairing is what keeps the ad honest: the caption card IS the line, so it can never end mid-sentence, and the picture can never drift from the read.\n\nTwo rules the spec enforces for you, both learned the expensive way:\n \u2022 `say` is one clause with its own punctuation. Two sentences in a beat is rejected.\n \u2022 Nobody in shot is speaking unless you set `on_camera` on that beat. A person visibly talking under a voice that is not theirs reads as bad dubbing.\n\nExample spec:\n { "beats": [\n { "say": "Mientras t\xFA sigues pagando la luz a precio de oro,", "show": "Aerial over Spanish rooftops at golden hour." },\n { "say": "Haz clic en el enlace y reserva tu estudio gratuito.", "show": "A couple walking home at sunset." } ] }\n\nWho is in it:\n `cast: { avatar: "marta" }` grounds every beat on that avatar\'s face \u2014 cast one with `baker avatars`.\n Without a cast, each beat invents its own person and the ad reads as a stock-footage collage.\n\nHow it ends: with a `brand`, the last beat closes on a flat brand plate carrying the mark and the CTA.\n\nThen: baker canvas run <the canvas it writes>'
44218
44240
  },
44219
44241
  args: {
44220
44242
  spec: { type: "string", required: true, description: "Path to the ad spec JSON" },
@@ -44400,7 +44422,7 @@ var scaffoldAdCommand = defineCommand115({
44400
44422
  message: resolvedLogo ? `The brand mark at \`${resolvedLogo}\` does not exist, so this ad has no logo to put on screen.` : `This company has no brand mark in \`${BRAND_DIR}/logos/\`, so an ad cannot carry its logo.`,
44401
44423
  // What the lookup against their own domain actually found, so the agent does not
44402
44424
  // go looking for the mark somewhere else — which is the loop this replaced.
44403
- fix: `${fetched?.reason ?? ""} Do NOT draw one and do NOT take one from an icon library: the mark is drawn on every frame and on the closing card, so a stand-in ships an ad wearing the wrong brand.`
44425
+ fix: `${fetched?.reason ?? ""} Don't draw one or take one from an icon library: the mark is drawn on every frame and on the closing card, so a stand-in ships an ad wearing the wrong brand.`
44404
44426
  }
44405
44427
  });
44406
44428
  process.exit(1);
@@ -44581,7 +44603,7 @@ var scaffoldAdCommand = defineCommand115({
44581
44603
  // getting it wrong is expensive: the pictures cost a fraction of the clips, and
44582
44604
  // every defect anyone has caught in a finished ad was visible in them. The run
44583
44605
  // stops, the frames are shown, and continuing pays for none of them twice.
44584
- handle || staged ? `Wrote ${spec.data.beats.length} beats to ${outPath}. Run it with \`baker canvas run ${outPath} --until frames --brief "<what they asked for, their words>"\`, SHOW the frames it returns and ask whether to carry on \u2014 then continue with the \`--run-id\` it gives you. This ad carries ${handle ? "a person's face" : "the client's mark"}, and a wrong look costs a whole ad to discover after the clips.` : `Wrote ${spec.data.beats.length} beats to ${outPath}. Run it with \`baker canvas run ${outPath} --brief "<what they asked for, their words>"\`.`,
44606
+ handle || staged ? `Wrote ${spec.data.beats.length} beats to ${outPath}. Run it with \`baker canvas run ${outPath} --until frames --brief "<what they asked for, their words>"\`, show the frames it returns and ask whether to carry on \u2014 then continue with the \`--run-id\` it gives you. This ad carries ${handle ? "a person's face" : "the client's mark"}, and a wrong look costs a whole ad to discover after the clips.` : `Wrote ${spec.data.beats.length} beats to ${outPath}. Run it with \`baker canvas run ${outPath} --brief "<what they asked for, their words>"\`.`,
44585
44607
  ...autoCast ? [
44586
44608
  `Cast \`${autoCast}\` \u2014 the spec described this person in words, and they are one of this company's avatars. Every shot now grounds on their identity sheet and carries their accent and delivery. Write \`"cast": { "avatar": "` + autoCast + '" }` yourself next time; a written description is for someone the company does not have.'
44587
44609
  ] : [],
@@ -44623,7 +44645,7 @@ var scaffoldAdCommand = defineCommand115({
44623
44645
  // ad with no palette and no mark anywhere in 28 seconds.
44624
44646
  `This spec has no ${!spec.data.brand?.palette?.length ? "`brand.palette`" : ""}${!spec.data.brand?.palette?.length && !spec.data.brand?.logo ? " and no " : ""}${!spec.data.brand?.logo ? "`brand.logo`" : ""}. Read src/brand/BRAND.md and re-run with them \u2014 a name alone leaves the ad in someone else's clothes.`
44625
44647
  ],
44626
- "`brand.palette` colours the closing plate the card sits on; `brand.logo` is the repo path to the mark, and it is DRAWN by the composition \u2014 top-left throughout and large on the closing card \u2014 never generated as a picture, so it cannot come back garbled. Give it whenever the client has one."
44648
+ "`brand.palette` colours the closing plate the card sits on; `brand.logo` is the repo path to the mark, and it is drawn by the composition \u2014 top-left throughout and large on the closing card \u2014 never generated as a picture, so it cannot come back garbled. Give it whenever the client has one."
44627
44649
  ]
44628
44650
  });
44629
44651
  }
@@ -44631,7 +44653,7 @@ var scaffoldAdCommand = defineCommand115({
44631
44653
  function shortBeatHint(short, total) {
44632
44654
  if (short.length === 0) return [];
44633
44655
  return [
44634
- `Beat${short.length === 1 ? "" : "s"} ${short.join(", ")} of ${total} ${short.length === 1 ? "is" : "are"} a fragment rather than a line \u2014 a few words with a whole shot to themselves. Every beat's picture holds for at least ${SPOKEN_CLIP_DURATION_S}s, so a two-word beat buys six seconds of somebody standing still, and a run of those plays as a slideshow rather than an ad. Do NOT pad them. Merge them into the beat before or after, so each one carries a whole thought. Edit the spec and re-run this command.`
44656
+ `Beat${short.length === 1 ? "" : "s"} ${short.join(", ")} of ${total} ${short.length === 1 ? "is" : "are"} a fragment rather than a line \u2014 a few words with a whole shot to themselves. Every beat's picture holds for at least ${SPOKEN_CLIP_DURATION_S}s, so a two-word beat buys six seconds of somebody standing still, and a run of those plays as a slideshow rather than an ad. Don't pad them. Merge them into the beat before or after, so each one carries a whole thought. Edit the spec and re-run this command.`
44635
44657
  ];
44636
44658
  }
44637
44659
  async function fetchClientLogo() {
@@ -45651,7 +45673,7 @@ function capabilityHints(surfaces, tools = []) {
45651
45673
  const immediate = surfaces.filter((surface) => surface.writeMode === "applies-at-publish");
45652
45674
  if (immediate.length > 0) {
45653
45675
  hints2.push(
45654
- `REAL AND IMMEDIATE: ${immediate.map((s) => s.label).join(", ")} \u2014 no simulated mode. Completing this chat changes the user's live setup, so agree the changes before you finish, not after.`
45676
+ `REAL AND IMMEDIATE: ${immediate.map((s) => s.label).join(", ")}. Completing this chat changes the user's live setup, so agree the changes before you finish, not after.`
45655
45677
  );
45656
45678
  }
45657
45679
  const blocked = surfaces.filter((surface) => surface.blockers.length > 0);
@@ -50773,12 +50795,12 @@ function handleError5(err) {
50773
50795
  ...readOnly ? {
50774
50796
  fix: {
50775
50797
  action: "reconnect",
50776
- explanation: "The Google Analytics connection is read-only. Ask the user to reconnect Google Analytics \u2014 in the dashboard, Brain \u2192 Integrations \u2192 Tools \u2192 Google Analytics \u2014 which grants the permission to change the property. Reporting (`baker ga4 query`, `baker ga4 audit`) keeps working meanwhile, so carry on with the rest of the job and tell them what you will set up once they have reconnected. Do NOT claim anything was configured."
50798
+ explanation: "The Google Analytics connection is read-only. Ask the user to reconnect Google Analytics \u2014 in the dashboard, Brain \u2192 Integrations \u2192 Tools \u2192 Google Analytics \u2014 which grants the permission to change the property. Reporting (`baker ga4 query`, `baker ga4 audit`) keeps working meanwhile, so carry on with the rest of the job and tell them what you will set up once they have reconnected. Don't claim anything was configured."
50777
50799
  }
50778
50800
  } : err.code === "UNAUTHORIZED" || err.code === "FORBIDDEN" && isNotConnectedError(err.code, err.message) ? {
50779
50801
  fix: {
50780
50802
  action: "request_connection",
50781
- explanation: 'Google Analytics is not connected for this company yet, or no property has been picked. Do NOT send the user to Settings \u2014 call the `request_connection` tool with { platform: "google-analytics", reason } and they connect and pick their property from inside the chat. If `request_connection` is not available to you, say so plainly and point them at dashboard \u2192 Brain \u2192 Integrations \u2192 Tools \u2192 Google Analytics. Carry on with the rest of the task meanwhile.'
50803
+ explanation: 'Google Analytics is not connected for this company yet, or no property has been picked. Don\'t send the user to Settings \u2014 call the `request_connection` tool with { platform: "google-analytics", reason } and they connect and pick their property from inside the chat. If the `request_connection` call fails, say so plainly and give the exact route: dashboard \u2192 Brain \u2192 Integrations \u2192 Tools \u2192 Google Analytics. Then carry on with the rest of the task.'
50782
50804
  }
50783
50805
  } : {},
50784
50806
  retryable: RETRYABLE_CODES.has(err.code)
@@ -51651,7 +51673,7 @@ Examples:
51651
51673
  });
51652
51674
  registerSchema({
51653
51675
  command: "ga4.audience",
51654
- description: "Create an audience (a saved group of users, e.g. everyone who started a demo but never finished), rename one, or archive one. Read `baker ga4 config` first to see the audiences that already exist. IMPORTANT: everything that defines who is in an audience \u2014 the conditions, the membership window \u2014 is frozen the moment it is created and cannot be edited afterwards, so get it right in one go. An audience only reaches Google Ads for retargeting if the property is linked to a Google Ads account.",
51676
+ description: "Create an audience (a saved group of users, e.g. everyone who started a demo but never finished), rename one, or archive one. Read `baker ga4 config` first to see the audiences that already exist. Everything that defines who is in an audience \u2014 the conditions, the membership window \u2014 is frozen the moment it is created and cannot be edited afterwards, so get it right in one go. An audience only reaches Google Ads for retargeting if the property is linked to a Google Ads account.",
51655
51677
  args: {
51656
51678
  json: { type: "string", description: createJsonDescription("audience"), required: false },
51657
51679
  file: { type: "string", description: "Path to a JSON file with the definition", required: false },
@@ -58452,7 +58474,7 @@ var addCommand = defineCommand172({
58452
58474
  "This page was already in the library, so nothing was re-studied \u2014 its sections are searchable now.",
58453
58475
  `Search it with: baker landing inspiration search --domain ${new URL(data.canonicalUrl).hostname}`
58454
58476
  ] : [
58455
- "Studying this page takes a few minutes. Do NOT wait on it \u2014 carry on, and search for it later in the turn or in a later one.",
58477
+ "Studying this page takes a few minutes. Don't wait on it \u2014 carry on, and search for it later in the turn or in a later one.",
58456
58478
  "Meanwhile, search what is already in the library: baker landing inspiration search '<what you want to see>' --scope all",
58457
58479
  "This is saved and being studied now, so it is listed as already applied \u2014 tell the user it is kept whatever they do with this chat.",
58458
58480
  // The save is not a promise that the study succeeded. An agent that
@@ -61798,7 +61820,7 @@ var variantCommand = defineCommand181({
61798
61820
  change: String(args5.change)
61799
61821
  });
61800
61822
  const hints2 = [
61801
- forks.length === 0 ? `MISSING --fork: ${variantSlug2} currently renders exactly ${controlSlug}, so a test between them cannot conclude anything. Re-run with --fork <Component>, or copy the one section your change touches into src/pages/${variantSlug2}/_components/ and repoint that import.` : `Edit ONLY src/pages/${variantSlug2}/_components/${forks.join(", ")} \u2014 every other section is shared with ${controlSlug}, and editing a shared one changes both arms at once.`,
61823
+ forks.length === 0 ? `MISSING --fork: ${variantSlug2} currently renders exactly ${controlSlug}, so a test between them cannot conclude anything. Re-run with --fork <Component>, or copy the one section your change touches into src/pages/${variantSlug2}/_components/ and repoint that import.` : `Edit only src/pages/${variantSlug2}/_components/${forks.join(", ")} \u2014 every other section is shared with ${controlSlug}, and editing a shared one changes both arms at once.`,
61802
61824
  `Preview both at http://localhost:4321/${controlSlug}/ and http://localhost:4321/${variantSlug2}/ and check they differ only where you meant. Once it is live, only the first of those two answers \u2014 a variant has no public address of its own, and \`/${controlSlug}/?_bkr_preview=b\` is how anyone looks at it.`,
61803
61825
  `Then: baker experiment start --landing ${controlSlug} --variant ${variantSlug2} --because "${String(args5.because)}" --change "${String(args5.change)}". Nothing is split until the session is published \u2014 the person publishing is the review of this page.`
61804
61826
  ];
@@ -62115,7 +62137,7 @@ import { defineCommand as defineCommand196 } from "citty";
62115
62137
  import { defineCommand as defineCommand184 } from "citty";
62116
62138
 
62117
62139
  // src/commands/research/hints.ts
62118
- var AD_COPY_ROUTE = 'This returns competing DOMAINS and their SERP economics \u2014 no ad copy, no headlines, no creative. For the actual copy of a competitor\'s ads: `baker winning-ads advertisers "<brand>"` \u2192 `baker winning-ads search "<brief>" --advertiser-id <id>` \u2192 `baker winning-ads content <adId>` (`primary_text` / `headline` / `cta`, plus the spoken transcript and on-screen text for video). That corpus is Meta and LinkedIn only \u2014 Google SERP ad copy is not available through any Baker command, so do not keep querying for it here.';
62140
+ var AD_COPY_ROUTE = 'This returns competing domains and their SERP economics \u2014 no ad copy, no headlines, no creative. For the actual copy of a competitor\'s ads: `baker winning-ads advertisers "<brand>"` \u2192 `baker winning-ads search "<brief>" --advertiser-id <id>` \u2192 `baker winning-ads content <adId>` (`primary_text` / `headline` / `cta`, plus the spoken transcript and on-screen text for video). That corpus is Meta and LinkedIn only \u2014 Google SERP ad copy is not available through any Baker command, so do not keep querying for it here.';
62119
62141
  function noSerpRowsHints(rowCount2, queryContext) {
62120
62142
  if (rowCount2 > 0) {
62121
62143
  return [];
@@ -62286,7 +62308,7 @@ function handleResearchError(err, fixFor) {
62286
62308
  // src/commands/research/advertisers.ts
62287
62309
  registerSchema({
62288
62310
  command: "research.advertisers",
62289
- description: 'Returns a ranked list of DOMAINS competing for one keyword in Google, with avg SERP position, relevance rating, estimated traffic value and visibility \u2014 domain economics, NOT ad copy. Despite the name it returns no headlines, descriptions or creative of any kind; for a competitor\'s actual ad copy use `baker winning-ads content <adId>` (Meta/LinkedIn only \u2014 Google SERP ad copy is not available anywhere in Baker). Start here: `baker research advertisers "<keyword>" --location <cc> --language <code>` to size up who owns a term. IMPORTANT: If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.',
62311
+ description: 'Returns a ranked list of domains competing for one keyword in Google, with avg SERP position, relevance rating, estimated traffic value and visibility \u2014 domain economics, not ad copy. Despite the name it returns no headlines, descriptions or creative of any kind; for a competitor\'s actual ad copy use `baker winning-ads content <adId>` (Meta/LinkedIn only \u2014 Google SERP ad copy is not available anywhere in Baker). Start here: `baker research advertisers "<keyword>" --location <cc> --language <code>` to size up who owns a term. If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.',
62290
62312
  args: {
62291
62313
  keyword: {
62292
62314
  type: "string",
@@ -62295,12 +62317,12 @@ registerSchema({
62295
62317
  },
62296
62318
  location: {
62297
62319
  type: "string",
62298
- description: "Country code (us, uk, es, de...) or DataForSEO location code. DEFAULTS TO us (United States) if omitted \u2014 always set this for non-US markets",
62320
+ description: "Country code (us, uk, es, de...) or DataForSEO location code. Defaults to us (United States) if omitted \u2014 always set this for non-US markets",
62299
62321
  required: false
62300
62322
  },
62301
62323
  language: {
62302
62324
  type: "string",
62303
- description: "Language code or name (en, es, spanish...). DEFAULTS TO en (English) if omitted \u2014 always set this for non-English markets",
62325
+ description: "Language code or name (en, es, spanish...). Defaults to en (English) if omitted \u2014 always set this for non-English markets",
62304
62326
  required: false
62305
62327
  },
62306
62328
  limit: { type: "string", description: "Max results (default: 20, max: 100)", required: false },
@@ -62373,17 +62395,17 @@ Examples:
62373
62395
  import { defineCommand as defineCommand185 } from "citty";
62374
62396
  registerSchema({
62375
62397
  command: "research.autocomplete",
62376
- description: "Get Google Autocomplete suggestions for a seed keyword. Useful for keyword expansion and discovering what people actually search for. IMPORTANT: If --location and --language are omitted, defaults to United States (us) and English (en).",
62398
+ description: "Get Google Autocomplete suggestions for a seed keyword. Useful for keyword expansion and discovering what people actually search for. If --location and --language are omitted, defaults to United States (us) and English (en).",
62377
62399
  args: {
62378
62400
  keyword: { type: "string", description: "Seed keyword (positional)", required: true },
62379
62401
  location: {
62380
62402
  type: "string",
62381
- description: "Country code (us, uk, es, de...) or DataForSEO location code. DEFAULTS TO us (United States) if omitted",
62403
+ description: "Country code (us, uk, es, de...) or DataForSEO location code. Defaults to us (United States) if omitted",
62382
62404
  required: false
62383
62405
  },
62384
62406
  language: {
62385
62407
  type: "string",
62386
- description: "Language code or name. DEFAULTS TO en (English) if omitted",
62408
+ description: "Language code or name. Defaults to en (English) if omitted",
62387
62409
  required: false
62388
62410
  },
62389
62411
  limit: { type: "string", description: "Max suggestions (default: 10, max: 20)", required: false },
@@ -62669,7 +62691,7 @@ Examples:
62669
62691
  import { defineCommand as defineCommand188 } from "citty";
62670
62692
  registerSchema({
62671
62693
  command: "research.intent",
62672
- description: "Classify Google Search intent for keywords. Determines if someone searching is looking to buy, research, or navigate. IMPORTANT: If --language is omitted, defaults to English (en). The response includes a query_context object showing which language was used.",
62694
+ description: "Classify Google Search intent for keywords. Determines if someone searching is looking to buy, research, or navigate. If --language is omitted, defaults to English (en). The response includes a query_context object showing which language was used.",
62673
62695
  args: {
62674
62696
  keywords: {
62675
62697
  type: "string",
@@ -62678,7 +62700,7 @@ registerSchema({
62678
62700
  },
62679
62701
  language: {
62680
62702
  type: "string",
62681
- description: "Language code or name. DEFAULTS TO en (English) if omitted \u2014 always set this for non-English keywords",
62703
+ description: "Language code or name. Defaults to en (English) if omitted \u2014 always set this for non-English keywords",
62682
62704
  required: false
62683
62705
  },
62684
62706
  "no-cache": { type: "boolean", description: "Skip server cache, hit API directly", required: false }
@@ -62740,18 +62762,18 @@ Examples:
62740
62762
  import { defineCommand as defineCommand189 } from "citty";
62741
62763
  registerSchema({
62742
62764
  command: "research.keyword-gap",
62743
- description: "Find keywords a competitor ranks for (organic or paid) that you don't. Discovers expansion opportunities. IMPORTANT: If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.",
62765
+ description: "Find keywords a competitor ranks for (organic or paid) that you don't. Discovers expansion opportunities. If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.",
62744
62766
  args: {
62745
62767
  competitor: { type: "string", description: "Competitor domain (positional 1)", required: true },
62746
62768
  ours: { type: "string", description: "Your domain (positional 2)", required: true },
62747
62769
  location: {
62748
62770
  type: "string",
62749
- description: "Country code (us, uk, es, de...) or DataForSEO location code. DEFAULTS TO us (United States) if omitted \u2014 always set this for non-US markets",
62771
+ description: "Country code (us, uk, es, de...) or DataForSEO location code. Defaults to us (United States); set it for any non-US market.",
62750
62772
  required: false
62751
62773
  },
62752
62774
  language: {
62753
62775
  type: "string",
62754
- description: "Language code or name. DEFAULTS TO en (English) if omitted \u2014 always set this for non-English markets",
62776
+ description: "Language code or name. Defaults to en (English) if omitted \u2014 always set this for non-English markets",
62755
62777
  required: false
62756
62778
  },
62757
62779
  type: { type: "string", description: "Filter: paid, organic, all (default: all)", required: false },
@@ -62891,7 +62913,7 @@ function keywordMetricsFields(options) {
62891
62913
  // src/commands/research/keyword-metrics.ts
62892
62914
  registerSchema({
62893
62915
  command: "research.keyword-metrics",
62894
- description: "Search volume, CPC, top-of-page bids and competition for a list of keywords YOU name \u2014 no domain needed. This is the command for sizing a market you have keywords for; the domain-bound ones (keywords-for-site, keyword-gap) answer a different question and should not be used as a workaround for this one. The volume is Google's Keyword Planner figure resold by DataForSEO, so it is NOT a second opinion on `baker ads google keywords metrics` \u2014 for that, pass --clickstream. IMPORTANT: If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.",
62916
+ description: "Search volume, CPC, top-of-page bids and competition for a list of keywords you name \u2014 no domain needed. This is the command for sizing a market you have keywords for; the domain-bound ones (keywords-for-site, keyword-gap) answer a different question and should not be used as a workaround for this one. The volume is Google's Keyword Planner figure resold by DataForSEO, so it is not a second opinion on `baker ads google keywords metrics` \u2014 for that, pass --clickstream. If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.",
62895
62917
  args: {
62896
62918
  keywords: {
62897
62919
  type: "string",
@@ -62900,12 +62922,12 @@ registerSchema({
62900
62922
  },
62901
62923
  location: {
62902
62924
  type: "string",
62903
- description: "Country code (us, mx, br, es...) or DataForSEO location code. DEFAULTS TO us (United States) if omitted \u2014 always set this for non-US markets",
62925
+ description: "Country code (us, mx, br, es...) or DataForSEO location code. Defaults to us (United States) if omitted \u2014 always set this for non-US markets",
62904
62926
  required: false
62905
62927
  },
62906
62928
  language: {
62907
62929
  type: "string",
62908
- description: "Language code or name. DEFAULTS TO en (English) if omitted \u2014 always set this for non-English markets",
62930
+ description: "Language code or name. Defaults to en (English) if omitted \u2014 always set this for non-English markets",
62909
62931
  required: false
62910
62932
  },
62911
62933
  clickstream: {
@@ -63006,17 +63028,17 @@ Examples:
63006
63028
  import { defineCommand as defineCommand191 } from "citty";
63007
63029
  registerSchema({
63008
63030
  command: "research.keywords-for-site",
63009
- description: "Get keywords a competitor targets in Google. Use --type paid to see only paid keywords, --type organic for organic only. IMPORTANT: If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.",
63031
+ description: "Get keywords a competitor targets in Google. Use --type paid to see only paid keywords, --type organic for organic only. If --location and --language are omitted, defaults to United States (us) and English (en). The response includes a query_context object showing which location/language were used.",
63010
63032
  args: {
63011
63033
  target: { type: "string", description: "Domain or URL to analyze (positional)", required: true },
63012
63034
  location: {
63013
63035
  type: "string",
63014
- description: "Country code (us, uk, es, de...) or DataForSEO location code. DEFAULTS TO us (United States) if omitted \u2014 always set this for non-US markets",
63036
+ description: "Country code (us, uk, es, de...) or DataForSEO location code. Defaults to us (United States) if omitted \u2014 always set this for non-US markets",
63015
63037
  required: false
63016
63038
  },
63017
63039
  language: {
63018
63040
  type: "string",
63019
- description: "Language code or name. DEFAULTS TO en (English) if omitted \u2014 always set this for non-English markets",
63041
+ description: "Language code or name. Defaults to en (English) if omitted \u2014 always set this for non-English markets",
63020
63042
  required: false
63021
63043
  },
63022
63044
  sort: {
@@ -63199,17 +63221,17 @@ Examples:
63199
63221
  import { defineCommand as defineCommand194 } from "citty";
63200
63222
  registerSchema({
63201
63223
  command: "research.relevant-pages",
63202
- description: "Get the top pages of a competitor domain with organic traffic and ranking data. Shows which pages drive the most traffic. IMPORTANT: If --location and --language are omitted, defaults to United States (us) and English (en).",
63224
+ description: "Get the top pages of a competitor domain with organic traffic and ranking data. Shows which pages drive the most traffic. If --location and --language are omitted, defaults to United States (us) and English (en).",
63203
63225
  args: {
63204
63226
  target: { type: "string", description: "Domain to analyze (positional, e.g. competitor.com)", required: true },
63205
63227
  location: {
63206
63228
  type: "string",
63207
- description: "Country code (us, uk, es, de...) or DataForSEO location code. DEFAULTS TO us (United States) if omitted",
63229
+ description: "Country code (us, uk, es, de...) or DataForSEO location code. Defaults to us (United States) if omitted",
63208
63230
  required: false
63209
63231
  },
63210
63232
  language: {
63211
63233
  type: "string",
63212
- description: "Language code or name. DEFAULTS TO en (English) if omitted",
63234
+ description: "Language code or name. Defaults to en (English) if omitted",
63213
63235
  required: false
63214
63236
  },
63215
63237
  limit: { type: "string", description: "Max results (default: 20, max: 1000)", required: false },
@@ -65847,7 +65869,7 @@ function handleError8(err) {
65847
65869
  ...err.code === "UNAUTHORIZED" || err.code === "FORBIDDEN" && isNotConnectedError(err.code, err.message) ? {
65848
65870
  fix: {
65849
65871
  action: "request_connection",
65850
- explanation: 'Tag Manager is not connected for this company yet, or no container has been picked. Do NOT send the user to Settings \u2014 call the `request_connection` tool with { platform: "google-tag-manager", reason } and they connect and pick their containers (they can pick more than one) from inside the chat. `request_tag_input` is NOT the route: that form manages the container snippet on the site, not what runs inside the container, and it cannot pick a container. If `request_connection` is not available to you, say so plainly and point them at dashboard \u2192 Brain \u2192 Integrations \u2192 Tools \u2192 Google Tag Manager, where they also pick the container. Carry on with the rest of the task meanwhile.'
65872
+ explanation: 'Tag Manager is not connected for this company yet, or no container has been picked. Don\'t send the user to Settings \u2014 call the `request_connection` tool with { platform: "google-tag-manager", reason } and they connect and pick their containers (they can pick more than one) from inside the chat. `request_tag_input` is not the route: that form manages the container snippet on the site, not what runs inside the container, and it cannot pick a container. If the `request_connection` call fails, say so plainly and give the exact route: dashboard \u2192 Brain \u2192 Integrations \u2192 Tools \u2192 Google Tag Manager, where they also pick the container. Then carry on with the rest of the task.'
65851
65873
  }
65852
65874
  } : {},
65853
65875
  retryable: RETRYABLE_CODES2.has(err.code)
@@ -66361,7 +66383,7 @@ ${configLines.join("\n")}` : header;
66361
66383
  function tagsListHints() {
66362
66384
  return [
66363
66385
  "To create, edit or delete a tag, call the `request_tag_input` approval form (tool `mcp__baker_ui__request_tag_input`, server `baker_ui`) \u2014 it is attached to every turn of this chat and collects any secret values itself.",
66364
- "Do NOT conclude the form is unavailable from your tool list: call it, and report what it returns. And never file a tag change as a Task \u2014 a Task hands the user work this chat can stage in one call."
66386
+ "Don't conclude the form is unavailable from your tool list: call it, and report what it returns. And never file a tag change as a Task \u2014 a Task hands the user work this chat can stage in one call."
66365
66387
  ];
66366
66388
  }
66367
66389
 
@@ -66433,7 +66455,7 @@ var tagsCommand4 = defineCommand222({
66433
66455
  name: "tags",
66434
66456
  description: `Read the client's marketing/analytics tags (Meta pixel, GA4, Google Ads, GTM, Clarity, Hotjar, \u2026) \u2014 production tags plus the changes staged in this chat.
66435
66457
 
66436
- This command is READ-ONLY. Every tag change \u2014 create, edit, or delete \u2014 goes through the request_tag_input tool (baker_ui MCP server): propose one or more changes (each becomes a tab in one approval form), pre-fill the non-secret fields you know, and the user reviews, fills secrets, and approves or skips each. Secret values (accessToken, apiSecret, authorizationToken, apiKey, conversionToken, OAuth connections) never pass through the CLI or the chat.
66458
+ This command is read-only. Every tag change \u2014 create, edit, or delete \u2014 goes through the request_tag_input tool (baker_ui MCP server): propose one or more changes (each becomes a tab in one approval form), pre-fill the non-secret fields you know, and the user reviews, fills secrets, and approves or skips each. Secret values (accessToken, apiSecret, authorizationToken, apiKey, conversionToken, OAuth connections) never pass through the CLI or the chat.
66437
66459
 
66438
66460
  Refs: \`baker tags list\` prints each tag's ref \u2014 a real tag id, or tag_temp_* for creates staged in this chat. Use these refs as flow side-effect tagIds; they keep resolving after publish.
66439
66461