hyperframes 0.9.12 → 0.9.14
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-NLR4EVAF.js → add-JNKCTPWJ.js} +19 -18
- package/dist/{agentPromptGenerator-S3GWYMVC.js → agentPromptGenerator-DSF7AEVE.js} +9 -9
- package/dist/{animatedGifPrep-YU7IOD5D.js → animatedGifPrep-BIEUMGB3.js} +9 -9
- package/dist/api.js +53 -30
- package/dist/{asset-7NPBAXDA.js → asset-V6JAJRCF.js} +5 -5
- package/dist/{assetCataloger-VKJIQCYP.js → assetCataloger-SCLH2WAC.js} +10 -10
- package/dist/{audio-ZNVUZH44.js → audio-JX76VDCY.js} +25 -24
- package/dist/{auth-PTVZNLE6.js → auth-TRE4ASYT.js} +6 -6
- package/dist/{autoUpdate-QJPCV7FB.js → autoUpdate-D5UUCIOR.js} +4 -4
- package/dist/avatars-26EUVWXR.js +168 -0
- package/dist/{backgroundChecks-UA6LCZAG.js → backgroundChecks-RM5GWZIW.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-W4RXBUNE.js → batchRender-5ZEQ6U4N.js} +8 -8
- package/dist/{beats-IG7C72YF.js → beats-3YW7MGZY.js} +27 -19
- package/dist/{benchmark-YUD3XIT2.js → benchmark-MYQTWUO3.js} +15 -15
- package/dist/{billing-5YSYJJ2V.js → billing-2X3JNNM4.js} +100 -23
- package/dist/{browser-TZILXH5J.js → browser-CQSY36GL.js} +8 -8
- package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
- package/dist/{capture-MICLAF6V.js → capture-IK5GIWOS.js} +29 -32
- package/dist/{capture-R77HOGLQ.js → capture-NWBNWBIX.js} +5 -5
- package/dist/{captureCompositionFrame-WBMFZHEF.js → captureCompositionFrame-KR3PELMO.js} +17 -17
- package/dist/{catalog-AMPL57XF.js → catalog-2Q73F42B.js} +20 -19
- package/dist/{catch-up-WQ7ZRRFT.js → catch-up-JP3FL3FX.js} +8 -8
- package/dist/{check-ZPBF3X5D.js → check-UIMXDUPK.js} +51 -50
- package/dist/{checkAudio-IG3BOW2G.js → checkAudio-CSX4G35O.js} +15 -15
- package/dist/{checkBrowser-AIUIKFMJ.js → checkBrowser-MTCJVJYJ.js} +43 -42
- package/dist/{chunk-B3IE7CN2.js → chunk-2BDSLTEG.js} +10 -10
- package/dist/{chunk-URJ7T6T6.js → chunk-2L4HQ5K4.js} +1 -1
- package/dist/{chunk-RFTLWXEX.js → chunk-2NHPNI42.js} +11 -11
- package/dist/{chunk-EPCVE3OX.js → chunk-2OIONPKY.js} +3 -3
- package/dist/{chunk-WTGG734B.js → chunk-2SYOEZ2Z.js} +5 -5
- package/dist/{chunk-HY64QA63.js → chunk-2YT656R2.js} +22 -10
- package/dist/{chunk-NTHJJ6JT.js → chunk-35RZMUTX.js} +7 -7
- package/dist/{chunk-LIN633KG.js → chunk-3B7TDQEW.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-BOIW3CIU.js → chunk-3BHDAXDA.js} +5 -9
- package/dist/{chunk-VWQY3A64.js → chunk-3CXUZSLE.js} +2 -2
- package/dist/{chunk-5WHGO5XU.js → chunk-4MY6FPX4.js} +1 -1
- package/dist/{chunk-V6HV2IDT.js → chunk-4NE6CBMW.js} +1 -1
- package/dist/{chunk-JS6ZTPYC.js → chunk-53UV2EUT.js} +3 -3
- package/dist/{chunk-6IFY3ZQC.js → chunk-5ENBFVPD.js} +5 -5
- package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
- package/dist/{chunk-VECINIPA.js → chunk-6FOO4QTU.js} +2 -2
- package/dist/{chunk-6R2PED3X.js → chunk-6OSVMSGV.js} +10 -10
- package/dist/{chunk-JKSASCBT.js → chunk-6UM5C4R6.js} +2 -2
- package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
- package/dist/{chunk-N6FGHJ7X.js → chunk-6ZRGEVAM.js} +97 -26
- package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
- package/dist/{chunk-6KV3CMY2.js → chunk-7LQVFIO4.js} +4 -16
- package/dist/{chunk-3IKLV3D4.js → chunk-7NPHPQH5.js} +2 -2
- package/dist/{chunk-OJTXXFYO.js → chunk-7X3UDKJK.js} +1 -1
- package/dist/{chunk-XZP5OW5V.js → chunk-AKE744C5.js} +1 -1
- package/dist/{chunk-64ZWPFAX.js → chunk-AOJBIFKU.js} +2 -2
- package/dist/{chunk-OQKAP6X4.js → chunk-AWV4F5TS.js} +2 -2
- package/dist/{chunk-X5EOH44V.js → chunk-B2RMMRJB.js} +1 -1
- package/dist/{chunk-MWHTLXG4.js → chunk-B3CSMKM7.js} +1 -1
- package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
- package/dist/{chunk-7XKWBMBL.js → chunk-BNUN7KXZ.js} +2 -2
- package/dist/{chunk-H7H7XNYY.js → chunk-BXCPOMS3.js} +11 -9
- package/dist/{chunk-TSQZ3DSC.js → chunk-BY7PZB6H.js} +1 -1
- package/dist/{chunk-BONBJJ35.js → chunk-CKEOCCMK.js} +1 -1
- package/dist/{chunk-42TYQPES.js → chunk-CMPHS5E6.js} +2 -2
- package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
- package/dist/{chunk-XX77LLFJ.js → chunk-CZ5NNJ6H.js} +120 -25
- package/dist/{chunk-C3NC67BB.js → chunk-D3FZQL5R.js} +8 -8
- package/dist/chunk-D3UCUI7G.js +68 -0
- package/dist/{chunk-VM6T3Z6B.js → chunk-DD47NQJZ.js} +1 -1
- package/dist/{chunk-2VZVMCV6.js → chunk-DSIGJUNY.js} +1 -1
- package/dist/{chunk-E2YXF2EP.js → chunk-DTU4XJNP.js} +4 -4
- package/dist/{chunk-4XGASFTP.js → chunk-DTZSKJV5.js} +3 -3
- package/dist/{chunk-7RM3TB62.js → chunk-DVJUBMS7.js} +1 -1
- package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
- package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
- package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
- package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
- package/dist/{chunk-BW2RIJKV.js → chunk-FF3VKFCN.js} +163 -98
- package/dist/{chunk-WQ4SMZDF.js → chunk-FQFWGAON.js} +2 -2
- package/dist/{chunk-J3RXEDR2.js → chunk-FYZFURBN.js} +2 -2
- package/dist/{chunk-ZLN3AJKT.js → chunk-FZRTCVU6.js} +1 -1
- package/dist/{chunk-YEBIOQRI.js → chunk-GY7D2OEQ.js} +3 -3
- package/dist/chunk-HNZ2FZIB.js +45 -0
- package/dist/{chunk-2GICKZ3I.js → chunk-HOCC4J5C.js} +1 -1
- package/dist/{chunk-4J4EGANW.js → chunk-HVIQQCLM.js} +16 -16
- package/dist/{chunk-PKLZ5PV2.js → chunk-HZSAOL5O.js} +2 -2
- package/dist/{chunk-3DWH6Z5U.js → chunk-I5PI43EI.js} +1 -1
- package/dist/{chunk-KT4KPBI7.js → chunk-IO3BC2ZK.js} +3 -3
- package/dist/{chunk-4H4DR36N.js → chunk-IOPE4LJ2.js} +1 -1
- package/dist/{chunk-QRCORKYC.js → chunk-IPZ3QGDO.js} +2 -2
- package/dist/{chunk-LV5SL4YW.js → chunk-K5CK4G75.js} +3 -3
- package/dist/{chunk-2VYAX3ZD.js → chunk-L24GJQNZ.js} +16 -12
- package/dist/{chunk-WJD3GVAA.js → chunk-LISUH6KH.js} +1 -1
- package/dist/chunk-LSUM6RTW.js +20 -0
- package/dist/{chunk-ZD3MK4H5.js → chunk-LZYXYJMX.js} +1 -1
- package/dist/{chunk-LO3EX3YP.js → chunk-M34AOUVK.js} +7 -7
- package/dist/{chunk-5LOZWO2M.js → chunk-M3JU24AI.js} +1 -1
- package/dist/{chunk-NQYW4IYN.js → chunk-MWPPZOY5.js} +4 -4
- package/dist/{chunk-KDOJX2HU.js → chunk-MY2W7VWC.js} +15 -15
- package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
- package/dist/{chunk-73EXHUMD.js → chunk-NBUPR3ZF.js} +1 -1
- package/dist/{chunk-AHLDGEH5.js → chunk-NLEIM52W.js} +84 -22
- package/dist/{chunk-XJG65BB2.js → chunk-NWFIYKEI.js} +10 -10
- package/dist/{chunk-2P5DTXUN.js → chunk-NZTYGWRK.js} +1 -1
- package/dist/{chunk-N74N2I2K.js → chunk-O4ONYFY3.js} +1 -1
- package/dist/{chunk-QFZ3ZSXI.js → chunk-O4ZD7TVR.js} +18 -2
- package/dist/{chunk-FLXZ4GZI.js → chunk-OHN3OJQQ.js} +1 -1
- package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
- package/dist/{chunk-S2UKSI3C.js → chunk-PA27AW3Y.js} +1 -1
- package/dist/{chunk-X6XIY4JY.js → chunk-PCY67JUL.js} +303 -29
- package/dist/{chunk-SG4YBQPY.js → chunk-PYPW33ET.js} +2 -2
- package/dist/{chunk-Z2DJSEQC.js → chunk-QSEHVJFA.js} +75 -219
- package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
- package/dist/{chunk-OAFGA2FR.js → chunk-SAAJ2O7A.js} +1 -1
- package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
- package/dist/{chunk-6NKEEHFR.js → chunk-SSBAETRX.js} +6 -6
- package/dist/{chunk-AUYRWWFL.js → chunk-T32JKZX3.js} +3 -3
- package/dist/{chunk-A33GFLPY.js → chunk-T4FLVFQE.js} +1 -1
- package/dist/{chunk-P7Y2YCOF.js → chunk-TESXTEV5.js} +1 -1
- package/dist/{chunk-Q3IT7I2K.js → chunk-TRK77R5G.js} +1 -1
- package/dist/{chunk-EBUA6NWH.js → chunk-TTBCQFRY.js} +2 -2
- package/dist/{chunk-LR5NVYZT.js → chunk-U22NZEQV.js} +2 -2
- package/dist/{chunk-WWBEAKTO.js → chunk-UXS7VE75.js} +1 -1
- package/dist/{chunk-R7EKEIAK.js → chunk-VD5G4Y6U.js} +1 -1
- package/dist/{chunk-ABI256T5.js → chunk-W7ITBVJE.js} +4 -4
- package/dist/{chunk-FC4WF2VQ.js → chunk-WAH2X7FF.js} +2 -2
- package/dist/{chunk-FPR57WRR.js → chunk-WEWXIQPN.js} +1 -1
- package/dist/{chunk-SSZTRWKQ.js → chunk-WXYV47JX.js} +4 -4
- package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
- package/dist/{chunk-FFUBISTD.js → chunk-X46MRJYK.js} +1 -1
- package/dist/{chunk-UH62KSYV.js → chunk-XMOWL46H.js} +3 -3
- package/dist/{chunk-VUMGJLRB.js → chunk-YBR4L5JA.js} +1 -1
- package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
- package/dist/{chunk-QOF7XZEI.js → chunk-ZE2QZHUH.js} +2 -2
- package/dist/{chunk-ETYQYG6Q.js → chunk-ZFZXGZTX.js} +27 -18
- package/dist/{chunk-AVNF52HR.js → chunk-ZNHWAGMH.js} +1 -1
- package/dist/{chunk-Q225NLQL.js → chunk-ZSAKJRZB.js} +6 -6
- package/dist/{chunk-7W5ZDOLW.js → chunk-ZZBO3GF5.js} +15 -4
- package/dist/{clean-343XOJT3.js → clean-P3SZCIFU.js} +25 -25
- package/dist/cli.js +69 -68
- package/dist/{cloud-2YS272KD.js → cloud-G7YQIVI7.js} +6 -6
- package/dist/{cloud-B6SGMECY.js → cloud-RFM3PYTR.js} +6 -5
- package/dist/{cloudrun-N737TJRC.js → cloudrun-LXZT5UDK.js} +11 -11
- package/dist/{colors-HRL7QSVG.js → colors-CRTWLZ5S.js} +2 -2
- package/dist/{compare-KXCTMXFX.js → compare-BHQHEOMX.js} +39 -38
- package/dist/{compiler-KKIYPREA.js → compiler-V72QWKGC.js} +6 -6
- package/dist/{component-ZUDCIGGD.js → component-6GDCT3GK.js} +6 -6
- package/dist/{compositions-FNFI2QOA.js → compositions-JM6HKCRF.js} +19 -19
- package/dist/{curve-5BMBBCSZ.js → curve-Y7JRXLIJ.js} +16 -16
- package/dist/{cuts-OKUA6BWH.js → cuts-LDVDQTRL.js} +17 -17
- package/dist/{delete-FYMFNSED.js → delete-NCZIKWHU.js} +12 -11
- package/dist/{deploy-YZU2YITA.js → deploy-R4OEJEB6.js} +10 -7
- package/dist/{describeProject-E44RWBJL.js → describeProject-4GKZTYHA.js} +13 -13
- package/dist/{destroy-IQLGADZM.js → destroy-6XY4WQWY.js} +2 -2
- package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
- package/dist/{diff-5X6I6EG5.js → diff-C53GPSNU.js} +55 -36
- package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
- package/dist/{dist-PCVNVAVC.js → dist-TI44VPHO.js} +6 -4
- package/dist/{dist-PUHEYGA5.js → dist-TJZSSDR2.js} +14 -14
- package/dist/{docs-D22SOQEZ.js → docs-WYJSJGSF.js} +2 -2
- package/dist/{doctor-3DXWW63F.js → doctor-V4RICWU2.js} +16 -16
- package/dist/{energy-4HY7COXH.js → energy-S5Z7CGSB.js} +17 -17
- package/dist/{events-JAGPGK7R.js → events-6HROTYLC.js} +14 -6
- package/dist/{events-TFVE7AUR.js → events-QKJE5XRN.js} +5 -5
- package/dist/{events-ULVZ7V2C.js → events-RAJGQK7Y.js} +19 -19
- package/dist/{extract-5KTFRIH2.js → extract-RYGWEC5V.js} +17 -17
- package/dist/{face-T6D34LR7.js → face-IWRDW2QO.js} +17 -17
- package/dist/{feedback-QQQYENCU.js → feedback-HQTDLLPE.js} +17 -16
- package/dist/{ffmpeg-A2O4HSRD.js → ffmpeg-BX334YEK.js} +9 -9
- package/dist/{figma-4RODZMCT.js → figma-P6U76KGI.js} +5 -5
- package/dist/fontLocalizeCli.js +14 -14
- package/dist/{frames-L43TSSAY.js → frames-G2WYTVWV.js} +18 -18
- package/dist/{generate-7HZKBLPZ.js → generate-ZUE2AVOB.js} +42 -22
- package/dist/{get-MXKV4NUL.js → get-7C3UC46A.js} +12 -11
- package/dist/{gpuPolicy-TKHFDEH2.js → gpuPolicy-5ZVYYWXN.js} +9 -9
- package/dist/{grade-compare-KNXFKMFI.js → grade-compare-IS3OVI7R.js} +43 -42
- package/dist/{heifImagePrep-L2EY67F2.js → heifImagePrep-FBLLKI3P.js} +10 -10
- package/dist/{help-YN43ORVX.js → help-2MPB27YU.js} +3 -3
- package/dist/{history-VAMN53LT.js → history-Q5EBBFPW.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-QKEEGK2R.js → info-TNG5QGFC.js} +13 -13
- package/dist/{init-AAA44PYH.js → init-UFPBBWC7.js} +46 -38
- package/dist/{ink-V6CEFYB6.js → ink-UTPJHGZR.js} +17 -17
- package/dist/{inspect-5JGTWCYO.js → inspect-KXKKPWKX.js} +41 -40
- package/dist/{installer-PUQYKLXZ.js → installer-UTFXM6KP.js} +7 -6
- package/dist/{keyframes-FJNUSXAF.js → keyframes-S6V36BW6.js} +10 -10
- package/dist/{lambda-RYCG67CX.js → lambda-XWHALRKM.js} +22 -22
- package/dist/{layout-DXIPVY3W.js → layout-SSVKZKCZ.js} +41 -40
- package/dist/{lint-JZADWIMR.js → lint-OQWGRKG5.js} +15 -15
- package/dist/{lintProject-EV3EEBY3.js → lintProject-Z2TEXMY4.js} +4 -4
- package/dist/{list-YRLUJMP6.js → list-FYLBMEL7.js} +13 -12
- package/dist/{localPage-KIFKMB2B.js → localPage-4GSU6N3J.js} +9 -9
- package/dist/{login-H74JDEJ2.js → login-JKFCYHRS.js} +10 -9
- package/dist/{logout-UMDA3HDE.js → logout-YACQMRZN.js} +5 -4
- package/dist/{look-WVGBBYFE.js → look-WQ2DOKXH.js} +17 -17
- package/dist/{manager-T633Z2L4.js → manager-F4F4A734.js} +10 -10
- package/dist/{measure-DWQHHY3H.js → measure-XIFLTAMC.js} +11 -11
- package/dist/{media-treatment-JHDDWRFU.js → media-treatment-S3LHQSQQ.js} +21 -21
- package/dist/{media-use-5SDC3MCE.js → media-use-NFM3ZXCF.js} +7 -5
- package/dist/{models-6SOW23N6.js → models-G4KNLV66.js} +17 -17
- package/dist/{motionShot-B4K6LEU3.js → motionShot-IJGA5CBH.js} +20 -20
- package/dist/{normalize-audio-O6STMACD.js → normalize-audio-UP54N6J4.js} +15 -15
- package/dist/{open-VRCTXBD3.js → open-TAEKCYDB.js} +19 -18
- package/dist/{parakeetRunner-MNOIBRZZ.js → parakeetRunner-WFA4K7BH.js} +14 -14
- package/dist/{pipeline-N3M6VXBC.js → pipeline-SNENB5MZ.js} +12 -12
- package/dist/{play-5WUZGJ4B.js → play-QTYMY453.js} +32 -31
- package/dist/{policies-EERREOZJ.js → policies-EV7XPSQC.js} +2 -2
- package/dist/{preflight-XZZXHV42.js → preflight-CZUKW3CW.js} +10 -10
- package/dist/{present-W7OODR7J.js → present-KVHQECWG.js} +25 -25
- package/dist/{preview-NOQSYZAD.js → preview-6U62DM4P.js} +30 -29
- package/dist/{probe-WFIYEXM5.js → probe-UCVL3JDC.js} +17 -17
- package/dist/{producer-HI6M6755.js → producer-A4RPG3XL.js} +1 -1
- package/dist/{progress-STSH2JRY.js → progress-FWJJMPIQ.js} +2 -2
- package/dist/{projectConfig-PUAOWUNS.js → projectConfig-FIW6FPZW.js} +10 -9
- package/dist/{prompts-ZEVFT7US.js → prompts-27EPTM64.js} +2 -2
- package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
- package/dist/{publish-7W46NJFT.js → publish-VKSABRA4.js} +26 -22
- package/dist/{refresh-4FQFQ2SW.js → refresh-L5C2HPMC.js} +5 -4
- package/dist/{remove-background-SYHNGASQ.js → remove-background-CJJ54SHA.js} +16 -16
- package/dist/{render-GYQZQB2O.js → render-2YY64XPU.js} +354 -71
- package/dist/{render-74JIGKTN.js → render-G54RA46B.js} +307 -76
- package/dist/{render-EF7Y6YYC.js → render-I2MWX5GH.js} +10 -10
- package/dist/{render-batch-JYYP4RXA.js → render-batch-X562GNRH.js} +13 -13
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-BKFLETMU.js → resolver-GC4ZLQPV.js} +7 -6
- package/dist/{reverse-NEC42AID.js → reverse-2KZQ65Y7.js} +1 -1
- package/dist/{run-Z6AW753F.js → run-65M6ECM2.js} +6 -5
- package/dist/{sherpa-2ROE6TLC.js → sherpa-SLRKS4SR.js} +13 -13
- package/dist/{sites-EAGXQOKI.js → sites-O7A7G3ZQ.js} +2 -2
- package/dist/skills/hyperframes/SKILL.md +3 -1
- package/dist/skills/hyperframes/references/format.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/hyperframes-cli/references/cloud.md +10 -10
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/media-use/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
- package/dist/skills/media-use/references/resolve.md +2 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +1 -1
- package/dist/skills/media-use/scripts/lib/heygen-search.mjs +4 -2
- package/dist/skills/media-use/scripts/lib/match.mjs +17 -0
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +20 -2
- package/dist/skills/media-use/scripts/resolve.mjs +52 -9
- package/dist/{skills-R56MSU2Y.js → skills-SOXKW42T.js} +10 -10
- package/dist/{skillsUpdateCheck-I6G3MQWO.js → skillsUpdateCheck-4RUEBT6B.js} +5 -5
- package/dist/{snapshot-J2NU7WTJ.js → snapshot-KIWJWZGW.js} +53 -52
- package/dist/{src-5XQ6A3VE.js → src-ABVBEVVK.js} +13 -13
- package/dist/{src-L7UBHHKB.js → src-DYWF24IK.js} +8 -8
- package/dist/{start-VUMSNLKC.js → start-EADJCDST.js} +55 -32
- package/dist/{staticProjectServer-2JYB7RLI.js → staticProjectServer-UCHJYCR6.js} +25 -24
- package/dist/{status-SUK4I7TS.js → status-E4OUQSHN.js} +68 -9
- package/dist/studio/assets/{hyperframes-player-Dw-0BWQW.js → hyperframes-player-CfYFgHV8.js} +1 -1
- package/dist/studio/assets/{index-BNZeN67E.js → index-COfhX0Gz.js} +4 -4
- package/dist/studio/assets/{index-NwWb1W86.js → index-Cj5x3rVD.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-MEZKFJBY.js → studio-api-RGOTUJXP.js} +14 -14
- package/dist/{studioServer-XGR4YPXX.js → studioServer-72COILB5.js} +76 -69
- package/dist/{sync-ZIMGTQEN.js → sync-5Z5OQFB3.js} +17 -17
- package/dist/{telemetry-WGNNQUSF.js → telemetry-5WZGQCKA.js} +3 -3
- package/dist/{telemetry-PT5KSL5T.js → telemetry-OQ2JM37Y.js} +6 -6
- package/dist/templates/_shared/AGENTS.md +7 -6
- package/dist/templates/_shared/CLAUDE.md +7 -6
- package/dist/{templates-7AT45DZI.js → templates-YH5CUHHN.js} +146 -27
- package/dist/{timeline-IH422KGC.js → timeline-IWU2T2BX.js} +27 -27
- package/dist/{tokens-ZVJMHDTM.js → tokens-F7IBDWGE.js} +5 -5
- package/dist/{transcribe-QIZGXMR5.js → transcribe-GL3J3JB3.js} +12 -12
- package/dist/{transcribe-FRRXA77O.js → transcribe-YXDOCF32.js} +40 -27
- package/dist/{tts-IMW74GBX.js → tts-QRQEYR3Q.js} +4 -4
- package/dist/{update-E2RIAV5T.js → update-MR5NL567.js} +15 -13
- package/dist/{updateCheck-EII7XDIR.js → updateCheck-ONT2ZVAF.js} +4 -4
- package/dist/{upgrade-BKGP2TM7.js → upgrade-BJEGLKQS.js} +7 -7
- package/dist/{urlDownloader-FOXK4FYP.js → urlDownloader-3PV5WURP.js} +8 -8
- package/dist/{validate-M4FZVBRP.js → validate-GTTWJYCS.js} +31 -31
- package/dist/{video-AVEGMBDM.js → video-VP6X6YL5.js} +12 -12
- package/dist/{voices-E5RUGLJK.js → voices-3EO2NQ5Q.js} +40 -20
- package/dist/warmCheck.js +51 -50
- package/package.json +1 -1
- package/dist/chunk-P3KBDUNS.js +0 -29
|
@@ -4,10 +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
|
-
TIMING_TOLERANCE_SECONDS,
|
|
9
|
-
resolveCompositionDuration
|
|
10
|
-
} from "./chunk-CZGHFATT.js";
|
|
11
7
|
import {
|
|
12
8
|
cleanAssetUrl,
|
|
13
9
|
collectSubCompositionSrcs,
|
|
@@ -21,6 +17,10 @@ import {
|
|
|
21
17
|
resolveLocalAssetCandidates,
|
|
22
18
|
resolveProjectRelativeSrc
|
|
23
19
|
} from "./chunk-WVRAFHJU.js";
|
|
20
|
+
import {
|
|
21
|
+
TIMING_TOLERANCE_SECONDS,
|
|
22
|
+
resolveCompositionDuration
|
|
23
|
+
} from "./chunk-CZGHFATT.js";
|
|
24
24
|
import {
|
|
25
25
|
findFfBinary
|
|
26
26
|
} from "./chunk-HYRPH6LL.js";
|
|
@@ -28,32 +28,33 @@ import {
|
|
|
28
28
|
COLOR_GRADING_SOURCE_TAGS,
|
|
29
29
|
COLOR_GROUP_TAG,
|
|
30
30
|
COMPOSITION_ATTRIBUTES,
|
|
31
|
-
COMPOSITION_VARIABLE_TYPES,
|
|
32
|
-
FONT_ALIAS_KEYS,
|
|
33
|
-
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
34
|
-
HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
35
31
|
MEDIA_START_BASIS_ATTR,
|
|
36
|
-
VIEWPORT_META_SIZE_RE,
|
|
37
32
|
checkSubCompositionUsability,
|
|
38
33
|
compositionOriginSeconds,
|
|
39
34
|
cutToHostSlots,
|
|
40
|
-
extractMediaSrcMutations,
|
|
41
|
-
isCompositionVariable,
|
|
42
|
-
isSafeMediaUrl,
|
|
43
35
|
parseNumeric,
|
|
44
36
|
readAuthoredDurationSeconds,
|
|
45
37
|
readClipTiming,
|
|
46
38
|
readDataDurationSeconds,
|
|
47
|
-
resolveAliasDisplayName,
|
|
48
39
|
resolveMediaDuration,
|
|
49
40
|
resolveMediaStartSeconds,
|
|
50
41
|
rewriteAssetPath,
|
|
51
42
|
spansOverlap,
|
|
52
43
|
validateColorGradingContract
|
|
53
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-OHQRQE7F.js";
|
|
54
45
|
import {
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
COMPOSITION_VARIABLE_TYPES2 as COMPOSITION_VARIABLE_TYPES,
|
|
47
|
+
FONT_ALIAS_KEYS2 as FONT_ALIAS_KEYS,
|
|
48
|
+
HTML_BODY_CSS_HEIGHT_FIRST_RE2 as HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
49
|
+
HTML_BODY_CSS_WIDTH_FIRST_RE2 as HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
50
|
+
VIEWPORT_META_SIZE_RE2 as VIEWPORT_META_SIZE_RE,
|
|
51
|
+
encodeUrlPath,
|
|
52
|
+
extractMediaSrcMutations2 as extractMediaSrcMutations,
|
|
53
|
+
isCompositionVariable,
|
|
54
|
+
isSafeMediaUrl,
|
|
55
|
+
parseFontShorthand,
|
|
56
|
+
resolveAliasDisplayName2 as resolveAliasDisplayName
|
|
57
|
+
} from "./chunk-CUCP7FKH.js";
|
|
57
58
|
import {
|
|
58
59
|
parseHTML
|
|
59
60
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -5692,6 +5693,69 @@ function findLinkedClipFindings(ctx) {
|
|
|
5692
5693
|
}
|
|
5693
5694
|
return findings;
|
|
5694
5695
|
}
|
|
5696
|
+
var AUDIO_ATTRIBUTES = {
|
|
5697
|
+
"data-automation": { list: "lanes", noun: "automation", item: "Lane" },
|
|
5698
|
+
"data-fx-chain": { list: "nodes", noun: "chain", item: "Node" }
|
|
5699
|
+
};
|
|
5700
|
+
var AUDIO_ATTRIBUTE_VERSION = 1;
|
|
5701
|
+
function audioAttributeShapeError(attr, json) {
|
|
5702
|
+
const { list, noun, item } = AUDIO_ATTRIBUTES[attr];
|
|
5703
|
+
const parsed = parseEnvelope(json);
|
|
5704
|
+
if (typeof parsed === "string") return parsed;
|
|
5705
|
+
if (parsed.version !== AUDIO_ATTRIBUTE_VERSION) {
|
|
5706
|
+
return `unsupported ${noun} version: ${String(parsed.version)}`;
|
|
5707
|
+
}
|
|
5708
|
+
const entries = parsed[list];
|
|
5709
|
+
if (!Array.isArray(entries)) return `it is missing a \`${list}\` array`;
|
|
5710
|
+
for (const [i, entry] of entries.entries()) {
|
|
5711
|
+
const reason = entryShapeError(attr, item, i, entry);
|
|
5712
|
+
if (reason) return reason;
|
|
5713
|
+
}
|
|
5714
|
+
return null;
|
|
5715
|
+
}
|
|
5716
|
+
function parseEnvelope(json) {
|
|
5717
|
+
let raw;
|
|
5718
|
+
try {
|
|
5719
|
+
raw = JSON.parse(json);
|
|
5720
|
+
} catch (err) {
|
|
5721
|
+
return `it is not valid JSON (${err.message})`;
|
|
5722
|
+
}
|
|
5723
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw))
|
|
5724
|
+
return "it is not a JSON object";
|
|
5725
|
+
return raw;
|
|
5726
|
+
}
|
|
5727
|
+
function entryShapeError(attr, item, i, entry) {
|
|
5728
|
+
if (typeof entry !== "object" || entry === null) return `${item} ${i} is not an object`;
|
|
5729
|
+
const fields = entry;
|
|
5730
|
+
if (attr === "data-fx-chain") {
|
|
5731
|
+
return typeof fields.type === "string" ? null : `Node ${i} has no effect \`type\``;
|
|
5732
|
+
}
|
|
5733
|
+
if (typeof fields.target !== "string") return `Lane ${i} has no \`target\``;
|
|
5734
|
+
if (!Array.isArray(fields.points)) return `Lane ${i} is missing a \`points\` array`;
|
|
5735
|
+
return null;
|
|
5736
|
+
}
|
|
5737
|
+
function findUnreadableAudioAttributeFindings(ctx) {
|
|
5738
|
+
const findings = [];
|
|
5739
|
+
for (const tag of ctx.tags) {
|
|
5740
|
+
for (const attr of Object.keys(AUDIO_ATTRIBUTES)) {
|
|
5741
|
+
const value = readDecodedAttr(tag.raw, attr);
|
|
5742
|
+
if (value === null || value === "") continue;
|
|
5743
|
+
const reason = audioAttributeShapeError(attr, value);
|
|
5744
|
+
if (!reason) continue;
|
|
5745
|
+
const id = readAttr(tag.raw, "id");
|
|
5746
|
+
const { list } = AUDIO_ATTRIBUTES[attr];
|
|
5747
|
+
findings.push({
|
|
5748
|
+
code: "audio_attribute_unreadable",
|
|
5749
|
+
severity: "error",
|
|
5750
|
+
message: `${id ? `#${id}` : `<${tag.name}>`} has a \`${attr}\` the render cannot read: ${reason}. The render fails on it, locally and in the cloud.`,
|
|
5751
|
+
elementId: id || void 0,
|
|
5752
|
+
fixHint: `Write it as {"version": ${AUDIO_ATTRIBUTE_VERSION}, "${list}": [...]}, or remove the attribute.`,
|
|
5753
|
+
snippet: truncateSnippet(tag.raw)
|
|
5754
|
+
});
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
return findings;
|
|
5758
|
+
}
|
|
5695
5759
|
function tweensVolumeInSameCall(script, id) {
|
|
5696
5760
|
const selector = new RegExp(`#${escapeRegExp(id)}(?![\\w-])`, "g");
|
|
5697
5761
|
for (let hit = selector.exec(script); hit; hit = selector.exec(script)) {
|
|
@@ -6423,7 +6487,8 @@ var mediaRules = [
|
|
|
6423
6487
|
findAudioGroupCarveAttrFindings,
|
|
6424
6488
|
// audio_group_holds_elements
|
|
6425
6489
|
findAudioGroupHoldsElementsFindings,
|
|
6426
|
-
findLinkedClipFindings
|
|
6490
|
+
findLinkedClipFindings,
|
|
6491
|
+
findUnreadableAudioAttributeFindings
|
|
6427
6492
|
];
|
|
6428
6493
|
function findVolumeTweenOverridesGainFindings(ctx) {
|
|
6429
6494
|
const boosted = ctx.tags.filter((tag) => isMediaTag(tag.name)).map((tag) => ({ tag, volume: Number(readAttr(tag.raw, "data-volume") ?? "1") })).filter((entry) => Number.isFinite(entry.volume) && entry.volume !== 1).filter((entry) => !readDecodedAttr(entry.tag.raw, "data-automation")).map((entry) => ({ ...entry, id: readAttr(entry.tag.raw, "id") })).filter((entry) => Boolean(entry.id));
|
|
@@ -10339,14 +10404,20 @@ function resolveUsedFontNames(value, properties, resolving = /* @__PURE__ */ new
|
|
|
10339
10404
|
return resolveUsedFontNames(referenced, properties, new Set(resolving).add(property));
|
|
10340
10405
|
});
|
|
10341
10406
|
}
|
|
10407
|
+
function usedFamilyList(decl) {
|
|
10408
|
+
if (isFontFaceDeclaration(decl)) return "";
|
|
10409
|
+
if (decl.prop.toLowerCase() !== "font") return decl.value;
|
|
10410
|
+
const shorthand = parseFontShorthand(decl.value);
|
|
10411
|
+
return shorthand.certain ? shorthand.families : "";
|
|
10412
|
+
}
|
|
10413
|
+
var FONT_FAMILY_PROPS = /^font(?:-family)?$/i;
|
|
10342
10414
|
function extractUsedFontFamilies(styles) {
|
|
10343
10415
|
const used = [];
|
|
10344
10416
|
const seen = /* @__PURE__ */ new Set();
|
|
10345
10417
|
const properties = collectFontCustomProperties(styles);
|
|
10346
10418
|
for (const style of styles) {
|
|
10347
|
-
parseFontCss(style.content)?.walkDecls(
|
|
10348
|
-
|
|
10349
|
-
for (const name of resolveUsedFontNames(decl.value, properties)) {
|
|
10419
|
+
parseFontCss(style.content)?.walkDecls(FONT_FAMILY_PROPS, (decl) => {
|
|
10420
|
+
for (const name of resolveUsedFontNames(usedFamilyList(decl), properties)) {
|
|
10350
10421
|
if (!GENERIC_FAMILIES.has(name) && !seen.has(name)) {
|
|
10351
10422
|
seen.add(name);
|
|
10352
10423
|
used.push(name);
|
|
@@ -10448,9 +10519,33 @@ var fontRules = [
|
|
|
10448
10519
|
code: "font_family_without_font_face",
|
|
10449
10520
|
severity: "error",
|
|
10450
10521
|
message: `Font ${undeclared.length === 1 ? "family" : "families"} used without @font-face declaration: ${undeclared.join(", ")}. These are not in the auto-resolved font list, so the renderer cannot supply them automatically. Text will fall back to a generic font, producing incorrect typography in the video.`,
|
|
10451
|
-
fixHint: "Add @font-face { font-family: '...'; src: url('capture/assets/fonts/...woff2'); } for each font family, pointing to the captured .woff2 files
|
|
10522
|
+
fixHint: "Add @font-face { font-family: '...'; src: url('capture/assets/fonts/...woff2'); } for each font family, pointing to the captured .woff2 files, or switch to a Google Fonts family. An OS font such as PingFang SC or Hiragino Sans renders locally from the installed copy, but a cloud render has no copy and refuses it."
|
|
10452
10523
|
});
|
|
10453
10524
|
return findings;
|
|
10525
|
+
},
|
|
10526
|
+
({ styles, rawSource, options, locate }) => {
|
|
10527
|
+
if (isRegistrySourceFile(options.filePath) || isRegistryInstalledFile(rawSource)) return [];
|
|
10528
|
+
const findings = [];
|
|
10529
|
+
for (const style of styles) {
|
|
10530
|
+
parseFontCss(style.content)?.walkAtRules(/^font-face$/i, (rule) => {
|
|
10531
|
+
let family = null;
|
|
10532
|
+
let sources = "";
|
|
10533
|
+
rule.walkDecls((decl) => {
|
|
10534
|
+
const prop = decl.prop.toLowerCase();
|
|
10535
|
+
if (prop === "font-family") family = normalizeUsedFontName(decl.value);
|
|
10536
|
+
else if (prop === "src") sources += ` ${decl.value}`;
|
|
10537
|
+
});
|
|
10538
|
+
if (!family || !/\blocal\s*\(/i.test(sources) || /\burl\s*\(/i.test(sources)) return;
|
|
10539
|
+
findings.push({
|
|
10540
|
+
...locate(style, rule.source?.start?.offset),
|
|
10541
|
+
code: "font_face_local_only",
|
|
10542
|
+
severity: "warning",
|
|
10543
|
+
message: `@font-face '${family}' only names a font installed on this machine (src: local()). A local render uses the installed copy; a cloud render or another machine has none and falls back to a different font.`,
|
|
10544
|
+
fixHint: "Add a url() source to the font file (.woff2) inside the project, or use a Google Fonts family, so every render draws the same glyphs."
|
|
10545
|
+
});
|
|
10546
|
+
});
|
|
10547
|
+
}
|
|
10548
|
+
return findings;
|
|
10454
10549
|
}
|
|
10455
10550
|
];
|
|
10456
10551
|
function uniqueFontLocation(styles, families, locate) {
|
|
@@ -10458,10 +10553,9 @@ function uniqueFontLocation(styles, families, locate) {
|
|
|
10458
10553
|
const properties = collectFontCustomProperties(styles);
|
|
10459
10554
|
for (const style of styles) {
|
|
10460
10555
|
try {
|
|
10461
|
-
postcss3.parse(style.content).walkDecls(
|
|
10462
|
-
|
|
10463
|
-
if (!
|
|
10464
|
-
return;
|
|
10556
|
+
postcss3.parse(style.content).walkDecls(FONT_FAMILY_PROPS, (decl) => {
|
|
10557
|
+
const named = resolveUsedFontNames(usedFamilyList(decl), properties);
|
|
10558
|
+
if (!named.some((name) => families.includes(name))) return;
|
|
10465
10559
|
locations.push(locate(style, decl.source?.start?.offset));
|
|
10466
10560
|
});
|
|
10467
10561
|
} catch {
|
|
@@ -11879,6 +11973,7 @@ export {
|
|
|
11879
11973
|
resolveReferencedStart,
|
|
11880
11974
|
resolveReferencedDuration,
|
|
11881
11975
|
require_dist,
|
|
11976
|
+
audioAttributeShapeError,
|
|
11882
11977
|
LINT_RULE_COUNT,
|
|
11883
11978
|
LINT_RULE_GROUP_COUNTS,
|
|
11884
11979
|
lintHyperframeHtml,
|
|
@@ -9,33 +9,33 @@ import {
|
|
|
9
9
|
} from "./chunk-LLMSX6V6.js";
|
|
10
10
|
import {
|
|
11
11
|
readCompositionFps
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U22NZEQV.js";
|
|
13
13
|
import {
|
|
14
14
|
findSyncPartner,
|
|
15
15
|
readLinkTiming,
|
|
16
16
|
syncOffsetFrames
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6FDVPIOO.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6ZRGEVAM.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-N7ZKI2CE.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EAO46VPT.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveReferencedDuration,
|
|
37
37
|
resolveReferencedStart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CZ5NNJ6H.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveAuthoredAssetFile
|
|
41
41
|
} from "./chunk-WVRAFHJU.js";
|
|
@@ -48,12 +48,12 @@ import {
|
|
|
48
48
|
readPlaybackRate,
|
|
49
49
|
resolveMediaDuration,
|
|
50
50
|
resolveMediaStartSeconds
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-OHQRQE7F.js";
|
|
52
52
|
import {
|
|
53
53
|
isSubCompositionHost,
|
|
54
54
|
topLevelElements,
|
|
55
55
|
trackKindOf
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-CUCP7FKH.js";
|
|
57
57
|
|
|
58
58
|
// src/timeline/describeProject.ts
|
|
59
59
|
import { readFileSync, realpathSync, statSync } from "fs";
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
|
|
8
|
+
// src/utils/networkFailure.ts
|
|
9
|
+
function describeCauseChain(err) {
|
|
10
|
+
const parts = [];
|
|
11
|
+
let current = err;
|
|
12
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13
|
+
while (current instanceof Error && !seen.has(current)) {
|
|
14
|
+
seen.add(current);
|
|
15
|
+
const code = "code" in current ? current.code : void 0;
|
|
16
|
+
const text = code && !current.message.includes(String(code)) ? `${current.message} [${String(code)}]` : current.message;
|
|
17
|
+
if (text && !parts.includes(text)) parts.push(text);
|
|
18
|
+
current = current.cause;
|
|
19
|
+
}
|
|
20
|
+
if (parts.length === 0) return String(err);
|
|
21
|
+
const [head, ...rest] = parts;
|
|
22
|
+
return rest.length ? `${head} (${rest.join("; ")})` : head;
|
|
23
|
+
}
|
|
24
|
+
var OFFLINE = "this machine looks offline";
|
|
25
|
+
var REASONS = [
|
|
26
|
+
[/certificate|self[- ]signed|unable to verify|altname/i, "the secure connection was refused"],
|
|
27
|
+
[
|
|
28
|
+
/ENOTFOUND|EAI_AGAIN|EAI_NONAME|getaddrinfo/,
|
|
29
|
+
`its address could not be looked up (DNS); ${OFFLINE}`
|
|
30
|
+
],
|
|
31
|
+
[/ENETUNREACH|EHOSTUNREACH|ENETDOWN/, `there is no network route to it; ${OFFLINE}`],
|
|
32
|
+
[/ECONNREFUSED/, "it refused the connection"],
|
|
33
|
+
[/UND_ERR_CONNECT_TIMEOUT|ETIMEDOUT|TimeoutError|timed? ?out/i, "it did not answer in time"],
|
|
34
|
+
[/ECONNRESET|socket hang up|UND_ERR_SOCKET|other side closed/i, "the connection dropped"]
|
|
35
|
+
];
|
|
36
|
+
var NEXT_STEP = "Check the internet connection (behind a proxy, set HTTPS_PROXY) and run the command again.";
|
|
37
|
+
var NetworkFailure = class extends Error {
|
|
38
|
+
hint = NEXT_STEP;
|
|
39
|
+
constructor(host, reason, options) {
|
|
40
|
+
super(`Could not reach ${host}: ${reason}.`, options);
|
|
41
|
+
this.name = "NetworkFailure";
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
function isTransportFailure(error) {
|
|
45
|
+
if (!(error instanceof Error)) return false;
|
|
46
|
+
if (error.name === "TimeoutError") return true;
|
|
47
|
+
return error instanceof TypeError && /fetch failed/i.test(error.message);
|
|
48
|
+
}
|
|
49
|
+
function explainNetworkFailure(error, url) {
|
|
50
|
+
if (error instanceof NetworkFailure || !isTransportFailure(error)) return error;
|
|
51
|
+
const chain = describeCauseChain(error);
|
|
52
|
+
const reason = REASONS.find(([pattern]) => pattern.test(chain))?.[1] ?? `the request failed (${chain})`;
|
|
53
|
+
return new NetworkFailure(new URL(url).host, reason, { cause: error });
|
|
54
|
+
}
|
|
55
|
+
async function fetchExplained(url, init) {
|
|
56
|
+
try {
|
|
57
|
+
return await fetch(url, init);
|
|
58
|
+
} catch (error) {
|
|
59
|
+
throw explainNetworkFailure(error, url);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
describeCauseChain,
|
|
65
|
+
NetworkFailure,
|
|
66
|
+
explainNetworkFailure,
|
|
67
|
+
fetchExplained
|
|
68
|
+
};
|
|
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U22NZEQV.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M3JU24AI.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6ZRGEVAM.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N7ZKI2CE.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O4ZD7TVR.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XMOWL46H.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CZ5NNJ6H.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -4,20 +4,27 @@ 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
|
+
withOwner
|
|
9
|
+
} from "./chunk-YBR4L5JA.js";
|
|
10
|
+
import {
|
|
11
|
+
HistoryBusyError,
|
|
12
|
+
beginArtifactCapture
|
|
13
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
7
14
|
import {
|
|
8
15
|
createFileAtomically
|
|
9
16
|
} from "./chunk-A4ZTSQLW.js";
|
|
10
17
|
|
|
11
|
-
// src/utils/
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
// src/utils/artifactCapture.ts
|
|
19
|
+
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|
|
20
|
+
function unlessAnotherProcessKeepsTheHistory(error) {
|
|
21
|
+
if (!(error instanceof HistoryBusyError)) throw error;
|
|
22
|
+
}
|
|
23
|
+
async function captureArtifactRevision(projectDir) {
|
|
24
|
+
await withOwner(projectDir, (owner) => owner.checkpoint(), SKIP_BUSY_HISTORY).catch(
|
|
25
|
+
unlessAnotherProcessKeepsTheHistory
|
|
26
|
+
);
|
|
27
|
+
return beginArtifactCapture(projectDir);
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
// src/utils/toolContext.ts
|
|
@@ -94,7 +101,7 @@ function reportArtifacts(command, role, paths, context = readToolContext()) {
|
|
|
94
101
|
}
|
|
95
102
|
|
|
96
103
|
// src/utils/projectLock.ts
|
|
97
|
-
import { mkdirSync, readFileSync
|
|
104
|
+
import { mkdirSync, readFileSync, unlinkSync } from "fs";
|
|
98
105
|
import { dirname, join } from "path";
|
|
99
106
|
import { setTimeout as sleep } from "timers/promises";
|
|
100
107
|
var ProjectLockTimeout = class extends Error {
|
|
@@ -103,7 +110,7 @@ var POLL_MS = 250;
|
|
|
103
110
|
var projectLockPath = (projectDir) => join(projectDir, ".hyperframes", "project.lock");
|
|
104
111
|
function readHolder(path) {
|
|
105
112
|
try {
|
|
106
|
-
return JSON.parse(
|
|
113
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
107
114
|
} catch {
|
|
108
115
|
return null;
|
|
109
116
|
}
|
|
@@ -148,13 +155,27 @@ function tryAcquire(path, holder) {
|
|
|
148
155
|
if (current && !alive(current.pid)) return breakStaleHolder(path, current, holder);
|
|
149
156
|
return false;
|
|
150
157
|
}
|
|
158
|
+
var FIRST_NOTICE_MS = 5e3;
|
|
159
|
+
var NOTICE_EVERY_MS = 3e4;
|
|
160
|
+
function sayWaiting(current, waitMs) {
|
|
161
|
+
if (!current) return;
|
|
162
|
+
const running = Math.round((Date.now() - current.startedAt) / 1e3);
|
|
163
|
+
console.error(
|
|
164
|
+
`[hyperframes] waiting for ${current.command} (pid ${current.pid}, running ${running}s) to finish with this project; waiting up to ${Math.round(waitMs / 1e3)}s`
|
|
165
|
+
);
|
|
166
|
+
}
|
|
151
167
|
async function withProjectLock(projectDir, command, run, context = readToolContext()) {
|
|
152
168
|
if (!context.projectLock) return run();
|
|
153
169
|
const path = projectLockPath(projectDir);
|
|
154
170
|
mkdirSync(dirname(path), { recursive: true });
|
|
155
171
|
const holder = { pid: process.pid, command, startedAt: Date.now() };
|
|
156
172
|
const deadline = holder.startedAt + context.projectLock.waitMs;
|
|
173
|
+
let nextNoticeAt = holder.startedAt + FIRST_NOTICE_MS;
|
|
157
174
|
while (!tryAcquire(path, holder)) {
|
|
175
|
+
if (Date.now() >= nextNoticeAt) {
|
|
176
|
+
nextNoticeAt = Date.now() + NOTICE_EVERY_MS;
|
|
177
|
+
sayWaiting(readHolder(path), context.projectLock.waitMs);
|
|
178
|
+
}
|
|
158
179
|
const remaining = deadline - Date.now();
|
|
159
180
|
if (remaining <= 0) {
|
|
160
181
|
const current = readHolder(path);
|
|
@@ -166,7 +187,7 @@ async function withProjectLock(projectDir, command, run, context = readToolConte
|
|
|
166
187
|
);
|
|
167
188
|
}
|
|
168
189
|
throw new ProjectLockTimeout(
|
|
169
|
-
`hyperframes ${current?.command ?? "another command"} (pid ${current?.pid ?? "unknown"}) is still using this project after ${Math.round(context.projectLock.waitMs / 1e3)}s
|
|
190
|
+
`hyperframes ${current?.command ?? "another command"} (pid ${current?.pid ?? "unknown"}) is still using this project after ${Math.round(context.projectLock.waitMs / 1e3)}s. Run this command again when it finishes.`
|
|
170
191
|
);
|
|
171
192
|
}
|
|
172
193
|
await sleep(Math.min(POLL_MS, remaining));
|
|
@@ -174,36 +195,19 @@ async function withProjectLock(projectDir, command, run, context = readToolConte
|
|
|
174
195
|
try {
|
|
175
196
|
return await run();
|
|
176
197
|
} finally {
|
|
177
|
-
|
|
198
|
+
release(path, holder);
|
|
178
199
|
}
|
|
179
200
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4 };
|
|
183
|
-
function parseTimeoutMs(raw, fallback, floorMs = 0, warn = console.error) {
|
|
184
|
-
if (raw === void 0 || raw === null || raw === "") return fallback;
|
|
185
|
-
const text = String(raw).trim();
|
|
186
|
-
const match = /^(\d+(?:\.\d+)?)\s*(ms|s|m)?$/i.exec(text);
|
|
187
|
-
if (!match) {
|
|
188
|
-
warn(`[hyperframes] --timeout "${text}" is not a duration; using ${fallback} ms.`);
|
|
189
|
-
return fallback;
|
|
190
|
-
}
|
|
191
|
-
const unit = match[2]?.toLowerCase();
|
|
192
|
-
const ms = Math.round(Number(match[1]) * UNIT_MS[unit ?? "ms"]);
|
|
193
|
-
if (ms <= 0) return fallback;
|
|
194
|
-
const used = Math.max(ms, floorMs);
|
|
195
|
-
if (!unit && ms < 1e3) {
|
|
196
|
-
warn(
|
|
197
|
-
`[hyperframes] --timeout ${text} is ${ms} ms, so ${used} ms is used. Write ${text}s for seconds.`
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
return used;
|
|
201
|
+
function release(path, holder) {
|
|
202
|
+
if (sameHolder(readHolder(path), holder)) unlinkSync(path);
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
export {
|
|
204
|
-
|
|
206
|
+
captureArtifactRevision,
|
|
205
207
|
readToolContext,
|
|
206
208
|
reportArtifacts,
|
|
209
|
+
readHolder,
|
|
210
|
+
alive,
|
|
207
211
|
withProjectLock,
|
|
208
|
-
|
|
212
|
+
release
|
|
209
213
|
};
|