hyperframes 0.8.214 → 0.8.217
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-U2N4ZWNB.js → add-AXTSRFNT.js} +19 -16
- package/dist/{agentPromptGenerator-EK7NEFV6.js → agentPromptGenerator-52346WSZ.js} +8 -7
- package/dist/{animatedGifPrep-X3FLFGCC.js → animatedGifPrep-WZHO7ZUA.js} +8 -7
- package/dist/api.js +19 -18
- package/dist/{asset-3CSXQ7JI.js → asset-T2CE34TV.js} +2 -2
- package/dist/{assetCataloger-FG2VTSSR.js → assetCataloger-2KABZLU3.js} +9 -8
- package/dist/{audio-US7IUDFM.js → audio-6I2AK3TZ.js} +179 -63
- package/dist/{auth-IMXNGPGR.js → auth-B3LLOMAG.js} +4 -4
- package/dist/{autoUpdate-IGZP5HIX.js → autoUpdate-TTY4BTMM.js} +5 -4
- package/dist/{backgroundChecks-UGU6SRCU.js → backgroundChecks-WKW5CTCV.js} +6 -5
- package/dist/backgroundChecksWorker.js +7 -6
- package/dist/{batchRender-5JS4SAGR.js → batchRender-ESAPNTE3.js} +4 -4
- package/dist/{beats-2F7ZW7QB.js → beats-5WAAC5HT.js} +25 -19
- package/dist/{benchmark-Y25FBDO7.js → benchmark-KFYDNWZ7.js} +16 -13
- package/dist/{browser-43AS35ZL.js → browser-LK4FYQXO.js} +12 -9
- package/dist/{bundleWithLocalizedFonts-6VHTVRO3.js → bundleWithLocalizedFonts-NRY45OIW.js} +2 -2
- package/dist/{capture-CMP4DHPY.js → capture-DXRZI2WW.js} +19 -18
- package/dist/{capture-N5AMWY4S.js → capture-SCXKM2WO.js} +3 -3
- package/dist/{captureCompositionFrame-PQT4GNR2.js → captureCompositionFrame-NDQEZBHR.js} +14 -13
- package/dist/{catalog-SZPWUZ75.js → catalog-7WRGMHVI.js} +20 -17
- package/dist/{catch-up-OYYHR2UB.js → catch-up-6QEJHTFF.js} +12 -9
- package/dist/{check-MBW4AYV6.js → check-HNONMHQD.js} +45 -42
- package/dist/{checkAudio-DIJNBWAF.js → checkAudio-OLNSZWWX.js} +12 -11
- package/dist/{checkBrowser-NYBDUAT2.js → checkBrowser-L2L2EEJD.js} +38 -35
- package/dist/{chunk-LBS4AS7G.js → chunk-2JUNPJUM.js} +2 -2
- package/dist/{chunk-4HMG5CQJ.js → chunk-2Q4CL6AB.js} +1 -1
- package/dist/{chunk-CATLCEDQ.js → chunk-3C6O5HV2.js} +13 -13
- package/dist/{chunk-6LDHXB4Z.js → chunk-3F2DTPBD.js} +3 -2
- package/dist/{chunk-DFQM3XMK.js → chunk-3MUFCWGK.js} +5 -5
- package/dist/{chunk-VC6GEQ7P.js → chunk-3YCAGPZK.js} +72 -31
- package/dist/{chunk-MZHYAXUV.js → chunk-42K4JLQO.js} +1 -1
- package/dist/chunk-4I7KQWZS.js +5061 -0
- package/dist/{chunk-ZMKRQ4HE.js → chunk-4JHZBIBW.js} +3 -3
- package/dist/chunk-4WEWHZZO.js +24 -0
- package/dist/{chunk-53ERMOK2.js → chunk-5CXGDO74.js} +2 -2
- package/dist/{chunk-245CC6JT.js → chunk-5HGUY24Y.js} +1 -1
- package/dist/{chunk-LRYNDYAE.js → chunk-5SZ2HRCW.js} +1 -1
- package/dist/{chunk-GRCS7WRH.js → chunk-5XDKFCEI.js} +9 -9
- package/dist/{chunk-3AAAA3KH.js → chunk-62ER6HGC.js} +3 -3
- package/dist/{chunk-ZXQNWUDY.js → chunk-64TWYU4M.js} +8 -8
- package/dist/{chunk-BRTWBGFE.js → chunk-6YGTOBXW.js} +1 -1
- package/dist/{chunk-GFA5ZCVI.js → chunk-AU7VGKCP.js} +7 -3
- package/dist/{chunk-ZCHULPJZ.js → chunk-BLBMPEBX.js} +6 -0
- package/dist/{chunk-K4WIOZFP.js → chunk-BR2JQQC5.js} +3 -5
- package/dist/{chunk-VEWR5HXT.js → chunk-BRYOYBO5.js} +1 -1
- package/dist/{chunk-G6HUXX3L.js → chunk-CBCZBHGK.js} +4 -2
- package/dist/{chunk-TNKPBI63.js → chunk-CH4RRRGC.js} +5 -5
- package/dist/{chunk-GSYZG4E7.js → chunk-DEWCAOOL.js} +2 -2
- package/dist/{chunk-YLEEVMBV.js → chunk-DOZGTBDV.js} +2 -2
- package/dist/{chunk-GHROWWUN.js → chunk-DWTFLQ3P.js} +33 -6
- package/dist/{chunk-HVQDDVN4.js → chunk-EAUUGY4R.js} +2 -2
- package/dist/{chunk-FQO3RV6O.js → chunk-ESZ6YPQM.js} +2 -2
- package/dist/{chunk-32NEJ553.js → chunk-FBN2M2HK.js} +28 -0
- package/dist/{chunk-MGUA3DUS.js → chunk-G35NVFZF.js} +3 -3
- package/dist/{chunk-L72RQ45A.js → chunk-G3AG7A42.js} +1 -1
- package/dist/{chunk-6UUPTWUG.js → chunk-GHWV6PIS.js} +1 -1
- package/dist/{chunk-FKFGGAXN.js → chunk-GLC5XHN5.js} +13 -0
- package/dist/{chunk-XWMY7FIW.js → chunk-H47FQDFU.js} +3 -3
- package/dist/{chunk-PT47MVXR.js → chunk-HPRR3WD7.js} +23 -17
- package/dist/{chunk-TYMD647L.js → chunk-JMGMOK4Z.js} +2 -2
- package/dist/{chunk-YQCDSSIK.js → chunk-JY27IRDR.js} +1 -1
- package/dist/{chunk-VW57BBGU.js → chunk-K2666FKT.js} +1 -1
- package/dist/{chunk-S6WDNIUG.js → chunk-K5GGTJJV.js} +1 -1
- package/dist/{chunk-XESW4XN7.js → chunk-KH5XMMSM.js} +2 -2
- package/dist/{chunk-FI3JWR34.js → chunk-KLGJ2R4V.js} +49 -10
- package/dist/{chunk-KSV2PMFA.js → chunk-L4BRJVGC.js} +7 -7
- package/dist/{chunk-5766TK7Q.js → chunk-LAGZGKKN.js} +1 -1
- package/dist/{chunk-I5LDGNYX.js → chunk-LJB2PF6K.js} +1 -1
- package/dist/{chunk-ISTUBRV3.js → chunk-LPJMACTI.js} +5 -5
- package/dist/{chunk-T6SMQ4L7.js → chunk-MGZKDR6R.js} +1 -1
- package/dist/{chunk-G7CFMNRO.js → chunk-MK4R3APQ.js} +2 -2
- package/dist/{chunk-6CGYINE7.js → chunk-NOH32H42.js} +25 -0
- package/dist/{chunk-VILE6GFD.js → chunk-NWD2KKM5.js} +1 -1
- package/dist/{chunk-QCCPXMKP.js → chunk-O44FYXH5.js} +2 -2
- package/dist/{chunk-HNYTTRLR.js → chunk-OQRO2MEK.js} +4 -4
- package/dist/{chunk-A3ZRV44X.js → chunk-OV6MUGZI.js} +2 -2
- package/dist/{chunk-LWWTOBZ6.js → chunk-P42DLWIY.js} +3 -3
- package/dist/{chunk-MP7DZH5M.js → chunk-PNBH4ZY7.js} +2 -2
- package/dist/{chunk-VVDHSRKD.js → chunk-PPMLF76Z.js} +1 -1
- package/dist/chunk-PXVQOMKL.js +39 -0
- package/dist/chunk-QBXDU24O.js +20 -0
- package/dist/{chunk-ZE57TSS6.js → chunk-QRIC4WOO.js} +1 -1
- package/dist/{chunk-4NJ57TSE.js → chunk-QY7RG6K3.js} +11 -6
- package/dist/{chunk-FJ646TIT.js → chunk-R4EWRIDL.js} +161 -21
- package/dist/{chunk-FC6BAQV5.js → chunk-R7EB4M5P.js} +12 -11
- package/dist/{chunk-WJRYQYOM.js → chunk-RLT45AWC.js} +1 -1
- package/dist/{chunk-XM3NMXLX.js → chunk-RYBFHEMZ.js} +1 -1
- package/dist/{chunk-7J6LQ3SQ.js → chunk-SGTEKMJW.js} +19 -4
- package/dist/{chunk-HQRI2NT3.js → chunk-ST5EBZTO.js} +1 -1
- package/dist/{chunk-URD4QIQS.js → chunk-TCVI4ZGS.js} +1 -1
- package/dist/{chunk-LIOE46OG.js → chunk-TDNZIFJ2.js} +130 -38
- package/dist/{chunk-634HSJ3J.js → chunk-TK7THLRO.js} +10 -3
- package/dist/{chunk-Q55JNFDV.js → chunk-UGQFQDSV.js} +1 -1
- package/dist/{chunk-7Y4TTOLE.js → chunk-UQSBVZ3H.js} +7 -5
- package/dist/{chunk-VAOROEWU.js → chunk-URKDBFZV.js} +2 -2
- package/dist/{chunk-7TWX4Y7I.js → chunk-UVXIJYZY.js} +3 -15
- package/dist/{chunk-JMSS47CW.js → chunk-UWV753SJ.js} +1 -1
- package/dist/{chunk-A7UJGIMA.js → chunk-UZPWLXO6.js} +1 -1
- package/dist/{chunk-QL7ITOPE.js → chunk-V4AS2BNU.js} +3 -3
- package/dist/{chunk-YDHXPY23.js → chunk-VS7G457O.js} +1 -1
- package/dist/{chunk-MYDM4PQL.js → chunk-VTLIN7XN.js} +2 -2
- package/dist/{chunk-7W4DJKZA.js → chunk-W2LKSBX5.js} +11 -11
- package/dist/{chunk-ENV35BSH.js → chunk-WGHUHNXI.js} +125 -53
- package/dist/{chunk-EJCCJTUH.js → chunk-WKNWKORX.js} +3 -3
- package/dist/{chunk-DW35FX4I.js → chunk-X5EOH44V.js} +1 -1
- package/dist/{chunk-7YUYG6S6.js → chunk-XN22HGE7.js} +1 -1
- package/dist/{chunk-UR6QODTY.js → chunk-YATFRFNH.js} +1 -1
- package/dist/{chunk-3ZNAP65U.js → chunk-YQY4KVP4.js} +13 -17
- package/dist/{chunk-GVHEOOGM.js → chunk-Z3HHAFEP.js} +7 -7
- package/dist/{clean-RDKZTFDC.js → clean-2CK4S5ES.js} +22 -21
- package/dist/cli.js +63 -70
- package/dist/{cloud-2MGM3NSJ.js → cloud-QRSJMVGW.js} +4 -4
- package/dist/{cloudrun-YQONSO6B.js → cloudrun-5XEDIP77.js} +5 -5
- package/dist/commands/layout-audit.browser.js +44 -1
- package/dist/{compare-HAMCTSXR.js → compare-ASV5QBD2.js} +35 -32
- package/dist/{compiler-YUM2ODOP.js → compiler-CG2EXM75.js} +2 -2
- package/dist/{component-2MDTLX6B.js → component-24XLTKUQ.js} +3 -3
- package/dist/{compositions-EEXADRKF.js → compositions-AN7ETEKG.js} +17 -14
- package/dist/{delete-X4I63WKN.js → delete-OMKQ3XTL.js} +9 -7
- package/dist/{deploy-BBGSS4I3.js → deploy-3M6QRT2H.js} +2 -2
- package/dist/{dist-ZE5X6MWG.js → dist-VNOJCTQR.js} +3 -3
- package/dist/{doctor-BNZ6D33R.js → doctor-ABYFP2LY.js} +16 -15
- package/dist/{dotEnv-RPHCAUBZ.js → dotEnv-BGFXSQOA.js} +7 -5
- package/dist/{events-6DI3CND6.js → events-64QVWKTU.js} +10 -7
- package/dist/{events-BYOF33UK.js → events-P5AFL2VZ.js} +11 -8
- package/dist/{feedback-Z3JOC7TX.js → feedback-LQ2TT4XL.js} +31 -16
- package/dist/{ffmpeg-S44OTBCI.js → ffmpeg-Y6NMFQ5J.js} +8 -7
- package/dist/{figma-TVX2H5B3.js → figma-R75KTFW4.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -11
- package/dist/{get-DWKTDVP7.js → get-KB67C2T7.js} +9 -7
- package/dist/{gpuPolicy-GTBFSUHB.js → gpuPolicy-4ERRTA5U.js} +8 -7
- package/dist/{grade-compare-S4P6Z265.js → grade-compare-NPVETP7T.js} +36 -33
- package/dist/hangReport.js +1 -1
- package/dist/{heifImagePrep-RKQP2Y73.js → heifImagePrep-ABLYQMTO.js} +9 -8
- package/dist/{help-WIC6DHOF.js → help-ZNJG5OJO.js} +3 -3
- package/dist/{history-UBRUPAHH.js → history-HUBQPMLX.js} +14 -11
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +71 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-F5LTDQ6I.js → info-KDSQGWE5.js} +15 -12
- package/dist/{init-6L4WQKOD.js → init-QEPNUQB2.js} +35 -32
- package/dist/{inspect-DUIBB263.js → inspect-27GJ5ZUI.js} +36 -33
- package/dist/{installer-JKZ5N47B.js → installer-OFIDWMYR.js} +5 -5
- package/dist/{keyframes-5FQNFJFE.js → keyframes-E2NNHMNK.js} +14 -11
- package/dist/{lambda-YTO6N2QH.js → lambda-QQ2VVPRQ.js} +12 -11
- package/dist/{layout-H3F2LW62.js → layout-NQQZ5KR7.js} +36 -33
- package/dist/{lint-WUWLVCJQ.js → lint-DUYKX36O.js} +15 -12
- package/dist/{list-3EFECRWU.js → list-HIZY6RSP.js} +9 -7
- package/dist/{localPage-C3267GRQ.js → localPage-U2RMKIMN.js} +8 -7
- package/dist/{login-W5L64YRM.js → login-CLP2ZTEW.js} +19 -18
- package/dist/{logout-C6P6ERZ3.js → logout-CXGSSQ4Q.js} +6 -4
- package/dist/{manager-46MZB3HK.js → manager-CXRLWAKH.js} +10 -9
- package/dist/{manager-IZIK7BHN.js → manager-LXWVBDLM.js} +3 -3
- package/dist/{media-treatment-XBQWOU5U.js → media-treatment-GSWIAGS4.js} +29 -17
- package/dist/{models-ZHNV44XV.js → models-TPHYQXOL.js} +12 -11
- package/dist/{motionShot-DO4EQ2U3.js → motionShot-7UX4TKHZ.js} +18 -17
- package/dist/{normalize-audio-2EXTDNBF.js → normalize-audio-WBTJDFS7.js} +16 -13
- package/dist/{open-7ZOY3KI6.js → open-P7Z2PIPR.js} +19 -16
- package/dist/{parakeetRunner-H3B4QP6W.js → parakeetRunner-F2OX525D.js} +14 -13
- package/dist/{pipeline-7OKHNKGP.js → pipeline-2ZDZGL4J.js} +12 -11
- package/dist/{play-B5NNOJN7.js → play-YCH7MRNX.js} +26 -23
- package/dist/{preflight-R26JZQJU.js → preflight-MTMSPVCR.js} +11 -10
- package/dist/{present-Y2SEWKGO.js → present-L4HNZ2HU.js} +22 -19
- package/dist/{preview-7CZX4A5T.js → preview-RWX74O5J.js} +25 -22
- package/dist/{producer-WTO6XYGU.js → producer-UI4FXLPQ.js} +1 -1
- package/dist/{projectConfig-SJ5NIYUO.js → projectConfig-I6QNMRVV.js} +7 -7
- package/dist/{publication-47KNSXP7.js → publication-JET7ZBWG.js} +3 -3
- package/dist/{publish-4J4EKKQN.js → publish-T56AYTZU.js} +16 -14
- package/dist/{refresh-IYRGLHG5.js → refresh-VJ4FQVH2.js} +3 -2
- package/dist/{remove-background-UKC6NKDH.js → remove-background-4Y56FLXV.js} +13 -12
- package/dist/{render-S2FJRE3H.js → render-33TSTTN7.js} +6 -6
- package/dist/{render-TABKCTMF.js → render-IJ7L24RF.js} +169 -72
- package/dist/{render-DBELH4AC.js → render-UBDIHGEG.js} +25 -22
- package/dist/{render-batch-6YJMWHZ4.js → render-batch-SDDZ3LM7.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-EDI3JND5.js → resolver-VLOUQ7I6.js} +5 -5
- package/dist/{screenshotCapture-HDRHY4NN.js → screenshotCapture-U3IYWTDB.js} +1 -1
- package/dist/{sherpa-R6HDRJCA.js → sherpa-6GOUBSP2.js} +13 -12
- package/dist/sherpaWorker.js +1 -1
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +9 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +2 -2
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +2 -2
- package/dist/skills/media-use/references/meta.md +6 -5
- package/dist/skills/media-use/scripts/lib/telemetry.mjs +49 -15
- package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +19 -5
- package/dist/{skills-2QIW3EOJ.js → skills-MAJGGJKJ.js} +13 -10
- package/dist/{skillsUpdateCheck-XG5FPCU5.js → skillsUpdateCheck-X6AIBUUG.js} +6 -5
- package/dist/{snapshot-C5XBKYEF.js → snapshot-JKKWQSMQ.js} +62 -45
- package/dist/{src-E467QUBK.js → src-LAO5IGRI.js} +11 -6
- package/dist/{src-CT2X45TD.js → src-RIL5PHI6.js} +12 -9
- package/dist/{staticProjectServer-G54Z4BH7.js → staticProjectServer-YF5AZXGR.js} +19 -18
- package/dist/{status-SLILCDBZ.js → status-TJFZFDGS.js} +5 -4
- package/dist/studio/assets/{hyperframes-player-H1DIJsJZ.js → hyperframes-player-Cf9gtxqa.js} +3 -3
- package/dist/studio/assets/{index-v_hWj6Kv.js → index-CW5fPxU8.js} +1 -1
- package/dist/studio/assets/{index-BftVE_0y.js → index-zVoFhoyD.js} +120 -120
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-O52RPXZC.js → studio-api-Q2U6752S.js} +9 -9
- package/dist/{studioServer-WDTS6ZDI.js → studioServer-SPU4MINT.js} +56 -53
- package/dist/{synthesize-FQML2LN2.js → synthesize-IKSZPKFJ.js} +2 -2
- package/dist/{system-MVRF5UM2.js → system-FDPS57FU.js} +2 -2
- package/dist/{telemetry-NTO4FJFN.js → telemetry-QHYJJAJU.js} +7 -6
- package/dist/{telemetry-GEHWCV7C.js → telemetry-W7CBBWIN.js} +11 -8
- package/dist/{timeline-IVQDNGWZ.js → timeline-L26OBLW2.js} +25 -22
- package/dist/{tokens-EN5PVV3Y.js → tokens-PNNCTOYV.js} +2 -2
- package/dist/{transcribe-HKS3PZAF.js → transcribe-PPZFOWMB.js} +12 -11
- package/dist/{transcribe-NXMIBNLX.js → transcribe-XZCZTOPU.js} +23 -20
- package/dist/{tts-K5HRN6NQ.js → tts-MQNOBHLH.js} +3 -3
- package/dist/{updateCheck-35TT5GRF.js → updateCheck-SNRZKRO2.js} +5 -4
- package/dist/{upgrade-G6EOHGUS.js → upgrade-WEU5MYWF.js} +5 -4
- package/dist/{urlDownloader-X7V63HCF.js → urlDownloader-55NQFDIH.js} +7 -6
- package/dist/{validate-4JUCRS64.js → validate-4QEMOBFD.js} +30 -27
- package/dist/{video-SWQXDG7J.js → video-VYOWJDYM.js} +9 -8
- package/dist/warmCheck.js +46 -43
- package/dist/warmCheckClient.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-FBQVRYMD.js +0 -5061
|
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
updateCheckDisabled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H47FQDFU.js";
|
|
10
10
|
import {
|
|
11
11
|
hostAnswers
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BR2JQQC5.js";
|
|
13
13
|
import {
|
|
14
14
|
CONFIG_PATH,
|
|
15
15
|
readConfig,
|
|
16
16
|
readConfigFresh,
|
|
17
17
|
writeConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BLBMPEBX.js";
|
|
19
19
|
import {
|
|
20
20
|
isUnattended
|
|
21
21
|
} from "./chunk-J3RXEDR2.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
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/auth/paths.ts
|
|
9
|
+
import { homedir } from "os";
|
|
10
|
+
import { join } from "path";
|
|
11
|
+
var CREDENTIAL_FILENAME = "credentials";
|
|
12
|
+
function configDir() {
|
|
13
|
+
const override = process.env["HEYGEN_CONFIG_DIR"];
|
|
14
|
+
if (override && override.length > 0) return override;
|
|
15
|
+
return join(homedir(), ".heygen");
|
|
16
|
+
}
|
|
17
|
+
function credentialPath() {
|
|
18
|
+
return join(configDir(), CREDENTIAL_FILENAME);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
configDir,
|
|
23
|
+
credentialPath
|
|
24
|
+
};
|
|
@@ -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-PNBH4ZY7.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-TDNZIFJ2.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O44FYXH5.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JMGMOK4Z.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
scanProjectMedia,
|
|
71
71
|
shouldPrewarmProxy,
|
|
72
72
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-URKDBFZV.js";
|
|
74
74
|
import {
|
|
75
75
|
probeAudioTrack,
|
|
76
76
|
probeMediaMetadata
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-5SZ2HRCW.js";
|
|
78
78
|
import {
|
|
79
79
|
STUDIO_MOTION_PATH,
|
|
80
80
|
createStudioMotionRenderBodyScript,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
ensureHfIds,
|
|
116
116
|
stampHfIdsInPlace,
|
|
117
117
|
stripSdrPngColourTags
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-2Q4CL6AB.js";
|
|
119
119
|
import {
|
|
120
120
|
GSAP_BASE_URL_META,
|
|
121
121
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
normalizeGsapLocalRoot,
|
|
133
133
|
parseFps,
|
|
134
134
|
parsePreviewProxyBox
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-AU7VGKCP.js";
|
|
136
136
|
import {
|
|
137
137
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
138
138
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
resolveRateSpec,
|
|
148
148
|
sourceTimeAt,
|
|
149
149
|
stripEmbeddedRuntimeScripts
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-4I7KQWZS.js";
|
|
151
151
|
import {
|
|
152
152
|
ProjectRootMissingError,
|
|
153
153
|
folderGone,
|
|
@@ -5592,7 +5592,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5592
5592
|
let block = extractGsapScriptBlock(html);
|
|
5593
5593
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5594
5594
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5595
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5595
|
+
const { GSAP_CDN } = await import("./dist-VNOJCTQR.js");
|
|
5596
5596
|
const bootstrap = [
|
|
5597
5597
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5598
5598
|
"<script>",
|
|
@@ -8914,7 +8914,7 @@ function growRootToFit(document2) {
|
|
|
8914
8914
|
}
|
|
8915
8915
|
if (end > rootDuration + EPSILON) root.setAttribute("data-duration", String(round3(end)));
|
|
8916
8916
|
}
|
|
8917
|
-
var COPIED_PICTURE_ATTRS = ["class", "style", "data-color-grading"];
|
|
8917
|
+
var COPIED_PICTURE_ATTRS = ["class", "style", "data-color-grading", "data-color-group"];
|
|
8918
8918
|
function buildStill(document2, video, input) {
|
|
8919
8919
|
const img = document2.createElement("img");
|
|
8920
8920
|
img.setAttribute("id", input.id);
|
|
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GHWV6PIS.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-5ZBMHUY2.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TDNZIFJ2.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AU7VGKCP.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
22
|
} from "./chunk-DP5LF7GF.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-V4AS2BNU.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,26 +29,26 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TDNZIFJ2.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
36
36
|
getSystemMeta
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LAGZGKKN.js";
|
|
38
38
|
import {
|
|
39
39
|
getAvailableMemoryMb
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FBN2M2HK.js";
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-H47FQDFU.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-BLBMPEBX.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-OV6MUGZI.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-CXRLWAKH.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OV6MUGZI.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveNaturalMediaTimelineDuration,
|
|
23
23
|
resolveTimedImageDurationSeconds,
|
|
24
24
|
unitFloatToByte
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4I7KQWZS.js";
|
|
26
26
|
import {
|
|
27
27
|
COLOR_GROUP_ATTR,
|
|
28
28
|
COLOR_GROUP_TAG,
|
|
@@ -1226,7 +1226,11 @@ function colorGroupOf(el) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
return el.getAttribute(HF_COLOR_GROUP_ATTR) || null;
|
|
1228
1228
|
}
|
|
1229
|
-
function resolveColorGroupElement(root, groupId) {
|
|
1229
|
+
function resolveColorGroupElement(root, groupId, member) {
|
|
1230
|
+
const scope = typeof member?.closest === "function" ? member.closest("[data-composition-id]") : null;
|
|
1231
|
+
const scoped = scope ? Array.from(scope.getElementsByTagName(HF_COLOR_GROUP_TAG)).find((g) => g.id === groupId) : void 0;
|
|
1232
|
+
if (scoped)
|
|
1233
|
+
return scoped;
|
|
1230
1234
|
const el = root?.getElementById(groupId) ?? null;
|
|
1231
1235
|
return el?.tagName.toLowerCase() === HF_COLOR_GROUP_TAG ? el : null;
|
|
1232
1236
|
}
|
|
@@ -1237,7 +1241,7 @@ function effectiveColorGrading(el, root) {
|
|
|
1237
1241
|
const groupId = colorGroupOf(el);
|
|
1238
1242
|
if (!groupId)
|
|
1239
1243
|
return null;
|
|
1240
|
-
return resolveColorGroupElement(root, groupId)?.getAttribute(HF_COLOR_GRADING_ATTR) ?? null;
|
|
1244
|
+
return resolveColorGroupElement(root, groupId, el)?.getAttribute(HF_COLOR_GRADING_ATTR) ?? null;
|
|
1241
1245
|
}
|
|
1242
1246
|
function ensureColorGroupInertStyle(doc) {
|
|
1243
1247
|
const styleId = "__hf-color-group-inert";
|
|
@@ -284,6 +284,11 @@ function parseDeRouterBreaker(value) {
|
|
|
284
284
|
};
|
|
285
285
|
return parsed.strike || parsed.trip ? parsed : void 0;
|
|
286
286
|
}
|
|
287
|
+
function recordLastCheck(lastCheck) {
|
|
288
|
+
const config = readConfigFresh();
|
|
289
|
+
config.lastCheck = lastCheck;
|
|
290
|
+
writeConfig(config);
|
|
291
|
+
}
|
|
287
292
|
var MAX_RECENT_RENDERS = 5;
|
|
288
293
|
function recordRecentRender(id, ok) {
|
|
289
294
|
const config = readConfigFresh();
|
|
@@ -506,6 +511,7 @@ export {
|
|
|
506
511
|
effectiveTelemetryStatus,
|
|
507
512
|
withFileLock,
|
|
508
513
|
releaseDeParallelRouterLatch,
|
|
514
|
+
recordLastCheck,
|
|
509
515
|
recordRecentRender,
|
|
510
516
|
getIdentityPersistence,
|
|
511
517
|
getIdentityWriteOutcome,
|
|
@@ -4,15 +4,13 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
fetchGoesThroughEnvProxy
|
|
9
|
+
} from "./chunk-QBXDU24O.js";
|
|
7
10
|
|
|
8
11
|
// src/utils/hostAnswers.ts
|
|
9
12
|
import { promises as dns } from "dns";
|
|
10
13
|
var PROBE_TIMEOUT_MS = 1e3;
|
|
11
|
-
function fetchGoesThroughEnvProxy() {
|
|
12
|
-
if (!(process.env["HTTPS_PROXY"] ?? process.env["https_proxy"])?.trim()) return false;
|
|
13
|
-
const flags = [...process.execArgv, ...process.env["NODE_OPTIONS"]?.split(/\s+/u) ?? []];
|
|
14
|
-
return process.env["NODE_USE_ENV_PROXY"] === "1" || flags.includes("--use-env-proxy");
|
|
15
|
-
}
|
|
16
14
|
async function hostAnswers(host) {
|
|
17
15
|
if (fetchGoesThroughEnvProxy()) return true;
|
|
18
16
|
try {
|
|
@@ -5,12 +5,14 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
-
credentialPath,
|
|
9
8
|
deleteStore,
|
|
10
9
|
hasPreservedUnknownData,
|
|
11
10
|
readStore,
|
|
12
11
|
writeStore
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UVXIJYZY.js";
|
|
13
|
+
import {
|
|
14
|
+
credentialPath
|
|
15
|
+
} from "./chunk-4WEWHZZO.js";
|
|
14
16
|
|
|
15
17
|
// src/auth/user.ts
|
|
16
18
|
function isUserInfoEmpty(u) {
|
|
@@ -6,26 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TCVI4ZGS.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WKNWKORX.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-G35NVFZF.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5HGUY24Y.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YQY4KVP4.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RLT45AWC.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-W7CBBWIN.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BRYOYBO5.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AU7VGKCP.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -9,7 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-IGLEPPTN.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/dotEnv.ts
|
|
12
|
-
|
|
12
|
+
import { readFileSync } from "fs";
|
|
13
|
+
import { join } from "path";
|
|
14
|
+
var PROJECT_ENV_KEYS = [
|
|
15
|
+
"HEYGEN_API_KEY",
|
|
16
|
+
"HYPERFRAMES_API_KEY",
|
|
17
|
+
"ELEVENLABS_API_KEY",
|
|
18
|
+
"FIGMA_TOKEN",
|
|
13
19
|
"OPENROUTER_API_KEY",
|
|
14
20
|
"GEMINI_API_KEY",
|
|
15
21
|
"GOOGLE_API_KEY",
|
|
@@ -19,7 +25,10 @@ var CAPTURE_ENV_KEYS = [
|
|
|
19
25
|
"HYPERFRAMES_VERTEX_MODEL",
|
|
20
26
|
"HYPERFRAMES_OPENROUTER_MODEL",
|
|
21
27
|
"HYPERFRAMES_GEMINI_MODEL",
|
|
22
|
-
"HYPERFRAMES_VISION_TIMEOUT_MS"
|
|
28
|
+
"HYPERFRAMES_VISION_TIMEOUT_MS",
|
|
29
|
+
// Telemetry opt-outs only turn sending off, and a project .env could already set them.
|
|
30
|
+
"HYPERFRAMES_NO_TELEMETRY",
|
|
31
|
+
"DO_NOT_TRACK"
|
|
23
32
|
];
|
|
24
33
|
function valueOf(raw) {
|
|
25
34
|
const quote = raw.charAt(0);
|
|
@@ -71,15 +80,33 @@ function logicalLines(content) {
|
|
|
71
80
|
}
|
|
72
81
|
function applyDotEnv(content, env, allowedKeys) {
|
|
73
82
|
const allowed = allowedKeys === void 0 ? void 0 : new Set(allowedKeys);
|
|
83
|
+
const ignored = [];
|
|
74
84
|
for (const entry of logicalLines(content).map(entryOf)) {
|
|
75
85
|
if (!entry) continue;
|
|
76
86
|
const [key, value] = entry;
|
|
77
|
-
if (key
|
|
78
|
-
|
|
87
|
+
if (!key || key.toUpperCase() === FEEDBACK_EMAIL_ENV) continue;
|
|
88
|
+
if (allowed !== void 0 && !allowed.has(key)) ignored.push(key);
|
|
89
|
+
else if (!(key in env)) env[key] = value;
|
|
90
|
+
}
|
|
91
|
+
return ignored;
|
|
92
|
+
}
|
|
93
|
+
function loadProjectDotEnv(dir, env, warn) {
|
|
94
|
+
let content;
|
|
95
|
+
try {
|
|
96
|
+
content = readFileSync(join(dir, ".env"), "utf-8");
|
|
97
|
+
} catch {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const ignored = [...new Set(applyDotEnv(content, env, PROJECT_ENV_KEYS))];
|
|
101
|
+
if (ignored.length > 0) {
|
|
102
|
+
warn(
|
|
103
|
+
`[hyperframes] .env: ignoring ${ignored.join(", ")} (a project .env only sets the CLI's own settings)`
|
|
104
|
+
);
|
|
79
105
|
}
|
|
80
106
|
}
|
|
81
107
|
|
|
82
108
|
export {
|
|
83
|
-
|
|
84
|
-
applyDotEnv
|
|
109
|
+
PROJECT_ENV_KEYS,
|
|
110
|
+
applyDotEnv,
|
|
111
|
+
loadProjectDotEnv
|
|
85
112
|
};
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QY7RG6K3.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KLGJ2R4V.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -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-K2666FKT.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-PBNWRWKA.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-CG2EXM75.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");
|
|
@@ -14,7 +14,11 @@ var BYTES_PER_MIB_BIGINT = BigInt(BYTES_PER_MIB);
|
|
|
14
14
|
var CGROUP_V2_MEMORY_MAX_PATH = "/sys/fs/cgroup/memory.max";
|
|
15
15
|
var CGROUP_V1_MEMORY_LIMIT_PATH = "/sys/fs/cgroup/memory/memory.limit_in_bytes";
|
|
16
16
|
var CGROUP_V1_NO_LIMIT_CUTOFF_BYTES = 2n ** 60n;
|
|
17
|
+
var CGROUP_V2_CPU_MAX_PATH = "/sys/fs/cgroup/cpu.max";
|
|
18
|
+
var CGROUP_V1_CPU_QUOTA_PATH = "/sys/fs/cgroup/cpu/cpu.cfs_quota_us";
|
|
19
|
+
var CGROUP_V1_CPU_PERIOD_PATH = "/sys/fs/cgroup/cpu/cpu.cfs_period_us";
|
|
17
20
|
var _cachedCgroupLimitMb;
|
|
21
|
+
var _cachedCgroupCpus;
|
|
18
22
|
var _warnedCgroupReadFailure = false;
|
|
19
23
|
function parseCgroupLimitMb(v2Content, v1Content) {
|
|
20
24
|
if (v2Content !== null) {
|
|
@@ -48,6 +52,29 @@ function parsePositiveByteLimitMb(content, noLimitCutoffBytes) {
|
|
|
48
52
|
}
|
|
49
53
|
return Number(bytes / BYTES_PER_MIB_BIGINT);
|
|
50
54
|
}
|
|
55
|
+
function parseCgroupCpus(v2Content, v1Quota, v1Period) {
|
|
56
|
+
if (v2Content !== null) {
|
|
57
|
+
const [quota, period] = v2Content.trim().split(/\s+/);
|
|
58
|
+
return quotaCpus(quota, period);
|
|
59
|
+
}
|
|
60
|
+
return quotaCpus(v1Quota?.trim(), v1Period?.trim());
|
|
61
|
+
}
|
|
62
|
+
function quotaCpus(quota, period) {
|
|
63
|
+
if (!quota || !period || !/^\d+$/.test(quota) || !/^\d+$/.test(period)) return null;
|
|
64
|
+
const [q, p] = [Number(quota), Number(period)];
|
|
65
|
+
return q > 0 && p > 0 ? q / p : null;
|
|
66
|
+
}
|
|
67
|
+
function getCgroupCpuLimit() {
|
|
68
|
+
if (_cachedCgroupCpus !== void 0) return _cachedCgroupCpus;
|
|
69
|
+
if (process.platform !== "linux") return _cachedCgroupCpus = null;
|
|
70
|
+
const v2 = readCgroupFile(CGROUP_V2_CPU_MAX_PATH);
|
|
71
|
+
_cachedCgroupCpus = v2 !== null ? parseCgroupCpus(v2, null, null) : parseCgroupCpus(
|
|
72
|
+
null,
|
|
73
|
+
readCgroupFile(CGROUP_V1_CPU_QUOTA_PATH),
|
|
74
|
+
readCgroupFile(CGROUP_V1_CPU_PERIOD_PATH)
|
|
75
|
+
);
|
|
76
|
+
return _cachedCgroupCpus;
|
|
77
|
+
}
|
|
51
78
|
function getCgroupMemoryLimitMb() {
|
|
52
79
|
if (_cachedCgroupLimitMb !== void 0) return _cachedCgroupLimitMb;
|
|
53
80
|
if (process.platform !== "linux") {
|
|
@@ -132,6 +159,7 @@ function getAvailableMemoryMb() {
|
|
|
132
159
|
}
|
|
133
160
|
|
|
134
161
|
export {
|
|
162
|
+
getCgroupCpuLimit,
|
|
135
163
|
getCgroupMemoryLimitMb,
|
|
136
164
|
getSystemTotalMb,
|
|
137
165
|
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-7VZEOCUY.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5HGUY24Y.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel,
|
|
19
19
|
sha256File
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YQY4KVP4.js";
|
|
21
21
|
import {
|
|
22
22
|
findFFmpeg,
|
|
23
23
|
findFFprobe,
|
|
24
24
|
getFFmpegInstallHint
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ST5EBZTO.js";
|
|
26
26
|
import {
|
|
27
27
|
findWavChunk
|
|
28
28
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -40,6 +40,18 @@ function closestMatch(input, candidates) {
|
|
|
40
40
|
}
|
|
41
41
|
return best;
|
|
42
42
|
}
|
|
43
|
+
var COMMAND_SYNONYMS = {
|
|
44
|
+
search: "catalog",
|
|
45
|
+
find: "catalog",
|
|
46
|
+
browse: "catalog",
|
|
47
|
+
registry: "catalog",
|
|
48
|
+
list: "catalog",
|
|
49
|
+
install: "add"
|
|
50
|
+
};
|
|
51
|
+
function synonymMatch(input, candidates) {
|
|
52
|
+
const target = COMMAND_SYNONYMS[input];
|
|
53
|
+
return target !== void 0 && [...candidates].includes(target) ? target : void 0;
|
|
54
|
+
}
|
|
43
55
|
|
|
44
56
|
// src/utils/reject-unknown-flags.ts
|
|
45
57
|
var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v"]);
|
|
@@ -181,6 +193,7 @@ function guardSwallowedFlagValues(cmd, path, rawArgs) {
|
|
|
181
193
|
|
|
182
194
|
export {
|
|
183
195
|
closestMatch,
|
|
196
|
+
synonymMatch,
|
|
184
197
|
assertKnownFlags,
|
|
185
198
|
swallowedFlagUsageError,
|
|
186
199
|
guardSwallowedFlagValues
|
|
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
hostAnswers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BR2JQQC5.js";
|
|
10
10
|
import {
|
|
11
11
|
readConfig,
|
|
12
12
|
readConfigFresh,
|
|
13
13
|
writeConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BLBMPEBX.js";
|
|
15
15
|
import {
|
|
16
16
|
isDevMode
|
|
17
17
|
} from "./chunk-ISN5GRYI.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-J3RXEDR2.js";
|
|
25
25
|
import {
|
|
26
26
|
VERSION
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OV6MUGZI.js";
|
|
28
28
|
|
|
29
29
|
// src/utils/updateCheck.ts
|
|
30
30
|
import { existsSync, readFileSync } from "fs";
|