@sideboard-ai/core 0.1.249 → 0.1.250

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 (65) hide show
  1. package/dist/{abletime-EM7FH7TX.js → abletime-IDQJI2KW.js} +5 -5
  2. package/dist/{abletime-RLSPFZOO.js → abletime-OGQR4LIL.js} +5 -5
  3. package/dist/{abletime-oauth-LDV3DZNA.js → abletime-oauth-MBAG5MYU.js} +4 -4
  4. package/dist/{abletime-oauth-332MUPBE.js → abletime-oauth-ZQUIY4EM.js} +4 -4
  5. package/dist/{abletime-rest-LR2HWLP2.js → abletime-rest-JZIIT5W3.js} +4 -4
  6. package/dist/{abletime-rest-JZI6UQIR.js → abletime-rest-WEJERY4O.js} +4 -4
  7. package/dist/agents/cursor-runner.js +3 -3
  8. package/dist/{agents-5N4S6YLA.js → agents-72QLUO4L.js} +8 -8
  9. package/dist/{agents-L2NUSMP6.js → agents-7IIUQLCC.js} +9 -9
  10. package/dist/{app-settings-BABO3E4A.js → app-settings-CLARFJUX.js} +2 -2
  11. package/dist/{app-settings-JQ5M3P46.js → app-settings-ONYJ36XH.js} +2 -2
  12. package/dist/{caffeinate-hold-PXHGH7ZN.js → caffeinate-hold-DYJGWK6Y.js} +2 -2
  13. package/dist/{caffeinate-hold-FNKIPXDU.js → caffeinate-hold-UAGLSGMM.js} +2 -2
  14. package/dist/{chunk-HO5TQG3Z.js → chunk-452Y24PW.js} +1 -1
  15. package/dist/{chunk-CXTIOJRX.js → chunk-4723RAO3.js} +2 -2
  16. package/dist/{chunk-3O66W4TI.js → chunk-566W54AN.js} +3 -3
  17. package/dist/{chunk-CJKL7A4G.js → chunk-5F4YFGHL.js} +5 -5
  18. package/dist/{chunk-W632CHCY.js → chunk-66LAOKLK.js} +2 -2
  19. package/dist/{chunk-57ZULG67.js → chunk-CPEIHTG7.js} +3 -3
  20. package/dist/{chunk-BXYUK6DD.js → chunk-DMT62X6L.js} +7 -7
  21. package/dist/{chunk-A4JGXX2F.js → chunk-EHT2DRT4.js} +12 -0
  22. package/dist/{chunk-VGVYYLUC.js → chunk-EV4QJNR7.js} +26 -26
  23. package/dist/{chunk-2I6TW4TW.js → chunk-FGWUZOZN.js} +3 -3
  24. package/dist/{chunk-N6XI5KXL.js → chunk-H547WSSZ.js} +1 -1
  25. package/dist/{chunk-5FLTBGF2.js → chunk-IFHHPPSL.js} +5 -5
  26. package/dist/{chunk-XJXS7TU6.js → chunk-IJIMEK2K.js} +6 -6
  27. package/dist/{chunk-4URNTA75.js → chunk-KJM3E3NF.js} +1 -1
  28. package/dist/{chunk-OJFEVWZN.js → chunk-NOT4SEAM.js} +1 -1
  29. package/dist/{chunk-DQN5U2VH.js → chunk-QN5DL2QO.js} +1 -1
  30. package/dist/{chunk-PELMZRDB.js → chunk-RJC2MKXN.js} +2 -2
  31. package/dist/{chunk-4LIOQ2QW.js → chunk-RLJHH6T7.js} +24 -24
  32. package/dist/{chunk-OXZMLZVK.js → chunk-RTQOCFIV.js} +3 -3
  33. package/dist/{chunk-IBWVE22Z.js → chunk-SJPK5Y5U.js} +4 -4
  34. package/dist/{chunk-224IXQOM.js → chunk-UWQ6UCIB.js} +1 -1
  35. package/dist/{chunk-5SHYLRTU.js → chunk-VVHHBOIA.js} +1 -1
  36. package/dist/{chunk-RUGWYZOB.js → chunk-W4BGLHA3.js} +4 -4
  37. package/dist/{chunk-M5QVZYKK.js → chunk-WSOFNJPD.js} +3 -3
  38. package/dist/{chunk-J5GON4SU.js → chunk-XAISOBBG.js} +1 -1
  39. package/dist/{chunk-XHAK4FSQ.js → chunk-XIEDFRBP.js} +2 -2
  40. package/dist/{chunk-KB4JPKMT.js → chunk-ZC3TVLY6.js} +5 -5
  41. package/dist/{connected-teams-62AJRDDD.js → connected-teams-7CENZDWU.js} +2 -2
  42. package/dist/{connected-teams-GXV22ZSF.js → connected-teams-Z5GOIC5I.js} +2 -2
  43. package/dist/{coordinator-prompt-2P35JCWK.js → coordinator-prompt-ON5YI463.js} +6 -6
  44. package/dist/{coordinator-prompt-5FUU6WZR.js → coordinator-prompt-Q53MIP2G.js} +6 -6
  45. package/dist/{cursor-recover-DFMCTZA4.js → cursor-recover-A6V5UVFT.js} +2 -2
  46. package/dist/{cursor-recover-K3EBEM7M.js → cursor-recover-FALSNEZN.js} +2 -2
  47. package/dist/{global-workspace-5U5Y7266.js → global-workspace-MTBVW6GW.js} +6 -6
  48. package/dist/{global-workspace-NDDNFPYH.js → global-workspace-VWF5AOYN.js} +6 -6
  49. package/dist/index.cjs +13 -0
  50. package/dist/index.d.cts +6 -1
  51. package/dist/index.d.ts +6 -1
  52. package/dist/index.js +21 -19
  53. package/dist/mcp/run-stdio.js +17 -17
  54. package/dist/{orchestrator-5LCP6OTU.js → orchestrator-HEFTR7RA.js} +11 -11
  55. package/dist/{orchestrator-DHIKPDY4.js → orchestrator-NKG4R6TX.js} +10 -10
  56. package/dist/{paths-O6ZEAEUD.js → paths-5JYXTAPC.js} +1 -1
  57. package/dist/{paths-LGKOG7MY.js → paths-IUR3ABNG.js} +1 -1
  58. package/dist/{thread-store-BEBZMOS7.js → thread-store-HDQ4CH54.js} +3 -3
  59. package/dist/{thread-store-S6PJADDM.js → thread-store-ZDR3Z5UG.js} +3 -3
  60. package/dist/{workspaces-RSTX2WL7.js → workspaces-24YJWKJQ.js} +6 -6
  61. package/dist/{workspaces-GFYUCY6N.js → workspaces-QWGSPLMF.js} +6 -6
  62. package/dist/{worktree-UNY4QGFJ.js → worktree-RYZOFNY7.js} +5 -5
  63. package/dist/{worktree-TXIDEBH2.js → worktree-VED7K2UL.js} +5 -5
  64. package/package.json +1 -1
  65. /package/dist/{chunk-KK63BFYN.js → chunk-Z2LGMV6C.js} +0 -0
@@ -25,7 +25,7 @@ import {
25
25
  resolveQuotaFallbackAgent,
26
26
  stripBrightsyNdjsonNoise,
27
27
  toolDescription
28
- } from "./chunk-BXYUK6DD.js";
28
+ } from "./chunk-DMT62X6L.js";
29
29
  import {
30
30
  SLACK_REPLY_FORMATTING,
31
31
  addWorkspace,
@@ -48,7 +48,7 @@ import {
48
48
  stageAbsolutePathsAsAttachments,
49
49
  stageBuffersAsAttachments,
50
50
  syncWorkspacesFromThreads
51
- } from "./chunk-IBWVE22Z.js";
51
+ } from "./chunk-SJPK5Y5U.js";
52
52
  import {
53
53
  addPrStackLayer,
54
54
  allocateTeamName,
@@ -98,7 +98,7 @@ import {
98
98
  worktreeDisplayLabelForGroup,
99
99
  worktreeNameFromPath,
100
100
  worktreeSlugForTicket
101
- } from "./chunk-3O66W4TI.js";
101
+ } from "./chunk-566W54AN.js";
102
102
  import {
103
103
  ATTACHMENTS_DIR,
104
104
  DETACHED_JOBS_DIR,
@@ -130,7 +130,7 @@ import {
130
130
  shouldRetryFailedAgentTurn,
131
131
  summarizeTurnStderr,
132
132
  turnFailChatText
133
- } from "./chunk-5SHYLRTU.js";
133
+ } from "./chunk-VVHHBOIA.js";
134
134
  import {
135
135
  HISTORY_CLEANUP_INTERVAL_HOURS_DEFAULT,
136
136
  applyTurnUsage,
@@ -161,14 +161,14 @@ import {
161
161
  sumUsageList,
162
162
  updateAdvancedSettings,
163
163
  usageOnLimit
164
- } from "./chunk-4URNTA75.js";
164
+ } from "./chunk-KJM3E3NF.js";
165
165
  import {
166
166
  examplePrefixedBranch,
167
167
  sanitizeGitBranchPrefix
168
168
  } from "./chunk-WDRMZKVB.js";
169
169
  import {
170
170
  releaseCaffeinateHoldForThread
171
- } from "./chunk-OJFEVWZN.js";
171
+ } from "./chunk-NOT4SEAM.js";
172
172
  import {
173
173
  writePrivateFile
174
174
  } from "./chunk-JT7R45JB.js";
@@ -183,7 +183,7 @@ import {
183
183
  updateThread,
184
184
  withThreadLock,
185
185
  writeThread
186
- } from "./chunk-CXTIOJRX.js";
186
+ } from "./chunk-4723RAO3.js";
187
187
  import {
188
188
  annotateDevAccessRuns,
189
189
  appDataDir,
@@ -197,7 +197,7 @@ import {
197
197
  threadsDir,
198
198
  workspaceSettingsSourceLabel,
199
199
  worktreesRoot
200
- } from "./chunk-A4JGXX2F.js";
200
+ } from "./chunk-EHT2DRT4.js";
201
201
  import {
202
202
  clearStaleIndexLocks,
203
203
  enrichPathWithNpmGlobalBin,
@@ -443,9 +443,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
443
443
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
444
444
  );
445
445
  }
446
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-NDDNFPYH.js");
446
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-VWF5AOYN.js");
447
447
  if (isGlobalThread2(thread)) {
448
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-2P35JCWK.js");
448
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-ON5YI463.js");
449
449
  ensureGlobalCoordinatorCwd2(
450
450
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
451
451
  );
@@ -4166,7 +4166,7 @@ async function createThread(input, _onSetupLine) {
4166
4166
  });
4167
4167
  await requireAgent(resolved.agent);
4168
4168
  if (input.cowboy) {
4169
- const { cowboyModeEnabled } = await import("./app-settings-JQ5M3P46.js");
4169
+ const { cowboyModeEnabled } = await import("./app-settings-ONYJ36XH.js");
4170
4170
  if (!cowboyModeEnabled()) {
4171
4171
  throw new Error(
4172
4172
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -4224,7 +4224,7 @@ async function createThread(input, _onSetupLine) {
4224
4224
  let sourceIsFork = false;
4225
4225
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
4226
4226
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
4227
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-EM7FH7TX.js");
4227
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-IDQJI2KW.js");
4228
4228
  const task = await ensureAbleTimeTask({
4229
4229
  title: title?.trim() || "Untitled work",
4230
4230
  description: input.prompt?.trim() || void 0
@@ -4330,7 +4330,7 @@ async function createThread(input, _onSetupLine) {
4330
4330
  return readThread(thread.id) ?? thread;
4331
4331
  }
4332
4332
  async function listLinearIssues(agent, repoPath) {
4333
- const { getAdapter: getAdapter2 } = await import("./agents-L2NUSMP6.js");
4333
+ const { getAdapter: getAdapter2 } = await import("./agents-7IIUQLCC.js");
4334
4334
  await requireAgent(agent, { requireLinear: true });
4335
4335
  const adapter = getAdapter2(agent);
4336
4336
  if (!adapter.listLinearIssues) {
@@ -4803,7 +4803,7 @@ async function adoptThread(input) {
4803
4803
  messages: input.messages ?? []
4804
4804
  });
4805
4805
  writeThread(thread);
4806
- const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-GFYUCY6N.js");
4806
+ const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-QWGSPLMF.js");
4807
4807
  await ensureWorkspace2(repoPath);
4808
4808
  const { ensureWorktreeSideboardIgnored: ensureWorktreeSideboardIgnored2 } = await import("./worktree-exclude-RXZPTCNH.js");
4809
4809
  await ensureWorktreeSideboardIgnored2(input.worktreePath);
@@ -7515,7 +7515,7 @@ function formatScheduledPrompt(name, prompt) {
7515
7515
  ${prompt}`;
7516
7516
  }
7517
7517
  async function defaultDeps() {
7518
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-5LCP6OTU.js");
7518
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-HEFTR7RA.js");
7519
7519
  const orch = getOrchestrator2();
7520
7520
  return {
7521
7521
  findThread: (id) => findThreadByRef(id),
@@ -7840,7 +7840,7 @@ var Orchestrator = class {
7840
7840
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
7841
7841
  });
7842
7842
  }
7843
- const { autoCleanupOrphansEnabled } = await import("./app-settings-JQ5M3P46.js");
7843
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-ONYJ36XH.js");
7844
7844
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
7845
7845
  await cleanupOrphanWorktrees({ repoPaths });
7846
7846
  }
@@ -8187,7 +8187,7 @@ var Orchestrator = class {
8187
8187
  }
8188
8188
  await setup;
8189
8189
  if (skipSetup) return;
8190
- const { autoRunAfterSetupEnabled } = await import("./app-settings-JQ5M3P46.js");
8190
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-ONYJ36XH.js");
8191
8191
  if (autoRunAfterSetupEnabled()) {
8192
8192
  try {
8193
8193
  await this.startDev(threadId);
@@ -8557,7 +8557,7 @@ var Orchestrator = class {
8557
8557
  }
8558
8558
  const isBrightsy = fresh.agent === "brightsy";
8559
8559
  const isOrchestration = isOrchestratorThread(fresh);
8560
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-JQ5M3P46.js");
8560
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-ONYJ36XH.js");
8561
8561
  const gitAuthMode = getGithubGitAuthMode();
8562
8562
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
8563
8563
  githubSlug: await withTimeout(
@@ -8712,7 +8712,7 @@ var Orchestrator = class {
8712
8712
  if (!this.stoppedTurns.has(threadId) && this.requireThread(threadId).agent === "cursor" && exitCode !== 0 && !assistantText && parts.length === 0) {
8713
8713
  const sessionId = result.sessionId || this.requireThread(threadId).sessionId || "";
8714
8714
  if (sessionId) {
8715
- const { recoverFinishedCursorRun } = await import("./cursor-recover-DFMCTZA4.js");
8715
+ const { recoverFinishedCursorRun } = await import("./cursor-recover-A6V5UVFT.js");
8716
8716
  for (let i = 0; i < 8; i++) {
8717
8717
  const recovered = recoverFinishedCursorRun({
8718
8718
  agentId: sessionId,
@@ -9858,7 +9858,7 @@ var Orchestrator = class {
9858
9858
  if (!titled.userSetTitle && meta.title && titled.title !== meta.title) {
9859
9859
  updateThread(thread.id, { title: meta.title });
9860
9860
  }
9861
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-JQ5M3P46.js");
9861
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-ONYJ36XH.js");
9862
9862
  const latest = this.requireThread(thread.id);
9863
9863
  if (!shouldAutoArchiveOnPrMerge({
9864
9864
  previousPrState: prevState || null,
@@ -10140,7 +10140,7 @@ var Orchestrator = class {
10140
10140
  this.enforceHistoryRetention();
10141
10141
  if (thread.repoPath && !isGlobalRepoPath(thread.repoPath)) {
10142
10142
  try {
10143
- const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-GFYUCY6N.js");
10143
+ const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-QWGSPLMF.js");
10144
10144
  await ensureWorkspace2(thread.repoPath);
10145
10145
  } catch {
10146
10146
  }
@@ -10167,7 +10167,7 @@ var Orchestrator = class {
10167
10167
  await runArchiveScript(thread.repoPath, thread.worktreePath);
10168
10168
  } catch {
10169
10169
  }
10170
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-JQ5M3P46.js");
10170
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-ONYJ36XH.js");
10171
10171
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
10172
10172
  await removeWorktree(thread.repoPath, thread.worktreePath, {
10173
10173
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -10182,7 +10182,7 @@ var Orchestrator = class {
10182
10182
  throw new Error("Thread is not archived");
10183
10183
  }
10184
10184
  if (isGlobalThread(thread)) {
10185
- const { globalAgentCwd } = await import("./paths-O6ZEAEUD.js");
10185
+ const { globalAgentCwd } = await import("./paths-5JYXTAPC.js");
10186
10186
  updateThread(thread.id, { worktreePath: globalAgentCwd() });
10187
10187
  const restored2 = setStatus(thread.id, "idle");
10188
10188
  this.emit({ type: "status_changed", threadId: restored2.id, status: restored2.status });
@@ -10194,7 +10194,7 @@ var Orchestrator = class {
10194
10194
  `Cowboy checkout missing: ${thread.worktreePath}. Re-add the project folder, then restore.`
10195
10195
  );
10196
10196
  }
10197
- const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-UNY4QGFJ.js");
10197
+ const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-RYZOFNY7.js");
10198
10198
  const slug = thread.worktreePath.split("/").pop();
10199
10199
  const dest = thread.worktreePath;
10200
10200
  await withRepoGitLock(thread.repoPath, async () => {
@@ -10304,7 +10304,7 @@ async function startOrchestration(opts) {
10304
10304
  sourceRef: "default",
10305
10305
  ...createOpts
10306
10306
  }).catch(async () => {
10307
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-UNY4QGFJ.js");
10307
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-RYZOFNY7.js");
10308
10308
  const repo = await resolveRepoRoot2(repoPath);
10309
10309
  const def = await resolveDefaultBranch2(repo);
10310
10310
  return orch.createThread({
@@ -10314,7 +10314,7 @@ async function startOrchestration(opts) {
10314
10314
  repoPath: repo
10315
10315
  });
10316
10316
  });
10317
- const { updateThread: upd } = await import("./thread-store-S6PJADDM.js");
10317
+ const { updateThread: upd } = await import("./thread-store-ZDR3Z5UG.js");
10318
10318
  const updated = upd(thread.id, {
10319
10319
  sourceType: "orchestration",
10320
10320
  sourceRef: goal
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_ABLETIME_HOST,
3
3
  normalizeAbleTimeHost
4
- } from "./chunk-5FLTBGF2.js";
4
+ } from "./chunk-IFHHPPSL.js";
5
5
  import {
6
6
  httpFetch
7
7
  } from "./chunk-N7WZ6NIN.js";
@@ -10,7 +10,7 @@ import {
10
10
  getAbleTimeHost,
11
11
  loadAppSettings,
12
12
  saveAbleTimeConnection
13
- } from "./chunk-4URNTA75.js";
13
+ } from "./chunk-KJM3E3NF.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-EM7FH7TX.js");
283
+ const { getAbleTimeOrientation } = await import("./abletime-IDQJI2KW.js");
284
284
  const orientation = await getAbleTimeOrientation({ token, host });
285
285
  return saveAbleTimeConnection({
286
286
  accessToken: token,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  appDataDir
5
- } from "./chunk-KK63BFYN.js";
5
+ } from "./chunk-Z2LGMV6C.js";
6
6
 
7
7
  // src/agents/cursor-store.ts
8
8
  import { join } from "path";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getAbleTimeHost,
6
6
  isAbleTimeConnected
7
- } from "./chunk-4URNTA75.js";
7
+ } from "./chunk-KJM3E3NF.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-332MUPBE.js").then((m) => m.ensureAbleTimeAccessToken());
156
+ const rawToken = opts?.token ?? await import("./abletime-oauth-ZQUIY4EM.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-332MUPBE.js").then((m) => m.ensureAbleTimeAccessToken());
227
+ const rawToken = opts?.token ?? await import("./abletime-oauth-ZQUIY4EM.js").then((m) => m.ensureAbleTimeAccessToken());
228
228
  if (rawToken && ableTimeUsesRest(rawToken)) {
229
- const { callAbleTimeRestTool } = await import("./abletime-rest-LR2HWLP2.js");
229
+ const { callAbleTimeRestTool } = await import("./abletime-rest-JZIIT5W3.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-LR2HWLP2.js");
245
+ const { callAbleTimeRestTool } = await import("./abletime-rest-JZIIT5W3.js");
246
246
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
247
247
  }
248
248
  throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
@@ -2,13 +2,13 @@
2
2
 
3
3
  import {
4
4
  isOrchestratorThread
5
- } from "./chunk-RUGWYZOB.js";
5
+ } from "./chunk-W4BGLHA3.js";
6
6
  import {
7
7
  applyConnectedTeamToCli,
8
8
  brightsyMcpServerName,
9
9
  ensureCliTeamTracked,
10
10
  ensureConnectedBrightsyTeamTokens
11
- } from "./chunk-J5GON4SU.js";
11
+ } from "./chunk-XAISOBBG.js";
12
12
  import {
13
13
  loadBrightsyConfig
14
14
  } from "./chunk-P2BSMNHB.js";
@@ -20,7 +20,7 @@ import {
20
20
  mergeAgentGitAuthEnv,
21
21
  resolveAgentGitAuthEnv,
22
22
  resolveCodexGitWritableRoots
23
- } from "./chunk-M5QVZYKK.js";
23
+ } from "./chunk-WSOFNJPD.js";
24
24
  import {
25
25
  enrichPathWithNpmGlobalBin,
26
26
  isConductorBundledCli,
@@ -37,10 +37,10 @@ import {
37
37
  loadAppSettings,
38
38
  resolveAgentExecutable,
39
39
  resolveClaudeExecutable
40
- } from "./chunk-HO5TQG3Z.js";
40
+ } from "./chunk-452Y24PW.js";
41
41
  import {
42
42
  appDataDir
43
- } from "./chunk-KK63BFYN.js";
43
+ } from "./chunk-Z2LGMV6C.js";
44
44
  import {
45
45
  isElectronLikeCommand,
46
46
  unwrapStrippedElectronLaunch,
@@ -2947,7 +2947,7 @@ var claudeAdapter = {
2947
2947
  );
2948
2948
  }
2949
2949
  const mode = permissionMode(thread);
2950
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-5U5Y7266.js");
2950
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-MTBVW6GW.js");
2951
2951
  const isOrchestrator = isOrchestratorThread2(thread);
2952
2952
  const injectedServers = await buildInjectedMcpServers({
2953
2953
  includeSideboard: true,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-77WWLBCI.js";
11
11
  import {
12
12
  appDataDir
13
- } from "./chunk-A4JGXX2F.js";
13
+ } from "./chunk-EHT2DRT4.js";
14
14
  import {
15
15
  stripNestedElectronEnv
16
16
  } from "./chunk-4TR3HZFT.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-JT7R45JB.js";
4
4
  import {
5
5
  appDataDir
6
- } from "./chunk-A4JGXX2F.js";
6
+ } from "./chunk-EHT2DRT4.js";
7
7
 
8
8
  // src/store/caffeinate-hold.ts
9
9
  import { spawn } from "child_process";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-NSTQ6QKD.js";
6
6
  import {
7
7
  appDataDir
8
- } from "./chunk-KK63BFYN.js";
8
+ } from "./chunk-Z2LGMV6C.js";
9
9
 
10
10
  // src/store/caffeinate-hold.ts
11
11
  import { spawn } from "child_process";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  cursorSdkStoreDir
5
- } from "./chunk-N6XI5KXL.js";
5
+ } from "./chunk-H547WSSZ.js";
6
6
  import {
7
7
  normalizeThinkingEffort
8
8
  } from "./chunk-KGZBYWZ3.js";
@@ -10,7 +10,7 @@ import {
10
10
  threadFilePath,
11
11
  threadLockPath,
12
12
  threadsDir
13
- } from "./chunk-KK63BFYN.js";
13
+ } from "./chunk-Z2LGMV6C.js";
14
14
 
15
15
  // src/store/thread-store.ts
16
16
  import { randomUUID } from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-WDDUIGFK.js";
8
8
  import {
9
9
  releaseCaffeinateHoldForThread
10
- } from "./chunk-DQN5U2VH.js";
10
+ } from "./chunk-QN5DL2QO.js";
11
11
  import {
12
12
  adjustBrightsyTurnExit,
13
13
  applyAgentEvent,
@@ -44,7 +44,7 @@ import {
44
44
  summarizeTurnStderr,
45
45
  toolDescription,
46
46
  turnFailChatText
47
- } from "./chunk-XJXS7TU6.js";
47
+ } from "./chunk-IJIMEK2K.js";
48
48
  import {
49
49
  SLACK_REPLY_FORMATTING,
50
50
  addWorkspace,
@@ -67,7 +67,7 @@ import {
67
67
  stageAbsolutePathsAsAttachments,
68
68
  stageBuffersAsAttachments,
69
69
  syncWorkspacesFromThreads
70
- } from "./chunk-RUGWYZOB.js";
70
+ } from "./chunk-W4BGLHA3.js";
71
71
  import {
72
72
  addPrStackLayer,
73
73
  allocateTeamName,
@@ -117,7 +117,7 @@ import {
117
117
  worktreeDisplayLabelForGroup,
118
118
  worktreeNameFromPath,
119
119
  worktreeSlugForTicket
120
- } from "./chunk-M5QVZYKK.js";
120
+ } from "./chunk-WSOFNJPD.js";
121
121
  import {
122
122
  ATTACHMENTS_DIR,
123
123
  DETACHED_JOBS_DIR,
@@ -135,7 +135,7 @@ import {
135
135
  updateThread,
136
136
  withThreadLock,
137
137
  writeThread
138
- } from "./chunk-PELMZRDB.js";
138
+ } from "./chunk-RJC2MKXN.js";
139
139
  import {
140
140
  ensureWorktreeSideboardIgnored
141
141
  } from "./chunk-DD67JWTN.js";
@@ -176,7 +176,7 @@ import {
176
176
  sumUsageList,
177
177
  updateAdvancedSettings,
178
178
  usageOnLimit
179
- } from "./chunk-HO5TQG3Z.js";
179
+ } from "./chunk-452Y24PW.js";
180
180
  import {
181
181
  writePrivateFile
182
182
  } from "./chunk-NSTQ6QKD.js";
@@ -193,7 +193,7 @@ import {
193
193
  threadsDir,
194
194
  workspaceSettingsSourceLabel,
195
195
  worktreesRoot
196
- } from "./chunk-KK63BFYN.js";
196
+ } from "./chunk-Z2LGMV6C.js";
197
197
  import {
198
198
  stripNestedElectronEnv
199
199
  } from "./chunk-WWUABK6B.js";
@@ -491,9 +491,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
491
491
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
492
492
  );
493
493
  }
494
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-5U5Y7266.js");
494
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-MTBVW6GW.js");
495
495
  if (isGlobalThread2(thread)) {
496
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-5FUU6WZR.js");
496
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-Q53MIP2G.js");
497
497
  ensureGlobalCoordinatorCwd2(
498
498
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
499
499
  );
@@ -3970,7 +3970,7 @@ async function createThread(input, _onSetupLine) {
3970
3970
  });
3971
3971
  await requireAgent(resolved.agent);
3972
3972
  if (input.cowboy) {
3973
- const { cowboyModeEnabled } = await import("./app-settings-BABO3E4A.js");
3973
+ const { cowboyModeEnabled } = await import("./app-settings-CLARFJUX.js");
3974
3974
  if (!cowboyModeEnabled()) {
3975
3975
  throw new Error(
3976
3976
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -4028,7 +4028,7 @@ async function createThread(input, _onSetupLine) {
4028
4028
  let sourceIsFork = false;
4029
4029
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
4030
4030
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
4031
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-RLSPFZOO.js");
4031
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-OGQR4LIL.js");
4032
4032
  const task = await ensureAbleTimeTask({
4033
4033
  title: title?.trim() || "Untitled work",
4034
4034
  description: input.prompt?.trim() || void 0
@@ -4595,7 +4595,7 @@ async function adoptThread(input) {
4595
4595
  messages: input.messages ?? []
4596
4596
  });
4597
4597
  writeThread(thread);
4598
- const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-RSTX2WL7.js");
4598
+ const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-24YJWKJQ.js");
4599
4599
  await ensureWorkspace2(repoPath);
4600
4600
  const { ensureWorktreeSideboardIgnored: ensureWorktreeSideboardIgnored2 } = await import("./worktree-exclude-5N2KTYIT.js");
4601
4601
  await ensureWorktreeSideboardIgnored2(input.worktreePath);
@@ -7101,7 +7101,7 @@ function formatScheduledPrompt(name, prompt) {
7101
7101
  ${prompt}`;
7102
7102
  }
7103
7103
  async function defaultDeps() {
7104
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-DHIKPDY4.js");
7104
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-NKG4R6TX.js");
7105
7105
  const orch = getOrchestrator2();
7106
7106
  return {
7107
7107
  findThread: (id) => findThreadByRef(id),
@@ -7426,7 +7426,7 @@ var Orchestrator = class {
7426
7426
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
7427
7427
  });
7428
7428
  }
7429
- const { autoCleanupOrphansEnabled } = await import("./app-settings-BABO3E4A.js");
7429
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-CLARFJUX.js");
7430
7430
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
7431
7431
  await cleanupOrphanWorktrees({ repoPaths });
7432
7432
  }
@@ -7773,7 +7773,7 @@ var Orchestrator = class {
7773
7773
  }
7774
7774
  await setup;
7775
7775
  if (skipSetup) return;
7776
- const { autoRunAfterSetupEnabled } = await import("./app-settings-BABO3E4A.js");
7776
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-CLARFJUX.js");
7777
7777
  if (autoRunAfterSetupEnabled()) {
7778
7778
  try {
7779
7779
  await this.startDev(threadId);
@@ -8143,7 +8143,7 @@ var Orchestrator = class {
8143
8143
  }
8144
8144
  const isBrightsy = fresh.agent === "brightsy";
8145
8145
  const isOrchestration = isOrchestratorThread(fresh);
8146
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-BABO3E4A.js");
8146
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-CLARFJUX.js");
8147
8147
  const gitAuthMode = getGithubGitAuthMode();
8148
8148
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
8149
8149
  githubSlug: await withTimeout(
@@ -8298,7 +8298,7 @@ var Orchestrator = class {
8298
8298
  if (!this.stoppedTurns.has(threadId) && this.requireThread(threadId).agent === "cursor" && exitCode !== 0 && !assistantText && parts.length === 0) {
8299
8299
  const sessionId = result.sessionId || this.requireThread(threadId).sessionId || "";
8300
8300
  if (sessionId) {
8301
- const { recoverFinishedCursorRun } = await import("./cursor-recover-K3EBEM7M.js");
8301
+ const { recoverFinishedCursorRun } = await import("./cursor-recover-FALSNEZN.js");
8302
8302
  for (let i = 0; i < 8; i++) {
8303
8303
  const recovered = recoverFinishedCursorRun({
8304
8304
  agentId: sessionId,
@@ -9444,7 +9444,7 @@ var Orchestrator = class {
9444
9444
  if (!titled.userSetTitle && meta.title && titled.title !== meta.title) {
9445
9445
  updateThread(thread.id, { title: meta.title });
9446
9446
  }
9447
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-BABO3E4A.js");
9447
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-CLARFJUX.js");
9448
9448
  const latest = this.requireThread(thread.id);
9449
9449
  if (!shouldAutoArchiveOnPrMerge({
9450
9450
  previousPrState: prevState || null,
@@ -9726,7 +9726,7 @@ var Orchestrator = class {
9726
9726
  this.enforceHistoryRetention();
9727
9727
  if (thread.repoPath && !isGlobalRepoPath(thread.repoPath)) {
9728
9728
  try {
9729
- const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-RSTX2WL7.js");
9729
+ const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-24YJWKJQ.js");
9730
9730
  await ensureWorkspace2(thread.repoPath);
9731
9731
  } catch {
9732
9732
  }
@@ -9753,7 +9753,7 @@ var Orchestrator = class {
9753
9753
  await runArchiveScript(thread.repoPath, thread.worktreePath);
9754
9754
  } catch {
9755
9755
  }
9756
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-BABO3E4A.js");
9756
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-CLARFJUX.js");
9757
9757
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
9758
9758
  await removeWorktree(thread.repoPath, thread.worktreePath, {
9759
9759
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -9768,7 +9768,7 @@ var Orchestrator = class {
9768
9768
  throw new Error("Thread is not archived");
9769
9769
  }
9770
9770
  if (isGlobalThread(thread)) {
9771
- const { globalAgentCwd } = await import("./paths-LGKOG7MY.js");
9771
+ const { globalAgentCwd } = await import("./paths-IUR3ABNG.js");
9772
9772
  updateThread(thread.id, { worktreePath: globalAgentCwd() });
9773
9773
  const restored2 = setStatus(thread.id, "idle");
9774
9774
  this.emit({ type: "status_changed", threadId: restored2.id, status: restored2.status });
@@ -9780,7 +9780,7 @@ var Orchestrator = class {
9780
9780
  `Cowboy checkout missing: ${thread.worktreePath}. Re-add the project folder, then restore.`
9781
9781
  );
9782
9782
  }
9783
- const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-TXIDEBH2.js");
9783
+ const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-VED7K2UL.js");
9784
9784
  const slug = thread.worktreePath.split("/").pop();
9785
9785
  const dest = thread.worktreePath;
9786
9786
  await withRepoGitLock(thread.repoPath, async () => {
@@ -9890,7 +9890,7 @@ async function startOrchestration(opts) {
9890
9890
  sourceRef: "default",
9891
9891
  ...createOpts
9892
9892
  }).catch(async () => {
9893
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-TXIDEBH2.js");
9893
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-VED7K2UL.js");
9894
9894
  const repo = await resolveRepoRoot2(repoPath);
9895
9895
  const def = await resolveDefaultBranch2(repo);
9896
9896
  return orch.createThread({
@@ -9900,7 +9900,7 @@ async function startOrchestration(opts) {
9900
9900
  repoPath: repo
9901
9901
  });
9902
9902
  });
9903
- const { updateThread: upd } = await import("./thread-store-BEBZMOS7.js");
9903
+ const { updateThread: upd } = await import("./thread-store-HDQ4CH54.js");
9904
9904
  const updated = upd(thread.id, {
9905
9905
  sourceType: "orchestration",
9906
9906
  sourceRef: goal
@@ -2,17 +2,17 @@
2
2
 
3
3
  import {
4
4
  textFromAbleTimeDoc
5
- } from "./chunk-XHAK4FSQ.js";
5
+ } from "./chunk-XIEDFRBP.js";
6
6
  import {
7
7
  assertAbleTimeCredential,
8
8
  callAbleTimeTool,
9
9
  normalizeAbleTimeHost,
10
10
  rewriteAbleTimeError
11
- } from "./chunk-KB4JPKMT.js";
11
+ } from "./chunk-ZC3TVLY6.js";
12
12
  import {
13
13
  isAbleTimeConnected,
14
14
  saveAbleTimeConnection
15
- } from "./chunk-HO5TQG3Z.js";
15
+ } from "./chunk-452Y24PW.js";
16
16
 
17
17
  // src/integrations/abletime.ts
18
18
  var CLOSED_STATES = /* @__PURE__ */ new Set([
@@ -6,7 +6,7 @@ import {
6
6
  resolveRepoRoot,
7
7
  takenSlugsFromThread,
8
8
  teamSlugFromName
9
- } from "./chunk-3O66W4TI.js";
9
+ } from "./chunk-566W54AN.js";
10
10
  import {
11
11
  ATTACHMENTS_DIR,
12
12
  attachmentsGitignoreBody
@@ -23,18 +23,18 @@ import {
23
23
  resolveThreadDefaults,
24
24
  resolveViewerProfile,
25
25
  resolveViewerProfileForRepo
26
- } from "./chunk-4URNTA75.js";
26
+ } from "./chunk-KJM3E3NF.js";
27
27
  import {
28
28
  createEmptyThread,
29
29
  listThreads,
30
30
  updateThread,
31
31
  writeThread
32
- } from "./chunk-CXTIOJRX.js";
32
+ } from "./chunk-4723RAO3.js";
33
33
  import {
34
34
  appDataDir,
35
35
  globalAgentCwd,
36
36
  sideboardReposDir
37
- } from "./chunk-A4JGXX2F.js";
37
+ } from "./chunk-EHT2DRT4.js";
38
38
 
39
39
  // src/store/workspaces.ts
40
40
  import { existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync3, statSync as statSync2, writeFileSync as writeFileSync3 } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  appDataDir
3
- } from "./chunk-A4JGXX2F.js";
3
+ } from "./chunk-EHT2DRT4.js";
4
4
 
5
5
  // src/agents/cursor-store.ts
6
6
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  appDataDir
3
- } from "./chunk-A4JGXX2F.js";
3
+ } from "./chunk-EHT2DRT4.js";
4
4
  import {
5
5
  npmGlobalNodeModules,
6
6
  run