@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,86 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.cjs';
2
-
3
- /**
4
- * Word Plugin MCP Tools
5
- *
6
- * Word 插件提供的 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 word: {
15
- getContext: () => Promise<MCPToolResult>;
16
- getOutline: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
17
- getSelection: () => Promise<MCPToolResult>;
18
- readContent: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
19
- exportText: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
20
- exportMarkdown: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
21
- exportHtml: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
22
- find: (query: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
23
- listStyles: () => Promise<MCPToolResult>;
24
- setSelection: (target: Record<string, unknown>) => Promise<MCPToolResult>;
25
- replaceContent: (text: string, target?: Record<string, unknown>) => Promise<MCPToolResult>;
26
- insertText: (text: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
27
- insertBlock: (blockType: Record<string, unknown>, content: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
28
- deleteBlock: (target: Record<string, unknown>) => Promise<MCPToolResult>;
29
- moveBlock: (opts: Record<string, unknown>) => Promise<MCPToolResult>;
30
- applyInlineFormat: (style: Record<string, unknown>, target?: Record<string, unknown>) => Promise<MCPToolResult>;
31
- setBlockType: (blockType: Record<string, unknown>, target?: Record<string, unknown>) => Promise<MCPToolResult>;
32
- findReplace: (query: string, replacement: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
33
- batchApply: (operations: Array<{
34
- type: string;
35
- params: Record<string, unknown>;
36
- }>) => Promise<MCPToolResult>;
37
- openPath: (path: string) => Promise<MCPToolResult>;
38
- save: () => Promise<MCPToolResult>;
39
- reload: () => Promise<MCPToolResult>;
40
- };
41
- interface WordContext {
42
- filePath: string | null;
43
- fileType: string;
44
- isDirty: boolean;
45
- isDocImport: boolean;
46
- version: number;
47
- blockCount: number;
48
- charCount: number;
49
- headingCount: number;
50
- selection: {
51
- from: number;
52
- to: number;
53
- hasSelection: boolean;
54
- } | null;
55
- }
56
- interface WordBlockInfo {
57
- blockId: string;
58
- blockIndex: number;
59
- blockType: string;
60
- textPreview: string;
61
- charCount: number;
62
- level?: number;
63
- }
64
- interface WordSelectionInfo {
65
- hasSelection: boolean;
66
- from: number;
67
- to: number;
68
- text: string;
69
- blockIds: string[];
70
- }
71
- interface WordFindMatch {
72
- from: number;
73
- to: number;
74
- text: string;
75
- blockId: string;
76
- contextBefore: string;
77
- contextAfter: string;
78
- }
79
- interface WordContentResult {
80
- text: string;
81
- blocks: WordBlockInfo[];
82
- charCount: number;
83
- truncated: boolean;
84
- }
85
-
86
- export { type WordBlockInfo, type WordContentResult, type WordContext, type WordFindMatch, type WordSelectionInfo, allTools, lifecycleTools, mutateTools, readTools, tools, word };
@@ -1,86 +0,0 @@
1
- import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.js';
2
-
3
- /**
4
- * Word Plugin MCP Tools
5
- *
6
- * Word 插件提供的 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 word: {
15
- getContext: () => Promise<MCPToolResult>;
16
- getOutline: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
17
- getSelection: () => Promise<MCPToolResult>;
18
- readContent: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
19
- exportText: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
20
- exportMarkdown: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
21
- exportHtml: (opts?: Record<string, unknown>) => Promise<MCPToolResult>;
22
- find: (query: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
23
- listStyles: () => Promise<MCPToolResult>;
24
- setSelection: (target: Record<string, unknown>) => Promise<MCPToolResult>;
25
- replaceContent: (text: string, target?: Record<string, unknown>) => Promise<MCPToolResult>;
26
- insertText: (text: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
27
- insertBlock: (blockType: Record<string, unknown>, content: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
28
- deleteBlock: (target: Record<string, unknown>) => Promise<MCPToolResult>;
29
- moveBlock: (opts: Record<string, unknown>) => Promise<MCPToolResult>;
30
- applyInlineFormat: (style: Record<string, unknown>, target?: Record<string, unknown>) => Promise<MCPToolResult>;
31
- setBlockType: (blockType: Record<string, unknown>, target?: Record<string, unknown>) => Promise<MCPToolResult>;
32
- findReplace: (query: string, replacement: string, opts?: Record<string, unknown>) => Promise<MCPToolResult>;
33
- batchApply: (operations: Array<{
34
- type: string;
35
- params: Record<string, unknown>;
36
- }>) => Promise<MCPToolResult>;
37
- openPath: (path: string) => Promise<MCPToolResult>;
38
- save: () => Promise<MCPToolResult>;
39
- reload: () => Promise<MCPToolResult>;
40
- };
41
- interface WordContext {
42
- filePath: string | null;
43
- fileType: string;
44
- isDirty: boolean;
45
- isDocImport: boolean;
46
- version: number;
47
- blockCount: number;
48
- charCount: number;
49
- headingCount: number;
50
- selection: {
51
- from: number;
52
- to: number;
53
- hasSelection: boolean;
54
- } | null;
55
- }
56
- interface WordBlockInfo {
57
- blockId: string;
58
- blockIndex: number;
59
- blockType: string;
60
- textPreview: string;
61
- charCount: number;
62
- level?: number;
63
- }
64
- interface WordSelectionInfo {
65
- hasSelection: boolean;
66
- from: number;
67
- to: number;
68
- text: string;
69
- blockIds: string[];
70
- }
71
- interface WordFindMatch {
72
- from: number;
73
- to: number;
74
- text: string;
75
- blockId: string;
76
- contextBefore: string;
77
- contextAfter: string;
78
- }
79
- interface WordContentResult {
80
- text: string;
81
- blocks: WordBlockInfo[];
82
- charCount: number;
83
- truncated: boolean;
84
- }
85
-
86
- export { type WordBlockInfo, type WordContentResult, type WordContext, type WordFindMatch, type WordSelectionInfo, allTools, lifecycleTools, mutateTools, readTools, tools, word };
@@ -1,2 +0,0 @@
1
- export { allTools, lifecycleTools, mutateTools, readTools, tools, word } from '../../chunk-G66KY35N.js';
2
- import '../../chunk-ANWOL7SM.js';
@@ -1,2 +0,0 @@
1
- export { commandTools, sessionTools, shellPlugin, tools } from './chunk-FLATZQA2.js';
2
- import './chunk-ANWOL7SM.js';
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkISI2OLPI_cjs = require('./chunk-ISI2OLPI.cjs');
4
- require('./chunk-TFOJLA2F.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "commandTools", {
9
- enumerable: true,
10
- get: function () { return chunkISI2OLPI_cjs.commandTools; }
11
- });
12
- Object.defineProperty(exports, "sessionTools", {
13
- enumerable: true,
14
- get: function () { return chunkISI2OLPI_cjs.sessionTools; }
15
- });
16
- Object.defineProperty(exports, "shellPlugin", {
17
- enumerable: true,
18
- get: function () { return chunkISI2OLPI_cjs.shellPlugin; }
19
- });
20
- Object.defineProperty(exports, "tools", {
21
- enumerable: true,
22
- get: function () { return chunkISI2OLPI_cjs.tools; }
23
- });