@seastudio/sdk 3.2.5 → 3.3.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-PX2KWRKM.cjs → chunk-2MGJLIRZ.cjs} +4 -4
- package/dist/{chunk-3UVF6MLO.js → chunk-CJ2BXMJ3.js} +307 -169
- package/dist/{chunk-7LQXYJPQ.cjs → chunk-RRDE5HQX.cjs} +312 -169
- package/dist/{chunk-YTHD4PO5.js → chunk-VFDZPHJD.js} +1 -1
- 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 +112 -27
- package/dist/mcp/seastudio/index.d.ts +112 -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 chunk2MGJLIRZ_cjs = require('./chunk-2MGJLIRZ.cjs');
|
|
4
4
|
var chunkGEPSOYJN_cjs = require('./chunk-GEPSOYJN.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkRRDE5HQX_cjs = require('./chunk-RRDE5HQX.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 chunk2MGJLIRZ_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk2MGJLIRZ_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk2MGJLIRZ_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk2MGJLIRZ_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk2MGJLIRZ_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk2MGJLIRZ_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk2MGJLIRZ_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk2MGJLIRZ_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk2MGJLIRZ_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk2MGJLIRZ_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 chunkRRDE5HQX_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkRRDE5HQX_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkRRDE5HQX_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkRRDE5HQX_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkRRDE5HQX_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkRRDE5HQX_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkRRDE5HQX_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkRRDE5HQX_cjs.seaCloudTools; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudio", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkRRDE5HQX_cjs.seastudio; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkRRDE5HQX_cjs.allTools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "seastudioTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkRRDE5HQX_cjs.tools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "shellTools", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkRRDE5HQX_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-VFDZPHJD.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-CJ2BXMJ3.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 chunk2MGJLIRZ_cjs = require('../chunk-2MGJLIRZ.cjs');
|
|
4
|
+
var chunkRRDE5HQX_cjs = require('../chunk-RRDE5HQX.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 chunk2MGJLIRZ_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk2MGJLIRZ_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk2MGJLIRZ_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk2MGJLIRZ_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk2MGJLIRZ_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk2MGJLIRZ_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk2MGJLIRZ_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk2MGJLIRZ_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk2MGJLIRZ_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk2MGJLIRZ_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkRRDE5HQX_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkRRDE5HQX_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkRRDE5HQX_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkRRDE5HQX_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkRRDE5HQX_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkRRDE5HQX_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkRRDE5HQX_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkRRDE5HQX_cjs.seaCloudTools; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudio", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkRRDE5HQX_cjs.seastudio; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkRRDE5HQX_cjs.allTools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "seastudioTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkRRDE5HQX_cjs.tools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "shellTools", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkRRDE5HQX_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-VFDZPHJD.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-CJ2BXMJ3.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 chunkRRDE5HQX_cjs = require('../../chunk-RRDE5HQX.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 chunkRRDE5HQX_cjs.SeastudioNotifications; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkRRDE5HQX_cjs.SeastudioRequests; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkRRDE5HQX_cjs.agentManagementTools; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "agentTabTools", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkRRDE5HQX_cjs.agentTabTools; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "allTools", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkRRDE5HQX_cjs.allTools; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "annotateTool", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkRRDE5HQX_cjs.annotateTool; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "batchFlattenCopyEvidenceOutputSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkRRDE5HQX_cjs.batchFlattenCopyEvidenceOutputSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "callTool", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkRRDE5HQX_cjs.callTool; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "callToolText", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkRRDE5HQX_cjs.callToolText; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "dualPathEvidenceOutputSchema", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkRRDE5HQX_cjs.dualPathEvidenceOutputSchema; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "fileDownloadEvidenceOutputSchema", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkRRDE5HQX_cjs.fileDownloadEvidenceOutputSchema; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "fileTools", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkRRDE5HQX_cjs.fileTools; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkRRDE5HQX_cjs.pluginManagementTools; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkRRDE5HQX_cjs.pluginTabTools; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "projectTools", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkRRDE5HQX_cjs.projectTools; }
|
|
63
67
|
});
|
|
64
68
|
Object.defineProperty(exports, "request", {
|
|
65
69
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkRRDE5HQX_cjs.request; }
|
|
67
71
|
});
|
|
68
72
|
Object.defineProperty(exports, "rootedPathEvidenceOutputSchema", {
|
|
69
73
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkRRDE5HQX_cjs.rootedPathEvidenceOutputSchema; }
|
|
71
75
|
});
|
|
72
76
|
Object.defineProperty(exports, "rootedWriteEvidenceOutputSchema", {
|
|
73
77
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkRRDE5HQX_cjs.rootedWriteEvidenceOutputSchema; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "runOneShotShellCommand", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkRRDE5HQX_cjs.runOneShotShellCommand; }
|
|
75
83
|
});
|
|
76
84
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
77
85
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkRRDE5HQX_cjs.seaCloudTools; }
|
|
79
87
|
});
|
|
80
88
|
Object.defineProperty(exports, "seastudio", {
|
|
81
89
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkRRDE5HQX_cjs.seastudio; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "shellSessionCloseEvidenceOutputSchema", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkRRDE5HQX_cjs.shellSessionCloseEvidenceOutputSchema; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "shellSessionOpenEvidenceOutputSchema", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkRRDE5HQX_cjs.shellSessionOpenEvidenceOutputSchema; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "shellSessionRunEvidenceOutputSchema", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkRRDE5HQX_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 chunkRRDE5HQX_cjs.shellSessionSignalEvidenceOutputSchema; }
|
|
87
107
|
});
|
|
88
108
|
Object.defineProperty(exports, "shellSessionSnapshotEvidenceOutputSchema", {
|
|
89
109
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkRRDE5HQX_cjs.shellSessionSnapshotEvidenceOutputSchema; }
|
|
91
111
|
});
|
|
92
112
|
Object.defineProperty(exports, "shellTools", {
|
|
93
113
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkRRDE5HQX_cjs.shellTools; }
|
|
95
115
|
});
|
|
96
116
|
Object.defineProperty(exports, "tools", {
|
|
97
117
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkRRDE5HQX_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;
|
|
@@ -103,33 +116,83 @@ interface SeastudioBatchFlattenPreviewOptions {
|
|
|
103
116
|
}
|
|
104
117
|
interface SeastudioBatchFlattenCopyOptions extends SeastudioFileTransferOptions {
|
|
105
118
|
}
|
|
106
|
-
type
|
|
107
|
-
|
|
119
|
+
type SeastudioShellKind = 'bash' | 'pwsh' | 'cmd' | 'sh';
|
|
120
|
+
type SeastudioShellEntryLevel = 'command' | 'stdout' | 'meta' | 'exit';
|
|
121
|
+
interface SeastudioShellEntry {
|
|
108
122
|
id: number;
|
|
109
|
-
level:
|
|
123
|
+
level: SeastudioShellEntryLevel;
|
|
110
124
|
content: string;
|
|
111
125
|
createdAt: number;
|
|
126
|
+
commandId?: string;
|
|
112
127
|
}
|
|
113
|
-
interface
|
|
114
|
-
|
|
128
|
+
interface SeastudioShellSession {
|
|
129
|
+
sessionId: string;
|
|
130
|
+
shell: SeastudioShellKind;
|
|
115
131
|
cwd: string | null;
|
|
116
|
-
|
|
117
|
-
|
|
132
|
+
pid: number;
|
|
133
|
+
alive: boolean;
|
|
134
|
+
openedAt: number;
|
|
135
|
+
label?: string;
|
|
136
|
+
pluginId?: string;
|
|
137
|
+
projectId?: string;
|
|
138
|
+
agentInstanceId?: string;
|
|
139
|
+
pendingCommandId: string | null;
|
|
140
|
+
lastCommandId: string | null;
|
|
118
141
|
lastExitCode: number | null;
|
|
119
142
|
lastDurationMs: number | null;
|
|
120
|
-
lastCommandAt: number | null;
|
|
121
|
-
historyCount: number;
|
|
122
143
|
entryCount: number;
|
|
144
|
+
droppedCount: number;
|
|
145
|
+
}
|
|
146
|
+
interface SeastudioShellOpenOptions {
|
|
147
|
+
shell?: 'auto' | SeastudioShellKind;
|
|
148
|
+
cwd?: string;
|
|
149
|
+
env?: Record<string, string>;
|
|
150
|
+
label?: string;
|
|
151
|
+
cols?: number;
|
|
152
|
+
rows?: number;
|
|
153
|
+
}
|
|
154
|
+
interface SeastudioShellRunOptions {
|
|
155
|
+
timeoutMs?: number;
|
|
156
|
+
}
|
|
157
|
+
interface SeastudioShellRunResult {
|
|
158
|
+
sessionId: string;
|
|
159
|
+
commandId: string;
|
|
160
|
+
startedAt: number;
|
|
161
|
+
running: boolean;
|
|
162
|
+
}
|
|
163
|
+
interface SeastudioShellWaitResult {
|
|
164
|
+
commandId: string;
|
|
165
|
+
exitCode: number | null;
|
|
166
|
+
durationMs: number;
|
|
167
|
+
finished: boolean;
|
|
168
|
+
timedOut: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface SeastudioShellGetEntriesOptions {
|
|
171
|
+
sinceId?: number;
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
interface SeastudioShellGetEntriesResult {
|
|
175
|
+
entries: SeastudioShellEntry[];
|
|
176
|
+
nextSinceId: number;
|
|
177
|
+
totalEntries: number;
|
|
178
|
+
droppedCount: number;
|
|
179
|
+
}
|
|
180
|
+
interface SeastudioShellSignalResult {
|
|
181
|
+
sessionId: string;
|
|
182
|
+
signal: 'INT' | 'TERM' | 'KILL';
|
|
183
|
+
ok: boolean;
|
|
184
|
+
deliveredAt: number;
|
|
185
|
+
}
|
|
186
|
+
interface SeastudioShellCloseResult {
|
|
187
|
+
sessionId: string;
|
|
188
|
+
closed: boolean;
|
|
189
|
+
exitCode: number | null;
|
|
123
190
|
}
|
|
124
|
-
interface
|
|
125
|
-
|
|
126
|
-
cwd: string;
|
|
127
|
-
exitCode: number;
|
|
191
|
+
interface SeastudioShellOneShotResult {
|
|
192
|
+
exitCode: number | null;
|
|
128
193
|
stdout: string;
|
|
129
|
-
stderr: string;
|
|
130
|
-
error: string | null;
|
|
131
194
|
durationMs: number;
|
|
132
|
-
|
|
195
|
+
timedOut: boolean;
|
|
133
196
|
}
|
|
134
197
|
declare function callTool(name: string, args?: Record<string, unknown>): Promise<MCPToolResult>;
|
|
135
198
|
declare function request<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
@@ -140,6 +203,10 @@ declare const seastudio: {
|
|
|
140
203
|
roots: SeastudioFilesystemRoot[];
|
|
141
204
|
}>;
|
|
142
205
|
};
|
|
206
|
+
project: {
|
|
207
|
+
list: () => Promise<MCPToolResult>;
|
|
208
|
+
getActive: () => Promise<MCPToolResult>;
|
|
209
|
+
};
|
|
143
210
|
file: {
|
|
144
211
|
getSelected: () => Promise<MCPToolResult>;
|
|
145
212
|
read: (path: string, options?: SeastudioFileReadOptions) => Promise<MCPToolResult>;
|
|
@@ -168,17 +235,27 @@ declare const seastudio: {
|
|
|
168
235
|
readBinary: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
169
236
|
};
|
|
170
237
|
shell: {
|
|
171
|
-
execute: (command: string, cwd?: string, timeout?: number) => Promise<MCPToolResult>;
|
|
172
238
|
session: {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
239
|
+
open: (options?: SeastudioShellOpenOptions) => Promise<MCPToolResult>;
|
|
240
|
+
list: () => Promise<MCPToolResult>;
|
|
241
|
+
get: (sessionId: string) => Promise<MCPToolResult>;
|
|
242
|
+
run: (sessionId: string, command: string, options?: SeastudioShellRunOptions) => Promise<MCPToolResult>;
|
|
243
|
+
wait: (sessionId: string, commandId: string, timeoutMs?: number) => Promise<MCPToolResult>;
|
|
244
|
+
getEntries: (sessionId: string, options?: SeastudioShellGetEntriesOptions) => Promise<MCPToolResult>;
|
|
245
|
+
signal: (sessionId: string, signal: "INT" | "TERM" | "KILL", commandId?: string) => Promise<MCPToolResult>;
|
|
246
|
+
clearEntries: (sessionId: string) => Promise<MCPToolResult>;
|
|
247
|
+
close: (sessionId: string, force?: boolean) => Promise<MCPToolResult>;
|
|
179
248
|
};
|
|
180
249
|
};
|
|
181
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* One-shot helper: open a transient session, run command, wait, close.
|
|
253
|
+
* Returns aggregated stdout/exit info. Useful for short, non-interactive commands
|
|
254
|
+
* (e.g. `git status`). For long-running tasks use `seastudio.shell.session` directly.
|
|
255
|
+
*/
|
|
256
|
+
declare function runOneShotShellCommand(command: string, options?: SeastudioShellOpenOptions & {
|
|
257
|
+
timeoutMs?: number;
|
|
258
|
+
}): Promise<SeastudioShellOneShotResult>;
|
|
182
259
|
|
|
183
260
|
/**
|
|
184
261
|
* Plugin MCP Tools
|
|
@@ -198,6 +275,14 @@ declare const pluginTabTools: MCPTool[];
|
|
|
198
275
|
declare const agentManagementTools: MCPTool[];
|
|
199
276
|
declare const agentTabTools: MCPTool[];
|
|
200
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Project MCP Tools
|
|
280
|
+
*
|
|
281
|
+
* 项目枚举与寻址:让 agent 能列出所有项目并按需跨项目操作。
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
declare const projectTools: MCPTool[];
|
|
285
|
+
|
|
201
286
|
/**
|
|
202
287
|
* SeaStudio MCP Notifications
|
|
203
288
|
*
|
|
@@ -526,4 +611,4 @@ interface SessionDeleteRequestedParams {
|
|
|
526
611
|
declare const allTools: MCPTool[];
|
|
527
612
|
declare const tools: MCPTool[];
|
|
528
613
|
|
|
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
|
|
614
|
+
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 };
|