hyperframes 0.8.211 → 0.8.212
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-WERDY37C.js → add-JSM7YBQX.js} +14 -13
- package/dist/{agentPromptGenerator-SEAPWYY5.js → agentPromptGenerator-NTPYCKOI.js} +5 -5
- package/dist/{animatedGifPrep-LC43PROA.js → animatedGifPrep-XTK7UWXF.js} +5 -5
- package/dist/api.js +17 -17
- package/dist/{asset-IVDQNYHP.js → asset-SMY2EGPH.js} +5 -4
- package/dist/{assetCataloger-PPE7M2WM.js → assetCataloger-CVPWY34W.js} +6 -6
- package/dist/{audio-IJ22GXO6.js → audio-Y4OYLTWN.js} +20 -19
- package/dist/{auth-FZMDHX2H.js → auth-MDEHZR7R.js} +4 -4
- package/dist/{autoUpdate-EO6SFALF.js → autoUpdate-3FL6EDPM.js} +4 -2
- package/dist/{backgroundChecks-YW5VIAYF.js → backgroundChecks-A6TG2BT3.js} +5 -3
- package/dist/backgroundChecksWorker.js +5 -3
- package/dist/{batchRender-OOXYNZOT.js → batchRender-K2PBRRTQ.js} +8 -7
- package/dist/{beats-X7GRQA4J.js → beats-RA6XK6J5.js} +13 -12
- package/dist/{benchmark-JGGBMRZO.js → benchmark-EHU5O4PP.js} +19 -17
- package/dist/{browser-FQ5JPTME.js → browser-7RUIZT2H.js} +12 -10
- package/dist/{bundleWithLocalizedFonts-XA73ZJ4S.js → bundleWithLocalizedFonts-O2U2FYY2.js} +2 -2
- package/dist/{capture-GUVCA5JQ.js → capture-77KDKKNK.js} +13 -12
- package/dist/{capture-KKVB3MKM.js → capture-JGYBORAG.js} +12 -9
- package/dist/{captureCompositionFrame-LNKWWCXE.js → captureCompositionFrame-DZ7EHPZV.js} +13 -12
- package/dist/{catalog-LKJEMEOC.js → catalog-CUP3SYAI.js} +18 -17
- package/dist/{catch-up-FA6KWX4S.js → catch-up-ZGUCWH5Q.js} +8 -7
- package/dist/{check-6GIDKL6S.js → check-ITGFVBT6.js} +41 -40
- package/dist/{checkAudio-H3AUFC4M.js → checkAudio-CTLPD6YT.js} +8 -8
- package/dist/{checkBrowser-YWWF63S6.js → checkBrowser-G2N4JI6N.js} +34 -33
- package/dist/{chunk-Q52ISCT4.js → chunk-25MKZTRT.js} +1 -1
- package/dist/{chunk-KSNIYQRB.js → chunk-26AQTUU4.js} +5 -7
- package/dist/{chunk-3LACB6HG.js → chunk-2YDIEZSF.js} +3 -3
- package/dist/{chunk-QVHC77IF.js → chunk-3JQ2YOKL.js} +2 -2
- package/dist/{chunk-FI7SSV73.js → chunk-3YBXKWAF.js} +1 -1
- package/dist/{chunk-5KOZRJR7.js → chunk-45JN2GIZ.js} +1 -1
- package/dist/{chunk-MMJAHBH2.js → chunk-5SKC4G26.js} +4 -1
- package/dist/{chunk-ZNSKOXFW.js → chunk-5TQ4AEPF.js} +3 -3
- package/dist/{chunk-J2JG4XGP.js → chunk-5ZBMHUY2.js} +4 -0
- package/dist/{chunk-KZBBY72Q.js → chunk-64XQS7AP.js} +1 -1
- package/dist/{chunk-ABBVDJMG.js → chunk-6SG3RRAQ.js} +2 -2
- package/dist/{chunk-JMD5HDPB.js → chunk-6ZLDIMPL.js} +2 -2
- package/dist/{chunk-CJ5QZRY7.js → chunk-7KBS6ZLB.js} +2 -2
- package/dist/{chunk-OOA6C4AG.js → chunk-7Q5TBUC2.js} +2 -2
- package/dist/{chunk-FBN5AQJL.js → chunk-7TWX4Y7I.js} +3 -3
- package/dist/{chunk-BGC5S3OZ.js → chunk-7W7ANGR4.js} +48 -35
- package/dist/{chunk-DJ3H6EW3.js → chunk-7ZAVTGGT.js} +10 -9
- package/dist/{chunk-3NIESDKN.js → chunk-A2WPZE2R.js} +1 -1
- package/dist/{chunk-CNU65QE2.js → chunk-AJAXP4HF.js} +9 -5
- package/dist/{chunk-2QAR7ZNY.js → chunk-BLVHVXRU.js} +2 -2
- package/dist/{chunk-472C35EW.js → chunk-BYRXSKIY.js} +1 -1
- package/dist/{chunk-5AKWJHRJ.js → chunk-CODPTVC2.js} +1 -1
- package/dist/{chunk-LALLQUSK.js → chunk-DP5LF7GF.js} +2 -0
- package/dist/{chunk-AIY2Y5UY.js → chunk-DS7ANFBV.js} +5 -5
- package/dist/{chunk-6J2G57BB.js → chunk-DVVTBVKA.js} +7 -7
- package/dist/{chunk-CGAUUUDL.js → chunk-DXPC7Z6L.js} +3 -3
- package/dist/{chunk-3R5MYOJN.js → chunk-EC77ZBCP.js} +2 -2
- package/dist/{chunk-VWG7OQKU.js → chunk-EQGKUPBJ.js} +4 -1
- package/dist/{chunk-CZCRSS3U.js → chunk-F5XADOGC.js} +1 -1
- package/dist/chunk-FJ646TIT.js +201 -0
- package/dist/{chunk-77KGX4A3.js → chunk-FKFGGAXN.js} +50 -8
- package/dist/{chunk-PICG2XRD.js → chunk-FW6CYA5D.js} +2 -2
- package/dist/{chunk-VUEWZXZG.js → chunk-G6HUXX3L.js} +1 -1
- package/dist/{chunk-5YHQBCWH.js → chunk-G6OKQMJI.js} +12 -2
- package/dist/{chunk-DPYI2HRJ.js → chunk-GQ724553.js} +5 -5
- package/dist/{chunk-SXJJTFV4.js → chunk-GVE6I5EL.js} +4 -4
- package/dist/{chunk-NEQIJUV2.js → chunk-HXZNCXQX.js} +1 -1
- package/dist/{chunk-LAR5VTCN.js → chunk-J7GPSY5N.js} +4 -4
- package/dist/{chunk-4JWKC3GH.js → chunk-JZNQQI5M.js} +5 -5
- package/dist/{chunk-IEVU4FXB.js → chunk-KZZWYIEB.js} +3 -3
- package/dist/{chunk-AHPGAESX.js → chunk-L72RQ45A.js} +1 -1
- package/dist/{chunk-4D46TX6Q.js → chunk-MJCIAZSK.js} +1 -1
- package/dist/{chunk-5LITFBMY.js → chunk-MX2GMAAW.js} +9 -9
- package/dist/{chunk-B2B4MN3R.js → chunk-N3J2MLXC.js} +2 -2
- package/dist/{chunk-JZVUSRZ5.js → chunk-N7XJHZ35.js} +1 -1
- package/dist/{chunk-RQNFW6YC.js → chunk-NGSENR4J.js} +8 -3
- package/dist/{chunk-VGKQFZCC.js → chunk-NXDKBFEO.js} +14 -14
- package/dist/{chunk-UI7X4L4M.js → chunk-OL5E4Y4L.js} +2074 -2060
- package/dist/{chunk-XNFDDVJS.js → chunk-ONMTNYGR.js} +4 -1
- package/dist/{chunk-PKWZG642.js → chunk-ORJY6Z6G.js} +3 -3
- package/dist/{chunk-YWPCMOX4.js → chunk-OSCWTA2O.js} +5 -5
- package/dist/{chunk-SJK64HHG.js → chunk-OWV36OJP.js} +5 -2
- package/dist/{chunk-DAXKGMJL.js → chunk-P2VGMOX7.js} +5 -5
- package/dist/{chunk-OE5EHGDG.js → chunk-PW7FCVHR.js} +1 -1
- package/dist/{chunk-K43XLAQV.js → chunk-Q55JNFDV.js} +3 -3
- package/dist/{chunk-VBC3DQFS.js → chunk-QUXWS5UG.js} +1 -1
- package/dist/{chunk-DMIFCIG6.js → chunk-R5B6GXQM.js} +1 -1
- package/dist/{chunk-5MCR5DA5.js → chunk-RDZKBIEB.js} +5 -5
- package/dist/{chunk-B4KGJHTE.js → chunk-RJILJ4OR.js} +2 -2
- package/dist/{chunk-6EN2LWOM.js → chunk-RQC4PHO3.js} +1 -1
- package/dist/{chunk-ORXLO64X.js → chunk-S2HWGG5O.js} +1 -1
- package/dist/chunk-SJGE5I5F.js +131 -0
- package/dist/{chunk-ZPXXWUQ3.js → chunk-SPDSRBIN.js} +30 -4
- package/dist/{chunk-WNDTMINP.js → chunk-SXTWQ7CH.js} +2 -2
- package/dist/{chunk-22OGII5H.js → chunk-T7KNW7PE.js} +1 -1
- package/dist/{chunk-2RQZQJHV.js → chunk-TPO32Z65.js} +1 -1
- package/dist/{chunk-66KMYUNO.js → chunk-UBUKKTNW.js} +2 -2
- package/dist/{chunk-T2L2GJ4C.js → chunk-UE4CXHMF.js} +7 -7
- package/dist/{chunk-K3LLHG6I.js → chunk-UULZKCBI.js} +1 -1
- package/dist/{chunk-DDRCX7P2.js → chunk-UXH6E5HC.js} +2 -2
- package/dist/{chunk-AQMGYRX6.js → chunk-V6OSE6VT.js} +1 -1
- package/dist/{chunk-67JTGRNM.js → chunk-VKD23SIO.js} +1 -1
- package/dist/{chunk-3JYKWNFR.js → chunk-VVDHSRKD.js} +1 -1
- package/dist/{chunk-KF6I5WA7.js → chunk-W2VJTKIW.js} +15 -18
- package/dist/{chunk-FIC3E7IM.js → chunk-W55BW7KA.js} +9 -9
- package/dist/{chunk-FWKZ3O52.js → chunk-W5OBRMZ6.js} +1 -1
- package/dist/{chunk-YPNBEBQ6.js → chunk-WVIH5BBZ.js} +25 -18
- package/dist/{chunk-Z2UZAY2Q.js → chunk-XEWMJWNW.js} +2 -2
- package/dist/{chunk-DWIMUPFK.js → chunk-XGXTZNES.js} +2 -2
- package/dist/{chunk-GSXA4YLV.js → chunk-Y3U7ECBH.js} +1 -1
- package/dist/{chunk-KDDO3UYI.js → chunk-YACECUHX.js} +3 -3
- package/dist/{chunk-3WL7WU6K.js → chunk-YVT5IU6J.js} +19 -20
- package/dist/{chunk-4EO7DNRJ.js → chunk-YX5ELTKV.js} +2 -2
- package/dist/{chunk-FVY2XRX4.js → chunk-ZCYSQ3NQ.js} +2 -2
- package/dist/{clean-SVEOBRPM.js → clean-FBZ7GHRY.js} +21 -20
- package/dist/cli.js +143 -77
- package/dist/{cloud-ADFJGIEH.js → cloud-VYSWJ7UO.js} +4 -4
- package/dist/{cloudrun-BNY7Q5RK.js → cloudrun-U6LI7KLV.js} +23 -20
- package/dist/{compare-QC3T22KV.js → compare-YR7BMEHJ.js} +44 -45
- package/dist/{compiler-4ITKK4XI.js → compiler-6YCAUK7Z.js} +2 -2
- package/dist/{component-CNZCB3RY.js → component-HVSM6FJV.js} +6 -5
- package/dist/{compositions-UO32IP6Z.js → compositions-QTFL2VNL.js} +13 -12
- package/dist/{delete-RWTOSI24.js → delete-2FHCQ72T.js} +13 -11
- package/dist/{deploy-OKWS53NP.js → deploy-6S45QWG6.js} +5 -5
- package/dist/{destroy-4RL5VOXQ.js → destroy-BQ5R7LUF.js} +3 -3
- package/dist/{dist-AEE3QTRB.js → dist-B4KLCLZ5.js} +2 -2
- package/dist/{docs-UMIA66EZ.js → docs-6EM6FDNI.js} +5 -4
- package/dist/{doctor-SIF72ESZ.js → doctor-4MRS6RED.js} +11 -9
- package/dist/{events-S3VUTFEG.js → events-4VBBY7PP.js} +5 -3
- package/dist/{events-34PIVLZQ.js → events-FN45HVPM.js} +6 -5
- package/dist/{feedback-VS4LRXHW.js → feedback-T67P2CDA.js} +20 -19
- package/dist/{ffmpeg-YVQOKNV6.js → ffmpeg-ED7ZK6XH.js} +5 -5
- package/dist/{figma-AF4JKDBA.js → figma-UXAWKPOY.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-UQGCS6Q4.js → get-EFH3PPJA.js} +8 -7
- package/dist/{gpuPolicy-Q4B3D6PW.js → gpuPolicy-ZADQMXQT.js} +5 -5
- package/dist/{grade-compare-G34673XC.js → grade-compare-425BFHSF.js} +46 -44
- package/dist/{heifImagePrep-XD4DGOUS.js → heifImagePrep-ZJM7N2XY.js} +6 -6
- package/dist/{help-3QSD26IC.js → help-23PPB2BD.js} +11 -7
- package/dist/{history-6DC24UCF.js → history-CHJV33M5.js} +15 -12
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +63 -63
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6JUHWWJK.js → info-36YPISVA.js} +11 -10
- package/dist/{init-2DPX6U3J.js → init-U6EE2EIU.js} +37 -36
- package/dist/{inspect-Z55YUSXC.js → inspect-NI2RMUFR.js} +32 -31
- package/dist/{installer-XVKYJU7S.js → installer-K3HIZ5CF.js} +4 -4
- package/dist/{keyframes-YHF4AQIL.js → keyframes-I6T2IT6I.js} +10 -9
- package/dist/{lambda-JITTS37E.js → lambda-WL64Z2F3.js} +31 -29
- package/dist/{layout-V5NYJXIX.js → layout-R2YZ4N6P.js} +32 -31
- package/dist/{lint-V4WMO7YL.js → lint-IAAG6Z65.js} +17 -14
- package/dist/{list-W7UCIYKA.js → list-3O6743DJ.js} +11 -10
- package/dist/{live-LAHBXVK2.js → live-WWPFZQ74.js} +33 -7
- package/dist/{localPage-BLQFFIDF.js → localPage-L5FRBCNP.js} +5 -5
- package/dist/{login-IX3MOREU.js → login-27TRFTYB.js} +11 -11
- package/dist/{logout-46NLNY2K.js → logout-C6P6ERZ3.js} +5 -5
- package/dist/{manager-WJOWZNHM.js → manager-D6TE4ENP.js} +7 -7
- package/dist/{media-treatment-XBO6EXL4.js → media-treatment-E3YLZVXC.js} +43 -33
- package/dist/{media-use-3RFKY7XJ.js → media-use-ZRHFRO46.js} +1 -1
- package/dist/{models-P3NSHDQS.js → models-2Q3TGNH5.js} +26 -19
- package/dist/{motionShot-D4QMLTQP.js → motionShot-XYW2HMVI.js} +16 -15
- package/dist/{normalize-audio-Q4VUR3QJ.js → normalize-audio-D5WNUNDM.js} +30 -19
- package/dist/{open-LGKX534P.js → open-3KO7UUPC.js} +17 -16
- package/dist/{parakeetRunner-FAOQMPS6.js → parakeetRunner-WX6L6MW5.js} +11 -11
- package/dist/{pipeline-2YONKZYC.js → pipeline-WYIO4KGN.js} +10 -10
- package/dist/{play-PJOUIY55.js → play-ZM3ZUJSZ.js} +31 -33
- package/dist/{policies-UPNRQ7IW.js → policies-J5BWAZHM.js} +11 -10
- package/dist/{preflight-3PPM7QBU.js → preflight-7OMCIXNM.js} +6 -6
- package/dist/{present-323D6OE2.js → present-E2PLH2GJ.js} +27 -29
- package/dist/{preview-E42QP2KX.js → preview-TVRM75FN.js} +24 -23
- package/dist/{producer-MTMNLJSC.js → producer-M5F6KZEF.js} +1 -1
- package/dist/{progress-LMQ2DXM4.js → progress-X3QFO3FE.js} +4 -4
- package/dist/{projectConfig-5QRVB5KY.js → projectConfig-VFKGY3XE.js} +6 -6
- package/dist/{prompts-P3IT5H36.js → prompts-VAO7RDKX.js} +2 -2
- package/dist/{publication-AUZLFOG5.js → publication-AF33R7LF.js} +2 -2
- package/dist/{publish-H5P7UHRV.js → publish-Z7HGDQ5R.js} +17 -17
- package/dist/{refresh-4XRQS3N6.js → refresh-IYRGLHG5.js} +5 -5
- package/dist/{remove-background-T2RV476S.js → remove-background-PN3KCBT4.js} +21 -17
- package/dist/{render-4XEB3XWI.js → render-I3HBIJX3.js} +59 -57
- package/dist/{render-GJH7446R.js → render-IZNPEXMU.js} +11 -10
- package/dist/{render-3FRGIWES.js → render-SEODWRRR.js} +27 -26
- package/dist/{render-batch-77X5453X.js → render-batch-MQSORY55.js} +12 -11
- package/dist/{resolver-DIUNK525.js → resolver-HXE4F2G4.js} +4 -4
- package/dist/{sam-FHJ7IL7T.js → sam-QA7JT7IM.js} +2 -1
- package/dist/{sherpa-SUS3YSEP.js → sherpa-NPT6S3RP.js} +10 -10
- package/dist/{sites-V42IFVTK.js → sites-MTLVMYJ6.js} +2 -2
- package/dist/{skills-YCGSIOCE.js → skills-P3BI55YP.js} +17 -13
- package/dist/{skillsUpdateCheck-VCQIZGOL.js → skillsUpdateCheck-43Q4ZHWN.js} +5 -3
- package/dist/{snapshot-H6R5PWNS.js → snapshot-YLT64YQS.js} +71 -53
- package/dist/{src-ED5VCIRC.js → src-7S7K4QUN.js} +8 -8
- package/dist/{src-HHDLJV4L.js → src-OHJ7USRX.js} +6 -4
- package/dist/{state-D5SYQFCB.js → state-6QHNNHDA.js} +2 -2
- package/dist/{staticProjectServer-VY7QG5XH.js → staticProjectServer-RP3MW2EW.js} +17 -17
- package/dist/{status-GEZNVPII.js → status-SLILCDBZ.js} +12 -7
- package/dist/studio/assets/{hyperframes-player-CzrqgMUX.js → hyperframes-player-DHfuW7Lt.js} +1 -1
- package/dist/studio/assets/{index-k4nVfS2D.js → index-CWgIsKzV.js} +4 -4
- package/dist/studio/assets/{index-B3SPHPi1.js → index-CkjUY33q.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TR5RPX57.js → studio-api-BZPZCJL6.js} +9 -9
- package/dist/{studioServer-4SZLLQOV.js → studioServer-QLRIXNYM.js} +50 -49
- package/dist/{synthesize-QALK5SQR.js → synthesize-FQML2LN2.js} +2 -2
- package/dist/{telemetry-KGY7G3UR.js → telemetry-NTO4FJFN.js} +5 -4
- package/dist/{telemetry-7HUKOQ6X.js → telemetry-QOBPRUWF.js} +6 -5
- package/dist/{timeline-CGIKWCQI.js → timeline-OLQFVWVU.js} +30 -26
- package/dist/{tokens-AZALDJEK.js → tokens-BAHLVGEC.js} +5 -4
- package/dist/{transcribe-CTF5EIXJ.js → transcribe-3NHUWW4J.js} +27 -24
- package/dist/{transcribe-V6K5547L.js → transcribe-HR6BFDUR.js} +9 -9
- package/dist/{tts-C2HBLFKK.js → tts-K5HRN6NQ.js} +17 -13
- package/dist/{updateCheck-5I563YLB.js → updateCheck-BGHPCA7J.js} +4 -2
- package/dist/{upgrade-GRPVQE7Z.js → upgrade-NFI6JOME.js} +7 -6
- package/dist/{urlDownloader-EP6Q4WES.js → urlDownloader-P35K74RS.js} +4 -4
- package/dist/{validate-TVCDSQS3.js → validate-Q57ZCI4Q.js} +26 -25
- package/dist/{video-CFEIRKAE.js → video-OO2M2AKD.js} +9 -9
- package/dist/warmCheck.js +43 -42
- package/package.json +1 -1
- package/dist/chunk-WQ6ZXHFQ.js +0 -133
package/dist/cli.js
CHANGED
|
@@ -10,15 +10,16 @@ import {
|
|
|
10
10
|
} from "./chunk-4VYPICIA.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveExtraPositionals
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OWV36OJP.js";
|
|
14
14
|
import "./chunk-K4WKGXRC.js";
|
|
15
15
|
import {
|
|
16
16
|
isRenderSucceeded
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HXZNCXQX.js";
|
|
18
18
|
import {
|
|
19
19
|
assertKnownFlags,
|
|
20
|
+
closestMatch,
|
|
20
21
|
guardSwallowedFlagValues
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FKFGGAXN.js";
|
|
22
23
|
import {
|
|
23
24
|
defineCommand
|
|
24
25
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -29,6 +30,15 @@ import {
|
|
|
29
30
|
import {
|
|
30
31
|
getRunId
|
|
31
32
|
} from "./chunk-54HJ63Q2.js";
|
|
33
|
+
import "./chunk-2GICKZ3I.js";
|
|
34
|
+
import {
|
|
35
|
+
isDevMode
|
|
36
|
+
} from "./chunk-ISN5GRYI.js";
|
|
37
|
+
import {
|
|
38
|
+
jsonErrorBody,
|
|
39
|
+
watchOutput,
|
|
40
|
+
writeJsonFailure
|
|
41
|
+
} from "./chunk-SJGE5I5F.js";
|
|
32
42
|
import {
|
|
33
43
|
CliResultSignal,
|
|
34
44
|
CliRuntimeError,
|
|
@@ -38,15 +48,11 @@ import {
|
|
|
38
48
|
outputWritten,
|
|
39
49
|
registerRootExitCodeSanitizer,
|
|
40
50
|
registerRootExitRequester
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-2GICKZ3I.js";
|
|
43
|
-
import {
|
|
44
|
-
isDevMode
|
|
45
|
-
} from "./chunk-ISN5GRYI.js";
|
|
51
|
+
} from "./chunk-DP5LF7GF.js";
|
|
46
52
|
import "./chunk-J3RXEDR2.js";
|
|
47
53
|
import {
|
|
48
54
|
VERSION
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-UXH6E5HC.js";
|
|
50
56
|
import "./chunk-G7VEYUZ2.js";
|
|
51
57
|
import "./chunk-XT6MXC7A.js";
|
|
52
58
|
import "./chunk-7KDQAD2W.js";
|
|
@@ -100,7 +106,7 @@ function guardLeafFlags(cmd, path, ctx, rawArgs) {
|
|
|
100
106
|
}
|
|
101
107
|
async function reportCommandFailure(command2, err) {
|
|
102
108
|
try {
|
|
103
|
-
const { trackCommandFailure } = await import("./events-
|
|
109
|
+
const { trackCommandFailure } = await import("./events-FN45HVPM.js");
|
|
104
110
|
trackCommandFailure(command2, err);
|
|
105
111
|
} catch {
|
|
106
112
|
}
|
|
@@ -116,14 +122,22 @@ async function loadSubcommand(command2, name) {
|
|
|
116
122
|
async function resolveCommandUsage(root, argv2) {
|
|
117
123
|
let command2 = root;
|
|
118
124
|
let parent;
|
|
125
|
+
const path = [];
|
|
119
126
|
for (const argument of argv2) {
|
|
120
127
|
if (argument.startsWith("-")) break;
|
|
121
128
|
const child = await loadSubcommand(command2, argument);
|
|
122
|
-
if (!child)
|
|
129
|
+
if (!child)
|
|
130
|
+
return {
|
|
131
|
+
command: command2,
|
|
132
|
+
parent,
|
|
133
|
+
path,
|
|
134
|
+
unknownSubcommand: command2.subCommands ? argument : void 0
|
|
135
|
+
};
|
|
123
136
|
parent = command2;
|
|
124
137
|
command2 = child;
|
|
138
|
+
path.push(argument);
|
|
125
139
|
}
|
|
126
|
-
return { command: command2, parent };
|
|
140
|
+
return { command: command2, parent, path };
|
|
127
141
|
}
|
|
128
142
|
|
|
129
143
|
// src/utils/projectShortcut.ts
|
|
@@ -162,6 +176,10 @@ for (const stream of [process.stdout, process.stderr]) {
|
|
|
162
176
|
}
|
|
163
177
|
})();
|
|
164
178
|
var argv = process.argv.slice(2);
|
|
179
|
+
if (argv[0] === "help") {
|
|
180
|
+
process.argv = [...process.argv.slice(0, 2), ...argv.slice(1), "--help"];
|
|
181
|
+
argv = process.argv.slice(2);
|
|
182
|
+
}
|
|
165
183
|
var commandArg = argv[0];
|
|
166
184
|
var rootVersionRequested = commandArg === "--version" || commandArg === "-V" || commandArg === void 0 && (argv.includes("--version") || argv.includes("-V"));
|
|
167
185
|
if (rootVersionRequested) {
|
|
@@ -197,55 +215,55 @@ async function assertStudioWorkspaceBuilt() {
|
|
|
197
215
|
});
|
|
198
216
|
}
|
|
199
217
|
var commandLoaders = {
|
|
200
|
-
init: () => import("./init-
|
|
201
|
-
add: () => import("./add-
|
|
202
|
-
catalog: () => import("./catalog-
|
|
203
|
-
"media-use": () => import("./media-use-
|
|
204
|
-
play: () => import("./play-
|
|
205
|
-
present: () => import("./present-
|
|
206
|
-
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-
|
|
207
|
-
publish: () => import("./publish-
|
|
208
|
-
open: () => import("./open-
|
|
209
|
-
"catch-up": () => import("./catch-up-
|
|
210
|
-
render: () => import("./render-
|
|
211
|
-
lint: () => import("./lint-
|
|
212
|
-
check: () => import("./check-
|
|
213
|
-
beats: () => import("./beats-
|
|
214
|
-
audio: () => import("./audio-
|
|
215
|
-
"normalize-audio": () => import("./normalize-audio-
|
|
216
|
-
inspect: () => import("./inspect-
|
|
217
|
-
keyframes: () => import("./keyframes-
|
|
218
|
-
layout: () => import("./layout-
|
|
219
|
-
info: () => import("./info-
|
|
220
|
-
compositions: () => import("./compositions-
|
|
221
|
-
timeline: () => import("./timeline-
|
|
222
|
-
history: () => import("./history-
|
|
223
|
-
benchmark: () => import("./benchmark-
|
|
224
|
-
browser: () => import("./browser-
|
|
225
|
-
"remove-background": () => import("./remove-background-
|
|
226
|
-
transcribe: () => import("./transcribe-
|
|
218
|
+
init: () => import("./init-U6EE2EIU.js").then((m) => m.default),
|
|
219
|
+
add: () => import("./add-JSM7YBQX.js").then((m) => m.default),
|
|
220
|
+
catalog: () => import("./catalog-CUP3SYAI.js").then((m) => m.default),
|
|
221
|
+
"media-use": () => import("./media-use-ZRHFRO46.js").then((m) => m.default),
|
|
222
|
+
play: () => import("./play-ZM3ZUJSZ.js").then((m) => m.default),
|
|
223
|
+
present: () => import("./present-E2PLH2GJ.js").then((m) => m.default),
|
|
224
|
+
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-TVRM75FN.js").then((m) => m.default)),
|
|
225
|
+
publish: () => import("./publish-Z7HGDQ5R.js").then((m) => m.default),
|
|
226
|
+
open: () => import("./open-3KO7UUPC.js").then((m) => m.default),
|
|
227
|
+
"catch-up": () => import("./catch-up-ZGUCWH5Q.js").then((m) => m.default),
|
|
228
|
+
render: () => import("./render-I3HBIJX3.js").then((m) => m.default),
|
|
229
|
+
lint: () => import("./lint-IAAG6Z65.js").then((m) => m.default),
|
|
230
|
+
check: () => import("./check-ITGFVBT6.js").then((m) => m.default),
|
|
231
|
+
beats: () => import("./beats-RA6XK6J5.js").then((m) => m.default),
|
|
232
|
+
audio: () => import("./audio-Y4OYLTWN.js").then((m) => m.default),
|
|
233
|
+
"normalize-audio": () => import("./normalize-audio-D5WNUNDM.js").then((m) => m.default),
|
|
234
|
+
inspect: () => import("./inspect-NI2RMUFR.js").then((m) => m.default),
|
|
235
|
+
keyframes: () => import("./keyframes-I6T2IT6I.js").then((m) => m.default),
|
|
236
|
+
layout: () => import("./layout-R2YZ4N6P.js").then((m) => m.default),
|
|
237
|
+
info: () => import("./info-36YPISVA.js").then((m) => m.default),
|
|
238
|
+
compositions: () => import("./compositions-QTFL2VNL.js").then((m) => m.default),
|
|
239
|
+
timeline: () => import("./timeline-OLQFVWVU.js").then((m) => m.default),
|
|
240
|
+
history: () => import("./history-CHJV33M5.js").then((m) => m.default),
|
|
241
|
+
benchmark: () => import("./benchmark-EHU5O4PP.js").then((m) => m.default),
|
|
242
|
+
browser: () => import("./browser-7RUIZT2H.js").then((m) => m.default),
|
|
243
|
+
"remove-background": () => import("./remove-background-PN3KCBT4.js").then((m) => m.default),
|
|
244
|
+
transcribe: () => import("./transcribe-3NHUWW4J.js").then((m) => m.default),
|
|
227
245
|
usage: () => import("./usage-772JV45U.js").then((m) => m.default),
|
|
228
|
-
models: () => import("./models-
|
|
229
|
-
tts: () => import("./tts-
|
|
230
|
-
docs: () => import("./docs-
|
|
231
|
-
doctor: () => import("./doctor-
|
|
232
|
-
clean: () => import("./clean-
|
|
233
|
-
upgrade: () => import("./upgrade-
|
|
234
|
-
skills: () => import("./skills-
|
|
235
|
-
feedback: () => import("./feedback-
|
|
236
|
-
telemetry: () => import("./telemetry-
|
|
237
|
-
events: () => import("./events-
|
|
238
|
-
validate: () => import("./validate-
|
|
239
|
-
snapshot: () => import("./snapshot-
|
|
240
|
-
"media-treatment": () => import("./media-treatment-
|
|
241
|
-
"grade-compare": () => import("./grade-compare-
|
|
242
|
-
compare: () => import("./compare-
|
|
243
|
-
capture: () => import("./capture-
|
|
244
|
-
lambda: () => import("./lambda-
|
|
245
|
-
cloudrun: () => import("./cloudrun-
|
|
246
|
-
cloud: () => import("./cloud-
|
|
247
|
-
auth: () => import("./auth-
|
|
248
|
-
figma: () => import("./figma-
|
|
246
|
+
models: () => import("./models-2Q3TGNH5.js").then((m) => m.default),
|
|
247
|
+
tts: () => import("./tts-K5HRN6NQ.js").then((m) => m.default),
|
|
248
|
+
docs: () => import("./docs-6EM6FDNI.js").then((m) => m.default),
|
|
249
|
+
doctor: () => import("./doctor-4MRS6RED.js").then((m) => m.default),
|
|
250
|
+
clean: () => import("./clean-FBZ7GHRY.js").then((m) => m.default),
|
|
251
|
+
upgrade: () => import("./upgrade-NFI6JOME.js").then((m) => m.default),
|
|
252
|
+
skills: () => import("./skills-P3BI55YP.js").then((m) => m.default),
|
|
253
|
+
feedback: () => import("./feedback-T67P2CDA.js").then((m) => m.default),
|
|
254
|
+
telemetry: () => import("./telemetry-NTO4FJFN.js").then((m) => m.default),
|
|
255
|
+
events: () => import("./events-4VBBY7PP.js").then((m) => m.default),
|
|
256
|
+
validate: () => import("./validate-Q57ZCI4Q.js").then((m) => m.default),
|
|
257
|
+
snapshot: () => import("./snapshot-YLT64YQS.js").then((m) => m.default),
|
|
258
|
+
"media-treatment": () => import("./media-treatment-E3YLZVXC.js").then((m) => m.mediaTreatmentCommand),
|
|
259
|
+
"grade-compare": () => import("./grade-compare-425BFHSF.js").then((m) => m.default),
|
|
260
|
+
compare: () => import("./compare-YR7BMEHJ.js").then((m) => m.default),
|
|
261
|
+
capture: () => import("./capture-JGYBORAG.js").then((m) => m.default),
|
|
262
|
+
lambda: () => import("./lambda-WL64Z2F3.js").then((m) => m.default),
|
|
263
|
+
cloudrun: () => import("./cloudrun-U6LI7KLV.js").then((m) => m.default),
|
|
264
|
+
cloud: () => import("./cloud-VYSWJ7UO.js").then((m) => m.default),
|
|
265
|
+
auth: () => import("./auth-MDEHZR7R.js").then((m) => m.default),
|
|
266
|
+
figma: () => import("./figma-UXAWKPOY.js").then((m) => m.default)
|
|
249
267
|
};
|
|
250
268
|
process.argv = [
|
|
251
269
|
...process.argv.slice(0, 2),
|
|
@@ -266,6 +284,7 @@ var main = defineCommand({
|
|
|
266
284
|
var cliCommandArg = process.argv[2];
|
|
267
285
|
var command = cliCommandArg && cliCommandArg in subCommands ? cliCommandArg : "unknown";
|
|
268
286
|
var hasJsonFlag = process.argv.includes("--json");
|
|
287
|
+
var jsonOutput = hasJsonFlag ? watchOutput() : void 0;
|
|
269
288
|
var _flushSync;
|
|
270
289
|
var _trackCliError;
|
|
271
290
|
var _trackCommandResult;
|
|
@@ -274,7 +293,7 @@ var _printStalePinNotice;
|
|
|
274
293
|
var _printSkillsUpdateNotice;
|
|
275
294
|
var telemetryReady = Promise.resolve();
|
|
276
295
|
if (!isHelp && command !== "telemetry" && command !== "events" && command !== "usage" && command !== "unknown") {
|
|
277
|
-
telemetryReady = import("./telemetry-
|
|
296
|
+
telemetryReady = import("./telemetry-QOBPRUWF.js").then((mod) => {
|
|
278
297
|
_flushSync = mod.flushSync;
|
|
279
298
|
_trackCliError = mod.trackCliError;
|
|
280
299
|
_trackCommandResult = mod.trackCommandResult;
|
|
@@ -285,24 +304,24 @@ if (!isHelp && command !== "telemetry" && command !== "events" && command !== "u
|
|
|
285
304
|
}
|
|
286
305
|
if (!isHelp && command !== "upgrade" && command !== "events" && command !== "telemetry" && command !== "skills" && command !== "usage") {
|
|
287
306
|
if (!hasJsonFlag) {
|
|
288
|
-
import("./autoUpdate-
|
|
307
|
+
import("./autoUpdate-3FL6EDPM.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
|
|
289
308
|
});
|
|
290
|
-
import("./updateCheck-
|
|
309
|
+
import("./updateCheck-BGHPCA7J.js").then(async (mod) => {
|
|
291
310
|
_printUpdateNotice = mod.printUpdateNotice;
|
|
292
311
|
_printStalePinNotice = mod.printStalePinNotice;
|
|
293
312
|
const result = mod.cachedUpdateCheck();
|
|
294
313
|
if (result.updateAvailable) {
|
|
295
|
-
const auto = await import("./autoUpdate-
|
|
314
|
+
const auto = await import("./autoUpdate-3FL6EDPM.js").catch(() => null);
|
|
296
315
|
auto?.scheduleBackgroundInstall(result.latest, result.current);
|
|
297
316
|
}
|
|
298
317
|
}).catch(() => {
|
|
299
318
|
});
|
|
300
319
|
}
|
|
301
|
-
import("./skillsUpdateCheck-
|
|
320
|
+
import("./skillsUpdateCheck-43Q4ZHWN.js").then((mod) => {
|
|
302
321
|
_printSkillsUpdateNotice = mod.printSkillsUpdateNotice;
|
|
303
322
|
}).catch(() => {
|
|
304
323
|
});
|
|
305
|
-
import("./backgroundChecks-
|
|
324
|
+
import("./backgroundChecks-A6TG2BT3.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
|
|
306
325
|
});
|
|
307
326
|
}
|
|
308
327
|
var _appHistoryNotice = null;
|
|
@@ -329,6 +348,10 @@ async function finalizeCli(result) {
|
|
|
329
348
|
durationMs: Date.now() - commandStart,
|
|
330
349
|
runId
|
|
331
350
|
});
|
|
351
|
+
if (result.kind !== "usage_error") printNotices();
|
|
352
|
+
process.exitCode = exitCode;
|
|
353
|
+
}
|
|
354
|
+
function printNotices() {
|
|
332
355
|
if (!hasJsonFlag) {
|
|
333
356
|
_printUpdateNotice?.();
|
|
334
357
|
_printStalePinNotice?.();
|
|
@@ -336,7 +359,6 @@ async function finalizeCli(result) {
|
|
|
336
359
|
_printSkillsUpdateNotice?.();
|
|
337
360
|
if (_appHistoryNotice) process.stderr.write(`\u25C7 ${_appHistoryNotice}
|
|
338
361
|
`);
|
|
339
|
-
process.exitCode = exitCode;
|
|
340
362
|
}
|
|
341
363
|
registerRootExitRequester((exitCode) => {
|
|
342
364
|
void finalizeCli({
|
|
@@ -422,17 +444,52 @@ process.on("unhandledRejection", (reason) => {
|
|
|
422
444
|
process.exitCode = 1;
|
|
423
445
|
emitCliErrorEvent("unhandled_rejection", error);
|
|
424
446
|
});
|
|
425
|
-
async function showUsage(cmd, parent) {
|
|
426
|
-
const { showUsage: impl } = await import("./help-
|
|
427
|
-
return impl(cmd, parent);
|
|
447
|
+
async function showUsage(cmd, parent, print) {
|
|
448
|
+
const { showUsage: impl } = await import("./help-23PPB2BD.js");
|
|
449
|
+
return impl(cmd, parent, print);
|
|
450
|
+
}
|
|
451
|
+
async function unknownCommandError(requested) {
|
|
452
|
+
const word = requested.unknownSubcommand ?? "";
|
|
453
|
+
const group = ["hyperframes", ...requested.path].join(" ");
|
|
454
|
+
const declared = requested.command.subCommands;
|
|
455
|
+
const subCommands2 = typeof declared === "function" ? await declared() : await declared;
|
|
456
|
+
const match = closestMatch(word, Object.keys(subCommands2 ?? {}));
|
|
457
|
+
console.error(`Unknown command: ${word}`);
|
|
458
|
+
if (match) console.error(`Did you mean '${group} ${match}'?`);
|
|
459
|
+
console.error("");
|
|
460
|
+
await showUsage(requested.command, requested.parent, console.error);
|
|
461
|
+
return new CliUsageError(`Unknown command: ${word}`, {
|
|
462
|
+
presented: true,
|
|
463
|
+
code: "unknown_command",
|
|
464
|
+
hint: match ? `Did you mean '${group} ${match}'?` : void 0
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
function takesPositionals(command2) {
|
|
468
|
+
const args = command2.args;
|
|
469
|
+
return typeof args === "object" && args !== null && Object.values(args).some((arg) => arg.type === "positional");
|
|
428
470
|
}
|
|
429
|
-
async function showRequestedUsage() {
|
|
471
|
+
async function showRequestedUsage(print) {
|
|
430
472
|
const requested = await resolveCommandUsage(main, argv);
|
|
431
|
-
|
|
473
|
+
if (requested.unknownSubcommand && !takesPositionals(requested.command)) {
|
|
474
|
+
throw await unknownCommandError(requested);
|
|
475
|
+
}
|
|
476
|
+
return showUsage(requested.command, requested.parent, print);
|
|
477
|
+
}
|
|
478
|
+
async function rejectUnknownTopLevelCommand() {
|
|
479
|
+
const word = argv[0];
|
|
480
|
+
if (!word || word.startsWith("-") || Object.hasOwn(subCommands, word)) return;
|
|
481
|
+
throw await unknownCommandError({
|
|
482
|
+
command: main,
|
|
483
|
+
path: [],
|
|
484
|
+
unknownSubcommand: word
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
function isCittyError(error, code) {
|
|
488
|
+
return error instanceof Error && error.name === "CLIError" && error.code === code;
|
|
432
489
|
}
|
|
433
490
|
var CITTY_USAGE_CODES = /* @__PURE__ */ new Set(["EARG", "E_UNKNOWN_COMMAND", "E_NO_COMMAND"]);
|
|
434
491
|
function isCittyUsageError(error) {
|
|
435
|
-
return
|
|
492
|
+
return [...CITTY_USAGE_CODES].some((code) => isCittyError(error, code));
|
|
436
493
|
}
|
|
437
494
|
function commandResultForError(error) {
|
|
438
495
|
if (error instanceof CliResultSignal) return error.result;
|
|
@@ -442,17 +499,23 @@ function commandResultForError(error) {
|
|
|
442
499
|
}
|
|
443
500
|
async function executeCli() {
|
|
444
501
|
let result = { exitCode: 0, kind: "success" };
|
|
502
|
+
let failure;
|
|
445
503
|
try {
|
|
446
|
-
if (isHelp) await showRequestedUsage();
|
|
447
|
-
else
|
|
448
|
-
|
|
504
|
+
if (isHelp) await showRequestedUsage(console.log);
|
|
505
|
+
else {
|
|
506
|
+
await rejectUnknownTopLevelCommand();
|
|
507
|
+
await runCommand(main, { rawArgs: argv });
|
|
508
|
+
}
|
|
509
|
+
} catch (caught) {
|
|
510
|
+
const error = isCittyError(caught, "E_UNKNOWN_COMMAND") ? await unknownCommandError(await resolveCommandUsage(main, argv)) : caught;
|
|
511
|
+
failure = error;
|
|
449
512
|
result = commandResultForError(error);
|
|
450
513
|
if (!(error instanceof CliResultSignal)) {
|
|
451
514
|
commandFailed = true;
|
|
452
515
|
await reportCommandFailure(command, error);
|
|
453
516
|
const typed = error instanceof CliUsageError || error instanceof CliRuntimeError;
|
|
454
517
|
const usage = error instanceof CliUsageError && !error.result.presented;
|
|
455
|
-
if (usage && !error.hint) await showRequestedUsage();
|
|
518
|
+
if (usage && !error.hint) await showRequestedUsage(console.error);
|
|
456
519
|
if (!typed || !error.result.presented) {
|
|
457
520
|
console.error(error instanceof Error ? error.message : String(error));
|
|
458
521
|
}
|
|
@@ -461,6 +524,9 @@ async function executeCli() {
|
|
|
461
524
|
} finally {
|
|
462
525
|
const pending = consumeCommandResult();
|
|
463
526
|
if (pending.exitCode !== 0 || result.exitCode === 0) result = pending;
|
|
527
|
+
if (jsonOutput && result.exitCode !== 0 && !jsonOutput.wroteStdout()) {
|
|
528
|
+
writeJsonFailure(jsonErrorBody(failure, result, jsonOutput.stderrText()));
|
|
529
|
+
}
|
|
464
530
|
await finalizeCli(result);
|
|
465
531
|
}
|
|
466
532
|
}
|
|
@@ -60,10 +60,10 @@ ${c.bold("AUTH:")}
|
|
|
60
60
|
var cloud_default = defineCommand({
|
|
61
61
|
meta: { name: "cloud", description: "Render HyperFrames compositions on the HeyGen cloud" },
|
|
62
62
|
subCommands: {
|
|
63
|
-
render: () => import("./render-
|
|
64
|
-
list: () => import("./list-
|
|
65
|
-
get: () => import("./get-
|
|
66
|
-
delete: () => import("./delete-
|
|
63
|
+
render: () => import("./render-SEODWRRR.js").then((m) => m.default),
|
|
64
|
+
list: () => import("./list-3O6743DJ.js").then((m) => m.default),
|
|
65
|
+
get: () => import("./get-EFH3PPJA.js").then((m) => m.default),
|
|
66
|
+
delete: () => import("./delete-2FHCQ72T.js").then((m) => m.default)
|
|
67
67
|
},
|
|
68
68
|
async run({ args }) {
|
|
69
69
|
if (!args._?.[0]) console.log(HELP);
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parseOutputResolutionFlag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5SKC4G26.js";
|
|
10
10
|
import {
|
|
11
11
|
isMissingPackageError,
|
|
12
12
|
missingPackageMessage
|
|
@@ -15,29 +15,25 @@ import {
|
|
|
15
15
|
reportVariableIssues,
|
|
16
16
|
resolveVariablesArg,
|
|
17
17
|
validateVariablesAgainstProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AJAXP4HF.js";
|
|
19
19
|
import "./chunk-ZBAF6L74.js";
|
|
20
20
|
import "./chunk-XFMO3BEN.js";
|
|
21
21
|
import {
|
|
22
22
|
defaultCloudFps
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-V6OSE6VT.js";
|
|
24
|
+
import "./chunk-5ZBMHUY2.js";
|
|
25
25
|
import {
|
|
26
26
|
defineCommand
|
|
27
27
|
} from "./chunk-DL4OD7IA.js";
|
|
28
28
|
import "./chunk-S3S4TGEH.js";
|
|
29
|
-
import {
|
|
30
|
-
failCommand,
|
|
31
|
-
failUsage
|
|
32
|
-
} from "./chunk-LALLQUSK.js";
|
|
33
29
|
import {
|
|
34
30
|
c
|
|
35
31
|
} from "./chunk-2GICKZ3I.js";
|
|
36
32
|
import {
|
|
37
33
|
DISTRIBUTED_FPS,
|
|
38
34
|
isDistributedFps
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-BYRXSKIY.js";
|
|
36
|
+
import "./chunk-W5OBRMZ6.js";
|
|
41
37
|
import "./chunk-VC76R6W2.js";
|
|
42
38
|
import "./chunk-OFQWTKPW.js";
|
|
43
39
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -51,6 +47,12 @@ import "./chunk-GWTIFRF5.js";
|
|
|
51
47
|
import "./chunk-2RY2LWAA.js";
|
|
52
48
|
import "./chunk-3422KMTD.js";
|
|
53
49
|
import "./chunk-WC4MTXGN.js";
|
|
50
|
+
import "./chunk-SJGE5I5F.js";
|
|
51
|
+
import {
|
|
52
|
+
CliUsageError,
|
|
53
|
+
failCommand,
|
|
54
|
+
failUsage
|
|
55
|
+
} from "./chunk-DP5LF7GF.js";
|
|
54
56
|
import "./chunk-J3RXEDR2.js";
|
|
55
57
|
import {
|
|
56
58
|
normalizeErrorMessage
|
|
@@ -267,7 +269,7 @@ var cloudrun_default = defineCommand({
|
|
|
267
269
|
default:
|
|
268
270
|
console.error(`${c.error("Unknown subcommand:")} ${subcommand}
|
|
269
271
|
${HELP}`);
|
|
270
|
-
|
|
272
|
+
failUsage();
|
|
271
273
|
}
|
|
272
274
|
}
|
|
273
275
|
});
|
|
@@ -456,7 +458,7 @@ async function runSites(args) {
|
|
|
456
458
|
console.error(
|
|
457
459
|
`[cloudrun sites] unknown verb "${String(args.target)}". Only "create" is supported.`
|
|
458
460
|
);
|
|
459
|
-
|
|
461
|
+
failUsage();
|
|
460
462
|
}
|
|
461
463
|
const projectDir = args.extra;
|
|
462
464
|
if (!projectDir) {
|
|
@@ -485,7 +487,7 @@ function resolveCloudRunFps(args, projectDir, command) {
|
|
|
485
487
|
console.error(
|
|
486
488
|
`[cloudrun ${command}] --fps must be one of ${DISTRIBUTED_FPS.join(", ")}; got ${fps}.`
|
|
487
489
|
);
|
|
488
|
-
|
|
490
|
+
failUsage();
|
|
489
491
|
}
|
|
490
492
|
async function runRender(args) {
|
|
491
493
|
const projectDir = args.target;
|
|
@@ -499,12 +501,13 @@ async function runRender(args) {
|
|
|
499
501
|
const height = parsePositiveInt(args.height, "--height");
|
|
500
502
|
if (width === void 0 || height === void 0) {
|
|
501
503
|
console.error("[cloudrun render] --width and --height are required.");
|
|
502
|
-
|
|
504
|
+
failUsage();
|
|
503
505
|
}
|
|
504
506
|
const fps = resolveCloudRunFps(args, projectDir, "render");
|
|
505
|
-
const state = readState(args);
|
|
506
507
|
const variables = resolveAndValidateVariables(args, resolve(projectDir));
|
|
507
508
|
const config = buildRenderConfig(args, fps, width, height, variables);
|
|
509
|
+
const intervalMs = parsePositiveInt(args["wait-interval-ms"], "--wait-interval-ms") ?? 5e3;
|
|
510
|
+
const state = readState(args);
|
|
508
511
|
const { renderToCloudRun, getRenderProgress } = await loadCloudRunAdapter();
|
|
509
512
|
const handle = await renderToCloudRun({
|
|
510
513
|
projectDir: resolve(projectDir),
|
|
@@ -528,7 +531,6 @@ async function runRender(args) {
|
|
|
528
531
|
}
|
|
529
532
|
return;
|
|
530
533
|
}
|
|
531
|
-
const intervalMs = parsePositiveInt(args["wait-interval-ms"], "--wait-interval-ms") ?? 5e3;
|
|
532
534
|
let progress = await getRenderProgress({ executionName: handle.executionName });
|
|
533
535
|
while (progress.status === "running") {
|
|
534
536
|
await new Promise((r) => setTimeout(r, intervalMs));
|
|
@@ -581,9 +583,10 @@ async function runRenderBatch(args) {
|
|
|
581
583
|
const height = parsePositiveInt(args.height, "--height");
|
|
582
584
|
if (width === void 0 || height === void 0) {
|
|
583
585
|
console.error("[cloudrun render-batch] --width and --height are required.");
|
|
584
|
-
|
|
586
|
+
failUsage();
|
|
585
587
|
}
|
|
586
588
|
const fps = resolveCloudRunFps(args, projectDir, "render-batch");
|
|
589
|
+
buildRenderConfig(args, fps, width, height, void 0);
|
|
587
590
|
if (!existsSync(resolve(batchPath))) {
|
|
588
591
|
console.error(`[cloudrun render-batch] batch file not found: ${batchPath}`);
|
|
589
592
|
failCommand();
|
|
@@ -603,8 +606,8 @@ async function runRenderBatch(args) {
|
|
|
603
606
|
console.log(JSON.stringify(manifest, null, 2));
|
|
604
607
|
return;
|
|
605
608
|
}
|
|
606
|
-
const state = readState(args);
|
|
607
609
|
const maxConcurrent = parsePositiveInt(args["max-concurrent"], "--max-concurrent") ?? DEFAULT_BATCH_MAX_CONCURRENT;
|
|
610
|
+
const state = readState(args);
|
|
608
611
|
const { deploySite, renderToCloudRun } = await loadCloudRunAdapter();
|
|
609
612
|
const siteHandle = await deploySite({
|
|
610
613
|
projectDir: resolve(projectDir),
|
|
@@ -754,7 +757,7 @@ function parsePositiveInt(raw, flagName) {
|
|
|
754
757
|
const n = parseIntFlag(raw);
|
|
755
758
|
if (n === void 0) return void 0;
|
|
756
759
|
if (!Number.isInteger(n) || n < 1) {
|
|
757
|
-
throw new
|
|
760
|
+
throw new CliUsageError(`[cloudrun] ${flagName} must be a positive integer; got ${n}`);
|
|
758
761
|
}
|
|
759
762
|
return n;
|
|
760
763
|
}
|
|
@@ -762,7 +765,7 @@ function parseEnum(raw, allowed, errorPrefix, defaultValue) {
|
|
|
762
765
|
if (raw === void 0 || raw === null || raw === "") return defaultValue;
|
|
763
766
|
const s = String(raw);
|
|
764
767
|
if (allowed.includes(s)) return s;
|
|
765
|
-
throw new
|
|
768
|
+
throw new CliUsageError(`${errorPrefix} must be ${allowed.join("|")}; got ${s}`);
|
|
766
769
|
}
|
|
767
770
|
var FORMATS = ["mp4", "mov", "png-sequence", "webm"];
|
|
768
771
|
var CODECS = ["h264", "h265"];
|