@seastudio/sdk 4.0.18 → 5.0.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/README.md +8 -3
- package/dist/{chunk-UIRFMS2U.cjs → chunk-55KNKQUO.cjs} +4 -4
- package/dist/{chunk-M5UESV5E.cjs → chunk-EGCXEVBD.cjs} +55 -55
- package/dist/{chunk-IAAA5JF6.js → chunk-FNA3TFHQ.js} +55 -55
- package/dist/{chunk-LMANS2IQ.js → chunk-GKR5RYBV.js} +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.js +2 -2
- package/dist/mcp/index.cjs +23 -23
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/seastudio/index.cjs +36 -36
- package/dist/mcp/seastudio/index.d.cts +61 -57
- package/dist/mcp/seastudio/index.d.ts +61 -57
- package/dist/mcp/seastudio/index.js +1 -1
- package/package.json +1 -1
package/dist/mcp/index.cjs
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk55KNKQUO_cjs = require('../chunk-55KNKQUO.cjs');
|
|
4
|
+
var chunkEGCXEVBD_cjs = require('../chunk-EGCXEVBD.cjs');
|
|
5
5
|
var chunk3I7UM66P_cjs = require('../chunk-3I7UM66P.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "MCP_PACKAGES", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk55KNKQUO_cjs.MCP_PACKAGES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getMCPPackageIdForTool", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk55KNKQUO_cjs.getMCPPackageIdForTool; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getMCPPackages", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk55KNKQUO_cjs.getMCPPackages; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getMCPToolPackageIndex", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk55KNKQUO_cjs.getMCPToolPackageIndex; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "getToolsForLLM", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk55KNKQUO_cjs.getToolsForLLM; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "listAllTools", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk55KNKQUO_cjs.listAllTools; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listAvailableTools", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk55KNKQUO_cjs.listAvailableTools; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "listAvailableToolsForLLM", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk55KNKQUO_cjs.listAvailableToolsForLLM; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadPlugin", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk55KNKQUO_cjs.loadPlugin; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "mcpToolToOpenAI", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk55KNKQUO_cjs.mcpToolToOpenAI; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkEGCXEVBD_cjs.SeastudioNotifications; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkEGCXEVBD_cjs.SeastudioRequests; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkEGCXEVBD_cjs.agentManagementTools; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "agentTabTools", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkEGCXEVBD_cjs.agentTabTools; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "fileTools", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkEGCXEVBD_cjs.fileTools; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkEGCXEVBD_cjs.pluginManagementTools; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkEGCXEVBD_cjs.pluginTabTools; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "seastudio", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkEGCXEVBD_cjs.seastudio; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "seastudioAllTools", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkEGCXEVBD_cjs.allTools; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "seastudioTools", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkEGCXEVBD_cjs.tools; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "shellTools", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkEGCXEVBD_cjs.shellTools; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "MCPClient", {
|
|
94
94
|
enumerable: true,
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-
|
|
2
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-
|
|
1
|
+
export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from '../chunk-GKR5RYBV.js';
|
|
2
|
+
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from '../chunk-FNA3TFHQ.js';
|
|
3
3
|
export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from '../chunk-TJ3CGHWJ.js';
|
|
@@ -1,143 +1,143 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEGCXEVBD_cjs = require('../../chunk-EGCXEVBD.cjs');
|
|
4
4
|
require('../../chunk-3I7UM66P.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "SINGLETON_BROWSER_RUNTIME_SESSION_ID", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkEGCXEVBD_cjs.SINGLETON_BROWSER_RUNTIME_SESSION_ID; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SeastudioNotifications", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkEGCXEVBD_cjs.SeastudioNotifications; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "SeastudioRequests", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkEGCXEVBD_cjs.SeastudioRequests; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "agentManagementTools", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkEGCXEVBD_cjs.agentManagementTools; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "agentTabTools", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEGCXEVBD_cjs.agentTabTools; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "allTools", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkEGCXEVBD_cjs.allTools; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "annotateTool", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkEGCXEVBD_cjs.annotateTool; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "batchFlattenCopyEvidenceOutputSchema", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkEGCXEVBD_cjs.batchFlattenCopyEvidenceOutputSchema; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "browserRuntimeTools", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkEGCXEVBD_cjs.browserRuntimeTools; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "callTool", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkEGCXEVBD_cjs.callTool; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "callToolText", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkEGCXEVBD_cjs.callToolText; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "dualPathEvidenceOutputSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkEGCXEVBD_cjs.dualPathEvidenceOutputSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "editorTools", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkEGCXEVBD_cjs.editorTools; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "fileDownloadEvidenceOutputSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkEGCXEVBD_cjs.fileDownloadEvidenceOutputSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "fileSaveAsEvidenceOutputSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkEGCXEVBD_cjs.fileSaveAsEvidenceOutputSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "fileTools", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkEGCXEVBD_cjs.fileTools; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "fileUrlEvidenceOutputSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkEGCXEVBD_cjs.fileUrlEvidenceOutputSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "gitTools", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkEGCXEVBD_cjs.gitTools; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "pluginManagementTools", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkEGCXEVBD_cjs.pluginManagementTools; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "pluginTabTools", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkEGCXEVBD_cjs.pluginTabTools; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "projectTools", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkEGCXEVBD_cjs.projectTools; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "request", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkEGCXEVBD_cjs.request; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "rootedPathEvidenceOutputSchema", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkEGCXEVBD_cjs.rootedPathEvidenceOutputSchema; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "rootedWriteEvidenceOutputSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkEGCXEVBD_cjs.rootedWriteEvidenceOutputSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "runOneShotShellCommand", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkEGCXEVBD_cjs.runOneShotShellCommand; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "seastudio", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkEGCXEVBD_cjs.seastudio; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "shellSessionCloseEvidenceOutputSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkEGCXEVBD_cjs.shellSessionCloseEvidenceOutputSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "shellSessionOpenEvidenceOutputSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkEGCXEVBD_cjs.shellSessionOpenEvidenceOutputSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "shellSessionRunEvidenceOutputSchema", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkEGCXEVBD_cjs.shellSessionRunEvidenceOutputSchema; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "shellSessionSignalEvidenceOutputSchema", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkEGCXEVBD_cjs.shellSessionSignalEvidenceOutputSchema; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "shellSessionSnapshotEvidenceOutputSchema", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkEGCXEVBD_cjs.shellSessionSnapshotEvidenceOutputSchema; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "shellTools", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkEGCXEVBD_cjs.shellTools; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "skillTools", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkEGCXEVBD_cjs.skillTools; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "tools", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkEGCXEVBD_cjs.tools; }
|
|
143
143
|
});
|
|
@@ -336,50 +336,54 @@ interface SeastudioShellOneShotResult {
|
|
|
336
336
|
durationMs: number;
|
|
337
337
|
timedOut: boolean;
|
|
338
338
|
}
|
|
339
|
-
type
|
|
340
|
-
interface
|
|
339
|
+
type SeastudioBrowserRuntimeStatus = 'idle' | 'loading' | 'ready' | 'error';
|
|
340
|
+
interface SeastudioBrowserRuntimeCertificateError {
|
|
341
341
|
requestId: string;
|
|
342
342
|
url: string;
|
|
343
343
|
error: string;
|
|
344
344
|
}
|
|
345
|
-
interface
|
|
345
|
+
interface SeastudioBrowserRuntimeTab {
|
|
346
346
|
id: string;
|
|
347
347
|
title: string;
|
|
348
348
|
url: string | null;
|
|
349
|
-
status:
|
|
349
|
+
status: SeastudioBrowserRuntimeStatus;
|
|
350
350
|
errorMessage: string | null;
|
|
351
351
|
canGoBack: boolean;
|
|
352
352
|
canGoForward: boolean;
|
|
353
|
-
certificateError?:
|
|
353
|
+
certificateError?: SeastudioBrowserRuntimeCertificateError | null;
|
|
354
354
|
ownerInstanceId?: string;
|
|
355
355
|
}
|
|
356
|
-
interface
|
|
357
|
-
|
|
356
|
+
interface SeastudioBrowserRuntimeState {
|
|
357
|
+
browserRuntimeSessionId: string;
|
|
358
358
|
label?: string;
|
|
359
|
-
|
|
359
|
+
storagePartitionKey: string;
|
|
360
360
|
homepage: string;
|
|
361
|
-
tabs:
|
|
361
|
+
tabs: SeastudioBrowserRuntimeTab[];
|
|
362
362
|
activeTabId: string | null;
|
|
363
363
|
}
|
|
364
|
-
interface
|
|
364
|
+
interface SeastudioBrowserRuntimeSession extends SeastudioBrowserRuntimeState {
|
|
365
365
|
createdAt: number;
|
|
366
366
|
updatedAt: number;
|
|
367
367
|
}
|
|
368
|
-
interface
|
|
368
|
+
interface SeastudioBrowserRuntimeSessionOpenOptions {
|
|
369
369
|
label?: string;
|
|
370
|
-
|
|
370
|
+
storagePartitionKey?: string;
|
|
371
371
|
homepage?: string;
|
|
372
372
|
}
|
|
373
|
-
interface
|
|
373
|
+
interface SeastudioBrowserViewportRect {
|
|
374
374
|
x: number;
|
|
375
375
|
y: number;
|
|
376
376
|
width: number;
|
|
377
377
|
height: number;
|
|
378
378
|
}
|
|
379
|
-
interface
|
|
380
|
-
|
|
379
|
+
interface SeastudioBrowserRuntimeViewportBinding {
|
|
380
|
+
browserRuntimeSessionId: string;
|
|
381
|
+
ownerInstanceId?: string;
|
|
382
|
+
rect: SeastudioBrowserViewportRect;
|
|
383
|
+
}
|
|
384
|
+
interface SeastudioBrowserRuntimeViewportBindOptions {
|
|
385
|
+
browserRuntimeSessionId?: string;
|
|
381
386
|
ownerInstanceId?: string;
|
|
382
|
-
rect: SeastudioBrowserRect;
|
|
383
387
|
}
|
|
384
388
|
declare function callTool(name: string, args?: Record<string, unknown>): Promise<MCPToolResult>;
|
|
385
389
|
declare function request<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
@@ -482,72 +486,72 @@ declare const seastudio: {
|
|
|
482
486
|
};
|
|
483
487
|
};
|
|
484
488
|
browser: {
|
|
485
|
-
|
|
486
|
-
open: (options?:
|
|
489
|
+
runtimeSession: {
|
|
490
|
+
open: (options?: SeastudioBrowserRuntimeSessionOpenOptions) => Promise<SeastudioBrowserRuntimeSession>;
|
|
487
491
|
list: () => Promise<{
|
|
488
|
-
sessions:
|
|
492
|
+
sessions: SeastudioBrowserRuntimeSession[];
|
|
489
493
|
}>;
|
|
490
|
-
get: (
|
|
491
|
-
close: (
|
|
492
|
-
|
|
494
|
+
get: (browserRuntimeSessionId?: string) => Promise<SeastudioBrowserRuntimeSession>;
|
|
495
|
+
close: (browserRuntimeSessionId?: string) => Promise<{
|
|
496
|
+
browserRuntimeSessionId: string;
|
|
493
497
|
closed: boolean;
|
|
494
498
|
}>;
|
|
495
499
|
};
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
tab?: SeastudioBrowserTab;
|
|
501
|
-
}>;
|
|
502
|
-
tab: {
|
|
503
|
-
create: (browserSessionId?: string, url?: string, ownerInstanceId?: string) => Promise<{
|
|
504
|
-
browserSessionId: string;
|
|
505
|
-
tab: SeastudioBrowserTab;
|
|
500
|
+
runtimeTab: {
|
|
501
|
+
create: (browserRuntimeSessionId?: string, url?: string, ownerInstanceId?: string) => Promise<{
|
|
502
|
+
browserRuntimeSessionId: string;
|
|
503
|
+
tab: SeastudioBrowserRuntimeTab;
|
|
506
504
|
activeTabId: string;
|
|
507
505
|
}>;
|
|
508
|
-
close: (
|
|
509
|
-
|
|
506
|
+
close: (browserRuntimeSessionId: string, tabId: string) => Promise<{
|
|
507
|
+
browserRuntimeSessionId: string;
|
|
510
508
|
closedTabId: string;
|
|
511
509
|
activeTabId: string | null;
|
|
512
510
|
}>;
|
|
513
|
-
activate: (
|
|
514
|
-
|
|
511
|
+
activate: (browserRuntimeSessionId: string, tabId: string) => Promise<{
|
|
512
|
+
browserRuntimeSessionId: string;
|
|
515
513
|
activeTabId: string;
|
|
516
514
|
}>;
|
|
517
|
-
navigate: (
|
|
518
|
-
|
|
515
|
+
navigate: (browserRuntimeSessionId: string, tabId: string, url: string) => Promise<{
|
|
516
|
+
browserRuntimeSessionId: string;
|
|
519
517
|
tabId: string;
|
|
520
518
|
url: string;
|
|
521
519
|
}>;
|
|
522
|
-
goBack: (
|
|
520
|
+
goBack: (browserRuntimeSessionId: string, tabId: string) => Promise<{
|
|
523
521
|
ok: boolean;
|
|
524
522
|
}>;
|
|
525
|
-
goForward: (
|
|
523
|
+
goForward: (browserRuntimeSessionId: string, tabId: string) => Promise<{
|
|
526
524
|
ok: boolean;
|
|
527
525
|
}>;
|
|
528
|
-
reload: (
|
|
526
|
+
reload: (browserRuntimeSessionId: string, tabId: string) => Promise<{
|
|
529
527
|
ok: boolean;
|
|
530
528
|
}>;
|
|
531
|
-
stop: (
|
|
529
|
+
stop: (browserRuntimeSessionId: string, tabId: string) => Promise<{
|
|
532
530
|
ok: boolean;
|
|
533
531
|
}>;
|
|
534
532
|
getOrCreateForInstance: (ownerInstanceId: string, url?: string) => Promise<{
|
|
535
|
-
|
|
536
|
-
tab:
|
|
533
|
+
browserRuntimeSessionId: string;
|
|
534
|
+
tab: SeastudioBrowserRuntimeTab;
|
|
537
535
|
activeTabId: string;
|
|
538
536
|
created: boolean;
|
|
539
537
|
}>;
|
|
540
538
|
};
|
|
541
539
|
viewport: {
|
|
542
|
-
bind: (
|
|
540
|
+
bind: (rect: SeastudioBrowserViewportRect, options?: SeastudioBrowserRuntimeViewportBindOptions) => Promise<SeastudioBrowserRuntimeViewportBinding>;
|
|
543
541
|
};
|
|
544
542
|
runtime: {
|
|
545
|
-
|
|
543
|
+
show: (url: string) => Promise<{
|
|
544
|
+
url: string;
|
|
545
|
+
browserRuntimeSessionId: string;
|
|
546
|
+
instanceId?: string;
|
|
547
|
+
tab?: SeastudioBrowserRuntimeTab;
|
|
548
|
+
}>;
|
|
549
|
+
evaluate: <T = unknown>(browserRuntimeSessionId: string, tabId: string, script: string, timeoutMs?: number) => Promise<{
|
|
546
550
|
result: T;
|
|
547
551
|
}>;
|
|
548
552
|
};
|
|
549
553
|
certificate: {
|
|
550
|
-
respond: (
|
|
554
|
+
respond: (browserRuntimeSessionId: string, requestId: string, allow: boolean) => Promise<{
|
|
551
555
|
ok: boolean;
|
|
552
556
|
}>;
|
|
553
557
|
};
|
|
@@ -596,7 +600,7 @@ declare const projectTools: MCPTool[];
|
|
|
596
600
|
|
|
597
601
|
declare const skillTools: MCPTool[];
|
|
598
602
|
|
|
599
|
-
declare const
|
|
603
|
+
declare const SINGLETON_BROWSER_RUNTIME_SESSION_ID = "browser-runtime-session-default";
|
|
600
604
|
declare const browserRuntimeTools: MCPTool[];
|
|
601
605
|
|
|
602
606
|
/**
|
|
@@ -681,14 +685,14 @@ declare const SeastudioNotifications: {
|
|
|
681
685
|
readonly PROPOSAL_FEEDBACK: "seastudio:proposal-feedback";
|
|
682
686
|
/** 插件实例请求更新宿主 plugin tab 标题 */
|
|
683
687
|
readonly PLUGIN_TAB_TITLE_CHANGED: "plugin:tab-title_changed";
|
|
684
|
-
/**
|
|
685
|
-
readonly
|
|
686
|
-
/**
|
|
687
|
-
readonly
|
|
688
|
-
/**
|
|
689
|
-
readonly
|
|
690
|
-
/**
|
|
691
|
-
readonly
|
|
688
|
+
/** BrowserRuntimeSession 状态变化 */
|
|
689
|
+
readonly BROWSER_RUNTIME_SESSION_CHANGED: "browser-runtime:session_changed";
|
|
690
|
+
/** BrowserRuntimeSession 关闭 */
|
|
691
|
+
readonly BROWSER_RUNTIME_SESSION_CLOSED: "browser-runtime:session_closed";
|
|
692
|
+
/** BrowserRuntimeSession 证书错误,需要客户端 UI 决策 */
|
|
693
|
+
readonly BROWSER_RUNTIME_CERTIFICATE_ERROR: "browser-runtime:certificate_error";
|
|
694
|
+
/** BrowserRuntimeSession 收到网页新标签请求 */
|
|
695
|
+
readonly BROWSER_RUNTIME_NEW_TAB_REQUESTED: "browser-runtime:new_tab_requested";
|
|
692
696
|
/**
|
|
693
697
|
* Agent 对话 session:新建。消息历史仍由 Agent 前端持有,宿主仅同步列表用于侧栏。
|
|
694
698
|
* 通常由 Agent 通过 notifications/publish 发出;其他订阅者(含 host-ui)可据此更新 UI。
|
|
@@ -1098,4 +1102,4 @@ interface HostAppVisibilityParams {
|
|
|
1098
1102
|
declare const allTools: MCPTool[];
|
|
1099
1103
|
declare const tools: MCPTool[];
|
|
1100
1104
|
|
|
1101
|
-
export { type AgentInstanceSessionSnapshot, type AuthSessionChangedParams, type AuthSessionStatus, type AuthSessionUser, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitBranchInfo, type GitBranchesResult, type GitChangeKind, type GitChangedParams, type GitCommitRef, type GitCommitRefType, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitLogCommit, type GitLogResult, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type HostAppVisibilityParams, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams,
|
|
1105
|
+
export { type AgentInstanceSessionSnapshot, type AuthSessionChangedParams, type AuthSessionStatus, type AuthSessionUser, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitBranchInfo, type GitBranchesResult, type GitChangeKind, type GitChangedParams, type GitCommitRef, type GitCommitRefType, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitLogCommit, type GitLogResult, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type HostAppVisibilityParams, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, SINGLETON_BROWSER_RUNTIME_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserRuntimeCertificateError, type SeastudioBrowserRuntimeSession, type SeastudioBrowserRuntimeSessionOpenOptions, type SeastudioBrowserRuntimeState, type SeastudioBrowserRuntimeStatus, type SeastudioBrowserRuntimeTab, type SeastudioBrowserRuntimeViewportBindOptions, type SeastudioBrowserRuntimeViewportBinding, type SeastudioBrowserViewportRect, type SeastudioDragDropParams, type SeastudioDragEnterParams, type SeastudioDragFileData, type SeastudioDragRootId, type SeastudioDragStartParams, type SeastudioEditorProposalAction, type SeastudioEditorProposalOptions, type SeastudioEditorProposeOptions, type SeastudioFileDownloadOptions, type SeastudioFileInfo, type SeastudioFileInfoOptions, type SeastudioFileListOptions, type SeastudioFileReadOptions, type SeastudioFileSaveAsOptions, type SeastudioFileSearchMatch, type SeastudioFileSearchOptions, type SeastudioFileTransferOptions, type SeastudioFileTreeOptions, type SeastudioFileWriteOptions, type SeastudioFilesystemRoot, type SeastudioFilesystemRootId, SeastudioNotifications, type SeastudioProjectInfo, type SeastudioProposalFile, type SeastudioProposalHunk, SeastudioRequests, type SeastudioRootId, 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 SeastudioWriteReviewMode, type SessionArchiveRequestedParams, type SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, type SessionRenameRequestedParams, type SessionSelectedParams, type SessionSelectedReason, type SessionSnapshotItem, type SessionStateSnapshotParams, type SessionStatus, type SessionStatusParams, type SessionSummaryParams, type TextSendRequestedParams, type TextSendRequestedSelectionRange, type TextSendRequestedSource, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileSaveAsEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|