@seastudio/sdk 5.0.0 → 6.0.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/README.md +2 -2
- package/dist/{chunk-TJ3CGHWJ.js → chunk-6XG5DRQW.js} +0 -9
- package/dist/{chunk-3I7UM66P.cjs → chunk-77OAWBLL.cjs} +0 -9
- package/dist/{chunk-EGCXEVBD.cjs → chunk-CHTNN2X3.cjs} +86 -84
- package/dist/{chunk-GKR5RYBV.js → chunk-ELOYCCXA.js} +2 -2
- package/dist/{chunk-FNA3TFHQ.js → chunk-PN3WUVKZ.js} +82 -80
- package/dist/{chunk-55KNKQUO.cjs → chunk-SIAVXTH5.cjs} +10 -10
- package/dist/index.cjs +45 -45
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/mcp/core/index.cjs +22 -22
- package/dist/mcp/core/index.d.cts +2 -2
- package/dist/mcp/core/index.d.ts +2 -2
- package/dist/mcp/core/index.js +1 -1
- package/dist/mcp/index.cjs +45 -45
- package/dist/mcp/index.d.cts +2 -2
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +3 -3
- package/dist/mcp/seastudio/index.cjs +40 -40
- package/dist/mcp/seastudio/index.d.cts +99 -64
- package/dist/mcp/seastudio/index.d.ts +99 -64
- package/dist/mcp/seastudio/index.js +2 -2
- package/dist/{types-D7xY0bt6.d.cts → types-S2uWCEaN.d.cts} +1 -1
- package/dist/{types-D7xY0bt6.d.ts → types-S2uWCEaN.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultClient } from './chunk-
|
|
1
|
+
import { getDefaultClient } from './chunk-6XG5DRQW.js';
|
|
2
2
|
|
|
3
3
|
// src/mcp/seastudio/tools/file.ts
|
|
4
4
|
function annotateTool(tool, annotations, outputSchema) {
|
|
@@ -536,30 +536,30 @@ var shellTools = [
|
|
|
536
536
|
})
|
|
537
537
|
];
|
|
538
538
|
|
|
539
|
-
// src/mcp/seastudio/tools/
|
|
540
|
-
var
|
|
541
|
-
var
|
|
542
|
-
|
|
539
|
+
// src/mcp/seastudio/tools/webview.ts
|
|
540
|
+
var SINGLETON_WEBVIEW_RUNTIME_ID = "webview-runtime-default";
|
|
541
|
+
var webviewRuntimeIdParam = {
|
|
542
|
+
webviewRuntimeId: {
|
|
543
543
|
type: "string",
|
|
544
|
-
description: "
|
|
544
|
+
description: "WebviewRuntime ID\uFF0C\u53EF\u9009\uFF1B\u7F3A\u7701\u4E3A\u5168\u5C40\u5355\u4F8B webview-runtime-default\u3002"
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var tabIdParam = {
|
|
548
|
-
tabId: { type: "string", description: "
|
|
548
|
+
tabId: { type: "string", description: "WebviewRuntime tab ID\u3002close/activate/navigate/goBack/goForward/reload/stop \u9700\u8981\u3002" }
|
|
549
549
|
};
|
|
550
|
-
var
|
|
550
|
+
var webviewRuntimeTools = [
|
|
551
551
|
annotateTool({
|
|
552
|
-
name: "seastudio-
|
|
553
|
-
description: "\u8BFB\u53D6\u6216\u91CD\u7F6E\u5168\u5C40
|
|
552
|
+
name: "seastudio-webview_runtime",
|
|
553
|
+
description: "\u8BFB\u53D6\u6216\u91CD\u7F6E\u5168\u5C40 WebviewRuntime\u3002\u4F7F\u7528 action \u9009\u62E9 open\u3001list\u3001get \u6216 close\u3002open/get \u8FD4\u56DE\u540C\u4E00\u4E2A webviewRuntimeId\uFF1Bclose \u4F1A\u6E05\u7A7A\u5168\u90E8 tab \u4F46\u4FDD\u7559 runtime \u58F3\u3002",
|
|
554
554
|
inputSchema: {
|
|
555
555
|
type: "object",
|
|
556
556
|
properties: {
|
|
557
557
|
action: {
|
|
558
558
|
type: "string",
|
|
559
559
|
enum: ["open", "list", "get", "close"],
|
|
560
|
-
description: "
|
|
560
|
+
description: "WebviewRuntime \u52A8\u4F5C\u3002\u5168\u5C40\u4EC5\u4E00\u4E2A runtime\uFF1BwebviewRuntimeId \u53EF\u9009\u3002"
|
|
561
561
|
},
|
|
562
|
-
...
|
|
562
|
+
...webviewRuntimeIdParam,
|
|
563
563
|
homepage: { type: "string", description: "open \u7684\u53EF\u9009\u9ED8\u8BA4\u9996\u9875\u3002" }
|
|
564
564
|
},
|
|
565
565
|
required: ["action"]
|
|
@@ -567,43 +567,43 @@ var browserRuntimeTools = [
|
|
|
567
567
|
}, {
|
|
568
568
|
operationKind: "workflow",
|
|
569
569
|
requiresExecutionEvidence: false,
|
|
570
|
-
rawDomain: "
|
|
570
|
+
rawDomain: "webview"
|
|
571
571
|
}),
|
|
572
572
|
annotateTool({
|
|
573
|
-
name: "seastudio-
|
|
574
|
-
description: "\u7BA1\u7406\u5168\u5C40
|
|
573
|
+
name: "seastudio-webview_runtime_tab",
|
|
574
|
+
description: "\u7BA1\u7406\u5168\u5C40 WebviewRuntime \u4E2D\u7684 tab\u3002\u4F7F\u7528 action \u9009\u62E9 create\u3001close\u3001activate\u3001navigate\u3001goBack\u3001goForward\u3001reload \u6216 stop\u3002\u6BCF\u4E2A Host webview \u63D2\u4EF6\u5B9E\u4F8B\u901A\u5E38\u5BF9\u5E94\u4E00\u4E2A ownerInstanceId tab\u3002",
|
|
575
575
|
inputSchema: {
|
|
576
576
|
type: "object",
|
|
577
577
|
properties: {
|
|
578
578
|
action: {
|
|
579
579
|
type: "string",
|
|
580
580
|
enum: ["create", "close", "activate", "navigate", "goBack", "goForward", "reload", "stop"],
|
|
581
|
-
description: "
|
|
581
|
+
description: "WebviewRuntime tab \u52A8\u4F5C\u3002webviewRuntimeId \u53EF\u9009\uFF1Bcreate \u53EF\u4F20 ownerInstanceId \u7ED1\u5B9A Host \u63D2\u4EF6\u5B9E\u4F8B\u3002"
|
|
582
582
|
},
|
|
583
|
-
...
|
|
583
|
+
...webviewRuntimeIdParam,
|
|
584
584
|
...tabIdParam,
|
|
585
585
|
url: { type: "string", description: "create \u7684\u521D\u59CB URL\uFF0C\u6216 navigate \u7684\u76EE\u6807 URL/\u641C\u7D22\u8BCD\u3002" },
|
|
586
|
-
ownerInstanceId: { type: "string", description: "create \u65F6\u7ED1\u5B9A Host
|
|
586
|
+
ownerInstanceId: { type: "string", description: "create \u65F6\u7ED1\u5B9A Host webview \u63D2\u4EF6 instanceId\u3002" }
|
|
587
587
|
},
|
|
588
588
|
required: ["action"]
|
|
589
589
|
}
|
|
590
590
|
}, {
|
|
591
591
|
operationKind: "mutate",
|
|
592
592
|
requiresExecutionEvidence: false,
|
|
593
|
-
rawDomain: "
|
|
593
|
+
rawDomain: "webview"
|
|
594
594
|
}),
|
|
595
595
|
annotateTool({
|
|
596
|
-
name: "seastudio-
|
|
597
|
-
description: "\u5904\u7406
|
|
596
|
+
name: "seastudio-webview_runtime_host",
|
|
597
|
+
description: "\u5904\u7406 WebviewRuntime \u4E0E UI viewport\u3001\u8BC1\u4E66\u9519\u8BEF\u548C\u9875\u9762\u811A\u672C\u6267\u884C\u76F8\u5173\u7684\u5BBF\u4E3B\u4EA4\u4E92\u3002",
|
|
598
598
|
inputSchema: {
|
|
599
599
|
type: "object",
|
|
600
600
|
properties: {
|
|
601
601
|
action: {
|
|
602
602
|
type: "string",
|
|
603
603
|
enum: ["bindViewport", "respondCertificate", "evaluate"],
|
|
604
|
-
description: "
|
|
604
|
+
description: "WebviewRuntime host \u52A8\u4F5C\u3002bindViewport \u9700\u8981 rect\uFF1BrespondCertificate \u9700\u8981 requestId \u548C allow\uFF1Bevaluate \u9700\u8981 tabId \u548C script\u3002"
|
|
605
605
|
},
|
|
606
|
-
...
|
|
606
|
+
...webviewRuntimeIdParam,
|
|
607
607
|
...tabIdParam,
|
|
608
608
|
ownerInstanceId: { type: "string", description: "bindViewport \u7684 UI owner instance id\u3002" },
|
|
609
609
|
rect: {
|
|
@@ -619,7 +619,7 @@ var browserRuntimeTools = [
|
|
|
619
619
|
},
|
|
620
620
|
requestId: { type: "string", description: "respondCertificate \u7684\u8BC1\u4E66\u9519\u8BEF\u8BF7\u6C42 ID\u3002" },
|
|
621
621
|
allow: { type: "boolean", description: "respondCertificate \u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\u8BE5\u8BC1\u4E66\u9519\u8BEF\u9875\u9762\u3002" },
|
|
622
|
-
script: { type: "string", description: "evaluate \u8981\u5728
|
|
622
|
+
script: { type: "string", description: "evaluate \u8981\u5728 WebviewRuntime \u9875\u9762\u4E2D\u6267\u884C\u7684 JavaScript\u3002" },
|
|
623
623
|
timeoutMs: { type: "number", description: "evaluate \u8D85\u65F6\u65F6\u95F4\uFF0C\u5355\u4F4D\u6BEB\u79D2\u3002" }
|
|
624
624
|
},
|
|
625
625
|
required: ["action"]
|
|
@@ -627,22 +627,22 @@ var browserRuntimeTools = [
|
|
|
627
627
|
}, {
|
|
628
628
|
operationKind: "workflow",
|
|
629
629
|
requiresExecutionEvidence: false,
|
|
630
|
-
rawDomain: "
|
|
630
|
+
rawDomain: "webview"
|
|
631
631
|
}),
|
|
632
632
|
annotateTool({
|
|
633
|
-
name: "seastudio-
|
|
634
|
-
description: "\u5728
|
|
633
|
+
name: "seastudio-webview_runtime_show",
|
|
634
|
+
description: "\u5728 Host webview runtime \u4E2D\u663E\u793A\u6307\u5B9A URL\uFF08\u53EF\u89C6\u5316\uFF09\u3002\u4F1A\u6253\u5F00\u6216\u6FC0\u6D3B\u5BF9\u5E94 Host \u6807\u7B7E\u9875\uFF0C\u5E76\u628A\u9875\u9762\u5448\u73B0\u7ED9\u7528\u6237\u3002",
|
|
635
635
|
inputSchema: {
|
|
636
636
|
type: "object",
|
|
637
637
|
properties: {
|
|
638
|
-
url: { type: "string", description: "\u8981\u5728
|
|
638
|
+
url: { type: "string", description: "\u8981\u5728 Host webview runtime \u4E2D\u663E\u793A\u7684 URL \u6216\u641C\u7D22\u8BCD\u3002" }
|
|
639
639
|
},
|
|
640
640
|
required: ["url"]
|
|
641
641
|
}
|
|
642
642
|
}, {
|
|
643
643
|
operationKind: "workflow",
|
|
644
644
|
requiresExecutionEvidence: false,
|
|
645
|
-
rawDomain: "
|
|
645
|
+
rawDomain: "webview"
|
|
646
646
|
})
|
|
647
647
|
];
|
|
648
648
|
|
|
@@ -889,41 +889,53 @@ var seastudio = {
|
|
|
889
889
|
close: (sessionId, force = false) => callShellSessionControl("close", { sessionId, force })
|
|
890
890
|
}
|
|
891
891
|
},
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
open: async (options = {}) => parseToolResult(await callTool("seastudio-
|
|
895
|
-
list: async () => parseToolResult(await callTool("seastudio-
|
|
896
|
-
get: async (
|
|
897
|
-
close: async (
|
|
898
|
-
await callTool("seastudio-
|
|
892
|
+
webview: {
|
|
893
|
+
runtime: {
|
|
894
|
+
open: async (options = {}) => parseToolResult(await callTool("seastudio-webview_runtime", { action: "open", ...options })),
|
|
895
|
+
list: async () => parseToolResult(await callTool("seastudio-webview_runtime", { action: "list" })),
|
|
896
|
+
get: async (webviewRuntimeId = SINGLETON_WEBVIEW_RUNTIME_ID) => parseToolResult(await callTool("seastudio-webview_runtime", { action: "get", webviewRuntimeId })),
|
|
897
|
+
close: async (webviewRuntimeId = SINGLETON_WEBVIEW_RUNTIME_ID) => parseToolResult(
|
|
898
|
+
await callTool("seastudio-webview_runtime", { action: "close", webviewRuntimeId })
|
|
899
|
+
),
|
|
900
|
+
show: async (url) => parseToolResult(
|
|
901
|
+
await callTool("seastudio-webview_runtime_show", { url })
|
|
902
|
+
),
|
|
903
|
+
evaluate: async (webviewRuntimeId, tabId, script, timeoutMs) => parseToolResult(
|
|
904
|
+
await callTool("seastudio-webview_runtime_host", {
|
|
905
|
+
action: "evaluate",
|
|
906
|
+
webviewRuntimeId,
|
|
907
|
+
tabId,
|
|
908
|
+
script,
|
|
909
|
+
...timeoutMs ? { timeoutMs } : {}
|
|
910
|
+
})
|
|
899
911
|
)
|
|
900
912
|
},
|
|
901
|
-
|
|
902
|
-
create: async (
|
|
903
|
-
await callTool("seastudio-
|
|
913
|
+
tab: {
|
|
914
|
+
create: async (webviewRuntimeId = SINGLETON_WEBVIEW_RUNTIME_ID, url, ownerInstanceId) => parseToolResult(
|
|
915
|
+
await callTool("seastudio-webview_runtime_tab", {
|
|
904
916
|
action: "create",
|
|
905
|
-
|
|
917
|
+
webviewRuntimeId,
|
|
906
918
|
...url ? { url } : {},
|
|
907
919
|
...ownerInstanceId ? { ownerInstanceId } : {}
|
|
908
920
|
})
|
|
909
921
|
),
|
|
910
|
-
close: async (
|
|
911
|
-
await callTool("seastudio-
|
|
922
|
+
close: async (webviewRuntimeId, tabId) => parseToolResult(
|
|
923
|
+
await callTool("seastudio-webview_runtime_tab", { action: "close", webviewRuntimeId, tabId })
|
|
912
924
|
),
|
|
913
|
-
activate: async (
|
|
914
|
-
await callTool("seastudio-
|
|
925
|
+
activate: async (webviewRuntimeId, tabId) => parseToolResult(
|
|
926
|
+
await callTool("seastudio-webview_runtime_tab", { action: "activate", webviewRuntimeId, tabId })
|
|
915
927
|
),
|
|
916
|
-
navigate: async (
|
|
917
|
-
await callTool("seastudio-
|
|
928
|
+
navigate: async (webviewRuntimeId, tabId, url) => parseToolResult(
|
|
929
|
+
await callTool("seastudio-webview_runtime_tab", { action: "navigate", webviewRuntimeId, tabId, url })
|
|
918
930
|
),
|
|
919
|
-
goBack: async (
|
|
920
|
-
goForward: async (
|
|
921
|
-
reload: async (
|
|
922
|
-
stop: async (
|
|
931
|
+
goBack: async (webviewRuntimeId, tabId) => parseToolResult(await callTool("seastudio-webview_runtime_tab", { action: "goBack", webviewRuntimeId, tabId })),
|
|
932
|
+
goForward: async (webviewRuntimeId, tabId) => parseToolResult(await callTool("seastudio-webview_runtime_tab", { action: "goForward", webviewRuntimeId, tabId })),
|
|
933
|
+
reload: async (webviewRuntimeId, tabId) => parseToolResult(await callTool("seastudio-webview_runtime_tab", { action: "reload", webviewRuntimeId, tabId })),
|
|
934
|
+
stop: async (webviewRuntimeId, tabId) => parseToolResult(await callTool("seastudio-webview_runtime_tab", { action: "stop", webviewRuntimeId, tabId })),
|
|
923
935
|
getOrCreateForInstance: async (ownerInstanceId, url) => parseToolResult(
|
|
924
|
-
await callTool("seastudio-
|
|
936
|
+
await callTool("seastudio-webview_runtime_tab", {
|
|
925
937
|
action: "create",
|
|
926
|
-
|
|
938
|
+
webviewRuntimeId: SINGLETON_WEBVIEW_RUNTIME_ID,
|
|
927
939
|
ownerInstanceId,
|
|
928
940
|
...url ? { url } : {}
|
|
929
941
|
})
|
|
@@ -931,31 +943,17 @@ var seastudio = {
|
|
|
931
943
|
},
|
|
932
944
|
viewport: {
|
|
933
945
|
bind: async (rect, options = {}) => parseToolResult(
|
|
934
|
-
await callTool("seastudio-
|
|
946
|
+
await callTool("seastudio-webview_runtime_host", {
|
|
935
947
|
action: "bindViewport",
|
|
936
|
-
|
|
948
|
+
webviewRuntimeId: options.webviewRuntimeId ?? SINGLETON_WEBVIEW_RUNTIME_ID,
|
|
937
949
|
rect,
|
|
938
950
|
...options.ownerInstanceId ? { ownerInstanceId: options.ownerInstanceId } : {}
|
|
939
951
|
})
|
|
940
952
|
)
|
|
941
953
|
},
|
|
942
|
-
runtime: {
|
|
943
|
-
show: async (url) => parseToolResult(
|
|
944
|
-
await callTool("seastudio-browser_runtime_show", { url })
|
|
945
|
-
),
|
|
946
|
-
evaluate: async (browserRuntimeSessionId, tabId, script, timeoutMs) => parseToolResult(
|
|
947
|
-
await callTool("seastudio-browser_runtime", {
|
|
948
|
-
action: "evaluate",
|
|
949
|
-
browserRuntimeSessionId,
|
|
950
|
-
tabId,
|
|
951
|
-
script,
|
|
952
|
-
...timeoutMs ? { timeoutMs } : {}
|
|
953
|
-
})
|
|
954
|
-
)
|
|
955
|
-
},
|
|
956
954
|
certificate: {
|
|
957
|
-
respond: async (
|
|
958
|
-
await callTool("seastudio-
|
|
955
|
+
respond: async (webviewRuntimeId, requestId, allow) => parseToolResult(
|
|
956
|
+
await callTool("seastudio-webview_runtime_host", { action: "respondCertificate", webviewRuntimeId, requestId, allow })
|
|
959
957
|
)
|
|
960
958
|
}
|
|
961
959
|
}
|
|
@@ -1200,14 +1198,14 @@ var SeastudioNotifications = {
|
|
|
1200
1198
|
PROPOSAL_FEEDBACK: "seastudio:proposal-feedback",
|
|
1201
1199
|
/** 插件实例请求更新宿主 plugin tab 标题 */
|
|
1202
1200
|
PLUGIN_TAB_TITLE_CHANGED: "plugin:tab-title_changed",
|
|
1203
|
-
/**
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
|
|
1207
|
-
/**
|
|
1208
|
-
|
|
1209
|
-
/**
|
|
1210
|
-
|
|
1201
|
+
/** WebviewRuntime 状态变化 */
|
|
1202
|
+
WEBVIEW_RUNTIME_STATE_CHANGED: "webview-runtime:state_changed",
|
|
1203
|
+
/** WebviewRuntime 关闭 */
|
|
1204
|
+
WEBVIEW_RUNTIME_CLOSED: "webview-runtime:closed",
|
|
1205
|
+
/** WebviewRuntime 证书错误,需要客户端 UI 决策 */
|
|
1206
|
+
WEBVIEW_RUNTIME_CERTIFICATE_ERROR: "webview-runtime:certificate_error",
|
|
1207
|
+
/** WebviewRuntime 收到网页新标签请求 */
|
|
1208
|
+
WEBVIEW_RUNTIME_NEW_TAB_REQUESTED: "webview-runtime:new_tab_requested",
|
|
1211
1209
|
/**
|
|
1212
1210
|
* Agent 对话 session:新建。消息历史仍由 Agent 前端持有,宿主仅同步列表用于侧栏。
|
|
1213
1211
|
* 通常由 Agent 通过 notifications/publish 发出;其他订阅者(含 host-ui)可据此更新 UI。
|
|
@@ -1256,6 +1254,10 @@ var SeastudioNotifications = {
|
|
|
1256
1254
|
HOST_APP_VISIBILITY: "host:app_visibility",
|
|
1257
1255
|
/** Host MCP tools/list 发生变化(例如 Seaflow bridge 动态注册工具) */
|
|
1258
1256
|
RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed",
|
|
1257
|
+
/** Host 精确路由到插件实例的工具调用请求 */
|
|
1258
|
+
PLUGIN_TOOL_CALL: "plugin:tool_call",
|
|
1259
|
+
/** 插件实例返回给 Host 的工具调用结果 */
|
|
1260
|
+
PLUGIN_TOOL_RESULT: "plugin:tool_result",
|
|
1259
1261
|
/** 主程序用户登录态变化;不包含访问令牌 */
|
|
1260
1262
|
AUTH_SESSION_CHANGED: "auth:session_changed"
|
|
1261
1263
|
};
|
|
@@ -1272,8 +1274,8 @@ var allTools = [
|
|
|
1272
1274
|
...agentTabTools,
|
|
1273
1275
|
...projectTools,
|
|
1274
1276
|
...skillTools,
|
|
1275
|
-
...
|
|
1277
|
+
...webviewRuntimeTools
|
|
1276
1278
|
];
|
|
1277
1279
|
var tools = allTools;
|
|
1278
1280
|
|
|
1279
|
-
export {
|
|
1281
|
+
export { SINGLETON_WEBVIEW_RUNTIME_ID, SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools, webviewRuntimeTools };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCHTNN2X3_cjs = require('./chunk-CHTNN2X3.cjs');
|
|
4
|
+
var chunk77OAWBLL_cjs = require('./chunk-77OAWBLL.cjs');
|
|
5
5
|
|
|
6
6
|
// src/mcp/index.ts
|
|
7
7
|
async function loadPlugin(pluginName) {
|
|
@@ -11,11 +11,11 @@ async function loadPlugin(pluginName) {
|
|
|
11
11
|
throw new Error(`Unknown plugin: ${pluginName}. \u63D2\u4EF6 MCP \u4E0D\u518D\u901A\u8FC7 SDK \u9759\u6001\u5BFC\u5165\u3002`);
|
|
12
12
|
}
|
|
13
13
|
var MCP_PACKAGES = [
|
|
14
|
-
{ id: "seastudio", name: "SeaStudio", description: "\u6587\u4EF6/Shell/Git/\u63D2\u4EF6\u57FA\u7840\u80FD\u529B", tools:
|
|
14
|
+
{ id: "seastudio", name: "SeaStudio", description: "\u6587\u4EF6/Shell/Git/\u63D2\u4EF6\u57FA\u7840\u80FD\u529B", tools: chunkCHTNN2X3_cjs.allTools }
|
|
15
15
|
];
|
|
16
16
|
function mcpToolToOpenAI(tool) {
|
|
17
|
-
const normalizedTool =
|
|
18
|
-
const outputSchema = normalizedTool.outputSchema ?
|
|
17
|
+
const normalizedTool = chunk77OAWBLL_cjs.normalizeMCPTool(tool);
|
|
18
|
+
const outputSchema = normalizedTool.outputSchema ? chunk77OAWBLL_cjs.normalizeMCPToolObjectSchema(normalizedTool.outputSchema) : void 0;
|
|
19
19
|
return {
|
|
20
20
|
type: "function",
|
|
21
21
|
...normalizedTool.annotations ? { annotations: { ...normalizedTool.annotations } } : {},
|
|
@@ -23,13 +23,13 @@ function mcpToolToOpenAI(tool) {
|
|
|
23
23
|
function: {
|
|
24
24
|
name: normalizedTool.name,
|
|
25
25
|
description: normalizedTool.description,
|
|
26
|
-
parameters:
|
|
26
|
+
parameters: chunk77OAWBLL_cjs.normalizeMCPToolObjectSchema(normalizedTool.inputSchema),
|
|
27
27
|
...outputSchema ? { outputSchema } : {}
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function listAllTools() {
|
|
32
|
-
return [...
|
|
32
|
+
return [...chunkCHTNN2X3_cjs.allTools];
|
|
33
33
|
}
|
|
34
34
|
function toPackageName(source) {
|
|
35
35
|
if (source === "seastudio") {
|
|
@@ -54,7 +54,7 @@ function normalizeAvailableTool(raw) {
|
|
|
54
54
|
if (typeof tool.description !== "string") {
|
|
55
55
|
tool.description = tool.description == null ? "" : String(tool.description);
|
|
56
56
|
}
|
|
57
|
-
const normalized =
|
|
57
|
+
const normalized = chunk77OAWBLL_cjs.normalizeMCPTool(tool);
|
|
58
58
|
const source = typeof tool.source === "string" && tool.source.trim() ? tool.source.trim() : "seastudio";
|
|
59
59
|
return {
|
|
60
60
|
...normalized,
|
|
@@ -62,13 +62,13 @@ function normalizeAvailableTool(raw) {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
var MCP_TOOL_PACKAGE_INDEX = new Map(
|
|
65
|
-
|
|
65
|
+
chunkCHTNN2X3_cjs.allTools.map((tool) => [tool.name, "seastudio"])
|
|
66
66
|
);
|
|
67
67
|
function getMCPToolPackageIndex() {
|
|
68
68
|
return new Map(MCP_TOOL_PACKAGE_INDEX);
|
|
69
69
|
}
|
|
70
70
|
async function listAvailableTools() {
|
|
71
|
-
const result = await
|
|
71
|
+
const result = await chunk77OAWBLL_cjs.getDefaultClient().request("tools/list");
|
|
72
72
|
const rawTools = Array.isArray(result?.tools) ? result.tools : [];
|
|
73
73
|
return rawTools.map(normalizeAvailableTool).filter((tool) => Boolean(tool));
|
|
74
74
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSIAVXTH5_cjs = require('./chunk-SIAVXTH5.cjs');
|
|
4
4
|
var chunk2L26XL3M_cjs = require('./chunk-2L26XL3M.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkCHTNN2X3_cjs = require('./chunk-CHTNN2X3.cjs');
|
|
6
|
+
var chunk77OAWBLL_cjs = require('./chunk-77OAWBLL.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 chunkSIAVXTH5_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkSIAVXTH5_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkSIAVXTH5_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkSIAVXTH5_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkSIAVXTH5_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkSIAVXTH5_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkSIAVXTH5_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkSIAVXTH5_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkSIAVXTH5_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkSIAVXTH5_cjs.mcpToolToOpenAI; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "DialogBody", {
|
|
51
51
|
enumerable: true,
|
|
@@ -101,129 +101,129 @@ Object.defineProperty(exports, "showHostContextMenu", {
|
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkCHTNN2X3_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkCHTNN2X3_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkCHTNN2X3_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkCHTNN2X3_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkCHTNN2X3_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkCHTNN2X3_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkCHTNN2X3_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seastudio", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkCHTNN2X3_cjs.seastudio; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkCHTNN2X3_cjs.allTools; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkCHTNN2X3_cjs.tools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "shellTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkCHTNN2X3_cjs.shellTools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "MCPClient", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk77OAWBLL_cjs.MCPClient; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "MCPServer", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk77OAWBLL_cjs.MCPServer; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "PostMessageTransport", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk77OAWBLL_cjs.PostMessageTransport; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "callHostTool", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk77OAWBLL_cjs.callHostTool; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "callHostToolText", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk77OAWBLL_cjs.callHostToolText; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "createMCPClient", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk77OAWBLL_cjs.createMCPClient; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "createMCPServer", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk77OAWBLL_cjs.createMCPServer; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "createNotification", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk77OAWBLL_cjs.createNotification; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "createRequest", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunk77OAWBLL_cjs.createRequest; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "createResponse", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk77OAWBLL_cjs.createResponse; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "getDefaultClient", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk77OAWBLL_cjs.getDefaultClient; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "getDefaultServer", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk77OAWBLL_cjs.getDefaultServer; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "getDefaultTransport", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk77OAWBLL_cjs.getDefaultTransport; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "isMCPMessage", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk77OAWBLL_cjs.isMCPMessage; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "isNotification", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunk77OAWBLL_cjs.isNotification; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "normalizeMCPTool", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk77OAWBLL_cjs.normalizeMCPTool; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "normalizeMCPToolInputSchema", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk77OAWBLL_cjs.normalizeMCPToolInputSchema; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "normalizeMCPToolObjectSchema", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunk77OAWBLL_cjs.normalizeMCPToolObjectSchema; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "setDefaultClient", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunk77OAWBLL_cjs.setDefaultClient; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "setDefaultTransport", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunk77OAWBLL_cjs.setDefaultTransport; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "startDefaultServer", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunk77OAWBLL_cjs.startDefaultServer; }
|
|
229
229
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DialogBody, DialogBodyProps, DialogButton, DialogButtonProps, DialogContainer, DialogContainerProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, HostContextMenuItem, HostContextMenuResult, MenuContainer, MenuContainerProps, MenuEmpty, MenuEmptyProps, MenuItem, MenuItemProps, MenuSeparator, MenuSeparatorProps, Tab, TabProps, cn, showHostContextMenu } from './ui/index.cjs';
|
|
2
2
|
export { MCPAvailableTool, MCPPackageId, MCPPackageInfo, MCPToolCapabilityMetadata, MCPToolCapabilityRisk, MCP_PACKAGES, OpenAITool, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from './mcp/index.cjs';
|
|
3
3
|
export { AuthSessionChangedParams, AuthSessionStatus, AuthSessionUser, FileKeepRequestedParams, FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, GitBranchInfo, GitBranchesResult, GitChangeKind, GitChangedParams, GitCommitRef, GitCommitRefType, GitFileChange, GitLineChange, GitLineChangeKind, GitLogCommit, GitLogResult, GitOpenDiffRequestedParams, GitStatusResult, GitSummary, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './mcp/seastudio/index.cjs';
|
|
4
|
-
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, g as MCPTool, h as MCPToolAnnotations, i as MCPToolCallRequest, j as MCPToolInputSchema, k as MCPToolResult, N as NotificationHandler, P as PluginMCPManifest, l as PluginMCPModuleExports, m as PublishParams, S as SubscribeParams, n as createNotification, o as createRequest, p as createResponse, q as isMCPMessage, r as isNotification } from './types-
|
|
4
|
+
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, g as MCPTool, h as MCPToolAnnotations, i as MCPToolCallRequest, j as MCPToolInputSchema, k as MCPToolResult, N as NotificationHandler, P as PluginMCPManifest, l as PluginMCPModuleExports, m as PublishParams, S as SubscribeParams, n as createNotification, o as createRequest, p as createResponse, q as isMCPMessage, r as isNotification } from './types-S2uWCEaN.cjs';
|
|
5
5
|
export { MCPClient, MCPClientOptions, MCPRequestOptions, MCPServer, MCPToolCallOptions, MCPToolHandler, MCPTransport, NormalizeMCPToolInputSchemaOptions, PostMessageTransport, PostMessageTransportOptions, callHostTool, callHostToolText, createMCPClient, createMCPServer, getDefaultClient, getDefaultServer, getDefaultTransport, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './mcp/core/index.cjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'clsx';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DialogBody, DialogBodyProps, DialogButton, DialogButtonProps, DialogContainer, DialogContainerProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, HostContextMenuItem, HostContextMenuResult, MenuContainer, MenuContainerProps, MenuEmpty, MenuEmptyProps, MenuItem, MenuItemProps, MenuSeparator, MenuSeparatorProps, Tab, TabProps, cn, showHostContextMenu } from './ui/index.js';
|
|
2
2
|
export { MCPAvailableTool, MCPPackageId, MCPPackageInfo, MCPToolCapabilityMetadata, MCPToolCapabilityRisk, MCP_PACKAGES, OpenAITool, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from './mcp/index.js';
|
|
3
3
|
export { AuthSessionChangedParams, AuthSessionStatus, AuthSessionUser, FileKeepRequestedParams, FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, GitBranchInfo, GitBranchesResult, GitChangeKind, GitChangedParams, GitCommitRef, GitCommitRefType, GitFileChange, GitLineChange, GitLineChangeKind, GitLogCommit, GitLogResult, GitOpenDiffRequestedParams, GitStatusResult, GitSummary, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './mcp/seastudio/index.js';
|
|
4
|
-
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, g as MCPTool, h as MCPToolAnnotations, i as MCPToolCallRequest, j as MCPToolInputSchema, k as MCPToolResult, N as NotificationHandler, P as PluginMCPManifest, l as PluginMCPModuleExports, m as PublishParams, S as SubscribeParams, n as createNotification, o as createRequest, p as createResponse, q as isMCPMessage, r as isNotification } from './types-
|
|
4
|
+
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, g as MCPTool, h as MCPToolAnnotations, i as MCPToolCallRequest, j as MCPToolInputSchema, k as MCPToolResult, N as NotificationHandler, P as PluginMCPManifest, l as PluginMCPModuleExports, m as PublishParams, S as SubscribeParams, n as createNotification, o as createRequest, p as createResponse, q as isMCPMessage, r as isNotification } from './types-S2uWCEaN.js';
|
|
5
5
|
export { MCPClient, MCPClientOptions, MCPRequestOptions, MCPServer, MCPToolCallOptions, MCPToolHandler, MCPTransport, NormalizeMCPToolInputSchemaOptions, PostMessageTransport, PostMessageTransportOptions, callHostTool, callHostToolText, createMCPClient, createMCPServer, getDefaultClient, getDefaultServer, getDefaultTransport, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './mcp/core/index.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'clsx';
|
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-ELOYCCXA.js';
|
|
2
2
|
export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from './chunk-BIOX6KGR.js';
|
|
3
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-
|
|
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-
|
|
3
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-PN3WUVKZ.js';
|
|
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-6XG5DRQW.js';
|