@sideboard-ai/core 0.1.299 → 0.1.301
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/claude-runner.cjs +36 -0
- package/dist/agents/claude-runner.js +17 -0
- package/dist/{agents-JCCJJMA7.js → agents-ETD2LWP4.js} +4 -4
- package/dist/{agents-IVKPCK56.js → agents-V2SRC2LH.js} +5 -4
- package/dist/{chunk-EB7B4D2Z.js → chunk-2KJE53ZJ.js} +15 -88
- package/dist/{chunk-3IXGI2FP.js → chunk-3XDU7RIE.js} +1 -1
- package/dist/{chunk-QB4UQA5L.js → chunk-7SEWZXPT.js} +2 -2
- package/dist/{chunk-F3JYJ4UB.js → chunk-EP4IIKP4.js} +4 -4
- package/dist/{chunk-HTL4FBTP.js → chunk-FBZODCO4.js} +65 -0
- package/dist/chunk-FO3NKZVJ.js +104 -0
- package/dist/{chunk-YAILSKW3.js → chunk-FPJFK4LB.js} +11 -11
- package/dist/{chunk-EB3F5AWV.js → chunk-FUXOZHHF.js} +15 -54
- package/dist/{chunk-NF3WDI7F.js → chunk-JTW4CZEQ.js} +41 -48
- package/dist/{chunk-G52HLBQR.js → chunk-KIWICTLW.js} +1 -1
- package/dist/{chunk-UMALFEDS.js → chunk-LZ744H2I.js} +2 -2
- package/dist/{chunk-MMIDAD6J.js → chunk-OJKSDRZU.js} +4 -4
- package/dist/{chunk-K5EACGG2.js → chunk-WV33I2GC.js} +13 -0
- package/dist/{conductor-UQDDDW35.js → conductor-57KZLWTB.js} +5 -4
- package/dist/{conductor-JLHXMMKR.js → conductor-57UKACQA.js} +4 -4
- package/dist/{coordinator-prompt-SSUYZSJO.js → coordinator-prompt-2TBRFJZ5.js} +3 -3
- package/dist/{coordinator-prompt-HKLVS26O.js → coordinator-prompt-VOWUJRVJ.js} +4 -3
- package/dist/{global-workspace-MHE6FCUZ.js → global-workspace-T5C7EMVV.js} +3 -3
- package/dist/{global-workspace-I32EWKX3.js → global-workspace-V6SOEETA.js} +4 -3
- package/dist/index.cjs +164 -120
- package/dist/index.d.cts +29 -18
- package/dist/index.d.ts +29 -18
- package/dist/index.js +43 -19
- package/dist/mcp/run-stdio.cjs +72 -57
- package/dist/mcp/run-stdio.js +6 -6
- package/dist/{orchestrator-SX4SGZHF.js → orchestrator-C43M3JDK.js} +6 -6
- package/dist/{orchestrator-ESLNXVOX.js → orchestrator-JEF7JC3S.js} +7 -6
- package/dist/{thread-store-5XXHSWMN.js → thread-store-BMNJEJUH.js} +1 -1
- package/dist/{thread-store-WXLXKDVN.js → thread-store-POAYB2ID.js} +2 -1
- package/dist/{workspaces-O3L32CDO.js → workspaces-7ZYTTB4A.js} +3 -3
- package/dist/{workspaces-ATMIKXLK.js → workspaces-EWVIEJ4O.js} +4 -3
- package/dist/{worktree-RMYXBTJG.js → worktree-2Q6J2VWZ.js} +3 -2
- package/dist/{worktree-6G5X4ABY.js → worktree-ZAJGYKCB.js} +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
worktreeCleanupSettings,
|
|
197
197
|
writeAgentBlock,
|
|
198
198
|
writeWorktreeFile
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-JTW4CZEQ.js";
|
|
200
200
|
import {
|
|
201
201
|
LEGACY_PLAN_FILE_REL,
|
|
202
202
|
PLAN_FILE_NAME,
|
|
@@ -213,12 +213,8 @@ import {
|
|
|
213
213
|
writePlanFile
|
|
214
214
|
} from "./chunk-PGPSIEMW.js";
|
|
215
215
|
import {
|
|
216
|
-
BASE_ALLOWED_TOOLS,
|
|
217
216
|
BRIGHTSY_MCP_ALLOWED_TOOLS,
|
|
218
|
-
CLAUDE_CHROME_ALLOWED_TOOLS,
|
|
219
217
|
CLAUDE_MODEL_CATALOG,
|
|
220
|
-
CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS,
|
|
221
|
-
CLAUDE_PRINT_BG_WAIT_CEILING_MS,
|
|
222
218
|
MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS,
|
|
223
219
|
PLAN_MODE_INSTRUCTION,
|
|
224
220
|
PLAN_MODE_OFF_INSTRUCTION,
|
|
@@ -265,15 +261,11 @@ import {
|
|
|
265
261
|
listCursorModels,
|
|
266
262
|
listModelsForAgent,
|
|
267
263
|
listOpencodeModels,
|
|
268
|
-
mcpAllowTools,
|
|
269
|
-
mcpAllowToolsFromNames,
|
|
270
|
-
mcpAuthWarnings,
|
|
271
264
|
mcpStatusThinkingFromClaudeInit,
|
|
272
265
|
mergeSideboardIntoMcpServersJson,
|
|
273
266
|
normalizeTurnInput,
|
|
274
267
|
opencodeAdapter,
|
|
275
268
|
parseClaudeUsagePayload,
|
|
276
|
-
parseMcpList,
|
|
277
269
|
parseSessionQuotaResetAt,
|
|
278
270
|
permissionMode,
|
|
279
271
|
planModeTurnInstruction,
|
|
@@ -281,7 +273,6 @@ import {
|
|
|
281
273
|
registerPackagedUserMcpClients,
|
|
282
274
|
resolveCursorModelId,
|
|
283
275
|
resolveQuotaFallbackAgent,
|
|
284
|
-
sanitizeMcpServerName,
|
|
285
276
|
shouldInjectBrightsyMcp,
|
|
286
277
|
shouldRegisterMcpWaitForTurn,
|
|
287
278
|
sideboardMcpProfile,
|
|
@@ -292,7 +283,7 @@ import {
|
|
|
292
283
|
userMcpNamesToDisable,
|
|
293
284
|
worktreeMcpToolNames,
|
|
294
285
|
writeInjectedMcpConfig
|
|
295
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-2KJE53ZJ.js";
|
|
296
287
|
import {
|
|
297
288
|
brightsyMcpServerName,
|
|
298
289
|
connectBrightsyTeam,
|
|
@@ -420,7 +411,7 @@ import {
|
|
|
420
411
|
workspaceAgentChatSummaries,
|
|
421
412
|
worktreeRunPortsPath,
|
|
422
413
|
wrapReviewSkillMarkdown
|
|
423
|
-
} from "./chunk-
|
|
414
|
+
} from "./chunk-OJKSDRZU.js";
|
|
424
415
|
import {
|
|
425
416
|
STDERR_EVENT_MAX_CHARS,
|
|
426
417
|
STDOUT_EVENT_MAX_CHARS,
|
|
@@ -620,7 +611,7 @@ import {
|
|
|
620
611
|
stageBuffersAsAttachments,
|
|
621
612
|
syncWorkspacesFromThreads,
|
|
622
613
|
takenTeamSlugsForOrchestration
|
|
623
|
-
} from "./chunk-
|
|
614
|
+
} from "./chunk-7SEWZXPT.js";
|
|
624
615
|
import {
|
|
625
616
|
GITHUB_PR_BODY_MAX_CHARS,
|
|
626
617
|
GITHUB_PR_BODY_SAFE_CHARS,
|
|
@@ -708,7 +699,7 @@ import {
|
|
|
708
699
|
suggestSlug,
|
|
709
700
|
switchWorktreeBranch,
|
|
710
701
|
warmGithubAgentAuth
|
|
711
|
-
} from "./chunk-
|
|
702
|
+
} from "./chunk-KIWICTLW.js";
|
|
712
703
|
import {
|
|
713
704
|
FAMOUS_SOCCER_TEAMS,
|
|
714
705
|
allocateTeamName,
|
|
@@ -741,7 +732,7 @@ import {
|
|
|
741
732
|
worktreeNameFromPath,
|
|
742
733
|
worktreeSlugForTicket,
|
|
743
734
|
writeThread
|
|
744
|
-
} from "./chunk-
|
|
735
|
+
} from "./chunk-WV33I2GC.js";
|
|
745
736
|
import "./chunk-2P4XKWV2.js";
|
|
746
737
|
import {
|
|
747
738
|
BRIGHTSY_OAUTH_CLIENT_ID,
|
|
@@ -762,6 +753,19 @@ import {
|
|
|
762
753
|
httpFetch,
|
|
763
754
|
setHttpFetchImpl
|
|
764
755
|
} from "./chunk-JAT3JFOS.js";
|
|
756
|
+
import {
|
|
757
|
+
BASE_ALLOWED_TOOLS,
|
|
758
|
+
CLAUDE_CHROME_ALLOWED_TOOLS,
|
|
759
|
+
CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS,
|
|
760
|
+
CLAUDE_PRINT_BG_WAIT_CEILING_MS,
|
|
761
|
+
mcpAllowTools,
|
|
762
|
+
mcpAllowToolsFromNames,
|
|
763
|
+
mcpAuthWarnings,
|
|
764
|
+
mcpServerIdForPermission,
|
|
765
|
+
mcpServerPermissionUpdate,
|
|
766
|
+
parseMcpList,
|
|
767
|
+
sanitizeMcpServerName
|
|
768
|
+
} from "./chunk-FO3NKZVJ.js";
|
|
765
769
|
import {
|
|
766
770
|
clipMcpToolResult,
|
|
767
771
|
cursorToolErrorText
|
|
@@ -5204,6 +5208,7 @@ function permissionViewFromBlock(block) {
|
|
|
5204
5208
|
detail: typeof prompt.detail === "string" ? prompt.detail : "",
|
|
5205
5209
|
...prompt.path ? { path: prompt.path } : {},
|
|
5206
5210
|
allowSession: prompt.allowSession !== false,
|
|
5211
|
+
...prompt.sessionLabel ? { sessionLabel: prompt.sessionLabel } : {},
|
|
5207
5212
|
...prompt.defaultToNo ? { defaultToNo: true } : {}
|
|
5208
5213
|
};
|
|
5209
5214
|
}
|
|
@@ -5292,10 +5297,27 @@ var handlePermissionAsk = async (params, _ctx) => {
|
|
|
5292
5297
|
description: str(rec.description).trim() || void 0,
|
|
5293
5298
|
displayName: str(rec.displayName).trim() || void 0,
|
|
5294
5299
|
suggestions: rec.suggestions,
|
|
5300
|
+
mcpServer: str(rec.mcpServer).trim() || void 0,
|
|
5295
5301
|
suppressAlwaysAllow: rec.suppressAlwaysAllow === true,
|
|
5296
5302
|
defaultToNo: rec.defaultToNo === true
|
|
5297
5303
|
};
|
|
5298
|
-
|
|
5304
|
+
const serverId = mcpServerIdForPermission(toolName, ask.mcpServer);
|
|
5305
|
+
if (serverId && readThread(threadId)?.approvedMcpServers?.includes(serverId)) {
|
|
5306
|
+
return {
|
|
5307
|
+
behavior: "allow",
|
|
5308
|
+
updatedPermissions: [mcpServerPermissionUpdate(serverId)],
|
|
5309
|
+
decisionClassification: "user_permanent"
|
|
5310
|
+
};
|
|
5311
|
+
}
|
|
5312
|
+
const answer = await askToolPermission(ask);
|
|
5313
|
+
if (serverId && answer.behavior === "allow" && answer.decisionClassification === "user_permanent") {
|
|
5314
|
+
const fresh = readThread(threadId);
|
|
5315
|
+
const prev = fresh?.approvedMcpServers ?? [];
|
|
5316
|
+
if (fresh && !prev.includes(serverId)) {
|
|
5317
|
+
updateThread(threadId, { approvedMcpServers: [...prev, serverId] });
|
|
5318
|
+
}
|
|
5319
|
+
}
|
|
5320
|
+
return answer;
|
|
5299
5321
|
};
|
|
5300
5322
|
|
|
5301
5323
|
// src/agent-rpc/handlers.ts
|
|
@@ -5391,7 +5413,7 @@ async function handleJobStop(params, _ctx) {
|
|
|
5391
5413
|
return stopDetachedJob(jobCwd(rec), id, reason ? { reason } : void 0);
|
|
5392
5414
|
}
|
|
5393
5415
|
async function defaultTurnWait(ref, timeoutMs) {
|
|
5394
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
5416
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-JEF7JC3S.js");
|
|
5395
5417
|
const orch = getOrchestrator2();
|
|
5396
5418
|
const thread = await orch.waitForTurn(ref, timeoutMs, {
|
|
5397
5419
|
resolveIfStillRunning: true
|
|
@@ -10600,7 +10622,7 @@ function listPhoneSidebar(viewerLogin = phoneViewerLogin()) {
|
|
|
10600
10622
|
label: worktreeDisplayLabelForGroup(group),
|
|
10601
10623
|
chats: group.map(summarize),
|
|
10602
10624
|
...tags.length > 0 ? { tags } : {},
|
|
10603
|
-
...badge ? { badge: { id: badge.id, label: badge.label, title: badge.title, ...badge.conflict ? { conflict: true } : {}
|
|
10625
|
+
...badge ? { badge: { id: badge.id, label: badge.label, title: badge.title, ...badge.conflict ? { conflict: true } : {} } } : {}
|
|
10604
10626
|
};
|
|
10605
10627
|
})
|
|
10606
10628
|
}));
|
|
@@ -13529,7 +13551,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
13529
13551
|
await continueOnReply(threadId, prompt);
|
|
13530
13552
|
return;
|
|
13531
13553
|
}
|
|
13532
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
13554
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-JEF7JC3S.js");
|
|
13533
13555
|
await getOrchestrator2().send(threadId, prompt);
|
|
13534
13556
|
} catch {
|
|
13535
13557
|
}
|
|
@@ -14499,6 +14521,8 @@ export {
|
|
|
14499
14521
|
mcpAllowTools,
|
|
14500
14522
|
mcpAllowToolsFromNames,
|
|
14501
14523
|
mcpAuthWarnings,
|
|
14524
|
+
mcpServerIdForPermission,
|
|
14525
|
+
mcpServerPermissionUpdate,
|
|
14502
14526
|
mcpStatusThinkingFromClaudeInit,
|
|
14503
14527
|
mentionsPrGoal,
|
|
14504
14528
|
mergeAgentGitAuthEnv,
|
package/dist/mcp/run-stdio.cjs
CHANGED
|
@@ -7242,6 +7242,60 @@ var init_stack = __esm({
|
|
|
7242
7242
|
}
|
|
7243
7243
|
});
|
|
7244
7244
|
|
|
7245
|
+
// src/agents/claude-mcp.ts
|
|
7246
|
+
function sanitizeMcpServerName(name) {
|
|
7247
|
+
return name.replace(/[^A-Za-z0-9_-]/g, "_");
|
|
7248
|
+
}
|
|
7249
|
+
function mcpAllowTools(servers) {
|
|
7250
|
+
const out = [];
|
|
7251
|
+
for (const s of servers) {
|
|
7252
|
+
if (!s.connected) continue;
|
|
7253
|
+
const id = sanitizeMcpServerName(s.name);
|
|
7254
|
+
if (!id) continue;
|
|
7255
|
+
out.push(`mcp__${id}`);
|
|
7256
|
+
out.push(`mcp__${id}__*`);
|
|
7257
|
+
}
|
|
7258
|
+
return out;
|
|
7259
|
+
}
|
|
7260
|
+
function mcpAllowToolsFromNames(names) {
|
|
7261
|
+
return mcpAllowTools(
|
|
7262
|
+
[...names].map((name) => name.trim()).filter(Boolean).map((name) => ({ name, connected: true, needsAuth: false }))
|
|
7263
|
+
);
|
|
7264
|
+
}
|
|
7265
|
+
var BASE_ALLOWED_TOOLS, CLAUDE_PRINT_BG_WAIT_CEILING_MS, CLAUDE_CHROME_ALLOWED_TOOLS, CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS;
|
|
7266
|
+
var init_claude_mcp = __esm({
|
|
7267
|
+
"src/agents/claude-mcp.ts"() {
|
|
7268
|
+
"use strict";
|
|
7269
|
+
BASE_ALLOWED_TOOLS = [
|
|
7270
|
+
"Edit",
|
|
7271
|
+
"Write",
|
|
7272
|
+
"Bash",
|
|
7273
|
+
"Read",
|
|
7274
|
+
"Glob",
|
|
7275
|
+
"Grep",
|
|
7276
|
+
"WebFetch",
|
|
7277
|
+
"WebSearch",
|
|
7278
|
+
"Task",
|
|
7279
|
+
"Agent",
|
|
7280
|
+
"TaskOutput",
|
|
7281
|
+
"TaskStop",
|
|
7282
|
+
"EnterWorktree",
|
|
7283
|
+
"ExitWorktree",
|
|
7284
|
+
"Skill"
|
|
7285
|
+
];
|
|
7286
|
+
CLAUDE_PRINT_BG_WAIT_CEILING_MS = 72e5;
|
|
7287
|
+
CLAUDE_CHROME_ALLOWED_TOOLS = [
|
|
7288
|
+
"mcp__claude-in-chrome",
|
|
7289
|
+
"mcp__claude-in-chrome__*",
|
|
7290
|
+
"Skill(claude-in-chrome)"
|
|
7291
|
+
];
|
|
7292
|
+
CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS = [
|
|
7293
|
+
"mcp__claude_ai_PostHog",
|
|
7294
|
+
"mcp__claude_ai_PostHog__*"
|
|
7295
|
+
];
|
|
7296
|
+
}
|
|
7297
|
+
});
|
|
7298
|
+
|
|
7245
7299
|
// src/agents/cursor-store.ts
|
|
7246
7300
|
function cursorSdkStoreDir(threadId) {
|
|
7247
7301
|
const root = (0, import_node_path18.join)(appDataDir(), CURSOR_SDK_STORE_DIR);
|
|
@@ -7302,6 +7356,15 @@ function resolveThreadEffort(raw) {
|
|
|
7302
7356
|
if (raw.fast) return "low";
|
|
7303
7357
|
return "high";
|
|
7304
7358
|
}
|
|
7359
|
+
function normalizeApprovedMcpServers(raw) {
|
|
7360
|
+
if (!Array.isArray(raw)) return void 0;
|
|
7361
|
+
const ids = [
|
|
7362
|
+
...new Set(
|
|
7363
|
+
raw.map((value) => typeof value === "string" ? sanitizeMcpServerName(value.trim()) : "").filter(Boolean)
|
|
7364
|
+
)
|
|
7365
|
+
];
|
|
7366
|
+
return ids.length > 0 ? ids : void 0;
|
|
7367
|
+
}
|
|
7305
7368
|
function normalizeRunScriptRequest(raw) {
|
|
7306
7369
|
if (!raw || typeof raw !== "object") return void 0;
|
|
7307
7370
|
const req = raw;
|
|
@@ -7327,6 +7390,7 @@ function normalizeThread(raw) {
|
|
|
7327
7390
|
planMode: Boolean(raw.planMode),
|
|
7328
7391
|
isolateCodexPlugins: raw.isolateCodexPlugins === true ? true : void 0,
|
|
7329
7392
|
autonomy: raw.autonomy ?? "default",
|
|
7393
|
+
approvedMcpServers: normalizeApprovedMcpServers(raw.approvedMcpServers),
|
|
7330
7394
|
lastError: raw.lastError ?? null,
|
|
7331
7395
|
agentPid: raw.agentPid ?? null,
|
|
7332
7396
|
attachments: Array.isArray(raw.attachments) ? raw.attachments : [],
|
|
@@ -7565,6 +7629,7 @@ var init_thread_store = __esm({
|
|
|
7565
7629
|
import_node_path19 = require("path");
|
|
7566
7630
|
import_proper_lockfile = __toESM(require("proper-lockfile"), 1);
|
|
7567
7631
|
init_thinking_effort();
|
|
7632
|
+
init_claude_mcp();
|
|
7568
7633
|
init_cursor_store();
|
|
7569
7634
|
init_paths();
|
|
7570
7635
|
listCache = null;
|
|
@@ -11134,60 +11199,6 @@ var init_brightsy = __esm({
|
|
|
11134
11199
|
}
|
|
11135
11200
|
});
|
|
11136
11201
|
|
|
11137
|
-
// src/agents/claude-mcp.ts
|
|
11138
|
-
function sanitizeMcpServerName(name) {
|
|
11139
|
-
return name.replace(/[^A-Za-z0-9_-]/g, "_");
|
|
11140
|
-
}
|
|
11141
|
-
function mcpAllowTools(servers) {
|
|
11142
|
-
const out = [];
|
|
11143
|
-
for (const s of servers) {
|
|
11144
|
-
if (!s.connected) continue;
|
|
11145
|
-
const id = sanitizeMcpServerName(s.name);
|
|
11146
|
-
if (!id) continue;
|
|
11147
|
-
out.push(`mcp__${id}`);
|
|
11148
|
-
out.push(`mcp__${id}__*`);
|
|
11149
|
-
}
|
|
11150
|
-
return out;
|
|
11151
|
-
}
|
|
11152
|
-
function mcpAllowToolsFromNames(names) {
|
|
11153
|
-
return mcpAllowTools(
|
|
11154
|
-
[...names].map((name) => name.trim()).filter(Boolean).map((name) => ({ name, connected: true, needsAuth: false }))
|
|
11155
|
-
);
|
|
11156
|
-
}
|
|
11157
|
-
var BASE_ALLOWED_TOOLS, CLAUDE_PRINT_BG_WAIT_CEILING_MS, CLAUDE_CHROME_ALLOWED_TOOLS, CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS;
|
|
11158
|
-
var init_claude_mcp = __esm({
|
|
11159
|
-
"src/agents/claude-mcp.ts"() {
|
|
11160
|
-
"use strict";
|
|
11161
|
-
BASE_ALLOWED_TOOLS = [
|
|
11162
|
-
"Edit",
|
|
11163
|
-
"Write",
|
|
11164
|
-
"Bash",
|
|
11165
|
-
"Read",
|
|
11166
|
-
"Glob",
|
|
11167
|
-
"Grep",
|
|
11168
|
-
"WebFetch",
|
|
11169
|
-
"WebSearch",
|
|
11170
|
-
"Task",
|
|
11171
|
-
"Agent",
|
|
11172
|
-
"TaskOutput",
|
|
11173
|
-
"TaskStop",
|
|
11174
|
-
"EnterWorktree",
|
|
11175
|
-
"ExitWorktree",
|
|
11176
|
-
"Skill"
|
|
11177
|
-
];
|
|
11178
|
-
CLAUDE_PRINT_BG_WAIT_CEILING_MS = 72e5;
|
|
11179
|
-
CLAUDE_CHROME_ALLOWED_TOOLS = [
|
|
11180
|
-
"mcp__claude-in-chrome",
|
|
11181
|
-
"mcp__claude-in-chrome__*",
|
|
11182
|
-
"Skill(claude-in-chrome)"
|
|
11183
|
-
];
|
|
11184
|
-
CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS = [
|
|
11185
|
-
"mcp__claude_ai_PostHog",
|
|
11186
|
-
"mcp__claude_ai_PostHog__*"
|
|
11187
|
-
];
|
|
11188
|
-
}
|
|
11189
|
-
});
|
|
11190
|
-
|
|
11191
11202
|
// src/agent-rpc/protocol.ts
|
|
11192
11203
|
var AGENT_RPC_PROTOCOL_VERSION, AGENT_RPC_TOKEN_QUERY, AGENT_RPC_NATIVE_ENV, AGENT_RPC_URL_ENV, AGENT_RPC_TOKEN_ENV, AGENT_RPC_CWD_ENV, AGENT_RPC_CLAUDE_SDK_SERVER;
|
|
11193
11204
|
var init_protocol = __esm({
|
|
@@ -12754,12 +12765,13 @@ var init_claude = __esm({
|
|
|
12754
12765
|
allowedTools = [
|
|
12755
12766
|
...BASE_ALLOWED_TOOLS,
|
|
12756
12767
|
...SIDEBOARD_MCP_ALLOWED_TOOLS,
|
|
12757
|
-
...brightsyMcpAllowedTools(injectedBrightsyNames)
|
|
12768
|
+
...brightsyMcpAllowedTools(injectedBrightsyNames),
|
|
12769
|
+
...mcpAllowToolsFromNames(thread.approvedMcpServers ?? [])
|
|
12758
12770
|
];
|
|
12759
12771
|
} else {
|
|
12760
12772
|
allowedTools = [
|
|
12761
12773
|
...BASE_ALLOWED_TOOLS,
|
|
12762
|
-
...mcpAllowToolsFromNames(Object.keys(userMcpEntries)),
|
|
12774
|
+
...mcpAllowToolsFromNames([...Object.keys(userMcpEntries), ...thread.approvedMcpServers ?? []]),
|
|
12763
12775
|
...sideboardWorktreeAllowedTools({
|
|
12764
12776
|
github: true,
|
|
12765
12777
|
linear: isLinearConnected(),
|
|
@@ -12799,7 +12811,8 @@ var init_claude = __esm({
|
|
|
12799
12811
|
"--verbose",
|
|
12800
12812
|
"--include-partial-messages",
|
|
12801
12813
|
"--permission-mode",
|
|
12802
|
-
mode.claude
|
|
12814
|
+
mode.claude,
|
|
12815
|
+
...mode.claude === "bypassPermissions" ? ["--dangerously-skip-permissions"] : []
|
|
12803
12816
|
];
|
|
12804
12817
|
if (systemPrompt) {
|
|
12805
12818
|
args.push("--append-system-prompt", systemPrompt);
|
|
@@ -18233,6 +18246,7 @@ var init_tool_permission = __esm({
|
|
|
18233
18246
|
"use strict";
|
|
18234
18247
|
import_node_crypto10 = require("crypto");
|
|
18235
18248
|
import_node_path52 = require("path");
|
|
18249
|
+
init_claude_mcp();
|
|
18236
18250
|
queues = /* @__PURE__ */ new Map();
|
|
18237
18251
|
publisher = null;
|
|
18238
18252
|
}
|
|
@@ -32465,6 +32479,7 @@ init_wait_for_turn();
|
|
|
32465
32479
|
// src/agent-rpc/permission-handler.ts
|
|
32466
32480
|
init_agent_block();
|
|
32467
32481
|
init_thread_store();
|
|
32482
|
+
init_claude_mcp();
|
|
32468
32483
|
init_tool_permission();
|
|
32469
32484
|
|
|
32470
32485
|
// src/remote/phone-permission.ts
|
package/dist/mcp/run-stdio.js
CHANGED
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
updateSchedule,
|
|
57
57
|
workspaceTagTargetRef,
|
|
58
58
|
writeAgentBlock
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-FPJFK4LB.js";
|
|
60
60
|
import "../chunk-LX5R5JOR.js";
|
|
61
61
|
import {
|
|
62
62
|
commentAbleTimeTask,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
sideboardMcpProfile,
|
|
100
100
|
trustSystemCertificates,
|
|
101
101
|
worktreeMcpToolNames
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-FUXOZHHF.js";
|
|
103
103
|
import "../chunk-WZCPZVUC.js";
|
|
104
104
|
import "../chunk-7IAMHN2N.js";
|
|
105
105
|
import "../chunk-PXMLMBMI.js";
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
waitForDetachedJob,
|
|
117
117
|
waitForTurnToolResult,
|
|
118
118
|
workspaceAgentChatSummaries
|
|
119
|
-
} from "../chunk-
|
|
119
|
+
} from "../chunk-EP4IIKP4.js";
|
|
120
120
|
import {
|
|
121
121
|
HUGE_TOOL_RESULT_SUMMARY,
|
|
122
122
|
clipToolResultForStore,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
import {
|
|
128
128
|
GLOBAL_WORKSPACE_ID,
|
|
129
129
|
isCloudCoordinatorThread
|
|
130
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-LZ744H2I.js";
|
|
131
131
|
import {
|
|
132
132
|
canonicalizeRepoPath,
|
|
133
133
|
formatGhLandError,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
resolveListPrsOptions,
|
|
139
139
|
resolveRepoRoot,
|
|
140
140
|
warmGithubAgentAuth
|
|
141
|
-
} from "../chunk-
|
|
141
|
+
} from "../chunk-3XDU7RIE.js";
|
|
142
142
|
import {
|
|
143
143
|
CLI_DIR
|
|
144
144
|
} from "../chunk-N2WW62LF.js";
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
normalizeWorkspaceTags,
|
|
172
172
|
readThread,
|
|
173
173
|
updateThread
|
|
174
|
-
} from "../chunk-
|
|
174
|
+
} from "../chunk-FBZODCO4.js";
|
|
175
175
|
import "../chunk-4RZRHTSZ.js";
|
|
176
176
|
import "../chunk-KGZBYWZ3.js";
|
|
177
177
|
import {
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
resolveSendFollowUp,
|
|
12
12
|
startOrchestration,
|
|
13
13
|
waitForPidExit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FPJFK4LB.js";
|
|
15
15
|
import "./chunk-LX5R5JOR.js";
|
|
16
16
|
import "./chunk-XCXUVX7I.js";
|
|
17
17
|
import "./chunk-4GK32AYX.js";
|
|
18
18
|
import "./chunk-5DZUWGKV.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-FUXOZHHF.js";
|
|
20
20
|
import "./chunk-WZCPZVUC.js";
|
|
21
21
|
import "./chunk-7IAMHN2N.js";
|
|
22
22
|
import "./chunk-PXMLMBMI.js";
|
|
23
23
|
import "./chunk-2GPQZZLY.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-EP4IIKP4.js";
|
|
25
25
|
import "./chunk-5XQ43YZU.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-LZ744H2I.js";
|
|
27
|
+
import "./chunk-3XDU7RIE.js";
|
|
28
28
|
import "./chunk-N2WW62LF.js";
|
|
29
29
|
import "./chunk-DD67JWTN.js";
|
|
30
30
|
import "./chunk-2UG25RMK.js";
|
|
@@ -33,7 +33,7 @@ import "./chunk-NSTQ6QKD.js";
|
|
|
33
33
|
import "./chunk-WWUABK6B.js";
|
|
34
34
|
import "./chunk-FJZWM2ON.js";
|
|
35
35
|
import "./chunk-UN5Q7POQ.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-FBZODCO4.js";
|
|
37
37
|
import "./chunk-4RZRHTSZ.js";
|
|
38
38
|
import "./chunk-KGZBYWZ3.js";
|
|
39
39
|
import "./chunk-H5XL4KUS.js";
|
|
@@ -9,21 +9,22 @@ import {
|
|
|
9
9
|
resolveSendFollowUp,
|
|
10
10
|
startOrchestration,
|
|
11
11
|
waitForPidExit
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JTW4CZEQ.js";
|
|
13
13
|
import "./chunk-PGPSIEMW.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2KJE53ZJ.js";
|
|
15
15
|
import "./chunk-VGNLMGBK.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-OJKSDRZU.js";
|
|
17
17
|
import "./chunk-F36QRDM4.js";
|
|
18
18
|
import "./chunk-7H655NEW.js";
|
|
19
19
|
import "./chunk-QDDTVIWE.js";
|
|
20
20
|
import "./chunk-B42H6GJR.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7SEWZXPT.js";
|
|
22
|
+
import "./chunk-KIWICTLW.js";
|
|
23
|
+
import "./chunk-WV33I2GC.js";
|
|
24
24
|
import "./chunk-2P4XKWV2.js";
|
|
25
25
|
import "./chunk-33KDPEK4.js";
|
|
26
26
|
import "./chunk-JAT3JFOS.js";
|
|
27
|
+
import "./chunk-FO3NKZVJ.js";
|
|
27
28
|
import "./chunk-AXQ4ZWHK.js";
|
|
28
29
|
import "./chunk-IOY2LF3Y.js";
|
|
29
30
|
import "./chunk-HO5R3ZRH.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
removeWorkspace,
|
|
12
12
|
sameWorkspacePath,
|
|
13
13
|
syncWorkspacesFromThreads
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-LZ744H2I.js";
|
|
15
|
+
import "./chunk-3XDU7RIE.js";
|
|
16
16
|
import "./chunk-N2WW62LF.js";
|
|
17
17
|
import "./chunk-DD67JWTN.js";
|
|
18
18
|
import "./chunk-2UG25RMK.js";
|
|
@@ -21,7 +21,7 @@ import "./chunk-NSTQ6QKD.js";
|
|
|
21
21
|
import "./chunk-WWUABK6B.js";
|
|
22
22
|
import "./chunk-FJZWM2ON.js";
|
|
23
23
|
import "./chunk-UN5Q7POQ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-FBZODCO4.js";
|
|
25
25
|
import "./chunk-4RZRHTSZ.js";
|
|
26
26
|
import "./chunk-KGZBYWZ3.js";
|
|
27
27
|
import "./chunk-H5XL4KUS.js";
|
|
@@ -9,10 +9,11 @@ import {
|
|
|
9
9
|
removeWorkspace,
|
|
10
10
|
sameWorkspacePath,
|
|
11
11
|
syncWorkspacesFromThreads
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-7SEWZXPT.js";
|
|
13
|
+
import "./chunk-KIWICTLW.js";
|
|
14
|
+
import "./chunk-WV33I2GC.js";
|
|
15
15
|
import "./chunk-2P4XKWV2.js";
|
|
16
|
+
import "./chunk-FO3NKZVJ.js";
|
|
16
17
|
import "./chunk-6K64FJDD.js";
|
|
17
18
|
import "./chunk-UWQ6UCIB.js";
|
|
18
19
|
import "./chunk-QVN2WOKJ.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
slugify,
|
|
49
49
|
suggestSlug,
|
|
50
50
|
switchWorktreeBranch
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-KIWICTLW.js";
|
|
52
52
|
import {
|
|
53
53
|
FAMOUS_SOCCER_TEAMS,
|
|
54
54
|
allocateTeamName,
|
|
@@ -64,8 +64,9 @@ import {
|
|
|
64
64
|
worktreeDisplayLabelForGroup,
|
|
65
65
|
worktreeNameFromPath,
|
|
66
66
|
worktreeSlugForTicket
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-WV33I2GC.js";
|
|
68
68
|
import "./chunk-2P4XKWV2.js";
|
|
69
|
+
import "./chunk-FO3NKZVJ.js";
|
|
69
70
|
import "./chunk-6K64FJDD.js";
|
|
70
71
|
import "./chunk-UWQ6UCIB.js";
|
|
71
72
|
import "./chunk-QVN2WOKJ.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
slugify,
|
|
51
51
|
suggestSlug,
|
|
52
52
|
switchWorktreeBranch
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-3XDU7RIE.js";
|
|
54
54
|
import "./chunk-N2WW62LF.js";
|
|
55
55
|
import "./chunk-DD67JWTN.js";
|
|
56
56
|
import "./chunk-2UG25RMK.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
worktreeDisplayLabelForGroup,
|
|
75
75
|
worktreeNameFromPath,
|
|
76
76
|
worktreeSlugForTicket
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-FBZODCO4.js";
|
|
78
78
|
import "./chunk-4RZRHTSZ.js";
|
|
79
79
|
import "./chunk-KGZBYWZ3.js";
|
|
80
80
|
import "./chunk-H5XL4KUS.js";
|