@sideboard-ai/core 0.1.62 → 0.1.67

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 (43) hide show
  1. package/dist/{agents-KF3J3C53.js → agents-OTBZVTZO.js} +27 -7
  2. package/dist/{agents-QLSFIQAO.js → agents-TS3EI2YI.js} +27 -7
  3. package/dist/{app-settings-LTSFG7QJ.js → app-settings-GJVZGU3M.js} +13 -3
  4. package/dist/{app-settings-HK4KAM4R.js → app-settings-ONKMFSEJ.js} +13 -3
  5. package/dist/{chunk-UGXSSBFJ.js → chunk-4BUCGNZS.js} +1 -1
  6. package/dist/chunk-4UIYN56C.js +173 -0
  7. package/dist/{chunk-NVU7EC2E.js → chunk-57WWNMFP.js} +2 -2
  8. package/dist/{chunk-A6FOKNOU.js → chunk-5HTTCYWA.js} +2 -2
  9. package/dist/{chunk-DXTGDXO2.js → chunk-7ZOQY4A7.js} +31 -6
  10. package/dist/{chunk-ZF5YJCXO.js → chunk-B4PRRKMA.js} +284 -93
  11. package/dist/{chunk-DDN3UF4R.js → chunk-BPOTVI5J.js} +115 -3
  12. package/dist/{chunk-MBAL5FE6.js → chunk-DB3I75FI.js} +4 -4
  13. package/dist/chunk-FGDJOJ2L.js +176 -0
  14. package/dist/{chunk-2FEA4LDA.js → chunk-JWZNK3CQ.js} +31 -6
  15. package/dist/{chunk-2MCNURQV.js → chunk-K7LM4CLD.js} +279 -93
  16. package/dist/{chunk-3KKNTHUC.js → chunk-LW5CMQGZ.js} +1 -1
  17. package/dist/{chunk-JB2H7E7V.js → chunk-M5V4QIWF.js} +1 -1
  18. package/dist/{chunk-6CUJQKTJ.js → chunk-MHR4OGZ4.js} +115 -3
  19. package/dist/{chunk-46KMKHSD.js → chunk-WAFIF22N.js} +2 -2
  20. package/dist/{chunk-27MAWNKY.js → chunk-ZRFAZVGL.js} +2 -2
  21. package/dist/{connected-teams-MKIYKOYA.js → connected-teams-OMDHTL6A.js} +2 -2
  22. package/dist/{connected-teams-RSL4VB3X.js → connected-teams-RUNMOCG5.js} +2 -2
  23. package/dist/{coordinator-prompt-N2R6FGZK.js → coordinator-prompt-3BSMKZL4.js} +4 -4
  24. package/dist/{coordinator-prompt-LKG3SHMI.js → coordinator-prompt-6HMTOX4G.js} +4 -4
  25. package/dist/{global-workspace-LALWQWRJ.js → global-workspace-QS7A23CB.js} +5 -6
  26. package/dist/{global-workspace-YOAUQCMA.js → global-workspace-YZ2NJVLL.js} +5 -6
  27. package/dist/index.cjs +1345 -933
  28. package/dist/index.d.cts +96 -1
  29. package/dist/index.d.ts +96 -1
  30. package/dist/index.js +750 -715
  31. package/dist/mcp/run-stdio.cjs +1293 -977
  32. package/dist/mcp/run-stdio.js +691 -748
  33. package/dist/{run-GPSVV5OH.js → run-JLD2Y52J.js} +1 -1
  34. package/dist/{run-HZTBWGQR.js → run-Y2MI3EVV.js} +1 -1
  35. package/dist/{workspaces-E75POJXP.js → workspaces-AIUYUXB7.js} +6 -7
  36. package/dist/{workspaces-VCAIHVIE.js → workspaces-EBFW7I7S.js} +6 -7
  37. package/dist/{worktree-MV4WRW6G.js → worktree-7NBPIVFZ.js} +2 -2
  38. package/dist/{worktree-LZEGVQSN.js → worktree-WMDJW2BL.js} +2 -2
  39. package/package.json +1 -1
  40. package/dist/chunk-73AT5K4A.js +0 -104
  41. package/dist/chunk-GI7E5733.js +0 -30
  42. package/dist/chunk-RIWUU7FO.js +0 -107
  43. package/dist/chunk-S2LL5HA4.js +0 -33
@@ -10,7 +10,7 @@ import {
10
10
  gh,
11
11
  git,
12
12
  resolveGhAuthToken
13
- } from "./chunk-RIWUU7FO.js";
13
+ } from "./chunk-FGDJOJ2L.js";
14
14
  import {
15
15
  worktreesRoot
16
16
  } from "./chunk-7MV3RXSC.js";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  run
5
- } from "./chunk-RIWUU7FO.js";
5
+ } from "./chunk-FGDJOJ2L.js";
6
6
  import {
7
7
  appDataDir
8
8
  } from "./chunk-7MV3RXSC.js";
@@ -48,16 +48,33 @@ var CLOUD_CONNECT_AGENTS = /* @__PURE__ */ new Set([
48
48
  "opencode",
49
49
  "cursor"
50
50
  ]);
51
+ function normalizeCliExecutable(raw) {
52
+ if (!raw || typeof raw !== "object") return {};
53
+ const source = raw;
54
+ const out = {};
55
+ if (typeof source.executablePath === "string") {
56
+ const path = source.executablePath.trim();
57
+ if (path) out.executablePath = path;
58
+ }
59
+ return out;
60
+ }
51
61
  function normalizeBrightsy(raw) {
52
62
  if (!raw || typeof raw !== "object") return {};
53
63
  const source = raw;
54
64
  const out = {};
65
+ if (typeof source.executablePath === "string") {
66
+ const path = source.executablePath.trim();
67
+ if (path) out.executablePath = path;
68
+ }
55
69
  if (typeof source.cloudConnectEnabled === "boolean") {
56
70
  out.cloudConnectEnabled = source.cloudConnectEnabled;
57
71
  }
58
72
  if (typeof source.cloudConnectAgent === "string" && CLOUD_CONNECT_AGENTS.has(source.cloudConnectAgent)) {
59
73
  out.cloudConnectAgent = source.cloudConnectAgent;
60
74
  }
75
+ if (typeof source.injectWorktreeMcp === "boolean") {
76
+ out.injectWorktreeMcp = source.injectWorktreeMcp;
77
+ }
61
78
  return out;
62
79
  }
63
80
  var ISSUE_SOURCES = /* @__PURE__ */ new Set(["linear", "github"]);
@@ -144,6 +161,8 @@ function normalizeAdvanced(raw) {
144
161
  function normalizeSettings(raw) {
145
162
  const env = {};
146
163
  let claude = {};
164
+ let codex = {};
165
+ let opencode = {};
147
166
  let brightsy = {};
148
167
  let integrations = {};
149
168
  let defaults = {};
@@ -162,6 +181,12 @@ function normalizeSettings(raw) {
162
181
  if ("claude" in raw) {
163
182
  claude = normalizeClaude(raw.claude);
164
183
  }
184
+ if ("codex" in raw) {
185
+ codex = normalizeCliExecutable(raw.codex);
186
+ }
187
+ if ("opencode" in raw) {
188
+ opencode = normalizeCliExecutable(raw.opencode);
189
+ }
165
190
  if ("brightsy" in raw) {
166
191
  brightsy = normalizeBrightsy(raw.brightsy);
167
192
  }
@@ -177,11 +202,22 @@ function normalizeSettings(raw) {
177
202
  advanced = normalizeAdvanced(raw.advanced);
178
203
  }
179
204
  }
180
- return { environment: env, claude, brightsy, integrations, defaults, advanced };
205
+ return {
206
+ environment: env,
207
+ claude,
208
+ codex,
209
+ opencode,
210
+ brightsy,
211
+ integrations,
212
+ defaults,
213
+ advanced
214
+ };
181
215
  }
182
216
  var EMPTY_SETTINGS = {
183
217
  environment: {},
184
218
  claude: {},
219
+ codex: {},
220
+ opencode: {},
185
221
  brightsy: {},
186
222
  integrations: {},
187
223
  defaults: {},
@@ -238,6 +274,13 @@ function updateClaudeSettings(patch) {
238
274
  function updateBrightsySettings(patch) {
239
275
  const current = loadAppSettings();
240
276
  const brightsy = { ...current.brightsy };
277
+ if ("executablePath" in patch) {
278
+ if (patch.executablePath == null || patch.executablePath.trim() === "") {
279
+ delete brightsy.executablePath;
280
+ } else {
281
+ brightsy.executablePath = patch.executablePath.trim();
282
+ }
283
+ }
241
284
  if (typeof patch.cloudConnectEnabled === "boolean") {
242
285
  brightsy.cloudConnectEnabled = patch.cloudConnectEnabled;
243
286
  }
@@ -248,8 +291,35 @@ function updateBrightsySettings(patch) {
248
291
  brightsy.cloudConnectAgent = patch.cloudConnectAgent;
249
292
  }
250
293
  }
294
+ if (typeof patch.injectWorktreeMcp === "boolean") {
295
+ brightsy.injectWorktreeMcp = patch.injectWorktreeMcp;
296
+ }
251
297
  return saveAppSettings({ ...current, brightsy });
252
298
  }
299
+ function updateCodexSettings(patch) {
300
+ const current = loadAppSettings();
301
+ const codex = { ...current.codex };
302
+ if ("executablePath" in patch) {
303
+ if (patch.executablePath == null || patch.executablePath.trim() === "") {
304
+ delete codex.executablePath;
305
+ } else {
306
+ codex.executablePath = patch.executablePath.trim();
307
+ }
308
+ }
309
+ return saveAppSettings({ ...current, codex });
310
+ }
311
+ function updateOpencodeSettings(patch) {
312
+ const current = loadAppSettings();
313
+ const opencode = { ...current.opencode };
314
+ if ("executablePath" in patch) {
315
+ if (patch.executablePath == null || patch.executablePath.trim() === "") {
316
+ delete opencode.executablePath;
317
+ } else {
318
+ opencode.executablePath = patch.executablePath.trim();
319
+ }
320
+ }
321
+ return saveAppSettings({ ...current, opencode });
322
+ }
253
323
  function updateIntegrationsSettings(patch) {
254
324
  const current = loadAppSettings();
255
325
  const integrations = { ...current.integrations };
@@ -357,6 +427,9 @@ function getLinearApiKey(settings = loadAppSettings()) {
357
427
  function brightsyCloudConnectEnabled(settings = loadAppSettings()) {
358
428
  return Boolean(settings.brightsy.cloudConnectEnabled);
359
429
  }
430
+ function brightsyInjectWorktreeMcpEnabled(settings = loadAppSettings()) {
431
+ return Boolean(settings.brightsy.injectWorktreeMcp);
432
+ }
360
433
  function brightsyCloudConnectAgent(settings = loadAppSettings()) {
361
434
  const fallback = settings.brightsy.cloudConnectAgent && CLOUD_CONNECT_AGENTS.has(settings.brightsy.cloudConnectAgent) ? settings.brightsy.cloudConnectAgent : "claude";
362
435
  const preferred = getDefaultAgent(settings);
@@ -451,8 +524,42 @@ function maxConcurrentAgents(settings = loadAppSettings()) {
451
524
  return 3;
452
525
  }
453
526
  function resolveClaudeExecutable(settings = loadAppSettings()) {
454
- const override = settings.claude.executablePath?.trim();
455
- return override || "claude";
527
+ return resolveAgentExecutable("claude", settings);
528
+ }
529
+ var DEFAULT_CLI_BIN = {
530
+ claude: "claude",
531
+ codex: "codex",
532
+ opencode: "opencode",
533
+ brightsy: "brightsy"
534
+ };
535
+ function resolveAgentExecutable(agent, settings = loadAppSettings()) {
536
+ const fallback = DEFAULT_CLI_BIN[agent];
537
+ if (agent === "claude") {
538
+ const override2 = settings.claude.executablePath?.trim();
539
+ return override2 || fallback;
540
+ }
541
+ if (agent === "codex") {
542
+ const override2 = settings.codex.executablePath?.trim();
543
+ return override2 || fallback;
544
+ }
545
+ if (agent === "opencode") {
546
+ const override2 = settings.opencode.executablePath?.trim();
547
+ return override2 || fallback;
548
+ }
549
+ const override = settings.brightsy.executablePath?.trim();
550
+ return override || fallback;
551
+ }
552
+ function updateAgentExecutable(agent, executablePath) {
553
+ if (agent === "claude") {
554
+ return updateClaudeSettings({ executablePath });
555
+ }
556
+ if (agent === "codex") {
557
+ return updateCodexSettings({ executablePath });
558
+ }
559
+ if (agent === "opencode") {
560
+ return updateOpencodeSettings({ executablePath });
561
+ }
562
+ return updateBrightsySettings({ executablePath });
456
563
  }
457
564
  function claudeChromeEnabled(settings = loadAppSettings()) {
458
565
  return Boolean(settings.claude.chromeEnabled);
@@ -490,6 +597,8 @@ export {
490
597
  updateAppEnvironment,
491
598
  updateClaudeSettings,
492
599
  updateBrightsySettings,
600
+ updateCodexSettings,
601
+ updateOpencodeSettings,
493
602
  updateIntegrationsSettings,
494
603
  updateDefaultsSettings,
495
604
  getDefaultAgent,
@@ -503,6 +612,7 @@ export {
503
612
  resolveEffectiveIssueSource,
504
613
  getLinearApiKey,
505
614
  brightsyCloudConnectEnabled,
615
+ brightsyInjectWorktreeMcpEnabled,
506
616
  brightsyCloudConnectAgent,
507
617
  updateAdvancedSettings,
508
618
  autoRenameBranchEnabled,
@@ -516,6 +626,8 @@ export {
516
626
  orchestrationQuotaFallbackAgent,
517
627
  maxConcurrentAgents,
518
628
  resolveClaudeExecutable,
629
+ resolveAgentExecutable,
630
+ updateAgentExecutable,
519
631
  claudeChromeEnabled,
520
632
  applyAppEnvironment,
521
633
  childEnvWithAppSettings,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  isGlobalRepoPath
3
- } from "./chunk-DXTGDXO2.js";
3
+ } from "./chunk-7ZOQY4A7.js";
4
4
  import {
5
5
  ensureGhPreferOrigin,
6
6
  resolveRepoRoot
7
- } from "./chunk-UGXSSBFJ.js";
7
+ } from "./chunk-4BUCGNZS.js";
8
8
  import {
9
9
  appDataDir
10
10
  } from "./chunk-M37RITA6.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveThreadDefaults
3
- } from "./chunk-6CUJQKTJ.js";
3
+ } from "./chunk-MHR4OGZ4.js";
4
4
  import {
5
5
  resolveGithubRepoSlug
6
- } from "./chunk-UGXSSBFJ.js";
6
+ } from "./chunk-4BUCGNZS.js";
7
7
  import {
8
8
  globalAgentCwd,
9
9
  sideboardReposDir
@@ -7,9 +7,9 @@ import {
7
7
  ensureConnectedBrightsyTeamTokens,
8
8
  getConnectedBrightsyTeamsRaw,
9
9
  listConnectedBrightsyTeams
10
- } from "./chunk-MBAL5FE6.js";
10
+ } from "./chunk-DB3I75FI.js";
11
11
  import "./chunk-M37RITA6.js";
12
- import "./chunk-73AT5K4A.js";
12
+ import "./chunk-4UIYN56C.js";
13
13
  export {
14
14
  applyConnectedTeamToCli,
15
15
  brightsyMcpServerName,
@@ -9,8 +9,8 @@ import {
9
9
  ensureConnectedBrightsyTeamTokens,
10
10
  getConnectedBrightsyTeamsRaw,
11
11
  listConnectedBrightsyTeams
12
- } from "./chunk-JB2H7E7V.js";
13
- import "./chunk-RIWUU7FO.js";
12
+ } from "./chunk-M5V4QIWF.js";
13
+ import "./chunk-FGDJOJ2L.js";
14
14
  import "./chunk-7MV3RXSC.js";
15
15
  export {
16
16
  applyConnectedTeamToCli,
@@ -6,14 +6,14 @@ import {
6
6
  enrichWorkspacesWithGithub,
7
7
  ensureGlobalCoordinatorCwd,
8
8
  formatWorkspaceInventory
9
- } from "./chunk-27MAWNKY.js";
10
- import "./chunk-6CUJQKTJ.js";
11
- import "./chunk-UGXSSBFJ.js";
9
+ } from "./chunk-ZRFAZVGL.js";
10
+ import "./chunk-MHR4OGZ4.js";
11
+ import "./chunk-4BUCGNZS.js";
12
12
  import "./chunk-FKOIHGKV.js";
13
13
  import "./chunk-FWJYLBO6.js";
14
14
  import "./chunk-77WWLBCI.js";
15
15
  import "./chunk-M37RITA6.js";
16
- import "./chunk-73AT5K4A.js";
16
+ import "./chunk-4UIYN56C.js";
17
17
  export {
18
18
  COORDINATOR_TOOL_PLAYBOOK,
19
19
  coordinatorGreenfieldPlaybook,
@@ -8,12 +8,12 @@ import {
8
8
  enrichWorkspacesWithGithub,
9
9
  ensureGlobalCoordinatorCwd,
10
10
  formatWorkspaceInventory
11
- } from "./chunk-NVU7EC2E.js";
12
- import "./chunk-3KKNTHUC.js";
11
+ } from "./chunk-57WWNMFP.js";
12
+ import "./chunk-LW5CMQGZ.js";
13
13
  import "./chunk-B3SJXYIJ.js";
14
14
  import "./chunk-7FD7COKE.js";
15
- import "./chunk-RIWUU7FO.js";
16
- import "./chunk-DDN3UF4R.js";
15
+ import "./chunk-FGDJOJ2L.js";
16
+ import "./chunk-BPOTVI5J.js";
17
17
  import "./chunk-KGZBYWZ3.js";
18
18
  import "./chunk-7MV3RXSC.js";
19
19
  export {
@@ -11,18 +11,17 @@ import {
11
11
  orchestrationTitleNeedsSoccerNickname,
12
12
  orchestratorSessionPoisonedByBuiltins,
13
13
  takenTeamSlugsForOrchestration
14
- } from "./chunk-DXTGDXO2.js";
15
- import "./chunk-GI7E5733.js";
16
- import "./chunk-27MAWNKY.js";
17
- import "./chunk-6CUJQKTJ.js";
18
- import "./chunk-UGXSSBFJ.js";
14
+ } from "./chunk-7ZOQY4A7.js";
15
+ import "./chunk-ZRFAZVGL.js";
16
+ import "./chunk-MHR4OGZ4.js";
17
+ import "./chunk-4BUCGNZS.js";
19
18
  import "./chunk-FKOIHGKV.js";
20
19
  import "./chunk-FWJYLBO6.js";
21
20
  import "./chunk-77WWLBCI.js";
22
21
  import {
23
22
  globalAgentCwd
24
23
  } from "./chunk-M37RITA6.js";
25
- import "./chunk-73AT5K4A.js";
24
+ import "./chunk-4UIYN56C.js";
26
25
  export {
27
26
  GLOBAL_WORKSPACE_ID,
28
27
  createGlobalChat,
@@ -13,14 +13,13 @@ import {
13
13
  orchestrationTitleNeedsSoccerNickname,
14
14
  orchestratorSessionPoisonedByBuiltins,
15
15
  takenTeamSlugsForOrchestration
16
- } from "./chunk-2FEA4LDA.js";
17
- import "./chunk-S2LL5HA4.js";
18
- import "./chunk-NVU7EC2E.js";
19
- import "./chunk-3KKNTHUC.js";
16
+ } from "./chunk-JWZNK3CQ.js";
17
+ import "./chunk-57WWNMFP.js";
18
+ import "./chunk-LW5CMQGZ.js";
20
19
  import "./chunk-B3SJXYIJ.js";
21
20
  import "./chunk-7FD7COKE.js";
22
- import "./chunk-RIWUU7FO.js";
23
- import "./chunk-DDN3UF4R.js";
21
+ import "./chunk-FGDJOJ2L.js";
22
+ import "./chunk-BPOTVI5J.js";
24
23
  import "./chunk-KGZBYWZ3.js";
25
24
  import {
26
25
  globalAgentCwd