@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
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
16
|
+
|
|
17
|
+
Copyright (c) Flanksource
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Local package publications
|
|
2
|
+
|
|
3
|
+
Local package origins serve completed package snapshots. Run the normal build in Clicky UI, React Grab, or Facet; it holds a package build lock, builds all artifacts, validates the package, then publishes it. A failed or interrupted build leaves the last successful publication active. Concurrent builds of the same package wait for the owner to finish.
|
|
4
|
+
|
|
5
|
+
Publication uses `pnpm --config.ignoreScripts=true pack --json` to preserve the package manager's file selection, workspace dependency rewriting, and inherited license files without rerunning lifecycle scripts. Exported files, runtime fragments, barrel indexes, and local integrity entries must be valid before activation. This requires pnpm and tar on the build machine.
|
|
6
|
+
|
|
7
|
+
Each package stores immutable builds under `.tmp/package-publications/generations/<sha256>/package/`. `current.json` changes through an atomic rename only after the snapshot is complete. Do not edit snapshots. Old builds remain available for open pages; retention and cleanup are deliberately operator controlled. A forcibly killed build can leave `build.lock`; the next build reports the stopped owner. Confirm the process has exited before removing that lock.
|
|
8
|
+
|
|
9
|
+
For an existing, already-complete build, initialize its publication explicitly:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm --dir packages/ui exec tsx ../page-runtime/scripts/run-package-build.ts --publish-only
|
|
13
|
+
pnpm --dir packages/react-grab exec tsx ../page-runtime/scripts/run-package-build.ts --publish-only
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Start a standalone package origin with persistent catalog storage:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pnpm --filter @flanksource/page-runtime run serve-packages --package ../ui --package ../react-grab --package ../../../facet --state-dir .tmp/package-origin --port 5812
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`--package` selects an already published package directory and can repeat. `--state-dir` retains catalogs across restarts; do not delete it while old pages remain open. `--upstream-registry` supplies metadata for packages outside the local set, and `--upstream-origin` supplies their versioned files. Missing local versions or files fail without contacting upstream.
|
|
23
|
+
|
|
24
|
+
`/__catalog.json` describes the current set. `/_generations/<catalog-sha256>/__catalog.json` describes a retained set, and package metadata and files below that prefix stay bound to those snapshots. The playground's profile captures that prefix for both registry and package origin. PageLock format 2 records `packageOrigin`, so uncached module fetches use the same generation as resolution. Old saved locks are resolved again from their manifests.
|
|
25
|
+
|
|
26
|
+
The playground sends the full catalog as a named `packages` event over `/__playground/changes`, including on reconnect. A changed package used by an open page produces an **Out of date** banner with **Refresh**. Manual refresh fetches the latest profile and resolves a new lock even when source is unchanged, then replaces the frame. The banner remains until readiness succeeds and remains available for retry on failure. Automatic mode uses the existing source-edit, comment-draft, busy, and storage safeguards. Host editor and comment state stay mounted; state inside the replaced frame resets.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flanksource/page-runtime-build",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/flanksource/clicky-ui.git",
|
|
9
|
+
"directory": "packages/page-runtime"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": { "access": "public" },
|
|
12
|
+
"exports": {
|
|
13
|
+
".": { "types": "./types/build/index.d.ts", "default": "./index.mjs" },
|
|
14
|
+
"./dependencies": { "types": "./types/build/dependencies.d.ts", "default": "./dependencies.mjs" }
|
|
15
|
+
},
|
|
16
|
+
"files": ["*.mjs", "*.map", "types"],
|
|
17
|
+
"dependencies": { "rolldown": "1.2.15", "es-module-lexer": "^3.0.0" },
|
|
18
|
+
"engines": { "node": ">=24" }
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flanksource/page-runtime",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Browser-mode page runtime for facet and clicky-ui pages: library runtime sets, the module service worker and the page frame.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./editing": "./src/editing.ts",
|
|
9
|
+
"./build": {
|
|
10
|
+
"types": "./src/build/index.ts",
|
|
11
|
+
"default": "./dist/build/index.mjs"
|
|
12
|
+
},
|
|
13
|
+
"./build/dependencies": {
|
|
14
|
+
"types": "./src/build/dependencies.ts",
|
|
15
|
+
"default": "./dist/build/dependencies.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./sw": "./src/sw/index.ts",
|
|
18
|
+
"./frame": "./src/frame/index.ts",
|
|
19
|
+
"./frame/agent": "./src/frame/agent.ts",
|
|
20
|
+
"./host": "./src/host/index.ts",
|
|
21
|
+
"./host/link": "./src/host/link/index.ts",
|
|
22
|
+
"./dev": "./src/dev/index.ts",
|
|
23
|
+
"./publication": "./src/publication/index.ts",
|
|
24
|
+
"./catalog": "./src/publication/schema.ts",
|
|
25
|
+
"./publication/cli": "./scripts/run-package-build.ts",
|
|
26
|
+
"./link": "./src/link/index.ts",
|
|
27
|
+
"./link/build": "./src/link/build.ts",
|
|
28
|
+
"./schema": "./src/schema.ts",
|
|
29
|
+
"./markers": "./src/markers.ts",
|
|
30
|
+
"./static/*": "./dist/static/*"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@mdx-js/mdx": "^3.1.1",
|
|
34
|
+
"autoprefixer": "^10.4.20",
|
|
35
|
+
"bippy": "0.6.1",
|
|
36
|
+
"es-module-lexer": "^3.0.0",
|
|
37
|
+
"postcss": "^8.4.49",
|
|
38
|
+
"rehype-raw": "^7.0.0",
|
|
39
|
+
"remark-frontmatter": "^5.0.0",
|
|
40
|
+
"remark-gfm": "^4.0.0",
|
|
41
|
+
"remark-github-blockquote-alert": "^2.1.0",
|
|
42
|
+
"rolldown": "~1.2.14",
|
|
43
|
+
"sucrase": "^3.35.1",
|
|
44
|
+
"tailwindcss": "^4.3.3",
|
|
45
|
+
"@flanksource/react-grab": "0.1.50"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@flanksource/clicky-ui": "^0.3.57",
|
|
49
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
50
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@flanksource/facet": "0.1.74",
|
|
54
|
+
"@playwright/test": "^1.49.1",
|
|
55
|
+
"@tailwindcss/node": "^4.3.3",
|
|
56
|
+
"@tailwindcss/oxide": "^4.3.3",
|
|
57
|
+
"@types/node": "^24",
|
|
58
|
+
"@types/react": "19.2.17",
|
|
59
|
+
"@types/react-dom": "19.2.3",
|
|
60
|
+
"fake-indexeddb": "^6.0.1",
|
|
61
|
+
"react": "^18.3.1",
|
|
62
|
+
"react-dom": "^18.3.1",
|
|
63
|
+
"react-grab": "^0.1.50",
|
|
64
|
+
"tsx": "^4.7.0",
|
|
65
|
+
"typescript": "^5.7.2",
|
|
66
|
+
"vitest": "^5.0.5",
|
|
67
|
+
"@flanksource/clicky-ui": "0.3.57"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "tsx scripts/build.ts",
|
|
71
|
+
"build:builder": "tsx scripts/build-builder.ts",
|
|
72
|
+
"serve-packages": "tsx scripts/serve-packages.ts",
|
|
73
|
+
"check-fragment": "tsx scripts/check-fragment.ts",
|
|
74
|
+
"spike": "tsx spikes/run.ts",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
77
|
+
"lint": "oxlint src spikes scripts --deny-warnings",
|
|
78
|
+
"check": "tsc -p tsconfig.json --noEmit && pnpm run lint"
|
|
79
|
+
}
|
|
6
80
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cp, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { build } from "rolldown";
|
|
5
|
+
import ts from "typescript";
|
|
6
|
+
|
|
7
|
+
const root = fileURLToPath(new URL("../", import.meta.url));
|
|
8
|
+
const manifest = JSON.parse(await readFile(resolve(root, "package.json"), "utf8")) as { dependencies: Record<string, string>; peerDependencies: Record<string, string> };
|
|
9
|
+
const packages = Object.keys({ ...manifest.dependencies, ...manifest.peerDependencies });
|
|
10
|
+
await rm(resolve(root, "dist/build"), { recursive: true, force: true });
|
|
11
|
+
await mkdir(resolve(root, "dist/build"), { recursive: true });
|
|
12
|
+
await build({
|
|
13
|
+
input: { index: resolve(root, "src/build/index.ts"), dependencies: resolve(root, "src/build/dependencies.ts") },
|
|
14
|
+
platform: "node",
|
|
15
|
+
external: source => source.startsWith("node:") || packages.some(name => source === name || source.startsWith(`${name}/`)),
|
|
16
|
+
output: { dir: resolve(root, "dist/build"), format: "esm", entryFileNames: "[name].mjs", chunkFileNames: "[name]-[hash].mjs", sourcemap: true },
|
|
17
|
+
});
|
|
18
|
+
await cp(resolve(root, "src/build/cjs-export-names.mjs"), resolve(root, "dist/build/cjs-export-names.mjs"));
|
|
19
|
+
await cp(resolve(root, "src/build/README.md"), resolve(root, "dist/build/README.md"));
|
|
20
|
+
const declarations = ts.createProgram([resolve(root, "src/build/index.ts"), resolve(root, "src/build/dependencies.ts")], {
|
|
21
|
+
declaration: true, emitDeclarationOnly: true, allowImportingTsExtensions: true, outDir: resolve(root, "dist/build/types"), rootDir: resolve(root, "src"),
|
|
22
|
+
target: ts.ScriptTarget.ESNext, module: ts.ModuleKind.ESNext, moduleResolution: ts.ModuleResolutionKind.Bundler, skipLibCheck: true, esModuleInterop: true, strict: true,
|
|
23
|
+
});
|
|
24
|
+
const diagnostics = ts.getPreEmitDiagnostics(declarations);
|
|
25
|
+
if (diagnostics.length) throw new Error(ts.formatDiagnosticsWithColorAndContext(diagnostics, { getCurrentDirectory: () => root, getCanonicalFileName: path => path, getNewLine: () => "\n" }));
|
|
26
|
+
declarations.emit();
|
|
27
|
+
await writeFile(resolve(root, "dist/build/package.json"), await readFile(resolve(root, "builder-package.json"), "utf8"));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { buildLibraryRuntime, type Fragment } from "../src/build/index.ts";
|
|
4
|
+
|
|
5
|
+
const [libraryDir, basePath, ...extra] = process.argv.slice(2);
|
|
6
|
+
if (!libraryDir || extra.length) throw new Error("usage: build-library-runtime.ts <libraryDir> [base-fragment.json]");
|
|
7
|
+
const base = basePath ? JSON.parse(await readFile(resolve(basePath), "utf8")) as Fragment : undefined;
|
|
8
|
+
const result = await buildLibraryRuntime({ libraryDir: resolve(libraryDir), outDir: resolve(libraryDir, "dist/runtime"), ...(base ? { base } : {}) });
|
|
9
|
+
console.log(`${result.fragment.name}: runtime built (${Object.keys(result.fragment.integrity).length} files)`);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
2
|
+
import { dirname, resolve } from "node:path";
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
|
+
import { build, type Plugin } from "rolldown";
|
|
5
|
+
import { frameDocument } from "../src/sw/router.ts";
|
|
6
|
+
import { EXPORT_COMPILER_URL } from "../src/sw/runtime-module.ts";
|
|
7
|
+
import { findLocalWorkspaces, localWorkspacesPlugin } from "./local-workspaces.ts";
|
|
8
|
+
|
|
9
|
+
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
10
|
+
const workspaceRoot = resolve(root, "../..");
|
|
11
|
+
/** `dev`: bundle `@flanksource/*` dependencies from sibling checkouts of this workspace instead of the installed releases. */
|
|
12
|
+
export type BuildStaticOptions = { outDir?: string; version?: string; dev?: boolean };
|
|
13
|
+
/** Rolldown only warns on an unresolved import and leaves a guessed global behind; a runtime bundle must fail instead. */
|
|
14
|
+
const failOnUnresolved = { onLog(level: "info" | "debug" | "warn", log: { code?: string; message: string }, handler: (level: "info" | "debug" | "warn" | "error", log: { code?: string; message: string }) => void) { if (log.code === "UNRESOLVED_IMPORT") throw new Error(`build-static: ${log.message}; publish the missing export or build with --dev against a local checkout`); handler(level, log); } };
|
|
15
|
+
type Manifest = { version: string; dependencies?: Record<string, string>; devDependencies?: Record<string, string> };
|
|
16
|
+
|
|
17
|
+
/** The local checkouts `--dev` uses: every `@flanksource/*` dependency not already provided by this workspace. */
|
|
18
|
+
async function devPlugins(pkg: Manifest): Promise<Plugin[]> {
|
|
19
|
+
const external = Object.entries({ ...pkg.dependencies, ...pkg.devDependencies }).filter(([name, range]) => name.startsWith("@flanksource/") && !range.startsWith("workspace:")).map(([name]) => name);
|
|
20
|
+
const workspaces = findLocalWorkspaces({ workspaceRoot, names: external });
|
|
21
|
+
for (const name of external) console.log(workspaces.has(name) ? `--dev: ${name} → ${workspaces.get(name)}` : `--dev: ${name} has no local checkout; using the installed release`);
|
|
22
|
+
return [localWorkspacesPlugin(workspaces)];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function buildStatic(options: BuildStaticOptions = {}): Promise<void> {
|
|
26
|
+
const outDir = options.outDir ?? resolve(root, "dist/static");
|
|
27
|
+
const pkg = JSON.parse(await readFile(resolve(root, "package.json"), "utf8")) as Manifest;
|
|
28
|
+
const plugins = options.dev ? await devPlugins(pkg) : [];
|
|
29
|
+
await mkdir(outDir, { recursive: true });
|
|
30
|
+
await build({
|
|
31
|
+
...failOnUnresolved,
|
|
32
|
+
input: resolve(root, "src/sw/worker.ts"),
|
|
33
|
+
plugins,
|
|
34
|
+
resolve: { conditionNames: ["worker", "browser", "import", "default"] },
|
|
35
|
+
platform: "browser",
|
|
36
|
+
transform: { define: { __RUNTIME_VERSION__: JSON.stringify(options.version ?? pkg.version), "process.env.NODE_ENV": JSON.stringify("development"), "process.env": "{}" } },
|
|
37
|
+
output: { file: resolve(outDir, "sw.js"), format: "iife", sourcemap: true, codeSplitting: false },
|
|
38
|
+
});
|
|
39
|
+
await build({
|
|
40
|
+
...failOnUnresolved,
|
|
41
|
+
input: resolve(root, "src/frame/entry.ts"),
|
|
42
|
+
plugins,
|
|
43
|
+
external: ["./page-agent.js", EXPORT_COMPILER_URL, "react", "react-dom", "react-dom/client"],
|
|
44
|
+
platform: "browser",
|
|
45
|
+
transform: { define: { "process.env.NODE_ENV": JSON.stringify("development") } },
|
|
46
|
+
output: { file: resolve(outDir, "boot.js"), format: "es", sourcemap: true, codeSplitting: false },
|
|
47
|
+
});
|
|
48
|
+
await build({
|
|
49
|
+
...failOnUnresolved,
|
|
50
|
+
input: resolve(root, "src/frame/page-agent.ts"),
|
|
51
|
+
plugins,
|
|
52
|
+
external: ["/__runtime/editing.js", "react", "react-dom/client", "react/jsx-runtime", "react/jsx-dev-runtime", "@flanksource/clicky-ui/comments"],
|
|
53
|
+
platform: "browser",
|
|
54
|
+
transform: { jsx: { runtime: "automatic", development: true }, define: { "process.env.NODE_ENV": JSON.stringify("development") } },
|
|
55
|
+
output: { file: resolve(outDir, "page-agent.js"), format: "es", sourcemap: true, codeSplitting: false },
|
|
56
|
+
});
|
|
57
|
+
await build({
|
|
58
|
+
...failOnUnresolved,
|
|
59
|
+
input: resolve(root, "src/frame/export-compiler.ts"),
|
|
60
|
+
// The frame's CSP has no 'wasm-unsafe-eval', so the export compiler uses the lexer's asm.js build; the worker keeps WASM.
|
|
61
|
+
plugins: [...plugins, { name: "es-module-lexer-asm", resolveId(id, importer, extra) { return id === "es-module-lexer" ? this.resolve("es-module-lexer/js", importer, { ...extra, skipSelf: true }) : null; } }],
|
|
62
|
+
platform: "browser",
|
|
63
|
+
transform: { define: { "process.env.NODE_ENV": JSON.stringify("development"), "process.env": "{}" } },
|
|
64
|
+
output: { file: resolve(outDir, "export-compiler.js"), format: "es", sourcemap: true, codeSplitting: false },
|
|
65
|
+
});
|
|
66
|
+
await build({ ...failOnUnresolved, input: resolve(root, "src/frame/devtools-hook.ts"), plugins, platform: "browser", transform: { define: { "process.env.NODE_ENV": JSON.stringify("development") } }, output: { file: resolve(outDir, "devtools-hook.js"), format: "iife" } });
|
|
67
|
+
await writeFile(resolve(outDir, "bootstrap.html"), frameDocument().html);
|
|
68
|
+
await build({ input: resolve(root, "src/editing.ts"), external: ["react"], platform: "browser", output: { file: resolve(outDir, "editing.js"), format: "es" } });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (process.argv[1] && pathToFileURL(resolve(process.argv[1])).href === import.meta.url) {
|
|
72
|
+
const unknown = process.argv.slice(2).filter(arg => arg !== "--dev");
|
|
73
|
+
if (unknown.length) throw new Error(`build-static: unknown arguments ${unknown.join(" ")}; the only flag is --dev`);
|
|
74
|
+
await buildStatic({ dev: process.argv.includes("--dev") });
|
|
75
|
+
}
|
package/scripts/build.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./build-builder.ts";
|
|
2
|
+
import { buildStatic } from "./build-static.ts";
|
|
3
|
+
|
|
4
|
+
const unknown = process.argv.slice(2).filter(arg => arg !== "--dev");
|
|
5
|
+
if (unknown.length) throw new Error(`Unknown build arguments ${unknown.join(" ")}; the only flag is --dev`);
|
|
6
|
+
await buildStatic({ dev: process.argv.includes("--dev") });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { checkFragment, type Fragment } from "../src/build/index.ts";
|
|
4
|
+
|
|
5
|
+
const [libraryDir, basePath, ...extra] = process.argv.slice(2);
|
|
6
|
+
if (!libraryDir || extra.length) throw new Error("usage: check-fragment.ts <libraryDir> [base-fragment.json]");
|
|
7
|
+
const base = basePath ? JSON.parse(await readFile(resolve(basePath), "utf8")) as Fragment : undefined;
|
|
8
|
+
const failures = await checkFragment({ libraryDir: resolve(libraryDir), ...(base ? { base } : {}) });
|
|
9
|
+
if (failures.length) {
|
|
10
|
+
console.error(failures.join("\n"));
|
|
11
|
+
process.exitCode = 1;
|
|
12
|
+
} else console.log(`${libraryDir}: fragment checks passed`);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { mkdirSync, mkdtempSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { join, resolve } from "node:path";
|
|
3
|
+
import { afterEach, expect, it } from "vitest";
|
|
4
|
+
import { findLocalWorkspaces } from "./local-workspaces.ts";
|
|
5
|
+
|
|
6
|
+
const cleanup: string[] = [];
|
|
7
|
+
afterEach(() => { for (const dir of cleanup.splice(0)) rmSync(dir, { recursive: true, force: true }); });
|
|
8
|
+
|
|
9
|
+
/** A parent directory of sibling checkouts; `layout` maps each relative package directory to its package name. */
|
|
10
|
+
function siblings(layout: Record<string, string>): { parent: string; workspaceRoot: string } {
|
|
11
|
+
mkdirSync(resolve(".tmp"), { recursive: true });
|
|
12
|
+
const parent = mkdtempSync(resolve(".tmp/local-workspaces-")); cleanup.push(parent);
|
|
13
|
+
for (const [dir, name] of Object.entries(layout)) { mkdirSync(join(parent, dir), { recursive: true }); writeFileSync(join(parent, dir, "package.json"), JSON.stringify({ name })); }
|
|
14
|
+
return { parent, workspaceRoot: join(parent, "clicky-ui") };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
it("finds requested packages at a sibling's root and under its packages/, ignoring this workspace and dangling links", () => {
|
|
18
|
+
const { parent, workspaceRoot } = siblings({ "clicky-ui": "@acme/self", facet: "@acme/facet", tools: "tools", "tools/packages/grab": "@acme/grab", other: "@acme/unrequested" });
|
|
19
|
+
symlinkSync(join(parent, "missing"), join(parent, ".tmp"));
|
|
20
|
+
expect(findLocalWorkspaces({ workspaceRoot, names: ["@acme/facet", "@acme/grab", "@acme/self", "@acme/absent"] })).toEqual(new Map([["@acme/facet", join(parent, "facet")], ["@acme/grab", join(parent, "tools/packages/grab")]]));
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it("prefers the checkout named after the package when worktrees also declare it", () => {
|
|
24
|
+
const { parent, workspaceRoot } = siblings({ "clicky-ui": "@acme/self", facet: "@acme/facet", "facet-feature-branch": "@acme/facet" });
|
|
25
|
+
expect(findLocalWorkspaces({ workspaceRoot, names: ["@acme/facet"] })).toEqual(new Map([["@acme/facet", join(parent, "facet")]]));
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("fails when several checkouts declare a package and none is named after it", () => {
|
|
29
|
+
const { workspaceRoot } = siblings({ "clicky-ui": "@acme/self", "facet-a": "@acme/facet", "facet-b": "@acme/facet" });
|
|
30
|
+
expect(() => findLocalWorkspaces({ workspaceRoot, names: ["@acme/facet"] })).toThrow(/@acme\/facet: several local checkouts declare it.*keep one named facet/);
|
|
31
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
2
|
+
import { basename, dirname, join } from "node:path";
|
|
3
|
+
import type { Plugin } from "rolldown";
|
|
4
|
+
|
|
5
|
+
const packageName = (specifier: string) => specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0]!;
|
|
6
|
+
|
|
7
|
+
function manifestName(dir: string): string | undefined {
|
|
8
|
+
const file = join(dir, "package.json");
|
|
9
|
+
if (!existsSync(file)) return undefined;
|
|
10
|
+
return (JSON.parse(readFileSync(file, "utf8")) as { name?: string }).name;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function workspaceDirs(checkout: string): string[] {
|
|
14
|
+
const packages = join(checkout, "packages");
|
|
15
|
+
const nested = existsSync(packages) && statSync(packages).isDirectory() ? readdirSync(packages).map(name => join(packages, name)) : [];
|
|
16
|
+
return [checkout, ...nested];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Finds sibling checkouts of `workspaceRoot` (and their `packages/*`) that declare one of `names`. When several
|
|
21
|
+
* checkouts declare a package (worktrees), the directory named after the package wins; otherwise it fails loudly.
|
|
22
|
+
*/
|
|
23
|
+
export function findLocalWorkspaces(options: { workspaceRoot: string; names: string[] }): Map<string, string> {
|
|
24
|
+
const wanted = new Set(options.names);
|
|
25
|
+
const found = new Map<string, string[]>();
|
|
26
|
+
for (const entry of readdirSync(dirname(options.workspaceRoot))) {
|
|
27
|
+
const checkout = join(dirname(options.workspaceRoot), entry);
|
|
28
|
+
// existsSync is false for a dangling symlink, which is not a checkout.
|
|
29
|
+
if (checkout === options.workspaceRoot || !existsSync(checkout) || !statSync(checkout).isDirectory()) continue;
|
|
30
|
+
for (const dir of workspaceDirs(checkout)) {
|
|
31
|
+
const name = manifestName(dir);
|
|
32
|
+
if (name && wanted.has(name)) found.set(name, [...(found.get(name) ?? []), dir]);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return new Map([...found].map(([name, dirs]) => {
|
|
36
|
+
if (dirs.length === 1) return [name, dirs[0]!];
|
|
37
|
+
const canonical = dirs.filter(dir => basename(dir) === name.split("/").at(-1));
|
|
38
|
+
if (canonical.length !== 1) throw new Error(`${name}: several local checkouts declare it (${dirs.join(", ")}); keep one named ${name.split("/").at(-1)}`);
|
|
39
|
+
return [name, canonical[0]!];
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Resolves imports of each local package from its checkout, through the checkout's own package.json exports. */
|
|
44
|
+
export function localWorkspacesPlugin(workspaces: Map<string, string>): Plugin {
|
|
45
|
+
return {
|
|
46
|
+
name: "page-runtime-local-workspaces",
|
|
47
|
+
async resolveId(id, _importer, extra) {
|
|
48
|
+
const dir = id.startsWith(".") || id.startsWith("/") ? undefined : workspaces.get(packageName(id));
|
|
49
|
+
if (!dir) return null;
|
|
50
|
+
const resolved = await this.resolve(id, join(dir, "package.json"), { ...extra, skipSelf: true });
|
|
51
|
+
if (!resolved) throw new Error(`${id}: not exported by the local checkout ${dir}`);
|
|
52
|
+
return resolved;
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import { createServer } from "node:http";
|
|
3
|
+
import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
import { join, resolve } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
import { promisify } from "node:util";
|
|
8
|
+
import { expect, test } from "vitest";
|
|
9
|
+
|
|
10
|
+
const run = promisify(execFile);
|
|
11
|
+
test.each([false, true])("updates the builder manifest and CI outputs (first publish=%s)", async first => {
|
|
12
|
+
await mkdir(".tmp", { recursive: true });
|
|
13
|
+
const root = await mkdtemp(resolve(".tmp/release-version-"));
|
|
14
|
+
const name = "@example/runtime-builder";
|
|
15
|
+
const registry = createServer((_request, response) => {
|
|
16
|
+
response.setHeader("content-type", "application/json");
|
|
17
|
+
response.statusCode = first ? 404 : 200;
|
|
18
|
+
response.end(JSON.stringify(first ? { error: "Not found" } : { name, "dist-tags": { latest: "0.1.4" }, versions: { "0.1.3": { name, version: "0.1.3" }, "0.1.4": { name, version: "0.1.4" } } }));
|
|
19
|
+
});
|
|
20
|
+
try {
|
|
21
|
+
await new Promise<void>(done => registry.listen(0, "127.0.0.1", done));
|
|
22
|
+
const address = registry.address();
|
|
23
|
+
if (!address || typeof address === "string") throw new Error("Test registry did not bind a TCP port");
|
|
24
|
+
const manifest = join(root, "builder-package.json");
|
|
25
|
+
const output = join(root, "github-output");
|
|
26
|
+
const userConfig = join(root, "npmrc");
|
|
27
|
+
const original = { name, version: "0.1.0", dependencies: { "example-dependency": "1.0.0" } };
|
|
28
|
+
await writeFile(manifest, JSON.stringify(original));
|
|
29
|
+
await writeFile(userConfig, "");
|
|
30
|
+
await run(process.execPath, ["--import", createRequire(import.meta.url).resolve("tsx"), fileURLToPath(new URL("./release-version.ts", import.meta.url)), manifest, "page-runtime-build"], {
|
|
31
|
+
cwd: root,
|
|
32
|
+
env: { ...process.env, GITHUB_OUTPUT: output, npm_config_userconfig: userConfig, npm_config_registry: `http://127.0.0.1:${address.port}`, npm_config_update_notifier: "false" },
|
|
33
|
+
});
|
|
34
|
+
const version = first ? "0.1.0" : "0.1.5";
|
|
35
|
+
expect({ manifest: JSON.parse(await readFile(manifest, "utf8")), output: await readFile(output, "utf8") }).toEqual({ manifest: { ...original, version }, output: `version=${version}\ntag=page-runtime-build@${version}\n` });
|
|
36
|
+
} finally {
|
|
37
|
+
await new Promise<void>(done => registry.close(() => done()));
|
|
38
|
+
await rm(root, { recursive: true, force: true });
|
|
39
|
+
}
|
|
40
|
+
}, 30_000);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { expect, test } from "vitest";
|
|
2
|
+
import { nextReleaseVersion, readPublishedVersions } from "./release-version.ts";
|
|
3
|
+
|
|
4
|
+
test.each([
|
|
5
|
+
{ current: "0.1.0", published: [], expected: "0.1.0" },
|
|
6
|
+
{ current: "0.1.0", published: ["0.1.9", "0.1.10", "0.1.2"], expected: "0.1.11" },
|
|
7
|
+
{ current: "0.1.3", published: ["0.1.2", "0.2.0-beta.1"], expected: "0.1.3" },
|
|
8
|
+
])("selects $expected from registry history $published", ({ current, published, expected }) => {
|
|
9
|
+
expect(nextReleaseVersion({ current, published })).toBe(expected);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
test.each(["invalid", "0.1", "0.1.0-beta.1"])("rejects an invalid stable release version %s", current => {
|
|
13
|
+
expect(() => nextReleaseVersion({ current, published: [] })).toThrow(/version/i);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
test("allows first publication only after an explicit registry 404", () => {
|
|
17
|
+
expect(readPublishedVersions({ status: 1, stdout: JSON.stringify({ error: { code: "E404" } }), stderr: "Not found" })).toEqual([]);
|
|
18
|
+
for (const code of ["E401", "ENETWORK", "E500"]) {
|
|
19
|
+
expect(() => readPublishedVersions({ status: 1, stdout: JSON.stringify({ error: { code } }), stderr: code })).toThrow(code);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
test.each([{ stdout: '"0.1.0"', expected: ["0.1.0"] }, { stdout: '["0.1.0","0.1.1"]', expected: ["0.1.0", "0.1.1"] }])("reads the registry version response $stdout", ({ stdout, expected }) => {
|
|
24
|
+
expect(readPublishedVersions({ status: 0, stdout, stderr: "" })).toEqual(expected);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
test("rejects malformed registry responses", () => {
|
|
28
|
+
for (const stdout of ['{"error":{}}', '[1]', "invalid"]) expect(() => readPublishedVersions({ status: 0, stdout, stderr: "" })).toThrow();
|
|
29
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { appendFileSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
5
|
+
import { compareVersions } from "../src/sw/versions.ts";
|
|
6
|
+
|
|
7
|
+
export function nextReleaseVersion({ current, published }: { current: string; published: string[] }): string {
|
|
8
|
+
if (!/^\d+\.\d+\.\d+$/.test(current)) throw new Error(`Invalid stable release version ${current}`);
|
|
9
|
+
for (const version of [current, ...published]) compareVersions(version, version);
|
|
10
|
+
const latest = published.filter(version => /^\d+\.\d+\.\d+$/.test(version)).sort(compareVersions).at(-1);
|
|
11
|
+
if (!latest) return current;
|
|
12
|
+
const [major, minor, patch] = latest.split(".").map(Number);
|
|
13
|
+
return `${major}.${minor}.${patch! + 1}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function readPublishedVersions(result: { status: number | null; stdout: string; stderr: string }): string[] {
|
|
17
|
+
const response = JSON.parse(result.stdout) as string | string[] | { error?: { code?: string } };
|
|
18
|
+
if (result.status !== 0) {
|
|
19
|
+
if (typeof response === "object" && !Array.isArray(response) && response?.error?.code === "E404") return [];
|
|
20
|
+
throw new Error(`npm version lookup failed (${result.status}): ${result.stderr}`);
|
|
21
|
+
}
|
|
22
|
+
if (typeof response === "string") return [response];
|
|
23
|
+
if (Array.isArray(response) && response.every(version => typeof version === "string")) return response;
|
|
24
|
+
throw new Error("npm version lookup must return a version or an array of versions");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function prepareRelease(options: { manifestPath: string; tagPrefix: string; published: string[] }): { version: string; tag: string } {
|
|
28
|
+
if (!/^[a-z0-9][a-z0-9._-]*$/.test(options.tagPrefix)) throw new Error(`Invalid release tag prefix ${options.tagPrefix}`);
|
|
29
|
+
const manifest = JSON.parse(readFileSync(options.manifestPath, "utf8")) as { name: string; version: string };
|
|
30
|
+
if (!manifest.name) throw new Error(`${options.manifestPath} must declare a package name`);
|
|
31
|
+
const version = nextReleaseVersion({ current: manifest.version, published: options.published });
|
|
32
|
+
writeFileSync(options.manifestPath, `${JSON.stringify({ ...manifest, version }, null, 2)}\n`);
|
|
33
|
+
return { version, tag: `${options.tagPrefix}@${version}` };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (process.argv[1] && pathToFileURL(resolve(process.argv[1])).href === import.meta.url) {
|
|
37
|
+
const [manifestPath, tagPrefix] = process.argv.slice(2);
|
|
38
|
+
const output = process.env.GITHUB_OUTPUT;
|
|
39
|
+
if (!manifestPath || !tagPrefix || !output) throw new Error("Usage: release-version.ts <manifest> <tag-prefix>, with GITHUB_OUTPUT set by CI");
|
|
40
|
+
const manifest = JSON.parse(readFileSync(manifestPath, "utf8")) as { name: string };
|
|
41
|
+
if (!manifest.name) throw new Error(`${manifestPath} must declare a package name`);
|
|
42
|
+
const lookup = spawnSync("npm", ["view", manifest.name, "versions", "--json"], { encoding: "utf8" });
|
|
43
|
+
if (lookup.error) throw lookup.error;
|
|
44
|
+
const release = prepareRelease({ manifestPath, tagPrefix, published: readPublishedVersions(lookup) });
|
|
45
|
+
appendFileSync(output, `version=${release.version}\ntag=${release.tag}\n`);
|
|
46
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { runPackageBuild, publishPackage } from "../src/publication/index.ts";
|
|
2
|
+
|
|
3
|
+
const args = process.argv.slice(2);
|
|
4
|
+
if (args.length > 1 || (args[0] !== undefined && args[0] !== "--publish-only")) throw new Error("Usage: run-package-build.ts [--publish-only]");
|
|
5
|
+
const publication = args[0] === "--publish-only"
|
|
6
|
+
? await publishPackage({ libraryDir: process.cwd() })
|
|
7
|
+
: await runPackageBuild({ libraryDir: process.cwd(), command: "pnpm", args: ["run", "build:artifacts"] });
|
|
8
|
+
process.stdout.write(`Published ${publication.name}@${publication.version} build ${publication.build}\n`);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { parsePackageArguments } from "../src/dev/cli.ts";
|
|
2
|
+
import { servePackages } from "../src/dev/index.ts";
|
|
3
|
+
|
|
4
|
+
const local = await servePackages(parsePackageArguments(process.argv.slice(2)));
|
|
5
|
+
process.stdout.write(`Local package registry and origin: ${local.origin}\n`);
|
|
6
|
+
for (const signal of ["SIGINT", "SIGTERM"]) process.once(signal, () => {
|
|
7
|
+
void local.close().catch((error: unknown) => { process.stderr.write(`${String(error)}\n`); process.exitCode = 1; });
|
|
8
|
+
});
|
package/spikes/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Page runtime P0: spike summary
|
|
2
|
+
|
|
3
|
+
The go/no-go spikes for the browser-mode page runtime (plan: `/Users/moshe/.claude/plans/investigate-options-for-isolating-goofy-snowglobe.md`). Each spike lives in `spikes/<id>/`, runs with `pnpm --filter @flanksource/page-runtime spike <id>`, and records its method, measurements and verdict in its own `README.md` and `results.json`.
|
|
4
|
+
|
|
5
|
+
## Verdicts
|
|
6
|
+
|
|
7
|
+
| Spike | Verdict | Key measurements | Plan |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| react-runtime-set | go | one React instance and one renderer across clicky-ui, facet and page code, in both flavors; no hook or context errors | Decision 1 stands |
|
|
10
|
+
| closure-fragments | go | 20 pages, 0 unmapped imports, 0 unconverted CommonJS, integrity on every traced file; import map ≈104 KB per flavor | Decision 2 stands; P2 rewrite covers package files |
|
|
11
|
+
| sw-tenant-frame | go | worker controls the tenant frame and storage works in Chromium, Firefox and WebKit, same-site and separate-site | both deployments stay available |
|
|
12
|
+
| barrel-rewriting | go | desktop (40 ms, 10 Mbps): facet diagram cold 2.44 s / warm 64 ms, clicky-ui data page cold 1.90 s / warm 95 ms; ~90% fewer requests than without rewriting | Decision 6 stands; P9 stays inactive |
|
|
13
|
+
| tailwind-parity | go | 21 pages, 0 computed-style differences against facet's Tailwind v4 build; compile 13 ms, incremental rebuild p50 13.6 ms | runtime Tailwind (v4) as planned |
|
|
14
|
+
| compiler | go | 101 pages, 0 render differences against the current builds, 0 pages missing markers; p95 6.6 ms per module | markers move to a compile-time pass; MDX skips Sucrase |
|
|
15
|
+
| diagram-readiness | go | 2 diagram pages at 1920×1080 and 2560×1440: 0 unstable layouts, 0 re-measure loops; styles applied after mount settle into wrong geometry | P3 must build candidates before the first render |
|
|
16
|
+
| local-folder-link | go | cold 455 ms (127 linked modules), edit to visible p50 151 ms over 12 edits; one module recompiled per edit | P6 links source, as planned |
|
|
17
|
+
| origin-isolation | no-go | 216 probes in 3 browsers × 2 deployments; 9 got through (nested-frame egress everywhere, ordinary-cookie shadowing same-site) | P7 adds frame-src/form-action and `__Host-`-only host reads |
|
|
18
|
+
| frame-commenting | no-go | 27 picks, 3 without a source location (facet's heading, inside library code); 52 edits with 0 lost anchors; pins within 1 px; Chromium crop matched | P5 resolves owner metadata for library elements |
|
|
19
|
+
|
|
20
|
+
## Follow-ups on phase TODOs
|
|
21
|
+
|
|
22
|
+
- origin-isolation (no-go) → P7 TODO `55ed717c`, comment `76930b95`: frame-src/child-src/form-action CSP and egress coverage for frame loads; host reads only `__Host-` cookies or the deployment is separate-site.
|
|
23
|
+
- frame-commenting (no-go) → P5 TODO `e0120c64`, comment `14cb1c4b`: resolve picks inside library components to the owning page element; verify capture in Firefox and WebKit.
|
|
24
|
+
- diagram-readiness (go, with a P3 requirement) → P3 TODO `1fafeeb2`, comment `a1af041a`: candidates before the first render; brand examples wait for a published facet with `BrandBox`.
|
|
25
|
+
|
|
26
|
+
## Plan changes
|
|
27
|
+
|
|
28
|
+
### P1: library runtime sets
|
|
29
|
+
|
|
30
|
+
- facet should declare `sideEffects` in its package.json (barrel-rewriting): none of the modules kept whole for side effects is facet's, and with the declaration facet's diagram page drops from 174 to 22 requests (767 ms cold).
|
|
31
|
+
- Fragments carry URL remaps for ESM wrappers that import their own CommonJS build by relative path (closure-fragments), not only bare specifiers.
|
|
32
|
+
|
|
33
|
+
### P2: runtime core
|
|
34
|
+
|
|
35
|
+
- The canonical-URL rewrite must cover published package files as well as page code: 1247 extensionless relative imports in 10 packages name no file (closure-fragments). The fragment's integrity map is the file listing it resolves against.
|
|
36
|
+
- Compiler (compiler spike): Sucrase's development output gives `jsxDEV` a line but no column, so the `jsx-dev-runtime` shim cannot produce `file:line:col` for TS, TSX and JSX. The compiler writes `data-source` into each host JSX tag before Sucrase runs, using Sucrase's tokenizer (`sucrase/dist/parser`, an internal module; pin Sucrase and test it). MDX compiles straight to JavaScript with its own `jsxDEV` positions, so the shim stays for MDX, and Sucrase must not run after MDX (it would replace the `.mdx` positions with those of the generated JSX).
|
|
37
|
+
- The worker bundle must resolve `worker` exports first: a `browser` build can touch `document`, which a service worker lacks (compiler spike, decode-named-character-reference). JSON and CSS imports become modules in the worker itself, since a request the worker re-sends no longer reads as a script request.
|
|
38
|
+
|
|
39
|
+
### P3: page styles
|
|
40
|
+
|
|
41
|
+
- Build source candidates before the first render; this ordering is a correctness requirement, not an optimization (diagram-readiness). Diagram applies freeze the unstyled root width when CSS arrives after mount, so the settled layout is wrong (8 of LiveDiagram's and 31 of DataFlowDiagram's elements moved) and waiting longer does not repair it.
|
|
42
|
+
- Readiness = facet's native diagram/arrow signals ∧ fonts ∧ decoded images ∧ page hook ∧ observer quiescence, not mount alone.
|
|
43
|
+
- facet's stylesheet `@import`s Google Fonts (tailwind-parity, sw-tenant-frame): the profile must allow that origin in CSP and the egress allowlist, or the library ships the fonts. Readiness and snapshots must wait for `@import`ed stylesheets, which `document.fonts.ready` does not cover.
|
|
44
|
+
- The brand diagram examples need a published facet version exporting `BrandBox`/`BrandContainer`/`loadBrand` before they can be measured (recorded on P3).
|
|
45
|
+
|
|
46
|
+
### P5: commenting
|
|
47
|
+
|
|
48
|
+
- Elements rendered inside library components have no page source location: the picker must report the owning page element (the nearest `data-source` ancestor or the component's call site) with the library component as the owner (frame-commenting).
|
|
49
|
+
- Host-side screenshot crop is verified in Chromium only; Firefox and WebKit capture remains to be shown before relying on it there.
|
|
50
|
+
|
|
51
|
+
### P6: link channel
|
|
52
|
+
|
|
53
|
+
- Linking the checkout's source through a CORS static server meets the targets. The File System Access folder picker cannot be automated headlessly and needs a manual Chromium check. Import-graph changes in a linked library need its module metadata rebuilt.
|
|
54
|
+
- Open item: in the quiet verification run, the warm reload and the first two edits each took ≈3 s while every later edit took 100–150 ms; module fetch and compile were ≈1 ms each, so the time sits in the frame's render or a fixed wait (possibly a font-loading timeout). p50 is unaffected; P6 should find and remove it.
|
|
55
|
+
|
|
56
|
+
### P7: isolation hardening
|
|
57
|
+
|
|
58
|
+
- Add `frame-src`/`child-src` and `form-action` to the frame's CSP and cover frame loads in the egress allowlist: a nested frame reached a cross-site URL in all six browser/deployment combinations (origin-isolation).
|
|
59
|
+
- In the same-site deployment, tenants can shadow the host's ordinary cookies: the host must read only `__Host-` cookies (which held in every browser), or use the separate-site deployment.
|
|
60
|
+
- In the separate-site deployment, Firefox and WebKit key a tenant's storage by the embedding host's site (sw-tenant-frame): browser state (OPFS projects, locks, compiled caches) is per host there.
|
|
61
|
+
|
|
62
|
+
### Testing
|
|
63
|
+
|
|
64
|
+
- Browser tests that need a controlling service worker in Firefox must drive Mozilla's build through Playwright's WebDriver BiDi channel (`moz-firefox`); Playwright's bundled Firefox never lets a worker control a navigation (sw-tenant-frame).
|
|
65
|
+
- Computed-style parity must render each stylesheet in a fresh page: replacing a stylesheet in place changes Chrome's table auto-layout (tailwind-parity).
|
|
66
|
+
|
|
67
|
+
## Not covered
|
|
68
|
+
|
|
69
|
+
- Tailwind v3 parity (facet's current builds), print media, stock Safari (WebKit stands in), renderer-process isolation, and automated folder-picker links.
|
|
70
|
+
- Pages excluded because the published libraries cannot render them are listed in each spike's README (facet's brand diagrams, UberKitchenSink's missing `SiOpenai`, demos needing unreleased facet exports or props).
|