@koda-sl/baker-cli 0.515.0 → 0.516.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,11 +38,11 @@ Full guides: __tooling__/docs/tools/baker/ads-<platform>.md (google|meta|linkedi
38
38
  linkedin: () => import("./linkedin-CDFCOHKI.js").then((m) => m.linkedinCommand),
39
39
  x: () => import("./x-JNR5SO6F.js").then((m) => m.xCommand),
40
40
  chatgpt: () => import("./chatgpt-27NEJVGF.js").then((m) => m.chatgptCommand),
41
- performance: () => import("./performance-T6TBVHVU.js").then((m) => m.performanceCommand),
41
+ performance: () => import("./performance-KSSD473N.js").then((m) => m.performanceCommand),
42
42
  terms: () => import("./terms-D2KAFHKJ.js").then((m) => m.termsCommand)
43
43
  }
44
44
  });
45
45
  export {
46
46
  adsCommand
47
47
  };
48
- //# sourceMappingURL=ads-OV3SMLKA.js.map
48
+ //# sourceMappingURL=ads-WCLT2RRR.js.map
package/dist/cli.js CHANGED
@@ -117,7 +117,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
117
117
  capabilities: () => import("./capabilities-ZITW4RF7.js").then((m) => m.capabilitiesCommand),
118
118
  actions: () => import("./actions-D7OWCP36.js").then((m) => m.actionsCommand),
119
119
  "scheduled-agents": () => import("./scheduled-agents-OXYAVSIE.js").then((m) => m.scheduledAgentsCommand),
120
- ads: () => import("./ads-OV3SMLKA.js").then((m) => m.adsCommand),
120
+ ads: () => import("./ads-WCLT2RRR.js").then((m) => m.adsCommand),
121
121
  brand: () => import("./brand-IZTTBZII.js").then((m) => m.brandCommand),
122
122
  analytics: () => import("./analytics-W7EUOI2Q.js").then((m) => m.analyticsCommand),
123
123
  experiment: () => import("./experiment-3VRHCQN5.js").then((m) => m.experimentCommand),
@@ -1506,6 +1506,20 @@ function liveRead(platform, from, to, why) {
1506
1506
  const command = LIVE_READ[platform]?.(from, to);
1507
1507
  return command ? `: read live with \`${command}\` (live reads spend the platform's rate limit \u2014 ${why})` : "";
1508
1508
  }
1509
+ var CONNECTION_PLATFORM = {
1510
+ google: "google-ads",
1511
+ meta: "meta",
1512
+ linkedin: "linkedin",
1513
+ x: "x-ads",
1514
+ chatgpt: "chatgpt-ads"
1515
+ };
1516
+ function reconnectSentences(platform) {
1517
+ const id = CONNECTION_PLATFORM[platform.platform];
1518
+ if (!platform.needsReconnect || id === void 0) return [];
1519
+ return [
1520
+ `Only a person reconnecting ${platformLabel(platform.platform)} fixes this: call request_connection { platform: "${id}" } so they get a Reconnect card in the chat (a scheduled run leaves it there for them) \u2014 this replaces any "Brain \u2192 Integrations" in the error above; never only write that they should reconnect.`
1521
+ ];
1522
+ }
1509
1523
  function headline(platform, accounts, now) {
1510
1524
  const updatedAt = platform.lastSuccessAt;
1511
1525
  const from = earliest(accounts.map((account) => account.historyFrom));
@@ -1567,7 +1581,8 @@ function syncCoverageHints(status, now, platforms) {
1567
1581
  headline(platform, accounts, now),
1568
1582
  ...loadingSentences(platform, accounts),
1569
1583
  ...emptySentences(accounts),
1570
- ...behindSentences(platform, accounts, now)
1584
+ ...behindSentences(platform, accounts, now),
1585
+ ...reconnectSentences(platform)
1571
1586
  ].join(" ");
1572
1587
  });
1573
1588
  }
@@ -5149,7 +5164,7 @@ function setupHints(data) {
5149
5164
  const hints = ["Tell the person the headline as it is, then the fixes in the order of toFix."];
5150
5165
  if (data.toFix.some((entry) => entry.fix.startsWith("Reconnect")))
5151
5166
  hints.push(
5152
- "A reconnection is a person's to do in Brain \u2192 Integrations: you cannot do it. Say which platform and what stops until they do."
5167
+ "A reconnection is a person's to do: call request_connection { platform } so they get a Reconnect card in the chat (a scheduled run leaves it there for them), and say which platform and what stops until they do."
5153
5168
  );
5154
5169
  if (data.toFix.some((entry) => entry.fix.includes("Goals")))
5155
5170
  hints.push(
@@ -5538,4 +5553,4 @@ Full guide: __tooling__/docs/tools/baker/ads-performance.md`
5538
5553
  export {
5539
5554
  performanceCommand
5540
5555
  };
5541
- //# sourceMappingURL=performance-T6TBVHVU.js.map
5556
+ //# sourceMappingURL=performance-KSSD473N.js.map