hyperframes 0.9.28-alpha.1 → 0.9.29
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/README.md +5 -2
- package/dist/{add-YDZMFKR3.js → add-BRXFSBYO.js} +14 -14
- package/dist/{agentPromptGenerator-AUXZZCIG.js → agentPromptGenerator-NJL6ZJQA.js} +7 -7
- package/dist/{animatedGifPrep-2DYVIBA4.js → animatedGifPrep-AVZAMI2D.js} +7 -7
- package/dist/api.js +38 -39
- package/dist/{asset-JHM3VF72.js → asset-FEAC2U74.js} +2 -2
- package/dist/{assetCataloger-2OB46SVM.js → assetCataloger-WGNEAI5A.js} +8 -8
- package/dist/{audio-T6YSLT2D.js → audio-PBKCPYW2.js} +24 -25
- package/dist/{auth-YSTRUKED.js → auth-IPHKPGNV.js} +4 -4
- package/dist/{autoUpdate-VYRYBZG6.js → autoUpdate-4HUTYRYX.js} +3 -3
- package/dist/{avatars-UU53IDAK.js → avatars-U2XLC3OS.js} +15 -16
- package/dist/{backgroundChecks-FNACAOZD.js → backgroundChecks-4Q4R56DT.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-KWIPFU5Q.js → batchRender-AL6DO5IA.js} +4 -4
- package/dist/{beats-X2LCSMYD.js → beats-VS4P6KKZ.js} +11 -11
- package/dist/{benchmark-4OB6M2FR.js → benchmark-MGDPACXB.js} +11 -11
- package/dist/{billing-DC6ODLSG.js → billing-JLASHFQM.js} +15 -16
- package/dist/{browser-PUJD4WCC.js → browser-FU4TZSMT.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-7HQEKW2H.js → bundleWithLocalizedFonts-B2XFORNZ.js} +1 -1
- package/dist/{capture-IGQR6HTG.js → capture-CFESIHJR.js} +22 -22
- package/dist/{capture-PUB5WBLQ.js → capture-LL7WE2S7.js} +3 -3
- package/dist/{captureCompositionFrame-JT6HGVU7.js → captureCompositionFrame-DABFEOQO.js} +14 -14
- package/dist/{catalog-5NC5EV6Z.js → catalog-U6CHLXTI.js} +14 -14
- package/dist/{catch-up-6RJNWB5I.js → catch-up-DMREF334.js} +9 -9
- package/dist/{check-FXZOPV3Y.js → check-ILJC6WYD.js} +45 -44
- package/dist/{checkAudio-VSHZXO4J.js → checkAudio-MWSP2436.js} +15 -15
- package/dist/{checkBrowser-EOSAXIHJ.js → checkBrowser-HC3LYH6H.js} +38 -38
- package/dist/{chunk-W3XARNFW.js → chunk-2YZ6GA4E.js} +1 -1
- package/dist/{chunk-XGRXNWDK.js → chunk-3JFV42QB.js} +3 -3
- package/dist/{chunk-4J2J57RS.js → chunk-42MHKDVP.js} +3 -3
- package/dist/{chunk-UYVQDKGC.js → chunk-47JZ2UQC.js} +1 -1
- package/dist/{chunk-QTDTCTGB.js → chunk-4N3UVDIJ.js} +4 -6
- package/dist/{chunk-R6PUBUA4.js → chunk-4TCEF2I7.js} +1 -1
- package/dist/{chunk-C6S2NYQ4.js → chunk-4TPTB6PY.js} +4 -4
- package/dist/{chunk-6UJOLK4G.js → chunk-5QGDLMU3.js} +2 -2
- package/dist/{chunk-QB2USW3R.js → chunk-5RLMHG3E.js} +1 -1
- package/dist/{chunk-ME6L6GUF.js → chunk-6FHIR4KD.js} +1 -1
- package/dist/{chunk-2Q3Y7CI3.js → chunk-6JAB5BHX.js} +7 -7
- package/dist/{chunk-BP75ZLZ5.js → chunk-6LCIO2YY.js} +2 -2
- package/dist/chunk-72LMHSPL.js +29 -0
- package/dist/{chunk-FF25S7ZC.js → chunk-74PW4UVC.js} +1 -1
- package/dist/{chunk-44LVKFXU.js → chunk-76MHB2H6.js} +1 -1
- package/dist/{chunk-GTZVTATR.js → chunk-77B6C7CU.js} +2 -2
- package/dist/{chunk-XHP3V4WH.js → chunk-7GJKUOPX.js} +31 -20
- package/dist/{chunk-3BWFZFJK.js → chunk-7TION72L.js} +18 -18
- package/dist/{chunk-HPR2BPFS.js → chunk-AOPNJEQC.js} +2 -2
- package/dist/{chunk-MEVLYDL2.js → chunk-BJYCLZBQ.js} +1 -1
- package/dist/{chunk-TYPFNWE6.js → chunk-BX2BIU6Z.js} +1 -1
- package/dist/{chunk-SXGLW3OW.js → chunk-BYJEUZNT.js} +3 -3
- package/dist/{chunk-W4DMQZL5.js → chunk-BZULWFMJ.js} +11 -2
- package/dist/{chunk-YSIDK3VE.js → chunk-C25RSEQN.js} +12 -12
- package/dist/{chunk-CHCMXYER.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-VSQ5NWCF.js → chunk-DJVSNDF3.js} +3 -3
- package/dist/{chunk-N5TVFPYQ.js → chunk-DYKBB5HB.js} +1 -1
- package/dist/{chunk-IADGTP5X.js → chunk-EIVSIGS2.js} +3 -3
- package/dist/{chunk-3T6BFAKZ.js → chunk-F24B2PLD.js} +1 -1
- package/dist/{chunk-XLX7TDCI.js → chunk-FJPHKCWU.js} +17 -17
- package/dist/{chunk-CE765XG3.js → chunk-FNC3JNO7.js} +1 -1
- package/dist/{chunk-BF6RWOUF.js → chunk-FXPDWYD7.js} +100 -50
- package/dist/{chunk-SCPMSSQW.js → chunk-GGDJLN5I.js} +0 -20
- package/dist/{chunk-GNG7XNUY.js → chunk-GISQ7VOP.js} +15 -15
- package/dist/{chunk-VYEPG2N6.js → chunk-GQNV4DG6.js} +1 -1
- package/dist/{chunk-4XGKXBYH.js → chunk-GTUTZIRR.js} +22 -4
- package/dist/{chunk-63PVDQ6R.js → chunk-H5BHEZ4B.js} +2 -2
- package/dist/{chunk-OPGYOHU6.js → chunk-HCC7XLD7.js} +2 -2
- package/dist/{chunk-5YDJTVOQ.js → chunk-HLRYLZFX.js} +2 -2
- package/dist/{chunk-AAENGP3S.js → chunk-IOPIOX5K.js} +66 -16
- package/dist/{chunk-WYA575QX.js → chunk-IQKMIYLG.js} +5 -7
- package/dist/{chunk-XFE4R6I4.js → chunk-ITWIFUDS.js} +1 -1
- package/dist/{chunk-HW325JBH.js → chunk-IX3K55NA.js} +4 -4
- package/dist/{chunk-3OKVZXTH.js → chunk-IXMO4RXK.js} +2 -2
- package/dist/{chunk-WIJGRX5X.js → chunk-IYYZMZD2.js} +1 -1
- package/dist/{chunk-NVNKKVDH.js → chunk-J7PDBGQM.js} +2 -2
- package/dist/{chunk-4OZVFZCO.js → chunk-JLUOG6S2.js} +1 -1
- package/dist/{chunk-QKAXPYTV.js → chunk-JVAD6LD7.js} +38 -21
- package/dist/{chunk-6ODX6SHY.js → chunk-L2GOO2UY.js} +2 -2
- package/dist/{chunk-OJ5HAKL6.js → chunk-L6OXEDJQ.js} +7 -7
- package/dist/{chunk-CG65CRMP.js → chunk-LDTJCZZ2.js} +2 -2
- package/dist/{chunk-AHRX3FHF.js → chunk-LMCFILEY.js} +3 -3
- package/dist/{chunk-FID757D3.js → chunk-LP7B3JLC.js} +0 -1
- package/dist/{chunk-WXEXQLVV.js → chunk-M457GQGR.js} +344 -216
- package/dist/{chunk-TLVXCOMV.js → chunk-MKZ34726.js} +2 -2
- package/dist/{chunk-O2JZ6C3S.js → chunk-MTJ46TG7.js} +7 -7
- package/dist/{chunk-7U2B7OF6.js → chunk-MVJ7AX6W.js} +1 -1
- package/dist/{chunk-3MYEF34S.js → chunk-NFUXYBOR.js} +1 -1
- package/dist/{chunk-RERVXE6J.js → chunk-NHJ5YUBZ.js} +2 -2
- package/dist/{chunk-YFDCU6X5.js → chunk-NSQLSL42.js} +6 -6
- package/dist/{chunk-KJ5QBEMN.js → chunk-NURN5W6M.js} +6 -8
- package/dist/{chunk-WCPH2JRB.js → chunk-NXFUEPWT.js} +35 -21
- package/dist/{chunk-ALCP5OEW.js → chunk-NZUUKNNZ.js} +1 -1
- package/dist/{chunk-IMSLXLUI.js → chunk-OSDNRYQJ.js} +1 -1
- package/dist/{chunk-36G3XDN6.js → chunk-OY4YSQBK.js} +2 -2
- package/dist/{chunk-XOON4QRF.js → chunk-PGZSYDLZ.js} +1 -1
- package/dist/{chunk-5ROYFGQT.js → chunk-PVRJKEU5.js} +1 -1
- package/dist/{chunk-STTUDVAI.js → chunk-Q7FX7HOX.js} +1 -1
- package/dist/{chunk-KCRVZA7B.js → chunk-QBRBXVCE.js} +1 -1
- package/dist/{chunk-NHRLZESZ.js → chunk-RYFVUPXH.js} +1 -1
- package/dist/{chunk-Q6TVZY36.js → chunk-RYT22J4V.js} +2 -2
- package/dist/{chunk-J5CDV66Q.js → chunk-RZK5ZGVX.js} +4 -4
- package/dist/{chunk-MPC3L6A3.js → chunk-S3S3IHCR.js} +1 -1
- package/dist/chunk-SBYFFP7R.js +413 -0
- package/dist/{chunk-WOSVLHQH.js → chunk-SCNC7YPB.js} +1 -1
- package/dist/{chunk-7GZ4E5ID.js → chunk-SCUKEERJ.js} +4 -4
- package/dist/{chunk-WFO2PDZD.js → chunk-SS7OEJGR.js} +35 -18
- package/dist/{chunk-TF7VWCJM.js → chunk-TCQKCUDA.js} +1 -1
- package/dist/{chunk-JX4BEVC3.js → chunk-TIWO5QKS.js} +66 -52
- package/dist/{chunk-6RHKGQRA.js → chunk-TM5H5ZY3.js} +2 -2
- package/dist/{chunk-AJVYQVDB.js → chunk-U5RXCKWJ.js} +1 -1
- package/dist/{chunk-GVBAVADJ.js → chunk-UCCD6SY7.js} +1 -1
- package/dist/{chunk-LSSUDIEM.js → chunk-UKAZEO7A.js} +5 -5
- package/dist/{chunk-MWBRY5HN.js → chunk-USOP5XTT.js} +3 -3
- package/dist/{chunk-7XHVHBFV.js → chunk-V4Z37HFN.js} +3 -3
- package/dist/{chunk-2BSPL7YE.js → chunk-V4ZFL2E2.js} +3 -3
- package/dist/{chunk-7D4PARGG.js → chunk-VWEELCAJ.js} +6 -6
- package/dist/{chunk-YJBGA3W6.js → chunk-VXWASGGT.js} +2 -2
- package/dist/{chunk-JHSHEJU7.js → chunk-XGGEOBH2.js} +2 -2
- package/dist/{chunk-FZUIGBYD.js → chunk-XKSHWUIF.js} +3 -3
- package/dist/{chunk-ZMQYQHZU.js → chunk-XVDXYUQJ.js} +1 -1
- package/dist/{chunk-4TU5M4WX.js → chunk-YXNRWPF5.js} +31 -29
- package/dist/{chunk-DFKD43CD.js → chunk-ZCRATF6D.js} +3 -3
- package/dist/{chunk-COAB2OXQ.js → chunk-ZGQZTSP2.js} +1 -1
- package/dist/{chunk-PSGS27VB.js → chunk-ZQXK4L4G.js} +2 -2
- package/dist/{chunk-3Q7LAXFJ.js → chunk-ZUXES5HA.js} +2 -2
- package/dist/{chunk-L666J5OJ.js → chunk-ZY3N64NC.js} +2 -2
- package/dist/{clean-5WXYKIWX.js → clean-YU7AM7DC.js} +23 -23
- package/dist/cli.js +67 -69
- package/dist/{cloud-TEJ6UVBU.js → cloud-QJMPTQ3N.js} +5 -6
- package/dist/{cloud-X2ZPQOFN.js → cloud-U7RRT2TA.js} +4 -4
- package/dist/{cloudrun-A7DU7DQE.js → cloudrun-T7VVPRDG.js} +7 -7
- package/dist/{compare-URG6E3VF.js → compare-USGR7PZL.js} +36 -36
- package/dist/{compiler-J43BE6LC.js → compiler-ZSIKBZBR.js} +4 -4
- package/dist/{component-BE2ZLBPY.js → component-RIFXLYK3.js} +3 -3
- package/dist/{compositions-DJPSPCYI.js → compositions-QHRNVZ2K.js} +13 -13
- package/dist/{curve-I6CGCMG5.js → curve-BX46Q4OW.js} +12 -12
- package/dist/{cuts-TRTRMTCZ.js → cuts-JRLHBLOX.js} +13 -13
- package/dist/{delete-UMO7XCW3.js → delete-SE7ABVTH.js} +8 -9
- package/dist/{deploy-T2CETGFF.js → deploy-AQUEV6ND.js} +6 -6
- package/dist/{describeProject-AJ2SFRCN.js → describeProject-XBT7PHZD.js} +8 -8
- package/dist/{deterministicFonts-UZIF5XZW.js → deterministicFonts-SKRN3TCP.js} +2 -2
- package/dist/{diff-KCVI66ZW.js → diff-6TZLA6KU.js} +39 -40
- package/dist/{dist-AUYCAQMA.js → dist-ALNMJZ7K.js} +15 -15
- package/dist/{dist-4JHP47NU.js → dist-EFXKPJJT.js} +2 -2
- package/dist/{dist-F3Y2XHZL.js → dist-QRXJMFI7.js} +3 -3
- package/dist/{doctor-UTIGHYSY.js → doctor-DDKKCJMO.js} +12 -12
- package/dist/{energy-PJUDIY2I.js → energy-HC7BNZ5E.js} +13 -13
- package/dist/{events-ZMFIRGW4.js → events-EETQNKK2.js} +15 -15
- package/dist/{events-HI2WDYGV.js → events-KNH677YB.js} +4 -4
- package/dist/{events-P6Q6GB6K.js → events-ZRVQOB4Y.js} +8 -8
- package/dist/{extract-4RYOD7LZ.js → extract-I3J3ZK55.js} +16 -16
- package/dist/{face-X3DR3L7V.js → face-HJUZ2OXQ.js} +14 -14
- package/dist/{feedback-WOE25OSG.js → feedback-M6I5AVZ5.js} +14 -15
- package/dist/{ffmpeg-N3LZ7XBX.js → ffmpeg-OAKTUK5S.js} +7 -7
- package/dist/{figma-VPG54R3O.js → figma-RFAPGGBF.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-VNQ5P43E.js → frames-FOAWRBW4.js} +14 -14
- package/dist/{generate-ZCTFKNNW.js → generate-FLG6B7RX.js} +26 -27
- package/dist/{get-K374EYQS.js → get-I5JCIGPW.js} +8 -9
- package/dist/{gpuPolicy-SAEOR4QY.js → gpuPolicy-SLVPAQK2.js} +7 -7
- package/dist/{grade-compare-UHNGFSNR.js → grade-compare-R3UOE4WI.js} +38 -38
- package/dist/{gsapParserAcorn-5YD4N6HQ.js → gsapParserAcorn-SKGP4R4N.js} +1 -1
- package/dist/{heifImagePrep-R7NDS5FP.js → heifImagePrep-BOIWW7FW.js} +8 -8
- package/dist/{help-6DADTB2R.js → help-NVQZEN6A.js} +1 -1
- package/dist/{history-2K4FPC4P.js → history-AGNMVDRQ.js} +12 -12
- package/dist/hyperframes-player.global.js +2 -2
- package/dist/{info-7NZB6ZUO.js → info-EXAJSKZP.js} +15 -15
- package/dist/{init-UVGSTDBD.js → init-Z7FZ7U5J.js} +29 -29
- package/dist/{ink-3GBOCKAV.js → ink-QYCQXNUY.js} +13 -13
- package/dist/{inspect-XWAQWM2Y.js → inspect-ZJNHBIJI.js} +35 -35
- package/dist/{installer-AJESSC5Y.js → installer-VPGNKCEU.js} +5 -5
- package/dist/{keyframes-7C6LAP5V.js → keyframes-QYRES5IL.js} +15 -12
- package/dist/{lambda-Y2BEBCDQ.js → lambda-3I4IV63E.js} +13 -13
- package/dist/{layout-Z35EOSYQ.js → layout-J33Y6DD7.js} +35 -35
- package/dist/{lint-QU5JDQX3.js → lint-JT74BZWJ.js} +12 -12
- package/dist/{lintProject-Z6TG3Z34.js → lintProject-5CBL7VFV.js} +2 -2
- package/dist/{list-6KUDG4X7.js → list-NOWT754O.js} +10 -11
- package/dist/{localPage-SM5JBV4M.js → localPage-66UVNGQR.js} +7 -7
- package/dist/{login-XCR35XUC.js → login-3JR3HXS6.js} +7 -8
- package/dist/{logout-AHGR3X5U.js → logout-FJ444652.js} +4 -6
- package/dist/{look-O452Y7XO.js → look-NKCQENM7.js} +13 -13
- package/dist/{manager-GCFCVNYS.js → manager-ML4OLLSM.js} +8 -8
- package/dist/{measure-D54QYN6X.js → measure-VSZBVJJZ.js} +11 -11
- package/dist/{media-treatment-LPL2SZ7W.js → media-treatment-733EANTU.js} +15 -15
- package/dist/{media-use-VL2EL53W.js → media-use-IUN5ATZQ.js} +7 -9
- package/dist/{models-YFFUQ757.js → models-A6FBCVFA.js} +11 -11
- package/dist/{motionShot-QHWXLUJM.js → motionShot-PVWZLEMB.js} +19 -19
- package/dist/{normalize-audio-72PTXCD7.js → normalize-audio-XD4QE5NE.js} +11 -11
- package/dist/{open-BLPP4OPX.js → open-TWEEOMZA.js} +14 -14
- package/dist/{parakeetRunner-3A66RNGS.js → parakeetRunner-GP47AAVT.js} +13 -13
- package/dist/{pipeline-BFMEIMNZ.js → pipeline-5HUQFOCY.js} +10 -10
- package/dist/{play-KG2B7KMX.js → play-ZOZRB5OG.js} +26 -26
- package/dist/{preflight-YNGNNHZC.js → preflight-NTJMXUS2.js} +8 -8
- package/dist/{present-WGQEDRXJ.js → present-IMQS3KJ7.js} +22 -22
- package/dist/{preview-JM6GYVIL.js → preview-JSK5IKSR.js} +23 -23
- package/dist/{probe-B5H6PBIG.js → probe-ZLRD2TRZ.js} +13 -13
- package/dist/{producer-QIHOQ53I.js → producer-ZZROH3WZ.js} +1 -1
- package/dist/{projectConfig-GJL2ZGOU.js → projectConfig-UHYPGWD5.js} +7 -7
- package/dist/{publication-BLLVTVD6.js → publication-5KOANEHK.js} +3 -3
- package/dist/{publish-CYPJA7T7.js → publish-C3ARXH6D.js} +23 -83
- package/dist/{refresh-TB4TNH7R.js → refresh-YY4K2RWR.js} +3 -4
- package/dist/{remove-background-MHKW4EBR.js → remove-background-VDTWA7BL.js} +11 -11
- package/dist/{render-F35USXZA.js → render-P27DEH4H.js} +44 -45
- package/dist/{render-RUEXLOWE.js → render-TSV3XTQV.js} +6 -6
- package/dist/{render-RTPE3OBI.js → render-UF5XKGO5.js} +939 -317
- package/dist/{render-batch-QFGQD5FM.js → render-batch-ISMXAG7F.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-HQIDF3TF.js → resolver-ZWNLOG6O.js} +5 -5
- package/dist/{reverse-BEQHRYSZ.js → reverse-J4CLVRPY.js} +1 -1
- package/dist/{run-EVZGKUEX.js → run-UPKPPRV7.js} +4 -5
- package/dist/{screenshotCapture-4NDEWYCU.js → screenshotCapture-ZZE3GMOF.js} +8 -8
- package/dist/{sherpa-MNU3ORFR.js → sherpa-7ISRANWA.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +0 -20
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/{skills-3R6EC5PV.js → skills-AAETAWZH.js} +11 -11
- package/dist/{skillsUpdateCheck-TRRXLL46.js → skillsUpdateCheck-KCP2EYKX.js} +4 -4
- package/dist/{snapshot-BYNK523M.js → snapshot-5PMHOVPR.js} +51 -49
- package/dist/{src-EZMBCQBY.js → src-CHPZUZZ3.js} +12 -12
- package/dist/{src-FZ4EJHOK.js → src-NIMSUB4P.js} +6 -6
- package/dist/{start-FRPRXMEN.js → start-6D25MEIJ.js} +24 -25
- package/dist/{staticProjectServer-FF6IBUD6.js → staticProjectServer-LM3YLJ6K.js} +20 -20
- package/dist/{status-QZ7PKGAJ.js → status-22TRM6DI.js} +18 -20
- package/dist/studio/assets/{codec-DqodFzhT.js → codec-D84nARi6.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D03oERxc.js → hyperframes-player-C2-hh0bR.js} +2 -2
- package/dist/studio/assets/{index-9kcxLnm3.js → index-B0rj7KmJ.js} +1 -1
- package/dist/studio/assets/{index-DuOvEv27.js → index-D3lR9-ik.js} +184 -184
- package/dist/studio/assets/{index-Cq2w6U13.css → index-dsfjBidg.css} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-pYFINB0c.js → pausedVideoDecoder-D8vnt-Wd.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-RBURPKYX.js → studio-api-LSWAJEK4.js} +15 -15
- package/dist/{studioServer-YZDNK3AO.js → studioServer-MC57HJAV.js} +84 -435
- package/dist/{sync-6MHJVU4M.js → sync-SEN3M7GA.js} +13 -13
- package/dist/{telemetry-CLB2O4ZK.js → telemetry-NP2FXZQL.js} +8 -8
- package/dist/{templates-HFQXIAO2.js → templates-QN7ZUHHZ.js} +18 -19
- package/dist/{timeline-ORRCS7NO.js → timeline-V43AACFE.js} +22 -22
- package/dist/{tokens-OTBA5VQ3.js → tokens-NOFZVX4P.js} +2 -2
- package/dist/{transcribe-EMXH7CGF.js → transcribe-FGVGCTEU.js} +10 -10
- package/dist/{transcribe-PJIFWND6.js → transcribe-IVZ4OASF.js} +28 -29
- package/dist/{tts-NANTORLP.js → tts-HOZ6X3MD.js} +1 -1
- package/dist/{update-RT6R53XR.js → update-LML5YVLT.js} +12 -12
- package/dist/{updateCheck-LSLLTUFX.js → updateCheck-FFHCGLRU.js} +3 -3
- package/dist/{upgrade-SSPKJYOW.js → upgrade-UWT2FB5Y.js} +4 -4
- package/dist/{urlDownloader-FTYUJP2D.js → urlDownloader-4RWM3UH2.js} +6 -6
- package/dist/{validate-SN2JDYNN.js → validate-ZNK2THUV.js} +29 -29
- package/dist/{video-Z522PCEM.js → video-QXVXG7PW.js} +8 -8
- package/dist/{voices-AQWUK6GK.js → voices-JI7QOSLT.js} +23 -24
- package/dist/warmCheck.js +45 -44
- package/package.json +1 -2
- package/dist/chunk-37RCPDCR.js +0 -173
- package/dist/chunk-4UBGQTAT.js +0 -387
- package/dist/chunk-DGXKMYIX.js +0 -343
- package/dist/chunk-JE2YBPC5.js +0 -152
- package/dist/chunk-OUOZGJJF.js +0 -538
- package/dist/chunk-Q5JJDC2L.js +0 -51
- package/dist/chunk-QABQKJPY.js +0 -3761
- package/dist/contract/LICENSE-Unicode.txt +0 -39
- package/dist/contract/path-policy.json +0 -311
- package/dist/contract/unicode-15.1.0.json +0 -6179
- package/dist/execute-AUPUAYPW.js +0 -109
- package/dist/oauth-KUPQUH6E.js +0 -40
- package/dist/plan-2MKSJEUW.js +0 -88
- package/dist/service-XCT7W4PQ.js +0 -68
- package/dist/share-KRKP6VYV.js +0 -241
- package/dist/{destroy-IWHFUGJL.js → destroy-YAMTVR2W.js} +4 -4
- package/dist/{synthesize-NJKCIPKW.js → synthesize-MDW4ZWTN.js} +5 -5
|
@@ -0,0 +1,413 @@
|
|
|
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
|
+
alive,
|
|
9
|
+
readHolder,
|
|
10
|
+
release
|
|
11
|
+
} from "./chunk-GGDJLN5I.js";
|
|
12
|
+
import {
|
|
13
|
+
shouldTrack
|
|
14
|
+
} from "./chunk-OY4YSQBK.js";
|
|
15
|
+
import {
|
|
16
|
+
createFileAtomically
|
|
17
|
+
} from "./chunk-IEXRKKHC.js";
|
|
18
|
+
import {
|
|
19
|
+
processIdentity
|
|
20
|
+
} from "./chunk-PV4XID2A.js";
|
|
21
|
+
import {
|
|
22
|
+
hyperframesCacheDir
|
|
23
|
+
} from "./chunk-JOQR4AP6.js";
|
|
24
|
+
|
|
25
|
+
// src/telemetry/renderObservability.ts
|
|
26
|
+
function renderObservabilityTelemetryPayload(observability) {
|
|
27
|
+
if (!observability) return {};
|
|
28
|
+
const diagnostics = observability.browserDiagnostics;
|
|
29
|
+
const capture = observability.capture;
|
|
30
|
+
const extraction = observability.extraction;
|
|
31
|
+
const init = observability.init;
|
|
32
|
+
return {
|
|
33
|
+
observabilityRenderJobId: observability.renderJobId,
|
|
34
|
+
observabilityCompositionHash: observability.compositionHash,
|
|
35
|
+
observabilityEventCount: observability.eventCount,
|
|
36
|
+
observabilityLastPhase: observability.lastEvent?.phase,
|
|
37
|
+
observabilityLastStatus: observability.lastEvent?.status,
|
|
38
|
+
observabilityFailedPhase: observability.failedPhase,
|
|
39
|
+
browserDiagnosticCount: diagnostics.total,
|
|
40
|
+
browserDiagnosticErrors: diagnostics.errors,
|
|
41
|
+
browserDiagnosticPageErrors: diagnostics.pageErrors,
|
|
42
|
+
browserDiagnosticRequestFailed: diagnostics.requestFailed,
|
|
43
|
+
browserDiagnosticHttpErrors: diagnostics.httpErrors,
|
|
44
|
+
browserDiagnosticNavigationStarts: diagnostics.navigationStarts,
|
|
45
|
+
browserDiagnosticNavigationFailures: diagnostics.navigationFailures,
|
|
46
|
+
browserDiagnosticConsoleErrors: diagnostics.consoleErrors,
|
|
47
|
+
browserDiagnosticConsoleWarnings: diagnostics.consoleWarnings,
|
|
48
|
+
captureMode: capture.captureMode,
|
|
49
|
+
captureForceScreenshot: capture.forceScreenshot,
|
|
50
|
+
captureWorkerCount: capture.workerCount,
|
|
51
|
+
captureUseStreamingEncode: capture.useStreamingEncode,
|
|
52
|
+
captureUseLayeredComposite: capture.useLayeredComposite,
|
|
53
|
+
captureUsePageSideCompositing: capture.usePageSideCompositing,
|
|
54
|
+
captureHasHdrContent: capture.hasHdrContent,
|
|
55
|
+
captureBrowserGpuMode: capture.browserGpuMode,
|
|
56
|
+
captureProtocolTimeoutMs: capture.protocolTimeoutMs,
|
|
57
|
+
capturePageNavigationTimeoutMs: capture.pageNavigationTimeoutMs,
|
|
58
|
+
capturePlayerReadyTimeoutMs: capture.playerReadyTimeoutMs,
|
|
59
|
+
captureTransientRetries: capture.transientRetries,
|
|
60
|
+
captureMemoryExhaustionDetected: capture.memoryExhaustionDetected,
|
|
61
|
+
captureDeWorkerInversion: capture.deWorkerInversion,
|
|
62
|
+
captureDePreInversionWorkers: capture.dePreInversionWorkers,
|
|
63
|
+
captureCompositionElementCount: capture.compositionElementCount,
|
|
64
|
+
captureCompositionElementCountSource: capture.compositionElementCountSource,
|
|
65
|
+
captureCompositionElementTags: capture.compositionElementTags,
|
|
66
|
+
captureArollVideoCount: capture.arollVideoCount,
|
|
67
|
+
captureHeygenVideoCount: capture.heygenVideoCount,
|
|
68
|
+
captureAdaptersUsed: capture.adaptersUsed,
|
|
69
|
+
captureAudioCount: capture.audioCount,
|
|
70
|
+
captureImageCount: capture.imageCount,
|
|
71
|
+
captureSubCompositionCount: capture.subCompositionCount,
|
|
72
|
+
captureAudioGroupCount: capture.audioGroupCount,
|
|
73
|
+
captureColorGradingCount: capture.colorGradingCount,
|
|
74
|
+
captureHasLut: capture.hasLut,
|
|
75
|
+
captureRootBodyMismatch: capture.rootBodyMismatch,
|
|
76
|
+
captureRootBodyDeltaPxBucket: capture.rootBodyDeltaPxBucket,
|
|
77
|
+
captureDeShortBand: capture.deShortBand,
|
|
78
|
+
captureDeParallelRouter: capture.deParallelRouter,
|
|
79
|
+
captureDeGpuRenderer: capture.deGpuRenderer,
|
|
80
|
+
captureDePreRouterWorkers: capture.dePreRouterWorkers,
|
|
81
|
+
captureDeSelfVerifyFallback: capture.deSelfVerifyFallback,
|
|
82
|
+
captureDeFallbackReason: capture.deFallbackReason,
|
|
83
|
+
captureDeFallbackFailedDb: capture.deFallbackFailedDb,
|
|
84
|
+
captureDeFallbackFrameIndex: capture.deFallbackFrameIndex,
|
|
85
|
+
captureDeFallbackThresholdDb: capture.deFallbackThresholdDb,
|
|
86
|
+
captureParallelStream: capture.captureParallelStream,
|
|
87
|
+
captureChromeBrowserRssPeakMb: capture.chromeBrowserRssPeakMb,
|
|
88
|
+
captureChromeRendererRssPeakMb: capture.chromeRendererRssPeakMb,
|
|
89
|
+
captureChromeRssLastMb: capture.chromeRssLastMb,
|
|
90
|
+
captureChromeGpuProcessSeenLastSample: capture.chromeGpuProcessSeenLastSample,
|
|
91
|
+
captureChromeMemorySamples: capture.chromeMemorySamples,
|
|
92
|
+
captureCapturePath: capture.capturePath,
|
|
93
|
+
captureSegmentIndex: capture.segmentIndex,
|
|
94
|
+
captureSegmentRetries: capture.segmentRetries,
|
|
95
|
+
observabilityExtractVideoCount: extraction?.videoCount,
|
|
96
|
+
observabilityExtractedVideoCount: extraction?.extractedVideoCount,
|
|
97
|
+
observabilityExtractTotalFrames: extraction?.totalFramesExtracted,
|
|
98
|
+
observabilityExtractMaxFramesPerVideo: extraction?.maxFramesPerVideo,
|
|
99
|
+
observabilityExtractAvgFramesPerVideo: extraction?.avgFramesPerExtractedVideo,
|
|
100
|
+
observabilityExtractVfrProbeMs: extraction?.vfrProbeMs,
|
|
101
|
+
observabilityExtractVfrPreflightMs: extraction?.vfrPreflightMs,
|
|
102
|
+
observabilityExtractVfrPreflightCount: extraction?.vfrPreflightCount,
|
|
103
|
+
observabilityExtractCacheHits: extraction?.cacheHits,
|
|
104
|
+
observabilityExtractCacheMisses: extraction?.cacheMisses,
|
|
105
|
+
observabilityInitDurationMs: init?.initDurationMs,
|
|
106
|
+
observabilityInitTweenCount: init?.tweenCount,
|
|
107
|
+
observabilityInitElementCount: init?.elementCount
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function renderJobObservabilityTelemetryPayload(job) {
|
|
111
|
+
return {
|
|
112
|
+
...renderObservabilityTelemetryPayload(
|
|
113
|
+
job?.errorDetails?.observability ?? job?.perfSummary?.observability
|
|
114
|
+
),
|
|
115
|
+
subTimelineWait: job?.errorDetails?.subTimelineWait ?? job?.perfSummary?.subTimelineWait
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// src/telemetry/renderCpu.ts
|
|
120
|
+
import { cpus, loadavg, platform } from "os";
|
|
121
|
+
var SAMPLE_INTERVAL_MS = 2e3;
|
|
122
|
+
var BUSY_CORE_PCT = 80;
|
|
123
|
+
function readCoreTimes() {
|
|
124
|
+
return cpus().map(({ times }) => {
|
|
125
|
+
const total = times.user + times.nice + times.sys + times.idle + times.irq;
|
|
126
|
+
return { busy: total - times.idle, total };
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function busyBetween(from, to) {
|
|
130
|
+
let busy = 0;
|
|
131
|
+
let total = 0;
|
|
132
|
+
let coresBusy = 0;
|
|
133
|
+
to.forEach((core, i) => {
|
|
134
|
+
const before = from[i];
|
|
135
|
+
if (!before) return;
|
|
136
|
+
const dBusy = core.busy - before.busy;
|
|
137
|
+
const dTotal = core.total - before.total;
|
|
138
|
+
if (dTotal <= 0) return;
|
|
139
|
+
busy += dBusy;
|
|
140
|
+
total += dTotal;
|
|
141
|
+
if (dBusy / dTotal * 100 >= BUSY_CORE_PCT) coresBusy++;
|
|
142
|
+
});
|
|
143
|
+
return total > 0 ? { pct: Math.round(busy / total * 100), coresBusy } : null;
|
|
144
|
+
}
|
|
145
|
+
function readLoadAvg() {
|
|
146
|
+
if (platform() === "win32") return void 0;
|
|
147
|
+
return Math.round((loadavg()[0] ?? 0) * 100) / 100;
|
|
148
|
+
}
|
|
149
|
+
var DISABLED = { stop: () => ({}) };
|
|
150
|
+
function startRenderCpuSampler(requesterOptedIn = true) {
|
|
151
|
+
if (!requesterOptedIn || !shouldTrack()) return DISABLED;
|
|
152
|
+
const start = readCoreTimes();
|
|
153
|
+
const loadAvgStart = readLoadAvg();
|
|
154
|
+
let last = start;
|
|
155
|
+
let peak = null;
|
|
156
|
+
const sample = () => {
|
|
157
|
+
const now = readCoreTimes();
|
|
158
|
+
const window = busyBetween(last, now);
|
|
159
|
+
if (window && (!peak || window.pct > peak.pct)) peak = window;
|
|
160
|
+
last = now;
|
|
161
|
+
};
|
|
162
|
+
const timer = setInterval(sample, SAMPLE_INTERVAL_MS);
|
|
163
|
+
timer.unref?.();
|
|
164
|
+
let result;
|
|
165
|
+
return {
|
|
166
|
+
stop() {
|
|
167
|
+
if (result) return result;
|
|
168
|
+
clearInterval(timer);
|
|
169
|
+
sample();
|
|
170
|
+
const avg = busyBetween(start, last);
|
|
171
|
+
result = {
|
|
172
|
+
cpuBusyAvgPct: avg?.pct,
|
|
173
|
+
cpuBusyPeakPct: peak?.pct,
|
|
174
|
+
cpuCoresBusyPeak: peak?.coresBusy,
|
|
175
|
+
loadAvgStart,
|
|
176
|
+
loadAvgEnd: readLoadAvg()
|
|
177
|
+
};
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/utils/renderLock.ts
|
|
184
|
+
import { existsSync as existsSync2 } from "fs";
|
|
185
|
+
import { dirname as dirname2 } from "path";
|
|
186
|
+
|
|
187
|
+
// src/utils/renderLockClaim.ts
|
|
188
|
+
import { chmodSync, existsSync, mkdirSync, unlinkSync as unlinkSync2 } from "fs";
|
|
189
|
+
|
|
190
|
+
// src/utils/renderLockOwners.ts
|
|
191
|
+
import { randomBytes } from "crypto";
|
|
192
|
+
import { readdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
193
|
+
import { basename, dirname, join } from "path";
|
|
194
|
+
var markerPrefix = (lockPath) => `${basename(lockPath)}.owner-`;
|
|
195
|
+
var HELD_CODES = new Set(process.platform === "win32" ? ["EPERM", "EBUSY", "EACCES"] : ["EBUSY"]);
|
|
196
|
+
var UNREMOVABLE_CODES = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "EBUSY"]);
|
|
197
|
+
var errorCode = (error) => error.code ?? "";
|
|
198
|
+
function isHeldError(error) {
|
|
199
|
+
return HELD_CODES.has(errorCode(error));
|
|
200
|
+
}
|
|
201
|
+
function startToken(pid) {
|
|
202
|
+
return process.platform === "win32" ? null : processIdentity(pid);
|
|
203
|
+
}
|
|
204
|
+
function writeOwnerMarker(lockPath, owner) {
|
|
205
|
+
const name = `${markerPrefix(lockPath)}${owner.pid}-${randomBytes(6).toString("hex")}`;
|
|
206
|
+
const marker = join(dirname(lockPath), name);
|
|
207
|
+
writeFileSync(marker, JSON.stringify(owner), { flag: "wx" });
|
|
208
|
+
return marker;
|
|
209
|
+
}
|
|
210
|
+
function removeIfPresent(marker) {
|
|
211
|
+
try {
|
|
212
|
+
unlinkSync(marker);
|
|
213
|
+
} catch (error) {
|
|
214
|
+
if (!UNREMOVABLE_CODES.has(errorCode(error))) throw error;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function recordedIdentity(marker) {
|
|
218
|
+
try {
|
|
219
|
+
const owner = JSON.parse(readFileSync(marker, "utf8"));
|
|
220
|
+
return typeof owner.identity === "string" ? owner.identity : null;
|
|
221
|
+
} catch {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
function sameProcess(pid, identity) {
|
|
226
|
+
if (!Number.isInteger(pid) || pid <= 0 || !alive(pid)) return false;
|
|
227
|
+
const current = identity && startToken(pid);
|
|
228
|
+
return !identity || !current || current === identity;
|
|
229
|
+
}
|
|
230
|
+
function liveOtherOwners(lockPath, own) {
|
|
231
|
+
const dir = dirname(lockPath);
|
|
232
|
+
const prefix = markerPrefix(lockPath);
|
|
233
|
+
let live = 0;
|
|
234
|
+
for (const name of readdirSync(dir)) {
|
|
235
|
+
if (!name.startsWith(prefix)) continue;
|
|
236
|
+
const marker = join(dir, name);
|
|
237
|
+
if (marker === own) continue;
|
|
238
|
+
if (sameProcess(Number(name.slice(prefix.length).split("-")[0]), recordedIdentity(marker))) {
|
|
239
|
+
live += 1;
|
|
240
|
+
} else removeIfPresent(marker);
|
|
241
|
+
}
|
|
242
|
+
return live;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// src/utils/renderLockClaim.ts
|
|
246
|
+
var RenderLockStaleBreak = class extends Error {
|
|
247
|
+
constructor(breakPath) {
|
|
248
|
+
super(
|
|
249
|
+
`A render that was reclaiming the render slot stopped part way and left ${breakPath}. No render is using it: delete that file, then run the render again.`
|
|
250
|
+
);
|
|
251
|
+
this.breakPath = breakPath;
|
|
252
|
+
this.name = "RenderLockStaleBreak";
|
|
253
|
+
}
|
|
254
|
+
breakPath;
|
|
255
|
+
};
|
|
256
|
+
var RenderLockUnwritable = class extends Error {
|
|
257
|
+
constructor(dir, cause) {
|
|
258
|
+
super(
|
|
259
|
+
`This account cannot write to ${dir}, where renders take their turn. If accounts share HYPERFRAMES_CACHE_DIR, make the folder writable for all of them (chmod 777 ${dir}); otherwise unset HYPERFRAMES_CACHE_DIR.`,
|
|
260
|
+
{ cause }
|
|
261
|
+
);
|
|
262
|
+
this.dir = dir;
|
|
263
|
+
this.name = "RenderLockUnwritable";
|
|
264
|
+
}
|
|
265
|
+
dir;
|
|
266
|
+
};
|
|
267
|
+
function ensureLockDir(dir) {
|
|
268
|
+
if (mkdirSync(dir, { recursive: true }) !== void 0 && process.platform !== "win32") {
|
|
269
|
+
chmodSync(dir, 511);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
var holderAlive = (holder) => sameProcess(holder.pid, holder.identity);
|
|
273
|
+
var sameRecord = (a, b) => a?.pid === b.pid && a.startedAt === b.startedAt && a.identity === b.identity;
|
|
274
|
+
function createExclusive(path, holder) {
|
|
275
|
+
try {
|
|
276
|
+
createFileAtomically(path, JSON.stringify(holder));
|
|
277
|
+
return true;
|
|
278
|
+
} catch (error) {
|
|
279
|
+
if (error.code === "EEXIST") return false;
|
|
280
|
+
throw error;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
var writerAbsent = (file, lockPath, marker) => existsSync(file) && !readHolder(file) && liveOtherOwners(lockPath, marker) === 0;
|
|
284
|
+
async function takeOver(path, holder, observed, marker, beforeReplace) {
|
|
285
|
+
const breakPath = `${path}.break`;
|
|
286
|
+
if (!createExclusive(breakPath, holder)) {
|
|
287
|
+
const breaker = readHolder(breakPath);
|
|
288
|
+
if (breaker ? holderAlive(breaker) : !writerAbsent(breakPath, path, marker)) return false;
|
|
289
|
+
throw new RenderLockStaleBreak(breakPath);
|
|
290
|
+
}
|
|
291
|
+
try {
|
|
292
|
+
await beforeReplace?.();
|
|
293
|
+
const stillStale = observed ? sameRecord(readHolder(path), observed) : writerAbsent(path, path, marker);
|
|
294
|
+
if (stillStale) removeIfPresent(path);
|
|
295
|
+
return createExclusive(path, holder);
|
|
296
|
+
} finally {
|
|
297
|
+
if (sameRecord(readHolder(breakPath), holder)) unlinkSync2(breakPath);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
async function claimSlot(path, holder, marker, beforeReplace) {
|
|
301
|
+
if (createExclusive(path, holder)) return true;
|
|
302
|
+
const current = readHolder(path);
|
|
303
|
+
if (current ? holderAlive(current) : !writerAbsent(path, path, marker)) return false;
|
|
304
|
+
return takeOver(path, holder, current, marker, beforeReplace);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// src/utils/renderLock.ts
|
|
308
|
+
var RenderLockBusy = class extends Error {
|
|
309
|
+
constructor(holder, path) {
|
|
310
|
+
super(`Another render is running (${describeRenderLockHolder(holder, Date.now())})`);
|
|
311
|
+
this.holder = holder;
|
|
312
|
+
this.path = path;
|
|
313
|
+
this.name = "RenderLockBusy";
|
|
314
|
+
}
|
|
315
|
+
holder;
|
|
316
|
+
path;
|
|
317
|
+
};
|
|
318
|
+
var POLL_MS = 1e3;
|
|
319
|
+
var renderLockPath = () => hyperframesCacheDir("locks", "render.lock");
|
|
320
|
+
function renderLockDisabled(env = process.env) {
|
|
321
|
+
const value = env.HYPERFRAMES_RENDER_LOCK?.trim().toLowerCase();
|
|
322
|
+
return value === "off" || value === "0" || value === "false";
|
|
323
|
+
}
|
|
324
|
+
function describeRenderLockHolder(holder, now) {
|
|
325
|
+
if (!holder) return "holder unknown";
|
|
326
|
+
const seconds = Math.max(0, Math.round((now - holder.startedAt) / 1e3));
|
|
327
|
+
const running = seconds >= 60 ? `${Math.floor(seconds / 60)}m ${seconds % 60}s` : `${seconds}s`;
|
|
328
|
+
return `pid ${holder.pid}, project ${holder.project}, running ${running}`;
|
|
329
|
+
}
|
|
330
|
+
function pause(ms, signal) {
|
|
331
|
+
return new Promise((resolve, reject) => {
|
|
332
|
+
if (signal?.aborted) return reject(signal.reason);
|
|
333
|
+
const onAbort = () => {
|
|
334
|
+
clearTimeout(timer);
|
|
335
|
+
reject(signal?.reason);
|
|
336
|
+
};
|
|
337
|
+
const timer = setTimeout(() => {
|
|
338
|
+
signal?.removeEventListener("abort", onAbort);
|
|
339
|
+
resolve();
|
|
340
|
+
}, ms);
|
|
341
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
var sameWaitTarget = (a, b) => a?.pid === b?.pid && a?.startedAt === b?.startedAt;
|
|
345
|
+
async function acquireRenderLock(options) {
|
|
346
|
+
if (renderLockDisabled(options.env)) return () => {
|
|
347
|
+
};
|
|
348
|
+
const contender = prepareContender(options);
|
|
349
|
+
let waitingBehind;
|
|
350
|
+
let retriedVanished = false;
|
|
351
|
+
for (; ; ) {
|
|
352
|
+
options.signal?.throwIfAborted();
|
|
353
|
+
const releaseSlot = await claimOnce(contender);
|
|
354
|
+
if (releaseSlot) return releaseSlot;
|
|
355
|
+
const { path } = contender;
|
|
356
|
+
const current = readHolder(path);
|
|
357
|
+
retriedVanished = !current && !existsSync2(path) && !retriedVanished;
|
|
358
|
+
if (retriedVanished) continue;
|
|
359
|
+
if (!options.wait) throw new RenderLockBusy(current, path);
|
|
360
|
+
if (waitingBehind === void 0 || !sameWaitTarget(waitingBehind, current)) {
|
|
361
|
+
waitingBehind = current;
|
|
362
|
+
options.onWait?.(current, path);
|
|
363
|
+
}
|
|
364
|
+
await pause(options.pollMs ?? POLL_MS, options.signal);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function prepareContender(options) {
|
|
368
|
+
const path = options.path ?? renderLockPath();
|
|
369
|
+
ensureLockDir(dirname2(path));
|
|
370
|
+
liveOtherOwners(path);
|
|
371
|
+
const pid = options.pid ?? process.pid;
|
|
372
|
+
const identity = startToken(pid);
|
|
373
|
+
return {
|
|
374
|
+
path,
|
|
375
|
+
holder: { pid, command: "render", startedAt: Date.now(), project: options.project, identity },
|
|
376
|
+
owner: { pid, identity },
|
|
377
|
+
claim: options.claim ?? ((lock, holder, marker) => claimSlot(lock, holder, marker, options.beforeReplace))
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
var notWritable = (error) => process.platform !== "win32" && ["EACCES", "EPERM"].includes(error.code ?? "");
|
|
381
|
+
async function claimOnce({ path, holder, owner, claim }) {
|
|
382
|
+
let marker;
|
|
383
|
+
try {
|
|
384
|
+
marker = writeOwnerMarker(path, owner);
|
|
385
|
+
} catch (error) {
|
|
386
|
+
throw notWritable(error) ? new RenderLockUnwritable(dirname2(path), error) : error;
|
|
387
|
+
}
|
|
388
|
+
let held = false;
|
|
389
|
+
try {
|
|
390
|
+
held = await claim(path, holder, marker);
|
|
391
|
+
} catch (error) {
|
|
392
|
+
if (notWritable(error)) throw new RenderLockUnwritable(dirname2(path), error);
|
|
393
|
+
if (!isHeldError(error)) throw error;
|
|
394
|
+
} finally {
|
|
395
|
+
if (!held) removeIfPresent(marker);
|
|
396
|
+
}
|
|
397
|
+
if (!held) return null;
|
|
398
|
+
return () => {
|
|
399
|
+
release(path, holder);
|
|
400
|
+
removeIfPresent(marker);
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export {
|
|
405
|
+
renderObservabilityTelemetryPayload,
|
|
406
|
+
renderJobObservabilityTelemetryPayload,
|
|
407
|
+
startRenderCpuSampler,
|
|
408
|
+
RenderLockStaleBreak,
|
|
409
|
+
RenderLockUnwritable,
|
|
410
|
+
RenderLockBusy,
|
|
411
|
+
describeRenderLockHolder,
|
|
412
|
+
acquireRenderLock
|
|
413
|
+
};
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-JJ47LVJ7.js";
|
|
19
19
|
import {
|
|
20
20
|
trackSkillsInstallSkipped
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GTUTZIRR.js";
|
|
22
22
|
import {
|
|
23
23
|
diag
|
|
24
24
|
} from "./chunk-MCDNAIFF.js";
|
|
@@ -39,11 +39,11 @@ import {
|
|
|
39
39
|
isCoreSkill,
|
|
40
40
|
presentSkills,
|
|
41
41
|
retiredSkillNotice
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IXMO4RXK.js";
|
|
43
43
|
import {
|
|
44
44
|
NO_UPDATE_NOTICE,
|
|
45
45
|
withMeta
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-BX2BIU6Z.js";
|
|
47
47
|
import {
|
|
48
48
|
failureMessage,
|
|
49
49
|
jsonFailure
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-66W5IWLO.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-TM5H5ZY3.js";
|
|
58
58
|
|
|
59
59
|
// src/commands/skills.ts
|
|
60
60
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -7,29 +7,27 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
cliCheckoutLink,
|
|
9
9
|
pageUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BYJEUZNT.js";
|
|
11
11
|
import {
|
|
12
12
|
Fix
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2YZ6GA4E.js";
|
|
14
14
|
import {
|
|
15
15
|
refreshIfNeeded,
|
|
16
16
|
resolveCloudAuthHeaders,
|
|
17
17
|
resolveCloudBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4N3UVDIJ.js";
|
|
19
|
+
import {
|
|
20
|
+
AuthClient,
|
|
21
|
+
buildAuthHeaders,
|
|
22
|
+
resolveCredential
|
|
23
|
+
} from "./chunk-M457GQGR.js";
|
|
19
24
|
import {
|
|
20
25
|
HyperframesApiError,
|
|
21
26
|
HyperframesCloudClient
|
|
22
27
|
} from "./chunk-D3NWGOXW.js";
|
|
23
|
-
import {
|
|
24
|
-
resolveCredential
|
|
25
|
-
} from "./chunk-JE2YBPC5.js";
|
|
26
|
-
import {
|
|
27
|
-
AuthClient,
|
|
28
|
-
buildAuthHeaders
|
|
29
|
-
} from "./chunk-WXEXQLVV.js";
|
|
30
28
|
import {
|
|
31
29
|
configDir
|
|
32
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LP7B3JLC.js";
|
|
33
31
|
|
|
34
32
|
// src/heygen/v3.ts
|
|
35
33
|
import { createHash } from "crypto";
|
|
@@ -65,6 +63,15 @@ function creditsSpent(projectDir) {
|
|
|
65
63
|
var MEDIA_USE_SKILL = "media-use";
|
|
66
64
|
var RUNNING = /* @__PURE__ */ new Set(["pending", "processing", "queued", "running", "waiting", "in_progress"]);
|
|
67
65
|
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
66
|
+
var VENDOR_HEADROOM = 1.1;
|
|
67
|
+
var chargedCredits = (job) => isRecord(job.charged) && job.charged.pool === "hyperframes_credits" && typeof job.charged.amount === "number" ? job.charged.amount : void 0;
|
|
68
|
+
function limitCheck(credits, vendorPriced = false) {
|
|
69
|
+
const checked = vendorPriced ? Math.ceil(credits * VENDOR_HEADROOM - 1e-9) : credits;
|
|
70
|
+
return {
|
|
71
|
+
checked,
|
|
72
|
+
about: vendorPriced ? `about ${credits} credits, ${checked} with 10% headroom because it is charged at the vendor's cost` : `about ${credits} credits`
|
|
73
|
+
};
|
|
74
|
+
}
|
|
68
75
|
function idempotencyKey(route, parts) {
|
|
69
76
|
const h = createHash("sha256").update(route);
|
|
70
77
|
for (const p of parts) h.update(p).update("\0");
|
|
@@ -206,7 +213,7 @@ function log(entry, record) {
|
|
|
206
213
|
`
|
|
207
214
|
);
|
|
208
215
|
}
|
|
209
|
-
function withinLimit(limitLog, sent, credits) {
|
|
216
|
+
function withinLimit(limitLog, sent, credits, vendorPriced) {
|
|
210
217
|
if (!limitLog?.projectDir) return false;
|
|
211
218
|
const limit = creditLimit(limitLog.projectDir);
|
|
212
219
|
if (limit === void 0) return false;
|
|
@@ -219,12 +226,13 @@ function withinLimit(limitLog, sent, credits) {
|
|
|
219
226
|
`this call cannot be priced ahead, so it cannot be kept under the run's credit limit of ${limit}; nothing was made`,
|
|
220
227
|
fix
|
|
221
228
|
);
|
|
222
|
-
|
|
229
|
+
const { checked, about } = limitCheck(credits, vendorPriced);
|
|
230
|
+
if (checked > left)
|
|
223
231
|
throw new Fix(
|
|
224
|
-
`this call is
|
|
232
|
+
`this call is ${about} and the run's credit limit of ${limit} leaves ${Math.max(0, left)}; nothing was made or charged`,
|
|
225
233
|
fix
|
|
226
234
|
);
|
|
227
|
-
log(limitLog, { key: sent, status: "reserved", credits });
|
|
235
|
+
log(limitLog, { key: sent, status: "reserved", credits: checked });
|
|
228
236
|
return true;
|
|
229
237
|
}
|
|
230
238
|
async function runJob(jobRoute, body, key, opts = {}) {
|
|
@@ -232,7 +240,8 @@ async function runJob(jobRoute, body, key, opts = {}) {
|
|
|
232
240
|
const route = jobRoute.path;
|
|
233
241
|
const { auth, scope } = await jobSender();
|
|
234
242
|
const sent = liveKey(key, scope);
|
|
235
|
-
const reserved = withinLimit(opts.log, sent, opts.credits);
|
|
243
|
+
const reserved = withinLimit(opts.log, sent, opts.credits, opts.vendorPriced);
|
|
244
|
+
const held = opts.credits === void 0 ? void 0 : limitCheck(opts.credits, opts.vendorPriced).checked;
|
|
236
245
|
let job;
|
|
237
246
|
try {
|
|
238
247
|
job = await call(
|
|
@@ -251,7 +260,7 @@ async function runJob(jobRoute, body, key, opts = {}) {
|
|
|
251
260
|
}
|
|
252
261
|
const waits = RUNNING.has(job.status.toLowerCase());
|
|
253
262
|
if (opts.log && waits)
|
|
254
|
-
log(opts.log, { route, id: job.id, key: sent, status: job.status, credits:
|
|
263
|
+
log(opts.log, { route, id: job.id, key: sent, status: job.status, credits: held });
|
|
255
264
|
const status = jobRoute.status;
|
|
256
265
|
while (status && RUNNING.has(job.status.toLowerCase())) {
|
|
257
266
|
if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
|
|
@@ -269,7 +278,13 @@ async function runJob(jobRoute, body, key, opts = {}) {
|
|
|
269
278
|
);
|
|
270
279
|
}
|
|
271
280
|
if (opts.log)
|
|
272
|
-
log(opts.log, {
|
|
281
|
+
log(opts.log, {
|
|
282
|
+
route,
|
|
283
|
+
id: job.id,
|
|
284
|
+
key: sent,
|
|
285
|
+
status: job.status,
|
|
286
|
+
credits: chargedCredits(job) ?? opts.credits
|
|
287
|
+
});
|
|
273
288
|
if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
|
|
274
289
|
markFailed(sent, scope);
|
|
275
290
|
throw await refusal(422, {
|
|
@@ -322,6 +337,8 @@ function keepVoice(projectDir, request, voice) {
|
|
|
322
337
|
}
|
|
323
338
|
|
|
324
339
|
export {
|
|
340
|
+
chargedCredits,
|
|
341
|
+
limitCheck,
|
|
325
342
|
idempotencyKey,
|
|
326
343
|
runJob,
|
|
327
344
|
publicVoices,
|