@tryvitris/website-harness 0.0.0-stage → 0.1.0-beta.6

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.
Files changed (1303) hide show
  1. package/CONTRIBUTING.md +7 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +17 -0
  4. package/README.md +141 -2
  5. package/agent/EVALUATION.md +23 -0
  6. package/agent/PROMPT.md +13 -0
  7. package/agent/STATE.json +109 -0
  8. package/agent/WORKFLOW.md +108 -0
  9. package/agent/evals/preview.md +5 -0
  10. package/agent/graph.yaml +752 -0
  11. package/agent/guardrails.md +10 -0
  12. package/agent/refs/accessibility.md +9 -0
  13. package/agent/refs/art-direction.md +15 -0
  14. package/agent/refs/brand.md +3 -0
  15. package/agent/refs/browser.md +15 -0
  16. package/agent/refs/business.md +9 -0
  17. package/agent/refs/components.md +42 -0
  18. package/agent/refs/compose.md +10 -0
  19. package/agent/refs/contracts.md +32 -0
  20. package/agent/refs/copy.md +14 -0
  21. package/agent/refs/counterpoint.md +3 -0
  22. package/agent/refs/critic.md +29 -0
  23. package/agent/refs/design-calibration.md +31 -0
  24. package/agent/refs/design-feedback.md +13 -0
  25. package/agent/refs/design-quality.md +33 -0
  26. package/agent/refs/design-synthesis.md +9 -0
  27. package/agent/refs/direction.md +29 -0
  28. package/agent/refs/feedback-fulfillment.md +7 -0
  29. package/agent/refs/geo.md +7 -0
  30. package/agent/refs/harvest.md +7 -0
  31. package/agent/refs/icons.md +102 -0
  32. package/agent/refs/images.md +3 -0
  33. package/agent/refs/implement.md +24 -0
  34. package/agent/refs/industry-reference-shortlist.md +64 -0
  35. package/agent/refs/inspiration.md +17 -0
  36. package/agent/refs/interpret.md +3 -0
  37. package/agent/refs/jev.md +166 -0
  38. package/agent/refs/launch.md +11 -0
  39. package/agent/refs/layout.md +7 -0
  40. package/agent/refs/media.md +35 -0
  41. package/agent/refs/motif.md +3 -0
  42. package/agent/refs/motion-count.md +13 -0
  43. package/agent/refs/motion-image.md +12 -0
  44. package/agent/refs/motion-numeric.md +14 -0
  45. package/agent/refs/motion-page.md +23 -0
  46. package/agent/refs/motion-process.md +12 -0
  47. package/agent/refs/motion-sequence.md +7 -0
  48. package/agent/refs/motion-text.md +12 -0
  49. package/agent/refs/motion.md +11 -0
  50. package/agent/refs/narrative.md +9 -0
  51. package/agent/refs/performance.md +36 -0
  52. package/agent/refs/preview.md +3 -0
  53. package/agent/refs/production-quality.md +33 -0
  54. package/agent/refs/psychology.md +3 -0
  55. package/agent/refs/refine.md +14 -0
  56. package/agent/refs/research.md +7 -0
  57. package/agent/refs/sections.md +6 -0
  58. package/agent/refs/seo.md +9 -0
  59. package/agent/refs/storyboard.md +27 -0
  60. package/agent/refs/template-adaptation.md +42 -0
  61. package/agent/refs/template-from-url.md +91 -0
  62. package/agent/refs/template-library.md +32 -0
  63. package/agent/refs/template-motion.md +44 -0
  64. package/agent/refs/theme-selection.md +13 -0
  65. package/agent/refs/ui-ux.md +7 -0
  66. package/agent/refs/usability.md +5 -0
  67. package/agent/refs/variant-directions.md +20 -0
  68. package/agent/refs/write.md +6 -0
  69. package/agent/request.json +11 -0
  70. package/agent/workflow.json +4 -0
  71. package/bin/api/agent/artifacts.js +38 -0
  72. package/bin/api/agent/evaluate.js +55 -0
  73. package/bin/api/agent/grade.js +51 -0
  74. package/bin/api/agent/graph.js +16 -0
  75. package/bin/api/cli/api.js +104 -0
  76. package/bin/api/cli.js +48 -0
  77. package/bin/api/contracts.js +22 -0
  78. package/bin/api/engine.js +53 -0
  79. package/bin/api/hosting.js +40 -0
  80. package/bin/api/icons.js +57 -0
  81. package/bin/api/index.js +20 -0
  82. package/bin/api/references.js +45 -0
  83. package/bin/api/render.js +61 -0
  84. package/bin/api/schema.js +68 -0
  85. package/bin/api/theme.js +9 -0
  86. package/bin/api/types.js +8 -0
  87. package/bin/chunks/chunk-2NW7KSPA.js +17 -0
  88. package/bin/chunks/chunk-34H54KEY.js +45 -0
  89. package/bin/chunks/chunk-3CTBXY5K.js +22313 -0
  90. package/bin/chunks/chunk-42IXFXUD.js +1141 -0
  91. package/bin/chunks/chunk-4DM5TTLG.js +219 -0
  92. package/bin/chunks/chunk-4GZCAWWK.js +327 -0
  93. package/bin/chunks/chunk-54JC5L35.js +493 -0
  94. package/bin/chunks/chunk-5OOPJNGN.js +511 -0
  95. package/bin/chunks/chunk-6A3VWYMF.js +28 -0
  96. package/bin/chunks/chunk-6H3T46F5.js +25 -0
  97. package/bin/chunks/chunk-7FS67SRF.js +12 -0
  98. package/bin/chunks/chunk-7VLBEAFW.js +56 -0
  99. package/bin/chunks/chunk-ANMJRJQ5.js +31 -0
  100. package/bin/chunks/chunk-AUO5I56E.js +118774 -0
  101. package/bin/chunks/chunk-B5I45LFD.js +619 -0
  102. package/bin/chunks/chunk-BBV7PMFC.js +185 -0
  103. package/bin/chunks/chunk-BIEDSEL2.js +8 -0
  104. package/bin/chunks/chunk-CBEJZO4L.js +67 -0
  105. package/bin/chunks/chunk-DRJQ4OOU.js +514 -0
  106. package/bin/chunks/chunk-DSS2U2OM.js +115 -0
  107. package/bin/chunks/chunk-E5Y46VBX.js +678 -0
  108. package/bin/chunks/chunk-FOXUQXTV.js +278 -0
  109. package/bin/chunks/chunk-FYN4T4SV.js +4900 -0
  110. package/bin/chunks/chunk-G7MNMULR.js +192 -0
  111. package/bin/chunks/chunk-GVNIL34R.js +78 -0
  112. package/bin/chunks/chunk-GZDLXYZV.js +3425 -0
  113. package/bin/chunks/chunk-HNORQ74T.js +40 -0
  114. package/bin/chunks/chunk-IKNMBGGD.js +217 -0
  115. package/bin/chunks/chunk-JCRGE6AL.js +14 -0
  116. package/bin/chunks/chunk-LKN75JGA.js +63 -0
  117. package/bin/chunks/chunk-M2ETYSVJ.js +176 -0
  118. package/bin/chunks/chunk-M4LNHYYR.js +177 -0
  119. package/bin/chunks/chunk-PRLL7B63.js +113 -0
  120. package/bin/chunks/chunk-R7YELY3C.js +923 -0
  121. package/bin/chunks/chunk-T6PE4KN4.js +277 -0
  122. package/bin/chunks/chunk-T7DGRVTP.js +458 -0
  123. package/bin/chunks/chunk-TY33XMHW.js +239 -0
  124. package/bin/chunks/chunk-VH7PM7KJ.js +179 -0
  125. package/bin/chunks/chunk-WEFDVXFX.js +65 -0
  126. package/bin/chunks/chunk-XGTHGWPW.js +90 -0
  127. package/bin/chunks/chunk-XL2DRAYI.js +39 -0
  128. package/bin/chunks/chunk-YCVGD2CG.js +2751 -0
  129. package/bin/chunks/chunk-YQYHROLZ.js +1023 -0
  130. package/bin/chunks/chunk-YYPYYOEV.js +34 -0
  131. package/bin/chunks/chunk-Z2UNY47A.js +2418 -0
  132. package/bin/chunks/design-context-store-IAT2P2OC.js +39 -0
  133. package/bin/chunks/packets-VBMY4SQJ.js +53 -0
  134. package/bin/chunks/policy-2I37JUU3.js +18 -0
  135. package/bin/chunks/preparation-S4MG3RPL.js +93 -0
  136. package/bin/chunks/questions-HKELBDFL.js +120 -0
  137. package/bin/chunks/state-GDL6CCJI.js +20 -0
  138. package/bin/chunks/template-gallery-ET76ERZQ.js +140 -0
  139. package/bin/cloudflare/backend.js +24421 -0
  140. package/bin/cloudflare/blake3.wasm +0 -0
  141. package/bin/cloudflare/forms-test.js +429 -0
  142. package/bin/cloudflare/templates.js +100 -0
  143. package/bin/types/scripts/lib/r2.d.ts +7 -0
  144. package/bin/types/scripts/onboard/browser.d.ts +9 -0
  145. package/bin/types/scripts/onboard/crawl.d.ts +35 -0
  146. package/bin/types/scripts/onboard/images.d.ts +19 -0
  147. package/bin/types/scripts/onboard/prompt.d.ts +10 -0
  148. package/bin/types/scripts/onboard/run.d.ts +47 -0
  149. package/bin/types/src/agent/adaptation-checkpoint.d.ts +70 -0
  150. package/bin/types/src/agent/added-media.d.ts +31 -0
  151. package/bin/types/src/agent/api-contracts.d.ts +2 -0
  152. package/bin/types/src/agent/art-direction-policy.d.ts +9 -0
  153. package/bin/types/src/agent/art-direction.d.ts +253 -0
  154. package/bin/types/src/agent/artifacts.d.ts +602 -0
  155. package/bin/types/src/agent/browser-motion-journey.d.ts +59 -0
  156. package/bin/types/src/agent/browser-motion.d.ts +40 -0
  157. package/bin/types/src/agent/browser-timeout.d.ts +4 -0
  158. package/bin/types/src/agent/composition-authoring.d.ts +12 -0
  159. package/bin/types/src/agent/composition-context.d.ts +63 -0
  160. package/bin/types/src/agent/composition-contract.d.ts +4 -0
  161. package/bin/types/src/agent/composition-decisions.d.ts +43 -0
  162. package/bin/types/src/agent/composition-preflight.d.ts +16 -0
  163. package/bin/types/src/agent/creative-change-context.d.ts +21 -0
  164. package/bin/types/src/agent/creative-context.d.ts +56 -0
  165. package/bin/types/src/agent/creative-contract.d.ts +123 -0
  166. package/bin/types/src/agent/creative-efficiency.d.ts +18 -0
  167. package/bin/types/src/agent/creative-evidence.d.ts +57 -0
  168. package/bin/types/src/agent/creative-objective.d.ts +33 -0
  169. package/bin/types/src/agent/creative-profile.d.ts +81 -0
  170. package/bin/types/src/agent/creative-prompts.d.ts +7 -0
  171. package/bin/types/src/agent/creative-render-bindings.d.ts +13 -0
  172. package/bin/types/src/agent/creative-revision.d.ts +33 -0
  173. package/bin/types/src/agent/creative-skills.d.ts +25 -0
  174. package/bin/types/src/agent/cursor-hook.d.ts +182 -0
  175. package/bin/types/src/agent/design-bundle.d.ts +24 -0
  176. package/bin/types/src/agent/design-calibration.d.ts +43 -0
  177. package/bin/types/src/agent/design-cli.d.ts +5 -0
  178. package/bin/types/src/agent/design-comparison.d.ts +63 -0
  179. package/bin/types/src/agent/design-context-packet.d.ts +82 -0
  180. package/bin/types/src/agent/design-context-store.d.ts +14 -0
  181. package/bin/types/src/agent/design-context.d.ts +85 -0
  182. package/bin/types/src/agent/design-contracts.d.ts +35 -0
  183. package/bin/types/src/agent/design-copy.d.ts +29 -0
  184. package/bin/types/src/agent/design-feedback.d.ts +91 -0
  185. package/bin/types/src/agent/design-knowledge.d.ts +124 -0
  186. package/bin/types/src/agent/design-quality.d.ts +143 -0
  187. package/bin/types/src/agent/design-review-server.d.ts +13 -0
  188. package/bin/types/src/agent/design-run.d.ts +174 -0
  189. package/bin/types/src/agent/design-synthesis.d.ts +76 -0
  190. package/bin/types/src/agent/design-usage.d.ts +38 -0
  191. package/bin/types/src/agent/editorial.d.ts +11 -0
  192. package/bin/types/src/agent/evaluate.d.ts +28 -0
  193. package/bin/types/src/agent/grade.d.ts +16 -0
  194. package/bin/types/src/agent/graph.d.ts +82 -0
  195. package/bin/types/src/agent/industry/document.d.ts +10 -0
  196. package/bin/types/src/agent/industry/interactions.d.ts +2 -0
  197. package/bin/types/src/agent/industry/markup.d.ts +14 -0
  198. package/bin/types/src/agent/industry/registry.d.ts +2 -0
  199. package/bin/types/src/agent/industry/render-style.d.ts +3 -0
  200. package/bin/types/src/agent/industry/ridgeline/browse.d.ts +2 -0
  201. package/bin/types/src/agent/industry/ridgeline/diagrams.d.ts +9 -0
  202. package/bin/types/src/agent/industry/ridgeline/facts.d.ts +61 -0
  203. package/bin/types/src/agent/industry/ridgeline/pages/company.d.ts +5 -0
  204. package/bin/types/src/agent/industry/ridgeline/pages/home.d.ts +1 -0
  205. package/bin/types/src/agent/industry/ridgeline/pages/journal.d.ts +24 -0
  206. package/bin/types/src/agent/industry/ridgeline/pages/services.d.ts +6 -0
  207. package/bin/types/src/agent/industry/ridgeline/photo.d.ts +18 -0
  208. package/bin/types/src/agent/industry/ridgeline/script.d.ts +1 -0
  209. package/bin/types/src/agent/industry/ridgeline/site.d.ts +2 -0
  210. package/bin/types/src/agent/industry/ridgeline/style.d.ts +1 -0
  211. package/bin/types/src/agent/industry/ridgeline/theme.d.ts +4 -0
  212. package/bin/types/src/agent/industry/seven/barber-club.d.ts +2 -0
  213. package/bin/types/src/agent/industry/seven/barber-corner.d.ts +2 -0
  214. package/bin/types/src/agent/industry/seven/barber-form.d.ts +2 -0
  215. package/bin/types/src/agent/industry/seven/browse.d.ts +4 -0
  216. package/bin/types/src/agent/industry/seven/construction-built.d.ts +2 -0
  217. package/bin/types/src/agent/industry/seven/construction-craft.d.ts +2 -0
  218. package/bin/types/src/agent/industry/seven/construction-siteworks.d.ts +3 -0
  219. package/bin/types/src/agent/industry/seven/electrical-circuit.d.ts +2 -0
  220. package/bin/types/src/agent/industry/seven/electrical-light.d.ts +3 -0
  221. package/bin/types/src/agent/industry/seven/electrical-power.d.ts +3 -0
  222. package/bin/types/src/agent/industry/seven/hvac-climate.d.ts +3 -0
  223. package/bin/types/src/agent/industry/seven/hvac-dispatch.d.ts +2 -0
  224. package/bin/types/src/agent/industry/seven/hvac-seasonal.d.ts +2 -0
  225. package/bin/types/src/agent/industry/seven/interactions.d.ts +2 -0
  226. package/bin/types/src/agent/industry/seven/landscape-atlas.d.ts +4 -0
  227. package/bin/types/src/agent/industry/seven/landscape-courtyard.d.ts +3 -0
  228. package/bin/types/src/agent/industry/seven/landscape-seasons.d.ts +3 -0
  229. package/bin/types/src/agent/industry/seven/legal-casework.d.ts +2 -0
  230. package/bin/types/src/agent/industry/seven/legal-counsel.d.ts +2 -0
  231. package/bin/types/src/agent/industry/seven/legal-table.d.ts +2 -0
  232. package/bin/types/src/agent/industry/seven/medical-continuum.d.ts +2 -0
  233. package/bin/types/src/agent/industry/seven/medical-movement.d.ts +2 -0
  234. package/bin/types/src/agent/industry/seven/medical-neighborhood.d.ts +2 -0
  235. package/bin/types/src/agent/industry/seven/primitives.d.ts +31 -0
  236. package/bin/types/src/agent/industry/seven/registry.d.ts +4 -0
  237. package/bin/types/src/agent/industry/seven/theme.d.ts +3 -0
  238. package/bin/types/src/agent/industry/sites/common-ground.d.ts +2 -0
  239. package/bin/types/src/agent/industry/sites/coordination.d.ts +2 -0
  240. package/bin/types/src/agent/industry/sites/everyday.d.ts +2 -0
  241. package/bin/types/src/agent/industry/sites/independent.d.ts +2 -0
  242. package/bin/types/src/agent/industry/sites/mainstage.d.ts +2 -0
  243. package/bin/types/src/agent/industry/sites/neighborhood.d.ts +2 -0
  244. package/bin/types/src/agent/industry/sites/next-chapter.d.ts +2 -0
  245. package/bin/types/src/agent/industry/sites/practice-notes.d.ts +2 -0
  246. package/bin/types/src/agent/industry/sites/property-desk.d.ts +2 -0
  247. package/bin/types/src/agent/industry/sites/residence.d.ts +2 -0
  248. package/bin/types/src/agent/industry/sites/risk-office.d.ts +2 -0
  249. package/bin/types/src/agent/industry/sites/workshop.d.ts +2 -0
  250. package/bin/types/src/agent/industry/types.d.ts +48 -0
  251. package/bin/types/src/agent/invocation-budget.d.ts +32 -0
  252. package/bin/types/src/agent/jev/agent-usage.d.ts +165 -0
  253. package/bin/types/src/agent/jev/batching.d.ts +101 -0
  254. package/bin/types/src/agent/jev/block-catalog.d.ts +95 -0
  255. package/bin/types/src/agent/jev/bounds.d.ts +30 -0
  256. package/bin/types/src/agent/jev/budget.d.ts +76 -0
  257. package/bin/types/src/agent/jev/business-draft.d.ts +103 -0
  258. package/bin/types/src/agent/jev/calibration.d.ts +131 -0
  259. package/bin/types/src/agent/jev/client.d.ts +52 -0
  260. package/bin/types/src/agent/jev/component-select.d.ts +102 -0
  261. package/bin/types/src/agent/jev/config.d.ts +52 -0
  262. package/bin/types/src/agent/jev/consistency.d.ts +105 -0
  263. package/bin/types/src/agent/jev/content-checks.d.ts +121 -0
  264. package/bin/types/src/agent/jev/creative.d.ts +81 -0
  265. package/bin/types/src/agent/jev/critic-report.d.ts +132 -0
  266. package/bin/types/src/agent/jev/extraction.d.ts +84 -0
  267. package/bin/types/src/agent/jev/goals.d.ts +43 -0
  268. package/bin/types/src/agent/jev/html-tree.d.ts +28 -0
  269. package/bin/types/src/agent/jev/indexing.d.ts +51 -0
  270. package/bin/types/src/agent/jev/ledger.d.ts +154 -0
  271. package/bin/types/src/agent/jev/media.d.ts +62 -0
  272. package/bin/types/src/agent/jev/observations.d.ts +26 -0
  273. package/bin/types/src/agent/jev/ownership.d.ts +74 -0
  274. package/bin/types/src/agent/jev/packets.d.ts +124 -0
  275. package/bin/types/src/agent/jev/policy.d.ts +83 -0
  276. package/bin/types/src/agent/jev/questions.d.ts +244 -0
  277. package/bin/types/src/agent/jev/ranking.d.ts +129 -0
  278. package/bin/types/src/agent/jev/repair.d.ts +73 -0
  279. package/bin/types/src/agent/jev/review.d.ts +37 -0
  280. package/bin/types/src/agent/jev/security.d.ts +28 -0
  281. package/bin/types/src/agent/jev/semantic-lifecycle.d.ts +19 -0
  282. package/bin/types/src/agent/jev/semantic-tasks.d.ts +89 -0
  283. package/bin/types/src/agent/jev/service-registry.d.ts +98 -0
  284. package/bin/types/src/agent/jev/state.d.ts +104 -0
  285. package/bin/types/src/agent/jev/types.d.ts +190 -0
  286. package/bin/types/src/agent/jev/visible-assertions.d.ts +84 -0
  287. package/bin/types/src/agent/kernel-commands.d.ts +2 -0
  288. package/bin/types/src/agent/kit-runtime.d.ts +12 -0
  289. package/bin/types/src/agent/legacy-definitions/theme-art.d.ts +5 -0
  290. package/bin/types/src/agent/legacy-definitions/theme-commissions.d.ts +1 -0
  291. package/bin/types/src/agent/legacy-definitions/theme-compositions-extremes.d.ts +7 -0
  292. package/bin/types/src/agent/legacy-definitions/theme-compositions-graphic.d.ts +2 -0
  293. package/bin/types/src/agent/legacy-definitions/theme-compositions-reading.d.ts +2 -0
  294. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-extremes.d.ts +2 -0
  295. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-people.d.ts +2 -0
  296. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-programme.d.ts +3 -0
  297. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-project.d.ts +2 -0
  298. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-season.d.ts +2 -0
  299. package/bin/types/src/agent/legacy-definitions/theme-compositions-tactile.d.ts +2 -0
  300. package/bin/types/src/agent/legacy-definitions/theme-compositions.d.ts +2 -0
  301. package/bin/types/src/agent/legacy-definitions/theme-legacy-specimens.d.ts +8 -0
  302. package/bin/types/src/agent/legacy-definitions/theme-library-legacy.d.ts +20 -0
  303. package/bin/types/src/agent/legacy-definitions/theme-library-release2.d.ts +3 -0
  304. package/bin/types/src/agent/legacy-definitions/theme-service-art.d.ts +7 -0
  305. package/bin/types/src/agent/legacy-definitions/theme-service-commissions.d.ts +1 -0
  306. package/bin/types/src/agent/legacy-definitions/theme-specimen-base.d.ts +1 -0
  307. package/bin/types/src/agent/legacy-definitions/theme-specimens.d.ts +2 -0
  308. package/bin/types/src/agent/legacy-definitions/theme-suite-data.d.ts +25 -0
  309. package/bin/types/src/agent/legacy-definitions/theme-suite-style.d.ts +1 -0
  310. package/bin/types/src/agent/legacy-definitions/theme-suites-checkpoint.d.ts +14 -0
  311. package/bin/types/src/agent/legacy-definitions/theme-suites-graphic.d.ts +2 -0
  312. package/bin/types/src/agent/legacy-definitions/theme-suites-information.d.ts +2 -0
  313. package/bin/types/src/agent/legacy-definitions/theme-suites-local.d.ts +2 -0
  314. package/bin/types/src/agent/legacy-definitions/theme-suites-material.d.ts +2 -0
  315. package/bin/types/src/agent/legacy-definitions/theme-suites-practice.d.ts +2 -0
  316. package/bin/types/src/agent/legacy-definitions/theme-suites-spatial.d.ts +2 -0
  317. package/bin/types/src/agent/legacy-definitions/theme-suites.d.ts +3 -0
  318. package/bin/types/src/agent/lifecycle.d.ts +136 -0
  319. package/bin/types/src/agent/lighthouse-browser.d.ts +5 -0
  320. package/bin/types/src/agent/media-format.d.ts +5 -0
  321. package/bin/types/src/agent/migration-links.d.ts +4 -0
  322. package/bin/types/src/agent/motion-composition.d.ts +22 -0
  323. package/bin/types/src/agent/motion-knowledge.d.ts +3 -0
  324. package/bin/types/src/agent/motion-plan.d.ts +6 -0
  325. package/bin/types/src/agent/performance.d.ts +52 -0
  326. package/bin/types/src/agent/playwright-runtime.d.ts +8 -0
  327. package/bin/types/src/agent/preparation.d.ts +193 -0
  328. package/bin/types/src/agent/preview.d.ts +1 -0
  329. package/bin/types/src/agent/production-quality.d.ts +72 -0
  330. package/bin/types/src/agent/reference-contract.d.ts +3 -0
  331. package/bin/types/src/agent/reference-fit.d.ts +50 -0
  332. package/bin/types/src/agent/reference-library.d.ts +313 -0
  333. package/bin/types/src/agent/reference-studies.d.ts +110 -0
  334. package/bin/types/src/agent/refine.d.ts +348 -0
  335. package/bin/types/src/agent/result-manifest.d.ts +38 -0
  336. package/bin/types/src/agent/runner.d.ts +10 -0
  337. package/bin/types/src/agent/site-inputs.d.ts +26 -0
  338. package/bin/types/src/agent/source-manifest.d.ts +9 -0
  339. package/bin/types/src/agent/state-transition.d.ts +16 -0
  340. package/bin/types/src/agent/storyboard-media.d.ts +11 -0
  341. package/bin/types/src/agent/study-render.d.ts +27 -0
  342. package/bin/types/src/agent/template-adaptation.d.ts +69 -0
  343. package/bin/types/src/agent/template-motion.d.ts +59 -0
  344. package/bin/types/src/agent/theme-art-direction.d.ts +2 -0
  345. package/bin/types/src/agent/theme-art.d.ts +1 -0
  346. package/bin/types/src/agent/theme-assets.d.ts +36 -0
  347. package/bin/types/src/agent/theme-browse.d.ts +67 -0
  348. package/bin/types/src/agent/theme-cloud-resources.d.ts +7 -0
  349. package/bin/types/src/agent/theme-cloud.d.ts +41 -0
  350. package/bin/types/src/agent/theme-commissions.d.ts +1 -0
  351. package/bin/types/src/agent/theme-compositions-extremes.d.ts +1 -0
  352. package/bin/types/src/agent/theme-compositions.d.ts +1 -0
  353. package/bin/types/src/agent/theme-identity.d.ts +23 -0
  354. package/bin/types/src/agent/theme-layout-roles.d.ts +7 -0
  355. package/bin/types/src/agent/theme-legacy-specimens.d.ts +1 -0
  356. package/bin/types/src/agent/theme-library-legacy.d.ts +1 -0
  357. package/bin/types/src/agent/theme-library-release2.d.ts +1 -0
  358. package/bin/types/src/agent/theme-library.d.ts +60 -0
  359. package/bin/types/src/agent/theme-page-manifest.d.ts +26 -0
  360. package/bin/types/src/agent/theme-picker-model.d.ts +51 -0
  361. package/bin/types/src/agent/theme-picker-runtime.d.ts +1 -0
  362. package/bin/types/src/agent/theme-picker-selection-runtime.d.ts +1 -0
  363. package/bin/types/src/agent/theme-picker-shell.d.ts +7 -0
  364. package/bin/types/src/agent/theme-picker-styles.d.ts +1 -0
  365. package/bin/types/src/agent/theme-picker.d.ts +20 -0
  366. package/bin/types/src/agent/theme-preview.d.ts +26 -0
  367. package/bin/types/src/agent/theme-release2/assets.d.ts +22 -0
  368. package/bin/types/src/agent/theme-release2/specimens.d.ts +2 -0
  369. package/bin/types/src/agent/theme-release2/theme-art.d.ts +5 -0
  370. package/bin/types/src/agent/theme-release2/theme-compositions-extremes.d.ts +7 -0
  371. package/bin/types/src/agent/theme-release2/theme-compositions-graphic.d.ts +2 -0
  372. package/bin/types/src/agent/theme-release2/theme-compositions-reading.d.ts +2 -0
  373. package/bin/types/src/agent/theme-release2/theme-compositions-tactile.d.ts +2 -0
  374. package/bin/types/src/agent/theme-release2/theme-compositions.d.ts +3 -0
  375. package/bin/types/src/agent/theme-release2/theme-specimen-base.d.ts +1 -0
  376. package/bin/types/src/agent/theme-release3/theme-art-direction.d.ts +2 -0
  377. package/bin/types/src/agent/theme-release3/theme-art.d.ts +5 -0
  378. package/bin/types/src/agent/theme-release3/theme-assets.d.ts +121 -0
  379. package/bin/types/src/agent/theme-release3/theme-compositions-extremes.d.ts +7 -0
  380. package/bin/types/src/agent/theme-release3/theme-compositions-graphic.d.ts +2 -0
  381. package/bin/types/src/agent/theme-release3/theme-compositions-reading.d.ts +2 -0
  382. package/bin/types/src/agent/theme-release3/theme-compositions-service-extremes.d.ts +2 -0
  383. package/bin/types/src/agent/theme-release3/theme-compositions-service-people.d.ts +2 -0
  384. package/bin/types/src/agent/theme-release3/theme-compositions-service-programme.d.ts +2 -0
  385. package/bin/types/src/agent/theme-release3/theme-compositions-service-project.d.ts +2 -0
  386. package/bin/types/src/agent/theme-release3/theme-compositions-service-season.d.ts +2 -0
  387. package/bin/types/src/agent/theme-release3/theme-compositions-tactile.d.ts +2 -0
  388. package/bin/types/src/agent/theme-release3/theme-compositions.d.ts +2 -0
  389. package/bin/types/src/agent/theme-release3/theme-identity.d.ts +23 -0
  390. package/bin/types/src/agent/theme-release3/theme-library.d.ts +4 -0
  391. package/bin/types/src/agent/theme-release3/theme-service-art.d.ts +7 -0
  392. package/bin/types/src/agent/theme-release3/theme-specimen-base.d.ts +1 -0
  393. package/bin/types/src/agent/theme-release3/theme-specimens.d.ts +2 -0
  394. package/bin/types/src/agent/theme-selection.d.ts +75 -0
  395. package/bin/types/src/agent/theme-service-art.d.ts +1 -0
  396. package/bin/types/src/agent/theme-specimen-base.d.ts +1 -0
  397. package/bin/types/src/agent/theme-specimens.d.ts +1 -0
  398. package/bin/types/src/agent/theme-suite-data.d.ts +1 -0
  399. package/bin/types/src/agent/theme-suite-identity.d.ts +42 -0
  400. package/bin/types/src/agent/theme-suite-primitives.d.ts +14 -0
  401. package/bin/types/src/agent/theme-suite-renderer.d.ts +8 -0
  402. package/bin/types/src/agent/theme-suite-style.d.ts +1 -0
  403. package/bin/types/src/agent/theme-suites.d.ts +1 -0
  404. package/bin/types/src/agent/theme-thumbnails.d.ts +8 -0
  405. package/bin/types/src/agent/trace.d.ts +337 -0
  406. package/bin/types/src/agent/workflow-config.d.ts +25 -0
  407. package/bin/types/src/agent/workflow.d.ts +104 -0
  408. package/bin/types/src/blocks/library-profile.d.ts +9 -0
  409. package/bin/types/src/blocks/metadata.d.ts +65 -0
  410. package/bin/types/src/build/index.d.ts +29 -0
  411. package/bin/types/src/build/responsive-media.d.ts +19 -0
  412. package/bin/types/src/build/serve.d.ts +4 -0
  413. package/bin/types/src/build/static-output.d.ts +2 -0
  414. package/bin/types/src/build/verified.d.ts +1 -0
  415. package/bin/types/src/cli/api.d.ts +17 -0
  416. package/bin/types/src/cli/deploy.d.ts +21 -0
  417. package/bin/types/src/cli/doctor.d.ts +16 -0
  418. package/bin/types/src/cli/events.d.ts +16 -0
  419. package/bin/types/src/cli/feedback.d.ts +21 -0
  420. package/bin/types/src/cli/forms.d.ts +16 -0
  421. package/bin/types/src/cli/index.d.ts +1 -0
  422. package/bin/types/src/cli/lifecycle.d.ts +18 -0
  423. package/bin/types/src/cli/preserve.d.ts +8 -0
  424. package/bin/types/src/cli/preview.d.ts +14 -0
  425. package/bin/types/src/cli/refine.d.ts +41 -0
  426. package/bin/types/src/cli/root.d.ts +3 -0
  427. package/bin/types/src/cli/run.d.ts +30 -0
  428. package/bin/types/src/cli/share.d.ts +17 -0
  429. package/bin/types/src/cli/site-create.d.ts +24 -0
  430. package/bin/types/src/cli/site-migrate.d.ts +11 -0
  431. package/bin/types/src/cli/status.d.ts +8 -0
  432. package/bin/types/src/cli/types.d.ts +34 -0
  433. package/bin/types/src/cli/upgrade.d.ts +11 -0
  434. package/bin/types/src/cli/verify.d.ts +17 -0
  435. package/bin/types/src/cli/workflow-argv.d.ts +2 -0
  436. package/bin/types/src/compile/flatten.d.ts +23 -0
  437. package/bin/types/src/compile/frontmatter.d.ts +10 -0
  438. package/bin/types/src/compile/icons.d.ts +2 -0
  439. package/bin/types/src/compile/paths.d.ts +4 -0
  440. package/bin/types/src/compile/primitives.d.ts +2 -0
  441. package/bin/types/src/compile/scroll-motion.d.ts +14 -0
  442. package/bin/types/src/compile/site.d.ts +40 -0
  443. package/bin/types/src/editing/identity.d.ts +7 -0
  444. package/bin/types/src/editing/manifest.d.ts +38 -0
  445. package/bin/types/src/engine/checks.d.ts +2 -0
  446. package/bin/types/src/engine/contracts.d.ts +104 -0
  447. package/bin/types/src/engine/impact.d.ts +3 -0
  448. package/bin/types/src/engine/index.d.ts +70 -0
  449. package/bin/types/src/engine/revision.d.ts +5 -0
  450. package/bin/types/src/forms/cloudflare.d.ts +24 -0
  451. package/bin/types/src/forms/config.d.ts +34 -0
  452. package/bin/types/src/forms/frontend.d.ts +9 -0
  453. package/bin/types/src/html.d.ts +3 -0
  454. package/bin/types/src/icons/catalog.d.ts +28 -0
  455. package/bin/types/src/icons/coverage.d.ts +12 -0
  456. package/bin/types/src/icons/drawing.d.ts +7 -0
  457. package/bin/types/src/icons/duotone.d.ts +4 -0
  458. package/bin/types/src/icons/index.d.ts +37 -0
  459. package/bin/types/src/icons/industry-refinements-v4.d.ts +4 -0
  460. package/bin/types/src/icons/industry-review.d.ts +11 -0
  461. package/bin/types/src/icons/industry.d.ts +2 -0
  462. package/bin/types/src/icons/refinements.d.ts +5 -0
  463. package/bin/types/src/icons/studio-industry-review.d.ts +9 -0
  464. package/bin/types/src/icons/studio-industry.d.ts +5 -0
  465. package/bin/types/src/icons/studio.d.ts +34 -0
  466. package/bin/types/src/integrations/cloudflare-pages.d.ts +10 -0
  467. package/bin/types/src/integrations/deployment-smoke.d.ts +11 -0
  468. package/bin/types/src/integrations/hosting.d.ts +33 -0
  469. package/bin/types/src/integrations/wrangler-command.d.ts +5 -0
  470. package/bin/types/src/knowledge/artifact-order.d.ts +1 -0
  471. package/bin/types/src/knowledge/artifact.d.ts +11 -0
  472. package/bin/types/src/knowledge/composition.d.ts +54 -0
  473. package/bin/types/src/knowledge/contracts.d.ts +111 -0
  474. package/bin/types/src/knowledge/explain.d.ts +6 -0
  475. package/bin/types/src/knowledge/pack.d.ts +32 -0
  476. package/bin/types/src/knowledge/selection.d.ts +18 -0
  477. package/bin/types/src/knowledge/site-widgets.d.ts +6 -0
  478. package/bin/types/src/onboard/brief.d.ts +182 -0
  479. package/bin/types/src/onboard/classify.d.ts +31 -0
  480. package/bin/types/src/onboard/crawl-order.d.ts +7 -0
  481. package/bin/types/src/onboard/extract.d.ts +102 -0
  482. package/bin/types/src/onboard/harvest-inventory.d.ts +84 -0
  483. package/bin/types/src/onboard/outline.d.ts +13 -0
  484. package/bin/types/src/onboard/quality.d.ts +6 -0
  485. package/bin/types/src/onboard/shortlist.d.ts +11 -0
  486. package/bin/types/src/onboard/social.d.ts +15 -0
  487. package/bin/types/src/onboard/visual-hints.d.ts +12 -0
  488. package/bin/types/src/preserve/build.d.ts +1 -0
  489. package/bin/types/src/preserve/capture.d.ts +21 -0
  490. package/bin/types/src/preserve/components.d.ts +10 -0
  491. package/bin/types/src/preserve/config.d.ts +53 -0
  492. package/bin/types/src/preserve/embeds.d.ts +15 -0
  493. package/bin/types/src/preserve/hovers.d.ts +10 -0
  494. package/bin/types/src/preserve/react-capabilities.d.ts +2 -0
  495. package/bin/types/src/preserve/runtime.d.ts +2 -0
  496. package/bin/types/src/preserve/source-defects.d.ts +4 -0
  497. package/bin/types/src/preserve/supplement.d.ts +3 -0
  498. package/bin/types/src/preserve/verify.d.ts +29 -0
  499. package/bin/types/src/render.d.ts +10 -0
  500. package/bin/types/src/runtime/beacon.d.ts +2 -0
  501. package/bin/types/src/runtime/before-after.d.ts +2 -0
  502. package/bin/types/src/runtime/carousel.d.ts +2 -0
  503. package/bin/types/src/runtime/cookie-compliance.d.ts +14 -0
  504. package/bin/types/src/runtime/experience.d.ts +4 -0
  505. package/bin/types/src/runtime/header.d.ts +2 -0
  506. package/bin/types/src/runtime/leads.d.ts +2 -0
  507. package/bin/types/src/runtime/lightbox.d.ts +2 -0
  508. package/bin/types/src/runtime/scroll-motion.generated.d.ts +4 -0
  509. package/bin/types/src/runtime/tabs.d.ts +2 -0
  510. package/bin/types/src/schema.d.ts +27 -0
  511. package/bin/types/src/stock/library.d.ts +14 -0
  512. package/bin/types/src/stock/search.d.ts +30 -0
  513. package/bin/types/src/stock/selection.d.ts +30 -0
  514. package/bin/types/src/stock/types.d.ts +54 -0
  515. package/bin/types/src/theme.d.ts +3 -0
  516. package/bin/types/src/types.d.ts +115 -0
  517. package/bin/types/src/upgrade/kit.d.ts +48 -0
  518. package/bin/vitris-art.js +192 -0
  519. package/bin/vitris-blocks.js +238 -0
  520. package/bin/vitris-build.js +24 -0
  521. package/bin/vitris-catalog.js +49 -0
  522. package/bin/vitris-content-coverage.js +21 -0
  523. package/bin/vitris-create-site.js +86 -0
  524. package/bin/vitris-cursor-hook.js +61 -0
  525. package/bin/vitris-eval.js +76 -0
  526. package/bin/vitris-go.js +99 -0
  527. package/bin/vitris-harvest.js +184 -0
  528. package/bin/vitris-icons.js +168 -0
  529. package/bin/vitris-knowledge.js +43 -0
  530. package/bin/vitris-launch-preflight.js +964 -0
  531. package/bin/vitris-media-serve.js +50 -0
  532. package/bin/vitris-migrate-site.js +20 -0
  533. package/bin/vitris-motion-view.js +80 -0
  534. package/bin/vitris-prepare-media.js +64 -0
  535. package/bin/vitris-preview.js +36 -0
  536. package/bin/vitris-references.js +173 -0
  537. package/bin/vitris-refresh.js +50 -0
  538. package/bin/vitris-sign-publish-bundle.js +64 -0
  539. package/bin/vitris-stock.js +161 -0
  540. package/bin/vitris-templates.js +261 -0
  541. package/bin/vitris-themes.js +321 -0
  542. package/bin/vitris-upgrade.js +50 -0
  543. package/bin/vitris-verify-browser.js +662 -0
  544. package/bin/vitris-verify-performance.js +44 -0
  545. package/bin/vitris.js +50 -0
  546. package/blocks/CONVENTIONS.md +121 -0
  547. package/blocks/INDEX.md +130 -0
  548. package/blocks/about/about-awards/README.md +36 -0
  549. package/blocks/about/about-awards/styles.css +13 -0
  550. package/blocks/about/about-awards/template.html +1 -0
  551. package/blocks/about/about-credentials/README.md +33 -0
  552. package/blocks/about/about-credentials/block.meta.json +85 -0
  553. package/blocks/about/about-credentials/styles.css +4 -0
  554. package/blocks/about/about-credentials/template.html +1 -0
  555. package/blocks/about/about-founder/README.md +35 -0
  556. package/blocks/about/about-founder/styles.css +9 -0
  557. package/blocks/about/about-founder/template.html +1 -0
  558. package/blocks/about/about-mission/README.md +31 -0
  559. package/blocks/about/about-mission/styles.css +5 -0
  560. package/blocks/about/about-mission/template.html +1 -0
  561. package/blocks/about/about-statement/README.md +28 -0
  562. package/blocks/about/about-statement/styles.css +7 -0
  563. package/blocks/about/about-statement/template.html +1 -0
  564. package/blocks/about/about-story/README.md +35 -0
  565. package/blocks/about/about-story/styles.css +5 -0
  566. package/blocks/about/about-story/template.html +1 -0
  567. package/blocks/about/about-timeline/README.md +33 -0
  568. package/blocks/about/about-timeline/styles.css +8 -0
  569. package/blocks/about/about-timeline/template.html +1 -0
  570. package/blocks/about/about-values/README.md +31 -0
  571. package/blocks/about/about-values/styles.css +3 -0
  572. package/blocks/about/about-values/template.html +1 -0
  573. package/blocks/blog/blog-featured/README.md +39 -0
  574. package/blocks/blog/blog-featured/styles.css +12 -0
  575. package/blocks/blog/blog-featured/template.html +1 -0
  576. package/blocks/blog/blog-index/README.md +34 -0
  577. package/blocks/blog/blog-index/styles.css +6 -0
  578. package/blocks/blog/blog-index/template.html +1 -0
  579. package/blocks/blog/blog-post-header/README.md +31 -0
  580. package/blocks/blog/blog-post-header/styles.css +8 -0
  581. package/blocks/blog/blog-post-header/template.html +1 -0
  582. package/blocks/contact/contact-cards/README.md +32 -0
  583. package/blocks/contact/contact-cards/styles.css +7 -0
  584. package/blocks/contact/contact-cards/template.html +1 -0
  585. package/blocks/contact/contact-chips/README.md +41 -0
  586. package/blocks/contact/contact-chips/styles.css +13 -0
  587. package/blocks/contact/contact-chips/template.html +1 -0
  588. package/blocks/contact/contact-hours/README.md +41 -0
  589. package/blocks/contact/contact-hours/block.meta.json +87 -0
  590. package/blocks/contact/contact-hours/styles.css +8 -0
  591. package/blocks/contact/contact-hours/template.html +1 -0
  592. package/blocks/contact/contact-map/README.md +39 -0
  593. package/blocks/contact/contact-map/styles.css +10 -0
  594. package/blocks/contact/contact-map/template.html +1 -0
  595. package/blocks/contact/contact-offices/README.md +32 -0
  596. package/blocks/contact/contact-offices/styles.css +8 -0
  597. package/blocks/contact/contact-offices/template.html +1 -0
  598. package/blocks/contact/contact-phone-first/README.md +33 -0
  599. package/blocks/contact/contact-phone-first/block.meta.json +86 -0
  600. package/blocks/contact/contact-phone-first/styles.css +11 -0
  601. package/blocks/contact/contact-phone-first/template.html +1 -0
  602. package/blocks/contact/contact-split/README.md +43 -0
  603. package/blocks/contact/contact-split/styles.css +12 -0
  604. package/blocks/contact/contact-split/template.html +1 -0
  605. package/blocks/contact/contact-visit/README.md +36 -0
  606. package/blocks/contact/contact-visit/block.meta.json +88 -0
  607. package/blocks/contact/contact-visit/styles.css +13 -0
  608. package/blocks/contact/contact-visit/template.html +1 -0
  609. package/blocks/contact/service-areas/README.md +32 -0
  610. package/blocks/contact/service-areas/styles.css +9 -0
  611. package/blocks/contact/service-areas/template.html +1 -0
  612. package/blocks/content/glossary/README.md +35 -0
  613. package/blocks/content/glossary/styles.css +6 -0
  614. package/blocks/content/glossary/template.html +1 -0
  615. package/blocks/content/list-split/README.md +33 -0
  616. package/blocks/content/list-split/styles.css +13 -0
  617. package/blocks/content/list-split/template.html +1 -0
  618. package/blocks/content/prose-split/README.md +32 -0
  619. package/blocks/content/prose-split/styles.css +12 -0
  620. package/blocks/content/prose-split/template.html +1 -0
  621. package/blocks/content/specification-ledger/README.md +32 -0
  622. package/blocks/content/specification-ledger/block.meta.json +85 -0
  623. package/blocks/content/specification-ledger/styles.css +10 -0
  624. package/blocks/content/specification-ledger/template.html +1 -0
  625. package/blocks/cta/cta-band/README.md +33 -0
  626. package/blocks/cta/cta-band/styles.css +11 -0
  627. package/blocks/cta/cta-band/template.html +1 -0
  628. package/blocks/cta/cta-card/README.md +35 -0
  629. package/blocks/cta/cta-card/styles.css +8 -0
  630. package/blocks/cta/cta-card/template.html +1 -0
  631. package/blocks/cta/cta-floating-bar/README.md +28 -0
  632. package/blocks/cta/cta-floating-bar/styles.css +8 -0
  633. package/blocks/cta/cta-floating-bar/template.html +1 -0
  634. package/blocks/cta/cta-inline/README.md +30 -0
  635. package/blocks/cta/cta-inline/styles.css +9 -0
  636. package/blocks/cta/cta-inline/template.html +1 -0
  637. package/blocks/cta/cta-newsletter/README.md +34 -0
  638. package/blocks/cta/cta-newsletter/styles.css +8 -0
  639. package/blocks/cta/cta-newsletter/template.html +1 -0
  640. package/blocks/cta/cta-photo-fan/README.md +36 -0
  641. package/blocks/cta/cta-photo-fan/styles.css +14 -0
  642. package/blocks/cta/cta-photo-fan/template.html +1 -0
  643. package/blocks/cta/cta-split/README.md +38 -0
  644. package/blocks/cta/cta-split/styles.css +10 -0
  645. package/blocks/cta/cta-split/template.html +1 -0
  646. package/blocks/faq/faq-accordion/README.md +36 -0
  647. package/blocks/faq/faq-accordion/styles.css +6 -0
  648. package/blocks/faq/faq-accordion/template.html +1 -0
  649. package/blocks/faq/faq-grouped/README.md +40 -0
  650. package/blocks/faq/faq-grouped/styles.css +20 -0
  651. package/blocks/faq/faq-grouped/template.html +1 -0
  652. package/blocks/faq/faq-split/README.md +37 -0
  653. package/blocks/faq/faq-split/styles.css +5 -0
  654. package/blocks/faq/faq-split/template.html +1 -0
  655. package/blocks/faq/faq-tabs/README.md +36 -0
  656. package/blocks/faq/faq-tabs/styles.css +3 -0
  657. package/blocks/faq/faq-tabs/template.html +1 -0
  658. package/blocks/feature/feature-bento/README.md +33 -0
  659. package/blocks/feature/feature-bento/styles.css +7 -0
  660. package/blocks/feature/feature-bento/template.html +1 -0
  661. package/blocks/feature/feature-compare-table/README.md +44 -0
  662. package/blocks/feature/feature-compare-table/styles.css +15 -0
  663. package/blocks/feature/feature-compare-table/template.html +1 -0
  664. package/blocks/feature/feature-comparison/README.md +34 -0
  665. package/blocks/feature/feature-comparison/styles.css +6 -0
  666. package/blocks/feature/feature-comparison/template.html +1 -0
  667. package/blocks/feature/feature-grid-3/README.md +34 -0
  668. package/blocks/feature/feature-grid-3/styles.css +8 -0
  669. package/blocks/feature/feature-grid-3/template.html +1 -0
  670. package/blocks/feature/feature-icon-list/README.md +39 -0
  671. package/blocks/feature/feature-icon-list/styles.css +9 -0
  672. package/blocks/feature/feature-icon-list/template.html +1 -0
  673. package/blocks/feature/feature-spotlight/README.md +39 -0
  674. package/blocks/feature/feature-spotlight/styles.css +5 -0
  675. package/blocks/feature/feature-spotlight/template.html +1 -0
  676. package/blocks/feature/feature-stats-band/README.md +33 -0
  677. package/blocks/feature/feature-stats-band/styles.css +8 -0
  678. package/blocks/feature/feature-stats-band/template.html +1 -0
  679. package/blocks/feature/feature-tabs/README.md +38 -0
  680. package/blocks/feature/feature-tabs/styles.css +7 -0
  681. package/blocks/feature/feature-tabs/template.html +1 -0
  682. package/blocks/feature/feature-thumb-list/README.md +38 -0
  683. package/blocks/feature/feature-thumb-list/styles.css +13 -0
  684. package/blocks/feature/feature-thumb-list/template.html +1 -0
  685. package/blocks/feature/feature-zigzag/README.md +31 -0
  686. package/blocks/feature/feature-zigzag/styles.css +6 -0
  687. package/blocks/feature/feature-zigzag/template.html +1 -0
  688. package/blocks/footer/footer-columns/README.md +39 -0
  689. package/blocks/footer/footer-columns/styles.css +16 -0
  690. package/blocks/footer/footer-columns/template.html +1 -0
  691. package/blocks/footer/footer-compact/README.md +33 -0
  692. package/blocks/footer/footer-compact/styles.css +12 -0
  693. package/blocks/footer/footer-compact/template.html +1 -0
  694. package/blocks/footer/footer-cta/README.md +37 -0
  695. package/blocks/footer/footer-cta/styles.css +18 -0
  696. package/blocks/footer/footer-cta/template.html +1 -0
  697. package/blocks/footer/footer-social/README.md +37 -0
  698. package/blocks/footer/footer-social/styles.css +17 -0
  699. package/blocks/footer/footer-social/template.html +1 -0
  700. package/blocks/footer/footer-wordmark/README.md +40 -0
  701. package/blocks/footer/footer-wordmark/styles.css +19 -0
  702. package/blocks/footer/footer-wordmark/template.html +1 -0
  703. package/blocks/gallery/gallery-before-after/README.md +31 -0
  704. package/blocks/gallery/gallery-before-after/styles.css +6 -0
  705. package/blocks/gallery/gallery-before-after/template.html +1 -0
  706. package/blocks/gallery/gallery-carousel/README.md +32 -0
  707. package/blocks/gallery/gallery-carousel/styles.css +7 -0
  708. package/blocks/gallery/gallery-carousel/template.html +1 -0
  709. package/blocks/gallery/gallery-grid/README.md +39 -0
  710. package/blocks/gallery/gallery-grid/styles.css +13 -0
  711. package/blocks/gallery/gallery-grid/template.html +1 -0
  712. package/blocks/gallery/gallery-masonry/README.md +33 -0
  713. package/blocks/gallery/gallery-masonry/styles.css +4 -0
  714. package/blocks/gallery/gallery-masonry/template.html +1 -0
  715. package/blocks/gallery/gallery-mosaic-split/README.md +40 -0
  716. package/blocks/gallery/gallery-mosaic-split/styles.css +15 -0
  717. package/blocks/gallery/gallery-mosaic-split/template.html +1 -0
  718. package/blocks/hero/hero-asymmetric/README.md +34 -0
  719. package/blocks/hero/hero-asymmetric/styles.css +13 -0
  720. package/blocks/hero/hero-asymmetric/template.html +10 -0
  721. package/blocks/hero/hero-before-after/README.md +38 -0
  722. package/blocks/hero/hero-before-after/styles.css +8 -0
  723. package/blocks/hero/hero-before-after/template.html +19 -0
  724. package/blocks/hero/hero-editorial/README.md +34 -0
  725. package/blocks/hero/hero-editorial/block.meta.json +85 -0
  726. package/blocks/hero/hero-editorial/styles.css +6 -0
  727. package/blocks/hero/hero-editorial/template.html +10 -0
  728. package/blocks/hero/hero-evidence/README.md +32 -0
  729. package/blocks/hero/hero-evidence/block.meta.json +85 -0
  730. package/blocks/hero/hero-evidence/styles.css +13 -0
  731. package/blocks/hero/hero-evidence/template.html +1 -0
  732. package/blocks/hero/hero-form/README.md +46 -0
  733. package/blocks/hero/hero-form/styles.css +11 -0
  734. package/blocks/hero/hero-form/template.html +15 -0
  735. package/blocks/hero/hero-menu/README.md +36 -0
  736. package/blocks/hero/hero-menu/styles.css +7 -0
  737. package/blocks/hero/hero-menu/template.html +10 -0
  738. package/blocks/hero/hero-overlay/README.md +35 -0
  739. package/blocks/hero/hero-overlay/styles.css +14 -0
  740. package/blocks/hero/hero-overlay/template.html +10 -0
  741. package/blocks/hero/hero-page/README.md +35 -0
  742. package/blocks/hero/hero-page/styles.css +19 -0
  743. package/blocks/hero/hero-page/template.html +1 -0
  744. package/blocks/hero/hero-product/README.md +41 -0
  745. package/blocks/hero/hero-product/styles.css +11 -0
  746. package/blocks/hero/hero-product/template.html +14 -0
  747. package/blocks/hero/hero-service/README.md +37 -0
  748. package/blocks/hero/hero-service/block.meta.json +85 -0
  749. package/blocks/hero/hero-service/styles.css +17 -0
  750. package/blocks/hero/hero-service/template.html +1 -0
  751. package/blocks/hero/hero-split/README.md +36 -0
  752. package/blocks/hero/hero-split/styles.css +7 -0
  753. package/blocks/hero/hero-split/template.html +11 -0
  754. package/blocks/hero/hero-statement/README.md +33 -0
  755. package/blocks/hero/hero-statement/styles.css +8 -0
  756. package/blocks/hero/hero-statement/template.html +1 -0
  757. package/blocks/hero/hero-stats/README.md +37 -0
  758. package/blocks/hero/hero-stats/styles.css +10 -0
  759. package/blocks/hero/hero-stats/template.html +10 -0
  760. package/blocks/hero/hero-video-still/README.md +36 -0
  761. package/blocks/hero/hero-video-still/styles.css +9 -0
  762. package/blocks/hero/hero-video-still/template.html +13 -0
  763. package/blocks/icons.md +44 -0
  764. package/blocks/incentives/incentive-banner/README.md +28 -0
  765. package/blocks/incentives/incentive-banner/styles.css +7 -0
  766. package/blocks/incentives/incentive-banner/template.html +1 -0
  767. package/blocks/incentives/incentive-cards/README.md +31 -0
  768. package/blocks/incentives/incentive-cards/styles.css +4 -0
  769. package/blocks/incentives/incentive-cards/template.html +1 -0
  770. package/blocks/navbar/nav-announcement/README.md +35 -0
  771. package/blocks/navbar/nav-announcement/styles.css +10 -0
  772. package/blocks/navbar/nav-announcement/template.html +14 -0
  773. package/blocks/navbar/nav-centered/README.md +35 -0
  774. package/blocks/navbar/nav-centered/styles.css +11 -0
  775. package/blocks/navbar/nav-centered/template.html +12 -0
  776. package/blocks/navbar/nav-minimal/README.md +29 -0
  777. package/blocks/navbar/nav-minimal/styles.css +5 -0
  778. package/blocks/navbar/nav-minimal/template.html +6 -0
  779. package/blocks/navbar/nav-split/README.md +34 -0
  780. package/blocks/navbar/nav-split/styles.css +11 -0
  781. package/blocks/navbar/nav-split/template.html +11 -0
  782. package/blocks/navbar/nav-utility/README.md +37 -0
  783. package/blocks/navbar/nav-utility/styles.css +17 -0
  784. package/blocks/navbar/nav-utility/template.html +12 -0
  785. package/blocks/pricing/menu-featured/README.md +34 -0
  786. package/blocks/pricing/menu-featured/styles.css +4 -0
  787. package/blocks/pricing/menu-featured/template.html +1 -0
  788. package/blocks/pricing/menu-sections/README.md +33 -0
  789. package/blocks/pricing/menu-sections/styles.css +9 -0
  790. package/blocks/pricing/menu-sections/template.html +1 -0
  791. package/blocks/pricing/pricing-table/README.md +40 -0
  792. package/blocks/pricing/pricing-table/styles.css +9 -0
  793. package/blocks/pricing/pricing-table/template.html +1 -0
  794. package/blocks/pricing/pricing-tiers/README.md +34 -0
  795. package/blocks/pricing/pricing-tiers/styles.css +7 -0
  796. package/blocks/pricing/pricing-tiers/template.html +1 -0
  797. package/blocks/pricing/pricing-toggle/README.md +34 -0
  798. package/blocks/pricing/pricing-toggle/styles.css +10 -0
  799. package/blocks/pricing/pricing-toggle/template.html +1 -0
  800. package/blocks/process/process-carousel/README.md +33 -0
  801. package/blocks/process/process-carousel/styles.css +5 -0
  802. package/blocks/process/process-carousel/template.html +1 -0
  803. package/blocks/process/process-split/README.md +35 -0
  804. package/blocks/process/process-split/styles.css +6 -0
  805. package/blocks/process/process-split/template.html +1 -0
  806. package/blocks/process/process-stepper/README.md +40 -0
  807. package/blocks/process/process-stepper/styles.css +11 -0
  808. package/blocks/process/process-stepper/template.html +1 -0
  809. package/blocks/process/process-steps/README.md +35 -0
  810. package/blocks/process/process-steps/styles.css +6 -0
  811. package/blocks/process/process-steps/template.html +1 -0
  812. package/blocks/process/process-sticky/README.md +38 -0
  813. package/blocks/process/process-sticky/styles.css +12 -0
  814. package/blocks/process/process-sticky/template.html +1 -0
  815. package/blocks/process/process-timeline/README.md +35 -0
  816. package/blocks/process/process-timeline/styles.css +10 -0
  817. package/blocks/process/process-timeline/template.html +1 -0
  818. package/blocks/services/services-cards/README.md +34 -0
  819. package/blocks/services/services-cards/styles.css +3 -0
  820. package/blocks/services/services-cards/template.html +1 -0
  821. package/blocks/services/services-carousel/README.md +34 -0
  822. package/blocks/services/services-carousel/styles.css +6 -0
  823. package/blocks/services/services-carousel/template.html +1 -0
  824. package/blocks/services/services-list/README.md +32 -0
  825. package/blocks/services/services-list/block.meta.json +85 -0
  826. package/blocks/services/services-list/styles.css +10 -0
  827. package/blocks/services/services-list/template.html +1 -0
  828. package/blocks/services/services-menu/README.md +39 -0
  829. package/blocks/services/services-menu/styles.css +6 -0
  830. package/blocks/services/services-menu/template.html +1 -0
  831. package/blocks/services/services-packages/README.md +34 -0
  832. package/blocks/services/services-packages/styles.css +6 -0
  833. package/blocks/services/services-packages/template.html +1 -0
  834. package/blocks/services/services-panels/README.md +36 -0
  835. package/blocks/services/services-panels/styles.css +15 -0
  836. package/blocks/services/services-panels/template.html +1 -0
  837. package/blocks/services/services-photo-grid/README.md +39 -0
  838. package/blocks/services/services-photo-grid/styles.css +10 -0
  839. package/blocks/services/services-photo-grid/template.html +1 -0
  840. package/blocks/services/services-priority/README.md +33 -0
  841. package/blocks/services/services-priority/block.meta.json +86 -0
  842. package/blocks/services/services-priority/styles.css +16 -0
  843. package/blocks/services/services-priority/template.html +1 -0
  844. package/blocks/stats/stats-cards/README.md +31 -0
  845. package/blocks/stats/stats-cards/styles.css +4 -0
  846. package/blocks/stats/stats-cards/template.html +1 -0
  847. package/blocks/stats/stats-mosaic/README.md +27 -0
  848. package/blocks/stats/stats-mosaic/styles.css +9 -0
  849. package/blocks/stats/stats-mosaic/template.html +1 -0
  850. package/blocks/stats/stats-row/README.md +29 -0
  851. package/blocks/stats/stats-row/styles.css +8 -0
  852. package/blocks/stats/stats-row/template.html +1 -0
  853. package/blocks/stats/stats-split/README.md +35 -0
  854. package/blocks/stats/stats-split/styles.css +3 -0
  855. package/blocks/stats/stats-split/template.html +1 -0
  856. package/blocks/team/team-featured/README.md +42 -0
  857. package/blocks/team/team-featured/styles.css +9 -0
  858. package/blocks/team/team-featured/template.html +1 -0
  859. package/blocks/team/team-grid/README.md +35 -0
  860. package/blocks/team/team-grid/styles.css +8 -0
  861. package/blocks/team/team-grid/template.html +1 -0
  862. package/blocks/team/team-list/README.md +32 -0
  863. package/blocks/team/team-list/styles.css +7 -0
  864. package/blocks/team/team-list/template.html +1 -0
  865. package/blocks/testimonial/testimonial-carousel/README.md +32 -0
  866. package/blocks/testimonial/testimonial-carousel/styles.css +7 -0
  867. package/blocks/testimonial/testimonial-carousel/template.html +1 -0
  868. package/blocks/testimonial/testimonial-grid/README.md +32 -0
  869. package/blocks/testimonial/testimonial-grid/styles.css +5 -0
  870. package/blocks/testimonial/testimonial-grid/template.html +1 -0
  871. package/blocks/testimonial/testimonial-mosaic/README.md +38 -0
  872. package/blocks/testimonial/testimonial-mosaic/styles.css +14 -0
  873. package/blocks/testimonial/testimonial-mosaic/template.html +1 -0
  874. package/blocks/testimonial/testimonial-platform/README.md +34 -0
  875. package/blocks/testimonial/testimonial-platform/styles.css +17 -0
  876. package/blocks/testimonial/testimonial-platform/template.html +1 -0
  877. package/blocks/testimonial/testimonial-rating/README.md +28 -0
  878. package/blocks/testimonial/testimonial-rating/styles.css +6 -0
  879. package/blocks/testimonial/testimonial-rating/template.html +1 -0
  880. package/blocks/testimonial/testimonial-spotlight/README.md +31 -0
  881. package/blocks/testimonial/testimonial-spotlight/styles.css +9 -0
  882. package/blocks/testimonial/testimonial-spotlight/template.html +1 -0
  883. package/blocks/testimonial/testimonial-switcher/README.md +39 -0
  884. package/blocks/testimonial/testimonial-switcher/styles.css +23 -0
  885. package/blocks/testimonial/testimonial-switcher/template.html +1 -0
  886. package/blocks/testimonial/testimonial-wall/README.md +34 -0
  887. package/blocks/testimonial/testimonial-wall/styles.css +7 -0
  888. package/blocks/testimonial/testimonial-wall/template.html +1 -0
  889. package/blocks/trust-strip/trust-badges/README.md +30 -0
  890. package/blocks/trust-strip/trust-badges/styles.css +5 -0
  891. package/blocks/trust-strip/trust-badges/template.html +1 -0
  892. package/blocks/trust-strip/trust-certs/README.md +31 -0
  893. package/blocks/trust-strip/trust-certs/styles.css +12 -0
  894. package/blocks/trust-strip/trust-certs/template.html +1 -0
  895. package/blocks/trust-strip/trust-logos/README.md +32 -0
  896. package/blocks/trust-strip/trust-logos/styles.css +5 -0
  897. package/blocks/trust-strip/trust-logos/template.html +1 -0
  898. package/blocks/trust-strip/trust-quote/README.md +29 -0
  899. package/blocks/trust-strip/trust-quote/styles.css +5 -0
  900. package/blocks/trust-strip/trust-quote/template.html +1 -0
  901. package/blocks/trust-strip/trust-reviews/README.md +35 -0
  902. package/blocks/trust-strip/trust-reviews/styles.css +9 -0
  903. package/blocks/trust-strip/trust-reviews/template.html +1 -0
  904. package/blocks/work/case-alternating/README.md +34 -0
  905. package/blocks/work/case-alternating/block.meta.json +86 -0
  906. package/blocks/work/case-alternating/styles.css +7 -0
  907. package/blocks/work/case-alternating/template.html +1 -0
  908. package/blocks/work/case-carousel/README.md +26 -0
  909. package/blocks/work/case-carousel/styles.css +7 -0
  910. package/blocks/work/case-carousel/template.html +1 -0
  911. package/blocks/work/case-header/README.md +38 -0
  912. package/blocks/work/case-header/styles.css +18 -0
  913. package/blocks/work/case-header/template.html +1 -0
  914. package/blocks/work/project-evidence/README.md +35 -0
  915. package/blocks/work/project-evidence/block.meta.json +87 -0
  916. package/blocks/work/project-evidence/styles.css +12 -0
  917. package/blocks/work/project-evidence/template.html +1 -0
  918. package/blocks/work/project-grid/README.md +38 -0
  919. package/blocks/work/project-grid/styles.css +9 -0
  920. package/blocks/work/project-grid/template.html +1 -0
  921. package/cloudflare/wrangler.forms-test.jsonc +19 -0
  922. package/cloudflare/wrangler.jsonc +14 -0
  923. package/cloudflare/wrangler.templates.jsonc +6 -0
  924. package/design-system/MASTER.md +76 -0
  925. package/design-system/calibration/v2/accuracy.html +1 -0
  926. package/design-system/calibration/v2/accuracy.png +0 -0
  927. package/design-system/calibration/v2/manifest.json +88 -0
  928. package/design-system/calibration/v2/probe.png +0 -0
  929. package/design-system/calibration/v2/vitris-northline-counsel-home-1280-viewport.png +0 -0
  930. package/design-system/calibration/v2/vitris-northline-counsel-home-375-viewport.png +0 -0
  931. package/design-system/calibration/v2/vitris-northline-counsel-planning-1280-viewport.png +0 -0
  932. package/design-system/calibration/v2/vitris-northline-counsel-planning-375-viewport.png +0 -0
  933. package/design-system/calibration/v2/vitris-tide-and-slate-home-1280-viewport.png +0 -0
  934. package/design-system/calibration/v2/vitris-tide-and-slate-home-375-viewport.png +0 -0
  935. package/design-system/calibration/v2/vitris-tide-and-slate-project-1280-viewport.png +0 -0
  936. package/design-system/calibration/v2/vitris-tide-and-slate-project-375-viewport.png +0 -0
  937. package/design-system/compositions/v1/README.md +13 -0
  938. package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/styles.css +11 -0
  939. package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/template.html +1 -0
  940. package/design-system/compositions/v1/northline-counsel/components/contact-visit/styles.css +13 -0
  941. package/design-system/compositions/v1/northline-counsel/components/contact-visit/template.html +1 -0
  942. package/design-system/compositions/v1/northline-counsel/components/footer-compact/styles.css +12 -0
  943. package/design-system/compositions/v1/northline-counsel/components/footer-compact/template.html +1 -0
  944. package/design-system/compositions/v1/northline-counsel/components/hero-evidence/styles.css +13 -0
  945. package/design-system/compositions/v1/northline-counsel/components/hero-evidence/template.html +1 -0
  946. package/design-system/compositions/v1/northline-counsel/components/hero-page/styles.css +19 -0
  947. package/design-system/compositions/v1/northline-counsel/components/hero-page/template.html +1 -0
  948. package/design-system/compositions/v1/northline-counsel/components/nav-split/styles.css +11 -0
  949. package/design-system/compositions/v1/northline-counsel/components/nav-split/template.html +11 -0
  950. package/design-system/compositions/v1/northline-counsel/components/services-priority/styles.css +16 -0
  951. package/design-system/compositions/v1/northline-counsel/components/services-priority/template.html +1 -0
  952. package/design-system/compositions/v1/northline-counsel/components/specification-ledger/styles.css +10 -0
  953. package/design-system/compositions/v1/northline-counsel/components/specification-ledger/template.html +1 -0
  954. package/design-system/compositions/v1/northline-counsel/direction.md +5 -0
  955. package/design-system/compositions/v1/northline-counsel/fixture-brief.json +10 -0
  956. package/design-system/compositions/v1/northline-counsel/media-inventory.json +1 -0
  957. package/design-system/compositions/v1/northline-counsel/pages/index.html +11 -0
  958. package/design-system/compositions/v1/northline-counsel/pages/planning.html +11 -0
  959. package/design-system/compositions/v1/northline-counsel/selection-receipt.json +36 -0
  960. package/design-system/compositions/v1/northline-counsel/site.json +1 -0
  961. package/design-system/compositions/v1/northline-counsel/storyboard.md +12 -0
  962. package/design-system/compositions/v1/northline-counsel/theme/defaults.json +1 -0
  963. package/design-system/compositions/v1/source-ledger.json +18 -0
  964. package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/styles.css +11 -0
  965. package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/template.html +1 -0
  966. package/design-system/compositions/v1/tide-and-slate/components/footer-compact/styles.css +12 -0
  967. package/design-system/compositions/v1/tide-and-slate/components/footer-compact/template.html +1 -0
  968. package/design-system/compositions/v1/tide-and-slate/components/hero-page/styles.css +19 -0
  969. package/design-system/compositions/v1/tide-and-slate/components/hero-page/template.html +1 -0
  970. package/design-system/compositions/v1/tide-and-slate/components/hero-split/styles.css +7 -0
  971. package/design-system/compositions/v1/tide-and-slate/components/hero-split/template.html +11 -0
  972. package/design-system/compositions/v1/tide-and-slate/components/nav-split/styles.css +11 -0
  973. package/design-system/compositions/v1/tide-and-slate/components/nav-split/template.html +11 -0
  974. package/design-system/compositions/v1/tide-and-slate/components/project-evidence/styles.css +12 -0
  975. package/design-system/compositions/v1/tide-and-slate/components/project-evidence/template.html +1 -0
  976. package/design-system/compositions/v1/tide-and-slate/components/services-priority/styles.css +16 -0
  977. package/design-system/compositions/v1/tide-and-slate/components/services-priority/template.html +1 -0
  978. package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/styles.css +10 -0
  979. package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/template.html +1 -0
  980. package/design-system/compositions/v1/tide-and-slate/direction.md +5 -0
  981. package/design-system/compositions/v1/tide-and-slate/fixture-brief.json +10 -0
  982. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp +0 -0
  983. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
  984. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp +0 -0
  985. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp.provenance.json +9 -0
  986. package/design-system/compositions/v1/tide-and-slate/media-inventory.json +7 -0
  987. package/design-system/compositions/v1/tide-and-slate/pages/index.html +10 -0
  988. package/design-system/compositions/v1/tide-and-slate/pages/project.html +10 -0
  989. package/design-system/compositions/v1/tide-and-slate/site.json +1 -0
  990. package/design-system/compositions/v1/tide-and-slate/storyboard.md +12 -0
  991. package/design-system/compositions/v1/tide-and-slate/theme/defaults.json +1 -0
  992. package/design-system/compositions/v2/catalog.json +4018 -0
  993. package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/styles.css +3 -0
  994. package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/template.html +1 -0
  995. package/design-system/compositions/v2/clearwell-directory/pages/detail/index.html +5 -0
  996. package/design-system/compositions/v2/clearwell-directory/pages/index.html +5 -0
  997. package/design-system/compositions/v2/clearwell-directory/site.json +7 -0
  998. package/design-system/compositions/v2/clearwell-directory/study.json +244 -0
  999. package/design-system/compositions/v2/clearwell-directory/theme/defaults.json +16 -0
  1000. package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/styles.css +2 -0
  1001. package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/template.html +1 -0
  1002. package/design-system/compositions/v2/clearwell-letter/pages/detail/index.html +5 -0
  1003. package/design-system/compositions/v2/clearwell-letter/pages/index.html +5 -0
  1004. package/design-system/compositions/v2/clearwell-letter/site.json +7 -0
  1005. package/design-system/compositions/v2/clearwell-letter/study.json +236 -0
  1006. package/design-system/compositions/v2/clearwell-letter/theme/defaults.json +16 -0
  1007. package/design-system/compositions/v2/dock-radio/components/study-dock-radio/styles.css +2 -0
  1008. package/design-system/compositions/v2/dock-radio/components/study-dock-radio/template.html +1 -0
  1009. package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav +0 -0
  1010. package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav.provenance.json +6 -0
  1011. package/design-system/compositions/v2/dock-radio/pages/detail/index.html +5 -0
  1012. package/design-system/compositions/v2/dock-radio/pages/index.html +5 -0
  1013. package/design-system/compositions/v2/dock-radio/site.json +7 -0
  1014. package/design-system/compositions/v2/dock-radio/study.json +288 -0
  1015. package/design-system/compositions/v2/dock-radio/theme/defaults.json +16 -0
  1016. package/design-system/compositions/v2/fen-repair/components/study-fen-repair/styles.css +2 -0
  1017. package/design-system/compositions/v2/fen-repair/components/study-fen-repair/template.html +1 -0
  1018. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp +0 -0
  1019. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
  1020. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp +0 -0
  1021. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp.provenance.json +9 -0
  1022. package/design-system/compositions/v2/fen-repair/pages/detail/index.html +5 -0
  1023. package/design-system/compositions/v2/fen-repair/pages/index.html +5 -0
  1024. package/design-system/compositions/v2/fen-repair/site.json +7 -0
  1025. package/design-system/compositions/v2/fen-repair/study.json +236 -0
  1026. package/design-system/compositions/v2/fen-repair/theme/defaults.json +16 -0
  1027. package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/styles.css +2 -0
  1028. package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/template.html +1 -0
  1029. package/design-system/compositions/v2/hearth-plane/pages/detail/index.html +5 -0
  1030. package/design-system/compositions/v2/hearth-plane/pages/index.html +5 -0
  1031. package/design-system/compositions/v2/hearth-plane/site.json +7 -0
  1032. package/design-system/compositions/v2/hearth-plane/study.json +238 -0
  1033. package/design-system/compositions/v2/hearth-plane/theme/defaults.json +16 -0
  1034. package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/styles.css +2 -0
  1035. package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/template.html +1 -0
  1036. package/design-system/compositions/v2/lacuna-objects/pages/detail/index.html +5 -0
  1037. package/design-system/compositions/v2/lacuna-objects/pages/index.html +5 -0
  1038. package/design-system/compositions/v2/lacuna-objects/site.json +7 -0
  1039. package/design-system/compositions/v2/lacuna-objects/study.json +242 -0
  1040. package/design-system/compositions/v2/lacuna-objects/theme/defaults.json +16 -0
  1041. package/design-system/compositions/v2/loop-room/components/study-loop-room/styles.css +2 -0
  1042. package/design-system/compositions/v2/loop-room/components/study-loop-room/template.html +1 -0
  1043. package/design-system/compositions/v2/loop-room/pages/detail/index.html +5 -0
  1044. package/design-system/compositions/v2/loop-room/pages/index.html +5 -0
  1045. package/design-system/compositions/v2/loop-room/site.json +7 -0
  1046. package/design-system/compositions/v2/loop-room/study.json +253 -0
  1047. package/design-system/compositions/v2/loop-room/theme/defaults.json +16 -0
  1048. package/design-system/compositions/v2/manifest.json +740 -0
  1049. package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/styles.css +2 -0
  1050. package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/template.html +1 -0
  1051. package/design-system/compositions/v2/mara-reading-room/pages/detail/index.html +5 -0
  1052. package/design-system/compositions/v2/mara-reading-room/pages/index.html +5 -0
  1053. package/design-system/compositions/v2/mara-reading-room/site.json +7 -0
  1054. package/design-system/compositions/v2/mara-reading-room/study.json +246 -0
  1055. package/design-system/compositions/v2/mara-reading-room/theme/defaults.json +16 -0
  1056. package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/styles.css +3 -0
  1057. package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/template.html +1 -0
  1058. package/design-system/compositions/v2/mara-specimen/pages/detail/index.html +5 -0
  1059. package/design-system/compositions/v2/mara-specimen/pages/index.html +5 -0
  1060. package/design-system/compositions/v2/mara-specimen/site.json +7 -0
  1061. package/design-system/compositions/v2/mara-specimen/study.json +244 -0
  1062. package/design-system/compositions/v2/mara-specimen/theme/defaults.json +16 -0
  1063. package/design-system/compositions/v2/margin-journal/components/study-margin-journal/styles.css +2 -0
  1064. package/design-system/compositions/v2/margin-journal/components/study-margin-journal/template.html +1 -0
  1065. package/design-system/compositions/v2/margin-journal/pages/detail/index.html +5 -0
  1066. package/design-system/compositions/v2/margin-journal/pages/index.html +5 -0
  1067. package/design-system/compositions/v2/margin-journal/site.json +7 -0
  1068. package/design-system/compositions/v2/margin-journal/study.json +242 -0
  1069. package/design-system/compositions/v2/margin-journal/theme/defaults.json +16 -0
  1070. package/design-system/compositions/v2/night-orchard/components/study-night-orchard/styles.css +2 -0
  1071. package/design-system/compositions/v2/night-orchard/components/study-night-orchard/template.html +1 -0
  1072. package/design-system/compositions/v2/night-orchard/pages/detail/index.html +5 -0
  1073. package/design-system/compositions/v2/night-orchard/pages/index.html +5 -0
  1074. package/design-system/compositions/v2/night-orchard/site.json +7 -0
  1075. package/design-system/compositions/v2/night-orchard/study.json +247 -0
  1076. package/design-system/compositions/v2/night-orchard/theme/defaults.json +16 -0
  1077. package/design-system/compositions/v2/previews/clearwell-directory-home-1440.png +0 -0
  1078. package/design-system/compositions/v2/previews/clearwell-directory-home-390.png +0 -0
  1079. package/design-system/compositions/v2/previews/clearwell-directory-interior-1440.png +0 -0
  1080. package/design-system/compositions/v2/previews/clearwell-directory-interior-390.png +0 -0
  1081. package/design-system/compositions/v2/previews/clearwell-letter-home-1440.png +0 -0
  1082. package/design-system/compositions/v2/previews/clearwell-letter-home-390.png +0 -0
  1083. package/design-system/compositions/v2/previews/clearwell-letter-interior-1440.png +0 -0
  1084. package/design-system/compositions/v2/previews/clearwell-letter-interior-390.png +0 -0
  1085. package/design-system/compositions/v2/previews/dock-radio-home-1440.png +0 -0
  1086. package/design-system/compositions/v2/previews/dock-radio-home-390.png +0 -0
  1087. package/design-system/compositions/v2/previews/dock-radio-interior-1440.png +0 -0
  1088. package/design-system/compositions/v2/previews/dock-radio-interior-390.png +0 -0
  1089. package/design-system/compositions/v2/previews/fen-repair-home-1440.png +0 -0
  1090. package/design-system/compositions/v2/previews/fen-repair-home-390.png +0 -0
  1091. package/design-system/compositions/v2/previews/fen-repair-interior-1440.png +0 -0
  1092. package/design-system/compositions/v2/previews/fen-repair-interior-390.png +0 -0
  1093. package/design-system/compositions/v2/previews/hearth-plane-home-1440.png +0 -0
  1094. package/design-system/compositions/v2/previews/hearth-plane-home-390.png +0 -0
  1095. package/design-system/compositions/v2/previews/hearth-plane-interior-1440.png +0 -0
  1096. package/design-system/compositions/v2/previews/hearth-plane-interior-390.png +0 -0
  1097. package/design-system/compositions/v2/previews/lacuna-objects-home-1440.png +0 -0
  1098. package/design-system/compositions/v2/previews/lacuna-objects-home-390.png +0 -0
  1099. package/design-system/compositions/v2/previews/lacuna-objects-interior-1440.png +0 -0
  1100. package/design-system/compositions/v2/previews/lacuna-objects-interior-390.png +0 -0
  1101. package/design-system/compositions/v2/previews/loop-room-home-1440.png +0 -0
  1102. package/design-system/compositions/v2/previews/loop-room-home-390.png +0 -0
  1103. package/design-system/compositions/v2/previews/loop-room-interior-1440.png +0 -0
  1104. package/design-system/compositions/v2/previews/loop-room-interior-390.png +0 -0
  1105. package/design-system/compositions/v2/previews/mara-reading-room-home-1440.png +0 -0
  1106. package/design-system/compositions/v2/previews/mara-reading-room-home-390.png +0 -0
  1107. package/design-system/compositions/v2/previews/mara-reading-room-interior-1440.png +0 -0
  1108. package/design-system/compositions/v2/previews/mara-reading-room-interior-390.png +0 -0
  1109. package/design-system/compositions/v2/previews/mara-specimen-home-1440.png +0 -0
  1110. package/design-system/compositions/v2/previews/mara-specimen-home-390.png +0 -0
  1111. package/design-system/compositions/v2/previews/mara-specimen-interior-1440.png +0 -0
  1112. package/design-system/compositions/v2/previews/mara-specimen-interior-390.png +0 -0
  1113. package/design-system/compositions/v2/previews/margin-journal-home-1440.png +0 -0
  1114. package/design-system/compositions/v2/previews/margin-journal-home-390.png +0 -0
  1115. package/design-system/compositions/v2/previews/margin-journal-interior-1440.png +0 -0
  1116. package/design-system/compositions/v2/previews/margin-journal-interior-390.png +0 -0
  1117. package/design-system/compositions/v2/previews/night-orchard-home-1440.png +0 -0
  1118. package/design-system/compositions/v2/previews/night-orchard-home-390.png +0 -0
  1119. package/design-system/compositions/v2/previews/night-orchard-interior-1440.png +0 -0
  1120. package/design-system/compositions/v2/previews/night-orchard-interior-390.png +0 -0
  1121. package/design-system/compositions/v2/previews/relay-workflow-home-1440.png +0 -0
  1122. package/design-system/compositions/v2/previews/relay-workflow-home-390.png +0 -0
  1123. package/design-system/compositions/v2/previews/relay-workflow-interior-1440.png +0 -0
  1124. package/design-system/compositions/v2/previews/relay-workflow-interior-390.png +0 -0
  1125. package/design-system/compositions/v2/previews/rivet-components-home-1440.png +0 -0
  1126. package/design-system/compositions/v2/previews/rivet-components-home-390.png +0 -0
  1127. package/design-system/compositions/v2/previews/rivet-components-interior-1440.png +0 -0
  1128. package/design-system/compositions/v2/previews/rivet-components-interior-390.png +0 -0
  1129. package/design-system/compositions/v2/previews/signal-fair-home-1440.png +0 -0
  1130. package/design-system/compositions/v2/previews/signal-fair-home-390.png +0 -0
  1131. package/design-system/compositions/v2/previews/signal-fair-interior-1440.png +0 -0
  1132. package/design-system/compositions/v2/previews/signal-fair-interior-390.png +0 -0
  1133. package/design-system/compositions/v2/previews/sundial-goods-home-1440.png +0 -0
  1134. package/design-system/compositions/v2/previews/sundial-goods-home-390.png +0 -0
  1135. package/design-system/compositions/v2/previews/sundial-goods-interior-1440.png +0 -0
  1136. package/design-system/compositions/v2/previews/sundial-goods-interior-390.png +0 -0
  1137. package/design-system/compositions/v2/previews/thread-mender-home-1440.png +0 -0
  1138. package/design-system/compositions/v2/previews/thread-mender-home-390.png +0 -0
  1139. package/design-system/compositions/v2/previews/thread-mender-interior-1440.png +0 -0
  1140. package/design-system/compositions/v2/previews/thread-mender-interior-390.png +0 -0
  1141. package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/styles.css +2 -0
  1142. package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/template.html +1 -0
  1143. package/design-system/compositions/v2/relay-workflow/pages/detail/index.html +5 -0
  1144. package/design-system/compositions/v2/relay-workflow/pages/index.html +5 -0
  1145. package/design-system/compositions/v2/relay-workflow/site.json +7 -0
  1146. package/design-system/compositions/v2/relay-workflow/study.json +283 -0
  1147. package/design-system/compositions/v2/relay-workflow/theme/defaults.json +16 -0
  1148. package/design-system/compositions/v2/rivet-components/components/study-rivet-components/styles.css +2 -0
  1149. package/design-system/compositions/v2/rivet-components/components/study-rivet-components/template.html +1 -0
  1150. package/design-system/compositions/v2/rivet-components/pages/detail/index.html +5 -0
  1151. package/design-system/compositions/v2/rivet-components/pages/index.html +5 -0
  1152. package/design-system/compositions/v2/rivet-components/site.json +7 -0
  1153. package/design-system/compositions/v2/rivet-components/study.json +241 -0
  1154. package/design-system/compositions/v2/rivet-components/theme/defaults.json +16 -0
  1155. package/design-system/compositions/v2/signal-fair/components/study-signal-fair/styles.css +2 -0
  1156. package/design-system/compositions/v2/signal-fair/components/study-signal-fair/template.html +1 -0
  1157. package/design-system/compositions/v2/signal-fair/pages/detail/index.html +5 -0
  1158. package/design-system/compositions/v2/signal-fair/pages/index.html +5 -0
  1159. package/design-system/compositions/v2/signal-fair/site.json +7 -0
  1160. package/design-system/compositions/v2/signal-fair/study.json +271 -0
  1161. package/design-system/compositions/v2/signal-fair/theme/defaults.json +16 -0
  1162. package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/styles.css +2 -0
  1163. package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/template.html +1 -0
  1164. package/design-system/compositions/v2/sundial-goods/pages/detail/index.html +5 -0
  1165. package/design-system/compositions/v2/sundial-goods/pages/index.html +5 -0
  1166. package/design-system/compositions/v2/sundial-goods/site.json +7 -0
  1167. package/design-system/compositions/v2/sundial-goods/study.json +247 -0
  1168. package/design-system/compositions/v2/sundial-goods/theme/defaults.json +16 -0
  1169. package/design-system/compositions/v2/thread-mender/components/study-thread-mender/styles.css +2 -0
  1170. package/design-system/compositions/v2/thread-mender/components/study-thread-mender/template.html +1 -0
  1171. package/design-system/compositions/v2/thread-mender/pages/detail/index.html +5 -0
  1172. package/design-system/compositions/v2/thread-mender/pages/index.html +5 -0
  1173. package/design-system/compositions/v2/thread-mender/site.json +7 -0
  1174. package/design-system/compositions/v2/thread-mender/study.json +253 -0
  1175. package/design-system/compositions/v2/thread-mender/theme/defaults.json +16 -0
  1176. package/design-system/knowledge/v1/README.md +8 -0
  1177. package/design-system/knowledge/v1/catalog.json +479 -0
  1178. package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.png +0 -0
  1179. package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.provenance.json +12 -0
  1180. package/design-system/knowledge/v1/demonstrations/mobile-strong.html +50 -0
  1181. package/design-system/knowledge/v1/demonstrations/mobile-weak.html +50 -0
  1182. package/design-system/knowledge/v1/demonstrations/project-strong.html +50 -0
  1183. package/design-system/knowledge/v1/demonstrations/project-weak.html +50 -0
  1184. package/design-system/knowledge/v1/demonstrations/repeat-strong.html +50 -0
  1185. package/design-system/knowledge/v1/demonstrations/repeat-weak.html +50 -0
  1186. package/design-system/knowledge/v1/demonstrations/services-strong.html +50 -0
  1187. package/design-system/knowledge/v1/demonstrations/services-weak.html +50 -0
  1188. package/design-system/knowledge/v1/demonstrations/sparse-strong.html +50 -0
  1189. package/design-system/knowledge/v1/demonstrations/sparse-weak.html +50 -0
  1190. package/design-system/knowledge/v1/demonstrations/type-strong.html +50 -0
  1191. package/design-system/knowledge/v1/demonstrations/type-weak.html +50 -0
  1192. package/design-system/knowledge/v1/manifest.json +88 -0
  1193. package/design-system/knowledge/v1/observations/mobile-strong-1080.png +0 -0
  1194. package/design-system/knowledge/v1/observations/mobile-strong-375.png +0 -0
  1195. package/design-system/knowledge/v1/observations/mobile-weak-1080.png +0 -0
  1196. package/design-system/knowledge/v1/observations/mobile-weak-375.png +0 -0
  1197. package/design-system/knowledge/v1/observations/project-strong-1080.png +0 -0
  1198. package/design-system/knowledge/v1/observations/project-strong-375.png +0 -0
  1199. package/design-system/knowledge/v1/observations/project-weak-1080.png +0 -0
  1200. package/design-system/knowledge/v1/observations/project-weak-375.png +0 -0
  1201. package/design-system/knowledge/v1/observations/type-strong-1080.png +0 -0
  1202. package/design-system/knowledge/v1/observations/type-strong-375.png +0 -0
  1203. package/design-system/knowledge/v1/observations/type-weak-1080.png +0 -0
  1204. package/design-system/knowledge/v1/observations/type-weak-375.png +0 -0
  1205. package/design-system/knowledge/v2/added-lessons.json +30 -0
  1206. package/design-system/knowledge/v2/assets.json +14 -0
  1207. package/design-system/knowledge/v2/fixtures/contact-alternate.html +17 -0
  1208. package/design-system/knowledge/v2/fixtures/contact-broken.html +15 -0
  1209. package/design-system/knowledge/v2/fixtures/contact-valid.html +20 -0
  1210. package/design-system/knowledge/v2/fixtures/contrast-cases.html +10 -0
  1211. package/design-system/knowledge/v2/island-audit.json +12 -0
  1212. package/design-system/knowledge/v2/lesson-extensions.json +158 -0
  1213. package/design-system/knowledge/v2/manifest.json +52 -0
  1214. package/design-system/knowledge/v2/replacements.json +14 -0
  1215. package/design-system/knowledge/v2/requirements.json +345 -0
  1216. package/design-system/knowledge/v2/sources.json +182 -0
  1217. package/design-system/knowledge/v3/catalog.json +1232 -0
  1218. package/design-system/knowledge/v3/examples/catalog.json +799 -0
  1219. package/design-system/knowledge/v3/lessons/cmp-collection-structure.md +17 -0
  1220. package/design-system/knowledge/v3/lessons/cmp-comparison.md +17 -0
  1221. package/design-system/knowledge/v3/lessons/cmp-contextual-action.md +17 -0
  1222. package/design-system/knowledge/v3/lessons/cmp-contrastive-critique.md +17 -0
  1223. package/design-system/knowledge/v3/lessons/cmp-disclosure.md +17 -0
  1224. package/design-system/knowledge/v3/lessons/cmp-evidence-form.md +17 -0
  1225. package/design-system/knowledge/v3/lessons/cmp-image-art-direction.md +17 -0
  1226. package/design-system/knowledge/v3/lessons/cmp-image-sequence.md +17 -0
  1227. package/design-system/knowledge/v3/lessons/cmp-interactive-explanation.md +17 -0
  1228. package/design-system/knowledge/v3/lessons/cmp-local-information.md +17 -0
  1229. package/design-system/knowledge/v3/lessons/cmp-motion-continuity.md +17 -0
  1230. package/design-system/knowledge/v3/lessons/cmp-narrative-continuity.md +17 -0
  1231. package/design-system/knowledge/v3/lessons/cmp-navigation.md +17 -0
  1232. package/design-system/knowledge/v3/lessons/cmp-page-rhythm.md +17 -0
  1233. package/design-system/knowledge/v3/lessons/cmp-process.md +17 -0
  1234. package/design-system/knowledge/v3/lessons/cmp-proof-adjacency.md +17 -0
  1235. package/design-system/knowledge/v3/lessons/cmp-responsive-recomposition.md +17 -0
  1236. package/design-system/knowledge/v3/lessons/cmp-semantic-grouping.md +17 -0
  1237. package/design-system/knowledge/v3/lessons/cmp-shared-alignment.md +17 -0
  1238. package/design-system/knowledge/v3/lessons/cmp-sparse-media.md +17 -0
  1239. package/design-system/knowledge/v3/lessons/cmp-surfaces-motifs.md +17 -0
  1240. package/design-system/knowledge/v3/lessons/cmp-text-shape.md +17 -0
  1241. package/design-system/knowledge/v3/lessons/cmp-type-roles.md +17 -0
  1242. package/design-system/knowledge/v3/lessons/cmp-unequal-emphasis.md +17 -0
  1243. package/design-system/knowledge/v3/manifest.json +117 -0
  1244. package/design-system/knowledge/v3/sources.json +425 -0
  1245. package/design-system/references/v1/README.md +27 -0
  1246. package/design-system/references/v1/catalog.json +20035 -0
  1247. package/design-system/references/v1/manifest.json +10 -0
  1248. package/design-system/references/v2/README.md +27 -0
  1249. package/design-system/references/v2/catalog.json +27382 -0
  1250. package/design-system/references/v2/manifest.json +11 -0
  1251. package/design-system/references/v3/README.md +27 -0
  1252. package/design-system/references/v3/catalog.json +27628 -0
  1253. package/design-system/references/v3/manifest.json +11 -0
  1254. package/docs/CLI.md +299 -0
  1255. package/docs/CLOUDFLARE.md +53 -0
  1256. package/docs/CONTACT-FORMS.md +161 -0
  1257. package/docs/DISTRIBUTION.md +70 -0
  1258. package/docs/ENGINE.md +28 -0
  1259. package/docs/PRESERVE.md +59 -0
  1260. package/docs/SECURITY.md +23 -0
  1261. package/docs/STOCK-MEDIA.md +66 -0
  1262. package/licenses/blake3-wasm-LICENSE +21 -0
  1263. package/licenses/entities-LICENSE +11 -0
  1264. package/licenses/parse5-LICENSE +19 -0
  1265. package/migrations/0001_init.sql +90 -0
  1266. package/migrations/0002_analytics.sql +50 -0
  1267. package/migrations/0003_site_updates.sql +29 -0
  1268. package/migrations/0004_contact_forms.sql +75 -0
  1269. package/migrations/0005_auth.sql +20 -0
  1270. package/package.json +229 -6
  1271. package/src/runtime/beacon.ts +329 -0
  1272. package/src/runtime/before-after.ts +48 -0
  1273. package/src/runtime/carousel.ts +20 -0
  1274. package/src/runtime/cookie-compliance.ts +50 -0
  1275. package/src/runtime/counter.ts +2 -0
  1276. package/src/runtime/editor.ts +72 -0
  1277. package/src/runtime/experience.ts +57 -0
  1278. package/src/runtime/header.ts +46 -0
  1279. package/src/runtime/leads.ts +102 -0
  1280. package/src/runtime/lightbox.ts +26 -0
  1281. package/src/runtime/reveal.ts +2 -0
  1282. package/src/runtime/scroll-motion.controller.js +100 -0
  1283. package/src/runtime/scroll-motion.count.js +21 -0
  1284. package/src/runtime/scroll-motion.generated.ts +5 -0
  1285. package/src/runtime/scroll-motion.vanilla.js +45 -0
  1286. package/src/runtime/tabs.ts +40 -0
  1287. package/src/stock/catalog.json +5445 -0
  1288. package/src/stock/coverage.json +18 -0
  1289. package/src/stock/picker.css +118 -0
  1290. package/src/stock/picker.js +191 -0
  1291. package/templates/site/.env.example +6 -0
  1292. package/templates/site/.github/workflows/deploy.yml +59 -0
  1293. package/templates/site/AGENTS.md +35 -0
  1294. package/templates/site/CLAUDE.md +5 -0
  1295. package/templates/site/GEMINI.md +5 -0
  1296. package/templates/site/README.md +55 -0
  1297. package/templates/site/components/README.md +18 -0
  1298. package/templates/site/gitignore +10 -0
  1299. package/templates/site/launch.json +14 -0
  1300. package/templates/site/package.json +36 -0
  1301. package/templates/site/pages/README.md +31 -0
  1302. package/templates/site/site.json +10 -0
  1303. package/templates/site/theme/defaults.json +17 -0
@@ -0,0 +1,1023 @@
1
+ import {
2
+ artifactManifest
3
+ } from "./chunk-XL2DRAYI.js";
4
+ import {
5
+ sourceRevision
6
+ } from "./chunk-3CTBXY5K.js";
7
+ import {
8
+ previewServer
9
+ } from "./chunk-WEFDVXFX.js";
10
+ import {
11
+ PRESERVE_HEIGHT,
12
+ PRESERVE_WIDTHS,
13
+ SUPPORTED_REACT_BLOCKS,
14
+ approvedEmbedUrl,
15
+ cancelledReviewTelemetry,
16
+ iframeSources,
17
+ isReadOnlyEmbedRequest,
18
+ pageFile,
19
+ preserveConfig,
20
+ preserveManifest,
21
+ preserveRuntime,
22
+ providerConsoleWarning,
23
+ readOnlyEmbedProvider,
24
+ unresolvedCaptureBlockers
25
+ } from "./chunk-E5Y46VBX.js";
26
+ import {
27
+ save,
28
+ within
29
+ } from "./chunk-T6PE4KN4.js";
30
+
31
+ // src/preserve/capture.ts
32
+ import { createHash, randomUUID } from "node:crypto";
33
+ import { Buffer } from "node:buffer";
34
+ import { existsSync, mkdirSync, renameSync, writeFileSync } from "node:fs";
35
+ import { dirname, extname, join } from "node:path";
36
+ import { chromium } from "playwright";
37
+ import { parse as parse2, serialize } from "parse5";
38
+
39
+ // src/preserve/components.ts
40
+ import { parse } from "parse5";
41
+ var attr = (n, key) => n.attrs?.find((a) => a.name === key)?.value;
42
+ var children = (n) => n.childNodes || [];
43
+ var nodes = (n) => [n, ...children(n).flatMap(nodes)];
44
+ function isInertFrame(node) {
45
+ return node.tagName === "iframe" && attr(node, "srcdoc") === void 0 && (!attr(node, "src") || attr(node, "src") === "about:blank") && !attr(node, "data-src");
46
+ }
47
+ function supportsStaticLegacyComponent(node) {
48
+ const kind = attr(node, "uniquecomponent");
49
+ if (!["blog-1", "iframe-1", "maps-1", "accordion-1"].includes(kind)) return false;
50
+ if (["iframe-1", "maps-1"].includes(kind) && !nodes(node).some((n) => n.tagName === "iframe")) return false;
51
+ if (kind === "accordion-1" && !nodes(node).some((n) => attr(n, "data-toggle") === "collapse")) return false;
52
+ const visit = (n, hidden = false) => {
53
+ const cls = attr(n, "class") || "";
54
+ hidden ||= /\bd-none\b/.test(cls) && !/\bd-(?:sm|md|lg|xl)-(?:block|flex|inline|table|grid)/.test(cls) || /display\s*:\s*none/i.test(attr(n, "style") || "");
55
+ if (n.tagName === "script" && attr(n, "type") !== "application/ld+json") return false;
56
+ if (n.tagName === "iframe" && !isInertFrame(n) && !(attr(n, "srcdoc") === void 0 && approvedEmbedUrl(attr(n, "src") || ""))) return false;
57
+ if (["object", "embed", "canvas"].includes(n.tagName)) return false;
58
+ if (!hidden) {
59
+ if (["input", "select", "textarea", "form"].includes(n.tagName)) return false;
60
+ const handled = ["collapse", "modal"].includes(attr(n, "data-toggle")) || attr(n, "data-dismiss") === "modal";
61
+ const callback = n.tagName === "button" || attr(n, "role") === "button" || n.tagName === "a" && (/^(javascript:)/i.test(attr(n, "href") || "") || !attr(n, "href") && /\b(btn|page-link)\b/.test(cls));
62
+ if (callback && !handled) return false;
63
+ }
64
+ return children(n).every((c) => visit(c, hidden));
65
+ };
66
+ return visit(node);
67
+ }
68
+ function staticLegacyComponents(html) {
69
+ const all = nodes(parse(html));
70
+ return new Set(["blog-1", "iframe-1", "maps-1", "accordion-1"].filter((kind) => {
71
+ const matches = all.filter((n) => attr(n, "uniquecomponent") === kind);
72
+ return matches.length > 0 && matches.every(supportsStaticLegacyComponent);
73
+ }));
74
+ }
75
+ function repairedExternalNavigation(original, authored, sourceUrl) {
76
+ const source = nodes(parse(original)).filter((n) => n.tagName === "a"), copy = nodes(parse(authored)).filter((n) => n.tagName === "a"), result = /* @__PURE__ */ new Set();
77
+ for (const n of source) {
78
+ const href = attr(n, "href") || "";
79
+ let expected;
80
+ if (/^\/?www\.google\.com\/maps(?:\?|$)/.test(href)) expected = "https://" + href.replace(/^\//, "");
81
+ if (/^\/?\(?\d{3}\)?(?:%20|\s)+\d{3}-\d{4}$/.test(href)) expected = "tel:" + decodeURIComponent(href).replace(/\D/g, "");
82
+ if (!expected) continue;
83
+ const path = new URL(href, sourceUrl).pathname;
84
+ if (copy.some((n2) => {
85
+ const marker = attr(n2, "data-preserve-repaired-link");
86
+ return marker !== void 0 && new URL(marker, sourceUrl).pathname === path && attr(n2, "href") === expected;
87
+ }) && !copy.some((n2) => {
88
+ try {
89
+ const url = new URL(attr(n2, "href") || "", sourceUrl);
90
+ return url.origin === new URL(sourceUrl).origin && url.pathname === path;
91
+ } catch {
92
+ return false;
93
+ }
94
+ })) result.add(path);
95
+ }
96
+ return result;
97
+ }
98
+ function disabledLegacyServices(original, authored, authorized) {
99
+ if (!authorized) return false;
100
+ const source = nodes(parse(original)).filter((n) => attr(n, "uniquecomponent") === "service-1"), copies = nodes(parse(authored)).filter((n) => attr(n, "uniquecomponent") === "service-1");
101
+ if (!source.length || source.length !== copies.length) return false;
102
+ return source.every((s, i) => {
103
+ const copy = copies[i];
104
+ if (attr(copy, "data-preserve-disabled-booking") === void 0 || !nodes(copy).some((n) => attr(n, "data-preserve-service-grid") !== void 0)) return false;
105
+ let cards;
106
+ try {
107
+ cards = JSON.parse(attr(copy, "data-preserve-service-cards") || "");
108
+ } catch {
109
+ return false;
110
+ }
111
+ const initial = nodes(s).filter((n) => /^service-\d+$/.test(attr(n, "data-vitrisid") || ""));
112
+ if (!initial.length || !Array.isArray(cards) || initial.some((n) => !cards.some((c) => typeof c === "string" && c.includes(`data-vitrisid="${attr(n, "data-vitrisid")}"`)))) return false;
113
+ return nodes(s).every((n) => {
114
+ if (["script", "iframe", "object", "embed", "canvas", "form", "button", "textarea"].includes(n.tagName)) return false;
115
+ if (["select", "input"].includes(n.tagName)) return ["servicesPerPage", "servicesSearch"].includes(attr(n, "data-vitrisid") || "");
116
+ if (n.tagName === "a" && /^javascript:/i.test(attr(n, "href") || "")) return nodes(n).filter((n2) => n2.nodeName === "#text").map((n2) => n2.value).join("").trim() === "1-on-1 Services";
117
+ if (attr(n, "data-toggle")) return attr(n, "data-toggle") === "modal" && /^#vitrisScheduleModal/.test(attr(n, "data-target") || "");
118
+ return true;
119
+ });
120
+ });
121
+ }
122
+ function unsupportedApplicationScripts(html, sourceUrl) {
123
+ const origin = new URL(sourceUrl).origin;
124
+ return [...new Set(nodes(parse(html)).filter((n) => n.tagName === "script" && attr(n, "src")).map((n) => {
125
+ const url = new URL(attr(n, "src"), sourceUrl);
126
+ if (url.hostname === "analytics.tryvitris.com" || /(^|\.)google-analytics\.com$/.test(url.hostname) || url.hostname === "www.googletagmanager.com") return;
127
+ if ((/(^|\.)doubleclick\.net$/.test(url.hostname) || /(^|\.)googleadservices\.com$/.test(url.hostname)) && url.pathname.startsWith("/pagead/")) return;
128
+ if (url.hostname === "www.gstatic.com" && (url.pathname === "/wcm/loader.js" || url.pathname.startsWith("/call-tracking/"))) return;
129
+ if (url.hostname === "connect.facebook.net" && (/^\/[\w-]+\/fbevents\.js$/.test(url.pathname) || /^\/signals\/config\/\d+$/.test(url.pathname))) return;
130
+ if (url.hostname === "ajax.googleapis.com" && url.pathname === "/ajax/libs/webfont/1/webfont.js") return;
131
+ if (url.hostname === "cdn.vitris.io" && url.pathname.startsWith("/renderer-dist/")) return;
132
+ if (url.origin === origin && /^\/(?:runtime|polyfills|scripts|main)(?:[-.][\w-]+)*\.js$/.test(url.pathname)) return;
133
+ return url.href;
134
+ }).filter((url) => !!url))];
135
+ }
136
+
137
+ // src/preserve/hovers.ts
138
+ async function captureButtonHovers(page, selector = ".btn") {
139
+ const buttons = page.locator(selector), records = [];
140
+ const styles = (el) => {
141
+ const s = globalThis.getComputedStyle(el);
142
+ return { color: s.color, "background-color": s.backgroundColor, "border-color": s.borderColor };
143
+ };
144
+ try {
145
+ for (let index = 0; index < await buttons.count(); index++) {
146
+ const button = buttons.nth(index);
147
+ if (!await button.isVisible()) continue;
148
+ const before = await button.evaluate(styles);
149
+ await button.hover();
150
+ await page.waitForTimeout(250);
151
+ const hover = await button.evaluate(styles);
152
+ records.push({ index, text: await button.innerText(), href: await button.getAttribute("href"), before, hover });
153
+ await page.mouse.move(-10, -10);
154
+ await page.waitForTimeout(250);
155
+ }
156
+ } finally {
157
+ await page.mouse.move(-10, -10);
158
+ await page.evaluate(() => {
159
+ const { window } = globalThis;
160
+ window.scrollTo(0, 0);
161
+ });
162
+ }
163
+ return records;
164
+ }
165
+
166
+ // src/preserve/capture.ts
167
+ var hash = (value) => createHash("sha256").update(value).digest("hex");
168
+ var attr2 = (node, key) => node.attrs.find((a) => a.name === key)?.value;
169
+ var set = (node, key, value) => {
170
+ const a = node.attrs.find((a2) => a2.name === key);
171
+ if (a) a.value = value;
172
+ else node.attrs.push({ name: key, value });
173
+ };
174
+ var remove = (node) => {
175
+ if ("parentNode" in node && node.parentNode) node.parentNode.childNodes = node.parentNode.childNodes.filter((n) => n !== node);
176
+ };
177
+ var isDownloadPath = (path) => /\.(pdf|docx?|xlsx?|pptx?|csv|txt|rtf|odt|zip|rar|7z|jpe?g|png|gif|webp|avif|svg|ico|mp[34]|m4[av]|wav|ogg|webm|mov|css|js|woff2?|ttf|eot)$/i.test(path);
178
+ function legacyRoutes(html, base) {
179
+ const react = legacyReactState(html);
180
+ if (react) {
181
+ const links = Object.keys(react.pages || {});
182
+ const visit = (value) => {
183
+ if (!value || typeof value !== "object") return;
184
+ if (value.type === "PAGE" && typeof value.href === "string") links.push(value.href);
185
+ Object.values(value).forEach(visit);
186
+ };
187
+ visit(react.navbar);
188
+ visit(react.footer);
189
+ return [...new Set(links.map((s) => new URL(s, base).href).filter((s) => new URL(s).origin === new URL(base).origin))];
190
+ }
191
+ const encoded = html.match(/<script[^>]*id="vitris-web-renderer-state"[^>]*>([\s\S]*?)<\/script>/)?.[1];
192
+ if (!encoded) return [];
193
+ const text = encoded.replace(/&(q|s|l|g|a);/g, (_m, key) => ({ q: '"', s: "'", l: "<", g: ">", a: "&" })[key]);
194
+ const state = JSON.parse(text);
195
+ return [...(state.renderableData?.navbar?.links || []).map((l) => l.url), ...Object.keys(state.renderableData?.pages || {})].filter((s) => !!s).map((s) => new URL(s, base).href).filter((s) => new URL(s).origin === new URL(base).origin);
196
+ }
197
+ function legacyReactState(html) {
198
+ const marker = /window\.__PRELOADED_STATE__\s*=\s*/.exec(html);
199
+ if (!marker) return;
200
+ const start = marker.index + marker[0].length;
201
+ if (html[start] !== "{") throw new Error("Invalid legacy React state");
202
+ let depth = 0, quoted = false, escaped = false;
203
+ for (let i = start; i < html.length; i++) {
204
+ const ch = html[i];
205
+ if (quoted) {
206
+ if (escaped) escaped = false;
207
+ else if (ch === "\\") escaped = true;
208
+ else if (ch === '"') quoted = false;
209
+ } else if (ch === '"') quoted = true;
210
+ else if (ch === "{") depth++;
211
+ else if (ch === "}" && --depth === 0) return JSON.parse(html.slice(start, i + 1));
212
+ }
213
+ throw new Error("Truncated legacy React state");
214
+ }
215
+ function elements(node) {
216
+ return ["tagName" in node ? node : void 0, ..."childNodes" in node ? node.childNodes.flatMap(elements) : []].filter((n) => !!n);
217
+ }
218
+ async function settle(page) {
219
+ await page.mouse.move(-10, -10);
220
+ await page.evaluate(async () => {
221
+ const { document, window } = globalThis;
222
+ await document.fonts.ready;
223
+ for (let y = 0; y < document.documentElement.scrollHeight; y += 800) {
224
+ window.scrollTo(0, y);
225
+ await new Promise((r) => setTimeout(r, 25));
226
+ }
227
+ await Promise.all([...document.images].map((i) => i.decode().catch(() => {
228
+ })));
229
+ window.scrollTo(0, 0);
230
+ });
231
+ await page.waitForTimeout(300);
232
+ }
233
+ async function capturePreservedSite(root, opts = {}) {
234
+ const config = preserveConfig(root);
235
+ if (opts.includeSourceErrors && (!opts.diagnostic || !opts.onlyPaths?.length)) throw Error("Source error preservation requires an explicit diagnostic route list");
236
+ if (config.mode !== "preserve" || !config.sourceUrl) throw new Error("Preserve capture requires launch.json mode=preserve and sourceUrl");
237
+ const source = new URL(config.sourceUrl);
238
+ if (!/^https?:$/.test(source.protocol) || source.username || source.password) throw new Error("Source must be an HTTP(S) URL without credentials");
239
+ if (existsSync(join(root, "preserved"))) throw new Error("Preserved source already exists; edit it in place or capture into a new site directory");
240
+ const captureId = randomUUID();
241
+ const staging = join(root, "artifacts", `preserve-capture-${captureId}`);
242
+ const output = join(staging, "source");
243
+ const references = join(root, "onboarding", `preserve-reference-${captureId}`);
244
+ mkdirSync(output, { recursive: true });
245
+ mkdirSync(references, { recursive: true });
246
+ const browser = await chromium.launch({ headless: true });
247
+ const context = await browser.newContext({ viewport: { width: PRESERVE_WIDTHS[0], height: PRESERVE_HEIGHT }, deviceScaleFactor: 1, reducedMotion: "reduce", serviceWorkers: "block" });
248
+ await context.route("**/*", (route) => {
249
+ const url = new URL(route.request().url());
250
+ if (url.hostname === "analytics.tryvitris.com" || /(^|\.)google-analytics\.com$/.test(url.hostname)) return route.abort();
251
+ return route.continue();
252
+ });
253
+ const page = await context.newPage();
254
+ const renderedAssets = /* @__PURE__ */ new Map();
255
+ const renderedTypes = /* @__PURE__ */ new Map();
256
+ page.on("response", (response) => {
257
+ if (!response.ok() || !["stylesheet", "image", "font", "media"].includes(response.request().resourceType())) return;
258
+ const type = response.headers()["content-type"]?.split(";")[0] || "";
259
+ renderedTypes.set(response.url(), type);
260
+ renderedAssets.set(response.url(), response.body().then((bytes) => ({ bytes: Buffer.from(bytes), type, url: response.url() })).catch(() => void 0));
261
+ });
262
+ const manifest = { version: 1, adapter: "vitris-v1", sourceUrl: source.href, capturedAt: (/* @__PURE__ */ new Date()).toISOString(), pages: [], assets: [], serviceMode: config.backendOrigin && config.forms?.length ? "vitris-forms" : "preview-only", warnings: [] };
263
+ const assets = /* @__PURE__ */ new Map();
264
+ const queue = [];
265
+ const asset = (raw, base, css = false) => {
266
+ if (!raw || /^(data:|blob:|#)/i.test(raw)) return raw;
267
+ const url = new URL(raw, base);
268
+ const fragment = url.hash;
269
+ url.hash = "";
270
+ if (!/^https?:$/.test(url.protocol) || url.username || url.password) throw new Error(`Unsupported asset URL: ${url.href}`);
271
+ let entry = assets.get(url.href);
272
+ if (!entry) {
273
+ const knownType = renderedTypes.get(url.href) || "";
274
+ const extension = css ? ".css" : { "image/avif": ".avif", "image/webp": ".webp", "image/png": ".png", "image/jpeg": ".jpg", "image/svg+xml": ".svg", "font/woff2": ".woff2" }[knownType] || extname(url.pathname).match(/^\.[a-z0-9]{1,8}$/i)?.[0] || ".bin";
275
+ entry = { file: `_preserve/assets/${hash(url.href).slice(0, 24)}${extension}`, css };
276
+ assets.set(url.href, entry);
277
+ queue.push(url.href);
278
+ }
279
+ return `/${entry.file}${fragment}`;
280
+ };
281
+ const cssText = (text, base) => text.replace(/@import\s+(["'])(.*?)\1/g, (_m, _q, url) => `@import "${asset(url, base, true)}"`).replace(/url\(\s*(?:"([^"]*)"|'([^']*)'|([^)]*?))\s*\)/g, (_m, a, b, c) => {
282
+ const raw = a ?? b ?? c;
283
+ if (/^(null|undefined)$/i.test(raw)) {
284
+ const warning = `Legacy empty background placeholder url(${raw}) normalized to none; source rendering remains the visual reference.`;
285
+ if (!manifest.warnings.includes(warning)) manifest.warnings.push(warning);
286
+ return "none";
287
+ }
288
+ return `url("${asset(raw, base, /\.css(?:[?#]|$)/i.test(raw))}")`;
289
+ });
290
+ const pending = opts.onlyPaths ? opts.onlyPaths.map((path) => new URL(path, source).href) : [new URL("/", source).href, source.href];
291
+ const seen = /* @__PURE__ */ new Set();
292
+ const outputs = /* @__PURE__ */ new Set();
293
+ const abort = () => {
294
+ void browser.close();
295
+ };
296
+ opts.signal?.addEventListener("abort", abort, { once: true });
297
+ try {
298
+ while (pending.length) {
299
+ opts.signal?.throwIfAborted();
300
+ const url = new URL(pending.shift());
301
+ url.hash = "";
302
+ if (url.pathname !== "/") url.pathname = url.pathname.replace(/\/+$/, "");
303
+ if (seen.has(url.href)) continue;
304
+ seen.add(url.href);
305
+ const blocked = (message) => {
306
+ if (!opts.diagnostic) throw new Error(message);
307
+ (manifest.blockers ||= []).push(`${url.pathname}: ${message}`);
308
+ };
309
+ if (opts.onlyPaths && !opts.onlyPaths.includes(url.pathname)) continue;
310
+ opts.onLog?.(`Preserving ${url.pathname}`);
311
+ let response;
312
+ try {
313
+ response = await page.goto(url.href, { waitUntil: "load", timeout: 6e4 });
314
+ } catch (error) {
315
+ if (!browser.isConnected()) throw error;
316
+ blocked(`Source navigation failed: ${url.href}: ${error instanceof Error ? error.message : String(error)}`);
317
+ continue;
318
+ }
319
+ const source404 = opts.includeSourceErrors && response?.status() === 404;
320
+ if (!response || !response.ok() && !source404) {
321
+ blocked(`Source page failed: ${url.href} (${response?.status()})`);
322
+ continue;
323
+ }
324
+ const sourceHtml = await response.text();
325
+ const react = legacyReactState(sourceHtml);
326
+ pending.push(...legacyRoutes(sourceHtml, source.origin + "/"));
327
+ if (new URL(page.url()).origin !== source.origin) {
328
+ blocked(`Source redirected to another origin: ${page.url()}`);
329
+ continue;
330
+ }
331
+ try {
332
+ if (!source404) await page.locator(react ? "#vcontent" : "#fullSiteRenderer").waitFor({ timeout: 15e3 });
333
+ } catch (error) {
334
+ if (!browser.isConnected()) throw error;
335
+ blocked(`Expected legacy renderer missing at ${url.href}`);
336
+ continue;
337
+ }
338
+ await settle(page);
339
+ const html = await page.content();
340
+ if (!source404 && !react && !/vitris-web-renderer|v1-full-site-renderer/.test(html)) {
341
+ blocked("Preserve adapters support legacy Vitris websites only; external-site adapters are not yet implemented");
342
+ continue;
343
+ }
344
+ if (react) manifest.adapter = "vitris-v2";
345
+ const soft404 = /404 Page Not Found/.test(await page.locator("body").innerText());
346
+ if (soft404 && !opts.includeSourceErrors) {
347
+ blocked(`Source returned a soft 404: ${url.href}`);
348
+ continue;
349
+ }
350
+ const doc = parse2(html);
351
+ const nodes4 = elements(doc);
352
+ const hoverStates = await captureButtonHovers(page);
353
+ const buttons = nodes4.filter((n) => (attr2(n, "class") || "").split(/\s+/).includes("btn"));
354
+ for (const state of hoverStates) {
355
+ const button = buttons[state.index];
356
+ if (!button || (attr2(button, "href") ?? null) !== state.href) {
357
+ blocked("Button inventory changed during capture; preserve its hover state explicitly");
358
+ continue;
359
+ }
360
+ if (JSON.stringify(state.before) !== JSON.stringify(state.hover)) set(button, "data-preserve-hover", JSON.stringify(state.hover));
361
+ }
362
+ const supported = /* @__PURE__ */ new Set(["navbar-1", "header-1", "photoGallery-1", "cards-1", "info-1", "contactForm-1", "footer-1", "html-1"]);
363
+ const unknown = nodes4.filter((n) => attr2(n, "uniquecomponent") && !supported.has(attr2(n, "uniquecomponent")) && !supportsStaticLegacyComponent(n)).map((n) => attr2(n, "uniquecomponent"));
364
+ if (unknown.length) blocked(`Legacy components need preservation support: ${[...new Set(unknown)].join(", ")}`);
365
+ if (react) {
366
+ const blocks = [...react.pages?.[url.pathname === "/" ? react.site?.homePageUrl : url.pathname.slice(1)]?.rows || [], ...react.footer?.rows || []].flatMap((r) => r.blocks || []);
367
+ const unsupportedBlocks = [...new Set(blocks.map((b) => b.bt).filter((bt) => !SUPPORTED_REACT_BLOCKS.has(bt)))];
368
+ if (unsupportedBlocks.length) blocked(`Legacy React blocks need preservation support: ${unsupportedBlocks.join(", ")}`);
369
+ for (const [i, toggle] of nodes4.filter((n) => (attr2(n, "class") || "").split(/\s+/).includes("navbar-toggler")).entries()) {
370
+ let parent = toggle.parentNode;
371
+ while (parent && !elements(parent).some((n) => (attr2(n, "class") || "").split(/\s+/).includes("navbar-collapse"))) parent = "parentNode" in parent ? parent.parentNode : null;
372
+ const target = parent && elements(parent).find((n) => (attr2(n, "class") || "").split(/\s+/).includes("navbar-collapse"));
373
+ if (!target) {
374
+ blocked("React mobile menu target missing");
375
+ continue;
376
+ }
377
+ const id = attr2(target, "id") || `preserve-react-nav-${i}`;
378
+ set(target, "id", id);
379
+ set(toggle, "data-toggle", "collapse");
380
+ set(toggle, "data-target", "#" + id);
381
+ set(toggle, "aria-expanded", "false");
382
+ }
383
+ }
384
+ const approvedEmbeds = nodes4.filter((n) => n.tagName === "iframe" && attr2(n, "srcdoc") === void 0 && readOnlyEmbedProvider(attr2(n, "src") || ""));
385
+ const inertFrames = nodes4.filter(isInertFrame);
386
+ for (const frame of inertFrames) set(frame, "src", "about:blank");
387
+ for (const embed of approvedEmbeds) {
388
+ set(embed, "src", approvedEmbedUrl(attr2(embed, "src")));
389
+ const warning = `Remote ${readOnlyEmbedProvider(attr2(embed, "src"))} embed retained at ${url.pathname}: ${attr2(embed, "src")}. Provider content, network availability and privacy behavior are external dependencies; the embedded application is not stored locally.`;
390
+ if (!manifest.warnings.includes(warning)) manifest.warnings.push(warning);
391
+ }
392
+ const unsupported = nodes4.filter((n) => ["iframe", "object", "embed", "canvas"].includes(n.tagName) && !approvedEmbeds.includes(n) && !inertFrames.includes(n) || attr2(n, "data-toggle") && !["collapse", "modal"].includes(attr2(n, "data-toggle")));
393
+ if (unsupported.length) blocked(`Unsupported interactive content: ${unsupported.map((n) => n.tagName + ":" + (attr2(n, "srcdoc") !== void 0 ? "srcdoc" : attr2(n, "data-toggle") || attr2(n, "src") || "")).join(", ")}. Add an adapter before publishing.`);
394
+ const base = new URL(nodes4.find((n) => n.tagName === "base")?.attrs.find((a) => a.name === "href")?.value || url.href, url).href;
395
+ for (const node of nodes4) {
396
+ if (unsupported.includes(node) && ["iframe", "object", "embed"].includes(node.tagName)) {
397
+ set(node, "data-preserve-disabled-embed", attr2(node, "src") || attr2(node, "data") || "");
398
+ if (attr2(node, "srcdoc") !== void 0) set(node, "data-preserve-original-srcdoc", attr2(node, "srcdoc"));
399
+ node.attrs = node.attrs.filter((a) => !["srcdoc", "data"].includes(a.name));
400
+ set(node, "src", "about:blank");
401
+ }
402
+ if (node.tagName === "script" && !["application/ld+json"].includes(attr2(node, "type") || "")) {
403
+ remove(node);
404
+ continue;
405
+ }
406
+ if (node.tagName === "noscript") {
407
+ remove(node);
408
+ continue;
409
+ }
410
+ if (node.tagName === "meta" && /^(refresh|content-security-policy)$/i.test(attr2(node, "http-equiv") || "")) {
411
+ remove(node);
412
+ continue;
413
+ }
414
+ if (node.tagName === "base") {
415
+ set(node, "href", "/");
416
+ continue;
417
+ }
418
+ if (node.tagName === "link" && /^(preconnect|dns-prefetch|modulepreload|preload)$/i.test(attr2(node, "rel") || "")) {
419
+ remove(node);
420
+ continue;
421
+ }
422
+ if (node.tagName === "style") {
423
+ for (const child of node.childNodes) if ("value" in child) child.value = cssText(child.value, base);
424
+ }
425
+ const style = attr2(node, "style");
426
+ if (style) set(node, "style", cssText(style, base));
427
+ if (node.tagName === "a") {
428
+ const href = attr2(node, "href");
429
+ if (href !== void 0 && !/^(tel:|mailto:|#)/i.test(href)) {
430
+ const target = new URL(href || "/", base);
431
+ if (target.origin === source.origin) {
432
+ if (target.search) {
433
+ blocked(`Query-dependent navigation needs an adapter: ${target.href}`);
434
+ set(node, "href", target.href);
435
+ } else if (isDownloadPath(target.pathname)) set(node, "href", asset(target.href, base));
436
+ else {
437
+ set(node, "href", target.pathname + target.hash);
438
+ target.hash = "";
439
+ pending.push(target.href);
440
+ }
441
+ }
442
+ }
443
+ }
444
+ for (const key of ["src", "poster"]) {
445
+ const raw = attr2(node, key);
446
+ if (raw && !["iframe", "object", "embed"].includes(node.tagName)) set(node, key, asset(raw, base));
447
+ }
448
+ if (node.tagName === "link" && /stylesheet|icon/i.test(attr2(node, "rel") || "")) {
449
+ set(node, "href", asset(attr2(node, "href"), base, attr2(node, "rel") === "stylesheet"));
450
+ node.attrs = node.attrs.filter((a) => !["integrity", "crossorigin"].includes(a.name));
451
+ }
452
+ const srcset = attr2(node, "srcset");
453
+ if (srcset) {
454
+ if (srcset.includes("data:")) throw new Error("Inline srcset needs explicit preservation support");
455
+ set(node, "srcset", srcset.split(",").map((candidate) => {
456
+ const [url2, ...descriptor] = candidate.trim().split(/\s+/);
457
+ return [asset(url2, base), ...descriptor].join(" ");
458
+ }).join(", "));
459
+ }
460
+ if (node.tagName === "form") {
461
+ const fields2 = elements(node).filter((n) => ["input", "textarea"].includes(n.tagName)).map((n) => attr2(n, "name"));
462
+ const contact = attr2(node, "data-lead-form") !== void 0 || elements(node).some((n) => attr2(n, "data-vitrisid") === "emailSendButton") || react && ["name", "email", "message"].every((name) => fields2.includes(name));
463
+ if (!contact) blocked(`Unrelated form requires an explicit preservation adapter; it cannot be routed to contact forms`);
464
+ if (react && contact) for (const send of elements(node).filter((n) => n.tagName === "a" && /^javascript:/i.test(attr2(n, "href") || ""))) {
465
+ set(send, "href", "#");
466
+ set(send, "data-vitrisid", "emailSendButton");
467
+ }
468
+ if (elements(node).some((n) => attr2(n, "type") === "file")) manifest.warnings.push(`Attachments unsupported at ${url.pathname}; keep this form disabled until adapted`);
469
+ set(node, "data-preserve-forms", "preview");
470
+ set(node, "action", "#");
471
+ }
472
+ node.attrs = node.attrs.filter((a) => !/^on/i.test(a.name));
473
+ }
474
+ let file;
475
+ try {
476
+ file = pageFile(url.pathname);
477
+ } catch (error) {
478
+ const decoded = decodeURIComponent(url.pathname);
479
+ if (!decoded.split("/").some((p) => /\.$/.test(p)) || /[\\\x00-\x1f:*?"<>|]/.test(decoded) || decoded.split("/").some((p) => p === "." || p === "..")) throw error;
480
+ file = `_preserve/routes/${hash(url.pathname).slice(0, 24)}/index.html`;
481
+ }
482
+ if (outputs.has(file.toLowerCase())) file = `_preserve/routes/${hash(url.pathname).slice(0, 24)}/index.html`;
483
+ if (outputs.has(file.toLowerCase())) throw new Error(`Routes collide on disk: ${url.pathname}`);
484
+ outputs.add(file.toLowerCase());
485
+ const captured = { url: url.href, path: url.pathname, file, references: [] };
486
+ if (source404 || soft404) {
487
+ const responseFile = `onboarding/preserve-reference-${captureId}/${manifest.pages.length}-response.html`;
488
+ writeFileSync(join(root, responseFile), sourceHtml, { flag: "wx" });
489
+ captured.sourceFailure = { status: response.status(), kind: source404 ? "http-404" : "soft-404", responseFile, responseSha256: hash(sourceHtml) };
490
+ manifest.warnings.push(`Unavailable original route ${url.pathname}: preserved ${source404 ? "HTTP 404 response" : "soft 404"} content. Static preview serves the captured error page with HTTP 200; business content was unavailable.`);
491
+ }
492
+ writeFileSync(join(references, `${manifest.pages.length}-rendered.html`), html, { flag: "wx" });
493
+ writeFileSync(join(references, `${manifest.pages.length}-hovers.json`), JSON.stringify(hoverStates, null, 2), { flag: "wx" });
494
+ for (const width of PRESERVE_WIDTHS) {
495
+ await page.setViewportSize({ width, height: PRESERVE_HEIGHT });
496
+ await settle(page);
497
+ const name = `${manifest.pages.length}-${width}.png`;
498
+ const screenshot = await page.screenshot({ fullPage: true, animations: "disabled", path: join(references, name) });
499
+ captured.references.push({ width, file: `onboarding/preserve-reference-${captureId}/${name}`, sha256: hash(screenshot) });
500
+ }
501
+ await page.setViewportSize({ width: PRESERVE_WIDTHS[0], height: PRESERVE_HEIGHT });
502
+ const content = serialize(doc).replace(/<\/head>/i, '<meta name="robots" content="noindex,nofollow"></head>').replace(/<\/body>/i, '<script src="/_preserve/runtime.js" defer></script></body>');
503
+ const path = within(output, file);
504
+ mkdirSync(dirname(path), { recursive: true });
505
+ writeFileSync(path, content);
506
+ manifest.pages.push(captured);
507
+ }
508
+ while (queue.length) {
509
+ opts.signal?.throwIfAborted();
510
+ const url = queue.shift();
511
+ const entry = assets.get(url);
512
+ opts.onLog?.(`Copying asset ${manifest.assets.length + 1}/${assets.size}`);
513
+ let captured = await renderedAssets.get(url);
514
+ let captureError;
515
+ if (!captured) {
516
+ try {
517
+ const response = await context.request.get(url, { timeout: 3e4 });
518
+ if (!response.ok()) captureError = `Asset failed: ${url} (${response.status()})`;
519
+ captured = { bytes: Buffer.from(await response.body()), type: response.headers()["content-type"] || "", url: response.url() };
520
+ } catch (error) {
521
+ if (!opts.diagnostic) throw error;
522
+ captureError = `Asset request failed: ${url}: ${error instanceof Error ? error.message : String(error)}`;
523
+ captured = { bytes: Buffer.alloc(0), type: "", url };
524
+ }
525
+ }
526
+ const type = captured.type;
527
+ if (type.includes("text/html")) captureError ||= `Asset returned HTML: ${url}`;
528
+ if (captureError) {
529
+ if (!opts.diagnostic) throw new Error(captureError);
530
+ (manifest.blockers ||= []).push(captureError + "; missing authored asset retained as an empty placeholder, not claimed as preserved bytes");
531
+ }
532
+ const original = captured.bytes;
533
+ const referenceFile = `onboarding/preserve-reference-${captureId}/assets/${hash(url).slice(0, 24)}.bin`;
534
+ mkdirSync(join(references, "assets"), { recursive: true });
535
+ writeFileSync(join(root, referenceFile), original, { flag: "wx" });
536
+ const bytes = captureError ? Buffer.alloc(0) : entry.css || type.includes("text/css") ? Buffer.from(cssText(Buffer.from(original).toString("utf8"), captured.url)) : original;
537
+ const path = within(output, entry.file);
538
+ mkdirSync(dirname(path), { recursive: true });
539
+ writeFileSync(path, bytes);
540
+ manifest.assets.push({ url, file: entry.file, sha256: hash(bytes), originalSha256: hash(original), referenceFile, ...captureError ? { captureError } : {} });
541
+ }
542
+ mkdirSync(join(output, "_preserve"), { recursive: true });
543
+ writeFileSync(join(output, "_preserve/runtime.js"), preserveRuntime);
544
+ manifest.warnings.push("Legacy renderer, analytics, and backend calls removed. Existing external navigation links are preserved.");
545
+ if (!config.forms?.length) manifest.warnings.push("Forms are preview-only until explicit form registration and frontend bindings are configured; no submissions are sent.");
546
+ save(join(staging, "manifest.json"), manifest);
547
+ renameSync(output, join(root, "preserved"));
548
+ save(join(root, "onboarding/preserve.json"), manifest);
549
+ return manifest;
550
+ } finally {
551
+ opts.signal?.removeEventListener("abort", abort);
552
+ await browser.close();
553
+ }
554
+ }
555
+
556
+ // src/preserve/verify.ts
557
+ import { createHash as createHash2 } from "node:crypto";
558
+ import { Buffer as Buffer2 } from "node:buffer";
559
+ import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync2 } from "node:fs";
560
+ import { join as join2 } from "node:path";
561
+ import { chromium as chromium2 } from "playwright";
562
+
563
+ // src/preserve/react-capabilities.ts
564
+ import { parse as parse3 } from "parse5";
565
+ var attr3 = (n, key) => n.attrs?.find((a) => a.name === key)?.value;
566
+ var nodes2 = (n) => [n, ...(n.childNodes || []).flatMap(nodes2)];
567
+ var controls = (n) => nodes2(n).filter((n2) => ["input", "textarea", "select", "button", "form", "iframe", "object", "embed", "canvas"].includes(n2.tagName) || n2.tagName === "a" && /^javascript:/i.test(attr3(n2, "href") || ""));
568
+ var fields = (n) => nodes2(n).filter((n2) => ["input", "textarea", "select"].includes(n2.tagName)).map((n2) => [n2.tagName, attr3(n2, "type") || "text", attr3(n2, "name") || "", attr3(n2, "id") || ""].join("|")).sort().join("\n");
569
+ function reactCapabilities(state, original, authored, path, disabledTransactions) {
570
+ const originalNodes = nodes2(parse3(original)), authoredNodes = nodes2(parse3(authored));
571
+ const blocks = (state?.pages?.[path === "/" ? state.site?.homePageUrl : path.slice(1)]?.rows || []).flatMap((r) => r.blocks || []);
572
+ const result = /* @__PURE__ */ new Set();
573
+ for (const kind of ["b", "coll", "cform", "s"]) {
574
+ const matches = blocks.filter((b) => b.bt === kind);
575
+ if (!matches.length) continue;
576
+ const supported = matches.every((block) => {
577
+ const source = originalNodes.find((n) => attr3(n, "id") === block._id), copy = authoredNodes.find((n) => attr3(n, "id") === block._id);
578
+ if (!source || !copy) return false;
579
+ if (["b", "coll"].includes(kind)) return controls(source).length === 0;
580
+ if (!disabledTransactions) return false;
581
+ if (kind === "cform") {
582
+ const forms = nodes2(source).filter((n) => n.tagName === "form"), copies = nodes2(copy).filter((n) => n.tagName === "form");
583
+ if (forms.length !== 1 || copies.length !== 1 || fields(forms[0]) !== fields(copies[0])) return false;
584
+ const submits = nodes2(forms[0]).filter((n) => n.tagName === "a" && /^javascript:/i.test(attr3(n, "href") || ""));
585
+ return submits.length === 1 && nodes2(submits[0]).filter((n) => n.nodeName === "#text").map((n) => n.value).join("").trim() === "Submit" && !controls(source).some((n) => ["button", "iframe", "object", "embed", "canvas"].includes(n.tagName)) && attr3(copies[0], "data-preserve-disabled-custom-form") !== void 0 && attr3(copies[0], "data-preserve-forms") === "preview" && attr3(copies[0], "action") === "#";
586
+ }
587
+ const calendars = nodes2(source).filter((n) => attr3(n, "id") === "select-time-parent-container");
588
+ if (calendars.length === 0) {
589
+ const links = nodes2(source).filter((n) => n.tagName === "a"), buttonText = block.c?.service?.btn?.txt;
590
+ return !!buttonText && links.length > 0 && controls(source).every((n) => links.includes(n)) && block.c?.d?.search === false && links.every((n) => /^javascript:/i.test(attr3(n, "href") || "") && nodes2(n).filter((n2) => n2.nodeName === "#text").map((n2) => n2.value).join("").trim() === buttonText) && attr3(copy, "data-preserve-disabled-booking") !== void 0 && nodes2(copy).filter((n) => attr3(n, "data-preserve-disabled-action") === "booking").length === links.length;
591
+ }
592
+ return calendars.length === 1 && attr3(copy, "data-preserve-disabled-booking") !== void 0 && controls(source).length === 0 && nodes2(copy).some((n) => attr3(n, "id") === "days-container") && nodes2(copy).filter((n) => attr3(n, "data-preserve-disabled-action") === "booking").length === nodes2(source).filter((n) => n.tagName === "a" || (attr3(n, "class") || "").split(/\s+/).includes("day-col")).length;
593
+ });
594
+ if (supported) result.add(kind);
595
+ }
596
+ return result;
597
+ }
598
+
599
+ // src/preserve/source-defects.ts
600
+ import { parse as parse4 } from "parse5";
601
+ var nodes3 = (n) => [n, ...(n.childNodes || []).flatMap(nodes3)];
602
+ var attr4 = (n, key) => n.attrs?.find((a) => a.name === key)?.value;
603
+ function originalMissingAnchors(original, sourceUrl, references) {
604
+ const result = /* @__PURE__ */ new Set(), origin = new URL(sourceUrl).origin;
605
+ for (const n of nodes3(parse4(original)).filter((n2) => n2.tagName === "a" && attr4(n2, "href"))) {
606
+ let url;
607
+ try {
608
+ url = new URL(attr4(n, "href"), sourceUrl);
609
+ } catch {
610
+ continue;
611
+ }
612
+ const target = references.get(url.pathname);
613
+ if (url.origin !== origin || !url.hash || !target) continue;
614
+ if (!nodes3(parse4(target)).some((n2) => attr4(n2, "id") === decodeURIComponent(url.hash.slice(1)))) result.add(url.pathname + url.hash);
615
+ }
616
+ return result;
617
+ }
618
+ function originalNullImages(manifest, originals, copies) {
619
+ const result = /* @__PURE__ */ new Set();
620
+ for (const asset of manifest.assets) {
621
+ const nullImage = asset.captureError?.startsWith("Asset returned HTML:") && new URL(asset.url).pathname === "/null";
622
+ const errorIllustration = asset.url === "https://tryvitris.com/assets/img/404-error.jpg" && asset.captureError?.endsWith("(404)") && manifest.pages?.some((p) => p.sourceFailure);
623
+ if (!nullImage && !errorIllustration) continue;
624
+ const sourceImages = originals.flatMap((h) => nodes3(parse4(h))).filter((n) => n.tagName === "img" && attr4(n, "src") && new URL(attr4(n, "src"), manifest.sourceUrl).href === asset.url);
625
+ const authored = copies.flatMap((h) => nodes3(parse4(h))).filter((n) => attr4(n, "src") === "/" + asset.file);
626
+ if (sourceImages.length > 0 && sourceImages.length === authored.length && authored.every((n) => n.tagName === "img") && !copies.some((h) => nodes3(parse4(h)).some((n) => attr4(n, "href") === "/" + asset.file))) result.add(asset.url);
627
+ }
628
+ return result;
629
+ }
630
+
631
+ // src/preserve/verify.ts
632
+ async function compare(page, before, after) {
633
+ return await page.evaluate(async ({ before: before2, after: after2 }) => {
634
+ const { Image, document } = globalThis;
635
+ const read = async (data) => {
636
+ const i = new Image();
637
+ i.src = "data:image/png;base64," + data;
638
+ await i.decode();
639
+ const c = document.createElement("canvas");
640
+ c.width = i.width;
641
+ c.height = i.height;
642
+ const x = c.getContext("2d");
643
+ x.drawImage(i, 0, 0);
644
+ return { w: i.width, h: i.height, data: x.getImageData(0, 0, i.width, i.height).data };
645
+ };
646
+ const a = await read(before2), b = await read(after2);
647
+ if (a.w !== b.w || a.h !== b.h) return { dimensionsMatch: false, changedPixelRatio: 1 };
648
+ let changed = 0;
649
+ for (let i = 0; i < a.data.length; i += 4) if (Math.max(...[0, 1, 2].map((c) => Math.abs(a.data[i + c] - b.data[i + c]))) > 24) changed++;
650
+ return { dimensionsMatch: true, changedPixelRatio: changed / (a.w * a.h) };
651
+ }, { before: Buffer2.from(before).toString("base64"), after: Buffer2.from(after).toString("base64") });
652
+ }
653
+ async function interactions(page, backend) {
654
+ const failures = [];
655
+ for (const panel of await page.locator("[data-preserve-product-states]").all()) {
656
+ const states = JSON.parse(await panel.getAttribute("data-preserve-product-states"));
657
+ for (const state of states) {
658
+ for (let i = 0; i < state.values.length; i++) await panel.locator("select").nth(i).selectOption(state.values[i]);
659
+ const actual = await panel.locator("select").evaluateAll((els, length) => els.slice(0, length).map((el) => el.value), state.values.length);
660
+ if (JSON.stringify(actual) !== JSON.stringify(state.values)) failures.push("Product variant selection differs from the captured original");
661
+ if (state.html.includes("data-preserve-disabled-action")) {
662
+ const action = panel.locator("[data-preserve-disabled-action]");
663
+ if (!await action.count()) failures.push("Product purchase control missing after selection");
664
+ else {
665
+ await action.click();
666
+ if (!await page.getByText("This preview cannot place orders or accept payments. Please use the listed contact details.", { exact: true }).first().isVisible()) failures.push("Product purchase was not explicitly disabled");
667
+ }
668
+ }
669
+ }
670
+ }
671
+ for (const carousel of await page.locator(".carousel[data-preserve-carousel]").all()) {
672
+ const dots = carousel.locator(".carousel__dot"), slides = carousel.locator(".carousel__slide");
673
+ for (let i = 0; i < await dots.count(); i++) if (await dots.nth(i).isVisible()) {
674
+ if (!await dots.nth(i).isDisabled()) await dots.nth(i).click();
675
+ if (await slides.nth(i).getAttribute("aria-selected") !== "true") failures.push("Product carousel did not select the requested image");
676
+ }
677
+ const slider = carousel.locator(".carousel__slider");
678
+ await slider.focus();
679
+ await page.keyboard.press("ArrowRight");
680
+ if (await carousel.locator('.carousel__slide[aria-selected="true"]').count() !== 1) failures.push("Product carousel did not select exactly one image");
681
+ }
682
+ for (const action of await page.locator("[data-preserve-disabled-action]").all()) if (await action.isVisible() && await action.evaluate((el) => globalThis.getComputedStyle(el).pointerEvents !== "none")) {
683
+ await action.click();
684
+ const booking = await action.getAttribute("data-preserve-disabled-action") === "booking";
685
+ const hasCalendar = await action.evaluate((el) => !!el.closest("[data-preserve-disabled-booking]")?.querySelector("#days-container"));
686
+ const text = booking ? hasCalendar ? "This preview cannot book appointments. Calendar availability is a captured snapshot. Please use the listed contact details." : "This preview cannot book appointments. Please use the listed contact details." : "This preview cannot place orders or accept payments. Please use the listed contact details.";
687
+ const visible = await page.getByText(text, { exact: true }).first().isVisible();
688
+ const previousSafeNotice = booking && !hasCalendar && await page.getByText("This preview cannot book appointments. Calendar availability is a captured snapshot. Please use the listed contact details.", { exact: true }).first().isVisible();
689
+ if (!visible && !previousSafeNotice) failures.push("Disabled transaction notice missing");
690
+ }
691
+ const hoverButtons = page.locator("[data-preserve-hover]");
692
+ for (let i = 0; i < await hoverButtons.count(); i++) {
693
+ const button = hoverButtons.nth(i);
694
+ if (!await button.isVisible()) continue;
695
+ const before = await button.getAttribute("style"), expected = JSON.parse(await button.getAttribute("data-preserve-hover"));
696
+ await button.hover();
697
+ await page.waitForTimeout(250);
698
+ const actual = await button.evaluate((el) => {
699
+ const s = globalThis.getComputedStyle(el);
700
+ return { color: s.color, "background-color": s.backgroundColor, "border-color": s.borderColor };
701
+ });
702
+ if (Object.entries(expected).some(([k, v]) => actual[k] !== v)) failures.push("Button hover colors differ from the measured original");
703
+ await page.mouse.move(-10, -10);
704
+ await page.waitForTimeout(250);
705
+ if (await button.getAttribute("style") !== before) failures.push("Button hover did not restore its resting style");
706
+ }
707
+ const dropdowns = async () => {
708
+ const toggles2 = page.locator(".dropdown-toggle");
709
+ for (let i = 0; i < await toggles2.count(); i++) {
710
+ const toggle = toggles2.nth(i);
711
+ if (!await toggle.isVisible()) continue;
712
+ const menu = toggle.locator("..").locator(".dropdown-menu").first();
713
+ if (!await menu.count()) {
714
+ failures.push("Dropdown menu missing");
715
+ continue;
716
+ }
717
+ await toggle.click();
718
+ if (!await menu.isVisible() || await toggle.getAttribute("aria-expanded") !== "true") failures.push("Dropdown did not open");
719
+ await toggle.click();
720
+ if (await menu.isVisible()) failures.push("Dropdown did not close");
721
+ }
722
+ };
723
+ const toggles = page.locator('[data-toggle="collapse"]');
724
+ for (let i = 0; i < await toggles.count(); i++) {
725
+ const toggle = toggles.nth(i);
726
+ if (!await toggle.isVisible()) continue;
727
+ const id = await toggle.getAttribute("data-target") || await toggle.getAttribute("href");
728
+ if (!id?.startsWith("#")) {
729
+ failures.push("Menu target missing");
730
+ continue;
731
+ }
732
+ const initiallyOpen = await page.locator(id).evaluate((el) => el.classList.contains("show"));
733
+ await toggle.click();
734
+ if (await page.locator(id).isVisible() === initiallyOpen || await toggle.getAttribute("aria-expanded") !== String(!initiallyOpen)) failures.push("Collapse state did not change");
735
+ const group = await toggle.getAttribute("data-parent") || await page.locator(id).getAttribute("data-parent");
736
+ if (!initiallyOpen && group?.startsWith("#")) {
737
+ const openCount = await page.evaluate((selector) => {
738
+ const { document } = globalThis;
739
+ const parent = document.getElementById(selector.slice(1));
740
+ if (!parent) return 0;
741
+ const ids = new Set([...parent.querySelectorAll('[data-toggle="collapse"]')].filter((el) => el.getAttribute("data-parent") === selector).map((el) => (el.getAttribute("data-target") || el.getAttribute("href") || "").slice(1)));
742
+ return [...ids].filter((id2) => document.getElementById(id2)?.classList.contains("show")).length;
743
+ }, group);
744
+ if (openCount > 1) failures.push("Accordion siblings remained open");
745
+ }
746
+ if (!initiallyOpen) await dropdowns();
747
+ await toggle.click();
748
+ }
749
+ await dropdowns();
750
+ for (const service of await page.locator("services-general[data-preserve-service-cards]").all()) {
751
+ const select = service.locator('[data-vitrisid="servicesPerPage"]');
752
+ if (await select.isVisible()) {
753
+ const initial = await select.inputValue(), cards = JSON.parse(await service.getAttribute("data-preserve-service-cards"));
754
+ await select.selectOption({ label: "30" });
755
+ if (await service.locator("[data-preserve-service-grid] .card").count() !== Math.min(30, cards.length)) failures.push("Local service page does not contain all captured cards");
756
+ for (const button of await service.locator("[data-preserve-service-grid] [data-preserve-hover]").all()) if (await button.isVisible()) {
757
+ const expected = JSON.parse(await button.getAttribute("data-preserve-hover")), before = await button.getAttribute("style");
758
+ await button.hover();
759
+ await page.waitForTimeout(250);
760
+ const actual = await button.evaluate((el) => {
761
+ const s = globalThis.getComputedStyle(el);
762
+ return { color: s.color, "background-color": s.backgroundColor, "border-color": s.borderColor };
763
+ });
764
+ if (Object.entries(expected).some(([k, v]) => actual[k] !== v)) failures.push("Paged service button hover differs from the measured original");
765
+ await page.mouse.move(-10, -10);
766
+ await page.waitForTimeout(250);
767
+ if (await button.getAttribute("style") !== before) failures.push("Paged service hover did not restore its resting style");
768
+ }
769
+ await select.selectOption(initial);
770
+ const right = service.locator('[data-vitrisid="servicesRightArrow"]');
771
+ if (cards.length > Number(initial) && await right.isVisible()) {
772
+ const before = await service.locator("[data-preserve-service-grid]").innerText();
773
+ await right.click();
774
+ if (await service.locator("[data-preserve-service-grid]").innerText() === before) failures.push("Local service pagination did not advance");
775
+ await service.locator('[data-vitrisid="servicesLeftArrow"]').click();
776
+ if (await service.locator("[data-preserve-service-grid]").innerText() !== before) failures.push("Local service pagination did not restore its first page");
777
+ }
778
+ }
779
+ }
780
+ const galleries = page.locator('[data-toggle="modal"]');
781
+ for (let i = 0; i < await galleries.count(); i++) {
782
+ const trigger = galleries.nth(i);
783
+ if (!await trigger.isVisible()) continue;
784
+ const id = await trigger.getAttribute("data-target");
785
+ if (!id?.startsWith("#")) {
786
+ failures.push("Gallery target missing");
787
+ continue;
788
+ }
789
+ await trigger.click();
790
+ if (!await page.locator(id).isVisible()) failures.push(`Gallery did not open: ${id}`);
791
+ if (await trigger.evaluate((el) => !!el.closest("services-general[data-preserve-disabled-booking]")) && !await page.locator(id).getByText("This preview cannot book appointments. Please use the listed contact details.", { exact: true }).isVisible()) failures.push("Legacy booking disabled notice missing");
792
+ await page.keyboard.press("Escape");
793
+ if (await page.locator(id).isVisible()) failures.push(`Gallery did not close: ${id}`);
794
+ }
795
+ if (backend) {
796
+ await page.route((url) => url.origin === backend && url.pathname === "/api/leads", (route) => route.fulfill({ status: 201, contentType: "application/json", headers: { "access-control-allow-origin": new URL(page.url()).origin }, body: '{"ok":true,"mode":"test"}' }));
797
+ await page.route("https://challenges.cloudflare.com/turnstile/v0/api.js*", (route) => route.fulfill({ contentType: "application/javascript", body: 'window.turnstile={render:(el,opts)=>{setTimeout(()=>opts.callback("preservation-mock-token"),0);return "mock"},reset:()=>{}}' }));
798
+ }
799
+ const forms = page.locator("form[data-preserve-forms]");
800
+ for (let i = 0; i < await forms.count(); i++) {
801
+ const form = forms.nth(i);
802
+ if (!await form.isVisible()) continue;
803
+ const fields2 = form.locator("input:not([type=hidden]), textarea");
804
+ for (let n = 0; n < await fields2.count(); n++) {
805
+ const field = fields2.nth(n);
806
+ const type = await field.getAttribute("type");
807
+ if (!await field.isVisible()) continue;
808
+ if (type === "file") {
809
+ if (await form.getAttribute("data-preserve-disabled-custom-form") !== null && !await form.getAttribute("data-vitris-form")) await field.setInputFiles({ name: "preview.png", mimeType: "image/png", buffer: Buffer2.from("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScLbtAAAAABJRU5ErkJggg==", "base64") });
810
+ else failures.push("Unsupported form field: file");
811
+ continue;
812
+ }
813
+ if (type === "checkbox" || type === "radio") {
814
+ await field.check();
815
+ continue;
816
+ }
817
+ await field.fill(type === "email" ? "preview@example.com" : type === "tel" || type === "number" ? "5705550100" : "Preview verification");
818
+ }
819
+ const selects = form.locator("select");
820
+ for (let n = 0; n < await selects.count(); n++) {
821
+ const select = selects.nth(n);
822
+ const option = await select.locator("option").evaluateAll((options) => options.find((o) => o.value)?.value);
823
+ if (option) await select.selectOption(option);
824
+ }
825
+ const send = form.locator('[data-vitrisid="emailSendButton"]');
826
+ if (await send.count()) await send.click();
827
+ else await form.evaluate((form2) => form2.requestSubmit());
828
+ try {
829
+ await page.getByText(await form.getAttribute("data-vitris-form") ? "Test message accepted. No customer email will be sent." : await form.getAttribute("data-preserve-disabled-custom-form") !== null ? "This preview does not send messages or upload files. Please use the listed contact details." : "This preview does not send messages. Please use the listed contact details.", { exact: true }).first().waitFor({ timeout: 3e3 });
830
+ } catch {
831
+ failures.push("Form feedback missing");
832
+ }
833
+ }
834
+ return failures;
835
+ }
836
+ async function verifyPreservedSite(root, opts = {}) {
837
+ const manifest = preserveManifest(root);
838
+ const config = preserveConfig(root), dist = join2(root, "dist");
839
+ const connected = !!config.backendOrigin && !!config.forms?.length;
840
+ const report = { version: 1, ok: false, sourceRevision: sourceRevision(root).digest, artifactDigest: artifactManifest(dist).sha256, checkedAt: (/* @__PURE__ */ new Date()).toISOString(), remoteUrl: opts.remoteUrl, checks: [], failures: [], warnings: [...manifest.warnings.filter((w) => !w.startsWith("Forms are preview-only")), ...connected ? ["Resting-page fidelity uses unchanged reference captures. Challenge and acceptance responses are mocked here; separate service integration tests are required."] : ["Forms are preview-only; no submissions are sent."]] };
841
+ if (!manifest.pages.length || !manifest.pages.some((p) => p.path === "/")) throw new Error("Preservation manifest has no homepage");
842
+ const server = opts.remoteUrl ? void 0 : previewServer(dist);
843
+ if (server) await new Promise((done) => server.listen(0, "127.0.0.1", done));
844
+ const origin = opts.remoteUrl ? new URL(opts.remoteUrl).origin : `http://127.0.0.1:${server.address().port}`;
845
+ const browser = await chromium2.launch({ headless: true });
846
+ const comparePage = await browser.newPage();
847
+ const abort = () => {
848
+ void browser.close();
849
+ };
850
+ opts.signal?.addEventListener("abort", abort, { once: true });
851
+ try {
852
+ const screenshotDir = opts.remoteUrl ? "artifacts/preserve-remote" : "artifacts/preserve-verification";
853
+ const screenshots = join2(root, screenshotDir);
854
+ mkdirSync2(screenshots, { recursive: true });
855
+ const staticComponents = /* @__PURE__ */ new Map();
856
+ const reactComponents = /* @__PURE__ */ new Map();
857
+ const scriptedLimitations = [];
858
+ const repairedNavigation = /* @__PURE__ */ new Set();
859
+ const authoredPages = manifest.pages.map((p) => readFileSync2(within(dist, p.file), "utf8"));
860
+ const originalPages = new Map(manifest.pages.flatMap((p) => {
861
+ const file = p.references[0]?.file.replace(/-\d+\.png$/, "-rendered.html");
862
+ return file && existsSync2(within(root, file)) ? [[p.path, readFileSync2(within(root, file), "utf8")]] : [];
863
+ }));
864
+ const missingSourceAnchors = new Map(manifest.pages.map((p) => [p.path, originalMissingAnchors(originalPages.get(p.path) || "", p.url, originalPages)]));
865
+ const nullImages = originalNullImages(manifest, [...originalPages.values()], authoredPages);
866
+ const resolvedNavigationAssets = new Set(manifest.assets.filter((a) => a.captureError?.startsWith("Asset returned HTML:") && manifest.pages.some((p) => p.url === a.url) && !authoredPages.some((html) => html.includes("/" + a.file))).map((a) => a.url));
867
+ nullImages.forEach((url) => {
868
+ resolvedNavigationAssets.add(url);
869
+ report.warnings.push(`Original missing image ${url} retains its broken-image rendering using an inert local placeholder. No source photograph was available or invented.`);
870
+ });
871
+ for (const route of manifest.pages) {
872
+ const reference = route.references[0]?.file.replace(/-\d+\.png$/, "-rendered.html");
873
+ if (reference && existsSync2(within(root, reference))) {
874
+ const html = readFileSync2(within(root, reference), "utf8"), authored = readFileSync2(within(dist, route.file), "utf8");
875
+ staticComponents.set(route.path, staticLegacyComponents(html));
876
+ if (disabledLegacyServices(html, authored, !!config.previewDisabledTransactions && !connected)) staticComponents.get(route.path).add("service-1");
877
+ reactComponents.set(route.path, reactCapabilities(legacyReactState(html), html, authored, route.path, !!config.previewDisabledTransactions && !connected));
878
+ for (const path of repairedExternalNavigation(html, authored, manifest.sourceUrl)) repairedNavigation.add(path);
879
+ scriptedLimitations.push(...unsupportedApplicationScripts(html, manifest.sourceUrl).map((src) => `${route.path}: Unsupported scripted application removed from preview: ${src}`));
880
+ }
881
+ }
882
+ for (const path of repairedNavigation) report.warnings.push(`Malformed original external link repaired at ${path}; original copy and layout retained.`);
883
+ for (const route of manifest.pages.filter((p) => p.sourceFailure)) {
884
+ const proof = route.sourceFailure, response = readFileSync2(within(root, proof.responseFile));
885
+ if (createHash2("sha256").update(response).digest("hex") !== proof.responseSha256) throw Error("Original unavailable-route response changed");
886
+ const valid = originalPages.has(route.path) && (proof.kind === "http-404" ? proof.status === 404 : proof.kind === "soft-404" && proof.status === 200 && originalPages.get(route.path).includes("404 Page Not Found"));
887
+ if (!valid) throw Error("Invalid unavailable-route preservation evidence");
888
+ if ((manifest.blockers || []).some((b) => b.startsWith(route.path + ": Source " + (proof.kind === "http-404" ? "page failed:" : "returned a soft 404:")))) repairedNavigation.add(route.path);
889
+ report.warnings.push(`Original unavailable route ${route.path} retains its captured ${proof.kind} page. The preview returns HTTP 200 for this static error content; missing business content was not invented.`);
890
+ }
891
+ if (config.previewDisabledTransactions) report.warnings.push("Explicitly authorized preview: booking and checkout are disabled. Calendar availability is a capture-time snapshot. Custom forms and file selections remain local and never upload or notify customers.");
892
+ for (const [index, route] of manifest.pages.entries()) for (const width of PRESERVE_WIDTHS) {
893
+ opts.signal?.throwIfAborted();
894
+ opts.onLog?.(`Checking ${route.path} at ${width}px`);
895
+ const context = await browser.newContext({ viewport: { width, height: PRESERVE_HEIGHT }, deviceScaleFactor: 1, reducedMotion: "reduce", serviceWorkers: "block" });
896
+ const failures = [];
897
+ const approvedEmbeds = new Set(iframeSources(readFileSync2(within(dist, route.file), "utf8")).map(approvedEmbedUrl).filter((src) => !!src));
898
+ for (const src of approvedEmbeds) {
899
+ const warning = `Remote ${readOnlyEmbedProvider(src)} embed retained at ${route.path}: ${src}. Provider content, network availability and privacy behavior remain external dependencies.`;
900
+ if (!report.warnings.includes(warning)) report.warnings.push(warning);
901
+ }
902
+ await context.route("**/*", (request) => {
903
+ const url = request.request().url();
904
+ const target = new URL(url);
905
+ const formsBackend = connected && target.origin === config.backendOrigin && target.pathname === "/api/leads";
906
+ const challenge = connected && target.origin === "https://challenges.cloudflare.com" && (target.pathname === "/turnstile/v0/api.js" || target.pathname.startsWith("/cdn-cgi/challenge-platform/"));
907
+ const embed = isReadOnlyEmbedRequest(request.request(), approvedEmbeds);
908
+ if (embed && /(^|\.)vitris\.io$/.test(target.hostname) && /api|service|analytics/.test(target.pathname)) {
909
+ failures.push(`Legacy service in embed: ${url}`);
910
+ return request.abort();
911
+ }
912
+ if (target.origin !== origin && !url.startsWith("data:") && !formsBackend && !challenge && !embed) {
913
+ failures.push(`External dependency: ${url}`);
914
+ return request.abort();
915
+ }
916
+ return request.continue();
917
+ });
918
+ const page = await context.newPage();
919
+ page.on("pageerror", (error) => failures.push(error.message));
920
+ page.on("console", (message) => {
921
+ if (message.type() === "error") {
922
+ if (providerConsoleWarning(message.text(), message.location().url, approvedEmbeds)) {
923
+ const warning = "YouTube provider attempted compute-pressure telemetry; the browser denied this permission. Playback and the original frame permissions remain unchanged.";
924
+ if (!report.warnings.includes(warning)) report.warnings.push(warning);
925
+ } else failures.push(`Browser console: ${message.text()}`);
926
+ }
927
+ });
928
+ page.on("requestfailed", (request) => {
929
+ if (cancelledReviewTelemetry(request, request.failure()?.errorText, approvedEmbeds)) {
930
+ const warning = "MassageBook reviews provider conversion telemetry was cancelled by the browser. The external provider retains its own privacy behavior; review assets and functional requests still pass strict browser and visual checks.";
931
+ if (!report.warnings.includes(warning)) report.warnings.push(warning);
932
+ } else failures.push(`Resource failed: ${request.url()}: ${request.failure()?.errorText}`);
933
+ });
934
+ page.on("response", (response2) => {
935
+ if (response2.status() >= 400) failures.push(`HTTP ${response2.status()}: ${response2.url()}`);
936
+ });
937
+ const response = await page.goto(origin + route.path, { waitUntil: "load" });
938
+ if (!response?.ok()) failures.push(`Route failed: ${route.path}`);
939
+ if (opts.remoteUrl && response) {
940
+ const headers = response.headers();
941
+ if (!/noindex/i.test(headers["x-robots-tag"] || "")) failures.push("Hosted noindex header missing");
942
+ if (!(headers["content-security-policy"] || "").includes("default-src 'self'")) failures.push("Hosted preservation CSP missing");
943
+ }
944
+ await settle(page);
945
+ const screenshot = `${screenshotDir}/${index}-${width}.png`;
946
+ const actual = await page.screenshot({ fullPage: true, animations: "disabled", path: join2(root, screenshot) });
947
+ const reference = route.references.find((r) => r.width === width);
948
+ if (!reference) throw new Error(`Missing ${width}px reference for ${route.path}`);
949
+ const bytes = readFileSync2(within(root, reference.file));
950
+ if (createHash2("sha256").update(bytes).digest("hex") !== reference.sha256) throw new Error(`Reference capture changed: ${reference.file}`);
951
+ const diff = await compare(comparePage, bytes, actual);
952
+ const overflow = await page.evaluate(() => {
953
+ const { document, window } = globalThis;
954
+ return document.documentElement.scrollWidth > window.innerWidth + 1;
955
+ });
956
+ const referenceWidth = bytes[16] * 16777216 + bytes[17] * 65536 + bytes[18] * 256 + bytes[19];
957
+ if (overflow && referenceWidth <= width) failures.push("New horizontal overflow compared with the original");
958
+ else if (overflow) {
959
+ const warning = `Original horizontal overflow retained at ${route.path} (${width}px); no layout redesign applied.`;
960
+ if (!report.warnings.includes(warning)) report.warnings.push(warning);
961
+ }
962
+ if (!diff.dimensionsMatch || diff.changedPixelRatio > 5e-3) failures.push(`Visual difference ${(100 * diff.changedPixelRatio).toFixed(3)}% (limit 0.5%); dimensions ${diff.dimensionsMatch ? "match" : "differ"}`);
963
+ const broken = await page.locator("img").evaluateAll((images) => images.filter((i) => i.getAttribute("src") && !i.naturalWidth).map((i) => i.getAttribute("src")));
964
+ const newBroken = broken.filter((src) => !manifest.assets.some((a) => src === "/" + a.file && nullImages.has(a.url)));
965
+ if (newBroken.length) failures.push(`Broken images: ${newBroken.join(", ")}`);
966
+ const links = await page.locator("a[href]").evaluateAll((anchors) => anchors.map((a) => a.href));
967
+ if (links.some((href) => /^javascript:/i.test(href))) failures.push("Unadapted JavaScript link remains");
968
+ if (await page.locator("[data-preserve-disabled-custom-form][data-vitris-form]").count()) failures.push("Disabled custom form has a live service binding");
969
+ for (const href of links) {
970
+ const url = new URL(href);
971
+ if (url.origin !== origin) continue;
972
+ const target = manifest.pages.find((p) => p.path === url.pathname);
973
+ if (!target && !existsSync2(within(dist, "." + decodeURIComponent(url.pathname)))) failures.push(`Uncaptured internal link: ${url.pathname}`);
974
+ if (url.hash && target) {
975
+ const html = readFileSync2(within(dist, target.file), "utf8");
976
+ if (!html.includes(`id="${decodeURIComponent(url.hash.slice(1))}"`)) {
977
+ if (missingSourceAnchors.get(route.path).has(url.pathname + url.hash)) {
978
+ const warning = `Original missing anchor retained: ${url.pathname}${url.hash}. The source link already lacked its destination section.`;
979
+ if (!report.warnings.includes(warning)) report.warnings.push(warning);
980
+ } else failures.push(`Missing anchor: ${url.pathname}${url.hash}`);
981
+ }
982
+ }
983
+ }
984
+ failures.push(...await interactions(page, connected ? config.backendOrigin : void 0));
985
+ report.checks.push({ path: route.path, width, ...diff, screenshot, failures: [...new Set(failures)] });
986
+ await context.close();
987
+ }
988
+ report.failures = [...unresolvedCaptureBlockers(manifest, staticComponents, resolvedNavigationAssets, reactComponents, repairedNavigation), ...scriptedLimitations, ...report.checks.flatMap((c) => c.failures.map((f) => `${c.path} (${c.width}px): ${f}`))];
989
+ report.assetChecks = [];
990
+ let nextAsset = 0;
991
+ await Promise.all(Array.from({ length: 4 }, async () => {
992
+ while (nextAsset < manifest.assets.length) {
993
+ const asset = manifest.assets[nextAsset++];
994
+ try {
995
+ if (asset.referenceFile && asset.originalSha256 && createHash2("sha256").update(readFileSync2(within(root, asset.referenceFile))).digest("hex") !== asset.originalSha256) throw new Error("Original asset reference changed");
996
+ const expected = readFileSync2(within(dist, asset.file));
997
+ const response = await comparePage.request.get(origin + "/" + asset.file, { timeout: 3e4 });
998
+ if (!response.ok()) throw new Error(`HTTP ${response.status()}`);
999
+ const bytes = await response.body();
1000
+ if (createHash2("sha256").update(bytes).digest("hex") !== createHash2("sha256").update(expected).digest("hex")) throw new Error("Served bytes differ from the authored build");
1001
+ report.assetChecks.push({ file: asset.file, ok: true });
1002
+ } catch (error) {
1003
+ const message = error instanceof Error ? error.message : String(error);
1004
+ report.assetChecks.push({ file: asset.file, ok: false, error: message });
1005
+ report.failures.push(`Asset ${asset.file}: ${message}`);
1006
+ }
1007
+ }
1008
+ }));
1009
+ if (sourceRevision(root).digest !== report.sourceRevision || artifactManifest(dist).sha256 !== report.artifactDigest) report.failures.push("Source or build changed during verification");
1010
+ report.ok = !report.failures.length;
1011
+ save(join2(root, opts.remoteUrl ? "agent/reviews/preserve-remote.json" : "agent/reviews/preserve.json"), report);
1012
+ return report;
1013
+ } finally {
1014
+ opts.signal?.removeEventListener("abort", abort);
1015
+ await browser.close();
1016
+ if (server) await new Promise((done) => server.close(() => done()));
1017
+ }
1018
+ }
1019
+
1020
+ export {
1021
+ capturePreservedSite,
1022
+ verifyPreservedSite
1023
+ };