hyperframes 0.8.111 → 0.8.113
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-M5WN2AM2.js → add-ILIGSLV4.js} +15 -15
- package/dist/{agentPromptGenerator-QL2KAWEP.js → agentPromptGenerator-VIIPZCJ3.js} +1 -1
- package/dist/{animatedGifPrep-NMGFOSIL.js → animatedGifPrep-U7FMC7DB.js} +6 -6
- package/dist/{asset-GUASPIKN.js → asset-OFDEIAGM.js} +2 -2
- package/dist/{assetCataloger-FXEHOUA3.js → assetCataloger-5LCGR5XU.js} +2 -2
- package/dist/{auth-3YMEVUKJ.js → auth-5JDDEX2M.js} +2 -2
- package/dist/{autoUpdate-FYCGHBPC.js → autoUpdate-JXVZVJCV.js} +2 -2
- package/dist/{backgroundChecks-ZLYIRMTS.js → backgroundChecks-BBWGY3V6.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ZTHFMHZY.js → batchRender-QVJ7NEUH.js} +3 -3
- package/dist/{beats-GXY5ZBPB.js → beats-YEYVQMX6.js} +11 -11
- package/dist/{benchmark-MJFVBVNW.js → benchmark-J2V46VWI.js} +12 -12
- package/dist/{browser-ZDI7IX6H.js → browser-XBWASLD2.js} +11 -11
- package/dist/{bundleWithLocalizedFonts-4Q3ETTHW.js → bundleWithLocalizedFonts-4CVITCYK.js} +2 -2
- package/dist/{capture-4OPH4PMK.js → capture-F2Y7TIHU.js} +41 -43
- package/dist/{capture-OG6532RA.js → capture-GLHK4ST7.js} +3 -3
- package/dist/{captureFile-JOPOCRU7.js → captureFile-LYOJOUIE.js} +3 -1
- package/dist/{catalog-23DP7KCW.js → catalog-3QDMTDK2.js} +15 -15
- package/dist/{check-5X6BJA2P.js → check-O3RR4NWI.js} +52 -40
- package/dist/{checkBrowser-3QHBTMYM.js → checkBrowser-K36DAG4S.js} +32 -31
- package/dist/{chunk-NIGUNLOO.js → chunk-2DBYGR4N.js} +10 -9
- package/dist/{chunk-TIZQC44K.js → chunk-3IUSKIZW.js} +1 -1
- package/dist/{chunk-YLOSZHA2.js → chunk-3XPZJUKM.js} +2 -2
- package/dist/{chunk-32P7FTFC.js → chunk-4KGMIOMY.js} +9 -8
- package/dist/{chunk-N34BYX3E.js → chunk-4PFZPP2N.js} +54 -30
- package/dist/{chunk-JTTAS7N6.js → chunk-7543YIMQ.js} +1 -1
- package/dist/{chunk-AMSBTN6L.js → chunk-7CGIICLA.js} +3 -3
- package/dist/{chunk-LAQEZHOH.js → chunk-BOUDTDBQ.js} +1 -1
- package/dist/chunk-C6AIZOQN.js +3541 -0
- package/dist/{chunk-EE6SV6KW.js → chunk-DDK22K3I.js} +3 -3
- package/dist/{chunk-QXERSWXX.js → chunk-DQBY7FRR.js} +123 -3
- package/dist/{chunk-HQGJLZB6.js → chunk-DR7QW6C5.js} +2 -2
- package/dist/{chunk-E4AYSXMS.js → chunk-E52XEEAA.js} +3 -3
- package/dist/{chunk-J4RPT4QW.js → chunk-E6RPWJVC.js} +1 -1
- package/dist/{chunk-QMAXDSCH.js → chunk-EMZF2TPA.js} +2 -2
- package/dist/{chunk-XYVFPDNU.js → chunk-ENHAGQEP.js} +1 -1
- package/dist/{chunk-B25H4M4V.js → chunk-FCEFKWPM.js} +1 -1
- package/dist/{chunk-BQYGGX3B.js → chunk-FW7K32YT.js} +1 -1
- package/dist/{chunk-6CI65KCP.js → chunk-FXHVADV6.js} +1 -1
- package/dist/{chunk-OF3RKOPU.js → chunk-G2T2X6FZ.js} +189 -111
- package/dist/{chunk-5ON5GH3X.js → chunk-GDJ74GHW.js} +4 -3
- package/dist/{chunk-I5WWEBDG.js → chunk-HTQR7SUZ.js} +1 -1
- package/dist/{chunk-TQKKC4MB.js → chunk-HYXL3VJA.js} +5 -5
- package/dist/{chunk-AWUZ3AUD.js → chunk-IP3XINRB.js} +1 -1
- package/dist/{chunk-HPEHQUJX.js → chunk-IRJBTYJF.js} +1 -1
- package/dist/chunk-K4WKGXRC.js +18 -0
- package/dist/{chunk-CQRF7VU3.js → chunk-L5QASNBN.js} +1 -1
- package/dist/{chunk-ITBEN3QD.js → chunk-L5SYYW2P.js} +2 -2
- package/dist/{chunk-MGFVNTIB.js → chunk-LMC46FK5.js} +2 -2
- package/dist/chunk-MRF4AMKD.js +104 -0
- package/dist/{chunk-U4TDAJZE.js → chunk-OCNCK5FQ.js} +2 -2
- package/dist/{chunk-JWPSBANO.js → chunk-OEA2J2TF.js} +3 -3
- package/dist/{chunk-N32ITJ7L.js → chunk-P3FGUSFK.js} +15 -12
- package/dist/{chunk-2JXJ5SGK.js → chunk-QPR4N2D4.js} +6 -6
- package/dist/{chunk-LFUXJBYA.js → chunk-R4NWAW35.js} +7 -7
- package/dist/{chunk-C4TZBEHY.js → chunk-SIN32SJB.js} +2 -2
- package/dist/{chunk-M224DAMG.js → chunk-T3NMEYGM.js} +1 -1
- package/dist/{chunk-Q2QNAFQV.js → chunk-U4VSY56O.js} +1 -1
- package/dist/{chunk-NH75EKOP.js → chunk-VFCKXTBB.js} +6 -3
- package/dist/{chunk-V4HKT2LV.js → chunk-VIJ35BJ6.js} +10 -10
- package/dist/{chunk-5ER3PYYP.js → chunk-VLC7JS4K.js} +1 -1
- package/dist/{chunk-MR2LOG32.js → chunk-VTP4VSRP.js} +8 -8
- package/dist/{chunk-ZU54D6MI.js → chunk-XFJXFNJF.js} +3 -3
- package/dist/{chunk-YIXEH4TF.js → chunk-XXKBPGPJ.js} +2 -2
- package/dist/{chunk-JUP65S7D.js → chunk-XZM2I47O.js} +3 -3
- package/dist/{chunk-BAVM2XBR.js → chunk-YJEGT5L6.js} +209 -33
- package/dist/{chunk-CFC3EEDQ.js → chunk-ZMMSMDCA.js} +1 -1
- package/dist/{chunk-PFEKMIN5.js → chunk-ZYSS3JED.js} +1 -1
- package/dist/{chunk-ZXSNGIYS.js → chunk-ZZIXIOK2.js} +4 -4
- package/dist/{clean-ATMEGSGP.js → clean-RPB34TT6.js} +16 -16
- package/dist/cli.js +122 -54
- package/dist/{cloud-ZFGUHACY.js → cloud-QECFFPKC.js} +4 -4
- package/dist/{cloudrun-LVZ4OPPC.js → cloudrun-BML6ZG7K.js} +3 -3
- package/dist/commands/layout-audit.browser.js +178 -202
- package/dist/commands/motion-sample.browser.js +24 -71
- package/dist/commands/motion-signature.browser.js +374 -0
- package/dist/{compare-55LEUY7M.js → compare-PF6WHQ4T.js} +26 -26
- package/dist/{compiler-C32VXLE2.js → compiler-ZHVIEP26.js} +3 -3
- package/dist/{component-3EDFANIC.js → component-4ENCNLED.js} +3 -3
- package/dist/{compositions-OPU6U6GM.js → compositions-5UA33RSG.js} +11 -11
- package/dist/{contactSheet-54AJDSR5.js → contactSheet-27SRU7A4.js} +2 -2
- package/dist/{delete-PJE4P3HH.js → delete-SARS5LIK.js} +2 -2
- package/dist/{deploy-4T3RMA5G.js → deploy-MX76RZ36.js} +1 -1
- package/dist/{destroy-EYDBVHGF.js → destroy-H2TZBYHH.js} +1 -1
- package/dist/{dist-FMHQMEMX.js → dist-HRBNHR4M.js} +1 -1
- package/dist/{dist-YUIPB7OX.js → dist-OKRUIHYU.js} +2 -2
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-EIVBJJAF.js → doctor-TSAQGYP4.js} +11 -11
- package/dist/{events-NP666TF4.js → events-3HUO73ZE.js} +9 -9
- package/dist/{events-ISMT4RDW.js → events-SZ5NWYWD.js} +8 -8
- package/dist/{feedback-4OSLMKBW.js → feedback-42OTOFC6.js} +10 -10
- package/dist/{figma-Y7ZHFCOU.js → figma-RYNFCYXB.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{get-E4GBRHQK.js → get-IRHLG5OQ.js} +2 -2
- package/dist/{gpuPolicy-CA6KRFQQ.js → gpuPolicy-LRMOZXFU.js} +6 -6
- package/dist/{grade-compare-B2EHEOLR.js → grade-compare-KGJP5HV7.js} +24 -24
- package/dist/{help-ISGUWGOR.js → help-C5HS56RZ.js} +1 -1
- package/dist/{history-FNRU3TL4.js → history-DFJNDM2T.js} +16 -17
- package/dist/hyperframe-runtime.js +54 -54
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +54 -54
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-FO7VR5NC.js → info-26GTDTKN.js} +11 -11
- package/dist/{init-IGW4DTVC.js → init-RXA6NI73.js} +25 -24
- package/dist/{inspect-D4GUGDW7.js → inspect-2S5GAZYC.js} +25 -25
- package/dist/{installer-NBEN3ZIP.js → installer-DGYYDGWJ.js} +4 -4
- package/dist/{keyframes-CXZLEC3R.js → keyframes-WBMAX7XZ.js} +12 -12
- package/dist/{lambda-BFHJMMCG.js → lambda-OQBFCEFA.js} +6 -6
- package/dist/{layout-XEDEOLAH.js → layout-ZRU7PXBG.js} +25 -25
- package/dist/{lint-LLGMCVZ5.js → lint-ATVNZ6FG.js} +12 -12
- package/dist/{lintProject-X7L7EZWZ.js → lintProject-TOLC6HDS.js} +1 -1
- package/dist/{list-LUCWSLK6.js → list-E2GHYPCQ.js} +2 -2
- package/dist/{login-SMWYXJWJ.js → login-LOC4KA7H.js} +4 -4
- package/dist/{manager-NEVLEZK3.js → manager-CT3D67CG.js} +1 -1
- package/dist/{media-treatment-OYTNU6PX.js → media-treatment-L43MVH2V.js} +15 -14
- package/dist/{models-RILNQV3Z.js → models-JF5OOZ5A.js} +7 -7
- package/dist/{motionShot-5F4DCMWC.js → motionShot-BJ5CLYMN.js} +12 -12
- package/dist/{normalize-audio-4LHYKFON.js → normalize-audio-K33FKGAF.js} +11 -11
- package/dist/{pipeline-5UY45ELH.js → pipeline-IWPF5ZMK.js} +6 -6
- package/dist/{play-D4AHRZQD.js → play-PHHXYCQI.js} +20 -20
- package/dist/{preflight-3V5IHGWQ.js → preflight-2GH2Z4GZ.js} +8 -8
- package/dist/{present-VUH7PLOO.js → present-KBFK2YVB.js} +16 -16
- package/dist/{preview-NCFC65VR.js → preview-T3E5TFDC.js} +159 -87
- package/dist/{producer-7JGAPEAF.js → producer-SL66UNEP.js} +1 -1
- package/dist/{projectConfig-JHEWPAA5.js → projectConfig-7AKXZNNR.js} +6 -6
- package/dist/{publication-7XA2H7UB.js → publication-B2OERUY7.js} +2 -2
- package/dist/{publish-257VZMWI.js → publish-ZGKT7KED.js} +8 -8
- package/dist/{remove-background-EV6XVADN.js → remove-background-4LRTT6YL.js} +7 -7
- package/dist/{render-DHCMWKFV.js → render-H6RSJF2V.js} +12 -12
- package/dist/{render-DKXGFQVW.js → render-OKNPNMFS.js} +23 -23
- package/dist/{render-4C3YKVZI.js → render-TGCDBKMP.js} +3 -3
- package/dist/{render-batch-AFDBPDMM.js → render-batch-WRQFW4UC.js} +3 -3
- package/dist/{renderCancellation-VIZELWDD.js → renderCancellation-BFCQYGVV.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-S72XBTEQ.js → resolver-37UOGAMT.js} +4 -4
- package/dist/{screenshotCapture-FA5HPN7Q.js → screenshotCapture-ECBTLCU6.js} +3 -3
- package/dist/{sherpa-BAADWCHB.js → sherpa-SDVKYXCX.js} +7 -7
- package/dist/skills/hyperframes/references/frame-worker-core.md +2 -2
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +2 -2
- package/dist/skills/media-use/audio/references/bgm.md +1 -1
- package/dist/skills/media-use/audio/references/tts.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +19 -5
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +69 -1
- package/dist/{skills-2BGFBUR6.js → skills-O25ZTFTO.js} +40 -14
- package/dist/{skillsUpdateCheck-5LYFYHUF.js → skillsUpdateCheck-Y2V4OMMT.js} +3 -3
- package/dist/{snapshot-Z37DZL4T.js → snapshot-KGM2HZIC.js} +52 -31
- package/dist/{src-GD7RGV5U.js → src-PJJ6NISA.js} +5 -5
- package/dist/{src-GRC63B6L.js → src-PLWCT745.js} +7 -7
- package/dist/{staticProjectServer-SFINO3DE.js → staticProjectServer-OCE7GU5S.js} +14 -14
- package/dist/{status-LXQL3L3H.js → status-LENRPQS5.js} +6 -6
- package/dist/studio/assets/{hyperframes-player-DvJeHBHi.js → hyperframes-player-DzJbtQVO.js} +1 -1
- package/dist/studio/assets/{index-SFktf7O1.js → index-DRhF3v4Z.js} +194 -194
- package/dist/studio/assets/{index-C7apTvpr.css → index-DbfKVTId.css} +1 -1
- package/dist/studio/assets/{index--G6c4Q_x.js → index-DgwDQK5G.js} +1 -1
- package/dist/studio/assets/{index-Bt4vDkfw.js → index-n5FUn1xv.js} +1 -1
- package/dist/studio/{chunk-PQFEBX32.js → chunk-BIUXP3PG.js} +2 -2
- package/dist/studio/{chunk-6LUNLTHR.js → chunk-K47E2ZJA.js} +13 -8
- package/dist/studio/chunk-K47E2ZJA.js.map +1 -0
- package/dist/studio/{chunk-QUXZVHOJ.js → chunk-VWT7STY3.js} +2 -2
- package/dist/studio/{domEditingLayers-JQPQGGT7.js → domEditingLayers-V67MS4WP.js} +3 -3
- package/dist/studio/index.d.ts +80 -46
- package/dist/studio/index.html +2 -2
- package/dist/studio/index.js +7294 -6844
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +2 -2
- package/dist/studio/styles.css +1 -1
- package/dist/{studio-api-WRSCXPWS.js → studio-api-IEQ5BIHT.js} +8 -8
- package/dist/{studioSelectionClient-A6JCWRRW.js → studioSelectionClient-IUUPKUHZ.js} +1 -2
- package/dist/{studioServer-HTLRGC5G.js → studioServer-LXJ34MGN.js} +43 -43
- package/dist/{system-EEWYEHYX.js → system-4KRSV2B7.js} +6 -6
- package/dist/{telemetry-NLEEMXO2.js → telemetry-R3BPD6VK.js} +9 -9
- package/dist/{timeline-7C4KM3KD.js → timeline-N5UKVS2S.js} +15 -15
- package/dist/{tokens-QQLJXW4G.js → tokens-774UBF2R.js} +2 -2
- package/dist/{transcribe-GCKJF5A6.js → transcribe-3UXXEDXX.js} +7 -7
- package/dist/{transcribe-TGR5CTA7.js → transcribe-IP74EZLM.js} +12 -12
- package/dist/{tts-DO2W6NLB.js → tts-P3LIPIL5.js} +13 -6
- package/dist/{updateCheck-73JM5QR3.js → updateCheck-EXHNAPKI.js} +2 -2
- package/dist/{upgrade-V6E5P53C.js → upgrade-A4M3O2F2.js} +2 -2
- package/dist/{urlDownloader-NYXPEBUN.js → urlDownloader-4KNER64L.js} +5 -5
- package/dist/{validate-INP7WJAK.js → validate-DV75GM6J.js} +15 -15
- package/dist/{video-KWQ5TSVD.js → video-GINAMW5I.js} +17 -9
- package/package.json +1 -1
- package/dist/chunk-5GQAJ43Q.js +0 -31
- package/dist/chunk-VWA4HODG.js +0 -129
- package/dist/chunk-YLVI7VL5.js +0 -3541
- package/dist/studio/chunk-6LUNLTHR.js.map +0 -1
- /package/dist/studio/{chunk-PQFEBX32.js.map → chunk-BIUXP3PG.js.map} +0 -0
- /package/dist/studio/{chunk-QUXZVHOJ.js.map → chunk-VWT7STY3.js.map} +0 -0
- /package/dist/studio/{domEditingLayers-JQPQGGT7.js.map → domEditingLayers-V67MS4WP.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -8,6 +8,9 @@ var __dirname = __hf_dirname(__filename);
|
|
|
8
8
|
import {
|
|
9
9
|
registerRunningCli
|
|
10
10
|
} from "./chunk-NXMYHJAL.js";
|
|
11
|
+
import {
|
|
12
|
+
isTextFile
|
|
13
|
+
} from "./chunk-K4WKGXRC.js";
|
|
11
14
|
import {
|
|
12
15
|
isRenderSucceeded
|
|
13
16
|
} from "./chunk-L3YOGIPG.js";
|
|
@@ -31,7 +34,7 @@ import {
|
|
|
31
34
|
} from "./chunk-ISN5GRYI.js";
|
|
32
35
|
import {
|
|
33
36
|
VERSION
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3XPZJUKM.js";
|
|
35
38
|
import "./chunk-M2WBOQ2Q.js";
|
|
36
39
|
|
|
37
40
|
// src/cli.ts
|
|
@@ -39,6 +42,66 @@ import { dirname, join, resolve } from "path";
|
|
|
39
42
|
import { fileURLToPath } from "url";
|
|
40
43
|
import { existsSync } from "fs";
|
|
41
44
|
|
|
45
|
+
// src/utils/reject-extra-positionals.ts
|
|
46
|
+
var ACCEPTS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set([
|
|
47
|
+
"compare",
|
|
48
|
+
"figma asset",
|
|
49
|
+
"skills update",
|
|
50
|
+
"timeline set"
|
|
51
|
+
]);
|
|
52
|
+
var JOINS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set(["catalog", "tts"]);
|
|
53
|
+
var EXTRA_POSITIONAL_HINTS = {
|
|
54
|
+
add: "Run add once per item, or pass a single tag to install every item tagged with it."
|
|
55
|
+
};
|
|
56
|
+
function wantsJson(value) {
|
|
57
|
+
return value === true || typeof value === "string" && value !== "false" && value !== "0";
|
|
58
|
+
}
|
|
59
|
+
function declaredArgs(cmd) {
|
|
60
|
+
const raw = cmd.args;
|
|
61
|
+
return raw && typeof raw === "object" ? raw : {};
|
|
62
|
+
}
|
|
63
|
+
function usageLine(path, args) {
|
|
64
|
+
const parts = ["hyperframes", path];
|
|
65
|
+
let hasOptions = false;
|
|
66
|
+
for (const [name, def] of Object.entries(args)) {
|
|
67
|
+
if (def.type !== "positional") {
|
|
68
|
+
hasOptions = true;
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
const optional = def.required === false || def.default !== void 0;
|
|
72
|
+
parts.push(optional ? `[${name.toUpperCase()}]` : `<${name.toUpperCase()}>`);
|
|
73
|
+
}
|
|
74
|
+
if (hasOptions) parts.push("[OPTIONS]");
|
|
75
|
+
return parts.join(" ");
|
|
76
|
+
}
|
|
77
|
+
function resolveExtraPositionals(cmd, path, parsed) {
|
|
78
|
+
if (ACCEPTS_EXTRA_POSITIONALS.has(path)) return;
|
|
79
|
+
const args = declaredArgs(cmd);
|
|
80
|
+
const positionals = Object.entries(args).filter(([, def]) => def.type === "positional");
|
|
81
|
+
const given = (Array.isArray(parsed?._) ? parsed._ : []).map(String);
|
|
82
|
+
const extra = given.slice(positionals.length);
|
|
83
|
+
if (extra.length === 0) return;
|
|
84
|
+
const last = positionals.at(-1)?.[0];
|
|
85
|
+
const words = given.slice(positionals.length - 1);
|
|
86
|
+
const ttsFile = path === "tts" && isTextFile(words[0]);
|
|
87
|
+
if (parsed && last && JOINS_EXTRA_POSITIONALS.has(path) && !ttsFile) {
|
|
88
|
+
parsed[last] = words.join(" ");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const plural = extra.length === 1 ? "" : "s";
|
|
92
|
+
const message = `Unexpected extra argument${plural} for hyperframes ${path}: ${extra.join(", ")}
|
|
93
|
+
Usage: ${usageLine(path, args)}` + (EXTRA_POSITIONAL_HINTS[path] ? `
|
|
94
|
+
${EXTRA_POSITIONAL_HINTS[path]}` : "");
|
|
95
|
+
if (wantsJson(parsed?.json)) console.log(JSON.stringify({ ok: false, error: message }));
|
|
96
|
+
else console.error(message);
|
|
97
|
+
throw new CliUsageError(
|
|
98
|
+
`${extra.length} unexpected extra argument${plural} for hyperframes ${path}`,
|
|
99
|
+
{
|
|
100
|
+
presented: true
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
42
105
|
// src/utils/reject-unknown-flags.ts
|
|
43
106
|
var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v", "json"]);
|
|
44
107
|
function nameVariants(name) {
|
|
@@ -85,9 +148,13 @@ function assertKnownFlags(cmd, rawArgs) {
|
|
|
85
148
|
|
|
86
149
|
// src/utils/command-failure-tracking.ts
|
|
87
150
|
function trackCommandFailures(load) {
|
|
88
|
-
return () => load().then((cmd) => wrapCommand(cmd));
|
|
151
|
+
return () => load().then((cmd) => wrapCommand(cmd, commandName(cmd)));
|
|
152
|
+
}
|
|
153
|
+
function commandName(cmd) {
|
|
154
|
+
const name = cmd.meta?.name;
|
|
155
|
+
return typeof name === "string" ? name : "";
|
|
89
156
|
}
|
|
90
|
-
function wrapCommand(cmd) {
|
|
157
|
+
function wrapCommand(cmd, path) {
|
|
91
158
|
const run = cmd.run;
|
|
92
159
|
if (typeof run !== "function" && !cmd.subCommands) return cmd;
|
|
93
160
|
const wrapped = { ...cmd };
|
|
@@ -97,6 +164,7 @@ function wrapCommand(cmd) {
|
|
|
97
164
|
const firstPositional = rawArgs.find((tok) => tok && !tok.startsWith("-"));
|
|
98
165
|
const delegatesToSub = cmd.subCommands != null && firstPositional != null && Object.prototype.hasOwnProperty.call(cmd.subCommands, firstPositional);
|
|
99
166
|
if (!delegatesToSub) assertKnownFlags(cmd, rawArgs);
|
|
167
|
+
if (!cmd.subCommands) resolveExtraPositionals(cmd, path, ctx?.args);
|
|
100
168
|
return await run(ctx);
|
|
101
169
|
};
|
|
102
170
|
}
|
|
@@ -104,7 +172,7 @@ function wrapCommand(cmd) {
|
|
|
104
172
|
const wrappedSubs = {};
|
|
105
173
|
for (const [name, sub] of Object.entries(cmd.subCommands)) {
|
|
106
174
|
wrappedSubs[name] = () => Promise.resolve(typeof sub === "function" ? sub() : sub).then(
|
|
107
|
-
(c) => wrapCommand(c)
|
|
175
|
+
(c) => wrapCommand(c, `${path} ${name}`)
|
|
108
176
|
);
|
|
109
177
|
}
|
|
110
178
|
wrapped.subCommands = wrappedSubs;
|
|
@@ -113,7 +181,7 @@ function wrapCommand(cmd) {
|
|
|
113
181
|
}
|
|
114
182
|
async function reportCommandFailure(command2, err) {
|
|
115
183
|
try {
|
|
116
|
-
const { trackCommandFailure } = await import("./events-
|
|
184
|
+
const { trackCommandFailure } = await import("./events-3HUO73ZE.js");
|
|
117
185
|
trackCommandFailure(command2, err);
|
|
118
186
|
} catch {
|
|
119
187
|
}
|
|
@@ -203,51 +271,51 @@ async function assertStudioWorkspaceBuilt() {
|
|
|
203
271
|
});
|
|
204
272
|
}
|
|
205
273
|
var commandLoaders = {
|
|
206
|
-
init: () => import("./init-
|
|
207
|
-
add: () => import("./add-
|
|
208
|
-
catalog: () => import("./catalog-
|
|
274
|
+
init: () => import("./init-RXA6NI73.js").then((m) => m.default),
|
|
275
|
+
add: () => import("./add-ILIGSLV4.js").then((m) => m.default),
|
|
276
|
+
catalog: () => import("./catalog-3QDMTDK2.js").then((m) => m.default),
|
|
209
277
|
"media-use": () => import("./media-use-4XXGABIL.js").then((m) => m.default),
|
|
210
|
-
play: () => import("./play-
|
|
211
|
-
present: () => import("./present-
|
|
212
|
-
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-
|
|
213
|
-
publish: () => import("./publish-
|
|
214
|
-
render: () => import("./render-
|
|
215
|
-
lint: () => import("./lint-
|
|
216
|
-
check: () => import("./check-
|
|
217
|
-
beats: () => import("./beats-
|
|
218
|
-
"normalize-audio": () => import("./normalize-audio-
|
|
219
|
-
inspect: () => import("./inspect-
|
|
220
|
-
keyframes: () => import("./keyframes-
|
|
221
|
-
layout: () => import("./layout-
|
|
222
|
-
info: () => import("./info-
|
|
223
|
-
compositions: () => import("./compositions-
|
|
224
|
-
timeline: () => import("./timeline-
|
|
225
|
-
history: () => import("./history-
|
|
226
|
-
benchmark: () => import("./benchmark-
|
|
227
|
-
browser: () => import("./browser-
|
|
228
|
-
"remove-background": () => import("./remove-background-
|
|
229
|
-
transcribe: () => import("./transcribe-
|
|
230
|
-
models: () => import("./models-
|
|
231
|
-
tts: () => import("./tts-
|
|
278
|
+
play: () => import("./play-PHHXYCQI.js").then((m) => m.default),
|
|
279
|
+
present: () => import("./present-KBFK2YVB.js").then((m) => m.default),
|
|
280
|
+
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-T3E5TFDC.js").then((m) => m.default)),
|
|
281
|
+
publish: () => import("./publish-ZGKT7KED.js").then((m) => m.default),
|
|
282
|
+
render: () => import("./render-OKNPNMFS.js").then((m) => m.default),
|
|
283
|
+
lint: () => import("./lint-ATVNZ6FG.js").then((m) => m.default),
|
|
284
|
+
check: () => import("./check-O3RR4NWI.js").then((m) => m.default),
|
|
285
|
+
beats: () => import("./beats-YEYVQMX6.js").then((m) => m.default),
|
|
286
|
+
"normalize-audio": () => import("./normalize-audio-K33FKGAF.js").then((m) => m.default),
|
|
287
|
+
inspect: () => import("./inspect-2S5GAZYC.js").then((m) => m.default),
|
|
288
|
+
keyframes: () => import("./keyframes-WBMAX7XZ.js").then((m) => m.default),
|
|
289
|
+
layout: () => import("./layout-ZRU7PXBG.js").then((m) => m.default),
|
|
290
|
+
info: () => import("./info-26GTDTKN.js").then((m) => m.default),
|
|
291
|
+
compositions: () => import("./compositions-5UA33RSG.js").then((m) => m.default),
|
|
292
|
+
timeline: () => import("./timeline-N5UKVS2S.js").then((m) => m.default),
|
|
293
|
+
history: () => import("./history-DFJNDM2T.js").then((m) => m.default),
|
|
294
|
+
benchmark: () => import("./benchmark-J2V46VWI.js").then((m) => m.default),
|
|
295
|
+
browser: () => import("./browser-XBWASLD2.js").then((m) => m.default),
|
|
296
|
+
"remove-background": () => import("./remove-background-4LRTT6YL.js").then((m) => m.default),
|
|
297
|
+
transcribe: () => import("./transcribe-IP74EZLM.js").then((m) => m.default),
|
|
298
|
+
models: () => import("./models-JF5OOZ5A.js").then((m) => m.default),
|
|
299
|
+
tts: () => import("./tts-P3LIPIL5.js").then((m) => m.default),
|
|
232
300
|
docs: () => import("./docs-QAPJEGLS.js").then((m) => m.default),
|
|
233
|
-
doctor: () => import("./doctor-
|
|
234
|
-
clean: () => import("./clean-
|
|
235
|
-
upgrade: () => import("./upgrade-
|
|
236
|
-
skills: () => import("./skills-
|
|
237
|
-
feedback: () => import("./feedback-
|
|
301
|
+
doctor: () => import("./doctor-TSAQGYP4.js").then((m) => m.default),
|
|
302
|
+
clean: () => import("./clean-RPB34TT6.js").then((m) => m.default),
|
|
303
|
+
upgrade: () => import("./upgrade-A4M3O2F2.js").then((m) => m.default),
|
|
304
|
+
skills: () => import("./skills-O25ZTFTO.js").then((m) => m.default),
|
|
305
|
+
feedback: () => import("./feedback-42OTOFC6.js").then((m) => m.default),
|
|
238
306
|
telemetry: () => import("./telemetry-2YC4SGQU.js").then((m) => m.default),
|
|
239
|
-
events: () => import("./events-
|
|
240
|
-
validate: () => import("./validate-
|
|
241
|
-
snapshot: () => import("./snapshot-
|
|
242
|
-
"media-treatment": () => import("./media-treatment-
|
|
243
|
-
"grade-compare": () => import("./grade-compare-
|
|
244
|
-
compare: () => import("./compare-
|
|
245
|
-
capture: () => import("./capture-
|
|
246
|
-
lambda: () => import("./lambda-
|
|
247
|
-
cloudrun: () => import("./cloudrun-
|
|
248
|
-
cloud: () => import("./cloud-
|
|
249
|
-
auth: () => import("./auth-
|
|
250
|
-
figma: () => import("./figma-
|
|
307
|
+
events: () => import("./events-SZ5NWYWD.js").then((m) => m.default),
|
|
308
|
+
validate: () => import("./validate-DV75GM6J.js").then((m) => m.default),
|
|
309
|
+
snapshot: () => import("./snapshot-KGM2HZIC.js").then((m) => m.default),
|
|
310
|
+
"media-treatment": () => import("./media-treatment-L43MVH2V.js").then((m) => m.mediaTreatmentCommand),
|
|
311
|
+
"grade-compare": () => import("./grade-compare-KGJP5HV7.js").then((m) => m.default),
|
|
312
|
+
compare: () => import("./compare-PF6WHQ4T.js").then((m) => m.default),
|
|
313
|
+
capture: () => import("./capture-GLHK4ST7.js").then((m) => m.default),
|
|
314
|
+
lambda: () => import("./lambda-OQBFCEFA.js").then((m) => m.default),
|
|
315
|
+
cloudrun: () => import("./cloudrun-BML6ZG7K.js").then((m) => m.default),
|
|
316
|
+
cloud: () => import("./cloud-QECFFPKC.js").then((m) => m.default),
|
|
317
|
+
auth: () => import("./auth-5JDDEX2M.js").then((m) => m.default),
|
|
318
|
+
figma: () => import("./figma-RYNFCYXB.js").then((m) => m.default)
|
|
251
319
|
};
|
|
252
320
|
var subCommands = Object.fromEntries(
|
|
253
321
|
Object.entries(commandLoaders).map(([name, load]) => [name, trackCommandFailures(load)])
|
|
@@ -271,7 +339,7 @@ var _printStalePinNotice;
|
|
|
271
339
|
var _printSkillsUpdateNotice;
|
|
272
340
|
var telemetryReady = Promise.resolve();
|
|
273
341
|
if (!isHelp && command !== "telemetry" && command !== "events" && command !== "unknown") {
|
|
274
|
-
telemetryReady = import("./telemetry-
|
|
342
|
+
telemetryReady = import("./telemetry-R3BPD6VK.js").then((mod) => {
|
|
275
343
|
_flushSync = mod.flushSync;
|
|
276
344
|
_trackCliError = mod.trackCliError;
|
|
277
345
|
_trackCommandResult = mod.trackCommandResult;
|
|
@@ -281,23 +349,23 @@ if (!isHelp && command !== "telemetry" && command !== "events" && command !== "u
|
|
|
281
349
|
});
|
|
282
350
|
}
|
|
283
351
|
if (!isHelp && !hasJsonFlag && command !== "upgrade" && command !== "events" && command !== "telemetry" && command !== "skills") {
|
|
284
|
-
import("./autoUpdate-
|
|
352
|
+
import("./autoUpdate-JXVZVJCV.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
|
|
285
353
|
});
|
|
286
|
-
import("./updateCheck-
|
|
354
|
+
import("./updateCheck-EXHNAPKI.js").then(async (mod) => {
|
|
287
355
|
_printUpdateNotice = mod.printUpdateNotice;
|
|
288
356
|
_printStalePinNotice = mod.printStalePinNotice;
|
|
289
357
|
const result = mod.cachedUpdateCheck();
|
|
290
358
|
if (result.updateAvailable) {
|
|
291
|
-
const auto = await import("./autoUpdate-
|
|
359
|
+
const auto = await import("./autoUpdate-JXVZVJCV.js").catch(() => null);
|
|
292
360
|
auto?.scheduleBackgroundInstall(result.latest, result.current);
|
|
293
361
|
}
|
|
294
362
|
}).catch(() => {
|
|
295
363
|
});
|
|
296
|
-
import("./skillsUpdateCheck-
|
|
364
|
+
import("./skillsUpdateCheck-Y2V4OMMT.js").then((mod) => {
|
|
297
365
|
_printSkillsUpdateNotice = mod.printSkillsUpdateNotice;
|
|
298
366
|
}).catch(() => {
|
|
299
367
|
});
|
|
300
|
-
import("./backgroundChecks-
|
|
368
|
+
import("./backgroundChecks-BBWGY3V6.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
|
|
301
369
|
});
|
|
302
370
|
}
|
|
303
371
|
var commandStart = Date.now();
|
|
@@ -406,7 +474,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
406
474
|
emitCliErrorEvent("unhandled_rejection", error);
|
|
407
475
|
});
|
|
408
476
|
async function showUsage(cmd, parent) {
|
|
409
|
-
const { showUsage: impl } = await import("./help-
|
|
477
|
+
const { showUsage: impl } = await import("./help-C5HS56RZ.js");
|
|
410
478
|
return impl(cmd, parent);
|
|
411
479
|
}
|
|
412
480
|
async function showRequestedUsage() {
|
|
@@ -55,10 +55,10 @@ ${c.bold("AUTH:")}
|
|
|
55
55
|
var cloud_default = defineCommand({
|
|
56
56
|
meta: { name: "cloud", description: "Render HyperFrames compositions on the HeyGen cloud" },
|
|
57
57
|
subCommands: {
|
|
58
|
-
render: () => import("./render-
|
|
59
|
-
list: () => import("./list-
|
|
60
|
-
get: () => import("./get-
|
|
61
|
-
delete: () => import("./delete-
|
|
58
|
+
render: () => import("./render-H6RSJF2V.js").then((m) => m.default),
|
|
59
|
+
list: () => import("./list-E2GHYPCQ.js").then((m) => m.default),
|
|
60
|
+
get: () => import("./get-IRHLG5OQ.js").then((m) => m.default),
|
|
61
|
+
delete: () => import("./delete-SARS5LIK.js").then((m) => m.default)
|
|
62
62
|
},
|
|
63
63
|
async run({ args }) {
|
|
64
64
|
if (!args._?.[0]) console.log(HELP);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
reportVariableIssues,
|
|
12
12
|
resolveVariablesArg,
|
|
13
13
|
validateVariablesAgainstProject
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZMMSMDCA.js";
|
|
15
15
|
import {
|
|
16
16
|
readAllowedCompositionFpsFromDir
|
|
17
17
|
} from "./chunk-YEIFI443.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
failCommand
|
|
28
28
|
} from "./chunk-PBN6GBJE.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-FCEFKWPM.js";
|
|
30
30
|
import "./chunk-UUDQD62L.js";
|
|
31
31
|
import "./chunk-DPVXBVLL.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-C6AIZOQN.js";
|
|
33
33
|
import "./chunk-VC76R6W2.js";
|
|
34
34
|
import "./chunk-OFQWTKPW.js";
|
|
35
35
|
import "./chunk-TQFG7HTI.js";
|