hyperframes 0.9.10 → 0.9.12
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.
- package/README.md +9 -0
- package/dist/{add-AFD3HNXB.js → add-NLR4EVAF.js} +6 -6
- package/dist/{agentPromptGenerator-XNGPKVEX.js → agentPromptGenerator-S3GWYMVC.js} +1 -1
- package/dist/{animatedGifPrep-E3PYKFJ3.js → animatedGifPrep-YU7IOD5D.js} +1 -1
- package/dist/api.js +13 -12
- package/dist/{asset-P6SF46UX.js → asset-7NPBAXDA.js} +2 -2
- package/dist/{assetCataloger-SDFP4DWL.js → assetCataloger-VKJIQCYP.js} +1 -1
- package/dist/{audio-DFQXEAEE.js → audio-ZNVUZH44.js} +12 -11
- package/dist/{auth-T62ANGDQ.js → auth-PTVZNLE6.js} +1 -1
- package/dist/{autoUpdate-3IT56KGL.js → autoUpdate-QJPCV7FB.js} +3 -3
- package/dist/{backgroundChecks-UKBVUYML.js → backgroundChecks-UA6LCZAG.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-ZDL65J7N.js → batchRender-W4RXBUNE.js} +6 -3
- package/dist/{beats-7UFMDXBY.js → beats-IG7C72YF.js} +6 -6
- package/dist/{benchmark-LCSHBJJF.js → benchmark-YUD3XIT2.js} +7 -7
- package/dist/{browser-5DZHA4EW.js → browser-TZILXH5J.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-TJL2JWRD.js → bundleWithLocalizedFonts-BOIW3CIU.js} +2 -2
- package/dist/{capture-UKWY3SZQ.js → capture-MICLAF6V.js} +13 -13
- package/dist/{capture-HLC6I4RE.js → capture-R77HOGLQ.js} +3 -3
- package/dist/{captureCompositionFrame-YMB3CKSP.js → captureCompositionFrame-WBMFZHEF.js} +4 -4
- package/dist/{catalog-F2XB4VPP.js → catalog-AMPL57XF.js} +6 -6
- package/dist/{catch-up-HCBA3MIP.js → catch-up-WQ7ZRRFT.js} +5 -5
- package/dist/{check-E2RQCELF.js → check-ZPBF3X5D.js} +23 -23
- package/dist/{checkAudio-R4DRK3VG.js → checkAudio-IG3BOW2G.js} +3 -3
- package/dist/{checkBrowser-NGY225IO.js → checkBrowser-AIUIKFMJ.js} +17 -17
- package/dist/{chunk-BYC4C4YY.js → chunk-2VYAX3ZD.js} +2 -2
- package/dist/{chunk-GIYZMGYT.js → chunk-2VZVMCV6.js} +1 -1
- package/dist/{chunk-YTNHZT47.js → chunk-3IKLV3D4.js} +1 -1
- package/dist/chunk-3S27CPV7.js +17 -0
- package/dist/{chunk-NCP3JQ6S.js → chunk-4J4EGANW.js} +2 -2
- package/dist/{chunk-2CKL2FUJ.js → chunk-4XGASFTP.js} +2 -2
- package/dist/{chunk-XTYNW745.js → chunk-5WHGO5XU.js} +1 -1
- package/dist/{chunk-7VOLQUA2.js → chunk-64ZWPFAX.js} +1 -1
- package/dist/{upgrade-2FS4AMCA.js → chunk-6IFY3ZQC.js} +65 -27
- package/dist/{chunk-ZMXFRRQR.js → chunk-6NKEEHFR.js} +10 -15
- package/dist/{chunk-6HO6QKYG.js → chunk-6R2PED3X.js} +6 -6
- package/dist/{chunk-WWPOGMNX.js → chunk-73EXHUMD.js} +1 -1
- package/dist/{chunk-QPEDM2ZR.js → chunk-7XKWBMBL.js} +5 -3
- package/dist/{chunk-CDSTLOB7.js → chunk-B3IE7CN2.js} +8 -8
- package/dist/{chunk-BLBMPEBX.js → chunk-BONBJJ35.js} +1 -0
- package/dist/{chunk-Q3W7TDQX.js → chunk-BW2RIJKV.js} +238 -195
- package/dist/{chunk-B5GWDPUO.js → chunk-EPCVE3OX.js} +2 -2
- package/dist/{chunk-6UZLHLFP.js → chunk-FC4WF2VQ.js} +1 -1
- package/dist/{chunk-P4WYY52Y.js → chunk-FFUBISTD.js} +1 -1
- package/dist/{chunk-DKROJ3GJ.js → chunk-H7H7XNYY.js} +80 -20
- package/dist/{chunk-JZPUXDQE.js → chunk-HY64QA63.js} +1 -1
- package/dist/{chunk-RZFW7FBA.js → chunk-JKSASCBT.js} +2 -2
- package/dist/{chunk-PPMCILED.js → chunk-JS6ZTPYC.js} +4 -4
- package/dist/{chunk-7VU4RBHC.js → chunk-KDOJX2HU.js} +9 -9
- package/dist/{chunk-NBWYATVA.js → chunk-KT4KPBI7.js} +194 -17
- package/dist/{chunk-CBTBVRXB.js → chunk-LIN633KG.js} +4 -4
- package/dist/{chunk-WP5QHNXN.js → chunk-LO3EX3YP.js} +17 -5
- package/dist/{chunk-EN6MPNZT.js → chunk-NQYW4IYN.js} +2 -2
- package/dist/{chunk-NVYVI4FR.js → chunk-NTHJJ6JT.js} +3 -3
- package/dist/{chunk-QUBVGS27.js → chunk-OQKAP6X4.js} +4 -4
- package/dist/{chunk-QBPZHOEJ.js → chunk-P3KBDUNS.js} +1 -1
- package/dist/{chunk-CUYVIDGF.js → chunk-P7Y2YCOF.js} +1 -1
- package/dist/{chunk-BHL4KN3H.js → chunk-PKLZ5PV2.js} +1 -1
- package/dist/{chunk-6VKYITOR.js → chunk-Q225NLQL.js} +1 -1
- package/dist/{chunk-5CDTGHED.js → chunk-QFZ3ZSXI.js} +2 -2
- package/dist/{chunk-W4Q6VYPZ.js → chunk-RFTLWXEX.js} +2 -2
- package/dist/{chunk-G3ERWPNV.js → chunk-TNTQ7H24.js} +15 -1
- package/dist/{chunk-PO7LSMN5.js → chunk-UH62KSYV.js} +2 -2
- package/dist/{chunk-UDBNPVUR.js → chunk-URJ7T6T6.js} +1 -1
- package/dist/{chunk-MHZ7NSL5.js → chunk-VECINIPA.js} +1 -1
- package/dist/{chunk-2WNIF4YT.js → chunk-VUMGJLRB.js} +1 -1
- package/dist/{chunk-PYUS627M.js → chunk-VWQY3A64.js} +2 -2
- package/dist/{chunk-7VGM5TLZ.js → chunk-WQ4SMZDF.js} +2 -2
- package/dist/{chunk-WCETVN3N.js → chunk-WTGG734B.js} +24 -38
- package/dist/{chunk-YXSM33UC.js → chunk-X6XIY4JY.js} +9 -9
- package/dist/{skills-T5XCP3RC.js → chunk-XJG65BB2.js} +25 -32
- package/dist/{chunk-SRVAYGTN.js → chunk-XZP5OW5V.js} +5 -4
- package/dist/{chunk-GRUI2S2F.js → chunk-YEBIOQRI.js} +1 -1
- package/dist/{chunk-3XHWHH5A.js → chunk-Z2DJSEQC.js} +23 -23
- package/dist/{chunk-NO6F7CLR.js → chunk-Z4GE5BXC.js} +5 -2
- package/dist/{clean-BXHJEVVO.js → clean-343XOJT3.js} +8 -8
- package/dist/cli.js +60 -59
- package/dist/{cloud-ISWLTHGP.js → cloud-2YS272KD.js} +4 -4
- package/dist/{cloud-Z3FNCC4T.js → cloud-B6SGMECY.js} +3 -2
- package/dist/{compare-MLZYDSZD.js → compare-KXCTMXFX.js} +19 -16
- package/dist/{compiler-NAIDMQFU.js → compiler-KKIYPREA.js} +1 -1
- package/dist/{component-MMBTCMY3.js → component-ZUDCIGGD.js} +3 -3
- package/dist/{compositions-WT2577NJ.js → compositions-FNFI2QOA.js} +7 -7
- package/dist/{curve-HHKVZ6LX.js → curve-5BMBBCSZ.js} +5 -5
- package/dist/{cuts-66GBRT5P.js → cuts-OKUA6BWH.js} +5 -5
- package/dist/{delete-P3WYOC7I.js → delete-FYMFNSED.js} +7 -6
- package/dist/{deploy-OJ3M7QJQ.js → deploy-YZU2YITA.js} +8 -8
- package/dist/{describeProject-DN6YQU3X.js → describeProject-E44RWBJL.js} +1 -1
- package/dist/{diff-R74KQXXN.js → diff-5X6I6EG5.js} +20 -19
- package/dist/{dist-CCPYPKOC.js → dist-PUHEYGA5.js} +3 -3
- package/dist/{doctor-DT52W4UE.js → doctor-3DXWW63F.js} +9 -5
- package/dist/{energy-WOMDOOLC.js → energy-4HY7COXH.js} +5 -5
- package/dist/{events-YVQJLQWG.js → events-JAGPGK7R.js} +4 -4
- package/dist/{events-PCK4AIN5.js → events-TFVE7AUR.js} +3 -3
- package/dist/{events-WEVZ2ELP.js → events-ULVZ7V2C.js} +6 -6
- package/dist/{extract-CNXA3DWB.js → extract-5KTFRIH2.js} +11 -8
- package/dist/{face-2WNBW74C.js → face-T6D34LR7.js} +8 -7
- package/dist/{feedback-ADMM2XDS.js → feedback-QQQYENCU.js} +5 -5
- package/dist/{ffmpeg-PERZ6YHQ.js → ffmpeg-A2O4HSRD.js} +1 -1
- package/dist/{figma-5MMN5JUU.js → figma-4RODZMCT.js} +3 -3
- package/dist/fontLocalizeCli.js +3 -3
- package/dist/{frames-7CQGHRWT.js → frames-L43TSSAY.js} +5 -5
- package/dist/{generate-XOR4UJDW.js → generate-7HZKBLPZ.js} +9 -8
- package/dist/{get-5K6ALHBS.js → get-MXKV4NUL.js} +7 -6
- package/dist/{gpuPolicy-DUNSQM6M.js → gpuPolicy-TKHFDEH2.js} +2 -2
- package/dist/{grade-compare-DK63C776.js → grade-compare-KNXFKMFI.js} +18 -16
- package/dist/{heifImagePrep-YNPHFR6W.js → heifImagePrep-L2EY67F2.js} +1 -1
- package/dist/{help-AUF2KA6D.js → help-YN43ORVX.js} +3 -2
- package/dist/{history-G3FXVX4A.js → history-VAMN53LT.js} +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DGU3CIU5.js → info-QKEEGK2R.js} +6 -6
- package/dist/{init-LYZI2WCS.js → init-AAA44PYH.js} +15 -15
- package/dist/{ink-DYZG4BST.js → ink-V6CEFYB6.js} +5 -5
- package/dist/{inspect-BYQSCRKT.js → inspect-5JGTWCYO.js} +15 -15
- package/dist/{keyframes-XX2DIYPI.js → keyframes-FJNUSXAF.js} +7 -7
- package/dist/{lambda-RKI7KKWW.js → lambda-RYCG67CX.js} +3 -3
- package/dist/{layout-RQFOMQRO.js → layout-DXIPVY3W.js} +15 -15
- package/dist/{lint-LFCMCDEG.js → lint-JZADWIMR.js} +7 -7
- package/dist/{list-V4TGMQ3Y.js → list-YRLUJMP6.js} +7 -6
- package/dist/{localPage-6MQ6YFER.js → localPage-KIFKMB2B.js} +1 -1
- package/dist/{login-EXCG7PEH.js → login-H74JDEJ2.js} +4 -4
- package/dist/{look-RBHKHGMF.js → look-WVGBBYFE.js} +5 -5
- package/dist/{manager-ARXEX6OP.js → manager-T633Z2L4.js} +1 -1
- package/dist/{measure-SAV5K4WT.js → measure-DWQHHY3H.js} +11 -11
- package/dist/{media-treatment-2BVHRXJS.js → media-treatment-JHDDWRFU.js} +8 -8
- package/dist/{media-use-YEBYLITF.js → media-use-5SDC3MCE.js} +2 -1
- package/dist/{models-GMJODMZ5.js → models-6SOW23N6.js} +5 -5
- package/dist/{motionShot-Z63I3GO7.js → motionShot-B4K6LEU3.js} +12 -9
- package/dist/{normalize-audio-ILLUZPTO.js → normalize-audio-O6STMACD.js} +5 -5
- package/dist/{open-GTNLU7UF.js → open-VRCTXBD3.js} +5 -5
- package/dist/{parakeetRunner-K4EGDDVH.js → parakeetRunner-MNOIBRZZ.js} +5 -4
- package/dist/{pipeline-EKLTELWF.js → pipeline-N3M6VXBC.js} +4 -4
- package/dist/{play-F2HIXJKH.js → play-5WUZGJ4B.js} +10 -10
- package/dist/{preflight-QMXCKE5P.js → preflight-XZZXHV42.js} +1 -1
- package/dist/{present-GDR6LCKE.js → present-W7OODR7J.js} +10 -10
- package/dist/{preview-4TV5426Q.js → preview-NOQSYZAD.js} +9 -9
- package/dist/{probe-TYM7WKX2.js → probe-WFIYEXM5.js} +7 -6
- package/dist/{producer-NHQXKH7Y.js → producer-HI6M6755.js} +1 -1
- package/dist/{remove-background-LURZDSDJ.js → remove-background-SYHNGASQ.js} +5 -5
- package/dist/{render-GEAO2HAV.js → render-74JIGKTN.js} +13 -12
- package/dist/{render-YLAS7GVD.js → render-GYQZQB2O.js} +24 -21
- package/dist/{reverse-3KAZZXB2.js → reverse-NEC42AID.js} +1 -1
- package/dist/{run-XER4YJY5.js → run-Z6AW753F.js} +3 -3
- package/dist/{sherpa-D6FQ3CHN.js → sherpa-2ROE6TLC.js} +4 -3
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/plugin-installation.md +5 -6
- package/dist/skills/hyperframes/references/skill-lifecycle.md +15 -10
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +5 -3
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +10 -14
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/audio/scripts/lib/sfx.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +2 -0
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +14 -0
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +3 -0
- package/dist/skills/media-use/scripts/lib/credit-limit.mjs +41 -0
- package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +39 -0
- package/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +2 -0
- package/dist/skills/media-use/scripts/lib/voice-provider.mjs +2 -0
- package/dist/skills-R56MSU2Y.js +49 -0
- package/dist/{skillsUpdateCheck-IG7KLWIA.js → skillsUpdateCheck-I6G3MQWO.js} +6 -4
- package/dist/{snapshot-RULSIRM6.js → snapshot-J2NU7WTJ.js} +18 -18
- package/dist/{src-DHBRQZFZ.js → src-5XQ6A3VE.js} +2 -2
- package/dist/{src-RL6YEPTD.js → src-L7UBHHKB.js} +1 -1
- package/dist/{start-GF3JCTGF.js → start-VUMSNLKC.js} +7 -6
- package/dist/{staticProjectServer-BX4RWEY5.js → staticProjectServer-2JYB7RLI.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-BcELSci_.js → hyperframes-player-Dw-0BWQW.js} +1 -1
- package/dist/studio/assets/{index-DR2eua-L.js → index-BNZeN67E.js} +4 -4
- package/dist/studio/assets/{index-2SLNyxZG.js → index-NwWb1W86.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-PEUXVD7P.js → studio-api-MEZKFJBY.js} +3 -3
- package/dist/{studioServer-DOTRPHS3.js → studioServer-XGR4YPXX.js} +24 -24
- package/dist/{sync-XQPBXGGX.js → sync-ZIMGTQEN.js} +5 -5
- package/dist/{synthesize-YK3WLOEQ.js → synthesize-S3FF5KXC.js} +9 -6
- package/dist/{telemetry-7TIIOBVB.js → telemetry-PT5KSL5T.js} +4 -4
- package/dist/{telemetry-T73TKZOL.js → telemetry-WGNNQUSF.js} +1 -1
- package/dist/{templates-7DIQ52Y4.js → templates-7AT45DZI.js} +4 -1
- package/dist/{timeline-4JIUAUIP.js → timeline-IH422KGC.js} +9 -9
- package/dist/{tokens-4PQU4LVQ.js → tokens-ZVJMHDTM.js} +2 -2
- package/dist/{transcribe-IKUPC2R3.js → transcribe-FRRXA77O.js} +12 -11
- package/dist/{transcribe-N66QUYCS.js → transcribe-QIZGXMR5.js} +1 -1
- package/dist/{tts-HIQMJU6O.js → tts-IMW74GBX.js} +1 -1
- package/dist/update-E2RIAV5T.js +280 -0
- package/dist/{updateCheck-LBPTWEZV.js → updateCheck-EII7XDIR.js} +7 -3
- package/dist/upgrade-BKGP2TM7.js +40 -0
- package/dist/{upload-L5TSWWIU.js → upload-HMRWGZIO.js} +1 -1
- package/dist/{urlDownloader-YNI3Y3IE.js → urlDownloader-FOXK4FYP.js} +1 -1
- package/dist/{validate-MLVDUEK7.js → validate-M4FZVBRP.js} +13 -13
- package/dist/{video-2OEOTSPQ.js → video-AVEGMBDM.js} +1 -1
- package/dist/voices-E5RUGLJK.js +97 -0
- package/dist/warmCheck.js +23 -23
- package/package.json +1 -1
- package/dist/{destroy-C5GQLZVZ.js → destroy-IQLGADZM.js} +4 -4
|
@@ -40,15 +40,18 @@ import {
|
|
|
40
40
|
} from "./chunk-FBN2M2HK.js";
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
|
+
installChannelLabel,
|
|
44
|
+
runningInstall,
|
|
45
|
+
updateCommandFor,
|
|
43
46
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-KT4KPBI7.js";
|
|
45
48
|
import {
|
|
46
49
|
CONFIG_PATH,
|
|
47
50
|
withFileLock
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BONBJJ35.js";
|
|
49
52
|
import {
|
|
50
53
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-WQ4SMZDF.js";
|
|
52
55
|
import {
|
|
53
56
|
normalizeErrorMessage
|
|
54
57
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -99,11 +102,17 @@ function checkVersion() {
|
|
|
99
102
|
return {
|
|
100
103
|
ok: false,
|
|
101
104
|
detail: `${VERSION} \u2192 ${meta.latestVersion} available`,
|
|
102
|
-
hint:
|
|
105
|
+
hint: `Run: ${updateCommandFor(runningInstall(), meta.latestVersion)}`
|
|
103
106
|
};
|
|
104
107
|
}
|
|
108
|
+
if (!meta.latestVersion) return { ok: true, detail: `${VERSION} (not checked yet)` };
|
|
105
109
|
return { ok: true, detail: `${VERSION} (latest)` };
|
|
106
110
|
}
|
|
111
|
+
function checkInstall() {
|
|
112
|
+
const install = runningInstall();
|
|
113
|
+
const where = install.path ?? "entry path unknown";
|
|
114
|
+
return { ok: true, detail: `${installChannelLabel(install.channel)} \xB7 ${where}` };
|
|
115
|
+
}
|
|
107
116
|
function checkNode() {
|
|
108
117
|
return { ok: true, detail: `${process.version} (${process.platform} ${process.arch})` };
|
|
109
118
|
}
|
|
@@ -240,7 +249,7 @@ function checkEnvironment() {
|
|
|
240
249
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
250
|
}
|
|
242
251
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
252
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-T633Z2L4.js");
|
|
244
253
|
const result = findWhisper();
|
|
245
254
|
if (result) {
|
|
246
255
|
return { ok: true, detail: result.executablePath };
|
|
@@ -309,6 +318,7 @@ var doctor_default = defineCommand({
|
|
|
309
318
|
const environment = await runEnvironmentChecks({ includeBrowser: true });
|
|
310
319
|
const checks = [
|
|
311
320
|
{ name: "Version", run: checkVersion },
|
|
321
|
+
{ name: "CLI binary", run: checkInstall },
|
|
312
322
|
{ name: "Node.js", run: checkNode },
|
|
313
323
|
{ name: "CPU", run: checkCPU },
|
|
314
324
|
{ name: "Memory", run: checkMemory },
|
|
@@ -389,6 +399,8 @@ export {
|
|
|
389
399
|
examples,
|
|
390
400
|
TESTED_FFMPEG_VERSION,
|
|
391
401
|
ffmpegDoctorDetail,
|
|
402
|
+
checkVersion,
|
|
403
|
+
checkInstall,
|
|
392
404
|
checkFramesCache,
|
|
393
405
|
checkArchiveExtractor,
|
|
394
406
|
checkSettingsLock,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-AVNF52HR.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PKLZ5PV2.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
@@ -432,7 +432,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
432
432
|
}
|
|
433
433
|
async function probeMedia(inputPath) {
|
|
434
434
|
const isImage = inferInputKind(inputPath) === "image";
|
|
435
|
-
const engine = await import("./src-
|
|
435
|
+
const engine = await import("./src-L7UBHHKB.js");
|
|
436
436
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
437
437
|
if (isImage) {
|
|
438
438
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5WHGO5XU.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3IKLV3D4.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-H7H7XNYY.js";
|
|
20
20
|
import {
|
|
21
21
|
projectOf,
|
|
22
22
|
runFfmpeg
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
} from "./chunk-HBAUU3IK.js";
|
|
20
20
|
import {
|
|
21
21
|
uploadAssetViaDirectUpload
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TNTQ7H24.js";
|
|
23
23
|
import {
|
|
24
24
|
refreshIfNeeded,
|
|
25
25
|
resolveCloudBaseUrl
|
|
26
26
|
} from "./chunk-TSQZ3DSC.js";
|
|
27
|
-
import {
|
|
28
|
-
HyperframesCloudClient
|
|
29
|
-
} from "./chunk-3XJM7XZN.js";
|
|
30
27
|
import {
|
|
31
28
|
buildAuthHeaders,
|
|
32
29
|
tryResolveCredential
|
|
33
30
|
} from "./chunk-ETYQYG6Q.js";
|
|
31
|
+
import {
|
|
32
|
+
HyperframesCloudClient
|
|
33
|
+
} from "./chunk-3XJM7XZN.js";
|
|
34
34
|
import {
|
|
35
35
|
decodeAudio,
|
|
36
36
|
probeAudio
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FC4WF2VQ.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -621,7 +621,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
621
621
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
622
622
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
623
623
|
if (!sourceAssets) return;
|
|
624
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
624
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-5XQ6A3VE.js")).prepareAnimatedGifInputs;
|
|
625
625
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
626
626
|
ctx.tempFiles.push(outputDir);
|
|
627
627
|
const result = await prep(html, {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UH62KSYV.js";
|
|
12
12
|
import {
|
|
13
13
|
redactTelemetryString
|
|
14
14
|
} from "./chunk-TK7THLRO.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-LAGZGKKN.js";
|
|
18
18
|
import {
|
|
19
19
|
readConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BONBJJ35.js";
|
|
21
21
|
import {
|
|
22
22
|
CliRuntimeError
|
|
23
23
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-URJ7T6T6.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-
|
|
35
|
+
} from "./chunk-QFZ3ZSXI.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -105,6 +105,14 @@ async function completeWithRetry(client, asset_id, checksum_sha256) {
|
|
|
105
105
|
}
|
|
106
106
|
throw lastErr ?? new Error("completeAssetUpload retries exhausted");
|
|
107
107
|
}
|
|
108
|
+
var TYPE_REFUSAL = /^(Stored file type|content_type not allowed|Stored file does not have a ZIP)/;
|
|
109
|
+
function nameRefusedFile(err, filename, contentType) {
|
|
110
|
+
if (!(err instanceof HyperframesApiError) || err.code !== "invalid_parameter") return err;
|
|
111
|
+
const kind = contentType.split("/")[0];
|
|
112
|
+
const noun = kind === "audio" || kind === "video" || kind === "image" ? `${kind} file` : "file";
|
|
113
|
+
const lead = TYPE_REFUSAL.test(err.message) ? `The cloud couldn't read this ${noun}'s type: ${filename}. It said:` : `The cloud refused ${filename}:`;
|
|
114
|
+
return new HyperframesApiError({ ...err, message: `${lead} ${err.message}` });
|
|
115
|
+
}
|
|
108
116
|
async function uploadAssetViaDirectUpload(opts) {
|
|
109
117
|
const start = Date.now();
|
|
110
118
|
const { filename, idempotencyKey } = opts;
|
|
@@ -128,7 +136,13 @@ async function uploadAssetViaDirectUpload(opts) {
|
|
|
128
136
|
);
|
|
129
137
|
opts.onProgress?.({ phase: "upload", percent: 100 });
|
|
130
138
|
opts.onProgress?.({ phase: "complete" });
|
|
131
|
-
const completed = await completeWithRetry(
|
|
139
|
+
const completed = await completeWithRetry(
|
|
140
|
+
opts.client,
|
|
141
|
+
initialize.asset_id,
|
|
142
|
+
checksum_sha256
|
|
143
|
+
).catch((err) => {
|
|
144
|
+
throw nameRefusedFile(err, filename, opts.contentType);
|
|
145
|
+
});
|
|
132
146
|
return {
|
|
133
147
|
asset_id: completed.asset_id,
|
|
134
148
|
url: completed.url,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
readConfig,
|
|
41
41
|
telemetryRuntimeOverride,
|
|
42
42
|
writeConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BONBJJ35.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-WQ4SMZDF.js";
|
|
47
47
|
|
|
48
48
|
// src/telemetry/transport.ts
|
|
49
49
|
import { spawn } from "child_process";
|
|
@@ -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-
|
|
9
|
+
} from "./chunk-WQ4SMZDF.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -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-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-JAGPGK7R.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-73EXHUMD.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-WVRAFHJU.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-KKIYPREA.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -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
|
-
var PRODUCER_VERSION = true ? "0.9.
|
|
9
|
+
var VERSION = true ? "0.9.12" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.9.12" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -5,27 +5,26 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
+
claimDailyNotice,
|
|
8
9
|
updateCheckDisabled
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KT4KPBI7.js";
|
|
10
11
|
import {
|
|
11
12
|
hostAnswers
|
|
12
13
|
} from "./chunk-BR2JQQC5.js";
|
|
13
14
|
import {
|
|
14
|
-
CONFIG_PATH,
|
|
15
15
|
readConfig,
|
|
16
16
|
readConfigFresh,
|
|
17
17
|
writeConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BONBJJ35.js";
|
|
19
19
|
import {
|
|
20
20
|
isUnattended
|
|
21
21
|
} from "./chunk-J3RXEDR2.js";
|
|
22
22
|
import {
|
|
23
23
|
VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WQ4SMZDF.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/skillsUpdateCheck.ts
|
|
27
|
-
import {
|
|
28
|
-
import { dirname, join as join2, resolve as resolve2 } from "path";
|
|
27
|
+
import { resolve as resolve2 } from "path";
|
|
29
28
|
|
|
30
29
|
// src/utils/skillsManifest.ts
|
|
31
30
|
import { execFile } from "child_process";
|
|
@@ -440,7 +439,7 @@ async function checkSkills(opts = {}) {
|
|
|
440
439
|
}
|
|
441
440
|
|
|
442
441
|
// src/utils/skillsUpdateCheck.ts
|
|
443
|
-
var CHECK_INTERVAL_MS =
|
|
442
|
+
var CHECK_INTERVAL_MS = 2 * 60 * 60 * 1e3;
|
|
444
443
|
function getSkillsUpdateMeta() {
|
|
445
444
|
const config = readConfig();
|
|
446
445
|
return {
|
|
@@ -449,26 +448,29 @@ function getSkillsUpdateMeta() {
|
|
|
449
448
|
missing: config.skillsMissingCount ?? 0
|
|
450
449
|
};
|
|
451
450
|
}
|
|
452
|
-
function cacheFresh(
|
|
453
|
-
if (!lastSkillsCheck) return false;
|
|
454
|
-
return now - new Date(lastSkillsCheck).getTime() < CHECK_INTERVAL_MS;
|
|
451
|
+
function cacheFresh(config, now) {
|
|
452
|
+
if (!config.lastSkillsCheck || config.skillsCheckedVersion !== VERSION) return false;
|
|
453
|
+
return now - new Date(config.lastSkillsCheck).getTime() < CHECK_INTERVAL_MS;
|
|
455
454
|
}
|
|
456
455
|
async function refreshSkillsCache() {
|
|
457
456
|
if (!await hostAnswers("github.com")) return;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
457
|
+
recordSkillsCheck(await checkSkills({ canonical: true, cliVersion: VERSION }));
|
|
458
|
+
}
|
|
459
|
+
function recordSkillsCheck(result) {
|
|
460
|
+
if (!result.location) return;
|
|
461
|
+
const config = readConfigFresh();
|
|
462
|
+
config.lastSkillsCheck = (/* @__PURE__ */ new Date()).toISOString();
|
|
463
|
+
config.skillsCheckedVersion = VERSION;
|
|
464
|
+
config.skillsUpdateAvailable = result.updateAvailable;
|
|
465
|
+
config.skillsOutdatedCount = result.summary.outdated;
|
|
466
|
+
config.skillsMissingCount = result.summary.coreMissing;
|
|
467
|
+
writeConfig(config);
|
|
467
468
|
}
|
|
468
469
|
function invalidateSkillsCache() {
|
|
469
470
|
try {
|
|
470
471
|
const config = readConfigFresh();
|
|
471
472
|
delete config.lastSkillsCheck;
|
|
473
|
+
delete config.skillsCheckedVersion;
|
|
472
474
|
delete config.skillsUpdateAvailable;
|
|
473
475
|
delete config.skillsOutdatedCount;
|
|
474
476
|
delete config.skillsMissingCount;
|
|
@@ -481,24 +483,7 @@ function skillsNoticeOff() {
|
|
|
481
483
|
}
|
|
482
484
|
function skillsCheckDue() {
|
|
483
485
|
if (skillsNoticeOff()) return false;
|
|
484
|
-
return !cacheFresh(readConfig()
|
|
485
|
-
}
|
|
486
|
-
function claimDailyNotice(project, now = Date.now()) {
|
|
487
|
-
const noticeFile = join2(dirname(CONFIG_PATH), "skills-notice.json");
|
|
488
|
-
let shown = {};
|
|
489
|
-
try {
|
|
490
|
-
shown = JSON.parse(readFileSync2(noticeFile, "utf-8"));
|
|
491
|
-
} catch {
|
|
492
|
-
}
|
|
493
|
-
if (now - (shown[project] ?? 0) < CHECK_INTERVAL_MS) return false;
|
|
494
|
-
const kept = Object.entries(shown).filter(([, at]) => now - at < CHECK_INTERVAL_MS);
|
|
495
|
-
try {
|
|
496
|
-
mkdirSync(dirname(noticeFile), { recursive: true, mode: 448 });
|
|
497
|
-
writeFileSync(noticeFile, JSON.stringify(Object.fromEntries([...kept, [project, now]])));
|
|
498
|
-
} catch {
|
|
499
|
-
return false;
|
|
500
|
-
}
|
|
501
|
-
return true;
|
|
486
|
+
return !cacheFresh(readConfig(), Date.now());
|
|
502
487
|
}
|
|
503
488
|
function skillsNoticeText(meta) {
|
|
504
489
|
const total = meta.outdated + meta.missing;
|
|
@@ -514,7 +499,7 @@ function printSkillsUpdateNotice(cwd = process.cwd()) {
|
|
|
514
499
|
if (skillsNoticeOff()) return;
|
|
515
500
|
const meta = getSkillsUpdateMeta();
|
|
516
501
|
const text = skillsNoticeText(isUnattended() ? { ...meta, outdated: 0 } : meta);
|
|
517
|
-
if (text && claimDailyNotice(resolve2(cwd))) process.stderr.write(text);
|
|
502
|
+
if (text && claimDailyNotice("skills", resolve2(cwd))) process.stderr.write(text);
|
|
518
503
|
}
|
|
519
504
|
|
|
520
505
|
export {
|
|
@@ -528,6 +513,7 @@ export {
|
|
|
528
513
|
cliReleaseTag,
|
|
529
514
|
checkSkills,
|
|
530
515
|
refreshSkillsCache,
|
|
516
|
+
recordSkillsCheck,
|
|
531
517
|
invalidateSkillsCache,
|
|
532
518
|
skillsCheckDue,
|
|
533
519
|
printSkillsUpdateNotice
|
|
@@ -7,15 +7,15 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B3IE7CN2.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KDOJX2HU.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2VYAX3ZD.js";
|
|
19
19
|
import {
|
|
20
20
|
AUDIT_SEEK_OPTIONS,
|
|
21
21
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
seekCompositionTimeline,
|
|
30
30
|
seekInPage,
|
|
31
31
|
waitForPreferredSeekTarget
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6R2PED3X.js";
|
|
33
33
|
import {
|
|
34
34
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
35
35
|
} from "./chunk-YGGZ23BB.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
41
41
|
STUDIO_PREVIEW_MARK_META
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4J4EGANW.js";
|
|
43
43
|
import {
|
|
44
44
|
artifactDirectory,
|
|
45
45
|
finishSnapshotRun
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
BrowserCleanupError,
|
|
61
61
|
closeManagedBrowser,
|
|
62
62
|
onStopSignal
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-PKLZ5PV2.js";
|
|
64
64
|
import {
|
|
65
65
|
DEFAULT_CONFIG
|
|
66
66
|
} from "./chunk-N6FGHJ7X.js";
|
|
@@ -586,7 +586,7 @@ function proxyFailedDraft(message) {
|
|
|
586
586
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
587
587
|
}
|
|
588
588
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
589
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
589
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-BOIW3CIU.js");
|
|
590
590
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
591
591
|
}
|
|
592
592
|
function withCapturePreviewMark(html) {
|
|
@@ -648,7 +648,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
648
648
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
649
649
|
}));
|
|
650
650
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
651
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
651
|
+
const { analyzeClipMediaFit } = await import("./src-L7UBHHKB.js");
|
|
652
652
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
653
653
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
654
654
|
}
|
|
@@ -789,7 +789,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
789
789
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
790
790
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
791
791
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
792
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
792
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-BOIW3CIU.js");
|
|
793
793
|
return withCapturePreviewMark(
|
|
794
794
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
795
795
|
);
|
|
@@ -15,25 +15,16 @@ import {
|
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackSkillsInstallSkipped
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-PO7LSMN5.js";
|
|
20
|
-
import "./chunk-PXVQOMKL.js";
|
|
18
|
+
} from "./chunk-QFZ3ZSXI.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-
|
|
39
|
+
} from "./chunk-WTGG734B.js";
|
|
49
40
|
import {
|
|
41
|
+
NO_UPDATE_NOTICE,
|
|
50
42
|
withMeta
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-BR2JQQC5.js";
|
|
53
|
-
import "./chunk-BLBMPEBX.js";
|
|
54
|
-
import "./chunk-ISN5GRYI.js";
|
|
43
|
+
} from "./chunk-KT4KPBI7.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-
|
|
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-WQ4SMZDF.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
|
|
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 {
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
};
|