@seastudio/sdk 3.0.2 → 3.0.3

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 (59) hide show
  1. package/bin/seastudio.js +0 -0
  2. package/dist/chunk-D7ONFXVY.js +98 -0
  3. package/dist/chunk-EIOFZMTC.cjs +109 -0
  4. package/dist/develop-tool/cli/index.cjs +79 -7
  5. package/dist/develop-tool/cli/index.js +79 -7
  6. package/dist/index.cjs +39 -189
  7. package/dist/index.d.cts +2 -7
  8. package/dist/index.d.ts +2 -7
  9. package/dist/index.js +1 -7
  10. package/dist/mcp/core/index.d.cts +2 -2
  11. package/dist/mcp/core/index.d.ts +2 -2
  12. package/dist/mcp/index.cjs +11 -161
  13. package/dist/mcp/index.d.cts +12 -83
  14. package/dist/mcp/index.d.ts +12 -83
  15. package/dist/mcp/index.js +1 -7
  16. package/dist/mcp/seastudio/index.d.cts +1 -1
  17. package/dist/mcp/seastudio/index.d.ts +1 -1
  18. package/dist/{types-B1Zqr-0Q.d.cts → types-B32sUvc0.d.cts} +9 -1
  19. package/dist/{types-B1Zqr-0Q.d.ts → types-B32sUvc0.d.ts} +9 -1
  20. package/package.json +2 -22
  21. package/src/develop-tool/templates/plugin/frontend/package.json.tmpl +1 -1
  22. package/src/develop-tool/templates/plugin/frontend/src/main.tsx +3 -0
  23. package/src/develop-tool/templates/plugin/frontend/src/mcp-entry.ts.tmpl +12 -0
  24. package/dist/chunk-4ITOR5QE.js +0 -901
  25. package/dist/chunk-CVF4QHS6.cjs +0 -436
  26. package/dist/chunk-DSOSHJH2.js +0 -643
  27. package/dist/chunk-FLATZQA2.js +0 -174
  28. package/dist/chunk-G66KY35N.js +0 -334
  29. package/dist/chunk-HJJTBVKQ.cjs +0 -909
  30. package/dist/chunk-ISI2OLPI.cjs +0 -179
  31. package/dist/chunk-MYURVLGP.cjs +0 -165
  32. package/dist/chunk-ORBVHAAS.cjs +0 -341
  33. package/dist/chunk-QD4KISXM.js +0 -160
  34. package/dist/chunk-S2UIBWKA.js +0 -99
  35. package/dist/chunk-SNGU4SHO.cjs +0 -654
  36. package/dist/chunk-XIPL7VSP.cjs +0 -110
  37. package/dist/chunk-Z7LV7DCO.js +0 -429
  38. package/dist/mcp/plugin-editor/index.cjs +0 -47
  39. package/dist/mcp/plugin-editor/index.d.cts +0 -98
  40. package/dist/mcp/plugin-editor/index.d.ts +0 -98
  41. package/dist/mcp/plugin-editor/index.js +0 -2
  42. package/dist/mcp/plugin-excel/index.cjs +0 -31
  43. package/dist/mcp/plugin-excel/index.d.cts +0 -86
  44. package/dist/mcp/plugin-excel/index.d.ts +0 -86
  45. package/dist/mcp/plugin-excel/index.js +0 -2
  46. package/dist/mcp/plugin-preview/index.cjs +0 -23
  47. package/dist/mcp/plugin-preview/index.d.cts +0 -109
  48. package/dist/mcp/plugin-preview/index.d.ts +0 -109
  49. package/dist/mcp/plugin-preview/index.js +0 -2
  50. package/dist/mcp/plugin-seaflow/index.cjs +0 -35
  51. package/dist/mcp/plugin-seaflow/index.d.cts +0 -318
  52. package/dist/mcp/plugin-seaflow/index.d.ts +0 -318
  53. package/dist/mcp/plugin-seaflow/index.js +0 -2
  54. package/dist/mcp/plugin-word/index.cjs +0 -31
  55. package/dist/mcp/plugin-word/index.d.cts +0 -86
  56. package/dist/mcp/plugin-word/index.d.ts +0 -86
  57. package/dist/mcp/plugin-word/index.js +0 -2
  58. package/dist/tools-LMW67LIY.js +0 -2
  59. 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
- });