@seastudio/sdk 3.2.4 → 3.3.0
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/dist/{chunk-OFGU4HO7.cjs → chunk-2MGJLIRZ.cjs} +4 -4
- package/dist/{chunk-P2PM5DNR.js → chunk-CJ2BXMJ3.js} +325 -174
- package/dist/{chunk-SYMWE636.cjs → chunk-GEPSOYJN.cjs} +12 -5
- package/dist/{chunk-2JKO4ISE.cjs → chunk-RRDE5HQX.cjs} +330 -174
- package/dist/{chunk-7WCCFXYM.js → chunk-VFDZPHJD.js} +1 -1
- package/dist/{chunk-4JAYW5GM.js → chunk-X62SRZS4.js} +12 -5
- package/dist/index.cjs +38 -38
- package/dist/index.js +3 -3
- package/dist/mcp/index.cjs +24 -24
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/seastudio/index.cjs +45 -25
- package/dist/mcp/seastudio/index.d.cts +114 -27
- package/dist/mcp/seastudio/index.d.ts +114 -27
- package/dist/mcp/seastudio/index.js +1 -1
- package/dist/ui/index.cjs +14 -14
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
|
@@ -12,14 +12,19 @@ declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
|
12
12
|
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
13
13
|
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
14
14
|
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
15
|
-
declare const shellCommandEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
15
|
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
|
+
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
|
+
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
18
|
+
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
19
|
+
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
20
|
declare const fileTools: MCPTool[];
|
|
18
21
|
|
|
19
22
|
/**
|
|
20
23
|
* Shell MCP Tools
|
|
21
24
|
*
|
|
22
|
-
*
|
|
25
|
+
* 基于 PTY 的多 session 长会话工具。
|
|
26
|
+
* 全部 session 命令式 API:
|
|
27
|
+
* open / list / get / run / wait / get_entries / signal / clear_entries / close
|
|
23
28
|
*/
|
|
24
29
|
|
|
25
30
|
declare const shellTools: MCPTool[];
|
|
@@ -38,7 +43,15 @@ declare const seaCloudTools: MCPTool[];
|
|
|
38
43
|
* 供 TS/JS 代码直接调用 MCP 的便利 API
|
|
39
44
|
*/
|
|
40
45
|
|
|
41
|
-
type SeastudioFilesystemRootId = 'workspace'
|
|
46
|
+
type SeastudioFilesystemRootId = 'workspace' | `proj-${string}`;
|
|
47
|
+
interface SeastudioProjectInfo {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
path: string;
|
|
51
|
+
lastActiveAt: number;
|
|
52
|
+
isActive: boolean;
|
|
53
|
+
rootId: SeastudioFilesystemRootId;
|
|
54
|
+
}
|
|
42
55
|
interface SeastudioFilesystemRoot {
|
|
43
56
|
id: SeastudioFilesystemRootId;
|
|
44
57
|
label: string;
|
|
@@ -81,6 +94,8 @@ interface SeastudioSinglePathOptions {
|
|
|
81
94
|
}
|
|
82
95
|
interface SeastudioFileDownloadOptions {
|
|
83
96
|
rootId?: SeastudioFilesystemRootId;
|
|
97
|
+
/** 若设置则下载到该本地绝对目录(可含 ~),忽略 path 与 rootId */
|
|
98
|
+
absoluteDir?: string;
|
|
84
99
|
}
|
|
85
100
|
interface SeastudioFileSearchOptions {
|
|
86
101
|
rootId?: SeastudioFilesystemRootId;
|
|
@@ -101,33 +116,83 @@ interface SeastudioBatchFlattenPreviewOptions {
|
|
|
101
116
|
}
|
|
102
117
|
interface SeastudioBatchFlattenCopyOptions extends SeastudioFileTransferOptions {
|
|
103
118
|
}
|
|
104
|
-
type
|
|
105
|
-
|
|
119
|
+
type SeastudioShellKind = 'bash' | 'pwsh' | 'cmd' | 'sh';
|
|
120
|
+
type SeastudioShellEntryLevel = 'command' | 'stdout' | 'meta' | 'exit';
|
|
121
|
+
interface SeastudioShellEntry {
|
|
106
122
|
id: number;
|
|
107
|
-
level:
|
|
123
|
+
level: SeastudioShellEntryLevel;
|
|
108
124
|
content: string;
|
|
109
125
|
createdAt: number;
|
|
126
|
+
commandId?: string;
|
|
110
127
|
}
|
|
111
|
-
interface
|
|
112
|
-
|
|
128
|
+
interface SeastudioShellSession {
|
|
129
|
+
sessionId: string;
|
|
130
|
+
shell: SeastudioShellKind;
|
|
113
131
|
cwd: string | null;
|
|
114
|
-
|
|
115
|
-
|
|
132
|
+
pid: number;
|
|
133
|
+
alive: boolean;
|
|
134
|
+
openedAt: number;
|
|
135
|
+
label?: string;
|
|
136
|
+
pluginId?: string;
|
|
137
|
+
projectId?: string;
|
|
138
|
+
agentInstanceId?: string;
|
|
139
|
+
pendingCommandId: string | null;
|
|
140
|
+
lastCommandId: string | null;
|
|
116
141
|
lastExitCode: number | null;
|
|
117
142
|
lastDurationMs: number | null;
|
|
118
|
-
lastCommandAt: number | null;
|
|
119
|
-
historyCount: number;
|
|
120
143
|
entryCount: number;
|
|
144
|
+
droppedCount: number;
|
|
145
|
+
}
|
|
146
|
+
interface SeastudioShellOpenOptions {
|
|
147
|
+
shell?: 'auto' | SeastudioShellKind;
|
|
148
|
+
cwd?: string;
|
|
149
|
+
env?: Record<string, string>;
|
|
150
|
+
label?: string;
|
|
151
|
+
cols?: number;
|
|
152
|
+
rows?: number;
|
|
153
|
+
}
|
|
154
|
+
interface SeastudioShellRunOptions {
|
|
155
|
+
timeoutMs?: number;
|
|
156
|
+
}
|
|
157
|
+
interface SeastudioShellRunResult {
|
|
158
|
+
sessionId: string;
|
|
159
|
+
commandId: string;
|
|
160
|
+
startedAt: number;
|
|
161
|
+
running: boolean;
|
|
162
|
+
}
|
|
163
|
+
interface SeastudioShellWaitResult {
|
|
164
|
+
commandId: string;
|
|
165
|
+
exitCode: number | null;
|
|
166
|
+
durationMs: number;
|
|
167
|
+
finished: boolean;
|
|
168
|
+
timedOut: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface SeastudioShellGetEntriesOptions {
|
|
171
|
+
sinceId?: number;
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
interface SeastudioShellGetEntriesResult {
|
|
175
|
+
entries: SeastudioShellEntry[];
|
|
176
|
+
nextSinceId: number;
|
|
177
|
+
totalEntries: number;
|
|
178
|
+
droppedCount: number;
|
|
179
|
+
}
|
|
180
|
+
interface SeastudioShellSignalResult {
|
|
181
|
+
sessionId: string;
|
|
182
|
+
signal: 'INT' | 'TERM' | 'KILL';
|
|
183
|
+
ok: boolean;
|
|
184
|
+
deliveredAt: number;
|
|
185
|
+
}
|
|
186
|
+
interface SeastudioShellCloseResult {
|
|
187
|
+
sessionId: string;
|
|
188
|
+
closed: boolean;
|
|
189
|
+
exitCode: number | null;
|
|
121
190
|
}
|
|
122
|
-
interface
|
|
123
|
-
|
|
124
|
-
cwd: string;
|
|
125
|
-
exitCode: number;
|
|
191
|
+
interface SeastudioShellOneShotResult {
|
|
192
|
+
exitCode: number | null;
|
|
126
193
|
stdout: string;
|
|
127
|
-
stderr: string;
|
|
128
|
-
error: string | null;
|
|
129
194
|
durationMs: number;
|
|
130
|
-
|
|
195
|
+
timedOut: boolean;
|
|
131
196
|
}
|
|
132
197
|
declare function callTool(name: string, args?: Record<string, unknown>): Promise<MCPToolResult>;
|
|
133
198
|
declare function request<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
@@ -138,6 +203,10 @@ declare const seastudio: {
|
|
|
138
203
|
roots: SeastudioFilesystemRoot[];
|
|
139
204
|
}>;
|
|
140
205
|
};
|
|
206
|
+
project: {
|
|
207
|
+
list: () => Promise<MCPToolResult>;
|
|
208
|
+
getActive: () => Promise<MCPToolResult>;
|
|
209
|
+
};
|
|
141
210
|
file: {
|
|
142
211
|
getSelected: () => Promise<MCPToolResult>;
|
|
143
212
|
read: (path: string, options?: SeastudioFileReadOptions) => Promise<MCPToolResult>;
|
|
@@ -166,17 +235,27 @@ declare const seastudio: {
|
|
|
166
235
|
readBinary: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
167
236
|
};
|
|
168
237
|
shell: {
|
|
169
|
-
execute: (command: string, cwd?: string, timeout?: number) => Promise<MCPToolResult>;
|
|
170
238
|
session: {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
239
|
+
open: (options?: SeastudioShellOpenOptions) => Promise<MCPToolResult>;
|
|
240
|
+
list: () => Promise<MCPToolResult>;
|
|
241
|
+
get: (sessionId: string) => Promise<MCPToolResult>;
|
|
242
|
+
run: (sessionId: string, command: string, options?: SeastudioShellRunOptions) => Promise<MCPToolResult>;
|
|
243
|
+
wait: (sessionId: string, commandId: string, timeoutMs?: number) => Promise<MCPToolResult>;
|
|
244
|
+
getEntries: (sessionId: string, options?: SeastudioShellGetEntriesOptions) => Promise<MCPToolResult>;
|
|
245
|
+
signal: (sessionId: string, signal: "INT" | "TERM" | "KILL", commandId?: string) => Promise<MCPToolResult>;
|
|
246
|
+
clearEntries: (sessionId: string) => Promise<MCPToolResult>;
|
|
247
|
+
close: (sessionId: string, force?: boolean) => Promise<MCPToolResult>;
|
|
177
248
|
};
|
|
178
249
|
};
|
|
179
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* One-shot helper: open a transient session, run command, wait, close.
|
|
253
|
+
* Returns aggregated stdout/exit info. Useful for short, non-interactive commands
|
|
254
|
+
* (e.g. `git status`). For long-running tasks use `seastudio.shell.session` directly.
|
|
255
|
+
*/
|
|
256
|
+
declare function runOneShotShellCommand(command: string, options?: SeastudioShellOpenOptions & {
|
|
257
|
+
timeoutMs?: number;
|
|
258
|
+
}): Promise<SeastudioShellOneShotResult>;
|
|
180
259
|
|
|
181
260
|
/**
|
|
182
261
|
* Plugin MCP Tools
|
|
@@ -196,6 +275,14 @@ declare const pluginTabTools: MCPTool[];
|
|
|
196
275
|
declare const agentManagementTools: MCPTool[];
|
|
197
276
|
declare const agentTabTools: MCPTool[];
|
|
198
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Project MCP Tools
|
|
280
|
+
*
|
|
281
|
+
* 项目枚举与寻址:让 agent 能列出所有项目并按需跨项目操作。
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
declare const projectTools: MCPTool[];
|
|
285
|
+
|
|
199
286
|
/**
|
|
200
287
|
* SeaStudio MCP Notifications
|
|
201
288
|
*
|
|
@@ -524,4 +611,4 @@ interface SessionDeleteRequestedParams {
|
|
|
524
611
|
declare const allTools: MCPTool[];
|
|
525
612
|
declare const tools: MCPTool[];
|
|
526
613
|
|
|
527
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, SeastudioRequests, type
|
|
614
|
+
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, SeastudioRequests, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, tools };
|
|
@@ -12,14 +12,19 @@ declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
|
12
12
|
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
13
13
|
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
14
14
|
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
15
|
-
declare const shellCommandEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
15
|
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
|
+
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
|
+
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
18
|
+
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
19
|
+
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
20
|
declare const fileTools: MCPTool[];
|
|
18
21
|
|
|
19
22
|
/**
|
|
20
23
|
* Shell MCP Tools
|
|
21
24
|
*
|
|
22
|
-
*
|
|
25
|
+
* 基于 PTY 的多 session 长会话工具。
|
|
26
|
+
* 全部 session 命令式 API:
|
|
27
|
+
* open / list / get / run / wait / get_entries / signal / clear_entries / close
|
|
23
28
|
*/
|
|
24
29
|
|
|
25
30
|
declare const shellTools: MCPTool[];
|
|
@@ -38,7 +43,15 @@ declare const seaCloudTools: MCPTool[];
|
|
|
38
43
|
* 供 TS/JS 代码直接调用 MCP 的便利 API
|
|
39
44
|
*/
|
|
40
45
|
|
|
41
|
-
type SeastudioFilesystemRootId = 'workspace'
|
|
46
|
+
type SeastudioFilesystemRootId = 'workspace' | `proj-${string}`;
|
|
47
|
+
interface SeastudioProjectInfo {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
path: string;
|
|
51
|
+
lastActiveAt: number;
|
|
52
|
+
isActive: boolean;
|
|
53
|
+
rootId: SeastudioFilesystemRootId;
|
|
54
|
+
}
|
|
42
55
|
interface SeastudioFilesystemRoot {
|
|
43
56
|
id: SeastudioFilesystemRootId;
|
|
44
57
|
label: string;
|
|
@@ -81,6 +94,8 @@ interface SeastudioSinglePathOptions {
|
|
|
81
94
|
}
|
|
82
95
|
interface SeastudioFileDownloadOptions {
|
|
83
96
|
rootId?: SeastudioFilesystemRootId;
|
|
97
|
+
/** 若设置则下载到该本地绝对目录(可含 ~),忽略 path 与 rootId */
|
|
98
|
+
absoluteDir?: string;
|
|
84
99
|
}
|
|
85
100
|
interface SeastudioFileSearchOptions {
|
|
86
101
|
rootId?: SeastudioFilesystemRootId;
|
|
@@ -101,33 +116,83 @@ interface SeastudioBatchFlattenPreviewOptions {
|
|
|
101
116
|
}
|
|
102
117
|
interface SeastudioBatchFlattenCopyOptions extends SeastudioFileTransferOptions {
|
|
103
118
|
}
|
|
104
|
-
type
|
|
105
|
-
|
|
119
|
+
type SeastudioShellKind = 'bash' | 'pwsh' | 'cmd' | 'sh';
|
|
120
|
+
type SeastudioShellEntryLevel = 'command' | 'stdout' | 'meta' | 'exit';
|
|
121
|
+
interface SeastudioShellEntry {
|
|
106
122
|
id: number;
|
|
107
|
-
level:
|
|
123
|
+
level: SeastudioShellEntryLevel;
|
|
108
124
|
content: string;
|
|
109
125
|
createdAt: number;
|
|
126
|
+
commandId?: string;
|
|
110
127
|
}
|
|
111
|
-
interface
|
|
112
|
-
|
|
128
|
+
interface SeastudioShellSession {
|
|
129
|
+
sessionId: string;
|
|
130
|
+
shell: SeastudioShellKind;
|
|
113
131
|
cwd: string | null;
|
|
114
|
-
|
|
115
|
-
|
|
132
|
+
pid: number;
|
|
133
|
+
alive: boolean;
|
|
134
|
+
openedAt: number;
|
|
135
|
+
label?: string;
|
|
136
|
+
pluginId?: string;
|
|
137
|
+
projectId?: string;
|
|
138
|
+
agentInstanceId?: string;
|
|
139
|
+
pendingCommandId: string | null;
|
|
140
|
+
lastCommandId: string | null;
|
|
116
141
|
lastExitCode: number | null;
|
|
117
142
|
lastDurationMs: number | null;
|
|
118
|
-
lastCommandAt: number | null;
|
|
119
|
-
historyCount: number;
|
|
120
143
|
entryCount: number;
|
|
144
|
+
droppedCount: number;
|
|
145
|
+
}
|
|
146
|
+
interface SeastudioShellOpenOptions {
|
|
147
|
+
shell?: 'auto' | SeastudioShellKind;
|
|
148
|
+
cwd?: string;
|
|
149
|
+
env?: Record<string, string>;
|
|
150
|
+
label?: string;
|
|
151
|
+
cols?: number;
|
|
152
|
+
rows?: number;
|
|
153
|
+
}
|
|
154
|
+
interface SeastudioShellRunOptions {
|
|
155
|
+
timeoutMs?: number;
|
|
156
|
+
}
|
|
157
|
+
interface SeastudioShellRunResult {
|
|
158
|
+
sessionId: string;
|
|
159
|
+
commandId: string;
|
|
160
|
+
startedAt: number;
|
|
161
|
+
running: boolean;
|
|
162
|
+
}
|
|
163
|
+
interface SeastudioShellWaitResult {
|
|
164
|
+
commandId: string;
|
|
165
|
+
exitCode: number | null;
|
|
166
|
+
durationMs: number;
|
|
167
|
+
finished: boolean;
|
|
168
|
+
timedOut: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface SeastudioShellGetEntriesOptions {
|
|
171
|
+
sinceId?: number;
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
interface SeastudioShellGetEntriesResult {
|
|
175
|
+
entries: SeastudioShellEntry[];
|
|
176
|
+
nextSinceId: number;
|
|
177
|
+
totalEntries: number;
|
|
178
|
+
droppedCount: number;
|
|
179
|
+
}
|
|
180
|
+
interface SeastudioShellSignalResult {
|
|
181
|
+
sessionId: string;
|
|
182
|
+
signal: 'INT' | 'TERM' | 'KILL';
|
|
183
|
+
ok: boolean;
|
|
184
|
+
deliveredAt: number;
|
|
185
|
+
}
|
|
186
|
+
interface SeastudioShellCloseResult {
|
|
187
|
+
sessionId: string;
|
|
188
|
+
closed: boolean;
|
|
189
|
+
exitCode: number | null;
|
|
121
190
|
}
|
|
122
|
-
interface
|
|
123
|
-
|
|
124
|
-
cwd: string;
|
|
125
|
-
exitCode: number;
|
|
191
|
+
interface SeastudioShellOneShotResult {
|
|
192
|
+
exitCode: number | null;
|
|
126
193
|
stdout: string;
|
|
127
|
-
stderr: string;
|
|
128
|
-
error: string | null;
|
|
129
194
|
durationMs: number;
|
|
130
|
-
|
|
195
|
+
timedOut: boolean;
|
|
131
196
|
}
|
|
132
197
|
declare function callTool(name: string, args?: Record<string, unknown>): Promise<MCPToolResult>;
|
|
133
198
|
declare function request<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
@@ -138,6 +203,10 @@ declare const seastudio: {
|
|
|
138
203
|
roots: SeastudioFilesystemRoot[];
|
|
139
204
|
}>;
|
|
140
205
|
};
|
|
206
|
+
project: {
|
|
207
|
+
list: () => Promise<MCPToolResult>;
|
|
208
|
+
getActive: () => Promise<MCPToolResult>;
|
|
209
|
+
};
|
|
141
210
|
file: {
|
|
142
211
|
getSelected: () => Promise<MCPToolResult>;
|
|
143
212
|
read: (path: string, options?: SeastudioFileReadOptions) => Promise<MCPToolResult>;
|
|
@@ -166,17 +235,27 @@ declare const seastudio: {
|
|
|
166
235
|
readBinary: (path: string, options?: SeastudioSinglePathOptions) => Promise<MCPToolResult>;
|
|
167
236
|
};
|
|
168
237
|
shell: {
|
|
169
|
-
execute: (command: string, cwd?: string, timeout?: number) => Promise<MCPToolResult>;
|
|
170
238
|
session: {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
239
|
+
open: (options?: SeastudioShellOpenOptions) => Promise<MCPToolResult>;
|
|
240
|
+
list: () => Promise<MCPToolResult>;
|
|
241
|
+
get: (sessionId: string) => Promise<MCPToolResult>;
|
|
242
|
+
run: (sessionId: string, command: string, options?: SeastudioShellRunOptions) => Promise<MCPToolResult>;
|
|
243
|
+
wait: (sessionId: string, commandId: string, timeoutMs?: number) => Promise<MCPToolResult>;
|
|
244
|
+
getEntries: (sessionId: string, options?: SeastudioShellGetEntriesOptions) => Promise<MCPToolResult>;
|
|
245
|
+
signal: (sessionId: string, signal: "INT" | "TERM" | "KILL", commandId?: string) => Promise<MCPToolResult>;
|
|
246
|
+
clearEntries: (sessionId: string) => Promise<MCPToolResult>;
|
|
247
|
+
close: (sessionId: string, force?: boolean) => Promise<MCPToolResult>;
|
|
177
248
|
};
|
|
178
249
|
};
|
|
179
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* One-shot helper: open a transient session, run command, wait, close.
|
|
253
|
+
* Returns aggregated stdout/exit info. Useful for short, non-interactive commands
|
|
254
|
+
* (e.g. `git status`). For long-running tasks use `seastudio.shell.session` directly.
|
|
255
|
+
*/
|
|
256
|
+
declare function runOneShotShellCommand(command: string, options?: SeastudioShellOpenOptions & {
|
|
257
|
+
timeoutMs?: number;
|
|
258
|
+
}): Promise<SeastudioShellOneShotResult>;
|
|
180
259
|
|
|
181
260
|
/**
|
|
182
261
|
* Plugin MCP Tools
|
|
@@ -196,6 +275,14 @@ declare const pluginTabTools: MCPTool[];
|
|
|
196
275
|
declare const agentManagementTools: MCPTool[];
|
|
197
276
|
declare const agentTabTools: MCPTool[];
|
|
198
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Project MCP Tools
|
|
280
|
+
*
|
|
281
|
+
* 项目枚举与寻址:让 agent 能列出所有项目并按需跨项目操作。
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
declare const projectTools: MCPTool[];
|
|
285
|
+
|
|
199
286
|
/**
|
|
200
287
|
* SeaStudio MCP Notifications
|
|
201
288
|
*
|
|
@@ -524,4 +611,4 @@ interface SessionDeleteRequestedParams {
|
|
|
524
611
|
declare const allTools: MCPTool[];
|
|
525
612
|
declare const tools: MCPTool[];
|
|
526
613
|
|
|
527
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, SeastudioRequests, type
|
|
614
|
+
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, SeastudioRequests, type SeastudioShellCloseResult, type SeastudioShellEntry, type SeastudioShellEntryLevel, type SeastudioShellGetEntriesOptions, type SeastudioShellGetEntriesResult, type SeastudioShellKind, type SeastudioShellOneShotResult, type SeastudioShellOpenOptions, type SeastudioShellRunOptions, type SeastudioShellRunResult, type SeastudioShellSession, type SeastudioShellSignalResult, type SeastudioShellWaitResult, type SeastudioSinglePathOptions, type SeastudioWorkspacePathMode, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, tools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, pluginManagementTools, pluginTabTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, seaCloudTools, seastudio,
|
|
1
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, callTool, callToolText, dualPathEvidenceOutputSchema, fileDownloadEvidenceOutputSchema, fileTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, tools } from '../../chunk-CJ2BXMJ3.js';
|
|
2
2
|
import '../../chunk-TJ3CGHWJ.js';
|
package/dist/ui/index.cjs
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGEPSOYJN_cjs = require('../chunk-GEPSOYJN.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DialogBody", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkGEPSOYJN_cjs.DialogBody; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "DialogButton", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGEPSOYJN_cjs.DialogButton; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DialogContainer", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGEPSOYJN_cjs.DialogContainer; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DialogFooter", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGEPSOYJN_cjs.DialogFooter; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "DialogHeader", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGEPSOYJN_cjs.DialogHeader; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DialogOverlay", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGEPSOYJN_cjs.DialogOverlay; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MenuContainer", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGEPSOYJN_cjs.MenuContainer; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MenuEmpty", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGEPSOYJN_cjs.MenuEmpty; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MenuItem", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkGEPSOYJN_cjs.MenuItem; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "MenuSeparator", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkGEPSOYJN_cjs.MenuSeparator; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "Tab", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkGEPSOYJN_cjs.Tab; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "cn", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkGEPSOYJN_cjs.cn; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "showHostContextMenu", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkGEPSOYJN_cjs.showHostContextMenu; }
|
|
58
58
|
});
|
package/dist/ui/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from '../chunk-
|
|
1
|
+
export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from '../chunk-X62SRZS4.js';
|