@sideboard-ai/core 0.1.348 → 0.1.349

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 (41) hide show
  1. package/dist/agents/cursor-runner.js +3 -3
  2. package/dist/{agents-5MFGVK7C.js → agents-AZ2PV6XP.js} +7 -7
  3. package/dist/{agents-T4XBZZDA.js → agents-DMPBFF3F.js} +5 -5
  4. package/dist/{chunk-UGUWFONI.js → chunk-2E2HMJDU.js} +1 -1
  5. package/dist/{chunk-NTY5WGRD.js → chunk-3DBL2C45.js} +1 -1
  6. package/dist/{chunk-MOUAM6ZC.js → chunk-6RIPZ73M.js} +132 -2
  7. package/dist/{chunk-6TV6L2DD.js → chunk-CATTIFSP.js} +6 -5
  8. package/dist/{chunk-WMD77UCY.js → chunk-IRFBD6GU.js} +223 -55
  9. package/dist/{chunk-ORO4ENZR.js → chunk-LESWJ7L4.js} +1 -0
  10. package/dist/{chunk-XNGW4OYD.js → chunk-MHSBF3SO.js} +6 -5
  11. package/dist/{chunk-ZJMYCDYQ.js → chunk-MVFFLU5V.js} +47 -9
  12. package/dist/{chunk-OPXEJJBM.js → chunk-PWOFUPYM.js} +1 -0
  13. package/dist/{chunk-OH3BAUMC.js → chunk-Q4I6KDOL.js} +227 -59
  14. package/dist/{chunk-2HPVGTHF.js → chunk-QHXZKHUL.js} +1 -1
  15. package/dist/{chunk-GAGTEI6B.js → chunk-ROXM6QZV.js} +48 -10
  16. package/dist/{chunk-ATS7SYHG.js → chunk-RPHH4FNK.js} +132 -2
  17. package/dist/{chunk-Y6VQX2LY.js → chunk-WHMLMCPU.js} +11 -5
  18. package/dist/{chunk-BIM24I3O.js → chunk-WWBPK7GB.js} +1 -1
  19. package/dist/{chunk-5YCKATG6.js → chunk-YVN7L4KG.js} +1 -1
  20. package/dist/{chunk-Q4TZA4MN.js → chunk-ZXI5DR5S.js} +12 -6
  21. package/dist/{conductor-EMGMDNHL.js → conductor-65VPUPOW.js} +6 -6
  22. package/dist/{conductor-LYQKONSA.js → conductor-NHC6X74J.js} +5 -5
  23. package/dist/{coordinator-prompt-DLY3FS2L.js → coordinator-prompt-5GZWIVSY.js} +3 -3
  24. package/dist/{coordinator-prompt-WALVMGKI.js → coordinator-prompt-R2PURZL3.js} +3 -3
  25. package/dist/{global-workspace-UG2A3CEM.js → global-workspace-64KC7PST.js} +3 -3
  26. package/dist/{global-workspace-7OQ5O6JT.js → global-workspace-UEECLWSX.js} +3 -3
  27. package/dist/index.cjs +1298 -849
  28. package/dist/index.d.cts +30 -8
  29. package/dist/index.d.ts +30 -8
  30. package/dist/index.js +445 -365
  31. package/dist/mcp/run-stdio.cjs +1033 -585
  32. package/dist/mcp/run-stdio.js +296 -216
  33. package/dist/{orchestrator-4SXTORD2.js → orchestrator-I5G5A5BV.js} +7 -7
  34. package/dist/{orchestrator-KNOMW5CZ.js → orchestrator-Y5PYSMR6.js} +9 -9
  35. package/dist/{thread-store-R3G5VBII.js → thread-store-HZ4U4OXB.js} +1 -1
  36. package/dist/{thread-store-MEUWZDVV.js → thread-store-QKNU5CHM.js} +1 -1
  37. package/dist/{workspaces-KWGTP7DI.js → workspaces-6TIM2TM2.js} +3 -3
  38. package/dist/{workspaces-35T6FW57.js → workspaces-I2EHNTFE.js} +3 -3
  39. package/dist/{worktree-ROJXGBWS.js → worktree-7JFYDNUX.js} +2 -2
  40. package/dist/{worktree-5P7SCST3.js → worktree-M2GJGK2P.js} +2 -2
  41. package/package.json +1 -1
@@ -2,17 +2,17 @@ import {
2
2
  compactSummaryPart,
3
3
  isInternalAgentStatusText,
4
4
  lastAssistantMessageText
5
- } from "./chunk-BIM24I3O.js";
5
+ } from "./chunk-WWBPK7GB.js";
6
6
  import {
7
7
  isCloudCoordinatorThread,
8
8
  isGlobalThread,
9
9
  isOrchestratorThread,
10
10
  isSlackCoordinatorThread
11
- } from "./chunk-XNGW4OYD.js";
11
+ } from "./chunk-MHSBF3SO.js";
12
12
  import {
13
13
  mergeAgentGitAuthEnv,
14
14
  resolveAgentGitAuthEnv
15
- } from "./chunk-NTY5WGRD.js";
15
+ } from "./chunk-3DBL2C45.js";
16
16
  import {
17
17
  REVIEW_TAB_TITLE,
18
18
  allocateTeamName,
@@ -24,7 +24,7 @@ import {
24
24
  updateThread,
25
25
  worktreeNameFromPath,
26
26
  writeThread
27
- } from "./chunk-ATS7SYHG.js";
27
+ } from "./chunk-RPHH4FNK.js";
28
28
  import {
29
29
  ensureWorktreeSideboardIgnored
30
30
  } from "./chunk-BMRJNRQK.js";
@@ -34,8 +34,11 @@ import {
34
34
  lastTopLevelToolIsAskUser
35
35
  } from "./chunk-NJV5YEKI.js";
36
36
  import {
37
- clipToolResultForStore
38
- } from "./chunk-OPXEJJBM.js";
37
+ clipToolResultForStore,
38
+ looksLikeInvalidAgentSession,
39
+ looksLikeRetryableRunnerCrash,
40
+ looksLikeV8Oom
41
+ } from "./chunk-PWOFUPYM.js";
39
42
  import {
40
43
  ATTACHMENTS_DIR,
41
44
  DETACHED_JOBS_DIR,
@@ -1218,6 +1221,29 @@ function jobTreeAlive(pid) {
1218
1221
  return jobAlive(pid) || processGroupAlive(pid);
1219
1222
  }
1220
1223
 
1224
+ // src/agents/turn-failure-class.ts
1225
+ function classifyTurnFailure(detail) {
1226
+ const text = detail?.trim() ?? "";
1227
+ if (!text) return null;
1228
+ const lower = text.toLowerCase();
1229
+ if (/you've hit your|hit your (session|weekly|opus) limit|usage limit/.test(lower) || /credit balance is too low|out of credits|insufficient.?quota|quota.?exceeded/.test(lower) || /\b429\b|too many requests|rate.?limit/.test(lower) || /\[resource_exhausted\]|resource_exhausted/.test(lower)) {
1230
+ return "quota";
1231
+ }
1232
+ if (/invalid user api key|invalid api key|not logged in|not authenticated|please run.*login|codex login|claude auth/.test(
1233
+ lower
1234
+ )) {
1235
+ return "auth";
1236
+ }
1237
+ if (/prompt is too long|context.*(too long|exceed)|conversation too long/.test(lower) || /model .{0,80}(not found|unavailable|unknown|invalid)/.test(lower) || /\brefus(ed|al)\b|content policy/.test(lower)) {
1238
+ return "refused";
1239
+ }
1240
+ if (/connection stalled|\btimed out\b|inactivity timeout|\bETIMEDOUT\b/.test(lower)) return "timeout";
1241
+ if (looksLikeRetryableRunnerCrash(text) || looksLikeV8Oom(text) || looksLikeInvalidAgentSession(text)) {
1242
+ return "runner";
1243
+ }
1244
+ return "other";
1245
+ }
1246
+
1221
1247
  // src/orchestrator/task-state.ts
1222
1248
  function isTerminalTaskState(state) {
1223
1249
  return state !== "submitted" && state !== "working";
@@ -1285,8 +1311,17 @@ var MCP_WAIT_QUEUED_HINT = "Child is queued waiting for a concurrency slot \u201
1285
1311
  var MCP_WAIT_STOPPED_HINT = "Child was stopped before the turn finished. Do not treat this as success. send_to_chat to resume, or tell the user.";
1286
1312
  var MCP_WAIT_BROKEN_HINT = "Child worktree is broken (missing on disk). Tell the user \u2014 do not treat this as success.";
1287
1313
  var MCP_WAIT_ERROR_HINT = "Child turn failed. lastError/text is the failure \u2014 switch agent, tell the user, or retry. Do not treat empty text as success.";
1314
+ function mcpWaitFailureHint(failureClass) {
1315
+ if (failureClass === "auth" || failureClass === "quota" || failureClass === "refused") {
1316
+ return `Child turn failed (${failureClass}). Do not retry the same request. Tell the user or switch agent.`;
1317
+ }
1318
+ if (failureClass === "timeout" || failureClass === "runner") {
1319
+ return `Child turn failed (${failureClass}). One retry is reasonable. Do not treat empty text as success.`;
1320
+ }
1321
+ return MCP_WAIT_ERROR_HINT;
1322
+ }
1288
1323
  var MCP_WAIT_INPUT_REQUIRED_HINT = "Child asked the user a question (ask_user). taskState is input-required. Wait for the user to answer in that chat \u2014 do not send_to_chat a check-in.";
1289
- function mcpWaitTaskHint(taskState, status, blockedReason) {
1324
+ function mcpWaitTaskHint(taskState, status, blockedReason, failureClass) {
1290
1325
  const why = blockedReason?.trim();
1291
1326
  if (why && taskState !== "failed" && taskState !== "canceled") {
1292
1327
  if (taskState === "submitted" || taskState === "working") {
@@ -1307,7 +1342,7 @@ function mcpWaitTaskHint(taskState, status, blockedReason) {
1307
1342
  case "canceled":
1308
1343
  return MCP_WAIT_STOPPED_HINT;
1309
1344
  case "failed":
1310
- return status === "broken" ? MCP_WAIT_BROKEN_HINT : MCP_WAIT_ERROR_HINT;
1345
+ return status === "broken" ? MCP_WAIT_BROKEN_HINT : mcpWaitFailureHint(failureClass ?? null);
1311
1346
  default:
1312
1347
  return void 0;
1313
1348
  }
@@ -1327,12 +1362,14 @@ function lastActivityAtForWait(stillRunning, liveUpdatedAt, fallbacks) {
1327
1362
  function waitForTurnToolResult(input) {
1328
1363
  const blockedReason = input.blockedReason?.trim() ? input.blockedReason.trim() : null;
1329
1364
  const waiting = Boolean(blockedReason) && !input.stillRunning && input.taskState !== "failed" && input.taskState !== "canceled";
1365
+ const failureClass = input.taskState === "failed" && input.status !== "broken" ? classifyTurnFailure(input.lastError || input.text) : null;
1330
1366
  return {
1331
1367
  ...input,
1332
1368
  usage: input.usage ?? null,
1333
1369
  blockedReason,
1334
1370
  blockedSource: blockedReason ? input.blockedSource ?? null : null,
1335
- hint: mcpWaitTaskHint(input.taskState, input.status, blockedReason),
1371
+ failureClass,
1372
+ hint: mcpWaitTaskHint(input.taskState, input.status, blockedReason, failureClass),
1336
1373
  incomplete: needsCoordinatorAction(input.taskState) || waiting
1337
1374
  };
1338
1375
  }
@@ -1705,7 +1742,7 @@ var PORT_RANGE_SIZE = 10;
1705
1742
  var RECLAIM_RETRY_DELAY_MS = 40;
1706
1743
  var RECLAIM_TRIES = 8;
1707
1744
  async function killReclaimable(ports, worktreePath, signal) {
1708
- const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-EMGMDNHL.js");
1745
+ const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-65VPUPOW.js");
1709
1746
  if (worktreePath) killStaleWorktreeListeners2(ports, worktreePath, signal);
1710
1747
  else killListenersOnPorts2(ports);
1711
1748
  }
@@ -2392,6 +2429,7 @@ export {
2392
2429
  endedOnAskUser,
2393
2430
  userRepliedAfterAgent,
2394
2431
  deriveTaskState,
2432
+ classifyTurnFailure,
2395
2433
  mcpWaitForTurnTimeoutMs,
2396
2434
  mcpWaitTaskHint,
2397
2435
  lastActivityAtForWait,
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-H4UEFJRI.js";
23
23
 
24
24
  // src/store/thread-store.ts
25
- import { randomUUID as randomUUID2 } from "crypto";
25
+ import { randomUUID as randomUUID3 } from "crypto";
26
26
 
27
27
  // src/review/review-write-gate.ts
28
28
  var REVIEW_TAB_TITLE = "Review";
@@ -1490,6 +1490,130 @@ function recordScheduleRun(id, result) {
1490
1490
  return next;
1491
1491
  }
1492
1492
 
1493
+ // src/threads/chat-follow-ups.ts
1494
+ import { randomUUID as randomUUID2 } from "crypto";
1495
+ var MAX_CHAT_FOLLOW_UPS = 10;
1496
+ var DEFAULT_FOLLOW_UP_DEADLINE_MS = 7 * 24 * 60 * 60 * 1e3;
1497
+ function ciChecksSettled(checks) {
1498
+ if (!checks) return "none";
1499
+ if (checks.length === 0) return "none";
1500
+ if (checks.some((check) => (check.bucket ?? "pending") === "pending")) return "pending";
1501
+ return "done";
1502
+ }
1503
+ function parseFollowUpAt(raw, now) {
1504
+ const text = raw.trim();
1505
+ const rel = /^(\d+)(m|h|d)$/i.exec(text);
1506
+ if (rel) {
1507
+ const n = Number(rel[1]);
1508
+ if (!Number.isFinite(n) || n <= 0) return null;
1509
+ const unit = rel[2].toLowerCase();
1510
+ const ms2 = unit === "m" ? 6e4 : unit === "h" ? 36e5 : 864e5;
1511
+ return new Date(now.getTime() + n * ms2).toISOString();
1512
+ }
1513
+ const ms = Date.parse(text);
1514
+ if (!Number.isFinite(ms)) return null;
1515
+ return new Date(ms).toISOString();
1516
+ }
1517
+ function normalizeChatFollowUps(raw) {
1518
+ if (!Array.isArray(raw)) return [];
1519
+ const out = [];
1520
+ for (const item of raw) {
1521
+ if (!item || typeof item !== "object") continue;
1522
+ const row = item;
1523
+ if (row.kind !== "ci" && row.kind !== "at") continue;
1524
+ if (typeof row.prompt !== "string" || !row.prompt.trim()) continue;
1525
+ if (typeof row.deadline !== "string" || !row.deadline.trim()) continue;
1526
+ if (typeof row.createdAt !== "string" || !row.createdAt.trim()) continue;
1527
+ if (typeof row.id !== "string" || !row.id.trim()) continue;
1528
+ const baseline = row.ciBaseline;
1529
+ const followUp = {
1530
+ id: row.id.trim(),
1531
+ kind: row.kind,
1532
+ prompt: row.prompt.trim(),
1533
+ deadline: row.deadline.trim(),
1534
+ createdAt: row.createdAt.trim()
1535
+ };
1536
+ if (typeof row.at === "string" && row.at.trim()) followUp.at = row.at.trim();
1537
+ if (baseline === "pending" || baseline === "done" || baseline === "none" || baseline === "unknown") {
1538
+ followUp.ciBaseline = baseline;
1539
+ }
1540
+ if (row.ciSawPending === true) followUp.ciSawPending = true;
1541
+ out.push(followUp);
1542
+ if (out.length >= MAX_CHAT_FOLLOW_UPS) break;
1543
+ }
1544
+ return out;
1545
+ }
1546
+ function addChatFollowUp(existing, draft, now) {
1547
+ if (existing.length >= MAX_CHAT_FOLLOW_UPS) {
1548
+ return { ok: false, error: "This chat already has 10 follow-ups." };
1549
+ }
1550
+ const prompt = draft.prompt.trim();
1551
+ if (!prompt) return { ok: false, error: "prompt is required" };
1552
+ let at;
1553
+ let deadline;
1554
+ if (draft.kind === "at") {
1555
+ if (!draft.at?.trim()) return { ok: false, error: "at is required for a time follow-up" };
1556
+ const parsed = parseFollowUpAt(draft.at, now);
1557
+ if (!parsed) return { ok: false, error: "at must be 30m, 2h, 1d, or an ISO time" };
1558
+ at = parsed;
1559
+ deadline = draft.deadline?.trim() ? parseFollowUpAt(draft.deadline, now) ?? "" : parsed;
1560
+ if (!deadline) return { ok: false, error: "deadline must be 30m, 2h, 1d, or an ISO time" };
1561
+ } else {
1562
+ deadline = draft.deadline?.trim() ? parseFollowUpAt(draft.deadline, now) ?? "" : new Date(now.getTime() + DEFAULT_FOLLOW_UP_DEADLINE_MS).toISOString();
1563
+ if (!deadline) return { ok: false, error: "deadline must be 30m, 2h, 1d, or an ISO time" };
1564
+ }
1565
+ const followUp = {
1566
+ id: randomUUID2(),
1567
+ kind: draft.kind,
1568
+ prompt,
1569
+ deadline,
1570
+ createdAt: now.toISOString(),
1571
+ ...at ? { at } : {},
1572
+ ...draft.kind === "ci" && draft.ciBaseline ? { ciBaseline: draft.ciBaseline } : {}
1573
+ };
1574
+ return { ok: true, followUps: [...existing, followUp] };
1575
+ }
1576
+ function decideFollowUps(input) {
1577
+ const fire = [];
1578
+ const keep = [];
1579
+ const nowMs = input.now.getTime();
1580
+ for (const item of input.followUps) {
1581
+ if (item.kind === "at") {
1582
+ const atMs = Date.parse(item.at ?? item.deadline);
1583
+ if (Number.isFinite(atMs) && nowMs >= atMs) fire.push(item);
1584
+ else keep.push(item);
1585
+ continue;
1586
+ }
1587
+ const sawPending = item.ciSawPending === true || input.ci === "pending" || item.ciBaseline === "pending";
1588
+ const next = sawPending ? { ...item, ciSawPending: true } : item;
1589
+ const alreadyFinished = item.ciBaseline === "done" && item.ciSawPending !== true && input.ci === "done";
1590
+ const baselineCanFinish = item.ciBaseline === "pending" || item.ciBaseline === "none" || item.ciSawPending === true;
1591
+ const ready = input.ci === "done" && !alreadyFinished && baselineCanFinish;
1592
+ if (ready) {
1593
+ fire.push(item);
1594
+ continue;
1595
+ }
1596
+ const deadlineMs = Date.parse(item.deadline);
1597
+ if (Number.isFinite(deadlineMs) && nowMs >= deadlineMs) continue;
1598
+ keep.push(next);
1599
+ }
1600
+ return { fire, keep };
1601
+ }
1602
+ function mergeFollowUpPoll(input) {
1603
+ const fired = new Set(input.firedIds);
1604
+ const keepById = new Map(input.keep.map((item) => [item.id, item]));
1605
+ const beforeIds = new Set(input.before.map((item) => item.id));
1606
+ return input.after.flatMap((item) => {
1607
+ if (fired.has(item.id)) return [];
1608
+ const fromPoll = keepById.get(item.id);
1609
+ if (beforeIds.has(item.id) && !fromPoll) return [];
1610
+ if (fromPoll?.ciSawPending && item.ciSawPending !== true) {
1611
+ return [{ ...item, ciSawPending: true }];
1612
+ }
1613
+ return [item];
1614
+ });
1615
+ }
1616
+
1493
1617
  // src/store/thread-store.ts
1494
1618
  function nowIso2() {
1495
1619
  return (/* @__PURE__ */ new Date()).toISOString();
@@ -1564,6 +1688,7 @@ function normalizeThread(raw) {
1564
1688
  prLabels: Array.isArray(raw.prLabels) ? raw.prLabels : [],
1565
1689
  prChecksFailed: typeof raw.prChecksFailed === "boolean" ? raw.prChecksFailed : void 0,
1566
1690
  wakeOnGithubEdges: raw.wakeOnGithubEdges === true ? true : void 0,
1691
+ followUps: normalizeChatFollowUps(raw.followUps),
1567
1692
  issueBlockedBy: sanitizeIssueBlockedBy(raw.issueBlockedBy),
1568
1693
  skipAutoArchiveOnMerge: Boolean(raw.skipAutoArchiveOnMerge),
1569
1694
  cowboy: Boolean(raw.cowboy),
@@ -1583,7 +1708,7 @@ function normalizeThread(raw) {
1583
1708
  function createEmptyThread(partial) {
1584
1709
  const ts = nowIso2();
1585
1710
  return {
1586
- id: randomUUID2(),
1711
+ id: randomUUID3(),
1587
1712
  sessionId: partial.sessionId ?? null,
1588
1713
  autonomy: partial.autonomy ?? "default",
1589
1714
  model: partial.model ?? null,
@@ -1835,6 +1960,11 @@ export {
1835
1960
  deleteSchedulesForThread,
1836
1961
  deleteSchedule,
1837
1962
  recordScheduleRun,
1963
+ ciChecksSettled,
1964
+ normalizeChatFollowUps,
1965
+ addChatFollowUp,
1966
+ decideFollowUps,
1967
+ mergeFollowUpPoll,
1838
1968
  resolveThreadEffort,
1839
1969
  normalizeThread,
1840
1970
  createEmptyThread,
@@ -9,16 +9,16 @@ import {
9
9
  looksLikeSkillBody,
10
10
  skillCommandFromBody,
11
11
  withEventParentId
12
- } from "./chunk-ORO4ENZR.js";
12
+ } from "./chunk-LESWJ7L4.js";
13
13
  import {
14
14
  isOrchestratorThread
15
- } from "./chunk-6TV6L2DD.js";
15
+ } from "./chunk-CATTIFSP.js";
16
16
  import {
17
17
  codexUnattendedGitConfigArgs,
18
18
  mergeAgentGitAuthEnv,
19
19
  resolveAgentGitAuthEnv,
20
20
  resolveCodexGitWritableRoots
21
- } from "./chunk-2HPVGTHF.js";
21
+ } from "./chunk-QHXZKHUL.js";
22
22
  import {
23
23
  applyConnectedTeamToCli,
24
24
  brightsyMcpServerName,
@@ -45,7 +45,7 @@ import {
45
45
  CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS,
46
46
  CLAUDE_PRINT_BG_WAIT_CEILING_MS,
47
47
  mcpAllowToolsFromNames
48
- } from "./chunk-MOUAM6ZC.js";
48
+ } from "./chunk-6RIPZ73M.js";
49
49
  import {
50
50
  claudeChromeEnabled,
51
51
  fromInclusiveInputUsage,
@@ -1008,6 +1008,9 @@ var WORKTREE_MCP_TOOLS = [
1008
1008
  "update_schedule",
1009
1009
  "delete_schedule",
1010
1010
  "run_schedule",
1011
+ "list_follow_ups",
1012
+ "create_follow_up",
1013
+ "delete_follow_up",
1011
1014
  "list_order",
1012
1015
  "show_plan",
1013
1016
  "set_dependency",
@@ -1481,6 +1484,9 @@ var SIDEBOARD_ARTIFACT_MCP_ALLOWED_TOOLS = [
1481
1484
  "mcp__sideboard__update_schedule",
1482
1485
  "mcp__sideboard__delete_schedule",
1483
1486
  "mcp__sideboard__run_schedule",
1487
+ "mcp__sideboard__list_follow_ups",
1488
+ "mcp__sideboard__create_follow_up",
1489
+ "mcp__sideboard__delete_follow_up",
1484
1490
  "mcp__sideboard__list_order",
1485
1491
  "mcp__sideboard__show_plan",
1486
1492
  "mcp__sideboard__set_dependency",
@@ -3438,7 +3444,7 @@ var claudeAdapter = {
3438
3444
  );
3439
3445
  }
3440
3446
  const mode = permissionMode(thread);
3441
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-7OQ5O6JT.js");
3447
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-UEECLWSX.js");
3442
3448
  const isOrchestrator = isOrchestratorThread2(thread);
3443
3449
  const rpc = worktreeAgentRpc(isOrchestrator);
3444
3450
  const injectedServers = await buildInjectedMcpServers({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clipToolResultForStore
3
- } from "./chunk-OPXEJJBM.js";
3
+ } from "./chunk-PWOFUPYM.js";
4
4
 
5
5
  // src/agents/message-parts.ts
6
6
  function asRecord(input) {
@@ -4,7 +4,7 @@ import {
4
4
  formatUnknownDetail,
5
5
  looksLikeCursorStreamCutOff,
6
6
  looksLikeHugeToolResultDump
7
- } from "./chunk-OPXEJJBM.js";
7
+ } from "./chunk-PWOFUPYM.js";
8
8
  import {
9
9
  CLI_DIR
10
10
  } from "./chunk-6K64FJDD.js";
@@ -12,16 +12,16 @@ import {
12
12
  looksLikeSkillBody,
13
13
  skillCommandFromBody,
14
14
  withEventParentId
15
- } from "./chunk-BIM24I3O.js";
15
+ } from "./chunk-WWBPK7GB.js";
16
16
  import {
17
17
  isOrchestratorThread
18
- } from "./chunk-XNGW4OYD.js";
18
+ } from "./chunk-MHSBF3SO.js";
19
19
  import {
20
20
  codexUnattendedGitConfigArgs,
21
21
  mergeAgentGitAuthEnv,
22
22
  resolveAgentGitAuthEnv,
23
23
  resolveCodexGitWritableRoots
24
- } from "./chunk-NTY5WGRD.js";
24
+ } from "./chunk-3DBL2C45.js";
25
25
  import {
26
26
  loadBrightsyConfig
27
27
  } from "./chunk-RSA47QYR.js";
@@ -48,13 +48,13 @@ import {
48
48
  packagedMcpStdioPath,
49
49
  parseCursorRunnerLine,
50
50
  resolveNodeLaunch
51
- } from "./chunk-UGUWFONI.js";
51
+ } from "./chunk-2E2HMJDU.js";
52
52
  import {
53
53
  extractJsonErrorMessage,
54
54
  formatUnknownDetail,
55
55
  looksLikeAgentFailureMessage,
56
56
  looksLikeBrightsyEmptyCompletion
57
- } from "./chunk-OPXEJJBM.js";
57
+ } from "./chunk-PWOFUPYM.js";
58
58
  import {
59
59
  githubAgentAuthReady,
60
60
  run
@@ -1065,6 +1065,9 @@ var WORKTREE_MCP_TOOLS = [
1065
1065
  "update_schedule",
1066
1066
  "delete_schedule",
1067
1067
  "run_schedule",
1068
+ "list_follow_ups",
1069
+ "create_follow_up",
1070
+ "delete_follow_up",
1068
1071
  "list_order",
1069
1072
  "show_plan",
1070
1073
  "set_dependency",
@@ -1175,6 +1178,9 @@ var SIDEBOARD_ARTIFACT_MCP_ALLOWED_TOOLS = [
1175
1178
  "mcp__sideboard__update_schedule",
1176
1179
  "mcp__sideboard__delete_schedule",
1177
1180
  "mcp__sideboard__run_schedule",
1181
+ "mcp__sideboard__list_follow_ups",
1182
+ "mcp__sideboard__create_follow_up",
1183
+ "mcp__sideboard__delete_follow_up",
1178
1184
  "mcp__sideboard__list_order",
1179
1185
  "mcp__sideboard__show_plan",
1180
1186
  "mcp__sideboard__set_dependency",
@@ -3131,7 +3137,7 @@ var claudeAdapter = {
3131
3137
  );
3132
3138
  }
3133
3139
  const mode = permissionMode(thread);
3134
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-UG2A3CEM.js");
3140
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-64KC7PST.js");
3135
3141
  const isOrchestrator = isOrchestratorThread2(thread);
3136
3142
  const rpc = worktreeAgentRpc(isOrchestrator);
3137
3143
  const injectedServers = await buildInjectedMcpServers({
@@ -32,15 +32,15 @@ import {
32
32
  tryReservePort,
33
33
  tryReservePorts,
34
34
  worktreeRunPortsPath
35
- } from "./chunk-GAGTEI6B.js";
36
- import "./chunk-BIM24I3O.js";
37
- import "./chunk-XNGW4OYD.js";
38
- import "./chunk-NTY5WGRD.js";
39
- import "./chunk-ATS7SYHG.js";
35
+ } from "./chunk-ROXM6QZV.js";
36
+ import "./chunk-WWBPK7GB.js";
37
+ import "./chunk-MHSBF3SO.js";
38
+ import "./chunk-3DBL2C45.js";
39
+ import "./chunk-RPHH4FNK.js";
40
40
  import "./chunk-BMRJNRQK.js";
41
41
  import "./chunk-NJV5YEKI.js";
42
42
  import "./chunk-N6ZF3XRP.js";
43
- import "./chunk-OPXEJJBM.js";
43
+ import "./chunk-PWOFUPYM.js";
44
44
  import "./chunk-6K64FJDD.js";
45
45
  import "./chunk-LG6RJBIY.js";
46
46
  import "./chunk-R4W4VQJZ.js";
@@ -34,14 +34,14 @@ import {
34
34
  tryReservePort,
35
35
  tryReservePorts,
36
36
  worktreeRunPortsPath
37
- } from "./chunk-ZJMYCDYQ.js";
38
- import "./chunk-ORO4ENZR.js";
39
- import "./chunk-6TV6L2DD.js";
40
- import "./chunk-2HPVGTHF.js";
37
+ } from "./chunk-MVFFLU5V.js";
38
+ import "./chunk-LESWJ7L4.js";
39
+ import "./chunk-CATTIFSP.js";
40
+ import "./chunk-QHXZKHUL.js";
41
41
  import "./chunk-N2WW62LF.js";
42
42
  import "./chunk-GK7H3SY7.js";
43
43
  import "./chunk-TL2HK6LZ.js";
44
- import "./chunk-MOUAM6ZC.js";
44
+ import "./chunk-6RIPZ73M.js";
45
45
  import "./chunk-WMZIANPV.js";
46
46
  import "./chunk-WWU4SYZR.js";
47
47
  import "./chunk-NSTQ6QKD.js";
@@ -7,9 +7,9 @@ import {
7
7
  enrichWorkspacesWithGithub,
8
8
  ensureGlobalCoordinatorCwd,
9
9
  formatWorkspaceInventory
10
- } from "./chunk-XNGW4OYD.js";
11
- import "./chunk-NTY5WGRD.js";
12
- import "./chunk-ATS7SYHG.js";
10
+ } from "./chunk-MHSBF3SO.js";
11
+ import "./chunk-3DBL2C45.js";
12
+ import "./chunk-RPHH4FNK.js";
13
13
  import "./chunk-BMRJNRQK.js";
14
14
  import "./chunk-N6ZF3XRP.js";
15
15
  import "./chunk-6K64FJDD.js";
@@ -9,12 +9,12 @@ import {
9
9
  enrichWorkspacesWithGithub,
10
10
  ensureGlobalCoordinatorCwd,
11
11
  formatWorkspaceInventory
12
- } from "./chunk-6TV6L2DD.js";
13
- import "./chunk-2HPVGTHF.js";
12
+ } from "./chunk-CATTIFSP.js";
13
+ import "./chunk-QHXZKHUL.js";
14
14
  import "./chunk-N2WW62LF.js";
15
15
  import "./chunk-GK7H3SY7.js";
16
16
  import "./chunk-TL2HK6LZ.js";
17
- import "./chunk-MOUAM6ZC.js";
17
+ import "./chunk-6RIPZ73M.js";
18
18
  import "./chunk-WMZIANPV.js";
19
19
  import "./chunk-WWU4SYZR.js";
20
20
  import "./chunk-NSTQ6QKD.js";
@@ -18,9 +18,9 @@ import {
18
18
  remoteCoordinatorSourceRef,
19
19
  slackCoordinatorSourceRef,
20
20
  takenTeamSlugsForOrchestration
21
- } from "./chunk-XNGW4OYD.js";
22
- import "./chunk-NTY5WGRD.js";
23
- import "./chunk-ATS7SYHG.js";
21
+ } from "./chunk-MHSBF3SO.js";
22
+ import "./chunk-3DBL2C45.js";
23
+ import "./chunk-RPHH4FNK.js";
24
24
  import "./chunk-BMRJNRQK.js";
25
25
  import "./chunk-N6ZF3XRP.js";
26
26
  import "./chunk-6K64FJDD.js";
@@ -20,12 +20,12 @@ import {
20
20
  remoteCoordinatorSourceRef,
21
21
  slackCoordinatorSourceRef,
22
22
  takenTeamSlugsForOrchestration
23
- } from "./chunk-6TV6L2DD.js";
24
- import "./chunk-2HPVGTHF.js";
23
+ } from "./chunk-CATTIFSP.js";
24
+ import "./chunk-QHXZKHUL.js";
25
25
  import "./chunk-N2WW62LF.js";
26
26
  import "./chunk-GK7H3SY7.js";
27
27
  import "./chunk-TL2HK6LZ.js";
28
- import "./chunk-MOUAM6ZC.js";
28
+ import "./chunk-6RIPZ73M.js";
29
29
  import "./chunk-WMZIANPV.js";
30
30
  import "./chunk-WWU4SYZR.js";
31
31
  import "./chunk-NSTQ6QKD.js";