@sideboard-ai/core 0.1.44 → 0.1.46

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.
@@ -206,6 +206,7 @@ async function main() {
206
206
  const mode = req.planMode ? "plan" : "agent";
207
207
  const store = localAgentStore();
208
208
  const local = { cwd: req.cwd, store };
209
+ const mcpServers = req.mcpServers && Object.keys(req.mcpServers).length > 0 ? req.mcpServers : void 0;
209
210
  try {
210
211
  let agent;
211
212
  try {
@@ -213,13 +214,15 @@ async function main() {
213
214
  apiKey,
214
215
  model,
215
216
  mode,
216
- local
217
+ local,
218
+ ...mcpServers ? { mcpServers } : {}
217
219
  }) : await import_sdk.Agent.create({
218
220
  apiKey,
219
221
  model,
220
222
  mode,
221
223
  local,
222
- name: "Sideboard"
224
+ name: "Sideboard",
225
+ ...mcpServers ? { mcpServers } : {}
223
226
  });
224
227
  } catch (err) {
225
228
  const message = err instanceof Error ? err.message : String(err);
@@ -233,12 +236,16 @@ async function main() {
233
236
  model,
234
237
  mode,
235
238
  local,
236
- name: "Sideboard"
239
+ name: "Sideboard",
240
+ ...mcpServers ? { mcpServers } : {}
237
241
  });
238
242
  }
239
243
  try {
240
244
  emit({ type: "session_id", data: agent.agentId });
241
- const run = await agent.send(req.prompt);
245
+ const run = await agent.send(
246
+ req.prompt,
247
+ mcpServers ? { mcpServers } : void 0
248
+ );
242
249
  for await (const msg of run.stream()) {
243
250
  for (const event of cursorSdkMessageToEvents(msg)) {
244
251
  emit(event);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  cursorSdkMessageToEvents,
4
4
  formatUnknownDetail
5
- } from "../chunk-PU27NUO4.js";
5
+ } from "../chunk-J5JTEJ5O.js";
6
6
  import {
7
7
  appDataDir
8
8
  } from "../chunk-M37RITA6.js";
@@ -70,6 +70,7 @@ async function main() {
70
70
  const mode = req.planMode ? "plan" : "agent";
71
71
  const store = localAgentStore();
72
72
  const local = { cwd: req.cwd, store };
73
+ const mcpServers = req.mcpServers && Object.keys(req.mcpServers).length > 0 ? req.mcpServers : void 0;
73
74
  try {
74
75
  let agent;
75
76
  try {
@@ -77,13 +78,15 @@ async function main() {
77
78
  apiKey,
78
79
  model,
79
80
  mode,
80
- local
81
+ local,
82
+ ...mcpServers ? { mcpServers } : {}
81
83
  }) : await Agent.create({
82
84
  apiKey,
83
85
  model,
84
86
  mode,
85
87
  local,
86
- name: "Sideboard"
88
+ name: "Sideboard",
89
+ ...mcpServers ? { mcpServers } : {}
87
90
  });
88
91
  } catch (err) {
89
92
  const message = err instanceof Error ? err.message : String(err);
@@ -97,12 +100,16 @@ async function main() {
97
100
  model,
98
101
  mode,
99
102
  local,
100
- name: "Sideboard"
103
+ name: "Sideboard",
104
+ ...mcpServers ? { mcpServers } : {}
101
105
  });
102
106
  }
103
107
  try {
104
108
  emit({ type: "session_id", data: agent.agentId });
105
- const run = await agent.send(req.prompt);
109
+ const run = await agent.send(
110
+ req.prompt,
111
+ mcpServers ? { mcpServers } : void 0
112
+ );
106
113
  for await (const msg of run.stream()) {
107
114
  for (const event of cursorSdkMessageToEvents(msg)) {
108
115
  emit(event);
@@ -1,4 +1,5 @@
1
1
  import {
2
+ CLAUDE_MODEL_CATALOG,
2
3
  PLAN_MODE_INSTRUCTION,
3
4
  allAdapters,
4
5
  brightsyAdapter,
@@ -11,34 +12,48 @@ import {
11
12
  getAgentSetupInfo,
12
13
  installAgent,
13
14
  isCursorAutoModel,
15
+ isSessionQuotaLimit,
14
16
  listAgentSetupInfo,
15
17
  listBrightsyChatTargets,
16
18
  listCodexModels,
17
19
  listCursorModels,
20
+ listModelsForAgent,
18
21
  listOpencodeModels,
19
22
  loginAgent,
20
23
  openInSystemTerminal,
21
24
  opencodeAdapter,
25
+ parseSessionQuotaResetAt,
22
26
  permissionMode,
23
- resolveCursorModelId
24
- } from "./chunk-XX26NCB6.js";
27
+ resolveCursorModelId,
28
+ resolveQuotaFallbackAgent
29
+ } from "./chunk-TQK2OYPU.js";
30
+ import {
31
+ ORCHESTRATOR_AGENT_KINDS,
32
+ assertOrchestratorCapableAgent,
33
+ coerceOrchestratorAgent,
34
+ isOrchestratorCapableAgent
35
+ } from "./chunk-GI7E5733.js";
25
36
  import "./chunk-ILQK4P5R.js";
26
37
  import {
27
38
  cursorSdkMessageToEvents,
28
39
  parseCursorRunnerLine
29
- } from "./chunk-PU27NUO4.js";
30
- import "./chunk-FSIK442J.js";
40
+ } from "./chunk-J5JTEJ5O.js";
41
+ import "./chunk-T5QQVXK3.js";
31
42
  import "./chunk-77WWLBCI.js";
32
43
  import "./chunk-M37RITA6.js";
33
44
  import {
34
45
  ensureAgentPath
35
46
  } from "./chunk-AJ6ROGD7.js";
36
47
  export {
48
+ CLAUDE_MODEL_CATALOG,
49
+ ORCHESTRATOR_AGENT_KINDS,
37
50
  PLAN_MODE_INSTRUCTION,
38
51
  allAdapters,
52
+ assertOrchestratorCapableAgent,
39
53
  brightsyAdapter,
40
54
  claudeAdapter,
41
55
  codexAdapter,
56
+ coerceOrchestratorAgent,
42
57
  cursorAdapter,
43
58
  cursorSdkMessageToEvents,
44
59
  decodeBrightsyTarget,
@@ -48,15 +63,20 @@ export {
48
63
  getAgentSetupInfo,
49
64
  installAgent,
50
65
  isCursorAutoModel,
66
+ isOrchestratorCapableAgent,
67
+ isSessionQuotaLimit,
51
68
  listAgentSetupInfo,
52
69
  listBrightsyChatTargets,
53
70
  listCodexModels,
54
71
  listCursorModels,
72
+ listModelsForAgent,
55
73
  listOpencodeModels,
56
74
  loginAgent,
57
75
  openInSystemTerminal,
58
76
  opencodeAdapter,
59
77
  parseCursorRunnerLine,
78
+ parseSessionQuotaResetAt,
60
79
  permissionMode,
61
- resolveCursorModelId
80
+ resolveCursorModelId,
81
+ resolveQuotaFallbackAgent
62
82
  };
@@ -23,6 +23,8 @@ import {
23
23
  isLinearConnected,
24
24
  loadAppSettings,
25
25
  maxConcurrentAgents,
26
+ orchestrationQuotaFallbackAgent,
27
+ orchestrationQuotaOnLimit,
26
28
  resolveClaudeExecutable,
27
29
  resolveEffectiveIssueSource,
28
30
  resolveThreadDefaults,
@@ -33,7 +35,7 @@ import {
33
35
  updateClaudeSettings,
34
36
  updateDefaultsSettings,
35
37
  updateIntegrationsSettings
36
- } from "./chunk-FSIK442J.js";
38
+ } from "./chunk-T5QQVXK3.js";
37
39
  import "./chunk-77WWLBCI.js";
38
40
  import "./chunk-M37RITA6.js";
39
41
  export {
@@ -61,6 +63,8 @@ export {
61
63
  isLinearConnected,
62
64
  loadAppSettings,
63
65
  maxConcurrentAgents,
66
+ orchestrationQuotaFallbackAgent,
67
+ orchestrationQuotaOnLimit,
64
68
  resolveClaudeExecutable,
65
69
  resolveEffectiveIssueSource,
66
70
  resolveThreadDefaults,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveGithubRepoSlug
3
- } from "./chunk-7PCTK4WO.js";
3
+ } from "./chunk-FV6FN6V5.js";
4
4
  import {
5
5
  globalAgentCwd,
6
6
  sideboardReposDir
@@ -42,11 +42,14 @@ var COORDINATOR_TOOL_PLAYBOOK = [
42
42
  "Discover:",
43
43
  "- list_workspaces \u2014 registered repos (path + github slug when known)",
44
44
  "- list_branches / list_prs / list_issues \u2014 pass repoPath from list_workspaces (issues: Linear API or GitHub Issues)",
45
+ "- list_models \u2014 only when you need a specific model (rare); otherwise leave model unset = Auto",
45
46
  "- list_threads / get_thread \u2014 fleet status (what is going on)",
46
47
  "Workspaces:",
47
48
  "- add_workspace / remove_workspace \u2014 register or unregister a git repo",
48
49
  "Worktree threads (chats):",
49
50
  "- create_thread \u2014 create a worktree + chat from branch | pr | ticket; pass repoPath + parentThreadId",
51
+ "- fork_worktree \u2014 fork a worktree chat into a NEW git worktree + chat (transcript attached); optional agent; leave model unset (Auto) unless you have a reason. Not for orchestration chats.",
52
+ "- fork_chat \u2014 fork a worktree chat (same worktree tab) OR a Global orchestration chat (new orchestration tab); optional agent; leave model unset (Auto) unless you have a reason. Remote coordinators: use this to continue another orchestration chat on a different agent after session limits.",
50
53
  "- send_to_thread \u2014 queue a prompt (start/continue a chat turn); pass force_stop: true to interrupt mid-turn / clear stale queued prompts before replacing with a new request",
51
54
  "- wait_for_turn / get_turn_result \u2014 wait for and read the agent reply",
52
55
  "- stop_thread \u2014 force-stop: kill in-flight turn AND clear queued prompts (do not leave stale queue after an interrupt)",