@seastudio/sdk 3.7.3 → 4.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/dist/chunk-2W5YYT5U.js +959 -0
- package/dist/{chunk-TNBCJUAY.js → chunk-7X4BSYXP.js} +1 -1
- package/dist/chunk-N2R5CFQG.cjs +991 -0
- package/dist/{chunk-TTHMG5IA.cjs → chunk-N3KDYKNM.cjs} +4 -4
- package/dist/index.cjs +24 -24
- package/dist/index.js +2 -2
- package/dist/mcp/index.cjs +24 -24
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/seastudio/index.cjs +32 -32
- package/dist/mcp/seastudio/index.d.cts +10 -28
- package/dist/mcp/seastudio/index.d.ts +10 -28
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KWOX5T3P.cjs +0 -1854
- package/dist/chunk-PV6XSOI5.js +0 -1822
|
@@ -3,7 +3,7 @@ import { g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema, k as MC
|
|
|
3
3
|
/**
|
|
4
4
|
* File MCP Tools
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* 文件系统读写、传输与剪贴板能力。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
declare function annotateTool(tool: MCPTool, annotations: MCPToolAnnotations, outputSchema?: MCPToolInputSchema): MCPTool;
|
|
@@ -24,8 +24,6 @@ declare const fileTools: MCPTool[];
|
|
|
24
24
|
* Shell MCP Tools
|
|
25
25
|
*
|
|
26
26
|
* 基于 PTY 的多 session 长会话工具。
|
|
27
|
-
* 全部 session 命令式 API:
|
|
28
|
-
* open / list / get / run / wait / get_entries / signal / clear_entries / close
|
|
29
27
|
*/
|
|
30
28
|
|
|
31
29
|
declare const shellTools: MCPTool[];
|
|
@@ -33,7 +31,7 @@ declare const shellTools: MCPTool[];
|
|
|
33
31
|
/**
|
|
34
32
|
* AIGC MCP Tools
|
|
35
33
|
*
|
|
36
|
-
* SeaCloud
|
|
34
|
+
* SeaCloud 多模态生成能力。
|
|
37
35
|
*/
|
|
38
36
|
|
|
39
37
|
declare const seaCloudTools: MCPTool[];
|
|
@@ -366,7 +364,7 @@ declare function runOneShotShellCommand(command: string, options?: SeastudioShel
|
|
|
366
364
|
/**
|
|
367
365
|
* Plugin MCP Tools
|
|
368
366
|
*
|
|
369
|
-
* 插件管理 +
|
|
367
|
+
* 插件管理 + 插件标签操作。
|
|
370
368
|
*/
|
|
371
369
|
|
|
372
370
|
declare const pluginManagementTools: MCPTool[];
|
|
@@ -375,7 +373,7 @@ declare const pluginTabTools: MCPTool[];
|
|
|
375
373
|
/**
|
|
376
374
|
* Agent MCP Tools
|
|
377
375
|
*
|
|
378
|
-
* Agent 管理 + Agent
|
|
376
|
+
* Agent 管理 + Agent 标签操作。
|
|
379
377
|
*/
|
|
380
378
|
|
|
381
379
|
declare const agentManagementTools: MCPTool[];
|
|
@@ -384,7 +382,7 @@ declare const agentTabTools: MCPTool[];
|
|
|
384
382
|
/**
|
|
385
383
|
* Project MCP Tools
|
|
386
384
|
*
|
|
387
|
-
*
|
|
385
|
+
* 项目枚举与寻址。
|
|
388
386
|
*/
|
|
389
387
|
|
|
390
388
|
declare const projectTools: MCPTool[];
|
|
@@ -393,26 +391,12 @@ declare const projectTools: MCPTool[];
|
|
|
393
391
|
* Skill MCP Tools
|
|
394
392
|
*
|
|
395
393
|
* 把桌面端 skillManager 扫描到的 Agent Skill 暴露给 agent 插件(只读)。
|
|
396
|
-
*
|
|
397
|
-
* 说明:
|
|
398
|
-
* - 写操作(安装 / 卸载 / 编辑 scope)不通过 MCP,只在桌面端 IPC engine:skill:* 给设置页 UI 用。
|
|
399
|
-
* - "能 list 出来即生效":scope 即语义,不需要 enabled 字段。
|
|
400
394
|
*/
|
|
401
395
|
|
|
402
396
|
declare const skillTools: MCPTool[];
|
|
403
397
|
|
|
404
398
|
declare const browserRuntimeTools: MCPTool[];
|
|
405
399
|
|
|
406
|
-
/**
|
|
407
|
-
* SeaStudio MCP Notifications
|
|
408
|
-
*
|
|
409
|
-
* 主程序发布的 MCP 通知定义
|
|
410
|
-
*
|
|
411
|
-
* 架构说明:
|
|
412
|
-
* - 插件通过 SeastudioRequests 发送请求到主程序
|
|
413
|
-
* - 主程序处理请求后,通过 SeastudioNotifications 发布标准通知
|
|
414
|
-
* - 所有插件订阅 SeastudioNotifications 中的标准通知
|
|
415
|
-
*/
|
|
416
400
|
/**
|
|
417
401
|
* 插件发送给主程序的请求主题
|
|
418
402
|
*
|
|
@@ -424,7 +408,6 @@ declare const browserRuntimeTools: MCPTool[];
|
|
|
424
408
|
* import { SeastudioRequests } from '@seastudio/sdk/mcp/seastudio';
|
|
425
409
|
*
|
|
426
410
|
* const client = getDefaultClient();
|
|
427
|
-
* // 请求打开文件(主程序会发布 FILE_OPEN_REQUESTED 通知)
|
|
428
411
|
* client.publish(SeastudioRequests.FILE_OPEN, { path: '/path/to/file.ts' });
|
|
429
412
|
* ```
|
|
430
413
|
*/
|
|
@@ -445,18 +428,15 @@ declare const SeastudioRequests: {
|
|
|
445
428
|
*
|
|
446
429
|
* @example
|
|
447
430
|
* ```typescript
|
|
448
|
-
* import {
|
|
431
|
+
* import { getDefaultClient, getDefaultServer } from '@seastudio/sdk/mcp/core';
|
|
449
432
|
* import { SeastudioNotifications } from '@seastudio/sdk/mcp/seastudio';
|
|
450
433
|
*
|
|
451
|
-
* // 订阅通知
|
|
452
434
|
* const client = getDefaultClient();
|
|
453
435
|
* client.subscribe([SeastudioNotifications.FILES_CHANGED]);
|
|
454
436
|
*
|
|
455
|
-
* // 处理通知
|
|
456
437
|
* const server = getDefaultServer();
|
|
457
438
|
* server.onNotification(SeastudioNotifications.FILES_CHANGED, (params) => {
|
|
458
439
|
* const { type, path } = params as FilesChangedParams;
|
|
459
|
-
* // 刷新文件树
|
|
460
440
|
* });
|
|
461
441
|
* ```
|
|
462
442
|
*/
|
|
@@ -528,6 +508,10 @@ declare const SeastudioNotifications: {
|
|
|
528
508
|
*/
|
|
529
509
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
530
510
|
};
|
|
511
|
+
|
|
512
|
+
/** 项目根在 MCP 文件工具中的寻址 id */
|
|
513
|
+
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
514
|
+
type SeastudioDragRootId = SeastudioRootId;
|
|
531
515
|
/**
|
|
532
516
|
* files:changed 通知参数
|
|
533
517
|
*/
|
|
@@ -545,7 +529,6 @@ interface FilesChangedParams {
|
|
|
545
529
|
/** 变化类型:内容变化、结构变化或未知兜底 */
|
|
546
530
|
changeKind?: 'content' | 'structure' | 'unknown';
|
|
547
531
|
}
|
|
548
|
-
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
549
532
|
interface FileRenamedParams {
|
|
550
533
|
/** 根目录 ID */
|
|
551
534
|
rootId: SeastudioRootId;
|
|
@@ -579,7 +562,6 @@ interface RootsChangedParams {
|
|
|
579
562
|
description: string;
|
|
580
563
|
}>;
|
|
581
564
|
}
|
|
582
|
-
type SeastudioDragRootId = SeastudioRootId;
|
|
583
565
|
interface SeastudioDragFileData {
|
|
584
566
|
sourcePath: string;
|
|
585
567
|
sourceRootId?: SeastudioDragRootId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-
|
|
1
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-2W5YYT5U.js';
|
|
2
2
|
import '../../chunk-TJ3CGHWJ.js';
|