hyperframes 0.8.204 → 0.8.206

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 (199) hide show
  1. package/dist/{add-HBFVYKGU.js → add-FFMNAJXJ.js} +12 -12
  2. package/dist/{animatedGifPrep-VBUKGEZ6.js → animatedGifPrep-BIIIIVWL.js} +16 -10
  3. package/dist/api.js +18 -18
  4. package/dist/{asset-OVLMJY4S.js → asset-IPUHGZSL.js} +2 -2
  5. package/dist/{assetCataloger-K4INCLFU.js → assetCataloger-M5FWXLAJ.js} +8 -8
  6. package/dist/{audio-JHW3HLHK.js → audio-VYWWM4DB.js} +19 -16
  7. package/dist/{auth-RH67KQMZ.js → auth-GZQZCUPL.js} +1 -1
  8. package/dist/{autoUpdate-JYR2RW5Z.js → autoUpdate-GJUDDLLO.js} +2 -2
  9. package/dist/{backgroundChecks-DPHRM4HJ.js → backgroundChecks-BTMSW34Z.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-JFUWZR3M.js → batchRender-LI2BJRGO.js} +4 -4
  12. package/dist/{beats-AWAFZGOT.js → beats-H73CSYT4.js} +11 -11
  13. package/dist/{benchmark-VQCCULJ2.js → benchmark-XT3A5REC.js} +14 -12
  14. package/dist/{browser-TT5L7D32.js → browser-VIOK66YK.js} +5 -5
  15. package/dist/{bundleWithLocalizedFonts-EHXEP5ZL.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
  16. package/dist/{capture-Y7TGR3BI.js → capture-252WNPCD.js} +2 -2
  17. package/dist/{capture-5CM2P6CB.js → capture-KKD5GMAF.js} +20 -20
  18. package/dist/{captureCompositionFrame-LIT6U6C4.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
  19. package/dist/{catalog-WZN2XB7D.js → catalog-6IJGNN3T.js} +12 -12
  20. package/dist/{catch-up-WZMQUW5H.js → catch-up-BFW7Z35W.js} +4 -4
  21. package/dist/{check-YVJCDCJS.js → check-XUWBZASR.js} +40 -38
  22. package/dist/checkAudio-2NRR3VHQ.js +201 -0
  23. package/dist/{checkBrowser-7V2DGDVD.js → checkBrowser-JW74KWTF.js} +33 -32
  24. package/dist/{chunk-IDASYE4U.js → chunk-2MLMO25E.js} +8 -5
  25. package/dist/{chunk-TBSYUEB7.js → chunk-2RT7MXFL.js} +1 -1
  26. package/dist/{chunk-7RB4I2E6.js → chunk-2S263R6D.js} +19 -7
  27. package/dist/{chunk-YLGRZSH4.js → chunk-36QE3P6B.js} +1 -1
  28. package/dist/{chunk-3GPDAE3D.js → chunk-3B2DBUQX.js} +1 -1
  29. package/dist/{chunk-UKXF4IPA.js → chunk-3CS6QYL7.js} +5 -5
  30. package/dist/{chunk-KOBPUFCN.js → chunk-3R6SXPHD.js} +2 -2
  31. package/dist/{chunk-US6JSQ2L.js → chunk-42KN6I6A.js} +2 -2
  32. package/dist/{chunk-LTGTN2TH.js → chunk-4CY5RXXC.js} +1 -1
  33. package/dist/{chunk-TQH7BF7K.js → chunk-4DGLKB2H.js} +1 -1
  34. package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
  35. package/dist/{chunk-D3EZHD2D.js → chunk-5QKJPCQ4.js} +2 -2
  36. package/dist/{chunk-IJ6RY4CH.js → chunk-63DGZRZP.js} +1 -1
  37. package/dist/{chunk-DRDG46KK.js → chunk-6ZFDNEMY.js} +14 -14
  38. package/dist/{chunk-LN5EJMSC.js → chunk-7SXL476O.js} +30 -20
  39. package/dist/{chunk-2756LXGY.js → chunk-AAX2A7LQ.js} +1 -1
  40. package/dist/{chunk-DTV3VHFE.js → chunk-AEC4T4IF.js} +4 -4
  41. package/dist/{chunk-4HJMZI4H.js → chunk-AJSU6KGS.js} +13 -13
  42. package/dist/{chunk-S35XO2ZA.js → chunk-AXEEZKIL.js} +2 -2
  43. package/dist/{chunk-KLIKCX6Q.js → chunk-AYH5ANVS.js} +7 -1
  44. package/dist/{chunk-ZBDVKLIU.js → chunk-BBUK6A7Q.js} +5 -5
  45. package/dist/{chunk-NJT6SZGL.js → chunk-CIHW6VM2.js} +1 -1
  46. package/dist/{chunk-EF7R5EBJ.js → chunk-CMDVJP4T.js} +10 -10
  47. package/dist/{chunk-VCBZOU7U.js → chunk-CNVHMLPI.js} +1 -1
  48. package/dist/{chunk-RFCLI6TW.js → chunk-CPSGXAYD.js} +3 -3
  49. package/dist/{chunk-54FO6TN7.js → chunk-CZYS6UKP.js} +83 -78
  50. package/dist/{chunk-5UW7WCHQ.js → chunk-DEVZJ4AL.js} +10 -9
  51. package/dist/{chunk-TCI4MUT6.js → chunk-DZG565OO.js} +1 -1
  52. package/dist/{chunk-D5CAZ7R4.js → chunk-E2ZZSDDQ.js} +2 -2
  53. package/dist/{chunk-TAYZSNYS.js → chunk-FJW757TF.js} +1 -1
  54. package/dist/{chunk-LVMJXO45.js → chunk-FMWACL3L.js} +1 -1
  55. package/dist/{chunk-54K7HW46.js → chunk-FNNGQ3DB.js} +2 -2
  56. package/dist/{chunk-AQS3MMEQ.js → chunk-FULMZCDW.js} +13 -43
  57. package/dist/chunk-G6QDFWDN.js +355 -0
  58. package/dist/{chunk-QB4K2EWI.js → chunk-G6W55MTX.js} +1 -1
  59. package/dist/{chunk-WM7GOKEP.js → chunk-GAV56VJL.js} +2 -2
  60. package/dist/{chunk-4CR23IYU.js → chunk-H4JO7VSI.js} +7 -6
  61. package/dist/{chunk-6RLP6RDE.js → chunk-HEP5XMXV.js} +1 -1
  62. package/dist/{chunk-23RPCDGE.js → chunk-HJAJ6W4V.js} +2 -2
  63. package/dist/chunk-KLIPVNCO.js +4824 -0
  64. package/dist/{chunk-YIN2JAZE.js → chunk-L5MFWGGU.js} +62 -65
  65. package/dist/{chunk-WMCGD4XL.js → chunk-MFHYBSJC.js} +58 -828
  66. package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
  67. package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
  68. package/dist/{chunk-X7XICOVM.js → chunk-NNLQTG3M.js} +1 -1
  69. package/dist/{chunk-TNOERLC6.js → chunk-NVLPW3DG.js} +17 -9
  70. package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
  71. package/dist/{chunk-WLD4PX3P.js → chunk-OZUAVHFE.js} +18 -3
  72. package/dist/{chunk-QCQDUQVJ.js → chunk-PNKLOMHQ.js} +2 -2
  73. package/dist/{chunk-QZ4HQQYS.js → chunk-PQYWYBEQ.js} +1 -1
  74. package/dist/{chunk-VC3BMKYO.js → chunk-QL4ZYSIB.js} +3 -3
  75. package/dist/{chunk-N3EJG2X4.js → chunk-QVTCXN42.js} +3 -3
  76. package/dist/{chunk-Y63CT2ZC.js → chunk-RDDVQSNQ.js} +124 -37
  77. package/dist/{chunk-WXAQT63P.js → chunk-RW4DMP2Y.js} +4 -4
  78. package/dist/{chunk-5RJSWYWL.js → chunk-SFYLZX5C.js} +1 -1
  79. package/dist/{chunk-YU53JSUZ.js → chunk-T6SD37JZ.js} +1 -1
  80. package/dist/chunk-TQBQYO4L.js +55 -0
  81. package/dist/{chunk-MSH2F7VW.js → chunk-TSJVPPXT.js} +1 -1
  82. package/dist/{chunk-7PRESGFT.js → chunk-UMUVGNOH.js} +3 -3
  83. package/dist/{chunk-6KZY5RSV.js → chunk-VDVVQNTK.js} +2 -2
  84. package/dist/{chunk-XX5U64F2.js → chunk-VEA7Z4PZ.js} +4 -3
  85. package/dist/{chunk-QWATUGUX.js → chunk-VHVSBOZH.js} +3 -3
  86. package/dist/{chunk-65VFH2UV.js → chunk-VW2LVMKB.js} +19 -9
  87. package/dist/{chunk-DBF6LLXB.js → chunk-WHD5IAHI.js} +1 -1
  88. package/dist/{chunk-OPFG563D.js → chunk-WYB3VKLK.js} +2 -2
  89. package/dist/{chunk-34VLVDOU.js → chunk-X5HHHFTX.js} +3 -3
  90. package/dist/{chunk-BL4U6U52.js → chunk-X7A7C4JS.js} +70 -7
  91. package/dist/chunk-X7RXXBYM.js +29 -0
  92. package/dist/{chunk-GGEA5EHR.js → chunk-XOM3XTJ4.js} +1 -1
  93. package/dist/{chunk-HBDQGIQA.js → chunk-Z3XXLTVB.js} +2 -2
  94. package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
  95. package/dist/{chunk-CXZDIWMK.js → chunk-ZNAOBFU5.js} +1 -1
  96. package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
  97. package/dist/{clean-3JE2KYTC.js → clean-N5VSKUVS.js} +20 -20
  98. package/dist/cli.js +82 -60
  99. package/dist/{cloud-Z54BHP6G.js → cloud-74NF5FXC.js} +4 -4
  100. package/dist/{cloudrun-4CPQLU5M.js → cloudrun-7UOH335V.js} +6 -6
  101. package/dist/{compare-AQMLMTFD.js → compare-AY2LS2TZ.js} +33 -33
  102. package/dist/{compiler-LIJYMSEL.js → compiler-4MHMC777.js} +14 -10
  103. package/dist/{component-ZH37EIYB.js → component-CFWQOAZI.js} +3 -3
  104. package/dist/{compositions-DF2FM6YD.js → compositions-DXLJTDSP.js} +14 -14
  105. package/dist/{delete-A3NSK2HH.js → delete-GB4MS7LM.js} +2 -2
  106. package/dist/{deploy-6RC2DXPQ.js → deploy-NXD3Q3KD.js} +4 -4
  107. package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
  108. package/dist/{dist-VSIT3UAX.js → dist-3ZJMZU75.js} +11 -3
  109. package/dist/{dist-6JMYDD7F.js → dist-ZY6IFESG.js} +2 -2
  110. package/dist/docs/examples.md +31 -7
  111. package/dist/{doctor-RILK4ATO.js → doctor-CVY2XXKS.js} +14 -14
  112. package/dist/{events-SL434XAY.js → events-RYQYEWBV.js} +2 -2
  113. package/dist/{events-B5EKVEPW.js → events-T3CLIYRG.js} +3 -3
  114. package/dist/{feedback-S4PC6VAR.js → feedback-K5ZMMLTA.js} +8 -8
  115. package/dist/{ffmpeg-XSDPPZCU.js → ffmpeg-UNDAJ2IC.js} +9 -9
  116. package/dist/{figma-MV2L6E2Z.js → figma-MYYCX635.js} +3 -3
  117. package/dist/fontLocalizeCli.js +13 -12
  118. package/dist/{get-ID3Y3PCN.js → get-JVIDYMVP.js} +2 -2
  119. package/dist/{gpuPolicy-2LRMQOAD.js → gpuPolicy-KEX7GDRJ.js} +8 -8
  120. package/dist/{grade-compare-NV3TKIOO.js → grade-compare-QEF6VASJ.js} +31 -31
  121. package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
  122. package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
  123. package/dist/{help-ZPT23LZ3.js → help-XPPSLIRY.js} +1 -1
  124. package/dist/{history-MZGDX3TR.js → history-OFOPRD27.js} +7 -7
  125. package/dist/hyperframe.manifest.json +1 -1
  126. package/dist/hyperframe.runtime.iife.js +66 -64
  127. package/dist/hyperframes-player.global.js +3 -3
  128. package/dist/hyperframes-slideshow.global.js +16 -16
  129. package/dist/{info-FIZ4A54H.js → info-7RF6FQX5.js} +8 -8
  130. package/dist/{init-WX4MNPL2.js → init-NTIXWA3D.js} +32 -35
  131. package/dist/{inspect-R5KWWKNJ.js → inspect-MYMCV5E7.js} +31 -30
  132. package/dist/inspection.js +4 -4
  133. package/dist/{installer-CTV5FKYQ.js → installer-PYJIJ3PJ.js} +5 -5
  134. package/dist/{keyframes-FAJY5RK5.js → keyframes-UJ52PYE4.js} +6 -6
  135. package/dist/{lambda-3MCC2ZH7.js → lambda-SBNUYEQE.js} +8 -8
  136. package/dist/{layout-3RTVYRRN.js → layout-IOMCOABO.js} +31 -30
  137. package/dist/{lint-ZDCVL7K4.js → lint-AQWHHMPS.js} +8 -8
  138. package/dist/{lintProject-4IVYXS5J.js → lintProject-5A4SCW3S.js} +2 -2
  139. package/dist/{list-SBCXW2UT.js → list-WKAJ5SP3.js} +2 -2
  140. package/dist/{login-VQ2LQ2YG.js → login-3ZDK5JOA.js} +4 -4
  141. package/dist/{manager-F34TSFV6.js → manager-F2YREC5X.js} +2 -2
  142. package/dist/{manager-ZRF6UXUM.js → manager-QYFYWZOK.js} +10 -10
  143. package/dist/{media-treatment-MFIP7Q4G.js → media-treatment-4OLWVHUY.js} +15 -15
  144. package/dist/{models-OU36YZCT.js → models-MR55FAUX.js} +14 -14
  145. package/dist/{motionShot-SHDUG7YR.js → motionShot-DC47S7BT.js} +17 -17
  146. package/dist/{normalize-audio-7RTPEV7Y.js → normalize-audio-M2TK4NG5.js} +8 -8
  147. package/dist/{open-HT4RG32S.js → open-YXWBWTKL.js} +15 -14
  148. package/dist/{parakeetRunner-DOVPZDCH.js → parakeetRunner-J6QR3GTG.js} +15 -15
  149. package/dist/{pipeline-NIVQ6E2G.js → pipeline-7MJ5H4SW.js} +10 -10
  150. package/dist/{play-HPX5SIRQ.js → play-S562STR4.js} +34 -24
  151. package/dist/{preflight-TNYC7EIS.js → preflight-QWGXMISC.js} +11 -11
  152. package/dist/{present-QSOIMURR.js → present-PGOHZT3L.js} +30 -20
  153. package/dist/{preview-WDO53XKK.js → preview-JU75H4QN.js} +32 -29
  154. package/dist/{producer-G27KP3IY.js → producer-H66OMZLW.js} +1 -1
  155. package/dist/{projectConfig-CP722RCM.js → projectConfig-COSP24YT.js} +7 -7
  156. package/dist/{publication-LCWVBLDN.js → publication-J3XYHPGB.js} +3 -3
  157. package/dist/{publish-BIY6LEZ2.js → publish-7GCCEPJZ.js} +11 -11
  158. package/dist/{remove-background-NPLZGLZ3.js → remove-background-WRCGIU32.js} +11 -11
  159. package/dist/{render-J57LAXB5.js → render-5J5PP3UK.js} +21 -21
  160. package/dist/{render-IHNAZXA2.js → render-QS3YJCBR.js} +6 -6
  161. package/dist/{render-HHUGUKG6.js → render-VUVTK2JM.js} +36 -36
  162. package/dist/{render-batch-FK26OQ5E.js → render-batch-Q2LQ3D4P.js} +6 -6
  163. package/dist/renderSetupWorker.js +5 -5
  164. package/dist/{resolver-FWJXO6DY.js → resolver-QCBWPRSC.js} +5 -5
  165. package/dist/{sherpa-BXFJU5EP.js → sherpa-IZ22SC5W.js} +14 -14
  166. package/dist/skills/hyperframes/references/types/launch.md +12 -2
  167. package/dist/skills/media-use/references/memory.md +4 -0
  168. package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +173 -0
  169. package/dist/skills/media-use/scripts/lib/prefs-store.mjs +46 -28
  170. package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +56 -0
  171. package/dist/{skills-7XS4HZBC.js → skills-3RFMPMJA.js} +5 -5
  172. package/dist/{skillsUpdateCheck-MGU5KLR4.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
  173. package/dist/{snapshot-O2PMEMKH.js → snapshot-5PHA43DK.js} +54 -41
  174. package/dist/{src-Q4R2YPKA.js → src-36BQVJL3.js} +17 -11
  175. package/dist/{src-OQRG6BT7.js → src-4YJKYMNF.js} +11 -7
  176. package/dist/{staticProjectServer-6OY4VMO6.js → staticProjectServer-3XFB76XS.js} +18 -18
  177. package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
  178. package/dist/studio/assets/{index-DpxSurnJ.js → index-BNuxGFZK.js} +1 -1
  179. package/dist/studio/assets/{index-DmST2bTJ.js → index-CwreIGoq.js} +132 -132
  180. package/dist/studio/index.html +1 -1
  181. package/dist/{studio-api-YSUTKHV7.js → studio-api-WL6EZ4KE.js} +11 -11
  182. package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
  183. package/dist/{studioServer-APGEQIW5.js → studioServer-ZS5RA6U3.js} +66 -56
  184. package/dist/{telemetry-3B6EA5IU.js → telemetry-W3LRO3TB.js} +3 -3
  185. package/dist/{timeline-QWM6JS4B.js → timeline-BDO5DYWP.js} +19 -19
  186. package/dist/{tokens-TKLSP3OQ.js → tokens-47CEMYFV.js} +2 -2
  187. package/dist/{transcribe-XOPMHJLJ.js → transcribe-GEPVJO3A.js} +19 -19
  188. package/dist/{transcribe-PODOCWCC.js → transcribe-XF3NL6JI.js} +13 -13
  189. package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
  190. package/dist/{updateCheck-RO6FPYMZ.js → updateCheck-BON6ZFYP.js} +2 -2
  191. package/dist/{upgrade-EVNIL5TZ.js → upgrade-KIF5Z4J3.js} +2 -2
  192. package/dist/{urlDownloader-F5HYFRA6.js → urlDownloader-UDRHVUWR.js} +7 -7
  193. package/dist/{validate-NXLFCHGG.js → validate-2OPSQT3W.js} +24 -24
  194. package/dist/{video-ECV2OIQN.js → video-ECWXMY4F.js} +8 -8
  195. package/dist/warmCheck.js +40 -38
  196. package/package.json +1 -1
  197. package/dist/chunk-YRQPU7SV.js +0 -3983
  198. package/dist/studio/assets/hyperframes-player-CttA4PW7.js +0 -478
  199. package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
@@ -9,30 +9,30 @@ import {
9
9
  } from "./chunk-DGECWPTL.js";
10
10
  import {
11
11
  maybePromptRenderFeedback
12
- } from "./chunk-QWATUGUX.js";
12
+ } from "./chunk-VHVSBOZH.js";
13
13
  import {
14
14
  reportVariableIssues,
15
15
  resolveVariablesArg,
16
16
  validateVariablesAgainstProject
17
- } from "./chunk-QCQDUQVJ.js";
17
+ } from "./chunk-PNKLOMHQ.js";
18
18
  import "./chunk-ZBAF6L74.js";
19
19
  import {
20
20
  renderJobObservabilityTelemetryPayload,
21
21
  startRenderCpuSampler
22
- } from "./chunk-CXZDIWMK.js";
22
+ } from "./chunk-ZNAOBFU5.js";
23
23
  import {
24
24
  formatLintStartupMessage
25
25
  } from "./chunk-6CSYCFQV.js";
26
26
  import {
27
27
  desktopHint
28
- } from "./chunk-XX5U64F2.js";
28
+ } from "./chunk-VEA7Z4PZ.js";
29
29
  import "./chunk-2ST4WAFY.js";
30
30
  import {
31
31
  runEnvironmentChecks
32
- } from "./chunk-N3EJG2X4.js";
32
+ } from "./chunk-QVTCXN42.js";
33
33
  import {
34
34
  createRenderCancellationScope
35
- } from "./chunk-54K7HW46.js";
35
+ } from "./chunk-FNNGQ3DB.js";
36
36
  import {
37
37
  H264EncoderUnavailableError,
38
38
  chromeLaunchRemediation,
@@ -40,7 +40,7 @@ import {
40
40
  findFFmpeg,
41
41
  findFFprobe,
42
42
  getFFmpegInstallHint
43
- } from "./chunk-D3EZHD2D.js";
43
+ } from "./chunk-5QKJPCQ4.js";
44
44
  import {
45
45
  markRenderSucceeded,
46
46
  runPostRenderStep,
@@ -48,15 +48,15 @@ import {
48
48
  } from "./chunk-66LREXGS.js";
49
49
  import {
50
50
  captureArtifactRevision
51
- } from "./chunk-2756LXGY.js";
52
- import "./chunk-KOBPUFCN.js";
51
+ } from "./chunk-AAX2A7LQ.js";
52
+ import "./chunk-3R6SXPHD.js";
53
+ import "./chunk-X7MTZ4T2.js";
53
54
  import {
54
55
  loadProducer
55
- } from "./chunk-VCBZOU7U.js";
56
- import "./chunk-X7MTZ4T2.js";
56
+ } from "./chunk-CNVHMLPI.js";
57
57
  import {
58
58
  resolveProject
59
- } from "./chunk-6RLP6RDE.js";
59
+ } from "./chunk-HEP5XMXV.js";
60
60
  import {
61
61
  recordRenderSuccess,
62
62
  registerRenderOutput
@@ -70,11 +70,11 @@ import {
70
70
  resolveCompositionEntryArg,
71
71
  resolveDefaultFpsArg,
72
72
  windowsChromeCrashRemediation
73
- } from "./chunk-VC3BMKYO.js";
73
+ } from "./chunk-QL4ZYSIB.js";
74
74
  import {
75
75
  sandboxDeniedRemediation
76
76
  } from "./chunk-DKPNNYBZ.js";
77
- import "./chunk-QZ4HQQYS.js";
77
+ import "./chunk-PQYWYBEQ.js";
78
78
  import {
79
79
  errorBox,
80
80
  formatBytes,
@@ -83,21 +83,21 @@ import {
83
83
  formatScreenshotFallbackHint,
84
84
  resolvePrintedCaptureMode
85
85
  } from "./chunk-K2FLNJVB.js";
86
- import "./chunk-DQBY7FRR.js";
86
+ import "./chunk-543U46OR.js";
87
87
  import {
88
88
  loadProjectConfig,
89
89
  readProjectConfigWithStatus,
90
90
  seedProjectAuthoringSkill
91
- } from "./chunk-DBF6LLXB.js";
91
+ } from "./chunk-WHD5IAHI.js";
92
92
  import "./chunk-XT7X6QCP.js";
93
93
  import "./chunk-4YYJOFKS.js";
94
94
  import {
95
95
  normalizeSkillSlug
96
96
  } from "./chunk-HVW7ABXD.js";
97
- import "./chunk-3GPDAE3D.js";
97
+ import "./chunk-3B2DBUQX.js";
98
98
  import "./chunk-JHOCK3DG.js";
99
- import "./chunk-HBDQGIQA.js";
100
- import "./chunk-TQH7BF7K.js";
99
+ import "./chunk-Z3XXLTVB.js";
100
+ import "./chunk-4DGLKB2H.js";
101
101
  import "./chunk-AWDFDFI3.js";
102
102
  import "./chunk-P6LJ4Y32.js";
103
103
  import "./chunk-GMECXFAN.js";
@@ -107,8 +107,8 @@ import {
107
107
  trackRenderError,
108
108
  trackRenderObservation,
109
109
  trackRenderPreflightRejected
110
- } from "./chunk-LVMJXO45.js";
111
- import "./chunk-TAYZSNYS.js";
110
+ } from "./chunk-FMWACL3L.js";
111
+ import "./chunk-FJW757TF.js";
112
112
  import "./chunk-VWG7OQKU.js";
113
113
  import {
114
114
  defineCommand
@@ -131,37 +131,37 @@ import {
131
131
  MIN_VP9_CPU_USED,
132
132
  audioFailureDiagnostics,
133
133
  isVideoFrameFormat
134
- } from "./chunk-Y63CT2ZC.js";
134
+ } from "./chunk-RDDVQSNQ.js";
135
135
  import "./chunk-5S7W3TUO.js";
136
136
  import {
137
137
  formatRenderOutputTimestamp,
138
138
  fpsToFfmpegArg,
139
139
  fpsToNumber,
140
140
  parseFps
141
- } from "./chunk-65VFH2UV.js";
141
+ } from "./chunk-VW2LVMKB.js";
142
142
  import "./chunk-RQVDTPGD.js";
143
- import "./chunk-WMCGD4XL.js";
144
- import "./chunk-YRQPU7SV.js";
143
+ import "./chunk-MFHYBSJC.js";
144
+ import "./chunk-KLIPVNCO.js";
145
145
  import "./chunk-VC76R6W2.js";
146
146
  import {
147
147
  checkOutputResolutionCompatibility,
148
148
  isAspectAgnosticResolutionAlias,
149
149
  normalizeResolutionFlag,
150
150
  suggestMatchingPreset
151
- } from "./chunk-SVVAUJPL.js";
151
+ } from "./chunk-OFRRUYBA.js";
152
152
  import "./chunk-FR7YBU3H.js";
153
153
  import "./chunk-OFQWTKPW.js";
154
154
  import "./chunk-DPVXBVLL.js";
155
155
  import "./chunk-3GXQPCJC.js";
156
156
  import "./chunk-634HSJ3J.js";
157
157
  import "./chunk-FXMKHHPO.js";
158
- import "./chunk-QB4K2EWI.js";
158
+ import "./chunk-G6W55MTX.js";
159
159
  import {
160
160
  killOrphanedProcessesForRender
161
- } from "./chunk-LTGTN2TH.js";
161
+ } from "./chunk-4CY5RXXC.js";
162
162
  import {
163
163
  runRenderSetupWorker
164
- } from "./chunk-BL4U6U52.js";
164
+ } from "./chunk-X7A7C4JS.js";
165
165
  import {
166
166
  hasDefinitiveEntryMismatch
167
167
  } from "./chunk-Q5X2B5WT.js";
@@ -174,12 +174,12 @@ import "./chunk-4UMPIPCQ.js";
174
174
  import {
175
175
  lintProject,
176
176
  shouldBlockRender
177
- } from "./chunk-IDASYE4U.js";
177
+ } from "./chunk-2MLMO25E.js";
178
+ import "./chunk-CZGHFATT.js";
178
179
  import "./chunk-VAS6HQX3.js";
179
180
  import {
180
181
  collectSubCompositionSrcs
181
182
  } from "./chunk-PBNWRWKA.js";
182
- import "./chunk-CZGHFATT.js";
183
183
  import "./chunk-2BGOB2QK.js";
184
184
  import "./chunk-GWTIFRF5.js";
185
185
  import "./chunk-2RY2LWAA.js";
@@ -200,7 +200,7 @@ import {
200
200
  } from "./chunk-ISN5GRYI.js";
201
201
  import {
202
202
  VERSION
203
- } from "./chunk-D5CAZ7R4.js";
203
+ } from "./chunk-E2ZZSDDQ.js";
204
204
  import {
205
205
  normalizeErrorMessage
206
206
  } from "./chunk-T2EUWCJE.js";
@@ -701,7 +701,7 @@ async function executeRenderPlan(plan, dependencies, cancellation) {
701
701
  let batchModule;
702
702
  let preparedBatch;
703
703
  if (plan.batchPath) {
704
- batchModule = await import("./batchRender-JFUWZR3M.js");
704
+ batchModule = await import("./batchRender-LI2BJRGO.js");
705
705
  try {
706
706
  preparedBatch = batchModule.prepareBatchRender({
707
707
  batchPath: plan.batchPath,
@@ -792,8 +792,8 @@ function assertRenderActive(cancellation) {
792
792
  cancellation?.signal.throwIfAborted();
793
793
  }
794
794
  async function refuseLowDiskBeforeBrowserDownload(plan) {
795
- const { checkDisk } = await import("./preflight-TNYC7EIS.js");
796
- await (await import("./manager-F34TSFV6.js")).sweepKilledInstalls();
795
+ const { checkDisk } = await import("./preflight-QWGXMISC.js");
796
+ await (await import("./manager-F2YREC5X.js")).sweepKilledInstalls();
797
797
  const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
798
798
  const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
799
799
  if (low.length === 0) return;
@@ -801,7 +801,7 @@ async function refuseLowDiskBeforeBrowserDownload(plan) {
801
801
  failCommand();
802
802
  }
803
803
  async function ensureRenderBrowser(plan, signal) {
804
- const { ensureBrowser } = await import("./manager-F34TSFV6.js");
804
+ const { ensureBrowser } = await import("./manager-F2YREC5X.js");
805
805
  let browserSpinner;
806
806
  try {
807
807
  if (plan.effectiveQuiet) {
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveOutputResolutionFromSize
9
- } from "./chunk-WM7GOKEP.js";
9
+ } from "./chunk-GAV56VJL.js";
10
10
  import {
11
11
  requireStack
12
12
  } from "./chunk-RIJHDTM5.js";
@@ -14,12 +14,12 @@ import {
14
14
  loadProjectVariableSchema,
15
15
  reportVariableIssues,
16
16
  validateVariablesAgainstSchema
17
- } from "./chunk-QCQDUQVJ.js";
17
+ } from "./chunk-PNKLOMHQ.js";
18
18
  import "./chunk-ZBAF6L74.js";
19
19
  import {
20
20
  errorBox
21
21
  } from "./chunk-K2FLNJVB.js";
22
- import "./chunk-IJ6RY4CH.js";
22
+ import "./chunk-63DGZRZP.js";
23
23
  import {
24
24
  runWithConcurrencyLimit
25
25
  } from "./chunk-JHOCK3DG.js";
@@ -30,11 +30,11 @@ import {
30
30
  import {
31
31
  c
32
32
  } from "./chunk-ZTZA4UWZ.js";
33
- import "./chunk-65VFH2UV.js";
33
+ import "./chunk-VW2LVMKB.js";
34
34
  import "./chunk-RQVDTPGD.js";
35
- import "./chunk-YRQPU7SV.js";
35
+ import "./chunk-KLIPVNCO.js";
36
36
  import "./chunk-VC76R6W2.js";
37
- import "./chunk-SVVAUJPL.js";
37
+ import "./chunk-OFRRUYBA.js";
38
38
  import "./chunk-FR7YBU3H.js";
39
39
  import "./chunk-OFQWTKPW.js";
40
40
  import "./chunk-DPVXBVLL.js";
@@ -9,15 +9,15 @@ import {
9
9
  installLogLine,
10
10
  installProgressLine,
11
11
  releaseOwnedBrowserInstallLock
12
- } from "./chunk-QB4K2EWI.js";
12
+ } from "./chunk-G6W55MTX.js";
13
13
  import {
14
14
  killOrphanedProcesses
15
- } from "./chunk-LTGTN2TH.js";
15
+ } from "./chunk-4CY5RXXC.js";
16
16
  import {
17
17
  installRenderSetupSignalHandlers,
18
18
  renderSetupErrorLine,
19
19
  renderSetupResultLine
20
- } from "./chunk-BL4U6U52.js";
20
+ } from "./chunk-X7A7C4JS.js";
21
21
  import "./chunk-Q5X2B5WT.js";
22
22
  import "./chunk-QSFWGZG6.js";
23
23
  import "./chunk-XT6MXC7A.js";
@@ -25,10 +25,10 @@ import "./chunk-K4MJX7SR.js";
25
25
  import "./chunk-4UMPIPCQ.js";
26
26
  import {
27
27
  lintProject
28
- } from "./chunk-IDASYE4U.js";
28
+ } from "./chunk-2MLMO25E.js";
29
+ import "./chunk-CZGHFATT.js";
29
30
  import "./chunk-VAS6HQX3.js";
30
31
  import "./chunk-PBNWRWKA.js";
31
- import "./chunk-CZGHFATT.js";
32
32
  import "./chunk-2BGOB2QK.js";
33
33
  import "./chunk-GWTIFRF5.js";
34
34
  import "./chunk-2RY2LWAA.js";
@@ -11,17 +11,17 @@ import {
11
11
  resolveItemWithDependencies,
12
12
  resolveItemsByTag,
13
13
  unreachableRegistryMessage
14
- } from "./chunk-3GPDAE3D.js";
14
+ } from "./chunk-3B2DBUQX.js";
15
15
  import "./chunk-JHOCK3DG.js";
16
- import "./chunk-TQH7BF7K.js";
16
+ import "./chunk-4DGLKB2H.js";
17
17
  import "./chunk-AWDFDFI3.js";
18
18
  import "./chunk-P6LJ4Y32.js";
19
19
  import "./chunk-GMECXFAN.js";
20
- import "./chunk-65VFH2UV.js";
20
+ import "./chunk-VW2LVMKB.js";
21
21
  import "./chunk-RQVDTPGD.js";
22
- import "./chunk-YRQPU7SV.js";
22
+ import "./chunk-KLIPVNCO.js";
23
23
  import "./chunk-VC76R6W2.js";
24
- import "./chunk-SVVAUJPL.js";
24
+ import "./chunk-OFRRUYBA.js";
25
25
  import "./chunk-FR7YBU3H.js";
26
26
  import "./chunk-OFQWTKPW.js";
27
27
  import "./chunk-DPVXBVLL.js";
@@ -17,39 +17,39 @@ import {
17
17
  sherpaRuntimeLoadError,
18
18
  sherpaUnsupportedReason,
19
19
  transcribeWithSherpa
20
- } from "./chunk-RFCLI6TW.js";
20
+ } from "./chunk-CPSGXAYD.js";
21
21
  import "./chunk-CZUAX3BV.js";
22
22
  import "./chunk-EXAX37XR.js";
23
23
  import "./chunk-6BEFEWFB.js";
24
- import "./chunk-34VLVDOU.js";
25
- import "./chunk-54K7HW46.js";
26
- import "./chunk-TBSYUEB7.js";
24
+ import "./chunk-X5HHHFTX.js";
25
+ import "./chunk-FNNGQ3DB.js";
26
+ import "./chunk-2RT7MXFL.js";
27
27
  import "./chunk-WQ6ZXHFQ.js";
28
- import "./chunk-D3EZHD2D.js";
28
+ import "./chunk-5QKJPCQ4.js";
29
29
  import "./chunk-EOVYQ3IG.js";
30
- import "./chunk-Y63CT2ZC.js";
30
+ import "./chunk-RDDVQSNQ.js";
31
31
  import "./chunk-5S7W3TUO.js";
32
- import "./chunk-65VFH2UV.js";
32
+ import "./chunk-VW2LVMKB.js";
33
33
  import "./chunk-RQVDTPGD.js";
34
- import "./chunk-WMCGD4XL.js";
35
- import "./chunk-YRQPU7SV.js";
34
+ import "./chunk-MFHYBSJC.js";
35
+ import "./chunk-KLIPVNCO.js";
36
36
  import "./chunk-VC76R6W2.js";
37
- import "./chunk-SVVAUJPL.js";
37
+ import "./chunk-OFRRUYBA.js";
38
38
  import "./chunk-FR7YBU3H.js";
39
39
  import "./chunk-OFQWTKPW.js";
40
40
  import "./chunk-DPVXBVLL.js";
41
41
  import "./chunk-3GXQPCJC.js";
42
42
  import "./chunk-634HSJ3J.js";
43
43
  import "./chunk-FXMKHHPO.js";
44
- import "./chunk-LTGTN2TH.js";
45
- import "./chunk-BL4U6U52.js";
44
+ import "./chunk-4CY5RXXC.js";
45
+ import "./chunk-X7A7C4JS.js";
46
46
  import "./chunk-XT6MXC7A.js";
47
47
  import "./chunk-K4MJX7SR.js";
48
48
  import "./chunk-4UMPIPCQ.js";
49
- import "./chunk-IDASYE4U.js";
49
+ import "./chunk-2MLMO25E.js";
50
+ import "./chunk-CZGHFATT.js";
50
51
  import "./chunk-VAS6HQX3.js";
51
52
  import "./chunk-PBNWRWKA.js";
52
- import "./chunk-CZGHFATT.js";
53
53
  import "./chunk-2BGOB2QK.js";
54
54
  import "./chunk-GWTIFRF5.js";
55
55
  import "./chunk-2RY2LWAA.js";
@@ -12,10 +12,20 @@ Everything that claims to be the product is the product. One invented button los
12
12
 
13
13
  ## The product on screen
14
14
 
15
- - Rebuild only the piece the beat uses (the panel, the prompt box, the row that changes) and show it at 1.6–2× its real size; text stays at least 26 px at 1080p after any push. Never a small window in the middle of an empty canvas, never product UI tilted in 3D.
15
+ Captured screens establish what is real; they are not a shot list. A launch film can rearrange verified pieces to explain a result. For a launch, do not substitute a sequence of full-page screenshots with titles for showing what the product does.
16
+
17
+ Plan the relationship between the product and its parts:
18
+
19
+ 1. **Establish the workspace.** Show enough of the real navigation and surrounding interface to locate the task. A whole-product view supplies context; the viewer does not need to read every control.
20
+ 2. **Isolate the action.** Bring the relevant chart, field or result forward. Keep its real labels, values and state; rebuild only the piece the beat uses and show it at 1.6–2× its real size. Text stays at least 26 px at 1080p after any push. Never a small window in the middle of an empty canvas, never product UI tilted in 3D. Let a trace draw, a result populate or a panel open before advancing. A camera move over a frozen screenshot is not the product performing an action.
21
+ 3. **Return the result.** Carry the same component back into its place in the interface, or pull back to show where the output is used. When the result plays inside the product, pull back to reveal its player or zoom through the player until the result fills the frame. A film made only of floating close-ups loses the system they belong to. Do not imply that a rearranged component is an interaction the product actually supports.
22
+
23
+ Keep a short explanation where the action needs one: a phrase naming the change, the relevant label or the meaning of a number. "Less text" does not mean removing the context needed to understand the evidence. Reveal supporting elements across the beat instead of showing everything at its start and extending the hold. Review the transition's intermediate frames as well as its endpoints; carried labels and values must not jump or get covered on the way back into the workspace.
24
+
25
+ For a background or palette revision, update the root, scene surfaces and timeline color tweens together; a later tween can restore the old background. Adjust text, chart strokes and axes for contrast on the new ground, then check frames from every affected scene and transition. Preserve the product's meaningful status colors.
26
+
16
27
  - The camera cycles between the window on its ground, one pane, and a punch-in on one control. Moves take 0.4–0.6 s with motion blur, arrive at the control the cursor needs, then hold while the UI acts.
17
28
  - Containers morph instead of cutting: the button becomes the menu, the message becomes the bubble.
18
- - Pull back to reveal that the result was playing inside the product, or zoom through the player until the result fills the frame.
19
29
  - The cursor is big (4–7% of the frame), enters from off-screen, and its click causes the next thing on the same frame.
20
30
 
21
31
  ## Worlds and transitions
@@ -12,6 +12,10 @@ node <SKILL_DIR>/scripts/prefs.mjs record --hyperframes . --key style_preset --v
12
12
 
13
13
  Only what the user actually confirmed gets recorded — never an inferred or defaulted value. A remembered value becomes the recommended default, shown with where it came from; it never skips a question.
14
14
 
15
+ Preference records serialize writes with `preferences.json.lock` beside each tier's file. If a process stops while holding that lock, later records leave it in place and report "Settings are locked…". After confirming no HyperFrames process is recording preferences, delete the named lock file and retry. A locked personal tier does not fail the project record; personal promotion waits for a later record.
16
+
17
+ Keep the project's preference file committed, and add `.media/*.lock` to the project's `.gitignore` so transient locks are never shared with the team.
18
+
15
19
  ## Recipes — frozen video bundles
16
20
 
17
21
  The heavyweight tier of user memory: one approved run frozen as a named, versioned bundle — `frame.md`, the storyboard skeleton (structure kept, content blanked to per-frame fill-ins), the brief skeleton (from `BRIEF.md` when the project has one — reusable frontmatter kept, run-shape and prose blanked), and the confirmed brief values. Same two tiers: project `.media/recipes/<name>/` (committed) and `~/.media/recipes/<name>/` (a freeze is already a confirmed bundle, so it promotes immediately — no two-project rule). Re-freezing a name bumps `version` and archives the old folder as `<name>@v<N>`.
@@ -0,0 +1,173 @@
1
+ import assert from "node:assert/strict";
2
+ import { fork } from "node:child_process";
3
+ import {
4
+ existsSync,
5
+ mkdirSync,
6
+ mkdtempSync,
7
+ readdirSync,
8
+ readFileSync,
9
+ rmSync,
10
+ utimesSync,
11
+ writeFileSync,
12
+ } from "node:fs";
13
+ import { tmpdir } from "node:os";
14
+ import { dirname, join } from "node:path";
15
+ import { test } from "node:test";
16
+ import { fileURLToPath } from "node:url";
17
+ import { projectPrefsPath, recordPreference, userPrefsPath } from "./prefs-store.mjs";
18
+
19
+ async function inSandbox(task) {
20
+ const root = mkdtempSync(join(tmpdir(), "mu-prefs-concurrent-"));
21
+ const previousHome = process.env.HYPERFRAMES_MEDIA_HOME;
22
+ process.env.HYPERFRAMES_MEDIA_HOME = join(root, "home");
23
+ const project = join(root, "project");
24
+ mkdirSync(project);
25
+ try {
26
+ await task({ root, project });
27
+ } finally {
28
+ if (previousHome === undefined) delete process.env.HYPERFRAMES_MEDIA_HOME;
29
+ else process.env.HYPERFRAMES_MEDIA_HOME = previousHome;
30
+ rmSync(root, { recursive: true, force: true });
31
+ }
32
+ }
33
+
34
+ function worker(root, source, args = []) {
35
+ const path = join(mkdtempSync(join(root, "worker-")), "worker.cjs");
36
+ writeFileSync(path, source);
37
+ const child = fork(path, args, { silent: true, execArgv: [] });
38
+ let stderr = "";
39
+ child.stderr.setEncoding("utf8").on("data", (data) => (stderr += data));
40
+ const ready = new Promise((resolve, reject) => {
41
+ child.once("message", resolve);
42
+ child.once("error", reject);
43
+ child.once("exit", () => reject(new Error(`worker exited before ready: ${stderr}`)));
44
+ });
45
+ const closed = new Promise((resolve, reject) => {
46
+ child.once("error", reject);
47
+ child.once("close", (code) => resolve({ code, stderr }));
48
+ });
49
+ return { child, ready, closed };
50
+ }
51
+
52
+ for (const tier of ["project", "user"]) {
53
+ test(`record re-reads the ${tier} tier after another process releases its lock`, async () => {
54
+ await inSandbox(async ({ root, project }) => {
55
+ const path = tier === "project" ? projectPrefsPath(project) : userPrefsPath();
56
+ mkdirSync(dirname(path), { recursive: true });
57
+ const held = worker(
58
+ root,
59
+ `const fs = require("node:fs");
60
+ const path = process.argv[2];
61
+ fs.writeFileSync(path + ".lock", "held", { flag: "wx" });
62
+ process.send("locked");
63
+ setTimeout(() => {
64
+ fs.writeFileSync(path, JSON.stringify({version: 1,
65
+ preferences: {aspect: {value: "1080x1920", confirmed_in: ["other"]}},
66
+ sightings: {aspect: {"1080x1920": ["other"]}}}));
67
+ fs.rmSync(path + ".lock");
68
+ process.disconnect();
69
+ }, 300);`,
70
+ [path],
71
+ );
72
+ try {
73
+ await held.ready;
74
+ recordPreference({ projectDir: project, key: "destination", value: "youtube-shorts" });
75
+ const result = await held.closed;
76
+ assert.equal(result.code, 0, result.stderr);
77
+ const file = JSON.parse(readFileSync(path, "utf8"));
78
+ assert.equal(file.preferences.aspect?.value, "1080x1920");
79
+ if (tier === "project") {
80
+ assert.equal(file.preferences.destination?.value, "youtube-shorts");
81
+ } else {
82
+ assert.deepEqual(file.sightings.destination?.["youtube-shorts"], ["project"]);
83
+ assert.deepEqual(file.sightings.aspect?.["1080x1920"], ["other"]);
84
+ }
85
+ } finally {
86
+ held.child.kill();
87
+ await held.closed;
88
+ }
89
+ });
90
+ });
91
+ }
92
+
93
+ test("parallel records preserve every project key and promote every shared user sighting", async () => {
94
+ await inSandbox(async ({ root, project }) => {
95
+ const secondProject = join(root, "second-project");
96
+ mkdirSync(secondProject);
97
+ const modulePath = fileURLToPath(new URL("./prefs-store.mjs", import.meta.url));
98
+ const choices = {
99
+ destination: "youtube-shorts",
100
+ aspect: "1080x1920",
101
+ language: "en",
102
+ flow: "automation",
103
+ };
104
+ const children = [project, secondProject].flatMap((projectDir) =>
105
+ Object.entries(choices).map(([key, value]) =>
106
+ worker(
107
+ root,
108
+ `const {pathToFileURL} = require("node:url");
109
+ import(pathToFileURL(process.argv[2])).then(({recordPreference}) => {
110
+ process.send("ready");
111
+ process.once("message", () => {
112
+ try {recordPreference(JSON.parse(process.argv[3]));}
113
+ catch (error) {console.error(error.message); process.exitCode = 1;}
114
+ process.disconnect();
115
+ });
116
+ });`,
117
+ [modulePath, JSON.stringify({ projectDir, key, value })],
118
+ ),
119
+ ),
120
+ );
121
+ try {
122
+ await Promise.all(children.map((child) => child.ready));
123
+ for (const child of children) child.child.send("record");
124
+ const results = await Promise.all(children.map((child) => child.closed));
125
+ for (const result of results) assert.equal(result.code, 0, result.stderr);
126
+ for (const projectDir of [project, secondProject]) {
127
+ const file = JSON.parse(readFileSync(projectPrefsPath(projectDir), "utf8"));
128
+ assert.deepEqual(Object.keys(file.preferences).sort(), Object.keys(choices).sort());
129
+ for (const [key, value] of Object.entries(choices))
130
+ assert.equal(file.preferences[key].value, value);
131
+ assert.deepEqual(readdirSync(dirname(projectPrefsPath(projectDir))), ["preferences.json"]);
132
+ }
133
+ const user = JSON.parse(readFileSync(userPrefsPath(), "utf8"));
134
+ for (const [key, value] of Object.entries(choices)) {
135
+ assert.equal(user.preferences[key].value, value);
136
+ assert.deepEqual(user.sightings[key][value].sort(), ["project", "second-project"]);
137
+ }
138
+ assert.deepEqual(readdirSync(dirname(userPrefsPath())), ["preferences.json"]);
139
+ } finally {
140
+ for (const child of children) child.child.kill();
141
+ await Promise.all(children.map((child) => child.closed));
142
+ }
143
+ });
144
+ });
145
+
146
+ for (const tier of ["project", "user"]) {
147
+ test(`an abandoned ${tier} lock never permits an unlocked preference write`, async () => {
148
+ await inSandbox(async ({ project }) => {
149
+ const path = tier === "project" ? projectPrefsPath(project) : userPrefsPath();
150
+ mkdirSync(dirname(path), { recursive: true });
151
+ const original = JSON.stringify({ version: 1, preferences: {}, sightings: {} });
152
+ writeFileSync(path, original);
153
+ const lock = `${path}.lock`;
154
+ writeFileSync(lock, "abandoned");
155
+ const past = new Date(Date.now() - 60_000);
156
+ utimesSync(lock, past, past);
157
+ const record = () => recordPreference({ projectDir: project, key: "language", value: "en" });
158
+ if (tier === "project") {
159
+ assert.throws(record, (error) => error.code === "HF_SETTINGS_LOCKED");
160
+ assert.equal(existsSync(userPrefsPath()), false);
161
+ } else {
162
+ assert.equal(record().promoted, false);
163
+ assert.equal(
164
+ JSON.parse(readFileSync(projectPrefsPath(project), "utf8")).preferences.language.value,
165
+ "en",
166
+ );
167
+ }
168
+ assert.equal(readFileSync(path, "utf8"), original);
169
+ assert.equal(readFileSync(lock, "utf8"), "abandoned");
170
+ assert.equal(existsSync(`${path}.${process.pid}.tmp`), false);
171
+ });
172
+ });
173
+ }