@sideboard-ai/core 0.1.234 → 0.1.235

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.
@@ -44,7 +44,7 @@ import {
44
44
  resolveLoginCommand,
45
45
  resolveQuotaFallbackAgent,
46
46
  whichOnPath
47
- } from "./chunk-2UBVFL2X.js";
47
+ } from "./chunk-D4VKJO5C.js";
48
48
  import "./chunk-S2OEFXST.js";
49
49
  import "./chunk-7H2CVVLF.js";
50
50
  import "./chunk-6K64FJDD.js";
@@ -53,7 +53,7 @@ import {
53
53
  resolveQuotaFallbackAgent,
54
54
  turnCostUsdFromCursorUsage,
55
55
  whichOnPath
56
- } from "./chunk-NOIWXANG.js";
56
+ } from "./chunk-EAYXD2IC.js";
57
57
  import "./chunk-TWXSZYR2.js";
58
58
  import "./chunk-SPAMHHJH.js";
59
59
  import "./chunk-P2BSMNHB.js";
@@ -24,7 +24,7 @@ import {
24
24
  resolveQuotaFallbackAgent,
25
25
  stripBrightsyNdjsonNoise,
26
26
  toolDescription
27
- } from "./chunk-2UBVFL2X.js";
27
+ } from "./chunk-D4VKJO5C.js";
28
28
  import {
29
29
  SLACK_REPLY_FORMATTING,
30
30
  addWorkspace,
@@ -482,7 +482,7 @@ async function continueSourceThread(threadId, prompt) {
482
482
  await continueOnReply(threadId, prompt);
483
483
  return;
484
484
  }
485
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-R2WCTNJI.js");
485
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-RKWRI3PJ.js");
486
486
  await getOrchestrator2().send(threadId, prompt);
487
487
  } catch {
488
488
  }
@@ -4266,7 +4266,7 @@ async function createThread(input, _onSetupLine) {
4266
4266
  return readThread(thread.id) ?? thread;
4267
4267
  }
4268
4268
  async function listLinearIssues(agent, repoPath) {
4269
- const { getAdapter: getAdapter2 } = await import("./agents-BTXL6R5I.js");
4269
+ const { getAdapter: getAdapter2 } = await import("./agents-37JCAVSC.js");
4270
4270
  await requireAgent(agent, { requireLinear: true });
4271
4271
  const adapter = getAdapter2(agent);
4272
4272
  if (!adapter.listLinearIssues) {
@@ -7421,7 +7421,7 @@ function formatScheduledPrompt(name, prompt) {
7421
7421
  ${prompt}`;
7422
7422
  }
7423
7423
  async function defaultDeps() {
7424
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-R2WCTNJI.js");
7424
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-RKWRI3PJ.js");
7425
7425
  const orch = getOrchestrator2();
7426
7426
  return {
7427
7427
  findThread: (id) => findThreadByRef(id),
@@ -9039,7 +9039,8 @@ var Orchestrator = class {
9039
9039
  }
9040
9040
  return this.waitForDesktopRunScript(thread.id, request, op, scriptName);
9041
9041
  }
9042
- async waitForDesktopRunScript(threadId, request, op, scriptName) {
9042
+ async waitForDesktopRunScript(threadId, initialRequest, op, scriptName) {
9043
+ let request = initialRequest;
9043
9044
  const deadline = Date.now() + this.runScriptAdoptTimeoutMs;
9044
9045
  while (Date.now() < deadline) {
9045
9046
  const latest = readThread(threadId);
@@ -9063,6 +9064,15 @@ var Orchestrator = class {
9063
9064
  }
9064
9065
  } else if (fulfilled) {
9065
9066
  return null;
9067
+ } else if (requestGone) {
9068
+ const coversThisStop = req?.op === "stop" && (req.scriptName == null || req.scriptName === (scriptName ?? null));
9069
+ if (req && coversThisStop) {
9070
+ request = req;
9071
+ continue;
9072
+ }
9073
+ throw new Error(
9074
+ req?.op === "start" ? "Stop was replaced by a newer start request before desktop applied it." : "Stop was replaced by another run-script request before desktop applied it."
9075
+ );
9066
9076
  }
9067
9077
  await new Promise((r) => setTimeout(r, 40));
9068
9078
  }
@@ -3998,7 +3998,8 @@ async function installNpmGlobalPackage(opts) {
3998
3998
  exitCode: 0,
3999
3999
  stdout: result.stdout,
4000
4000
  stderr: result.stderr,
4001
- message: binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
4001
+ // Library-only packages (`@cursor/sdk`) have no CLI to look for.
4002
+ message: !opts.cliBin ? `Installed ${opts.npmPackage}` : binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
4002
4003
  };
4003
4004
  }
4004
4005
  async function resolveExistingCli(agent) {
@@ -4810,7 +4810,8 @@ async function installNpmGlobalPackage(opts) {
4810
4810
  exitCode: 0,
4811
4811
  stdout: result.stdout,
4812
4812
  stderr: result.stderr,
4813
- message: binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
4813
+ // Library-only packages (`@cursor/sdk`) have no CLI to look for.
4814
+ message: !opts.cliBin ? `Installed ${opts.npmPackage}` : binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
4814
4815
  };
4815
4816
  }
4816
4817
  async function resolveExistingCli(agent) {
@@ -42,7 +42,7 @@ import {
42
42
  summarizeTurnStderr,
43
43
  toolDescription,
44
44
  turnFailChatText
45
- } from "./chunk-NOIWXANG.js";
45
+ } from "./chunk-EAYXD2IC.js";
46
46
  import {
47
47
  SLACK_REPLY_FORMATTING,
48
48
  addWorkspace,
@@ -418,7 +418,7 @@ async function continueSourceThread(threadId, prompt) {
418
418
  await continueOnReply(threadId, prompt);
419
419
  return;
420
420
  }
421
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-7ZEGFPK4.js");
421
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-6NPBOBNA.js");
422
422
  await getOrchestrator2().send(threadId, prompt);
423
423
  } catch {
424
424
  }
@@ -7032,7 +7032,7 @@ function formatScheduledPrompt(name, prompt) {
7032
7032
  ${prompt}`;
7033
7033
  }
7034
7034
  async function defaultDeps() {
7035
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-7ZEGFPK4.js");
7035
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-6NPBOBNA.js");
7036
7036
  const orch = getOrchestrator2();
7037
7037
  return {
7038
7038
  findThread: (id) => findThreadByRef(id),
@@ -8650,7 +8650,8 @@ var Orchestrator = class {
8650
8650
  }
8651
8651
  return this.waitForDesktopRunScript(thread.id, request, op, scriptName);
8652
8652
  }
8653
- async waitForDesktopRunScript(threadId, request, op, scriptName) {
8653
+ async waitForDesktopRunScript(threadId, initialRequest, op, scriptName) {
8654
+ let request = initialRequest;
8654
8655
  const deadline = Date.now() + this.runScriptAdoptTimeoutMs;
8655
8656
  while (Date.now() < deadline) {
8656
8657
  const latest = readThread(threadId);
@@ -8674,6 +8675,15 @@ var Orchestrator = class {
8674
8675
  }
8675
8676
  } else if (fulfilled) {
8676
8677
  return null;
8678
+ } else if (requestGone) {
8679
+ const coversThisStop = req?.op === "stop" && (req.scriptName == null || req.scriptName === (scriptName ?? null));
8680
+ if (req && coversThisStop) {
8681
+ request = req;
8682
+ continue;
8683
+ }
8684
+ throw new Error(
8685
+ req?.op === "start" ? "Stop was replaced by a newer start request before desktop applied it." : "Stop was replaced by another run-script request before desktop applied it."
8686
+ );
8677
8687
  }
8678
8688
  await new Promise((r) => setTimeout(r, 40));
8679
8689
  }
package/dist/index.cjs CHANGED
@@ -15597,7 +15597,8 @@ async function installNpmGlobalPackage(opts) {
15597
15597
  exitCode: 0,
15598
15598
  stdout: result.stdout,
15599
15599
  stderr: result.stderr,
15600
- message: binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
15600
+ // Library-only packages (`@cursor/sdk`) have no CLI to look for.
15601
+ message: !opts.cliBin ? `Installed ${opts.npmPackage}` : binPath ? `Installed ${opts.npmPackage} \u2192 ${binPath}` : `Installed ${opts.npmPackage} (CLI not yet on PATH)`
15601
15602
  };
15602
15603
  }
15603
15604
  async function resolveExistingCli(agent) {
@@ -25204,7 +25205,8 @@ var init_orchestrator = __esm({
25204
25205
  }
25205
25206
  return this.waitForDesktopRunScript(thread.id, request, op, scriptName);
25206
25207
  }
25207
- async waitForDesktopRunScript(threadId, request, op, scriptName) {
25208
+ async waitForDesktopRunScript(threadId, initialRequest, op, scriptName) {
25209
+ let request = initialRequest;
25208
25210
  const deadline = Date.now() + this.runScriptAdoptTimeoutMs;
25209
25211
  while (Date.now() < deadline) {
25210
25212
  const latest = readThread(threadId);
@@ -25228,6 +25230,15 @@ var init_orchestrator = __esm({
25228
25230
  }
25229
25231
  } else if (fulfilled) {
25230
25232
  return null;
25233
+ } else if (requestGone) {
25234
+ const coversThisStop = req?.op === "stop" && (req.scriptName == null || req.scriptName === (scriptName ?? null));
25235
+ if (req && coversThisStop) {
25236
+ request = req;
25237
+ continue;
25238
+ }
25239
+ throw new Error(
25240
+ req?.op === "start" ? "Stop was replaced by a newer start request before desktop applied it." : "Stop was replaced by another run-script request before desktop applied it."
25241
+ );
25231
25242
  }
25232
25243
  await new Promise((r) => setTimeout(r, 40));
25233
25244
  }
package/dist/index.js CHANGED
@@ -325,7 +325,7 @@ import {
325
325
  worktreeCleanupSettings,
326
326
  wrapReviewSkillMarkdown,
327
327
  writeWorktreeFile
328
- } from "./chunk-LEYY54BN.js";
328
+ } from "./chunk-7366AB7E.js";
329
329
  import {
330
330
  LEGACY_PLAN_FILE_REL,
331
331
  PLAN_FILE_NAME,
@@ -442,7 +442,7 @@ import {
442
442
  withEventParentId,
443
443
  withEventsParentId,
444
444
  writeInjectedMcpConfig
445
- } from "./chunk-2UBVFL2X.js";
445
+ } from "./chunk-D4VKJO5C.js";
446
446
  import {
447
447
  CLOUD_COORDINATOR_BUSY_REPLY,
448
448
  CLOUD_COORDINATOR_STOPPED_REPLY,
@@ -23365,7 +23365,8 @@ var init_orchestrator = __esm({
23365
23365
  }
23366
23366
  return this.waitForDesktopRunScript(thread.id, request, op, scriptName);
23367
23367
  }
23368
- async waitForDesktopRunScript(threadId, request, op, scriptName) {
23368
+ async waitForDesktopRunScript(threadId, initialRequest, op, scriptName) {
23369
+ let request = initialRequest;
23369
23370
  const deadline = Date.now() + this.runScriptAdoptTimeoutMs;
23370
23371
  while (Date.now() < deadline) {
23371
23372
  const latest = readThread(threadId);
@@ -23389,6 +23390,15 @@ var init_orchestrator = __esm({
23389
23390
  }
23390
23391
  } else if (fulfilled) {
23391
23392
  return null;
23393
+ } else if (requestGone) {
23394
+ const coversThisStop = req?.op === "stop" && (req.scriptName == null || req.scriptName === (scriptName ?? null));
23395
+ if (req && coversThisStop) {
23396
+ request = req;
23397
+ continue;
23398
+ }
23399
+ throw new Error(
23400
+ req?.op === "start" ? "Stop was replaced by a newer start request before desktop applied it." : "Stop was replaced by another run-script request before desktop applied it."
23401
+ );
23392
23402
  }
23393
23403
  await new Promise((r) => setTimeout(r, 40));
23394
23404
  }
@@ -51,7 +51,7 @@ import {
51
51
  threadsSharingWorktree,
52
52
  updateSchedule,
53
53
  waitForDetachedJob
54
- } from "../chunk-RKKTCKVX.js";
54
+ } from "../chunk-LJWF3VA3.js";
55
55
  import "../chunk-JFOPOMK7.js";
56
56
  import "../chunk-YWI3IBP2.js";
57
57
  import {
@@ -62,7 +62,7 @@ import {
62
62
  materializeSystemCaBundle,
63
63
  sideboardMcpProfile,
64
64
  trustSystemCertificates
65
- } from "../chunk-NOIWXANG.js";
65
+ } from "../chunk-EAYXD2IC.js";
66
66
  import {
67
67
  GLOBAL_WORKSPACE_ID,
68
68
  isCloudCoordinatorThread,
@@ -11,10 +11,10 @@ import {
11
11
  resolveSendFollowUp,
12
12
  startOrchestration,
13
13
  waitForPidExit
14
- } from "./chunk-RKKTCKVX.js";
14
+ } from "./chunk-LJWF3VA3.js";
15
15
  import "./chunk-JFOPOMK7.js";
16
16
  import "./chunk-YWI3IBP2.js";
17
- import "./chunk-NOIWXANG.js";
17
+ import "./chunk-EAYXD2IC.js";
18
18
  import "./chunk-TWXSZYR2.js";
19
19
  import "./chunk-SPAMHHJH.js";
20
20
  import "./chunk-P2BSMNHB.js";
@@ -9,9 +9,9 @@ import {
9
9
  resolveSendFollowUp,
10
10
  startOrchestration,
11
11
  waitForPidExit
12
- } from "./chunk-LEYY54BN.js";
12
+ } from "./chunk-7366AB7E.js";
13
13
  import "./chunk-DJU54RYW.js";
14
- import "./chunk-2UBVFL2X.js";
14
+ import "./chunk-D4VKJO5C.js";
15
15
  import "./chunk-S2OEFXST.js";
16
16
  import "./chunk-7H2CVVLF.js";
17
17
  import "./chunk-6K64FJDD.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/core",
3
- "version": "0.1.234",
3
+ "version": "0.1.235",
4
4
  "description": "Sideboard core — orchestration, agents, git worktrees, MCP server",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",