@taodigital/crawler 0.0.0-stage → 1.2.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.
- package/Dockerfile +82 -0
- package/README.md +10 -2
- package/dist/accessibility-auditor.d.ts +29 -0
- package/dist/accessibility-auditor.js +57 -0
- package/dist/accessibility-auditor.js.map +7 -0
- package/dist/accessibility-tree-crawler.d.ts +44 -0
- package/dist/accessibility-tree-crawler.js +156 -0
- package/dist/accessibility-tree-crawler.js.map +7 -0
- package/dist/advanced-ui-probes.d.ts +47 -0
- package/dist/advanced-ui-probes.js +310 -0
- package/dist/advanced-ui-probes.js.map +7 -0
- package/dist/ai-login.d.ts +32 -0
- package/dist/ai-login.js +250 -0
- package/dist/ai-login.js.map +7 -0
- package/dist/auth-token-rotator.d.ts +47 -0
- package/dist/auth-token-rotator.js +58 -0
- package/dist/auth-token-rotator.js.map +7 -0
- package/dist/auth.d.ts +20 -0
- package/dist/auth.js +348 -0
- package/dist/auth.js.map +7 -0
- package/dist/browser-extension.d.ts +37 -0
- package/dist/browser-extension.js +113 -0
- package/dist/browser-extension.js.map +7 -0
- package/dist/captcha-solver.d.ts +16 -0
- package/dist/captcha-solver.js +105 -0
- package/dist/captcha-solver.js.map +7 -0
- package/dist/color-contrast.d.ts +30 -0
- package/dist/color-contrast.js +78 -0
- package/dist/color-contrast.js.map +7 -0
- package/dist/content-chunker.d.ts +18 -0
- package/dist/content-chunker.js +152 -0
- package/dist/content-chunker.js.map +7 -0
- package/dist/content-dedup.d.ts +23 -0
- package/dist/content-dedup.js +60 -0
- package/dist/content-dedup.js.map +7 -0
- package/dist/cookie-consent.d.ts +25 -0
- package/dist/cookie-consent.js +78 -0
- package/dist/cookie-consent.js.map +7 -0
- package/dist/cookie-jar.d.ts +20 -0
- package/dist/cookie-jar.js +61 -0
- package/dist/cookie-jar.js.map +7 -0
- package/dist/crawl-session-manager.d.ts +44 -0
- package/dist/crawl-session-manager.js +145 -0
- package/dist/crawl-session-manager.js.map +7 -0
- package/dist/crawler.d.ts +233 -0
- package/dist/crawler.js +6239 -0
- package/dist/crawler.js.map +7 -0
- package/dist/crud-interaction.d.ts +31 -0
- package/dist/crud-interaction.js +264 -0
- package/dist/crud-interaction.js.map +7 -0
- package/dist/custom-js-injector.d.ts +42 -0
- package/dist/custom-js-injector.js +50 -0
- package/dist/custom-js-injector.js.map +7 -0
- package/dist/dark-mode-capture.d.ts +23 -0
- package/dist/dark-mode-capture.js +75 -0
- package/dist/dark-mode-capture.js.map +7 -0
- package/dist/dead-link-detector.d.ts +37 -0
- package/dist/dead-link-detector.js +50 -0
- package/dist/dead-link-detector.js.map +7 -0
- package/dist/dropdown-enumerator.d.ts +20 -0
- package/dist/dropdown-enumerator.js +230 -0
- package/dist/dropdown-enumerator.js.map +7 -0
- package/dist/element-hash.d.ts +9 -0
- package/dist/element-hash.js +9 -0
- package/dist/element-hash.js.map +7 -0
- package/dist/email-otp.d.ts +42 -0
- package/dist/email-otp.js +177 -0
- package/dist/email-otp.js.map +7 -0
- package/dist/engine-router.d.ts +47 -0
- package/dist/engine-router.js +94 -0
- package/dist/engine-router.js.map +7 -0
- package/dist/export/bulk-export.d.ts +26 -0
- package/dist/export/bulk-export.js +76 -0
- package/dist/export/bulk-export.js.map +7 -0
- package/dist/export/vector-export.d.ts +76 -0
- package/dist/export/vector-export.js +85 -0
- package/dist/export/vector-export.js.map +7 -0
- package/dist/extractors/advanced.d.ts +64 -0
- package/dist/extractors/advanced.js +265 -0
- package/dist/extractors/advanced.js.map +7 -0
- package/dist/extractors/artifact-envelope.d.ts +63 -0
- package/dist/extractors/artifact-envelope.js +63 -0
- package/dist/extractors/artifact-envelope.js.map +7 -0
- package/dist/extractors/branding-extractor.d.ts +46 -0
- package/dist/extractors/branding-extractor.js +104 -0
- package/dist/extractors/branding-extractor.js.map +7 -0
- package/dist/extractors/summary-extractor.d.ts +10 -0
- package/dist/extractors/summary-extractor.js +36 -0
- package/dist/extractors/summary-extractor.js.map +7 -0
- package/dist/failure-analysis-agent.d.ts +16 -0
- package/dist/failure-analysis-agent.js +42 -0
- package/dist/failure-analysis-agent.js.map +7 -0
- package/dist/feature-flag-detector.d.ts +30 -0
- package/dist/feature-flag-detector.js +55 -0
- package/dist/feature-flag-detector.js.map +7 -0
- package/dist/filter-pagination-crawler.d.ts +52 -0
- package/dist/filter-pagination-crawler.js +299 -0
- package/dist/filter-pagination-crawler.js.map +7 -0
- package/dist/form-detector.d.ts +34 -0
- package/dist/form-detector.js +58 -0
- package/dist/form-detector.js.map +7 -0
- package/dist/frontier.d.ts +40 -0
- package/dist/frontier.js +103 -0
- package/dist/frontier.js.map +7 -0
- package/dist/gap-pass.d.ts +36 -0
- package/dist/gap-pass.js +115 -0
- package/dist/gap-pass.js.map +7 -0
- package/dist/graphql-detector.d.ts +39 -0
- package/dist/graphql-detector.js +86 -0
- package/dist/graphql-detector.js.map +7 -0
- package/dist/http-engine.d.ts +80 -0
- package/dist/http-engine.js +318 -0
- package/dist/http-engine.js.map +7 -0
- package/dist/incremental-diff.d.ts +116 -0
- package/dist/incremental-diff.js +137 -0
- package/dist/incremental-diff.js.map +7 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +83 -0
- package/dist/index.js.map +7 -0
- package/dist/input-fuzzer.d.ts +30 -0
- package/dist/input-fuzzer.js +105 -0
- package/dist/input-fuzzer.js.map +7 -0
- package/dist/interactive-probe.d.ts +144 -0
- package/dist/interactive-probe.js +865 -0
- package/dist/interactive-probe.js.map +7 -0
- package/dist/job-queue.d.ts +297 -0
- package/dist/job-queue.js +3812 -0
- package/dist/job-queue.js.map +7 -0
- package/dist/js-coverage.d.ts +29 -0
- package/dist/js-coverage.js +56 -0
- package/dist/js-coverage.js.map +7 -0
- package/dist/js-router-detector.d.ts +17 -0
- package/dist/js-router-detector.js +90 -0
- package/dist/js-router-detector.js.map +7 -0
- package/dist/language-detector.d.ts +22 -0
- package/dist/language-detector.js +57 -0
- package/dist/language-detector.js.map +7 -0
- package/dist/link-classifier.d.ts +23 -0
- package/dist/link-classifier.js +40 -0
- package/dist/link-classifier.js.map +7 -0
- package/dist/live-view.d.ts +36 -0
- package/dist/live-view.js +105 -0
- package/dist/live-view.js.map +7 -0
- package/dist/locator-extractor.d.ts +46 -0
- package/dist/locator-extractor.js +220 -0
- package/dist/locator-extractor.js.map +7 -0
- package/dist/logger.d.ts +2 -0
- package/dist/logger.js +10 -0
- package/dist/logger.js.map +7 -0
- package/dist/markdown-extract.d.ts +8 -0
- package/dist/markdown-extract.js +54 -0
- package/dist/markdown-extract.js.map +7 -0
- package/dist/multi-context-handler.d.ts +55 -0
- package/dist/multi-context-handler.js +182 -0
- package/dist/multi-context-handler.js.map +7 -0
- package/dist/native-crawler.d.ts +69 -0
- package/dist/native-crawler.js +839 -0
- package/dist/native-crawler.js.map +7 -0
- package/dist/nested-window-crawler.d.ts +41 -0
- package/dist/nested-window-crawler.js +172 -0
- package/dist/nested-window-crawler.js.map +7 -0
- package/dist/network-action-correlator.d.ts +47 -0
- package/dist/network-action-correlator.js +209 -0
- package/dist/network-action-correlator.js.map +7 -0
- package/dist/network-observer.d.ts +49 -0
- package/dist/network-observer.js +149 -0
- package/dist/network-observer.js.map +7 -0
- package/dist/network-throttle.d.ts +25 -0
- package/dist/network-throttle.js +34 -0
- package/dist/network-throttle.js.map +7 -0
- package/dist/openapi-generator.d.ts +49 -0
- package/dist/openapi-generator.js +89 -0
- package/dist/openapi-generator.js.map +7 -0
- package/dist/pdf-extractor.d.ts +28 -0
- package/dist/pdf-extractor.js +81 -0
- package/dist/pdf-extractor.js.map +7 -0
- package/dist/performance-metrics-collector.d.ts +50 -0
- package/dist/performance-metrics-collector.js +155 -0
- package/dist/performance-metrics-collector.js.map +7 -0
- package/dist/performance-metrics.d.ts +52 -0
- package/dist/performance-metrics.js +83 -0
- package/dist/performance-metrics.js.map +7 -0
- package/dist/phash.d.ts +50 -0
- package/dist/phash.js +136 -0
- package/dist/phash.js.map +7 -0
- package/dist/pii-scrubber.d.ts +21 -0
- package/dist/pii-scrubber.js +75 -0
- package/dist/pii-scrubber.js.map +7 -0
- package/dist/playwright-recorder.d.ts +39 -0
- package/dist/playwright-recorder.js +123 -0
- package/dist/playwright-recorder.js.map +7 -0
- package/dist/policies/crawl-safety.d.ts +9 -0
- package/dist/policies/crawl-safety.js +41 -0
- package/dist/policies/crawl-safety.js.map +7 -0
- package/dist/profiles/domain-profile.d.ts +19 -0
- package/dist/profiles/domain-profile.js +160 -0
- package/dist/profiles/domain-profile.js.map +7 -0
- package/dist/proxy.d.ts +50 -0
- package/dist/proxy.js +165 -0
- package/dist/proxy.js.map +7 -0
- package/dist/rate-limiter.d.ts +31 -0
- package/dist/rate-limiter.js +64 -0
- package/dist/rate-limiter.js.map +7 -0
- package/dist/redirect-tracker.d.ts +37 -0
- package/dist/redirect-tracker.js +65 -0
- package/dist/redirect-tracker.js.map +7 -0
- package/dist/redis-frontier.d.ts +48 -0
- package/dist/redis-frontier.js +126 -0
- package/dist/redis-frontier.js.map +7 -0
- package/dist/redis-queue.d.ts +48 -0
- package/dist/redis-queue.js +165 -0
- package/dist/redis-queue.js.map +7 -0
- package/dist/response-cache.d.ts +38 -0
- package/dist/response-cache.js +140 -0
- package/dist/response-cache.js.map +7 -0
- package/dist/responsive-detector.d.ts +29 -0
- package/dist/responsive-detector.js +46 -0
- package/dist/responsive-detector.js.map +7 -0
- package/dist/retry-policy.d.ts +20 -0
- package/dist/retry-policy.js +54 -0
- package/dist/retry-policy.js.map +7 -0
- package/dist/robots-txt.d.ts +9 -0
- package/dist/robots-txt.js +77 -0
- package/dist/robots-txt.js.map +7 -0
- package/dist/screen-reader.d.ts +15 -0
- package/dist/screen-reader.js +48 -0
- package/dist/screen-reader.js.map +7 -0
- package/dist/screenshot-masker.d.ts +28 -0
- package/dist/screenshot-masker.js +62 -0
- package/dist/screenshot-masker.js.map +7 -0
- package/dist/seo-checker.d.ts +33 -0
- package/dist/seo-checker.js +91 -0
- package/dist/seo-checker.js.map +7 -0
- package/dist/service-worker-interceptor.d.ts +36 -0
- package/dist/service-worker-interceptor.js +136 -0
- package/dist/service-worker-interceptor.js.map +7 -0
- package/dist/session-capture.d.ts +39 -0
- package/dist/session-capture.js +274 -0
- package/dist/session-capture.js.map +7 -0
- package/dist/session-export.d.ts +49 -0
- package/dist/session-export.js +117 -0
- package/dist/session-export.js.map +7 -0
- package/dist/shadow-dom-crawler.d.ts +35 -0
- package/dist/shadow-dom-crawler.js +132 -0
- package/dist/shadow-dom-crawler.js.map +7 -0
- package/dist/sitemap-writer.d.ts +21 -0
- package/dist/sitemap-writer.js +47 -0
- package/dist/sitemap-writer.js.map +7 -0
- package/dist/sitemap.d.ts +51 -0
- package/dist/sitemap.js +160 -0
- package/dist/sitemap.js.map +7 -0
- package/dist/skyvern.d.ts +56 -0
- package/dist/skyvern.js +129 -0
- package/dist/skyvern.js.map +7 -0
- package/dist/sqs-queue.d.ts +13 -0
- package/dist/sqs-queue.js +115 -0
- package/dist/sqs-queue.js.map +7 -0
- package/dist/sso-token.d.ts +29 -0
- package/dist/sso-token.js +76 -0
- package/dist/sso-token.js.map +7 -0
- package/dist/state-graph.d.ts +59 -0
- package/dist/state-graph.js +193 -0
- package/dist/state-graph.js.map +7 -0
- package/dist/stealth/human-behavior.d.ts +20 -0
- package/dist/stealth/human-behavior.js +202 -0
- package/dist/stealth/human-behavior.js.map +7 -0
- package/dist/telemetry.d.ts +34 -0
- package/dist/telemetry.js +77 -0
- package/dist/telemetry.js.map +7 -0
- package/dist/test-executor.d.ts +81 -0
- package/dist/test-executor.js +443 -0
- package/dist/test-executor.js.map +7 -0
- package/dist/tls-fingerprint.d.ts +50 -0
- package/dist/tls-fingerprint.js +81 -0
- package/dist/tls-fingerprint.js.map +7 -0
- package/dist/url-pattern-completer.d.ts +28 -0
- package/dist/url-pattern-completer.js +122 -0
- package/dist/url-pattern-completer.js.map +7 -0
- package/dist/visual-diff-verdict.d.ts +40 -0
- package/dist/visual-diff-verdict.js +27 -0
- package/dist/visual-diff-verdict.js.map +7 -0
- package/dist/webhook-notifier.d.ts +30 -0
- package/dist/webhook-notifier.js +76 -0
- package/dist/webhook-notifier.js.map +7 -0
- package/dist/websocket-detector.d.ts +24 -0
- package/dist/websocket-detector.js +60 -0
- package/dist/websocket-detector.js.map +7 -0
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +33 -0
- package/dist/worker.js.map +7 -0
- package/package.json +49 -4
- package/src/accessibility-auditor.ts +102 -0
- package/src/accessibility-tree-crawler.ts +246 -0
- package/src/advanced-ui-probes.ts +470 -0
- package/src/ai-login.ts +298 -0
- package/src/auth-token-rotator.ts +89 -0
- package/src/auth.ts +418 -0
- package/src/browser-extension.ts +186 -0
- package/src/captcha-solver.ts +143 -0
- package/src/color-contrast.ts +116 -0
- package/src/content-chunker.ts +170 -0
- package/src/content-dedup.ts +99 -0
- package/src/cookie-consent.ts +106 -0
- package/src/cookie-jar.ts +91 -0
- package/src/crawl-session-manager.ts +231 -0
- package/src/crawler.ts +7123 -0
- package/src/crawler.ts.rej +12 -0
- package/src/crud-interaction.ts +386 -0
- package/src/custom-js-injector.ts +93 -0
- package/src/dark-mode-capture.ts +110 -0
- package/src/dead-link-detector.ts +76 -0
- package/src/dropdown-enumerator.ts +312 -0
- package/src/element-hash.ts +16 -0
- package/src/email-otp.ts +252 -0
- package/src/engine-router.ts +141 -0
- package/src/export/bulk-export.ts +85 -0
- package/src/export/vector-export.ts +160 -0
- package/src/extractors/advanced.ts +309 -0
- package/src/extractors/artifact-envelope.ts +111 -0
- package/src/extractors/branding-extractor.ts +159 -0
- package/src/extractors/summary-extractor.ts +49 -0
- package/src/failure-analysis-agent.ts +51 -0
- package/src/feature-flag-detector.ts +97 -0
- package/src/filter-pagination-crawler.ts +500 -0
- package/src/form-detector.ts +103 -0
- package/src/frontier.test.ts +64 -0
- package/src/frontier.ts +144 -0
- package/src/gap-pass.ts +165 -0
- package/src/graphql-detector.ts +129 -0
- package/src/http-engine.ts +453 -0
- package/src/incremental-diff.ts +259 -0
- package/src/index.ts +52 -0
- package/src/input-fuzzer.ts +129 -0
- package/src/interactive-probe.ts +1136 -0
- package/src/job-queue.test.ts +187 -0
- package/src/job-queue.ts +4504 -0
- package/src/js-coverage.ts +87 -0
- package/src/js-router-detector.ts +112 -0
- package/src/language-detector.ts +82 -0
- package/src/link-classifier.ts +65 -0
- package/src/live-view.ts +146 -0
- package/src/locator-extractor.ts +309 -0
- package/src/logger.ts +9 -0
- package/src/markdown-extract.test.ts +73 -0
- package/src/markdown-extract.ts +76 -0
- package/src/multi-context-handler.ts +296 -0
- package/src/native-crawler.ts +1108 -0
- package/src/nested-window-crawler.ts +310 -0
- package/src/network-action-correlator.ts +320 -0
- package/src/network-observer.ts +204 -0
- package/src/network-throttle.ts +69 -0
- package/src/openapi-generator.ts +135 -0
- package/src/pdf-extractor.ts +123 -0
- package/src/performance-metrics-collector.ts +243 -0
- package/src/performance-metrics.ts +134 -0
- package/src/phash.ts +184 -0
- package/src/pii-scrubber.ts +99 -0
- package/src/playwright-recorder.ts +170 -0
- package/src/policies/crawl-safety.ts +52 -0
- package/src/profiles/domain-profile.ts +190 -0
- package/src/proxy.ts +238 -0
- package/src/rate-limiter.ts +87 -0
- package/src/redirect-tracker.ts +97 -0
- package/src/redis-frontier.ts +143 -0
- package/src/redis-queue.ts +208 -0
- package/src/response-cache.ts +150 -0
- package/src/responsive-detector.ts +92 -0
- package/src/retry-policy.ts +87 -0
- package/src/robots-txt.ts +96 -0
- package/src/screen-reader.ts +98 -0
- package/src/screenshot-masker.ts +98 -0
- package/src/seo-checker.ts +134 -0
- package/src/service-worker-interceptor.ts +185 -0
- package/src/session-capture.ts +335 -0
- package/src/session-export.test.ts +75 -0
- package/src/session-export.ts +172 -0
- package/src/shadow-dom-crawler.ts +198 -0
- package/src/sitemap-writer.ts +65 -0
- package/src/sitemap.test.ts +127 -0
- package/src/sitemap.ts +233 -0
- package/src/skyvern.ts +199 -0
- package/src/sqs-queue.ts +129 -0
- package/src/sso-token.ts +120 -0
- package/src/state-graph.ts +280 -0
- package/src/stealth/human-behavior.ts +227 -0
- package/src/telemetry.ts +122 -0
- package/src/test-executor.test.ts +72 -0
- package/src/test-executor.ts +578 -0
- package/src/tls-fingerprint.ts +111 -0
- package/src/url-pattern-completer.ts +161 -0
- package/src/vendor.d.ts +20 -0
- package/src/visual-diff-verdict.test.ts +80 -0
- package/src/visual-diff-verdict.ts +59 -0
- package/src/webhook-notifier.ts +109 -0
- package/src/websocket-detector.ts +83 -0
- package/src/worker.ts +50 -0
- package/tsconfig.json +13 -0
- package/types/accessibility-auditor.d.ts +29 -0
- package/types/accessibility-tree-crawler.d.ts +44 -0
- package/types/advanced-ui-probes.d.ts +47 -0
- package/types/ai-login.d.ts +32 -0
- package/types/auth-token-rotator.d.ts +47 -0
- package/types/auth.d.ts +20 -0
- package/types/browser-extension.d.ts +37 -0
- package/types/bull-worker.d.ts +6 -0
- package/types/captcha-solver.d.ts +16 -0
- package/types/color-contrast.d.ts +30 -0
- package/types/content-chunker.d.ts +18 -0
- package/types/content-dedup.d.ts +23 -0
- package/types/cookie-consent.d.ts +25 -0
- package/types/cookie-jar.d.ts +20 -0
- package/types/crawl-session-manager.d.ts +44 -0
- package/types/crawler.d.ts +233 -0
- package/types/crud-interaction.d.ts +31 -0
- package/types/custom-js-injector.d.ts +42 -0
- package/types/dark-mode-capture.d.ts +23 -0
- package/types/dead-link-detector.d.ts +37 -0
- package/types/dropdown-enumerator.d.ts +20 -0
- package/types/element-hash.d.ts +9 -0
- package/types/email-otp.d.ts +42 -0
- package/types/engine-router.d.ts +47 -0
- package/types/export/bulk-export.d.ts +26 -0
- package/types/export/vector-export.d.ts +76 -0
- package/types/extractors/advanced.d.ts +64 -0
- package/types/extractors/artifact-envelope.d.ts +63 -0
- package/types/extractors/branding-extractor.d.ts +46 -0
- package/types/extractors/summary-extractor.d.ts +10 -0
- package/types/failure-analysis-agent.d.ts +16 -0
- package/types/feature-flag-detector.d.ts +30 -0
- package/types/filter-pagination-crawler.d.ts +52 -0
- package/types/form-detector.d.ts +34 -0
- package/types/frontier.d.ts +40 -0
- package/types/gap-pass.d.ts +36 -0
- package/types/graphql-detector.d.ts +39 -0
- package/types/http-engine.d.ts +80 -0
- package/types/incremental-diff.d.ts +116 -0
- package/types/index.d.ts +52 -0
- package/types/input-fuzzer.d.ts +30 -0
- package/types/interactive-probe.d.ts +144 -0
- package/types/job-queue.d.ts +308 -0
- package/types/js-coverage.d.ts +29 -0
- package/types/js-router-detector.d.ts +17 -0
- package/types/language-detector.d.ts +22 -0
- package/types/link-classifier.d.ts +23 -0
- package/types/live-view.d.ts +36 -0
- package/types/locator-extractor.d.ts +46 -0
- package/types/logger.d.ts +2 -0
- package/types/markdown-extract.d.ts +8 -0
- package/types/multi-context-handler.d.ts +55 -0
- package/types/native-crawler.d.ts +69 -0
- package/types/nested-window-crawler.d.ts +41 -0
- package/types/network-action-correlator.d.ts +47 -0
- package/types/network-observer.d.ts +49 -0
- package/types/network-throttle.d.ts +25 -0
- package/types/openapi-generator.d.ts +49 -0
- package/types/pdf-extractor.d.ts +28 -0
- package/types/performance-metrics-collector.d.ts +50 -0
- package/types/performance-metrics.d.ts +52 -0
- package/types/phash.d.ts +50 -0
- package/types/pii-scrubber.d.ts +21 -0
- package/types/playwright-recorder.d.ts +39 -0
- package/types/policies/crawl-safety.d.ts +9 -0
- package/types/profiles/domain-profile.d.ts +19 -0
- package/types/proxy.d.ts +50 -0
- package/types/rate-limiter.d.ts +31 -0
- package/types/redirect-tracker.d.ts +37 -0
- package/types/redis-frontier.d.ts +48 -0
- package/types/redis-queue.d.ts +48 -0
- package/types/response-cache.d.ts +38 -0
- package/types/responsive-detector.d.ts +29 -0
- package/types/retry-policy.d.ts +20 -0
- package/types/robots-txt.d.ts +9 -0
- package/types/screen-reader.d.ts +15 -0
- package/types/screenshot-masker.d.ts +28 -0
- package/types/seo-checker.d.ts +33 -0
- package/types/service-worker-interceptor.d.ts +36 -0
- package/types/session-capture.d.ts +39 -0
- package/types/session-export.d.ts +49 -0
- package/types/shadow-dom-crawler.d.ts +35 -0
- package/types/sitemap-writer.d.ts +21 -0
- package/types/sitemap.d.ts +51 -0
- package/types/skyvern.d.ts +56 -0
- package/types/sqs-queue.d.ts +13 -0
- package/types/sso-token.d.ts +29 -0
- package/types/state-graph.d.ts +59 -0
- package/types/stealth/human-behavior.d.ts +20 -0
- package/types/telemetry.d.ts +34 -0
- package/types/test-executor.d.ts +84 -0
- package/types/tls-fingerprint.d.ts +50 -0
- package/types/url-pattern-completer.d.ts +28 -0
- package/types/visual-diff-verdict.d.ts +40 -0
- package/types/webhook-notifier.d.ts +30 -0
- package/types/websocket-detector.d.ts +24 -0
- package/types/worker.d.ts +1 -0
|
@@ -0,0 +1,1136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactive Probe — Phase 2 Dynamic Observation
|
|
3
|
+
*
|
|
4
|
+
* The static crawl captures DOM structure at rest. This module runs AFTER the static crawl
|
|
5
|
+
* to observe dynamic behaviour by actually interacting with the UI:
|
|
6
|
+
*
|
|
7
|
+
* 1. Empty submit → captures required-field validation error messages
|
|
8
|
+
* 2. Invalid format → captures format validation errors (bad email, short password)
|
|
9
|
+
* 3. Button clicks → captures modal/dialog contents
|
|
10
|
+
* 4. Select changes → captures conditional reveals (show/hide logic)
|
|
11
|
+
* 5. Success paths → captures toast/banner messages (where input is safe)
|
|
12
|
+
*
|
|
13
|
+
* Results are stored as KnowledgeChunks (sourceType='probe') and update the
|
|
14
|
+
* ERROR_CATALOGUE + INTERACTION_PATTERNS skill files with real observed data
|
|
15
|
+
* instead of LLM inference.
|
|
16
|
+
*
|
|
17
|
+
* Call signature: probeScreen(page, screenId, elements, opts)
|
|
18
|
+
* Called from crawlProject() after static element extraction when opts.interactive=true.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import type { Page } from 'playwright';
|
|
22
|
+
import { AppBrain } from '@taodigital/app-brain';
|
|
23
|
+
|
|
24
|
+
export interface ProbeElementFact {
|
|
25
|
+
meaning: string;
|
|
26
|
+
role: string;
|
|
27
|
+
expectedData?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ValidationError {
|
|
31
|
+
field: string;
|
|
32
|
+
trigger: 'empty_submit' | 'invalid_format' | 'boundary';
|
|
33
|
+
errorText: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface SuccessMessage {
|
|
37
|
+
type: 'toast' | 'inline_success' | 'redirect';
|
|
38
|
+
content: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ModalObservation {
|
|
42
|
+
triggerElement: string;
|
|
43
|
+
title: string;
|
|
44
|
+
content: string;
|
|
45
|
+
fields: string[];
|
|
46
|
+
stateId?: string;
|
|
47
|
+
domSnapshot?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ConditionalReveal {
|
|
51
|
+
triggerElement: string;
|
|
52
|
+
triggerValue: string;
|
|
53
|
+
revealedText: string;
|
|
54
|
+
stateId?: string;
|
|
55
|
+
domSnapshot?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface TooltipCapture {
|
|
59
|
+
triggerLabel: string;
|
|
60
|
+
tooltipText: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface TabPanelCapture {
|
|
64
|
+
tabLabel: string;
|
|
65
|
+
panelContent: string;
|
|
66
|
+
panelHeading?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface CarouselSlide {
|
|
70
|
+
slideIndex: number;
|
|
71
|
+
heading?: string;
|
|
72
|
+
content: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface WizardStep {
|
|
76
|
+
stepIndex: number;
|
|
77
|
+
stepLabel?: string;
|
|
78
|
+
content: string;
|
|
79
|
+
fields: string[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface FocusTrapResult {
|
|
83
|
+
modalTrigger: string;
|
|
84
|
+
focusTrapped: boolean;
|
|
85
|
+
sampledFocused: string[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface ContextMenuCapture {
|
|
89
|
+
trigger: string;
|
|
90
|
+
items: string[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface ProbeResult {
|
|
94
|
+
screenId: string;
|
|
95
|
+
url: string;
|
|
96
|
+
validationErrors: ValidationError[];
|
|
97
|
+
successMessages: SuccessMessage[];
|
|
98
|
+
modals: ModalObservation[];
|
|
99
|
+
conditionals: ConditionalReveal[];
|
|
100
|
+
loadingPatterns: string[];
|
|
101
|
+
tooltips?: TooltipCapture[];
|
|
102
|
+
tabPanels?: TabPanelCapture[];
|
|
103
|
+
carouselSlides?: CarouselSlide[];
|
|
104
|
+
wizardSteps?: WizardStep[];
|
|
105
|
+
focusTraps?: FocusTrapResult[];
|
|
106
|
+
skipNavIssues?: string[];
|
|
107
|
+
contextMenus?: ContextMenuCapture[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// ── CSS selectors that reliably find error messages across frameworks ────────
|
|
111
|
+
const ERROR_SELECTORS = [
|
|
112
|
+
'[role="alert"]',
|
|
113
|
+
'[aria-live="assertive"]',
|
|
114
|
+
'[aria-live="polite"]',
|
|
115
|
+
'.invalid-feedback',
|
|
116
|
+
'.field-error',
|
|
117
|
+
'.error-message',
|
|
118
|
+
'.form-error',
|
|
119
|
+
'.validation-error',
|
|
120
|
+
'[class*="error" i]',
|
|
121
|
+
'[class*="invalid" i]',
|
|
122
|
+
'[class*="Error"]',
|
|
123
|
+
'p.text-red-500', 'p.text-red-600', 'p.text-destructive', 'p.text-danger',
|
|
124
|
+
'[data-error]', '[data-invalid]',
|
|
125
|
+
'.ant-form-item-explain-error', // Ant Design
|
|
126
|
+
'.el-form-item__error', // Element UI
|
|
127
|
+
'.chakra-form__error-message', // Chakra UI
|
|
128
|
+
'.mantine-InputWrapper-error', // Mantine
|
|
129
|
+
].join(', ');
|
|
130
|
+
|
|
131
|
+
// ── Toast / notification selectors ───────────────────────────────────────────
|
|
132
|
+
const TOAST_SELECTORS = [
|
|
133
|
+
'[role="status"]',
|
|
134
|
+
'[data-sonner-toast]',
|
|
135
|
+
'[data-toast]',
|
|
136
|
+
'[data-hot-toast]',
|
|
137
|
+
'.Toastify__toast',
|
|
138
|
+
'.toast-message',
|
|
139
|
+
'.notification-body',
|
|
140
|
+
'.notistack-snackbar',
|
|
141
|
+
'[class*="toast" i]',
|
|
142
|
+
'[class*="Toast"]',
|
|
143
|
+
'[class*="snackbar" i]',
|
|
144
|
+
'[class*="notification" i]',
|
|
145
|
+
].join(', ');
|
|
146
|
+
|
|
147
|
+
/** Wait up to `maxMs` for any selector to appear, then return its text content. */
|
|
148
|
+
async function waitForAny(page: Page, selector: string, maxMs = 2500): Promise<string[]> {
|
|
149
|
+
try {
|
|
150
|
+
await page.waitForSelector(selector, { timeout: maxMs, state: 'visible' });
|
|
151
|
+
} catch { return []; }
|
|
152
|
+
return page.$$eval(selector, (els) =>
|
|
153
|
+
els.map((el) => (el as HTMLElement).innerText?.replace(/\s+/g, ' ').trim()).filter(Boolean)
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** Collect all currently-visible error messages. */
|
|
158
|
+
async function collectErrors(page: Page): Promise<string[]> {
|
|
159
|
+
try {
|
|
160
|
+
return page.$$eval(ERROR_SELECTORS, (els) =>
|
|
161
|
+
els
|
|
162
|
+
.filter((el) => {
|
|
163
|
+
const style = window.getComputedStyle(el);
|
|
164
|
+
return style.display !== 'none' && style.visibility !== 'hidden' && (el as HTMLElement).innerText?.trim().length > 0;
|
|
165
|
+
})
|
|
166
|
+
.map((el) => (el as HTMLElement).innerText?.replace(/\s+/g, ' ').trim())
|
|
167
|
+
.filter(Boolean)
|
|
168
|
+
);
|
|
169
|
+
} catch { return []; }
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** Collect any visible toast / notification content. */
|
|
173
|
+
async function collectToasts(page: Page): Promise<string[]> {
|
|
174
|
+
try {
|
|
175
|
+
return page.$$eval(TOAST_SELECTORS, (els) =>
|
|
176
|
+
els
|
|
177
|
+
.filter((el) => {
|
|
178
|
+
const style = window.getComputedStyle(el);
|
|
179
|
+
return style.display !== 'none' && (el as HTMLElement).innerText?.trim().length > 0;
|
|
180
|
+
})
|
|
181
|
+
.map((el) => (el as HTMLElement).innerText?.replace(/\s+/g, ' ').trim())
|
|
182
|
+
.filter(Boolean)
|
|
183
|
+
);
|
|
184
|
+
} catch { return []; }
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/** Find the primary submit button on the page. */
|
|
188
|
+
async function findSubmitButton(page: Page): Promise<string | null> {
|
|
189
|
+
return page.evaluate(() => {
|
|
190
|
+
const SUBMIT_KW = /submit|send|save|create|confirm|continue|proceed|register|sign.?in|log.?in|apply|verify|search|next|finish|complete|order|buy|checkout/i;
|
|
191
|
+
const candidates = Array.from(document.querySelectorAll('button, [role="button"], input[type="submit"]')) as HTMLElement[];
|
|
192
|
+
const primary = candidates.find((el) => {
|
|
193
|
+
const style = window.getComputedStyle(el);
|
|
194
|
+
if (style.display === 'none' || style.visibility === 'hidden') return false;
|
|
195
|
+
const text = el.innerText || (el as HTMLInputElement).value || el.getAttribute('aria-label') || '';
|
|
196
|
+
return SUBMIT_KW.test(text);
|
|
197
|
+
});
|
|
198
|
+
if (!primary) return null;
|
|
199
|
+
return primary.getAttribute('data-testid') || primary.getAttribute('aria-label') || primary.innerText?.trim().slice(0, 60);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** Find modal-trigger buttons and clickable row-level items (e.g. test-case rows opening side panels). */
|
|
204
|
+
async function findModalTriggers(page: Page): Promise<Array<{ selector: string; label: string }>> {
|
|
205
|
+
return page.evaluate(() => {
|
|
206
|
+
const SKIP = /submit|send|save|create|log.?in|sign.?in|register|continue|checkout|buy|order|search|close|cancel|dismiss/i;
|
|
207
|
+
const NAV_PARENTS = new Set(['NAV', 'HEADER', 'FOOTER']);
|
|
208
|
+
|
|
209
|
+
function isVisible(el: Element): boolean {
|
|
210
|
+
const s = window.getComputedStyle(el as HTMLElement);
|
|
211
|
+
return s.display !== 'none' && s.visibility !== 'hidden' && (s.opacity !== '0');
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const seen = new Set<string>();
|
|
215
|
+
const results: Array<{ selector: string; label: string }> = [];
|
|
216
|
+
|
|
217
|
+
// Standard button / role=button elements
|
|
218
|
+
for (const el of Array.from(document.querySelectorAll('button, [role="button"]'))) {
|
|
219
|
+
if (!isVisible(el)) continue;
|
|
220
|
+
const label = ((el as HTMLElement).innerText?.trim() || el.getAttribute('aria-label') || '').slice(0, 60);
|
|
221
|
+
if (!label || SKIP.test(label) || seen.has(label)) continue;
|
|
222
|
+
let p = el.parentElement; let inNav = false;
|
|
223
|
+
while (p) { if (NAV_PARENTS.has(p.tagName)) { inNav = true; break; } p = p.parentElement; }
|
|
224
|
+
if (inNav) continue;
|
|
225
|
+
seen.add(label);
|
|
226
|
+
results.push({ selector: `button:has-text("${label.slice(0, 40)}")`, label });
|
|
227
|
+
if (results.length >= 15) break;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Row-level clickable elements — table/list rows that open side panels on click
|
|
231
|
+
// (e.g. test-case rows → ScreenPreviewPanel, ScriptPopup)
|
|
232
|
+
const rowCandidates = Array.from(document.querySelectorAll(
|
|
233
|
+
'[role="row"][tabindex="0"], tr[tabindex="0"], [role="listitem"][tabindex="0"], [class*="list-item"][tabindex="0"], [class*="table-row"][tabindex="0"]'
|
|
234
|
+
)).filter(isVisible).slice(0, 3);
|
|
235
|
+
for (const row of rowCandidates) {
|
|
236
|
+
const ariaLabel = row.getAttribute('aria-label');
|
|
237
|
+
const textLabel = (row as HTMLElement).innerText?.trim().split('\n')[0].trim().slice(0, 60);
|
|
238
|
+
const label = (ariaLabel || textLabel || '').slice(0, 60);
|
|
239
|
+
if (!label || seen.has(label)) continue;
|
|
240
|
+
seen.add(label);
|
|
241
|
+
// Use aria-label selector when available; fall back to row role + text content
|
|
242
|
+
const selector = ariaLabel
|
|
243
|
+
? `[aria-label="${ariaLabel}"]`
|
|
244
|
+
: `[role="row"]:has-text("${label.slice(0, 40)}")`;
|
|
245
|
+
results.push({ selector, label });
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return results.slice(0, 20);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** Try to interact with select elements and observe conditional reveals. */
|
|
253
|
+
async function probeConditionals(page: Page): Promise<ConditionalReveal[]> {
|
|
254
|
+
const results: ConditionalReveal[] = [];
|
|
255
|
+
try {
|
|
256
|
+
const selects = await page.$$('select');
|
|
257
|
+
for (const sel of selects.slice(0, 5)) {
|
|
258
|
+
const label = await sel.getAttribute('aria-label') || await sel.getAttribute('name') || 'select';
|
|
259
|
+
const options = await sel.$$eval('option', (opts) => opts.slice(1, 3).map((o) => ({ value: o.value, text: o.textContent?.trim() })));
|
|
260
|
+
for (const opt of options) {
|
|
261
|
+
if (!opt.value) continue;
|
|
262
|
+
const domBefore = await page.evaluate(() => document.body.innerText.length);
|
|
263
|
+
await sel.selectOption(opt.value);
|
|
264
|
+
await page.waitForTimeout(500);
|
|
265
|
+
const domAfter = await page.evaluate(() => document.body.innerText.length);
|
|
266
|
+
if (Math.abs(domAfter - domBefore) > 50) {
|
|
267
|
+
const revealed = await page.evaluate(() => {
|
|
268
|
+
// Grab text from any newly-visible sections
|
|
269
|
+
return Array.from(document.querySelectorAll('[data-conditional],[data-show],[class*="conditional"]'))
|
|
270
|
+
.filter((el) => window.getComputedStyle(el).display !== 'none')
|
|
271
|
+
.map((el) => (el as HTMLElement).innerText?.trim())
|
|
272
|
+
.filter((t) => t && t.length > 10)
|
|
273
|
+
.slice(0, 3)
|
|
274
|
+
.join(' | ');
|
|
275
|
+
});
|
|
276
|
+
if (revealed) {
|
|
277
|
+
const domSnapshot = await page.content();
|
|
278
|
+
const stateId = await page.evaluate(() => {
|
|
279
|
+
let hash = 0;
|
|
280
|
+
const str = document.body.innerText;
|
|
281
|
+
for (let i = 0; i < str.length; i++) {
|
|
282
|
+
hash = ((hash << 5) - hash) + str.charCodeAt(i);
|
|
283
|
+
hash = hash & hash;
|
|
284
|
+
}
|
|
285
|
+
return Math.abs(hash).toString(16);
|
|
286
|
+
});
|
|
287
|
+
results.push({ triggerElement: label, triggerValue: opt.text || opt.value, revealedText: revealed.slice(0, 200), stateId, domSnapshot });
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
} catch { /* non-fatal */ }
|
|
293
|
+
return results;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Run interactive probing on a single screen page.
|
|
298
|
+
* The page must already be navigated to the screen URL.
|
|
299
|
+
* `elements` is the output of the static extractElements pass.
|
|
300
|
+
*/
|
|
301
|
+
export async function probeScreen(
|
|
302
|
+
page: Page,
|
|
303
|
+
screenId: string,
|
|
304
|
+
url: string,
|
|
305
|
+
elements: ProbeElementFact[],
|
|
306
|
+
): Promise<ProbeResult> {
|
|
307
|
+
const result: ProbeResult = {
|
|
308
|
+
screenId, url,
|
|
309
|
+
validationErrors: [], successMessages: [], modals: [], conditionals: [], loadingPatterns: [],
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
const formInputs = elements.filter((e) =>
|
|
313
|
+
/input|text|email|password|tel|search|textarea|select/i.test(e.role)
|
|
314
|
+
);
|
|
315
|
+
const hasForm = formInputs.length > 0;
|
|
316
|
+
|
|
317
|
+
// ── Probe 1: Empty submit → capture required-field errors ────────────────────
|
|
318
|
+
if (hasForm) {
|
|
319
|
+
try {
|
|
320
|
+
const submitLabel = await findSubmitButton(page);
|
|
321
|
+
if (submitLabel) {
|
|
322
|
+
// Click submit with no data filled in
|
|
323
|
+
const submitBtn = page.locator(`button:has-text("${submitLabel}")`).first();
|
|
324
|
+
await submitBtn.click({ timeout: 2000 });
|
|
325
|
+
await page.waitForTimeout(1500);
|
|
326
|
+
|
|
327
|
+
const errors = await collectErrors(page);
|
|
328
|
+
// Prefer DOM-proximity mapping via aria-invalid + aria-describedby
|
|
329
|
+
const ariaFieldErrors = await page.evaluate(() =>
|
|
330
|
+
Array.from(document.querySelectorAll('[aria-invalid="true"]')).map((el) => {
|
|
331
|
+
const describedBy = el.getAttribute('aria-describedby');
|
|
332
|
+
const errorEl = describedBy ? document.getElementById(describedBy) : null;
|
|
333
|
+
const label = el.getAttribute('aria-label') || el.getAttribute('placeholder') || (el as HTMLInputElement).name || '';
|
|
334
|
+
return { label, errorText: errorEl?.textContent?.trim() || '' };
|
|
335
|
+
}).filter((f) => f.errorText)
|
|
336
|
+
);
|
|
337
|
+
const ariaMatched = new Set<string>();
|
|
338
|
+
for (const af of ariaFieldErrors) {
|
|
339
|
+
ariaMatched.add(af.errorText);
|
|
340
|
+
result.validationErrors.push({ field: af.label || 'unknown', trigger: 'empty_submit', errorText: af.errorText.slice(0, 150) });
|
|
341
|
+
}
|
|
342
|
+
// Fallback: text-proximity match for errors not covered by aria-invalid
|
|
343
|
+
for (const errorText of errors.filter((e) => !ariaMatched.has(e))) {
|
|
344
|
+
const matchedField = formInputs.find((el) =>
|
|
345
|
+
errorText.toLowerCase().includes(el.meaning.toLowerCase().split(' ')[0]) ||
|
|
346
|
+
el.meaning.toLowerCase().includes(errorText.toLowerCase().split(' ')[0])
|
|
347
|
+
);
|
|
348
|
+
result.validationErrors.push({
|
|
349
|
+
field: matchedField?.meaning ?? 'unknown',
|
|
350
|
+
trigger: 'empty_submit',
|
|
351
|
+
errorText: errorText.slice(0, 150),
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// Check for loading state text during submit
|
|
356
|
+
const loadingText = await page.evaluate(() => {
|
|
357
|
+
const loading = Array.from(document.querySelectorAll('button, [aria-busy="true"], [class*="loading" i], [class*="spinner" i]'))
|
|
358
|
+
.map((el) => (el as HTMLElement).innerText?.trim())
|
|
359
|
+
.filter((t) => t && /loading|saving|submitting|sending|processing/i.test(t));
|
|
360
|
+
return loading.slice(0, 3);
|
|
361
|
+
});
|
|
362
|
+
result.loadingPatterns.push(...loadingText);
|
|
363
|
+
}
|
|
364
|
+
} catch { /* non-fatal — form probe failed, continue */ }
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ── Probe 2: Invalid format inputs ──────────────────────────────────────────
|
|
368
|
+
if (hasForm) {
|
|
369
|
+
try {
|
|
370
|
+
const emailField = formInputs.find((e) => e.expectedData === 'valid_email' || /email/i.test(e.meaning));
|
|
371
|
+
const passwordField = formInputs.find((e) => e.expectedData === 'password' || /password/i.test(e.meaning));
|
|
372
|
+
|
|
373
|
+
if (emailField) {
|
|
374
|
+
const emailLocator = page.locator('input[type="email"], input[name*="email"], input[placeholder*="email" i]').first();
|
|
375
|
+
try {
|
|
376
|
+
await emailLocator.fill('notanemail', { timeout: 1000 });
|
|
377
|
+
await emailLocator.blur();
|
|
378
|
+
await page.waitForTimeout(600);
|
|
379
|
+
const errors = await collectErrors(page);
|
|
380
|
+
for (const errorText of errors) {
|
|
381
|
+
result.validationErrors.push({ field: emailField.meaning, trigger: 'invalid_format', errorText: errorText.slice(0, 150) });
|
|
382
|
+
}
|
|
383
|
+
} catch { /* locator not found */ }
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (passwordField) {
|
|
387
|
+
const pwLocator = page.locator('input[type="password"]').first();
|
|
388
|
+
try {
|
|
389
|
+
await pwLocator.fill('123', { timeout: 1000 });
|
|
390
|
+
await pwLocator.blur();
|
|
391
|
+
await page.waitForTimeout(600);
|
|
392
|
+
const errors = await collectErrors(page);
|
|
393
|
+
for (const errorText of errors) {
|
|
394
|
+
if (!result.validationErrors.some((e) => e.errorText === errorText)) {
|
|
395
|
+
result.validationErrors.push({ field: passwordField.meaning, trigger: 'invalid_format', errorText: errorText.slice(0, 150) });
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
} catch { /* locator not found */ }
|
|
399
|
+
}
|
|
400
|
+
} catch { /* non-fatal */ }
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// ── Probe 3: Button clicks → discover modal/dialog contents ─────────────────
|
|
404
|
+
try {
|
|
405
|
+
const triggers = await findModalTriggers(page);
|
|
406
|
+
for (const trigger of triggers) {
|
|
407
|
+
try {
|
|
408
|
+
const btn = page.locator(trigger.selector).first();
|
|
409
|
+
const domBefore = await page.evaluate(() => document.body.innerText.length);
|
|
410
|
+
|
|
411
|
+
await btn.click({ timeout: 1500 });
|
|
412
|
+
// Adaptive wait: some triggers launch async jobs (e.g. script generation 5–30s).
|
|
413
|
+
// Wait for a visible dialog/panel rather than a fixed sleep.
|
|
414
|
+
try {
|
|
415
|
+
await page.waitForSelector(
|
|
416
|
+
'[role="dialog"],[role="alertdialog"],[aria-modal="true"],[data-state="open"],[class*="modal" i]:not([class*="backdrop" i]),[class*="Dialog"]:not([class*="Overlay"])',
|
|
417
|
+
{ timeout: 8000, state: 'visible' }
|
|
418
|
+
);
|
|
419
|
+
} catch {
|
|
420
|
+
// No dialog appeared — wait briefly for accordion/panel DOM settle
|
|
421
|
+
await page.waitForTimeout(300);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// Check if a dialog/modal appeared
|
|
425
|
+
const dialogText = await page.evaluate(() => {
|
|
426
|
+
const DIALOG_SEL = '[role="dialog"], [role="alertdialog"], .modal, .Modal, [class*="modal" i], [class*="dialog" i], [class*="Dialog"]';
|
|
427
|
+
const dialogs = Array.from(document.querySelectorAll(DIALOG_SEL))
|
|
428
|
+
.filter((el) => window.getComputedStyle(el).display !== 'none');
|
|
429
|
+
if (dialogs.length === 0) return null;
|
|
430
|
+
const d = dialogs[0] as HTMLElement;
|
|
431
|
+
const title = d.querySelector('[role="heading"], h1, h2, h3')?.textContent?.trim() || '';
|
|
432
|
+
const content = d.innerText?.replace(/\s+/g, ' ').trim().slice(0, 400);
|
|
433
|
+
const fields = Array.from(d.querySelectorAll('input, select, textarea, button'))
|
|
434
|
+
.map((f) => (f as HTMLElement).getAttribute('aria-label') || (f as HTMLElement).getAttribute('placeholder') || (f as HTMLInputElement).value || '')
|
|
435
|
+
.filter((t) => t.trim().length > 0);
|
|
436
|
+
return { title, content, fields };
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
const domSnapshot = await page.content();
|
|
440
|
+
const stateId = await page.evaluate(() => {
|
|
441
|
+
// simple simHash placeholder
|
|
442
|
+
let hash = 0;
|
|
443
|
+
const str = document.body.innerText;
|
|
444
|
+
for (let i = 0; i < str.length; i++) {
|
|
445
|
+
hash = ((hash << 5) - hash) + str.charCodeAt(i);
|
|
446
|
+
hash = hash & hash;
|
|
447
|
+
}
|
|
448
|
+
return Math.abs(hash).toString(16);
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
if (dialogText && dialogText.content.length > 20) {
|
|
452
|
+
result.modals.push({
|
|
453
|
+
triggerElement: trigger.label,
|
|
454
|
+
title: dialogText.title,
|
|
455
|
+
content: dialogText.content,
|
|
456
|
+
fields: dialogText.fields.slice(0, 10),
|
|
457
|
+
stateId,
|
|
458
|
+
domSnapshot,
|
|
459
|
+
});
|
|
460
|
+
} else {
|
|
461
|
+
// No modal appeared — check for accordion/disclosure panel reveals
|
|
462
|
+
// Clicks on accordion triggers change aria-expanded but don't open a dialog.
|
|
463
|
+
const accordionText = await page.evaluate(() => {
|
|
464
|
+
const panels = Array.from(document.querySelectorAll(
|
|
465
|
+
'[aria-expanded="true"] + *, details[open] > :not(summary), [data-state="open"]:not([role="dialog"]):not([class*="modal" i]), [data-headlessui-state="open"] > *'
|
|
466
|
+
)).filter((el) => {
|
|
467
|
+
const s = window.getComputedStyle(el as HTMLElement);
|
|
468
|
+
return s.display !== 'none' && s.visibility !== 'hidden';
|
|
469
|
+
});
|
|
470
|
+
if (panels.length === 0) return null;
|
|
471
|
+
const panel = panels[0] as HTMLElement;
|
|
472
|
+
const heading = panel.querySelector('h2,h3,h4')?.textContent?.replace(/\s+/g, ' ').trim() || '';
|
|
473
|
+
const content = panel.innerText?.replace(/\s+/g, ' ').trim().slice(0, 400) || '';
|
|
474
|
+
return content.length > 15 ? { heading, content } : null;
|
|
475
|
+
});
|
|
476
|
+
if (accordionText) {
|
|
477
|
+
result.modals.push({
|
|
478
|
+
triggerElement: trigger.label,
|
|
479
|
+
title: accordionText.heading || `${trigger.label} (revealed)`,
|
|
480
|
+
content: accordionText.content,
|
|
481
|
+
fields: [],
|
|
482
|
+
stateId,
|
|
483
|
+
domSnapshot,
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// Dismiss: Escape key first, then close button
|
|
489
|
+
await page.keyboard.press('Escape');
|
|
490
|
+
await page.waitForTimeout(400);
|
|
491
|
+
|
|
492
|
+
// Check if toast appeared after the click
|
|
493
|
+
const toasts = await collectToasts(page);
|
|
494
|
+
for (const t of toasts) {
|
|
495
|
+
if (t.length > 5) result.successMessages.push({ type: 'toast', content: t.slice(0, 200) });
|
|
496
|
+
}
|
|
497
|
+
} catch { /* this button's probe failed, try next */ }
|
|
498
|
+
}
|
|
499
|
+
} catch { /* non-fatal */ }
|
|
500
|
+
|
|
501
|
+
// ── Probe 4: Select/radio → conditional reveals ──────────────────────────────
|
|
502
|
+
try {
|
|
503
|
+
const conditionals = await probeConditionals(page);
|
|
504
|
+
result.conditionals.push(...conditionals);
|
|
505
|
+
} catch { /* non-fatal */ }
|
|
506
|
+
|
|
507
|
+
// ── Probe 5: Tab panels — click each tab, capture revealed content ────────────
|
|
508
|
+
try {
|
|
509
|
+
result.tabPanels = await probeTabPanels(page);
|
|
510
|
+
} catch { /* non-fatal */ }
|
|
511
|
+
|
|
512
|
+
// ── Probe 6: Tooltips — hover/title/describedby capture ─────────────────────
|
|
513
|
+
try {
|
|
514
|
+
result.tooltips = await probeTooltips(page);
|
|
515
|
+
} catch { /* non-fatal */ }
|
|
516
|
+
|
|
517
|
+
// ── Probe 7: Carousel/slider slides ──────────────────────────────────────────
|
|
518
|
+
try {
|
|
519
|
+
result.carouselSlides = await probeCarousels(page);
|
|
520
|
+
} catch { /* non-fatal */ }
|
|
521
|
+
|
|
522
|
+
// ── Probe 8: Wizard/multi-step form steps ────────────────────────────────────
|
|
523
|
+
try {
|
|
524
|
+
result.wizardSteps = await probeWizardSteps(page);
|
|
525
|
+
} catch { /* non-fatal */ }
|
|
526
|
+
|
|
527
|
+
// ── Probe 9: Focus-trap detection on any open dialogs ────────────────────────
|
|
528
|
+
try {
|
|
529
|
+
result.focusTraps = await detectFocusTraps(page);
|
|
530
|
+
} catch { /* non-fatal */ }
|
|
531
|
+
|
|
532
|
+
// ── Probe 10: Skip navigation compliance (WCAG 2.4.1) ────────────────────────
|
|
533
|
+
try {
|
|
534
|
+
result.skipNavIssues = await probeSkipNavigation(page);
|
|
535
|
+
} catch { /* non-fatal */ }
|
|
536
|
+
|
|
537
|
+
// ── Probe 11: Context menu capture on canvas/chart elements ──────────────────
|
|
538
|
+
try {
|
|
539
|
+
result.contextMenus = await probeContextMenus(page);
|
|
540
|
+
} catch { /* non-fatal */ }
|
|
541
|
+
|
|
542
|
+
return result;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/** Phase 5: Convert ProbeResult to typed ProbeObservationFact rows for direct DB storage. */
|
|
546
|
+
export function probeResultToObservations(result: ProbeResult): Array<{
|
|
547
|
+
elementMeaning: string; observationType: string; observedText: string; triggeredBy: string;
|
|
548
|
+
}> {
|
|
549
|
+
const obs: Array<{ elementMeaning: string; observationType: string; observedText: string; triggeredBy: string }> = [];
|
|
550
|
+
for (const ve of result.validationErrors) {
|
|
551
|
+
obs.push({ elementMeaning: ve.field, observationType: 'VALIDATION_ERROR', observedText: ve.errorText, triggeredBy: ve.trigger });
|
|
552
|
+
}
|
|
553
|
+
for (const sm of result.successMessages) {
|
|
554
|
+
obs.push({ elementMeaning: '(page)', observationType: 'SUCCESS_TOAST', observedText: sm.content, triggeredBy: sm.type });
|
|
555
|
+
}
|
|
556
|
+
for (const m of result.modals) {
|
|
557
|
+
obs.push({ elementMeaning: m.triggerElement, observationType: 'MODAL', observedText: [m.title, m.content].filter(Boolean).join(' — ').slice(0, 500), triggeredBy: `button_click:${m.triggerElement}` });
|
|
558
|
+
}
|
|
559
|
+
for (const c of result.conditionals) {
|
|
560
|
+
obs.push({ elementMeaning: c.triggerElement, observationType: 'CONDITIONAL_REVEAL', observedText: c.revealedText, triggeredBy: `select_change:${c.triggerElement}:${c.triggerValue}` });
|
|
561
|
+
}
|
|
562
|
+
for (const lp of result.loadingPatterns) {
|
|
563
|
+
obs.push({ elementMeaning: '(submit button)', observationType: 'LOADING_STATE', observedText: lp, triggeredBy: 'form_submit' });
|
|
564
|
+
}
|
|
565
|
+
for (const tp of result.tabPanels ?? []) {
|
|
566
|
+
obs.push({ elementMeaning: tp.tabLabel, observationType: 'TAB_PANEL', observedText: tp.panelContent, triggeredBy: `tab_click:${tp.tabLabel}` });
|
|
567
|
+
}
|
|
568
|
+
for (const tt of result.tooltips ?? []) {
|
|
569
|
+
obs.push({ elementMeaning: tt.triggerLabel, observationType: 'TOOLTIP', observedText: tt.tooltipText, triggeredBy: 'hover_or_title' });
|
|
570
|
+
}
|
|
571
|
+
for (const cs of result.carouselSlides ?? []) {
|
|
572
|
+
obs.push({ elementMeaning: `Slide ${cs.slideIndex + 1}`, observationType: 'CAROUSEL_SLIDE', observedText: cs.content, triggeredBy: `carousel_next:${cs.slideIndex}` });
|
|
573
|
+
}
|
|
574
|
+
for (const ws of result.wizardSteps ?? []) {
|
|
575
|
+
obs.push({ elementMeaning: ws.stepLabel ?? `Step ${ws.stepIndex + 1}`, observationType: 'WIZARD_STEP', observedText: ws.content, triggeredBy: `wizard_next:${ws.stepIndex}` });
|
|
576
|
+
}
|
|
577
|
+
for (const ft of result.focusTraps ?? []) {
|
|
578
|
+
obs.push({ elementMeaning: ft.modalTrigger, observationType: 'FOCUS_TRAP', observedText: ft.focusTrapped ? 'Focus correctly trapped inside dialog' : 'FAIL: focus escaped dialog — WCAG 2.1.2 violation', triggeredBy: 'tab_key_sequence' });
|
|
579
|
+
}
|
|
580
|
+
for (const issue of result.skipNavIssues ?? []) {
|
|
581
|
+
obs.push({ elementMeaning: '(page)', observationType: 'SKIP_NAV_ISSUE', observedText: issue, triggeredBy: 'skip_nav_audit' });
|
|
582
|
+
}
|
|
583
|
+
for (const cm of result.contextMenus ?? []) {
|
|
584
|
+
obs.push({ elementMeaning: cm.trigger, observationType: 'CONTEXT_MENU', observedText: cm.items.join(' | '), triggeredBy: 'right_click' });
|
|
585
|
+
}
|
|
586
|
+
return obs;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Convert a ProbeResult into markdown to store as KnowledgeChunks
|
|
591
|
+
* and update ERROR_CATALOGUE + INTERACTION_PATTERNS skill files.
|
|
592
|
+
*/
|
|
593
|
+
export function probeResultToMarkdown(result: ProbeResult): {
|
|
594
|
+
errorCatalogueChunk: string;
|
|
595
|
+
interactionPatternsChunk: string;
|
|
596
|
+
} {
|
|
597
|
+
const lines: string[] = [`## Probe Observations — ${result.url}\n`];
|
|
598
|
+
|
|
599
|
+
if (result.validationErrors.length > 0) {
|
|
600
|
+
lines.push('### Validation Errors (observed)');
|
|
601
|
+
for (const ve of result.validationErrors) {
|
|
602
|
+
lines.push(`- **${ve.field}** (${ve.trigger}): "${ve.errorText}"`);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (result.successMessages.length > 0) {
|
|
607
|
+
lines.push('\n### Success / Feedback Messages (observed)');
|
|
608
|
+
for (const sm of result.successMessages) {
|
|
609
|
+
lines.push(`- ${sm.type}: "${sm.content}"`);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (result.modals.length > 0) {
|
|
614
|
+
lines.push('\n### Modal / Dialog Contents (observed)');
|
|
615
|
+
for (const m of result.modals) {
|
|
616
|
+
lines.push(`- **Trigger:** ${m.triggerElement}`);
|
|
617
|
+
if (m.title) lines.push(` - Title: ${m.title}`);
|
|
618
|
+
lines.push(` - Content: ${m.content.slice(0, 200)}`);
|
|
619
|
+
if (m.fields.length > 0) lines.push(` - Fields: ${m.fields.join(', ')}`);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if ((result.tabPanels ?? []).length > 0) {
|
|
624
|
+
lines.push('\n### Tab Panel Contents (observed)');
|
|
625
|
+
for (const tp of result.tabPanels!) {
|
|
626
|
+
lines.push(`- **Tab: ${tp.tabLabel}**${tp.panelHeading ? ` — ${tp.panelHeading}` : ''}: ${tp.panelContent.slice(0, 200)}`);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
if ((result.tooltips ?? []).length > 0) {
|
|
631
|
+
lines.push('\n### Tooltips (observed)');
|
|
632
|
+
for (const tt of result.tooltips!) {
|
|
633
|
+
lines.push(`- **${tt.triggerLabel}**: ${tt.tooltipText}`);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
if ((result.carouselSlides ?? []).length > 0) {
|
|
638
|
+
lines.push('\n### Carousel Slides (observed)');
|
|
639
|
+
for (const cs of result.carouselSlides!) {
|
|
640
|
+
lines.push(`- **Slide ${cs.slideIndex + 1}**${cs.heading ? ` — ${cs.heading}` : ''}: ${cs.content.slice(0, 200)}`);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if ((result.wizardSteps ?? []).length > 0) {
|
|
645
|
+
lines.push('\n### Wizard / Multi-Step Form (observed)');
|
|
646
|
+
for (const ws of result.wizardSteps!) {
|
|
647
|
+
const label = ws.stepLabel ? ` — ${ws.stepLabel}` : '';
|
|
648
|
+
lines.push(`- **Step ${ws.stepIndex + 1}${label}**: ${ws.content.slice(0, 200)}`);
|
|
649
|
+
if (ws.fields.length > 0) lines.push(` - Fields: ${ws.fields.join(', ')}`);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
if ((result.focusTraps ?? []).length > 0) {
|
|
654
|
+
lines.push('\n### Focus-Trap Audit (observed)');
|
|
655
|
+
for (const ft of result.focusTraps!) {
|
|
656
|
+
const verdict = ft.focusTrapped ? '✅ PASS' : '❌ FAIL (WCAG 2.1.2)';
|
|
657
|
+
lines.push(`- **${ft.modalTrigger}**: ${verdict} — focused: [${ft.sampledFocused.slice(0, 4).join(', ')}]`);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (result.conditionals.length > 0) {
|
|
662
|
+
lines.push('\n### Conditional UI (observed)');
|
|
663
|
+
for (const c of result.conditionals) {
|
|
664
|
+
lines.push(`- **${c.triggerElement}** = "${c.triggerValue}" reveals: ${c.revealedText}`);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
if (result.loadingPatterns.length > 0) {
|
|
669
|
+
lines.push('\n### Loading State Text (observed)');
|
|
670
|
+
for (const lp of result.loadingPatterns) lines.push(`- "${lp}"`);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
const full = lines.join('\n');
|
|
674
|
+
|
|
675
|
+
const errorSection = result.validationErrors.length > 0
|
|
676
|
+
? `## Real Validation Errors — ${result.url}\n` +
|
|
677
|
+
result.validationErrors.map((e) => `- **${e.field}**: "${e.errorText}"`).join('\n')
|
|
678
|
+
: '';
|
|
679
|
+
|
|
680
|
+
const interactionSection = [
|
|
681
|
+
result.successMessages.length > 0
|
|
682
|
+
? `## Success Messages — ${result.url}\n` + result.successMessages.map((s) => `- ${s.type}: "${s.content}"`).join('\n')
|
|
683
|
+
: '',
|
|
684
|
+
result.loadingPatterns.length > 0
|
|
685
|
+
? `## Loading Patterns — ${result.url}\n` + result.loadingPatterns.map((lp) => `- "${lp}"`).join('\n')
|
|
686
|
+
: '',
|
|
687
|
+
result.modals.length > 0
|
|
688
|
+
? `## Modal Contents — ${result.url}\n` + result.modals.map((m) => `### ${m.triggerElement}\n${m.content}`).join('\n')
|
|
689
|
+
: '',
|
|
690
|
+
].filter(Boolean).join('\n\n');
|
|
691
|
+
|
|
692
|
+
return {
|
|
693
|
+
errorCatalogueChunk: errorSection,
|
|
694
|
+
interactionPatternsChunk: interactionSection,
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Run interactive probing for all screens discovered in a crawl session.
|
|
700
|
+
* Called from crawlProject() when opts.interactive = true.
|
|
701
|
+
*/
|
|
702
|
+
export async function probeAllScreens(
|
|
703
|
+
page: any,
|
|
704
|
+
tenantId: string,
|
|
705
|
+
projectId: string,
|
|
706
|
+
discovered: Array<{ url: string; screenId?: string; elements?: any[] }>,
|
|
707
|
+
onProgress?: (pct: number, step: string) => Promise<void>,
|
|
708
|
+
jobId?: string,
|
|
709
|
+
): Promise<void> {
|
|
710
|
+
const probeable = discovered.filter((d) => d.screenId && d.url && !d.url.includes('#'));
|
|
711
|
+
if (probeable.length === 0) return;
|
|
712
|
+
|
|
713
|
+
const errorCatalogueChunks: string[] = [];
|
|
714
|
+
const interactionChunks: string[] = [];
|
|
715
|
+
|
|
716
|
+
for (let i = 0; i < probeable.length; i++) {
|
|
717
|
+
const screen = probeable[i];
|
|
718
|
+
const pct = 88 + Math.round((i / probeable.length) * 10);
|
|
719
|
+
await onProgress?.(pct, `Probing screen ${i + 1}/${probeable.length}: ${screen.url}`);
|
|
720
|
+
|
|
721
|
+
try {
|
|
722
|
+
// Navigate to screen
|
|
723
|
+
if (page.url() !== screen.url) {
|
|
724
|
+
await page.goto(screen.url, { waitUntil: 'domcontentloaded' });
|
|
725
|
+
await page.waitForTimeout(1500); // SPA hydration
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
const result = await probeScreen(page, screen.screenId!, screen.url, screen.elements ?? []);
|
|
729
|
+
|
|
730
|
+
// Phase 5: save structured probe observations (replaces per-re-probe)
|
|
731
|
+
const observations = probeResultToObservations(result);
|
|
732
|
+
if (observations.length > 0) {
|
|
733
|
+
await AppBrain.saveProbeObservations(tenantId, projectId, screen.screenId!, observations).catch(console.warn);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// Store raw probe result as KnowledgeChunk (kept for BM25 / oversized projects)
|
|
737
|
+
const md = probeResultToMarkdown(result);
|
|
738
|
+
if (md.errorCatalogueChunk) errorCatalogueChunks.push(md.errorCatalogueChunk);
|
|
739
|
+
if (md.interactionPatternsChunk) interactionChunks.push(md.interactionPatternsChunk);
|
|
740
|
+
|
|
741
|
+
const probeMarkdown = [md.errorCatalogueChunk, md.interactionPatternsChunk].filter(Boolean).join('\n\n');
|
|
742
|
+
if (probeMarkdown.length > 50) {
|
|
743
|
+
await AppBrain.saveKnowledgeChunk(tenantId, projectId, 'probe', screen.screenId!, probeMarkdown, `Probe — ${screen.url}`).catch(console.warn);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
// Save Virtual Screens — synthetic URL: parent_url + #probe:<stateId>
|
|
747
|
+
const virtualScreensToSave: Array<{ stateId: string; triggerAction: string; overlayType: string }> = [];
|
|
748
|
+
for (const m of result.modals) {
|
|
749
|
+
if (m.stateId) {
|
|
750
|
+
virtualScreensToSave.push({
|
|
751
|
+
stateId: m.stateId,
|
|
752
|
+
triggerAction: `click ${m.triggerElement}`,
|
|
753
|
+
overlayType: 'modal',
|
|
754
|
+
});
|
|
755
|
+
// Also save as a first-class Screen so it appears in the screen library
|
|
756
|
+
// and participates in test case generation. Use a synthetic URL.
|
|
757
|
+
const modalUrl = `${screen.url}#probe:${m.stateId}`;
|
|
758
|
+
const modalTitle = m.title || `${m.triggerElement} Modal`;
|
|
759
|
+
AppBrain.saveScreen(tenantId, projectId, modalTitle, modalUrl, jobId, 'INTERACTIVE_PROBE')
|
|
760
|
+
.then((modalScreen: any) => {
|
|
761
|
+
// Link modal back to parent via DiscoveredLink
|
|
762
|
+
if (modalScreen?.id && screen.screenId) {
|
|
763
|
+
AppBrain.saveDiscoveredLinks(tenantId, projectId, screen.screenId!, [{
|
|
764
|
+
href: modalUrl,
|
|
765
|
+
text: m.triggerElement,
|
|
766
|
+
linkType: 'BUTTON_LINK',
|
|
767
|
+
source: 'INTERACTIVE',
|
|
768
|
+
toScreenId: modalScreen.id,
|
|
769
|
+
jobId,
|
|
770
|
+
}]).catch(() => {});
|
|
771
|
+
}
|
|
772
|
+
})
|
|
773
|
+
.catch(() => {});
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
for (const c of result.conditionals) {
|
|
777
|
+
if ((c as any).stateId) {
|
|
778
|
+
virtualScreensToSave.push({
|
|
779
|
+
stateId: (c as any).stateId,
|
|
780
|
+
triggerAction: `change ${c.triggerElement} to ${c.triggerValue}`,
|
|
781
|
+
overlayType: 'panel',
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
if (virtualScreensToSave.length > 0) {
|
|
786
|
+
await (AppBrain as any).saveVirtualScreens(tenantId, projectId, screen.screenId!, virtualScreensToSave).catch(console.warn);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
if (result.validationErrors.length > 0) {
|
|
790
|
+
console.log(`[probe] ${screen.url}: ${result.validationErrors.length} validation errors, ${result.modals.length} modals`);
|
|
791
|
+
}
|
|
792
|
+
} catch (err) {
|
|
793
|
+
console.warn(`[probe] ✗ ${screen.url}:`, err instanceof Error ? err.message : err);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
// Update ERROR_CATALOGUE skill file with all real observed errors
|
|
798
|
+
if (errorCatalogueChunks.length > 0) {
|
|
799
|
+
const combined = `# Error Catalogue (Real Observed — Interactive Probe)\n\n${errorCatalogueChunks.join('\n\n')}`;
|
|
800
|
+
await AppBrain.upsertSkillFile(tenantId, projectId, 'ERROR_CATALOGUE', combined, {
|
|
801
|
+
summary: `Real validation error messages observed via interactive probe across ${errorCatalogueChunks.length} screens`,
|
|
802
|
+
scope: 'PROJECT',
|
|
803
|
+
}).catch(console.warn);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
// Update INTERACTION_PATTERNS skill file with real observed patterns
|
|
807
|
+
if (interactionChunks.length > 0) {
|
|
808
|
+
const combined = `# Interaction Patterns (Real Observed — Interactive Probe)\n\n${interactionChunks.join('\n\n')}`;
|
|
809
|
+
await AppBrain.upsertSkillFile(tenantId, projectId, 'INTERACTION_PATTERNS', combined, {
|
|
810
|
+
summary: `Real loading states, success messages, and modal contents observed via interactive probe`,
|
|
811
|
+
scope: 'PROJECT',
|
|
812
|
+
}).catch(console.warn);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
await onProgress?.(98, 'Interactive probe complete');
|
|
816
|
+
console.log(`[probe] Probed ${probeable.length} screens. Errors: ${errorCatalogueChunks.length}, Interactions: ${interactionChunks.length}`);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// ── Keyboard Navigation Probe ────────────────────────────────────────────────
|
|
820
|
+
|
|
821
|
+
export interface FocusableElement {
|
|
822
|
+
tag: string;
|
|
823
|
+
role: string | null;
|
|
824
|
+
ariaLabel: string | null;
|
|
825
|
+
text: string | null;
|
|
826
|
+
hasFocusIndicator: boolean;
|
|
827
|
+
tabIndex: number | null;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export interface KeyboardNavResult {
|
|
831
|
+
focusableCount: number;
|
|
832
|
+
elementsWithNoFocusIndicator: number;
|
|
833
|
+
sequence: FocusableElement[];
|
|
834
|
+
issues: string[];
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/** Verify skip-navigation links exist and their targets are present in the DOM. */
|
|
838
|
+
async function probeSkipNavigation(page: Page): Promise<string[]> {
|
|
839
|
+
const issues: string[] = [];
|
|
840
|
+
try {
|
|
841
|
+
const skipLinks = await page.evaluate(() =>
|
|
842
|
+
Array.from(document.querySelectorAll('a[href^="#"]'))
|
|
843
|
+
.filter((el) => /skip|jump to|main content|content|nav/i.test((el as HTMLElement).innerText?.toLowerCase().trim() || ''))
|
|
844
|
+
.map((el) => ({
|
|
845
|
+
text: (el as HTMLElement).innerText?.trim() || '',
|
|
846
|
+
href: el.getAttribute('href') || '',
|
|
847
|
+
hasTarget: !!document.querySelector(el.getAttribute('href') || '#__invalid__'),
|
|
848
|
+
}))
|
|
849
|
+
);
|
|
850
|
+
if (skipLinks.length === 0) {
|
|
851
|
+
issues.push('No skip navigation links found (WCAG 2.4.1 — keyboard users cannot bypass nav blocks)');
|
|
852
|
+
}
|
|
853
|
+
for (const link of skipLinks) {
|
|
854
|
+
if (!link.hasTarget) issues.push(`Skip link "${link.text}" → "${link.href}" target not found in DOM`);
|
|
855
|
+
}
|
|
856
|
+
} catch { /* non-fatal */ }
|
|
857
|
+
return issues;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/** Right-click on canvas, chart, and context-menu elements to capture context menu items. */
|
|
861
|
+
async function probeContextMenus(page: Page): Promise<ContextMenuCapture[]> {
|
|
862
|
+
const results: ContextMenuCapture[] = [];
|
|
863
|
+
try {
|
|
864
|
+
const targets = await page.$$('canvas, [data-contextmenu], [oncontextmenu], [class*="chart" i]:not(script)');
|
|
865
|
+
for (const t of targets.slice(0, 4)) {
|
|
866
|
+
try {
|
|
867
|
+
await t.click({ button: 'right', timeout: 1000 });
|
|
868
|
+
await page.waitForTimeout(350);
|
|
869
|
+
const items = await page.evaluate(() =>
|
|
870
|
+
Array.from(document.querySelectorAll('[role="menu"] [role="menuitem"], .context-menu-item, [class*="contextmenu" i] li'))
|
|
871
|
+
.map((el) => (el as HTMLElement).innerText?.trim())
|
|
872
|
+
.filter(Boolean).slice(0, 12)
|
|
873
|
+
);
|
|
874
|
+
if (items.length > 0) {
|
|
875
|
+
const trigger = await t.evaluate((el) => (el as HTMLElement).getAttribute('aria-label') || (el as HTMLElement).className.slice(0, 40) || el.tagName).catch(() => '');
|
|
876
|
+
results.push({ trigger, items });
|
|
877
|
+
}
|
|
878
|
+
await page.keyboard.press('Escape').catch(() => { });
|
|
879
|
+
} catch { /* skip this target */ }
|
|
880
|
+
}
|
|
881
|
+
} catch { /* non-fatal */ }
|
|
882
|
+
return results;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/** Click carousel next buttons up to 8 slides and record content of each revealed slide. */
|
|
886
|
+
async function probeCarousels(page: Page): Promise<CarouselSlide[]> {
|
|
887
|
+
const results: CarouselSlide[] = [];
|
|
888
|
+
try {
|
|
889
|
+
const CAROUSEL_SEL = '[class*="carousel" i], [class*="slider" i], [class*="swiper" i], [role="region"][aria-roledescription*="carousel" i]';
|
|
890
|
+
const hasCarousel = await page.evaluate((sel) => !!document.querySelector(sel), CAROUSEL_SEL);
|
|
891
|
+
if (!hasCarousel) return results;
|
|
892
|
+
|
|
893
|
+
const NEXT_SEL = '[aria-label*="next" i], [aria-label*="Next"], [class*="next" i]:not([class*="footnext"]):not(a), button[class*="arrow-right" i], button[class*="chevron-right" i]';
|
|
894
|
+
|
|
895
|
+
// Capture slide 0 (current state)
|
|
896
|
+
const slide0 = await page.evaluate((carSel) => {
|
|
897
|
+
const car = document.querySelector(carSel) as HTMLElement | null;
|
|
898
|
+
if (!car) return null;
|
|
899
|
+
const active = car.querySelector('[aria-hidden="false"], .active, [class*="active" i], [class*="current" i]') as HTMLElement | null;
|
|
900
|
+
const target = active ?? car;
|
|
901
|
+
return { heading: target.querySelector('h2,h3,h4')?.textContent?.trim() ?? '', content: target.innerText?.replace(/\s+/g, ' ').trim().slice(0, 300) ?? '' };
|
|
902
|
+
}, CAROUSEL_SEL);
|
|
903
|
+
if (slide0?.content && slide0.content.length > 15) results.push({ slideIndex: 0, heading: slide0.heading || undefined, content: slide0.content });
|
|
904
|
+
|
|
905
|
+
const seen = new Set<string>(slide0?.content ? [slide0.content] : []);
|
|
906
|
+
for (let i = 1; i < 8; i++) {
|
|
907
|
+
try {
|
|
908
|
+
const nextBtn = page.locator(NEXT_SEL).first();
|
|
909
|
+
const visible = await nextBtn.isVisible().catch(() => false);
|
|
910
|
+
if (!visible) break;
|
|
911
|
+
await nextBtn.click({ timeout: 1000 });
|
|
912
|
+
await page.waitForTimeout(600);
|
|
913
|
+
const slide = await page.evaluate((carSel) => {
|
|
914
|
+
const car = document.querySelector(carSel) as HTMLElement | null;
|
|
915
|
+
if (!car) return null;
|
|
916
|
+
const active = car.querySelector('[aria-hidden="false"], .active, [class*="active" i], [class*="current" i]') as HTMLElement | null;
|
|
917
|
+
const target = active ?? car;
|
|
918
|
+
return { heading: target.querySelector('h2,h3,h4')?.textContent?.trim() ?? '', content: target.innerText?.replace(/\s+/g, ' ').trim().slice(0, 300) ?? '' };
|
|
919
|
+
}, CAROUSEL_SEL);
|
|
920
|
+
if (!slide?.content || slide.content.length < 15 || seen.has(slide.content)) break;
|
|
921
|
+
seen.add(slide.content);
|
|
922
|
+
results.push({ slideIndex: i, heading: slide.heading || undefined, content: slide.content });
|
|
923
|
+
} catch { break; }
|
|
924
|
+
}
|
|
925
|
+
} catch { /* non-fatal */ }
|
|
926
|
+
return results;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/** Follow Next/Continue buttons to capture each wizard step's fields and content. */
|
|
930
|
+
async function probeWizardSteps(page: Page): Promise<WizardStep[]> {
|
|
931
|
+
const results: WizardStep[] = [];
|
|
932
|
+
try {
|
|
933
|
+
const NEXT_LABELS = /^(next|continue|proceed|step \d|›|→|forward)/i;
|
|
934
|
+
const BACK_LABELS = /^(back|previous|prev|‹|←)/i;
|
|
935
|
+
const WIZARD_INDICATORS = '[role="progressbar"], [class*="stepper" i], [class*="wizard" i], [class*="progress-step" i], [aria-label*="step" i]';
|
|
936
|
+
const isWizard = await page.evaluate((sel) => !!document.querySelector(sel), WIZARD_INDICATORS);
|
|
937
|
+
if (!isWizard) return results;
|
|
938
|
+
|
|
939
|
+
const captureStep = async (stepIndex: number): Promise<WizardStep> => {
|
|
940
|
+
const data = await page.evaluate(() => {
|
|
941
|
+
const content = (document.querySelector('main, [role="main"], form') as HTMLElement | null)?.innerText?.replace(/\s+/g, ' ').trim().slice(0, 400) ?? '';
|
|
942
|
+
const stepLabel = document.querySelector('[aria-current="step"], [class*="step-label" i], [class*="stepper-label" i]')?.textContent?.trim() ?? '';
|
|
943
|
+
const fields = Array.from(document.querySelectorAll('input:not([type="hidden"]), select, textarea'))
|
|
944
|
+
.map((el) => (el as HTMLElement).getAttribute('aria-label') || (el as HTMLInputElement).placeholder || (el as HTMLInputElement).name || '')
|
|
945
|
+
.filter(Boolean).slice(0, 10);
|
|
946
|
+
return { content, stepLabel, fields };
|
|
947
|
+
});
|
|
948
|
+
return { stepIndex, stepLabel: data.stepLabel || undefined, content: data.content, fields: data.fields };
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
results.push(await captureStep(0));
|
|
952
|
+
|
|
953
|
+
for (let i = 1; i < 6; i++) {
|
|
954
|
+
try {
|
|
955
|
+
const nextLabel = await page.evaluate((nextRe) => {
|
|
956
|
+
const btns = Array.from(document.querySelectorAll('button, [role="button"]'));
|
|
957
|
+
const btn = btns.find((b) => new RegExp(nextRe).test((b as HTMLElement).innerText?.trim() || ''));
|
|
958
|
+
return (btn as HTMLElement)?.innerText?.trim() || null;
|
|
959
|
+
}, NEXT_LABELS.source);
|
|
960
|
+
if (!nextLabel) break;
|
|
961
|
+
const btn = page.locator(`button:has-text("${nextLabel}")`).first();
|
|
962
|
+
await btn.click({ timeout: 1500 });
|
|
963
|
+
await page.waitForTimeout(800);
|
|
964
|
+
results.push(await captureStep(i));
|
|
965
|
+
} catch { break; }
|
|
966
|
+
}
|
|
967
|
+
} catch { /* non-fatal */ }
|
|
968
|
+
return results;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/** For each open modal, Tab 8× and verify focus stays inside the dialog (focus-trap check). */
|
|
972
|
+
async function detectFocusTraps(page: Page): Promise<FocusTrapResult[]> {
|
|
973
|
+
const results: FocusTrapResult[] = [];
|
|
974
|
+
try {
|
|
975
|
+
const openDialogs = await page.evaluate(() => {
|
|
976
|
+
return Array.from(document.querySelectorAll('[role="dialog"], [role="alertdialog"]'))
|
|
977
|
+
.filter((el) => window.getComputedStyle(el).display !== 'none')
|
|
978
|
+
.map((el) => el.getAttribute('aria-label') || el.querySelector('[role="heading"]')?.textContent?.trim() || 'dialog');
|
|
979
|
+
});
|
|
980
|
+
for (const dialogLabel of openDialogs.slice(0, 3)) {
|
|
981
|
+
const sampled: string[] = [];
|
|
982
|
+
let allInside = true;
|
|
983
|
+
for (let i = 0; i < 8; i++) {
|
|
984
|
+
await page.keyboard.press('Tab');
|
|
985
|
+
await page.waitForTimeout(80);
|
|
986
|
+
const focused = await page.evaluate(() => {
|
|
987
|
+
const el = document.activeElement as HTMLElement | null;
|
|
988
|
+
const inDialog = !!el?.closest('[role="dialog"], [role="alertdialog"]');
|
|
989
|
+
return { label: el?.getAttribute('aria-label') || el?.textContent?.trim().slice(0, 40) || el?.tagName || '', inDialog };
|
|
990
|
+
});
|
|
991
|
+
sampled.push(focused.label);
|
|
992
|
+
if (!focused.inDialog) { allInside = false; break; }
|
|
993
|
+
}
|
|
994
|
+
results.push({ modalTrigger: dialogLabel, focusTrapped: allInside, sampledFocused: sampled });
|
|
995
|
+
}
|
|
996
|
+
} catch { /* non-fatal */ }
|
|
997
|
+
return results;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/** Click each visible tab and record the panel content revealed. */
|
|
1001
|
+
async function probeTabPanels(page: Page): Promise<TabPanelCapture[]> {
|
|
1002
|
+
const results: TabPanelCapture[] = [];
|
|
1003
|
+
try {
|
|
1004
|
+
const tabs = await page.$$('[role="tab"]:not([aria-disabled="true"])');
|
|
1005
|
+
for (const tab of tabs.slice(0, 10)) {
|
|
1006
|
+
try {
|
|
1007
|
+
const tabLabel = await tab.evaluate((el) => (el as HTMLElement).innerText?.trim() || el.getAttribute('aria-label') || '');
|
|
1008
|
+
if (!tabLabel) continue;
|
|
1009
|
+
await tab.click({ timeout: 1000 });
|
|
1010
|
+
await page.waitForTimeout(400);
|
|
1011
|
+
const panelContent = await page.evaluate(() => {
|
|
1012
|
+
const panel = document.querySelector('[role="tabpanel"]:not([hidden])') as HTMLElement | null;
|
|
1013
|
+
if (!panel) return null;
|
|
1014
|
+
const style = window.getComputedStyle(panel);
|
|
1015
|
+
if (style.display === 'none' || style.visibility === 'hidden') return null;
|
|
1016
|
+
return {
|
|
1017
|
+
heading: panel.querySelector('h2,h3,h4')?.textContent?.trim() ?? '',
|
|
1018
|
+
content: panel.innerText?.replace(/\s+/g, ' ').trim().slice(0, 400) ?? '',
|
|
1019
|
+
};
|
|
1020
|
+
});
|
|
1021
|
+
if (panelContent?.content && panelContent.content.length > 15) {
|
|
1022
|
+
results.push({ tabLabel: tabLabel.slice(0, 60), panelContent: panelContent.content, panelHeading: panelContent.heading || undefined });
|
|
1023
|
+
}
|
|
1024
|
+
} catch { /* this tab failed, try next */ }
|
|
1025
|
+
}
|
|
1026
|
+
} catch { /* non-fatal */ }
|
|
1027
|
+
return results;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/** Hover elements with title/aria-describedby to capture tooltip text. */
|
|
1031
|
+
async function probeTooltips(page: Page): Promise<TooltipCapture[]> {
|
|
1032
|
+
const results: TooltipCapture[] = [];
|
|
1033
|
+
try {
|
|
1034
|
+
const candidates = await page.evaluate(() => {
|
|
1035
|
+
return Array.from(document.querySelectorAll('[title], [aria-describedby], [data-tooltip], [data-tip], [class*="tooltip" i]'))
|
|
1036
|
+
.filter((el) => {
|
|
1037
|
+
const style = window.getComputedStyle(el as HTMLElement);
|
|
1038
|
+
return style.display !== 'none' && style.visibility !== 'hidden';
|
|
1039
|
+
})
|
|
1040
|
+
.slice(0, 8)
|
|
1041
|
+
.map((el) => ({
|
|
1042
|
+
label: (el as HTMLElement).innerText?.trim().slice(0, 60) || el.getAttribute('aria-label') || '',
|
|
1043
|
+
title: el.getAttribute('title') || '',
|
|
1044
|
+
describedBy: el.getAttribute('aria-describedby') || '',
|
|
1045
|
+
selector: el.tagName.toLowerCase() + (el.id ? `#${el.id}` : ''),
|
|
1046
|
+
}));
|
|
1047
|
+
});
|
|
1048
|
+
for (const c of candidates) {
|
|
1049
|
+
try {
|
|
1050
|
+
// Prefer title attribute directly — no need to hover for static tooltips
|
|
1051
|
+
if (c.title && c.title.length > 5) {
|
|
1052
|
+
results.push({ triggerLabel: c.label || c.selector, tooltipText: c.title.slice(0, 200) });
|
|
1053
|
+
continue;
|
|
1054
|
+
}
|
|
1055
|
+
if (c.describedBy) {
|
|
1056
|
+
const tooltipText = await page.evaluate((id) => document.getElementById(id)?.textContent?.trim() ?? '', c.describedBy);
|
|
1057
|
+
if (tooltipText && tooltipText.length > 5) {
|
|
1058
|
+
results.push({ triggerLabel: c.label || c.selector, tooltipText: tooltipText.slice(0, 200) });
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
} catch { /* skip this element */ }
|
|
1062
|
+
}
|
|
1063
|
+
} catch { /* non-fatal */ }
|
|
1064
|
+
return results;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Probe keyboard navigation accessibility by pressing Tab up to 50 times and
|
|
1069
|
+
* recording each focused element's properties and focus-indicator visibility.
|
|
1070
|
+
* Stops early if focus wraps back to the start or hits the same element twice.
|
|
1071
|
+
*/
|
|
1072
|
+
export async function probeKeyboardNav(page: Page): Promise<KeyboardNavResult> {
|
|
1073
|
+
const sequence: FocusableElement[] = [];
|
|
1074
|
+
const issues: string[] = [];
|
|
1075
|
+
const seenKeys = new Set<string>();
|
|
1076
|
+
let firstKey: string | null = null;
|
|
1077
|
+
|
|
1078
|
+
for (let i = 0; i < 50; i++) {
|
|
1079
|
+
await page.keyboard.press('Tab');
|
|
1080
|
+
|
|
1081
|
+
const el = await page.evaluate(() => {
|
|
1082
|
+
const active = document.activeElement as HTMLElement | null;
|
|
1083
|
+
if (!active || active === document.body) return null;
|
|
1084
|
+
const outline = window.getComputedStyle(active).outline;
|
|
1085
|
+
return {
|
|
1086
|
+
tag: active.tagName.toLowerCase(),
|
|
1087
|
+
role: active.getAttribute('role'),
|
|
1088
|
+
ariaLabel: active.getAttribute('aria-label'),
|
|
1089
|
+
text: (active.innerText ?? '').trim().slice(0, 60) || null,
|
|
1090
|
+
outline,
|
|
1091
|
+
tabIndex: active.tabIndex ?? null,
|
|
1092
|
+
};
|
|
1093
|
+
});
|
|
1094
|
+
|
|
1095
|
+
if (!el) break;
|
|
1096
|
+
|
|
1097
|
+
const hasFocusIndicator =
|
|
1098
|
+
el.outline !== 'none' &&
|
|
1099
|
+
el.outline !== '' &&
|
|
1100
|
+
!el.outline.startsWith('0px') &&
|
|
1101
|
+
!el.outline.startsWith('rgba(0, 0, 0, 0)') &&
|
|
1102
|
+
!el.outline.startsWith('rgba(0,0,0,0)');
|
|
1103
|
+
|
|
1104
|
+
const focusable: FocusableElement = {
|
|
1105
|
+
tag: el.tag,
|
|
1106
|
+
role: el.role,
|
|
1107
|
+
ariaLabel: el.ariaLabel,
|
|
1108
|
+
text: el.text,
|
|
1109
|
+
hasFocusIndicator,
|
|
1110
|
+
tabIndex: el.tabIndex,
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
const key = `${el.tag}|${el.text ?? ''}|${el.role ?? ''}`;
|
|
1114
|
+
|
|
1115
|
+
if (i === 0) {
|
|
1116
|
+
firstKey = key;
|
|
1117
|
+
} else if (key === firstKey || seenKeys.has(key)) {
|
|
1118
|
+
// Focus wrapped back to start or hit a duplicate — stop probing
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
seenKeys.add(key);
|
|
1123
|
+
sequence.push(focusable);
|
|
1124
|
+
|
|
1125
|
+
if (!hasFocusIndicator) {
|
|
1126
|
+
issues.push(`Element #${i + 1} (${el.tag}) has no visible focus indicator`);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
return {
|
|
1131
|
+
focusableCount: sequence.length,
|
|
1132
|
+
elementsWithNoFocusIndicator: issues.length,
|
|
1133
|
+
sequence,
|
|
1134
|
+
issues,
|
|
1135
|
+
};
|
|
1136
|
+
}
|