@seastudio/sdk 3.7.2 → 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.
@@ -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
- * 项目枚举与寻址:让 agent 能列出所有项目并按需跨项目操作。
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 { getDefaultServer, getDefaultClient } from '@seastudio/sdk/mcp/core';
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
  */
@@ -471,6 +451,8 @@ declare const SeastudioNotifications: {
471
451
  readonly ROOTS_CHANGED: "roots:changed";
472
452
  /** 文件打开请求,可广播也可定向 */
473
453
  readonly FILE_OPEN_REQUESTED: "seastudio:file-open_requested";
454
+ /** 文件固定请求:将当前临时打开的文件实例转为固定 */
455
+ readonly FILE_KEEP_REQUESTED: "seastudio:file-keep_requested";
474
456
  /** 文件已修改通知(内容变化,未保存) */
475
457
  readonly FILE_MODIFIED: "file:modified";
476
458
  /** 文件已保存通知 */
@@ -526,6 +508,10 @@ declare const SeastudioNotifications: {
526
508
  */
527
509
  readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
528
510
  };
511
+
512
+ /** 项目根在 MCP 文件工具中的寻址 id */
513
+ type SeastudioRootId = 'workspace' | `proj-${string}`;
514
+ type SeastudioDragRootId = SeastudioRootId;
529
515
  /**
530
516
  * files:changed 通知参数
531
517
  */
@@ -543,7 +529,6 @@ interface FilesChangedParams {
543
529
  /** 变化类型:内容变化、结构变化或未知兜底 */
544
530
  changeKind?: 'content' | 'structure' | 'unknown';
545
531
  }
546
- type SeastudioRootId = 'workspace' | `proj-${string}`;
547
532
  interface FileRenamedParams {
548
533
  /** 根目录 ID */
549
534
  rootId: SeastudioRootId;
@@ -577,7 +562,6 @@ interface RootsChangedParams {
577
562
  description: string;
578
563
  }>;
579
564
  }
580
- type SeastudioDragRootId = SeastudioRootId;
581
565
  interface SeastudioDragFileData {
582
566
  sourcePath: string;
583
567
  sourceRootId?: SeastudioDragRootId;
@@ -603,6 +587,8 @@ interface FileTransferRequestedParams {
603
587
  }
604
588
  interface FileOpenRequestedParams extends FileTransferRequestedParams {
605
589
  }
590
+ interface FileKeepRequestedParams extends FileTransferRequestedParams {
591
+ }
606
592
  interface FileSendRequestedParams extends FileTransferRequestedParams {
607
593
  }
608
594
  interface FileSelectedParams {
@@ -698,6 +684,12 @@ interface PluginTabTitleChangedParams {
698
684
  openPath?: string | null;
699
685
  /** 当前实例承载的文件根;null 表示实例已空闲 */
700
686
  openRootId?: SeastudioRootId | null;
687
+ /** 当前实例是否只是临时预览打开,未占用单文件实例 */
688
+ isTemporary?: boolean | null;
689
+ /** 当前临时预览的文件路径;null 表示无临时目标 */
690
+ temporaryOpenPath?: string | null;
691
+ /** 当前临时预览的文件根;null 表示无临时目标 */
692
+ temporaryOpenRootId?: SeastudioRootId | null;
701
693
  }
702
694
  /** 各 session 通知的公共字段 */
703
695
  interface SessionNotificationBase {
@@ -799,4 +791,4 @@ interface SessionDeleteRequestedParams {
799
791
  declare const allTools: MCPTool[];
800
792
  declare const tools: MCPTool[];
801
793
 
802
- export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type PluginTabTitleChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, 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 SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
794
+ export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type PluginTabTitleChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, 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 SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
@@ -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
- * 项目枚举与寻址:让 agent 能列出所有项目并按需跨项目操作。
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 { getDefaultServer, getDefaultClient } from '@seastudio/sdk/mcp/core';
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
  */
@@ -471,6 +451,8 @@ declare const SeastudioNotifications: {
471
451
  readonly ROOTS_CHANGED: "roots:changed";
472
452
  /** 文件打开请求,可广播也可定向 */
473
453
  readonly FILE_OPEN_REQUESTED: "seastudio:file-open_requested";
454
+ /** 文件固定请求:将当前临时打开的文件实例转为固定 */
455
+ readonly FILE_KEEP_REQUESTED: "seastudio:file-keep_requested";
474
456
  /** 文件已修改通知(内容变化,未保存) */
475
457
  readonly FILE_MODIFIED: "file:modified";
476
458
  /** 文件已保存通知 */
@@ -526,6 +508,10 @@ declare const SeastudioNotifications: {
526
508
  */
527
509
  readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
528
510
  };
511
+
512
+ /** 项目根在 MCP 文件工具中的寻址 id */
513
+ type SeastudioRootId = 'workspace' | `proj-${string}`;
514
+ type SeastudioDragRootId = SeastudioRootId;
529
515
  /**
530
516
  * files:changed 通知参数
531
517
  */
@@ -543,7 +529,6 @@ interface FilesChangedParams {
543
529
  /** 变化类型:内容变化、结构变化或未知兜底 */
544
530
  changeKind?: 'content' | 'structure' | 'unknown';
545
531
  }
546
- type SeastudioRootId = 'workspace' | `proj-${string}`;
547
532
  interface FileRenamedParams {
548
533
  /** 根目录 ID */
549
534
  rootId: SeastudioRootId;
@@ -577,7 +562,6 @@ interface RootsChangedParams {
577
562
  description: string;
578
563
  }>;
579
564
  }
580
- type SeastudioDragRootId = SeastudioRootId;
581
565
  interface SeastudioDragFileData {
582
566
  sourcePath: string;
583
567
  sourceRootId?: SeastudioDragRootId;
@@ -603,6 +587,8 @@ interface FileTransferRequestedParams {
603
587
  }
604
588
  interface FileOpenRequestedParams extends FileTransferRequestedParams {
605
589
  }
590
+ interface FileKeepRequestedParams extends FileTransferRequestedParams {
591
+ }
606
592
  interface FileSendRequestedParams extends FileTransferRequestedParams {
607
593
  }
608
594
  interface FileSelectedParams {
@@ -698,6 +684,12 @@ interface PluginTabTitleChangedParams {
698
684
  openPath?: string | null;
699
685
  /** 当前实例承载的文件根;null 表示实例已空闲 */
700
686
  openRootId?: SeastudioRootId | null;
687
+ /** 当前实例是否只是临时预览打开,未占用单文件实例 */
688
+ isTemporary?: boolean | null;
689
+ /** 当前临时预览的文件路径;null 表示无临时目标 */
690
+ temporaryOpenPath?: string | null;
691
+ /** 当前临时预览的文件根;null 表示无临时目标 */
692
+ temporaryOpenRootId?: SeastudioRootId | null;
701
693
  }
702
694
  /** 各 session 通知的公共字段 */
703
695
  interface SessionNotificationBase {
@@ -799,4 +791,4 @@ interface SessionDeleteRequestedParams {
799
791
  declare const allTools: MCPTool[];
800
792
  declare const tools: MCPTool[];
801
793
 
802
- export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type PluginTabTitleChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, 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 SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
794
+ export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type PluginTabTitleChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, 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 SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
@@ -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-MUF4S4BF.js';
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';
package/dist/ui/index.cjs CHANGED
@@ -1,58 +1,58 @@
1
1
  'use strict';
2
2
 
3
- var chunkUZ6SEVW3_cjs = require('../chunk-UZ6SEVW3.cjs');
3
+ var chunkTKROLSLX_cjs = require('../chunk-TKROLSLX.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DialogBody", {
8
8
  enumerable: true,
9
- get: function () { return chunkUZ6SEVW3_cjs.DialogBody; }
9
+ get: function () { return chunkTKROLSLX_cjs.DialogBody; }
10
10
  });
11
11
  Object.defineProperty(exports, "DialogButton", {
12
12
  enumerable: true,
13
- get: function () { return chunkUZ6SEVW3_cjs.DialogButton; }
13
+ get: function () { return chunkTKROLSLX_cjs.DialogButton; }
14
14
  });
15
15
  Object.defineProperty(exports, "DialogContainer", {
16
16
  enumerable: true,
17
- get: function () { return chunkUZ6SEVW3_cjs.DialogContainer; }
17
+ get: function () { return chunkTKROLSLX_cjs.DialogContainer; }
18
18
  });
19
19
  Object.defineProperty(exports, "DialogFooter", {
20
20
  enumerable: true,
21
- get: function () { return chunkUZ6SEVW3_cjs.DialogFooter; }
21
+ get: function () { return chunkTKROLSLX_cjs.DialogFooter; }
22
22
  });
23
23
  Object.defineProperty(exports, "DialogHeader", {
24
24
  enumerable: true,
25
- get: function () { return chunkUZ6SEVW3_cjs.DialogHeader; }
25
+ get: function () { return chunkTKROLSLX_cjs.DialogHeader; }
26
26
  });
27
27
  Object.defineProperty(exports, "DialogOverlay", {
28
28
  enumerable: true,
29
- get: function () { return chunkUZ6SEVW3_cjs.DialogOverlay; }
29
+ get: function () { return chunkTKROLSLX_cjs.DialogOverlay; }
30
30
  });
31
31
  Object.defineProperty(exports, "MenuContainer", {
32
32
  enumerable: true,
33
- get: function () { return chunkUZ6SEVW3_cjs.MenuContainer; }
33
+ get: function () { return chunkTKROLSLX_cjs.MenuContainer; }
34
34
  });
35
35
  Object.defineProperty(exports, "MenuEmpty", {
36
36
  enumerable: true,
37
- get: function () { return chunkUZ6SEVW3_cjs.MenuEmpty; }
37
+ get: function () { return chunkTKROLSLX_cjs.MenuEmpty; }
38
38
  });
39
39
  Object.defineProperty(exports, "MenuItem", {
40
40
  enumerable: true,
41
- get: function () { return chunkUZ6SEVW3_cjs.MenuItem; }
41
+ get: function () { return chunkTKROLSLX_cjs.MenuItem; }
42
42
  });
43
43
  Object.defineProperty(exports, "MenuSeparator", {
44
44
  enumerable: true,
45
- get: function () { return chunkUZ6SEVW3_cjs.MenuSeparator; }
45
+ get: function () { return chunkTKROLSLX_cjs.MenuSeparator; }
46
46
  });
47
47
  Object.defineProperty(exports, "Tab", {
48
48
  enumerable: true,
49
- get: function () { return chunkUZ6SEVW3_cjs.Tab; }
49
+ get: function () { return chunkTKROLSLX_cjs.Tab; }
50
50
  });
51
51
  Object.defineProperty(exports, "cn", {
52
52
  enumerable: true,
53
- get: function () { return chunkUZ6SEVW3_cjs.cn; }
53
+ get: function () { return chunkTKROLSLX_cjs.cn; }
54
54
  });
55
55
  Object.defineProperty(exports, "showHostContextMenu", {
56
56
  enumerable: true,
57
- get: function () { return chunkUZ6SEVW3_cjs.showHostContextMenu; }
57
+ get: function () { return chunkTKROLSLX_cjs.showHostContextMenu; }
58
58
  });
@@ -13,6 +13,7 @@ interface TabProps {
13
13
  onClose?: () => void;
14
14
  icon?: React.ReactNode;
15
15
  title?: string;
16
+ titleClassName?: string;
16
17
  className?: string;
17
18
  disabled?: boolean;
18
19
  draggable?: boolean;
@@ -22,7 +23,7 @@ interface TabProps {
22
23
  onDrop?: React.DragEventHandler<HTMLDivElement>;
23
24
  onDragEnd?: React.DragEventHandler<HTMLDivElement>;
24
25
  }
25
- declare function Tab({ isActive, onClick, onClose, icon, title, className, disabled, draggable, onDragStart, onDragOver, onDragLeave, onDrop, onDragEnd, }: TabProps): React.ReactElement;
26
+ declare function Tab({ isActive, onClick, onClose, icon, title, titleClassName, className, disabled, draggable, onDragStart, onDragOver, onDragLeave, onDrop, onDragEnd, }: TabProps): React.ReactElement;
26
27
 
27
28
  /**
28
29
  * Menu - 统一菜单组件
@@ -13,6 +13,7 @@ interface TabProps {
13
13
  onClose?: () => void;
14
14
  icon?: React.ReactNode;
15
15
  title?: string;
16
+ titleClassName?: string;
16
17
  className?: string;
17
18
  disabled?: boolean;
18
19
  draggable?: boolean;
@@ -22,7 +23,7 @@ interface TabProps {
22
23
  onDrop?: React.DragEventHandler<HTMLDivElement>;
23
24
  onDragEnd?: React.DragEventHandler<HTMLDivElement>;
24
25
  }
25
- declare function Tab({ isActive, onClick, onClose, icon, title, className, disabled, draggable, onDragStart, onDragOver, onDragLeave, onDrop, onDragEnd, }: TabProps): React.ReactElement;
26
+ declare function Tab({ isActive, onClick, onClose, icon, title, titleClassName, className, disabled, draggable, onDragStart, onDragOver, onDragLeave, onDrop, onDragEnd, }: TabProps): React.ReactElement;
26
27
 
27
28
  /**
28
29
  * Menu - 统一菜单组件
package/dist/ui/index.js CHANGED
@@ -1 +1 @@
1
- export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from '../chunk-XWORXNCU.js';
1
+ export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from '../chunk-UZWEOUCK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seastudio/sdk",
3
- "version": "3.7.2",
3
+ "version": "4.0.0",
4
4
  "description": "SeaStudio SDK - UI 组件 + MCP 信息交换中心",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",