@seastudio/sdk 3.0.0 → 3.0.2
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-6USQFZRH.js → chunk-4JAYW5GM.js} +1 -1
- package/dist/chunk-G66KY35N.js +334 -0
- package/dist/chunk-ORBVHAAS.cjs +341 -0
- package/dist/{chunk-5QAINQWV.js → chunk-S2UIBWKA.js} +16 -11
- package/dist/{chunk-AGBZJGTY.cjs → chunk-SUF5BPSK.cjs} +3 -1
- package/dist/{chunk-BWG45ZWF.cjs → chunk-SYMWE636.cjs} +1 -1
- package/dist/{chunk-N33Y5NY7.cjs → chunk-XIPL7VSP.cjs} +17 -12
- package/dist/{chunk-DDVRUPMZ.js → chunk-XU5GEWWL.js} +3 -1
- package/dist/index.cjs +140 -115
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -6
- package/dist/mcp/core/index.d.cts +2 -2
- package/dist/mcp/core/index.d.ts +2 -2
- package/dist/mcp/index.cjs +107 -82
- package/dist/mcp/index.d.cts +8 -2
- package/dist/mcp/index.d.ts +8 -2
- package/dist/mcp/index.js +6 -5
- package/dist/mcp/plugin-editor/index.d.cts +1 -1
- package/dist/mcp/plugin-editor/index.d.ts +1 -1
- package/dist/mcp/plugin-excel/index.d.cts +1 -1
- package/dist/mcp/plugin-excel/index.d.ts +1 -1
- package/dist/mcp/plugin-preview/index.d.cts +1 -1
- package/dist/mcp/plugin-preview/index.d.ts +1 -1
- package/dist/mcp/plugin-seaflow/index.d.cts +1 -1
- package/dist/mcp/plugin-seaflow/index.d.ts +1 -1
- package/dist/mcp/plugin-word/index.cjs +31 -0
- package/dist/mcp/plugin-word/index.d.cts +86 -0
- package/dist/mcp/plugin-word/index.d.ts +86 -0
- package/dist/mcp/plugin-word/index.js +2 -0
- package/dist/mcp/seastudio/index.cjs +18 -18
- package/dist/mcp/seastudio/index.d.cts +34 -2
- package/dist/mcp/seastudio/index.d.ts +34 -2
- package/dist/mcp/seastudio/index.js +1 -1
- package/dist/{types-Clgf5gBf.d.cts → types-B1Zqr-0Q.d.cts} +1 -1
- package/dist/{types-Clgf5gBf.d.ts → types-B1Zqr-0Q.d.ts} +1 -1
- package/dist/ui/index.cjs +14 -14
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
package/dist/mcp/index.cjs
CHANGED
|
@@ -1,139 +1,164 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkXIPL7VSP_cjs = require('../chunk-XIPL7VSP.cjs');
|
|
4
|
+
var chunkORBVHAAS_cjs = require('../chunk-ORBVHAAS.cjs');
|
|
5
|
+
var chunkHJJTBVKQ_cjs = require('../chunk-HJJTBVKQ.cjs');
|
|
6
|
+
var chunkSUF5BPSK_cjs = require('../chunk-SUF5BPSK.cjs');
|
|
6
7
|
var chunkISI2OLPI_cjs = require('../chunk-ISI2OLPI.cjs');
|
|
7
|
-
var
|
|
8
|
+
var chunkCVF4QHS6_cjs = require('../chunk-CVF4QHS6.cjs');
|
|
8
9
|
var chunkMYURVLGP_cjs = require('../chunk-MYURVLGP.cjs');
|
|
9
|
-
var
|
|
10
|
+
var chunkSNGU4SHO_cjs = require('../chunk-SNGU4SHO.cjs');
|
|
10
11
|
var chunkTFOJLA2F_cjs = require('../chunk-TFOJLA2F.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
Object.defineProperty(exports, "MCP_PACKAGES", {
|
|
15
16
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXIPL7VSP_cjs.MCP_PACKAGES; }
|
|
17
18
|
});
|
|
18
19
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
19
20
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXIPL7VSP_cjs.getMCPPackageIdForTool; }
|
|
21
22
|
});
|
|
22
23
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
23
24
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXIPL7VSP_cjs.getMCPPackages; }
|
|
25
26
|
});
|
|
26
27
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
27
28
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkXIPL7VSP_cjs.getMCPToolPackageIndex; }
|
|
29
30
|
});
|
|
30
31
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
31
32
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkXIPL7VSP_cjs.getToolsForLLM; }
|
|
33
34
|
});
|
|
34
35
|
Object.defineProperty(exports, "listAllTools", {
|
|
35
36
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkXIPL7VSP_cjs.listAllTools; }
|
|
37
38
|
});
|
|
38
39
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
39
40
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkXIPL7VSP_cjs.listAvailableTools; }
|
|
41
42
|
});
|
|
42
43
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
43
44
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkXIPL7VSP_cjs.listAvailableToolsForLLM; }
|
|
45
46
|
});
|
|
46
47
|
Object.defineProperty(exports, "loadPlugin", {
|
|
47
48
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkXIPL7VSP_cjs.loadPlugin; }
|
|
49
50
|
});
|
|
50
51
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
51
52
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkXIPL7VSP_cjs.mcpToolToOpenAI; }
|
|
53
54
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
+
Object.defineProperty(exports, "word", {
|
|
55
56
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkORBVHAAS_cjs.word; }
|
|
57
58
|
});
|
|
58
|
-
Object.defineProperty(exports, "
|
|
59
|
+
Object.defineProperty(exports, "wordAllTools", {
|
|
59
60
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkORBVHAAS_cjs.allTools; }
|
|
61
62
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
63
|
+
Object.defineProperty(exports, "wordLifecycleTools", {
|
|
63
64
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkORBVHAAS_cjs.lifecycleTools; }
|
|
65
66
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
67
|
+
Object.defineProperty(exports, "wordMutateTools", {
|
|
67
68
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkORBVHAAS_cjs.mutateTools; }
|
|
69
70
|
});
|
|
70
|
-
Object.defineProperty(exports, "
|
|
71
|
+
Object.defineProperty(exports, "wordReadTools", {
|
|
71
72
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkORBVHAAS_cjs.readTools; }
|
|
73
74
|
});
|
|
74
|
-
Object.defineProperty(exports, "
|
|
75
|
+
Object.defineProperty(exports, "wordTools", {
|
|
75
76
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkORBVHAAS_cjs.tools; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "seaflow", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkHJJTBVKQ_cjs.seaflow; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "seaflowAllTools", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkHJJTBVKQ_cjs.allTools; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "seaflowCanvasAuthTools", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkHJJTBVKQ_cjs.canvasAuthTools; }
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "seaflowCanvasContextTools", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () { return chunkHJJTBVKQ_cjs.canvasContextTools; }
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "seaflowCanvasExecutionTools", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () { return chunkHJJTBVKQ_cjs.canvasExecutionTools; }
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "seaflowTools", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () { return chunkHJJTBVKQ_cjs.tools; }
|
|
77
102
|
});
|
|
78
103
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
79
104
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkSUF5BPSK_cjs.SeastudioNotifications; }
|
|
81
106
|
});
|
|
82
107
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
83
108
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkSUF5BPSK_cjs.SeastudioRequests; }
|
|
85
110
|
});
|
|
86
111
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
87
112
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkSUF5BPSK_cjs.agentManagementTools; }
|
|
89
114
|
});
|
|
90
115
|
Object.defineProperty(exports, "agentTabTools", {
|
|
91
116
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkSUF5BPSK_cjs.agentTabTools; }
|
|
93
118
|
});
|
|
94
119
|
Object.defineProperty(exports, "batchFileTools", {
|
|
95
120
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkSUF5BPSK_cjs.batchFileTools; }
|
|
97
122
|
});
|
|
98
123
|
Object.defineProperty(exports, "clipboardTools", {
|
|
99
124
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkSUF5BPSK_cjs.clipboardTools; }
|
|
101
126
|
});
|
|
102
127
|
Object.defineProperty(exports, "codeQualityTools", {
|
|
103
128
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkSUF5BPSK_cjs.codeQualityTools; }
|
|
105
130
|
});
|
|
106
131
|
Object.defineProperty(exports, "fileTools", {
|
|
107
132
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkSUF5BPSK_cjs.fileTools; }
|
|
109
134
|
});
|
|
110
135
|
Object.defineProperty(exports, "gitTools", {
|
|
111
136
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkSUF5BPSK_cjs.gitTools; }
|
|
113
138
|
});
|
|
114
139
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
115
140
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkSUF5BPSK_cjs.pluginManagementTools; }
|
|
117
142
|
});
|
|
118
143
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
119
144
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkSUF5BPSK_cjs.pluginTabTools; }
|
|
121
146
|
});
|
|
122
147
|
Object.defineProperty(exports, "seastudio", {
|
|
123
148
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkSUF5BPSK_cjs.seastudio; }
|
|
125
150
|
});
|
|
126
151
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
127
152
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkSUF5BPSK_cjs.allTools; }
|
|
129
154
|
});
|
|
130
155
|
Object.defineProperty(exports, "seastudioTools", {
|
|
131
156
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkSUF5BPSK_cjs.tools; }
|
|
133
158
|
});
|
|
134
159
|
Object.defineProperty(exports, "shellTools", {
|
|
135
160
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkSUF5BPSK_cjs.shellTools; }
|
|
137
162
|
});
|
|
138
163
|
Object.defineProperty(exports, "shellPlugin", {
|
|
139
164
|
enumerable: true,
|
|
@@ -151,45 +176,29 @@ Object.defineProperty(exports, "shellPluginTools", {
|
|
|
151
176
|
enumerable: true,
|
|
152
177
|
get: function () { return chunkISI2OLPI_cjs.tools; }
|
|
153
178
|
});
|
|
154
|
-
Object.defineProperty(exports, "
|
|
155
|
-
enumerable: true,
|
|
156
|
-
get: function () { return chunkSNGU4SHO_cjs.editor; }
|
|
157
|
-
});
|
|
158
|
-
Object.defineProperty(exports, "editorAllTools", {
|
|
159
|
-
enumerable: true,
|
|
160
|
-
get: function () { return chunkSNGU4SHO_cjs.allTools; }
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "editorExtensionTools", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function () { return chunkSNGU4SHO_cjs.extensionTools; }
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(exports, "editorFileMutationTools", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
get: function () { return chunkSNGU4SHO_cjs.fileMutationTools; }
|
|
169
|
-
});
|
|
170
|
-
Object.defineProperty(exports, "editorPreviewTools", {
|
|
179
|
+
Object.defineProperty(exports, "excel", {
|
|
171
180
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkCVF4QHS6_cjs.excel; }
|
|
173
182
|
});
|
|
174
|
-
Object.defineProperty(exports, "
|
|
183
|
+
Object.defineProperty(exports, "excelAllTools", {
|
|
175
184
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkCVF4QHS6_cjs.allTools; }
|
|
177
186
|
});
|
|
178
|
-
Object.defineProperty(exports, "
|
|
187
|
+
Object.defineProperty(exports, "excelLifecycleTools", {
|
|
179
188
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkCVF4QHS6_cjs.lifecycleTools; }
|
|
181
190
|
});
|
|
182
|
-
Object.defineProperty(exports, "
|
|
191
|
+
Object.defineProperty(exports, "excelMutateTools", {
|
|
183
192
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkCVF4QHS6_cjs.mutateTools; }
|
|
185
194
|
});
|
|
186
|
-
Object.defineProperty(exports, "
|
|
195
|
+
Object.defineProperty(exports, "excelReadTools", {
|
|
187
196
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkCVF4QHS6_cjs.readTools; }
|
|
189
198
|
});
|
|
190
|
-
Object.defineProperty(exports, "
|
|
199
|
+
Object.defineProperty(exports, "excelTools", {
|
|
191
200
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkCVF4QHS6_cjs.tools; }
|
|
193
202
|
});
|
|
194
203
|
Object.defineProperty(exports, "preview", {
|
|
195
204
|
enumerable: true,
|
|
@@ -207,29 +216,45 @@ Object.defineProperty(exports, "previewTools", {
|
|
|
207
216
|
enumerable: true,
|
|
208
217
|
get: function () { return chunkMYURVLGP_cjs.tools; }
|
|
209
218
|
});
|
|
210
|
-
Object.defineProperty(exports, "
|
|
219
|
+
Object.defineProperty(exports, "editor", {
|
|
211
220
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkSNGU4SHO_cjs.editor; }
|
|
213
222
|
});
|
|
214
|
-
Object.defineProperty(exports, "
|
|
223
|
+
Object.defineProperty(exports, "editorAllTools", {
|
|
215
224
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkSNGU4SHO_cjs.allTools; }
|
|
217
226
|
});
|
|
218
|
-
Object.defineProperty(exports, "
|
|
227
|
+
Object.defineProperty(exports, "editorExtensionTools", {
|
|
219
228
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkSNGU4SHO_cjs.extensionTools; }
|
|
221
230
|
});
|
|
222
|
-
Object.defineProperty(exports, "
|
|
231
|
+
Object.defineProperty(exports, "editorFileMutationTools", {
|
|
223
232
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkSNGU4SHO_cjs.fileMutationTools; }
|
|
225
234
|
});
|
|
226
|
-
Object.defineProperty(exports, "
|
|
235
|
+
Object.defineProperty(exports, "editorPreviewTools", {
|
|
227
236
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkSNGU4SHO_cjs.previewTools; }
|
|
229
238
|
});
|
|
230
|
-
Object.defineProperty(exports, "
|
|
239
|
+
Object.defineProperty(exports, "editorProposalTools", {
|
|
231
240
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkSNGU4SHO_cjs.proposalTools; }
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "editorReferenceTools", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function () { return chunkSNGU4SHO_cjs.referenceTools; }
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(exports, "editorSessionTools", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function () { return chunkSNGU4SHO_cjs.sessionTools; }
|
|
250
|
+
});
|
|
251
|
+
Object.defineProperty(exports, "editorTools", {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
get: function () { return chunkSNGU4SHO_cjs.tools; }
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(exports, "fileOperationTools", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: function () { return chunkSNGU4SHO_cjs.fileOperationTools; }
|
|
233
258
|
});
|
|
234
259
|
Object.defineProperty(exports, "MCPClient", {
|
|
235
260
|
enumerable: true,
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { k as MCPToolResult, g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-
|
|
2
|
-
export { F as FileItem, a as FileNode, J as JSONRPCError, b as JSONRPCMessage, c as JSONRPCNotification, d as JSONRPCRequest, e as JSONRPCResponse, M as MCPMessageEnvelope, f as MCPMethod, i as MCPToolCallRequest, N as NotificationHandler, P as PublishParams, S as SubscribeParams, l as createNotification, m as createRequest, n as createResponse, o as isMCPMessage, p as isNotification } from '../types-
|
|
1
|
+
import { k as MCPToolResult, g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-B1Zqr-0Q.cjs';
|
|
2
|
+
export { F as FileItem, a as FileNode, J as JSONRPCError, b as JSONRPCMessage, c as JSONRPCNotification, d as JSONRPCRequest, e as JSONRPCResponse, M as MCPMessageEnvelope, f as MCPMethod, i as MCPToolCallRequest, N as NotificationHandler, P as PublishParams, S as SubscribeParams, l as createNotification, m as createRequest, n as createResponse, o as isMCPMessage, p as isNotification } from '../types-B1Zqr-0Q.cjs';
|
|
3
3
|
export { MCPClient, MCPClientOptions, MCPRequestOptions, MCPServer, MCPToolHandler, MCPTransport, NormalizeMCPToolInputSchemaOptions, PostMessageTransport, PostMessageTransportOptions, callHostTool, callHostToolText, createMCPClient, createMCPServer, getDefaultClient, getDefaultServer, getDefaultTransport, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './core/index.cjs';
|
|
4
4
|
export { FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, batchFileTools, clipboardTools, codeQualityTools, fileTools, gitTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.cjs';
|
|
5
5
|
export { CodeSearchMatch, CodeSearchResult, EditorFileInfo, LintResult, TestResult, TypecheckResult, editor, allTools as editorAllTools, extensionTools as editorExtensionTools, fileMutationTools as editorFileMutationTools, previewTools as editorPreviewTools, proposalTools as editorProposalTools, referenceTools as editorReferenceTools, sessionTools as editorSessionTools, tools as editorTools, fileOperationTools } from './plugin-editor/index.cjs';
|
|
6
6
|
export { PreviewBatchEntry, PreviewBatchGetResponse, PreviewBatchItem, PreviewBatchResult, PreviewCapability, PreviewCompareVersionsResult, PreviewGetResponse, PreviewMetadata, PreviewMode, PreviewThumbnail, RenderKind, preview, coreTools as previewCoreTools, enhancedTools as previewEnhancedTools, tools as previewTools } from './plugin-preview/index.cjs';
|
|
7
7
|
export { CanvasBatchApplyResult, CanvasEdgeListItem, CanvasEdgeListResult, CanvasExecutionAuthSnapshot, CanvasExecutionAuthState, CanvasExecutionPersistMode, CanvasExecutionTaskState, CanvasNodeDetailResult, CanvasNodeOutputsResult, CanvasNodeValidationResult, CanvasTaskListItem, CanvasTaskListResult, CanvasTaskStatus, CanvasTaskWaitResult, seaflow, allTools as seaflowAllTools, canvasAuthTools as seaflowCanvasAuthTools, canvasContextTools as seaflowCanvasContextTools, canvasExecutionTools as seaflowCanvasExecutionTools, tools as seaflowTools } from './plugin-seaflow/index.cjs';
|
|
8
8
|
export { ExcelContext, ExcelFindMatch, ExcelSelectionInfo, ExcelSheetInfo, ExcelStats, excel, allTools as excelAllTools, lifecycleTools as excelLifecycleTools, mutateTools as excelMutateTools, readTools as excelReadTools, tools as excelTools } from './plugin-excel/index.cjs';
|
|
9
|
+
export { WordBlockInfo, WordContentResult, WordContext, WordFindMatch, WordSelectionInfo, word, allTools as wordAllTools, lifecycleTools as wordLifecycleTools, mutateTools as wordMutateTools, readTools as wordReadTools, tools as wordTools } from './plugin-word/index.cjs';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Shell Plugin MCP Tools
|
|
@@ -66,6 +67,11 @@ declare const MCP_PACKAGES: readonly [{
|
|
|
66
67
|
readonly name: "Excel";
|
|
67
68
|
readonly description: "Excel 电子表格操作能力";
|
|
68
69
|
readonly tools: MCPTool[];
|
|
70
|
+
}, {
|
|
71
|
+
readonly id: "word";
|
|
72
|
+
readonly name: "Word";
|
|
73
|
+
readonly description: "Word 文档编辑能力";
|
|
74
|
+
readonly tools: MCPTool[];
|
|
69
75
|
}];
|
|
70
76
|
type MCPPackageId = (typeof MCP_PACKAGES)[number]['id'];
|
|
71
77
|
interface MCPPackageInfo {
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { k as MCPToolResult, g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-
|
|
2
|
-
export { F as FileItem, a as FileNode, J as JSONRPCError, b as JSONRPCMessage, c as JSONRPCNotification, d as JSONRPCRequest, e as JSONRPCResponse, M as MCPMessageEnvelope, f as MCPMethod, i as MCPToolCallRequest, N as NotificationHandler, P as PublishParams, S as SubscribeParams, l as createNotification, m as createRequest, n as createResponse, o as isMCPMessage, p as isNotification } from '../types-
|
|
1
|
+
import { k as MCPToolResult, g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-B1Zqr-0Q.js';
|
|
2
|
+
export { F as FileItem, a as FileNode, J as JSONRPCError, b as JSONRPCMessage, c as JSONRPCNotification, d as JSONRPCRequest, e as JSONRPCResponse, M as MCPMessageEnvelope, f as MCPMethod, i as MCPToolCallRequest, N as NotificationHandler, P as PublishParams, S as SubscribeParams, l as createNotification, m as createRequest, n as createResponse, o as isMCPMessage, p as isNotification } from '../types-B1Zqr-0Q.js';
|
|
3
3
|
export { MCPClient, MCPClientOptions, MCPRequestOptions, MCPServer, MCPToolHandler, MCPTransport, NormalizeMCPToolInputSchemaOptions, PostMessageTransport, PostMessageTransportOptions, callHostTool, callHostToolText, createMCPClient, createMCPServer, getDefaultClient, getDefaultServer, getDefaultTransport, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './core/index.js';
|
|
4
4
|
export { FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, batchFileTools, clipboardTools, codeQualityTools, fileTools, gitTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.js';
|
|
5
5
|
export { CodeSearchMatch, CodeSearchResult, EditorFileInfo, LintResult, TestResult, TypecheckResult, editor, allTools as editorAllTools, extensionTools as editorExtensionTools, fileMutationTools as editorFileMutationTools, previewTools as editorPreviewTools, proposalTools as editorProposalTools, referenceTools as editorReferenceTools, sessionTools as editorSessionTools, tools as editorTools, fileOperationTools } from './plugin-editor/index.js';
|
|
6
6
|
export { PreviewBatchEntry, PreviewBatchGetResponse, PreviewBatchItem, PreviewBatchResult, PreviewCapability, PreviewCompareVersionsResult, PreviewGetResponse, PreviewMetadata, PreviewMode, PreviewThumbnail, RenderKind, preview, coreTools as previewCoreTools, enhancedTools as previewEnhancedTools, tools as previewTools } from './plugin-preview/index.js';
|
|
7
7
|
export { CanvasBatchApplyResult, CanvasEdgeListItem, CanvasEdgeListResult, CanvasExecutionAuthSnapshot, CanvasExecutionAuthState, CanvasExecutionPersistMode, CanvasExecutionTaskState, CanvasNodeDetailResult, CanvasNodeOutputsResult, CanvasNodeValidationResult, CanvasTaskListItem, CanvasTaskListResult, CanvasTaskStatus, CanvasTaskWaitResult, seaflow, allTools as seaflowAllTools, canvasAuthTools as seaflowCanvasAuthTools, canvasContextTools as seaflowCanvasContextTools, canvasExecutionTools as seaflowCanvasExecutionTools, tools as seaflowTools } from './plugin-seaflow/index.js';
|
|
8
8
|
export { ExcelContext, ExcelFindMatch, ExcelSelectionInfo, ExcelSheetInfo, ExcelStats, excel, allTools as excelAllTools, lifecycleTools as excelLifecycleTools, mutateTools as excelMutateTools, readTools as excelReadTools, tools as excelTools } from './plugin-excel/index.js';
|
|
9
|
+
export { WordBlockInfo, WordContentResult, WordContext, WordFindMatch, WordSelectionInfo, word, allTools as wordAllTools, lifecycleTools as wordLifecycleTools, mutateTools as wordMutateTools, readTools as wordReadTools, tools as wordTools } from './plugin-word/index.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Shell Plugin MCP Tools
|
|
@@ -66,6 +67,11 @@ declare const MCP_PACKAGES: readonly [{
|
|
|
66
67
|
readonly name: "Excel";
|
|
67
68
|
readonly description: "Excel 电子表格操作能力";
|
|
68
69
|
readonly tools: MCPTool[];
|
|
70
|
+
}, {
|
|
71
|
+
readonly id: "word";
|
|
72
|
+
readonly name: "Word";
|
|
73
|
+
readonly description: "Word 文档编辑能力";
|
|
74
|
+
readonly tools: MCPTool[];
|
|
69
75
|
}];
|
|
70
76
|
type MCPPackageId = (typeof MCP_PACKAGES)[number]['id'];
|
|
71
77
|
interface MCPPackageInfo {
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-S2UIBWKA.js';
|
|
2
|
+
export { word, allTools as wordAllTools, lifecycleTools as wordLifecycleTools, mutateTools as wordMutateTools, readTools as wordReadTools, tools as wordTools } from '../chunk-G66KY35N.js';
|
|
3
|
+
export { seaflow, allTools as seaflowAllTools, canvasAuthTools as seaflowCanvasAuthTools, canvasContextTools as seaflowCanvasContextTools, canvasExecutionTools as seaflowCanvasExecutionTools, tools as seaflowTools } from '../chunk-4ITOR5QE.js';
|
|
4
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, batchFileTools, clipboardTools, codeQualityTools, fileTools, gitTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-XU5GEWWL.js';
|
|
4
5
|
export { shellPlugin, commandTools as shellPluginCommandTools, sessionTools as shellPluginSessionTools, tools as shellPluginTools } from '../chunk-FLATZQA2.js';
|
|
5
|
-
export {
|
|
6
|
+
export { excel, allTools as excelAllTools, lifecycleTools as excelLifecycleTools, mutateTools as excelMutateTools, readTools as excelReadTools, tools as excelTools } from '../chunk-Z7LV7DCO.js';
|
|
6
7
|
export { preview, coreTools as previewCoreTools, enhancedTools as previewEnhancedTools, tools as previewTools } from '../chunk-QD4KISXM.js';
|
|
7
|
-
export {
|
|
8
|
+
export { editor, allTools as editorAllTools, extensionTools as editorExtensionTools, fileMutationTools as editorFileMutationTools, previewTools as editorPreviewTools, proposalTools as editorProposalTools, referenceTools as editorReferenceTools, sessionTools as editorSessionTools, tools as editorTools, fileOperationTools } from '../chunk-DSOSHJH2.js';
|
|
8
9
|
export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from '../chunk-ANWOL7SM.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkORBVHAAS_cjs = require('../../chunk-ORBVHAAS.cjs');
|
|
4
|
+
require('../../chunk-TFOJLA2F.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "allTools", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkORBVHAAS_cjs.allTools; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "lifecycleTools", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkORBVHAAS_cjs.lifecycleTools; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "mutateTools", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkORBVHAAS_cjs.mutateTools; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "readTools", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkORBVHAAS_cjs.readTools; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "tools", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkORBVHAAS_cjs.tools; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "word", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkORBVHAAS_cjs.word; }
|
|
31
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Word Plugin MCP Tools
|
|
5
|
+
*
|
|
6
|
+
* Word 插件提供的 MCP Tools(被动响应型插件)
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare const readTools: MCPTool[];
|
|
10
|
+
declare const mutateTools: MCPTool[];
|
|
11
|
+
declare const lifecycleTools: MCPTool[];
|
|
12
|
+
declare const tools: MCPTool[];
|
|
13
|
+
declare const allTools: MCPTool[];
|
|
14
|
+
declare const word: {
|
|
15
|
+
getContext: () => Promise<MCPToolResult>;
|
|
16
|
+
getOutline: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
17
|
+
getSelection: () => Promise<MCPToolResult>;
|
|
18
|
+
readContent: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
19
|
+
exportText: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
20
|
+
exportMarkdown: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
21
|
+
exportHtml: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
22
|
+
find: (query: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
23
|
+
listStyles: () => Promise<MCPToolResult>;
|
|
24
|
+
setSelection: (target: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
25
|
+
replaceContent: (text: string, target?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
26
|
+
insertText: (text: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
27
|
+
insertBlock: (blockType: Record<string, unknown>, content: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
28
|
+
deleteBlock: (target: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
29
|
+
moveBlock: (opts: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
30
|
+
applyInlineFormat: (style: Record<string, unknown>, target?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
31
|
+
setBlockType: (blockType: Record<string, unknown>, target?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
32
|
+
findReplace: (query: string, replacement: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
|
|
33
|
+
batchApply: (operations: Array<{
|
|
34
|
+
type: string;
|
|
35
|
+
params: Record<string, unknown>;
|
|
36
|
+
}>) => Promise<MCPToolResult>;
|
|
37
|
+
openPath: (path: string) => Promise<MCPToolResult>;
|
|
38
|
+
save: () => Promise<MCPToolResult>;
|
|
39
|
+
reload: () => Promise<MCPToolResult>;
|
|
40
|
+
};
|
|
41
|
+
interface WordContext {
|
|
42
|
+
filePath: string | null;
|
|
43
|
+
fileType: string;
|
|
44
|
+
isDirty: boolean;
|
|
45
|
+
isDocImport: boolean;
|
|
46
|
+
version: number;
|
|
47
|
+
blockCount: number;
|
|
48
|
+
charCount: number;
|
|
49
|
+
headingCount: number;
|
|
50
|
+
selection: {
|
|
51
|
+
from: number;
|
|
52
|
+
to: number;
|
|
53
|
+
hasSelection: boolean;
|
|
54
|
+
} | null;
|
|
55
|
+
}
|
|
56
|
+
interface WordBlockInfo {
|
|
57
|
+
blockId: string;
|
|
58
|
+
blockIndex: number;
|
|
59
|
+
blockType: string;
|
|
60
|
+
textPreview: string;
|
|
61
|
+
charCount: number;
|
|
62
|
+
level?: number;
|
|
63
|
+
}
|
|
64
|
+
interface WordSelectionInfo {
|
|
65
|
+
hasSelection: boolean;
|
|
66
|
+
from: number;
|
|
67
|
+
to: number;
|
|
68
|
+
text: string;
|
|
69
|
+
blockIds: string[];
|
|
70
|
+
}
|
|
71
|
+
interface WordFindMatch {
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
text: string;
|
|
75
|
+
blockId: string;
|
|
76
|
+
contextBefore: string;
|
|
77
|
+
contextAfter: string;
|
|
78
|
+
}
|
|
79
|
+
interface WordContentResult {
|
|
80
|
+
text: string;
|
|
81
|
+
blocks: WordBlockInfo[];
|
|
82
|
+
charCount: number;
|
|
83
|
+
truncated: boolean;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { type WordBlockInfo, type WordContentResult, type WordContext, type WordFindMatch, type WordSelectionInfo, allTools, lifecycleTools, mutateTools, readTools, tools, word };
|