@sideboard-ai/core 0.1.86 → 0.1.87

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 (51) hide show
  1. package/dist/agents/cursor-runner.cjs +23 -13
  2. package/dist/agents/cursor-runner.js +1 -1
  3. package/dist/{agents-HJ3Y2JN5.js → agents-V6PVSQYH.js} +8 -8
  4. package/dist/{agents-NDHD3VOL.js → agents-W5446HSV.js} +8 -8
  5. package/dist/{app-settings-PEXK5VEX.js → app-settings-F36ISTCF.js} +2 -2
  6. package/dist/{app-settings-K6RFCRF6.js → app-settings-HFINR3XG.js} +2 -2
  7. package/dist/{caffeinate-hold-EAZNWJBE.js → caffeinate-hold-I7SG6UQR.js} +2 -2
  8. package/dist/{caffeinate-hold-OHAUWOA6.js → caffeinate-hold-U3QJBV67.js} +2 -2
  9. package/dist/{chunk-HA2QTIWN.js → chunk-3MA6JH6G.js} +5 -5
  10. package/dist/{chunk-FWJYLBO6.js → chunk-3WA37BRI.js} +1 -1
  11. package/dist/{chunk-U4RZ3IQI.js → chunk-4PTN2LED.js} +5 -5
  12. package/dist/{chunk-RV6DBEDQ.js → chunk-7KDBDMNC.js} +1 -1
  13. package/dist/{chunk-ZN4NDAHV.js → chunk-A7LONVNO.js} +5 -5
  14. package/dist/{chunk-M37RITA6.js → chunk-B4R2VB2A.js} +164 -30
  15. package/dist/{chunk-6ZGTM2E7.js → chunk-CY45C3GA.js} +3 -3
  16. package/dist/{chunk-6K5VAPVR.js → chunk-DKHGWYWR.js} +1 -1
  17. package/dist/{chunk-IGEL6M4G.js → chunk-HBXQQ5TO.js} +3 -3
  18. package/dist/{chunk-7MV3RXSC.js → chunk-JL4SJ6V7.js} +137 -26
  19. package/dist/{chunk-7FD7COKE.js → chunk-JOF3XIEM.js} +1 -1
  20. package/dist/{chunk-OBHZKT2T.js → chunk-L63LLCTX.js} +3 -3
  21. package/dist/{chunk-MFF2RE3I.js → chunk-NZPGMNFC.js} +1 -1
  22. package/dist/{chunk-HHTHF5BQ.js → chunk-QSLE4VEM.js} +4 -4
  23. package/dist/{chunk-KE6QLNTJ.js → chunk-QWNROSRB.js} +6 -6
  24. package/dist/{chunk-45U4RQ74.js → chunk-R2EOZNQI.js} +3 -3
  25. package/dist/{chunk-AY53MPDE.js → chunk-TC2KY5G7.js} +1 -1
  26. package/dist/{chunk-4Y745GLN.js → chunk-U4GZKLIV.js} +6 -6
  27. package/dist/{chunk-EWKHP6DD.js → chunk-UVNXLTFB.js} +5 -5
  28. package/dist/{chunk-I3FRXL7J.js → chunk-XY6XXMAK.js} +1 -1
  29. package/dist/{connected-teams-BNBM7OIC.js → connected-teams-SWHJWK2A.js} +2 -2
  30. package/dist/{connected-teams-LSQ5TAZP.js → connected-teams-TLVKZPJP.js} +2 -2
  31. package/dist/{coordinator-prompt-HOMHBR2L.js → coordinator-prompt-EC3KQLN3.js} +5 -5
  32. package/dist/{coordinator-prompt-L65MIGCV.js → coordinator-prompt-PYRAXZN3.js} +5 -5
  33. package/dist/{cursor-recover-L5PNQUDT.js → cursor-recover-G34BYKL2.js} +1 -1
  34. package/dist/{cursor-recover-NNK7JPQM.js → cursor-recover-S5ORPW34.js} +1 -1
  35. package/dist/{global-workspace-VGKPYFE2.js → global-workspace-ICWOWUW6.js} +6 -6
  36. package/dist/{global-workspace-MXOLTUAR.js → global-workspace-T5IAJF4R.js} +6 -6
  37. package/dist/index.cjs +632 -525
  38. package/dist/index.d.cts +43 -9
  39. package/dist/index.d.ts +43 -9
  40. package/dist/index.js +212 -252
  41. package/dist/mcp/run-stdio.cjs +569 -489
  42. package/dist/mcp/run-stdio.js +184 -225
  43. package/dist/{paths-VPH3ITBK.js → paths-JQM2XRAD.js} +1 -1
  44. package/dist/{paths-2OFB7UJG.js → paths-TZX4L5X7.js} +1 -1
  45. package/dist/{thread-store-BUBR24YA.js → thread-store-V7NOOXKE.js} +2 -2
  46. package/dist/{thread-store-XTPFCJAI.js → thread-store-XAKWCV2E.js} +2 -2
  47. package/dist/{workspaces-2GZ2VNNU.js → workspaces-AJCAFW64.js} +7 -7
  48. package/dist/{workspaces-VWQ5YSND.js → workspaces-J4ULXOUH.js} +7 -7
  49. package/dist/{worktree-RFCCG23P.js → worktree-4Z2VSHAQ.js} +4 -4
  50. package/dist/{worktree-WZJ3CFEN.js → worktree-H57CCHWO.js} +4 -4
  51. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  appDataDir
5
- } from "./chunk-7MV3RXSC.js";
5
+ } from "./chunk-JL4SJ6V7.js";
6
6
  import {
7
7
  run
8
8
  } from "./chunk-3KETJKYA.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  isGlobalRepoPath
3
- } from "./chunk-U4RZ3IQI.js";
3
+ } from "./chunk-4PTN2LED.js";
4
4
  import {
5
5
  ensureGhPreferOrigin,
6
6
  resolveRepoRoot
7
- } from "./chunk-OBHZKT2T.js";
7
+ } from "./chunk-L63LLCTX.js";
8
8
  import {
9
9
  appDataDir
10
- } from "./chunk-M37RITA6.js";
10
+ } from "./chunk-B4R2VB2A.js";
11
11
 
12
12
  // src/store/workspaces.ts
13
13
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -4,17 +4,126 @@
4
4
  // src/store/paths.ts
5
5
  import { basename } from "path";
6
6
  import { homedir as homedir2 } from "os";
7
- import { join as join2 } from "path";
7
+ import { join as join4 } from "path";
8
8
  import { mkdirSync } from "fs";
9
9
 
10
10
  // src/hook/settings.ts
11
- import { existsSync, readFileSync } from "fs";
11
+ import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
12
12
  import { homedir } from "os";
13
- import { join } from "path";
13
+ import { join as join3 } from "path";
14
14
  import { parse as parseToml } from "smol-toml";
15
+
16
+ // src/hook/convention-setup.ts
17
+ import { existsSync, statSync } from "fs";
18
+ import { join } from "path";
19
+ var CONVENTION_SETUP_RELPATHS = [
20
+ "script/setup",
21
+ "bin/setup",
22
+ "scripts/setup.sh",
23
+ "scripts/setup"
24
+ ];
25
+ function isFile(path) {
26
+ try {
27
+ return statSync(path).isFile();
28
+ } catch {
29
+ return false;
30
+ }
31
+ }
32
+ function normPath(p) {
33
+ return p.replace(/\/+$/, "");
34
+ }
35
+ function findConventionSetup(worktreePath, repoPath) {
36
+ const roots = [
37
+ { root: worktreePath, where: "worktree" }
38
+ ];
39
+ if (repoPath && normPath(repoPath) !== normPath(worktreePath)) {
40
+ roots.push({ root: repoPath, where: "main repo" });
41
+ }
42
+ for (const { root, where } of roots) {
43
+ for (const relPath of CONVENTION_SETUP_RELPATHS) {
44
+ const absPath = join(root, relPath);
45
+ if (!existsSync(absPath) || !isFile(absPath)) continue;
46
+ return {
47
+ relPath,
48
+ absPath,
49
+ command: `bash ${JSON.stringify(absPath)}`,
50
+ source: `${relPath} (${where})`
51
+ };
52
+ }
53
+ }
54
+ return null;
55
+ }
56
+
57
+ // src/hook/cursor-worktrees.ts
58
+ import { existsSync as existsSync2, readFileSync } from "fs";
59
+ import { join as join2 } from "path";
60
+ import { execa } from "execa";
61
+ import { createInterface } from "readline";
62
+ function loadCursorWorktreesJson(rootPath) {
63
+ const path = join2(rootPath, ".cursor", "worktrees.json");
64
+ if (!existsSync2(path)) return null;
65
+ try {
66
+ return JSON.parse(readFileSync(path, "utf8"));
67
+ } catch {
68
+ return null;
69
+ }
70
+ }
71
+ function resolveSetupSpec(config) {
72
+ if (process.platform === "win32") {
73
+ return config["setup-worktree-windows"] ?? config["setup-worktree"] ?? null;
74
+ }
75
+ return config["setup-worktree-unix"] ?? config["setup-worktree"] ?? null;
76
+ }
77
+ async function runCursorWorktreeSetup(repoPath, worktreePath, onLine) {
78
+ const fromWorktree = loadCursorWorktreesJson(worktreePath);
79
+ const fromRepo = worktreePath !== repoPath ? loadCursorWorktreesJson(repoPath) : null;
80
+ const config = fromWorktree ?? fromRepo;
81
+ if (!config) return { ran: false, exitCode: null, source: null };
82
+ const spec = resolveSetupSpec(config);
83
+ if (!spec) return { ran: false, exitCode: null, source: null };
84
+ const sourceLabel = fromWorktree ? ".cursor/worktrees.json (worktree)" : ".cursor/worktrees.json (main repo)";
85
+ const env = {
86
+ ...process.env,
87
+ ROOT_WORKTREE_PATH: repoPath
88
+ };
89
+ if (process.platform === "win32") {
90
+ env.ROOT_WORKTREE_PATH = repoPath;
91
+ }
92
+ const commands = Array.isArray(spec) ? spec : [spec.endsWith(".sh") || spec.endsWith(".ps1") ? join2(
93
+ fromWorktree ? worktreePath : repoPath,
94
+ ".cursor",
95
+ spec
96
+ ) : spec];
97
+ let lastExit = 0;
98
+ for (const command of commands) {
99
+ const isScriptPath = typeof spec === "string" && (spec.endsWith(".sh") || spec.endsWith(".ps1"));
100
+ const shell = process.platform === "win32" ? "powershell" : "bash";
101
+ const args = process.platform === "win32" ? isScriptPath ? ["-File", command] : ["-Command", command] : isScriptPath ? [command] : ["-lc", command];
102
+ onLine?.(`[cursor setup] ${command}`);
103
+ const child = execa(shell, args, {
104
+ cwd: worktreePath,
105
+ reject: false,
106
+ env
107
+ });
108
+ if (child.stdout && onLine) {
109
+ const rl = createInterface({ input: child.stdout });
110
+ rl.on("line", onLine);
111
+ }
112
+ if (child.stderr && onLine) {
113
+ const rl = createInterface({ input: child.stderr });
114
+ rl.on("line", onLine);
115
+ }
116
+ const result = await child;
117
+ lastExit = result.exitCode ?? null;
118
+ if (lastExit !== 0 && lastExit !== null) break;
119
+ }
120
+ return { ran: true, exitCode: lastExit, source: sourceLabel };
121
+ }
122
+
123
+ // src/hook/settings.ts
15
124
  function expandHome(path) {
16
125
  if (path.startsWith("~/") || path === "~") {
17
- return join(homedir(), path.slice(2));
126
+ return join3(homedir(), path.slice(2));
18
127
  }
19
128
  return path;
20
129
  }
@@ -27,8 +136,8 @@ function parseAvailableIn(raw) {
27
136
  return out.length ? out : void 0;
28
137
  }
29
138
  function parseSettingsFile(path, source) {
30
- if (!existsSync(path)) return null;
31
- const raw = readFileSync(path, "utf8");
139
+ if (!existsSync3(path)) return null;
140
+ const raw = readFileSync2(path, "utf8");
32
141
  const data = parseToml(raw);
33
142
  const scripts = data.scripts ?? {};
34
143
  const setup = typeof scripts.setup === "string" ? scripts.setup : void 0;
@@ -131,15 +240,15 @@ function finalizeSettings(parsed) {
131
240
  };
132
241
  }
133
242
  function familyFiles(rootPath, source) {
134
- const dir = join(rootPath, `.${source}`);
243
+ const dir = join3(rootPath, `.${source}`);
135
244
  return {
136
- toml: join(dir, "settings.toml"),
137
- local: join(dir, "settings.local.toml")
245
+ toml: join3(dir, "settings.toml"),
246
+ local: join3(dir, "settings.local.toml")
138
247
  };
139
248
  }
140
249
  function familyExists(rootPath, source) {
141
250
  const files = familyFiles(rootPath, source);
142
- return existsSync(files.toml) || existsSync(files.local);
251
+ return existsSync3(files.toml) || existsSync3(files.local);
143
252
  }
144
253
  function detectFamily(rootPath) {
145
254
  if (familyExists(rootPath, "sideboard")) return "sideboard";
@@ -158,7 +267,7 @@ function loadAnyLocal(rootPath) {
158
267
  loadLocalToml(rootPath, "sideboard")
159
268
  );
160
269
  }
161
- function normPath(p) {
270
+ function normPath2(p) {
162
271
  return p.replace(/\/+$/, "");
163
272
  }
164
273
  function loadRepoSettings(repoPath) {
@@ -172,11 +281,11 @@ function loadRepoSettings(repoPath) {
172
281
  }
173
282
  function loadWorkspaceSettings(worktreePath, repoPath) {
174
283
  const wtFamily = detectFamily(worktreePath);
175
- const repoFamily = repoPath && normPath(repoPath) !== normPath(worktreePath) ? detectFamily(repoPath) : null;
284
+ const repoFamily = repoPath && normPath2(repoPath) !== normPath2(worktreePath) ? detectFamily(repoPath) : null;
176
285
  const wtToml = wtFamily ? loadCommittedToml(worktreePath, wtFamily) : null;
177
286
  const repoToml = repoPath && repoFamily ? loadCommittedToml(repoPath, repoFamily) : null;
178
287
  let merged = wtToml ?? repoToml;
179
- if (repoPath && normPath(repoPath) !== normPath(worktreePath)) {
288
+ if (repoPath && normPath2(repoPath) !== normPath2(worktreePath)) {
180
289
  merged = mergeSettings(merged, loadAnyLocal(repoPath));
181
290
  }
182
291
  merged = mergeSettings(merged, loadAnyLocal(worktreePath));
@@ -186,16 +295,16 @@ function settingsSourceLabel(rootPath) {
186
295
  const family = detectFamily(rootPath);
187
296
  if (!family) return null;
188
297
  const files = familyFiles(rootPath, family);
189
- if (existsSync(files.toml) && existsSync(files.local)) {
298
+ if (existsSync3(files.toml) && existsSync3(files.local)) {
190
299
  return `.${family}/settings.toml + local`;
191
300
  }
192
- if (existsSync(files.local)) return `.${family}/settings.local.toml`;
301
+ if (existsSync3(files.local)) return `.${family}/settings.local.toml`;
193
302
  return `.${family}/settings.toml`;
194
303
  }
195
304
  function workspaceSettingsSourceLabel(worktreePath, repoPath) {
196
305
  const wt = settingsSourceLabel(worktreePath);
197
306
  if (wt) return `${wt} (worktree)`;
198
- if (repoPath && normPath(repoPath) !== normPath(worktreePath)) {
307
+ if (repoPath && normPath2(repoPath) !== normPath2(worktreePath)) {
199
308
  const repo = settingsSourceLabel(repoPath);
200
309
  if (repo) return `${repo} (main repo)`;
201
310
  }
@@ -205,32 +314,32 @@ function workspaceSettingsSourceLabel(worktreePath, repoPath) {
205
314
  // src/store/paths.ts
206
315
  function appDataDir() {
207
316
  const override = process.env.SIDEBOARD_APP_DATA?.trim();
208
- const base = override ? override : process.platform === "darwin" ? join2(homedir2(), "Library", "Application Support", "sideboard") : process.platform === "win32" ? join2(process.env.APPDATA ?? join2(homedir2(), "AppData", "Roaming"), "sideboard") : join2(homedir2(), ".local", "share", "sideboard");
317
+ const base = override ? override : process.platform === "darwin" ? join4(homedir2(), "Library", "Application Support", "sideboard") : process.platform === "win32" ? join4(process.env.APPDATA ?? join4(homedir2(), "AppData", "Roaming"), "sideboard") : join4(homedir2(), ".local", "share", "sideboard");
209
318
  mkdirSync(base, { recursive: true });
210
319
  return base;
211
320
  }
212
321
  function threadsDir() {
213
- const dir = join2(appDataDir(), "threads");
322
+ const dir = join4(appDataDir(), "threads");
214
323
  mkdirSync(dir, { recursive: true });
215
324
  return dir;
216
325
  }
217
326
  function locksDir() {
218
- const dir = join2(appDataDir(), "locks");
327
+ const dir = join4(appDataDir(), "locks");
219
328
  mkdirSync(dir, { recursive: true });
220
329
  return dir;
221
330
  }
222
331
  function sideboardHomeDir() {
223
- const dir = join2(homedir2(), "sideboard");
332
+ const dir = join4(homedir2(), "sideboard");
224
333
  mkdirSync(dir, { recursive: true });
225
334
  return dir;
226
335
  }
227
336
  function sideboardReposDir() {
228
- const dir = join2(sideboardHomeDir(), "repos");
337
+ const dir = join4(sideboardHomeDir(), "repos");
229
338
  mkdirSync(dir, { recursive: true });
230
339
  return dir;
231
340
  }
232
341
  function sideboardWorkspacesDir() {
233
- const dir = join2(sideboardHomeDir(), "workspaces");
342
+ const dir = join4(sideboardHomeDir(), "workspaces");
234
343
  mkdirSync(dir, { recursive: true });
235
344
  return dir;
236
345
  }
@@ -243,23 +352,25 @@ function worktreesRoot(repoPath) {
243
352
  mkdirSync(settings.worktreesRoot, { recursive: true });
244
353
  return settings.worktreesRoot;
245
354
  }
246
- const dir = join2(sideboardWorkspacesDir(), repoSlug(repoPath));
355
+ const dir = join4(sideboardWorkspacesDir(), repoSlug(repoPath));
247
356
  mkdirSync(dir, { recursive: true });
248
357
  return dir;
249
358
  }
250
359
  function threadFilePath(id) {
251
- return join2(threadsDir(), `${id}.json`);
360
+ return join4(threadsDir(), `${id}.json`);
252
361
  }
253
362
  function threadLockPath(id) {
254
- return join2(locksDir(), `${id}.lock`);
363
+ return join4(locksDir(), `${id}.lock`);
255
364
  }
256
365
  function globalAgentCwd() {
257
- const dir = join2(appDataDir(), "global");
366
+ const dir = join4(appDataDir(), "global");
258
367
  mkdirSync(dir, { recursive: true });
259
368
  return dir;
260
369
  }
261
370
 
262
371
  export {
372
+ findConventionSetup,
373
+ runCursorWorktreeSetup,
263
374
  loadRepoSettings,
264
375
  loadWorkspaceSettings,
265
376
  workspaceSettingsSourceLabel,
@@ -7,7 +7,7 @@ import {
7
7
  threadFilePath,
8
8
  threadLockPath,
9
9
  threadsDir
10
- } from "./chunk-7MV3RXSC.js";
10
+ } from "./chunk-JL4SJ6V7.js";
11
11
 
12
12
  // src/store/thread-store.ts
13
13
  import { randomUUID } from "crypto";
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  getGithubGitAuthMode,
6
6
  getGithubPat
7
- } from "./chunk-I3FRXL7J.js";
7
+ } from "./chunk-XY6XXMAK.js";
8
8
  import {
9
9
  listThreads
10
- } from "./chunk-FWJYLBO6.js";
10
+ } from "./chunk-3WA37BRI.js";
11
11
  import {
12
12
  worktreesRoot
13
- } from "./chunk-M37RITA6.js";
13
+ } from "./chunk-B4R2VB2A.js";
14
14
  import {
15
15
  gh,
16
16
  git,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-JT7R45JB.js";
4
4
  import {
5
5
  appDataDir
6
- } from "./chunk-M37RITA6.js";
6
+ } from "./chunk-B4R2VB2A.js";
7
7
 
8
8
  // src/store/caffeinate-hold.ts
9
9
  import { spawn } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  appDataDir
3
- } from "./chunk-M37RITA6.js";
3
+ } from "./chunk-B4R2VB2A.js";
4
4
  import {
5
5
  run
6
6
  } from "./chunk-LGXBYZZA.js";
@@ -36,7 +36,7 @@ function saveBrightsyConfig(cfg) {
36
36
 
37
37
  // src/brightsy/accounts.ts
38
38
  async function loadConnectedTeams() {
39
- const { listConnectedBrightsyTeams: listConnectedBrightsyTeams2 } = await import("./connected-teams-BNBM7OIC.js");
39
+ const { listConnectedBrightsyTeams: listConnectedBrightsyTeams2 } = await import("./connected-teams-SWHJWK2A.js");
40
40
  return listConnectedBrightsyTeams2();
41
41
  }
42
42
  async function runBrightsyTeamsJson(args) {
@@ -68,7 +68,7 @@ async function getBrightsySession() {
68
68
  const data = await runBrightsyTeamsJson([]);
69
69
  const accounts = Array.isArray(data.teams) ? data.teams : [];
70
70
  const active = data.active ?? accounts.find((a) => a.active) ?? null;
71
- const { ensureCliTeamTracked: ensureCliTeamTracked2 } = await import("./connected-teams-BNBM7OIC.js");
71
+ const { ensureCliTeamTracked: ensureCliTeamTracked2 } = await import("./connected-teams-SWHJWK2A.js");
72
72
  const connectedTeams = ensureCliTeamTracked2(
73
73
  active ? { id: active.id, slug: active.slug, name: active.name } : void 0
74
74
  );
@@ -108,7 +108,7 @@ async function performBrightsyAccountSwitch(accountIdOrSlug) {
108
108
  return { cfg, target: data.active };
109
109
  }
110
110
  async function switchBrightsyAccount(accountIdOrSlug) {
111
- const { connectBrightsyTeam: connectBrightsyTeam2 } = await import("./connected-teams-BNBM7OIC.js");
111
+ const { connectBrightsyTeam: connectBrightsyTeam2 } = await import("./connected-teams-SWHJWK2A.js");
112
112
  await connectBrightsyTeam2(accountIdOrSlug);
113
113
  return getBrightsySession();
114
114
  }
@@ -6,14 +6,14 @@ import {
6
6
  ensureCliTeamTracked,
7
7
  ensureConnectedBrightsyTeamTokens,
8
8
  loadBrightsyConfig
9
- } from "./chunk-6K5VAPVR.js";
9
+ } from "./chunk-DKHGWYWR.js";
10
10
  import {
11
11
  isOrchestratorThread
12
- } from "./chunk-EWKHP6DD.js";
12
+ } from "./chunk-UVNXLTFB.js";
13
13
  import {
14
14
  codexUnattendedGitConfigArgs,
15
15
  resolveAgentGitAuthEnv
16
- } from "./chunk-6ZGTM2E7.js";
16
+ } from "./chunk-CY45C3GA.js";
17
17
  import {
18
18
  claudeChromeEnabled,
19
19
  isStrippedElectronLaunch,
@@ -21,10 +21,10 @@ import {
21
21
  resolveAgentExecutable,
22
22
  resolveClaudeExecutable,
23
23
  wrapElectronAsNodeLaunch
24
- } from "./chunk-AY53MPDE.js";
24
+ } from "./chunk-TC2KY5G7.js";
25
25
  import {
26
26
  appDataDir
27
- } from "./chunk-7MV3RXSC.js";
27
+ } from "./chunk-JL4SJ6V7.js";
28
28
  import {
29
29
  enrichPathWithNpmGlobalBin,
30
30
  isConductorBundledCli,
@@ -1100,7 +1100,7 @@ var claudeAdapter = {
1100
1100
  );
1101
1101
  }
1102
1102
  const mode = permissionMode(thread);
1103
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-MXOLTUAR.js");
1103
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-T5IAJF4R.js");
1104
1104
  const isOrchestrator = isOrchestratorThread2(thread);
1105
1105
  const injectedServers = await buildInjectedMcpServers({
1106
1106
  includeSideboard: true,
@@ -2,14 +2,14 @@
2
2
 
3
3
  import {
4
4
  isGlobalRepoPath
5
- } from "./chunk-EWKHP6DD.js";
5
+ } from "./chunk-UVNXLTFB.js";
6
6
  import {
7
7
  ensureGhPreferOrigin,
8
8
  resolveRepoRoot
9
- } from "./chunk-6ZGTM2E7.js";
9
+ } from "./chunk-CY45C3GA.js";
10
10
  import {
11
11
  appDataDir
12
- } from "./chunk-7MV3RXSC.js";
12
+ } from "./chunk-JL4SJ6V7.js";
13
13
 
14
14
  // src/store/workspaces.ts
15
15
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-KGZBYWZ3.js";
10
10
  import {
11
11
  appDataDir
12
- } from "./chunk-7MV3RXSC.js";
12
+ } from "./chunk-JL4SJ6V7.js";
13
13
 
14
14
  // src/store/app-settings.ts
15
15
  import { randomUUID } from "crypto";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  isOrchestratorThread
3
- } from "./chunk-U4RZ3IQI.js";
3
+ } from "./chunk-4PTN2LED.js";
4
4
  import {
5
5
  applyConnectedTeamToCli,
6
6
  brightsyMcpServerName,
7
7
  ensureCliTeamTracked,
8
8
  ensureConnectedBrightsyTeamTokens,
9
9
  loadBrightsyConfig
10
- } from "./chunk-HHTHF5BQ.js";
10
+ } from "./chunk-QSLE4VEM.js";
11
11
  import {
12
12
  extractJsonErrorMessage,
13
13
  formatUnknownDetail,
@@ -17,20 +17,20 @@ import {
17
17
  import {
18
18
  codexUnattendedGitConfigArgs,
19
19
  resolveAgentGitAuthEnv
20
- } from "./chunk-OBHZKT2T.js";
20
+ } from "./chunk-L63LLCTX.js";
21
21
  import {
22
22
  claudeChromeEnabled,
23
23
  loadAppSettings,
24
24
  resolveAgentExecutable,
25
25
  resolveClaudeExecutable
26
- } from "./chunk-I3FRXL7J.js";
26
+ } from "./chunk-XY6XXMAK.js";
27
27
  import {
28
28
  isStrippedElectronLaunch,
29
29
  wrapElectronAsNodeLaunch
30
30
  } from "./chunk-5KLC2MWZ.js";
31
31
  import {
32
32
  appDataDir
33
- } from "./chunk-M37RITA6.js";
33
+ } from "./chunk-B4R2VB2A.js";
34
34
  import {
35
35
  enrichPathWithNpmGlobalBin,
36
36
  isConductorBundledCli,
@@ -1025,7 +1025,7 @@ var claudeAdapter = {
1025
1025
  );
1026
1026
  }
1027
1027
  const mode = permissionMode(thread);
1028
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-VGKPYFE2.js");
1028
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-ICWOWUW6.js");
1029
1029
  const isOrchestrator = isOrchestratorThread2(thread);
1030
1030
  const injectedServers = await buildInjectedMcpServers({
1031
1031
  includeSideboard: true,
@@ -2,25 +2,25 @@
2
2
 
3
3
  import {
4
4
  ensureGlobalCoordinatorCwd
5
- } from "./chunk-HA2QTIWN.js";
5
+ } from "./chunk-3MA6JH6G.js";
6
6
  import {
7
7
  allocateTeamName,
8
8
  takenSlugsFromThread,
9
9
  teamSlugFromName
10
- } from "./chunk-6ZGTM2E7.js";
10
+ } from "./chunk-CY45C3GA.js";
11
11
  import {
12
12
  createEmptyThread,
13
13
  listThreads,
14
14
  updateThread,
15
15
  writeThread
16
- } from "./chunk-7FD7COKE.js";
16
+ } from "./chunk-JOF3XIEM.js";
17
17
  import {
18
18
  resolveNewThreadOptions,
19
19
  resolveThreadDefaults
20
- } from "./chunk-AY53MPDE.js";
20
+ } from "./chunk-TC2KY5G7.js";
21
21
  import {
22
22
  globalAgentCwd
23
- } from "./chunk-7MV3RXSC.js";
23
+ } from "./chunk-JL4SJ6V7.js";
24
24
 
25
25
  // src/brightsy/cloud-connect-constants.ts
26
26
  var CLOUD_ORCHESTRATOR_GOAL = "Cloud-connected Sideboard orchestrator";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-77WWLBCI.js";
11
11
  import {
12
12
  appDataDir
13
- } from "./chunk-M37RITA6.js";
13
+ } from "./chunk-B4R2VB2A.js";
14
14
 
15
15
  // src/store/app-settings.ts
16
16
  import { randomUUID } from "crypto";
@@ -7,8 +7,8 @@ import {
7
7
  ensureConnectedBrightsyTeamTokens,
8
8
  getConnectedBrightsyTeamsRaw,
9
9
  listConnectedBrightsyTeams
10
- } from "./chunk-HHTHF5BQ.js";
11
- import "./chunk-M37RITA6.js";
10
+ } from "./chunk-QSLE4VEM.js";
11
+ import "./chunk-B4R2VB2A.js";
12
12
  import "./chunk-LGXBYZZA.js";
13
13
  export {
14
14
  applyConnectedTeamToCli,
@@ -9,8 +9,8 @@ import {
9
9
  ensureConnectedBrightsyTeamTokens,
10
10
  getConnectedBrightsyTeamsRaw,
11
11
  listConnectedBrightsyTeams
12
- } from "./chunk-6K5VAPVR.js";
13
- import "./chunk-7MV3RXSC.js";
12
+ } from "./chunk-DKHGWYWR.js";
13
+ import "./chunk-JL4SJ6V7.js";
14
14
  import "./chunk-3KETJKYA.js";
15
15
  export {
16
16
  applyConnectedTeamToCli,
@@ -7,15 +7,15 @@ import {
7
7
  enrichWorkspacesWithGithub,
8
8
  ensureGlobalCoordinatorCwd,
9
9
  formatWorkspaceInventory
10
- } from "./chunk-ZN4NDAHV.js";
11
- import "./chunk-OBHZKT2T.js";
10
+ } from "./chunk-A7LONVNO.js";
11
+ import "./chunk-L63LLCTX.js";
12
12
  import "./chunk-FKOIHGKV.js";
13
- import "./chunk-I3FRXL7J.js";
13
+ import "./chunk-XY6XXMAK.js";
14
14
  import "./chunk-5KLC2MWZ.js";
15
15
  import "./chunk-JT7R45JB.js";
16
- import "./chunk-FWJYLBO6.js";
16
+ import "./chunk-3WA37BRI.js";
17
17
  import "./chunk-77WWLBCI.js";
18
- import "./chunk-M37RITA6.js";
18
+ import "./chunk-B4R2VB2A.js";
19
19
  import "./chunk-LGXBYZZA.js";
20
20
  export {
21
21
  COORDINATOR_TOOL_PLAYBOOK,
@@ -9,14 +9,14 @@ import {
9
9
  enrichWorkspacesWithGithub,
10
10
  ensureGlobalCoordinatorCwd,
11
11
  formatWorkspaceInventory
12
- } from "./chunk-HA2QTIWN.js";
13
- import "./chunk-6ZGTM2E7.js";
12
+ } from "./chunk-3MA6JH6G.js";
13
+ import "./chunk-CY45C3GA.js";
14
14
  import "./chunk-B3SJXYIJ.js";
15
- import "./chunk-7FD7COKE.js";
16
- import "./chunk-AY53MPDE.js";
15
+ import "./chunk-JOF3XIEM.js";
16
+ import "./chunk-TC2KY5G7.js";
17
17
  import "./chunk-NSTQ6QKD.js";
18
18
  import "./chunk-KGZBYWZ3.js";
19
- import "./chunk-7MV3RXSC.js";
19
+ import "./chunk-JL4SJ6V7.js";
20
20
  import "./chunk-3KETJKYA.js";
21
21
  export {
22
22
  COORDINATOR_TOOL_PLAYBOOK,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  appDataDir
3
- } from "./chunk-M37RITA6.js";
3
+ } from "./chunk-B4R2VB2A.js";
4
4
 
5
5
  // src/agents/cursor-recover.ts
6
6
  import { existsSync, readFileSync } from "fs";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  appDataDir
5
- } from "./chunk-7MV3RXSC.js";
5
+ } from "./chunk-JL4SJ6V7.js";
6
6
 
7
7
  // src/agents/cursor-recover.ts
8
8
  import { existsSync, readFileSync } from "fs";
@@ -14,18 +14,18 @@ import {
14
14
  orchestratorSessionPoisonedByBuiltins,
15
15
  slackCoordinatorSourceRef,
16
16
  takenTeamSlugsForOrchestration
17
- } from "./chunk-U4RZ3IQI.js";
18
- import "./chunk-ZN4NDAHV.js";
19
- import "./chunk-OBHZKT2T.js";
17
+ } from "./chunk-4PTN2LED.js";
18
+ import "./chunk-A7LONVNO.js";
19
+ import "./chunk-L63LLCTX.js";
20
20
  import "./chunk-FKOIHGKV.js";
21
- import "./chunk-I3FRXL7J.js";
21
+ import "./chunk-XY6XXMAK.js";
22
22
  import "./chunk-5KLC2MWZ.js";
23
23
  import "./chunk-JT7R45JB.js";
24
- import "./chunk-FWJYLBO6.js";
24
+ import "./chunk-3WA37BRI.js";
25
25
  import "./chunk-77WWLBCI.js";
26
26
  import {
27
27
  globalAgentCwd
28
- } from "./chunk-M37RITA6.js";
28
+ } from "./chunk-B4R2VB2A.js";
29
29
  import "./chunk-LGXBYZZA.js";
30
30
  export {
31
31
  GLOBAL_WORKSPACE_ID,