@sideboard-ai/core 0.1.62 → 0.1.66
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.
- package/dist/{agents-QLSFIQAO.js → agents-EWFD765A.js} +23 -7
- package/dist/{agents-KF3J3C53.js → agents-MD7SCFYX.js} +23 -7
- package/dist/{app-settings-LTSFG7QJ.js → app-settings-GJVZGU3M.js} +13 -3
- package/dist/{app-settings-HK4KAM4R.js → app-settings-ONKMFSEJ.js} +13 -3
- package/dist/{chunk-RIWUU7FO.js → chunk-5AG5BUQN.js} +61 -3
- package/dist/{chunk-27MAWNKY.js → chunk-AKPEXIKK.js} +2 -2
- package/dist/{chunk-2MCNURQV.js → chunk-BBEH2CJE.js} +264 -93
- package/dist/{chunk-DDN3UF4R.js → chunk-BPOTVI5J.js} +115 -3
- package/dist/{chunk-2FEA4LDA.js → chunk-DNPP7QMK.js} +31 -6
- package/dist/{chunk-MBAL5FE6.js → chunk-DZYMNW2A.js} +4 -4
- package/dist/{chunk-JB2H7E7V.js → chunk-EVD4KNKR.js} +1 -1
- package/dist/{chunk-A6FOKNOU.js → chunk-HTOTTJJX.js} +2 -2
- package/dist/{chunk-3KKNTHUC.js → chunk-I2KGRAXC.js} +1 -1
- package/dist/{chunk-ZF5YJCXO.js → chunk-IFAU2DEY.js} +269 -93
- package/dist/{chunk-NVU7EC2E.js → chunk-LRBRQFBU.js} +2 -2
- package/dist/{chunk-6CUJQKTJ.js → chunk-MHR4OGZ4.js} +115 -3
- package/dist/{chunk-46KMKHSD.js → chunk-PESJDZTB.js} +2 -2
- package/dist/{chunk-UGXSSBFJ.js → chunk-R7GUDEPY.js} +1 -1
- package/dist/{chunk-73AT5K4A.js → chunk-TXQ6K2GR.js} +61 -3
- package/dist/{chunk-DXTGDXO2.js → chunk-YTNLOJPK.js} +31 -6
- package/dist/{connected-teams-RSL4VB3X.js → connected-teams-CHXO5FFA.js} +2 -2
- package/dist/{connected-teams-MKIYKOYA.js → connected-teams-GJTESSTX.js} +2 -2
- package/dist/{coordinator-prompt-LKG3SHMI.js → coordinator-prompt-E5UGSJES.js} +4 -4
- package/dist/{coordinator-prompt-N2R6FGZK.js → coordinator-prompt-ILSULI7C.js} +4 -4
- package/dist/{global-workspace-LALWQWRJ.js → global-workspace-44UG64NA.js} +5 -6
- package/dist/{global-workspace-YOAUQCMA.js → global-workspace-5PM5LA6E.js} +5 -6
- package/dist/index.cjs +1308 -925
- package/dist/index.d.cts +92 -1
- package/dist/index.d.ts +92 -1
- package/dist/index.js +746 -715
- package/dist/mcp/run-stdio.cjs +1267 -976
- package/dist/mcp/run-stdio.js +691 -748
- package/dist/{run-HZTBWGQR.js → run-74S2NZWB.js} +1 -1
- package/dist/{run-GPSVV5OH.js → run-JLN5JK7Q.js} +1 -1
- package/dist/{workspaces-VCAIHVIE.js → workspaces-OVBCSS5Y.js} +6 -7
- package/dist/{workspaces-E75POJXP.js → workspaces-RXFXQRRF.js} +6 -7
- package/dist/{worktree-MV4WRW6G.js → worktree-K2JB53R5.js} +2 -2
- package/dist/{worktree-LZEGVQSN.js → worktree-S2N63FLV.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-GI7E5733.js +0 -30
- package/dist/chunk-S2LL5HA4.js +0 -33
|
@@ -24,26 +24,36 @@ import {
|
|
|
24
24
|
opencodeAdapter,
|
|
25
25
|
parseSessionQuotaResetAt,
|
|
26
26
|
permissionMode,
|
|
27
|
+
prepareTerminalCommand,
|
|
27
28
|
resolveCursorModelId,
|
|
29
|
+
resolveLoginCommand,
|
|
28
30
|
resolveQuotaFallbackAgent
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IFAU2DEY.js";
|
|
30
32
|
import {
|
|
31
33
|
ORCHESTRATOR_AGENT_KINDS,
|
|
32
34
|
assertOrchestratorCapableAgent,
|
|
33
35
|
coerceOrchestratorAgent,
|
|
34
36
|
isOrchestratorCapableAgent
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-YTNLOJPK.js";
|
|
38
|
+
import "./chunk-DZYMNW2A.js";
|
|
37
39
|
import {
|
|
38
40
|
cursorSdkMessageToEvents,
|
|
39
41
|
parseCursorRunnerLine
|
|
40
42
|
} from "./chunk-3WJAUKIL.js";
|
|
41
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-AKPEXIKK.js";
|
|
44
|
+
import "./chunk-MHR4OGZ4.js";
|
|
45
|
+
import "./chunk-R7GUDEPY.js";
|
|
46
|
+
import "./chunk-FKOIHGKV.js";
|
|
47
|
+
import "./chunk-FWJYLBO6.js";
|
|
42
48
|
import "./chunk-77WWLBCI.js";
|
|
43
49
|
import "./chunk-M37RITA6.js";
|
|
44
50
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
enrichPathWithNpmGlobalBin,
|
|
52
|
+
ensureAgentPath,
|
|
53
|
+
posixShellSingleQuote,
|
|
54
|
+
resolveCommandBinarySync,
|
|
55
|
+
withExportedPath
|
|
56
|
+
} from "./chunk-TXQ6K2GR.js";
|
|
47
57
|
export {
|
|
48
58
|
CLAUDE_MODEL_CATALOG,
|
|
49
59
|
ORCHESTRATOR_AGENT_KINDS,
|
|
@@ -58,6 +68,7 @@ export {
|
|
|
58
68
|
cursorSdkMessageToEvents,
|
|
59
69
|
decodeBrightsyTarget,
|
|
60
70
|
encodeBrightsyTarget,
|
|
71
|
+
enrichPathWithNpmGlobalBin,
|
|
61
72
|
ensureAgentPath,
|
|
62
73
|
getAdapter,
|
|
63
74
|
getAgentSetupInfo,
|
|
@@ -77,6 +88,11 @@ export {
|
|
|
77
88
|
parseCursorRunnerLine,
|
|
78
89
|
parseSessionQuotaResetAt,
|
|
79
90
|
permissionMode,
|
|
91
|
+
posixShellSingleQuote,
|
|
92
|
+
prepareTerminalCommand,
|
|
93
|
+
resolveCommandBinarySync,
|
|
80
94
|
resolveCursorModelId,
|
|
81
|
-
|
|
95
|
+
resolveLoginCommand,
|
|
96
|
+
resolveQuotaFallbackAgent,
|
|
97
|
+
withExportedPath
|
|
82
98
|
};
|
|
@@ -28,20 +28,30 @@ import {
|
|
|
28
28
|
parseCursorRunnerLine,
|
|
29
29
|
parseSessionQuotaResetAt,
|
|
30
30
|
permissionMode,
|
|
31
|
+
prepareTerminalCommand,
|
|
31
32
|
resolveCursorModelId,
|
|
33
|
+
resolveLoginCommand,
|
|
32
34
|
resolveQuotaFallbackAgent
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-BBEH2CJE.js";
|
|
36
|
+
import "./chunk-EVD4KNKR.js";
|
|
35
37
|
import {
|
|
36
38
|
ORCHESTRATOR_AGENT_KINDS,
|
|
37
39
|
assertOrchestratorCapableAgent,
|
|
38
40
|
coerceOrchestratorAgent,
|
|
39
41
|
isOrchestratorCapableAgent
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-DNPP7QMK.js";
|
|
43
|
+
import "./chunk-LRBRQFBU.js";
|
|
44
|
+
import "./chunk-I2KGRAXC.js";
|
|
45
|
+
import "./chunk-B3SJXYIJ.js";
|
|
46
|
+
import "./chunk-7FD7COKE.js";
|
|
41
47
|
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
enrichPathWithNpmGlobalBin,
|
|
49
|
+
ensureAgentPath,
|
|
50
|
+
posixShellSingleQuote,
|
|
51
|
+
resolveCommandBinarySync,
|
|
52
|
+
withExportedPath
|
|
53
|
+
} from "./chunk-5AG5BUQN.js";
|
|
54
|
+
import "./chunk-BPOTVI5J.js";
|
|
45
55
|
import "./chunk-KGZBYWZ3.js";
|
|
46
56
|
import "./chunk-7MV3RXSC.js";
|
|
47
57
|
export {
|
|
@@ -58,6 +68,7 @@ export {
|
|
|
58
68
|
cursorSdkMessageToEvents,
|
|
59
69
|
decodeBrightsyTarget,
|
|
60
70
|
encodeBrightsyTarget,
|
|
71
|
+
enrichPathWithNpmGlobalBin,
|
|
61
72
|
ensureAgentPath,
|
|
62
73
|
getAdapter,
|
|
63
74
|
getAgentSetupInfo,
|
|
@@ -77,6 +88,11 @@ export {
|
|
|
77
88
|
parseCursorRunnerLine,
|
|
78
89
|
parseSessionQuotaResetAt,
|
|
79
90
|
permissionMode,
|
|
91
|
+
posixShellSingleQuote,
|
|
92
|
+
prepareTerminalCommand,
|
|
93
|
+
resolveCommandBinarySync,
|
|
80
94
|
resolveCursorModelId,
|
|
81
|
-
|
|
95
|
+
resolveLoginCommand,
|
|
96
|
+
resolveQuotaFallbackAgent,
|
|
97
|
+
withExportedPath
|
|
82
98
|
};
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
autoRunAfterSetupEnabled,
|
|
11
11
|
brightsyCloudConnectAgent,
|
|
12
12
|
brightsyCloudConnectEnabled,
|
|
13
|
+
brightsyInjectWorktreeMcpEnabled,
|
|
13
14
|
caffeinateWhileCloudConnectEnabled,
|
|
14
15
|
caffeinateWhileRunningEnabled,
|
|
15
16
|
childEnvWithAppSettings,
|
|
@@ -28,18 +29,22 @@ import {
|
|
|
28
29
|
maxConcurrentAgents,
|
|
29
30
|
orchestrationQuotaFallbackAgent,
|
|
30
31
|
orchestrationQuotaOnLimit,
|
|
32
|
+
resolveAgentExecutable,
|
|
31
33
|
resolveClaudeExecutable,
|
|
32
34
|
resolveEffectiveIssueSource,
|
|
33
35
|
resolveNewThreadOptions,
|
|
34
36
|
resolveThreadDefaults,
|
|
35
37
|
saveAppSettings,
|
|
36
38
|
updateAdvancedSettings,
|
|
39
|
+
updateAgentExecutable,
|
|
37
40
|
updateAppEnvironment,
|
|
38
41
|
updateBrightsySettings,
|
|
39
42
|
updateClaudeSettings,
|
|
43
|
+
updateCodexSettings,
|
|
40
44
|
updateDefaultsSettings,
|
|
41
|
-
updateIntegrationsSettings
|
|
42
|
-
|
|
45
|
+
updateIntegrationsSettings,
|
|
46
|
+
updateOpencodeSettings
|
|
47
|
+
} from "./chunk-BPOTVI5J.js";
|
|
43
48
|
import "./chunk-KGZBYWZ3.js";
|
|
44
49
|
import "./chunk-7MV3RXSC.js";
|
|
45
50
|
export {
|
|
@@ -52,6 +57,7 @@ export {
|
|
|
52
57
|
autoRunAfterSetupEnabled,
|
|
53
58
|
brightsyCloudConnectAgent,
|
|
54
59
|
brightsyCloudConnectEnabled,
|
|
60
|
+
brightsyInjectWorktreeMcpEnabled,
|
|
55
61
|
caffeinateWhileCloudConnectEnabled,
|
|
56
62
|
caffeinateWhileRunningEnabled,
|
|
57
63
|
childEnvWithAppSettings,
|
|
@@ -70,15 +76,19 @@ export {
|
|
|
70
76
|
maxConcurrentAgents,
|
|
71
77
|
orchestrationQuotaFallbackAgent,
|
|
72
78
|
orchestrationQuotaOnLimit,
|
|
79
|
+
resolveAgentExecutable,
|
|
73
80
|
resolveClaudeExecutable,
|
|
74
81
|
resolveEffectiveIssueSource,
|
|
75
82
|
resolveNewThreadOptions,
|
|
76
83
|
resolveThreadDefaults,
|
|
77
84
|
saveAppSettings,
|
|
78
85
|
updateAdvancedSettings,
|
|
86
|
+
updateAgentExecutable,
|
|
79
87
|
updateAppEnvironment,
|
|
80
88
|
updateBrightsySettings,
|
|
81
89
|
updateClaudeSettings,
|
|
90
|
+
updateCodexSettings,
|
|
82
91
|
updateDefaultsSettings,
|
|
83
|
-
updateIntegrationsSettings
|
|
92
|
+
updateIntegrationsSettings,
|
|
93
|
+
updateOpencodeSettings
|
|
84
94
|
};
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
autoRunAfterSetupEnabled,
|
|
9
9
|
brightsyCloudConnectAgent,
|
|
10
10
|
brightsyCloudConnectEnabled,
|
|
11
|
+
brightsyInjectWorktreeMcpEnabled,
|
|
11
12
|
caffeinateWhileCloudConnectEnabled,
|
|
12
13
|
caffeinateWhileRunningEnabled,
|
|
13
14
|
childEnvWithAppSettings,
|
|
@@ -26,18 +27,22 @@ import {
|
|
|
26
27
|
maxConcurrentAgents,
|
|
27
28
|
orchestrationQuotaFallbackAgent,
|
|
28
29
|
orchestrationQuotaOnLimit,
|
|
30
|
+
resolveAgentExecutable,
|
|
29
31
|
resolveClaudeExecutable,
|
|
30
32
|
resolveEffectiveIssueSource,
|
|
31
33
|
resolveNewThreadOptions,
|
|
32
34
|
resolveThreadDefaults,
|
|
33
35
|
saveAppSettings,
|
|
34
36
|
updateAdvancedSettings,
|
|
37
|
+
updateAgentExecutable,
|
|
35
38
|
updateAppEnvironment,
|
|
36
39
|
updateBrightsySettings,
|
|
37
40
|
updateClaudeSettings,
|
|
41
|
+
updateCodexSettings,
|
|
38
42
|
updateDefaultsSettings,
|
|
39
|
-
updateIntegrationsSettings
|
|
40
|
-
|
|
43
|
+
updateIntegrationsSettings,
|
|
44
|
+
updateOpencodeSettings
|
|
45
|
+
} from "./chunk-MHR4OGZ4.js";
|
|
41
46
|
import "./chunk-77WWLBCI.js";
|
|
42
47
|
import "./chunk-M37RITA6.js";
|
|
43
48
|
export {
|
|
@@ -50,6 +55,7 @@ export {
|
|
|
50
55
|
autoRunAfterSetupEnabled,
|
|
51
56
|
brightsyCloudConnectAgent,
|
|
52
57
|
brightsyCloudConnectEnabled,
|
|
58
|
+
brightsyInjectWorktreeMcpEnabled,
|
|
53
59
|
caffeinateWhileCloudConnectEnabled,
|
|
54
60
|
caffeinateWhileRunningEnabled,
|
|
55
61
|
childEnvWithAppSettings,
|
|
@@ -68,15 +74,19 @@ export {
|
|
|
68
74
|
maxConcurrentAgents,
|
|
69
75
|
orchestrationQuotaFallbackAgent,
|
|
70
76
|
orchestrationQuotaOnLimit,
|
|
77
|
+
resolveAgentExecutable,
|
|
71
78
|
resolveClaudeExecutable,
|
|
72
79
|
resolveEffectiveIssueSource,
|
|
73
80
|
resolveNewThreadOptions,
|
|
74
81
|
resolveThreadDefaults,
|
|
75
82
|
saveAppSettings,
|
|
76
83
|
updateAdvancedSettings,
|
|
84
|
+
updateAgentExecutable,
|
|
77
85
|
updateAppEnvironment,
|
|
78
86
|
updateBrightsySettings,
|
|
79
87
|
updateClaudeSettings,
|
|
88
|
+
updateCodexSettings,
|
|
80
89
|
updateDefaultsSettings,
|
|
81
|
-
updateIntegrationsSettings
|
|
90
|
+
updateIntegrationsSettings,
|
|
91
|
+
updateOpencodeSettings
|
|
82
92
|
};
|
|
@@ -5,29 +5,45 @@
|
|
|
5
5
|
import { execa } from "execa";
|
|
6
6
|
|
|
7
7
|
// src/agents/path.ts
|
|
8
|
+
import { existsSync } from "fs";
|
|
9
|
+
import { execFileSync } from "child_process";
|
|
8
10
|
import { homedir } from "os";
|
|
9
|
-
import { delimiter } from "path";
|
|
11
|
+
import { delimiter, join } from "path";
|
|
10
12
|
var EXTRA_BIN_DIRS = [
|
|
11
13
|
".local/bin",
|
|
12
14
|
".cargo/bin",
|
|
13
15
|
".nvm/current/bin",
|
|
14
16
|
".asdf/shims",
|
|
17
|
+
".volta/bin",
|
|
18
|
+
".npm-global/bin",
|
|
19
|
+
// fnm default alias (common when shell init is skipped)
|
|
20
|
+
".local/share/fnm/aliases/default/bin",
|
|
15
21
|
// pnpm / npm global bins (where `@brightsy/cli` typically lands)
|
|
16
22
|
"Library/pnpm",
|
|
17
23
|
".pnpm"
|
|
18
24
|
];
|
|
25
|
+
function prependPathDir(env, dir) {
|
|
26
|
+
if (!dir || !existsSync(dir)) return;
|
|
27
|
+
const current = env.PATH ?? "";
|
|
28
|
+
const parts = current.split(delimiter).filter(Boolean);
|
|
29
|
+
if (parts.includes(dir)) {
|
|
30
|
+
env.PATH = current;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
env.PATH = [dir, ...parts].join(delimiter);
|
|
34
|
+
}
|
|
19
35
|
function ensureAgentPath(env = process.env) {
|
|
20
36
|
const home = env.HOME || env.USERPROFILE || homedir();
|
|
21
37
|
const current = env.PATH ?? "";
|
|
22
38
|
const parts = current.split(delimiter).filter(Boolean);
|
|
23
39
|
const seen = new Set(parts);
|
|
24
40
|
const extras = [
|
|
25
|
-
...EXTRA_BIN_DIRS.map((rel) =>
|
|
41
|
+
...EXTRA_BIN_DIRS.map((rel) => join(home, rel)),
|
|
26
42
|
"/opt/homebrew/bin",
|
|
27
43
|
"/usr/local/bin"
|
|
28
44
|
];
|
|
29
45
|
for (const dir of extras.reverse()) {
|
|
30
|
-
if (!dir || seen.has(dir)) continue;
|
|
46
|
+
if (!dir || seen.has(dir) || !existsSync(dir)) continue;
|
|
31
47
|
parts.unshift(dir);
|
|
32
48
|
seen.add(dir);
|
|
33
49
|
}
|
|
@@ -35,6 +51,44 @@ function ensureAgentPath(env = process.env) {
|
|
|
35
51
|
env.PATH = next;
|
|
36
52
|
return next;
|
|
37
53
|
}
|
|
54
|
+
function enrichPathWithNpmGlobalBin(env = process.env) {
|
|
55
|
+
ensureAgentPath(env);
|
|
56
|
+
try {
|
|
57
|
+
const prefix = execFileSync("npm", ["prefix", "-g"], {
|
|
58
|
+
encoding: "utf8",
|
|
59
|
+
env: { ...process.env, ...env },
|
|
60
|
+
timeout: 8e3,
|
|
61
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
62
|
+
}).trim().split(/\r?\n/).find(Boolean);
|
|
63
|
+
if (prefix) {
|
|
64
|
+
const binDir = process.platform === "win32" ? prefix : join(prefix, "bin");
|
|
65
|
+
prependPathDir(env, binDir);
|
|
66
|
+
}
|
|
67
|
+
} catch {
|
|
68
|
+
}
|
|
69
|
+
return env.PATH ?? "";
|
|
70
|
+
}
|
|
71
|
+
function posixShellSingleQuote(value) {
|
|
72
|
+
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
73
|
+
}
|
|
74
|
+
function resolveCommandBinarySync(command, whichPath) {
|
|
75
|
+
const trimmed = command.trim();
|
|
76
|
+
if (!trimmed) return trimmed;
|
|
77
|
+
const match = /^(\S+)(\s[\s\S]*)?$/.exec(trimmed);
|
|
78
|
+
if (!match) return trimmed;
|
|
79
|
+
const bin = match[1];
|
|
80
|
+
const rest = match[2] ?? "";
|
|
81
|
+
if (bin.includes("/") || bin.includes("\\")) return trimmed;
|
|
82
|
+
const abs = whichPath?.trim().split(/\r?\n/).find(Boolean);
|
|
83
|
+
if (!abs) return trimmed;
|
|
84
|
+
return `${abs}${rest}`;
|
|
85
|
+
}
|
|
86
|
+
function withExportedPath(command, pathValue) {
|
|
87
|
+
const trimmed = command.trim();
|
|
88
|
+
if (!trimmed) return trimmed;
|
|
89
|
+
if (/^(export\s+PATH=|PATH=)/.test(trimmed)) return trimmed;
|
|
90
|
+
return `export PATH=${posixShellSingleQuote(pathValue)}; ${trimmed}`;
|
|
91
|
+
}
|
|
38
92
|
|
|
39
93
|
// src/git/run.ts
|
|
40
94
|
async function run(file, args, opts) {
|
|
@@ -100,6 +154,10 @@ async function resolveGhAuthToken(cwd) {
|
|
|
100
154
|
|
|
101
155
|
export {
|
|
102
156
|
ensureAgentPath,
|
|
157
|
+
enrichPathWithNpmGlobalBin,
|
|
158
|
+
posixShellSingleQuote,
|
|
159
|
+
resolveCommandBinarySync,
|
|
160
|
+
withExportedPath,
|
|
103
161
|
run,
|
|
104
162
|
git,
|
|
105
163
|
gh,
|