pi-web-ui 0.110.0 → 0.111.0
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/bin/frp-manager.mjs +85 -7
- package/dist/server/agent-formatters.js +10 -6
- package/dist/server/agent-service-daemon.js +27 -9
- package/dist/server/agent-service.js +140 -24
- package/dist/server/attachments.js +114 -31
- package/dist/server/canvas/canvas-agent-tool.js +587 -0
- package/dist/server/canvas/canvas-cards.js +144 -0
- package/dist/server/canvas/canvas-dispatch.js +155 -0
- package/dist/server/canvas/canvas-orchestrator.js +1027 -0
- package/dist/server/canvas/canvas-store.js +260 -0
- package/dist/server/client-id-utils.js +2 -2
- package/dist/server/client-state.js +24 -0
- package/dist/server/context-budget.js +6 -3
- package/dist/server/dsh/dsh-agent-service.js +115 -9
- package/dist/server/dsh/dsh-client.js +10 -1
- package/dist/server/dsh/runtime/goal-rpc.mjs +128 -3
- package/dist/server/dsh/runtime/launcher.mjs +59 -5
- package/dist/server/dsh/runtime/runtime-root.mjs +353 -40
- package/dist/server/durable/durable-agent-service.js +3 -0
- package/dist/server/file-transfer-routes.js +8 -2
- package/dist/server/files-service.js +10 -2
- package/dist/server/index.js +137 -4
- package/dist/server/marker-service.js +3 -1
- package/dist/server/markers/marker.js +45 -4
- package/dist/server/markers/registry.js +31 -0
- package/dist/server/message-window.js +6 -3
- package/dist/server/office-parse.js +394 -7
- package/dist/server/plugin-api-catalog.js +6 -0
- package/dist/server/plugins.js +97 -20
- package/dist/server/preset-fields.js +35 -1
- package/dist/server/preset-share.js +3 -0
- package/dist/server/prompt-assembler.js +7 -1
- package/dist/server/prompt-composer.js +66 -36
- package/dist/server/protocol-version.js +1 -1
- package/dist/server/remote-ssh-service.js +16 -4
- package/dist/server/settings-service.js +19 -3
- package/dist/server/tool-manager.js +30 -0
- package/dist/server/univer-service.js +448 -0
- package/dist/server/universal/drivers/claude-code.js +19 -2
- package/dist/server/universal/universal-attachments.js +5 -0
- package/dist/server/universal/universal-service.js +5 -0
- package/dist/server/universal/universal-session.js +28 -12
- package/dist/server/update-check.js +90 -5
- package/dist/server/workspace-snapshot.js +33 -2
- package/docs/dsh-engine.md +497 -0
- package/package.json +5 -4
- package/plugin-sdk/index.d.ts +17 -0
- package/plugin-sdk/index.mjs +5 -0
- package/plugins/catalog.json +22 -0
- package/themes/aetheris.css +114 -0
- package/themes/bases/obsidian-base.css +216 -0
- package/themes/md-preview.css +113 -0
- package/themes/wallpaper-flow.css +182 -0
- package/web/dist/assets/{TerminalPanel-BHjM6pzY.js → TerminalPanel-BiUNySMA.js} +2 -2
- package/web/dist/assets/index-B0ajS__T.js +697 -0
- package/web/dist/assets/index-BHik5WGG.css +1 -0
- package/web/dist/assets/{markdown-DXwnfD9T.js → markdown-BJZlfvdP.js} +24 -24
- package/web/dist/assets/markdown-DSNUiDzp.css +1 -0
- package/web/dist/index.html +4 -4
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/es-DIDZppIF.js +0 -2
- package/web/dist/assets/index-DwInT7-a.css +0 -1
- package/web/dist/assets/index-GfVFIgIL.js +0 -693
- package/web/dist/assets/markdown-CCeVCbci.css +0 -1
|
@@ -250,6 +250,9 @@ const PRESET_FIELD_KINDS = {
|
|
|
250
250
|
disabledSkills: "list",
|
|
251
251
|
disabledExtensions: "list",
|
|
252
252
|
skillsFullText: "list",
|
|
253
|
+
skillsCatalogMaxDesc: "number",
|
|
254
|
+
skillsCatalogShowLocation: "bool",
|
|
255
|
+
skillsCatalogBudget: "number",
|
|
253
256
|
// -- ai --------------------------------------------------------------
|
|
254
257
|
retryMaxAttempts: "retry",
|
|
255
258
|
softCapTokens: "softCap",
|
|
@@ -64,7 +64,13 @@ export function shouldRenderMainCompose(opts) {
|
|
|
64
64
|
const ovs = opts.promptOverrides ?? {};
|
|
65
65
|
const hasOverride = Object.values(ovs).some((v) => typeof v === "string" && v.trim());
|
|
66
66
|
const preset = opts.preset ?? "standard";
|
|
67
|
-
return !!tpl ||
|
|
67
|
+
return (!!tpl ||
|
|
68
|
+
hasOverride ||
|
|
69
|
+
preset !== "standard" ||
|
|
70
|
+
opts.disabledToolCount > 0 ||
|
|
71
|
+
opts.isLazy === true ||
|
|
72
|
+
opts.hasSkills === true ||
|
|
73
|
+
opts.hasSkillsFullText === true);
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* 渲染组合模板。非定制状态返回 undefined 让 SDK 内部装配。
|
|
@@ -129,46 +129,72 @@ function buildGuidelinesText(inputs) {
|
|
|
129
129
|
add(pick(lang, "处理文件时清楚地给出文件路径", "Show file paths clearly when working with files", "prompt.guidelines.show.paths"));
|
|
130
130
|
return `${pick(lang, "指导原则:", "Guidelines:", "prompt.guidelines.title")}\n${lines.map((l) => `- ${l}`).join("\n")}`;
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
return s
|
|
134
|
-
.replace(/&/g, "&")
|
|
135
|
-
.replace(/</g, "<")
|
|
136
|
-
.replace(/>/g, ">")
|
|
137
|
-
.replace(/"/g, """)
|
|
138
|
-
.replace(/'/g, "'");
|
|
139
|
-
}
|
|
140
|
-
/** 技能段文本(不含前导空行)。与 SDK formatSkillsForPrompt 一致。
|
|
132
|
+
/** 技能段文本(不含前导空行)。
|
|
141
133
|
* fullText = true 全员全文注入(oh-my-pi 式:标题 + 引用描述 + body 全文);
|
|
142
|
-
* 传技能名数组 = 只注入名单里的;content 缺失的条目回落列表行,不中断渲染。
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
* 传技能名数组 = 只注入名单里的;content 缺失的条目回落列表行,不中断渲染。
|
|
135
|
+
* 默认名录采用紧凑单行格式(- name: desc),抛弃多层 XML 标签通胀与多行冗余,
|
|
136
|
+
* 默认不输出宿主 location 物理路径以节约 token 且避免路径泄露。 */
|
|
137
|
+
export function buildSkillsText(skills, lang = "en", fullText = false, options) {
|
|
138
|
+
const visible = skills
|
|
139
|
+
.filter((s) => !s.disableModelInvocation)
|
|
140
|
+
.slice()
|
|
141
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
145
142
|
if (visible.length === 0)
|
|
146
143
|
return "";
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
144
|
+
const maxDesc = options?.maxDesc !== undefined ? options.maxDesc : 250;
|
|
145
|
+
const showLocation = options?.showLocation ?? false;
|
|
146
|
+
const budget = options?.budget !== undefined ? options.budget : 20000;
|
|
147
|
+
// 单行化并截断描述文本
|
|
148
|
+
const formatDesc = (desc) => {
|
|
149
|
+
const singleLine = desc.replace(/[\r\n]+/g, " ").trim();
|
|
150
|
+
if (maxDesc > 0 && singleLine.length > maxDesc) {
|
|
151
|
+
return singleLine.length > 3 ? `${singleLine.slice(0, maxDesc - 3)}...` : singleLine.slice(0, maxDesc);
|
|
152
|
+
}
|
|
153
|
+
return singleLine;
|
|
154
|
+
};
|
|
155
|
+
const renderCatalog = (compact) => {
|
|
156
|
+
const lines = [
|
|
157
|
+
pick(lang, "以下技能为特定任务提供专门的指令。", "The following skills provide specialized instructions for specific tasks.", "prompt.skills.intro.specialized"),
|
|
158
|
+
pick(lang, "当任务与某技能的描述相符时,用 skill 工具按名称加载该技能全文。", "Use the skill tool to load a skill's full text by name when the task matches its description.", "prompt.skills.intro.use.skill"),
|
|
159
|
+
pick(lang, "当技能文件引用相对路径时,以技能目录(SKILL.md 的父目录 / 该路径的 dirname)为基准解析,并在工具命令中使用解析后的绝对路径。", "When a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.", "prompt.skills.intro.resolve.path"),
|
|
160
|
+
];
|
|
161
|
+
if (compact) {
|
|
162
|
+
lines.push(pick(lang, "(技能名录庞大已启用紧凑索引,仅显示名称。请使用 skill 工具按名称载入或查询)", "(Skill catalog is large; compact name index enabled. Use the skill tool to inspect or load by name.)", "prompt.skills.catalog.compact"));
|
|
163
|
+
}
|
|
164
|
+
lines.push("", "<available_skills>");
|
|
165
|
+
for (const skill of visible) {
|
|
166
|
+
// 全文模式且有内容:oh-my-pi 注入格式(### Skill: 名 / > 描述 / 全文)。
|
|
167
|
+
const inject = fullText === true || (Array.isArray(fullText) && fullText.includes(skill.name));
|
|
168
|
+
if (inject && skill.content?.trim()) {
|
|
169
|
+
lines.push(`### Skill: ${skill.name}`);
|
|
170
|
+
if (skill.description.trim())
|
|
171
|
+
lines.push(`> ${skill.description.trim()}`);
|
|
172
|
+
lines.push("", skill.content.trim(), "");
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
if (compact) {
|
|
176
|
+
lines.push(`- ${skill.name}`);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
const d = formatDesc(skill.description);
|
|
180
|
+
let line = `- ${skill.name}`;
|
|
181
|
+
if (d)
|
|
182
|
+
line += `: ${d}`;
|
|
183
|
+
if (showLocation && skill.filePath) {
|
|
184
|
+
line += ` (location: ${skill.filePath})`;
|
|
185
|
+
}
|
|
186
|
+
lines.push(line);
|
|
187
|
+
}
|
|
163
188
|
}
|
|
164
|
-
lines.push("
|
|
165
|
-
lines
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
189
|
+
lines.push("</available_skills>");
|
|
190
|
+
return lines;
|
|
191
|
+
};
|
|
192
|
+
const standardLines = renderCatalog(false);
|
|
193
|
+
const standardText = standardLines.join("\n");
|
|
194
|
+
if (budget > 0 && standardText.length > budget) {
|
|
195
|
+
return renderCatalog(true).join("\n");
|
|
169
196
|
}
|
|
170
|
-
|
|
171
|
-
return lines.join("\n");
|
|
197
|
+
return standardText;
|
|
172
198
|
}
|
|
173
199
|
/** 项目上下文块(不含前导空行)。 */
|
|
174
200
|
function buildContextText(files, lang = "en") {
|
|
@@ -242,7 +268,11 @@ export function resolveSectionTexts(inputs) {
|
|
|
242
268
|
terminal: inputs.terminalGuidance,
|
|
243
269
|
markers: inputs.markersGuidance,
|
|
244
270
|
context: buildContextText(inputs.contextFiles, lang),
|
|
245
|
-
skills: buildSkillsText(inputs.skills, lang, inputs.skillsFullText ?? false
|
|
271
|
+
skills: buildSkillsText(inputs.skills, lang, inputs.skillsFullText ?? false, {
|
|
272
|
+
maxDesc: inputs.skillsCatalogMaxDesc,
|
|
273
|
+
showLocation: inputs.skillsCatalogShowLocation,
|
|
274
|
+
budget: inputs.skillsCatalogBudget,
|
|
275
|
+
}),
|
|
246
276
|
cwd: `Current working directory: ${cwd}`,
|
|
247
277
|
};
|
|
248
278
|
}
|
|
@@ -70,7 +70,13 @@ export function formatRemoteWorkspaceUri(username, host, port, remotePath) {
|
|
|
70
70
|
*/
|
|
71
71
|
export function resolveRemoteWorkspacePath(remoteRoot, rawPath) {
|
|
72
72
|
const root = path.posix.normalize(remoteRoot.replace(/\\/g, "/")).replace(/\/+$/, "") || "/";
|
|
73
|
-
|
|
73
|
+
let cleaned = (rawPath || "").replace(/\\/g, "/").trim();
|
|
74
|
+
if (isRemoteWorkspaceUri(cleaned)) {
|
|
75
|
+
const parsed = parseRemoteWorkspaceUri(cleaned);
|
|
76
|
+
if (parsed) {
|
|
77
|
+
cleaned = parsed.remotePath;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
74
80
|
if (!cleaned || cleaned === ".") {
|
|
75
81
|
return { abs: root, rel: "" };
|
|
76
82
|
}
|
|
@@ -1183,9 +1189,15 @@ fi
|
|
|
1183
1189
|
if (typeof sftp.createReadStream === "function") {
|
|
1184
1190
|
return sftp.createReadStream(remoteAbsPath, opts);
|
|
1185
1191
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1192
|
+
// 回退路径:整文件读进内存再切片。必须设上限——不支持 createReadStream 的
|
|
1193
|
+
// 实现(基本只有测试 mock)遇到 GB 级文件会直接打爆内存(OOM)。
|
|
1194
|
+
const MAX_FALLBACK_BYTES = 512 * 1024 * 1024;
|
|
1195
|
+
const capEnd = opts?.end !== undefined ? Math.min(opts.end, MAX_FALLBACK_BYTES - 1) : MAX_FALLBACK_BYTES - 1;
|
|
1196
|
+
const { data } = await this.sftpReadFile(uri, remoteAbsPath, MAX_FALLBACK_BYTES);
|
|
1197
|
+
const sliceStart = opts?.start ?? 0;
|
|
1198
|
+
const sliceEnd = capEnd;
|
|
1199
|
+
const slice = sliceStart > 0 || sliceEnd < MAX_FALLBACK_BYTES - 1 || data.length === MAX_FALLBACK_BYTES
|
|
1200
|
+
? data.subarray(sliceStart, sliceEnd + 1)
|
|
1189
1201
|
: data;
|
|
1190
1202
|
return Readable.from(slice);
|
|
1191
1203
|
}
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
* (reloadSession 里还会刷新斜杠命令目录)。
|
|
8
8
|
*/
|
|
9
9
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
10
|
+
import { homedir } from "node:os";
|
|
10
11
|
import { basename, dirname, join } from "node:path";
|
|
11
12
|
import { fileURLToPath } from "node:url";
|
|
12
|
-
import { extensionKey, isInternalExtension, normalizeBgCleanupMinutes, normalizeDisabledPluginTools, normalizeRetryMaxAttempts, normalizeKeepRecentMessages, normalizeSkillList, normalizeToolWatchdogTimeoutMs, normalizeUiLayout, settingsPresetToUi, } from "./client-state.js";
|
|
13
|
+
import { extensionKey, isInternalExtension, normalizeBgCleanupMinutes, normalizeDisabledPluginTools, normalizeRetryMaxAttempts, normalizeKeepRecentMessages, normalizeSkillList, normalizeSkillsCatalogBudget, normalizeSkillsCatalogMaxDesc, normalizeToolWatchdogTimeoutMs, normalizeUiLayout, settingsPresetToUi, } from "./client-state.js";
|
|
13
14
|
import { normalizeSoftCapByModel, normalizeSoftCapTokens } from "./soft-cap.js";
|
|
14
15
|
import { findVisionModels, SYSTEM_PROMPT } from "./vision-bridge.js";
|
|
15
16
|
import { COMMITMSG_SYSTEM_PROMPT } from "./scm-commitmsg.js";
|
|
@@ -66,8 +67,8 @@ export class SettingsService {
|
|
|
66
67
|
this.pendingReload = false;
|
|
67
68
|
return v;
|
|
68
69
|
}
|
|
69
|
-
/** 判断某个 skill 名是否仍存在于磁盘任何来源(agent 区 /
|
|
70
|
-
* .agents/skills / npm 包内 skills)。被禁用且文件已删除的名字不应再
|
|
70
|
+
/** 判断某个 skill 名是否仍存在于磁盘任何来源(agent 区 / 用户级或祖先
|
|
71
|
+
* .agents/skills / 项目 .pi / npm 包内 skills)。被禁用且文件已删除的名字不应再
|
|
71
72
|
* 出现在设置面板,也不应留在持久化记录里。 */
|
|
72
73
|
skillStillOnDisk(name) {
|
|
73
74
|
const cwd = this.host.cwd();
|
|
@@ -76,6 +77,9 @@ export class SettingsService {
|
|
|
76
77
|
// ① 用户区 <agentDir>/skills ② 项目 .pi/skills
|
|
77
78
|
if (check(join(agentDir, "skills")))
|
|
78
79
|
return true;
|
|
80
|
+
// SDK 始终扫描用户级 ~/.agents/skills,不依赖 cwd 的祖先链(issue #669)。
|
|
81
|
+
if (check(join(process.env.HOME || homedir(), ".agents", "skills")))
|
|
82
|
+
return true;
|
|
79
83
|
if (check(join(cwd, ".pi", "skills")))
|
|
80
84
|
return true;
|
|
81
85
|
// ③ 祖先链 .agents/skills(SDK collectAncestorAgentsSkillDirs 语义,最多上溯 6 层)
|
|
@@ -340,6 +344,9 @@ export class SettingsService {
|
|
|
340
344
|
disabledPlugins: [...(this.settings.disabledPlugins ?? [])],
|
|
341
345
|
uiLayout: normalizeUiLayout(this.settings.uiLayout),
|
|
342
346
|
skillsFullText: [...normalizeSkillList(this.settings.skillsFullText)],
|
|
347
|
+
skillsCatalogMaxDesc: this.settings.skillsCatalogMaxDesc,
|
|
348
|
+
skillsCatalogShowLocation: this.settings.skillsCatalogShowLocation,
|
|
349
|
+
skillsCatalogBudget: this.settings.skillsCatalogBudget,
|
|
343
350
|
// The composed system prompt actually in effect (read-only view).
|
|
344
351
|
effectiveSystemPrompt: promptSnap.full,
|
|
345
352
|
// 每个来源未覆盖时的默认(自动)内容(「各来源」行预览用)。
|
|
@@ -601,6 +608,15 @@ export class SettingsService {
|
|
|
601
608
|
if (partial.skillsFullText !== undefined) {
|
|
602
609
|
this.settings.skillsFullText = normalizeSkillList(partial.skillsFullText);
|
|
603
610
|
}
|
|
611
|
+
if (partial.skillsCatalogMaxDesc !== undefined) {
|
|
612
|
+
this.settings.skillsCatalogMaxDesc = normalizeSkillsCatalogMaxDesc(partial.skillsCatalogMaxDesc);
|
|
613
|
+
}
|
|
614
|
+
if (partial.skillsCatalogShowLocation !== undefined) {
|
|
615
|
+
this.settings.skillsCatalogShowLocation = Boolean(partial.skillsCatalogShowLocation);
|
|
616
|
+
}
|
|
617
|
+
if (partial.skillsCatalogBudget !== undefined) {
|
|
618
|
+
this.settings.skillsCatalogBudget = normalizeSkillsCatalogBudget(partial.skillsCatalogBudget);
|
|
619
|
+
}
|
|
604
620
|
if (partial.visionBridgeEnabled !== undefined) {
|
|
605
621
|
this.settings.visionBridgeEnabled = partial.visionBridgeEnabled;
|
|
606
622
|
}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* 纯模块:零 node 依赖(不 import 任何 server 模块),前端可直接 import
|
|
16
16
|
* (vite 构建不断),单测零开销。
|
|
17
17
|
*/
|
|
18
|
+
/** 画布流水线编辑工具(定义见 canvas/canvas-agent-tool.ts,单 action:list/get/add_node/update_node/delete_node/add_edge/delete_edge/apply_dag)。 */
|
|
19
|
+
export const CANVAS_TOOL_NAME = "canvas";
|
|
18
20
|
/** 持久终端工具(定义见 terminals.ts,工具名在此唯一登记)。 */
|
|
19
21
|
export const TERMINAL_TOOL_NAMES = [
|
|
20
22
|
"terminal_create",
|
|
@@ -285,6 +287,14 @@ export const AGENT_TOOL_CATALOG = [
|
|
|
285
287
|
descKey: "toolsWorktreeDesc",
|
|
286
288
|
offHintKey: "toolsWorktreeOffHint",
|
|
287
289
|
},
|
|
290
|
+
{
|
|
291
|
+
name: CANVAS_TOOL_NAME,
|
|
292
|
+
group: "other",
|
|
293
|
+
defaultOn: true,
|
|
294
|
+
dshVisible: false,
|
|
295
|
+
descKey: "canvasToolEnabledDesc",
|
|
296
|
+
offHintKey: "canvasToolOffHint",
|
|
297
|
+
},
|
|
288
298
|
];
|
|
289
299
|
/** SDK 核心内置工具名(可被门控显式禁用或被预设白名单过滤)。 */
|
|
290
300
|
export const CORE_BUILTIN_TOOL_NAMES = ["bash", "read", "edit", "write", "powershell", "ls", "grep", "find"];
|
|
@@ -428,6 +438,26 @@ export function applyAgentToolsGating(session, disabled, preset, options) {
|
|
|
428
438
|
// load_tools 是延迟加载模式下的脚手架工具:非延迟加载模式下绝不暴露给模型。
|
|
429
439
|
// 默认从候选集中剔除;仅当延迟加载开启且由 options.forceActive 显式指定时才加回。
|
|
430
440
|
names.delete(LOAD_TOOLS_TOOL_NAME);
|
|
441
|
+
// PATCH-B1: MCP 工具尊重 exposure——codemode/deferred/hidden 不进门控基线。
|
|
442
|
+
// 全集基线会把非 direct 的 MCP 工具强制激活(schema 全量注入每轮请求,pi 本体的
|
|
443
|
+
// tool_search 按需加载被绕过,实测 deferred 配置下 241 个工具回归全量)。
|
|
444
|
+
// 现交给 pi 本体机制管理;存在 deferred 工具时保活 tool_search 发现通道
|
|
445
|
+
// (用户在禁用名单显式关掉 tool_search 时尊重其选择)。options.forceActive 可越过。
|
|
446
|
+
const allToolsSnapshot = session.getAllTools?.() ?? [];
|
|
447
|
+
let hasDeferredMcp = false;
|
|
448
|
+
for (const t of allToolsSnapshot) {
|
|
449
|
+
const ns = t?.namespace?.name ?? "";
|
|
450
|
+
if (typeof ns !== "string" || !ns.startsWith("mcp__"))
|
|
451
|
+
continue;
|
|
452
|
+
const exp = t.exposure ?? "codemode";
|
|
453
|
+
if (exp === "direct" || exp === "model-only")
|
|
454
|
+
continue;
|
|
455
|
+
names.delete(t.name);
|
|
456
|
+
if (exp === "deferred")
|
|
457
|
+
hasDeferredMcp = true;
|
|
458
|
+
}
|
|
459
|
+
if (hasDeferredMcp && allNames.includes("tool_search") && !off.has("tool_search"))
|
|
460
|
+
names.add("tool_search");
|
|
431
461
|
const filtered = filterToolsByPreset(names, preset);
|
|
432
462
|
const active = new Set(filtered);
|
|
433
463
|
const baseline = new Set(allNames);
|