@sideboard-ai/core 0.1.340 → 0.1.341

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 (69) hide show
  1. package/dist/{abletime-TNONAVJG.js → abletime-AYYRRDT2.js} +4 -4
  2. package/dist/{abletime-OGOHNRVB.js → abletime-MK4T5FZY.js} +4 -4
  3. package/dist/{abletime-oauth-TYDQ73GK.js → abletime-oauth-7TOEFRWH.js} +3 -3
  4. package/dist/{abletime-oauth-DAZEUQJI.js → abletime-oauth-NB34M4X4.js} +3 -3
  5. package/dist/{abletime-rest-3FWZGTX6.js → abletime-rest-7M3QXAXY.js} +3 -3
  6. package/dist/{abletime-rest-B4VI46MI.js → abletime-rest-IF7IMJGU.js} +3 -3
  7. package/dist/{agents-QFXIBIKJ.js → agents-4WL4U5WD.js} +8 -8
  8. package/dist/{agents-6MSZHZOM.js → agents-FH5NVVCJ.js} +8 -8
  9. package/dist/{app-settings-KOSVLMO5.js → app-settings-377375BJ.js} +3 -1
  10. package/dist/{app-settings-YS5AUJTF.js → app-settings-YTOPIRDH.js} +3 -1
  11. package/dist/{chunk-W6J3ZWLJ.js → chunk-2IA556KV.js} +2 -2
  12. package/dist/{chunk-SYTTUNX6.js → chunk-3HJ2USRA.js} +1 -1
  13. package/dist/{chunk-5FGQTB2Z.js → chunk-43BOPWFV.js} +2 -2
  14. package/dist/{chunk-4BRO5LNX.js → chunk-47UDPUVZ.js} +3 -3
  15. package/dist/{chunk-FCBUDWP6.js → chunk-4BUTF5LN.js} +2 -2
  16. package/dist/{chunk-NHLTTT5G.js → chunk-4RIKHUKB.js} +7 -6
  17. package/dist/{chunk-HNW5KMGK.js → chunk-5MHENWO5.js} +2 -2
  18. package/dist/{chunk-6ABL7HZN.js → chunk-5VXE4ZI4.js} +10 -8
  19. package/dist/{chunk-DYUAVL5S.js → chunk-BIM24I3O.js} +1 -0
  20. package/dist/{chunk-VHHEQP5V.js → chunk-CMYGUGGZ.js} +11 -9
  21. package/dist/{chunk-5TVRPOVS.js → chunk-CN7GSNEL.js} +1 -1
  22. package/dist/{chunk-EZZY3EAZ.js → chunk-COFHTNQU.js} +666 -62
  23. package/dist/{chunk-N6TGSJVC.js → chunk-DF34F3QR.js} +10 -0
  24. package/dist/{chunk-PEJ3N5VE.js → chunk-DF3S5X3H.js} +7 -6
  25. package/dist/{chunk-LYJ5AVK4.js → chunk-FVX7JWFW.js} +2 -2
  26. package/dist/{chunk-4SP26Z6H.js → chunk-HNIEEKKR.js} +5 -5
  27. package/dist/{chunk-4OVQGZEI.js → chunk-HZRYQ27Z.js} +48 -26
  28. package/dist/{chunk-OMKTX7ZW.js → chunk-I5C42O2M.js} +3 -3
  29. package/dist/{chunk-Q73I6I2K.js → chunk-IY4YNHYD.js} +1 -1
  30. package/dist/{chunk-EVYOONTE.js → chunk-K355SYYX.js} +5 -5
  31. package/dist/{chunk-BD7QARIJ.js → chunk-MGV6JFDY.js} +5 -5
  32. package/dist/{chunk-KAIOL2M5.js → chunk-NF3KRZXV.js} +1 -1
  33. package/dist/{chunk-AFSLMWQK.js → chunk-O6UAW76V.js} +42 -3
  34. package/dist/{chunk-5KH3EQ2C.js → chunk-ORO4ENZR.js} +1 -0
  35. package/dist/{chunk-ELDHERAD.js → chunk-PHLFFV2M.js} +661 -56
  36. package/dist/{chunk-ERCYQTJU.js → chunk-QBUX2EDG.js} +48 -26
  37. package/dist/{chunk-FEGRY7NL.js → chunk-QULOUTDQ.js} +3 -3
  38. package/dist/{chunk-23KYDM2U.js → chunk-RZUZU5KD.js} +10 -0
  39. package/dist/{chunk-BDQFZAE6.js → chunk-SLTWZRBN.js} +43 -3
  40. package/dist/{chunk-QWFNKOGA.js → chunk-TZFYBQAD.js} +2 -2
  41. package/dist/{chunk-I2C5ZRVO.js → chunk-WSW27W5R.js} +1 -1
  42. package/dist/{chunk-WSZIJNAR.js → chunk-ZS7AY6DS.js} +5 -5
  43. package/dist/{conductor-AUUXCJZT.js → conductor-QZKG7YPO.js} +6 -6
  44. package/dist/{conductor-LEPTWN2U.js → conductor-RGVRIOTZ.js} +6 -6
  45. package/dist/{coordinator-prompt-CIWWP2P6.js → coordinator-prompt-66UHVADL.js} +4 -4
  46. package/dist/{coordinator-prompt-VO42IZWS.js → coordinator-prompt-CDVIFBYS.js} +4 -4
  47. package/dist/{global-workspace-MCAREQI7.js → global-workspace-FNDRAJLF.js} +4 -4
  48. package/dist/{global-workspace-FKXLFKYX.js → global-workspace-KMQSUF2G.js} +4 -4
  49. package/dist/index.cjs +965 -182
  50. package/dist/index.d.cts +45 -7
  51. package/dist/index.d.ts +45 -7
  52. package/dist/index.js +107 -25
  53. package/dist/{linear-5E2WI4QQ.js → linear-6DM4FJWT.js} +2 -2
  54. package/dist/{linear-P3LP455O.js → linear-ZJQM5IGJ.js} +2 -2
  55. package/dist/{linear-list-AXK62DPW.js → linear-list-4EPKZTYE.js} +1 -1
  56. package/dist/{linear-list-Y3INIBYH.js → linear-list-POPBU2VC.js} +1 -1
  57. package/dist/mcp/run-stdio.cjs +877 -108
  58. package/dist/mcp/run-stdio.js +97 -22
  59. package/dist/{optional-cli-6J6C4I3X.js → optional-cli-3G2274LT.js} +3 -3
  60. package/dist/{optional-cli-X6I35UNI.js → optional-cli-CZF2ZFU5.js} +4 -4
  61. package/dist/{orchestrator-JTFCNXVR.js → orchestrator-BKCQUMLB.js} +11 -11
  62. package/dist/{orchestrator-NOQDMYLB.js → orchestrator-SCFWTIE7.js} +11 -11
  63. package/dist/{thread-store-DCO5MZWJ.js → thread-store-OARQT6DL.js} +2 -2
  64. package/dist/{thread-store-QGBPSZU2.js → thread-store-W2SSO6IQ.js} +2 -2
  65. package/dist/{workspaces-D6FQCZRK.js → workspaces-6GB56LMJ.js} +4 -4
  66. package/dist/{workspaces-Y25L2EPV.js → workspaces-EWWLVSZ5.js} +4 -4
  67. package/dist/{worktree-S4YOAYRA.js → worktree-BRKMPZMJ.js} +5 -3
  68. package/dist/{worktree-GWS77LWX.js → worktree-OB5ABI22.js} +5 -3
  69. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17,13 +17,13 @@ import {
17
17
  toAbleTimeIssueInfo,
18
18
  updateAbleTimeTask,
19
19
  verifyAbleTimeConnection
20
- } from "./chunk-FEGRY7NL.js";
20
+ } from "./chunk-QULOUTDQ.js";
21
21
  import {
22
22
  clearOptionalCliPresenceCache,
23
23
  detectOptionalServiceClis,
24
24
  installOptionalServiceCli,
25
25
  optionalCliPresence
26
- } from "./chunk-FCBUDWP6.js";
26
+ } from "./chunk-4BUTF5LN.js";
27
27
  import {
28
28
  AGENT_GIT_ACTIONS,
29
29
  BOARD_COLUMN_DEFS,
@@ -51,6 +51,7 @@ import {
51
51
  applyPromptCacheTtlEnv,
52
52
  applyThreadIntoMain,
53
53
  applyWorkspaceTags,
54
+ armGithubEdgeWatch,
54
55
  armSchedules,
55
56
  askToolPermission,
56
57
  assembleHomeBoard,
@@ -219,7 +220,7 @@ import {
219
220
  worktreeCleanupSettings,
220
221
  writeAgentBlock,
221
222
  writeWorktreeFile
222
- } from "./chunk-ELDHERAD.js";
223
+ } from "./chunk-PHLFFV2M.js";
223
224
  import {
224
225
  OPTIONAL_SERVICES,
225
226
  OPTIONAL_SERVICE_IDS,
@@ -235,7 +236,7 @@ import {
235
236
  optionalServiceConnected,
236
237
  optionalServiceSpec,
237
238
  verifyOptionalService
238
- } from "./chunk-QWFNKOGA.js";
239
+ } from "./chunk-TZFYBQAD.js";
239
240
  import {
240
241
  LEGACY_PLAN_FILE_REL,
241
242
  PLAN_FILE_NAME,
@@ -292,7 +293,7 @@ import {
292
293
  startLinearOAuth,
293
294
  updateLinearIssue,
294
295
  validateLinearApiKey
295
- } from "./chunk-Q73I6I2K.js";
296
+ } from "./chunk-IY4YNHYD.js";
296
297
  import {
297
298
  downloadAuthenticatedFile,
298
299
  extractHttpUrls,
@@ -380,7 +381,7 @@ import {
380
381
  userMcpNamesToDisable,
381
382
  worktreeMcpToolNames,
382
383
  writeInjectedMcpConfig
383
- } from "./chunk-6ABL7HZN.js";
384
+ } from "./chunk-5VXE4ZI4.js";
384
385
  import {
385
386
  getAgentSetupInfo,
386
387
  installAgent,
@@ -392,7 +393,7 @@ import {
392
393
  prepareTerminalCommand,
393
394
  resolveLoginCommand,
394
395
  whichOnPath
395
- } from "./chunk-5FGQTB2Z.js";
396
+ } from "./chunk-43BOPWFV.js";
396
397
  import {
397
398
  brightsyMcpServerName,
398
399
  connectBrightsyTeam,
@@ -403,7 +404,7 @@ import {
403
404
  listConnectedBrightsyTeams,
404
405
  switchBrightsyAccount
405
406
  } from "./chunk-XOEKCE6L.js";
406
- import "./chunk-KAIOL2M5.js";
407
+ import "./chunk-NF3KRZXV.js";
407
408
  import {
408
409
  BRIGHTSY_SUMMARIZE_CONTEXT_TOOL,
409
410
  CHARS_PER_CONTEXT_TOKEN,
@@ -514,7 +515,7 @@ import {
514
515
  workspaceAgentChatSummaries,
515
516
  worktreeRunPortsPath,
516
517
  wrapReviewSkillMarkdown
517
- } from "./chunk-PEJ3N5VE.js";
518
+ } from "./chunk-DF3S5X3H.js";
518
519
  import {
519
520
  STDERR_EVENT_MAX_CHARS,
520
521
  STDOUT_EVENT_MAX_CHARS,
@@ -556,7 +557,7 @@ import {
556
557
  visibleToolRowDetail,
557
558
  withEventParentId,
558
559
  withEventsParentId
559
- } from "./chunk-DYUAVL5S.js";
560
+ } from "./chunk-BIM24I3O.js";
560
561
  import "./chunk-7H655NEW.js";
561
562
  import {
562
563
  ABLETIME_OAUTH_CALLBACK_PATH,
@@ -580,10 +581,10 @@ import {
580
581
  parseAbleTimeOAuthCallbackUrl,
581
582
  resolveAbleTimeOAuthHost,
582
583
  startAbleTimeOAuth
583
- } from "./chunk-4BRO5LNX.js";
584
+ } from "./chunk-47UDPUVZ.js";
584
585
  import {
585
586
  looksLikeAbleTimeUlid
586
- } from "./chunk-W6J3ZWLJ.js";
587
+ } from "./chunk-2IA556KV.js";
587
588
  import {
588
589
  ABLETIME_MCP_PATH,
589
590
  ABLETIME_MCP_PM_PATH,
@@ -604,7 +605,7 @@ import {
604
605
  normalizeAbleTimeCredential,
605
606
  normalizeAbleTimeHost,
606
607
  rewriteAbleTimeError
607
- } from "./chunk-4SP26Z6H.js";
608
+ } from "./chunk-HNIEEKKR.js";
608
609
  import {
609
610
  CLOUD_COORDINATOR_BUSY_REPLY,
610
611
  CLOUD_COORDINATOR_CANCELED_REPLY,
@@ -657,7 +658,7 @@ import {
657
658
  stageBuffersAsAttachments,
658
659
  syncWorkspacesFromThreads,
659
660
  takenTeamSlugsForOrchestration
660
- } from "./chunk-BD7QARIJ.js";
661
+ } from "./chunk-MGV6JFDY.js";
661
662
  import {
662
663
  GITHUB_PR_BODY_MAX_CHARS,
663
664
  GITHUB_PR_BODY_SAFE_CHARS,
@@ -693,6 +694,7 @@ import {
693
694
  formatRateLimitResetHint,
694
695
  getPr,
695
696
  getPrChecks,
697
+ getPrCiChecks,
696
698
  getPrDetails,
697
699
  getPrForHeadBranch,
698
700
  getPrMeta,
@@ -746,9 +748,10 @@ import {
746
748
  suggestSlug,
747
749
  switchWorktreeBranch,
748
750
  warmGithubAgentAuth
749
- } from "./chunk-4OVQGZEI.js";
751
+ } from "./chunk-HZRYQ27Z.js";
750
752
  import {
751
753
  FAMOUS_SOCCER_TEAMS,
754
+ SCHEDULE_RUN_HISTORY_LIMIT,
752
755
  WEEKDAY_LABELS,
753
756
  allocateTeamName,
754
757
  appendMessage,
@@ -802,7 +805,7 @@ import {
802
805
  worktreeNameFromPath,
803
806
  worktreeSlugForTicket,
804
807
  writeThread
805
- } from "./chunk-BDQFZAE6.js";
808
+ } from "./chunk-SLTWZRBN.js";
806
809
  import "./chunk-BMRJNRQK.js";
807
810
  import {
808
811
  BRIGHTSY_OAUTH_CLIENT_ID,
@@ -1086,10 +1089,11 @@ import {
1086
1089
  updateOpencodeSettings,
1087
1090
  updateProjectProfileSettings,
1088
1091
  usageOnLimit,
1092
+ wakeOrchestratorOnGithubEdgesEnabled,
1089
1093
  withTurnScopedCost,
1090
1094
  writeSecureJson,
1091
1095
  writeViewerContext
1092
- } from "./chunk-23KYDM2U.js";
1096
+ } from "./chunk-RZUZU5KD.js";
1093
1097
  import {
1094
1098
  stripNestedElectronEnv
1095
1099
  } from "./chunk-4TR3HZFT.js";
@@ -2540,6 +2544,47 @@ function satisfyOrderDependency(id, satisfied = true) {
2540
2544
  return edge;
2541
2545
  }
2542
2546
 
2547
+ // src/threads/wake-on-github-edges.ts
2548
+ function wakeOnGithubEdgesTargetRef(opts) {
2549
+ const requested = opts.requestedRef?.trim() || "";
2550
+ if (!opts.ownWorktreeOnly) {
2551
+ if (!requested) throw new Error("Pass a chat id on the workspace.");
2552
+ return requested;
2553
+ }
2554
+ const caller = opts.caller;
2555
+ if (!caller || isGlobalThread(caller) || caller.sourceType === "orchestration") {
2556
+ throw new Error("CI and review wakes belong on a project workspace. This chat is not one.");
2557
+ }
2558
+ if (!requested || requested === caller.id) return caller.id;
2559
+ const other = opts.find(requested);
2560
+ if (!other || normalizeWorktreePath(other.worktreePath) !== normalizeWorktreePath(caller.worktreePath)) {
2561
+ throw new Error("You can only change this switch on this workspace.");
2562
+ }
2563
+ return other.id;
2564
+ }
2565
+ function applyWakeOnGithubEdges(threadRef, enabled) {
2566
+ if (!wakeOrchestratorOnGithubEdgesEnabled()) {
2567
+ throw new Error(
2568
+ "Settings \u2192 Advanced \u2192 Wake orchestrator on CI / review-requested is off. Turn that on in Settings. Do not change it from this chat."
2569
+ );
2570
+ }
2571
+ const thread = findThreadByRef(threadRef);
2572
+ if (!thread) throw new Error(`Thread not found: ${threadRef}`);
2573
+ if (isGlobalThread(thread) || thread.sourceType === "orchestration") {
2574
+ throw new Error("CI and review wakes belong on a project workspace. Pass a worktree chat id.");
2575
+ }
2576
+ const on = enabled === true;
2577
+ const siblings = threadsSharingWorktree(thread.worktreePath);
2578
+ const targets = siblings.length > 0 ? siblings : [thread];
2579
+ let updated = thread;
2580
+ for (const row2 of targets) {
2581
+ const written = updateThread(row2.id, { wakeOnGithubEdges: on ? true : void 0 });
2582
+ if (!on) delete written.wakeOnGithubEdges;
2583
+ if (written.id === thread.id) updated = written;
2584
+ }
2585
+ return updated;
2586
+ }
2587
+
2543
2588
  // src/host/awake.ts
2544
2589
  function hostKeepsMacAwake(input) {
2545
2590
  if (input.phoneConnected) return true;
@@ -9668,6 +9713,7 @@ async function startHeadlessHost(opts) {
9668
9713
  claimDesktopHost();
9669
9714
  bootstrapSystemCa();
9670
9715
  armSchedules();
9716
+ armGithubEdgeWatch();
9671
9717
  const ac = new AbortController();
9672
9718
  let stopped = false;
9673
9719
  let phoneConnected = false;
@@ -9694,7 +9740,7 @@ async function startHeadlessHost(opts) {
9694
9740
  };
9695
9741
  const refreshRunning = async () => {
9696
9742
  try {
9697
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-NOQDMYLB.js");
9743
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-SCFWTIE7.js");
9698
9744
  agentsRunning = getOrchestrator2().getRuntime().running;
9699
9745
  } catch {
9700
9746
  agentsRunning = 0;
@@ -9745,6 +9791,7 @@ async function startHeadlessHost(opts) {
9745
9791
  return;
9746
9792
  }
9747
9793
  armSchedules();
9794
+ armGithubEdgeWatch();
9748
9795
  void refreshRunning().then(() => refreshAwake());
9749
9796
  }, REARM_MS);
9750
9797
  timer.unref?.();
@@ -11524,13 +11571,13 @@ function whenFromUpdate(id, args) {
11524
11571
  }
11525
11572
  function createdHint(schedule) {
11526
11573
  const awake = scheduleNeedsCaffeinate(schedule) ? " Caffeinate while automations are enabled is now on so the Mac can stay awake until this job is due." : "";
11527
- const fresh = schedule.threadId ? " This job is removed when that chat is archived." : schedule.archiveChat === false ? " This job leaves the new chat open so you can keep talking." : " A new Global chat is archived when the run finishes (History keeps the last 5 runs). Pass archiveChat=false to leave it open.";
11574
+ const fresh = schedule.threadId ? " This job is removed when that chat is archived." : schedule.archiveChat === false ? " This job leaves the new chat open so you can keep talking." : " A new Global chat is archived when the run finishes (History keeps the last 5 archived chats; the schedule keeps the last 10 runs). Pass archiveChat=false to leave it open.";
11528
11575
  return `Fires while Sideboard.app is running.${fresh}${awake}`;
11529
11576
  }
11530
11577
  function registerScheduleTools(server) {
11531
11578
  server.tool(
11532
11579
  "list_schedules",
11533
- "List local Sideboard automations that trigger a chat when due. Jobs fire only while Sideboard.app is running on this Mac (sleep skips until wake). Shown in the sidebar after Board.",
11580
+ "List local Sideboard automations that trigger a chat when due. Each row includes runs, the last 10 fires ({at, threadId, error}), newest first. Jobs fire only while Sideboard.app is running on this Mac (sleep skips until wake; a skip is not a failed run). Shown in the sidebar after Board.",
11534
11581
  {},
11535
11582
  async () => {
11536
11583
  try {
@@ -11542,7 +11589,7 @@ function registerScheduleTools(server) {
11542
11589
  );
11543
11590
  server.tool(
11544
11591
  "create_schedule",
11545
- "Create a local automation that, when due, sends a prompt to an existing chat (chatId) or starts a new Global orchestration chat (omit chatId). Pass chatId=self to continue this chat. A job bound to a chat is removed when that chat is archived or gone; it does not start a new Global chat. Omit chatId only for a Global automation that should outlive this chat. Exactly one of at (ISO datetime), every (15m/1h/6h/1d), time (HH:mm, with days such as weekdays or mon,wed), or cron (5-field). Recurring jobs without chatId open a new Global chat each run and archive it when that run finishes unless archiveChat is false (leave the chat open to keep talking, for example a morning start-my-day run). History keeps the last 5 archived runs for that automation. Creating or enabling a future job turns on Settings \u2192 Advanced \u2192 Caffeinate while automations are enabled so the Mac stays awake until due. Sideboard.app must be running for the job to fire.",
11592
+ "Create a local automation that, when due, sends a prompt to an existing chat (chatId) or starts a new Global orchestration chat (omit chatId). Pass chatId=self to continue this chat. A job bound to a chat is removed when that chat is archived or gone; it does not start a new Global chat. Omit chatId only for a Global automation that should outlive this chat. Exactly one of at (ISO datetime), every (15m/1h/6h/1d), time (HH:mm, with days such as weekdays or mon,wed), or cron (5-field). Recurring jobs without chatId open a new Global chat each run and archive it when that run finishes unless archiveChat is false (leave the chat open to keep talking, for example a morning start-my-day run). History keeps the last 5 archived chats for that automation, and the schedule keeps the last 10 runs. To schedule a prompt from this chat, call this tool with that prompt (omit chatId for a new Global chat, or chatId=self). Creating or enabling a future job turns on Settings \u2192 Advanced \u2192 Caffeinate while automations are enabled so the Mac stays awake until due. Sideboard.app must be running for the job to fire.",
11546
11593
  {
11547
11594
  prompt: z7.string().describe("User message / goal queued when the automation fires"),
11548
11595
  name: z7.string().optional(),
@@ -12134,7 +12181,7 @@ async function handleJobStop(params, _ctx) {
12134
12181
  return stopDetachedJob(jobCwd(rec), id, reason ? { reason } : void 0);
12135
12182
  }
12136
12183
  async function defaultTurnWait(ref, timeoutMs) {
12137
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-NOQDMYLB.js");
12184
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-SCFWTIE7.js");
12138
12185
  const orch = getOrchestrator2();
12139
12186
  const thread = await orch.waitForTurn(ref, timeoutMs, {
12140
12187
  resolveIfStillRunning: true
@@ -12487,7 +12534,7 @@ async function startMcpServer() {
12487
12534
  );
12488
12535
  }
12489
12536
  try {
12490
- const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-KOSVLMO5.js");
12537
+ const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-377375BJ.js");
12491
12538
  orch.setMaxConcurrent(maxConcurrentAgents2());
12492
12539
  } catch {
12493
12540
  }
@@ -13033,10 +13080,40 @@ async function startMcpServer() {
13033
13080
  }
13034
13081
  }
13035
13082
  );
13083
+ server.tool(
13084
+ "set_wake_on_github_edges",
13085
+ worktreeProfile ? "Opt this checkout into orchestrator wakes when CI starts failing or GitHub requests a review. Omit ref. Only works after Settings \u2192 Advanced \u2192 Wake orchestrator on CI / review-requested is on. Do not change that Advanced switch." : "Opt a project workspace into CI and review-request wakes. Pass any chat id on that checkout. Only works after Settings \u2192 Advanced \u2192 Wake orchestrator on CI / review-requested is already on. Do not change that Advanced switch. Not for orchestration chats.",
13086
+ {
13087
+ ref: z9.string().optional().describe(
13088
+ worktreeProfile ? "Omit for this chat. Another chat id only if it is on this same checkout." : "Chat id on the workspace."
13089
+ ),
13090
+ enabled: z9.boolean().describe("True opts the checkout in. False turns it off.")
13091
+ },
13092
+ async ({ ref, enabled }) => {
13093
+ try {
13094
+ const callerId = process.env[SIDEBOARD_THREAD_ID_ENV]?.trim() || "";
13095
+ const target = wakeOnGithubEdgesTargetRef({
13096
+ ownWorktreeOnly: worktreeProfile,
13097
+ caller: callerId ? orch.getThread(callerId) : null,
13098
+ requestedRef: ref,
13099
+ find: (id) => orch.getThread(id)
13100
+ });
13101
+ const thread = applyWakeOnGithubEdges(target, enabled);
13102
+ return mcpJson({
13103
+ id: thread.id,
13104
+ worktreePath: thread.worktreePath,
13105
+ wakeOnGithubEdges: thread.wakeOnGithubEdges === true
13106
+ });
13107
+ } catch (err) {
13108
+ const message = err instanceof Error ? err.message : String(err);
13109
+ return mcpJson({ ok: false, message }, true);
13110
+ }
13111
+ }
13112
+ );
13036
13113
  if (!worktreeProfile) {
13037
13114
  registerConnectedIssueVendorTools(server);
13038
13115
  const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-ZNUEZGHB.js");
13039
- const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-KOSVLMO5.js");
13116
+ const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-377375BJ.js");
13040
13117
  const accountDefaults = resolveThreadDefaults2();
13041
13118
  const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
13042
13119
  server.tool(
@@ -15678,7 +15755,7 @@ async function continueSourceThread(threadId, prompt) {
15678
15755
  await continueOnReply(threadId, prompt);
15679
15756
  return;
15680
15757
  }
15681
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-NOQDMYLB.js");
15758
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-SCFWTIE7.js");
15682
15759
  await getOrchestrator2().send(threadId, prompt);
15683
15760
  } catch {
15684
15761
  }
@@ -16063,6 +16140,7 @@ export {
16063
16140
  RUN_PORTS_REL,
16064
16141
  RUN_SCRIPT_DESKTOP_ADOPT_MS,
16065
16142
  RemoteHub,
16143
+ SCHEDULE_RUN_HISTORY_LIMIT,
16066
16144
  SEED_FULL_TOOL_MESSAGES,
16067
16145
  SEED_MAX_CHARS,
16068
16146
  SESSION_RESET_OCCUPANCY_TOKENS,
@@ -16143,9 +16221,11 @@ export {
16143
16221
  applySystemCaEnv,
16144
16222
  applyThreadIntoMain,
16145
16223
  applyTurnUsage,
16224
+ applyWakeOnGithubEdges,
16146
16225
  applyWorkspaceTags,
16147
16226
  archiveRemovedWorkspaceChats,
16148
16227
  archivesWithRemovedWorkspace,
16228
+ armGithubEdgeWatch,
16149
16229
  armSchedules,
16150
16230
  askBlockStillWaiting,
16151
16231
  assertAbleTimeCredential,
@@ -16467,6 +16547,7 @@ export {
16467
16547
  getOrderPlan,
16468
16548
  getPr,
16469
16549
  getPrChecks,
16550
+ getPrCiChecks,
16470
16551
  getPrDetails,
16471
16552
  getPrForHeadBranch,
16472
16553
  getPrMeta,
@@ -17067,6 +17148,7 @@ export {
17067
17148
  visibleAssistantText,
17068
17149
  visibleToolRowDetail,
17069
17150
  waitForPidExit,
17151
+ wakeOrchestratorOnGithubEdgesEnabled,
17070
17152
  warmGithubAgentAuth,
17071
17153
  weeklyCronExpr,
17072
17154
  whichOnPath,
@@ -25,12 +25,12 @@ import {
25
25
  rewriteLinearError,
26
26
  updateLinearIssue,
27
27
  validateLinearApiKey
28
- } from "./chunk-Q73I6I2K.js";
28
+ } from "./chunk-IY4YNHYD.js";
29
29
  import "./chunk-DBKHL7NC.js";
30
30
  import "./chunk-W3ZLE4PO.js";
31
31
  import "./chunk-JAT3JFOS.js";
32
32
  import "./chunk-6K64FJDD.js";
33
- import "./chunk-23KYDM2U.js";
33
+ import "./chunk-RZUZU5KD.js";
34
34
  import "./chunk-4TR3HZFT.js";
35
35
  import "./chunk-WDRMZKVB.js";
36
36
  import "./chunk-KI45T4DI.js";
@@ -27,12 +27,12 @@ import {
27
27
  rewriteLinearError,
28
28
  updateLinearIssue,
29
29
  validateLinearApiKey
30
- } from "./chunk-I2C5ZRVO.js";
30
+ } from "./chunk-WSW27W5R.js";
31
31
  import "./chunk-OYRN356W.js";
32
32
  import "./chunk-F6GE7V3Q.js";
33
33
  import "./chunk-N2WW62LF.js";
34
34
  import "./chunk-2GPQZZLY.js";
35
- import "./chunk-N6TGSJVC.js";
35
+ import "./chunk-DF34F3QR.js";
36
36
  import "./chunk-NSTQ6QKD.js";
37
37
  import "./chunk-WWUABK6B.js";
38
38
  import "./chunk-FJZWM2ON.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listAssignedLinearIssues
3
- } from "./chunk-KAIOL2M5.js";
3
+ } from "./chunk-NF3KRZXV.js";
4
4
  export {
5
5
  listAssignedLinearIssues
6
6
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  listAssignedLinearIssues
5
- } from "./chunk-SYTTUNX6.js";
5
+ } from "./chunk-3HJ2USRA.js";
6
6
  export {
7
7
  listAssignedLinearIssues
8
8
  };