@sideboard-ai/core 0.1.313 → 0.1.314

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.
Files changed (32) hide show
  1. package/dist/{agents-OHIE3Z7L.js → agents-KIC6CNXF.js} +2 -2
  2. package/dist/{agents-PSNWJMEC.js → agents-S7VBS5JL.js} +2 -2
  3. package/dist/{chunk-ZW7RSQHY.js → chunk-5QYCCXXQ.js} +2 -2
  4. package/dist/{chunk-U3J2YY4T.js → chunk-6EGQPMSR.js} +11 -11
  5. package/dist/{chunk-TDXORDN6.js → chunk-7DBL5AF4.js} +117 -53
  6. package/dist/{chunk-QC2TQMPJ.js → chunk-7UP4D5XI.js} +2 -2
  7. package/dist/{chunk-2JOBQUUS.js → chunk-A45QMSVB.js} +117 -53
  8. package/dist/{chunk-WRZRX4Q7.js → chunk-NMPQ7GIS.js} +3 -3
  9. package/dist/{chunk-X3FSWWW2.js → chunk-S3KYDK6W.js} +4 -4
  10. package/dist/{chunk-62ESCTJ4.js → chunk-TO5UL7VN.js} +3 -3
  11. package/dist/{chunk-E2NJ6RH7.js → chunk-YK77HB3W.js} +10 -10
  12. package/dist/{chunk-RU6DTCCV.js → chunk-ZQLZ2A3I.js} +1 -1
  13. package/dist/{chunk-5QX2NYXL.js → chunk-ZSVKUOFH.js} +4 -4
  14. package/dist/{conductor-CTWR6NH4.js → conductor-G6TKCMIW.js} +2 -2
  15. package/dist/{conductor-YOBSYPLT.js → conductor-IIDQ2U24.js} +2 -2
  16. package/dist/{coordinator-prompt-YAZRQ4BI.js → coordinator-prompt-5USNNCG6.js} +1 -1
  17. package/dist/{coordinator-prompt-GZCWQAAV.js → coordinator-prompt-EXJSULAR.js} +1 -1
  18. package/dist/{global-workspace-H6X32IJZ.js → global-workspace-UDRTONQE.js} +1 -1
  19. package/dist/{global-workspace-BZAVBOH3.js → global-workspace-ZGPIGJ6J.js} +1 -1
  20. package/dist/index.cjs +130 -58
  21. package/dist/index.d.cts +13 -8
  22. package/dist/index.d.ts +13 -8
  23. package/dist/index.js +9 -9
  24. package/dist/mcp/run-stdio.cjs +130 -58
  25. package/dist/mcp/run-stdio.js +5 -5
  26. package/dist/{optional-cli-QDIT57VD.js → optional-cli-MLZSE6KW.js} +1 -1
  27. package/dist/{optional-cli-QY6V5S5N.js → optional-cli-SI4BCPRH.js} +2 -2
  28. package/dist/{orchestrator-RRHB7RNN.js → orchestrator-AM7VT2BD.js} +5 -5
  29. package/dist/{orchestrator-BF7TKSA2.js → orchestrator-V6NLIPLH.js} +5 -5
  30. package/dist/{workspaces-BQUDYTBX.js → workspaces-3TTODHKN.js} +1 -1
  31. package/dist/{workspaces-AGOLRBYZ.js → workspaces-TATO466L.js} +1 -1
  32. package/package.json +1 -1
@@ -91,7 +91,7 @@ function connectorAuthCaution(posthog, cliConnected) {
91
91
  const signIn = posthog ? "If a connector MCP is listed but needsAuth or returns unauthorized, do not sign in to that MCP." : "If a Vercel, Supabase, or Sentry MCP is listed but needsAuth or returns unauthorized, do not sign in to that MCP.";
92
92
  const token = cliConnected ? " CLI tokens are already in this process." : "";
93
93
  const key = posthog ? " Do not read a PostHog key from the environment." : "";
94
- return `${signIn}${token}${key}`;
94
+ return `${signIn}${token}${key} When this Sideboard connection works, ignore a Claude connector that failed to start. Use the Claude connector only when this connection is not set or the CLI call fails.`;
95
95
  }
96
96
  function connectorReminderBit(spec, cli) {
97
97
  if (!spec.cli) return `${spec.label}: \`posthog_api\``;
@@ -118,14 +118,14 @@ function formatOptionalServicesReminder(integrations, cli) {
118
118
  const bits = connected.map((spec) => connectorReminderBit(spec, cli)).join(". ");
119
119
  const tokenBit = connected.some((spec) => spec.cli) ? "CLI tokens are already in this process. " : "";
120
120
  const posthog = connected.some((spec) => spec.id === "posthog");
121
- const auth = posthog ? "If a connector MCP needsAuth or is unauthorized, ignore it and use the CLI or `posthog_api`. Do not read a PostHog key from the environment." : "If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, ignore it and use the CLI.";
121
+ const auth = posthog ? "If a connector MCP needsAuth or is unauthorized, ignore it and use the CLI or `posthog_api` while this Sideboard connection works. Use the Claude connector only when it is not set or the call fails. Do not read a PostHog key from the environment." : "If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, ignore it and use the CLI while this Sideboard connection works. Use the Claude connector only when it is not set or the CLI call fails.";
122
122
  return `Settings \u2192 Connectors: ${tokenBit}${bits}. ${auth} Do not add vendor MCPs. Shell dumps from those CLIs go in \`.context/cli/\` \u2014 read a slice.`;
123
123
  }
124
124
  async function connectedCliPresence(integrations) {
125
125
  const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
126
126
  if (ids.length === 0) return void 0;
127
127
  try {
128
- const { optionalCliPresence } = await import("./optional-cli-QDIT57VD.js");
128
+ const { optionalCliPresence } = await import("./optional-cli-MLZSE6KW.js");
129
129
  return await optionalCliPresence(ids);
130
130
  } catch {
131
131
  return void 0;
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  formatOptionalServicesDirectiveForTurn,
8
8
  formatOptionalServicesReminderForTurn
9
- } from "./chunk-62ESCTJ4.js";
9
+ } from "./chunk-TO5UL7VN.js";
10
10
  import {
11
11
  extractPresentedPlan,
12
12
  isPresentPlanToolName,
@@ -27,7 +27,7 @@ import {
27
27
  parseSessionQuotaResetAt,
28
28
  planModeTurnInstruction,
29
29
  resolveQuotaFallbackAgent
30
- } from "./chunk-2JOBQUUS.js";
30
+ } from "./chunk-A45QMSVB.js";
31
31
  import {
32
32
  REVIEW_TAB_TITLE,
33
33
  applyWorktreePkgCacheEnv,
@@ -69,7 +69,7 @@ import {
69
69
  worktreeDevProcessKey,
70
70
  worktreeRunProcessKey,
71
71
  worktreeSetupProcessKey
72
- } from "./chunk-ZW7RSQHY.js";
72
+ } from "./chunk-5QYCCXXQ.js";
73
73
  import {
74
74
  applyAgentEvent,
75
75
  clipAgentEventForPaint,
@@ -121,7 +121,7 @@ import {
121
121
  stageAbsolutePathsAsAttachments,
122
122
  stageBuffersAsAttachments,
123
123
  syncWorkspacesFromThreads
124
- } from "./chunk-X3FSWWW2.js";
124
+ } from "./chunk-S3KYDK6W.js";
125
125
  import {
126
126
  addPrStackLayer,
127
127
  allocateTeamSlug,
@@ -506,9 +506,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
506
506
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
507
507
  );
508
508
  }
509
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-H6X32IJZ.js");
509
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-UDRTONQE.js");
510
510
  if (isGlobalThread2(thread)) {
511
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-GZCWQAAV.js");
511
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-EXJSULAR.js");
512
512
  ensureGlobalCoordinatorCwd2(
513
513
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
514
514
  );
@@ -3544,7 +3544,7 @@ async function adoptThread(input) {
3544
3544
  messages: input.messages ?? []
3545
3545
  });
3546
3546
  writeThread(thread);
3547
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-AGOLRBYZ.js");
3547
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-TATO466L.js");
3548
3548
  await addWorkspace2(repoPath);
3549
3549
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-5N2KTYIT.js");
3550
3550
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -5628,7 +5628,7 @@ function formatIssueToolsDirective(opts) {
5628
5628
  if (!opts.linear && !opts.abletime && !github) return null;
5629
5629
  const lines = [
5630
5630
  "Issue tracking (Settings \u2192 Issues / Git \u2014 already signed in):",
5631
- "- Use Sideboard `linear_*` / `github_*` / `abletime_*` tools. Do not call Claude Linear MCP, vendor GitHub MCP, or any other vendor issue MCP \u2014 those need a separate login and hang. If a vendor namespace shows needsAuth, ignore it and keep going with Sideboard tools."
5631
+ "- Use Sideboard `linear_*` / `github_*` / `abletime_*` when that Account connection is set and the call works. If it is not set, or the Sideboard call fails because the connection is down, use the Claude connector for that service. Do not mention a Claude connector that failed to start (for example `mcp_github_github` or `plugin:github:github`) when the Sideboard connection is working. A vendor issue MCP that only needsAuth is noise \u2014 do not sign in to it while Sideboard covers that service."
5632
5632
  ];
5633
5633
  if (opts.linear) {
5634
5634
  lines.push(
@@ -5668,7 +5668,7 @@ function formatIssueToolsReminder(opts) {
5668
5668
  ].filter(Boolean);
5669
5669
  const ticket = opts.ticketId?.trim();
5670
5670
  const ticketBit = ticket ? ` This ticket: ${ticket}${opts.ticketProvider ? ` (${opts.ticketProvider})` : ""} \u2014 get; comment/update review findings only after they ask. Spin-offs use parent=.` : " get/comment/update/create (parent= for spin-offs).";
5671
- return `Issues: Sideboard ${names.join(" / ")} (Account). Ignore vendor issue MCP auth.${ticketBit} Review stays in chat \u2014 do not ask_user after it; they type next steps. Authors see comments immediately.`;
5671
+ return `Issues: Sideboard ${names.join(" / ")} when that Account connection works. If it is not set or the call fails, use the Claude connector. Do not mention a Claude connector startup failure when Sideboard covers it.${ticketBit} Review stays in chat \u2014 do not ask_user after it; they type next steps. Authors see comments immediately.`;
5672
5672
  }
5673
5673
  function formatPrGateDirective() {
5674
5674
  return [
@@ -6438,7 +6438,7 @@ function formatScheduledPrompt(name, prompt) {
6438
6438
  ${prompt}`;
6439
6439
  }
6440
6440
  async function defaultDeps() {
6441
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-RRHB7RNN.js");
6441
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-AM7VT2BD.js");
6442
6442
  const orch = getOrchestrator2();
6443
6443
  return {
6444
6444
  findThread: (id) => findThreadByRef(id),
@@ -2,7 +2,7 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-WRZRX4Q7.js";
5
+ } from "./chunk-NMPQ7GIS.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
@@ -386,12 +386,12 @@ var COORDINATOR_TOOL_PLAYBOOK = [
386
386
  "- list_projects \u2014 registered repos (path + github slug + project context when set). Use account / project context to pick the right repo for tickets or reviews.",
387
387
  "- list_board \u2014 Home Kanban of workspaces (New / Draft / Review / Approved / Merged; one card per checkout). Sibling chats on a card are separate agents, not one agent. Path to merge: no PR \u2192 draft PR \u2192 open PR \u2192 approved \u2192 merged. Archive removes the card to Settings \u2192 History (list_archive to browse, restore_workspace to bring it back). Queued/running are activity on the card, not columns. Orchestration chats are not on the board. Filters: query, repoPath, kind, column, limit.",
388
388
  `- list_branches / list_prs / list_issues \u2014 pass repoPath from list_projects. Review is PRs (the surface for assigned ticket work), not the tickets: "Get me N tickets to review" \u2192 list_prs(queue=review, limit=N) then create_workspace sourceType=pr. That is open non-draft PRs labeled with this project's ready-for-review GitHub label (Settings \u2192 Projects; default eng-review) with no individual user reviewer yet. A team request (engineering-team) is not a claim \u2014 the viewer is on that team and can pick it up; claimed means an individual account is the reviewer. Bots ignored. Use Settings \u2192 Agents / Projects context (roles, teams, labels \u2014 freeform text; project adds to account) to prefer the right queues. queue=mine is review-requested:@me; queue=approved|changes uses those labels. Also: state, label, reviewer=me|unassigned|login, query, limit default 40 max 250; raise limit or tighten when truncated. list_issues (query, assignee=me|unassigned|all|user, limit default 40 max 250) lists Linear, AbleTime, or GitHub tickets \u2014 do not use it for that review-inbox ask. When they ask for tickets to work on, follow their context (assignee=me or unassigned as it says).`,
389
- "- Find work: when they ask to find work, pick up tickets, or list reviews, use Settings \u2192 Agents (account) plus Settings \u2192 Projects (per-repo) context. Tickets \u2192 Sideboard list_issues / linear_* (Account Linear). Reviews \u2192 list_prs(queue=review). Do not call Claude Linear MCP or any other vendor Linear MCP \u2014 those HTTP connectors hang or flap on the first turn. If a vendor MCP is down or reconnecting, ignore it and keep going with Sideboard tools. Show the options \u2014 do not create_workspace or start unless they also asked to start (e.g. \u201Cfind me work and start it\u201D). Do not start this unprompted. To change that context, show the proposed text, ask_user (Save this context / Do not save), wait, then update_viewer_context with confirmed=true. Never write it without confirmation.",
389
+ "- Find work: when they ask to find work, pick up tickets, or list reviews, use Settings \u2192 Agents (account) plus Settings \u2192 Projects (per-repo) context. Tickets \u2192 Sideboard list_issues / linear_* (Account Linear). Reviews \u2192 list_prs(queue=review). Do not call Claude Linear MCP or any other vendor Linear MCP \u2014 those HTTP connectors hang or flap on the first turn. If a vendor MCP is down or reconnecting, ignore it and keep going with Sideboard tools. A failed Claude connector is not a Sideboard outage \u2014 do not mention it when the Account connection works. Show the options \u2014 do not create_workspace or start unless they also asked to start (e.g. \u201Cfind me work and start it\u201D). Do not start this unprompted. To change that context, show the proposed text, ask_user (Save this context / Do not save), wait, then update_viewer_context with confirmed=true. Never write it without confirmation.",
390
390
  "- Ticket updates: list_issues / linear_search_issues / github_search_issues with updatedSince (yesterday, 2d, or ISO). One call returns new assignments, ticket edits, and new comments \u2014 do not get_issue every ticket just to check for comments. kind=created vs updated distinguishes new tickets from existing ones.",
391
- "- linear_* (when Linear is connected) \u2014 list_teams for team key/states; linear_list_projects for project names; get/search include the project a ticket is on; get/create/update/comment with ENG-123. Worktree agents have the same Account tools \u2014 prefer they comment, update status, and create spin-offs (parent=) on their own ticket when they were asked to do the work. When reviewing a PR or ticket, do not comment or update until the user types a next step \u2014 they should work through the feedback in chat first. Do not tell the child to ask_user after the review. Scope errors: reconnect Linear in Account settings. Prefer these over any Linear MCP the CLI may still list.",
392
- "- github_* \u2014 get/comment/update/create GitHub issues via Account `gh` (#123). github_list_projects and get/search include GitHub Projects. projectsError or a missing read:project scope \u2192 `gh auth refresh -s read:project`. Worktree agents have these too. Prefer over any vendor GitHub MCP. Pass parent= for spin-offs. When reviewing a PR or ticket, do not comment, submit `gh pr review`, or update the PR/ticket until the user types a next step.",
391
+ "- linear_* (when Linear is connected) \u2014 list_teams for team key/states; linear_list_projects for project names; get/search include the project a ticket is on; get/create/update/comment with ENG-123. Worktree agents have the same Account tools \u2014 prefer they comment, update status, and create spin-offs (parent=) on their own ticket when they were asked to do the work. When reviewing a PR or ticket, do not comment or update until the user types a next step \u2014 they should work through the feedback in chat first. Do not tell the child to ask_user after the review. Scope errors: reconnect Linear in Account settings. Prefer these over any Linear MCP the CLI may still list. Worktree agents use the Claude Linear connector only when Account Linear is not set or the Sideboard call fails, and they do not mention that connector startup failure when Sideboard works.",
392
+ "- github_* \u2014 get/comment/update/create GitHub issues via Account `gh` (#123). github_list_projects and get/search include GitHub Projects. projectsError or a missing read:project scope \u2192 `gh auth refresh -s read:project`. Worktree agents have these too. Prefer Sideboard `github_*` while Account `gh` works. A failed Claude GitHub connector (`mcp_github_github`) is not a Sideboard outage \u2014 do not mention it. Use that connector only when `gh` is not set up or the Sideboard call fails. Pass parent= for spin-offs. When reviewing a PR or ticket, do not comment, submit `gh pr review`, or update the PR/ticket until the user types a next step.",
393
393
  "- abletime_* (when AbleTime is connected) \u2014 orientation first; abletime_list_projects lists projects; get/list include the project a task is on; get/comment/update/create (parent= for spin-offs); ensure_task when work has no ticket (or create_workspace from the default branch auto-creates one). Worktree agents have the same Account tools. Same review-write gate as Linear/GitHub.",
394
- "- Optional connectors (Vercel, Supabase, Sentry) in Settings \u2192 Connectors inject tokens into worktree agent env when connected. Prefer official CLIs (`vercel`, `supabase`, `sentry-cli`). When Settings \u2192 Connectors has a PostHog personal API key, PostHog is the Sideboard tool `posthog_api` (GET by default; POST `/api/projects/:id/query/` or `/api/environments/:id/query/` is a read and does not need write=true; other POST and PATCH need write=true only when the user asked to change data). The PostHog key stays in the vault \u2014 do not read it from the environment, and do not sign in to a PostHog MCP. When no PostHog API key is set, leave the Claude PostHog connector alone. If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, do not sign in \u2014 use the native CLI. Tell any worktree agent (Claude / Cursor / Codex / OpenCode) to write CLI output to `.context/cli/` and read a slice. If a CLI is missing, the user presses Install CLI on that row. Do not add vendor MCPs. Git (`gh`) stays Settings \u2192 Git; issue tracking stays Settings \u2192 Issues. The phone remote is Settings \u2192 Remote \u2014 do not look up Slack users.",
394
+ "- Optional connectors (Vercel, Supabase, Sentry) in Settings \u2192 Connectors inject tokens into worktree agent env when connected. Prefer official CLIs (`vercel`, `supabase`, `sentry-cli`). When Settings \u2192 Connectors has a PostHog personal API key, PostHog is the Sideboard tool `posthog_api` (GET by default; POST `/api/projects/:id/query/` or `/api/environments/:id/query/` is a read and does not need write=true; other POST and PATCH need write=true only when the user asked to change data). The PostHog key stays in the vault \u2014 do not read it from the environment, and do not sign in to a PostHog MCP. When no PostHog API key is set, use the Claude PostHog connector. When a key is set, ignore a failed Claude PostHog connector and do not sign in to a PostHog MCP. If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized while that Sideboard token is set, do not sign in \u2014 use the native CLI. When that token is not set or the CLI call fails, the Claude connector is the fallback. Do not mention a Claude connector startup failure when the Sideboard connection works. Tell any worktree agent (Claude / Cursor / Codex / OpenCode) to write CLI output to `.context/cli/` and read a slice. If a CLI is missing, the user presses Install CLI on that row. Do not add vendor MCPs. Git (`gh`) stays Settings \u2192 Git; issue tracking stays Settings \u2192 Issues. The phone remote is Settings \u2192 Remote \u2014 do not look up Slack users.",
395
395
  "- get_pr_stack / open_pr_stack_layers / add_stack_layer / create_pr_stack \u2014 GitHub stacked PRs (`gh stack`); one worktree per layer",
396
396
  "- list_models \u2014 only when you need a specific model (rare); otherwise omit model so Account defaults apply",
397
397
  "- list_chats / get_chat \u2014 live thread list (parent id + last message preview). get_chat on this orchestration chat lists child worktree agents (status + lastText). blockedReason is why that agent is waiting on a person. Also includes usage / lastTurnUsage. Archived workspaces and agents are list_archive, not this list.",
@@ -34,9 +34,9 @@ import {
34
34
  tryReservePort,
35
35
  tryReservePorts,
36
36
  worktreeRunPortsPath
37
- } from "./chunk-ZW7RSQHY.js";
37
+ } from "./chunk-5QYCCXXQ.js";
38
38
  import "./chunk-I5TESHDN.js";
39
- import "./chunk-X3FSWWW2.js";
39
+ import "./chunk-S3KYDK6W.js";
40
40
  import "./chunk-DLGGLV2M.js";
41
41
  import "./chunk-N2WW62LF.js";
42
42
  import "./chunk-DD67JWTN.js";
@@ -32,9 +32,9 @@ import {
32
32
  tryReservePort,
33
33
  tryReservePorts,
34
34
  worktreeRunPortsPath
35
- } from "./chunk-QC2TQMPJ.js";
35
+ } from "./chunk-7UP4D5XI.js";
36
36
  import "./chunk-7Q327QF2.js";
37
- import "./chunk-5QX2NYXL.js";
37
+ import "./chunk-ZSVKUOFH.js";
38
38
  import "./chunk-BIPXOHZI.js";
39
39
  import "./chunk-HG25AYBV.js";
40
40
  import "./chunk-2P4XKWV2.js";
@@ -7,7 +7,7 @@ import {
7
7
  enrichWorkspacesWithGithub,
8
8
  ensureGlobalCoordinatorCwd,
9
9
  formatWorkspaceInventory
10
- } from "./chunk-5QX2NYXL.js";
10
+ } from "./chunk-ZSVKUOFH.js";
11
11
  import "./chunk-BIPXOHZI.js";
12
12
  import "./chunk-HG25AYBV.js";
13
13
  import "./chunk-2P4XKWV2.js";
@@ -9,7 +9,7 @@ import {
9
9
  enrichWorkspacesWithGithub,
10
10
  ensureGlobalCoordinatorCwd,
11
11
  formatWorkspaceInventory
12
- } from "./chunk-X3FSWWW2.js";
12
+ } from "./chunk-S3KYDK6W.js";
13
13
  import "./chunk-DLGGLV2M.js";
14
14
  import "./chunk-N2WW62LF.js";
15
15
  import "./chunk-DD67JWTN.js";
@@ -20,7 +20,7 @@ import {
20
20
  remoteCoordinatorSourceRef,
21
21
  slackCoordinatorSourceRef,
22
22
  takenTeamSlugsForOrchestration
23
- } from "./chunk-X3FSWWW2.js";
23
+ } from "./chunk-S3KYDK6W.js";
24
24
  import "./chunk-DLGGLV2M.js";
25
25
  import "./chunk-N2WW62LF.js";
26
26
  import "./chunk-DD67JWTN.js";
@@ -18,7 +18,7 @@ import {
18
18
  remoteCoordinatorSourceRef,
19
19
  slackCoordinatorSourceRef,
20
20
  takenTeamSlugsForOrchestration
21
- } from "./chunk-5QX2NYXL.js";
21
+ } from "./chunk-ZSVKUOFH.js";
22
22
  import "./chunk-BIPXOHZI.js";
23
23
  import "./chunk-HG25AYBV.js";
24
24
  import "./chunk-2P4XKWV2.js";
package/dist/index.cjs CHANGED
@@ -12400,12 +12400,12 @@ var init_coordinator_prompt = __esm({
12400
12400
  "- list_projects \u2014 registered repos (path + github slug + project context when set). Use account / project context to pick the right repo for tickets or reviews.",
12401
12401
  "- list_board \u2014 Home Kanban of workspaces (New / Draft / Review / Approved / Merged; one card per checkout). Sibling chats on a card are separate agents, not one agent. Path to merge: no PR \u2192 draft PR \u2192 open PR \u2192 approved \u2192 merged. Archive removes the card to Settings \u2192 History (list_archive to browse, restore_workspace to bring it back). Queued/running are activity on the card, not columns. Orchestration chats are not on the board. Filters: query, repoPath, kind, column, limit.",
12402
12402
  `- list_branches / list_prs / list_issues \u2014 pass repoPath from list_projects. Review is PRs (the surface for assigned ticket work), not the tickets: "Get me N tickets to review" \u2192 list_prs(queue=review, limit=N) then create_workspace sourceType=pr. That is open non-draft PRs labeled with this project's ready-for-review GitHub label (Settings \u2192 Projects; default eng-review) with no individual user reviewer yet. A team request (engineering-team) is not a claim \u2014 the viewer is on that team and can pick it up; claimed means an individual account is the reviewer. Bots ignored. Use Settings \u2192 Agents / Projects context (roles, teams, labels \u2014 freeform text; project adds to account) to prefer the right queues. queue=mine is review-requested:@me; queue=approved|changes uses those labels. Also: state, label, reviewer=me|unassigned|login, query, limit default 40 max 250; raise limit or tighten when truncated. list_issues (query, assignee=me|unassigned|all|user, limit default 40 max 250) lists Linear, AbleTime, or GitHub tickets \u2014 do not use it for that review-inbox ask. When they ask for tickets to work on, follow their context (assignee=me or unassigned as it says).`,
12403
- "- Find work: when they ask to find work, pick up tickets, or list reviews, use Settings \u2192 Agents (account) plus Settings \u2192 Projects (per-repo) context. Tickets \u2192 Sideboard list_issues / linear_* (Account Linear). Reviews \u2192 list_prs(queue=review). Do not call Claude Linear MCP or any other vendor Linear MCP \u2014 those HTTP connectors hang or flap on the first turn. If a vendor MCP is down or reconnecting, ignore it and keep going with Sideboard tools. Show the options \u2014 do not create_workspace or start unless they also asked to start (e.g. \u201Cfind me work and start it\u201D). Do not start this unprompted. To change that context, show the proposed text, ask_user (Save this context / Do not save), wait, then update_viewer_context with confirmed=true. Never write it without confirmation.",
12403
+ "- Find work: when they ask to find work, pick up tickets, or list reviews, use Settings \u2192 Agents (account) plus Settings \u2192 Projects (per-repo) context. Tickets \u2192 Sideboard list_issues / linear_* (Account Linear). Reviews \u2192 list_prs(queue=review). Do not call Claude Linear MCP or any other vendor Linear MCP \u2014 those HTTP connectors hang or flap on the first turn. If a vendor MCP is down or reconnecting, ignore it and keep going with Sideboard tools. A failed Claude connector is not a Sideboard outage \u2014 do not mention it when the Account connection works. Show the options \u2014 do not create_workspace or start unless they also asked to start (e.g. \u201Cfind me work and start it\u201D). Do not start this unprompted. To change that context, show the proposed text, ask_user (Save this context / Do not save), wait, then update_viewer_context with confirmed=true. Never write it without confirmation.",
12404
12404
  "- Ticket updates: list_issues / linear_search_issues / github_search_issues with updatedSince (yesterday, 2d, or ISO). One call returns new assignments, ticket edits, and new comments \u2014 do not get_issue every ticket just to check for comments. kind=created vs updated distinguishes new tickets from existing ones.",
12405
- "- linear_* (when Linear is connected) \u2014 list_teams for team key/states; linear_list_projects for project names; get/search include the project a ticket is on; get/create/update/comment with ENG-123. Worktree agents have the same Account tools \u2014 prefer they comment, update status, and create spin-offs (parent=) on their own ticket when they were asked to do the work. When reviewing a PR or ticket, do not comment or update until the user types a next step \u2014 they should work through the feedback in chat first. Do not tell the child to ask_user after the review. Scope errors: reconnect Linear in Account settings. Prefer these over any Linear MCP the CLI may still list.",
12406
- "- github_* \u2014 get/comment/update/create GitHub issues via Account `gh` (#123). github_list_projects and get/search include GitHub Projects. projectsError or a missing read:project scope \u2192 `gh auth refresh -s read:project`. Worktree agents have these too. Prefer over any vendor GitHub MCP. Pass parent= for spin-offs. When reviewing a PR or ticket, do not comment, submit `gh pr review`, or update the PR/ticket until the user types a next step.",
12405
+ "- linear_* (when Linear is connected) \u2014 list_teams for team key/states; linear_list_projects for project names; get/search include the project a ticket is on; get/create/update/comment with ENG-123. Worktree agents have the same Account tools \u2014 prefer they comment, update status, and create spin-offs (parent=) on their own ticket when they were asked to do the work. When reviewing a PR or ticket, do not comment or update until the user types a next step \u2014 they should work through the feedback in chat first. Do not tell the child to ask_user after the review. Scope errors: reconnect Linear in Account settings. Prefer these over any Linear MCP the CLI may still list. Worktree agents use the Claude Linear connector only when Account Linear is not set or the Sideboard call fails, and they do not mention that connector startup failure when Sideboard works.",
12406
+ "- github_* \u2014 get/comment/update/create GitHub issues via Account `gh` (#123). github_list_projects and get/search include GitHub Projects. projectsError or a missing read:project scope \u2192 `gh auth refresh -s read:project`. Worktree agents have these too. Prefer Sideboard `github_*` while Account `gh` works. A failed Claude GitHub connector (`mcp_github_github`) is not a Sideboard outage \u2014 do not mention it. Use that connector only when `gh` is not set up or the Sideboard call fails. Pass parent= for spin-offs. When reviewing a PR or ticket, do not comment, submit `gh pr review`, or update the PR/ticket until the user types a next step.",
12407
12407
  "- abletime_* (when AbleTime is connected) \u2014 orientation first; abletime_list_projects lists projects; get/list include the project a task is on; get/comment/update/create (parent= for spin-offs); ensure_task when work has no ticket (or create_workspace from the default branch auto-creates one). Worktree agents have the same Account tools. Same review-write gate as Linear/GitHub.",
12408
- "- Optional connectors (Vercel, Supabase, Sentry) in Settings \u2192 Connectors inject tokens into worktree agent env when connected. Prefer official CLIs (`vercel`, `supabase`, `sentry-cli`). When Settings \u2192 Connectors has a PostHog personal API key, PostHog is the Sideboard tool `posthog_api` (GET by default; POST `/api/projects/:id/query/` or `/api/environments/:id/query/` is a read and does not need write=true; other POST and PATCH need write=true only when the user asked to change data). The PostHog key stays in the vault \u2014 do not read it from the environment, and do not sign in to a PostHog MCP. When no PostHog API key is set, leave the Claude PostHog connector alone. If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, do not sign in \u2014 use the native CLI. Tell any worktree agent (Claude / Cursor / Codex / OpenCode) to write CLI output to `.context/cli/` and read a slice. If a CLI is missing, the user presses Install CLI on that row. Do not add vendor MCPs. Git (`gh`) stays Settings \u2192 Git; issue tracking stays Settings \u2192 Issues. The phone remote is Settings \u2192 Remote \u2014 do not look up Slack users.",
12408
+ "- Optional connectors (Vercel, Supabase, Sentry) in Settings \u2192 Connectors inject tokens into worktree agent env when connected. Prefer official CLIs (`vercel`, `supabase`, `sentry-cli`). When Settings \u2192 Connectors has a PostHog personal API key, PostHog is the Sideboard tool `posthog_api` (GET by default; POST `/api/projects/:id/query/` or `/api/environments/:id/query/` is a read and does not need write=true; other POST and PATCH need write=true only when the user asked to change data). The PostHog key stays in the vault \u2014 do not read it from the environment, and do not sign in to a PostHog MCP. When no PostHog API key is set, use the Claude PostHog connector. When a key is set, ignore a failed Claude PostHog connector and do not sign in to a PostHog MCP. If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized while that Sideboard token is set, do not sign in \u2014 use the native CLI. When that token is not set or the CLI call fails, the Claude connector is the fallback. Do not mention a Claude connector startup failure when the Sideboard connection works. Tell any worktree agent (Claude / Cursor / Codex / OpenCode) to write CLI output to `.context/cli/` and read a slice. If a CLI is missing, the user presses Install CLI on that row. Do not add vendor MCPs. Git (`gh`) stays Settings \u2192 Git; issue tracking stays Settings \u2192 Issues. The phone remote is Settings \u2192 Remote \u2014 do not look up Slack users.",
12409
12409
  "- get_pr_stack / open_pr_stack_layers / add_stack_layer / create_pr_stack \u2014 GitHub stacked PRs (`gh stack`); one worktree per layer",
12410
12410
  "- list_models \u2014 only when you need a specific model (rare); otherwise omit model so Account defaults apply",
12411
12411
  "- list_chats / get_chat \u2014 live thread list (parent id + last message preview). get_chat on this orchestration chat lists child worktree agents (status + lastText). blockedReason is why that agent is waiting on a person. Also includes usage / lastTurnUsage. Archived workspaces and agents are list_archive, not this list.",
@@ -13840,6 +13840,127 @@ var init_brightsy = __esm({
13840
13840
  }
13841
13841
  });
13842
13842
 
13843
+ // src/agents/claude-mcp-status.ts
13844
+ function mcpStatusThinkingFromClaudeInit(obj) {
13845
+ const raw = obj.mcp_servers ?? obj.mcpServers;
13846
+ const servers = [];
13847
+ if (Array.isArray(raw)) {
13848
+ for (const item of raw) {
13849
+ if (!item || typeof item !== "object" || Array.isArray(item)) continue;
13850
+ const rec = item;
13851
+ const name = typeof rec.name === "string" && rec.name.trim() || typeof rec.server === "string" && rec.server.trim() || "";
13852
+ const status = typeof rec.status === "string" && rec.status.trim() || typeof rec.state === "string" && rec.state.trim() || "";
13853
+ if (name) servers.push({ name, status: status || "unknown" });
13854
+ }
13855
+ } else if (raw && typeof raw === "object") {
13856
+ for (const [name, value] of Object.entries(raw)) {
13857
+ if (!name.trim()) continue;
13858
+ if (typeof value === "string" && value.trim()) {
13859
+ servers.push({ name, status: value.trim() });
13860
+ continue;
13861
+ }
13862
+ if (value && typeof value === "object" && !Array.isArray(value)) {
13863
+ const rec = value;
13864
+ const status = typeof rec.status === "string" && rec.status.trim() || typeof rec.state === "string" && rec.state.trim() || "unknown";
13865
+ servers.push({ name, status });
13866
+ }
13867
+ }
13868
+ }
13869
+ const coverage = claudeConnectorCoverage();
13870
+ const sideboardOk = sideboardMcpOk(servers);
13871
+ const notable = servers.filter(
13872
+ (server) => isNotableMcpInitStatus(server, sideboardOk, coverage)
13873
+ );
13874
+ if (notable.length === 0) return null;
13875
+ return `MCP: ${notable.map((s) => `${s.name} ${s.status}`).join(", ")}`;
13876
+ }
13877
+ function isCleanMcpConnect(status) {
13878
+ return /^(connected|ok|ready|success)$/i.test(status.trim());
13879
+ }
13880
+ function isMcpAuthStatus(status) {
13881
+ return /needs[_-]?auth|needs authentication|unauthorized|not authenticated|authrequired/i.test(
13882
+ status
13883
+ );
13884
+ }
13885
+ function isSideboardMcpName(name) {
13886
+ return /^sideboard$/i.test(name.trim()) || /^mcp__sideboard$/i.test(name.trim());
13887
+ }
13888
+ function isVendorClaudeAiMcpName(name) {
13889
+ return /^claude\.ai\b/i.test(name.trim()) || /^mcp__claude_ai_/i.test(name.trim());
13890
+ }
13891
+ function sideboardMcpOk(servers) {
13892
+ const row2 = servers.find((server) => isSideboardMcpName(server.name));
13893
+ return Boolean(row2 && isCleanMcpConnect(row2.status));
13894
+ }
13895
+ function sideboardServiceForClaudeConnector(name) {
13896
+ const raw = name.trim();
13897
+ if (!raw || isSideboardMcpName(raw)) return null;
13898
+ const pluginLike = /^(?:plugin[:_]|mcp__plugin_|claude\.ai\s|(?:mcp__)?claude_ai_)/i.test(raw);
13899
+ const doubled = raw.match(/^mcp_([a-z0-9]+)_([a-z0-9]+)$/i);
13900
+ if (!pluginLike && !(doubled && doubled[1].toLowerCase() === doubled[2].toLowerCase())) {
13901
+ return null;
13902
+ }
13903
+ let body = raw;
13904
+ if (/^claude\.ai\s+/i.test(body)) body = body.replace(/^claude\.ai\s+/i, "");
13905
+ else if (/^(?:mcp__)?claude_ai_/i.test(body)) body = body.replace(/^(?:mcp__)?claude_ai_/i, "");
13906
+ else if (/^mcp__plugin_/i.test(body)) body = body.slice("mcp__plugin_".length);
13907
+ else if (/^plugin_/i.test(body)) body = body.slice("plugin_".length);
13908
+ else if (/^plugin:/i.test(body)) body = body.slice("plugin:".length);
13909
+ else if (/^mcp_/i.test(body)) body = body.slice("mcp_".length);
13910
+ const head = body.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean)[0];
13911
+ if (!head || !SIDEBOARD_CONNECTOR_SERVICES.includes(head)) return null;
13912
+ return head;
13913
+ }
13914
+ function claudeConnectorCoverage() {
13915
+ let github = false;
13916
+ try {
13917
+ github = githubAgentAuthReady();
13918
+ } catch {
13919
+ github = false;
13920
+ }
13921
+ let linear = false;
13922
+ let posthog = false;
13923
+ let vercel = false;
13924
+ let supabase = false;
13925
+ let sentry = false;
13926
+ try {
13927
+ linear = isLinearConnected();
13928
+ posthog = isPosthogConnected();
13929
+ const integrations = loadAppSettings().integrations ?? {};
13930
+ if (integrations.githubPat?.trim()) github = true;
13931
+ vercel = Boolean(integrations.vercelToken?.trim());
13932
+ supabase = Boolean(integrations.supabaseAccessToken?.trim());
13933
+ sentry = Boolean(integrations.sentryAuthToken?.trim());
13934
+ } catch {
13935
+ }
13936
+ return { github, linear, posthog, vercel, supabase, sentry };
13937
+ }
13938
+ function isNotableMcpInitStatus(server, sideboardOk, coverage) {
13939
+ if (isCleanMcpConnect(server.status)) return false;
13940
+ if (isSideboardMcpName(server.name)) return true;
13941
+ if (isMcpAuthStatus(server.status)) return false;
13942
+ const service = sideboardServiceForClaudeConnector(server.name);
13943
+ if (service) return !(sideboardOk && coverage[service]);
13944
+ if (isVendorClaudeAiMcpName(server.name)) return false;
13945
+ return true;
13946
+ }
13947
+ var SIDEBOARD_CONNECTOR_SERVICES;
13948
+ var init_claude_mcp_status = __esm({
13949
+ "src/agents/claude-mcp-status.ts"() {
13950
+ "use strict";
13951
+ init_github_agent_auth();
13952
+ init_app_settings();
13953
+ SIDEBOARD_CONNECTOR_SERVICES = [
13954
+ "github",
13955
+ "linear",
13956
+ "posthog",
13957
+ "vercel",
13958
+ "supabase",
13959
+ "sentry"
13960
+ ];
13961
+ }
13962
+ });
13963
+
13843
13964
  // src/mcp-ui/meta.ts
13844
13965
  function matchClaudeMcpTool(toolName, serverNames) {
13845
13966
  const name = toolName.trim();
@@ -16324,56 +16445,6 @@ function claudeString(obj, key) {
16324
16445
  const v = obj[key];
16325
16446
  return typeof v === "string" && v.trim() ? v.trim() : void 0;
16326
16447
  }
16327
- function mcpStatusThinkingFromClaudeInit(obj) {
16328
- const raw = obj.mcp_servers ?? obj.mcpServers;
16329
- const servers = [];
16330
- if (Array.isArray(raw)) {
16331
- for (const item of raw) {
16332
- if (!item || typeof item !== "object" || Array.isArray(item)) continue;
16333
- const rec = item;
16334
- const name = typeof rec.name === "string" && rec.name.trim() || typeof rec.server === "string" && rec.server.trim() || "";
16335
- const status = typeof rec.status === "string" && rec.status.trim() || typeof rec.state === "string" && rec.state.trim() || "";
16336
- if (name) servers.push({ name, status: status || "unknown" });
16337
- }
16338
- } else if (raw && typeof raw === "object") {
16339
- for (const [name, value] of Object.entries(raw)) {
16340
- if (!name.trim()) continue;
16341
- if (typeof value === "string" && value.trim()) {
16342
- servers.push({ name, status: value.trim() });
16343
- continue;
16344
- }
16345
- if (value && typeof value === "object" && !Array.isArray(value)) {
16346
- const rec = value;
16347
- const status = typeof rec.status === "string" && rec.status.trim() || typeof rec.state === "string" && rec.state.trim() || "unknown";
16348
- servers.push({ name, status });
16349
- }
16350
- }
16351
- }
16352
- const notable = servers.filter(isNotableMcpInitStatus);
16353
- if (notable.length === 0) return null;
16354
- return `MCP: ${notable.map((s) => `${s.name} ${s.status}`).join(", ")}`;
16355
- }
16356
- function isCleanMcpConnect(status) {
16357
- return /^(connected|ok|ready|success)$/i.test(status.trim());
16358
- }
16359
- function isMcpAuthStatus(status) {
16360
- return /needs[_-]?auth|needs authentication|unauthorized|not authenticated|authrequired/i.test(
16361
- status
16362
- );
16363
- }
16364
- function isSideboardMcpName(name) {
16365
- return /^sideboard$/i.test(name.trim()) || /^mcp__sideboard$/i.test(name.trim());
16366
- }
16367
- function isVendorClaudeAiMcpName(name) {
16368
- return /^claude\.ai\b/i.test(name.trim()) || /^mcp__claude_ai_/i.test(name.trim());
16369
- }
16370
- function isNotableMcpInitStatus(server) {
16371
- if (isCleanMcpConnect(server.status)) return false;
16372
- if (isSideboardMcpName(server.name)) return true;
16373
- if (isVendorClaudeAiMcpName(server.name)) return false;
16374
- if (isMcpAuthStatus(server.status)) return false;
16375
- return true;
16376
- }
16377
16448
  function eventsFromClaudeSystem(obj) {
16378
16449
  const subtype = claudeString(obj, "subtype") ?? "";
16379
16450
  const parentId = claudeParentToolUseId(obj);
@@ -16521,6 +16592,7 @@ var init_claude = __esm({
16521
16592
  import_node_fs39 = require("fs");
16522
16593
  init_run();
16523
16594
  init_app_settings();
16595
+ init_claude_mcp_status();
16524
16596
  init_claude_mcp();
16525
16597
  init_host();
16526
16598
  init_error_detail();
@@ -28411,7 +28483,7 @@ function formatIssueToolsDirective(opts) {
28411
28483
  if (!opts.linear && !opts.abletime && !github) return null;
28412
28484
  const lines = [
28413
28485
  "Issue tracking (Settings \u2192 Issues / Git \u2014 already signed in):",
28414
- "- Use Sideboard `linear_*` / `github_*` / `abletime_*` tools. Do not call Claude Linear MCP, vendor GitHub MCP, or any other vendor issue MCP \u2014 those need a separate login and hang. If a vendor namespace shows needsAuth, ignore it and keep going with Sideboard tools."
28486
+ "- Use Sideboard `linear_*` / `github_*` / `abletime_*` when that Account connection is set and the call works. If it is not set, or the Sideboard call fails because the connection is down, use the Claude connector for that service. Do not mention a Claude connector that failed to start (for example `mcp_github_github` or `plugin:github:github`) when the Sideboard connection is working. A vendor issue MCP that only needsAuth is noise \u2014 do not sign in to it while Sideboard covers that service."
28415
28487
  ];
28416
28488
  if (opts.linear) {
28417
28489
  lines.push(
@@ -28460,7 +28532,7 @@ function formatIssueToolsReminder(opts) {
28460
28532
  ].filter(Boolean);
28461
28533
  const ticket = opts.ticketId?.trim();
28462
28534
  const ticketBit = ticket ? ` This ticket: ${ticket}${opts.ticketProvider ? ` (${opts.ticketProvider})` : ""} \u2014 get; comment/update review findings only after they ask. Spin-offs use parent=.` : " get/comment/update/create (parent= for spin-offs).";
28463
- return `Issues: Sideboard ${names.join(" / ")} (Account). Ignore vendor issue MCP auth.${ticketBit} Review stays in chat \u2014 do not ask_user after it; they type next steps. Authors see comments immediately.`;
28535
+ return `Issues: Sideboard ${names.join(" / ")} when that Account connection works. If it is not set or the call fails, use the Claude connector. Do not mention a Claude connector startup failure when Sideboard covers it.${ticketBit} Review stays in chat \u2014 do not ask_user after it; they type next steps. Authors see comments immediately.`;
28464
28536
  }
28465
28537
  function formatLinearReminder(opts) {
28466
28538
  return formatIssueToolsReminder({
@@ -28813,7 +28885,7 @@ function connectorAuthCaution(posthog, cliConnected) {
28813
28885
  const signIn = posthog ? "If a connector MCP is listed but needsAuth or returns unauthorized, do not sign in to that MCP." : "If a Vercel, Supabase, or Sentry MCP is listed but needsAuth or returns unauthorized, do not sign in to that MCP.";
28814
28886
  const token = cliConnected ? " CLI tokens are already in this process." : "";
28815
28887
  const key = posthog ? " Do not read a PostHog key from the environment." : "";
28816
- return `${signIn}${token}${key}`;
28888
+ return `${signIn}${token}${key} When this Sideboard connection works, ignore a Claude connector that failed to start. Use the Claude connector only when this connection is not set or the CLI call fails.`;
28817
28889
  }
28818
28890
  function connectorReminderBit(spec, cli) {
28819
28891
  if (!spec.cli) return `${spec.label}: \`posthog_api\``;
@@ -28840,7 +28912,7 @@ function formatOptionalServicesReminder(integrations, cli) {
28840
28912
  const bits = connected.map((spec) => connectorReminderBit(spec, cli)).join(". ");
28841
28913
  const tokenBit = connected.some((spec) => spec.cli) ? "CLI tokens are already in this process. " : "";
28842
28914
  const posthog = connected.some((spec) => spec.id === "posthog");
28843
- const auth = posthog ? "If a connector MCP needsAuth or is unauthorized, ignore it and use the CLI or `posthog_api`. Do not read a PostHog key from the environment." : "If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, ignore it and use the CLI.";
28915
+ const auth = posthog ? "If a connector MCP needsAuth or is unauthorized, ignore it and use the CLI or `posthog_api` while this Sideboard connection works. Use the Claude connector only when it is not set or the call fails. Do not read a PostHog key from the environment." : "If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, ignore it and use the CLI while this Sideboard connection works. Use the Claude connector only when it is not set or the CLI call fails.";
28844
28916
  return `Settings \u2192 Connectors: ${tokenBit}${bits}. ${auth} Do not add vendor MCPs. Shell dumps from those CLIs go in \`.context/cli/\` \u2014 read a slice.`;
28845
28917
  }
28846
28918
  async function connectedCliPresence(integrations) {
package/dist/index.d.cts CHANGED
@@ -3800,6 +3800,16 @@ declare function listBrightsyChatTargets(): Promise<BrightsyChatTargets>;
3800
3800
  */
3801
3801
  declare const brightsyAdapter: AgentAdapter;
3802
3802
 
3803
+ /**
3804
+ * Claude Code `system/init` lists user + claude.ai MCP servers as `mcp_servers`
3805
+ * (array or map). Paint a thinking line for Sideboard not connected, or a user
3806
+ * stdio MCP that failed. A Claude connector that duplicates a working Sideboard
3807
+ * connection is noise. Mention that connector, including `claude.ai PostHog`,
3808
+ * when that Sideboard connection is unset or the Sideboard server failed.
3809
+ * Unrelated `claude.ai` servers (Slack, Gmail) stay off the line.
3810
+ */
3811
+ declare function mcpStatusThinkingFromClaudeInit(obj: Record<string, unknown>): string | null;
3812
+
3803
3813
  interface McpServerStatus {
3804
3814
  name: string;
3805
3815
  connected: boolean;
@@ -3874,13 +3884,6 @@ declare const CLAUDE_CHROME_ALLOWED_TOOLS: readonly ["mcp__claude-in-chrome", "m
3874
3884
  */
3875
3885
  declare const CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS: readonly ["mcp__claude_ai_PostHog", "mcp__claude_ai_PostHog__*"];
3876
3886
 
3877
- /**
3878
- * Claude Code `system/init` lists user + claude.ai MCP servers as `mcp_servers`
3879
- * (array or map). Only paint a thinking line when it can hide a real hang:
3880
- * Sideboard not connected, or a user stdio MCP that failed. Vendor / claude.ai
3881
- * `needsAuth` is noise — agents ignore those and use Sideboard issue tools.
3882
- */
3883
- declare function mcpStatusThinkingFromClaudeInit(obj: Record<string, unknown>): string | null;
3884
3887
  declare const claudeAdapter: AgentAdapter;
3885
3888
 
3886
3889
  /** Shared shape for composer agent model pickers. */
@@ -4501,7 +4504,9 @@ declare function issueTicketFromThread(thread?: Pick<Thread, 'sourceType' | 'sou
4501
4504
  declare function linearTicketIdFromThread(thread?: Pick<Thread, 'sourceType' | 'sourceRef'> | null): string | null;
4502
4505
  /**
4503
4506
  * Fresh-session playbook: Account Linear / GitHub / AbleTime via Sideboard MCP.
4504
- * Vendor issue MCPs need a separate login and should be ignored.
4507
+ * A Claude connector is the fallback when that Account connection is unset or
4508
+ * the Sideboard call fails. Do not narrate a connector startup failure while
4509
+ * Sideboard covers the service.
4505
4510
  */
4506
4511
  declare function formatIssueToolsDirective(opts: {
4507
4512
  linear: boolean;
package/dist/index.d.ts CHANGED
@@ -3800,6 +3800,16 @@ declare function listBrightsyChatTargets(): Promise<BrightsyChatTargets>;
3800
3800
  */
3801
3801
  declare const brightsyAdapter: AgentAdapter;
3802
3802
 
3803
+ /**
3804
+ * Claude Code `system/init` lists user + claude.ai MCP servers as `mcp_servers`
3805
+ * (array or map). Paint a thinking line for Sideboard not connected, or a user
3806
+ * stdio MCP that failed. A Claude connector that duplicates a working Sideboard
3807
+ * connection is noise. Mention that connector, including `claude.ai PostHog`,
3808
+ * when that Sideboard connection is unset or the Sideboard server failed.
3809
+ * Unrelated `claude.ai` servers (Slack, Gmail) stay off the line.
3810
+ */
3811
+ declare function mcpStatusThinkingFromClaudeInit(obj: Record<string, unknown>): string | null;
3812
+
3803
3813
  interface McpServerStatus {
3804
3814
  name: string;
3805
3815
  connected: boolean;
@@ -3874,13 +3884,6 @@ declare const CLAUDE_CHROME_ALLOWED_TOOLS: readonly ["mcp__claude-in-chrome", "m
3874
3884
  */
3875
3885
  declare const CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS: readonly ["mcp__claude_ai_PostHog", "mcp__claude_ai_PostHog__*"];
3876
3886
 
3877
- /**
3878
- * Claude Code `system/init` lists user + claude.ai MCP servers as `mcp_servers`
3879
- * (array or map). Only paint a thinking line when it can hide a real hang:
3880
- * Sideboard not connected, or a user stdio MCP that failed. Vendor / claude.ai
3881
- * `needsAuth` is noise — agents ignore those and use Sideboard issue tools.
3882
- */
3883
- declare function mcpStatusThinkingFromClaudeInit(obj: Record<string, unknown>): string | null;
3884
3887
  declare const claudeAdapter: AgentAdapter;
3885
3888
 
3886
3889
  /** Shared shape for composer agent model pickers. */
@@ -4501,7 +4504,9 @@ declare function issueTicketFromThread(thread?: Pick<Thread, 'sourceType' | 'sou
4501
4504
  declare function linearTicketIdFromThread(thread?: Pick<Thread, 'sourceType' | 'sourceRef'> | null): string | null;
4502
4505
  /**
4503
4506
  * Fresh-session playbook: Account Linear / GitHub / AbleTime via Sideboard MCP.
4504
- * Vendor issue MCPs need a separate login and should be ignored.
4507
+ * A Claude connector is the fallback when that Account connection is unset or
4508
+ * the Sideboard call fails. Do not narrate a connector startup failure while
4509
+ * Sideboard covers the service.
4505
4510
  */
4506
4511
  declare function formatIssueToolsDirective(opts: {
4507
4512
  linear: boolean;