@sideboard-ai/core 0.1.110 → 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.
Files changed (43) hide show
  1. package/dist/agents/cursor-runner.cjs +32 -23
  2. package/dist/agents/cursor-runner.js +3 -3
  3. package/dist/{agents-WK54VP7J.js → agents-3X3EFCQY.js} +7 -7
  4. package/dist/{agents-MQDW3YXL.js → agents-AHAFC6FR.js} +10 -10
  5. package/dist/{chunk-4EWPKYOU.js → chunk-4OJMZ6P2.js} +2 -2
  6. package/dist/{chunk-VOJSO3RM.js → chunk-66XTXHR3.js} +277 -49
  7. package/dist/{chunk-KQBI5HNT.js → chunk-7WC5UWEB.js} +2 -2
  8. package/dist/{chunk-WIHKHR5R.js → chunk-AXQ4ZWHK.js} +5 -0
  9. package/dist/{chunk-RSIWPLRG.js → chunk-C6OBY6IC.js} +268 -27
  10. package/dist/{chunk-EAAB4EK5.js → chunk-DCNR7NAL.js} +44 -32
  11. package/dist/{chunk-LGXBYZZA.js → chunk-DVM4ID64.js} +69 -13
  12. package/dist/{chunk-2GO3YKBA.js → chunk-EKIDHL2T.js} +4 -4
  13. package/dist/{chunk-C4KHDW3U.js → chunk-FZCIQYNQ.js} +1 -1
  14. package/dist/{chunk-7KWYXGIU.js → chunk-K3TIQXOH.js} +2 -2
  15. package/dist/{chunk-3KETJKYA.js → chunk-KPIYENTF.js} +69 -13
  16. package/dist/{chunk-XOZDAVOP.js → chunk-MZ6HJ7VL.js} +52 -35
  17. package/dist/{chunk-3UOKB6VQ.js → chunk-SLU5JVKD.js} +282 -228
  18. package/dist/{chunk-VOD3HFLP.js → chunk-XOYQ7LNQ.js} +2 -2
  19. package/dist/{chunk-7YKXHBIW.js → chunk-YMRT2DU6.js} +3 -3
  20. package/dist/{chunk-YXDR43ZC.js → chunk-ZMROW673.js} +5 -5
  21. package/dist/{chunk-YFAXVUY2.js → chunk-ZRCX43LS.js} +2 -2
  22. package/dist/{chunk-AROMOP3C.js → chunk-ZYEFCSZJ.js} +2 -2
  23. package/dist/{connected-teams-M5XNXRI5.js → connected-teams-O6D4PM7A.js} +2 -2
  24. package/dist/{connected-teams-J4I5AKMR.js → connected-teams-ZCOU6KCD.js} +2 -2
  25. package/dist/{coordinator-prompt-AR66L3N4.js → coordinator-prompt-4KCALEKD.js} +3 -3
  26. package/dist/{coordinator-prompt-BHMLWL64.js → coordinator-prompt-FML4I5AR.js} +3 -3
  27. package/dist/{global-workspace-XSUFEIAQ.js → global-workspace-CSWABOG5.js} +4 -4
  28. package/dist/{global-workspace-SKFODUQQ.js → global-workspace-H4YNASM6.js} +4 -4
  29. package/dist/index.cjs +825 -443
  30. package/dist/index.d.cts +53 -1
  31. package/dist/index.d.ts +53 -1
  32. package/dist/index.js +33 -15
  33. package/dist/mcp/run-stdio.cjs +947 -644
  34. package/dist/mcp/run-stdio.js +18 -14
  35. package/dist/{orchestrator-SCATSB3O.js → orchestrator-GKLYKLRC.js} +8 -8
  36. package/dist/{orchestrator-FCZVCKBK.js → orchestrator-TXASYNHT.js} +10 -10
  37. package/dist/{run-XKTAJRWF.js → run-USF6FRKV.js} +3 -1
  38. package/dist/{run-CFKZPY7F.js → run-XQKGHQZ2.js} +3 -1
  39. package/dist/{workspaces-XAQVKTLO.js → workspaces-HJ3EVATC.js} +5 -5
  40. package/dist/{workspaces-HV3J4TTW.js → workspaces-QG6PGFQR.js} +5 -5
  41. package/dist/{worktree-XFJED3VU.js → worktree-IW3BX26B.js} +2 -2
  42. package/dist/{worktree-N2EV24EE.js → worktree-OTFQO2W7.js} +2 -2
  43. 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 import_node_fs9 = require("fs");
7
- var import_node_path10 = require("path");
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,15 +55,14 @@ function appDataDir() {
55
55
  }
56
56
 
57
57
  // src/agents/cursor-ripgrep.ts
58
- var import_node_fs8 = require("fs");
58
+ var import_node_fs9 = require("fs");
59
59
  var import_node_module = require("module");
60
- var import_node_path9 = require("path");
61
- var import_node_url = require("url");
60
+ var import_node_path10 = require("path");
62
61
 
63
62
  // src/agents/node-launch.ts
64
- var import_node_fs7 = require("fs");
63
+ var import_node_fs8 = require("fs");
65
64
  var import_node_os4 = require("os");
66
- var import_node_path8 = require("path");
65
+ var import_node_path9 = require("path");
67
66
 
68
67
  // src/git/run.ts
69
68
  var import_execa2 = require("execa");
@@ -74,9 +73,13 @@ var import_node_child_process = require("child_process");
74
73
  var import_node_os3 = require("os");
75
74
  var import_node_path6 = require("path");
76
75
 
77
- // src/agents/packaged-runtime.ts
76
+ // src/git/stale-lock.ts
78
77
  var import_node_fs6 = require("fs");
79
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");
80
83
  function electronResourcesPath() {
81
84
  const resources = process.resourcesPath;
82
85
  if (typeof resources !== "string" || !resources) return null;
@@ -85,14 +88,14 @@ function electronResourcesPath() {
85
88
  function packagedCursorRuntimeDir() {
86
89
  const resources = electronResourcesPath();
87
90
  if (!resources) return null;
88
- const dir = (0, import_node_path7.join)(resources, "cursor-runtime");
89
- if (!(0, import_node_fs6.existsSync)((0, import_node_path7.join)(dir, "core-dist", "agents", "cursor-runner.js"))) return null;
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;
90
93
  return dir;
91
94
  }
92
95
  function packagedCursorRipgrepCandidate(platformPkg, binName) {
93
96
  const dir = packagedCursorRuntimeDir();
94
97
  if (!dir) return null;
95
- return (0, import_node_path7.join)(dir, "node_modules", platformPkg, "bin", binName);
98
+ return (0, import_node_path8.join)(dir, "node_modules", platformPkg, "bin", binName);
96
99
  }
97
100
 
98
101
  // src/agents/node-launch.ts
@@ -104,14 +107,13 @@ function unpackedAsarPath(filePath) {
104
107
  if (!isAsarPath(filePath)) return null;
105
108
  const unpacked = filePath.replace(/\.asar(?=[/\\])/, ".asar.unpacked");
106
109
  if (unpacked === filePath) return null;
107
- return (0, import_node_fs7.existsSync)(unpacked) ? unpacked : null;
110
+ return (0, import_node_fs8.existsSync)(unpacked) ? unpacked : null;
108
111
  }
109
112
  function nodeReadableScriptPath(scriptPath) {
110
113
  return unpackedAsarPath(scriptPath) ?? scriptPath;
111
114
  }
112
115
 
113
116
  // src/agents/cursor-ripgrep.ts
114
- var import_meta = {};
115
117
  var RIPGREP_ENV = "CURSOR_RIPGREP_PATH";
116
118
  function rgBinaryName() {
117
119
  return process.platform === "win32" ? "rg.exe" : "rg";
@@ -121,21 +123,21 @@ function platformRipgrepPackage() {
121
123
  }
122
124
  function usableRipgrepPath(candidate) {
123
125
  const raw = candidate?.trim();
124
- if (!raw || !(0, import_node_path9.isAbsolute)(raw)) return null;
126
+ if (!raw || !(0, import_node_path10.isAbsolute)(raw)) return null;
125
127
  const readable = nodeReadableScriptPath(raw);
126
- if (!(0, import_node_fs8.existsSync)(readable) || isAsarPath(readable)) return null;
128
+ if (!(0, import_node_fs9.existsSync)(readable) || isAsarPath(readable)) return null;
127
129
  return readable;
128
130
  }
129
131
  function walkForBundledRipgrep(startFile) {
130
132
  if (!startFile) return null;
131
133
  const pkg = platformRipgrepPackage();
132
134
  const name = rgBinaryName();
133
- let dir = (0, import_node_path9.dirname)((0, import_node_path9.resolve)(startFile));
134
- const root = (0, import_node_path9.parse)(dir).root;
135
+ let dir = (0, import_node_path10.dirname)((0, import_node_path10.resolve)(startFile));
136
+ const root = (0, import_node_path10.parse)(dir).root;
135
137
  while (dir !== root) {
136
- const hit = usableRipgrepPath((0, import_node_path9.join)(dir, "node_modules", pkg, "bin", name));
138
+ const hit = usableRipgrepPath((0, import_node_path10.join)(dir, "node_modules", pkg, "bin", name));
137
139
  if (hit) return hit;
138
- const next = (0, import_node_path9.dirname)(dir);
140
+ const next = (0, import_node_path10.dirname)(dir);
139
141
  if (next === dir) break;
140
142
  dir = next;
141
143
  }
@@ -145,7 +147,7 @@ function requireResolveBundledRipgrep(fromFile) {
145
147
  try {
146
148
  const req = (0, import_node_module.createRequire)(fromFile);
147
149
  const pkgJson = req.resolve(`${platformRipgrepPackage()}/package.json`);
148
- return usableRipgrepPath((0, import_node_path9.join)((0, import_node_path9.dirname)(pkgJson), "bin", rgBinaryName()));
150
+ return usableRipgrepPath((0, import_node_path10.join)((0, import_node_path10.dirname)(pkgJson), "bin", rgBinaryName()));
149
151
  } catch {
150
152
  return null;
151
153
  }
@@ -158,7 +160,9 @@ function resolveCursorRipgrepPath(opts) {
158
160
  packagedCursorRipgrepCandidate(platformRipgrepPackage(), rgBinaryName())
159
161
  );
160
162
  if (fromPackaged) return fromPackaged;
161
- const start = opts?.startFile?.trim() || process.argv[1] || (0, import_node_url.fileURLToPath)(import_meta.url);
163
+ const start = opts?.startFile?.trim() || process.argv[1] || // CJS bundle only — ESM has no __filename; argv[1] is the running script.
164
+ // eslint-disable-next-line camelcase
165
+ (typeof __filename !== "undefined" ? __filename : "");
162
166
  return walkForBundledRipgrep(start) ?? requireResolveBundledRipgrep(start);
163
167
  }
164
168
  function ensureCursorRipgrepPath(opts) {
@@ -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, import_node_path10.join)(appDataDir(), "cursor-sdk-store");
556
- (0, import_node_fs9.mkdirSync)(root, { recursive: true });
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-WIHKHR5R.js";
4
+ } from "../chunk-AXQ4ZWHK.js";
5
5
  import {
6
6
  cursorDeltaToEvents,
7
7
  cursorSdkMessageToEvents,
8
8
  ensureCursorRipgrepPath,
9
9
  formatUnknownDetail
10
- } from "../chunk-3UOKB6VQ.js";
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-LGXBYZZA.js";
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-RSIWPLRG.js";
32
- import "./chunk-2GO3YKBA.js";
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-4EWPKYOU.js";
39
- import "./chunk-KQBI5HNT.js";
38
+ } from "./chunk-4OJMZ6P2.js";
39
+ import "./chunk-7WC5UWEB.js";
40
40
  import {
41
41
  cursorSdkMessageToEvents,
42
42
  parseCursorRunnerLine
43
- } from "./chunk-3UOKB6VQ.js";
44
- import "./chunk-C4KHDW3U.js";
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-LGXBYZZA.js";
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-VOJSO3RM.js";
36
- import "./chunk-7YKXHBIW.js";
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-VOD3HFLP.js";
43
- import "./chunk-AROMOP3C.js";
44
- import "./chunk-YXDR43ZC.js";
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-3KETJKYA.js";
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-KQBI5HNT.js";
3
+ } from "./chunk-7WC5UWEB.js";
4
4
  import {
5
5
  allocateTeamName,
6
6
  takenSlugsFromThread,
7
7
  teamSlugFromName
8
- } from "./chunk-C4KHDW3U.js";
8
+ } from "./chunk-FZCIQYNQ.js";
9
9
  import {
10
10
  resolveNewThreadOptions,
11
11
  resolveThreadDefaults