@flanksource/page-runtime 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (804) hide show
  1. package/.vitest/gavel-reporter-3e3dfb64eda19344.mjs +59 -0
  2. package/.vitest/vitest-report-root-1793958008919344000.json +1 -0
  3. package/.vitest/vitest-report-root-1793958052786561000.json +1 -0
  4. package/.vitest/vitest-report-root-1793958143511414000.json +1 -0
  5. package/.vitest/vitest-report-root-1793958185908019000.json +1 -0
  6. package/.vitest/vitest-report-root-1793958252687550000.json +1 -0
  7. package/.vitest/vitest-report-root-1793958260385388000.json +1 -0
  8. package/.vitest/vitest-report-root-1793958312358683000.json +1 -0
  9. package/.vitest/vitest-report-root-1793958386118791000.json +1 -0
  10. package/.vitest/vitest-report-root-1793958388712140000.json +1 -0
  11. package/.vitest/vitest-report-root-1793958429135603000.json +1 -0
  12. package/.vitest/vitest-report-root-1793958433387809000.json +1 -0
  13. package/.vitest/vitest-report-root-1793958517322792000.json +1 -0
  14. package/.vitest/vitest-report-root-1793958542332252000.json +1 -0
  15. package/.vitest/vitest-report-root-1793958617698698000.json +1 -0
  16. package/.vitest/vitest-report-root-1793958676587753000.json +1 -0
  17. package/.vitest/vitest-report-root-1793958707827469000.json +1 -0
  18. package/.vitest/vitest-report-root-1793958729745028000.json +1 -0
  19. package/.vitest/vitest-report-root-1793958736696408000.json +1 -0
  20. package/.vitest/vitest-report-root-1793958740449993000.json +1 -0
  21. package/.vitest/vitest-report-root-1793958841510921000.json +1 -0
  22. package/.vitest/vitest-report-root-1793958847664582000.json +1 -0
  23. package/.vitest/vitest-report-root-1793958900327643000.json +1 -0
  24. package/.vitest/vitest-report-root-1793958950822823000.json +1 -0
  25. package/.vitest/vitest-report-root-1793959013655262000.json +1 -0
  26. package/.vitest/vitest-report-root-1793959017905881000.json +1 -0
  27. package/.vitest/vitest-report-root-1793959093169044000.json +1 -0
  28. package/.vitest/vitest-report-root-1793959093978087000.json +1 -0
  29. package/.vitest/vitest-report-root-1793959101111925000.json +1 -0
  30. package/.vitest/vitest-report-root-1793959145317906000.json +1 -0
  31. package/.vitest/vitest-report-root-1793959190760607000.json +1 -0
  32. package/.vitest/vitest-report-root-1793959249695805000.json +1 -0
  33. package/.vitest/vitest-report-root-1793959323191511000.json +1 -0
  34. package/.vitest/vitest-report-root-1793959453311564000.json +1 -0
  35. package/.vitest/vitest-report-root-1793959495806182000.json +1 -0
  36. package/.vitest/vitest-report-root-1793959499945435000.json +1 -0
  37. package/.vitest/vitest-report-root-1793959546773807000.json +1 -0
  38. package/.vitest/vitest-report-root-1793959583335593000.json +1 -0
  39. package/.vitest/vitest-report-root-1793959621479504000.json +1 -0
  40. package/.vitest/vitest-report-root-1793959651002360000.json +1 -0
  41. package/.vitest/vitest-report-root-1793959655646061000.json +1 -0
  42. package/.vitest/vitest-report-root-1793959741176826000.json +1 -0
  43. package/.vitest/vitest-report-root-1793959744743733000.json +1 -0
  44. package/.vitest/vitest-report-root-1793959833244182000.json +1 -0
  45. package/.vitest/vitest-report-root-1793959882131751000.json +1 -0
  46. package/.vitest/vitest-report-root-1793959887033254000.json +1 -0
  47. package/.vitest/vitest-report-root-1793960000631977000.json +1 -0
  48. package/.vitest/vitest-report-root-1793960011938504000.json +1 -0
  49. package/.vitest/vitest-report-root-1793961370018852000.json +1 -0
  50. package/.vitest/vitest-report-root-1793961745370827000.json +1 -0
  51. package/.vitest/vitest-report-root-1793961764143180000.json +1 -0
  52. package/.vitest/vitest-report-root-1793961835963066000.json +1 -0
  53. package/.vitest/vitest-report-root-1793961890729922000.json +1 -0
  54. package/.vitest/vitest-report-root-1793961968680074000.json +1 -0
  55. package/.vitest/vitest-report-root-1793962066862337000.json +1 -0
  56. package/.vitest/vitest-report-root-1793962087917497000.json +1 -0
  57. package/.vitest/vitest-report-root-1793962157254386000.json +1 -0
  58. package/.vitest/vitest-report-root-1793962171214865000.json +1 -0
  59. package/.vitest/vitest-report-root-1793962183290533000.json +1 -0
  60. package/.vitest/vitest-report-root-1793962184809932000.json +1 -0
  61. package/.vitest/vitest-report-root-1793962197715204000.json +1 -0
  62. package/.vitest/vitest-report-root-1793962244650717000.json +1 -0
  63. package/.vitest/vitest-report-root-1793962259802273000.json +1 -0
  64. package/.vitest/vitest-report-root-1793962278799745000.json +1 -0
  65. package/.vitest/vitest-report-root-1793962304412974000.json +1 -0
  66. package/.vitest/vitest-report-root-1793962328411454000.json +1 -0
  67. package/.vitest/vitest-report-root-1793962355747869000.json +1 -0
  68. package/.vitest/vitest-report-root-1793962381401572000.json +1 -0
  69. package/.vitest/vitest-report-root-1793962393326735000.json +1 -0
  70. package/.vitest/vitest-report-root-1793962393329206000.json +1 -0
  71. package/.vitest/vitest-report-root-1793962437796768000.json +1 -0
  72. package/.vitest/vitest-report-root-1793962444190384000.json +1 -0
  73. package/.vitest/vitest-report-root-1793962445347541000.json +1 -0
  74. package/.vitest/vitest-report-root-1793962473691143000.json +1 -0
  75. package/.vitest/vitest-report-root-1793962474291457000.json +1 -0
  76. package/.vitest/vitest-report-root-1793962499680468000.json +1 -0
  77. package/.vitest/vitest-report-root-1793962504410483000.json +1 -0
  78. package/.vitest/vitest-report-root-1793962516850524000.json +1 -0
  79. package/.vitest/vitest-report-root-1793962536736273000.json +1 -0
  80. package/.vitest/vitest-report-root-1793962551181783000.json +1 -0
  81. package/.vitest/vitest-report-root-1793962553575620000.json +1 -0
  82. package/.vitest/vitest-report-root-1793962555169730000.json +1 -0
  83. package/.vitest/vitest-report-root-1793962572639765000.json +1 -0
  84. package/.vitest/vitest-report-root-1793962597102952000.json +1 -0
  85. package/.vitest/vitest-report-root-1793962637156669000.json +1 -0
  86. package/.vitest/vitest-report-root-1793962653530027000.json +1 -0
  87. package/.vitest/vitest-report-root-1793962665824334000.json +1 -0
  88. package/.vitest/vitest-report-root-1793962682161714000.json +1 -0
  89. package/.vitest/vitest-report-root-1793962719526168000.json +1 -0
  90. package/.vitest/vitest-report-root-1793962723853934000.json +1 -0
  91. package/.vitest/vitest-report-root-1793962741927728000.json +1 -0
  92. package/.vitest/vitest-report-root-1793962794308371000.json +1 -0
  93. package/.vitest/vitest-report-root-1793962796334481000.json +1 -0
  94. package/.vitest/vitest-report-root-1793962798075169000.json +1 -0
  95. package/.vitest/vitest-report-root-1793962836466676000.json +1 -0
  96. package/.vitest/vitest-report-root-1793962846507317000.json +1 -0
  97. package/.vitest/vitest-report-root-1793962876266701000.json +1 -0
  98. package/.vitest/vitest-report-root-1793962922031308000.json +1 -0
  99. package/.vitest/vitest-report-root-1793962932957166000.json +1 -0
  100. package/.vitest/vitest-report-root-1793962946930725000.json +1 -0
  101. package/.vitest/vitest-report-root-1793963027896350000.json +1 -0
  102. package/.vitest/vitest-report-root-1793963036618707000.json +1 -0
  103. package/.vitest/vitest-report-root-1793963067365318000.json +1 -0
  104. package/.vitest/vitest-report-root-1793963077597641000.json +1 -0
  105. package/.vitest/vitest-report-root-1793963126365651000.json +1 -0
  106. package/.vitest/vitest-report-root-1793963208744553000.json +1 -0
  107. package/.vitest/vitest-report-root-1793963232806450000.json +1 -0
  108. package/.vitest/vitest-report-root-1793963325077422000.json +1 -0
  109. package/.vitest/vitest-report-root-1793963392172877000.json +1 -0
  110. package/.vitest/vitest-report-root-1793963398218324000.json +1 -0
  111. package/.vitest/vitest-report-root-1793963410749092000.json +1 -0
  112. package/.vitest/vitest-report-root-1793963437279580000.json +1 -0
  113. package/.vitest/vitest-report-root-1793963450096193000.json +1 -0
  114. package/.vitest/vitest-report-root-1793963478908641000.json +1 -0
  115. package/.vitest/vitest-report-root-1793963507838465000.json +1 -0
  116. package/.vitest/vitest-report-root-1793963528668174000.json +1 -0
  117. package/.vitest/vitest-report-root-1793963601860390000.json +1 -0
  118. package/.vitest/vitest-report-root-1793963611633446000.json +1 -0
  119. package/.vitest/vitest-report-root-1793963624713406000.json +1 -0
  120. package/.vitest/vitest-report-root-1793963680656685000.json +1 -0
  121. package/.vitest/vitest-report-root-1793963705231851000.json +1 -0
  122. package/.vitest/vitest-report-root-1793963708929500000.json +1 -0
  123. package/.vitest/vitest-report-root-1793963710267844000.json +1 -0
  124. package/.vitest/vitest-report-root-1793963713999248000.json +1 -0
  125. package/.vitest/vitest-report-root-1793963786513455000.json +1 -0
  126. package/.vitest/vitest-report-root-1793963792518765000.json +1 -0
  127. package/.vitest/vitest-report-root-1793963804089549000.json +1 -0
  128. package/.vitest/vitest-report-root-1793963840412921000.json +1 -0
  129. package/.vitest/vitest-report-root-1793963880361176000.json +1 -0
  130. package/.vitest/vitest-report-root-1793963935121106000.json +1 -0
  131. package/.vitest/vitest-report-root-1793963937290698000.json +1 -0
  132. package/.vitest/vitest-report-root-1793963977050773000.json +1 -0
  133. package/.vitest/vitest-report-root-1793963981229158000.json +1 -0
  134. package/.vitest/vitest-report-root-1793963989422080000.json +1 -0
  135. package/.vitest/vitest-report-root-1793964025924629000.json +1 -0
  136. package/.vitest/vitest-report-root-1793964027983705000.json +1 -0
  137. package/.vitest/vitest-report-root-1793964059969386000.json +1 -0
  138. package/.vitest/vitest-report-root-1793964071524069000.json +1 -0
  139. package/.vitest/vitest-report-root-1793964076285860000.json +1 -0
  140. package/.vitest/vitest-report-root-1793964077988100000.json +1 -0
  141. package/.vitest/vitest-report-root-1793964093289042000.json +1 -0
  142. package/.vitest/vitest-report-root-1793964102899356000.json +1 -0
  143. package/.vitest/vitest-report-root-1793964128089691000.json +1 -0
  144. package/.vitest/vitest-report-root-1793964129495156000.json +1 -0
  145. package/.vitest/vitest-report-root-1793964182849665000.json +1 -0
  146. package/.vitest/vitest-report-root-1793964223959893000.json +1 -0
  147. package/.vitest/vitest-report-root-1793964253351716000.json +1 -0
  148. package/.vitest/vitest-report-root-1793964290220122000.json +1 -0
  149. package/.vitest/vitest-report-root-1793964318037006000.json +1 -0
  150. package/.vitest/vitest-report-root-1793964334676691000.json +1 -0
  151. package/.vitest/vitest-report-root-1793964378520677000.json +1 -0
  152. package/.vitest/vitest-report-root-1793964383748994000.json +1 -0
  153. package/.vitest/vitest-report-root-1793964394042303000.json +1 -0
  154. package/.vitest/vitest-report-root-1793964466521881000.json +1 -0
  155. package/.vitest/vitest-report-root-1793964470478175000.json +1 -0
  156. package/.vitest/vitest-report-root-1793964484499019000.json +1 -0
  157. package/.vitest/vitest-report-root-1793964527645213000.json +1 -0
  158. package/.vitest/vitest-report-root-1793964608875865000.json +1 -0
  159. package/.vitest/vitest-report-root-1793964623608336000.json +1 -0
  160. package/.vitest/vitest-report-root-1793964629870846000.json +1 -0
  161. package/.vitest/vitest-report-root-1793964674515564000.json +1 -0
  162. package/.vitest/vitest-report-root-1793964706923651000.json +1 -0
  163. package/.vitest/vitest-report-root-1793964712832942000.json +1 -0
  164. package/.vitest/vitest-report-root-1793964714824633000.json +1 -0
  165. package/.vitest/vitest-report-root-1793964755433952000.json +1 -0
  166. package/.vitest/vitest-report-root-1793964783157670000.json +1 -0
  167. package/.vitest/vitest-report-root-1793964818963246000.json +1 -0
  168. package/.vitest/vitest-report-root-1793964843818548000.json +1 -0
  169. package/.vitest/vitest-report-root-1793964929824204000.json +1 -0
  170. package/.vitest/vitest-report-root-1793964973060713000.json +1 -0
  171. package/.vitest/vitest-report-root-1793964983122482000.json +1 -0
  172. package/.vitest/vitest-report-root-1793965107264567000.json +1 -0
  173. package/.vitest/vitest-report-root-1793965258759177000.json +1 -0
  174. package/.vitest/vitest-report-root-1793965277212091000.json +1 -0
  175. package/.vitest/vitest-report-root-1793965420648188000.json +1 -0
  176. package/.vitest/vitest-report-root-1793965611688414000.json +1 -0
  177. package/.vitest/vitest-report-root-1793965753407694000.json +1 -0
  178. package/.vitest/vitest-report-root-1793965766104309000.json +1 -0
  179. package/.vitest/vitest-report-root-1793965766823098000.json +1 -0
  180. package/.vitest/vitest-report-root-1793965806066109000.json +1 -0
  181. package/.vitest/vitest-report-root-1793965824697182000.json +1 -0
  182. package/.vitest/vitest-report-root-1793965904374564000.json +1 -0
  183. package/.vitest/vitest-report-root-1793965920838340000.json +1 -0
  184. package/.vitest/vitest-report-root-1793965932520617000.json +1 -0
  185. package/.vitest/vitest-report-root-1793965971574656000.json +1 -0
  186. package/.vitest/vitest-report-root-1793966049815024000.json +1 -0
  187. package/.vitest/vitest-report-root-1793966057888034000.json +1 -0
  188. package/.vitest/vitest-report-root-1793966066838868000.json +1 -0
  189. package/.vitest/vitest-report-root-1793966160347764000.json +1 -0
  190. package/.vitest/vitest-report-root-1793966196305985000.json +1 -0
  191. package/.vitest/vitest-report-root-1793966221538043000.json +1 -0
  192. package/.vitest/vitest-report-root-1793966251519918000.json +1 -0
  193. package/.vitest/vitest-report-root-1793966447000588000.json +1 -0
  194. package/.vitest/vitest-report-root-1793966463178249000.json +1 -0
  195. package/.vitest/vitest-report-root-1793966486995648000.json +1 -0
  196. package/.vitest/vitest-report-root-1793966726756953000.json +1 -0
  197. package/.vitest/vitest-report-root-1793966763656807000.json +1 -0
  198. package/.vitest/vitest-report-root-1793966979409799000.json +1 -0
  199. package/.vitest/vitest-report-root-1793967385250149000.json +1 -0
  200. package/.vitest/vitest-report-root-1793967617080163000.json +1 -0
  201. package/.vitest/vitest-report-root-1793967649428508000.json +1 -0
  202. package/.vitest/vitest-report-root-1793967773689520000.json +1 -0
  203. package/.vitest/vitest-report-root-1793968743743508000.json +1 -0
  204. package/.vitest/vitest-report-root-1793968846470407000.json +1 -0
  205. package/.vitest/vitest-report-root-1793968880878391000.json +1 -0
  206. package/.vitest/vitest-report-root-1793969027713529000.json +1 -0
  207. package/.vitest/vitest-report-root-1793969041841266000.json +1 -0
  208. package/.vitest/vitest-report-root-1793969142007468000.json +1 -0
  209. package/.vitest/vitest-report-root-1793969164867379000.json +1 -0
  210. package/.vitest/vitest-report-root-1793969193145858000.json +1 -0
  211. package/.vitest/vitest-report-root-1793969246818533000.json +1 -0
  212. package/.vitest/vitest-report-root-1793969270845486000.json +1 -0
  213. package/.vitest/vitest-report-root-1793969272514219000.json +1 -0
  214. package/.vitest/vitest-report-root-1793969302476105000.json +1 -0
  215. package/.vitest/vitest-report-root-1793969401697799000.json +1 -0
  216. package/.vitest/vitest-report-root-1793969433222630000.json +1 -0
  217. package/.vitest/vitest-report-root-1793969453350714000.json +1 -0
  218. package/.vitest/vitest-report-root-1793969567187400000.json +1 -0
  219. package/.vitest/vitest-report-root-1793969602230024000.json +1 -0
  220. package/.vitest/vitest-report-root-1793969633261063000.json +1 -0
  221. package/.vitest/vitest-report-root-1793969673876404000.json +1 -0
  222. package/.vitest/vitest-report-root-1793969702287010000.json +1 -0
  223. package/.vitest/vitest-report-root-1793969745828386000.json +1 -0
  224. package/.vitest/vitest-report-root-1793969893687205000.json +1 -0
  225. package/.vitest/vitest-report-root-1793969949642120000.json +1 -0
  226. package/.vitest/vitest-report-root-1793969981399076000.json +1 -0
  227. package/.vitest/vitest-report-root-1793970027152713000.json +1 -0
  228. package/.vitest/vitest-report-root-1793970030585158000.json +1 -0
  229. package/.vitest/vitest-report-root-1793970160195767000.json +1 -0
  230. package/.vitest/vitest-report-root-1793970215752422000.json +1 -0
  231. package/.vitest/vitest-report-root-1793970217114968000.json +1 -0
  232. package/.vitest/vitest-report-root-1793970329879319000.json +1 -0
  233. package/.vitest/vitest-report-root-1793970590586994000.json +1 -0
  234. package/.vitest/vitest-report-root-1793970625359990000.json +1 -0
  235. package/.vitest/vitest-report-root-1793970672590269000.json +1 -0
  236. package/.vitest/vitest-report-root-1793970796789022000.json +1 -0
  237. package/.vitest/vitest-report-root-1793970825710990000.json +1 -0
  238. package/.vitest/vitest-report-root-1793970884000509000.json +1 -0
  239. package/.vitest/vitest-report-root-1793970900444617000.json +1 -0
  240. package/.vitest/vitest-report-root-1793972186024681000.json +1 -0
  241. package/.vitest/vitest-report-root-1793972227757396000.json +1 -0
  242. package/.vitest/vitest-report-root-1793972736341600000.json +1 -0
  243. package/.vitest/vitest-report-root-1793972769249562000.json +1 -0
  244. package/.vitest/vitest-report-root-1793972859435283000.json +1 -0
  245. package/.vitest/vitest-report-root-1793972915169294000.json +1 -0
  246. package/.vitest/vitest-report-root-1793973081515450000.json +1 -0
  247. package/.vitest/vitest-report-root-1793973111336773000.json +1 -0
  248. package/.vitest/vitest-report-root-1793973253986969000.json +1 -0
  249. package/.vitest/vitest-report-root-1793973561283775000.json +1 -0
  250. package/.vitest/vitest-report-root-1793973593320977000.json +1 -0
  251. package/.vitest/vitest-report-root-1793973648302867000.json +1 -0
  252. package/.vitest/vitest-report-root-1793973819657242000.json +1 -0
  253. package/.vitest/vitest-report-root-1793973952727311000.json +1 -0
  254. package/.vitest/vitest-report-root-1793974334455876000.json +1 -0
  255. package/.vitest/vitest-report-root-1793974437074196000.json +1 -0
  256. package/.vitest/vitest-report-root-1793974437553146000.json +1 -0
  257. package/.vitest/vitest-report-root-1793974461818626000.json +1 -0
  258. package/.vitest/vitest-report-root-1793974515255198000.json +1 -0
  259. package/.vitest/vitest-report-root-1793974516267191000.json +1 -0
  260. package/.vitest/vitest-report-root-1793974621202824000.json +1 -0
  261. package/.vitest/vitest-report-root-1793974718450330000.json +1 -0
  262. package/.vitest/vitest-report-root-1793974834942373000.json +1 -0
  263. package/.vitest/vitest-report-root-1793974921367314000.json +1 -0
  264. package/.vitest/vitest-report-root-1793975019367156000.json +1 -0
  265. package/.vitest/vitest-report-root-1793975048166096000.json +1 -0
  266. package/.vitest/vitest-report-root-1793975133024339000.json +1 -0
  267. package/.vitest/vitest-report-root-1793975159711704000.json +1 -0
  268. package/.vitest/vitest-report-root-1793975517481736000.json +1 -0
  269. package/.vitest/vitest-report-root-1793975680008825000.json +1 -0
  270. package/.vitest/vitest-report-root-1793976067648494000.json +1 -0
  271. package/.vitest/vitest-report-root-1793976314122479000.json +1 -0
  272. package/.vitest/vitest-report-root-1793976513022402000.json +1 -0
  273. package/.vitest/vitest-report-root-1793976540410805000.json +1 -0
  274. package/.vitest/vitest-report-root-1793976555103273000.json +1 -0
  275. package/.vitest/vitest-report-root-1793976702974407000.json +1 -0
  276. package/.vitest/vitest-report-root-1793976721093108000.json +1 -0
  277. package/.vitest/vitest-report-root-1793976955473681000.json +1 -0
  278. package/.vitest/vitest-report-root-1793977049628483000.json +1 -0
  279. package/.vitest/vitest-report-root-1793977098467804000.json +1 -0
  280. package/.vitest/vitest-report-root-1793977132144900000.json +1 -0
  281. package/.vitest/vitest-report-root-1793977279648191000.json +1 -0
  282. package/.vitest/vitest-report-root-1793977365312127000.json +1 -0
  283. package/.vitest/vitest-report-root-1793978227796817000.json +1 -0
  284. package/.vitest/vitest-report-root-1793978255189735000.json +1 -0
  285. package/.vitest/vitest-report-root-1793978306509070000.json +1 -0
  286. package/.vitest/vitest-report-root-1793978418301216000.json +1 -0
  287. package/.vitest/vitest-report-root-1793978445072573000.json +1 -0
  288. package/.vitest/vitest-report-root-1793978546605517000.json +1 -0
  289. package/.vitest/vitest-report-root-1793978576060950000.json +1 -0
  290. package/.vitest/vitest-report-root-1793978590261408000.json +1 -0
  291. package/.vitest/vitest-report-root-1793978674733179000.json +1 -0
  292. package/.vitest/vitest-report-root-1793978718588785000.json +1 -0
  293. package/.vitest/vitest-report-root-1793978725363453000.json +1 -0
  294. package/.vitest/vitest-report-root-1793978729967285000.json +1 -0
  295. package/.vitest/vitest-report-root-1793978755641607000.json +1 -0
  296. package/.vitest/vitest-report-root-1793978782769802000.json +1 -0
  297. package/.vitest/vitest-report-root-1793978784870947000.json +1 -0
  298. package/.vitest/vitest-report-root-1793978806927335000.json +1 -0
  299. package/.vitest/vitest-report-root-1793978822508324000.json +1 -0
  300. package/.vitest/vitest-report-root-1793978836339794000.json +1 -0
  301. package/.vitest/vitest-report-root-1793978837947352000.json +1 -0
  302. package/.vitest/vitest-report-root-1793978891548295000.json +1 -0
  303. package/.vitest/vitest-report-root-1793978946172947000.json +1 -0
  304. package/.vitest/vitest-report-root-1793978947109807000.json +1 -0
  305. package/.vitest/vitest-report-root-1793979034208662000.json +1 -0
  306. package/.vitest/vitest-report-root-1793979070583608000.json +1 -0
  307. package/.vitest/vitest-report-root-1793979081187144000.json +1 -0
  308. package/.vitest/vitest-report-root-1793979085428673000.json +1 -0
  309. package/.vitest/vitest-report-root-1793979155097858000.json +1 -0
  310. package/.vitest/vitest-report-root-1793979233508873000.json +1 -0
  311. package/.vitest/vitest-report-root-1793979268653273000.json +1 -0
  312. package/.vitest/vitest-report-root-1793979341978843000.json +1 -0
  313. package/.vitest/vitest-report-root-1793979345344877000.json +1 -0
  314. package/.vitest/vitest-report-root-1793979389390374000.json +1 -0
  315. package/.vitest/vitest-report-root-1793979400063493000.json +1 -0
  316. package/.vitest/vitest-report-root-1793979432448725000.json +1 -0
  317. package/.vitest/vitest-report-root-1793979459139430000.json +1 -0
  318. package/.vitest/vitest-report-root-1793979480341961000.json +1 -0
  319. package/.vitest/vitest-report-root-1793979510130869000.json +1 -0
  320. package/.vitest/vitest-report-root-1793979524763924000.json +1 -0
  321. package/.vitest/vitest-report-root-1793979571563010000.json +1 -0
  322. package/.vitest/vitest-report-root-1793979627916920000.json +1 -0
  323. package/.vitest/vitest-report-root-1793979726395379000.json +1 -0
  324. package/.vitest/vitest-report-root-1793979752029533000.json +1 -0
  325. package/.vitest/vitest-report-root-1793979753365744000.json +1 -0
  326. package/.vitest/vitest-report-root-1793979759386206000.json +1 -0
  327. package/.vitest/vitest-report-root-1793979787819109000.json +1 -0
  328. package/.vitest/vitest-report-root-1793979827615051000.json +1 -0
  329. package/.vitest/vitest-report-root-1793979927737393000.json +1 -0
  330. package/.vitest/vitest-report-root-1793979929836169000.json +1 -0
  331. package/.vitest/vitest-report-root-1793979955780781000.json +1 -0
  332. package/.vitest/vitest-report-root-1793980200569636000.json +1 -0
  333. package/.vitest/vitest-report-root-1793980206045213000.json +1 -0
  334. package/.vitest/vitest-report-root-1793980285772027000.json +1 -0
  335. package/.vitest/vitest-report-root-1793980459229828000.json +1 -0
  336. package/.vitest/vitest-report-root-1793980460545874000.json +1 -0
  337. package/.vitest/vitest-report-root-1793980554484341000.json +1 -0
  338. package/.vitest/vitest-report-root-1793980674494388000.json +1 -0
  339. package/.vitest/vitest-report-root-1793980683752195000.json +1 -0
  340. package/.vitest/vitest-report-root-1793980947108651000.json +1 -0
  341. package/.vitest/vitest-report-root-1793981129616629000.json +1 -0
  342. package/.vitest/vitest-report-root-1793981196611441000.json +1 -0
  343. package/.vitest/vitest-report-root-1793981226583545000.json +1 -0
  344. package/.vitest/vitest-report-root-1793981294259721000.json +1 -0
  345. package/.vitest/vitest-report-root-1793981353393048000.json +1 -0
  346. package/.vitest/vitest-report-root-1793981424585368000.json +1 -0
  347. package/.vitest/vitest-report-root-1793981513266687000.json +1 -0
  348. package/.vitest/vitest-report-root-1793981526418218000.json +1 -0
  349. package/.vitest/vitest-report-root-1793981540069877000.json +1 -0
  350. package/.vitest/vitest-report-root-1793981761193625000.json +1 -0
  351. package/.vitest/vitest-report-root-1793981868520992000.json +1 -0
  352. package/.vitest/vitest-report-root-1793982048467772000.json +1 -0
  353. package/.vitest/vitest-report-root-1793982119518020000.json +1 -0
  354. package/.vitest/vitest-report-root-1793982243473651000.json +1 -0
  355. package/.vitest/vitest-report-root-1793982406880629000.json +1 -0
  356. package/.vitest/vitest-report-root-1793982433563632000.json +1 -0
  357. package/.vitest/vitest-report-root-1793982496753204000.json +1 -0
  358. package/.vitest/vitest-report-root-1793982500153311000.json +1 -0
  359. package/.vitest/vitest-report-root-1793982542086095000.json +1 -0
  360. package/.vitest/vitest-report-root-1793982659482988000.json +1 -0
  361. package/.vitest/vitest-report-root-1793983799132716000.json +1 -0
  362. package/.vitest/vitest-report-root-1793983822721833000.json +1 -0
  363. package/.vitest/vitest-report-root-1793984998618484000.json +1 -0
  364. package/.vitest/vitest-report-root-1793985050475750000.json +1 -0
  365. package/.vitest/vitest-report-root-1793985095516077000.json +1 -0
  366. package/.vitest/vitest-report-root-1793985130729074000.json +1 -0
  367. package/.vitest/vitest-report-root-1793985177150997000.json +1 -0
  368. package/.vitest/vitest-report-root-1793985267658626000.json +1 -0
  369. package/.vitest/vitest-report-root-1793985412705211000.json +1 -0
  370. package/.vitest/vitest-report-root-1793985433752853000.json +1 -0
  371. package/.vitest/vitest-report-root-1794087938302852000.json +1 -0
  372. package/.vitest/vitest-report-root-1794087978339022000.json +1 -0
  373. package/.vitest/vitest-report-root-1794088095283811000.json +1 -0
  374. package/.vitest/vitest-report-root-1794088129997065000.json +1 -0
  375. package/.vitest/vitest-report-root-1794088147336556000.json +1 -0
  376. package/.vitest/vitest-report-root-1794088173414593000.json +1 -0
  377. package/.vitest/vitest-report-root-1794088221289657000.json +1 -0
  378. package/.vitest/vitest-report-root-1794088250766611000.json +1 -0
  379. package/.vitest/vitest-report-root-1794088365553234000.json +1 -0
  380. package/.vitest/vitest-report-root-1794088395202655000.json +1 -0
  381. package/.vitest/vitest-report-root-1794090028732187000.json +1 -0
  382. package/.vitest/vitest-report-root-1794090054787283000.json +1 -0
  383. package/.vitest/vitest-report-root-1794090153955794000.json +1 -0
  384. package/.vitest/vitest-report-root-1794090161850160000.json +1 -0
  385. package/.vitest/vitest-report-root-1794091755693314000.json +1 -0
  386. package/.vitest/vitest-report-root-1794091765029349000.json +1 -0
  387. package/.vitest/vitest-report-root-1794091975649927000.json +1 -0
  388. package/.vitest/vitest-report-root-1794091994027950000.json +1 -0
  389. package/.vitest/vitest-report-root-1794092005178771000.json +1 -0
  390. package/.vitest/vitest-report-root-1794113295302382000.json +1 -0
  391. package/.vitest/vitest-report-root-1794114156337032000.json +1 -0
  392. package/.vitest/vitest-report-root-1794114198454137000.json +1 -0
  393. package/.vitest/vitest-report-root-1794114254064413000.json +1 -0
  394. package/.vitest/vitest-report-root-1794114280107510000.json +1 -0
  395. package/.vitest/vitest-report-root-1794114495199837000.json +1 -0
  396. package/.vitest/vitest-report-root-1794114646604233000.json +1 -0
  397. package/.vitest/vitest-report-root-1794114666311689000.json +1 -0
  398. package/.vitest/vitest-report-root-1794114974303438000.json +1 -0
  399. package/.vitest/vitest-report-root-1794115037361450000.json +1 -0
  400. package/.vitest/vitest-report-root-1794115097838937000.json +1 -0
  401. package/.vitest/vitest-report-root-1794115604669388000.json +1 -0
  402. package/.vitest/vitest-report-root-1794115633814500000.json +1 -0
  403. package/.vitest/vitest-report-root-1794115648756242000.json +1 -0
  404. package/.vitest/vitest-report-root-1794115873440741000.json +1 -0
  405. package/.vitest/vitest-report-root-1794115952930230000.json +1 -0
  406. package/.vitest/vitest-report-root-1794115963344701000.json +1 -0
  407. package/.vitest/vitest-report-root-1794116196067450000.json +1 -0
  408. package/.vitest/vitest-report-root-1794116254301280000.json +1 -0
  409. package/.vitest/vitest-report-root-1794116259342966000.json +1 -0
  410. package/.vitest/vitest-report-root-1794118178787879000.json +1 -0
  411. package/.vitest/vitest-report-root-1794137087891409000.json +1 -0
  412. package/.vitest/vitest-report-root-1794137100301214000.json +1 -0
  413. package/.vitest/vitest-report-root-1794137107377813000.json +1 -0
  414. package/.vitest/vitest-report-root-1794137171230704000.json +1 -0
  415. package/.vitest/vitest-report-root-1794137317761465000.json +1 -0
  416. package/.vitest/vitest-report-root-1794137320282368000.json +1 -0
  417. package/LICENSE +17 -0
  418. package/PACKAGE_PUBLICATIONS.md +26 -0
  419. package/builder-package.json +19 -0
  420. package/package.json +77 -3
  421. package/scripts/build-builder.ts +27 -0
  422. package/scripts/build-library-runtime.ts +9 -0
  423. package/scripts/build-static.ts +75 -0
  424. package/scripts/build.ts +6 -0
  425. package/scripts/check-fragment.ts +12 -0
  426. package/scripts/local-workspaces.test.ts +31 -0
  427. package/scripts/local-workspaces.ts +55 -0
  428. package/scripts/release-version-cli.test.ts +40 -0
  429. package/scripts/release-version.test.ts +29 -0
  430. package/scripts/release-version.ts +46 -0
  431. package/scripts/run-package-build.ts +8 -0
  432. package/scripts/serve-packages.ts +8 -0
  433. package/spikes/README.md +70 -0
  434. package/spikes/barrel-rewriting/README.md +97 -0
  435. package/spikes/barrel-rewriting/measure.ts +134 -0
  436. package/spikes/barrel-rewriting/readme.ts +174 -0
  437. package/spikes/barrel-rewriting/results.json +3440 -0
  438. package/spikes/barrel-rewriting/run.ts +330 -0
  439. package/spikes/barrel-rewriting/setup.ts +90 -0
  440. package/spikes/barrel-rewriting/sw.ts +148 -0
  441. package/spikes/barrel-rewriting/tenant.ts +91 -0
  442. package/spikes/barrel-rewriting/worker-config.ts +33 -0
  443. package/spikes/closure-fragments/README.md +157 -0
  444. package/spikes/closure-fragments/results.json +959 -0
  445. package/spikes/closure-fragments/run.ts +298 -0
  446. package/spikes/compiler/README.md +177 -0
  447. package/spikes/compiler/compile.test.ts +78 -0
  448. package/spikes/compiler/compile.ts +82 -0
  449. package/spikes/compiler/facet-redact.d.ts +5 -0
  450. package/spikes/compiler/markers.ts +88 -0
  451. package/spikes/compiler/pages.ts +43 -0
  452. package/spikes/compiler/readme.ts +116 -0
  453. package/spikes/compiler/reference.ts +81 -0
  454. package/spikes/compiler/render.ts +113 -0
  455. package/spikes/compiler/results.json +3310 -0
  456. package/spikes/compiler/run.ts +250 -0
  457. package/spikes/compiler/sucrase-parser.d.ts +8 -0
  458. package/spikes/compiler/sw.ts +62 -0
  459. package/spikes/diagram-readiness/README.md +134 -0
  460. package/spikes/diagram-readiness/analysis.test.ts +52 -0
  461. package/spikes/diagram-readiness/analysis.ts +35 -0
  462. package/spikes/diagram-readiness/browser.ts +209 -0
  463. package/spikes/diagram-readiness/readme.ts +65 -0
  464. package/spikes/diagram-readiness/results.json +30289 -0
  465. package/spikes/diagram-readiness/run.ts +103 -0
  466. package/spikes/diagram-readiness/server.ts +53 -0
  467. package/spikes/esm-sh/README.md +27 -0
  468. package/spikes/esm-sh/browser-client.ts +18 -0
  469. package/spikes/esm-sh/browser-server.ts +104 -0
  470. package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.headers +15 -0
  471. package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.mjs.txt +3 -0
  472. package/spikes/esm-sh/fixtures/copy-to-clipboard-module.headers +13 -0
  473. package/spikes/esm-sh/fixtures/copy-to-clipboard-module.mjs.txt +142 -0
  474. package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.headers +15 -0
  475. package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.mjs.txt +3 -0
  476. package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.headers +11 -0
  477. package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.mjs.txt +222 -0
  478. package/spikes/esm-sh/fixtures/toggle-selection-entry.headers +14 -0
  479. package/spikes/esm-sh/fixtures/toggle-selection-entry.mjs.txt +3 -0
  480. package/spikes/esm-sh/fixtures/toggle-selection-module.headers +11 -0
  481. package/spikes/esm-sh/fixtures/toggle-selection-module.mjs.txt +76 -0
  482. package/spikes/esm-sh/fixtures.ts +54 -0
  483. package/spikes/esm-sh/redact.ts +1 -0
  484. package/spikes/frame-commenting/README.md +183 -0
  485. package/spikes/frame-commenting/agent.ts +110 -0
  486. package/spikes/frame-commenting/hook.ts +1 -0
  487. package/spikes/frame-commenting/host.ts +66 -0
  488. package/spikes/frame-commenting/measure.ts +180 -0
  489. package/spikes/frame-commenting/model.test.ts +27 -0
  490. package/spikes/frame-commenting/model.ts +40 -0
  491. package/spikes/frame-commenting/readme.ts +61 -0
  492. package/spikes/frame-commenting/results.json +5320 -0
  493. package/spikes/frame-commenting/run.ts +73 -0
  494. package/spikes/frame-commenting/setup.ts +125 -0
  495. package/spikes/lib/barrels.test.ts +107 -0
  496. package/spikes/lib/barrels.ts +309 -0
  497. package/spikes/lib/cjs-export-names.mjs +22 -0
  498. package/spikes/lib/content-types.ts +28 -0
  499. package/spikes/lib/convert-commonjs.ts +168 -0
  500. package/spikes/lib/fragment.ts +108 -0
  501. package/spikes/lib/library-set.ts +194 -0
  502. package/spikes/lib/module-transform.test.ts +133 -0
  503. package/spikes/lib/module-transform.ts +351 -0
  504. package/spikes/lib/origin.ts +140 -0
  505. package/spikes/lib/pages.ts +290 -0
  506. package/spikes/lib/report.ts +23 -0
  507. package/spikes/lib/runtime-server.ts +282 -0
  508. package/spikes/lib/static-server.ts +82 -0
  509. package/spikes/lib/trace.ts +384 -0
  510. package/spikes/local-folder-link/README.md +85 -0
  511. package/spikes/local-folder-link/checkout.ts +132 -0
  512. package/spikes/local-folder-link/documents.ts +36 -0
  513. package/spikes/local-folder-link/readme.ts +42 -0
  514. package/spikes/local-folder-link/results.json +12815 -0
  515. package/spikes/local-folder-link/rewrite.test.ts +27 -0
  516. package/spikes/local-folder-link/rewrite.ts +38 -0
  517. package/spikes/local-folder-link/run.ts +123 -0
  518. package/spikes/local-folder-link/server.ts +100 -0
  519. package/spikes/local-folder-link/sw.ts +97 -0
  520. package/spikes/origin-isolation/README.md +426 -0
  521. package/spikes/origin-isolation/browsers.ts +43 -0
  522. package/spikes/origin-isolation/helper.ts +6 -0
  523. package/spikes/origin-isolation/host.ts +25 -0
  524. package/spikes/origin-isolation/measure.ts +118 -0
  525. package/spikes/origin-isolation/model.test.ts +45 -0
  526. package/spikes/origin-isolation/model.ts +49 -0
  527. package/spikes/origin-isolation/proxy.ts +35 -0
  528. package/spikes/origin-isolation/readme.ts +83 -0
  529. package/spikes/origin-isolation/results.json +3242 -0
  530. package/spikes/origin-isolation/run.ts +35 -0
  531. package/spikes/origin-isolation/server.ts +108 -0
  532. package/spikes/origin-isolation/sw.ts +28 -0
  533. package/spikes/origin-isolation/tenant.ts +165 -0
  534. package/spikes/react-runtime-set/README.md +48 -0
  535. package/spikes/react-runtime-set/convert.ts +118 -0
  536. package/spikes/react-runtime-set/export-names.mjs +8 -0
  537. package/spikes/react-runtime-set/page/page.js +46 -0
  538. package/spikes/react-runtime-set/results.json +84 -0
  539. package/spikes/react-runtime-set/run.ts +255 -0
  540. package/spikes/run.ts +15 -0
  541. package/spikes/sw-tenant-frame/README.md +95 -0
  542. package/spikes/sw-tenant-frame/results.json +1348 -0
  543. package/spikes/sw-tenant-frame/run.ts +373 -0
  544. package/spikes/sw-tenant-frame/site/frame.html +113 -0
  545. package/spikes/sw-tenant-frame/site/host.html +25 -0
  546. package/spikes/sw-tenant-frame/site/sw.js +10 -0
  547. package/spikes/tailwind-parity/README.md +78 -0
  548. package/spikes/tailwind-parity/compare.test.ts +70 -0
  549. package/spikes/tailwind-parity/compare.ts +91 -0
  550. package/spikes/tailwind-parity/facet-font-scale.d.ts +6 -0
  551. package/spikes/tailwind-parity/facet-styles.ts +77 -0
  552. package/spikes/tailwind-parity/results.json +885 -0
  553. package/spikes/tailwind-parity/run.ts +385 -0
  554. package/spikes/tailwind-parity/runtime-tailwind.ts +82 -0
  555. package/src/activity-schema.ts +91 -0
  556. package/src/activity.test.ts +57 -0
  557. package/src/build/README.md +94 -0
  558. package/src/build/barrels.test.ts +107 -0
  559. package/src/build/barrels.ts +306 -0
  560. package/src/build/base.ts +2 -0
  561. package/src/build/check-fragment.ts +45 -0
  562. package/src/build/cjs-export-names.mjs +24 -0
  563. package/src/build/commonjs-exports.ts +24 -0
  564. package/src/build/convert-commonjs.ts +183 -0
  565. package/src/build/dependencies.ts +4 -0
  566. package/src/build/dependency-barrels.ts +59 -0
  567. package/src/build/dependency-cache.ts +40 -0
  568. package/src/build/dependency-plugin.ts +58 -0
  569. package/src/build/dependency-runtime.test.ts +121 -0
  570. package/src/build/dependency-runtime.ts +147 -0
  571. package/src/build/errors.ts +9 -0
  572. package/src/build/fragment.ts +89 -0
  573. package/src/build/index.ts +7 -0
  574. package/src/build/library-runtime.test.ts +343 -0
  575. package/src/build/library-runtime.ts +98 -0
  576. package/src/build/module-utils.ts +11 -0
  577. package/src/build/recipe-dependencies.ts +14 -0
  578. package/src/build/runtime-entries.ts +10 -0
  579. package/src/build/trace.ts +429 -0
  580. package/src/design-schema.ts +25 -0
  581. package/src/dev/README.md +48 -0
  582. package/src/dev/catalog.ts +79 -0
  583. package/src/dev/cli.test.ts +12 -0
  584. package/src/dev/cli.ts +25 -0
  585. package/src/dev/index.ts +115 -0
  586. package/src/dev/packages.test.ts +175 -0
  587. package/src/editing.test.tsx +31 -0
  588. package/src/editing.ts +25 -0
  589. package/src/frame/activity.browser.ts +34 -0
  590. package/src/frame/activity.test.ts +27 -0
  591. package/src/frame/activity.ts +50 -0
  592. package/src/frame/agent/README.md +47 -0
  593. package/src/frame/agent/agent.browser.ts +127 -0
  594. package/src/frame/agent/design.ts +62 -0
  595. package/src/frame/agent/index.ts +148 -0
  596. package/src/frame/agent/overlay.test.ts +42 -0
  597. package/src/frame/agent/overlay.ts +91 -0
  598. package/src/frame/agent/owner.test.ts +78 -0
  599. package/src/frame/agent/owner.ts +58 -0
  600. package/src/frame/agent/provider.tsx +14 -0
  601. package/src/frame/agent/react-override.ts +55 -0
  602. package/src/frame/agent/review.browser.ts +65 -0
  603. package/src/frame/agent/review.ts +107 -0
  604. package/src/frame/agent/testing/callsite.tsx +5 -0
  605. package/src/frame/agent/testing/client.ts +99 -0
  606. package/src/frame/agent/testing/library.ts +3 -0
  607. package/src/frame/agent/testing/modal.tsx +5 -0
  608. package/src/frame/agent/testing/review-client.ts +43 -0
  609. package/src/frame/agent/testing/review-server.ts +31 -0
  610. package/src/frame/agent/testing/server.ts +72 -0
  611. package/src/frame/agent/testing/vocabulary-host.ts +20 -0
  612. package/src/frame/agent/testing/vocabulary.tsx +10 -0
  613. package/src/frame/agent/vitest.browser.config.ts +6 -0
  614. package/src/frame/agent/vocabulary.browser.ts +30 -0
  615. package/src/frame/agent/vocabulary.test.ts +36 -0
  616. package/src/frame/agent/vocabulary.ts +13 -0
  617. package/src/frame/agent.ts +2 -0
  618. package/src/frame/boot-bundle.test.ts +20 -0
  619. package/src/frame/boot-styles.test.ts +102 -0
  620. package/src/frame/boot-styles.ts +50 -0
  621. package/src/frame/boot.test.ts +108 -0
  622. package/src/frame/boot.ts +205 -0
  623. package/src/frame/bridge.ts +27 -0
  624. package/src/frame/devtools-hook.ts +1 -0
  625. package/src/frame/entry.ts +4 -0
  626. package/src/frame/export-compiler.test.ts +23 -0
  627. package/src/frame/export-compiler.ts +18 -0
  628. package/src/frame/export-page.ts +59 -0
  629. package/src/frame/export.test.ts +17 -0
  630. package/src/frame/export.ts +90 -0
  631. package/src/frame/index.ts +7 -0
  632. package/src/frame/local-runtime.browser.ts +36 -0
  633. package/src/frame/page-agent.ts +2 -0
  634. package/src/frame/readiness.ts +51 -0
  635. package/src/frame/review-integration.browser.ts +48 -0
  636. package/src/frame/runtime.browser.ts +71 -0
  637. package/src/frame/tailwind/README.md +49 -0
  638. package/src/frame/tailwind/boot-styles.browser.ts +18 -0
  639. package/src/frame/tailwind/cache.test.ts +53 -0
  640. package/src/frame/tailwind/cache.ts +20 -0
  641. package/src/frame/tailwind/load.test.ts +74 -0
  642. package/src/frame/tailwind/load.ts +66 -0
  643. package/src/frame/tailwind/recipe.ts +81 -0
  644. package/src/frame/tailwind/runtime-cache.test.ts +97 -0
  645. package/src/frame/tailwind/runtime.ts +113 -0
  646. package/src/frame/tailwind/store.test.ts +104 -0
  647. package/src/frame/tailwind/store.ts +55 -0
  648. package/src/frame/tailwind/stylesheets.ts +37 -0
  649. package/src/frame/tailwind/tailwind.browser.ts +71 -0
  650. package/src/frame/tailwind/tailwind.test.ts +119 -0
  651. package/src/frame/tailwind/testing/client.ts +132 -0
  652. package/src/frame/tailwind/testing/compare.ts +91 -0
  653. package/src/frame/tailwind/testing/pages.ts +14 -0
  654. package/src/frame/tailwind/testing/server.ts +89 -0
  655. package/src/frame/tailwind/vitest.browser.config.ts +7 -0
  656. package/src/frame/testing/boot-page.ts +3 -0
  657. package/src/frame/testing/host.ts +60 -0
  658. package/src/frame/testing/local-host.tsx +33 -0
  659. package/src/frame/testing/server.ts +120 -0
  660. package/src/host/BuildLog.test.tsx +40 -0
  661. package/src/host/BuildLog.tsx +27 -0
  662. package/src/host/PageFrame.test.tsx +39 -0
  663. package/src/host/PageFrame.tsx +41 -0
  664. package/src/host/RuntimeActivity.tsx +75 -0
  665. package/src/host/activity-state.test.ts +37 -0
  666. package/src/host/activity-state.ts +69 -0
  667. package/src/host/agent-source.test.ts +9 -0
  668. package/src/host/agent-source.ts +14 -0
  669. package/src/host/agent-validation.test.ts +40 -0
  670. package/src/host/agent-validation.ts +73 -0
  671. package/src/host/bridge-request.test.ts +87 -0
  672. package/src/host/bridge.test.ts +34 -0
  673. package/src/host/bridge.ts +55 -0
  674. package/src/host/build-log.test.ts +47 -0
  675. package/src/host/build-log.ts +29 -0
  676. package/src/host/clear-cache.test.ts +75 -0
  677. package/src/host/clear-cache.ts +66 -0
  678. package/src/host/design-validation.test.ts +38 -0
  679. package/src/host/design-validation.ts +96 -0
  680. package/src/host/index.ts +11 -0
  681. package/src/host/link/index.ts +66 -0
  682. package/src/host/link/transport.test.ts +10 -0
  683. package/src/host/link/transport.ts +67 -0
  684. package/src/host/link/watch.ts +62 -0
  685. package/src/host/message-values.ts +55 -0
  686. package/src/host/origin.test.ts +10 -0
  687. package/src/host/origin.ts +7 -0
  688. package/src/host/review/README.md +32 -0
  689. package/src/host/review/index.ts +42 -0
  690. package/src/host/review/remote.test.ts +21 -0
  691. package/src/host/review/source.test.ts +19 -0
  692. package/src/host/review/validation.test.ts +34 -0
  693. package/src/host/review/validation.ts +55 -0
  694. package/src/host/runtime-integration.test.ts +29 -0
  695. package/src/host/source-path.test.ts +14 -0
  696. package/src/host/validation.ts +111 -0
  697. package/src/host/vocabulary-validation.test.ts +60 -0
  698. package/src/link/README.md +115 -0
  699. package/src/link/barrels.ts +5 -0
  700. package/src/link/build-cli.ts +12 -0
  701. package/src/link/build.test.ts +25 -0
  702. package/src/link/build.ts +99 -0
  703. package/src/link/commonjs.test.ts +34 -0
  704. package/src/link/commonjs.ts +39 -0
  705. package/src/link/examples/server.ts +18 -0
  706. package/src/link/index.ts +6 -0
  707. package/src/link/link.browser.ts +66 -0
  708. package/src/link/local-relay.browser.ts +22 -0
  709. package/src/link/overrides.test.ts +103 -0
  710. package/src/link/overrides.ts +69 -0
  711. package/src/link/page-sources.test.ts +52 -0
  712. package/src/link/page-sources.ts +69 -0
  713. package/src/link/source.ts +25 -0
  714. package/src/link/storage.ts +32 -0
  715. package/src/link/testing/client.ts +96 -0
  716. package/src/link/testing/folder.ts +19 -0
  717. package/src/link/testing/local-client.ts +30 -0
  718. package/src/link/testing/local-server.ts +26 -0
  719. package/src/link/testing/local-worker.ts +17 -0
  720. package/src/link/testing/server.ts +128 -0
  721. package/src/link/testing/worker.ts +32 -0
  722. package/src/link/testing-cache.ts +20 -0
  723. package/src/link/testing-fixtures.ts +16 -0
  724. package/src/link/types.ts +27 -0
  725. package/src/link/validation.ts +44 -0
  726. package/src/link/vitest.browser.config.ts +3 -0
  727. package/src/markers.ts +18 -0
  728. package/src/publication/build.ts +27 -0
  729. package/src/publication/fixtures/build.mjs +2 -0
  730. package/src/publication/index.ts +3 -0
  731. package/src/publication/lock.ts +32 -0
  732. package/src/publication/manifest.ts +14 -0
  733. package/src/publication/publication.test.ts +89 -0
  734. package/src/publication/publish.ts +80 -0
  735. package/src/publication/runtime.ts +28 -0
  736. package/src/publication/schema.ts +13 -0
  737. package/src/review-schema.ts +17 -0
  738. package/src/schema.ts +149 -0
  739. package/src/storage/db.test.ts +52 -0
  740. package/src/storage/db.ts +64 -0
  741. package/src/sw/activity-router.test.ts +53 -0
  742. package/src/sw/activity.ts +66 -0
  743. package/src/sw/barrels.ts +44 -0
  744. package/src/sw/candidates.test.ts +9 -0
  745. package/src/sw/candidates.ts +14 -0
  746. package/src/sw/compile.test.ts +152 -0
  747. package/src/sw/compile.ts +92 -0
  748. package/src/sw/compiler-columns.ts +44 -0
  749. package/src/sw/compiler-internals.d.ts +8 -0
  750. package/src/sw/compiler-plugins.ts +18 -0
  751. package/src/sw/compiler.test.ts +51 -0
  752. package/src/sw/compiler.ts +86 -0
  753. package/src/sw/composition.test.ts +51 -0
  754. package/src/sw/composition.ts +86 -0
  755. package/src/sw/content-types.ts +28 -0
  756. package/src/sw/converted-resolver.test.ts +129 -0
  757. package/src/sw/converted-router.test.ts +91 -0
  758. package/src/sw/converted.browser.ts +31 -0
  759. package/src/sw/converted.test.ts +31 -0
  760. package/src/sw/converted.ts +64 -0
  761. package/src/sw/editable-sites.ts +42 -0
  762. package/src/sw/errors.test.ts +8 -0
  763. package/src/sw/errors.ts +17 -0
  764. package/src/sw/index.ts +7 -0
  765. package/src/sw/integrity.ts +10 -0
  766. package/src/sw/legacy-storage.ts +18 -0
  767. package/src/sw/link-activity.test.ts +126 -0
  768. package/src/sw/link-activity.ts +21 -0
  769. package/src/sw/link-cache.test.ts +15 -0
  770. package/src/sw/link-cache.ts +19 -0
  771. package/src/sw/link-compiler.ts +112 -0
  772. package/src/sw/link-folder.ts +29 -0
  773. package/src/sw/link-markdown.test.ts +52 -0
  774. package/src/sw/link-relay.ts +40 -0
  775. package/src/sw/link-route.test.ts +150 -0
  776. package/src/sw/link-route.ts +239 -0
  777. package/src/sw/link-source.test.ts +31 -0
  778. package/src/sw/link-source.ts +41 -0
  779. package/src/sw/markers.test.ts +33 -0
  780. package/src/sw/markers.ts +128 -0
  781. package/src/sw/module-transform.test.ts +131 -0
  782. package/src/sw/module-transform.ts +352 -0
  783. package/src/sw/package-generation.test.ts +33 -0
  784. package/src/sw/page-clients.test.ts +37 -0
  785. package/src/sw/page-clients.ts +45 -0
  786. package/src/sw/profile.test.ts +21 -0
  787. package/src/sw/profile.ts +88 -0
  788. package/src/sw/resolver.test.ts +183 -0
  789. package/src/sw/resolver.ts +220 -0
  790. package/src/sw/router-cache.test.ts +78 -0
  791. package/src/sw/router.ts +320 -0
  792. package/src/sw/runtime-module.test.ts +61 -0
  793. package/src/sw/runtime-module.ts +13 -0
  794. package/src/sw/source-hash.test.ts +7 -0
  795. package/src/sw/source-hash.ts +37 -0
  796. package/src/sw/storage.test.ts +108 -0
  797. package/src/sw/versions.ts +89 -0
  798. package/src/sw/worker.ts +87 -0
  799. package/static/README.md +15 -0
  800. package/static/profile.example.json +15 -0
  801. package/tsconfig.json +10 -0
  802. package/vitest.browser.config.ts +4 -0
  803. package/vitest.config.ts +9 -0
  804. package/README.md +0 -3
@@ -0,0 +1,103 @@
1
+ import { execFile, execFileSync } from "node:child_process";
2
+ import { mkdir } from "node:fs/promises";
3
+ import { dirname, join } from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+ import { promisify } from "node:util";
6
+ import { setTimeout as delay } from "node:timers/promises";
7
+ import { buildLibrarySet, packageVersion } from "../lib/library-set.ts";
8
+ import { writeSpikeOutput } from "../lib/report.ts";
9
+ import { RuntimeServer } from "../lib/runtime-server.ts";
10
+ import { loadFacetStyles } from "../tailwind-parity/facet-styles.ts";
11
+ import { changedElements, summarize, type Measurement } from "./analysis.ts";
12
+ import type { BrowserResult, Mode } from "./browser.ts";
13
+ import { readme } from "./readme.ts";
14
+ import { documents, MODES, PAGES } from "./server.ts";
15
+
16
+ export type Run = { page: string; file: string; mode: Mode; viewport: string; result: BrowserResult | null; failure: string | null; measurement: Measurement };
17
+ const here = dirname(fileURLToPath(import.meta.url));
18
+ const repo = join(here, "../../../..");
19
+ const scratch = join(repo, ".tmp/diagram-readiness");
20
+ const execute = promisify(execFile);
21
+
22
+ async function browser<T>(session: string, args: string[]): Promise<T> {
23
+ const { stdout } = await execute("agent-browser", ["--engine", "chrome", "--session", session, "--json", ...args], { maxBuffer: 32 * 1024 * 1024, timeout: 90_000 });
24
+ const response = JSON.parse(stdout) as { success: boolean; data: T; error: unknown };
25
+ if (!response.success) throw new Error(`agent-browser ${args[0]}: ${JSON.stringify(response.error)}`);
26
+ return response.data;
27
+ }
28
+
29
+ async function measure({ session, url, page, mode, viewport }: { session: string; url: string; page: typeof PAGES[number]; mode: Mode; viewport: string }): Promise<Run> {
30
+ await browser(session, ["open", `${url}/host/${mode}/${page.id}`]);
31
+ const deadline = Date.now() + 65_000;
32
+ let result: BrowserResult | null = null;
33
+ let failure: string | null = null;
34
+ while (Date.now() < deadline) {
35
+ const state = await browser<{ result: { result: BrowserResult | null; failure: string | null } }>(session, ["eval", "({result: document.querySelector('#frame').contentWindow.__DIAGRAM_RESULT__ ?? null, failure: document.querySelector('#frame').contentWindow.__DIAGRAM_FAILURE__ ?? null})"]);
36
+ ({ result, failure } = state.result);
37
+ if (result || failure) break;
38
+ await delay(250);
39
+ }
40
+ if (!result && !failure) failure = "frame did not return a result within 65 seconds";
41
+ const measurement: Measurement = result ?? { ready: false, errors: [failure!], atReady: null, afterWindow: { at: 0, layout: [] }, changes: [], activity: [] };
42
+ await browser(session, ["screenshot", join(scratch, `${viewport}-${mode}-${page.id}.png`)]);
43
+ return { page: page.id, file: page.file, mode, viewport, result, failure, measurement };
44
+ }
45
+
46
+ export async function run(args: string[]): Promise<void> {
47
+ if (args.length > 0) throw new Error(`diagram-readiness takes no arguments: ${args.join(" ")}`);
48
+ await mkdir(scratch, { recursive: true });
49
+ const set = await buildLibrarySet({ outDir: join(scratch, "library"), pages: PAGES, log: (message) => console.log(`diagram-readiness: ${message}`) });
50
+ if (set.failures.length > 0) throw new Error(`library-set failures: ${JSON.stringify(set.failures)}`);
51
+ const styles = await loadFacetStyles(join(repo, "../facet"));
52
+ const server = new RuntimeServer({ ...set, flavor: "production", documents: await documents({ here, set, styles }) });
53
+ const session = `diagram-readiness-${process.pid}`;
54
+ const runs: Run[] = [];
55
+ let browserStarted = false;
56
+ await server.start();
57
+ try {
58
+ await browser(session, ["open", "about:blank"]);
59
+ browserStarted = true;
60
+ for (const [width, height] of [[1920, 1080], [2560, 1440]]) {
61
+ await browser(session, ["set", "viewport", String(width), String(height)]);
62
+ for (const page of PAGES) for (const mode of MODES) {
63
+ const run = await measure({ session, url: server.url, page, mode, viewport: `${width}x${height}` });
64
+ runs.push(run);
65
+ const metrics = summarize([run.measurement]);
66
+ console.log(`diagram-readiness: ${run.viewport} ${mode} ${page.id}: ${JSON.stringify(metrics)} ${run.failure ?? run.measurement.errors.join(" / ")}`);
67
+ }
68
+ }
69
+ } finally {
70
+ try { if (browserStarted) await browser(session, ["close"]); }
71
+ finally { await server.close(); }
72
+ }
73
+ const primary = runs.filter((run) => run.mode === "before-render");
74
+ const summarized = summarize(primary.map((run) => run.measurement));
75
+ const unique = (pick: (run: Run) => boolean) => new Set(primary.filter(pick).map((run) => run.page)).size;
76
+ const metrics = {
77
+ pages: unique((run) => run.measurement.ready && run.measurement.errors.length === 0),
78
+ unstableLayouts: unique((run) => summarize([run.measurement]).unstableLayouts > 0),
79
+ remeasureLoops: unique((run) => summarize([run.measurement]).remeasureLoops > 0),
80
+ failedReadiness: unique((run) => !run.measurement.ready || run.measurement.errors.length > 0),
81
+ attemptedPages: PAGES.length,
82
+ primaryRuns: primary.length,
83
+ control: summarize(runs.filter((run) => run.mode === "after-mount").map((run) => run.measurement)),
84
+ geometryDiffersFromControl: primary.flatMap((run) => {
85
+ const control = runs.find((item) => item.page === run.page && item.viewport === run.viewport && item.mode === "after-mount");
86
+ if (!run.result?.atReady || !control?.result?.atReady) return [];
87
+ return [{ page: run.page, viewport: run.viewport, changedElements: changedElements(run.result.atReady.layout, control.result.atReady.layout).length }];
88
+ }),
89
+ };
90
+ const results = {
91
+ spike: "diagram-readiness", verdict: summarized.verdict, metrics,
92
+ environment: {
93
+ node: process.version, chrome: runs.find((run) => run.result)?.result?.userAgent ?? "no page completed",
94
+ "agent-browser": execFileSync("agent-browser", ["--version"], { encoding: "utf8" }).trim(),
95
+ facet: set.facet.version, "facet checkout": execFileSync("git", ["-C", join(repo, "../facet"), "rev-parse", "--short", "HEAD"], { encoding: "utf8" }).trim(),
96
+ "clicky-ui": set.clicky.version, react: packageVersion("react"), tailwindcss: packageVersion("tailwindcss"),
97
+ viewport: "1920x1080 and 2560x1440, device scale factor 1", flavor: "production", observation: "2000 ms after readiness; 200 ms quiet before readiness",
98
+ timestamp: new Date().toISOString(),
99
+ }, runs,
100
+ };
101
+ await writeSpikeOutput(here, results, readme(results, runs));
102
+ console.log(`diagram-readiness: verdict ${results.verdict}: ${JSON.stringify(metrics)}`);
103
+ }
@@ -0,0 +1,53 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { rolldown } from "rolldown";
4
+ import type { LibrarySet } from "../lib/library-set.ts";
5
+ import { entryModule, pageDocument, pageModules, type PageSpec } from "../lib/pages.ts";
6
+ import type { Served } from "../lib/static-server.ts";
7
+ import type { FacetStyles } from "../tailwind-parity/facet-styles.ts";
8
+ import type { Config, Mode } from "./browser.ts";
9
+
10
+ export const MODES: Mode[] = ["before-render", "after-mount"];
11
+ export const PAGES: PageSpec[] = [
12
+ { id: "LiveDiagram", library: "facet", root: "facet-examples", file: "office/LiveDiagram.tsx", exportName: "default" },
13
+ { id: "DataFlowDiagram", library: "facet", root: "facet-examples", file: "kitchen-sink/DataFlowDiagram.tsx", exportName: "default" },
14
+ ];
15
+
16
+ /** Diagram examples left out, as in the other spikes: they need a facet version that is not published. */
17
+ export const EXCLUDED_PAGES = [
18
+ { file: "brand-diagrams/SingleBrand.tsx", reason: "imports `BrandBox`, `BrandContainer` and `loadBrand`, which only facet's unreleased source exports; published facet 0.1.74 does not" },
19
+ { file: "brand-diagrams/MixedBrands.tsx", reason: "same as SingleBrand" },
20
+ ];
21
+
22
+ async function bundle(input: string, styles: FacetStyles): Promise<string> {
23
+ const build = await rolldown({
24
+ input, platform: "browser", resolve: { alias: { "facet-font-scale": styles.fontScalePath } },
25
+ transform: { define: { "process.env.NODE_ENV": JSON.stringify("production"), "process.env": "{}" } },
26
+ });
27
+ try {
28
+ const { output } = await build.generate({ format: "iife", minify: true });
29
+ if (output.length !== 1 || output[0]?.type !== "chunk") throw new Error(`expected one browser chunk for ${input}`);
30
+ return output[0].code;
31
+ } finally { await build.close(); }
32
+ }
33
+
34
+ export async function documents({ here, set, styles }: { here: string; set: LibrarySet; styles: FacetStyles }): Promise<Map<string, Served>> {
35
+ const served = new Map<string, Served>();
36
+ const javascript = (path: string, body: string) => served.set(path, { type: "text/javascript; charset=utf-8", body });
37
+ javascript("/tailwind.js", await bundle(join(here, "../tailwind-parity/runtime-tailwind.ts"), styles));
38
+ javascript("/diagram-probe.js", await bundle(join(here, "browser.ts"), styles));
39
+ for (const page of PAGES) {
40
+ javascript(`/entry/${page.id}.js`, `${entryModule(page)}\nexport { pageModule };`);
41
+ const sources = pageModules(page, set.pageRoots).map(({ file }) => readFileSync(file, "utf8"));
42
+ for (const mode of MODES) {
43
+ const config: Config = { mode, entry: `/entry/${page.id}.js`, tailwind: { entry: styles.entry, stylesheets: styles.stylesheets, sources } };
44
+ const entry = `<script type="application/json" id="diagram-config">${JSON.stringify(config).replaceAll("<", "\\u003c")}</script><script src="/tailwind.js"></script><script src="/diagram-probe.js"></script>`;
45
+ served.set(`/frame/${mode}/${page.id}`, { type: "text/html; charset=utf-8", body: pageDocument({ title: `${mode}/${page.id}`, map: set.maps.production, entry }) });
46
+ served.set(`/host/${mode}/${page.id}`, {
47
+ type: "text/html; charset=utf-8",
48
+ body: `<!doctype html><html><head><meta charset="utf-8"><link rel="icon" href="data:,"><title>${mode}/${page.id}</title><style>html,body{margin:0;height:100%}iframe{display:block;border:0;width:100%;height:100%}</style></head><body><iframe id="frame" sandbox="allow-scripts allow-same-origin allow-modals" src="/frame/${mode}/${page.id}"></iframe></body></html>`,
49
+ });
50
+ }
51
+ }
52
+ return served;
53
+ }
@@ -0,0 +1,27 @@
1
+ # esm.sh additional-package conversion spike
2
+
3
+ Captured from the real public esm.sh on 2026-11-07 using `Origin: https://tenant.pages.example.com`. This spike required only HTTP fetches and source/header inspection. No test, build, type check, lint, Gavel command, development server or browser was run.
4
+
5
+ Decision: proceed with Decision 10. The `*` prefix preserves bare dependency imports for the sampled CommonJS package and its CommonJS dependency chain.
6
+
7
+ | Package | Entry request | Internal module | Bare imports in converted module |
8
+ | --- | --- | --- | --- |
9
+ | `react-copy-to-clipboard@5.1.1` | `https://esm.sh/*react-copy-to-clipboard@5.1.1?dev&target=es2022` | `/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs` | `copy-to-clipboard`, `react` |
10
+ | `copy-to-clipboard@3.3.3` | `https://esm.sh/*copy-to-clipboard@3.3.3?dev&target=es2022` | `/*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs` | `toggle-selection` |
11
+ | `toggle-selection@1.0.6` | `https://esm.sh/*toggle-selection@1.0.6?dev&target=es2022` | `/*toggle-selection@1.0.6/es2022/toggle-selection.development.mjs` | none |
12
+
13
+ Every entry re-exports its internal development module using an absolute path beginning `/*<name>@<version>/`. That leading `*` also appears on the internal module request. Every sampled entry and internal module returned HTTP 200 and `Access-Control-Allow-Origin: *`, allowing the credential-free tenant request. The entry's `X-ESM-Path` header also names its internal module. None of these modules imports `/node/` polyfills. Source-map comments refer to adjacent `.map` files; those are debugging resources rather than module imports and are not part of the module crawl.
14
+
15
+ The original bodies are saved unmodified as text fixtures under `fixtures/<package>-{entry,module}.mjs.txt`, alongside their `.headers` response headers. These files are captured converter input data; the fixture server supplies them as JavaScript responses. For each package, record the bodies with these two commands, substituting the exact name, version and path from the table:
16
+
17
+ ```bash
18
+ curl --fail --silent --show-error --location --header 'Origin: https://tenant.pages.example.com' --dump-header packages/page-runtime/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.headers --output packages/page-runtime/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.mjs.txt 'https://esm.sh/*react-copy-to-clipboard@5.1.1?dev&target=es2022'
19
+ ```
20
+
21
+ ```bash
22
+ curl --fail --silent --show-error --location --header 'Origin: https://tenant.pages.example.com' --dump-header packages/page-runtime/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.headers --output packages/page-runtime/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.mjs.txt 'https://esm.sh/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs'
23
+ ```
24
+
25
+ `fixtures.ts` supplies reduced registry manifests and recorded converter responses to unit tests. The manifests are test inputs, not captured registry responses. `browser-server.ts` serves the same unchanged converter bodies over a local CORS origin, bundles the real service worker, and provides a local React runtime set. `browser-client.ts` asks the worker to resolve the page without a prebuilt lock and imports its page module. The page renders the recorded `CopyToClipboard` component, checking its `PureComponent` prototype against the same React used by the page and managed library. The Chromium test uses agent-browser because service-worker control and browser module instantiation require Chromium here.
26
+
27
+ These fixtures do not establish that all esm.sh packages are usable. Runtime resolution rejects Node polyfills, internal imports leaving the converted package's own prefix, nonliteral dynamic imports, converter HTTP errors and later byte changes. Bare dependencies continue through registry resolution, peer checks and the page's import map.
@@ -0,0 +1,18 @@
1
+ async function run(): Promise<void> {
2
+ await navigator.serviceWorker.register("/sw.js", { scope: "/" });
3
+ await navigator.serviceWorker.ready;
4
+ if (!navigator.serviceWorker.controller) await new Promise<void>((resolve) => navigator.serviceWorker.addEventListener("controllerchange", () => resolve(), { once: true }));
5
+ const response = await fetch("/open.json");
6
+ if (!response.ok) throw new Error(`fixture open: HTTP ${response.status}`);
7
+ const channel = new MessageChannel();
8
+ const opened = new Promise<void>((resolve, reject) => { channel.port1.onmessage = (event: MessageEvent<{ ok: boolean; error?: { message: string } }>) => { channel.port1.close(); if (event.data.ok) resolve(); else reject(new Error(event.data.error?.message ?? "worker open failed")); }; });
9
+ navigator.serviceWorker.controller!.postMessage({ message: await response.json() }, [channel.port2]);
10
+ await opened;
11
+ const entry = "/src/report.js?page=report.js";
12
+ await import(/* @vite-ignore */ entry);
13
+ }
14
+
15
+ void run().catch((error: unknown) => {
16
+ document.querySelector("#result")!.textContent = error instanceof Error ? error.message : String(error);
17
+ document.title = "CONVERTED-ERROR";
18
+ });
@@ -0,0 +1,104 @@
1
+ import { createServer, type Server, type ServerResponse } from "node:http";
2
+ import { createRequire } from "node:module";
3
+ import { fileURLToPath } from "node:url";
4
+ import { build } from "rolldown";
5
+ import type { Fragment } from "../../src/schema.ts";
6
+ import { digest } from "../../src/sw/integrity.ts";
7
+ import { contentSecurityPolicy } from "../../src/sw/router.ts";
8
+ import { FACET, MANIFESTS, PROFILE, UI, recordedModules, registryResponse } from "./fixtures.ts";
9
+
10
+ const root = fileURLToPath(new URL("../../", import.meta.url));
11
+ const require = createRequire(import.meta.url);
12
+ const runtime = `${UI}@0.3.0/dist/runtime/react@18.3.1/`;
13
+ const PAGE = `import React from "react";
14
+ import { createRoot } from "react-dom/client";
15
+ import CopyToClipboard from "react-copy-to-clipboard";
16
+ import { sharedReact } from "@flanksource/clicky-ui";
17
+ function Page() {
18
+ const oneReact = sharedReact === React && Object.getPrototypeOf(CopyToClipboard.prototype) === React.PureComponent.prototype;
19
+ React.useLayoutEffect(() => { document.title = "CONVERTED-DONE"; }, []);
20
+ return React.createElement(CopyToClipboard, { text: "fixture" }, React.createElement("button", { id: "converted", "data-one-react": oneReact }, "Copy fixture"));
21
+ }
22
+ createRoot(document.querySelector("#root")).render(React.createElement(Page));`;
23
+
24
+ async function bundle(entry: string): Promise<string> {
25
+ const worker = entry === "src/sw/worker.ts";
26
+ const output = await build({ input: root + entry, platform: "browser", resolve: { conditionNames: ["worker", "browser", "import", "default"], alias: { "facet-redact": fileURLToPath(new URL("./redact.ts", import.meta.url)) } }, transform: { define: { __RUNTIME_VERSION__: '"esm-fixture"', "process.env.NODE_ENV": '"development"', "process.env": "{}" } }, output: { format: worker ? "iife" : "es", codeSplitting: false }, write: false });
27
+ const chunk = output.output.find((item) => item.type === "chunk");
28
+ if (!chunk || chunk.type !== "chunk") throw new Error(`${entry}: fixture bundle has no JavaScript`);
29
+ return chunk.code;
30
+ }
31
+
32
+ async function reactFiles(): Promise<Map<string, string>> {
33
+ const names = Object.keys(require("react") as Record<string, unknown>);
34
+ const output = await build({
35
+ input: { react: "fixture:react", client: "fixture:react-dom/client" }, platform: "browser",
36
+ transform: { define: { "process.env.NODE_ENV": '"development"' } },
37
+ plugins: [{ name: "fixture-react-singleton", resolveId(source, importer, options) {
38
+ if (source.startsWith("fixture:")) return source;
39
+ if (source === "react" && importer !== "fixture:react") return options.kind === "require-call" ? "fixture:require-react" : { id: source, external: true };
40
+ return null;
41
+ }, load(id) {
42
+ if (id === "fixture:require-react") return 'import React from "react"; module.exports = React;';
43
+ if (!id.startsWith("fixture:")) return null;
44
+ const specifier = id.slice(8);
45
+ return `import value from ${JSON.stringify(require.resolve(specifier))}; export default value; ${(specifier === "react" ? names : ["createRoot", "hydrateRoot"]).map((name) => `export const ${name} = value.${name};`).join("\n")}`;
46
+ } }], output: { format: "es", entryFileNames: "[name].js", chunkFileNames: "shared-[hash].js" }, write: false,
47
+ });
48
+ return new Map(output.output.filter((item) => item.type === "chunk").map((item) => [runtime + item.fileName, item.code]));
49
+ }
50
+
51
+ async function listen(server: Server): Promise<string> {
52
+ await new Promise<void>((resolve, reject) => { server.once("error", reject); server.listen(0, "127.0.0.1", resolve); });
53
+ const address = server.address();
54
+ if (!address || typeof address === "string") throw new Error("fixture server has no TCP address");
55
+ return `http://127.0.0.1:${address.port}`;
56
+ }
57
+
58
+ function send(response: ServerResponse, source: string, type = "text/javascript"): void {
59
+ response.writeHead(200, { "content-type": type, "content-length": Buffer.byteLength(source), "access-control-allow-origin": "*" }); response.end(source);
60
+ }
61
+
62
+ export async function startConvertedBrowserServer() {
63
+ const modules = await recordedModules();
64
+ const files = await reactFiles();
65
+ const worker = await bundle("src/sw/worker.ts");
66
+ const client = await bundle("spikes/esm-sh/browser-client.ts");
67
+ files.set(`${UI}@0.3.0/index.js`, 'import React from "react"; export const sharedReact = React;');
68
+ files.set(`${FACET}@0.1.0/index.js`, "export {};");
69
+ const integrity = Object.fromEntries(await Promise.all([...files].map(async ([path, code]) => [path, await digest(new TextEncoder().encode(code))])));
70
+ const ui: Fragment = { fragment: 1, name: UI, imports: { [UI]: `${UI}@0.3.0/index.js`, react: `${runtime}react.js`, "react-dom/client": `${runtime}client.js` }, scopes: { [`${UI}@0.3.0/`]: {} }, remaps: {}, aliases: {}, inherits: [], integrity };
71
+ const facet: Fragment = { ...ui, name: FACET, imports: { [FACET]: `${FACET}@0.1.0/index.js` }, scopes: {}, integrity: {} };
72
+ const converterRequests: string[] = []; const packageRequests: string[] = [];
73
+ const converter = createServer((request, response) => {
74
+ const path = request.url!; converterRequests.push(path);
75
+ const source = modules.get(path);
76
+ if (source === undefined) { response.writeHead(404); response.end(`unrecorded converter URL ${path}`); return; }
77
+ send(response, source);
78
+ });
79
+ const converterOrigin = await listen(converter);
80
+ let origin = "";
81
+ const profile = { ...PROFILE, embedders: [], convert: { origin: converterOrigin } };
82
+ const server = createServer((request, response) => { void (async () => {
83
+ const url = new URL(request.url!, origin);
84
+ if (url.pathname === "/profile.json") { send(response, JSON.stringify({ ...profile, packageOrigin: `${origin}/packages`, registry: `${origin}/registry` }), "application/json"); return; }
85
+ if (url.pathname.startsWith("/registry/")) { const data = registryResponse(decodeURIComponent(url.pathname.slice(10))); send(response, await data.text(), "application/json"); return; }
86
+ if (url.pathname.endsWith("barrels.json")) { send(response, JSON.stringify({ modules: [], barrels: {} }), "application/json"); return; }
87
+ if (url.pathname.endsWith("importmap.json")) { send(response, JSON.stringify(url.pathname.includes(UI) ? ui : facet), "application/json"); return; }
88
+ if (url.pathname.startsWith("/packages/")) {
89
+ const path = decodeURIComponent(url.pathname.slice(10)); packageRequests.push(path);
90
+ const source = files.get(path);
91
+ if (source === undefined) throw new Error(`missing fixture package ${path}`);
92
+ send(response, source); return;
93
+ }
94
+ if (url.pathname === "/sw.js") { response.setHeader("service-worker-allowed", "/"); send(response, worker); return; }
95
+ if (url.pathname === "/client.js") { send(response, client); return; }
96
+ if (url.pathname === "/open.json") { send(response, JSON.stringify({ type: "open", page: "report.js", manifest: { dependencies: { "react-copy-to-clipboard": MANIFESTS["react-copy-to-clipboard"]!.version } }, files: { "report.js": PAGE } }), "application/json"); return; }
97
+ if (url.pathname !== "/") { response.writeHead(404); response.end(`unexpected fixture route ${url.pathname}`); return; }
98
+ response.setHeader("content-security-policy", contentSecurityPolicy({ ...profile, packageOrigin: origin, registry: origin }, "fixture"));
99
+ send(response, '<!doctype html><html><head><title>CONVERTED-RUNNING</title></head><body><div id="root"></div><pre id="result"></pre><script type="module" src="/client.js"></script></body></html>', "text/html");
100
+ })().catch((error: unknown) => { response.writeHead(500); response.end(String(error)); }); });
101
+ try { origin = await listen(server); }
102
+ catch (error) { converter.closeAllConnections(); converter.close(); throw error; }
103
+ return { origin, converterRequests, packageRequests, close: async () => { await Promise.all([server, converter].map((item) => new Promise<void>((resolve, reject) => { item.closeAllConnections(); item.close((error) => error ? reject(error) : resolve()); }))); } };
104
+ }
@@ -0,0 +1,15 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:11:14 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ content-length: 217
5
+ access-control-allow-origin: *
6
+ access-control-expose-headers: X-ESM-Path, X-TypeScript-Types
7
+ cache-control: public, max-age=31536000, immutable
8
+ server: cloudflare
9
+ x-esm-path: /*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs
10
+ x-typescript-types: https://esm.sh/copy-to-clipboard@3.3.3/index.d.ts
11
+ accept-ranges: bytes
12
+ last-modified: Sat, 07 Nov 2026 18:11:14 GMT
13
+ cf-cache-status: MISS
14
+ cf-ray: a56e4c96db2a09c3-HFA
15
+
@@ -0,0 +1,3 @@
1
+ /* esm.sh - copy-to-clipboard@3.3.3 */
2
+ export * from "/*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs";
3
+ export { default } from "/*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs";
@@ -0,0 +1,13 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:11:14 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ access-control-allow-origin: *
5
+ access-control-expose-headers: X-TypeScript-Types
6
+ cache-control: public, max-age=31536000, immutable
7
+ last-modified: Sat, 07 Nov 2026 18:11:13 GMT
8
+ server: cloudflare
9
+ vary: Accept-Encoding
10
+ x-typescript-types: https://esm.sh/copy-to-clipboard@3.3.3/index.d.ts
11
+ cf-cache-status: MISS
12
+ cf-ray: a56e4c96fd6c09b9-HFA
13
+
@@ -0,0 +1,142 @@
1
+ /* esm.sh - copy-to-clipboard@3.3.3 */
2
+ import*as __0$ from"toggle-selection";var require=n=>{const e=m=>typeof m.default<"u"?m.default:m,c=m=>Object.assign({__esModule:true},m);switch(n){case"toggle-selection":return e(__0$);default:console.error('module "'+n+'" not found');return null;}};
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ try {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ } catch (e) {
19
+ throw mod = 0, e;
20
+ }
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
+ // If the importer is in node compatibility mode or this is not an ESM
32
+ // file that has been converted to a CommonJS file using a Babel-
33
+ // compatible transform (i.e. "__esModule" has not been set), then set
34
+ // "default" to the CommonJS "module.exports" for node compatibility.
35
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
+ mod
37
+ ));
38
+
39
+ // node_modules/copy-to-clipboard/index.js
40
+ var require_copy_to_clipboard = __commonJS({
41
+ "node_modules/copy-to-clipboard/index.js"(exports, module) {
42
+ "use strict";
43
+ var deselectCurrent = __require("toggle-selection");
44
+ var clipboardToIE11Formatting = {
45
+ "text/plain": "Text",
46
+ "text/html": "Url",
47
+ "default": "Text"
48
+ };
49
+ var defaultMessage = "Copy to clipboard: #{key}, Enter";
50
+ function format(message) {
51
+ var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
52
+ return message.replace(/#{\s*key\s*}/g, copyKey);
53
+ }
54
+ function copy(text, options) {
55
+ var debug, message, reselectPrevious, range, selection, mark, success = false;
56
+ if (!options) {
57
+ options = {};
58
+ }
59
+ debug = options.debug || false;
60
+ try {
61
+ reselectPrevious = deselectCurrent();
62
+ range = document.createRange();
63
+ selection = document.getSelection();
64
+ mark = document.createElement("span");
65
+ mark.textContent = text;
66
+ mark.ariaHidden = "true";
67
+ mark.style.all = "unset";
68
+ mark.style.position = "fixed";
69
+ mark.style.top = 0;
70
+ mark.style.clip = "rect(0, 0, 0, 0)";
71
+ mark.style.whiteSpace = "pre";
72
+ mark.style.webkitUserSelect = "text";
73
+ mark.style.MozUserSelect = "text";
74
+ mark.style.msUserSelect = "text";
75
+ mark.style.userSelect = "text";
76
+ mark.addEventListener("copy", function(e) {
77
+ e.stopPropagation();
78
+ if (options.format) {
79
+ e.preventDefault();
80
+ if (typeof e.clipboardData === "undefined") {
81
+ debug && console.warn("unable to use e.clipboardData");
82
+ debug && console.warn("trying IE specific stuff");
83
+ window.clipboardData.clearData();
84
+ var format2 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
85
+ window.clipboardData.setData(format2, text);
86
+ } else {
87
+ e.clipboardData.clearData();
88
+ e.clipboardData.setData(options.format, text);
89
+ }
90
+ }
91
+ if (options.onCopy) {
92
+ e.preventDefault();
93
+ options.onCopy(e.clipboardData);
94
+ }
95
+ });
96
+ document.body.appendChild(mark);
97
+ range.selectNodeContents(mark);
98
+ selection.addRange(range);
99
+ var successful = document.execCommand("copy");
100
+ if (!successful) {
101
+ throw new Error("copy command was unsuccessful");
102
+ }
103
+ success = true;
104
+ } catch (err) {
105
+ debug && console.error("unable to copy using execCommand: ", err);
106
+ debug && console.warn("trying IE specific stuff");
107
+ try {
108
+ window.clipboardData.setData(options.format || "text", text);
109
+ options.onCopy && options.onCopy(window.clipboardData);
110
+ success = true;
111
+ } catch (err2) {
112
+ debug && console.error("unable to copy using clipboardData: ", err2);
113
+ debug && console.error("falling back to prompt");
114
+ message = format("message" in options ? options.message : defaultMessage);
115
+ window.prompt(message, text);
116
+ }
117
+ } finally {
118
+ if (selection) {
119
+ if (typeof selection.removeRange == "function") {
120
+ selection.removeRange(range);
121
+ } else {
122
+ selection.removeAllRanges();
123
+ }
124
+ }
125
+ if (mark) {
126
+ document.body.removeChild(mark);
127
+ }
128
+ reselectPrevious();
129
+ }
130
+ return success;
131
+ }
132
+ module.exports = copy;
133
+ }
134
+ });
135
+
136
+ // endpoint.js
137
+ var cjsm = __toESM(require_copy_to_clipboard());
138
+ var endpoint_default = cjsm.default ?? cjsm;
139
+ export {
140
+ endpoint_default as default
141
+ };
142
+ //# sourceMappingURL=copy-to-clipboard.development.mjs.map
@@ -0,0 +1,15 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:10:33 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ content-length: 247
5
+ access-control-allow-origin: *
6
+ access-control-expose-headers: X-ESM-Path, X-TypeScript-Types
7
+ cache-control: public, max-age=31536000, immutable
8
+ server: cloudflare
9
+ x-esm-path: /*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs
10
+ x-typescript-types: https://esm.sh/@types/react-copy-to-clipboard@~5.0.7/index.d.ts
11
+ accept-ranges: bytes
12
+ last-modified: Sat, 07 Nov 2026 18:10:33 GMT
13
+ cf-cache-status: MISS
14
+ cf-ray: a56e4b93583d09cb-HFA
15
+
@@ -0,0 +1,3 @@
1
+ /* esm.sh - react-copy-to-clipboard@5.1.1 */
2
+ export * from "/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs";
3
+ export { default } from "/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs";
@@ -0,0 +1,11 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:10:49 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ access-control-allow-origin: *
5
+ cache-control: public, max-age=31536000, immutable
6
+ last-modified: Sat, 07 Nov 2026 18:10:32 GMT
7
+ server: cloudflare
8
+ vary: Accept-Encoding
9
+ cf-cache-status: MISS
10
+ cf-ray: a56e4c011d0809c3-HFA
11
+