@sideboard-ai/core 0.1.340 → 0.1.342

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-OGOHNRVB.js → abletime-MSIMJKKQ.js} +4 -4
  2. package/dist/{abletime-TNONAVJG.js → abletime-ZIYFR4SI.js} +4 -4
  3. package/dist/{abletime-oauth-DAZEUQJI.js → abletime-oauth-2RUKRZYZ.js} +3 -3
  4. package/dist/{abletime-oauth-TYDQ73GK.js → abletime-oauth-IQZ3LOB2.js} +3 -3
  5. package/dist/{abletime-rest-B4VI46MI.js → abletime-rest-7YAO5B74.js} +3 -3
  6. package/dist/{abletime-rest-3FWZGTX6.js → abletime-rest-UBLSGMSA.js} +3 -3
  7. package/dist/{agents-QFXIBIKJ.js → agents-7DCNOMFP.js} +8 -8
  8. package/dist/{agents-6MSZHZOM.js → agents-LNZ465IM.js} +8 -8
  9. package/dist/{app-settings-KOSVLMO5.js → app-settings-FS7TM55D.js} +11 -1
  10. package/dist/{app-settings-YS5AUJTF.js → app-settings-Q2F57NVK.js} +11 -1
  11. package/dist/{chunk-BD7QARIJ.js → chunk-2BLJ726H.js} +6 -5
  12. package/dist/{chunk-SYTTUNX6.js → chunk-3DMRQB4Y.js} +1 -1
  13. package/dist/{chunk-OMKTX7ZW.js → chunk-3J3XOIHF.js} +3 -3
  14. package/dist/{chunk-W6J3ZWLJ.js → chunk-4HELMBYR.js} +2 -2
  15. package/dist/{chunk-HNW5KMGK.js → chunk-4PXHJA5K.js} +2 -2
  16. package/dist/{chunk-QWFNKOGA.js → chunk-4TTTEKNV.js} +2 -2
  17. package/dist/{chunk-EVYOONTE.js → chunk-5BFEHSHO.js} +6 -5
  18. package/dist/{chunk-EZZY3EAZ.js → chunk-5HUR77ZH.js} +666 -62
  19. package/dist/{chunk-5TVRPOVS.js → chunk-5SJGR3VS.js} +1 -1
  20. package/dist/{chunk-I2C5ZRVO.js → chunk-5TS3KVGI.js} +1 -1
  21. package/dist/{chunk-5FGQTB2Z.js → chunk-6RO2AOE5.js} +2 -2
  22. package/dist/{chunk-FEGRY7NL.js → chunk-A4ZI7SA3.js} +3 -3
  23. package/dist/{chunk-DYUAVL5S.js → chunk-BIM24I3O.js} +1 -0
  24. package/dist/{chunk-KAIOL2M5.js → chunk-D7US5R4H.js} +1 -1
  25. package/dist/{chunk-NHLTTT5G.js → chunk-DEQLDEYR.js} +7 -6
  26. package/dist/{chunk-ELDHERAD.js → chunk-DZF25KTX.js} +661 -56
  27. package/dist/{chunk-4OVQGZEI.js → chunk-G3UV3GXJ.js} +48 -26
  28. package/dist/{chunk-Q73I6I2K.js → chunk-GUIJMZQG.js} +1 -1
  29. package/dist/{chunk-AFSLMWQK.js → chunk-JHT3CYLT.js} +42 -3
  30. package/dist/{chunk-BDQFZAE6.js → chunk-JX3OWNOT.js} +43 -3
  31. package/dist/{chunk-6ABL7HZN.js → chunk-LDJT3TLN.js} +10 -8
  32. package/dist/{chunk-LYJ5AVK4.js → chunk-LHU6ZBFB.js} +2 -2
  33. package/dist/{chunk-WSZIJNAR.js → chunk-NDBMDHQ5.js} +5 -5
  34. package/dist/{chunk-PEJ3N5VE.js → chunk-NGIGRAZB.js} +7 -6
  35. package/dist/{chunk-4BRO5LNX.js → chunk-O2IRQAFB.js} +3 -3
  36. package/dist/{chunk-5KH3EQ2C.js → chunk-ORO4ENZR.js} +1 -0
  37. package/dist/{chunk-ERCYQTJU.js → chunk-RTZO2YJC.js} +48 -26
  38. package/dist/{chunk-VHHEQP5V.js → chunk-S3DTEGMK.js} +11 -9
  39. package/dist/{chunk-N6TGSJVC.js → chunk-S3UGLMGE.js} +31 -0
  40. package/dist/{chunk-FCBUDWP6.js → chunk-SLLTEMIL.js} +2 -2
  41. package/dist/{chunk-23KYDM2U.js → chunk-TKEYXNXY.js} +31 -0
  42. package/dist/{chunk-4SP26Z6H.js → chunk-WO7VF4FG.js} +5 -5
  43. package/dist/{conductor-LEPTWN2U.js → conductor-4SWJM5FS.js} +6 -6
  44. package/dist/{conductor-AUUXCJZT.js → conductor-Q433HU77.js} +6 -6
  45. package/dist/{coordinator-prompt-VO42IZWS.js → coordinator-prompt-5QHWCO7V.js} +4 -4
  46. package/dist/{coordinator-prompt-CIWWP2P6.js → coordinator-prompt-Z7PPP45X.js} +4 -4
  47. package/dist/{global-workspace-FKXLFKYX.js → global-workspace-DL4K4K7O.js} +4 -4
  48. package/dist/{global-workspace-MCAREQI7.js → global-workspace-VDCZMFCZ.js} +4 -4
  49. package/dist/index.cjs +1018 -188
  50. package/dist/index.d.cts +57 -7
  51. package/dist/index.d.ts +57 -7
  52. package/dist/index.js +135 -30
  53. package/dist/{linear-P3LP455O.js → linear-JE4WAZ3W.js} +2 -2
  54. package/dist/{linear-5E2WI4QQ.js → linear-UXMDJAD4.js} +2 -2
  55. package/dist/{linear-list-Y3INIBYH.js → linear-list-I4NAOWPN.js} +1 -1
  56. package/dist/{linear-list-AXK62DPW.js → linear-list-KDLU7QWX.js} +1 -1
  57. package/dist/mcp/run-stdio.cjs +922 -114
  58. package/dist/mcp/run-stdio.js +119 -27
  59. package/dist/{optional-cli-6J6C4I3X.js → optional-cli-7QXXPEN6.js} +3 -3
  60. package/dist/{optional-cli-X6I35UNI.js → optional-cli-RUUCLNSM.js} +4 -4
  61. package/dist/{orchestrator-JTFCNXVR.js → orchestrator-BPCM4OP3.js} +11 -11
  62. package/dist/{orchestrator-NOQDMYLB.js → orchestrator-HIWWPWL5.js} +11 -11
  63. package/dist/{thread-store-DCO5MZWJ.js → thread-store-HETUMDVA.js} +2 -2
  64. package/dist/{thread-store-QGBPSZU2.js → thread-store-ILM2ZJCB.js} +2 -2
  65. package/dist/{workspaces-D6FQCZRK.js → workspaces-EIIHHH4S.js} +4 -4
  66. package/dist/{workspaces-Y25L2EPV.js → workspaces-MX4W4SSB.js} +4 -4
  67. package/dist/{worktree-S4YOAYRA.js → worktree-BD3EJE24.js} +5 -3
  68. package/dist/{worktree-GWS77LWX.js → worktree-QBVLKACU.js} +5 -3
  69. package/package.json +1 -1
@@ -23,11 +23,11 @@ import {
23
23
  normalizeTakenSlug,
24
24
  normalizeWorktreePath,
25
25
  takenSlugsFromThread
26
- } from "./chunk-AFSLMWQK.js";
26
+ } from "./chunk-JHT3CYLT.js";
27
27
  import {
28
28
  getGithubGitAuthMode,
29
29
  getGithubPat
30
- } from "./chunk-N6TGSJVC.js";
30
+ } from "./chunk-S3UGLMGE.js";
31
31
  import {
32
32
  worktreesRoot
33
33
  } from "./chunk-WOU343SI.js";
@@ -1048,11 +1048,16 @@ async function listCursorPrs(repoPath, slug, opts, head) {
1048
1048
  }
1049
1049
  }
1050
1050
  const { stdout, exitCode } = await originCli(args, repoPath, { reject: false, timeoutMs: 2e4 });
1051
- if (exitCode !== 0 || !stdout.trim()) return [];
1051
+ if (exitCode !== 0) {
1052
+ if (opts?.strict) throw new Error(`origin pr list failed (${exitCode})`);
1053
+ return [];
1054
+ }
1055
+ if (!stdout.trim()) return [];
1052
1056
  let parsed;
1053
1057
  try {
1054
1058
  parsed = JSON.parse(stdout);
1055
1059
  } catch {
1060
+ if (opts?.strict) throw new Error("origin pr list returned invalid JSON");
1056
1061
  return [];
1057
1062
  }
1058
1063
  if (!Array.isArray(parsed)) return [];
@@ -1155,21 +1160,23 @@ async function fetchCursorPrHead(repoPath, slug, number, localBranch) {
1155
1160
  throw new Error((result.stderr || result.stdout).trim() || `git fetch origin ${head} failed`);
1156
1161
  }
1157
1162
  }
1158
- async function cursorPrChecks(repoPath, slug, selector) {
1163
+ async function cursorPrCiChecks(repoPath, slug, selector) {
1159
1164
  const { stdout, exitCode, stderr } = await originCli(
1160
1165
  ["pr", "checks", selector, ...repoArgs(slug), "--json", "name,status,conclusion,detailsUrl,startedAt,completedAt,summary,group,link"],
1161
1166
  repoPath,
1162
1167
  { reject: false, timeoutMs: 2e4 }
1163
1168
  );
1164
1169
  const err = stderr.trim();
1165
- let ci;
1166
1170
  if (!stdout.trim()) {
1167
1171
  if (/no pull request|not found|no change/i.test(err)) return null;
1168
1172
  if (exitCode !== 0 && err) throw new Error(err);
1169
- ci = [];
1170
- } else {
1171
- ci = originChecksToRuns(stdout);
1173
+ return [];
1172
1174
  }
1175
+ return originChecksToRuns(stdout);
1176
+ }
1177
+ async function cursorPrChecks(repoPath, slug, selector) {
1178
+ const ci = await cursorPrCiChecks(repoPath, slug, selector);
1179
+ if (!ci) return null;
1173
1180
  const view = await viewCursorPr(
1174
1181
  repoPath,
1175
1182
  slug,
@@ -1700,7 +1707,11 @@ async function listPrs(repoPath, opts) {
1700
1707
  limit: fetchLimit
1701
1708
  });
1702
1709
  const { stdout, exitCode } = await gh(args, repoPath, { reject: false });
1703
- if (exitCode !== 0 || !stdout.trim()) return [];
1710
+ if (exitCode !== 0) {
1711
+ if (opts?.strict) throw new Error(`gh pr list failed (${exitCode})`);
1712
+ return [];
1713
+ }
1714
+ if (!stdout.trim()) return [];
1704
1715
  return applyPrListResponse(stdout, { ...resolved, limit, viewerTeams });
1705
1716
  }
1706
1717
  var PR_INFO_JSON_FIELDS = "number,title,headRefName,url,isCrossRepository,author,isDraft,labels,state";
@@ -1963,12 +1974,7 @@ async function probeLocalMergeGate(cwd, gate) {
1963
1974
  }
1964
1975
  return { gate, files: [] };
1965
1976
  }
1966
- async function getPrChecks(cwd, selector) {
1967
- const origin = await resolveOriginRemote(cwd);
1968
- if (origin?.forge === "entire") return null;
1969
- const cursorSlug = origin?.forge === "cursor" ? origin.slug : null;
1970
- if (cursorSlug) return cursorPrChecks(cwd, cursorSlug, selector);
1971
- const slug = await resolveGithubRepoSlug(cwd);
1977
+ async function readGhPrChecks(cwd, selector, slug) {
1972
1978
  const args = [
1973
1979
  "pr",
1974
1980
  "checks",
@@ -1979,7 +1985,6 @@ async function getPrChecks(cwd, selector) {
1979
1985
  if (slug) args.push("--repo", slug);
1980
1986
  const { stdout, exitCode, stderr } = await gh(args, cwd, { reject: false });
1981
1987
  const errText = stderr.trim();
1982
- let ciChecks;
1983
1988
  if (!stdout.trim()) {
1984
1989
  if (/no pull requests found/i.test(errText)) return null;
1985
1990
  if (/auth|login|HTTP\s*401|credentials|token/i.test(errText)) {
@@ -1989,18 +1994,34 @@ async function getPrChecks(cwd, selector) {
1989
1994
  if (exitCode === 1 && errText && !/fail|check/i.test(errText)) {
1990
1995
  throw new Error(errText);
1991
1996
  }
1992
- ciChecks = [];
1993
- } else {
1994
- throw new Error(errText || `gh pr checks failed (${exitCode})`);
1995
- }
1996
- } else {
1997
- try {
1998
- const parsed = JSON.parse(stdout);
1999
- ciChecks = parsed.map(normalizeCheck);
2000
- } catch {
2001
- throw new Error(errText || "gh pr checks returned invalid JSON");
1997
+ return [];
2002
1998
  }
1999
+ throw new Error(errText || `gh pr checks failed (${exitCode})`);
2000
+ }
2001
+ try {
2002
+ const parsed = JSON.parse(stdout);
2003
+ return parsed.map(normalizeCheck);
2004
+ } catch {
2005
+ throw new Error(errText || "gh pr checks returned invalid JSON");
2006
+ }
2007
+ }
2008
+ async function getPrCiChecks(cwd, selector) {
2009
+ const origin = await resolveOriginRemote(cwd);
2010
+ if (origin?.forge === "entire") return null;
2011
+ if (origin?.forge === "cursor" && origin.slug) {
2012
+ return cursorPrCiChecks(cwd, origin.slug, selector);
2003
2013
  }
2014
+ const slug = await resolveGithubRepoSlug(cwd);
2015
+ return readGhPrChecks(cwd, selector, slug);
2016
+ }
2017
+ async function getPrChecks(cwd, selector) {
2018
+ const origin = await resolveOriginRemote(cwd);
2019
+ if (origin?.forge === "entire") return null;
2020
+ const cursorSlug = origin?.forge === "cursor" ? origin.slug : null;
2021
+ if (cursorSlug) return cursorPrChecks(cwd, cursorSlug, selector);
2022
+ const slug = await resolveGithubRepoSlug(cwd);
2023
+ const ciChecks = await readGhPrChecks(cwd, selector, slug);
2024
+ if (!ciChecks) return null;
2004
2025
  let gate = await fetchPrMergeGate(cwd, selector, slug);
2005
2026
  const probed = await probeLocalMergeGate(cwd, gate);
2006
2027
  gate = probed.gate;
@@ -2947,6 +2968,7 @@ export {
2947
2968
  connectedPrSelectors,
2948
2969
  getPrForHeadBranch,
2949
2970
  detectLocalMergeConflicts,
2971
+ getPrCiChecks,
2950
2972
  getPrChecks,
2951
2973
  getPrMeta,
2952
2974
  PR_DETAILS_JSON_FIELDS,
@@ -9,16 +9,16 @@ import {
9
9
  looksLikeSkillBody,
10
10
  skillCommandFromBody,
11
11
  withEventParentId
12
- } from "./chunk-5KH3EQ2C.js";
12
+ } from "./chunk-ORO4ENZR.js";
13
13
  import {
14
14
  isOrchestratorThread
15
- } from "./chunk-EVYOONTE.js";
15
+ } from "./chunk-5BFEHSHO.js";
16
16
  import {
17
17
  codexUnattendedGitConfigArgs,
18
18
  mergeAgentGitAuthEnv,
19
19
  resolveAgentGitAuthEnv,
20
20
  resolveCodexGitWritableRoots
21
- } from "./chunk-ERCYQTJU.js";
21
+ } from "./chunk-RTZO2YJC.js";
22
22
  import {
23
23
  applyConnectedTeamToCli,
24
24
  brightsyMcpServerName,
@@ -33,7 +33,7 @@ import {
33
33
  } from "./chunk-2GPQZZLY.js";
34
34
  import {
35
35
  listAssignedLinearIssues
36
- } from "./chunk-SYTTUNX6.js";
36
+ } from "./chunk-3DMRQB4Y.js";
37
37
  import {
38
38
  githubAgentAuthReady,
39
39
  npmGlobalNodeModules,
@@ -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-AFSLMWQK.js";
48
+ } from "./chunk-JHT3CYLT.js";
49
49
  import {
50
50
  claudeChromeEnabled,
51
51
  fromInclusiveInputUsage,
@@ -56,7 +56,7 @@ import {
56
56
  requestOccupancy,
57
57
  resolveAgentExecutable,
58
58
  resolveClaudeExecutable
59
- } from "./chunk-N6TGSJVC.js";
59
+ } from "./chunk-S3UGLMGE.js";
60
60
  import {
61
61
  isElectronLikeCommand,
62
62
  unwrapStrippedElectronLaunch,
@@ -997,6 +997,7 @@ var WORKTREE_MCP_TOOLS = [
997
997
  "get_orchestrator",
998
998
  "notify_orchestrator",
999
999
  "set_workspace_tags",
1000
+ "set_wake_on_github_edges",
1000
1001
  "get_viewer_context",
1001
1002
  "update_viewer_context",
1002
1003
  "list_env",
@@ -1469,6 +1470,7 @@ var SIDEBOARD_ARTIFACT_MCP_ALLOWED_TOOLS = [
1469
1470
  "mcp__sideboard__get_orchestrator",
1470
1471
  "mcp__sideboard__notify_orchestrator",
1471
1472
  "mcp__sideboard__set_workspace_tags",
1473
+ "mcp__sideboard__set_wake_on_github_edges",
1472
1474
  "mcp__sideboard__get_viewer_context",
1473
1475
  "mcp__sideboard__update_viewer_context",
1474
1476
  "mcp__sideboard__list_env",
@@ -2976,7 +2978,7 @@ var claudeAdapter = {
2976
2978
  );
2977
2979
  }
2978
2980
  const mode = permissionMode(thread);
2979
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-FKXLFKYX.js");
2981
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-DL4K4K7O.js");
2980
2982
  const isOrchestrator = isOrchestratorThread2(thread);
2981
2983
  const rpc = worktreeAgentRpc(isOrchestrator);
2982
2984
  const injectedServers = await buildInjectedMcpServers({
@@ -3203,7 +3205,7 @@ var claudeAdapter = {
3203
3205
  return { file: claude, args, cwd: thread.worktreePath };
3204
3206
  },
3205
3207
  async listLinearIssues(_repoPath) {
3206
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-Y3INIBYH.js");
3208
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-I4NAOWPN.js");
3207
3209
  return listAssignedLinearIssues2();
3208
3210
  }
3209
3211
  };
@@ -4677,7 +4679,7 @@ var opencodeAdapter = {
4677
4679
  };
4678
4680
  },
4679
4681
  async listLinearIssues(_repoPath) {
4680
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-Y3INIBYH.js");
4682
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-I4NAOWPN.js");
4681
4683
  return listAssignedLinearIssues2();
4682
4684
  }
4683
4685
  };
@@ -1259,6 +1259,9 @@ function normalizeAdvanced(raw) {
1259
1259
  if (typeof source.cowboyMode === "boolean") {
1260
1260
  out.cowboyMode = source.cowboyMode;
1261
1261
  }
1262
+ if (typeof source.wakeOrchestratorOnGithubEdges === "boolean") {
1263
+ out.wakeOrchestratorOnGithubEdges = source.wakeOrchestratorOnGithubEdges;
1264
+ }
1262
1265
  if (typeof source.showCost === "boolean") {
1263
1266
  out.showCost = source.showCost;
1264
1267
  }
@@ -1277,6 +1280,9 @@ function normalizeAdvanced(raw) {
1277
1280
  if (typeof source.maxConcurrent === "number" && Number.isFinite(source.maxConcurrent)) {
1278
1281
  out.maxConcurrent = Math.max(1, Math.min(32, Math.floor(source.maxConcurrent)));
1279
1282
  }
1283
+ if (typeof source.maxOrchThreads === "number" && Number.isFinite(source.maxOrchThreads)) {
1284
+ out.maxOrchThreads = clampMaxOrchThreads(source.maxOrchThreads);
1285
+ }
1280
1286
  if (typeof source.worktreeMaxCount === "number" && Number.isFinite(source.worktreeMaxCount)) {
1281
1287
  out.worktreeMaxCount = Math.max(1, Math.min(500, Math.floor(source.worktreeMaxCount)));
1282
1288
  }
@@ -2161,6 +2167,9 @@ function updateAdvancedSettings(patch) {
2161
2167
  if (typeof patch.cowboyMode === "boolean") {
2162
2168
  advanced.cowboyMode = patch.cowboyMode;
2163
2169
  }
2170
+ if (typeof patch.wakeOrchestratorOnGithubEdges === "boolean") {
2171
+ advanced.wakeOrchestratorOnGithubEdges = patch.wakeOrchestratorOnGithubEdges;
2172
+ }
2164
2173
  if (typeof patch.showCost === "boolean") {
2165
2174
  advanced.showCost = patch.showCost;
2166
2175
  }
@@ -2184,6 +2193,9 @@ function updateAdvancedSettings(patch) {
2184
2193
  if (typeof patch.maxConcurrent === "number" && Number.isFinite(patch.maxConcurrent)) {
2185
2194
  advanced.maxConcurrent = Math.max(1, Math.min(32, Math.floor(patch.maxConcurrent)));
2186
2195
  }
2196
+ if (typeof patch.maxOrchThreads === "number" && Number.isFinite(patch.maxOrchThreads)) {
2197
+ advanced.maxOrchThreads = clampMaxOrchThreads(patch.maxOrchThreads);
2198
+ }
2187
2199
  if (typeof patch.worktreeMaxCount === "number" && Number.isFinite(patch.worktreeMaxCount)) {
2188
2200
  advanced.worktreeMaxCount = Math.max(1, Math.min(500, Math.floor(patch.worktreeMaxCount)));
2189
2201
  }
@@ -2266,6 +2278,9 @@ function deleteBranchOnPurgeEnabled(settings = loadAppSettings()) {
2266
2278
  function cowboyModeEnabled(settings = loadAppSettings()) {
2267
2279
  return Boolean(settings.advanced.cowboyMode);
2268
2280
  }
2281
+ function wakeOrchestratorOnGithubEdgesEnabled(settings = loadAppSettings()) {
2282
+ return Boolean(settings.advanced.wakeOrchestratorOnGithubEdges);
2283
+ }
2269
2284
  function showCostEnabled(settings = loadAppSettings()) {
2270
2285
  return Boolean(settings.advanced.showCost);
2271
2286
  }
@@ -2317,6 +2332,17 @@ function maxConcurrentAgents(settings = loadAppSettings()) {
2317
2332
  }
2318
2333
  return 5;
2319
2334
  }
2335
+ var MAX_ORCH_THREADS_DEFAULT = 5;
2336
+ var MAX_ORCH_THREADS_MIN = 1;
2337
+ var MAX_ORCH_THREADS_MAX = 32;
2338
+ function clampMaxOrchThreads(n) {
2339
+ return Math.max(MAX_ORCH_THREADS_MIN, Math.min(MAX_ORCH_THREADS_MAX, Math.floor(n)));
2340
+ }
2341
+ function maxOrchThreads(settings = loadAppSettings()) {
2342
+ const n = settings.advanced.maxOrchThreads;
2343
+ if (typeof n === "number" && Number.isFinite(n)) return clampMaxOrchThreads(n);
2344
+ return MAX_ORCH_THREADS_DEFAULT;
2345
+ }
2320
2346
  function resolveClaudeExecutable(settings = loadAppSettings()) {
2321
2347
  return resolveAgentExecutable("claude", settings);
2322
2348
  }
@@ -2509,6 +2535,7 @@ export {
2509
2535
  caffeinateWhileCloudConnectEnabled,
2510
2536
  deleteBranchOnPurgeEnabled,
2511
2537
  cowboyModeEnabled,
2538
+ wakeOrchestratorOnGithubEdgesEnabled,
2512
2539
  showCostEnabled,
2513
2540
  chatTextScale,
2514
2541
  confirmClaudeUsageOverLimitEnabled,
@@ -2523,6 +2550,10 @@ export {
2523
2550
  followUpBehavior,
2524
2551
  agentDoneSound,
2525
2552
  maxConcurrentAgents,
2553
+ MAX_ORCH_THREADS_DEFAULT,
2554
+ MAX_ORCH_THREADS_MIN,
2555
+ MAX_ORCH_THREADS_MAX,
2556
+ maxOrchThreads,
2526
2557
  resolveClaudeExecutable,
2527
2558
  resolveAgentExecutable,
2528
2559
  updateAgentExecutable,
@@ -2,11 +2,11 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-QWFNKOGA.js";
5
+ } from "./chunk-4TTTEKNV.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
9
- } from "./chunk-5FGQTB2Z.js";
9
+ } from "./chunk-6RO2AOE5.js";
10
10
  import {
11
11
  enrichPathWithNpmGlobalBin
12
12
  } from "./chunk-R4W4VQJZ.js";
@@ -1499,6 +1499,9 @@ function normalizeAdvanced(raw) {
1499
1499
  if (typeof source.cowboyMode === "boolean") {
1500
1500
  out.cowboyMode = source.cowboyMode;
1501
1501
  }
1502
+ if (typeof source.wakeOrchestratorOnGithubEdges === "boolean") {
1503
+ out.wakeOrchestratorOnGithubEdges = source.wakeOrchestratorOnGithubEdges;
1504
+ }
1502
1505
  if (typeof source.showCost === "boolean") {
1503
1506
  out.showCost = source.showCost;
1504
1507
  }
@@ -1517,6 +1520,9 @@ function normalizeAdvanced(raw) {
1517
1520
  if (typeof source.maxConcurrent === "number" && Number.isFinite(source.maxConcurrent)) {
1518
1521
  out.maxConcurrent = Math.max(1, Math.min(32, Math.floor(source.maxConcurrent)));
1519
1522
  }
1523
+ if (typeof source.maxOrchThreads === "number" && Number.isFinite(source.maxOrchThreads)) {
1524
+ out.maxOrchThreads = clampMaxOrchThreads(source.maxOrchThreads);
1525
+ }
1520
1526
  if (typeof source.worktreeMaxCount === "number" && Number.isFinite(source.worktreeMaxCount)) {
1521
1527
  out.worktreeMaxCount = Math.max(1, Math.min(500, Math.floor(source.worktreeMaxCount)));
1522
1528
  }
@@ -2401,6 +2407,9 @@ function updateAdvancedSettings(patch) {
2401
2407
  if (typeof patch.cowboyMode === "boolean") {
2402
2408
  advanced.cowboyMode = patch.cowboyMode;
2403
2409
  }
2410
+ if (typeof patch.wakeOrchestratorOnGithubEdges === "boolean") {
2411
+ advanced.wakeOrchestratorOnGithubEdges = patch.wakeOrchestratorOnGithubEdges;
2412
+ }
2404
2413
  if (typeof patch.showCost === "boolean") {
2405
2414
  advanced.showCost = patch.showCost;
2406
2415
  }
@@ -2424,6 +2433,9 @@ function updateAdvancedSettings(patch) {
2424
2433
  if (typeof patch.maxConcurrent === "number" && Number.isFinite(patch.maxConcurrent)) {
2425
2434
  advanced.maxConcurrent = Math.max(1, Math.min(32, Math.floor(patch.maxConcurrent)));
2426
2435
  }
2436
+ if (typeof patch.maxOrchThreads === "number" && Number.isFinite(patch.maxOrchThreads)) {
2437
+ advanced.maxOrchThreads = clampMaxOrchThreads(patch.maxOrchThreads);
2438
+ }
2427
2439
  if (typeof patch.worktreeMaxCount === "number" && Number.isFinite(patch.worktreeMaxCount)) {
2428
2440
  advanced.worktreeMaxCount = Math.max(1, Math.min(500, Math.floor(patch.worktreeMaxCount)));
2429
2441
  }
@@ -2506,6 +2518,9 @@ function deleteBranchOnPurgeEnabled(settings = loadAppSettings()) {
2506
2518
  function cowboyModeEnabled(settings = loadAppSettings()) {
2507
2519
  return Boolean(settings.advanced.cowboyMode);
2508
2520
  }
2521
+ function wakeOrchestratorOnGithubEdgesEnabled(settings = loadAppSettings()) {
2522
+ return Boolean(settings.advanced.wakeOrchestratorOnGithubEdges);
2523
+ }
2509
2524
  function showCostEnabled(settings = loadAppSettings()) {
2510
2525
  return Boolean(settings.advanced.showCost);
2511
2526
  }
@@ -2557,6 +2572,17 @@ function maxConcurrentAgents(settings = loadAppSettings()) {
2557
2572
  }
2558
2573
  return 5;
2559
2574
  }
2575
+ var MAX_ORCH_THREADS_DEFAULT = 5;
2576
+ var MAX_ORCH_THREADS_MIN = 1;
2577
+ var MAX_ORCH_THREADS_MAX = 32;
2578
+ function clampMaxOrchThreads(n) {
2579
+ return Math.max(MAX_ORCH_THREADS_MIN, Math.min(MAX_ORCH_THREADS_MAX, Math.floor(n)));
2580
+ }
2581
+ function maxOrchThreads(settings = loadAppSettings()) {
2582
+ const n = settings.advanced.maxOrchThreads;
2583
+ if (typeof n === "number" && Number.isFinite(n)) return clampMaxOrchThreads(n);
2584
+ return MAX_ORCH_THREADS_DEFAULT;
2585
+ }
2560
2586
  function resolveClaudeExecutable(settings = loadAppSettings()) {
2561
2587
  return resolveAgentExecutable("claude", settings);
2562
2588
  }
@@ -2793,6 +2819,7 @@ export {
2793
2819
  caffeinateWhileCloudConnectEnabled,
2794
2820
  deleteBranchOnPurgeEnabled,
2795
2821
  cowboyModeEnabled,
2822
+ wakeOrchestratorOnGithubEdgesEnabled,
2796
2823
  showCostEnabled,
2797
2824
  chatTextScale,
2798
2825
  confirmClaudeUsageOverLimitEnabled,
@@ -2807,6 +2834,10 @@ export {
2807
2834
  followUpBehavior,
2808
2835
  agentDoneSound,
2809
2836
  maxConcurrentAgents,
2837
+ MAX_ORCH_THREADS_DEFAULT,
2838
+ MAX_ORCH_THREADS_MIN,
2839
+ MAX_ORCH_THREADS_MAX,
2840
+ maxOrchThreads,
2810
2841
  resolveClaudeExecutable,
2811
2842
  resolveAgentExecutable,
2812
2843
  updateAgentExecutable,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getAbleTimeHost,
6
6
  isAbleTimeConnected
7
- } from "./chunk-23KYDM2U.js";
7
+ } from "./chunk-TKEYXNXY.js";
8
8
 
9
9
  // src/integrations/abletime-mcp.ts
10
10
  var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
@@ -153,7 +153,7 @@ function textsFromUnknown(value) {
153
153
  return "";
154
154
  }
155
155
  async function abletimeMcpRequest(method, params, opts) {
156
- const rawToken = opts?.token ?? await import("./abletime-oauth-TYDQ73GK.js").then((m) => m.ensureAbleTimeAccessToken());
156
+ const rawToken = opts?.token ?? await import("./abletime-oauth-IQZ3LOB2.js").then((m) => m.ensureAbleTimeAccessToken());
157
157
  if (!rawToken?.trim()) {
158
158
  throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
159
159
  }
@@ -224,9 +224,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
224
224
  if (!opts?.token && !isAbleTimeConnected()) {
225
225
  throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
226
226
  }
227
- const rawToken = opts?.token ?? await import("./abletime-oauth-TYDQ73GK.js").then((m) => m.ensureAbleTimeAccessToken());
227
+ const rawToken = opts?.token ?? await import("./abletime-oauth-IQZ3LOB2.js").then((m) => m.ensureAbleTimeAccessToken());
228
228
  if (rawToken && ableTimeUsesRest(rawToken)) {
229
- const { callAbleTimeRestTool } = await import("./abletime-rest-B4VI46MI.js");
229
+ const { callAbleTimeRestTool } = await import("./abletime-rest-7YAO5B74.js");
230
230
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
231
231
  }
232
232
  const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
@@ -242,7 +242,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
242
242
  return await call();
243
243
  }
244
244
  if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
245
- const { callAbleTimeRestTool } = await import("./abletime-rest-B4VI46MI.js");
245
+ const { callAbleTimeRestTool } = await import("./abletime-rest-7YAO5B74.js");
246
246
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
247
247
  }
248
248
  throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
@@ -34,16 +34,16 @@ import {
34
34
  tryReservePort,
35
35
  tryReservePorts,
36
36
  worktreeRunPortsPath
37
- } from "./chunk-NHLTTT5G.js";
38
- import "./chunk-5KH3EQ2C.js";
39
- import "./chunk-EVYOONTE.js";
40
- import "./chunk-ERCYQTJU.js";
37
+ } from "./chunk-DEQLDEYR.js";
38
+ import "./chunk-ORO4ENZR.js";
39
+ import "./chunk-5BFEHSHO.js";
40
+ import "./chunk-RTZO2YJC.js";
41
41
  import "./chunk-N2WW62LF.js";
42
42
  import "./chunk-GK7H3SY7.js";
43
43
  import "./chunk-TL2HK6LZ.js";
44
- import "./chunk-AFSLMWQK.js";
44
+ import "./chunk-JHT3CYLT.js";
45
45
  import "./chunk-WMZIANPV.js";
46
- import "./chunk-N6TGSJVC.js";
46
+ import "./chunk-S3UGLMGE.js";
47
47
  import "./chunk-NSTQ6QKD.js";
48
48
  import {
49
49
  stripNestedElectronEnv
@@ -32,11 +32,11 @@ import {
32
32
  tryReservePort,
33
33
  tryReservePorts,
34
34
  worktreeRunPortsPath
35
- } from "./chunk-PEJ3N5VE.js";
36
- import "./chunk-DYUAVL5S.js";
37
- import "./chunk-BD7QARIJ.js";
38
- import "./chunk-4OVQGZEI.js";
39
- import "./chunk-BDQFZAE6.js";
35
+ } from "./chunk-NGIGRAZB.js";
36
+ import "./chunk-BIM24I3O.js";
37
+ import "./chunk-2BLJ726H.js";
38
+ import "./chunk-G3UV3GXJ.js";
39
+ import "./chunk-JX3OWNOT.js";
40
40
  import "./chunk-BMRJNRQK.js";
41
41
  import "./chunk-NJV5YEKI.js";
42
42
  import "./chunk-N6ZF3XRP.js";
@@ -44,7 +44,7 @@ import "./chunk-OPXEJJBM.js";
44
44
  import "./chunk-6K64FJDD.js";
45
45
  import "./chunk-LG6RJBIY.js";
46
46
  import "./chunk-R4W4VQJZ.js";
47
- import "./chunk-23KYDM2U.js";
47
+ import "./chunk-TKEYXNXY.js";
48
48
  import {
49
49
  stripNestedElectronEnv
50
50
  } from "./chunk-4TR3HZFT.js";
@@ -7,15 +7,15 @@ import {
7
7
  enrichWorkspacesWithGithub,
8
8
  ensureGlobalCoordinatorCwd,
9
9
  formatWorkspaceInventory
10
- } from "./chunk-BD7QARIJ.js";
11
- import "./chunk-4OVQGZEI.js";
12
- import "./chunk-BDQFZAE6.js";
10
+ } from "./chunk-2BLJ726H.js";
11
+ import "./chunk-G3UV3GXJ.js";
12
+ import "./chunk-JX3OWNOT.js";
13
13
  import "./chunk-BMRJNRQK.js";
14
14
  import "./chunk-N6ZF3XRP.js";
15
15
  import "./chunk-6K64FJDD.js";
16
16
  import "./chunk-LG6RJBIY.js";
17
17
  import "./chunk-R4W4VQJZ.js";
18
- import "./chunk-23KYDM2U.js";
18
+ import "./chunk-TKEYXNXY.js";
19
19
  import "./chunk-4TR3HZFT.js";
20
20
  import "./chunk-WDRMZKVB.js";
21
21
  import "./chunk-KI45T4DI.js";
@@ -9,14 +9,14 @@ import {
9
9
  enrichWorkspacesWithGithub,
10
10
  ensureGlobalCoordinatorCwd,
11
11
  formatWorkspaceInventory
12
- } from "./chunk-EVYOONTE.js";
13
- import "./chunk-ERCYQTJU.js";
12
+ } from "./chunk-5BFEHSHO.js";
13
+ import "./chunk-RTZO2YJC.js";
14
14
  import "./chunk-N2WW62LF.js";
15
15
  import "./chunk-GK7H3SY7.js";
16
16
  import "./chunk-TL2HK6LZ.js";
17
- import "./chunk-AFSLMWQK.js";
17
+ import "./chunk-JHT3CYLT.js";
18
18
  import "./chunk-WMZIANPV.js";
19
- import "./chunk-N6TGSJVC.js";
19
+ import "./chunk-S3UGLMGE.js";
20
20
  import "./chunk-NSTQ6QKD.js";
21
21
  import "./chunk-WWUABK6B.js";
22
22
  import "./chunk-FJZWM2ON.js";
@@ -20,14 +20,14 @@ import {
20
20
  remoteCoordinatorSourceRef,
21
21
  slackCoordinatorSourceRef,
22
22
  takenTeamSlugsForOrchestration
23
- } from "./chunk-EVYOONTE.js";
24
- import "./chunk-ERCYQTJU.js";
23
+ } from "./chunk-5BFEHSHO.js";
24
+ import "./chunk-RTZO2YJC.js";
25
25
  import "./chunk-N2WW62LF.js";
26
26
  import "./chunk-GK7H3SY7.js";
27
27
  import "./chunk-TL2HK6LZ.js";
28
- import "./chunk-AFSLMWQK.js";
28
+ import "./chunk-JHT3CYLT.js";
29
29
  import "./chunk-WMZIANPV.js";
30
- import "./chunk-N6TGSJVC.js";
30
+ import "./chunk-S3UGLMGE.js";
31
31
  import "./chunk-NSTQ6QKD.js";
32
32
  import "./chunk-WWUABK6B.js";
33
33
  import "./chunk-FJZWM2ON.js";
@@ -18,15 +18,15 @@ import {
18
18
  remoteCoordinatorSourceRef,
19
19
  slackCoordinatorSourceRef,
20
20
  takenTeamSlugsForOrchestration
21
- } from "./chunk-BD7QARIJ.js";
22
- import "./chunk-4OVQGZEI.js";
23
- import "./chunk-BDQFZAE6.js";
21
+ } from "./chunk-2BLJ726H.js";
22
+ import "./chunk-G3UV3GXJ.js";
23
+ import "./chunk-JX3OWNOT.js";
24
24
  import "./chunk-BMRJNRQK.js";
25
25
  import "./chunk-N6ZF3XRP.js";
26
26
  import "./chunk-6K64FJDD.js";
27
27
  import "./chunk-LG6RJBIY.js";
28
28
  import "./chunk-R4W4VQJZ.js";
29
- import "./chunk-23KYDM2U.js";
29
+ import "./chunk-TKEYXNXY.js";
30
30
  import "./chunk-4TR3HZFT.js";
31
31
  import "./chunk-WDRMZKVB.js";
32
32
  import "./chunk-KI45T4DI.js";