hyperframes 0.9.4 → 0.9.6
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-KGLQRDOR.js → add-FI2ERBMZ.js} +11 -11
- package/dist/{agentPromptGenerator-43OTO3ZQ.js → agentPromptGenerator-DZTXHJV3.js} +5 -5
- package/dist/{animatedGifPrep-AELBI6OZ.js → animatedGifPrep-GXQA4KCD.js} +5 -5
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -19
- package/dist/{asset-IDDA6YDA.js → asset-BRSG6JNL.js} +2 -2
- package/dist/{assetCataloger-3ODHJX74.js → assetCataloger-KVWF4SRK.js} +6 -6
- package/dist/{audio-YL5WE2ZH.js → audio-BVZOX6LU.js} +502 -143
- package/dist/{auth-73AQ4C6J.js → auth-HFFN7USX.js} +2 -2
- package/dist/{autoUpdate-PRACQEE2.js → autoUpdate-JNGMUXLZ.js} +2 -2
- package/dist/{backgroundChecks-GF7DD3CT.js → backgroundChecks-O4ADPXOL.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PHXZBVEA.js → batchRender-A2HW6QW7.js} +3 -3
- package/dist/{beats-RIYL6FAW.js → beats-F7Q3G6VW.js} +7 -7
- package/dist/{benchmark-ZXWBR4Q2.js → benchmark-4BDMIYTW.js} +8 -8
- package/dist/{billing-FFWAEIQ6.js → billing-35NVMZWK.js} +1 -1
- package/dist/{browser-RQVUIRKR.js → browser-S6ADXSB7.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-U23CIGZT.js → bundleWithLocalizedFonts-EE27EYEU.js} +2 -2
- package/dist/{capture-XLIZO7S4.js → capture-CXDJO524.js} +18 -18
- package/dist/{capture-DKLV3MKZ.js → capture-LWWBL6SH.js} +3 -3
- package/dist/{captureCompositionFrame-IDLA33HO.js → captureCompositionFrame-BB2ZGM6R.js} +10 -10
- package/dist/{catalog-GCEMAJ2A.js → catalog-RQ6HIUBG.js} +18 -15
- package/dist/{catch-up-JGEVDQYE.js → catch-up-PBAXR7FI.js} +4 -4
- package/dist/{check-UFFVDSOH.js → check-O4V4UWE3.js} +35 -35
- package/dist/{checkAudio-AJHD4QXP.js → checkAudio-EUT3AO3L.js} +8 -8
- package/dist/{checkBrowser-HZPWQLY6.js → checkBrowser-QQUBR4QI.js} +29 -29
- package/dist/{chunk-R4KSPN37.js → chunk-27AVZR7K.js} +17 -17
- package/dist/{chunk-Y5PWLNW3.js → chunk-2FNUCIHD.js} +1 -1
- package/dist/{chunk-KXU3FDXG.js → chunk-2KO357TJ.js} +1 -1
- package/dist/chunk-2KYY75JP.js +134 -0
- package/dist/{chunk-HVWZ5V2N.js → chunk-3SB24TVT.js} +1 -1
- package/dist/{chunk-BXE6GDIL.js → chunk-44T2V4EW.js} +1 -1
- package/dist/{chunk-LSFXDBHZ.js → chunk-47IBOMXH.js} +3 -3
- package/dist/{chunk-VUGARSNN.js → chunk-4E7G2GME.js} +1 -1
- package/dist/{chunk-VBR3OBZU.js → chunk-4III3SDC.js} +9 -9
- package/dist/{chunk-CS6UO5NC.js → chunk-4VOK22DG.js} +1 -1
- package/dist/{chunk-G5X2YP75.js → chunk-5BCFV2HE.js} +3 -3
- package/dist/{chunk-5T2D2XYR.js → chunk-6GZB32Q5.js} +1 -1
- package/dist/{chunk-HWIGWPIG.js → chunk-6JMNJYYR.js} +1 -1
- package/dist/{chunk-SYHDFH34.js → chunk-6UOHLXVU.js} +2 -2
- package/dist/{chunk-T6NMZNAE.js → chunk-7DKGU6CY.js} +2 -2
- package/dist/{chunk-CPXT5NUE.js → chunk-AB3ZXWI3.js} +1 -1
- package/dist/{chunk-OKMXRVAN.js → chunk-APVBITVZ.js} +55 -16
- package/dist/{chunk-AVJDYPVP.js → chunk-BIJBGCF4.js} +1 -1
- package/dist/{chunk-C3OOOE6D.js → chunk-BMRZP6X6.js} +1 -1
- package/dist/{chunk-EYYILEMR.js → chunk-BQQTZET2.js} +2 -2
- package/dist/{chunk-RDE3O5OK.js → chunk-BUDP4GF4.js} +1 -1
- package/dist/{chunk-VSDUDDHB.js → chunk-C47ZGVKT.js} +7 -7
- package/dist/{chunk-7UVXHPVS.js → chunk-CUAZHDVV.js} +3 -3
- package/dist/{chunk-XZ2DZYFD.js → chunk-DETBSOYO.js} +1 -1
- package/dist/{chunk-DAF2SYII.js → chunk-DUSSDJJC.js} +2 -2
- package/dist/{chunk-CQL77BAS.js → chunk-E2VWKW2A.js} +2 -2
- package/dist/{chunk-IWMVCOUX.js → chunk-FB366S4I.js} +5 -5
- package/dist/{chunk-YL6X26WT.js → chunk-FDZXVTBY.js} +1 -1
- package/dist/{chunk-W6NEVGAE.js → chunk-FIIFME5M.js} +1 -1
- package/dist/{chunk-OOGTMIN4.js → chunk-FM7VWSN3.js} +1 -1
- package/dist/{chunk-MYTROPEC.js → chunk-FP37FSOT.js} +2 -2
- package/dist/{chunk-SEFLUI7L.js → chunk-G4VDT5D7.js} +1 -1
- package/dist/{chunk-WRIA42TA.js → chunk-GKVERDJ2.js} +1 -1
- package/dist/{chunk-XHLPTVXH.js → chunk-GP7OHHXR.js} +1 -1
- package/dist/{chunk-KW2ZREKY.js → chunk-GR3LU4D5.js} +1 -1
- package/dist/{chunk-QAB2ZMFL.js → chunk-GYPSZFRF.js} +2 -2
- package/dist/{chunk-ZDBN76JQ.js → chunk-HTTGTROQ.js} +1 -1
- package/dist/{chunk-UWNLBTFA.js → chunk-I2OMLFBJ.js} +1 -1
- package/dist/{chunk-LBETJASR.js → chunk-I47SIQGX.js} +4 -4
- package/dist/{chunk-K3AKRESE.js → chunk-IG3GSBHB.js} +2 -2
- package/dist/{chunk-6LDW4TLQ.js → chunk-IVFZG3CU.js} +2 -2
- package/dist/{chunk-HZMM3D6P.js → chunk-JFIBO4CZ.js} +1 -1
- package/dist/{chunk-2RLI5ISA.js → chunk-JLKEXS4I.js} +2 -2
- package/dist/{chunk-SGTO3Y2K.js → chunk-JLLNDU2F.js} +84 -8
- package/dist/{chunk-TGX5AWVQ.js → chunk-KAWNVSAE.js} +7 -7
- package/dist/{chunk-DUZII3C4.js → chunk-KJDQS24S.js} +2 -2
- package/dist/{chunk-NYQRWXZZ.js → chunk-KJLZZ4MY.js} +1 -1
- package/dist/{chunk-EOVTVB5X.js → chunk-KXAGCBVO.js} +250 -137
- package/dist/{chunk-7SYZRT4L.js → chunk-L6MNWJTL.js} +1 -1
- package/dist/{chunk-Q4PFOT6Z.js → chunk-LS4CCRTK.js} +1 -1
- package/dist/{chunk-VGARKT5Y.js → chunk-M4WEGGF7.js} +2 -2
- package/dist/{chunk-ZXD4YXXC.js → chunk-ODKXNWDL.js} +2 -2
- package/dist/{chunk-6U4EV64B.js → chunk-P5GOQDA2.js} +8 -8
- package/dist/{chunk-GS4C2FNZ.js → chunk-PWYAOU4I.js} +1 -1
- package/dist/{chunk-IIBNGLEX.js → chunk-QDB7EFLI.js} +259 -50
- package/dist/{chunk-5PKNT2BQ.js → chunk-RYNMIBZM.js} +2 -2
- package/dist/{chunk-65ERKMRH.js → chunk-SAWXMCHB.js} +1 -1
- package/dist/{chunk-A2PZLDHN.js → chunk-SWWDVPVO.js} +7 -4
- package/dist/{chunk-KBKDDTOZ.js → chunk-T57ARBNR.js} +7 -7
- package/dist/{chunk-VGIEM4JZ.js → chunk-TIXW6JWD.js} +1 -1
- package/dist/chunk-TNWWLO4T.js +5030 -0
- package/dist/{chunk-R5XOR2IO.js → chunk-TS4HYR6I.js} +1 -1
- package/dist/{chunk-AQW3ZDDM.js → chunk-VFOCEFRZ.js} +5 -5
- package/dist/{chunk-SXGR4GCO.js → chunk-VG4JPJMI.js} +2 -2
- package/dist/{chunk-TLYTMIXP.js → chunk-VWRIARRR.js} +12 -12
- package/dist/{chunk-T46SP3UD.js → chunk-W3G7DNCR.js} +2 -2
- package/dist/{chunk-6OBVJUMS.js → chunk-WCET3OHQ.js} +4 -4
- package/dist/{chunk-U7DQYDRQ.js → chunk-XC3LDNBH.js} +1 -1
- package/dist/{chunk-VVPDROQU.js → chunk-YDG5LVIK.js} +4 -4
- package/dist/{chunk-QT7F5JKP.js → chunk-YFISKULK.js} +2 -2
- package/dist/{chunk-F4LQGW5F.js → chunk-YIWNZ2CI.js} +13 -13
- package/dist/{chunk-WTUIK6Y4.js → chunk-YOZPHSYV.js} +2 -0
- package/dist/{chunk-DRXVRDUX.js → chunk-YUMVQB2F.js} +1 -1
- package/dist/{chunk-YBFS5PCE.js → chunk-YVUOJW4H.js} +1 -1
- package/dist/{chunk-FI7SOWBQ.js → chunk-YY7YI2FW.js} +1 -1
- package/dist/{chunk-RISL4HHS.js → chunk-ZP3LPFTA.js} +9 -9
- package/dist/{chunk-5NWS6KLM.js → chunk-ZR2GMFNH.js} +2 -2
- package/dist/{chunk-H7KAHDJJ.js → chunk-ZV5GD5LV.js} +3 -3
- package/dist/{clean-T7DQNAR2.js → clean-2AFJGFIG.js} +15 -15
- package/dist/cli.js +58 -57
- package/dist/{cloud-S4DTHZEW.js → cloud-JM5MFMVV.js} +4 -4
- package/dist/{cloudrun-TWSNNKIV.js → cloudrun-PNVETMPA.js} +4 -4
- package/dist/{compare-UZS33RAM.js → compare-ST4DXEMX.js} +26 -26
- package/dist/{compiler-SKQTN3EA.js → compiler-UCX3MZVN.js} +2 -2
- package/dist/{component-RHX4425M.js → component-ECFJIDUD.js} +3 -3
- package/dist/{compositions-PE5F4Z6K.js → compositions-ZCAD47PD.js} +9 -9
- package/dist/{curve-NFVM6GS3.js → curve-NYXZWGPO.js} +9 -9
- package/dist/{cuts-EKHMAUOZ.js → cuts-CKUCNNOX.js} +10 -10
- package/dist/{delete-IQQLQS7T.js → delete-MVGSOWSC.js} +2 -2
- package/dist/{deploy-GG24Q4EE.js → deploy-WBKPSWPG.js} +4 -4
- package/dist/{describeProject-DCUVSIOQ.js → describeProject-ZDI5B6JO.js} +6 -6
- package/dist/{diff-IQVYEYA3.js → diff-3UYDXIEZ.js} +21 -21
- package/dist/{dist-4KKPG6A5.js → dist-XRAW3URT.js} +2 -2
- package/dist/{doctor-BEFL6PWV.js → doctor-A4HMMBII.js} +9 -9
- package/dist/{energy-LZY5CQVP.js → energy-RN6KTYH6.js} +10 -10
- package/dist/{events-C335VVXI.js → events-6NE2NRCQ.js} +12 -12
- package/dist/{events-VSDE4FFW.js → events-AO3FEPL3.js} +3 -3
- package/dist/{events-Z4I2YBA4.js → events-LSEMS2LO.js} +2 -2
- package/dist/{extract-N4KV7KUQ.js → extract-6UO4QR77.js} +10 -10
- package/dist/{face-DCKACTUC.js → face-FTKPGC2O.js} +10 -10
- package/dist/{feedback-FQ2P62K7.js → feedback-GSKVBGA7.js} +6 -6
- package/dist/{ffmpeg-HYYU3M6K.js → ffmpeg-HPMQUKY4.js} +5 -5
- package/dist/{figma-JWZLYFMJ.js → figma-UIWB3XSX.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-Z6ATQUGJ.js → frames-U3LLSXSV.js} +11 -11
- package/dist/{generate-FHVQMXVB.js → generate-AFCKBHGB.js} +13 -13
- package/dist/{get-FBUXTOJS.js → get-J3TJCAZW.js} +2 -2
- package/dist/{gpuPolicy-MNPLXHRJ.js → gpuPolicy-W2OEEW7Y.js} +5 -5
- package/dist/{grade-compare-ELKVVO7W.js → grade-compare-AOXNJ53Z.js} +27 -27
- package/dist/{heifImagePrep-ALPO36IR.js → heifImagePrep-4RSVCLPX.js} +6 -6
- package/dist/{help-JHGASQ27.js → help-5NYIBLJJ.js} +2 -1
- package/dist/{history-R3MGVTZ2.js → history-KAXYCLVT.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +90 -3
- package/dist/{info-G4NZMSC5.js → info-Z6KNUMH6.js} +7 -7
- package/dist/{init-DS4YZTWE.js → init-GSMXQX3U.js} +30 -27
- package/dist/{ink-6KESLHVK.js → ink-IPPBJFH3.js} +10 -10
- package/dist/{inspect-T3YH6Y7Z.js → inspect-MXIGEN6Z.js} +27 -27
- package/dist/{installer-YVNEAOSW.js → installer-JXI2JC3T.js} +4 -4
- package/dist/{keyframes-6QMTPUAB.js → keyframes-Z53YGH5F.js} +6 -6
- package/dist/{lambda-PVKMQ5RR.js → lambda-KD7ZRYVK.js} +9 -9
- package/dist/{layout-ZNH7EW6L.js → layout-NLDWEPDQ.js} +27 -27
- package/dist/{lint-FF7YK3QK.js → lint-MSZMGQO5.js} +6 -6
- package/dist/{list-TJTH6NN6.js → list-OLNBKKB4.js} +2 -2
- package/dist/{localPage-TUWJD4GJ.js → localPage-BQ2LKHED.js} +5 -5
- package/dist/{login-3GRKVAMH.js → login-TBJVG5PZ.js} +4 -4
- package/dist/{look-5ZFSZPPB.js → look-T5V6JBD5.js} +10 -10
- package/dist/{manager-POO6RLB4.js → manager-FHVSGJNR.js} +6 -6
- package/dist/{measure-OYR7XHOE.js → measure-KI3XY2MJ.js} +11 -11
- package/dist/{media-treatment-PJ3NZ2PR.js → media-treatment-UZI55RS3.js} +11 -11
- package/dist/{media-use-PQUFJ2ZJ.js → media-use-2PIPVWX4.js} +1 -1
- package/dist/{models-RCJQAORM.js → models-MV4HBZKZ.js} +9 -9
- package/dist/{motionShot-2UAWH6B2.js → motionShot-A3TWOBRE.js} +13 -13
- package/dist/{normalize-audio-ESIM3KEX.js → normalize-audio-37WYHLP4.js} +8 -8
- package/dist/{open-A3DRPHEK.js → open-4PPPV45S.js} +11 -11
- package/dist/{parakeetRunner-W2EYPYLF.js → parakeetRunner-J22MMWSM.js} +10 -10
- package/dist/{pipeline-KIFB5R5M.js → pipeline-GE4LBTRO.js} +8 -8
- package/dist/{play-26X5I67T.js → play-MZSW7GIL.js} +18 -18
- package/dist/{preflight-RF5UZJUA.js → preflight-NXMN7P4B.js} +6 -6
- package/dist/{present-7IFGQBVD.js → present-TWZLASXI.js} +14 -14
- package/dist/{preview-IAMB4ULR.js → preview-OEXP2RPO.js} +16 -16
- package/dist/probe-HNAD6ACH.js +69 -0
- package/dist/{producer-6NKNMOIT.js → producer-E4AN4ADM.js} +1 -1
- package/dist/{projectConfig-MYKQOOIG.js → projectConfig-HKWVTV5Q.js} +10 -6
- package/dist/{publication-BS2YATIF.js → publication-DTIE7G2E.js} +2 -2
- package/dist/{publish-3BUTNKVA.js → publish-CUU5W6CP.js} +8 -8
- package/dist/{remove-background-PEJXPBJA.js → remove-background-2MRQ3YH4.js} +9 -9
- package/dist/{render-W72TDIHA.js → render-EEIQAOGV.js} +34 -15
- package/dist/{render-3FANM5MO.js → render-JP6JUXWP.js} +5 -5
- package/dist/{render-HGGE5CBB.js → render-QRWGJUCD.js} +37 -32
- package/dist/{render-batch-DPWJHKFY.js → render-batch-46SYPMYV.js} +5 -5
- package/dist/{resolver-5IXI5IFJ.js → resolver-DPRCISSD.js} +4 -4
- package/dist/reverse-MY6DSOXL.js +32 -0
- package/dist/{run-MTGSR5HH.js → run-2VGZ3URU.js} +1 -1
- package/dist/{sherpa-4GLU4QU7.js → sherpa-5LOEXZ46.js} +9 -9
- package/dist/{skills-3IEY3EGH.js → skills-BBHR4SHX.js} +5 -5
- package/dist/{skillsUpdateCheck-6HQLY6GT.js → skillsUpdateCheck-HBOVCIXG.js} +3 -3
- package/dist/{snapshot-UNRFRCCW.js → snapshot-S264O54Z.js} +31 -31
- package/dist/{src-FT34LZAJ.js → src-G2EK32ZO.js} +15 -7
- package/dist/{src-VWCIVPJX.js → src-GLO4X3WA.js} +20 -4
- package/dist/start-6AFMEXPO.js +226 -0
- package/dist/{staticProjectServer-WFK4N6P3.js → staticProjectServer-KWSV5IRS.js} +16 -16
- package/dist/{status-Z5BPMROD.js → status-5ZRM4R4N.js} +1 -1
- package/dist/studio/assets/hyperframes-player-CGO8wE5a.js +565 -0
- package/dist/studio/assets/{index-EB7sh_Tw.js → index-COtefOSM.js} +1 -1
- package/dist/studio/assets/{index-h1lPtzPa.js → index-DHPJjAUV.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OTNMLH4B.js → studio-api-JJO6VEFD.js} +8 -8
- package/dist/{studioServer-3CHSYLFZ.js → studioServer-YFZIESIH.js} +45 -45
- package/dist/{sync-2IZJ7HAC.js → sync-DBMNZ32Z.js} +10 -10
- package/dist/{telemetry-DHLLX5EC.js → telemetry-OPZTKPDG.js} +3 -3
- package/dist/{timeline-TK4RV66K.js → timeline-MCJUCDME.js} +16 -16
- package/dist/{tokens-PV67HFRX.js → tokens-3DREMPWC.js} +2 -2
- package/dist/{transcribe-HJ3AWR2D.js → transcribe-AU7TPKMU.js} +8 -8
- package/dist/{transcribe-5HXQG64W.js → transcribe-TMGPK6FM.js} +17 -17
- package/dist/{updateCheck-EI4WIVIS.js → updateCheck-YKTRFFFV.js} +2 -2
- package/dist/{upgrade-ADM4CRK4.js → upgrade-UAKM3KAT.js} +2 -2
- package/dist/{urlDownloader-6TM5CH5Q.js → urlDownloader-77YL7TXO.js} +4 -4
- package/dist/{validate-K27UCOGM.js → validate-SR35R3QM.js} +21 -21
- package/dist/{video-KAN4FULD.js → video-GNMQTE4D.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
- package/dist/chunk-2YQ2XYO5.js +0 -5030
- package/dist/probe-EZS36TUR.js +0 -179
- package/dist/studio/assets/hyperframes-player--MmARLPY.js +0 -478
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-HVW7ABXD.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_REGISTRY_URL
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SWWDVPVO.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/projectConfig.ts
|
|
18
|
-
import { readFileSync, writeFileSync } from "fs";
|
|
18
|
+
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
19
19
|
import { join, resolve } from "path";
|
|
20
20
|
var PROJECT_CONFIG_FILENAME = "hyperframes.json";
|
|
21
21
|
var PROJECT_CONFIG_SCHEMA_URL = "https://hyperframes.heygen.com/schema/hyperframes.json";
|
|
@@ -72,9 +72,14 @@ function normalizeConfig(partial) {
|
|
|
72
72
|
// Whitelist rebuild - an omission here silently drops the manifest on
|
|
73
73
|
// every config round-trip, which would read as "this project never
|
|
74
74
|
// installed a catalog item".
|
|
75
|
-
registryItems: normalizeRegistryItems(partial.registryItems)
|
|
75
|
+
registryItems: normalizeRegistryItems(partial.registryItems),
|
|
76
|
+
reverseSessionId: normalizeReverseSessionId(partial.reverseSessionId)
|
|
76
77
|
};
|
|
77
78
|
}
|
|
79
|
+
var REVERSE_SESSION_ID = /^rvs_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
80
|
+
function normalizeReverseSessionId(raw) {
|
|
81
|
+
return typeof raw === "string" && REVERSE_SESSION_ID.test(raw) ? raw : void 0;
|
|
82
|
+
}
|
|
78
83
|
function normalizeRegistryItems(raw) {
|
|
79
84
|
if (!Array.isArray(raw)) return void 0;
|
|
80
85
|
const items = raw.filter(
|
|
@@ -101,6 +106,14 @@ function resolveAutoProxy(projectDir, flagValue) {
|
|
|
101
106
|
function isJsonObject(value) {
|
|
102
107
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
103
108
|
}
|
|
109
|
+
function rewriteConfig(path, text, parsed) {
|
|
110
|
+
const indent = /\n([ \t]+)"/.exec(text)?.[1] ?? " ";
|
|
111
|
+
writeFileSync(
|
|
112
|
+
path,
|
|
113
|
+
(text.startsWith("\uFEFF") ? "\uFEFF" : "") + JSON.stringify(parsed, null, indent) + "\n",
|
|
114
|
+
"utf-8"
|
|
115
|
+
);
|
|
116
|
+
}
|
|
104
117
|
function isFileNotFound(error) {
|
|
105
118
|
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
106
119
|
}
|
|
@@ -125,12 +138,7 @@ function seedProjectAuthoringSkill(projectDir, rawSkill) {
|
|
|
125
138
|
if (!isJsonObject(parsed)) return;
|
|
126
139
|
if (normalizeSkillSlug(parsed.authoringSkill)) return;
|
|
127
140
|
parsed.authoringSkill = skill;
|
|
128
|
-
|
|
129
|
-
writeFileSync(
|
|
130
|
-
path,
|
|
131
|
-
(text.startsWith("\uFEFF") ? "\uFEFF" : "") + JSON.stringify(parsed, null, indent) + "\n",
|
|
132
|
-
"utf-8"
|
|
133
|
-
);
|
|
141
|
+
rewriteConfig(path, text, parsed);
|
|
134
142
|
} catch {
|
|
135
143
|
}
|
|
136
144
|
}
|
|
@@ -156,13 +164,42 @@ function recordProjectRegistryItems(projectDir, items) {
|
|
|
156
164
|
});
|
|
157
165
|
if (unchanged) return;
|
|
158
166
|
parsed.registryItems = merged;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
rewriteConfig(path, text, parsed);
|
|
168
|
+
} catch {
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function recordProjectReverseSession(projectDir, sessionId, authoringSkill) {
|
|
172
|
+
if (!normalizeReverseSessionId(sessionId)) return void 0;
|
|
173
|
+
const path = projectConfigPath(projectDir);
|
|
174
|
+
let text;
|
|
175
|
+
try {
|
|
176
|
+
text = readFileSync(path, "utf-8");
|
|
177
|
+
} catch (error) {
|
|
178
|
+
if (!isFileNotFound(error)) return void 0;
|
|
179
|
+
try {
|
|
180
|
+
mkdirSync(resolve(projectDir), { recursive: true });
|
|
181
|
+
createProjectConfig(projectDir, {
|
|
182
|
+
...DEFAULT_PROJECT_CONFIG,
|
|
183
|
+
authoringSkill: normalizeSkillSlug(authoringSkill),
|
|
184
|
+
reverseSessionId: sessionId
|
|
185
|
+
});
|
|
186
|
+
return path;
|
|
187
|
+
} catch {
|
|
188
|
+
return void 0;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
try {
|
|
192
|
+
const parsed = JSON.parse(text.replace(/^\uFEFF/, ""));
|
|
193
|
+
if (!isJsonObject(parsed)) return void 0;
|
|
194
|
+
parsed.reverseSessionId = sessionId;
|
|
195
|
+
if (!normalizeSkillSlug(parsed.authoringSkill)) {
|
|
196
|
+
const skill = normalizeSkillSlug(authoringSkill);
|
|
197
|
+
if (skill) parsed.authoringSkill = skill;
|
|
198
|
+
}
|
|
199
|
+
rewriteConfig(path, text, parsed);
|
|
200
|
+
return path;
|
|
165
201
|
} catch {
|
|
202
|
+
return void 0;
|
|
166
203
|
}
|
|
167
204
|
}
|
|
168
205
|
|
|
@@ -173,10 +210,12 @@ export {
|
|
|
173
210
|
readProjectConfigWithStatus,
|
|
174
211
|
readProjectConfig,
|
|
175
212
|
normalizeConfig,
|
|
213
|
+
normalizeReverseSessionId,
|
|
176
214
|
writeProjectConfig,
|
|
177
215
|
createProjectConfig,
|
|
178
216
|
loadProjectConfig,
|
|
179
217
|
resolveAutoProxy,
|
|
180
218
|
seedProjectAuthoringSkill,
|
|
181
|
-
recordProjectRegistryItems
|
|
219
|
+
recordProjectRegistryItems,
|
|
220
|
+
recordProjectReverseSession
|
|
182
221
|
};
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QDB7EFLI.js";
|
|
12
12
|
import {
|
|
13
13
|
renameWithRetry
|
|
14
14
|
} from "./chunk-YWRUQ7XZ.js";
|
|
15
15
|
import {
|
|
16
16
|
parseAnimatedGifMetadata
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6JMNJYYR.js";
|
|
18
18
|
import {
|
|
19
19
|
parseHTML
|
|
20
20
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -7,32 +7,32 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SAWXMCHB.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-APVBITVZ.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3SB24TVT.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IG3GSBHB.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SWWDVPVO.js";
|
|
30
30
|
import {
|
|
31
31
|
readJsonFlag
|
|
32
32
|
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-G4VDT5D7.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6JMNJYYR.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G4VDT5D7.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LS4CCRTK.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-FDPS57FU.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-HPMQUKY4.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LS4CCRTK.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FIIFME5M.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-OPZTKPDG.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -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-IVFZG3CU.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-QDB7EFLI.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -116,18 +116,18 @@ async function heygenHeaders() {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
async function serviceAccess(env, path, defaultMs) {
|
|
119
|
-
const timeout = Number(process.env[env.timeout]);
|
|
119
|
+
const timeout = env ? Number(process.env[env.timeout]) : 0;
|
|
120
120
|
const timeoutMs = timeout > 0 ? timeout : defaultMs;
|
|
121
|
-
const url = process.env[env.url]?.trim();
|
|
122
|
-
const key = process.env[env.key]?.trim();
|
|
123
|
-
if (url === "") return `${env.url} is empty, which turns this service off`;
|
|
121
|
+
const url = env ? process.env[env.url]?.trim() : void 0;
|
|
122
|
+
const key = env ? process.env[env.key]?.trim() : void 0;
|
|
123
|
+
if (env && url === "") return `${env.url} is empty, which turns this service off`;
|
|
124
124
|
if (key)
|
|
125
125
|
return {
|
|
126
126
|
url: url || `${resolveCloudBaseUrl()}${path}`,
|
|
127
127
|
headers: { "x-api-key": key },
|
|
128
128
|
timeoutMs
|
|
129
129
|
};
|
|
130
|
-
if (url) return `${env.url} is set but ${env.key} is not`;
|
|
130
|
+
if (env && url) return `${env.url} is set but ${env.key} is not`;
|
|
131
131
|
const headers = await heygenHeaders();
|
|
132
132
|
if (typeof headers === "string") return headers;
|
|
133
133
|
return { url: `${resolveCloudBaseUrl()}${path}`, headers, timeoutMs };
|
|
@@ -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-AO3FEPL3.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
|
probeAudioTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4VOK22DG.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveWithinProject
|
|
12
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MAX_AUDIO_GAIN_DB,
|
|
15
15
|
formatAudioGain,
|
|
16
16
|
isAudibleVideoElement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TNWWLO4T.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-HYRPH6LL.js";
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G4VDT5D7.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LS4CCRTK.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PWYAOU4I.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-E2VWKW2A.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QDB7EFLI.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -432,7 +432,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
432
432
|
}
|
|
433
433
|
async function probeMedia(inputPath) {
|
|
434
434
|
const isImage = inferInputKind(inputPath) === "image";
|
|
435
|
-
const engine = await import("./src-
|
|
435
|
+
const engine = await import("./src-GLO4X3WA.js");
|
|
436
436
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
437
437
|
if (isImage) {
|
|
438
438
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SWWDVPVO.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6JMNJYYR.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QDB7EFLI.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-GLO4X3WA.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JFIBO4CZ.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6JMNJYYR.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
23
|
} from "./chunk-NASVSJQK.js";
|