@seastudio/sdk 4.0.0 → 4.0.1
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/{chunk-7X4BSYXP.js → chunk-4N65MCEL.js} +1 -1
- package/dist/{chunk-2W5YYT5U.js → chunk-CRW5HIAT.js} +14 -1
- package/dist/{chunk-N2R5CFQG.cjs → chunk-ESYMLBX2.cjs} +14 -1
- package/dist/{chunk-N3KDYKNM.cjs → chunk-PHCR3VWY.cjs} +4 -4
- package/dist/index.cjs +24 -24
- package/dist/index.js +2 -2
- package/dist/mcp/index.cjs +24 -24
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/seastudio/index.cjs +32 -32
- package/dist/mcp/seastudio/index.d.cts +4 -1
- package/dist/mcp/seastudio/index.d.ts +4 -1
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +1 -1
|
@@ -218,7 +218,7 @@ var fileTools = [
|
|
|
218
218
|
}),
|
|
219
219
|
annotateTool({
|
|
220
220
|
name: "seastudio-filesystem_transfer",
|
|
221
|
-
description: "\u5904\u7406\u6587\u4EF6 URL\u3001\u8FDC\u7A0B\u4E0B\u8F7D\u3001\u590D\u5236\u7C98\u8D34\u548C\u526A\u8D34\u677F\u7B49\u7CFB\u7EDF\u6216\u5916\u90E8\u4EA4\u4E92\u3002\u4F7F\u7528 action \u9009\u62E9 getUrl\u3001download\u3001copy\u3001paste\u3001clipboardCheck \u6216 copyPath\u3002",
|
|
221
|
+
description: "\u5904\u7406\u6587\u4EF6 URL\u3001\u8FDC\u7A0B\u4E0B\u8F7D\u3001\u590D\u5236\u7C98\u8D34\u548C\u526A\u8D34\u677F\u7B49\u7CFB\u7EDF\u6216\u5916\u90E8\u4EA4\u4E92\u3002\u4F7F\u7528 action \u9009\u62E9 getUrl\u3001download\u3001copy\u3001paste\u3001clipboardCheck \u6216 copyPath\u3002copy \u652F\u6301\u901A\u8FC7 path \u590D\u5236\u5355\u4E2A\u9879\u76EE\uFF0C\u6216\u901A\u8FC7 paths \u4E00\u6B21\u590D\u5236/\u526A\u5207\u591A\u4E2A\u9879\u76EE\u3002",
|
|
222
222
|
inputSchema: {
|
|
223
223
|
type: "object",
|
|
224
224
|
properties: {
|
|
@@ -229,6 +229,16 @@ var fileTools = [
|
|
|
229
229
|
},
|
|
230
230
|
rootId: rootIdParam,
|
|
231
231
|
path: pathParam,
|
|
232
|
+
paths: {
|
|
233
|
+
type: "array",
|
|
234
|
+
items: { type: "string" },
|
|
235
|
+
description: "copy \u52A8\u4F5C\u53EF\u9009\uFF1A\u76F8\u5BF9\u4E8E rootId \u7684\u591A\u4E2A\u6587\u4EF6\u6216\u76EE\u5F55\u8DEF\u5F84\u3002"
|
|
236
|
+
},
|
|
237
|
+
clipboardMode: {
|
|
238
|
+
type: "string",
|
|
239
|
+
enum: ["copy", "cut"],
|
|
240
|
+
description: "copy \u52A8\u4F5C\u53EF\u9009\uFF1A\u5199\u5165\u526A\u8D34\u677F\u7684\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u4E3A 'copy'\uFF0C\u8BBE\u4E3A 'cut' \u8868\u793A\u526A\u5207\u3002"
|
|
241
|
+
},
|
|
232
242
|
url: { type: "string", description: "download \u7684\u8FDC\u7A0B\u6587\u4EF6 URL\u3002" },
|
|
233
243
|
absoluteDir: { type: "string", description: "download \u7684\u672C\u5730\u7EDD\u5BF9\u4FDD\u5B58\u76EE\u5F55\uFF08\u53EF\u9009\uFF09\u3002" },
|
|
234
244
|
filenameHint: { type: "string", description: "download \u7684\u6587\u4EF6\u540D\u63D0\u793A\uFF08\u53EF\u9009\uFF09\u3002" }
|
|
@@ -472,6 +482,9 @@ var seastudio = {
|
|
|
472
482
|
});
|
|
473
483
|
},
|
|
474
484
|
copy: (path, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", path }),
|
|
485
|
+
copyMany: (paths, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", paths }),
|
|
486
|
+
cut: (path, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", path, clipboardMode: "cut" }),
|
|
487
|
+
cutMany: (paths, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", paths, clipboardMode: "cut" }),
|
|
475
488
|
paste: (path = "", options) => callFilesystemTransfer("paste", { rootId: options?.rootId ?? "workspace", path }),
|
|
476
489
|
clipboardCheck: () => callFilesystemTransfer("clipboardCheck"),
|
|
477
490
|
copyPath: (path, options) => callFilesystemTransfer("copyPath", { rootId: options?.rootId ?? "workspace", path }),
|
|
@@ -220,7 +220,7 @@ var fileTools = [
|
|
|
220
220
|
}),
|
|
221
221
|
annotateTool({
|
|
222
222
|
name: "seastudio-filesystem_transfer",
|
|
223
|
-
description: "\u5904\u7406\u6587\u4EF6 URL\u3001\u8FDC\u7A0B\u4E0B\u8F7D\u3001\u590D\u5236\u7C98\u8D34\u548C\u526A\u8D34\u677F\u7B49\u7CFB\u7EDF\u6216\u5916\u90E8\u4EA4\u4E92\u3002\u4F7F\u7528 action \u9009\u62E9 getUrl\u3001download\u3001copy\u3001paste\u3001clipboardCheck \u6216 copyPath\u3002",
|
|
223
|
+
description: "\u5904\u7406\u6587\u4EF6 URL\u3001\u8FDC\u7A0B\u4E0B\u8F7D\u3001\u590D\u5236\u7C98\u8D34\u548C\u526A\u8D34\u677F\u7B49\u7CFB\u7EDF\u6216\u5916\u90E8\u4EA4\u4E92\u3002\u4F7F\u7528 action \u9009\u62E9 getUrl\u3001download\u3001copy\u3001paste\u3001clipboardCheck \u6216 copyPath\u3002copy \u652F\u6301\u901A\u8FC7 path \u590D\u5236\u5355\u4E2A\u9879\u76EE\uFF0C\u6216\u901A\u8FC7 paths \u4E00\u6B21\u590D\u5236/\u526A\u5207\u591A\u4E2A\u9879\u76EE\u3002",
|
|
224
224
|
inputSchema: {
|
|
225
225
|
type: "object",
|
|
226
226
|
properties: {
|
|
@@ -231,6 +231,16 @@ var fileTools = [
|
|
|
231
231
|
},
|
|
232
232
|
rootId: rootIdParam,
|
|
233
233
|
path: pathParam,
|
|
234
|
+
paths: {
|
|
235
|
+
type: "array",
|
|
236
|
+
items: { type: "string" },
|
|
237
|
+
description: "copy \u52A8\u4F5C\u53EF\u9009\uFF1A\u76F8\u5BF9\u4E8E rootId \u7684\u591A\u4E2A\u6587\u4EF6\u6216\u76EE\u5F55\u8DEF\u5F84\u3002"
|
|
238
|
+
},
|
|
239
|
+
clipboardMode: {
|
|
240
|
+
type: "string",
|
|
241
|
+
enum: ["copy", "cut"],
|
|
242
|
+
description: "copy \u52A8\u4F5C\u53EF\u9009\uFF1A\u5199\u5165\u526A\u8D34\u677F\u7684\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u4E3A 'copy'\uFF0C\u8BBE\u4E3A 'cut' \u8868\u793A\u526A\u5207\u3002"
|
|
243
|
+
},
|
|
234
244
|
url: { type: "string", description: "download \u7684\u8FDC\u7A0B\u6587\u4EF6 URL\u3002" },
|
|
235
245
|
absoluteDir: { type: "string", description: "download \u7684\u672C\u5730\u7EDD\u5BF9\u4FDD\u5B58\u76EE\u5F55\uFF08\u53EF\u9009\uFF09\u3002" },
|
|
236
246
|
filenameHint: { type: "string", description: "download \u7684\u6587\u4EF6\u540D\u63D0\u793A\uFF08\u53EF\u9009\uFF09\u3002" }
|
|
@@ -474,6 +484,9 @@ var seastudio = {
|
|
|
474
484
|
});
|
|
475
485
|
},
|
|
476
486
|
copy: (path, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", path }),
|
|
487
|
+
copyMany: (paths, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", paths }),
|
|
488
|
+
cut: (path, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", path, clipboardMode: "cut" }),
|
|
489
|
+
cutMany: (paths, options) => callFilesystemTransfer("copy", { rootId: options?.rootId ?? "workspace", paths, clipboardMode: "cut" }),
|
|
477
490
|
paste: (path = "", options) => callFilesystemTransfer("paste", { rootId: options?.rootId ?? "workspace", path }),
|
|
478
491
|
clipboardCheck: () => callFilesystemTransfer("clipboardCheck"),
|
|
479
492
|
copyPath: (path, options) => callFilesystemTransfer("copyPath", { rootId: options?.rootId ?? "workspace", path }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkESYMLBX2_cjs = require('./chunk-ESYMLBX2.cjs');
|
|
4
4
|
var chunk3I7UM66P_cjs = require('./chunk-3I7UM66P.cjs');
|
|
5
5
|
|
|
6
6
|
// src/mcp/index.ts
|
|
@@ -11,7 +11,7 @@ async function loadPlugin(pluginName) {
|
|
|
11
11
|
throw new Error(`Unknown plugin: ${pluginName}. \u63D2\u4EF6 MCP \u4E0D\u518D\u901A\u8FC7 SDK \u9759\u6001\u5BFC\u5165\u3002`);
|
|
12
12
|
}
|
|
13
13
|
var MCP_PACKAGES = [
|
|
14
|
-
{ id: "seastudio", name: "SeaStudio", description: "\u6587\u4EF6/Shell/AIGC \u57FA\u7840\u80FD\u529B", tools:
|
|
14
|
+
{ id: "seastudio", name: "SeaStudio", description: "\u6587\u4EF6/Shell/AIGC \u57FA\u7840\u80FD\u529B", tools: chunkESYMLBX2_cjs.allTools }
|
|
15
15
|
];
|
|
16
16
|
function mcpToolToOpenAI(tool) {
|
|
17
17
|
const normalizedTool = chunk3I7UM66P_cjs.normalizeMCPTool(tool);
|
|
@@ -29,7 +29,7 @@ function mcpToolToOpenAI(tool) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function listAllTools() {
|
|
32
|
-
return [...
|
|
32
|
+
return [...chunkESYMLBX2_cjs.allTools];
|
|
33
33
|
}
|
|
34
34
|
function toPackageName(source) {
|
|
35
35
|
if (source === "seastudio") {
|
|
@@ -62,7 +62,7 @@ function normalizeAvailableTool(raw) {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
var MCP_TOOL_PACKAGE_INDEX = new Map(
|
|
65
|
-
|
|
65
|
+
chunkESYMLBX2_cjs.allTools.map((tool) => [tool.name, "seastudio"])
|
|
66
66
|
);
|
|
67
67
|
function getMCPToolPackageIndex() {
|
|
68
68
|
return new Map(MCP_TOOL_PACKAGE_INDEX);
|
package/dist/index.cjs
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPHCR3VWY_cjs = require('./chunk-PHCR3VWY.cjs');
|
|
4
4
|
var chunkTKROLSLX_cjs = require('./chunk-TKROLSLX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkESYMLBX2_cjs = require('./chunk-ESYMLBX2.cjs');
|
|
6
6
|
var chunk3I7UM66P_cjs = require('./chunk-3I7UM66P.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "MCP_PACKAGES", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkPHCR3VWY_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkPHCR3VWY_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkPHCR3VWY_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkPHCR3VWY_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkPHCR3VWY_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkPHCR3VWY_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkPHCR3VWY_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkPHCR3VWY_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkPHCR3VWY_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkPHCR3VWY_cjs.mcpToolToOpenAI; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "DialogBody", {
|
|
51
51
|
enumerable: true,
|
|
@@ -101,51 +101,51 @@ Object.defineProperty(exports, "showHostContextMenu", {
|
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkESYMLBX2_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkESYMLBX2_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkESYMLBX2_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkESYMLBX2_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkESYMLBX2_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkESYMLBX2_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkESYMLBX2_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkESYMLBX2_cjs.seaCloudTools; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudio", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkESYMLBX2_cjs.seastudio; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkESYMLBX2_cjs.allTools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "seastudioTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkESYMLBX2_cjs.tools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "shellTools", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkESYMLBX2_cjs.shellTools; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "MCPClient", {
|
|
151
151
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from './chunk-
|
|
1
|
+
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from './chunk-4N65MCEL.js';
|
|
2
2
|
export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from './chunk-UZWEOUCK.js';
|
|
3
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-
|
|
3
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-CRW5HIAT.js';
|
|
4
4
|
export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './chunk-TJ3CGHWJ.js';
|
package/dist/mcp/index.cjs
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkPHCR3VWY_cjs = require('../chunk-PHCR3VWY.cjs');
|
|
4
|
+
var chunkESYMLBX2_cjs = require('../chunk-ESYMLBX2.cjs');
|
|
5
5
|
var chunk3I7UM66P_cjs = require('../chunk-3I7UM66P.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "MCP_PACKAGES", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkPHCR3VWY_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkPHCR3VWY_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkPHCR3VWY_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkPHCR3VWY_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkPHCR3VWY_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkPHCR3VWY_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkPHCR3VWY_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkPHCR3VWY_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkPHCR3VWY_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkPHCR3VWY_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkESYMLBX2_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkESYMLBX2_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkESYMLBX2_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkESYMLBX2_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkESYMLBX2_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkESYMLBX2_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkESYMLBX2_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkESYMLBX2_cjs.seaCloudTools; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudio", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkESYMLBX2_cjs.seastudio; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkESYMLBX2_cjs.allTools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "seastudioTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkESYMLBX2_cjs.tools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "shellTools", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkESYMLBX2_cjs.shellTools; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "MCPClient", {
|
|
98
98
|
enumerable: true,
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-
|
|
2
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-
|
|
1
|
+
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-4N65MCEL.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-CRW5HIAT.js';
|
|
3
3
|
export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from '../chunk-TJ3CGHWJ.js';
|
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkESYMLBX2_cjs = require('../../chunk-ESYMLBX2.cjs');
|
|
4
4
|
require('../../chunk-3I7UM66P.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkESYMLBX2_cjs.SeastudioNotifications; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkESYMLBX2_cjs.SeastudioRequests; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkESYMLBX2_cjs.agentManagementTools; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "agentTabTools", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkESYMLBX2_cjs.agentTabTools; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "allTools", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkESYMLBX2_cjs.allTools; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "annotateTool", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkESYMLBX2_cjs.annotateTool; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "batchFlattenCopyEvidenceOutputSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkESYMLBX2_cjs.batchFlattenCopyEvidenceOutputSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "browserRuntimeTools", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkESYMLBX2_cjs.browserRuntimeTools; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "callTool", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkESYMLBX2_cjs.callTool; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "callToolText", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkESYMLBX2_cjs.callToolText; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "dualPathEvidenceOutputSchema", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkESYMLBX2_cjs.dualPathEvidenceOutputSchema; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "fileDownloadEvidenceOutputSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkESYMLBX2_cjs.fileDownloadEvidenceOutputSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "fileTools", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkESYMLBX2_cjs.fileTools; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "fileUrlEvidenceOutputSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkESYMLBX2_cjs.fileUrlEvidenceOutputSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkESYMLBX2_cjs.pluginManagementTools; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkESYMLBX2_cjs.pluginTabTools; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "projectTools", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkESYMLBX2_cjs.projectTools; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "request", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkESYMLBX2_cjs.request; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "rootedPathEvidenceOutputSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkESYMLBX2_cjs.rootedPathEvidenceOutputSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "rootedWriteEvidenceOutputSchema", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkESYMLBX2_cjs.rootedWriteEvidenceOutputSchema; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "runOneShotShellCommand", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkESYMLBX2_cjs.runOneShotShellCommand; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkESYMLBX2_cjs.seaCloudTools; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "seastudio", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkESYMLBX2_cjs.seastudio; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "shellSessionCloseEvidenceOutputSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkESYMLBX2_cjs.shellSessionCloseEvidenceOutputSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "shellSessionOpenEvidenceOutputSchema", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkESYMLBX2_cjs.shellSessionOpenEvidenceOutputSchema; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "shellSessionRunEvidenceOutputSchema", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkESYMLBX2_cjs.shellSessionRunEvidenceOutputSchema; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "shellSessionSignalEvidenceOutputSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkESYMLBX2_cjs.shellSessionSignalEvidenceOutputSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "shellSessionSnapshotEvidenceOutputSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkESYMLBX2_cjs.shellSessionSnapshotEvidenceOutputSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "shellTools", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkESYMLBX2_cjs.shellTools; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "skillTools", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkESYMLBX2_cjs.skillTools; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "tools", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkESYMLBX2_cjs.tools; }
|
|
131
131
|
});
|
|
@@ -273,6 +273,9 @@ declare const seastudio: {
|
|
|
273
273
|
move: (sourcePath: string, destDir: string, options?: SeastudioFileTransferOptions) => Promise<MCPToolResult>;
|
|
274
274
|
copyTo: (sourcePath: string, destDir: string, options?: SeastudioFileTransferOptions) => Promise<MCPToolResult>;
|
|
275
275
|
copy: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
276
|
+
copyMany: (paths: string[], options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
277
|
+
cut: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
278
|
+
cutMany: (paths: string[], options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
276
279
|
paste: (path?: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
277
280
|
clipboardCheck: () => Promise<MCPToolResult>;
|
|
278
281
|
copyPath: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
@@ -701,7 +704,7 @@ interface SessionNotificationBase {
|
|
|
701
704
|
projectId?: string;
|
|
702
705
|
}
|
|
703
706
|
/** Agent 对话 session 的宿主展示状态 */
|
|
704
|
-
type SessionStatus = 'idle' | 'processing' | 'completed' | 'failed';
|
|
707
|
+
type SessionStatus = 'idle' | 'awaiting_user' | 'processing' | 'completed' | 'failed';
|
|
705
708
|
interface SessionCreatedParams extends SessionNotificationBase {
|
|
706
709
|
/** 展示用标题 */
|
|
707
710
|
title?: string;
|
|
@@ -273,6 +273,9 @@ declare const seastudio: {
|
|
|
273
273
|
move: (sourcePath: string, destDir: string, options?: SeastudioFileTransferOptions) => Promise<MCPToolResult>;
|
|
274
274
|
copyTo: (sourcePath: string, destDir: string, options?: SeastudioFileTransferOptions) => Promise<MCPToolResult>;
|
|
275
275
|
copy: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
276
|
+
copyMany: (paths: string[], options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
277
|
+
cut: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
278
|
+
cutMany: (paths: string[], options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
276
279
|
paste: (path?: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
277
280
|
clipboardCheck: () => Promise<MCPToolResult>;
|
|
278
281
|
copyPath: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
@@ -701,7 +704,7 @@ interface SessionNotificationBase {
|
|
|
701
704
|
projectId?: string;
|
|
702
705
|
}
|
|
703
706
|
/** Agent 对话 session 的宿主展示状态 */
|
|
704
|
-
type SessionStatus = 'idle' | 'processing' | 'completed' | 'failed';
|
|
707
|
+
type SessionStatus = 'idle' | 'awaiting_user' | 'processing' | 'completed' | 'failed';
|
|
705
708
|
interface SessionCreatedParams extends SessionNotificationBase {
|
|
706
709
|
/** 展示用标题 */
|
|
707
710
|
title?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-
|
|
1
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-CRW5HIAT.js';
|
|
2
2
|
import '../../chunk-TJ3CGHWJ.js';
|