@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,369 @@
|
|
|
1
|
+
import type { DataIssue } from '@crvouga/atlas/schema';
|
|
2
|
+
import { useContext, useEffect, useMemo } from 'react';
|
|
3
|
+
import { isStatechartFile, RunsIndexSchema, SpecIndexSchema } from '@crvouga/atlas/schema';
|
|
4
|
+
import { QueryClient, useQueries, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
5
|
+
|
|
6
|
+
import type { BackendEntry } from '../app/report-sources';
|
|
7
|
+
import type { AtlasAdapter } from './adapters';
|
|
8
|
+
import type { ReportBackend, SourcedRunSummary } from './adapters/report-backend';
|
|
9
|
+
import type { AtlasView } from './model';
|
|
10
|
+
import { ReportSourcesContext } from '../app/report-sources';
|
|
11
|
+
import { LoadError } from './adapters';
|
|
12
|
+
import { useAdapter } from './adapters/context';
|
|
13
|
+
import { reportKey, sourceRuns } from './adapters/report-backend';
|
|
14
|
+
import { buildAtlasView } from './model';
|
|
15
|
+
import { createIssueSink, isRecord } from './parse/issues';
|
|
16
|
+
import { parseManifest, parseRunsIndex } from './parse/manifest';
|
|
17
|
+
import { parseSpec } from './parse/spec';
|
|
18
|
+
|
|
19
|
+
export { AdapterContext, useAdapter } from './adapters/context';
|
|
20
|
+
|
|
21
|
+
const configuredPollMs = Number(import.meta.env.VITE_ATLAS_POLL_MS ?? 60_000);
|
|
22
|
+
const POLL_MS = Number.isFinite(configuredPollMs) && configuredPollMs >= 1000 ? configuredPollMs : 60_000;
|
|
23
|
+
const RUNNING_POLL_MS = 2000;
|
|
24
|
+
export const LATEST = 'latest';
|
|
25
|
+
|
|
26
|
+
export function createQueryClient() {
|
|
27
|
+
return new QueryClient({
|
|
28
|
+
defaultOptions: {
|
|
29
|
+
queries: {
|
|
30
|
+
retry: (count, error) => !(error instanceof LoadError && error.status === 404) && count < 2,
|
|
31
|
+
staleTime: Number.POSITIVE_INFINITY,
|
|
32
|
+
refetchOnWindowFocus: false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const keys = {
|
|
39
|
+
specIndex: (source: string) => ['spec', source, 'index'] as const,
|
|
40
|
+
specFile: (source: string, path: string) => ['spec', source, 'file', path] as const,
|
|
41
|
+
runsIndex: (source: string) => ['reports', source, 'index'] as const,
|
|
42
|
+
manifests: (source: string) => ['reports', source, 'manifest'] as const,
|
|
43
|
+
manifest: (source: string, runId: string) => ['reports', source, 'manifest', runId] as const
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export function specKey(adapter: AtlasAdapter) {
|
|
47
|
+
return `${adapter.kind}:${adapter.label}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function useBackends() {
|
|
51
|
+
const adapter = useAdapter();
|
|
52
|
+
const registry = useContext(ReportSourcesContext);
|
|
53
|
+
const fallback = useMemo<BackendEntry[]>(
|
|
54
|
+
() => [
|
|
55
|
+
{
|
|
56
|
+
backend: { ...adapter, id: 'workspace', cacheKey: specKey(adapter), pollMs: POLL_MS },
|
|
57
|
+
config: { id: 'workspace', label: adapter.label, type: 'http', baseUrl: adapter.label },
|
|
58
|
+
enabled: true,
|
|
59
|
+
custom: false
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
[adapter]
|
|
63
|
+
);
|
|
64
|
+
return registry?.entries ?? fallback;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function useLiveUpdates(enabled = true) {
|
|
68
|
+
const adapter = useAdapter();
|
|
69
|
+
const entries = useBackends();
|
|
70
|
+
const client = useQueryClient();
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
if (!enabled) return;
|
|
73
|
+
const unsubscribe: (() => void)[] = [];
|
|
74
|
+
if (adapter.subscribe)
|
|
75
|
+
unsubscribe.push(
|
|
76
|
+
adapter.subscribe((change) => {
|
|
77
|
+
if (change.scope !== 'specs') return;
|
|
78
|
+
void client.invalidateQueries({ queryKey: keys.specIndex(specKey(adapter)) });
|
|
79
|
+
if (!change.files.length) void client.invalidateQueries({ queryKey: ['spec', specKey(adapter)] });
|
|
80
|
+
for (const file of change.files) void client.invalidateQueries({ queryKey: keys.specFile(specKey(adapter), file) });
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
for (const { backend, enabled: active } of entries) {
|
|
84
|
+
if (!active || !backend.subscribe) continue;
|
|
85
|
+
unsubscribe.push(
|
|
86
|
+
backend.subscribe((change) => {
|
|
87
|
+
if (change.scope !== 'runs') return;
|
|
88
|
+
void client.invalidateQueries({ queryKey: keys.runsIndex(backend.cacheKey) });
|
|
89
|
+
if (!change.runIds.length) void client.invalidateQueries({ queryKey: keys.manifests(backend.cacheKey) });
|
|
90
|
+
for (const id of change.runIds) void client.invalidateQueries({ queryKey: keys.manifest(backend.cacheKey, id) });
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
return () => {
|
|
95
|
+
for (const stop of unsubscribe) stop();
|
|
96
|
+
};
|
|
97
|
+
}, [adapter, entries, client, enabled]);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function selectReport(runs: SourcedRunSummary[], backends: ReportBackend[], param?: string) {
|
|
101
|
+
const summary =
|
|
102
|
+
!param || param === LATEST
|
|
103
|
+
? runs[0]
|
|
104
|
+
: (runs.find((run) => run.id === param) ??
|
|
105
|
+
runs.find((run) => run.nativeId === param && run.sourceId === 'workspace') ??
|
|
106
|
+
runs.find((run) => run.nativeId === param));
|
|
107
|
+
if (summary) {
|
|
108
|
+
const backend = backends.find((source) => source.id === summary.sourceId);
|
|
109
|
+
return backend ? { backend, nativeId: summary.nativeId, id: summary.id, summary } : null;
|
|
110
|
+
}
|
|
111
|
+
if (!param || param === LATEST) return null;
|
|
112
|
+
const separator = param.indexOf('~');
|
|
113
|
+
const sourceId = separator < 0 ? 'workspace' : param.slice(0, separator);
|
|
114
|
+
const backend = backends.find((source) => source.id === sourceId);
|
|
115
|
+
try {
|
|
116
|
+
const nativeId = separator < 0 ? param : decodeURIComponent(param.slice(separator + 1));
|
|
117
|
+
return backend && nativeId ? { backend, nativeId, id: reportKey(backend.id, nativeId), summary: undefined } : null;
|
|
118
|
+
} catch {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function errorText(error: unknown) {
|
|
124
|
+
return error instanceof Error ? error.message : 'Unknown problem.';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function combineFiles(results: { data?: string; error: Error | null; isPending: boolean }[]) {
|
|
128
|
+
return {
|
|
129
|
+
texts: results.map((result) => result.data),
|
|
130
|
+
errors: results.map((result) => (result.error ? errorText(result.error) : null)),
|
|
131
|
+
loading: results.some((result) => result.isPending)
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type LoadState = { loading: boolean; error: string | null; retry: () => void };
|
|
136
|
+
export type SourceHealth = {
|
|
137
|
+
id: string;
|
|
138
|
+
label: string;
|
|
139
|
+
kind: string;
|
|
140
|
+
enabled: boolean;
|
|
141
|
+
loading: boolean;
|
|
142
|
+
refreshing: boolean;
|
|
143
|
+
error: string | null;
|
|
144
|
+
count: number;
|
|
145
|
+
running: number;
|
|
146
|
+
updatedAt: number;
|
|
147
|
+
};
|
|
148
|
+
export type AtlasData = {
|
|
149
|
+
view: AtlasView | null;
|
|
150
|
+
spec: LoadState;
|
|
151
|
+
runs: LoadState;
|
|
152
|
+
run: LoadState & { id: string | null; waiting: boolean; summary: SourcedRunSummary | null };
|
|
153
|
+
reports: SourcedRunSummary[];
|
|
154
|
+
sources: SourceHealth[];
|
|
155
|
+
latestRunId: string | null;
|
|
156
|
+
updatedAt: number;
|
|
157
|
+
refreshing: boolean;
|
|
158
|
+
refresh: () => void;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export function useAtlasData(runParam: string | undefined, live = true): AtlasData {
|
|
162
|
+
const adapter = useAdapter();
|
|
163
|
+
const entries = useBackends();
|
|
164
|
+
const client = useQueryClient();
|
|
165
|
+
const source = specKey(adapter);
|
|
166
|
+
const specIndex = useQuery({
|
|
167
|
+
queryKey: keys.specIndex(source),
|
|
168
|
+
queryFn: async () => SpecIndexSchema.parse(await adapter.specIndex()),
|
|
169
|
+
refetchInterval: live && adapter.kind !== 'dev' ? POLL_MS : false,
|
|
170
|
+
refetchOnWindowFocus: live ? 'always' : false
|
|
171
|
+
});
|
|
172
|
+
const index = useMemo(() => {
|
|
173
|
+
const parsed = SpecIndexSchema.safeParse(specIndex.data);
|
|
174
|
+
return parsed.success ? parsed.data : null;
|
|
175
|
+
}, [specIndex.data]);
|
|
176
|
+
const chartPaths = useMemo(() => (index?.files ?? []).filter(isStatechartFile), [index]);
|
|
177
|
+
const files = useQueries({
|
|
178
|
+
queries: chartPaths.map((path) => ({
|
|
179
|
+
queryKey: keys.specFile(source, path),
|
|
180
|
+
queryFn: () => adapter.specFile(path),
|
|
181
|
+
refetchInterval: live && adapter.kind !== 'dev' ? POLL_MS : false,
|
|
182
|
+
refetchOnWindowFocus: live ? ('always' as const) : (false as const)
|
|
183
|
+
})),
|
|
184
|
+
combine: combineFiles
|
|
185
|
+
});
|
|
186
|
+
const indexes = useQueries({
|
|
187
|
+
queries: entries.map(({ backend, enabled }) => ({
|
|
188
|
+
queryKey: keys.runsIndex(backend.cacheKey),
|
|
189
|
+
queryFn: async () => {
|
|
190
|
+
const raw = await backend.runsIndex();
|
|
191
|
+
if (!RunsIndexSchema.safeParse(raw).success) throw new Error('This source returned an invalid report index.');
|
|
192
|
+
return raw;
|
|
193
|
+
},
|
|
194
|
+
enabled,
|
|
195
|
+
refetchInterval: live && enabled ? backend.pollMs : false,
|
|
196
|
+
refetchOnWindowFocus: live && enabled ? ('always' as const) : (false as const)
|
|
197
|
+
}))
|
|
198
|
+
});
|
|
199
|
+
const parsedSources = indexes.map((result, i) => {
|
|
200
|
+
const entry = entries[i]!;
|
|
201
|
+
const sink = createIssueSink();
|
|
202
|
+
const parsed =
|
|
203
|
+
result.data === undefined || !entry.enabled
|
|
204
|
+
? { runs: [], excluded: [] }
|
|
205
|
+
: parseRunsIndex(`${entry.backend.label}/runs`, result.data, sink);
|
|
206
|
+
return { ...entry, ...parsed, issues: sink.issues, result };
|
|
207
|
+
});
|
|
208
|
+
const reports = parsedSources
|
|
209
|
+
.flatMap(({ backend, runs }) => sourceRuns(backend, runs))
|
|
210
|
+
.sort((a, b) => (Date.parse(b.startedAt) || 0) - (Date.parse(a.startedAt) || 0) || a.id.localeCompare(b.id));
|
|
211
|
+
const selection = selectReport(
|
|
212
|
+
reports,
|
|
213
|
+
entries.filter((entry) => entry.enabled).map((entry) => entry.backend),
|
|
214
|
+
runParam
|
|
215
|
+
);
|
|
216
|
+
const backend = selection?.backend;
|
|
217
|
+
const nativeId = selection?.nativeId;
|
|
218
|
+
const manifest = useQuery({
|
|
219
|
+
queryKey: keys.manifest(backend?.cacheKey ?? '', nativeId ?? ''),
|
|
220
|
+
queryFn: async () => {
|
|
221
|
+
if (!backend || !nativeId) throw new Error('This report source is unavailable.');
|
|
222
|
+
const raw = await backend.manifest(nativeId);
|
|
223
|
+
if (!isRecord(raw)) throw new LoadError(backend.manifestPath(nativeId), 200, 'The report snapshot is not a JSON object.');
|
|
224
|
+
if (isRecord(raw.run) && typeof raw.run.finishedAt === 'string') {
|
|
225
|
+
const info = raw.run;
|
|
226
|
+
client.setQueryData(keys.runsIndex(backend.cacheKey), (previous: unknown) => {
|
|
227
|
+
if (!isRecord(previous) || !Array.isArray(previous.runs)) return previous;
|
|
228
|
+
if (!previous.runs.some((run) => isRecord(run) && run.id === nativeId && run.progress === 'running')) return previous;
|
|
229
|
+
return {
|
|
230
|
+
...previous,
|
|
231
|
+
runs: previous.runs.map((run) =>
|
|
232
|
+
isRecord(run) && run.id === nativeId
|
|
233
|
+
? { ...run, progress: 'complete', execution: info.progress ?? run.execution, durationMs: info.durationMs ?? run.durationMs }
|
|
234
|
+
: run
|
|
235
|
+
)
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
return raw;
|
|
240
|
+
},
|
|
241
|
+
enabled: Boolean(backend && nativeId),
|
|
242
|
+
refetchInterval: (query) => {
|
|
243
|
+
const raw = query.state.data;
|
|
244
|
+
if (isRecord(raw) && isRecord(raw.run) && typeof raw.run.finishedAt === 'string') return false;
|
|
245
|
+
const running = selection?.summary?.progress === 'running' || (isRecord(raw) && isRecord(raw.run) && raw.run.finishedAt === null);
|
|
246
|
+
return live && running ? RUNNING_POLL_MS : false;
|
|
247
|
+
},
|
|
248
|
+
refetchOnWindowFocus: live ? 'always' : false,
|
|
249
|
+
staleTime: selection?.summary?.progress === 'running' ? 0 : Number.POSITIVE_INFINITY
|
|
250
|
+
});
|
|
251
|
+
const specDoc = useMemo(() => {
|
|
252
|
+
if (!index || files.loading) return null;
|
|
253
|
+
const sink = createIssueSink();
|
|
254
|
+
const doc = parseSpec(
|
|
255
|
+
{
|
|
256
|
+
ref: index.ref ?? null,
|
|
257
|
+
files: chartPaths.map((path, i) => ({ path, text: files.texts[i] ?? null, error: files.errors[i] ?? undefined }))
|
|
258
|
+
},
|
|
259
|
+
sink
|
|
260
|
+
);
|
|
261
|
+
return { doc, issues: sink.issues };
|
|
262
|
+
}, [index, chartPaths, files]);
|
|
263
|
+
const runParsed = useMemo(() => {
|
|
264
|
+
if (!selection || manifest.data === undefined) return null;
|
|
265
|
+
const sink = createIssueSink();
|
|
266
|
+
const run = parseManifest(selection.id, selection.backend.manifestPath(selection.nativeId), manifest.data, sink);
|
|
267
|
+
return { run, issues: sink.issues };
|
|
268
|
+
}, [selection?.id, backend, nativeId, manifest.data]);
|
|
269
|
+
const waiting = Boolean(
|
|
270
|
+
selection?.summary?.progress === 'running' &&
|
|
271
|
+
!manifest.data &&
|
|
272
|
+
(!manifest.error || (manifest.error instanceof LoadError && manifest.error.status === 404))
|
|
273
|
+
);
|
|
274
|
+
const runIssues: DataIssue[] = [...parsedSources.flatMap((entry) => entry.issues), ...(runParsed?.issues ?? [])];
|
|
275
|
+
for (const entry of parsedSources)
|
|
276
|
+
if (entry.enabled && entry.result.error)
|
|
277
|
+
runIssues.push({
|
|
278
|
+
severity: 'warning',
|
|
279
|
+
file: entry.backend.label,
|
|
280
|
+
path: '',
|
|
281
|
+
message: `This source could not be refreshed: ${errorText(entry.result.error)}. Available reports are kept.`
|
|
282
|
+
});
|
|
283
|
+
if (manifest.error && selection && !waiting)
|
|
284
|
+
runIssues.push({
|
|
285
|
+
severity: 'warning',
|
|
286
|
+
file: selection.backend.manifestPath(selection.nativeId),
|
|
287
|
+
path: '',
|
|
288
|
+
message: `This report could not be refreshed: ${errorText(manifest.error)}. The last available snapshot is kept.`
|
|
289
|
+
});
|
|
290
|
+
const view = specDoc
|
|
291
|
+
? buildAtlasView({
|
|
292
|
+
spec: specDoc.doc,
|
|
293
|
+
specIssues: specDoc.issues,
|
|
294
|
+
runs: reports,
|
|
295
|
+
run: runParsed?.run ?? null,
|
|
296
|
+
runIssues,
|
|
297
|
+
runProgress:
|
|
298
|
+
runParsed?.run?.info.finishedAt === null
|
|
299
|
+
? 'running'
|
|
300
|
+
: typeof runParsed?.run?.info.finishedAt === 'string'
|
|
301
|
+
? 'complete'
|
|
302
|
+
: selection?.summary?.progress,
|
|
303
|
+
resolveMedia: (id, path) => {
|
|
304
|
+
const resolved = selectReport(
|
|
305
|
+
reports,
|
|
306
|
+
entries.map((entry) => entry.backend),
|
|
307
|
+
id
|
|
308
|
+
);
|
|
309
|
+
return resolved ? resolved.backend.mediaUrl(resolved.nativeId, path) : '';
|
|
310
|
+
}
|
|
311
|
+
})
|
|
312
|
+
: null;
|
|
313
|
+
if (view)
|
|
314
|
+
for (const entry of parsedSources) for (const item of entry.excluded) if (!view.excluded.includes(item)) view.excluded.push(item);
|
|
315
|
+
const refresh = () => {
|
|
316
|
+
void client.invalidateQueries({ queryKey: ['spec', source] });
|
|
317
|
+
for (const { backend: reportBackend, enabled } of entries)
|
|
318
|
+
if (enabled) void client.invalidateQueries({ queryKey: ['reports', reportBackend.cacheKey] });
|
|
319
|
+
};
|
|
320
|
+
const sources = parsedSources.map(({ backend: reportBackend, enabled, runs, result }) => ({
|
|
321
|
+
id: reportBackend.id,
|
|
322
|
+
label: reportBackend.label,
|
|
323
|
+
kind: reportBackend.kind,
|
|
324
|
+
enabled,
|
|
325
|
+
loading: enabled && result.isPending,
|
|
326
|
+
refreshing: result.isFetching,
|
|
327
|
+
error: result.error ? errorText(result.error) : null,
|
|
328
|
+
count: runs.length,
|
|
329
|
+
running: runs.filter((run) => run.progress === 'running').length,
|
|
330
|
+
updatedAt: result.dataUpdatedAt
|
|
331
|
+
}));
|
|
332
|
+
return {
|
|
333
|
+
view,
|
|
334
|
+
spec: {
|
|
335
|
+
loading: specIndex.isPending || files.loading,
|
|
336
|
+
error: specIndex.error
|
|
337
|
+
? errorText(specIndex.error)
|
|
338
|
+
: specIndex.data !== undefined && !index
|
|
339
|
+
? 'The spec index is not in a supported format.'
|
|
340
|
+
: null,
|
|
341
|
+
retry: refresh
|
|
342
|
+
},
|
|
343
|
+
runs: {
|
|
344
|
+
loading: sources.some((entry) => entry.loading),
|
|
345
|
+
error: sources.find((entry) => entry.enabled && entry.error)?.error ?? null,
|
|
346
|
+
retry: refresh
|
|
347
|
+
},
|
|
348
|
+
run: {
|
|
349
|
+
id: selection?.id ?? null,
|
|
350
|
+
summary: selection?.summary ?? null,
|
|
351
|
+
waiting,
|
|
352
|
+
loading: Boolean(selection) && manifest.isPending,
|
|
353
|
+
error: waiting
|
|
354
|
+
? null
|
|
355
|
+
: manifest.error
|
|
356
|
+
? errorText(manifest.error)
|
|
357
|
+
: runParam && runParam !== LATEST && !selection
|
|
358
|
+
? 'This report source is disabled or unavailable.'
|
|
359
|
+
: null,
|
|
360
|
+
retry: selection ? () => void manifest.refetch() : refresh
|
|
361
|
+
},
|
|
362
|
+
reports,
|
|
363
|
+
sources,
|
|
364
|
+
latestRunId: reports[0]?.id ?? null,
|
|
365
|
+
updatedAt: Math.max(manifest.dataUpdatedAt, ...sources.map((entry) => entry.updatedAt), 0),
|
|
366
|
+
refreshing: manifest.isFetching || sources.some((entry) => entry.refreshing),
|
|
367
|
+
refresh
|
|
368
|
+
};
|
|
369
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { listSpecFiles, resolveRoots, runsIndex } from '../../../vite/atlas-files';
|
|
5
|
+
import { buildAtlasView } from '../model/build';
|
|
6
|
+
import { createIssueSink } from '../parse/issues';
|
|
7
|
+
import { parseManifest, parseRunsIndex, type ParsedRun } from '../parse/manifest';
|
|
8
|
+
import { parseSpec, type SpecFile } from '../parse/spec';
|
|
9
|
+
import { readStructured } from '../parse/structured';
|
|
10
|
+
|
|
11
|
+
export const MEDIA_PREFIX = '/__atlas/runs';
|
|
12
|
+
|
|
13
|
+
function readSpecFile(root: string, relative: string): SpecFile {
|
|
14
|
+
try {
|
|
15
|
+
return { path: relative, text: readFileSync(path.join(root, relative), 'utf8') };
|
|
16
|
+
} catch (error) {
|
|
17
|
+
return { path: relative, text: null, error: error instanceof Error ? error.message : 'unreadable' };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A fixture loaded the way the dev server serves it: the spec files it lists, the runs index it
|
|
23
|
+
* builds, and the newest complete run's manifest (or the run named), parsed and built into a view.
|
|
24
|
+
*/
|
|
25
|
+
export function loadFixture(name: string, options: { runId?: string } = {}) {
|
|
26
|
+
const roots = resolveRoots({ ATLAS_FIXTURE: name });
|
|
27
|
+
const specSink = createIssueSink();
|
|
28
|
+
const files = listSpecFiles(roots.specs).map((relative) => readSpecFile(roots.specs, relative));
|
|
29
|
+
const specDoc = parseSpec({ ref: null, files }, specSink);
|
|
30
|
+
|
|
31
|
+
const runSink = createIssueSink();
|
|
32
|
+
const served: unknown = JSON.parse(JSON.stringify(runsIndex(roots.runs)));
|
|
33
|
+
const index = parseRunsIndex('runs/index.json', served, runSink);
|
|
34
|
+
const runId = options.runId ?? index.runs.find((r) => (r.progress ?? 'complete') === 'complete')?.id ?? null;
|
|
35
|
+
let run: ParsedRun | null = null;
|
|
36
|
+
if (runId) {
|
|
37
|
+
const file = `runs/${runId}/manifest.json`;
|
|
38
|
+
let text: string | null = null;
|
|
39
|
+
try {
|
|
40
|
+
text = readFileSync(path.join(roots.runs, runId, 'manifest.json'), 'utf8');
|
|
41
|
+
} catch {
|
|
42
|
+
runSink.add('error', file, [], 'This run has no manifest yet.');
|
|
43
|
+
}
|
|
44
|
+
const raw = text === null ? undefined : readStructured(file, text, runSink);
|
|
45
|
+
run = raw === undefined ? null : parseManifest(runId, file, raw, runSink);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const view = buildAtlasView({
|
|
49
|
+
spec: specDoc,
|
|
50
|
+
specIssues: specSink.issues,
|
|
51
|
+
runs: index.runs,
|
|
52
|
+
run,
|
|
53
|
+
runIssues: runSink.issues,
|
|
54
|
+
runProgress: index.runs.find((r) => r.id === runId)?.progress,
|
|
55
|
+
resolveMedia: (id, media) => `${MEDIA_PREFIX}/${id}/${media}`
|
|
56
|
+
});
|
|
57
|
+
return { view, specDoc, run, runs: index.runs, roots };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** The file on disk behind a media URL the view resolved. */
|
|
61
|
+
export function mediaFile(runsRoot: string, url: string) {
|
|
62
|
+
return path.join(runsRoot, url.slice(MEDIA_PREFIX.length + 1));
|
|
63
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { evidenceFile } from '@crvouga/atlas/reports/export-evidence';
|
|
2
|
+
|
|
3
|
+
/** A built site without a reports API reads the evidence exported beside it. */
|
|
4
|
+
export const staticEvidence = !import.meta.env.DEV && !import.meta.env.VITE_ATLAS_REPORTS_URL;
|
|
5
|
+
export const reportsBase = (import.meta.env.VITE_ATLAS_REPORTS_URL as string | undefined)?.replace(/\/$/, '') ?? (staticEvidence ? './data/evidence' : '/api/reports');
|
|
6
|
+
|
|
7
|
+
export class ReportsError extends Error {
|
|
8
|
+
constructor(
|
|
9
|
+
readonly status: number | null,
|
|
10
|
+
message: string
|
|
11
|
+
) {
|
|
12
|
+
super(message);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function explain(status: number) {
|
|
17
|
+
if (status === 503) return 'The reports store is unavailable. Configure a reports storage adapter or read credential.';
|
|
18
|
+
if (status === 404) return 'This evidence is not in the report store.';
|
|
19
|
+
return `Evidence could not be read (${status}).`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export async function reportResponse(path: string, signal?: AbortSignal) {
|
|
23
|
+
const url = staticEvidence ? `${reportsBase}/${evidenceFile(path).split('/').map(encodeURIComponent).join('/')}` : `${reportsBase}${path}`;
|
|
24
|
+
let response: Response;
|
|
25
|
+
try {
|
|
26
|
+
response = await fetch(url, { signal });
|
|
27
|
+
} catch (error) {
|
|
28
|
+
if (signal?.aborted) throw error;
|
|
29
|
+
throw new ReportsError(null, 'The reports server could not be reached.');
|
|
30
|
+
}
|
|
31
|
+
if (!response.ok) throw new ReportsError(response.status, explain(response.status));
|
|
32
|
+
return response;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export async function reportJson<T>(path: string, signal?: AbortSignal): Promise<T> {
|
|
36
|
+
return (await reportResponse(path, signal)).json() as Promise<T>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export async function reportText(path: string, signal?: AbortSignal) {
|
|
40
|
+
return (await reportResponse(path, signal)).text();
|
|
41
|
+
}
|