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 @@
1
+ {"version":3,"sources":["../src/schemas/target.schema.ts","../src/schemas/knowledge-entry.schema.ts","../src/schemas/knowledge-manifest.schema.ts","../src/schemas/domain-config.schema.ts","../src/schemas/session-metrics.schema.ts","../src/utils/redact.ts","../src/utils/validate.ts","../src/utils/metrics.ts","../src/utils/parse-session.ts","../src/formatters/html-report.ts","../src/formatters/json-report.ts","../src/formatters/jira-export.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const AuthConfigSchema = z.object({\n strategy: z.enum(['none', 'storage_state', 'credentials', 'token']),\n state_file: z.string().optional(),\n login_url: z.string().url().optional(),\n credentials: z\n .object({\n username: z.string(),\n password: z.string(),\n })\n .optional(),\n token: z.string().optional(),\n});\n\nexport const BrowserConfigSchema = z.object({\n headless: z.boolean(),\n viewport: z.object({\n width: z.number().int().positive(),\n height: z.number().int().positive(),\n }),\n});\n\nexport const ScopeConfigSchema = z.object({\n start_pages: z.array(z.string()).optional(),\n max_depth: z.number().int().min(0),\n include_patterns: z.array(z.string()).optional(),\n exclude_patterns: z.array(z.string()).optional(),\n});\n\nexport const SafetyConfigSchema = z.object({\n read_only: z.boolean(),\n no_form_submit: z.boolean(),\n no_file_upload: z.boolean().optional(),\n no_delete_actions: z.boolean().optional(),\n});\n\nexport const TargetConfigSchema = z.object({\n id: z.string().min(1),\n name: z.string().min(1),\n base_url: z.string().url(),\n domain: z.string().min(1),\n auth: AuthConfigSchema,\n browser: BrowserConfigSchema,\n scope: ScopeConfigSchema,\n safety: SafetyConfigSchema.optional(),\n notes: z.string().optional(),\n});\n\nexport type TargetConfigInput = z.input<typeof TargetConfigSchema>;\n","import { z } from 'zod';\n\nexport const KnowledgeEntryContentSchema = z\n .object({\n summary: z.string().min(1),\n })\n .passthrough();\n\nexport const KnowledgeEntrySchema = z.object({\n id: z.string().min(1),\n version: z.string().min(1),\n type: z.enum(['heuristic', 'technique', 'checklist', 'reference']),\n name: z.string().min(1),\n description: z.string().min(1),\n author: z.string().optional(),\n source: z.string().optional(),\n tags: z.array(z.string()).min(1),\n domains: z.array(z.string()).min(1),\n priority: z.enum(['high', 'medium', 'low']),\n added: z.string().min(1),\n content: KnowledgeEntryContentSchema,\n});\n\nexport type KnowledgeEntryInput = z.input<typeof KnowledgeEntrySchema>;\n","import { z } from 'zod';\n\nexport const KnowledgeManifestStatsSchema = z.object({\n total_entries: z.number().int().min(0),\n heuristics: z.number().int().min(0),\n techniques: z.number().int().min(0),\n checklists: z.number().int().min(0),\n references: z.number().int().min(0),\n domain_profiles: z.number().int().min(0),\n custom_entries: z.number().int().min(0),\n});\n\nexport const KnowledgeManifestEntrySchema = z.object({\n id: z.string().min(1),\n file: z.string().min(1),\n type: z.string().min(1),\n priority: z.enum(['high', 'medium', 'low']),\n tags: z.array(z.string()),\n domains: z.array(z.string()),\n});\n\nexport const LoadingStrategySchema = z.object({\n always: z.array(z.string()),\n by_domain: z.record(z.string(), z.array(z.string())),\n by_tag: z.record(z.string(), z.array(z.string())),\n});\n\nexport const KnowledgeManifestSchema = z.object({\n version: z.string().min(1),\n last_updated: z.string().min(1),\n active_releases: z.array(z.string()).min(1),\n stats: KnowledgeManifestStatsSchema,\n loading_strategy: LoadingStrategySchema,\n entries: z.array(KnowledgeManifestEntrySchema).min(1),\n});\n\nexport type KnowledgeManifestInput = z.input<typeof KnowledgeManifestSchema>;\n","import { z } from 'zod';\n\nexport const JourneySchema = z.object({\n id: z.string().min(1),\n name: z.string().min(1),\n description: z.string().min(1),\n steps: z.array(z.string()).min(1),\n risk: z.enum(['high', 'medium', 'low']),\n});\n\nexport const DomainConfigSchema = z.object({\n id: z.string().min(1),\n name: z.string().min(1),\n risk_ranking: z.array(z.string()).min(1),\n completeness_checklist: z.array(z.string()).min(1),\n data_integrity_checks: z.array(z.string()).min(1),\n journeys: z.array(JourneySchema).min(1),\n guidance: z.array(z.string()).min(1),\n});\n\nexport type DomainConfigInput = z.input<typeof DomainConfigSchema>;\n","import { z } from 'zod';\n\nexport const SeverityCountsSchema = z.object({\n critical: z.number().int().min(0),\n high: z.number().int().min(0),\n medium: z.number().int().min(0),\n low: z.number().int().min(0),\n});\n\nexport const SessionMetricsSchema = z.object({\n session_id: z.string().min(1),\n target: z.string().min(1),\n date: z.string().min(1),\n duration_min: z.number().min(0),\n bugs_found: z.number().int().min(0),\n severity_counts: SeverityCountsSchema,\n pages_explored: z.number().int().min(0),\n});\n\nexport type SessionMetricsInput = z.input<typeof SessionMetricsSchema>;\n","/**\n * Credential and secret redaction utility.\n * Patterns derived from data/security/SECURITY-POLICY.md.\n */\n\ninterface RedactionPattern {\n name: string;\n pattern: RegExp;\n replacement: string;\n}\n\nconst REDACTION_PATTERNS: RedactionPattern[] = [\n {\n name: 'JWT token',\n pattern: /Bearer\\s+eyJ[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+/g,\n replacement: 'Bearer [JWT_REDACTED]',\n },\n {\n name: 'API key',\n pattern: /api[_\\-]?key[=:\\s]+[A-Za-z0-9\\-_]{16,}/gi,\n replacement: 'api_key=[API_KEY_REDACTED]',\n },\n {\n name: 'Password',\n pattern: /password[=:\\s]+[^\\s,}\"']+/gi,\n replacement: 'password=[REDACTED]',\n },\n {\n name: 'Token',\n pattern: /token[=:\\s]+[A-Za-z0-9\\-_]{16,}/gi,\n replacement: 'token=[TOKEN_REDACTED]',\n },\n {\n name: 'Secret',\n pattern: /secret[=:\\s]+[^\\s,}\"']+/gi,\n replacement: 'secret=[REDACTED]',\n },\n {\n name: 'SSN',\n pattern: /\\b\\d{3}-\\d{2}-\\d{4}\\b/g,\n replacement: '[SSN_REDACTED]',\n },\n {\n name: 'Credit card number',\n pattern: /\\b\\d{13,19}\\b/g,\n replacement: '[CARD_NUMBER_REDACTED]',\n },\n];\n\n/**\n * Redacts secrets from the given text.\n * Returns the redacted text and a list of which secret types were found.\n */\nexport function redact(text: string): { text: string; redactions: string[] } {\n const redactions: string[] = [];\n let result = text;\n\n for (const { name, pattern, replacement } of REDACTION_PATTERNS) {\n // Reset lastIndex for global regex\n pattern.lastIndex = 0;\n if (pattern.test(result)) {\n redactions.push(name);\n pattern.lastIndex = 0;\n result = result.replace(pattern, replacement);\n }\n }\n\n return { text: result, redactions };\n}\n\n/**\n * Checks whether the text contains any detectable secrets.\n */\nexport function containsSecrets(text: string): boolean {\n for (const { pattern } of REDACTION_PATTERNS) {\n pattern.lastIndex = 0;\n if (pattern.test(text)) {\n return true;\n }\n }\n return false;\n}\n","import { readFileSync } from 'node:fs';\nimport { resolve, join } from 'node:path';\nimport { parse as parseYaml } from 'yaml';\nimport { ZodError, type ZodSchema } from 'zod';\nimport { TargetConfigSchema } from '../schemas/target.schema.js';\nimport { KnowledgeEntrySchema } from '../schemas/knowledge-entry.schema.js';\nimport { DomainConfigSchema } from '../schemas/domain-config.schema.js';\nimport type { ValidationResult } from '../types/index.js';\nimport { globSync } from 'glob';\n\nfunction validateYamlFile(\n filePath: string,\n schema: ZodSchema,\n): ValidationResult {\n const absPath = resolve(filePath);\n try {\n const raw = readFileSync(absPath, 'utf-8');\n const data = parseYaml(raw);\n schema.parse(data);\n return { file: absPath, valid: true };\n } catch (err) {\n if (err instanceof ZodError) {\n return {\n file: absPath,\n valid: false,\n errors: err.issues.map((issue) => ({\n path: issue.path.join('.'),\n message: issue.message,\n })),\n };\n }\n return {\n file: absPath,\n valid: false,\n errors: [\n {\n path: '',\n message:\n err instanceof Error ? err.message : 'Unknown parsing error',\n },\n ],\n };\n }\n}\n\nexport function validateTargetConfig(filePath: string): ValidationResult {\n return validateYamlFile(filePath, TargetConfigSchema);\n}\n\nexport function validateKnowledgeEntry(filePath: string): ValidationResult {\n return validateYamlFile(filePath, KnowledgeEntrySchema);\n}\n\nexport function validateDomainConfig(filePath: string): ValidationResult {\n return validateYamlFile(filePath, DomainConfigSchema);\n}\n\nexport function validateAllConfigs(dataDir: string): ValidationResult[] {\n const results: ValidationResult[] = [];\n const absDir = resolve(dataDir);\n\n // Validate target configs\n const targetFiles = globSync(join(absDir, 'targets', '*.yml'));\n for (const file of targetFiles) {\n results.push(validateTargetConfig(file));\n }\n\n // Validate knowledge entries\n const entryFiles = globSync(\n join(absDir, 'knowledge', 'releases', '**', 'entries', '*.yml'),\n );\n for (const file of entryFiles) {\n results.push(validateKnowledgeEntry(file));\n }\n\n return results;\n}\n","import { readFileSync, appendFileSync, existsSync, mkdirSync } from 'node:fs';\nimport { join, dirname } from 'node:path';\nimport { SessionMetricsSchema } from '../schemas/session-metrics.schema.js';\nimport type { SessionMetrics } from '../types/index.js';\n\nconst METRICS_FILENAME = 'metrics.jsonl';\n\n/**\n * Appends a single session metrics record to the JSONL file.\n * Creates the output directory and file if they do not exist.\n */\nexport function appendSessionMetrics(\n outputDir: string,\n metrics: SessionMetrics,\n): void {\n // Validate before writing\n SessionMetricsSchema.parse(metrics);\n\n const filePath = join(outputDir, METRICS_FILENAME);\n const dir = dirname(filePath);\n\n if (!existsSync(dir)) {\n mkdirSync(dir, { recursive: true });\n }\n\n const line = JSON.stringify(metrics) + '\\n';\n appendFileSync(filePath, line, 'utf-8');\n}\n\n/**\n * Reads all session metrics from the JSONL file.\n * Returns an empty array if the file does not exist or is empty.\n */\nexport function readAllMetrics(outputDir: string): SessionMetrics[] {\n const filePath = join(outputDir, METRICS_FILENAME);\n\n if (!existsSync(filePath)) {\n return [];\n }\n\n const content = readFileSync(filePath, 'utf-8').trim();\n if (!content) {\n return [];\n }\n\n const lines = content.split('\\n');\n const results: SessionMetrics[] = [];\n\n for (const line of lines) {\n if (line.trim()) {\n const parsed = JSON.parse(line);\n results.push(SessionMetricsSchema.parse(parsed));\n }\n }\n\n return results;\n}\n","/**\n * Session and bug report parser.\n * Reads a session directory and extracts structured data\n * from markdown files produced during exploratory testing.\n */\n\nimport { readFileSync, readdirSync, existsSync } from 'node:fs';\nimport { join, basename } from 'node:path';\n\n// ─── Types ──────────────────────────────────────────────────────────\n\nexport interface ParsedBug {\n id: string;\n title: string;\n severity: 'critical' | 'high' | 'medium' | 'low';\n component: string;\n url: string;\n expected: string;\n actual: string;\n steps: string[];\n business_impact: string;\n evidence: { screenshots: string[]; console_errors: string[] };\n}\n\nexport interface ParsedSession {\n id: string;\n charter?: string;\n bugs: ParsedBug[];\n report?: string;\n phases: { name: string; content: string }[];\n}\n\n// ─── Severity helpers ───────────────────────────────────────────────\n\nconst SEVERITY_ORDER: Record<string, number> = {\n critical: 0,\n high: 1,\n medium: 2,\n low: 3,\n};\n\nfunction normalizeSeverity(raw: string): ParsedBug['severity'] {\n const lower = raw.toLowerCase().trim();\n if (lower === 'critical' || lower === 'high' || lower === 'medium' || lower === 'low') {\n return lower;\n }\n // Handle variants like \"High (aggregate)\"\n if (lower.startsWith('critical')) return 'critical';\n if (lower.startsWith('high')) return 'high';\n if (lower.startsWith('medium')) return 'medium';\n if (lower.startsWith('low')) return 'low';\n return 'medium';\n}\n\n// ─── Section extraction ─────────────────────────────────────────────\n\n/**\n * Extracts the content under a markdown heading that starts with the\n * given prefix. Searches for both ## and ### level headings.\n */\nfunction extractSection(content: string, headingPrefix: string): string {\n const lines = content.split('\\n');\n let capturing = false;\n let capturedLevel = 0;\n const captured: string[] = [];\n\n for (const line of lines) {\n const headingMatch = line.match(/^(#{1,6})\\s+(.*)$/);\n\n if (headingMatch) {\n const level = headingMatch[1].length;\n const text = headingMatch[2].trim();\n\n if (text.toLowerCase().startsWith(headingPrefix.toLowerCase())) {\n capturing = true;\n capturedLevel = level;\n continue;\n }\n\n // Stop if we hit a heading at the same or higher level\n if (capturing && level <= capturedLevel) {\n break;\n }\n }\n\n if (capturing) {\n captured.push(line);\n }\n }\n\n return captured.join('\\n').trim();\n}\n\n/**\n * Extracts numbered list items from markdown text.\n * Handles lines like \"1. Navigate to ...\" and continuation lines.\n */\nfunction extractNumberedList(text: string): string[] {\n const steps: string[] = [];\n const lines = text.split('\\n');\n\n for (const line of lines) {\n const match = line.match(/^\\d+\\.\\s+(.+)$/);\n if (match) {\n steps.push(match[1].trim());\n }\n }\n\n return steps;\n}\n\n/**\n * Extracts screenshots and console errors from the evidence section.\n */\nfunction extractEvidence(content: string): { screenshots: string[]; console_errors: string[] } {\n const screenshots: string[] = [];\n const console_errors: string[] = [];\n\n const evidenceText = extractSection(content, 'Evidence');\n if (!evidenceText) {\n return { screenshots, console_errors };\n }\n\n for (const line of evidenceText.split('\\n')) {\n const trimmed = line.replace(/^[-*]\\s*/, '').trim();\n\n if (/screenshot/i.test(trimmed)) {\n // Extract path if present\n const pathMatch = trimmed.match(/:\\s*(.+)/);\n if (pathMatch) {\n screenshots.push(pathMatch[1].trim());\n }\n }\n\n if (/console\\s*(error|log)/i.test(trimmed)) {\n const msgMatch = trimmed.match(/:\\s*(.+)/);\n if (msgMatch && !/none/i.test(msgMatch[1])) {\n console_errors.push(msgMatch[1].trim());\n }\n }\n }\n\n return { screenshots, console_errors };\n}\n\n// ─── Public API ─────────────────────────────────────────────────────\n\n/**\n * Parses a single bug report markdown file into structured data.\n */\nexport async function parseBugReport(filePath: string): Promise<ParsedBug> {\n const content = readFileSync(filePath, 'utf-8');\n const filename = basename(filePath, '.md');\n\n // Extract ID from filename (e.g. BUG-R2-001, BUG-001)\n const id = filename;\n\n // Extract title from first heading: \"# BUG-R2-001: Title here\" or \"## [Component] Title\"\n let title = '';\n let component = '';\n\n const titleMatch = content.match(/^#\\s+(?:BUG[-\\w]*:\\s*)?(.+)$/m)\n ?? content.match(/^##\\s+(?:BUG[-\\w]*:\\s*)?(.+)$/m);\n\n if (titleMatch) {\n title = titleMatch[1].trim();\n }\n\n // Extract component from title — patterns: \"[Login]\", \"[Login Form]\"\n const componentMatch = title.match(/^\\[([^\\]]+)\\]\\s*/);\n if (componentMatch) {\n component = componentMatch[1];\n title = title.replace(/^\\[[^\\]]+\\]\\s*/, '').trim();\n }\n\n // If no bracketed component, try to extract from the title before \"fails\" or first word\n if (!component) {\n // Use the section before the first dash or the bug category from the report\n const categoryMatch = content.match(/\\|\\s*Category\\s*\\|\\s*(.+?)\\s*\\|/i);\n if (categoryMatch) {\n component = categoryMatch[1].trim();\n }\n }\n\n // Extract severity: \"## Severity: High\" or \"**Severity:** High\"\n let severity: ParsedBug['severity'] = 'medium';\n const severityMatch = content.match(/\\*\\*Severity:\\*\\*\\s*(.+)/i)\n ?? content.match(/^##\\s+Severity:\\s*(.+)/mi);\n if (severityMatch) {\n severity = normalizeSeverity(severityMatch[1]);\n }\n\n // Extract URL\n let url = '';\n const urlMatch = content.match(/\\*\\*URL:\\*\\*\\s*(.+)/i)\n ?? content.match(/URL:\\s*(https?:\\/\\/[^\\s]+)/i);\n if (urlMatch) {\n url = urlMatch[1].trim();\n }\n\n // Extract expected behavior\n const expected = extractSection(content, 'Expected')\n .replace(/^_.*_\\n?/, '')\n .replace(/^>\\s*/gm, '')\n .trim();\n\n // Extract actual behavior\n const actual = extractSection(content, 'Actual')\n .replace(/^_.*_\\n?/, '')\n .replace(/^>\\s*/gm, '')\n .trim();\n\n // Extract steps\n const stepsSection = extractSection(content, 'Steps to Reproduce');\n const steps = extractNumberedList(stepsSection);\n\n // Extract business impact\n const business_impact = extractSection(content, 'Business Impact');\n\n // Extract evidence\n const evidence = extractEvidence(content);\n\n return {\n id,\n title,\n severity,\n component,\n url,\n expected,\n actual,\n steps,\n business_impact,\n evidence,\n };\n}\n\n/**\n * Parses an entire session directory into structured data.\n * Reads the session report, charter, phase files, and all bug reports.\n */\nexport async function parseSession(sessionDir: string): Promise<ParsedSession> {\n const id = basename(sessionDir);\n\n // Read charter if present\n let charter: string | undefined;\n const charterPath = join(sessionDir, 'charter.md');\n if (existsSync(charterPath)) {\n charter = readFileSync(charterPath, 'utf-8');\n }\n\n // Read session report if present\n let report: string | undefined;\n const reportPath = join(sessionDir, 'session-report.md');\n if (existsSync(reportPath)) {\n report = readFileSync(reportPath, 'utf-8');\n }\n\n // Read phase files\n const phases: { name: string; content: string }[] = [];\n if (existsSync(sessionDir)) {\n const files = readdirSync(sessionDir);\n const phaseFiles = files.filter((f) => /^phase-\\d+/i.test(f)).sort();\n for (const file of phaseFiles) {\n const content = readFileSync(join(sessionDir, file), 'utf-8');\n const name = file.replace(/\\.md$/, '');\n phases.push({ name, content });\n }\n }\n\n // Read and parse bug reports\n const bugsDir = join(sessionDir, 'bugs');\n const bugs: ParsedBug[] = [];\n\n if (existsSync(bugsDir)) {\n const bugFiles = readdirSync(bugsDir)\n .filter((f) => /^BUG-.*\\.md$/i.test(f))\n .sort();\n\n for (const file of bugFiles) {\n const bug = await parseBugReport(join(bugsDir, file));\n bugs.push(bug);\n }\n }\n\n // Sort bugs by severity\n bugs.sort((a, b) => SEVERITY_ORDER[a.severity] - SEVERITY_ORDER[b.severity]);\n\n return {\n id,\n charter,\n bugs,\n report,\n phases,\n };\n}\n","/**\n * HTML report generator.\n * Produces a standalone dark-mode HTML report from session data.\n * The template is inline to simplify distribution.\n */\n\nimport Handlebars from 'handlebars';\nimport { parseSession } from '../utils/parse-session.js';\n\n// ─── Report metadata extraction ─────────────────────────────────────\n\ninterface ReportMeta {\n target: string;\n date: string;\n duration: string;\n sessionId: string;\n summary: string;\n}\n\nfunction extractReportMeta(report: string, sessionId: string): ReportMeta {\n const meta: ReportMeta = {\n target: sessionId,\n date: '',\n duration: '',\n sessionId,\n summary: '',\n };\n\n // Extract from session report metadata\n const dateMatch = report.match(/\\*\\*Date:\\*\\*\\s*(.+)/i)\n ?? report.match(/\\|\\s*Date\\s*\\|\\s*(.+?)\\s*\\|/i);\n if (dateMatch) meta.date = dateMatch[1].trim();\n\n const durationMatch = report.match(/\\*\\*Duration:\\*\\*\\s*(.+)/i)\n ?? report.match(/\\|\\s*Duration\\s*\\|\\s*(.+?)\\s*\\|/i);\n if (durationMatch) meta.duration = durationMatch[1].trim();\n\n const targetMatch = report.match(/\\*\\*Application:\\*\\*\\s*(.+)/i)\n ?? report.match(/\\*\\*Target:\\*\\*\\s*(.+)/i)\n ?? report.match(/\\|\\s*Target\\s*\\|\\s*(.+?)\\s*\\|/i);\n if (targetMatch) meta.target = targetMatch[1].trim();\n\n // Extract executive summary\n const summaryMatch = report.match(/##\\s+Executive Summary\\s*\\n+([\\s\\S]*?)(?=\\n##\\s|\\n---)/i);\n if (summaryMatch) meta.summary = summaryMatch[1].trim();\n\n return meta;\n}\n\n// ─── Coverage extraction ────────────────────────────────────────────\n\ninterface CoverageEntry {\n area: string;\n status: string;\n bugsFound: string;\n notes: string;\n}\n\nfunction extractCoverage(report: string): CoverageEntry[] {\n const entries: CoverageEntry[] = [];\n\n // Look for coverage map table rows\n const tableMatch = report.match(\n /\\|\\s*Area\\s*\\|\\s*Status\\s*\\|[\\s\\S]*?\\n((?:\\|.+\\|.+\\n?)+)/i,\n );\n if (!tableMatch) return entries;\n\n const rows = tableMatch[1].split('\\n').filter((r) => r.trim().startsWith('|'));\n for (const row of rows) {\n const cells = row.split('|').map((c) => c.trim()).filter(Boolean);\n if (cells.length >= 2 && !cells[0].startsWith('---')) {\n entries.push({\n area: cells[0] || '',\n status: cells[1] || '',\n bugsFound: cells[3] || '0',\n notes: cells[4] || '',\n });\n }\n }\n\n return entries;\n}\n\n// ─── Observations and recommendations ───────────────────────────────\n\nfunction extractListSection(report: string, heading: string): string[] {\n const items: string[] = [];\n const regex = new RegExp(`##\\\\s+${heading}\\\\s*\\\\n+([\\\\s\\\\S]*?)(?=\\\\n##\\\\s|\\\\n---|$)`, 'i');\n const match = report.match(regex);\n if (!match) return items;\n\n for (const line of match[1].split('\\n')) {\n const itemMatch = line.match(/^[-*]\\s+(?:\\[.\\]\\s+)?(.+)/);\n if (itemMatch) {\n items.push(itemMatch[1].trim());\n }\n // Also capture numbered items under sub-headings\n const numberedMatch = line.match(/^\\d+\\.\\s+\\*\\*(.+?)\\*\\*\\s*(.+)?/);\n if (numberedMatch) {\n const text = numberedMatch[2]\n ? `${numberedMatch[1]} ${numberedMatch[2]}`\n : numberedMatch[1];\n items.push(text.replace(/\\s*--\\s*/, ' -- '));\n }\n }\n\n return items;\n}\n\n// ─── Handlebars template ────────────────────────────────────────────\n\nconst HTML_TEMPLATE = `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Qualiow Report — {{meta.target}}</title>\n <style>\n *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }\n\n body {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n background: #0a0f1a;\n color: #e0e6ed;\n line-height: 1.6;\n padding: 2rem;\n }\n\n a { color: #3498db; text-decoration: none; }\n a:hover { text-decoration: underline; }\n\n .container { max-width: 960px; margin: 0 auto; }\n\n /* Header */\n .header {\n border-bottom: 2px solid #1e2a3a;\n padding-bottom: 1.5rem;\n margin-bottom: 2rem;\n }\n .header h1 {\n font-size: 1.75rem;\n font-weight: 700;\n color: #ffffff;\n margin-bottom: 0.25rem;\n }\n .header .meta {\n display: flex;\n flex-wrap: wrap;\n gap: 1.5rem;\n font-size: 0.9rem;\n color: #8899aa;\n margin-top: 0.5rem;\n }\n .header .meta span { white-space: nowrap; }\n\n /* Stats cards */\n .stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n gap: 1rem;\n margin-bottom: 2rem;\n }\n .stat-card {\n background: #111927;\n border-radius: 8px;\n padding: 1rem 1.25rem;\n text-align: center;\n }\n .stat-card .number {\n font-size: 2rem;\n font-weight: 700;\n display: block;\n }\n .stat-card .label {\n font-size: 0.8rem;\n color: #8899aa;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n }\n .stat-total .number { color: #e0e6ed; }\n .stat-critical .number { color: #ff4757; }\n .stat-high .number { color: #ffa502; }\n .stat-medium .number { color: #ffd32a; }\n .stat-low .number { color: #3498db; }\n\n /* Summary */\n .summary {\n background: #111927;\n border-radius: 8px;\n padding: 1.25rem 1.5rem;\n margin-bottom: 2rem;\n font-size: 0.95rem;\n color: #c0c8d0;\n }\n\n /* Section headings */\n .section-title {\n font-size: 1.25rem;\n font-weight: 600;\n color: #ffffff;\n margin: 2rem 0 1rem;\n padding-bottom: 0.5rem;\n border-bottom: 1px solid #1e2a3a;\n }\n\n /* Bug cards */\n .bug-card {\n background: #111927;\n border-radius: 8px;\n border-left: 4px solid #3498db;\n padding: 1.25rem 1.5rem;\n margin-bottom: 1rem;\n }\n .bug-card.severity-critical { border-left-color: #ff4757; }\n .bug-card.severity-high { border-left-color: #ffa502; }\n .bug-card.severity-medium { border-left-color: #ffd32a; }\n .bug-card.severity-low { border-left-color: #3498db; }\n\n .bug-card .bug-header {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin-bottom: 0.75rem;\n }\n .bug-card .bug-title {\n font-size: 1rem;\n font-weight: 600;\n color: #ffffff;\n flex: 1;\n min-width: 200px;\n }\n\n .badge {\n display: inline-block;\n font-size: 0.7rem;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n padding: 0.2rem 0.5rem;\n border-radius: 4px;\n white-space: nowrap;\n }\n .badge-critical { background: #ff475733; color: #ff4757; }\n .badge-high { background: #ffa50233; color: #ffa502; }\n .badge-medium { background: #ffd32a33; color: #ffd32a; }\n .badge-low { background: #3498db33; color: #3498db; }\n .badge-component { background: #1e2a3a; color: #8899aa; }\n\n .bug-section-label {\n font-size: 0.8rem;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: #8899aa;\n margin: 0.75rem 0 0.25rem;\n }\n\n .bug-card p,\n .bug-card li {\n font-size: 0.9rem;\n color: #c0c8d0;\n }\n\n .bug-card ol {\n padding-left: 1.25rem;\n margin: 0.25rem 0;\n }\n .bug-card ol li {\n margin-bottom: 0.15rem;\n }\n\n .bug-card .evidence-item {\n font-size: 0.85rem;\n color: #8899aa;\n }\n\n /* Coverage table */\n table {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: 1rem;\n font-size: 0.9rem;\n }\n th, td {\n text-align: left;\n padding: 0.5rem 0.75rem;\n border-bottom: 1px solid #1e2a3a;\n }\n th {\n font-size: 0.8rem;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: #8899aa;\n font-weight: 600;\n }\n td { color: #c0c8d0; }\n\n /* Lists */\n .list-section ul {\n list-style: disc;\n padding-left: 1.25rem;\n }\n .list-section li {\n font-size: 0.9rem;\n color: #c0c8d0;\n margin-bottom: 0.35rem;\n }\n\n /* Footer */\n .footer {\n margin-top: 3rem;\n padding-top: 1.5rem;\n border-top: 1px solid #1e2a3a;\n text-align: center;\n font-size: 0.8rem;\n color: #556677;\n }\n\n /* Print styles */\n @media print {\n body {\n background: #ffffff;\n color: #1a1a1a;\n padding: 1rem;\n }\n .stat-card, .bug-card, .summary {\n background: #f5f5f5;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n .stat-total .number { color: #1a1a1a; }\n .stat-critical .number { color: #cc0000; }\n .stat-high .number { color: #cc7700; }\n .stat-medium .number { color: #cc9900; }\n .stat-low .number { color: #2266aa; }\n .bug-card .bug-title { color: #1a1a1a; }\n th { color: #555555; }\n td, .bug-card p, .bug-card li, .list-section li { color: #333333; }\n .bug-section-label { color: #555555; }\n .footer { color: #999999; }\n }\n\n /* Responsive */\n @media (max-width: 600px) {\n body { padding: 1rem; }\n .header h1 { font-size: 1.35rem; }\n .stats { grid-template-columns: repeat(2, 1fr); }\n .bug-card .bug-header { flex-direction: column; align-items: flex-start; }\n }\n </style>\n</head>\n<body>\n <div class=\"container\">\n\n <div class=\"header\">\n <h1>Exploratory Testing Report</h1>\n <div class=\"meta\">\n <span>Target: <strong>{{meta.target}}</strong></span>\n {{#if meta.date}}<span>Date: <strong>{{meta.date}}</strong></span>{{/if}}\n {{#if meta.duration}}<span>Duration: <strong>{{meta.duration}}</strong></span>{{/if}}\n <span>Session: <strong>{{meta.sessionId}}</strong></span>\n </div>\n </div>\n\n <div class=\"stats\">\n <div class=\"stat-card stat-total\">\n <span class=\"number\">{{totalBugs}}</span>\n <span class=\"label\">Total Bugs</span>\n </div>\n <div class=\"stat-card stat-critical\">\n <span class=\"number\">{{criticalCount}}</span>\n <span class=\"label\">Critical</span>\n </div>\n <div class=\"stat-card stat-high\">\n <span class=\"number\">{{highCount}}</span>\n <span class=\"label\">High</span>\n </div>\n <div class=\"stat-card stat-medium\">\n <span class=\"number\">{{mediumCount}}</span>\n <span class=\"label\">Medium</span>\n </div>\n <div class=\"stat-card stat-low\">\n <span class=\"number\">{{lowCount}}</span>\n <span class=\"label\">Low</span>\n </div>\n </div>\n\n {{#if meta.summary}}\n <div class=\"summary\">{{meta.summary}}</div>\n {{/if}}\n\n <h2 class=\"section-title\">Bugs Found</h2>\n\n {{#each bugs}}\n <div class=\"bug-card severity-{{this.severity}}\">\n <div class=\"bug-header\">\n <span class=\"bug-title\">{{this.id}}: {{this.title}}</span>\n <span class=\"badge badge-{{this.severity}}\">{{this.severity}}</span>\n {{#if this.component}}<span class=\"badge badge-component\">{{this.component}}</span>{{/if}}\n </div>\n\n {{#if this.business_impact}}\n <div class=\"bug-section-label\">Business Impact</div>\n <p>{{this.business_impact_summary}}</p>\n {{/if}}\n\n {{#if this.steps.length}}\n <div class=\"bug-section-label\">Steps to Reproduce</div>\n <ol>\n {{#each this.steps}}\n <li>{{this}}</li>\n {{/each}}\n </ol>\n {{/if}}\n\n {{#if this.hasEvidence}}\n <div class=\"bug-section-label\">Evidence</div>\n {{#each this.evidence.screenshots}}\n <p class=\"evidence-item\">Screenshot: {{this}}</p>\n {{/each}}\n {{#each this.evidence.console_errors}}\n <p class=\"evidence-item\">Console: {{this}}</p>\n {{/each}}\n {{/if}}\n </div>\n {{/each}}\n\n {{#if coverage.length}}\n <h2 class=\"section-title\">Coverage Map</h2>\n <table>\n <thead>\n <tr>\n <th>Area</th>\n <th>Status</th>\n <th>Bugs</th>\n <th>Notes</th>\n </tr>\n </thead>\n <tbody>\n {{#each coverage}}\n <tr>\n <td>{{this.area}}</td>\n <td>{{this.status}}</td>\n <td>{{this.bugsFound}}</td>\n <td>{{this.notes}}</td>\n </tr>\n {{/each}}\n </tbody>\n </table>\n {{/if}}\n\n {{#if observations.length}}\n <h2 class=\"section-title\">Observations</h2>\n <div class=\"list-section\">\n <ul>\n {{#each observations}}\n <li>{{this}}</li>\n {{/each}}\n </ul>\n </div>\n {{/if}}\n\n {{#if recommendations.length}}\n <h2 class=\"section-title\">Recommendations</h2>\n <div class=\"list-section\">\n <ul>\n {{#each recommendations}}\n <li>{{this}}</li>\n {{/each}}\n </ul>\n </div>\n {{/if}}\n\n <div class=\"footer\">\n Generated by Qualiow Exploratory Testing\n </div>\n\n </div>\n</body>\n</html>`;\n\n// ─── Template compilation ───────────────────────────────────────────\n\nconst compiledTemplate = Handlebars.compile(HTML_TEMPLATE);\n\n// ─── Public API ─────────────────────────────────────────────────────\n\n/**\n * Generates a self-contained dark-mode HTML report from a session directory.\n */\nexport async function generateHtmlReport(sessionDir: string): Promise<string> {\n const session = await parseSession(sessionDir);\n\n const report = session.report ?? '';\n const meta = extractReportMeta(report, session.id);\n const coverage = extractCoverage(report);\n const observations = extractListSection(report, 'Observations');\n const recommendations = extractListSection(report, 'Recommendations');\n\n // Count severities\n const counts = { critical: 0, high: 0, medium: 0, low: 0 };\n for (const bug of session.bugs) {\n counts[bug.severity]++;\n }\n\n // Prepare bug data for the template\n const bugsForTemplate = session.bugs.map((bug) => ({\n ...bug,\n business_impact_summary: summarizeBusinessImpact(bug.business_impact),\n hasEvidence:\n bug.evidence.screenshots.length > 0 ||\n bug.evidence.console_errors.length > 0,\n }));\n\n const html = compiledTemplate({\n meta,\n totalBugs: session.bugs.length,\n criticalCount: counts.critical,\n highCount: counts.high,\n mediumCount: counts.medium,\n lowCount: counts.low,\n bugs: bugsForTemplate,\n coverage,\n observations,\n recommendations,\n });\n\n return html;\n}\n\n/**\n * Extracts a one-line summary from the business impact section.\n * Takes the first meaningful line or sentence.\n */\nfunction summarizeBusinessImpact(impact: string): string {\n if (!impact) return '';\n\n const lines = impact.split('\\n').filter((l) => l.trim());\n const summaryLines: string[] = [];\n\n for (const line of lines) {\n const cleaned = line\n .replace(/^[-*]\\s*/, '')\n .replace(/^\\*\\*[^*]+\\*\\*\\s*/, '')\n .trim();\n if (cleaned) {\n summaryLines.push(cleaned);\n }\n }\n\n // Return first 2-3 meaningful points joined\n return summaryLines.slice(0, 3).join(' ');\n}\n","/**\n * JSON report generator.\n * Produces structured JSON from session data for programmatic consumption.\n */\n\nimport { parseSession } from '../utils/parse-session.js';\n\n// ─── Report metadata extraction ─────────────────────────────────────\n\nfunction extractTarget(report: string, sessionId: string): string {\n const match = report.match(/\\*\\*Application:\\*\\*\\s*(.+)/i)\n ?? report.match(/\\*\\*Target:\\*\\*\\s*(.+)/i)\n ?? report.match(/\\|\\s*Target\\s*\\|\\s*(.+?)\\s*\\|/i);\n if (match) return match[1].trim();\n\n // Fallback: extract from session ID (e.g. \"2026-03-28-r2-parabank\" -> \"parabank\")\n const parts = sessionId.split('-');\n return parts[parts.length - 1] || sessionId;\n}\n\nfunction extractDate(report: string): string {\n const match = report.match(/\\*\\*Date:\\*\\*\\s*(\\d{4}-\\d{2}-\\d{2})/i)\n ?? report.match(/\\|\\s*Date\\s*\\|\\s*(\\d{4}-\\d{2}-\\d{2})\\s*\\|/i);\n return match ? match[1] : '';\n}\n\nfunction extractDuration(report: string): number {\n const match = report.match(/\\*\\*Duration:\\*\\*\\s*~?(\\d+)\\s*min/i)\n ?? report.match(/\\|\\s*Duration\\s*\\|\\s*~?(\\d+)\\s*min/i);\n return match ? parseInt(match[1], 10) : 0;\n}\n\nfunction extractPagesExplored(report: string): number {\n const match = report.match(/Pages\\s+Explored\\s*\\|\\s*(\\d+)/i);\n return match ? parseInt(match[1], 10) : 0;\n}\n\n// ─── Coverage extraction ────────────────────────────────────────────\n\ninterface CoverageEntry {\n area: string;\n status: string;\n bugs_found: number;\n notes: string;\n}\n\nfunction extractCoverage(report: string): CoverageEntry[] {\n const entries: CoverageEntry[] = [];\n const tableMatch = report.match(\n /\\|\\s*Area\\s*\\|\\s*Status\\s*\\|[\\s\\S]*?\\n((?:\\|.+\\|.+\\n?)+)/i,\n );\n if (!tableMatch) return entries;\n\n const rows = tableMatch[1].split('\\n').filter((r) => r.trim().startsWith('|'));\n for (const row of rows) {\n const cells = row.split('|').map((c) => c.trim()).filter(Boolean);\n if (cells.length >= 2 && !cells[0].startsWith('---')) {\n entries.push({\n area: cells[0] || '',\n status: cells[1] || '',\n bugs_found: parseInt(cells[3] || '0', 10) || 0,\n notes: cells[4] || '',\n });\n }\n }\n return entries;\n}\n\n// ─── List extraction ────────────────────────────────────────────────\n\nfunction extractListSection(report: string, heading: string): string[] {\n const items: string[] = [];\n const regex = new RegExp(`##\\\\s+${heading}\\\\s*\\\\n+([\\\\s\\\\S]*?)(?=\\\\n##\\\\s|\\\\n---|$)`, 'i');\n const match = report.match(regex);\n if (!match) return items;\n\n for (const line of match[1].split('\\n')) {\n const itemMatch = line.match(/^[-*]\\s+(?:\\[.\\]\\s+)?(.+)/);\n if (itemMatch) {\n items.push(itemMatch[1].trim());\n }\n const numberedMatch = line.match(/^\\d+\\.\\s+\\*\\*(.+?)\\*\\*\\s*(.+)?/);\n if (numberedMatch) {\n const text = numberedMatch[2]\n ? `${numberedMatch[1]} ${numberedMatch[2]}`\n : numberedMatch[1];\n items.push(text.replace(/\\s*--\\s*/, ' -- '));\n }\n }\n return items;\n}\n\n// ─── Public API ─────────────────────────────────────────────────────\n\n/**\n * Generates a structured JSON report from a session directory.\n */\nexport async function generateJsonReport(sessionDir: string): Promise<object> {\n const session = await parseSession(sessionDir);\n const report = session.report ?? '';\n\n const target = extractTarget(report, session.id);\n const date = extractDate(report);\n const duration_min = extractDuration(report);\n const pages_explored = extractPagesExplored(report);\n\n const counts = { critical: 0, high: 0, medium: 0, low: 0 };\n for (const bug of session.bugs) {\n counts[bug.severity]++;\n }\n\n const coverage = extractCoverage(report);\n const observations = extractListSection(report, 'Observations');\n const recommendations = extractListSection(report, 'Recommendations');\n\n return {\n session: {\n id: session.id,\n target,\n date,\n duration_min,\n },\n summary: {\n total_bugs: session.bugs.length,\n critical: counts.critical,\n high: counts.high,\n medium: counts.medium,\n low: counts.low,\n pages_explored,\n },\n bugs: session.bugs.map((bug) => ({\n id: bug.id,\n title: bug.title,\n severity: bug.severity,\n component: bug.component,\n url: bug.url,\n business_impact: bug.business_impact,\n steps: bug.steps,\n evidence: bug.evidence,\n })),\n coverage,\n observations,\n recommendations,\n };\n}\n","/**\n * Jira CSV export generator.\n * Produces a CSV file importable via Jira bulk import.\n */\n\nimport { parseSession } from '../utils/parse-session.js';\nimport type { ParsedBug } from '../utils/parse-session.js';\n\n// ─── Severity to Jira priority mapping ──────────────────────────────\n\nconst SEVERITY_TO_JIRA_PRIORITY: Record<string, string> = {\n critical: 'Blocker',\n high: 'Critical',\n medium: 'Major',\n low: 'Minor',\n};\n\n// ─── CSV escaping ───────────────────────────────────────────────────\n\n/**\n * Escapes a value for inclusion in a CSV field.\n * Wraps in double quotes and escapes internal double quotes.\n */\nfunction csvEscape(value: string): string {\n if (!value) return '\"\"';\n // Always quote to avoid issues with commas, newlines, quotes\n const escaped = value.replace(/\"/g, '\"\"');\n return `\"${escaped}\"`;\n}\n\n// ─── Description formatting ─────────────────────────────────────────\n\nfunction formatDescription(bug: ParsedBug): string {\n const parts: string[] = [];\n\n if (bug.steps.length > 0) {\n parts.push('h3. Steps to Reproduce');\n for (const step of bug.steps) {\n parts.push(`# ${step}`);\n }\n parts.push('');\n }\n\n if (bug.expected) {\n parts.push(`h3. Expected Behavior`);\n parts.push(bug.expected);\n parts.push('');\n }\n\n if (bug.actual) {\n parts.push(`h3. Actual Behavior`);\n parts.push(bug.actual);\n parts.push('');\n }\n\n if (bug.business_impact) {\n parts.push('h3. Business Impact');\n parts.push(bug.business_impact);\n parts.push('');\n }\n\n if (bug.url) {\n parts.push(`h3. URL`);\n parts.push(bug.url);\n }\n\n return parts.join('\\n');\n}\n\n// ─── Domain extraction ──────────────────────────────────────────────\n\nfunction extractDomain(sessionId: string): string {\n // Attempt to extract domain from session ID (e.g. \"2026-03-28-r2-parabank\" -> \"fintech\")\n // Fallback to \"general\" since we cannot reliably determine domain from session ID alone\n return 'general';\n}\n\n// ─── Public API ─────────────────────────────────────────────────────\n\n/**\n * Generates a CSV string importable by Jira bulk import from a session directory.\n *\n * CSV columns:\n * - Summary: bug title\n * - Priority: mapped from severity\n * - Description: steps + business impact formatted in Jira wiki markup\n * - Component: from bug component field\n * - Labels: qualiow, exploratory-testing, domain\n */\nexport async function generateJiraExport(sessionDir: string): Promise<string> {\n const session = await parseSession(sessionDir);\n\n const headers = ['Summary', 'Priority', 'Description', 'Component', 'Labels'];\n const rows: string[] = [headers.join(',')];\n\n const domain = extractDomain(session.id);\n\n for (const bug of session.bugs) {\n const summary = `${bug.id}: ${bug.title}`;\n const priority = SEVERITY_TO_JIRA_PRIORITY[bug.severity] ?? 'Major';\n const description = formatDescription(bug);\n const component = bug.component || '';\n const labels = ['qualiow', 'exploratory-testing', domain]\n .filter(Boolean)\n .join(' ');\n\n rows.push(\n [\n csvEscape(summary),\n csvEscape(priority),\n csvEscape(description),\n csvEscape(component),\n csvEscape(labels),\n ].join(','),\n );\n }\n\n return rows.join('\\n');\n}\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,mBAAmB,EAAE,OAAO;AAAA,EACvC,UAAU,EAAE,KAAK,CAAC,QAAQ,iBAAiB,eAAe,OAAO,CAAC;AAAA,EAClE,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACrC,aAAa,EACV,OAAO;AAAA,IACN,UAAU,EAAE,OAAO;AAAA,IACnB,UAAU,EAAE,OAAO;AAAA,EACrB,CAAC,EACA,SAAS;AAAA,EACZ,OAAO,EAAE,OAAO,EAAE,SAAS;AAC7B,CAAC;AAEM,IAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,UAAU,EAAE,QAAQ;AAAA,EACpB,UAAU,EAAE,OAAO;AAAA,IACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACjC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACpC,CAAC;AACH,CAAC;AAEM,IAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,aAAa,EAAE,MAAM,EAAE,OAAO,CAA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Ac,QAAQ,EAAE;AAEvC,aAAW,OAAO,QAAQ,MAAM;AAC9B,UAAM,UAAU,GAAG,IAAI,EAAE,KAAK,IAAI,KAAK;AACvC,UAAM,WAAW,0BAA0B,IAAI,QAAQ,KAAK;AAC5D,UAAM,cAAc,kBAAkB,GAAG;AACzC,UAAM,YAAY,IAAI,aAAa;AACnC,UAAM,SAAS,CAAC,WAAW,uBAAuB,MAAM,EACrD,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SAAK;AAAA,MACH;AAAA,QACE,UAAU,OAAO;AAAA,QACjB,UAAU,QAAQ;AAAA,QAClB,UAAU,WAAW;AAAA,QACrB,UAAU,SAAS;AAAA,QACnB,UAAU,MAAM;AAAA,MAClB,EAAE,KAAK,GAAG;AAAA,IACZ;AAAA,EACF;AAEA,SAAO,KAAK,KAAK,IAAI;AACvB;","names":["z","z","z","z","readFileSync","join","join","readFileSync","readFileSync","existsSync","join","extractCoverage","extractListSection"]}
@@ -0,0 +1,265 @@
1
+ # Getting Started with Qualiow
2
+
3
+ Step-by-step guide to running your first AI-powered exploratory testing session.
4
+
5
+ ## 1. How to Install
6
+
7
+ ### System requirements
8
+
9
+ - Node.js >= 18 (check with `node --version`)
10
+ - npm >= 9 (ships with Node.js 18+)
11
+ - Claude Code installed and configured
12
+
13
+ ### Install the package
14
+
15
+ ```bash
16
+ npm install -g @qualiow/exploratory-testing
17
+ ```
18
+
19
+ ### Install Playwright CLI
20
+
21
+ Playwright CLI is the browser control layer. Install it as a project dependency or globally.
22
+
23
+ ```bash
24
+ npm install @playwright/cli
25
+ ```
26
+
27
+ ### Verify the installation
28
+
29
+ ```bash
30
+ qualiow --version
31
+ ```
32
+
33
+ ## 2. How to Run Your First Session
34
+
35
+ ### Option A: Explore a public test site
36
+
37
+ Pick a public test application. Good candidates for a first run:
38
+
39
+ | Site | URL | Domain |
40
+ |------|-----|--------|
41
+ | SauceDemo | https://www.saucedemo.com | ecommerce |
42
+ | ParaBank | https://parabank.parasoft.com/parabank/index.htm | fintech |
43
+ | DemoQA | https://demoqa.com | general |
44
+
45
+ Start a session inside Claude Code:
46
+
47
+ ```bash
48
+ /qa-explore https://www.saucedemo.com
49
+ ```
50
+
51
+ Claude will:
52
+ 1. Launch a browser via Playwright CLI
53
+ 2. Read the knowledge base for applicable heuristics
54
+ 3. Explore the site across 3-4 phases (discovery, functional, edge cases, synthesis)
55
+ 4. File individual bug reports in `output/sessions/<session-id>/bugs/`
56
+ 5. Write a session report at `output/sessions/<session-id>/session-report.md`
57
+
58
+ ### Option B: Quick check on a specific page
59
+
60
+ If you only want to test one page or feature:
61
+
62
+ ```bash
63
+ /qa-explore-quick https://app.example.com/checkout
64
+ ```
65
+
66
+ This runs a 15-minute focused session on the target page.
67
+
68
+ ## 3. How to Understand the Output
69
+
70
+ After a session, qualiow creates this directory structure:
71
+
72
+ ```
73
+ output/sessions/<session-id>/
74
+ charter.md # what was tested and why
75
+ phase-1-discovery.md # discovery phase findings
76
+ phase-2-functional.md # functional testing findings
77
+ phase-3-edge-cases.md # edge case and adversarial findings
78
+ session-report.md # final report with all bugs, observations, recommendations
79
+ bugs/
80
+ BUG-001.md # individual bug report
81
+ BUG-002.md
82
+ ...
83
+ screenshots/
84
+ 01-login-page.png # evidence screenshots
85
+ ...
86
+ ```
87
+
88
+ ### Bug report structure
89
+
90
+ Each bug report contains:
91
+
92
+ - **Title** -- `[Component] fails [Condition] causing [Impact]`
93
+ - **Severity** -- Critical, High, Medium, or Low (conservative by design)
94
+ - **Steps to Reproduce** -- numbered list, specific enough to reproduce
95
+ - **Expected vs Actual Behavior** -- clear comparison
96
+ - **Business Impact** -- revenue, trust, regulatory, data risk, and scale
97
+ - **Evidence** -- screenshots, console errors, network failures
98
+
99
+ ### Session report structure
100
+
101
+ The session report aggregates all findings:
102
+
103
+ - Executive summary with key risk areas
104
+ - Bug table with severity distribution
105
+ - Coverage map showing which areas were tested
106
+ - Observations (not bugs, but worth discussing)
107
+ - Recommendations for follow-up testing
108
+
109
+ ## 4. How to Configure a Target
110
+
111
+ For repeated testing of the same application, create a target config.
112
+
113
+ ### Generate a target config interactively
114
+
115
+ ```bash
116
+ /qa-target-setup
117
+ ```
118
+
119
+ ### Or create one manually
120
+
121
+ Create a YAML file at `data/targets/<target-name>.yml`:
122
+
123
+ ```yaml
124
+ id: my-app
125
+ name: My Application
126
+ base_url: https://staging.my-app.com
127
+ domain: saas
128
+
129
+ auth:
130
+ strategy: storage_state
131
+ state_file: .auth/my-app.json
132
+ login_url: https://staging.my-app.com/login
133
+
134
+ browser:
135
+ headless: true
136
+ viewport:
137
+ width: 1280
138
+ height: 720
139
+
140
+ scope:
141
+ start_pages:
142
+ - /dashboard
143
+ - /settings
144
+ max_depth: 3
145
+ exclude_patterns:
146
+ - /admin/*
147
+ - /api/*
148
+ ```
149
+
150
+ ### Run with the target config
151
+
152
+ ```bash
153
+ /qa-explore --target my-app
154
+ ```
155
+
156
+ ### Authentication strategies
157
+
158
+ | Strategy | When to use | Setup |
159
+ |----------|-------------|-------|
160
+ | `none` | Public sites, no login required | Default |
161
+ | `storage_state` | Sites with cookie/session auth | Run `state-save` in Playwright CLI after manual login |
162
+ | `credentials` | Username/password login | Set in `.env`, reference with env vars |
163
+ | `token` | API token or bearer auth | Set in `.env` |
164
+
165
+ Store credentials in `.env` (gitignored), never in YAML:
166
+
167
+ ```bash
168
+ # .env
169
+ MY_APP_USERNAME=testuser
170
+ MY_APP_PASSWORD=testpass123
171
+ ```
172
+
173
+ ## 5. How to Add Knowledge
174
+
175
+ The knowledge base drives Claude's testing strategy. Add domain-specific heuristics, techniques, or checklists.
176
+
177
+ ### Add knowledge interactively
178
+
179
+ ```bash
180
+ /qa-knowledge-add
181
+ ```
182
+
183
+ ### Browse existing knowledge
184
+
185
+ ```bash
186
+ /qa-knowledge-list
187
+ ```
188
+
189
+ ### Knowledge types
190
+
191
+ | Type | Purpose | Example |
192
+ |------|---------|---------|
193
+ | `heuristic` | Mental model or framework for exploration | SFDIPOT, FEW HICCUPPS |
194
+ | `technique` | Specific testing method | boundary testing, error guessing |
195
+ | `checklist` | Verification list for a specific area | WCAG accessibility checks |
196
+ | `reference` | Background material | exploratory testing type definitions |
197
+
198
+ Knowledge entries are YAML files in `data/knowledge/releases/<version>/entries/`.
199
+
200
+ ## 6. How to Use CLI Commands
201
+
202
+ ### Validate all configuration files
203
+
204
+ ```bash
205
+ qualiow validate
206
+ ```
207
+
208
+ Checks all target configs, knowledge entries, and domain configs against their schemas.
209
+
210
+ ### List resources
211
+
212
+ ```bash
213
+ # list all sessions
214
+ qualiow list sessions
215
+
216
+ # list knowledge entries
217
+ qualiow list knowledge
218
+
219
+ # list configured targets
220
+ qualiow list targets
221
+
222
+ # list domain profiles
223
+ qualiow list domains
224
+ ```
225
+
226
+ ### Generate reports from an existing session
227
+
228
+ ```bash
229
+ qualiow report
230
+ ```
231
+
232
+ Or use the skill for more control:
233
+
234
+ ```bash
235
+ /qa-explore-report output/sessions/2026-03-28-parabank
236
+ ```
237
+
238
+ ### Export session data programmatically
239
+
240
+ ```typescript
241
+ import {
242
+ generateHtmlReport,
243
+ generateJsonReport,
244
+ generateJiraExport,
245
+ } from '@qualiow/exploratory-testing';
246
+
247
+ // HTML report (standalone, dark-mode, print-friendly)
248
+ const html = await generateHtmlReport('output/sessions/2026-03-28-parabank');
249
+
250
+ // JSON report (structured data for dashboards and CI)
251
+ const json = await generateJsonReport('output/sessions/2026-03-28-parabank');
252
+
253
+ // Jira CSV (bulk import into Jira)
254
+ const csv = await generateJiraExport('output/sessions/2026-03-28-parabank');
255
+ ```
256
+
257
+ ## What to Do Next
258
+
259
+ After your first session:
260
+
261
+ 1. Review the session report and bug reports
262
+ 2. Use `/qa-explore-feedback` to mark false positives or note missed bugs
263
+ 3. Configure a target for your own application
264
+ 4. Add domain-specific knowledge for better coverage
265
+ 5. Run `/qa-explore-cleanup` to archive completed sessions
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "qualiow-exploratory-testing",
3
+ "version": "1.0.0",
4
+ "description": "qualiow — AI-powered exploratory testing skills using Claude Code + Playwright CLI",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "qualiow": "dist/cli/index.js"
10
+ },
11
+ "files": [
12
+ "dist/",
13
+ "skills/",
14
+ "data/domains/*.yml",
15
+ "data/knowledge/",
16
+ "data/templates/",
17
+ "data/targets/_default.yml",
18
+ "data/targets/testers-ai.yml",
19
+ "docs/GETTING-STARTED.md"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup",
23
+ "dev": "tsup --watch",
24
+ "test": "vitest run",
25
+ "test:watch": "vitest",
26
+ "test:coverage": "vitest run --coverage",
27
+ "validate": "node dist/cli/index.js validate --all",
28
+ "lint": "tsc --noEmit",
29
+ "prepublishOnly": "npm run build && npm test"
30
+ },
31
+ "keywords": [
32
+ "exploratory-testing",
33
+ "qa",
34
+ "testing",
35
+ "playwright",
36
+ "ai",
37
+ "claude",
38
+ "skills",
39
+ "heuristics",
40
+ "bug-detection"
41
+ ],
42
+ "author": "William Oliveira",
43
+ "license": "MIT",
44
+ "engines": {
45
+ "node": ">=18.0.0"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/willcoliveira/qualiow-exploratory-testing-skills.git"
50
+ },
51
+ "homepage": "https://github.com/willcoliveira/qualiow-exploratory-testing-skills#readme",
52
+ "bugs": {
53
+ "url": "https://github.com/willcoliveira/qualiow-exploratory-testing-skills/issues"
54
+ },
55
+ "dependencies": {
56
+ "@playwright/cli": "latest",
57
+ "chalk": "^5.3.0",
58
+ "commander": "^13.1.0",
59
+ "glob": "^11.0.0",
60
+ "handlebars": "^4.7.8",
61
+ "yaml": "^2.7.0",
62
+ "zod": "^3.24.0"
63
+ },
64
+ "devDependencies": {
65
+ "@types/node": "^22.0.0",
66
+ "tsup": "^8.4.0",
67
+ "typescript": "^5.7.0",
68
+ "vitest": "^3.0.0"
69
+ }
70
+ }
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: qa-explore
3
+ description: >
4
+ Run a full AI-driven exploratory testing session against a web application.
5
+ Acts as a Principal QA Engineer — understands the business first, risk-ranks features,
6
+ tests end-to-end user journeys, verifies data integrity, finds what's MISSING,
7
+ and writes bug reports that executives act on.
8
+ Use when user says: "explore", "test this site", "find bugs", "QA check", "exploratory session",
9
+ or provides a URL to test.
10
+ allowed-tools: Bash(playwright-cli:*), Bash(npx playwright-cli:*), Read, Write, Glob, Grep
11
+ ---
12
+
13
+ # Exploratory Testing Session (v2)
14
+
15
+ ## Your Identity
16
+
17
+ You are a **Principal QA Engineer** with 20+ years of experience. You don't just find bugs — you understand the business, advocate for the customer, and communicate risk in terms stakeholders care about.
18
+
19
+ **Your mindset:**
20
+ - "If I were a customer who just deposited my life savings, would I trust this software?"
21
+ - "What would make the CEO lose sleep?"
22
+ - "What's NOT here that SHOULD be?"
23
+
24
+ **You are NOT a test executor following a checklist.** You are a quality advocate who thinks, reasons, adapts, and follows interesting threads when you spot inconsistencies.
25
+
26
+ ## Quick Start
27
+
28
+ ```
29
+ # Mode 1: Blind exploration (default — always works, no prior info needed)
30
+ /qa-explore https://example.com
31
+
32
+ # Mode 2: Context-enriched (requirements file from tool-qa-workflow or manual)
33
+ /qa-explore https://example.com --context requirements-SI-2305.md
34
+
35
+ # Mode 3: Inline context (user provides context in their message)
36
+ /qa-explore https://example.com
37
+ > "This is a new checkout flow. Should support Visa/MC, require delivery address,
38
+ > send confirmation email. Team just refactored the payment service."
39
+
40
+ # With target config
41
+ /qa-explore --target company-staging --context requirements-SI-2305.md
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Session Phases
47
+
48
+ Execute each phase in order. Read and follow the linked file for full instructions.
49
+
50
+ | Phase | File | Summary |
51
+ |-------|------|---------|
52
+ | **Setup** | Read and follow: `phases/00-setup.md` | Parse input, resolve target, load context, load knowledge, create session directory |
53
+ | **Auth** | Read and follow: `phases/01-auth.md` | Authenticate via storage state, credentials, or token; verify login |
54
+ | **Charter** | Read and follow: `phases/02-charter.md` | Use app as real user, identify journeys, risk-rank features, select heuristics, write charter |
55
+ | **Discovery** | Read and follow: `phases/03-discovery.md` | Map the site, check console/network, enforce scope, find what's MISSING |
56
+ | **Journeys** | Read and follow: `phases/04-journeys.md` | End-to-end user journeys, data integrity verification, cross-page consistency |
57
+ | **Features** | Read and follow: `phases/05-features.md` | Deep feature testing with SFDIPOT, business logic stress, negative space, FEW HICCUPPS |
58
+ | **Edge Cases** | Read and follow: `phases/06-edge-cases.md` | Input attacks, race conditions, state manipulation, security, accessibility, empty states |
59
+ | **Reporting** | Read and follow: `phases/07-reporting.md` | Stop recording, reflect, write bug reports with business impact, session report, coverage map |
60
+
61
+ ---
62
+
63
+ ## References
64
+
65
+ Consult these as needed throughout the session:
66
+
67
+ - **`references/security-rules.md`** — Prompt injection resistance, credential protection, session isolation, production safety, output classification
68
+ - **`references/severity-guide.md`** — Severity definitions (Critical/High/Medium/Low) and the "when in doubt go LOWER" rule
69
+ - **`references/session-rules.md`** — 20 testing discipline rules: 45-min cap, one bug one report, evidence, risk-proportional time, adapt mid-session, log WHY, AI bias avoidance
70
+ - **`references/context-integration.md`** — How `--context` changes the session (context file, inline context, blind mode)
@@ -0,0 +1,96 @@
1
+ # Phase 0: Session Setup
2
+
3
+ ## Step 1: Parse Input & Resolve Target
4
+
5
+ Extract from user message:
6
+ - **target_url**: The URL to test (required)
7
+ - **domain**: Domain type (optional -- auto-detect if not specified)
8
+ - **focus**: Specific area or feature (optional)
9
+ - **time_box**: Session duration (default: 45 min, max: 45 min)
10
+ - **context**: Path to requirements file OR inline context text (optional)
11
+
12
+ Resolve target config from `data/targets/` if available. Read domain config from `data/domains/`.
13
+
14
+ ## Step 2: Load Context (if provided)
15
+
16
+ **If `--context <file>` provided:** Read the file. It may be a `tool-qa-workflow` output (structured markdown with Jira data, Confluence specs, GitLab MR diffs, Figma design notes) or any document describing what to test.
17
+
18
+ **If inline context provided:** Extract from the user's message any descriptions of: what the feature does, acceptance criteria, what changed, what the design should look like, known risks, user personas.
19
+
20
+ **If no context provided:** That's fine -- run in blind exploration mode. The agent discovers everything on its own.
21
+
22
+ **When context IS available, extract and use:**
23
+
24
+ | Context Element | How It Changes the Session |
25
+ |----------------|---------------------------|
26
+ | **Acceptance criteria** | Add as explicit checkpoints -- verify each AC during testing |
27
+ | **What changed** (MR diff, commits) | Focus testing on changed areas -- highest regression risk |
28
+ | **Design specs** (Figma, mockups) | Compare live app against intended design -- spot deviations |
29
+ | **User stories / requirements** | Test against INTENT, not just what's visible |
30
+ | **Known risks** (from risk analysis) | Prioritize testing on flagged risk areas |
31
+ | **API contracts** (OpenAPI, endpoints) | Verify UI matches API behavior |
32
+ | **Previous test results** | Don't re-test what passed -- focus on gaps |
33
+
34
+ **Context makes exploration sharper but NEVER blocks it.** A QA walking up to a random app with zero documentation should still get a full, valuable session. Context is a boost, not a gate.
35
+
36
+ When context is loaded, note in the charter:
37
+ ```
38
+ CONTEXT SOURCE: [filename or "inline" or "none -- blind exploration"]
39
+ ACCEPTANCE CRITERIA: [list extracted ACs or "none provided -- discovering from app"]
40
+ CHANGE SCOPE: [what changed or "unknown -- full exploration"]
41
+ ```
42
+
43
+ ## Step 3: Load Knowledge
44
+
45
+ Read `data/knowledge/manifest.yml`. Load:
46
+ 1. Core heuristics (SFDIPOT, FEW HICCUPPS, Test Tours)
47
+ 2. Domain-specific entries
48
+ 3. `data/knowledge/learned-patterns.md` -- false-positive skip list + must-check patterns
49
+ 4. Business logic & race condition techniques (if app has transactions/state changes)
50
+
51
+ Keep brief summaries only -- don't fill context with full entries.
52
+
53
+ ## Step 4: Create Session Directory
54
+
55
+ Create `output/sessions/<YYYY-MM-DD-HHmm-target>/` with: `charter.md`, `session-log.md`, `screenshots/`, `bugs/`
56
+
57
+ ## Step 5: Initialize Progress Tracking
58
+
59
+ Write `output/sessions/<session-dir>/progress.json`:
60
+ ```json
61
+ {
62
+ "session_id": "<session-dir>",
63
+ "target": "<target_url>",
64
+ "domain": "<domain>",
65
+ "started_at": "<ISO timestamp>",
66
+ "status": "in_progress",
67
+ "current_phase": "setup",
68
+ "phases": {
69
+ "setup": { "status": "complete", "timestamp": "<now>" },
70
+ "auth": { "status": "pending" },
71
+ "charter": { "status": "pending" },
72
+ "discovery": { "status": "pending" },
73
+ "journeys": { "status": "pending" },
74
+ "features": { "status": "pending" },
75
+ "edge_cases": { "status": "pending" },
76
+ "reporting": { "status": "pending" }
77
+ },
78
+ "bugs_found": 0,
79
+ "pages_explored": 0,
80
+ "screenshots_taken": 0,
81
+ "console_errors": 0
82
+ }
83
+ ```
84
+
85
+ Append to `session-log.md`:
86
+ ```
87
+ [<timestamp>] [PHASE] Setup complete — session initialized
88
+ ```
89
+
90
+ **IMPORTANT: After EVERY phase completion, update progress.json and append to session-log.md.** This is how the user monitors session progress. Use this pattern at the end of each phase:
91
+
92
+ ```
93
+ # Update progress.json — set current phase complete, next phase as current
94
+ # Append to session-log.md:
95
+ [<timestamp>] [PHASE] <phase_name> complete — <pages> pages, <bugs> bugs, <key finding summary>
96
+ ```