@seastudio/sdk 3.7.3 → 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-TNBCJUAY.js → chunk-4N65MCEL.js} +1 -1
- package/dist/chunk-CRW5HIAT.js +972 -0
- package/dist/chunk-ESYMLBX2.cjs +1004 -0
- package/dist/{chunk-TTHMG5IA.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 +14 -29
- package/dist/mcp/seastudio/index.d.ts +14 -29
- 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 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
|
});
|
|
@@ -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[];
|
|
@@ -275,6 +273,9 @@ declare const seastudio: {
|
|
|
275
273
|
move: (sourcePath: string, destDir: string, options?: SeastudioFileTransferOptions) => Promise<MCPToolResult>;
|
|
276
274
|
copyTo: (sourcePath: string, destDir: string, options?: SeastudioFileTransferOptions) => Promise<MCPToolResult>;
|
|
277
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>;
|
|
278
279
|
paste: (path?: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
279
280
|
clipboardCheck: () => Promise<MCPToolResult>;
|
|
280
281
|
copyPath: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
@@ -366,7 +367,7 @@ declare function runOneShotShellCommand(command: string, options?: SeastudioShel
|
|
|
366
367
|
/**
|
|
367
368
|
* Plugin MCP Tools
|
|
368
369
|
*
|
|
369
|
-
* 插件管理 +
|
|
370
|
+
* 插件管理 + 插件标签操作。
|
|
370
371
|
*/
|
|
371
372
|
|
|
372
373
|
declare const pluginManagementTools: MCPTool[];
|
|
@@ -375,7 +376,7 @@ declare const pluginTabTools: MCPTool[];
|
|
|
375
376
|
/**
|
|
376
377
|
* Agent MCP Tools
|
|
377
378
|
*
|
|
378
|
-
* Agent 管理 + Agent
|
|
379
|
+
* Agent 管理 + Agent 标签操作。
|
|
379
380
|
*/
|
|
380
381
|
|
|
381
382
|
declare const agentManagementTools: MCPTool[];
|
|
@@ -384,7 +385,7 @@ declare const agentTabTools: MCPTool[];
|
|
|
384
385
|
/**
|
|
385
386
|
* Project MCP Tools
|
|
386
387
|
*
|
|
387
|
-
*
|
|
388
|
+
* 项目枚举与寻址。
|
|
388
389
|
*/
|
|
389
390
|
|
|
390
391
|
declare const projectTools: MCPTool[];
|
|
@@ -393,26 +394,12 @@ declare const projectTools: MCPTool[];
|
|
|
393
394
|
* Skill MCP Tools
|
|
394
395
|
*
|
|
395
396
|
* 把桌面端 skillManager 扫描到的 Agent Skill 暴露给 agent 插件(只读)。
|
|
396
|
-
*
|
|
397
|
-
* 说明:
|
|
398
|
-
* - 写操作(安装 / 卸载 / 编辑 scope)不通过 MCP,只在桌面端 IPC engine:skill:* 给设置页 UI 用。
|
|
399
|
-
* - "能 list 出来即生效":scope 即语义,不需要 enabled 字段。
|
|
400
397
|
*/
|
|
401
398
|
|
|
402
399
|
declare const skillTools: MCPTool[];
|
|
403
400
|
|
|
404
401
|
declare const browserRuntimeTools: MCPTool[];
|
|
405
402
|
|
|
406
|
-
/**
|
|
407
|
-
* SeaStudio MCP Notifications
|
|
408
|
-
*
|
|
409
|
-
* 主程序发布的 MCP 通知定义
|
|
410
|
-
*
|
|
411
|
-
* 架构说明:
|
|
412
|
-
* - 插件通过 SeastudioRequests 发送请求到主程序
|
|
413
|
-
* - 主程序处理请求后,通过 SeastudioNotifications 发布标准通知
|
|
414
|
-
* - 所有插件订阅 SeastudioNotifications 中的标准通知
|
|
415
|
-
*/
|
|
416
403
|
/**
|
|
417
404
|
* 插件发送给主程序的请求主题
|
|
418
405
|
*
|
|
@@ -424,7 +411,6 @@ declare const browserRuntimeTools: MCPTool[];
|
|
|
424
411
|
* import { SeastudioRequests } from '@seastudio/sdk/mcp/seastudio';
|
|
425
412
|
*
|
|
426
413
|
* const client = getDefaultClient();
|
|
427
|
-
* // 请求打开文件(主程序会发布 FILE_OPEN_REQUESTED 通知)
|
|
428
414
|
* client.publish(SeastudioRequests.FILE_OPEN, { path: '/path/to/file.ts' });
|
|
429
415
|
* ```
|
|
430
416
|
*/
|
|
@@ -445,18 +431,15 @@ declare const SeastudioRequests: {
|
|
|
445
431
|
*
|
|
446
432
|
* @example
|
|
447
433
|
* ```typescript
|
|
448
|
-
* import {
|
|
434
|
+
* import { getDefaultClient, getDefaultServer } from '@seastudio/sdk/mcp/core';
|
|
449
435
|
* import { SeastudioNotifications } from '@seastudio/sdk/mcp/seastudio';
|
|
450
436
|
*
|
|
451
|
-
* // 订阅通知
|
|
452
437
|
* const client = getDefaultClient();
|
|
453
438
|
* client.subscribe([SeastudioNotifications.FILES_CHANGED]);
|
|
454
439
|
*
|
|
455
|
-
* // 处理通知
|
|
456
440
|
* const server = getDefaultServer();
|
|
457
441
|
* server.onNotification(SeastudioNotifications.FILES_CHANGED, (params) => {
|
|
458
442
|
* const { type, path } = params as FilesChangedParams;
|
|
459
|
-
* // 刷新文件树
|
|
460
443
|
* });
|
|
461
444
|
* ```
|
|
462
445
|
*/
|
|
@@ -528,6 +511,10 @@ declare const SeastudioNotifications: {
|
|
|
528
511
|
*/
|
|
529
512
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
530
513
|
};
|
|
514
|
+
|
|
515
|
+
/** 项目根在 MCP 文件工具中的寻址 id */
|
|
516
|
+
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
517
|
+
type SeastudioDragRootId = SeastudioRootId;
|
|
531
518
|
/**
|
|
532
519
|
* files:changed 通知参数
|
|
533
520
|
*/
|
|
@@ -545,7 +532,6 @@ interface FilesChangedParams {
|
|
|
545
532
|
/** 变化类型:内容变化、结构变化或未知兜底 */
|
|
546
533
|
changeKind?: 'content' | 'structure' | 'unknown';
|
|
547
534
|
}
|
|
548
|
-
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
549
535
|
interface FileRenamedParams {
|
|
550
536
|
/** 根目录 ID */
|
|
551
537
|
rootId: SeastudioRootId;
|
|
@@ -579,7 +565,6 @@ interface RootsChangedParams {
|
|
|
579
565
|
description: string;
|
|
580
566
|
}>;
|
|
581
567
|
}
|
|
582
|
-
type SeastudioDragRootId = SeastudioRootId;
|
|
583
568
|
interface SeastudioDragFileData {
|
|
584
569
|
sourcePath: string;
|
|
585
570
|
sourceRootId?: SeastudioDragRootId;
|
|
@@ -719,7 +704,7 @@ interface SessionNotificationBase {
|
|
|
719
704
|
projectId?: string;
|
|
720
705
|
}
|
|
721
706
|
/** Agent 对话 session 的宿主展示状态 */
|
|
722
|
-
type SessionStatus = 'idle' | 'processing' | 'completed' | 'failed';
|
|
707
|
+
type SessionStatus = 'idle' | 'awaiting_user' | 'processing' | 'completed' | 'failed';
|
|
723
708
|
interface SessionCreatedParams extends SessionNotificationBase {
|
|
724
709
|
/** 展示用标题 */
|
|
725
710
|
title?: string;
|