@vostride/agent-qa-plugin-kit 0.0.1 → 0.3.1

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.
@@ -0,0 +1,259 @@
1
+ import { z } from "zod";
2
+ export declare const PLUGIN_PROTOCOL_VERSION = 1;
3
+ export declare const PLUGIN_METHODS: readonly ['initialize', 'check', 'acquire', 'uploadApp', 'started', 'end', 'release', 'shutdown'];
4
+ export type PluginMethod = (typeof PLUGIN_METHODS)[number];
5
+ export declare const OPTIONAL_PLUGIN_METHODS: readonly ['check', 'uploadApp', 'started', 'end'];
6
+ export type OptionalPluginMethod = (typeof OPTIONAL_PLUGIN_METHODS)[number];
7
+ export declare const PLUGIN_SERVES: readonly ['playwright', 'cdp', 'appium'];
8
+ export type PluginServe = (typeof PLUGIN_SERVES)[number];
9
+ export declare const PLUGIN_RUN_FACTS: readonly ['testName', 'runId', 'failure'];
10
+ export type PluginRunFact = (typeof PLUGIN_RUN_FACTS)[number];
11
+ export declare const PLUGIN_FAILURE_KINDS: readonly ['unreachable', 'auth', 'capacity', 'timeout', 'version', 'refused', 'ended', 'lost'];
12
+ export type PluginFailureKind = (typeof PLUGIN_FAILURE_KINDS)[number];
13
+ export declare const PLUGIN_ERROR_CODES: {
14
+ readonly parse: -32700;
15
+ readonly invalidRequest: -32600;
16
+ readonly methodNotFound: -32601;
17
+ readonly invalidParams: -32602;
18
+ readonly plugin: -32000;
19
+ readonly cancelled: -32800;
20
+ };
21
+ export declare const CANCEL_METHOD = "$/cancel";
22
+ export declare const PROGRESS_METHOD = "$/progress";
23
+ export declare const MAX_MESSAGE_BYTES: number;
24
+ export declare const InitializeParamsSchema: z.ZodObject<{
25
+ protocolVersions: z.ZodArray<z.ZodNumber>;
26
+ host: z.ZodObject<{
27
+ pid: z.ZodNumber;
28
+ agentQaVersion: z.ZodString;
29
+ playwrightVersion: z.ZodString;
30
+ webdriverioVersion: z.ZodString;
31
+ }, z.core.$strip>;
32
+ entry: z.ZodString;
33
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
34
+ runFacts: z.ZodOptional<z.ZodObject<{
35
+ runId: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
38
+ export type InitializeParams = z.infer<typeof InitializeParamsSchema>;
39
+ export declare const InitializeResultSchema: z.ZodObject<{
40
+ protocolVersion: z.ZodNumber;
41
+ plugin: z.ZodObject<{
42
+ name: z.ZodString;
43
+ version: z.ZodString;
44
+ }, z.core.$strip>;
45
+ serves: z.ZodArray<z.ZodEnum<{
46
+ appium: "appium";
47
+ cdp: "cdp";
48
+ playwright: "playwright";
49
+ }>>;
50
+ methods: z.ZodArray<z.ZodEnum<{
51
+ check: "check";
52
+ end: "end";
53
+ started: "started";
54
+ uploadApp: "uploadApp";
55
+ }>>;
56
+ }, z.core.$strip>;
57
+ export type InitializeResult = z.infer<typeof InitializeResultSchema>;
58
+ export declare const CheckParamsSchema: z.ZodObject<{
59
+ remotes: z.ZodArray<z.ZodObject<{
60
+ name: z.ZodString;
61
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>;
64
+ export type CheckParams = z.infer<typeof CheckParamsSchema>;
65
+ export declare const CheckResultSchema: z.ZodObject<{
66
+ state: z.ZodEnum<{
67
+ ok: "ok";
68
+ warn: "warn";
69
+ }>;
70
+ lines: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ export type CheckResult = z.infer<typeof CheckResultSchema>;
73
+ export declare const AcquireParamsSchema: z.ZodObject<{
74
+ remote: z.ZodString;
75
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
76
+ session: z.ZodDiscriminatedUnion<[z.ZodObject<{
77
+ platform: z.ZodLiteral<"web">;
78
+ engine: z.ZodEnum<{
79
+ chromium: "chromium";
80
+ firefox: "firefox";
81
+ webkit: "webkit";
82
+ }>;
83
+ context: z.ZodEnum<{
84
+ new: "new";
85
+ reuse: "reuse";
86
+ }>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ platform: z.ZodEnum<{
89
+ android: "android";
90
+ ios: "ios";
91
+ }>;
92
+ capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
93
+ }, z.core.$strip>], "platform">;
94
+ run: z.ZodOptional<z.ZodObject<{
95
+ testName: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>;
98
+ export type AcquireParams = z.infer<typeof AcquireParamsSchema>;
99
+ export declare const AcquireResultSchema: z.ZodObject<{
100
+ handle: z.ZodJSONSchema;
101
+ protocol: z.ZodEnum<{
102
+ appium: "appium";
103
+ cdp: "cdp";
104
+ playwright: "playwright";
105
+ }>;
106
+ url: z.ZodString;
107
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
108
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ mask: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ link: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>;
112
+ export type AcquireResult = z.infer<typeof AcquireResultSchema>;
113
+ export declare const UploadAppParamsSchema: z.ZodObject<{
114
+ remote: z.ZodString;
115
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
116
+ platform: z.ZodEnum<{
117
+ android: "android";
118
+ ios: "ios";
119
+ }>;
120
+ path: z.ZodString;
121
+ sha256: z.ZodString;
122
+ size: z.ZodNumber;
123
+ }, z.core.$strip>;
124
+ export type UploadAppParams = z.infer<typeof UploadAppParamsSchema>;
125
+ export declare const UploadAppResultSchema: z.ZodObject<{
126
+ ref: z.ZodString;
127
+ }, z.core.$strip>;
128
+ export type UploadAppResult = z.infer<typeof UploadAppResultSchema>;
129
+ export declare const StartedParamsSchema: z.ZodObject<{
130
+ handle: z.ZodJSONSchema;
131
+ sessionId: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ export type StartedParams = z.infer<typeof StartedParamsSchema>;
134
+ export declare const StartedResultSchema: z.ZodObject<{
135
+ link: z.ZodOptional<z.ZodString>;
136
+ appiumVersion: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strip>;
138
+ export type StartedResult = z.infer<typeof StartedResultSchema>;
139
+ export declare const EndParamsSchema: z.ZodObject<{
140
+ handle: z.ZodJSONSchema;
141
+ outcome: z.ZodEnum<{
142
+ cancelled: "cancelled";
143
+ error: "error";
144
+ failed: "failed";
145
+ passed: "passed";
146
+ }>;
147
+ reason: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>;
149
+ export type EndParams = z.infer<typeof EndParamsSchema>;
150
+ export declare const ReleaseParamsSchema: z.ZodObject<{
151
+ handle: z.ZodJSONSchema;
152
+ }, z.core.$strip>;
153
+ export type ReleaseParams = z.infer<typeof ReleaseParamsSchema>;
154
+ export declare const CancelParamsSchema: z.ZodObject<{
155
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
156
+ }, z.core.$strip>;
157
+ export type CancelParams = z.infer<typeof CancelParamsSchema>;
158
+ export declare const ProgressParamsSchema: z.ZodObject<{
159
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
160
+ message: z.ZodString;
161
+ queued: z.ZodOptional<z.ZodNumber>;
162
+ percent: z.ZodOptional<z.ZodNumber>;
163
+ }, z.core.$strip>;
164
+ export type ProgressParams = z.infer<typeof ProgressParamsSchema>;
165
+ export declare const PluginErrorDataSchema: z.ZodObject<{
166
+ kind: z.ZodEnum<{
167
+ auth: "auth";
168
+ capacity: "capacity";
169
+ ended: "ended";
170
+ lost: "lost";
171
+ refused: "refused";
172
+ timeout: "timeout";
173
+ unreachable: "unreachable";
174
+ version: "version";
175
+ }>;
176
+ path: z.ZodOptional<z.ZodString>;
177
+ handle: z.ZodOptional<z.ZodJSONSchema>;
178
+ supported: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
179
+ requested: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
180
+ }, z.core.$strip>;
181
+ export type PluginErrorData = z.infer<typeof PluginErrorDataSchema>;
182
+ export declare const PLUGIN_MANIFEST_FIELD = "agent-qa";
183
+ declare const RemotePluginManifestSchema: z.ZodObject<{
184
+ kind: z.ZodLiteral<"remote">;
185
+ runs: z.ZodLiteral<"process">;
186
+ protocol: z.ZodNumber;
187
+ entry: z.ZodString;
188
+ serves: z.ZodArray<z.ZodEnum<{
189
+ appium: "appium";
190
+ cdp: "cdp";
191
+ playwright: "playwright";
192
+ }>>;
193
+ methods: z.ZodArray<z.ZodEnum<{
194
+ check: "check";
195
+ end: "end";
196
+ started: "started";
197
+ uploadApp: "uploadApp";
198
+ }>>;
199
+ options: z.ZodString;
200
+ settings: z.ZodString;
201
+ runFacts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
202
+ failure: "failure";
203
+ runId: "runId";
204
+ testName: "testName";
205
+ }>>>;
206
+ skill: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>;
208
+ export declare const PluginManifestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
+ kind: z.ZodLiteral<"remote">;
210
+ runs: z.ZodLiteral<"process">;
211
+ protocol: z.ZodNumber;
212
+ entry: z.ZodString;
213
+ serves: z.ZodArray<z.ZodEnum<{
214
+ appium: "appium";
215
+ cdp: "cdp";
216
+ playwright: "playwright";
217
+ }>>;
218
+ methods: z.ZodArray<z.ZodEnum<{
219
+ check: "check";
220
+ end: "end";
221
+ started: "started";
222
+ uploadApp: "uploadApp";
223
+ }>>;
224
+ options: z.ZodString;
225
+ settings: z.ZodString;
226
+ runFacts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
227
+ failure: "failure";
228
+ runId: "runId";
229
+ testName: "testName";
230
+ }>>>;
231
+ skill: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strict>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"model-auth">;
234
+ runs: z.ZodLiteral<"in-process">;
235
+ entry: z.ZodString;
236
+ options: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strict>, z.ZodObject<{
238
+ kind: z.ZodLiteral<"model-provider">;
239
+ runs: z.ZodLiteral<"in-process">;
240
+ entry: z.ZodString;
241
+ options: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strict>], "kind">;
243
+ export type PluginManifest = z.infer<typeof PluginManifestSchema>;
244
+ export type RemotePluginManifest = z.infer<typeof RemotePluginManifestSchema>;
245
+ export declare function encodeMessage(message: unknown): string;
246
+ export interface LineDecoderOptions {
247
+ maxLineBytes: number;
248
+ onLine: (line: string) => void;
249
+ onOverflow: () => void;
250
+ }
251
+ export interface LineDecoder {
252
+ push(chunk: Uint8Array | string): void;
253
+ end(): void;
254
+ }
255
+ export declare function createLineDecoder({ maxLineBytes, onLine, onOverflow }: LineDecoderOptions): LineDecoder;
256
+ export declare const PLUGIN_ENVIRONMENT_NAMES: readonly ["PATH", "HOME", "TMPDIR", "TEMP", "TMP", "LANG", "TZ", "HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY", "ALL_PROXY", ...string[], "NODE_EXTRA_CA_CERTS", "SSL_CERT_FILE"];
257
+ export declare const PLUGIN_WINDOWS_ENVIRONMENT_NAMES: readonly ['SystemRoot', 'ComSpec', 'PATHEXT', 'USERPROFILE', 'APPDATA', 'LOCALAPPDATA'];
258
+ export declare function pluginEnvironment(env: Readonly<Record<string, string | undefined>>, platform: string): Record<string, string>;
259
+ export {};
@@ -0,0 +1,259 @@
1
+ import { z } from "zod";
2
+ export declare const PLUGIN_PROTOCOL_VERSION = 1;
3
+ export declare const PLUGIN_METHODS: readonly ['initialize', 'check', 'acquire', 'uploadApp', 'started', 'end', 'release', 'shutdown'];
4
+ export type PluginMethod = (typeof PLUGIN_METHODS)[number];
5
+ export declare const OPTIONAL_PLUGIN_METHODS: readonly ['check', 'uploadApp', 'started', 'end'];
6
+ export type OptionalPluginMethod = (typeof OPTIONAL_PLUGIN_METHODS)[number];
7
+ export declare const PLUGIN_SERVES: readonly ['playwright', 'cdp', 'appium'];
8
+ export type PluginServe = (typeof PLUGIN_SERVES)[number];
9
+ export declare const PLUGIN_RUN_FACTS: readonly ['testName', 'runId', 'failure'];
10
+ export type PluginRunFact = (typeof PLUGIN_RUN_FACTS)[number];
11
+ export declare const PLUGIN_FAILURE_KINDS: readonly ['unreachable', 'auth', 'capacity', 'timeout', 'version', 'refused', 'ended', 'lost'];
12
+ export type PluginFailureKind = (typeof PLUGIN_FAILURE_KINDS)[number];
13
+ export declare const PLUGIN_ERROR_CODES: {
14
+ readonly parse: -32700;
15
+ readonly invalidRequest: -32600;
16
+ readonly methodNotFound: -32601;
17
+ readonly invalidParams: -32602;
18
+ readonly plugin: -32000;
19
+ readonly cancelled: -32800;
20
+ };
21
+ export declare const CANCEL_METHOD = "$/cancel";
22
+ export declare const PROGRESS_METHOD = "$/progress";
23
+ export declare const MAX_MESSAGE_BYTES: number;
24
+ export declare const InitializeParamsSchema: z.ZodObject<{
25
+ protocolVersions: z.ZodArray<z.ZodNumber>;
26
+ host: z.ZodObject<{
27
+ pid: z.ZodNumber;
28
+ agentQaVersion: z.ZodString;
29
+ playwrightVersion: z.ZodString;
30
+ webdriverioVersion: z.ZodString;
31
+ }, z.core.$strip>;
32
+ entry: z.ZodString;
33
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
34
+ runFacts: z.ZodOptional<z.ZodObject<{
35
+ runId: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
38
+ export type InitializeParams = z.infer<typeof InitializeParamsSchema>;
39
+ export declare const InitializeResultSchema: z.ZodObject<{
40
+ protocolVersion: z.ZodNumber;
41
+ plugin: z.ZodObject<{
42
+ name: z.ZodString;
43
+ version: z.ZodString;
44
+ }, z.core.$strip>;
45
+ serves: z.ZodArray<z.ZodEnum<{
46
+ appium: "appium";
47
+ cdp: "cdp";
48
+ playwright: "playwright";
49
+ }>>;
50
+ methods: z.ZodArray<z.ZodEnum<{
51
+ check: "check";
52
+ end: "end";
53
+ started: "started";
54
+ uploadApp: "uploadApp";
55
+ }>>;
56
+ }, z.core.$strip>;
57
+ export type InitializeResult = z.infer<typeof InitializeResultSchema>;
58
+ export declare const CheckParamsSchema: z.ZodObject<{
59
+ remotes: z.ZodArray<z.ZodObject<{
60
+ name: z.ZodString;
61
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>;
64
+ export type CheckParams = z.infer<typeof CheckParamsSchema>;
65
+ export declare const CheckResultSchema: z.ZodObject<{
66
+ state: z.ZodEnum<{
67
+ ok: "ok";
68
+ warn: "warn";
69
+ }>;
70
+ lines: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ export type CheckResult = z.infer<typeof CheckResultSchema>;
73
+ export declare const AcquireParamsSchema: z.ZodObject<{
74
+ remote: z.ZodString;
75
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
76
+ session: z.ZodDiscriminatedUnion<[z.ZodObject<{
77
+ platform: z.ZodLiteral<"web">;
78
+ engine: z.ZodEnum<{
79
+ chromium: "chromium";
80
+ firefox: "firefox";
81
+ webkit: "webkit";
82
+ }>;
83
+ context: z.ZodEnum<{
84
+ new: "new";
85
+ reuse: "reuse";
86
+ }>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ platform: z.ZodEnum<{
89
+ android: "android";
90
+ ios: "ios";
91
+ }>;
92
+ capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
93
+ }, z.core.$strip>], "platform">;
94
+ run: z.ZodOptional<z.ZodObject<{
95
+ testName: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>;
98
+ export type AcquireParams = z.infer<typeof AcquireParamsSchema>;
99
+ export declare const AcquireResultSchema: z.ZodObject<{
100
+ handle: z.ZodJSONSchema;
101
+ protocol: z.ZodEnum<{
102
+ appium: "appium";
103
+ cdp: "cdp";
104
+ playwright: "playwright";
105
+ }>;
106
+ url: z.ZodString;
107
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
108
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ mask: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ link: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>;
112
+ export type AcquireResult = z.infer<typeof AcquireResultSchema>;
113
+ export declare const UploadAppParamsSchema: z.ZodObject<{
114
+ remote: z.ZodString;
115
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
116
+ platform: z.ZodEnum<{
117
+ android: "android";
118
+ ios: "ios";
119
+ }>;
120
+ path: z.ZodString;
121
+ sha256: z.ZodString;
122
+ size: z.ZodNumber;
123
+ }, z.core.$strip>;
124
+ export type UploadAppParams = z.infer<typeof UploadAppParamsSchema>;
125
+ export declare const UploadAppResultSchema: z.ZodObject<{
126
+ ref: z.ZodString;
127
+ }, z.core.$strip>;
128
+ export type UploadAppResult = z.infer<typeof UploadAppResultSchema>;
129
+ export declare const StartedParamsSchema: z.ZodObject<{
130
+ handle: z.ZodJSONSchema;
131
+ sessionId: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ export type StartedParams = z.infer<typeof StartedParamsSchema>;
134
+ export declare const StartedResultSchema: z.ZodObject<{
135
+ link: z.ZodOptional<z.ZodString>;
136
+ appiumVersion: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strip>;
138
+ export type StartedResult = z.infer<typeof StartedResultSchema>;
139
+ export declare const EndParamsSchema: z.ZodObject<{
140
+ handle: z.ZodJSONSchema;
141
+ outcome: z.ZodEnum<{
142
+ cancelled: "cancelled";
143
+ error: "error";
144
+ failed: "failed";
145
+ passed: "passed";
146
+ }>;
147
+ reason: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>;
149
+ export type EndParams = z.infer<typeof EndParamsSchema>;
150
+ export declare const ReleaseParamsSchema: z.ZodObject<{
151
+ handle: z.ZodJSONSchema;
152
+ }, z.core.$strip>;
153
+ export type ReleaseParams = z.infer<typeof ReleaseParamsSchema>;
154
+ export declare const CancelParamsSchema: z.ZodObject<{
155
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
156
+ }, z.core.$strip>;
157
+ export type CancelParams = z.infer<typeof CancelParamsSchema>;
158
+ export declare const ProgressParamsSchema: z.ZodObject<{
159
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
160
+ message: z.ZodString;
161
+ queued: z.ZodOptional<z.ZodNumber>;
162
+ percent: z.ZodOptional<z.ZodNumber>;
163
+ }, z.core.$strip>;
164
+ export type ProgressParams = z.infer<typeof ProgressParamsSchema>;
165
+ export declare const PluginErrorDataSchema: z.ZodObject<{
166
+ kind: z.ZodEnum<{
167
+ auth: "auth";
168
+ capacity: "capacity";
169
+ ended: "ended";
170
+ lost: "lost";
171
+ refused: "refused";
172
+ timeout: "timeout";
173
+ unreachable: "unreachable";
174
+ version: "version";
175
+ }>;
176
+ path: z.ZodOptional<z.ZodString>;
177
+ handle: z.ZodOptional<z.ZodJSONSchema>;
178
+ supported: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
179
+ requested: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
180
+ }, z.core.$strip>;
181
+ export type PluginErrorData = z.infer<typeof PluginErrorDataSchema>;
182
+ export declare const PLUGIN_MANIFEST_FIELD = "agent-qa";
183
+ declare const RemotePluginManifestSchema: z.ZodObject<{
184
+ kind: z.ZodLiteral<"remote">;
185
+ runs: z.ZodLiteral<"process">;
186
+ protocol: z.ZodNumber;
187
+ entry: z.ZodString;
188
+ serves: z.ZodArray<z.ZodEnum<{
189
+ appium: "appium";
190
+ cdp: "cdp";
191
+ playwright: "playwright";
192
+ }>>;
193
+ methods: z.ZodArray<z.ZodEnum<{
194
+ check: "check";
195
+ end: "end";
196
+ started: "started";
197
+ uploadApp: "uploadApp";
198
+ }>>;
199
+ options: z.ZodString;
200
+ settings: z.ZodString;
201
+ runFacts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
202
+ failure: "failure";
203
+ runId: "runId";
204
+ testName: "testName";
205
+ }>>>;
206
+ skill: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>;
208
+ export declare const PluginManifestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
+ kind: z.ZodLiteral<"remote">;
210
+ runs: z.ZodLiteral<"process">;
211
+ protocol: z.ZodNumber;
212
+ entry: z.ZodString;
213
+ serves: z.ZodArray<z.ZodEnum<{
214
+ appium: "appium";
215
+ cdp: "cdp";
216
+ playwright: "playwright";
217
+ }>>;
218
+ methods: z.ZodArray<z.ZodEnum<{
219
+ check: "check";
220
+ end: "end";
221
+ started: "started";
222
+ uploadApp: "uploadApp";
223
+ }>>;
224
+ options: z.ZodString;
225
+ settings: z.ZodString;
226
+ runFacts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
227
+ failure: "failure";
228
+ runId: "runId";
229
+ testName: "testName";
230
+ }>>>;
231
+ skill: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strict>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"model-auth">;
234
+ runs: z.ZodLiteral<"in-process">;
235
+ entry: z.ZodString;
236
+ options: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strict>, z.ZodObject<{
238
+ kind: z.ZodLiteral<"model-provider">;
239
+ runs: z.ZodLiteral<"in-process">;
240
+ entry: z.ZodString;
241
+ options: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strict>], "kind">;
243
+ export type PluginManifest = z.infer<typeof PluginManifestSchema>;
244
+ export type RemotePluginManifest = z.infer<typeof RemotePluginManifestSchema>;
245
+ export declare function encodeMessage(message: unknown): string;
246
+ export interface LineDecoderOptions {
247
+ maxLineBytes: number;
248
+ onLine: (line: string) => void;
249
+ onOverflow: () => void;
250
+ }
251
+ export interface LineDecoder {
252
+ push(chunk: Uint8Array | string): void;
253
+ end(): void;
254
+ }
255
+ export declare function createLineDecoder({ maxLineBytes, onLine, onOverflow }: LineDecoderOptions): LineDecoder;
256
+ export declare const PLUGIN_ENVIRONMENT_NAMES: readonly ["PATH", "HOME", "TMPDIR", "TEMP", "TMP", "LANG", "TZ", "HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY", "ALL_PROXY", ...string[], "NODE_EXTRA_CA_CERTS", "SSL_CERT_FILE"];
257
+ export declare const PLUGIN_WINDOWS_ENVIRONMENT_NAMES: readonly ['SystemRoot', 'ComSpec', 'PATHEXT', 'USERPROFILE', 'APPDATA', 'LOCALAPPDATA'];
258
+ export declare function pluginEnvironment(env: Readonly<Record<string, string | undefined>>, platform: string): Record<string, string>;
259
+ export {};