qualiow-exploratory-testing 1.0.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 (60) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +214 -0
  3. package/data/domains/_default.yml +167 -0
  4. package/data/domains/ecommerce.yml +198 -0
  5. package/data/domains/fintech.yml +207 -0
  6. package/data/domains/marketing.yml +202 -0
  7. package/data/domains/saas.yml +206 -0
  8. package/data/knowledge/changelog.yml +75 -0
  9. package/data/knowledge/custom/.gitkeep +0 -0
  10. package/data/knowledge/learned-patterns.md +40 -0
  11. package/data/knowledge/manifest.yml +141 -0
  12. package/data/knowledge/releases/v0.1.0/entries/checklist-accessibility-wcag.yml +326 -0
  13. package/data/knowledge/releases/v0.1.0/entries/heuristic-few-hiccupps.yml +194 -0
  14. package/data/knowledge/releases/v0.1.0/entries/heuristic-goldilocks.yml +143 -0
  15. package/data/knowledge/releases/v0.1.0/entries/heuristic-rcrcrc.yml +207 -0
  16. package/data/knowledge/releases/v0.1.0/entries/heuristic-sfdipot.yml +171 -0
  17. package/data/knowledge/releases/v0.1.0/entries/heuristic-test-tours.yml +253 -0
  18. package/data/knowledge/releases/v0.1.0/entries/reference-exploratory-testing-types.yml +84 -0
  19. package/data/knowledge/releases/v0.1.0/entries/reference-heuristic-praxis.yml +95 -0
  20. package/data/knowledge/releases/v0.1.0/entries/technique-boundary-testing.yml +203 -0
  21. package/data/knowledge/releases/v0.1.0/entries/technique-business-logic-race-conditions.yml +146 -0
  22. package/data/knowledge/releases/v0.1.0/entries/technique-data-integrity-testing.yml +269 -0
  23. package/data/knowledge/releases/v0.1.0/entries/technique-error-guessing.yml +216 -0
  24. package/data/knowledge/releases/v0.1.0/entries/technique-risk-based-testing.yml +298 -0
  25. package/data/knowledge/releases/v0.1.0/release.yml +22 -0
  26. package/data/targets/_default.yml +11 -0
  27. package/data/targets/testers-ai.yml +14 -0
  28. package/data/templates/bug-report.md +178 -0
  29. package/data/templates/coverage-map.md +70 -0
  30. package/data/templates/session-charter.md +77 -0
  31. package/data/templates/session-report.md +112 -0
  32. package/dist/cli/index.d.ts +1 -0
  33. package/dist/cli/index.js +1757 -0
  34. package/dist/cli/index.js.map +1 -0
  35. package/dist/index.d.ts +899 -0
  36. package/dist/index.js +1133 -0
  37. package/dist/index.js.map +1 -0
  38. package/docs/GETTING-STARTED.md +265 -0
  39. package/package.json +70 -0
  40. package/skills/qa-explore/SKILL.md +70 -0
  41. package/skills/qa-explore/phases/00-setup.md +96 -0
  42. package/skills/qa-explore/phases/01-auth.md +34 -0
  43. package/skills/qa-explore/phases/02-charter.md +112 -0
  44. package/skills/qa-explore/phases/03-discovery.md +49 -0
  45. package/skills/qa-explore/phases/04-journeys.md +51 -0
  46. package/skills/qa-explore/phases/05-features.md +55 -0
  47. package/skills/qa-explore/phases/06-edge-cases.md +69 -0
  48. package/skills/qa-explore/phases/07-reporting.md +162 -0
  49. package/skills/qa-explore/references/context-integration.md +44 -0
  50. package/skills/qa-explore/references/security-rules.md +43 -0
  51. package/skills/qa-explore/references/session-rules.md +33 -0
  52. package/skills/qa-explore/references/severity-guide.md +14 -0
  53. package/skills/qa-explore-cleanup/SKILL.md +39 -0
  54. package/skills/qa-explore-feedback/SKILL.md +73 -0
  55. package/skills/qa-explore-quick/SKILL.md +80 -0
  56. package/skills/qa-explore-report/SKILL.md +62 -0
  57. package/skills/qa-gather/SKILL.md +198 -0
  58. package/skills/qa-knowledge-add/SKILL.md +91 -0
  59. package/skills/qa-knowledge-list/SKILL.md +54 -0
  60. package/skills/qa-target-setup/SKILL.md +106 -0
@@ -0,0 +1,899 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Core type definitions for Qualiow Exploratory Testing Skills.
5
+ * Derived from the YAML data files in data/.
6
+ */
7
+ interface AuthConfig {
8
+ strategy: 'none' | 'storage_state' | 'credentials' | 'token';
9
+ state_file?: string;
10
+ login_url?: string;
11
+ credentials?: {
12
+ username: string;
13
+ password: string;
14
+ };
15
+ token?: string;
16
+ }
17
+ interface BrowserConfig {
18
+ headless: boolean;
19
+ viewport: {
20
+ width: number;
21
+ height: number;
22
+ };
23
+ }
24
+ interface ScopeConfig {
25
+ start_pages?: string[];
26
+ max_depth: number;
27
+ include_patterns?: string[];
28
+ exclude_patterns?: string[];
29
+ }
30
+ interface SafetyConfig {
31
+ read_only: boolean;
32
+ no_form_submit: boolean;
33
+ no_file_upload?: boolean;
34
+ no_delete_actions?: boolean;
35
+ }
36
+ interface TargetConfig {
37
+ id: string;
38
+ name: string;
39
+ base_url: string;
40
+ domain: string;
41
+ auth: AuthConfig;
42
+ browser: BrowserConfig;
43
+ scope: ScopeConfig;
44
+ safety?: SafetyConfig;
45
+ notes?: string;
46
+ }
47
+ interface KnowledgeManifestEntry {
48
+ id: string;
49
+ file: string;
50
+ type: string;
51
+ priority: 'high' | 'medium' | 'low';
52
+ tags: string[];
53
+ domains: string[];
54
+ }
55
+ interface KnowledgeManifestStats {
56
+ total_entries: number;
57
+ heuristics: number;
58
+ techniques: number;
59
+ checklists: number;
60
+ references: number;
61
+ domain_profiles: number;
62
+ custom_entries: number;
63
+ }
64
+ interface LoadingStrategy {
65
+ always: string[];
66
+ by_domain: Record<string, string[]>;
67
+ by_tag: Record<string, string[]>;
68
+ }
69
+ interface KnowledgeManifest {
70
+ version: string;
71
+ last_updated: string;
72
+ active_releases: string[];
73
+ stats: KnowledgeManifestStats;
74
+ loading_strategy: LoadingStrategy;
75
+ entries: KnowledgeManifestEntry[];
76
+ }
77
+ interface KnowledgeEntryContent {
78
+ summary: string;
79
+ [key: string]: unknown;
80
+ }
81
+ interface KnowledgeEntry {
82
+ id: string;
83
+ version: string;
84
+ type: 'heuristic' | 'technique' | 'checklist' | 'reference';
85
+ name: string;
86
+ description: string;
87
+ author?: string;
88
+ source?: string;
89
+ tags: string[];
90
+ domains: string[];
91
+ priority: 'high' | 'medium' | 'low';
92
+ added: string;
93
+ content: KnowledgeEntryContent;
94
+ }
95
+ interface Journey {
96
+ id: string;
97
+ name: string;
98
+ description: string;
99
+ steps: string[];
100
+ risk: 'high' | 'medium' | 'low';
101
+ }
102
+ interface DomainConfig {
103
+ id: string;
104
+ name: string;
105
+ risk_ranking: string[];
106
+ completeness_checklist: string[];
107
+ data_integrity_checks: string[];
108
+ journeys: Journey[];
109
+ guidance: string[];
110
+ }
111
+ interface SeverityCounts {
112
+ critical: number;
113
+ high: number;
114
+ medium: number;
115
+ low: number;
116
+ }
117
+ interface SessionMetrics {
118
+ session_id: string;
119
+ target: string;
120
+ date: string;
121
+ duration_min: number;
122
+ bugs_found: number;
123
+ severity_counts: SeverityCounts;
124
+ pages_explored: number;
125
+ }
126
+ type BugSeverity = 'critical' | 'high' | 'medium' | 'low';
127
+ interface BugReport {
128
+ id: string;
129
+ title: string;
130
+ severity: BugSeverity;
131
+ url: string;
132
+ component: string;
133
+ expected: string;
134
+ actual: string;
135
+ steps: string[];
136
+ business_impact: string;
137
+ evidence?: string[];
138
+ }
139
+ interface ValidationError {
140
+ path: string;
141
+ message: string;
142
+ }
143
+ interface ValidationResult {
144
+ file: string;
145
+ valid: boolean;
146
+ errors?: ValidationError[];
147
+ }
148
+
149
+ declare const AuthConfigSchema: z.ZodObject<{
150
+ strategy: z.ZodEnum<["none", "storage_state", "credentials", "token"]>;
151
+ state_file: z.ZodOptional<z.ZodString>;
152
+ login_url: z.ZodOptional<z.ZodString>;
153
+ credentials: z.ZodOptional<z.ZodObject<{
154
+ username: z.ZodString;
155
+ password: z.ZodString;
156
+ }, "strip", z.ZodTypeAny, {
157
+ username: string;
158
+ password: string;
159
+ }, {
160
+ username: string;
161
+ password: string;
162
+ }>>;
163
+ 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
+ }>;
183
+ declare const BrowserConfigSchema: z.ZodObject<{
184
+ headless: z.ZodBoolean;
185
+ viewport: z.ZodObject<{
186
+ width: z.ZodNumber;
187
+ 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
+ }>;
208
+ declare const ScopeConfigSchema: z.ZodObject<{
209
+ start_pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
+ 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
+ }>;
224
+ declare const SafetyConfigSchema: z.ZodObject<{
225
+ read_only: z.ZodBoolean;
226
+ no_form_submit: z.ZodBoolean;
227
+ no_file_upload: z.ZodOptional<z.ZodBoolean>;
228
+ 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<{
241
+ id: z.ZodString;
242
+ name: z.ZodString;
243
+ base_url: z.ZodString;
244
+ domain: z.ZodString;
245
+ auth: z.ZodObject<{
246
+ strategy: z.ZodEnum<["none", "storage_state", "credentials", "token"]>;
247
+ state_file: z.ZodOptional<z.ZodString>;
248
+ login_url: z.ZodOptional<z.ZodString>;
249
+ credentials: z.ZodOptional<z.ZodObject<{
250
+ username: z.ZodString;
251
+ password: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ username: string;
254
+ password: string;
255
+ }, {
256
+ username: string;
257
+ password: string;
258
+ }>>;
259
+ 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
+ }>;
279
+ browser: z.ZodObject<{
280
+ headless: z.ZodBoolean;
281
+ viewport: z.ZodObject<{
282
+ width: z.ZodNumber;
283
+ 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
+ }>;
304
+ scope: z.ZodObject<{
305
+ start_pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
306
+ 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;
319
+ }>;
320
+ safety: z.ZodOptional<z.ZodObject<{
321
+ read_only: z.ZodBoolean;
322
+ no_form_submit: z.ZodBoolean;
323
+ no_file_upload: z.ZodOptional<z.ZodBoolean>;
324
+ 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
+ }>>;
336
+ 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
+ }>;
408
+
409
+ declare const KnowledgeEntryContentSchema: z.ZodObject<{
410
+ 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">>;
416
+ declare const KnowledgeEntrySchema: z.ZodObject<{
417
+ id: z.ZodString;
418
+ version: z.ZodString;
419
+ type: z.ZodEnum<["heuristic", "technique", "checklist", "reference"]>;
420
+ name: z.ZodString;
421
+ description: z.ZodString;
422
+ author: z.ZodOptional<z.ZodString>;
423
+ 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"]>;
427
+ added: z.ZodString;
428
+ content: z.ZodObject<{
429
+ 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
+ }>;
470
+
471
+ declare const KnowledgeManifestStatsSchema: z.ZodObject<{
472
+ total_entries: z.ZodNumber;
473
+ heuristics: z.ZodNumber;
474
+ techniques: z.ZodNumber;
475
+ checklists: z.ZodNumber;
476
+ references: z.ZodNumber;
477
+ domain_profiles: z.ZodNumber;
478
+ 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
+ }>;
496
+ declare const KnowledgeManifestEntrySchema: z.ZodObject<{
497
+ id: z.ZodString;
498
+ file: z.ZodString;
499
+ 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
+ }>;
518
+ 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
+ }>;
531
+ declare const KnowledgeManifestSchema: z.ZodObject<{
532
+ version: z.ZodString;
533
+ last_updated: z.ZodString;
534
+ active_releases: z.ZodArray<z.ZodString, "many">;
535
+ stats: z.ZodObject<{
536
+ total_entries: z.ZodNumber;
537
+ heuristics: z.ZodNumber;
538
+ techniques: z.ZodNumber;
539
+ checklists: z.ZodNumber;
540
+ references: z.ZodNumber;
541
+ domain_profiles: z.ZodNumber;
542
+ 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
+ }>;
560
+ 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
+ }>;
573
+ entries: z.ZodArray<z.ZodObject<{
574
+ id: z.ZodString;
575
+ file: z.ZodString;
576
+ 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
+ }>;
648
+
649
+ declare const JourneySchema: z.ZodObject<{
650
+ id: z.ZodString;
651
+ name: z.ZodString;
652
+ 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
+ }>;
668
+ declare const DomainConfigSchema: z.ZodObject<{
669
+ id: z.ZodString;
670
+ 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">;
674
+ journeys: z.ZodArray<z.ZodObject<{
675
+ id: z.ZodString;
676
+ name: z.ZodString;
677
+ 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
+ }>;
723
+
724
+ declare const SeverityCountsSchema: z.ZodObject<{
725
+ critical: z.ZodNumber;
726
+ high: z.ZodNumber;
727
+ medium: z.ZodNumber;
728
+ 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
+ }>;
740
+ declare const SessionMetricsSchema: z.ZodObject<{
741
+ session_id: z.ZodString;
742
+ target: z.ZodString;
743
+ date: z.ZodString;
744
+ duration_min: z.ZodNumber;
745
+ bugs_found: z.ZodNumber;
746
+ severity_counts: z.ZodObject<{
747
+ critical: z.ZodNumber;
748
+ high: z.ZodNumber;
749
+ medium: z.ZodNumber;
750
+ 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
+ }>;
762
+ 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
+ }>;
790
+
791
+ /**
792
+ * Credential and secret redaction utility.
793
+ * Patterns derived from data/security/SECURITY-POLICY.md.
794
+ */
795
+ /**
796
+ * Redacts secrets from the given text.
797
+ * Returns the redacted text and a list of which secret types were found.
798
+ */
799
+ declare function redact(text: string): {
800
+ text: string;
801
+ redactions: string[];
802
+ };
803
+ /**
804
+ * Checks whether the text contains any detectable secrets.
805
+ */
806
+ declare function containsSecrets(text: string): boolean;
807
+
808
+ declare function validateTargetConfig(filePath: string): ValidationResult;
809
+ declare function validateKnowledgeEntry(filePath: string): ValidationResult;
810
+ declare function validateDomainConfig(filePath: string): ValidationResult;
811
+ declare function validateAllConfigs(dataDir: string): ValidationResult[];
812
+
813
+ /**
814
+ * Appends a single session metrics record to the JSONL file.
815
+ * Creates the output directory and file if they do not exist.
816
+ */
817
+ declare function appendSessionMetrics(outputDir: string, metrics: SessionMetrics): void;
818
+ /**
819
+ * Reads all session metrics from the JSONL file.
820
+ * Returns an empty array if the file does not exist or is empty.
821
+ */
822
+ declare function readAllMetrics(outputDir: string): SessionMetrics[];
823
+
824
+ /**
825
+ * Session and bug report parser.
826
+ * Reads a session directory and extracts structured data
827
+ * from markdown files produced during exploratory testing.
828
+ */
829
+ interface ParsedBug {
830
+ id: string;
831
+ title: string;
832
+ severity: 'critical' | 'high' | 'medium' | 'low';
833
+ component: string;
834
+ url: string;
835
+ expected: string;
836
+ actual: string;
837
+ steps: string[];
838
+ business_impact: string;
839
+ evidence: {
840
+ screenshots: string[];
841
+ console_errors: string[];
842
+ };
843
+ }
844
+ interface ParsedSession {
845
+ id: string;
846
+ charter?: string;
847
+ bugs: ParsedBug[];
848
+ report?: string;
849
+ phases: {
850
+ name: string;
851
+ content: string;
852
+ }[];
853
+ }
854
+ /**
855
+ * Parses a single bug report markdown file into structured data.
856
+ */
857
+ declare function parseBugReport(filePath: string): Promise<ParsedBug>;
858
+ /**
859
+ * Parses an entire session directory into structured data.
860
+ * Reads the session report, charter, phase files, and all bug reports.
861
+ */
862
+ declare function parseSession(sessionDir: string): Promise<ParsedSession>;
863
+
864
+ /**
865
+ * HTML report generator.
866
+ * Produces a standalone dark-mode HTML report from session data.
867
+ * The template is inline to simplify distribution.
868
+ */
869
+ /**
870
+ * Generates a self-contained dark-mode HTML report from a session directory.
871
+ */
872
+ declare function generateHtmlReport(sessionDir: string): Promise<string>;
873
+
874
+ /**
875
+ * JSON report generator.
876
+ * Produces structured JSON from session data for programmatic consumption.
877
+ */
878
+ /**
879
+ * Generates a structured JSON report from a session directory.
880
+ */
881
+ declare function generateJsonReport(sessionDir: string): Promise<object>;
882
+
883
+ /**
884
+ * Jira CSV export generator.
885
+ * Produces a CSV file importable via Jira bulk import.
886
+ */
887
+ /**
888
+ * Generates a CSV string importable by Jira bulk import from a session directory.
889
+ *
890
+ * CSV columns:
891
+ * - Summary: bug title
892
+ * - Priority: mapped from severity
893
+ * - Description: steps + business impact formatted in Jira wiki markup
894
+ * - Component: from bug component field
895
+ * - Labels: qualiow, exploratory-testing, domain
896
+ */
897
+ declare function generateJiraExport(sessionDir: string): Promise<string>;
898
+
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 };