hyperframes 0.9.7 → 0.9.8
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-WLXYFHMC.js → add-KCOZUTMS.js} +11 -11
- package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-P75AWDLA.js} +5 -5
- package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-OBZTJQ7X.js} +5 -5
- package/dist/api.js +19 -18
- package/dist/{asset-UQBTWAMJ.js → asset-N3A7GB3E.js} +2 -2
- package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-OQYRQZLW.js} +6 -6
- package/dist/{audio-LDVXMRHU.js → audio-KCKNENFH.js} +16 -16
- package/dist/{auth-6LVATNTF.js → auth-Y72WHJCW.js} +1 -1
- package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-DLNFGTN2.js} +2 -2
- package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-EFVHAYNQ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4ISYYVPQ.js → batchRender-JKOGFHLU.js} +3 -3
- package/dist/{beats-WN2KYIK3.js → beats-RIKKG4N7.js} +7 -7
- package/dist/{benchmark-HZPGQ2MP.js → benchmark-7TCK3SGH.js} +8 -8
- package/dist/{billing-3Q2EAZFJ.js → billing-JBG45ON2.js} +11 -1
- package/dist/{browser-6XC7MTQL.js → browser-4BF7NKPF.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-PAWHGZRW.js} +2 -2
- package/dist/{capture-46LJ2VU2.js → capture-5PZTT5O7.js} +3 -3
- package/dist/{capture-FCLAEX5L.js → capture-H7UDNHF2.js} +10 -10
- package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-LR2XKVKX.js} +10 -10
- package/dist/{catalog-72AEDDEG.js → catalog-4W5XDIKM.js} +11 -11
- package/dist/{catch-up-6WIX7SWV.js → catch-up-H2Y2WRIA.js} +4 -4
- package/dist/{check-R2G5OYIA.js → check-NG6FULCN.js} +35 -35
- package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-HI5ICPRV.js} +8 -8
- package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-YPPMCXET.js} +29 -29
- package/dist/{chunk-XKTLYF4N.js → chunk-2MUWGYXQ.js} +17 -17
- package/dist/{chunk-2BARV2ZU.js → chunk-2ZQ7BZOS.js} +2 -2
- package/dist/{chunk-3AH6KE6F.js → chunk-3BCLDK6O.js} +19 -12
- package/dist/{chunk-XXEOJXXY.js → chunk-3LLFF6EE.js} +1 -1
- package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
- package/dist/{chunk-SIJYH7XM.js → chunk-3YZ3LNXV.js} +1 -1
- package/dist/{chunk-X4K7Q5PT.js → chunk-457LNKMV.js} +1 -1
- package/dist/{chunk-SE6O4APZ.js → chunk-4MDLXE3N.js} +1 -1
- package/dist/{chunk-XFA6NPMP.js → chunk-4WJKSTDS.js} +2 -2
- package/dist/{chunk-PYWJGSWO.js → chunk-5D23BECZ.js} +1 -1
- package/dist/{chunk-KDTOB4TD.js → chunk-5SCOPSVL.js} +1 -1
- package/dist/{chunk-GBEGZOP3.js → chunk-6A4RAHMF.js} +1 -1
- package/dist/{chunk-3Q7UFKFN.js → chunk-6CEQCL6O.js} +3 -3
- package/dist/{chunk-QXUDHDJU.js → chunk-6DTXWYZA.js} +7 -7
- package/dist/{chunk-SXGXJAA7.js → chunk-6RD46YOJ.js} +1 -1
- package/dist/{chunk-N6O2RQLQ.js → chunk-6ZICZOMN.js} +1 -1
- package/dist/{chunk-HZG42ZYW.js → chunk-7DQHV322.js} +3 -3
- package/dist/{chunk-RWHCRVZV.js → chunk-7HRQOEYY.js} +4 -4
- package/dist/{chunk-P7CVKVPD.js → chunk-7TAS4BNT.js} +2 -2
- package/dist/{chunk-LCDXHXYH.js → chunk-7VHS56BT.js} +2 -2
- package/dist/{chunk-FYDFHW22.js → chunk-AC3TSGGG.js} +13 -13
- package/dist/{chunk-KD22R2UE.js → chunk-BCQ42FAS.js} +3 -3
- package/dist/{chunk-IOECRDWX.js → chunk-BUYV2WGV.js} +1 -1
- package/dist/{chunk-IX3R4BKU.js → chunk-CCFSUSAE.js} +1 -1
- package/dist/{chunk-EG7FZSEF.js → chunk-CUR5UYYJ.js} +1 -1
- package/dist/{chunk-RJ6LXDUC.js → chunk-D7THUO4V.js} +1 -1
- package/dist/{chunk-RY7Z6KFS.js → chunk-DHIXDUET.js} +4 -4
- package/dist/{chunk-E4XS2M2E.js → chunk-DT6NGXSS.js} +1 -1
- package/dist/{chunk-7LCZBNX7.js → chunk-E2SVAOS6.js} +1 -1
- package/dist/{chunk-GK3OROLS.js → chunk-ECJCBLME.js} +1 -1
- package/dist/{chunk-SEJ7UBR2.js → chunk-F6GJUCIY.js} +2 -2
- package/dist/{chunk-DZNJD7BH.js → chunk-FNNNGI42.js} +1 -1
- package/dist/{chunk-CE7EQUBV.js → chunk-GSNSSFT7.js} +1 -1
- package/dist/{chunk-UQH3MOES.js → chunk-GSZAUB3W.js} +2 -2
- package/dist/{chunk-V6MZZEA7.js → chunk-GZZE2OJP.js} +44 -46
- package/dist/{chunk-LAZREIJF.js → chunk-H4D2X5N3.js} +1 -1
- package/dist/{chunk-ZVERYNYS.js → chunk-HFNB2CG3.js} +1 -1
- package/dist/{chunk-OO7U23BR.js → chunk-HVBQL3PZ.js} +1 -1
- package/dist/{chunk-TBCRTIXP.js → chunk-JCOECSLT.js} +2 -2
- package/dist/{chunk-3LHJHMFK.js → chunk-JP2ZSFRJ.js} +1 -1
- package/dist/{chunk-2X43RFKM.js → chunk-K6QVKO7M.js} +1 -1
- package/dist/{chunk-X2PPRHKO.js → chunk-KKPYNKZD.js} +1 -1
- package/dist/{chunk-HBCY63DS.js → chunk-L3ZVUQGN.js} +2 -2
- package/dist/{chunk-DOS6S7HW.js → chunk-MNX7CK5N.js} +1 -1
- package/dist/{chunk-OUZSRPKC.js → chunk-N3CZ437C.js} +1 -1
- package/dist/{chunk-AWQE37H3.js → chunk-NST5G3WX.js} +2 -2
- package/dist/{chunk-P73MHFBX.js → chunk-NU5LJYAT.js} +1 -1
- package/dist/{chunk-IAZ2A7D6.js → chunk-NUFOXUDF.js} +2 -2
- package/dist/{chunk-WAURLEUO.js → chunk-ODIGIQ4C.js} +3 -3
- package/dist/{chunk-NFNYH6VQ.js → chunk-OYN54RSU.js} +2 -2
- package/dist/{chunk-XEP7PGXS.js → chunk-QPTQSM3D.js} +1 -1
- package/dist/{chunk-YHO5SKUR.js → chunk-QTEU6NL3.js} +5 -5
- package/dist/{chunk-HRSZOW3U.js → chunk-RGYPRUQP.js} +1 -1
- package/dist/{chunk-PPNA6EBI.js → chunk-RPVL65M7.js} +1 -1
- package/dist/{chunk-CX6MGY2B.js → chunk-RULCW25D.js} +12 -12
- package/dist/{chunk-NEI65CWG.js → chunk-RWQANKWK.js} +2 -2
- package/dist/{chunk-TSCO4XR4.js → chunk-SACHIPZP.js} +1 -1
- package/dist/{chunk-7XRS2NDR.js → chunk-SBA4NG7Q.js} +7 -7
- package/dist/{chunk-C7XW5WPZ.js → chunk-TDIYINK6.js} +2 -2
- package/dist/{chunk-PUMQDN2T.js → chunk-THSTFHB7.js} +1 -1
- package/dist/{chunk-46HMQ4I3.js → chunk-TLBSOI2R.js} +1 -1
- package/dist/{chunk-3YJB4QVS.js → chunk-TODLF56D.js} +1 -1
- package/dist/{chunk-WZGVBZY6.js → chunk-UPN4UMT7.js} +1 -1
- package/dist/{chunk-X3DTUYKZ.js → chunk-UQDO2L6F.js} +17 -10
- package/dist/{chunk-CTPYBHF3.js → chunk-UUW654GD.js} +2 -2
- package/dist/{chunk-Y2R4N6HQ.js → chunk-VKWAW4JW.js} +14 -9
- package/dist/{chunk-FLDSZTHP.js → chunk-VLHCR3G2.js} +2 -2
- package/dist/{chunk-LIA4GZ4F.js → chunk-VX3JUOZ6.js} +2 -2
- package/dist/{chunk-E3IBPTX7.js → chunk-W5VDIXYL.js} +1 -1
- package/dist/{chunk-CUCDUPTA.js → chunk-WF4TXIXY.js} +1 -1
- package/dist/{chunk-LFDPOL45.js → chunk-WVH6VWMY.js} +2 -2
- package/dist/{chunk-IXGZ6YFZ.js → chunk-WY4J37EZ.js} +3 -3
- package/dist/{chunk-ULH6TLE3.js → chunk-X422IJKF.js} +1 -1
- package/dist/{chunk-C3FKYBZ4.js → chunk-XPN7SDFQ.js} +9 -9
- package/dist/{chunk-6IW2HWYI.js → chunk-Y3RERZRQ.js} +1 -1
- package/dist/{chunk-T252SG67.js → chunk-YXIXTFRO.js} +2 -2
- package/dist/{chunk-UDY3FS6G.js → chunk-ZAOQWCZM.js} +9 -9
- package/dist/{chunk-YTWTG67C.js → chunk-ZAXAT2D7.js} +4 -4
- package/dist/{chunk-PG356QHK.js → chunk-ZJ5ZLU2I.js} +2 -2
- package/dist/{chunk-FYR2GKAA.js → chunk-ZK3GFNHM.js} +15 -10
- package/dist/{clean-52TVJH4U.js → clean-VPOP4TU4.js} +15 -15
- package/dist/cli.js +58 -58
- package/dist/{cloud-FEPPMA5F.js → cloud-Q7ZXCZ6E.js} +4 -4
- package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-6DVAE7GG.js} +4 -4
- package/dist/{compare-UBQUKWOB.js → compare-X5SWN5XJ.js} +26 -26
- package/dist/{compiler-UCJ4KC75.js → compiler-N4TTEEQC.js} +2 -2
- package/dist/{component-6YUQ2XAM.js → component-MJXAMRKF.js} +3 -3
- package/dist/{compositions-KGZO4UYR.js → compositions-F3ZHG5F4.js} +9 -9
- package/dist/{curve-VISYHZKL.js → curve-4TWENQO7.js} +9 -9
- package/dist/{cuts-HCWYCBI2.js → cuts-X3LE5A2K.js} +10 -10
- package/dist/{delete-CNKHLEDS.js → delete-MYHKF3MS.js} +4 -4
- package/dist/{deploy-TS3R7DTD.js → deploy-OP2BHWCQ.js} +1 -1
- package/dist/{describeProject-6TNE4FY4.js → describeProject-ZMKVHAYX.js} +6 -6
- package/dist/{diff-YRBYR56R.js → diff-7ZNSFBKV.js} +21 -20
- package/dist/{dist-T57O7KXT.js → dist-SWPSKAAJ.js} +2 -2
- package/dist/{doctor-PLA77GFC.js → doctor-ABSXYNXY.js} +9 -9
- package/dist/{energy-7BTNGNR7.js → energy-X2OAWHME.js} +10 -10
- package/dist/{events-QTM2OEFB.js → events-26SWSHDR.js} +2 -2
- package/dist/{events-IMWCEFSZ.js → events-4MDK4K7Q.js} +3 -3
- package/dist/{events-25FIG2O6.js → events-JFIZSYMH.js} +12 -12
- package/dist/{extract-C66C5A22.js → extract-4O3Q3LOD.js} +10 -10
- package/dist/{face-MDOI2JO5.js → face-7J7AQJDY.js} +10 -10
- package/dist/{feedback-26OSAZF3.js → feedback-CVTJDQIX.js} +6 -6
- package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-EE2NKQT4.js} +5 -5
- package/dist/{figma-276JAPS4.js → figma-55J7UDDC.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-AMLBNI5B.js → frames-OZLUDUOS.js} +11 -11
- package/dist/{generate-YIZS4JFA.js → generate-CY2TRPRE.js} +13 -12
- package/dist/{get-HFEFIRAJ.js → get-HJHSVKGK.js} +4 -4
- package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-LZFNAIJB.js} +5 -5
- package/dist/{grade-compare-7NH6XYIY.js → grade-compare-JVTYF2T6.js} +27 -27
- package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-OGFEQMQT.js} +6 -6
- package/dist/{help-HHIAUMBQ.js → help-6WDI76YU.js} +1 -1
- package/dist/{history-SLWPRU6Q.js → history-FIP5NGFC.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +17 -17
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-MIPROXSM.js → info-WTGJE4QB.js} +7 -7
- package/dist/{init-T56UGI6Z.js → init-UYTDM56U.js} +25 -25
- package/dist/{ink-TY7CKC6Q.js → ink-BTLAE3ZR.js} +10 -10
- package/dist/{inspect-TIF7YHGN.js → inspect-KIMJNTS4.js} +27 -27
- package/dist/{installer-72QUKTPE.js → installer-6GSD3CVW.js} +4 -4
- package/dist/{keyframes-I4JRA37J.js → keyframes-74LK522L.js} +6 -6
- package/dist/{lambda-VGFSEG56.js → lambda-CJ7P5NLO.js} +9 -9
- package/dist/{layout-K776Z2IS.js → layout-RLIXTM56.js} +27 -27
- package/dist/{lint-XLTSC66T.js → lint-IOJB746U.js} +6 -6
- package/dist/{list-6V3IKLXF.js → list-V3TMQEQV.js} +4 -4
- package/dist/{localPage-RM6EXBBT.js → localPage-5LUCH2RM.js} +5 -5
- package/dist/{login-HD47X3JE.js → login-GNVKQO3W.js} +4 -4
- package/dist/{look-KUDJYDTK.js → look-3QZIJFNX.js} +10 -10
- package/dist/{manager-TUKVGY7O.js → manager-3QTARUMT.js} +6 -6
- package/dist/{measure-6BRNY3II.js → measure-7LUYTL2E.js} +11 -11
- package/dist/{media-treatment-MLME5LNQ.js → media-treatment-MYDIYP5I.js} +11 -11
- package/dist/{media-use-3YTDQKGR.js → media-use-UDBHEIYA.js} +1 -1
- package/dist/{models-IUX642FY.js → models-S5CT7CST.js} +9 -9
- package/dist/{motionShot-INNVFSPU.js → motionShot-U3TSHI33.js} +13 -13
- package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-ZETO53KI.js} +8 -8
- package/dist/{open-FDQ3NDSX.js → open-UEJMPEPN.js} +11 -11
- package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-2KFML7ZA.js} +10 -10
- package/dist/{pipeline-V3TOATHS.js → pipeline-2TPI5L2C.js} +8 -8
- package/dist/{play-5WIU4CZL.js → play-XH2XKNCL.js} +18 -18
- package/dist/{preflight-JXEVL63B.js → preflight-L5P4QXXH.js} +6 -6
- package/dist/{present-UHWGVCP4.js → present-XXEU7RTN.js} +14 -14
- package/dist/{preview-W75P6D7E.js → preview-V6LNVTBH.js} +16 -16
- package/dist/{probe-O2ADL5FX.js → probe-JL4JSTSP.js} +10 -10
- package/dist/{producer-6GQQQT7M.js → producer-RLZ64COI.js} +1 -1
- package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-3IK4M62D.js} +6 -6
- package/dist/{publication-YRVC6D56.js → publication-4I6P772E.js} +2 -2
- package/dist/{publish-4IN3WW5G.js → publish-TOPACGPR.js} +8 -8
- package/dist/{remove-background-L4KWXVMH.js → remove-background-CNXM4XJN.js} +9 -9
- package/dist/{render-73VGDCCH.js → render-OD3XEIBG.js} +5 -5
- package/dist/{render-GZ4DBQ5E.js → render-WCLJ4GPZ.js} +21 -21
- package/dist/{render-IP7KBRD7.js → render-XAE2YCRZ.js} +30 -30
- package/dist/{render-batch-RX3TJ4NY.js → render-batch-QM4SW65U.js} +5 -5
- package/dist/{resolver-SNTBG6O2.js → resolver-K2UZSBCZ.js} +4 -4
- package/dist/{reverse-5SHT4TC6.js → reverse-JGOZUFKK.js} +1 -1
- package/dist/{run-GV6MEM2M.js → run-2JI4VCW5.js} +3 -3
- package/dist/{sherpa-LJJHQNQ6.js → sherpa-OIJBFCKZ.js} +9 -9
- package/dist/{skills-NVNRQU7K.js → skills-L4AWBUJJ.js} +5 -5
- package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-GSX5MLON.js} +3 -3
- package/dist/{snapshot-75S4SIRK.js → snapshot-5FK3HCJ7.js} +31 -31
- package/dist/{src-MTLH4YHV.js → src-HKLKN7AE.js} +4 -4
- package/dist/{src-KS6W3WRC.js → src-JT324RDD.js} +7 -7
- package/dist/{start-4UCLBL76.js → start-5O33EGN2.js} +27 -20
- package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-CWKMUI6O.js} +16 -16
- package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-D7kdypzS.js} +1 -1
- package/dist/studio/assets/{index-CKnGNPHF.js → index-BT1zmedz.js} +1 -1
- package/dist/studio/assets/{index-CdWK2GVp.js → index-CaOrmH_8.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-447CJUUM.js → studio-api-24HJ5KQX.js} +8 -8
- package/dist/{studioServer-TMPKQRQA.js → studioServer-KKGBELBR.js} +45 -45
- package/dist/{sync-V456U5AA.js → sync-BT4WDK3B.js} +10 -10
- package/dist/{telemetry-NK6K3VRH.js → telemetry-77PW2F7B.js} +3 -3
- package/dist/{timeline-M5URP7QS.js → timeline-RKJ63VIU.js} +16 -16
- package/dist/{tokens-5OIFB4MD.js → tokens-JATS65YH.js} +2 -2
- package/dist/{transcribe-ON5WTZV3.js → transcribe-ELWJ6NYG.js} +8 -8
- package/dist/{transcribe-N3E7T7AW.js → transcribe-FYBJBBP3.js} +17 -16
- package/dist/{updateCheck-JQOAKPNR.js → updateCheck-NU374MVC.js} +2 -2
- package/dist/{upgrade-737POFN4.js → upgrade-VIWR25J6.js} +2 -2
- package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-MVZYN7XB.js} +4 -4
- package/dist/{validate-6IPCQFXI.js → validate-3HM2XCH4.js} +21 -21
- package/dist/{video-BEZHDPH2.js → video-H4ASUN7D.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H4D2X5N3.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NUFOXUDF.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RGYPRUQP.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6ZICZOMN.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -9,7 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-QXVW22VM.js";
|
|
10
10
|
import {
|
|
11
11
|
Fix
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D7THUO4V.js";
|
|
13
|
+
import {
|
|
14
|
+
HyperframesApiError,
|
|
15
|
+
HyperframesCloudClient
|
|
16
|
+
} from "./chunk-3XJM7XZN.js";
|
|
13
17
|
import {
|
|
14
18
|
refreshIfNeeded,
|
|
15
19
|
resolveCloudAuthHeaders,
|
|
@@ -115,39 +119,26 @@ function refusal(status, body, estimate) {
|
|
|
115
119
|
"fix the request it names, then run again"
|
|
116
120
|
);
|
|
117
121
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (body !== void 0) headers["content-type"] = "application/json";
|
|
124
|
-
if (key) headers["Idempotency-Key"] = key;
|
|
125
|
-
let res;
|
|
122
|
+
var clientFor = (auth) => new HyperframesCloudClient({ baseUrl: resolveCloudBaseUrl(), getAuthHeaders: () => auth });
|
|
123
|
+
var resume = "run the same command again: it resumes the same job";
|
|
124
|
+
async function call(route, send, timeoutMs, estimate, auth) {
|
|
125
|
+
const client = clientFor(auth ?? await resolveCloudAuthHeaders().catch(noSignIn));
|
|
126
|
+
let data;
|
|
126
127
|
try {
|
|
127
|
-
|
|
128
|
-
method,
|
|
129
|
-
headers,
|
|
130
|
-
...body !== void 0 ? { body: JSON.stringify(body) } : {},
|
|
131
|
-
signal: AbortSignal.timeout(method === "POST" ? 18e4 : 3e4)
|
|
132
|
-
});
|
|
128
|
+
data = await send(client, AbortSignal.timeout(timeoutMs));
|
|
133
129
|
} catch (err) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"run the same command again: it resumes the same job"
|
|
144
|
-
);
|
|
145
|
-
if (!res.ok) {
|
|
146
|
-
const refused = refusal(res.status, value, estimate);
|
|
147
|
-
refused.status = res.status;
|
|
130
|
+
if (!(err instanceof HyperframesApiError))
|
|
131
|
+
throw new Fix(
|
|
132
|
+
`no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
|
|
133
|
+
resume
|
|
134
|
+
);
|
|
135
|
+
if (err.status >= 500 || err.status < 300 || err.raw == null)
|
|
136
|
+
throw new Fix(`HeyGen ${err.status} for ${route} with no readable answer`, resume);
|
|
137
|
+
const refused = refusal(err.status, err.raw, estimate);
|
|
138
|
+
refused.status = err.status;
|
|
148
139
|
throw refused;
|
|
149
140
|
}
|
|
150
|
-
|
|
141
|
+
if (data == null) throw new Fix(`HeyGen answered ${route} with no readable answer`, resume);
|
|
151
142
|
if (!isRecord(data))
|
|
152
143
|
throw new Fix(`HeyGen answered ${route} with no job`, "run the same command again");
|
|
153
144
|
const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id;
|
|
@@ -167,19 +158,27 @@ function log(entry, record) {
|
|
|
167
158
|
`
|
|
168
159
|
);
|
|
169
160
|
}
|
|
170
|
-
async function runJob(
|
|
161
|
+
async function runJob(jobRoute, body, key, opts = {}) {
|
|
171
162
|
const started = Date.now();
|
|
163
|
+
const route = jobRoute.path;
|
|
172
164
|
const { auth, scope } = await jobSender();
|
|
173
165
|
const sent = liveKey(key, scope);
|
|
174
166
|
let job;
|
|
175
167
|
try {
|
|
176
|
-
job = await call(
|
|
168
|
+
job = await call(
|
|
169
|
+
route,
|
|
170
|
+
(client, signal) => jobRoute.start(client, body, sent, signal),
|
|
171
|
+
18e4,
|
|
172
|
+
opts.credits,
|
|
173
|
+
auth
|
|
174
|
+
);
|
|
177
175
|
} catch (err) {
|
|
178
176
|
if (err instanceof Refused && !KEEPS_KEY.has(err.status)) markFailed(sent, scope);
|
|
179
177
|
throw err;
|
|
180
178
|
}
|
|
181
179
|
if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
|
|
182
|
-
|
|
180
|
+
const status = jobRoute.status;
|
|
181
|
+
while (status && RUNNING.has(job.status.toLowerCase())) {
|
|
183
182
|
if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
|
|
184
183
|
throw new Fix(
|
|
185
184
|
`HeyGen job ${job.id} is still ${job.status}`,
|
|
@@ -187,7 +186,12 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
|
|
|
187
186
|
);
|
|
188
187
|
opts.onWait?.(job);
|
|
189
188
|
await new Promise((r) => setTimeout(r, opts.intervalMs ?? 5e3));
|
|
190
|
-
|
|
189
|
+
const id = job.id;
|
|
190
|
+
job = await call(
|
|
191
|
+
`${route}/${encodeURIComponent(id)}`,
|
|
192
|
+
(client, signal) => status(client, id, signal),
|
|
193
|
+
3e4
|
|
194
|
+
);
|
|
191
195
|
}
|
|
192
196
|
if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
|
|
193
197
|
if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
|
|
@@ -200,23 +204,17 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
|
|
|
200
204
|
}
|
|
201
205
|
var isVoice = (v) => isRecord(v) && typeof v.voice_id === "string" && typeof v.name === "string";
|
|
202
206
|
async function publicVoices(language, limit) {
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
const query = new URLSearchParams({ type: "public", language, limit: String(limit) });
|
|
208
|
-
const res = await fetch(`${resolveCloudBaseUrl()}/v3/voices?${query}`, {
|
|
209
|
-
headers,
|
|
210
|
-
signal: AbortSignal.timeout(3e4)
|
|
211
|
-
}).catch((err) => {
|
|
207
|
+
const client = clientFor(await resolveCloudAuthHeaders().catch(noSignIn));
|
|
208
|
+
const value = await client.listVoicesV3({ type: "public", language, limit, signal: AbortSignal.timeout(3e4) }).catch((err) => {
|
|
209
|
+
if (err instanceof HyperframesApiError)
|
|
210
|
+
throw new Fix(`HeyGen ${err.status} listing its voices`, "run the same command again");
|
|
212
211
|
throw new Fix(
|
|
213
212
|
`no answer from HeyGen for its voices (${err instanceof Error ? err.message : String(err)})`,
|
|
214
213
|
"run the same command again"
|
|
215
214
|
);
|
|
216
215
|
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
throw new Fix(`HeyGen ${res.status} listing its voices`, "run the same command again");
|
|
216
|
+
if (!isRecord(value) || !Array.isArray(value.data))
|
|
217
|
+
throw new Fix("HeyGen answered its voices with no list", "run the same command again");
|
|
220
218
|
return value.data.filter(isVoice).map(({ voice_id, name, language: language2, gender }) => ({ voice_id, name, language: language2, gender }));
|
|
221
219
|
}
|
|
222
220
|
async function senderScope() {
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-4MDK4K7Q.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7TAS4BNT.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
oneProcessOverPipe,
|
|
16
16
|
pipeLaunchClosedOnMac,
|
|
17
17
|
sandboxDeniedRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NUFOXUDF.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X422IJKF.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-WVRAFHJU.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-N4TTEEQC.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -6,7 +6,7 @@ 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-QPTQSM3D.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-T5ELONXY.js";
|