dsh-desktop-enhance 0.3.8 → 0.3.10
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/lib/client.js +2 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1332,6 +1332,7 @@ window.__ModuleLoader__.load({
|
|
|
1332
1332
|
const known = KNOWN_TOOL_SPECS[name];
|
|
1333
1333
|
if (explicitPkg !== "" && explicitPkg !== "root" && explicitPkg !== "builtin") {
|
|
1334
1334
|
if (explicitPkg.startsWith("mcp:")) return makeMcpOrigin(explicitPkg.slice(4));
|
|
1335
|
+
if (known !== void 0 && known.scope === "builtin") return makeKnownOrigin(known);
|
|
1335
1336
|
if (isPluginToolPackage(explicitPkg)) {
|
|
1336
1337
|
const badge = shortBadgeOfPackage(explicitPkg);
|
|
1337
1338
|
return {
|
|
@@ -1341,7 +1342,6 @@ window.__ModuleLoader__.load({
|
|
|
1341
1342
|
groupKey: badge
|
|
1342
1343
|
};
|
|
1343
1344
|
}
|
|
1344
|
-
if (known !== void 0 && known.scope === "builtin") return makeKnownOrigin(known);
|
|
1345
1345
|
const builtinGroup = BUILTIN_TOOL_PACKAGES.get(explicitPkg);
|
|
1346
1346
|
const groupKey = builtinGroup === void 0 || builtinGroup === "builtin" ? splitToolName(name)[0] ?? name : builtinGroup === "fs" ? name === "read" || name === "read_image" ? "read" : name : builtinGroup === "fs_search" ? name : builtinGroup;
|
|
1347
1347
|
return {
|
|
@@ -1383,7 +1383,7 @@ window.__ModuleLoader__.load({
|
|
|
1383
1383
|
else {
|
|
1384
1384
|
const children = finalizeBranch(child.branch);
|
|
1385
1385
|
const firstChild = children[0];
|
|
1386
|
-
if (children.length === 1 && firstChild !== void 0 && firstChild.kind === "leaf" && !child.prefix.startsWith("mcp")) {
|
|
1386
|
+
if (children.length === 1 && firstChild !== void 0 && firstChild.kind === "leaf" && child.scope !== "plugin" && !child.prefix.startsWith("mcp")) {
|
|
1387
1387
|
nodes.push(firstChild);
|
|
1388
1388
|
continue;
|
|
1389
1389
|
}
|
|
@@ -4735,7 +4735,6 @@ window.__ModuleLoader__.load({
|
|
|
4735
4735
|
activeSessionId = null;
|
|
4736
4736
|
hostProjection = null;
|
|
4737
4737
|
activePopover = null;
|
|
4738
|
-
userMinimized = null;
|
|
4739
4738
|
removePanel();
|
|
4740
4739
|
}
|
|
4741
4740
|
function ensureToolsCatalog(root, sessionId, force = false) {
|
package/lib/index.js
CHANGED
|
@@ -990,6 +990,7 @@ function classifyToolOrigin(toolName, rawPluginName) {
|
|
|
990
990
|
const known = KNOWN_TOOL_SPECS[name];
|
|
991
991
|
if (explicitPkg !== "" && explicitPkg !== "root" && explicitPkg !== "builtin") {
|
|
992
992
|
if (explicitPkg.startsWith("mcp:")) return makeMcpOrigin(explicitPkg.slice(4));
|
|
993
|
+
if (known !== void 0 && known.scope === "builtin") return makeKnownOrigin(known);
|
|
993
994
|
if (isPluginToolPackage(explicitPkg)) {
|
|
994
995
|
const badge = shortBadgeOfPackage(explicitPkg);
|
|
995
996
|
return {
|
|
@@ -999,7 +1000,6 @@ function classifyToolOrigin(toolName, rawPluginName) {
|
|
|
999
1000
|
groupKey: badge
|
|
1000
1001
|
};
|
|
1001
1002
|
}
|
|
1002
|
-
if (known !== void 0 && known.scope === "builtin") return makeKnownOrigin(known);
|
|
1003
1003
|
const builtinGroup = BUILTIN_TOOL_PACKAGES.get(explicitPkg);
|
|
1004
1004
|
const groupKey = builtinGroup === void 0 || builtinGroup === "builtin" ? splitToolName(name)[0] ?? name : builtinGroup === "fs" ? name === "read" || name === "read_image" ? "read" : name : builtinGroup === "fs_search" ? name : builtinGroup;
|
|
1005
1005
|
return {
|