@seastudio/sdk 4.0.3 → 4.0.5
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-HOROHWC4.js → chunk-EWNKBKGJ.js} +1 -1
- package/dist/{chunk-32EAVKRO.cjs → chunk-JXANHQNQ.cjs} +4 -4
- package/dist/{chunk-QZTAT5OG.js → chunk-QA7XGPJX.js} +234 -7
- package/dist/{chunk-NPAVHBYU.cjs → chunk-Y4QEHVYJ.cjs} +235 -6
- 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 +40 -32
- package/dist/mcp/seastudio/index.d.cts +198 -12
- package/dist/mcp/seastudio/index.d.ts +198 -12
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +1 -1
|
@@ -23,7 +23,9 @@ var rootedWriteEvidenceOutputSchema = {
|
|
|
23
23
|
properties: {
|
|
24
24
|
rootId: { type: "string" },
|
|
25
25
|
path: { type: "string" },
|
|
26
|
-
written: { type: "boolean" }
|
|
26
|
+
written: { type: "boolean" },
|
|
27
|
+
reviewed: { type: "boolean" },
|
|
28
|
+
proposalId: { type: "string" }
|
|
27
29
|
},
|
|
28
30
|
required: ["rootId", "path", "written"]
|
|
29
31
|
};
|
|
@@ -180,7 +182,7 @@ var fileTools = [
|
|
|
180
182
|
}),
|
|
181
183
|
annotateTool({
|
|
182
184
|
name: "seastudio-filesystem_mutate",
|
|
183
|
-
description: "\u6279\u91CF\u6267\u884C\u6587\u4EF6\u5199\u5165\u3001\u5220\u9664\u3001\u79FB\u52A8\u3001\u590D\u5236\u3001\u56DE\u6536\u7AD9\u7B49\u4F1A\u4FEE\u6539\u9879\u76EE\u7684\u64CD\u4F5C\u3002operations \u6309\u987A\u5E8F\u6267\u884C\uFF0C\u9ED8\u8BA4\u9047\u5230\u9519\u8BEF\u505C\u6B62\u3002",
|
|
185
|
+
description: "\u6279\u91CF\u6267\u884C\u6587\u4EF6\u5199\u5165\u3001\u5220\u9664\u3001\u79FB\u52A8\u3001\u590D\u5236\u3001\u56DE\u6536\u7AD9\u7B49\u4F1A\u4FEE\u6539\u9879\u76EE\u7684\u64CD\u4F5C\u3002\u9762\u5411 AI \u6539\u7801\u7684\u6587\u672C write \u9ED8\u8BA4 reviewMode=auto\uFF1A\u82E5\u76EE\u6807\u6587\u4EF6\u5DF2\u5728 Code Editor \u6253\u5F00\uFF0C\u4F1A\u5148\u843D\u76D8\u5E76\u751F\u6210 Keep/Undo proposal\uFF1BKeep \u4EC5\u786E\u8BA4\uFF0CUndo \u56DE\u6EDA\u539F\u5185\u5BB9\u3002operations \u6309\u987A\u5E8F\u6267\u884C\uFF0C\u9ED8\u8BA4\u9047\u5230\u9519\u8BEF\u505C\u6B62\u3002",
|
|
184
186
|
inputSchema: {
|
|
185
187
|
type: "object",
|
|
186
188
|
properties: {
|
|
@@ -198,6 +200,11 @@ var fileTools = [
|
|
|
198
200
|
rootId: rootIdParam,
|
|
199
201
|
path: pathParam,
|
|
200
202
|
content: { type: "string", description: "write \u7684\u6587\u672C\u5185\u5BB9\u3002" },
|
|
203
|
+
reviewMode: {
|
|
204
|
+
type: "string",
|
|
205
|
+
enum: ["auto", "direct", "proposal"],
|
|
206
|
+
description: "write \u7684\u5BA1\u6838\u6A21\u5F0F\uFF1Aauto \u9ED8\u8BA4\u5BF9\u6253\u5F00\u4E2D\u7684\u4EE3\u7801\u6587\u4EF6\u5148\u843D\u76D8\u5E76\u663E\u793A Keep/Undo proposal\uFF1Bdirect \u53EA\u76F4\u63A5\u5199\u76D8\uFF1Bproposal \u5F3A\u5236\u8981\u6C42\u663E\u793A proposal\uFF0C\u672A\u547D\u4E2D\u53EF\u5BA1\u6838\u7F16\u8F91\u5668\u65F6\u8FD4\u56DE\u9519\u8BEF\u3002"
|
|
207
|
+
},
|
|
201
208
|
base64: { type: "string", description: "writeBinary \u7684 base64 \u5185\u5BB9\u3002" },
|
|
202
209
|
newName: { type: "string", description: "rename \u7684\u65B0\u540D\u79F0\u3002" },
|
|
203
210
|
sourceRootId: rootIdParam,
|
|
@@ -254,6 +261,170 @@ var fileTools = [
|
|
|
254
261
|
})
|
|
255
262
|
];
|
|
256
263
|
|
|
264
|
+
// src/mcp/seastudio/tools/editor.ts
|
|
265
|
+
var editorTools = [
|
|
266
|
+
annotateTool({
|
|
267
|
+
name: "seastudio-editor_propose",
|
|
268
|
+
description: "\u63D0\u4EA4\u4EE3\u7801\u53D8\u66F4\u63D0\u6848\u7ED9 Code Editor\uFF0C\u4EE5 Cursor \u98CE\u683C Keep/Undo \u5185\u8054 diff \u8BA9\u7528\u6237\u5BA1\u6838\u3002Code Editor \u4F1A\u5148\u5E94\u7528 proposedContent\uFF0CKeep \u4EC5\u786E\u8BA4\uFF0CUndo \u56DE\u6EDA originalContent\u3002",
|
|
269
|
+
inputSchema: {
|
|
270
|
+
type: "object",
|
|
271
|
+
properties: {
|
|
272
|
+
proposalId: { type: "string", description: "\u63D0\u6848 ID\uFF0C\u53EF\u9009\uFF1B\u7F3A\u7701\u7531\u4E3B\u7A0B\u5E8F\u751F\u6210\u3002" },
|
|
273
|
+
title: { type: "string", description: "\u63D0\u6848\u6807\u9898\u3002" },
|
|
274
|
+
targetPluginId: { type: "string", description: "\u76EE\u6807\u63D2\u4EF6 ID\uFF0C\u9ED8\u8BA4 seastudio.codeEditor\u3002" },
|
|
275
|
+
targetInstanceId: { type: "string", description: "\u76EE\u6807 Code Editor \u5B9E\u4F8B ID\u3002" },
|
|
276
|
+
openFile: { type: "boolean", description: "\u662F\u5426\u8981\u6C42\u7F16\u8F91\u5668\u6253\u5F00/\u805A\u7126\u63D0\u6848\u6587\u4EF6\uFF0C\u9ED8\u8BA4 true\u3002" },
|
|
277
|
+
origin: {
|
|
278
|
+
type: "object",
|
|
279
|
+
additionalProperties: true,
|
|
280
|
+
description: "\u63D0\u6848\u6765\u6E90\u4FE1\u606F\uFF0C\u5982 agentInstanceId\u3001threadId\u3001projectId\u3002"
|
|
281
|
+
},
|
|
282
|
+
files: {
|
|
283
|
+
type: "array",
|
|
284
|
+
description: "\u63D0\u6848\u6D89\u53CA\u7684\u6587\u4EF6\u5217\u8868\u3002",
|
|
285
|
+
items: {
|
|
286
|
+
type: "object",
|
|
287
|
+
properties: {
|
|
288
|
+
path: { type: "string" },
|
|
289
|
+
rootId: { type: "string" },
|
|
290
|
+
originalContent: { type: "string" },
|
|
291
|
+
proposedContent: { type: "string" },
|
|
292
|
+
hunks: {
|
|
293
|
+
type: "array",
|
|
294
|
+
items: {
|
|
295
|
+
type: "object",
|
|
296
|
+
properties: {
|
|
297
|
+
id: { type: "string" },
|
|
298
|
+
filePath: { type: "string" },
|
|
299
|
+
rootId: { type: "string" },
|
|
300
|
+
startLine: { type: "number" },
|
|
301
|
+
endLine: { type: "number" },
|
|
302
|
+
originalContent: { type: "string" },
|
|
303
|
+
proposedContent: { type: "string" }
|
|
304
|
+
},
|
|
305
|
+
required: ["id", "startLine", "endLine", "originalContent", "proposedContent"]
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
required: ["path", "originalContent", "proposedContent"]
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
required: ["title", "files"]
|
|
314
|
+
}
|
|
315
|
+
}, {
|
|
316
|
+
operationKind: "mutate",
|
|
317
|
+
requiresExecutionEvidence: true,
|
|
318
|
+
rawDomain: "editor"
|
|
319
|
+
}, {
|
|
320
|
+
type: "object",
|
|
321
|
+
properties: {
|
|
322
|
+
proposalId: { type: "string" },
|
|
323
|
+
delivered: { type: "boolean" },
|
|
324
|
+
targetPluginId: { type: "string" },
|
|
325
|
+
targetInstanceId: { type: "string" }
|
|
326
|
+
},
|
|
327
|
+
required: ["proposalId", "delivered"]
|
|
328
|
+
}),
|
|
329
|
+
annotateTool({
|
|
330
|
+
name: "seastudio-editor_proposal",
|
|
331
|
+
description: "\u7BA1\u7406 Code Editor \u7684\u6301\u4E45 Keep/Undo \u4EE3\u7801\u63D0\u6848\u3002\u652F\u6301 list\u3001get\u3001getForFile\u3001keepAll\u3001undoAll\uFF1BAgent \u53EF\u7528 keepAll/undoAll \u4E3B\u52A8\u786E\u8BA4\u6216\u56DE\u6EDA\u63D0\u6848\u3002",
|
|
332
|
+
inputSchema: {
|
|
333
|
+
type: "object",
|
|
334
|
+
properties: {
|
|
335
|
+
action: {
|
|
336
|
+
type: "string",
|
|
337
|
+
enum: ["list", "get", "getForFile", "keepAll", "undoAll", "resolve"],
|
|
338
|
+
description: "proposal \u7BA1\u7406\u52A8\u4F5C\u3002"
|
|
339
|
+
},
|
|
340
|
+
proposalId: { type: "string", description: "\u76EE\u6807\u63D0\u6848 ID\u3002" },
|
|
341
|
+
rootId: { type: "string", description: "\u9879\u76EE\u6839 ID\u3002" },
|
|
342
|
+
path: { type: "string", description: "\u76F8\u5BF9 rootId \u7684\u6587\u4EF6\u8DEF\u5F84\u3002" },
|
|
343
|
+
decision: {
|
|
344
|
+
type: "string",
|
|
345
|
+
enum: ["keep", "undo"],
|
|
346
|
+
description: "resolve \u52A8\u4F5C\u7684\u51B3\u7B56\u3002"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
required: ["action"]
|
|
350
|
+
}
|
|
351
|
+
}, {
|
|
352
|
+
operationKind: "mutate",
|
|
353
|
+
requiresExecutionEvidence: true,
|
|
354
|
+
rawDomain: "editor"
|
|
355
|
+
}, {
|
|
356
|
+
type: "object",
|
|
357
|
+
properties: {
|
|
358
|
+
proposalId: { type: "string" },
|
|
359
|
+
proposals: { type: "array", items: { type: "object", additionalProperties: true } },
|
|
360
|
+
proposal: { type: "object", additionalProperties: true },
|
|
361
|
+
resolved: { type: "boolean" },
|
|
362
|
+
decision: { type: "string" }
|
|
363
|
+
}
|
|
364
|
+
})
|
|
365
|
+
];
|
|
366
|
+
|
|
367
|
+
// src/mcp/seastudio/tools/git.ts
|
|
368
|
+
var gitTools = [
|
|
369
|
+
annotateTool({
|
|
370
|
+
name: "seastudio-git_read",
|
|
371
|
+
description: "Read git repository state for the current project. Actions: status, diff, show, lineChanges, probe.",
|
|
372
|
+
inputSchema: {
|
|
373
|
+
type: "object",
|
|
374
|
+
properties: {
|
|
375
|
+
action: {
|
|
376
|
+
type: "string",
|
|
377
|
+
enum: ["status", "diff", "show", "lineChanges", "probe"],
|
|
378
|
+
description: "status: porcelain file list; diff: unified diff text; show: file at ref; lineChanges: editor gutter ranges; probe: runtime availability."
|
|
379
|
+
},
|
|
380
|
+
path: { type: "string", description: "Repo-relative file path (required for diff/show/lineChanges)." },
|
|
381
|
+
scope: {
|
|
382
|
+
type: "string",
|
|
383
|
+
enum: ["staged", "unstaged", "all"],
|
|
384
|
+
description: "diff scope (default all)."
|
|
385
|
+
},
|
|
386
|
+
ref: {
|
|
387
|
+
type: "string",
|
|
388
|
+
enum: ["HEAD", "INDEX"],
|
|
389
|
+
description: "show ref (default HEAD)."
|
|
390
|
+
},
|
|
391
|
+
rootId: { type: "string", description: "Filesystem root id (default workspace)." }
|
|
392
|
+
},
|
|
393
|
+
required: ["action"]
|
|
394
|
+
}
|
|
395
|
+
}, {
|
|
396
|
+
operationKind: "read",
|
|
397
|
+
requiresExecutionEvidence: false,
|
|
398
|
+
rawDomain: "git"
|
|
399
|
+
}),
|
|
400
|
+
annotateTool({
|
|
401
|
+
name: "seastudio-git_mutate",
|
|
402
|
+
description: "Mutate git state: init, stage, unstage, discard, commit, stageAll, unstageAll, discardAll.",
|
|
403
|
+
inputSchema: {
|
|
404
|
+
type: "object",
|
|
405
|
+
properties: {
|
|
406
|
+
action: {
|
|
407
|
+
type: "string",
|
|
408
|
+
enum: ["init", "stage", "unstage", "discard", "commit", "stageAll", "unstageAll", "discardAll"]
|
|
409
|
+
},
|
|
410
|
+
path: { type: "string", description: "Repo-relative path for stage/unstage/discard." },
|
|
411
|
+
paths: {
|
|
412
|
+
type: "array",
|
|
413
|
+
items: { type: "string" },
|
|
414
|
+
description: "Multiple paths for stage/unstage/discard."
|
|
415
|
+
},
|
|
416
|
+
message: { type: "string", description: "Commit message (required for commit)." },
|
|
417
|
+
rootId: { type: "string", description: "Filesystem root id (default workspace)." }
|
|
418
|
+
},
|
|
419
|
+
required: ["action"]
|
|
420
|
+
}
|
|
421
|
+
}, {
|
|
422
|
+
operationKind: "mutate",
|
|
423
|
+
requiresExecutionEvidence: true,
|
|
424
|
+
rawDomain: "git"
|
|
425
|
+
})
|
|
426
|
+
];
|
|
427
|
+
|
|
257
428
|
// src/mcp/seastudio/tools/shell.ts
|
|
258
429
|
var shellActionParam = {
|
|
259
430
|
type: "string",
|
|
@@ -397,8 +568,14 @@ function joinWorkspacePath(dir, name) {
|
|
|
397
568
|
function callFilesystemRead(action, args = {}) {
|
|
398
569
|
return callTool("seastudio-filesystem_read", { action, ...args });
|
|
399
570
|
}
|
|
400
|
-
function callFilesystemMutate(op, args = {}) {
|
|
401
|
-
return callTool("seastudio-filesystem_mutate", {
|
|
571
|
+
function callFilesystemMutate(op, args = {}, options) {
|
|
572
|
+
return callTool("seastudio-filesystem_mutate", {
|
|
573
|
+
operations: [{
|
|
574
|
+
op,
|
|
575
|
+
...args,
|
|
576
|
+
...options?.reviewMode ? { reviewMode: options.reviewMode } : {}
|
|
577
|
+
}]
|
|
578
|
+
});
|
|
402
579
|
}
|
|
403
580
|
function callFilesystemTransfer(action, args = {}) {
|
|
404
581
|
return callTool("seastudio-filesystem_transfer", { action, ...args });
|
|
@@ -409,6 +586,12 @@ function callShellSessionRead(action, args = {}) {
|
|
|
409
586
|
function callShellSessionControl(action, args = {}) {
|
|
410
587
|
return callTool("seastudio-shell_session_control", { action, ...args });
|
|
411
588
|
}
|
|
589
|
+
function callGitRead(action, args = {}) {
|
|
590
|
+
return callTool("seastudio-git_read", { action, ...args });
|
|
591
|
+
}
|
|
592
|
+
function callGitMutate(action, args = {}) {
|
|
593
|
+
return callTool("seastudio-git_mutate", { action, ...args });
|
|
594
|
+
}
|
|
412
595
|
var seastudio = {
|
|
413
596
|
roots: {
|
|
414
597
|
list: () => request("roots/list")
|
|
@@ -426,7 +609,11 @@ var seastudio = {
|
|
|
426
609
|
...typeof options?.offset === "number" ? { offset: options.offset } : {},
|
|
427
610
|
...typeof options?.limit === "number" ? { limit: options.limit } : {}
|
|
428
611
|
}),
|
|
429
|
-
write: (path, content, options) => callFilesystemMutate(
|
|
612
|
+
write: (path, content, options) => callFilesystemMutate(
|
|
613
|
+
"write",
|
|
614
|
+
{ rootId: options?.rootId ?? "workspace", path, content },
|
|
615
|
+
{ reviewMode: options?.reviewMode }
|
|
616
|
+
),
|
|
430
617
|
list: (path = "", options) => callFilesystemRead("list", {
|
|
431
618
|
rootId: options?.rootId ?? "workspace",
|
|
432
619
|
path
|
|
@@ -525,6 +712,32 @@ var seastudio = {
|
|
|
525
712
|
writeBinary: (path, base64, options) => callFilesystemMutate("writeBinary", { rootId: options?.rootId ?? "workspace", path, base64 }),
|
|
526
713
|
readBinary: (path, options) => callFilesystemRead("readBinary", { rootId: options?.rootId ?? "workspace", path })
|
|
527
714
|
},
|
|
715
|
+
git: {
|
|
716
|
+
probe: () => callGitRead("probe"),
|
|
717
|
+
status: (options) => callGitRead("status", { rootId: options?.rootId ?? "workspace" }),
|
|
718
|
+
diff: (path, options) => callGitRead("diff", {
|
|
719
|
+
path,
|
|
720
|
+
rootId: options?.rootId ?? "workspace",
|
|
721
|
+
...options?.scope ? { scope: options.scope } : {}
|
|
722
|
+
}),
|
|
723
|
+
show: (path, options) => callGitRead("show", {
|
|
724
|
+
path,
|
|
725
|
+
rootId: options?.rootId ?? "workspace",
|
|
726
|
+
...options?.ref ? { ref: options.ref } : {}
|
|
727
|
+
}),
|
|
728
|
+
lineChanges: (path, options) => callGitRead("lineChanges", { path, rootId: options?.rootId ?? "workspace" }),
|
|
729
|
+
init: (options) => callGitMutate("init", { rootId: options?.rootId ?? "workspace" }),
|
|
730
|
+
stage: (path, options) => callGitMutate("stage", { path, rootId: options?.rootId ?? "workspace" }),
|
|
731
|
+
stageAll: (options) => callGitMutate("stageAll", { rootId: options?.rootId ?? "workspace" }),
|
|
732
|
+
unstage: (path, options) => callGitMutate("unstage", { path, rootId: options?.rootId ?? "workspace" }),
|
|
733
|
+
unstageAll: (options) => callGitMutate("unstageAll", { rootId: options?.rootId ?? "workspace" }),
|
|
734
|
+
discard: (path, options) => callGitMutate("discard", { path, rootId: options?.rootId ?? "workspace" }),
|
|
735
|
+
commit: (message, options) => callGitMutate("commit", { message, rootId: options?.rootId ?? "workspace" })
|
|
736
|
+
},
|
|
737
|
+
editor: {
|
|
738
|
+
propose: (options) => callTool("seastudio-editor_propose", options),
|
|
739
|
+
proposal: (options) => callTool("seastudio-editor_proposal", options)
|
|
740
|
+
},
|
|
528
741
|
shell: {
|
|
529
742
|
session: {
|
|
530
743
|
open: (options = {}) => callShellSessionControl("open", { ...options }),
|
|
@@ -885,11 +1098,23 @@ var SeastudioRequests = {
|
|
|
885
1098
|
/** 请求标记文件已保存 -> 主程序发布 FILE_SAVED */
|
|
886
1099
|
FILE_SAVED: "request:file_saved",
|
|
887
1100
|
/** 请求发送文本给 Agent -> 主程序发布 TEXT_SEND_REQUESTED */
|
|
888
|
-
TEXT_SEND: "request:text_send"
|
|
1101
|
+
TEXT_SEND: "request:text_send",
|
|
1102
|
+
/** 请求在 Code Editor 中打开 Git diff 视图 */
|
|
1103
|
+
GIT_OPEN_DIFF: "request:git_open_diff",
|
|
1104
|
+
/** 请求提交代码变更提案 -> 主程序发布 PROPOSAL_REQUESTED */
|
|
1105
|
+
PROPOSAL_SUBMIT: "request:proposal_submit"
|
|
889
1106
|
};
|
|
890
1107
|
var SeastudioNotifications = {
|
|
891
1108
|
/** 文件系统变化通知(fs.watch 触发) */
|
|
892
1109
|
FILES_CHANGED: "files:changed",
|
|
1110
|
+
/** Git 仓库状态变化(mutate 或 files:changed 后刷新) */
|
|
1111
|
+
GIT_CHANGED: "git:changed",
|
|
1112
|
+
/** Git diff 打开请求(主程序转发到 Code Editor) */
|
|
1113
|
+
GIT_OPEN_DIFF_REQUESTED: "seastudio:git-open_diff_requested",
|
|
1114
|
+
/** 代码变更提案请求(主程序转发到 Code Editor) */
|
|
1115
|
+
PROPOSAL_REQUESTED: "seastudio:proposal-requested",
|
|
1116
|
+
/** 代码变更提案状态变化 */
|
|
1117
|
+
PROPOSAL_CHANGED: "seastudio:proposal-changed",
|
|
893
1118
|
/** 文件或目录被重命名/移动 */
|
|
894
1119
|
FILE_RENAMED: "file:renamed",
|
|
895
1120
|
/** 文件或目录被删除/移入回收站 */
|
|
@@ -959,6 +1184,8 @@ var SeastudioNotifications = {
|
|
|
959
1184
|
// src/mcp/seastudio/index.ts
|
|
960
1185
|
var allTools = [
|
|
961
1186
|
...fileTools,
|
|
1187
|
+
...editorTools,
|
|
1188
|
+
...gitTools,
|
|
962
1189
|
...shellTools,
|
|
963
1190
|
...seaCloudTools,
|
|
964
1191
|
...pluginManagementTools,
|
|
@@ -982,9 +1209,11 @@ exports.browserRuntimeTools = browserRuntimeTools;
|
|
|
982
1209
|
exports.callTool = callTool;
|
|
983
1210
|
exports.callToolText = callToolText;
|
|
984
1211
|
exports.dualPathEvidenceOutputSchema = dualPathEvidenceOutputSchema;
|
|
1212
|
+
exports.editorTools = editorTools;
|
|
985
1213
|
exports.fileDownloadEvidenceOutputSchema = fileDownloadEvidenceOutputSchema;
|
|
986
1214
|
exports.fileTools = fileTools;
|
|
987
1215
|
exports.fileUrlEvidenceOutputSchema = fileUrlEvidenceOutputSchema;
|
|
1216
|
+
exports.gitTools = gitTools;
|
|
988
1217
|
exports.pluginManagementTools = pluginManagementTools;
|
|
989
1218
|
exports.pluginTabTools = pluginTabTools;
|
|
990
1219
|
exports.projectTools = projectTools;
|
package/dist/index.cjs
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJXANHQNQ_cjs = require('./chunk-JXANHQNQ.cjs');
|
|
4
4
|
var chunkTKROLSLX_cjs = require('./chunk-TKROLSLX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkY4QEHVYJ_cjs = require('./chunk-Y4QEHVYJ.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 chunkJXANHQNQ_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkJXANHQNQ_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkJXANHQNQ_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkJXANHQNQ_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkJXANHQNQ_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkJXANHQNQ_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkJXANHQNQ_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkJXANHQNQ_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkJXANHQNQ_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkJXANHQNQ_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 chunkY4QEHVYJ_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkY4QEHVYJ_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkY4QEHVYJ_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkY4QEHVYJ_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkY4QEHVYJ_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkY4QEHVYJ_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkY4QEHVYJ_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkY4QEHVYJ_cjs.seaCloudTools; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudio", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkY4QEHVYJ_cjs.seastudio; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkY4QEHVYJ_cjs.allTools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "seastudioTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkY4QEHVYJ_cjs.tools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "shellTools", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkY4QEHVYJ_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-EWNKBKGJ.js';
|
|
2
2
|
export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from './chunk-UZWEOUCK.js';
|
|
3
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-
|
|
3
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-QA7XGPJX.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 chunkJXANHQNQ_cjs = require('../chunk-JXANHQNQ.cjs');
|
|
4
|
+
var chunkY4QEHVYJ_cjs = require('../chunk-Y4QEHVYJ.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 chunkJXANHQNQ_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkJXANHQNQ_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkJXANHQNQ_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkJXANHQNQ_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkJXANHQNQ_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkJXANHQNQ_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkJXANHQNQ_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkJXANHQNQ_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkJXANHQNQ_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkJXANHQNQ_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkY4QEHVYJ_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkY4QEHVYJ_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkY4QEHVYJ_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkY4QEHVYJ_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkY4QEHVYJ_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkY4QEHVYJ_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkY4QEHVYJ_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkY4QEHVYJ_cjs.seaCloudTools; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudio", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkY4QEHVYJ_cjs.seastudio; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkY4QEHVYJ_cjs.allTools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "seastudioTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkY4QEHVYJ_cjs.tools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "shellTools", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkY4QEHVYJ_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-EWNKBKGJ.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-QA7XGPJX.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';
|