@sideboard-ai/core 0.1.235 → 0.1.236
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/{abletime-WZNDTRVL.js → abletime-KOGCIQCO.js} +5 -5
- package/dist/{abletime-BGVOCEOU.js → abletime-VSV6AUBV.js} +5 -5
- package/dist/{abletime-oauth-ZLU2EYRK.js → abletime-oauth-LY7KZICW.js} +4 -4
- package/dist/{abletime-oauth-6M5GWEPX.js → abletime-oauth-QMDV45JC.js} +4 -4
- package/dist/{abletime-rest-WNHIATB3.js → abletime-rest-LXOWKPL7.js} +4 -4
- package/dist/{abletime-rest-F7XG5NGY.js → abletime-rest-NL56UVK5.js} +4 -4
- package/dist/agents/cursor-runner.cjs +39 -35
- package/dist/agents/cursor-runner.js +3 -3
- package/dist/{agents-37JCAVSC.js → agents-JC6DRIT3.js} +9 -9
- package/dist/{agents-MOMMKSYV.js → agents-S4HYHRL3.js} +8 -8
- package/dist/{app-settings-KBL2G7M4.js → app-settings-2CFCRYD7.js} +2 -2
- package/dist/{app-settings-UXWCPDEA.js → app-settings-I27UBVI4.js} +2 -2
- package/dist/{caffeinate-hold-OK4JJ5PP.js → caffeinate-hold-FNKIPXDU.js} +2 -2
- package/dist/{caffeinate-hold-22VFDPSO.js → caffeinate-hold-PXHGH7ZN.js} +2 -2
- package/dist/{chunk-7J72QJOM.js → chunk-224IXQOM.js} +1 -1
- package/dist/{chunk-4VGCG2HV.js → chunk-3AJUH66R.js} +2 -2
- package/dist/{chunk-P6ZM5QJW.js → chunk-3PGFAVFL.js} +2 -2
- package/dist/{chunk-RZTRWN2V.js → chunk-4H5WO4H3.js} +1 -1
- package/dist/{chunk-MVLXDYN5.js → chunk-5ELC3KK3.js} +5 -5
- package/dist/{chunk-WPD7BR6C.js → chunk-5SHYLRTU.js} +1 -1
- package/dist/{chunk-S2OEFXST.js → chunk-5UN5C5WP.js} +5 -5
- package/dist/{chunk-LJWF3VA3.js → chunk-6Q2CFQ4D.js} +74 -30
- package/dist/{chunk-WFUDY6PC.js → chunk-A4JGXX2F.js} +155 -24
- package/dist/{chunk-EAYXD2IC.js → chunk-ANGPU5JL.js} +282 -14
- package/dist/{chunk-GHRZNPBK.js → chunk-C2CBF4YE.js} +2 -2
- package/dist/{chunk-TNVJPFHM.js → chunk-CJKL7A4G.js} +5 -5
- package/dist/{chunk-SWNEA5OZ.js → chunk-CRAXJAYJ.js} +3 -3
- package/dist/{chunk-C774RJJA.js → chunk-CWHMLCLN.js} +3 -3
- package/dist/{chunk-YWI3IBP2.js → chunk-DQN5U2VH.js} +1 -1
- package/dist/{chunk-D4VKJO5C.js → chunk-DYXNBXE3.js} +304 -16
- package/dist/{chunk-SPAMHHJH.js → chunk-J5GON4SU.js} +1 -1
- package/dist/{chunk-4VFOJZPS.js → chunk-JXZS56VW.js} +3 -3
- package/dist/{chunk-EQNRWDLN.js → chunk-KK63BFYN.js} +151 -24
- package/dist/{chunk-X5B3OS5I.js → chunk-N6XI5KXL.js} +1 -1
- package/dist/{chunk-XJETIO4K.js → chunk-NJ5OXOTN.js} +2 -2
- package/dist/{chunk-RGNPPRZZ.js → chunk-NYAEMZ3L.js} +3 -3
- package/dist/{chunk-7H2CVVLF.js → chunk-O3UAQAYA.js} +3 -3
- package/dist/{chunk-4TYXWPAJ.js → chunk-OJFEVWZN.js} +1 -1
- package/dist/{chunk-I5NC7DWO.js → chunk-P3DCZRER.js} +1 -1
- package/dist/{chunk-TWXSZYR2.js → chunk-RRXRLHIE.js} +5 -5
- package/dist/{chunk-AS4UN7QL.js → chunk-VVOAXBND.js} +5 -5
- package/dist/{chunk-7366AB7E.js → chunk-XMCJDWPA.js} +77 -32
- package/dist/{connected-teams-KQUDU7LZ.js → connected-teams-62AJRDDD.js} +2 -2
- package/dist/{connected-teams-JUJAQZZE.js → connected-teams-GXV22ZSF.js} +2 -2
- package/dist/{coordinator-prompt-CE7MN6QY.js → coordinator-prompt-2BRUH7PJ.js} +6 -6
- package/dist/{coordinator-prompt-IGDMFKCD.js → coordinator-prompt-BIP7ZEJ3.js} +6 -6
- package/dist/{cursor-recover-DTQAUDGO.js → cursor-recover-DFMCTZA4.js} +2 -2
- package/dist/{cursor-recover-4PQAADAU.js → cursor-recover-K3EBEM7M.js} +2 -2
- package/dist/{global-workspace-7WH24UFO.js → global-workspace-3XZN3QHZ.js} +6 -6
- package/dist/{global-workspace-NCIC2Y2U.js → global-workspace-DWCFG7LP.js} +6 -6
- package/dist/index.cjs +1219 -707
- package/dist/index.d.cts +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +79 -23
- package/dist/mcp/run-stdio.cjs +1123 -659
- package/dist/mcp/run-stdio.js +45 -22
- package/dist/{orchestrator-6NPBOBNA.js → orchestrator-AYPDBGIF.js} +10 -10
- package/dist/{orchestrator-RKWRI3PJ.js → orchestrator-TEJJAQWP.js} +11 -11
- package/dist/{paths-C2VERLAE.js → paths-LGKOG7MY.js} +1 -1
- package/dist/{paths-LOXCISLX.js → paths-O6ZEAEUD.js} +1 -1
- package/dist/{thread-store-IKJD4EOK.js → thread-store-AYPBEZT5.js} +3 -3
- package/dist/{thread-store-FBK5SZ5P.js → thread-store-YOPKY74K.js} +3 -3
- package/dist/{workspaces-H2TRFDE2.js → workspaces-NYT2472Z.js} +6 -6
- package/dist/{workspaces-NSQZSDQD.js → workspaces-V7522TQH.js} +6 -6
- package/dist/{worktree-W7BSI4GU.js → worktree-AGVPKDBH.js} +5 -5
- package/dist/{worktree-FMIX4BRV.js → worktree-IRALYI6A.js} +5 -5
- package/package.json +1 -1
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
toAbleTimeIssueInfo,
|
|
18
18
|
updateAbleTimeTask,
|
|
19
19
|
verifyAbleTimeConnection
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-NYAEMZ3L.js";
|
|
21
|
+
import "./chunk-C2CBF4YE.js";
|
|
22
|
+
import "./chunk-VVOAXBND.js";
|
|
23
23
|
import "./chunk-VKQGAWHY.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-4H5WO4H3.js";
|
|
25
25
|
import "./chunk-NSTQ6QKD.js";
|
|
26
26
|
import "./chunk-KGZBYWZ3.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-KK63BFYN.js";
|
|
28
28
|
import "./chunk-WWUABK6B.js";
|
|
29
29
|
import "./chunk-FJZWM2ON.js";
|
|
30
30
|
export {
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
toAbleTimeIssueInfo,
|
|
16
16
|
updateAbleTimeTask,
|
|
17
17
|
verifyAbleTimeConnection
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-CRAXJAYJ.js";
|
|
19
|
+
import "./chunk-3PGFAVFL.js";
|
|
20
|
+
import "./chunk-5ELC3KK3.js";
|
|
21
21
|
import "./chunk-N7WZ6NIN.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-P3DCZRER.js";
|
|
23
23
|
import "./chunk-WDRMZKVB.js";
|
|
24
24
|
import "./chunk-JT7R45JB.js";
|
|
25
25
|
import "./chunk-77WWLBCI.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-A4JGXX2F.js";
|
|
27
27
|
import "./chunk-4TR3HZFT.js";
|
|
28
28
|
export {
|
|
29
29
|
ableTimeDependencyTarget,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
DEFAULT_ABLETIME_HOST,
|
|
5
5
|
normalizeAbleTimeHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VVOAXBND.js";
|
|
7
7
|
import {
|
|
8
8
|
httpFetch
|
|
9
9
|
} from "./chunk-VKQGAWHY.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
getAbleTimeHost,
|
|
13
13
|
loadAppSettings,
|
|
14
14
|
saveAbleTimeConnection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4H5WO4H3.js";
|
|
16
16
|
import "./chunk-NSTQ6QKD.js";
|
|
17
17
|
import "./chunk-KGZBYWZ3.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-KK63BFYN.js";
|
|
19
19
|
import "./chunk-WWUABK6B.js";
|
|
20
20
|
import "./chunk-FJZWM2ON.js";
|
|
21
21
|
|
|
@@ -287,7 +287,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
287
287
|
persistAbleTimeTokens(data, { host });
|
|
288
288
|
const token = data.access_token.trim();
|
|
289
289
|
try {
|
|
290
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
290
|
+
const { getAbleTimeOrientation } = await import("./abletime-KOGCIQCO.js");
|
|
291
291
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
292
292
|
return saveAbleTimeConnection({
|
|
293
293
|
accessToken: token,
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
parseAbleTimeOAuthCallbackUrl,
|
|
21
21
|
resolveAbleTimeOAuthHost,
|
|
22
22
|
startAbleTimeOAuth
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-CWHMLCLN.js";
|
|
24
|
+
import "./chunk-5ELC3KK3.js";
|
|
25
25
|
import "./chunk-N7WZ6NIN.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-P3DCZRER.js";
|
|
27
27
|
import "./chunk-WDRMZKVB.js";
|
|
28
28
|
import "./chunk-JT7R45JB.js";
|
|
29
29
|
import "./chunk-77WWLBCI.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-A4JGXX2F.js";
|
|
31
31
|
import "./chunk-4TR3HZFT.js";
|
|
32
32
|
export {
|
|
33
33
|
ABLETIME_OAUTH_CALLBACK_PATH,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
callAbleTimeRestTool,
|
|
8
8
|
looksLikeAbleTimeUlid,
|
|
9
9
|
textFromAbleTimeDoc
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-C2CBF4YE.js";
|
|
11
|
+
import "./chunk-VVOAXBND.js";
|
|
12
12
|
import "./chunk-VKQGAWHY.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4H5WO4H3.js";
|
|
14
14
|
import "./chunk-NSTQ6QKD.js";
|
|
15
15
|
import "./chunk-KGZBYWZ3.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-KK63BFYN.js";
|
|
17
17
|
import "./chunk-WWUABK6B.js";
|
|
18
18
|
import "./chunk-FJZWM2ON.js";
|
|
19
19
|
export {
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
callAbleTimeRestTool,
|
|
6
6
|
looksLikeAbleTimeUlid,
|
|
7
7
|
textFromAbleTimeDoc
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-3PGFAVFL.js";
|
|
9
|
+
import "./chunk-5ELC3KK3.js";
|
|
10
10
|
import "./chunk-N7WZ6NIN.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-P3DCZRER.js";
|
|
12
12
|
import "./chunk-WDRMZKVB.js";
|
|
13
13
|
import "./chunk-JT7R45JB.js";
|
|
14
14
|
import "./chunk-77WWLBCI.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-A4JGXX2F.js";
|
|
16
16
|
import "./chunk-4TR3HZFT.js";
|
|
17
17
|
export {
|
|
18
18
|
ABLETIME_REST_PREFIX,
|
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
));
|
|
25
25
|
|
|
26
26
|
// src/agents/cursor-runner.ts
|
|
27
|
-
var
|
|
27
|
+
var import_node_fs14 = require("fs");
|
|
28
28
|
var import_node_readline2 = require("readline");
|
|
29
29
|
|
|
30
30
|
// src/hook/nested-electron-env.ts
|
|
@@ -45,9 +45,9 @@ var STRIP_NESTED_ELECTRON_THEN_EXEC = [
|
|
|
45
45
|
].join("; ");
|
|
46
46
|
|
|
47
47
|
// src/agents/cursor-ripgrep.ts
|
|
48
|
-
var
|
|
48
|
+
var import_node_fs13 = require("fs");
|
|
49
49
|
var import_node_module2 = require("module");
|
|
50
|
-
var
|
|
50
|
+
var import_node_path14 = require("path");
|
|
51
51
|
|
|
52
52
|
// src/agents/cursor-sdk-resolve.ts
|
|
53
53
|
var import_node_fs2 = require("fs");
|
|
@@ -192,26 +192,26 @@ function cursorSdkRipgrepCandidate(opts) {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
// src/agents/node-launch.ts
|
|
195
|
-
var
|
|
195
|
+
var import_node_fs12 = require("fs");
|
|
196
196
|
var import_node_os5 = require("os");
|
|
197
|
-
var
|
|
197
|
+
var import_node_path13 = require("path");
|
|
198
198
|
|
|
199
199
|
// src/http/system-ca.ts
|
|
200
200
|
var import_node_child_process2 = require("child_process");
|
|
201
|
-
var
|
|
202
|
-
var
|
|
201
|
+
var import_node_fs8 = require("fs");
|
|
202
|
+
var import_node_path9 = require("path");
|
|
203
203
|
var import_node_tls = __toESM(require("tls"), 1);
|
|
204
204
|
|
|
205
205
|
// src/store/paths.ts
|
|
206
|
-
var import_node_path6 = require("path");
|
|
207
|
-
var import_node_os3 = require("os");
|
|
208
206
|
var import_node_path7 = require("path");
|
|
209
|
-
var
|
|
207
|
+
var import_node_os3 = require("os");
|
|
208
|
+
var import_node_path8 = require("path");
|
|
209
|
+
var import_node_fs7 = require("fs");
|
|
210
210
|
|
|
211
211
|
// src/hook/settings.ts
|
|
212
|
-
var
|
|
212
|
+
var import_node_fs6 = require("fs");
|
|
213
213
|
var import_node_os2 = require("os");
|
|
214
|
-
var
|
|
214
|
+
var import_node_path6 = require("path");
|
|
215
215
|
var import_smol_toml = require("smol-toml");
|
|
216
216
|
|
|
217
217
|
// src/hook/convention-setup.ts
|
|
@@ -224,11 +224,15 @@ var import_node_path4 = require("path");
|
|
|
224
224
|
var import_execa = require("execa");
|
|
225
225
|
var import_node_readline = require("readline");
|
|
226
226
|
|
|
227
|
+
// src/hook/dev-preview.ts
|
|
228
|
+
var import_node_fs5 = require("fs");
|
|
229
|
+
var import_node_path5 = require("path");
|
|
230
|
+
|
|
227
231
|
// src/store/paths.ts
|
|
228
232
|
function appDataDir() {
|
|
229
233
|
const override = process.env.SIDEBOARD_APP_DATA?.trim();
|
|
230
|
-
const base = override ? override : process.platform === "darwin" ? (0,
|
|
231
|
-
(0,
|
|
234
|
+
const base = override ? override : process.platform === "darwin" ? (0, import_node_path8.join)((0, import_node_os3.homedir)(), "Library", "Application Support", "sideboard") : process.platform === "win32" ? (0, import_node_path8.join)(process.env.APPDATA ?? (0, import_node_path8.join)((0, import_node_os3.homedir)(), "AppData", "Roaming"), "sideboard") : (0, import_node_path8.join)((0, import_node_os3.homedir)(), ".local", "share", "sideboard");
|
|
235
|
+
(0, import_node_fs7.mkdirSync)(base, { recursive: true });
|
|
232
236
|
return base;
|
|
233
237
|
}
|
|
234
238
|
|
|
@@ -239,17 +243,17 @@ var BUNDLE_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
|
|
|
239
243
|
var import_execa2 = require("execa");
|
|
240
244
|
|
|
241
245
|
// src/git/github-agent-auth.ts
|
|
242
|
-
var import_node_fs8 = require("fs");
|
|
243
|
-
var import_node_os4 = require("os");
|
|
244
|
-
var import_node_path9 = require("path");
|
|
245
|
-
|
|
246
|
-
// src/git/stale-lock.ts
|
|
247
246
|
var import_node_fs9 = require("fs");
|
|
247
|
+
var import_node_os4 = require("os");
|
|
248
248
|
var import_node_path10 = require("path");
|
|
249
249
|
|
|
250
|
-
// src/
|
|
250
|
+
// src/git/stale-lock.ts
|
|
251
251
|
var import_node_fs10 = require("fs");
|
|
252
252
|
var import_node_path11 = require("path");
|
|
253
|
+
|
|
254
|
+
// src/agents/packaged-runtime.ts
|
|
255
|
+
var import_node_fs11 = require("fs");
|
|
256
|
+
var import_node_path12 = require("path");
|
|
253
257
|
function electronResourcesPath() {
|
|
254
258
|
const resources = process.resourcesPath;
|
|
255
259
|
if (typeof resources !== "string" || !resources) return null;
|
|
@@ -258,14 +262,14 @@ function electronResourcesPath() {
|
|
|
258
262
|
function packagedCursorRuntimeDir() {
|
|
259
263
|
const resources = electronResourcesPath();
|
|
260
264
|
if (!resources) return null;
|
|
261
|
-
const dir = (0,
|
|
262
|
-
if (!(0,
|
|
265
|
+
const dir = (0, import_node_path12.join)(resources, "cursor-runtime");
|
|
266
|
+
if (!(0, import_node_fs11.existsSync)((0, import_node_path12.join)(dir, "core-dist", "agents", "cursor-runner.js"))) return null;
|
|
263
267
|
return dir;
|
|
264
268
|
}
|
|
265
269
|
function packagedCursorRipgrepCandidate(platformPkg, binName) {
|
|
266
270
|
const dir = packagedCursorRuntimeDir();
|
|
267
271
|
if (!dir) return null;
|
|
268
|
-
return (0,
|
|
272
|
+
return (0, import_node_path12.join)(dir, "node_modules", platformPkg, "bin", binName);
|
|
269
273
|
}
|
|
270
274
|
|
|
271
275
|
// src/agents/node-launch.ts
|
|
@@ -277,7 +281,7 @@ function unpackedAsarPath(filePath) {
|
|
|
277
281
|
if (!isAsarPath(filePath)) return null;
|
|
278
282
|
const unpacked = filePath.replace(/\.asar(?=[/\\])/, ".asar.unpacked");
|
|
279
283
|
if (unpacked === filePath) return null;
|
|
280
|
-
return (0,
|
|
284
|
+
return (0, import_node_fs12.existsSync)(unpacked) ? unpacked : null;
|
|
281
285
|
}
|
|
282
286
|
function nodeReadableScriptPath(scriptPath) {
|
|
283
287
|
return unpackedAsarPath(scriptPath) ?? scriptPath;
|
|
@@ -293,21 +297,21 @@ function platformRipgrepPackage() {
|
|
|
293
297
|
}
|
|
294
298
|
function usableRipgrepPath(candidate) {
|
|
295
299
|
const raw = candidate?.trim();
|
|
296
|
-
if (!raw || !(0,
|
|
300
|
+
if (!raw || !(0, import_node_path14.isAbsolute)(raw)) return null;
|
|
297
301
|
const readable = nodeReadableScriptPath(raw);
|
|
298
|
-
if (!(0,
|
|
302
|
+
if (!(0, import_node_fs13.existsSync)(readable) || isAsarPath(readable)) return null;
|
|
299
303
|
return readable;
|
|
300
304
|
}
|
|
301
305
|
function walkForBundledRipgrep(startFile) {
|
|
302
306
|
if (!startFile) return null;
|
|
303
307
|
const pkg = platformRipgrepPackage();
|
|
304
308
|
const name = rgBinaryName();
|
|
305
|
-
let dir = (0,
|
|
306
|
-
const root = (0,
|
|
309
|
+
let dir = (0, import_node_path14.dirname)((0, import_node_path14.resolve)(startFile));
|
|
310
|
+
const root = (0, import_node_path14.parse)(dir).root;
|
|
307
311
|
while (dir !== root) {
|
|
308
|
-
const hit = usableRipgrepPath((0,
|
|
312
|
+
const hit = usableRipgrepPath((0, import_node_path14.join)(dir, "node_modules", pkg, "bin", name));
|
|
309
313
|
if (hit) return hit;
|
|
310
|
-
const next = (0,
|
|
314
|
+
const next = (0, import_node_path14.dirname)(dir);
|
|
311
315
|
if (next === dir) break;
|
|
312
316
|
dir = next;
|
|
313
317
|
}
|
|
@@ -317,7 +321,7 @@ function requireResolveBundledRipgrep(fromFile) {
|
|
|
317
321
|
try {
|
|
318
322
|
const req = (0, import_node_module2.createRequire)(fromFile);
|
|
319
323
|
const pkgJson = req.resolve(`${platformRipgrepPackage()}/package.json`);
|
|
320
|
-
return usableRipgrepPath((0,
|
|
324
|
+
return usableRipgrepPath((0, import_node_path14.join)((0, import_node_path14.dirname)(pkgJson), "bin", rgBinaryName()));
|
|
321
325
|
} catch {
|
|
322
326
|
return null;
|
|
323
327
|
}
|
|
@@ -343,13 +347,13 @@ function ensureCursorRipgrepPath(opts) {
|
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
// src/agents/cursor-store.ts
|
|
346
|
-
var
|
|
350
|
+
var import_node_path15 = require("path");
|
|
347
351
|
var CURSOR_SDK_STORE_DIR = "cursor-sdk-store";
|
|
348
352
|
function cursorSdkStoreDir(threadId) {
|
|
349
|
-
const root = (0,
|
|
353
|
+
const root = (0, import_node_path15.join)(appDataDir(), CURSOR_SDK_STORE_DIR);
|
|
350
354
|
const id = sanitizeCursorStoreSegment(threadId);
|
|
351
355
|
if (!id) return root;
|
|
352
|
-
return (0,
|
|
356
|
+
return (0, import_node_path15.join)(root, "threads", id);
|
|
353
357
|
}
|
|
354
358
|
function sanitizeCursorStoreSegment(threadId) {
|
|
355
359
|
return (threadId ?? "").trim().replace(/[^a-zA-Z0-9._-]/g, "_");
|
|
@@ -879,7 +883,7 @@ function emit(event) {
|
|
|
879
883
|
}
|
|
880
884
|
function localAgentStore(Store, threadId) {
|
|
881
885
|
const root = cursorSdkStoreDir(threadId);
|
|
882
|
-
(0,
|
|
886
|
+
(0, import_node_fs14.mkdirSync)(root, { recursive: true });
|
|
883
887
|
return new Store(root);
|
|
884
888
|
}
|
|
885
889
|
async function cancelStaleLocalRuns(Agent, agentId, opts) {
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
importCursorSdk,
|
|
16
16
|
looksLikeCursorHttp2StreamClose,
|
|
17
17
|
resolveCursorSdkRoot
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-5SHYLRTU.js";
|
|
19
19
|
import {
|
|
20
20
|
cursorSdkStoreDir
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-224IXQOM.js";
|
|
22
|
+
import "../chunk-A4JGXX2F.js";
|
|
23
23
|
import "../chunk-QVN2WOKJ.js";
|
|
24
24
|
import {
|
|
25
25
|
dropNestedElectronEnvFromProcess
|
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
resolveLoginCommand,
|
|
45
45
|
resolveQuotaFallbackAgent,
|
|
46
46
|
whichOnPath
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-DYXNBXE3.js";
|
|
48
|
+
import "./chunk-5UN5C5WP.js";
|
|
49
|
+
import "./chunk-O3UAQAYA.js";
|
|
50
50
|
import "./chunk-6K64FJDD.js";
|
|
51
51
|
import "./chunk-2P4XKWV2.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-CJKL7A4G.js";
|
|
53
53
|
import "./chunk-ROPGQRPU.js";
|
|
54
54
|
import "./chunk-N7WZ6NIN.js";
|
|
55
55
|
import {
|
|
@@ -60,19 +60,19 @@ import {
|
|
|
60
60
|
preferredCursorCostCents,
|
|
61
61
|
resolveCursorSdkRoot,
|
|
62
62
|
turnCostUsdFromCursorUsage
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-5SHYLRTU.js";
|
|
64
64
|
import {
|
|
65
65
|
ORCHESTRATOR_AGENT_KINDS,
|
|
66
66
|
assertOrchestratorCapableAgent,
|
|
67
67
|
coerceOrchestratorAgent,
|
|
68
68
|
isOrchestratorCapableAgent
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-P3DCZRER.js";
|
|
70
70
|
import "./chunk-WDRMZKVB.js";
|
|
71
71
|
import "./chunk-JT7R45JB.js";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-3AJUH66R.js";
|
|
73
|
+
import "./chunk-224IXQOM.js";
|
|
74
74
|
import "./chunk-77WWLBCI.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-A4JGXX2F.js";
|
|
76
76
|
import {
|
|
77
77
|
conductorBundledBinDir,
|
|
78
78
|
enrichPathWithNpmGlobalBin,
|
|
@@ -53,15 +53,15 @@ import {
|
|
|
53
53
|
resolveQuotaFallbackAgent,
|
|
54
54
|
turnCostUsdFromCursorUsage,
|
|
55
55
|
whichOnPath
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-ANGPU5JL.js";
|
|
57
|
+
import "./chunk-RRXRLHIE.js";
|
|
58
|
+
import "./chunk-J5GON4SU.js";
|
|
59
59
|
import "./chunk-P2BSMNHB.js";
|
|
60
60
|
import "./chunk-VKQGAWHY.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-JXZS56VW.js";
|
|
62
62
|
import "./chunk-D6JWYJ4P.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-NJ5OXOTN.js";
|
|
64
|
+
import "./chunk-N6XI5KXL.js";
|
|
65
65
|
import "./chunk-DD67JWTN.js";
|
|
66
66
|
import {
|
|
67
67
|
conductorBundledBinDir,
|
|
@@ -79,10 +79,10 @@ import {
|
|
|
79
79
|
assertOrchestratorCapableAgent,
|
|
80
80
|
coerceOrchestratorAgent,
|
|
81
81
|
isOrchestratorCapableAgent
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-4H5WO4H3.js";
|
|
83
83
|
import "./chunk-NSTQ6QKD.js";
|
|
84
84
|
import "./chunk-KGZBYWZ3.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-KK63BFYN.js";
|
|
86
86
|
import "./chunk-WWUABK6B.js";
|
|
87
87
|
import "./chunk-FJZWM2ON.js";
|
|
88
88
|
export {
|
|
@@ -97,10 +97,10 @@ import {
|
|
|
97
97
|
updateProjectProfileSettings,
|
|
98
98
|
usageOnLimit,
|
|
99
99
|
writeViewerContext
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-4H5WO4H3.js";
|
|
101
101
|
import "./chunk-NSTQ6QKD.js";
|
|
102
102
|
import "./chunk-KGZBYWZ3.js";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-KK63BFYN.js";
|
|
104
104
|
import "./chunk-WWUABK6B.js";
|
|
105
105
|
import "./chunk-FJZWM2ON.js";
|
|
106
106
|
export {
|
|
@@ -95,11 +95,11 @@ import {
|
|
|
95
95
|
updateProjectProfileSettings,
|
|
96
96
|
usageOnLimit,
|
|
97
97
|
writeViewerContext
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-P3DCZRER.js";
|
|
99
99
|
import "./chunk-WDRMZKVB.js";
|
|
100
100
|
import "./chunk-JT7R45JB.js";
|
|
101
101
|
import "./chunk-77WWLBCI.js";
|
|
102
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-A4JGXX2F.js";
|
|
103
103
|
import "./chunk-4TR3HZFT.js";
|
|
104
104
|
export {
|
|
105
105
|
AGENT_DONE_SOUNDS,
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
releaseCaffeinateHoldForThread,
|
|
8
8
|
setCaffeinateHold,
|
|
9
9
|
setCaffeinateHoldHooks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DQN5U2VH.js";
|
|
11
11
|
import "./chunk-NSTQ6QKD.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-KK63BFYN.js";
|
|
13
13
|
export {
|
|
14
14
|
caffeinateHoldPath,
|
|
15
15
|
getCaffeinateHold,
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
releaseCaffeinateHoldForThread,
|
|
6
6
|
setCaffeinateHold,
|
|
7
7
|
setCaffeinateHoldHooks
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OJFEVWZN.js";
|
|
9
9
|
import "./chunk-JT7R45JB.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-A4JGXX2F.js";
|
|
11
11
|
export {
|
|
12
12
|
caffeinateHoldPath,
|
|
13
13
|
getCaffeinateHold,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorSdkStoreDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-224IXQOM.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeThinkingEffort
|
|
6
6
|
} from "./chunk-77WWLBCI.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
threadFilePath,
|
|
9
9
|
threadLockPath,
|
|
10
10
|
threadsDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A4JGXX2F.js";
|
|
12
12
|
|
|
13
13
|
// src/store/thread-store.ts
|
|
14
14
|
import { randomUUID } from "crypto";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
normalizeAbleTimeCredential,
|
|
5
5
|
normalizeAbleTimeHost,
|
|
6
6
|
rewriteAbleTimeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5ELC3KK3.js";
|
|
8
8
|
import {
|
|
9
9
|
httpFetch
|
|
10
10
|
} from "./chunk-N7WZ6NIN.js";
|
|
11
11
|
import {
|
|
12
12
|
getAbleTimeAccessToken,
|
|
13
13
|
getAbleTimeHost
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P3DCZRER.js";
|
|
15
15
|
|
|
16
16
|
// src/integrations/abletime-rest.ts
|
|
17
17
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getAbleTimeHost,
|
|
6
6
|
isAbleTimeConnected
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P3DCZRER.js";
|
|
8
8
|
|
|
9
9
|
// src/integrations/abletime-mcp.ts
|
|
10
10
|
var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
|
|
@@ -153,7 +153,7 @@ function textsFromUnknown(value) {
|
|
|
153
153
|
return "";
|
|
154
154
|
}
|
|
155
155
|
async function abletimeMcpRequest(method, params, opts) {
|
|
156
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
156
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-QMDV45JC.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
157
157
|
if (!rawToken?.trim()) {
|
|
158
158
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
159
159
|
}
|
|
@@ -224,9 +224,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
224
224
|
if (!opts?.token && !isAbleTimeConnected()) {
|
|
225
225
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
226
226
|
}
|
|
227
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
227
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-QMDV45JC.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
228
228
|
if (rawToken && ableTimeUsesRest(rawToken)) {
|
|
229
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
229
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-NL56UVK5.js");
|
|
230
230
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
231
231
|
}
|
|
232
232
|
const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
|
|
@@ -242,7 +242,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
242
242
|
return await call();
|
|
243
243
|
}
|
|
244
244
|
if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
|
|
245
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
245
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-NL56UVK5.js");
|
|
246
246
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
247
247
|
}
|
|
248
248
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveRepoRoot,
|
|
7
7
|
takenSlugsFromThread,
|
|
8
8
|
teamSlugFromName
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O3UAQAYA.js";
|
|
10
10
|
import {
|
|
11
11
|
ATTACHMENTS_DIR,
|
|
12
12
|
attachmentsGitignoreBody
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
resolveThreadDefaults,
|
|
24
24
|
resolveViewerProfile,
|
|
25
25
|
resolveViewerProfileForRepo
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-P3DCZRER.js";
|
|
27
27
|
import {
|
|
28
28
|
createEmptyThread,
|
|
29
29
|
listThreads,
|
|
30
30
|
updateThread,
|
|
31
31
|
writeThread
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3AJUH66R.js";
|
|
33
33
|
import {
|
|
34
34
|
appDataDir,
|
|
35
35
|
globalAgentCwd,
|
|
36
36
|
sideboardReposDir
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-A4JGXX2F.js";
|
|
38
38
|
|
|
39
39
|
// src/store/workspaces.ts
|
|
40
40
|
import { existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync3, statSync as statSync2, writeFileSync as writeFileSync3 } from "fs";
|
|
@@ -402,7 +402,7 @@ var COORDINATOR_TOOL_PLAYBOOK = [
|
|
|
402
402
|
"- archive_thread / restore_thread \u2014 archive (tears down worktree when last tab) or restore",
|
|
403
403
|
"Setup / run:",
|
|
404
404
|
"- run_setup \u2014 re-run worktree setup (already runs automatically on create when a script exists)",
|
|
405
|
-
"- list_run_scripts / run_dev_script / stop_dev_script \u2014 start/stop named run scripts",
|
|
405
|
+
"- list_run_scripts / run_dev_script / stop_dev_script \u2014 start/stop named run scripts. run_dev_script returns {url, port, preview} (SIDEBOARD_PORT). preview=url \u2192 tell the worktree agent to open that URL; preview=window \u2192 Electron: the native window is the app (url is renderer/HMR only). Never localhost:3000. list_run_scripts active[].url if already running.",
|
|
406
406
|
"Inspect / review / PRs:",
|
|
407
407
|
"- get_diff \u2014 compact diff summary",
|
|
408
408
|
"- get_pr_checks \u2014 snapshot of a worktree thread's PR checks (null = no PR). Use this to inspect status. If the user gave a goal, the worktree agent watches with `gh pr checks --watch` \u2014 do not poll for the human.",
|