@flanksource/page-runtime 0.0.0-stage → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vitest/gavel-reporter-3e3dfb64eda19344.mjs +59 -0
- package/.vitest/vitest-report-root-1793958008919344000.json +1 -0
- package/.vitest/vitest-report-root-1793958052786561000.json +1 -0
- package/.vitest/vitest-report-root-1793958143511414000.json +1 -0
- package/.vitest/vitest-report-root-1793958185908019000.json +1 -0
- package/.vitest/vitest-report-root-1793958252687550000.json +1 -0
- package/.vitest/vitest-report-root-1793958260385388000.json +1 -0
- package/.vitest/vitest-report-root-1793958312358683000.json +1 -0
- package/.vitest/vitest-report-root-1793958386118791000.json +1 -0
- package/.vitest/vitest-report-root-1793958388712140000.json +1 -0
- package/.vitest/vitest-report-root-1793958429135603000.json +1 -0
- package/.vitest/vitest-report-root-1793958433387809000.json +1 -0
- package/.vitest/vitest-report-root-1793958517322792000.json +1 -0
- package/.vitest/vitest-report-root-1793958542332252000.json +1 -0
- package/.vitest/vitest-report-root-1793958617698698000.json +1 -0
- package/.vitest/vitest-report-root-1793958676587753000.json +1 -0
- package/.vitest/vitest-report-root-1793958707827469000.json +1 -0
- package/.vitest/vitest-report-root-1793958729745028000.json +1 -0
- package/.vitest/vitest-report-root-1793958736696408000.json +1 -0
- package/.vitest/vitest-report-root-1793958740449993000.json +1 -0
- package/.vitest/vitest-report-root-1793958841510921000.json +1 -0
- package/.vitest/vitest-report-root-1793958847664582000.json +1 -0
- package/.vitest/vitest-report-root-1793958900327643000.json +1 -0
- package/.vitest/vitest-report-root-1793958950822823000.json +1 -0
- package/.vitest/vitest-report-root-1793959013655262000.json +1 -0
- package/.vitest/vitest-report-root-1793959017905881000.json +1 -0
- package/.vitest/vitest-report-root-1793959093169044000.json +1 -0
- package/.vitest/vitest-report-root-1793959093978087000.json +1 -0
- package/.vitest/vitest-report-root-1793959101111925000.json +1 -0
- package/.vitest/vitest-report-root-1793959145317906000.json +1 -0
- package/.vitest/vitest-report-root-1793959190760607000.json +1 -0
- package/.vitest/vitest-report-root-1793959249695805000.json +1 -0
- package/.vitest/vitest-report-root-1793959323191511000.json +1 -0
- package/.vitest/vitest-report-root-1793959453311564000.json +1 -0
- package/.vitest/vitest-report-root-1793959495806182000.json +1 -0
- package/.vitest/vitest-report-root-1793959499945435000.json +1 -0
- package/.vitest/vitest-report-root-1793959546773807000.json +1 -0
- package/.vitest/vitest-report-root-1793959583335593000.json +1 -0
- package/.vitest/vitest-report-root-1793959621479504000.json +1 -0
- package/.vitest/vitest-report-root-1793959651002360000.json +1 -0
- package/.vitest/vitest-report-root-1793959655646061000.json +1 -0
- package/.vitest/vitest-report-root-1793959741176826000.json +1 -0
- package/.vitest/vitest-report-root-1793959744743733000.json +1 -0
- package/.vitest/vitest-report-root-1793959833244182000.json +1 -0
- package/.vitest/vitest-report-root-1793959882131751000.json +1 -0
- package/.vitest/vitest-report-root-1793959887033254000.json +1 -0
- package/.vitest/vitest-report-root-1793960000631977000.json +1 -0
- package/.vitest/vitest-report-root-1793960011938504000.json +1 -0
- package/.vitest/vitest-report-root-1793961370018852000.json +1 -0
- package/.vitest/vitest-report-root-1793961745370827000.json +1 -0
- package/.vitest/vitest-report-root-1793961764143180000.json +1 -0
- package/.vitest/vitest-report-root-1793961835963066000.json +1 -0
- package/.vitest/vitest-report-root-1793961890729922000.json +1 -0
- package/.vitest/vitest-report-root-1793961968680074000.json +1 -0
- package/.vitest/vitest-report-root-1793962066862337000.json +1 -0
- package/.vitest/vitest-report-root-1793962087917497000.json +1 -0
- package/.vitest/vitest-report-root-1793962157254386000.json +1 -0
- package/.vitest/vitest-report-root-1793962171214865000.json +1 -0
- package/.vitest/vitest-report-root-1793962183290533000.json +1 -0
- package/.vitest/vitest-report-root-1793962184809932000.json +1 -0
- package/.vitest/vitest-report-root-1793962197715204000.json +1 -0
- package/.vitest/vitest-report-root-1793962244650717000.json +1 -0
- package/.vitest/vitest-report-root-1793962259802273000.json +1 -0
- package/.vitest/vitest-report-root-1793962278799745000.json +1 -0
- package/.vitest/vitest-report-root-1793962304412974000.json +1 -0
- package/.vitest/vitest-report-root-1793962328411454000.json +1 -0
- package/.vitest/vitest-report-root-1793962355747869000.json +1 -0
- package/.vitest/vitest-report-root-1793962381401572000.json +1 -0
- package/.vitest/vitest-report-root-1793962393326735000.json +1 -0
- package/.vitest/vitest-report-root-1793962393329206000.json +1 -0
- package/.vitest/vitest-report-root-1793962437796768000.json +1 -0
- package/.vitest/vitest-report-root-1793962444190384000.json +1 -0
- package/.vitest/vitest-report-root-1793962445347541000.json +1 -0
- package/.vitest/vitest-report-root-1793962473691143000.json +1 -0
- package/.vitest/vitest-report-root-1793962474291457000.json +1 -0
- package/.vitest/vitest-report-root-1793962499680468000.json +1 -0
- package/.vitest/vitest-report-root-1793962504410483000.json +1 -0
- package/.vitest/vitest-report-root-1793962516850524000.json +1 -0
- package/.vitest/vitest-report-root-1793962536736273000.json +1 -0
- package/.vitest/vitest-report-root-1793962551181783000.json +1 -0
- package/.vitest/vitest-report-root-1793962553575620000.json +1 -0
- package/.vitest/vitest-report-root-1793962555169730000.json +1 -0
- package/.vitest/vitest-report-root-1793962572639765000.json +1 -0
- package/.vitest/vitest-report-root-1793962597102952000.json +1 -0
- package/.vitest/vitest-report-root-1793962637156669000.json +1 -0
- package/.vitest/vitest-report-root-1793962653530027000.json +1 -0
- package/.vitest/vitest-report-root-1793962665824334000.json +1 -0
- package/.vitest/vitest-report-root-1793962682161714000.json +1 -0
- package/.vitest/vitest-report-root-1793962719526168000.json +1 -0
- package/.vitest/vitest-report-root-1793962723853934000.json +1 -0
- package/.vitest/vitest-report-root-1793962741927728000.json +1 -0
- package/.vitest/vitest-report-root-1793962794308371000.json +1 -0
- package/.vitest/vitest-report-root-1793962796334481000.json +1 -0
- package/.vitest/vitest-report-root-1793962798075169000.json +1 -0
- package/.vitest/vitest-report-root-1793962836466676000.json +1 -0
- package/.vitest/vitest-report-root-1793962846507317000.json +1 -0
- package/.vitest/vitest-report-root-1793962876266701000.json +1 -0
- package/.vitest/vitest-report-root-1793962922031308000.json +1 -0
- package/.vitest/vitest-report-root-1793962932957166000.json +1 -0
- package/.vitest/vitest-report-root-1793962946930725000.json +1 -0
- package/.vitest/vitest-report-root-1793963027896350000.json +1 -0
- package/.vitest/vitest-report-root-1793963036618707000.json +1 -0
- package/.vitest/vitest-report-root-1793963067365318000.json +1 -0
- package/.vitest/vitest-report-root-1793963077597641000.json +1 -0
- package/.vitest/vitest-report-root-1793963126365651000.json +1 -0
- package/.vitest/vitest-report-root-1793963208744553000.json +1 -0
- package/.vitest/vitest-report-root-1793963232806450000.json +1 -0
- package/.vitest/vitest-report-root-1793963325077422000.json +1 -0
- package/.vitest/vitest-report-root-1793963392172877000.json +1 -0
- package/.vitest/vitest-report-root-1793963398218324000.json +1 -0
- package/.vitest/vitest-report-root-1793963410749092000.json +1 -0
- package/.vitest/vitest-report-root-1793963437279580000.json +1 -0
- package/.vitest/vitest-report-root-1793963450096193000.json +1 -0
- package/.vitest/vitest-report-root-1793963478908641000.json +1 -0
- package/.vitest/vitest-report-root-1793963507838465000.json +1 -0
- package/.vitest/vitest-report-root-1793963528668174000.json +1 -0
- package/.vitest/vitest-report-root-1793963601860390000.json +1 -0
- package/.vitest/vitest-report-root-1793963611633446000.json +1 -0
- package/.vitest/vitest-report-root-1793963624713406000.json +1 -0
- package/.vitest/vitest-report-root-1793963680656685000.json +1 -0
- package/.vitest/vitest-report-root-1793963705231851000.json +1 -0
- package/.vitest/vitest-report-root-1793963708929500000.json +1 -0
- package/.vitest/vitest-report-root-1793963710267844000.json +1 -0
- package/.vitest/vitest-report-root-1793963713999248000.json +1 -0
- package/.vitest/vitest-report-root-1793963786513455000.json +1 -0
- package/.vitest/vitest-report-root-1793963792518765000.json +1 -0
- package/.vitest/vitest-report-root-1793963804089549000.json +1 -0
- package/.vitest/vitest-report-root-1793963840412921000.json +1 -0
- package/.vitest/vitest-report-root-1793963880361176000.json +1 -0
- package/.vitest/vitest-report-root-1793963935121106000.json +1 -0
- package/.vitest/vitest-report-root-1793963937290698000.json +1 -0
- package/.vitest/vitest-report-root-1793963977050773000.json +1 -0
- package/.vitest/vitest-report-root-1793963981229158000.json +1 -0
- package/.vitest/vitest-report-root-1793963989422080000.json +1 -0
- package/.vitest/vitest-report-root-1793964025924629000.json +1 -0
- package/.vitest/vitest-report-root-1793964027983705000.json +1 -0
- package/.vitest/vitest-report-root-1793964059969386000.json +1 -0
- package/.vitest/vitest-report-root-1793964071524069000.json +1 -0
- package/.vitest/vitest-report-root-1793964076285860000.json +1 -0
- package/.vitest/vitest-report-root-1793964077988100000.json +1 -0
- package/.vitest/vitest-report-root-1793964093289042000.json +1 -0
- package/.vitest/vitest-report-root-1793964102899356000.json +1 -0
- package/.vitest/vitest-report-root-1793964128089691000.json +1 -0
- package/.vitest/vitest-report-root-1793964129495156000.json +1 -0
- package/.vitest/vitest-report-root-1793964182849665000.json +1 -0
- package/.vitest/vitest-report-root-1793964223959893000.json +1 -0
- package/.vitest/vitest-report-root-1793964253351716000.json +1 -0
- package/.vitest/vitest-report-root-1793964290220122000.json +1 -0
- package/.vitest/vitest-report-root-1793964318037006000.json +1 -0
- package/.vitest/vitest-report-root-1793964334676691000.json +1 -0
- package/.vitest/vitest-report-root-1793964378520677000.json +1 -0
- package/.vitest/vitest-report-root-1793964383748994000.json +1 -0
- package/.vitest/vitest-report-root-1793964394042303000.json +1 -0
- package/.vitest/vitest-report-root-1793964466521881000.json +1 -0
- package/.vitest/vitest-report-root-1793964470478175000.json +1 -0
- package/.vitest/vitest-report-root-1793964484499019000.json +1 -0
- package/.vitest/vitest-report-root-1793964527645213000.json +1 -0
- package/.vitest/vitest-report-root-1793964608875865000.json +1 -0
- package/.vitest/vitest-report-root-1793964623608336000.json +1 -0
- package/.vitest/vitest-report-root-1793964629870846000.json +1 -0
- package/.vitest/vitest-report-root-1793964674515564000.json +1 -0
- package/.vitest/vitest-report-root-1793964706923651000.json +1 -0
- package/.vitest/vitest-report-root-1793964712832942000.json +1 -0
- package/.vitest/vitest-report-root-1793964714824633000.json +1 -0
- package/.vitest/vitest-report-root-1793964755433952000.json +1 -0
- package/.vitest/vitest-report-root-1793964783157670000.json +1 -0
- package/.vitest/vitest-report-root-1793964818963246000.json +1 -0
- package/.vitest/vitest-report-root-1793964843818548000.json +1 -0
- package/.vitest/vitest-report-root-1793964929824204000.json +1 -0
- package/.vitest/vitest-report-root-1793964973060713000.json +1 -0
- package/.vitest/vitest-report-root-1793964983122482000.json +1 -0
- package/.vitest/vitest-report-root-1793965107264567000.json +1 -0
- package/.vitest/vitest-report-root-1793965258759177000.json +1 -0
- package/.vitest/vitest-report-root-1793965277212091000.json +1 -0
- package/.vitest/vitest-report-root-1793965420648188000.json +1 -0
- package/.vitest/vitest-report-root-1793965611688414000.json +1 -0
- package/.vitest/vitest-report-root-1793965753407694000.json +1 -0
- package/.vitest/vitest-report-root-1793965766104309000.json +1 -0
- package/.vitest/vitest-report-root-1793965766823098000.json +1 -0
- package/.vitest/vitest-report-root-1793965806066109000.json +1 -0
- package/.vitest/vitest-report-root-1793965824697182000.json +1 -0
- package/.vitest/vitest-report-root-1793965904374564000.json +1 -0
- package/.vitest/vitest-report-root-1793965920838340000.json +1 -0
- package/.vitest/vitest-report-root-1793965932520617000.json +1 -0
- package/.vitest/vitest-report-root-1793965971574656000.json +1 -0
- package/.vitest/vitest-report-root-1793966049815024000.json +1 -0
- package/.vitest/vitest-report-root-1793966057888034000.json +1 -0
- package/.vitest/vitest-report-root-1793966066838868000.json +1 -0
- package/.vitest/vitest-report-root-1793966160347764000.json +1 -0
- package/.vitest/vitest-report-root-1793966196305985000.json +1 -0
- package/.vitest/vitest-report-root-1793966221538043000.json +1 -0
- package/.vitest/vitest-report-root-1793966251519918000.json +1 -0
- package/.vitest/vitest-report-root-1793966447000588000.json +1 -0
- package/.vitest/vitest-report-root-1793966463178249000.json +1 -0
- package/.vitest/vitest-report-root-1793966486995648000.json +1 -0
- package/.vitest/vitest-report-root-1793966726756953000.json +1 -0
- package/.vitest/vitest-report-root-1793966763656807000.json +1 -0
- package/.vitest/vitest-report-root-1793966979409799000.json +1 -0
- package/.vitest/vitest-report-root-1793967385250149000.json +1 -0
- package/.vitest/vitest-report-root-1793967617080163000.json +1 -0
- package/.vitest/vitest-report-root-1793967649428508000.json +1 -0
- package/.vitest/vitest-report-root-1793967773689520000.json +1 -0
- package/.vitest/vitest-report-root-1793968743743508000.json +1 -0
- package/.vitest/vitest-report-root-1793968846470407000.json +1 -0
- package/.vitest/vitest-report-root-1793968880878391000.json +1 -0
- package/.vitest/vitest-report-root-1793969027713529000.json +1 -0
- package/.vitest/vitest-report-root-1793969041841266000.json +1 -0
- package/.vitest/vitest-report-root-1793969142007468000.json +1 -0
- package/.vitest/vitest-report-root-1793969164867379000.json +1 -0
- package/.vitest/vitest-report-root-1793969193145858000.json +1 -0
- package/.vitest/vitest-report-root-1793969246818533000.json +1 -0
- package/.vitest/vitest-report-root-1793969270845486000.json +1 -0
- package/.vitest/vitest-report-root-1793969272514219000.json +1 -0
- package/.vitest/vitest-report-root-1793969302476105000.json +1 -0
- package/.vitest/vitest-report-root-1793969401697799000.json +1 -0
- package/.vitest/vitest-report-root-1793969433222630000.json +1 -0
- package/.vitest/vitest-report-root-1793969453350714000.json +1 -0
- package/.vitest/vitest-report-root-1793969567187400000.json +1 -0
- package/.vitest/vitest-report-root-1793969602230024000.json +1 -0
- package/.vitest/vitest-report-root-1793969633261063000.json +1 -0
- package/.vitest/vitest-report-root-1793969673876404000.json +1 -0
- package/.vitest/vitest-report-root-1793969702287010000.json +1 -0
- package/.vitest/vitest-report-root-1793969745828386000.json +1 -0
- package/.vitest/vitest-report-root-1793969893687205000.json +1 -0
- package/.vitest/vitest-report-root-1793969949642120000.json +1 -0
- package/.vitest/vitest-report-root-1793969981399076000.json +1 -0
- package/.vitest/vitest-report-root-1793970027152713000.json +1 -0
- package/.vitest/vitest-report-root-1793970030585158000.json +1 -0
- package/.vitest/vitest-report-root-1793970160195767000.json +1 -0
- package/.vitest/vitest-report-root-1793970215752422000.json +1 -0
- package/.vitest/vitest-report-root-1793970217114968000.json +1 -0
- package/.vitest/vitest-report-root-1793970329879319000.json +1 -0
- package/.vitest/vitest-report-root-1793970590586994000.json +1 -0
- package/.vitest/vitest-report-root-1793970625359990000.json +1 -0
- package/.vitest/vitest-report-root-1793970672590269000.json +1 -0
- package/.vitest/vitest-report-root-1793970796789022000.json +1 -0
- package/.vitest/vitest-report-root-1793970825710990000.json +1 -0
- package/.vitest/vitest-report-root-1793970884000509000.json +1 -0
- package/.vitest/vitest-report-root-1793970900444617000.json +1 -0
- package/.vitest/vitest-report-root-1793972186024681000.json +1 -0
- package/.vitest/vitest-report-root-1793972227757396000.json +1 -0
- package/.vitest/vitest-report-root-1793972736341600000.json +1 -0
- package/.vitest/vitest-report-root-1793972769249562000.json +1 -0
- package/.vitest/vitest-report-root-1793972859435283000.json +1 -0
- package/.vitest/vitest-report-root-1793972915169294000.json +1 -0
- package/.vitest/vitest-report-root-1793973081515450000.json +1 -0
- package/.vitest/vitest-report-root-1793973111336773000.json +1 -0
- package/.vitest/vitest-report-root-1793973253986969000.json +1 -0
- package/.vitest/vitest-report-root-1793973561283775000.json +1 -0
- package/.vitest/vitest-report-root-1793973593320977000.json +1 -0
- package/.vitest/vitest-report-root-1793973648302867000.json +1 -0
- package/.vitest/vitest-report-root-1793973819657242000.json +1 -0
- package/.vitest/vitest-report-root-1793973952727311000.json +1 -0
- package/.vitest/vitest-report-root-1793974334455876000.json +1 -0
- package/.vitest/vitest-report-root-1793974437074196000.json +1 -0
- package/.vitest/vitest-report-root-1793974437553146000.json +1 -0
- package/.vitest/vitest-report-root-1793974461818626000.json +1 -0
- package/.vitest/vitest-report-root-1793974515255198000.json +1 -0
- package/.vitest/vitest-report-root-1793974516267191000.json +1 -0
- package/.vitest/vitest-report-root-1793974621202824000.json +1 -0
- package/.vitest/vitest-report-root-1793974718450330000.json +1 -0
- package/.vitest/vitest-report-root-1793974834942373000.json +1 -0
- package/.vitest/vitest-report-root-1793974921367314000.json +1 -0
- package/.vitest/vitest-report-root-1793975019367156000.json +1 -0
- package/.vitest/vitest-report-root-1793975048166096000.json +1 -0
- package/.vitest/vitest-report-root-1793975133024339000.json +1 -0
- package/.vitest/vitest-report-root-1793975159711704000.json +1 -0
- package/.vitest/vitest-report-root-1793975517481736000.json +1 -0
- package/.vitest/vitest-report-root-1793975680008825000.json +1 -0
- package/.vitest/vitest-report-root-1793976067648494000.json +1 -0
- package/.vitest/vitest-report-root-1793976314122479000.json +1 -0
- package/.vitest/vitest-report-root-1793976513022402000.json +1 -0
- package/.vitest/vitest-report-root-1793976540410805000.json +1 -0
- package/.vitest/vitest-report-root-1793976555103273000.json +1 -0
- package/.vitest/vitest-report-root-1793976702974407000.json +1 -0
- package/.vitest/vitest-report-root-1793976721093108000.json +1 -0
- package/.vitest/vitest-report-root-1793976955473681000.json +1 -0
- package/.vitest/vitest-report-root-1793977049628483000.json +1 -0
- package/.vitest/vitest-report-root-1793977098467804000.json +1 -0
- package/.vitest/vitest-report-root-1793977132144900000.json +1 -0
- package/.vitest/vitest-report-root-1793977279648191000.json +1 -0
- package/.vitest/vitest-report-root-1793977365312127000.json +1 -0
- package/.vitest/vitest-report-root-1793978227796817000.json +1 -0
- package/.vitest/vitest-report-root-1793978255189735000.json +1 -0
- package/.vitest/vitest-report-root-1793978306509070000.json +1 -0
- package/.vitest/vitest-report-root-1793978418301216000.json +1 -0
- package/.vitest/vitest-report-root-1793978445072573000.json +1 -0
- package/.vitest/vitest-report-root-1793978546605517000.json +1 -0
- package/.vitest/vitest-report-root-1793978576060950000.json +1 -0
- package/.vitest/vitest-report-root-1793978590261408000.json +1 -0
- package/.vitest/vitest-report-root-1793978674733179000.json +1 -0
- package/.vitest/vitest-report-root-1793978718588785000.json +1 -0
- package/.vitest/vitest-report-root-1793978725363453000.json +1 -0
- package/.vitest/vitest-report-root-1793978729967285000.json +1 -0
- package/.vitest/vitest-report-root-1793978755641607000.json +1 -0
- package/.vitest/vitest-report-root-1793978782769802000.json +1 -0
- package/.vitest/vitest-report-root-1793978784870947000.json +1 -0
- package/.vitest/vitest-report-root-1793978806927335000.json +1 -0
- package/.vitest/vitest-report-root-1793978822508324000.json +1 -0
- package/.vitest/vitest-report-root-1793978836339794000.json +1 -0
- package/.vitest/vitest-report-root-1793978837947352000.json +1 -0
- package/.vitest/vitest-report-root-1793978891548295000.json +1 -0
- package/.vitest/vitest-report-root-1793978946172947000.json +1 -0
- package/.vitest/vitest-report-root-1793978947109807000.json +1 -0
- package/.vitest/vitest-report-root-1793979034208662000.json +1 -0
- package/.vitest/vitest-report-root-1793979070583608000.json +1 -0
- package/.vitest/vitest-report-root-1793979081187144000.json +1 -0
- package/.vitest/vitest-report-root-1793979085428673000.json +1 -0
- package/.vitest/vitest-report-root-1793979155097858000.json +1 -0
- package/.vitest/vitest-report-root-1793979233508873000.json +1 -0
- package/.vitest/vitest-report-root-1793979268653273000.json +1 -0
- package/.vitest/vitest-report-root-1793979341978843000.json +1 -0
- package/.vitest/vitest-report-root-1793979345344877000.json +1 -0
- package/.vitest/vitest-report-root-1793979389390374000.json +1 -0
- package/.vitest/vitest-report-root-1793979400063493000.json +1 -0
- package/.vitest/vitest-report-root-1793979432448725000.json +1 -0
- package/.vitest/vitest-report-root-1793979459139430000.json +1 -0
- package/.vitest/vitest-report-root-1793979480341961000.json +1 -0
- package/.vitest/vitest-report-root-1793979510130869000.json +1 -0
- package/.vitest/vitest-report-root-1793979524763924000.json +1 -0
- package/.vitest/vitest-report-root-1793979571563010000.json +1 -0
- package/.vitest/vitest-report-root-1793979627916920000.json +1 -0
- package/.vitest/vitest-report-root-1793979726395379000.json +1 -0
- package/.vitest/vitest-report-root-1793979752029533000.json +1 -0
- package/.vitest/vitest-report-root-1793979753365744000.json +1 -0
- package/.vitest/vitest-report-root-1793979759386206000.json +1 -0
- package/.vitest/vitest-report-root-1793979787819109000.json +1 -0
- package/.vitest/vitest-report-root-1793979827615051000.json +1 -0
- package/.vitest/vitest-report-root-1793979927737393000.json +1 -0
- package/.vitest/vitest-report-root-1793979929836169000.json +1 -0
- package/.vitest/vitest-report-root-1793979955780781000.json +1 -0
- package/.vitest/vitest-report-root-1793980200569636000.json +1 -0
- package/.vitest/vitest-report-root-1793980206045213000.json +1 -0
- package/.vitest/vitest-report-root-1793980285772027000.json +1 -0
- package/.vitest/vitest-report-root-1793980459229828000.json +1 -0
- package/.vitest/vitest-report-root-1793980460545874000.json +1 -0
- package/.vitest/vitest-report-root-1793980554484341000.json +1 -0
- package/.vitest/vitest-report-root-1793980674494388000.json +1 -0
- package/.vitest/vitest-report-root-1793980683752195000.json +1 -0
- package/.vitest/vitest-report-root-1793980947108651000.json +1 -0
- package/.vitest/vitest-report-root-1793981129616629000.json +1 -0
- package/.vitest/vitest-report-root-1793981196611441000.json +1 -0
- package/.vitest/vitest-report-root-1793981226583545000.json +1 -0
- package/.vitest/vitest-report-root-1793981294259721000.json +1 -0
- package/.vitest/vitest-report-root-1793981353393048000.json +1 -0
- package/.vitest/vitest-report-root-1793981424585368000.json +1 -0
- package/.vitest/vitest-report-root-1793981513266687000.json +1 -0
- package/.vitest/vitest-report-root-1793981526418218000.json +1 -0
- package/.vitest/vitest-report-root-1793981540069877000.json +1 -0
- package/.vitest/vitest-report-root-1793981761193625000.json +1 -0
- package/.vitest/vitest-report-root-1793981868520992000.json +1 -0
- package/.vitest/vitest-report-root-1793982048467772000.json +1 -0
- package/.vitest/vitest-report-root-1793982119518020000.json +1 -0
- package/.vitest/vitest-report-root-1793982243473651000.json +1 -0
- package/.vitest/vitest-report-root-1793982406880629000.json +1 -0
- package/.vitest/vitest-report-root-1793982433563632000.json +1 -0
- package/.vitest/vitest-report-root-1793982496753204000.json +1 -0
- package/.vitest/vitest-report-root-1793982500153311000.json +1 -0
- package/.vitest/vitest-report-root-1793982542086095000.json +1 -0
- package/.vitest/vitest-report-root-1793982659482988000.json +1 -0
- package/.vitest/vitest-report-root-1793983799132716000.json +1 -0
- package/.vitest/vitest-report-root-1793983822721833000.json +1 -0
- package/.vitest/vitest-report-root-1793984998618484000.json +1 -0
- package/.vitest/vitest-report-root-1793985050475750000.json +1 -0
- package/.vitest/vitest-report-root-1793985095516077000.json +1 -0
- package/.vitest/vitest-report-root-1793985130729074000.json +1 -0
- package/.vitest/vitest-report-root-1793985177150997000.json +1 -0
- package/.vitest/vitest-report-root-1793985267658626000.json +1 -0
- package/.vitest/vitest-report-root-1793985412705211000.json +1 -0
- package/.vitest/vitest-report-root-1793985433752853000.json +1 -0
- package/.vitest/vitest-report-root-1794087938302852000.json +1 -0
- package/.vitest/vitest-report-root-1794087978339022000.json +1 -0
- package/.vitest/vitest-report-root-1794088095283811000.json +1 -0
- package/.vitest/vitest-report-root-1794088129997065000.json +1 -0
- package/.vitest/vitest-report-root-1794088147336556000.json +1 -0
- package/.vitest/vitest-report-root-1794088173414593000.json +1 -0
- package/.vitest/vitest-report-root-1794088221289657000.json +1 -0
- package/.vitest/vitest-report-root-1794088250766611000.json +1 -0
- package/.vitest/vitest-report-root-1794088365553234000.json +1 -0
- package/.vitest/vitest-report-root-1794088395202655000.json +1 -0
- package/.vitest/vitest-report-root-1794090028732187000.json +1 -0
- package/.vitest/vitest-report-root-1794090054787283000.json +1 -0
- package/.vitest/vitest-report-root-1794090153955794000.json +1 -0
- package/.vitest/vitest-report-root-1794090161850160000.json +1 -0
- package/.vitest/vitest-report-root-1794091755693314000.json +1 -0
- package/.vitest/vitest-report-root-1794091765029349000.json +1 -0
- package/.vitest/vitest-report-root-1794091975649927000.json +1 -0
- package/.vitest/vitest-report-root-1794091994027950000.json +1 -0
- package/.vitest/vitest-report-root-1794092005178771000.json +1 -0
- package/.vitest/vitest-report-root-1794113295302382000.json +1 -0
- package/.vitest/vitest-report-root-1794114156337032000.json +1 -0
- package/.vitest/vitest-report-root-1794114198454137000.json +1 -0
- package/.vitest/vitest-report-root-1794114254064413000.json +1 -0
- package/.vitest/vitest-report-root-1794114280107510000.json +1 -0
- package/.vitest/vitest-report-root-1794114495199837000.json +1 -0
- package/.vitest/vitest-report-root-1794114646604233000.json +1 -0
- package/.vitest/vitest-report-root-1794114666311689000.json +1 -0
- package/.vitest/vitest-report-root-1794114974303438000.json +1 -0
- package/.vitest/vitest-report-root-1794115037361450000.json +1 -0
- package/.vitest/vitest-report-root-1794115097838937000.json +1 -0
- package/.vitest/vitest-report-root-1794115604669388000.json +1 -0
- package/.vitest/vitest-report-root-1794115633814500000.json +1 -0
- package/.vitest/vitest-report-root-1794115648756242000.json +1 -0
- package/.vitest/vitest-report-root-1794115873440741000.json +1 -0
- package/.vitest/vitest-report-root-1794115952930230000.json +1 -0
- package/.vitest/vitest-report-root-1794115963344701000.json +1 -0
- package/.vitest/vitest-report-root-1794116196067450000.json +1 -0
- package/.vitest/vitest-report-root-1794116254301280000.json +1 -0
- package/.vitest/vitest-report-root-1794116259342966000.json +1 -0
- package/.vitest/vitest-report-root-1794118178787879000.json +1 -0
- package/.vitest/vitest-report-root-1794137087891409000.json +1 -0
- package/.vitest/vitest-report-root-1794137100301214000.json +1 -0
- package/.vitest/vitest-report-root-1794137107377813000.json +1 -0
- package/.vitest/vitest-report-root-1794137171230704000.json +1 -0
- package/.vitest/vitest-report-root-1794137317761465000.json +1 -0
- package/.vitest/vitest-report-root-1794137320282368000.json +1 -0
- package/LICENSE +17 -0
- package/PACKAGE_PUBLICATIONS.md +26 -0
- package/builder-package.json +19 -0
- package/package.json +77 -3
- package/scripts/build-builder.ts +27 -0
- package/scripts/build-library-runtime.ts +9 -0
- package/scripts/build-static.ts +75 -0
- package/scripts/build.ts +6 -0
- package/scripts/check-fragment.ts +12 -0
- package/scripts/local-workspaces.test.ts +31 -0
- package/scripts/local-workspaces.ts +55 -0
- package/scripts/release-version-cli.test.ts +40 -0
- package/scripts/release-version.test.ts +29 -0
- package/scripts/release-version.ts +46 -0
- package/scripts/run-package-build.ts +8 -0
- package/scripts/serve-packages.ts +8 -0
- package/spikes/README.md +70 -0
- package/spikes/barrel-rewriting/README.md +97 -0
- package/spikes/barrel-rewriting/measure.ts +134 -0
- package/spikes/barrel-rewriting/readme.ts +174 -0
- package/spikes/barrel-rewriting/results.json +3440 -0
- package/spikes/barrel-rewriting/run.ts +330 -0
- package/spikes/barrel-rewriting/setup.ts +90 -0
- package/spikes/barrel-rewriting/sw.ts +148 -0
- package/spikes/barrel-rewriting/tenant.ts +91 -0
- package/spikes/barrel-rewriting/worker-config.ts +33 -0
- package/spikes/closure-fragments/README.md +157 -0
- package/spikes/closure-fragments/results.json +959 -0
- package/spikes/closure-fragments/run.ts +298 -0
- package/spikes/compiler/README.md +177 -0
- package/spikes/compiler/compile.test.ts +78 -0
- package/spikes/compiler/compile.ts +82 -0
- package/spikes/compiler/facet-redact.d.ts +5 -0
- package/spikes/compiler/markers.ts +88 -0
- package/spikes/compiler/pages.ts +43 -0
- package/spikes/compiler/readme.ts +116 -0
- package/spikes/compiler/reference.ts +81 -0
- package/spikes/compiler/render.ts +113 -0
- package/spikes/compiler/results.json +3310 -0
- package/spikes/compiler/run.ts +250 -0
- package/spikes/compiler/sucrase-parser.d.ts +8 -0
- package/spikes/compiler/sw.ts +62 -0
- package/spikes/diagram-readiness/README.md +134 -0
- package/spikes/diagram-readiness/analysis.test.ts +52 -0
- package/spikes/diagram-readiness/analysis.ts +35 -0
- package/spikes/diagram-readiness/browser.ts +209 -0
- package/spikes/diagram-readiness/readme.ts +65 -0
- package/spikes/diagram-readiness/results.json +30289 -0
- package/spikes/diagram-readiness/run.ts +103 -0
- package/spikes/diagram-readiness/server.ts +53 -0
- package/spikes/esm-sh/README.md +27 -0
- package/spikes/esm-sh/browser-client.ts +18 -0
- package/spikes/esm-sh/browser-server.ts +104 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.headers +15 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-module.headers +13 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-module.mjs.txt +142 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.headers +15 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.headers +11 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.mjs.txt +222 -0
- package/spikes/esm-sh/fixtures/toggle-selection-entry.headers +14 -0
- package/spikes/esm-sh/fixtures/toggle-selection-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/toggle-selection-module.headers +11 -0
- package/spikes/esm-sh/fixtures/toggle-selection-module.mjs.txt +76 -0
- package/spikes/esm-sh/fixtures.ts +54 -0
- package/spikes/esm-sh/redact.ts +1 -0
- package/spikes/frame-commenting/README.md +183 -0
- package/spikes/frame-commenting/agent.ts +110 -0
- package/spikes/frame-commenting/hook.ts +1 -0
- package/spikes/frame-commenting/host.ts +66 -0
- package/spikes/frame-commenting/measure.ts +180 -0
- package/spikes/frame-commenting/model.test.ts +27 -0
- package/spikes/frame-commenting/model.ts +40 -0
- package/spikes/frame-commenting/readme.ts +61 -0
- package/spikes/frame-commenting/results.json +5320 -0
- package/spikes/frame-commenting/run.ts +73 -0
- package/spikes/frame-commenting/setup.ts +125 -0
- package/spikes/lib/barrels.test.ts +107 -0
- package/spikes/lib/barrels.ts +309 -0
- package/spikes/lib/cjs-export-names.mjs +22 -0
- package/spikes/lib/content-types.ts +28 -0
- package/spikes/lib/convert-commonjs.ts +168 -0
- package/spikes/lib/fragment.ts +108 -0
- package/spikes/lib/library-set.ts +194 -0
- package/spikes/lib/module-transform.test.ts +133 -0
- package/spikes/lib/module-transform.ts +351 -0
- package/spikes/lib/origin.ts +140 -0
- package/spikes/lib/pages.ts +290 -0
- package/spikes/lib/report.ts +23 -0
- package/spikes/lib/runtime-server.ts +282 -0
- package/spikes/lib/static-server.ts +82 -0
- package/spikes/lib/trace.ts +384 -0
- package/spikes/local-folder-link/README.md +85 -0
- package/spikes/local-folder-link/checkout.ts +132 -0
- package/spikes/local-folder-link/documents.ts +36 -0
- package/spikes/local-folder-link/readme.ts +42 -0
- package/spikes/local-folder-link/results.json +12815 -0
- package/spikes/local-folder-link/rewrite.test.ts +27 -0
- package/spikes/local-folder-link/rewrite.ts +38 -0
- package/spikes/local-folder-link/run.ts +123 -0
- package/spikes/local-folder-link/server.ts +100 -0
- package/spikes/local-folder-link/sw.ts +97 -0
- package/spikes/origin-isolation/README.md +426 -0
- package/spikes/origin-isolation/browsers.ts +43 -0
- package/spikes/origin-isolation/helper.ts +6 -0
- package/spikes/origin-isolation/host.ts +25 -0
- package/spikes/origin-isolation/measure.ts +118 -0
- package/spikes/origin-isolation/model.test.ts +45 -0
- package/spikes/origin-isolation/model.ts +49 -0
- package/spikes/origin-isolation/proxy.ts +35 -0
- package/spikes/origin-isolation/readme.ts +83 -0
- package/spikes/origin-isolation/results.json +3242 -0
- package/spikes/origin-isolation/run.ts +35 -0
- package/spikes/origin-isolation/server.ts +108 -0
- package/spikes/origin-isolation/sw.ts +28 -0
- package/spikes/origin-isolation/tenant.ts +165 -0
- package/spikes/react-runtime-set/README.md +48 -0
- package/spikes/react-runtime-set/convert.ts +118 -0
- package/spikes/react-runtime-set/export-names.mjs +8 -0
- package/spikes/react-runtime-set/page/page.js +46 -0
- package/spikes/react-runtime-set/results.json +84 -0
- package/spikes/react-runtime-set/run.ts +255 -0
- package/spikes/run.ts +15 -0
- package/spikes/sw-tenant-frame/README.md +95 -0
- package/spikes/sw-tenant-frame/results.json +1348 -0
- package/spikes/sw-tenant-frame/run.ts +373 -0
- package/spikes/sw-tenant-frame/site/frame.html +113 -0
- package/spikes/sw-tenant-frame/site/host.html +25 -0
- package/spikes/sw-tenant-frame/site/sw.js +10 -0
- package/spikes/tailwind-parity/README.md +78 -0
- package/spikes/tailwind-parity/compare.test.ts +70 -0
- package/spikes/tailwind-parity/compare.ts +91 -0
- package/spikes/tailwind-parity/facet-font-scale.d.ts +6 -0
- package/spikes/tailwind-parity/facet-styles.ts +77 -0
- package/spikes/tailwind-parity/results.json +885 -0
- package/spikes/tailwind-parity/run.ts +385 -0
- package/spikes/tailwind-parity/runtime-tailwind.ts +82 -0
- package/src/activity-schema.ts +91 -0
- package/src/activity.test.ts +57 -0
- package/src/build/README.md +94 -0
- package/src/build/barrels.test.ts +107 -0
- package/src/build/barrels.ts +306 -0
- package/src/build/base.ts +2 -0
- package/src/build/check-fragment.ts +45 -0
- package/src/build/cjs-export-names.mjs +24 -0
- package/src/build/commonjs-exports.ts +24 -0
- package/src/build/convert-commonjs.ts +183 -0
- package/src/build/dependencies.ts +4 -0
- package/src/build/dependency-barrels.ts +59 -0
- package/src/build/dependency-cache.ts +40 -0
- package/src/build/dependency-plugin.ts +58 -0
- package/src/build/dependency-runtime.test.ts +121 -0
- package/src/build/dependency-runtime.ts +147 -0
- package/src/build/errors.ts +9 -0
- package/src/build/fragment.ts +89 -0
- package/src/build/index.ts +7 -0
- package/src/build/library-runtime.test.ts +343 -0
- package/src/build/library-runtime.ts +98 -0
- package/src/build/module-utils.ts +11 -0
- package/src/build/recipe-dependencies.ts +14 -0
- package/src/build/runtime-entries.ts +10 -0
- package/src/build/trace.ts +429 -0
- package/src/design-schema.ts +25 -0
- package/src/dev/README.md +48 -0
- package/src/dev/catalog.ts +79 -0
- package/src/dev/cli.test.ts +12 -0
- package/src/dev/cli.ts +25 -0
- package/src/dev/index.ts +115 -0
- package/src/dev/packages.test.ts +175 -0
- package/src/editing.test.tsx +31 -0
- package/src/editing.ts +25 -0
- package/src/frame/activity.browser.ts +34 -0
- package/src/frame/activity.test.ts +27 -0
- package/src/frame/activity.ts +50 -0
- package/src/frame/agent/README.md +47 -0
- package/src/frame/agent/agent.browser.ts +127 -0
- package/src/frame/agent/design.ts +62 -0
- package/src/frame/agent/index.ts +148 -0
- package/src/frame/agent/overlay.test.ts +42 -0
- package/src/frame/agent/overlay.ts +91 -0
- package/src/frame/agent/owner.test.ts +78 -0
- package/src/frame/agent/owner.ts +58 -0
- package/src/frame/agent/provider.tsx +14 -0
- package/src/frame/agent/react-override.ts +55 -0
- package/src/frame/agent/review.browser.ts +65 -0
- package/src/frame/agent/review.ts +107 -0
- package/src/frame/agent/testing/callsite.tsx +5 -0
- package/src/frame/agent/testing/client.ts +99 -0
- package/src/frame/agent/testing/library.ts +3 -0
- package/src/frame/agent/testing/modal.tsx +5 -0
- package/src/frame/agent/testing/review-client.ts +43 -0
- package/src/frame/agent/testing/review-server.ts +31 -0
- package/src/frame/agent/testing/server.ts +72 -0
- package/src/frame/agent/testing/vocabulary-host.ts +20 -0
- package/src/frame/agent/testing/vocabulary.tsx +10 -0
- package/src/frame/agent/vitest.browser.config.ts +6 -0
- package/src/frame/agent/vocabulary.browser.ts +30 -0
- package/src/frame/agent/vocabulary.test.ts +36 -0
- package/src/frame/agent/vocabulary.ts +13 -0
- package/src/frame/agent.ts +2 -0
- package/src/frame/boot-bundle.test.ts +20 -0
- package/src/frame/boot-styles.test.ts +102 -0
- package/src/frame/boot-styles.ts +50 -0
- package/src/frame/boot.test.ts +108 -0
- package/src/frame/boot.ts +205 -0
- package/src/frame/bridge.ts +27 -0
- package/src/frame/devtools-hook.ts +1 -0
- package/src/frame/entry.ts +4 -0
- package/src/frame/export-compiler.test.ts +23 -0
- package/src/frame/export-compiler.ts +18 -0
- package/src/frame/export-page.ts +59 -0
- package/src/frame/export.test.ts +17 -0
- package/src/frame/export.ts +90 -0
- package/src/frame/index.ts +7 -0
- package/src/frame/local-runtime.browser.ts +36 -0
- package/src/frame/page-agent.ts +2 -0
- package/src/frame/readiness.ts +51 -0
- package/src/frame/review-integration.browser.ts +48 -0
- package/src/frame/runtime.browser.ts +71 -0
- package/src/frame/tailwind/README.md +49 -0
- package/src/frame/tailwind/boot-styles.browser.ts +18 -0
- package/src/frame/tailwind/cache.test.ts +53 -0
- package/src/frame/tailwind/cache.ts +20 -0
- package/src/frame/tailwind/load.test.ts +74 -0
- package/src/frame/tailwind/load.ts +66 -0
- package/src/frame/tailwind/recipe.ts +81 -0
- package/src/frame/tailwind/runtime-cache.test.ts +97 -0
- package/src/frame/tailwind/runtime.ts +113 -0
- package/src/frame/tailwind/store.test.ts +104 -0
- package/src/frame/tailwind/store.ts +55 -0
- package/src/frame/tailwind/stylesheets.ts +37 -0
- package/src/frame/tailwind/tailwind.browser.ts +71 -0
- package/src/frame/tailwind/tailwind.test.ts +119 -0
- package/src/frame/tailwind/testing/client.ts +132 -0
- package/src/frame/tailwind/testing/compare.ts +91 -0
- package/src/frame/tailwind/testing/pages.ts +14 -0
- package/src/frame/tailwind/testing/server.ts +89 -0
- package/src/frame/tailwind/vitest.browser.config.ts +7 -0
- package/src/frame/testing/boot-page.ts +3 -0
- package/src/frame/testing/host.ts +60 -0
- package/src/frame/testing/local-host.tsx +33 -0
- package/src/frame/testing/server.ts +120 -0
- package/src/host/BuildLog.test.tsx +40 -0
- package/src/host/BuildLog.tsx +27 -0
- package/src/host/PageFrame.test.tsx +39 -0
- package/src/host/PageFrame.tsx +41 -0
- package/src/host/RuntimeActivity.tsx +75 -0
- package/src/host/activity-state.test.ts +37 -0
- package/src/host/activity-state.ts +69 -0
- package/src/host/agent-source.test.ts +9 -0
- package/src/host/agent-source.ts +14 -0
- package/src/host/agent-validation.test.ts +40 -0
- package/src/host/agent-validation.ts +73 -0
- package/src/host/bridge-request.test.ts +87 -0
- package/src/host/bridge.test.ts +34 -0
- package/src/host/bridge.ts +55 -0
- package/src/host/build-log.test.ts +47 -0
- package/src/host/build-log.ts +29 -0
- package/src/host/clear-cache.test.ts +75 -0
- package/src/host/clear-cache.ts +66 -0
- package/src/host/design-validation.test.ts +38 -0
- package/src/host/design-validation.ts +96 -0
- package/src/host/index.ts +11 -0
- package/src/host/link/index.ts +66 -0
- package/src/host/link/transport.test.ts +10 -0
- package/src/host/link/transport.ts +67 -0
- package/src/host/link/watch.ts +62 -0
- package/src/host/message-values.ts +55 -0
- package/src/host/origin.test.ts +10 -0
- package/src/host/origin.ts +7 -0
- package/src/host/review/README.md +32 -0
- package/src/host/review/index.ts +42 -0
- package/src/host/review/remote.test.ts +21 -0
- package/src/host/review/source.test.ts +19 -0
- package/src/host/review/validation.test.ts +34 -0
- package/src/host/review/validation.ts +55 -0
- package/src/host/runtime-integration.test.ts +29 -0
- package/src/host/source-path.test.ts +14 -0
- package/src/host/validation.ts +111 -0
- package/src/host/vocabulary-validation.test.ts +60 -0
- package/src/link/README.md +115 -0
- package/src/link/barrels.ts +5 -0
- package/src/link/build-cli.ts +12 -0
- package/src/link/build.test.ts +25 -0
- package/src/link/build.ts +99 -0
- package/src/link/commonjs.test.ts +34 -0
- package/src/link/commonjs.ts +39 -0
- package/src/link/examples/server.ts +18 -0
- package/src/link/index.ts +6 -0
- package/src/link/link.browser.ts +66 -0
- package/src/link/local-relay.browser.ts +22 -0
- package/src/link/overrides.test.ts +103 -0
- package/src/link/overrides.ts +69 -0
- package/src/link/page-sources.test.ts +52 -0
- package/src/link/page-sources.ts +69 -0
- package/src/link/source.ts +25 -0
- package/src/link/storage.ts +32 -0
- package/src/link/testing/client.ts +96 -0
- package/src/link/testing/folder.ts +19 -0
- package/src/link/testing/local-client.ts +30 -0
- package/src/link/testing/local-server.ts +26 -0
- package/src/link/testing/local-worker.ts +17 -0
- package/src/link/testing/server.ts +128 -0
- package/src/link/testing/worker.ts +32 -0
- package/src/link/testing-cache.ts +20 -0
- package/src/link/testing-fixtures.ts +16 -0
- package/src/link/types.ts +27 -0
- package/src/link/validation.ts +44 -0
- package/src/link/vitest.browser.config.ts +3 -0
- package/src/markers.ts +18 -0
- package/src/publication/build.ts +27 -0
- package/src/publication/fixtures/build.mjs +2 -0
- package/src/publication/index.ts +3 -0
- package/src/publication/lock.ts +32 -0
- package/src/publication/manifest.ts +14 -0
- package/src/publication/publication.test.ts +89 -0
- package/src/publication/publish.ts +80 -0
- package/src/publication/runtime.ts +28 -0
- package/src/publication/schema.ts +13 -0
- package/src/review-schema.ts +17 -0
- package/src/schema.ts +149 -0
- package/src/storage/db.test.ts +52 -0
- package/src/storage/db.ts +64 -0
- package/src/sw/activity-router.test.ts +53 -0
- package/src/sw/activity.ts +66 -0
- package/src/sw/barrels.ts +44 -0
- package/src/sw/candidates.test.ts +9 -0
- package/src/sw/candidates.ts +14 -0
- package/src/sw/compile.test.ts +152 -0
- package/src/sw/compile.ts +92 -0
- package/src/sw/compiler-columns.ts +44 -0
- package/src/sw/compiler-internals.d.ts +8 -0
- package/src/sw/compiler-plugins.ts +18 -0
- package/src/sw/compiler.test.ts +51 -0
- package/src/sw/compiler.ts +86 -0
- package/src/sw/composition.test.ts +51 -0
- package/src/sw/composition.ts +86 -0
- package/src/sw/content-types.ts +28 -0
- package/src/sw/converted-resolver.test.ts +129 -0
- package/src/sw/converted-router.test.ts +91 -0
- package/src/sw/converted.browser.ts +31 -0
- package/src/sw/converted.test.ts +31 -0
- package/src/sw/converted.ts +64 -0
- package/src/sw/editable-sites.ts +42 -0
- package/src/sw/errors.test.ts +8 -0
- package/src/sw/errors.ts +17 -0
- package/src/sw/index.ts +7 -0
- package/src/sw/integrity.ts +10 -0
- package/src/sw/legacy-storage.ts +18 -0
- package/src/sw/link-activity.test.ts +126 -0
- package/src/sw/link-activity.ts +21 -0
- package/src/sw/link-cache.test.ts +15 -0
- package/src/sw/link-cache.ts +19 -0
- package/src/sw/link-compiler.ts +112 -0
- package/src/sw/link-folder.ts +29 -0
- package/src/sw/link-markdown.test.ts +52 -0
- package/src/sw/link-relay.ts +40 -0
- package/src/sw/link-route.test.ts +150 -0
- package/src/sw/link-route.ts +239 -0
- package/src/sw/link-source.test.ts +31 -0
- package/src/sw/link-source.ts +41 -0
- package/src/sw/markers.test.ts +33 -0
- package/src/sw/markers.ts +128 -0
- package/src/sw/module-transform.test.ts +131 -0
- package/src/sw/module-transform.ts +352 -0
- package/src/sw/package-generation.test.ts +33 -0
- package/src/sw/page-clients.test.ts +37 -0
- package/src/sw/page-clients.ts +45 -0
- package/src/sw/profile.test.ts +21 -0
- package/src/sw/profile.ts +88 -0
- package/src/sw/resolver.test.ts +183 -0
- package/src/sw/resolver.ts +220 -0
- package/src/sw/router-cache.test.ts +78 -0
- package/src/sw/router.ts +320 -0
- package/src/sw/runtime-module.test.ts +61 -0
- package/src/sw/runtime-module.ts +13 -0
- package/src/sw/source-hash.test.ts +7 -0
- package/src/sw/source-hash.ts +37 -0
- package/src/sw/storage.test.ts +108 -0
- package/src/sw/versions.ts +89 -0
- package/src/sw/worker.ts +87 -0
- package/static/README.md +15 -0
- package/static/profile.example.json +15 -0
- package/tsconfig.json +10 -0
- package/vitest.browser.config.ts +4 -0
- package/vitest.config.ts +9 -0
- package/README.md +0 -3
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { init } from "react-grab/core";
|
|
2
|
+
import type { ReactGrabAPI } from "react-grab";
|
|
3
|
+
import { accepts, type AnchorState, type Envelope, type Message, type Rect, type SavedAnchor, type Selection } from "./model.ts";
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
__REACT_GRAB__?: ReactGrabAPI;
|
|
8
|
+
FrameLocators: {
|
|
9
|
+
commentAnchor(element: Element, root: Element): string | null;
|
|
10
|
+
captureLocators(element: Element, root: Element): unknown[];
|
|
11
|
+
resolveComment(root: Element, anchor: string, locators: unknown[]): { element: Element; matchedBy: unknown } | null;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const params = new URLSearchParams(location.hash.slice(1));
|
|
17
|
+
const host = params.get("host");
|
|
18
|
+
const session = params.get("session");
|
|
19
|
+
if (!host || !session) throw new Error("frame bridge requires host origin and session");
|
|
20
|
+
const root = document.getElementById("root");
|
|
21
|
+
if (!root) throw new Error("frame has no page root");
|
|
22
|
+
const api = init({ enabled: true, telemetry: false, freezeReactUpdates: false });
|
|
23
|
+
window.__REACT_GRAB__ = api;
|
|
24
|
+
const overlay = document.createElement("div");
|
|
25
|
+
overlay.dataset["reactGrabIgnore"] = "";
|
|
26
|
+
overlay.id = "frame-pins";
|
|
27
|
+
document.body.append(overlay);
|
|
28
|
+
const shadow = overlay.attachShadow({ mode: "open" });
|
|
29
|
+
let anchors: SavedAnchor[] = [];
|
|
30
|
+
let picking = false;
|
|
31
|
+
let sequence = 0;
|
|
32
|
+
|
|
33
|
+
function send(message: Message, re?: string): void {
|
|
34
|
+
parent.postMessage({ bridge: "page-runtime-v1", session, ...(re ? { re } : {}), message }, host!);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function rect(element: Element): Rect {
|
|
38
|
+
const { left, top, width, height } = element.getBoundingClientRect();
|
|
39
|
+
return { left, top, width, height };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async function select(element: Element): Promise<void> {
|
|
43
|
+
if (!root!.contains(element)) throw new Error("picker selected outside the page root");
|
|
44
|
+
const anchor = window.FrameLocators.commentAnchor(element, root!);
|
|
45
|
+
if (!anchor) throw new Error("picker returned an unanchorable element");
|
|
46
|
+
const marker = element.closest("[data-source]")?.getAttribute("data-source") ?? null;
|
|
47
|
+
const locators = window.FrameLocators.captureLocators(element, root!);
|
|
48
|
+
const box = rect(element);
|
|
49
|
+
const source = await api.getSource(element);
|
|
50
|
+
api.reset();
|
|
51
|
+
await new Promise<void>((resolve) => requestAnimationFrame(() => requestAnimationFrame(() => resolve())));
|
|
52
|
+
const grabSource = source ? `${source.filePath}:${source.lineNumber}:${source.columnNumber}` : null;
|
|
53
|
+
const selection: Selection = {
|
|
54
|
+
id: String(++sequence), anchor, locators, text: element.textContent?.trim() ?? "",
|
|
55
|
+
source: marker, grabSource, component: api.getDisplayName(element), rect: box, html: element.outerHTML,
|
|
56
|
+
};
|
|
57
|
+
send({ type: "selection", selection });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
api.registerPlugin({
|
|
61
|
+
name: "frame-commenting",
|
|
62
|
+
hooks: {
|
|
63
|
+
onElementSelect(element) {
|
|
64
|
+
if (!picking) return;
|
|
65
|
+
picking = false;
|
|
66
|
+
void select(element).catch((error: unknown) => send({ type: "error", error: String(error) }));
|
|
67
|
+
return true;
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
api.setToolbarState({ defaultAction: "comment" });
|
|
72
|
+
|
|
73
|
+
function update(re?: string): void {
|
|
74
|
+
shadow.replaceChildren();
|
|
75
|
+
const states: AnchorState[] = anchors.map((saved, index) => {
|
|
76
|
+
const match = window.FrameLocators.resolveComment(root!, saved.anchor, saved.locators);
|
|
77
|
+
if (!match) return { id: saved.id, identity: null, state: "orphaned", text: null, rect: null, pin: null };
|
|
78
|
+
const box = rect(match.element);
|
|
79
|
+
const pin = document.createElement("button");
|
|
80
|
+
pin.textContent = String(index + 1);
|
|
81
|
+
pin.style.cssText = `position:fixed;left:${box.left}px;top:${box.top}px;width:18px;height:18px;padding:0;border:0;background:#b91c1c;color:white;pointer-events:auto;z-index:2147483647`;
|
|
82
|
+
shadow.append(pin);
|
|
83
|
+
return { id: saved.id, identity: match.element.getAttribute("data-spike-key"), state: match.matchedBy === "anchor" ? "found" : "moved", text: match.element.textContent?.trim() ?? "", rect: box, pin: rect(pin) };
|
|
84
|
+
});
|
|
85
|
+
send({ type: "anchors", anchors: states }, re);
|
|
86
|
+
send({ type: "geometry", scroll: scrollY, width: innerWidth, height: innerHeight });
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
window.addEventListener("message", (event: MessageEvent<Envelope>) => {
|
|
90
|
+
if (!accepts(event, { origin: host!, source: parent, session: session! })) return;
|
|
91
|
+
if (event.data.message.type === "pick") {
|
|
92
|
+
picking = true;
|
|
93
|
+
window.focus();
|
|
94
|
+
api.activate();
|
|
95
|
+
} else if (event.data.message.type === "pins") {
|
|
96
|
+
anchors = event.data.message.anchors;
|
|
97
|
+
update(event.data.id);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
let scheduled = false;
|
|
101
|
+
function schedule(): void {
|
|
102
|
+
if (scheduled) return;
|
|
103
|
+
scheduled = true;
|
|
104
|
+
requestAnimationFrame(() => { scheduled = false; update(); });
|
|
105
|
+
}
|
|
106
|
+
addEventListener("scroll", schedule, true);
|
|
107
|
+
addEventListener("resize", schedule);
|
|
108
|
+
new ResizeObserver(schedule).observe(root);
|
|
109
|
+
new MutationObserver(schedule).observe(root, { subtree: true, childList: true, attributes: true, characterData: true });
|
|
110
|
+
send({ type: "status", phase: "agent-ready" });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "bippy/install-hook-only";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { accepts, cropRect, type Envelope, type Message, type Rect, type Selection } from "./model.ts";
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
__FRAME_HOST__: {
|
|
6
|
+
messages: Envelope[];
|
|
7
|
+
selections: Selection[];
|
|
8
|
+
native: { attempted: boolean; activation: boolean; result: string };
|
|
9
|
+
send(message: Message, id?: string): void;
|
|
10
|
+
compareCapture(input: { png: string; reference: string; rect: Rect }): Promise<{ crop: string; differences: number; sameDimensions: boolean }>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const params = new URLSearchParams(location.search);
|
|
16
|
+
const target = params.get("frame");
|
|
17
|
+
if (!target) throw new Error("host needs a frame URL");
|
|
18
|
+
const frame = document.querySelector("iframe");
|
|
19
|
+
if (!frame) throw new Error("host has no frame element");
|
|
20
|
+
const session = crypto.randomUUID();
|
|
21
|
+
const url = new URL(target);
|
|
22
|
+
url.hash = new URLSearchParams({ host: location.origin, session }).toString();
|
|
23
|
+
const messages: Envelope[] = [];
|
|
24
|
+
const selections: Selection[] = [];
|
|
25
|
+
const native = { attempted: false, activation: false, result: "not attempted" };
|
|
26
|
+
window.__FRAME_HOST__ = {
|
|
27
|
+
messages, selections, native,
|
|
28
|
+
send(message, id) {
|
|
29
|
+
frame.contentWindow!.postMessage({ bridge: "page-runtime-v1", session, ...(id ? { id } : {}), message }, url.origin);
|
|
30
|
+
},
|
|
31
|
+
async compareCapture({ png, reference, rect }) {
|
|
32
|
+
const clip = cropRect(frame.getBoundingClientRect(), rect);
|
|
33
|
+
const load = (data: string) => new Promise<HTMLImageElement>((resolve, reject) => {
|
|
34
|
+
const image = new Image(); image.onload = () => resolve(image); image.onerror = () => reject(new Error("invalid screenshot PNG")); image.src = `data:image/png;base64,${data}`;
|
|
35
|
+
});
|
|
36
|
+
const [full, expected] = await Promise.all([load(png), load(reference)]);
|
|
37
|
+
const canvas = document.createElement("canvas"); canvas.width = clip.width; canvas.height = clip.height;
|
|
38
|
+
const context = canvas.getContext("2d");
|
|
39
|
+
if (!context) throw new Error("host canvas unavailable");
|
|
40
|
+
context.drawImage(full, clip.x, clip.y, clip.width, clip.height, 0, 0, clip.width, clip.height);
|
|
41
|
+
const crop = canvas.toDataURL("image/png");
|
|
42
|
+
const ours = context.getImageData(0, 0, clip.width, clip.height).data;
|
|
43
|
+
context.clearRect(0, 0, clip.width, clip.height); context.drawImage(expected, 0, 0);
|
|
44
|
+
const theirs = context.getImageData(0, 0, clip.width, clip.height).data;
|
|
45
|
+
let differences = 0;
|
|
46
|
+
for (let index = 0; index < ours.length; index += 4) if (ours[index] !== theirs[index] || ours[index + 1] !== theirs[index + 1] || ours[index + 2] !== theirs[index + 2] || ours[index + 3] !== theirs[index + 3]) differences++;
|
|
47
|
+
return { crop, differences, sameDimensions: expected.width === clip.width && expected.height === clip.height };
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
addEventListener("message", (event: MessageEvent<Envelope>) => {
|
|
51
|
+
if (!accepts(event, { origin: url.origin, source: frame.contentWindow, session })) return;
|
|
52
|
+
messages.push(event.data);
|
|
53
|
+
if (event.data.message.type !== "selection") return;
|
|
54
|
+
selections.push(event.data.message.selection);
|
|
55
|
+
if (params.get("capture") !== "1" || native.attempted) return;
|
|
56
|
+
native.attempted = true;
|
|
57
|
+
native.activation = navigator.userActivation.isActive;
|
|
58
|
+
if (!navigator.mediaDevices?.getDisplayMedia) { native.result = "getDisplayMedia unavailable"; return; }
|
|
59
|
+
native.result = "capture chooser pending (no automatic permission)";
|
|
60
|
+
void navigator.mediaDevices.getDisplayMedia({ video: true }).then(
|
|
61
|
+
(stream) => { native.result = "stream acquired"; stream.getTracks().forEach((track) => track.stop()); },
|
|
62
|
+
(error: unknown) => { native.result = String(error); },
|
|
63
|
+
);
|
|
64
|
+
});
|
|
65
|
+
document.querySelector("button")!.addEventListener("click", () => window.__FRAME_HOST__.send({ type: "pick" }));
|
|
66
|
+
frame.src = url.href;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { writeFile } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import type { Browser, Frame, Page } from "@playwright/test";
|
|
4
|
+
import { anchorOutcomes, type AnchorState, type SavedAnchor, type Selection } from "./model.ts";
|
|
5
|
+
import { editedSource, scratch, type PageCopy, type Setup } from "./setup.ts";
|
|
6
|
+
|
|
7
|
+
export type EditResult = { edit: number; found: number; moved: number; orphaned: number; lost: number; states: AnchorState[] };
|
|
8
|
+
export type PageResult = { page: string; selections: Selection[]; edits: EditResult[]; pins: { phase: string; maxError: number; scroll: number; width: number }[]; hookFirst: boolean; renderers: number; errors: string[] };
|
|
9
|
+
export type Capture = { selection: Selection; method: string; native: { attempted: boolean; activation: boolean; result: string }; cropMatches: boolean; pixelDiffs: number | null; crop: string | null };
|
|
10
|
+
export type BrowserResult = { browser: string; version: string; pages: PageResult[]; capture: Capture | null; error: string | null };
|
|
11
|
+
|
|
12
|
+
async function ready(tab: Page, runtime: string): Promise<Frame> {
|
|
13
|
+
if (!tab.frames().some((candidate) => candidate.url().startsWith(runtime))) await tab.waitForEvent("framenavigated", { predicate: (frame) => frame.url().startsWith(runtime), timeout: 60_000 });
|
|
14
|
+
const frame = tab.frames().find((candidate) => candidate.url().startsWith(runtime));
|
|
15
|
+
if (!frame) throw new Error("tenant frame is missing");
|
|
16
|
+
await frame.waitForFunction(() => window.__PAGE_PROBE__?.mounted || window.__PAGE_PROBE__?.errors.length, undefined, { timeout: 60_000 });
|
|
17
|
+
const errors = await frame.evaluate(() => window.__PAGE_PROBE__?.errors);
|
|
18
|
+
if (!errors || errors.length > 0) throw new Error(`frame render failed: ${JSON.stringify(errors)}`);
|
|
19
|
+
await tab.waitForFunction(() => window.__FRAME_HOST__.messages.some((envelope) => envelope.message.type === "status" && envelope.message.phase === "agent-ready"));
|
|
20
|
+
await frame.evaluate(() => document.fonts.ready);
|
|
21
|
+
await frame.locator("#root h2").first().evaluate((element) => element.setAttribute("data-spike-key", "target-3"));
|
|
22
|
+
return frame;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async function pick(tab: Page, frame: Frame, selector: string): Promise<Selection> {
|
|
26
|
+
const target = frame.locator(selector).first();
|
|
27
|
+
await target.scrollIntoViewIfNeeded();
|
|
28
|
+
const count = await tab.evaluate(() => window.__FRAME_HOST__.selections.length);
|
|
29
|
+
const frameBox = await tab.locator("iframe").boundingBox();
|
|
30
|
+
if (!frameBox) throw new Error("tenant frame is invisible");
|
|
31
|
+
const point = await target.evaluate((element) => {
|
|
32
|
+
const rect = element.getBoundingClientRect();
|
|
33
|
+
for (const dx of [Math.min(8, rect.width / 2), rect.width / 2, rect.width - 4]) {
|
|
34
|
+
const dy = rect.height / 2;
|
|
35
|
+
const hit = document.elementFromPoint(rect.left + dx, rect.top + dy);
|
|
36
|
+
if (hit && element.contains(hit)) return { x: rect.left + dx, y: rect.top + dy };
|
|
37
|
+
}
|
|
38
|
+
throw new Error(`picked element is covered: ${element.outerHTML.slice(0, 300)}`);
|
|
39
|
+
});
|
|
40
|
+
await tab.evaluate(() => window.__FRAME_HOST__.send({ type: "pick" }));
|
|
41
|
+
await frame.waitForFunction(() => window.__REACT_GRAB__?.isActive());
|
|
42
|
+
await tab.mouse.move(frameBox.x + point.x, frameBox.y + point.y);
|
|
43
|
+
await tab.waitForTimeout(120);
|
|
44
|
+
await tab.mouse.click(frameBox.x + point.x, frameBox.y + point.y);
|
|
45
|
+
try {
|
|
46
|
+
await tab.waitForFunction((previous) => window.__FRAME_HOST__.selections.length > previous || window.__FRAME_HOST__.messages.some((item) => item.message.type === "error"), count, { timeout: 15_000 });
|
|
47
|
+
} catch (error) {
|
|
48
|
+
const state = await target.evaluate((element) => {
|
|
49
|
+
const rect = element.getBoundingClientRect();
|
|
50
|
+
const grab = window.__REACT_GRAB__;
|
|
51
|
+
return { enabled: grab?.isEnabled(), active: grab?.isActive(), toolbar: grab?.getToolbarState(), selected: grab?.getState().targetElement?.outerHTML.slice(0, 1000), hit: document.elementFromPoint(rect.left + rect.width / 2, rect.top + rect.height / 2)?.outerHTML.slice(0, 1000) };
|
|
52
|
+
});
|
|
53
|
+
await tab.screenshot({ path: join(scratch, "picker-failure.png") });
|
|
54
|
+
throw new Error(`pick ${selector} failed: ${JSON.stringify({ state, frameBox, point })}`, { cause: error });
|
|
55
|
+
}
|
|
56
|
+
const result = await tab.evaluate((index) => ({ selection: window.__FRAME_HOST__.selections[index], errors: window.__FRAME_HOST__.messages.filter((item) => item.message.type === "error") }), count);
|
|
57
|
+
if (!result.selection) throw new Error(`picker failed: ${JSON.stringify(result.errors)}`);
|
|
58
|
+
return result.selection;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
let request = 0;
|
|
62
|
+
async function pins(tab: Page, anchors: SavedAnchor[]): Promise<AnchorState[]> {
|
|
63
|
+
const id = `pins-${++request}`;
|
|
64
|
+
await tab.evaluate(({ anchors, id }) => window.__FRAME_HOST__.send({ type: "pins", anchors }, id), { anchors, id });
|
|
65
|
+
await tab.waitForFunction((id) => window.__FRAME_HOST__.messages.some((envelope) => envelope.re === id), id);
|
|
66
|
+
return tab.evaluate((id) => {
|
|
67
|
+
const response = window.__FRAME_HOST__.messages.find((envelope) => envelope.re === id);
|
|
68
|
+
if (response?.message.type !== "anchors") throw new Error("missing anchor response");
|
|
69
|
+
return response.message.anchors;
|
|
70
|
+
}, id);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async function pinMeasurement(tab: Page, frame: Frame, anchors: SavedAnchor[], phase: string): Promise<PageResult["pins"][number]> {
|
|
74
|
+
if (phase === "initial") await pins(tab, anchors);
|
|
75
|
+
const geometry = await frame.evaluate(() => ({ scroll: scrollY, width: innerWidth }));
|
|
76
|
+
await tab.waitForFunction(({ scroll, width }) => {
|
|
77
|
+
const message = window.__FRAME_HOST__.messages.findLast((envelope) => envelope.message.type === "geometry")?.message;
|
|
78
|
+
return message?.type === "geometry" && message.scroll === scroll && message.width === width;
|
|
79
|
+
}, geometry);
|
|
80
|
+
const states = await tab.evaluate(() => {
|
|
81
|
+
const message = window.__FRAME_HOST__.messages.findLast((envelope) => envelope.message.type === "anchors")?.message;
|
|
82
|
+
if (message?.type !== "anchors") throw new Error("pins did not report after geometry changed");
|
|
83
|
+
return message.anchors;
|
|
84
|
+
});
|
|
85
|
+
const independent = await frame.locator('[data-spike-key="target-0"]').evaluate((element) => {
|
|
86
|
+
const { left, top } = element.getBoundingClientRect();
|
|
87
|
+
const pin = document.getElementById("frame-pins")?.shadowRoot?.querySelector("button")?.getBoundingClientRect();
|
|
88
|
+
if (!pin) throw new Error("pin not drawn");
|
|
89
|
+
return Math.max(Math.abs(left - pin.left), Math.abs(top - pin.top));
|
|
90
|
+
});
|
|
91
|
+
if (states.length !== anchors.length) throw new Error(`expected ${anchors.length} pin reports, received ${states.length}`);
|
|
92
|
+
const errors = states.map((state) => {
|
|
93
|
+
if (!state.rect || !state.pin) throw new Error(`pin ${state.id} has no geometry`);
|
|
94
|
+
return Math.max(Math.abs(state.rect.left - state.pin.left), Math.abs(state.rect.top - state.pin.top));
|
|
95
|
+
});
|
|
96
|
+
return { phase, maxError: Math.max(independent, ...errors), ...geometry };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async function capture(tab: Page, frame: Frame, chromium: boolean, browser: string): Promise<Capture> {
|
|
100
|
+
const selection = await pick(tab, frame, '[data-spike-key="target-0"]');
|
|
101
|
+
const native = await tab.evaluate(() => window.__FRAME_HOST__.native);
|
|
102
|
+
if (!chromium) return { selection, method: "host getDisplayMedia", native, cropMatches: false, pixelDiffs: null, crop: null };
|
|
103
|
+
await tab.waitForTimeout(200);
|
|
104
|
+
const session = await tab.context().newCDPSession(tab);
|
|
105
|
+
const { data } = await session.send("Page.captureScreenshot", { format: "png", captureBeyondViewport: false });
|
|
106
|
+
await session.detach();
|
|
107
|
+
const reference = await frame.locator('[data-spike-key="target-0"]').screenshot();
|
|
108
|
+
const compared = await tab.evaluate((input) => window.__FRAME_HOST__.compareCapture(input), { png: data, reference: reference.toString("base64"), rect: selection.rect });
|
|
109
|
+
const file = join(scratch, `${browser}-crop.png`);
|
|
110
|
+
await writeFile(file, Buffer.from(compared.crop.split(",")[1]!, "base64"));
|
|
111
|
+
await writeFile(join(scratch, `${browser}-tab.png`), Buffer.from(data, "base64"));
|
|
112
|
+
return { selection, method: "Chromium CDP Page.captureScreenshot, host canvas crop", native, cropMatches: compared.sameDimensions && compared.differences === 0, pixelDiffs: compared.differences, crop: file };
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Every saved revision, for the browser that runs the full series. */
|
|
116
|
+
export const ALL_REVISIONS = Array.from({ length: 20 }, (_, index) => index + 1);
|
|
117
|
+
/** The first insert, the first deletion and the final revision, for the other browsers (keeps the harness within gavel's 5-minute fixture limit). */
|
|
118
|
+
export const SAMPLED_REVISIONS = [1, 10, 20];
|
|
119
|
+
|
|
120
|
+
async function measurePage({ tab, setup, copy, result, revisions }: { tab: Page; setup: Setup; copy: PageCopy; result: PageResult; revisions: number[] }): Promise<PageResult> {
|
|
121
|
+
await writeFile(copy.path, copy.baseline);
|
|
122
|
+
await tab.goto(`${setup.host.url}/?frame=${encodeURIComponent(`${setup.runtime.url}/sw/development/frame/${copy.page.id}`)}`);
|
|
123
|
+
let frame = await ready(tab, setup.runtime.url);
|
|
124
|
+
const hook = await frame.evaluate(() => ({ hookFirst: document.scripts[0]?.getAttribute("src") === "/hook.js", renderers: window.__REACT_DEVTOOLS_GLOBAL_HOOK__?.renderers.size ?? 0 }));
|
|
125
|
+
Object.assign(result, hook);
|
|
126
|
+
const selections = result.selections;
|
|
127
|
+
for (let index = 0; index < 3; index++) selections.push(await pick(tab, frame, `[data-spike-key="target-${index}"]`));
|
|
128
|
+
selections.push(await pick(tab, frame, "#root h2"));
|
|
129
|
+
const anchors = selections.map((selection, index) => ({ ...selection, id: `target-${index}` }));
|
|
130
|
+
await frame.evaluate(() => { document.body.style.minHeight = "2600px"; scrollTo(0, 0); });
|
|
131
|
+
const pinRuns = result.pins;
|
|
132
|
+
pinRuns.push(await pinMeasurement(tab, frame, anchors, "initial"));
|
|
133
|
+
await frame.evaluate(() => scrollTo(0, 160));
|
|
134
|
+
await tab.waitForTimeout(80);
|
|
135
|
+
pinRuns.push(await pinMeasurement(tab, frame, anchors, "frame scroll"));
|
|
136
|
+
await tab.locator("iframe").evaluate((element) => { element.style.width = "720px"; element.style.height = "480px"; });
|
|
137
|
+
await tab.waitForTimeout(80);
|
|
138
|
+
pinRuns.push(await pinMeasurement(tab, frame, anchors, "frame resize"));
|
|
139
|
+
const edits = result.edits;
|
|
140
|
+
for (const edit of revisions) {
|
|
141
|
+
await writeFile(copy.path, editedSource(copy, edit));
|
|
142
|
+
await Promise.all([frame.waitForNavigation({ waitUntil: "load" }), frame.evaluate(() => location.reload())]);
|
|
143
|
+
frame = await ready(tab, setup.runtime.url);
|
|
144
|
+
await frame.getByText(`Inserted sibling ${edit}`, { exact: true }).waitFor({ state: "attached", timeout: 10_000 });
|
|
145
|
+
const removed = await frame.locator('[data-spike-key="target-2"]').count();
|
|
146
|
+
if ((edit >= 10) !== (removed === 0)) throw new Error(`${copy.page.id} revision ${edit}: deletion did not render`);
|
|
147
|
+
const states = await pins(tab, anchors);
|
|
148
|
+
const remaining = await frame.locator("[data-spike-key]").evaluateAll((elements) => elements.map((element) => element.getAttribute("data-spike-key")!));
|
|
149
|
+
edits.push({ edit, ...anchorOutcomes(anchors, states, remaining), states });
|
|
150
|
+
}
|
|
151
|
+
const errors = await tab.evaluate(() => window.__FRAME_HOST__.messages.flatMap((envelope) => envelope.message.type === "error" ? [envelope.message.error] : []));
|
|
152
|
+
result.errors.push(...errors);
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export async function measure({ browser, name, setup, revisions }: { browser: Browser; name: string; setup: Setup; revisions: number[] }): Promise<BrowserResult> {
|
|
157
|
+
const context = await browser.newContext({ viewport: { width: 1920, height: 1080 }, deviceScaleFactor: 1 });
|
|
158
|
+
const tab = await context.newPage();
|
|
159
|
+
const pages: PageResult[] = [];
|
|
160
|
+
const result: BrowserResult = { browser: name, version: browser.version(), pages, capture: null, error: null };
|
|
161
|
+
try {
|
|
162
|
+
for (const copy of setup.copies) {
|
|
163
|
+
const measured: PageResult = { page: copy.page.id, selections: [], edits: [], pins: [], hookFirst: false, renderers: 0, errors: [] };
|
|
164
|
+
pages.push(measured);
|
|
165
|
+
try { await measurePage({ tab, setup, copy, result: measured, revisions }); }
|
|
166
|
+
catch (error) { measured.errors.push(String(error)); }
|
|
167
|
+
console.log(`frame-commenting: ${name} ${copy.page.id}: ${JSON.stringify({ picked: measured.selections.length, edits: measured.edits.length, lost: measured.edits.reduce((sum, edit) => sum + edit.lost, 0), errors: measured.errors })}`);
|
|
168
|
+
}
|
|
169
|
+
const errors = pages.flatMap((page) => page.errors);
|
|
170
|
+
if (errors.length > 0) result.error = errors.join("\n");
|
|
171
|
+
const copy = setup.copies[0];
|
|
172
|
+
if (!copy) throw new Error("no capture page");
|
|
173
|
+
await writeFile(copy.path, copy.baseline);
|
|
174
|
+
await tab.goto(`${setup.host.url}/?capture=1&frame=${encodeURIComponent(`${setup.runtime.url}/sw/development/frame/${copy.page.id}`)}`);
|
|
175
|
+
const frame = await ready(tab, setup.runtime.url);
|
|
176
|
+
result.capture = await capture(tab, frame, name === "chromium", name);
|
|
177
|
+
} catch (error) { result.error = error instanceof Error ? `${error.message}\n${error.stack ?? ""}` : String(error); }
|
|
178
|
+
finally { await context.close(); }
|
|
179
|
+
return result;
|
|
180
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { accepts, anchorOutcomes, cropRect, resolvedSource, type AnchorState, type SavedAnchor } from "./model.ts";
|
|
3
|
+
|
|
4
|
+
describe("frame commenting measurements", () => {
|
|
5
|
+
it("rejects generated entry modules as author source", () => {
|
|
6
|
+
expect([
|
|
7
|
+
{ source: "demo/Page.tsx:3:4", grabSource: null },
|
|
8
|
+
{ source: null, grabSource: "demo/Section.tsx:8:null" },
|
|
9
|
+
{ source: null, grabSource: "/entry/demo.js:8:4" },
|
|
10
|
+
{ source: null, grabSource: null },
|
|
11
|
+
].map(resolvedSource)).toEqual([true, true, false, false]);
|
|
12
|
+
});
|
|
13
|
+
it("crops outward at the frame offset without truncating fractional element bounds", () => {
|
|
14
|
+
expect(cropRect({ left: 61, top: 113, width: 800, height: 600 }, { left: 10.5, top: 22.25, width: 93, height: 41.5 })).toEqual({ x: 71, y: 135, width: 94, height: 42 });
|
|
15
|
+
});
|
|
16
|
+
it("counts missing reports, false matches and false orphans as lost", () => {
|
|
17
|
+
const saved: SavedAnchor[] = ["stable", "relocated", "deleted", "wrong", "missing", "false-orphan"].map((id) => ({ id, anchor: id, locators: [], text: id }));
|
|
18
|
+
const state = (id: string, status: AnchorState["state"], text: string | null): AnchorState => ({ id, identity: text, state: status, text, rect: null, pin: null });
|
|
19
|
+
expect(anchorOutcomes(saved, [state("stable", "found", "stable"), state("relocated", "moved", "relocated"), state("deleted", "orphaned", null), state("wrong", "found", "sibling"), state("false-orphan", "orphaned", null)], ["stable", "relocated", "wrong", "missing", "false-orphan"])).toEqual({ found: 1, moved: 1, orphaned: 1, lost: 3 });
|
|
20
|
+
});
|
|
21
|
+
it("rejects the wrong origin, source window, session or bridge", () => {
|
|
22
|
+
const source = {} as Window;
|
|
23
|
+
const expected = { origin: "http://127.0.0.1:1234", source, session: "session" };
|
|
24
|
+
const valid = { origin: expected.origin, source, data: { bridge: "page-runtime-v1", session: "session", message: { type: "pick" } } };
|
|
25
|
+
expect([valid, { ...valid, origin: "https://other.example" }, { ...valid, source: {} as Window }, { ...valid, data: { ...valid.data, session: "stale" } }, { ...valid, data: { ...valid.data, bridge: "other" } }, { ...valid, data: { bridge: "page-runtime-v1", session: "session" } }].map((event) => accepts(event, expected))).toEqual([true, false, false, false, false, false]);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type Rect = { left: number; top: number; width: number; height: number };
|
|
2
|
+
export type SavedAnchor = { id: string; anchor: string; locators: unknown[]; text: string };
|
|
3
|
+
export type AnchorState = { id: string; identity: string | null; state: "found" | "moved" | "orphaned"; text: string | null; rect: Rect | null; pin: Rect | null };
|
|
4
|
+
export type Selection = SavedAnchor & { source: string | null; grabSource: string | null; component: string | null; rect: Rect; html: string };
|
|
5
|
+
export type Message =
|
|
6
|
+
| { type: "pick" }
|
|
7
|
+
| { type: "pins"; anchors: SavedAnchor[] }
|
|
8
|
+
| { type: "selection"; selection: Selection }
|
|
9
|
+
| { type: "anchors"; anchors: AnchorState[] }
|
|
10
|
+
| { type: "status"; phase: string }
|
|
11
|
+
| { type: "error"; error: string }
|
|
12
|
+
| { type: "geometry"; scroll: number; width: number; height: number };
|
|
13
|
+
export type Envelope = { bridge: "page-runtime-v1"; session: string; id?: string; re?: string; message: Message };
|
|
14
|
+
|
|
15
|
+
export function resolvedSource(selection: Pick<Selection, "source" | "grabSource">): boolean {
|
|
16
|
+
return [selection.source, selection.grabSource].some((source) => source !== null && !source.startsWith("/entry/") && /:[1-9]\d*:(?:\d+|null)$/.test(source));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function accepts(event: Pick<MessageEvent, "data" | "origin" | "source">, expected: { origin: string; source: MessageEventSource | null; session: string }): boolean {
|
|
20
|
+
const message: unknown = event.data?.message;
|
|
21
|
+
return event.origin === expected.origin && event.source === expected.source && event.data?.bridge === "page-runtime-v1" && event.data.session === expected.session && message !== null && typeof message === "object" && !Array.isArray(message) && "type" in message && typeof message.type === "string";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function cropRect(frame: Rect, element: Rect): { x: number; y: number; width: number; height: number } {
|
|
25
|
+
if (![...Object.values(frame), ...Object.values(element)].every(Number.isFinite) || element.width <= 0 || element.height <= 0) throw new Error("invalid crop geometry");
|
|
26
|
+
const x = Math.floor(frame.left + element.left);
|
|
27
|
+
const y = Math.floor(frame.top + element.top);
|
|
28
|
+
return { x, y, width: Math.ceil(frame.left + element.left + element.width) - x, height: Math.ceil(frame.top + element.top + element.height) - y };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function anchorOutcomes(saved: SavedAnchor[], states: AnchorState[], remaining: string[]): { found: number; moved: number; orphaned: number; lost: number } {
|
|
32
|
+
const result = { found: 0, moved: 0, orphaned: 0, lost: 0 };
|
|
33
|
+
for (const anchor of saved) {
|
|
34
|
+
const matches = states.filter((state) => state.id === anchor.id);
|
|
35
|
+
const state = matches[0];
|
|
36
|
+
if (matches.length !== 1 || !state || (state.state === "orphaned" ? remaining.includes(anchor.id) : !remaining.includes(anchor.id) || state.text !== anchor.text || state.identity !== anchor.id)) result.lost++;
|
|
37
|
+
else result[state.state]++;
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { markdownTable, type SpikeResults } from "../lib/report.ts";
|
|
2
|
+
import type { BrowserResult } from "./measure.ts";
|
|
3
|
+
import { resolvedSource } from "./model.ts";
|
|
4
|
+
|
|
5
|
+
export type Criterion = { criterion: string; measured: string | number; met: boolean };
|
|
6
|
+
|
|
7
|
+
export function readme(result: SpikeResults, runs: BrowserResult[], criteria: Criterion[]): string {
|
|
8
|
+
const pages = runs.flatMap((run) => run.pages.map((page) => ({ browser: run.browser, ...page })));
|
|
9
|
+
return [
|
|
10
|
+
"# Spike: commenting in a frame", "", `Verdict: ${result.verdict}`, "",
|
|
11
|
+
"## Method", "",
|
|
12
|
+
"Run `pnpm --filter @flanksource/page-runtime spike frame-commenting`. `--serve` leaves the same local harness running for agent-browser inspection (URL in `.tmp/frame-commenting/live-url.txt`).",
|
|
13
|
+
"",
|
|
14
|
+
"Two source pages from the compiler/runtime-set corpus: kitchen-sink PropertiesDemo and facet StatCardExamples. The harness copies their relative source closures into `.tmp/frame-commenting/`, serves those copies as their own roots through RuntimeServer, and uses the compiler spike's actual service-worker compiler and development data-source markers. The runtime set supplies React and the published library modules; the frame runs the Tailwind spike's runtime compiler and facet recipe plus clicky-ui's stylesheet.",
|
|
15
|
+
"",
|
|
16
|
+
"The tenant is a different loopback origin (port) from the host. The iframe uses `allow-scripts allow-same-origin allow-modals`. Its first classic script bundles `bippy/install-hook-only`, before the import map, embedded react-grab/core and React. Picks use React Grab's actual activated picker, physical mouse clicks and onElementSelect hook, then its getSource and getDisplayName APIs. The report records both compiler markers and React Grab's source independently. Missing author source from both paths, or missing component, counts as unresolved. A generated /entry/ wrapper is not an author source. The published facet build's component names can be minified; the table records the actual API name without inventing one.",
|
|
17
|
+
"",
|
|
18
|
+
"The page agent bundles the playground's existing dom-anchor.ts unchanged, including its finder, role/text/heading/landmark and markdown locators. It uses commentAnchor, captureLocators and resolveComment directly. The bridge uses `{bridge: \"page-runtime-v1\", session, id?, re?, message}` and validates origin, source window and session on both ends. The frame draws fixed pins in a shadow root outside the observed page root, re-resolving on mutations, scroll and resize. The host stores selections and requests pins; it owns capture and cropping.",
|
|
19
|
+
"",
|
|
20
|
+
"Each page gets three tracked existing h3 headings (one opts into data-comment-anchor) and an existing h2, all retained through edits. The nonempty data-spike-key attribute is an independent measurement identity: the existing locator builder does not use it. Chromium applies all 20 real saved source revisions per page; Firefox and WebKit apply revisions 1, 10 and 20 (the first insert, the first deletion and the final state), which keeps the harness inside gavel's 5-minute fixture limit. Each revision is saved, explicitly reloading the frame each time and asserting the new revision's inserted text and deletion appear in the DOM: wrap/reposition a heading, add a same-tag preceding sibling, change padding and width, and from revision 10 remove another heading. The original anchors/locators are never recaptured. Every saved anchor is checked against that identity and its original text; a missing report, false orphan or attachment to the wrong element counts as lost, even if the resolver labels it found. Orphans are successful retention outcomes only when the target was actually removed.",
|
|
21
|
+
"",
|
|
22
|
+
"Pins are checked before scroll, after scrolling the frame by 160px, and after resizing it from 1000×650 to 720×480. Reported pin geometry is compared with element geometry and the stable pin is also measured independently from the shadow DOM. Source edits and anchor outcomes below include all measured browsers; timing targets are not part of this spike.",
|
|
23
|
+
"",
|
|
24
|
+
"Capture: in a dedicated final capture phase (`capture=1`), the host calls getDisplayMedia immediately on the first selection message and records transient activation and the actual outcome. Ordinary source/anchor picks do not request a screenshot. No chooser is auto-accepted or capture permission pregranted. Chromium additionally uses the explicitly permitted automation stand-in, CDP Page.captureScreenshot on the host tab, because unattended capture cannot approve the browser/OS share chooser. The host canvas crops at iframe offset + frame-reported element rectangle. The crop is pixel-compared against an independent element-locator screenshot, including fractional-edge rounding. Firefox uses Mozilla's stock build already downloaded by sw-tenant-frame (moz-firefox/BiDi), rather than Playwright's patched Firefox with altered frame storage behavior. That existing macOS browser binary must be present at sw-tenant-frame/out/firefox/Firefox.app. WebKit is Playwright WebKit, not Safari. A capture API or pending chooser alone never counts as a working crop; screenshotBrowsers includes only verified matching crops. pickedElements includes the three additional capture selections; the page table below counts the source/anchor selections.",
|
|
25
|
+
"",
|
|
26
|
+
"## Source resolution", "",
|
|
27
|
+
markdownTable(["Browser", "Page", "Picked", "Unresolved", "Hook first", "Renderers"], pages.map((page) => [page.browser, page.page, page.selections.length, page.selections.filter((pick) => !resolvedSource(pick) || !pick.component).length, page.hookFirst, page.renderers])),
|
|
28
|
+
"",
|
|
29
|
+
markdownTable(["Browser", "Page", "Element", "Compiler source", "React Grab source", "Component"], pages.flatMap((page) => page.selections.map((selection) => [page.browser, page.page, selection.text.replaceAll("|", "/"), selection.source ?? "unresolved", selection.grabSource ?? "unresolved", selection.component ?? "unresolved"]))),
|
|
30
|
+
"",
|
|
31
|
+
"## Pin tracking", "",
|
|
32
|
+
markdownTable(["Browser", "Page", "Phase", "Scroll Y", "Frame width", "Max error px"], pages.flatMap((page) => page.pins.map((pin) => [page.browser, page.page, pin.phase, pin.scroll, pin.width, pin.maxError]))),
|
|
33
|
+
"",
|
|
34
|
+
"## Anchor outcomes per edit", "",
|
|
35
|
+
markdownTable(["Browser", "Page", "Edit", "Re-found", "Moved", "Orphaned", "Lost"], pages.flatMap((page) => page.edits.map((edit) => [page.browser, page.page, edit.edit, edit.found, edit.moved, edit.orphaned, edit.lost]))),
|
|
36
|
+
"",
|
|
37
|
+
"## Screenshot support", "",
|
|
38
|
+
markdownTable(["Browser", "Method", "Host activation", "Native result", "Matching crop", "Pixel differences"], runs.map((run) => [run.browser, run.capture?.method ?? "not reached", run.capture?.native.activation ?? false, (run.capture?.native.result ?? run.error ?? "not reached").replaceAll("|", "/"), run.capture?.cropMatches ?? false, run.capture?.pixelDiffs ?? "unverified"])),
|
|
39
|
+
"",
|
|
40
|
+
"Chromium crop and full-tab PNGs are in `.tmp/frame-commenting/`. Native Firefox/WebKit capture without an acquired stream and matching crop remains unverified; an automation screenshot would not prove the host can capture in those browsers.",
|
|
41
|
+
"",
|
|
42
|
+
"## Go criteria", "",
|
|
43
|
+
markdownTable(["Criterion", "Measured", "Met"], criteria.map((criterion) => [criterion.criterion, criterion.measured, criterion.met])),
|
|
44
|
+
"",
|
|
45
|
+
"## Plan impact", "",
|
|
46
|
+
result.verdict === "no-go"
|
|
47
|
+
? "P5 must address each failing criterion below before shipping frame comments. Source resolution must distinguish author source from a generated entry wrapper; library-rendered elements need useful owner/source metadata rather than accepting /entry/... as a successful source lookup. Any lost anchors require preserving the stored comment as an explicit orphan when target identity cannot be established, and exposing conflicting matches as moved/review-needed rather than silently attaching to unrelated content. This spike leaves shared implementations unchanged. P5 must also keep capture support explicit per browser; Chromium CDP is an automation stand-in and does not prove a host-only getDisplayMedia gesture/permission flow. A user-facing host capture gesture and browser/OS chooser test are still needed for native capture."
|
|
48
|
+
: "The frame split, early hook, picker, locator retention and pin geometry satisfy this corpus. P5 can extract these existing seams into the shared agent. Chromium's automated crop is proven; native host capture still needs an explicit capture gesture and share-chooser verification, with Firefox/WebKit support exposed according to measured capability.",
|
|
49
|
+
"",
|
|
50
|
+
...criteria.filter((criterion) => !criterion.met).map((criterion) => `- Failing: ${criterion.criterion}: ${criterion.measured}.`),
|
|
51
|
+
...runs.filter((run) => run.error).map((run) => `- ${run.browser}: ${run.error!.replaceAll("|", "/").replaceAll("\n", " ")}`),
|
|
52
|
+
"",
|
|
53
|
+
"Measurement corrections: navigating to the exact same frame URL with its bridge fragment can be a same-document navigation. An earlier diagnostic therefore kept the old DOM despite changed files. This harness uses location.reload(), waits for navigation and mount, and checks each rendered revision. React Grab's toolbar enabled flag controls the picker itself; the harness sets only defaultAction instead of disabling that flag. Physical clicks explicitly convert a hittable frame-local point to host coordinates before picker activation. A pending native capture chooser prevented later Chromium pointer events during early diagnostics, so native capture now runs last and is requested only for the capture phase. Browser canvas comparison lives in the bundled host, avoiding tsx/esbuild helper references in serialized page.evaluate functions.",
|
|
54
|
+
"",
|
|
55
|
+
"No shared file, sibling checkout or dependency was changed. This is a development-flavor commenting corpus, not a production-flavor, isolation, markdown-edit or complete P5 implementation. The resolver's existing markdown support is reused but markdown edit survival is not independently measured here.",
|
|
56
|
+
"",
|
|
57
|
+
"## Environment", "",
|
|
58
|
+
markdownTable(["Component", "Version"], Object.entries(result.environment)),
|
|
59
|
+
"",
|
|
60
|
+
].join("\n");
|
|
61
|
+
}
|