hyperframes 0.9.27 → 0.9.28-alpha.1
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-K5J5XWLL.js → add-YDZMFKR3.js} +14 -14
- package/dist/{agentPromptGenerator-PGIEEJLJ.js → agentPromptGenerator-AUXZZCIG.js} +7 -7
- package/dist/{animatedGifPrep-MLZOHCTS.js → animatedGifPrep-2DYVIBA4.js} +7 -7
- package/dist/api.js +39 -38
- package/dist/{asset-OS5AB3SQ.js → asset-JHM3VF72.js} +2 -2
- package/dist/{assetCataloger-DMVL5X2P.js → assetCataloger-2OB46SVM.js} +8 -8
- package/dist/{audio-23FMLVOJ.js → audio-T6YSLT2D.js} +25 -24
- package/dist/{auth-2DIXO5OO.js → auth-YSTRUKED.js} +4 -4
- package/dist/{autoUpdate-NP2CBKFP.js → autoUpdate-VYRYBZG6.js} +3 -3
- package/dist/{avatars-LULUZMLI.js → avatars-UU53IDAK.js} +16 -15
- package/dist/{backgroundChecks-3MXY6FNF.js → backgroundChecks-FNACAOZD.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-AL6DO5IA.js → batchRender-KWIPFU5Q.js} +4 -4
- package/dist/{beats-U4Q76QWK.js → beats-X2LCSMYD.js} +11 -11
- package/dist/{benchmark-QANZ2IRX.js → benchmark-4OB6M2FR.js} +11 -11
- package/dist/{billing-PX54B6T7.js → billing-DC6ODLSG.js} +16 -15
- package/dist/{browser-P36XPIWA.js → browser-PUJD4WCC.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-QY6JAKLF.js → bundleWithLocalizedFonts-7HQEKW2H.js} +1 -1
- package/dist/{capture-ZZWXDUH2.js → capture-IGQR6HTG.js} +22 -22
- package/dist/{capture-S5DURUCT.js → capture-PUB5WBLQ.js} +3 -3
- package/dist/{captureCompositionFrame-VTN6VB5N.js → captureCompositionFrame-JT6HGVU7.js} +14 -14
- package/dist/{catalog-TTBH4Y6Z.js → catalog-5NC5EV6Z.js} +14 -14
- package/dist/{catch-up-M3CF57PU.js → catch-up-6RJNWB5I.js} +9 -9
- package/dist/{check-K7ZBDKBZ.js → check-FXZOPV3Y.js} +43 -44
- package/dist/{checkAudio-HZ3Z5BTZ.js → checkAudio-VSHZXO4J.js} +15 -15
- package/dist/{checkBrowser-TO5M2QL2.js → checkBrowser-EOSAXIHJ.js} +37 -37
- package/dist/{chunk-K6UG4VWT.js → chunk-2BSPL7YE.js} +3 -3
- package/dist/{chunk-5FWOWZAB.js → chunk-2Q3Y7CI3.js} +7 -7
- package/dist/{chunk-7JK2YE2G.js → chunk-36G3XDN6.js} +2 -2
- package/dist/chunk-37RCPDCR.js +173 -0
- package/dist/{chunk-FKSUSFRT.js → chunk-3BWFZFJK.js} +18 -18
- package/dist/{chunk-NFUXYBOR.js → chunk-3MYEF34S.js} +1 -1
- package/dist/{chunk-YU5QNJMA.js → chunk-3OKVZXTH.js} +2 -2
- package/dist/{chunk-ZUXES5HA.js → chunk-3Q7LAXFJ.js} +2 -2
- package/dist/{chunk-F24B2PLD.js → chunk-3T6BFAKZ.js} +1 -1
- package/dist/{chunk-FNSWA4FK.js → chunk-44LVKFXU.js} +1 -1
- package/dist/{chunk-M3UU4QRH.js → chunk-4J2J57RS.js} +3 -3
- package/dist/{chunk-JLUOG6S2.js → chunk-4OZVFZCO.js} +1 -1
- package/dist/{chunk-KUBXGMHI.js → chunk-4TU5M4WX.js} +28 -30
- package/dist/chunk-4UBGQTAT.js +387 -0
- package/dist/{chunk-LI2TX7SN.js → chunk-4XGKXBYH.js} +2 -2
- package/dist/{chunk-XZ2MQF7V.js → chunk-5ROYFGQT.js} +1 -1
- package/dist/{chunk-W5QBSRPF.js → chunk-5YDJTVOQ.js} +2 -2
- package/dist/{chunk-YNIADMNZ.js → chunk-63PVDQ6R.js} +2 -2
- package/dist/{chunk-L2GOO2UY.js → chunk-6ODX6SHY.js} +2 -2
- package/dist/{chunk-2WKG7HXZ.js → chunk-6RHKGQRA.js} +2 -2
- package/dist/{chunk-STQGPDO4.js → chunk-6UJOLK4G.js} +2 -2
- package/dist/{chunk-TKFKOWRI.js → chunk-7D4PARGG.js} +6 -6
- package/dist/{chunk-6PHVIKCJ.js → chunk-7GZ4E5ID.js} +4 -4
- package/dist/{chunk-MVJ7AX6W.js → chunk-7U2B7OF6.js} +1 -1
- package/dist/{chunk-V4Z37HFN.js → chunk-7XHVHBFV.js} +3 -3
- package/dist/{chunk-IOPIOX5K.js → chunk-AAENGP3S.js} +16 -66
- package/dist/{chunk-LMCFILEY.js → chunk-AHRX3FHF.js} +3 -3
- package/dist/{chunk-U5RXCKWJ.js → chunk-AJVYQVDB.js} +1 -1
- package/dist/{chunk-TRXIWZTM.js → chunk-ALCP5OEW.js} +1 -1
- package/dist/{chunk-6LCIO2YY.js → chunk-BP75ZLZ5.js} +2 -2
- package/dist/{chunk-5ZEBQO7Y.js → chunk-C6S2NYQ4.js} +4 -4
- package/dist/{chunk-TM6HH2VV.js → chunk-CE765XG3.js} +1 -1
- package/dist/{chunk-PBDBD4BY.js → chunk-CG65CRMP.js} +2 -2
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-LLLNVEUF.js → chunk-COAB2OXQ.js} +1 -1
- package/dist/{chunk-5WI3VKQW.js → chunk-DFKD43CD.js} +3 -3
- package/dist/chunk-DGXKMYIX.js +343 -0
- package/dist/{chunk-Y67RJDEB.js → chunk-FF25S7ZC.js} +1 -1
- package/dist/{chunk-LP7B3JLC.js → chunk-FID757D3.js} +1 -0
- package/dist/{chunk-F4ROYQPH.js → chunk-FZUIGBYD.js} +3 -3
- package/dist/{chunk-CGUAZCPL.js → chunk-GNG7XNUY.js} +15 -15
- package/dist/{chunk-7VHSPFBH.js → chunk-GTZVTATR.js} +1 -1
- package/dist/{chunk-ZGIPMCML.js → chunk-GVBAVADJ.js} +1 -1
- package/dist/{chunk-DC5ZRTHD.js → chunk-HPR2BPFS.js} +2 -2
- package/dist/{chunk-IX3K55NA.js → chunk-HW325JBH.js} +4 -4
- package/dist/{chunk-HGHBQDM5.js → chunk-IADGTP5X.js} +3 -3
- package/dist/{chunk-OSDNRYQJ.js → chunk-IMSLXLUI.js} +1 -1
- package/dist/{chunk-GQTNVE7U.js → chunk-J5CDV66Q.js} +4 -4
- package/dist/chunk-JE2YBPC5.js +152 -0
- package/dist/{chunk-YSJKA52M.js → chunk-JHSHEJU7.js} +2 -2
- package/dist/{chunk-J237HI2F.js → chunk-JX4BEVC3.js} +29 -41
- package/dist/{chunk-BZFVS36G.js → chunk-KCRVZA7B.js} +1 -1
- package/dist/{chunk-NURN5W6M.js → chunk-KJ5QBEMN.js} +8 -6
- package/dist/{chunk-RVXE24LQ.js → chunk-L666J5OJ.js} +2 -2
- package/dist/{chunk-6NVZYXDT.js → chunk-LSSUDIEM.js} +5 -5
- package/dist/{chunk-6FHIR4KD.js → chunk-ME6L6GUF.js} +1 -1
- package/dist/{chunk-BJYCLZBQ.js → chunk-MEVLYDL2.js} +1 -1
- package/dist/{chunk-D5QT3ORV.js → chunk-MPC3L6A3.js} +1 -1
- package/dist/{chunk-TMYY4DV4.js → chunk-MWBRY5HN.js} +3 -3
- package/dist/{chunk-QTBRVJ6N.js → chunk-N5TVFPYQ.js} +1 -1
- package/dist/{chunk-5TD7HBR3.js → chunk-NHRLZESZ.js} +1 -1
- package/dist/{chunk-IIS57Z3R.js → chunk-NVNKKVDH.js} +2 -2
- package/dist/{chunk-QISOTHEQ.js → chunk-O2JZ6C3S.js} +7 -7
- package/dist/{chunk-WZTOPKVO.js → chunk-OJ5HAKL6.js} +7 -7
- package/dist/{chunk-5AULMCSV.js → chunk-OPGYOHU6.js} +2 -2
- package/dist/chunk-OUOZGJJF.js +538 -0
- package/dist/{chunk-V6EVV3XC.js → chunk-PSGS27VB.js} +2 -2
- package/dist/chunk-Q5JJDC2L.js +51 -0
- package/dist/{chunk-RYT22J4V.js → chunk-Q6TVZY36.js} +2 -2
- package/dist/chunk-QABQKJPY.js +3761 -0
- package/dist/{chunk-RSNZEWNW.js → chunk-QB2USW3R.js} +1 -1
- package/dist/{chunk-5PL4LZYF.js → chunk-QKAXPYTV.js} +12 -12
- package/dist/{chunk-4N3UVDIJ.js → chunk-QTDTCTGB.js} +6 -4
- package/dist/{chunk-SODLRBNC.js → chunk-R6PUBUA4.js} +1 -1
- package/dist/{chunk-NHJ5YUBZ.js → chunk-RERVXE6J.js} +2 -2
- package/dist/{chunk-GGDJLN5I.js → chunk-SCPMSSQW.js} +20 -0
- package/dist/{chunk-CZ43ZZFS.js → chunk-STTUDVAI.js} +1 -1
- package/dist/{chunk-QYPS3UYP.js → chunk-SXGLW3OW.js} +3 -3
- package/dist/{chunk-TCQKCUDA.js → chunk-TF7VWCJM.js} +1 -1
- package/dist/{chunk-NMOWXTCB.js → chunk-TLVXCOMV.js} +2 -2
- package/dist/{chunk-Z5THPTQ2.js → chunk-TYPFNWE6.js} +1 -1
- package/dist/{chunk-ZNTYIJ5K.js → chunk-UYVQDKGC.js} +1 -1
- package/dist/{chunk-DJVSNDF3.js → chunk-VSQ5NWCF.js} +3 -3
- package/dist/{chunk-6IMVGVA4.js → chunk-VYEPG2N6.js} +1 -1
- package/dist/{chunk-UPG4MMIA.js → chunk-W3XARNFW.js} +1 -1
- package/dist/{chunk-BZULWFMJ.js → chunk-W4DMQZL5.js} +2 -11
- package/dist/{chunk-ZDQNMNFE.js → chunk-WCPH2JRB.js} +9 -9
- package/dist/{chunk-QBNHYXV3.js → chunk-WFO2PDZD.js} +11 -9
- package/dist/{chunk-IYYZMZD2.js → chunk-WIJGRX5X.js} +1 -1
- package/dist/{chunk-SCNC7YPB.js → chunk-WOSVLHQH.js} +1 -1
- package/dist/{chunk-M457GQGR.js → chunk-WXEXQLVV.js} +216 -344
- package/dist/{chunk-IQKMIYLG.js → chunk-WYA575QX.js} +7 -5
- package/dist/{chunk-UXJAMAZK.js → chunk-XFE4R6I4.js} +1 -1
- package/dist/{chunk-3JFV42QB.js → chunk-XGRXNWDK.js} +3 -3
- package/dist/{chunk-V7Q4XKRJ.js → chunk-XHP3V4WH.js} +9 -5
- package/dist/{chunk-Q73OZV2V.js → chunk-XLX7TDCI.js} +17 -17
- package/dist/{chunk-YPRU66CC.js → chunk-XOON4QRF.js} +1 -1
- package/dist/{chunk-2SX2EOPM.js → chunk-YFDCU6X5.js} +6 -6
- package/dist/{chunk-VXWASGGT.js → chunk-YJBGA3W6.js} +2 -2
- package/dist/{chunk-OT2KF34N.js → chunk-YSIDK3VE.js} +12 -12
- package/dist/{chunk-INVBU7DY.js → chunk-ZMQYQHZU.js} +1 -1
- package/dist/{clean-LCQH4HFU.js → clean-5WXYKIWX.js} +22 -22
- package/dist/cli.js +69 -67
- package/dist/{cloud-QJMPTQ3N.js → cloud-TEJ6UVBU.js} +6 -5
- package/dist/{cloud-34YHQNNB.js → cloud-X2ZPQOFN.js} +4 -4
- package/dist/{cloudrun-T7VVPRDG.js → cloudrun-A7DU7DQE.js} +7 -7
- package/dist/{compare-5EBDE5ZT.js → compare-URG6E3VF.js} +35 -35
- package/dist/{compiler-ZSIKBZBR.js → compiler-J43BE6LC.js} +4 -4
- package/dist/{component-7TIFLFYC.js → component-BE2ZLBPY.js} +3 -3
- package/dist/{compositions-TLCEVGBC.js → compositions-DJPSPCYI.js} +13 -13
- package/dist/contract/LICENSE-Unicode.txt +39 -0
- package/dist/contract/path-policy.json +311 -0
- package/dist/contract/unicode-15.1.0.json +6179 -0
- package/dist/{curve-YABHYRHK.js → curve-I6CGCMG5.js} +12 -12
- package/dist/{cuts-UFRBSLDQ.js → cuts-TRTRMTCZ.js} +13 -13
- package/dist/{delete-5OABQGPL.js → delete-UMO7XCW3.js} +9 -8
- package/dist/{deploy-2OYZWP74.js → deploy-T2CETGFF.js} +6 -6
- package/dist/{describeProject-TX2WQLQ5.js → describeProject-AJ2SFRCN.js} +8 -8
- package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-UZIF5XZW.js} +2 -2
- package/dist/{diff-2CKZ2QR7.js → diff-KCVI66ZW.js} +40 -39
- package/dist/{dist-EFXKPJJT.js → dist-4JHP47NU.js} +2 -2
- package/dist/{dist-O45G7NET.js → dist-AUYCAQMA.js} +14 -14
- package/dist/{dist-QRXJMFI7.js → dist-F3Y2XHZL.js} +3 -3
- package/dist/{doctor-Y436MAQR.js → doctor-UTIGHYSY.js} +12 -12
- package/dist/{energy-UKLKTH7A.js → energy-PJUDIY2I.js} +13 -13
- package/dist/{events-NKRFVAY3.js → events-HI2WDYGV.js} +4 -4
- package/dist/{events-MC5XLD2Z.js → events-P6Q6GB6K.js} +8 -8
- package/dist/{events-73W2IO3W.js → events-ZMFIRGW4.js} +15 -15
- package/dist/execute-AUPUAYPW.js +109 -0
- package/dist/{extract-ZG3MHNYX.js → extract-4RYOD7LZ.js} +16 -16
- package/dist/{face-CFBT42SW.js → face-X3DR3L7V.js} +14 -14
- package/dist/{feedback-QGDEE3RB.js → feedback-WOE25OSG.js} +15 -14
- package/dist/{ffmpeg-UXHRG3MW.js → ffmpeg-N3LZ7XBX.js} +7 -7
- package/dist/{figma-BD7RROGK.js → figma-VPG54R3O.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-ZF756HF3.js → frames-VNQ5P43E.js} +14 -14
- package/dist/{generate-LEUO4VVQ.js → generate-ZCTFKNNW.js} +27 -26
- package/dist/{get-4BL6VXKX.js → get-K374EYQS.js} +9 -8
- package/dist/{gpuPolicy-K2JHXORZ.js → gpuPolicy-SAEOR4QY.js} +7 -7
- package/dist/{grade-compare-4UBZJQ7F.js → grade-compare-UHNGFSNR.js} +37 -37
- package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-5YD4N6HQ.js} +1 -1
- package/dist/{heifImagePrep-O2WGVMAP.js → heifImagePrep-R7NDS5FP.js} +8 -8
- package/dist/{help-M55BSV4I.js → help-6DADTB2R.js} +1 -1
- package/dist/{history-UIQBTMXZ.js → history-2K4FPC4P.js} +11 -11
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-X4VTZ7PT.js → info-7NZB6ZUO.js} +15 -15
- package/dist/{init-3Y5XMH6I.js → init-UVGSTDBD.js} +29 -29
- package/dist/{ink-QKIGMWUR.js → ink-3GBOCKAV.js} +13 -13
- package/dist/{inspect-BUKYJF6N.js → inspect-XWAQWM2Y.js} +34 -34
- package/dist/{installer-VPGNKCEU.js → installer-AJESSC5Y.js} +5 -5
- package/dist/{keyframes-6HO56WZG.js → keyframes-7C6LAP5V.js} +12 -15
- package/dist/{lambda-XDVNHACQ.js → lambda-Y2BEBCDQ.js} +13 -13
- package/dist/{layout-WELYAXO3.js → layout-Z35EOSYQ.js} +34 -34
- package/dist/{lint-6R3E6Q5V.js → lint-QU5JDQX3.js} +12 -12
- package/dist/{lintProject-5CBL7VFV.js → lintProject-Z6TG3Z34.js} +2 -2
- package/dist/{list-SIL4TALK.js → list-6KUDG4X7.js} +11 -10
- package/dist/{localPage-6VW25RGJ.js → localPage-SM5JBV4M.js} +7 -7
- package/dist/{login-3AFKZLIK.js → login-XCR35XUC.js} +8 -7
- package/dist/{logout-FJ444652.js → logout-AHGR3X5U.js} +6 -4
- package/dist/{look-RYLQYXNN.js → look-O452Y7XO.js} +13 -13
- package/dist/{manager-T4ZHIMMY.js → manager-GCFCVNYS.js} +8 -8
- package/dist/{measure-XUK4GNAC.js → measure-D54QYN6X.js} +11 -11
- package/dist/{media-treatment-SR5TX7CH.js → media-treatment-LPL2SZ7W.js} +15 -15
- package/dist/{media-use-3LOSIEZM.js → media-use-VL2EL53W.js} +9 -7
- package/dist/{models-5SPPZN2E.js → models-YFFUQ757.js} +11 -11
- package/dist/{motionShot-IFAFFPZF.js → motionShot-QHWXLUJM.js} +19 -19
- package/dist/{normalize-audio-LQDUTXFM.js → normalize-audio-72PTXCD7.js} +11 -11
- package/dist/oauth-KUPQUH6E.js +40 -0
- package/dist/{open-XX2L2YSZ.js → open-BLPP4OPX.js} +14 -14
- package/dist/{parakeetRunner-R5WK6AJN.js → parakeetRunner-3A66RNGS.js} +13 -13
- package/dist/{pipeline-NMCWG5AA.js → pipeline-BFMEIMNZ.js} +10 -10
- package/dist/plan-2MKSJEUW.js +88 -0
- package/dist/{play-Q2AYSHPW.js → play-KG2B7KMX.js} +26 -26
- package/dist/{preflight-WG2O5KUQ.js → preflight-YNGNNHZC.js} +8 -8
- package/dist/{present-AOU7HG3N.js → present-WGQEDRXJ.js} +21 -21
- package/dist/{preview-PMGF6AQB.js → preview-JM6GYVIL.js} +23 -23
- package/dist/{probe-SESDMQ4Q.js → probe-B5H6PBIG.js} +13 -13
- package/dist/{producer-TGF2N7GF.js → producer-QIHOQ53I.js} +1 -1
- package/dist/{projectConfig-UHYPGWD5.js → projectConfig-GJL2ZGOU.js} +7 -7
- package/dist/{publication-5KOANEHK.js → publication-BLLVTVD6.js} +3 -3
- package/dist/{publish-C3ARXH6D.js → publish-CYPJA7T7.js} +83 -23
- package/dist/{refresh-YY4K2RWR.js → refresh-TB4TNH7R.js} +4 -3
- package/dist/{remove-background-ZHAYTN7D.js → remove-background-MHKW4EBR.js} +11 -11
- package/dist/{render-UNWC5ZIO.js → render-F35USXZA.js} +45 -44
- package/dist/{render-XYWARHW5.js → render-RTPE3OBI.js} +316 -934
- package/dist/{render-TSV3XTQV.js → render-RUEXLOWE.js} +6 -6
- package/dist/{render-batch-ISMXAG7F.js → render-batch-QFGQD5FM.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZWNLOG6O.js → resolver-HQIDF3TF.js} +5 -5
- package/dist/{reverse-Q76RJRN5.js → reverse-BEQHRYSZ.js} +1 -1
- package/dist/{run-UPKPPRV7.js → run-EVZGKUEX.js} +5 -4
- package/dist/{screenshotCapture-N6BXDAMK.js → screenshotCapture-4NDEWYCU.js} +8 -8
- package/dist/service-XCT7W4PQ.js +68 -0
- package/dist/share-KRKP6VYV.js +241 -0
- package/dist/{sherpa-5YE5FIOR.js → sherpa-MNU3ORFR.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/{skills-U4NHFYH4.js → skills-3R6EC5PV.js} +11 -11
- package/dist/{skillsUpdateCheck-XJA6VEZZ.js → skillsUpdateCheck-TRRXLL46.js} +4 -4
- package/dist/{snapshot-V4BSRUXI.js → snapshot-BYNK523M.js} +48 -50
- package/dist/{src-JVYKW7RE.js → src-EZMBCQBY.js} +12 -12
- package/dist/{src-FNXCLKWN.js → src-FZ4EJHOK.js} +6 -6
- package/dist/{start-TSIACBUA.js → start-FRPRXMEN.js} +25 -24
- package/dist/{staticProjectServer-NTSNYFWQ.js → staticProjectServer-FF6IBUD6.js} +19 -19
- package/dist/{status-53Z4YLQ7.js → status-QZ7PKGAJ.js} +20 -18
- package/dist/studio/assets/{codec-YP1ZxmPt.js → codec-DqodFzhT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-Cy3KqtCh.js → hyperframes-player-D03oERxc.js} +1 -1
- package/dist/studio/assets/{index-C4B6p8IF.js → index-9kcxLnm3.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-Cq2w6U13.css} +1 -1
- package/dist/studio/assets/{index-BNTUBT5h.js → index-DuOvEv27.js} +184 -184
- package/dist/studio/assets/{pausedVideoDecoder-52lsHc7p.js → pausedVideoDecoder-pYFINB0c.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-2I44WB4P.js → studio-api-RBURPKYX.js} +14 -14
- package/dist/{studioServer-HSYYGQU3.js → studioServer-YZDNK3AO.js} +434 -83
- package/dist/{sync-B2HPDX37.js → sync-6MHJVU4M.js} +13 -13
- package/dist/{telemetry-L4KX6ADA.js → telemetry-CLB2O4ZK.js} +8 -8
- package/dist/{templates-MKR4FTPR.js → templates-HFQXIAO2.js} +19 -18
- package/dist/{timeline-VDFI4ABH.js → timeline-ORRCS7NO.js} +21 -21
- package/dist/{tokens-XYVGSKDY.js → tokens-OTBA5VQ3.js} +2 -2
- package/dist/{transcribe-3QGLLMEQ.js → transcribe-EMXH7CGF.js} +10 -10
- package/dist/{transcribe-A7QZYVNX.js → transcribe-PJIFWND6.js} +29 -28
- package/dist/{tts-HOZ6X3MD.js → tts-NANTORLP.js} +1 -1
- package/dist/{update-AWSCA73T.js → update-RT6R53XR.js} +12 -12
- package/dist/{updateCheck-ATDIIE24.js → updateCheck-LSLLTUFX.js} +3 -3
- package/dist/{upgrade-RJNDUCWP.js → upgrade-SSPKJYOW.js} +4 -4
- package/dist/{urlDownloader-RE6IIDWK.js → urlDownloader-FTYUJP2D.js} +6 -6
- package/dist/{validate-YWO6GA5Q.js → validate-SN2JDYNN.js} +28 -28
- package/dist/{video-RKEUBWJI.js → video-Z522PCEM.js} +8 -8
- package/dist/{voices-GESP52KZ.js → voices-AQWUK6GK.js} +24 -23
- package/dist/warmCheck.js +43 -44
- package/package.json +2 -1
- package/dist/chunk-63HHKYU2.js +0 -413
- package/dist/chunk-XDKEKXV4.js +0 -29
- package/dist/{destroy-YAMTVR2W.js → destroy-IWHFUGJL.js} +4 -4
- package/dist/{synthesize-MDW4ZWTN.js → synthesize-NJKCIPKW.js} +5 -5
|
@@ -2457,7 +2457,6 @@ function findTimelineVar(ast, scope) {
|
|
|
2457
2457
|
let ref = null;
|
|
2458
2458
|
let timelineCount = 0;
|
|
2459
2459
|
let defaults;
|
|
2460
|
-
let declaration;
|
|
2461
2460
|
const emptyScope = scope ?? /* @__PURE__ */ new Map();
|
|
2462
2461
|
simple(ast, {
|
|
2463
2462
|
VariableDeclarator(node) {
|
|
@@ -2467,7 +2466,6 @@ function findTimelineVar(ast, scope) {
|
|
|
2467
2466
|
timelineVar = node.id.name;
|
|
2468
2467
|
ref = { kind: "identifier", name: node.id.name };
|
|
2469
2468
|
defaults = extractTimelineDefaults(node.init, emptyScope);
|
|
2470
|
-
declaration = { start: node.start, end: node.end };
|
|
2471
2469
|
}
|
|
2472
2470
|
}
|
|
2473
2471
|
},
|
|
@@ -2484,12 +2482,11 @@ function findTimelineVar(ast, scope) {
|
|
|
2484
2482
|
ref = { kind: "member", node: left };
|
|
2485
2483
|
defaults = extractTimelineDefaults(node.right, emptyScope);
|
|
2486
2484
|
}
|
|
2487
|
-
if (ref) declaration = { start: node.start, end: node.end };
|
|
2488
2485
|
}
|
|
2489
2486
|
}
|
|
2490
2487
|
}
|
|
2491
2488
|
});
|
|
2492
|
-
return { timelineVar, ref, timelineCount, defaults
|
|
2489
|
+
return { timelineVar, ref, timelineCount, defaults };
|
|
2493
2490
|
}
|
|
2494
2491
|
function isTimelineRootedCall(callNode, ref) {
|
|
2495
2492
|
let obj = callNode.callee?.object;
|
|
@@ -3193,13 +3190,7 @@ function parseGsapScriptAcornForWrite(script) {
|
|
|
3193
3190
|
call,
|
|
3194
3191
|
animation: animations[i]
|
|
3195
3192
|
}));
|
|
3196
|
-
return {
|
|
3197
|
-
ast,
|
|
3198
|
-
timelineVar,
|
|
3199
|
-
hasTimeline: detection.ref !== null,
|
|
3200
|
-
timelineDeclaration: detection.declaration,
|
|
3201
|
-
located
|
|
3202
|
-
};
|
|
3193
|
+
return { ast, timelineVar, hasTimeline: detection.ref !== null, located };
|
|
3203
3194
|
} catch {
|
|
3204
3195
|
return null;
|
|
3205
3196
|
}
|
|
@@ -3415,62 +3406,12 @@ function removeCallFromMagicString(ms, call, script) {
|
|
|
3415
3406
|
const N = call.node;
|
|
3416
3407
|
const exprStmt = findEnclosingExpressionStatement(call.ancestors);
|
|
3417
3408
|
if (N.callee?.object?.type !== "CallExpression" && exprStmt?.expression === N) {
|
|
3418
|
-
|
|
3409
|
+
const end = exprStmt.end < script.length && script[exprStmt.end] === "\n" ? exprStmt.end + 1 : exprStmt.end;
|
|
3410
|
+
ms.remove(exprStmt.start, end);
|
|
3419
3411
|
} else {
|
|
3420
3412
|
ms.remove(N.callee.object.end, N.end);
|
|
3421
3413
|
}
|
|
3422
3414
|
}
|
|
3423
|
-
function removeStatementFromMagicString(ms, statement, script) {
|
|
3424
|
-
const end = statement.end + (script[statement.end] === "\n" ? 1 : 0);
|
|
3425
|
-
ms.remove(statement.start, end);
|
|
3426
|
-
}
|
|
3427
|
-
function removeAnimationsForSelectors(script, selectors) {
|
|
3428
|
-
let current = script;
|
|
3429
|
-
for (; ; ) {
|
|
3430
|
-
const parsed = parseGsapScriptAcornForWrite(current);
|
|
3431
|
-
if (!parsed) return current;
|
|
3432
|
-
const selected = parsed.located.filter(
|
|
3433
|
-
({ animation }) => selectors.has(animation.targetSelector)
|
|
3434
|
-
);
|
|
3435
|
-
const first = selected[0];
|
|
3436
|
-
if (!first) return current;
|
|
3437
|
-
const declaration = parsed.timelineDeclaration;
|
|
3438
|
-
if (declaration && selected.some(
|
|
3439
|
-
({ call }) => call.node.start <= declaration.start && call.node.end >= declaration.end
|
|
3440
|
-
)) {
|
|
3441
|
-
const updated = removeAnimationFromScript(current, first.id);
|
|
3442
|
-
if (updated === current) return current;
|
|
3443
|
-
current = updated;
|
|
3444
|
-
continue;
|
|
3445
|
-
}
|
|
3446
|
-
return removeCallsFromScript(
|
|
3447
|
-
current,
|
|
3448
|
-
selected.map(({ call }) => call)
|
|
3449
|
-
);
|
|
3450
|
-
}
|
|
3451
|
-
}
|
|
3452
|
-
function removeCallsFromScript(script, calls) {
|
|
3453
|
-
const removedNodes = new Set(calls.map(({ node }) => node));
|
|
3454
|
-
const statements = /* @__PURE__ */ new Set();
|
|
3455
|
-
for (const call of calls) {
|
|
3456
|
-
const statement = fullyRemovedStatement(call, removedNodes);
|
|
3457
|
-
if (statement) statements.add(statement);
|
|
3458
|
-
}
|
|
3459
|
-
const ms = new MagicString(script);
|
|
3460
|
-
for (const statement of statements) removeStatementFromMagicString(ms, statement, script);
|
|
3461
|
-
for (const call of calls) {
|
|
3462
|
-
if (statements.has(findEnclosingExpressionStatement(call.ancestors))) continue;
|
|
3463
|
-
removeCallFromMagicString(ms, call, script);
|
|
3464
|
-
}
|
|
3465
|
-
return ms.toString();
|
|
3466
|
-
}
|
|
3467
|
-
function fullyRemovedStatement(call, removedNodes) {
|
|
3468
|
-
const statement = findEnclosingExpressionStatement(call.ancestors);
|
|
3469
|
-
if (statement?.expression !== call.node) return null;
|
|
3470
|
-
let root = call.node;
|
|
3471
|
-
while (root?.type === "CallExpression" && removedNodes.has(root)) root = root.callee.object;
|
|
3472
|
-
return root && root.type !== "CallExpression" ? statement : null;
|
|
3473
|
-
}
|
|
3474
3415
|
function removeAnimationFromScript(script, animationId) {
|
|
3475
3416
|
const parsed = parseGsapScriptAcornForWrite(script);
|
|
3476
3417
|
if (!parsed) return script;
|
|
@@ -4293,10 +4234,19 @@ function removeElementWithGsapCascade(doc, element) {
|
|
|
4293
4234
|
});
|
|
4294
4235
|
if (removedSelectors.size === 0) return;
|
|
4295
4236
|
for (const script of findScriptElementsDeep(doc)) {
|
|
4296
|
-
|
|
4237
|
+
let current = script.textContent ?? "";
|
|
4297
4238
|
if (!current.includes("gsap") && !current.includes("ScrollTrigger")) continue;
|
|
4298
|
-
|
|
4299
|
-
|
|
4239
|
+
for (; ; ) {
|
|
4240
|
+
const parsed = parseGsapScriptAcornForWrite(current);
|
|
4241
|
+
const match = parsed?.located.find(
|
|
4242
|
+
(located) => removedSelectors.has(located.animation.targetSelector)
|
|
4243
|
+
);
|
|
4244
|
+
if (!match) break;
|
|
4245
|
+
const updated = removeAnimationFromScript(current, match.id);
|
|
4246
|
+
if (updated === current) break;
|
|
4247
|
+
current = updated;
|
|
4248
|
+
}
|
|
4249
|
+
if (current !== script.textContent) script.textContent = current;
|
|
4300
4250
|
}
|
|
4301
4251
|
}
|
|
4302
4252
|
function removeElementFromHtml(html, elementId) {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
probeAudioTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3MYEF34S.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveWithinProject
|
|
12
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MAX_AUDIO_GAIN_DB,
|
|
15
15
|
formatAudioGain,
|
|
16
16
|
isAudibleVideoElement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3T6BFAKZ.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-HYRPH6LL.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-6MKM2RVL.js";
|
|
26
26
|
import {
|
|
27
27
|
decodeAuthoredAttribute
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AAENGP3S.js";
|
|
29
29
|
|
|
30
30
|
// ../studio-server/dist/chunk-6NHWQWUJ.js
|
|
31
31
|
import { execFile } from "child_process";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MEVLYDL2.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AAENGP3S.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/lambda/_dimensions.ts
|
|
15
15
|
import { readFileSync } from "fs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
rewriteHtmlAttributes,
|
|
14
14
|
rewriteStyleBlocks,
|
|
15
15
|
stagedSize
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KJ5QBEMN.js";
|
|
17
17
|
import {
|
|
18
18
|
probeAudio
|
|
19
19
|
} from "./chunk-SWC3QIEH.js";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
findFFmpeg,
|
|
22
22
|
findFFprobe,
|
|
23
23
|
getFFmpegInstallHint
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-STTUDVAI.js";
|
|
25
25
|
import {
|
|
26
26
|
formatBytes
|
|
27
27
|
} from "./chunk-FGFVUKPP.js";
|
|
28
28
|
import {
|
|
29
29
|
parseAnimatedGifMetadata
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Q6TVZY36.js";
|
|
31
31
|
import {
|
|
32
32
|
cleanAssetUrl,
|
|
33
33
|
isRemoteOrInlineUrl,
|
|
@@ -656,7 +656,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
656
656
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
657
657
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
658
658
|
if (!sourceAssets) return;
|
|
659
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
659
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-EZMBCQBY.js")).prepareAnimatedGifInputs;
|
|
660
660
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
661
661
|
ctx.tempFiles.push(outputDir);
|
|
662
662
|
const result = await prep(html, {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XHP3V4WH.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-FZ4EJHOK.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -44,7 +44,7 @@ async function runPostRenderStepAsync(label, fn, sink = defaultErrorSink) {
|
|
|
44
44
|
function reportPostRenderStepFailure(label, err, sink) {
|
|
45
45
|
const message = err instanceof Error ? err.message : String(err);
|
|
46
46
|
sink(` [hyperframes] Post-render step '${label}' failed (render already succeeded): ${message}`);
|
|
47
|
-
sanitizeSuccessfulExitCode();
|
|
47
|
+
if (isRenderSucceeded()) sanitizeSuccessfulExitCode();
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
isTransientBrowserError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XHP3V4WH.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/screenshotOnceMore.ts
|
|
12
12
|
async function screenshotOnceMore(shoot) {
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4XGKXBYH.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-36G3XDN6.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VSQ5NWCF.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -0,0 +1,343 @@
|
|
|
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
|
+
ReviewFailed,
|
|
9
|
+
addVersion,
|
|
10
|
+
bindShareHost,
|
|
11
|
+
createShareAccess,
|
|
12
|
+
latestShareRender,
|
|
13
|
+
observeShareMutation,
|
|
14
|
+
pendingReviewExport,
|
|
15
|
+
prepareCliShareSource,
|
|
16
|
+
prepareShareRender,
|
|
17
|
+
projectFingerprint,
|
|
18
|
+
refreshReviewExport,
|
|
19
|
+
reviewClient,
|
|
20
|
+
reviewRecord,
|
|
21
|
+
reviewStatus,
|
|
22
|
+
reviewUploadOrigins,
|
|
23
|
+
reviewVersion,
|
|
24
|
+
setReviewAccess,
|
|
25
|
+
setReviewSite,
|
|
26
|
+
shareForReview,
|
|
27
|
+
shareSite,
|
|
28
|
+
signedInRequest,
|
|
29
|
+
turnOffReviewLink,
|
|
30
|
+
uncheckedSource
|
|
31
|
+
} from "./chunk-QABQKJPY.js";
|
|
32
|
+
import {
|
|
33
|
+
apiBaseUrl
|
|
34
|
+
} from "./chunk-WXEXQLVV.js";
|
|
35
|
+
import {
|
|
36
|
+
findFFprobe
|
|
37
|
+
} from "./chunk-STTUDVAI.js";
|
|
38
|
+
import {
|
|
39
|
+
defaultClientId,
|
|
40
|
+
oauthEnvironment,
|
|
41
|
+
resolveClientId,
|
|
42
|
+
tokenEndpoint
|
|
43
|
+
} from "./chunk-FID757D3.js";
|
|
44
|
+
import {
|
|
45
|
+
CliUsageError
|
|
46
|
+
} from "./chunk-66W5IWLO.js";
|
|
47
|
+
|
|
48
|
+
// src/share/service.ts
|
|
49
|
+
import { basename as basename2 } from "path";
|
|
50
|
+
|
|
51
|
+
// src/share/host.ts
|
|
52
|
+
import { basename } from "path";
|
|
53
|
+
import { realpathSync } from "fs";
|
|
54
|
+
|
|
55
|
+
// src/share/uploadOrigins.ts
|
|
56
|
+
var PRODUCTION_UPLOAD_ORIGINS = [
|
|
57
|
+
"https://heygen-hyperframes-reviews-prod-767398024897-us-east-2.s3.amazonaws.com",
|
|
58
|
+
"https://heygen-hyperframes-reviews-prod-767398024897-us-east-2.s3.us-east-2.amazonaws.com",
|
|
59
|
+
"https://hyperframes-composition-sync-prod.s3.us-east-2.amazonaws.com"
|
|
60
|
+
];
|
|
61
|
+
function cliReviewUploadOrigins() {
|
|
62
|
+
const override = process.env.HYPERFRAMES_REVIEW_UPLOAD_ORIGINS;
|
|
63
|
+
if (override !== void 0)
|
|
64
|
+
return override.split(",").map((origin) => origin.trim()).filter(Boolean);
|
|
65
|
+
const standardProduction = oauthEnvironment() === "prod" && apiBaseUrl() === "https://api.heygen.com" && tokenEndpoint() === "https://api2.heygen.com/v1/oauth/token" && resolveClientId() === defaultClientId();
|
|
66
|
+
return standardProduction ? PRODUCTION_UPLOAD_ORIGINS : [];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// src/share/host.ts
|
|
70
|
+
var projects = /* @__PURE__ */ new Set();
|
|
71
|
+
function isStorageOrigin(origin) {
|
|
72
|
+
if (!URL.canParse(origin)) return false;
|
|
73
|
+
const url = new URL(origin);
|
|
74
|
+
const loopback = url.protocol === "http:" && url.hostname === "127.0.0.1";
|
|
75
|
+
return url.origin === origin && !url.hostname.includes("*") && (url.protocol === "https:" || loopback);
|
|
76
|
+
}
|
|
77
|
+
function assertReviewUploadStorage() {
|
|
78
|
+
const origins = reviewUploadOrigins().filter(Boolean);
|
|
79
|
+
if (origins.length === 0 || !origins.every(isStorageOrigin))
|
|
80
|
+
throw new ReviewFailed(503, "review_upload_origins_required");
|
|
81
|
+
}
|
|
82
|
+
function bindCliShareProject(path) {
|
|
83
|
+
const dir = realpathSync(path);
|
|
84
|
+
projects.add(dir);
|
|
85
|
+
bindShareHost({
|
|
86
|
+
reviewUploadOrigins: cliReviewUploadOrigins(),
|
|
87
|
+
normalize: realpathSync,
|
|
88
|
+
assertOpenProject: (path2) => {
|
|
89
|
+
const normalized = realpathSync(path2);
|
|
90
|
+
if (!projects.has(normalized)) throw new Error("This project is not open for sharing.");
|
|
91
|
+
return normalized;
|
|
92
|
+
},
|
|
93
|
+
resolveOpenProjectByPath: (path2) => {
|
|
94
|
+
const normalized = realpathSync(path2);
|
|
95
|
+
return projects.has(normalized) ? { id: normalized, dir: normalized } : null;
|
|
96
|
+
},
|
|
97
|
+
listOpenProjects: () => [...projects].map((dir2) => ({ dir: dir2 })),
|
|
98
|
+
homeName: basename,
|
|
99
|
+
latestExportFile: latestShareRender,
|
|
100
|
+
projectFingerprint,
|
|
101
|
+
signedInRequest: (deps) => signedInRequest({
|
|
102
|
+
...deps,
|
|
103
|
+
headers: { "X-HeyGen-Source": "cli", "X-HeyGen-Client-Source": "hyperframes" }
|
|
104
|
+
}),
|
|
105
|
+
ffBinary: () => {
|
|
106
|
+
const binary = findFFprobe();
|
|
107
|
+
if (!binary) throw new Error("Install FFmpeg to prepare a shared video.");
|
|
108
|
+
return binary;
|
|
109
|
+
},
|
|
110
|
+
channelSite: "https://hyperframes.dev",
|
|
111
|
+
signinSites: ["https://hyperframes.dev", "https://dev.hyperframes.dev"]
|
|
112
|
+
});
|
|
113
|
+
setReviewSite(shareSite());
|
|
114
|
+
return dir;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// src/share/service.ts
|
|
118
|
+
function linkState(share, ready, failed) {
|
|
119
|
+
if (!share) return "not_shared";
|
|
120
|
+
if (failed) return "failed";
|
|
121
|
+
if (!share.url) return "link_off";
|
|
122
|
+
return ready ? "ready" : "processing";
|
|
123
|
+
}
|
|
124
|
+
async function refreshShare(dir, client, expectedProjectId, onRecovery) {
|
|
125
|
+
const share = await reviewStatus({ projectPath: dir, client });
|
|
126
|
+
if (expectedProjectId) assertUploadProject(share, expectedProjectId);
|
|
127
|
+
if (onRecovery) onRecovery(isProcessing(await pendingReviewExport(dir), share));
|
|
128
|
+
if (share) await refreshReviewExport(dir, client);
|
|
129
|
+
return share;
|
|
130
|
+
}
|
|
131
|
+
async function readStatus(dir, client, expectedProjectId, onRecovery) {
|
|
132
|
+
const share = await refreshShare(dir, client, expectedProjectId, onRecovery);
|
|
133
|
+
const project = await readProject(share, client);
|
|
134
|
+
const latest = project?.latest_ready_version_id ?? null;
|
|
135
|
+
const version = await reviewVersion(dir, { latestReadyVersionId: latest });
|
|
136
|
+
const pending = await pendingReviewExport(dir);
|
|
137
|
+
const activeUrl = share?.url ?? null;
|
|
138
|
+
const processing = isProcessing(pending, share);
|
|
139
|
+
const failed = hasFailedVersion(version);
|
|
140
|
+
const ready = Boolean(activeUrl && latest && !processing && !failed);
|
|
141
|
+
return {
|
|
142
|
+
share,
|
|
143
|
+
version,
|
|
144
|
+
pending,
|
|
145
|
+
state: linkState(share, ready, failed),
|
|
146
|
+
ready,
|
|
147
|
+
source: uncheckedSource(),
|
|
148
|
+
...statusLinks(activeUrl, ready, processing || failed, project)
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async function readProject(share, client) {
|
|
152
|
+
return share?.projectId ? client.project(share.projectId) : null;
|
|
153
|
+
}
|
|
154
|
+
function statusLinks(url, ready, processing, project) {
|
|
155
|
+
return {
|
|
156
|
+
url: ready ? url : null,
|
|
157
|
+
previousUrl: processing && project?.latest_ready_version_id ? url : null,
|
|
158
|
+
manageUrl: project?.authenticated_review_url ?? `${shareSite() === "https://hyperframes.dev" ? "https://hyperframes.studio" : shareSite()}/shares`
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function isProcessing(pending, share) {
|
|
162
|
+
return Boolean(pending && pending.projectId === share?.projectId);
|
|
163
|
+
}
|
|
164
|
+
function selectSpace(spaces, id) {
|
|
165
|
+
if (id) return spaces.find((space) => space.space_id === id);
|
|
166
|
+
return spaces.find((space) => space.bound) ?? spaces.find((space) => space.kind === "personal");
|
|
167
|
+
}
|
|
168
|
+
function assertUploadProject(share, expectedId) {
|
|
169
|
+
const id = share?.projectId;
|
|
170
|
+
if (!id || expectedId && id !== expectedId)
|
|
171
|
+
throw new ReviewFailed(409, "review_binding_changed");
|
|
172
|
+
}
|
|
173
|
+
function assertExistingIntent(share, input) {
|
|
174
|
+
if (!share) {
|
|
175
|
+
if (input.action === "update") throw new ReviewFailed(404, "not_shared");
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
if (input.space && share.space?.id !== input.space)
|
|
179
|
+
throw new ReviewFailed(409, "workspace_mismatch");
|
|
180
|
+
if (input.audience && share.access !== input.audience)
|
|
181
|
+
throw new ReviewFailed(409, "manage_existing_audience");
|
|
182
|
+
}
|
|
183
|
+
function retrievesExisting(current, input) {
|
|
184
|
+
return current.share && input.action === "share" && (current.ready || current.state === "link_off" || current.version.last && current.state !== "processing");
|
|
185
|
+
}
|
|
186
|
+
async function preflightFirst(dir, client, input) {
|
|
187
|
+
const audience = input.audience;
|
|
188
|
+
if (!audience)
|
|
189
|
+
throw new CliUsageError(
|
|
190
|
+
"Choose an audience with --public, --team, --invite-only or --private. --yes is not audience consent.",
|
|
191
|
+
{ code: "audience_required" }
|
|
192
|
+
);
|
|
193
|
+
const [spaces, record] = await Promise.all([client.spaces(), reviewRecord(dir)]);
|
|
194
|
+
const space = selectSpace(spaces, registrationSpace(record, input.space));
|
|
195
|
+
if (!space || !space.can_create_review) throw new ReviewFailed(403, "workspace_cannot_share");
|
|
196
|
+
assertQuota(record, space);
|
|
197
|
+
assertAudience(audience, space);
|
|
198
|
+
return space.space_id;
|
|
199
|
+
}
|
|
200
|
+
function registrationSpace(record, requested) {
|
|
201
|
+
if (!record?.spaceId) return requested;
|
|
202
|
+
if (!requested || requested === record.spaceId) return record.spaceId;
|
|
203
|
+
if (record.registration || record.projectId) throw new ReviewFailed(409, "workspace_mismatch");
|
|
204
|
+
return requested;
|
|
205
|
+
}
|
|
206
|
+
function assertQuota(record, space) {
|
|
207
|
+
if (record?.registration || record?.projectId) return;
|
|
208
|
+
if (space.review_entitlements?.can_register_project === false)
|
|
209
|
+
throw new ReviewFailed(402, "review_project_limit_reached");
|
|
210
|
+
}
|
|
211
|
+
function assertAudience(audience, space) {
|
|
212
|
+
if (audience === "private") return;
|
|
213
|
+
if (!space.review_entitlements?.allowed_collaborative_access_modes.includes(audience))
|
|
214
|
+
throw new ReviewFailed(402, "review_subscription_required");
|
|
215
|
+
}
|
|
216
|
+
function assertResumeSource(current, input) {
|
|
217
|
+
if (current.share && current.pending && input.action === "share" && current.version.source !== "ready")
|
|
218
|
+
throw new Error(
|
|
219
|
+
"The shared video is unfinished and local edits have changed. Run hyperframes share --update to explicitly upload the current project."
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
function createShareService(projectPath, progress = () => {
|
|
223
|
+
}, options = {}) {
|
|
224
|
+
const dir = bindCliShareProject(projectPath);
|
|
225
|
+
const auth = createShareAccess(options.pinIdentity);
|
|
226
|
+
const client = reviewClient(auth);
|
|
227
|
+
const status = async (expectedProjectId) => {
|
|
228
|
+
await auth.access();
|
|
229
|
+
return readStatus(dir, client, expectedProjectId);
|
|
230
|
+
};
|
|
231
|
+
const upload = async (input, projectId, sources, attempt) => {
|
|
232
|
+
const end = Date.now() + (input.waitSeconds ?? 300) * 1e3;
|
|
233
|
+
let added = false;
|
|
234
|
+
const failure = await addVersion({
|
|
235
|
+
projectPath: dir,
|
|
236
|
+
projectId,
|
|
237
|
+
title: basename2(dir),
|
|
238
|
+
client,
|
|
239
|
+
onProgress: (value) => {
|
|
240
|
+
attempt.progress(value);
|
|
241
|
+
progress(value);
|
|
242
|
+
},
|
|
243
|
+
allowPending: true,
|
|
244
|
+
...sources.filesForExport && { filesForExport: sources.filesForExport },
|
|
245
|
+
requireSource: sources.requireSource,
|
|
246
|
+
omitSource: sources.source.at === "video_only",
|
|
247
|
+
onAdded: () => {
|
|
248
|
+
added = true;
|
|
249
|
+
},
|
|
250
|
+
open: () => Date.now() < end
|
|
251
|
+
});
|
|
252
|
+
if (failure) throw new Error(failure);
|
|
253
|
+
const result = { ...await status(projectId), source: sources.source };
|
|
254
|
+
if (result.version.failure) throw new Error(result.version.failure);
|
|
255
|
+
if (!added && !result.version.last?.current) {
|
|
256
|
+
attempt.complete(false, added);
|
|
257
|
+
return { ...result, state: "processing", ready: false, url: null };
|
|
258
|
+
}
|
|
259
|
+
attempt.complete(result.ready, added);
|
|
260
|
+
return result;
|
|
261
|
+
};
|
|
262
|
+
const uploadTarget = async (current, input, space) => {
|
|
263
|
+
const share = current ? await reviewStatus({ projectPath: dir, client }) : await shareForReview({
|
|
264
|
+
projectPath: dir,
|
|
265
|
+
title: basename2(dir),
|
|
266
|
+
client,
|
|
267
|
+
spaceId: space,
|
|
268
|
+
audience: input.audience
|
|
269
|
+
});
|
|
270
|
+
assertUploadProject(share, current?.projectId);
|
|
271
|
+
if (share.takedown) throw new ReviewFailed(409, "moderation_hold");
|
|
272
|
+
assertExistingIntent(share, {
|
|
273
|
+
...input,
|
|
274
|
+
space: input.space ?? space,
|
|
275
|
+
audience: input.audience ?? current?.access
|
|
276
|
+
});
|
|
277
|
+
return { projectId: share.projectId, spaceId: share.space?.id, audience: share.access };
|
|
278
|
+
};
|
|
279
|
+
const checkPreparedTarget = async (target) => {
|
|
280
|
+
const share = await reviewStatus({ projectPath: dir, client });
|
|
281
|
+
assertUploadProject(share, target.projectId);
|
|
282
|
+
if (share.takedown) throw new ReviewFailed(409, "moderation_hold");
|
|
283
|
+
assertExistingIntent(share, {
|
|
284
|
+
action: "update",
|
|
285
|
+
space: target.spaceId,
|
|
286
|
+
audience: target.audience
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
const mutate = async (input, attempt) => {
|
|
290
|
+
await auth.access();
|
|
291
|
+
attempt.authenticated();
|
|
292
|
+
const current = await readStatus(dir, client, void 0, attempt.recover);
|
|
293
|
+
assertExistingIntent(current.share, input);
|
|
294
|
+
if (retrievesExisting(current, input)) {
|
|
295
|
+
attempt.retrieved();
|
|
296
|
+
return current;
|
|
297
|
+
}
|
|
298
|
+
const flags = await client.reviewFlags();
|
|
299
|
+
if (!flags.versionSharing) throw new ReviewFailed(403, "feature_unavailable");
|
|
300
|
+
const space = current.share ? current.share.space?.id : await preflightFirst(dir, client, input);
|
|
301
|
+
assertResumeSource(current, input);
|
|
302
|
+
assertReviewUploadStorage();
|
|
303
|
+
await prepareShareRender(dir);
|
|
304
|
+
const target = await uploadTarget(current.share, input, space);
|
|
305
|
+
const sources = await prepareCliShareSource(dir, auth.access, target.spaceId, {
|
|
306
|
+
videoOnly: input.videoOnly,
|
|
307
|
+
shareFiles: flags.shareFiles
|
|
308
|
+
});
|
|
309
|
+
if (sources.requireSource) await checkPreparedTarget(target);
|
|
310
|
+
return upload(input, target.projectId, sources, attempt);
|
|
311
|
+
};
|
|
312
|
+
return {
|
|
313
|
+
checkSession: (verifyIdentity = false) => auth.access(void 0, verifyIdentity),
|
|
314
|
+
status,
|
|
315
|
+
run: (input) => input.action === "status" || input.action === "manage" ? status() : observeShareMutation(
|
|
316
|
+
input.action,
|
|
317
|
+
options.surface ?? "cli",
|
|
318
|
+
(attempt) => mutate(input, attempt)
|
|
319
|
+
),
|
|
320
|
+
capabilities: () => client.reviewFlags(),
|
|
321
|
+
spaces: () => client.spaces(),
|
|
322
|
+
setAccess: async (access) => {
|
|
323
|
+
await setReviewAccess({ projectPath: dir, client, change: { access } });
|
|
324
|
+
return status();
|
|
325
|
+
},
|
|
326
|
+
linkOff: async () => {
|
|
327
|
+
await turnOffReviewLink({ projectPath: dir, client });
|
|
328
|
+
return status();
|
|
329
|
+
},
|
|
330
|
+
linkOn: async () => {
|
|
331
|
+
if (!(await status()).share) throw new ReviewFailed(404, "not_shared");
|
|
332
|
+
await shareForReview({ projectPath: dir, title: basename2(dir), client });
|
|
333
|
+
return status();
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function hasFailedVersion(version) {
|
|
338
|
+
return Boolean(version.failure && !version.held);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export {
|
|
342
|
+
createShareService
|
|
343
|
+
};
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-SWC3QIEH.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MPC3L6A3.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
16
16
|
ensureWhisper,
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZMQYQHZU.js";
|
|
20
20
|
import {
|
|
21
21
|
sha256File
|
|
22
22
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
findFFmpeg,
|
|
25
25
|
findFFprobe,
|
|
26
26
|
getFFmpegInstallHint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-STTUDVAI.js";
|
|
28
28
|
import {
|
|
29
29
|
parseWhisperJson
|
|
30
30
|
} from "./chunk-CDNVZEGQ.js";
|