@koda-sl/baker-cli 0.141.0-dev.253d2418a → 0.141.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.
package/dist/cli.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  toModelSafeImage,
35
35
  ulid,
36
36
  validateCanvasDeep
37
- } from "./chunk-TXNOPO6P.js";
37
+ } from "./chunk-TAGQCU36.js";
38
38
  import {
39
39
  csvOrJson,
40
40
  daysAgoIso,
@@ -507,7 +507,7 @@ function readSkillCatalog(startDir) {
507
507
  // src/commands/actions/claim.ts
508
508
  registerSchema({
509
509
  command: "actions.claim",
510
- description: "Claim an action for the current chat (live \u2014 visible to other chats immediately). Claim only what you're actively working on now: it's required before `complete`, but NOT for `update` or `discard` (those stage without a claim). Returns action details plus a fast-model recommendation of which skills to load for the work (`recommendedSkills`).",
510
+ description: "Claim an action for the current chat (live \u2014 visible to other chats immediately). Claim only what you're actively working on now: it's required before `complete`, but NOT for `update` or `discard` (those stage without a claim). Returns action details plus a fast-model recommendation of which skills to load for the work (`recommendedSkills`) and a routing hint: load every skill that owns part of the work and the tool doc for each baker CLI family you'll use.",
511
511
  args: {
512
512
  id: { type: "string", description: "Action ID", required: true }
513
513
  }
@@ -521,16 +521,16 @@ async function recommendSkills(actionId) {
521
521
  });
522
522
  return response.data.recommendations;
523
523
  }
524
+ var ROUTING_HINT = "Actions often span several surfaces (a landing page plus a Google Ads change, a sheet pull plus an audience upload). Before starting, load EVERY skill that owns part of the work and read the tool doc (__tooling__/docs/tools/baker/<family>.md) for each baker CLI family you'll use. If the action references source material living in a connected tool (an email attachment, a call, a CRM record, a spreadsheet), reach for that tool too. If it describes recurring or future-dated work, it belongs on a schedule \u2014 see __tooling__/docs/tools/baker/scheduled-actions.md.";
524
525
  function buildHints(recommendations) {
525
526
  if (recommendations.length === 0) {
526
- return [
527
- "Review the action name, description, and tags above \u2014 then load any skills that would help you complete this work."
528
- ];
527
+ return ["Review the action name, description, and tags above.", ROUTING_HINT];
529
528
  }
530
529
  return [
531
530
  "Recommended skills for this action (load the ones you'll use):",
532
531
  ...recommendations.map((r) => ` /${r.name} \u2014 ${r.reason}`),
533
- "Suggestions from the action's name/description/tags \u2014 load others if the work needs them."
532
+ "Suggestions come from the action's name/description/tags only \u2014 the work may need more.",
533
+ ROUTING_HINT
534
534
  ];
535
535
  }
536
536
  var claimCommand = defineCommand({
@@ -3013,7 +3013,7 @@ var createCommand = defineCommand3({
3013
3013
  const hints = [];
3014
3014
  if (looksScheduled(name, args.description ?? "")) {
3015
3015
  hints.push(
3016
- 'This reads as recurring/scheduled work. If it should run on a cadence or a future date, create a Scheduled Action instead \u2014 baker scheduled-actions create --cron "0 9 * * MON" (or --run-at). Do NOT capture "set up a scheduled action" as a Work Action.'
3016
+ 'This reads as recurring/scheduled work. If it should run on a cadence or a future date, create a Scheduled Action instead \u2014 baker scheduled-actions create --cron "0 9 * * MON" (or --run-at; guide: __tooling__/docs/tools/baker/scheduled-actions.md). Do NOT capture "set up a scheduled action" as a Work Action.'
3017
3017
  );
3018
3018
  }
3019
3019
  hints.push(`Link dependencies: baker actions link --blocker <id> --blocked ${tempId}`);
@@ -26074,10 +26074,19 @@ A tool the user names that is NOT listed here is simply not connected yet.`
26074
26074
  if (data.managedDisabled) {
26075
26075
  hints.push("Managed integrations are disabled for this company \u2014 only custom MCP servers load.");
26076
26076
  }
26077
+ if ([...data.managed, ...data.custom].some((e) => e.scope === "user" || e.scope === "user_org")) {
26078
+ hints.push(
26079
+ "user/user_org entries are personal: they belong to the current message sender and load only in their turns \u2014 other users in this chat won't have them."
26080
+ );
26081
+ }
26077
26082
  hints.push(
26078
26083
  "Not listed = not connected. Managed app (Slack, HubSpot, Attio, \u2026) \u2192 the user connects it in the dashboard: Brain \u2192 Integrations \u2192 Tools. Custom HTTPS MCP endpoint \u2192 `baker mcp add`."
26079
26084
  );
26080
- writeJson({ ok: true, data: { managed, custom }, hints });
26085
+ writeJson({
26086
+ ok: true,
26087
+ data: { ...data.managedDisabled ? { managedDisabled: true } : {}, managed, custom },
26088
+ hints
26089
+ });
26081
26090
  } catch (err) {
26082
26091
  fail4(err);
26083
26092
  }