@sideboard-ai/core 0.1.316 → 0.1.318

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 (48) hide show
  1. package/dist/{abletime-NZ2ABWAL.js → abletime-KWOBUL46.js} +4 -4
  2. package/dist/{abletime-oauth-CBFFBINA.js → abletime-oauth-IUIAGLFJ.js} +3 -3
  3. package/dist/{abletime-rest-NSOP72AI.js → abletime-rest-RWN4EPY3.js} +3 -3
  4. package/dist/{agents-Y3M3EKLY.js → agents-2AR7I6B6.js} +6 -6
  5. package/dist/{agents-5XJ7EHGU.js → agents-KABJUDPI.js} +4 -4
  6. package/dist/{app-settings-RQAFJZCD.js → app-settings-V6YPYY57.js} +1 -1
  7. package/dist/{chunk-4ISF5XUA.js → chunk-23ZUL2EX.js} +25 -25
  8. package/dist/{chunk-VVV7EI6T.js → chunk-2HOZMSKQ.js} +2 -2
  9. package/dist/{chunk-ELBK34TY.js → chunk-7ADEYEMH.js} +5 -5
  10. package/dist/{chunk-5CTG5W7S.js → chunk-A46CIARU.js} +1 -1
  11. package/dist/{chunk-PN32Z4JL.js → chunk-A6C67DY5.js} +2 -2
  12. package/dist/{chunk-NXNNYY3Q.js → chunk-AESO2KJS.js} +2 -2
  13. package/dist/{chunk-S3U4HR5F.js → chunk-AZ4GEEGL.js} +2 -2
  14. package/dist/{chunk-7BLIY2DD.js → chunk-BXTISNKW.js} +15 -15
  15. package/dist/{chunk-U7PNCYNX.js → chunk-E52SQENB.js} +1 -0
  16. package/dist/{chunk-OLYNM52B.js → chunk-FDXHNROD.js} +2 -2
  17. package/dist/{chunk-FVTR54LY.js → chunk-GH7UMULC.js} +4 -4
  18. package/dist/{chunk-U35AHE2P.js → chunk-HOLB6ZFZ.js} +33 -2
  19. package/dist/{chunk-NKVNHBDB.js → chunk-IAPO7ZFG.js} +4 -4
  20. package/dist/{chunk-DNWO6PQJ.js → chunk-NRSC4N5X.js} +5 -34
  21. package/dist/{chunk-ATSZXRFQ.js → chunk-ST2UQBJT.js} +6 -35
  22. package/dist/{chunk-BPBDGJ43.js → chunk-TUJFCJJU.js} +2 -2
  23. package/dist/{chunk-GXSV3X3L.js → chunk-W5QZWAUB.js} +3 -3
  24. package/dist/{chunk-CCUGIVYN.js → chunk-XOZNEAWF.js} +3 -3
  25. package/dist/{chunk-GFM63DTU.js → chunk-YALFZKSC.js} +3 -3
  26. package/dist/{chunk-CHUPIJP7.js → chunk-YEIHCSZS.js} +63 -2
  27. package/dist/{conductor-CFLBKVHJ.js → conductor-MG2RAQNT.js} +5 -5
  28. package/dist/{conductor-NZ4V5CJX.js → conductor-NIUBJLTS.js} +4 -4
  29. package/dist/{coordinator-prompt-HUZC4DZ2.js → coordinator-prompt-3CT3D5UM.js} +3 -3
  30. package/dist/{coordinator-prompt-SPOYUZG5.js → coordinator-prompt-X74F3JIC.js} +4 -4
  31. package/dist/{global-workspace-SK4JQBPN.js → global-workspace-BUWMRNW5.js} +3 -3
  32. package/dist/{global-workspace-3NNDDTFD.js → global-workspace-FTNJEML3.js} +4 -4
  33. package/dist/index.cjs +96 -42
  34. package/dist/index.d.cts +2 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +50 -27
  37. package/dist/mcp/run-stdio.cjs +36 -34
  38. package/dist/mcp/run-stdio.js +6 -6
  39. package/dist/{optional-cli-LMSRZNH4.js → optional-cli-6GGESWGE.js} +4 -4
  40. package/dist/{orchestrator-KXEPWTG5.js → orchestrator-2SXK4U65.js} +9 -9
  41. package/dist/{orchestrator-7342RGRU.js → orchestrator-N54V3B76.js} +6 -6
  42. package/dist/{thread-store-5OF6M6VZ.js → thread-store-7BBA63KV.js} +1 -1
  43. package/dist/{thread-store-GOVVXQV2.js → thread-store-PLNIWFZ4.js} +1 -1
  44. package/dist/{workspaces-EYNZDL45.js → workspaces-2V5UYPYC.js} +3 -3
  45. package/dist/{workspaces-52L6NZ3P.js → workspaces-MGKEAYNM.js} +4 -4
  46. package/dist/{worktree-BP5ICYQ2.js → worktree-THAXW5U7.js} +3 -3
  47. package/dist/{worktree-UCOSAI7J.js → worktree-XJKLDYOL.js} +2 -2
  48. package/package.json +1 -1
@@ -16,12 +16,12 @@ import {
16
16
  toAbleTimeIssueInfo,
17
17
  updateAbleTimeTask,
18
18
  verifyAbleTimeConnection
19
- } from "./chunk-GXSV3X3L.js";
20
- import "./chunk-VVV7EI6T.js";
21
- import "./chunk-ELBK34TY.js";
19
+ } from "./chunk-W5QZWAUB.js";
20
+ import "./chunk-2HOZMSKQ.js";
21
+ import "./chunk-7ADEYEMH.js";
22
22
  import "./chunk-JAT3JFOS.js";
23
23
  import "./chunk-6K64FJDD.js";
24
- import "./chunk-U7PNCYNX.js";
24
+ import "./chunk-E52SQENB.js";
25
25
  import "./chunk-77WWLBCI.js";
26
26
  import "./chunk-4TR3HZFT.js";
27
27
  import "./chunk-WDRMZKVB.js";
@@ -20,10 +20,10 @@ import {
20
20
  parseAbleTimeOAuthCallbackUrl,
21
21
  resolveAbleTimeOAuthHost,
22
22
  startAbleTimeOAuth
23
- } from "./chunk-CCUGIVYN.js";
24
- import "./chunk-ELBK34TY.js";
23
+ } from "./chunk-XOZNEAWF.js";
24
+ import "./chunk-7ADEYEMH.js";
25
25
  import "./chunk-JAT3JFOS.js";
26
- import "./chunk-U7PNCYNX.js";
26
+ import "./chunk-E52SQENB.js";
27
27
  import "./chunk-77WWLBCI.js";
28
28
  import "./chunk-4TR3HZFT.js";
29
29
  import "./chunk-WDRMZKVB.js";
@@ -5,10 +5,10 @@ import {
5
5
  callAbleTimeRestTool,
6
6
  looksLikeAbleTimeUlid,
7
7
  textFromAbleTimeDoc
8
- } from "./chunk-VVV7EI6T.js";
9
- import "./chunk-ELBK34TY.js";
8
+ } from "./chunk-2HOZMSKQ.js";
9
+ import "./chunk-7ADEYEMH.js";
10
10
  import "./chunk-JAT3JFOS.js";
11
- import "./chunk-U7PNCYNX.js";
11
+ import "./chunk-E52SQENB.js";
12
12
  import "./chunk-77WWLBCI.js";
13
13
  import "./chunk-4TR3HZFT.js";
14
14
  import "./chunk-WDRMZKVB.js";
@@ -37,7 +37,7 @@ import {
37
37
  planModeTurnInstruction,
38
38
  resolveCursorModelId,
39
39
  resolveQuotaFallbackAgent
40
- } from "./chunk-NKVNHBDB.js";
40
+ } from "./chunk-IAPO7ZFG.js";
41
41
  import "./chunk-HH3VVTEC.js";
42
42
  import "./chunk-7Q327QF2.js";
43
43
  import {
@@ -51,10 +51,10 @@ import {
51
51
  prepareTerminalCommand,
52
52
  resolveLoginCommand,
53
53
  whichOnPath
54
- } from "./chunk-NXNNYY3Q.js";
55
- import "./chunk-GFM63DTU.js";
56
- import "./chunk-BPBDGJ43.js";
57
- import "./chunk-CHUPIJP7.js";
54
+ } from "./chunk-AESO2KJS.js";
55
+ import "./chunk-YALFZKSC.js";
56
+ import "./chunk-TUJFCJJU.js";
57
+ import "./chunk-YEIHCSZS.js";
58
58
  import "./chunk-2P4XKWV2.js";
59
59
  import "./chunk-RSA47QYR.js";
60
60
  import "./chunk-JAT3JFOS.js";
@@ -88,7 +88,7 @@ import {
88
88
  assertOrchestratorCapableAgent,
89
89
  coerceOrchestratorAgent,
90
90
  isOrchestratorCapableAgent
91
- } from "./chunk-U7PNCYNX.js";
91
+ } from "./chunk-E52SQENB.js";
92
92
  import "./chunk-77WWLBCI.js";
93
93
  import "./chunk-4TR3HZFT.js";
94
94
  import "./chunk-WDRMZKVB.js";
@@ -46,7 +46,7 @@ import {
46
46
  resolveCursorSdkRoot,
47
47
  resolveQuotaFallbackAgent,
48
48
  turnCostUsdFromCursorUsage
49
- } from "./chunk-FVTR54LY.js";
49
+ } from "./chunk-GH7UMULC.js";
50
50
  import {
51
51
  getAgentSetupInfo,
52
52
  installAgent,
@@ -63,8 +63,8 @@ import "./chunk-V5BTGQ6M.js";
63
63
  import "./chunk-E63AM3PW.js";
64
64
  import "./chunk-2GPQZZLY.js";
65
65
  import "./chunk-I5TESHDN.js";
66
- import "./chunk-PN32Z4JL.js";
67
- import "./chunk-5CTG5W7S.js";
66
+ import "./chunk-A6C67DY5.js";
67
+ import "./chunk-A46CIARU.js";
68
68
  import "./chunk-N2WW62LF.js";
69
69
  import "./chunk-DD67JWTN.js";
70
70
  import {
@@ -88,7 +88,7 @@ import "./chunk-NSTQ6QKD.js";
88
88
  import "./chunk-WWUABK6B.js";
89
89
  import "./chunk-FJZWM2ON.js";
90
90
  import "./chunk-J2LNLI4S.js";
91
- import "./chunk-U35AHE2P.js";
91
+ import "./chunk-HOLB6ZFZ.js";
92
92
  import "./chunk-WMZIANPV.js";
93
93
  import "./chunk-KGZBYWZ3.js";
94
94
  import "./chunk-WOU343SI.js";
@@ -107,7 +107,7 @@ import {
107
107
  updateProjectProfileSettings,
108
108
  usageOnLimit,
109
109
  writeViewerContext
110
- } from "./chunk-U7PNCYNX.js";
110
+ } from "./chunk-E52SQENB.js";
111
111
  import "./chunk-77WWLBCI.js";
112
112
  import "./chunk-4TR3HZFT.js";
113
113
  import "./chunk-WDRMZKVB.js";
@@ -14,9 +14,8 @@ import {
14
14
  parseSessionQuotaResetAt,
15
15
  planModeTurnInstruction,
16
16
  resolveQuotaFallbackAgent
17
- } from "./chunk-NKVNHBDB.js";
17
+ } from "./chunk-IAPO7ZFG.js";
18
18
  import {
19
- REVIEW_TAB_TITLE,
20
19
  applyWorktreePkgCacheEnv,
21
20
  askBlockStillWaiting,
22
21
  buildBrightsySessionSeed,
@@ -28,13 +27,10 @@ import {
28
27
  extractPendingPlanQuestions,
29
28
  forkChatTab,
30
29
  forkMessageSlice,
31
- formatReviewWriteGateDirective,
32
- formatReviewWriteGateReminder,
33
30
  getDefaultRunScript,
34
31
  getRunMode,
35
32
  isAskUserToolName,
36
33
  isJobContinuePrompt,
37
- isReviewWriteGatedThread,
38
34
  isWorktreeRunProcessKey,
39
35
  killDetachedRunTree,
40
36
  killListenersOnPorts,
@@ -56,7 +52,7 @@ import {
56
52
  worktreeDevProcessKey,
57
53
  worktreeRunProcessKey,
58
54
  worktreeSetupProcessKey
59
- } from "./chunk-ATSZXRFQ.js";
55
+ } from "./chunk-ST2UQBJT.js";
60
56
  import {
61
57
  applyAgentEvent,
62
58
  clipAgentEventForPaint,
@@ -78,7 +74,7 @@ import {
78
74
  import {
79
75
  formatOptionalServicesDirectiveForTurn,
80
76
  formatOptionalServicesReminderForTurn
81
- } from "./chunk-OLYNM52B.js";
77
+ } from "./chunk-FDXHNROD.js";
82
78
  import {
83
79
  SLACK_REPLY_FORMATTING,
84
80
  addWorkspace,
@@ -103,7 +99,7 @@ import {
103
99
  stageAbsolutePathsAsAttachments,
104
100
  stageBuffersAsAttachments,
105
101
  syncWorkspacesFromThreads
106
- } from "./chunk-GFM63DTU.js";
102
+ } from "./chunk-YALFZKSC.js";
107
103
  import {
108
104
  addPrStackLayer,
109
105
  allocateTeamSlug,
@@ -147,14 +143,18 @@ import {
147
143
  resolveRepoRoot,
148
144
  switchWorktreeBranch,
149
145
  withRepoGitLock
150
- } from "./chunk-BPBDGJ43.js";
146
+ } from "./chunk-TUJFCJJU.js";
151
147
  import {
148
+ REVIEW_TAB_TITLE,
152
149
  agentNicknameFromWorktreePath,
153
150
  appendMessage,
154
151
  createEmptyThread,
155
152
  deleteThreadRecord,
156
153
  findThreadByRef,
154
+ formatReviewWriteGateDirective,
155
+ formatReviewWriteGateReminder,
157
156
  isPlaceholderBranch,
157
+ isReviewWriteGatedThread,
158
158
  isWorktreeIdentityTitle,
159
159
  listThreads,
160
160
  normalizeWorkspaceTags,
@@ -171,7 +171,7 @@ import {
171
171
  worktreeNameFromPath,
172
172
  worktreeSlugForTicket,
173
173
  writeThread
174
- } from "./chunk-CHUPIJP7.js";
174
+ } from "./chunk-YEIHCSZS.js";
175
175
  import {
176
176
  mcpServerIdForPermission,
177
177
  mcpServerPermissionUpdate
@@ -239,7 +239,7 @@ import {
239
239
  usageOnLimit,
240
240
  withTurnScopedCost,
241
241
  writeViewerContext
242
- } from "./chunk-U7PNCYNX.js";
242
+ } from "./chunk-E52SQENB.js";
243
243
  import {
244
244
  examplePrefixedBranch,
245
245
  sanitizeGitBranchPrefix
@@ -461,9 +461,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
461
461
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
462
462
  );
463
463
  }
464
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-3NNDDTFD.js");
464
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-FTNJEML3.js");
465
465
  if (isGlobalThread2(thread)) {
466
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-SPOYUZG5.js");
466
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-X74F3JIC.js");
467
467
  ensureGlobalCoordinatorCwd2(
468
468
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
469
469
  );
@@ -2930,7 +2930,7 @@ async function createThread(input, _onSetupLine) {
2930
2930
  });
2931
2931
  await requireAgent(resolved.agent);
2932
2932
  if (input.cowboy) {
2933
- const { cowboyModeEnabled } = await import("./app-settings-RQAFJZCD.js");
2933
+ const { cowboyModeEnabled } = await import("./app-settings-V6YPYY57.js");
2934
2934
  if (!cowboyModeEnabled()) {
2935
2935
  throw new Error(
2936
2936
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -2989,7 +2989,7 @@ async function createThread(input, _onSetupLine) {
2989
2989
  let sourceIsFork = false;
2990
2990
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
2991
2991
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
2992
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-NZ2ABWAL.js");
2992
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-KWOBUL46.js");
2993
2993
  const task = await ensureAbleTimeTask({
2994
2994
  title: title?.trim() || "Untitled work",
2995
2995
  description: input.prompt?.trim() || void 0
@@ -3100,7 +3100,7 @@ async function createThread(input, _onSetupLine) {
3100
3100
  return readThread(thread.id) ?? thread;
3101
3101
  }
3102
3102
  async function listLinearIssues(agent, repoPath) {
3103
- const { getAdapter: getAdapter2 } = await import("./agents-Y3M3EKLY.js");
3103
+ const { getAdapter: getAdapter2 } = await import("./agents-2AR7I6B6.js");
3104
3104
  await requireAgent(agent, { requireLinear: true });
3105
3105
  const adapter = getAdapter2(agent);
3106
3106
  if (!adapter.listLinearIssues) {
@@ -3877,7 +3877,7 @@ async function adoptThread(input) {
3877
3877
  messages: input.messages ?? []
3878
3878
  });
3879
3879
  writeThread(thread);
3880
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-52L6NZ3P.js");
3880
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-MGKEAYNM.js");
3881
3881
  await addWorkspace2(repoPath);
3882
3882
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-RXZPTCNH.js");
3883
3883
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -6815,7 +6815,7 @@ function formatScheduledPrompt(name, prompt) {
6815
6815
  ${prompt}`;
6816
6816
  }
6817
6817
  async function defaultDeps() {
6818
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-KXEPWTG5.js");
6818
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-2SXK4U65.js");
6819
6819
  const orch = getOrchestrator2();
6820
6820
  return {
6821
6821
  findThread: (id) => findThreadByRef(id),
@@ -7133,7 +7133,7 @@ var Orchestrator = class {
7133
7133
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
7134
7134
  });
7135
7135
  }
7136
- const { autoCleanupOrphansEnabled } = await import("./app-settings-RQAFJZCD.js");
7136
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-V6YPYY57.js");
7137
7137
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
7138
7138
  await cleanupOrphanWorktrees({ repoPaths });
7139
7139
  }
@@ -7527,7 +7527,7 @@ var Orchestrator = class {
7527
7527
  }
7528
7528
  await setup;
7529
7529
  if (skipSetup) return;
7530
- const { autoRunAfterSetupEnabled } = await import("./app-settings-RQAFJZCD.js");
7530
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-V6YPYY57.js");
7531
7531
  if (autoRunAfterSetupEnabled()) {
7532
7532
  try {
7533
7533
  await this.startDev(threadId);
@@ -7921,7 +7921,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
7921
7921
  }
7922
7922
  const isBrightsy = fresh.agent === "brightsy";
7923
7923
  const isOrchestration = isOrchestratorThread(fresh);
7924
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-RQAFJZCD.js");
7924
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-V6YPYY57.js");
7925
7925
  const gitAuthMode = getGithubGitAuthMode();
7926
7926
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
7927
7927
  githubSlug: await withTimeout(
@@ -9237,7 +9237,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9237
9237
  if (Object.keys(patch).length === 0) continue;
9238
9238
  updateThread(t.id, patch);
9239
9239
  }
9240
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-RQAFJZCD.js");
9240
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-V6YPYY57.js");
9241
9241
  const latest = this.requireThread(thread.id);
9242
9242
  if (!shouldAutoArchiveOnPrMerge({
9243
9243
  previousPrState: prevState || null,
@@ -9561,7 +9561,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9561
9561
  await runArchiveScript(thread.repoPath, thread.worktreePath);
9562
9562
  } catch {
9563
9563
  }
9564
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-RQAFJZCD.js");
9564
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-V6YPYY57.js");
9565
9565
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
9566
9566
  await removeWorktree(thread.repoPath, thread.worktreePath, {
9567
9567
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -9697,7 +9697,7 @@ async function startOrchestration(opts) {
9697
9697
  sourceRef: "default",
9698
9698
  ...createOpts
9699
9699
  }).catch(async () => {
9700
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-BP5ICYQ2.js");
9700
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-THAXW5U7.js");
9701
9701
  const repo = await resolveRepoRoot2(repoPath);
9702
9702
  const def = await resolveDefaultBranch2(repo);
9703
9703
  return orch.createThread({
@@ -9707,7 +9707,7 @@ async function startOrchestration(opts) {
9707
9707
  repoPath: repo
9708
9708
  });
9709
9709
  });
9710
- const { updateThread: upd } = await import("./thread-store-5OF6M6VZ.js");
9710
+ const { updateThread: upd } = await import("./thread-store-7BBA63KV.js");
9711
9711
  const updated = upd(thread.id, {
9712
9712
  sourceType: "orchestration",
9713
9713
  sourceRef: goal
@@ -4,14 +4,14 @@ import {
4
4
  normalizeAbleTimeCredential,
5
5
  normalizeAbleTimeHost,
6
6
  rewriteAbleTimeError
7
- } from "./chunk-ELBK34TY.js";
7
+ } from "./chunk-7ADEYEMH.js";
8
8
  import {
9
9
  httpFetch
10
10
  } from "./chunk-JAT3JFOS.js";
11
11
  import {
12
12
  getAbleTimeAccessToken,
13
13
  getAbleTimeHost
14
- } from "./chunk-U7PNCYNX.js";
14
+ } from "./chunk-E52SQENB.js";
15
15
 
16
16
  // src/integrations/abletime-rest.ts
17
17
  var ABLETIME_REST_PREFIX = "/api/public/v2";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getAbleTimeHost,
6
6
  isAbleTimeConnected
7
- } from "./chunk-U7PNCYNX.js";
7
+ } from "./chunk-E52SQENB.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-CBFFBINA.js").then((m) => m.ensureAbleTimeAccessToken());
156
+ const rawToken = opts?.token ?? await import("./abletime-oauth-IUIAGLFJ.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-CBFFBINA.js").then((m) => m.ensureAbleTimeAccessToken());
227
+ const rawToken = opts?.token ?? await import("./abletime-oauth-IUIAGLFJ.js").then((m) => m.ensureAbleTimeAccessToken());
228
228
  if (rawToken && ableTimeUsesRest(rawToken)) {
229
- const { callAbleTimeRestTool } = await import("./abletime-rest-NSOP72AI.js");
229
+ const { callAbleTimeRestTool } = await import("./abletime-rest-RWN4EPY3.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-NSOP72AI.js");
245
+ const { callAbleTimeRestTool } = await import("./abletime-rest-RWN4EPY3.js");
246
246
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
247
247
  }
248
248
  throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
@@ -26,7 +26,7 @@ import {
26
26
  normalizeTakenSlug,
27
27
  normalizeWorktreePath,
28
28
  takenSlugsFromThread
29
- } from "./chunk-U35AHE2P.js";
29
+ } from "./chunk-HOLB6ZFZ.js";
30
30
  import {
31
31
  worktreesRoot
32
32
  } from "./chunk-WOU343SI.js";
@@ -5,7 +5,7 @@ import {
5
5
  ensureGhPreferOrigin,
6
6
  resolveGithubRepoSlug,
7
7
  resolveRepoRoot
8
- } from "./chunk-5CTG5W7S.js";
8
+ } from "./chunk-A46CIARU.js";
9
9
  import {
10
10
  ATTACHMENTS_DIR,
11
11
  attachmentsGitignoreBody
@@ -31,7 +31,7 @@ import {
31
31
  teamSlugFromName,
32
32
  updateThread,
33
33
  writeThread
34
- } from "./chunk-U35AHE2P.js";
34
+ } from "./chunk-HOLB6ZFZ.js";
35
35
  import {
36
36
  appDataDir,
37
37
  globalAgentCwd,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-QVN2WOKJ.js";
8
8
  import {
9
9
  resolveAgentExecutable
10
- } from "./chunk-U7PNCYNX.js";
10
+ } from "./chunk-E52SQENB.js";
11
11
 
12
12
  // src/agents/install.ts
13
13
  import { existsSync } from "fs";
@@ -265,7 +265,7 @@ async function loginAgent(agent) {
265
265
  };
266
266
  }
267
267
  async function loginManagedAccount(accountId) {
268
- const { loadAppSettings } = await import("./app-settings-RQAFJZCD.js");
268
+ const { loadAppSettings } = await import("./app-settings-V6YPYY57.js");
269
269
  const { loginEnvPrefix } = await import("./managed-accounts-JJTAKHMG.js");
270
270
  const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
271
271
  if (!account) {
@@ -2,11 +2,11 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-OLYNM52B.js";
5
+ } from "./chunk-FDXHNROD.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
9
- } from "./chunk-NXNNYY3Q.js";
9
+ } from "./chunk-AESO2KJS.js";
10
10
  import {
11
11
  enrichPathWithNpmGlobalBin
12
12
  } from "./chunk-QVN2WOKJ.js";
@@ -27,9 +27,8 @@ import {
27
27
  parseSessionQuotaResetAt,
28
28
  planModeTurnInstruction,
29
29
  resolveQuotaFallbackAgent
30
- } from "./chunk-FVTR54LY.js";
30
+ } from "./chunk-GH7UMULC.js";
31
31
  import {
32
- REVIEW_TAB_TITLE,
33
32
  applyWorktreePkgCacheEnv,
34
33
  askBlockStillWaiting,
35
34
  buildBrightsySessionSeed,
@@ -41,13 +40,10 @@ import {
41
40
  extractPendingPlanQuestions,
42
41
  forkChatTab,
43
42
  forkMessageSlice,
44
- formatReviewWriteGateDirective,
45
- formatReviewWriteGateReminder,
46
43
  getDefaultRunScript,
47
44
  getRunMode,
48
45
  isAskUserToolName,
49
46
  isJobContinuePrompt,
50
- isReviewWriteGatedThread,
51
47
  isWorktreeRunProcessKey,
52
48
  killDetachedRunTree,
53
49
  killListenersOnPorts,
@@ -69,7 +65,7 @@ import {
69
65
  worktreeDevProcessKey,
70
66
  worktreeRunProcessKey,
71
67
  worktreeSetupProcessKey
72
- } from "./chunk-DNWO6PQJ.js";
68
+ } from "./chunk-NRSC4N5X.js";
73
69
  import {
74
70
  applyAgentEvent,
75
71
  clipAgentEventForPaint,
@@ -121,7 +117,7 @@ import {
121
117
  stageAbsolutePathsAsAttachments,
122
118
  stageBuffersAsAttachments,
123
119
  syncWorkspacesFromThreads
124
- } from "./chunk-PN32Z4JL.js";
120
+ } from "./chunk-A6C67DY5.js";
125
121
  import {
126
122
  addPrStackLayer,
127
123
  allocateTeamSlug,
@@ -163,7 +159,7 @@ import {
163
159
  resolveRepoRoot,
164
160
  switchWorktreeBranch,
165
161
  withRepoGitLock
166
- } from "./chunk-5CTG5W7S.js";
162
+ } from "./chunk-A46CIARU.js";
167
163
  import {
168
164
  clearStaleIndexLocks,
169
165
  enrichPathWithNpmGlobalBin,
@@ -220,12 +216,16 @@ import {
220
216
  resolveAccountForThread
221
217
  } from "./chunk-J2LNLI4S.js";
222
218
  import {
219
+ REVIEW_TAB_TITLE,
223
220
  agentNicknameFromWorktreePath,
224
221
  appendMessage,
225
222
  createEmptyThread,
226
223
  deleteThreadRecord,
227
224
  findThreadByRef,
225
+ formatReviewWriteGateDirective,
226
+ formatReviewWriteGateReminder,
228
227
  isPlaceholderBranch,
228
+ isReviewWriteGatedThread,
229
229
  isWorktreeIdentityTitle,
230
230
  listThreads,
231
231
  normalizeWorkspaceTags,
@@ -242,7 +242,7 @@ import {
242
242
  worktreeNameFromPath,
243
243
  worktreeSlugForTicket,
244
244
  writeThread
245
- } from "./chunk-U35AHE2P.js";
245
+ } from "./chunk-HOLB6ZFZ.js";
246
246
  import {
247
247
  annotateDevAccessRuns,
248
248
  appDataDir,
@@ -507,9 +507,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
507
507
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
508
508
  );
509
509
  }
510
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-SK4JQBPN.js");
510
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-BUWMRNW5.js");
511
511
  if (isGlobalThread2(thread)) {
512
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-HUZC4DZ2.js");
512
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-3CT3D5UM.js");
513
513
  ensureGlobalCoordinatorCwd2(
514
514
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
515
515
  );
@@ -3564,7 +3564,7 @@ async function adoptThread(input) {
3564
3564
  messages: input.messages ?? []
3565
3565
  });
3566
3566
  writeThread(thread);
3567
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-EYNZDL45.js");
3567
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-2V5UYPYC.js");
3568
3568
  await addWorkspace2(repoPath);
3569
3569
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-5N2KTYIT.js");
3570
3570
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -6458,7 +6458,7 @@ function formatScheduledPrompt(name, prompt) {
6458
6458
  ${prompt}`;
6459
6459
  }
6460
6460
  async function defaultDeps() {
6461
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-7342RGRU.js");
6461
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-N54V3B76.js");
6462
6462
  const orch = getOrchestrator2();
6463
6463
  return {
6464
6464
  findThread: (id) => findThreadByRef(id),
@@ -9340,7 +9340,7 @@ async function startOrchestration(opts) {
9340
9340
  sourceRef: "default",
9341
9341
  ...createOpts
9342
9342
  }).catch(async () => {
9343
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-UCOSAI7J.js");
9343
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-XJKLDYOL.js");
9344
9344
  const repo = await resolveRepoRoot2(repoPath);
9345
9345
  const def = await resolveDefaultBranch2(repo);
9346
9346
  return orch.createThread({
@@ -9350,7 +9350,7 @@ async function startOrchestration(opts) {
9350
9350
  repoPath: repo
9351
9351
  });
9352
9352
  });
9353
- const { updateThread: upd } = await import("./thread-store-GOVVXQV2.js");
9353
+ const { updateThread: upd } = await import("./thread-store-PLNIWFZ4.js");
9354
9354
  const updated = upd(thread.id, {
9355
9355
  sourceType: "orchestration",
9356
9356
  sourceRef: goal
@@ -293,6 +293,7 @@ function parseRemoteClientMessage(raw) {
293
293
  const msg = parsed;
294
294
  if (msg.type === "ping") return { type: "ping" };
295
295
  if (msg.type === "host_pair") return { type: "host_pair" };
296
+ if (msg.type === "pairing_done") return { type: "pairing_done" };
296
297
  if (msg.type === "e2ee_fail") return { type: "e2ee_fail" };
297
298
  if (msg.type === "stop") return { type: "stop" };
298
299
  if (msg.type === "host_register") {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  loadAppSettings,
6
6
  saveAppSettings
7
- } from "./chunk-U7PNCYNX.js";
7
+ } from "./chunk-E52SQENB.js";
8
8
 
9
9
  // src/integrations/optional-services.ts
10
10
  var OPTIONAL_SERVICE_IDS = ["vercel", "supabase", "posthog", "sentry"];
@@ -273,7 +273,7 @@ async function connectedCliPresence(integrations) {
273
273
  const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
274
274
  if (ids.length === 0) return void 0;
275
275
  try {
276
- const { optionalCliPresence } = await import("./optional-cli-LMSRZNH4.js");
276
+ const { optionalCliPresence } = await import("./optional-cli-6GGESWGE.js");
277
277
  return await optionalCliPresence(ids);
278
278
  } catch {
279
279
  return void 0;
@@ -24,13 +24,13 @@ import {
24
24
  } from "./chunk-I5TESHDN.js";
25
25
  import {
26
26
  isOrchestratorThread
27
- } from "./chunk-PN32Z4JL.js";
27
+ } from "./chunk-A6C67DY5.js";
28
28
  import {
29
29
  codexUnattendedGitConfigArgs,
30
30
  mergeAgentGitAuthEnv,
31
31
  resolveAgentGitAuthEnv,
32
32
  resolveCodexGitWritableRoots
33
- } from "./chunk-5CTG5W7S.js";
33
+ } from "./chunk-A46CIARU.js";
34
34
  import {
35
35
  githubAgentAuthReady,
36
36
  npmGlobalNodeModules,
@@ -57,7 +57,7 @@ import {
57
57
  CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS,
58
58
  CLAUDE_PRINT_BG_WAIT_CEILING_MS,
59
59
  mcpAllowToolsFromNames
60
- } from "./chunk-U35AHE2P.js";
60
+ } from "./chunk-HOLB6ZFZ.js";
61
61
  import {
62
62
  appDataDir
63
63
  } from "./chunk-WOU343SI.js";
@@ -2916,7 +2916,7 @@ var claudeAdapter = {
2916
2916
  );
2917
2917
  }
2918
2918
  const mode = permissionMode(thread);
2919
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-SK4JQBPN.js");
2919
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-BUWMRNW5.js");
2920
2920
  const isOrchestrator = isOrchestratorThread2(thread);
2921
2921
  const rpc = worktreeAgentRpc(isOrchestrator);
2922
2922
  const injectedServers = await buildInjectedMcpServers({