@seastudio/sdk 4.0.14 → 4.0.16
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 +49 -92
- package/dist/{chunk-ND7PCVR6.cjs → chunk-MEPE7FIL.cjs} +33 -7
- package/dist/{chunk-NY4Z7N35.cjs → chunk-NVMAM5WN.cjs} +4 -4
- package/dist/{chunk-JFJ3ODFJ.js → chunk-QS3WNDIH.js} +33 -7
- package/dist/{chunk-DUEKKXPG.js → chunk-ZJQY4YOB.js} +1 -1
- package/dist/index.cjs +24 -24
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/mcp/index.cjs +24 -24
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/seastudio/index.cjs +36 -36
- package/dist/mcp/seastudio/index.d.cts +66 -4
- package/dist/mcp/seastudio/index.d.ts +66 -4
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +10 -8
package/README.md
CHANGED
|
@@ -1,130 +1,87 @@
|
|
|
1
1
|
# @seastudio/sdk
|
|
2
2
|
|
|
3
|
-
SeaStudio SDK
|
|
3
|
+
SeaStudio public SDK for plugin UI components, MCP contracts, and host notifications.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
# 本地开发(在插件前端目录下)
|
|
9
8
|
pnpm add @seastudio/sdk
|
|
10
9
|
```
|
|
11
10
|
|
|
12
|
-
##
|
|
11
|
+
## Public Entry Points
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
│ │ └── index.ts
|
|
23
|
-
│ └── mcp/ # MCP 信息交换中心
|
|
24
|
-
│ ├── core/ # MCP 基础设施
|
|
25
|
-
│ ├── seastudio/ # 主程序 Tools
|
|
26
|
-
│ ├── plugin-editor/ # 编辑器插件 Tools
|
|
27
|
-
│ ├── plugin-preview/ # 预览插件 Tools
|
|
28
|
-
│ └── index.ts
|
|
29
|
-
└── dist/ # 构建产物
|
|
30
|
-
```
|
|
13
|
+
| Path | Purpose |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `@seastudio/sdk` | UI and MCP aggregate exports |
|
|
16
|
+
| `@seastudio/sdk/ui` | Shared UI components and helpers |
|
|
17
|
+
| `@seastudio/sdk/mcp` | MCP core plus SeaStudio public contracts |
|
|
18
|
+
| `@seastudio/sdk/mcp/core` | JSON-RPC/MCP primitives |
|
|
19
|
+
| `@seastudio/sdk/mcp/seastudio` | SeaStudio host tools, notifications, and DTO types |
|
|
20
|
+
| `@seastudio/sdk/styles/cosmos.css` | Shared design-system CSS |
|
|
31
21
|
|
|
32
|
-
##
|
|
22
|
+
## Identity Notification Contract
|
|
33
23
|
|
|
34
|
-
|
|
35
|
-
|------|------|
|
|
36
|
-
| UI Components | Tab、Menu、Dialog 等通用组件 |
|
|
37
|
-
| MCP Core | JSON-RPC 2.0 传输层和客户端 |
|
|
38
|
-
| MCP Tools | 主程序和各插件的 MCP Tools 定义 |
|
|
24
|
+
External plugins can subscribe to host-owned identity state without receiving SeaArt tokens.
|
|
39
25
|
|
|
40
|
-
|
|
26
|
+
```ts
|
|
27
|
+
import { SeastudioNotifications, type AuthSessionChangedParams } from '@seastudio/sdk/mcp';
|
|
41
28
|
|
|
42
|
-
|
|
29
|
+
client.subscribe([SeastudioNotifications.AUTH_SESSION_CHANGED]);
|
|
43
30
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
import '@seastudio/sdk/ui/cosmos.css';
|
|
31
|
+
server.onNotification(SeastudioNotifications.AUTH_SESSION_CHANGED, (params) => {
|
|
32
|
+
const { event, session } = params as AuthSessionChangedParams;
|
|
33
|
+
console.log(event, session.status, session.user?.id);
|
|
34
|
+
});
|
|
49
35
|
```
|
|
50
36
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```typescript
|
|
54
|
-
import { listAvailableTools, listAllTools, seastudio, editor, preview } from '@seastudio/sdk/mcp';
|
|
37
|
+
`AuthSessionChangedParams.session` contains only `status` and a minimal `user` DTO. Access tokens, SDK tokens, cookies, and provider credentials are never part of this public SDK contract.
|
|
55
38
|
|
|
56
|
-
|
|
57
|
-
const tools = listAvailableTools();
|
|
39
|
+
## MCP Tools
|
|
58
40
|
|
|
59
|
-
|
|
60
|
-
|
|
41
|
+
```ts
|
|
42
|
+
import { listAvailableTools, mcpToolToOpenAI } from '@seastudio/sdk/mcp';
|
|
61
43
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
await seastudio.file.write('/path/to/file', 'content');
|
|
65
|
-
await editor.openFile('/path/to/file');
|
|
66
|
-
await preview.get('/path/to/file');
|
|
44
|
+
const tools = await listAvailableTools();
|
|
45
|
+
const openAiTools = tools.map(mcpToolToOpenAI);
|
|
67
46
|
```
|
|
68
47
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### 指定插件实例调用 Tool
|
|
48
|
+
SeaStudio host tools are also available from the static contract:
|
|
72
49
|
|
|
73
|
-
```
|
|
74
|
-
import {
|
|
50
|
+
```ts
|
|
51
|
+
import { seastudio } from '@seastudio/sdk/mcp/seastudio';
|
|
75
52
|
|
|
76
|
-
await
|
|
77
|
-
|
|
78
|
-
{ path: '/tmp/demo.ts' },
|
|
79
|
-
{ pluginInstanceId: 'plugin-123' }
|
|
80
|
-
);
|
|
53
|
+
await seastudio.file.read('/path/to/file');
|
|
54
|
+
await seastudio.file.write('/path/to/file', 'content');
|
|
81
55
|
```
|
|
82
56
|
|
|
83
|
-
|
|
57
|
+
## UI Components
|
|
84
58
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
import { loadPlugin } from '@seastudio/sdk/mcp';
|
|
89
|
-
|
|
90
|
-
// 动态加载插件模块
|
|
91
|
-
const editorModule = await loadPlugin('plugin-editor');
|
|
59
|
+
```ts
|
|
60
|
+
import { Tab, MenuContainer, MenuItem, DialogOverlay, cn } from '@seastudio/sdk/ui';
|
|
61
|
+
import '@seastudio/sdk/styles/cosmos.css';
|
|
92
62
|
```
|
|
93
63
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
| 路径 | 说明 |
|
|
97
|
-
|------|------|
|
|
98
|
-
| `@seastudio/sdk` | 完整导出(UI + MCP) |
|
|
99
|
-
| `@seastudio/sdk/ui` | UI 组件 |
|
|
100
|
-
| `@seastudio/sdk/mcp` | MCP 完整模块 |
|
|
101
|
-
| `@seastudio/sdk/mcp/core` | MCP 基础设施 |
|
|
102
|
-
| `@seastudio/sdk/mcp/seastudio` | 主程序 Tools |
|
|
103
|
-
| `@seastudio/sdk/mcp/plugin-editor` | 编辑器插件 Tools |
|
|
104
|
-
| `@seastudio/sdk/mcp/plugin-preview` | 预览插件 Tools |
|
|
105
|
-
|
|
106
|
-
## 开发
|
|
64
|
+
## Development
|
|
107
65
|
|
|
108
66
|
```bash
|
|
109
|
-
|
|
67
|
+
pnpm install --frozen-lockfile
|
|
110
68
|
pnpm build
|
|
111
|
-
|
|
112
|
-
# 开发模式(监听变化)
|
|
113
|
-
pnpm dev
|
|
69
|
+
pnpm release:pack
|
|
114
70
|
```
|
|
115
71
|
|
|
116
|
-
|
|
72
|
+
`pnpm release:pack` builds the SDK, creates the exact npm tarball, and verifies the public contract exports before a release can publish.
|
|
73
|
+
|
|
74
|
+
## Release Policy
|
|
117
75
|
|
|
118
|
-
|
|
76
|
+
`@seastudio/sdk` is the public contract consumed by external plugins. New plugin-facing events, DTOs, tools, or exported types require a semver version bump and a release through GitLab CI.
|
|
119
77
|
|
|
120
|
-
|
|
121
|
-
- 打包项目:在 SeaStudio 主程序中选择项目目录后直接打包
|
|
122
|
-
- 发布项目:在 SeaStudio 主程序的市场/开发者工具界面完成
|
|
78
|
+
Releases are made from protected tags named `sdk-v<version>`, for example:
|
|
123
79
|
|
|
124
|
-
|
|
80
|
+
```bash
|
|
81
|
+
git tag -a sdk-v4.0.16 -m "Release @seastudio/sdk 4.0.16"
|
|
82
|
+
git push origin sdk-v4.0.16
|
|
83
|
+
```
|
|
125
84
|
|
|
126
|
-
|
|
85
|
+
The `publish:npm` GitLab job is manual and only appears for protected `sdk-v*` tags. It publishes the verified tarball with a protected, masked `NPM_TOKEN` CI variable. The token must be an npm granular access token scoped to `@seastudio/sdk` publish access and configured to bypass 2FA for CI publishing.
|
|
127
86
|
|
|
128
|
-
|
|
129
|
-
- 优先使用 `listAvailableTools()`、`listAllTools()`、`mcpToolToOpenAI()`、`getMCPPackageIdForTool()` 这类 raw MCP 基础能力。
|
|
130
|
-
- 如需额外的工具投影或执行适配,请在各自仓库内自行维护,不要继续把上层语义收敛进 SDK。
|
|
87
|
+
Do not publish this package from a personal shell as the normal release path.
|
|
@@ -381,14 +381,22 @@ var editorTools = [
|
|
|
381
381
|
var gitTools = [
|
|
382
382
|
annotateTool({
|
|
383
383
|
name: "seastudio-git_read",
|
|
384
|
-
description: "Read git repository state for the current project. Actions: status, diff, show, lineChanges, probe.",
|
|
384
|
+
description: "Read git repository state for the current project. Actions: status, diff, show, lineChanges, probe, branches, log.",
|
|
385
385
|
inputSchema: {
|
|
386
386
|
type: "object",
|
|
387
387
|
properties: {
|
|
388
388
|
action: {
|
|
389
389
|
type: "string",
|
|
390
|
-
enum: ["status", "diff", "show", "lineChanges", "probe"],
|
|
391
|
-
description: "status: porcelain file list; diff: unified diff text; show: file at ref; lineChanges: editor gutter ranges; probe: runtime availability."
|
|
390
|
+
enum: ["status", "diff", "show", "lineChanges", "probe", "branches", "log"],
|
|
391
|
+
description: "status: porcelain file list; diff: unified diff text; show: file at ref; lineChanges: editor gutter ranges; probe: runtime availability; branches: local/remote branches with ahead/behind; log: commit history for graph view."
|
|
392
|
+
},
|
|
393
|
+
maxCount: {
|
|
394
|
+
type: "number",
|
|
395
|
+
description: "Max commits to return for log (default 50)."
|
|
396
|
+
},
|
|
397
|
+
skip: {
|
|
398
|
+
type: "number",
|
|
399
|
+
description: "Number of commits to skip for log pagination (default 0)."
|
|
392
400
|
},
|
|
393
401
|
path: { type: "string", description: "Repo-relative file path (required for diff/show/lineChanges)." },
|
|
394
402
|
scope: {
|
|
@@ -412,13 +420,27 @@ var gitTools = [
|
|
|
412
420
|
}),
|
|
413
421
|
annotateTool({
|
|
414
422
|
name: "seastudio-git_mutate",
|
|
415
|
-
description: "Mutate git state: init, stage, unstage, discard, commit, stageAll, unstageAll, discardAll.",
|
|
423
|
+
description: "Mutate git state: init, stage, unstage, discard, commit, stageAll, unstageAll, discardAll, checkout, createBranch, fetch, pull, push.",
|
|
416
424
|
inputSchema: {
|
|
417
425
|
type: "object",
|
|
418
426
|
properties: {
|
|
419
427
|
action: {
|
|
420
428
|
type: "string",
|
|
421
|
-
enum: [
|
|
429
|
+
enum: [
|
|
430
|
+
"init",
|
|
431
|
+
"stage",
|
|
432
|
+
"unstage",
|
|
433
|
+
"discard",
|
|
434
|
+
"commit",
|
|
435
|
+
"stageAll",
|
|
436
|
+
"unstageAll",
|
|
437
|
+
"discardAll",
|
|
438
|
+
"checkout",
|
|
439
|
+
"createBranch",
|
|
440
|
+
"fetch",
|
|
441
|
+
"pull",
|
|
442
|
+
"push"
|
|
443
|
+
]
|
|
422
444
|
},
|
|
423
445
|
path: { type: "string", description: "Repo-relative path for stage/unstage/discard." },
|
|
424
446
|
paths: {
|
|
@@ -427,6 +449,8 @@ var gitTools = [
|
|
|
427
449
|
description: "Multiple paths for stage/unstage/discard."
|
|
428
450
|
},
|
|
429
451
|
message: { type: "string", description: "Commit message (required for commit)." },
|
|
452
|
+
branch: { type: "string", description: "Branch name for checkout/createBranch (remote-style names like origin/foo create a tracking branch on checkout)." },
|
|
453
|
+
remote: { type: "string", description: "Remote name for fetch/pull/push (default: upstream remote or origin)." },
|
|
430
454
|
rootId: { type: "string", description: "Filesystem root id (default workspace)." }
|
|
431
455
|
},
|
|
432
456
|
required: ["action"]
|
|
@@ -1249,7 +1273,7 @@ var SeastudioNotifications = {
|
|
|
1249
1273
|
SESSION_DELETE_REQUESTED: "session:delete_requested",
|
|
1250
1274
|
/**
|
|
1251
1275
|
* Agent 请求宿主重命名某条对话会话(例如 Agent 标题栏右键菜单)。
|
|
1252
|
-
*
|
|
1276
|
+
* 无 title 时宿主打开与侧栏一致的重命名对话框;有 title 时直接应用。
|
|
1253
1277
|
*/
|
|
1254
1278
|
SESSION_RENAME_REQUESTED: "session:rename_requested",
|
|
1255
1279
|
/**
|
|
@@ -1262,7 +1286,9 @@ var SeastudioNotifications = {
|
|
|
1262
1286
|
*/
|
|
1263
1287
|
HOST_APP_VISIBILITY: "host:app_visibility",
|
|
1264
1288
|
/** Host MCP tools/list 发生变化(例如 Seaflow bridge 动态注册工具) */
|
|
1265
|
-
RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed"
|
|
1289
|
+
RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed",
|
|
1290
|
+
/** 主程序用户登录态变化;不包含访问令牌 */
|
|
1291
|
+
AUTH_SESSION_CHANGED: "auth:session_changed"
|
|
1266
1292
|
};
|
|
1267
1293
|
|
|
1268
1294
|
// src/mcp/seastudio/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMEPE7FIL_cjs = require('./chunk-MEPE7FIL.cjs');
|
|
4
4
|
var chunk3I7UM66P_cjs = require('./chunk-3I7UM66P.cjs');
|
|
5
5
|
|
|
6
6
|
// src/mcp/index.ts
|
|
@@ -11,7 +11,7 @@ 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/AIGC \u57FA\u7840\u80FD\u529B", tools:
|
|
14
|
+
{ id: "seastudio", name: "SeaStudio", description: "\u6587\u4EF6/Shell/AIGC \u57FA\u7840\u80FD\u529B", tools: chunkMEPE7FIL_cjs.allTools }
|
|
15
15
|
];
|
|
16
16
|
function mcpToolToOpenAI(tool) {
|
|
17
17
|
const normalizedTool = chunk3I7UM66P_cjs.normalizeMCPTool(tool);
|
|
@@ -29,7 +29,7 @@ function mcpToolToOpenAI(tool) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function listAllTools() {
|
|
32
|
-
return [...
|
|
32
|
+
return [...chunkMEPE7FIL_cjs.allTools];
|
|
33
33
|
}
|
|
34
34
|
function toPackageName(source) {
|
|
35
35
|
if (source === "seastudio") {
|
|
@@ -62,7 +62,7 @@ function normalizeAvailableTool(raw) {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
var MCP_TOOL_PACKAGE_INDEX = new Map(
|
|
65
|
-
|
|
65
|
+
chunkMEPE7FIL_cjs.allTools.map((tool) => [tool.name, "seastudio"])
|
|
66
66
|
);
|
|
67
67
|
function getMCPToolPackageIndex() {
|
|
68
68
|
return new Map(MCP_TOOL_PACKAGE_INDEX);
|
|
@@ -379,14 +379,22 @@ var editorTools = [
|
|
|
379
379
|
var gitTools = [
|
|
380
380
|
annotateTool({
|
|
381
381
|
name: "seastudio-git_read",
|
|
382
|
-
description: "Read git repository state for the current project. Actions: status, diff, show, lineChanges, probe.",
|
|
382
|
+
description: "Read git repository state for the current project. Actions: status, diff, show, lineChanges, probe, branches, log.",
|
|
383
383
|
inputSchema: {
|
|
384
384
|
type: "object",
|
|
385
385
|
properties: {
|
|
386
386
|
action: {
|
|
387
387
|
type: "string",
|
|
388
|
-
enum: ["status", "diff", "show", "lineChanges", "probe"],
|
|
389
|
-
description: "status: porcelain file list; diff: unified diff text; show: file at ref; lineChanges: editor gutter ranges; probe: runtime availability."
|
|
388
|
+
enum: ["status", "diff", "show", "lineChanges", "probe", "branches", "log"],
|
|
389
|
+
description: "status: porcelain file list; diff: unified diff text; show: file at ref; lineChanges: editor gutter ranges; probe: runtime availability; branches: local/remote branches with ahead/behind; log: commit history for graph view."
|
|
390
|
+
},
|
|
391
|
+
maxCount: {
|
|
392
|
+
type: "number",
|
|
393
|
+
description: "Max commits to return for log (default 50)."
|
|
394
|
+
},
|
|
395
|
+
skip: {
|
|
396
|
+
type: "number",
|
|
397
|
+
description: "Number of commits to skip for log pagination (default 0)."
|
|
390
398
|
},
|
|
391
399
|
path: { type: "string", description: "Repo-relative file path (required for diff/show/lineChanges)." },
|
|
392
400
|
scope: {
|
|
@@ -410,13 +418,27 @@ var gitTools = [
|
|
|
410
418
|
}),
|
|
411
419
|
annotateTool({
|
|
412
420
|
name: "seastudio-git_mutate",
|
|
413
|
-
description: "Mutate git state: init, stage, unstage, discard, commit, stageAll, unstageAll, discardAll.",
|
|
421
|
+
description: "Mutate git state: init, stage, unstage, discard, commit, stageAll, unstageAll, discardAll, checkout, createBranch, fetch, pull, push.",
|
|
414
422
|
inputSchema: {
|
|
415
423
|
type: "object",
|
|
416
424
|
properties: {
|
|
417
425
|
action: {
|
|
418
426
|
type: "string",
|
|
419
|
-
enum: [
|
|
427
|
+
enum: [
|
|
428
|
+
"init",
|
|
429
|
+
"stage",
|
|
430
|
+
"unstage",
|
|
431
|
+
"discard",
|
|
432
|
+
"commit",
|
|
433
|
+
"stageAll",
|
|
434
|
+
"unstageAll",
|
|
435
|
+
"discardAll",
|
|
436
|
+
"checkout",
|
|
437
|
+
"createBranch",
|
|
438
|
+
"fetch",
|
|
439
|
+
"pull",
|
|
440
|
+
"push"
|
|
441
|
+
]
|
|
420
442
|
},
|
|
421
443
|
path: { type: "string", description: "Repo-relative path for stage/unstage/discard." },
|
|
422
444
|
paths: {
|
|
@@ -425,6 +447,8 @@ var gitTools = [
|
|
|
425
447
|
description: "Multiple paths for stage/unstage/discard."
|
|
426
448
|
},
|
|
427
449
|
message: { type: "string", description: "Commit message (required for commit)." },
|
|
450
|
+
branch: { type: "string", description: "Branch name for checkout/createBranch (remote-style names like origin/foo create a tracking branch on checkout)." },
|
|
451
|
+
remote: { type: "string", description: "Remote name for fetch/pull/push (default: upstream remote or origin)." },
|
|
428
452
|
rootId: { type: "string", description: "Filesystem root id (default workspace)." }
|
|
429
453
|
},
|
|
430
454
|
required: ["action"]
|
|
@@ -1247,7 +1271,7 @@ var SeastudioNotifications = {
|
|
|
1247
1271
|
SESSION_DELETE_REQUESTED: "session:delete_requested",
|
|
1248
1272
|
/**
|
|
1249
1273
|
* Agent 请求宿主重命名某条对话会话(例如 Agent 标题栏右键菜单)。
|
|
1250
|
-
*
|
|
1274
|
+
* 无 title 时宿主打开与侧栏一致的重命名对话框;有 title 时直接应用。
|
|
1251
1275
|
*/
|
|
1252
1276
|
SESSION_RENAME_REQUESTED: "session:rename_requested",
|
|
1253
1277
|
/**
|
|
@@ -1260,7 +1284,9 @@ var SeastudioNotifications = {
|
|
|
1260
1284
|
*/
|
|
1261
1285
|
HOST_APP_VISIBILITY: "host:app_visibility",
|
|
1262
1286
|
/** Host MCP tools/list 发生变化(例如 Seaflow bridge 动态注册工具) */
|
|
1263
|
-
RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed"
|
|
1287
|
+
RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed",
|
|
1288
|
+
/** 主程序用户登录态变化;不包含访问令牌 */
|
|
1289
|
+
AUTH_SESSION_CHANGED: "auth:session_changed"
|
|
1264
1290
|
};
|
|
1265
1291
|
|
|
1266
1292
|
// src/mcp/seastudio/index.ts
|
package/dist/index.cjs
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNVMAM5WN_cjs = require('./chunk-NVMAM5WN.cjs');
|
|
4
4
|
var chunk2L26XL3M_cjs = require('./chunk-2L26XL3M.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkMEPE7FIL_cjs = require('./chunk-MEPE7FIL.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 chunkNVMAM5WN_cjs.MCP_PACKAGES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkNVMAM5WN_cjs.getMCPPackageIdForTool; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkNVMAM5WN_cjs.getMCPPackages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkNVMAM5WN_cjs.getMCPToolPackageIndex; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkNVMAM5WN_cjs.getToolsForLLM; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "listAllTools", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkNVMAM5WN_cjs.listAllTools; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkNVMAM5WN_cjs.listAvailableTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkNVMAM5WN_cjs.listAvailableToolsForLLM; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "loadPlugin", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkNVMAM5WN_cjs.loadPlugin; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkNVMAM5WN_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 chunkMEPE7FIL_cjs.SeastudioNotifications; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkMEPE7FIL_cjs.SeastudioRequests; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkMEPE7FIL_cjs.agentManagementTools; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "agentTabTools", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkMEPE7FIL_cjs.agentTabTools; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "fileTools", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkMEPE7FIL_cjs.fileTools; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkMEPE7FIL_cjs.pluginManagementTools; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkMEPE7FIL_cjs.pluginTabTools; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkMEPE7FIL_cjs.seaCloudTools; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "seastudio", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkMEPE7FIL_cjs.seastudio; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkMEPE7FIL_cjs.allTools; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "seastudioTools", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkMEPE7FIL_cjs.tools; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "shellTools", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkMEPE7FIL_cjs.shellTools; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "MCPClient", {
|
|
151
151
|
enumerable: true,
|
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
|
+
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, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './mcp/seastudio/index.cjs';
|
|
3
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-D7xY0bt6.cjs';
|
|
4
|
-
export { FileKeepRequestedParams, FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, GitChangeKind, GitChangedParams, GitFileChange, GitLineChange, GitLineChangeKind, GitOpenDiffRequestedParams, GitStatusResult, GitSummary, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './mcp/seastudio/index.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
|
+
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, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './mcp/seastudio/index.js';
|
|
3
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-D7xY0bt6.js';
|
|
4
|
-
export { FileKeepRequestedParams, FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, GitChangeKind, GitChangedParams, GitFileChange, GitLineChange, GitLineChangeKind, GitOpenDiffRequestedParams, GitStatusResult, GitSummary, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './mcp/seastudio/index.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-ZJQY4YOB.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, 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-QS3WNDIH.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 chunkNVMAM5WN_cjs = require('../chunk-NVMAM5WN.cjs');
|
|
4
|
+
var chunkMEPE7FIL_cjs = require('../chunk-MEPE7FIL.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 chunkNVMAM5WN_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkNVMAM5WN_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkNVMAM5WN_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkNVMAM5WN_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkNVMAM5WN_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkNVMAM5WN_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkNVMAM5WN_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkNVMAM5WN_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkNVMAM5WN_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkNVMAM5WN_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkMEPE7FIL_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkMEPE7FIL_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkMEPE7FIL_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkMEPE7FIL_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkMEPE7FIL_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkMEPE7FIL_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkMEPE7FIL_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkMEPE7FIL_cjs.seaCloudTools; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudio", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkMEPE7FIL_cjs.seastudio; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkMEPE7FIL_cjs.allTools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "seastudioTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkMEPE7FIL_cjs.tools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "shellTools", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkMEPE7FIL_cjs.shellTools; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "MCPClient", {
|
|
98
98
|
enumerable: true,
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-D7xY0bt6.cjs';
|
|
2
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, 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-D7xY0bt6.cjs';
|
|
3
3
|
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 './core/index.cjs';
|
|
4
|
-
export { FileKeepRequestedParams, FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, GitChangeKind, GitChangedParams, GitFileChange, GitLineChange, GitLineChangeKind, GitOpenDiffRequestedParams, GitStatusResult, GitSummary, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.cjs';
|
|
4
|
+
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, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* MCP Module Entry
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-D7xY0bt6.js';
|
|
2
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, 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-D7xY0bt6.js';
|
|
3
3
|
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 './core/index.js';
|
|
4
|
-
export { FileKeepRequestedParams, FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, GitChangeKind, GitChangedParams, GitFileChange, GitLineChange, GitLineChangeKind, GitOpenDiffRequestedParams, GitStatusResult, GitSummary, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.js';
|
|
4
|
+
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, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* MCP Module Entry
|
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-ZJQY4YOB.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-QS3WNDIH.js';
|
|
3
3
|
export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from '../chunk-TJ3CGHWJ.js';
|
|
@@ -1,147 +1,147 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMEPE7FIL_cjs = require('../../chunk-MEPE7FIL.cjs');
|
|
4
4
|
require('../../chunk-3I7UM66P.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "SINGLETON_BROWSER_SESSION_ID", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkMEPE7FIL_cjs.SINGLETON_BROWSER_SESSION_ID; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkMEPE7FIL_cjs.SeastudioNotifications; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkMEPE7FIL_cjs.SeastudioRequests; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkMEPE7FIL_cjs.agentManagementTools; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "agentTabTools", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkMEPE7FIL_cjs.agentTabTools; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "allTools", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkMEPE7FIL_cjs.allTools; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "annotateTool", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkMEPE7FIL_cjs.annotateTool; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "batchFlattenCopyEvidenceOutputSchema", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkMEPE7FIL_cjs.batchFlattenCopyEvidenceOutputSchema; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "browserRuntimeTools", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkMEPE7FIL_cjs.browserRuntimeTools; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "callTool", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkMEPE7FIL_cjs.callTool; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "callToolText", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkMEPE7FIL_cjs.callToolText; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "dualPathEvidenceOutputSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkMEPE7FIL_cjs.dualPathEvidenceOutputSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "editorTools", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkMEPE7FIL_cjs.editorTools; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "fileDownloadEvidenceOutputSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkMEPE7FIL_cjs.fileDownloadEvidenceOutputSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "fileSaveAsEvidenceOutputSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkMEPE7FIL_cjs.fileSaveAsEvidenceOutputSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "fileTools", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkMEPE7FIL_cjs.fileTools; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "fileUrlEvidenceOutputSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkMEPE7FIL_cjs.fileUrlEvidenceOutputSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "gitTools", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkMEPE7FIL_cjs.gitTools; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkMEPE7FIL_cjs.pluginManagementTools; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkMEPE7FIL_cjs.pluginTabTools; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "projectTools", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkMEPE7FIL_cjs.projectTools; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "request", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkMEPE7FIL_cjs.request; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "rootedPathEvidenceOutputSchema", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkMEPE7FIL_cjs.rootedPathEvidenceOutputSchema; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "rootedWriteEvidenceOutputSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkMEPE7FIL_cjs.rootedWriteEvidenceOutputSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "runOneShotShellCommand", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkMEPE7FIL_cjs.runOneShotShellCommand; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "seaCloudTools", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkMEPE7FIL_cjs.seaCloudTools; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "seastudio", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkMEPE7FIL_cjs.seastudio; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "shellSessionCloseEvidenceOutputSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkMEPE7FIL_cjs.shellSessionCloseEvidenceOutputSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "shellSessionOpenEvidenceOutputSchema", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkMEPE7FIL_cjs.shellSessionOpenEvidenceOutputSchema; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "shellSessionRunEvidenceOutputSchema", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkMEPE7FIL_cjs.shellSessionRunEvidenceOutputSchema; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "shellSessionSignalEvidenceOutputSchema", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkMEPE7FIL_cjs.shellSessionSignalEvidenceOutputSchema; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "shellSessionSnapshotEvidenceOutputSchema", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkMEPE7FIL_cjs.shellSessionSnapshotEvidenceOutputSchema; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "shellTools", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkMEPE7FIL_cjs.shellTools; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "skillTools", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkMEPE7FIL_cjs.skillTools; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "tools", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkMEPE7FIL_cjs.tools; }
|
|
147
147
|
});
|
|
@@ -48,6 +48,50 @@ interface GitStatusResult {
|
|
|
48
48
|
isRepository: boolean;
|
|
49
49
|
ignoredPaths?: string[];
|
|
50
50
|
}
|
|
51
|
+
interface GitBranchInfo {
|
|
52
|
+
/** Short ref name, e.g. `main` or `origin/main` */
|
|
53
|
+
name: string;
|
|
54
|
+
isRemote: boolean;
|
|
55
|
+
/** Remote name for remote branches, e.g. `origin` */
|
|
56
|
+
remote?: string;
|
|
57
|
+
isCurrent: boolean;
|
|
58
|
+
/** Upstream short name for local branches, e.g. `origin/main` */
|
|
59
|
+
upstream?: string;
|
|
60
|
+
ahead: number;
|
|
61
|
+
behind: number;
|
|
62
|
+
tipHash: string;
|
|
63
|
+
tipSubject?: string;
|
|
64
|
+
/** ISO committer date of the branch tip */
|
|
65
|
+
tipDate?: string;
|
|
66
|
+
}
|
|
67
|
+
interface GitBranchesResult {
|
|
68
|
+
/** Current branch short name, null when detached HEAD */
|
|
69
|
+
current: string | null;
|
|
70
|
+
detachedHash?: string;
|
|
71
|
+
branches: GitBranchInfo[];
|
|
72
|
+
remotes: string[];
|
|
73
|
+
}
|
|
74
|
+
type GitCommitRefType = 'head' | 'localBranch' | 'remoteBranch' | 'tag';
|
|
75
|
+
interface GitCommitRef {
|
|
76
|
+
name: string;
|
|
77
|
+
type: GitCommitRefType;
|
|
78
|
+
}
|
|
79
|
+
interface GitLogCommit {
|
|
80
|
+
hash: string;
|
|
81
|
+
parents: string[];
|
|
82
|
+
subject: string;
|
|
83
|
+
author: string;
|
|
84
|
+
authorEmail?: string;
|
|
85
|
+
/** ISO author date */
|
|
86
|
+
date: string;
|
|
87
|
+
refs: GitCommitRef[];
|
|
88
|
+
}
|
|
89
|
+
interface GitLogResult {
|
|
90
|
+
commits: GitLogCommit[];
|
|
91
|
+
/** Hash of HEAD commit, null for empty repository */
|
|
92
|
+
headHash: string | null;
|
|
93
|
+
hasMore: boolean;
|
|
94
|
+
}
|
|
51
95
|
|
|
52
96
|
/**
|
|
53
97
|
* File MCP Tools
|
|
@@ -687,7 +731,7 @@ declare const SeastudioNotifications: {
|
|
|
687
731
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
688
732
|
/**
|
|
689
733
|
* Agent 请求宿主重命名某条对话会话(例如 Agent 标题栏右键菜单)。
|
|
690
|
-
*
|
|
734
|
+
* 无 title 时宿主打开与侧栏一致的重命名对话框;有 title 时直接应用。
|
|
691
735
|
*/
|
|
692
736
|
readonly SESSION_RENAME_REQUESTED: "session:rename_requested";
|
|
693
737
|
/**
|
|
@@ -701,6 +745,8 @@ declare const SeastudioNotifications: {
|
|
|
701
745
|
readonly HOST_APP_VISIBILITY: "host:app_visibility";
|
|
702
746
|
/** Host MCP tools/list 发生变化(例如 Seaflow bridge 动态注册工具) */
|
|
703
747
|
readonly RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed";
|
|
748
|
+
/** 主程序用户登录态变化;不包含访问令牌 */
|
|
749
|
+
readonly AUTH_SESSION_CHANGED: "auth:session_changed";
|
|
704
750
|
};
|
|
705
751
|
|
|
706
752
|
/** 项目根在 MCP 文件工具中的寻址 id;browser 表示 URL 资源根 */
|
|
@@ -756,6 +802,22 @@ interface RootsChangedParams {
|
|
|
756
802
|
description: string;
|
|
757
803
|
}>;
|
|
758
804
|
}
|
|
805
|
+
type AuthSessionStatus = 'anonymous' | 'authenticated' | 'expired';
|
|
806
|
+
interface AuthSessionUser {
|
|
807
|
+
id: string;
|
|
808
|
+
unionId?: string;
|
|
809
|
+
email?: string;
|
|
810
|
+
name?: string;
|
|
811
|
+
avatar?: string;
|
|
812
|
+
appId?: string;
|
|
813
|
+
}
|
|
814
|
+
interface AuthSessionChangedParams {
|
|
815
|
+
event: 'INITIAL_SESSION' | 'SIGNED_IN' | 'SIGNED_OUT' | 'TOKEN_REFRESHED' | 'USER_UPDATED';
|
|
816
|
+
session: {
|
|
817
|
+
status: AuthSessionStatus;
|
|
818
|
+
user: AuthSessionUser | null;
|
|
819
|
+
};
|
|
820
|
+
}
|
|
759
821
|
interface SeastudioDragFileData {
|
|
760
822
|
sourcePath: string;
|
|
761
823
|
sourceRootId?: SeastudioDragRootId;
|
|
@@ -1018,9 +1080,9 @@ interface SessionDeleteRequestedParams {
|
|
|
1018
1080
|
projectId?: string;
|
|
1019
1081
|
reason?: 'host_sidebar';
|
|
1020
1082
|
}
|
|
1021
|
-
/** Agent
|
|
1083
|
+
/** Agent 请求宿主重命名某条会话;无 title 时宿主打开重命名对话框(与侧栏一致) */
|
|
1022
1084
|
interface SessionRenameRequestedParams extends SessionNotificationBase {
|
|
1023
|
-
title
|
|
1085
|
+
title?: string;
|
|
1024
1086
|
reason?: 'agent_titlebar';
|
|
1025
1087
|
}
|
|
1026
1088
|
/** Agent 请求宿主归档某条会话 */
|
|
@@ -1044,4 +1106,4 @@ interface HostAppVisibilityParams {
|
|
|
1044
1106
|
declare const allTools: MCPTool[];
|
|
1045
1107
|
declare const tools: MCPTool[];
|
|
1046
1108
|
|
|
1047
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitChangeKind, type GitChangedParams, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type HostAppVisibilityParams, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, SINGLETON_BROWSER_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioEditorProposalAction, type SeastudioEditorProposalOptions, type SeastudioEditorProposeOptions, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSaveAsOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFileWriteOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, type SeastudioProposalFile, type SeastudioProposalHunk, SeastudioRequests, type SeastudioRootId, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SeastudioWriteReviewMode, type SessionArchiveRequestedParams, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionRenameRequestedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionStatus, type SessionStatusParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
1109
|
+
export { type AgentInstanceSessionSnapshot, type AuthSessionChangedParams, type AuthSessionStatus, type AuthSessionUser, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitBranchInfo, type GitBranchesResult, type GitChangeKind, type GitChangedParams, type GitCommitRef, type GitCommitRefType, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitLogCommit, type GitLogResult, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type HostAppVisibilityParams, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, SINGLETON_BROWSER_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioEditorProposalAction, type SeastudioEditorProposalOptions, type SeastudioEditorProposeOptions, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSaveAsOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFileWriteOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, type SeastudioProposalFile, type SeastudioProposalHunk, SeastudioRequests, type SeastudioRootId, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SeastudioWriteReviewMode, type SessionArchiveRequestedParams, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionRenameRequestedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionStatus, type SessionStatusParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
@@ -48,6 +48,50 @@ interface GitStatusResult {
|
|
|
48
48
|
isRepository: boolean;
|
|
49
49
|
ignoredPaths?: string[];
|
|
50
50
|
}
|
|
51
|
+
interface GitBranchInfo {
|
|
52
|
+
/** Short ref name, e.g. `main` or `origin/main` */
|
|
53
|
+
name: string;
|
|
54
|
+
isRemote: boolean;
|
|
55
|
+
/** Remote name for remote branches, e.g. `origin` */
|
|
56
|
+
remote?: string;
|
|
57
|
+
isCurrent: boolean;
|
|
58
|
+
/** Upstream short name for local branches, e.g. `origin/main` */
|
|
59
|
+
upstream?: string;
|
|
60
|
+
ahead: number;
|
|
61
|
+
behind: number;
|
|
62
|
+
tipHash: string;
|
|
63
|
+
tipSubject?: string;
|
|
64
|
+
/** ISO committer date of the branch tip */
|
|
65
|
+
tipDate?: string;
|
|
66
|
+
}
|
|
67
|
+
interface GitBranchesResult {
|
|
68
|
+
/** Current branch short name, null when detached HEAD */
|
|
69
|
+
current: string | null;
|
|
70
|
+
detachedHash?: string;
|
|
71
|
+
branches: GitBranchInfo[];
|
|
72
|
+
remotes: string[];
|
|
73
|
+
}
|
|
74
|
+
type GitCommitRefType = 'head' | 'localBranch' | 'remoteBranch' | 'tag';
|
|
75
|
+
interface GitCommitRef {
|
|
76
|
+
name: string;
|
|
77
|
+
type: GitCommitRefType;
|
|
78
|
+
}
|
|
79
|
+
interface GitLogCommit {
|
|
80
|
+
hash: string;
|
|
81
|
+
parents: string[];
|
|
82
|
+
subject: string;
|
|
83
|
+
author: string;
|
|
84
|
+
authorEmail?: string;
|
|
85
|
+
/** ISO author date */
|
|
86
|
+
date: string;
|
|
87
|
+
refs: GitCommitRef[];
|
|
88
|
+
}
|
|
89
|
+
interface GitLogResult {
|
|
90
|
+
commits: GitLogCommit[];
|
|
91
|
+
/** Hash of HEAD commit, null for empty repository */
|
|
92
|
+
headHash: string | null;
|
|
93
|
+
hasMore: boolean;
|
|
94
|
+
}
|
|
51
95
|
|
|
52
96
|
/**
|
|
53
97
|
* File MCP Tools
|
|
@@ -687,7 +731,7 @@ declare const SeastudioNotifications: {
|
|
|
687
731
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
688
732
|
/**
|
|
689
733
|
* Agent 请求宿主重命名某条对话会话(例如 Agent 标题栏右键菜单)。
|
|
690
|
-
*
|
|
734
|
+
* 无 title 时宿主打开与侧栏一致的重命名对话框;有 title 时直接应用。
|
|
691
735
|
*/
|
|
692
736
|
readonly SESSION_RENAME_REQUESTED: "session:rename_requested";
|
|
693
737
|
/**
|
|
@@ -701,6 +745,8 @@ declare const SeastudioNotifications: {
|
|
|
701
745
|
readonly HOST_APP_VISIBILITY: "host:app_visibility";
|
|
702
746
|
/** Host MCP tools/list 发生变化(例如 Seaflow bridge 动态注册工具) */
|
|
703
747
|
readonly RUNTIME_TOOLS_CHANGED: "mcp:runtime_tools_changed";
|
|
748
|
+
/** 主程序用户登录态变化;不包含访问令牌 */
|
|
749
|
+
readonly AUTH_SESSION_CHANGED: "auth:session_changed";
|
|
704
750
|
};
|
|
705
751
|
|
|
706
752
|
/** 项目根在 MCP 文件工具中的寻址 id;browser 表示 URL 资源根 */
|
|
@@ -756,6 +802,22 @@ interface RootsChangedParams {
|
|
|
756
802
|
description: string;
|
|
757
803
|
}>;
|
|
758
804
|
}
|
|
805
|
+
type AuthSessionStatus = 'anonymous' | 'authenticated' | 'expired';
|
|
806
|
+
interface AuthSessionUser {
|
|
807
|
+
id: string;
|
|
808
|
+
unionId?: string;
|
|
809
|
+
email?: string;
|
|
810
|
+
name?: string;
|
|
811
|
+
avatar?: string;
|
|
812
|
+
appId?: string;
|
|
813
|
+
}
|
|
814
|
+
interface AuthSessionChangedParams {
|
|
815
|
+
event: 'INITIAL_SESSION' | 'SIGNED_IN' | 'SIGNED_OUT' | 'TOKEN_REFRESHED' | 'USER_UPDATED';
|
|
816
|
+
session: {
|
|
817
|
+
status: AuthSessionStatus;
|
|
818
|
+
user: AuthSessionUser | null;
|
|
819
|
+
};
|
|
820
|
+
}
|
|
759
821
|
interface SeastudioDragFileData {
|
|
760
822
|
sourcePath: string;
|
|
761
823
|
sourceRootId?: SeastudioDragRootId;
|
|
@@ -1018,9 +1080,9 @@ interface SessionDeleteRequestedParams {
|
|
|
1018
1080
|
projectId?: string;
|
|
1019
1081
|
reason?: 'host_sidebar';
|
|
1020
1082
|
}
|
|
1021
|
-
/** Agent
|
|
1083
|
+
/** Agent 请求宿主重命名某条会话;无 title 时宿主打开重命名对话框(与侧栏一致) */
|
|
1022
1084
|
interface SessionRenameRequestedParams extends SessionNotificationBase {
|
|
1023
|
-
title
|
|
1085
|
+
title?: string;
|
|
1024
1086
|
reason?: 'agent_titlebar';
|
|
1025
1087
|
}
|
|
1026
1088
|
/** Agent 请求宿主归档某条会话 */
|
|
@@ -1044,4 +1106,4 @@ interface HostAppVisibilityParams {
|
|
|
1044
1106
|
declare const allTools: MCPTool[];
|
|
1045
1107
|
declare const tools: MCPTool[];
|
|
1046
1108
|
|
|
1047
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitChangeKind, type GitChangedParams, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type HostAppVisibilityParams, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, SINGLETON_BROWSER_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioEditorProposalAction, type SeastudioEditorProposalOptions, type SeastudioEditorProposeOptions, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSaveAsOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFileWriteOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, type SeastudioProposalFile, type SeastudioProposalHunk, SeastudioRequests, type SeastudioRootId, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SeastudioWriteReviewMode, type SessionArchiveRequestedParams, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionRenameRequestedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionStatus, type SessionStatusParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
1109
|
+
export { type AgentInstanceSessionSnapshot, type AuthSessionChangedParams, type AuthSessionStatus, type AuthSessionUser, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitBranchInfo, type GitBranchesResult, type GitChangeKind, type GitChangedParams, type GitCommitRef, type GitCommitRefType, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitLogCommit, type GitLogResult, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type HostAppVisibilityParams, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, SINGLETON_BROWSER_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioEditorProposalAction, type SeastudioEditorProposalOptions, type SeastudioEditorProposeOptions, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSaveAsOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFileWriteOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, type SeastudioProposalFile, type SeastudioProposalHunk, SeastudioRequests, type SeastudioRootId, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SeastudioWriteReviewMode, type SessionArchiveRequestedParams, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionRenameRequestedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionStatus, type SessionStatusParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SINGLETON_BROWSER_SESSION_ID, SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-
|
|
1
|
+
export { SINGLETON_BROWSER_SESSION_ID, SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-QS3WNDIH.js';
|
|
2
2
|
import '../../chunk-TJ3CGHWJ.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seastudio/sdk",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.16",
|
|
4
4
|
"description": "SeaStudio SDK - UI 组件 + MCP 信息交换中心",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -39,11 +39,6 @@
|
|
|
39
39
|
"dist",
|
|
40
40
|
"src/ui/cosmos.css"
|
|
41
41
|
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "tsup",
|
|
44
|
-
"dev": "tsup --watch",
|
|
45
|
-
"prepublishOnly": "npm run build"
|
|
46
|
-
},
|
|
47
42
|
"dependencies": {
|
|
48
43
|
"clsx": "^2.1.0",
|
|
49
44
|
"lucide-react": "^0.469.0",
|
|
@@ -67,7 +62,8 @@
|
|
|
67
62
|
],
|
|
68
63
|
"license": "MIT",
|
|
69
64
|
"publishConfig": {
|
|
70
|
-
"access": "public"
|
|
65
|
+
"access": "public",
|
|
66
|
+
"registry": "https://registry.npmjs.org/"
|
|
71
67
|
},
|
|
72
68
|
"repository": {
|
|
73
69
|
"type": "git",
|
|
@@ -76,5 +72,11 @@
|
|
|
76
72
|
"homepage": "https://gitlab.internal.ops.haiyiai.tech/seastudio/seastudio-sdk",
|
|
77
73
|
"bugs": {
|
|
78
74
|
"url": "https://gitlab.internal.ops.haiyiai.tech/seastudio/seastudio-sdk/-/issues"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "tsup",
|
|
78
|
+
"dev": "tsup --watch",
|
|
79
|
+
"release:pack": "pnpm build && rm -rf .release-artifacts && mkdir -p .release-artifacts && pnpm pack --pack-destination .release-artifacts --json > .release-artifacts/pack.json && node scripts/verify-release-artifact.mjs .release-artifacts/seastudio-sdk-$(node -p \"require('./package.json').version\").tgz",
|
|
80
|
+
"release:verify": "node scripts/verify-release-artifact.mjs .release-artifacts/seastudio-sdk-$(node -p \"require('./package.json').version\").tgz"
|
|
79
81
|
}
|
|
80
|
-
}
|
|
82
|
+
}
|