@sideboard-ai/core 0.1.333 → 0.1.335

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/{abletime-SO2YHMEI.js → abletime-OGOHNRVB.js} +4 -4
  2. package/dist/{abletime-5FBKBO3R.js → abletime-TNONAVJG.js} +4 -4
  3. package/dist/{abletime-oauth-EUC5FFMD.js → abletime-oauth-DAZEUQJI.js} +3 -3
  4. package/dist/{abletime-oauth-I34WZZZL.js → abletime-oauth-TYDQ73GK.js} +3 -3
  5. package/dist/{abletime-rest-EI5ZJ72Z.js → abletime-rest-3FWZGTX6.js} +3 -3
  6. package/dist/{abletime-rest-HEQXSZAQ.js → abletime-rest-B4VI46MI.js} +3 -3
  7. package/dist/{agents-5NJ3FROS.js → agents-ISEAOZD5.js} +7 -7
  8. package/dist/{agents-SRM6OVML.js → agents-VTLFLMMT.js} +7 -7
  9. package/dist/{app-settings-JAEV53LB.js → app-settings-KOSVLMO5.js} +1 -1
  10. package/dist/{app-settings-SHZWNJBV.js → app-settings-YS5AUJTF.js} +1 -1
  11. package/dist/{chunk-EY5BJAPV.js → chunk-23KYDM2U.js} +23 -0
  12. package/dist/{chunk-F4OUZDIB.js → chunk-4BRO5LNX.js} +3 -3
  13. package/dist/{chunk-RJT6JPNX.js → chunk-4O7436ZH.js} +5 -5
  14. package/dist/{chunk-JJRTVB7D.js → chunk-4OVQGZEI.js} +3 -3
  15. package/dist/{chunk-SKPX66MO.js → chunk-4SP26Z6H.js} +5 -5
  16. package/dist/{chunk-WXOJSFGO.js → chunk-54GBJC6J.js} +8 -8
  17. package/dist/{chunk-QNKJCD7B.js → chunk-5FGQTB2Z.js} +2 -2
  18. package/dist/{chunk-25KXB7W6.js → chunk-5TVRPOVS.js} +1 -1
  19. package/dist/{chunk-EW5D53VB.js → chunk-AFSLMWQK.js} +1 -1
  20. package/dist/{chunk-ELDJBZ52.js → chunk-B6TPN624.js} +5 -5
  21. package/dist/{chunk-QVLDZWHZ.js → chunk-BDQFZAE6.js} +1 -1
  22. package/dist/{chunk-LEUAYFSG.js → chunk-CDRGQ6GX.js} +3 -3
  23. package/dist/{chunk-4J7R2BFU.js → chunk-EKI7D2AJ.js} +21 -21
  24. package/dist/{chunk-P7S3XGKL.js → chunk-ERCYQTJU.js} +3 -3
  25. package/dist/{chunk-UV33UCV6.js → chunk-FCBUDWP6.js} +2 -2
  26. package/dist/{chunk-YMV5O7KY.js → chunk-FEGRY7NL.js} +3 -3
  27. package/dist/{chunk-CS6LQUL6.js → chunk-HNW5KMGK.js} +2 -2
  28. package/dist/{chunk-277I5IBI.js → chunk-I2C5ZRVO.js} +1 -1
  29. package/dist/{chunk-ZT5YPYZE.js → chunk-KAIOL2M5.js} +1 -1
  30. package/dist/{chunk-BAIPCN34.js → chunk-LYJ5AVK4.js} +2 -2
  31. package/dist/{chunk-6RUSADA7.js → chunk-MGEUXR6E.js} +3 -3
  32. package/dist/{chunk-7BAS6DF7.js → chunk-N6TGSJVC.js} +22 -0
  33. package/dist/{chunk-TLL2K2MY.js → chunk-NB4U75TJ.js} +7 -7
  34. package/dist/{chunk-MXQ66CLO.js → chunk-OMKTX7ZW.js} +3 -3
  35. package/dist/{chunk-QKJC725N.js → chunk-PSXBOMXI.js} +20 -20
  36. package/dist/{chunk-7MPRTC6X.js → chunk-Q73I6I2K.js} +1 -1
  37. package/dist/{chunk-RCRDNOAT.js → chunk-QWFNKOGA.js} +2 -2
  38. package/dist/{chunk-NCFYUUSC.js → chunk-SYTTUNX6.js} +1 -1
  39. package/dist/{chunk-HJIA4X3L.js → chunk-W6J3ZWLJ.js} +2 -2
  40. package/dist/{chunk-D6V6F74A.js → chunk-WSZIJNAR.js} +5 -5
  41. package/dist/{conductor-XSP3SOS2.js → conductor-77L3QTZ2.js} +5 -5
  42. package/dist/{conductor-LUPB6RBH.js → conductor-JH26KU3W.js} +5 -5
  43. package/dist/{coordinator-prompt-O75QUEHP.js → coordinator-prompt-UKJJAMBG.js} +4 -4
  44. package/dist/{coordinator-prompt-EJJNJ5K7.js → coordinator-prompt-WVVC2TLP.js} +4 -4
  45. package/dist/{global-workspace-3IG44NAT.js → global-workspace-B5IHENCP.js} +4 -4
  46. package/dist/{global-workspace-Q4OURN7M.js → global-workspace-QDIPRW6G.js} +4 -4
  47. package/dist/index.cjs +1476 -568
  48. package/dist/index.d.cts +101 -15
  49. package/dist/index.d.ts +101 -15
  50. package/dist/index.js +1403 -531
  51. package/dist/{linear-FRJRK6KI.js → linear-5E2WI4QQ.js} +2 -2
  52. package/dist/{linear-7HSIGV5S.js → linear-P3LP455O.js} +2 -2
  53. package/dist/{linear-list-LDMBSKYI.js → linear-list-AXK62DPW.js} +1 -1
  54. package/dist/{linear-list-I6DNJC6V.js → linear-list-Y3INIBYH.js} +1 -1
  55. package/dist/mcp/run-stdio.cjs +29 -1
  56. package/dist/mcp/run-stdio.js +16 -16
  57. package/dist/{optional-cli-KWIII44P.js → optional-cli-6J6C4I3X.js} +3 -3
  58. package/dist/{optional-cli-XJE4BELL.js → optional-cli-X6I35UNI.js} +4 -4
  59. package/dist/{orchestrator-WHXHBNRS.js → orchestrator-BOLYQZO7.js} +10 -10
  60. package/dist/{orchestrator-IYXIWNB5.js → orchestrator-ZUIU667R.js} +10 -10
  61. package/dist/{thread-store-PCIMS6RA.js → thread-store-DCO5MZWJ.js} +2 -2
  62. package/dist/{thread-store-NVFWKJFH.js → thread-store-QGBPSZU2.js} +2 -2
  63. package/dist/{workspaces-ALUHOCWK.js → workspaces-VXE2MBKD.js} +4 -4
  64. package/dist/{workspaces-QGKSXA76.js → workspaces-WZZNNUJL.js} +4 -4
  65. package/dist/{worktree-6WWUWH4K.js → worktree-GWS77LWX.js} +3 -3
  66. package/dist/{worktree-N435EXSP.js → worktree-S4YOAYRA.js} +3 -3
  67. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  formatOptionalServicesDirectiveForTurn,
3
3
  formatOptionalServicesReminderForTurn
4
- } from "./chunk-RCRDNOAT.js";
4
+ } from "./chunk-QWFNKOGA.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-TLL2K2MY.js";
24
+ } from "./chunk-NB4U75TJ.js";
25
25
  import {
26
26
  applyWorktreePkgCacheEnv,
27
27
  buildBrightsySessionSeed,
@@ -55,7 +55,7 @@ import {
55
55
  worktreeDevProcessKey,
56
56
  worktreeRunProcessKey,
57
57
  worktreeSetupProcessKey
58
- } from "./chunk-ELDJBZ52.js";
58
+ } from "./chunk-B6TPN624.js";
59
59
  import {
60
60
  applyAgentEvent,
61
61
  clipAgentEventForPaint,
@@ -98,7 +98,7 @@ import {
98
98
  stageAbsolutePathsAsAttachments,
99
99
  stageBuffersAsAttachments,
100
100
  syncWorkspacesFromThreads
101
- } from "./chunk-LEUAYFSG.js";
101
+ } from "./chunk-CDRGQ6GX.js";
102
102
  import {
103
103
  addPrStackLayer,
104
104
  allocateTeamSlug,
@@ -149,7 +149,7 @@ import {
149
149
  resolveRepoRoot,
150
150
  switchWorktreeBranch,
151
151
  withRepoGitLock
152
- } from "./chunk-JJRTVB7D.js";
152
+ } from "./chunk-4OVQGZEI.js";
153
153
  import {
154
154
  REVIEW_TAB_TITLE,
155
155
  agentNicknameFromWorktreePath,
@@ -181,7 +181,7 @@ import {
181
181
  worktreeNameFromPath,
182
182
  worktreeSlugForTicket,
183
183
  writeThread
184
- } from "./chunk-QVLDZWHZ.js";
184
+ } from "./chunk-BDQFZAE6.js";
185
185
  import {
186
186
  askBlockStillWaiting,
187
187
  extractPendingPlanQuestions,
@@ -257,7 +257,7 @@ import {
257
257
  usageOnLimit,
258
258
  withTurnScopedCost,
259
259
  writeViewerContext
260
- } from "./chunk-EY5BJAPV.js";
260
+ } from "./chunk-23KYDM2U.js";
261
261
  import {
262
262
  examplePrefixedBranch,
263
263
  sanitizeGitBranchPrefix
@@ -517,9 +517,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
517
517
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
518
518
  );
519
519
  }
520
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-Q4OURN7M.js");
520
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-QDIPRW6G.js");
521
521
  if (isGlobalThread2(thread)) {
522
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-O75QUEHP.js");
522
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-UKJJAMBG.js");
523
523
  ensureGlobalCoordinatorCwd2(
524
524
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
525
525
  );
@@ -3226,7 +3226,7 @@ async function createThread(input, _onSetupLine) {
3226
3226
  });
3227
3227
  await requireAgent(resolved.agent);
3228
3228
  if (input.cowboy) {
3229
- const { cowboyModeEnabled } = await import("./app-settings-JAEV53LB.js");
3229
+ const { cowboyModeEnabled } = await import("./app-settings-KOSVLMO5.js");
3230
3230
  if (!cowboyModeEnabled()) {
3231
3231
  throw new Error(
3232
3232
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -3285,7 +3285,7 @@ async function createThread(input, _onSetupLine) {
3285
3285
  let sourceIsFork = false;
3286
3286
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
3287
3287
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
3288
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-5FBKBO3R.js");
3288
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-TNONAVJG.js");
3289
3289
  const task = await ensureAbleTimeTask({
3290
3290
  title: title?.trim() || "Untitled work",
3291
3291
  description: input.prompt?.trim() || void 0
@@ -3396,7 +3396,7 @@ async function createThread(input, _onSetupLine) {
3396
3396
  return readThread(thread.id) ?? thread;
3397
3397
  }
3398
3398
  async function listLinearIssues(agent, repoPath) {
3399
- const { getAdapter: getAdapter2 } = await import("./agents-5NJ3FROS.js");
3399
+ const { getAdapter: getAdapter2 } = await import("./agents-ISEAOZD5.js");
3400
3400
  await requireAgent(agent, { requireLinear: true });
3401
3401
  const adapter = getAdapter2(agent);
3402
3402
  if (!adapter.listLinearIssues) {
@@ -4179,7 +4179,7 @@ async function adoptThread(input) {
4179
4179
  messages: input.messages ?? []
4180
4180
  });
4181
4181
  writeThread(thread);
4182
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-QGKSXA76.js");
4182
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-WZZNNUJL.js");
4183
4183
  await addWorkspace2(repoPath);
4184
4184
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-YQBN43QD.js");
4185
4185
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -7168,7 +7168,7 @@ function formatScheduledPrompt(name, prompt) {
7168
7168
  ${prompt}`;
7169
7169
  }
7170
7170
  async function defaultDeps() {
7171
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-IYXIWNB5.js");
7171
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-ZUIU667R.js");
7172
7172
  const orch = getOrchestrator2();
7173
7173
  return {
7174
7174
  findThread: (id) => findThreadByRef(id),
@@ -7523,7 +7523,7 @@ var Orchestrator = class {
7523
7523
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
7524
7524
  });
7525
7525
  }
7526
- const { autoCleanupOrphansEnabled } = await import("./app-settings-JAEV53LB.js");
7526
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-KOSVLMO5.js");
7527
7527
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
7528
7528
  await cleanupOrphanWorktrees({ repoPaths });
7529
7529
  }
@@ -7917,7 +7917,7 @@ var Orchestrator = class {
7917
7917
  }
7918
7918
  await setup;
7919
7919
  if (skipSetup) return;
7920
- const { autoRunAfterSetupEnabled } = await import("./app-settings-JAEV53LB.js");
7920
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-KOSVLMO5.js");
7921
7921
  if (autoRunAfterSetupEnabled()) {
7922
7922
  try {
7923
7923
  await this.startDev(threadId);
@@ -8302,7 +8302,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
8302
8302
  }
8303
8303
  const isBrightsy = fresh.agent === "brightsy";
8304
8304
  const isOrchestration = isOrchestratorThread(fresh);
8305
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-JAEV53LB.js");
8305
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-KOSVLMO5.js");
8306
8306
  const gitAuthMode = getGithubGitAuthMode();
8307
8307
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
8308
8308
  githubSlug: turnOrigin?.forge === "github" ? turnOrigin.slug : await withTimeout(resolveGithubRepoSlug(fresh.worktreePath), 8e3, "resolveGithubRepoSlug").catch(() => null),
@@ -9644,7 +9644,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9644
9644
  if (Object.keys(patch).length === 0) continue;
9645
9645
  updateThread(t.id, patch);
9646
9646
  }
9647
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-JAEV53LB.js");
9647
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-KOSVLMO5.js");
9648
9648
  const latest = this.requireThread(thread.id);
9649
9649
  if (!shouldAutoArchiveOnPrMerge({
9650
9650
  previousPrState: prevState || null,
@@ -9968,7 +9968,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9968
9968
  await runArchiveScript(thread.repoPath, thread.worktreePath);
9969
9969
  } catch {
9970
9970
  }
9971
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-JAEV53LB.js");
9971
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-KOSVLMO5.js");
9972
9972
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
9973
9973
  await removeWorktree(thread.repoPath, thread.worktreePath, {
9974
9974
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -10106,7 +10106,7 @@ async function startOrchestration(opts) {
10106
10106
  sourceRef: "default",
10107
10107
  ...createOpts
10108
10108
  }).catch(async () => {
10109
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-6WWUWH4K.js");
10109
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-GWS77LWX.js");
10110
10110
  const repo = await resolveRepoRoot2(repoPath);
10111
10111
  const def = await resolveDefaultBranch2(repo);
10112
10112
  return orch.createThread({
@@ -10116,7 +10116,7 @@ async function startOrchestration(opts) {
10116
10116
  repoPath: repo
10117
10117
  });
10118
10118
  });
10119
- const { updateThread: upd } = await import("./thread-store-NVFWKJFH.js");
10119
+ const { updateThread: upd } = await import("./thread-store-QGBPSZU2.js");
10120
10120
  const updated = upd(thread.id, {
10121
10121
  sourceType: "orchestration",
10122
10122
  sourceRef: goal
@@ -23,11 +23,11 @@ import {
23
23
  normalizeTakenSlug,
24
24
  normalizeWorktreePath,
25
25
  takenSlugsFromThread
26
- } from "./chunk-EW5D53VB.js";
26
+ } from "./chunk-AFSLMWQK.js";
27
27
  import {
28
28
  getGithubGitAuthMode,
29
29
  getGithubPat
30
- } from "./chunk-7BAS6DF7.js";
30
+ } from "./chunk-N6TGSJVC.js";
31
31
  import {
32
32
  worktreesRoot
33
33
  } from "./chunk-WOU343SI.js";
@@ -1703,7 +1703,7 @@ async function listPrs(repoPath, opts) {
1703
1703
  if (exitCode !== 0 || !stdout.trim()) return [];
1704
1704
  return applyPrListResponse(stdout, { ...resolved, limit, viewerTeams });
1705
1705
  }
1706
- var PR_INFO_JSON_FIELDS = "number,title,headRefName,url,isCrossRepository,author,isDraft,labels";
1706
+ var PR_INFO_JSON_FIELDS = "number,title,headRefName,url,isCrossRepository,author,isDraft,labels,state";
1707
1707
  function prInfoFromGhView(view) {
1708
1708
  const author = view.author;
1709
1709
  const login = author?.login?.trim();
@@ -2,11 +2,11 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-RCRDNOAT.js";
5
+ } from "./chunk-QWFNKOGA.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
9
- } from "./chunk-QNKJCD7B.js";
9
+ } from "./chunk-5FGQTB2Z.js";
10
10
  import {
11
11
  enrichPathWithNpmGlobalBin
12
12
  } from "./chunk-R4W4VQJZ.js";
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  abletimeRestUrl,
12
12
  textFromAbleTimeDoc
13
- } from "./chunk-HJIA4X3L.js";
13
+ } from "./chunk-W6J3ZWLJ.js";
14
14
  import {
15
15
  assertAbleTimeCredential,
16
16
  callAbleTimeTool,
17
17
  normalizeAbleTimeHost,
18
18
  rewriteAbleTimeError
19
- } from "./chunk-SKPX66MO.js";
19
+ } from "./chunk-4SP26Z6H.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-EY5BJAPV.js";
28
+ } from "./chunk-23KYDM2U.js";
29
29
 
30
30
  // src/integrations/abletime-attachments.ts
31
31
  function asRecord(value) {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-TL2HK6LZ.js";
10
10
  import {
11
11
  resolveAgentExecutable
12
- } from "./chunk-7BAS6DF7.js";
12
+ } from "./chunk-N6TGSJVC.js";
13
13
 
14
14
  // src/agents/install.ts
15
15
  import { chmodSync, existsSync } from "fs";
@@ -366,7 +366,7 @@ async function loginAgent(agent) {
366
366
  };
367
367
  }
368
368
  async function loginManagedAccount(accountId) {
369
- const { loadAppSettings } = await import("./app-settings-SHZWNJBV.js");
369
+ const { loadAppSettings } = await import("./app-settings-YS5AUJTF.js");
370
370
  const { loginEnvPrefix } = await import("./managed-accounts-PITLFLKU.js");
371
371
  const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
372
372
  if (!account) {
@@ -18,7 +18,7 @@ import {
18
18
  disconnectLinearConnection,
19
19
  loadAppSettings,
20
20
  saveLinearOAuth
21
- } from "./chunk-7BAS6DF7.js";
21
+ } from "./chunk-N6TGSJVC.js";
22
22
 
23
23
  // src/integrations/linear-oauth.ts
24
24
  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-FRJRK6KI.js");
5
+ const { listLinearIssuesDirect } = await import("./linear-5E2WI4QQ.js");
6
6
  const listed = listLinearIssuesDirect({ limit: 50 }).catch(() => []);
7
7
  let timer;
8
8
  try {
@@ -6,14 +6,14 @@ import {
6
6
  normalizeAbleTimeCredential,
7
7
  normalizeAbleTimeHost,
8
8
  rewriteAbleTimeError
9
- } from "./chunk-D6V6F74A.js";
9
+ } from "./chunk-WSZIJNAR.js";
10
10
  import {
11
11
  httpFetch
12
12
  } from "./chunk-2GPQZZLY.js";
13
13
  import {
14
14
  getAbleTimeAccessToken,
15
15
  getAbleTimeHost
16
- } from "./chunk-7BAS6DF7.js";
16
+ } from "./chunk-N6TGSJVC.js";
17
17
 
18
18
  // src/integrations/abletime-rest.ts
19
19
  var ABLETIME_REST_PREFIX = "/api/public/v2";
@@ -7,7 +7,7 @@ import {
7
7
  resolveGithubRepoSlug,
8
8
  resolveOriginRemote,
9
9
  resolveRepoRoot
10
- } from "./chunk-P7S3XGKL.js";
10
+ } from "./chunk-ERCYQTJU.js";
11
11
  import {
12
12
  ATTACHMENTS_DIR,
13
13
  attachmentsGitignoreBody
@@ -20,7 +20,7 @@ import {
20
20
  teamSlugFromName,
21
21
  updateThread,
22
22
  writeThread
23
- } from "./chunk-EW5D53VB.js";
23
+ } from "./chunk-AFSLMWQK.js";
24
24
  import {
25
25
  assertOrchestratorCapableAgent,
26
26
  formatAccountProfilePlaybookLine,
@@ -33,7 +33,7 @@ import {
33
33
  resolveThreadDefaults,
34
34
  resolveViewerProfile,
35
35
  resolveViewerProfileForRepo
36
- } from "./chunk-7BAS6DF7.js";
36
+ } from "./chunk-N6TGSJVC.js";
37
37
  import {
38
38
  appDataDir,
39
39
  globalAgentCwd,
@@ -274,6 +274,17 @@ function remoteRelayUrl(configured) {
274
274
  return BAKED_REMOTE_RELAY_URL;
275
275
  }
276
276
 
277
+ // src/slack/client-ids.ts
278
+ function mergeSlackClientIds(ids) {
279
+ const out = [];
280
+ for (const raw of ids) {
281
+ const id = raw?.trim() ?? "";
282
+ if (!id || out.includes(id)) continue;
283
+ out.push(id);
284
+ }
285
+ return out;
286
+ }
287
+
277
288
  // src/store/secret-vault.ts
278
289
  import { join } from "path";
279
290
 
@@ -1006,6 +1017,12 @@ function normalizeIntegrations(raw) {
1006
1017
  const id = source.slackClientId.trim();
1007
1018
  if (id) out.slackClientId = id;
1008
1019
  }
1020
+ if (Array.isArray(source.slackClientIds)) {
1021
+ const ids = mergeSlackClientIds(
1022
+ source.slackClientIds.filter((id) => typeof id === "string")
1023
+ );
1024
+ if (ids.length > 0) out.slackClientIds = ids;
1025
+ }
1009
1026
  if (typeof source.slackClientSecret === "string") {
1010
1027
  const secret = source.slackClientSecret.trim();
1011
1028
  if (secret) out.slackClientSecret = secret;
@@ -1597,6 +1614,11 @@ function updateIntegrationsSettings(patch) {
1597
1614
  integrations.slackClientId = patch.slackClientId.trim();
1598
1615
  }
1599
1616
  }
1617
+ if ("slackClientIds" in patch) {
1618
+ const ids = mergeSlackClientIds(patch.slackClientIds ?? []);
1619
+ if (ids.length === 0) delete integrations.slackClientIds;
1620
+ else integrations.slackClientIds = ids;
1621
+ }
1600
1622
  if ("slackClientSecret" in patch) {
1601
1623
  if (patch.slackClientSecret == null || patch.slackClientSecret.trim() === "") {
1602
1624
  delete integrations.slackClientSecret;
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XOEKCE6L.js";
7
7
  import {
8
8
  listAssignedLinearIssues
9
- } from "./chunk-ZT5YPYZE.js";
9
+ } from "./chunk-KAIOL2M5.js";
10
10
  import {
11
11
  looksLikeConversationSummary,
12
12
  looksLikeSkillBody,
@@ -15,13 +15,13 @@ import {
15
15
  } from "./chunk-OOXRMTU6.js";
16
16
  import {
17
17
  isOrchestratorThread
18
- } from "./chunk-LEUAYFSG.js";
18
+ } from "./chunk-CDRGQ6GX.js";
19
19
  import {
20
20
  codexUnattendedGitConfigArgs,
21
21
  mergeAgentGitAuthEnv,
22
22
  resolveAgentGitAuthEnv,
23
23
  resolveCodexGitWritableRoots
24
- } from "./chunk-JJRTVB7D.js";
24
+ } from "./chunk-4OVQGZEI.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-EY5BJAPV.js";
83
+ } from "./chunk-23KYDM2U.js";
84
84
  import {
85
85
  isElectronLikeCommand,
86
86
  unwrapStrippedElectronLaunch
@@ -2659,7 +2659,7 @@ var claudeAdapter = {
2659
2659
  );
2660
2660
  }
2661
2661
  const mode = permissionMode(thread);
2662
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-Q4OURN7M.js");
2662
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-QDIPRW6G.js");
2663
2663
  const isOrchestrator = isOrchestratorThread2(thread);
2664
2664
  const rpc = worktreeAgentRpc(isOrchestrator);
2665
2665
  const injectedServers = await buildInjectedMcpServers({
@@ -2886,7 +2886,7 @@ var claudeAdapter = {
2886
2886
  return { file: claude, args, cwd: thread.worktreePath };
2887
2887
  },
2888
2888
  async listLinearIssues(_repoPath) {
2889
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-LDMBSKYI.js");
2889
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-AXK62DPW.js");
2890
2890
  return listAssignedLinearIssues2();
2891
2891
  }
2892
2892
  };
@@ -3977,7 +3977,7 @@ var opencodeAdapter = {
3977
3977
  };
3978
3978
  },
3979
3979
  async listLinearIssues(_repoPath) {
3980
- const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-LDMBSKYI.js");
3980
+ const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-AXK62DPW.js");
3981
3981
  return listAssignedLinearIssues2();
3982
3982
  }
3983
3983
  };
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  abletimeRestUrl,
5
5
  textFromAbleTimeDoc
6
- } from "./chunk-BAIPCN34.js";
6
+ } from "./chunk-LYJ5AVK4.js";
7
7
  import {
8
8
  assertAbleTimeCredential,
9
9
  callAbleTimeTool,
10
10
  normalizeAbleTimeHost,
11
11
  rewriteAbleTimeError
12
- } from "./chunk-D6V6F74A.js";
12
+ } from "./chunk-WSZIJNAR.js";
13
13
  import {
14
14
  downloadAuthenticatedFile,
15
15
  extractHttpUrls,
@@ -27,7 +27,7 @@ import {
27
27
  getAbleTimeHost,
28
28
  isAbleTimeConnected,
29
29
  saveAbleTimeConnection
30
- } from "./chunk-7BAS6DF7.js";
30
+ } from "./chunk-N6TGSJVC.js";
31
31
 
32
32
  // src/integrations/abletime-attachments.ts
33
33
  function asRecord(value) {
@@ -14,7 +14,7 @@ import {
14
14
  parseSessionQuotaResetAt,
15
15
  planModeTurnInstruction,
16
16
  resolveQuotaFallbackAgent
17
- } from "./chunk-WXOJSFGO.js";
17
+ } from "./chunk-54GBJC6J.js";
18
18
  import {
19
19
  applyWorktreePkgCacheEnv,
20
20
  askBlockStillWaiting,
@@ -53,7 +53,7 @@ import {
53
53
  worktreeDevProcessKey,
54
54
  worktreeRunProcessKey,
55
55
  worktreeSetupProcessKey
56
- } from "./chunk-RJT6JPNX.js";
56
+ } from "./chunk-4O7436ZH.js";
57
57
  import {
58
58
  applyAgentEvent,
59
59
  clipAgentEventForPaint,
@@ -87,7 +87,7 @@ import {
87
87
  import {
88
88
  formatOptionalServicesDirectiveForTurn,
89
89
  formatOptionalServicesReminderForTurn
90
- } from "./chunk-25KXB7W6.js";
90
+ } from "./chunk-5TVRPOVS.js";
91
91
  import {
92
92
  extractPresentedPlan,
93
93
  isPresentPlanToolName,
@@ -118,7 +118,7 @@ import {
118
118
  stageAbsolutePathsAsAttachments,
119
119
  stageBuffersAsAttachments,
120
120
  syncWorkspacesFromThreads
121
- } from "./chunk-6RUSADA7.js";
121
+ } from "./chunk-MGEUXR6E.js";
122
122
  import {
123
123
  addPrStackLayer,
124
124
  allocateTeamSlug,
@@ -167,7 +167,7 @@ import {
167
167
  resolveRepoRoot,
168
168
  switchWorktreeBranch,
169
169
  withRepoGitLock
170
- } from "./chunk-P7S3XGKL.js";
170
+ } from "./chunk-ERCYQTJU.js";
171
171
  import {
172
172
  issueActivityKind
173
173
  } from "./chunk-OYRN356W.js";
@@ -210,7 +210,7 @@ import {
210
210
  worktreeNameFromPath,
211
211
  worktreeSlugForTicket,
212
212
  writeThread
213
- } from "./chunk-EW5D53VB.js";
213
+ } from "./chunk-AFSLMWQK.js";
214
214
  import {
215
215
  HISTORY_CLEANUP_INTERVAL_HOURS_DEFAULT,
216
216
  applyTurnUsage,
@@ -245,7 +245,7 @@ import {
245
245
  usageOnLimit,
246
246
  withTurnScopedCost,
247
247
  writeViewerContext
248
- } from "./chunk-7BAS6DF7.js";
248
+ } from "./chunk-N6TGSJVC.js";
249
249
  import {
250
250
  examplePrefixedBranch,
251
251
  sanitizeGitBranchPrefix
@@ -561,9 +561,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
561
561
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
562
562
  );
563
563
  }
564
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-3IG44NAT.js");
564
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-B5IHENCP.js");
565
565
  if (isGlobalThread2(thread)) {
566
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-EJJNJ5K7.js");
566
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-WVVC2TLP.js");
567
567
  ensureGlobalCoordinatorCwd2(
568
568
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
569
569
  );
@@ -2923,7 +2923,7 @@ async function createThread(input, _onSetupLine) {
2923
2923
  });
2924
2924
  await requireAgent(resolved.agent);
2925
2925
  if (input.cowboy) {
2926
- const { cowboyModeEnabled } = await import("./app-settings-SHZWNJBV.js");
2926
+ const { cowboyModeEnabled } = await import("./app-settings-YS5AUJTF.js");
2927
2927
  if (!cowboyModeEnabled()) {
2928
2928
  throw new Error(
2929
2929
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -2982,7 +2982,7 @@ async function createThread(input, _onSetupLine) {
2982
2982
  let sourceIsFork = false;
2983
2983
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
2984
2984
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
2985
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-SO2YHMEI.js");
2985
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-OGOHNRVB.js");
2986
2986
  const task = await ensureAbleTimeTask({
2987
2987
  title: title?.trim() || "Untitled work",
2988
2988
  description: input.prompt?.trim() || void 0
@@ -3864,7 +3864,7 @@ async function adoptThread(input) {
3864
3864
  messages: input.messages ?? []
3865
3865
  });
3866
3866
  writeThread(thread);
3867
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-ALUHOCWK.js");
3867
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-VXE2MBKD.js");
3868
3868
  await addWorkspace2(repoPath);
3869
3869
  const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-KMZQXZKP.js");
3870
3870
  await ensureWorktreeSideboardIgnored(input.worktreePath);
@@ -6818,7 +6818,7 @@ function formatScheduledPrompt(name, prompt) {
6818
6818
  ${prompt}`;
6819
6819
  }
6820
6820
  async function defaultDeps() {
6821
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-WHXHBNRS.js");
6821
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-BOLYQZO7.js");
6822
6822
  const orch = getOrchestrator2();
6823
6823
  return {
6824
6824
  findThread: (id) => findThreadByRef(id),
@@ -7173,7 +7173,7 @@ var Orchestrator = class {
7173
7173
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
7174
7174
  });
7175
7175
  }
7176
- const { autoCleanupOrphansEnabled } = await import("./app-settings-SHZWNJBV.js");
7176
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-YS5AUJTF.js");
7177
7177
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
7178
7178
  await cleanupOrphanWorktrees({ repoPaths });
7179
7179
  }
@@ -7567,7 +7567,7 @@ var Orchestrator = class {
7567
7567
  }
7568
7568
  await setup;
7569
7569
  if (skipSetup) return;
7570
- const { autoRunAfterSetupEnabled } = await import("./app-settings-SHZWNJBV.js");
7570
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-YS5AUJTF.js");
7571
7571
  if (autoRunAfterSetupEnabled()) {
7572
7572
  try {
7573
7573
  await this.startDev(threadId);
@@ -7952,7 +7952,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
7952
7952
  }
7953
7953
  const isBrightsy = fresh.agent === "brightsy";
7954
7954
  const isOrchestration = isOrchestratorThread(fresh);
7955
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-SHZWNJBV.js");
7955
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-YS5AUJTF.js");
7956
7956
  const gitAuthMode = getGithubGitAuthMode();
7957
7957
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
7958
7958
  githubSlug: turnOrigin?.forge === "github" ? turnOrigin.slug : await withTimeout(resolveGithubRepoSlug(fresh.worktreePath), 8e3, "resolveGithubRepoSlug").catch(() => null),
@@ -9294,7 +9294,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9294
9294
  if (Object.keys(patch).length === 0) continue;
9295
9295
  updateThread(t.id, patch);
9296
9296
  }
9297
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-SHZWNJBV.js");
9297
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-YS5AUJTF.js");
9298
9298
  const latest = this.requireThread(thread.id);
9299
9299
  if (!shouldAutoArchiveOnPrMerge({
9300
9300
  previousPrState: prevState || null,
@@ -9618,7 +9618,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9618
9618
  await runArchiveScript(thread.repoPath, thread.worktreePath);
9619
9619
  } catch {
9620
9620
  }
9621
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-SHZWNJBV.js");
9621
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-YS5AUJTF.js");
9622
9622
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
9623
9623
  await removeWorktree(thread.repoPath, thread.worktreePath, {
9624
9624
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -9756,7 +9756,7 @@ async function startOrchestration(opts) {
9756
9756
  sourceRef: "default",
9757
9757
  ...createOpts
9758
9758
  }).catch(async () => {
9759
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-N435EXSP.js");
9759
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-S4YOAYRA.js");
9760
9760
  const repo = await resolveRepoRoot2(repoPath);
9761
9761
  const def = await resolveDefaultBranch2(repo);
9762
9762
  return orch.createThread({
@@ -9766,7 +9766,7 @@ async function startOrchestration(opts) {
9766
9766
  repoPath: repo
9767
9767
  });
9768
9768
  });
9769
- const { updateThread: upd } = await import("./thread-store-PCIMS6RA.js");
9769
+ const { updateThread: upd } = await import("./thread-store-DCO5MZWJ.js");
9770
9770
  const updated = upd(thread.id, {
9771
9771
  sourceType: "orchestration",
9772
9772
  sourceRef: goal
@@ -16,7 +16,7 @@ import {
16
16
  disconnectLinearConnection,
17
17
  loadAppSettings,
18
18
  saveLinearOAuth
19
- } from "./chunk-EY5BJAPV.js";
19
+ } from "./chunk-23KYDM2U.js";
20
20
 
21
21
  // src/integrations/linear-oauth.ts
22
22
  import { createHash, randomBytes } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  loadAppSettings,
6
6
  saveAppSettings
7
- } from "./chunk-EY5BJAPV.js";
7
+ } from "./chunk-23KYDM2U.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-XJE4BELL.js");
276
+ const { optionalCliPresence } = await import("./optional-cli-X6I35UNI.js");
277
277
  return await optionalCliPresence(ids);
278
278
  } catch {
279
279
  return void 0;
@@ -5,7 +5,7 @@
5
5
  var LIST_TIMEOUT_MS = 15e3;
6
6
  async function listAssignedLinearIssues(opts) {
7
7
  try {
8
- const { listLinearIssuesDirect } = await import("./linear-7HSIGV5S.js");
8
+ const { listLinearIssuesDirect } = await import("./linear-P3LP455O.js");
9
9
  const listed = listLinearIssuesDirect({ limit: 50 }).catch(() => []);
10
10
  let timer;
11
11
  try {