hyperframes 0.9.8 → 0.9.10

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 (245) hide show
  1. package/dist/{add-KCOZUTMS.js → add-AFD3HNXB.js} +12 -12
  2. package/dist/{agentPromptGenerator-P75AWDLA.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
  3. package/dist/{animatedGifPrep-OBZTJQ7X.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
  4. package/dist/api.js +29 -29
  5. package/dist/{asset-N3A7GB3E.js → asset-P6SF46UX.js} +2 -2
  6. package/dist/{assetCataloger-OQYRQZLW.js → assetCataloger-SDFP4DWL.js} +10 -10
  7. package/dist/{audio-KCKNENFH.js → audio-DFQXEAEE.js} +26 -26
  8. package/dist/{auth-Y72WHJCW.js → auth-T62ANGDQ.js} +2 -2
  9. package/dist/{autoUpdate-DLNFGTN2.js → autoUpdate-3IT56KGL.js} +23 -16
  10. package/dist/{backgroundChecks-EFVHAYNQ.js → backgroundChecks-UKBVUYML.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-JKOGFHLU.js → batchRender-ZDL65J7N.js} +4 -4
  13. package/dist/{beats-RIKKG4N7.js → beats-7UFMDXBY.js} +11 -11
  14. package/dist/{benchmark-7TCK3SGH.js → benchmark-LCSHBJJF.js} +9 -9
  15. package/dist/billing-5YSYJJ2V.js +142 -0
  16. package/dist/{browser-4BF7NKPF.js → browser-5DZHA4EW.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-PAWHGZRW.js → bundleWithLocalizedFonts-TJL2JWRD.js} +2 -2
  18. package/dist/{capture-5PZTT5O7.js → capture-HLC6I4RE.js} +3 -3
  19. package/dist/{capture-H7UDNHF2.js → capture-UKWY3SZQ.js} +22 -22
  20. package/dist/{captureCompositionFrame-LR2XKVKX.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
  21. package/dist/{catalog-4W5XDIKM.js → catalog-F2XB4VPP.js} +12 -12
  22. package/dist/{catch-up-H2Y2WRIA.js → catch-up-HCBA3MIP.js} +4 -4
  23. package/dist/{check-NG6FULCN.js → check-E2RQCELF.js} +44 -44
  24. package/dist/{checkAudio-HI5ICPRV.js → checkAudio-R4DRK3VG.js} +17 -17
  25. package/dist/{checkBrowser-YPPMCXET.js → checkBrowser-NGY225IO.js} +39 -37
  26. package/dist/{chunk-4WJKSTDS.js → chunk-2CKL2FUJ.js} +3 -3
  27. package/dist/{chunk-6RD46YOJ.js → chunk-2QMEP4LR.js} +1 -1
  28. package/dist/{chunk-RPVL65M7.js → chunk-2WNIF4YT.js} +6 -6
  29. package/dist/{chunk-WF4TXIXY.js → chunk-3DWH6Z5U.js} +1 -1
  30. package/dist/{chunk-2MUWGYXQ.js → chunk-3XHWHH5A.js} +60 -44
  31. package/dist/{chunk-VX3JUOZ6.js → chunk-42TYQPES.js} +2 -2
  32. package/dist/{chunk-5D23BECZ.js → chunk-5CDTGHED.js} +1 -1
  33. package/dist/{chunk-XPN7SDFQ.js → chunk-6HO6QKYG.js} +9 -9
  34. package/dist/{chunk-KKPYNKZD.js → chunk-6KV3CMY2.js} +1 -1
  35. package/dist/{chunk-7TAS4BNT.js → chunk-6UZLHLFP.js} +2 -2
  36. package/dist/{chunk-WY4J37EZ.js → chunk-6VKYITOR.js} +30 -8
  37. package/dist/{chunk-THSTFHB7.js → chunk-7RM3TB62.js} +29 -2
  38. package/dist/{chunk-YXIXTFRO.js → chunk-7VGM5TLZ.js} +2 -2
  39. package/dist/{chunk-TLBSOI2R.js → chunk-7VOLQUA2.js} +1 -1
  40. package/dist/{chunk-RULCW25D.js → chunk-7VU4RBHC.js} +15 -14
  41. package/dist/{chunk-GSZAUB3W.js → chunk-7W5ZDOLW.js} +2 -2
  42. package/dist/{chunk-D7THUO4V.js → chunk-A33GFLPY.js} +22 -2
  43. package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
  44. package/dist/chunk-AHLDGEH5.js +158 -0
  45. package/dist/{chunk-7DQHV322.js → chunk-AUYRWWFL.js} +3 -3
  46. package/dist/{chunk-FNNNGI42.js → chunk-AVNF52HR.js} +1 -1
  47. package/dist/{chunk-ODIGIQ4C.js → chunk-B5GWDPUO.js} +3 -3
  48. package/dist/{chunk-JCOECSLT.js → chunk-BHL4KN3H.js} +2 -2
  49. package/dist/{chunk-6DTXWYZA.js → chunk-BYC4C4YY.js} +9 -9
  50. package/dist/{chunk-7HRQOEYY.js → chunk-C3NC67BB.js} +8 -8
  51. package/dist/{chunk-6CEQCL6O.js → chunk-CBTBVRXB.js} +3 -3
  52. package/dist/{chunk-ZAOQWCZM.js → chunk-CDSTLOB7.js} +9 -9
  53. package/dist/{chunk-RWQANKWK.js → chunk-CPMTEWQM.js} +3 -3
  54. package/dist/{chunk-NU5LJYAT.js → chunk-CUYVIDGF.js} +4 -3
  55. package/dist/{chunk-GZZE2OJP.js → chunk-DKROJ3GJ.js} +16 -15
  56. package/dist/{chunk-BCQ42FAS.js → chunk-E2YXF2EP.js} +3 -3
  57. package/dist/{chunk-OYN54RSU.js → chunk-EBUA6NWH.js} +2 -2
  58. package/dist/{chunk-DHIXDUET.js → chunk-EN6MPNZT.js} +4 -4
  59. package/dist/{chunk-MNX7CK5N.js → chunk-GAKRZZHQ.js} +2 -2
  60. package/dist/{chunk-457LNKMV.js → chunk-GIYZMGYT.js} +1 -1
  61. package/dist/{chunk-UUW654GD.js → chunk-GRUI2S2F.js} +2 -2
  62. package/dist/{chunk-WVH6VWMY.js → chunk-JZPUXDQE.js} +4 -4
  63. package/dist/{chunk-SACHIPZP.js → chunk-LR5NVYZT.js} +1 -1
  64. package/dist/{chunk-QPTQSM3D.js → chunk-LTBBFLOM.js} +1 -1
  65. package/dist/{chunk-7VHS56BT.js → chunk-LV5SL4YW.js} +2 -2
  66. package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
  67. package/dist/{chunk-2ZQ7BZOS.js → chunk-MDMQD6BV.js} +6 -6
  68. package/dist/{chunk-HVBQL3PZ.js → chunk-MHZ7NSL5.js} +1 -1
  69. package/dist/{chunk-JP2ZSFRJ.js → chunk-MWHTLXG4.js} +4 -54
  70. package/dist/{chunk-NUFOXUDF.js → chunk-N6FGHJ7X.js} +53 -29
  71. package/dist/{chunk-ECJCBLME.js → chunk-N74N2I2K.js} +1 -1
  72. package/dist/{chunk-Y3RERZRQ.js → chunk-NBWYATVA.js} +1 -1
  73. package/dist/{chunk-3BCLDK6O.js → chunk-NCP3JQ6S.js} +99 -93
  74. package/dist/{chunk-UQDO2L6F.js → chunk-NVYVI4FR.js} +17 -14
  75. package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
  76. package/dist/{chunk-E2SVAOS6.js → chunk-OAFGA2FR.js} +4 -3
  77. package/dist/{chunk-TODLF56D.js → chunk-P4WYY52Y.js} +1 -1
  78. package/dist/{chunk-3LLFF6EE.js → chunk-PO7LSMN5.js} +1 -1
  79. package/dist/{chunk-4MDLXE3N.js → chunk-PPMCILED.js} +37 -5
  80. package/dist/{chunk-L3ZVUQGN.js → chunk-PYUS627M.js} +2 -2
  81. package/dist/{chunk-DT6NGXSS.js → chunk-Q3IT7I2K.js} +1 -1
  82. package/dist/{chunk-VKWAW4JW.js → chunk-Q3W7TDQX.js} +236 -193
  83. package/dist/{chunk-UPN4UMT7.js → chunk-QBPZHOEJ.js} +2 -2
  84. package/dist/{chunk-3YZ3LNXV.js → chunk-QOF7XZEI.js} +1 -1
  85. package/dist/{chunk-VLHCR3G2.js → chunk-QPEDM2ZR.js} +2 -2
  86. package/dist/{chunk-F6GJUCIY.js → chunk-QRCORKYC.js} +2 -2
  87. package/dist/{chunk-ZAXAT2D7.js → chunk-QUBVGS27.js} +5 -5
  88. package/dist/{chunk-BUYV2WGV.js → chunk-R7EKEIAK.js} +1 -1
  89. package/dist/{chunk-ZJ5ZLU2I.js → chunk-RZFW7FBA.js} +2 -2
  90. package/dist/{chunk-RGYPRUQP.js → chunk-S2UKSI3C.js} +1 -1
  91. package/dist/{chunk-TDIYINK6.js → chunk-SG4YBQPY.js} +2 -2
  92. package/dist/chunk-SRVAYGTN.js +62 -0
  93. package/dist/{chunk-K6QVKO7M.js → chunk-SSZTRWKQ.js} +2 -2
  94. package/dist/{chunk-W5VDIXYL.js → chunk-UDBNPVUR.js} +1 -1
  95. package/dist/{chunk-HFNB2CG3.js → chunk-V6HV2IDT.js} +6 -3
  96. package/dist/{chunk-CUR5UYYJ.js → chunk-VM6T3Z6B.js} +1 -1
  97. package/dist/{chunk-SBA4NG7Q.js → chunk-W4Q6VYPZ.js} +7 -7
  98. package/dist/{chunk-6ZICZOMN.js → chunk-W5AUD5OL.js} +2 -2
  99. package/dist/{chunk-CCFSUSAE.js → chunk-WCETVN3N.js} +65 -14
  100. package/dist/{chunk-QTEU6NL3.js → chunk-WP5QHNXN.js} +5 -5
  101. package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
  102. package/dist/{chunk-X422IJKF.js → chunk-WWPOGMNX.js} +1 -1
  103. package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
  104. package/dist/{chunk-5SCOPSVL.js → chunk-XTYNW745.js} +1 -1
  105. package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
  106. package/dist/chunk-Y3ICFPFK.js +5035 -0
  107. package/dist/{chunk-NST5G3WX.js → chunk-YTNHZT47.js} +2 -2
  108. package/dist/{chunk-AC3TSGGG.js → chunk-YXSM33UC.js} +35 -30
  109. package/dist/{chunk-H4D2X5N3.js → chunk-ZD3MK4H5.js} +1 -1
  110. package/dist/{chunk-6A4RAHMF.js → chunk-ZLN3AJKT.js} +1 -1
  111. package/dist/{chunk-ZK3GFNHM.js → chunk-ZMXFRRQR.js} +191 -49
  112. package/dist/{clean-VPOP4TU4.js → clean-BXHJEVVO.js} +23 -23
  113. package/dist/cli.js +61 -60
  114. package/dist/{cloud-Q7ZXCZ6E.js → cloud-ISWLTHGP.js} +4 -4
  115. package/dist/cloud-Z3FNCC4T.js +39 -0
  116. package/dist/{cloudrun-6DVAE7GG.js → cloudrun-N737TJRC.js} +6 -6
  117. package/dist/{compare-X5SWN5XJ.js → compare-MLZYDSZD.js} +34 -34
  118. package/dist/{compiler-N4TTEEQC.js → compiler-NAIDMQFU.js} +6 -6
  119. package/dist/{component-MJXAMRKF.js → component-MMBTCMY3.js} +3 -3
  120. package/dist/{compositions-F3ZHG5F4.js → compositions-WT2577NJ.js} +15 -15
  121. package/dist/{curve-4TWENQO7.js → curve-HHKVZ6LX.js} +13 -13
  122. package/dist/{cuts-X3LE5A2K.js → cuts-66GBRT5P.js} +14 -14
  123. package/dist/{delete-MYHKF3MS.js → delete-P3WYOC7I.js} +7 -5
  124. package/dist/{deploy-OP2BHWCQ.js → deploy-OJ3M7QJQ.js} +6 -6
  125. package/dist/{describeProject-ZMKVHAYX.js → describeProject-DN6YQU3X.js} +10 -10
  126. package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
  127. package/dist/{diff-7ZNSFBKV.js → diff-R74KQXXN.js} +158 -76
  128. package/dist/dist-CCPYPKOC.js +197 -0
  129. package/dist/{dist-SWPSKAAJ.js → dist-GUX66F7V.js} +3 -3
  130. package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
  131. package/dist/{doctor-ABSXYNXY.js → doctor-DT52W4UE.js} +13 -13
  132. package/dist/{energy-X2OAWHME.js → energy-WOMDOOLC.js} +14 -14
  133. package/dist/{events-26SWSHDR.js → events-PCK4AIN5.js} +2 -2
  134. package/dist/{events-JFIZSYMH.js → events-WEVZ2ELP.js} +16 -16
  135. package/dist/{events-4MDK4K7Q.js → events-YVQJLQWG.js} +3 -3
  136. package/dist/{extract-4O3Q3LOD.js → extract-CNXA3DWB.js} +14 -14
  137. package/dist/{face-7J7AQJDY.js → face-2WNBW74C.js} +14 -14
  138. package/dist/{feedback-CVTJDQIX.js → feedback-ADMM2XDS.js} +8 -8
  139. package/dist/{ffmpeg-EE2NKQT4.js → ffmpeg-PERZ6YHQ.js} +9 -9
  140. package/dist/{figma-55J7UDDC.js → figma-5MMN5JUU.js} +3 -3
  141. package/dist/fontLocalizeCli.js +15 -15
  142. package/dist/{frames-OZLUDUOS.js → frames-7CQGHRWT.js} +19 -16
  143. package/dist/{generate-CY2TRPRE.js → generate-XOR4UJDW.js} +20 -18
  144. package/dist/{get-HJHSVKGK.js → get-5K6ALHBS.js} +7 -5
  145. package/dist/{gpuPolicy-LZFNAIJB.js → gpuPolicy-DUNSQM6M.js} +9 -9
  146. package/dist/{grade-compare-JVTYF2T6.js → grade-compare-DK63C776.js} +34 -34
  147. package/dist/{heifImagePrep-OGFEQMQT.js → heifImagePrep-YNPHFR6W.js} +10 -10
  148. package/dist/{help-6WDI76YU.js → help-AUF2KA6D.js} +2 -1
  149. package/dist/{history-FIP5NGFC.js → history-G3FXVX4A.js} +10 -10
  150. package/dist/hyperframe.manifest.json +1 -1
  151. package/dist/hyperframe.runtime.iife.js +65 -65
  152. package/dist/hyperframes-player.global.js +1 -1
  153. package/dist/{info-WTGJE4QB.js → info-DGU3CIU5.js} +8 -8
  154. package/dist/{init-UYTDM56U.js → init-LYZI2WCS.js} +29 -29
  155. package/dist/{ink-BTLAE3ZR.js → ink-DYZG4BST.js} +14 -14
  156. package/dist/{inspect-KIMJNTS4.js → inspect-BYQSCRKT.js} +34 -34
  157. package/dist/{installer-6GSD3CVW.js → installer-PUQYKLXZ.js} +5 -5
  158. package/dist/{keyframes-74LK522L.js → keyframes-XX2DIYPI.js} +6 -6
  159. package/dist/{lambda-CJ7P5NLO.js → lambda-RKI7KKWW.js} +15 -15
  160. package/dist/{layout-RLIXTM56.js → layout-RQFOMQRO.js} +34 -34
  161. package/dist/{lint-IOJB746U.js → lint-LFCMCDEG.js} +10 -10
  162. package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
  163. package/dist/{list-V3TMQEQV.js → list-V4TGMQ3Y.js} +7 -5
  164. package/dist/{localPage-5LUCH2RM.js → localPage-6MQ6YFER.js} +9 -9
  165. package/dist/{login-GNVKQO3W.js → login-EXCG7PEH.js} +4 -4
  166. package/dist/{look-3QZIJFNX.js → look-RBHKHGMF.js} +14 -14
  167. package/dist/{manager-3QTARUMT.js → manager-ARXEX6OP.js} +10 -10
  168. package/dist/{measure-7LUYTL2E.js → measure-SAV5K4WT.js} +11 -11
  169. package/dist/{media-treatment-MYDIYP5I.js → media-treatment-2BVHRXJS.js} +15 -15
  170. package/dist/{media-use-UDBHEIYA.js → media-use-YEBYLITF.js} +17 -11
  171. package/dist/{models-S5CT7CST.js → models-GMJODMZ5.js} +13 -13
  172. package/dist/{motionShot-U3TSHI33.js → motionShot-Z63I3GO7.js} +17 -17
  173. package/dist/{normalize-audio-ZETO53KI.js → normalize-audio-ILLUZPTO.js} +10 -10
  174. package/dist/{open-UEJMPEPN.js → open-GTNLU7UF.js} +12 -12
  175. package/dist/{parakeetRunner-2KFML7ZA.js → parakeetRunner-K4EGDDVH.js} +14 -14
  176. package/dist/{pipeline-2TPI5L2C.js → pipeline-EKLTELWF.js} +12 -12
  177. package/dist/{play-XH2XKNCL.js → play-F2HIXJKH.js} +25 -25
  178. package/dist/{preflight-L5P4QXXH.js → preflight-QMXCKE5P.js} +10 -10
  179. package/dist/{present-XXEU7RTN.js → present-GDR6LCKE.js} +20 -20
  180. package/dist/{preview-V6LNVTBH.js → preview-4TV5426Q.js} +23 -23
  181. package/dist/{probe-JL4JSTSP.js → probe-TYM7WKX2.js} +14 -14
  182. package/dist/{producer-RLZ64COI.js → producer-NHQXKH7Y.js} +1 -1
  183. package/dist/{projectConfig-3IK4M62D.js → projectConfig-PUAOWUNS.js} +7 -7
  184. package/dist/{publication-4I6P772E.js → publication-K4XAMUI6.js} +3 -3
  185. package/dist/{publish-TOPACGPR.js → publish-7W46NJFT.js} +13 -13
  186. package/dist/{remove-background-CNXM4XJN.js → remove-background-LURZDSDJ.js} +13 -13
  187. package/dist/{render-OD3XEIBG.js → render-EF7Y6YYC.js} +6 -6
  188. package/dist/{render-WCLJ4GPZ.js → render-GEAO2HAV.js} +39 -37
  189. package/dist/{render-XAE2YCRZ.js → render-YLAS7GVD.js} +46 -46
  190. package/dist/{render-batch-QM4SW65U.js → render-batch-JYYP4RXA.js} +6 -6
  191. package/dist/renderSetupWorker.js +4 -4
  192. package/dist/{resolver-K2UZSBCZ.js → resolver-BKFLETMU.js} +5 -5
  193. package/dist/{reverse-JGOZUFKK.js → reverse-3KAZZXB2.js} +1 -1
  194. package/dist/{run-2JI4VCW5.js → run-XER4YJY5.js} +3 -3
  195. package/dist/{sherpa-OIJBFCKZ.js → sherpa-D6FQ3CHN.js} +13 -13
  196. package/dist/skills/media-use/SKILL.md +2 -2
  197. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
  198. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
  199. package/dist/skills/media-use/references/heygen.md +18 -10
  200. package/dist/skills/media-use/references/operations.md +14 -13
  201. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
  202. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
  203. package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
  204. package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
  205. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
  206. package/dist/skills/media-use/scripts/resolve.mjs +3 -1
  207. package/dist/{skills-L4AWBUJJ.js → skills-T5XCP3RC.js} +43 -18
  208. package/dist/{skillsUpdateCheck-GSX5MLON.js → skillsUpdateCheck-IG7KLWIA.js} +3 -3
  209. package/dist/{snapshot-5FK3HCJ7.js → snapshot-RULSIRM6.js} +49 -46
  210. package/dist/{src-JT324RDD.js → src-DHBRQZFZ.js} +18 -18
  211. package/dist/{src-HKLKN7AE.js → src-RL6YEPTD.js} +10 -10
  212. package/dist/{start-5O33EGN2.js → start-GF3JCTGF.js} +43 -31
  213. package/dist/{staticProjectServer-CWKMUI6O.js → staticProjectServer-BX4RWEY5.js} +21 -21
  214. package/dist/{status-MPCREDMQ.js → status-SUK4I7TS.js} +8 -5
  215. package/dist/studio/assets/{hyperframes-player-D7kdypzS.js → hyperframes-player-BcELSci_.js} +1 -1
  216. package/dist/studio/assets/{index-BT1zmedz.js → index-2SLNyxZG.js} +1 -1
  217. package/dist/studio/assets/{index-CaOrmH_8.js → index-DR2eua-L.js} +126 -126
  218. package/dist/studio/index.html +1 -1
  219. package/dist/{studio-api-24HJ5KQX.js → studio-api-PEUXVD7P.js} +17 -17
  220. package/dist/{studioServer-KKGBELBR.js → studioServer-DOTRPHS3.js} +61 -61
  221. package/dist/{sync-BT4WDK3B.js → sync-XQPBXGGX.js} +19 -16
  222. package/dist/{telemetry-77PW2F7B.js → telemetry-7TIIOBVB.js} +3 -3
  223. package/dist/templates/_shared/AGENTS.md +1 -0
  224. package/dist/templates/_shared/CLAUDE.md +1 -0
  225. package/dist/templates-7DIQ52Y4.js +202 -0
  226. package/dist/{timeline-RKJ63VIU.js → timeline-4JIUAUIP.js} +24 -24
  227. package/dist/{tokens-JATS65YH.js → tokens-4PQU4LVQ.js} +2 -2
  228. package/dist/{transcribe-FYBJBBP3.js → transcribe-IKUPC2R3.js} +23 -23
  229. package/dist/{transcribe-ELWJ6NYG.js → transcribe-N66QUYCS.js} +12 -12
  230. package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
  231. package/dist/{updateCheck-NU374MVC.js → updateCheck-LBPTWEZV.js} +2 -2
  232. package/dist/{upgrade-VIWR25J6.js → upgrade-2FS4AMCA.js} +2 -2
  233. package/dist/upload-L5TSWWIU.js +16 -0
  234. package/dist/{urlDownloader-MVZYN7XB.js → urlDownloader-YNI3Y3IE.js} +8 -8
  235. package/dist/{validate-3HM2XCH4.js → validate-MLVDUEK7.js} +28 -28
  236. package/dist/{video-H4ASUN7D.js → video-2OEOTSPQ.js} +10 -10
  237. package/dist/warmCheck.js +44 -44
  238. package/package.json +1 -1
  239. package/dist/billing-JBG45ON2.js +0 -96
  240. package/dist/chunk-N3CZ437C.js +0 -5035
  241. package/dist/chunk-QXVW22VM.js +0 -58
  242. package/dist/{chunk-GSNSSFT7.js → chunk-G3ERWPNV.js} +0 -0
  243. package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
  244. package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
  245. package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
@@ -42,7 +42,7 @@ import {
42
42
  renderFrameIdForRenderId,
43
43
  resolveAuthoredTimingWindow,
44
44
  toFps
45
- } from "./chunk-6ZICZOMN.js";
45
+ } from "./chunk-W5AUD5OL.js";
46
46
  import {
47
47
  AUDIO_GROUP_RENDER_ID_ATTR,
48
48
  AUTHORED_SOURCE_BEGIN,
@@ -85,7 +85,7 @@ import {
85
85
  sourceTimeAt,
86
86
  timeAtSourceTime,
87
87
  volumeSegmentSampleCount
88
- } from "./chunk-N3CZ437C.js";
88
+ } from "./chunk-Y3ICFPFK.js";
89
89
  import {
90
90
  redactTelemetryString,
91
91
  redactUrlQueryStrings
@@ -103,16 +103,16 @@ import {
103
103
  } from "./chunk-WE42NVH7.js";
104
104
  import {
105
105
  resolveReferencedStart
106
- } from "./chunk-BGMMC352.js";
106
+ } from "./chunk-XX77LLFJ.js";
107
+ import {
108
+ isWithinProjectRoot,
109
+ resolveProjectRelativeSrc
110
+ } from "./chunk-WVRAFHJU.js";
107
111
  import {
108
112
  FFMPEG_PATH_ENV,
109
113
  FFPROBE_PATH_ENV,
110
114
  findFfBinary
111
115
  } from "./chunk-HYRPH6LL.js";
112
- import {
113
- isWithinProjectRoot,
114
- resolveProjectRelativeSrc
115
- } from "./chunk-WVRAFHJU.js";
116
116
  import {
117
117
  isPathInside
118
118
  } from "./chunk-C2KEGBR3.js";
@@ -6753,6 +6753,7 @@ function recordSubTimelineWarning(session, timeoutMs) {
6753
6753
  const threwThenTimedOut = session.pageErrors.length > 0 && session.scriptLoadFailures.length === 0;
6754
6754
  const scriptFailure = isScriptFailure(session);
6755
6755
  const sources = [...session.scriptLoadFailures, ...session.pageErrors];
6756
+ const loadCauses = session.scriptLoadCauses ?? [];
6756
6757
  const pending = session.pendingTimelineIds ?? [];
6757
6758
  const pendingSuffix = pending.length > 0 ? ` (still unregistered: ${pending.join(", ")})` : "";
6758
6759
  const isolated = session.isolatedCompositions ?? [];
@@ -6774,7 +6775,7 @@ function recordSubTimelineWarning(session, timeoutMs) {
6774
6775
  recordCaptureWarnings(session, [
6775
6776
  {
6776
6777
  code: scriptFailure ? "sub_timeline_script_failure" : "sub_timeline_readiness_timeout",
6777
- message: threwThenTimedOut ? `A composition script threw before its timeline registered${pendingSuffix} (${sources.join(", ")}). Fix the error; a composition animated by CSS or rAF rather than a GSAP timeline must mark its host with data-no-timeline.` : scriptFailure ? `A sub-composition timeline script failed to load (${sources.join(", ")})` : `Sub-composition timelines did not become ready within ${timeoutMs}ms${pendingSuffix}. This can be intentional: a composition driven by CSS animations or rAF never registers window.__timelines[id], and marking its host with data-no-timeline skips the wait entirely. Otherwise, a composition that sets up asynchronously must register window.__timelines[id] once setup completes.`,
6778
+ message: threwThenTimedOut ? `A composition script threw before its timeline registered${pendingSuffix} (${sources.join(", ")}). Fix the error; a composition animated by CSS or rAF rather than a GSAP timeline must mark its host with data-no-timeline.` : scriptFailure ? `A sub-composition timeline script failed to load (${sources.join(", ")})` + scriptLoadCauseSuffix(loadCauses) : `Sub-composition timelines did not become ready within ${timeoutMs}ms${pendingSuffix}. This can be intentional: a composition driven by CSS animations or rAF never registers window.__timelines[id], and marking its host with data-no-timeline skips the wait entirely. Otherwise, a composition that sets up asynchronously must register window.__timelines[id] once setup completes.`,
6778
6779
  details: {
6779
6780
  timeoutMs,
6780
6781
  sources,
@@ -6897,10 +6898,43 @@ function loggedEarlierInRender(session, text) {
6897
6898
  function recordPageError(session, error) {
6898
6899
  if (error && !session.pageErrors.includes(error)) session.pageErrors.push(error);
6899
6900
  }
6900
- function recordScriptLoadFailure(session, url) {
6901
+ function recordScriptLoadFailure(session, url, cause) {
6901
6902
  if (!session.scriptLoadFailures.includes(url)) {
6902
6903
  session.scriptLoadFailures.push(url);
6904
+ (session.scriptLoadCauses ??= []).push(cause);
6905
+ }
6906
+ }
6907
+ var CDN_HOSTS = /^(?:cdn\.jsdelivr\.net|unpkg\.com|cdnjs\.cloudflare\.com)$/;
6908
+ function classifyScriptLoadCause(url, serverUrl, failure) {
6909
+ let origin = "unknown";
6910
+ if (url.startsWith(`${serverUrl}/`)) origin = "local";
6911
+ else if (/^https?:\/\//.test(url)) {
6912
+ origin = CDN_HOSTS.test(new URL(url).hostname) ? "cdn" : "remote";
6913
+ }
6914
+ const code = typeof failure === "number" ? `http-${failure}` : /^net::ERR_[A-Z0-9_]{1,40}$/.test(failure) ? failure : "unknown";
6915
+ return { origin, code };
6916
+ }
6917
+ function scriptLoadCauseSuffix(causes) {
6918
+ const shown = causes.slice(0, 4).map((c) => `${c.origin}/${c.code}`);
6919
+ return shown.length === 0 ? "" : ` [script_load: ${shown.join(", ")}]`;
6920
+ }
6921
+ var CANCELLED_BY_THE_PAGE_NOT_REFUSED = "net::ERR_ABORTED";
6922
+ function recordFailedRequest(session, request) {
6923
+ const resourceType = request.resourceType();
6924
+ const url = request.url();
6925
+ const failureText = request.failure()?.errorText ?? "unknown";
6926
+ if (resourceType === "script" && failureText !== CANCELLED_BY_THE_PAGE_NOT_REFUSED) {
6927
+ recordScriptLoadFailure(
6928
+ session,
6929
+ url,
6930
+ classifyScriptLoadCause(url, session.serverUrl, failureText)
6931
+ );
6903
6932
  }
6933
+ if (shouldIgnoreRequestFailureDiagnostic({ resourceType, url, failureText })) return;
6934
+ appendBrowserDiagnostic(
6935
+ session,
6936
+ formatRequestFailureDiagnostic({ method: request.method(), resourceType, url, failureText })
6937
+ );
6904
6938
  }
6905
6939
  var SCRIPT_ERROR_LABEL = "[HyperFrames] composition script error:";
6906
6940
  function classifyConsoleScriptError(type, text) {
@@ -6964,7 +6998,8 @@ async function initializeSession(session) {
6964
6998
  }
6965
6999
  appendBrowserDiagnostic(session, diagnostic.text);
6966
7000
  const scriptFailure = classifyConsoleScriptFailure(type, text);
6967
- if (scriptFailure) recordScriptLoadFailure(session, scriptFailure);
7001
+ if (scriptFailure)
7002
+ recordScriptLoadFailure(session, scriptFailure, { origin: "unknown", code: "unknown" });
6968
7003
  recordConsoleScriptError(session, classifyConsoleScriptError(type, text));
6969
7004
  });
6970
7005
  page.on("pageerror", (err) => {
@@ -6973,24 +7008,7 @@ async function initializeSession(session) {
6973
7008
  if (!isPlayPauseAbort(message)) console.error(text);
6974
7009
  appendBrowserDiagnostic(session, text);
6975
7010
  });
6976
- page.on("requestfailed", (request) => {
6977
- const resourceType = request.resourceType();
6978
- const url2 = request.url();
6979
- const failureText = request.failure()?.errorText ?? "unknown";
6980
- if (resourceType === "script") {
6981
- recordScriptLoadFailure(session, request.url());
6982
- }
6983
- if (shouldIgnoreRequestFailureDiagnostic({ resourceType, url: url2, failureText })) return;
6984
- appendBrowserDiagnostic(
6985
- session,
6986
- formatRequestFailureDiagnostic({
6987
- method: request.method(),
6988
- resourceType,
6989
- url: url2,
6990
- failureText
6991
- })
6992
- );
6993
- });
7011
+ page.on("requestfailed", (request) => recordFailedRequest(session, request));
6994
7012
  const projectScripts = /* @__PURE__ */ new Set();
6995
7013
  page.on("response", (response) => {
6996
7014
  const status = response.status();
@@ -7001,7 +7019,13 @@ async function initializeSession(session) {
7001
7019
  if (isScript && responseUrl.startsWith(`${serverUrl}/`)) projectScripts.add(responseUrl);
7002
7020
  return;
7003
7021
  }
7004
- if (isScript) recordScriptLoadFailure(session, responseUrl);
7022
+ if (isScript) {
7023
+ recordScriptLoadFailure(
7024
+ session,
7025
+ responseUrl,
7026
+ classifyScriptLoadCause(responseUrl, serverUrl, status)
7027
+ );
7028
+ }
7005
7029
  appendBrowserDiagnostic(
7006
7030
  session,
7007
7031
  formatHttpErrorDiagnostic({
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-D7THUO4V.js";
11
+ } from "./chunk-A33GFLPY.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-J3RXEDR2.js";
25
25
  import {
26
26
  VERSION
27
- } from "./chunk-YXIXTFRO.js";
27
+ } from "./chunk-7VGM5TLZ.js";
28
28
 
29
29
  // src/utils/updateCheck.ts
30
30
  import { existsSync, readFileSync } from "fs";
@@ -19,7 +19,11 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-WVH6VWMY.js";
22
+ } from "./chunk-JZPUXDQE.js";
23
+ import {
24
+ MEDIA_LINK_ATTR,
25
+ relinkSplitHalves
26
+ } from "./chunk-AW3XJY4S.js";
23
27
  import {
24
28
  DEFAULT_TARGET_LUFS,
25
29
  absoluteLoudnessPlan,
@@ -28,11 +32,22 @@ import {
28
32
  requestedProjectPath,
29
33
  requiredFfmpeg,
30
34
  resolveLocalAudioPath
31
- } from "./chunk-RWQANKWK.js";
35
+ } from "./chunk-CPMTEWQM.js";
32
36
  import {
33
- MEDIA_LINK_ATTR,
34
- relinkSplitHalves
35
- } from "./chunk-AW3XJY4S.js";
37
+ HistoryBusyError,
38
+ MAX_WINDOW_IDLE_MS,
39
+ STUDIO_SIGNATURE_MANIFEST_PATHS,
40
+ UNDO_MODES,
41
+ clearFileWriteReceipt,
42
+ createProjectSignatureAsync,
43
+ createWriteToken,
44
+ fileContentVersion,
45
+ recordFileWriteReceipt,
46
+ resolveProjectAndSignature,
47
+ resolveProjectSignature,
48
+ serveWhileOpen,
49
+ settledFileTag
50
+ } from "./chunk-XLPCBE2Q.js";
36
51
  import {
37
52
  PROXY_PARAMS_VERSION,
38
53
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -56,26 +71,11 @@ import {
56
71
  scanProjectMedia,
57
72
  shouldPrewarmProxy,
58
73
  waitForProxy
59
- } from "./chunk-2ZQ7BZOS.js";
74
+ } from "./chunk-MDMQD6BV.js";
60
75
  import {
61
76
  probeAudioTrack,
62
77
  probeMediaMetadata
63
- } from "./chunk-6RD46YOJ.js";
64
- import {
65
- HistoryBusyError,
66
- MAX_WINDOW_IDLE_MS,
67
- STUDIO_SIGNATURE_MANIFEST_PATHS,
68
- UNDO_MODES,
69
- clearFileWriteReceipt,
70
- createProjectSignature,
71
- createWriteToken,
72
- fileContentVersion,
73
- recordFileWriteReceipt,
74
- resolveProjectAndSignature,
75
- resolveProjectSignature,
76
- serveWhileOpen,
77
- settledFileTag
78
- } from "./chunk-UGUYWTWD.js";
78
+ } from "./chunk-2QMEP4LR.js";
79
79
  import {
80
80
  STUDIO_MOTION_PATH,
81
81
  createStudioMotionRenderBodyScript,
@@ -117,7 +117,7 @@ import {
117
117
  ensureHfIds,
118
118
  stampHfIdsInPlace,
119
119
  stripSdrPngColourTags
120
- } from "./chunk-4MDLXE3N.js";
120
+ } from "./chunk-PPMCILED.js";
121
121
  import {
122
122
  PREVIEW_PROXY_BOX_PARAM,
123
123
  PREVIEW_PROXY_LIGHT_PARAM,
@@ -130,7 +130,7 @@ import {
130
130
  fpsToNumber,
131
131
  parseFps,
132
132
  parsePreviewProxyBox
133
- } from "./chunk-6ZICZOMN.js";
133
+ } from "./chunk-W5AUD5OL.js";
134
134
  import {
135
135
  GSAP_BASE_URL_META,
136
136
  gsapCdnDist,
@@ -152,7 +152,7 @@ import {
152
152
  resolveRateSpec,
153
153
  sourceTimeAt,
154
154
  stripEmbeddedRuntimeScripts
155
- } from "./chunk-N3CZ437C.js";
155
+ } from "./chunk-Y3ICFPFK.js";
156
156
  import {
157
157
  ProjectRootMissingError,
158
158
  folderGone,
@@ -161,14 +161,14 @@ import {
161
161
  mkdirWithinProject,
162
162
  realpath
163
163
  } from "./chunk-OFQWTKPW.js";
164
- import {
165
- FFPROBE_PATH_ENV,
166
- findFfBinary
167
- } from "./chunk-HYRPH6LL.js";
168
164
  import {
169
165
  isWithinProjectRoot,
170
166
  readProjectFile
171
167
  } from "./chunk-WVRAFHJU.js";
168
+ import {
169
+ FFPROBE_PATH_ENV,
170
+ findFfBinary
171
+ } from "./chunk-HYRPH6LL.js";
172
172
  import {
173
173
  decodeCssEscapes,
174
174
  decodeWellFormedEscapes,
@@ -187,7 +187,7 @@ import {
187
187
  decodeAuthoredAttribute,
188
188
  scanHtmlOpeningTags,
189
189
  unrollComputedTimeline
190
- } from "./chunk-T5ELONXY.js";
190
+ } from "./chunk-JHILL4BN.js";
191
191
  import {
192
192
  parseHTML
193
193
  } from "./chunk-GWTIFRF5.js";
@@ -197,6 +197,31 @@ import {
197
197
  simple
198
198
  } from "./chunk-WC4MTXGN.js";
199
199
 
200
+ // ../studio-server/dist/chunk-UEEXAVOA.js
201
+ function findUnsafeMutationValues(value, path = "body", options = {}) {
202
+ if (value === null) {
203
+ return options.allowNullPath?.(path) ? [] : [{ path, reason: "null" }];
204
+ }
205
+ if (typeof value === "number") {
206
+ return Number.isFinite(value) ? [] : [{ path, reason: "non-finite-number" }];
207
+ }
208
+ if (!value || typeof value !== "object") return [];
209
+ if (Array.isArray(value)) {
210
+ return value.flatMap(
211
+ (item, index) => findUnsafeMutationValues(item, `${path}[${index}]`, options)
212
+ );
213
+ }
214
+ return Object.entries(value).flatMap(
215
+ ([key, item]) => findUnsafeMutationValues(item, `${path}.${key}`, options)
216
+ );
217
+ }
218
+ var DOM_PATCH_NULL_VALUE_PATH = /^body\.operations\[\d+\]\.value$/;
219
+ function findUnsafeDomPatchValues(value) {
220
+ return findUnsafeMutationValues(value, "body", {
221
+ allowNullPath: (path) => DOM_PATCH_NULL_VALUE_PATH.test(path)
222
+ });
223
+ }
224
+
200
225
  // ../studio-server/dist/chunk-7ROCGO5U.js
201
226
  import { createHash } from "crypto";
202
227
  import { closeSync, constants, fstatSync, openSync, readFileSync, writeFileSync } from "fs";
@@ -391,39 +416,6 @@ async function injectMediaCodecMap(html, adapter, projectDir, compSrcPath, probe
391
416
  return injectMediaCodecMapIntoHtml(html, projectDir, [{ html, compSrcPath }], probeCache, false);
392
417
  }
393
418
 
394
- // ../core/dist/studioPreviewMark.js
395
- var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
396
- var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
397
- var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
398
- var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
399
- var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
400
- var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
401
-
402
- // ../studio-server/dist/chunk-UEEXAVOA.js
403
- function findUnsafeMutationValues(value, path = "body", options = {}) {
404
- if (value === null) {
405
- return options.allowNullPath?.(path) ? [] : [{ path, reason: "null" }];
406
- }
407
- if (typeof value === "number") {
408
- return Number.isFinite(value) ? [] : [{ path, reason: "non-finite-number" }];
409
- }
410
- if (!value || typeof value !== "object") return [];
411
- if (Array.isArray(value)) {
412
- return value.flatMap(
413
- (item, index) => findUnsafeMutationValues(item, `${path}[${index}]`, options)
414
- );
415
- }
416
- return Object.entries(value).flatMap(
417
- ([key, item]) => findUnsafeMutationValues(item, `${path}.${key}`, options)
418
- );
419
- }
420
- var DOM_PATCH_NULL_VALUE_PATH = /^body\.operations\[\d+\]\.value$/;
421
- function findUnsafeDomPatchValues(value) {
422
- return findUnsafeMutationValues(value, "body", {
423
- allowNullPath: (path) => DOM_PATCH_NULL_VALUE_PATH.test(path)
424
- });
425
- }
426
-
427
419
  // ../studio-server/dist/index.js
428
420
  import { Hono } from "hono";
429
421
  import { readFile } from "fs/promises";
@@ -3685,6 +3677,16 @@ import { createReadStream, existsSync as existsSync5, readFileSync as readFileSy
3685
3677
  import { Readable } from "stream";
3686
3678
  import { join as join8, resolve as resolve4 } from "path";
3687
3679
  import { createHash as createHash3 } from "crypto";
3680
+
3681
+ // ../core/dist/studioPreviewMark.js
3682
+ var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
3683
+ var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
3684
+ var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
3685
+ var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
3686
+ var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
3687
+ var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
3688
+
3689
+ // ../studio-server/dist/index.js
3688
3690
  import { readlinkSync as readlinkSync2 } from "fs";
3689
3691
  import { dirname as dirname4, join as join7, parse as parse2, relative as relative3, resolve as resolve32 } from "path";
3690
3692
  import { readFileSync as readFileSync7 } from "fs";
@@ -3769,7 +3771,7 @@ function registerProjectRoutes(api, adapter) {
3769
3771
  api.get("/projects/:id/signature", async (c) => {
3770
3772
  const project = await adapter.resolveProject(c.req.param("id"));
3771
3773
  if (!project) return c.json({ error: "not found" }, 404);
3772
- return c.json({ signature: resolveProjectSignature(adapter, project.dir) });
3774
+ return c.json({ signature: await resolveProjectSignature(adapter, project.dir) });
3773
3775
  });
3774
3776
  api.get("/projects/:id", async (c) => {
3775
3777
  const project = await adapter.resolveProject(c.req.param("id"));
@@ -4062,7 +4064,7 @@ ${rewrittenContent}
4062
4064
  </html>`;
4063
4065
  }
4064
4066
  function hasBaseElement(html) {
4065
- return parseHTML(html).document.querySelector("base") !== null;
4067
+ return findStartTags(html, "base").length > 0;
4066
4068
  }
4067
4069
  var CompositionInsertionError = class extends Error {
4068
4070
  constructor(message, status) {
@@ -4324,7 +4326,7 @@ function rootHashes(read) {
4324
4326
  const source = read(ROOT_COMPOSITION) ?? "";
4325
4327
  return { root: sha1(source), head: sha1(rootHeadContent(source)) };
4326
4328
  }
4327
- function compositionInputSignature(projectDir, compPath, projectSignature) {
4329
+ async function compositionInputSignature(projectDir, compPath, projectSignature) {
4328
4330
  const key = `${projectDir}\0${compPath}`;
4329
4331
  const known = inputSignatures.get(key);
4330
4332
  if (known?.projectSignature === projectSignature) return known.inputSignature;
@@ -4336,11 +4338,12 @@ function compositionInputSignature(projectDir, compPath, projectSignature) {
4336
4338
  );
4337
4339
  let inputSignature;
4338
4340
  if (comp === ROOT_COMPOSITION) {
4339
- inputSignature = createProjectSignature(projectDir, excluded);
4341
+ inputSignature = await createProjectSignatureAsync(projectDir, excluded);
4340
4342
  } else {
4341
4343
  const hashes = rootHashes(read);
4342
4344
  if (!rootMemos.has(projectDir)) rootMemos.set(projectDir, { ...hashes, affected: null });
4343
- inputSignature = `${createProjectSignature(projectDir, excluded.add(ROOT_COMPOSITION))}:${hashes.head}`;
4345
+ const rest = await createProjectSignatureAsync(projectDir, excluded.add(ROOT_COMPOSITION));
4346
+ inputSignature = `${rest}:${hashes.head}`;
4344
4347
  }
4345
4348
  inputSignatures.set(key, { projectSignature, inputSignature });
4346
4349
  return inputSignature;
@@ -5620,7 +5623,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5620
5623
  let block = extractGsapScriptBlock(html);
5621
5624
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5622
5625
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5623
- const { GSAP_CDN } = await import("./dist-SWPSKAAJ.js");
5626
+ const { GSAP_CDN } = await import("./dist-GUX66F7V.js");
5624
5627
  const bootstrap = [
5625
5628
  `<script src="${GSAP_CDN}"></script>`,
5626
5629
  "<script>",
@@ -7517,8 +7520,9 @@ function startsAfterZero(el) {
7517
7520
  var hasLoading = (img) => Array.from(img.attributes).some((attr) => attr.name.toLowerCase() === "loading");
7518
7521
  function lazyPreviewImages(html) {
7519
7522
  if (!/<!doctype|<html[\s>]/i.test(html)) return html;
7520
- const images = [...parseHTML(html).document.querySelectorAll("img")];
7521
7523
  const tags = findStartTags(html, "img");
7524
+ if (tags.length === 0) return html;
7525
+ const images = [...parseHTML(html).document.querySelectorAll("img")];
7522
7526
  if (tags.length !== images.length) return html;
7523
7527
  const parts = [];
7524
7528
  let from = 0;
@@ -7713,7 +7717,7 @@ addEventListener("error",function(e){seen.push(e.message||String(e));
7713
7717
  var name=e.error&&e.error.constructor&&e.error.constructor.name,path="";
7714
7718
  try{var url=e.filename&&new URL(e.filename,window.location.href);if(url&&url.origin===window.location.origin)path=url.pathname}catch(_){}
7715
7719
  kinds.push({name:known[name]===1?name:"other",origin:!path?"unknown":path===runtime?"runtime":path.indexOf("/api/projects/")===0?"project":"studio"})});})();</script>`;
7716
- function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompositionPath, options) {
7720
+ function injectStudioPreviewAugmentations(html, adapter, signature, projectDir, activeCompositionPath, options) {
7717
7721
  const marked = options.capture ? injectTagsAtHeadStart(
7718
7722
  html,
7719
7723
  `<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
@@ -7727,7 +7731,7 @@ function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompo
7727
7731
  marked,
7728
7732
  `<meta name="${GSAP_BASE_URL_META}" content="${escapeGsapUrl(options.gsapBaseUrl)}">`
7729
7733
  ),
7730
- resolveProjectSignature(adapter, projectDir)
7734
+ signature
7731
7735
  ),
7732
7736
  options.gsapBaseUrl
7733
7737
  );
@@ -7832,6 +7836,7 @@ function registerPreviewRoutes(api, adapter) {
7832
7836
  bundled = injectStudioPreviewAugmentations(
7833
7837
  ensureHfIds(await transformPreviewHtml(bundled, adapter, project, mainCompositionPath)),
7834
7838
  adapter,
7839
+ signature,
7835
7840
  project.dir,
7836
7841
  mainCompositionPath,
7837
7842
  { capture, gsapBaseUrl }
@@ -7845,7 +7850,7 @@ function registerPreviewRoutes(api, adapter) {
7845
7850
  mediaCodecProbeCache
7846
7851
  );
7847
7852
  bundled = addScenePartsManifest(bundled, [`meta[name="${PROJECT_SIGNATURE_META}"]`]);
7848
- if (createProjectSignature(project.dir) === signature) {
7853
+ if (await createProjectSignatureAsync(project.dir) === signature) {
7849
7854
  rememberPreview(builtKey, bundled);
7850
7855
  if (!capture) adapter.previewDocuments?.write(builtKey, bundled);
7851
7856
  }
@@ -7860,6 +7865,7 @@ function registerPreviewRoutes(api, adapter) {
7860
7865
  let fallbackAugmented = injectStudioPreviewAugmentations(
7861
7866
  await transformPreviewHtml(fallbackHtml, adapter, project, fallback.compositionPath),
7862
7867
  adapter,
7868
+ signature,
7863
7869
  project.dir,
7864
7870
  fallback.compositionPath,
7865
7871
  { capture, gsapBaseUrl }
@@ -7960,7 +7966,7 @@ ${etag}`;
7960
7966
  html = withRootImportMap(html, baseHref);
7961
7967
  recordPreviewReferences(project.dir, html);
7962
7968
  html = ensureHfIds(await transformPreviewHtml(html, adapter, project, compPath));
7963
- html = injectStudioPreviewAugmentations(html, adapter, project.dir, compPath, {
7969
+ html = injectStudioPreviewAugmentations(html, adapter, signature, project.dir, compPath, {
7964
7970
  capture,
7965
7971
  gsapBaseUrl
7966
7972
  });
@@ -8158,6 +8164,15 @@ function registerLintRoutes(api, adapter) {
8158
8164
  }
8159
8165
  });
8160
8166
  }
8167
+ var firstSeenFinishedAt = /* @__PURE__ */ new WeakMap();
8168
+ function forgetJobsFinishedLongerThan(ttlMs, jobs, isFinished, now = Date.now()) {
8169
+ for (const [id, job] of jobs) {
8170
+ if (!isFinished(job)) continue;
8171
+ const finishedAt = firstSeenFinishedAt.get(job) ?? now;
8172
+ firstSeenFinishedAt.set(job, finishedAt);
8173
+ if (now - finishedAt > ttlMs) jobs.delete(id);
8174
+ }
8175
+ }
8161
8176
  var VALID_RESOLUTIONS = new Set(VALID_CANVAS_RESOLUTIONS);
8162
8177
  var RENDER_MIME = {
8163
8178
  ".mp4": "video/mp4",
@@ -8197,12 +8212,7 @@ function registerRenderRoutes(api, adapter) {
8197
8212
  let cleanupTimer = null;
8198
8213
  const cleanupEnabled = () => typeof process !== "undefined" && process.env.NODE_ENV !== "production" && !process.argv.includes("build");
8199
8214
  const cleanupFinishedJobs = () => {
8200
- const now = Date.now();
8201
- for (const [key, job] of renderJobs) {
8202
- if (job.status !== "rendering" && now - job.createdAt > TTL_MS) {
8203
- renderJobs.delete(key);
8204
- }
8205
- }
8215
+ forgetJobsFinishedLongerThan(TTL_MS, renderJobs, (job) => job.status !== "rendering");
8206
8216
  if (renderJobs.size === 0 && cleanupTimer) {
8207
8217
  clearInterval(cleanupTimer);
8208
8218
  cleanupTimer = null;
@@ -8280,7 +8290,6 @@ function registerRenderRoutes(api, adapter) {
8280
8290
  telemetryOptOut: body.telemetryOptOut === true,
8281
8291
  ...pageMotionBlur === void 0 ? {} : { pageMotionBlur }
8282
8292
  });
8283
- jobState.createdAt = Date.now();
8284
8293
  renderJobs.set(jobId, jobState);
8285
8294
  ensureCleanupTimer();
8286
8295
  return c.json({ jobId, status: "rendering" });
@@ -8430,8 +8439,7 @@ function registerRenderRoutes(api, adapter) {
8430
8439
  id: file.id,
8431
8440
  status: file.status,
8432
8441
  progress: 100,
8433
- outputPath: file.path,
8434
- createdAt: file.createdAt
8442
+ outputPath: file.path
8435
8443
  });
8436
8444
  }
8437
8445
  }
@@ -8725,7 +8733,7 @@ function registerThumbnailRoutes(api, adapter) {
8725
8733
  const htmlFile = resolveWithinProject(project.dir, compPath);
8726
8734
  const source = htmlFile ? readFileOnce(htmlFile) : "not-a-file";
8727
8735
  if (source === "not-a-file") return c.json({ error: "not found" }, 404);
8728
- const inputSignature = compositionInputSignature(project.dir, compPath, projectSignature);
8736
+ const inputSignature = await compositionInputSignature(project.dir, compPath, projectSignature);
8729
8737
  const url = new URL(c.req.url, `http://${c.req.header("host") || "localhost"}`);
8730
8738
  const rawSeekTime = url.searchParams.get("t");
8731
8739
  const parsedSeekTime = rawSeekTime == null ? Number.NaN : parseFloat(rawSeekTime);
@@ -8808,8 +8816,8 @@ function registerThumbnailRoutes(api, adapter) {
8808
8816
  if (!generated) return null;
8809
8817
  const previewCopiesAtEnd = proxyActivityMark(project.dir);
8810
8818
  const afterGeneration = await resolveProjectAndSignature(adapter, project.id);
8811
- const inputsUnchanged = (signature) => compositionInputSignature(project.dir, compPath, signature) === inputSignature;
8812
- if (previewCopiesAtStart === null || previewCopiesAtEnd !== previewCopiesAtStart || afterGeneration?.project.dir !== project.dir || !inputsUnchanged(afterGeneration.signature) || !inputsUnchanged(createProjectSignature(project.dir))) {
8819
+ const inputsUnchanged = async (signature) => await compositionInputSignature(project.dir, compPath, signature) === inputSignature;
8820
+ if (previewCopiesAtStart === null || previewCopiesAtEnd !== previewCopiesAtStart || afterGeneration?.project.dir !== project.dir || !await inputsUnchanged(afterGeneration.signature) || !await inputsUnchanged(await createProjectSignatureAsync(project.dir))) {
8813
8821
  return generated;
8814
8822
  }
8815
8823
  mkdirWithinProject(project.dir, cacheDir);
@@ -9691,12 +9699,11 @@ function registerMediaRoutes(api, adapter, options = {}) {
9691
9699
  const TTL_MS = 3e5;
9692
9700
  const readMediaMetadata = options.probeMediaMetadata ?? probeMediaMetadata;
9693
9701
  function cleanupFinishedJobs() {
9694
- const now = Date.now();
9695
- for (const [id, job] of mediaJobs) {
9696
- if ((job.status === "complete" || job.status === "failed") && now - job.createdAt > TTL_MS) {
9697
- mediaJobs.delete(id);
9698
- }
9699
- }
9702
+ forgetJobsFinishedLongerThan(
9703
+ TTL_MS,
9704
+ mediaJobs,
9705
+ (job) => job.status === "complete" || job.status === "failed"
9706
+ );
9700
9707
  }
9701
9708
  api.get("/projects/:id/media/metadata", async (c) => {
9702
9709
  const project = await adapter.resolveProject(c.req.param("id"));
@@ -9782,7 +9789,6 @@ function registerMediaRoutes(api, adapter, options = {}) {
9782
9789
  device: normalizeDevice(body.device),
9783
9790
  jobId
9784
9791
  });
9785
- state.createdAt = Date.now();
9786
9792
  mediaJobs.set(jobId, state);
9787
9793
  return c.json({
9788
9794
  jobId,