@seastudio/sdk 4.0.6 → 4.0.9
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-RGBW5MI2.cjs → chunk-2L26XL3M.cjs} +8 -3
- package/dist/{chunk-JXANHQNQ.cjs → chunk-7FYD7672.cjs} +4 -4
- package/dist/{chunk-KAEDK3UR.js → chunk-BIOX6KGR.js} +8 -3
- package/dist/{chunk-EWNKBKGJ.js → chunk-EHA26OJY.js} +1 -1
- package/dist/{chunk-Y4QEHVYJ.cjs → chunk-KK6HF3XF.cjs} +131 -95
- package/dist/{chunk-QA7XGPJX.js → chunk-ZDUIJOH2.js} +131 -96
- package/dist/index.cjs +38 -38
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/mcp/index.cjs +24 -24
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/seastudio/index.cjs +38 -34
- package/dist/mcp/seastudio/index.d.cts +51 -32
- package/dist/mcp/seastudio/index.d.ts +51 -32
- 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
- package/src/ui/cosmos.css +2 -1
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import { g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema, k as MCPToolResult } from '../../types-D7xY0bt6.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Git 共享类型契约
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
declare function annotateTool(tool: MCPTool, annotations: MCPToolAnnotations, outputSchema?: MCPToolInputSchema): MCPTool;
|
|
10
|
-
declare const rootedPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
11
|
-
declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
12
|
-
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
13
|
-
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
14
|
-
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
15
|
-
declare const fileUrlEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
|
-
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
|
-
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
18
|
-
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
19
|
-
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
20
|
-
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
21
|
-
declare const fileTools: MCPTool[];
|
|
22
|
-
|
|
23
|
-
declare const editorTools: MCPTool[];
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Git MCP Tools
|
|
6
|
+
* 供 MCP 工具返回值、git:changed 通知、SCM UI 与 Editor 插件共用。
|
|
27
7
|
*/
|
|
28
|
-
|
|
29
|
-
declare const gitTools: MCPTool[];
|
|
30
|
-
|
|
31
8
|
type GitChangeKind = 'added' | 'modified' | 'deleted' | 'renamed' | 'untracked' | 'conflicted' | 'unknown';
|
|
32
9
|
type GitLineChangeKind = 'added' | 'modified' | 'deleted';
|
|
33
10
|
interface GitFileChange {
|
|
@@ -72,6 +49,34 @@ interface GitStatusResult {
|
|
|
72
49
|
ignoredPaths?: string[];
|
|
73
50
|
}
|
|
74
51
|
|
|
52
|
+
/**
|
|
53
|
+
* File MCP Tools
|
|
54
|
+
*
|
|
55
|
+
* 文件系统读写、传输与剪贴板能力。
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
declare function annotateTool(tool: MCPTool, annotations: MCPToolAnnotations, outputSchema?: MCPToolInputSchema): MCPTool;
|
|
59
|
+
declare const rootedPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
60
|
+
declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
61
|
+
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
62
|
+
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
63
|
+
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
64
|
+
declare const fileUrlEvidenceOutputSchema: MCPToolInputSchema;
|
|
65
|
+
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
66
|
+
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
67
|
+
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
68
|
+
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
69
|
+
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
70
|
+
declare const fileTools: MCPTool[];
|
|
71
|
+
|
|
72
|
+
declare const editorTools: MCPTool[];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Git MCP Tools
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
declare const gitTools: MCPTool[];
|
|
79
|
+
|
|
75
80
|
/**
|
|
76
81
|
* Shell MCP Tools
|
|
77
82
|
*
|
|
@@ -303,6 +308,7 @@ interface SeastudioBrowserTab {
|
|
|
303
308
|
canGoBack: boolean;
|
|
304
309
|
canGoForward: boolean;
|
|
305
310
|
certificateError?: SeastudioBrowserCertificateError | null;
|
|
311
|
+
ownerInstanceId?: string;
|
|
306
312
|
}
|
|
307
313
|
interface SeastudioBrowserState {
|
|
308
314
|
browserSessionId: string;
|
|
@@ -437,14 +443,20 @@ declare const seastudio: {
|
|
|
437
443
|
list: () => Promise<{
|
|
438
444
|
sessions: SeastudioBrowserSession[];
|
|
439
445
|
}>;
|
|
440
|
-
get: (browserSessionId
|
|
441
|
-
close: (browserSessionId
|
|
446
|
+
get: (browserSessionId?: string) => Promise<SeastudioBrowserSession>;
|
|
447
|
+
close: (browserSessionId?: string) => Promise<{
|
|
442
448
|
browserSessionId: string;
|
|
443
449
|
closed: boolean;
|
|
444
450
|
}>;
|
|
445
451
|
};
|
|
452
|
+
show: (url: string) => Promise<{
|
|
453
|
+
url: string;
|
|
454
|
+
browserSessionId: string;
|
|
455
|
+
instanceId?: string;
|
|
456
|
+
tab?: SeastudioBrowserTab;
|
|
457
|
+
}>;
|
|
446
458
|
tab: {
|
|
447
|
-
create: (browserSessionId
|
|
459
|
+
create: (browserSessionId?: string, url?: string, ownerInstanceId?: string) => Promise<{
|
|
448
460
|
browserSessionId: string;
|
|
449
461
|
tab: SeastudioBrowserTab;
|
|
450
462
|
activeTabId: string;
|
|
@@ -475,9 +487,15 @@ declare const seastudio: {
|
|
|
475
487
|
stop: (browserSessionId: string, tabId: string) => Promise<{
|
|
476
488
|
ok: boolean;
|
|
477
489
|
}>;
|
|
490
|
+
getOrCreateForInstance: (ownerInstanceId: string, url?: string) => Promise<{
|
|
491
|
+
browserSessionId: string;
|
|
492
|
+
tab: SeastudioBrowserTab;
|
|
493
|
+
activeTabId: string;
|
|
494
|
+
created: boolean;
|
|
495
|
+
}>;
|
|
478
496
|
};
|
|
479
497
|
viewport: {
|
|
480
|
-
bind: (browserSessionId: string, rect: SeastudioBrowserRect, ownerInstanceId?: string) => Promise<SeastudioBrowserViewportBinding>;
|
|
498
|
+
bind: (browserSessionId: string | undefined, rect: SeastudioBrowserRect, ownerInstanceId?: string) => Promise<SeastudioBrowserViewportBinding>;
|
|
481
499
|
};
|
|
482
500
|
certificate: {
|
|
483
501
|
respond: (browserSessionId: string, requestId: string, allow: boolean) => Promise<{
|
|
@@ -529,6 +547,7 @@ declare const projectTools: MCPTool[];
|
|
|
529
547
|
|
|
530
548
|
declare const skillTools: MCPTool[];
|
|
531
549
|
|
|
550
|
+
declare const SINGLETON_BROWSER_SESSION_ID = "browser-session-default";
|
|
532
551
|
declare const browserRuntimeTools: MCPTool[];
|
|
533
552
|
|
|
534
553
|
/**
|
|
@@ -655,8 +674,8 @@ declare const SeastudioNotifications: {
|
|
|
655
674
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
656
675
|
};
|
|
657
676
|
|
|
658
|
-
/** 项目根在 MCP 文件工具中的寻址 id */
|
|
659
|
-
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
677
|
+
/** 项目根在 MCP 文件工具中的寻址 id;browser 表示 URL 资源根 */
|
|
678
|
+
type SeastudioRootId = 'workspace' | 'browser' | `proj-${string}`;
|
|
660
679
|
type SeastudioDragRootId = SeastudioRootId;
|
|
661
680
|
/**
|
|
662
681
|
* files:changed 通知参数
|
|
@@ -980,4 +999,4 @@ interface SessionDeleteRequestedParams {
|
|
|
980
999
|
declare const allTools: MCPTool[];
|
|
981
1000
|
declare const tools: MCPTool[];
|
|
982
1001
|
|
|
983
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitChangeKind, type GitChangedParams, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, 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 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
1002
|
+
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitChangeKind, type GitChangedParams, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, 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_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, 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 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import { g as MCPTool, h as MCPToolAnnotations, j as MCPToolInputSchema, k as MCPToolResult } from '../../types-D7xY0bt6.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Git 共享类型契约
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
declare function annotateTool(tool: MCPTool, annotations: MCPToolAnnotations, outputSchema?: MCPToolInputSchema): MCPTool;
|
|
10
|
-
declare const rootedPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
11
|
-
declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
12
|
-
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
13
|
-
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
14
|
-
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
15
|
-
declare const fileUrlEvidenceOutputSchema: MCPToolInputSchema;
|
|
16
|
-
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
17
|
-
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
18
|
-
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
19
|
-
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
20
|
-
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
21
|
-
declare const fileTools: MCPTool[];
|
|
22
|
-
|
|
23
|
-
declare const editorTools: MCPTool[];
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Git MCP Tools
|
|
6
|
+
* 供 MCP 工具返回值、git:changed 通知、SCM UI 与 Editor 插件共用。
|
|
27
7
|
*/
|
|
28
|
-
|
|
29
|
-
declare const gitTools: MCPTool[];
|
|
30
|
-
|
|
31
8
|
type GitChangeKind = 'added' | 'modified' | 'deleted' | 'renamed' | 'untracked' | 'conflicted' | 'unknown';
|
|
32
9
|
type GitLineChangeKind = 'added' | 'modified' | 'deleted';
|
|
33
10
|
interface GitFileChange {
|
|
@@ -72,6 +49,34 @@ interface GitStatusResult {
|
|
|
72
49
|
ignoredPaths?: string[];
|
|
73
50
|
}
|
|
74
51
|
|
|
52
|
+
/**
|
|
53
|
+
* File MCP Tools
|
|
54
|
+
*
|
|
55
|
+
* 文件系统读写、传输与剪贴板能力。
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
declare function annotateTool(tool: MCPTool, annotations: MCPToolAnnotations, outputSchema?: MCPToolInputSchema): MCPTool;
|
|
59
|
+
declare const rootedPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
60
|
+
declare const rootedWriteEvidenceOutputSchema: MCPToolInputSchema;
|
|
61
|
+
declare const dualPathEvidenceOutputSchema: MCPToolInputSchema;
|
|
62
|
+
declare const batchFlattenCopyEvidenceOutputSchema: MCPToolInputSchema;
|
|
63
|
+
declare const fileDownloadEvidenceOutputSchema: MCPToolInputSchema;
|
|
64
|
+
declare const fileUrlEvidenceOutputSchema: MCPToolInputSchema;
|
|
65
|
+
declare const shellSessionSnapshotEvidenceOutputSchema: MCPToolInputSchema;
|
|
66
|
+
declare const shellSessionOpenEvidenceOutputSchema: MCPToolInputSchema;
|
|
67
|
+
declare const shellSessionRunEvidenceOutputSchema: MCPToolInputSchema;
|
|
68
|
+
declare const shellSessionSignalEvidenceOutputSchema: MCPToolInputSchema;
|
|
69
|
+
declare const shellSessionCloseEvidenceOutputSchema: MCPToolInputSchema;
|
|
70
|
+
declare const fileTools: MCPTool[];
|
|
71
|
+
|
|
72
|
+
declare const editorTools: MCPTool[];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Git MCP Tools
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
declare const gitTools: MCPTool[];
|
|
79
|
+
|
|
75
80
|
/**
|
|
76
81
|
* Shell MCP Tools
|
|
77
82
|
*
|
|
@@ -303,6 +308,7 @@ interface SeastudioBrowserTab {
|
|
|
303
308
|
canGoBack: boolean;
|
|
304
309
|
canGoForward: boolean;
|
|
305
310
|
certificateError?: SeastudioBrowserCertificateError | null;
|
|
311
|
+
ownerInstanceId?: string;
|
|
306
312
|
}
|
|
307
313
|
interface SeastudioBrowserState {
|
|
308
314
|
browserSessionId: string;
|
|
@@ -437,14 +443,20 @@ declare const seastudio: {
|
|
|
437
443
|
list: () => Promise<{
|
|
438
444
|
sessions: SeastudioBrowserSession[];
|
|
439
445
|
}>;
|
|
440
|
-
get: (browserSessionId
|
|
441
|
-
close: (browserSessionId
|
|
446
|
+
get: (browserSessionId?: string) => Promise<SeastudioBrowserSession>;
|
|
447
|
+
close: (browserSessionId?: string) => Promise<{
|
|
442
448
|
browserSessionId: string;
|
|
443
449
|
closed: boolean;
|
|
444
450
|
}>;
|
|
445
451
|
};
|
|
452
|
+
show: (url: string) => Promise<{
|
|
453
|
+
url: string;
|
|
454
|
+
browserSessionId: string;
|
|
455
|
+
instanceId?: string;
|
|
456
|
+
tab?: SeastudioBrowserTab;
|
|
457
|
+
}>;
|
|
446
458
|
tab: {
|
|
447
|
-
create: (browserSessionId
|
|
459
|
+
create: (browserSessionId?: string, url?: string, ownerInstanceId?: string) => Promise<{
|
|
448
460
|
browserSessionId: string;
|
|
449
461
|
tab: SeastudioBrowserTab;
|
|
450
462
|
activeTabId: string;
|
|
@@ -475,9 +487,15 @@ declare const seastudio: {
|
|
|
475
487
|
stop: (browserSessionId: string, tabId: string) => Promise<{
|
|
476
488
|
ok: boolean;
|
|
477
489
|
}>;
|
|
490
|
+
getOrCreateForInstance: (ownerInstanceId: string, url?: string) => Promise<{
|
|
491
|
+
browserSessionId: string;
|
|
492
|
+
tab: SeastudioBrowserTab;
|
|
493
|
+
activeTabId: string;
|
|
494
|
+
created: boolean;
|
|
495
|
+
}>;
|
|
478
496
|
};
|
|
479
497
|
viewport: {
|
|
480
|
-
bind: (browserSessionId: string, rect: SeastudioBrowserRect, ownerInstanceId?: string) => Promise<SeastudioBrowserViewportBinding>;
|
|
498
|
+
bind: (browserSessionId: string | undefined, rect: SeastudioBrowserRect, ownerInstanceId?: string) => Promise<SeastudioBrowserViewportBinding>;
|
|
481
499
|
};
|
|
482
500
|
certificate: {
|
|
483
501
|
respond: (browserSessionId: string, requestId: string, allow: boolean) => Promise<{
|
|
@@ -529,6 +547,7 @@ declare const projectTools: MCPTool[];
|
|
|
529
547
|
|
|
530
548
|
declare const skillTools: MCPTool[];
|
|
531
549
|
|
|
550
|
+
declare const SINGLETON_BROWSER_SESSION_ID = "browser-session-default";
|
|
532
551
|
declare const browserRuntimeTools: MCPTool[];
|
|
533
552
|
|
|
534
553
|
/**
|
|
@@ -655,8 +674,8 @@ declare const SeastudioNotifications: {
|
|
|
655
674
|
readonly SESSION_DELETE_REQUESTED: "session:delete_requested";
|
|
656
675
|
};
|
|
657
676
|
|
|
658
|
-
/** 项目根在 MCP 文件工具中的寻址 id */
|
|
659
|
-
type SeastudioRootId = 'workspace' | `proj-${string}`;
|
|
677
|
+
/** 项目根在 MCP 文件工具中的寻址 id;browser 表示 URL 资源根 */
|
|
678
|
+
type SeastudioRootId = 'workspace' | 'browser' | `proj-${string}`;
|
|
660
679
|
type SeastudioDragRootId = SeastudioRootId;
|
|
661
680
|
/**
|
|
662
681
|
* files:changed 通知参数
|
|
@@ -980,4 +999,4 @@ interface SessionDeleteRequestedParams {
|
|
|
980
999
|
declare const allTools: MCPTool[];
|
|
981
1000
|
declare const tools: MCPTool[];
|
|
982
1001
|
|
|
983
|
-
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitChangeKind, type GitChangedParams, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, type PluginTabTitleChangedParams, type ProposalChangedParams, type ProposalFeedbackFileSummary, type ProposalFeedbackHunk, type ProposalFeedbackOrigin, type ProposalFeedbackParams, type ProposalRecord, type ProposalRequestedFile, type ProposalRequestedHunk, type ProposalRequestedParams, type ProposalStatus, type RootsChangedParams, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, 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 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
1002
|
+
export { type AgentInstanceSessionSnapshot, type FileDeletedParams, type FileKeepRequestedParams, type FileModifiedParams, type FileOpenRequestedParams, type FileRenamedParams, type FileSavedParams, type FileSelectedParams, type FileSendRequestedParams, type FileTransferRequestedParams, type FilesChangedParams, type GitChangeKind, type GitChangedParams, type GitFileChange, type GitLineChange, type GitLineChangeKind, type GitOpenDiffRequestedParams, type GitStatusResult, type GitSummary, 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_SESSION_ID, type SeastudioBatchFlattenCopyOptions, type SeastudioBatchFlattenPreviewOptions, type SeastudioBrowserCertificateError, type SeastudioBrowserRect, type SeastudioBrowserSession, type SeastudioBrowserSessionOpenOptions, type SeastudioBrowserState, type SeastudioBrowserStatus, type SeastudioBrowserTab, type SeastudioBrowserViewportBinding, 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 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 SessionCreatedParams, type SessionDeleteRequestedParams, type SessionNewRequestedParams, type SessionNotificationBase, type SessionRemovedParams, 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, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-
|
|
1
|
+
export { SINGLETON_BROWSER_SESSION_ID, SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, allTools, annotateTool, batchFlattenCopyEvidenceOutputSchema, browserRuntimeTools, callTool, callToolText, dualPathEvidenceOutputSchema, editorTools, fileDownloadEvidenceOutputSchema, fileTools, fileUrlEvidenceOutputSchema, gitTools, pluginManagementTools, pluginTabTools, projectTools, request, rootedPathEvidenceOutputSchema, rootedWriteEvidenceOutputSchema, runOneShotShellCommand, seaCloudTools, seastudio, shellSessionCloseEvidenceOutputSchema, shellSessionOpenEvidenceOutputSchema, shellSessionRunEvidenceOutputSchema, shellSessionSignalEvidenceOutputSchema, shellSessionSnapshotEvidenceOutputSchema, shellTools, skillTools, tools } from '../../chunk-ZDUIJOH2.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 chunk2L26XL3M_cjs = require('../chunk-2L26XL3M.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 chunk2L26XL3M_cjs.DialogBody; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "DialogButton", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2L26XL3M_cjs.DialogButton; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DialogContainer", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2L26XL3M_cjs.DialogContainer; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DialogFooter", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2L26XL3M_cjs.DialogFooter; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "DialogHeader", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2L26XL3M_cjs.DialogHeader; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DialogOverlay", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2L26XL3M_cjs.DialogOverlay; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MenuContainer", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2L26XL3M_cjs.MenuContainer; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MenuEmpty", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk2L26XL3M_cjs.MenuEmpty; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MenuItem", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk2L26XL3M_cjs.MenuItem; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "MenuSeparator", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk2L26XL3M_cjs.MenuSeparator; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "Tab", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk2L26XL3M_cjs.Tab; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "cn", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk2L26XL3M_cjs.cn; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "showHostContextMenu", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk2L26XL3M_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-BIOX6KGR.js';
|
package/package.json
CHANGED