@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
|
Binary file
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
// src/forms/config.ts
|
|
2
|
+
var safeId = (s) => typeof s === "string" && /^[a-zA-Z0-9_-]{1,80}$/.test(s);
|
|
3
|
+
var safeEmail = (s) => {
|
|
4
|
+
if (typeof s !== "string" || s.length > 254 || !/^[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,63}$/.test(s)) return false;
|
|
5
|
+
const [local, domain] = s.split("@");
|
|
6
|
+
return !!local && local.length <= 64 && !local.startsWith(".") && !local.endsWith(".") && !local.includes("..") && !!domain && domain.split(".").every((label) => label.length <= 63 && /^[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/.test(label));
|
|
7
|
+
};
|
|
8
|
+
function approvedOrigin(value) {
|
|
9
|
+
const u = new URL(value);
|
|
10
|
+
if (u.origin !== value || u.hostname.includes("*") || u.username || u.password || u.protocol !== "https:" && !(u.protocol === "http:" && ["localhost", "127.0.0.1", "[::1]"].includes(u.hostname))) throw new Error("Expected exact HTTPS origin (HTTP only on loopback)");
|
|
11
|
+
return u.origin;
|
|
12
|
+
}
|
|
13
|
+
function validateFormConfig(value) {
|
|
14
|
+
const c = value;
|
|
15
|
+
if (!c || !safeId(c.id) || !["disabled", "test", "live"].includes(c.mode)) throw new Error("Invalid form ID or mode");
|
|
16
|
+
if (!Array.isArray(c.origins) || !c.origins.length || c.origins.length > 10 || new Set(c.origins).size !== c.origins.length) throw new Error("One to ten unique exact origins required");
|
|
17
|
+
c.origins.forEach(approvedOrigin);
|
|
18
|
+
if (c.mode === "live" && c.origins.some((o) => new URL(o).protocol !== "https:" || ["localhost", "127.0.0.1", "[::1]"].includes(new URL(o).hostname))) throw new Error("Live forms cannot approve loopback origins");
|
|
19
|
+
if (!Array.isArray(c.fields) || !c.fields.length || c.fields.length > 32 || new Set(c.fields.map((f) => f.name)).size !== c.fields.length) throw new Error("One to 32 unique fields required");
|
|
20
|
+
const reserved = /* @__PURE__ */ new Set(["form_id", "tenant_id", "idempotency_key", "page_path", "vid", "company_url", "cf-turnstile-response", "recipients", "to", "from", "sender"]);
|
|
21
|
+
const maps = /* @__PURE__ */ new Set();
|
|
22
|
+
for (const f of c.fields) {
|
|
23
|
+
if (!safeId(f.name) || reserved.has(f.name) || !["text", "email", "tel", "textarea", "select", "checkbox", "radio"].includes(f.type) || !Number.isInteger(f.maxLength) || f.maxLength < 1 || f.maxLength > 8e3 || f.minLength !== void 0 && (!Number.isInteger(f.minLength) || f.minLength < 0 || f.minLength > f.maxLength) || f.label !== void 0 && (typeof f.label !== "string" || f.label.length > 200) || f.required !== void 0 && typeof f.required !== "boolean") throw new Error("Invalid field schema");
|
|
24
|
+
if (f.map !== void 0) {
|
|
25
|
+
if (!["name", "email", "phone", "message"].includes(f.map) || maps.has(f.map)) throw new Error("Invalid or duplicate mapping");
|
|
26
|
+
maps.add(f.map);
|
|
27
|
+
}
|
|
28
|
+
if ((["select", "checkbox", "radio"].includes(f.type) || f.options !== void 0) && (!Array.isArray(f.options) || !f.options.length || f.options.length > 40 || f.options.some((s) => typeof s !== "string" || !s || s.length > f.maxLength) || new Set(f.options).size !== f.options.length)) throw new Error("Choice fields need bounded options");
|
|
29
|
+
}
|
|
30
|
+
if (!c.fields.some((f) => f.map === "email" && f.type === "email" && f.required)) throw new Error("A required visitor email mapping is needed");
|
|
31
|
+
if (!Array.isArray(c.recipients) || c.recipients.length > 5 || c.recipients.some((r) => !safeEmail(r)) || new Set(c.recipients).size !== c.recipients.length) throw new Error("Invalid notification recipients");
|
|
32
|
+
if (!c.turnstile || typeof c.turnstile.sitekey !== "string" || !/^[a-zA-Z0-9_-]{1,100}$/.test(c.turnstile.sitekey) || !safeId(c.turnstile.secretRef) || !safeId(c.turnstile.action) || c.turnstile.action.length > 32) throw new Error("Invalid Turnstile configuration");
|
|
33
|
+
return c;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// src/worker/http.ts
|
|
37
|
+
function cookies(request) {
|
|
38
|
+
const out = {};
|
|
39
|
+
const raw = request.headers.get("cookie") || "";
|
|
40
|
+
for (const part of raw.split(";")) {
|
|
41
|
+
const trimmed = part.trim();
|
|
42
|
+
if (!trimmed) continue;
|
|
43
|
+
const eq = trimmed.indexOf("=");
|
|
44
|
+
if (eq === -1) continue;
|
|
45
|
+
try {
|
|
46
|
+
out[trimmed.slice(0, eq)] = decodeURIComponent(trimmed.slice(eq + 1));
|
|
47
|
+
} catch {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/worker/env.ts
|
|
54
|
+
function isLocalRequest(request) {
|
|
55
|
+
const host = new URL(request.url).hostname.toLowerCase();
|
|
56
|
+
return host === "localhost" || host.endsWith(".localhost") || host === "127.0.0.1" || host === "[::1]";
|
|
57
|
+
}
|
|
58
|
+
function secret(env) {
|
|
59
|
+
return env.SESSION_SECRET || "dev-insecure-session-secret";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// src/worker/auth.ts
|
|
63
|
+
var SESSION_COOKIE = "__Host-vitris_sid";
|
|
64
|
+
function sessionCookieName(request) {
|
|
65
|
+
return request && isLocalRequest(request) ? "vitris_sid" : SESSION_COOKIE;
|
|
66
|
+
}
|
|
67
|
+
async function hmacHex(key, value) {
|
|
68
|
+
const cryptoKey = await crypto.subtle.importKey(
|
|
69
|
+
"raw",
|
|
70
|
+
new TextEncoder().encode(key),
|
|
71
|
+
{ name: "HMAC", hash: "SHA-256" },
|
|
72
|
+
false,
|
|
73
|
+
["sign"]
|
|
74
|
+
);
|
|
75
|
+
const sig = await crypto.subtle.sign("HMAC", cryptoKey, new TextEncoder().encode(value));
|
|
76
|
+
return [...new Uint8Array(sig)].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
77
|
+
}
|
|
78
|
+
async function readSession(env, request) {
|
|
79
|
+
if (!isLocalRequest(request) && new URL(request.url).protocol !== "https:") return null;
|
|
80
|
+
const sid = cookies(request)[sessionCookieName(request)];
|
|
81
|
+
if (!sid || !/^[a-f0-9-]{36}$/.test(sid)) return null;
|
|
82
|
+
const row = await env.DB.prepare("SELECT session_json FROM auth_sessions WHERE id_hash=? AND expires_at>?").bind(await hmacHex(secret(env), `session:${sid}`), Math.floor(Date.now() / 1e3)).first();
|
|
83
|
+
return row ? JSON.parse(row.session_json) : null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// src/html.ts
|
|
87
|
+
function escapeHtml(value) {
|
|
88
|
+
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// src/analytics.ts
|
|
92
|
+
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
93
|
+
function isUuid(value) {
|
|
94
|
+
return UUID_RE.test(value);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// src/worker/forms.ts
|
|
98
|
+
var MAX_BODY = 32768;
|
|
99
|
+
function sandboxMailReadiness(env) {
|
|
100
|
+
if (!env.FORMS_TEST_RECIPIENT) return [];
|
|
101
|
+
return [
|
|
102
|
+
...env.FORMS_SANDBOX !== "1" ? ["Operator test mail requires sandbox backend"] : [],
|
|
103
|
+
...!safeEmail(env.FORMS_TEST_RECIPIENT) ? ["Valid operator test recipient"] : [],
|
|
104
|
+
...!env.FORMS_TEST_EMAIL ? ["FORMS_TEST_EMAIL restricted binding"] : [],
|
|
105
|
+
...!safeEmail(env.FORMS_FROM) ? ["Authenticated FORMS_FROM sender"] : [],
|
|
106
|
+
...env.FORMS_SENDER_READY !== "1" ? ["Verified sender domain / account sending access"] : []
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
async function digest(s) {
|
|
110
|
+
return [...new Uint8Array(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(s)))].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
111
|
+
}
|
|
112
|
+
function formReadiness(env, c) {
|
|
113
|
+
const missing = [];
|
|
114
|
+
let secrets = {};
|
|
115
|
+
try {
|
|
116
|
+
const parsed = JSON.parse(env.FORMS_TURNSTILE_SECRETS || "{}");
|
|
117
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) secrets = parsed;
|
|
118
|
+
} catch {
|
|
119
|
+
}
|
|
120
|
+
const secret2 = typeof secrets[c.turnstile.secretRef] === "string" ? secrets[c.turnstile.secretRef] : "";
|
|
121
|
+
if (!secret2) missing.push("Turnstile secret");
|
|
122
|
+
if (c.mode === "live") {
|
|
123
|
+
if (c.origins.some((origin) => new URL(origin).protocol !== "https:" || ["localhost", "127.0.0.1", "[::1]"].includes(new URL(origin).hostname))) missing.push("Approved HTTPS production origins");
|
|
124
|
+
if (env.FORMS_SANDBOX === "1") missing.push("Sandbox backend cannot activate live delivery");
|
|
125
|
+
if (c.turnstile.sitekey.startsWith("1x") || c.turnstile.sitekey.startsWith("2x") || c.turnstile.sitekey.startsWith("3x") || secret2.startsWith("1x") || secret2.startsWith("2x")) missing.push("Production Turnstile keys");
|
|
126
|
+
if (!c.recipients.length) missing.push("Notification recipients");
|
|
127
|
+
if (!env.FORMS_EMAIL) missing.push("FORMS_EMAIL binding");
|
|
128
|
+
if (!safeEmail(env.FORMS_FROM)) missing.push("Authenticated FORMS_FROM sender");
|
|
129
|
+
if (env.FORMS_SENDER_READY !== "1") missing.push("Verified sender domain / account sending access");
|
|
130
|
+
}
|
|
131
|
+
if (!env.FORMS_ABUSE_SECRET || env.FORMS_ABUSE_SECRET.length < 32) missing.push("FORMS_ABUSE_SECRET (32+ characters)");
|
|
132
|
+
return missing;
|
|
133
|
+
}
|
|
134
|
+
async function boundedBody(request) {
|
|
135
|
+
if (Number(request.headers.get("content-length") || 0) > MAX_BODY) throw new Error("too_large");
|
|
136
|
+
const reader = request.body?.getReader();
|
|
137
|
+
if (!reader) return "";
|
|
138
|
+
const chunks = [];
|
|
139
|
+
let size = 0;
|
|
140
|
+
while (true) {
|
|
141
|
+
const { value, done } = await reader.read();
|
|
142
|
+
if (done) break;
|
|
143
|
+
size += value.length;
|
|
144
|
+
if (size > MAX_BODY) {
|
|
145
|
+
await reader.cancel();
|
|
146
|
+
throw new Error("too_large");
|
|
147
|
+
}
|
|
148
|
+
chunks.push(value);
|
|
149
|
+
}
|
|
150
|
+
const bytes = new Uint8Array(size);
|
|
151
|
+
let offset = 0;
|
|
152
|
+
for (const c of chunks) {
|
|
153
|
+
bytes.set(c, offset);
|
|
154
|
+
offset += c.length;
|
|
155
|
+
}
|
|
156
|
+
return new TextDecoder("utf-8", { fatal: true, ignoreBOM: false }).decode(bytes);
|
|
157
|
+
}
|
|
158
|
+
async function formRateLimit(env, tenant, source, now = Date.now()) {
|
|
159
|
+
const window = Math.floor(now / 6e5), expires = Math.floor(now / 1e3) + 1200;
|
|
160
|
+
const counters = [[`tenant:${tenant}:${window}`, 100], [`source:${tenant}:${source}:${window}`, 10]];
|
|
161
|
+
const rows = await env.DB.batch(counters.map(([key, limit]) => env.DB.prepare(`INSERT INTO form_rate_limits(key,n,expires) VALUES(?,1,?) ON CONFLICT(key) DO UPDATE SET n=n+1 WHERE n < ? RETURNING n`).bind(key, expires, limit)));
|
|
162
|
+
return rows.every((r) => r.results.length === 1);
|
|
163
|
+
}
|
|
164
|
+
async function handleFormSubmission(env, request) {
|
|
165
|
+
const url = new URL(request.url);
|
|
166
|
+
let origin = "";
|
|
167
|
+
try {
|
|
168
|
+
origin = approvedOrigin(request.headers.get("origin") || "");
|
|
169
|
+
} catch {
|
|
170
|
+
}
|
|
171
|
+
const headers = { "content-type": "application/json; charset=utf-8", "cache-control": "no-store", vary: "Origin", "x-content-type-options": "nosniff" };
|
|
172
|
+
const respond = (error, status, extra = {}) => {
|
|
173
|
+
if (request.method === "POST" && !request.headers.get("accept")?.includes("application/json")) {
|
|
174
|
+
const message = error ? "Your message could not be accepted. This form requires JavaScript and a valid security check. Return to the website and try again, or use its listed contact details." : extra.mode === "test" ? "Test message accepted. No customer email will be sent." : "Message accepted. Your inquiry has been saved.";
|
|
175
|
+
return new Response(`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Form submission</title></head><body><main><h1>Form submission</h1><p role="${error ? "alert" : "status"}">${escapeHtml(message)}</p></main></body></html>`, { status, headers: { ...headers, "content-type": "text/html; charset=utf-8" } });
|
|
176
|
+
}
|
|
177
|
+
return new Response(JSON.stringify({ ok: !error, ...error ? { error } : {}, ...extra }), { status, headers });
|
|
178
|
+
};
|
|
179
|
+
let body;
|
|
180
|
+
if (request.method === "OPTIONS") body = new URLSearchParams({ form_id: url.searchParams.get("form_id") || "" });
|
|
181
|
+
else if (request.method !== "POST") return respond("method_not_allowed", 405);
|
|
182
|
+
else {
|
|
183
|
+
const type = request.headers.get("content-type")?.split(";")[0]?.trim();
|
|
184
|
+
if (type !== "application/x-www-form-urlencoded") return respond("unsupported_content_type", 415);
|
|
185
|
+
try {
|
|
186
|
+
body = new URLSearchParams(await boundedBody(request));
|
|
187
|
+
} catch (e) {
|
|
188
|
+
return respond(e instanceof Error && e.message === "too_large" ? "too_large" : "invalid_body", 413);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const id = body.get("form_id");
|
|
192
|
+
if (request.method === "POST" && url.searchParams.has("form_id") && url.searchParams.get("form_id") !== id) return respond("form_mismatch", 403);
|
|
193
|
+
if (!safeId(id)) return respond("form_configuration_required", 403);
|
|
194
|
+
const row = await env.DB.prepare("SELECT * FROM contact_forms WHERE id=?").bind(id).first();
|
|
195
|
+
if (!row) return respond("unknown_form", 403);
|
|
196
|
+
let c;
|
|
197
|
+
try {
|
|
198
|
+
c = validateFormConfig(JSON.parse(row.config_json));
|
|
199
|
+
} catch {
|
|
200
|
+
return respond("configuration_unavailable", 503);
|
|
201
|
+
}
|
|
202
|
+
if (c.id !== row.id || body.has("tenant_id") && body.get("tenant_id") !== row.tenant_id) return respond("tenant_mismatch", 403);
|
|
203
|
+
if (!origin || !c.origins.includes(origin)) return respond("invalid_origin", 403);
|
|
204
|
+
const owner = await env.DB.prepare("SELECT tenant_id FROM form_origins WHERE origin=?").bind(origin).first();
|
|
205
|
+
if (owner?.tenant_id !== row.tenant_id) return respond("tenant_mismatch", 403);
|
|
206
|
+
const hostnameOwner = await env.DB.prepare("SELECT tenant_id FROM hostnames WHERE hostname=?").bind(new URL(origin).hostname).first();
|
|
207
|
+
if (hostnameOwner && hostnameOwner.tenant_id !== row.tenant_id) return respond("tenant_mismatch", 403);
|
|
208
|
+
headers["access-control-allow-origin"] = origin;
|
|
209
|
+
headers["access-control-allow-methods"] = "POST, OPTIONS";
|
|
210
|
+
headers["access-control-allow-headers"] = "Content-Type, Accept";
|
|
211
|
+
if (c.mode === "disabled") return respond("form_disabled", 403);
|
|
212
|
+
if (request.method === "OPTIONS") {
|
|
213
|
+
if (request.headers.get("access-control-request-method") !== "POST" || (request.headers.get("access-control-request-headers") || "").split(",").some((h) => h.trim() && !["content-type", "accept"].includes(h.trim().toLowerCase()))) return respond("invalid_preflight", 403);
|
|
214
|
+
return new Response(null, { status: 204, headers });
|
|
215
|
+
}
|
|
216
|
+
const missing = formReadiness(env, c);
|
|
217
|
+
if (missing.length) return respond("configuration_unavailable", 503);
|
|
218
|
+
const meta = /* @__PURE__ */ new Set(["form_id", "tenant_id", "idempotency_key", "page_path", "vid", "company_url", "cf-turnstile-response"]);
|
|
219
|
+
for (const [key2] of body) if (!meta.has(key2) && !c.fields.some((f) => f.name === key2)) return respond("unknown_field", 400);
|
|
220
|
+
for (const key2 of meta) if (body.getAll(key2).length > 1) return respond("duplicate_field", 400);
|
|
221
|
+
if (body.get("company_url")?.trim()) return respond("invalid_submission", 400);
|
|
222
|
+
const key = body.get("idempotency_key") || "";
|
|
223
|
+
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(key)) return respond("invalid_idempotency_key", 400);
|
|
224
|
+
const path = body.get("page_path") || "/";
|
|
225
|
+
const vid = body.get("vid") || "";
|
|
226
|
+
if (vid && !isUuid(vid)) return respond("invalid_visitor_id", 400);
|
|
227
|
+
if (!path.startsWith("/") || path.length > 200 || /[\r\n\x00]/.test(path)) return respond("invalid_path", 400);
|
|
228
|
+
const fields = /* @__PURE__ */ Object.create(null), mapped = { name: "", email: "", phone: "", message: "" };
|
|
229
|
+
for (const f of c.fields) {
|
|
230
|
+
const values = body.getAll(f.name).map((v) => ["select", "checkbox", "radio"].includes(f.type) ? v : v.trim());
|
|
231
|
+
if (f.type !== "checkbox" && values.length > 1 || values.length > 40 || new Set(values).size !== values.length || f.required && (!values.length || values.every((v) => !v)) || values.some((v) => v.length > f.maxLength || v && v.length < (f.minLength || 0) || /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/.test(v) || f.type === "email" && v && !safeEmail(v) || f.options && v && !f.options.includes(v))) return respond("validation_error", 400, { field: f.name });
|
|
232
|
+
fields[f.name] = values;
|
|
233
|
+
if (f.map) mapped[f.map] = values.join(", ");
|
|
234
|
+
}
|
|
235
|
+
if (!safeEmail(mapped.email)) return respond("validation_error", 400, { field: "email" });
|
|
236
|
+
const fingerprint = await digest(JSON.stringify({ origin, path, fields: Object.fromEntries(Object.entries(fields).sort(([a], [b]) => a.localeCompare(b))) }));
|
|
237
|
+
const receipt = () => env.DB.prepare("SELECT s.id,s.fingerprint,s.mode,o.status AS notification FROM form_submissions s LEFT JOIN form_outbox o ON o.id=s.id AND o.tenant_id=s.tenant_id WHERE s.tenant_id=? AND s.form_id=? AND s.idempotency_key=?").bind(row.tenant_id, id, key).first();
|
|
238
|
+
const acknowledge = (r) => r.fingerprint !== fingerprint ? respond("idempotency_conflict", 409) : respond(null, 200, { leadId: r.id, mode: r.mode, notification: r.notification || "unknown" });
|
|
239
|
+
const existing = await receipt();
|
|
240
|
+
if (existing) return acknowledge(existing);
|
|
241
|
+
const ip = request.headers.get("cf-connecting-ip") || (isLocalRequest(request) ? "local" : "unknown");
|
|
242
|
+
const source = await hmacHex(env.FORMS_ABUSE_SECRET, ip);
|
|
243
|
+
if (!await formRateLimit(env, row.tenant_id, source)) {
|
|
244
|
+
headers["retry-after"] = "600";
|
|
245
|
+
return respond("rate_limited", 429);
|
|
246
|
+
}
|
|
247
|
+
const token = body.get("cf-turnstile-response") || "";
|
|
248
|
+
if (!token || token.length > 2048) return respond("challenge_required", 400);
|
|
249
|
+
let challenge;
|
|
250
|
+
try {
|
|
251
|
+
const hash = await digest(`${row.tenant_id}|${id}|${key}|${token}`);
|
|
252
|
+
const verificationKey = `${hash.slice(0, 8)}-${hash.slice(8, 12)}-4${hash.slice(13, 16)}-a${hash.slice(17, 20)}-${hash.slice(20, 32)}`;
|
|
253
|
+
const r = await fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", { method: "POST", signal: AbortSignal.timeout(1e4), body: new URLSearchParams({ secret: JSON.parse(env.FORMS_TURNSTILE_SECRETS)[c.turnstile.secretRef], response: token, remoteip: ip === "local" || ip === "unknown" ? "" : ip, idempotency_key: verificationKey }) });
|
|
254
|
+
if (!r.ok) return respond("challenge_unavailable", 503);
|
|
255
|
+
challenge = await r.json();
|
|
256
|
+
} catch {
|
|
257
|
+
return respond("challenge_unavailable", 503);
|
|
258
|
+
}
|
|
259
|
+
const raced = await receipt();
|
|
260
|
+
if (raced) return acknowledge(raced);
|
|
261
|
+
if (!challenge.success || challenge.hostname !== new URL(origin).hostname || challenge.action !== c.turnstile.action) return respond("challenge_invalid", 400);
|
|
262
|
+
const leadId = crypto.randomUUID();
|
|
263
|
+
try {
|
|
264
|
+
await env.DB.prepare(`INSERT INTO form_submissions(id,tenant_id,form_id,idempotency_key,fingerprint,challenge_hash,mode,fields_json,schema_json,name,email,phone,message,page_path,recipients_json,vid) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`).bind(leadId, row.tenant_id, id, key, fingerprint, await digest(token), c.mode, JSON.stringify(fields), JSON.stringify(c.fields), mapped.name, mapped.email, mapped.phone, mapped.message, path, JSON.stringify(c.recipients), vid || null).run();
|
|
265
|
+
} catch {
|
|
266
|
+
const duplicate = await receipt();
|
|
267
|
+
if (duplicate) return acknowledge(duplicate);
|
|
268
|
+
const replay = await env.DB.prepare("SELECT id FROM form_submissions WHERE challenge_hash=?").bind(await digest(token)).first();
|
|
269
|
+
return respond(replay ? "challenge_replayed" : "acceptance_unavailable", replay ? 400 : 503);
|
|
270
|
+
}
|
|
271
|
+
return respond(null, 201, { leadId, mode: c.mode, notification: c.mode === "test" ? env.FORMS_TEST_RECIPIENT ? "test_mail_pending" : "test_capture_pending" : "pending" });
|
|
272
|
+
}
|
|
273
|
+
async function formAdminAuthorized(env, request, tenantId) {
|
|
274
|
+
const bearer = request.headers.get("authorization")?.replace(/^Bearer /, "");
|
|
275
|
+
if (bearer) {
|
|
276
|
+
try {
|
|
277
|
+
const expected = JSON.parse(env.FORMS_SETUP_TOKENS || "{}")[tenantId];
|
|
278
|
+
if (typeof expected === "string" && expected.length >= 32 && await digest(bearer) === await digest(expected)) return true;
|
|
279
|
+
} catch {
|
|
280
|
+
}
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
const session = await readSession(env, request);
|
|
284
|
+
if (session?.tenantId !== tenantId || session.role !== "owner") return false;
|
|
285
|
+
return request.method === "GET" || request.headers.get("origin") === new URL(request.url).origin;
|
|
286
|
+
}
|
|
287
|
+
async function configureForms(env, tenantId, forms, tenant) {
|
|
288
|
+
if (!forms.length || forms.length > 20 || new Set(forms.map((f) => f.id)).size !== forms.length) throw new Error("One to 20 unique forms required");
|
|
289
|
+
const statements = [];
|
|
290
|
+
if (!await env.DB.prepare("SELECT id FROM tenants WHERE id=?").bind(tenantId).first()) {
|
|
291
|
+
if (!tenant || !safeId(tenant.slug) || typeof tenant.name !== "string" || !tenant.name || tenant.name.length > 200) throw new Error("Unknown tenant");
|
|
292
|
+
statements.push(env.DB.prepare("INSERT INTO tenants(id,slug,name) VALUES(?,?,?) ON CONFLICT(id) DO NOTHING").bind(tenantId, tenant.slug, tenant.name));
|
|
293
|
+
}
|
|
294
|
+
for (const value of forms) {
|
|
295
|
+
const c = validateFormConfig(value);
|
|
296
|
+
const previous = await env.DB.prepare("SELECT tenant_id FROM contact_forms WHERE id=?").bind(c.id).first();
|
|
297
|
+
if (previous && previous.tenant_id !== tenantId) throw new Error("Form belongs to another tenant");
|
|
298
|
+
if (c.mode === "live" && formReadiness(env, c).length) throw new Error("Live readiness: " + formReadiness(env, c).join(", "));
|
|
299
|
+
for (const origin of c.origins) {
|
|
300
|
+
const host = await env.DB.prepare("SELECT tenant_id FROM hostnames WHERE hostname=?").bind(new URL(origin).hostname).first();
|
|
301
|
+
if (host && host.tenant_id !== tenantId) throw new Error("Hostname belongs to another tenant");
|
|
302
|
+
statements.push(env.DB.prepare("INSERT INTO form_origins(origin,hostname,tenant_id) VALUES(?,?,?) ON CONFLICT(origin) DO UPDATE SET tenant_id=excluded.tenant_id RETURNING tenant_id").bind(origin, new URL(origin).hostname, tenantId));
|
|
303
|
+
const owner = await env.DB.prepare("SELECT tenant_id FROM form_origins WHERE origin=?").bind(origin).first();
|
|
304
|
+
if (owner && owner.tenant_id !== tenantId) throw new Error("Origin belongs to another tenant");
|
|
305
|
+
}
|
|
306
|
+
statements.push(env.DB.prepare(`INSERT INTO contact_forms(id,tenant_id,config_json) VALUES(?,?,?) ON CONFLICT(id) DO UPDATE SET tenant_id=excluded.tenant_id,config_json=excluded.config_json,updated_at=datetime('now')`).bind(c.id, tenantId, JSON.stringify(c)));
|
|
307
|
+
}
|
|
308
|
+
await env.DB.batch(statements);
|
|
309
|
+
}
|
|
310
|
+
async function retryNotification(env, tenantId, id) {
|
|
311
|
+
const r = await env.DB.prepare(`UPDATE form_outbox SET status='pending',attempts=0,next_attempt=0,last_error=NULL WHERE id=? AND tenant_id=? AND status='failed' RETURNING id`).bind(id, tenantId).all();
|
|
312
|
+
return !!r.results.length;
|
|
313
|
+
}
|
|
314
|
+
async function handleFormsAdmin(env, request) {
|
|
315
|
+
const match = new URL(request.url).pathname.match(/^\/api\/forms\/([a-zA-Z0-9_-]+)(?:\/(retry))?$/);
|
|
316
|
+
const reply = (body, status = 200) => new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json", "cache-control": "no-store" } });
|
|
317
|
+
if (!match || !await formAdminAuthorized(env, request, match[1])) return reply({ error: "unauthorized" }, 401);
|
|
318
|
+
const tenantId = match[1];
|
|
319
|
+
if (request.method === "GET" && !match[2]) {
|
|
320
|
+
const rows = await env.DB.prepare("SELECT * FROM contact_forms WHERE tenant_id=?").bind(tenantId).all();
|
|
321
|
+
const forms = rows.results.map((row) => {
|
|
322
|
+
const config = validateFormConfig(JSON.parse(row.config_json));
|
|
323
|
+
const missing = formReadiness(env, config), liveMissing = formReadiness(env, { ...config, mode: "live" });
|
|
324
|
+
return { config, missing, ready: config.mode !== "disabled" && !missing.length, liveMissing, liveReady: !liveMissing.length };
|
|
325
|
+
});
|
|
326
|
+
const notifications = await env.DB.prepare("SELECT id,status,attempts,last_error,provider_id,accepted_at FROM form_outbox WHERE tenant_id=? ORDER BY rowid DESC LIMIT 100").bind(tenantId).all();
|
|
327
|
+
return reply({ forms, notifications: notifications.results, sandboxMail: { enabled: !!env.FORMS_TEST_RECIPIENT, recipient: env.FORMS_TEST_RECIPIENT || null, missing: sandboxMailReadiness(env) } });
|
|
328
|
+
}
|
|
329
|
+
if (request.method !== "POST" || !request.headers.get("content-type")?.startsWith("application/json")) return reply({ error: "invalid_request" }, 400);
|
|
330
|
+
try {
|
|
331
|
+
const input = JSON.parse(await boundedBody(request));
|
|
332
|
+
if (match[2]) return reply({ ok: await retryNotification(env, tenantId, input.id) });
|
|
333
|
+
await configureForms(env, tenantId, input.forms, input.tenant);
|
|
334
|
+
return reply({ ok: true });
|
|
335
|
+
} catch {
|
|
336
|
+
return reply({ error: "invalid_configuration_or_ownership" }, 400);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// src/worker/form-outbox.ts
|
|
341
|
+
function cloudflareEmailProvider(env, test = false) {
|
|
342
|
+
return { send: async (message, _idempotencyKey) => {
|
|
343
|
+
const binding = test ? env.FORMS_TEST_EMAIL : env.FORMS_EMAIL;
|
|
344
|
+
if (!binding) throw Object.assign(new Error("Missing binding"), { code: "MAIL_CONFIGURATION" });
|
|
345
|
+
return binding.send(message);
|
|
346
|
+
} };
|
|
347
|
+
}
|
|
348
|
+
var terminalCodes = /* @__PURE__ */ new Set(["MAIL_CONFIGURATION", "E_VALIDATION_ERROR", "E_SENDER_NOT_VERIFIED", "E_RECIPIENT_NOT_ALLOWED", "E_RECIPIENT_SUPPRESSED", "E_SENDER_DOMAIN_NOT_AVAILABLE", "E_HEADER_NOT_ALLOWED", "E_HEADER_USE_API_FIELD"]);
|
|
349
|
+
async function processFormOutbox(env, provider, now = Math.floor(Date.now() / 1e3)) {
|
|
350
|
+
const started = Date.now(), clock = () => now + Math.floor((Date.now() - started) / 1e3);
|
|
351
|
+
const due = await env.DB.prepare(`SELECT o.id FROM form_outbox o JOIN form_submissions s ON s.id=o.id JOIN contact_forms f ON f.id=s.form_id AND f.tenant_id=s.tenant_id WHERE (o.status='pending' OR (o.status='processing' AND o.lease_until<?)) AND o.next_attempt<=? AND json_extract(f.config_json,'$.mode')=s.mode ORDER BY o.rowid LIMIT 20`).bind(now, now).all();
|
|
352
|
+
let processed = 0;
|
|
353
|
+
for (const candidate of due.results) {
|
|
354
|
+
const claim = crypto.randomUUID();
|
|
355
|
+
const claimTime = clock();
|
|
356
|
+
const claimed = await env.DB.prepare(`UPDATE form_outbox SET status='processing',claim=?,lease_until=?,attempts=attempts+1 WHERE id=? AND attempts<8 AND next_attempt<=? AND (status='pending' OR (status='processing' AND lease_until<?)) RETURNING id`).bind(claim, claimTime + 300, candidate.id, claimTime, claimTime).all();
|
|
357
|
+
if (!claimed.results.length) continue;
|
|
358
|
+
const job = await env.DB.prepare(`SELECT o.id,o.tenant_id,o.attempts,s.mode,s.form_id,s.fields_json,s.schema_json,s.email,s.recipients_json,s.page_path,f.config_json FROM form_outbox o JOIN form_submissions s ON s.id=o.id JOIN contact_forms f ON f.id=s.form_id AND f.tenant_id=s.tenant_id WHERE o.id=? AND o.claim=?`).bind(candidate.id, claim).first();
|
|
359
|
+
if (!job) continue;
|
|
360
|
+
try {
|
|
361
|
+
const c = validateFormConfig(JSON.parse(job.config_json));
|
|
362
|
+
if (c.mode !== job.mode) throw Object.assign(new Error("Paused configuration"), { code: "MAIL_CONFIGURATION" });
|
|
363
|
+
const values = JSON.parse(job.fields_json);
|
|
364
|
+
const schema = JSON.parse(job.schema_json);
|
|
365
|
+
const message = { from: env.FORMS_FROM || "test@vitris.invalid", to: JSON.parse(job.recipients_json), replyTo: job.email, subject: `Website inquiry: ${job.form_id}`, text: `Form: ${job.form_id}
|
|
366
|
+
Page: ${job.page_path}
|
|
367
|
+
|
|
368
|
+
` + schema.map((f) => `${f.label || f.name}: ${(values[f.name] || []).join(", ")}`).join("\n") };
|
|
369
|
+
const testMail = job.mode === "test" && !!env.FORMS_TEST_RECIPIENT;
|
|
370
|
+
if (job.mode === "test" && !testMail) {
|
|
371
|
+
await env.DB.prepare(`UPDATE form_outbox SET status='captured',test_output=?,claim=NULL,lease_until=0,last_error=NULL WHERE id=? AND claim=?`).bind(JSON.stringify(message), job.id, claim).run();
|
|
372
|
+
} else {
|
|
373
|
+
if ((testMail ? sandboxMailReadiness(env) : formReadiness(env, c)).length) throw Object.assign(new Error("Not ready"), { code: "MAIL_CONFIGURATION" });
|
|
374
|
+
if (testMail) {
|
|
375
|
+
message.to = [env.FORMS_TEST_RECIPIENT];
|
|
376
|
+
message.subject = `[VITRIS TEST] ${message.subject}`;
|
|
377
|
+
message.text = `Isolated test submission. Customer notifications are disabled.
|
|
378
|
+
|
|
379
|
+
${message.text}`;
|
|
380
|
+
await env.DB.prepare("UPDATE form_outbox SET test_output=? WHERE id=? AND claim=?").bind(JSON.stringify(message), job.id, claim).run();
|
|
381
|
+
}
|
|
382
|
+
let timeout;
|
|
383
|
+
let result;
|
|
384
|
+
try {
|
|
385
|
+
result = await Promise.race([(provider || cloudflareEmailProvider(env, testMail)).send(message, job.id), new Promise((_, reject) => {
|
|
386
|
+
timeout = setTimeout(() => reject(Object.assign(new Error("Ambiguous provider timeout"), { code: "PROVIDER_TIMEOUT" })), 3e4);
|
|
387
|
+
})]);
|
|
388
|
+
} finally {
|
|
389
|
+
if (timeout) clearTimeout(timeout);
|
|
390
|
+
}
|
|
391
|
+
await env.DB.prepare(`UPDATE form_outbox SET status='accepted',provider_id=?,accepted_at=datetime('now'),claim=NULL,lease_until=0,last_error=NULL WHERE id=? AND claim=?`).bind(result.messageId, job.id, claim).run();
|
|
392
|
+
}
|
|
393
|
+
} catch (error) {
|
|
394
|
+
const raw = error?.code;
|
|
395
|
+
const code = raw && /^[A-Z_]{1,64}$/.test(raw) ? raw : "PROVIDER_TEMPORARY_FAILURE";
|
|
396
|
+
const terminal = terminalCodes.has(code) || job.attempts >= 8;
|
|
397
|
+
await env.DB.prepare(`UPDATE form_outbox SET status=?,next_attempt=?,last_error=?,claim=NULL,lease_until=0 WHERE id=? AND claim=?`).bind(terminal ? "failed" : "pending", clock() + Math.min(21600, 60 * 2 ** (job.attempts - 1)), code, job.id, claim).run();
|
|
398
|
+
}
|
|
399
|
+
processed++;
|
|
400
|
+
}
|
|
401
|
+
await env.DB.prepare(`UPDATE form_outbox SET status='failed',last_error='CLAIM_EXHAUSTED',claim=NULL WHERE status='processing' AND lease_until<? AND attempts>=8`).bind(clock()).run();
|
|
402
|
+
await env.DB.batch([
|
|
403
|
+
env.DB.prepare("DELETE FROM form_rate_limits WHERE expires<?").bind(clock()),
|
|
404
|
+
env.DB.prepare(`DELETE FROM form_submissions WHERE mode='test' AND created_at<datetime('now','-7 days')`)
|
|
405
|
+
]);
|
|
406
|
+
return processed;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// src/worker/forms-sandbox.ts
|
|
410
|
+
var forms_sandbox_default = {
|
|
411
|
+
async fetch(request, env) {
|
|
412
|
+
if (env.FORMS_SANDBOX !== "1") return new Response("Sandbox configuration required", { status: 503 });
|
|
413
|
+
const path = new URL(request.url).pathname;
|
|
414
|
+
try {
|
|
415
|
+
if (path === "/api/leads") return await handleFormSubmission(env, request);
|
|
416
|
+
if (path.startsWith("/api/forms/") && request.headers.get("authorization")?.startsWith("Bearer ")) return await handleFormsAdmin(env, request);
|
|
417
|
+
if (path === "/health") return Response.json({ service: "vitris-forms", sandbox: true, customerNotifications: false });
|
|
418
|
+
return new Response("Not found", { status: 404 });
|
|
419
|
+
} catch {
|
|
420
|
+
return Response.json({ ok: false, error: "service_unavailable" }, { status: 503 });
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
async scheduled(_event, env) {
|
|
424
|
+
if (env.FORMS_SANDBOX === "1") await processFormOutbox(env);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
export {
|
|
428
|
+
forms_sandbox_default as default
|
|
429
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// src/template-cloud/render.ts
|
|
2
|
+
var esc = (s) => s.replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c]);
|
|
3
|
+
var lum = (c) => {
|
|
4
|
+
const v = [1, 3, 5].map((i) => {
|
|
5
|
+
const n = parseInt(c.slice(i, i + 2), 16) / 255;
|
|
6
|
+
return n <= 0.04045 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4;
|
|
7
|
+
});
|
|
8
|
+
return 0.2126 * v[0] + 0.7152 * v[1] + 0.0722 * v[2];
|
|
9
|
+
};
|
|
10
|
+
var contrast = (a, b) => (Math.max(lum(a), lum(b)) + 0.05) / (Math.min(lum(a), lum(b)) + 0.05);
|
|
11
|
+
function brandVars(tokens, colors) {
|
|
12
|
+
const brand = colors[0] || "#56636b", bg = tokens.colorBg;
|
|
13
|
+
let action = colors.find((c) => contrast(c, bg) >= 4.5) || brand;
|
|
14
|
+
if (contrast(action, bg) < 4.5) {
|
|
15
|
+
const target = lum(bg) < 0.2 ? 255 : 0;
|
|
16
|
+
for (let step = 1; step <= 20; step++) {
|
|
17
|
+
action = "#" + [1, 3, 5].map((i) => Math.round(parseInt(brand.slice(i, i + 2), 16) * (1 - step / 20) + target * step / 20).toString(16).padStart(2, "0")).join("");
|
|
18
|
+
if (contrast(action, bg) >= 4.5) break;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const t = { ...tokens, colorAccent: action, colorAccentText: contrast(action, "#ffffff") >= 4.5 ? "#ffffff" : contrast(action, "#111111") >= 4.5 ? "#111111" : "#000000", colorFocus: lum(bg) < 0.2 ? "#f4d788" : "#365e85" };
|
|
22
|
+
const keys = { "color-bg": "colorBg", "color-text": "colorText", "color-muted": "colorMuted", "color-accent": "colorAccent", "color-accent-text": "colorAccentText", "color-surface": "colorSurface", "color-surface-2": "colorSurface2", "color-border": "colorBorder", "color-focus": "colorFocus", "font-body": "fontBody", "font-display": "fontDisplay", radius: "radius", max: "maxWidth" };
|
|
23
|
+
return Object.entries(keys).map(([k, v]) => `--${k}:${t[v]}`).join(";") + `;--brand-original:${brand}`;
|
|
24
|
+
}
|
|
25
|
+
function previewBridge(identity) {
|
|
26
|
+
return `<style>html{overscroll-behavior:contain}</style><script>(()=>{const identity=${JSON.stringify(identity)},params=new URLSearchParams(location.hash.slice(1)),nonce=params.get('bridge'),origin=params.get('parent');let ready=false;const report=(kind,extra={})=>{if(parent!==window&&nonce&&origin)parent.postMessage({channel:'vitris-specimen-v1',identity,nonce,kind,...extra},origin);};addEventListener('click',e=>{const back=e.target.closest?.('a[href]');if(parent!==window&&nonce&&origin&&back?.href==='http://127.0.0.1:4390/'){e.preventDefault();report('close');return;}const a=e.target.closest?.('a[data-page-id],a[data-page-role]');if(a&&parent!==window&&nonce&&origin){e.preventDefault();const pageId=a.dataset.pageId||a.dataset.pageRole;report('navigate',{role:pageId,pageId});}});addEventListener('vitris-remember',e=>{const d=e.detail||{};if(typeof d.key==='string')report('memory',{key:d.key,value:d.value});});const metrics=()=>({y:scrollY,height:document.documentElement.scrollHeight,viewport:innerHeight});Promise.all([document.fonts.ready,...Array.from(document.images,i=>i.decode().catch(()=>null))]).then(()=>{if(document.body.getBoundingClientRect().height>0&&document.body.innerText.trim().length>20){ready=true;report('ready',metrics());}else report('error',{message:'Preview has no visible layout.'});});addEventListener('scroll',()=>{if(ready)report('scroll',metrics());},{passive:true});new ResizeObserver(()=>{if(ready)report('resize',metrics());}).observe(document.body);addEventListener('wheel',e=>{if(e.ctrlKey||e.metaKey)return;const max=document.documentElement.scrollHeight-innerHeight;if((e.deltaY<0&&scrollY<=1)||(e.deltaY>0&&scrollY>=max-1))report('edge',{delta:e.deltaY,mode:e.deltaMode});},{passive:true});addEventListener('keydown',e=>{if(e.key==='Escape'){e.preventDefault();report('close');}});addEventListener('message',e=>{const m=e.data;if(e.source!==parent||!m||m.channel!=='vitris-specimen-v1'||m.nonce!==nonce||m.identity!==identity)return;if(m.kind==='memory'&&typeof m.key==='string'){dispatchEvent(new CustomEvent('vitris-apply',{detail:{key:m.key,value:m.value}}));return;}if(m.kind!=='scroll-to'||!Number.isFinite(m.y))return;scrollTo({top:Math.max(0,Math.min(m.y,document.documentElement.scrollHeight-innerHeight)),behavior:'instant'});if(ready)report('scroll',metrics());});})();<\/script>`;
|
|
27
|
+
}
|
|
28
|
+
function renderCloudPage(recipe, manifest, brand, base, identity) {
|
|
29
|
+
let html = brand.original ? recipe.original : recipe.brand;
|
|
30
|
+
const logo = brand.logo ? `<img src="${esc(brand.logo)}" alt="${esc(brand.name)}">` : `<span>${esc(brand.name)}</span>`;
|
|
31
|
+
html = html.replaceAll("__VITRIS_LOGO__", logo).replaceAll("__VITRIS_BRAND_NAME__", esc(brand.name)).replaceAll("__VITRIS_CSS_VARS__", brandVars(manifest.tokens, brand.colors));
|
|
32
|
+
const encoded = brand.original ? "" : btoa(unescape(encodeURIComponent(JSON.stringify(brand))));
|
|
33
|
+
for (const page of manifest.pages) html = html.replaceAll(new RegExp("__VITRIS_PAGE_" + page.pageId + "__(\\?[A-Za-z0-9%&=;,+|:-]*)?", "g"), (_match, suffix = "") => {
|
|
34
|
+
const params = new URLSearchParams(suffix.replaceAll("&", "&"));
|
|
35
|
+
if (encoded) params.set("b", encoded);
|
|
36
|
+
return esc(base + page.path + (params.size ? "?" + params : ""));
|
|
37
|
+
});
|
|
38
|
+
html = html.replaceAll("__VITRIS_RETURN__", "http://127.0.0.1:4390/");
|
|
39
|
+
if (identity) html = html.replaceAll('loading="lazy"', 'loading="eager"').replace("</body>", previewBridge(identity) + "</body>");
|
|
40
|
+
return html;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/template-cloud/worker.ts
|
|
44
|
+
var failure = (status, message) => new Response(message, { status, headers: { "content-type": "text/plain; charset=utf-8", "cache-control": "no-store", "access-control-allow-origin": "*" } });
|
|
45
|
+
async function object(env, key) {
|
|
46
|
+
return env.R2.get(key);
|
|
47
|
+
}
|
|
48
|
+
function displayBrand(url, manifest) {
|
|
49
|
+
const encoded = url.searchParams.get("b");
|
|
50
|
+
if (!encoded) return { name: manifest.business, colors: [manifest.tokens.colorAccent], original: true };
|
|
51
|
+
if (encoded.length > 1e5) throw Error("Brand payload too large");
|
|
52
|
+
const b = JSON.parse(decodeURIComponent(escape(atob(encoded))));
|
|
53
|
+
if (typeof b.name !== "string" || b.name.length > 500 || !Array.isArray(b.colors) || b.colors.length > 12 || b.colors.some((c) => !/^#[a-f0-9]{6}$/.test(c)) || b.logo && !/^data:image\/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/=]+$/.test(b.logo)) throw Error("Invalid display brand");
|
|
54
|
+
return { name: b.name, colors: b.colors, ...b.logo ? { logo: b.logo } : {}, original: !!b.original };
|
|
55
|
+
}
|
|
56
|
+
var worker_default = { async fetch(request, env) {
|
|
57
|
+
try {
|
|
58
|
+
const url = new URL(request.url), path = url.pathname;
|
|
59
|
+
if (request.method === "OPTIONS") return new Response(null, { status: 204, headers: { "access-control-allow-origin": "*", "access-control-allow-methods": "GET, HEAD, OPTIONS" } });
|
|
60
|
+
if (!["GET", "HEAD"].includes(request.method)) return failure(405, "Read-only template library");
|
|
61
|
+
if (path === "/templates/catalog.json") {
|
|
62
|
+
const found = await object(env, "templates/catalog.json");
|
|
63
|
+
if (!found) return failure(404, "Catalog not published");
|
|
64
|
+
return new Response(request.method === "HEAD" ? null : found.body, { headers: { "content-type": "application/json", "cache-control": "no-cache", "access-control-allow-origin": "*", "x-content-type-options": "nosniff" } });
|
|
65
|
+
}
|
|
66
|
+
if (/^\/templates\/(assets|objects)\/[a-f0-9]{64}\/[a-zA-Z0-9._/-]+$/.test(path) && !path.includes("..")) {
|
|
67
|
+
const found = await object(env, path.slice(1));
|
|
68
|
+
if (!found) return failure(404, "Unknown template object");
|
|
69
|
+
const headers2 = new Headers();
|
|
70
|
+
found.writeHttpMetadata(headers2);
|
|
71
|
+
headers2.set("etag", found.httpEtag);
|
|
72
|
+
headers2.set("cache-control", "public, max-age=31536000, immutable");
|
|
73
|
+
headers2.set("access-control-allow-origin", "*");
|
|
74
|
+
headers2.set("x-content-type-options", "nosniff");
|
|
75
|
+
if (request.headers.get("if-none-match") === found.httpEtag) return new Response(null, { status: 304, headers: headers2 });
|
|
76
|
+
return new Response(request.method === "HEAD" ? null : found.body, { headers: headers2 });
|
|
77
|
+
}
|
|
78
|
+
const match = path.match(/^\/templates\/(demo|preview)\/([a-f0-9]{64})\/([a-z0-9-]+)(\/.*)?$/);
|
|
79
|
+
if (!match) return failure(404, "Unknown template route");
|
|
80
|
+
const [, mode, revision, id, tail = "/"] = match;
|
|
81
|
+
const stored = await object(env, `templates/manifests/${revision}.json`);
|
|
82
|
+
if (!stored) return failure(404, "Unknown template revision");
|
|
83
|
+
const manifest = await stored.json();
|
|
84
|
+
if (manifest.id !== id || manifest.revision !== revision) return failure(404, "Template identity mismatch");
|
|
85
|
+
const preview = mode === "preview", segments = tail.split("/").filter(Boolean), identity = preview ? segments[2] : void 0;
|
|
86
|
+
if (preview && (!/^[a-f0-9]{64}$/.test(identity || "") || !["desktop", "mobile"].includes(segments[1] || "") || segments.length !== 3)) return failure(404, "Unknown preview identity");
|
|
87
|
+
const page = manifest.pages.find((p) => preview ? p.pageId === segments[0] : p.path === tail);
|
|
88
|
+
if (!page) return failure(404, "Unknown template page");
|
|
89
|
+
const recipeObject = await object(env, `templates/objects/${page.recipe}/recipe.json`);
|
|
90
|
+
if (!recipeObject) return failure(503, "Template page unavailable");
|
|
91
|
+
const html = renderCloudPage(await recipeObject.json(), manifest, displayBrand(url, manifest), url.origin + `/templates/demo/${revision}/${id}`, identity);
|
|
92
|
+
const headers = { "content-type": "text/html; charset=utf-8", "cache-control": "no-store", "access-control-allow-origin": "*", "x-content-type-options": "nosniff", "x-robots-tag": "noindex, nofollow", "referrer-policy": "no-referrer", "x-template-revision": revision, "content-security-policy": "default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: 'self'; font-src 'self'; connect-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors * file:" };
|
|
93
|
+
return new Response(request.method === "HEAD" ? null : html, { headers });
|
|
94
|
+
} catch {
|
|
95
|
+
return failure(400, "Invalid template request");
|
|
96
|
+
}
|
|
97
|
+
} };
|
|
98
|
+
export {
|
|
99
|
+
worker_default as default
|
|
100
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const R2_BUCKET = "vitris-assets";
|
|
2
|
+
export declare function loadDevVars(root: string): void;
|
|
3
|
+
export declare function assetsOrigin(): string;
|
|
4
|
+
export declare function publicAssetUrl(r2Key: string): string;
|
|
5
|
+
export declare function putLocalR2(root: string, key: string, file: string, contentType: string): void;
|
|
6
|
+
export declare function putRemoteR2(key: string, file: string, contentType: string): Promise<void>;
|
|
7
|
+
export declare function writeScratchFile(path: string, data: Buffer): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Playwright crawl: rendered DOM, lazy-scroll, full link discovery.
|
|
3
|
+
* Falls back is handled by run.ts when this throws or Chromium is missing.
|
|
4
|
+
*/
|
|
5
|
+
import { type CrawlResult } from "./crawl.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Playwright harvest. Optional maxPages is emergency abort only.
|
|
8
|
+
*/
|
|
9
|
+
export declare function crawlSiteBrowser(startUrl: string, maxPages?: number, kernelRoot?: string, stillsDir?: string, checkpointPath?: string, fresh?: boolean): Promise<CrawlResult>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ExtractedPage } from "../../src/onboard/extract.ts";
|
|
2
|
+
import type { VisualHints } from "../../src/onboard/brief.ts";
|
|
3
|
+
import { type HarvestDiscovery, type HarvestExclusion } from "../../src/onboard/harvest-inventory.ts";
|
|
4
|
+
export type CrawlResult = {
|
|
5
|
+
startUrl: string;
|
|
6
|
+
pages: ExtractedPage[];
|
|
7
|
+
warnings: string[];
|
|
8
|
+
engine: "fetch" | "playwright";
|
|
9
|
+
hints?: VisualHints;
|
|
10
|
+
stills?: string[];
|
|
11
|
+
exclusions: HarvestExclusion[];
|
|
12
|
+
unvisited: string[];
|
|
13
|
+
};
|
|
14
|
+
export declare function enqueue(queue: string[], seen: Set<string>, href: string, startUrl: string, discovery?: Map<string, HarvestDiscovery>, meta?: HarvestDiscovery): void;
|
|
15
|
+
export declare function sitemapUrls(startUrl: string, warnings: string[]): Promise<string[]>;
|
|
16
|
+
type Checkpoint = {
|
|
17
|
+
version: 2;
|
|
18
|
+
start: string;
|
|
19
|
+
pages: ExtractedPage[];
|
|
20
|
+
queue: string[];
|
|
21
|
+
visited: string[];
|
|
22
|
+
seen: string[];
|
|
23
|
+
warnings: string[];
|
|
24
|
+
stills: string[];
|
|
25
|
+
hints?: VisualHints;
|
|
26
|
+
exclusions?: HarvestExclusion[];
|
|
27
|
+
discovery?: [string, HarvestDiscovery][];
|
|
28
|
+
};
|
|
29
|
+
export declare function persistCheckpoint(path: string | undefined, payload: Checkpoint): void;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch-based crawl. Optional maxPages is an emergency abort only (undefined = unbounded).
|
|
32
|
+
* The queue visits home / about / work before legal and shop.
|
|
33
|
+
*/
|
|
34
|
+
export declare function crawlSite(startUrl: string, maxPages?: number, checkpointPath?: string, fresh?: boolean): Promise<CrawlResult>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BriefImage } from "../../src/onboard/brief.ts";
|
|
2
|
+
import type { ExtractedImage } from "../../src/onboard/extract.ts";
|
|
3
|
+
export type UploadOptions = {
|
|
4
|
+
kernelRoot: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
local: boolean;
|
|
7
|
+
remote: boolean;
|
|
8
|
+
captureKey?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Download and upload every unique non-tracking image (no MAX_IMAGES cap).
|
|
12
|
+
* Byte-hash dedupe so the same photo on many pages is stored once.
|
|
13
|
+
* Classify/shortlist are hints only — interpret owns the must-use list.
|
|
14
|
+
*/
|
|
15
|
+
export declare function uploadImages(images: ExtractedImage[], opts: UploadOptions): Promise<BriefImage[]>;
|
|
16
|
+
/** Copy every successful harvest image into the site repo under media/harvest/. */
|
|
17
|
+
export declare function copyHarvestToSite(siteRoot: string, images: BriefImage[]): void;
|
|
18
|
+
/** @deprecated use copyHarvestToSite */
|
|
19
|
+
export declare function copyShortlistToSite(siteRoot: string, images: BriefImage[]): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BusinessFacts } from "../../src/onboard/brief.ts";
|
|
2
|
+
export declare function promptMissingFacts(facts: BusinessFacts, opts: {
|
|
3
|
+
noPrompt: boolean;
|
|
4
|
+
}): Promise<BusinessFacts>;
|
|
5
|
+
export declare function normalizeSourceUrl(url: string): string;
|
|
6
|
+
export declare function promptSourceUrl(opts: {
|
|
7
|
+
noPrompt: boolean;
|
|
8
|
+
from?: string;
|
|
9
|
+
blank: boolean;
|
|
10
|
+
}): Promise<string>;
|