hyperframes 0.8.206 → 0.8.208
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/bin/hyperframes.mjs +1 -0
- package/dist/{add-FFMNAJXJ.js → add-XMWRBMBR.js} +22 -20
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-6XURJIPV.js} +14 -13
- package/dist/api.js +33 -32
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-I5GGEOB2.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-YBPXUNUP.js} +17 -14
- package/dist/{audio-VYWWM4DB.js → audio-GFJCHH5W.js} +420 -138
- package/dist/{auth-GZQZCUPL.js → auth-QOA55RYR.js} +4 -4
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-SPS4QPJU.js} +4 -4
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-HRJO7YK7.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-LI2BJRGO.js → batchRender-FBP3RKUF.js} +11 -10
- package/dist/{beats-H73CSYT4.js → beats-VNGJ7F6W.js} +32 -25
- package/dist/{benchmark-XT3A5REC.js → benchmark-NZ3N3MIV.js} +16 -16
- package/dist/{browser-VIOK66YK.js → browser-BD5BKRJ5.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-WXVNPAWD.js} +3 -3
- package/dist/{capture-KKD5GMAF.js → capture-CXWXKWS5.js} +120 -54
- package/dist/{capture-252WNPCD.js → capture-LMJ4TQRL.js} +63 -17
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-ZKVCRYYU.js} +21 -20
- package/dist/{captureFile-LYOJOUIE.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-WRXQSCAU.js} +28 -26
- package/dist/{catch-up-BFW7Z35W.js → catch-up-MDSPABFC.js} +7 -7
- package/dist/{check-XUWBZASR.js → check-SIBBK5HA.js} +53 -52
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-QQBR4HR7.js} +19 -18
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-4EBJLLIH.js} +45 -44
- package/dist/{chunk-XDMZY3H7.js → chunk-3O2E4Q66.js} +15 -20
- package/dist/{chunk-VEA7Z4PZ.js → chunk-43MW4SY7.js} +15 -7
- package/dist/{chunk-HJAJ6W4V.js → chunk-4F5NRJ6M.js} +2 -2
- package/dist/{chunk-2RT7MXFL.js → chunk-4HT2L6W2.js} +1 -1
- package/dist/{chunk-QVTCXN42.js → chunk-4KG3ESVO.js} +30 -4
- package/dist/{chunk-42KN6I6A.js → chunk-4LTBQEPD.js} +2 -2
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-NVLPW3DG.js → chunk-5HB4JM7H.js} +2 -2
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-X5HHHFTX.js → chunk-6CWKORZO.js} +3 -3
- package/dist/{chunk-ZF3R2IPC.js → chunk-6DSYBW7Z.js} +1 -0
- package/dist/{chunk-VHVSBOZH.js → chunk-6JNSYFOH.js} +4 -4
- package/dist/{chunk-AJSU6KGS.js → chunk-6N7D2GUV.js} +15 -15
- package/dist/{chunk-F2ASNL2K.js → chunk-6PWQH77E.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-6WRN4WC6.js} +1 -1
- package/dist/{chunk-GAV56VJL.js → chunk-7CPI2DWL.js} +2 -2
- package/dist/{chunk-CMDVJP4T.js → chunk-7PAK7LZ5.js} +11 -11
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/{chunk-X7RXXBYM.js → chunk-B5MPMIKQ.js} +2 -2
- package/dist/{chunk-RW4DMP2Y.js → chunk-BKDQFOKK.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-BLCKQPBE.js} +1 -1
- package/dist/chunk-BQMAPNDA.js +4830 -0
- package/dist/{chunk-CPSGXAYD.js → chunk-CP225S5H.js} +3 -3
- package/dist/{chunk-3R6SXPHD.js → chunk-CSWCZA6V.js} +3 -3
- package/dist/{chunk-4CY5RXXC.js → chunk-D2CE2J2A.js} +4 -4
- package/dist/{chunk-FMWACL3L.js → chunk-DHQSDCWD.js} +6 -2
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-OZUAVHFE.js → chunk-DXACKQ3F.js} +3 -3
- package/dist/{chunk-5QKJPCQ4.js → chunk-EGOXYG3M.js} +2 -2
- package/dist/{chunk-QL4ZYSIB.js → chunk-ENRFKCI6.js} +5 -71
- package/dist/{chunk-MRF4AMKD.js → chunk-EQBDKYXR.js} +5 -10
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-FULMZCDW.js → chunk-EYEEZXLI.js} +11 -11
- package/dist/{chunk-2MLMO25E.js → chunk-FC4WT5FX.js} +105 -7
- package/dist/{chunk-PLGGKTCB.js → chunk-FFDYRJBE.js} +37 -21
- package/dist/{chunk-7SXL476O.js → chunk-G2A6RC5R.js} +72 -28
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-CZYS6UKP.js → chunk-GEO6THL3.js} +61 -30
- package/dist/{chunk-MFHYBSJC.js → chunk-GHSO62LK.js} +3 -3
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-4DGLKB2H.js → chunk-HUKQW4YE.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-HZN7ICAF.js} +8 -8
- package/dist/{chunk-6ZFDNEMY.js → chunk-IIJVSCSH.js} +16 -16
- package/dist/{chunk-VDVVQNTK.js → chunk-IL2TMC6F.js} +5 -5
- package/dist/{chunk-L5MFWGGU.js → chunk-J67FSI3Q.js} +623 -376
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-SFYLZX5C.js → chunk-K4PHB3YQ.js} +59 -15
- package/dist/{chunk-G6W55MTX.js → chunk-KTWGVEN6.js} +40 -11
- package/dist/{chunk-FNNGQ3DB.js → chunk-LSMFOZ4F.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-PNKLOMHQ.js → chunk-MBGM26P5.js} +17 -22
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-MPO25DQW.js} +451 -208
- package/dist/{chunk-E2ZZSDDQ.js → chunk-MW2NQQ6Z.js} +2 -2
- package/dist/{chunk-TSJVPPXT.js → chunk-MYO77JWR.js} +1 -1
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-NNLQTG3M.js → chunk-NZ6G5YWZ.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-ORFRUZPB.js} +2 -2
- package/dist/{chunk-Z3XXLTVB.js → chunk-OTXXDONS.js} +3 -3
- package/dist/{chunk-2S263R6D.js → chunk-P7WGVXR7.js} +9 -9
- package/dist/{chunk-AXEEZKIL.js → chunk-PKVA6MPV.js} +6 -6
- package/dist/{chunk-FJW757TF.js → chunk-PSOAGSNO.js} +2 -2
- package/dist/{chunk-AEC4T4IF.js → chunk-PWEOSJ3E.js} +12 -12
- package/dist/{chunk-X7A7C4JS.js → chunk-Q43YUROE.js} +3 -3
- package/dist/{chunk-PQYWYBEQ.js → chunk-QP2MJYTJ.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-QWBVPWUI.js} +47 -55
- package/dist/{chunk-AAX2A7LQ.js → chunk-S2OLTAEL.js} +2 -2
- package/dist/{chunk-CNVHMLPI.js → chunk-S4KHJERB.js} +1 -1
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-3CS6QYL7.js → chunk-SI7QCT2J.js} +8 -8
- package/dist/{chunk-CIHW6VM2.js → chunk-SKKQMW5X.js} +1 -1
- package/dist/{chunk-3B2DBUQX.js → chunk-TNTGGDSD.js} +1 -1
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-XOM3XTJ4.js → chunk-U6KN6OIP.js} +2 -2
- package/dist/{chunk-63DGZRZP.js → chunk-ULL3U6PV.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-UMUVGNOH.js → chunk-VR3JLTZD.js} +3 -3
- package/dist/{chunk-DEVZJ4AL.js → chunk-VS4SK7BN.js} +17 -11
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/chunk-WABB4LZS.js +62 -0
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-36QE3P6B.js → chunk-WNMVC3IT.js} +1 -1
- package/dist/{chunk-T6SD37JZ.js → chunk-X6MCIK7L.js} +103 -16
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-BBUK6A7Q.js → chunk-XG3IZV62.js} +7 -7
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-G6QDFWDN.js → chunk-XOFBXLMG.js} +2 -2
- package/dist/{chunk-H4JO7VSI.js → chunk-XUQYC5DD.js} +12 -12
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-HEP5XMXV.js → chunk-Z5TGBEPJ.js} +9 -2
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{clean-N5VSKUVS.js → clean-6GX7WAEC.js} +32 -31
- package/dist/cli.js +58 -58
- package/dist/{cloud-74NF5FXC.js → cloud-6PFJKLNL.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-UGG3ZFH7.js} +13 -12
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-P4EBOP4B.js} +46 -45
- package/dist/{compiler-4MHMC777.js → compiler-PG4RKX6K.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-SQPMI3W7.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-KRIHY3IY.js} +20 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-GB4MS7LM.js → delete-T5TO4SV6.js} +7 -7
- package/dist/{deploy-NXD3Q3KD.js → deploy-AO6LQR5G.js} +6 -6
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-3ZJMZU75.js → dist-23AAB5X2.js} +36 -36
- package/dist/{dist-ZY6IFESG.js → dist-6IMEDVMC.js} +6 -3
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-QBUJQ655.js} +23 -22
- package/dist/{events-RYQYEWBV.js → events-J7CESLKQ.js} +4 -4
- package/dist/{events-T3CLIYRG.js → events-SIZO7YHI.js} +5 -5
- package/dist/{feedback-K5ZMMLTA.js → feedback-74WOJ5PN.js} +22 -22
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-AKUP6U2S.js} +17 -16
- package/dist/{figma-MYYCX635.js → figma-GGMYRR4Q.js} +3 -3
- package/dist/fontLocalizeCli.js +21 -19
- package/dist/{get-JVIDYMVP.js → get-PLKAI6JM.js} +7 -7
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-EYDAAPJF.js} +14 -13
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-UADJP4AV.js} +44 -43
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-KDF3OPOK.js} +15 -14
- package/dist/{help-XPPSLIRY.js → help-WSQQ555Q.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-VSQ2DQ3V.js} +110 -62
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-MOQ4LRC3.js} +18 -18
- package/dist/{init-NTIXWA3D.js → init-EONQSZJG.js} +62 -60
- package/dist/{inspect-MYMCV5E7.js → inspect-OLCVLHOU.js} +43 -42
- package/dist/{installer-PYJIJ3PJ.js → installer-GHISA75B.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-DGQYCY24.js} +13 -13
- package/dist/{lambda-SBNUYEQE.js → lambda-AMMWF2YH.js} +35 -15
- package/dist/{layout-IOMCOABO.js → layout-R6CAPGRO.js} +43 -42
- package/dist/{lint-AQWHHMPS.js → lint-QZJEYPHD.js} +14 -11
- package/dist/{lintProject-5A4SCW3S.js → lintProject-W3YVHAGP.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-KCJID4SP.js} +7 -7
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-3ZDK5JOA.js → login-7HKBEPJS.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-QYFYWZOK.js → manager-6YSKJMVD.js} +19 -18
- package/dist/{manager-F2YREC5X.js → manager-Z7W4GQGF.js} +9 -5
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-E3DL6LEZ.js} +34 -31
- package/dist/{models-MR55FAUX.js → models-URWI7YEG.js} +30 -29
- package/dist/{motionShot-DC47S7BT.js → motionShot-27IXMDJK.js} +25 -24
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-WGRLPR3P.js} +16 -16
- package/dist/{open-YXWBWTKL.js → open-LQ35PLEN.js} +21 -21
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-XASVIDTI.js} +27 -26
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-GA7QVCHS.js} +18 -17
- package/dist/{play-S562STR4.js → play-RYZP77CI.js} +31 -31
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-QWGXMISC.js → preflight-HJFSJXXF.js} +19 -18
- package/dist/{present-PGOHZT3L.js → present-YBMLOWZV.js} +26 -26
- package/dist/{preview-JU75H4QN.js → preview-QIRKJCRV.js} +52 -39
- package/dist/{producer-H66OMZLW.js → producer-524FDOLX.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-IDQN5ZRW.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-3X3IGSDO.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-2BF7K6HX.js} +21 -20
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-WRCGIU32.js → remove-background-EZBCEFT6.js} +22 -21
- package/dist/{render-QS3YJCBR.js → render-EFUA2A6A.js} +15 -11
- package/dist/{render-VUVTK2JM.js → render-JFMTAXHD.js} +87 -53
- package/dist/{render-5J5PP3UK.js → render-TEEBI2UT.js} +49 -43
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-XTYNXVSW.js} +16 -12
- package/dist/renderSetupWorker.js +12 -9
- package/dist/{resolver-QCBWPRSC.js → resolver-FZS6TN6B.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-IZ22SC5W.js → sherpa-TQIAIKTH.js} +26 -25
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/skills/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-3RFMPMJA.js → skills-S6ZG5KKH.js} +10 -10
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-XC7JQL3F.js} +5 -5
- package/dist/{snapshot-5PHA43DK.js → snapshot-ERYZIM32.js} +152 -80
- package/dist/{src-4YJKYMNF.js → src-6XOMREMS.js} +21 -12
- package/dist/{src-36BQVJL3.js → src-OL6RHPE4.js} +22 -20
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-JYDDGPAH.js} +26 -26
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/hyperframes-player-5dRdMVOq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-Bu3mJUU2.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-ZqyQ91pm.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-GRU4SHKD.js} +18 -18
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-OYPBEI5B.js} +76 -73
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-W3LRO3TB.js → telemetry-CPYINR63.js} +5 -5
- package/dist/{timeline-BDO5DYWP.js → timeline-RGK5BMPD.js} +34 -33
- package/dist/{tokens-47CEMYFV.js → tokens-EX4BOWRW.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-MK367I6A.js} +24 -23
- package/dist/{transcribe-GEPVJO3A.js → transcribe-RI52JMVW.js} +35 -34
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-BIEJKQI4.js} +4 -4
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-ES3UUI7O.js} +4 -4
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-XAGYSTAG.js} +13 -12
- package/dist/{validate-2OPSQT3W.js → validate-A6GZHNEI.js} +36 -35
- package/dist/{video-ECWXMY4F.js → video-OEMGR3MN.js} +19 -15
- package/dist/warmCheck.js +53 -52
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-KLIPVNCO.js +0 -4824
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -14,19 +14,68 @@ import {
|
|
|
14
14
|
} from "./chunk-DKPNNYBZ.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveCaptureBrowserGpuMode
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4LTBQEPD.js";
|
|
18
18
|
import {
|
|
19
19
|
requestCliExit
|
|
20
20
|
} from "./chunk-JVBRJMOP.js";
|
|
21
|
+
import {
|
|
22
|
+
explainChromeLaunchFailure
|
|
23
|
+
} from "./chunk-MPO25DQW.js";
|
|
24
|
+
import {
|
|
25
|
+
processIsAlive
|
|
26
|
+
} from "./chunk-KGPLIH7B.js";
|
|
21
27
|
import {
|
|
22
28
|
withHyperframesBrowserMarker
|
|
23
29
|
} from "./chunk-K4MJX7SR.js";
|
|
24
30
|
import {
|
|
25
31
|
normalizeErrorMessage
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "
|
|
32
|
+
} from "./chunk-EU7MVORF.js";
|
|
33
|
+
|
|
34
|
+
// src/browser/chromeTree.ts
|
|
35
|
+
import { execFile } from "child_process";
|
|
36
|
+
import { promisify } from "util";
|
|
37
|
+
var PS_TIMEOUT_MS = 2e3;
|
|
38
|
+
async function processTable() {
|
|
39
|
+
let stdout;
|
|
40
|
+
try {
|
|
41
|
+
({ stdout } = await promisify(execFile)("ps", ["-axo", "pid=,ppid=,command="], {
|
|
42
|
+
maxBuffer: 16 * 1024 * 1024,
|
|
43
|
+
timeout: PS_TIMEOUT_MS
|
|
44
|
+
}));
|
|
45
|
+
} catch (error) {
|
|
46
|
+
if (error.killed) return [];
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
return stdout.split("\n").flatMap((line) => {
|
|
50
|
+
const row = /^\s*(\d+)\s+(\d+)\s+(.*)$/.exec(line);
|
|
51
|
+
return row ? [{ pid: Number(row[1]), ppid: Number(row[2]), command: row[3] }] : [];
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
async function chromeDescendants(rootPid) {
|
|
55
|
+
const table = await processTable();
|
|
56
|
+
const found = [];
|
|
57
|
+
const queue = [rootPid];
|
|
58
|
+
while (queue.length > 0) {
|
|
59
|
+
const parent = queue.shift();
|
|
60
|
+
for (const row of table) {
|
|
61
|
+
if (row.ppid !== parent) continue;
|
|
62
|
+
found.push({ pid: row.pid, command: row.command });
|
|
63
|
+
queue.push(row.pid);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return found;
|
|
67
|
+
}
|
|
68
|
+
async function reapChromeTree(members) {
|
|
69
|
+
if (members.length === 0) return;
|
|
70
|
+
const commands = new Map((await processTable()).map((row) => [row.pid, row.command]));
|
|
71
|
+
for (const { pid, command } of members) {
|
|
72
|
+
if (commands.get(pid) !== command) continue;
|
|
73
|
+
try {
|
|
74
|
+
process.kill(pid, "SIGKILL");
|
|
75
|
+
} catch {
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
30
79
|
|
|
31
80
|
// src/browser/windowsChromeWatchdog.ts
|
|
32
81
|
import { spawn } from "child_process";
|
|
@@ -84,9 +133,11 @@ var browsers = /* @__PURE__ */ new Set();
|
|
|
84
133
|
var closing = /* @__PURE__ */ new WeakMap();
|
|
85
134
|
var watchdogs = /* @__PURE__ */ new WeakMap();
|
|
86
135
|
var pending = /* @__PURE__ */ new Map();
|
|
136
|
+
var diagnosing = /* @__PURE__ */ new Set();
|
|
87
137
|
var sessionCleanups = /* @__PURE__ */ new Set();
|
|
88
138
|
var CLOSE_GRACE_MS = 1e3;
|
|
89
139
|
var LAUNCH_TIMEOUT_MS = 3e4;
|
|
140
|
+
var SLOW_START_NOTICE_MS = 5e3;
|
|
90
141
|
var EXIT_POLL_MS = 50;
|
|
91
142
|
var listening = false;
|
|
92
143
|
var shutdown;
|
|
@@ -120,11 +171,15 @@ async function resolveManagedGpuMode(requestedMode, chromePath, context = {}) {
|
|
|
120
171
|
return resolveCaptureBrowserGpuMode(requestedMode, chromePath, {
|
|
121
172
|
launch: async (puppeteer, options) => {
|
|
122
173
|
context.signal?.throwIfAborted();
|
|
123
|
-
const browser = await launchManagedBrowser(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
174
|
+
const browser = await launchManagedBrowser(
|
|
175
|
+
puppeteer,
|
|
176
|
+
{
|
|
177
|
+
...options,
|
|
178
|
+
...context.noListen ? oneProcessOverPipe(options) : {},
|
|
179
|
+
signal: context.signal
|
|
180
|
+
},
|
|
181
|
+
{ diagnose: false }
|
|
182
|
+
);
|
|
128
183
|
try {
|
|
129
184
|
context.onBrowser?.(browser);
|
|
130
185
|
} catch (error) {
|
|
@@ -135,24 +190,45 @@ async function resolveManagedGpuMode(requestedMode, chromePath, context = {}) {
|
|
|
135
190
|
close: closeManagedBrowser
|
|
136
191
|
});
|
|
137
192
|
}
|
|
138
|
-
async function launchManagedBrowser(puppeteer, options) {
|
|
193
|
+
async function launchManagedBrowser(puppeteer, options, { diagnose = true } = {}) {
|
|
139
194
|
const sandboxed = isOneProcessOverPipe(options) || inAgentSandbox();
|
|
140
195
|
try {
|
|
141
196
|
return await launchOwnedBrowser(puppeteer, sandboxed ? oneProcessOverPipe(options) : options);
|
|
142
197
|
} catch (error) {
|
|
143
198
|
const unnamedSeatbelt = !sandboxed && (machServiceDenied(normalizeErrorMessage(error)) || pipeLaunchClosedOnMac(error));
|
|
144
|
-
if (!unnamedSeatbelt)
|
|
199
|
+
if (!unnamedSeatbelt)
|
|
200
|
+
throw await withStartupDiagnosis(withRemediation(error), puppeteer, options, diagnose);
|
|
145
201
|
return launchOwnedBrowser(puppeteer, oneProcessOverPipe(options)).catch(
|
|
146
|
-
(retryError) => {
|
|
147
|
-
throw withRemediation(retryError);
|
|
202
|
+
async (retryError) => {
|
|
203
|
+
throw await withStartupDiagnosis(withRemediation(retryError), puppeteer, options, diagnose);
|
|
148
204
|
}
|
|
149
205
|
);
|
|
150
206
|
}
|
|
151
207
|
}
|
|
208
|
+
async function withStartupDiagnosis(error, puppeteer, options, diagnose) {
|
|
209
|
+
if (!diagnose || !options.executablePath || options.signal?.aborted || shutdown) return error;
|
|
210
|
+
if (!(error instanceof Error)) return error;
|
|
211
|
+
if (sandboxDeniedRemediation(normalizeErrorMessage(error))) return error;
|
|
212
|
+
const args = await (async () => puppeteer.defaultArgs({
|
|
213
|
+
headless: options.headless ?? true,
|
|
214
|
+
args: withHyperframesBrowserMarker(options.args)
|
|
215
|
+
}))().catch(() => void 0);
|
|
216
|
+
if (!args) return error;
|
|
217
|
+
const abort = new AbortController();
|
|
218
|
+
diagnosing.add(abort);
|
|
219
|
+
try {
|
|
220
|
+
return await explainChromeLaunchFailure(error, options.executablePath, args, abort.signal);
|
|
221
|
+
} finally {
|
|
222
|
+
diagnosing.delete(abort);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
152
225
|
function withRemediation(error) {
|
|
153
226
|
const remediation = sandboxDeniedRemediation(normalizeErrorMessage(error));
|
|
154
227
|
return remediation ? new Error(remediation, { cause: error }) : error;
|
|
155
228
|
}
|
|
229
|
+
function destroyBrowserPipes(child) {
|
|
230
|
+
for (const pipe of child.stdio ?? []) pipe?.destroy();
|
|
231
|
+
}
|
|
156
232
|
async function launchOwnedBrowser(puppeteer, options) {
|
|
157
233
|
if (shutdown) throw new Error("The CLI is stopping; no browser can start.");
|
|
158
234
|
ownSignals();
|
|
@@ -175,6 +251,7 @@ async function launchOwnedBrowser(puppeteer, options) {
|
|
|
175
251
|
() => abort.abort(new Error(`The browser did not finish starting within ${limit} ms.`)),
|
|
176
252
|
limit
|
|
177
253
|
) : void 0;
|
|
254
|
+
const slow = setTimeout(() => console.error("Chrome is still starting..."), SLOW_START_NOTICE_MS);
|
|
178
255
|
pending.set(launch, abort);
|
|
179
256
|
try {
|
|
180
257
|
const browser = await launch;
|
|
@@ -183,10 +260,14 @@ async function launchOwnedBrowser(puppeteer, options) {
|
|
|
183
260
|
browsers.add(browser);
|
|
184
261
|
const watchdog = watchChromeTree(child, launchedAt);
|
|
185
262
|
if (watchdog) watchdogs.set(browser, watchdog);
|
|
186
|
-
child.once("exit", () =>
|
|
263
|
+
child.once("exit", () => {
|
|
264
|
+
browsers.delete(browser);
|
|
265
|
+
destroyBrowserPipes(child);
|
|
266
|
+
});
|
|
187
267
|
return browser;
|
|
188
268
|
} finally {
|
|
189
269
|
clearTimeout(timer);
|
|
270
|
+
clearTimeout(slow);
|
|
190
271
|
pending.delete(launch);
|
|
191
272
|
}
|
|
192
273
|
}
|
|
@@ -199,7 +280,7 @@ function untilLaunchOrAbort(launch, signal) {
|
|
|
199
280
|
return Promise.race([launch, aborted]);
|
|
200
281
|
}
|
|
201
282
|
async function closeManagedBrowsers() {
|
|
202
|
-
for (const abort of pending.values()) abort.abort();
|
|
283
|
+
for (const abort of [...pending.values(), ...diagnosing]) abort.abort();
|
|
203
284
|
await Promise.allSettled(pending.keys());
|
|
204
285
|
const results = await Promise.allSettled([...browsers].map(closeManagedBrowser));
|
|
205
286
|
results.push(...await Promise.allSettled([...sessionCleanups].map((cleanup) => cleanup())));
|
|
@@ -240,10 +321,15 @@ async function closeBrowser(browser) {
|
|
|
240
321
|
watchdogs.get(browser)?.release(clean);
|
|
241
322
|
}
|
|
242
323
|
}
|
|
324
|
+
async function descendantsToReap(pid) {
|
|
325
|
+
if (pid === void 0 || process.platform === "win32") return [];
|
|
326
|
+
return chromeDescendants(pid).catch(() => []);
|
|
327
|
+
}
|
|
243
328
|
async function closedWithoutKill(browser) {
|
|
244
329
|
const child = browser.process();
|
|
245
330
|
if (!child) throw new Error("A managed browser lost its owned process.");
|
|
246
331
|
if (child.exitCode !== null || child.signalCode !== null) return false;
|
|
332
|
+
const tree = await descendantsToReap(child.pid);
|
|
247
333
|
const exited = new Promise((resolve) => child.once("exit", () => resolve()));
|
|
248
334
|
let timer;
|
|
249
335
|
let poll;
|
|
@@ -270,6 +356,7 @@ async function closedWithoutKill(browser) {
|
|
|
270
356
|
}, EXIT_POLL_MS);
|
|
271
357
|
});
|
|
272
358
|
await Promise.race([exited, goneBeforeExitEvent, exitLimit]);
|
|
359
|
+
await reapChromeTree(tree).catch(() => void 0);
|
|
273
360
|
return clean;
|
|
274
361
|
} finally {
|
|
275
362
|
clearTimeout(timer);
|
|
@@ -0,0 +1,71 @@
|
|
|
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/jsonFlag.ts
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
import { resolve } from "path";
|
|
11
|
+
function decode(bytes) {
|
|
12
|
+
if (bytes[0] === 255 && bytes[1] === 254)
|
|
13
|
+
return bytes.toString("utf16le").replace(/^\uFEFF/, "");
|
|
14
|
+
return bytes.toString("utf8").replace(/^\uFEFF/, "");
|
|
15
|
+
}
|
|
16
|
+
var defaultIO = {
|
|
17
|
+
readFile: (path) => decode(readFileSync(resolve(path))),
|
|
18
|
+
readStdin: () => decode(readFileSync(0))
|
|
19
|
+
};
|
|
20
|
+
var JsonFlagReadError = class extends Error {
|
|
21
|
+
constructor(path, cause) {
|
|
22
|
+
super(`${path}: ${cause}`);
|
|
23
|
+
this.path = path;
|
|
24
|
+
this.cause = cause;
|
|
25
|
+
}
|
|
26
|
+
path;
|
|
27
|
+
cause;
|
|
28
|
+
};
|
|
29
|
+
function isJsonScalar(text) {
|
|
30
|
+
try {
|
|
31
|
+
JSON.parse(text);
|
|
32
|
+
return true;
|
|
33
|
+
} catch {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var errorText = (error) => error instanceof Error ? error.message : String(error);
|
|
38
|
+
function readJsonFlagText(value, partialIo = {}) {
|
|
39
|
+
const io = { ...defaultIO, ...partialIo };
|
|
40
|
+
const trimmed = value.trim();
|
|
41
|
+
if (trimmed.startsWith("{") || trimmed.startsWith("[") || isJsonScalar(trimmed)) return value;
|
|
42
|
+
const source = trimmed === "-" ? "stdin" : value;
|
|
43
|
+
try {
|
|
44
|
+
return trimmed === "-" ? io.readStdin() : io.readFile(value);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
throw new JsonFlagReadError(source, errorText(error));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
var inlineJsonHint = (flag) => `PowerShell strips the quotes from inline JSON; pass a file (${flag} payload.json) or pipe it (${flag} -)`;
|
|
50
|
+
function readJsonFlag(flag, value, io) {
|
|
51
|
+
let text;
|
|
52
|
+
try {
|
|
53
|
+
text = readJsonFlagText(value, io);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
if (!(error instanceof JsonFlagReadError)) throw error;
|
|
56
|
+
throw new Error(`Could not read ${flag}: ${error.message}`);
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
return JSON.parse(text);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
const hint = /^\s*[{[]/.test(text) ? ` (${inlineJsonHint(flag)})` : "";
|
|
62
|
+
throw new Error(`Could not parse ${flag} JSON: ${errorText(error)}${hint}`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
JsonFlagReadError,
|
|
68
|
+
readJsonFlagText,
|
|
69
|
+
inlineJsonHint,
|
|
70
|
+
readJsonFlag
|
|
71
|
+
};
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4KG3ESVO.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MPO25DQW.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-U6KN6OIP.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-NEASABW6.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MW2NQQ6Z.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-EU7MVORF.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/doctor.ts
|
|
57
57
|
import { execFileSync, execSync } from "child_process";
|
|
@@ -234,7 +234,7 @@ function checkEnvironment() {
|
|
|
234
234
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
235
235
|
}
|
|
236
236
|
async function checkWhisper() {
|
|
237
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
237
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-6YSKJMVD.js");
|
|
238
238
|
const result = findWhisper();
|
|
239
239
|
if (result) {
|
|
240
240
|
return { ok: true, detail: result.executablePath };
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
createFileAtomically
|
|
9
|
+
} from "./chunk-EOVYQ3IG.js";
|
|
10
|
+
|
|
11
|
+
// src/utils/writeNewFile.ts
|
|
12
|
+
function writeNewFileSync(filePath, content) {
|
|
13
|
+
try {
|
|
14
|
+
createFileAtomically(filePath, content);
|
|
15
|
+
} catch (err) {
|
|
16
|
+
if (!(err instanceof Error && "code" in err && err.code === "EEXIST")) throw err;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
writeNewFileSync
|
|
22
|
+
};
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5HB4JM7H.js";
|
|
12
12
|
import {
|
|
13
13
|
renameWithRetry,
|
|
14
14
|
runFfmpeg,
|
|
15
15
|
runFfprobe
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MPO25DQW.js";
|
|
17
17
|
import {
|
|
18
18
|
parseHTML
|
|
19
19
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -11,36 +11,31 @@ import {
|
|
|
11
11
|
findSyncPartner,
|
|
12
12
|
readLinkTiming,
|
|
13
13
|
syncOffsetFrames
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VQB7G5BM.js";
|
|
15
15
|
import {
|
|
16
16
|
readCompositionFps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QP2MJYTJ.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MPO25DQW.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QWBVPWUI.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-
|
|
35
|
-
import {
|
|
36
|
-
isSubCompositionHost,
|
|
37
|
-
topLevelElements,
|
|
38
|
-
trackKindOf
|
|
39
|
-
} from "./chunk-OFRRUYBA.js";
|
|
34
|
+
} from "./chunk-BQMAPNDA.js";
|
|
40
35
|
import {
|
|
41
36
|
resolveReferencedDuration,
|
|
42
37
|
resolveReferencedStart
|
|
43
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FC4WT5FX.js";
|
|
44
39
|
import {
|
|
45
40
|
resolveAuthoredAssetFile
|
|
46
41
|
} from "./chunk-PBNWRWKA.js";
|
|
@@ -53,7 +48,12 @@ import {
|
|
|
53
48
|
readPlaybackRate,
|
|
54
49
|
resolveMediaDuration,
|
|
55
50
|
resolveMediaStartSeconds
|
|
56
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SE2MXV2N.js";
|
|
52
|
+
import {
|
|
53
|
+
isSubCompositionHost,
|
|
54
|
+
topLevelElements,
|
|
55
|
+
trackKindOf
|
|
56
|
+
} from "./chunk-NHA4NRBE.js";
|
|
57
57
|
|
|
58
58
|
// src/timeline/describeProject.ts
|
|
59
59
|
import { readFileSync, realpathSync, statSync } from "fs";
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
// ../core/dist/removeTree.js
|
|
9
|
+
import { rmSync } from "fs";
|
|
10
|
+
import { rm } from "fs/promises";
|
|
11
|
+
var RETRY = { recursive: true, force: true, maxRetries: 10, retryDelay: 100 };
|
|
12
|
+
function refusal(path, error) {
|
|
13
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
14
|
+
return `[cleanup] could not remove ${path}: ${reason}`;
|
|
15
|
+
}
|
|
16
|
+
function removeTreeWithRetry(path, remove = rmSync) {
|
|
17
|
+
remove(path, RETRY);
|
|
18
|
+
}
|
|
19
|
+
async function removeTreeWithRetryAsync(path, remove = rm) {
|
|
20
|
+
await remove(path, RETRY);
|
|
21
|
+
}
|
|
22
|
+
function removeTreeBestEffort(path, options = {}) {
|
|
23
|
+
try {
|
|
24
|
+
removeTreeWithRetry(path, options.remove);
|
|
25
|
+
} catch (error) {
|
|
26
|
+
(options.warn ?? console.warn)(refusal(path, error));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
async function removeTreeBestEffortAsync(path, options = {}) {
|
|
30
|
+
try {
|
|
31
|
+
await removeTreeWithRetryAsync(path, options.remove);
|
|
32
|
+
} catch (error) {
|
|
33
|
+
(options.warn ?? console.warn)(refusal(path, error));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
removeTreeBestEffort,
|
|
39
|
+
removeTreeBestEffortAsync
|
|
40
|
+
};
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-K2FLNJVB.js";
|
|
10
10
|
import {
|
|
11
11
|
trackCommandFailure
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DHQSDCWD.js";
|
|
13
13
|
import {
|
|
14
14
|
failCommand
|
|
15
15
|
} from "./chunk-JVBRJMOP.js";
|
|
@@ -41,7 +41,14 @@ function resolveProjectOrThrow(dirArg, options = {}) {
|
|
|
41
41
|
const dir = resolve(dirArg ?? ".");
|
|
42
42
|
const name = basename(dir);
|
|
43
43
|
const indexPath = resolve(dir, "index.html");
|
|
44
|
-
if (
|
|
44
|
+
if (existsSync(dir) && !statSync(dir).isDirectory()) {
|
|
45
|
+
throw new InvalidProjectError(
|
|
46
|
+
"Not a directory: " + dir,
|
|
47
|
+
basename(dir) + " is a file; this command takes the project folder.",
|
|
48
|
+
"Pass the folder that holds index.html: " + projectHolding(dir)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
if (!existsSync(dir)) {
|
|
45
52
|
throw new InvalidProjectError("Not a directory: " + dir);
|
|
46
53
|
}
|
|
47
54
|
if (options.requireIndex !== false && !existsSync(indexPath)) {
|
|
@@ -6,35 +6,35 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XG3IZV62.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4KG3ESVO.js";
|
|
13
13
|
import "./chunk-EXAX37XR.js";
|
|
14
14
|
import "./chunk-6BEFEWFB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-EGOXYG3M.js";
|
|
16
16
|
import {
|
|
17
17
|
loadProducer
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-S4KHJERB.js";
|
|
19
|
+
import "./chunk-G2A6RC5R.js";
|
|
20
|
+
import "./chunk-PWEOSJ3E.js";
|
|
21
|
+
import "./chunk-VQB7G5BM.js";
|
|
22
|
+
import "./chunk-IL2TMC6F.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_HISTORY_ROOT,
|
|
25
25
|
listProjectHistories,
|
|
26
26
|
pruneGoneProjectHistories,
|
|
27
27
|
reclaimUncopiedBlobs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3O2E4Q66.js";
|
|
29
29
|
import {
|
|
30
30
|
CACHE_DIR_NAME,
|
|
31
31
|
cleanupProxyCache
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PKVA6MPV.js";
|
|
33
33
|
import "./chunk-ALVXFXUG.js";
|
|
34
34
|
import {
|
|
35
35
|
formatBytes
|
|
36
36
|
} from "./chunk-K2FLNJVB.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-W4DMQZL5.js";
|
|
38
38
|
import "./chunk-EOVYQ3IG.js";
|
|
39
39
|
import {
|
|
40
40
|
defineCommand
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
c
|
|
47
47
|
} from "./chunk-ZTZA4UWZ.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-5YHQBCWH.js";
|
|
49
49
|
import "./chunk-EVMY7IPL.js";
|
|
50
50
|
import "./chunk-7FMUTGOH.js";
|
|
51
51
|
import {
|
|
@@ -53,46 +53,47 @@ import {
|
|
|
53
53
|
directorySizeBytes,
|
|
54
54
|
gcExtractionCache,
|
|
55
55
|
resolveExtractCacheDir
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-MPO25DQW.js";
|
|
57
|
+
import "./chunk-Z5J67X44.js";
|
|
57
58
|
import "./chunk-5S7W3TUO.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-KLIPVNCO.js";
|
|
59
|
+
import "./chunk-GHSO62LK.js";
|
|
60
|
+
import "./chunk-QWBVPWUI.js";
|
|
61
|
+
import "./chunk-BQMAPNDA.js";
|
|
62
62
|
import "./chunk-VC76R6W2.js";
|
|
63
|
-
import "./chunk-OFRRUYBA.js";
|
|
64
|
-
import "./chunk-FR7YBU3H.js";
|
|
65
63
|
import "./chunk-OFQWTKPW.js";
|
|
66
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-RQVDTPGD.js";
|
|
67
65
|
import "./chunk-3GXQPCJC.js";
|
|
68
66
|
import "./chunk-634HSJ3J.js";
|
|
69
67
|
import "./chunk-FXMKHHPO.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-KTWGVEN6.js";
|
|
69
|
+
import "./chunk-Q43YUROE.js";
|
|
70
|
+
import "./chunk-KGPLIH7B.js";
|
|
72
71
|
import "./chunk-QSFWGZG6.js";
|
|
73
72
|
import "./chunk-XT6MXC7A.js";
|
|
74
73
|
import "./chunk-K4MJX7SR.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-ERUQ3S6D.js";
|
|
75
|
+
import "./chunk-FC4WT5FX.js";
|
|
77
76
|
import "./chunk-CZGHFATT.js";
|
|
78
77
|
import "./chunk-VAS6HQX3.js";
|
|
79
78
|
import "./chunk-PBNWRWKA.js";
|
|
80
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-SE2MXV2N.js";
|
|
80
|
+
import "./chunk-NHA4NRBE.js";
|
|
81
|
+
import "./chunk-FR7YBU3H.js";
|
|
82
|
+
import "./chunk-DPVXBVLL.js";
|
|
81
83
|
import "./chunk-GWTIFRF5.js";
|
|
82
84
|
import "./chunk-2RY2LWAA.js";
|
|
83
85
|
import "./chunk-3422KMTD.js";
|
|
84
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-WC4MTXGN.js";
|
|
85
87
|
import "./chunk-UIOZIIB7.js";
|
|
86
88
|
import {
|
|
87
89
|
withMeta
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-U6KN6OIP.js";
|
|
89
91
|
import "./chunk-K4WIOZFP.js";
|
|
90
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-NEASABW6.js";
|
|
91
93
|
import "./chunk-WERLJGIC.js";
|
|
92
94
|
import "./chunk-ISN5GRYI.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-KGPLIH7B.js";
|
|
95
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
96
|
+
import "./chunk-EU7MVORF.js";
|
|
96
97
|
import "./chunk-M2WBOQ2Q.js";
|
|
97
98
|
|
|
98
99
|
// src/commands/clean.ts
|