@sideboard-ai/core 0.1.341 → 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 (67) hide show
  1. package/dist/{abletime-MK4T5FZY.js → abletime-MSIMJKKQ.js} +4 -4
  2. package/dist/{abletime-AYYRRDT2.js → abletime-ZIYFR4SI.js} +4 -4
  3. package/dist/{abletime-oauth-NB34M4X4.js → abletime-oauth-2RUKRZYZ.js} +3 -3
  4. package/dist/{abletime-oauth-7TOEFRWH.js → abletime-oauth-IQZ3LOB2.js} +3 -3
  5. package/dist/{abletime-rest-IF7IMJGU.js → abletime-rest-7YAO5B74.js} +3 -3
  6. package/dist/{abletime-rest-7M3QXAXY.js → abletime-rest-UBLSGMSA.js} +3 -3
  7. package/dist/{agents-4WL4U5WD.js → agents-7DCNOMFP.js} +7 -7
  8. package/dist/{agents-FH5NVVCJ.js → agents-LNZ465IM.js} +7 -7
  9. package/dist/{app-settings-377375BJ.js → app-settings-FS7TM55D.js} +9 -1
  10. package/dist/{app-settings-YTOPIRDH.js → app-settings-Q2F57NVK.js} +9 -1
  11. package/dist/{chunk-MGV6JFDY.js → chunk-2BLJ726H.js} +4 -3
  12. package/dist/{chunk-3HJ2USRA.js → chunk-3DMRQB4Y.js} +1 -1
  13. package/dist/{chunk-I5C42O2M.js → chunk-3J3XOIHF.js} +3 -3
  14. package/dist/{chunk-2IA556KV.js → chunk-4HELMBYR.js} +2 -2
  15. package/dist/{chunk-5MHENWO5.js → chunk-4PXHJA5K.js} +2 -2
  16. package/dist/{chunk-TZFYBQAD.js → chunk-4TTTEKNV.js} +2 -2
  17. package/dist/{chunk-K355SYYX.js → chunk-5BFEHSHO.js} +4 -3
  18. package/dist/{chunk-COFHTNQU.js → chunk-5HUR77ZH.js} +22 -22
  19. package/dist/{chunk-CN7GSNEL.js → chunk-5SJGR3VS.js} +1 -1
  20. package/dist/{chunk-WSW27W5R.js → chunk-5TS3KVGI.js} +1 -1
  21. package/dist/{chunk-43BOPWFV.js → chunk-6RO2AOE5.js} +2 -2
  22. package/dist/{chunk-QULOUTDQ.js → chunk-A4ZI7SA3.js} +3 -3
  23. package/dist/{chunk-NF3KRZXV.js → chunk-D7US5R4H.js} +1 -1
  24. package/dist/{chunk-4RIKHUKB.js → chunk-DEQLDEYR.js} +5 -5
  25. package/dist/{chunk-PHLFFV2M.js → chunk-DZF25KTX.js} +23 -23
  26. package/dist/{chunk-HZRYQ27Z.js → chunk-G3UV3GXJ.js} +2 -2
  27. package/dist/{chunk-IY4YNHYD.js → chunk-GUIJMZQG.js} +1 -1
  28. package/dist/{chunk-O6UAW76V.js → chunk-JHT3CYLT.js} +1 -1
  29. package/dist/{chunk-SLTWZRBN.js → chunk-JX3OWNOT.js} +1 -1
  30. package/dist/{chunk-5VXE4ZI4.js → chunk-LDJT3TLN.js} +7 -7
  31. package/dist/{chunk-FVX7JWFW.js → chunk-LHU6ZBFB.js} +2 -2
  32. package/dist/{chunk-ZS7AY6DS.js → chunk-NDBMDHQ5.js} +5 -5
  33. package/dist/{chunk-DF3S5X3H.js → chunk-NGIGRAZB.js} +5 -5
  34. package/dist/{chunk-47UDPUVZ.js → chunk-O2IRQAFB.js} +3 -3
  35. package/dist/{chunk-QBUX2EDG.js → chunk-RTZO2YJC.js} +2 -2
  36. package/dist/{chunk-CMYGUGGZ.js → chunk-S3DTEGMK.js} +8 -8
  37. package/dist/{chunk-DF34F3QR.js → chunk-S3UGLMGE.js} +21 -0
  38. package/dist/{chunk-4BUTF5LN.js → chunk-SLLTEMIL.js} +2 -2
  39. package/dist/{chunk-RZUZU5KD.js → chunk-TKEYXNXY.js} +21 -0
  40. package/dist/{chunk-HNIEEKKR.js → chunk-WO7VF4FG.js} +5 -5
  41. package/dist/{conductor-RGVRIOTZ.js → conductor-4SWJM5FS.js} +5 -5
  42. package/dist/{conductor-QZKG7YPO.js → conductor-Q433HU77.js} +5 -5
  43. package/dist/{coordinator-prompt-CDVIFBYS.js → coordinator-prompt-5QHWCO7V.js} +4 -4
  44. package/dist/{coordinator-prompt-66UHVADL.js → coordinator-prompt-Z7PPP45X.js} +4 -4
  45. package/dist/{global-workspace-KMQSUF2G.js → global-workspace-DL4K4K7O.js} +4 -4
  46. package/dist/{global-workspace-FNDRAJLF.js → global-workspace-VDCZMFCZ.js} +4 -4
  47. package/dist/index.cjs +53 -6
  48. package/dist/index.d.cts +13 -1
  49. package/dist/index.d.ts +13 -1
  50. package/dist/index.js +49 -26
  51. package/dist/{linear-ZJQM5IGJ.js → linear-JE4WAZ3W.js} +2 -2
  52. package/dist/{linear-6DM4FJWT.js → linear-UXMDJAD4.js} +2 -2
  53. package/dist/{linear-list-POPBU2VC.js → linear-list-I4NAOWPN.js} +1 -1
  54. package/dist/{linear-list-4EPKZTYE.js → linear-list-KDLU7QWX.js} +1 -1
  55. package/dist/mcp/run-stdio.cjs +45 -6
  56. package/dist/mcp/run-stdio.js +39 -22
  57. package/dist/{optional-cli-3G2274LT.js → optional-cli-7QXXPEN6.js} +3 -3
  58. package/dist/{optional-cli-CZF2ZFU5.js → optional-cli-RUUCLNSM.js} +4 -4
  59. package/dist/{orchestrator-BKCQUMLB.js → orchestrator-BPCM4OP3.js} +10 -10
  60. package/dist/{orchestrator-SCFWTIE7.js → orchestrator-HIWWPWL5.js} +10 -10
  61. package/dist/{thread-store-OARQT6DL.js → thread-store-HETUMDVA.js} +2 -2
  62. package/dist/{thread-store-W2SSO6IQ.js → thread-store-ILM2ZJCB.js} +2 -2
  63. package/dist/{workspaces-6GB56LMJ.js → workspaces-EIIHHH4S.js} +4 -4
  64. package/dist/{workspaces-EWWLVSZ5.js → workspaces-MX4W4SSB.js} +4 -4
  65. package/dist/{worktree-BRKMPZMJ.js → worktree-BD3EJE24.js} +3 -3
  66. package/dist/{worktree-OB5ABI22.js → worktree-QBVLKACU.js} +3 -3
  67. package/package.json +1 -1
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-R4W4VQJZ.js";
8
8
  import {
9
9
  resolveAgentExecutable
10
- } from "./chunk-RZUZU5KD.js";
10
+ } from "./chunk-TKEYXNXY.js";
11
11
 
12
12
  // src/agents/install.ts
13
13
  import { chmodSync, existsSync } from "fs";
@@ -364,7 +364,7 @@ async function loginAgent(agent) {
364
364
  };
365
365
  }
366
366
  async function loginManagedAccount(accountId) {
367
- const { loadAppSettings } = await import("./app-settings-377375BJ.js");
367
+ const { loadAppSettings } = await import("./app-settings-FS7TM55D.js");
368
368
  const { loginEnvPrefix } = await import("./managed-accounts-JJTAKHMG.js");
369
369
  const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
370
370
  if (!account) {
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  abletimeRestUrl,
12
12
  textFromAbleTimeDoc
13
- } from "./chunk-2IA556KV.js";
13
+ } from "./chunk-4HELMBYR.js";
14
14
  import {
15
15
  assertAbleTimeCredential,
16
16
  callAbleTimeTool,
17
17
  normalizeAbleTimeHost,
18
18
  rewriteAbleTimeError
19
- } from "./chunk-HNIEEKKR.js";
19
+ } from "./chunk-WO7VF4FG.js";
20
20
  import {
21
21
  httpFetch
22
22
  } from "./chunk-JAT3JFOS.js";
@@ -25,7 +25,7 @@ import {
25
25
  getAbleTimeHost,
26
26
  isAbleTimeConnected,
27
27
  saveAbleTimeConnection
28
- } from "./chunk-RZUZU5KD.js";
28
+ } from "./chunk-TKEYXNXY.js";
29
29
 
30
30
  // src/integrations/abletime-attachments.ts
31
31
  function asRecord(value) {
@@ -2,7 +2,7 @@
2
2
  var LIST_TIMEOUT_MS = 15e3;
3
3
  async function listAssignedLinearIssues(opts) {
4
4
  try {
5
- const { listLinearIssuesDirect } = await import("./linear-6DM4FJWT.js");
5
+ const { listLinearIssuesDirect } = await import("./linear-UXMDJAD4.js");
6
6
  const listed = listLinearIssuesDirect({ limit: 50 }).catch(() => []);
7
7
  let timer;
8
8
  try {
@@ -11,11 +11,11 @@ import {
11
11
  isGlobalThread,
12
12
  isOrchestratorThread,
13
13
  isSlackCoordinatorThread
14
- } from "./chunk-K355SYYX.js";
14
+ } from "./chunk-5BFEHSHO.js";
15
15
  import {
16
16
  mergeAgentGitAuthEnv,
17
17
  resolveAgentGitAuthEnv
18
- } from "./chunk-QBUX2EDG.js";
18
+ } from "./chunk-RTZO2YJC.js";
19
19
  import {
20
20
  ATTACHMENTS_DIR,
21
21
  DETACHED_JOBS_DIR,
@@ -40,11 +40,11 @@ import {
40
40
  updateThread,
41
41
  worktreeNameFromPath,
42
42
  writeThread
43
- } from "./chunk-O6UAW76V.js";
43
+ } from "./chunk-JHT3CYLT.js";
44
44
  import {
45
45
  assertOrchestratorCapableAgent,
46
46
  contextTokens
47
- } from "./chunk-DF34F3QR.js";
47
+ } from "./chunk-S3UGLMGE.js";
48
48
  import {
49
49
  stripNestedElectronEnv
50
50
  } from "./chunk-WWUABK6B.js";
@@ -1737,7 +1737,7 @@ var PORT_RANGE_SIZE = 10;
1737
1737
  var RECLAIM_RETRY_DELAY_MS = 40;
1738
1738
  var RECLAIM_TRIES = 8;
1739
1739
  async function killReclaimable(ports, worktreePath, signal) {
1740
- const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-RGVRIOTZ.js");
1740
+ const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-4SWJM5FS.js");
1741
1741
  if (worktreePath) killStaleWorktreeListeners2(ports, worktreePath, signal);
1742
1742
  else killListenersOnPorts2(ports);
1743
1743
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  formatOptionalServicesDirectiveForTurn,
3
3
  formatOptionalServicesReminderForTurn
4
- } from "./chunk-TZFYBQAD.js";
4
+ } from "./chunk-4TTTEKNV.js";
5
5
  import {
6
6
  extractPresentedPlan,
7
7
  isPresentPlanToolName,
@@ -21,7 +21,7 @@ import {
21
21
  parseSessionQuotaResetAt,
22
22
  planModeTurnInstruction,
23
23
  resolveQuotaFallbackAgent
24
- } from "./chunk-5VXE4ZI4.js";
24
+ } from "./chunk-LDJT3TLN.js";
25
25
  import {
26
26
  applyWorktreePkgCacheEnv,
27
27
  buildBrightsySessionSeed,
@@ -56,7 +56,7 @@ import {
56
56
  worktreeDevProcessKey,
57
57
  worktreeRunProcessKey,
58
58
  worktreeSetupProcessKey
59
- } from "./chunk-DF3S5X3H.js";
59
+ } from "./chunk-NGIGRAZB.js";
60
60
  import {
61
61
  applyAgentEvent,
62
62
  clipAgentEventForPaint,
@@ -101,7 +101,7 @@ import {
101
101
  stageAbsolutePathsAsAttachments,
102
102
  stageBuffersAsAttachments,
103
103
  syncWorkspacesFromThreads
104
- } from "./chunk-MGV6JFDY.js";
104
+ } from "./chunk-2BLJ726H.js";
105
105
  import {
106
106
  addPrStackLayer,
107
107
  allocateTeamSlug,
@@ -154,7 +154,7 @@ import {
154
154
  resolveRepoRoot,
155
155
  switchWorktreeBranch,
156
156
  withRepoGitLock
157
- } from "./chunk-HZRYQ27Z.js";
157
+ } from "./chunk-G3UV3GXJ.js";
158
158
  import {
159
159
  REVIEW_TAB_TITLE,
160
160
  agentNicknameFromWorktreePath,
@@ -186,7 +186,7 @@ import {
186
186
  worktreeNameFromPath,
187
187
  worktreeSlugForTicket,
188
188
  writeThread
189
- } from "./chunk-SLTWZRBN.js";
189
+ } from "./chunk-JX3OWNOT.js";
190
190
  import {
191
191
  askBlockStillWaiting,
192
192
  extractPendingPlanQuestions,
@@ -264,7 +264,7 @@ import {
264
264
  wakeOrchestratorOnGithubEdgesEnabled,
265
265
  withTurnScopedCost,
266
266
  writeViewerContext
267
- } from "./chunk-RZUZU5KD.js";
267
+ } from "./chunk-TKEYXNXY.js";
268
268
  import {
269
269
  examplePrefixedBranch,
270
270
  sanitizeGitBranchPrefix
@@ -527,9 +527,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
527
527
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
528
528
  );
529
529
  }
530
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-FNDRAJLF.js");
530
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-VDCZMFCZ.js");
531
531
  if (isGlobalThread2(thread)) {
532
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-CDVIFBYS.js");
532
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-5QHWCO7V.js");
533
533
  ensureGlobalCoordinatorCwd2(
534
534
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
535
535
  );
@@ -3299,7 +3299,7 @@ async function createThread(input, _onSetupLine) {
3299
3299
  });
3300
3300
  await requireAgent(resolved.agent);
3301
3301
  if (input.cowboy) {
3302
- const { cowboyModeEnabled } = await import("./app-settings-377375BJ.js");
3302
+ const { cowboyModeEnabled } = await import("./app-settings-FS7TM55D.js");
3303
3303
  if (!cowboyModeEnabled()) {
3304
3304
  throw new Error(
3305
3305
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -3358,7 +3358,7 @@ async function createThread(input, _onSetupLine) {
3358
3358
  let sourceIsFork = false;
3359
3359
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
3360
3360
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
3361
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-AYYRRDT2.js");
3361
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-ZIYFR4SI.js");
3362
3362
  const task = await ensureAbleTimeTask({
3363
3363
  title: title?.trim() || "Untitled work",
3364
3364
  description: input.prompt?.trim() || void 0
@@ -3469,7 +3469,7 @@ async function createThread(input, _onSetupLine) {
3469
3469
  return readThread(thread.id) ?? thread;
3470
3470
  }
3471
3471
  async function listLinearIssues(agent, repoPath) {
3472
- const { getAdapter: getAdapter2 } = await import("./agents-4WL4U5WD.js");
3472
+ const { getAdapter: getAdapter2 } = await import("./agents-7DCNOMFP.js");
3473
3473
  await requireAgent(agent, { requireLinear: true });
3474
3474
  const adapter = getAdapter2(agent);
3475
3475
  if (!adapter.listLinearIssues) {
@@ -4252,7 +4252,7 @@ async function adoptThread(input) {
4252
4252
  messages: input.messages ?? []
4253
4253
  });
4254
4254
  writeThread(thread);
4255
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-EWWLVSZ5.js");
4255
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-MX4W4SSB.js");
4256
4256
  await addWorkspace2(repoPath);
4257
4257
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-YQBN43QD.js");
4258
4258
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -7807,11 +7807,11 @@ function realDeps() {
7807
7807
  parentIdForThread,
7808
7808
  designatedId: designatedOrchestratorId,
7809
7809
  send: async (threadId, prompt) => {
7810
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-SCFWTIE7.js");
7810
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-HIWWPWL5.js");
7811
7811
  await getOrchestrator2().send(threadId, prompt, { followUp: "queue" });
7812
7812
  },
7813
7813
  startOrchestration: async (prompt) => {
7814
- const { startOrchestration: startOrchestration2 } = await import("./orchestrator-SCFWTIE7.js");
7814
+ const { startOrchestration: startOrchestration2 } = await import("./orchestrator-HIWWPWL5.js");
7815
7815
  const defaults = resolveOrchestratorDefaults();
7816
7816
  await startOrchestration2({
7817
7817
  goal: prompt,
@@ -7838,7 +7838,7 @@ function formatScheduledPrompt(name, prompt) {
7838
7838
  ${prompt}`;
7839
7839
  }
7840
7840
  async function defaultDeps() {
7841
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-SCFWTIE7.js");
7841
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-HIWWPWL5.js");
7842
7842
  const orch = getOrchestrator2();
7843
7843
  return {
7844
7844
  findThread: (id) => findThreadByRef(id),
@@ -8194,7 +8194,7 @@ var Orchestrator = class {
8194
8194
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
8195
8195
  });
8196
8196
  }
8197
- const { autoCleanupOrphansEnabled } = await import("./app-settings-377375BJ.js");
8197
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-FS7TM55D.js");
8198
8198
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
8199
8199
  await cleanupOrphanWorktrees({ repoPaths });
8200
8200
  }
@@ -8584,7 +8584,7 @@ var Orchestrator = class {
8584
8584
  }
8585
8585
  await setup;
8586
8586
  if (skipSetup) return;
8587
- const { autoRunAfterSetupEnabled } = await import("./app-settings-377375BJ.js");
8587
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-FS7TM55D.js");
8588
8588
  if (autoRunAfterSetupEnabled()) {
8589
8589
  try {
8590
8590
  await this.startDev(threadId);
@@ -8969,7 +8969,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
8969
8969
  }
8970
8970
  const isBrightsy = fresh.agent === "brightsy";
8971
8971
  const isOrchestration = isOrchestratorThread(fresh);
8972
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-377375BJ.js");
8972
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-FS7TM55D.js");
8973
8973
  const gitAuthMode = getGithubGitAuthMode();
8974
8974
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
8975
8975
  githubSlug: turnOrigin?.forge === "github" ? turnOrigin.slug : await withTimeout(resolveGithubRepoSlug(fresh.worktreePath), 8e3, "resolveGithubRepoSlug").catch(() => null),
@@ -10312,7 +10312,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
10312
10312
  if (Object.keys(patch).length === 0) continue;
10313
10313
  updateThread(t.id, patch);
10314
10314
  }
10315
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-377375BJ.js");
10315
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-FS7TM55D.js");
10316
10316
  const latest = this.requireThread(thread.id);
10317
10317
  if (!shouldAutoArchiveOnPrMerge({
10318
10318
  previousPrState: prevState || null,
@@ -10636,7 +10636,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
10636
10636
  await runArchiveScript(thread.repoPath, thread.worktreePath);
10637
10637
  } catch {
10638
10638
  }
10639
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-377375BJ.js");
10639
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-FS7TM55D.js");
10640
10640
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
10641
10641
  await removeWorktree(thread.repoPath, thread.worktreePath, {
10642
10642
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -10774,7 +10774,7 @@ async function startOrchestration(opts) {
10774
10774
  sourceRef: "default",
10775
10775
  ...createOpts
10776
10776
  }).catch(async () => {
10777
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-OB5ABI22.js");
10777
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-QBVLKACU.js");
10778
10778
  const repo = await resolveRepoRoot2(repoPath);
10779
10779
  const def = await resolveDefaultBranch2(repo);
10780
10780
  return orch.createThread({
@@ -10784,7 +10784,7 @@ async function startOrchestration(opts) {
10784
10784
  repoPath: repo
10785
10785
  });
10786
10786
  });
10787
- const { updateThread: upd } = await import("./thread-store-W2SSO6IQ.js");
10787
+ const { updateThread: upd } = await import("./thread-store-ILM2ZJCB.js");
10788
10788
  const updated = upd(thread.id, {
10789
10789
  sourceType: "orchestration",
10790
10790
  sourceRef: goal
@@ -4,7 +4,7 @@ import {
4
4
  normalizeTakenSlug,
5
5
  normalizeWorktreePath,
6
6
  takenSlugsFromThread
7
- } from "./chunk-SLTWZRBN.js";
7
+ } from "./chunk-JX3OWNOT.js";
8
8
  import {
9
9
  ensureWorktreeSideboardIgnored
10
10
  } from "./chunk-BMRJNRQK.js";
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  getGithubGitAuthMode,
27
27
  getGithubPat
28
- } from "./chunk-RZUZU5KD.js";
28
+ } from "./chunk-TKEYXNXY.js";
29
29
  import {
30
30
  worktreesRoot
31
31
  } from "./chunk-H4UEFJRI.js";
@@ -16,7 +16,7 @@ import {
16
16
  disconnectLinearConnection,
17
17
  loadAppSettings,
18
18
  saveLinearOAuth
19
- } from "./chunk-RZUZU5KD.js";
19
+ } from "./chunk-TKEYXNXY.js";
20
20
 
21
21
  // src/integrations/linear-oauth.ts
22
22
  import { createHash, randomBytes } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  isOrchestratorCapableAgent,
10
10
  normalizeThinkingEffort,
11
11
  updateAdvancedSettings
12
- } from "./chunk-DF34F3QR.js";
12
+ } from "./chunk-S3UGLMGE.js";
13
13
  import {
14
14
  writePrivateFile
15
15
  } from "./chunk-NSTQ6QKD.js";
@@ -10,7 +10,7 @@ import {
10
10
  isOrchestratorCapableAgent,
11
11
  normalizeThinkingEffort,
12
12
  updateAdvancedSettings
13
- } from "./chunk-RZUZU5KD.js";
13
+ } from "./chunk-TKEYXNXY.js";
14
14
  import {
15
15
  writePrivateFile
16
16
  } from "./chunk-JT7R45JB.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XOEKCE6L.js";
7
7
  import {
8
8
  listAssignedLinearIssues
9
- } from "./chunk-NF3KRZXV.js";
9
+ } from "./chunk-D7US5R4H.js";
10
10
  import {
11
11
  looksLikeConversationSummary,
12
12
  looksLikeSkillBody,
@@ -15,13 +15,13 @@ import {
15
15
  } from "./chunk-BIM24I3O.js";
16
16
  import {
17
17
  isOrchestratorThread
18
- } from "./chunk-MGV6JFDY.js";
18
+ } from "./chunk-2BLJ726H.js";
19
19
  import {
20
20
  codexUnattendedGitConfigArgs,
21
21
  mergeAgentGitAuthEnv,
22
22
  resolveAgentGitAuthEnv,
23
23
  resolveCodexGitWritableRoots
24
- } from "./chunk-HZRYQ27Z.js";
24
+ } from "./chunk-G3UV3GXJ.js";
25
25
  import {
26
26
  loadBrightsyConfig
27
27
  } from "./chunk-RSA47QYR.js";
@@ -80,7 +80,7 @@ import {
80
80
  requestOccupancy,
81
81
  resolveAgentExecutable,
82
82
  resolveClaudeExecutable
83
- } from "./chunk-RZUZU5KD.js";
83
+ } from "./chunk-TKEYXNXY.js";
84
84
  import {
85
85
  isElectronLikeCommand,
86
86
  unwrapStrippedElectronLaunch
@@ -2671,7 +2671,7 @@ var claudeAdapter = {
2671
2671
  );
2672
2672
  }
2673
2673
  const mode = permissionMode(thread);
2674
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-FNDRAJLF.js");
2674
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-VDCZMFCZ.js");
2675
2675
  const isOrchestrator = isOrchestratorThread2(thread);
2676
2676
  const rpc = worktreeAgentRpc(isOrchestrator);
2677
2677
  const injectedServers = await buildInjectedMcpServers({
@@ -2898,7 +2898,7 @@ var claudeAdapter = {
2898
2898
  return { file: claude, args, cwd: thread.worktreePath };
2899
2899
  },
2900
2900
  async listLinearIssues(_repoPath) {
2901
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-4EPKZTYE.js");
2901
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-KDLU7QWX.js");
2902
2902
  return listAssignedLinearIssues2();
2903
2903
  }
2904
2904
  };
@@ -3989,7 +3989,7 @@ var opencodeAdapter = {
3989
3989
  };
3990
3990
  },
3991
3991
  async listLinearIssues(_repoPath) {
3992
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-4EPKZTYE.js");
3992
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-KDLU7QWX.js");
3993
3993
  return listAssignedLinearIssues2();
3994
3994
  }
3995
3995
  };
@@ -6,14 +6,14 @@ import {
6
6
  normalizeAbleTimeCredential,
7
7
  normalizeAbleTimeHost,
8
8
  rewriteAbleTimeError
9
- } from "./chunk-ZS7AY6DS.js";
9
+ } from "./chunk-NDBMDHQ5.js";
10
10
  import {
11
11
  httpFetch
12
12
  } from "./chunk-2GPQZZLY.js";
13
13
  import {
14
14
  getAbleTimeAccessToken,
15
15
  getAbleTimeHost
16
- } from "./chunk-DF34F3QR.js";
16
+ } from "./chunk-S3UGLMGE.js";
17
17
 
18
18
  // src/integrations/abletime-rest.ts
19
19
  var ABLETIME_REST_PREFIX = "/api/public/v2";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  getAbleTimeHost,
8
8
  isAbleTimeConnected
9
- } from "./chunk-DF34F3QR.js";
9
+ } from "./chunk-S3UGLMGE.js";
10
10
 
11
11
  // src/integrations/abletime-mcp.ts
12
12
  var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
@@ -155,7 +155,7 @@ function textsFromUnknown(value) {
155
155
  return "";
156
156
  }
157
157
  async function abletimeMcpRequest(method, params, opts) {
158
- const rawToken = opts?.token ?? await import("./abletime-oauth-NB34M4X4.js").then((m) => m.ensureAbleTimeAccessToken());
158
+ const rawToken = opts?.token ?? await import("./abletime-oauth-2RUKRZYZ.js").then((m) => m.ensureAbleTimeAccessToken());
159
159
  if (!rawToken?.trim()) {
160
160
  throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
161
161
  }
@@ -226,9 +226,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
226
226
  if (!opts?.token && !isAbleTimeConnected()) {
227
227
  throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
228
228
  }
229
- const rawToken = opts?.token ?? await import("./abletime-oauth-NB34M4X4.js").then((m) => m.ensureAbleTimeAccessToken());
229
+ const rawToken = opts?.token ?? await import("./abletime-oauth-2RUKRZYZ.js").then((m) => m.ensureAbleTimeAccessToken());
230
230
  if (rawToken && ableTimeUsesRest(rawToken)) {
231
- const { callAbleTimeRestTool } = await import("./abletime-rest-7M3QXAXY.js");
231
+ const { callAbleTimeRestTool } = await import("./abletime-rest-UBLSGMSA.js");
232
232
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
233
233
  }
234
234
  const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
@@ -244,7 +244,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
244
244
  return await call();
245
245
  }
246
246
  if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
247
- const { callAbleTimeRestTool } = await import("./abletime-rest-7M3QXAXY.js");
247
+ const { callAbleTimeRestTool } = await import("./abletime-rest-UBLSGMSA.js");
248
248
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
249
249
  }
250
250
  throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
@@ -8,11 +8,11 @@ import {
8
8
  isGlobalThread,
9
9
  isOrchestratorThread,
10
10
  isSlackCoordinatorThread
11
- } from "./chunk-MGV6JFDY.js";
11
+ } from "./chunk-2BLJ726H.js";
12
12
  import {
13
13
  mergeAgentGitAuthEnv,
14
14
  resolveAgentGitAuthEnv
15
- } from "./chunk-HZRYQ27Z.js";
15
+ } from "./chunk-G3UV3GXJ.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-SLTWZRBN.js";
27
+ } from "./chunk-JX3OWNOT.js";
28
28
  import {
29
29
  ensureWorktreeSideboardIgnored
30
30
  } from "./chunk-BMRJNRQK.js";
@@ -49,7 +49,7 @@ import {
49
49
  import {
50
50
  assertOrchestratorCapableAgent,
51
51
  contextTokens
52
- } from "./chunk-RZUZU5KD.js";
52
+ } from "./chunk-TKEYXNXY.js";
53
53
  import {
54
54
  stripNestedElectronEnv
55
55
  } from "./chunk-4TR3HZFT.js";
@@ -1705,7 +1705,7 @@ var PORT_RANGE_SIZE = 10;
1705
1705
  var RECLAIM_RETRY_DELAY_MS = 40;
1706
1706
  var RECLAIM_TRIES = 8;
1707
1707
  async function killReclaimable(ports, worktreePath, signal) {
1708
- const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-QZKG7YPO.js");
1708
+ const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-Q433HU77.js");
1709
1709
  if (worktreePath) killStaleWorktreeListeners2(ports, worktreePath, signal);
1710
1710
  else killListenersOnPorts2(ports);
1711
1711
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_ABLETIME_HOST,
3
3
  normalizeAbleTimeHost
4
- } from "./chunk-HNIEEKKR.js";
4
+ } from "./chunk-WO7VF4FG.js";
5
5
  import {
6
6
  httpFetch
7
7
  } from "./chunk-JAT3JFOS.js";
@@ -10,7 +10,7 @@ import {
10
10
  getAbleTimeHost,
11
11
  loadAppSettings,
12
12
  saveAbleTimeConnection
13
- } from "./chunk-RZUZU5KD.js";
13
+ } from "./chunk-TKEYXNXY.js";
14
14
 
15
15
  // src/integrations/abletime-oauth.ts
16
16
  import { createHash, randomBytes } from "crypto";
@@ -280,7 +280,7 @@ async function startAbleTimeOAuth(opts) {
280
280
  persistAbleTimeTokens(data, { host });
281
281
  const token = data.access_token.trim();
282
282
  try {
283
- const { getAbleTimeOrientation } = await import("./abletime-AYYRRDT2.js");
283
+ const { getAbleTimeOrientation } = await import("./abletime-ZIYFR4SI.js");
284
284
  const orientation = await getAbleTimeOrientation({ token, host });
285
285
  return saveAbleTimeConnection({
286
286
  accessToken: token,
@@ -23,11 +23,11 @@ import {
23
23
  normalizeTakenSlug,
24
24
  normalizeWorktreePath,
25
25
  takenSlugsFromThread
26
- } from "./chunk-O6UAW76V.js";
26
+ } from "./chunk-JHT3CYLT.js";
27
27
  import {
28
28
  getGithubGitAuthMode,
29
29
  getGithubPat
30
- } from "./chunk-DF34F3QR.js";
30
+ } from "./chunk-S3UGLMGE.js";
31
31
  import {
32
32
  worktreesRoot
33
33
  } from "./chunk-WOU343SI.js";
@@ -12,13 +12,13 @@ import {
12
12
  } from "./chunk-ORO4ENZR.js";
13
13
  import {
14
14
  isOrchestratorThread
15
- } from "./chunk-K355SYYX.js";
15
+ } from "./chunk-5BFEHSHO.js";
16
16
  import {
17
17
  codexUnattendedGitConfigArgs,
18
18
  mergeAgentGitAuthEnv,
19
19
  resolveAgentGitAuthEnv,
20
20
  resolveCodexGitWritableRoots
21
- } from "./chunk-QBUX2EDG.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-3HJ2USRA.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-O6UAW76V.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-DF34F3QR.js";
59
+ } from "./chunk-S3UGLMGE.js";
60
60
  import {
61
61
  isElectronLikeCommand,
62
62
  unwrapStrippedElectronLaunch,
@@ -2978,7 +2978,7 @@ var claudeAdapter = {
2978
2978
  );
2979
2979
  }
2980
2980
  const mode = permissionMode(thread);
2981
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-KMQSUF2G.js");
2981
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-DL4K4K7O.js");
2982
2982
  const isOrchestrator = isOrchestratorThread2(thread);
2983
2983
  const rpc = worktreeAgentRpc(isOrchestrator);
2984
2984
  const injectedServers = await buildInjectedMcpServers({
@@ -3205,7 +3205,7 @@ var claudeAdapter = {
3205
3205
  return { file: claude, args, cwd: thread.worktreePath };
3206
3206
  },
3207
3207
  async listLinearIssues(_repoPath) {
3208
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-POPBU2VC.js");
3208
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-I4NAOWPN.js");
3209
3209
  return listAssignedLinearIssues2();
3210
3210
  }
3211
3211
  };
@@ -4679,7 +4679,7 @@ var opencodeAdapter = {
4679
4679
  };
4680
4680
  },
4681
4681
  async listLinearIssues(_repoPath) {
4682
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-POPBU2VC.js");
4682
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-I4NAOWPN.js");
4683
4683
  return listAssignedLinearIssues2();
4684
4684
  }
4685
4685
  };
@@ -1280,6 +1280,9 @@ function normalizeAdvanced(raw) {
1280
1280
  if (typeof source.maxConcurrent === "number" && Number.isFinite(source.maxConcurrent)) {
1281
1281
  out.maxConcurrent = Math.max(1, Math.min(32, Math.floor(source.maxConcurrent)));
1282
1282
  }
1283
+ if (typeof source.maxOrchThreads === "number" && Number.isFinite(source.maxOrchThreads)) {
1284
+ out.maxOrchThreads = clampMaxOrchThreads(source.maxOrchThreads);
1285
+ }
1283
1286
  if (typeof source.worktreeMaxCount === "number" && Number.isFinite(source.worktreeMaxCount)) {
1284
1287
  out.worktreeMaxCount = Math.max(1, Math.min(500, Math.floor(source.worktreeMaxCount)));
1285
1288
  }
@@ -2190,6 +2193,9 @@ function updateAdvancedSettings(patch) {
2190
2193
  if (typeof patch.maxConcurrent === "number" && Number.isFinite(patch.maxConcurrent)) {
2191
2194
  advanced.maxConcurrent = Math.max(1, Math.min(32, Math.floor(patch.maxConcurrent)));
2192
2195
  }
2196
+ if (typeof patch.maxOrchThreads === "number" && Number.isFinite(patch.maxOrchThreads)) {
2197
+ advanced.maxOrchThreads = clampMaxOrchThreads(patch.maxOrchThreads);
2198
+ }
2193
2199
  if (typeof patch.worktreeMaxCount === "number" && Number.isFinite(patch.worktreeMaxCount)) {
2194
2200
  advanced.worktreeMaxCount = Math.max(1, Math.min(500, Math.floor(patch.worktreeMaxCount)));
2195
2201
  }
@@ -2326,6 +2332,17 @@ function maxConcurrentAgents(settings = loadAppSettings()) {
2326
2332
  }
2327
2333
  return 5;
2328
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
+ }
2329
2346
  function resolveClaudeExecutable(settings = loadAppSettings()) {
2330
2347
  return resolveAgentExecutable("claude", settings);
2331
2348
  }
@@ -2533,6 +2550,10 @@ export {
2533
2550
  followUpBehavior,
2534
2551
  agentDoneSound,
2535
2552
  maxConcurrentAgents,
2553
+ MAX_ORCH_THREADS_DEFAULT,
2554
+ MAX_ORCH_THREADS_MIN,
2555
+ MAX_ORCH_THREADS_MAX,
2556
+ maxOrchThreads,
2536
2557
  resolveClaudeExecutable,
2537
2558
  resolveAgentExecutable,
2538
2559
  updateAgentExecutable,
@@ -2,11 +2,11 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-TZFYBQAD.js";
5
+ } from "./chunk-4TTTEKNV.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
9
- } from "./chunk-43BOPWFV.js";
9
+ } from "./chunk-6RO2AOE5.js";
10
10
  import {
11
11
  enrichPathWithNpmGlobalBin
12
12
  } from "./chunk-R4W4VQJZ.js";