hyperframes 0.9.9 → 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.
- package/README.md +9 -0
- package/dist/{add-FQX5F6PC.js → add-IAFJH5RC.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 +10 -10
- package/dist/{asset-X5GG5TTP.js → asset-UR4PH6KJ.js} +2 -2
- package/dist/{assetCataloger-SDFP4DWL.js → assetCataloger-VKJIQCYP.js} +1 -1
- package/dist/{audio-DDTYFS23.js → audio-HZJ7QZQR.js} +9 -9
- package/dist/{auth-OAWLDT3A.js → auth-UBNAW62X.js} +2 -2
- package/dist/{autoUpdate-BWIPXW2W.js → autoUpdate-DDFTFHRP.js} +3 -3
- package/dist/{backgroundChecks-YJ5NRMBA.js → backgroundChecks-H3TNVYJV.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{beats-Q2TIAA7S.js → beats-HOIQSFFP.js} +6 -6
- package/dist/{benchmark-I3GRHFIN.js → benchmark-ZYOQV7DK.js} +7 -7
- package/dist/billing-5YSYJJ2V.js +142 -0
- package/dist/{browser-F24WMZ52.js → browser-PLFK53IZ.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-K5CQPNIZ.js → bundleWithLocalizedFonts-TH5SLG6O.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-H7SOITD6.js → catalog-CGT32566.js} +6 -6
- package/dist/{catch-up-YRGPVEM6.js → catch-up-TMYPXRKC.js} +5 -5
- package/dist/{check-BPQZZ2MO.js → check-4O5J4OWS.js} +23 -23
- package/dist/{checkAudio-4NRQ3WGS.js → checkAudio-AAVDZFIQ.js} +3 -3
- package/dist/{checkBrowser-S66AHKW3.js → checkBrowser-3OCZBJC7.js} +19 -17
- package/dist/{chunk-BYC4C4YY.js → chunk-2VYAX3ZD.js} +2 -2
- package/dist/{chunk-GIYZMGYT.js → chunk-2VZVMCV6.js} +1 -1
- package/dist/{chunk-322AG75G.js → chunk-33K2UZBX.js} +2 -2
- package/dist/{chunk-5YIZRU2L.js → chunk-37537KOL.js} +4 -4
- package/dist/{chunk-NX2X326Z.js → chunk-4ILKN2MX.js} +8 -8
- package/dist/{chunk-NCP3JQ6S.js → chunk-4J4EGANW.js} +2 -2
- package/dist/{chunk-TZBJEKKU.js → chunk-4YCNVKJX.js} +194 -17
- package/dist/{chunk-2ROPUTCS.js → chunk-6DHC3MVK.js} +2 -2
- package/dist/{chunk-BX2JB24X.js → chunk-6JDNEQV5.js} +1 -1
- package/dist/{chunk-6HO6QKYG.js → chunk-6R2PED3X.js} +6 -6
- package/dist/{chunk-DIKIN4BA.js → chunk-6Y7WZTHJ.js} +54 -38
- package/dist/{chunk-HBHLCMOQ.js → chunk-7ZBMUKHY.js} +2 -2
- package/dist/chunk-AHLDGEH5.js +158 -0
- package/dist/{chunk-6DKWOG7L.js → chunk-BBMMVLA3.js} +1 -1
- package/dist/{chunk-BLBMPEBX.js → chunk-BONBJJ35.js} +1 -0
- package/dist/{chunk-63GTSNMY.js → chunk-CD65TPHT.js} +1 -1
- package/dist/{chunk-HUJMTTKR.js → chunk-CN3Q4CDK.js} +43 -27
- package/dist/{chunk-2Y575PWJ.js → chunk-DI3ZFBZ3.js} +1 -1
- package/dist/{chunk-NNF6G2UH.js → chunk-EL2DMHA5.js} +1 -1
- package/dist/{chunk-B5GWDPUO.js → chunk-EPCVE3OX.js} +2 -2
- package/dist/{chunk-6UZLHLFP.js → chunk-FC4WF2VQ.js} +1 -1
- package/dist/{chunk-4W5X4S47.js → chunk-H7H7XNYY.js} +88 -28
- package/dist/{chunk-JZPUXDQE.js → chunk-HY64QA63.js} +1 -1
- package/dist/{chunk-AH6MUQQC.js → chunk-I4XTKG2B.js} +2 -2
- package/dist/{skills-EBVQSIK4.js → chunk-IMK55N3Z.js} +46 -38
- package/dist/{chunk-VNR7LSN4.js → chunk-IQ5OMRLK.js} +39 -41
- package/dist/{chunk-PPMCILED.js → chunk-JS6ZTPYC.js} +4 -4
- package/dist/{chunk-V74HSKGY.js → chunk-JT2ZGKKB.js} +2 -2
- package/dist/{chunk-2NGBIAUF.js → chunk-KNOIX2U5.js} +220 -177
- package/dist/{chunk-MY4PAH7C.js → chunk-LWFXO732.js} +1 -1
- package/dist/{upgrade-ZUWFB2QM.js → chunk-MZHCA5KY.js} +65 -27
- package/dist/{chunk-EN6MPNZT.js → chunk-NQYW4IYN.js} +2 -2
- package/dist/{chunk-H534266X.js → chunk-OKD2LP73.js} +1 -1
- package/dist/{chunk-A2NFFVWH.js → chunk-OQGA4QBD.js} +18 -6
- package/dist/{chunk-UWYHZCEQ.js → chunk-OQHC5YIB.js} +2 -2
- package/dist/{chunk-BHL4KN3H.js → chunk-PKLZ5PV2.js} +1 -1
- package/dist/{chunk-OYAZODSP.js → chunk-QM4OL5MZ.js} +16 -11
- package/dist/{chunk-BBP5KGYS.js → chunk-SUM3VFPQ.js} +2 -2
- package/dist/{chunk-CNX3WKQ5.js → chunk-T4ELNOK6.js} +1 -1
- package/dist/{chunk-VZ5O7A77.js → chunk-V6HV2IDT.js} +5 -2
- package/dist/{chunk-BXYB5NGT.js → chunk-VWUUNGSV.js} +1 -1
- package/dist/{chunk-CBPBTQBH.js → chunk-WJ7E5J77.js} +11 -10
- package/dist/{chunk-62ATHBDS.js → chunk-YJZYUXHQ.js} +1 -1
- package/dist/{chunk-TJ2USKCK.js → chunk-ZUACTOAB.js} +1 -1
- package/dist/{clean-RCXKQNFM.js → clean-2FWZPS4J.js} +9 -9
- package/dist/cli.js +61 -60
- package/dist/{cloud-TQPQZRC5.js → cloud-2UFI7NLD.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +1 -1
- package/dist/{compare-EO32AASM.js → compare-HKRLSFTU.js} +15 -15
- package/dist/{compiler-NAIDMQFU.js → compiler-KKIYPREA.js} +1 -1
- package/dist/{component-S3TYNVCR.js → component-F43F3363.js} +3 -3
- package/dist/{compositions-4TXRLZ3M.js → compositions-FFXCISLD.js} +7 -7
- package/dist/{curve-HGLOP2GY.js → curve-RHSJUG5P.js} +5 -5
- package/dist/{cuts-VNFIISLL.js → cuts-KVFY3U6C.js} +5 -5
- package/dist/{delete-TIWI3G7X.js → delete-O7IZKKUN.js} +4 -4
- package/dist/{deploy-EHPNOGSY.js → deploy-PZAAUW75.js} +8 -8
- package/dist/{describeProject-DN6YQU3X.js → describeProject-E44RWBJL.js} +1 -1
- package/dist/{diff-46JK5ZCL.js → diff-OMNILRNN.js} +21 -19
- package/dist/{dist-CCPYPKOC.js → dist-PUHEYGA5.js} +3 -3
- package/dist/{doctor-LD23DW4N.js → doctor-4HZN7ZVI.js} +10 -6
- package/dist/{energy-YZ3DB6AI.js → energy-N3ZIPHTP.js} +5 -5
- package/dist/{events-3OWNDNJX.js → events-56A5D6DK.js} +4 -4
- package/dist/{events-MQIKCKA5.js → events-TUTAERAN.js} +6 -6
- package/dist/{events-DRTMYSQ6.js → events-VAJ4Y6XF.js} +3 -3
- package/dist/{extract-F3NBE3X5.js → extract-NJMZEOLG.js} +6 -6
- package/dist/{face-ZU7ZDYGO.js → face-KLV4W6CP.js} +5 -5
- package/dist/{feedback-37M37Y4F.js → feedback-4VEKGVLN.js} +5 -5
- package/dist/{ffmpeg-PERZ6YHQ.js → ffmpeg-A2O4HSRD.js} +1 -1
- package/dist/{figma-55AG42NN.js → figma-6XDKKOA6.js} +3 -3
- package/dist/fontLocalizeCli.js +3 -3
- package/dist/{frames-DJA3CFSY.js → frames-IAMGMNCA.js} +5 -5
- package/dist/{generate-BVJ5XNWP.js → generate-FMATRA3L.js} +11 -9
- package/dist/{get-PGLCWEBG.js → get-JKA3APWR.js} +4 -4
- package/dist/{gpuPolicy-DUNSQM6M.js → gpuPolicy-TKHFDEH2.js} +2 -2
- package/dist/{grade-compare-R6Q6G6WP.js → grade-compare-TCLCDUG5.js} +14 -14
- package/dist/{heifImagePrep-YNPHFR6W.js → heifImagePrep-L2EY67F2.js} +1 -1
- package/dist/{help-4SNDXHWQ.js → help-TWDOQJDN.js} +3 -2
- package/dist/{history-NKRHKIE2.js → history-SOWVZUAB.js} +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-U4VDKU2Y.js → info-JDINBZLH.js} +6 -6
- package/dist/{init-2RUVBHQO.js → init-ACNL6AFC.js} +15 -15
- package/dist/{ink-TX3USU7X.js → ink-WNEJROFH.js} +5 -5
- package/dist/{inspect-MAGHXEWS.js → inspect-37AMWUW3.js} +15 -15
- package/dist/{keyframes-2TDECIQZ.js → keyframes-LMUFQW4Z.js} +7 -7
- package/dist/{lambda-CRVYDETX.js → lambda-DRGDNEW6.js} +3 -3
- package/dist/{layout-I3VNHWJH.js → layout-E63HPSXW.js} +15 -15
- package/dist/{lint-MCVWXDJX.js → lint-HNZPRCXH.js} +7 -7
- package/dist/{list-FJJNWPM6.js → list-UMR5VN2M.js} +4 -4
- package/dist/{localPage-6MQ6YFER.js → localPage-KIFKMB2B.js} +1 -1
- package/dist/{login-YAZZWYFK.js → login-OXOPCSUY.js} +4 -4
- package/dist/{look-U5UHXPUQ.js → look-DFQJP2LY.js} +5 -5
- package/dist/{manager-ARXEX6OP.js → manager-T633Z2L4.js} +1 -1
- package/dist/{measure-JAPDVQ5X.js → measure-Y2VXF6LJ.js} +11 -11
- package/dist/{media-treatment-A4Z32NGP.js → media-treatment-U2PDH4P3.js} +8 -8
- package/dist/{media-use-6HX7JHRD.js → media-use-KGNGAQQP.js} +2 -1
- package/dist/{models-GMJODMZ5.js → models-HATSG3VK.js} +5 -5
- package/dist/{motionShot-Z63I3GO7.js → motionShot-45M7MSFQ.js} +7 -7
- package/dist/{normalize-audio-45CHOWKY.js → normalize-audio-SOXEVIKM.js} +5 -5
- package/dist/{open-RSTNLDYI.js → open-LRPNBFRW.js} +5 -5
- package/dist/{parakeetRunner-K4EGDDVH.js → parakeetRunner-A7Z6CQOT.js} +1 -1
- package/dist/{pipeline-EKLTELWF.js → pipeline-N3M6VXBC.js} +4 -4
- package/dist/{play-BYIEIRQQ.js → play-HTHDFMOU.js} +10 -10
- package/dist/{preflight-TC6ZW3GB.js → preflight-XZZXHV42.js} +2 -2
- package/dist/{present-5B5VQKT5.js → present-LQ4PJTP4.js} +10 -10
- package/dist/{preview-5O2HT2WF.js → preview-CTEDNFN3.js} +9 -9
- package/dist/{probe-ZGK6DBAR.js → probe-6IZD5TPR.js} +6 -6
- package/dist/{producer-RFTB2APL.js → producer-4CR46ON4.js} +1 -1
- package/dist/{remove-background-LURZDSDJ.js → remove-background-SYHNGASQ.js} +5 -5
- package/dist/{render-ETZ3WAJO.js → render-JHSMAWED.js} +9 -9
- package/dist/{render-7HIEI7QP.js → render-VZLEKSHR.js} +19 -19
- package/dist/{reverse-VPBNBP2Q.js → reverse-SCXEQVRH.js} +1 -1
- package/dist/{run-XER4YJY5.js → run-GRCZ6JO5.js} +2 -2
- package/dist/{sherpa-D6FQ3CHN.js → sherpa-EENLR3RM.js} +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
- 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 +2 -2
- 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-4TSYBAGW.js +49 -0
- package/dist/{skillsUpdateCheck-7VXK4R4J.js → skillsUpdateCheck-MGXL5VXL.js} +6 -4
- package/dist/{snapshot-PJUNSMDS.js → snapshot-P27Y3NJE.js} +18 -18
- package/dist/{src-RL6YEPTD.js → src-L7UBHHKB.js} +1 -1
- package/dist/{src-SMIMKSHZ.js → src-MWO2XBSA.js} +2 -2
- package/dist/{start-5ZDH643Z.js → start-L5M26YD5.js} +31 -19
- package/dist/{staticProjectServer-BX4RWEY5.js → staticProjectServer-2JYB7RLI.js} +5 -5
- package/dist/{status-4LLUW5YT.js → status-SUK4I7TS.js} +8 -5
- package/dist/studio/assets/{hyperframes-player-CcNGHTev.js → hyperframes-player-BbRz52ui.js} +1 -1
- package/dist/studio/assets/{index-D9uDed3x.js → index-CCSgOq2L.js} +1 -1
- package/dist/studio/assets/{index-DSRgrCDX.js → index-D3y5mWmH.js} +22 -22
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-PEUXVD7P.js → studio-api-MEZKFJBY.js} +3 -3
- package/dist/{studioServer-2WIQBEQC.js → studioServer-J5RPUMHP.js} +25 -25
- package/dist/{sync-P3O3WZWT.js → sync-FHT2CHKU.js} +5 -5
- package/dist/{telemetry-267LV4SC.js → telemetry-JWEOBK3Q.js} +4 -4
- package/dist/{telemetry-T73TKZOL.js → telemetry-WGNNQUSF.js} +1 -1
- package/dist/{templates-MQ742KVZ.js → templates-7DIQ52Y4.js} +40 -11
- package/dist/{timeline-WP7AZAQC.js → timeline-ZO3PNIET.js} +9 -9
- package/dist/{tokens-ROFKR7AE.js → tokens-X6OTCQCV.js} +2 -2
- package/dist/{transcribe-WS2STSCJ.js → transcribe-KNO3BK5S.js} +9 -9
- package/dist/{transcribe-N66QUYCS.js → transcribe-QIZGXMR5.js} +1 -1
- package/dist/{tts-HIQMJU6O.js → tts-JHGGL7GL.js} +1 -1
- package/dist/update-WXGSPMEG.js +280 -0
- package/dist/{updateCheck-M2SMSDIO.js → updateCheck-OBYSCTWV.js} +7 -3
- package/dist/upgrade-YCCIVSI6.js +40 -0
- package/dist/{urlDownloader-YNI3Y3IE.js → urlDownloader-FOXK4FYP.js} +1 -1
- package/dist/{validate-M2M37G47.js → validate-TDVQ2B6Y.js} +13 -13
- package/dist/{video-2OEOTSPQ.js → video-AVEGMBDM.js} +1 -1
- package/dist/voices-2LIY4CYK.js +97 -0
- package/dist/warmCheck.js +23 -23
- package/package.json +1 -1
- package/dist/billing-W224NIAM.js +0 -96
- package/dist/chunk-ASGRVFQ3.js +0 -59
- package/dist/{chunk-QUBVGS27.js → chunk-LNTUFRZD.js} +3 -3
- package/dist/{destroy-C5GQLZVZ.js → destroy-IQLGADZM.js} +4 -4
- package/dist/{synthesize-YK3WLOEQ.js → synthesize-YYT7UON6.js} +5 -5
|
@@ -15,42 +15,32 @@ import {
|
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackSkillsInstallSkipped
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-V74HSKGY.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,
|
|
40
31
|
checkSkills,
|
|
41
32
|
cliReleaseTag,
|
|
33
|
+
foreignSkillNames,
|
|
42
34
|
hyperframesSkillNames,
|
|
43
35
|
invalidateSkillsCache,
|
|
44
36
|
isCoreSkill,
|
|
45
37
|
presentSkills,
|
|
46
38
|
retiredSkillNotice
|
|
47
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IQ5OMRLK.js";
|
|
48
40
|
import {
|
|
41
|
+
NO_UPDATE_NOTICE,
|
|
49
42
|
withMeta
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-BR2JQQC5.js";
|
|
52
|
-
import "./chunk-BLBMPEBX.js";
|
|
53
|
-
import "./chunk-ISN5GRYI.js";
|
|
43
|
+
} from "./chunk-4YCNVKJX.js";
|
|
54
44
|
import {
|
|
55
45
|
failureMessage,
|
|
56
46
|
jsonFailure
|
|
@@ -59,16 +49,9 @@ import {
|
|
|
59
49
|
CliResultSignal,
|
|
60
50
|
setCommandExitCode
|
|
61
51
|
} from "./chunk-66W5IWLO.js";
|
|
62
|
-
import "./chunk-J3RXEDR2.js";
|
|
63
|
-
import "./chunk-QBXDU24O.js";
|
|
64
52
|
import {
|
|
65
53
|
VERSION
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-E63BDV4Z.js";
|
|
68
|
-
import "./chunk-G7VEYUZ2.js";
|
|
69
|
-
import "./chunk-XT6MXC7A.js";
|
|
70
|
-
import "./chunk-7KDQAD2W.js";
|
|
71
|
-
import "./chunk-M2WBOQ2Q.js";
|
|
54
|
+
} from "./chunk-I4XTKG2B.js";
|
|
72
55
|
|
|
73
56
|
// src/commands/skills.ts
|
|
74
57
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -514,9 +497,15 @@ async function updateSkills(opts = {}) {
|
|
|
514
497
|
const retired = named.filter((name) => RETIRED_SKILLS.includes(name));
|
|
515
498
|
const requested = named.filter((name) => !retired.includes(name));
|
|
516
499
|
const strict = opts.strict ?? false;
|
|
500
|
+
const cliVersion = opts.cliVersion ?? VERSION;
|
|
517
501
|
let check = null;
|
|
518
502
|
try {
|
|
519
|
-
check = await checkSkills({
|
|
503
|
+
check = await checkSkills({
|
|
504
|
+
cwd: opts.cwd,
|
|
505
|
+
canonical: true,
|
|
506
|
+
cliVersion,
|
|
507
|
+
installTarget: true
|
|
508
|
+
});
|
|
520
509
|
} catch (err) {
|
|
521
510
|
if (err instanceof Error && err.message.startsWith("Malformed skills manifest")) {
|
|
522
511
|
R.warn(
|
|
@@ -535,7 +524,10 @@ async function updateSkills(opts = {}) {
|
|
|
535
524
|
)
|
|
536
525
|
);
|
|
537
526
|
}
|
|
538
|
-
return {
|
|
527
|
+
return {
|
|
528
|
+
...await updateSkillsOffline(requested, { strict, cwd: opts.cwd, cliVersion }),
|
|
529
|
+
retired
|
|
530
|
+
};
|
|
539
531
|
}
|
|
540
532
|
const manifestSkills = check.skills;
|
|
541
533
|
const manifestNames = new Set(manifestSkills.map((s) => s.name));
|
|
@@ -561,13 +553,13 @@ async function updateSkills(opts = {}) {
|
|
|
561
553
|
};
|
|
562
554
|
if (toInstall.length > 0) {
|
|
563
555
|
await installSkills(result.installed, { cwd: opts.cwd, strict, ref: check.ref ?? "main" });
|
|
564
|
-
verifyInstalled(result.
|
|
556
|
+
verifyInstalled(result.targets, { strict, cwd: opts.cwd });
|
|
565
557
|
}
|
|
566
558
|
invalidateSkillsCache();
|
|
567
559
|
return result;
|
|
568
560
|
}
|
|
569
561
|
function verifyInstalled(names, opts) {
|
|
570
|
-
const present = new Set(presentSkills(names, { cwd: opts.cwd }));
|
|
562
|
+
const present = new Set(presentSkills(names, { cwd: opts.cwd, installTarget: true }));
|
|
571
563
|
const absent = names.filter((name) => !present.has(name));
|
|
572
564
|
if (absent.length === 0) return;
|
|
573
565
|
const message = `Skill(s) still missing after install: ${absent.join(", ")}`;
|
|
@@ -580,8 +572,17 @@ async function updateSkillsOffline(requested, opts) {
|
|
|
580
572
|
"can't check skills freshness (GitHub manifest unreachable) \u2014 refusing to report success. Retry when online."
|
|
581
573
|
);
|
|
582
574
|
}
|
|
583
|
-
const
|
|
584
|
-
const
|
|
575
|
+
const foreign = new Set(foreignSkillNames({ scope: "global" }));
|
|
576
|
+
const unknown = requested.filter((name) => foreign.has(name));
|
|
577
|
+
if (unknown.length > 0) {
|
|
578
|
+
const message = `Skill(s) owned by another publisher: ${unknown.join(", ")}. Leaving them unchanged.`;
|
|
579
|
+
if (opts.strict) throw new Error(message);
|
|
580
|
+
R.warn(c.warn(message));
|
|
581
|
+
}
|
|
582
|
+
const targets = [.../* @__PURE__ */ new Set([...requested, ...FALLBACK_CORE_SKILLS])].filter(
|
|
583
|
+
(name) => !foreign.has(name)
|
|
584
|
+
);
|
|
585
|
+
const present = new Set(presentSkills(targets, { cwd: opts.cwd, installTarget: true }));
|
|
585
586
|
const absent = targets.filter((name) => !present.has(name));
|
|
586
587
|
console.log(
|
|
587
588
|
c.dim(
|
|
@@ -592,15 +593,15 @@ async function updateSkillsOffline(requested, opts) {
|
|
|
592
593
|
await installSkills(absent, {
|
|
593
594
|
cwd: opts.cwd,
|
|
594
595
|
strict: opts.strict,
|
|
595
|
-
ref: cliReleaseTag(
|
|
596
|
+
ref: cliReleaseTag(opts.cliVersion) ?? "main"
|
|
596
597
|
});
|
|
597
|
-
verifyInstalled(
|
|
598
|
+
verifyInstalled(targets, opts);
|
|
598
599
|
}
|
|
599
600
|
return {
|
|
600
601
|
targets,
|
|
601
602
|
installed: absent,
|
|
602
603
|
current: [...present],
|
|
603
|
-
unknown
|
|
604
|
+
unknown,
|
|
604
605
|
presenceOnly: true
|
|
605
606
|
};
|
|
606
607
|
}
|
|
@@ -671,7 +672,7 @@ var checkCommand = defineCommand({
|
|
|
671
672
|
source: args.source,
|
|
672
673
|
cliVersion: VERSION
|
|
673
674
|
});
|
|
674
|
-
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));
|
|
675
676
|
else renderCheck(result);
|
|
676
677
|
invalidateSkillsCache();
|
|
677
678
|
if (result.updateAvailable) setCommandExitCode(1);
|
|
@@ -685,7 +686,10 @@ function reportSkillsManagedExternally(requested, json) {
|
|
|
685
686
|
if (json) {
|
|
686
687
|
console.log(
|
|
687
688
|
JSON.stringify(
|
|
688
|
-
withMeta(
|
|
689
|
+
withMeta(
|
|
690
|
+
{ skipped: true, reason: SKILLS_MANAGED_EXTERNALLY_NOTICE, requested },
|
|
691
|
+
NO_UPDATE_NOTICE
|
|
692
|
+
),
|
|
689
693
|
null,
|
|
690
694
|
2
|
|
691
695
|
)
|
|
@@ -703,7 +707,7 @@ function requestedNamesFrom(positionals) {
|
|
|
703
707
|
}
|
|
704
708
|
function reportUpdate(result, requested, json) {
|
|
705
709
|
if (json) {
|
|
706
|
-
console.log(JSON.stringify(withMeta(result), null, 2));
|
|
710
|
+
console.log(JSON.stringify(withMeta(result, NO_UPDATE_NOTICE), null, 2));
|
|
707
711
|
return;
|
|
708
712
|
}
|
|
709
713
|
for (const name of result.retired) console.log(c.warn(retiredSkillNotice(name)));
|
|
@@ -723,7 +727,9 @@ function reportUpdate(result, requested, json) {
|
|
|
723
727
|
}
|
|
724
728
|
function reportUpdateFailure(message, json) {
|
|
725
729
|
if (json) {
|
|
726
|
-
console.log(
|
|
730
|
+
console.log(
|
|
731
|
+
JSON.stringify(withMeta(jsonFailure("runtime_error", message), NO_UPDATE_NOTICE), null, 2)
|
|
732
|
+
);
|
|
727
733
|
return;
|
|
728
734
|
}
|
|
729
735
|
R.error(c.error(message));
|
|
@@ -778,8 +784,10 @@ var skills_default = defineCommand({
|
|
|
778
784
|
}
|
|
779
785
|
}
|
|
780
786
|
});
|
|
787
|
+
|
|
781
788
|
export {
|
|
782
|
-
skills_default as default,
|
|
783
789
|
examples,
|
|
784
|
-
updateSkills
|
|
790
|
+
updateSkills,
|
|
791
|
+
skillsManagedExternally,
|
|
792
|
+
skills_default
|
|
785
793
|
};
|
|
@@ -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-4YCNVKJX.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-I4XTKG2B.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";
|
|
@@ -201,8 +200,15 @@ function locateInstall(skillNames, opts = {}) {
|
|
|
201
200
|
}
|
|
202
201
|
return null;
|
|
203
202
|
}
|
|
203
|
+
function globalInstallRoot(home = homedir()) {
|
|
204
|
+
return {
|
|
205
|
+
dir: join(process.env.CLAUDE_CONFIG_DIR?.trim() || join(home, ".claude"), "skills"),
|
|
206
|
+
agent: "claude-code",
|
|
207
|
+
scope: "global"
|
|
208
|
+
};
|
|
209
|
+
}
|
|
204
210
|
function presentSkills(skillNames, opts = {}) {
|
|
205
|
-
const root = locateInstall([...skillNames], opts);
|
|
211
|
+
const root = opts.installTarget ? globalInstallRoot(opts.home) : locateInstall([...skillNames], opts);
|
|
206
212
|
if (!root) return [];
|
|
207
213
|
return skillNames.filter((name) => existsSync(join(root.dir, name, "SKILL.md")));
|
|
208
214
|
}
|
|
@@ -279,6 +285,10 @@ function hyperframesSkillNames(opts) {
|
|
|
279
285
|
const lockPath = lockPathForScope(opts.scope, { cwd: opts.cwd, home: opts.home });
|
|
280
286
|
return skillsAttributedToSource(readSkillLock(lockPath), DEFAULT_REPO_SLUG);
|
|
281
287
|
}
|
|
288
|
+
function foreignSkillNames(opts) {
|
|
289
|
+
const lock = readSkillLock(lockPathForScope(opts.scope, opts));
|
|
290
|
+
return Object.entries(lock?.skills ?? {}).filter(([, entry]) => isFromOtherSource(entry, DEFAULT_REPO_SLUG)).map(([name]) => name);
|
|
291
|
+
}
|
|
282
292
|
function findRepoManifest(cwd = process.cwd()) {
|
|
283
293
|
let dir = cwd;
|
|
284
294
|
for (let i = 0; i < 16; i++) {
|
|
@@ -405,10 +415,10 @@ async function checkSkills(opts = {}) {
|
|
|
405
415
|
cliVersion: opts.cliVersion
|
|
406
416
|
});
|
|
407
417
|
const skillNames = Object.keys(latest.skills);
|
|
408
|
-
const root =
|
|
418
|
+
const root = opts.installTarget ? globalInstallRoot(opts.home) : locateInstall(skillNames, opts);
|
|
409
419
|
const lock = root ? readSkillLock(lockPathForScope(root.scope, opts)) : null;
|
|
410
420
|
const foreign = root ? skillNames.filter(
|
|
411
|
-
(name) => existsSync(join(root.dir, name, "SKILL.md")) && isFromOtherSource(lock?.skills?.[name], latest.source)
|
|
421
|
+
(name) => (opts.installTarget || existsSync(join(root.dir, name, "SKILL.md"))) && isFromOtherSource(lock?.skills?.[name], latest.source)
|
|
412
422
|
) : [];
|
|
413
423
|
const ours = skillNames.filter((name) => !foreign.includes(name));
|
|
414
424
|
const installed = root ? hashInstalled(root, ours) : {};
|
|
@@ -429,7 +439,7 @@ async function checkSkills(opts = {}) {
|
|
|
429
439
|
}
|
|
430
440
|
|
|
431
441
|
// src/utils/skillsUpdateCheck.ts
|
|
432
|
-
var CHECK_INTERVAL_MS =
|
|
442
|
+
var CHECK_INTERVAL_MS = 2 * 60 * 60 * 1e3;
|
|
433
443
|
function getSkillsUpdateMeta() {
|
|
434
444
|
const config = readConfig();
|
|
435
445
|
return {
|
|
@@ -438,26 +448,29 @@ function getSkillsUpdateMeta() {
|
|
|
438
448
|
missing: config.skillsMissingCount ?? 0
|
|
439
449
|
};
|
|
440
450
|
}
|
|
441
|
-
function cacheFresh(
|
|
442
|
-
if (!lastSkillsCheck) return false;
|
|
443
|
-
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;
|
|
444
454
|
}
|
|
445
455
|
async function refreshSkillsCache() {
|
|
446
456
|
if (!await hostAnswers("github.com")) return;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
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);
|
|
456
468
|
}
|
|
457
469
|
function invalidateSkillsCache() {
|
|
458
470
|
try {
|
|
459
471
|
const config = readConfigFresh();
|
|
460
472
|
delete config.lastSkillsCheck;
|
|
473
|
+
delete config.skillsCheckedVersion;
|
|
461
474
|
delete config.skillsUpdateAvailable;
|
|
462
475
|
delete config.skillsOutdatedCount;
|
|
463
476
|
delete config.skillsMissingCount;
|
|
@@ -470,24 +483,7 @@ function skillsNoticeOff() {
|
|
|
470
483
|
}
|
|
471
484
|
function skillsCheckDue() {
|
|
472
485
|
if (skillsNoticeOff()) return false;
|
|
473
|
-
return !cacheFresh(readConfig()
|
|
474
|
-
}
|
|
475
|
-
function claimDailyNotice(project, now = Date.now()) {
|
|
476
|
-
const noticeFile = join2(dirname(CONFIG_PATH), "skills-notice.json");
|
|
477
|
-
let shown = {};
|
|
478
|
-
try {
|
|
479
|
-
shown = JSON.parse(readFileSync2(noticeFile, "utf-8"));
|
|
480
|
-
} catch {
|
|
481
|
-
}
|
|
482
|
-
if (now - (shown[project] ?? 0) < CHECK_INTERVAL_MS) return false;
|
|
483
|
-
const kept = Object.entries(shown).filter(([, at]) => now - at < CHECK_INTERVAL_MS);
|
|
484
|
-
try {
|
|
485
|
-
mkdirSync(dirname(noticeFile), { recursive: true, mode: 448 });
|
|
486
|
-
writeFileSync(noticeFile, JSON.stringify(Object.fromEntries([...kept, [project, now]])));
|
|
487
|
-
} catch {
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
return true;
|
|
486
|
+
return !cacheFresh(readConfig(), Date.now());
|
|
491
487
|
}
|
|
492
488
|
function skillsNoticeText(meta) {
|
|
493
489
|
const total = meta.outdated + meta.missing;
|
|
@@ -503,7 +499,7 @@ function printSkillsUpdateNotice(cwd = process.cwd()) {
|
|
|
503
499
|
if (skillsNoticeOff()) return;
|
|
504
500
|
const meta = getSkillsUpdateMeta();
|
|
505
501
|
const text = skillsNoticeText(isUnattended() ? { ...meta, outdated: 0 } : meta);
|
|
506
|
-
if (text && claimDailyNotice(resolve2(cwd))) process.stderr.write(text);
|
|
502
|
+
if (text && claimDailyNotice("skills", resolve2(cwd))) process.stderr.write(text);
|
|
507
503
|
}
|
|
508
504
|
|
|
509
505
|
export {
|
|
@@ -513,9 +509,11 @@ export {
|
|
|
513
509
|
retiredSkillNotice,
|
|
514
510
|
presentSkills,
|
|
515
511
|
hyperframesSkillNames,
|
|
512
|
+
foreignSkillNames,
|
|
516
513
|
cliReleaseTag,
|
|
517
514
|
checkSkills,
|
|
518
515
|
refreshSkillsCache,
|
|
516
|
+
recordSkillsCheck,
|
|
519
517
|
invalidateSkillsCache,
|
|
520
518
|
skillsCheckDue,
|
|
521
519
|
printSkillsUpdateNotice
|
|
@@ -1010,10 +1010,10 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1010
1010
|
const compDoc = parseCopy(compHtml);
|
|
1011
1011
|
let compId;
|
|
1012
1012
|
let runtimeCompId;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
compId = identity
|
|
1016
|
-
runtimeCompId = identity
|
|
1013
|
+
const identity = hostIdentityMap?.get(hostEl);
|
|
1014
|
+
if (identity) {
|
|
1015
|
+
compId = identity.authoredCompositionId || null;
|
|
1016
|
+
runtimeCompId = identity.runtimeCompositionId || compId || "";
|
|
1017
1017
|
} else {
|
|
1018
1018
|
compId = hostEl.getAttribute("data-composition-id") || null;
|
|
1019
1019
|
runtimeCompId = compId || "";
|
|
@@ -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-I4XTKG2B.js";
|
|
47
47
|
|
|
48
48
|
// src/telemetry/transport.ts
|
|
49
49
|
import { spawn } from "child_process";
|