@tryvitris/website-harness 0.0.0-stage → 0.1.0-beta.5
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/CONTRIBUTING.md +7 -0
- package/LICENSE +21 -0
- package/NOTICE +17 -0
- package/README.md +139 -2
- package/agent/EVALUATION.md +23 -0
- package/agent/PROMPT.md +13 -0
- package/agent/STATE.json +109 -0
- package/agent/WORKFLOW.md +108 -0
- package/agent/evals/preview.md +5 -0
- package/agent/graph.yaml +752 -0
- package/agent/guardrails.md +10 -0
- package/agent/refs/accessibility.md +9 -0
- package/agent/refs/art-direction.md +15 -0
- package/agent/refs/brand.md +3 -0
- package/agent/refs/browser.md +15 -0
- package/agent/refs/business.md +9 -0
- package/agent/refs/components.md +42 -0
- package/agent/refs/compose.md +10 -0
- package/agent/refs/contracts.md +32 -0
- package/agent/refs/copy.md +14 -0
- package/agent/refs/counterpoint.md +3 -0
- package/agent/refs/critic.md +29 -0
- package/agent/refs/design-calibration.md +31 -0
- package/agent/refs/design-feedback.md +13 -0
- package/agent/refs/design-quality.md +33 -0
- package/agent/refs/design-synthesis.md +9 -0
- package/agent/refs/direction.md +29 -0
- package/agent/refs/feedback-fulfillment.md +7 -0
- package/agent/refs/geo.md +7 -0
- package/agent/refs/harvest.md +7 -0
- package/agent/refs/icons.md +102 -0
- package/agent/refs/images.md +3 -0
- package/agent/refs/implement.md +24 -0
- package/agent/refs/industry-reference-shortlist.md +64 -0
- package/agent/refs/inspiration.md +17 -0
- package/agent/refs/interpret.md +3 -0
- package/agent/refs/jev.md +166 -0
- package/agent/refs/launch.md +11 -0
- package/agent/refs/layout.md +7 -0
- package/agent/refs/media.md +35 -0
- package/agent/refs/motif.md +3 -0
- package/agent/refs/motion-count.md +13 -0
- package/agent/refs/motion-image.md +12 -0
- package/agent/refs/motion-numeric.md +14 -0
- package/agent/refs/motion-page.md +23 -0
- package/agent/refs/motion-process.md +12 -0
- package/agent/refs/motion-sequence.md +7 -0
- package/agent/refs/motion-text.md +12 -0
- package/agent/refs/motion.md +11 -0
- package/agent/refs/narrative.md +9 -0
- package/agent/refs/performance.md +36 -0
- package/agent/refs/preview.md +3 -0
- package/agent/refs/production-quality.md +33 -0
- package/agent/refs/psychology.md +3 -0
- package/agent/refs/refine.md +14 -0
- package/agent/refs/research.md +7 -0
- package/agent/refs/sections.md +6 -0
- package/agent/refs/seo.md +9 -0
- package/agent/refs/storyboard.md +27 -0
- package/agent/refs/template-adaptation.md +42 -0
- package/agent/refs/template-from-url.md +91 -0
- package/agent/refs/template-library.md +32 -0
- package/agent/refs/template-motion.md +44 -0
- package/agent/refs/theme-selection.md +13 -0
- package/agent/refs/ui-ux.md +7 -0
- package/agent/refs/usability.md +5 -0
- package/agent/refs/variant-directions.md +20 -0
- package/agent/refs/write.md +6 -0
- package/agent/request.json +11 -0
- package/agent/workflow.json +4 -0
- package/bin/api/agent/artifacts.js +38 -0
- package/bin/api/agent/evaluate.js +55 -0
- package/bin/api/agent/grade.js +51 -0
- package/bin/api/agent/graph.js +16 -0
- package/bin/api/cli/api.js +104 -0
- package/bin/api/cli.js +48 -0
- package/bin/api/contracts.js +22 -0
- package/bin/api/engine.js +53 -0
- package/bin/api/hosting.js +40 -0
- package/bin/api/icons.js +57 -0
- package/bin/api/index.js +20 -0
- package/bin/api/references.js +45 -0
- package/bin/api/render.js +61 -0
- package/bin/api/schema.js +68 -0
- package/bin/api/theme.js +9 -0
- package/bin/api/types.js +8 -0
- package/bin/chunks/chunk-2NW7KSPA.js +17 -0
- package/bin/chunks/chunk-34H54KEY.js +45 -0
- package/bin/chunks/chunk-3CTBXY5K.js +22313 -0
- package/bin/chunks/chunk-42IXFXUD.js +1141 -0
- package/bin/chunks/chunk-4DM5TTLG.js +219 -0
- package/bin/chunks/chunk-4GZCAWWK.js +327 -0
- package/bin/chunks/chunk-54JC5L35.js +493 -0
- package/bin/chunks/chunk-5OOPJNGN.js +511 -0
- package/bin/chunks/chunk-6A3VWYMF.js +28 -0
- package/bin/chunks/chunk-6H3T46F5.js +25 -0
- package/bin/chunks/chunk-7FS67SRF.js +12 -0
- package/bin/chunks/chunk-7VLBEAFW.js +56 -0
- package/bin/chunks/chunk-ANMJRJQ5.js +31 -0
- package/bin/chunks/chunk-AUO5I56E.js +118774 -0
- package/bin/chunks/chunk-B5I45LFD.js +619 -0
- package/bin/chunks/chunk-BBV7PMFC.js +185 -0
- package/bin/chunks/chunk-BIEDSEL2.js +8 -0
- package/bin/chunks/chunk-CBEJZO4L.js +67 -0
- package/bin/chunks/chunk-DRJQ4OOU.js +514 -0
- package/bin/chunks/chunk-DSS2U2OM.js +115 -0
- package/bin/chunks/chunk-E5Y46VBX.js +678 -0
- package/bin/chunks/chunk-FOXUQXTV.js +278 -0
- package/bin/chunks/chunk-FYN4T4SV.js +4900 -0
- package/bin/chunks/chunk-G7MNMULR.js +192 -0
- package/bin/chunks/chunk-GVNIL34R.js +78 -0
- package/bin/chunks/chunk-GZDLXYZV.js +3425 -0
- package/bin/chunks/chunk-HNORQ74T.js +40 -0
- package/bin/chunks/chunk-IKNMBGGD.js +217 -0
- package/bin/chunks/chunk-JCRGE6AL.js +14 -0
- package/bin/chunks/chunk-LKN75JGA.js +63 -0
- package/bin/chunks/chunk-M2ETYSVJ.js +176 -0
- package/bin/chunks/chunk-M4LNHYYR.js +177 -0
- package/bin/chunks/chunk-PRLL7B63.js +113 -0
- package/bin/chunks/chunk-R7YELY3C.js +923 -0
- package/bin/chunks/chunk-T6PE4KN4.js +277 -0
- package/bin/chunks/chunk-T7DGRVTP.js +458 -0
- package/bin/chunks/chunk-TY33XMHW.js +239 -0
- package/bin/chunks/chunk-VH7PM7KJ.js +179 -0
- package/bin/chunks/chunk-WEFDVXFX.js +65 -0
- package/bin/chunks/chunk-XGTHGWPW.js +90 -0
- package/bin/chunks/chunk-XL2DRAYI.js +39 -0
- package/bin/chunks/chunk-YCVGD2CG.js +2751 -0
- package/bin/chunks/chunk-YQYHROLZ.js +1023 -0
- package/bin/chunks/chunk-YYPYYOEV.js +34 -0
- package/bin/chunks/chunk-Z2UNY47A.js +2418 -0
- package/bin/chunks/design-context-store-IAT2P2OC.js +39 -0
- package/bin/chunks/packets-VBMY4SQJ.js +53 -0
- package/bin/chunks/policy-2I37JUU3.js +18 -0
- package/bin/chunks/preparation-S4MG3RPL.js +93 -0
- package/bin/chunks/questions-HKELBDFL.js +120 -0
- package/bin/chunks/state-GDL6CCJI.js +20 -0
- package/bin/chunks/template-gallery-ET76ERZQ.js +140 -0
- package/bin/cloudflare/backend.js +24421 -0
- package/bin/cloudflare/blake3.wasm +0 -0
- package/bin/cloudflare/forms-test.js +429 -0
- package/bin/cloudflare/templates.js +100 -0
- package/bin/types/scripts/lib/r2.d.ts +7 -0
- package/bin/types/scripts/onboard/browser.d.ts +9 -0
- package/bin/types/scripts/onboard/crawl.d.ts +35 -0
- package/bin/types/scripts/onboard/images.d.ts +19 -0
- package/bin/types/scripts/onboard/prompt.d.ts +10 -0
- package/bin/types/scripts/onboard/run.d.ts +47 -0
- package/bin/types/src/agent/adaptation-checkpoint.d.ts +70 -0
- package/bin/types/src/agent/added-media.d.ts +31 -0
- package/bin/types/src/agent/api-contracts.d.ts +2 -0
- package/bin/types/src/agent/art-direction-policy.d.ts +9 -0
- package/bin/types/src/agent/art-direction.d.ts +253 -0
- package/bin/types/src/agent/artifacts.d.ts +602 -0
- package/bin/types/src/agent/browser-motion-journey.d.ts +59 -0
- package/bin/types/src/agent/browser-motion.d.ts +40 -0
- package/bin/types/src/agent/browser-timeout.d.ts +4 -0
- package/bin/types/src/agent/composition-authoring.d.ts +12 -0
- package/bin/types/src/agent/composition-context.d.ts +63 -0
- package/bin/types/src/agent/composition-contract.d.ts +4 -0
- package/bin/types/src/agent/composition-decisions.d.ts +43 -0
- package/bin/types/src/agent/composition-preflight.d.ts +16 -0
- package/bin/types/src/agent/creative-change-context.d.ts +21 -0
- package/bin/types/src/agent/creative-context.d.ts +56 -0
- package/bin/types/src/agent/creative-contract.d.ts +123 -0
- package/bin/types/src/agent/creative-efficiency.d.ts +18 -0
- package/bin/types/src/agent/creative-evidence.d.ts +57 -0
- package/bin/types/src/agent/creative-objective.d.ts +33 -0
- package/bin/types/src/agent/creative-profile.d.ts +81 -0
- package/bin/types/src/agent/creative-prompts.d.ts +7 -0
- package/bin/types/src/agent/creative-render-bindings.d.ts +13 -0
- package/bin/types/src/agent/creative-revision.d.ts +33 -0
- package/bin/types/src/agent/creative-skills.d.ts +25 -0
- package/bin/types/src/agent/cursor-hook.d.ts +182 -0
- package/bin/types/src/agent/design-bundle.d.ts +24 -0
- package/bin/types/src/agent/design-calibration.d.ts +43 -0
- package/bin/types/src/agent/design-cli.d.ts +5 -0
- package/bin/types/src/agent/design-comparison.d.ts +63 -0
- package/bin/types/src/agent/design-context-packet.d.ts +82 -0
- package/bin/types/src/agent/design-context-store.d.ts +14 -0
- package/bin/types/src/agent/design-context.d.ts +85 -0
- package/bin/types/src/agent/design-contracts.d.ts +35 -0
- package/bin/types/src/agent/design-copy.d.ts +29 -0
- package/bin/types/src/agent/design-feedback.d.ts +91 -0
- package/bin/types/src/agent/design-knowledge.d.ts +124 -0
- package/bin/types/src/agent/design-quality.d.ts +143 -0
- package/bin/types/src/agent/design-review-server.d.ts +13 -0
- package/bin/types/src/agent/design-run.d.ts +174 -0
- package/bin/types/src/agent/design-synthesis.d.ts +76 -0
- package/bin/types/src/agent/design-usage.d.ts +38 -0
- package/bin/types/src/agent/editorial.d.ts +11 -0
- package/bin/types/src/agent/evaluate.d.ts +28 -0
- package/bin/types/src/agent/grade.d.ts +16 -0
- package/bin/types/src/agent/graph.d.ts +82 -0
- package/bin/types/src/agent/industry/document.d.ts +10 -0
- package/bin/types/src/agent/industry/interactions.d.ts +2 -0
- package/bin/types/src/agent/industry/markup.d.ts +14 -0
- package/bin/types/src/agent/industry/registry.d.ts +2 -0
- package/bin/types/src/agent/industry/render-style.d.ts +3 -0
- package/bin/types/src/agent/industry/ridgeline/browse.d.ts +2 -0
- package/bin/types/src/agent/industry/ridgeline/diagrams.d.ts +9 -0
- package/bin/types/src/agent/industry/ridgeline/facts.d.ts +61 -0
- package/bin/types/src/agent/industry/ridgeline/pages/company.d.ts +5 -0
- package/bin/types/src/agent/industry/ridgeline/pages/home.d.ts +1 -0
- package/bin/types/src/agent/industry/ridgeline/pages/journal.d.ts +24 -0
- package/bin/types/src/agent/industry/ridgeline/pages/services.d.ts +6 -0
- package/bin/types/src/agent/industry/ridgeline/photo.d.ts +18 -0
- package/bin/types/src/agent/industry/ridgeline/script.d.ts +1 -0
- package/bin/types/src/agent/industry/ridgeline/site.d.ts +2 -0
- package/bin/types/src/agent/industry/ridgeline/style.d.ts +1 -0
- package/bin/types/src/agent/industry/ridgeline/theme.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/barber-club.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/barber-corner.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/barber-form.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/browse.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/construction-built.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/construction-craft.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/construction-siteworks.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/electrical-circuit.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/electrical-light.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/electrical-power.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/hvac-climate.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/hvac-dispatch.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/hvac-seasonal.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/interactions.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/landscape-atlas.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/landscape-courtyard.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/landscape-seasons.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/legal-casework.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/legal-counsel.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/legal-table.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/medical-continuum.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/medical-movement.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/medical-neighborhood.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/primitives.d.ts +31 -0
- package/bin/types/src/agent/industry/seven/registry.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/theme.d.ts +3 -0
- package/bin/types/src/agent/industry/sites/common-ground.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/coordination.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/everyday.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/independent.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/mainstage.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/neighborhood.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/next-chapter.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/practice-notes.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/property-desk.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/residence.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/risk-office.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/workshop.d.ts +2 -0
- package/bin/types/src/agent/industry/types.d.ts +48 -0
- package/bin/types/src/agent/invocation-budget.d.ts +32 -0
- package/bin/types/src/agent/jev/agent-usage.d.ts +165 -0
- package/bin/types/src/agent/jev/batching.d.ts +101 -0
- package/bin/types/src/agent/jev/block-catalog.d.ts +95 -0
- package/bin/types/src/agent/jev/bounds.d.ts +30 -0
- package/bin/types/src/agent/jev/budget.d.ts +76 -0
- package/bin/types/src/agent/jev/business-draft.d.ts +103 -0
- package/bin/types/src/agent/jev/calibration.d.ts +131 -0
- package/bin/types/src/agent/jev/client.d.ts +52 -0
- package/bin/types/src/agent/jev/component-select.d.ts +102 -0
- package/bin/types/src/agent/jev/config.d.ts +52 -0
- package/bin/types/src/agent/jev/consistency.d.ts +105 -0
- package/bin/types/src/agent/jev/content-checks.d.ts +121 -0
- package/bin/types/src/agent/jev/creative.d.ts +81 -0
- package/bin/types/src/agent/jev/critic-report.d.ts +132 -0
- package/bin/types/src/agent/jev/extraction.d.ts +84 -0
- package/bin/types/src/agent/jev/goals.d.ts +43 -0
- package/bin/types/src/agent/jev/html-tree.d.ts +28 -0
- package/bin/types/src/agent/jev/indexing.d.ts +51 -0
- package/bin/types/src/agent/jev/ledger.d.ts +154 -0
- package/bin/types/src/agent/jev/media.d.ts +62 -0
- package/bin/types/src/agent/jev/observations.d.ts +26 -0
- package/bin/types/src/agent/jev/ownership.d.ts +74 -0
- package/bin/types/src/agent/jev/packets.d.ts +124 -0
- package/bin/types/src/agent/jev/policy.d.ts +83 -0
- package/bin/types/src/agent/jev/questions.d.ts +244 -0
- package/bin/types/src/agent/jev/ranking.d.ts +129 -0
- package/bin/types/src/agent/jev/repair.d.ts +73 -0
- package/bin/types/src/agent/jev/review.d.ts +37 -0
- package/bin/types/src/agent/jev/security.d.ts +28 -0
- package/bin/types/src/agent/jev/semantic-lifecycle.d.ts +19 -0
- package/bin/types/src/agent/jev/semantic-tasks.d.ts +89 -0
- package/bin/types/src/agent/jev/service-registry.d.ts +98 -0
- package/bin/types/src/agent/jev/state.d.ts +104 -0
- package/bin/types/src/agent/jev/types.d.ts +190 -0
- package/bin/types/src/agent/jev/visible-assertions.d.ts +84 -0
- package/bin/types/src/agent/kernel-commands.d.ts +2 -0
- package/bin/types/src/agent/kit-runtime.d.ts +12 -0
- package/bin/types/src/agent/legacy-definitions/theme-art.d.ts +5 -0
- package/bin/types/src/agent/legacy-definitions/theme-commissions.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-extremes.d.ts +7 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-graphic.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-reading.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-extremes.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-people.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-programme.d.ts +3 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-project.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-season.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-tactile.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-legacy-specimens.d.ts +8 -0
- package/bin/types/src/agent/legacy-definitions/theme-library-legacy.d.ts +20 -0
- package/bin/types/src/agent/legacy-definitions/theme-library-release2.d.ts +3 -0
- package/bin/types/src/agent/legacy-definitions/theme-service-art.d.ts +7 -0
- package/bin/types/src/agent/legacy-definitions/theme-service-commissions.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-specimens.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suite-data.d.ts +25 -0
- package/bin/types/src/agent/legacy-definitions/theme-suite-style.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-checkpoint.d.ts +14 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-graphic.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-information.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-local.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-material.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-practice.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-spatial.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites.d.ts +3 -0
- package/bin/types/src/agent/lifecycle.d.ts +136 -0
- package/bin/types/src/agent/lighthouse-browser.d.ts +5 -0
- package/bin/types/src/agent/media-format.d.ts +5 -0
- package/bin/types/src/agent/migration-links.d.ts +4 -0
- package/bin/types/src/agent/motion-composition.d.ts +22 -0
- package/bin/types/src/agent/motion-knowledge.d.ts +3 -0
- package/bin/types/src/agent/motion-plan.d.ts +6 -0
- package/bin/types/src/agent/performance.d.ts +52 -0
- package/bin/types/src/agent/playwright-runtime.d.ts +8 -0
- package/bin/types/src/agent/preparation.d.ts +193 -0
- package/bin/types/src/agent/preview.d.ts +1 -0
- package/bin/types/src/agent/production-quality.d.ts +72 -0
- package/bin/types/src/agent/reference-contract.d.ts +3 -0
- package/bin/types/src/agent/reference-fit.d.ts +50 -0
- package/bin/types/src/agent/reference-library.d.ts +313 -0
- package/bin/types/src/agent/reference-studies.d.ts +110 -0
- package/bin/types/src/agent/refine.d.ts +348 -0
- package/bin/types/src/agent/result-manifest.d.ts +38 -0
- package/bin/types/src/agent/runner.d.ts +10 -0
- package/bin/types/src/agent/site-inputs.d.ts +26 -0
- package/bin/types/src/agent/source-manifest.d.ts +9 -0
- package/bin/types/src/agent/state-transition.d.ts +16 -0
- package/bin/types/src/agent/storyboard-media.d.ts +11 -0
- package/bin/types/src/agent/study-render.d.ts +27 -0
- package/bin/types/src/agent/template-adaptation.d.ts +69 -0
- package/bin/types/src/agent/template-motion.d.ts +59 -0
- package/bin/types/src/agent/theme-art-direction.d.ts +2 -0
- package/bin/types/src/agent/theme-art.d.ts +1 -0
- package/bin/types/src/agent/theme-assets.d.ts +36 -0
- package/bin/types/src/agent/theme-browse.d.ts +67 -0
- package/bin/types/src/agent/theme-cloud-resources.d.ts +7 -0
- package/bin/types/src/agent/theme-cloud.d.ts +41 -0
- package/bin/types/src/agent/theme-commissions.d.ts +1 -0
- package/bin/types/src/agent/theme-compositions-extremes.d.ts +1 -0
- package/bin/types/src/agent/theme-compositions.d.ts +1 -0
- package/bin/types/src/agent/theme-identity.d.ts +23 -0
- package/bin/types/src/agent/theme-layout-roles.d.ts +7 -0
- package/bin/types/src/agent/theme-legacy-specimens.d.ts +1 -0
- package/bin/types/src/agent/theme-library-legacy.d.ts +1 -0
- package/bin/types/src/agent/theme-library-release2.d.ts +1 -0
- package/bin/types/src/agent/theme-library.d.ts +60 -0
- package/bin/types/src/agent/theme-page-manifest.d.ts +26 -0
- package/bin/types/src/agent/theme-picker-model.d.ts +51 -0
- package/bin/types/src/agent/theme-picker-runtime.d.ts +1 -0
- package/bin/types/src/agent/theme-picker-selection-runtime.d.ts +1 -0
- package/bin/types/src/agent/theme-picker-shell.d.ts +7 -0
- package/bin/types/src/agent/theme-picker-styles.d.ts +1 -0
- package/bin/types/src/agent/theme-picker.d.ts +20 -0
- package/bin/types/src/agent/theme-preview.d.ts +26 -0
- package/bin/types/src/agent/theme-release2/assets.d.ts +22 -0
- package/bin/types/src/agent/theme-release2/specimens.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-art.d.ts +5 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-extremes.d.ts +7 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-graphic.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-reading.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-tactile.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-compositions.d.ts +3 -0
- package/bin/types/src/agent/theme-release2/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/theme-release3/theme-art-direction.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-art.d.ts +5 -0
- package/bin/types/src/agent/theme-release3/theme-assets.d.ts +121 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-extremes.d.ts +7 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-graphic.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-reading.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-extremes.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-people.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-programme.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-project.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-season.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-tactile.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-identity.d.ts +23 -0
- package/bin/types/src/agent/theme-release3/theme-library.d.ts +4 -0
- package/bin/types/src/agent/theme-release3/theme-service-art.d.ts +7 -0
- package/bin/types/src/agent/theme-release3/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/theme-release3/theme-specimens.d.ts +2 -0
- package/bin/types/src/agent/theme-selection.d.ts +75 -0
- package/bin/types/src/agent/theme-service-art.d.ts +1 -0
- package/bin/types/src/agent/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/theme-specimens.d.ts +1 -0
- package/bin/types/src/agent/theme-suite-data.d.ts +1 -0
- package/bin/types/src/agent/theme-suite-identity.d.ts +42 -0
- package/bin/types/src/agent/theme-suite-primitives.d.ts +14 -0
- package/bin/types/src/agent/theme-suite-renderer.d.ts +8 -0
- package/bin/types/src/agent/theme-suite-style.d.ts +1 -0
- package/bin/types/src/agent/theme-suites.d.ts +1 -0
- package/bin/types/src/agent/theme-thumbnails.d.ts +8 -0
- package/bin/types/src/agent/trace.d.ts +337 -0
- package/bin/types/src/agent/workflow-config.d.ts +25 -0
- package/bin/types/src/agent/workflow.d.ts +104 -0
- package/bin/types/src/blocks/library-profile.d.ts +9 -0
- package/bin/types/src/blocks/metadata.d.ts +65 -0
- package/bin/types/src/build/index.d.ts +29 -0
- package/bin/types/src/build/responsive-media.d.ts +19 -0
- package/bin/types/src/build/serve.d.ts +4 -0
- package/bin/types/src/build/static-output.d.ts +2 -0
- package/bin/types/src/build/verified.d.ts +1 -0
- package/bin/types/src/cli/api.d.ts +17 -0
- package/bin/types/src/cli/deploy.d.ts +21 -0
- package/bin/types/src/cli/doctor.d.ts +16 -0
- package/bin/types/src/cli/events.d.ts +16 -0
- package/bin/types/src/cli/feedback.d.ts +21 -0
- package/bin/types/src/cli/forms.d.ts +16 -0
- package/bin/types/src/cli/index.d.ts +1 -0
- package/bin/types/src/cli/lifecycle.d.ts +18 -0
- package/bin/types/src/cli/preserve.d.ts +8 -0
- package/bin/types/src/cli/preview.d.ts +14 -0
- package/bin/types/src/cli/refine.d.ts +41 -0
- package/bin/types/src/cli/root.d.ts +3 -0
- package/bin/types/src/cli/run.d.ts +30 -0
- package/bin/types/src/cli/share.d.ts +17 -0
- package/bin/types/src/cli/site-create.d.ts +24 -0
- package/bin/types/src/cli/site-migrate.d.ts +11 -0
- package/bin/types/src/cli/status.d.ts +8 -0
- package/bin/types/src/cli/types.d.ts +34 -0
- package/bin/types/src/cli/upgrade.d.ts +11 -0
- package/bin/types/src/cli/verify.d.ts +17 -0
- package/bin/types/src/cli/workflow-argv.d.ts +2 -0
- package/bin/types/src/compile/flatten.d.ts +23 -0
- package/bin/types/src/compile/frontmatter.d.ts +10 -0
- package/bin/types/src/compile/icons.d.ts +2 -0
- package/bin/types/src/compile/paths.d.ts +4 -0
- package/bin/types/src/compile/primitives.d.ts +2 -0
- package/bin/types/src/compile/scroll-motion.d.ts +14 -0
- package/bin/types/src/compile/site.d.ts +40 -0
- package/bin/types/src/editing/identity.d.ts +7 -0
- package/bin/types/src/editing/manifest.d.ts +38 -0
- package/bin/types/src/engine/checks.d.ts +2 -0
- package/bin/types/src/engine/contracts.d.ts +104 -0
- package/bin/types/src/engine/impact.d.ts +3 -0
- package/bin/types/src/engine/index.d.ts +70 -0
- package/bin/types/src/engine/revision.d.ts +5 -0
- package/bin/types/src/forms/cloudflare.d.ts +24 -0
- package/bin/types/src/forms/config.d.ts +34 -0
- package/bin/types/src/forms/frontend.d.ts +9 -0
- package/bin/types/src/html.d.ts +3 -0
- package/bin/types/src/icons/catalog.d.ts +28 -0
- package/bin/types/src/icons/coverage.d.ts +12 -0
- package/bin/types/src/icons/drawing.d.ts +7 -0
- package/bin/types/src/icons/duotone.d.ts +4 -0
- package/bin/types/src/icons/index.d.ts +37 -0
- package/bin/types/src/icons/industry-refinements-v4.d.ts +4 -0
- package/bin/types/src/icons/industry-review.d.ts +11 -0
- package/bin/types/src/icons/industry.d.ts +2 -0
- package/bin/types/src/icons/refinements.d.ts +5 -0
- package/bin/types/src/icons/studio-industry-review.d.ts +9 -0
- package/bin/types/src/icons/studio-industry.d.ts +5 -0
- package/bin/types/src/icons/studio.d.ts +34 -0
- package/bin/types/src/integrations/cloudflare-pages.d.ts +10 -0
- package/bin/types/src/integrations/deployment-smoke.d.ts +11 -0
- package/bin/types/src/integrations/hosting.d.ts +33 -0
- package/bin/types/src/integrations/wrangler-command.d.ts +5 -0
- package/bin/types/src/knowledge/artifact-order.d.ts +1 -0
- package/bin/types/src/knowledge/artifact.d.ts +11 -0
- package/bin/types/src/knowledge/composition.d.ts +54 -0
- package/bin/types/src/knowledge/contracts.d.ts +111 -0
- package/bin/types/src/knowledge/explain.d.ts +6 -0
- package/bin/types/src/knowledge/pack.d.ts +32 -0
- package/bin/types/src/knowledge/selection.d.ts +18 -0
- package/bin/types/src/knowledge/site-widgets.d.ts +6 -0
- package/bin/types/src/onboard/brief.d.ts +182 -0
- package/bin/types/src/onboard/classify.d.ts +31 -0
- package/bin/types/src/onboard/crawl-order.d.ts +7 -0
- package/bin/types/src/onboard/extract.d.ts +102 -0
- package/bin/types/src/onboard/harvest-inventory.d.ts +84 -0
- package/bin/types/src/onboard/outline.d.ts +13 -0
- package/bin/types/src/onboard/quality.d.ts +6 -0
- package/bin/types/src/onboard/shortlist.d.ts +11 -0
- package/bin/types/src/onboard/social.d.ts +15 -0
- package/bin/types/src/onboard/visual-hints.d.ts +12 -0
- package/bin/types/src/preserve/build.d.ts +1 -0
- package/bin/types/src/preserve/capture.d.ts +21 -0
- package/bin/types/src/preserve/components.d.ts +10 -0
- package/bin/types/src/preserve/config.d.ts +53 -0
- package/bin/types/src/preserve/embeds.d.ts +15 -0
- package/bin/types/src/preserve/hovers.d.ts +10 -0
- package/bin/types/src/preserve/react-capabilities.d.ts +2 -0
- package/bin/types/src/preserve/runtime.d.ts +2 -0
- package/bin/types/src/preserve/source-defects.d.ts +4 -0
- package/bin/types/src/preserve/supplement.d.ts +3 -0
- package/bin/types/src/preserve/verify.d.ts +29 -0
- package/bin/types/src/render.d.ts +10 -0
- package/bin/types/src/runtime/beacon.d.ts +2 -0
- package/bin/types/src/runtime/before-after.d.ts +2 -0
- package/bin/types/src/runtime/carousel.d.ts +2 -0
- package/bin/types/src/runtime/cookie-compliance.d.ts +14 -0
- package/bin/types/src/runtime/experience.d.ts +4 -0
- package/bin/types/src/runtime/header.d.ts +2 -0
- package/bin/types/src/runtime/leads.d.ts +2 -0
- package/bin/types/src/runtime/lightbox.d.ts +2 -0
- package/bin/types/src/runtime/scroll-motion.generated.d.ts +4 -0
- package/bin/types/src/runtime/tabs.d.ts +2 -0
- package/bin/types/src/schema.d.ts +27 -0
- package/bin/types/src/stock/library.d.ts +14 -0
- package/bin/types/src/stock/search.d.ts +30 -0
- package/bin/types/src/stock/selection.d.ts +30 -0
- package/bin/types/src/stock/types.d.ts +54 -0
- package/bin/types/src/theme.d.ts +3 -0
- package/bin/types/src/types.d.ts +115 -0
- package/bin/types/src/upgrade/kit.d.ts +48 -0
- package/bin/vitris-art.js +192 -0
- package/bin/vitris-blocks.js +238 -0
- package/bin/vitris-build.js +24 -0
- package/bin/vitris-catalog.js +49 -0
- package/bin/vitris-content-coverage.js +21 -0
- package/bin/vitris-create-site.js +86 -0
- package/bin/vitris-cursor-hook.js +61 -0
- package/bin/vitris-eval.js +76 -0
- package/bin/vitris-go.js +99 -0
- package/bin/vitris-harvest.js +184 -0
- package/bin/vitris-icons.js +168 -0
- package/bin/vitris-knowledge.js +43 -0
- package/bin/vitris-launch-preflight.js +964 -0
- package/bin/vitris-media-serve.js +50 -0
- package/bin/vitris-migrate-site.js +20 -0
- package/bin/vitris-motion-view.js +80 -0
- package/bin/vitris-prepare-media.js +64 -0
- package/bin/vitris-preview.js +36 -0
- package/bin/vitris-references.js +173 -0
- package/bin/vitris-refresh.js +50 -0
- package/bin/vitris-sign-publish-bundle.js +64 -0
- package/bin/vitris-stock.js +161 -0
- package/bin/vitris-templates.js +261 -0
- package/bin/vitris-themes.js +321 -0
- package/bin/vitris-upgrade.js +50 -0
- package/bin/vitris-verify-browser.js +662 -0
- package/bin/vitris-verify-performance.js +44 -0
- package/bin/vitris.js +50 -0
- package/blocks/CONVENTIONS.md +121 -0
- package/blocks/INDEX.md +130 -0
- package/blocks/about/about-awards/README.md +36 -0
- package/blocks/about/about-awards/styles.css +13 -0
- package/blocks/about/about-awards/template.html +1 -0
- package/blocks/about/about-credentials/README.md +33 -0
- package/blocks/about/about-credentials/block.meta.json +85 -0
- package/blocks/about/about-credentials/styles.css +4 -0
- package/blocks/about/about-credentials/template.html +1 -0
- package/blocks/about/about-founder/README.md +35 -0
- package/blocks/about/about-founder/styles.css +9 -0
- package/blocks/about/about-founder/template.html +1 -0
- package/blocks/about/about-mission/README.md +31 -0
- package/blocks/about/about-mission/styles.css +5 -0
- package/blocks/about/about-mission/template.html +1 -0
- package/blocks/about/about-statement/README.md +28 -0
- package/blocks/about/about-statement/styles.css +7 -0
- package/blocks/about/about-statement/template.html +1 -0
- package/blocks/about/about-story/README.md +35 -0
- package/blocks/about/about-story/styles.css +5 -0
- package/blocks/about/about-story/template.html +1 -0
- package/blocks/about/about-timeline/README.md +33 -0
- package/blocks/about/about-timeline/styles.css +8 -0
- package/blocks/about/about-timeline/template.html +1 -0
- package/blocks/about/about-values/README.md +31 -0
- package/blocks/about/about-values/styles.css +3 -0
- package/blocks/about/about-values/template.html +1 -0
- package/blocks/blog/blog-featured/README.md +39 -0
- package/blocks/blog/blog-featured/styles.css +12 -0
- package/blocks/blog/blog-featured/template.html +1 -0
- package/blocks/blog/blog-index/README.md +34 -0
- package/blocks/blog/blog-index/styles.css +6 -0
- package/blocks/blog/blog-index/template.html +1 -0
- package/blocks/blog/blog-post-header/README.md +31 -0
- package/blocks/blog/blog-post-header/styles.css +8 -0
- package/blocks/blog/blog-post-header/template.html +1 -0
- package/blocks/contact/contact-cards/README.md +32 -0
- package/blocks/contact/contact-cards/styles.css +7 -0
- package/blocks/contact/contact-cards/template.html +1 -0
- package/blocks/contact/contact-chips/README.md +41 -0
- package/blocks/contact/contact-chips/styles.css +13 -0
- package/blocks/contact/contact-chips/template.html +1 -0
- package/blocks/contact/contact-hours/README.md +41 -0
- package/blocks/contact/contact-hours/block.meta.json +87 -0
- package/blocks/contact/contact-hours/styles.css +8 -0
- package/blocks/contact/contact-hours/template.html +1 -0
- package/blocks/contact/contact-map/README.md +39 -0
- package/blocks/contact/contact-map/styles.css +10 -0
- package/blocks/contact/contact-map/template.html +1 -0
- package/blocks/contact/contact-offices/README.md +32 -0
- package/blocks/contact/contact-offices/styles.css +8 -0
- package/blocks/contact/contact-offices/template.html +1 -0
- package/blocks/contact/contact-phone-first/README.md +33 -0
- package/blocks/contact/contact-phone-first/block.meta.json +86 -0
- package/blocks/contact/contact-phone-first/styles.css +11 -0
- package/blocks/contact/contact-phone-first/template.html +1 -0
- package/blocks/contact/contact-split/README.md +43 -0
- package/blocks/contact/contact-split/styles.css +12 -0
- package/blocks/contact/contact-split/template.html +1 -0
- package/blocks/contact/contact-visit/README.md +36 -0
- package/blocks/contact/contact-visit/block.meta.json +88 -0
- package/blocks/contact/contact-visit/styles.css +13 -0
- package/blocks/contact/contact-visit/template.html +1 -0
- package/blocks/contact/service-areas/README.md +32 -0
- package/blocks/contact/service-areas/styles.css +9 -0
- package/blocks/contact/service-areas/template.html +1 -0
- package/blocks/content/glossary/README.md +35 -0
- package/blocks/content/glossary/styles.css +6 -0
- package/blocks/content/glossary/template.html +1 -0
- package/blocks/content/list-split/README.md +33 -0
- package/blocks/content/list-split/styles.css +13 -0
- package/blocks/content/list-split/template.html +1 -0
- package/blocks/content/prose-split/README.md +32 -0
- package/blocks/content/prose-split/styles.css +12 -0
- package/blocks/content/prose-split/template.html +1 -0
- package/blocks/content/specification-ledger/README.md +32 -0
- package/blocks/content/specification-ledger/block.meta.json +85 -0
- package/blocks/content/specification-ledger/styles.css +10 -0
- package/blocks/content/specification-ledger/template.html +1 -0
- package/blocks/cta/cta-band/README.md +33 -0
- package/blocks/cta/cta-band/styles.css +11 -0
- package/blocks/cta/cta-band/template.html +1 -0
- package/blocks/cta/cta-card/README.md +35 -0
- package/blocks/cta/cta-card/styles.css +8 -0
- package/blocks/cta/cta-card/template.html +1 -0
- package/blocks/cta/cta-floating-bar/README.md +28 -0
- package/blocks/cta/cta-floating-bar/styles.css +8 -0
- package/blocks/cta/cta-floating-bar/template.html +1 -0
- package/blocks/cta/cta-inline/README.md +30 -0
- package/blocks/cta/cta-inline/styles.css +9 -0
- package/blocks/cta/cta-inline/template.html +1 -0
- package/blocks/cta/cta-newsletter/README.md +34 -0
- package/blocks/cta/cta-newsletter/styles.css +8 -0
- package/blocks/cta/cta-newsletter/template.html +1 -0
- package/blocks/cta/cta-photo-fan/README.md +36 -0
- package/blocks/cta/cta-photo-fan/styles.css +14 -0
- package/blocks/cta/cta-photo-fan/template.html +1 -0
- package/blocks/cta/cta-split/README.md +38 -0
- package/blocks/cta/cta-split/styles.css +10 -0
- package/blocks/cta/cta-split/template.html +1 -0
- package/blocks/faq/faq-accordion/README.md +36 -0
- package/blocks/faq/faq-accordion/styles.css +6 -0
- package/blocks/faq/faq-accordion/template.html +1 -0
- package/blocks/faq/faq-grouped/README.md +40 -0
- package/blocks/faq/faq-grouped/styles.css +20 -0
- package/blocks/faq/faq-grouped/template.html +1 -0
- package/blocks/faq/faq-split/README.md +37 -0
- package/blocks/faq/faq-split/styles.css +5 -0
- package/blocks/faq/faq-split/template.html +1 -0
- package/blocks/faq/faq-tabs/README.md +36 -0
- package/blocks/faq/faq-tabs/styles.css +3 -0
- package/blocks/faq/faq-tabs/template.html +1 -0
- package/blocks/feature/feature-bento/README.md +33 -0
- package/blocks/feature/feature-bento/styles.css +7 -0
- package/blocks/feature/feature-bento/template.html +1 -0
- package/blocks/feature/feature-compare-table/README.md +44 -0
- package/blocks/feature/feature-compare-table/styles.css +15 -0
- package/blocks/feature/feature-compare-table/template.html +1 -0
- package/blocks/feature/feature-comparison/README.md +34 -0
- package/blocks/feature/feature-comparison/styles.css +6 -0
- package/blocks/feature/feature-comparison/template.html +1 -0
- package/blocks/feature/feature-grid-3/README.md +34 -0
- package/blocks/feature/feature-grid-3/styles.css +8 -0
- package/blocks/feature/feature-grid-3/template.html +1 -0
- package/blocks/feature/feature-icon-list/README.md +39 -0
- package/blocks/feature/feature-icon-list/styles.css +9 -0
- package/blocks/feature/feature-icon-list/template.html +1 -0
- package/blocks/feature/feature-spotlight/README.md +39 -0
- package/blocks/feature/feature-spotlight/styles.css +5 -0
- package/blocks/feature/feature-spotlight/template.html +1 -0
- package/blocks/feature/feature-stats-band/README.md +33 -0
- package/blocks/feature/feature-stats-band/styles.css +8 -0
- package/blocks/feature/feature-stats-band/template.html +1 -0
- package/blocks/feature/feature-tabs/README.md +38 -0
- package/blocks/feature/feature-tabs/styles.css +7 -0
- package/blocks/feature/feature-tabs/template.html +1 -0
- package/blocks/feature/feature-thumb-list/README.md +38 -0
- package/blocks/feature/feature-thumb-list/styles.css +13 -0
- package/blocks/feature/feature-thumb-list/template.html +1 -0
- package/blocks/feature/feature-zigzag/README.md +31 -0
- package/blocks/feature/feature-zigzag/styles.css +6 -0
- package/blocks/feature/feature-zigzag/template.html +1 -0
- package/blocks/footer/footer-columns/README.md +39 -0
- package/blocks/footer/footer-columns/styles.css +16 -0
- package/blocks/footer/footer-columns/template.html +1 -0
- package/blocks/footer/footer-compact/README.md +33 -0
- package/blocks/footer/footer-compact/styles.css +12 -0
- package/blocks/footer/footer-compact/template.html +1 -0
- package/blocks/footer/footer-cta/README.md +37 -0
- package/blocks/footer/footer-cta/styles.css +18 -0
- package/blocks/footer/footer-cta/template.html +1 -0
- package/blocks/footer/footer-social/README.md +37 -0
- package/blocks/footer/footer-social/styles.css +17 -0
- package/blocks/footer/footer-social/template.html +1 -0
- package/blocks/footer/footer-wordmark/README.md +40 -0
- package/blocks/footer/footer-wordmark/styles.css +19 -0
- package/blocks/footer/footer-wordmark/template.html +1 -0
- package/blocks/gallery/gallery-before-after/README.md +31 -0
- package/blocks/gallery/gallery-before-after/styles.css +6 -0
- package/blocks/gallery/gallery-before-after/template.html +1 -0
- package/blocks/gallery/gallery-carousel/README.md +32 -0
- package/blocks/gallery/gallery-carousel/styles.css +7 -0
- package/blocks/gallery/gallery-carousel/template.html +1 -0
- package/blocks/gallery/gallery-grid/README.md +39 -0
- package/blocks/gallery/gallery-grid/styles.css +13 -0
- package/blocks/gallery/gallery-grid/template.html +1 -0
- package/blocks/gallery/gallery-masonry/README.md +33 -0
- package/blocks/gallery/gallery-masonry/styles.css +4 -0
- package/blocks/gallery/gallery-masonry/template.html +1 -0
- package/blocks/gallery/gallery-mosaic-split/README.md +40 -0
- package/blocks/gallery/gallery-mosaic-split/styles.css +15 -0
- package/blocks/gallery/gallery-mosaic-split/template.html +1 -0
- package/blocks/hero/hero-asymmetric/README.md +34 -0
- package/blocks/hero/hero-asymmetric/styles.css +13 -0
- package/blocks/hero/hero-asymmetric/template.html +10 -0
- package/blocks/hero/hero-before-after/README.md +38 -0
- package/blocks/hero/hero-before-after/styles.css +8 -0
- package/blocks/hero/hero-before-after/template.html +19 -0
- package/blocks/hero/hero-editorial/README.md +34 -0
- package/blocks/hero/hero-editorial/block.meta.json +85 -0
- package/blocks/hero/hero-editorial/styles.css +6 -0
- package/blocks/hero/hero-editorial/template.html +10 -0
- package/blocks/hero/hero-evidence/README.md +32 -0
- package/blocks/hero/hero-evidence/block.meta.json +85 -0
- package/blocks/hero/hero-evidence/styles.css +13 -0
- package/blocks/hero/hero-evidence/template.html +1 -0
- package/blocks/hero/hero-form/README.md +46 -0
- package/blocks/hero/hero-form/styles.css +11 -0
- package/blocks/hero/hero-form/template.html +15 -0
- package/blocks/hero/hero-menu/README.md +36 -0
- package/blocks/hero/hero-menu/styles.css +7 -0
- package/blocks/hero/hero-menu/template.html +10 -0
- package/blocks/hero/hero-overlay/README.md +35 -0
- package/blocks/hero/hero-overlay/styles.css +14 -0
- package/blocks/hero/hero-overlay/template.html +10 -0
- package/blocks/hero/hero-page/README.md +35 -0
- package/blocks/hero/hero-page/styles.css +19 -0
- package/blocks/hero/hero-page/template.html +1 -0
- package/blocks/hero/hero-product/README.md +41 -0
- package/blocks/hero/hero-product/styles.css +11 -0
- package/blocks/hero/hero-product/template.html +14 -0
- package/blocks/hero/hero-service/README.md +37 -0
- package/blocks/hero/hero-service/block.meta.json +85 -0
- package/blocks/hero/hero-service/styles.css +17 -0
- package/blocks/hero/hero-service/template.html +1 -0
- package/blocks/hero/hero-split/README.md +36 -0
- package/blocks/hero/hero-split/styles.css +7 -0
- package/blocks/hero/hero-split/template.html +11 -0
- package/blocks/hero/hero-statement/README.md +33 -0
- package/blocks/hero/hero-statement/styles.css +8 -0
- package/blocks/hero/hero-statement/template.html +1 -0
- package/blocks/hero/hero-stats/README.md +37 -0
- package/blocks/hero/hero-stats/styles.css +10 -0
- package/blocks/hero/hero-stats/template.html +10 -0
- package/blocks/hero/hero-video-still/README.md +36 -0
- package/blocks/hero/hero-video-still/styles.css +9 -0
- package/blocks/hero/hero-video-still/template.html +13 -0
- package/blocks/icons.md +44 -0
- package/blocks/incentives/incentive-banner/README.md +28 -0
- package/blocks/incentives/incentive-banner/styles.css +7 -0
- package/blocks/incentives/incentive-banner/template.html +1 -0
- package/blocks/incentives/incentive-cards/README.md +31 -0
- package/blocks/incentives/incentive-cards/styles.css +4 -0
- package/blocks/incentives/incentive-cards/template.html +1 -0
- package/blocks/navbar/nav-announcement/README.md +35 -0
- package/blocks/navbar/nav-announcement/styles.css +10 -0
- package/blocks/navbar/nav-announcement/template.html +14 -0
- package/blocks/navbar/nav-centered/README.md +35 -0
- package/blocks/navbar/nav-centered/styles.css +11 -0
- package/blocks/navbar/nav-centered/template.html +12 -0
- package/blocks/navbar/nav-minimal/README.md +29 -0
- package/blocks/navbar/nav-minimal/styles.css +5 -0
- package/blocks/navbar/nav-minimal/template.html +6 -0
- package/blocks/navbar/nav-split/README.md +34 -0
- package/blocks/navbar/nav-split/styles.css +11 -0
- package/blocks/navbar/nav-split/template.html +11 -0
- package/blocks/navbar/nav-utility/README.md +37 -0
- package/blocks/navbar/nav-utility/styles.css +17 -0
- package/blocks/navbar/nav-utility/template.html +12 -0
- package/blocks/pricing/menu-featured/README.md +34 -0
- package/blocks/pricing/menu-featured/styles.css +4 -0
- package/blocks/pricing/menu-featured/template.html +1 -0
- package/blocks/pricing/menu-sections/README.md +33 -0
- package/blocks/pricing/menu-sections/styles.css +9 -0
- package/blocks/pricing/menu-sections/template.html +1 -0
- package/blocks/pricing/pricing-table/README.md +40 -0
- package/blocks/pricing/pricing-table/styles.css +9 -0
- package/blocks/pricing/pricing-table/template.html +1 -0
- package/blocks/pricing/pricing-tiers/README.md +34 -0
- package/blocks/pricing/pricing-tiers/styles.css +7 -0
- package/blocks/pricing/pricing-tiers/template.html +1 -0
- package/blocks/pricing/pricing-toggle/README.md +34 -0
- package/blocks/pricing/pricing-toggle/styles.css +10 -0
- package/blocks/pricing/pricing-toggle/template.html +1 -0
- package/blocks/process/process-carousel/README.md +33 -0
- package/blocks/process/process-carousel/styles.css +5 -0
- package/blocks/process/process-carousel/template.html +1 -0
- package/blocks/process/process-split/README.md +35 -0
- package/blocks/process/process-split/styles.css +6 -0
- package/blocks/process/process-split/template.html +1 -0
- package/blocks/process/process-stepper/README.md +40 -0
- package/blocks/process/process-stepper/styles.css +11 -0
- package/blocks/process/process-stepper/template.html +1 -0
- package/blocks/process/process-steps/README.md +35 -0
- package/blocks/process/process-steps/styles.css +6 -0
- package/blocks/process/process-steps/template.html +1 -0
- package/blocks/process/process-sticky/README.md +38 -0
- package/blocks/process/process-sticky/styles.css +12 -0
- package/blocks/process/process-sticky/template.html +1 -0
- package/blocks/process/process-timeline/README.md +35 -0
- package/blocks/process/process-timeline/styles.css +10 -0
- package/blocks/process/process-timeline/template.html +1 -0
- package/blocks/services/services-cards/README.md +34 -0
- package/blocks/services/services-cards/styles.css +3 -0
- package/blocks/services/services-cards/template.html +1 -0
- package/blocks/services/services-carousel/README.md +34 -0
- package/blocks/services/services-carousel/styles.css +6 -0
- package/blocks/services/services-carousel/template.html +1 -0
- package/blocks/services/services-list/README.md +32 -0
- package/blocks/services/services-list/block.meta.json +85 -0
- package/blocks/services/services-list/styles.css +10 -0
- package/blocks/services/services-list/template.html +1 -0
- package/blocks/services/services-menu/README.md +39 -0
- package/blocks/services/services-menu/styles.css +6 -0
- package/blocks/services/services-menu/template.html +1 -0
- package/blocks/services/services-packages/README.md +34 -0
- package/blocks/services/services-packages/styles.css +6 -0
- package/blocks/services/services-packages/template.html +1 -0
- package/blocks/services/services-panels/README.md +36 -0
- package/blocks/services/services-panels/styles.css +15 -0
- package/blocks/services/services-panels/template.html +1 -0
- package/blocks/services/services-photo-grid/README.md +39 -0
- package/blocks/services/services-photo-grid/styles.css +10 -0
- package/blocks/services/services-photo-grid/template.html +1 -0
- package/blocks/services/services-priority/README.md +33 -0
- package/blocks/services/services-priority/block.meta.json +86 -0
- package/blocks/services/services-priority/styles.css +16 -0
- package/blocks/services/services-priority/template.html +1 -0
- package/blocks/stats/stats-cards/README.md +31 -0
- package/blocks/stats/stats-cards/styles.css +4 -0
- package/blocks/stats/stats-cards/template.html +1 -0
- package/blocks/stats/stats-mosaic/README.md +27 -0
- package/blocks/stats/stats-mosaic/styles.css +9 -0
- package/blocks/stats/stats-mosaic/template.html +1 -0
- package/blocks/stats/stats-row/README.md +29 -0
- package/blocks/stats/stats-row/styles.css +8 -0
- package/blocks/stats/stats-row/template.html +1 -0
- package/blocks/stats/stats-split/README.md +35 -0
- package/blocks/stats/stats-split/styles.css +3 -0
- package/blocks/stats/stats-split/template.html +1 -0
- package/blocks/team/team-featured/README.md +42 -0
- package/blocks/team/team-featured/styles.css +9 -0
- package/blocks/team/team-featured/template.html +1 -0
- package/blocks/team/team-grid/README.md +35 -0
- package/blocks/team/team-grid/styles.css +8 -0
- package/blocks/team/team-grid/template.html +1 -0
- package/blocks/team/team-list/README.md +32 -0
- package/blocks/team/team-list/styles.css +7 -0
- package/blocks/team/team-list/template.html +1 -0
- package/blocks/testimonial/testimonial-carousel/README.md +32 -0
- package/blocks/testimonial/testimonial-carousel/styles.css +7 -0
- package/blocks/testimonial/testimonial-carousel/template.html +1 -0
- package/blocks/testimonial/testimonial-grid/README.md +32 -0
- package/blocks/testimonial/testimonial-grid/styles.css +5 -0
- package/blocks/testimonial/testimonial-grid/template.html +1 -0
- package/blocks/testimonial/testimonial-mosaic/README.md +38 -0
- package/blocks/testimonial/testimonial-mosaic/styles.css +14 -0
- package/blocks/testimonial/testimonial-mosaic/template.html +1 -0
- package/blocks/testimonial/testimonial-platform/README.md +34 -0
- package/blocks/testimonial/testimonial-platform/styles.css +17 -0
- package/blocks/testimonial/testimonial-platform/template.html +1 -0
- package/blocks/testimonial/testimonial-rating/README.md +28 -0
- package/blocks/testimonial/testimonial-rating/styles.css +6 -0
- package/blocks/testimonial/testimonial-rating/template.html +1 -0
- package/blocks/testimonial/testimonial-spotlight/README.md +31 -0
- package/blocks/testimonial/testimonial-spotlight/styles.css +9 -0
- package/blocks/testimonial/testimonial-spotlight/template.html +1 -0
- package/blocks/testimonial/testimonial-switcher/README.md +39 -0
- package/blocks/testimonial/testimonial-switcher/styles.css +23 -0
- package/blocks/testimonial/testimonial-switcher/template.html +1 -0
- package/blocks/testimonial/testimonial-wall/README.md +34 -0
- package/blocks/testimonial/testimonial-wall/styles.css +7 -0
- package/blocks/testimonial/testimonial-wall/template.html +1 -0
- package/blocks/trust-strip/trust-badges/README.md +30 -0
- package/blocks/trust-strip/trust-badges/styles.css +5 -0
- package/blocks/trust-strip/trust-badges/template.html +1 -0
- package/blocks/trust-strip/trust-certs/README.md +31 -0
- package/blocks/trust-strip/trust-certs/styles.css +12 -0
- package/blocks/trust-strip/trust-certs/template.html +1 -0
- package/blocks/trust-strip/trust-logos/README.md +32 -0
- package/blocks/trust-strip/trust-logos/styles.css +5 -0
- package/blocks/trust-strip/trust-logos/template.html +1 -0
- package/blocks/trust-strip/trust-quote/README.md +29 -0
- package/blocks/trust-strip/trust-quote/styles.css +5 -0
- package/blocks/trust-strip/trust-quote/template.html +1 -0
- package/blocks/trust-strip/trust-reviews/README.md +35 -0
- package/blocks/trust-strip/trust-reviews/styles.css +9 -0
- package/blocks/trust-strip/trust-reviews/template.html +1 -0
- package/blocks/work/case-alternating/README.md +34 -0
- package/blocks/work/case-alternating/block.meta.json +86 -0
- package/blocks/work/case-alternating/styles.css +7 -0
- package/blocks/work/case-alternating/template.html +1 -0
- package/blocks/work/case-carousel/README.md +26 -0
- package/blocks/work/case-carousel/styles.css +7 -0
- package/blocks/work/case-carousel/template.html +1 -0
- package/blocks/work/case-header/README.md +38 -0
- package/blocks/work/case-header/styles.css +18 -0
- package/blocks/work/case-header/template.html +1 -0
- package/blocks/work/project-evidence/README.md +35 -0
- package/blocks/work/project-evidence/block.meta.json +87 -0
- package/blocks/work/project-evidence/styles.css +12 -0
- package/blocks/work/project-evidence/template.html +1 -0
- package/blocks/work/project-grid/README.md +38 -0
- package/blocks/work/project-grid/styles.css +9 -0
- package/blocks/work/project-grid/template.html +1 -0
- package/cloudflare/wrangler.forms-test.jsonc +19 -0
- package/cloudflare/wrangler.jsonc +14 -0
- package/cloudflare/wrangler.templates.jsonc +6 -0
- package/design-system/MASTER.md +76 -0
- package/design-system/calibration/v2/accuracy.html +1 -0
- package/design-system/calibration/v2/accuracy.png +0 -0
- package/design-system/calibration/v2/manifest.json +88 -0
- package/design-system/calibration/v2/probe.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-home-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-home-375-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-planning-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-planning-375-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-home-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-home-375-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-project-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-project-375-viewport.png +0 -0
- package/design-system/compositions/v1/README.md +13 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/styles.css +11 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-visit/styles.css +13 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-visit/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/footer-compact/styles.css +12 -0
- package/design-system/compositions/v1/northline-counsel/components/footer-compact/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-evidence/styles.css +13 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-evidence/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-page/styles.css +19 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-page/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/nav-split/styles.css +11 -0
- package/design-system/compositions/v1/northline-counsel/components/nav-split/template.html +11 -0
- package/design-system/compositions/v1/northline-counsel/components/services-priority/styles.css +16 -0
- package/design-system/compositions/v1/northline-counsel/components/services-priority/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/specification-ledger/styles.css +10 -0
- package/design-system/compositions/v1/northline-counsel/components/specification-ledger/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/direction.md +5 -0
- package/design-system/compositions/v1/northline-counsel/fixture-brief.json +10 -0
- package/design-system/compositions/v1/northline-counsel/media-inventory.json +1 -0
- package/design-system/compositions/v1/northline-counsel/pages/index.html +11 -0
- package/design-system/compositions/v1/northline-counsel/pages/planning.html +11 -0
- package/design-system/compositions/v1/northline-counsel/selection-receipt.json +36 -0
- package/design-system/compositions/v1/northline-counsel/site.json +1 -0
- package/design-system/compositions/v1/northline-counsel/storyboard.md +12 -0
- package/design-system/compositions/v1/northline-counsel/theme/defaults.json +1 -0
- package/design-system/compositions/v1/source-ledger.json +18 -0
- package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/styles.css +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/footer-compact/styles.css +12 -0
- package/design-system/compositions/v1/tide-and-slate/components/footer-compact/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-page/styles.css +19 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-page/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-split/styles.css +7 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-split/template.html +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/nav-split/styles.css +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/nav-split/template.html +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/project-evidence/styles.css +12 -0
- package/design-system/compositions/v1/tide-and-slate/components/project-evidence/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/services-priority/styles.css +16 -0
- package/design-system/compositions/v1/tide-and-slate/components/services-priority/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/styles.css +10 -0
- package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/direction.md +5 -0
- package/design-system/compositions/v1/tide-and-slate/fixture-brief.json +10 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp +0 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp +0 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp.provenance.json +9 -0
- package/design-system/compositions/v1/tide-and-slate/media-inventory.json +7 -0
- package/design-system/compositions/v1/tide-and-slate/pages/index.html +10 -0
- package/design-system/compositions/v1/tide-and-slate/pages/project.html +10 -0
- package/design-system/compositions/v1/tide-and-slate/site.json +1 -0
- package/design-system/compositions/v1/tide-and-slate/storyboard.md +12 -0
- package/design-system/compositions/v1/tide-and-slate/theme/defaults.json +1 -0
- package/design-system/compositions/v2/catalog.json +4018 -0
- package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/styles.css +3 -0
- package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/template.html +1 -0
- package/design-system/compositions/v2/clearwell-directory/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/clearwell-directory/pages/index.html +5 -0
- package/design-system/compositions/v2/clearwell-directory/site.json +7 -0
- package/design-system/compositions/v2/clearwell-directory/study.json +244 -0
- package/design-system/compositions/v2/clearwell-directory/theme/defaults.json +16 -0
- package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/styles.css +2 -0
- package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/template.html +1 -0
- package/design-system/compositions/v2/clearwell-letter/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/clearwell-letter/pages/index.html +5 -0
- package/design-system/compositions/v2/clearwell-letter/site.json +7 -0
- package/design-system/compositions/v2/clearwell-letter/study.json +236 -0
- package/design-system/compositions/v2/clearwell-letter/theme/defaults.json +16 -0
- package/design-system/compositions/v2/dock-radio/components/study-dock-radio/styles.css +2 -0
- package/design-system/compositions/v2/dock-radio/components/study-dock-radio/template.html +1 -0
- package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav +0 -0
- package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav.provenance.json +6 -0
- package/design-system/compositions/v2/dock-radio/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/dock-radio/pages/index.html +5 -0
- package/design-system/compositions/v2/dock-radio/site.json +7 -0
- package/design-system/compositions/v2/dock-radio/study.json +288 -0
- package/design-system/compositions/v2/dock-radio/theme/defaults.json +16 -0
- package/design-system/compositions/v2/fen-repair/components/study-fen-repair/styles.css +2 -0
- package/design-system/compositions/v2/fen-repair/components/study-fen-repair/template.html +1 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp +0 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp +0 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp.provenance.json +9 -0
- package/design-system/compositions/v2/fen-repair/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/fen-repair/pages/index.html +5 -0
- package/design-system/compositions/v2/fen-repair/site.json +7 -0
- package/design-system/compositions/v2/fen-repair/study.json +236 -0
- package/design-system/compositions/v2/fen-repair/theme/defaults.json +16 -0
- package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/styles.css +2 -0
- package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/template.html +1 -0
- package/design-system/compositions/v2/hearth-plane/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/hearth-plane/pages/index.html +5 -0
- package/design-system/compositions/v2/hearth-plane/site.json +7 -0
- package/design-system/compositions/v2/hearth-plane/study.json +238 -0
- package/design-system/compositions/v2/hearth-plane/theme/defaults.json +16 -0
- package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/styles.css +2 -0
- package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/template.html +1 -0
- package/design-system/compositions/v2/lacuna-objects/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/lacuna-objects/pages/index.html +5 -0
- package/design-system/compositions/v2/lacuna-objects/site.json +7 -0
- package/design-system/compositions/v2/lacuna-objects/study.json +242 -0
- package/design-system/compositions/v2/lacuna-objects/theme/defaults.json +16 -0
- package/design-system/compositions/v2/loop-room/components/study-loop-room/styles.css +2 -0
- package/design-system/compositions/v2/loop-room/components/study-loop-room/template.html +1 -0
- package/design-system/compositions/v2/loop-room/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/loop-room/pages/index.html +5 -0
- package/design-system/compositions/v2/loop-room/site.json +7 -0
- package/design-system/compositions/v2/loop-room/study.json +253 -0
- package/design-system/compositions/v2/loop-room/theme/defaults.json +16 -0
- package/design-system/compositions/v2/manifest.json +740 -0
- package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/styles.css +2 -0
- package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/template.html +1 -0
- package/design-system/compositions/v2/mara-reading-room/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/mara-reading-room/pages/index.html +5 -0
- package/design-system/compositions/v2/mara-reading-room/site.json +7 -0
- package/design-system/compositions/v2/mara-reading-room/study.json +246 -0
- package/design-system/compositions/v2/mara-reading-room/theme/defaults.json +16 -0
- package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/styles.css +3 -0
- package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/template.html +1 -0
- package/design-system/compositions/v2/mara-specimen/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/mara-specimen/pages/index.html +5 -0
- package/design-system/compositions/v2/mara-specimen/site.json +7 -0
- package/design-system/compositions/v2/mara-specimen/study.json +244 -0
- package/design-system/compositions/v2/mara-specimen/theme/defaults.json +16 -0
- package/design-system/compositions/v2/margin-journal/components/study-margin-journal/styles.css +2 -0
- package/design-system/compositions/v2/margin-journal/components/study-margin-journal/template.html +1 -0
- package/design-system/compositions/v2/margin-journal/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/margin-journal/pages/index.html +5 -0
- package/design-system/compositions/v2/margin-journal/site.json +7 -0
- package/design-system/compositions/v2/margin-journal/study.json +242 -0
- package/design-system/compositions/v2/margin-journal/theme/defaults.json +16 -0
- package/design-system/compositions/v2/night-orchard/components/study-night-orchard/styles.css +2 -0
- package/design-system/compositions/v2/night-orchard/components/study-night-orchard/template.html +1 -0
- package/design-system/compositions/v2/night-orchard/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/night-orchard/pages/index.html +5 -0
- package/design-system/compositions/v2/night-orchard/site.json +7 -0
- package/design-system/compositions/v2/night-orchard/study.json +247 -0
- package/design-system/compositions/v2/night-orchard/theme/defaults.json +16 -0
- package/design-system/compositions/v2/previews/clearwell-directory-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-directory-home-390.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-directory-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-directory-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-home-390.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-home-390.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-home-390.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-home-390.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-home-390.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-home-390.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-home-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-home-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-home-390.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-home-390.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-home-390.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-home-390.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-home-390.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-home-390.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-home-390.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-interior-390.png +0 -0
- package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/styles.css +2 -0
- package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/template.html +1 -0
- package/design-system/compositions/v2/relay-workflow/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/relay-workflow/pages/index.html +5 -0
- package/design-system/compositions/v2/relay-workflow/site.json +7 -0
- package/design-system/compositions/v2/relay-workflow/study.json +283 -0
- package/design-system/compositions/v2/relay-workflow/theme/defaults.json +16 -0
- package/design-system/compositions/v2/rivet-components/components/study-rivet-components/styles.css +2 -0
- package/design-system/compositions/v2/rivet-components/components/study-rivet-components/template.html +1 -0
- package/design-system/compositions/v2/rivet-components/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/rivet-components/pages/index.html +5 -0
- package/design-system/compositions/v2/rivet-components/site.json +7 -0
- package/design-system/compositions/v2/rivet-components/study.json +241 -0
- package/design-system/compositions/v2/rivet-components/theme/defaults.json +16 -0
- package/design-system/compositions/v2/signal-fair/components/study-signal-fair/styles.css +2 -0
- package/design-system/compositions/v2/signal-fair/components/study-signal-fair/template.html +1 -0
- package/design-system/compositions/v2/signal-fair/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/signal-fair/pages/index.html +5 -0
- package/design-system/compositions/v2/signal-fair/site.json +7 -0
- package/design-system/compositions/v2/signal-fair/study.json +271 -0
- package/design-system/compositions/v2/signal-fair/theme/defaults.json +16 -0
- package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/styles.css +2 -0
- package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/template.html +1 -0
- package/design-system/compositions/v2/sundial-goods/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/sundial-goods/pages/index.html +5 -0
- package/design-system/compositions/v2/sundial-goods/site.json +7 -0
- package/design-system/compositions/v2/sundial-goods/study.json +247 -0
- package/design-system/compositions/v2/sundial-goods/theme/defaults.json +16 -0
- package/design-system/compositions/v2/thread-mender/components/study-thread-mender/styles.css +2 -0
- package/design-system/compositions/v2/thread-mender/components/study-thread-mender/template.html +1 -0
- package/design-system/compositions/v2/thread-mender/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/thread-mender/pages/index.html +5 -0
- package/design-system/compositions/v2/thread-mender/site.json +7 -0
- package/design-system/compositions/v2/thread-mender/study.json +253 -0
- package/design-system/compositions/v2/thread-mender/theme/defaults.json +16 -0
- package/design-system/knowledge/v1/README.md +8 -0
- package/design-system/knowledge/v1/catalog.json +479 -0
- package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.png +0 -0
- package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.provenance.json +12 -0
- package/design-system/knowledge/v1/demonstrations/mobile-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/mobile-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/project-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/project-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/repeat-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/repeat-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/services-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/services-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/sparse-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/sparse-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/type-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/type-weak.html +50 -0
- package/design-system/knowledge/v1/manifest.json +88 -0
- package/design-system/knowledge/v1/observations/mobile-strong-1080.png +0 -0
- package/design-system/knowledge/v1/observations/mobile-strong-375.png +0 -0
- package/design-system/knowledge/v1/observations/mobile-weak-1080.png +0 -0
- package/design-system/knowledge/v1/observations/mobile-weak-375.png +0 -0
- package/design-system/knowledge/v1/observations/project-strong-1080.png +0 -0
- package/design-system/knowledge/v1/observations/project-strong-375.png +0 -0
- package/design-system/knowledge/v1/observations/project-weak-1080.png +0 -0
- package/design-system/knowledge/v1/observations/project-weak-375.png +0 -0
- package/design-system/knowledge/v1/observations/type-strong-1080.png +0 -0
- package/design-system/knowledge/v1/observations/type-strong-375.png +0 -0
- package/design-system/knowledge/v1/observations/type-weak-1080.png +0 -0
- package/design-system/knowledge/v1/observations/type-weak-375.png +0 -0
- package/design-system/knowledge/v2/added-lessons.json +30 -0
- package/design-system/knowledge/v2/assets.json +14 -0
- package/design-system/knowledge/v2/fixtures/contact-alternate.html +17 -0
- package/design-system/knowledge/v2/fixtures/contact-broken.html +15 -0
- package/design-system/knowledge/v2/fixtures/contact-valid.html +20 -0
- package/design-system/knowledge/v2/fixtures/contrast-cases.html +10 -0
- package/design-system/knowledge/v2/island-audit.json +12 -0
- package/design-system/knowledge/v2/lesson-extensions.json +158 -0
- package/design-system/knowledge/v2/manifest.json +52 -0
- package/design-system/knowledge/v2/replacements.json +14 -0
- package/design-system/knowledge/v2/requirements.json +345 -0
- package/design-system/knowledge/v2/sources.json +182 -0
- package/design-system/knowledge/v3/catalog.json +1232 -0
- package/design-system/knowledge/v3/examples/catalog.json +799 -0
- package/design-system/knowledge/v3/lessons/cmp-collection-structure.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-comparison.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-contextual-action.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-contrastive-critique.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-disclosure.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-evidence-form.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-image-art-direction.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-image-sequence.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-interactive-explanation.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-local-information.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-motion-continuity.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-narrative-continuity.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-navigation.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-page-rhythm.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-process.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-proof-adjacency.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-responsive-recomposition.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-semantic-grouping.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-shared-alignment.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-sparse-media.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-surfaces-motifs.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-text-shape.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-type-roles.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-unequal-emphasis.md +17 -0
- package/design-system/knowledge/v3/manifest.json +117 -0
- package/design-system/knowledge/v3/sources.json +425 -0
- package/design-system/references/v1/README.md +27 -0
- package/design-system/references/v1/catalog.json +20035 -0
- package/design-system/references/v1/manifest.json +10 -0
- package/design-system/references/v2/README.md +27 -0
- package/design-system/references/v2/catalog.json +27382 -0
- package/design-system/references/v2/manifest.json +11 -0
- package/design-system/references/v3/README.md +27 -0
- package/design-system/references/v3/catalog.json +27628 -0
- package/design-system/references/v3/manifest.json +11 -0
- package/docs/CLI.md +299 -0
- package/docs/CLOUDFLARE.md +53 -0
- package/docs/CONTACT-FORMS.md +161 -0
- package/docs/DISTRIBUTION.md +70 -0
- package/docs/ENGINE.md +28 -0
- package/docs/PRESERVE.md +59 -0
- package/docs/SECURITY.md +23 -0
- package/docs/STOCK-MEDIA.md +66 -0
- package/licenses/blake3-wasm-LICENSE +21 -0
- package/licenses/entities-LICENSE +11 -0
- package/licenses/parse5-LICENSE +19 -0
- package/migrations/0001_init.sql +90 -0
- package/migrations/0002_analytics.sql +50 -0
- package/migrations/0003_site_updates.sql +29 -0
- package/migrations/0004_contact_forms.sql +75 -0
- package/migrations/0005_auth.sql +20 -0
- package/package.json +229 -6
- package/src/runtime/beacon.ts +329 -0
- package/src/runtime/before-after.ts +48 -0
- package/src/runtime/carousel.ts +20 -0
- package/src/runtime/cookie-compliance.ts +50 -0
- package/src/runtime/counter.ts +2 -0
- package/src/runtime/editor.ts +72 -0
- package/src/runtime/experience.ts +57 -0
- package/src/runtime/header.ts +46 -0
- package/src/runtime/leads.ts +102 -0
- package/src/runtime/lightbox.ts +26 -0
- package/src/runtime/reveal.ts +2 -0
- package/src/runtime/scroll-motion.controller.js +100 -0
- package/src/runtime/scroll-motion.count.js +21 -0
- package/src/runtime/scroll-motion.generated.ts +5 -0
- package/src/runtime/scroll-motion.vanilla.js +45 -0
- package/src/runtime/tabs.ts +40 -0
- package/src/stock/catalog.json +5445 -0
- package/src/stock/coverage.json +18 -0
- package/src/stock/picker.css +118 -0
- package/src/stock/picker.js +191 -0
- package/templates/site/.env.example +6 -0
- package/templates/site/.github/workflows/deploy.yml +59 -0
- package/templates/site/AGENTS.md +35 -0
- package/templates/site/CLAUDE.md +5 -0
- package/templates/site/GEMINI.md +5 -0
- package/templates/site/README.md +55 -0
- package/templates/site/components/README.md +18 -0
- package/templates/site/gitignore +10 -0
- package/templates/site/launch.json +14 -0
- package/templates/site/package.json +36 -0
- package/templates/site/pages/README.md +31 -0
- package/templates/site/site.json +10 -0
- package/templates/site/theme/defaults.json +17 -0
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
MOTION_SCENARIO_HASH,
|
|
4
|
+
TEMPLATE_MOTION_PATH,
|
|
5
|
+
captureMotionJourney,
|
|
6
|
+
explainBrowserLaunchFailure,
|
|
7
|
+
loadPlaywrightChromium,
|
|
8
|
+
motionCompositionPolicy,
|
|
9
|
+
observeMotion,
|
|
10
|
+
templateMotionHash,
|
|
11
|
+
validateTemplateMotionPlan
|
|
12
|
+
} from "./chunks/chunk-T7DGRVTP.js";
|
|
13
|
+
import "./chunks/chunk-AUO5I56E.js";
|
|
14
|
+
import {
|
|
15
|
+
resolveDesignAuthoring
|
|
16
|
+
} from "./chunks/chunk-6H3T46F5.js";
|
|
17
|
+
import {
|
|
18
|
+
hasAnalyticsRuntime,
|
|
19
|
+
productionQuality
|
|
20
|
+
} from "./chunks/chunk-M2ETYSVJ.js";
|
|
21
|
+
import {
|
|
22
|
+
measurePerformance,
|
|
23
|
+
performancePolicy
|
|
24
|
+
} from "./chunks/chunk-IKNMBGGD.js";
|
|
25
|
+
import {
|
|
26
|
+
previewServer
|
|
27
|
+
} from "./chunks/chunk-WEFDVXFX.js";
|
|
28
|
+
import {
|
|
29
|
+
buildVerified
|
|
30
|
+
} from "./chunks/chunk-E5Y46VBX.js";
|
|
31
|
+
import "./chunks/chunk-4GZCAWWK.js";
|
|
32
|
+
import "./chunks/chunk-ANMJRJQ5.js";
|
|
33
|
+
import "./chunks/chunk-HNORQ74T.js";
|
|
34
|
+
import "./chunks/chunk-YCVGD2CG.js";
|
|
35
|
+
import "./chunks/chunk-LKN75JGA.js";
|
|
36
|
+
import "./chunks/chunk-YYPYYOEV.js";
|
|
37
|
+
import "./chunks/chunk-GZDLXYZV.js";
|
|
38
|
+
import {
|
|
39
|
+
fingerprint,
|
|
40
|
+
json,
|
|
41
|
+
save,
|
|
42
|
+
sourceHash
|
|
43
|
+
} from "./chunks/chunk-T6PE4KN4.js";
|
|
44
|
+
import "./chunks/chunk-7FS67SRF.js";
|
|
45
|
+
|
|
46
|
+
// src/agent/browser-focus.ts
|
|
47
|
+
async function checkFocusOcclusion(page) {
|
|
48
|
+
return page.evaluate(`(async () => {
|
|
49
|
+
const targets=[...document.querySelectorAll('a[href],button,input,textarea,select,[tabindex]')].filter(e=>e.getClientRects().length && getComputedStyle(e).visibility!=="hidden" && !e.disabled && !e.matches("a.skip-link") && !e.closest("[inert]"));
|
|
50
|
+
const issues=[];
|
|
51
|
+
for(const e of targets.slice(0,80)) {
|
|
52
|
+
e.focus();e.scrollIntoView({block:"nearest",behavior:"instant"});
|
|
53
|
+
await new Promise(r=>requestAnimationFrame(()=>r()));
|
|
54
|
+
const r=e.getBoundingClientRect();if(r.width<2||r.height<2)continue;
|
|
55
|
+
const left=Math.max(0,r.left),top=Math.max(0,r.top),right=Math.min(innerWidth,r.right),bottom=Math.min(innerHeight,r.bottom);
|
|
56
|
+
const label=e.tagName.toLowerCase()+(e.id?"#"+e.id:"")+(e.getAttribute("href")?'[href="'+e.getAttribute("href")+'"]':"");
|
|
57
|
+
if(right<=left||bottom<=top){issues.push(label+" (no visible viewport intersection after focus)");continue;}
|
|
58
|
+
const hidden=[.2,.5,.8].every(f=>{
|
|
59
|
+
const hit=document.elementFromPoint(left+(right-left)*f,top+(bottom-top)*f);
|
|
60
|
+
if(!hit)return true;
|
|
61
|
+
if(hit===e||e.contains(hit))return false;
|
|
62
|
+
let p=hit;
|
|
63
|
+
while(p&&p!==e){const pos=getComputedStyle(p).position;if(pos==="fixed"||pos==="sticky")return true;p=p.parentElement;}
|
|
64
|
+
return false;
|
|
65
|
+
});
|
|
66
|
+
if(hidden)issues.push(label);
|
|
67
|
+
}
|
|
68
|
+
scrollTo({top:0,left:0,behavior:"instant"});return issues;
|
|
69
|
+
})()`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// src/stock/browser-checks.ts
|
|
73
|
+
async function checkSharedMedia(page, story, inventory, route, derivatives) {
|
|
74
|
+
if (story.version !== 3) return [];
|
|
75
|
+
const required = (story.globalMedia || []).filter((row) => row.routes.includes(route));
|
|
76
|
+
const rows = required.map((row) => {
|
|
77
|
+
const path = inventory.assets.find((asset) => asset.id === row.assetId)?.path || "";
|
|
78
|
+
return { assetId: row.assetId, placement: row.placement, route, path, paths: [path, ...derivatives?.images.filter((image) => image.source === path).flatMap((image) => image.variants.map((v) => v.url)) || []] };
|
|
79
|
+
});
|
|
80
|
+
return page.evaluate("(() => { const rows = " + JSON.stringify(rows) + `; const errors = []; for (const row of rows) { const region = document.querySelector(row.placement === 'header' ? 'header, [role="banner"]' : row.placement); const image = region && [...region.querySelectorAll('img')].find(img => { if (!row.path) return false; const source = img.currentSrc || img.src || ''; if (!row.paths.some(path => path && (source.includes(path) || (img.getAttribute('src') || '').includes(path)))) return false; if (!img.complete || img.naturalWidth <= 0) return false; let element = img; while (element) { const style = getComputedStyle(element); if (style.display === 'none' || style.visibility === 'hidden' || Number(style.opacity) === 0) return false; element = element.parentElement; } const rect = img.getBoundingClientRect(); return rect.width > 1 && rect.height > 1; }); if (!image) errors.push('Shared media ' + row.assetId + ' missing or hidden in ' + row.placement + ' on ' + row.route); } return errors; })()`);
|
|
81
|
+
}
|
|
82
|
+
async function checkResponsiveImages(page, derivatives) {
|
|
83
|
+
return page.evaluate((manifest) => {
|
|
84
|
+
const errors = [];
|
|
85
|
+
const doc = globalThis.document, win = globalThis;
|
|
86
|
+
for (const img of doc.images) {
|
|
87
|
+
const rect = img.getBoundingClientRect();
|
|
88
|
+
if (!rect.width || !rect.height || !img.currentSrc) continue;
|
|
89
|
+
const pathname = new URL(img.currentSrc).pathname;
|
|
90
|
+
const image = manifest.images.find((i) => i.variants.some((v) => v.url === pathname));
|
|
91
|
+
const variant = image?.variants.find((v) => v.url === pathname);
|
|
92
|
+
if (!variant) continue;
|
|
93
|
+
const style = win.getComputedStyle(img);
|
|
94
|
+
if (style.objectFit !== "cover") continue;
|
|
95
|
+
const needed = Math.min(Math.max(rect.width, rect.height * variant.width / variant.height) * win.devicePixelRatio, Math.max(...image.variants.map((v) => v.width)));
|
|
96
|
+
if (variant.width < needed * 0.8) errors.push(`Responsive cover image is undersized: ${image.source}; sizes must account for the crop (${variant.width}px supplied, ${Math.round(needed)}px needed)`);
|
|
97
|
+
}
|
|
98
|
+
return errors;
|
|
99
|
+
}, derivatives);
|
|
100
|
+
}
|
|
101
|
+
async function checkHeadingWordBreaks(page) {
|
|
102
|
+
return page.evaluate("(() => { const failures = []; for (const heading of document.querySelectorAll('h1')) { const walker = document.createTreeWalker(heading, NodeFilter.SHOW_TEXT); while (walker.nextNode()) { const node = walker.currentNode; const text = node.textContent || ''; for (const match of text.matchAll(/[A-Za-z]{8,}/g)) { const tops = new Set(); for (let i = match.index; i < match.index + match[0].length; i++) { const range = document.createRange(); range.setStart(node, i); range.setEnd(node, i + 1); const rect = range.getBoundingClientRect(); if (rect.width > 0) tops.add(Math.round(rect.top)); } if (tops.size > 1) failures.push('Mobile heading breaks inside word: ' + match[0]); } } } return failures; })()");
|
|
103
|
+
}
|
|
104
|
+
async function checkPageVideos(page) {
|
|
105
|
+
return await page.evaluate(`(async () => {
|
|
106
|
+
const errors=[];
|
|
107
|
+
for (const video of document.querySelectorAll('video')) {
|
|
108
|
+
if (!video.getClientRects().length) continue;
|
|
109
|
+
const label=video.getAttribute('src') || video.querySelector('source')?.getAttribute('src') || 'video';
|
|
110
|
+
if (!video.poster) errors.push('Video needs a poster: '+label);
|
|
111
|
+
else {
|
|
112
|
+
const poster=new Image(); poster.src=video.poster;
|
|
113
|
+
const ok=await Promise.race([poster.decode().then(()=>true,()=>false),new Promise(r=>setTimeout(()=>r(false),3000))]);
|
|
114
|
+
if (!ok) errors.push('Broken video poster: '+label);
|
|
115
|
+
}
|
|
116
|
+
if (video.readyState === 0 && (video.getAttribute('src') || video.querySelector('source[src]'))) {
|
|
117
|
+
await Promise.race([new Promise(r=>{video.addEventListener('loadedmetadata',r,{once:true});video.addEventListener('error',r,{once:true});video.load();}),new Promise(r=>setTimeout(r,3000))]);
|
|
118
|
+
if (video.readyState === 0 && !video.error) errors.push('Video metadata could not be verified: '+label);
|
|
119
|
+
}
|
|
120
|
+
if (video.autoplay && !video.muted) errors.push('Autoplay video must be muted: '+label);
|
|
121
|
+
if (matchMedia('(prefers-reduced-motion: reduce)').matches && !video.paused) errors.push('Video plays despite reduced motion: '+label);
|
|
122
|
+
if (!video.currentSrc && !video.getAttribute('src') && !video.querySelector('source[src]')) errors.push('Video has no source: '+label);
|
|
123
|
+
if (video.error) errors.push('Video media error: '+label);
|
|
124
|
+
}
|
|
125
|
+
return errors;
|
|
126
|
+
})()`);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// scripts/verify-browser.ts
|
|
130
|
+
import AxeBuilder from "@axe-core/playwright";
|
|
131
|
+
import { existsSync, mkdirSync as mkdirSync2, readFileSync, rmSync, copyFileSync } from "node:fs";
|
|
132
|
+
import { createHash } from "node:crypto";
|
|
133
|
+
import { join as join2, resolve } from "node:path";
|
|
134
|
+
|
|
135
|
+
// src/agent/browser-consent.ts
|
|
136
|
+
async function prepareConsentCheck(page, origin) {
|
|
137
|
+
await page.route("**/api/t*", (route) => route.fulfill({ status: 204, body: "" }));
|
|
138
|
+
await page.context().addCookies([
|
|
139
|
+
{ name: "vitris_cc", value: "1", url: origin },
|
|
140
|
+
{ name: "vitris_vid", value: "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa", url: origin }
|
|
141
|
+
]);
|
|
142
|
+
await page.addInitScript(`(() => {
|
|
143
|
+
const ids = new Set();
|
|
144
|
+
const start = window.setInterval.bind(window), stop = window.clearInterval.bind(window);
|
|
145
|
+
window.setInterval = (...args) => { const id = start(...args); if (args[1] === 15000) ids.add(id); return id; };
|
|
146
|
+
window.clearInterval = id => { ids.delete(id); return stop(id); };
|
|
147
|
+
window.__vitrisConsentTimers = () => ids.size;
|
|
148
|
+
})()`);
|
|
149
|
+
}
|
|
150
|
+
async function verifyConsentControls(page) {
|
|
151
|
+
const failures = [];
|
|
152
|
+
try {
|
|
153
|
+
await page.getByRole("button", { name: "Reject analytics cookies", exact: true }).click({ timeout: 3e3 });
|
|
154
|
+
await page.waitForFunction("document.cookie.includes('vitris_cc=0')", void 0, { timeout: 3e3 });
|
|
155
|
+
if ((await page.context().cookies()).some((c) => c.name === "vitris_vid")) failures.push("Consent rejection did not clear visitor cookie");
|
|
156
|
+
if (await page.evaluate("window.__vitrisConsentTimers()") !== 0) failures.push("Consent rejection did not stop live ping timer");
|
|
157
|
+
await page.reload({ waitUntil: "load" });
|
|
158
|
+
if ((await page.context().cookies()).find((c) => c.name === "vitris_cc")?.value !== "0") failures.push("Consent rejection did not survive reload");
|
|
159
|
+
if (await page.evaluate("window.__vitrisConsentTimers()") !== 0) failures.push("Live ping timer restarted after rejected preference reload");
|
|
160
|
+
await page.getByRole("button", { name: "Accept analytics cookies", exact: true }).click({ timeout: 3e3 });
|
|
161
|
+
await page.waitForFunction("document.cookie.includes('vitris_cc=1')", void 0, { timeout: 3e3 });
|
|
162
|
+
if (!(await page.context().cookies()).find((c) => c.name === "vitris_vid")?.value) failures.push("Consent acceptance did not create visitor cookie");
|
|
163
|
+
await page.reload({ waitUntil: "load" });
|
|
164
|
+
if ((await page.context().cookies()).find((c) => c.name === "vitris_cc")?.value !== "1") failures.push("Consent acceptance did not survive reload");
|
|
165
|
+
} catch (error) {
|
|
166
|
+
failures.push(`Consent controls: ${error instanceof Error ? error.message : String(error)}`);
|
|
167
|
+
}
|
|
168
|
+
return { passed: failures.length === 0, failures };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// src/agent/browser-work-queue.ts
|
|
172
|
+
async function runBrowserTasks(items, concurrency2, run) {
|
|
173
|
+
if (!Number.isInteger(concurrency2) || concurrency2 < 1 || concurrency2 > 4) throw new Error("Browser concurrency must be an integer from 1 to 4");
|
|
174
|
+
let next = 0;
|
|
175
|
+
const results = await Promise.allSettled(Array.from({ length: Math.min(concurrency2, items.length) }, async () => {
|
|
176
|
+
while (next < items.length) {
|
|
177
|
+
const index = next++;
|
|
178
|
+
await run(items[index], index);
|
|
179
|
+
}
|
|
180
|
+
}));
|
|
181
|
+
const failed = results.find((result) => result.status === "rejected");
|
|
182
|
+
if (failed?.status === "rejected") throw failed.reason;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// src/agent/template-motion-capture.ts
|
|
186
|
+
import { mkdirSync } from "node:fs";
|
|
187
|
+
import { join } from "node:path";
|
|
188
|
+
async function captureMotionFrame(page, path, selector) {
|
|
189
|
+
for (let attempt2 = 0; ; attempt2++) {
|
|
190
|
+
try {
|
|
191
|
+
await page.screenshot({ path });
|
|
192
|
+
const state = await page.evaluate((selector2) => JSON.stringify([...document.querySelectorAll(selector2)].map((el) => {
|
|
193
|
+
const s = getComputedStyle(el), r = el.getBoundingClientRect();
|
|
194
|
+
return { transform: s.transform, opacity: s.opacity, visibility: s.visibility, x: Math.round(r.x), y: Math.round(r.y), width: Math.round(r.width), height: Math.round(r.height), text: (el.innerText || el.textContent)?.trim().slice(0, 160), open: el.hasAttribute("open"), animations: el.getAnimations().map((a) => ({ time: Math.round(Number(a.currentTime)), state: a.playState })) };
|
|
195
|
+
})), selector);
|
|
196
|
+
return { state, captureRetries: attempt2 };
|
|
197
|
+
} catch (error) {
|
|
198
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
199
|
+
if (attempt2 >= 2 || page.isClosed() || !/Execution context was destroyed|Cannot find context with specified id|Unable to capture screenshot/.test(message)) throw error;
|
|
200
|
+
await page.waitForLoadState("domcontentloaded");
|
|
201
|
+
await page.waitForTimeout(32);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
async function captureTemplateMotion(browser2, root2, currentUrl, directory2, plan2) {
|
|
206
|
+
const invalid = validateTemplateMotionPlan(plan2);
|
|
207
|
+
if (invalid.length) throw Error(invalid.join("\n"));
|
|
208
|
+
mkdirSync(join(root2, directory2), { recursive: true });
|
|
209
|
+
const captures = [], files = [];
|
|
210
|
+
for (const moment of plan2.moments) for (const side of ["reference", "implementation"]) {
|
|
211
|
+
const context = await browser2.newContext({ viewport: { width: moment.width, height: 900 }, reducedMotion: "no-preference", recordVideo: { dir: join(root2, directory2), size: { width: moment.width, height: 900 } } });
|
|
212
|
+
const page = await context.newPage();
|
|
213
|
+
const target = moment[side], base = side === "reference" ? plan2.referenceUrl : currentUrl;
|
|
214
|
+
const frames = [], samples = [], failures = [];
|
|
215
|
+
let start = 0, loadReadyAt = 0, phaseStates = [];
|
|
216
|
+
if (target.requiredPhases?.length) {
|
|
217
|
+
await page.exposeFunction("__vitrisMotionPhase", ({ phase, path: path2, at }) => {
|
|
218
|
+
if (start) phaseStates.push({ at: at - start, phase, path: path2 });
|
|
219
|
+
});
|
|
220
|
+
await page.addInitScript(({ selector }) => {
|
|
221
|
+
let previous = "";
|
|
222
|
+
const timer = setInterval(() => {
|
|
223
|
+
const phases = [...document.querySelectorAll(selector)].map((el) => el.dataset.state).filter(Boolean);
|
|
224
|
+
const signature = phases.join("|");
|
|
225
|
+
if (signature && signature !== previous) {
|
|
226
|
+
previous = signature;
|
|
227
|
+
phases.forEach((phase) => window.__vitrisMotionPhase({ phase, path: window.location.pathname, at: Date.now() }));
|
|
228
|
+
}
|
|
229
|
+
}, 16);
|
|
230
|
+
setTimeout(() => clearInterval(timer), 6e3);
|
|
231
|
+
}, { selector: target.observe });
|
|
232
|
+
}
|
|
233
|
+
try {
|
|
234
|
+
if (moment.kind === "load") start = Date.now();
|
|
235
|
+
await page.goto(target.path === "/" ? base : new URL(target.path.replace(/^\//, ""), base.endsWith("/") ? base : base + "/").href, { waitUntil: moment.kind === "load" ? "domcontentloaded" : "networkidle" });
|
|
236
|
+
if (moment.kind === "load") loadReadyAt = Date.now();
|
|
237
|
+
if (moment.kind !== "load") {
|
|
238
|
+
await page.evaluate(() => document.fonts.ready);
|
|
239
|
+
await page.waitForFunction(() => !document.documentElement.dataset.experienceArrival && !document.querySelector(".curtain.covering"));
|
|
240
|
+
await page.waitForTimeout(250);
|
|
241
|
+
}
|
|
242
|
+
const locator = page.locator(target.target).first();
|
|
243
|
+
await locator.waitFor({ state: "visible" });
|
|
244
|
+
if (!["load", "scroll", "marquee"].includes(moment.kind)) await locator.scrollIntoViewIfNeeded();
|
|
245
|
+
if (moment.kind === "scroll") {
|
|
246
|
+
const box = await locator.boundingBox();
|
|
247
|
+
if (box && box.y > 900) await page.evaluate((selector) => {
|
|
248
|
+
const el = document.querySelector(selector);
|
|
249
|
+
window.scrollTo({ top: el.getBoundingClientRect().top + window.scrollY - window.innerHeight - 24, behavior: "instant" });
|
|
250
|
+
}, target.target);
|
|
251
|
+
}
|
|
252
|
+
const rect = await locator.boundingBox();
|
|
253
|
+
if (!rect) throw Error("Missing target geometry");
|
|
254
|
+
const snapshot = async (at) => {
|
|
255
|
+
if (start) {
|
|
256
|
+
const remaining = at - (Date.now() - (loadReadyAt || start));
|
|
257
|
+
if (remaining > 0) await page.waitForTimeout(remaining);
|
|
258
|
+
}
|
|
259
|
+
const path2 = directory2 + "/" + moment.id + "-" + side + "-" + at + ".png";
|
|
260
|
+
const { state, captureRetries } = await captureMotionFrame(page, join(root2, path2), target.observe);
|
|
261
|
+
frames.push(path2);
|
|
262
|
+
samples.push({ at: start ? Date.now() - start : -1, requestedAt: at, state, ...captureRetries ? { captureRetries } : {} });
|
|
263
|
+
};
|
|
264
|
+
await snapshot(-1);
|
|
265
|
+
if (moment.kind !== "load") {
|
|
266
|
+
start = Date.now();
|
|
267
|
+
phaseStates = [];
|
|
268
|
+
}
|
|
269
|
+
if (moment.kind === "pointer-follow") {
|
|
270
|
+
await page.mouse.move(rect.x + rect.width * 0.4, rect.y + rect.height / 2);
|
|
271
|
+
await page.waitForTimeout(140);
|
|
272
|
+
await page.mouse.move(rect.x + rect.width * 0.7, rect.y + rect.height / 2);
|
|
273
|
+
start = Date.now();
|
|
274
|
+
} else if (moment.kind === "magnetic") {
|
|
275
|
+
await page.mouse.move(rect.x + rect.width * 0.83, rect.y + rect.height * 0.35);
|
|
276
|
+
} else if (moment.kind === "route" || moment.kind === "drawer" || moment.kind === "sequence") await locator.click();
|
|
277
|
+
else if (moment.kind === "scroll") {
|
|
278
|
+
await page.mouse.wheel(0, 240);
|
|
279
|
+
}
|
|
280
|
+
for (const at of moment.kind === "route" ? [80, 350, 650, 1100, 1600, 2100] : moment.kind === "load" ? [80, 350, 650, 950, 1400, 1800] : [80, 180, 400, 800]) await snapshot(at);
|
|
281
|
+
if (moment.kind === "magnetic") {
|
|
282
|
+
await page.mouse.move(10, 10);
|
|
283
|
+
await snapshot(1600);
|
|
284
|
+
}
|
|
285
|
+
} catch (error) {
|
|
286
|
+
failures.push(error instanceof Error ? error.message : String(error));
|
|
287
|
+
}
|
|
288
|
+
const video = page.video();
|
|
289
|
+
await context.close();
|
|
290
|
+
const path = directory2 + "/" + moment.id + "-" + side + ".webm";
|
|
291
|
+
if (video) {
|
|
292
|
+
await video.saveAs(join(root2, path));
|
|
293
|
+
await video.delete();
|
|
294
|
+
} else failures.push("Missing actual recording");
|
|
295
|
+
for (const artifact of [...frames, path]) files.push({ path: artifact, hash: fingerprint(root2, [artifact]) });
|
|
296
|
+
for (const phase of target.requiredPhases || []) if (!phaseStates.some((s) => s.phase === phase)) failures.push("Missing actual transition phase: " + phase);
|
|
297
|
+
captures.push({ momentId: moment.id, side, width: moment.width, video: path, frames, samples, ...target.requiredPhases?.length ? { phaseStates } : {}, failures });
|
|
298
|
+
console.log("template motion: " + moment.id + " / " + side + " / " + (failures.length ? "failed" : "captured"));
|
|
299
|
+
}
|
|
300
|
+
return { version: 1, planHash: templateMotionHash(plan2), selectionHash: plan2.selectionHash, distHash: fingerprint(root2, ["dist"]), captures, files };
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// scripts/verify-browser.ts
|
|
304
|
+
var arg = (key) => {
|
|
305
|
+
const i = process.argv.indexOf(key);
|
|
306
|
+
return i < 0 ? void 0 : process.argv[i + 1];
|
|
307
|
+
};
|
|
308
|
+
var root = resolve(arg("--site") || ".");
|
|
309
|
+
var representative = process.argv.includes("--representative");
|
|
310
|
+
var concurrency = Number(arg("--concurrency") || process.env.VITRIS_BROWSER_CONCURRENCY || "1");
|
|
311
|
+
if (!Number.isInteger(concurrency) || concurrency < 1 || concurrency > 4) throw new Error("--concurrency must be an integer from 1 to 4");
|
|
312
|
+
var extraViewports = (arg("--extra-viewports") || "").split(",").filter(Boolean).map(Number);
|
|
313
|
+
if (extraViewports.some((width) => !Number.isSafeInteger(width) || width < 320 || width > 2560)) throw new Error("--extra-viewports must be comma-separated integer widths from 320 to 2560");
|
|
314
|
+
var viewports = [.../* @__PURE__ */ new Set([375, 1080, ...extraViewports])].sort((a, b) => a - b);
|
|
315
|
+
var motionFlag = arg("--motion") || "both";
|
|
316
|
+
if (!["reduce", "normal", "both"].includes(motionFlag)) throw new Error("--motion must be reduce, normal, or both");
|
|
317
|
+
var motionModes = motionFlag === "both" ? ["reduce", "normal"] : [motionFlag];
|
|
318
|
+
var name = representative ? "representative-browser" : "browser";
|
|
319
|
+
var sanitizeRequestUrl = (raw) => {
|
|
320
|
+
const url = new URL(raw);
|
|
321
|
+
return url.origin + url.pathname.split("/").map((segment) => /@|^[0-9a-f]{16,}$/i.test(segment) ? "[redacted]" : segment).join("/");
|
|
322
|
+
};
|
|
323
|
+
await buildVerified(root);
|
|
324
|
+
var analyticsRequired = !productionQuality(root) || hasAnalyticsRuntime(root);
|
|
325
|
+
var plan = json(join2(root, "onboarding/storyboard.json"));
|
|
326
|
+
var attempt = Date.now();
|
|
327
|
+
var dist = join2(root, "dist");
|
|
328
|
+
var directory = `agent/screenshots/${name}${plan.motionPlan?.version === 2 ? `/${attempt}` : ""}`;
|
|
329
|
+
if (plan.motionPlan?.version !== 2) rmSync(join2(root, directory), { recursive: true, force: true });
|
|
330
|
+
mkdirSync2(join2(root, directory), { recursive: true });
|
|
331
|
+
if (plan.motionPlan?.version === 2 && existsSync(join2(root, `agent/reviews/${name}.json`))) copyFileSync(join2(root, `agent/reviews/${name}.json`), join2(root, directory, "previous-report.json"));
|
|
332
|
+
var compositionMode = resolveDesignAuthoring(root).mode === "composition-v1";
|
|
333
|
+
var mediaInventory = existsSync(join2(root, "onboarding/media-inventory.json")) ? json(join2(root, "onboarding/media-inventory.json")) : { version: 2, harvestHash: "", assets: [] };
|
|
334
|
+
var server = previewServer(dist, { compress: true });
|
|
335
|
+
await new Promise((r) => server.listen(0, "127.0.0.1", r));
|
|
336
|
+
var address = server.address();
|
|
337
|
+
var browser;
|
|
338
|
+
var checks = [];
|
|
339
|
+
var routeChecks = [];
|
|
340
|
+
var compositionTargets = [];
|
|
341
|
+
var pagesToCheck = plan.pages.filter((p) => !representative || p.path === "/" || p.representative);
|
|
342
|
+
if (!representative && existsSync(join2(dist, "cookie-compliance/index.html")) && !pagesToCheck.some((p) => p.path === "/cookie-compliance")) pagesToCheck.push({ path: "/cookie-compliance" });
|
|
343
|
+
var consentChecks = [];
|
|
344
|
+
var temporalMotion = [];
|
|
345
|
+
var routeJourneys = [];
|
|
346
|
+
try {
|
|
347
|
+
try {
|
|
348
|
+
const chromium = await loadPlaywrightChromium();
|
|
349
|
+
browser = await chromium.launch({ headless: true });
|
|
350
|
+
} catch (error) {
|
|
351
|
+
throw new Error(explainBrowserLaunchFailure(error));
|
|
352
|
+
}
|
|
353
|
+
const tasks = pagesToCheck.flatMap((p) => viewports.flatMap((width) => motionModes.map((motion) => ({ p, width, motion }))));
|
|
354
|
+
await runBrowserTasks(tasks, concurrency, async ({ p, width, motion }, taskIndex) => {
|
|
355
|
+
if (plan.motionPlan?.version === 2 && plan.motionPlan.routes?.some((r) => r.route === p.path)) {
|
|
356
|
+
const journey = await captureMotionJourney(browser, root, `http://127.0.0.1:${address.port}${p.path}`, p.path, width, motion, `${directory}/journeys/${taskIndex}-${motion}`, plan.motionPlan, motionCompositionPolicy(root, plan.pages.map((p2) => p2.path)).operatorOff);
|
|
357
|
+
routeJourneys.push(journey);
|
|
358
|
+
if (motion === "reduce") routeJourneys.push(await captureMotionJourney(browser, root, `http://127.0.0.1:${address.port}${p.path}`, p.path, width, "static", `${directory}/journeys/${taskIndex}-static`, plan.motionPlan, true));
|
|
359
|
+
}
|
|
360
|
+
const context = await browser.newContext({ viewport: { width, height: 900 }, reducedMotion: motion === "normal" ? "no-preference" : "reduce" });
|
|
361
|
+
const page = await context.newPage();
|
|
362
|
+
const failures = [];
|
|
363
|
+
const warnings = [];
|
|
364
|
+
if (!representative && analyticsRequired && p.path === "/cookie-compliance") await prepareConsentCheck(page, `http://127.0.0.1:${address.port}`);
|
|
365
|
+
page.on("pageerror", (e) => failures.push(`Runtime: ${e.message}`));
|
|
366
|
+
await page.addInitScript(`(() => { try { new PerformanceObserver(list => { const e=list.getEntries().at(-1); if(e?.element) window.__vitrisLcpImage={tag:e.element.tagName,loading:e.element.getAttribute('loading'),source:e.element.getAttribute('src')}; }).observe({type:'largest-contentful-paint',buffered:true}); } catch {} })()`);
|
|
367
|
+
page.on("response", (r) => {
|
|
368
|
+
if (r.status() >= 400 && r.url().startsWith(`http://127.0.0.1:${address.port}`)) failures.push(`HTTP ${r.status()}: ${r.url()}`);
|
|
369
|
+
});
|
|
370
|
+
await page.goto(`http://127.0.0.1:${address.port}${p.path}`, { waitUntil: "domcontentloaded", timeout: 3e4 });
|
|
371
|
+
await page.waitForLoadState("load");
|
|
372
|
+
await page.waitForFunction(() => !document.documentElement.dataset.experienceArrival, {}, { timeout: 5e3 });
|
|
373
|
+
const initialTransferBytes = await page.evaluate(`(() => performance.getEntriesByType('resource').concat(performance.getEntriesByType('navigation')).reduce((sum,e)=>sum+(e.transferSize||e.encodedBodySize||e.decodedBodySize||0),0))()`);
|
|
374
|
+
const lcpImage = await page.evaluate("window.__vitrisLcpImage");
|
|
375
|
+
if (performancePolicy(root).enabled && lcpImage?.tag === "IMG" && lcpImage.loading === "lazy") failures.push(`LCP image is lazy-loaded: ${lcpImage.source}; mark the actual critical image data-media-priority="critical"`);
|
|
376
|
+
if (performancePolicy(root).enabled) {
|
|
377
|
+
const lazyOpeningImages = await page.evaluate(`(() => [...document.images].filter(img => {
|
|
378
|
+
if(img.loading!=='lazy')return false;
|
|
379
|
+
const r=img.getBoundingClientRect(),s=getComputedStyle(img);
|
|
380
|
+
const visibleWidth=Math.max(0,Math.min(r.right,innerWidth)-Math.max(r.left,0)),visibleHeight=Math.max(0,Math.min(r.bottom,innerHeight)-Math.max(r.top,0));
|
|
381
|
+
return s.visibility!=='hidden'&&s.display!=='none'&&visibleWidth*visibleHeight>innerWidth*innerHeight*.08;
|
|
382
|
+
}).map(img=>img.getAttribute('data-media-source')||img.getAttribute('src')))()`);
|
|
383
|
+
failures.push(...lazyOpeningImages.map((src) => `Large above-fold image is lazy-loaded: ${src}; use eager loading, and critical priority only for the actual LCP image`));
|
|
384
|
+
}
|
|
385
|
+
const temporal = await observeMotion(page, root, p.path, width, motion, directory);
|
|
386
|
+
temporalMotion.push(temporal);
|
|
387
|
+
failures.push(...temporal.failures);
|
|
388
|
+
failures.push(...await checkPageVideos(page));
|
|
389
|
+
await page.evaluate(`(async () => { for(let y=0;y<Math.min(document.documentElement.scrollHeight,50000);y+=700){ window.scrollTo(0,y); await new Promise(r=>setTimeout(r,80)); } window.scrollTo(0,0); await Promise.race([document.fonts.ready,new Promise(r=>setTimeout(r,5000))]); await Promise.race([Promise.all([...document.images].filter(i=>i.getClientRects().length).map(i=>{i.loading='eager';return i.decode().catch(()=>{});})),new Promise(r=>setTimeout(r,5000))]); })()`);
|
|
390
|
+
let firstVisit;
|
|
391
|
+
const cookieBanner = page.locator("#vitris-cookie-banner");
|
|
392
|
+
if (await cookieBanner.isVisible()) {
|
|
393
|
+
if (p.path === "/") {
|
|
394
|
+
const path = `${directory}/first-visit-${width}${motion === "reduce" ? "" : "-normal"}.png`;
|
|
395
|
+
await page.screenshot({ path: join2(root, path) });
|
|
396
|
+
firstVisit = { screenshot: path, screenshotHash: fingerprint(root, [path]) };
|
|
397
|
+
const firstAudit = await new AxeBuilder({ page }).withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"]).analyze();
|
|
398
|
+
for (const violation of firstAudit.violations) if (["critical", "serious"].includes(violation.impact || "")) {
|
|
399
|
+
failures.push(`First-visit accessibility: ${violation.id}: ${violation.nodes.map((node) => node.target.join(" ")).join(", ")}`);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
await cookieBanner.locator("[data-cookie-reject]").click();
|
|
403
|
+
await cookieBanner.waitFor({ state: "hidden", timeout: 3e3 });
|
|
404
|
+
}
|
|
405
|
+
await page.evaluate("document.body.tabIndex = -1; document.body.focus(); window.scrollTo(0,0)");
|
|
406
|
+
await page.keyboard.press("Tab");
|
|
407
|
+
const firstFocus = await page.evaluate(`document.activeElement?.matches('a.skip-link[href="#main"]') === true`);
|
|
408
|
+
if (!firstFocus) failures.push("Keyboard skip link is not the first focus target");
|
|
409
|
+
else {
|
|
410
|
+
await page.keyboard.press("Enter");
|
|
411
|
+
const skipOutcome = await page.evaluate("({ hash: location.hash, mainCount: document.querySelectorAll('main#main').length, focusable: document.querySelector('main#main')?.hasAttribute('tabindex') })");
|
|
412
|
+
if (skipOutcome.hash !== "#main" || skipOutcome.mainCount !== 1 || !skipOutcome.focusable) failures.push(`Keyboard skip link did not reach one focusable main landmark: ${JSON.stringify(skipOutcome)}`);
|
|
413
|
+
}
|
|
414
|
+
await page.evaluate("history.replaceState(null, '', location.pathname + location.search); document.body.removeAttribute('tabindex')");
|
|
415
|
+
const accessibility = await new AxeBuilder({ page }).withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"]).analyze();
|
|
416
|
+
for (const violation of accessibility.violations) if (violation.id === "label-content-name-mismatch" || ["critical", "serious"].includes(violation.impact || "")) {
|
|
417
|
+
failures.push(`Accessibility: ${violation.id}: ${violation.nodes.map((node) => node.target.join(" ")).join(", ")}`);
|
|
418
|
+
}
|
|
419
|
+
const focusableCount = await page.locator("a[href]:visible,button:visible,input:visible,textarea:visible,select:visible,[tabindex]:visible").count();
|
|
420
|
+
if (focusableCount > 1) {
|
|
421
|
+
await page.evaluate("document.activeElement?.blur(); document.body.focus()");
|
|
422
|
+
const sequence = [];
|
|
423
|
+
for (let index = 0; index < Math.min(focusableCount, 4); index++) {
|
|
424
|
+
await page.keyboard.press("Tab");
|
|
425
|
+
sequence.push(await page.evaluate("(() => { const e=document.activeElement; return e?.tagName + '#' + (e?.id||'') + ':' + [...document.querySelectorAll('*')].indexOf(e); })()"));
|
|
426
|
+
}
|
|
427
|
+
if (new Set(sequence).size === 1) failures.push(`Keyboard trap: Tab did not advance focus among ${focusableCount} controls`);
|
|
428
|
+
}
|
|
429
|
+
const obscured = await checkFocusOcclusion(page);
|
|
430
|
+
failures.push(...obscured.map((target) => `Focus obscured by rendered overlay: ${target}`));
|
|
431
|
+
const observed = await page.evaluate(`(() => {
|
|
432
|
+
const errors=[];
|
|
433
|
+
if(document.documentElement.scrollWidth>innerWidth+2) errors.push('Horizontal overflow');
|
|
434
|
+
if(document.querySelectorAll('h1').length!==1) errors.push('Expected one h1');
|
|
435
|
+
for(const img of document.images) if(img.getClientRects().length&&(!img.complete||img.naturalWidth===0)) errors.push('Broken image: '+img.getAttribute('src'));
|
|
436
|
+
for(const f of document.querySelectorAll('input:not([type=hidden]):not([type=submit]):not([type=button]),textarea,select')) if(!f.labels?.length&&!f.getAttribute('aria-label')&&!f.getAttribute('aria-labelledby')) errors.push('Unlabelled field: '+f.name);
|
|
437
|
+
return {errors, links:[...document.querySelectorAll('a[href]')].map(a=>a.getAttribute('href'))};
|
|
438
|
+
})()`);
|
|
439
|
+
failures.push(...observed.errors);
|
|
440
|
+
if (width === 375) failures.push(...await checkHeadingWordBreaks(page));
|
|
441
|
+
failures.push(...await checkSharedMedia(page, plan, mediaInventory, p.path, existsSync(join2(dist, "media-manifest.json")) ? json(join2(dist, "media-manifest.json")) : void 0));
|
|
442
|
+
if (performancePolicy(root).enabled && existsSync(join2(dist, "media-manifest.json"))) failures.push(...await checkResponsiveImages(page, json(join2(dist, "media-manifest.json"))));
|
|
443
|
+
const tabs = page.locator('[role="tab"]:visible');
|
|
444
|
+
for (let i = 0; i < await tabs.count(); i++) {
|
|
445
|
+
const tab = tabs.nth(i);
|
|
446
|
+
await tab.click();
|
|
447
|
+
if (await tab.getAttribute("aria-selected") !== "true") failures.push(`Tab ${i + 1} did not select`);
|
|
448
|
+
const panelId = await tab.getAttribute("aria-controls");
|
|
449
|
+
if (!panelId || !await page.evaluate(`(() => { const p=document.getElementById(${JSON.stringify(panelId)});return !!p&&!p.hidden; })()`)) failures.push(`Tab ${i + 1} has no visible panel`);
|
|
450
|
+
await page.evaluate(`(async () => { await Promise.race([Promise.all([...document.images].filter(i=>i.getClientRects().length).map(i=>{i.loading='eager';return i.decode().catch(()=>{});})),new Promise(r=>setTimeout(r,5000))]); })()`);
|
|
451
|
+
const broken = await page.evaluate(`Array.from(document.images).filter(i=>i.getClientRects().length&&(!i.complete||!i.naturalWidth)).map(i=>i.getAttribute('src'))`);
|
|
452
|
+
failures.push(...broken.map((src) => `Broken tab image: ${src}`));
|
|
453
|
+
}
|
|
454
|
+
if (await tabs.count()) await tabs.first().click();
|
|
455
|
+
for (const carousel of await page.locator('[data-island="carousel"]').all()) {
|
|
456
|
+
const track = carousel.locator(".carousel__track");
|
|
457
|
+
if (!await track.count()) continue;
|
|
458
|
+
const scrollable = await track.evaluate((el) => el.scrollWidth > el.clientWidth + 2);
|
|
459
|
+
if (!scrollable) continue;
|
|
460
|
+
await track.evaluate((el) => {
|
|
461
|
+
el.scrollLeft = 0;
|
|
462
|
+
});
|
|
463
|
+
const next = carousel.locator("[data-carousel-next]");
|
|
464
|
+
if (!await next.count()) {
|
|
465
|
+
failures.push("Scrollable carousel lacks next control");
|
|
466
|
+
continue;
|
|
467
|
+
}
|
|
468
|
+
await next.click();
|
|
469
|
+
let advanced = false;
|
|
470
|
+
for (let i = 0; i < 20 && !advanced; i++) {
|
|
471
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
472
|
+
advanced = await track.evaluate((el) => el.scrollLeft > 0);
|
|
473
|
+
}
|
|
474
|
+
if (!advanced) failures.push("Carousel next control did not advance");
|
|
475
|
+
await track.evaluate((el) => {
|
|
476
|
+
el.scrollLeft = 0;
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
const toggle = page.locator("[data-nav-toggle]:visible").first();
|
|
480
|
+
if (await toggle.count()) {
|
|
481
|
+
await toggle.click();
|
|
482
|
+
if (await toggle.getAttribute("aria-expanded") !== "true") failures.push("Navigation did not open");
|
|
483
|
+
await page.keyboard.press("Escape");
|
|
484
|
+
if (await toggle.getAttribute("aria-expanded") !== "false") failures.push("Navigation did not close on Escape");
|
|
485
|
+
}
|
|
486
|
+
for (const href of new Set(observed.links.filter((h) => h.startsWith("#") && h.length > 1))) {
|
|
487
|
+
const id = decodeURIComponent(href.slice(1));
|
|
488
|
+
if (!await page.evaluate(`!!document.getElementById(${JSON.stringify(id)})`)) failures.push(`Missing anchor target: ${href}`);
|
|
489
|
+
}
|
|
490
|
+
if (!representative) for (const href of new Set(observed.links)) {
|
|
491
|
+
const url = new URL(href, page.url());
|
|
492
|
+
if (url.origin !== new URL(page.url()).origin || href.startsWith("#")) continue;
|
|
493
|
+
const response = await page.request.get(url.href);
|
|
494
|
+
if (!response.ok()) failures.push(`Broken internal link: ${href}`);
|
|
495
|
+
}
|
|
496
|
+
if (!representative && p.path === "/") for (const route of plan.routes || []) {
|
|
497
|
+
const oldPath = new URL(route.source).pathname.replace(/\/$/, "") || "/";
|
|
498
|
+
const origin = `http://127.0.0.1:${address.port}`;
|
|
499
|
+
const raw = await page.request.get(origin + oldPath, { maxRedirects: 0 });
|
|
500
|
+
const status = raw.status(), location = raw.headers()["location"];
|
|
501
|
+
const routeFailures = [];
|
|
502
|
+
let destination;
|
|
503
|
+
let mechanism = "unverified";
|
|
504
|
+
if (route.disposition === "redirect" || route.disposition === "consolidate") {
|
|
505
|
+
mechanism = "http-redirect";
|
|
506
|
+
if (![301, 302, 307, 308].includes(status) || !location) routeFailures.push(`Expected HTTP redirect for ${oldPath}; received ${status}`);
|
|
507
|
+
else {
|
|
508
|
+
const locationPath = new URL(location, origin + oldPath).pathname.replace(/\/$/, "") || "/";
|
|
509
|
+
if (locationPath !== (route.target?.replace(/\/$/, "") || "/")) routeFailures.push(`Redirect Location mismatch for ${oldPath}: ${location}`);
|
|
510
|
+
try {
|
|
511
|
+
const followed = await page.request.get(origin + oldPath, { maxRedirects: 4 });
|
|
512
|
+
destination = new URL(followed.url()).pathname.replace(/\/$/, "") || "/";
|
|
513
|
+
if (!followed.ok() || destination !== (route.target?.replace(/\/$/, "") || "/")) routeFailures.push(`Redirect destination or loop failure for ${oldPath}`);
|
|
514
|
+
} catch {
|
|
515
|
+
routeFailures.push(`Redirect loop or failed handoff for ${oldPath}`);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
} else if (route.disposition === "preserve") {
|
|
519
|
+
mechanism = "preserved";
|
|
520
|
+
if (status !== 200) routeFailures.push(`Preserved source route ${oldPath} returned ${status}`);
|
|
521
|
+
} else {
|
|
522
|
+
mechanism = "retired";
|
|
523
|
+
if (status !== 404 && status !== 410) routeFailures.push(`Retired source route ${oldPath} returned ${status}`);
|
|
524
|
+
}
|
|
525
|
+
failures.push(...routeFailures);
|
|
526
|
+
routeChecks.push({ source: oldPath, width, disposition: route.disposition, ...route.target ? { target: route.target } : {}, status, ...location ? { location } : {}, ...destination ? { destination } : {}, mechanism, failures: routeFailures });
|
|
527
|
+
}
|
|
528
|
+
if (!representative && analyticsRequired && p.path === "/cookie-compliance") {
|
|
529
|
+
const consent = await verifyConsentControls(page);
|
|
530
|
+
consentChecks.push({ width, ...consent });
|
|
531
|
+
failures.push(...consent.failures);
|
|
532
|
+
}
|
|
533
|
+
const slug = p.path === "/" ? "home" : p.path.replace(/^\//, "").replace(/[^a-zA-Z0-9]+/g, "-").replace(/-+$/, "") || "home";
|
|
534
|
+
const screenshot = `${directory}/${slug}-${width}${motion === "reduce" ? "" : "-normal"}.png`;
|
|
535
|
+
await page.evaluate("window.VitrisMotion?.dispose(); window.VitrisCounters?.dispose()");
|
|
536
|
+
const unreadableMotion = await page.locator("[data-motion],[data-reveal],[data-motion-child],[data-reveal-child]").evaluateAll((es) => es.filter((e) => Number(getComputedStyle(e).opacity) < 0.99).map((e) => e.id || e.tagName));
|
|
537
|
+
if (unreadableMotion.length) failures.push(`Motion teardown left final static content hidden: ${unreadableMotion.join(", ")}`);
|
|
538
|
+
await page.evaluate("window.scrollTo(0,0)");
|
|
539
|
+
const visibleText = await page.locator("body").innerText();
|
|
540
|
+
await page.screenshot({ path: join2(root, screenshot), fullPage: true });
|
|
541
|
+
if (compositionMode) for (const section of p.sections || []) for (const element of section.elementPlan || []) {
|
|
542
|
+
const locator = page.locator(`[data-composition-element="${element.id}"]`);
|
|
543
|
+
const count = await locator.count();
|
|
544
|
+
const visible = count === 1 ? await locator.first().isVisible() : false;
|
|
545
|
+
compositionTargets.push({ path: p.path, width, motion, sectionId: section.id, elementId: element.id, count, visible, screenshot, screenshotHash: fingerprint(root, [screenshot]), captureSha256: createHash("sha256").update(readFileSync(join2(root, screenshot))).digest("hex") });
|
|
546
|
+
if (count !== 1) failures.push(`Composition element ${p.path}#${section.id}/${element.id} has ${count} render targets; expected one`);
|
|
547
|
+
}
|
|
548
|
+
let mockedLeadPosts = 0;
|
|
549
|
+
let blockedMutations = 0;
|
|
550
|
+
const blockedFormRequests = [];
|
|
551
|
+
let expectedLeadAction;
|
|
552
|
+
const previewOrigin = `http://127.0.0.1:${address.port}`;
|
|
553
|
+
await page.route("**/*", async (route) => {
|
|
554
|
+
const request = route.request();
|
|
555
|
+
const url = new URL(request.url());
|
|
556
|
+
if (request.method() === "POST" && url.href === expectedLeadAction && url.pathname === "/api/leads") {
|
|
557
|
+
mockedLeadPosts++;
|
|
558
|
+
const before = page.url();
|
|
559
|
+
if ((await request.headerValue("accept"))?.includes("application/json")) {
|
|
560
|
+
await route.fulfill({ status: 201, contentType: "application/json", headers: { "access-control-allow-origin": previewOrigin }, body: JSON.stringify({ ok: true, leadId: "local-mock", mode: "test" }) });
|
|
561
|
+
} else {
|
|
562
|
+
await route.fulfill({ status: 302, headers: { location: `${before}${before.includes("?") ? "&" : "?"}sent=1` } });
|
|
563
|
+
}
|
|
564
|
+
} else if (expectedLeadAction && request.method() === "GET" && url.origin === "https://challenges.cloudflare.com" && url.pathname === "/turnstile/v0/api.js") {
|
|
565
|
+
await route.fulfill({ contentType: "application/javascript", body: 'window.turnstile={render:(el,opts)=>{setTimeout(()=>opts.callback("browser-verifier-fixture"),0);return "fixture"},reset:()=>{}}' });
|
|
566
|
+
} else if (request.method() !== "GET" || url.origin !== previewOrigin) {
|
|
567
|
+
const disposition = request.method() !== "GET" && url.pathname === "/api/t" ? "expected-blocked-telemetry" : request.method() === "GET" ? "blocked-external-read" : "unexpected-mutation";
|
|
568
|
+
if (disposition === "unexpected-mutation") blockedMutations++;
|
|
569
|
+
let initiator = "unknown";
|
|
570
|
+
try {
|
|
571
|
+
initiator = sanitizeRequestUrl(request.frame().url());
|
|
572
|
+
} catch {
|
|
573
|
+
}
|
|
574
|
+
blockedFormRequests.push({ url: sanitizeRequestUrl(request.url()), method: request.method(), resourceType: request.resourceType(), initiator, disposition });
|
|
575
|
+
await route.abort();
|
|
576
|
+
} else {
|
|
577
|
+
await route.continue();
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
for (const form of await page.locator("form:has(button[type=submit],input[type=submit],button:not([type]))").all()) {
|
|
581
|
+
if (!await form.isVisible()) continue;
|
|
582
|
+
const before = page.url();
|
|
583
|
+
if (await form.getAttribute("data-lead-form") === null) {
|
|
584
|
+
warnings.push("Unsupported form was not submitted; no mock adapter is configured");
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
const action = new URL(await form.getAttribute("action") || before, before);
|
|
588
|
+
const method = (await form.getAttribute("method") || "get").toUpperCase();
|
|
589
|
+
if (action.pathname !== "/api/leads" || method !== "POST") {
|
|
590
|
+
warnings.push(`Lead form was not submitted: expected POST /api/leads, found ${method} ${action.pathname}`);
|
|
591
|
+
continue;
|
|
592
|
+
}
|
|
593
|
+
const statusBefore = await page.locator('[role="status"]:visible').allTextContents();
|
|
594
|
+
const postsBefore = mockedLeadPosts;
|
|
595
|
+
let supported = true;
|
|
596
|
+
for (const field of await form.locator("input:not([type=hidden]):not([type=submit]),textarea,select").all()) {
|
|
597
|
+
const type = (await field.getAttribute("type") || "text").toLowerCase();
|
|
598
|
+
if (!await field.isVisible() || !await field.isEnabled()) continue;
|
|
599
|
+
if (type === "file") {
|
|
600
|
+
if (await field.getAttribute("required") !== null) supported = false;
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
if (type === "checkbox" || type === "radio") {
|
|
604
|
+
if (await field.getAttribute("required") !== null) await field.check();
|
|
605
|
+
continue;
|
|
606
|
+
}
|
|
607
|
+
const tag = await field.evaluate((el) => el.tagName.toLowerCase());
|
|
608
|
+
if (tag === "select") {
|
|
609
|
+
const option = await field.locator("option:not([disabled]):not([value=''])").first().getAttribute("value");
|
|
610
|
+
if (option !== null) await field.selectOption(option);
|
|
611
|
+
else if (await field.getAttribute("required") !== null) supported = false;
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
const value = type === "email" ? "pilot@example.invalid" : type === "tel" ? "5550101234" : type === "number" || type === "range" ? "1" : type === "date" ? "2026-01-15" : type === "datetime-local" ? "2026-01-15T12:00" : type === "time" ? "12:00" : type === "url" ? "https://example.invalid/" : "Pilot inquiry";
|
|
615
|
+
await field.fill(value);
|
|
616
|
+
}
|
|
617
|
+
if (!supported) {
|
|
618
|
+
warnings.push("Lead form was not submitted: required input has no safe test value");
|
|
619
|
+
continue;
|
|
620
|
+
}
|
|
621
|
+
try {
|
|
622
|
+
expectedLeadAction = action.href;
|
|
623
|
+
await form.locator("button[type=submit],input[type=submit],button:not([type])").first().click({ timeout: 3e3 });
|
|
624
|
+
await page.waitForTimeout(500);
|
|
625
|
+
const next = page.url();
|
|
626
|
+
const statusAfter = await page.locator('[role="status"]:visible').allTextContents();
|
|
627
|
+
const newStatus = statusAfter.some((text) => text.trim() && !statusBefore.includes(text));
|
|
628
|
+
if (mockedLeadPosts === postsBefore) failures.push("Lead form did not reach the mocked POST /api/leads adapter");
|
|
629
|
+
else if (!newStatus && !(new URL(next).searchParams.get("sent") && next !== before)) failures.push("Lead form has no new success state or destination");
|
|
630
|
+
} catch (error) {
|
|
631
|
+
failures.push(`Contact form could not complete: ${error instanceof Error ? error.message.slice(0, 120) : String(error)}`);
|
|
632
|
+
} finally {
|
|
633
|
+
expectedLeadAction = void 0;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (blockedMutations) failures.push(`${blockedMutations} unexpected mutating request(s) were blocked during form verification`);
|
|
637
|
+
const harmlessBlocked = blockedFormRequests.filter((request) => request.disposition === "blocked-external-read").length;
|
|
638
|
+
if (blockedFormRequests.length) warnings.push("Form-time network requests blocked; inspect blockedFormRequests for individual dispositions");
|
|
639
|
+
if (harmlessBlocked) warnings.push(`${harmlessBlocked} external read request(s) blocked during form verification; inspect blockedFormRequests`);
|
|
640
|
+
checks.push({ visibleText, path: p.path, width, motion, screenshot, screenshotHash: fingerprint(root, [screenshot]), initialTransferBytes, ...firstVisit ? { firstVisit } : {}, mockedLeadPosts, blockedFormRequests, failures, warnings });
|
|
641
|
+
console.log(`${name}: ${checks.length}/${pagesToCheck.length * viewports.length * motionModes.length} ${p.path} (${width}px, ${motion}), ${failures.length ? `${failures.length} failures` : "checked"}`);
|
|
642
|
+
for (const failure of failures) console.log(` ${failure}`);
|
|
643
|
+
await context.close();
|
|
644
|
+
});
|
|
645
|
+
const compare = (a, b) => a.path.localeCompare(b.path) || a.width - b.width || String(a.motion || a.mode).localeCompare(String(b.motion || b.mode));
|
|
646
|
+
checks.sort(compare);
|
|
647
|
+
routeJourneys.sort(compare);
|
|
648
|
+
const templateMotion = existsSync(join2(root, TEMPLATE_MOTION_PATH)) ? await captureTemplateMotion(browser, root, `http://127.0.0.1:${address.port}/`, directory + "/template-motion", json(join2(root, TEMPLATE_MOTION_PATH))) : void 0;
|
|
649
|
+
save(join2(root, `agent/reviews/${name}.json`), { version: 4, sourceHash: sourceHash(root), distHash: fingerprint(root, ["dist"]), scope: name, concurrency, viewports, motionModes, staticMotionState: "complete-after-teardown", motionScenarioHash: MOTION_SCENARIO_HASH, temporalMotion, routeJourneys, checks, routeChecks, consentChecks, ...templateMotion ? { templateMotion } : {}, ...compositionMode ? { compositionTargets } : {} });
|
|
650
|
+
if (!representative && performancePolicy(root).enabled) {
|
|
651
|
+
const performance = await measurePerformance(root, `http://127.0.0.1:${address.port}`, { log: console.log });
|
|
652
|
+
if (performance.failures.length) {
|
|
653
|
+
console.error(performance.failures.join("\n"));
|
|
654
|
+
process.exitCode = 1;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
console.log(`${name}: ${checks.length} route/viewport checks`);
|
|
658
|
+
if (checks.some((c) => c.failures.length) || routeJourneys.some((j) => j.failures.length) || templateMotion?.captures.some((c) => c.failures.length)) process.exitCode = 1;
|
|
659
|
+
} finally {
|
|
660
|
+
await browser?.close();
|
|
661
|
+
await new Promise((r) => server.close(() => r()));
|
|
662
|
+
}
|