hyperframes 0.8.119 → 0.8.120
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-LVDM5BBO.js → add-SYG3UXKX.js} +5 -5
- package/dist/{asset-PA7XD3CI.js → asset-P6K7U3L6.js} +2 -2
- package/dist/{auth-SQIHPP3J.js → auth-TCX6TGIH.js} +4 -4
- package/dist/{autoUpdate-JCG27FBW.js → autoUpdate-YGT7MYDU.js} +2 -2
- package/dist/{backgroundChecks-U7JCBAWI.js → backgroundChecks-CCDNX6P2.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-6BSMZTE6.js → beats-HNU6TRID.js} +6 -6
- package/dist/{benchmark-WOZCECBF.js → benchmark-UEMJYRLY.js} +6 -6
- package/dist/{browser-KNPH25NJ.js → browser-CZJK4WQR.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-I4RJWHKR.js → bundleWithLocalizedFonts-ZLXYM43M.js} +1 -1
- package/dist/{catalog-OXCKYFHY.js → catalog-G3C7EIL3.js} +5 -5
- package/dist/{check-N4QDDW6N.js → check-KTYPDNJD.js} +17 -17
- package/dist/{checkBrowser-D3L4OXTQ.js → checkBrowser-MJAN5LSM.js} +14 -14
- package/dist/{chunk-KNXXZ73S.js → chunk-4IWDF5OL.js} +2 -2
- package/dist/{chunk-Y44PIZOH.js → chunk-6A332WKF.js} +5 -5
- package/dist/{chunk-HNOJAFT2.js → chunk-6ZX3YCCU.js} +19 -19
- package/dist/{chunk-FRIRP3DN.js → chunk-7N3IODU7.js} +1 -1
- package/dist/{chunk-2MMAA5I3.js → chunk-A45JNRYR.js} +1 -1
- package/dist/{chunk-6Q3Q7HGA.js → chunk-B3MQEZBK.js} +1 -1
- package/dist/{chunk-EEXM24SY.js → chunk-CK2YS3E3.js} +2 -2
- package/dist/{chunk-523Q6JDM.js → chunk-DL347PC3.js} +2 -2
- package/dist/{chunk-P6UJ22SS.js → chunk-EFC3DCJL.js} +1 -1
- package/dist/{chunk-DNXD7TOA.js → chunk-I465DBM6.js} +27 -12
- package/dist/chunk-IGLEPPTN.js +24 -0
- package/dist/{chunk-CDTPNYO3.js → chunk-IJ2O4BLJ.js} +1 -1
- package/dist/{chunk-MVWXSRY6.js → chunk-JH556Q42.js} +69 -21
- package/dist/{chunk-3NXDJSD5.js → chunk-LIPKCOYU.js} +2 -2
- package/dist/{chunk-M6LKSPER.js → chunk-LJXFGHPO.js} +1 -1
- package/dist/{chunk-ZTU5PYQJ.js → chunk-LP3KFEVQ.js} +30 -17
- package/dist/{chunk-MYSYOQPV.js → chunk-NP5P2A2K.js} +2 -2
- package/dist/{chunk-SUIF4D5H.js → chunk-PCL5KCT7.js} +1 -1
- package/dist/{chunk-7UXUVWOY.js → chunk-QWD3NM22.js} +1 -1
- package/dist/chunk-SHB5VDMH.js +51 -0
- package/dist/{chunk-AMSNSTLK.js → chunk-SVI32JAG.js} +1 -1
- package/dist/{chunk-BZKDN6BU.js → chunk-UDYR6TIQ.js} +2 -2
- package/dist/{chunk-2FJPEXII.js → chunk-UOKW7DPN.js} +1 -1
- package/dist/{chunk-RMDKZTSI.js → chunk-WMCV6DHA.js} +1 -1
- package/dist/{chunk-RLYTIMTS.js → chunk-Y6W4DVPS.js} +4 -37
- package/dist/{chunk-KK7VGMEF.js → chunk-YV5INYEM.js} +6 -6
- package/dist/{chunk-RZAXPDIT.js → chunk-ZTZ7NCJT.js} +1 -1
- package/dist/{clean-VWT7OZEN.js → clean-AGTDSSLO.js} +9 -9
- package/dist/cli.js +50 -68
- package/dist/{cloud-BB7SW4DX.js → cloud-TIKQ43CO.js} +4 -4
- package/dist/{compare-3Z4BPHIZ.js → compare-2B7W2HXM.js} +13 -13
- package/dist/{component-6H2NIATV.js → component-ZQIN33DC.js} +3 -3
- package/dist/{compositions-I357YMW6.js → compositions-D6JAIKFJ.js} +5 -5
- package/dist/{delete-YJQPGNJJ.js → delete-UWZ6BBQI.js} +6 -5
- package/dist/{deterministicFonts-O7BTFDJU.js → deterministicFonts-ITMUXWD2.js} +2 -2
- package/dist/{doctor-NP34O2SX.js → doctor-LHUS7OQG.js} +3 -3
- package/dist/dotEnv-AI4SYVTX.js +39 -0
- package/dist/{events-NV6CNGUD.js → events-CNSBSROB.js} +2 -2
- package/dist/{events-T4KFU5HZ.js → events-EA2PNDU6.js} +3 -3
- package/dist/{feedback-DKHIGKC4.js → feedback-RAOT4ZX6.js} +36 -12
- package/dist/{figma-ALVXXDIQ.js → figma-HHALPQPX.js} +3 -3
- package/dist/fontLocalizeCli.js +4 -4
- package/dist/{get-CKKP6UBL.js → get-2VHYWD5M.js} +6 -5
- package/dist/{grade-compare-7POS3AY6.js → grade-compare-ZKYGIKRN.js} +9 -9
- package/dist/{help-KGRXGCVJ.js → help-YXXIXAVR.js} +1 -1
- package/dist/{history-JLXPVI2L.js → history-IFZM4MIB.js} +10 -10
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-QA5UAYFS.js → info-6TZU6FRJ.js} +5 -5
- package/dist/{init-7SM4AD76.js → init-5DPNU4VR.js} +12 -12
- package/dist/{inspect-ANJ2CRLP.js → inspect-LASYMXFA.js} +11 -11
- package/dist/{keyframes-H2ZUI3DC.js → keyframes-BS6D4QMB.js} +6 -6
- package/dist/{layout-EDDKQ67V.js → layout-HMJ5I362.js} +11 -11
- package/dist/{lint-SVXOETDR.js → lint-E2DTFSA5.js} +8 -8
- package/dist/{list-YRBK24UM.js → list-C3CXWSEA.js} +6 -5
- package/dist/{login-VE7VGBOA.js → login-W276LNGF.js} +6 -6
- package/dist/{logout-HJQT42RL.js → logout-Q654A3SI.js} +2 -2
- package/dist/{media-treatment-ZQOBGLJQ.js → media-treatment-XECAXDZD.js} +8 -8
- package/dist/{models-GVMX5TFG.js → models-6YWOFGV2.js} +4 -4
- package/dist/{motionShot-2Z6LRHEV.js → motionShot-TNMJ2TNL.js} +1 -1
- package/dist/{normalize-audio-QHMZWNNH.js → normalize-audio-JTK53ZDZ.js} +7 -7
- package/dist/{play-EYXIIZHG.js → play-PAJQYG2D.js} +17 -17
- package/dist/{present-YQ2BRUNH.js → present-TMFT5KD6.js} +13 -13
- package/dist/{preview-QMAPLY2S.js → preview-4HHLUOFB.js} +16 -16
- package/dist/{producer-FS442D4D.js → producer-6WPA3U6C.js} +1 -1
- package/dist/{publish-PCT6JM4B.js → publish-6RRDDVPK.js} +32 -26
- package/dist/{refresh-IK6LUV5Z.js → refresh-K24ETHMA.js} +2 -2
- package/dist/{render-6QXPYNLY.js → render-N4HBJR46.js} +14 -14
- package/dist/{render-HYA6UBZD.js → render-WFBNU2KD.js} +14 -13
- package/dist/{sherpa-COBFACPG.js → sherpa-GCD3QEO6.js} +4 -4
- package/dist/{skills-CT7TY7SZ.js → skills-D4HKC2WV.js} +5 -5
- package/dist/{skillsUpdateCheck-AWHTVNPB.js → skillsUpdateCheck-IPJRWH4Z.js} +3 -3
- package/dist/{snapshot-C4PYM7G5.js → snapshot-A7BIVQUX.js} +15 -15
- package/dist/{src-GGDAYPPK.js → src-POL5BSEV.js} +3 -3
- package/dist/{staticProjectServer-RBGIJQMY.js → staticProjectServer-BM2TZYJY.js} +4 -4
- package/dist/{status-FCLZF4FT.js → status-I7R2ATRZ.js} +2 -2
- package/dist/studio/assets/{hyperframes-player-7Icl2uVN.js → hyperframes-player-i4gqkhjz.js} +1 -1
- package/dist/studio/assets/{index-Dc8FEIEU.js → index-C7LHDM18.js} +1 -1
- package/dist/studio/assets/{index-DOO2cYhl.js → index-Ce3Lr-Gt.js} +174 -174
- package/dist/studio/assets/{index-7YcUqkoh.js → index-uWOhRqxe.js} +1 -1
- package/dist/studio/index.d.ts +5 -1
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js +72 -87
- package/dist/studio/index.js.map +1 -1
- package/dist/{studio-api-Y67F5TPC.js → studio-api-GWTH7IPD.js} +2 -2
- package/dist/{studioServer-SCAZGVUQ.js → studioServer-KB3KCVSZ.js} +10 -10
- package/dist/{telemetry-JJJQWUA3.js → telemetry-5WHZVQFM.js} +3 -3
- package/dist/{timeline-BEWRG3QA.js → timeline-KM5YF4WX.js} +10 -10
- package/dist/{tokens-GAZXBXWG.js → tokens-VUPKFWHG.js} +2 -2
- package/dist/{transcribe-ZCFEAIAW.js → transcribe-4IJPHM33.js} +5 -5
- package/dist/{transcribe-UJUYNNEH.js → transcribe-E7RAUZ2W.js} +2 -2
- package/dist/{updateCheck-H5DKTWUO.js → updateCheck-JY2WCSMC.js} +2 -2
- package/dist/{upgrade-RUBSQNRS.js → upgrade-QWBPPGTJ.js} +2 -2
- package/dist/{validate-5R3OJEGF.js → validate-5LJ6TDCF.js} +6 -6
- package/package.json +1 -1
- package/dist/{capture-PZQOA465.js → capture-6NN3YJBF.js} +0 -0
- package/dist/{chunk-AIYKVE4Y.js → chunk-2GKO3X7F.js} +3 -3
- package/dist/{chunk-KFKEMNSW.js → chunk-XUNOKLEJ.js} +3 -3
- /package/dist/{lambda-HZ2ZKLVH.js → lambda-AHKA33RE.js} +0 -0
|
@@ -6,27 +6,27 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CK2YS3E3.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
12
|
import {
|
|
13
13
|
loadProducer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A45JNRYR.js";
|
|
15
|
+
import {
|
|
16
|
+
formatBytes
|
|
17
|
+
} from "./chunk-IHFUKJOR.js";
|
|
15
18
|
import {
|
|
16
19
|
DEFAULT_HISTORY_ROOT,
|
|
17
20
|
listProjectHistories,
|
|
18
21
|
pruneGoneProjectHistories
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-LP3KFEVQ.js";
|
|
23
|
+
import "./chunk-6ZX3YCCU.js";
|
|
21
24
|
import "./chunk-EOVYQ3IG.js";
|
|
22
25
|
import "./chunk-BKQXLO55.js";
|
|
23
26
|
import {
|
|
24
27
|
CACHE_DIR_NAME,
|
|
25
28
|
cleanupProxyCache
|
|
26
29
|
} from "./chunk-OWMGDQBZ.js";
|
|
27
|
-
import {
|
|
28
|
-
formatBytes
|
|
29
|
-
} from "./chunk-IHFUKJOR.js";
|
|
30
30
|
import "./chunk-OV62R47Q.js";
|
|
31
31
|
import "./chunk-TVCRUG2S.js";
|
|
32
32
|
import "./chunk-TRLP3CSL.js";
|
|
@@ -67,12 +67,12 @@ import "./chunk-GK4AIFIH.js";
|
|
|
67
67
|
import "./chunk-2PSPARWP.js";
|
|
68
68
|
import {
|
|
69
69
|
withMeta
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7N3IODU7.js";
|
|
71
71
|
import "./chunk-K4WIOZFP.js";
|
|
72
72
|
import "./chunk-XUXGIA7H.js";
|
|
73
73
|
import "./chunk-WERLJGIC.js";
|
|
74
74
|
import "./chunk-ISN5GRYI.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-LIPKCOYU.js";
|
|
76
76
|
import "./chunk-KNU5COPB.js";
|
|
77
77
|
import "./chunk-XT5P4QMO.js";
|
|
78
78
|
import "./chunk-6BEFEWFB.js";
|
package/dist/cli.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./chunk-ISN5GRYI.js";
|
|
35
35
|
import {
|
|
36
36
|
VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LIPKCOYU.js";
|
|
38
38
|
import "./chunk-M2WBOQ2Q.js";
|
|
39
39
|
|
|
40
40
|
// src/cli.ts
|
|
@@ -181,7 +181,7 @@ function wrapCommand(cmd, path) {
|
|
|
181
181
|
}
|
|
182
182
|
async function reportCommandFailure(command2, err) {
|
|
183
183
|
try {
|
|
184
|
-
const { trackCommandFailure } = await import("./events-
|
|
184
|
+
const { trackCommandFailure } = await import("./events-EA2PNDU6.js");
|
|
185
185
|
trackCommandFailure(command2, err);
|
|
186
186
|
} catch {
|
|
187
187
|
}
|
|
@@ -230,30 +230,12 @@ if (rootVersionRequested) {
|
|
|
230
230
|
console.log(VERSION);
|
|
231
231
|
process.exit(0);
|
|
232
232
|
}
|
|
233
|
+
var { applyDotEnv } = await import("./dotEnv-AI4SYVTX.js");
|
|
233
234
|
try {
|
|
234
235
|
const { readFileSync } = await import("fs");
|
|
235
236
|
const { resolve: resolve2 } = await import("path");
|
|
236
237
|
const envPath = resolve2(process.cwd(), ".env");
|
|
237
|
-
|
|
238
|
-
for (const rawLine of envContent.split("\n")) {
|
|
239
|
-
let line = rawLine.trim();
|
|
240
|
-
if (!line || line.startsWith("#")) continue;
|
|
241
|
-
if (line.startsWith("export ")) line = line.slice(7).trim();
|
|
242
|
-
const eqIdx = line.indexOf("=");
|
|
243
|
-
if (eqIdx < 1) continue;
|
|
244
|
-
const key = line.slice(0, eqIdx).trim();
|
|
245
|
-
let val = line.slice(eqIdx + 1).trim();
|
|
246
|
-
if (val.startsWith('"') || val.startsWith("'")) {
|
|
247
|
-
const quote = val.charAt(0);
|
|
248
|
-
const end = val.indexOf(quote, 1);
|
|
249
|
-
if (end > 0) val = val.slice(1, end);
|
|
250
|
-
else val = val.slice(1);
|
|
251
|
-
} else {
|
|
252
|
-
const commentMatch = val.match(/\s+#/);
|
|
253
|
-
if (commentMatch?.index !== void 0) val = val.slice(0, commentMatch.index).trim();
|
|
254
|
-
}
|
|
255
|
-
if (key && !(key in process.env)) process.env[key] = val;
|
|
256
|
-
}
|
|
238
|
+
applyDotEnv(readFileSync(envPath, "utf-8"), process.env);
|
|
257
239
|
} catch {
|
|
258
240
|
}
|
|
259
241
|
registerRunningCli();
|
|
@@ -271,52 +253,52 @@ async function assertStudioWorkspaceBuilt() {
|
|
|
271
253
|
});
|
|
272
254
|
}
|
|
273
255
|
var commandLoaders = {
|
|
274
|
-
init: () => import("./init-
|
|
275
|
-
add: () => import("./add-
|
|
276
|
-
catalog: () => import("./catalog-
|
|
256
|
+
init: () => import("./init-5DPNU4VR.js").then((m) => m.default),
|
|
257
|
+
add: () => import("./add-SYG3UXKX.js").then((m) => m.default),
|
|
258
|
+
catalog: () => import("./catalog-G3C7EIL3.js").then((m) => m.default),
|
|
277
259
|
"media-use": () => import("./media-use-4XXGABIL.js").then((m) => m.default),
|
|
278
|
-
play: () => import("./play-
|
|
279
|
-
present: () => import("./present-
|
|
280
|
-
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-
|
|
281
|
-
publish: () => import("./publish-
|
|
282
|
-
render: () => import("./render-
|
|
283
|
-
lint: () => import("./lint-
|
|
284
|
-
check: () => import("./check-
|
|
285
|
-
beats: () => import("./beats-
|
|
286
|
-
"normalize-audio": () => import("./normalize-audio-
|
|
287
|
-
inspect: () => import("./inspect-
|
|
288
|
-
keyframes: () => import("./keyframes-
|
|
289
|
-
layout: () => import("./layout-
|
|
290
|
-
info: () => import("./info-
|
|
291
|
-
compositions: () => import("./compositions-
|
|
292
|
-
timeline: () => import("./timeline-
|
|
293
|
-
history: () => import("./history-
|
|
294
|
-
benchmark: () => import("./benchmark-
|
|
295
|
-
browser: () => import("./browser-
|
|
260
|
+
play: () => import("./play-PAJQYG2D.js").then((m) => m.default),
|
|
261
|
+
present: () => import("./present-TMFT5KD6.js").then((m) => m.default),
|
|
262
|
+
preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-4HHLUOFB.js").then((m) => m.default)),
|
|
263
|
+
publish: () => import("./publish-6RRDDVPK.js").then((m) => m.default),
|
|
264
|
+
render: () => import("./render-N4HBJR46.js").then((m) => m.default),
|
|
265
|
+
lint: () => import("./lint-E2DTFSA5.js").then((m) => m.default),
|
|
266
|
+
check: () => import("./check-KTYPDNJD.js").then((m) => m.default),
|
|
267
|
+
beats: () => import("./beats-HNU6TRID.js").then((m) => m.default),
|
|
268
|
+
"normalize-audio": () => import("./normalize-audio-JTK53ZDZ.js").then((m) => m.default),
|
|
269
|
+
inspect: () => import("./inspect-LASYMXFA.js").then((m) => m.default),
|
|
270
|
+
keyframes: () => import("./keyframes-BS6D4QMB.js").then((m) => m.default),
|
|
271
|
+
layout: () => import("./layout-HMJ5I362.js").then((m) => m.default),
|
|
272
|
+
info: () => import("./info-6TZU6FRJ.js").then((m) => m.default),
|
|
273
|
+
compositions: () => import("./compositions-D6JAIKFJ.js").then((m) => m.default),
|
|
274
|
+
timeline: () => import("./timeline-KM5YF4WX.js").then((m) => m.default),
|
|
275
|
+
history: () => import("./history-IFZM4MIB.js").then((m) => m.default),
|
|
276
|
+
benchmark: () => import("./benchmark-UEMJYRLY.js").then((m) => m.default),
|
|
277
|
+
browser: () => import("./browser-CZJK4WQR.js").then((m) => m.default),
|
|
296
278
|
"remove-background": () => import("./remove-background-O2J7EVEN.js").then((m) => m.default),
|
|
297
|
-
transcribe: () => import("./transcribe-
|
|
279
|
+
transcribe: () => import("./transcribe-4IJPHM33.js").then((m) => m.default),
|
|
298
280
|
usage: () => import("./usage-EC3KFUIJ.js").then((m) => m.default),
|
|
299
|
-
models: () => import("./models-
|
|
281
|
+
models: () => import("./models-6YWOFGV2.js").then((m) => m.default),
|
|
300
282
|
tts: () => import("./tts-P3LIPIL5.js").then((m) => m.default),
|
|
301
283
|
docs: () => import("./docs-QAPJEGLS.js").then((m) => m.default),
|
|
302
|
-
doctor: () => import("./doctor-
|
|
303
|
-
clean: () => import("./clean-
|
|
304
|
-
upgrade: () => import("./upgrade-
|
|
305
|
-
skills: () => import("./skills-
|
|
306
|
-
feedback: () => import("./feedback-
|
|
284
|
+
doctor: () => import("./doctor-LHUS7OQG.js").then((m) => m.default),
|
|
285
|
+
clean: () => import("./clean-AGTDSSLO.js").then((m) => m.default),
|
|
286
|
+
upgrade: () => import("./upgrade-QWBPPGTJ.js").then((m) => m.default),
|
|
287
|
+
skills: () => import("./skills-D4HKC2WV.js").then((m) => m.default),
|
|
288
|
+
feedback: () => import("./feedback-RAOT4ZX6.js").then((m) => m.default),
|
|
307
289
|
telemetry: () => import("./telemetry-2YC4SGQU.js").then((m) => m.default),
|
|
308
|
-
events: () => import("./events-
|
|
309
|
-
validate: () => import("./validate-
|
|
310
|
-
snapshot: () => import("./snapshot-
|
|
311
|
-
"media-treatment": () => import("./media-treatment-
|
|
312
|
-
"grade-compare": () => import("./grade-compare-
|
|
313
|
-
compare: () => import("./compare-
|
|
314
|
-
capture: () => import("./capture-
|
|
315
|
-
lambda: () => import("./lambda-
|
|
290
|
+
events: () => import("./events-CNSBSROB.js").then((m) => m.default),
|
|
291
|
+
validate: () => import("./validate-5LJ6TDCF.js").then((m) => m.default),
|
|
292
|
+
snapshot: () => import("./snapshot-A7BIVQUX.js").then((m) => m.default),
|
|
293
|
+
"media-treatment": () => import("./media-treatment-XECAXDZD.js").then((m) => m.mediaTreatmentCommand),
|
|
294
|
+
"grade-compare": () => import("./grade-compare-ZKYGIKRN.js").then((m) => m.default),
|
|
295
|
+
compare: () => import("./compare-2B7W2HXM.js").then((m) => m.default),
|
|
296
|
+
capture: () => import("./capture-6NN3YJBF.js").then((m) => m.default),
|
|
297
|
+
lambda: () => import("./lambda-AHKA33RE.js").then((m) => m.default),
|
|
316
298
|
cloudrun: () => import("./cloudrun-OQLPEWGP.js").then((m) => m.default),
|
|
317
|
-
cloud: () => import("./cloud-
|
|
318
|
-
auth: () => import("./auth-
|
|
319
|
-
figma: () => import("./figma-
|
|
299
|
+
cloud: () => import("./cloud-TIKQ43CO.js").then((m) => m.default),
|
|
300
|
+
auth: () => import("./auth-TCX6TGIH.js").then((m) => m.default),
|
|
301
|
+
figma: () => import("./figma-HHALPQPX.js").then((m) => m.default)
|
|
320
302
|
};
|
|
321
303
|
var subCommands = Object.fromEntries(
|
|
322
304
|
Object.entries(commandLoaders).map(([name, load]) => [name, trackCommandFailures(load)])
|
|
@@ -340,7 +322,7 @@ var _printStalePinNotice;
|
|
|
340
322
|
var _printSkillsUpdateNotice;
|
|
341
323
|
var telemetryReady = Promise.resolve();
|
|
342
324
|
if (!isHelp && command !== "telemetry" && command !== "events" && command !== "usage" && command !== "unknown") {
|
|
343
|
-
telemetryReady = import("./telemetry-
|
|
325
|
+
telemetryReady = import("./telemetry-5WHZVQFM.js").then((mod) => {
|
|
344
326
|
_flushSync = mod.flushSync;
|
|
345
327
|
_trackCliError = mod.trackCliError;
|
|
346
328
|
_trackCommandResult = mod.trackCommandResult;
|
|
@@ -350,23 +332,23 @@ if (!isHelp && command !== "telemetry" && command !== "events" && command !== "u
|
|
|
350
332
|
});
|
|
351
333
|
}
|
|
352
334
|
if (!isHelp && !hasJsonFlag && command !== "upgrade" && command !== "events" && command !== "telemetry" && command !== "skills" && command !== "usage") {
|
|
353
|
-
import("./autoUpdate-
|
|
335
|
+
import("./autoUpdate-YGT7MYDU.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
|
|
354
336
|
});
|
|
355
|
-
import("./updateCheck-
|
|
337
|
+
import("./updateCheck-JY2WCSMC.js").then(async (mod) => {
|
|
356
338
|
_printUpdateNotice = mod.printUpdateNotice;
|
|
357
339
|
_printStalePinNotice = mod.printStalePinNotice;
|
|
358
340
|
const result = mod.cachedUpdateCheck();
|
|
359
341
|
if (result.updateAvailable) {
|
|
360
|
-
const auto = await import("./autoUpdate-
|
|
342
|
+
const auto = await import("./autoUpdate-YGT7MYDU.js").catch(() => null);
|
|
361
343
|
auto?.scheduleBackgroundInstall(result.latest, result.current);
|
|
362
344
|
}
|
|
363
345
|
}).catch(() => {
|
|
364
346
|
});
|
|
365
|
-
import("./skillsUpdateCheck-
|
|
347
|
+
import("./skillsUpdateCheck-IPJRWH4Z.js").then((mod) => {
|
|
366
348
|
_printSkillsUpdateNotice = mod.printSkillsUpdateNotice;
|
|
367
349
|
}).catch(() => {
|
|
368
350
|
});
|
|
369
|
-
import("./backgroundChecks-
|
|
351
|
+
import("./backgroundChecks-CCDNX6P2.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
|
|
370
352
|
});
|
|
371
353
|
}
|
|
372
354
|
var commandStart = Date.now();
|
|
@@ -475,7 +457,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
475
457
|
emitCliErrorEvent("unhandled_rejection", error);
|
|
476
458
|
});
|
|
477
459
|
async function showUsage(cmd, parent) {
|
|
478
|
-
const { showUsage: impl } = await import("./help-
|
|
460
|
+
const { showUsage: impl } = await import("./help-YXXIXAVR.js");
|
|
479
461
|
return impl(cmd, parent);
|
|
480
462
|
}
|
|
481
463
|
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-WFBNU2KD.js").then((m) => m.default),
|
|
59
|
+
list: () => import("./list-C3CXWSEA.js").then((m) => m.default),
|
|
60
|
+
get: () => import("./get-2VHYWD5M.js").then((m) => m.default),
|
|
61
|
+
delete: () => import("./delete-UWZ6BBQI.js").then((m) => m.default)
|
|
62
62
|
},
|
|
63
63
|
async run({ args }) {
|
|
64
64
|
if (!args._?.[0]) console.log(HELP);
|
|
@@ -4,21 +4,21 @@ 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
|
-
createContactSheet
|
|
9
|
-
} from "./chunk-E6RPWJVC.js";
|
|
10
|
-
import "./chunk-MRF4AMKD.js";
|
|
11
7
|
import {
|
|
12
8
|
displayPathFromInput,
|
|
13
9
|
readOptionalString,
|
|
14
10
|
resolveFromBase
|
|
15
11
|
} from "./chunk-ZKDMAOFU.js";
|
|
12
|
+
import {
|
|
13
|
+
createContactSheet
|
|
14
|
+
} from "./chunk-E6RPWJVC.js";
|
|
15
|
+
import "./chunk-MRF4AMKD.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SVI32JAG.js";
|
|
19
19
|
import "./chunk-XUHOIDKG.js";
|
|
20
|
-
import "./chunk-RMDKZTSI.js";
|
|
21
20
|
import "./chunk-X7MTZ4T2.js";
|
|
21
|
+
import "./chunk-WMCV6DHA.js";
|
|
22
22
|
import {
|
|
23
23
|
openSettledCompositionPage,
|
|
24
24
|
seekCompositionTimeline
|
|
@@ -28,12 +28,12 @@ import "./chunk-OI3IIR2X.js";
|
|
|
28
28
|
import "./chunk-262C25DQ.js";
|
|
29
29
|
import "./chunk-OLFFCC2D.js";
|
|
30
30
|
import "./chunk-YEIFI443.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-IHFUKJOR.js";
|
|
32
|
+
import "./chunk-LP3KFEVQ.js";
|
|
33
|
+
import "./chunk-6ZX3YCCU.js";
|
|
33
34
|
import "./chunk-EOVYQ3IG.js";
|
|
34
35
|
import "./chunk-BKQXLO55.js";
|
|
35
36
|
import "./chunk-OWMGDQBZ.js";
|
|
36
|
-
import "./chunk-IHFUKJOR.js";
|
|
37
37
|
import "./chunk-V5T6IA7D.js";
|
|
38
38
|
import "./chunk-PFCFR3KZ.js";
|
|
39
39
|
import "./chunk-WJP3UOB3.js";
|
|
@@ -49,8 +49,8 @@ import "./chunk-GMECXFAN.js";
|
|
|
49
49
|
import "./chunk-TRLP3CSL.js";
|
|
50
50
|
import {
|
|
51
51
|
trackCompareSheet
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-IJ2O4BLJ.js";
|
|
53
|
+
import "./chunk-LJXFGHPO.js";
|
|
54
54
|
import "./chunk-VWG7OQKU.js";
|
|
55
55
|
import {
|
|
56
56
|
c
|
|
@@ -83,12 +83,12 @@ import "./chunk-GK4AIFIH.js";
|
|
|
83
83
|
import "./chunk-2PSPARWP.js";
|
|
84
84
|
import {
|
|
85
85
|
withMeta
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-7N3IODU7.js";
|
|
87
87
|
import "./chunk-K4WIOZFP.js";
|
|
88
88
|
import "./chunk-XUXGIA7H.js";
|
|
89
89
|
import "./chunk-WERLJGIC.js";
|
|
90
90
|
import "./chunk-ISN5GRYI.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-LIPKCOYU.js";
|
|
92
92
|
import {
|
|
93
93
|
normalizeErrorMessage
|
|
94
94
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
downloadRender,
|
|
9
9
|
runAssetImport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NP5P2A2K.js";
|
|
11
11
|
import {
|
|
12
12
|
FigmaClientError,
|
|
13
13
|
createFigmaClient,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readBindings,
|
|
17
17
|
resolveBindings,
|
|
18
18
|
withFigmaErrors
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UOKW7DPN.js";
|
|
20
20
|
import "./chunk-IHFUKJOR.js";
|
|
21
21
|
import "./chunk-ZTZA4UWZ.js";
|
|
22
22
|
import {
|
|
@@ -159,7 +159,7 @@ var component_default = defineCommand({
|
|
|
159
159
|
`${result.unresolved.length} binding(s) reference tokens not yet imported \u2014 colors baked as literals (flagged data-figma-unresolved). Run \`hyperframes figma tokens\` on the source/library file, then re-import to link them.`
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
162
|
+
const { trackFigmaImport } = await import("./telemetry-5WHZVQFM.js");
|
|
163
163
|
trackFigmaImport({
|
|
164
164
|
phase: "component",
|
|
165
165
|
unresolvedBindings: result.unresolved.length,
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B3MQEZBK.js";
|
|
10
10
|
import "./chunk-IHFUKJOR.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureDOMParser
|
|
13
13
|
} from "./chunk-PFCFR3KZ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IJ2O4BLJ.js";
|
|
15
|
+
import "./chunk-LJXFGHPO.js";
|
|
16
16
|
import "./chunk-VWG7OQKU.js";
|
|
17
17
|
import {
|
|
18
18
|
c
|
|
@@ -45,12 +45,12 @@ import "./chunk-GK4AIFIH.js";
|
|
|
45
45
|
import "./chunk-2PSPARWP.js";
|
|
46
46
|
import {
|
|
47
47
|
withMeta
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7N3IODU7.js";
|
|
49
49
|
import "./chunk-K4WIOZFP.js";
|
|
50
50
|
import "./chunk-XUXGIA7H.js";
|
|
51
51
|
import "./chunk-WERLJGIC.js";
|
|
52
52
|
import "./chunk-ISN5GRYI.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-LIPKCOYU.js";
|
|
54
54
|
import "./chunk-KNU5COPB.js";
|
|
55
55
|
import "./chunk-3GXQPCJC.js";
|
|
56
56
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -7,13 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
createCloudClient,
|
|
9
9
|
reportApiError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y6W4DVPS.js";
|
|
11
11
|
import "./chunk-BXCMXMJQ.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SHB5VDMH.js";
|
|
13
|
+
import "./chunk-I465DBM6.js";
|
|
14
14
|
import {
|
|
15
15
|
errorBox
|
|
16
16
|
} from "./chunk-IHFUKJOR.js";
|
|
17
|
+
import "./chunk-EOVYQ3IG.js";
|
|
17
18
|
import {
|
|
18
19
|
c
|
|
19
20
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -26,12 +27,12 @@ import {
|
|
|
26
27
|
import "./chunk-OFQWTKPW.js";
|
|
27
28
|
import {
|
|
28
29
|
withMeta
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7N3IODU7.js";
|
|
30
31
|
import "./chunk-K4WIOZFP.js";
|
|
31
32
|
import "./chunk-XUXGIA7H.js";
|
|
32
33
|
import "./chunk-WERLJGIC.js";
|
|
33
34
|
import "./chunk-ISN5GRYI.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-LIPKCOYU.js";
|
|
35
36
|
import "./chunk-KNU5COPB.js";
|
|
36
37
|
import "./chunk-M2WBOQ2Q.js";
|
|
37
38
|
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
normalizeSystemFontPrimaryFamilies,
|
|
20
20
|
parseFontFamilyValue,
|
|
21
21
|
resolveFontFamilyDeclarationFamilies
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2GKO3X7F.js";
|
|
23
|
+
import "./chunk-32MY4AZN.js";
|
|
23
24
|
import "./chunk-TJSTGSAW.js";
|
|
24
25
|
import "./chunk-ZLJXATSQ.js";
|
|
25
|
-
import "./chunk-32MY4AZN.js";
|
|
26
26
|
import {
|
|
27
27
|
FONT_ALIAS_KEYS
|
|
28
28
|
} from "./chunk-FSLYPQ5Z.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
doctor_default,
|
|
14
14
|
examples,
|
|
15
15
|
redactHome
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CK2YS3E3.js";
|
|
17
17
|
import "./chunk-Z27A7NUB.js";
|
|
18
18
|
import "./chunk-5ETJX6WM.js";
|
|
19
19
|
import {
|
|
@@ -41,12 +41,12 @@ import "./chunk-PJ3HDUCY.js";
|
|
|
41
41
|
import "./chunk-TQFG7HTI.js";
|
|
42
42
|
import "./chunk-GK4AIFIH.js";
|
|
43
43
|
import "./chunk-2PSPARWP.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-7N3IODU7.js";
|
|
45
45
|
import "./chunk-K4WIOZFP.js";
|
|
46
46
|
import "./chunk-XUXGIA7H.js";
|
|
47
47
|
import "./chunk-WERLJGIC.js";
|
|
48
48
|
import "./chunk-ISN5GRYI.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-LIPKCOYU.js";
|
|
50
50
|
import "./chunk-KNU5COPB.js";
|
|
51
51
|
import "./chunk-XT5P4QMO.js";
|
|
52
52
|
import "./chunk-6BEFEWFB.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import {
|
|
8
|
+
FEEDBACK_EMAIL_ENV
|
|
9
|
+
} from "./chunk-IGLEPPTN.js";
|
|
10
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
11
|
+
|
|
12
|
+
// src/utils/dotEnv.ts
|
|
13
|
+
function valueOf(raw) {
|
|
14
|
+
const quote = raw.charAt(0);
|
|
15
|
+
if (quote === '"' || quote === "'") {
|
|
16
|
+
const end = raw.indexOf(quote, 1);
|
|
17
|
+
return end > 0 ? raw.slice(1, end) : raw.slice(1);
|
|
18
|
+
}
|
|
19
|
+
const comment = raw.match(/\s+#/);
|
|
20
|
+
return comment?.index === void 0 ? raw : raw.slice(0, comment.index).trim();
|
|
21
|
+
}
|
|
22
|
+
function entryOf(rawLine) {
|
|
23
|
+
let line = rawLine.trim();
|
|
24
|
+
if (!line || line.startsWith("#")) return null;
|
|
25
|
+
if (line.startsWith("export ")) line = line.slice(7).trim();
|
|
26
|
+
const eq = line.indexOf("=");
|
|
27
|
+
if (eq < 1) return null;
|
|
28
|
+
return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1).trim())];
|
|
29
|
+
}
|
|
30
|
+
function applyDotEnv(content, env) {
|
|
31
|
+
for (const entry of content.split("\n").map(entryOf)) {
|
|
32
|
+
if (!entry) continue;
|
|
33
|
+
const [key, value] = entry;
|
|
34
|
+
if (key && key !== FEEDBACK_EMAIL_ENV && !(key in env)) env[key] = value;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
applyDotEnv
|
|
39
|
+
};
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
flushSync,
|
|
12
12
|
trackEvent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LJXFGHPO.js";
|
|
14
14
|
import "./chunk-VWG7OQKU.js";
|
|
15
15
|
import "./chunk-ZTZA4UWZ.js";
|
|
16
16
|
import "./chunk-U7AMFQ6G.js";
|
|
@@ -38,7 +38,7 @@ import "./chunk-K4WIOZFP.js";
|
|
|
38
38
|
import "./chunk-XUXGIA7H.js";
|
|
39
39
|
import "./chunk-WERLJGIC.js";
|
|
40
40
|
import "./chunk-ISN5GRYI.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-LIPKCOYU.js";
|
|
42
42
|
import "./chunk-KNU5COPB.js";
|
|
43
43
|
import "./chunk-3GXQPCJC.js";
|
|
44
44
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
trackRenderPreflightRejected,
|
|
31
31
|
trackSkillsInstallSkipped,
|
|
32
32
|
trackTranscribeUnavailable
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-IJ2O4BLJ.js";
|
|
34
|
+
import "./chunk-LJXFGHPO.js";
|
|
35
35
|
import "./chunk-VWG7OQKU.js";
|
|
36
36
|
import "./chunk-ZTZA4UWZ.js";
|
|
37
37
|
import "./chunk-U7AMFQ6G.js";
|
|
@@ -57,7 +57,7 @@ import "./chunk-K4WIOZFP.js";
|
|
|
57
57
|
import "./chunk-XUXGIA7H.js";
|
|
58
58
|
import "./chunk-WERLJGIC.js";
|
|
59
59
|
import "./chunk-ISN5GRYI.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-LIPKCOYU.js";
|
|
61
61
|
import "./chunk-KNU5COPB.js";
|
|
62
62
|
import "./chunk-3GXQPCJC.js";
|
|
63
63
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -4,15 +4,20 @@ 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
|
-
getDoctorSummary
|
|
9
|
-
} from "./chunk-KNXXZ73S.js";
|
|
10
7
|
import {
|
|
11
8
|
getPublishApiBaseUrl,
|
|
12
9
|
publishProjectArchive
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-JH556Q42.js";
|
|
11
|
+
import "./chunk-ZTZ7NCJT.js";
|
|
12
|
+
import "./chunk-SHB5VDMH.js";
|
|
13
|
+
import "./chunk-I465DBM6.js";
|
|
14
|
+
import {
|
|
15
|
+
getDoctorSummary
|
|
16
|
+
} from "./chunk-4IWDF5OL.js";
|
|
17
|
+
import {
|
|
18
|
+
feedbackEmail,
|
|
19
|
+
parseFeedbackSource
|
|
20
|
+
} from "./chunk-IGLEPPTN.js";
|
|
16
21
|
import {
|
|
17
22
|
ft,
|
|
18
23
|
q,
|
|
@@ -23,10 +28,10 @@ import {
|
|
|
23
28
|
parseFeedbackRating,
|
|
24
29
|
trackCatalogSearchMiss,
|
|
25
30
|
trackRenderFeedback
|
|
26
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IJ2O4BLJ.js";
|
|
27
32
|
import {
|
|
28
33
|
shouldTrack
|
|
29
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LJXFGHPO.js";
|
|
30
35
|
import "./chunk-VWG7OQKU.js";
|
|
31
36
|
import {
|
|
32
37
|
c
|
|
@@ -63,7 +68,7 @@ import "./chunk-WERLJGIC.js";
|
|
|
63
68
|
import "./chunk-ISN5GRYI.js";
|
|
64
69
|
import {
|
|
65
70
|
VERSION
|
|
66
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-LIPKCOYU.js";
|
|
67
72
|
import "./chunk-KNU5COPB.js";
|
|
68
73
|
import "./chunk-3GXQPCJC.js";
|
|
69
74
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -79,6 +84,7 @@ import open from "open";
|
|
|
79
84
|
var MAX_COMMENT = 2e3;
|
|
80
85
|
var MAX_CLI_VERSION = 100;
|
|
81
86
|
var MAX_ENV = 500;
|
|
87
|
+
var MAX_EMAIL = 254;
|
|
82
88
|
function cap(value, max) {
|
|
83
89
|
if (value === void 0) return void 0;
|
|
84
90
|
return value.length > max ? value.slice(0, max) : value;
|
|
@@ -93,7 +99,9 @@ async function submitFeedback(input) {
|
|
|
93
99
|
rating_scale: FEEDBACK_RATING_SCALE,
|
|
94
100
|
comment: cap(input.comment, MAX_COMMENT),
|
|
95
101
|
cli_version: cap(input.cliVersion, MAX_CLI_VERSION),
|
|
96
|
-
env: cap(input.env, MAX_ENV)
|
|
102
|
+
env: cap(input.env, MAX_ENV),
|
|
103
|
+
source: input.source,
|
|
104
|
+
email: cap(input.email, MAX_EMAIL)
|
|
97
105
|
}),
|
|
98
106
|
headers: {
|
|
99
107
|
"content-type": "application/json"
|
|
@@ -347,7 +355,7 @@ async function fileGithubIssue(opts) {
|
|
|
347
355
|
await openAndPrintIssue(url);
|
|
348
356
|
}
|
|
349
357
|
var feedback_default = defineCommand({
|
|
350
|
-
meta: { name: "feedback", description: "Submit
|
|
358
|
+
meta: { name: "feedback", description: "Submit feedback about your experience" },
|
|
351
359
|
args: {
|
|
352
360
|
rating: {
|
|
353
361
|
type: "string",
|
|
@@ -359,6 +367,10 @@ var feedback_default = defineCommand({
|
|
|
359
367
|
type: "string",
|
|
360
368
|
description: "Optional details about your experience"
|
|
361
369
|
},
|
|
370
|
+
source: {
|
|
371
|
+
type: "string",
|
|
372
|
+
description: 'Who wrote the report: "person" or "agent"'
|
|
373
|
+
},
|
|
362
374
|
"search-miss": {
|
|
363
375
|
type: "string",
|
|
364
376
|
description: "Report a catalog search that found nothing useful; pass the query you ran"
|
|
@@ -406,6 +418,11 @@ var feedback_default = defineCommand({
|
|
|
406
418
|
console.error(c.error("Rating must be an integer between 0 and 10"));
|
|
407
419
|
failCommand();
|
|
408
420
|
}
|
|
421
|
+
const source = parseFeedbackSource(args.source);
|
|
422
|
+
if (source === null) {
|
|
423
|
+
console.error(c.error('Source must be "person" or "agent"'));
|
|
424
|
+
failCommand();
|
|
425
|
+
}
|
|
409
426
|
if (!shouldTrack()) {
|
|
410
427
|
console.log(c.dim("Telemetry is disabled. Feedback not sent."));
|
|
411
428
|
return;
|
|
@@ -429,7 +446,14 @@ var feedback_default = defineCommand({
|
|
|
429
446
|
recentRenderIds: config.recentRenders?.map((r) => r.id)
|
|
430
447
|
});
|
|
431
448
|
console.log(c.dim("Thanks for the feedback!"));
|
|
432
|
-
await submitFeedback({
|
|
449
|
+
await submitFeedback({
|
|
450
|
+
rating,
|
|
451
|
+
comment,
|
|
452
|
+
cliVersion: VERSION,
|
|
453
|
+
env: envWithJoinKeys,
|
|
454
|
+
source,
|
|
455
|
+
email: feedbackEmail()
|
|
456
|
+
});
|
|
433
457
|
if (args["file-issue"] === true) {
|
|
434
458
|
await fileGithubIssue({
|
|
435
459
|
rating,
|