hyperframes 0.9.7 → 0.9.9
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/dist/{add-WLXYFHMC.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -28
- package/dist/{asset-UQBTWAMJ.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-LDVXMRHU.js → audio-DDTYFS23.js} +28 -28
- package/dist/{auth-6LVATNTF.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4ISYYVPQ.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-WN2KYIK3.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-HZPGQ2MP.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-3Q2EAZFJ.js → billing-W224NIAM.js} +12 -2
- package/dist/{browser-6XC7MTQL.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-46LJ2VU2.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-FCLAEX5L.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-72AEDDEG.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-6WIX7SWV.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-R2G5OYIA.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-Y2R4N6HQ.js → chunk-2NGBIAUF.js} +25 -20
- package/dist/{chunk-SXGXJAA7.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-PYWJGSWO.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-FLDSZTHP.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-PG356QHK.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-CUCDUPTA.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
- package/dist/{chunk-LIA4GZ4F.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-V6MZZEA7.js → chunk-4W5X4S47.js} +48 -49
- package/dist/{chunk-3Q7UFKFN.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-X3DTUYKZ.js → chunk-62ATHBDS.js} +27 -17
- package/dist/{chunk-PPNA6EBI.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-46HMQ4I3.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-C3FKYBZ4.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-X2PPRHKO.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-P7CVKVPD.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-PUMQDN2T.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-UQH3MOES.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-YHO5SKUR.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-RJ6LXDUC.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-T252SG67.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-HZG42ZYW.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-DZNJD7BH.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-WAURLEUO.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-XFA6NPMP.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-TBCRTIXP.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-OO7U23BR.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-CTPYBHF3.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-QXUDHDJU.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-RWHCRVZV.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-CX6MGY2B.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-IXGZ6YFZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-NEI65CWG.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-P73MHFBX.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-XKTLYF4N.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-KD22R2UE.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-NFNYH6VQ.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-RY7Z6KFS.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-CE7EQUBV.js → chunk-G3ERWPNV.js} +1 -1
- package/dist/{chunk-DOS6S7HW.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-X4K7Q5PT.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-WZGVBZY6.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-7XRS2NDR.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-FYR2GKAA.js → chunk-HUJMTTKR.js} +163 -32
- package/dist/{chunk-LFDPOL45.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-TSCO4XR4.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-XEP7PGXS.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-LCDXHXYH.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2BARV2ZU.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-3LHJHMFK.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-3YJB4QVS.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-IAZ2A7D6.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-GK3OROLS.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3AH6KE6F.js → chunk-NCP3JQ6S.js} +109 -96
- package/dist/{chunk-E3IBPTX7.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-UDY3FS6G.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-7LCZBNX7.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-FYDFHW22.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-SE6O4APZ.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-E4XS2M2E.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-SIJYH7XM.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-SEJ7UBR2.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-YTWTG67C.js → chunk-QUBVGS27.js} +6 -6
- package/dist/{chunk-IOECRDWX.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-HRSZOW3U.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-C7XW5WPZ.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-2X43RFKM.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-ULH6TLE3.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-6IW2HWYI.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-HBCY63DS.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-XXEOJXXY.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-EG7FZSEF.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-IX3R4BKU.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-ZVERYNYS.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-N6O2RQLQ.js → chunk-W5AUD5OL.js} +2 -2
- package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
- package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
- package/dist/{chunk-KDTOB4TD.js → chunk-XTYNW745.js} +1 -1
- package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
- package/dist/chunk-Y3ICFPFK.js +5035 -0
- package/dist/{chunk-AWQE37H3.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-LAZREIJF.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-GBEGZOP3.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-52TVJH4U.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-FEPPMA5F.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-UBQUKWOB.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-UCJ4KC75.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-6YUQ2XAM.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-KGZO4UYR.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-VISYHZKL.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-HCWYCBI2.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-CNKHLEDS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-TS3R7DTD.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-6TNE4FY4.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-YRBYR56R.js → diff-46JK5ZCL.js} +156 -75
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-T57O7KXT.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-PLA77GFC.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-7BTNGNR7.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-IMWCEFSZ.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-QTM2OEFB.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-25FIG2O6.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-C66C5A22.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-MDOI2JO5.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-26OSAZF3.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-276JAPS4.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-AMLBNI5B.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-YIZS4JFA.js → generate-BVJ5XNWP.js} +18 -17
- package/dist/{get-HFEFIRAJ.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-7NH6XYIY.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-HHIAUMBQ.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-SLWPRU6Q.js → history-NKRHKIE2.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-MIPROXSM.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-T56UGI6Z.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-TY7CKC6Q.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-TIF7YHGN.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-72QUKTPE.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-I4JRA37J.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-VGFSEG56.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-K776Z2IS.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-XLTSC66T.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-6V3IKLXF.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-RM6EXBBT.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-HD47X3JE.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-KUDJYDTK.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-TUKVGY7O.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-6BRNY3II.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MLME5LNQ.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-3YTDQKGR.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-IUX642FY.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-INNVFSPU.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-FDQ3NDSX.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-V3TOATHS.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-5WIU4CZL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-JXEVL63B.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-UHWGVCP4.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-W75P6D7E.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-O2ADL5FX.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-6GQQQT7M.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-YRVC6D56.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-4IN3WW5G.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-L4KWXVMH.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-IP7KBRD7.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-73VGDCCH.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-GZ4DBQ5E.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-RX3TJ4NY.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-SNTBG6O2.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-5SHT4TC6.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-GV6MEM2M.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-LJJHQNQ6.js → sherpa-D6FQ3CHN.js} +13 -13
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/references/heygen.md +17 -9
- package/dist/skills/media-use/references/operations.md +14 -13
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
- package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/dist/skills/media-use/scripts/resolve.mjs +3 -1
- package/dist/{skills-NVNRQU7K.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-75S4SIRK.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-MTLH4YHV.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-KS6W3WRC.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-4UCLBL76.js → start-5ZDH643Z.js} +32 -25
- package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-CKnGNPHF.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CdWK2GVp.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-447CJUUM.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-TMPKQRQA.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-V456U5AA.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-NK6K3VRH.js → telemetry-267LV4SC.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/templates-MQ742KVZ.js +173 -0
- package/dist/{timeline-M5URP7QS.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-5OIFB4MD.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ON5WTZV3.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-N3E7T7AW.js → transcribe-WS2STSCJ.js} +23 -22
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-JQOAKPNR.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-737POFN4.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-6IPCQFXI.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-BEZHDPH2.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-OUZSRPKC.js +0 -5035
- package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
- package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
- package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6DKWOG7L.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BYC4C4YY.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6HO6QKYG.js";
|
|
23
23
|
import {
|
|
24
24
|
gotoWhenSent
|
|
25
25
|
} from "./chunk-RXFKSZN2.js";
|
|
26
26
|
import {
|
|
27
27
|
pageNavigationTimeoutMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E2YXF2EP.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BHL4KN3H.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonFileText
|
|
35
35
|
} from "./chunk-EHZESMRB.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
printDeprecationNotice,
|
|
44
44
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-TZBJEKKU.js";
|
|
46
46
|
import {
|
|
47
47
|
failureMessage,
|
|
48
48
|
jsonFailure
|
|
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
async function bundleProjectHtml(projectDir) {
|
|
712
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-NAIDMQFU.js");
|
|
713
713
|
return bundleToSingleHtml(projectDir);
|
|
714
714
|
}
|
|
715
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
728
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
729
729
|
const { ensureBrowser } = await import("./manager-SAXHANEY.js");
|
|
730
730
|
const puppeteer = await import("puppeteer-core");
|
|
731
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-RL6YEPTD.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-DUNSQM6M.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -6,8 +6,9 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
round,
|
|
9
|
-
runFfmpeg
|
|
10
|
-
|
|
9
|
+
runFfmpeg,
|
|
10
|
+
sumOf
|
|
11
|
+
} from "./chunk-A33GFLPY.js";
|
|
11
12
|
|
|
12
13
|
// src/measure/drawn.ts
|
|
13
14
|
import { mkdtempSync, readFileSync, rmSync } from "fs";
|
|
@@ -135,7 +136,7 @@ function readDrawn(clip, jobs, width, height) {
|
|
|
135
136
|
const graph = [
|
|
136
137
|
`[0:v]${[...clip.filters, "setsar=1", `scale=${width}:${height}:flags=bicubic`].join(",")},split=${jobs.length}${tags}`,
|
|
137
138
|
...jobs.map(({ box: [x, y, w, h], frames }, j) => {
|
|
138
|
-
const pick = frames.map((k) => `eq(n\\,${k})`)
|
|
139
|
+
const pick = sumOf(frames.map((k) => `eq(n\\,${k})`));
|
|
139
140
|
return `[d${j}]select=${pick},crop=${w}:${h}:${x}:${y},format=rgb24[e${j}]`;
|
|
140
141
|
})
|
|
141
142
|
].join(";");
|
|
@@ -7,32 +7,15 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NX2X326Z.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CBPBTQBH.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
|
-
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-3AH6KE6F.js";
|
|
23
|
-
import {
|
|
24
|
-
FfmpegUnavailableError,
|
|
25
|
-
decideMediaProxyEligibility,
|
|
26
|
-
getProxyCachePath,
|
|
27
|
-
proxyVariantFor,
|
|
28
|
-
resolveProxies,
|
|
29
|
-
scanProjectMediaCodecMap,
|
|
30
|
-
shouldPrewarmProxy
|
|
31
|
-
} from "./chunk-2BARV2ZU.js";
|
|
32
|
-
import {
|
|
33
|
-
artifactDirectory,
|
|
34
|
-
finishSnapshotRun
|
|
35
|
-
} from "./chunk-UGUYWTWD.js";
|
|
18
|
+
} from "./chunk-BYC4C4YY.js";
|
|
36
19
|
import {
|
|
37
20
|
AUDIT_SEEK_OPTIONS,
|
|
38
21
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -46,24 +29,41 @@ import {
|
|
|
46
29
|
seekCompositionTimeline,
|
|
47
30
|
seekInPage,
|
|
48
31
|
waitForPreferredSeekTarget
|
|
49
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6HO6QKYG.js";
|
|
50
33
|
import {
|
|
51
34
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
52
35
|
} from "./chunk-YGGZ23BB.js";
|
|
53
36
|
import {
|
|
54
37
|
findStageProxyBox
|
|
55
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LTBBFLOM.js";
|
|
39
|
+
import {
|
|
40
|
+
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
41
|
+
STUDIO_PREVIEW_MARK_META
|
|
42
|
+
} from "./chunk-NCP3JQ6S.js";
|
|
43
|
+
import {
|
|
44
|
+
artifactDirectory,
|
|
45
|
+
finishSnapshotRun
|
|
46
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
47
|
+
import {
|
|
48
|
+
FfmpegUnavailableError,
|
|
49
|
+
decideMediaProxyEligibility,
|
|
50
|
+
getProxyCachePath,
|
|
51
|
+
proxyVariantFor,
|
|
52
|
+
resolveProxies,
|
|
53
|
+
scanProjectMediaCodecMap,
|
|
54
|
+
shouldPrewarmProxy
|
|
55
|
+
} from "./chunk-MDMQD6BV.js";
|
|
56
56
|
import {
|
|
57
57
|
resolveAutoProxy
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-S2UKSI3C.js";
|
|
59
59
|
import {
|
|
60
60
|
BrowserCleanupError,
|
|
61
61
|
closeManagedBrowser,
|
|
62
62
|
onStopSignal
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-BHL4KN3H.js";
|
|
64
64
|
import {
|
|
65
65
|
injectTagsAtHeadStart
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
67
67
|
import {
|
|
68
68
|
normalizeErrorMessage
|
|
69
69
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -582,7 +582,7 @@ function proxyFailedDraft(message) {
|
|
|
582
582
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
583
583
|
}
|
|
584
584
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
585
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
585
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-K5CQPNIZ.js");
|
|
586
586
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
587
587
|
}
|
|
588
588
|
function withCapturePreviewMark(html) {
|
|
@@ -644,7 +644,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
644
644
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
645
645
|
}));
|
|
646
646
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
647
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
647
|
+
const { analyzeClipMediaFit } = await import("./src-RL6YEPTD.js");
|
|
648
648
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
649
649
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
650
650
|
}
|
|
@@ -785,7 +785,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
785
785
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
786
786
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
787
787
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
788
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
788
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-K5CQPNIZ.js");
|
|
789
789
|
return withCapturePreviewMark(
|
|
790
790
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
791
791
|
);
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
warnUnknownEnumValues,
|
|
59
59
|
wrapInlineScriptWithErrorBoundary,
|
|
60
60
|
wrapScopedCompositionScript
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
62
62
|
import {
|
|
63
63
|
cssVariableName
|
|
64
64
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
collectExternalStyles,
|
|
71
71
|
lintHyperframeHtml
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-XX77LLFJ.js";
|
|
73
73
|
import {
|
|
74
74
|
readTextFile
|
|
75
75
|
} from "./chunk-WVRAFHJU.js";
|
|
@@ -1338,15 +1338,45 @@ function assignHfIds(body) {
|
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
1340
|
function ensureHfIds(html) {
|
|
1341
|
+
if (alreadyStamped(html)) return html;
|
|
1341
1342
|
const { document, wrapped } = parseFragmentOrDocument(html);
|
|
1342
1343
|
if (!document.body) return html;
|
|
1343
1344
|
assignHfIds(document.body);
|
|
1344
1345
|
return wrapped ? document.body.innerHTML || "" : document.toString();
|
|
1345
1346
|
}
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1347
|
+
var isFragment = (html) => !/^(?:<!doctype|<html[\s>/])/i.test(html.replace(/^(?:\s|<!--(?:>|->|[\s\S]*?-->))*/, ""));
|
|
1348
|
+
function alreadyStamped(html) {
|
|
1349
|
+
const tags = startTags(html);
|
|
1350
|
+
if (!tags) return false;
|
|
1351
|
+
const body = isFragment(html) ? -1 : tags.findIndex((tag) => tag.name === "body");
|
|
1352
|
+
if (!isFragment(html) && !opensHeadThenBody(html, tags, body)) return false;
|
|
1353
|
+
return tags.slice(body + 1).every(
|
|
1354
|
+
(tag) => !IMPLIED.has(tag.name) && tag.name !== "table" && (EXCLUDED_TAGS.has(tag.name) || hasHfId(html, tag))
|
|
1349
1355
|
);
|
|
1356
|
+
}
|
|
1357
|
+
var HEAD_CONTENT = /* @__PURE__ */ new Set(["meta", "link", "base", "title", "style", "script"]);
|
|
1358
|
+
function opensHeadThenBody(html, tags, body) {
|
|
1359
|
+
const [first, head] = tags;
|
|
1360
|
+
if (body < 0 || first?.name !== "html" || head?.name !== "head") return false;
|
|
1361
|
+
const inHead = tags.slice(2, body);
|
|
1362
|
+
return inHead.every((tag) => HEAD_CONTENT.has(tag.name)) && closesHead(html, inHead.at(-1) ?? head, tags[body]);
|
|
1363
|
+
}
|
|
1364
|
+
function closesHead(html, last, body) {
|
|
1365
|
+
const from = RAW_TEXT.has(last.name) ? rawTextEnd(html, last.name, last.bracket) : last.bracket;
|
|
1366
|
+
const between = html.slice(from, html.lastIndexOf("<", body.nameEnd));
|
|
1367
|
+
const marks = between.matchAll(/<!--[\s\S]*?-->|<\/head\s*>/gi);
|
|
1368
|
+
return from >= 0 && [...marks].some((mark) => !mark[0].startsWith("<!--"));
|
|
1369
|
+
}
|
|
1370
|
+
function hasHfId(html, tag) {
|
|
1371
|
+
const open = html.slice(tag.nameEnd, tag.bracket);
|
|
1372
|
+
const name = /\sdata-hf-id\s*=\s*/i.exec(outsideQuotes(open));
|
|
1373
|
+
if (!name) return false;
|
|
1374
|
+
const value = open.slice(name.index + name[0].length);
|
|
1375
|
+
const quote = value[0] === '"' || value[0] === "'" ? value[0] : "";
|
|
1376
|
+
return quote ? value.length > 1 && value[1] !== quote : /^[^\s>]/.test(value);
|
|
1377
|
+
}
|
|
1378
|
+
function parseFragmentOrDocument(html) {
|
|
1379
|
+
const wrapped = isFragment(html);
|
|
1350
1380
|
const { document } = wrapped ? parseHTML(`<!DOCTYPE html><html><head></head><body>${html}</body></html>`) : parseHTML(html);
|
|
1351
1381
|
return { document, wrapped };
|
|
1352
1382
|
}
|
|
@@ -2781,6 +2811,8 @@ function extractCompiledHtmlParityContract(html) {
|
|
|
2781
2811
|
import { createHash as createHash2 } from "crypto";
|
|
2782
2812
|
var hash = (text) => createHash2("sha1").update(text).digest("hex").slice(0, 16);
|
|
2783
2813
|
function addScenePartsManifest(html, ignore = []) {
|
|
2814
|
+
if (!html.includes(SCENE_PART_ATTR))
|
|
2815
|
+
return html;
|
|
2784
2816
|
const doc = parseHTMLContent(html);
|
|
2785
2817
|
const parts = [...doc.querySelectorAll(`[${SCENE_PART_ATTR}]`)];
|
|
2786
2818
|
if (parts.length === 0)
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZD3MK4H5.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -4,12 +4,6 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
uploadAssetViaDirectUpload
|
|
9
|
-
} from "./chunk-CE7EQUBV.js";
|
|
10
|
-
import {
|
|
11
|
-
HyperframesCloudClient
|
|
12
|
-
} from "./chunk-6A45RKAK.js";
|
|
13
7
|
import {
|
|
14
8
|
STEADY_BEAT_CONFIDENCE,
|
|
15
9
|
envelope,
|
|
@@ -23,10 +17,16 @@ import {
|
|
|
23
17
|
snapper,
|
|
24
18
|
tempoOf
|
|
25
19
|
} from "./chunk-HBAUU3IK.js";
|
|
20
|
+
import {
|
|
21
|
+
uploadAssetViaDirectUpload
|
|
22
|
+
} from "./chunk-G3ERWPNV.js";
|
|
26
23
|
import {
|
|
27
24
|
refreshIfNeeded,
|
|
28
25
|
resolveCloudBaseUrl
|
|
29
26
|
} from "./chunk-TSQZ3DSC.js";
|
|
27
|
+
import {
|
|
28
|
+
HyperframesCloudClient
|
|
29
|
+
} from "./chunk-3XJM7XZN.js";
|
|
30
30
|
import {
|
|
31
31
|
buildAuthHeaders,
|
|
32
32
|
tryResolveCredential
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCuts
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7RM3TB62.js";
|
|
10
10
|
import {
|
|
11
11
|
grey,
|
|
12
12
|
readClip,
|
|
13
13
|
round,
|
|
14
14
|
videoClip,
|
|
15
15
|
writeImage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A33GFLPY.js";
|
|
17
17
|
|
|
18
18
|
// src/measure/events.ts
|
|
19
19
|
var EVENT_W = 160;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
HyperframesApiError
|
|
9
|
+
} from "./chunk-3XJM7XZN.js";
|
|
10
|
+
import {
|
|
11
|
+
errorBox
|
|
12
|
+
} from "./chunk-5LOZWO2M.js";
|
|
13
|
+
import {
|
|
14
|
+
failCommand
|
|
15
|
+
} from "./chunk-66W5IWLO.js";
|
|
16
|
+
|
|
17
|
+
// src/cloud/errors.ts
|
|
18
|
+
var ERROR_CODE_HINTS = {
|
|
19
|
+
hyperframes_project_too_large: "The zip exceeded the 200 MB limit. Run `hyperframes cloud render --dry-run` to see what stays in it, then add only verified-unneeded paths to `.hyperframesignore`.",
|
|
20
|
+
hyperframes_render_not_found: "The render_id no longer exists \u2014 either soft-deleted or never created.",
|
|
21
|
+
invalid_parameter: "Check the listed parameter against `hyperframes cloud render --help` for the accepted values.",
|
|
22
|
+
authentication_failed: "Run `hyperframes auth status` to confirm your credential; `hyperframes auth login` to re-auth.",
|
|
23
|
+
rate_limit_exceeded: "Retry after the duration in the Retry-After header."
|
|
24
|
+
};
|
|
25
|
+
function hintCode(err) {
|
|
26
|
+
if (err.code === "invalid_parameter" && /^File too large\b/.test(err.message)) {
|
|
27
|
+
return "hyperframes_project_too_large";
|
|
28
|
+
}
|
|
29
|
+
return err.code;
|
|
30
|
+
}
|
|
31
|
+
function reportApiError(stage, err, options = {}) {
|
|
32
|
+
const hints = { ...ERROR_CODE_HINTS, ...options.extraHints };
|
|
33
|
+
if (err instanceof HyperframesApiError) {
|
|
34
|
+
if (err.status === 404 && options.notFound) {
|
|
35
|
+
errorBox("Not found", options.notFound);
|
|
36
|
+
failCommand();
|
|
37
|
+
}
|
|
38
|
+
const code = hintCode(err);
|
|
39
|
+
const hint = code ? hints[code] : void 0;
|
|
40
|
+
const title = `${stage} (HTTP ${err.status})`;
|
|
41
|
+
if (hint) {
|
|
42
|
+
errorBox(title, err.message, hint);
|
|
43
|
+
} else if (options.suggestion) {
|
|
44
|
+
errorBox(title, err.message, options.suggestion);
|
|
45
|
+
} else if (err.code) {
|
|
46
|
+
errorBox(title, err.message, `code: ${err.code}`);
|
|
47
|
+
} else {
|
|
48
|
+
errorBox(title, err.message);
|
|
49
|
+
}
|
|
50
|
+
failCommand();
|
|
51
|
+
}
|
|
52
|
+
if (err instanceof Error) {
|
|
53
|
+
errorBox(stage, err.message, options.suggestion);
|
|
54
|
+
failCommand();
|
|
55
|
+
}
|
|
56
|
+
errorBox(stage, String(err), options.suggestion);
|
|
57
|
+
failCommand();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
reportApiError
|
|
62
|
+
};
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
formatVariableValidationIssue,
|
|
24
24
|
validateVariables
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-W5AUD5OL.js";
|
|
26
26
|
import {
|
|
27
27
|
extractCompositionMetadata
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JHILL4BN.js";
|
|
29
29
|
import {
|
|
30
30
|
failCommand,
|
|
31
31
|
failUsage
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TJ2USKCK.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-WVRAFHJU.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-NAIDMQFU.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
updateCheckDisabled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TZBJEKKU.js";
|
|
10
10
|
import {
|
|
11
11
|
hostAnswers
|
|
12
12
|
} from "./chunk-BR2JQQC5.js";
|
|
@@ -19,6 +19,9 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
isUnattended
|
|
21
21
|
} from "./chunk-J3RXEDR2.js";
|
|
22
|
+
import {
|
|
23
|
+
VERSION
|
|
24
|
+
} from "./chunk-AH6MUQQC.js";
|
|
22
25
|
|
|
23
26
|
// src/utils/skillsUpdateCheck.ts
|
|
24
27
|
import { mkdirSync, readFileSync as readFileSync2, writeFileSync } from "fs";
|
|
@@ -294,12 +297,19 @@ function asSkillsManifest(data, sourceLabel) {
|
|
|
294
297
|
}
|
|
295
298
|
return m;
|
|
296
299
|
}
|
|
300
|
+
var ManifestHttpError = class extends Error {
|
|
301
|
+
status;
|
|
302
|
+
constructor(status, url) {
|
|
303
|
+
super(`HTTP ${status} fetching ${url}`);
|
|
304
|
+
this.status = status;
|
|
305
|
+
}
|
|
306
|
+
};
|
|
297
307
|
async function fetchManifest(url) {
|
|
298
308
|
const controller = new AbortController();
|
|
299
309
|
const timeout = setTimeout(() => controller.abort(), FETCH_TIMEOUT_MS);
|
|
300
310
|
try {
|
|
301
311
|
const res = await fetch(url, { signal: controller.signal, headers: { Connection: "close" } });
|
|
302
|
-
if (!res.ok) throw new
|
|
312
|
+
if (!res.ok) throw new ManifestHttpError(res.status, url);
|
|
303
313
|
return asSkillsManifest(await res.json(), url);
|
|
304
314
|
} finally {
|
|
305
315
|
clearTimeout(timeout);
|
|
@@ -334,6 +344,9 @@ async function remoteHeadSha(repoSlug2) {
|
|
|
334
344
|
return null;
|
|
335
345
|
}
|
|
336
346
|
}
|
|
347
|
+
function cliReleaseTag(version) {
|
|
348
|
+
return /^\d+\.\d+\.\d+$/.test(version) ? `v${version}` : null;
|
|
349
|
+
}
|
|
337
350
|
function resolveLocalManifest(source) {
|
|
338
351
|
const direct = source.endsWith(".json") ? source : join(source, MANIFEST_FILE);
|
|
339
352
|
if (existsSync(direct)) return JSON.parse(readFileSync(direct, "utf8"));
|
|
@@ -341,9 +354,17 @@ function resolveLocalManifest(source) {
|
|
|
341
354
|
if (existsSync(skillsRoot)) return buildManifest(skillsRoot, { source: skillsRoot });
|
|
342
355
|
throw new Error(`No skills manifest found at: ${source}`);
|
|
343
356
|
}
|
|
344
|
-
async function
|
|
345
|
-
|
|
346
|
-
|
|
357
|
+
async function fetchTagManifest(repoSlug2, tag) {
|
|
358
|
+
try {
|
|
359
|
+
return await fetchManifest(
|
|
360
|
+
`https://raw.githubusercontent.com/${repoSlug2}/${tag}/${MANIFEST_FILE}`
|
|
361
|
+
);
|
|
362
|
+
} catch (err) {
|
|
363
|
+
if (err instanceof ManifestHttpError && err.status === 404) return null;
|
|
364
|
+
throw err;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
async function fetchMainManifest(repoSlug2) {
|
|
347
368
|
const sha = await remoteHeadSha(repoSlug2);
|
|
348
369
|
if (sha) {
|
|
349
370
|
try {
|
|
@@ -355,18 +376,34 @@ async function fetchRemoteManifest(source) {
|
|
|
355
376
|
}
|
|
356
377
|
return fetchManifest(`https://raw.githubusercontent.com/${repoSlug2}/main/${MANIFEST_FILE}`);
|
|
357
378
|
}
|
|
379
|
+
async function fetchRemoteManifest(source, cliVersion) {
|
|
380
|
+
if (source?.startsWith("http")) return { manifest: await fetchManifest(source), ref: null };
|
|
381
|
+
const repoSlug2 = source ?? DEFAULT_REPO_SLUG;
|
|
382
|
+
const tag = cliReleaseTag(cliVersion ?? "");
|
|
383
|
+
const atTag = tag ? await fetchTagManifest(repoSlug2, tag) : null;
|
|
384
|
+
if (tag && atTag) return { manifest: atTag, ref: tag };
|
|
385
|
+
return { manifest: await fetchMainManifest(repoSlug2), ref: "main" };
|
|
386
|
+
}
|
|
358
387
|
async function resolveLatestManifest(source, cwd = process.cwd(), opts = {}) {
|
|
359
388
|
if (source && (source.startsWith(".") || isAbsolute(source))) {
|
|
360
|
-
return resolveLocalManifest(source);
|
|
389
|
+
return { manifest: resolveLocalManifest(source), ref: null };
|
|
361
390
|
}
|
|
362
391
|
if (!source && !opts.canonical) {
|
|
363
392
|
const repoManifest = findRepoManifest(cwd);
|
|
364
|
-
if (repoManifest)
|
|
393
|
+
if (repoManifest) {
|
|
394
|
+
return {
|
|
395
|
+
manifest: JSON.parse(readFileSync(repoManifest, "utf8")),
|
|
396
|
+
ref: null
|
|
397
|
+
};
|
|
398
|
+
}
|
|
365
399
|
}
|
|
366
|
-
return fetchRemoteManifest(source);
|
|
400
|
+
return fetchRemoteManifest(source, opts.cliVersion);
|
|
367
401
|
}
|
|
368
402
|
async function checkSkills(opts = {}) {
|
|
369
|
-
const latest = await resolveLatestManifest(opts.source, opts.cwd, {
|
|
403
|
+
const { manifest: latest, ref } = await resolveLatestManifest(opts.source, opts.cwd, {
|
|
404
|
+
canonical: opts.canonical,
|
|
405
|
+
cliVersion: opts.cliVersion
|
|
406
|
+
});
|
|
370
407
|
const skillNames = Object.keys(latest.skills);
|
|
371
408
|
const root = locateInstall(skillNames, { dir: opts.dir, cwd: opts.cwd, home: opts.home });
|
|
372
409
|
const lock = root ? readSkillLock(lockPathForScope(root.scope, opts)) : null;
|
|
@@ -386,7 +423,8 @@ async function checkSkills(opts = {}) {
|
|
|
386
423
|
updateAvailable: diff.updateAvailable,
|
|
387
424
|
summary: diff.summary,
|
|
388
425
|
skills: diff.skills,
|
|
389
|
-
foreign
|
|
426
|
+
foreign,
|
|
427
|
+
ref
|
|
390
428
|
};
|
|
391
429
|
}
|
|
392
430
|
|
|
@@ -406,7 +444,7 @@ function cacheFresh(lastSkillsCheck, now) {
|
|
|
406
444
|
}
|
|
407
445
|
async function refreshSkillsCache() {
|
|
408
446
|
if (!await hostAnswers("github.com")) return;
|
|
409
|
-
const result = await checkSkills({ canonical: true });
|
|
447
|
+
const result = await checkSkills({ canonical: true, cliVersion: VERSION });
|
|
410
448
|
if (result.location) {
|
|
411
449
|
const config = readConfigFresh();
|
|
412
450
|
config.lastSkillsCheck = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -475,6 +513,7 @@ export {
|
|
|
475
513
|
retiredSkillNotice,
|
|
476
514
|
presentSkills,
|
|
477
515
|
hyperframesSkillNames,
|
|
516
|
+
cliReleaseTag,
|
|
478
517
|
checkSkills,
|
|
479
518
|
refreshSkillsCache,
|
|
480
519
|
invalidateSkillsCache,
|