@sideboard-ai/core 0.1.111 → 0.1.115
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/cursor-runner.cjs +29 -20
- package/dist/agents/cursor-runner.js +3 -3
- package/dist/{agents-NN22A4G5.js → agents-3X3EFCQY.js} +7 -7
- package/dist/{agents-GH3FWDW2.js → agents-AHAFC6FR.js} +10 -10
- package/dist/{chunk-4EWPKYOU.js → chunk-4OJMZ6P2.js} +2 -2
- package/dist/{chunk-KVFNTWFG.js → chunk-66XTXHR3.js} +244 -36
- package/dist/{chunk-KQBI5HNT.js → chunk-7WC5UWEB.js} +2 -2
- package/dist/{chunk-WIHKHR5R.js → chunk-AXQ4ZWHK.js} +5 -0
- package/dist/{chunk-NC3U42ZP.js → chunk-C6OBY6IC.js} +268 -27
- package/dist/{chunk-DMJKOFTO.js → chunk-DCNR7NAL.js} +39 -31
- package/dist/{chunk-LGXBYZZA.js → chunk-DVM4ID64.js} +69 -13
- package/dist/{chunk-2GO3YKBA.js → chunk-EKIDHL2T.js} +4 -4
- package/dist/{chunk-C4KHDW3U.js → chunk-FZCIQYNQ.js} +1 -1
- package/dist/{chunk-7KWYXGIU.js → chunk-K3TIQXOH.js} +2 -2
- package/dist/{chunk-3KETJKYA.js → chunk-KPIYENTF.js} +69 -13
- package/dist/{chunk-JTQQPJAU.js → chunk-MZ6HJ7VL.js} +47 -34
- package/dist/{chunk-363Z34PY.js → chunk-SLU5JVKD.js} +251 -217
- package/dist/{chunk-VOD3HFLP.js → chunk-XOYQ7LNQ.js} +2 -2
- package/dist/{chunk-7YKXHBIW.js → chunk-YMRT2DU6.js} +3 -3
- package/dist/{chunk-YXDR43ZC.js → chunk-ZMROW673.js} +5 -5
- package/dist/{chunk-YFAXVUY2.js → chunk-ZRCX43LS.js} +2 -2
- package/dist/{chunk-AROMOP3C.js → chunk-ZYEFCSZJ.js} +2 -2
- package/dist/{connected-teams-M5XNXRI5.js → connected-teams-O6D4PM7A.js} +2 -2
- package/dist/{connected-teams-J4I5AKMR.js → connected-teams-ZCOU6KCD.js} +2 -2
- package/dist/{coordinator-prompt-AR66L3N4.js → coordinator-prompt-4KCALEKD.js} +3 -3
- package/dist/{coordinator-prompt-BHMLWL64.js → coordinator-prompt-FML4I5AR.js} +3 -3
- package/dist/{global-workspace-XSUFEIAQ.js → global-workspace-CSWABOG5.js} +4 -4
- package/dist/{global-workspace-SKFODUQQ.js → global-workspace-H4YNASM6.js} +4 -4
- package/dist/index.cjs +787 -427
- package/dist/index.d.cts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +33 -15
- package/dist/mcp/run-stdio.cjs +906 -625
- package/dist/mcp/run-stdio.js +18 -14
- package/dist/{orchestrator-4T2SXDZ7.js → orchestrator-GKLYKLRC.js} +8 -8
- package/dist/{orchestrator-EP57AB5W.js → orchestrator-TXASYNHT.js} +10 -10
- package/dist/{run-XKTAJRWF.js → run-USF6FRKV.js} +3 -1
- package/dist/{run-CFKZPY7F.js → run-XQKGHQZ2.js} +3 -1
- package/dist/{workspaces-XAQVKTLO.js → workspaces-HJ3EVATC.js} +5 -5
- package/dist/{workspaces-HV3J4TTW.js → workspaces-QG6PGFQR.js} +5 -5
- package/dist/{worktree-XFJED3VU.js → worktree-IW3BX26B.js} +2 -2
- package/dist/{worktree-N2EV24EE.js → worktree-OTFQO2W7.js} +2 -2
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
// src/agents/cursor-runner.ts
|
|
5
5
|
var import_sdk = require("@cursor/sdk");
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var import_node_fs10 = require("fs");
|
|
7
|
+
var import_node_path11 = require("path");
|
|
8
8
|
var import_node_readline2 = require("readline");
|
|
9
9
|
|
|
10
10
|
// src/hook/nested-electron-env.ts
|
|
@@ -55,14 +55,14 @@ function appDataDir() {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// src/agents/cursor-ripgrep.ts
|
|
58
|
-
var
|
|
58
|
+
var import_node_fs9 = require("fs");
|
|
59
59
|
var import_node_module = require("module");
|
|
60
|
-
var
|
|
60
|
+
var import_node_path10 = require("path");
|
|
61
61
|
|
|
62
62
|
// src/agents/node-launch.ts
|
|
63
|
-
var
|
|
63
|
+
var import_node_fs8 = require("fs");
|
|
64
64
|
var import_node_os4 = require("os");
|
|
65
|
-
var
|
|
65
|
+
var import_node_path9 = require("path");
|
|
66
66
|
|
|
67
67
|
// src/git/run.ts
|
|
68
68
|
var import_execa2 = require("execa");
|
|
@@ -73,9 +73,13 @@ var import_node_child_process = require("child_process");
|
|
|
73
73
|
var import_node_os3 = require("os");
|
|
74
74
|
var import_node_path6 = require("path");
|
|
75
75
|
|
|
76
|
-
// src/
|
|
76
|
+
// src/git/stale-lock.ts
|
|
77
77
|
var import_node_fs6 = require("fs");
|
|
78
78
|
var import_node_path7 = require("path");
|
|
79
|
+
|
|
80
|
+
// src/agents/packaged-runtime.ts
|
|
81
|
+
var import_node_fs7 = require("fs");
|
|
82
|
+
var import_node_path8 = require("path");
|
|
79
83
|
function electronResourcesPath() {
|
|
80
84
|
const resources = process.resourcesPath;
|
|
81
85
|
if (typeof resources !== "string" || !resources) return null;
|
|
@@ -84,14 +88,14 @@ function electronResourcesPath() {
|
|
|
84
88
|
function packagedCursorRuntimeDir() {
|
|
85
89
|
const resources = electronResourcesPath();
|
|
86
90
|
if (!resources) return null;
|
|
87
|
-
const dir = (0,
|
|
88
|
-
if (!(0,
|
|
91
|
+
const dir = (0, import_node_path8.join)(resources, "cursor-runtime");
|
|
92
|
+
if (!(0, import_node_fs7.existsSync)((0, import_node_path8.join)(dir, "core-dist", "agents", "cursor-runner.js"))) return null;
|
|
89
93
|
return dir;
|
|
90
94
|
}
|
|
91
95
|
function packagedCursorRipgrepCandidate(platformPkg, binName) {
|
|
92
96
|
const dir = packagedCursorRuntimeDir();
|
|
93
97
|
if (!dir) return null;
|
|
94
|
-
return (0,
|
|
98
|
+
return (0, import_node_path8.join)(dir, "node_modules", platformPkg, "bin", binName);
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
// src/agents/node-launch.ts
|
|
@@ -103,7 +107,7 @@ function unpackedAsarPath(filePath) {
|
|
|
103
107
|
if (!isAsarPath(filePath)) return null;
|
|
104
108
|
const unpacked = filePath.replace(/\.asar(?=[/\\])/, ".asar.unpacked");
|
|
105
109
|
if (unpacked === filePath) return null;
|
|
106
|
-
return (0,
|
|
110
|
+
return (0, import_node_fs8.existsSync)(unpacked) ? unpacked : null;
|
|
107
111
|
}
|
|
108
112
|
function nodeReadableScriptPath(scriptPath) {
|
|
109
113
|
return unpackedAsarPath(scriptPath) ?? scriptPath;
|
|
@@ -119,21 +123,21 @@ function platformRipgrepPackage() {
|
|
|
119
123
|
}
|
|
120
124
|
function usableRipgrepPath(candidate) {
|
|
121
125
|
const raw = candidate?.trim();
|
|
122
|
-
if (!raw || !(0,
|
|
126
|
+
if (!raw || !(0, import_node_path10.isAbsolute)(raw)) return null;
|
|
123
127
|
const readable = nodeReadableScriptPath(raw);
|
|
124
|
-
if (!(0,
|
|
128
|
+
if (!(0, import_node_fs9.existsSync)(readable) || isAsarPath(readable)) return null;
|
|
125
129
|
return readable;
|
|
126
130
|
}
|
|
127
131
|
function walkForBundledRipgrep(startFile) {
|
|
128
132
|
if (!startFile) return null;
|
|
129
133
|
const pkg = platformRipgrepPackage();
|
|
130
134
|
const name = rgBinaryName();
|
|
131
|
-
let dir = (0,
|
|
132
|
-
const root = (0,
|
|
135
|
+
let dir = (0, import_node_path10.dirname)((0, import_node_path10.resolve)(startFile));
|
|
136
|
+
const root = (0, import_node_path10.parse)(dir).root;
|
|
133
137
|
while (dir !== root) {
|
|
134
|
-
const hit = usableRipgrepPath((0,
|
|
138
|
+
const hit = usableRipgrepPath((0, import_node_path10.join)(dir, "node_modules", pkg, "bin", name));
|
|
135
139
|
if (hit) return hit;
|
|
136
|
-
const next = (0,
|
|
140
|
+
const next = (0, import_node_path10.dirname)(dir);
|
|
137
141
|
if (next === dir) break;
|
|
138
142
|
dir = next;
|
|
139
143
|
}
|
|
@@ -143,7 +147,7 @@ function requireResolveBundledRipgrep(fromFile) {
|
|
|
143
147
|
try {
|
|
144
148
|
const req = (0, import_node_module.createRequire)(fromFile);
|
|
145
149
|
const pkgJson = req.resolve(`${platformRipgrepPackage()}/package.json`);
|
|
146
|
-
return usableRipgrepPath((0,
|
|
150
|
+
return usableRipgrepPath((0, import_node_path10.join)((0, import_node_path10.dirname)(pkgJson), "bin", rgBinaryName()));
|
|
147
151
|
} catch {
|
|
148
152
|
return null;
|
|
149
153
|
}
|
|
@@ -514,6 +518,11 @@ function createAgentStreamCoalescer(emit2, opts) {
|
|
|
514
518
|
return;
|
|
515
519
|
}
|
|
516
520
|
if (!event.data) return;
|
|
521
|
+
if (event.type === "thinking" && event.replace) {
|
|
522
|
+
flush();
|
|
523
|
+
emit2(event);
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
517
526
|
if (pending && pending.type === event.type && parentKey(pending) === parentKey(event)) {
|
|
518
527
|
pending.data += event.data;
|
|
519
528
|
} else {
|
|
@@ -552,8 +561,8 @@ function modelSelection(model, opts) {
|
|
|
552
561
|
return params.length > 0 ? { id, params } : { id };
|
|
553
562
|
}
|
|
554
563
|
function localAgentStore() {
|
|
555
|
-
const root = (0,
|
|
556
|
-
(0,
|
|
564
|
+
const root = (0, import_node_path11.join)(appDataDir(), "cursor-sdk-store");
|
|
565
|
+
(0, import_node_fs10.mkdirSync)(root, { recursive: true });
|
|
557
566
|
return new import_sdk.JsonlLocalAgentStore(root);
|
|
558
567
|
}
|
|
559
568
|
async function cancelStaleLocalRuns(agentId, opts) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createAgentStreamCoalescer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AXQ4ZWHK.js";
|
|
5
5
|
import {
|
|
6
6
|
cursorDeltaToEvents,
|
|
7
7
|
cursorSdkMessageToEvents,
|
|
8
8
|
ensureCursorRipgrepPath,
|
|
9
9
|
formatUnknownDetail
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-SLU5JVKD.js";
|
|
11
11
|
import {
|
|
12
12
|
dropNestedElectronEnvFromProcess
|
|
13
13
|
} from "../chunk-4TR3HZFT.js";
|
|
14
14
|
import {
|
|
15
15
|
appDataDir
|
|
16
16
|
} from "../chunk-QZQEXME2.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-DVM4ID64.js";
|
|
18
18
|
|
|
19
19
|
// src/agents/cursor-runner.ts
|
|
20
20
|
import { Agent, CursorAgentError, JsonlLocalAgentStore } from "@cursor/sdk";
|
|
@@ -28,20 +28,20 @@ import {
|
|
|
28
28
|
resolveCursorModelId,
|
|
29
29
|
resolveLoginCommand,
|
|
30
30
|
resolveQuotaFallbackAgent
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-C6OBY6IC.js";
|
|
32
|
+
import "./chunk-EKIDHL2T.js";
|
|
33
33
|
import {
|
|
34
34
|
ORCHESTRATOR_AGENT_KINDS,
|
|
35
35
|
assertOrchestratorCapableAgent,
|
|
36
36
|
coerceOrchestratorAgent,
|
|
37
37
|
isOrchestratorCapableAgent
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-4OJMZ6P2.js";
|
|
39
|
+
import "./chunk-7WC5UWEB.js";
|
|
40
40
|
import {
|
|
41
41
|
cursorSdkMessageToEvents,
|
|
42
42
|
parseCursorRunnerLine
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-SLU5JVKD.js";
|
|
44
|
+
import "./chunk-FZCIQYNQ.js";
|
|
45
45
|
import "./chunk-FKOIHGKV.js";
|
|
46
46
|
import "./chunk-4NR5FL46.js";
|
|
47
47
|
import "./chunk-4TR3HZFT.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
posixShellSingleQuote,
|
|
58
58
|
resolveCommandBinarySync,
|
|
59
59
|
withExportedPath
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-DVM4ID64.js";
|
|
61
61
|
export {
|
|
62
62
|
CLAUDE_MODEL_CATALOG,
|
|
63
63
|
ORCHESTRATOR_AGENT_KINDS,
|
|
@@ -32,22 +32,18 @@ import {
|
|
|
32
32
|
resolveCursorModelId,
|
|
33
33
|
resolveLoginCommand,
|
|
34
34
|
resolveQuotaFallbackAgent
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-66XTXHR3.js";
|
|
36
|
+
import "./chunk-YMRT2DU6.js";
|
|
37
37
|
import {
|
|
38
38
|
ORCHESTRATOR_AGENT_KINDS,
|
|
39
39
|
assertOrchestratorCapableAgent,
|
|
40
40
|
coerceOrchestratorAgent,
|
|
41
41
|
isOrchestratorCapableAgent
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-XOYQ7LNQ.js";
|
|
43
|
+
import "./chunk-ZYEFCSZJ.js";
|
|
44
|
+
import "./chunk-ZMROW673.js";
|
|
45
45
|
import "./chunk-B3SJXYIJ.js";
|
|
46
46
|
import "./chunk-KYOTBZ6S.js";
|
|
47
|
-
import "./chunk-SGEVS5SY.js";
|
|
48
|
-
import "./chunk-NSTQ6QKD.js";
|
|
49
|
-
import "./chunk-KGZBYWZ3.js";
|
|
50
|
-
import "./chunk-BD2ICC4D.js";
|
|
51
47
|
import {
|
|
52
48
|
conductorBundledBinDir,
|
|
53
49
|
enrichPathWithNpmGlobalBin,
|
|
@@ -56,7 +52,11 @@ import {
|
|
|
56
52
|
posixShellSingleQuote,
|
|
57
53
|
resolveCommandBinarySync,
|
|
58
54
|
withExportedPath
|
|
59
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-KPIYENTF.js";
|
|
56
|
+
import "./chunk-SGEVS5SY.js";
|
|
57
|
+
import "./chunk-NSTQ6QKD.js";
|
|
58
|
+
import "./chunk-KGZBYWZ3.js";
|
|
59
|
+
import "./chunk-BD2ICC4D.js";
|
|
60
60
|
export {
|
|
61
61
|
CLAUDE_MODEL_CATALOG,
|
|
62
62
|
ORCHESTRATOR_AGENT_KINDS,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureGlobalCoordinatorCwd
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7WC5UWEB.js";
|
|
4
4
|
import {
|
|
5
5
|
allocateTeamName,
|
|
6
6
|
takenSlugsFromThread,
|
|
7
7
|
teamSlugFromName
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FZCIQYNQ.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveNewThreadOptions,
|
|
11
11
|
resolveThreadDefaults
|