@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.
- package/.vitest/gavel-reporter-3e3dfb64eda19344.mjs +59 -0
- package/.vitest/vitest-report-root-1793958008919344000.json +1 -0
- package/.vitest/vitest-report-root-1793958052786561000.json +1 -0
- package/.vitest/vitest-report-root-1793958143511414000.json +1 -0
- package/.vitest/vitest-report-root-1793958185908019000.json +1 -0
- package/.vitest/vitest-report-root-1793958252687550000.json +1 -0
- package/.vitest/vitest-report-root-1793958260385388000.json +1 -0
- package/.vitest/vitest-report-root-1793958312358683000.json +1 -0
- package/.vitest/vitest-report-root-1793958386118791000.json +1 -0
- package/.vitest/vitest-report-root-1793958388712140000.json +1 -0
- package/.vitest/vitest-report-root-1793958429135603000.json +1 -0
- package/.vitest/vitest-report-root-1793958433387809000.json +1 -0
- package/.vitest/vitest-report-root-1793958517322792000.json +1 -0
- package/.vitest/vitest-report-root-1793958542332252000.json +1 -0
- package/.vitest/vitest-report-root-1793958617698698000.json +1 -0
- package/.vitest/vitest-report-root-1793958676587753000.json +1 -0
- package/.vitest/vitest-report-root-1793958707827469000.json +1 -0
- package/.vitest/vitest-report-root-1793958729745028000.json +1 -0
- package/.vitest/vitest-report-root-1793958736696408000.json +1 -0
- package/.vitest/vitest-report-root-1793958740449993000.json +1 -0
- package/.vitest/vitest-report-root-1793958841510921000.json +1 -0
- package/.vitest/vitest-report-root-1793958847664582000.json +1 -0
- package/.vitest/vitest-report-root-1793958900327643000.json +1 -0
- package/.vitest/vitest-report-root-1793958950822823000.json +1 -0
- package/.vitest/vitest-report-root-1793959013655262000.json +1 -0
- package/.vitest/vitest-report-root-1793959017905881000.json +1 -0
- package/.vitest/vitest-report-root-1793959093169044000.json +1 -0
- package/.vitest/vitest-report-root-1793959093978087000.json +1 -0
- package/.vitest/vitest-report-root-1793959101111925000.json +1 -0
- package/.vitest/vitest-report-root-1793959145317906000.json +1 -0
- package/.vitest/vitest-report-root-1793959190760607000.json +1 -0
- package/.vitest/vitest-report-root-1793959249695805000.json +1 -0
- package/.vitest/vitest-report-root-1793959323191511000.json +1 -0
- package/.vitest/vitest-report-root-1793959453311564000.json +1 -0
- package/.vitest/vitest-report-root-1793959495806182000.json +1 -0
- package/.vitest/vitest-report-root-1793959499945435000.json +1 -0
- package/.vitest/vitest-report-root-1793959546773807000.json +1 -0
- package/.vitest/vitest-report-root-1793959583335593000.json +1 -0
- package/.vitest/vitest-report-root-1793959621479504000.json +1 -0
- package/.vitest/vitest-report-root-1793959651002360000.json +1 -0
- package/.vitest/vitest-report-root-1793959655646061000.json +1 -0
- package/.vitest/vitest-report-root-1793959741176826000.json +1 -0
- package/.vitest/vitest-report-root-1793959744743733000.json +1 -0
- package/.vitest/vitest-report-root-1793959833244182000.json +1 -0
- package/.vitest/vitest-report-root-1793959882131751000.json +1 -0
- package/.vitest/vitest-report-root-1793959887033254000.json +1 -0
- package/.vitest/vitest-report-root-1793960000631977000.json +1 -0
- package/.vitest/vitest-report-root-1793960011938504000.json +1 -0
- package/.vitest/vitest-report-root-1793961370018852000.json +1 -0
- package/.vitest/vitest-report-root-1793961745370827000.json +1 -0
- package/.vitest/vitest-report-root-1793961764143180000.json +1 -0
- package/.vitest/vitest-report-root-1793961835963066000.json +1 -0
- package/.vitest/vitest-report-root-1793961890729922000.json +1 -0
- package/.vitest/vitest-report-root-1793961968680074000.json +1 -0
- package/.vitest/vitest-report-root-1793962066862337000.json +1 -0
- package/.vitest/vitest-report-root-1793962087917497000.json +1 -0
- package/.vitest/vitest-report-root-1793962157254386000.json +1 -0
- package/.vitest/vitest-report-root-1793962171214865000.json +1 -0
- package/.vitest/vitest-report-root-1793962183290533000.json +1 -0
- package/.vitest/vitest-report-root-1793962184809932000.json +1 -0
- package/.vitest/vitest-report-root-1793962197715204000.json +1 -0
- package/.vitest/vitest-report-root-1793962244650717000.json +1 -0
- package/.vitest/vitest-report-root-1793962259802273000.json +1 -0
- package/.vitest/vitest-report-root-1793962278799745000.json +1 -0
- package/.vitest/vitest-report-root-1793962304412974000.json +1 -0
- package/.vitest/vitest-report-root-1793962328411454000.json +1 -0
- package/.vitest/vitest-report-root-1793962355747869000.json +1 -0
- package/.vitest/vitest-report-root-1793962381401572000.json +1 -0
- package/.vitest/vitest-report-root-1793962393326735000.json +1 -0
- package/.vitest/vitest-report-root-1793962393329206000.json +1 -0
- package/.vitest/vitest-report-root-1793962437796768000.json +1 -0
- package/.vitest/vitest-report-root-1793962444190384000.json +1 -0
- package/.vitest/vitest-report-root-1793962445347541000.json +1 -0
- package/.vitest/vitest-report-root-1793962473691143000.json +1 -0
- package/.vitest/vitest-report-root-1793962474291457000.json +1 -0
- package/.vitest/vitest-report-root-1793962499680468000.json +1 -0
- package/.vitest/vitest-report-root-1793962504410483000.json +1 -0
- package/.vitest/vitest-report-root-1793962516850524000.json +1 -0
- package/.vitest/vitest-report-root-1793962536736273000.json +1 -0
- package/.vitest/vitest-report-root-1793962551181783000.json +1 -0
- package/.vitest/vitest-report-root-1793962553575620000.json +1 -0
- package/.vitest/vitest-report-root-1793962555169730000.json +1 -0
- package/.vitest/vitest-report-root-1793962572639765000.json +1 -0
- package/.vitest/vitest-report-root-1793962597102952000.json +1 -0
- package/.vitest/vitest-report-root-1793962637156669000.json +1 -0
- package/.vitest/vitest-report-root-1793962653530027000.json +1 -0
- package/.vitest/vitest-report-root-1793962665824334000.json +1 -0
- package/.vitest/vitest-report-root-1793962682161714000.json +1 -0
- package/.vitest/vitest-report-root-1793962719526168000.json +1 -0
- package/.vitest/vitest-report-root-1793962723853934000.json +1 -0
- package/.vitest/vitest-report-root-1793962741927728000.json +1 -0
- package/.vitest/vitest-report-root-1793962794308371000.json +1 -0
- package/.vitest/vitest-report-root-1793962796334481000.json +1 -0
- package/.vitest/vitest-report-root-1793962798075169000.json +1 -0
- package/.vitest/vitest-report-root-1793962836466676000.json +1 -0
- package/.vitest/vitest-report-root-1793962846507317000.json +1 -0
- package/.vitest/vitest-report-root-1793962876266701000.json +1 -0
- package/.vitest/vitest-report-root-1793962922031308000.json +1 -0
- package/.vitest/vitest-report-root-1793962932957166000.json +1 -0
- package/.vitest/vitest-report-root-1793962946930725000.json +1 -0
- package/.vitest/vitest-report-root-1793963027896350000.json +1 -0
- package/.vitest/vitest-report-root-1793963036618707000.json +1 -0
- package/.vitest/vitest-report-root-1793963067365318000.json +1 -0
- package/.vitest/vitest-report-root-1793963077597641000.json +1 -0
- package/.vitest/vitest-report-root-1793963126365651000.json +1 -0
- package/.vitest/vitest-report-root-1793963208744553000.json +1 -0
- package/.vitest/vitest-report-root-1793963232806450000.json +1 -0
- package/.vitest/vitest-report-root-1793963325077422000.json +1 -0
- package/.vitest/vitest-report-root-1793963392172877000.json +1 -0
- package/.vitest/vitest-report-root-1793963398218324000.json +1 -0
- package/.vitest/vitest-report-root-1793963410749092000.json +1 -0
- package/.vitest/vitest-report-root-1793963437279580000.json +1 -0
- package/.vitest/vitest-report-root-1793963450096193000.json +1 -0
- package/.vitest/vitest-report-root-1793963478908641000.json +1 -0
- package/.vitest/vitest-report-root-1793963507838465000.json +1 -0
- package/.vitest/vitest-report-root-1793963528668174000.json +1 -0
- package/.vitest/vitest-report-root-1793963601860390000.json +1 -0
- package/.vitest/vitest-report-root-1793963611633446000.json +1 -0
- package/.vitest/vitest-report-root-1793963624713406000.json +1 -0
- package/.vitest/vitest-report-root-1793963680656685000.json +1 -0
- package/.vitest/vitest-report-root-1793963705231851000.json +1 -0
- package/.vitest/vitest-report-root-1793963708929500000.json +1 -0
- package/.vitest/vitest-report-root-1793963710267844000.json +1 -0
- package/.vitest/vitest-report-root-1793963713999248000.json +1 -0
- package/.vitest/vitest-report-root-1793963786513455000.json +1 -0
- package/.vitest/vitest-report-root-1793963792518765000.json +1 -0
- package/.vitest/vitest-report-root-1793963804089549000.json +1 -0
- package/.vitest/vitest-report-root-1793963840412921000.json +1 -0
- package/.vitest/vitest-report-root-1793963880361176000.json +1 -0
- package/.vitest/vitest-report-root-1793963935121106000.json +1 -0
- package/.vitest/vitest-report-root-1793963937290698000.json +1 -0
- package/.vitest/vitest-report-root-1793963977050773000.json +1 -0
- package/.vitest/vitest-report-root-1793963981229158000.json +1 -0
- package/.vitest/vitest-report-root-1793963989422080000.json +1 -0
- package/.vitest/vitest-report-root-1793964025924629000.json +1 -0
- package/.vitest/vitest-report-root-1793964027983705000.json +1 -0
- package/.vitest/vitest-report-root-1793964059969386000.json +1 -0
- package/.vitest/vitest-report-root-1793964071524069000.json +1 -0
- package/.vitest/vitest-report-root-1793964076285860000.json +1 -0
- package/.vitest/vitest-report-root-1793964077988100000.json +1 -0
- package/.vitest/vitest-report-root-1793964093289042000.json +1 -0
- package/.vitest/vitest-report-root-1793964102899356000.json +1 -0
- package/.vitest/vitest-report-root-1793964128089691000.json +1 -0
- package/.vitest/vitest-report-root-1793964129495156000.json +1 -0
- package/.vitest/vitest-report-root-1793964182849665000.json +1 -0
- package/.vitest/vitest-report-root-1793964223959893000.json +1 -0
- package/.vitest/vitest-report-root-1793964253351716000.json +1 -0
- package/.vitest/vitest-report-root-1793964290220122000.json +1 -0
- package/.vitest/vitest-report-root-1793964318037006000.json +1 -0
- package/.vitest/vitest-report-root-1793964334676691000.json +1 -0
- package/.vitest/vitest-report-root-1793964378520677000.json +1 -0
- package/.vitest/vitest-report-root-1793964383748994000.json +1 -0
- package/.vitest/vitest-report-root-1793964394042303000.json +1 -0
- package/.vitest/vitest-report-root-1793964466521881000.json +1 -0
- package/.vitest/vitest-report-root-1793964470478175000.json +1 -0
- package/.vitest/vitest-report-root-1793964484499019000.json +1 -0
- package/.vitest/vitest-report-root-1793964527645213000.json +1 -0
- package/.vitest/vitest-report-root-1793964608875865000.json +1 -0
- package/.vitest/vitest-report-root-1793964623608336000.json +1 -0
- package/.vitest/vitest-report-root-1793964629870846000.json +1 -0
- package/.vitest/vitest-report-root-1793964674515564000.json +1 -0
- package/.vitest/vitest-report-root-1793964706923651000.json +1 -0
- package/.vitest/vitest-report-root-1793964712832942000.json +1 -0
- package/.vitest/vitest-report-root-1793964714824633000.json +1 -0
- package/.vitest/vitest-report-root-1793964755433952000.json +1 -0
- package/.vitest/vitest-report-root-1793964783157670000.json +1 -0
- package/.vitest/vitest-report-root-1793964818963246000.json +1 -0
- package/.vitest/vitest-report-root-1793964843818548000.json +1 -0
- package/.vitest/vitest-report-root-1793964929824204000.json +1 -0
- package/.vitest/vitest-report-root-1793964973060713000.json +1 -0
- package/.vitest/vitest-report-root-1793964983122482000.json +1 -0
- package/.vitest/vitest-report-root-1793965107264567000.json +1 -0
- package/.vitest/vitest-report-root-1793965258759177000.json +1 -0
- package/.vitest/vitest-report-root-1793965277212091000.json +1 -0
- package/.vitest/vitest-report-root-1793965420648188000.json +1 -0
- package/.vitest/vitest-report-root-1793965611688414000.json +1 -0
- package/.vitest/vitest-report-root-1793965753407694000.json +1 -0
- package/.vitest/vitest-report-root-1793965766104309000.json +1 -0
- package/.vitest/vitest-report-root-1793965766823098000.json +1 -0
- package/.vitest/vitest-report-root-1793965806066109000.json +1 -0
- package/.vitest/vitest-report-root-1793965824697182000.json +1 -0
- package/.vitest/vitest-report-root-1793965904374564000.json +1 -0
- package/.vitest/vitest-report-root-1793965920838340000.json +1 -0
- package/.vitest/vitest-report-root-1793965932520617000.json +1 -0
- package/.vitest/vitest-report-root-1793965971574656000.json +1 -0
- package/.vitest/vitest-report-root-1793966049815024000.json +1 -0
- package/.vitest/vitest-report-root-1793966057888034000.json +1 -0
- package/.vitest/vitest-report-root-1793966066838868000.json +1 -0
- package/.vitest/vitest-report-root-1793966160347764000.json +1 -0
- package/.vitest/vitest-report-root-1793966196305985000.json +1 -0
- package/.vitest/vitest-report-root-1793966221538043000.json +1 -0
- package/.vitest/vitest-report-root-1793966251519918000.json +1 -0
- package/.vitest/vitest-report-root-1793966447000588000.json +1 -0
- package/.vitest/vitest-report-root-1793966463178249000.json +1 -0
- package/.vitest/vitest-report-root-1793966486995648000.json +1 -0
- package/.vitest/vitest-report-root-1793966726756953000.json +1 -0
- package/.vitest/vitest-report-root-1793966763656807000.json +1 -0
- package/.vitest/vitest-report-root-1793966979409799000.json +1 -0
- package/.vitest/vitest-report-root-1793967385250149000.json +1 -0
- package/.vitest/vitest-report-root-1793967617080163000.json +1 -0
- package/.vitest/vitest-report-root-1793967649428508000.json +1 -0
- package/.vitest/vitest-report-root-1793967773689520000.json +1 -0
- package/.vitest/vitest-report-root-1793968743743508000.json +1 -0
- package/.vitest/vitest-report-root-1793968846470407000.json +1 -0
- package/.vitest/vitest-report-root-1793968880878391000.json +1 -0
- package/.vitest/vitest-report-root-1793969027713529000.json +1 -0
- package/.vitest/vitest-report-root-1793969041841266000.json +1 -0
- package/.vitest/vitest-report-root-1793969142007468000.json +1 -0
- package/.vitest/vitest-report-root-1793969164867379000.json +1 -0
- package/.vitest/vitest-report-root-1793969193145858000.json +1 -0
- package/.vitest/vitest-report-root-1793969246818533000.json +1 -0
- package/.vitest/vitest-report-root-1793969270845486000.json +1 -0
- package/.vitest/vitest-report-root-1793969272514219000.json +1 -0
- package/.vitest/vitest-report-root-1793969302476105000.json +1 -0
- package/.vitest/vitest-report-root-1793969401697799000.json +1 -0
- package/.vitest/vitest-report-root-1793969433222630000.json +1 -0
- package/.vitest/vitest-report-root-1793969453350714000.json +1 -0
- package/.vitest/vitest-report-root-1793969567187400000.json +1 -0
- package/.vitest/vitest-report-root-1793969602230024000.json +1 -0
- package/.vitest/vitest-report-root-1793969633261063000.json +1 -0
- package/.vitest/vitest-report-root-1793969673876404000.json +1 -0
- package/.vitest/vitest-report-root-1793969702287010000.json +1 -0
- package/.vitest/vitest-report-root-1793969745828386000.json +1 -0
- package/.vitest/vitest-report-root-1793969893687205000.json +1 -0
- package/.vitest/vitest-report-root-1793969949642120000.json +1 -0
- package/.vitest/vitest-report-root-1793969981399076000.json +1 -0
- package/.vitest/vitest-report-root-1793970027152713000.json +1 -0
- package/.vitest/vitest-report-root-1793970030585158000.json +1 -0
- package/.vitest/vitest-report-root-1793970160195767000.json +1 -0
- package/.vitest/vitest-report-root-1793970215752422000.json +1 -0
- package/.vitest/vitest-report-root-1793970217114968000.json +1 -0
- package/.vitest/vitest-report-root-1793970329879319000.json +1 -0
- package/.vitest/vitest-report-root-1793970590586994000.json +1 -0
- package/.vitest/vitest-report-root-1793970625359990000.json +1 -0
- package/.vitest/vitest-report-root-1793970672590269000.json +1 -0
- package/.vitest/vitest-report-root-1793970796789022000.json +1 -0
- package/.vitest/vitest-report-root-1793970825710990000.json +1 -0
- package/.vitest/vitest-report-root-1793970884000509000.json +1 -0
- package/.vitest/vitest-report-root-1793970900444617000.json +1 -0
- package/.vitest/vitest-report-root-1793972186024681000.json +1 -0
- package/.vitest/vitest-report-root-1793972227757396000.json +1 -0
- package/.vitest/vitest-report-root-1793972736341600000.json +1 -0
- package/.vitest/vitest-report-root-1793972769249562000.json +1 -0
- package/.vitest/vitest-report-root-1793972859435283000.json +1 -0
- package/.vitest/vitest-report-root-1793972915169294000.json +1 -0
- package/.vitest/vitest-report-root-1793973081515450000.json +1 -0
- package/.vitest/vitest-report-root-1793973111336773000.json +1 -0
- package/.vitest/vitest-report-root-1793973253986969000.json +1 -0
- package/.vitest/vitest-report-root-1793973561283775000.json +1 -0
- package/.vitest/vitest-report-root-1793973593320977000.json +1 -0
- package/.vitest/vitest-report-root-1793973648302867000.json +1 -0
- package/.vitest/vitest-report-root-1793973819657242000.json +1 -0
- package/.vitest/vitest-report-root-1793973952727311000.json +1 -0
- package/.vitest/vitest-report-root-1793974334455876000.json +1 -0
- package/.vitest/vitest-report-root-1793974437074196000.json +1 -0
- package/.vitest/vitest-report-root-1793974437553146000.json +1 -0
- package/.vitest/vitest-report-root-1793974461818626000.json +1 -0
- package/.vitest/vitest-report-root-1793974515255198000.json +1 -0
- package/.vitest/vitest-report-root-1793974516267191000.json +1 -0
- package/.vitest/vitest-report-root-1793974621202824000.json +1 -0
- package/.vitest/vitest-report-root-1793974718450330000.json +1 -0
- package/.vitest/vitest-report-root-1793974834942373000.json +1 -0
- package/.vitest/vitest-report-root-1793974921367314000.json +1 -0
- package/.vitest/vitest-report-root-1793975019367156000.json +1 -0
- package/.vitest/vitest-report-root-1793975048166096000.json +1 -0
- package/.vitest/vitest-report-root-1793975133024339000.json +1 -0
- package/.vitest/vitest-report-root-1793975159711704000.json +1 -0
- package/.vitest/vitest-report-root-1793975517481736000.json +1 -0
- package/.vitest/vitest-report-root-1793975680008825000.json +1 -0
- package/.vitest/vitest-report-root-1793976067648494000.json +1 -0
- package/.vitest/vitest-report-root-1793976314122479000.json +1 -0
- package/.vitest/vitest-report-root-1793976513022402000.json +1 -0
- package/.vitest/vitest-report-root-1793976540410805000.json +1 -0
- package/.vitest/vitest-report-root-1793976555103273000.json +1 -0
- package/.vitest/vitest-report-root-1793976702974407000.json +1 -0
- package/.vitest/vitest-report-root-1793976721093108000.json +1 -0
- package/.vitest/vitest-report-root-1793976955473681000.json +1 -0
- package/.vitest/vitest-report-root-1793977049628483000.json +1 -0
- package/.vitest/vitest-report-root-1793977098467804000.json +1 -0
- package/.vitest/vitest-report-root-1793977132144900000.json +1 -0
- package/.vitest/vitest-report-root-1793977279648191000.json +1 -0
- package/.vitest/vitest-report-root-1793977365312127000.json +1 -0
- package/.vitest/vitest-report-root-1793978227796817000.json +1 -0
- package/.vitest/vitest-report-root-1793978255189735000.json +1 -0
- package/.vitest/vitest-report-root-1793978306509070000.json +1 -0
- package/.vitest/vitest-report-root-1793978418301216000.json +1 -0
- package/.vitest/vitest-report-root-1793978445072573000.json +1 -0
- package/.vitest/vitest-report-root-1793978546605517000.json +1 -0
- package/.vitest/vitest-report-root-1793978576060950000.json +1 -0
- package/.vitest/vitest-report-root-1793978590261408000.json +1 -0
- package/.vitest/vitest-report-root-1793978674733179000.json +1 -0
- package/.vitest/vitest-report-root-1793978718588785000.json +1 -0
- package/.vitest/vitest-report-root-1793978725363453000.json +1 -0
- package/.vitest/vitest-report-root-1793978729967285000.json +1 -0
- package/.vitest/vitest-report-root-1793978755641607000.json +1 -0
- package/.vitest/vitest-report-root-1793978782769802000.json +1 -0
- package/.vitest/vitest-report-root-1793978784870947000.json +1 -0
- package/.vitest/vitest-report-root-1793978806927335000.json +1 -0
- package/.vitest/vitest-report-root-1793978822508324000.json +1 -0
- package/.vitest/vitest-report-root-1793978836339794000.json +1 -0
- package/.vitest/vitest-report-root-1793978837947352000.json +1 -0
- package/.vitest/vitest-report-root-1793978891548295000.json +1 -0
- package/.vitest/vitest-report-root-1793978946172947000.json +1 -0
- package/.vitest/vitest-report-root-1793978947109807000.json +1 -0
- package/.vitest/vitest-report-root-1793979034208662000.json +1 -0
- package/.vitest/vitest-report-root-1793979070583608000.json +1 -0
- package/.vitest/vitest-report-root-1793979081187144000.json +1 -0
- package/.vitest/vitest-report-root-1793979085428673000.json +1 -0
- package/.vitest/vitest-report-root-1793979155097858000.json +1 -0
- package/.vitest/vitest-report-root-1793979233508873000.json +1 -0
- package/.vitest/vitest-report-root-1793979268653273000.json +1 -0
- package/.vitest/vitest-report-root-1793979341978843000.json +1 -0
- package/.vitest/vitest-report-root-1793979345344877000.json +1 -0
- package/.vitest/vitest-report-root-1793979389390374000.json +1 -0
- package/.vitest/vitest-report-root-1793979400063493000.json +1 -0
- package/.vitest/vitest-report-root-1793979432448725000.json +1 -0
- package/.vitest/vitest-report-root-1793979459139430000.json +1 -0
- package/.vitest/vitest-report-root-1793979480341961000.json +1 -0
- package/.vitest/vitest-report-root-1793979510130869000.json +1 -0
- package/.vitest/vitest-report-root-1793979524763924000.json +1 -0
- package/.vitest/vitest-report-root-1793979571563010000.json +1 -0
- package/.vitest/vitest-report-root-1793979627916920000.json +1 -0
- package/.vitest/vitest-report-root-1793979726395379000.json +1 -0
- package/.vitest/vitest-report-root-1793979752029533000.json +1 -0
- package/.vitest/vitest-report-root-1793979753365744000.json +1 -0
- package/.vitest/vitest-report-root-1793979759386206000.json +1 -0
- package/.vitest/vitest-report-root-1793979787819109000.json +1 -0
- package/.vitest/vitest-report-root-1793979827615051000.json +1 -0
- package/.vitest/vitest-report-root-1793979927737393000.json +1 -0
- package/.vitest/vitest-report-root-1793979929836169000.json +1 -0
- package/.vitest/vitest-report-root-1793979955780781000.json +1 -0
- package/.vitest/vitest-report-root-1793980200569636000.json +1 -0
- package/.vitest/vitest-report-root-1793980206045213000.json +1 -0
- package/.vitest/vitest-report-root-1793980285772027000.json +1 -0
- package/.vitest/vitest-report-root-1793980459229828000.json +1 -0
- package/.vitest/vitest-report-root-1793980460545874000.json +1 -0
- package/.vitest/vitest-report-root-1793980554484341000.json +1 -0
- package/.vitest/vitest-report-root-1793980674494388000.json +1 -0
- package/.vitest/vitest-report-root-1793980683752195000.json +1 -0
- package/.vitest/vitest-report-root-1793980947108651000.json +1 -0
- package/.vitest/vitest-report-root-1793981129616629000.json +1 -0
- package/.vitest/vitest-report-root-1793981196611441000.json +1 -0
- package/.vitest/vitest-report-root-1793981226583545000.json +1 -0
- package/.vitest/vitest-report-root-1793981294259721000.json +1 -0
- package/.vitest/vitest-report-root-1793981353393048000.json +1 -0
- package/.vitest/vitest-report-root-1793981424585368000.json +1 -0
- package/.vitest/vitest-report-root-1793981513266687000.json +1 -0
- package/.vitest/vitest-report-root-1793981526418218000.json +1 -0
- package/.vitest/vitest-report-root-1793981540069877000.json +1 -0
- package/.vitest/vitest-report-root-1793981761193625000.json +1 -0
- package/.vitest/vitest-report-root-1793981868520992000.json +1 -0
- package/.vitest/vitest-report-root-1793982048467772000.json +1 -0
- package/.vitest/vitest-report-root-1793982119518020000.json +1 -0
- package/.vitest/vitest-report-root-1793982243473651000.json +1 -0
- package/.vitest/vitest-report-root-1793982406880629000.json +1 -0
- package/.vitest/vitest-report-root-1793982433563632000.json +1 -0
- package/.vitest/vitest-report-root-1793982496753204000.json +1 -0
- package/.vitest/vitest-report-root-1793982500153311000.json +1 -0
- package/.vitest/vitest-report-root-1793982542086095000.json +1 -0
- package/.vitest/vitest-report-root-1793982659482988000.json +1 -0
- package/.vitest/vitest-report-root-1793983799132716000.json +1 -0
- package/.vitest/vitest-report-root-1793983822721833000.json +1 -0
- package/.vitest/vitest-report-root-1793984998618484000.json +1 -0
- package/.vitest/vitest-report-root-1793985050475750000.json +1 -0
- package/.vitest/vitest-report-root-1793985095516077000.json +1 -0
- package/.vitest/vitest-report-root-1793985130729074000.json +1 -0
- package/.vitest/vitest-report-root-1793985177150997000.json +1 -0
- package/.vitest/vitest-report-root-1793985267658626000.json +1 -0
- package/.vitest/vitest-report-root-1793985412705211000.json +1 -0
- package/.vitest/vitest-report-root-1793985433752853000.json +1 -0
- package/.vitest/vitest-report-root-1794087938302852000.json +1 -0
- package/.vitest/vitest-report-root-1794087978339022000.json +1 -0
- package/.vitest/vitest-report-root-1794088095283811000.json +1 -0
- package/.vitest/vitest-report-root-1794088129997065000.json +1 -0
- package/.vitest/vitest-report-root-1794088147336556000.json +1 -0
- package/.vitest/vitest-report-root-1794088173414593000.json +1 -0
- package/.vitest/vitest-report-root-1794088221289657000.json +1 -0
- package/.vitest/vitest-report-root-1794088250766611000.json +1 -0
- package/.vitest/vitest-report-root-1794088365553234000.json +1 -0
- package/.vitest/vitest-report-root-1794088395202655000.json +1 -0
- package/.vitest/vitest-report-root-1794090028732187000.json +1 -0
- package/.vitest/vitest-report-root-1794090054787283000.json +1 -0
- package/.vitest/vitest-report-root-1794090153955794000.json +1 -0
- package/.vitest/vitest-report-root-1794090161850160000.json +1 -0
- package/.vitest/vitest-report-root-1794091755693314000.json +1 -0
- package/.vitest/vitest-report-root-1794091765029349000.json +1 -0
- package/.vitest/vitest-report-root-1794091975649927000.json +1 -0
- package/.vitest/vitest-report-root-1794091994027950000.json +1 -0
- package/.vitest/vitest-report-root-1794092005178771000.json +1 -0
- package/.vitest/vitest-report-root-1794113295302382000.json +1 -0
- package/.vitest/vitest-report-root-1794114156337032000.json +1 -0
- package/.vitest/vitest-report-root-1794114198454137000.json +1 -0
- package/.vitest/vitest-report-root-1794114254064413000.json +1 -0
- package/.vitest/vitest-report-root-1794114280107510000.json +1 -0
- package/.vitest/vitest-report-root-1794114495199837000.json +1 -0
- package/.vitest/vitest-report-root-1794114646604233000.json +1 -0
- package/.vitest/vitest-report-root-1794114666311689000.json +1 -0
- package/.vitest/vitest-report-root-1794114974303438000.json +1 -0
- package/.vitest/vitest-report-root-1794115037361450000.json +1 -0
- package/.vitest/vitest-report-root-1794115097838937000.json +1 -0
- package/.vitest/vitest-report-root-1794115604669388000.json +1 -0
- package/.vitest/vitest-report-root-1794115633814500000.json +1 -0
- package/.vitest/vitest-report-root-1794115648756242000.json +1 -0
- package/.vitest/vitest-report-root-1794115873440741000.json +1 -0
- package/.vitest/vitest-report-root-1794115952930230000.json +1 -0
- package/.vitest/vitest-report-root-1794115963344701000.json +1 -0
- package/.vitest/vitest-report-root-1794116196067450000.json +1 -0
- package/.vitest/vitest-report-root-1794116254301280000.json +1 -0
- package/.vitest/vitest-report-root-1794116259342966000.json +1 -0
- package/.vitest/vitest-report-root-1794118178787879000.json +1 -0
- package/.vitest/vitest-report-root-1794137087891409000.json +1 -0
- package/.vitest/vitest-report-root-1794137100301214000.json +1 -0
- package/.vitest/vitest-report-root-1794137107377813000.json +1 -0
- package/.vitest/vitest-report-root-1794137171230704000.json +1 -0
- package/.vitest/vitest-report-root-1794137317761465000.json +1 -0
- package/.vitest/vitest-report-root-1794137320282368000.json +1 -0
- package/LICENSE +17 -0
- package/PACKAGE_PUBLICATIONS.md +26 -0
- package/builder-package.json +19 -0
- package/package.json +77 -3
- package/scripts/build-builder.ts +27 -0
- package/scripts/build-library-runtime.ts +9 -0
- package/scripts/build-static.ts +75 -0
- package/scripts/build.ts +6 -0
- package/scripts/check-fragment.ts +12 -0
- package/scripts/local-workspaces.test.ts +31 -0
- package/scripts/local-workspaces.ts +55 -0
- package/scripts/release-version-cli.test.ts +40 -0
- package/scripts/release-version.test.ts +29 -0
- package/scripts/release-version.ts +46 -0
- package/scripts/run-package-build.ts +8 -0
- package/scripts/serve-packages.ts +8 -0
- package/spikes/README.md +70 -0
- package/spikes/barrel-rewriting/README.md +97 -0
- package/spikes/barrel-rewriting/measure.ts +134 -0
- package/spikes/barrel-rewriting/readme.ts +174 -0
- package/spikes/barrel-rewriting/results.json +3440 -0
- package/spikes/barrel-rewriting/run.ts +330 -0
- package/spikes/barrel-rewriting/setup.ts +90 -0
- package/spikes/barrel-rewriting/sw.ts +148 -0
- package/spikes/barrel-rewriting/tenant.ts +91 -0
- package/spikes/barrel-rewriting/worker-config.ts +33 -0
- package/spikes/closure-fragments/README.md +157 -0
- package/spikes/closure-fragments/results.json +959 -0
- package/spikes/closure-fragments/run.ts +298 -0
- package/spikes/compiler/README.md +177 -0
- package/spikes/compiler/compile.test.ts +78 -0
- package/spikes/compiler/compile.ts +82 -0
- package/spikes/compiler/facet-redact.d.ts +5 -0
- package/spikes/compiler/markers.ts +88 -0
- package/spikes/compiler/pages.ts +43 -0
- package/spikes/compiler/readme.ts +116 -0
- package/spikes/compiler/reference.ts +81 -0
- package/spikes/compiler/render.ts +113 -0
- package/spikes/compiler/results.json +3310 -0
- package/spikes/compiler/run.ts +250 -0
- package/spikes/compiler/sucrase-parser.d.ts +8 -0
- package/spikes/compiler/sw.ts +62 -0
- package/spikes/diagram-readiness/README.md +134 -0
- package/spikes/diagram-readiness/analysis.test.ts +52 -0
- package/spikes/diagram-readiness/analysis.ts +35 -0
- package/spikes/diagram-readiness/browser.ts +209 -0
- package/spikes/diagram-readiness/readme.ts +65 -0
- package/spikes/diagram-readiness/results.json +30289 -0
- package/spikes/diagram-readiness/run.ts +103 -0
- package/spikes/diagram-readiness/server.ts +53 -0
- package/spikes/esm-sh/README.md +27 -0
- package/spikes/esm-sh/browser-client.ts +18 -0
- package/spikes/esm-sh/browser-server.ts +104 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.headers +15 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-module.headers +13 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-module.mjs.txt +142 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.headers +15 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.headers +11 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.mjs.txt +222 -0
- package/spikes/esm-sh/fixtures/toggle-selection-entry.headers +14 -0
- package/spikes/esm-sh/fixtures/toggle-selection-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/toggle-selection-module.headers +11 -0
- package/spikes/esm-sh/fixtures/toggle-selection-module.mjs.txt +76 -0
- package/spikes/esm-sh/fixtures.ts +54 -0
- package/spikes/esm-sh/redact.ts +1 -0
- package/spikes/frame-commenting/README.md +183 -0
- package/spikes/frame-commenting/agent.ts +110 -0
- package/spikes/frame-commenting/hook.ts +1 -0
- package/spikes/frame-commenting/host.ts +66 -0
- package/spikes/frame-commenting/measure.ts +180 -0
- package/spikes/frame-commenting/model.test.ts +27 -0
- package/spikes/frame-commenting/model.ts +40 -0
- package/spikes/frame-commenting/readme.ts +61 -0
- package/spikes/frame-commenting/results.json +5320 -0
- package/spikes/frame-commenting/run.ts +73 -0
- package/spikes/frame-commenting/setup.ts +125 -0
- package/spikes/lib/barrels.test.ts +107 -0
- package/spikes/lib/barrels.ts +309 -0
- package/spikes/lib/cjs-export-names.mjs +22 -0
- package/spikes/lib/content-types.ts +28 -0
- package/spikes/lib/convert-commonjs.ts +168 -0
- package/spikes/lib/fragment.ts +108 -0
- package/spikes/lib/library-set.ts +194 -0
- package/spikes/lib/module-transform.test.ts +133 -0
- package/spikes/lib/module-transform.ts +351 -0
- package/spikes/lib/origin.ts +140 -0
- package/spikes/lib/pages.ts +290 -0
- package/spikes/lib/report.ts +23 -0
- package/spikes/lib/runtime-server.ts +282 -0
- package/spikes/lib/static-server.ts +82 -0
- package/spikes/lib/trace.ts +384 -0
- package/spikes/local-folder-link/README.md +85 -0
- package/spikes/local-folder-link/checkout.ts +132 -0
- package/spikes/local-folder-link/documents.ts +36 -0
- package/spikes/local-folder-link/readme.ts +42 -0
- package/spikes/local-folder-link/results.json +12815 -0
- package/spikes/local-folder-link/rewrite.test.ts +27 -0
- package/spikes/local-folder-link/rewrite.ts +38 -0
- package/spikes/local-folder-link/run.ts +123 -0
- package/spikes/local-folder-link/server.ts +100 -0
- package/spikes/local-folder-link/sw.ts +97 -0
- package/spikes/origin-isolation/README.md +426 -0
- package/spikes/origin-isolation/browsers.ts +43 -0
- package/spikes/origin-isolation/helper.ts +6 -0
- package/spikes/origin-isolation/host.ts +25 -0
- package/spikes/origin-isolation/measure.ts +118 -0
- package/spikes/origin-isolation/model.test.ts +45 -0
- package/spikes/origin-isolation/model.ts +49 -0
- package/spikes/origin-isolation/proxy.ts +35 -0
- package/spikes/origin-isolation/readme.ts +83 -0
- package/spikes/origin-isolation/results.json +3242 -0
- package/spikes/origin-isolation/run.ts +35 -0
- package/spikes/origin-isolation/server.ts +108 -0
- package/spikes/origin-isolation/sw.ts +28 -0
- package/spikes/origin-isolation/tenant.ts +165 -0
- package/spikes/react-runtime-set/README.md +48 -0
- package/spikes/react-runtime-set/convert.ts +118 -0
- package/spikes/react-runtime-set/export-names.mjs +8 -0
- package/spikes/react-runtime-set/page/page.js +46 -0
- package/spikes/react-runtime-set/results.json +84 -0
- package/spikes/react-runtime-set/run.ts +255 -0
- package/spikes/run.ts +15 -0
- package/spikes/sw-tenant-frame/README.md +95 -0
- package/spikes/sw-tenant-frame/results.json +1348 -0
- package/spikes/sw-tenant-frame/run.ts +373 -0
- package/spikes/sw-tenant-frame/site/frame.html +113 -0
- package/spikes/sw-tenant-frame/site/host.html +25 -0
- package/spikes/sw-tenant-frame/site/sw.js +10 -0
- package/spikes/tailwind-parity/README.md +78 -0
- package/spikes/tailwind-parity/compare.test.ts +70 -0
- package/spikes/tailwind-parity/compare.ts +91 -0
- package/spikes/tailwind-parity/facet-font-scale.d.ts +6 -0
- package/spikes/tailwind-parity/facet-styles.ts +77 -0
- package/spikes/tailwind-parity/results.json +885 -0
- package/spikes/tailwind-parity/run.ts +385 -0
- package/spikes/tailwind-parity/runtime-tailwind.ts +82 -0
- package/src/activity-schema.ts +91 -0
- package/src/activity.test.ts +57 -0
- package/src/build/README.md +94 -0
- package/src/build/barrels.test.ts +107 -0
- package/src/build/barrels.ts +306 -0
- package/src/build/base.ts +2 -0
- package/src/build/check-fragment.ts +45 -0
- package/src/build/cjs-export-names.mjs +24 -0
- package/src/build/commonjs-exports.ts +24 -0
- package/src/build/convert-commonjs.ts +183 -0
- package/src/build/dependencies.ts +4 -0
- package/src/build/dependency-barrels.ts +59 -0
- package/src/build/dependency-cache.ts +40 -0
- package/src/build/dependency-plugin.ts +58 -0
- package/src/build/dependency-runtime.test.ts +121 -0
- package/src/build/dependency-runtime.ts +147 -0
- package/src/build/errors.ts +9 -0
- package/src/build/fragment.ts +89 -0
- package/src/build/index.ts +7 -0
- package/src/build/library-runtime.test.ts +343 -0
- package/src/build/library-runtime.ts +98 -0
- package/src/build/module-utils.ts +11 -0
- package/src/build/recipe-dependencies.ts +14 -0
- package/src/build/runtime-entries.ts +10 -0
- package/src/build/trace.ts +429 -0
- package/src/design-schema.ts +25 -0
- package/src/dev/README.md +48 -0
- package/src/dev/catalog.ts +79 -0
- package/src/dev/cli.test.ts +12 -0
- package/src/dev/cli.ts +25 -0
- package/src/dev/index.ts +115 -0
- package/src/dev/packages.test.ts +175 -0
- package/src/editing.test.tsx +31 -0
- package/src/editing.ts +25 -0
- package/src/frame/activity.browser.ts +34 -0
- package/src/frame/activity.test.ts +27 -0
- package/src/frame/activity.ts +50 -0
- package/src/frame/agent/README.md +47 -0
- package/src/frame/agent/agent.browser.ts +127 -0
- package/src/frame/agent/design.ts +62 -0
- package/src/frame/agent/index.ts +148 -0
- package/src/frame/agent/overlay.test.ts +42 -0
- package/src/frame/agent/overlay.ts +91 -0
- package/src/frame/agent/owner.test.ts +78 -0
- package/src/frame/agent/owner.ts +58 -0
- package/src/frame/agent/provider.tsx +14 -0
- package/src/frame/agent/react-override.ts +55 -0
- package/src/frame/agent/review.browser.ts +65 -0
- package/src/frame/agent/review.ts +107 -0
- package/src/frame/agent/testing/callsite.tsx +5 -0
- package/src/frame/agent/testing/client.ts +99 -0
- package/src/frame/agent/testing/library.ts +3 -0
- package/src/frame/agent/testing/modal.tsx +5 -0
- package/src/frame/agent/testing/review-client.ts +43 -0
- package/src/frame/agent/testing/review-server.ts +31 -0
- package/src/frame/agent/testing/server.ts +72 -0
- package/src/frame/agent/testing/vocabulary-host.ts +20 -0
- package/src/frame/agent/testing/vocabulary.tsx +10 -0
- package/src/frame/agent/vitest.browser.config.ts +6 -0
- package/src/frame/agent/vocabulary.browser.ts +30 -0
- package/src/frame/agent/vocabulary.test.ts +36 -0
- package/src/frame/agent/vocabulary.ts +13 -0
- package/src/frame/agent.ts +2 -0
- package/src/frame/boot-bundle.test.ts +20 -0
- package/src/frame/boot-styles.test.ts +102 -0
- package/src/frame/boot-styles.ts +50 -0
- package/src/frame/boot.test.ts +108 -0
- package/src/frame/boot.ts +205 -0
- package/src/frame/bridge.ts +27 -0
- package/src/frame/devtools-hook.ts +1 -0
- package/src/frame/entry.ts +4 -0
- package/src/frame/export-compiler.test.ts +23 -0
- package/src/frame/export-compiler.ts +18 -0
- package/src/frame/export-page.ts +59 -0
- package/src/frame/export.test.ts +17 -0
- package/src/frame/export.ts +90 -0
- package/src/frame/index.ts +7 -0
- package/src/frame/local-runtime.browser.ts +36 -0
- package/src/frame/page-agent.ts +2 -0
- package/src/frame/readiness.ts +51 -0
- package/src/frame/review-integration.browser.ts +48 -0
- package/src/frame/runtime.browser.ts +71 -0
- package/src/frame/tailwind/README.md +49 -0
- package/src/frame/tailwind/boot-styles.browser.ts +18 -0
- package/src/frame/tailwind/cache.test.ts +53 -0
- package/src/frame/tailwind/cache.ts +20 -0
- package/src/frame/tailwind/load.test.ts +74 -0
- package/src/frame/tailwind/load.ts +66 -0
- package/src/frame/tailwind/recipe.ts +81 -0
- package/src/frame/tailwind/runtime-cache.test.ts +97 -0
- package/src/frame/tailwind/runtime.ts +113 -0
- package/src/frame/tailwind/store.test.ts +104 -0
- package/src/frame/tailwind/store.ts +55 -0
- package/src/frame/tailwind/stylesheets.ts +37 -0
- package/src/frame/tailwind/tailwind.browser.ts +71 -0
- package/src/frame/tailwind/tailwind.test.ts +119 -0
- package/src/frame/tailwind/testing/client.ts +132 -0
- package/src/frame/tailwind/testing/compare.ts +91 -0
- package/src/frame/tailwind/testing/pages.ts +14 -0
- package/src/frame/tailwind/testing/server.ts +89 -0
- package/src/frame/tailwind/vitest.browser.config.ts +7 -0
- package/src/frame/testing/boot-page.ts +3 -0
- package/src/frame/testing/host.ts +60 -0
- package/src/frame/testing/local-host.tsx +33 -0
- package/src/frame/testing/server.ts +120 -0
- package/src/host/BuildLog.test.tsx +40 -0
- package/src/host/BuildLog.tsx +27 -0
- package/src/host/PageFrame.test.tsx +39 -0
- package/src/host/PageFrame.tsx +41 -0
- package/src/host/RuntimeActivity.tsx +75 -0
- package/src/host/activity-state.test.ts +37 -0
- package/src/host/activity-state.ts +69 -0
- package/src/host/agent-source.test.ts +9 -0
- package/src/host/agent-source.ts +14 -0
- package/src/host/agent-validation.test.ts +40 -0
- package/src/host/agent-validation.ts +73 -0
- package/src/host/bridge-request.test.ts +87 -0
- package/src/host/bridge.test.ts +34 -0
- package/src/host/bridge.ts +55 -0
- package/src/host/build-log.test.ts +47 -0
- package/src/host/build-log.ts +29 -0
- package/src/host/clear-cache.test.ts +75 -0
- package/src/host/clear-cache.ts +66 -0
- package/src/host/design-validation.test.ts +38 -0
- package/src/host/design-validation.ts +96 -0
- package/src/host/index.ts +11 -0
- package/src/host/link/index.ts +66 -0
- package/src/host/link/transport.test.ts +10 -0
- package/src/host/link/transport.ts +67 -0
- package/src/host/link/watch.ts +62 -0
- package/src/host/message-values.ts +55 -0
- package/src/host/origin.test.ts +10 -0
- package/src/host/origin.ts +7 -0
- package/src/host/review/README.md +32 -0
- package/src/host/review/index.ts +42 -0
- package/src/host/review/remote.test.ts +21 -0
- package/src/host/review/source.test.ts +19 -0
- package/src/host/review/validation.test.ts +34 -0
- package/src/host/review/validation.ts +55 -0
- package/src/host/runtime-integration.test.ts +29 -0
- package/src/host/source-path.test.ts +14 -0
- package/src/host/validation.ts +111 -0
- package/src/host/vocabulary-validation.test.ts +60 -0
- package/src/link/README.md +115 -0
- package/src/link/barrels.ts +5 -0
- package/src/link/build-cli.ts +12 -0
- package/src/link/build.test.ts +25 -0
- package/src/link/build.ts +99 -0
- package/src/link/commonjs.test.ts +34 -0
- package/src/link/commonjs.ts +39 -0
- package/src/link/examples/server.ts +18 -0
- package/src/link/index.ts +6 -0
- package/src/link/link.browser.ts +66 -0
- package/src/link/local-relay.browser.ts +22 -0
- package/src/link/overrides.test.ts +103 -0
- package/src/link/overrides.ts +69 -0
- package/src/link/page-sources.test.ts +52 -0
- package/src/link/page-sources.ts +69 -0
- package/src/link/source.ts +25 -0
- package/src/link/storage.ts +32 -0
- package/src/link/testing/client.ts +96 -0
- package/src/link/testing/folder.ts +19 -0
- package/src/link/testing/local-client.ts +30 -0
- package/src/link/testing/local-server.ts +26 -0
- package/src/link/testing/local-worker.ts +17 -0
- package/src/link/testing/server.ts +128 -0
- package/src/link/testing/worker.ts +32 -0
- package/src/link/testing-cache.ts +20 -0
- package/src/link/testing-fixtures.ts +16 -0
- package/src/link/types.ts +27 -0
- package/src/link/validation.ts +44 -0
- package/src/link/vitest.browser.config.ts +3 -0
- package/src/markers.ts +18 -0
- package/src/publication/build.ts +27 -0
- package/src/publication/fixtures/build.mjs +2 -0
- package/src/publication/index.ts +3 -0
- package/src/publication/lock.ts +32 -0
- package/src/publication/manifest.ts +14 -0
- package/src/publication/publication.test.ts +89 -0
- package/src/publication/publish.ts +80 -0
- package/src/publication/runtime.ts +28 -0
- package/src/publication/schema.ts +13 -0
- package/src/review-schema.ts +17 -0
- package/src/schema.ts +149 -0
- package/src/storage/db.test.ts +52 -0
- package/src/storage/db.ts +64 -0
- package/src/sw/activity-router.test.ts +53 -0
- package/src/sw/activity.ts +66 -0
- package/src/sw/barrels.ts +44 -0
- package/src/sw/candidates.test.ts +9 -0
- package/src/sw/candidates.ts +14 -0
- package/src/sw/compile.test.ts +152 -0
- package/src/sw/compile.ts +92 -0
- package/src/sw/compiler-columns.ts +44 -0
- package/src/sw/compiler-internals.d.ts +8 -0
- package/src/sw/compiler-plugins.ts +18 -0
- package/src/sw/compiler.test.ts +51 -0
- package/src/sw/compiler.ts +86 -0
- package/src/sw/composition.test.ts +51 -0
- package/src/sw/composition.ts +86 -0
- package/src/sw/content-types.ts +28 -0
- package/src/sw/converted-resolver.test.ts +129 -0
- package/src/sw/converted-router.test.ts +91 -0
- package/src/sw/converted.browser.ts +31 -0
- package/src/sw/converted.test.ts +31 -0
- package/src/sw/converted.ts +64 -0
- package/src/sw/editable-sites.ts +42 -0
- package/src/sw/errors.test.ts +8 -0
- package/src/sw/errors.ts +17 -0
- package/src/sw/index.ts +7 -0
- package/src/sw/integrity.ts +10 -0
- package/src/sw/legacy-storage.ts +18 -0
- package/src/sw/link-activity.test.ts +126 -0
- package/src/sw/link-activity.ts +21 -0
- package/src/sw/link-cache.test.ts +15 -0
- package/src/sw/link-cache.ts +19 -0
- package/src/sw/link-compiler.ts +112 -0
- package/src/sw/link-folder.ts +29 -0
- package/src/sw/link-markdown.test.ts +52 -0
- package/src/sw/link-relay.ts +40 -0
- package/src/sw/link-route.test.ts +150 -0
- package/src/sw/link-route.ts +239 -0
- package/src/sw/link-source.test.ts +31 -0
- package/src/sw/link-source.ts +41 -0
- package/src/sw/markers.test.ts +33 -0
- package/src/sw/markers.ts +128 -0
- package/src/sw/module-transform.test.ts +131 -0
- package/src/sw/module-transform.ts +352 -0
- package/src/sw/package-generation.test.ts +33 -0
- package/src/sw/page-clients.test.ts +37 -0
- package/src/sw/page-clients.ts +45 -0
- package/src/sw/profile.test.ts +21 -0
- package/src/sw/profile.ts +88 -0
- package/src/sw/resolver.test.ts +183 -0
- package/src/sw/resolver.ts +220 -0
- package/src/sw/router-cache.test.ts +78 -0
- package/src/sw/router.ts +320 -0
- package/src/sw/runtime-module.test.ts +61 -0
- package/src/sw/runtime-module.ts +13 -0
- package/src/sw/source-hash.test.ts +7 -0
- package/src/sw/source-hash.ts +37 -0
- package/src/sw/storage.test.ts +108 -0
- package/src/sw/versions.ts +89 -0
- package/src/sw/worker.ts +87 -0
- package/static/README.md +15 -0
- package/static/profile.example.json +15 -0
- package/tsconfig.json +10 -0
- package/vitest.browser.config.ts +4 -0
- package/vitest.config.ts +9 -0
- 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,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,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
|
+
|