@sideboard-ai/core 0.1.344 → 0.1.345

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 (36) hide show
  1. package/dist/{abletime-ZIYFR4SI.js → abletime-X2TJ6PPK.js} +4 -4
  2. package/dist/{abletime-oauth-IQZ3LOB2.js → abletime-oauth-DEIENLHC.js} +3 -3
  3. package/dist/{abletime-rest-7YAO5B74.js → abletime-rest-HWBUPI4R.js} +3 -3
  4. package/dist/{agents-FI62PUSY.js → agents-AQM7NLXD.js} +7 -7
  5. package/dist/{app-settings-FS7TM55D.js → app-settings-A6JUT2SF.js} +1 -1
  6. package/dist/{chunk-TKEYXNXY.js → chunk-4PHOJMZI.js} +15 -0
  7. package/dist/{chunk-A4ZI7SA3.js → chunk-4SNEW63T.js} +3 -3
  8. package/dist/{chunk-HRHF6N6S.js → chunk-4YGVJRXY.js} +3 -3
  9. package/dist/{chunk-O2IRQAFB.js → chunk-AG2RM3DF.js} +3 -3
  10. package/dist/{chunk-SLLTEMIL.js → chunk-FNAP6CCS.js} +2 -2
  11. package/dist/{chunk-6RO2AOE5.js → chunk-GHKJBZW5.js} +2 -2
  12. package/dist/{chunk-YNKVGJE5.js → chunk-IYX53WZY.js} +5 -5
  13. package/dist/{chunk-AX7SUDTC.js → chunk-JZKNRDKF.js} +23 -23
  14. package/dist/{chunk-4TTTEKNV.js → chunk-MB3GOWB3.js} +2 -2
  15. package/dist/{chunk-6N4W2MJ2.js → chunk-MHRU743Z.js} +7 -7
  16. package/dist/{chunk-GUIJMZQG.js → chunk-NQHEEGTH.js} +1 -1
  17. package/dist/{chunk-D7US5R4H.js → chunk-O5WRVQFT.js} +1 -1
  18. package/dist/{chunk-JX3OWNOT.js → chunk-QTDCPMOW.js} +1 -1
  19. package/dist/{chunk-4HELMBYR.js → chunk-TD76ORBJ.js} +2 -2
  20. package/dist/{chunk-WO7VF4FG.js → chunk-YFPSTG52.js} +5 -5
  21. package/dist/{chunk-G3UV3GXJ.js → chunk-Z54FI4VL.js} +2 -2
  22. package/dist/{conductor-H56XPSX4.js → conductor-DUHRZUQY.js} +5 -5
  23. package/dist/{coordinator-prompt-2YQGOA6Y.js → coordinator-prompt-OX6A4MDA.js} +4 -4
  24. package/dist/{global-workspace-YRPM6JLZ.js → global-workspace-6GGS3DWU.js} +4 -4
  25. package/dist/index.cjs +228 -0
  26. package/dist/index.d.cts +33 -0
  27. package/dist/index.d.ts +33 -0
  28. package/dist/index.js +230 -21
  29. package/dist/{linear-UXMDJAD4.js → linear-WYI64BMX.js} +2 -2
  30. package/dist/{linear-list-KDLU7QWX.js → linear-list-CGUCPWTV.js} +1 -1
  31. package/dist/{optional-cli-RUUCLNSM.js → optional-cli-YHLVTVRK.js} +4 -4
  32. package/dist/{orchestrator-DGH2UMPW.js → orchestrator-POMFVZLB.js} +10 -10
  33. package/dist/{thread-store-ILM2ZJCB.js → thread-store-V5IDUJ4L.js} +2 -2
  34. package/dist/{workspaces-SSYKQUAU.js → workspaces-DTMPNDPW.js} +4 -4
  35. package/dist/{worktree-QBVLKACU.js → worktree-FX5FT6BI.js} +3 -3
  36. package/package.json +1 -1
@@ -17,13 +17,13 @@ import {
17
17
  toAbleTimeIssueInfo,
18
18
  updateAbleTimeTask,
19
19
  verifyAbleTimeConnection
20
- } from "./chunk-A4ZI7SA3.js";
20
+ } from "./chunk-4SNEW63T.js";
21
21
  import "./chunk-DBKHL7NC.js";
22
- import "./chunk-4HELMBYR.js";
23
- import "./chunk-WO7VF4FG.js";
22
+ import "./chunk-TD76ORBJ.js";
23
+ import "./chunk-YFPSTG52.js";
24
24
  import "./chunk-JAT3JFOS.js";
25
25
  import "./chunk-6K64FJDD.js";
26
- import "./chunk-TKEYXNXY.js";
26
+ import "./chunk-4PHOJMZI.js";
27
27
  import "./chunk-4TR3HZFT.js";
28
28
  import "./chunk-WDRMZKVB.js";
29
29
  import "./chunk-KI45T4DI.js";
@@ -20,10 +20,10 @@ import {
20
20
  parseAbleTimeOAuthCallbackUrl,
21
21
  resolveAbleTimeOAuthHost,
22
22
  startAbleTimeOAuth
23
- } from "./chunk-O2IRQAFB.js";
24
- import "./chunk-WO7VF4FG.js";
23
+ } from "./chunk-AG2RM3DF.js";
24
+ import "./chunk-YFPSTG52.js";
25
25
  import "./chunk-JAT3JFOS.js";
26
- import "./chunk-TKEYXNXY.js";
26
+ import "./chunk-4PHOJMZI.js";
27
27
  import "./chunk-4TR3HZFT.js";
28
28
  import "./chunk-WDRMZKVB.js";
29
29
  import "./chunk-KI45T4DI.js";
@@ -5,10 +5,10 @@ import {
5
5
  callAbleTimeRestTool,
6
6
  looksLikeAbleTimeUlid,
7
7
  textFromAbleTimeDoc
8
- } from "./chunk-4HELMBYR.js";
9
- import "./chunk-WO7VF4FG.js";
8
+ } from "./chunk-TD76ORBJ.js";
9
+ import "./chunk-YFPSTG52.js";
10
10
  import "./chunk-JAT3JFOS.js";
11
- import "./chunk-TKEYXNXY.js";
11
+ import "./chunk-4PHOJMZI.js";
12
12
  import "./chunk-4TR3HZFT.js";
13
13
  import "./chunk-WDRMZKVB.js";
14
14
  import "./chunk-KI45T4DI.js";
@@ -37,7 +37,7 @@ import {
37
37
  planModeTurnInstruction,
38
38
  resolveCursorModelId,
39
39
  resolveQuotaFallbackAgent
40
- } from "./chunk-6N4W2MJ2.js";
40
+ } from "./chunk-MHRU743Z.js";
41
41
  import {
42
42
  getAgentSetupInfo,
43
43
  installAgent,
@@ -49,13 +49,13 @@ import {
49
49
  prepareTerminalCommand,
50
50
  resolveLoginCommand,
51
51
  whichOnPath
52
- } from "./chunk-6RO2AOE5.js";
52
+ } from "./chunk-GHKJBZW5.js";
53
53
  import "./chunk-XOEKCE6L.js";
54
- import "./chunk-D7US5R4H.js";
54
+ import "./chunk-O5WRVQFT.js";
55
55
  import "./chunk-BIM24I3O.js";
56
- import "./chunk-HRHF6N6S.js";
57
- import "./chunk-G3UV3GXJ.js";
58
- import "./chunk-JX3OWNOT.js";
56
+ import "./chunk-4YGVJRXY.js";
57
+ import "./chunk-Z54FI4VL.js";
58
+ import "./chunk-QTDCPMOW.js";
59
59
  import "./chunk-BMRJNRQK.js";
60
60
  import "./chunk-RSA47QYR.js";
61
61
  import "./chunk-JAT3JFOS.js";
@@ -89,7 +89,7 @@ import {
89
89
  assertOrchestratorCapableAgent,
90
90
  coerceOrchestratorAgent,
91
91
  isOrchestratorCapableAgent
92
- } from "./chunk-TKEYXNXY.js";
92
+ } from "./chunk-4PHOJMZI.js";
93
93
  import "./chunk-4TR3HZFT.js";
94
94
  import "./chunk-WDRMZKVB.js";
95
95
  import "./chunk-KI45T4DI.js";
@@ -112,7 +112,7 @@ import {
112
112
  usageOnLimit,
113
113
  wakeOrchestratorOnGithubEdgesEnabled,
114
114
  writeViewerContext
115
- } from "./chunk-TKEYXNXY.js";
115
+ } from "./chunk-4PHOJMZI.js";
116
116
  import "./chunk-4TR3HZFT.js";
117
117
  import "./chunk-WDRMZKVB.js";
118
118
  import "./chunk-KI45T4DI.js";
@@ -366,6 +366,21 @@ function parseRemoteClientMessage(raw) {
366
366
  const sessionTokens = raw2.filter((item) => typeof item === "string" && item.trim().length > 0).map((item) => item.trim()).slice(0, 32);
367
367
  return { type: "list_hosts", sessionTokens };
368
368
  }
369
+ if (msg.type === "push_register") {
370
+ const token = str(parsed.token);
371
+ if (!/^(?:Exponent|Expo)PushToken\[[A-Za-z0-9_-]{8,140}\]$/.test(token)) return null;
372
+ const raw2 = parsed.sessionTokens;
373
+ if (!Array.isArray(raw2)) return null;
374
+ const sessionTokens = raw2.filter((item) => typeof item === "string" && item.trim().length > 0).map((item) => item.trim()).slice(0, 32);
375
+ return { type: "push_register", token, sessionTokens };
376
+ }
377
+ if (msg.type === "push_notify") {
378
+ const chatId = str(parsed.chatId);
379
+ const kind = parsed.kind;
380
+ if (!/^[A-Za-z0-9_-]{8,80}$/.test(chatId)) return null;
381
+ if (kind !== "needs_you" && kind !== "finished" && kind !== "failed") return null;
382
+ return { type: "push_notify", chatId, kind };
383
+ }
369
384
  if (msg.type === "prompt") {
370
385
  const text = str(parsed.text);
371
386
  if (!text) return null;
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  abletimeRestUrl,
12
12
  textFromAbleTimeDoc
13
- } from "./chunk-4HELMBYR.js";
13
+ } from "./chunk-TD76ORBJ.js";
14
14
  import {
15
15
  assertAbleTimeCredential,
16
16
  callAbleTimeTool,
17
17
  normalizeAbleTimeHost,
18
18
  rewriteAbleTimeError
19
- } from "./chunk-WO7VF4FG.js";
19
+ } from "./chunk-YFPSTG52.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-TKEYXNXY.js";
28
+ } from "./chunk-4PHOJMZI.js";
29
29
 
30
30
  // src/integrations/abletime-attachments.ts
31
31
  function asRecord(value) {
@@ -5,7 +5,7 @@ import {
5
5
  resolveGithubRepoSlug,
6
6
  resolveOriginRemote,
7
7
  resolveRepoRoot
8
- } from "./chunk-G3UV3GXJ.js";
8
+ } from "./chunk-Z54FI4VL.js";
9
9
  import {
10
10
  allocateTeamName,
11
11
  createEmptyThread,
@@ -14,7 +14,7 @@ import {
14
14
  teamSlugFromName,
15
15
  updateThread,
16
16
  writeThread
17
- } from "./chunk-JX3OWNOT.js";
17
+ } from "./chunk-QTDCPMOW.js";
18
18
  import {
19
19
  ATTACHMENTS_DIR,
20
20
  attachmentsGitignoreBody
@@ -31,7 +31,7 @@ import {
31
31
  resolveThreadDefaults,
32
32
  resolveViewerProfile,
33
33
  resolveViewerProfileForRepo
34
- } from "./chunk-TKEYXNXY.js";
34
+ } from "./chunk-4PHOJMZI.js";
35
35
  import {
36
36
  appDataDir,
37
37
  globalAgentCwd,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_ABLETIME_HOST,
3
3
  normalizeAbleTimeHost
4
- } from "./chunk-WO7VF4FG.js";
4
+ } from "./chunk-YFPSTG52.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-TKEYXNXY.js";
13
+ } from "./chunk-4PHOJMZI.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-ZIYFR4SI.js");
283
+ const { getAbleTimeOrientation } = await import("./abletime-X2TJ6PPK.js");
284
284
  const orientation = await getAbleTimeOrientation({ token, host });
285
285
  return saveAbleTimeConnection({
286
286
  accessToken: token,
@@ -2,11 +2,11 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-4TTTEKNV.js";
5
+ } from "./chunk-MB3GOWB3.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
9
- } from "./chunk-6RO2AOE5.js";
9
+ } from "./chunk-GHKJBZW5.js";
10
10
  import {
11
11
  enrichPathWithNpmGlobalBin
12
12
  } from "./chunk-R4W4VQJZ.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-R4W4VQJZ.js";
8
8
  import {
9
9
  resolveAgentExecutable
10
- } from "./chunk-TKEYXNXY.js";
10
+ } from "./chunk-4PHOJMZI.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-FS7TM55D.js");
367
+ const { loadAppSettings } = await import("./app-settings-A6JUT2SF.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) {
@@ -8,11 +8,11 @@ import {
8
8
  isGlobalThread,
9
9
  isOrchestratorThread,
10
10
  isSlackCoordinatorThread
11
- } from "./chunk-HRHF6N6S.js";
11
+ } from "./chunk-4YGVJRXY.js";
12
12
  import {
13
13
  mergeAgentGitAuthEnv,
14
14
  resolveAgentGitAuthEnv
15
- } from "./chunk-G3UV3GXJ.js";
15
+ } from "./chunk-Z54FI4VL.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-JX3OWNOT.js";
27
+ } from "./chunk-QTDCPMOW.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-TKEYXNXY.js";
52
+ } from "./chunk-4PHOJMZI.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-H56XPSX4.js");
1708
+ const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-DUHRZUQY.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
  formatOptionalServicesDirectiveForTurn,
3
3
  formatOptionalServicesReminderForTurn
4
- } from "./chunk-4TTTEKNV.js";
4
+ } from "./chunk-MB3GOWB3.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-6N4W2MJ2.js";
24
+ } from "./chunk-MHRU743Z.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-YNKVGJE5.js";
59
+ } from "./chunk-IYX53WZY.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-HRHF6N6S.js";
104
+ } from "./chunk-4YGVJRXY.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-G3UV3GXJ.js";
157
+ } from "./chunk-Z54FI4VL.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-JX3OWNOT.js";
189
+ } from "./chunk-QTDCPMOW.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-TKEYXNXY.js";
267
+ } from "./chunk-4PHOJMZI.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-YRPM6JLZ.js");
530
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-6GGS3DWU.js");
531
531
  if (isGlobalThread2(thread)) {
532
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-2YQGOA6Y.js");
532
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-OX6A4MDA.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-FS7TM55D.js");
3302
+ const { cowboyModeEnabled } = await import("./app-settings-A6JUT2SF.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-ZIYFR4SI.js");
3361
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-X2TJ6PPK.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-FI62PUSY.js");
3472
+ const { getAdapter: getAdapter2 } = await import("./agents-AQM7NLXD.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-SSYKQUAU.js");
4255
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-DTMPNDPW.js");
4256
4256
  await addWorkspace2(repoPath);
4257
4257
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-YQBN43QD.js");
4258
4258
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -7877,11 +7877,11 @@ function realDeps() {
7877
7877
  parentIdForThread,
7878
7878
  designatedId: designatedOrchestratorId,
7879
7879
  send: async (threadId, prompt) => {
7880
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-DGH2UMPW.js");
7880
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-POMFVZLB.js");
7881
7881
  await getOrchestrator2().send(threadId, prompt, { followUp: "queue" });
7882
7882
  },
7883
7883
  startOrchestration: async (prompt) => {
7884
- const { startOrchestration: startOrchestration2 } = await import("./orchestrator-DGH2UMPW.js");
7884
+ const { startOrchestration: startOrchestration2 } = await import("./orchestrator-POMFVZLB.js");
7885
7885
  const defaults = resolveOrchestratorDefaults();
7886
7886
  await startOrchestration2({
7887
7887
  goal: prompt,
@@ -7908,7 +7908,7 @@ function formatScheduledPrompt(name, prompt) {
7908
7908
  ${prompt}`;
7909
7909
  }
7910
7910
  async function defaultDeps() {
7911
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-DGH2UMPW.js");
7911
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-POMFVZLB.js");
7912
7912
  const orch = getOrchestrator2();
7913
7913
  return {
7914
7914
  findThread: (id) => findThreadByRef(id),
@@ -8264,7 +8264,7 @@ var Orchestrator = class {
8264
8264
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
8265
8265
  });
8266
8266
  }
8267
- const { autoCleanupOrphansEnabled } = await import("./app-settings-FS7TM55D.js");
8267
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-A6JUT2SF.js");
8268
8268
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
8269
8269
  await cleanupOrphanWorktrees({ repoPaths });
8270
8270
  }
@@ -8654,7 +8654,7 @@ var Orchestrator = class {
8654
8654
  }
8655
8655
  await setup;
8656
8656
  if (skipSetup) return;
8657
- const { autoRunAfterSetupEnabled } = await import("./app-settings-FS7TM55D.js");
8657
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-A6JUT2SF.js");
8658
8658
  if (autoRunAfterSetupEnabled()) {
8659
8659
  try {
8660
8660
  await this.startDev(threadId);
@@ -9038,7 +9038,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9038
9038
  }
9039
9039
  const isBrightsy = fresh.agent === "brightsy";
9040
9040
  const isOrchestration = isOrchestratorThread(fresh);
9041
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-FS7TM55D.js");
9041
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-A6JUT2SF.js");
9042
9042
  const gitAuthMode = getGithubGitAuthMode();
9043
9043
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
9044
9044
  githubSlug: turnOrigin?.forge === "github" ? turnOrigin.slug : await withTimeout(resolveGithubRepoSlug(fresh.worktreePath), 8e3, "resolveGithubRepoSlug").catch(() => null),
@@ -10380,7 +10380,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
10380
10380
  if (Object.keys(patch).length === 0) continue;
10381
10381
  updateThread(t.id, patch);
10382
10382
  }
10383
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-FS7TM55D.js");
10383
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-A6JUT2SF.js");
10384
10384
  const latest = this.requireThread(thread.id);
10385
10385
  if (!shouldAutoArchiveOnPrMerge({
10386
10386
  previousPrState: prevState || null,
@@ -10704,7 +10704,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
10704
10704
  await runArchiveScript(thread.repoPath, thread.worktreePath);
10705
10705
  } catch {
10706
10706
  }
10707
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-FS7TM55D.js");
10707
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-A6JUT2SF.js");
10708
10708
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
10709
10709
  await removeWorktree(thread.repoPath, thread.worktreePath, {
10710
10710
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -10842,7 +10842,7 @@ async function startOrchestration(opts) {
10842
10842
  sourceRef: "default",
10843
10843
  ...createOpts
10844
10844
  }).catch(async () => {
10845
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-QBVLKACU.js");
10845
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-FX5FT6BI.js");
10846
10846
  const repo = await resolveRepoRoot2(repoPath);
10847
10847
  const def = await resolveDefaultBranch2(repo);
10848
10848
  return orch.createThread({
@@ -10852,7 +10852,7 @@ async function startOrchestration(opts) {
10852
10852
  repoPath: repo
10853
10853
  });
10854
10854
  });
10855
- const { updateThread: upd } = await import("./thread-store-ILM2ZJCB.js");
10855
+ const { updateThread: upd } = await import("./thread-store-V5IDUJ4L.js");
10856
10856
  const updated = upd(thread.id, {
10857
10857
  sourceType: "orchestration",
10858
10858
  sourceRef: goal
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  loadAppSettings,
6
6
  saveAppSettings
7
- } from "./chunk-TKEYXNXY.js";
7
+ } from "./chunk-4PHOJMZI.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-RUUCLNSM.js");
276
+ const { optionalCliPresence } = await import("./optional-cli-YHLVTVRK.js");
277
277
  return await optionalCliPresence(ids);
278
278
  } catch {
279
279
  return void 0;
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XOEKCE6L.js";
7
7
  import {
8
8
  listAssignedLinearIssues
9
- } from "./chunk-D7US5R4H.js";
9
+ } from "./chunk-O5WRVQFT.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-HRHF6N6S.js";
18
+ } from "./chunk-4YGVJRXY.js";
19
19
  import {
20
20
  codexUnattendedGitConfigArgs,
21
21
  mergeAgentGitAuthEnv,
22
22
  resolveAgentGitAuthEnv,
23
23
  resolveCodexGitWritableRoots
24
- } from "./chunk-G3UV3GXJ.js";
24
+ } from "./chunk-Z54FI4VL.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-TKEYXNXY.js";
83
+ } from "./chunk-4PHOJMZI.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-YRPM6JLZ.js");
2674
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-6GGS3DWU.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-KDLU7QWX.js");
2901
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-CGUCPWTV.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-KDLU7QWX.js");
3992
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-CGUCPWTV.js");
3993
3993
  return listAssignedLinearIssues2();
3994
3994
  }
3995
3995
  };
@@ -16,7 +16,7 @@ import {
16
16
  disconnectLinearConnection,
17
17
  loadAppSettings,
18
18
  saveLinearOAuth
19
- } from "./chunk-TKEYXNXY.js";
19
+ } from "./chunk-4PHOJMZI.js";
20
20
 
21
21
  // src/integrations/linear-oauth.ts
22
22
  import { createHash, randomBytes } from "crypto";
@@ -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-UXMDJAD4.js");
5
+ const { listLinearIssuesDirect } = await import("./linear-WYI64BMX.js");
6
6
  const listed = listLinearIssuesDirect({ limit: 50 }).catch(() => []);
7
7
  let timer;
8
8
  try {
@@ -10,7 +10,7 @@ import {
10
10
  isOrchestratorCapableAgent,
11
11
  normalizeThinkingEffort,
12
12
  updateAdvancedSettings
13
- } from "./chunk-TKEYXNXY.js";
13
+ } from "./chunk-4PHOJMZI.js";
14
14
  import {
15
15
  writePrivateFile
16
16
  } from "./chunk-JT7R45JB.js";
@@ -4,14 +4,14 @@ import {
4
4
  normalizeAbleTimeCredential,
5
5
  normalizeAbleTimeHost,
6
6
  rewriteAbleTimeError
7
- } from "./chunk-WO7VF4FG.js";
7
+ } from "./chunk-YFPSTG52.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-TKEYXNXY.js";
14
+ } from "./chunk-4PHOJMZI.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-TKEYXNXY.js";
7
+ } from "./chunk-4PHOJMZI.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-IQZ3LOB2.js").then((m) => m.ensureAbleTimeAccessToken());
156
+ const rawToken = opts?.token ?? await import("./abletime-oauth-DEIENLHC.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-IQZ3LOB2.js").then((m) => m.ensureAbleTimeAccessToken());
227
+ const rawToken = opts?.token ?? await import("./abletime-oauth-DEIENLHC.js").then((m) => m.ensureAbleTimeAccessToken());
228
228
  if (rawToken && ableTimeUsesRest(rawToken)) {
229
- const { callAbleTimeRestTool } = await import("./abletime-rest-7YAO5B74.js");
229
+ const { callAbleTimeRestTool } = await import("./abletime-rest-HWBUPI4R.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-7YAO5B74.js");
245
+ const { callAbleTimeRestTool } = await import("./abletime-rest-HWBUPI4R.js");
246
246
  return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
247
247
  }
248
248
  throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
@@ -4,7 +4,7 @@ import {
4
4
  normalizeTakenSlug,
5
5
  normalizeWorktreePath,
6
6
  takenSlugsFromThread
7
- } from "./chunk-JX3OWNOT.js";
7
+ } from "./chunk-QTDCPMOW.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-TKEYXNXY.js";
28
+ } from "./chunk-4PHOJMZI.js";
29
29
  import {
30
30
  worktreesRoot
31
31
  } from "./chunk-H4UEFJRI.js";