@seastudio/sdk 3.0.2 → 3.0.4

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 (68) hide show
  1. package/README.md +14 -0
  2. package/bin/seastudio.js +0 -0
  3. package/dist/{chunk-TFOJLA2F.cjs → chunk-3I7UM66P.cjs} +9 -7
  4. package/dist/{chunk-SUF5BPSK.cjs → chunk-3IVOSJIO.cjs} +3 -3
  5. package/dist/chunk-AXT6ZLY2.js +98 -0
  6. package/dist/{chunk-XU5GEWWL.js → chunk-GPM5XGYM.js} +1 -1
  7. package/dist/chunk-PYYG6U4M.cjs +109 -0
  8. package/dist/{chunk-ANWOL7SM.js → chunk-TJ3CGHWJ.js} +9 -7
  9. package/dist/develop-tool/cli/index.cjs +79 -7
  10. package/dist/develop-tool/cli/index.js +79 -7
  11. package/dist/index.cjs +96 -246
  12. package/dist/index.d.cts +3 -8
  13. package/dist/index.d.ts +3 -8
  14. package/dist/index.js +3 -9
  15. package/dist/mcp/core/index.cjs +22 -22
  16. package/dist/mcp/core/index.d.cts +10 -7
  17. package/dist/mcp/core/index.d.ts +10 -7
  18. package/dist/mcp/core/index.js +1 -1
  19. package/dist/mcp/index.cjs +49 -199
  20. package/dist/mcp/index.d.cts +13 -84
  21. package/dist/mcp/index.d.ts +13 -84
  22. package/dist/mcp/index.js +3 -9
  23. package/dist/mcp/seastudio/index.cjs +19 -19
  24. package/dist/mcp/seastudio/index.d.cts +1 -1
  25. package/dist/mcp/seastudio/index.d.ts +1 -1
  26. package/dist/mcp/seastudio/index.js +2 -2
  27. package/dist/{types-B1Zqr-0Q.d.cts → types-CUFTi2bZ.d.cts} +10 -1
  28. package/dist/{types-B1Zqr-0Q.d.ts → types-CUFTi2bZ.d.ts} +10 -1
  29. package/package.json +2 -22
  30. package/src/develop-tool/templates/plugin/frontend/package.json.tmpl +2 -2
  31. package/src/develop-tool/templates/plugin/frontend/src/main.tsx +3 -0
  32. package/src/develop-tool/templates/plugin/frontend/src/mcp-entry.ts.tmpl +12 -0
  33. package/dist/chunk-4ITOR5QE.js +0 -901
  34. package/dist/chunk-CVF4QHS6.cjs +0 -436
  35. package/dist/chunk-DSOSHJH2.js +0 -643
  36. package/dist/chunk-FLATZQA2.js +0 -174
  37. package/dist/chunk-G66KY35N.js +0 -334
  38. package/dist/chunk-HJJTBVKQ.cjs +0 -909
  39. package/dist/chunk-ISI2OLPI.cjs +0 -179
  40. package/dist/chunk-MYURVLGP.cjs +0 -165
  41. package/dist/chunk-ORBVHAAS.cjs +0 -341
  42. package/dist/chunk-QD4KISXM.js +0 -160
  43. package/dist/chunk-S2UIBWKA.js +0 -99
  44. package/dist/chunk-SNGU4SHO.cjs +0 -654
  45. package/dist/chunk-XIPL7VSP.cjs +0 -110
  46. package/dist/chunk-Z7LV7DCO.js +0 -429
  47. package/dist/mcp/plugin-editor/index.cjs +0 -47
  48. package/dist/mcp/plugin-editor/index.d.cts +0 -98
  49. package/dist/mcp/plugin-editor/index.d.ts +0 -98
  50. package/dist/mcp/plugin-editor/index.js +0 -2
  51. package/dist/mcp/plugin-excel/index.cjs +0 -31
  52. package/dist/mcp/plugin-excel/index.d.cts +0 -86
  53. package/dist/mcp/plugin-excel/index.d.ts +0 -86
  54. package/dist/mcp/plugin-excel/index.js +0 -2
  55. package/dist/mcp/plugin-preview/index.cjs +0 -23
  56. package/dist/mcp/plugin-preview/index.d.cts +0 -109
  57. package/dist/mcp/plugin-preview/index.d.ts +0 -109
  58. package/dist/mcp/plugin-preview/index.js +0 -2
  59. package/dist/mcp/plugin-seaflow/index.cjs +0 -35
  60. package/dist/mcp/plugin-seaflow/index.d.cts +0 -318
  61. package/dist/mcp/plugin-seaflow/index.d.ts +0 -318
  62. package/dist/mcp/plugin-seaflow/index.js +0 -2
  63. package/dist/mcp/plugin-word/index.cjs +0 -31
  64. package/dist/mcp/plugin-word/index.d.cts +0 -86
  65. package/dist/mcp/plugin-word/index.d.ts +0 -86
  66. package/dist/mcp/plugin-word/index.js +0 -2
  67. package/dist/tools-LMW67LIY.js +0 -2
  68. package/dist/tools-TU7PBMDO.cjs +0 -23
@@ -1,98 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.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 };
@@ -1,98 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.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 };
@@ -1,2 +0,0 @@
1
- export { allTools, editor, extensionTools, fileMutationTools, fileOperationTools, previewTools, proposalTools, referenceTools, sessionTools, tools } from '../../chunk-DSOSHJH2.js';
2
- import '../../chunk-ANWOL7SM.js';
@@ -1,31 +0,0 @@
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
- });
@@ -1,86 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.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 };
@@ -1,86 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.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 };
@@ -1,2 +0,0 @@
1
- export { allTools, excel, lifecycleTools, mutateTools, readTools, tools } from '../../chunk-Z7LV7DCO.js';
2
- import '../../chunk-ANWOL7SM.js';
@@ -1,23 +0,0 @@
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
- });
@@ -1,109 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.cjs';
2
-
3
- /**
4
- * Preview Plugin MCP Tools
5
- *
6
- * 专用于图片、视频、音频等媒体文件的预览工具。
7
- * 代码 / Markdown / 纯文本由 codeEditor 插件处理,不应走 preview。
8
- */
9
-
10
- type PreviewRootId = 'workspace';
11
- declare const coreTools: MCPTool[];
12
- declare const enhancedTools: MCPTool[];
13
- declare const tools: MCPTool[];
14
- declare const preview: {
15
- get: (path: string, options?: {
16
- rootId?: PreviewRootId;
17
- }) => Promise<MCPToolResult>;
18
- resolveCapability: (path: string, options?: {
19
- rootId?: PreviewRootId;
20
- }) => Promise<MCPToolResult>;
21
- getMetadata: (path: string, options?: {
22
- rootId?: PreviewRootId;
23
- }) => Promise<MCPToolResult>;
24
- getThumbnail: (path: string, options?: {
25
- rootId?: PreviewRootId;
26
- width?: number;
27
- height?: number;
28
- }) => Promise<MCPToolResult>;
29
- file: (path: string, options?: {
30
- rootId?: PreviewRootId;
31
- }) => Promise<MCPToolResult>;
32
- batch: (paths: string[], options?: {
33
- rootId?: PreviewRootId;
34
- }) => Promise<MCPToolResult>;
35
- batchGet: (paths: string[], options?: {
36
- rootId?: PreviewRootId;
37
- includeThumbnail?: boolean;
38
- thumbnailSize?: number;
39
- }) => Promise<MCPToolResult>;
40
- extractText: (path: string, options?: {
41
- rootId?: PreviewRootId;
42
- }) => Promise<MCPToolResult>;
43
- compareVersions: (leftPath: string, rightPath: string, options?: {
44
- leftRootId?: PreviewRootId;
45
- rightRootId?: PreviewRootId;
46
- }) => Promise<MCPToolResult>;
47
- };
48
- type PreviewMode = 'direct' | 'converted' | 'metadata_only';
49
- type RenderKind = 'text' | 'code' | 'image' | 'pdf' | 'audio' | 'video' | 'office' | 'markdown' | 'html' | 'unknown';
50
- interface PreviewCapability {
51
- mode: PreviewMode;
52
- renderKind: RenderKind;
53
- editable?: boolean;
54
- }
55
- interface PreviewMetadata {
56
- name: string;
57
- path: string;
58
- extension?: string;
59
- mimeType?: string;
60
- size?: number;
61
- }
62
- interface PreviewGetResponse {
63
- capability: PreviewCapability;
64
- metadata: PreviewMetadata;
65
- payload?: {
66
- text?: string;
67
- url?: string;
68
- html?: string;
69
- };
70
- }
71
- interface PreviewThumbnail {
72
- url: string;
73
- width?: number;
74
- height?: number;
75
- }
76
- interface PreviewBatchItem {
77
- path: string;
78
- success: boolean;
79
- result?: PreviewGetResponse;
80
- error?: string;
81
- }
82
- interface PreviewBatchResult {
83
- total: number;
84
- succeeded: number;
85
- failed: number;
86
- items: PreviewBatchItem[];
87
- }
88
- interface PreviewBatchEntry {
89
- path: string;
90
- capability?: PreviewCapability;
91
- metadata?: PreviewMetadata;
92
- thumbnailUrl?: string;
93
- thumbnailMimeType?: string;
94
- error?: string;
95
- }
96
- interface PreviewBatchGetResponse {
97
- entries: PreviewBatchEntry[];
98
- total: number;
99
- successCount: number;
100
- failedCount: number;
101
- }
102
- interface PreviewCompareVersionsResult {
103
- leftPath: string;
104
- rightPath: string;
105
- changed: boolean;
106
- summary: string;
107
- }
108
-
109
- export { type PreviewBatchEntry, type PreviewBatchGetResponse, type PreviewBatchItem, type PreviewBatchResult, type PreviewCapability, type PreviewCompareVersionsResult, type PreviewGetResponse, type PreviewMetadata, type PreviewMode, type PreviewThumbnail, type RenderKind, coreTools, enhancedTools, preview, tools };
@@ -1,109 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.js';
2
-
3
- /**
4
- * Preview Plugin MCP Tools
5
- *
6
- * 专用于图片、视频、音频等媒体文件的预览工具。
7
- * 代码 / Markdown / 纯文本由 codeEditor 插件处理,不应走 preview。
8
- */
9
-
10
- type PreviewRootId = 'workspace';
11
- declare const coreTools: MCPTool[];
12
- declare const enhancedTools: MCPTool[];
13
- declare const tools: MCPTool[];
14
- declare const preview: {
15
- get: (path: string, options?: {
16
- rootId?: PreviewRootId;
17
- }) => Promise<MCPToolResult>;
18
- resolveCapability: (path: string, options?: {
19
- rootId?: PreviewRootId;
20
- }) => Promise<MCPToolResult>;
21
- getMetadata: (path: string, options?: {
22
- rootId?: PreviewRootId;
23
- }) => Promise<MCPToolResult>;
24
- getThumbnail: (path: string, options?: {
25
- rootId?: PreviewRootId;
26
- width?: number;
27
- height?: number;
28
- }) => Promise<MCPToolResult>;
29
- file: (path: string, options?: {
30
- rootId?: PreviewRootId;
31
- }) => Promise<MCPToolResult>;
32
- batch: (paths: string[], options?: {
33
- rootId?: PreviewRootId;
34
- }) => Promise<MCPToolResult>;
35
- batchGet: (paths: string[], options?: {
36
- rootId?: PreviewRootId;
37
- includeThumbnail?: boolean;
38
- thumbnailSize?: number;
39
- }) => Promise<MCPToolResult>;
40
- extractText: (path: string, options?: {
41
- rootId?: PreviewRootId;
42
- }) => Promise<MCPToolResult>;
43
- compareVersions: (leftPath: string, rightPath: string, options?: {
44
- leftRootId?: PreviewRootId;
45
- rightRootId?: PreviewRootId;
46
- }) => Promise<MCPToolResult>;
47
- };
48
- type PreviewMode = 'direct' | 'converted' | 'metadata_only';
49
- type RenderKind = 'text' | 'code' | 'image' | 'pdf' | 'audio' | 'video' | 'office' | 'markdown' | 'html' | 'unknown';
50
- interface PreviewCapability {
51
- mode: PreviewMode;
52
- renderKind: RenderKind;
53
- editable?: boolean;
54
- }
55
- interface PreviewMetadata {
56
- name: string;
57
- path: string;
58
- extension?: string;
59
- mimeType?: string;
60
- size?: number;
61
- }
62
- interface PreviewGetResponse {
63
- capability: PreviewCapability;
64
- metadata: PreviewMetadata;
65
- payload?: {
66
- text?: string;
67
- url?: string;
68
- html?: string;
69
- };
70
- }
71
- interface PreviewThumbnail {
72
- url: string;
73
- width?: number;
74
- height?: number;
75
- }
76
- interface PreviewBatchItem {
77
- path: string;
78
- success: boolean;
79
- result?: PreviewGetResponse;
80
- error?: string;
81
- }
82
- interface PreviewBatchResult {
83
- total: number;
84
- succeeded: number;
85
- failed: number;
86
- items: PreviewBatchItem[];
87
- }
88
- interface PreviewBatchEntry {
89
- path: string;
90
- capability?: PreviewCapability;
91
- metadata?: PreviewMetadata;
92
- thumbnailUrl?: string;
93
- thumbnailMimeType?: string;
94
- error?: string;
95
- }
96
- interface PreviewBatchGetResponse {
97
- entries: PreviewBatchEntry[];
98
- total: number;
99
- successCount: number;
100
- failedCount: number;
101
- }
102
- interface PreviewCompareVersionsResult {
103
- leftPath: string;
104
- rightPath: string;
105
- changed: boolean;
106
- summary: string;
107
- }
108
-
109
- export { type PreviewBatchEntry, type PreviewBatchGetResponse, type PreviewBatchItem, type PreviewBatchResult, type PreviewCapability, type PreviewCompareVersionsResult, type PreviewGetResponse, type PreviewMetadata, type PreviewMode, type PreviewThumbnail, type RenderKind, coreTools, enhancedTools, preview, tools };
@@ -1,2 +0,0 @@
1
- export { coreTools, enhancedTools, preview, tools } from '../../chunk-QD4KISXM.js';
2
- import '../../chunk-ANWOL7SM.js';