hyperframes 0.8.219 → 0.8.221
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/dist/{add-2MXC4QCY.js → add-7CVO7K6M.js} +14 -11
- package/dist/{agentPromptGenerator-FIT75HWJ.js → agentPromptGenerator-YFC2SJLF.js} +6 -6
- package/dist/{animatedGifPrep-MFUNECD3.js → animatedGifPrep-YSMY5GU2.js} +6 -6
- package/dist/api.js +16 -16
- package/dist/{asset-T6BI53SJ.js → asset-ZVKHSO3M.js} +2 -2
- package/dist/{assetCataloger-DP4SHXWI.js → assetCataloger-6IBSEOK7.js} +7 -7
- package/dist/{audio-SRQLO7BP.js → audio-JUV3TVSW.js} +14 -13
- package/dist/{auth-JONDB26P.js → auth-2J6FP462.js} +2 -2
- package/dist/{autoUpdate-YKJOOXCI.js → autoUpdate-ML6EZK6D.js} +2 -2
- package/dist/{backgroundChecks-GSTIIVNR.js → backgroundChecks-MAWP2REX.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ESAPNTE3.js → batchRender-Z7MGNJZH.js} +3 -3
- package/dist/{beats-OOVMTM4B.js → beats-LRZOZUUQ.js} +8 -8
- package/dist/{benchmark-WBFYHOSI.js → benchmark-XJWLDTIL.js} +8 -8
- package/dist/{browser-AZZAO24H.js → browser-STEVEWWA.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-GP4MD6DJ.js → bundleWithLocalizedFonts-WH63ZWUT.js} +2 -2
- package/dist/{capture-MGRV5VWE.js → capture-U3ZT3GNI.js} +12 -12
- package/dist/{capture-PN7GEEAB.js → capture-VB5ID7HT.js} +3 -3
- package/dist/{captureCompositionFrame-JYGGPKFZ.js → captureCompositionFrame-MXJ3WO2R.js} +11 -11
- package/dist/{catalog-D42NLFZT.js → catalog-ICGHSRPZ.js} +12 -11
- package/dist/{catch-up-TUL26VOB.js → catch-up-DJPQKXQB.js} +4 -4
- package/dist/{check-DBBH7DI3.js → check-TL7AGWPO.js} +39 -38
- package/dist/{checkAudio-UJ7XTDRD.js → checkAudio-GPTU6EGB.js} +9 -9
- package/dist/{checkBrowser-3YIZYXIR.js → checkBrowser-FG5DAW2R.js} +31 -30
- package/dist/{chunk-NP2QEAEW.js → chunk-2ZNURTH5.js} +9 -9
- package/dist/{chunk-ILCIWNPQ.js → chunk-322M35EB.js} +3 -3
- package/dist/{chunk-DWMI7CKI.js → chunk-3PJ3HVLG.js} +1 -1
- package/dist/{chunk-IGZHC55Z.js → chunk-3STL4WJ6.js} +72 -32
- package/dist/{chunk-3KDODK5M.js → chunk-4ZM727AO.js} +2 -2
- package/dist/{chunk-DMUDI5IH.js → chunk-5YT2KHPO.js} +2 -2
- package/dist/{chunk-473HMKSC.js → chunk-625I5VBE.js} +2 -2
- package/dist/{chunk-WUABYDXU.js → chunk-67CALYTU.js} +1 -1
- package/dist/{chunk-DOZGTBDV.js → chunk-6HKUUBAV.js} +2 -2
- package/dist/{chunk-LIWBGRPD.js → chunk-6YW3FEHC.js} +3 -3
- package/dist/{chunk-XXLG7GCA.js → chunk-74E7EHVH.js} +1 -1
- package/dist/{chunk-LJUFR7G5.js → chunk-7DVR3DL3.js} +7 -7
- package/dist/{chunk-2UT32TJS.js → chunk-AW7A27JM.js} +1 -1
- package/dist/{chunk-TCV7N2UY.js → chunk-AZI2T2KO.js} +1 -1
- package/dist/{chunk-5UIODBMI.js → chunk-AZXDEC2G.js} +1 -1
- package/dist/{chunk-FWWJRJB5.js → chunk-BQNTY7J5.js} +1 -1
- package/dist/{chunk-BT5UT4XT.js → chunk-D2RQVJLZ.js} +2 -2
- package/dist/{chunk-G2E2DHH2.js → chunk-DMCU2ELU.js} +3 -3
- package/dist/{chunk-OWV36OJP.js → chunk-DS372VSV.js} +2 -5
- package/dist/{chunk-GP5X7V6U.js → chunk-F6WHVEUS.js} +1 -1
- package/dist/{chunk-G7ZTD2KJ.js → chunk-FKPJP7KG.js} +5 -5
- package/dist/{chunk-BKHRAHV6.js → chunk-GSCFMG4C.js} +2 -2
- package/dist/{chunk-QE5JXNSW.js → chunk-H3HC6U4I.js} +10 -10
- package/dist/{chunk-U2EUCTYQ.js → chunk-HSHKLYDI.js} +3 -3
- package/dist/{chunk-XUOLKUE7.js → chunk-I45R2REQ.js} +1 -1
- package/dist/{chunk-FAIFPYRO.js → chunk-IDWJJ7PP.js} +1 -1
- package/dist/{chunk-5ETJX6WM.js → chunk-J3OVTOVC.js} +18 -14
- package/dist/{chunk-KENUKJRG.js → chunk-JGZUG5V4.js} +2 -2
- package/dist/{chunk-BRU66Q24.js → chunk-KQPP4NIZ.js} +2 -2
- package/dist/{chunk-33XQUQKN.js → chunk-L63FJVSC.js} +1 -1
- package/dist/{chunk-MHZB6QSC.js → chunk-LYZB5CJN.js} +13 -3
- package/dist/{chunk-3VIICMJF.js → chunk-M2BCU4Y5.js} +1 -1
- package/dist/{chunk-YXZ56JUN.js → chunk-M2F6VGCP.js} +48 -15
- package/dist/{chunk-UGDLT4LZ.js → chunk-MEB6HWBM.js} +2 -2
- package/dist/{chunk-AU7VGKCP.js → chunk-MXVH6UW6.js} +1 -1
- package/dist/{chunk-UWV753SJ.js → chunk-MYNBV7WG.js} +9 -2
- package/dist/{chunk-C2G23WQQ.js → chunk-MYXFBIJO.js} +1 -1
- package/dist/{chunk-CBZN5JIK.js → chunk-NQOCM4KQ.js} +3 -3
- package/dist/{chunk-RYBFHEMZ.js → chunk-NYOQP6DO.js} +1 -1
- package/dist/{chunk-CPKBAMI3.js → chunk-O7WR4AHX.js} +14 -14
- package/dist/{chunk-K5GGTJJV.js → chunk-OMLDAF44.js} +1 -1
- package/dist/{chunk-64MFJSGZ.js → chunk-OOEOJPFY.js} +2 -2
- package/dist/{chunk-576ATOOU.js → chunk-OPKSVV4G.js} +2 -2
- package/dist/{chunk-KUQOUWJ4.js → chunk-P6FGS4U6.js} +2 -2
- package/dist/chunk-Q3PPGPEA.js +5061 -0
- package/dist/{chunk-KK5MZQXG.js → chunk-QLQVQQP6.js} +3 -3
- package/dist/{chunk-LGMRZWJS.js → chunk-QYUXDFJY.js} +1 -1
- package/dist/{chunk-O7YOS36L.js → chunk-ROVRC3CG.js} +2 -2
- package/dist/{chunk-XUTPVELE.js → chunk-RVCWVOXM.js} +3 -3
- package/dist/{chunk-UR6L2DXM.js → chunk-RVIMLJXC.js} +13 -13
- package/dist/{chunk-YATFRFNH.js → chunk-S5GOFDX5.js} +1 -1
- package/dist/{chunk-VTLIN7XN.js → chunk-SAKL7SZH.js} +2 -2
- package/dist/{chunk-Z27A7NUB.js → chunk-SHOE3UR6.js} +1 -1
- package/dist/{chunk-GGDVZ7O4.js → chunk-TMK3MW7B.js} +10 -10
- package/dist/{chunk-UDBW6TK4.js → chunk-TNQCXU37.js} +1 -1
- package/dist/{chunk-4OWVRHSV.js → chunk-TVT465RJ.js} +5 -5
- package/dist/{chunk-VO7IEWOH.js → chunk-U6WH572X.js} +7 -7
- package/dist/{chunk-FC7QIE5X.js → chunk-UNQ3CVKW.js} +19 -19
- package/dist/{chunk-543U46OR.js → chunk-US4BCRYB.js} +5 -0
- package/dist/chunk-WYKRGEDD.js +62 -0
- package/dist/{chunk-GLC5XHN5.js → chunk-XC3BGWCJ.js} +3 -44
- package/dist/{chunk-JH2AO4ZW.js → chunk-XDTCPMR3.js} +1 -1
- package/dist/{chunk-LJB2PF6K.js → chunk-XETZLYGW.js} +1 -1
- package/dist/{chunk-542VETC5.js → chunk-Y4GLFHO5.js} +1 -1
- package/dist/{chunk-Z537IJJH.js → chunk-YISDQ7YP.js} +4 -4
- package/dist/{chunk-BRYOYBO5.js → chunk-YKMFCE5B.js} +1 -1
- package/dist/{chunk-7ZRXSZF6.js → chunk-YSZ4VMXI.js} +1 -1
- package/dist/{chunk-VP5KECBU.js → chunk-YV2QQUTL.js} +2 -2
- package/dist/{chunk-GHWV6PIS.js → chunk-Z7YQEDA5.js} +1 -1
- package/dist/{chunk-QEKP7XCN.js → chunk-ZBLSSWSE.js} +1 -1
- package/dist/{chunk-TNQ4SSTR.js → chunk-ZKPRJPWN.js} +8 -8
- package/dist/{chunk-3MTNYVWM.js → chunk-ZOLKM3VZ.js} +5 -5
- package/dist/{clean-YERX334S.js → clean-3NMJWZXK.js} +19 -19
- package/dist/cli.js +62 -60
- package/dist/{cloud-5XFWROJK.js → cloud-CB3NYNUR.js} +4 -4
- package/dist/{cloudrun-5XEDIP77.js → cloudrun-2CTKCIXV.js} +4 -4
- package/dist/commands/layout-audit.browser.js +29 -5
- package/dist/commands/motion-signature.browser.js +11 -6
- package/dist/{compare-THYM62NL.js → compare-FVY3AMTT.js} +28 -27
- package/dist/{compiler-SLKHXYCO.js → compiler-SEQRWEEN.js} +3 -3
- package/dist/{component-N4FFNYA5.js → component-AEMJRROX.js} +3 -3
- package/dist/{compositions-XCM3Z65K.js → compositions-NRBSIBGZ.js} +10 -10
- package/dist/{delete-6PIKDOKV.js → delete-T4E53ELR.js} +2 -2
- package/dist/{deploy-PT77AP6G.js → deploy-PUF2DW3H.js} +1 -1
- package/dist/{dist-VNOJCTQR.js → dist-B6C3DU6I.js} +2 -2
- package/dist/{dist-XXBCSQYF.js → dist-VARV35QH.js} +1 -1
- package/dist/docs/motion-blur.md +28 -0
- package/dist/{docs-6EM6FDNI.js → docs-VAF5NM5B.js} +4 -0
- package/dist/{doctor-KLDSXKUM.js → doctor-FVBU575B.js} +13 -13
- package/dist/{events-OHISH3KL.js → events-DZ5PRR6F.js} +2 -2
- package/dist/{events-KEJFQQDQ.js → events-RSPDI7FX.js} +3 -3
- package/dist/{feedback-VTLWYGLQ.js → feedback-AALA3OA7.js} +7 -7
- package/dist/{ffmpeg-SG3AYA6M.js → ffmpeg-YXKE5CUE.js} +6 -6
- package/dist/{figma-5AHFOYPG.js → figma-37R727XZ.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-5VTBUZIR.js → get-L3VKJ6JF.js} +2 -2
- package/dist/{gpuPolicy-ODODH5JV.js → gpuPolicy-6QIFFWAI.js} +6 -6
- package/dist/{grade-compare-25HQJORH.js → grade-compare-7IN5QDJD.js} +29 -28
- package/dist/{heifImagePrep-SPBGWX2L.js → heifImagePrep-AWII25PM.js} +7 -7
- package/dist/{help-3AZ4ZSWZ.js → help-B4MB7MWW.js} +1 -1
- package/dist/{history-KZFZ2MJI.js → history-TQO6AWEQ.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-XNYSD2SN.js → info-7CBHVXSG.js} +7 -7
- package/dist/{init-C76MX2UE.js → init-D7HKPQ5A.js} +27 -26
- package/dist/{inspect-OWDJTC64.js → inspect-VHDQL55M.js} +29 -28
- package/dist/{installer-OFIDWMYR.js → installer-EJNLL6SV.js} +4 -4
- package/dist/{keyframes-ZBIWACNT.js → keyframes-IFLBMAJP.js} +6 -6
- package/dist/{lambda-XS3E4XSL.js → lambda-I7EQULHC.js} +10 -10
- package/dist/{layout-HLU3IVDX.js → layout-MOCEANRO.js} +29 -28
- package/dist/{lint-DUJ5PM56.js → lint-HFXGSQKN.js} +7 -7
- package/dist/{lintProject-I4XPWIQZ.js → lintProject-VCDI6A2W.js} +1 -1
- package/dist/{list-KRDQLHDH.js → list-OFYIXVON.js} +2 -2
- package/dist/{localPage-KXNSCQIQ.js → localPage-QOOQ5YA2.js} +6 -6
- package/dist/{login-4P7LCOB5.js → login-WAG7B4PM.js} +4 -4
- package/dist/{manager-USFB6SE2.js → manager-34U5CEFB.js} +7 -7
- package/dist/{manager-I4ROBMYK.js → manager-ENFYM32B.js} +1 -1
- package/dist/{media-treatment-JOZB3MTT.js → media-treatment-2TLX6NKS.js} +12 -12
- package/dist/{models-RZRXHIER.js → models-M2F4WTAR.js} +10 -10
- package/dist/{motionShot-3SHLRT3L.js → motionShot-6WCTCV4W.js} +15 -15
- package/dist/{normalize-audio-SL2ATLJM.js → normalize-audio-T6PIPWOT.js} +8 -8
- package/dist/{open-TCGY4NB2.js → open-BC5METIY.js} +12 -11
- package/dist/{parakeetRunner-ZBO4LR7M.js → parakeetRunner-UXVY7PV2.js} +11 -11
- package/dist/{pipeline-7D36B3FW.js → pipeline-GJAJPWPB.js} +9 -9
- package/dist/{play-CTBPJFBX.js → play-UCIRUHCU.js} +20 -19
- package/dist/{preflight-GFWIOUO3.js → preflight-GVRYYIH5.js} +8 -8
- package/dist/{present-GXOHUNFP.js → present-46QLZOK4.js} +15 -15
- package/dist/{preview-BWCEXEII.js → preview-HWXMP7WL.js} +23 -21
- package/dist/{producer-UME4Q4HH.js → producer-2PBHUE5O.js} +1 -1
- package/dist/{projectConfig-I6QNMRVV.js → projectConfig-C4S3LBBX.js} +7 -6
- package/dist/{publication-JET7ZBWG.js → publication-GESNVVMS.js} +2 -2
- package/dist/{publish-ZGW46SKV.js → publish-IBY26S3T.js} +11 -10
- package/dist/{remove-background-YSJ7XFPQ.js → remove-background-3OBWOHVZ.js} +10 -10
- package/dist/{render-QFIWTDK3.js → render-3F6GQ5WW.js} +14 -14
- package/dist/{render-33TSTTN7.js → render-LSI5WXS7.js} +5 -5
- package/dist/{render-Q2VLJGFV.js → render-SR5RISLU.js} +36 -35
- package/dist/{render-batch-SDDZ3LM7.js → render-batch-HV4W3PZM.js} +5 -5
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-VLOUQ7I6.js → resolver-R5X3HAPE.js} +5 -4
- package/dist/{sherpa-YKK3LRSI.js → sherpa-2Q6U4ZFY.js} +10 -10
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -10
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +22 -0
- package/dist/{skills-5ENIWSB2.js → skills-FSGXQSHA.js} +5 -5
- package/dist/{skillsUpdateCheck-7GDJNW5A.js → skillsUpdateCheck-UW6643XX.js} +3 -3
- package/dist/{snapshot-O3JXB3VM.js → snapshot-HFPB34Y7.js} +62 -39
- package/dist/{src-6T5KES5G.js → src-ROWFWCEN.js} +5 -5
- package/dist/{src-MT7UQJT5.js → src-VMTQQUUP.js} +8 -8
- package/dist/{staticProjectServer-UP22EGMU.js → staticProjectServer-4TGZJIWN.js} +18 -17
- package/dist/{status-63BKLDVW.js → status-4AAPTTRW.js} +2 -2
- package/dist/studio/assets/{hyperframes-player-B83GGznX.js → hyperframes-player-B_wvwarc.js} +1 -1
- package/dist/studio/assets/{index-B9gVTopE.js → index-BDE7dwov.js} +6 -6
- package/dist/studio/assets/{index-Ca_tSAqR.js → index-D0jGq2dS.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-Q6KSNU77.js → studio-api-TSHXVZ6R.js} +9 -9
- package/dist/{studioSelectionClient-D6VMGTKQ.js → studioSelectionClient-FA6XPVIL.js} +1 -1
- package/dist/{studioServer-44OR56TK.js → studioServer-74ZBLNP2.js} +52 -57
- package/dist/{synthesize-IKSZPKFJ.js → synthesize-4JC74JW5.js} +13 -9
- package/dist/{telemetry-2N7DLYCQ.js → telemetry-3NDLZOPR.js} +3 -3
- package/dist/{timeline-MT56A3HB.js → timeline-5IFZJU7M.js} +20 -19
- package/dist/{tokens-V6O4I5IX.js → tokens-UFNPQVLS.js} +2 -2
- package/dist/{transcribe-GGV4YEF3.js → transcribe-7KQAUHEN.js} +9 -9
- package/dist/{transcribe-ZCJ6WB6R.js → transcribe-NAXKBIPW.js} +15 -15
- package/dist/{tts-MQNOBHLH.js → tts-BVTJEP72.js} +1 -1
- package/dist/{updateCheck-ZBBUGX3A.js → updateCheck-KDSFL3XX.js} +2 -2
- package/dist/{upgrade-L7SM3TPB.js → upgrade-EXX4C35N.js} +2 -2
- package/dist/{urlDownloader-HTBT6K5N.js → urlDownloader-4UFCIAPH.js} +5 -5
- package/dist/{validate-WXKYRV2E.js → validate-QYOHY3N6.js} +22 -22
- package/dist/{video-JH5WQC2I.js → video-HRL3V2R5.js} +7 -7
- package/dist/warmCheck.js +39 -38
- package/package.json +1 -1
- package/dist/chunk-4I7KQWZS.js +0 -5061
|
@@ -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-
|
|
9
|
+
} from "./chunk-ZKPRJPWN.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4ZM727AO.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q3PPGPEA.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
probeAudioTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XDTCPMR3.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveWithinProject
|
|
12
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MAX_AUDIO_GAIN_DB,
|
|
15
15
|
formatAudioGain,
|
|
16
16
|
isAudibleVideoElement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Q3PPGPEA.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-BIROA7JM.js";
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F6WHVEUS.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZBLSSWSE.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LYZB5CJN.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -7,19 +7,19 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H3HC6U4I.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-O7WR4AHX.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7DVR3DL3.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZKPRJPWN.js";
|
|
23
23
|
import {
|
|
24
24
|
artifactDirectory,
|
|
25
25
|
finishSnapshotRun
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
proxyVariantFor,
|
|
32
32
|
resolveProxies,
|
|
33
33
|
scanProjectMediaCodecMap
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-P6FGS4U6.js";
|
|
35
35
|
import {
|
|
36
36
|
AUDIT_SEEK_OPTIONS,
|
|
37
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
seekCompositionTimeline,
|
|
46
46
|
seekInPage,
|
|
47
47
|
waitForPreferredSeekTarget
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TMK3MW7B.js";
|
|
49
49
|
import {
|
|
50
50
|
findStageProxyBox
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NYOQP6DO.js";
|
|
52
52
|
import {
|
|
53
53
|
resolveAutoProxy
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-YKMFCE5B.js";
|
|
55
55
|
import {
|
|
56
56
|
BrowserCleanupError,
|
|
57
57
|
closeManagedBrowser,
|
|
58
58
|
onStopSignal
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JGZUG5V4.js";
|
|
60
60
|
import {
|
|
61
61
|
injectTagsAtHeadStart
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-Q3PPGPEA.js";
|
|
63
63
|
import {
|
|
64
64
|
normalizeErrorMessage
|
|
65
65
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -578,7 +578,7 @@ function proxyFailedDraft(message) {
|
|
|
578
578
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
579
579
|
}
|
|
580
580
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
581
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
581
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-WH63ZWUT.js");
|
|
582
582
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
583
583
|
}
|
|
584
584
|
function withCapturePreviewMark(html) {
|
|
@@ -640,7 +640,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
640
640
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
641
641
|
}));
|
|
642
642
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
643
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
643
|
+
const { analyzeClipMediaFit } = await import("./src-ROWFWCEN.js");
|
|
644
644
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
645
645
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
646
646
|
}
|
|
@@ -777,7 +777,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
777
777
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
778
778
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
779
779
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
780
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
780
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-WH63ZWUT.js");
|
|
781
781
|
return withCapturePreviewMark(
|
|
782
782
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
783
783
|
);
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S5GOFDX5.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MXVH6UW6.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
hasPythonModules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J3OVTOVC.js";
|
|
10
10
|
|
|
11
11
|
// src/audio/providers.ts
|
|
12
12
|
var KOKORO_MODULES = ["kokoro_onnx", "soundfile"];
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
pageNavigationTimeoutMs,
|
|
12
12
|
windowsChromeCrashRemediation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-322M35EB.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveCompositionViewportFromHtml
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NYOQP6DO.js";
|
|
17
17
|
import {
|
|
18
18
|
launchManagedBrowser,
|
|
19
19
|
resolveManagedGpuMode,
|
|
20
20
|
rethrowAfterBrowserCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JGZUG5V4.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveLocalBrowserGpuMode,
|
|
24
24
|
resolveLocalWebGpu
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-625I5VBE.js";
|
|
26
26
|
import {
|
|
27
27
|
c
|
|
28
28
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
assertWebGpuAdapterAvailable,
|
|
31
31
|
compositionRequiresWebGpu,
|
|
32
32
|
oneProcessOverPipe
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-M2F6VGCP.js";
|
|
34
34
|
import {
|
|
35
35
|
normalizeErrorMessage
|
|
36
36
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -138,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
138
138
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
139
139
|
});
|
|
140
140
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
141
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
141
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-ROWFWCEN.js");
|
|
142
142
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
143
143
|
await waitForImagesReady(
|
|
144
144
|
page,
|
|
@@ -187,7 +187,7 @@ async function installPageFunctionGuard(page) {
|
|
|
187
187
|
async function openSettledCompositionPage(html, url, options) {
|
|
188
188
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
189
189
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
190
|
-
const answer = (await import("./staticProjectServer-
|
|
190
|
+
const answer = (await import("./staticProjectServer-4TGZJIWN.js")).inProcessAnswer(url);
|
|
191
191
|
const noListen = answer !== void 0;
|
|
192
192
|
let chromeBrowser;
|
|
193
193
|
try {
|
|
@@ -198,7 +198,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
198
198
|
options.onBrowserReady?.();
|
|
199
199
|
const page = await chromeBrowser.newPage();
|
|
200
200
|
await installPageFunctionGuard(page);
|
|
201
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
201
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-ROWFWCEN.js");
|
|
202
202
|
await installMediaRenderIdBridge(page);
|
|
203
203
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
204
204
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -216,10 +216,10 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
216
216
|
}
|
|
217
217
|
async function launchCompositionBrowser(html, noListen, options) {
|
|
218
218
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
219
|
-
const { ensureBrowser, findSystemBrowser } = await import("./manager-
|
|
219
|
+
const { ensureBrowser, findSystemBrowser } = await import("./manager-ENFYM32B.js");
|
|
220
220
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
221
221
|
const puppeteer = await import("puppeteer-core");
|
|
222
|
-
const { buildChromeArgs } = await import("./src-
|
|
222
|
+
const { buildChromeArgs } = await import("./src-ROWFWCEN.js");
|
|
223
223
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
224
224
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
225
225
|
let softwareWebGpu = false;
|
|
@@ -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-RSPDI7FX.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -6,26 +6,26 @@ 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-AZI2T2KO.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DMCU2ELU.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HSHKLYDI.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3PJ3HVLG.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-M2BCU4Y5.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
KOKORO_PIP,
|
|
10
10
|
MUSICGEN_MODULES,
|
|
11
11
|
MUSICGEN_PIP
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SHOE3UR6.js";
|
|
13
13
|
import {
|
|
14
14
|
describeRejectedPythonOverride,
|
|
15
15
|
hasPythonModules
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J3OVTOVC.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MEB6HWBM.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-M2F6VGCP.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YSZ4VMXI.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-BLBMPEBX.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5YT2KHPO.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-34U5CEFB.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
finishCheckSnapshots,
|
|
18
18
|
preResolveHostileMediaProxies,
|
|
19
19
|
rectToBbox
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RVIMLJXC.js";
|
|
21
21
|
import {
|
|
22
22
|
collectProjectMedia,
|
|
23
23
|
mediaPath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GSCFMG4C.js";
|
|
25
25
|
import {
|
|
26
26
|
captureArtifactRevision
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IDWJJ7PP.js";
|
|
28
28
|
import {
|
|
29
29
|
trackLintRun
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RVCWVOXM.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-
|
|
51
|
+
} from "./chunk-H3HC6U4I.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-
|
|
60
|
+
} from "./chunk-BQNTY7J5.js";
|
|
61
61
|
import {
|
|
62
62
|
recordArtifacts
|
|
63
63
|
} from "./chunk-24F7TOW2.js";
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
closeManagedBrowser,
|
|
70
70
|
onStopSignal,
|
|
71
71
|
registerBrowserSessionCleanup
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JGZUG5V4.js";
|
|
73
73
|
import {
|
|
74
74
|
resolveLocalBrowserGpuMode
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-625I5VBE.js";
|
|
76
76
|
import {
|
|
77
77
|
trackCheckReport,
|
|
78
78
|
trackCommandFailure
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-F6WHVEUS.js";
|
|
80
80
|
import {
|
|
81
81
|
swallowedFlagUsageError
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XC3BGWCJ.js";
|
|
83
83
|
import {
|
|
84
84
|
defineCommand
|
|
85
85
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -95,14 +95,14 @@ import {
|
|
|
95
95
|
import {
|
|
96
96
|
extractMediaMetadata,
|
|
97
97
|
findHdrAutoPromotion
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-M2F6VGCP.js";
|
|
99
99
|
import {
|
|
100
100
|
lintProject,
|
|
101
101
|
shouldBlockRender
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-LYZB5CJN.js";
|
|
103
103
|
import {
|
|
104
104
|
withMeta
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-YSZ4VMXI.js";
|
|
106
106
|
import {
|
|
107
107
|
recordLastCheck
|
|
108
108
|
} from "./chunk-BLBMPEBX.js";
|
|
@@ -2361,7 +2361,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2361
2361
|
};
|
|
2362
2362
|
}
|
|
2363
2363
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2364
|
-
const module = await import("./checkBrowser-
|
|
2364
|
+
const module = await import("./checkBrowser-FG5DAW2R.js");
|
|
2365
2365
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2366
2366
|
}
|
|
2367
2367
|
var adoptedBrowser;
|
|
@@ -2375,7 +2375,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2375
2375
|
if (adopted) return adopted;
|
|
2376
2376
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2377
2377
|
if (html === void 0) return void 0;
|
|
2378
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2378
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-MXJ3WO2R.js");
|
|
2379
2379
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2380
2380
|
}
|
|
2381
2381
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2387,11 +2387,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2387
2387
|
return relative(projectDir, path);
|
|
2388
2388
|
}
|
|
2389
2389
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2390
|
-
const module = await import("./checkBrowser-
|
|
2390
|
+
const module = await import("./checkBrowser-FG5DAW2R.js");
|
|
2391
2391
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2392
2392
|
}
|
|
2393
2393
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2394
|
-
const module = await import("./checkBrowser-
|
|
2394
|
+
const module = await import("./checkBrowser-FG5DAW2R.js");
|
|
2395
2395
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2396
2396
|
}
|
|
2397
2397
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2413,7 +2413,7 @@ function collectMedia(project) {
|
|
|
2413
2413
|
return collectProjectMedia(project.dir);
|
|
2414
2414
|
}
|
|
2415
2415
|
async function inspectAudio(project, media) {
|
|
2416
|
-
const module = await import("./checkAudio-
|
|
2416
|
+
const module = await import("./checkAudio-GPTU6EGB.js");
|
|
2417
2417
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2418
2418
|
}
|
|
2419
2419
|
function audioCheckFailure(project, error) {
|
|
@@ -2487,7 +2487,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
},
|
|
2489
2489
|
async prepareMedia(project, options) {
|
|
2490
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2490
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-WH63ZWUT.js");
|
|
2491
2491
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2492
2492
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2493
2493
|
},
|
|
@@ -224,6 +224,10 @@ async function killActiveServers(startPort = 3002) {
|
|
|
224
224
|
}
|
|
225
225
|
return { killed, unverified };
|
|
226
226
|
}
|
|
227
|
+
function closeServer(server) {
|
|
228
|
+
if ("closeAllConnections" in server) server.closeAllConnections();
|
|
229
|
+
return new Promise((resolve3) => server.close(() => resolve3()));
|
|
230
|
+
}
|
|
227
231
|
async function findPortAndServe(fetch2, startPort, projectDir, forceNew, expectedServerBuildSignature = null, bindHost, expectedBrowserGpuMode) {
|
|
228
232
|
const { createAdaptorServer } = await import("@hono/node-server");
|
|
229
233
|
const host = bindHost ?? (process.env.HYPERFRAMES_PREVIEW_HOST?.trim() || "127.0.0.1");
|
|
@@ -389,6 +393,7 @@ export {
|
|
|
389
393
|
scanActiveServers,
|
|
390
394
|
activeServerOnPort,
|
|
391
395
|
killActiveServers,
|
|
396
|
+
closeServer,
|
|
392
397
|
findPortAndServe,
|
|
393
398
|
AmbiguousPreviewServerError,
|
|
394
399
|
PreviewServerPortMismatchError,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/utils/didYouMean.ts
|
|
9
|
+
function editDistance(a, b) {
|
|
10
|
+
let previous = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
11
|
+
for (let i = 1; i <= a.length; i++) {
|
|
12
|
+
const current = [i];
|
|
13
|
+
for (let j = 1; j <= b.length; j++) {
|
|
14
|
+
const substitution = previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1);
|
|
15
|
+
current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, substitution);
|
|
16
|
+
}
|
|
17
|
+
previous = current;
|
|
18
|
+
}
|
|
19
|
+
return previous[b.length];
|
|
20
|
+
}
|
|
21
|
+
function closestMatch(input, candidates) {
|
|
22
|
+
const names = [...candidates];
|
|
23
|
+
const prefixed = input.length >= 2 ? names.find((name) => name.startsWith(input)) : void 0;
|
|
24
|
+
if (prefixed) return prefixed;
|
|
25
|
+
const limit = input.length <= 3 ? 1 : Math.max(2, Math.floor(input.length / 3));
|
|
26
|
+
let best;
|
|
27
|
+
let bestDistance = limit + 1;
|
|
28
|
+
for (const name of names) {
|
|
29
|
+
const distance = editDistance(input, name);
|
|
30
|
+
if (distance < bestDistance) {
|
|
31
|
+
best = name;
|
|
32
|
+
bestDistance = distance;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return best;
|
|
36
|
+
}
|
|
37
|
+
function closestNames(input, candidates, limit = 5) {
|
|
38
|
+
const words = new Set(input.split("-"));
|
|
39
|
+
return [...candidates].map((name) => ({
|
|
40
|
+
name,
|
|
41
|
+
shared: name.split("-").filter((word) => words.has(word)).length,
|
|
42
|
+
distance: editDistance(input, name)
|
|
43
|
+
})).filter(({ shared }) => shared > 0).sort((a, b) => b.shared - a.shared || a.distance - b.distance || a.name.localeCompare(b.name)).slice(0, limit).map(({ name }) => name);
|
|
44
|
+
}
|
|
45
|
+
var COMMAND_SYNONYMS = {
|
|
46
|
+
search: "catalog",
|
|
47
|
+
find: "catalog",
|
|
48
|
+
browse: "catalog",
|
|
49
|
+
registry: "catalog",
|
|
50
|
+
list: "catalog",
|
|
51
|
+
install: "add"
|
|
52
|
+
};
|
|
53
|
+
function synonymMatch(input, candidates) {
|
|
54
|
+
const target = COMMAND_SYNONYMS[input];
|
|
55
|
+
return target !== void 0 && [...candidates].includes(target) ? target : void 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
closestMatch,
|
|
60
|
+
closestNames,
|
|
61
|
+
synonymMatch
|
|
62
|
+
};
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
closestMatch
|
|
9
|
+
} from "./chunk-WYKRGEDD.js";
|
|
7
10
|
import {
|
|
8
11
|
c
|
|
9
12
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -11,48 +14,6 @@ import {
|
|
|
11
14
|
CliUsageError
|
|
12
15
|
} from "./chunk-DP5LF7GF.js";
|
|
13
16
|
|
|
14
|
-
// src/utils/didYouMean.ts
|
|
15
|
-
function editDistance(a, b) {
|
|
16
|
-
let previous = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
17
|
-
for (let i = 1; i <= a.length; i++) {
|
|
18
|
-
const current = [i];
|
|
19
|
-
for (let j = 1; j <= b.length; j++) {
|
|
20
|
-
const substitution = previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1);
|
|
21
|
-
current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, substitution);
|
|
22
|
-
}
|
|
23
|
-
previous = current;
|
|
24
|
-
}
|
|
25
|
-
return previous[b.length];
|
|
26
|
-
}
|
|
27
|
-
function closestMatch(input, candidates) {
|
|
28
|
-
const names = [...candidates];
|
|
29
|
-
const prefixed = input.length >= 2 ? names.find((name) => name.startsWith(input)) : void 0;
|
|
30
|
-
if (prefixed) return prefixed;
|
|
31
|
-
const limit = input.length <= 3 ? 1 : Math.max(2, Math.floor(input.length / 3));
|
|
32
|
-
let best;
|
|
33
|
-
let bestDistance = limit + 1;
|
|
34
|
-
for (const name of names) {
|
|
35
|
-
const distance = editDistance(input, name);
|
|
36
|
-
if (distance < bestDistance) {
|
|
37
|
-
best = name;
|
|
38
|
-
bestDistance = distance;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return best;
|
|
42
|
-
}
|
|
43
|
-
var COMMAND_SYNONYMS = {
|
|
44
|
-
search: "catalog",
|
|
45
|
-
find: "catalog",
|
|
46
|
-
browse: "catalog",
|
|
47
|
-
registry: "catalog",
|
|
48
|
-
list: "catalog",
|
|
49
|
-
install: "add"
|
|
50
|
-
};
|
|
51
|
-
function synonymMatch(input, candidates) {
|
|
52
|
-
const target = COMMAND_SYNONYMS[input];
|
|
53
|
-
return target !== void 0 && [...candidates].includes(target) ? target : void 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
17
|
// src/utils/reject-unknown-flags.ts
|
|
57
18
|
var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v"]);
|
|
58
19
|
function nameVariants(name) {
|
|
@@ -192,8 +153,6 @@ function guardSwallowedFlagValues(cmd, path, rawArgs) {
|
|
|
192
153
|
}
|
|
193
154
|
|
|
194
155
|
export {
|
|
195
|
-
closestMatch,
|
|
196
|
-
synonymMatch,
|
|
197
156
|
assertKnownFlags,
|
|
198
157
|
swallowedFlagUsageError,
|
|
199
158
|
guardSwallowedFlagValues
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NYOQP6DO.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-NHA4NRBE.js";
|