hyperframes 0.9.10 → 0.9.11

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 (178) hide show
  1. package/README.md +9 -0
  2. package/dist/{add-AFD3HNXB.js → add-IAFJH5RC.js} +6 -6
  3. package/dist/{agentPromptGenerator-XNGPKVEX.js → agentPromptGenerator-S3GWYMVC.js} +1 -1
  4. package/dist/{animatedGifPrep-E3PYKFJ3.js → animatedGifPrep-YU7IOD5D.js} +1 -1
  5. package/dist/api.js +9 -9
  6. package/dist/{asset-P6SF46UX.js → asset-UR4PH6KJ.js} +2 -2
  7. package/dist/{assetCataloger-SDFP4DWL.js → assetCataloger-VKJIQCYP.js} +1 -1
  8. package/dist/{audio-DFQXEAEE.js → audio-HZJ7QZQR.js} +9 -9
  9. package/dist/{auth-T62ANGDQ.js → auth-UBNAW62X.js} +1 -1
  10. package/dist/{autoUpdate-3IT56KGL.js → autoUpdate-DDFTFHRP.js} +3 -3
  11. package/dist/{backgroundChecks-UKBVUYML.js → backgroundChecks-H3TNVYJV.js} +4 -4
  12. package/dist/backgroundChecksWorker.js +4 -4
  13. package/dist/{beats-7UFMDXBY.js → beats-HOIQSFFP.js} +6 -6
  14. package/dist/{benchmark-LCSHBJJF.js → benchmark-ZYOQV7DK.js} +7 -7
  15. package/dist/{browser-5DZHA4EW.js → browser-PLFK53IZ.js} +4 -4
  16. package/dist/{bundleWithLocalizedFonts-TJL2JWRD.js → bundleWithLocalizedFonts-TH5SLG6O.js} +2 -2
  17. package/dist/{capture-UKWY3SZQ.js → capture-MICLAF6V.js} +13 -13
  18. package/dist/{capture-HLC6I4RE.js → capture-R77HOGLQ.js} +3 -3
  19. package/dist/{captureCompositionFrame-YMB3CKSP.js → captureCompositionFrame-WBMFZHEF.js} +4 -4
  20. package/dist/{catalog-F2XB4VPP.js → catalog-CGT32566.js} +6 -6
  21. package/dist/{catch-up-HCBA3MIP.js → catch-up-TMYPXRKC.js} +5 -5
  22. package/dist/{check-E2RQCELF.js → check-4O5J4OWS.js} +23 -23
  23. package/dist/{checkAudio-R4DRK3VG.js → checkAudio-AAVDZFIQ.js} +3 -3
  24. package/dist/{checkBrowser-NGY225IO.js → checkBrowser-3OCZBJC7.js} +17 -17
  25. package/dist/{chunk-BYC4C4YY.js → chunk-2VYAX3ZD.js} +2 -2
  26. package/dist/{chunk-GIYZMGYT.js → chunk-2VZVMCV6.js} +1 -1
  27. package/dist/{chunk-RZFW7FBA.js → chunk-33K2UZBX.js} +2 -2
  28. package/dist/{chunk-CBTBVRXB.js → chunk-37537KOL.js} +4 -4
  29. package/dist/{chunk-CDSTLOB7.js → chunk-4ILKN2MX.js} +8 -8
  30. package/dist/{chunk-NCP3JQ6S.js → chunk-4J4EGANW.js} +2 -2
  31. package/dist/{chunk-NBWYATVA.js → chunk-4YCNVKJX.js} +194 -17
  32. package/dist/{chunk-5CDTGHED.js → chunk-6DHC3MVK.js} +2 -2
  33. package/dist/{chunk-MHZ7NSL5.js → chunk-6JDNEQV5.js} +1 -1
  34. package/dist/{chunk-6HO6QKYG.js → chunk-6R2PED3X.js} +6 -6
  35. package/dist/{chunk-3XHWHH5A.js → chunk-6Y7WZTHJ.js} +23 -23
  36. package/dist/{chunk-W4Q6VYPZ.js → chunk-7ZBMUKHY.js} +2 -2
  37. package/dist/{chunk-7VOLQUA2.js → chunk-BBMMVLA3.js} +1 -1
  38. package/dist/{chunk-BLBMPEBX.js → chunk-BONBJJ35.js} +1 -0
  39. package/dist/{chunk-2WNIF4YT.js → chunk-CD65TPHT.js} +1 -1
  40. package/dist/{chunk-ZMXFRRQR.js → chunk-CN3Q4CDK.js} +3 -3
  41. package/dist/{chunk-QPEDM2ZR.js → chunk-DI3ZFBZ3.js} +1 -1
  42. package/dist/{chunk-UDBNPVUR.js → chunk-EL2DMHA5.js} +1 -1
  43. package/dist/{chunk-B5GWDPUO.js → chunk-EPCVE3OX.js} +2 -2
  44. package/dist/{chunk-6UZLHLFP.js → chunk-FC4WF2VQ.js} +1 -1
  45. package/dist/{chunk-DKROJ3GJ.js → chunk-H7H7XNYY.js} +80 -20
  46. package/dist/{chunk-JZPUXDQE.js → chunk-HY64QA63.js} +1 -1
  47. package/dist/{chunk-7VGM5TLZ.js → chunk-I4XTKG2B.js} +2 -2
  48. package/dist/{skills-T5XCP3RC.js → chunk-IMK55N3Z.js} +25 -32
  49. package/dist/{chunk-WCETVN3N.js → chunk-IQ5OMRLK.js} +24 -38
  50. package/dist/{chunk-PPMCILED.js → chunk-JS6ZTPYC.js} +4 -4
  51. package/dist/{chunk-PO7LSMN5.js → chunk-JT2ZGKKB.js} +2 -2
  52. package/dist/{chunk-Q3W7TDQX.js → chunk-KNOIX2U5.js} +3 -3
  53. package/dist/{chunk-P4WYY52Y.js → chunk-LWFXO732.js} +1 -1
  54. package/dist/{upgrade-2FS4AMCA.js → chunk-MZHCA5KY.js} +65 -27
  55. package/dist/{chunk-EN6MPNZT.js → chunk-NQYW4IYN.js} +2 -2
  56. package/dist/{chunk-QBPZHOEJ.js → chunk-OKD2LP73.js} +1 -1
  57. package/dist/{chunk-WP5QHNXN.js → chunk-OQGA4QBD.js} +17 -5
  58. package/dist/{chunk-PYUS627M.js → chunk-OQHC5YIB.js} +2 -2
  59. package/dist/{chunk-BHL4KN3H.js → chunk-PKLZ5PV2.js} +1 -1
  60. package/dist/{chunk-YXSM33UC.js → chunk-QM4OL5MZ.js} +9 -9
  61. package/dist/{chunk-2CKL2FUJ.js → chunk-SUM3VFPQ.js} +2 -2
  62. package/dist/{chunk-6VKYITOR.js → chunk-T4ELNOK6.js} +1 -1
  63. package/dist/{chunk-GRUI2S2F.js → chunk-VWUUNGSV.js} +1 -1
  64. package/dist/{chunk-7VU4RBHC.js → chunk-WJ7E5J77.js} +9 -9
  65. package/dist/{chunk-NVYVI4FR.js → chunk-YJZYUXHQ.js} +1 -1
  66. package/dist/{chunk-WWPOGMNX.js → chunk-ZUACTOAB.js} +1 -1
  67. package/dist/{clean-BXHJEVVO.js → clean-2FWZPS4J.js} +8 -8
  68. package/dist/cli.js +59 -58
  69. package/dist/{cloud-ISWLTHGP.js → cloud-2UFI7NLD.js} +4 -4
  70. package/dist/cloud-Z3FNCC4T.js +1 -1
  71. package/dist/{compare-MLZYDSZD.js → compare-HKRLSFTU.js} +15 -15
  72. package/dist/{compiler-NAIDMQFU.js → compiler-KKIYPREA.js} +1 -1
  73. package/dist/{component-MMBTCMY3.js → component-F43F3363.js} +3 -3
  74. package/dist/{compositions-WT2577NJ.js → compositions-FFXCISLD.js} +7 -7
  75. package/dist/{curve-HHKVZ6LX.js → curve-RHSJUG5P.js} +5 -5
  76. package/dist/{cuts-66GBRT5P.js → cuts-KVFY3U6C.js} +5 -5
  77. package/dist/{delete-P3WYOC7I.js → delete-O7IZKKUN.js} +4 -4
  78. package/dist/{deploy-OJ3M7QJQ.js → deploy-PZAAUW75.js} +8 -8
  79. package/dist/{describeProject-DN6YQU3X.js → describeProject-E44RWBJL.js} +1 -1
  80. package/dist/{diff-R74KQXXN.js → diff-OMNILRNN.js} +18 -18
  81. package/dist/{dist-CCPYPKOC.js → dist-PUHEYGA5.js} +3 -3
  82. package/dist/{doctor-DT52W4UE.js → doctor-4HZN7ZVI.js} +9 -5
  83. package/dist/{energy-WOMDOOLC.js → energy-N3ZIPHTP.js} +5 -5
  84. package/dist/{events-YVQJLQWG.js → events-56A5D6DK.js} +4 -4
  85. package/dist/{events-WEVZ2ELP.js → events-TUTAERAN.js} +6 -6
  86. package/dist/{events-PCK4AIN5.js → events-VAJ4Y6XF.js} +3 -3
  87. package/dist/{extract-CNXA3DWB.js → extract-NJMZEOLG.js} +6 -6
  88. package/dist/{face-2WNBW74C.js → face-KLV4W6CP.js} +5 -5
  89. package/dist/{feedback-ADMM2XDS.js → feedback-4VEKGVLN.js} +5 -5
  90. package/dist/{ffmpeg-PERZ6YHQ.js → ffmpeg-A2O4HSRD.js} +1 -1
  91. package/dist/{figma-5MMN5JUU.js → figma-6XDKKOA6.js} +3 -3
  92. package/dist/fontLocalizeCli.js +3 -3
  93. package/dist/{frames-7CQGHRWT.js → frames-IAMGMNCA.js} +5 -5
  94. package/dist/{generate-XOR4UJDW.js → generate-FMATRA3L.js} +8 -8
  95. package/dist/{get-5K6ALHBS.js → get-JKA3APWR.js} +4 -4
  96. package/dist/{gpuPolicy-DUNSQM6M.js → gpuPolicy-TKHFDEH2.js} +2 -2
  97. package/dist/{grade-compare-DK63C776.js → grade-compare-TCLCDUG5.js} +14 -14
  98. package/dist/{heifImagePrep-YNPHFR6W.js → heifImagePrep-L2EY67F2.js} +1 -1
  99. package/dist/{help-AUF2KA6D.js → help-TWDOQJDN.js} +3 -2
  100. package/dist/{history-G3FXVX4A.js → history-SOWVZUAB.js} +7 -7
  101. package/dist/hyperframes-player.global.js +1 -1
  102. package/dist/{info-DGU3CIU5.js → info-JDINBZLH.js} +6 -6
  103. package/dist/{init-LYZI2WCS.js → init-ACNL6AFC.js} +15 -15
  104. package/dist/{ink-DYZG4BST.js → ink-WNEJROFH.js} +5 -5
  105. package/dist/{inspect-BYQSCRKT.js → inspect-37AMWUW3.js} +15 -15
  106. package/dist/{keyframes-XX2DIYPI.js → keyframes-LMUFQW4Z.js} +7 -7
  107. package/dist/{lambda-RKI7KKWW.js → lambda-DRGDNEW6.js} +3 -3
  108. package/dist/{layout-RQFOMQRO.js → layout-E63HPSXW.js} +15 -15
  109. package/dist/{lint-LFCMCDEG.js → lint-HNZPRCXH.js} +7 -7
  110. package/dist/{list-V4TGMQ3Y.js → list-UMR5VN2M.js} +4 -4
  111. package/dist/{localPage-6MQ6YFER.js → localPage-KIFKMB2B.js} +1 -1
  112. package/dist/{login-EXCG7PEH.js → login-OXOPCSUY.js} +4 -4
  113. package/dist/{look-RBHKHGMF.js → look-DFQJP2LY.js} +5 -5
  114. package/dist/{manager-ARXEX6OP.js → manager-T633Z2L4.js} +1 -1
  115. package/dist/{measure-SAV5K4WT.js → measure-Y2VXF6LJ.js} +11 -11
  116. package/dist/{media-treatment-2BVHRXJS.js → media-treatment-U2PDH4P3.js} +8 -8
  117. package/dist/{media-use-YEBYLITF.js → media-use-KGNGAQQP.js} +2 -1
  118. package/dist/{models-GMJODMZ5.js → models-HATSG3VK.js} +5 -5
  119. package/dist/{motionShot-Z63I3GO7.js → motionShot-45M7MSFQ.js} +7 -7
  120. package/dist/{normalize-audio-ILLUZPTO.js → normalize-audio-SOXEVIKM.js} +5 -5
  121. package/dist/{open-GTNLU7UF.js → open-LRPNBFRW.js} +5 -5
  122. package/dist/{parakeetRunner-K4EGDDVH.js → parakeetRunner-A7Z6CQOT.js} +1 -1
  123. package/dist/{pipeline-EKLTELWF.js → pipeline-N3M6VXBC.js} +4 -4
  124. package/dist/{play-F2HIXJKH.js → play-HTHDFMOU.js} +10 -10
  125. package/dist/{preflight-QMXCKE5P.js → preflight-XZZXHV42.js} +1 -1
  126. package/dist/{present-GDR6LCKE.js → present-LQ4PJTP4.js} +10 -10
  127. package/dist/{preview-4TV5426Q.js → preview-CTEDNFN3.js} +9 -9
  128. package/dist/{probe-TYM7WKX2.js → probe-6IZD5TPR.js} +6 -6
  129. package/dist/{producer-NHQXKH7Y.js → producer-4CR46ON4.js} +1 -1
  130. package/dist/{remove-background-LURZDSDJ.js → remove-background-SYHNGASQ.js} +5 -5
  131. package/dist/{render-GEAO2HAV.js → render-JHSMAWED.js} +9 -9
  132. package/dist/{render-YLAS7GVD.js → render-VZLEKSHR.js} +18 -18
  133. package/dist/{reverse-3KAZZXB2.js → reverse-SCXEQVRH.js} +1 -1
  134. package/dist/{run-XER4YJY5.js → run-GRCZ6JO5.js} +2 -2
  135. package/dist/{sherpa-D6FQ3CHN.js → sherpa-EENLR3RM.js} +1 -1
  136. package/dist/skills/hyperframes-cli/SKILL.md +2 -0
  137. package/dist/skills/media-use/SKILL.md +1 -1
  138. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +2 -0
  139. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +14 -0
  140. package/dist/skills/media-use/references/heygen.md +1 -1
  141. package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +3 -0
  142. package/dist/skills/media-use/scripts/lib/credit-limit.mjs +41 -0
  143. package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +39 -0
  144. package/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +2 -0
  145. package/dist/skills/media-use/scripts/lib/voice-provider.mjs +2 -0
  146. package/dist/skills-4TSYBAGW.js +49 -0
  147. package/dist/{skillsUpdateCheck-IG7KLWIA.js → skillsUpdateCheck-MGXL5VXL.js} +6 -4
  148. package/dist/{snapshot-RULSIRM6.js → snapshot-P27Y3NJE.js} +18 -18
  149. package/dist/{src-RL6YEPTD.js → src-L7UBHHKB.js} +1 -1
  150. package/dist/{src-DHBRQZFZ.js → src-MWO2XBSA.js} +2 -2
  151. package/dist/{start-GF3JCTGF.js → start-L5M26YD5.js} +6 -6
  152. package/dist/{staticProjectServer-BX4RWEY5.js → staticProjectServer-2JYB7RLI.js} +5 -5
  153. package/dist/studio/assets/{hyperframes-player-BcELSci_.js → hyperframes-player-BbRz52ui.js} +1 -1
  154. package/dist/studio/assets/{index-2SLNyxZG.js → index-CCSgOq2L.js} +1 -1
  155. package/dist/studio/assets/{index-DR2eua-L.js → index-D3y5mWmH.js} +4 -4
  156. package/dist/studio/index.html +1 -1
  157. package/dist/{studio-api-PEUXVD7P.js → studio-api-MEZKFJBY.js} +3 -3
  158. package/dist/{studioServer-DOTRPHS3.js → studioServer-J5RPUMHP.js} +24 -24
  159. package/dist/{sync-XQPBXGGX.js → sync-FHT2CHKU.js} +5 -5
  160. package/dist/{telemetry-7TIIOBVB.js → telemetry-JWEOBK3Q.js} +4 -4
  161. package/dist/{telemetry-T73TKZOL.js → telemetry-WGNNQUSF.js} +1 -1
  162. package/dist/{timeline-4JIUAUIP.js → timeline-ZO3PNIET.js} +9 -9
  163. package/dist/{tokens-4PQU4LVQ.js → tokens-X6OTCQCV.js} +2 -2
  164. package/dist/{transcribe-IKUPC2R3.js → transcribe-KNO3BK5S.js} +8 -8
  165. package/dist/{transcribe-N66QUYCS.js → transcribe-QIZGXMR5.js} +1 -1
  166. package/dist/{tts-HIQMJU6O.js → tts-JHGGL7GL.js} +1 -1
  167. package/dist/update-WXGSPMEG.js +280 -0
  168. package/dist/{updateCheck-LBPTWEZV.js → updateCheck-OBYSCTWV.js} +7 -3
  169. package/dist/upgrade-YCCIVSI6.js +40 -0
  170. package/dist/{urlDownloader-YNI3Y3IE.js → urlDownloader-FOXK4FYP.js} +1 -1
  171. package/dist/{validate-MLVDUEK7.js → validate-TDVQ2B6Y.js} +13 -13
  172. package/dist/{video-2OEOTSPQ.js → video-AVEGMBDM.js} +1 -1
  173. package/dist/voices-2LIY4CYK.js +97 -0
  174. package/dist/warmCheck.js +23 -23
  175. package/package.json +1 -1
  176. package/dist/{chunk-QUBVGS27.js → chunk-LNTUFRZD.js} +3 -3
  177. package/dist/{destroy-C5GQLZVZ.js → destroy-IQLGADZM.js} +4 -4
  178. package/dist/{synthesize-YK3WLOEQ.js → synthesize-YYT7UON6.js} +5 -5
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-YVQJLQWG.js");
1281
+ const { trackCommandFailure } = await import("./events-56A5D6DK.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -23,11 +23,11 @@ import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode,
25
25
  rethrowAfterBrowserCleanup
26
- } from "./chunk-BHL4KN3H.js";
26
+ } from "./chunk-PKLZ5PV2.js";
27
27
  import {
28
28
  resolveLocalBrowserGpuMode,
29
29
  resolveLocalWebGpu
30
- } from "./chunk-6UZLHLFP.js";
30
+ } from "./chunk-FC4WF2VQ.js";
31
31
  import {
32
32
  c
33
33
  } from "./chunk-2GICKZ3I.js";
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
143
143
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
144
144
  });
145
145
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
146
- const { resolveConfig, waitForImagesReady } = await import("./src-RL6YEPTD.js");
146
+ const { resolveConfig, waitForImagesReady } = await import("./src-L7UBHHKB.js");
147
147
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
148
148
  await waitForImagesReady(
149
149
  page,
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
192
192
  async function openSettledCompositionPage(html, url, options) {
193
193
  const viewport = resolveCompositionViewportFromHtml(html);
194
194
  const requiresWebGpu = compositionRequiresWebGpu(html);
195
- const answer = (await import("./staticProjectServer-BX4RWEY5.js")).inProcessAnswer(url);
195
+ const answer = (await import("./staticProjectServer-2JYB7RLI.js")).inProcessAnswer(url);
196
196
  const noListen = answer !== void 0;
197
197
  let chromeBrowser;
198
198
  try {
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
203
203
  options.onBrowserReady?.();
204
204
  const page = await chromeBrowser.newPage();
205
205
  await installPageFunctionGuard(page);
206
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-RL6YEPTD.js");
206
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-L7UBHHKB.js");
207
207
  await installMediaRenderIdBridge(page);
208
208
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
209
209
  await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
225
225
  const { ensureBrowser, findSystemBrowser } = await import("./manager-SAXHANEY.js");
226
226
  const browser = await ensureBrowser({ signal: options.signal });
227
227
  const puppeteer = await import("puppeteer-core");
228
- const { buildChromeArgs } = await import("./src-RL6YEPTD.js");
228
+ const { buildChromeArgs } = await import("./src-L7UBHHKB.js");
229
229
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
230
230
  const requiresWebGpu = compositionRequiresWebGpu(html);
231
231
  let softwareWebGpu = false;
@@ -11,23 +11,23 @@ import {
11
11
  reportArtifacts,
12
12
  withProjectLock
13
13
  } from "./chunk-KUXOAS4Z.js";
14
+ import {
15
+ beginCheckSnapshots,
16
+ checkSnapshotDirectory,
17
+ finishCheckSnapshots,
18
+ preResolveHostileMediaProxies,
19
+ rectToBbox
20
+ } from "./chunk-QM4OL5MZ.js";
14
21
  import {
15
22
  collectProjectMedia,
16
23
  mediaPath
17
- } from "./chunk-PYUS627M.js";
24
+ } from "./chunk-OQHC5YIB.js";
18
25
  import {
19
26
  captureArtifactRevision
20
- } from "./chunk-QBPZHOEJ.js";
27
+ } from "./chunk-OKD2LP73.js";
21
28
  import {
22
29
  trackLintRun
23
- } from "./chunk-2CKL2FUJ.js";
24
- import {
25
- beginCheckSnapshots,
26
- checkSnapshotDirectory,
27
- finishCheckSnapshots,
28
- preResolveHostileMediaProxies,
29
- rectToBbox
30
- } from "./chunk-YXSM33UC.js";
30
+ } from "./chunk-SUM3VFPQ.js";
31
31
  import {
32
32
  CONTENT_OVERLAP_HELD_ERROR_MS,
33
33
  DEFAULT_MAX_STATIC_SEC,
@@ -48,7 +48,7 @@ import {
48
48
  mergeSampleTimes,
49
49
  parseAt,
50
50
  readMotionSpec
51
- } from "./chunk-CDSTLOB7.js";
51
+ } from "./chunk-4ILKN2MX.js";
52
52
  import {
53
53
  findingAtRoot,
54
54
  findingElementKey,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-TQBQYO4L.js";
58
58
  import {
59
59
  resolveProject
60
- } from "./chunk-7VOLQUA2.js";
60
+ } from "./chunk-BBMMVLA3.js";
61
61
  import {
62
62
  withRemainingBudget
63
63
  } from "./chunk-YGGZ23BB.js";
@@ -69,14 +69,14 @@ import {
69
69
  closeManagedBrowser,
70
70
  onStopSignal,
71
71
  registerBrowserSessionCleanup
72
- } from "./chunk-BHL4KN3H.js";
72
+ } from "./chunk-PKLZ5PV2.js";
73
73
  import {
74
74
  resolveLocalBrowserGpuMode
75
- } from "./chunk-6UZLHLFP.js";
75
+ } from "./chunk-FC4WF2VQ.js";
76
76
  import {
77
77
  trackCheckReport,
78
78
  trackCommandFailure
79
- } from "./chunk-5CDTGHED.js";
79
+ } from "./chunk-6DHC3MVK.js";
80
80
  import {
81
81
  swallowedFlagUsageError
82
82
  } from "./chunk-WWBEAKTO.js";
@@ -104,10 +104,10 @@ import {
104
104
  } from "./chunk-XX77LLFJ.js";
105
105
  import {
106
106
  withMeta
107
- } from "./chunk-NBWYATVA.js";
107
+ } from "./chunk-4YCNVKJX.js";
108
108
  import {
109
109
  recordLastCheck
110
- } from "./chunk-BLBMPEBX.js";
110
+ } from "./chunk-BONBJJ35.js";
111
111
  import {
112
112
  failureMessage,
113
113
  jsonFailure
@@ -2378,7 +2378,7 @@ function resolveMotionSpec(projectDir) {
2378
2378
  };
2379
2379
  }
2380
2380
  async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
2381
- const module = await import("./checkBrowser-NGY225IO.js");
2381
+ const module = await import("./checkBrowser-3OCZBJC7.js");
2382
2382
  return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
2383
2383
  }
2384
2384
  var adoptedBrowser;
@@ -2392,7 +2392,7 @@ async function prelaunchBrowser(project, options) {
2392
2392
  if (adopted) return adopted;
2393
2393
  const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
2394
2394
  if (html === void 0) return void 0;
2395
- const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-YMB3CKSP.js");
2395
+ const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-WBMFZHEF.js");
2396
2396
  return prelaunchCompositionBrowser(html, options.browserGpuMode);
2397
2397
  }
2398
2398
  async function writeSnapshot(projectDir, index, time, pngBase64) {
@@ -2404,11 +2404,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
2404
2404
  return relative(projectDir, path);
2405
2405
  }
2406
2406
  async function captureFindingFrames(project, options, requests, deadline) {
2407
- const module = await import("./checkBrowser-NGY225IO.js");
2407
+ const module = await import("./checkBrowser-3OCZBJC7.js");
2408
2408
  return module.captureFindingFrames(project, options, requests, deadline);
2409
2409
  }
2410
2410
  async function captureFindingCrops(project, options, requests, deadline) {
2411
- const module = await import("./checkBrowser-NGY225IO.js");
2411
+ const module = await import("./checkBrowser-3OCZBJC7.js");
2412
2412
  return module.captureFindingCrops(project, options, requests, deadline);
2413
2413
  }
2414
2414
  async function inspectProjectMedia(project, dependencies) {
@@ -2430,7 +2430,7 @@ function collectMedia(project) {
2430
2430
  return collectProjectMedia(project.dir);
2431
2431
  }
2432
2432
  async function inspectAudio(project, media) {
2433
- const module = await import("./checkAudio-R4DRK3VG.js");
2433
+ const module = await import("./checkAudio-AAVDZFIQ.js");
2434
2434
  return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
2435
2435
  }
2436
2436
  function audioCheckFailure(project, error) {
@@ -2504,7 +2504,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
2504
2504
  }
2505
2505
  },
2506
2506
  async prepareMedia(project, options) {
2507
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-TJL2JWRD.js");
2507
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-TH5SLG6O.js");
2508
2508
  const html = await bundleWithLocalizedFonts(project.dir);
2509
2509
  return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
2510
2510
  },
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-UDBNPVUR.js";
10
+ } from "./chunk-EL2DMHA5.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-EHZESMRB.js";
33
33
  import {
34
34
  trackRegistryItemAdded
35
- } from "./chunk-5CDTGHED.js";
35
+ } from "./chunk-6DHC3MVK.js";
36
36
  import {
37
37
  defineCommand
38
38
  } from "./chunk-DL4OD7IA.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-5LOZWO2M.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-5CDTGHED.js";
12
+ } from "./chunk-6DHC3MVK.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-66W5IWLO.js";
@@ -341,6 +341,7 @@ function passthroughFields(parsed) {
341
341
  pendingUpdate: parsed.pendingUpdate,
342
342
  completedUpdate: parsed.completedUpdate,
343
343
  lastSkillsCheck: parsed.lastSkillsCheck,
344
+ skillsCheckedVersion: parsed.skillsCheckedVersion,
344
345
  skillsUpdateAvailable: parsed.skillsUpdateAvailable,
345
346
  skillsOutdatedCount: parsed.skillsOutdatedCount,
346
347
  skillsMissingCount: parsed.skillsMissingCount,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-7VOLQUA2.js";
9
+ } from "./chunk-BBMMVLA3.js";
10
10
  import {
11
11
  findPreviewServerForProject,
12
12
  studioApiUrl
@@ -12,7 +12,7 @@ import {
12
12
  jsonArg,
13
13
  num,
14
14
  runMeasure
15
- } from "./chunk-GRUI2S2F.js";
15
+ } from "./chunk-VWUUNGSV.js";
16
16
  import {
17
17
  idempotencyKey,
18
18
  keepVoice,
@@ -20,7 +20,7 @@ import {
20
20
  publicVoices,
21
21
  runJob,
22
22
  senderScope
23
- } from "./chunk-DKROJ3GJ.js";
23
+ } from "./chunk-H7H7XNYY.js";
24
24
  import {
25
25
  Fix,
26
26
  probeSeconds,
@@ -318,7 +318,7 @@ async function uploaded(paths) {
318
318
  if (!paths.length) return ids;
319
319
  const { createCloudClient } = await import("./cloud-Z3FNCC4T.js");
320
320
  const { uploadAssetViaDirectUpload } = await import("./upload-L5TSWWIU.js");
321
- const { getMimeType } = await import("./dist-CCPYPKOC.js");
321
+ const { getMimeType } = await import("./dist-PUHEYGA5.js");
322
322
  const client = await createCloudClient();
323
323
  for (const path of paths) {
324
324
  const asset = await uploadAssetViaDirectUpload({
@@ -8,7 +8,7 @@ import {
8
8
  jsonArg,
9
9
  runMeasure,
10
10
  videoArg
11
- } from "./chunk-GRUI2S2F.js";
11
+ } from "./chunk-VWUUNGSV.js";
12
12
  import {
13
13
  Fix,
14
14
  ffmpegBin,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-7VGM5TLZ.js";
9
+ } from "./chunk-I4XTKG2B.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-NCP3JQ6S.js";
9
+ } from "./chunk-4J4EGANW.js";
10
10
  import {
11
11
  openRangeEnd
12
12
  } from "./chunk-VEIGTKYZ.js";
13
13
  import {
14
14
  stripSdrPngColourTags
15
- } from "./chunk-PPMCILED.js";
15
+ } from "./chunk-JS6ZTPYC.js";
16
16
  import {
17
17
  injectTagsAtHeadStart
18
18
  } from "./chunk-Y3ICFPFK.js";
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-RL6YEPTD.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-L7UBHHKB.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -15,23 +15,50 @@ import {
15
15
  resolveCloudAuthHeaders,
16
16
  resolveCloudBaseUrl
17
17
  } from "./chunk-TSQZ3DSC.js";
18
- import {
19
- HyperframesApiError,
20
- HyperframesCloudClient
21
- } from "./chunk-3XJM7XZN.js";
22
18
  import {
23
19
  AuthClient,
24
20
  buildAuthHeaders,
25
21
  resolveCredential
26
22
  } from "./chunk-ETYQYG6Q.js";
23
+ import {
24
+ HyperframesApiError,
25
+ HyperframesCloudClient
26
+ } from "./chunk-3XJM7XZN.js";
27
27
  import {
28
28
  configDir
29
29
  } from "./chunk-BVAPHHMQ.js";
30
30
 
31
31
  // src/heygen/v3.ts
32
32
  import { createHash } from "crypto";
33
- import { appendFileSync, existsSync, mkdirSync, readFileSync } from "fs";
34
- import { dirname, join } from "path";
33
+ import { appendFileSync, existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2 } from "fs";
34
+ import { dirname, join as join2 } from "path";
35
+
36
+ // src/media-use/lib/credit-limit.mjs
37
+ import { existsSync, readFileSync } from "fs";
38
+ import { join } from "path";
39
+ var read = (file) => existsSync(file) ? readFileSync(file, "utf8") : "";
40
+ function creditLimit(projectDir) {
41
+ const text = read(join(projectDir, ".hyperframes", "credit-limit.json"));
42
+ if (!text) return void 0;
43
+ const credits = Number(JSON.parse(text)?.credits);
44
+ if (!Number.isFinite(credits) || credits < 0)
45
+ throw new Error(`${projectDir}/.hyperframes/credit-limit.json needs {"credits": <number>}`);
46
+ return credits;
47
+ }
48
+ function creditsSpent(projectDir) {
49
+ const charged = /* @__PURE__ */ new Map();
50
+ for (const row of read(join(projectDir, ".hyperframes", "heygen-jobs.jsonl")).split("\n")) {
51
+ if (!row) continue;
52
+ const { key, credits } = JSON.parse(row);
53
+ if (key && typeof credits === "number") charged.set(key, credits);
54
+ }
55
+ return {
56
+ total: [...charged.values()].reduce((a, b) => a + b, 0),
57
+ keys: new Set([...charged].filter(([, c]) => c > 0).map(([k]) => k))
58
+ };
59
+ }
60
+
61
+ // src/heygen/v3.ts
35
62
  var RUNNING = /* @__PURE__ */ new Set(["pending", "processing", "queued", "running", "waiting", "in_progress"]);
36
63
  var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
37
64
  function idempotencyKey(route, parts) {
@@ -43,7 +70,7 @@ var Refused = class extends Fix {
43
70
  status = 0;
44
71
  };
45
72
  var KEEPS_KEY = /* @__PURE__ */ new Set([401, 403, 408, 409, 425, 429]);
46
- var failedKeysFile = () => join(configDir(), "heygen-failed-keys");
73
+ var failedKeysFile = () => join2(configDir(), "heygen-failed-keys");
47
74
  var noSignIn = () => {
48
75
  throw new Fix("no HeyGen sign-in on this machine", "npx hyperframes auth login");
49
76
  };
@@ -58,7 +85,7 @@ async function jobSender() {
58
85
  }
59
86
  function failedKeys(scope) {
60
87
  const file = failedKeysFile();
61
- const lines = existsSync(file) ? readFileSync(file, "utf8").split("\n") : [];
88
+ const lines = existsSync2(file) ? readFileSync2(file, "utf8").split("\n") : [];
62
89
  return new Set(
63
90
  lines.filter((l) => l.startsWith(`${scope} `)).map((l) => l.slice(scope.length + 1))
64
91
  );
@@ -150,19 +177,41 @@ async function call(route, send, timeoutMs, estimate, auth) {
150
177
  }
151
178
  function log(entry, record) {
152
179
  if (!entry.projectDir) return;
153
- const dir = join(entry.projectDir, ".hyperframes");
180
+ const dir = join2(entry.projectDir, ".hyperframes");
154
181
  mkdirSync(dir, { recursive: true });
155
182
  appendFileSync(
156
- join(dir, "heygen-jobs.jsonl"),
183
+ join2(dir, "heygen-jobs.jsonl"),
157
184
  `${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), what: entry.what, ...record })}
158
185
  `
159
186
  );
160
187
  }
188
+ function withinLimit(limitLog, sent, credits) {
189
+ if (!limitLog?.projectDir) return false;
190
+ const limit = creditLimit(limitLog.projectDir);
191
+ if (limit === void 0) return false;
192
+ const spent = creditsSpent(limitLog.projectDir);
193
+ if (spent.keys.has(sent)) return false;
194
+ const left = limit - spent.total;
195
+ const fix = "tell the person what their limit leaves out, then ask whether to raise it or make the video without this piece";
196
+ if (credits === void 0)
197
+ throw new Fix(
198
+ `this call cannot be priced ahead, so it cannot be kept under the run's credit limit of ${limit}; nothing was made`,
199
+ fix
200
+ );
201
+ if (credits > left)
202
+ throw new Fix(
203
+ `this call is about ${credits} credits and the run's credit limit of ${limit} leaves ${Math.max(0, left)}; nothing was made or charged`,
204
+ fix
205
+ );
206
+ log(limitLog, { key: sent, status: "reserved", credits });
207
+ return true;
208
+ }
161
209
  async function runJob(jobRoute, body, key, opts = {}) {
162
210
  const started = Date.now();
163
211
  const route = jobRoute.path;
164
212
  const { auth, scope } = await jobSender();
165
213
  const sent = liveKey(key, scope);
214
+ const reserved = withinLimit(opts.log, sent, opts.credits);
166
215
  let job;
167
216
  try {
168
217
  job = await call(
@@ -173,11 +222,15 @@ async function runJob(jobRoute, body, key, opts = {}) {
173
222
  auth
174
223
  );
175
224
  } catch (err) {
176
- if (err instanceof Refused && !KEEPS_KEY.has(err.status)) markFailed(sent, scope);
225
+ if (err instanceof Refused && !KEEPS_KEY.has(err.status)) {
226
+ markFailed(sent, scope);
227
+ if (reserved && opts.log) log(opts.log, { key: sent, status: "refused", credits: 0 });
228
+ }
177
229
  throw err;
178
230
  }
179
231
  const waits = RUNNING.has(job.status.toLowerCase());
180
- if (opts.log && waits) log(opts.log, { route, id: job.id, key: sent, status: job.status });
232
+ if (opts.log && waits)
233
+ log(opts.log, { route, id: job.id, key: sent, status: job.status, credits: opts.credits });
181
234
  const status = jobRoute.status;
182
235
  while (status && RUNNING.has(job.status.toLowerCase())) {
183
236
  if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
@@ -194,7 +247,8 @@ async function runJob(jobRoute, body, key, opts = {}) {
194
247
  3e4
195
248
  );
196
249
  }
197
- if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
250
+ if (opts.log)
251
+ log(opts.log, { route, id: job.id, key: sent, status: job.status, credits: opts.credits });
198
252
  if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
199
253
  markFailed(sent, scope);
200
254
  throw await refusal(422, {
@@ -204,11 +258,14 @@ async function runJob(jobRoute, body, key, opts = {}) {
204
258
  return job;
205
259
  }
206
260
  var isVoice = (v) => isRecord(v) && typeof v.voice_id === "string" && typeof v.name === "string";
207
- async function publicVoices(language, limit) {
261
+ async function listVoices(query, limit) {
208
262
  const client = clientFor(await resolveCloudAuthHeaders().catch(noSignIn));
209
- const value = await client.listVoicesV3({ type: "public", language, limit, signal: AbortSignal.timeout(3e4) }).catch((err) => {
263
+ const value = await client.listVoicesV3({ ...query, limit, signal: AbortSignal.timeout(3e4) }).catch((err) => {
210
264
  if (err instanceof HyperframesApiError)
211
- throw new Fix(`HeyGen ${err.status} listing its voices`, "run the same command again");
265
+ throw new Fix(
266
+ `HeyGen ${err.status} listing its voices`,
267
+ err.status === 401 || err.status === 403 ? "npx hyperframes auth login" : "run the same command again"
268
+ );
212
269
  throw new Fix(
213
270
  `no answer from HeyGen for its voices (${err instanceof Error ? err.message : String(err)})`,
214
271
  "run the same command again"
@@ -216,16 +273,18 @@ async function publicVoices(language, limit) {
216
273
  });
217
274
  if (!isRecord(value) || !Array.isArray(value.data))
218
275
  throw new Fix("HeyGen answered its voices with no list", "run the same command again");
219
- return value.data.filter(isVoice).map(({ voice_id, name, language: language2, gender }) => ({ voice_id, name, language: language2, gender }));
276
+ return value.data.filter(isVoice).map(({ voice_id, name, language, gender }) => ({ voice_id, name, language, gender }));
220
277
  }
278
+ var publicVoices = (language, limit) => listVoices({ type: "public", language }, limit);
279
+ var ownVoices = (limit) => listVoices({ type: "private" }, limit);
221
280
  async function senderScope() {
222
281
  return (await jobSender()).scope;
223
282
  }
224
- var picksFile = (projectDir) => projectDir ? join(projectDir, ".hyperframes", "heygen-jobs.jsonl") : join(configDir(), "heygen-voice-picks.jsonl");
283
+ var picksFile = (projectDir) => projectDir ? join2(projectDir, ".hyperframes", "heygen-jobs.jsonl") : join2(configDir(), "heygen-voice-picks.jsonl");
225
284
  function keptVoice(projectDir, request) {
226
285
  const file = picksFile(projectDir);
227
- if (!existsSync(file)) return void 0;
228
- for (const line of readFileSync(file, "utf8").split("\n")) {
286
+ if (!existsSync2(file)) return void 0;
287
+ for (const line of readFileSync2(file, "utf8").split("\n")) {
229
288
  const entry = line ? JSON.parse(line) : null;
230
289
  if (isRecord(entry) && entry.voice_pick === request && isVoice(entry.voice)) return entry.voice;
231
290
  }
@@ -245,6 +304,7 @@ export {
245
304
  idempotencyKey,
246
305
  runJob,
247
306
  publicVoices,
307
+ ownVoices,
248
308
  senderScope,
249
309
  keptVoice,
250
310
  keepVoice
@@ -12,7 +12,7 @@ import {
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-PPMCILED.js";
15
+ } from "./chunk-JS6ZTPYC.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.9.10" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.9.10" : "0.0.0-dev";
9
+ var VERSION = true ? "0.9.11" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.9.11" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -15,25 +15,16 @@ import {
15
15
  } from "./chunk-6BEFEWFB.js";
16
16
  import {
17
17
  trackSkillsInstallSkipped
18
- } from "./chunk-5CDTGHED.js";
19
- import "./chunk-PO7LSMN5.js";
20
- import "./chunk-PXVQOMKL.js";
18
+ } from "./chunk-6DHC3MVK.js";
21
19
  import {
22
20
  diag
23
21
  } from "./chunk-MCDNAIFF.js";
24
- import "./chunk-BVAPHHMQ.js";
25
22
  import {
26
23
  defineCommand
27
24
  } from "./chunk-DL4OD7IA.js";
28
- import "./chunk-S3S4TGEH.js";
29
- import "./chunk-54HJ63Q2.js";
30
25
  import {
31
26
  c
32
27
  } from "./chunk-2GICKZ3I.js";
33
- import "./chunk-TK7THLRO.js";
34
- import "./chunk-FXMKHHPO.js";
35
- import "./chunk-LAGZGKKN.js";
36
- import "./chunk-FBN2M2HK.js";
37
28
  import {
38
29
  FALLBACK_CORE_SKILLS,
39
30
  RETIRED_SKILLS,
@@ -45,13 +36,11 @@ import {
45
36
  isCoreSkill,
46
37
  presentSkills,
47
38
  retiredSkillNotice
48
- } from "./chunk-WCETVN3N.js";
39
+ } from "./chunk-IQ5OMRLK.js";
49
40
  import {
41
+ NO_UPDATE_NOTICE,
50
42
  withMeta
51
- } from "./chunk-NBWYATVA.js";
52
- import "./chunk-BR2JQQC5.js";
53
- import "./chunk-BLBMPEBX.js";
54
- import "./chunk-ISN5GRYI.js";
43
+ } from "./chunk-4YCNVKJX.js";
55
44
  import {
56
45
  failureMessage,
57
46
  jsonFailure
@@ -60,16 +49,9 @@ import {
60
49
  CliResultSignal,
61
50
  setCommandExitCode
62
51
  } from "./chunk-66W5IWLO.js";
63
- import "./chunk-J3RXEDR2.js";
64
- import "./chunk-QBXDU24O.js";
65
52
  import {
66
53
  VERSION
67
- } from "./chunk-7VGM5TLZ.js";
68
- import "./chunk-E63BDV4Z.js";
69
- import "./chunk-G7VEYUZ2.js";
70
- import "./chunk-XT6MXC7A.js";
71
- import "./chunk-7KDQAD2W.js";
72
- import "./chunk-M2WBOQ2Q.js";
54
+ } from "./chunk-I4XTKG2B.js";
73
55
 
74
56
  // src/commands/skills.ts
75
57
  import { execFileSync, spawn } from "child_process";
@@ -515,12 +497,13 @@ async function updateSkills(opts = {}) {
515
497
  const retired = named.filter((name) => RETIRED_SKILLS.includes(name));
516
498
  const requested = named.filter((name) => !retired.includes(name));
517
499
  const strict = opts.strict ?? false;
500
+ const cliVersion = opts.cliVersion ?? VERSION;
518
501
  let check = null;
519
502
  try {
520
503
  check = await checkSkills({
521
504
  cwd: opts.cwd,
522
505
  canonical: true,
523
- cliVersion: VERSION,
506
+ cliVersion,
524
507
  installTarget: true
525
508
  });
526
509
  } catch (err) {
@@ -541,7 +524,10 @@ async function updateSkills(opts = {}) {
541
524
  )
542
525
  );
543
526
  }
544
- return { ...await updateSkillsOffline(requested, { strict, cwd: opts.cwd }), retired };
527
+ return {
528
+ ...await updateSkillsOffline(requested, { strict, cwd: opts.cwd, cliVersion }),
529
+ retired
530
+ };
545
531
  }
546
532
  const manifestSkills = check.skills;
547
533
  const manifestNames = new Set(manifestSkills.map((s) => s.name));
@@ -607,7 +593,7 @@ async function updateSkillsOffline(requested, opts) {
607
593
  await installSkills(absent, {
608
594
  cwd: opts.cwd,
609
595
  strict: opts.strict,
610
- ref: cliReleaseTag(VERSION) ?? "main"
596
+ ref: cliReleaseTag(opts.cliVersion) ?? "main"
611
597
  });
612
598
  verifyInstalled(targets, opts);
613
599
  }
@@ -686,7 +672,7 @@ var checkCommand = defineCommand({
686
672
  source: args.source,
687
673
  cliVersion: VERSION
688
674
  });
689
- if (args.json) console.log(JSON.stringify(withMeta(result), null, 2));
675
+ if (args.json) console.log(JSON.stringify(withMeta(result, NO_UPDATE_NOTICE), null, 2));
690
676
  else renderCheck(result);
691
677
  invalidateSkillsCache();
692
678
  if (result.updateAvailable) setCommandExitCode(1);
@@ -700,7 +686,10 @@ function reportSkillsManagedExternally(requested, json) {
700
686
  if (json) {
701
687
  console.log(
702
688
  JSON.stringify(
703
- withMeta({ skipped: true, reason: SKILLS_MANAGED_EXTERNALLY_NOTICE, requested }),
689
+ withMeta(
690
+ { skipped: true, reason: SKILLS_MANAGED_EXTERNALLY_NOTICE, requested },
691
+ NO_UPDATE_NOTICE
692
+ ),
704
693
  null,
705
694
  2
706
695
  )
@@ -718,7 +707,7 @@ function requestedNamesFrom(positionals) {
718
707
  }
719
708
  function reportUpdate(result, requested, json) {
720
709
  if (json) {
721
- console.log(JSON.stringify(withMeta(result), null, 2));
710
+ console.log(JSON.stringify(withMeta(result, NO_UPDATE_NOTICE), null, 2));
722
711
  return;
723
712
  }
724
713
  for (const name of result.retired) console.log(c.warn(retiredSkillNotice(name)));
@@ -738,7 +727,9 @@ function reportUpdate(result, requested, json) {
738
727
  }
739
728
  function reportUpdateFailure(message, json) {
740
729
  if (json) {
741
- console.log(JSON.stringify(withMeta(jsonFailure("runtime_error", message)), null, 2));
730
+ console.log(
731
+ JSON.stringify(withMeta(jsonFailure("runtime_error", message), NO_UPDATE_NOTICE), null, 2)
732
+ );
742
733
  return;
743
734
  }
744
735
  R.error(c.error(message));
@@ -793,8 +784,10 @@ var skills_default = defineCommand({
793
784
  }
794
785
  }
795
786
  });
787
+
796
788
  export {
797
- skills_default as default,
798
789
  examples,
799
- updateSkills
790
+ updateSkills,
791
+ skillsManagedExternally,
792
+ skills_default
800
793
  };