@sideboard-ai/core 0.1.331 → 0.1.332

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 (50) hide show
  1. package/dist/agents/cursor-runner.js +2 -2
  2. package/dist/{agents-JXQKHY7Q.js → agents-5FB756FF.js} +8 -8
  3. package/dist/{agents-JH4WV2ZH.js → agents-XEVZ6RY2.js} +7 -7
  4. package/dist/{chunk-NQHTYX35.js → chunk-25KXB7W6.js} +1 -1
  5. package/dist/{chunk-DFKLWWLY.js → chunk-3MOUHIA2.js} +6 -6
  6. package/dist/{chunk-PZ5MVD27.js → chunk-5G5DTQ5N.js} +5 -5
  7. package/dist/{chunk-O7JSWISN.js → chunk-5MJ7FCZ2.js} +1 -1
  8. package/dist/{chunk-DBRQ5NNB.js → chunk-6HGTYZGL.js} +5 -5
  9. package/dist/{chunk-QKHEVSB5.js → chunk-BMRJNRQK.js} +1 -1
  10. package/dist/{chunk-JQWCZGSO.js → chunk-CS6LQUL6.js} +110 -11
  11. package/dist/{chunk-OOSAMSTE.js → chunk-E5DFGOAA.js} +15 -15
  12. package/dist/{chunk-KUD24QYI.js → chunk-EHZ24J7U.js} +5 -5
  13. package/dist/{chunk-4YXZOXMT.js → chunk-GK7H3SY7.js} +1 -1
  14. package/dist/{chunk-6U6QRUHY.js → chunk-I6RGRUNY.js} +1 -1
  15. package/dist/{chunk-P4QRDXRY.js → chunk-JJRTVB7D.js} +2 -2
  16. package/dist/{chunk-QHKNPN55.js → chunk-KYHW5WYT.js} +17 -17
  17. package/dist/{chunk-U7EANR52.js → chunk-P7S3XGKL.js} +2 -2
  18. package/dist/{chunk-XOIJJRAQ.js → chunk-QNKJCD7B.js} +110 -11
  19. package/dist/{chunk-2TUE6JKQ.js → chunk-R4W4VQJZ.js} +2 -0
  20. package/dist/{chunk-7L36GZA4.js → chunk-RCRDNOAT.js} +1 -1
  21. package/dist/{chunk-YBTSZ2SW.js → chunk-TL2HK6LZ.js} +2 -0
  22. package/dist/{chunk-G45SGI57.js → chunk-UEPTL7UG.js} +1 -1
  23. package/dist/{chunk-NURZOXGN.js → chunk-UGUWFONI.js} +1 -1
  24. package/dist/{chunk-3DJQLQWU.js → chunk-UV33UCV6.js} +3 -3
  25. package/dist/{chunk-S5CJUIPY.js → chunk-XOEKCE6L.js} +5 -5
  26. package/dist/{conductor-FA27ZGCV.js → conductor-5OTVFON5.js} +5 -5
  27. package/dist/{conductor-6DIR7A4N.js → conductor-CVQJEAKE.js} +5 -5
  28. package/dist/{connected-teams-H4LZOJDC.js → connected-teams-2YDE2EZ2.js} +2 -2
  29. package/dist/{connected-teams-XYRZMQO4.js → connected-teams-6756SMAW.js} +2 -2
  30. package/dist/{coordinator-prompt-B6RHGEJK.js → coordinator-prompt-OD6VYETQ.js} +4 -4
  31. package/dist/{coordinator-prompt-KAZXK5FZ.js → coordinator-prompt-XU5KFYI5.js} +4 -4
  32. package/dist/{global-workspace-JKINHUY3.js → global-workspace-EW54B2P4.js} +4 -4
  33. package/dist/{global-workspace-IOKHZCXD.js → global-workspace-P2BW6MJ3.js} +4 -4
  34. package/dist/index.cjs +274 -166
  35. package/dist/index.js +15 -15
  36. package/dist/mcp/run-stdio.cjs +186 -147
  37. package/dist/mcp/run-stdio.js +10 -10
  38. package/dist/{optional-cli-FOSC4NVE.js → optional-cli-KWIII44P.js} +3 -3
  39. package/dist/{optional-cli-NSQZ2DYK.js → optional-cli-XJE4BELL.js} +4 -4
  40. package/dist/{orchestrator-EKG7FUFK.js → orchestrator-5X62LJ2T.js} +11 -11
  41. package/dist/{orchestrator-L44O3JPD.js → orchestrator-UKAXA5ZW.js} +10 -10
  42. package/dist/{run-7QMRYP3F.js → run-ARDGUXUN.js} +1 -1
  43. package/dist/{run-UPNCCRCN.js → run-ZKK3VGO5.js} +1 -1
  44. package/dist/{workspaces-OLONQF2C.js → workspaces-CB4SCKVH.js} +4 -4
  45. package/dist/{workspaces-FJL3TL3K.js → workspaces-OY7JIPDE.js} +4 -4
  46. package/dist/{worktree-TX4WXQZV.js → worktree-6WWUWH4K.js} +3 -3
  47. package/dist/{worktree-QSQJ2POO.js → worktree-N435EXSP.js} +3 -3
  48. package/dist/{worktree-exclude-P5NJODWP.js → worktree-exclude-KMZQXZKP.js} +2 -2
  49. package/dist/{worktree-exclude-INRDQFWV.js → worktree-exclude-YQBN43QD.js} +2 -2
  50. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  formatOptionalServicesDirectiveForTurn,
3
3
  formatOptionalServicesReminderForTurn
4
- } from "./chunk-7L36GZA4.js";
4
+ } from "./chunk-RCRDNOAT.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-DFKLWWLY.js";
24
+ } from "./chunk-3MOUHIA2.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-KUD24QYI.js";
58
+ } from "./chunk-EHZ24J7U.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-O7JSWISN.js";
101
+ } from "./chunk-5MJ7FCZ2.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-P4QRDXRY.js";
152
+ } from "./chunk-JJRTVB7D.js";
153
153
  import {
154
154
  REVIEW_TAB_TITLE,
155
155
  agentNicknameFromWorktreePath,
@@ -199,7 +199,7 @@ import {
199
199
  import {
200
200
  applyAgentRunnerHeapEnv,
201
201
  packagedMcpDir
202
- } from "./chunk-NURZOXGN.js";
202
+ } from "./chunk-UGUWFONI.js";
203
203
  import {
204
204
  fallbackTurnFailDetail,
205
205
  formatAgentErrorContinuePrompt,
@@ -222,7 +222,7 @@ import {
222
222
  gh,
223
223
  git,
224
224
  resolveGitDirsForLockRecovery
225
- } from "./chunk-2TUE6JKQ.js";
225
+ } from "./chunk-R4W4VQJZ.js";
226
226
  import {
227
227
  HISTORY_CLEANUP_INTERVAL_HOURS_DEFAULT,
228
228
  applyTurnUsage,
@@ -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-JKINHUY3.js");
520
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-EW54B2P4.js");
521
521
  if (isGlobalThread2(thread)) {
522
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-KAZXK5FZ.js");
522
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-XU5KFYI5.js");
523
523
  ensureGlobalCoordinatorCwd2(
524
524
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
525
525
  );
@@ -3383,7 +3383,7 @@ async function createThread(input, _onSetupLine) {
3383
3383
  return readThread(thread.id) ?? thread;
3384
3384
  }
3385
3385
  async function listLinearIssues(agent, repoPath) {
3386
- const { getAdapter: getAdapter2 } = await import("./agents-JXQKHY7Q.js");
3386
+ const { getAdapter: getAdapter2 } = await import("./agents-5FB756FF.js");
3387
3387
  await requireAgent(agent, { requireLinear: true });
3388
3388
  const adapter = getAdapter2(agent);
3389
3389
  if (!adapter.listLinearIssues) {
@@ -4151,7 +4151,7 @@ async function adoptThread(input) {
4151
4151
  throw new Error(`Worktree not found: ${input.worktreePath}`);
4152
4152
  }
4153
4153
  const repoPath = await resolveRepoRoot(input.worktreePath);
4154
- const { stdout: branch } = await import("./run-7QMRYP3F.js").then(
4154
+ const { stdout: branch } = await import("./run-ARDGUXUN.js").then(
4155
4155
  ({ git: git2 }) => git2(["rev-parse", "--abbrev-ref", "HEAD"], input.worktreePath)
4156
4156
  );
4157
4157
  const thread = createEmptyThread({
@@ -4166,9 +4166,9 @@ async function adoptThread(input) {
4166
4166
  messages: input.messages ?? []
4167
4167
  });
4168
4168
  writeThread(thread);
4169
- const { addWorkspace: addWorkspace2 } = await import("./workspaces-OLONQF2C.js");
4169
+ const { addWorkspace: addWorkspace2 } = await import("./workspaces-CB4SCKVH.js");
4170
4170
  await addWorkspace2(repoPath);
4171
- const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-INRDQFWV.js");
4171
+ const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-YQBN43QD.js");
4172
4172
  await ensureWorktreeSideboardIgnored(input.worktreePath);
4173
4173
  return thread;
4174
4174
  }
@@ -5752,7 +5752,7 @@ async function confirmLand(thread, opts) {
5752
5752
  if (preview.dirty) {
5753
5753
  committed = await commitAll(thread.worktreePath, meta.commitMessage);
5754
5754
  }
5755
- const { git: git2 } = await import("./run-7QMRYP3F.js");
5755
+ const { git: git2 } = await import("./run-ARDGUXUN.js");
5756
5756
  const { stdout: headOut } = await git2(
5757
5757
  ["rev-parse", "--abbrev-ref", "HEAD"],
5758
5758
  thread.worktreePath,
@@ -7155,7 +7155,7 @@ function formatScheduledPrompt(name, prompt) {
7155
7155
  ${prompt}`;
7156
7156
  }
7157
7157
  async function defaultDeps() {
7158
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-EKG7FUFK.js");
7158
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-5X62LJ2T.js");
7159
7159
  const orch = getOrchestrator2();
7160
7160
  return {
7161
7161
  findThread: (id) => findThreadByRef(id),
@@ -9987,7 +9987,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
9987
9987
  await withRepoGitLock(thread.repoPath, async () => {
9988
9988
  await git(["worktree", "add", dest, thread.branchName], thread.repoPath);
9989
9989
  });
9990
- const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-INRDQFWV.js");
9990
+ const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-YQBN43QD.js");
9991
9991
  await ensureWorktreeSideboardIgnored(dest);
9992
9992
  }
9993
9993
  const restorePatch = {};
@@ -10093,7 +10093,7 @@ async function startOrchestration(opts) {
10093
10093
  sourceRef: "default",
10094
10094
  ...createOpts
10095
10095
  }).catch(async () => {
10096
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-TX4WXQZV.js");
10096
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-6WWUWH4K.js");
10097
10097
  const repo = await resolveRepoRoot2(repoPath);
10098
10098
  const def = await resolveDefaultBranch2(repo);
10099
10099
  return orch.createThread({
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-N2WW62LF.js";
6
6
  import {
7
7
  ensureWorktreeSideboardIgnored
8
- } from "./chunk-4YXZOXMT.js";
8
+ } from "./chunk-GK7H3SY7.js";
9
9
  import {
10
10
  gh,
11
11
  git,
@@ -16,7 +16,7 @@ import {
16
16
  materializeGithubAgentAuth,
17
17
  originCli,
18
18
  resolveGhAuthToken
19
- } from "./chunk-YBTSZ2SW.js";
19
+ } from "./chunk-TL2HK6LZ.js";
20
20
  import {
21
21
  allocateTeamName,
22
22
  listThreads,
@@ -4,22 +4,93 @@ import {
4
4
  resolveCommandBinarySync,
5
5
  run,
6
6
  withExportedPath
7
- } from "./chunk-2TUE6JKQ.js";
7
+ } from "./chunk-R4W4VQJZ.js";
8
8
  import {
9
9
  resolveAgentExecutable
10
10
  } from "./chunk-EY5BJAPV.js";
11
11
 
12
12
  // src/agents/install.ts
13
- import { existsSync } from "fs";
13
+ import { chmodSync, existsSync } from "fs";
14
+ import { join } from "path";
15
+
16
+ // src/agents/install-native.ts
17
+ var CLAUDE_NATIVE_INSTALL = "curl -fsSL https://claude.ai/install.sh | bash";
18
+ var OPENCODE_NATIVE_INSTALL = "curl -fsSL https://opencode.ai/install | bash";
19
+ async function installCurlScript(opts) {
20
+ const result = await run("bash", ["-c", opts.command], {
21
+ reject: false,
22
+ timeoutMs: 3e5
23
+ });
24
+ if (result.exitCode === 0) {
25
+ const binPath = await whichOnPath(opts.bin);
26
+ if (binPath) {
27
+ return {
28
+ ok: true,
29
+ command: opts.command,
30
+ exitCode: 0,
31
+ stdout: result.stdout,
32
+ stderr: result.stderr,
33
+ message: `Installed ${opts.label} \u2192 ${binPath}`
34
+ };
35
+ }
36
+ return {
37
+ ok: false,
38
+ command: opts.command,
39
+ exitCode: result.exitCode,
40
+ stdout: result.stdout,
41
+ stderr: result.stderr,
42
+ message: `${opts.label} installer finished, but \`${opts.bin}\` is not on PATH. Expected ${opts.expected}.`
43
+ };
44
+ }
45
+ const detail = result.stderr.trim() || result.stdout.trim();
46
+ try {
47
+ await openInSystemTerminal(opts.command);
48
+ return {
49
+ ok: false,
50
+ openedTerminal: true,
51
+ command: opts.command,
52
+ exitCode: result.exitCode,
53
+ stdout: result.stdout,
54
+ stderr: result.stderr,
55
+ message: `${opts.label} install failed (exit ${result.exitCode}). Opened Terminal with: ${opts.command}`
56
+ };
57
+ } catch {
58
+ return {
59
+ ok: false,
60
+ command: opts.command,
61
+ exitCode: result.exitCode,
62
+ stdout: result.stdout,
63
+ stderr: result.stderr,
64
+ message: detail ? `${opts.label} install failed (exit ${result.exitCode}). ${detail}` : `${opts.label} install failed (exit ${result.exitCode})`
65
+ };
66
+ }
67
+ }
68
+ function installClaudeNative() {
69
+ return installCurlScript({
70
+ command: CLAUDE_NATIVE_INSTALL,
71
+ bin: "claude",
72
+ label: "Claude Code",
73
+ expected: "~/.local/bin/claude"
74
+ });
75
+ }
76
+ function installOpenCodeNative() {
77
+ return installCurlScript({
78
+ command: OPENCODE_NATIVE_INSTALL,
79
+ bin: "opencode",
80
+ label: "OpenCode",
81
+ expected: "~/.opencode/bin/opencode"
82
+ });
83
+ }
84
+
85
+ // src/agents/install.ts
14
86
  var SETUP = {
15
87
  claude: {
16
88
  agent: "claude",
17
89
  kind: "cli",
18
- summary: "Install the Claude Code CLI, then complete login in a terminal.",
90
+ summary: "Install Claude Code, then complete login in a terminal.",
19
91
  docsUrl: "https://code.claude.com/docs/en/install",
20
- installCommand: "npm install -g @anthropic-ai/claude-code",
92
+ installCommand: CLAUDE_NATIVE_INSTALL,
21
93
  loginCommand: "claude auth login",
22
- npmPackage: "@anthropic-ai/claude-code",
23
94
  updateArgs: ["update"]
24
95
  },
25
96
  codex: {
@@ -35,12 +106,12 @@ var SETUP = {
35
106
  opencode: {
36
107
  agent: "opencode",
37
108
  kind: "cli",
38
- summary: "Install OpenCode (curl installer or npm), then authenticate providers.",
109
+ summary: "Install OpenCode, then authenticate providers.",
39
110
  docsUrl: "https://opencode.ai/docs",
40
- // Prefer the official installer; npm package name is opencode-ai.
41
- installCommand: "curl -fsSL https://opencode.ai/install | bash",
111
+ // npm package `opencode-ai` ships the same kind of non-executable native stub
112
+ // as Claude. The curl installer writes ~/.opencode/bin/opencode.
113
+ installCommand: OPENCODE_NATIVE_INSTALL,
42
114
  loginCommand: "opencode auth login",
43
- npmPackage: "opencode-ai@latest",
44
115
  updateArgs: ["upgrade"]
45
116
  },
46
117
  cursor: {
@@ -177,7 +248,17 @@ async function installNpmGlobalPackage(opts) {
177
248
  }
178
249
  }
179
250
  enrichPathWithNpmGlobalBin();
180
- const binPath = opts.cliBin ? await whichOnPath(opts.cliBin) : null;
251
+ const binPath = opts.cliBin ? await resolveCliAfterNpmInstall(opts.cliBin) : null;
252
+ if (opts.cliBin && !binPath) {
253
+ return {
254
+ ok: false,
255
+ command: opts.installCommand,
256
+ exitCode: 0,
257
+ stdout: result.stdout,
258
+ stderr: result.stderr,
259
+ message: `Installed ${opts.npmPackage}, but \`${opts.cliBin}\` is not on PATH.`
260
+ };
261
+ }
181
262
  return {
182
263
  ok: true,
183
264
  command: opts.installCommand,
@@ -185,9 +266,25 @@ async function installNpmGlobalPackage(opts) {
185
266
  stdout: result.stdout,
186
267
  stderr: result.stderr,
187
268
  // Library-only packages (`@cursor/sdk`) have no CLI to look for.
188
- message: !opts.cliBin ? `Installed ${opts.npmPackage}` : binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
269
+ message: !opts.cliBin ? `Installed ${opts.npmPackage}` : `Installed ${opts.npmPackage} \u2192 ${binPath}`
189
270
  };
190
271
  }
272
+ async function resolveCliAfterNpmInstall(cliBin) {
273
+ const found = await whichOnPath(cliBin);
274
+ if (found) return found;
275
+ const prefix = await run("npm", ["prefix", "-g"], { reject: false, timeoutMs: 8e3 });
276
+ if (prefix.exitCode !== 0) return null;
277
+ const root = prefix.stdout.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.startsWith("/")).pop();
278
+ if (!root) return null;
279
+ const candidate = join(root, "bin", cliBin);
280
+ if (!existsSync(candidate)) return null;
281
+ try {
282
+ chmodSync(candidate, 493);
283
+ } catch {
284
+ }
285
+ enrichPathWithNpmGlobalBin();
286
+ return whichOnPath(cliBin);
287
+ }
191
288
  async function resolveExistingCli(agent) {
192
289
  if (agent === "cursor") return null;
193
290
  const exe = resolveAgentExecutable(agent);
@@ -230,6 +327,8 @@ async function installAgent(agent) {
230
327
  if (existing && info.updateArgs?.length) {
231
328
  return runVendorUpdate(existing, info.updateArgs);
232
329
  }
330
+ if (agent === "claude") return installClaudeNative();
331
+ if (agent === "opencode") return installOpenCodeNative();
233
332
  if (info.npmPackage && !isCurlInstaller(info.installCommand)) {
234
333
  const cliBin = agent === "cursor" ? null : CLI_BIN[agent];
235
334
  return installNpmGlobalPackage({
@@ -12,6 +12,8 @@ import { homedir } from "os";
12
12
  import { delimiter, join } from "path";
13
13
  var EXTRA_BIN_DIRS = [
14
14
  ".local/bin",
15
+ // Official OpenCode installer (`curl https://opencode.ai/install | bash`).
16
+ ".opencode/bin",
15
17
  ".cargo/bin",
16
18
  ".nvm/current/bin",
17
19
  ".asdf/shims",
@@ -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-NSQZ2DYK.js");
276
+ const { optionalCliPresence } = await import("./optional-cli-XJE4BELL.js");
277
277
  return await optionalCliPresence(ids);
278
278
  } catch {
279
279
  return void 0;
@@ -14,6 +14,8 @@ import { homedir } from "os";
14
14
  import { delimiter, join } from "path";
15
15
  var EXTRA_BIN_DIRS = [
16
16
  ".local/bin",
17
+ // Official OpenCode installer (`curl https://opencode.ai/install | bash`).
18
+ ".opencode/bin",
17
19
  ".cargo/bin",
18
20
  ".nvm/current/bin",
19
21
  ".asdf/shims",
@@ -7,7 +7,7 @@ import {
7
7
  resolveGithubRepoSlug,
8
8
  resolveOriginRemote,
9
9
  resolveRepoRoot
10
- } from "./chunk-U7EANR52.js";
10
+ } from "./chunk-P7S3XGKL.js";
11
11
  import {
12
12
  ATTACHMENTS_DIR,
13
13
  attachmentsGitignoreBody
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  npmGlobalNodeModules,
7
7
  run
8
- } from "./chunk-2TUE6JKQ.js";
8
+ } from "./chunk-R4W4VQJZ.js";
9
9
  import {
10
10
  isElectronLikeCommand,
11
11
  wrapElectronAsNodeLaunch
@@ -2,14 +2,14 @@ import {
2
2
  OPTIONAL_SERVICES,
3
3
  isOptionalServiceId,
4
4
  optionalServiceSpec
5
- } from "./chunk-7L36GZA4.js";
5
+ } from "./chunk-RCRDNOAT.js";
6
6
  import {
7
7
  installNpmGlobalPackage,
8
8
  whichOnPath
9
- } from "./chunk-XOIJJRAQ.js";
9
+ } from "./chunk-QNKJCD7B.js";
10
10
  import {
11
11
  enrichPathWithNpmGlobalBin
12
- } from "./chunk-2TUE6JKQ.js";
12
+ } from "./chunk-R4W4VQJZ.js";
13
13
 
14
14
  // src/integrations/optional-cli.ts
15
15
  async function detectOptionalServiceClis() {
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-RSA47QYR.js";
9
9
  import {
10
10
  run
11
- } from "./chunk-2TUE6JKQ.js";
11
+ } from "./chunk-R4W4VQJZ.js";
12
12
  import {
13
13
  appDataDir
14
14
  } from "./chunk-H4UEFJRI.js";
@@ -19,7 +19,7 @@ import { join } from "path";
19
19
 
20
20
  // src/brightsy/accounts.ts
21
21
  async function loadConnectedTeams() {
22
- const { listConnectedBrightsyTeams: listConnectedBrightsyTeams2 } = await import("./connected-teams-H4LZOJDC.js");
22
+ const { listConnectedBrightsyTeams: listConnectedBrightsyTeams2 } = await import("./connected-teams-2YDE2EZ2.js");
23
23
  return listConnectedBrightsyTeams2();
24
24
  }
25
25
  async function runBrightsyTeamsJson(args) {
@@ -48,14 +48,14 @@ async function listBrightsyAccounts() {
48
48
  async function getBrightsySession() {
49
49
  try {
50
50
  const { ensureBrightsyLocalConfigFresh: ensureBrightsyLocalConfigFresh2 } = await import("./oauth-CR5FY4CJ.js");
51
- const { ensureConnectedBrightsyTeamTokens: ensureConnectedBrightsyTeamTokens2 } = await import("./connected-teams-H4LZOJDC.js");
51
+ const { ensureConnectedBrightsyTeamTokens: ensureConnectedBrightsyTeamTokens2 } = await import("./connected-teams-2YDE2EZ2.js");
52
52
  await ensureBrightsyLocalConfigFresh2();
53
53
  await ensureConnectedBrightsyTeamTokens2();
54
54
  loadBrightsyConfig();
55
55
  const data = await runBrightsyTeamsJson([]);
56
56
  const accounts = Array.isArray(data.teams) ? data.teams : [];
57
57
  const active = data.active ?? accounts.find((a) => a.active) ?? null;
58
- const { ensureCliTeamTracked: ensureCliTeamTracked2 } = await import("./connected-teams-H4LZOJDC.js");
58
+ const { ensureCliTeamTracked: ensureCliTeamTracked2 } = await import("./connected-teams-2YDE2EZ2.js");
59
59
  const connectedTeams = ensureCliTeamTracked2(
60
60
  active ? { id: active.id, slug: active.slug, name: active.name } : void 0
61
61
  );
@@ -95,7 +95,7 @@ async function performBrightsyAccountSwitch(accountIdOrSlug) {
95
95
  return { cfg, target: data.active };
96
96
  }
97
97
  async function switchBrightsyAccount(accountIdOrSlug) {
98
- const { connectBrightsyTeam: connectBrightsyTeam2 } = await import("./connected-teams-H4LZOJDC.js");
98
+ const { connectBrightsyTeam: connectBrightsyTeam2 } = await import("./connected-teams-2YDE2EZ2.js");
99
99
  await connectBrightsyTeam2(accountIdOrSlug);
100
100
  return getBrightsySession();
101
101
  }
@@ -32,18 +32,18 @@ import {
32
32
  tryReservePort,
33
33
  tryReservePorts,
34
34
  worktreeRunPortsPath
35
- } from "./chunk-KUD24QYI.js";
35
+ } from "./chunk-EHZ24J7U.js";
36
36
  import "./chunk-OOXRMTU6.js";
37
- import "./chunk-O7JSWISN.js";
38
- import "./chunk-P4QRDXRY.js";
37
+ import "./chunk-5MJ7FCZ2.js";
38
+ import "./chunk-JJRTVB7D.js";
39
39
  import "./chunk-QVLDZWHZ.js";
40
- import "./chunk-QKHEVSB5.js";
40
+ import "./chunk-BMRJNRQK.js";
41
41
  import "./chunk-NJV5YEKI.js";
42
42
  import "./chunk-N6ZF3XRP.js";
43
43
  import "./chunk-OPXEJJBM.js";
44
44
  import "./chunk-6K64FJDD.js";
45
45
  import "./chunk-LG6RJBIY.js";
46
- import "./chunk-2TUE6JKQ.js";
46
+ import "./chunk-R4W4VQJZ.js";
47
47
  import "./chunk-EY5BJAPV.js";
48
48
  import {
49
49
  stripNestedElectronEnv
@@ -34,13 +34,13 @@ import {
34
34
  tryReservePort,
35
35
  tryReservePorts,
36
36
  worktreeRunPortsPath
37
- } from "./chunk-PZ5MVD27.js";
37
+ } from "./chunk-5G5DTQ5N.js";
38
38
  import "./chunk-5MXLDDYF.js";
39
- import "./chunk-G45SGI57.js";
40
- import "./chunk-U7EANR52.js";
39
+ import "./chunk-UEPTL7UG.js";
40
+ import "./chunk-P7S3XGKL.js";
41
41
  import "./chunk-N2WW62LF.js";
42
- import "./chunk-4YXZOXMT.js";
43
- import "./chunk-YBTSZ2SW.js";
42
+ import "./chunk-GK7H3SY7.js";
43
+ import "./chunk-TL2HK6LZ.js";
44
44
  import "./chunk-EW5D53VB.js";
45
45
  import "./chunk-WMZIANPV.js";
46
46
  import "./chunk-7BAS6DF7.js";
@@ -8,10 +8,10 @@ import {
8
8
  ensureConnectedBrightsyTeamTokens,
9
9
  getConnectedBrightsyTeamsRaw,
10
10
  listConnectedBrightsyTeams
11
- } from "./chunk-S5CJUIPY.js";
11
+ } from "./chunk-XOEKCE6L.js";
12
12
  import "./chunk-RSA47QYR.js";
13
13
  import "./chunk-JAT3JFOS.js";
14
- import "./chunk-2TUE6JKQ.js";
14
+ import "./chunk-R4W4VQJZ.js";
15
15
  import "./chunk-4TR3HZFT.js";
16
16
  import "./chunk-H4UEFJRI.js";
17
17
  export {
@@ -10,10 +10,10 @@ import {
10
10
  ensureConnectedBrightsyTeamTokens,
11
11
  getConnectedBrightsyTeamsRaw,
12
12
  listConnectedBrightsyTeams
13
- } from "./chunk-6U6QRUHY.js";
13
+ } from "./chunk-I6RGRUNY.js";
14
14
  import "./chunk-E63AM3PW.js";
15
15
  import "./chunk-2GPQZZLY.js";
16
- import "./chunk-YBTSZ2SW.js";
16
+ import "./chunk-TL2HK6LZ.js";
17
17
  import "./chunk-WWUABK6B.js";
18
18
  import "./chunk-WOU343SI.js";
19
19
  export {
@@ -9,11 +9,11 @@ import {
9
9
  enrichWorkspacesWithGithub,
10
10
  ensureGlobalCoordinatorCwd,
11
11
  formatWorkspaceInventory
12
- } from "./chunk-G45SGI57.js";
13
- import "./chunk-U7EANR52.js";
12
+ } from "./chunk-UEPTL7UG.js";
13
+ import "./chunk-P7S3XGKL.js";
14
14
  import "./chunk-N2WW62LF.js";
15
- import "./chunk-4YXZOXMT.js";
16
- import "./chunk-YBTSZ2SW.js";
15
+ import "./chunk-GK7H3SY7.js";
16
+ import "./chunk-TL2HK6LZ.js";
17
17
  import "./chunk-EW5D53VB.js";
18
18
  import "./chunk-WMZIANPV.js";
19
19
  import "./chunk-7BAS6DF7.js";
@@ -7,14 +7,14 @@ import {
7
7
  enrichWorkspacesWithGithub,
8
8
  ensureGlobalCoordinatorCwd,
9
9
  formatWorkspaceInventory
10
- } from "./chunk-O7JSWISN.js";
11
- import "./chunk-P4QRDXRY.js";
10
+ } from "./chunk-5MJ7FCZ2.js";
11
+ import "./chunk-JJRTVB7D.js";
12
12
  import "./chunk-QVLDZWHZ.js";
13
- import "./chunk-QKHEVSB5.js";
13
+ import "./chunk-BMRJNRQK.js";
14
14
  import "./chunk-N6ZF3XRP.js";
15
15
  import "./chunk-6K64FJDD.js";
16
16
  import "./chunk-LG6RJBIY.js";
17
- import "./chunk-2TUE6JKQ.js";
17
+ import "./chunk-R4W4VQJZ.js";
18
18
  import "./chunk-EY5BJAPV.js";
19
19
  import "./chunk-4TR3HZFT.js";
20
20
  import "./chunk-WDRMZKVB.js";
@@ -18,14 +18,14 @@ import {
18
18
  remoteCoordinatorSourceRef,
19
19
  slackCoordinatorSourceRef,
20
20
  takenTeamSlugsForOrchestration
21
- } from "./chunk-O7JSWISN.js";
22
- import "./chunk-P4QRDXRY.js";
21
+ } from "./chunk-5MJ7FCZ2.js";
22
+ import "./chunk-JJRTVB7D.js";
23
23
  import "./chunk-QVLDZWHZ.js";
24
- import "./chunk-QKHEVSB5.js";
24
+ import "./chunk-BMRJNRQK.js";
25
25
  import "./chunk-N6ZF3XRP.js";
26
26
  import "./chunk-6K64FJDD.js";
27
27
  import "./chunk-LG6RJBIY.js";
28
- import "./chunk-2TUE6JKQ.js";
28
+ import "./chunk-R4W4VQJZ.js";
29
29
  import "./chunk-EY5BJAPV.js";
30
30
  import "./chunk-4TR3HZFT.js";
31
31
  import "./chunk-WDRMZKVB.js";
@@ -20,11 +20,11 @@ import {
20
20
  remoteCoordinatorSourceRef,
21
21
  slackCoordinatorSourceRef,
22
22
  takenTeamSlugsForOrchestration
23
- } from "./chunk-G45SGI57.js";
24
- import "./chunk-U7EANR52.js";
23
+ } from "./chunk-UEPTL7UG.js";
24
+ import "./chunk-P7S3XGKL.js";
25
25
  import "./chunk-N2WW62LF.js";
26
- import "./chunk-4YXZOXMT.js";
27
- import "./chunk-YBTSZ2SW.js";
26
+ import "./chunk-GK7H3SY7.js";
27
+ import "./chunk-TL2HK6LZ.js";
28
28
  import "./chunk-EW5D53VB.js";
29
29
  import "./chunk-WMZIANPV.js";
30
30
  import "./chunk-7BAS6DF7.js";