hyperframes 0.9.5 → 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.
Files changed (212) hide show
  1. package/dist/{add-XI5CW2YO.js → add-FI2ERBMZ.js} +11 -11
  2. package/dist/{agentPromptGenerator-EEP7CJRK.js → agentPromptGenerator-DZTXHJV3.js} +5 -5
  3. package/dist/{animatedGifPrep-3VKPC32B.js → animatedGifPrep-GXQA4KCD.js} +5 -5
  4. package/dist/api.d.ts +2 -0
  5. package/dist/api.js +19 -19
  6. package/dist/{asset-RYVHIREA.js → asset-BRSG6JNL.js} +2 -2
  7. package/dist/{assetCataloger-MG3GSWNQ.js → assetCataloger-KVWF4SRK.js} +6 -6
  8. package/dist/{audio-CNKU2KQR.js → audio-BVZOX6LU.js} +502 -143
  9. package/dist/{auth-MX2SGZQH.js → auth-HFFN7USX.js} +2 -2
  10. package/dist/{autoUpdate-MB3SWOXG.js → autoUpdate-JNGMUXLZ.js} +2 -2
  11. package/dist/{backgroundChecks-TYCDOGQX.js → backgroundChecks-O4ADPXOL.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-PHXZBVEA.js → batchRender-A2HW6QW7.js} +3 -3
  14. package/dist/{beats-5SXSGNUM.js → beats-F7Q3G6VW.js} +7 -7
  15. package/dist/{benchmark-V5Y5OQ3W.js → benchmark-4BDMIYTW.js} +8 -8
  16. package/dist/{billing-FFWAEIQ6.js → billing-35NVMZWK.js} +1 -1
  17. package/dist/{browser-CJ2HDBEC.js → browser-S6ADXSB7.js} +3 -3
  18. package/dist/{bundleWithLocalizedFonts-2FPP3MMD.js → bundleWithLocalizedFonts-EE27EYEU.js} +2 -2
  19. package/dist/{capture-424KH55L.js → capture-CXDJO524.js} +18 -18
  20. package/dist/{capture-KE3474CJ.js → capture-LWWBL6SH.js} +3 -3
  21. package/dist/{captureCompositionFrame-ZPZCQTYL.js → captureCompositionFrame-BB2ZGM6R.js} +10 -10
  22. package/dist/{catalog-3S4LAGZH.js → catalog-RQ6HIUBG.js} +11 -11
  23. package/dist/{catch-up-7ZLNBOG4.js → catch-up-PBAXR7FI.js} +4 -4
  24. package/dist/{check-6OCBPXX5.js → check-O4V4UWE3.js} +35 -35
  25. package/dist/{checkAudio-O5RDEOEX.js → checkAudio-EUT3AO3L.js} +8 -8
  26. package/dist/{checkBrowser-DJPH634D.js → checkBrowser-QQUBR4QI.js} +29 -29
  27. package/dist/{chunk-GC2GKCRQ.js → chunk-27AVZR7K.js} +17 -17
  28. package/dist/{chunk-JZJ3LLIO.js → chunk-2FNUCIHD.js} +1 -1
  29. package/dist/{chunk-ARNCWQNR.js → chunk-2KO357TJ.js} +1 -1
  30. package/dist/chunk-2KYY75JP.js +134 -0
  31. package/dist/{chunk-KLJEGC6M.js → chunk-3SB24TVT.js} +1 -1
  32. package/dist/{chunk-BXE6GDIL.js → chunk-44T2V4EW.js} +1 -1
  33. package/dist/{chunk-MX7NW3QW.js → chunk-47IBOMXH.js} +3 -3
  34. package/dist/{chunk-JDT5PZWS.js → chunk-4E7G2GME.js} +1 -1
  35. package/dist/{chunk-CRDXU4IX.js → chunk-4III3SDC.js} +9 -9
  36. package/dist/{chunk-CS6UO5NC.js → chunk-4VOK22DG.js} +1 -1
  37. package/dist/{chunk-TI4JPSFS.js → chunk-5BCFV2HE.js} +3 -3
  38. package/dist/{chunk-5T2D2XYR.js → chunk-6GZB32Q5.js} +1 -1
  39. package/dist/{chunk-HWIGWPIG.js → chunk-6JMNJYYR.js} +1 -1
  40. package/dist/{chunk-HDKRDALC.js → chunk-6UOHLXVU.js} +2 -2
  41. package/dist/{chunk-MGXQXY4C.js → chunk-7DKGU6CY.js} +2 -2
  42. package/dist/{chunk-WAQX3AYB.js → chunk-AB3ZXWI3.js} +1 -1
  43. package/dist/{chunk-5TBRPDH3.js → chunk-APVBITVZ.js} +55 -16
  44. package/dist/{chunk-XXFWK5Y7.js → chunk-BIJBGCF4.js} +1 -1
  45. package/dist/{chunk-ALBHEVJJ.js → chunk-BMRZP6X6.js} +1 -1
  46. package/dist/{chunk-YGSQABOD.js → chunk-BQQTZET2.js} +2 -2
  47. package/dist/{chunk-VPVO5COM.js → chunk-BUDP4GF4.js} +1 -1
  48. package/dist/{chunk-QIFINY2N.js → chunk-C47ZGVKT.js} +7 -7
  49. package/dist/{chunk-ZFQ4N6D2.js → chunk-CUAZHDVV.js} +3 -3
  50. package/dist/{chunk-TWIPYH4G.js → chunk-DETBSOYO.js} +1 -1
  51. package/dist/{chunk-C555UZ5B.js → chunk-DUSSDJJC.js} +2 -2
  52. package/dist/{chunk-NRO2PLEC.js → chunk-E2VWKW2A.js} +2 -2
  53. package/dist/{chunk-IWMVCOUX.js → chunk-FB366S4I.js} +5 -5
  54. package/dist/{chunk-6447ORC2.js → chunk-FDZXVTBY.js} +1 -1
  55. package/dist/{chunk-JAYAOI3W.js → chunk-FIIFME5M.js} +1 -1
  56. package/dist/{chunk-JX5GUEFA.js → chunk-FM7VWSN3.js} +1 -1
  57. package/dist/{chunk-MYTROPEC.js → chunk-FP37FSOT.js} +2 -2
  58. package/dist/{chunk-64OUBJSX.js → chunk-G4VDT5D7.js} +1 -1
  59. package/dist/{chunk-EG2ESF6S.js → chunk-GKVERDJ2.js} +1 -1
  60. package/dist/{chunk-CGXL36FR.js → chunk-GP7OHHXR.js} +1 -1
  61. package/dist/{chunk-KW2ZREKY.js → chunk-GR3LU4D5.js} +1 -1
  62. package/dist/{chunk-6PLIPRVQ.js → chunk-GYPSZFRF.js} +2 -2
  63. package/dist/{chunk-7FERR4YN.js → chunk-HTTGTROQ.js} +1 -1
  64. package/dist/{chunk-PMQ65BTY.js → chunk-I2OMLFBJ.js} +1 -1
  65. package/dist/{chunk-7XCGHD55.js → chunk-I47SIQGX.js} +4 -4
  66. package/dist/{chunk-PYOEIKGI.js → chunk-IG3GSBHB.js} +2 -2
  67. package/dist/{chunk-46DXV7OQ.js → chunk-IVFZG3CU.js} +2 -2
  68. package/dist/{chunk-HZMM3D6P.js → chunk-JFIBO4CZ.js} +1 -1
  69. package/dist/{chunk-2RLI5ISA.js → chunk-JLKEXS4I.js} +2 -2
  70. package/dist/{chunk-SXKFFBN3.js → chunk-JLLNDU2F.js} +84 -8
  71. package/dist/{chunk-JAJ6PAR6.js → chunk-KAWNVSAE.js} +7 -7
  72. package/dist/{chunk-5FAU3XAO.js → chunk-KJDQS24S.js} +2 -2
  73. package/dist/{chunk-SBPDYU34.js → chunk-KJLZZ4MY.js} +1 -1
  74. package/dist/{chunk-MCROAQ7A.js → chunk-KXAGCBVO.js} +8 -8
  75. package/dist/{chunk-HMMHCSSN.js → chunk-L6MNWJTL.js} +1 -1
  76. package/dist/{chunk-HZDSKYTV.js → chunk-LS4CCRTK.js} +1 -1
  77. package/dist/{chunk-Y6TDJUHR.js → chunk-M4WEGGF7.js} +2 -2
  78. package/dist/{chunk-UL3SKAZB.js → chunk-ODKXNWDL.js} +2 -2
  79. package/dist/{chunk-6U4EV64B.js → chunk-P5GOQDA2.js} +8 -8
  80. package/dist/{chunk-MBOZUQFZ.js → chunk-PWYAOU4I.js} +1 -1
  81. package/dist/{chunk-RTUQDHKE.js → chunk-QDB7EFLI.js} +94 -10
  82. package/dist/{chunk-YK6ERJTN.js → chunk-RYNMIBZM.js} +2 -2
  83. package/dist/{chunk-YPBGUVLY.js → chunk-SAWXMCHB.js} +1 -1
  84. package/dist/{chunk-NUGADGXQ.js → chunk-SWWDVPVO.js} +1 -1
  85. package/dist/{chunk-RW4DTMPK.js → chunk-T57ARBNR.js} +7 -7
  86. package/dist/{chunk-44IJ426Z.js → chunk-TIXW6JWD.js} +1 -1
  87. package/dist/chunk-TNWWLO4T.js +5030 -0
  88. package/dist/{chunk-M56MEMPF.js → chunk-TS4HYR6I.js} +1 -1
  89. package/dist/{chunk-FEC4UQK2.js → chunk-VFOCEFRZ.js} +5 -5
  90. package/dist/{chunk-K4SINZFP.js → chunk-VG4JPJMI.js} +2 -2
  91. package/dist/{chunk-MNW4FTAJ.js → chunk-VWRIARRR.js} +12 -12
  92. package/dist/{chunk-T46SP3UD.js → chunk-W3G7DNCR.js} +2 -2
  93. package/dist/{chunk-WAK6IPMP.js → chunk-WCET3OHQ.js} +4 -4
  94. package/dist/{chunk-5FFHLOVF.js → chunk-XC3LDNBH.js} +1 -1
  95. package/dist/{chunk-JD7MLLJD.js → chunk-YDG5LVIK.js} +4 -4
  96. package/dist/{chunk-NVPB37H4.js → chunk-YFISKULK.js} +2 -2
  97. package/dist/{chunk-S5SVW6ZY.js → chunk-YIWNZ2CI.js} +13 -13
  98. package/dist/{chunk-WTUIK6Y4.js → chunk-YOZPHSYV.js} +2 -0
  99. package/dist/{chunk-DRXVRDUX.js → chunk-YUMVQB2F.js} +1 -1
  100. package/dist/{chunk-RUZ63CJF.js → chunk-YVUOJW4H.js} +1 -1
  101. package/dist/{chunk-4W2ZN4HT.js → chunk-YY7YI2FW.js} +1 -1
  102. package/dist/{chunk-3B3LGZ36.js → chunk-ZP3LPFTA.js} +9 -9
  103. package/dist/{chunk-Q2LWMJAQ.js → chunk-ZR2GMFNH.js} +2 -2
  104. package/dist/{chunk-H7KAHDJJ.js → chunk-ZV5GD5LV.js} +3 -3
  105. package/dist/{clean-ZKPZ4HHG.js → clean-2AFJGFIG.js} +15 -15
  106. package/dist/cli.js +58 -57
  107. package/dist/{cloud-GQZYBRBI.js → cloud-JM5MFMVV.js} +4 -4
  108. package/dist/{cloudrun-TWSNNKIV.js → cloudrun-PNVETMPA.js} +4 -4
  109. package/dist/{compare-3IXL3WVG.js → compare-ST4DXEMX.js} +26 -26
  110. package/dist/{compiler-SKQTN3EA.js → compiler-UCX3MZVN.js} +2 -2
  111. package/dist/{component-RV72K74J.js → component-ECFJIDUD.js} +3 -3
  112. package/dist/{compositions-W2IKF36U.js → compositions-ZCAD47PD.js} +9 -9
  113. package/dist/{curve-TRCKVHYB.js → curve-NYXZWGPO.js} +9 -9
  114. package/dist/{cuts-SRXTGX33.js → cuts-CKUCNNOX.js} +10 -10
  115. package/dist/{delete-7PZLZFBE.js → delete-MVGSOWSC.js} +2 -2
  116. package/dist/{deploy-GORJQIPX.js → deploy-WBKPSWPG.js} +4 -4
  117. package/dist/{describeProject-ZIFVZUSV.js → describeProject-ZDI5B6JO.js} +6 -6
  118. package/dist/{diff-PHRMVJMC.js → diff-3UYDXIEZ.js} +21 -21
  119. package/dist/{dist-4KKPG6A5.js → dist-XRAW3URT.js} +2 -2
  120. package/dist/{doctor-C6Q2FECX.js → doctor-A4HMMBII.js} +9 -9
  121. package/dist/{energy-CNXVSSE6.js → energy-RN6KTYH6.js} +10 -10
  122. package/dist/{events-FSUH46NR.js → events-6NE2NRCQ.js} +12 -12
  123. package/dist/{events-27C4TXPP.js → events-AO3FEPL3.js} +3 -3
  124. package/dist/{events-UG3LC2PB.js → events-LSEMS2LO.js} +2 -2
  125. package/dist/{extract-GLPADLLV.js → extract-6UO4QR77.js} +10 -10
  126. package/dist/{face-TTOHRJEY.js → face-FTKPGC2O.js} +10 -10
  127. package/dist/{feedback-BYONPSSM.js → feedback-GSKVBGA7.js} +6 -6
  128. package/dist/{ffmpeg-WAM27CD6.js → ffmpeg-HPMQUKY4.js} +5 -5
  129. package/dist/{figma-Y4UR2EDE.js → figma-UIWB3XSX.js} +3 -3
  130. package/dist/fontLocalizeCli.js +8 -8
  131. package/dist/{frames-CNQUJEUV.js → frames-U3LLSXSV.js} +11 -11
  132. package/dist/{generate-BPYDIEPB.js → generate-AFCKBHGB.js} +13 -13
  133. package/dist/{get-4LY5VJW2.js → get-J3TJCAZW.js} +2 -2
  134. package/dist/{gpuPolicy-OUHJ7GVX.js → gpuPolicy-W2OEEW7Y.js} +5 -5
  135. package/dist/{grade-compare-WEZBE3WM.js → grade-compare-AOXNJ53Z.js} +27 -27
  136. package/dist/{heifImagePrep-7L4HH33F.js → heifImagePrep-4RSVCLPX.js} +6 -6
  137. package/dist/{help-QKNWJOBV.js → help-5NYIBLJJ.js} +2 -1
  138. package/dist/{history-XQEWP2IW.js → history-KAXYCLVT.js} +6 -6
  139. package/dist/hyperframe.manifest.json +1 -1
  140. package/dist/hyperframe.runtime.iife.js +64 -64
  141. package/dist/hyperframes-player.global.js +90 -3
  142. package/dist/{info-AMRQ5R4N.js → info-Z6KNUMH6.js} +7 -7
  143. package/dist/{init-4VTMKZSQ.js → init-GSMXQX3U.js} +30 -27
  144. package/dist/{ink-KB3LZMJY.js → ink-IPPBJFH3.js} +10 -10
  145. package/dist/{inspect-ZWN2DVO4.js → inspect-MXIGEN6Z.js} +27 -27
  146. package/dist/{installer-2NUMLKHQ.js → installer-JXI2JC3T.js} +4 -4
  147. package/dist/{keyframes-I456RFGP.js → keyframes-Z53YGH5F.js} +6 -6
  148. package/dist/{lambda-2QKB4BJM.js → lambda-KD7ZRYVK.js} +9 -9
  149. package/dist/{layout-WPHWXQCM.js → layout-NLDWEPDQ.js} +27 -27
  150. package/dist/{lint-EO5DXJ36.js → lint-MSZMGQO5.js} +6 -6
  151. package/dist/{list-LZOUUJBY.js → list-OLNBKKB4.js} +2 -2
  152. package/dist/{localPage-SZWQWWJ7.js → localPage-BQ2LKHED.js} +5 -5
  153. package/dist/{login-IEWPNTGD.js → login-TBJVG5PZ.js} +4 -4
  154. package/dist/{look-6L3CPY4H.js → look-T5V6JBD5.js} +10 -10
  155. package/dist/{manager-C7677YAV.js → manager-FHVSGJNR.js} +6 -6
  156. package/dist/{measure-TINTS6YY.js → measure-KI3XY2MJ.js} +11 -11
  157. package/dist/{media-treatment-3BDHM4P6.js → media-treatment-UZI55RS3.js} +11 -11
  158. package/dist/{media-use-JC2B2JSE.js → media-use-2PIPVWX4.js} +1 -1
  159. package/dist/{models-JMM25YO6.js → models-MV4HBZKZ.js} +9 -9
  160. package/dist/{motionShot-4WB3SH6V.js → motionShot-A3TWOBRE.js} +13 -13
  161. package/dist/{normalize-audio-2ZJKR5G3.js → normalize-audio-37WYHLP4.js} +8 -8
  162. package/dist/{open-LMYSLYH2.js → open-4PPPV45S.js} +11 -11
  163. package/dist/{parakeetRunner-HTQVLX2B.js → parakeetRunner-J22MMWSM.js} +10 -10
  164. package/dist/{pipeline-FMVCPIRU.js → pipeline-GE4LBTRO.js} +8 -8
  165. package/dist/{play-GFHBG3NZ.js → play-MZSW7GIL.js} +18 -18
  166. package/dist/{preflight-L5GC6ASI.js → preflight-NXMN7P4B.js} +6 -6
  167. package/dist/{present-PW3RWNWF.js → present-TWZLASXI.js} +14 -14
  168. package/dist/{preview-IRLHPLSD.js → preview-OEXP2RPO.js} +16 -16
  169. package/dist/probe-HNAD6ACH.js +69 -0
  170. package/dist/{producer-M6IWCFMK.js → producer-E4AN4ADM.js} +1 -1
  171. package/dist/{projectConfig-IVJE7A42.js → projectConfig-HKWVTV5Q.js} +10 -6
  172. package/dist/{publication-BS2YATIF.js → publication-DTIE7G2E.js} +2 -2
  173. package/dist/{publish-OTRA2JWM.js → publish-CUU5W6CP.js} +8 -8
  174. package/dist/{remove-background-UV37Y7T7.js → remove-background-2MRQ3YH4.js} +9 -9
  175. package/dist/{render-XSDVVBEY.js → render-EEIQAOGV.js} +34 -15
  176. package/dist/{render-3FANM5MO.js → render-JP6JUXWP.js} +5 -5
  177. package/dist/{render-7VBLI4AZ.js → render-QRWGJUCD.js} +30 -30
  178. package/dist/{render-batch-DPWJHKFY.js → render-batch-46SYPMYV.js} +5 -5
  179. package/dist/{resolver-VQ32ZH6Y.js → resolver-DPRCISSD.js} +4 -4
  180. package/dist/reverse-MY6DSOXL.js +32 -0
  181. package/dist/{run-MTGSR5HH.js → run-2VGZ3URU.js} +1 -1
  182. package/dist/{sherpa-BSIBIIIO.js → sherpa-5LOEXZ46.js} +9 -9
  183. package/dist/{skills-S7JNBPZZ.js → skills-BBHR4SHX.js} +5 -5
  184. package/dist/{skillsUpdateCheck-WFEV6VYU.js → skillsUpdateCheck-HBOVCIXG.js} +3 -3
  185. package/dist/{snapshot-NCWXYS2E.js → snapshot-S264O54Z.js} +31 -31
  186. package/dist/{src-AYBT7IBT.js → src-G2EK32ZO.js} +7 -7
  187. package/dist/{src-7WW3KXOI.js → src-GLO4X3WA.js} +12 -4
  188. package/dist/start-6AFMEXPO.js +226 -0
  189. package/dist/{staticProjectServer-VYZV4BSU.js → staticProjectServer-KWSV5IRS.js} +16 -16
  190. package/dist/{status-Z5BPMROD.js → status-5ZRM4R4N.js} +1 -1
  191. package/dist/studio/assets/hyperframes-player-CGO8wE5a.js +565 -0
  192. package/dist/studio/assets/{index-BohL7wdo.js → index-COtefOSM.js} +1 -1
  193. package/dist/studio/assets/{index-CTbhykVD.js → index-DHPJjAUV.js} +4 -4
  194. package/dist/studio/index.html +1 -1
  195. package/dist/{studio-api-OTNMLH4B.js → studio-api-JJO6VEFD.js} +8 -8
  196. package/dist/{studioServer-AA4B3YP7.js → studioServer-YFZIESIH.js} +45 -45
  197. package/dist/{sync-3M7VO3UJ.js → sync-DBMNZ32Z.js} +10 -10
  198. package/dist/{telemetry-VJ3A6ZMD.js → telemetry-OPZTKPDG.js} +3 -3
  199. package/dist/{timeline-ZLZ45W7F.js → timeline-MCJUCDME.js} +16 -16
  200. package/dist/{tokens-WXEJNNJV.js → tokens-3DREMPWC.js} +2 -2
  201. package/dist/{transcribe-PPH5H67E.js → transcribe-AU7TPKMU.js} +8 -8
  202. package/dist/{transcribe-XMVXOBHM.js → transcribe-TMGPK6FM.js} +17 -17
  203. package/dist/{updateCheck-HDLNWLIC.js → updateCheck-YKTRFFFV.js} +2 -2
  204. package/dist/{upgrade-6UXVTJII.js → upgrade-UAKM3KAT.js} +2 -2
  205. package/dist/{urlDownloader-DPN2KRCX.js → urlDownloader-77YL7TXO.js} +4 -4
  206. package/dist/{validate-BZOURM4G.js → validate-SR35R3QM.js} +21 -21
  207. package/dist/{video-BE42DAT2.js → video-GNMQTE4D.js} +6 -6
  208. package/dist/warmCheck.js +35 -35
  209. package/package.json +1 -1
  210. package/dist/chunk-2YQ2XYO5.js +0 -5030
  211. package/dist/probe-FPHFC3SD.js +0 -179
  212. package/dist/studio/assets/hyperframes-player-Cum4k6V2.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-NUGADGXQ.js";
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
- const indent = /\n([ \t]+)"/.exec(text)?.[1] ?? " ";
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
- const indent = /\n([ \t]+)"/.exec(text)?.[1] ?? " ";
160
- writeFileSync(
161
- path,
162
- (text.startsWith("\uFEFF") ? "\uFEFF" : "") + JSON.stringify(parsed, null, indent) + "\n",
163
- "utf-8"
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
  };
@@ -12,7 +12,7 @@ import {
12
12
  frameAt,
13
13
  round,
14
14
  runFfmpeg
15
- } from "./chunk-ARNCWQNR.js";
15
+ } from "./chunk-2KO357TJ.js";
16
16
  import {
17
17
  verifies
18
18
  } from "./chunk-RZ6CXJ56.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/utils/producer.ts
9
9
  async function loadProducer() {
10
- return await import("./src-AYBT7IBT.js");
10
+ return await import("./src-G2EK32ZO.js");
11
11
  }
12
12
 
13
13
  export {
@@ -8,13 +8,13 @@ import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
10
  runFfmpeg
11
- } from "./chunk-RTUQDHKE.js";
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-HWIGWPIG.js";
17
+ } from "./chunk-6JMNJYYR.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-GWTIFRF5.js";
@@ -11,7 +11,7 @@ import {
11
11
  PRORES_PROFILE_NAMES,
12
12
  appendRateCapArgs,
13
13
  isProresProfile
14
- } from "./chunk-RTUQDHKE.js";
14
+ } from "./chunk-QDB7EFLI.js";
15
15
  import {
16
16
  failUsage
17
17
  } from "./chunk-66W5IWLO.js";
@@ -7,32 +7,32 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-YPBGUVLY.js";
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-5TBRPDH3.js";
17
+ } from "./chunk-APVBITVZ.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-KLJEGC6M.js";
21
+ } from "./chunk-3SB24TVT.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-PYOEIKGI.js";
26
+ } from "./chunk-IG3GSBHB.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-NUGADGXQ.js";
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-64OUBJSX.js";
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-HWIGWPIG.js";
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-64OUBJSX.js";
10
+ } from "./chunk-G4VDT5D7.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-HZDSKYTV.js";
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-WAM27CD6.js")
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-HZDSKYTV.js";
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-JAYAOI3W.js";
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-VJ3A6ZMD.js");
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-46DXV7OQ.js";
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-RTUQDHKE.js";
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 };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-EG2ESF6S.js";
9
+ } from "./chunk-GKVERDJ2.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
@@ -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-27C4TXPP.js");
1281
+ const { trackCommandFailure } = await import("./events-AO3FEPL3.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  round,
9
9
  runFfmpeg
10
- } from "./chunk-ARNCWQNR.js";
10
+ } from "./chunk-2KO357TJ.js";
11
11
 
12
12
  // src/measure/drawn.ts
13
13
  import { mkdtempSync, readFileSync, rmSync } from "fs";
@@ -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-CS6UO5NC.js";
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-2YQ2XYO5.js";
17
+ } from "./chunk-TNWWLO4T.js";
18
18
  import {
19
19
  findFfBinary
20
20
  } from "./chunk-HYRPH6LL.js";
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-HZDSKYTV.js";
11
+ } from "./chunk-LS4CCRTK.js";
12
12
  import {
13
13
  redactTelemetryString
14
14
  } from "./chunk-TK7THLRO.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-M56MEMPF.js";
9
+ } from "./chunk-TS4HYR6I.js";
10
10
  import {
11
11
  DEFAULT_HISTORY_ROOT,
12
12
  HistoryBusyError,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  updateCheckDisabled
9
- } from "./chunk-HMMHCSSN.js";
9
+ } from "./chunk-L6MNWJTL.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-BR2JQQC5.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  quantizePreviewProxyBox
9
- } from "./chunk-HWIGWPIG.js";
9
+ } from "./chunk-6JMNJYYR.js";
10
10
  import {
11
11
  parseHTML
12
12
  } from "./chunk-GWTIFRF5.js";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-64OUBJSX.js";
10
+ } from "./chunk-G4VDT5D7.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-HZDSKYTV.js";
13
+ } from "./chunk-LS4CCRTK.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
@@ -11,7 +11,7 @@ import {
11
11
  round,
12
12
  runFfmpeg,
13
13
  videoClip
14
- } from "./chunk-ARNCWQNR.js";
14
+ } from "./chunk-2KO357TJ.js";
15
15
 
16
16
  // src/measure/sync.ts
17
17
  var RATE = 16e3;
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-7XCGHD55.js";
13
+ } from "./chunk-I47SIQGX.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -15,16 +15,16 @@ import {
15
15
  findFFmpeg,
16
16
  findFFprobe,
17
17
  getFFmpegInstallHint
18
- } from "./chunk-MBOZUQFZ.js";
18
+ } from "./chunk-PWYAOU4I.js";
19
19
  import {
20
20
  registerBrowserSessionCleanup
21
- } from "./chunk-NRO2PLEC.js";
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-RTUQDHKE.js";
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-7WW3KXOI.js");
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-NUGADGXQ.js";
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-HWIGWPIG.js";
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-RTUQDHKE.js";
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-7WW3KXOI.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-GLO4X3WA.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -58,7 +58,7 @@ import {
58
58
  warnUnknownEnumValues,
59
59
  wrapInlineScriptWithErrorBoundary,
60
60
  wrapScopedCompositionScript
61
- } from "./chunk-2YQ2XYO5.js";
61
+ } from "./chunk-TNWWLO4T.js";
62
62
  import {
63
63
  cssVariableName
64
64
  } from "./chunk-VC76R6W2.js";
@@ -12,12 +12,12 @@ import {
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-HZMM3D6P.js";
15
+ } from "./chunk-JFIBO4CZ.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-HWIGWPIG.js";
20
+ } from "./chunk-6JMNJYYR.js";
21
21
  import {
22
22
  require_dist
23
23
  } from "./chunk-NASVSJQK.js";