@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
@@ -3,7 +3,7 @@ import {
3
3
  git,
4
4
  resolveGhAuthToken,
5
5
  run
6
- } from "./chunk-73AT5K4A.js";
6
+ } from "./chunk-4UIYN56C.js";
7
7
  export {
8
8
  gh,
9
9
  git,
@@ -5,7 +5,7 @@ import {
5
5
  git,
6
6
  resolveGhAuthToken,
7
7
  run
8
- } from "./chunk-RIWUU7FO.js";
8
+ } from "./chunk-FGDJOJ2L.js";
9
9
  export {
10
10
  gh,
11
11
  git,
@@ -6,15 +6,14 @@ import {
6
6
  listWorkspaces,
7
7
  removeWorkspace,
8
8
  syncWorkspacesFromThreads
9
- } from "./chunk-A6FOKNOU.js";
10
- import "./chunk-2FEA4LDA.js";
11
- import "./chunk-S2LL5HA4.js";
12
- import "./chunk-NVU7EC2E.js";
13
- import "./chunk-3KKNTHUC.js";
9
+ } from "./chunk-5HTTCYWA.js";
10
+ import "./chunk-JWZNK3CQ.js";
11
+ import "./chunk-57WWNMFP.js";
12
+ import "./chunk-LW5CMQGZ.js";
14
13
  import "./chunk-B3SJXYIJ.js";
15
14
  import "./chunk-7FD7COKE.js";
16
- import "./chunk-RIWUU7FO.js";
17
- import "./chunk-DDN3UF4R.js";
15
+ import "./chunk-FGDJOJ2L.js";
16
+ import "./chunk-BPOTVI5J.js";
18
17
  import "./chunk-KGZBYWZ3.js";
19
18
  import "./chunk-7MV3RXSC.js";
20
19
  export {
@@ -4,17 +4,16 @@ import {
4
4
  listWorkspaces,
5
5
  removeWorkspace,
6
6
  syncWorkspacesFromThreads
7
- } from "./chunk-46KMKHSD.js";
8
- import "./chunk-DXTGDXO2.js";
9
- import "./chunk-GI7E5733.js";
10
- import "./chunk-27MAWNKY.js";
11
- import "./chunk-6CUJQKTJ.js";
12
- import "./chunk-UGXSSBFJ.js";
7
+ } from "./chunk-WAFIF22N.js";
8
+ import "./chunk-7ZOQY4A7.js";
9
+ import "./chunk-ZRFAZVGL.js";
10
+ import "./chunk-MHR4OGZ4.js";
11
+ import "./chunk-4BUCGNZS.js";
13
12
  import "./chunk-FKOIHGKV.js";
14
13
  import "./chunk-FWJYLBO6.js";
15
14
  import "./chunk-77WWLBCI.js";
16
15
  import "./chunk-M37RITA6.js";
17
- import "./chunk-73AT5K4A.js";
16
+ import "./chunk-4UIYN56C.js";
18
17
  export {
19
18
  addWorkspace,
20
19
  ensureWorkspace,
@@ -43,12 +43,12 @@ import {
43
43
  worktreeDisplayLabel,
44
44
  worktreeDisplayLabelForGroup,
45
45
  worktreeNameFromPath
46
- } from "./chunk-UGXSSBFJ.js";
46
+ } from "./chunk-4BUCGNZS.js";
47
47
  import "./chunk-FKOIHGKV.js";
48
48
  import "./chunk-FWJYLBO6.js";
49
49
  import "./chunk-77WWLBCI.js";
50
50
  import "./chunk-M37RITA6.js";
51
- import "./chunk-73AT5K4A.js";
51
+ import "./chunk-4UIYN56C.js";
52
52
  export {
53
53
  FAMOUS_SOCCER_TEAMS,
54
54
  allocateTeamName,
@@ -45,10 +45,10 @@ import {
45
45
  worktreeDisplayLabel,
46
46
  worktreeDisplayLabelForGroup,
47
47
  worktreeNameFromPath
48
- } from "./chunk-3KKNTHUC.js";
48
+ } from "./chunk-LW5CMQGZ.js";
49
49
  import "./chunk-B3SJXYIJ.js";
50
50
  import "./chunk-7FD7COKE.js";
51
- import "./chunk-RIWUU7FO.js";
51
+ import "./chunk-FGDJOJ2L.js";
52
52
  import "./chunk-KGZBYWZ3.js";
53
53
  import "./chunk-7MV3RXSC.js";
54
54
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/core",
3
- "version": "0.1.62",
3
+ "version": "0.1.67",
4
4
  "description": "Sideboard core — orchestration, agents, git worktrees, MCP server",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,104 +0,0 @@
1
- // src/git/run.ts
2
- import { execa } from "execa";
3
-
4
- // src/agents/path.ts
5
- import { homedir } from "os";
6
- import { delimiter } from "path";
7
- var EXTRA_BIN_DIRS = [
8
- ".local/bin",
9
- ".cargo/bin",
10
- ".nvm/current/bin",
11
- ".asdf/shims",
12
- // pnpm / npm global bins (where `@brightsy/cli` typically lands)
13
- "Library/pnpm",
14
- ".pnpm"
15
- ];
16
- function ensureAgentPath(env = process.env) {
17
- const home = env.HOME || env.USERPROFILE || homedir();
18
- const current = env.PATH ?? "";
19
- const parts = current.split(delimiter).filter(Boolean);
20
- const seen = new Set(parts);
21
- const extras = [
22
- ...EXTRA_BIN_DIRS.map((rel) => `${home}/${rel}`),
23
- "/opt/homebrew/bin",
24
- "/usr/local/bin"
25
- ];
26
- for (const dir of extras.reverse()) {
27
- if (!dir || seen.has(dir)) continue;
28
- parts.unshift(dir);
29
- seen.add(dir);
30
- }
31
- const next = parts.join(delimiter);
32
- env.PATH = next;
33
- return next;
34
- }
35
-
36
- // src/git/run.ts
37
- async function run(file, args, opts) {
38
- ensureAgentPath();
39
- try {
40
- const result = await execa(file, args, {
41
- cwd: opts?.cwd,
42
- env: { ...process.env, ...opts?.env },
43
- reject: opts?.reject ?? true,
44
- ...opts?.timeoutMs != null ? { timeout: opts.timeoutMs } : {}
45
- });
46
- return {
47
- stdout: result.stdout ?? "",
48
- stderr: result.stderr ?? "",
49
- exitCode: result.exitCode ?? 0
50
- };
51
- } catch (err) {
52
- const e = err;
53
- if (opts?.reject === false) {
54
- return {
55
- stdout: String(e.stdout ?? ""),
56
- stderr: String(e.stderr ?? ""),
57
- exitCode: e.exitCode ?? 1
58
- };
59
- }
60
- throw err;
61
- }
62
- }
63
- async function git(args, cwd, opts) {
64
- const prefix = [];
65
- if (opts?.config) {
66
- for (const [key, value] of Object.entries(opts.config)) {
67
- if (!key) continue;
68
- prefix.push("-c", `${key}=${value}`);
69
- }
70
- }
71
- return run("git", [...prefix, ...args], {
72
- cwd,
73
- reject: opts?.reject,
74
- timeoutMs: opts?.timeoutMs,
75
- // Never block forever on a credential/SSH prompt inside MCP / Electron.
76
- env: {
77
- GIT_TERMINAL_PROMPT: "0",
78
- GIT_ASKPASS: process.env.GIT_ASKPASS || "echo",
79
- GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND || "ssh -o BatchMode=yes -o ConnectTimeout=15",
80
- ...opts?.env
81
- }
82
- });
83
- }
84
- async function gh(args, cwd, opts) {
85
- return run("gh", args, {
86
- cwd,
87
- reject: opts?.reject,
88
- timeoutMs: opts?.timeoutMs
89
- });
90
- }
91
- async function resolveGhAuthToken(cwd) {
92
- const result = await gh(["auth", "token"], cwd, { reject: false });
93
- if (result.exitCode !== 0) return null;
94
- const token = result.stdout.trim();
95
- return token || null;
96
- }
97
-
98
- export {
99
- ensureAgentPath,
100
- run,
101
- git,
102
- gh,
103
- resolveGhAuthToken
104
- };
@@ -1,30 +0,0 @@
1
- // src/agents/orchestrator-capable.ts
2
- var ORCHESTRATOR_AGENT_KINDS = [
3
- "claude",
4
- "codex",
5
- "opencode",
6
- "cursor"
7
- ];
8
- function isOrchestratorCapableAgent(agent) {
9
- return Boolean(
10
- agent && ORCHESTRATOR_AGENT_KINDS.includes(agent)
11
- );
12
- }
13
- function assertOrchestratorCapableAgent(agent, context = "orchestration") {
14
- if (!isOrchestratorCapableAgent(agent)) {
15
- throw new Error(
16
- `${agent} cannot run ${context} \u2014 it does not support Sideboard MCP. Use Claude, Cursor, Codex, or OpenCode.`
17
- );
18
- }
19
- return agent;
20
- }
21
- function coerceOrchestratorAgent(agent, fallback = "claude") {
22
- return isOrchestratorCapableAgent(agent) ? agent : fallback;
23
- }
24
-
25
- export {
26
- ORCHESTRATOR_AGENT_KINDS,
27
- isOrchestratorCapableAgent,
28
- assertOrchestratorCapableAgent,
29
- coerceOrchestratorAgent
30
- };
@@ -1,107 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
-
4
- // src/git/run.ts
5
- import { execa } from "execa";
6
-
7
- // src/agents/path.ts
8
- import { homedir } from "os";
9
- import { delimiter } from "path";
10
- var EXTRA_BIN_DIRS = [
11
- ".local/bin",
12
- ".cargo/bin",
13
- ".nvm/current/bin",
14
- ".asdf/shims",
15
- // pnpm / npm global bins (where `@brightsy/cli` typically lands)
16
- "Library/pnpm",
17
- ".pnpm"
18
- ];
19
- function ensureAgentPath(env = process.env) {
20
- const home = env.HOME || env.USERPROFILE || homedir();
21
- const current = env.PATH ?? "";
22
- const parts = current.split(delimiter).filter(Boolean);
23
- const seen = new Set(parts);
24
- const extras = [
25
- ...EXTRA_BIN_DIRS.map((rel) => `${home}/${rel}`),
26
- "/opt/homebrew/bin",
27
- "/usr/local/bin"
28
- ];
29
- for (const dir of extras.reverse()) {
30
- if (!dir || seen.has(dir)) continue;
31
- parts.unshift(dir);
32
- seen.add(dir);
33
- }
34
- const next = parts.join(delimiter);
35
- env.PATH = next;
36
- return next;
37
- }
38
-
39
- // src/git/run.ts
40
- async function run(file, args, opts) {
41
- ensureAgentPath();
42
- try {
43
- const result = await execa(file, args, {
44
- cwd: opts?.cwd,
45
- env: { ...process.env, ...opts?.env },
46
- reject: opts?.reject ?? true,
47
- ...opts?.timeoutMs != null ? { timeout: opts.timeoutMs } : {}
48
- });
49
- return {
50
- stdout: result.stdout ?? "",
51
- stderr: result.stderr ?? "",
52
- exitCode: result.exitCode ?? 0
53
- };
54
- } catch (err) {
55
- const e = err;
56
- if (opts?.reject === false) {
57
- return {
58
- stdout: String(e.stdout ?? ""),
59
- stderr: String(e.stderr ?? ""),
60
- exitCode: e.exitCode ?? 1
61
- };
62
- }
63
- throw err;
64
- }
65
- }
66
- async function git(args, cwd, opts) {
67
- const prefix = [];
68
- if (opts?.config) {
69
- for (const [key, value] of Object.entries(opts.config)) {
70
- if (!key) continue;
71
- prefix.push("-c", `${key}=${value}`);
72
- }
73
- }
74
- return run("git", [...prefix, ...args], {
75
- cwd,
76
- reject: opts?.reject,
77
- timeoutMs: opts?.timeoutMs,
78
- // Never block forever on a credential/SSH prompt inside MCP / Electron.
79
- env: {
80
- GIT_TERMINAL_PROMPT: "0",
81
- GIT_ASKPASS: process.env.GIT_ASKPASS || "echo",
82
- GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND || "ssh -o BatchMode=yes -o ConnectTimeout=15",
83
- ...opts?.env
84
- }
85
- });
86
- }
87
- async function gh(args, cwd, opts) {
88
- return run("gh", args, {
89
- cwd,
90
- reject: opts?.reject,
91
- timeoutMs: opts?.timeoutMs
92
- });
93
- }
94
- async function resolveGhAuthToken(cwd) {
95
- const result = await gh(["auth", "token"], cwd, { reject: false });
96
- if (result.exitCode !== 0) return null;
97
- const token = result.stdout.trim();
98
- return token || null;
99
- }
100
-
101
- export {
102
- ensureAgentPath,
103
- run,
104
- git,
105
- gh,
106
- resolveGhAuthToken
107
- };
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
-
4
- // src/agents/orchestrator-capable.ts
5
- var ORCHESTRATOR_AGENT_KINDS = [
6
- "claude",
7
- "codex",
8
- "opencode",
9
- "cursor"
10
- ];
11
- function isOrchestratorCapableAgent(agent) {
12
- return Boolean(
13
- agent && ORCHESTRATOR_AGENT_KINDS.includes(agent)
14
- );
15
- }
16
- function assertOrchestratorCapableAgent(agent, context = "orchestration") {
17
- if (!isOrchestratorCapableAgent(agent)) {
18
- throw new Error(
19
- `${agent} cannot run ${context} \u2014 it does not support Sideboard MCP. Use Claude, Cursor, Codex, or OpenCode.`
20
- );
21
- }
22
- return agent;
23
- }
24
- function coerceOrchestratorAgent(agent, fallback = "claude") {
25
- return isOrchestratorCapableAgent(agent) ? agent : fallback;
26
- }
27
-
28
- export {
29
- ORCHESTRATOR_AGENT_KINDS,
30
- isOrchestratorCapableAgent,
31
- assertOrchestratorCapableAgent,
32
- coerceOrchestratorAgent
33
- };