@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.
- package/bin/seastudio.js +0 -0
- package/dist/chunk-D7ONFXVY.js +98 -0
- package/dist/chunk-EIOFZMTC.cjs +109 -0
- package/dist/develop-tool/cli/index.cjs +79 -7
- package/dist/develop-tool/cli/index.js +79 -7
- package/dist/index.cjs +39 -189
- package/dist/index.d.cts +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +1 -7
- package/dist/mcp/core/index.d.cts +2 -2
- package/dist/mcp/core/index.d.ts +2 -2
- package/dist/mcp/index.cjs +11 -161
- package/dist/mcp/index.d.cts +12 -83
- package/dist/mcp/index.d.ts +12 -83
- package/dist/mcp/index.js +1 -7
- package/dist/mcp/seastudio/index.d.cts +1 -1
- package/dist/mcp/seastudio/index.d.ts +1 -1
- package/dist/{types-B1Zqr-0Q.d.cts → types-B32sUvc0.d.cts} +9 -1
- package/dist/{types-B1Zqr-0Q.d.ts → types-B32sUvc0.d.ts} +9 -1
- package/package.json +2 -22
- package/src/develop-tool/templates/plugin/frontend/package.json.tmpl +1 -1
- 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,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkHJJTBVKQ_cjs = require('../../chunk-HJJTBVKQ.cjs');
|
|
4
|
-
require('../../chunk-TFOJLA2F.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "allTools", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkHJJTBVKQ_cjs.allTools; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "canvasAuthTools", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkHJJTBVKQ_cjs.canvasAuthTools; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "canvasContextTools", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkHJJTBVKQ_cjs.canvasContextTools; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "canvasExecutionTools", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkHJJTBVKQ_cjs.canvasExecutionTools; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "canvasExtendedTools", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkHJJTBVKQ_cjs.canvasExtendedTools; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "seaflow", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkHJJTBVKQ_cjs.seaflow; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "tools", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return chunkHJJTBVKQ_cjs.tools; }
|
|
35
|
-
});
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* SeaFlow Plugin MCP Tools
|
|
5
|
-
*
|
|
6
|
-
* SeaFlow 插件提供的 MCP Tools(B 类插件,画布执行与编排)
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
declare const canvasContextTools: MCPTool[];
|
|
10
|
-
declare const canvasExecutionTools: MCPTool[];
|
|
11
|
-
declare const canvasAuthTools: MCPTool[];
|
|
12
|
-
declare const canvasExtendedTools: MCPTool[];
|
|
13
|
-
declare const tools: MCPTool[];
|
|
14
|
-
declare const allTools: MCPTool[];
|
|
15
|
-
declare const seaflow: {
|
|
16
|
-
getSnapshot: (graphId?: string) => Promise<MCPToolResult>;
|
|
17
|
-
getWorkflowContext: () => Promise<MCPToolResult>;
|
|
18
|
-
clearCanvas: () => Promise<MCPToolResult>;
|
|
19
|
-
listNodeTypes: (options?: {
|
|
20
|
-
includeBasic?: boolean;
|
|
21
|
-
includeAliases?: boolean;
|
|
22
|
-
includeCapabilities?: boolean;
|
|
23
|
-
includeSchemas?: boolean;
|
|
24
|
-
executableOnly?: boolean;
|
|
25
|
-
typeIds?: string[];
|
|
26
|
-
}) => Promise<MCPToolResult>;
|
|
27
|
-
batchApply: (operations: Array<Record<string, unknown>>, options: {
|
|
28
|
-
requestId: string;
|
|
29
|
-
idempotencyKey: string;
|
|
30
|
-
baseVersion: number;
|
|
31
|
-
}) => Promise<MCPToolResult>;
|
|
32
|
-
validateNode: (nodeId: string, strict?: boolean) => Promise<MCPToolResult>;
|
|
33
|
-
getNodeOutputs: (nodeId: string) => Promise<MCPToolResult>;
|
|
34
|
-
getNode: (nodeId: string) => Promise<MCPToolResult>;
|
|
35
|
-
listEdges: (options?: {
|
|
36
|
-
nodeId?: string;
|
|
37
|
-
direction?: "in" | "out" | "both";
|
|
38
|
-
}) => Promise<MCPToolResult>;
|
|
39
|
-
executeNode: (nodeId: string, target?: "seaart" | "staging") => Promise<MCPToolResult>;
|
|
40
|
-
executeGraph: (graphId?: string, target?: "seaart" | "staging", source?: "auto" | "remote" | "local") => Promise<MCPToolResult>;
|
|
41
|
-
openWorkflow: (workflowId: string, options?: {
|
|
42
|
-
target?: "seaart" | "staging";
|
|
43
|
-
source?: "auto" | "remote" | "local";
|
|
44
|
-
syncActiveGraph?: boolean;
|
|
45
|
-
}) => Promise<MCPToolResult>;
|
|
46
|
-
saveWorkflow: (options?: {
|
|
47
|
-
workflowId?: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
target?: "seaart" | "staging";
|
|
50
|
-
persistLocal?: boolean;
|
|
51
|
-
persistRemote?: boolean;
|
|
52
|
-
includeViewport?: boolean;
|
|
53
|
-
isCanvas?: boolean;
|
|
54
|
-
versionId?: string;
|
|
55
|
-
}) => Promise<MCPToolResult>;
|
|
56
|
-
cancelTask: (taskId: string) => Promise<MCPToolResult>;
|
|
57
|
-
getTaskState: (taskId: string) => Promise<MCPToolResult>;
|
|
58
|
-
listTasks: (options?: {
|
|
59
|
-
status?: CanvasTaskStatus;
|
|
60
|
-
nodeId?: string;
|
|
61
|
-
}) => Promise<MCPToolResult>;
|
|
62
|
-
waitTaskResult: (taskId: string, options?: {
|
|
63
|
-
timeoutMs?: number;
|
|
64
|
-
pollIntervalMs?: number;
|
|
65
|
-
includeEvents?: boolean;
|
|
66
|
-
}) => Promise<MCPToolResult>;
|
|
67
|
-
reconnectTask: (options?: {
|
|
68
|
-
taskId?: string;
|
|
69
|
-
nodeId?: string;
|
|
70
|
-
target?: "seaart" | "staging";
|
|
71
|
-
timeoutMs?: number;
|
|
72
|
-
includeEvents?: boolean;
|
|
73
|
-
}) => Promise<MCPToolResult>;
|
|
74
|
-
getExecutionAuth: () => Promise<MCPToolResult>;
|
|
75
|
-
setExecutionAuth: (target: "seaart" | "staging", token: string, persistMode?: "memory" | "session" | "local") => Promise<MCPToolResult>;
|
|
76
|
-
upsertImageNode: (input: {
|
|
77
|
-
nodeId?: string;
|
|
78
|
-
label?: string;
|
|
79
|
-
prompt: string;
|
|
80
|
-
negativePrompt?: string;
|
|
81
|
-
model?: string;
|
|
82
|
-
mode?: string;
|
|
83
|
-
resolution?: string;
|
|
84
|
-
aspectRatio?: string;
|
|
85
|
-
seed?: number;
|
|
86
|
-
nIter?: number;
|
|
87
|
-
width?: number;
|
|
88
|
-
height?: number;
|
|
89
|
-
}) => Promise<MCPToolResult>;
|
|
90
|
-
upsertTextNode: (input: {
|
|
91
|
-
nodeId?: string;
|
|
92
|
-
label?: string;
|
|
93
|
-
prompt: string;
|
|
94
|
-
model?: string;
|
|
95
|
-
negativePrompt?: string;
|
|
96
|
-
systemPrompt?: string;
|
|
97
|
-
modalMode?: "text" | "image_to_text" | "video_to_text";
|
|
98
|
-
maxTokens?: number;
|
|
99
|
-
temperature?: number;
|
|
100
|
-
topP?: number;
|
|
101
|
-
}) => Promise<MCPToolResult>;
|
|
102
|
-
connectNodes: (input: {
|
|
103
|
-
sourceNodeId: string;
|
|
104
|
-
targetNodeId: string;
|
|
105
|
-
sourceField?: string;
|
|
106
|
-
targetField?: string;
|
|
107
|
-
sourceHandle?: string;
|
|
108
|
-
targetHandle?: string;
|
|
109
|
-
edgeType?: string;
|
|
110
|
-
}) => Promise<MCPToolResult>;
|
|
111
|
-
executeNodeAndWait: (nodeId: string, options?: {
|
|
112
|
-
target?: "seaart" | "staging";
|
|
113
|
-
timeoutMs?: number;
|
|
114
|
-
pollIntervalMs?: number;
|
|
115
|
-
includeEvents?: boolean;
|
|
116
|
-
}) => Promise<MCPToolResult>;
|
|
117
|
-
generateImageFromPrompt: (input: {
|
|
118
|
-
nodeId?: string;
|
|
119
|
-
label?: string;
|
|
120
|
-
prompt: string;
|
|
121
|
-
negativePrompt?: string;
|
|
122
|
-
model?: string;
|
|
123
|
-
mode?: string;
|
|
124
|
-
resolution?: string;
|
|
125
|
-
aspectRatio?: string;
|
|
126
|
-
seed?: number;
|
|
127
|
-
nIter?: number;
|
|
128
|
-
width?: number;
|
|
129
|
-
height?: number;
|
|
130
|
-
target?: "seaart" | "staging";
|
|
131
|
-
timeoutMs?: number;
|
|
132
|
-
pollIntervalMs?: number;
|
|
133
|
-
}) => Promise<MCPToolResult>;
|
|
134
|
-
};
|
|
135
|
-
type CanvasTaskStatus = 'accepted' | 'queued' | 'running' | 'completed' | 'failed' | 'error' | 'canceled';
|
|
136
|
-
interface CanvasBatchApplyResult {
|
|
137
|
-
accepted: boolean;
|
|
138
|
-
nextVersion?: number;
|
|
139
|
-
appliedCount?: number;
|
|
140
|
-
conflicts?: Array<{
|
|
141
|
-
code: string;
|
|
142
|
-
message: string;
|
|
143
|
-
operationIndex?: number;
|
|
144
|
-
}>;
|
|
145
|
-
}
|
|
146
|
-
interface CanvasWorkflowContextResult {
|
|
147
|
-
activeWorkflowId: string;
|
|
148
|
-
graphId: string;
|
|
149
|
-
version: number;
|
|
150
|
-
nodeCount: number;
|
|
151
|
-
edgeCount: number;
|
|
152
|
-
viewport?: {
|
|
153
|
-
x: number;
|
|
154
|
-
y: number;
|
|
155
|
-
zoom: number;
|
|
156
|
-
};
|
|
157
|
-
autosaveStorageKey?: string;
|
|
158
|
-
target?: string;
|
|
159
|
-
updatedAt?: number;
|
|
160
|
-
}
|
|
161
|
-
interface CanvasClearCanvasResult {
|
|
162
|
-
accepted: boolean;
|
|
163
|
-
graphId?: string;
|
|
164
|
-
clearedNodeCount?: number;
|
|
165
|
-
clearedEdgeCount?: number;
|
|
166
|
-
viewport?: {
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
zoom: number;
|
|
170
|
-
};
|
|
171
|
-
updatedAt?: number;
|
|
172
|
-
}
|
|
173
|
-
interface CanvasWorkflowOpenResult {
|
|
174
|
-
accepted: boolean;
|
|
175
|
-
workflowId?: string;
|
|
176
|
-
source?: 'remote' | 'local';
|
|
177
|
-
nodeCount?: number;
|
|
178
|
-
edgeCount?: number;
|
|
179
|
-
name?: string;
|
|
180
|
-
viewport?: {
|
|
181
|
-
x: number;
|
|
182
|
-
y: number;
|
|
183
|
-
zoom: number;
|
|
184
|
-
};
|
|
185
|
-
reason?: string;
|
|
186
|
-
}
|
|
187
|
-
interface CanvasWorkflowSaveResult {
|
|
188
|
-
accepted: boolean;
|
|
189
|
-
workflowId?: string;
|
|
190
|
-
localSaved?: boolean;
|
|
191
|
-
remoteSaved?: boolean;
|
|
192
|
-
remoteError?: string;
|
|
193
|
-
nodeCount?: number;
|
|
194
|
-
edgeCount?: number;
|
|
195
|
-
viewport?: {
|
|
196
|
-
x: number;
|
|
197
|
-
y: number;
|
|
198
|
-
zoom: number;
|
|
199
|
-
};
|
|
200
|
-
updatedAt?: string;
|
|
201
|
-
reason?: string;
|
|
202
|
-
}
|
|
203
|
-
interface CanvasExecutionTaskState {
|
|
204
|
-
taskId: string;
|
|
205
|
-
target?: string;
|
|
206
|
-
status: CanvasTaskStatus;
|
|
207
|
-
progress?: number;
|
|
208
|
-
message?: string;
|
|
209
|
-
updatedAt?: number;
|
|
210
|
-
}
|
|
211
|
-
type CanvasExecutionAuthState = 'READY' | 'MISSING' | 'INVALID';
|
|
212
|
-
type CanvasExecutionPersistMode = 'memory' | 'session' | 'local';
|
|
213
|
-
interface CanvasExecutionAuthSnapshot {
|
|
214
|
-
currentTarget: string;
|
|
215
|
-
persistMode: CanvasExecutionPersistMode;
|
|
216
|
-
authStateByTarget: Record<string, CanvasExecutionAuthState>;
|
|
217
|
-
hasTokenByTarget: Record<string, boolean>;
|
|
218
|
-
updatedAt?: number;
|
|
219
|
-
}
|
|
220
|
-
interface CanvasRuntimeDirective {
|
|
221
|
-
kind: 'call_tool' | 'await_tool_result' | 'finalize' | 'fail';
|
|
222
|
-
toolName?: string;
|
|
223
|
-
input?: Record<string, unknown>;
|
|
224
|
-
finalText?: string;
|
|
225
|
-
reason?: string;
|
|
226
|
-
code?: string;
|
|
227
|
-
}
|
|
228
|
-
interface CanvasTaskWaitResult {
|
|
229
|
-
accepted: boolean;
|
|
230
|
-
taskId: string;
|
|
231
|
-
target?: string;
|
|
232
|
-
status: CanvasTaskStatus;
|
|
233
|
-
progress?: number;
|
|
234
|
-
message?: string;
|
|
235
|
-
terminal: boolean;
|
|
236
|
-
result?: Record<string, unknown>;
|
|
237
|
-
outputs?: Record<string, unknown>;
|
|
238
|
-
eventsProcessed?: number;
|
|
239
|
-
updatedAt?: number;
|
|
240
|
-
runtimeDirective?: CanvasRuntimeDirective;
|
|
241
|
-
}
|
|
242
|
-
interface CanvasTaskReconnectItem {
|
|
243
|
-
accepted: boolean;
|
|
244
|
-
taskId?: string;
|
|
245
|
-
target?: string;
|
|
246
|
-
status?: CanvasTaskStatus;
|
|
247
|
-
progress?: number;
|
|
248
|
-
message?: string;
|
|
249
|
-
terminal?: boolean;
|
|
250
|
-
outputs?: Record<string, unknown>;
|
|
251
|
-
result?: Record<string, unknown>;
|
|
252
|
-
eventsProcessed?: number;
|
|
253
|
-
updatedAt?: number;
|
|
254
|
-
reason?: string;
|
|
255
|
-
}
|
|
256
|
-
interface CanvasTaskReconnectResult {
|
|
257
|
-
accepted: boolean;
|
|
258
|
-
total: number;
|
|
259
|
-
acceptedCount: number;
|
|
260
|
-
terminalCount: number;
|
|
261
|
-
items: CanvasTaskReconnectItem[];
|
|
262
|
-
updatedAt?: number;
|
|
263
|
-
reason?: string;
|
|
264
|
-
}
|
|
265
|
-
interface CanvasNodeValidationResult {
|
|
266
|
-
nodeId: string;
|
|
267
|
-
nodeType?: string;
|
|
268
|
-
valid: boolean;
|
|
269
|
-
errors: string[];
|
|
270
|
-
warnings?: string[];
|
|
271
|
-
}
|
|
272
|
-
interface CanvasNodeOutputsResult {
|
|
273
|
-
nodeId: string;
|
|
274
|
-
outputs: Record<string, unknown>;
|
|
275
|
-
selectedOutputUrlIndex?: number;
|
|
276
|
-
updatedAt?: number;
|
|
277
|
-
}
|
|
278
|
-
interface CanvasNodeDetailResult {
|
|
279
|
-
nodeId: string;
|
|
280
|
-
nodeType: string;
|
|
281
|
-
position?: Record<string, unknown>;
|
|
282
|
-
selected?: boolean;
|
|
283
|
-
label?: string;
|
|
284
|
-
inputs: Record<string, unknown>;
|
|
285
|
-
runtime: Record<string, unknown>;
|
|
286
|
-
outputs: Record<string, unknown>;
|
|
287
|
-
updatedAt?: number;
|
|
288
|
-
}
|
|
289
|
-
interface CanvasEdgeListItem {
|
|
290
|
-
id: string;
|
|
291
|
-
source: string;
|
|
292
|
-
sourceHandle?: string;
|
|
293
|
-
target: string;
|
|
294
|
-
targetHandle?: string;
|
|
295
|
-
type?: string;
|
|
296
|
-
}
|
|
297
|
-
interface CanvasEdgeListResult {
|
|
298
|
-
total: number;
|
|
299
|
-
items: CanvasEdgeListItem[];
|
|
300
|
-
updatedAt?: number;
|
|
301
|
-
}
|
|
302
|
-
interface CanvasTaskListItem {
|
|
303
|
-
taskId: string;
|
|
304
|
-
nodeId?: string;
|
|
305
|
-
nodeType?: string;
|
|
306
|
-
target?: string;
|
|
307
|
-
status: CanvasTaskStatus;
|
|
308
|
-
progress?: number;
|
|
309
|
-
message?: string;
|
|
310
|
-
updatedAt?: number;
|
|
311
|
-
}
|
|
312
|
-
interface CanvasTaskListResult {
|
|
313
|
-
total: number;
|
|
314
|
-
items: CanvasTaskListItem[];
|
|
315
|
-
updatedAt?: number;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export { type CanvasBatchApplyResult, type CanvasClearCanvasResult, type CanvasEdgeListItem, type CanvasEdgeListResult, type CanvasExecutionAuthSnapshot, type CanvasExecutionAuthState, type CanvasExecutionPersistMode, type CanvasExecutionTaskState, type CanvasNodeDetailResult, type CanvasNodeOutputsResult, type CanvasNodeValidationResult, type CanvasRuntimeDirective, type CanvasTaskListItem, type CanvasTaskListResult, type CanvasTaskReconnectItem, type CanvasTaskReconnectResult, type CanvasTaskStatus, type CanvasTaskWaitResult, type CanvasWorkflowContextResult, type CanvasWorkflowOpenResult, type CanvasWorkflowSaveResult, allTools, canvasAuthTools, canvasContextTools, canvasExecutionTools, canvasExtendedTools, seaflow, tools };
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { k as MCPToolResult, g as MCPTool } from '../../types-B1Zqr-0Q.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* SeaFlow Plugin MCP Tools
|
|
5
|
-
*
|
|
6
|
-
* SeaFlow 插件提供的 MCP Tools(B 类插件,画布执行与编排)
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
declare const canvasContextTools: MCPTool[];
|
|
10
|
-
declare const canvasExecutionTools: MCPTool[];
|
|
11
|
-
declare const canvasAuthTools: MCPTool[];
|
|
12
|
-
declare const canvasExtendedTools: MCPTool[];
|
|
13
|
-
declare const tools: MCPTool[];
|
|
14
|
-
declare const allTools: MCPTool[];
|
|
15
|
-
declare const seaflow: {
|
|
16
|
-
getSnapshot: (graphId?: string) => Promise<MCPToolResult>;
|
|
17
|
-
getWorkflowContext: () => Promise<MCPToolResult>;
|
|
18
|
-
clearCanvas: () => Promise<MCPToolResult>;
|
|
19
|
-
listNodeTypes: (options?: {
|
|
20
|
-
includeBasic?: boolean;
|
|
21
|
-
includeAliases?: boolean;
|
|
22
|
-
includeCapabilities?: boolean;
|
|
23
|
-
includeSchemas?: boolean;
|
|
24
|
-
executableOnly?: boolean;
|
|
25
|
-
typeIds?: string[];
|
|
26
|
-
}) => Promise<MCPToolResult>;
|
|
27
|
-
batchApply: (operations: Array<Record<string, unknown>>, options: {
|
|
28
|
-
requestId: string;
|
|
29
|
-
idempotencyKey: string;
|
|
30
|
-
baseVersion: number;
|
|
31
|
-
}) => Promise<MCPToolResult>;
|
|
32
|
-
validateNode: (nodeId: string, strict?: boolean) => Promise<MCPToolResult>;
|
|
33
|
-
getNodeOutputs: (nodeId: string) => Promise<MCPToolResult>;
|
|
34
|
-
getNode: (nodeId: string) => Promise<MCPToolResult>;
|
|
35
|
-
listEdges: (options?: {
|
|
36
|
-
nodeId?: string;
|
|
37
|
-
direction?: "in" | "out" | "both";
|
|
38
|
-
}) => Promise<MCPToolResult>;
|
|
39
|
-
executeNode: (nodeId: string, target?: "seaart" | "staging") => Promise<MCPToolResult>;
|
|
40
|
-
executeGraph: (graphId?: string, target?: "seaart" | "staging", source?: "auto" | "remote" | "local") => Promise<MCPToolResult>;
|
|
41
|
-
openWorkflow: (workflowId: string, options?: {
|
|
42
|
-
target?: "seaart" | "staging";
|
|
43
|
-
source?: "auto" | "remote" | "local";
|
|
44
|
-
syncActiveGraph?: boolean;
|
|
45
|
-
}) => Promise<MCPToolResult>;
|
|
46
|
-
saveWorkflow: (options?: {
|
|
47
|
-
workflowId?: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
target?: "seaart" | "staging";
|
|
50
|
-
persistLocal?: boolean;
|
|
51
|
-
persistRemote?: boolean;
|
|
52
|
-
includeViewport?: boolean;
|
|
53
|
-
isCanvas?: boolean;
|
|
54
|
-
versionId?: string;
|
|
55
|
-
}) => Promise<MCPToolResult>;
|
|
56
|
-
cancelTask: (taskId: string) => Promise<MCPToolResult>;
|
|
57
|
-
getTaskState: (taskId: string) => Promise<MCPToolResult>;
|
|
58
|
-
listTasks: (options?: {
|
|
59
|
-
status?: CanvasTaskStatus;
|
|
60
|
-
nodeId?: string;
|
|
61
|
-
}) => Promise<MCPToolResult>;
|
|
62
|
-
waitTaskResult: (taskId: string, options?: {
|
|
63
|
-
timeoutMs?: number;
|
|
64
|
-
pollIntervalMs?: number;
|
|
65
|
-
includeEvents?: boolean;
|
|
66
|
-
}) => Promise<MCPToolResult>;
|
|
67
|
-
reconnectTask: (options?: {
|
|
68
|
-
taskId?: string;
|
|
69
|
-
nodeId?: string;
|
|
70
|
-
target?: "seaart" | "staging";
|
|
71
|
-
timeoutMs?: number;
|
|
72
|
-
includeEvents?: boolean;
|
|
73
|
-
}) => Promise<MCPToolResult>;
|
|
74
|
-
getExecutionAuth: () => Promise<MCPToolResult>;
|
|
75
|
-
setExecutionAuth: (target: "seaart" | "staging", token: string, persistMode?: "memory" | "session" | "local") => Promise<MCPToolResult>;
|
|
76
|
-
upsertImageNode: (input: {
|
|
77
|
-
nodeId?: string;
|
|
78
|
-
label?: string;
|
|
79
|
-
prompt: string;
|
|
80
|
-
negativePrompt?: string;
|
|
81
|
-
model?: string;
|
|
82
|
-
mode?: string;
|
|
83
|
-
resolution?: string;
|
|
84
|
-
aspectRatio?: string;
|
|
85
|
-
seed?: number;
|
|
86
|
-
nIter?: number;
|
|
87
|
-
width?: number;
|
|
88
|
-
height?: number;
|
|
89
|
-
}) => Promise<MCPToolResult>;
|
|
90
|
-
upsertTextNode: (input: {
|
|
91
|
-
nodeId?: string;
|
|
92
|
-
label?: string;
|
|
93
|
-
prompt: string;
|
|
94
|
-
model?: string;
|
|
95
|
-
negativePrompt?: string;
|
|
96
|
-
systemPrompt?: string;
|
|
97
|
-
modalMode?: "text" | "image_to_text" | "video_to_text";
|
|
98
|
-
maxTokens?: number;
|
|
99
|
-
temperature?: number;
|
|
100
|
-
topP?: number;
|
|
101
|
-
}) => Promise<MCPToolResult>;
|
|
102
|
-
connectNodes: (input: {
|
|
103
|
-
sourceNodeId: string;
|
|
104
|
-
targetNodeId: string;
|
|
105
|
-
sourceField?: string;
|
|
106
|
-
targetField?: string;
|
|
107
|
-
sourceHandle?: string;
|
|
108
|
-
targetHandle?: string;
|
|
109
|
-
edgeType?: string;
|
|
110
|
-
}) => Promise<MCPToolResult>;
|
|
111
|
-
executeNodeAndWait: (nodeId: string, options?: {
|
|
112
|
-
target?: "seaart" | "staging";
|
|
113
|
-
timeoutMs?: number;
|
|
114
|
-
pollIntervalMs?: number;
|
|
115
|
-
includeEvents?: boolean;
|
|
116
|
-
}) => Promise<MCPToolResult>;
|
|
117
|
-
generateImageFromPrompt: (input: {
|
|
118
|
-
nodeId?: string;
|
|
119
|
-
label?: string;
|
|
120
|
-
prompt: string;
|
|
121
|
-
negativePrompt?: string;
|
|
122
|
-
model?: string;
|
|
123
|
-
mode?: string;
|
|
124
|
-
resolution?: string;
|
|
125
|
-
aspectRatio?: string;
|
|
126
|
-
seed?: number;
|
|
127
|
-
nIter?: number;
|
|
128
|
-
width?: number;
|
|
129
|
-
height?: number;
|
|
130
|
-
target?: "seaart" | "staging";
|
|
131
|
-
timeoutMs?: number;
|
|
132
|
-
pollIntervalMs?: number;
|
|
133
|
-
}) => Promise<MCPToolResult>;
|
|
134
|
-
};
|
|
135
|
-
type CanvasTaskStatus = 'accepted' | 'queued' | 'running' | 'completed' | 'failed' | 'error' | 'canceled';
|
|
136
|
-
interface CanvasBatchApplyResult {
|
|
137
|
-
accepted: boolean;
|
|
138
|
-
nextVersion?: number;
|
|
139
|
-
appliedCount?: number;
|
|
140
|
-
conflicts?: Array<{
|
|
141
|
-
code: string;
|
|
142
|
-
message: string;
|
|
143
|
-
operationIndex?: number;
|
|
144
|
-
}>;
|
|
145
|
-
}
|
|
146
|
-
interface CanvasWorkflowContextResult {
|
|
147
|
-
activeWorkflowId: string;
|
|
148
|
-
graphId: string;
|
|
149
|
-
version: number;
|
|
150
|
-
nodeCount: number;
|
|
151
|
-
edgeCount: number;
|
|
152
|
-
viewport?: {
|
|
153
|
-
x: number;
|
|
154
|
-
y: number;
|
|
155
|
-
zoom: number;
|
|
156
|
-
};
|
|
157
|
-
autosaveStorageKey?: string;
|
|
158
|
-
target?: string;
|
|
159
|
-
updatedAt?: number;
|
|
160
|
-
}
|
|
161
|
-
interface CanvasClearCanvasResult {
|
|
162
|
-
accepted: boolean;
|
|
163
|
-
graphId?: string;
|
|
164
|
-
clearedNodeCount?: number;
|
|
165
|
-
clearedEdgeCount?: number;
|
|
166
|
-
viewport?: {
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
zoom: number;
|
|
170
|
-
};
|
|
171
|
-
updatedAt?: number;
|
|
172
|
-
}
|
|
173
|
-
interface CanvasWorkflowOpenResult {
|
|
174
|
-
accepted: boolean;
|
|
175
|
-
workflowId?: string;
|
|
176
|
-
source?: 'remote' | 'local';
|
|
177
|
-
nodeCount?: number;
|
|
178
|
-
edgeCount?: number;
|
|
179
|
-
name?: string;
|
|
180
|
-
viewport?: {
|
|
181
|
-
x: number;
|
|
182
|
-
y: number;
|
|
183
|
-
zoom: number;
|
|
184
|
-
};
|
|
185
|
-
reason?: string;
|
|
186
|
-
}
|
|
187
|
-
interface CanvasWorkflowSaveResult {
|
|
188
|
-
accepted: boolean;
|
|
189
|
-
workflowId?: string;
|
|
190
|
-
localSaved?: boolean;
|
|
191
|
-
remoteSaved?: boolean;
|
|
192
|
-
remoteError?: string;
|
|
193
|
-
nodeCount?: number;
|
|
194
|
-
edgeCount?: number;
|
|
195
|
-
viewport?: {
|
|
196
|
-
x: number;
|
|
197
|
-
y: number;
|
|
198
|
-
zoom: number;
|
|
199
|
-
};
|
|
200
|
-
updatedAt?: string;
|
|
201
|
-
reason?: string;
|
|
202
|
-
}
|
|
203
|
-
interface CanvasExecutionTaskState {
|
|
204
|
-
taskId: string;
|
|
205
|
-
target?: string;
|
|
206
|
-
status: CanvasTaskStatus;
|
|
207
|
-
progress?: number;
|
|
208
|
-
message?: string;
|
|
209
|
-
updatedAt?: number;
|
|
210
|
-
}
|
|
211
|
-
type CanvasExecutionAuthState = 'READY' | 'MISSING' | 'INVALID';
|
|
212
|
-
type CanvasExecutionPersistMode = 'memory' | 'session' | 'local';
|
|
213
|
-
interface CanvasExecutionAuthSnapshot {
|
|
214
|
-
currentTarget: string;
|
|
215
|
-
persistMode: CanvasExecutionPersistMode;
|
|
216
|
-
authStateByTarget: Record<string, CanvasExecutionAuthState>;
|
|
217
|
-
hasTokenByTarget: Record<string, boolean>;
|
|
218
|
-
updatedAt?: number;
|
|
219
|
-
}
|
|
220
|
-
interface CanvasRuntimeDirective {
|
|
221
|
-
kind: 'call_tool' | 'await_tool_result' | 'finalize' | 'fail';
|
|
222
|
-
toolName?: string;
|
|
223
|
-
input?: Record<string, unknown>;
|
|
224
|
-
finalText?: string;
|
|
225
|
-
reason?: string;
|
|
226
|
-
code?: string;
|
|
227
|
-
}
|
|
228
|
-
interface CanvasTaskWaitResult {
|
|
229
|
-
accepted: boolean;
|
|
230
|
-
taskId: string;
|
|
231
|
-
target?: string;
|
|
232
|
-
status: CanvasTaskStatus;
|
|
233
|
-
progress?: number;
|
|
234
|
-
message?: string;
|
|
235
|
-
terminal: boolean;
|
|
236
|
-
result?: Record<string, unknown>;
|
|
237
|
-
outputs?: Record<string, unknown>;
|
|
238
|
-
eventsProcessed?: number;
|
|
239
|
-
updatedAt?: number;
|
|
240
|
-
runtimeDirective?: CanvasRuntimeDirective;
|
|
241
|
-
}
|
|
242
|
-
interface CanvasTaskReconnectItem {
|
|
243
|
-
accepted: boolean;
|
|
244
|
-
taskId?: string;
|
|
245
|
-
target?: string;
|
|
246
|
-
status?: CanvasTaskStatus;
|
|
247
|
-
progress?: number;
|
|
248
|
-
message?: string;
|
|
249
|
-
terminal?: boolean;
|
|
250
|
-
outputs?: Record<string, unknown>;
|
|
251
|
-
result?: Record<string, unknown>;
|
|
252
|
-
eventsProcessed?: number;
|
|
253
|
-
updatedAt?: number;
|
|
254
|
-
reason?: string;
|
|
255
|
-
}
|
|
256
|
-
interface CanvasTaskReconnectResult {
|
|
257
|
-
accepted: boolean;
|
|
258
|
-
total: number;
|
|
259
|
-
acceptedCount: number;
|
|
260
|
-
terminalCount: number;
|
|
261
|
-
items: CanvasTaskReconnectItem[];
|
|
262
|
-
updatedAt?: number;
|
|
263
|
-
reason?: string;
|
|
264
|
-
}
|
|
265
|
-
interface CanvasNodeValidationResult {
|
|
266
|
-
nodeId: string;
|
|
267
|
-
nodeType?: string;
|
|
268
|
-
valid: boolean;
|
|
269
|
-
errors: string[];
|
|
270
|
-
warnings?: string[];
|
|
271
|
-
}
|
|
272
|
-
interface CanvasNodeOutputsResult {
|
|
273
|
-
nodeId: string;
|
|
274
|
-
outputs: Record<string, unknown>;
|
|
275
|
-
selectedOutputUrlIndex?: number;
|
|
276
|
-
updatedAt?: number;
|
|
277
|
-
}
|
|
278
|
-
interface CanvasNodeDetailResult {
|
|
279
|
-
nodeId: string;
|
|
280
|
-
nodeType: string;
|
|
281
|
-
position?: Record<string, unknown>;
|
|
282
|
-
selected?: boolean;
|
|
283
|
-
label?: string;
|
|
284
|
-
inputs: Record<string, unknown>;
|
|
285
|
-
runtime: Record<string, unknown>;
|
|
286
|
-
outputs: Record<string, unknown>;
|
|
287
|
-
updatedAt?: number;
|
|
288
|
-
}
|
|
289
|
-
interface CanvasEdgeListItem {
|
|
290
|
-
id: string;
|
|
291
|
-
source: string;
|
|
292
|
-
sourceHandle?: string;
|
|
293
|
-
target: string;
|
|
294
|
-
targetHandle?: string;
|
|
295
|
-
type?: string;
|
|
296
|
-
}
|
|
297
|
-
interface CanvasEdgeListResult {
|
|
298
|
-
total: number;
|
|
299
|
-
items: CanvasEdgeListItem[];
|
|
300
|
-
updatedAt?: number;
|
|
301
|
-
}
|
|
302
|
-
interface CanvasTaskListItem {
|
|
303
|
-
taskId: string;
|
|
304
|
-
nodeId?: string;
|
|
305
|
-
nodeType?: string;
|
|
306
|
-
target?: string;
|
|
307
|
-
status: CanvasTaskStatus;
|
|
308
|
-
progress?: number;
|
|
309
|
-
message?: string;
|
|
310
|
-
updatedAt?: number;
|
|
311
|
-
}
|
|
312
|
-
interface CanvasTaskListResult {
|
|
313
|
-
total: number;
|
|
314
|
-
items: CanvasTaskListItem[];
|
|
315
|
-
updatedAt?: number;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export { type CanvasBatchApplyResult, type CanvasClearCanvasResult, type CanvasEdgeListItem, type CanvasEdgeListResult, type CanvasExecutionAuthSnapshot, type CanvasExecutionAuthState, type CanvasExecutionPersistMode, type CanvasExecutionTaskState, type CanvasNodeDetailResult, type CanvasNodeOutputsResult, type CanvasNodeValidationResult, type CanvasRuntimeDirective, type CanvasTaskListItem, type CanvasTaskListResult, type CanvasTaskReconnectItem, type CanvasTaskReconnectResult, type CanvasTaskStatus, type CanvasTaskWaitResult, type CanvasWorkflowContextResult, type CanvasWorkflowOpenResult, type CanvasWorkflowSaveResult, allTools, canvasAuthTools, canvasContextTools, canvasExecutionTools, canvasExtendedTools, seaflow, tools };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkORBVHAAS_cjs = require('../../chunk-ORBVHAAS.cjs');
|
|
4
|
-
require('../../chunk-TFOJLA2F.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "allTools", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkORBVHAAS_cjs.allTools; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "lifecycleTools", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkORBVHAAS_cjs.lifecycleTools; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "mutateTools", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkORBVHAAS_cjs.mutateTools; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "readTools", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkORBVHAAS_cjs.readTools; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "tools", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkORBVHAAS_cjs.tools; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "word", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkORBVHAAS_cjs.word; }
|
|
31
|
-
});
|