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,180 @@
|
|
|
1
|
+
export type Channel = 'info' | 'success' | 'warn' | 'error' | 'debug';
|
|
2
|
+
export declare function isDebug(): boolean;
|
|
3
|
+
export declare function prefix(type: Channel): string;
|
|
4
|
+
export declare const fmt: {
|
|
5
|
+
heading: (title: string) => string;
|
|
6
|
+
label: (key: string) => string;
|
|
7
|
+
val: (value: string) => string;
|
|
8
|
+
code: (value: string) => string;
|
|
9
|
+
bullet: (value: string) => string;
|
|
10
|
+
block(title: string, rows: Array<[string, string]>): string;
|
|
11
|
+
truncate(input: unknown, max?: number): string;
|
|
12
|
+
};
|
|
13
|
+
export interface CardRow {
|
|
14
|
+
label: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CardInput {
|
|
18
|
+
version?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
rows?: CardRow[];
|
|
21
|
+
}
|
|
22
|
+
export declare function card(input?: CardInput): string;
|
|
23
|
+
export declare function isCardKeyClaimed(key: string): boolean;
|
|
24
|
+
export declare function claimCardKey(key: string): boolean;
|
|
25
|
+
export declare function artifactNoun(browser: string): 'Add-on' | 'Extension';
|
|
26
|
+
export declare const ENVELOPE_SCHEMA = 1;
|
|
27
|
+
export declare const CODES: {
|
|
28
|
+
readonly E_ARGS: 'E_ARGS';
|
|
29
|
+
readonly E_PROJECT_NOT_FOUND: 'E_PROJECT_NOT_FOUND';
|
|
30
|
+
readonly E_MANIFEST_NOT_FOUND: 'E_MANIFEST_NOT_FOUND';
|
|
31
|
+
readonly E_MANIFEST_INVALID: 'E_MANIFEST_INVALID';
|
|
32
|
+
readonly E_FIRST_COMPILE: 'E_FIRST_COMPILE';
|
|
33
|
+
readonly E_COMPILE: 'E_COMPILE';
|
|
34
|
+
readonly E_BROWSER_NOT_FOUND: 'E_BROWSER_NOT_FOUND';
|
|
35
|
+
readonly E_BROWSER_LAUNCH: 'E_BROWSER_LAUNCH';
|
|
36
|
+
readonly E_PROFILE_LOCKED: 'E_PROFILE_LOCKED';
|
|
37
|
+
readonly E_READY_TIMEOUT: 'E_READY_TIMEOUT';
|
|
38
|
+
readonly E_SESSION_EXISTS: 'E_SESSION_EXISTS';
|
|
39
|
+
readonly E_CONTROL_DENIED: 'E_CONTROL_DENIED';
|
|
40
|
+
readonly E_CONTROL_UNAVAILABLE: 'E_CONTROL_UNAVAILABLE';
|
|
41
|
+
readonly E_TOKEN_MISSING: 'E_TOKEN_MISSING';
|
|
42
|
+
readonly E_NETWORK: 'E_NETWORK';
|
|
43
|
+
readonly E_INTERRUPTED: 'E_INTERRUPTED';
|
|
44
|
+
readonly E_NOT_IMPLEMENTED: 'E_NOT_IMPLEMENTED';
|
|
45
|
+
readonly E_INTERNAL: 'E_INTERNAL';
|
|
46
|
+
readonly E_UNSUPPORTED_BROWSER: 'E_UNSUPPORTED_BROWSER';
|
|
47
|
+
readonly E_INVALID_OPTION: 'E_INVALID_OPTION';
|
|
48
|
+
readonly E_PORT_UNAVAILABLE: 'E_PORT_UNAVAILABLE';
|
|
49
|
+
readonly E_DEPENDENCY_INSTALL: 'E_DEPENDENCY_INSTALL';
|
|
50
|
+
readonly E_TEMPLATE_NOT_FOUND: 'E_TEMPLATE_NOT_FOUND';
|
|
51
|
+
readonly E_DESTINATION_NOT_EMPTY: 'E_DESTINATION_NOT_EMPTY';
|
|
52
|
+
readonly E_DESTINATION_NOT_WRITABLE: 'E_DESTINATION_NOT_WRITABLE';
|
|
53
|
+
readonly E_BROWSER_DOWNLOAD: 'E_BROWSER_DOWNLOAD';
|
|
54
|
+
readonly E_SESSION_NOT_FOUND: 'E_SESSION_NOT_FOUND';
|
|
55
|
+
readonly E_EVAL_REFUSED: 'E_EVAL_REFUSED';
|
|
56
|
+
readonly E_TARGET_NOT_FOUND: 'E_TARGET_NOT_FOUND';
|
|
57
|
+
readonly E_TIMEOUT: 'E_TIMEOUT';
|
|
58
|
+
readonly E_PUBLISH_REJECTED: 'E_PUBLISH_REJECTED';
|
|
59
|
+
readonly E_AUTH_REQUIRED: 'E_AUTH_REQUIRED';
|
|
60
|
+
readonly E_SAFARI_TOOLCHAIN: 'E_SAFARI_TOOLCHAIN';
|
|
61
|
+
readonly E_EVAL: 'E_EVAL';
|
|
62
|
+
readonly E_INSPECT: 'E_INSPECT';
|
|
63
|
+
readonly E_STORAGE: 'E_STORAGE';
|
|
64
|
+
readonly E_LOGS_NOT_FOUND: 'E_LOGS_NOT_FOUND';
|
|
65
|
+
readonly E_READY_ERROR_STATUS: 'E_READY_ERROR_STATUS';
|
|
66
|
+
readonly E_COMMAND_UNSUPPORTED_FOR_TARGET: 'E_COMMAND_UNSUPPORTED_FOR_TARGET';
|
|
67
|
+
readonly E_FLAG_VALUE_INVALID: 'E_FLAG_VALUE_INVALID';
|
|
68
|
+
readonly E_FLAG_NOT_SUPPORTED_HERE: 'E_FLAG_NOT_SUPPORTED_HERE';
|
|
69
|
+
readonly E_DEV_SERVER_START: 'E_DEV_SERVER_START';
|
|
70
|
+
readonly E_DOCTOR_CHECKS_FAILED: 'E_DOCTOR_CHECKS_FAILED';
|
|
71
|
+
readonly E_TELEMETRY_WRITE: 'E_TELEMETRY_WRITE';
|
|
72
|
+
readonly E_PREVIEW_NO_DIST: 'E_PREVIEW_NO_DIST';
|
|
73
|
+
readonly E_BROWSER_UNINSTALL: 'E_BROWSER_UNINSTALL';
|
|
74
|
+
readonly E_NODE_VERSION: 'E_NODE_VERSION';
|
|
75
|
+
readonly E_UNKNOWN_COMMAND: 'E_UNKNOWN_COMMAND';
|
|
76
|
+
readonly E_REMOVED_FLAG: 'E_REMOVED_FLAG';
|
|
77
|
+
readonly E_BROWSER_NOT_INSTALLABLE: 'E_BROWSER_NOT_INSTALLABLE';
|
|
78
|
+
readonly E_PARENT_GONE: 'E_PARENT_GONE';
|
|
79
|
+
readonly E_REMOTE_URL_UNSUPPORTED: 'E_REMOTE_URL_UNSUPPORTED';
|
|
80
|
+
readonly E_CONFIG_LOAD: 'E_CONFIG_LOAD';
|
|
81
|
+
readonly E_MANAGED_DEP_CONFLICT: 'E_MANAGED_DEP_CONFLICT';
|
|
82
|
+
readonly E_TYPES_EMIT: 'E_TYPES_EMIT';
|
|
83
|
+
readonly E_TSCONFIG_MISSING: 'E_TSCONFIG_MISSING';
|
|
84
|
+
readonly E_OPTIONAL_DEP_UNRESOLVED: 'E_OPTIONAL_DEP_UNRESOLVED';
|
|
85
|
+
readonly E_OPTIONAL_DEP_LOAD: 'E_OPTIONAL_DEP_LOAD';
|
|
86
|
+
readonly E_OPTIONAL_DEP_UNKNOWN: 'E_OPTIONAL_DEP_UNKNOWN';
|
|
87
|
+
readonly E_COMPANION_EXTENSION_PATH: 'E_COMPANION_EXTENSION_PATH';
|
|
88
|
+
readonly E_MANIFEST_IN_PUBLIC: 'E_MANIFEST_IN_PUBLIC';
|
|
89
|
+
readonly E_RUNTIME_NOT_FOUND: 'E_RUNTIME_NOT_FOUND';
|
|
90
|
+
readonly E_MANIFEST_SHAPE: 'E_MANIFEST_SHAPE';
|
|
91
|
+
readonly E_MANIFEST_PAGE_MISSING: 'E_MANIFEST_PAGE_MISSING';
|
|
92
|
+
readonly E_MANIFEST_VERSION_UNSUPPORTED: 'E_MANIFEST_VERSION_UNSUPPORTED';
|
|
93
|
+
readonly E_MANIFEST_LOAD_BLOCKERS: 'E_MANIFEST_LOAD_BLOCKERS';
|
|
94
|
+
readonly E_MANIFEST_PERMISSION_MISSING: 'E_MANIFEST_PERMISSION_MISSING';
|
|
95
|
+
readonly E_MANIFEST_MSG_KEY_MISSING: 'E_MANIFEST_MSG_KEY_MISSING';
|
|
96
|
+
readonly E_MANIFEST_EMIT: 'E_MANIFEST_EMIT';
|
|
97
|
+
readonly E_RESTART_REQUIRED: 'E_RESTART_REQUIRED';
|
|
98
|
+
readonly E_COMPILE_FATAL: 'E_COMPILE_FATAL';
|
|
99
|
+
readonly E_MODULE_NOT_FOUND: 'E_MODULE_NOT_FOUND';
|
|
100
|
+
readonly E_ENTRY_NOT_FOUND: 'E_ENTRY_NOT_FOUND';
|
|
101
|
+
readonly E_ASSET_MISSING: 'E_ASSET_MISSING';
|
|
102
|
+
readonly E_SCRIPT_DEP_MISSING: 'E_SCRIPT_DEP_MISSING';
|
|
103
|
+
readonly E_RESERVED_FOLDER: 'E_RESERVED_FOLDER';
|
|
104
|
+
readonly E_CSS_PARSE: 'E_CSS_PARSE';
|
|
105
|
+
readonly E_CSS_PREPROCESSOR_MISSING: 'E_CSS_PREPROCESSOR_MISSING';
|
|
106
|
+
readonly E_CSS_DEAD_REF: 'E_CSS_DEAD_REF';
|
|
107
|
+
readonly E_INTEGRATION_INSTALL: 'E_INTEGRATION_INSTALL';
|
|
108
|
+
readonly E_POLYFILL_NOT_FOUND: 'E_POLYFILL_NOT_FOUND';
|
|
109
|
+
readonly E_LOCALES_LAYOUT: 'E_LOCALES_LAYOUT';
|
|
110
|
+
readonly E_WAR_INVALID: 'E_WAR_INVALID';
|
|
111
|
+
readonly E_MATCH_PATTERN_INVALID: 'E_MATCH_PATTERN_INVALID';
|
|
112
|
+
readonly E_BACKGROUND_REQUIRED: 'E_BACKGROUND_REQUIRED';
|
|
113
|
+
readonly E_CONTENT_SCRIPT_SYNTAX: 'E_CONTENT_SCRIPT_SYNTAX';
|
|
114
|
+
readonly E_NO_ENTRYPOINTS: 'E_NO_ENTRYPOINTS';
|
|
115
|
+
readonly E_REMOTE_RESOURCE_BLOCKED: 'E_REMOTE_RESOURCE_BLOCKED';
|
|
116
|
+
readonly E_PERF_BUDGET: 'E_PERF_BUDGET';
|
|
117
|
+
readonly E_ZIP_SKIPPED: 'E_ZIP_SKIPPED';
|
|
118
|
+
readonly E_ENV_NO_MATCH: 'E_ENV_NO_MATCH';
|
|
119
|
+
readonly E_REMOTE_FETCH_TIMEOUT: 'E_REMOTE_FETCH_TIMEOUT';
|
|
120
|
+
readonly E_REMOTE_DOWNLOAD: 'E_REMOTE_DOWNLOAD';
|
|
121
|
+
readonly E_REMOTE_ZIP_INVALID: 'E_REMOTE_ZIP_INVALID';
|
|
122
|
+
readonly E_LOCAL_ZIP_NOT_FOUND: 'E_LOCAL_ZIP_NOT_FOUND';
|
|
123
|
+
readonly E_PROJECT_DOWNLOAD_EMPTY: 'E_PROJECT_DOWNLOAD_EMPTY';
|
|
124
|
+
readonly E_BROWSER_BINARY_REQUIRED: 'E_BROWSER_BINARY_REQUIRED';
|
|
125
|
+
readonly E_BROWSER_BINARY_INVALID: 'E_BROWSER_BINARY_INVALID';
|
|
126
|
+
readonly E_BROWSER_EXITED: 'E_BROWSER_EXITED';
|
|
127
|
+
readonly E_BROWSER_START_TIMEOUT: 'E_BROWSER_START_TIMEOUT';
|
|
128
|
+
readonly E_LAUNCH_SKIPPED_COMPILE_ERRORS: 'E_LAUNCH_SKIPPED_COMPILE_ERRORS';
|
|
129
|
+
readonly E_INSTANCE_AMBIGUOUS: 'E_INSTANCE_AMBIGUOUS';
|
|
130
|
+
readonly E_WSL_INTEROP: 'E_WSL_INTEROP';
|
|
131
|
+
readonly E_EXTENSION_LOAD_REFUSED: 'E_EXTENSION_LOAD_REFUSED';
|
|
132
|
+
readonly E_ADDON_INSTALL: 'E_ADDON_INSTALL';
|
|
133
|
+
readonly E_BROWSER_CONNECT: 'E_BROWSER_CONNECT';
|
|
134
|
+
readonly E_BROWSER_CONNECTION_CLOSED: 'E_BROWSER_CONNECTION_CLOSED';
|
|
135
|
+
readonly E_CDP_NOT_CONNECTED: 'E_CDP_NOT_CONNECTED';
|
|
136
|
+
readonly E_CDP_TIMEOUT: 'E_CDP_TIMEOUT';
|
|
137
|
+
readonly E_CDP_OP_FAILED: 'E_CDP_OP_FAILED';
|
|
138
|
+
readonly E_EXTENSION_ID_UNKNOWN: 'E_EXTENSION_ID_UNKNOWN';
|
|
139
|
+
readonly E_RDP_PROTOCOL: 'E_RDP_PROTOCOL';
|
|
140
|
+
readonly E_DEV_SERVER_TIMEOUT: 'E_DEV_SERVER_TIMEOUT';
|
|
141
|
+
readonly E_PORT_IN_USE: 'E_PORT_IN_USE';
|
|
142
|
+
readonly E_SESSION_STOPPED: 'E_SESSION_STOPPED';
|
|
143
|
+
readonly E_LOGS_STREAM_GAP: 'E_LOGS_STREAM_GAP';
|
|
144
|
+
readonly E_CREATE_DIR: 'E_CREATE_DIR';
|
|
145
|
+
readonly E_CREATE_WRITE: 'E_CREATE_WRITE';
|
|
146
|
+
readonly E_CREATE_TESTS_SETUP: 'E_CREATE_TESTS_SETUP';
|
|
147
|
+
readonly E_GIT_SKIPPED: 'E_GIT_SKIPPED';
|
|
148
|
+
readonly E_BROWSER_INSTALL_PRIVILEGE: 'E_BROWSER_INSTALL_PRIVILEGE';
|
|
149
|
+
readonly E_UNINSTALL_NOOP: 'E_UNINSTALL_NOOP';
|
|
150
|
+
};
|
|
151
|
+
export type ErrorCode = (typeof CODES)[keyof typeof CODES];
|
|
152
|
+
export interface EnvelopeError {
|
|
153
|
+
code: ErrorCode;
|
|
154
|
+
message: string;
|
|
155
|
+
name?: string;
|
|
156
|
+
engine?: string;
|
|
157
|
+
hint?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface Envelope<T = unknown> {
|
|
160
|
+
schema: typeof ENVELOPE_SCHEMA;
|
|
161
|
+
ok: boolean;
|
|
162
|
+
command: string;
|
|
163
|
+
status: string;
|
|
164
|
+
value: T | null;
|
|
165
|
+
error: EnvelopeError | null;
|
|
166
|
+
truncated?: boolean;
|
|
167
|
+
hint?: string;
|
|
168
|
+
warnings: string[];
|
|
169
|
+
}
|
|
170
|
+
export interface EnvelopeExtras {
|
|
171
|
+
hint?: string;
|
|
172
|
+
warnings?: string[];
|
|
173
|
+
truncated?: boolean;
|
|
174
|
+
value?: unknown;
|
|
175
|
+
}
|
|
176
|
+
export declare const ENVELOPE: {
|
|
177
|
+
schema: number;
|
|
178
|
+
ok<T>(command: string, status: string, value: T, extras?: EnvelopeExtras): Envelope<T>;
|
|
179
|
+
fail(command: string, status: string, error: EnvelopeError, extras?: EnvelopeExtras): Envelope;
|
|
180
|
+
};
|
|
@@ -4,6 +4,7 @@ export type PlaywrightAutomationCommand = 'dev' | 'start' | 'preview' | 'build';
|
|
|
4
4
|
export type ReadyStatus = 'starting' | 'ready' | 'error' | 'stopped';
|
|
5
5
|
export type ReadyMetadata = {
|
|
6
6
|
schemaVersion: 2;
|
|
7
|
+
schema: 1;
|
|
7
8
|
status: ReadyStatus;
|
|
8
9
|
command: PlaywrightAutomationCommand;
|
|
9
10
|
browser: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export interface DevOptions extends BrowserOptionsBase {
|
|
|
156
156
|
logUrl?: string;
|
|
157
157
|
logTab?: number | string;
|
|
158
158
|
hashContentScripts?: boolean;
|
|
159
|
+
exitOnError?: boolean;
|
|
159
160
|
appName?: SafariOptions['appName'];
|
|
160
161
|
bundleId?: SafariOptions['bundleId'];
|
|
161
162
|
macOsOnly?: SafariOptions['macOsOnly'];
|