qa360 2.2.20 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +155 -262
- package/{cli/dist → dist}/commands/ai.js +1 -1
- package/{cli/dist → dist}/commands/coverage.js +1 -1
- package/{cli/dist → dist}/commands/crawl.d.ts +12 -1
- package/{cli/dist → dist}/commands/crawl.js +70 -9
- package/{cli/dist → dist}/commands/doctor.js +2 -2
- package/{cli/dist → dist}/commands/explain.js +2 -2
- package/{cli/dist → dist}/commands/flakiness.js +1 -1
- package/{cli/dist → dist}/commands/generate.js +1 -1
- package/{cli/dist → dist}/commands/history.js +1 -1
- package/{cli/dist → dist}/commands/monitor.js +3 -3
- package/{cli/dist → dist}/commands/ollama.js +1 -1
- package/{cli/dist → dist}/commands/pack.js +2 -2
- package/{cli/dist → dist}/commands/regression.js +1 -1
- package/{cli/dist → dist}/commands/repair.js +1 -1
- package/{cli/dist → dist}/commands/retry.js +1 -1
- package/{cli/dist → dist}/commands/run.d.ts +1 -1
- package/{cli/dist → dist}/commands/run.js +1 -1
- package/{cli/dist → dist}/commands/secrets.js +1 -1
- package/{cli/dist → dist}/commands/serve.js +1 -1
- package/{cli/dist → dist}/commands/slo.js +1 -1
- package/{cli/dist → dist}/commands/verify.js +1 -1
- package/{cli/dist → dist}/core/adapters/playwright-native-api.d.ts +2 -0
- package/{cli/dist → dist}/core/adapters/playwright-native-api.js +20 -1
- package/{cli/dist → dist}/core/adapters/playwright-ui.d.ts +21 -0
- package/dist/core/adapters/playwright-ui.js +2050 -0
- package/{cli/dist → dist}/core/ai/ollama-provider.js +15 -3
- package/{cli/dist → dist}/core/artifacts/ui-artifacts.js +24 -4
- package/dist/core/auth/backup-codes-provider.d.ts +91 -0
- package/dist/core/auth/backup-codes-provider.js +215 -0
- package/{cli/dist → dist}/core/auth/basic-auth-provider.d.ts +6 -0
- package/{cli/dist → dist}/core/auth/basic-auth-provider.js +24 -6
- package/dist/core/auth/digest-auth-provider.d.ts +116 -0
- package/dist/core/auth/digest-auth-provider.js +244 -0
- package/dist/core/auth/hcaptcha-handler.d.ts +103 -0
- package/dist/core/auth/hcaptcha-handler.js +288 -0
- package/{cli/dist → dist}/core/auth/index.d.ts +81 -4
- package/{cli/dist → dist}/core/auth/index.js +15 -1
- package/dist/core/auth/oauth-handler.d.ts +408 -0
- package/dist/core/auth/oauth-handler.js +636 -0
- package/{cli/dist → dist}/core/auth/oauth2-provider.d.ts +9 -0
- package/dist/core/auth/oauth2-provider.js +227 -0
- package/dist/core/auth/otp-provider.d.ts +93 -0
- package/dist/core/auth/otp-provider.js +288 -0
- package/dist/core/auth/recaptcha-handler.d.ts +119 -0
- package/dist/core/auth/recaptcha-handler.js +301 -0
- package/dist/core/auth/remember-me-handler.d.ts +142 -0
- package/dist/core/auth/remember-me-handler.js +255 -0
- package/dist/core/auth/saml-handler.d.ts +173 -0
- package/dist/core/auth/saml-handler.js +364 -0
- package/dist/core/auth/webauthn-handler.d.ts +182 -0
- package/dist/core/auth/webauthn-handler.js +310 -0
- package/dist/core/crawler/advanced-interactions.d.ts +342 -0
- package/dist/core/crawler/advanced-interactions.js +1069 -0
- package/dist/core/crawler/blob-url-download-handler.d.ts +145 -0
- package/dist/core/crawler/blob-url-download-handler.js +392 -0
- package/dist/core/crawler/consent-handler.d.ts +49 -0
- package/dist/core/crawler/consent-handler.js +258 -0
- package/dist/core/crawler/cookie-manager.d.ts +166 -0
- package/dist/core/crawler/cookie-manager.js +353 -0
- package/dist/core/crawler/coop-coep-handler.d.ts +136 -0
- package/dist/core/crawler/coop-coep-handler.js +338 -0
- package/dist/core/crawler/csp-handler.d.ts +151 -0
- package/dist/core/crawler/csp-handler.js +415 -0
- package/dist/core/crawler/download-handler.d.ts +155 -0
- package/dist/core/crawler/download-handler.js +370 -0
- package/dist/core/crawler/email-testing-handler.d.ts +214 -0
- package/dist/core/crawler/email-testing-handler.js +398 -0
- package/dist/core/crawler/error-tracking-handler.d.ts +177 -0
- package/dist/core/crawler/error-tracking-handler.js +378 -0
- package/dist/core/crawler/form-handler.d.ts +100 -0
- package/dist/core/crawler/form-handler.js +465 -0
- package/dist/core/crawler/framework-wait-handler.d.ts +96 -0
- package/dist/core/crawler/framework-wait-handler.js +464 -0
- package/dist/core/crawler/geolocation-handler.d.ts +112 -0
- package/dist/core/crawler/geolocation-handler.js +276 -0
- package/dist/core/crawler/index.d.ts +78 -0
- package/{cli/dist → dist}/core/crawler/index.js +74 -1
- package/dist/core/crawler/intelligent-selector-generator.d.ts +164 -0
- package/dist/core/crawler/intelligent-selector-generator.js +612 -0
- package/{cli/dist → dist}/core/crawler/journey-generator.js +44 -1
- package/{cli/dist → dist}/core/crawler/page-analyzer.d.ts +16 -1
- package/{cli/dist → dist}/core/crawler/page-analyzer.js +469 -17
- package/dist/core/crawler/permissions-handler.d.ts +112 -0
- package/dist/core/crawler/permissions-handler.js +236 -0
- package/dist/core/crawler/permissions-policy-handler.d.ts +113 -0
- package/dist/core/crawler/permissions-policy-handler.js +402 -0
- package/dist/core/crawler/presets.d.ts +100 -0
- package/dist/core/crawler/presets.js +887 -0
- package/dist/core/crawler/repl-debug-handler.d.ts +105 -0
- package/dist/core/crawler/repl-debug-handler.js +552 -0
- package/dist/core/crawler/reporting-api-handler.d.ts +212 -0
- package/dist/core/crawler/reporting-api-handler.js +344 -0
- package/{cli/dist → dist}/core/crawler/selector-generator.d.ts +9 -0
- package/{cli/dist → dist}/core/crawler/selector-generator.js +99 -23
- package/dist/core/crawler/site-profiler.d.ts +89 -0
- package/dist/core/crawler/site-profiler.js +290 -0
- package/dist/core/crawler/sourcemaps-handler.d.ts +144 -0
- package/dist/core/crawler/sourcemaps-handler.js +420 -0
- package/dist/core/crawler/stacked-modals-handler.d.ts +118 -0
- package/dist/core/crawler/stacked-modals-handler.js +429 -0
- package/dist/core/crawler/trusted-types-handler.d.ts +149 -0
- package/dist/core/crawler/trusted-types-handler.js +413 -0
- package/{cli/dist → dist}/core/crawler/types.d.ts +68 -2
- package/dist/core/crawler/wait-strategies.d.ts +108 -0
- package/dist/core/crawler/wait-strategies.js +399 -0
- package/dist/core/fixtures/factories.d.ts +180 -0
- package/dist/core/fixtures/factories.js +279 -0
- package/dist/core/fixtures/index.d.ts +6 -0
- package/dist/core/fixtures/index.js +6 -0
- package/{cli/dist → dist}/core/generation/crawler-pack-generator.d.ts +13 -3
- package/dist/core/generation/crawler-pack-generator.js +232 -0
- package/{cli/dist → dist}/core/generation/index.d.ts +2 -0
- package/{cli/dist → dist}/core/generation/index.js +2 -0
- package/{cli/dist → dist}/core/index.d.ts +2 -0
- package/{cli/dist → dist}/core/index.js +4 -0
- package/dist/core/network/index.d.ts +7 -0
- package/dist/core/network/index.js +7 -0
- package/dist/core/network/network-manager.d.ts +237 -0
- package/dist/core/network/network-manager.js +343 -0
- package/dist/core/network/network-simulator.d.ts +158 -0
- package/dist/core/network/network-simulator.js +261 -0
- package/{cli/dist → dist}/core/pack/validator.js +2 -2
- package/{cli/dist → dist}/core/pack-v2/migrator.d.ts +5 -0
- package/{cli/dist → dist}/core/pack-v2/migrator.js +81 -6
- package/{cli/dist → dist}/core/pack-v2/validator.js +4 -3
- package/{cli/dist → dist}/core/pom/base-page.js +1 -1
- package/{cli/dist → dist}/core/pom/loader.js +1 -1
- package/dist/core/reporting/index.d.ts +9 -0
- package/dist/core/reporting/index.js +10 -0
- package/dist/core/reporting/junit-reporter.d.ts +114 -0
- package/dist/core/reporting/junit-reporter.js +306 -0
- package/{cli/dist → dist}/core/runner/e2e-helpers.d.ts +1 -1
- package/{cli/dist → dist}/core/runner/e2e-helpers.js +2 -2
- package/{cli/dist → dist}/core/runner/phase3-runner.d.ts +3 -0
- package/{cli/dist → dist}/core/runner/phase3-runner.js +45 -14
- package/dist/core/sharding/test-sharding.d.ts +137 -0
- package/dist/core/sharding/test-sharding.js +233 -0
- package/dist/core/storage/cookie-manager.d.ts +160 -0
- package/dist/core/storage/cookie-manager.js +268 -0
- package/dist/core/storage/index.d.ts +7 -0
- package/dist/core/storage/index.js +7 -0
- package/dist/core/storage/storage-helpers.d.ts +138 -0
- package/dist/core/storage/storage-helpers.js +315 -0
- package/dist/core/test-helpers/index.d.ts +6 -0
- package/dist/core/test-helpers/index.js +6 -0
- package/dist/core/test-helpers/state-reset.d.ts +119 -0
- package/dist/core/test-helpers/state-reset.js +234 -0
- package/{cli/dist → dist}/core/types/pack-v1.d.ts +15 -2
- package/{cli/dist → dist}/core/types/pack-v2.d.ts +1 -1
- package/dist/core/upload/chunked-uploader.d.ts +150 -0
- package/dist/core/upload/chunked-uploader.js +289 -0
- package/dist/core/upload/index.d.ts +11 -0
- package/dist/core/upload/index.js +8 -0
- package/dist/core/upload/mime-validator.d.ts +119 -0
- package/dist/core/upload/mime-validator.js +373 -0
- package/dist/core/upload/presigned-uploader.d.ts +118 -0
- package/dist/core/upload/presigned-uploader.js +274 -0
- package/dist/core/utils/device-emulation.d.ts +194 -0
- package/dist/core/utils/device-emulation.js +380 -0
- package/dist/core/utils/index.d.ts +8 -0
- package/dist/core/utils/index.js +8 -0
- package/dist/core/utils/retry.d.ts +145 -0
- package/dist/core/utils/retry.js +242 -0
- package/dist/core/utils/smart-wait.d.ts +133 -0
- package/dist/core/utils/smart-wait.js +417 -0
- package/dist/core/visual/index.d.ts +7 -0
- package/dist/core/visual/index.js +7 -0
- package/dist/core/visual/pixel-diff.d.ts +87 -0
- package/dist/core/visual/pixel-diff.js +213 -0
- package/dist/core/visual/screenshot-helper.d.ts +130 -0
- package/dist/core/visual/screenshot-helper.js +223 -0
- package/{cli/dist → dist}/utils/config.d.ts +1 -1
- package/examples/README.md +160 -0
- package/examples/accessibility.yml +48 -0
- package/examples/api-basic.yml +27 -0
- package/examples/complete.yml +146 -0
- package/examples/crawler.yml +38 -0
- package/examples/fullstack.yml +78 -0
- package/examples/security.yml +58 -0
- package/examples/ui-advanced.yml +49 -0
- package/examples/ui-basic.yml +24 -0
- package/package.json +33 -67
- package/CHANGELOG.md +0 -262
- package/CONTRIBUTING.md +0 -273
- package/QUICK_START.md +0 -191
- package/cli/CHANGELOG.md +0 -84
- package/cli/LICENSE +0 -24
- package/cli/README.md +0 -222
- package/cli/dist/core/adapters/playwright-ui.js +0 -864
- package/cli/dist/core/auth/oauth2-provider.js +0 -114
- package/cli/dist/core/coverage/analyzer.d.ts +0 -101
- package/cli/dist/core/coverage/analyzer.js +0 -415
- package/cli/dist/core/coverage/collector.d.ts +0 -74
- package/cli/dist/core/coverage/collector.js +0 -459
- package/cli/dist/core/coverage/config.d.ts +0 -37
- package/cli/dist/core/coverage/config.js +0 -156
- package/cli/dist/core/coverage/index.d.ts +0 -11
- package/cli/dist/core/coverage/index.js +0 -15
- package/cli/dist/core/coverage/types.d.ts +0 -267
- package/cli/dist/core/coverage/types.js +0 -6
- package/cli/dist/core/coverage/vault.d.ts +0 -95
- package/cli/dist/core/coverage/vault.js +0 -405
- package/cli/dist/core/crawler/index.d.ts +0 -57
- package/cli/dist/core/fixtures/index.d.ts +0 -8
- package/cli/dist/core/fixtures/index.js +0 -8
- package/cli/dist/core/generation/crawler-pack-generator.js +0 -231
- package/cli/dist/core/reporting/index.d.ts +0 -6
- package/cli/dist/core/reporting/index.js +0 -6
- package/cli/dist/core/visual/index.d.ts +0 -6
- package/cli/dist/core/visual/index.js +0 -6
- package/cli/package.json +0 -76
- package/core/LICENSE +0 -24
- package/core/README.md +0 -64
- package/core/package.json +0 -81
- package/core/schemas/pack.schema.json +0 -236
- /package/{cli/bin → bin}/qa360.js +0 -0
- /package/{cli/dist → dist}/cli-minimal.d.ts +0 -0
- /package/{cli/dist → dist}/cli-minimal.js +0 -0
- /package/{cli/dist → dist}/commands/ai.d.ts +0 -0
- /package/{cli/dist → dist}/commands/ask.d.ts +0 -0
- /package/{cli/dist → dist}/commands/ask.js +0 -0
- /package/{cli/dist → dist}/commands/coverage.d.ts +0 -0
- /package/{cli/dist → dist}/commands/doctor.d.ts +0 -0
- /package/{cli/dist → dist}/commands/examples.d.ts +0 -0
- /package/{cli/dist → dist}/commands/examples.js +0 -0
- /package/{cli/dist → dist}/commands/explain.d.ts +0 -0
- /package/{cli/dist → dist}/commands/flakiness.d.ts +0 -0
- /package/{cli/dist → dist}/commands/generate.d.ts +0 -0
- /package/{cli/dist → dist}/commands/history.d.ts +0 -0
- /package/{cli/dist → dist}/commands/init.d.ts +0 -0
- /package/{cli/dist → dist}/commands/init.js +0 -0
- /package/{cli/dist → dist}/commands/monitor.d.ts +0 -0
- /package/{cli/dist → dist}/commands/ollama.d.ts +0 -0
- /package/{cli/dist → dist}/commands/pack.d.ts +0 -0
- /package/{cli/dist → dist}/commands/regression.d.ts +0 -0
- /package/{cli/dist → dist}/commands/repair.d.ts +0 -0
- /package/{cli/dist → dist}/commands/report.d.ts +0 -0
- /package/{cli/dist → dist}/commands/report.js +0 -0
- /package/{cli/dist → dist}/commands/retry.d.ts +0 -0
- /package/{cli/dist → dist}/commands/scan.d.ts +0 -0
- /package/{cli/dist → dist}/commands/scan.js +0 -0
- /package/{cli/dist → dist}/commands/secrets.d.ts +0 -0
- /package/{cli/dist → dist}/commands/serve.d.ts +0 -0
- /package/{cli/dist → dist}/commands/slo.d.ts +0 -0
- /package/{cli/dist → dist}/commands/verify.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/gitleaks-secrets.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/gitleaks-secrets.js +0 -0
- /package/{cli/dist → dist}/core/adapters/jest-adapter.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/jest-adapter.js +0 -0
- /package/{cli/dist → dist}/core/adapters/k6-perf.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/k6-perf.js +0 -0
- /package/{cli/dist → dist}/core/adapters/osv-deps.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/osv-deps.js +0 -0
- /package/{cli/dist → dist}/core/adapters/playwright-native-adapter.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/playwright-native-adapter.js +0 -0
- /package/{cli/dist → dist}/core/adapters/pytest-adapter.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/pytest-adapter.js +0 -0
- /package/{cli/dist → dist}/core/adapters/semgrep-sast.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/semgrep-sast.js +0 -0
- /package/{cli/dist → dist}/core/adapters/unit-test-types.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/unit-test-types.js +0 -0
- /package/{cli/dist → dist}/core/adapters/vitest-adapter.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/vitest-adapter.js +0 -0
- /package/{cli/dist → dist}/core/adapters/zap-dast.d.ts +0 -0
- /package/{cli/dist → dist}/core/adapters/zap-dast.js +0 -0
- /package/{cli/dist → dist}/core/ai/anthropic-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/anthropic-provider.js +0 -0
- /package/{cli/dist → dist}/core/ai/deepseek-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/deepseek-provider.js +0 -0
- /package/{cli/dist → dist}/core/ai/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/index.js +0 -0
- /package/{cli/dist → dist}/core/ai/llm-client.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/llm-client.js +0 -0
- /package/{cli/dist → dist}/core/ai/mock-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/mock-provider.js +0 -0
- /package/{cli/dist → dist}/core/ai/ollama-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/openai-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/openai-provider.js +0 -0
- /package/{cli/dist → dist}/core/ai/provider-factory.d.ts +0 -0
- /package/{cli/dist → dist}/core/ai/provider-factory.js +0 -0
- /package/{cli/dist → dist}/core/artifacts/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/artifacts/index.js +0 -0
- /package/{cli/dist → dist}/core/artifacts/ui-artifacts.d.ts +0 -0
- /package/{cli/dist → dist}/core/assertions/engine.d.ts +0 -0
- /package/{cli/dist → dist}/core/assertions/engine.js +0 -0
- /package/{cli/dist → dist}/core/assertions/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/assertions/index.js +0 -0
- /package/{cli/dist → dist}/core/assertions/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/assertions/types.js +0 -0
- /package/{cli/dist → dist}/core/auth/api-key-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/api-key-provider.js +0 -0
- /package/{cli/dist → dist}/core/auth/aws-iam-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/aws-iam-provider.js +0 -0
- /package/{cli/dist → dist}/core/auth/azure-ad-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/azure-ad-provider.js +0 -0
- /package/{cli/dist → dist}/core/auth/gcp-adc-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/gcp-adc-provider.js +0 -0
- /package/{cli/dist → dist}/core/auth/jwt-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/jwt-provider.js +0 -0
- /package/{cli/dist → dist}/core/auth/manager.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/manager.js +0 -0
- /package/{cli/dist → dist}/core/auth/totp-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/totp-provider.js +0 -0
- /package/{cli/dist → dist}/core/auth/ui-login-provider.d.ts +0 -0
- /package/{cli/dist → dist}/core/auth/ui-login-provider.js +0 -0
- /package/{cli/dist → dist}/core/cache/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/cache/index.js +0 -0
- /package/{cli/dist → dist}/core/cache/lru-cache.d.ts +0 -0
- /package/{cli/dist → dist}/core/cache/lru-cache.js +0 -0
- /package/{cli/dist/core → dist}/core/coverage/analyzer.d.ts +0 -0
- /package/{cli/dist/core → dist}/core/coverage/analyzer.js +0 -0
- /package/{cli/dist/core → dist}/core/coverage/collector.d.ts +0 -0
- /package/{cli/dist/core → dist}/core/coverage/collector.js +0 -0
- /package/{cli/dist/core → dist}/core/coverage/config.d.ts +0 -0
- /package/{cli/dist/core → dist}/core/coverage/config.js +0 -0
- /package/{cli/dist/core → dist}/core/coverage/index.d.ts +0 -0
- /package/{cli/dist/core → dist}/core/coverage/index.js +0 -0
- /package/{cli/dist/core → dist}/core/coverage/types.d.ts +0 -0
- /package/{cli/dist/core → dist}/core/coverage/types.js +0 -0
- /package/{cli/dist/core → dist}/core/coverage/vault.d.ts +0 -0
- /package/{cli/dist/core → dist}/core/coverage/vault.js +0 -0
- /package/{cli/dist → dist}/core/crawler/journey-generator.d.ts +0 -0
- /package/{cli/dist → dist}/core/crawler/types.js +0 -0
- /package/{cli/dist → dist}/core/dashboard/assets.d.ts +0 -0
- /package/{cli/dist → dist}/core/dashboard/assets.js +0 -0
- /package/{cli/dist → dist}/core/dashboard/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/dashboard/index.js +0 -0
- /package/{cli/dist → dist}/core/dashboard/server.d.ts +0 -0
- /package/{cli/dist → dist}/core/dashboard/server.js +0 -0
- /package/{cli/dist → dist}/core/dashboard/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/dashboard/types.js +0 -0
- /package/{cli/dist → dist}/core/discoverer/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/discoverer/index.js +0 -0
- /package/{cli/dist → dist}/core/fixtures/loader.d.ts +0 -0
- /package/{cli/dist → dist}/core/fixtures/loader.js +0 -0
- /package/{cli/dist → dist}/core/fixtures/resolver.d.ts +0 -0
- /package/{cli/dist → dist}/core/fixtures/resolver.js +0 -0
- /package/{cli/dist → dist}/core/fixtures/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/fixtures/types.js +0 -0
- /package/{cli/dist → dist}/core/flakiness/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/flakiness/index.js +0 -0
- /package/{cli/dist → dist}/core/generation/code-formatter.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/code-formatter.js +0 -0
- /package/{cli/dist → dist}/core/generation/code-generator.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/code-generator.js +0 -0
- /package/{cli/dist → dist}/core/generation/generator.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/generator.js +0 -0
- /package/{cli/dist → dist}/core/generation/pack-generator.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/pack-generator.js +0 -0
- /package/{cli/dist → dist}/core/generation/prompt-builder.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/prompt-builder.js +0 -0
- /package/{cli/dist → dist}/core/generation/source-analyzer.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/source-analyzer.js +0 -0
- /package/{cli/dist → dist}/core/generation/test-optimizer.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/test-optimizer.js +0 -0
- /package/{cli/dist → dist}/core/generation/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/generation/types.js +0 -0
- /package/{cli/dist → dist}/core/hooks/compose.d.ts +0 -0
- /package/{cli/dist → dist}/core/hooks/compose.js +0 -0
- /package/{cli/dist → dist}/core/hooks/runner.d.ts +0 -0
- /package/{cli/dist → dist}/core/hooks/runner.js +0 -0
- /package/{cli/dist → dist}/core/pack/migrator.d.ts +0 -0
- /package/{cli/dist → dist}/core/pack/migrator.js +0 -0
- /package/{cli/dist → dist}/core/pack/validator.d.ts +0 -0
- /package/{cli/dist → dist}/core/pack-v2/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/pack-v2/index.js +0 -0
- /package/{cli/dist → dist}/core/pack-v2/loader.d.ts +0 -0
- /package/{cli/dist → dist}/core/pack-v2/loader.js +0 -0
- /package/{cli/dist → dist}/core/pack-v2/validator.d.ts +0 -0
- /package/{cli/dist → dist}/core/parallel/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/parallel/index.js +0 -0
- /package/{cli/dist → dist}/core/parallel/parallel-runner.d.ts +0 -0
- /package/{cli/dist → dist}/core/parallel/parallel-runner.js +0 -0
- /package/{cli/dist → dist}/core/pom/base-page.d.ts +0 -0
- /package/{cli/dist → dist}/core/pom/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/pom/index.js +0 -0
- /package/{cli/dist → dist}/core/pom/loader.d.ts +0 -0
- /package/{cli/dist → dist}/core/pom/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/pom/types.js +0 -0
- /package/{cli/dist → dist}/core/proof/bundle.d.ts +0 -0
- /package/{cli/dist → dist}/core/proof/bundle.js +0 -0
- /package/{cli/dist → dist}/core/proof/canonicalize.d.ts +0 -0
- /package/{cli/dist → dist}/core/proof/canonicalize.js +0 -0
- /package/{cli/dist → dist}/core/proof/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/proof/index.js +0 -0
- /package/{cli/dist → dist}/core/proof/schema.d.ts +0 -0
- /package/{cli/dist → dist}/core/proof/schema.js +0 -0
- /package/{cli/dist → dist}/core/proof/signer.d.ts +0 -0
- /package/{cli/dist → dist}/core/proof/signer.js +0 -0
- /package/{cli/dist → dist}/core/proof/verifier.d.ts +0 -0
- /package/{cli/dist → dist}/core/proof/verifier.js +0 -0
- /package/{cli/dist → dist}/core/regression/detector.d.ts +0 -0
- /package/{cli/dist → dist}/core/regression/detector.js +0 -0
- /package/{cli/dist → dist}/core/regression/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/regression/index.js +0 -0
- /package/{cli/dist → dist}/core/regression/trend-analyzer.d.ts +0 -0
- /package/{cli/dist → dist}/core/regression/trend-analyzer.js +0 -0
- /package/{cli/dist → dist}/core/regression/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/regression/types.js +0 -0
- /package/{cli/dist → dist}/core/regression/vault.d.ts +0 -0
- /package/{cli/dist → dist}/core/regression/vault.js +0 -0
- /package/{cli/dist → dist}/core/repair/engine/fixer.d.ts +0 -0
- /package/{cli/dist → dist}/core/repair/engine/fixer.js +0 -0
- /package/{cli/dist → dist}/core/repair/engine/suggestion-engine.d.ts +0 -0
- /package/{cli/dist → dist}/core/repair/engine/suggestion-engine.js +0 -0
- /package/{cli/dist → dist}/core/repair/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/repair/index.js +0 -0
- /package/{cli/dist → dist}/core/repair/repairer.d.ts +0 -0
- /package/{cli/dist → dist}/core/repair/repairer.js +0 -0
- /package/{cli/dist → dist}/core/repair/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/repair/types.js +0 -0
- /package/{cli/dist → dist}/core/repair/utils/error-analyzer.d.ts +0 -0
- /package/{cli/dist → dist}/core/repair/utils/error-analyzer.js +0 -0
- /package/{cli/dist → dist}/core/reporting/html-reporter.d.ts +0 -0
- /package/{cli/dist → dist}/core/reporting/html-reporter.js +0 -0
- /package/{cli/dist → dist}/core/retry/flakiness-integration.d.ts +0 -0
- /package/{cli/dist → dist}/core/retry/flakiness-integration.js +0 -0
- /package/{cli/dist → dist}/core/retry/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/retry/index.js +0 -0
- /package/{cli/dist → dist}/core/retry/retry-engine.d.ts +0 -0
- /package/{cli/dist → dist}/core/retry/retry-engine.js +0 -0
- /package/{cli/dist → dist}/core/retry/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/retry/types.js +0 -0
- /package/{cli/dist → dist}/core/retry/vault.d.ts +0 -0
- /package/{cli/dist → dist}/core/retry/vault.js +0 -0
- /package/{cli/dist → dist}/core/schemas/pack.schema.json +0 -0
- /package/{cli/dist → dist}/core/secrets/crypto.d.ts +0 -0
- /package/{cli/dist → dist}/core/secrets/crypto.js +0 -0
- /package/{cli/dist → dist}/core/secrets/manager.d.ts +0 -0
- /package/{cli/dist → dist}/core/secrets/manager.js +0 -0
- /package/{cli/dist → dist}/core/security/redaction-patterns-extended.d.ts +0 -0
- /package/{cli/dist → dist}/core/security/redaction-patterns-extended.js +0 -0
- /package/{cli/dist → dist}/core/security/redactor.d.ts +0 -0
- /package/{cli/dist → dist}/core/security/redactor.js +0 -0
- /package/{cli/dist → dist}/core/self-healing/assertion-healer.d.ts +0 -0
- /package/{cli/dist → dist}/core/self-healing/assertion-healer.js +0 -0
- /package/{cli/dist → dist}/core/self-healing/engine.d.ts +0 -0
- /package/{cli/dist → dist}/core/self-healing/engine.js +0 -0
- /package/{cli/dist → dist}/core/self-healing/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/self-healing/index.js +0 -0
- /package/{cli/dist → dist}/core/self-healing/selector-healer.d.ts +0 -0
- /package/{cli/dist → dist}/core/self-healing/selector-healer.js +0 -0
- /package/{cli/dist → dist}/core/self-healing/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/self-healing/types.js +0 -0
- /package/{cli/dist → dist}/core/serve/diagnostics-collector.d.ts +0 -0
- /package/{cli/dist → dist}/core/serve/diagnostics-collector.js +0 -0
- /package/{cli/dist → dist}/core/serve/health-checker.d.ts +0 -0
- /package/{cli/dist → dist}/core/serve/health-checker.js +0 -0
- /package/{cli/dist → dist}/core/serve/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/serve/index.js +0 -0
- /package/{cli/dist → dist}/core/serve/metrics-collector.d.ts +0 -0
- /package/{cli/dist → dist}/core/serve/metrics-collector.js +0 -0
- /package/{cli/dist → dist}/core/serve/process-manager.d.ts +0 -0
- /package/{cli/dist → dist}/core/serve/process-manager.js +0 -0
- /package/{cli/dist → dist}/core/serve/server.d.ts +0 -0
- /package/{cli/dist → dist}/core/serve/server.js +0 -0
- /package/{cli/dist → dist}/core/slo/config.d.ts +0 -0
- /package/{cli/dist → dist}/core/slo/config.js +0 -0
- /package/{cli/dist → dist}/core/slo/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/slo/index.js +0 -0
- /package/{cli/dist → dist}/core/slo/sli-calculator.d.ts +0 -0
- /package/{cli/dist → dist}/core/slo/sli-calculator.js +0 -0
- /package/{cli/dist → dist}/core/slo/slo-tracker.d.ts +0 -0
- /package/{cli/dist → dist}/core/slo/slo-tracker.js +0 -0
- /package/{cli/dist → dist}/core/slo/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/slo/types.js +0 -0
- /package/{cli/dist → dist}/core/slo/vault.d.ts +0 -0
- /package/{cli/dist → dist}/core/slo/vault.js +0 -0
- /package/{cli/dist → dist}/core/tui/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/tui/index.js +0 -0
- /package/{cli/dist → dist}/core/tui/monitor.d.ts +0 -0
- /package/{cli/dist → dist}/core/tui/monitor.js +0 -0
- /package/{cli/dist → dist}/core/tui/renderer.d.ts +0 -0
- /package/{cli/dist → dist}/core/tui/renderer.js +0 -0
- /package/{cli/dist → dist}/core/tui/types.d.ts +0 -0
- /package/{cli/dist → dist}/core/tui/types.js +0 -0
- /package/{cli/dist → dist}/core/types/pack-v1.js +0 -0
- /package/{cli/dist → dist}/core/types/pack-v2.js +0 -0
- /package/{cli/dist → dist}/core/types/trust-score.d.ts +0 -0
- /package/{cli/dist → dist}/core/types/trust-score.js +0 -0
- /package/{cli/dist → dist}/core/vault/cas.d.ts +0 -0
- /package/{cli/dist → dist}/core/vault/cas.js +0 -0
- /package/{cli/dist → dist}/core/vault/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/vault/index.js +0 -0
- /package/{cli/dist → dist}/core/visual/visual-regression.d.ts +0 -0
- /package/{cli/dist → dist}/core/visual/visual-regression.js +0 -0
- /package/{cli/dist → dist}/core/watch/index.d.ts +0 -0
- /package/{cli/dist → dist}/core/watch/index.js +0 -0
- /package/{cli/dist → dist}/core/watch/watch-mode.d.ts +0 -0
- /package/{cli/dist → dist}/core/watch/watch-mode.js +0 -0
- /package/{cli/dist → dist}/generators/index.d.ts +0 -0
- /package/{cli/dist → dist}/generators/index.js +0 -0
- /package/{cli/dist → dist}/generators/json-reporter.d.ts +0 -0
- /package/{cli/dist → dist}/generators/json-reporter.js +0 -0
- /package/{cli/dist → dist}/generators/test-generator.d.ts +0 -0
- /package/{cli/dist → dist}/generators/test-generator.js +0 -0
- /package/{cli/dist → dist}/index.d.ts +0 -0
- /package/{cli/dist → dist}/index.js +0 -0
- /package/{cli/dist → dist}/scanners/dom-scanner.d.ts +0 -0
- /package/{cli/dist → dist}/scanners/dom-scanner.js +0 -0
- /package/{cli/dist → dist}/scanners/index.d.ts +0 -0
- /package/{cli/dist → dist}/scanners/index.js +0 -0
- /package/{cli/dist → dist}/schemas/pack.schema.json +0 -0
- /package/{cli/dist → dist}/types/scan.d.ts +0 -0
- /package/{cli/dist → dist}/types/scan.js +0 -0
- /package/{cli/dist → dist}/utils/config.js +0 -0
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QA360 Crawler Pack Generator
|
|
3
|
-
*
|
|
4
|
-
* Crawls a website and generates a complete pack.yml with E2E tests
|
|
5
|
-
*/
|
|
6
|
-
import { writeFileSync, mkdirSync, existsSync } from 'fs';
|
|
7
|
-
import { resolve, dirname } from 'path';
|
|
8
|
-
import { crawlWebsite } from '../crawler/index.js';
|
|
9
|
-
/**
|
|
10
|
-
* Generate pack.yml from crawled website
|
|
11
|
-
*/
|
|
12
|
-
export async function generatePackFromCrawl(options) {
|
|
13
|
-
try {
|
|
14
|
-
console.log(`🕷️ Crawling ${options.baseUrl}...`);
|
|
15
|
-
// Crawl the website
|
|
16
|
-
const crawlResult = await crawlWebsite({
|
|
17
|
-
baseUrl: options.baseUrl,
|
|
18
|
-
maxDepth: options.crawl?.maxDepth || 2,
|
|
19
|
-
maxPages: options.crawl?.maxPages || 20,
|
|
20
|
-
headless: options.crawl?.headless ?? true,
|
|
21
|
-
screenshots: false,
|
|
22
|
-
timeout: 30000,
|
|
23
|
-
excludePatterns: options.crawl?.excludePatterns,
|
|
24
|
-
});
|
|
25
|
-
if (!crawlResult.success) {
|
|
26
|
-
return {
|
|
27
|
-
success: false,
|
|
28
|
-
result: crawlResult,
|
|
29
|
-
error: 'Crawling failed',
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
console.log(` ✅ Discovered ${crawlResult.siteMap.metadata.pagesCrawled} pages`);
|
|
33
|
-
console.log(` ✅ Found ${crawlResult.forms.length} forms`);
|
|
34
|
-
console.log(` ✅ Generated ${crawlResult.userJourneys.length} user journeys`);
|
|
35
|
-
// Generate pack.yml
|
|
36
|
-
const pack = generatePackFromCrawlResult(crawlResult, options);
|
|
37
|
-
// Write pack file
|
|
38
|
-
const packPath = options.output || resolve(process.cwd(), 'pack.yml');
|
|
39
|
-
const packDir = dirname(packPath);
|
|
40
|
-
if (!existsSync(packDir)) {
|
|
41
|
-
mkdirSync(packDir, { recursive: true });
|
|
42
|
-
}
|
|
43
|
-
writeFileSync(packPath, pack, 'utf-8');
|
|
44
|
-
console.log(`\n📦 Generated pack: ${packPath}`);
|
|
45
|
-
return {
|
|
46
|
-
success: true,
|
|
47
|
-
packPath,
|
|
48
|
-
result: crawlResult,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
return {
|
|
53
|
-
success: false,
|
|
54
|
-
error: error instanceof Error ? error.message : String(error),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Generate pack.yml YAML from crawl result
|
|
60
|
-
*/
|
|
61
|
-
function generatePackFromCrawlResult(crawlResult, options) {
|
|
62
|
-
const { siteMap, userJourneys, forms } = crawlResult;
|
|
63
|
-
const packName = options.packName || `${new URL(options.baseUrl).hostname.replace(/\./g, '-')}-tests`;
|
|
64
|
-
// Build gates array
|
|
65
|
-
const gates = ['ui'];
|
|
66
|
-
if (options.includeA11y)
|
|
67
|
-
gates.push('a11y');
|
|
68
|
-
// Build UI tests from user journeys
|
|
69
|
-
const uiTests = userJourneys.map((journey, index) => ({
|
|
70
|
-
name: options.journeyNames?.[journey.name] || journey.name,
|
|
71
|
-
description: journey.description,
|
|
72
|
-
path: new URL(journey.entryPoint).pathname,
|
|
73
|
-
steps: journey.steps.map((step, stepIndex) => journeyStepToUiTestStep(step, stepIndex)),
|
|
74
|
-
}));
|
|
75
|
-
// Also add form-based tests
|
|
76
|
-
for (const form of forms) {
|
|
77
|
-
if (form.purpose !== 'login' && form.purpose !== 'signup') {
|
|
78
|
-
uiTests.push({
|
|
79
|
-
name: `${form.purpose.charAt(0).toUpperCase() + form.purpose.slice(1)} Form Test`,
|
|
80
|
-
description: `Test the ${form.purpose} form`,
|
|
81
|
-
path: siteMap.pages.find(p => p.elements.forms.includes(form))?.path || '/',
|
|
82
|
-
steps: generateFormTestSteps(form),
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
// Generate YAML
|
|
87
|
-
let yaml = `# QA360 Pack - Generated by crawler
|
|
88
|
-
# Source: ${options.baseUrl}
|
|
89
|
-
# Generated: ${new Date().toISOString()}
|
|
90
|
-
|
|
91
|
-
version: 1
|
|
92
|
-
name: "${packName}"
|
|
93
|
-
description: "Auto-generated E2E tests for ${new URL(options.baseUrl).hostname}"
|
|
94
|
-
|
|
95
|
-
gates:
|
|
96
|
-
${gates.map(g => ` - ${g}`).join('\n')}
|
|
97
|
-
|
|
98
|
-
targets:
|
|
99
|
-
web:
|
|
100
|
-
baseUrl: "${options.baseUrl}"
|
|
101
|
-
headless: true
|
|
102
|
-
screenshot: "only-on-fail"
|
|
103
|
-
video: "retain-on-fail"
|
|
104
|
-
|
|
105
|
-
# Pages discovered by crawler
|
|
106
|
-
pages:
|
|
107
|
-
${siteMap.pages.map(p => ` - "${p.path}"`).join('\n')}
|
|
108
|
-
|
|
109
|
-
# E2E UI tests generated from discovered user journeys
|
|
110
|
-
uiTests:
|
|
111
|
-
${uiTests.map(test => generateUiTestYaml(test)).join('\n')}
|
|
112
|
-
`;
|
|
113
|
-
if (siteMap.metadata.pagesCrawled > 0) {
|
|
114
|
-
yaml += `
|
|
115
|
-
budgets:
|
|
116
|
-
a11y_min: 80
|
|
117
|
-
perf_p95_ms: ${Math.round(siteMap.metadata.avgLoadTime * 1.5)}
|
|
118
|
-
`;
|
|
119
|
-
}
|
|
120
|
-
return yaml;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Convert journey step to UI test step
|
|
124
|
-
*/
|
|
125
|
-
function journeyStepToUiTestStep(step, index) {
|
|
126
|
-
const uiStep = {
|
|
127
|
-
order: index + 1,
|
|
128
|
-
action: step.action,
|
|
129
|
-
description: step.description,
|
|
130
|
-
selector: step.selector,
|
|
131
|
-
value: step.value,
|
|
132
|
-
wait: 500,
|
|
133
|
-
};
|
|
134
|
-
if (step.expected) {
|
|
135
|
-
uiStep.expected = {};
|
|
136
|
-
if (step.expected.url)
|
|
137
|
-
uiStep.expected.url = step.expected.url;
|
|
138
|
-
if (step.expected.visible)
|
|
139
|
-
uiStep.expected.visible = step.expected.visible;
|
|
140
|
-
}
|
|
141
|
-
return uiStep;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Generate test steps for a form
|
|
145
|
-
*/
|
|
146
|
-
function generateFormTestSteps(form) {
|
|
147
|
-
const steps = [];
|
|
148
|
-
// Navigate to form
|
|
149
|
-
steps.push({
|
|
150
|
-
order: 1,
|
|
151
|
-
action: 'navigate',
|
|
152
|
-
description: 'Navigate to form',
|
|
153
|
-
value: form.selector,
|
|
154
|
-
});
|
|
155
|
-
// Fill form fields
|
|
156
|
-
for (const field of form.fields) {
|
|
157
|
-
if (field.required) {
|
|
158
|
-
const step = {
|
|
159
|
-
order: steps.length + 1,
|
|
160
|
-
action: field.inputType === 'select-one' ? 'select' : 'fill',
|
|
161
|
-
description: `Fill ${field.name || field.inputType}`,
|
|
162
|
-
selector: field.selector,
|
|
163
|
-
};
|
|
164
|
-
if (field.inputType === 'select-one' && field.options && field.options.length > 0) {
|
|
165
|
-
step.value = field.options[0];
|
|
166
|
-
}
|
|
167
|
-
else if (field.inputType === 'email') {
|
|
168
|
-
step.value = 'test@example.com';
|
|
169
|
-
}
|
|
170
|
-
else if (field.inputType === 'tel') {
|
|
171
|
-
step.value = '+1234567890';
|
|
172
|
-
}
|
|
173
|
-
else if (field.inputType === 'checkbox') {
|
|
174
|
-
step.action = 'check';
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
step.value = 'Test value';
|
|
178
|
-
}
|
|
179
|
-
steps.push(step);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
// Submit form
|
|
183
|
-
if (form.submitButton) {
|
|
184
|
-
steps.push({
|
|
185
|
-
order: steps.length + 1,
|
|
186
|
-
action: 'click',
|
|
187
|
-
description: 'Submit form',
|
|
188
|
-
selector: form.submitButton.selector,
|
|
189
|
-
wait: 1000,
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
return steps;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Generate YAML for a UI test definition
|
|
196
|
-
*/
|
|
197
|
-
function generateUiTestYaml(test) {
|
|
198
|
-
const steps = test.steps.map(step => {
|
|
199
|
-
let yaml = ` - action: ${step.action}`;
|
|
200
|
-
if (step.description)
|
|
201
|
-
yaml += `\n description: "${step.description}"`;
|
|
202
|
-
if (step.selector)
|
|
203
|
-
yaml += `\n selector: "${step.selector}"`;
|
|
204
|
-
if (step.value)
|
|
205
|
-
yaml += `\n value: "${step.value}"`;
|
|
206
|
-
if (step.expected)
|
|
207
|
-
yaml += `\n expected: ${JSON.stringify(step.expected)}`;
|
|
208
|
-
if (step.wait)
|
|
209
|
-
yaml += `\n wait: ${step.wait}`;
|
|
210
|
-
return yaml;
|
|
211
|
-
}).join('\n');
|
|
212
|
-
return ` - name: "${test.name}"
|
|
213
|
-
description: "${test.description || ''}"
|
|
214
|
-
path: "${test.path || '/'}"
|
|
215
|
-
steps:
|
|
216
|
-
${steps}`;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Quick crawl - generates pack without detailed analysis
|
|
220
|
-
*/
|
|
221
|
-
export async function quickCrawl(baseUrl, outputPath) {
|
|
222
|
-
return generatePackFromCrawl({
|
|
223
|
-
baseUrl,
|
|
224
|
-
output: outputPath,
|
|
225
|
-
crawl: {
|
|
226
|
-
maxDepth: 1,
|
|
227
|
-
maxPages: 10,
|
|
228
|
-
},
|
|
229
|
-
includeA11y: true,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QA360 Reporting Module
|
|
3
|
-
*
|
|
4
|
-
* Generates test reports in various formats (HTML, JSON, JUnit)
|
|
5
|
-
*/
|
|
6
|
-
export { HTMLReporter, generateHTMLReport, type ReportData, type TestReport, type StepReport, type ReportScreenshotArtifact as ScreenshotArtifact, type ReportVideoArtifact as VideoArtifact, type ReportTraceArtifact as TraceArtifact, } from './html-reporter.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QA360 Visual Regression Module
|
|
3
|
-
*
|
|
4
|
-
* Visual comparison testing for UI changes
|
|
5
|
-
*/
|
|
6
|
-
export { VisualRegressionTester, createVisualRegressionTester, runVisualRegressionTests, type VisualRegressionConfig, type VisualRegressionResult, type ScreenshotData, } from './visual-regression.js';
|
package/cli/package.json
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qa360",
|
|
3
|
-
"version": "2.2.15",
|
|
4
|
-
"description": "QA360 Proof CLI - Quality as Cryptographic Proof",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"bin": {
|
|
9
|
-
"qa360": "bin/qa360.js"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"bin",
|
|
14
|
-
"README.md",
|
|
15
|
-
"LICENSE",
|
|
16
|
-
"examples"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsc --project tsconfig.bundle.json",
|
|
20
|
-
"build:pkg": "tsc",
|
|
21
|
-
"build:bundle": "bash scripts/bundle-for-npm.sh",
|
|
22
|
-
"test": "vitest run",
|
|
23
|
-
"test:coverage": "vitest run --coverage",
|
|
24
|
-
"test:watch": "vitest",
|
|
25
|
-
"dev": "tsx watch src/index.ts",
|
|
26
|
-
"clean": "rimraf dist src/core",
|
|
27
|
-
"prepack": "node scripts/validate-package.js",
|
|
28
|
-
"prepublishOnly": "npm run build:bundle && sed -i.bak 's/\"qa360-core\": \"workspace:\\*\",//g' package.json && rm -f package.json.bak",
|
|
29
|
-
"postpublish": "git checkout package.json 2>/dev/null || true",
|
|
30
|
-
"publish:dry": "npm run build:bundle && sed -i.bak 's/\"qa360-core\": \"workspace:\\*\",//g' package.json && npm publish --dry-run; git checkout package.json",
|
|
31
|
-
"publish:real": "npm run build:bundle && npm publish --access public --provenance"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@playwright/test": "^1.49.0",
|
|
35
|
-
"adm-zip": "^0.5.16",
|
|
36
|
-
"ajv": "^8.17.1",
|
|
37
|
-
"ajv-draft-04": "^1.0.0",
|
|
38
|
-
"ajv-formats": "^2.1.1",
|
|
39
|
-
"chalk": "^4.1.2",
|
|
40
|
-
"cli-table3": "^0.6.5",
|
|
41
|
-
"commander": "^11.0.0",
|
|
42
|
-
"glob": "^10.4.5",
|
|
43
|
-
"inquirer": "^8.2.7",
|
|
44
|
-
"js-yaml": "^4.1.0",
|
|
45
|
-
"ollama": "^0.5.1",
|
|
46
|
-
"ora": "^5.4.1",
|
|
47
|
-
"playwright": "^1.57.0",
|
|
48
|
-
"qa360-core": "workspace:*",
|
|
49
|
-
"sqlite3": "^5.1.6",
|
|
50
|
-
"tweetnacl": "^1.0.3"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/adm-zip": "^0.5.7",
|
|
54
|
-
"@types/inquirer": "^9.0.9",
|
|
55
|
-
"@vitest/coverage-v8": "1.6.0",
|
|
56
|
-
"tsx": "^4.0.0",
|
|
57
|
-
"vitest": "1.6.0"
|
|
58
|
-
},
|
|
59
|
-
"keywords": [
|
|
60
|
-
"qa360",
|
|
61
|
-
"cli",
|
|
62
|
-
"testing",
|
|
63
|
-
"proof"
|
|
64
|
-
],
|
|
65
|
-
"author": "QA360 Core Team",
|
|
66
|
-
"license": "MIT",
|
|
67
|
-
"repository": {
|
|
68
|
-
"type": "git",
|
|
69
|
-
"url": "https://github.com/xyqotech/qa360.git",
|
|
70
|
-
"directory": "cli"
|
|
71
|
-
},
|
|
72
|
-
"homepage": "https://github.com/xyqotech/qa360",
|
|
73
|
-
"bugs": {
|
|
74
|
-
"url": "https://github.com/xyqotech/qa360/issues"
|
|
75
|
-
}
|
|
76
|
-
}
|
package/core/LICENSE
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Business Source License 1.1
|
|
2
|
-
|
|
3
|
-
Licensor: XyqoTech
|
|
4
|
-
Licensed Work: QA360 Cloud Preview
|
|
5
|
-
Change Date: 2027-10-01
|
|
6
|
-
Change License: MIT
|
|
7
|
-
|
|
8
|
-
Terms
|
|
9
|
-
|
|
10
|
-
The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use.
|
|
11
|
-
|
|
12
|
-
Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate.
|
|
13
|
-
|
|
14
|
-
If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
|
|
15
|
-
|
|
16
|
-
All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
|
|
17
|
-
|
|
18
|
-
You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
|
|
19
|
-
|
|
20
|
-
Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
|
|
21
|
-
|
|
22
|
-
This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License).
|
|
23
|
-
|
|
24
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
|
package/core/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# QA360 Core Engine
|
|
2
|
-
|
|
3
|
-
The heart of QA360 - handles proof generation, cryptographic signatures, and evidence vault.
|
|
4
|
-
|
|
5
|
-
## Modules
|
|
6
|
-
|
|
7
|
-
### Proof System
|
|
8
|
-
- **ProofGenerator** - Creates verifiable quality proofs
|
|
9
|
-
- **SignatureManager** - Ed25519 cryptographic signatures
|
|
10
|
-
- **TrustScoreCalculator** - Quantifies test confidence
|
|
11
|
-
|
|
12
|
-
### Evidence Vault
|
|
13
|
-
- **EvidenceVault** - SQLite WAL storage for test history
|
|
14
|
-
- **HistoryManager** - Track changes and trends over time
|
|
15
|
-
- **AuditTrail** - Immutable record of all operations
|
|
16
|
-
|
|
17
|
-
### Crypto & Security
|
|
18
|
-
- **KeyManager** - Secure key generation and storage
|
|
19
|
-
- **EncryptionService** - AES-256-GCM for sensitive data
|
|
20
|
-
- **IntegrityChecker** - Verify data hasn't been tampered
|
|
21
|
-
|
|
22
|
-
## Adapters
|
|
23
|
-
|
|
24
|
-
| Adapter | Description | Status |
|
|
25
|
-
|---------|-------------|--------|
|
|
26
|
-
| `playwright-api` | REST/GraphQL API testing | ✅ Production |
|
|
27
|
-
| `playwright-ui` | UI + Accessibility testing | ✅ Production |
|
|
28
|
-
| `k6-perf` | Load & performance testing | ✅ Production |
|
|
29
|
-
| `semgrep-sast` | Static security analysis | ✅ Production |
|
|
30
|
-
| `zap-dast` | Dynamic security scanning (Docker/local) | ✅ Production |
|
|
31
|
-
| `gitleaks-secrets` | Secret detection in code | ✅ Production |
|
|
32
|
-
| `osv-deps` | Dependency vulnerability scanning | ✅ Production |
|
|
33
|
-
|
|
34
|
-
## Phase3Runner
|
|
35
|
-
|
|
36
|
-
The orchestration engine for quality gates:
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
import { Phase3Runner } from 'qa360-core';
|
|
40
|
-
|
|
41
|
-
const runner = new Phase3Runner({
|
|
42
|
-
workingDir: process.cwd(),
|
|
43
|
-
pack: packConfig,
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
const result = await runner.run();
|
|
47
|
-
// Result includes: gates, trustScore, proofPath, duration
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Architecture Principles
|
|
51
|
-
|
|
52
|
-
- **Local-first**: No cloud dependencies required
|
|
53
|
-
- **Cryptographically verifiable**: All proofs are signed
|
|
54
|
-
- **Immutable audit trail**: Evidence cannot be altered
|
|
55
|
-
- **Performance optimized**: SQLite WAL for concurrent access
|
|
56
|
-
|
|
57
|
-
## Development
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
cd core/
|
|
61
|
-
npm install
|
|
62
|
-
npm run build
|
|
63
|
-
npm test
|
|
64
|
-
```
|
package/core/package.json
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qa360-core",
|
|
3
|
-
"version": "2.2.6",
|
|
4
|
-
"description": "QA360 Core Engine - Proof generation, signatures, and evidence vault",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./proof": {
|
|
14
|
-
"types": "./dist/proof/index.d.ts",
|
|
15
|
-
"import": "./dist/proof/index.js"
|
|
16
|
-
},
|
|
17
|
-
"./pack/validator": {
|
|
18
|
-
"types": "./dist/pack/validator.d.ts",
|
|
19
|
-
"import": "./dist/pack/validator.js"
|
|
20
|
-
},
|
|
21
|
-
"./pack/migrator": {
|
|
22
|
-
"types": "./dist/pack/migrator.d.ts",
|
|
23
|
-
"import": "./dist/pack/migrator.js"
|
|
24
|
-
},
|
|
25
|
-
"./types/pack-v1": {
|
|
26
|
-
"types": "./dist/types/pack-v1.d.ts",
|
|
27
|
-
"import": "./dist/types/pack-v1.js"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"dist",
|
|
32
|
-
"README.md",
|
|
33
|
-
"LICENSE"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "tsc -b",
|
|
37
|
-
"build:pkg": "tsc",
|
|
38
|
-
"test": "vitest run",
|
|
39
|
-
"test:coverage": "vitest run --coverage",
|
|
40
|
-
"test:watch": "vitest",
|
|
41
|
-
"test:schema": "node src/proof/__tests__/schema-validation-manual.mjs",
|
|
42
|
-
"clean": "rimraf dist"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"ajv": "^8.17.1",
|
|
46
|
-
"ajv-draft-04": "^1.0.0",
|
|
47
|
-
"ajv-formats": "^2.1.1",
|
|
48
|
-
"chalk": "^4.1.2",
|
|
49
|
-
"glob": "^10.4.5",
|
|
50
|
-
"js-yaml": "^4.1.0",
|
|
51
|
-
"ollama": "^0.5.1",
|
|
52
|
-
"sqlite3": "^5.1.6",
|
|
53
|
-
"tweetnacl": "^1.0.3"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@types/js-yaml": "^4.0.9",
|
|
57
|
-
"@types/node": "^20.0.0",
|
|
58
|
-
"@vitest/coverage-v8": "1.6.0",
|
|
59
|
-
"msw": "1",
|
|
60
|
-
"playwright": "^1.57.0",
|
|
61
|
-
"vitest": "1.6.0"
|
|
62
|
-
},
|
|
63
|
-
"keywords": [
|
|
64
|
-
"qa360",
|
|
65
|
-
"core",
|
|
66
|
-
"proof",
|
|
67
|
-
"signature",
|
|
68
|
-
"vault"
|
|
69
|
-
],
|
|
70
|
-
"author": "QA360 Core Team",
|
|
71
|
-
"license": "MIT",
|
|
72
|
-
"repository": {
|
|
73
|
-
"type": "git",
|
|
74
|
-
"url": "https://github.com/xyqotech/qa360.git",
|
|
75
|
-
"directory": "core"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://github.com/xyqotech/qa360",
|
|
78
|
-
"bugs": {
|
|
79
|
-
"url": "https://github.com/xyqotech/qa360/issues"
|
|
80
|
-
}
|
|
81
|
-
}
|