hyperframes 0.8.206 → 0.8.207

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 (213) hide show
  1. package/bin/hyperframes.mjs +1 -0
  2. package/dist/{add-FFMNAJXJ.js → add-LXFWHBE3.js} +19 -18
  3. package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
  4. package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-VBPJZKFT.js} +12 -12
  5. package/dist/api.js +30 -30
  6. package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
  7. package/dist/{asset-IPUHGZSL.js → asset-JX4RW3GO.js} +2 -2
  8. package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-JKKOPBCF.js} +14 -13
  9. package/dist/{audio-VYWWM4DB.js → audio-OXQ3L6DW.js} +22 -22
  10. package/dist/{auth-GZQZCUPL.js → auth-JAL7P7ZA.js} +1 -1
  11. package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-MRI2AICE.js} +2 -2
  12. package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-ORR46PBY.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-LI2BJRGO.js → batchRender-IFZYPGIW.js} +9 -9
  15. package/dist/{beats-H73CSYT4.js → beats-UDLOEW6U.js} +19 -19
  16. package/dist/{benchmark-XT3A5REC.js → benchmark-VTVDNKSO.js} +14 -14
  17. package/dist/{browser-VIOK66YK.js → browser-QJC4BL2Y.js} +6 -6
  18. package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
  19. package/dist/{capture-252WNPCD.js → capture-2P4JERSX.js} +14 -3
  20. package/dist/{capture-KKD5GMAF.js → capture-GLM2ACPM.js} +73 -33
  21. package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-A2A5MGQB.js} +18 -18
  22. package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
  23. package/dist/{catalog-6IJGNN3T.js → catalog-5ZLVUQVJ.js} +25 -24
  24. package/dist/{catch-up-BFW7Z35W.js → catch-up-FRMVYJHZ.js} +5 -5
  25. package/dist/{check-XUWBZASR.js → check-WVY7SM7C.js} +47 -47
  26. package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-PLEQY3SZ.js} +16 -16
  27. package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-XSZUA2DQ.js} +40 -40
  28. package/dist/{chunk-2S263R6D.js → chunk-526VSRZ4.js} +9 -9
  29. package/dist/{chunk-SFYLZX5C.js → chunk-5KBMYSF2.js} +54 -15
  30. package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
  31. package/dist/{chunk-AJSU6KGS.js → chunk-5PYRU5DT.js} +13 -13
  32. package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
  33. package/dist/{chunk-QVTCXN42.js → chunk-63DP5CB2.js} +29 -3
  34. package/dist/{chunk-FNNGQ3DB.js → chunk-6IYIS2U7.js} +2 -2
  35. package/dist/{chunk-VDVVQNTK.js → chunk-6KCFVLO6.js} +5 -5
  36. package/dist/{chunk-DEVZJ4AL.js → chunk-6KOHY5EP.js} +7 -7
  37. package/dist/{chunk-CIHW6VM2.js → chunk-6Z7XDUUJ.js} +1 -1
  38. package/dist/{chunk-PQYWYBEQ.js → chunk-7PJ3AJB2.js} +1 -1
  39. package/dist/{chunk-VW2LVMKB.js → chunk-7RWUY3BJ.js} +47 -55
  40. package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
  41. package/dist/chunk-BDJIQZN2.js +4830 -0
  42. package/dist/{chunk-4CY5RXXC.js → chunk-C53ZNJDZ.js} +4 -4
  43. package/dist/{chunk-FULMZCDW.js → chunk-CVZO6TFE.js} +10 -10
  44. package/dist/{chunk-6ZFDNEMY.js → chunk-DJQZ7DEH.js} +15 -15
  45. package/dist/{chunk-E2ZZSDDQ.js → chunk-DML6BD4K.js} +2 -2
  46. package/dist/{chunk-PNKLOMHQ.js → chunk-EG3B2VWK.js} +2 -2
  47. package/dist/{chunk-XOM3XTJ4.js → chunk-EGRIVMCQ.js} +1 -1
  48. package/dist/{chunk-3CS6QYL7.js → chunk-FEO7YW7V.js} +8 -8
  49. package/dist/{chunk-H4JO7VSI.js → chunk-FVAI7AHF.js} +12 -12
  50. package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
  51. package/dist/{chunk-CZYS6UKP.js → chunk-H3LQ5X6Q.js} +19 -19
  52. package/dist/{chunk-AXEEZKIL.js → chunk-HA3V4XAF.js} +6 -6
  53. package/dist/{chunk-G6W55MTX.js → chunk-HM7SUIQD.js} +38 -9
  54. package/dist/{chunk-VEA7Z4PZ.js → chunk-HVOTYAS4.js} +15 -7
  55. package/dist/{chunk-3R6SXPHD.js → chunk-I2TDHVFV.js} +2 -2
  56. package/dist/{chunk-36QE3P6B.js → chunk-I3TYUQLB.js} +1 -1
  57. package/dist/{chunk-63DGZRZP.js → chunk-IBZHSU2J.js} +1 -1
  58. package/dist/{chunk-AEC4T4IF.js → chunk-ID766OZB.js} +12 -12
  59. package/dist/{chunk-5QKJPCQ4.js → chunk-IK4JY2LI.js} +2 -2
  60. package/dist/{chunk-UMUVGNOH.js → chunk-IW5P4KK7.js} +3 -3
  61. package/dist/{chunk-AAX2A7LQ.js → chunk-IYZT62UR.js} +1 -1
  62. package/dist/chunk-JKE24AG7.js +62 -0
  63. package/dist/chunk-JLCAHJUO.js +91 -0
  64. package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
  65. package/dist/{chunk-2RT7MXFL.js → chunk-JQ32262N.js} +1 -1
  66. package/dist/{chunk-RW4DMP2Y.js → chunk-KDHHPJOG.js} +4 -4
  67. package/dist/{chunk-DZG565OO.js → chunk-LCCYYTEK.js} +1 -1
  68. package/dist/{chunk-RDDVQSNQ.js → chunk-LK6KPVX2.js} +167 -55
  69. package/dist/{chunk-42KN6I6A.js → chunk-LPI7HX4G.js} +2 -2
  70. package/dist/{chunk-WHD5IAHI.js → chunk-LXP6XWJL.js} +2 -2
  71. package/dist/{chunk-T6SD37JZ.js → chunk-MAUGXKSI.js} +4 -4
  72. package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
  73. package/dist/{chunk-TSJVPPXT.js → chunk-MSHL6CF2.js} +1 -1
  74. package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
  75. package/dist/{chunk-OZUAVHFE.js → chunk-NHL5CMO2.js} +3 -3
  76. package/dist/{chunk-7SXL476O.js → chunk-NJNC2DQV.js} +27 -26
  77. package/dist/{chunk-FMWACL3L.js → chunk-NSC5A4IR.js} +1 -1
  78. package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
  79. package/dist/{chunk-X5HHHFTX.js → chunk-PL36HK3U.js} +3 -3
  80. package/dist/{chunk-BBUK6A7Q.js → chunk-PUIG6DHT.js} +5 -5
  81. package/dist/{chunk-CPSGXAYD.js → chunk-QE4WRS3N.js} +3 -3
  82. package/dist/{chunk-FJW757TF.js → chunk-QTWXVOZI.js} +1 -1
  83. package/dist/{chunk-WYB3VKLK.js → chunk-QZ2JQ6O4.js} +6 -6
  84. package/dist/{chunk-MFHYBSJC.js → chunk-RPZNQV6D.js} +3 -3
  85. package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
  86. package/dist/{chunk-GAV56VJL.js → chunk-SXOD5J7T.js} +2 -2
  87. package/dist/{chunk-VHVSBOZH.js → chunk-T4JGFCXU.js} +3 -3
  88. package/dist/{chunk-HJAJ6W4V.js → chunk-TSTONNOD.js} +2 -2
  89. package/dist/chunk-TSYRN646.js +84 -0
  90. package/dist/{chunk-CNVHMLPI.js → chunk-U32PA6DI.js} +1 -1
  91. package/dist/{chunk-ZNAOBFU5.js → chunk-UAT2UMTP.js} +1 -1
  92. package/dist/{chunk-QL4ZYSIB.js → chunk-UKM3JYNB.js} +5 -71
  93. package/dist/{chunk-Z3XXLTVB.js → chunk-UUOIH4RW.js} +3 -3
  94. package/dist/{chunk-CMDVJP4T.js → chunk-UYPWH7PH.js} +10 -10
  95. package/dist/{chunk-3B2DBUQX.js → chunk-VAVDAOUA.js} +1 -1
  96. package/dist/{chunk-G6QDFWDN.js → chunk-VBPNCOD7.js} +2 -2
  97. package/dist/{chunk-NNLQTG3M.js → chunk-VH4PNYOS.js} +1 -1
  98. package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
  99. package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
  100. package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
  101. package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
  102. package/dist/{chunk-HEP5XMXV.js → chunk-XAGBSYIQ.js} +9 -2
  103. package/dist/{chunk-4DGLKB2H.js → chunk-XKW4Z7BU.js} +1 -1
  104. package/dist/chunk-XMRA7CQG.js +22 -0
  105. package/dist/{chunk-NVLPW3DG.js → chunk-XULJBZ7K.js} +2 -2
  106. package/dist/{chunk-X7RXXBYM.js → chunk-YJK6HOL5.js} +2 -2
  107. package/dist/{chunk-2MLMO25E.js → chunk-ZCJ5EGLU.js} +26 -6
  108. package/dist/{chunk-L5MFWGGU.js → chunk-ZYGIDXAK.js} +528 -327
  109. package/dist/{clean-N5VSKUVS.js → clean-TL3IPJDN.js} +27 -27
  110. package/dist/cli.js +55 -55
  111. package/dist/{cloud-74NF5FXC.js → cloud-EYMRPJNY.js} +4 -4
  112. package/dist/{cloudrun-7UOH335V.js → cloudrun-TOJ36NLX.js} +11 -11
  113. package/dist/commands/layout-audit.browser.js +3 -15
  114. package/dist/{compare-AY2LS2TZ.js → compare-MP5EOW4D.js} +41 -41
  115. package/dist/{compiler-4MHMC777.js → compiler-NOPVLJ2S.js} +8 -8
  116. package/dist/{component-CFWQOAZI.js → component-ASACDCZK.js} +3 -3
  117. package/dist/{compositions-DXLJTDSP.js → compositions-WKNZJY34.js} +16 -16
  118. package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
  119. package/dist/{delete-GB4MS7LM.js → delete-DQTFHP3G.js} +2 -2
  120. package/dist/{deploy-NXD3Q3KD.js → deploy-HHCFOUFM.js} +1 -1
  121. package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
  122. package/dist/{dist-ZY6IFESG.js → dist-L4Z4ZEYW.js} +6 -3
  123. package/dist/{dist-3ZJMZU75.js → dist-NQEYA4ZX.js} +36 -36
  124. package/dist/docs/rendering.md +3 -0
  125. package/dist/{doctor-CVY2XXKS.js → doctor-JDM65CP7.js} +19 -19
  126. package/dist/{events-T3CLIYRG.js → events-MBRNA3UF.js} +3 -3
  127. package/dist/{events-RYQYEWBV.js → events-RKRHRLJD.js} +2 -2
  128. package/dist/{feedback-K5ZMMLTA.js → feedback-LZWIWV5J.js} +17 -17
  129. package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-4PZKSIGE.js} +14 -14
  130. package/dist/{figma-MYYCX635.js → figma-QFNYUT3F.js} +3 -3
  131. package/dist/fontLocalizeCli.js +19 -18
  132. package/dist/{get-JVIDYMVP.js → get-2B5ENJOH.js} +2 -2
  133. package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-E5FB2GFR.js} +12 -12
  134. package/dist/{grade-compare-QEF6VASJ.js → grade-compare-4GUAPJHE.js} +39 -39
  135. package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
  136. package/dist/hangReport.js +47 -0
  137. package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-C2RYIEER.js} +13 -13
  138. package/dist/{help-XPPSLIRY.js → help-XGDAXV67.js} +1 -1
  139. package/dist/{history-OFOPRD27.js → history-WNFF6HGU.js} +107 -59
  140. package/dist/hyperframe.manifest.json +1 -1
  141. package/dist/hyperframe.runtime.iife.js +74 -69
  142. package/dist/hyperframes-player.global.js +3 -3
  143. package/dist/{info-7RF6FQX5.js → info-BR2LKGJD.js} +16 -16
  144. package/dist/{init-NTIXWA3D.js → init-P6UWPUY3.js} +58 -57
  145. package/dist/{inspect-MYMCV5E7.js → inspect-MSRPF7ZO.js} +38 -38
  146. package/dist/{installer-PYJIJ3PJ.js → installer-MPUQS3ZX.js} +10 -10
  147. package/dist/{keyframes-UJ52PYE4.js → keyframes-J6K66QTO.js} +11 -11
  148. package/dist/{lambda-SBNUYEQE.js → lambda-LJ2OSWFJ.js} +32 -13
  149. package/dist/{layout-IOMCOABO.js → layout-CDY65XGA.js} +38 -38
  150. package/dist/{lint-AQWHHMPS.js → lint-CAUNBGPX.js} +12 -9
  151. package/dist/{lintProject-5A4SCW3S.js → lintProject-ZTSX3AWT.js} +6 -3
  152. package/dist/{list-WKAJ5SP3.js → list-33BYQNRZ.js} +2 -2
  153. package/dist/{login-3ZDK5JOA.js → login-5QMRKOHK.js} +4 -4
  154. package/dist/{manager-QYFYWZOK.js → manager-3JOHHPVR.js} +16 -16
  155. package/dist/{manager-F2YREC5X.js → manager-RMYSZ3KI.js} +7 -3
  156. package/dist/{media-treatment-4OLWVHUY.js → media-treatment-4WP22CFN.js} +22 -22
  157. package/dist/{models-MR55FAUX.js → models-HPWCHAZX.js} +27 -27
  158. package/dist/{motionShot-DC47S7BT.js → motionShot-I7GDIROQ.js} +22 -22
  159. package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-VTMXPSC7.js} +14 -14
  160. package/dist/{open-YXWBWTKL.js → open-SAO7OQTT.js} +19 -19
  161. package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-ZYPBIA73.js} +24 -24
  162. package/dist/{pipeline-7MJ5H4SW.js → pipeline-VNBMR6QU.js} +15 -15
  163. package/dist/{play-S562STR4.js → play-7VI6A7KN.js} +28 -28
  164. package/dist/{preflight-QWGXMISC.js → preflight-VWV7L45J.js} +16 -16
  165. package/dist/{present-PGOHZT3L.js → present-CSJGYOFF.js} +23 -23
  166. package/dist/{preview-JU75H4QN.js → preview-B246ZTVO.js} +48 -36
  167. package/dist/{producer-H66OMZLW.js → producer-WJLFDVQJ.js} +1 -1
  168. package/dist/{projectConfig-COSP24YT.js → projectConfig-OMR46ZWQ.js} +14 -13
  169. package/dist/{publication-J3XYHPGB.js → publication-AA7NNYET.js} +8 -8
  170. package/dist/{publish-7GCCEPJZ.js → publish-TJ4QVVSP.js} +17 -16
  171. package/dist/{remove-background-WRCGIU32.js → remove-background-LQ2V7W7N.js} +19 -19
  172. package/dist/{render-5J5PP3UK.js → render-AWEEPG3F.js} +34 -32
  173. package/dist/{render-QS3YJCBR.js → render-E5QJG74D.js} +14 -11
  174. package/dist/{render-VUVTK2JM.js → render-JLTNZ36U.js} +80 -48
  175. package/dist/{render-batch-Q2LQ3D4P.js → render-batch-U4T4VSCM.js} +14 -11
  176. package/dist/renderSetupWorker.js +10 -7
  177. package/dist/{resolver-QCBWPRSC.js → resolver-GXCTUKPV.js} +10 -10
  178. package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
  179. package/dist/{sherpa-IZ22SC5W.js → sherpa-4VZWVHWZ.js} +23 -23
  180. package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
  181. package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
  182. package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
  183. package/dist/{skills-3RFMPMJA.js → skills-WUKR7SUE.js} +8 -8
  184. package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
  185. package/dist/{snapshot-5PHA43DK.js → snapshot-Q7S2FTNG.js} +123 -70
  186. package/dist/{src-36BQVJL3.js → src-CLAALR5W.js} +20 -19
  187. package/dist/{src-4YJKYMNF.js → src-ZOXUSGAP.js} +19 -11
  188. package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-DQ7PIDPA.js} +25 -25
  189. package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
  190. package/dist/studio/assets/{index-CwreIGoq.js → index-BF9YeBnC.js} +131 -131
  191. package/dist/studio/assets/{index-BNuxGFZK.js → index-BrqAmMRt.js} +1 -1
  192. package/dist/studio/index.html +1 -1
  193. package/dist/{studio-api-WL6EZ4KE.js → studio-api-NUE227JM.js} +17 -17
  194. package/dist/{studioServer-ZS5RA6U3.js → studioServer-HVOKP4VI.js} +71 -69
  195. package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
  196. package/dist/{telemetry-W3LRO3TB.js → telemetry-2Y5JXLDB.js} +3 -3
  197. package/dist/{timeline-BDO5DYWP.js → timeline-WOQGXFRV.js} +27 -27
  198. package/dist/{tokens-47CEMYFV.js → tokens-T3OHTWUC.js} +2 -2
  199. package/dist/{transcribe-XF3NL6JI.js → transcribe-4U74P5TG.js} +21 -21
  200. package/dist/{transcribe-GEPVJO3A.js → transcribe-JZ3BO546.js} +31 -31
  201. package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
  202. package/dist/{updateCheck-BON6ZFYP.js → updateCheck-6EUAGAM4.js} +2 -2
  203. package/dist/{upgrade-KIF5Z4J3.js → upgrade-55K6F4MP.js} +2 -2
  204. package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
  205. package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-47JMOLNN.js} +11 -11
  206. package/dist/{validate-2OPSQT3W.js → validate-QBJ3SBS4.js} +31 -31
  207. package/dist/{video-ECWXMY4F.js → video-3ZAUNAR3.js} +16 -14
  208. package/dist/warmCheck.js +47 -47
  209. package/package.json +2 -1
  210. package/dist/chunk-4YYJOFKS.js +0 -28
  211. package/dist/chunk-KLIPVNCO.js +0 -4824
  212. package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
  213. package/dist/{chunk-X7A7C4JS.js → chunk-EHFZEKQM.js} +3 -3
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-K2FLNJVB.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-FMWACL3L.js";
12
+ } from "./chunk-NSC5A4IR.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-JVBRJMOP.js";
@@ -41,7 +41,14 @@ function resolveProjectOrThrow(dirArg, options = {}) {
41
41
  const dir = resolve(dirArg ?? ".");
42
42
  const name = basename(dir);
43
43
  const indexPath = resolve(dir, "index.html");
44
- if (!existsSync(dir) || !statSync(dir).isDirectory()) {
44
+ if (existsSync(dir) && !statSync(dir).isDirectory()) {
45
+ throw new InvalidProjectError(
46
+ "Not a directory: " + dir,
47
+ basename(dir) + " is a file; this command takes the project folder.",
48
+ "Pass the folder that holds index.html: " + projectHolding(dir)
49
+ );
50
+ }
51
+ if (!existsSync(dir)) {
45
52
  throw new InvalidProjectError("Not a directory: " + dir);
46
53
  }
47
54
  if (options.requireIndex !== false && !existsSync(indexPath)) {
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-GMECXFAN.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-VW2LVMKB.js";
30
+ } from "./chunk-7RWUY3BJ.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -0,0 +1,22 @@
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
+ import {
8
+ createFileAtomically
9
+ } from "./chunk-EOVYQ3IG.js";
10
+
11
+ // src/utils/writeNewFile.ts
12
+ function writeNewFileSync(filePath, content) {
13
+ try {
14
+ createFileAtomically(filePath, content);
15
+ } catch (err) {
16
+ if (!(err instanceof Error && "code" in err && err.code === "EEXIST")) throw err;
17
+ }
18
+ }
19
+
20
+ export {
21
+ writeNewFileSync
22
+ };
@@ -9,10 +9,10 @@ import {
9
9
  isHttpUrl,
10
10
  renameWithRetry,
11
11
  runFfmpeg
12
- } from "./chunk-RDDVQSNQ.js";
12
+ } from "./chunk-LK6KPVX2.js";
13
13
  import {
14
14
  parseAnimatedGifMetadata
15
- } from "./chunk-VW2LVMKB.js";
15
+ } from "./chunk-7RWUY3BJ.js";
16
16
  import {
17
17
  parseHTML
18
18
  } from "./chunk-GWTIFRF5.js";
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  loadProducer
9
- } from "./chunk-CNVHMLPI.js";
9
+ } from "./chunk-U32PA6DI.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-4MHMC777.js");
16
+ const { bundleToSingleHtml } = await import("./compiler-NOPVLJ2S.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");
@@ -48,7 +48,10 @@ import {
48
48
  rewriteAssetPath,
49
49
  spansOverlap,
50
50
  validateColorGradingContract
51
- } from "./chunk-2BGOB2QK.js";
51
+ } from "./chunk-SE2MXV2N.js";
52
+ import {
53
+ encodeUrlPath
54
+ } from "./chunk-NHA4NRBE.js";
52
55
  import {
53
56
  parseHTML
54
57
  } from "./chunk-GWTIFRF5.js";
@@ -64,7 +67,7 @@ import {
64
67
  base,
65
68
  recursive,
66
69
  simple
67
- } from "./chunk-RXATE6FZ.js";
70
+ } from "./chunk-WC4MTXGN.js";
68
71
  import {
69
72
  __commonJS,
70
73
  __require,
@@ -7994,11 +7997,11 @@ function deriveDurationFromClips(tags, rootTag) {
7994
7997
  return resolveCompositionDuration({ authoredDurationSeconds: null, clipEndsSeconds: clipEnds });
7995
7998
  }
7996
7999
  async function loadParseGsapScript() {
7997
- const mod = await import("./gsapParserAcorn-LZJKCFQI.js");
8000
+ const mod = await import("./gsapParserAcorn-5YD4N6HQ.js");
7998
8001
  return mod.parseGsapScriptAcorn;
7999
8002
  }
8000
8003
  async function loadGsapScriptMotionPathFirstUseIndex() {
8001
- const mod = await import("./gsapParserAcorn-LZJKCFQI.js");
8004
+ const mod = await import("./gsapParserAcorn-5YD4N6HQ.js");
8002
8005
  return mod.gsapScriptMotionPathFirstUseIndex;
8003
8006
  }
8004
8007
  var SCENE_BOUNDARY_EPSILON_SECONDS = 0.05;
@@ -11334,10 +11337,18 @@ function lintProjectAudioFiles(projectDir, htmlSources) {
11334
11337
  }
11335
11338
  return findings;
11336
11339
  }
11340
+ function urlSafeSrcOf(projectDir, rootRelative) {
11341
+ if (!/[?#]/.test(rootRelative)) return null;
11342
+ const literal = resolve(projectDir, rootRelative.replace(/^\//, ""));
11343
+ if (!existsSync2(literal)) return null;
11344
+ return encodeUrlPath(rootRelative);
11345
+ }
11346
+ var urlSafeHint = (safe) => `The file exists, but a "#" or "?" in a src ends the file name there. Write the src as "${safe}".`;
11337
11347
  function lintAudioSrcNotFound(projectDir, htmlSources) {
11338
11348
  const findings = [];
11339
11349
  const audioSrcRe = mediaSrcTagRe("audio");
11340
11350
  const missingByFile = /* @__PURE__ */ new Map();
11351
+ const urlSafe = /* @__PURE__ */ new Map();
11341
11352
  for (const { html, compSrcPath } of htmlSources) {
11342
11353
  const scannable = maskNonScannableRanges(html);
11343
11354
  let match;
@@ -11347,6 +11358,8 @@ function lintAudioSrcNotFound(projectDir, htmlSources) {
11347
11358
  if (isUnresolvedAssetPlaceholder(src)) continue;
11348
11359
  const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync2(join3(projectDir, path))) : src;
11349
11360
  if (!existsSync2(resolveProjectRelativeSrc(rootRelative, projectDir))) {
11361
+ const safe = urlSafeSrcOf(projectDir, rootRelative);
11362
+ if (safe) urlSafe.set(src, safe);
11350
11363
  const file = sourceFile(projectDir, compSrcPath);
11351
11364
  missingByFile.set(file, (missingByFile.get(file) ?? /* @__PURE__ */ new Set()).add(src));
11352
11365
  }
@@ -11359,7 +11372,7 @@ function lintAudioSrcNotFound(projectDir, htmlSources) {
11359
11372
  severity: "error",
11360
11373
  file,
11361
11374
  message: `<audio> element references file(s) not found in the project: ${unique.join(", ")}. The rendered video will be silent.`,
11362
- fixHint: unique.length === 1 ? `Add the file "${unique[0]}" to the project directory, or update the src attribute to point to an existing file.` : `Add the missing files to the project directory, or update the src attributes to point to existing files.`
11375
+ fixHint: unique.length === 1 && urlSafe.has(unique[0]) ? urlSafeHint(urlSafe.get(unique[0])) : unique.length === 1 ? `Add the file "${unique[0]}" to the project directory, or update the src attribute to point to an existing file.` : `Add the missing files to the project directory, or update the src attributes to point to existing files.`
11363
11376
  });
11364
11377
  }
11365
11378
  return findings;
@@ -11368,6 +11381,7 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
11368
11381
  const findings = [];
11369
11382
  const localAssetSrcRe = mediaSrcTagRe("video|img|source");
11370
11383
  const missingByTag = /* @__PURE__ */ new Map();
11384
+ const urlSafe = /* @__PURE__ */ new Map();
11371
11385
  for (const { html, compSrcPath } of htmlSources) {
11372
11386
  const scannable = maskNonScannableRanges(html);
11373
11387
  const re = new RegExp(localAssetSrcRe.source, localAssetSrcRe.flags);
@@ -11382,6 +11396,12 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
11382
11396
  const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync2(join3(projectDir, path))) : src;
11383
11397
  const resolvedAsset = resolveExistingLocalAsset(projectDir, rootRelative);
11384
11398
  if (resolvedAsset) continue;
11399
+ const rawRoot = rawSrc.trim();
11400
+ const safe = urlSafeSrcOf(
11401
+ projectDir,
11402
+ compSrcPath ? rewriteAssetPath(compSrcPath, rawRoot, (path) => existsSync2(join3(projectDir, path))) : rawRoot
11403
+ );
11404
+ if (safe) urlSafe.set(src, safe);
11385
11405
  const resolvedKey = resolve(projectDir, rootRelative);
11386
11406
  const file = sourceFile(projectDir, compSrcPath);
11387
11407
  const bucketKey = `${file}\0${tagName}`;
@@ -11400,7 +11420,7 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
11400
11420
  severity: "error",
11401
11421
  file,
11402
11422
  message: `<${tagName}> element references local file(s) not found in the project: ${unique.join(", ")}. The renderer will silently skip these and produce a video with missing visuals.`,
11403
- fixHint: unique.length === 1 ? `Add "${unique[0]}" to the project directory, or update the src attribute to point to an existing file. Common cause: captured asset filenames are unreliable (heygen-logo.svg often contains Google, nvidia-logo.svg may contain Autodesk, etc.). Open the contact sheets and verify the file actually exists at this path before referencing it.` : "Add the missing files to the project directory, or update the src attributes to point to existing files. Captured asset filenames are unreliable. Verify against capture/contact-sheets/ and capture/extracted/asset-descriptions.md."
11423
+ fixHint: unique.length === 1 && urlSafe.has(unique[0]) ? urlSafeHint(urlSafe.get(unique[0])) : unique.length === 1 ? `Add "${unique[0]}" to the project directory, or update the src attribute to point to an existing file. Common cause: captured asset filenames are unreliable (heygen-logo.svg often contains Google, nvidia-logo.svg may contain Autodesk, etc.). Open the contact sheets and verify the file actually exists at this path before referencing it.` : "Add the missing files to the project directory, or update the src attributes to point to existing files. Captured asset filenames are unreliable. Verify against capture/contact-sheets/ and capture/extracted/asset-descriptions.md."
11404
11424
  });
11405
11425
  }
11406
11426
  return findings;