@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/src/dev/index.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { readFile, realpath } from "node:fs/promises";
|
|
2
|
+
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
|
|
3
|
+
import type { AddressInfo } from "node:net";
|
|
4
|
+
import { extname, resolve, sep } from "node:path";
|
|
5
|
+
import { createCatalogStore, type LocalPackage } from "./catalog.ts";
|
|
6
|
+
|
|
7
|
+
export type PackageOriginOptions = { packages: string[]; upstreamRegistry: string; upstreamOrigin: string; stateDir: string };
|
|
8
|
+
export type PackageHandler = (request: IncomingMessage, response: ServerResponse) => Promise<void>;
|
|
9
|
+
export const LOCAL_RELEASE_TIME = "2000-01-01T00:00:00.000Z";
|
|
10
|
+
|
|
11
|
+
type Served = { body: string | Uint8Array; type: string; status: number; cache: string };
|
|
12
|
+
const types: Record<string, string> = {
|
|
13
|
+
".js": "text/javascript", ".mjs": "text/javascript", ".cjs": "text/javascript",
|
|
14
|
+
".json": "application/json", ".map": "application/json", ".css": "text/css",
|
|
15
|
+
".html": "text/html", ".txt": "text/plain", ".md": "text/markdown",
|
|
16
|
+
".svg": "image/svg+xml", ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg",
|
|
17
|
+
".gif": "image/gif", ".webp": "image/webp", ".avif": "image/avif", ".ico": "image/x-icon",
|
|
18
|
+
".woff": "font/woff", ".woff2": "font/woff2", ".ttf": "font/ttf", ".otf": "font/otf", ".wasm": "application/wasm",
|
|
19
|
+
};
|
|
20
|
+
const textResponse = (status: number, body: string): Served => ({ status, body, type: "text/plain; charset=utf-8", cache: "no-store" });
|
|
21
|
+
|
|
22
|
+
function upstreamBase(value: string): string {
|
|
23
|
+
const url = new URL(value);
|
|
24
|
+
if (!["http:", "https:"].includes(url.protocol) || url.username || url.password || url.search || url.hash) throw new Error(`upstream must be an HTTP(S) URL without credentials, query or hash: ${value}`);
|
|
25
|
+
return url.href.replace(/\/$/, "");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async function localFile(local: LocalPackage, path: string): Promise<Served> {
|
|
29
|
+
if (!path || path.split(/[\\/]/).some((part) => part === "..") || path.includes("\0")) return textResponse(404, "Invalid local package file path");
|
|
30
|
+
try {
|
|
31
|
+
const file = await realpath(resolve(local.directory, path));
|
|
32
|
+
if (!file.startsWith(`${local.directory}${sep}`)) return textResponse(404, "File is outside the local package directory");
|
|
33
|
+
return { body: await readFile(file), status: 200, type: types[extname(file)] ?? "application/octet-stream", cache: "no-store" };
|
|
34
|
+
} catch (error) {
|
|
35
|
+
if (["ENOENT", "ENOTDIR", "EISDIR"].includes((error as NodeJS.ErrnoException).code ?? "")) return textResponse(404, `${local.manifest.name}@${local.manifest.version}: file not found: ${path}`);
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async function serveRequest(options: { url: string; method: string; locals: Map<string, LocalPackage>; registry: string; origin: string; immutable: boolean }): Promise<Served> {
|
|
41
|
+
const { url, method, locals, registry, origin } = options;
|
|
42
|
+
if (method === "OPTIONS") return textResponse(204, "");
|
|
43
|
+
if (!["GET", "HEAD"].includes(method)) return textResponse(405, "Only GET, HEAD and OPTIONS are supported");
|
|
44
|
+
let path: string;
|
|
45
|
+
try { path = decodeURIComponent(url.split("?")[0]!); }
|
|
46
|
+
catch { return textResponse(400, "Invalid URL encoding"); }
|
|
47
|
+
if (path === "/") return { status: 200, body: JSON.stringify({ packages: [...locals.keys()] }), type: "application/json", cache: "no-store" };
|
|
48
|
+
const match = path.match(/^\/((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+)(?:\/(.*))?)?$/);
|
|
49
|
+
if (!match) return textResponse(404, `Invalid package path: ${path}`);
|
|
50
|
+
const [, name, version, file] = match;
|
|
51
|
+
const local = locals.get(name!);
|
|
52
|
+
if (local) {
|
|
53
|
+
const manifest = local.manifest;
|
|
54
|
+
if (!version) return { status: 200, body: JSON.stringify({ name, versions: { [manifest.version]: manifest }, time: { [manifest.version]: LOCAL_RELEASE_TIME }, "dist-tags": { latest: manifest.version } }), type: "application/json", cache: options.immutable ? "public, max-age=31536000, immutable" : "no-store" };
|
|
55
|
+
if (version !== manifest.version) return textResponse(404, `Requested ${name}@${version}; local package is ${name}@${manifest.version}`);
|
|
56
|
+
const served = await localFile(local, file ?? "");
|
|
57
|
+
if (options.immutable && served.status === 200) served.cache = "public, max-age=31536000, immutable";
|
|
58
|
+
return served;
|
|
59
|
+
}
|
|
60
|
+
const target = `${version ? origin : registry}${url}`;
|
|
61
|
+
try {
|
|
62
|
+
const response = await fetch(target, { method, signal: AbortSignal.timeout(30_000) });
|
|
63
|
+
return { status: response.status, body: new Uint8Array(await response.arrayBuffer()), type: response.headers.get("content-type") ?? "application/octet-stream", cache: response.headers.get("cache-control") ?? "no-store" };
|
|
64
|
+
} catch (error) {
|
|
65
|
+
return textResponse(502, `Proxy ${target}: ${error instanceof Error ? error.message : String(error)}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export async function createPackageHandler(options: PackageOriginOptions) {
|
|
70
|
+
const registry = upstreamBase(options.upstreamRegistry);
|
|
71
|
+
const origin = upstreamBase(options.upstreamOrigin);
|
|
72
|
+
if (!options.packages.length) throw new Error("At least one local package directory is required");
|
|
73
|
+
const store = await createCatalogStore(options);
|
|
74
|
+
const handle: PackageHandler = async (request, response) => {
|
|
75
|
+
response.setHeader("access-control-allow-origin", "*");
|
|
76
|
+
response.setHeader("access-control-allow-methods", "GET, HEAD, OPTIONS");
|
|
77
|
+
response.setHeader("access-control-allow-headers", "*");
|
|
78
|
+
try {
|
|
79
|
+
const raw = request.url ?? "/";
|
|
80
|
+
const generation = raw.match(/^\/_generations\/([^/]+)(\/.*)$/);
|
|
81
|
+
const selected = await store.get(generation?.[1]);
|
|
82
|
+
const url = generation?.[2] ?? raw;
|
|
83
|
+
const served = ["GET", "HEAD"].includes(request.method ?? "GET") && url.split("?")[0] === "/__catalog.json"
|
|
84
|
+
? { status: 200, body: JSON.stringify(selected.catalog), type: "application/json", cache: generation ? "public, max-age=31536000, immutable" : "no-store" }
|
|
85
|
+
: await serveRequest({ url, method: request.method ?? "GET", locals: selected.locals, registry, origin, immutable: Boolean(generation) });
|
|
86
|
+
response.writeHead(served.status, {
|
|
87
|
+
"content-type": served.type,
|
|
88
|
+
"cache-control": served.cache,
|
|
89
|
+
...(served.status === 204 || served.status === 304 ? {} : { "content-length": typeof served.body === "string" ? Buffer.byteLength(served.body) : served.body.byteLength }),
|
|
90
|
+
"timing-allow-origin": "*",
|
|
91
|
+
"access-control-expose-headers": "content-length, content-encoding, server-timing",
|
|
92
|
+
});
|
|
93
|
+
response.end(request.method === "HEAD" ? undefined : served.body);
|
|
94
|
+
} catch (error) {
|
|
95
|
+
response.writeHead((error as NodeJS.ErrnoException).code === "ENOENT" ? 404 : 500, { "content-type": "text/plain; charset=utf-8", "cache-control": "no-store" });
|
|
96
|
+
response.end(error instanceof Error ? error.message : String(error));
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return { handle, current: store.current, subscribe: store.subscribe, close: store.close };
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export async function servePackages(options: PackageOriginOptions & { port: number }): Promise<{ origin: string; close: () => Promise<void> }> {
|
|
103
|
+
if (!Number.isInteger(options.port) || options.port < 0 || options.port > 65535) throw new Error(`Invalid port: ${options.port}`);
|
|
104
|
+
const handler = await createPackageHandler(options);
|
|
105
|
+
const server = createServer((request, response) => { void handler.handle(request, response); });
|
|
106
|
+
await new Promise<void>((done, fail) => { server.once("error", fail); server.listen(options.port, "127.0.0.1", done); });
|
|
107
|
+
return {
|
|
108
|
+
origin: `http://127.0.0.1:${(server.address() as AddressInfo).port}`,
|
|
109
|
+
close: () => new Promise<void>((done, fail) => {
|
|
110
|
+
handler.close();
|
|
111
|
+
server.closeAllConnections();
|
|
112
|
+
server.close((error) => error ? fail(error) : done());
|
|
113
|
+
}),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { mkdir, mkdtemp, rm, symlink, writeFile } from "node:fs/promises";
|
|
2
|
+
import { createServer } from "node:http";
|
|
3
|
+
import type { AddressInfo } from "node:net";
|
|
4
|
+
import { resolve } from "node:path";
|
|
5
|
+
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
6
|
+
import { LOCAL_RELEASE_TIME, servePackages } from "./index.ts";
|
|
7
|
+
import { publishPackage } from "../publication/index.ts";
|
|
8
|
+
|
|
9
|
+
const manifest = { name: "@acme/ui", version: "1.2.3", type: "module", files: ["dist"], exports: { ".": "./dist/index.js" }, dependencies: { helper: "^2.0.0" } };
|
|
10
|
+
const files = { "dist/index.js": "export const answer = 42;", "dist/styles.css": "body { color: red; }", "dist/logo.svg": '<svg xmlns="http://www.w3.org/2000/svg"/>', "dist/font.woff2": "font bytes" };
|
|
11
|
+
let root: string;
|
|
12
|
+
let origin: string;
|
|
13
|
+
let requests: string[];
|
|
14
|
+
let close: () => Promise<void>;
|
|
15
|
+
let closeUpstream: () => Promise<void>;
|
|
16
|
+
|
|
17
|
+
beforeEach(async () => {
|
|
18
|
+
await mkdir(resolve(".tmp/K-local-origin"), { recursive: true });
|
|
19
|
+
root = await mkdtemp(resolve(".tmp/K-local-origin/package-"));
|
|
20
|
+
await writeFile(resolve(root, "package.json"), JSON.stringify(manifest));
|
|
21
|
+
for (const [path, contents] of Object.entries(files)) {
|
|
22
|
+
await mkdir(resolve(root, path, ".."), { recursive: true });
|
|
23
|
+
await writeFile(resolve(root, path), contents);
|
|
24
|
+
}
|
|
25
|
+
requests = [];
|
|
26
|
+
await mkdir(resolve(root, ".cache"));
|
|
27
|
+
await symlink(".cache", resolve(root, ".tmp"));
|
|
28
|
+
await publishPackage({ libraryDir: root });
|
|
29
|
+
const upstream = createServer((req, res) => {
|
|
30
|
+
requests.push(req.url!);
|
|
31
|
+
res.writeHead(req.url!.includes("missing") ? 404 : 200, { "content-type": "application/json", "cache-control": "public, max-age=60" });
|
|
32
|
+
res.end(JSON.stringify({ path: req.url }));
|
|
33
|
+
});
|
|
34
|
+
await new Promise<void>((done) => upstream.listen(0, "127.0.0.1", done));
|
|
35
|
+
closeUpstream = () => new Promise<void>((done, fail) => { upstream.closeAllConnections(); upstream.close((error) => error ? fail(error) : done()); });
|
|
36
|
+
const upstreamUrl = `http://127.0.0.1:${(upstream.address() as AddressInfo).port}`;
|
|
37
|
+
const local = await servePackages({ packages: [root], stateDir: resolve(root, ".tmp/origin"), port: 0, upstreamRegistry: `${upstreamUrl}/registry`, upstreamOrigin: `${upstreamUrl}/origin` });
|
|
38
|
+
origin = local.origin;
|
|
39
|
+
close = local.close;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
afterEach(async () => {
|
|
43
|
+
if (close) await close();
|
|
44
|
+
if (closeUpstream) await closeUpstream();
|
|
45
|
+
await rm(root, { recursive: true, force: true });
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
describe("workspace package origin", () => {
|
|
49
|
+
it.each(["/@acme%2Fui", "/%40acme%2Fui", "/@acme/ui"])("serves real registry metadata at %s with an explicit old release date", async (path) => {
|
|
50
|
+
const response = await fetch(`${origin}${path}`);
|
|
51
|
+
expect(await response.json()).toEqual({ name: manifest.name, versions: { "1.2.3": manifest }, time: { "1.2.3": "2000-01-01T00:00:00.000Z" }, "dist-tags": { latest: "1.2.3" } });
|
|
52
|
+
expect(LOCAL_RELEASE_TIME).toBe("2000-01-01T00:00:00.000Z");
|
|
53
|
+
expect(response.headers.get("access-control-allow-origin")).toBe("*");
|
|
54
|
+
expect(response.headers.get("cache-control")).toBe("no-store");
|
|
55
|
+
expect(requests).toEqual([]);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it.each([
|
|
59
|
+
["dist/index.js", "text/javascript"],
|
|
60
|
+
["dist/styles.css", "text/css"], ["dist/logo.svg", "image/svg+xml"], ["dist/font.woff2", "font/woff2"],
|
|
61
|
+
])("maps %s to unchanged local bytes with its content type", async (path, type) => {
|
|
62
|
+
const response = await fetch(`${origin}/@acme/ui@1.2.3/${path}`);
|
|
63
|
+
expect(response.status).toBe(200);
|
|
64
|
+
expect(response.headers.get("content-type")).toContain(type);
|
|
65
|
+
expect(response.headers.get("cache-control")).toBe("no-store");
|
|
66
|
+
expect(await response.text()).toBe(files[path as keyof typeof files]);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("serves complete immutable generations during rebuilds and after an origin restart", async () => {
|
|
70
|
+
const first = await (await fetch(`${origin}/__catalog.json`)).json();
|
|
71
|
+
const pinned = `${origin}/_generations/${first.revision}`;
|
|
72
|
+
await rm(resolve(root, "dist"), { recursive: true });
|
|
73
|
+
expect(await (await fetch(`${pinned}/@acme/ui@1.2.3/dist/index.js`)).text()).toBe(files["dist/index.js"]);
|
|
74
|
+
await mkdir(resolve(root, "dist"));
|
|
75
|
+
await writeFile(resolve(root, "dist/index.js"), "export const answer = 43;");
|
|
76
|
+
await writeFile(resolve(root, "package.json"), JSON.stringify({ ...manifest, description: "rebuilt" }));
|
|
77
|
+
expect(await (await fetch(`${origin}/@acme/ui@1.2.3/dist/index.js`)).text()).toBe(files["dist/index.js"]);
|
|
78
|
+
await publishPackage({ libraryDir: root });
|
|
79
|
+
await expect.poll(async () => (await (await fetch(`${origin}/__catalog.json`)).json()).revision).not.toBe(first.revision);
|
|
80
|
+
expect(await (await fetch(`${origin}/@acme/ui@1.2.3/dist/index.js`)).text()).toBe("export const answer = 43;");
|
|
81
|
+
expect(await (await fetch(`${origin}/@acme/ui`)).json()).toMatchObject({ versions: { "1.2.3": { description: "rebuilt" } } });
|
|
82
|
+
const restarted = await servePackages({ packages: [root], stateDir: resolve(root, ".tmp/origin"), port: 0, upstreamRegistry: origin, upstreamOrigin: origin });
|
|
83
|
+
try { expect(await (await fetch(`${restarted.origin}/_generations/${first.revision}/@acme/ui@1.2.3/dist/index.js`)).text()).toBe(files["dist/index.js"]); }
|
|
84
|
+
finally { await restarted.close(); }
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it("rejects a different local version without contacting upstream", async () => {
|
|
88
|
+
const response = await fetch(`${origin}/@acme/ui@9.0.0/dist/index.js`);
|
|
89
|
+
expect(response.status).toBe(404);
|
|
90
|
+
expect(await response.text()).toContain("@acme/ui@1.2.3");
|
|
91
|
+
expect(response.headers.get("access-control-allow-origin")).toBe("*");
|
|
92
|
+
expect(requests).toEqual([]);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it.each(["/helper", "/@acme%2Fhelper", "/helper@2.0.0/index.js?raw", "/@acme/helper@2.0.0/?meta", "/missing@1.0.0/index.js"])("proxies %s to the corresponding upstream preserving status, bytes and query", async (path) => {
|
|
96
|
+
const prefix = path.includes("@2.0.0") || path.includes("@1.0.0") ? "/origin" : "/registry";
|
|
97
|
+
const response = await fetch(`${origin}${path}`);
|
|
98
|
+
expect(response.status).toBe(path.includes("missing") ? 404 : 200);
|
|
99
|
+
expect(await response.json()).toEqual({ path: `${prefix}${path}` });
|
|
100
|
+
expect(response.headers.get("access-control-allow-origin")).toBe("*");
|
|
101
|
+
expect(response.headers.get("content-type")).toBe("application/json");
|
|
102
|
+
expect(requests).toEqual([`${prefix}${path}`]);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it.each([
|
|
106
|
+
["text module", "/@acme/ui@1.2.3/dist/index.js", "GET", Buffer.byteLength(files["dist/index.js"])],
|
|
107
|
+
["binary asset", "/@acme/ui@1.2.3/dist/font.woff2", "GET", Buffer.byteLength(files["dist/font.woff2"])],
|
|
108
|
+
["proxied response", "/helper", "GET", Buffer.byteLength(JSON.stringify({ path: "/registry/helper" }))],
|
|
109
|
+
["HEAD request", "/@acme/ui@1.2.3/dist/index.js", "HEAD", Buffer.byteLength(files["dist/index.js"])],
|
|
110
|
+
])("reports the served byte count and exposes timing headers for a %s", async (_kind, path, method, bytes) => {
|
|
111
|
+
const response = await fetch(`${origin}${path}`, { method });
|
|
112
|
+
expect({
|
|
113
|
+
length: response.headers.get("content-length"),
|
|
114
|
+
timing: response.headers.get("timing-allow-origin"),
|
|
115
|
+
exposed: response.headers.get("access-control-expose-headers"),
|
|
116
|
+
}).toEqual({ length: String(bytes), timing: "*", exposed: "content-length, content-encoding, server-timing" });
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
it("rejects traversal and symlink escapes and never proxies missing local files", async () => {
|
|
120
|
+
await symlink(resolve("package.json"), resolve(root, "dist/outside"));
|
|
121
|
+
for (const path of ["dist/%2e%2e%2f%2e%2e%2fsecret", "dist/outside", "missing.js"]) {
|
|
122
|
+
const response = await fetch(`${origin}/@acme/ui@1.2.3/${path}`);
|
|
123
|
+
expect(response.status).toBe(404);
|
|
124
|
+
expect(response.headers.get("access-control-allow-origin")).toBe("*");
|
|
125
|
+
}
|
|
126
|
+
expect(requests).toEqual([]);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it("answers preflights and HEAD, and rejects writes with CORS", async () => {
|
|
130
|
+
const preflight = await fetch(origin, { method: "OPTIONS" });
|
|
131
|
+
expect(preflight.status).toBe(204);
|
|
132
|
+
expect(preflight.headers.get("access-control-allow-methods")).toBe("GET, HEAD, OPTIONS");
|
|
133
|
+
const head = await fetch(`${origin}/@acme/ui@1.2.3/dist/index.js`, { method: "HEAD" });
|
|
134
|
+
expect(head.status).toBe(200);
|
|
135
|
+
expect(await head.text()).toBe("");
|
|
136
|
+
const post = await fetch(origin, { method: "POST" });
|
|
137
|
+
expect(post.status).toBe(405);
|
|
138
|
+
expect(post.headers.get("access-control-allow-origin")).toBe("*");
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
it("fails startup for duplicate package names or invalid configuration", async () => {
|
|
142
|
+
const options = { packages: [root, root], stateDir: resolve(root, ".tmp/origin"), port: 0, upstreamRegistry: origin, upstreamOrigin: origin };
|
|
143
|
+
await expect(servePackages(options)).rejects.toThrow(/duplicate.*@acme\/ui/i);
|
|
144
|
+
await expect(servePackages({ ...options, packages: [root], port: -1 })).rejects.toThrow(/port/i);
|
|
145
|
+
await expect(servePackages({ ...options, packages: [root], upstreamOrigin: "file:///etc" })).rejects.toThrow(/https?/i);
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it("supports an unscoped published package and ignores unpublished identity changes", async () => {
|
|
149
|
+
await writeFile(resolve(root, "package.json"), JSON.stringify({ ...manifest, name: "widget" }));
|
|
150
|
+
await publishPackage({ libraryDir: root });
|
|
151
|
+
const local = await servePackages({ packages: [root], stateDir: resolve(root, ".tmp/widget-origin"), port: 0, upstreamRegistry: origin, upstreamOrigin: origin });
|
|
152
|
+
try {
|
|
153
|
+
expect(await (await fetch(`${local.origin}/widget`)).json()).toMatchObject({ name: "widget", "dist-tags": { latest: manifest.version } });
|
|
154
|
+
expect(await (await fetch(`${local.origin}/widget@1.2.3/dist/index.js`)).text()).toBe(files["dist/index.js"]);
|
|
155
|
+
await writeFile(resolve(root, "package.json"), JSON.stringify({ ...manifest, name: "widget", version: "2.0.0" }));
|
|
156
|
+
const changed = await fetch(`${local.origin}/widget`);
|
|
157
|
+
expect(changed.status).toBe(200);
|
|
158
|
+
expect(await changed.json()).toMatchObject({ name: "widget", "dist-tags": { latest: "1.2.3" } });
|
|
159
|
+
expect(changed.headers.get("access-control-allow-origin")).toBe("*");
|
|
160
|
+
} finally { await local.close(); }
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it("surfaces proxy transport failures and malformed URLs with CORS", async () => {
|
|
164
|
+
const unavailable = await servePackages({ packages: [root], stateDir: resolve(root, ".tmp/origin"), port: 0, upstreamRegistry: "http://127.0.0.1:0/registry", upstreamOrigin: origin });
|
|
165
|
+
try {
|
|
166
|
+
const response = await fetch(`${unavailable.origin}/helper`);
|
|
167
|
+
expect(response.status).toBe(502);
|
|
168
|
+
expect(await response.text()).toContain("/registry/helper");
|
|
169
|
+
expect(response.headers.get("access-control-allow-origin")).toBe("*");
|
|
170
|
+
} finally { await unavailable.close(); }
|
|
171
|
+
const malformed = await fetch(`${origin}/%zz`);
|
|
172
|
+
expect(malformed.status).toBe(400);
|
|
173
|
+
expect(malformed.headers.get("access-control-allow-origin")).toBe("*");
|
|
174
|
+
});
|
|
175
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { act, createElement, useState } from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import { expect, it } from "vitest";
|
|
5
|
+
import { editableElement, EditingScope, setRemoved } from "./editing";
|
|
6
|
+
|
|
7
|
+
it("removes only the selected boundary and can restore it after a failed write", async () => {
|
|
8
|
+
const container = document.createElement("div");
|
|
9
|
+
document.body.append(container);
|
|
10
|
+
const root = createRoot(container);
|
|
11
|
+
function Counter() { const [count, setCount] = useState(0); return createElement("button", { onClick: () => setCount(count + 1) }, count); }
|
|
12
|
+
await act(() => root.render(createElement("main", null, editableElement(createElement("article", { "data-review-id": "delete-me" }, "Target")), createElement(Counter))));
|
|
13
|
+
await act(() => container.querySelector("button")!.click());
|
|
14
|
+
await act(() => setRemoved("review:delete-me", true));
|
|
15
|
+
expect(container.textContent).toBe("1");
|
|
16
|
+
await act(() => setRemoved("review:delete-me", false));
|
|
17
|
+
expect(container.textContent).toBe("Target1");
|
|
18
|
+
await act(() => root.unmount());
|
|
19
|
+
container.remove();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it("keeps review deletion scoped to the owning page when IDs are reused", async () => {
|
|
23
|
+
const container = document.createElement("div");
|
|
24
|
+
const root = createRoot(container);
|
|
25
|
+
const pages = ["first", "second"].map(scope => createElement(EditingScope, { scope, key: scope, children: editableElement(createElement("article", { "data-review-id": "summary" }, scope)) }));
|
|
26
|
+
await act(() => root.render(pages));
|
|
27
|
+
await act(() => setRemoved("review:first:summary", true));
|
|
28
|
+
expect(container.textContent).toBe("second");
|
|
29
|
+
await act(() => setRemoved("review:first:summary", false));
|
|
30
|
+
await act(() => root.unmount());
|
|
31
|
+
});
|
package/src/editing.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createContext, createElement, useContext, useSyncExternalStore, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
const scope = globalThis as typeof globalThis & { __pageEditing?: { removed: Set<string>; listeners: Set<() => void> } };
|
|
4
|
+
const { removed, listeners } = scope.__pageEditing ??= { removed: new Set<string>(), listeners: new Set<() => void>() };
|
|
5
|
+
const subscribe = (listener: () => void) => { listeners.add(listener); return () => { listeners.delete(listener); }; };
|
|
6
|
+
|
|
7
|
+
const reviewScope = createContext("");
|
|
8
|
+
export function EditingScope({ scope, children }: { scope: string; children: ReactNode }) { return createElement(reviewScope.Provider, { value: scope }, children); }
|
|
9
|
+
|
|
10
|
+
export function setRemoved(identity: string, value: boolean): void {
|
|
11
|
+
if (value) removed.add(identity); else removed.delete(identity);
|
|
12
|
+
for (const listener of listeners) listener();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function EditableBoundary({ identities, children }: { identities: string[]; children: ReactNode }) {
|
|
16
|
+
const scope = useContext(reviewScope);
|
|
17
|
+
return useSyncExternalStore(subscribe, () => identities.some(identity => removed.has(scope && identity.startsWith("review:") ? `review:${scope}:${identity.slice(7)}` : identity)), () => false) ? null : children;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function editableElement(element: ReactElement<Record<string, unknown>>): ReactElement {
|
|
21
|
+
const review = element.props["data-review-id"];
|
|
22
|
+
const source = element.props["data-editable-source"] ?? element.props["data-source"];
|
|
23
|
+
const identities = [...(typeof review === "string" ? [`review:${review}`] : []), ...(typeof source === "string" && source.includes("#") ? [`source:${source}`] : [])];
|
|
24
|
+
return identities.length ? createElement(EditableBoundary, { identities, key: element.key, children: element }) : element;
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
import { afterAll, beforeAll, expect, it } from "vitest";
|
|
4
|
+
import { startRuntimeTestServer } from "./testing/server.ts";
|
|
5
|
+
import type { ActivityMessage } from "../activity-schema.ts";
|
|
6
|
+
|
|
7
|
+
const exec = promisify(execFile);
|
|
8
|
+
const session = `runtime-activity-${process.pid}`;
|
|
9
|
+
let server: Awaited<ReturnType<typeof startRuntimeTestServer>>;
|
|
10
|
+
let opened = false;
|
|
11
|
+
async function browser(...args: string[]) {
|
|
12
|
+
return (await exec("agent-browser", ["--engine", "chrome", "--session", session, ...args], { timeout: 45000, maxBuffer: 4_000_000 })).stdout.trim();
|
|
13
|
+
}
|
|
14
|
+
beforeAll(async () => { server = await startRuntimeTestServer(); });
|
|
15
|
+
afterAll(async () => { try { if (opened) await browser("close"); } finally { await server?.close(); } });
|
|
16
|
+
|
|
17
|
+
it("reports real page source, generated import map, npm network then cache, and boot phases ending in ready", async () => {
|
|
18
|
+
await browser("open", `${server.hostOrigin}/?case=ready`); opened = true;
|
|
19
|
+
await browser("wait", "--fn", 'document.title === "CASE-DONE" && document.querySelector("#activity").textContent.includes("ready") && JSON.parse(document.querySelector("#activity").textContent).some(m => m.records.some(r => r.kind === "frame"))');
|
|
20
|
+
const cold = JSON.parse(await browser("get", "text", "#activity")) as ActivityMessage[];
|
|
21
|
+
const result = JSON.parse(await browser("get", "text", "#result")) as { errors: Array<{ phase: string; message: string }> };
|
|
22
|
+
if (result.errors.length) throw new Error(JSON.stringify(result.errors));
|
|
23
|
+
const records = cold.flatMap((message) => message.records);
|
|
24
|
+
expect(records.find((record) => record.kind === "frame")?.generated).toContain("import map");
|
|
25
|
+
expect(records.find((record) => record.kind === "src" && record.url.includes("report.tsx"))).toMatchObject({ source: "compiled", status: 200 });
|
|
26
|
+
expect(records.find((record) => record.kind === "npm" && record.source === "network")).toMatchObject({ origin: expect.stringContaining("/packages/"), decodedBytes: expect.any(Number), headers: { "server-timing": expect.stringContaining("integrity;dur=") } });
|
|
27
|
+
expect(cold.flatMap((message) => message.timeline).map((mark) => mark.phase)).toEqual(expect.arrayContaining(["controlled", "libraries", "module", "styles", "agent", "render", "ready"]));
|
|
28
|
+
const load = cold.at(-1)!.load;
|
|
29
|
+
await browser("click", "#reload");
|
|
30
|
+
await browser("wait", "--fn", `JSON.parse(document.querySelector("#activity").textContent).some(m => m.load !== ${JSON.stringify(load)} && m.timeline.some(t => t.phase === "ready"))`);
|
|
31
|
+
const warm = (JSON.parse(await browser("get", "text", "#activity")) as ActivityMessage[]).filter((message) => message.load !== load);
|
|
32
|
+
expect(warm.flatMap((message) => message.records).some((record) => record.kind === "npm" && record.source === "cache" && record.transferredBytes === 0)).toBe(true);
|
|
33
|
+
expect(warm.flatMap((message) => message.timeline).at(-1)?.phase).toBe("ready");
|
|
34
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { afterEach, expect, it, vi } from "vitest";
|
|
3
|
+
import { createFrameActivity } from "./activity.ts";
|
|
4
|
+
import { createRequestActivity } from "../sw/activity.ts";
|
|
5
|
+
import type { ActivityMessage } from "../activity-schema.ts";
|
|
6
|
+
|
|
7
|
+
afterEach(() => { vi.useRealTimers(); vi.unstubAllGlobals(); });
|
|
8
|
+
|
|
9
|
+
it("batches worker records with frame diagnostics without dropping records or exceeding the bridge bound", () => {
|
|
10
|
+
vi.useFakeTimers();
|
|
11
|
+
const controller = {}; const addEventListener = vi.fn();
|
|
12
|
+
vi.stubGlobal("navigator", { serviceWorker: { controller, addEventListener, removeEventListener: vi.fn() } });
|
|
13
|
+
const send = vi.fn(); const error = vi.fn();
|
|
14
|
+
const activity = createFrameActivity({ send, error });
|
|
15
|
+
const receive = addEventListener.mock.calls[0]![1] as (event: MessageEvent) => void;
|
|
16
|
+
const records = Array.from({ length: 33 }, () => createRequestActivity("https://runtime.example/src/report.tsx"));
|
|
17
|
+
for (const batch of [records.slice(0, 32), records.slice(32)]) receive({ source: controller, data: { type: "activity", load: activity.load, navigationStart: activity.navigationStart, records: batch, timeline: [], tailwind: [] } } as MessageEvent);
|
|
18
|
+
activity.tailwind({ kind: "candidates", startMs: 0, durationMs: 1, candidates: 2, cssBytes: 3, cacheHit: false });
|
|
19
|
+
expect(send).not.toHaveBeenCalled();
|
|
20
|
+
vi.advanceTimersByTime(40);
|
|
21
|
+
const messages = send.mock.calls.map(([message]) => message as ActivityMessage);
|
|
22
|
+
expect(messages.map((message) => message.records.length)).toEqual([32, 1]);
|
|
23
|
+
expect(messages.flatMap((message) => message.records)).toEqual(records);
|
|
24
|
+
expect(messages.map((message) => message.tailwind.length)).toEqual([1, 0]);
|
|
25
|
+
expect(error).not.toHaveBeenCalled();
|
|
26
|
+
activity.stop();
|
|
27
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { FrameConfig, FrameMessage } from "../schema.ts";
|
|
2
|
+
import type { ActivityMessage, RuntimeResolution, TailwindActivity, WorkerActivity } from "../activity-schema.ts";
|
|
3
|
+
import { validateActivity } from "../activity-schema.ts";
|
|
4
|
+
|
|
5
|
+
export function runtimeResolution(options: { config: FrameConfig; importMap: string }): RuntimeResolution {
|
|
6
|
+
const { config } = options;
|
|
7
|
+
const baseNames = ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime", "react-dom/client", "scheduler", "@tanstack/react-query", "jotai"];
|
|
8
|
+
const base = Object.fromEntries(baseNames.flatMap((name) => config.lock.map.imports[name] ? [[name, config.lock.map.imports[name]!]] : []));
|
|
9
|
+
const react = /\/npm\/(?:react|@flanksource\/clicky-ui)@([^/]+)/.exec(config.lock.map.imports.react ?? "");
|
|
10
|
+
const versions = { ...config.lock.versions };
|
|
11
|
+
// Converted React lives inside clicky-ui's runtime set; report React's actual runtime version separately in boot.
|
|
12
|
+
if (react && config.lock.map.imports.react?.startsWith("/npm/react@")) versions.react = react[1]!;
|
|
13
|
+
return { versions, base, managed: Object.keys(config.profile.managed), importMapBytes: new TextEncoder().encode(options.importMap).byteLength, scopes: Object.keys(config.lock.map.scopes).length };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function createFrameActivity(options: { send: (message: FrameMessage) => void; error: (error: Error) => void }) {
|
|
17
|
+
const load = crypto.randomUUID(); const navigationStart = performance.timeOrigin;
|
|
18
|
+
let runtime: RuntimeResolution | undefined;
|
|
19
|
+
let builds: TailwindActivity[] = [];
|
|
20
|
+
let records: WorkerActivity[] = [];
|
|
21
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
22
|
+
const snapshot = (): ActivityMessage => ({ type: "activity", load, navigationStart, records: [], timeline: performance.getEntriesByType("mark").filter((mark) => mark.name.startsWith("page-runtime:")).slice(-64).map((mark) => ({ phase: mark.name.slice(13), atMs: mark.startTime })), tailwind: builds.splice(0, 32), ...(runtime ? { runtime } : {}) });
|
|
23
|
+
const flush = () => {
|
|
24
|
+
clearTimeout(timer); timer = undefined;
|
|
25
|
+
const message = snapshot(); const pending = records; records = [];
|
|
26
|
+
options.send({ ...message, records: pending.slice(0, 32) });
|
|
27
|
+
for (let index = 32; index < pending.length; index += 32) options.send({ type: "activity", load, navigationStart, records: pending.slice(index, index + 32), timeline: [], tailwind: [] });
|
|
28
|
+
};
|
|
29
|
+
const schedule = () => { timer ??= setTimeout(flush, 40); };
|
|
30
|
+
const receive = (event: MessageEvent<unknown>) => {
|
|
31
|
+
if (event.source !== navigator.serviceWorker.controller) return;
|
|
32
|
+
if (!event.data || typeof event.data !== "object" || !("type" in event.data) || event.data.type !== "activity") return;
|
|
33
|
+
try {
|
|
34
|
+
const message = validateActivity(event.data);
|
|
35
|
+
if (message.load !== load || message.navigationStart !== navigationStart) throw new Error("worker activity belongs to a different frame load");
|
|
36
|
+
records.push(...message.records); schedule();
|
|
37
|
+
} catch (error) { options.error(error instanceof Error ? error : new Error(String(error))); }
|
|
38
|
+
};
|
|
39
|
+
navigator.serviceWorker.addEventListener("message", receive);
|
|
40
|
+
return {
|
|
41
|
+
load, navigationStart, flush, schedule,
|
|
42
|
+
resolve: (config: FrameConfig, versions: Record<string, string>) => {
|
|
43
|
+
const map = document.querySelector('script[type="importmap"]');
|
|
44
|
+
if (!map?.textContent) throw new Error("frame import map is missing");
|
|
45
|
+
runtime = runtimeResolution({ config, importMap: map.textContent }); Object.assign(runtime.versions, versions);
|
|
46
|
+
},
|
|
47
|
+
tailwind: (build: TailwindActivity) => { builds.push(build); if (builds.length === 32) flush(); else schedule(); },
|
|
48
|
+
stop: () => { clearTimeout(timer); navigator.serviceWorker.removeEventListener("message", receive); builds = []; records = []; },
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Page agent
|
|
2
|
+
|
|
3
|
+
`startPageAgent({ root, page, send, error })` installs the embedded `@flanksource/react-grab` picker, a shadow-root overlay, DOM and resize observers, and shortcut forwarding. `root` is the mounted page wrapper, `page` is its source path, `send` sends an `AgentFrameMessage` through the existing authenticated bridge, and `error` reports failures through the frame's render-error path. An optional `picker` supplies an existing fork instance for the bookmarklet loader; disposal restores its toolbar action and enabled state. The loader must install `devtools-hook.js` as the first classic script before React.
|
|
4
|
+
|
|
5
|
+
The returned agent accepts `mode`, `pick`, `page`, `pins`, `highlight` and `scroll` messages through `receive`. The existing bridge validates these messages and every outbound frame message; the agent also validates incoming commands before acting. `mode: comment` activates the picker and `mode: off` deactivates it. Each saved pin has an `anchor`, a positive `count` and its captured `locators`; optional `focus` selects an anchor. Reported anchors retain their stored identity and explicitly report `found`, `moved` or `orphaned`, with a null rectangle for an orphan. Geometry uses frame viewport coordinates. The host adds the frame offset when cropping its own screenshot.
|
|
6
|
+
|
|
7
|
+
Wrap the rendered page in `<PageAgentProvider agent={agent}>` from `./provider.tsx`. It uses clicky-ui's comment contexts to forward component registrations and pin focus, without transferring comment storage or identity into the frame. `registerAnchor` is also available directly for non-React content. Call `dispose` on page teardown.
|
|
8
|
+
|
|
9
|
+
Source resolution first uses the nearest page `data-source` ancestor, retaining the picked library component's name. Without a marker it inspects React owner creation locations (`_debugSource` and React 19 `_debugStack`). Library and generated entry locations are rejected. Picks without a page location fail visibly through `error`.
|
|
10
|
+
|
|
11
|
+
The development compiler preserves the original `fileName`, `lineNumber` and `columnNumber` for composite JSX call sites, including member components and Sucrase's spread/key `createElement` path. A library pick without a marked page ancestor can therefore resolve through its owner creation location. Incomplete or non-page locations still fail visibly; the agent does not invent a column.
|
|
12
|
+
|
|
13
|
+
The bookmarklet explicitly supplies `sourceContext: { mode: "external-document", url: document.location.href }`. Its ordinary HTML selections use this canonical, credential-free HTTP(S) or `file:` URL for `element.source` and carry the same `element.sourceContext`; no markers or React owner are required. File documents use the bookmarklet loader's opaque-origin source-window/session contract; they are never runtime-frame sources. Runtime frames omit this option and retain strict page-source resolution. Both loaders use the same picker. The external host still owns screenshots. Design mode is unavailable for external documents.
|
|
14
|
+
|
|
15
|
+
Review commands and the host adapter are described in [Remote review](../../host/review/README.md). `startPageAgent` also accepts `pageSources` from the lock to validate the declared page-link context. The compiler projects editable linked page markers to page-relative paths before the agent sees them; ordinary library links retain their rejected library locations.
|
|
16
|
+
|
|
17
|
+
Design mode activates the same picker with `{ type: "mode", mode: "design" }`. Editable facet call sites (`BoxNode`, `ContainerNode`, `BrandBox`, `BrandContainer`, `Tile`, `Zone`, including named aliases and namespace imports from facet subpaths) and intrinsic SVG (`rect`, `circle`, `ellipse`, `line`, `polyline`, `polygon`, `path`, `text`, `tspan`, `g`) carry `data-source="<file>:<line>:<column>#<ordinal>@<hash>"`. They share the write server's source-order ordinal sequence. The hash is the first 12 SHA-256 hex digits of the original UTF-8 source. Other host tags retain positional markers. Import `EditableSourceMarker`, `EDITABLE_SOURCE_ATTRIBUTE`, `parseEditableSource(value: string): EditableSourceMarker` and `formatEditableSource(marker: EditableSourceMarker): string` from `@flanksource/page-runtime/markers`; this pure entry has no compiler, Node or React dependency.
|
|
18
|
+
|
|
19
|
+
The Design bridge types are exported from `@flanksource/page-runtime/schema`:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
type DesignHostMessage =
|
|
23
|
+
| { type: "design-override"; requestId: string; source: string; props: Record<string, JsonValue> }
|
|
24
|
+
| { type: "design-write"; requestId: string; page: string; source: string; edit: DesignEdit; choose?: string }
|
|
25
|
+
| { type: "design-write-result"; requestId: string; result: DesignWriteResult };
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The frame emits `design-selection` with `{ selection: AgentSelection, source: string, props: Record<string, JsonValue> }`. `props` projects scalar call-site props suitable for the host panel; React children, callbacks and renderer internals are excluded. Preview with `design-override`; null removes a prop. The override runs against the frame's development renderer and committed call-site fiber, and emits `design-override-result` with `{ requestId, source, ok: true }` or `{ requestId, source, ok: false, error }`. All live DOM instances carrying that selected marker update together.
|
|
29
|
+
|
|
30
|
+
Send `design-write` to ask the frame to emit `design-write-request` with `{ requestId, request: DesignWriteRequest }`. Supply the host API's page identifier explicitly (`report`, not the frame entry `report.tsx`, for playground's slug-based API). The host forwards `request` unchanged to `POST /__playground/visual-edits` and returns its validated response using `design-write-result`. The frame accepts only a pending request ID and acknowledges the result with the same frame event. The request carries `{ page, source, edit, choose? }`; its edit and result unions match the existing visual-edits API, including attributes, delete, text, style and applied/stale/refused/ambiguous/invalid results. The host owns refusal recovery and reload after a successful write. It can send another override to restore a failed preview. Requests must match a live selection and Design mode; package and runtime sources are rejected.
|
|
31
|
+
|
|
32
|
+
The overlay is a `[data-page-agent][data-react-grab-ignore]` sibling outside the page root. Pins, highlight and styles live in its shadow root. HTML export must remove that host and the fork's `[data-react-grab]` overlay hosts; Tailwind and readiness observers must observe the page root. Screenshot capture and clipboard writes belong to the host.
|
|
33
|
+
|
|
34
|
+
While focus is in the frame, Alt+C and Escape are forwarded as `keys`; Alt+C is ignored in editable controls and composition. Escape deactivates the picker. The host owns toggling its comment UI.
|
|
35
|
+
|
|
36
|
+
Run focused checks from the repository root:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
gavel test --work-dir ./packages/ui --framework vitest --recursive=false -- src/comments/anchoring
|
|
40
|
+
gavel test --work-dir ./packages/page-runtime --framework vitest --recursive=false -- agent
|
|
41
|
+
gavel test --work-dir ./packages/page-runtime --framework vitest --recursive=false -- --config src/frame/agent/vitest.browser.config.ts agent
|
|
42
|
+
gavel test --work-dir ./apps/playground --framework vitest --recursive=false -- src/comments src/bookmarklet
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The browser project uses agent-browser with Chromium because picking and pins require real hit testing and layout. The `agent-browser` executable must be on PATH. The package's shared browser config includes `src/**/*.browser.ts`.
|
|
46
|
+
|
|
47
|
+
`bootFrame` constructs the agent after styles are prepared and before mounting the page, routes all six command types, and wraps the page in `PageAgentProvider`. The bridge sends agent events and reports errors. Teardown and boot failures dispose the agent, page root and styles. HTML exports remove agent and picker hosts before inlining assets; Tailwind and readiness continue observing only the page root.
|