@vitejs/devtools 0.0.0-alpha.9 → 0.1.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/DockIcon-Jbdv1CYn.js +1720 -0
- package/dist/DockStandalone-Dd6Dcd5B.js +81 -0
- package/dist/LogItem-CfTxUV6A.js +204 -0
- package/dist/ToastOverlay-BVErqkif.js +1048 -0
- package/dist/ViewBuiltinLogs-DQLxnQ1c.js +427 -0
- package/dist/ViewBuiltinTerminals-B83FB-cT.js +10407 -0
- package/dist/cli-commands-DRp01A04.js +178 -0
- package/dist/cli-commands.js +3 -5
- package/dist/cli.js +3 -6
- package/dist/client/inject.js +170 -18
- package/dist/client/standalone/assets/DockStandalone-B8W-HO8N.js +1 -0
- package/dist/client/standalone/assets/LogItem-B-ayIBi6.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinLogs-B8M7lPbt.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinTerminals-Dkd5qdlN.js +36 -0
- package/dist/client/standalone/assets/dist-ZC9UAo6H.js +1 -0
- package/dist/client/standalone/assets/index-6F2y1lxr.css +1 -0
- package/dist/client/standalone/assets/index-odNIfapG.js +4 -0
- package/dist/client/standalone/index.html +5 -3
- package/dist/client/webcomponents.d.ts +21657 -31
- package/dist/client/webcomponents.js +305 -455
- package/dist/config.d.ts +25 -0
- package/dist/config.js +14 -0
- package/dist/dirs.js +7 -3
- package/dist/{dist-2aLfy0Lc.js → dist-3NIYLDlS.js} +2261 -936
- package/dist/index.d.ts +256 -13
- package/dist/index.js +2 -4
- package/dist/plugins-6tW2SoNv.js +2115 -0
- package/dist/popup-EDv_a9nQ.js +358 -0
- package/dist/utils--qjmgani.js +6 -0
- package/package.json +50 -21
- package/dist/cli-commands-CWESTkWI.js +0 -97
- package/dist/client/standalone/assets/index-CXKamp9k.js +0 -7
- package/dist/client/standalone/assets/index-DULlvzQC.css +0 -1
- package/dist/dirs-DcSK9l9L.js +0 -9
- package/dist/index-C-9eMTqf.d.ts +0 -142
- package/dist/plugins-5VE4Mfdt.js +0 -1365
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,261 @@
|
|
|
1
|
-
import { i as DevToolsDockEntry, n as RpcFunctionDefinition, r as DevToolsNodeContext, t as RpcDefinitionsToFunctions } from "./index-C-9eMTqf.js";
|
|
2
1
|
import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
2
|
+
import { SharedStatePatch } from "@vitejs/devtools-kit/utils/shared-state";
|
|
3
|
+
import * as _vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
|
|
4
|
+
import { RpcFunctionsCollectorBase } from "@vitejs/devtools-rpc";
|
|
5
|
+
import * as _vitejs_devtools_kit0 from "@vitejs/devtools-kit";
|
|
6
|
+
import { DevToolsDockEntry, DevToolsDocksUserSettings, DevToolsLogEntry, DevToolsNodeContext, DevToolsTerminalSessionStreamChunkEvent, RpcDefinitionsToFunctions } from "@vitejs/devtools-kit";
|
|
7
|
+
import * as h3 from "h3";
|
|
8
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
9
|
+
import * as birpc from "birpc";
|
|
5
10
|
|
|
6
11
|
//#region src/node/context.d.ts
|
|
7
12
|
declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>;
|
|
8
13
|
//#endregion
|
|
14
|
+
//#region src/node/rpc/anonymous/auth.d.ts
|
|
15
|
+
interface DevToolsAuthInput {
|
|
16
|
+
authId: string;
|
|
17
|
+
ua: string;
|
|
18
|
+
origin: string;
|
|
19
|
+
}
|
|
20
|
+
interface DevToolsAuthReturn {
|
|
21
|
+
isTrusted: boolean;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/node/rpc/internal/logs-list.d.ts
|
|
25
|
+
interface LogsListResult {
|
|
26
|
+
entries: DevToolsLogEntry[];
|
|
27
|
+
removedIds: string[];
|
|
28
|
+
/** The version cursor — pass back as `since` on next call */
|
|
29
|
+
version: number;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
9
32
|
//#region src/node/rpc/index.d.ts
|
|
10
|
-
declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
33
|
+
declare const builtinRpcDeclarations: readonly [{
|
|
34
|
+
name: "vite:core:open-in-editor";
|
|
35
|
+
type?: "action" | undefined;
|
|
36
|
+
cacheable?: boolean;
|
|
37
|
+
args?: undefined;
|
|
38
|
+
returns?: undefined;
|
|
39
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
40
|
+
handler?: ((path: string) => Promise<void>) | undefined;
|
|
41
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
42
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
43
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
name: "vite:core:open-in-finder";
|
|
46
|
+
type?: "action" | undefined;
|
|
47
|
+
cacheable?: boolean;
|
|
48
|
+
args?: undefined;
|
|
49
|
+
returns?: undefined;
|
|
50
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
51
|
+
handler?: ((path: string) => Promise<void>) | undefined;
|
|
52
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
53
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
54
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
name: "vite:anonymous:auth";
|
|
57
|
+
type?: "action" | undefined;
|
|
58
|
+
cacheable?: boolean;
|
|
59
|
+
args?: undefined;
|
|
60
|
+
returns?: undefined;
|
|
61
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>>) | undefined;
|
|
62
|
+
handler?: ((query: DevToolsAuthInput) => Promise<DevToolsAuthReturn>) | undefined;
|
|
63
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
64
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>> | undefined;
|
|
65
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>> | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
name: "devtoolskit:internal:docks:on-launch";
|
|
68
|
+
type?: "action" | undefined;
|
|
69
|
+
cacheable?: boolean;
|
|
70
|
+
args?: undefined;
|
|
71
|
+
returns?: undefined;
|
|
72
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>>) | undefined;
|
|
73
|
+
handler?: ((entryId: string) => Promise<void>) | undefined;
|
|
74
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[entryId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
75
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>> | undefined;
|
|
76
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>> | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
name: "devtoolskit:internal:logs:add";
|
|
79
|
+
type?: "action" | undefined;
|
|
80
|
+
cacheable?: boolean;
|
|
81
|
+
args?: undefined;
|
|
82
|
+
returns?: undefined;
|
|
83
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>>>) | undefined;
|
|
84
|
+
handler?: ((input: _vitejs_devtools_kit0.DevToolsLogEntryInput) => Promise<_vitejs_devtools_kit0.DevToolsLogEntry>) | undefined;
|
|
85
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
86
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>> | undefined;
|
|
87
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>>> | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
name: "devtoolskit:internal:logs:clear";
|
|
90
|
+
type?: "action" | undefined;
|
|
91
|
+
cacheable?: boolean;
|
|
92
|
+
args?: undefined;
|
|
93
|
+
returns?: undefined;
|
|
94
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>>>) | undefined;
|
|
95
|
+
handler?: (() => Promise<void>) | undefined;
|
|
96
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
97
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>> | undefined;
|
|
98
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>>> | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
name: "devtoolskit:internal:logs:list";
|
|
101
|
+
type?: "static" | undefined;
|
|
102
|
+
cacheable?: boolean;
|
|
103
|
+
args?: undefined;
|
|
104
|
+
returns?: undefined;
|
|
105
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>>>) | undefined;
|
|
106
|
+
handler?: ((since?: number | undefined) => Promise<LogsListResult>) | undefined;
|
|
107
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[since?: number | undefined], Promise<LogsListResult>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
108
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>> | undefined;
|
|
109
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>>> | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
name: "devtoolskit:internal:logs:remove";
|
|
112
|
+
type?: "action" | undefined;
|
|
113
|
+
cacheable?: boolean;
|
|
114
|
+
args?: undefined;
|
|
115
|
+
returns?: undefined;
|
|
116
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
|
|
117
|
+
handler?: ((id: string) => Promise<void>) | undefined;
|
|
118
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
119
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>> | undefined;
|
|
120
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
name: "devtoolskit:internal:logs:update";
|
|
123
|
+
type?: "action" | undefined;
|
|
124
|
+
cacheable?: boolean;
|
|
125
|
+
args?: undefined;
|
|
126
|
+
returns?: undefined;
|
|
127
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>>>) | undefined;
|
|
128
|
+
handler?: ((id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>) => Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>) | undefined;
|
|
129
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
130
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>> | undefined;
|
|
131
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>>> | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
name: "devtoolskit:internal:rpc:server:list";
|
|
134
|
+
type?: "static" | undefined;
|
|
135
|
+
cacheable?: boolean;
|
|
136
|
+
args?: undefined;
|
|
137
|
+
returns?: undefined;
|
|
138
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
139
|
+
[k: string]: {
|
|
140
|
+
type: any;
|
|
141
|
+
};
|
|
142
|
+
}>>>) | undefined;
|
|
143
|
+
handler?: (() => Promise<{
|
|
144
|
+
[k: string]: {
|
|
145
|
+
type: any;
|
|
146
|
+
};
|
|
147
|
+
}>) | undefined;
|
|
148
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<{
|
|
149
|
+
[k: string]: {
|
|
150
|
+
type: any;
|
|
151
|
+
};
|
|
152
|
+
}>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
153
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
154
|
+
[k: string]: {
|
|
155
|
+
type: any;
|
|
156
|
+
};
|
|
157
|
+
}>> | undefined;
|
|
158
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
159
|
+
[k: string]: {
|
|
160
|
+
type: any;
|
|
161
|
+
};
|
|
162
|
+
}>>> | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
name: "devtoolskit:internal:rpc:server-state:get";
|
|
165
|
+
type?: "query" | undefined;
|
|
166
|
+
cacheable?: boolean;
|
|
167
|
+
args?: undefined;
|
|
168
|
+
returns?: undefined;
|
|
169
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>>>) | undefined;
|
|
170
|
+
handler?: ((args_0: string) => Promise<any>) | undefined;
|
|
171
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[string], Promise<any>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
172
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>> | undefined;
|
|
173
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>>> | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
name: "devtoolskit:internal:rpc:server-state:patch";
|
|
176
|
+
type?: "query" | undefined;
|
|
177
|
+
cacheable?: boolean;
|
|
178
|
+
args?: undefined;
|
|
179
|
+
returns?: undefined;
|
|
180
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>>) | undefined;
|
|
181
|
+
handler?: ((key: string, patches: SharedStatePatch[], syncId: string) => Promise<void>) | undefined;
|
|
182
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
183
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>> | undefined;
|
|
184
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>> | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
name: "devtoolskit:internal:rpc:server-state:set";
|
|
187
|
+
type?: "query" | undefined;
|
|
188
|
+
cacheable?: boolean;
|
|
189
|
+
args?: undefined;
|
|
190
|
+
returns?: undefined;
|
|
191
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>>) | undefined;
|
|
192
|
+
handler?: ((key: string, value: any, syncId: string) => Promise<void>) | undefined;
|
|
193
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string, value: any, syncId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
194
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>> | undefined;
|
|
195
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>> | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
name: "devtoolskit:internal:rpc:server-state:subscribe";
|
|
198
|
+
type?: "event" | undefined;
|
|
199
|
+
cacheable?: boolean;
|
|
200
|
+
args?: undefined;
|
|
201
|
+
returns?: undefined;
|
|
202
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>>) | undefined;
|
|
203
|
+
handler?: ((key: string) => Promise<void>) | undefined;
|
|
204
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
205
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>> | undefined;
|
|
206
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>> | undefined;
|
|
207
|
+
}, {
|
|
208
|
+
name: "devtoolskit:internal:terminals:list";
|
|
209
|
+
type?: "static" | undefined;
|
|
210
|
+
cacheable?: boolean;
|
|
211
|
+
args?: undefined;
|
|
212
|
+
returns?: undefined;
|
|
213
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>>) | undefined;
|
|
214
|
+
handler?: (() => Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>) | undefined;
|
|
215
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
216
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>> | undefined;
|
|
217
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>> | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
name: "devtoolskit:internal:terminals:read";
|
|
220
|
+
type?: "query" | undefined;
|
|
221
|
+
cacheable?: boolean;
|
|
222
|
+
args?: undefined;
|
|
223
|
+
returns?: undefined;
|
|
224
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
225
|
+
buffer: string[];
|
|
226
|
+
ts: number;
|
|
227
|
+
}>>>) | undefined;
|
|
228
|
+
handler?: ((id: string) => Promise<{
|
|
229
|
+
buffer: string[];
|
|
230
|
+
ts: number;
|
|
231
|
+
}>) | undefined;
|
|
232
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string], Promise<{
|
|
233
|
+
buffer: string[];
|
|
234
|
+
ts: number;
|
|
235
|
+
}>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
236
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
237
|
+
buffer: string[];
|
|
238
|
+
ts: number;
|
|
239
|
+
}>> | undefined;
|
|
240
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
241
|
+
buffer: string[];
|
|
242
|
+
ts: number;
|
|
243
|
+
}>>> | undefined;
|
|
244
|
+
}];
|
|
245
|
+
type BuiltinServerFunctions = RpcDefinitionsToFunctions<typeof builtinRpcDeclarations>;
|
|
16
246
|
declare module '@vitejs/devtools-kit' {
|
|
17
|
-
interface DevToolsRpcServerFunctions extends
|
|
247
|
+
interface DevToolsRpcServerFunctions extends BuiltinServerFunctions {}
|
|
248
|
+
interface DevToolsRpcClientFunctions {
|
|
249
|
+
'devtoolskit:internal:logs:updated': () => Promise<void>;
|
|
250
|
+
'devtoolskit:internal:rpc:client-state:patch': (key: string, patches: SharedStatePatch[], syncId: string) => Promise<void>;
|
|
251
|
+
'devtoolskit:internal:rpc:client-state:updated': (key: string, fullState: any, syncId: string) => Promise<void>;
|
|
252
|
+
'devtoolskit:internal:terminals:stream-chunk': (data: DevToolsTerminalSessionStreamChunkEvent) => Promise<void>;
|
|
253
|
+
'devtoolskit:internal:terminals:updated': () => Promise<void>;
|
|
254
|
+
}
|
|
255
|
+
interface DevToolsRpcSharedStates {
|
|
256
|
+
'devtoolskit:internal:docks': DevToolsDockEntry[];
|
|
257
|
+
'devtoolskit:internal:user-settings': DevToolsDocksUserSettings;
|
|
258
|
+
}
|
|
18
259
|
}
|
|
19
260
|
//#endregion
|
|
20
261
|
//#region src/node/plugins/index.d.ts
|
|
@@ -32,15 +273,17 @@ declare function DevTools(options?: DevToolsOptions): Promise<Plugin[]>;
|
|
|
32
273
|
interface CreateWsServerOptions {
|
|
33
274
|
cwd: string;
|
|
34
275
|
portWebSocket?: number;
|
|
276
|
+
hostWebSocket: string;
|
|
35
277
|
base?: string;
|
|
36
278
|
context: DevToolsNodeContext;
|
|
37
279
|
}
|
|
38
280
|
//#endregion
|
|
39
281
|
//#region src/node/server.d.ts
|
|
40
282
|
declare function createDevToolsMiddleware(options: CreateWsServerOptions): Promise<{
|
|
41
|
-
h3:
|
|
42
|
-
|
|
43
|
-
|
|
283
|
+
h3: h3.App;
|
|
284
|
+
rpc: birpc.BirpcGroup<_vitejs_devtools_kit0.DevToolsRpcClientFunctions, _vitejs_devtools_kit0.DevToolsRpcServerFunctions, false>;
|
|
285
|
+
middleware: h3.NodeListener;
|
|
286
|
+
getConnectionMeta: () => Promise<_vitejs_devtools_kit0.ConnectionMeta>;
|
|
44
287
|
}>;
|
|
45
288
|
//#endregion
|
|
46
289
|
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
|
1
|
+
import { a as createDevToolsContext, r as createDevToolsMiddleware, t as DevTools } from "./plugins-6tW2SoNv.js";
|
|
2
|
+
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|