@seastudio/sdk 3.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.
Files changed (77) hide show
  1. package/README.md +108 -0
  2. package/bin/seastudio.js +3 -0
  3. package/dist/chunk-4ITOR5QE.js +901 -0
  4. package/dist/chunk-5QAINQWV.js +94 -0
  5. package/dist/chunk-6USQFZRH.js +291 -0
  6. package/dist/chunk-AGBZJGTY.cjs +1311 -0
  7. package/dist/chunk-ANWOL7SM.js +566 -0
  8. package/dist/chunk-BWG45ZWF.cjs +305 -0
  9. package/dist/chunk-CVF4QHS6.cjs +436 -0
  10. package/dist/chunk-DDVRUPMZ.js +1293 -0
  11. package/dist/chunk-DSOSHJH2.js +643 -0
  12. package/dist/chunk-FLATZQA2.js +174 -0
  13. package/dist/chunk-HJJTBVKQ.cjs +909 -0
  14. package/dist/chunk-ISI2OLPI.cjs +179 -0
  15. package/dist/chunk-MYURVLGP.cjs +165 -0
  16. package/dist/chunk-N33Y5NY7.cjs +105 -0
  17. package/dist/chunk-QD4KISXM.js +160 -0
  18. package/dist/chunk-SNGU4SHO.cjs +654 -0
  19. package/dist/chunk-TFOJLA2F.cjs +588 -0
  20. package/dist/chunk-Z7LV7DCO.js +429 -0
  21. package/dist/develop-tool/cli/index.cjs +1138 -0
  22. package/dist/develop-tool/cli/index.d.cts +1 -0
  23. package/dist/develop-tool/cli/index.d.ts +1 -0
  24. package/dist/develop-tool/cli/index.js +1127 -0
  25. package/dist/index.cjs +370 -0
  26. package/dist/index.d.cts +11 -0
  27. package/dist/index.d.ts +11 -0
  28. package/dist/index.js +9 -0
  29. package/dist/mcp/core/index.cjs +90 -0
  30. package/dist/mcp/core/index.d.cts +124 -0
  31. package/dist/mcp/core/index.d.ts +124 -0
  32. package/dist/mcp/core/index.js +1 -0
  33. package/dist/mcp/index.cjs +317 -0
  34. package/dist/mcp/index.d.cts +123 -0
  35. package/dist/mcp/index.d.ts +123 -0
  36. package/dist/mcp/index.js +8 -0
  37. package/dist/mcp/plugin-editor/index.cjs +47 -0
  38. package/dist/mcp/plugin-editor/index.d.cts +98 -0
  39. package/dist/mcp/plugin-editor/index.d.ts +98 -0
  40. package/dist/mcp/plugin-editor/index.js +2 -0
  41. package/dist/mcp/plugin-excel/index.cjs +31 -0
  42. package/dist/mcp/plugin-excel/index.d.cts +86 -0
  43. package/dist/mcp/plugin-excel/index.d.ts +86 -0
  44. package/dist/mcp/plugin-excel/index.js +2 -0
  45. package/dist/mcp/plugin-preview/index.cjs +23 -0
  46. package/dist/mcp/plugin-preview/index.d.cts +109 -0
  47. package/dist/mcp/plugin-preview/index.d.ts +109 -0
  48. package/dist/mcp/plugin-preview/index.js +2 -0
  49. package/dist/mcp/plugin-seaflow/index.cjs +35 -0
  50. package/dist/mcp/plugin-seaflow/index.d.cts +318 -0
  51. package/dist/mcp/plugin-seaflow/index.d.ts +318 -0
  52. package/dist/mcp/plugin-seaflow/index.js +2 -0
  53. package/dist/mcp/seastudio/index.cjs +75 -0
  54. package/dist/mcp/seastudio/index.d.cts +341 -0
  55. package/dist/mcp/seastudio/index.d.ts +341 -0
  56. package/dist/mcp/seastudio/index.js +2 -0
  57. package/dist/tools-LMW67LIY.js +2 -0
  58. package/dist/tools-TU7PBMDO.cjs +23 -0
  59. package/dist/types-Clgf5gBf.d.cts +107 -0
  60. package/dist/types-Clgf5gBf.d.ts +107 -0
  61. package/dist/ui/index.cjs +58 -0
  62. package/dist/ui/index.d.cts +142 -0
  63. package/dist/ui/index.d.ts +142 -0
  64. package/dist/ui/index.js +1 -0
  65. package/package.json +115 -0
  66. package/src/develop-tool/templates/plugin/README.md.tmpl +36 -0
  67. package/src/develop-tool/templates/plugin/frontend/index.html.tmpl +12 -0
  68. package/src/develop-tool/templates/plugin/frontend/package.json.tmpl +30 -0
  69. package/src/develop-tool/templates/plugin/frontend/postcss.config.js +6 -0
  70. package/src/develop-tool/templates/plugin/frontend/src/App.css +43 -0
  71. package/src/develop-tool/templates/plugin/frontend/src/App.tsx.tmpl +43 -0
  72. package/src/develop-tool/templates/plugin/frontend/src/main.tsx +10 -0
  73. package/src/develop-tool/templates/plugin/frontend/src/vite-env.d.ts +1 -0
  74. package/src/develop-tool/templates/plugin/frontend/tsconfig.json +20 -0
  75. package/src/develop-tool/templates/plugin/frontend/vite.config.ts +12 -0
  76. package/src/develop-tool/templates/plugin/seastudio.config.json.tmpl +14 -0
  77. package/src/ui/cosmos.css +407 -0
@@ -0,0 +1,123 @@
1
+ import { k as MCPToolResult, g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema } from '../types-Clgf5gBf.js';
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, N as NotificationHandler, P as PublishParams, S as SubscribeParams, l as createNotification, m as createRequest, n as createResponse, o as isMCPMessage, p as isNotification } from '../types-Clgf5gBf.js';
3
+ export { MCPClient, MCPClientOptions, MCPRequestOptions, MCPServer, MCPToolHandler, MCPTransport, NormalizeMCPToolInputSchemaOptions, PostMessageTransport, PostMessageTransportOptions, callHostTool, callHostToolText, createMCPClient, createMCPServer, getDefaultClient, getDefaultServer, getDefaultTransport, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './core/index.js';
4
+ export { FileModifiedParams, FileOpenRequestedParams, FileSavedParams, FileSendRequestedParams, FilesChangedParams, RootsChangedParams, SeastudioDragDropParams, SeastudioDragEnterParams, SeastudioDragFileData, SeastudioDragRootId, SeastudioDragStartParams, SeastudioFileDownloadOptions, SeastudioFileTreeOptions, SeastudioNotifications, SeastudioRequests, TextSendRequestedParams, agentManagementTools, agentTabTools, batchFileTools, clipboardTools, codeQualityTools, fileTools, gitTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './seastudio/index.js';
5
+ export { CodeSearchMatch, CodeSearchResult, EditorFileInfo, LintResult, TestResult, TypecheckResult, editor, allTools as editorAllTools, extensionTools as editorExtensionTools, fileMutationTools as editorFileMutationTools, previewTools as editorPreviewTools, proposalTools as editorProposalTools, referenceTools as editorReferenceTools, sessionTools as editorSessionTools, tools as editorTools, fileOperationTools } from './plugin-editor/index.js';
6
+ export { PreviewBatchEntry, PreviewBatchGetResponse, PreviewBatchItem, PreviewBatchResult, PreviewCapability, PreviewCompareVersionsResult, PreviewGetResponse, PreviewMetadata, PreviewMode, PreviewThumbnail, RenderKind, preview, coreTools as previewCoreTools, enhancedTools as previewEnhancedTools, tools as previewTools } from './plugin-preview/index.js';
7
+ export { CanvasBatchApplyResult, CanvasEdgeListItem, CanvasEdgeListResult, CanvasExecutionAuthSnapshot, CanvasExecutionAuthState, CanvasExecutionPersistMode, CanvasExecutionTaskState, CanvasNodeDetailResult, CanvasNodeOutputsResult, CanvasNodeValidationResult, CanvasTaskListItem, CanvasTaskListResult, CanvasTaskStatus, CanvasTaskWaitResult, seaflow, allTools as seaflowAllTools, canvasAuthTools as seaflowCanvasAuthTools, canvasContextTools as seaflowCanvasContextTools, canvasExecutionTools as seaflowCanvasExecutionTools, tools as seaflowTools } from './plugin-seaflow/index.js';
8
+ export { ExcelContext, ExcelFindMatch, ExcelSelectionInfo, ExcelSheetInfo, ExcelStats, excel, allTools as excelAllTools, lifecycleTools as excelLifecycleTools, mutateTools as excelMutateTools, readTools as excelReadTools, tools as excelTools } from './plugin-excel/index.js';
9
+
10
+ /**
11
+ * Shell Plugin MCP Tools
12
+ *
13
+ * Shell 插件提供的 MCP Tools
14
+ */
15
+
16
+ declare const sessionTools: MCPTool[];
17
+ declare const commandTools: MCPTool[];
18
+ declare const tools: MCPTool[];
19
+ declare const shellPlugin: {
20
+ getSession: () => Promise<MCPToolResult>;
21
+ getEntries: (limit?: number) => Promise<MCPToolResult>;
22
+ runCommand: (command: string, cwd?: string, timeout?: number) => Promise<MCPToolResult>;
23
+ setCwd: (cwd: string) => Promise<MCPToolResult>;
24
+ clearOutput: () => Promise<MCPToolResult>;
25
+ resetSession: () => Promise<MCPToolResult>;
26
+ };
27
+
28
+ /**
29
+ * MCP Module Entry
30
+ *
31
+ * MCP 信息交换中心入口
32
+ */
33
+
34
+ declare function loadPlugin(pluginName: string): Promise<unknown>;
35
+
36
+ /**
37
+ * MCP 包定义
38
+ */
39
+ declare const MCP_PACKAGES: readonly [{
40
+ readonly id: "seastudio";
41
+ readonly name: "SeaStudio";
42
+ readonly description: "文件/Shell/Git 基础能力";
43
+ readonly tools: MCPTool[];
44
+ }, {
45
+ readonly id: "codeEditor";
46
+ readonly name: "Code Editor";
47
+ readonly description: "代码编辑器能力";
48
+ readonly tools: MCPTool[];
49
+ }, {
50
+ readonly id: "preview";
51
+ readonly name: "Preview";
52
+ readonly description: "预览器能力";
53
+ readonly tools: MCPTool[];
54
+ }, {
55
+ readonly id: "seaflow";
56
+ readonly name: "SeaFlow";
57
+ readonly description: "流程画布执行与编排能力";
58
+ readonly tools: MCPTool[];
59
+ }, {
60
+ readonly id: "shell";
61
+ readonly name: "Shell";
62
+ readonly description: "Shell 会话与命令执行能力";
63
+ readonly tools: MCPTool[];
64
+ }, {
65
+ readonly id: "excel";
66
+ readonly name: "Excel";
67
+ readonly description: "Excel 电子表格操作能力";
68
+ readonly tools: MCPTool[];
69
+ }];
70
+ type MCPPackageId = (typeof MCP_PACKAGES)[number]['id'];
71
+ interface MCPPackageInfo {
72
+ id: MCPPackageId;
73
+ name: string;
74
+ description: string;
75
+ toolCount: number;
76
+ }
77
+ /**
78
+ * OpenAI function 格式的工具定义
79
+ */
80
+ type MCPToolCapabilityRisk = 'low' | 'medium' | 'high';
81
+ interface MCPToolCapabilityMetadata {
82
+ id: string;
83
+ risk: MCPToolCapabilityRisk;
84
+ preconditions?: string[];
85
+ successSignals?: Array<Record<string, unknown>>;
86
+ failureCodes?: string[];
87
+ }
88
+ interface OpenAITool {
89
+ type: 'function';
90
+ annotations?: MCPToolAnnotations;
91
+ outputSchema?: MCPToolInputSchema;
92
+ function: {
93
+ name: string;
94
+ description: string;
95
+ parameters: MCPToolInputSchema;
96
+ outputSchema?: MCPToolInputSchema;
97
+ };
98
+ }
99
+ /**
100
+ * 将 MCP Tool 转换为 OpenAI function 格式
101
+ */
102
+ declare function mcpToolToOpenAI(tool: MCPTool): OpenAITool;
103
+ /**
104
+ * 获取所有 MCP Tools
105
+ */
106
+ declare function listAllTools(): MCPTool[];
107
+ /**
108
+ * @deprecated 使用 listAllTools() 替代
109
+ */
110
+ declare const listAvailableTools: typeof listAllTools;
111
+ declare function getMCPToolPackageIndex(): Map<string, MCPPackageId>;
112
+ declare function getMCPPackageIdForTool(toolName: string): MCPPackageId | null;
113
+ declare function listAvailableToolsForLLM(): OpenAITool[];
114
+ /**
115
+ * 获取包列表(含工具数量,静态获取)
116
+ */
117
+ declare function getMCPPackages(): MCPPackageInfo[];
118
+ /**
119
+ * 根据启用的包获取工具列表(OpenAI 格式)
120
+ */
121
+ declare function getToolsForLLM(disabledPackages: Set<MCPPackageId>): OpenAITool[];
122
+
123
+ export { type MCPPackageId, type MCPPackageInfo, MCPTool, MCPToolAnnotations, type MCPToolCapabilityMetadata, type MCPToolCapabilityRisk, MCPToolInputSchema, MCPToolResult, MCP_PACKAGES, type OpenAITool, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI, shellPlugin, commandTools as shellPluginCommandTools, sessionTools as shellPluginSessionTools, tools as shellPluginTools };
@@ -0,0 +1,8 @@
1
+ export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-5QAINQWV.js';
2
+ export { excel, allTools as excelAllTools, lifecycleTools as excelLifecycleTools, mutateTools as excelMutateTools, readTools as excelReadTools, tools as excelTools } from '../chunk-Z7LV7DCO.js';
3
+ export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, batchFileTools, clipboardTools, codeQualityTools, fileTools, gitTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-DDVRUPMZ.js';
4
+ export { shellPlugin, commandTools as shellPluginCommandTools, sessionTools as shellPluginSessionTools, tools as shellPluginTools } from '../chunk-FLATZQA2.js';
5
+ export { editor, allTools as editorAllTools, extensionTools as editorExtensionTools, fileMutationTools as editorFileMutationTools, previewTools as editorPreviewTools, proposalTools as editorProposalTools, referenceTools as editorReferenceTools, sessionTools as editorSessionTools, tools as editorTools, fileOperationTools } from '../chunk-DSOSHJH2.js';
6
+ export { preview, coreTools as previewCoreTools, enhancedTools as previewEnhancedTools, tools as previewTools } from '../chunk-QD4KISXM.js';
7
+ export { seaflow, allTools as seaflowAllTools, canvasAuthTools as seaflowCanvasAuthTools, canvasContextTools as seaflowCanvasContextTools, canvasExecutionTools as seaflowCanvasExecutionTools, tools as seaflowTools } from '../chunk-4ITOR5QE.js';
8
+ export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from '../chunk-ANWOL7SM.js';
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkSNGU4SHO_cjs = require('../../chunk-SNGU4SHO.cjs');
4
+ require('../../chunk-TFOJLA2F.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "allTools", {
9
+ enumerable: true,
10
+ get: function () { return chunkSNGU4SHO_cjs.allTools; }
11
+ });
12
+ Object.defineProperty(exports, "editor", {
13
+ enumerable: true,
14
+ get: function () { return chunkSNGU4SHO_cjs.editor; }
15
+ });
16
+ Object.defineProperty(exports, "extensionTools", {
17
+ enumerable: true,
18
+ get: function () { return chunkSNGU4SHO_cjs.extensionTools; }
19
+ });
20
+ Object.defineProperty(exports, "fileMutationTools", {
21
+ enumerable: true,
22
+ get: function () { return chunkSNGU4SHO_cjs.fileMutationTools; }
23
+ });
24
+ Object.defineProperty(exports, "fileOperationTools", {
25
+ enumerable: true,
26
+ get: function () { return chunkSNGU4SHO_cjs.fileOperationTools; }
27
+ });
28
+ Object.defineProperty(exports, "previewTools", {
29
+ enumerable: true,
30
+ get: function () { return chunkSNGU4SHO_cjs.previewTools; }
31
+ });
32
+ Object.defineProperty(exports, "proposalTools", {
33
+ enumerable: true,
34
+ get: function () { return chunkSNGU4SHO_cjs.proposalTools; }
35
+ });
36
+ Object.defineProperty(exports, "referenceTools", {
37
+ enumerable: true,
38
+ get: function () { return chunkSNGU4SHO_cjs.referenceTools; }
39
+ });
40
+ Object.defineProperty(exports, "sessionTools", {
41
+ enumerable: true,
42
+ get: function () { return chunkSNGU4SHO_cjs.sessionTools; }
43
+ });
44
+ Object.defineProperty(exports, "tools", {
45
+ enumerable: true,
46
+ get: function () { return chunkSNGU4SHO_cjs.tools; }
47
+ });
@@ -0,0 +1,98 @@
1
+ import { k as MCPToolResult, g as MCPTool } from '../../types-Clgf5gBf.cjs';
2
+
3
+ /**
4
+ * Editor Plugin MCP Tools
5
+ *
6
+ * Editor 插件提供的 MCP Tools(A 类插件,被动响应)
7
+ * 覆盖编辑器会话/状态、文件操作、预览控制、轻量引用、AI proposal/diff 采纳。
8
+ */
9
+
10
+ declare const fileOperationTools: MCPTool[];
11
+ declare const sessionTools: MCPTool[];
12
+ declare const fileMutationTools: MCPTool[];
13
+ declare const previewTools: MCPTool[];
14
+ declare const referenceTools: MCPTool[];
15
+ declare const proposalTools: MCPTool[];
16
+ declare const extensionTools: MCPTool[];
17
+ declare const tools: MCPTool[];
18
+ declare const allTools: MCPTool[];
19
+ declare const editor: {
20
+ openFile: (path: string, line?: number, column?: number) => Promise<MCPToolResult>;
21
+ saveFile: (path?: string) => Promise<MCPToolResult>;
22
+ getDirtyFiles: () => Promise<MCPToolResult>;
23
+ getEditingFile: () => Promise<MCPToolResult>;
24
+ fileSaved: (path: string) => Promise<MCPToolResult>;
25
+ fileEditing: (path: string) => Promise<MCPToolResult>;
26
+ listOpenFiles: () => Promise<MCPToolResult>;
27
+ getActiveFile: () => Promise<MCPToolResult>;
28
+ focusFile: (fileKey: string) => Promise<MCPToolResult>;
29
+ closeFile: (fileKey: string) => Promise<MCPToolResult>;
30
+ saveAllFiles: () => Promise<MCPToolResult>;
31
+ createFile: (path: string, content?: string, rootId?: string) => Promise<MCPToolResult>;
32
+ createDir: (path: string) => Promise<MCPToolResult>;
33
+ renamePath: (oldPath: string, newPath: string) => Promise<MCPToolResult>;
34
+ deletePath: (path: string) => Promise<MCPToolResult>;
35
+ writeFile: (path: string, content: string, rootId?: string) => Promise<MCPToolResult>;
36
+ writeBatch: (changes: Array<{
37
+ path: string;
38
+ content: string;
39
+ }>) => Promise<MCPToolResult>;
40
+ getViewMode: (fileKey?: string) => Promise<MCPToolResult>;
41
+ setViewMode: (mode: "edit" | "preview", fileKey?: string) => Promise<MCPToolResult>;
42
+ renderMarkdownPreview: (path?: string) => Promise<MCPToolResult>;
43
+ resolvePathReference: (path: string) => Promise<MCPToolResult>;
44
+ openReference: (path: string) => Promise<MCPToolResult>;
45
+ searchPaths: (query: string) => Promise<MCPToolResult>;
46
+ createProposal: (title: string, files: unknown[]) => Promise<MCPToolResult>;
47
+ listProposals: () => Promise<MCPToolResult>;
48
+ getProposalDiff: (proposalId: string) => Promise<MCPToolResult>;
49
+ applyProposalAll: (proposalId: string) => Promise<MCPToolResult>;
50
+ applyProposalHunks: (proposalId: string, hunkIds: string[]) => Promise<MCPToolResult>;
51
+ rejectProposal: (proposalId: string) => Promise<MCPToolResult>;
52
+ listExtensions: (type?: string) => Promise<MCPToolResult>;
53
+ runCommand: (extensionId: string, filePath?: string, content?: string, selection?: unknown) => Promise<MCPToolResult>;
54
+ runDiagnostics: (filePath: string, content: string, extensionId?: string, language?: string) => Promise<MCPToolResult>;
55
+ getCompletions: (filePath: string, content: string, line: number, column: number, prefix: string, language?: string) => Promise<MCPToolResult>;
56
+ };
57
+ interface EditorFileInfo {
58
+ path: string;
59
+ content?: string;
60
+ isDirty?: boolean;
61
+ }
62
+ interface CodeSearchMatch {
63
+ path: string;
64
+ lineNumber: number;
65
+ content: string;
66
+ }
67
+ interface CodeSearchResult {
68
+ pattern: string;
69
+ matchCount: number;
70
+ matches: CodeSearchMatch[];
71
+ }
72
+ interface TestResult {
73
+ command: string;
74
+ exitCode: number;
75
+ passed: boolean;
76
+ stdout: string;
77
+ stderr: string;
78
+ summary?: string;
79
+ }
80
+ interface TypecheckResult {
81
+ command: string;
82
+ exitCode: number;
83
+ passed: boolean;
84
+ stdout: string;
85
+ stderr: string;
86
+ errorCount?: number;
87
+ }
88
+ interface LintResult {
89
+ command: string;
90
+ exitCode: number;
91
+ passed: boolean;
92
+ stdout: string;
93
+ stderr: string;
94
+ warningCount?: number;
95
+ errorCount?: number;
96
+ }
97
+
98
+ export { type CodeSearchMatch, type CodeSearchResult, type EditorFileInfo, type LintResult, type TestResult, type TypecheckResult, allTools, editor, extensionTools, fileMutationTools, fileOperationTools, previewTools, proposalTools, referenceTools, sessionTools, tools };
@@ -0,0 +1,98 @@
1
+ import { k as MCPToolResult, g as MCPTool } from '../../types-Clgf5gBf.js';
2
+
3
+ /**
4
+ * Editor Plugin MCP Tools
5
+ *
6
+ * Editor 插件提供的 MCP Tools(A 类插件,被动响应)
7
+ * 覆盖编辑器会话/状态、文件操作、预览控制、轻量引用、AI proposal/diff 采纳。
8
+ */
9
+
10
+ declare const fileOperationTools: MCPTool[];
11
+ declare const sessionTools: MCPTool[];
12
+ declare const fileMutationTools: MCPTool[];
13
+ declare const previewTools: MCPTool[];
14
+ declare const referenceTools: MCPTool[];
15
+ declare const proposalTools: MCPTool[];
16
+ declare const extensionTools: MCPTool[];
17
+ declare const tools: MCPTool[];
18
+ declare const allTools: MCPTool[];
19
+ declare const editor: {
20
+ openFile: (path: string, line?: number, column?: number) => Promise<MCPToolResult>;
21
+ saveFile: (path?: string) => Promise<MCPToolResult>;
22
+ getDirtyFiles: () => Promise<MCPToolResult>;
23
+ getEditingFile: () => Promise<MCPToolResult>;
24
+ fileSaved: (path: string) => Promise<MCPToolResult>;
25
+ fileEditing: (path: string) => Promise<MCPToolResult>;
26
+ listOpenFiles: () => Promise<MCPToolResult>;
27
+ getActiveFile: () => Promise<MCPToolResult>;
28
+ focusFile: (fileKey: string) => Promise<MCPToolResult>;
29
+ closeFile: (fileKey: string) => Promise<MCPToolResult>;
30
+ saveAllFiles: () => Promise<MCPToolResult>;
31
+ createFile: (path: string, content?: string, rootId?: string) => Promise<MCPToolResult>;
32
+ createDir: (path: string) => Promise<MCPToolResult>;
33
+ renamePath: (oldPath: string, newPath: string) => Promise<MCPToolResult>;
34
+ deletePath: (path: string) => Promise<MCPToolResult>;
35
+ writeFile: (path: string, content: string, rootId?: string) => Promise<MCPToolResult>;
36
+ writeBatch: (changes: Array<{
37
+ path: string;
38
+ content: string;
39
+ }>) => Promise<MCPToolResult>;
40
+ getViewMode: (fileKey?: string) => Promise<MCPToolResult>;
41
+ setViewMode: (mode: "edit" | "preview", fileKey?: string) => Promise<MCPToolResult>;
42
+ renderMarkdownPreview: (path?: string) => Promise<MCPToolResult>;
43
+ resolvePathReference: (path: string) => Promise<MCPToolResult>;
44
+ openReference: (path: string) => Promise<MCPToolResult>;
45
+ searchPaths: (query: string) => Promise<MCPToolResult>;
46
+ createProposal: (title: string, files: unknown[]) => Promise<MCPToolResult>;
47
+ listProposals: () => Promise<MCPToolResult>;
48
+ getProposalDiff: (proposalId: string) => Promise<MCPToolResult>;
49
+ applyProposalAll: (proposalId: string) => Promise<MCPToolResult>;
50
+ applyProposalHunks: (proposalId: string, hunkIds: string[]) => Promise<MCPToolResult>;
51
+ rejectProposal: (proposalId: string) => Promise<MCPToolResult>;
52
+ listExtensions: (type?: string) => Promise<MCPToolResult>;
53
+ runCommand: (extensionId: string, filePath?: string, content?: string, selection?: unknown) => Promise<MCPToolResult>;
54
+ runDiagnostics: (filePath: string, content: string, extensionId?: string, language?: string) => Promise<MCPToolResult>;
55
+ getCompletions: (filePath: string, content: string, line: number, column: number, prefix: string, language?: string) => Promise<MCPToolResult>;
56
+ };
57
+ interface EditorFileInfo {
58
+ path: string;
59
+ content?: string;
60
+ isDirty?: boolean;
61
+ }
62
+ interface CodeSearchMatch {
63
+ path: string;
64
+ lineNumber: number;
65
+ content: string;
66
+ }
67
+ interface CodeSearchResult {
68
+ pattern: string;
69
+ matchCount: number;
70
+ matches: CodeSearchMatch[];
71
+ }
72
+ interface TestResult {
73
+ command: string;
74
+ exitCode: number;
75
+ passed: boolean;
76
+ stdout: string;
77
+ stderr: string;
78
+ summary?: string;
79
+ }
80
+ interface TypecheckResult {
81
+ command: string;
82
+ exitCode: number;
83
+ passed: boolean;
84
+ stdout: string;
85
+ stderr: string;
86
+ errorCount?: number;
87
+ }
88
+ interface LintResult {
89
+ command: string;
90
+ exitCode: number;
91
+ passed: boolean;
92
+ stdout: string;
93
+ stderr: string;
94
+ warningCount?: number;
95
+ errorCount?: number;
96
+ }
97
+
98
+ export { type CodeSearchMatch, type CodeSearchResult, type EditorFileInfo, type LintResult, type TestResult, type TypecheckResult, allTools, editor, extensionTools, fileMutationTools, fileOperationTools, previewTools, proposalTools, referenceTools, sessionTools, tools };
@@ -0,0 +1,2 @@
1
+ export { allTools, editor, extensionTools, fileMutationTools, fileOperationTools, previewTools, proposalTools, referenceTools, sessionTools, tools } from '../../chunk-DSOSHJH2.js';
2
+ import '../../chunk-ANWOL7SM.js';
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ var chunkCVF4QHS6_cjs = require('../../chunk-CVF4QHS6.cjs');
4
+ require('../../chunk-TFOJLA2F.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "allTools", {
9
+ enumerable: true,
10
+ get: function () { return chunkCVF4QHS6_cjs.allTools; }
11
+ });
12
+ Object.defineProperty(exports, "excel", {
13
+ enumerable: true,
14
+ get: function () { return chunkCVF4QHS6_cjs.excel; }
15
+ });
16
+ Object.defineProperty(exports, "lifecycleTools", {
17
+ enumerable: true,
18
+ get: function () { return chunkCVF4QHS6_cjs.lifecycleTools; }
19
+ });
20
+ Object.defineProperty(exports, "mutateTools", {
21
+ enumerable: true,
22
+ get: function () { return chunkCVF4QHS6_cjs.mutateTools; }
23
+ });
24
+ Object.defineProperty(exports, "readTools", {
25
+ enumerable: true,
26
+ get: function () { return chunkCVF4QHS6_cjs.readTools; }
27
+ });
28
+ Object.defineProperty(exports, "tools", {
29
+ enumerable: true,
30
+ get: function () { return chunkCVF4QHS6_cjs.tools; }
31
+ });
@@ -0,0 +1,86 @@
1
+ import { k as MCPToolResult, g as MCPTool } from '../../types-Clgf5gBf.cjs';
2
+
3
+ /**
4
+ * Excel Plugin MCP Tools
5
+ *
6
+ * Excel 插件提供的 MCP Tools(被动响应型插件)
7
+ */
8
+
9
+ declare const readTools: MCPTool[];
10
+ declare const mutateTools: MCPTool[];
11
+ declare const lifecycleTools: MCPTool[];
12
+ declare const tools: MCPTool[];
13
+ declare const allTools: MCPTool[];
14
+ declare const excel: {
15
+ getContext: () => Promise<MCPToolResult>;
16
+ listSheets: () => Promise<MCPToolResult>;
17
+ getSelection: () => Promise<MCPToolResult>;
18
+ readRange: (range: Record<string, unknown>, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
19
+ exportTsv: (range: Record<string, unknown>) => Promise<MCPToolResult>;
20
+ find: (query: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
21
+ getStats: (range: Record<string, unknown>) => Promise<MCPToolResult>;
22
+ createSheet: (name?: string) => Promise<MCPToolResult>;
23
+ deleteSheet: (sheet: Record<string, unknown>) => Promise<MCPToolResult>;
24
+ renameSheet: (sheet: Record<string, unknown>, newName: string) => Promise<MCPToolResult>;
25
+ activateSheet: (sheet: Record<string, unknown>) => Promise<MCPToolResult>;
26
+ duplicateSheet: (sheet: Record<string, unknown>, newName?: string) => Promise<MCPToolResult>;
27
+ setSelection: (range: Record<string, unknown>) => Promise<MCPToolResult>;
28
+ writeRange: (range: Record<string, unknown>, values: unknown[][]) => Promise<MCPToolResult>;
29
+ clearRange: (range: Record<string, unknown>) => Promise<MCPToolResult>;
30
+ applyStyle: (range: Record<string, unknown>, style: Record<string, unknown>) => Promise<MCPToolResult>;
31
+ merge: (range: Record<string, unknown>) => Promise<MCPToolResult>;
32
+ unmerge: (range: Record<string, unknown>) => Promise<MCPToolResult>;
33
+ copyRange: (source: Record<string, unknown>, targetRow: number, targetCol: number) => Promise<MCPToolResult>;
34
+ moveRange: (source: Record<string, unknown>, targetRow: number, targetCol: number) => Promise<MCPToolResult>;
35
+ fillRange: (source: Record<string, unknown>, dest: Record<string, unknown>) => Promise<MCPToolResult>;
36
+ insertRows: (at: number, count?: number) => Promise<MCPToolResult>;
37
+ deleteRows: (at: number, count?: number) => Promise<MCPToolResult>;
38
+ insertCols: (at: number, count?: number) => Promise<MCPToolResult>;
39
+ deleteCols: (at: number, count?: number) => Promise<MCPToolResult>;
40
+ sortRange: (range: Record<string, unknown>, sortCol: number, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
41
+ replaceInRange: (query: string, replacement: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
42
+ batchApply: (operations: Array<{
43
+ type: string;
44
+ params: Record<string, unknown>;
45
+ }>) => Promise<MCPToolResult>;
46
+ openPath: (path: string) => Promise<MCPToolResult>;
47
+ save: () => Promise<MCPToolResult>;
48
+ reload: () => Promise<MCPToolResult>;
49
+ };
50
+ interface ExcelContext {
51
+ filePath: string | null;
52
+ fileType: string;
53
+ activeSheet: string;
54
+ rows: number;
55
+ cols: number;
56
+ version: number;
57
+ }
58
+ interface ExcelSheetInfo {
59
+ name: string;
60
+ rows: number;
61
+ cols: number;
62
+ mergeCount: number;
63
+ }
64
+ interface ExcelSelectionInfo {
65
+ a1: string;
66
+ row: number;
67
+ col: number;
68
+ height: number;
69
+ width: number;
70
+ }
71
+ interface ExcelFindMatch {
72
+ a1: string;
73
+ row: number;
74
+ col: number;
75
+ value: unknown;
76
+ }
77
+ interface ExcelStats {
78
+ sum: number;
79
+ avg: number;
80
+ min: number;
81
+ max: number;
82
+ count: number;
83
+ nonEmpty: number;
84
+ }
85
+
86
+ export { type ExcelContext, type ExcelFindMatch, type ExcelSelectionInfo, type ExcelSheetInfo, type ExcelStats, allTools, excel, lifecycleTools, mutateTools, readTools, tools };
@@ -0,0 +1,86 @@
1
+ import { k as MCPToolResult, g as MCPTool } from '../../types-Clgf5gBf.js';
2
+
3
+ /**
4
+ * Excel Plugin MCP Tools
5
+ *
6
+ * Excel 插件提供的 MCP Tools(被动响应型插件)
7
+ */
8
+
9
+ declare const readTools: MCPTool[];
10
+ declare const mutateTools: MCPTool[];
11
+ declare const lifecycleTools: MCPTool[];
12
+ declare const tools: MCPTool[];
13
+ declare const allTools: MCPTool[];
14
+ declare const excel: {
15
+ getContext: () => Promise<MCPToolResult>;
16
+ listSheets: () => Promise<MCPToolResult>;
17
+ getSelection: () => Promise<MCPToolResult>;
18
+ readRange: (range: Record<string, unknown>, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
19
+ exportTsv: (range: Record<string, unknown>) => Promise<MCPToolResult>;
20
+ find: (query: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
21
+ getStats: (range: Record<string, unknown>) => Promise<MCPToolResult>;
22
+ createSheet: (name?: string) => Promise<MCPToolResult>;
23
+ deleteSheet: (sheet: Record<string, unknown>) => Promise<MCPToolResult>;
24
+ renameSheet: (sheet: Record<string, unknown>, newName: string) => Promise<MCPToolResult>;
25
+ activateSheet: (sheet: Record<string, unknown>) => Promise<MCPToolResult>;
26
+ duplicateSheet: (sheet: Record<string, unknown>, newName?: string) => Promise<MCPToolResult>;
27
+ setSelection: (range: Record<string, unknown>) => Promise<MCPToolResult>;
28
+ writeRange: (range: Record<string, unknown>, values: unknown[][]) => Promise<MCPToolResult>;
29
+ clearRange: (range: Record<string, unknown>) => Promise<MCPToolResult>;
30
+ applyStyle: (range: Record<string, unknown>, style: Record<string, unknown>) => Promise<MCPToolResult>;
31
+ merge: (range: Record<string, unknown>) => Promise<MCPToolResult>;
32
+ unmerge: (range: Record<string, unknown>) => Promise<MCPToolResult>;
33
+ copyRange: (source: Record<string, unknown>, targetRow: number, targetCol: number) => Promise<MCPToolResult>;
34
+ moveRange: (source: Record<string, unknown>, targetRow: number, targetCol: number) => Promise<MCPToolResult>;
35
+ fillRange: (source: Record<string, unknown>, dest: Record<string, unknown>) => Promise<MCPToolResult>;
36
+ insertRows: (at: number, count?: number) => Promise<MCPToolResult>;
37
+ deleteRows: (at: number, count?: number) => Promise<MCPToolResult>;
38
+ insertCols: (at: number, count?: number) => Promise<MCPToolResult>;
39
+ deleteCols: (at: number, count?: number) => Promise<MCPToolResult>;
40
+ sortRange: (range: Record<string, unknown>, sortCol: number, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
41
+ replaceInRange: (query: string, replacement: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
42
+ batchApply: (operations: Array<{
43
+ type: string;
44
+ params: Record<string, unknown>;
45
+ }>) => Promise<MCPToolResult>;
46
+ openPath: (path: string) => Promise<MCPToolResult>;
47
+ save: () => Promise<MCPToolResult>;
48
+ reload: () => Promise<MCPToolResult>;
49
+ };
50
+ interface ExcelContext {
51
+ filePath: string | null;
52
+ fileType: string;
53
+ activeSheet: string;
54
+ rows: number;
55
+ cols: number;
56
+ version: number;
57
+ }
58
+ interface ExcelSheetInfo {
59
+ name: string;
60
+ rows: number;
61
+ cols: number;
62
+ mergeCount: number;
63
+ }
64
+ interface ExcelSelectionInfo {
65
+ a1: string;
66
+ row: number;
67
+ col: number;
68
+ height: number;
69
+ width: number;
70
+ }
71
+ interface ExcelFindMatch {
72
+ a1: string;
73
+ row: number;
74
+ col: number;
75
+ value: unknown;
76
+ }
77
+ interface ExcelStats {
78
+ sum: number;
79
+ avg: number;
80
+ min: number;
81
+ max: number;
82
+ count: number;
83
+ nonEmpty: number;
84
+ }
85
+
86
+ export { type ExcelContext, type ExcelFindMatch, type ExcelSelectionInfo, type ExcelSheetInfo, type ExcelStats, allTools, excel, lifecycleTools, mutateTools, readTools, tools };
@@ -0,0 +1,2 @@
1
+ export { allTools, excel, lifecycleTools, mutateTools, readTools, tools } from '../../chunk-Z7LV7DCO.js';
2
+ import '../../chunk-ANWOL7SM.js';
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var chunkMYURVLGP_cjs = require('../../chunk-MYURVLGP.cjs');
4
+ require('../../chunk-TFOJLA2F.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "coreTools", {
9
+ enumerable: true,
10
+ get: function () { return chunkMYURVLGP_cjs.coreTools; }
11
+ });
12
+ Object.defineProperty(exports, "enhancedTools", {
13
+ enumerable: true,
14
+ get: function () { return chunkMYURVLGP_cjs.enhancedTools; }
15
+ });
16
+ Object.defineProperty(exports, "preview", {
17
+ enumerable: true,
18
+ get: function () { return chunkMYURVLGP_cjs.preview; }
19
+ });
20
+ Object.defineProperty(exports, "tools", {
21
+ enumerable: true,
22
+ get: function () { return chunkMYURVLGP_cjs.tools; }
23
+ });