@crvouga/atlas 0.0.0-stage → 0.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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +649 -2
- package/dist/bun/src/driver.d.ts +67 -0
- package/dist/bun/src/driver.js +90 -0
- package/dist/bun/src/index.d.ts +2 -0
- package/dist/bun/src/index.js +2 -0
- package/dist/core/src/cli.d.ts +1 -0
- package/dist/core/src/cli.js +177 -0
- package/dist/core/src/config.d.ts +477 -0
- package/dist/core/src/config.js +100 -0
- package/dist/core/src/events/cloudevents.d.ts +56 -0
- package/dist/core/src/events/cloudevents.js +152 -0
- package/dist/core/src/graph.d.ts +113 -0
- package/dist/core/src/graph.js +221 -0
- package/dist/core/src/index.d.ts +17 -0
- package/dist/core/src/index.js +17 -0
- package/dist/core/src/lint.d.ts +53 -0
- package/dist/core/src/lint.js +138 -0
- package/dist/core/src/plan.d.ts +109 -0
- package/dist/core/src/plan.js +324 -0
- package/dist/core/src/privacy.d.ts +8 -0
- package/dist/core/src/privacy.js +42 -0
- package/dist/core/src/report/formats.d.ts +69 -0
- package/dist/core/src/report/formats.js +109 -0
- package/dist/core/src/report/markdown.d.ts +8 -0
- package/dist/core/src/report/markdown.js +140 -0
- package/dist/core/src/run/clients.d.ts +42 -0
- package/dist/core/src/run/clients.js +250 -0
- package/dist/core/src/run/execute.d.ts +854 -0
- package/dist/core/src/run/execute.js +877 -0
- package/dist/core/src/run/frames.d.ts +16 -0
- package/dist/core/src/run/frames.js +52 -0
- package/dist/core/src/run/http.d.ts +41 -0
- package/dist/core/src/run/http.js +71 -0
- package/dist/core/src/run/types.d.ts +248 -0
- package/dist/core/src/run/types.js +39 -0
- package/dist/core/src/signals.d.ts +110 -0
- package/dist/core/src/signals.js +121 -0
- package/dist/core/src/spec/compose.d.ts +28 -0
- package/dist/core/src/spec/compose.js +71 -0
- package/dist/core/src/spec/index.d.ts +5 -0
- package/dist/core/src/spec/index.js +5 -0
- package/dist/core/src/spec/load.d.ts +8 -0
- package/dist/core/src/spec/load.js +46 -0
- package/dist/core/src/spec/parse.d.ts +5 -0
- package/dist/core/src/spec/parse.js +32 -0
- package/dist/core/src/spec/scxml.d.ts +19 -0
- package/dist/core/src/spec/scxml.js +239 -0
- package/dist/core/src/spec/types.d.ts +96 -0
- package/dist/core/src/spec/types.js +25 -0
- package/dist/detox/src/index.d.ts +75 -0
- package/dist/detox/src/index.js +110 -0
- package/dist/playwright/src/driver.d.ts +44 -0
- package/dist/playwright/src/driver.js +82 -0
- package/dist/playwright/src/index.d.ts +3 -0
- package/dist/playwright/src/index.js +3 -0
- package/dist/playwright/src/media.d.ts +68 -0
- package/dist/playwright/src/media.js +283 -0
- package/dist/playwright/src/signals.d.ts +34 -0
- package/dist/playwright/src/signals.js +56 -0
- package/dist/reports/src/browser-navigation.d.ts +2 -0
- package/dist/reports/src/browser-navigation.js +28 -0
- package/dist/reports/src/bundle.d.ts +24 -0
- package/dist/reports/src/bundle.js +114 -0
- package/dist/reports/src/catalog.d.ts +37 -0
- package/dist/reports/src/catalog.js +127 -0
- package/dist/reports/src/clock.d.ts +14 -0
- package/dist/reports/src/clock.js +4 -0
- package/dist/reports/src/completion-order.d.ts +10 -0
- package/dist/reports/src/completion-order.js +76 -0
- package/dist/reports/src/evidence-live.d.ts +40 -0
- package/dist/reports/src/evidence-live.js +118 -0
- package/dist/reports/src/evidence-types.d.ts +90 -0
- package/dist/reports/src/evidence-types.js +15 -0
- package/dist/reports/src/evidence-view.d.ts +68 -0
- package/dist/reports/src/evidence-view.js +113 -0
- package/dist/reports/src/explorer-types.d.ts +56 -0
- package/dist/reports/src/explorer-types.js +0 -0
- package/dist/reports/src/explorer-versions.d.ts +4 -0
- package/dist/reports/src/explorer-versions.js +21 -0
- package/dist/reports/src/export-evidence.d.ts +11 -0
- package/dist/reports/src/export-evidence.js +94 -0
- package/dist/reports/src/fetcher.d.ts +50 -0
- package/dist/reports/src/fetcher.js +205 -0
- package/dist/reports/src/format-date.d.ts +1 -0
- package/dist/reports/src/format-date.js +10 -0
- package/dist/reports/src/format.d.ts +16 -0
- package/dist/reports/src/format.js +71 -0
- package/dist/reports/src/frames.d.ts +46 -0
- package/dist/reports/src/frames.js +245 -0
- package/dist/reports/src/hash.d.ts +17 -0
- package/dist/reports/src/hash.js +43 -0
- package/dist/reports/src/html-frame.d.ts +13 -0
- package/dist/reports/src/html-frame.js +63 -0
- package/dist/reports/src/http.d.ts +3 -0
- package/dist/reports/src/http.js +0 -0
- package/dist/reports/src/junit.d.ts +23 -0
- package/dist/reports/src/junit.js +119 -0
- package/dist/reports/src/keyboard.d.ts +16 -0
- package/dist/reports/src/keyboard.js +135 -0
- package/dist/reports/src/keys.d.ts +53 -0
- package/dist/reports/src/keys.js +122 -0
- package/dist/reports/src/layer-catalog.d.ts +5 -0
- package/dist/reports/src/layer-catalog.js +39 -0
- package/dist/reports/src/layer-merge.d.ts +43 -0
- package/dist/reports/src/layer-merge.js +154 -0
- package/dist/reports/src/layer-source.d.ts +6 -0
- package/dist/reports/src/layer-source.js +32 -0
- package/dist/reports/src/layer-store.d.ts +10 -0
- package/dist/reports/src/layer-store.js +36 -0
- package/dist/reports/src/layer-types.d.ts +32 -0
- package/dist/reports/src/layer-types.js +0 -0
- package/dist/reports/src/layers-route.d.ts +20 -0
- package/dist/reports/src/layers-route.js +259 -0
- package/dist/reports/src/namespace-guard.d.ts +11 -0
- package/dist/reports/src/namespace-guard.js +40 -0
- package/dist/reports/src/navigation.d.ts +8 -0
- package/dist/reports/src/navigation.js +0 -0
- package/dist/reports/src/object-io.d.ts +9 -0
- package/dist/reports/src/object-io.js +41 -0
- package/dist/reports/src/object-store.d.ts +67 -0
- package/dist/reports/src/object-store.js +32 -0
- package/dist/reports/src/performance-part.d.ts +9 -0
- package/dist/reports/src/performance-part.js +42 -0
- package/dist/reports/src/performance.d.ts +13 -0
- package/dist/reports/src/performance.js +45 -0
- package/dist/reports/src/persist.d.ts +10 -0
- package/dist/reports/src/persist.js +38 -0
- package/dist/reports/src/phone.d.ts +5 -0
- package/dist/reports/src/phone.js +18 -0
- package/dist/reports/src/protocol.d.ts +78 -0
- package/dist/reports/src/protocol.js +36 -0
- package/dist/reports/src/publication.d.ts +4 -0
- package/dist/reports/src/publication.js +35 -0
- package/dist/reports/src/publish.d.ts +52 -0
- package/dist/reports/src/publish.js +189 -0
- package/dist/reports/src/read.d.ts +62 -0
- package/dist/reports/src/read.js +214 -0
- package/dist/reports/src/recording-bundle.d.ts +22 -0
- package/dist/reports/src/recording-bundle.js +4 -0
- package/dist/reports/src/recording-keys.d.ts +9 -0
- package/dist/reports/src/recording-keys.js +50 -0
- package/dist/reports/src/remote-report.d.ts +39 -0
- package/dist/reports/src/remote-report.js +304 -0
- package/dist/reports/src/report-loader.d.ts +22 -0
- package/dist/reports/src/report-loader.js +0 -0
- package/dist/reports/src/report-parts.d.ts +10 -0
- package/dist/reports/src/report-parts.js +112 -0
- package/dist/reports/src/report-types.d.ts +194 -0
- package/dist/reports/src/report-types.js +29 -0
- package/dist/reports/src/reports-explorer-route.d.ts +90 -0
- package/dist/reports/src/reports-explorer-route.js +65 -0
- package/dist/reports/src/reports-list-route.d.ts +23 -0
- package/dist/reports/src/reports-list-route.js +55 -0
- package/dist/reports/src/reports-route.d.ts +267 -0
- package/dist/reports/src/reports-route.js +204 -0
- package/dist/reports/src/reports-store.d.ts +11 -0
- package/dist/reports/src/reports-store.js +28 -0
- package/dist/reports/src/resilient-cache.d.ts +3 -0
- package/dist/reports/src/resilient-cache.js +33 -0
- package/dist/reports/src/retention.d.ts +9 -0
- package/dist/reports/src/retention.js +16 -0
- package/dist/reports/src/scenario.d.ts +15 -0
- package/dist/reports/src/scenario.js +35 -0
- package/dist/reports/src/snapshot-bundle.d.ts +18 -0
- package/dist/reports/src/snapshot-bundle.js +94 -0
- package/dist/reports/src/snapshot-surface.d.ts +29 -0
- package/dist/reports/src/snapshot-surface.js +339 -0
- package/dist/reports/src/source-content.d.ts +30 -0
- package/dist/reports/src/source-content.js +63 -0
- package/dist/reports/src/source-entries.d.ts +4 -0
- package/dist/reports/src/source-entries.js +34 -0
- package/dist/reports/src/source-part.d.ts +4 -0
- package/dist/reports/src/source-part.js +66 -0
- package/dist/reports/src/source-reader.d.ts +6 -0
- package/dist/reports/src/source-reader.js +17 -0
- package/dist/reports/src/spec-evidence.d.ts +6 -0
- package/dist/reports/src/spec-evidence.js +20 -0
- package/dist/reports/src/spec-inventory.d.ts +14 -0
- package/dist/reports/src/spec-inventory.js +75 -0
- package/dist/reports/src/status.d.ts +4 -0
- package/dist/reports/src/status.js +8 -0
- package/dist/reports/src/store-prefix.d.ts +21 -0
- package/dist/reports/src/store-prefix.js +53 -0
- package/dist/reports/src/test-catalog-entity.d.ts +3 -0
- package/dist/reports/src/test-catalog-entity.js +34 -0
- package/dist/reports/src/types.d.ts +5 -0
- package/dist/reports/src/types.js +0 -0
- package/dist/reports/src/use-report-nav.d.ts +25 -0
- package/dist/reports/src/use-report-nav.js +181 -0
- package/dist/schema/src/common.d.ts +57 -0
- package/dist/schema/src/common.js +32 -0
- package/dist/schema/src/index.d.ts +5 -0
- package/dist/schema/src/index.js +5 -0
- package/dist/schema/src/manifest.d.ts +457 -0
- package/dist/schema/src/manifest.js +247 -0
- package/dist/schema/src/report-sources.d.ts +68 -0
- package/dist/schema/src/report-sources.js +53 -0
- package/dist/schema/src/runs-index.d.ts +52 -0
- package/dist/schema/src/runs-index.js +24 -0
- package/dist/schema/src/spec.d.ts +245 -0
- package/dist/schema/src/spec.js +133 -0
- package/dist/vitest/src/index.d.ts +22 -0
- package/dist/vitest/src/index.js +33 -0
- package/dist/webdriver/src/driver.d.ts +69 -0
- package/dist/webdriver/src/driver.js +230 -0
- package/dist/webdriver/src/index.d.ts +11 -0
- package/dist/webdriver/src/index.js +10 -0
- package/dist/webdriver/src/protocol.d.ts +60 -0
- package/dist/webdriver/src/protocol.js +146 -0
- package/package.json +181 -4
- package/packages/bun/README.md +69 -0
- package/packages/core/README.md +78 -0
- package/packages/core/bin/atlas.mjs +8 -0
- package/packages/detox/README.md +73 -0
- package/packages/playwright/README.md +77 -0
- package/packages/reports/README.md +47 -0
- package/packages/reports/STORAGE.md +73 -0
- package/packages/schema/README.md +23 -0
- package/packages/schema/schemas/atlas-change.schema.json +34 -0
- package/packages/schema/schemas/atlas.schema.json +32 -0
- package/packages/schema/schemas/cloud-event.schema.json +40 -0
- package/packages/schema/schemas/journeys.schema.json +17 -0
- package/packages/schema/schemas/manifest.schema.json +160 -0
- package/packages/schema/schemas/path-record.schema.json +151 -0
- package/packages/schema/schemas/report-sources.schema.json +95 -0
- package/packages/schema/schemas/run-info.schema.json +176 -0
- package/packages/schema/schemas/run-summary.schema.json +206 -0
- package/packages/schema/schemas/runs-index.schema.json +23 -0
- package/packages/schema/schemas/state-node.schema.json +238 -0
- package/packages/schema/schemas/state-record.schema.json +354 -0
- package/packages/schema/schemas/timeline-entry.schema.json +124 -0
- package/packages/schema/schemas/transition-record.schema.json +125 -0
- package/packages/visualizer/README.md +154 -0
- package/packages/visualizer/bin/atlas-visualizer.mjs +176 -0
- package/packages/visualizer/example/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/example/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/example/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/example/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/example/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +245 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +12 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +2003 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/006.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/007.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/008.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/009.vtt +13 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/010.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/011.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/012.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/013.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/failed-01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/failed-01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/ctrf.json +247 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/junit.xml +12 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/manifest.json +1875 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/ctrf.json +244 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/junit.xml +12 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/manifest.json +1977 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/005.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/006.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +472 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +16 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +3701 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/006.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/007.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/008.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/009.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/010.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/011.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/012.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/013.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/014.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/015.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/016.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/017.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/018.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/019.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/020.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/021.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/022.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/023.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/024.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/025.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/026.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/027.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/028.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/06.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/06.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/07.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/07.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/08.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/08.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/09.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/09.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/10.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/10.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/11.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/11.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/12.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/12.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/13.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/13.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/14.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/14.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-6/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-6/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-7/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-7/01.webp +0 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/ctrf.json +1280 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/junit.xml +26 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/manifest.json +28393 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/identity-check.machine.yaml +397 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/atlas.yaml +65 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/journeys.yaml +132 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/refund-handling.scxml +288 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/journeys.yaml +126 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/machine.yaml +831 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/product-comparison.machine.yaml +395 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/journeys.yaml +120 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/machine.yaml +724 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/open-questions.md +16 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/payment.scxml +288 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/delivery-scheduling.machine.yaml +397 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/journeys.yaml +132 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/known-issues.md +13 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/escalation.machine.yaml +395 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/journeys.yaml +123 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/machine.yaml +720 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T10-00-00-000Z-showcase/manifest.json +68 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/ctrf.json +50 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/junit.xml +6 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/manifest.json +1281 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/ctrf.json +50 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/junit.xml +6 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/manifest.json +1232 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T13-00-00-000Z-showcase/manifest.json +1244 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/journeys.yaml +134 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/loyalty.scxml +4 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/machine.yaml +156 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +149 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +1718 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +17 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +17 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/00-start-01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/00-start-01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +79 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +7 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +1504 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +17 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/spec-only/runs/.gitkeep +0 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/index.html +13 -0
- package/packages/visualizer/scripts/make-fixtures.ts +1490 -0
- package/packages/visualizer/scripts/publish-data.ts +22 -0
- package/packages/visualizer/src/app/AppShell.tsx +56 -0
- package/packages/visualizer/src/app/atlas-context.tsx +23 -0
- package/packages/visualizer/src/app/gazetteer.module.css +97 -0
- package/packages/visualizer/src/app/gazetteer.tsx +105 -0
- package/packages/visualizer/src/app/report-sources.tsx +122 -0
- package/packages/visualizer/src/app/router.tsx +69 -0
- package/packages/visualizer/src/app/search-query.tsx +14 -0
- package/packages/visualizer/src/components/DataIssues.module.css +136 -0
- package/packages/visualizer/src/components/DataIssues.tsx +70 -0
- package/packages/visualizer/src/components/Header.module.css +189 -0
- package/packages/visualizer/src/components/Header.tsx +127 -0
- package/packages/visualizer/src/components/Legend.module.css +84 -0
- package/packages/visualizer/src/components/Legend.tsx +50 -0
- package/packages/visualizer/src/components/Screen.module.css +312 -0
- package/packages/visualizer/src/components/Screen.tsx +141 -0
- package/packages/visualizer/src/components/Status.module.css +116 -0
- package/packages/visualizer/src/components/Status.tsx +60 -0
- package/packages/visualizer/src/components/icons.tsx +156 -0
- package/packages/visualizer/src/components/labels.tsx +22 -0
- package/packages/visualizer/src/data/adapters/adapter.ts +112 -0
- package/packages/visualizer/src/data/adapters/context.tsx +11 -0
- package/packages/visualizer/src/data/adapters/index.ts +29 -0
- package/packages/visualizer/src/data/adapters/report-backend.test.ts +96 -0
- package/packages/visualizer/src/data/adapters/report-backend.ts +42 -0
- package/packages/visualizer/src/data/fixtures.test.ts +407 -0
- package/packages/visualizer/src/data/model/build.ts +418 -0
- package/packages/visualizer/src/data/model/event-kind.test.ts +59 -0
- package/packages/visualizer/src/data/model/event-kind.ts +54 -0
- package/packages/visualizer/src/data/model/index.ts +3 -0
- package/packages/visualizer/src/data/model/journeys.test.ts +159 -0
- package/packages/visualizer/src/data/model/journeys.ts +29 -0
- package/packages/visualizer/src/data/model/simulation.test.ts +115 -0
- package/packages/visualizer/src/data/model/simulation.ts +187 -0
- package/packages/visualizer/src/data/model/status.test.ts +34 -0
- package/packages/visualizer/src/data/model/status.ts +43 -0
- package/packages/visualizer/src/data/model/types.ts +280 -0
- package/packages/visualizer/src/data/parse/issues.test.ts +82 -0
- package/packages/visualizer/src/data/parse/issues.ts +114 -0
- package/packages/visualizer/src/data/parse/manifest.ts +173 -0
- package/packages/visualizer/src/data/parse/markdown.test.ts +119 -0
- package/packages/visualizer/src/data/parse/markdown.ts +133 -0
- package/packages/visualizer/src/data/parse/spec.test.ts +106 -0
- package/packages/visualizer/src/data/parse/spec.ts +557 -0
- package/packages/visualizer/src/data/parse/structured.ts +44 -0
- package/packages/visualizer/src/data/queries.ts +369 -0
- package/packages/visualizer/src/data/testing/load-fixture.ts +63 -0
- package/packages/visualizer/src/evidence/api.ts +41 -0
- package/packages/visualizer/src/evidence/check-detail.tsx +257 -0
- package/packages/visualizer/src/evidence/decision-table.tsx +68 -0
- package/packages/visualizer/src/evidence/document-page.tsx +40 -0
- package/packages/visualizer/src/evidence/evidence-context.tsx +159 -0
- package/packages/visualizer/src/evidence/evidence.module.css +877 -0
- package/packages/visualizer/src/evidence/feature-page.tsx +88 -0
- package/packages/visualizer/src/evidence/format.ts +56 -0
- package/packages/visualizer/src/evidence/gherkin.ts +98 -0
- package/packages/visualizer/src/evidence/marks.tsx +118 -0
- package/packages/visualizer/src/evidence/model-page.tsx +60 -0
- package/packages/visualizer/src/evidence/model-trace.tsx +57 -0
- package/packages/visualizer/src/evidence/overview.tsx +134 -0
- package/packages/visualizer/src/evidence/quint.ts +45 -0
- package/packages/visualizer/src/evidence/recording-page.tsx +69 -0
- package/packages/visualizer/src/evidence/recording.module.css +464 -0
- package/packages/visualizer/src/evidence/recording.tsx +197 -0
- package/packages/visualizer/src/evidence/snapshot.tsx +108 -0
- package/packages/visualizer/src/evidence/sources-panel.tsx +134 -0
- package/packages/visualizer/src/evidence/sources.module.css +168 -0
- package/packages/visualizer/src/evidence/spec-header.tsx +64 -0
- package/packages/visualizer/src/evidence/spec-index.tsx +82 -0
- package/packages/visualizer/src/evidence/spec-page.tsx +92 -0
- package/packages/visualizer/src/evidence/spec-snapshot.tsx +26 -0
- package/packages/visualizer/src/layout/graph.test.ts +113 -0
- package/packages/visualizer/src/layout/graph.ts +324 -0
- package/packages/visualizer/src/layout/layout.ts +237 -0
- package/packages/visualizer/src/layout/use-chart-layout.ts +18 -0
- package/packages/visualizer/src/main.tsx +31 -0
- package/packages/visualizer/src/map/ChartMap.tsx +252 -0
- package/packages/visualizer/src/map/EventEdge.tsx +138 -0
- package/packages/visualizer/src/map/map.module.css +546 -0
- package/packages/visualizer/src/map/nodes.tsx +145 -0
- package/packages/visualizer/src/map/path.ts +24 -0
- package/packages/visualizer/src/reachable.test.ts +54 -0
- package/packages/visualizer/src/spec-kind.test.ts +27 -0
- package/packages/visualizer/src/spec-kind.ts +56 -0
- package/packages/visualizer/src/state/ui-store.ts +44 -0
- package/packages/visualizer/src/styles/global.css +105 -0
- package/packages/visualizer/src/styles/tokens.css +80 -0
- package/packages/visualizer/src/views/ChartPage.tsx +52 -0
- package/packages/visualizer/src/views/ProductPage.tsx +35 -0
- package/packages/visualizer/src/views/SidePanel.tsx +339 -0
- package/packages/visualizer/src/views/views.module.css +546 -0
- package/packages/visualizer/vite/atlas-dev-plugin.ts +169 -0
- package/packages/visualizer/vite/atlas-files.test.ts +119 -0
- package/packages/visualizer/vite/atlas-files.ts +199 -0
- package/packages/visualizer/vite/publish.test.ts +52 -0
- package/packages/visualizer/vite/publish.ts +99 -0
- package/packages/visualizer/vite/reports-dev-plugin.ts +82 -0
- package/packages/visualizer/vite.config.ts +13 -0
- package/packages/vitest/README.md +58 -0
- package/packages/webdriver/README.md +77 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/** Indexed gzip chunks keep snapshot uploads small in count and reads bounded. */
|
|
2
|
+
import { readBytes, readObjectBytes, readUtf8, writeUtf8, } from './object-io.js';
|
|
3
|
+
import { eachLimited, inCompletionOrder } from './completion-order.js';
|
|
4
|
+
const CHUNK_BYTES = 1024 * 1024;
|
|
5
|
+
function base64(bytes) {
|
|
6
|
+
let text = '';
|
|
7
|
+
for (let at = 0; at < bytes.length; at += 0x8000)
|
|
8
|
+
text += String.fromCharCode(...bytes.subarray(at, at + 0x8000));
|
|
9
|
+
return btoa(text);
|
|
10
|
+
}
|
|
11
|
+
async function gzip(text) {
|
|
12
|
+
const input = new Blob([text]).stream();
|
|
13
|
+
return readBytes(input.pipeThrough(new CompressionStream('gzip')));
|
|
14
|
+
}
|
|
15
|
+
export async function publishSnapshotBundle(args) {
|
|
16
|
+
const index = {};
|
|
17
|
+
const chunks = [];
|
|
18
|
+
let entries = {};
|
|
19
|
+
let size = 0;
|
|
20
|
+
const flush = async () => {
|
|
21
|
+
if (size === 0)
|
|
22
|
+
return;
|
|
23
|
+
chunks.push(await gzip(JSON.stringify(entries)));
|
|
24
|
+
entries = {};
|
|
25
|
+
size = 0;
|
|
26
|
+
};
|
|
27
|
+
for (const file of args.files) {
|
|
28
|
+
const object = await args.local.get(`${args.localPrefix}${file}`);
|
|
29
|
+
if (object === null)
|
|
30
|
+
throw new Error(`Missing report snapshot: ${args.localPrefix}${file}`);
|
|
31
|
+
const snapshot = {
|
|
32
|
+
contentType: object.contentType,
|
|
33
|
+
base64: base64(await readBytes(object.body)),
|
|
34
|
+
};
|
|
35
|
+
const length = snapshot.base64.length + file.length + snapshot.contentType.length;
|
|
36
|
+
if (size > 0 && size + length > CHUNK_BYTES)
|
|
37
|
+
await flush();
|
|
38
|
+
entries[file] = snapshot;
|
|
39
|
+
index[file] = `snapshots-${chunks.length}.json.gz`;
|
|
40
|
+
size += length;
|
|
41
|
+
}
|
|
42
|
+
await flush();
|
|
43
|
+
await eachLimited(chunks.map((bytes, part) => ({ bytes, part })), 4, ({ bytes, part }) => {
|
|
44
|
+
return args.remote.put(`${args.remotePrefix}snapshots-${part}.json.gz`, bytes, 'application/gzip');
|
|
45
|
+
});
|
|
46
|
+
await writeUtf8(args.remote, `${args.remotePrefix}snapshots.json`, JSON.stringify(index), 'application/json');
|
|
47
|
+
}
|
|
48
|
+
export async function readBundledSnapshot(store, prefix, file) {
|
|
49
|
+
const text = await readUtf8(store, `${prefix}snapshots.json`);
|
|
50
|
+
if (text === null)
|
|
51
|
+
return null;
|
|
52
|
+
const index = JSON.parse(text);
|
|
53
|
+
const chunk = index[file];
|
|
54
|
+
if (chunk === undefined)
|
|
55
|
+
return null;
|
|
56
|
+
const snapshots = await readSnapshotChunk(store, prefix, chunk);
|
|
57
|
+
return snapshotBody(snapshots?.[file]);
|
|
58
|
+
}
|
|
59
|
+
async function readSnapshotChunk(store, prefix, chunk) {
|
|
60
|
+
if (!/^snapshots-\d+\.json\.gz$/.test(chunk))
|
|
61
|
+
throw new Error('Invalid snapshot chunk');
|
|
62
|
+
const packed = await readObjectBytes(store, `${prefix}${chunk}`);
|
|
63
|
+
if (packed === null)
|
|
64
|
+
return null;
|
|
65
|
+
const stream = new Blob([packed])
|
|
66
|
+
.stream()
|
|
67
|
+
.pipeThrough(new DecompressionStream('gzip'));
|
|
68
|
+
return JSON.parse(new TextDecoder().decode(await readBytes(stream)));
|
|
69
|
+
}
|
|
70
|
+
function snapshotBody(snapshot) {
|
|
71
|
+
if (snapshot === undefined)
|
|
72
|
+
return null;
|
|
73
|
+
const binary = atob(snapshot.base64);
|
|
74
|
+
const bytes = Uint8Array.from(binary, (c) => c.charCodeAt(0));
|
|
75
|
+
return { bytes, contentType: snapshot.contentType };
|
|
76
|
+
}
|
|
77
|
+
/** A streamed test reads each compressed chunk once even when it contains many frames. */
|
|
78
|
+
export async function* readBundledSnapshots(store, prefix, files) {
|
|
79
|
+
const text = await readUtf8(store, `${prefix}snapshots.json`);
|
|
80
|
+
if (text === null)
|
|
81
|
+
return;
|
|
82
|
+
const index = JSON.parse(text);
|
|
83
|
+
const chunks = [...new Set([...files].flatMap((file) => index[file] ?? []))];
|
|
84
|
+
const reads = chunks.map((chunk) => () => readSnapshotChunk(store, prefix, chunk));
|
|
85
|
+
for await (const snapshots of inCompletionOrder(reads, 8)) {
|
|
86
|
+
for (const [file, snapshot] of Object.entries(snapshots ?? {})) {
|
|
87
|
+
if (!files.has(file))
|
|
88
|
+
continue;
|
|
89
|
+
const body = snapshotBody(snapshot);
|
|
90
|
+
if (body !== null)
|
|
91
|
+
yield { file, ...body };
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReportStepHit } from './report-types.js';
|
|
2
|
+
export type HitResult = 'none' | 'found' | 'missing';
|
|
3
|
+
/**
|
|
4
|
+
* Point `html` / `body` / `:root` at the phone viewport, and turn a full
|
|
5
|
+
* browser viewport unit into a percentage of that box.
|
|
6
|
+
*/
|
|
7
|
+
export declare function scopeSnapshotCss(css: string): string;
|
|
8
|
+
/** Make sure `doc` is our standards-mode shell with `frameCss` installed. */
|
|
9
|
+
export declare function ensureShell(doc: Document, frameCss: string): void;
|
|
10
|
+
/** Chained first match — mirrors how the UI driver resolves `get(a).get(b)`. */
|
|
11
|
+
export declare function resolveHitTarget(scope: ParentNode, path: readonly string[]): Element | null;
|
|
12
|
+
/** Draw the one press overlay on `hit`'s target. */
|
|
13
|
+
export declare function drawHit(doc: Document, hit: ReportStepHit | null): HitResult;
|
|
14
|
+
/**
|
|
15
|
+
* Paint one snapshot into `doc` (already a shell) and draw `hit`. `key`
|
|
16
|
+
* identifies the snapshot for parse caching.
|
|
17
|
+
*/
|
|
18
|
+
export declare function paintSnapshot(doc: Document, snap: {
|
|
19
|
+
readonly key: string;
|
|
20
|
+
readonly html: string;
|
|
21
|
+
}, hit: ReportStepHit | null): HitResult;
|
|
22
|
+
/** In-page snapshot surface. No iframe. */
|
|
23
|
+
export declare function createSnapshotHost(): HTMLDivElement;
|
|
24
|
+
/** Paint one snapshot into the shadow tree `createSnapshotHost` built. */
|
|
25
|
+
export declare function paintSnapshotHost(host: HTMLElement, snap: {
|
|
26
|
+
readonly key: string;
|
|
27
|
+
readonly html: string;
|
|
28
|
+
readonly css: string;
|
|
29
|
+
}, hit: ReportStepHit | null): HitResult;
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { cleanSnapshotHtml, PHONE_H, PHONE_W, } from './phone.js';
|
|
2
|
+
/**
|
|
3
|
+
* One long-lived snapshot surface per client panel. Frames are painted by
|
|
4
|
+
* swapping the parsed snapshot DOM into that surface synchronously, so
|
|
5
|
+
* scrubbing never re-parses `frameCss` or refetches fonts. The press target
|
|
6
|
+
* is resolved against the painted DOM with the driver's chained first-match
|
|
7
|
+
* semantics and drawn as a single overlay from real layout.
|
|
8
|
+
*
|
|
9
|
+
* The phone paints into an open shadow tree, not an iframe: embedded
|
|
10
|
+
* browsers drop iframe documents, and a shadow tree stays in the page.
|
|
11
|
+
* Snapshot styles sit on the shadow root, and the host is the 390×844
|
|
12
|
+
* viewport the app shell fills.
|
|
13
|
+
*/
|
|
14
|
+
const FRAME_CSS_ID = 'sr-frame-css';
|
|
15
|
+
const OVERLAY_ID = 'sr-press';
|
|
16
|
+
const SNAP_ATTR = 'data-sr-snap';
|
|
17
|
+
const PARSE_CACHE_MAX = 256;
|
|
18
|
+
const OVERLAY_CSS = `#${OVERLAY_ID}{position:absolute;display:none;pointer-events:none;z-index:2147483647;box-sizing:border-box;border:2px solid #ff5a8a;border-radius:6px;box-shadow:0 0 0 4px rgba(255,90,138,.35)}#${OVERLAY_ID} i{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#ff5a8a;box-shadow:0 0 0 4px rgba(255,90,138,.35)}`;
|
|
19
|
+
const parseCache = new Map();
|
|
20
|
+
/**
|
|
21
|
+
* Point `html` / `body` / `:root` at the phone viewport, and turn a full
|
|
22
|
+
* browser viewport unit into a percentage of that box.
|
|
23
|
+
*/
|
|
24
|
+
export function scopeSnapshotCss(css) {
|
|
25
|
+
const scoped = css.replace(/(^|[^\w-])(:root|html|body)(?![\w-])/g, (_match, prefix, token) => `${prefix}${token === 'body' ? '.sr-snap-body' : '.sr-snap-doc'}`);
|
|
26
|
+
return scoped.replace(/\b100(?:d|s|l)?v[hw]\b/g, '100%');
|
|
27
|
+
}
|
|
28
|
+
/** Changes when the snapshot bytes change, even if the file name does not. */
|
|
29
|
+
function contentStamp(key, html) {
|
|
30
|
+
let hash = 5381;
|
|
31
|
+
for (let i = 0; i < html.length; i += 1) {
|
|
32
|
+
hash = Math.imul(hash, 33) ^ html.charCodeAt(i);
|
|
33
|
+
}
|
|
34
|
+
return `${key}:${(hash >>> 0).toString(16)}`;
|
|
35
|
+
}
|
|
36
|
+
function parseSnapshot(key, html) {
|
|
37
|
+
const cached = parseCache.get(key);
|
|
38
|
+
if (cached)
|
|
39
|
+
return cached;
|
|
40
|
+
const doc = new DOMParser().parseFromString(cleanSnapshotHtml(html), 'text/html');
|
|
41
|
+
const parsed = {
|
|
42
|
+
headKey: doc.head.innerHTML,
|
|
43
|
+
head: Array.from(doc.head.childNodes),
|
|
44
|
+
body: doc.body,
|
|
45
|
+
htmlAttrs: Array.from(doc.documentElement.attributes),
|
|
46
|
+
};
|
|
47
|
+
if (parseCache.size >= PARSE_CACHE_MAX) {
|
|
48
|
+
const oldest = parseCache.keys().next().value;
|
|
49
|
+
if (oldest !== undefined)
|
|
50
|
+
parseCache.delete(oldest);
|
|
51
|
+
}
|
|
52
|
+
parseCache.set(key, parsed);
|
|
53
|
+
return parsed;
|
|
54
|
+
}
|
|
55
|
+
function shellHtml(frameCss) {
|
|
56
|
+
const base = `html,body{margin:0}html{position:relative}${OVERLAY_CSS}`;
|
|
57
|
+
return `<!DOCTYPE html><html><head><meta charset="utf-8"><style id="${FRAME_CSS_ID}">${frameCss}${base}</style></head><body></body></html>`;
|
|
58
|
+
}
|
|
59
|
+
/** Make sure `doc` is our standards-mode shell with `frameCss` installed. */
|
|
60
|
+
export function ensureShell(doc, frameCss) {
|
|
61
|
+
if (doc.getElementById(FRAME_CSS_ID))
|
|
62
|
+
return;
|
|
63
|
+
doc.open();
|
|
64
|
+
doc.write(shellHtml(frameCss));
|
|
65
|
+
doc.close();
|
|
66
|
+
}
|
|
67
|
+
function documentRoot(doc) {
|
|
68
|
+
return {
|
|
69
|
+
head: doc.head,
|
|
70
|
+
body: doc.body,
|
|
71
|
+
documentElement: doc.documentElement,
|
|
72
|
+
sheets: doc.head,
|
|
73
|
+
scopeCss: false,
|
|
74
|
+
docClass: null,
|
|
75
|
+
bodyClass: null,
|
|
76
|
+
getElementById: (id) => doc.getElementById(id),
|
|
77
|
+
importNode: (node, deep) => doc.importNode(node, deep),
|
|
78
|
+
createElement: (tag) => doc.createElement(tag),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/** Keep `token` on `el` after a snapshot overwrites its class. */
|
|
82
|
+
function pinClass(el, token) {
|
|
83
|
+
if (!token)
|
|
84
|
+
return;
|
|
85
|
+
const parts = (el.getAttribute('class') ?? '').split(/\s+/).filter(Boolean);
|
|
86
|
+
if (parts.includes(token))
|
|
87
|
+
return;
|
|
88
|
+
parts.push(token);
|
|
89
|
+
el.setAttribute('class', parts.join(' '));
|
|
90
|
+
}
|
|
91
|
+
function syncAttributes(target, attrs) {
|
|
92
|
+
const keep = new Set(attrs.map((attr) => attr.name));
|
|
93
|
+
for (const attr of Array.from(target.attributes)) {
|
|
94
|
+
if (!keep.has(attr.name))
|
|
95
|
+
target.removeAttribute(attr.name);
|
|
96
|
+
}
|
|
97
|
+
for (const attr of attrs) {
|
|
98
|
+
if (target.getAttribute(attr.name) !== attr.value) {
|
|
99
|
+
target.setAttribute(attr.name, attr.value);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function adoptHead(root, node) {
|
|
104
|
+
if (node.nodeType !== 1)
|
|
105
|
+
return null;
|
|
106
|
+
const copy = root.importNode(node, true);
|
|
107
|
+
if (root.scopeCss && copy.tagName === 'STYLE') {
|
|
108
|
+
copy.textContent = scopeSnapshotCss(copy.textContent ?? '');
|
|
109
|
+
}
|
|
110
|
+
copy.setAttribute(SNAP_ATTR, '');
|
|
111
|
+
return copy;
|
|
112
|
+
}
|
|
113
|
+
function isSheetNode(node) {
|
|
114
|
+
const tag = node.tagName;
|
|
115
|
+
return tag === 'STYLE' || tag === 'LINK' || tag === 'BASE';
|
|
116
|
+
}
|
|
117
|
+
function clearAdopted(root) {
|
|
118
|
+
for (const old of Array.from(root.head.querySelectorAll(`[${SNAP_ATTR}]`))) {
|
|
119
|
+
old.remove();
|
|
120
|
+
}
|
|
121
|
+
if (root.sheets === root.head)
|
|
122
|
+
return;
|
|
123
|
+
for (const old of Array.from(root.sheets.querySelectorAll(`[${SNAP_ATTR}]`))) {
|
|
124
|
+
old.remove();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/** Styles go on the shadow root. A `display` wrapper drops them in Chromium. */
|
|
128
|
+
function placeAdopted(root, copy) {
|
|
129
|
+
const parent = isSheetNode(copy) ? root.sheets : root.head;
|
|
130
|
+
const frame = root.getElementById(FRAME_CSS_ID);
|
|
131
|
+
if (frame && frame.parentNode === parent)
|
|
132
|
+
parent.insertBefore(copy, frame);
|
|
133
|
+
else
|
|
134
|
+
parent.appendChild(copy);
|
|
135
|
+
}
|
|
136
|
+
function syncHead(root, parsed) {
|
|
137
|
+
if (root.head.getAttribute(SNAP_ATTR) === parsed.headKey)
|
|
138
|
+
return;
|
|
139
|
+
clearAdopted(root);
|
|
140
|
+
for (const node of parsed.head) {
|
|
141
|
+
const copy = adoptHead(root, node);
|
|
142
|
+
if (!copy)
|
|
143
|
+
continue;
|
|
144
|
+
placeAdopted(root, copy);
|
|
145
|
+
}
|
|
146
|
+
root.head.setAttribute(SNAP_ATTR, parsed.headKey);
|
|
147
|
+
}
|
|
148
|
+
function testIdSelector(id) {
|
|
149
|
+
return `[data-testid="${id.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"]`;
|
|
150
|
+
}
|
|
151
|
+
/** Chained first match — mirrors how the UI driver resolves `get(a).get(b)`. */
|
|
152
|
+
export function resolveHitTarget(scope, path) {
|
|
153
|
+
let current = scope;
|
|
154
|
+
let found = null;
|
|
155
|
+
for (const id of path) {
|
|
156
|
+
found = current.querySelector(testIdSelector(id));
|
|
157
|
+
if (!found)
|
|
158
|
+
return null;
|
|
159
|
+
current = found;
|
|
160
|
+
}
|
|
161
|
+
return found;
|
|
162
|
+
}
|
|
163
|
+
function overlayEl(root) {
|
|
164
|
+
const existing = root.getElementById(OVERLAY_ID);
|
|
165
|
+
if (existing)
|
|
166
|
+
return existing;
|
|
167
|
+
const el = root.createElement('div');
|
|
168
|
+
el.id = OVERLAY_ID;
|
|
169
|
+
el.appendChild(root.createElement('i'));
|
|
170
|
+
root.documentElement.appendChild(el);
|
|
171
|
+
return el;
|
|
172
|
+
}
|
|
173
|
+
function hideOverlay(root) {
|
|
174
|
+
const el = root.getElementById(OVERLAY_ID);
|
|
175
|
+
if (el)
|
|
176
|
+
el.style.display = 'none';
|
|
177
|
+
}
|
|
178
|
+
function localBox(box, target) {
|
|
179
|
+
const boxRect = box.getBoundingClientRect();
|
|
180
|
+
const rect = target.getBoundingClientRect();
|
|
181
|
+
const sx = boxRect.width > 0 && box.clientWidth > 0
|
|
182
|
+
? boxRect.width / box.clientWidth
|
|
183
|
+
: 1;
|
|
184
|
+
const sy = boxRect.height > 0 && box.clientHeight > 0
|
|
185
|
+
? boxRect.height / box.clientHeight
|
|
186
|
+
: 1;
|
|
187
|
+
return {
|
|
188
|
+
left: (rect.left - boxRect.left) / sx,
|
|
189
|
+
top: (rect.top - boxRect.top) / sy,
|
|
190
|
+
width: rect.width / sx,
|
|
191
|
+
height: rect.height / sy,
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function placeOverlay(root, target, hit) {
|
|
195
|
+
const view = root.body;
|
|
196
|
+
let box = localBox(root.documentElement, target);
|
|
197
|
+
if (box.top + box.height < 0 || box.top > view.clientHeight) {
|
|
198
|
+
target.scrollIntoView({ block: 'center' });
|
|
199
|
+
box = localBox(root.documentElement, target);
|
|
200
|
+
}
|
|
201
|
+
const point = hit.point ?? { xRatio: 0.5, yRatio: 0.5 };
|
|
202
|
+
const el = overlayEl(root);
|
|
203
|
+
el.style.display = 'block';
|
|
204
|
+
el.style.left = `${box.left - 3}px`;
|
|
205
|
+
el.style.top = `${box.top - 3}px`;
|
|
206
|
+
el.style.width = `${box.width + 6}px`;
|
|
207
|
+
el.style.height = `${box.height + 6}px`;
|
|
208
|
+
const dot = el.firstElementChild;
|
|
209
|
+
if (dot) {
|
|
210
|
+
dot.style.left = `${3 + box.width * point.xRatio}px`;
|
|
211
|
+
dot.style.top = `${3 + box.height * point.yRatio}px`;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function drawOn(root, hit) {
|
|
215
|
+
if (!hit || hit.path.length === 0) {
|
|
216
|
+
hideOverlay(root);
|
|
217
|
+
return 'none';
|
|
218
|
+
}
|
|
219
|
+
const target = resolveHitTarget(root.documentElement, hit.path);
|
|
220
|
+
if (!target) {
|
|
221
|
+
hideOverlay(root);
|
|
222
|
+
return 'missing';
|
|
223
|
+
}
|
|
224
|
+
placeOverlay(root, target, hit);
|
|
225
|
+
return 'found';
|
|
226
|
+
}
|
|
227
|
+
/** Draw the one press overlay on `hit`'s target. */
|
|
228
|
+
export function drawHit(doc, hit) {
|
|
229
|
+
if (!doc.getElementById('sr-overlay-css')) {
|
|
230
|
+
const style = doc.createElement('style');
|
|
231
|
+
style.id = 'sr-overlay-css';
|
|
232
|
+
style.textContent = OVERLAY_CSS;
|
|
233
|
+
doc.head.appendChild(style);
|
|
234
|
+
}
|
|
235
|
+
return drawOn(documentRoot(doc), hit);
|
|
236
|
+
}
|
|
237
|
+
function paintRoot(root, snap, hit) {
|
|
238
|
+
const parsed = parseSnapshot(snap.key, snap.html);
|
|
239
|
+
syncHead(root, parsed);
|
|
240
|
+
syncAttributes(root.documentElement, parsed.htmlAttrs);
|
|
241
|
+
pinClass(root.documentElement, root.docClass);
|
|
242
|
+
syncAttributes(root.body, Array.from(parsed.body.attributes));
|
|
243
|
+
pinClass(root.body, root.bodyClass);
|
|
244
|
+
root.body.replaceChildren(...Array.from(parsed.body.childNodes, (node) => root.importNode(node, true)));
|
|
245
|
+
root.body.scrollTop = 0;
|
|
246
|
+
return drawOn(root, hit);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Paint one snapshot into `doc` (already a shell) and draw `hit`. `key`
|
|
250
|
+
* identifies the snapshot for parse caching.
|
|
251
|
+
*/
|
|
252
|
+
export function paintSnapshot(doc, snap, hit) {
|
|
253
|
+
return paintRoot(documentRoot(doc), snap, hit);
|
|
254
|
+
}
|
|
255
|
+
const PHONE_BOX = `width:${String(PHONE_W)}px;height:${String(PHONE_H)}px`;
|
|
256
|
+
/** Shell fill. Unlayered, so it wins over the layered theme host. */
|
|
257
|
+
const HOST_FILL = [
|
|
258
|
+
'display:flex;flex-direction:column;flex:1 1 auto;',
|
|
259
|
+
'min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;',
|
|
260
|
+
'background-color:var(--ui-color-background,#121418);',
|
|
261
|
+
'color:var(--ui-color-text,#f4f6f8)',
|
|
262
|
+
].join('');
|
|
263
|
+
const HOST_LAYOUT = [
|
|
264
|
+
`:host{display:block;${PHONE_BOX};background:#121418;color:#f4f6f8;`,
|
|
265
|
+
'font:16px/1.45 system-ui,sans-serif}',
|
|
266
|
+
`.sr-snap-doc{position:relative;${PHONE_BOX};display:flex;`,
|
|
267
|
+
'flex-direction:column;overflow:hidden}',
|
|
268
|
+
`.sr-snap-body{position:relative;${PHONE_BOX};display:flex;`,
|
|
269
|
+
'flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}',
|
|
270
|
+
'.sr-snap-head{display:none}',
|
|
271
|
+
'.sr-snap-body>#root,.sr-snap-body>.dom-root,.sr-snap-body>.themeHost,',
|
|
272
|
+
'#root>.themeHost,.dom-root>.themeHost,.dom-root>*>.themeHost',
|
|
273
|
+
`{${HOST_FILL}}`,
|
|
274
|
+
].join('');
|
|
275
|
+
/** In-page snapshot surface. No iframe. */
|
|
276
|
+
export function createSnapshotHost() {
|
|
277
|
+
const host = document.createElement('div');
|
|
278
|
+
host.className = 'sr-snap';
|
|
279
|
+
const shadow = host.attachShadow({ mode: 'open' });
|
|
280
|
+
const style = document.createElement('style');
|
|
281
|
+
style.id = FRAME_CSS_ID;
|
|
282
|
+
const docEl = document.createElement('div');
|
|
283
|
+
docEl.className = 'sr-snap-doc';
|
|
284
|
+
const head = document.createElement('div');
|
|
285
|
+
head.className = 'sr-snap-head';
|
|
286
|
+
const body = document.createElement('div');
|
|
287
|
+
body.className = 'sr-snap-body';
|
|
288
|
+
docEl.append(head, body);
|
|
289
|
+
shadow.append(docEl, style);
|
|
290
|
+
return host;
|
|
291
|
+
}
|
|
292
|
+
function hostRoot(host) {
|
|
293
|
+
const shadow = host.shadowRoot;
|
|
294
|
+
const documentElement = shadow?.querySelector('.sr-snap-doc');
|
|
295
|
+
const head = shadow?.querySelector('.sr-snap-head');
|
|
296
|
+
const body = shadow?.querySelector('.sr-snap-body');
|
|
297
|
+
if (!shadow || !documentElement || !head || !body)
|
|
298
|
+
return null;
|
|
299
|
+
if (!('style' in documentElement) ||
|
|
300
|
+
!('style' in head) ||
|
|
301
|
+
!('style' in body)) {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
return {
|
|
305
|
+
head: head,
|
|
306
|
+
body: body,
|
|
307
|
+
documentElement: documentElement,
|
|
308
|
+
sheets: shadow,
|
|
309
|
+
scopeCss: true,
|
|
310
|
+
docClass: 'sr-snap-doc',
|
|
311
|
+
bodyClass: 'sr-snap-body',
|
|
312
|
+
getElementById: (id) => shadow.getElementById(id),
|
|
313
|
+
importNode: (node, deep) => document.importNode(node, deep),
|
|
314
|
+
createElement: (tag) => document.createElement(tag),
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function installHostCss(root, frameCss) {
|
|
318
|
+
const style = root.getElementById(FRAME_CSS_ID);
|
|
319
|
+
if (!style)
|
|
320
|
+
return;
|
|
321
|
+
const next = `${scopeSnapshotCss(frameCss)}${HOST_LAYOUT}${OVERLAY_CSS}`;
|
|
322
|
+
if (style.textContent !== next)
|
|
323
|
+
style.textContent = next;
|
|
324
|
+
}
|
|
325
|
+
/** Paint one snapshot into the shadow tree `createSnapshotHost` built. */
|
|
326
|
+
export function paintSnapshotHost(host, snap, hit) {
|
|
327
|
+
const root = hostRoot(host);
|
|
328
|
+
if (!root)
|
|
329
|
+
return 'none';
|
|
330
|
+
installHostCss(root, snap.css);
|
|
331
|
+
const stamp = contentStamp(snap.key, snap.html);
|
|
332
|
+
if (host.dataset['snap'] === stamp && root.body.childNodes.length > 0) {
|
|
333
|
+
return drawOn(root, hit);
|
|
334
|
+
}
|
|
335
|
+
const result = paintRoot(root, { key: stamp, html: snap.html }, hit);
|
|
336
|
+
host.dataset['snap'] = stamp;
|
|
337
|
+
void root.body.offsetHeight;
|
|
338
|
+
return result;
|
|
339
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ObjectStore } from './object-store.js';
|
|
2
|
+
import type { SourceRecord } from './protocol.js';
|
|
3
|
+
export type SourceIdentity = {
|
|
4
|
+
readonly taskHash: string;
|
|
5
|
+
readonly generation: number;
|
|
6
|
+
};
|
|
7
|
+
type SourceReference = {
|
|
8
|
+
readonly record: SourceRecord;
|
|
9
|
+
readonly contentPrefix: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function reportGeneration(nowMs: number, retentionDays: number): number;
|
|
12
|
+
export declare function sourceContentPrefix(identity: SourceIdentity, source: string): string;
|
|
13
|
+
export declare function attachSource(store: ObjectStore, args: {
|
|
14
|
+
readonly sha: string;
|
|
15
|
+
readonly record: SourceRecord;
|
|
16
|
+
readonly contentPrefix: string;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
export declare function reuseSource(store: ObjectStore, args: {
|
|
19
|
+
readonly sha: string;
|
|
20
|
+
readonly packageDir: string;
|
|
21
|
+
readonly bucket: string;
|
|
22
|
+
readonly identity: SourceIdentity;
|
|
23
|
+
}): Promise<SourceRecord | null>;
|
|
24
|
+
export declare function readStoredSource(store: ObjectStore, sha: string, source: string): Promise<SourceReference | null>;
|
|
25
|
+
export declare function sourceTestPrefix(store: ObjectStore, args: {
|
|
26
|
+
readonly sha: string;
|
|
27
|
+
readonly source: string;
|
|
28
|
+
readonly testId: string;
|
|
29
|
+
}): Promise<string | null>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** A source can own commit-local files or reference a reusable complete source. */
|
|
2
|
+
import { readUtf8, writeUtf8 } from './object-io.js';
|
|
3
|
+
import { commitPrefix, isKeySegment, sourceId, sourceKey } from './keys.js';
|
|
4
|
+
import { reportStore } from './publication.js';
|
|
5
|
+
export function reportGeneration(nowMs, retentionDays) {
|
|
6
|
+
if (!Number.isFinite(nowMs) || nowMs < 0)
|
|
7
|
+
throw new Error('Report time must be nonnegative');
|
|
8
|
+
if (!Number.isInteger(retentionDays) || retentionDays < 1)
|
|
9
|
+
throw new Error('Report retention must be a positive number of days');
|
|
10
|
+
return Math.floor(nowMs / (retentionDays * 86_400_000));
|
|
11
|
+
}
|
|
12
|
+
export function sourceContentPrefix(identity, source) {
|
|
13
|
+
if (!/^[0-9a-f]{16,64}$/.test(identity.taskHash))
|
|
14
|
+
throw new Error('Report identity needs an exact task hash');
|
|
15
|
+
if (!Number.isSafeInteger(identity.generation) || identity.generation < 0)
|
|
16
|
+
throw new Error('Report generation must be a nonnegative integer');
|
|
17
|
+
if (!isKeySegment(source))
|
|
18
|
+
throw new Error('Invalid report source');
|
|
19
|
+
return `content/v2/${identity.generation}/${identity.taskHash}/${source}/`;
|
|
20
|
+
}
|
|
21
|
+
export async function attachSource(store, args) {
|
|
22
|
+
await writeUtf8(store, sourceKey(args.sha, args.record.source), JSON.stringify({ record: args.record, contentPrefix: args.contentPrefix }), 'application/json; charset=utf-8');
|
|
23
|
+
}
|
|
24
|
+
export async function reuseSource(store, args) {
|
|
25
|
+
const source = sourceId(args.packageDir, args.bucket);
|
|
26
|
+
const contentPrefix = sourceContentPrefix(args.identity, source);
|
|
27
|
+
const text = await readUtf8(store, `${contentPrefix}complete.json`);
|
|
28
|
+
if (text === null)
|
|
29
|
+
return null;
|
|
30
|
+
const record = JSON.parse(text);
|
|
31
|
+
if (record.source !== source ||
|
|
32
|
+
record.packageDir !== args.packageDir ||
|
|
33
|
+
record.bucket !== args.bucket ||
|
|
34
|
+
record.status !== 'passed')
|
|
35
|
+
return null;
|
|
36
|
+
await attachSource(store, { sha: args.sha, record, contentPrefix });
|
|
37
|
+
return record;
|
|
38
|
+
}
|
|
39
|
+
export async function readStoredSource(store, sha, source) {
|
|
40
|
+
store = await reportStore(store, sha);
|
|
41
|
+
const text = await readUtf8(store, sourceKey(sha, source));
|
|
42
|
+
if (text === null)
|
|
43
|
+
return null;
|
|
44
|
+
const stored = JSON.parse(text);
|
|
45
|
+
if ('record' in stored) {
|
|
46
|
+
const prefix = stored.contentPrefix;
|
|
47
|
+
if (!/^content\/v2\/\d+\/[0-9a-f]{16,64}\/[a-zA-Z0-9._-]+\/$/.test(prefix) ||
|
|
48
|
+
!prefix.endsWith(`/${source}/`) ||
|
|
49
|
+
stored.record.source !== source)
|
|
50
|
+
throw new Error('Invalid report content reference');
|
|
51
|
+
return stored;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
record: stored,
|
|
55
|
+
contentPrefix: `${commitPrefix(sha)}tests/${source}/`,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export async function sourceTestPrefix(store, args) {
|
|
59
|
+
if (!isKeySegment(args.testId))
|
|
60
|
+
throw new Error('Invalid report test');
|
|
61
|
+
const stored = await readStoredSource(store, args.sha, args.source);
|
|
62
|
+
return stored === null ? null : `${stored.contentPrefix}${args.testId}/`;
|
|
63
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { HtmlReportTest } from './recording-bundle.js';
|
|
2
|
+
import type { BundleEntry } from './bundle.js';
|
|
3
|
+
import type { PublishSourceArgs } from './publish.js';
|
|
4
|
+
export declare function sourceEntries(args: PublishSourceArgs, source: string, tests: readonly HtmlReportTest[], runId: string): AsyncGenerator<BundleEntry>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { testFrameKey } from './recording-keys.js';
|
|
2
|
+
import { remoteTestFileKey, remoteTestReportKey } from './keys.js';
|
|
3
|
+
const JSON_TYPE = 'application/json; charset=utf-8';
|
|
4
|
+
function frameFiles(steps, out) {
|
|
5
|
+
for (const step of steps) {
|
|
6
|
+
for (const frame of step.frames) {
|
|
7
|
+
for (const blob of frame.snapshots)
|
|
8
|
+
out.add(blob.file);
|
|
9
|
+
}
|
|
10
|
+
frameFiles(step.steps, out);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export async function* sourceEntries(args, source, tests, runId) {
|
|
14
|
+
for (const { report } of [...tests].sort((a, b) => a.report.meta.testId < b.report.meta.testId ? -1 : 1)) {
|
|
15
|
+
const { testId } = report.meta;
|
|
16
|
+
yield {
|
|
17
|
+
key: remoteTestReportKey(args.sha, source, testId),
|
|
18
|
+
bytes: new TextEncoder().encode(JSON.stringify(report)),
|
|
19
|
+
contentType: JSON_TYPE,
|
|
20
|
+
};
|
|
21
|
+
const files = new Set();
|
|
22
|
+
frameFiles(report.steps, files);
|
|
23
|
+
for (const file of [...files].sort()) {
|
|
24
|
+
const obj = await args.local.get(testFrameKey(runId, testId, file));
|
|
25
|
+
if (obj === null)
|
|
26
|
+
throw new Error(`Missing report snapshot: ${file}`);
|
|
27
|
+
yield {
|
|
28
|
+
key: remoteTestFileKey(args.sha, source, testId, file),
|
|
29
|
+
bytes: new Uint8Array(await new Response(obj.body).arrayBuffer()),
|
|
30
|
+
contentType: obj.contentType,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReportPart } from './explorer-types.js';
|
|
2
|
+
import type { SourceRecord } from './protocol.js';
|
|
3
|
+
export declare function sourcePart(sha: string, source: SourceRecord): ReportPart;
|
|
4
|
+
export declare function sourceParts(sha: string, source: SourceRecord): readonly ReportPart[];
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { viewerTestId } from './keys.js';
|
|
2
|
+
export function sourcePart(sha, source) {
|
|
3
|
+
const kind = source.bucket === 'ui-quality' ? 'ui-quality' : 'behavior';
|
|
4
|
+
const primary = source.evidence?.find((part) => part.kind !== 'performance');
|
|
5
|
+
if (primary)
|
|
6
|
+
return withProducerFailure({
|
|
7
|
+
...primary,
|
|
8
|
+
sha,
|
|
9
|
+
id: source.source,
|
|
10
|
+
recordedAtMs: source.updatedAtMs,
|
|
11
|
+
checks: primary.checks.map((check) => ({
|
|
12
|
+
...check,
|
|
13
|
+
id: viewerTestId(source.source, check.id),
|
|
14
|
+
})),
|
|
15
|
+
}, source);
|
|
16
|
+
return withProducerFailure({
|
|
17
|
+
sha,
|
|
18
|
+
id: source.source,
|
|
19
|
+
kind,
|
|
20
|
+
title: `${source.packageDir} / ${source.bucket}`,
|
|
21
|
+
recordedAtMs: source.updatedAtMs,
|
|
22
|
+
checks: source.tests.map((test) => ({
|
|
23
|
+
id: viewerTestId(source.source, test.testId),
|
|
24
|
+
title: test.title,
|
|
25
|
+
status: test.status === 'skipped' ? 'not-run' : test.status,
|
|
26
|
+
detail: test.error ?? '',
|
|
27
|
+
...(test.sourceFile === undefined ? {} : { specPath: test.sourceFile }),
|
|
28
|
+
measurements: [],
|
|
29
|
+
})),
|
|
30
|
+
}, source);
|
|
31
|
+
}
|
|
32
|
+
function withProducerFailure(part, source) {
|
|
33
|
+
if (source.status !== 'failed' ||
|
|
34
|
+
part.checks.some((check) => check.status === 'failed'))
|
|
35
|
+
return part;
|
|
36
|
+
return {
|
|
37
|
+
...part,
|
|
38
|
+
checks: [
|
|
39
|
+
...part.checks,
|
|
40
|
+
{
|
|
41
|
+
id: `${source.source}:producer-failure`,
|
|
42
|
+
title: 'Producer failed',
|
|
43
|
+
status: 'failed',
|
|
44
|
+
detail: 'The report producer did not complete successfully. Individual recorded outcomes are preserved.',
|
|
45
|
+
measurements: [],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function sourceParts(sha, source) {
|
|
51
|
+
return [
|
|
52
|
+
sourcePart(sha, source),
|
|
53
|
+
...(source.evidence ?? [])
|
|
54
|
+
.filter((part) => part.kind === 'performance')
|
|
55
|
+
.map((part) => ({
|
|
56
|
+
...part,
|
|
57
|
+
sha,
|
|
58
|
+
id: `${source.source}--${part.kind}`,
|
|
59
|
+
recordedAtMs: source.updatedAtMs,
|
|
60
|
+
checks: part.checks.map((check) => ({
|
|
61
|
+
...check,
|
|
62
|
+
id: viewerTestId(source.source, check.id),
|
|
63
|
+
})),
|
|
64
|
+
})),
|
|
65
|
+
];
|
|
66
|
+
}
|