@seastudio/sdk 3.2.5 → 3.3.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-PX2KWRKM.cjs → chunk-2SQFLDTT.cjs} +4 -4
- package/dist/{chunk-YTHD4PO5.js → chunk-BUC7WN5U.js} +1 -1
- package/dist/{chunk-3UVF6MLO.js → chunk-IZRKT6NQ.js} +332 -170
- package/dist/{chunk-7LQXYJPQ.cjs → chunk-UXBJODKS.cjs} +337 -170
- 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 +45 -25
- package/dist/mcp/seastudio/index.d.cts +118 -27
- package/dist/mcp/seastudio/index.d.ts +118 -27
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2SQFLDTT_cjs = require('./chunk-2SQFLDTT.cjs');
|
|
4
4
|
var chunkGEPSOYJN_cjs = require('./chunk-GEPSOYJN.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkUXBJODKS_cjs = require('./chunk-UXBJODKS.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 chunk2SQFLDTT_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk2SQFLDTT_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk2SQFLDTT_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk2SQFLDTT_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk2SQFLDTT_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk2SQFLDTT_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk2SQFLDTT_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk2SQFLDTT_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk2SQFLDTT_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk2SQFLDTT_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 chunkUXBJODKS_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkUXBJODKS_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkUXBJODKS_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkUXBJODKS_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkUXBJODKS_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkUXBJODKS_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkUXBJODKS_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkUXBJODKS_cjs.seaCloudTools; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudio", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkUXBJODKS_cjs.seastudio; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkUXBJODKS_cjs.allTools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "seastudioTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkUXBJODKS_cjs.tools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "shellTools", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkUXBJODKS_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-BUC7WN5U.js';
|
|
2
2
|
export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from './chunk-X62SRZS4.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-IZRKT6NQ.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 chunk2SQFLDTT_cjs = require('../chunk-2SQFLDTT.cjs');
|
|
4
|
+
var chunkUXBJODKS_cjs = require('../chunk-UXBJODKS.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 chunk2SQFLDTT_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk2SQFLDTT_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk2SQFLDTT_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk2SQFLDTT_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk2SQFLDTT_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk2SQFLDTT_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk2SQFLDTT_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk2SQFLDTT_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk2SQFLDTT_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk2SQFLDTT_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkUXBJODKS_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkUXBJODKS_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkUXBJODKS_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkUXBJODKS_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkUXBJODKS_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkUXBJODKS_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkUXBJODKS_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkUXBJODKS_cjs.seaCloudTools; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudio", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkUXBJODKS_cjs.seastudio; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkUXBJODKS_cjs.allTools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "seastudioTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkUXBJODKS_cjs.tools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "shellTools", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkUXBJODKS_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-BUC7WN5U.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-IZRKT6NQ.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,99 +1,119 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUXBJODKS_cjs = require('../../chunk-UXBJODKS.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 chunkUXBJODKS_cjs.SeastudioNotifications; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkUXBJODKS_cjs.SeastudioRequests; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUXBJODKS_cjs.agentManagementTools; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "agentTabTools", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUXBJODKS_cjs.agentTabTools; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "allTools", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkUXBJODKS_cjs.allTools; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "annotateTool", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkUXBJODKS_cjs.annotateTool; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "batchFlattenCopyEvidenceOutputSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkUXBJODKS_cjs.batchFlattenCopyEvidenceOutputSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "callTool", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkUXBJODKS_cjs.callTool; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "callToolText", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkUXBJODKS_cjs.callToolText; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "dualPathEvidenceOutputSchema", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkUXBJODKS_cjs.dualPathEvidenceOutputSchema; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "fileDownloadEvidenceOutputSchema", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkUXBJODKS_cjs.fileDownloadEvidenceOutputSchema; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "fileTools", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkUXBJODKS_cjs.fileTools; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkUXBJODKS_cjs.pluginManagementTools; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkUXBJODKS_cjs.pluginTabTools; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "projectTools", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkUXBJODKS_cjs.projectTools; }
|
|
63
67
|
});
|
|
64
68
|
Object.defineProperty(exports, "request", {
|
|
65
69
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkUXBJODKS_cjs.request; }
|
|
67
71
|
});
|
|
68
72
|
Object.defineProperty(exports, "rootedPathEvidenceOutputSchema", {
|
|
69
73
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkUXBJODKS_cjs.rootedPathEvidenceOutputSchema; }
|
|
71
75
|
});
|
|
72
76
|
Object.defineProperty(exports, "rootedWriteEvidenceOutputSchema", {
|
|
73
77
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkUXBJODKS_cjs.rootedWriteEvidenceOutputSchema; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "runOneShotShellCommand", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkUXBJODKS_cjs.runOneShotShellCommand; }
|
|
75
83
|
});
|
|
76
84
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
77
85
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkUXBJODKS_cjs.seaCloudTools; }
|
|
79
87
|
});
|
|
80
88
|
Object.defineProperty(exports, "seastudio", {
|
|
81
89
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkUXBJODKS_cjs.seastudio; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "shellSessionCloseEvidenceOutputSchema", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkUXBJODKS_cjs.shellSessionCloseEvidenceOutputSchema; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "shellSessionOpenEvidenceOutputSchema", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkUXBJODKS_cjs.shellSessionOpenEvidenceOutputSchema; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "shellSessionRunEvidenceOutputSchema", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkUXBJODKS_cjs.shellSessionRunEvidenceOutputSchema; }
|
|
83
103
|
});
|
|
84
|
-
Object.defineProperty(exports, "
|
|
104
|
+
Object.defineProperty(exports, "shellSessionSignalEvidenceOutputSchema", {
|
|
85
105
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkUXBJODKS_cjs.shellSessionSignalEvidenceOutputSchema; }
|
|
87
107
|
});
|
|
88
108
|
Object.defineProperty(exports, "shellSessionSnapshotEvidenceOutputSchema", {
|
|
89
109
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkUXBJODKS_cjs.shellSessionSnapshotEvidenceOutputSchema; }
|
|
91
111
|
});
|
|
92
112
|
Object.defineProperty(exports, "shellTools", {
|
|
93
113
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkUXBJODKS_cjs.shellTools; }
|
|
95
115
|
});
|
|
96
116
|
Object.defineProperty(exports, "tools", {
|
|
97
117
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkUXBJODKS_cjs.tools; }
|
|
99
119
|
});
|
|
@@ -12,14 +12,19 @@ declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
|
12
12
|
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
13
13
|
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
14
14
|
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
15
|
-
declare const shellCommandEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
15
|
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
|
+
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
|
+
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
18
|
+
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
19
|
+
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
20
|
declare const fileTools: MCPTool[];
|
|
18
21
|
|
|
19
22
|
/**
|
|
20
23
|
* Shell MCP Tools
|
|
21
24
|
*
|
|
22
|
-
*
|
|
25
|
+
* 基于 PTY 的多 session 长会话工具。
|
|
26
|
+
* 全部 session 命令式 API:
|
|
27
|
+
* open / list / get / run / wait / get_entries / signal / clear_entries / close
|
|
23
28
|
*/
|
|
24
29
|
|
|
25
30
|
declare const shellTools: MCPTool[];
|
|
@@ -38,7 +43,15 @@ declare const seaCloudTools: MCPTool[];
|
|
|
38
43
|
* 供 TS/JS 代码直接调用 MCP 的便利 API
|
|
39
44
|
*/
|
|
40
45
|
|
|
41
|
-
type SeastudioFilesystemRootId = 'workspace'
|
|
46
|
+
type SeastudioFilesystemRootId = 'workspace' | `proj-${string}`;
|
|
47
|
+
interface SeastudioProjectInfo {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
path: string;
|
|
51
|
+
lastActiveAt: number;
|
|
52
|
+
isActive: boolean;
|
|
53
|
+
rootId: SeastudioFilesystemRootId;
|
|
54
|
+
}
|
|
42
55
|
interface SeastudioFilesystemRoot {
|
|
43
56
|
id: SeastudioFilesystemRootId;
|
|
44
57
|
label: string;
|
|
@@ -69,6 +82,11 @@ interface SeastudioFileReadOptions {
|
|
|
69
82
|
interface SeastudioFileListOptions {
|
|
70
83
|
rootId?: SeastudioFilesystemRootId;
|
|
71
84
|
}
|
|
85
|
+
interface SeastudioFileTreeOptions {
|
|
86
|
+
rootId?: SeastudioFilesystemRootId;
|
|
87
|
+
maxDepth?: number;
|
|
88
|
+
maxEntries?: number;
|
|
89
|
+
}
|
|
72
90
|
interface SeastudioFileTreeOptions {
|
|
73
91
|
rootId?: SeastudioFilesystemRootId;
|
|
74
92
|
depth?: number;
|
|
@@ -103,33 +121,83 @@ interface SeastudioBatchFlattenPreviewOptions {
|
|
|
103
121
|
}
|
|
104
122
|
interface SeastudioBatchFlattenCopyOptions extends SeastudioFileTransferOptions {
|
|
105
123
|
}
|
|
106
|
-
type
|
|
107
|
-
|
|
124
|
+
type SeastudioShellKind = 'bash' | 'pwsh' | 'cmd' | 'sh';
|
|
125
|
+
type SeastudioShellEntryLevel = 'command' | 'stdout' | 'meta' | 'exit';
|
|
126
|
+
interface SeastudioShellEntry {
|
|
108
127
|
id: number;
|
|
109
|
-
level:
|
|
128
|
+
level: SeastudioShellEntryLevel;
|
|
110
129
|
content: string;
|
|
111
130
|
createdAt: number;
|
|
131
|
+
commandId?: string;
|
|
112
132
|
}
|
|
113
|
-
interface
|
|
114
|
-
|
|
133
|
+
interface SeastudioShellSession {
|
|
134
|
+
sessionId: string;
|
|
135
|
+
shell: SeastudioShellKind;
|
|
115
136
|
cwd: string | null;
|
|
116
|
-
|
|
117
|
-
|
|
137
|
+
pid: number;
|
|
138
|
+
alive: boolean;
|
|
139
|
+
openedAt: number;
|
|
140
|
+
label?: string;
|
|
141
|
+
pluginId?: string;
|
|
142
|
+
projectId?: string;
|
|
143
|
+
agentInstanceId?: string;
|
|
144
|
+
pendingCommandId: string | null;
|
|
145
|
+
lastCommandId: string | null;
|
|
118
146
|
lastExitCode: number | null;
|
|
119
147
|
lastDurationMs: number | null;
|
|
120
|
-
lastCommandAt: number | null;
|
|
121
|
-
historyCount: number;
|
|
122
148
|
entryCount: number;
|
|
149
|
+
droppedCount: number;
|
|
150
|
+
}
|
|
151
|
+
interface SeastudioShellOpenOptions {
|
|
152
|
+
shell?: 'auto' | SeastudioShellKind;
|
|
153
|
+
cwd?: string;
|
|
154
|
+
env?: Record<string, string>;
|
|
155
|
+
label?: string;
|
|
156
|
+
cols?: number;
|
|
157
|
+
rows?: number;
|
|
158
|
+
}
|
|
159
|
+
interface SeastudioShellRunOptions {
|
|
160
|
+
timeoutMs?: number;
|
|
161
|
+
}
|
|
162
|
+
interface SeastudioShellRunResult {
|
|
163
|
+
sessionId: string;
|
|
164
|
+
commandId: string;
|
|
165
|
+
startedAt: number;
|
|
166
|
+
running: boolean;
|
|
123
167
|
}
|
|
124
|
-
interface
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
168
|
+
interface SeastudioShellWaitResult {
|
|
169
|
+
commandId: string;
|
|
170
|
+
exitCode: number | null;
|
|
171
|
+
durationMs: number;
|
|
172
|
+
finished: boolean;
|
|
173
|
+
timedOut: boolean;
|
|
174
|
+
}
|
|
175
|
+
interface SeastudioShellGetEntriesOptions {
|
|
176
|
+
sinceId?: number;
|
|
177
|
+
limit?: number;
|
|
178
|
+
}
|
|
179
|
+
interface SeastudioShellGetEntriesResult {
|
|
180
|
+
entries: SeastudioShellEntry[];
|
|
181
|
+
nextSinceId: number;
|
|
182
|
+
totalEntries: number;
|
|
183
|
+
droppedCount: number;
|
|
184
|
+
}
|
|
185
|
+
interface SeastudioShellSignalResult {
|
|
186
|
+
sessionId: string;
|
|
187
|
+
signal: 'INT' | 'TERM' | 'KILL';
|
|
188
|
+
ok: boolean;
|
|
189
|
+
deliveredAt: number;
|
|
190
|
+
}
|
|
191
|
+
interface SeastudioShellCloseResult {
|
|
192
|
+
sessionId: string;
|
|
193
|
+
closed: boolean;
|
|
194
|
+
exitCode: number | null;
|
|
195
|
+
}
|
|
196
|
+
interface SeastudioShellOneShotResult {
|
|
197
|
+
exitCode: number | null;
|
|
128
198
|
stdout: string;
|
|
129
|
-
stderr: string;
|
|
130
|
-
error: string | null;
|
|
131
199
|
durationMs: number;
|
|
132
|
-
|
|
200
|
+
timedOut: boolean;
|
|
133
201
|
}
|
|
134
202
|
declare function callTool(name: string, args?: Record<string, unknown>): Promise<MCPToolResult>;
|
|
135
203
|
declare function request<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
@@ -140,11 +208,16 @@ declare const seastudio: {
|
|
|
140
208
|
roots: SeastudioFilesystemRoot[];
|
|
141
209
|
}>;
|
|
142
210
|
};
|
|
211
|
+
project: {
|
|
212
|
+
list: () => Promise<MCPToolResult>;
|
|
213
|
+
getActive: () => Promise<MCPToolResult>;
|
|
214
|
+
};
|
|
143
215
|
file: {
|
|
144
216
|
getSelected: () => Promise<MCPToolResult>;
|
|
145
217
|
read: (path: string, options?: SeastudioFileReadOptions) => Promise<MCPToolResult>;
|
|
146
218
|
write: (path: string, content: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
147
219
|
list: (path?: string, options?: SeastudioFileListOptions) => Promise<MCPToolResult>;
|
|
220
|
+
tree: (path?: string, options?: SeastudioFileTreeOptions) => Promise<MCPToolResult>;
|
|
148
221
|
delete: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
149
222
|
mkdir: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
150
223
|
exists: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
@@ -168,17 +241,27 @@ declare const seastudio: {
|
|
|
168
241
|
readBinary: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
169
242
|
};
|
|
170
243
|
shell: {
|
|
171
|
-
execute: (command: string, cwd?: string, timeout?: number) => Promise<MCPToolResult>;
|
|
172
244
|
session: {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
245
|
+
open: (options?: SeastudioShellOpenOptions) => Promise<MCPToolResult>;
|
|
246
|
+
list: () => Promise<MCPToolResult>;
|
|
247
|
+
get: (sessionId: string) => Promise<MCPToolResult>;
|
|
248
|
+
run: (sessionId: string, command: string, options?: SeastudioShellRunOptions) => Promise<MCPToolResult>;
|
|
249
|
+
wait: (sessionId: string, commandId: string, timeoutMs?: number) => Promise<MCPToolResult>;
|
|
250
|
+
getEntries: (sessionId: string, options?: SeastudioShellGetEntriesOptions) => Promise<MCPToolResult>;
|
|
251
|
+
signal: (sessionId: string, signal: "INT" | "TERM" | "KILL", commandId?: string) => Promise<MCPToolResult>;
|
|
252
|
+
clearEntries: (sessionId: string) => Promise<MCPToolResult>;
|
|
253
|
+
close: (sessionId: string, force?: boolean) => Promise<MCPToolResult>;
|
|
179
254
|
};
|
|
180
255
|
};
|
|
181
256
|
};
|
|
257
|
+
/**
|
|
258
|
+
* One-shot helper: open a transient session, run command, wait, close.
|
|
259
|
+
* Returns aggregated stdout/exit info. Useful for short, non-interactive commands
|
|
260
|
+
* (e.g. `git status`). For long-running tasks use `seastudio.shell.session` directly.
|
|
261
|
+
*/
|
|
262
|
+
declare function runOneShotShellCommand(command: string, options?: SeastudioShellOpenOptions & {
|
|
263
|
+
timeoutMs?: number;
|
|
264
|
+
}): Promise<SeastudioShellOneShotResult>;
|
|
182
265
|
|
|
183
266
|
/**
|
|
184
267
|
* Plugin MCP Tools
|
|
@@ -198,6 +281,14 @@ declare const pluginTabTools: MCPTool[];
|
|
|
198
281
|
declare const agentManagementTools: MCPTool[];
|
|
199
282
|
declare const agentTabTools: MCPTool[];
|
|
200
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Project MCP Tools
|
|
286
|
+
*
|
|
287
|
+
* 项目枚举与寻址:让 agent 能列出所有项目并按需跨项目操作。
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
declare const projectTools: MCPTool[];
|
|
291
|
+
|
|
201
292
|
/**
|
|
202
293
|
* SeaStudio MCP Notifications
|
|
203
294
|
*
|
|
@@ -526,4 +617,4 @@ interface SessionDeleteRequestedParams {
|
|
|
526
617
|
declare const allTools: MCPTool[];
|
|
527
618
|
declare const tools: MCPTool[];
|
|
528
619
|
|
|
529
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, SeastudioRequests, type
|
|
620
|
+
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, SeastudioRequests, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, tools };
|