@seastudio/sdk 3.7.3 → 4.0.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/dist/chunk-2W5YYT5U.js +959 -0
- package/dist/{chunk-TNBCJUAY.js → chunk-7X4BSYXP.js} +1 -1
- package/dist/chunk-N2R5CFQG.cjs +991 -0
- package/dist/{chunk-TTHMG5IA.cjs → chunk-N3KDYKNM.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 +10 -28
- package/dist/mcp/seastudio/index.d.ts +10 -28
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KWOX5T3P.cjs +0 -1854
- package/dist/chunk-PV6XSOI5.js +0 -1822
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN2R5CFQG_cjs = require('./chunk-N2R5CFQG.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: chunkN2R5CFQG_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 [...chunkN2R5CFQG_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
|
+
chunkN2R5CFQG_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 chunkN3KDYKNM_cjs = require('./chunk-N3KDYKNM.cjs');
|
|
4
4
|
var chunkTKROLSLX_cjs = require('./chunk-TKROLSLX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkN2R5CFQG_cjs = require('./chunk-N2R5CFQG.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 chunkN3KDYKNM_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkN3KDYKNM_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkN3KDYKNM_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkN3KDYKNM_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkN3KDYKNM_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkN3KDYKNM_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkN3KDYKNM_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkN3KDYKNM_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkN3KDYKNM_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkN3KDYKNM_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 chunkN2R5CFQG_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkN2R5CFQG_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkN2R5CFQG_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkN2R5CFQG_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkN2R5CFQG_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkN2R5CFQG_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkN2R5CFQG_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkN2R5CFQG_cjs.seaCloudTools; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudio", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkN2R5CFQG_cjs.seastudio; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkN2R5CFQG_cjs.allTools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "seastudioTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkN2R5CFQG_cjs.tools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "shellTools", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkN2R5CFQG_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-7X4BSYXP.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-2W5YYT5U.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 chunkN3KDYKNM_cjs = require('../chunk-N3KDYKNM.cjs');
|
|
4
|
+
var chunkN2R5CFQG_cjs = require('../chunk-N2R5CFQG.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 chunkN3KDYKNM_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkN3KDYKNM_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkN3KDYKNM_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkN3KDYKNM_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkN3KDYKNM_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkN3KDYKNM_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkN3KDYKNM_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkN3KDYKNM_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkN3KDYKNM_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkN3KDYKNM_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkN2R5CFQG_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkN2R5CFQG_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkN2R5CFQG_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkN2R5CFQG_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkN2R5CFQG_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkN2R5CFQG_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkN2R5CFQG_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkN2R5CFQG_cjs.seaCloudTools; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudio", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkN2R5CFQG_cjs.seastudio; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkN2R5CFQG_cjs.allTools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "seastudioTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkN2R5CFQG_cjs.tools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "shellTools", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkN2R5CFQG_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-7X4BSYXP.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-2W5YYT5U.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 chunkN2R5CFQG_cjs = require('../../chunk-N2R5CFQG.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 chunkN2R5CFQG_cjs.SeastudioNotifications; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkN2R5CFQG_cjs.SeastudioRequests; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkN2R5CFQG_cjs.agentManagementTools; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "agentTabTools", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkN2R5CFQG_cjs.agentTabTools; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "allTools", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkN2R5CFQG_cjs.allTools; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "annotateTool", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkN2R5CFQG_cjs.annotateTool; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "batchFlattenCopyEvidenceOutputSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkN2R5CFQG_cjs.batchFlattenCopyEvidenceOutputSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "browserRuntimeTools", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkN2R5CFQG_cjs.browserRuntimeTools; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "callTool", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkN2R5CFQG_cjs.callTool; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "callToolText", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkN2R5CFQG_cjs.callToolText; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "dualPathEvidenceOutputSchema", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkN2R5CFQG_cjs.dualPathEvidenceOutputSchema; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "fileDownloadEvidenceOutputSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkN2R5CFQG_cjs.fileDownloadEvidenceOutputSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "fileTools", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkN2R5CFQG_cjs.fileTools; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "fileUrlEvidenceOutputSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkN2R5CFQG_cjs.fileUrlEvidenceOutputSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkN2R5CFQG_cjs.pluginManagementTools; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkN2R5CFQG_cjs.pluginTabTools; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "projectTools", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkN2R5CFQG_cjs.projectTools; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "request", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkN2R5CFQG_cjs.request; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "rootedPathEvidenceOutputSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkN2R5CFQG_cjs.rootedPathEvidenceOutputSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "rootedWriteEvidenceOutputSchema", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkN2R5CFQG_cjs.rootedWriteEvidenceOutputSchema; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "runOneShotShellCommand", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkN2R5CFQG_cjs.runOneShotShellCommand; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkN2R5CFQG_cjs.seaCloudTools; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "seastudio", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkN2R5CFQG_cjs.seastudio; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "shellSessionCloseEvidenceOutputSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkN2R5CFQG_cjs.shellSessionCloseEvidenceOutputSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "shellSessionOpenEvidenceOutputSchema", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkN2R5CFQG_cjs.shellSessionOpenEvidenceOutputSchema; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "shellSessionRunEvidenceOutputSchema", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkN2R5CFQG_cjs.shellSessionRunEvidenceOutputSchema; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "shellSessionSignalEvidenceOutputSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkN2R5CFQG_cjs.shellSessionSignalEvidenceOutputSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "shellSessionSnapshotEvidenceOutputSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkN2R5CFQG_cjs.shellSessionSnapshotEvidenceOutputSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "shellTools", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkN2R5CFQG_cjs.shellTools; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "skillTools", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkN2R5CFQG_cjs.skillTools; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "tools", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkN2R5CFQG_cjs.tools; }
|
|
131
131
|
});
|
|
@@ -3,7 +3,7 @@ import { g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema, k as MC
|
|
|
3
3
|
/**
|
|
4
4
|
* File MCP Tools
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* 文件系统读写、传输与剪贴板能力。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
declare function annotateTool(tool: MCPTool, annotations: MCPToolAnnotations, outputSchema?: MCPToolInputSchema): MCPTool;
|
|
@@ -24,8 +24,6 @@ declare const fileTools: MCPTool[];
|
|
|
24
24
|
* Shell MCP Tools
|
|
25
25
|
*
|
|
26
26
|
* 基于 PTY 的多 session 长会话工具。
|
|
27
|
-
* 全部 session 命令式 API:
|
|
28
|
-
* open / list / get / run / wait / get_entries / signal / clear_entries / close
|
|
29
27
|
*/
|
|
30
28
|
|
|
31
29
|
declare const shellTools: MCPTool[];
|
|
@@ -33,7 +31,7 @@ declare const shellTools: MCPTool[];
|
|
|
33
31
|
/**
|
|
34
32
|
* AIGC MCP Tools
|
|
35
33
|
*
|
|
36
|
-
* SeaCloud
|
|
34
|
+
* SeaCloud 多模态生成能力。
|
|
37
35
|
*/
|
|
38
36
|
|
|
39
37
|
declare const seaCloudTools: MCPTool[];
|
|
@@ -366,7 +364,7 @@ declare function runOneShotShellCommand(command: string, options?: SeastudioShel
|
|
|
366
364
|
/**
|
|
367
365
|
* Plugin MCP Tools
|
|
368
366
|
*
|
|
369
|
-
* 插件管理 +
|
|
367
|
+
* 插件管理 + 插件标签操作。
|
|
370
368
|
*/
|
|
371
369
|
|
|
372
370
|
declare const pluginManagementTools: MCPTool[];
|
|
@@ -375,7 +373,7 @@ declare const pluginTabTools: MCPTool[];
|
|
|
375
373
|
/**
|
|
376
374
|
* Agent MCP Tools
|
|
377
375
|
*
|
|
378
|
-
* Agent 管理 + Agent
|
|
376
|
+
* Agent 管理 + Agent 标签操作。
|
|
379
377
|
*/
|
|
380
378
|
|
|
381
379
|
declare const agentManagementTools: MCPTool[];
|
|
@@ -384,7 +382,7 @@ declare const agentTabTools: MCPTool[];
|
|
|
384
382
|
/**
|
|
385
383
|
* Project MCP Tools
|
|
386
384
|
*
|
|
387
|
-
*
|
|
385
|
+
* 项目枚举与寻址。
|
|
388
386
|
*/
|
|
389
387
|
|
|
390
388
|
declare const projectTools: MCPTool[];
|
|
@@ -393,26 +391,12 @@ declare const projectTools: MCPTool[];
|
|
|
393
391
|
* Skill MCP Tools
|
|
394
392
|
*
|
|
395
393
|
* 把桌面端 skillManager 扫描到的 Agent Skill 暴露给 agent 插件(只读)。
|
|
396
|
-
*
|
|
397
|
-
* 说明:
|
|
398
|
-
* - 写操作(安装 / 卸载 / 编辑 scope)不通过 MCP,只在桌面端 IPC engine:skill:* 给设置页 UI 用。
|
|
399
|
-
* - "能 list 出来即生效":scope 即语义,不需要 enabled 字段。
|
|
400
394
|
*/
|
|
401
395
|
|
|
402
396
|
declare const skillTools: MCPTool[];
|
|
403
397
|
|
|
404
398
|
declare const browserRuntimeTools: MCPTool[];
|
|
405
399
|
|
|
406
|
-
/**
|
|
407
|
-
* SeaStudio MCP Notifications
|
|
408
|
-
*
|
|
409
|
-
* 主程序发布的 MCP 通知定义
|
|
410
|
-
*
|
|
411
|
-
* 架构说明:
|
|
412
|
-
* - 插件通过 SeastudioRequests 发送请求到主程序
|
|
413
|
-
* - 主程序处理请求后,通过 SeastudioNotifications 发布标准通知
|
|
414
|
-
* - 所有插件订阅 SeastudioNotifications 中的标准通知
|
|
415
|
-
*/
|
|
416
400
|
/**
|
|
417
401
|
* 插件发送给主程序的请求主题
|
|
418
402
|
*
|
|
@@ -424,7 +408,6 @@ declare const browserRuntimeTools: MCPTool[];
|
|
|
424
408
|
* import { SeastudioRequests } from '@seastudio/sdk/mcp/seastudio';
|
|
425
409
|
*
|
|
426
410
|
* const client = getDefaultClient();
|
|
427
|
-
* // 请求打开文件(主程序会发布 FILE_OPEN_REQUESTED 通知)
|
|
428
411
|
* client.publish(SeastudioRequests.FILE_OPEN, { path: '/path/to/file.ts' });
|
|
429
412
|
* ```
|
|
430
413
|
*/
|
|
@@ -445,18 +428,15 @@ declare const SeastudioRequests: {
|
|
|
445
428
|
*
|
|
446
429
|
* @example
|
|
447
430
|
* ```typescript
|
|
448
|
-
* import {
|
|
431
|
+
* import { getDefaultClient, getDefaultServer } from '@seastudio/sdk/mcp/core';
|
|
449
432
|
* import { SeastudioNotifications } from '@seastudio/sdk/mcp/seastudio';
|
|
450
433
|
*
|
|
451
|
-
* // 订阅通知
|
|
452
434
|
* const client = getDefaultClient();
|
|
453
435
|
* client.subscribe([SeastudioNotifications.FILES_CHANGED]);
|
|
454
436
|
*
|
|
455
|
-
* // 处理通知
|
|
456
437
|
* const server = getDefaultServer();
|
|
457
438
|
* server.onNotification(SeastudioNotifications.FILES_CHANGED, (params) => {
|
|
458
439
|
* const { type, path } = params as FilesChangedParams;
|
|
459
|
-
* // 刷新文件树
|
|
460
440
|
* });
|
|
461
441
|
* ```
|
|
462
442
|
*/
|
|
@@ -528,6 +508,10 @@ declare const SeastudioNotifications: {
|
|
|
528
508
|
*/
|
|
529
509
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
530
510
|
};
|
|
511
|
+
|
|
512
|
+
/** 项目根在 MCP 文件工具中的寻址 id */
|
|
513
|
+
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
514
|
+
type SeastudioDragRootId = SeastudioRootId;
|
|
531
515
|
/**
|
|
532
516
|
* files:changed 通知参数
|
|
533
517
|
*/
|
|
@@ -545,7 +529,6 @@ interface FilesChangedParams {
|
|
|
545
529
|
/** 变化类型:内容变化、结构变化或未知兜底 */
|
|
546
530
|
changeKind?: 'content' | 'structure' | 'unknown';
|
|
547
531
|
}
|
|
548
|
-
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
549
532
|
interface FileRenamedParams {
|
|
550
533
|
/** 根目录 ID */
|
|
551
534
|
rootId: SeastudioRootId;
|
|
@@ -579,7 +562,6 @@ interface RootsChangedParams {
|
|
|
579
562
|
description: string;
|
|
580
563
|
}>;
|
|
581
564
|
}
|
|
582
|
-
type SeastudioDragRootId = SeastudioRootId;
|
|
583
565
|
interface SeastudioDragFileData {
|
|
584
566
|
sourcePath: string;
|
|
585
567
|
sourceRootId?: SeastudioDragRootId;
|