extension-develop 4.0.16 → 4.0.17
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 +1 -1
- package/dist/0~dev-server.mjs +25 -10
- package/dist/0~rspack-config.mjs +182 -190
- package/dist/101.mjs +114 -139
- package/dist/266.mjs +8 -7
- package/dist/349.mjs +249 -0
- package/dist/839.mjs +314 -29
- package/dist/845.mjs +19 -13
- package/dist/contract/codes.json +590 -0
- package/dist/contract/envelope.schema.json +42 -0
- package/dist/contract/golden.build.built.json +13 -0
- package/dist/contract/golden.build.compile.json +13 -0
- package/dist/contract/golden.dev.first-compile.json +23 -0
- package/dist/contract/golden.dev.ready.json +20 -0
- package/dist/contract/golden.doctor.healthy.json +45 -0
- package/dist/contract/golden.doctor.session-not-found.json +50 -0
- package/dist/contract/golden.eval.eval.json +16 -0
- package/dist/contract/golden.eval.ok.json +12 -0
- package/dist/dev-server/control-bridge/producer-runtime.d.ts +1 -1
- package/dist/dev-server/lifecycle-stream.d.ts +54 -0
- package/dist/lib/messages.d.ts +2 -10
- package/dist/lib/messaging.d.ts +180 -0
- package/dist/plugin-playwright/index.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"note": "The durable error-code table for the schema-1 envelope. Codes may be added, never renamed or removed. One code per operator-distinguishable failure family; the envelope's command field carries the which-command context. 'folded' records finer inventory names that map onto a shipped family code. 'legacy' maps the three pre-envelope conventions (snake_case ready.json codes, PascalCase error names, kebab-case doctor check ids) onto the table.",
|
|
4
|
+
"codes": {
|
|
5
|
+
"E_ARGS": {
|
|
6
|
+
"area": "usage",
|
|
7
|
+
"summary": "A required argument is missing or the invocation is malformed."
|
|
8
|
+
},
|
|
9
|
+
"E_INVALID_OPTION": {
|
|
10
|
+
"area": "usage",
|
|
11
|
+
"summary": "A flag or argument value is not in the accepted set."
|
|
12
|
+
},
|
|
13
|
+
"E_FLAG_VALUE_INVALID": {
|
|
14
|
+
"area": "usage",
|
|
15
|
+
"summary": "A flag value failed validation."
|
|
16
|
+
},
|
|
17
|
+
"E_FLAG_NOT_SUPPORTED_HERE": {
|
|
18
|
+
"area": "usage",
|
|
19
|
+
"summary": "The flag exists but does not apply to this command or target."
|
|
20
|
+
},
|
|
21
|
+
"E_REMOVED_FLAG": {
|
|
22
|
+
"area": "usage",
|
|
23
|
+
"summary": "The flag was removed from the CLI."
|
|
24
|
+
},
|
|
25
|
+
"E_UNKNOWN_COMMAND": {
|
|
26
|
+
"area": "usage",
|
|
27
|
+
"summary": "No subcommand matches the given name."
|
|
28
|
+
},
|
|
29
|
+
"E_NODE_VERSION": {
|
|
30
|
+
"area": "usage",
|
|
31
|
+
"summary": "The running Node version is below the supported minimum."
|
|
32
|
+
},
|
|
33
|
+
"E_COMMAND_UNSUPPORTED_FOR_TARGET": {
|
|
34
|
+
"area": "usage",
|
|
35
|
+
"summary": "The command does not support the requested browser target."
|
|
36
|
+
},
|
|
37
|
+
"E_UNSUPPORTED_BROWSER": {
|
|
38
|
+
"area": "usage",
|
|
39
|
+
"summary": "The requested vendor is not in the supported browser list."
|
|
40
|
+
},
|
|
41
|
+
"E_BROWSER_NOT_INSTALLABLE": {
|
|
42
|
+
"area": "usage",
|
|
43
|
+
"summary": "The browser ships with the OS and cannot be installed by the CLI."
|
|
44
|
+
},
|
|
45
|
+
"E_PARENT_GONE": {
|
|
46
|
+
"area": "usage",
|
|
47
|
+
"summary": "The --parent-pid owner died, so the dev server self-terminated."
|
|
48
|
+
},
|
|
49
|
+
"E_REMOTE_URL_UNSUPPORTED": {
|
|
50
|
+
"area": "usage",
|
|
51
|
+
"summary": "The operation does not accept a remote URL."
|
|
52
|
+
},
|
|
53
|
+
"E_PROJECT_NOT_FOUND": {
|
|
54
|
+
"area": "project",
|
|
55
|
+
"summary": "The resolved project folder does not exist."
|
|
56
|
+
},
|
|
57
|
+
"E_CONFIG_LOAD": {
|
|
58
|
+
"area": "project",
|
|
59
|
+
"summary": "extension.config.js threw while loading."
|
|
60
|
+
},
|
|
61
|
+
"E_MANAGED_DEP_CONFLICT": {
|
|
62
|
+
"area": "project",
|
|
63
|
+
"summary": "The project declares a package the toolchain manages."
|
|
64
|
+
},
|
|
65
|
+
"E_DEPENDENCY_INSTALL": {
|
|
66
|
+
"area": "project",
|
|
67
|
+
"summary": "Installing project dependencies failed."
|
|
68
|
+
},
|
|
69
|
+
"E_TYPES_EMIT": {
|
|
70
|
+
"area": "project",
|
|
71
|
+
"summary": "Writing extension-env.d.ts failed."
|
|
72
|
+
},
|
|
73
|
+
"E_TSCONFIG_MISSING": {
|
|
74
|
+
"area": "project",
|
|
75
|
+
"summary": "TypeScript sources exist with no tsconfig.json beside package.json."
|
|
76
|
+
},
|
|
77
|
+
"E_OPTIONAL_DEP_UNRESOLVED": {
|
|
78
|
+
"area": "project",
|
|
79
|
+
"summary": "An optional dependency contract could not be resolved."
|
|
80
|
+
},
|
|
81
|
+
"E_OPTIONAL_DEP_LOAD": {
|
|
82
|
+
"area": "project",
|
|
83
|
+
"summary": "An optional dependency resolved but failed to load."
|
|
84
|
+
},
|
|
85
|
+
"E_OPTIONAL_DEP_UNKNOWN": {
|
|
86
|
+
"area": "project",
|
|
87
|
+
"summary": "Unknown optional-dependency contract id."
|
|
88
|
+
},
|
|
89
|
+
"E_COMPANION_EXTENSION_PATH": {
|
|
90
|
+
"area": "project",
|
|
91
|
+
"summary": "A companion extension path escapes extensions/ or yielded nothing unpacked."
|
|
92
|
+
},
|
|
93
|
+
"E_MANIFEST_IN_PUBLIC": {
|
|
94
|
+
"area": "project",
|
|
95
|
+
"summary": "manifest.json was placed under public/."
|
|
96
|
+
},
|
|
97
|
+
"E_RUNTIME_NOT_FOUND": {
|
|
98
|
+
"area": "project",
|
|
99
|
+
"summary": "The extension-develop runtime is missing or uncompiled."
|
|
100
|
+
},
|
|
101
|
+
"E_MANIFEST_NOT_FOUND": {
|
|
102
|
+
"area": "manifest",
|
|
103
|
+
"summary": "No manifest.json at the resolved root."
|
|
104
|
+
},
|
|
105
|
+
"E_MANIFEST_INVALID": {
|
|
106
|
+
"area": "manifest",
|
|
107
|
+
"summary": "The manifest is not parseable JSON or not a WebExtension manifest."
|
|
108
|
+
},
|
|
109
|
+
"E_MANIFEST_SHAPE": {
|
|
110
|
+
"area": "manifest",
|
|
111
|
+
"summary": "A manifest field has the wrong shape."
|
|
112
|
+
},
|
|
113
|
+
"E_MANIFEST_PAGE_MISSING": {
|
|
114
|
+
"area": "manifest",
|
|
115
|
+
"summary": "A manifest-referenced HTML page does not exist."
|
|
116
|
+
},
|
|
117
|
+
"E_MANIFEST_VERSION_UNSUPPORTED": {
|
|
118
|
+
"area": "manifest",
|
|
119
|
+
"summary": "The manifest_version is not supported on this target."
|
|
120
|
+
},
|
|
121
|
+
"E_MANIFEST_LOAD_BLOCKERS": {
|
|
122
|
+
"area": "manifest",
|
|
123
|
+
"summary": "Manifest fields the browser will reject at load time."
|
|
124
|
+
},
|
|
125
|
+
"E_MANIFEST_PERMISSION_MISSING": {
|
|
126
|
+
"area": "manifest",
|
|
127
|
+
"summary": "A required permission is absent from the manifest.",
|
|
128
|
+
"warn": true
|
|
129
|
+
},
|
|
130
|
+
"E_MANIFEST_MSG_KEY_MISSING": {
|
|
131
|
+
"area": "manifest",
|
|
132
|
+
"summary": "A __MSG_x__ key is absent from the default locale."
|
|
133
|
+
},
|
|
134
|
+
"E_MANIFEST_EMIT": {
|
|
135
|
+
"area": "manifest",
|
|
136
|
+
"summary": "Manifest emit or persist failed."
|
|
137
|
+
},
|
|
138
|
+
"E_RESTART_REQUIRED": {
|
|
139
|
+
"area": "manifest",
|
|
140
|
+
"summary": "An entrypoint field changed and the dev server must restart.",
|
|
141
|
+
"warn": true
|
|
142
|
+
},
|
|
143
|
+
"E_FIRST_COMPILE": {
|
|
144
|
+
"area": "compile",
|
|
145
|
+
"summary": "The first compile of a session failed, so nothing was loaded."
|
|
146
|
+
},
|
|
147
|
+
"E_COMPILE": {
|
|
148
|
+
"area": "compile",
|
|
149
|
+
"summary": "A compile finished with errors."
|
|
150
|
+
},
|
|
151
|
+
"E_COMPILE_FATAL": {
|
|
152
|
+
"area": "compile",
|
|
153
|
+
"summary": "The compiler itself failed or returned unusable stats."
|
|
154
|
+
},
|
|
155
|
+
"E_MODULE_NOT_FOUND": {
|
|
156
|
+
"area": "compile",
|
|
157
|
+
"summary": "A module specifier could not be resolved."
|
|
158
|
+
},
|
|
159
|
+
"E_ENTRY_NOT_FOUND": {
|
|
160
|
+
"area": "compile",
|
|
161
|
+
"summary": "A manifest, HTML, or JSON entry points at a missing file.",
|
|
162
|
+
"warn": true
|
|
163
|
+
},
|
|
164
|
+
"E_ASSET_MISSING": {
|
|
165
|
+
"area": "compile",
|
|
166
|
+
"summary": "An icon, static asset, or JSON dependency is missing.",
|
|
167
|
+
"warn": true
|
|
168
|
+
},
|
|
169
|
+
"E_SCRIPT_DEP_MISSING": {
|
|
170
|
+
"area": "compile",
|
|
171
|
+
"summary": "A runtime script dependency could not be traced.",
|
|
172
|
+
"warn": true
|
|
173
|
+
},
|
|
174
|
+
"E_RESERVED_FOLDER": {
|
|
175
|
+
"area": "compile",
|
|
176
|
+
"summary": "A reserved scripts/ folder shape was violated."
|
|
177
|
+
},
|
|
178
|
+
"E_CSS_PARSE": {
|
|
179
|
+
"area": "compile",
|
|
180
|
+
"summary": "A stylesheet failed to parse."
|
|
181
|
+
},
|
|
182
|
+
"E_CSS_PREPROCESSOR_MISSING": {
|
|
183
|
+
"area": "compile",
|
|
184
|
+
"summary": "A CSS preprocessor is requested but not resolvable.",
|
|
185
|
+
"warn": true
|
|
186
|
+
},
|
|
187
|
+
"E_CSS_DEAD_REF": {
|
|
188
|
+
"area": "compile",
|
|
189
|
+
"summary": "A CSS url() points at nothing.",
|
|
190
|
+
"warn": true
|
|
191
|
+
},
|
|
192
|
+
"E_INTEGRATION_INSTALL": {
|
|
193
|
+
"area": "compile",
|
|
194
|
+
"summary": "A framework integration failed to install."
|
|
195
|
+
},
|
|
196
|
+
"E_POLYFILL_NOT_FOUND": {
|
|
197
|
+
"area": "compile",
|
|
198
|
+
"summary": "webextension-polyfill requested but absent."
|
|
199
|
+
},
|
|
200
|
+
"E_LOCALES_LAYOUT": {
|
|
201
|
+
"area": "compile",
|
|
202
|
+
"summary": "_locales layout or messages.json is invalid."
|
|
203
|
+
},
|
|
204
|
+
"E_WAR_INVALID": {
|
|
205
|
+
"area": "compile",
|
|
206
|
+
"summary": "web_accessible_resources shape or match pattern rejected."
|
|
207
|
+
},
|
|
208
|
+
"E_MATCH_PATTERN_INVALID": {
|
|
209
|
+
"area": "compile",
|
|
210
|
+
"summary": "The browser rejected a content-script match pattern."
|
|
211
|
+
},
|
|
212
|
+
"E_BACKGROUND_REQUIRED": {
|
|
213
|
+
"area": "compile",
|
|
214
|
+
"summary": "The reload runtime needs a background chunk that is absent."
|
|
215
|
+
},
|
|
216
|
+
"E_CONTENT_SCRIPT_SYNTAX": {
|
|
217
|
+
"area": "compile",
|
|
218
|
+
"summary": "A content script failed to parse."
|
|
219
|
+
},
|
|
220
|
+
"E_NO_ENTRYPOINTS": {
|
|
221
|
+
"area": "compile",
|
|
222
|
+
"summary": "The compilation produced zero entrypoints."
|
|
223
|
+
},
|
|
224
|
+
"E_REMOTE_RESOURCE_BLOCKED": {
|
|
225
|
+
"area": "compile",
|
|
226
|
+
"summary": "A remote script or stylesheet is blocked by extension CSP.",
|
|
227
|
+
"warn": true
|
|
228
|
+
},
|
|
229
|
+
"E_PERF_BUDGET": {
|
|
230
|
+
"area": "compile",
|
|
231
|
+
"summary": "An asset exceeds its size budget.",
|
|
232
|
+
"warn": true
|
|
233
|
+
},
|
|
234
|
+
"E_ZIP_SKIPPED": {
|
|
235
|
+
"area": "compile",
|
|
236
|
+
"summary": "Packaging was skipped for a stated reason.",
|
|
237
|
+
"warn": true
|
|
238
|
+
},
|
|
239
|
+
"E_ENV_NO_MATCH": {
|
|
240
|
+
"area": "compile",
|
|
241
|
+
"summary": "No .env file matched the mode.",
|
|
242
|
+
"warn": true
|
|
243
|
+
},
|
|
244
|
+
"E_REMOTE_FETCH_TIMEOUT": {
|
|
245
|
+
"area": "remote",
|
|
246
|
+
"summary": "A remote fetch exceeded its timeout."
|
|
247
|
+
},
|
|
248
|
+
"E_REMOTE_DOWNLOAD": {
|
|
249
|
+
"area": "remote",
|
|
250
|
+
"summary": "Download or extraction of a remote extension failed."
|
|
251
|
+
},
|
|
252
|
+
"E_REMOTE_ZIP_INVALID": {
|
|
253
|
+
"area": "remote",
|
|
254
|
+
"summary": "The remote URL did not return a zip."
|
|
255
|
+
},
|
|
256
|
+
"E_LOCAL_ZIP_NOT_FOUND": {
|
|
257
|
+
"area": "remote",
|
|
258
|
+
"summary": "A referenced local zip is missing or not a zip."
|
|
259
|
+
},
|
|
260
|
+
"E_PROJECT_DOWNLOAD_EMPTY": {
|
|
261
|
+
"area": "remote",
|
|
262
|
+
"summary": "Download succeeded but the extracted folder is absent."
|
|
263
|
+
},
|
|
264
|
+
"E_NETWORK": {
|
|
265
|
+
"area": "remote",
|
|
266
|
+
"summary": "A network request failed or timed out."
|
|
267
|
+
},
|
|
268
|
+
"E_BROWSER_NOT_FOUND": {
|
|
269
|
+
"area": "browser-binary",
|
|
270
|
+
"summary": "No installed binary for the requested vendor."
|
|
271
|
+
},
|
|
272
|
+
"E_BROWSER_BINARY_REQUIRED": {
|
|
273
|
+
"area": "browser-binary",
|
|
274
|
+
"summary": "A -based target needs an explicit binary path."
|
|
275
|
+
},
|
|
276
|
+
"E_BROWSER_BINARY_INVALID": {
|
|
277
|
+
"area": "browser-binary",
|
|
278
|
+
"summary": "The given binary path does not exist or is not executable."
|
|
279
|
+
},
|
|
280
|
+
"E_BROWSER_LAUNCH": {
|
|
281
|
+
"area": "browser-binary",
|
|
282
|
+
"summary": "The browser process failed to spawn or died at startup."
|
|
283
|
+
},
|
|
284
|
+
"E_BROWSER_EXITED": {
|
|
285
|
+
"area": "browser-binary",
|
|
286
|
+
"summary": "The launched browser exited while the server kept running."
|
|
287
|
+
},
|
|
288
|
+
"E_BROWSER_START_TIMEOUT": {
|
|
289
|
+
"area": "browser-binary",
|
|
290
|
+
"summary": "The browser never signalled startup."
|
|
291
|
+
},
|
|
292
|
+
"E_PROFILE_LOCKED": {
|
|
293
|
+
"area": "browser-binary",
|
|
294
|
+
"summary": "The profile directory is held by another browser process."
|
|
295
|
+
},
|
|
296
|
+
"E_LAUNCH_SKIPPED_COMPILE_ERRORS": {
|
|
297
|
+
"area": "browser-binary",
|
|
298
|
+
"summary": "Launch was withheld because the compile failed."
|
|
299
|
+
},
|
|
300
|
+
"E_INSTANCE_AMBIGUOUS": {
|
|
301
|
+
"area": "browser-binary",
|
|
302
|
+
"summary": "More than one live instance matches the requested id."
|
|
303
|
+
},
|
|
304
|
+
"E_WSL_INTEROP": {
|
|
305
|
+
"area": "browser-binary",
|
|
306
|
+
"summary": "WSL interop could not resolve a Windows browser."
|
|
307
|
+
},
|
|
308
|
+
"E_BROWSER_DOWNLOAD": {
|
|
309
|
+
"area": "browser-binary",
|
|
310
|
+
"summary": "Downloading or installing a browser failed."
|
|
311
|
+
},
|
|
312
|
+
"E_BROWSER_INSTALL_PRIVILEGE": {
|
|
313
|
+
"area": "browser-binary",
|
|
314
|
+
"summary": "The install needs an interactive privileged session."
|
|
315
|
+
},
|
|
316
|
+
"E_BROWSER_UNINSTALL": {
|
|
317
|
+
"area": "browser-binary",
|
|
318
|
+
"summary": "Removing an installed browser failed."
|
|
319
|
+
},
|
|
320
|
+
"E_UNINSTALL_NOOP": {
|
|
321
|
+
"area": "browser-binary",
|
|
322
|
+
"summary": "Nothing to remove.",
|
|
323
|
+
"warn": true
|
|
324
|
+
},
|
|
325
|
+
"E_EXTENSION_LOAD_REFUSED": {
|
|
326
|
+
"area": "browser-runtime",
|
|
327
|
+
"summary": "The browser refused the unpacked extension."
|
|
328
|
+
},
|
|
329
|
+
"E_ADDON_INSTALL": {
|
|
330
|
+
"area": "browser-runtime",
|
|
331
|
+
"summary": "Gecko temporary add-on install failed."
|
|
332
|
+
},
|
|
333
|
+
"E_BROWSER_CONNECT": {
|
|
334
|
+
"area": "debug-protocol",
|
|
335
|
+
"summary": "The debug connection could not be opened."
|
|
336
|
+
},
|
|
337
|
+
"E_BROWSER_CONNECTION_CLOSED": {
|
|
338
|
+
"area": "debug-protocol",
|
|
339
|
+
"summary": "The debug socket closed mid-session."
|
|
340
|
+
},
|
|
341
|
+
"E_CDP_NOT_CONNECTED": {
|
|
342
|
+
"area": "debug-protocol",
|
|
343
|
+
"summary": "An operation was issued with no live CDP transport."
|
|
344
|
+
},
|
|
345
|
+
"E_CDP_TIMEOUT": {
|
|
346
|
+
"area": "debug-protocol",
|
|
347
|
+
"summary": "A CDP command or load event timed out."
|
|
348
|
+
},
|
|
349
|
+
"E_CDP_OP_FAILED": {
|
|
350
|
+
"area": "debug-protocol",
|
|
351
|
+
"summary": "An extension operation over CDP failed."
|
|
352
|
+
},
|
|
353
|
+
"E_EXTENSION_ID_UNKNOWN": {
|
|
354
|
+
"area": "debug-protocol",
|
|
355
|
+
"summary": "The extension id could not be determined over CDP."
|
|
356
|
+
},
|
|
357
|
+
"E_RDP_PROTOCOL": {
|
|
358
|
+
"area": "debug-protocol",
|
|
359
|
+
"summary": "A malformed or unexpected RDP exchange."
|
|
360
|
+
},
|
|
361
|
+
"E_DEV_SERVER_START": {
|
|
362
|
+
"area": "dev-server",
|
|
363
|
+
"summary": "The dev server failed to start."
|
|
364
|
+
},
|
|
365
|
+
"E_DEV_SERVER_TIMEOUT": {
|
|
366
|
+
"area": "dev-server",
|
|
367
|
+
"summary": "Dev server start exceeded its timeout."
|
|
368
|
+
},
|
|
369
|
+
"E_PORT_IN_USE": {
|
|
370
|
+
"area": "dev-server",
|
|
371
|
+
"summary": "The requested port was taken and auto-reassigned.",
|
|
372
|
+
"warn": true
|
|
373
|
+
},
|
|
374
|
+
"E_PORT_UNAVAILABLE": {
|
|
375
|
+
"area": "dev-server",
|
|
376
|
+
"summary": "No free port could be bound near the requested one."
|
|
377
|
+
},
|
|
378
|
+
"E_SESSION_NOT_FOUND": {
|
|
379
|
+
"area": "ready",
|
|
380
|
+
"summary": "No live session contract for this project and browser."
|
|
381
|
+
},
|
|
382
|
+
"E_SESSION_EXISTS": {
|
|
383
|
+
"area": "ready",
|
|
384
|
+
"summary": "A live session already exists for this project and browser."
|
|
385
|
+
},
|
|
386
|
+
"E_SESSION_STOPPED": {
|
|
387
|
+
"area": "ready",
|
|
388
|
+
"summary": "The session contract reports a stopped session."
|
|
389
|
+
},
|
|
390
|
+
"E_READY_TIMEOUT": {
|
|
391
|
+
"area": "ready",
|
|
392
|
+
"summary": "--wait expired before the session became ready."
|
|
393
|
+
},
|
|
394
|
+
"E_READY_ERROR_STATUS": {
|
|
395
|
+
"area": "ready",
|
|
396
|
+
"summary": "The ready contract reports an error for this session."
|
|
397
|
+
},
|
|
398
|
+
"E_CONTROL_UNAVAILABLE": {
|
|
399
|
+
"area": "control",
|
|
400
|
+
"summary": "The control channel is absent, mismatched, or not answering."
|
|
401
|
+
},
|
|
402
|
+
"E_CONTROL_DENIED": {
|
|
403
|
+
"area": "control",
|
|
404
|
+
"summary": "The session refused the control operation."
|
|
405
|
+
},
|
|
406
|
+
"E_TOKEN_MISSING": {
|
|
407
|
+
"area": "control",
|
|
408
|
+
"summary": "The operation needs a session token that is not present."
|
|
409
|
+
},
|
|
410
|
+
"E_EVAL_REFUSED": {
|
|
411
|
+
"area": "control",
|
|
412
|
+
"summary": "Eval is disabled for the session or the token does not match."
|
|
413
|
+
},
|
|
414
|
+
"E_TIMEOUT": {
|
|
415
|
+
"area": "control",
|
|
416
|
+
"summary": "The operation did not answer inside its timeout."
|
|
417
|
+
},
|
|
418
|
+
"E_NOT_IMPLEMENTED": {
|
|
419
|
+
"area": "control",
|
|
420
|
+
"summary": "The operation is not implemented for this context or engine."
|
|
421
|
+
},
|
|
422
|
+
"E_TARGET_NOT_FOUND": {
|
|
423
|
+
"area": "control",
|
|
424
|
+
"summary": "No tab, frame, or context matched the requested target."
|
|
425
|
+
},
|
|
426
|
+
"E_EVAL": {
|
|
427
|
+
"area": "control",
|
|
428
|
+
"summary": "The evaluated expression threw inside the page."
|
|
429
|
+
},
|
|
430
|
+
"E_INSPECT": {
|
|
431
|
+
"area": "control",
|
|
432
|
+
"summary": "DOM inspection failed inside the guest."
|
|
433
|
+
},
|
|
434
|
+
"E_STORAGE": {
|
|
435
|
+
"area": "control",
|
|
436
|
+
"summary": "chrome.storage rejected the read or write."
|
|
437
|
+
},
|
|
438
|
+
"E_LOGS_NOT_FOUND": {
|
|
439
|
+
"area": "logs",
|
|
440
|
+
"summary": "No logs stream for this project and browser."
|
|
441
|
+
},
|
|
442
|
+
"E_LOGS_STREAM_GAP": {
|
|
443
|
+
"area": "logs",
|
|
444
|
+
"summary": "The follow stream dropped events.",
|
|
445
|
+
"warn": true
|
|
446
|
+
},
|
|
447
|
+
"E_TEMPLATE_NOT_FOUND": {
|
|
448
|
+
"area": "create",
|
|
449
|
+
"summary": "The template is not in the catalog or has no manifest."
|
|
450
|
+
},
|
|
451
|
+
"E_DESTINATION_NOT_EMPTY": {
|
|
452
|
+
"area": "create",
|
|
453
|
+
"summary": "The destination already holds conflicting files."
|
|
454
|
+
},
|
|
455
|
+
"E_DESTINATION_NOT_WRITABLE": {
|
|
456
|
+
"area": "create",
|
|
457
|
+
"summary": "The destination directory is not writable."
|
|
458
|
+
},
|
|
459
|
+
"E_CREATE_DIR": {
|
|
460
|
+
"area": "create",
|
|
461
|
+
"summary": "The target directory could not be created."
|
|
462
|
+
},
|
|
463
|
+
"E_CREATE_WRITE": {
|
|
464
|
+
"area": "create",
|
|
465
|
+
"summary": "A scaffold file could not be written."
|
|
466
|
+
},
|
|
467
|
+
"E_CREATE_TESTS_SETUP": {
|
|
468
|
+
"area": "create",
|
|
469
|
+
"summary": "Built-in test setup failed."
|
|
470
|
+
},
|
|
471
|
+
"E_GIT_SKIPPED": {
|
|
472
|
+
"area": "create",
|
|
473
|
+
"summary": "git init was skipped because git is absent.",
|
|
474
|
+
"warn": true
|
|
475
|
+
},
|
|
476
|
+
"E_PREVIEW_NO_DIST": {
|
|
477
|
+
"area": "preview",
|
|
478
|
+
"summary": "No unpacked extension at the resolved output path."
|
|
479
|
+
},
|
|
480
|
+
"E_SAFARI_TOOLCHAIN": {
|
|
481
|
+
"area": "safari",
|
|
482
|
+
"summary": "The Safari toolchain is unavailable or an invocation failed."
|
|
483
|
+
},
|
|
484
|
+
"E_PUBLISH_REJECTED": {
|
|
485
|
+
"area": "publish",
|
|
486
|
+
"summary": "The platform rejected the upload."
|
|
487
|
+
},
|
|
488
|
+
"E_AUTH_REQUIRED": {
|
|
489
|
+
"area": "publish",
|
|
490
|
+
"summary": "The operation needs an auth token that is not present."
|
|
491
|
+
},
|
|
492
|
+
"E_TELEMETRY_WRITE": {
|
|
493
|
+
"area": "telemetry",
|
|
494
|
+
"summary": "The telemetry consent file could not be written."
|
|
495
|
+
},
|
|
496
|
+
"E_DOCTOR_CHECKS_FAILED": {
|
|
497
|
+
"area": "doctor",
|
|
498
|
+
"summary": "One or more doctor checks reported fail."
|
|
499
|
+
},
|
|
500
|
+
"E_INTERRUPTED": {
|
|
501
|
+
"area": "internal",
|
|
502
|
+
"summary": "The operation was interrupted before it finished."
|
|
503
|
+
},
|
|
504
|
+
"E_INTERNAL": {
|
|
505
|
+
"area": "internal",
|
|
506
|
+
"summary": "An unexpected fault reached the top-level sink."
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"legacy": {
|
|
510
|
+
"ready": {
|
|
511
|
+
"compile_error": ["E_FIRST_COMPILE", "E_COMPILE"],
|
|
512
|
+
"compile_failed": "E_COMPILE_FATAL",
|
|
513
|
+
"shutdown": "E_SESSION_STOPPED",
|
|
514
|
+
"dev_server_start_failed": "E_DEV_SERVER_START",
|
|
515
|
+
"preview_manifest_missing": "E_PREVIEW_NO_DIST",
|
|
516
|
+
"browser_exited": "E_BROWSER_EXITED",
|
|
517
|
+
"extension_load_refused": "E_EXTENSION_LOAD_REFUSED",
|
|
518
|
+
"profile_locked": "E_PROFILE_LOCKED"
|
|
519
|
+
},
|
|
520
|
+
"names": {
|
|
521
|
+
"Timeout": "E_TIMEOUT",
|
|
522
|
+
"Unavailable": "E_CONTROL_UNAVAILABLE",
|
|
523
|
+
"Forbidden": ["E_TOKEN_MISSING", "E_EVAL_REFUSED"],
|
|
524
|
+
"BadRequest": "E_ARGS",
|
|
525
|
+
"Unsupported": ["E_TARGET_NOT_FOUND", "E_NOT_IMPLEMENTED"],
|
|
526
|
+
"EvalError": "E_EVAL",
|
|
527
|
+
"InspectError": "E_INSPECT",
|
|
528
|
+
"StorageError": "E_STORAGE",
|
|
529
|
+
"AmbiguousInstanceError": "E_INSTANCE_AMBIGUOUS",
|
|
530
|
+
"TemplateNotFoundError": "E_TEMPLATE_NOT_FOUND",
|
|
531
|
+
"TemplateDownloadError": "E_NETWORK",
|
|
532
|
+
"CliError": "E_ARGS"
|
|
533
|
+
},
|
|
534
|
+
"doctorChecks": {
|
|
535
|
+
"ready-contract": "E_SESSION_NOT_FOUND",
|
|
536
|
+
"server-process": "E_SESSION_NOT_FOUND",
|
|
537
|
+
"port-agreement": "E_CONTROL_UNAVAILABLE",
|
|
538
|
+
"control-channel": "E_CONTROL_UNAVAILABLE",
|
|
539
|
+
"eval-token": "E_TOKEN_MISSING",
|
|
540
|
+
"executor": "E_CONTROL_UNAVAILABLE",
|
|
541
|
+
"browser": "E_BROWSER_LAUNCH"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"folded": {
|
|
545
|
+
"E_ARG_REQUIRED": "E_ARGS",
|
|
546
|
+
"E_ARG_INVALID": "E_INVALID_OPTION",
|
|
547
|
+
"E_BAD_REQUEST": "E_ARGS",
|
|
548
|
+
"E_BROWSER_UNSUPPORTED": "E_UNSUPPORTED_BROWSER",
|
|
549
|
+
"E_BROWSER_NOT_INSTALLED": "E_BROWSER_NOT_FOUND",
|
|
550
|
+
"E_BROWSER_INSTALL_FAILED": "E_BROWSER_DOWNLOAD",
|
|
551
|
+
"E_DEPS_INSTALL": "E_DEPENDENCY_INSTALL",
|
|
552
|
+
"E_CREATE_DEPS_INSTALL": "E_DEPENDENCY_INSTALL",
|
|
553
|
+
"E_CREATE_NAME_REQUIRED": "E_ARGS",
|
|
554
|
+
"E_CREATE_URL_NOT_ALLOWED": "E_INVALID_OPTION",
|
|
555
|
+
"E_CREATE_DIR_NOT_WRITEABLE": "E_DESTINATION_NOT_WRITABLE",
|
|
556
|
+
"E_CREATE_DIR_CONFLICTS": "E_DESTINATION_NOT_EMPTY",
|
|
557
|
+
"E_TEMPLATE_DOWNLOAD": "E_NETWORK",
|
|
558
|
+
"E_TEMPLATE_FETCH_TIMEOUT": "E_NETWORK",
|
|
559
|
+
"E_MANIFEST_INVALID_JSON": "E_MANIFEST_INVALID",
|
|
560
|
+
"E_MANIFEST_NOT_EXTENSION": "E_MANIFEST_INVALID",
|
|
561
|
+
"E_READY_NOT_FOUND": "E_SESSION_NOT_FOUND",
|
|
562
|
+
"E_READY_STALE": "E_SESSION_NOT_FOUND",
|
|
563
|
+
"E_PORT_DISAGREEMENT": "E_CONTROL_UNAVAILABLE",
|
|
564
|
+
"E_CONTROL_INSTANCE_MISMATCH": "E_CONTROL_UNAVAILABLE",
|
|
565
|
+
"E_CONTROL_BAD_HELLO": "E_CONTROL_UNAVAILABLE",
|
|
566
|
+
"E_CONTROL_HANDSHAKE_TIMEOUT": "E_CONTROL_UNAVAILABLE",
|
|
567
|
+
"E_CONTROL_NOT_OPEN": "E_CONTROL_UNAVAILABLE",
|
|
568
|
+
"E_CONTROL_PROTOCOL": "E_CONTROL_UNAVAILABLE",
|
|
569
|
+
"E_CONTROL_TOKEN_MISSING": "E_TOKEN_MISSING",
|
|
570
|
+
"E_EXECUTOR_UNAVAILABLE": "E_CONTROL_UNAVAILABLE",
|
|
571
|
+
"E_COMMAND_TIMEOUT": "E_TIMEOUT",
|
|
572
|
+
"E_EVAL_DISABLED": "E_EVAL_REFUSED",
|
|
573
|
+
"E_EVAL_TOKEN_MISSING": "E_TOKEN_MISSING",
|
|
574
|
+
"E_EVAL_TOKEN_MISMATCH": "E_EVAL_REFUSED",
|
|
575
|
+
"E_UNSUPPORTED_OP": "E_NOT_IMPLEMENTED",
|
|
576
|
+
"E_UNINSTALL_TARGET_REQUIRED": "E_ARGS",
|
|
577
|
+
"E_PREVIEW_NO_LAUNCHER": "E_INTERNAL",
|
|
578
|
+
"E_SAFARI_PLATFORM": "E_SAFARI_TOOLCHAIN",
|
|
579
|
+
"E_SAFARI_XCODE_MISSING": "E_SAFARI_TOOLCHAIN",
|
|
580
|
+
"E_SAFARI_TOOL_MISSING": "E_SAFARI_TOOLCHAIN",
|
|
581
|
+
"E_SAFARI_TOOL_FAILED": "E_SAFARI_TOOLCHAIN",
|
|
582
|
+
"E_SAFARI_XCODEBUILD": "E_SAFARI_TOOLCHAIN",
|
|
583
|
+
"E_SAFARI_APP_NOT_REGISTERED": "E_SAFARI_TOOLCHAIN",
|
|
584
|
+
"E_SAFARI_PROJECT_STALE": "E_SAFARI_TOOLCHAIN",
|
|
585
|
+
"E_SAFARI_BUNDLE_ID_INVALID": "E_INVALID_OPTION",
|
|
586
|
+
"E_PUBLISH_NO_TOKEN": "E_AUTH_REQUIRED",
|
|
587
|
+
"E_PUBLISH_UNREACHABLE": "E_NETWORK",
|
|
588
|
+
"E_UNKNOWN": "E_INTERNAL"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://extension.js.org/contract/envelope-1.json",
|
|
4
|
+
"title": "Extension.js CLI result envelope, schema 1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"ok",
|
|
9
|
+
"command",
|
|
10
|
+
"status",
|
|
11
|
+
"value",
|
|
12
|
+
"error",
|
|
13
|
+
"warnings"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schema": { "const": 1 },
|
|
17
|
+
"ok": { "type": "boolean" },
|
|
18
|
+
"command": { "type": "string", "minLength": 1 },
|
|
19
|
+
"status": { "type": "string", "minLength": 1 },
|
|
20
|
+
"value": {},
|
|
21
|
+
"error": {
|
|
22
|
+
"oneOf": [
|
|
23
|
+
{ "type": "null" },
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"required": ["code", "message"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"code": { "type": "string", "pattern": "^E_[A-Z0-9_]+$" },
|
|
29
|
+
"message": { "type": "string" },
|
|
30
|
+
"name": { "type": "string" },
|
|
31
|
+
"engine": { "type": "string" },
|
|
32
|
+
"hint": { "type": "string" }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"truncated": { "type": "boolean" },
|
|
38
|
+
"hint": { "type": "string" },
|
|
39
|
+
"warnings": { "type": "array", "items": { "type": "string" } }
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": true
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"ok": false,
|
|
4
|
+
"command": "build",
|
|
5
|
+
"status": "build-failed",
|
|
6
|
+
"value": null,
|
|
7
|
+
"error": {
|
|
8
|
+
"code": "E_COMPILE",
|
|
9
|
+
"message": "Build failed with 2 errors."
|
|
10
|
+
},
|
|
11
|
+
"hint": "Fix the error above and run build again.",
|
|
12
|
+
"warnings": []
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"ok": false,
|
|
4
|
+
"command": "dev",
|
|
5
|
+
"status": "compile-failed",
|
|
6
|
+
"value": {
|
|
7
|
+
"command": "dev",
|
|
8
|
+
"browser": "chromium",
|
|
9
|
+
"distPath": "/home/dev/my-extension/dist/chromium",
|
|
10
|
+
"pid": 51234,
|
|
11
|
+
"port": 8080,
|
|
12
|
+
"readyPath": "/home/dev/my-extension/.extension-js/ready.json",
|
|
13
|
+
"eventsPath": "/home/dev/my-extension/.extension-js/events.ndjson",
|
|
14
|
+
"output": "ERROR in ./content/scripts.ts\nModule not found: Can't resolve './missing'",
|
|
15
|
+
"durationMs": 412
|
|
16
|
+
},
|
|
17
|
+
"error": {
|
|
18
|
+
"code": "E_FIRST_COMPILE",
|
|
19
|
+
"message": "The first compilation failed."
|
|
20
|
+
},
|
|
21
|
+
"truncated": true,
|
|
22
|
+
"warnings": []
|
|
23
|
+
}
|