qualiow-exploratory-testing 1.1.0 → 1.3.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.
Files changed (79) hide show
  1. package/README.md +177 -0
  2. package/bin/mcli +16 -0
  3. package/bin/mobile-cli.mjs +573 -0
  4. package/bin/wadb +6 -0
  5. package/bin/wk-ios +58 -0
  6. package/bin/wkeval.mjs +44 -0
  7. package/data/domains/_default.md +181 -0
  8. package/data/domains/ecommerce.md +192 -0
  9. package/data/domains/fintech.md +200 -0
  10. package/data/domains/identity.md +88 -0
  11. package/data/domains/identity.yml +138 -0
  12. package/data/domains/marketing.md +194 -0
  13. package/data/domains/saas.md +197 -0
  14. package/data/knowledge/changelog.yml +86 -0
  15. package/data/knowledge/learned-patterns.md +172 -1
  16. package/data/knowledge/manifest.yml +210 -4
  17. package/data/knowledge/releases/v0.2.0/entries/technique-contract-narrowing.yml +150 -0
  18. package/data/knowledge/releases/v0.2.0/entries/technique-test-suite-audit.yml +116 -0
  19. package/data/knowledge/releases/v0.2.0/release.yml +20 -0
  20. package/data/knowledge/releases/v0.3.0/entries/technique-functional-diff-analysis.yml +119 -0
  21. package/data/knowledge/releases/v0.3.0/entries/technique-llm-output-verification.yml +102 -0
  22. package/data/knowledge/releases/v0.3.0/entries/technique-verification-mode-selection.yml +153 -0
  23. package/data/knowledge/releases/v0.3.0/release.yml +25 -0
  24. package/data/knowledge/releases/v0.4.0/entries/technique-authenticated-api-probing.yml +137 -0
  25. package/data/knowledge/releases/v0.4.0/entries/technique-environment-fingerprinting.yml +113 -0
  26. package/data/knowledge/releases/v0.4.0/entries/technique-silent-failure-audit.yml +86 -0
  27. package/data/knowledge/releases/v0.4.0/entries/technique-ui-api-differential.yml +97 -0
  28. package/data/knowledge/releases/v0.4.0/release.yml +28 -0
  29. package/data/knowledge/releases/v0.5.0/entries/technique-config-surface-verification.yml +77 -0
  30. package/data/knowledge/releases/v0.5.0/entries/technique-derived-value-verification.yml +81 -0
  31. package/data/knowledge/releases/v0.5.0/entries/technique-expected-behaviour-specification.yml +97 -0
  32. package/data/knowledge/releases/v0.5.0/entries/technique-presentation-integrity.yml +78 -0
  33. package/data/knowledge/releases/v0.5.0/entries/technique-release-readiness-verification.yml +110 -0
  34. package/data/knowledge/releases/v0.5.0/release.yml +33 -0
  35. package/data/targets/_example-backend.yml +123 -0
  36. package/data/targets/_example-mobile-emulation.yml +52 -0
  37. package/data/targets/_example-native-mobile.yml +61 -0
  38. package/data/targets/_example-sim-android-chrome.yml +81 -0
  39. package/data/targets/_example-sim-ios-safari.yml +80 -0
  40. package/data/templates/api-probe-matrix.md +99 -0
  41. package/data/templates/coverage-map.md +14 -0
  42. package/data/templates/expected-behaviour.md +93 -0
  43. package/dist/cli/index.js +137 -5
  44. package/dist/cli/index.js.map +1 -1
  45. package/dist/index.d.ts +350 -527
  46. package/dist/index.js +144 -5
  47. package/dist/index.js.map +1 -1
  48. package/docs/BACKEND-VERIFICATION.md +277 -0
  49. package/docs/MOBILE-SETUP.md +92 -0
  50. package/package.json +26 -12
  51. package/scripts/doctor-mobile.sh +143 -0
  52. package/scripts/setup-mobile.sh +213 -0
  53. package/skills/qa-explore/phases/00-setup.md +8 -1
  54. package/skills/qa-explore/phases/01-auth.md +4 -0
  55. package/skills/qa-explore-mobile/SKILL.md +146 -0
  56. package/skills/qa-explore-mobile/phases/00-setup.md +203 -0
  57. package/skills/qa-explore-mobile/phases/01-auth.md +127 -0
  58. package/skills/qa-explore-mobile/phases/02-charter.md +70 -0
  59. package/skills/qa-explore-mobile/phases/03-discovery.md +79 -0
  60. package/skills/qa-explore-mobile/phases/04-journeys.md +49 -0
  61. package/skills/qa-explore-mobile/phases/05-features.md +72 -0
  62. package/skills/qa-explore-mobile/phases/06-edge-cases.md +157 -0
  63. package/skills/qa-explore-mobile/phases/07-reporting.md +123 -0
  64. package/skills/qa-explore-mobile/references/mobile-edges.md +117 -0
  65. package/skills/qa-explore-quick/SKILL.md +6 -0
  66. package/skills/qa-verify-backend/SKILL.md +163 -0
  67. package/skills/qa-verify-backend/phases/00-setup.md +97 -0
  68. package/skills/qa-verify-backend/phases/01-ac-decomposition.md +58 -0
  69. package/skills/qa-verify-backend/phases/02-static-review.md +71 -0
  70. package/skills/qa-verify-backend/phases/03-live-verification.md +62 -0
  71. package/skills/qa-verify-backend/phases/03b-api-verification.md +157 -0
  72. package/skills/qa-verify-backend/phases/04-e2e-trigger.md +66 -0
  73. package/skills/qa-verify-backend/phases/05-reporting.md +135 -0
  74. package/skills/qa-verify-backend/references/api-probes.md +141 -0
  75. package/skills/qa-verify-backend/references/aws-readonly-probes.md +156 -0
  76. package/skills/qa-verify-backend/references/environment-fingerprinting.md +104 -0
  77. package/skills/qa-verify-backend/references/payload-verification.md +112 -0
  78. package/skills/qa-verify-backend/references/release-readiness.md +97 -0
  79. package/skills/qa-verify-backend/references/safety-rules.md +90 -0
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { z } from 'zod';
5
5
  * Derived from the YAML data files in data/.
6
6
  */
7
7
  interface AuthConfig {
8
- strategy: 'none' | 'storage_state' | 'credentials' | 'token';
8
+ strategy: 'none' | 'storage_state' | 'credentials' | 'token' | 'in-app' | 'interactive-sso';
9
9
  state_file?: string;
10
10
  login_url?: string;
11
11
  credentials?: {
@@ -13,6 +13,9 @@ interface AuthConfig {
13
13
  password: string;
14
14
  };
15
15
  token?: string;
16
+ identity_provider?: string;
17
+ static_otp?: string;
18
+ test_email_pattern?: string;
16
19
  }
17
20
  interface BrowserConfig {
18
21
  headless: boolean;
@@ -20,6 +23,9 @@ interface BrowserConfig {
20
23
  width: number;
21
24
  height: number;
22
25
  };
26
+ engine?: 'chromium' | 'webkit' | 'firefox';
27
+ channel?: string;
28
+ device?: string;
23
29
  }
24
30
  interface ScopeConfig {
25
31
  start_pages?: string[];
@@ -33,6 +39,49 @@ interface SafetyConfig {
33
39
  no_file_upload?: boolean;
34
40
  no_delete_actions?: boolean;
35
41
  }
42
+ interface EnvironmentConfig {
43
+ kind: 'dev' | 'ephemeral' | 'staging' | 'production';
44
+ destroyed_automatically?: boolean;
45
+ }
46
+ interface BackendConfig {
47
+ provider?: 'aws';
48
+ /** Env var NAME holding the AWS profile — never the credential itself. */
49
+ aws_profile_env?: string;
50
+ region_env?: string;
51
+ region?: string;
52
+ /** Expected account id; the live lane stops if the caller identity differs. */
53
+ account_id?: string;
54
+ env_suffix?: string;
55
+ /** Logical name -> deployed resource name. Asserted, confirmed before use. */
56
+ resources?: Record<string, string>;
57
+ notes?: string;
58
+ }
59
+ interface ApiSurfaceConfig {
60
+ /** Defaults to the target's base_url when omitted. */
61
+ base_url?: string;
62
+ auth?: 'session-cookie' | 'bearer-env' | 'none';
63
+ /** Env var NAME holding a bearer token — never the token itself. */
64
+ token_env?: string;
65
+ /** Persistent browser profile directory holding the authenticated session. */
66
+ browser_profile?: string;
67
+ /** Endpoint returning the deployed build, used to fingerprint the environment. */
68
+ version_endpoint?: string;
69
+ /** Logical name -> "VERB /path". */
70
+ endpoints?: Record<string, string>;
71
+ /** The only endpoints the read-only API lane may call without asking. */
72
+ probe_allowlist?: string[];
73
+ /** Other target ids to run the same matrix against, for parity comparison. */
74
+ parity_targets?: string[];
75
+ /** Flag name -> where its deployed value is declared for this environment. */
76
+ feature_flags?: Record<string, string>;
77
+ notes?: string;
78
+ }
79
+ interface SourceBranchConfig {
80
+ repo_path: string;
81
+ branch: string;
82
+ base_branch?: string;
83
+ components?: Record<string, string>;
84
+ }
36
85
  interface TargetConfig {
37
86
  id: string;
38
87
  name: string;
@@ -42,8 +91,53 @@ interface TargetConfig {
42
91
  browser: BrowserConfig;
43
92
  scope: ScopeConfig;
44
93
  safety?: SafetyConfig;
94
+ environment?: EnvironmentConfig;
95
+ backend?: BackendConfig;
96
+ api?: ApiSurfaceConfig;
97
+ source?: SourceBranchConfig;
98
+ notes?: string;
99
+ }
100
+ interface MobileDeviceConfig {
101
+ name?: string;
102
+ udid?: string;
103
+ avd?: string;
104
+ serial?: string;
105
+ }
106
+ interface MobileAppConfig {
107
+ bundle_id?: string;
108
+ package?: string;
109
+ app_paths?: string[];
110
+ apk_paths?: string[];
111
+ }
112
+ interface MobileWebConfig {
113
+ base_url: string;
114
+ start_url?: string;
115
+ }
116
+ interface SourceRepoConfig {
117
+ path: string;
118
+ build_commands?: Record<string, string>;
119
+ }
120
+ interface MobileScopeConfig {
121
+ start_screen?: string;
122
+ start_url?: string;
123
+ include_patterns?: string[];
124
+ exclude_patterns?: string[];
125
+ }
126
+ interface MobileTargetConfig {
127
+ id: string;
128
+ name: string;
129
+ platform: 'ios' | 'android';
130
+ domain: string;
131
+ device: MobileDeviceConfig;
132
+ app: MobileAppConfig;
133
+ web?: MobileWebConfig;
134
+ auth: AuthConfig;
135
+ scope?: MobileScopeConfig;
136
+ safety?: SafetyConfig;
137
+ source_repo?: SourceRepoConfig;
45
138
  notes?: string;
46
139
  }
140
+ type AnyTargetConfig = TargetConfig | MobileTargetConfig;
47
141
  interface KnowledgeManifestEntry {
48
142
  id: string;
49
143
  file: string;
@@ -147,326 +241,265 @@ interface ValidationResult {
147
241
  }
148
242
 
149
243
  declare const AuthConfigSchema: z.ZodObject<{
150
- strategy: z.ZodEnum<["none", "storage_state", "credentials", "token"]>;
244
+ strategy: z.ZodEnum<{
245
+ none: "none";
246
+ storage_state: "storage_state";
247
+ credentials: "credentials";
248
+ token: "token";
249
+ "in-app": "in-app";
250
+ "interactive-sso": "interactive-sso";
251
+ }>;
151
252
  state_file: z.ZodOptional<z.ZodString>;
152
253
  login_url: z.ZodOptional<z.ZodString>;
153
254
  credentials: z.ZodOptional<z.ZodObject<{
154
255
  username: z.ZodString;
155
256
  password: z.ZodString;
156
- }, "strip", z.ZodTypeAny, {
157
- username: string;
158
- password: string;
159
- }, {
160
- username: string;
161
- password: string;
162
- }>>;
257
+ }, z.core.$strip>>;
163
258
  token: z.ZodOptional<z.ZodString>;
164
- }, "strip", z.ZodTypeAny, {
165
- strategy: "none" | "storage_state" | "credentials" | "token";
166
- credentials?: {
167
- username: string;
168
- password: string;
169
- } | undefined;
170
- token?: string | undefined;
171
- state_file?: string | undefined;
172
- login_url?: string | undefined;
173
- }, {
174
- strategy: "none" | "storage_state" | "credentials" | "token";
175
- credentials?: {
176
- username: string;
177
- password: string;
178
- } | undefined;
179
- token?: string | undefined;
180
- state_file?: string | undefined;
181
- login_url?: string | undefined;
182
- }>;
259
+ identity_provider: z.ZodOptional<z.ZodString>;
260
+ static_otp: z.ZodOptional<z.ZodString>;
261
+ test_email_pattern: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strip>;
183
263
  declare const BrowserConfigSchema: z.ZodObject<{
184
264
  headless: z.ZodBoolean;
185
265
  viewport: z.ZodObject<{
186
266
  width: z.ZodNumber;
187
267
  height: z.ZodNumber;
188
- }, "strip", z.ZodTypeAny, {
189
- width: number;
190
- height: number;
191
- }, {
192
- width: number;
193
- height: number;
194
- }>;
195
- }, "strip", z.ZodTypeAny, {
196
- headless: boolean;
197
- viewport: {
198
- width: number;
199
- height: number;
200
- };
201
- }, {
202
- headless: boolean;
203
- viewport: {
204
- width: number;
205
- height: number;
206
- };
207
- }>;
268
+ }, z.core.$strip>;
269
+ engine: z.ZodOptional<z.ZodEnum<{
270
+ chromium: "chromium";
271
+ webkit: "webkit";
272
+ firefox: "firefox";
273
+ }>>;
274
+ channel: z.ZodOptional<z.ZodString>;
275
+ device: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strip>;
208
277
  declare const ScopeConfigSchema: z.ZodObject<{
209
- start_pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
278
+ start_pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
279
  max_depth: z.ZodNumber;
211
- include_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
- exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
- }, "strip", z.ZodTypeAny, {
214
- max_depth: number;
215
- start_pages?: string[] | undefined;
216
- include_patterns?: string[] | undefined;
217
- exclude_patterns?: string[] | undefined;
218
- }, {
219
- max_depth: number;
220
- start_pages?: string[] | undefined;
221
- include_patterns?: string[] | undefined;
222
- exclude_patterns?: string[] | undefined;
223
- }>;
280
+ include_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
+ exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
+ }, z.core.$strip>;
224
283
  declare const SafetyConfigSchema: z.ZodObject<{
225
284
  read_only: z.ZodBoolean;
226
285
  no_form_submit: z.ZodBoolean;
227
286
  no_file_upload: z.ZodOptional<z.ZodBoolean>;
228
287
  no_delete_actions: z.ZodOptional<z.ZodBoolean>;
229
- }, "strip", z.ZodTypeAny, {
230
- read_only: boolean;
231
- no_form_submit: boolean;
232
- no_file_upload?: boolean | undefined;
233
- no_delete_actions?: boolean | undefined;
234
- }, {
235
- read_only: boolean;
236
- no_form_submit: boolean;
237
- no_file_upload?: boolean | undefined;
238
- no_delete_actions?: boolean | undefined;
239
- }>;
240
- declare const TargetConfigSchema: z.ZodObject<{
288
+ }, z.core.$strip>;
289
+ declare const WebTargetConfigSchema: z.ZodObject<{
241
290
  id: z.ZodString;
242
291
  name: z.ZodString;
243
- base_url: z.ZodString;
292
+ base_url: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
244
293
  domain: z.ZodString;
245
294
  auth: z.ZodObject<{
246
- strategy: z.ZodEnum<["none", "storage_state", "credentials", "token"]>;
295
+ strategy: z.ZodEnum<{
296
+ none: "none";
297
+ storage_state: "storage_state";
298
+ credentials: "credentials";
299
+ token: "token";
300
+ "in-app": "in-app";
301
+ "interactive-sso": "interactive-sso";
302
+ }>;
247
303
  state_file: z.ZodOptional<z.ZodString>;
248
304
  login_url: z.ZodOptional<z.ZodString>;
249
305
  credentials: z.ZodOptional<z.ZodObject<{
250
306
  username: z.ZodString;
251
307
  password: z.ZodString;
252
- }, "strip", z.ZodTypeAny, {
253
- username: string;
254
- password: string;
255
- }, {
256
- username: string;
257
- password: string;
258
- }>>;
308
+ }, z.core.$strip>>;
259
309
  token: z.ZodOptional<z.ZodString>;
260
- }, "strip", z.ZodTypeAny, {
261
- strategy: "none" | "storage_state" | "credentials" | "token";
262
- credentials?: {
263
- username: string;
264
- password: string;
265
- } | undefined;
266
- token?: string | undefined;
267
- state_file?: string | undefined;
268
- login_url?: string | undefined;
269
- }, {
270
- strategy: "none" | "storage_state" | "credentials" | "token";
271
- credentials?: {
272
- username: string;
273
- password: string;
274
- } | undefined;
275
- token?: string | undefined;
276
- state_file?: string | undefined;
277
- login_url?: string | undefined;
278
- }>;
310
+ identity_provider: z.ZodOptional<z.ZodString>;
311
+ static_otp: z.ZodOptional<z.ZodString>;
312
+ test_email_pattern: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strip>;
279
314
  browser: z.ZodObject<{
280
315
  headless: z.ZodBoolean;
281
316
  viewport: z.ZodObject<{
282
317
  width: z.ZodNumber;
283
318
  height: z.ZodNumber;
284
- }, "strip", z.ZodTypeAny, {
285
- width: number;
286
- height: number;
287
- }, {
288
- width: number;
289
- height: number;
290
- }>;
291
- }, "strip", z.ZodTypeAny, {
292
- headless: boolean;
293
- viewport: {
294
- width: number;
295
- height: number;
296
- };
297
- }, {
298
- headless: boolean;
299
- viewport: {
300
- width: number;
301
- height: number;
302
- };
303
- }>;
319
+ }, z.core.$strip>;
320
+ engine: z.ZodOptional<z.ZodEnum<{
321
+ chromium: "chromium";
322
+ webkit: "webkit";
323
+ firefox: "firefox";
324
+ }>>;
325
+ channel: z.ZodOptional<z.ZodString>;
326
+ device: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strip>;
304
328
  scope: z.ZodObject<{
305
- start_pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
329
+ start_pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
306
330
  max_depth: z.ZodNumber;
307
- include_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
308
- exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
309
- }, "strip", z.ZodTypeAny, {
310
- max_depth: number;
311
- start_pages?: string[] | undefined;
312
- include_patterns?: string[] | undefined;
313
- exclude_patterns?: string[] | undefined;
314
- }, {
315
- max_depth: number;
316
- start_pages?: string[] | undefined;
317
- include_patterns?: string[] | undefined;
318
- exclude_patterns?: string[] | undefined;
331
+ include_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
+ exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
+ }, z.core.$strip>;
334
+ safety: z.ZodOptional<z.ZodObject<{
335
+ read_only: z.ZodBoolean;
336
+ no_form_submit: z.ZodBoolean;
337
+ no_file_upload: z.ZodOptional<z.ZodBoolean>;
338
+ no_delete_actions: z.ZodOptional<z.ZodBoolean>;
339
+ }, z.core.$strip>>;
340
+ environment: z.ZodOptional<z.ZodObject<{
341
+ kind: z.ZodEnum<{
342
+ dev: "dev";
343
+ ephemeral: "ephemeral";
344
+ staging: "staging";
345
+ production: "production";
346
+ }>;
347
+ destroyed_automatically: z.ZodOptional<z.ZodBoolean>;
348
+ }, z.core.$strip>>;
349
+ backend: z.ZodOptional<z.ZodObject<{
350
+ provider: z.ZodOptional<z.ZodEnum<{
351
+ aws: "aws";
352
+ }>>;
353
+ aws_profile_env: z.ZodOptional<z.ZodString>;
354
+ region_env: z.ZodOptional<z.ZodString>;
355
+ region: z.ZodOptional<z.ZodString>;
356
+ account_id: z.ZodOptional<z.ZodString>;
357
+ env_suffix: z.ZodOptional<z.ZodString>;
358
+ resources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
359
+ notes: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$strip>>;
361
+ api: z.ZodOptional<z.ZodObject<{
362
+ base_url: z.ZodOptional<z.ZodString>;
363
+ auth: z.ZodOptional<z.ZodEnum<{
364
+ none: "none";
365
+ "session-cookie": "session-cookie";
366
+ "bearer-env": "bearer-env";
367
+ }>>;
368
+ token_env: z.ZodOptional<z.ZodString>;
369
+ browser_profile: z.ZodOptional<z.ZodString>;
370
+ version_endpoint: z.ZodOptional<z.ZodString>;
371
+ endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
372
+ probe_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
373
+ parity_targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ feature_flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
375
+ notes: z.ZodOptional<z.ZodString>;
376
+ }, z.core.$strip>>;
377
+ source: z.ZodOptional<z.ZodObject<{
378
+ repo_path: z.ZodString;
379
+ branch: z.ZodString;
380
+ base_branch: z.ZodOptional<z.ZodString>;
381
+ components: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
382
+ }, z.core.$strip>>;
383
+ notes: z.ZodOptional<z.ZodString>;
384
+ }, z.core.$strip>;
385
+ declare const MobileDeviceConfigSchema: z.ZodObject<{
386
+ name: z.ZodOptional<z.ZodString>;
387
+ udid: z.ZodOptional<z.ZodString>;
388
+ avd: z.ZodOptional<z.ZodString>;
389
+ serial: z.ZodOptional<z.ZodString>;
390
+ }, z.core.$strip>;
391
+ declare const MobileAppConfigSchema: z.ZodObject<{
392
+ bundle_id: z.ZodOptional<z.ZodString>;
393
+ package: z.ZodOptional<z.ZodString>;
394
+ app_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
395
+ apk_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
396
+ }, z.core.$strip>;
397
+ declare const MobileWebConfigSchema: z.ZodObject<{
398
+ base_url: z.ZodString;
399
+ start_url: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strip>;
401
+ declare const SourceRepoConfigSchema: z.ZodObject<{
402
+ path: z.ZodString;
403
+ build_commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
404
+ }, z.core.$strip>;
405
+ declare const MobileScopeConfigSchema: z.ZodObject<{
406
+ start_screen: z.ZodOptional<z.ZodString>;
407
+ start_url: z.ZodOptional<z.ZodString>;
408
+ include_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
+ exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
410
+ }, z.core.$strip>;
411
+ declare const MobileTargetConfigSchema: z.ZodObject<{
412
+ id: z.ZodString;
413
+ name: z.ZodString;
414
+ platform: z.ZodEnum<{
415
+ ios: "ios";
416
+ android: "android";
319
417
  }>;
418
+ domain: z.ZodString;
419
+ device: z.ZodObject<{
420
+ name: z.ZodOptional<z.ZodString>;
421
+ udid: z.ZodOptional<z.ZodString>;
422
+ avd: z.ZodOptional<z.ZodString>;
423
+ serial: z.ZodOptional<z.ZodString>;
424
+ }, z.core.$strip>;
425
+ app: z.ZodObject<{
426
+ bundle_id: z.ZodOptional<z.ZodString>;
427
+ package: z.ZodOptional<z.ZodString>;
428
+ app_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
429
+ apk_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
+ }, z.core.$strip>;
431
+ web: z.ZodOptional<z.ZodObject<{
432
+ base_url: z.ZodString;
433
+ start_url: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$strip>>;
435
+ auth: z.ZodObject<{
436
+ strategy: z.ZodEnum<{
437
+ none: "none";
438
+ storage_state: "storage_state";
439
+ credentials: "credentials";
440
+ token: "token";
441
+ "in-app": "in-app";
442
+ "interactive-sso": "interactive-sso";
443
+ }>;
444
+ state_file: z.ZodOptional<z.ZodString>;
445
+ login_url: z.ZodOptional<z.ZodString>;
446
+ credentials: z.ZodOptional<z.ZodObject<{
447
+ username: z.ZodString;
448
+ password: z.ZodString;
449
+ }, z.core.$strip>>;
450
+ token: z.ZodOptional<z.ZodString>;
451
+ identity_provider: z.ZodOptional<z.ZodString>;
452
+ static_otp: z.ZodOptional<z.ZodString>;
453
+ test_email_pattern: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>;
455
+ scope: z.ZodOptional<z.ZodObject<{
456
+ start_screen: z.ZodOptional<z.ZodString>;
457
+ start_url: z.ZodOptional<z.ZodString>;
458
+ include_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
459
+ exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ }, z.core.$strip>>;
320
461
  safety: z.ZodOptional<z.ZodObject<{
321
462
  read_only: z.ZodBoolean;
322
463
  no_form_submit: z.ZodBoolean;
323
464
  no_file_upload: z.ZodOptional<z.ZodBoolean>;
324
465
  no_delete_actions: z.ZodOptional<z.ZodBoolean>;
325
- }, "strip", z.ZodTypeAny, {
326
- read_only: boolean;
327
- no_form_submit: boolean;
328
- no_file_upload?: boolean | undefined;
329
- no_delete_actions?: boolean | undefined;
330
- }, {
331
- read_only: boolean;
332
- no_form_submit: boolean;
333
- no_file_upload?: boolean | undefined;
334
- no_delete_actions?: boolean | undefined;
335
- }>>;
466
+ }, z.core.$strip>>;
467
+ source_repo: z.ZodOptional<z.ZodObject<{
468
+ path: z.ZodString;
469
+ build_commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
470
+ }, z.core.$strip>>;
336
471
  notes: z.ZodOptional<z.ZodString>;
337
- }, "strip", z.ZodTypeAny, {
338
- id: string;
339
- name: string;
340
- base_url: string;
341
- domain: string;
342
- auth: {
343
- strategy: "none" | "storage_state" | "credentials" | "token";
344
- credentials?: {
345
- username: string;
346
- password: string;
347
- } | undefined;
348
- token?: string | undefined;
349
- state_file?: string | undefined;
350
- login_url?: string | undefined;
351
- };
352
- browser: {
353
- headless: boolean;
354
- viewport: {
355
- width: number;
356
- height: number;
357
- };
358
- };
359
- scope: {
360
- max_depth: number;
361
- start_pages?: string[] | undefined;
362
- include_patterns?: string[] | undefined;
363
- exclude_patterns?: string[] | undefined;
364
- };
365
- safety?: {
366
- read_only: boolean;
367
- no_form_submit: boolean;
368
- no_file_upload?: boolean | undefined;
369
- no_delete_actions?: boolean | undefined;
370
- } | undefined;
371
- notes?: string | undefined;
372
- }, {
373
- id: string;
374
- name: string;
375
- base_url: string;
376
- domain: string;
377
- auth: {
378
- strategy: "none" | "storage_state" | "credentials" | "token";
379
- credentials?: {
380
- username: string;
381
- password: string;
382
- } | undefined;
383
- token?: string | undefined;
384
- state_file?: string | undefined;
385
- login_url?: string | undefined;
386
- };
387
- browser: {
388
- headless: boolean;
389
- viewport: {
390
- width: number;
391
- height: number;
392
- };
393
- };
394
- scope: {
395
- max_depth: number;
396
- start_pages?: string[] | undefined;
397
- include_patterns?: string[] | undefined;
398
- exclude_patterns?: string[] | undefined;
399
- };
400
- safety?: {
401
- read_only: boolean;
402
- no_form_submit: boolean;
403
- no_file_upload?: boolean | undefined;
404
- no_delete_actions?: boolean | undefined;
405
- } | undefined;
406
- notes?: string | undefined;
407
- }>;
472
+ }, z.core.$strip>;
473
+ declare const TargetConfigSchema: z.ZodType<z.output<typeof WebTargetConfigSchema> | z.output<typeof MobileTargetConfigSchema>>;
408
474
 
409
475
  declare const KnowledgeEntryContentSchema: z.ZodObject<{
410
476
  summary: z.ZodString;
411
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
412
- summary: z.ZodString;
413
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
414
- summary: z.ZodString;
415
- }, z.ZodTypeAny, "passthrough">>;
477
+ }, z.core.$loose>;
416
478
  declare const KnowledgeEntrySchema: z.ZodObject<{
417
479
  id: z.ZodString;
418
480
  version: z.ZodString;
419
- type: z.ZodEnum<["heuristic", "technique", "checklist", "reference"]>;
481
+ type: z.ZodEnum<{
482
+ heuristic: "heuristic";
483
+ technique: "technique";
484
+ checklist: "checklist";
485
+ reference: "reference";
486
+ }>;
420
487
  name: z.ZodString;
421
488
  description: z.ZodString;
422
489
  author: z.ZodOptional<z.ZodString>;
423
490
  source: z.ZodOptional<z.ZodString>;
424
- tags: z.ZodArray<z.ZodString, "many">;
425
- domains: z.ZodArray<z.ZodString, "many">;
426
- priority: z.ZodEnum<["high", "medium", "low"]>;
491
+ tags: z.ZodArray<z.ZodString>;
492
+ domains: z.ZodArray<z.ZodString>;
493
+ priority: z.ZodEnum<{
494
+ high: "high";
495
+ medium: "medium";
496
+ low: "low";
497
+ }>;
427
498
  added: z.ZodString;
428
499
  content: z.ZodObject<{
429
500
  summary: z.ZodString;
430
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
431
- summary: z.ZodString;
432
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
433
- summary: z.ZodString;
434
- }, z.ZodTypeAny, "passthrough">>;
435
- }, "strip", z.ZodTypeAny, {
436
- type: "heuristic" | "technique" | "checklist" | "reference";
437
- id: string;
438
- name: string;
439
- version: string;
440
- description: string;
441
- tags: string[];
442
- domains: string[];
443
- priority: "high" | "medium" | "low";
444
- added: string;
445
- content: {
446
- summary: string;
447
- } & {
448
- [k: string]: unknown;
449
- };
450
- author?: string | undefined;
451
- source?: string | undefined;
452
- }, {
453
- type: "heuristic" | "technique" | "checklist" | "reference";
454
- id: string;
455
- name: string;
456
- version: string;
457
- description: string;
458
- tags: string[];
459
- domains: string[];
460
- priority: "high" | "medium" | "low";
461
- added: string;
462
- content: {
463
- summary: string;
464
- } & {
465
- [k: string]: unknown;
466
- };
467
- author?: string | undefined;
468
- source?: string | undefined;
469
- }>;
501
+ }, z.core.$loose>;
502
+ }, z.core.$strip>;
470
503
 
471
504
  declare const KnowledgeManifestStatsSchema: z.ZodObject<{
472
505
  total_entries: z.ZodNumber;
@@ -476,62 +509,28 @@ declare const KnowledgeManifestStatsSchema: z.ZodObject<{
476
509
  references: z.ZodNumber;
477
510
  domain_profiles: z.ZodNumber;
478
511
  custom_entries: z.ZodNumber;
479
- }, "strip", z.ZodTypeAny, {
480
- total_entries: number;
481
- heuristics: number;
482
- techniques: number;
483
- checklists: number;
484
- references: number;
485
- domain_profiles: number;
486
- custom_entries: number;
487
- }, {
488
- total_entries: number;
489
- heuristics: number;
490
- techniques: number;
491
- checklists: number;
492
- references: number;
493
- domain_profiles: number;
494
- custom_entries: number;
495
- }>;
512
+ }, z.core.$strip>;
496
513
  declare const KnowledgeManifestEntrySchema: z.ZodObject<{
497
514
  id: z.ZodString;
498
515
  file: z.ZodString;
499
516
  type: z.ZodString;
500
- priority: z.ZodEnum<["high", "medium", "low"]>;
501
- tags: z.ZodArray<z.ZodString, "many">;
502
- domains: z.ZodArray<z.ZodString, "many">;
503
- }, "strip", z.ZodTypeAny, {
504
- type: string;
505
- id: string;
506
- tags: string[];
507
- domains: string[];
508
- priority: "high" | "medium" | "low";
509
- file: string;
510
- }, {
511
- type: string;
512
- id: string;
513
- tags: string[];
514
- domains: string[];
515
- priority: "high" | "medium" | "low";
516
- file: string;
517
- }>;
517
+ priority: z.ZodEnum<{
518
+ high: "high";
519
+ medium: "medium";
520
+ low: "low";
521
+ }>;
522
+ tags: z.ZodArray<z.ZodString>;
523
+ domains: z.ZodArray<z.ZodString>;
524
+ }, z.core.$strip>;
518
525
  declare const LoadingStrategySchema: z.ZodObject<{
519
- always: z.ZodArray<z.ZodString, "many">;
520
- by_domain: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
521
- by_tag: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
522
- }, "strip", z.ZodTypeAny, {
523
- always: string[];
524
- by_domain: Record<string, string[]>;
525
- by_tag: Record<string, string[]>;
526
- }, {
527
- always: string[];
528
- by_domain: Record<string, string[]>;
529
- by_tag: Record<string, string[]>;
530
- }>;
526
+ always: z.ZodArray<z.ZodString>;
527
+ by_domain: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
528
+ by_tag: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
529
+ }, z.core.$strip>;
531
530
  declare const KnowledgeManifestSchema: z.ZodObject<{
532
531
  version: z.ZodString;
533
532
  last_updated: z.ZodString;
534
- active_releases: z.ZodArray<z.ZodString, "many">;
533
+ active_releases: z.ZodArray<z.ZodString>;
535
534
  stats: z.ZodObject<{
536
535
  total_entries: z.ZodNumber;
537
536
  heuristics: z.ZodNumber;
@@ -540,203 +539,63 @@ declare const KnowledgeManifestSchema: z.ZodObject<{
540
539
  references: z.ZodNumber;
541
540
  domain_profiles: z.ZodNumber;
542
541
  custom_entries: z.ZodNumber;
543
- }, "strip", z.ZodTypeAny, {
544
- total_entries: number;
545
- heuristics: number;
546
- techniques: number;
547
- checklists: number;
548
- references: number;
549
- domain_profiles: number;
550
- custom_entries: number;
551
- }, {
552
- total_entries: number;
553
- heuristics: number;
554
- techniques: number;
555
- checklists: number;
556
- references: number;
557
- domain_profiles: number;
558
- custom_entries: number;
559
- }>;
542
+ }, z.core.$strip>;
560
543
  loading_strategy: z.ZodObject<{
561
- always: z.ZodArray<z.ZodString, "many">;
562
- by_domain: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
563
- by_tag: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
564
- }, "strip", z.ZodTypeAny, {
565
- always: string[];
566
- by_domain: Record<string, string[]>;
567
- by_tag: Record<string, string[]>;
568
- }, {
569
- always: string[];
570
- by_domain: Record<string, string[]>;
571
- by_tag: Record<string, string[]>;
572
- }>;
544
+ always: z.ZodArray<z.ZodString>;
545
+ by_domain: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
546
+ by_tag: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
547
+ }, z.core.$strip>;
573
548
  entries: z.ZodArray<z.ZodObject<{
574
549
  id: z.ZodString;
575
550
  file: z.ZodString;
576
551
  type: z.ZodString;
577
- priority: z.ZodEnum<["high", "medium", "low"]>;
578
- tags: z.ZodArray<z.ZodString, "many">;
579
- domains: z.ZodArray<z.ZodString, "many">;
580
- }, "strip", z.ZodTypeAny, {
581
- type: string;
582
- id: string;
583
- tags: string[];
584
- domains: string[];
585
- priority: "high" | "medium" | "low";
586
- file: string;
587
- }, {
588
- type: string;
589
- id: string;
590
- tags: string[];
591
- domains: string[];
592
- priority: "high" | "medium" | "low";
593
- file: string;
594
- }>, "many">;
595
- }, "strip", z.ZodTypeAny, {
596
- entries: {
597
- type: string;
598
- id: string;
599
- tags: string[];
600
- domains: string[];
601
- priority: "high" | "medium" | "low";
602
- file: string;
603
- }[];
604
- version: string;
605
- last_updated: string;
606
- active_releases: string[];
607
- stats: {
608
- total_entries: number;
609
- heuristics: number;
610
- techniques: number;
611
- checklists: number;
612
- references: number;
613
- domain_profiles: number;
614
- custom_entries: number;
615
- };
616
- loading_strategy: {
617
- always: string[];
618
- by_domain: Record<string, string[]>;
619
- by_tag: Record<string, string[]>;
620
- };
621
- }, {
622
- entries: {
623
- type: string;
624
- id: string;
625
- tags: string[];
626
- domains: string[];
627
- priority: "high" | "medium" | "low";
628
- file: string;
629
- }[];
630
- version: string;
631
- last_updated: string;
632
- active_releases: string[];
633
- stats: {
634
- total_entries: number;
635
- heuristics: number;
636
- techniques: number;
637
- checklists: number;
638
- references: number;
639
- domain_profiles: number;
640
- custom_entries: number;
641
- };
642
- loading_strategy: {
643
- always: string[];
644
- by_domain: Record<string, string[]>;
645
- by_tag: Record<string, string[]>;
646
- };
647
- }>;
552
+ priority: z.ZodEnum<{
553
+ high: "high";
554
+ medium: "medium";
555
+ low: "low";
556
+ }>;
557
+ tags: z.ZodArray<z.ZodString>;
558
+ domains: z.ZodArray<z.ZodString>;
559
+ }, z.core.$strip>>;
560
+ }, z.core.$strip>;
648
561
 
649
562
  declare const JourneySchema: z.ZodObject<{
650
563
  id: z.ZodString;
651
564
  name: z.ZodString;
652
565
  description: z.ZodString;
653
- steps: z.ZodArray<z.ZodString, "many">;
654
- risk: z.ZodEnum<["high", "medium", "low"]>;
655
- }, "strip", z.ZodTypeAny, {
656
- id: string;
657
- name: string;
658
- description: string;
659
- steps: string[];
660
- risk: "high" | "medium" | "low";
661
- }, {
662
- id: string;
663
- name: string;
664
- description: string;
665
- steps: string[];
666
- risk: "high" | "medium" | "low";
667
- }>;
566
+ steps: z.ZodArray<z.ZodString>;
567
+ risk: z.ZodEnum<{
568
+ high: "high";
569
+ medium: "medium";
570
+ low: "low";
571
+ }>;
572
+ }, z.core.$strip>;
668
573
  declare const DomainConfigSchema: z.ZodObject<{
669
574
  id: z.ZodString;
670
575
  name: z.ZodString;
671
- risk_ranking: z.ZodArray<z.ZodString, "many">;
672
- completeness_checklist: z.ZodArray<z.ZodString, "many">;
673
- data_integrity_checks: z.ZodArray<z.ZodString, "many">;
576
+ risk_ranking: z.ZodArray<z.ZodString>;
577
+ completeness_checklist: z.ZodArray<z.ZodString>;
578
+ data_integrity_checks: z.ZodArray<z.ZodString>;
674
579
  journeys: z.ZodArray<z.ZodObject<{
675
580
  id: z.ZodString;
676
581
  name: z.ZodString;
677
582
  description: z.ZodString;
678
- steps: z.ZodArray<z.ZodString, "many">;
679
- risk: z.ZodEnum<["high", "medium", "low"]>;
680
- }, "strip", z.ZodTypeAny, {
681
- id: string;
682
- name: string;
683
- description: string;
684
- steps: string[];
685
- risk: "high" | "medium" | "low";
686
- }, {
687
- id: string;
688
- name: string;
689
- description: string;
690
- steps: string[];
691
- risk: "high" | "medium" | "low";
692
- }>, "many">;
693
- guidance: z.ZodArray<z.ZodString, "many">;
694
- }, "strip", z.ZodTypeAny, {
695
- id: string;
696
- name: string;
697
- risk_ranking: string[];
698
- completeness_checklist: string[];
699
- data_integrity_checks: string[];
700
- journeys: {
701
- id: string;
702
- name: string;
703
- description: string;
704
- steps: string[];
705
- risk: "high" | "medium" | "low";
706
- }[];
707
- guidance: string[];
708
- }, {
709
- id: string;
710
- name: string;
711
- risk_ranking: string[];
712
- completeness_checklist: string[];
713
- data_integrity_checks: string[];
714
- journeys: {
715
- id: string;
716
- name: string;
717
- description: string;
718
- steps: string[];
719
- risk: "high" | "medium" | "low";
720
- }[];
721
- guidance: string[];
722
- }>;
583
+ steps: z.ZodArray<z.ZodString>;
584
+ risk: z.ZodEnum<{
585
+ high: "high";
586
+ medium: "medium";
587
+ low: "low";
588
+ }>;
589
+ }, z.core.$strip>>;
590
+ guidance: z.ZodArray<z.ZodString>;
591
+ }, z.core.$strip>;
723
592
 
724
593
  declare const SeverityCountsSchema: z.ZodObject<{
725
594
  critical: z.ZodNumber;
726
595
  high: z.ZodNumber;
727
596
  medium: z.ZodNumber;
728
597
  low: z.ZodNumber;
729
- }, "strip", z.ZodTypeAny, {
730
- high: number;
731
- medium: number;
732
- low: number;
733
- critical: number;
734
- }, {
735
- high: number;
736
- medium: number;
737
- low: number;
738
- critical: number;
739
- }>;
598
+ }, z.core.$strip>;
740
599
  declare const SessionMetricsSchema: z.ZodObject<{
741
600
  session_id: z.ZodString;
742
601
  target: z.ZodString;
@@ -748,45 +607,9 @@ declare const SessionMetricsSchema: z.ZodObject<{
748
607
  high: z.ZodNumber;
749
608
  medium: z.ZodNumber;
750
609
  low: z.ZodNumber;
751
- }, "strip", z.ZodTypeAny, {
752
- high: number;
753
- medium: number;
754
- low: number;
755
- critical: number;
756
- }, {
757
- high: number;
758
- medium: number;
759
- low: number;
760
- critical: number;
761
- }>;
610
+ }, z.core.$strip>;
762
611
  pages_explored: z.ZodNumber;
763
- }, "strip", z.ZodTypeAny, {
764
- date: string;
765
- session_id: string;
766
- target: string;
767
- duration_min: number;
768
- bugs_found: number;
769
- severity_counts: {
770
- high: number;
771
- medium: number;
772
- low: number;
773
- critical: number;
774
- };
775
- pages_explored: number;
776
- }, {
777
- date: string;
778
- session_id: string;
779
- target: string;
780
- duration_min: number;
781
- bugs_found: number;
782
- severity_counts: {
783
- high: number;
784
- medium: number;
785
- low: number;
786
- critical: number;
787
- };
788
- pages_explored: number;
789
- }>;
612
+ }, z.core.$strip>;
790
613
 
791
614
  /**
792
615
  * Credential and secret redaction utility.
@@ -896,4 +719,4 @@ declare function generateJsonReport(sessionDir: string): Promise<object>;
896
719
  */
897
720
  declare function generateJiraExport(sessionDir: string): Promise<string>;
898
721
 
899
- export { type AuthConfig, AuthConfigSchema, type BrowserConfig, BrowserConfigSchema, type BugReport, type BugSeverity, type DomainConfig, DomainConfigSchema, type Journey, JourneySchema, type KnowledgeEntry, type KnowledgeEntryContent, KnowledgeEntryContentSchema, KnowledgeEntrySchema, type KnowledgeManifest, type KnowledgeManifestEntry, KnowledgeManifestEntrySchema, KnowledgeManifestSchema, type KnowledgeManifestStats, KnowledgeManifestStatsSchema, type LoadingStrategy, LoadingStrategySchema, type ParsedBug, type ParsedSession, type SafetyConfig, SafetyConfigSchema, type ScopeConfig, ScopeConfigSchema, type SessionMetrics, SessionMetricsSchema, type SeverityCounts, SeverityCountsSchema, type TargetConfig, TargetConfigSchema, type ValidationError, type ValidationResult, appendSessionMetrics, containsSecrets, generateHtmlReport, generateJiraExport, generateJsonReport, parseBugReport, parseSession, readAllMetrics, redact, validateAllConfigs, validateDomainConfig, validateKnowledgeEntry, validateTargetConfig };
722
+ export { type AnyTargetConfig, type AuthConfig, AuthConfigSchema, type BrowserConfig, BrowserConfigSchema, type BugReport, type BugSeverity, type DomainConfig, DomainConfigSchema, type Journey, JourneySchema, type KnowledgeEntry, type KnowledgeEntryContent, KnowledgeEntryContentSchema, KnowledgeEntrySchema, type KnowledgeManifest, type KnowledgeManifestEntry, KnowledgeManifestEntrySchema, KnowledgeManifestSchema, type KnowledgeManifestStats, KnowledgeManifestStatsSchema, type LoadingStrategy, LoadingStrategySchema, type MobileAppConfig, MobileAppConfigSchema, type MobileDeviceConfig, MobileDeviceConfigSchema, type MobileScopeConfig, MobileScopeConfigSchema, type MobileTargetConfig, MobileTargetConfigSchema, type MobileWebConfig, MobileWebConfigSchema, type ParsedBug, type ParsedSession, type SafetyConfig, SafetyConfigSchema, type ScopeConfig, ScopeConfigSchema, type SessionMetrics, SessionMetricsSchema, type SeverityCounts, SeverityCountsSchema, type SourceRepoConfig, SourceRepoConfigSchema, type TargetConfig, TargetConfigSchema, type ValidationError, type ValidationResult, WebTargetConfigSchema, appendSessionMetrics, containsSecrets, generateHtmlReport, generateJiraExport, generateJsonReport, parseBugReport, parseSession, readAllMetrics, redact, validateAllConfigs, validateDomainConfig, validateKnowledgeEntry, validateTargetConfig };