@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.
- package/README.md +14 -0
- package/bin/seastudio.js +0 -0
- package/dist/{chunk-TFOJLA2F.cjs → chunk-3I7UM66P.cjs} +9 -7
- package/dist/{chunk-SUF5BPSK.cjs → chunk-3IVOSJIO.cjs} +3 -3
- package/dist/chunk-AXT6ZLY2.js +98 -0
- package/dist/{chunk-XU5GEWWL.js → chunk-GPM5XGYM.js} +1 -1
- package/dist/chunk-PYYG6U4M.cjs +109 -0
- package/dist/{chunk-ANWOL7SM.js → chunk-TJ3CGHWJ.js} +9 -7
- package/dist/develop-tool/cli/index.cjs +79 -7
- package/dist/develop-tool/cli/index.js +79 -7
- package/dist/index.cjs +96 -246
- package/dist/index.d.cts +3 -8
- package/dist/index.d.ts +3 -8
- package/dist/index.js +3 -9
- package/dist/mcp/core/index.cjs +22 -22
- package/dist/mcp/core/index.d.cts +10 -7
- package/dist/mcp/core/index.d.ts +10 -7
- package/dist/mcp/core/index.js +1 -1
- package/dist/mcp/index.cjs +49 -199
- package/dist/mcp/index.d.cts +13 -84
- package/dist/mcp/index.d.ts +13 -84
- package/dist/mcp/index.js +3 -9
- package/dist/mcp/seastudio/index.cjs +19 -19
- package/dist/mcp/seastudio/index.d.cts +1 -1
- package/dist/mcp/seastudio/index.d.ts +1 -1
- package/dist/mcp/seastudio/index.js +2 -2
- package/dist/{types-B1Zqr-0Q.d.cts → types-CUFTi2bZ.d.cts} +10 -1
- package/dist/{types-B1Zqr-0Q.d.ts → types-CUFTi2bZ.d.ts} +10 -1
- package/package.json +2 -22
- package/src/develop-tool/templates/plugin/frontend/package.json.tmpl +2 -2
- package/src/develop-tool/templates/plugin/frontend/src/main.tsx +3 -0
- package/src/develop-tool/templates/plugin/frontend/src/mcp-entry.ts.tmpl +12 -0
- package/dist/chunk-4ITOR5QE.js +0 -901
- package/dist/chunk-CVF4QHS6.cjs +0 -436
- package/dist/chunk-DSOSHJH2.js +0 -643
- package/dist/chunk-FLATZQA2.js +0 -174
- package/dist/chunk-G66KY35N.js +0 -334
- package/dist/chunk-HJJTBVKQ.cjs +0 -909
- package/dist/chunk-ISI2OLPI.cjs +0 -179
- package/dist/chunk-MYURVLGP.cjs +0 -165
- package/dist/chunk-ORBVHAAS.cjs +0 -341
- package/dist/chunk-QD4KISXM.js +0 -160
- package/dist/chunk-S2UIBWKA.js +0 -99
- package/dist/chunk-SNGU4SHO.cjs +0 -654
- package/dist/chunk-XIPL7VSP.cjs +0 -110
- package/dist/chunk-Z7LV7DCO.js +0 -429
- package/dist/mcp/plugin-editor/index.cjs +0 -47
- package/dist/mcp/plugin-editor/index.d.cts +0 -98
- package/dist/mcp/plugin-editor/index.d.ts +0 -98
- package/dist/mcp/plugin-editor/index.js +0 -2
- package/dist/mcp/plugin-excel/index.cjs +0 -31
- package/dist/mcp/plugin-excel/index.d.cts +0 -86
- package/dist/mcp/plugin-excel/index.d.ts +0 -86
- package/dist/mcp/plugin-excel/index.js +0 -2
- package/dist/mcp/plugin-preview/index.cjs +0 -23
- package/dist/mcp/plugin-preview/index.d.cts +0 -109
- package/dist/mcp/plugin-preview/index.d.ts +0 -109
- package/dist/mcp/plugin-preview/index.js +0 -2
- package/dist/mcp/plugin-seaflow/index.cjs +0 -35
- package/dist/mcp/plugin-seaflow/index.d.cts +0 -318
- package/dist/mcp/plugin-seaflow/index.d.ts +0 -318
- package/dist/mcp/plugin-seaflow/index.js +0 -2
- package/dist/mcp/plugin-word/index.cjs +0 -31
- package/dist/mcp/plugin-word/index.d.cts +0 -86
- package/dist/mcp/plugin-word/index.d.ts +0 -86
- package/dist/mcp/plugin-word/index.js +0 -2
- package/dist/tools-LMW67LIY.js +0 -2
- 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 };
|
package/dist/tools-LMW67LIY.js
DELETED
package/dist/tools-TU7PBMDO.cjs
DELETED
|
@@ -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
|
-
});
|