hyperframes 0.8.160 → 0.8.162
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-OGBTJCU4.js → add-UW7GCPQF.js} +5 -5
- package/dist/{asset-DKQFFGPP.js → asset-TWBPYQOL.js} +2 -2
- package/dist/audio-DJIE4YLH.js +1153 -0
- package/dist/{auth-AQMRAFXN.js → auth-VTCEZYBT.js} +1 -1
- package/dist/{autoUpdate-NFQB7V2X.js → autoUpdate-JA3SV472.js} +2 -2
- package/dist/{backgroundChecks-7JKE2FIU.js → backgroundChecks-J3WJDPQJ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/beats-QVJVXZV5.js +239 -0
- package/dist/{benchmark-RRU67WEY.js → benchmark-WNBAKOXS.js} +5 -5
- package/dist/{browser-K4TP4ZM2.js → browser-VJOTRIXL.js} +3 -3
- package/dist/{capture-T2TBROMS.js → capture-GUO23PVN.js} +1 -1
- package/dist/{catalog-IMIHQ4KX.js → catalog-SAC4GFIN.js} +5 -5
- package/dist/{catch-up-UY5MJWOG.js → catch-up-T5RIRFJF.js} +4 -4
- package/dist/{check-6NAJSJHQ.js → check-IRETF27J.js} +18 -18
- package/dist/{checkBrowser-JWNQFYTY.js → checkBrowser-5IXR4QCK.js} +14 -14
- package/dist/{chunk-VZ6LCTOZ.js → chunk-3LQEZ4EI.js} +1 -1
- package/dist/{chunk-TU2CQJO3.js → chunk-3NSVHCOH.js} +2 -2
- package/dist/{chunk-D2WGLWIK.js → chunk-5K34RPE5.js} +2 -2
- package/dist/{chunk-IYLHJV34.js → chunk-5UBZPG74.js} +1 -143
- package/dist/{chunk-VD7WQYTO.js → chunk-5YSHR4XC.js} +5 -5
- package/dist/{chunk-D46G5IQH.js → chunk-AAUK5GDI.js} +7 -7
- package/dist/{chunk-GOASXWDD.js → chunk-FF5TAEPT.js} +1 -1
- package/dist/chunk-FFJ5TDRD.js +1181 -0
- package/dist/{chunk-PINFPWRV.js → chunk-GIPNECWL.js} +12 -10
- package/dist/{chunk-KWRBEDJI.js → chunk-GNFWKGSQ.js} +2 -2
- package/dist/{chunk-4VYNMVMC.js → chunk-GS5EXZBV.js} +4 -4
- package/dist/chunk-J4L5TPLS.js +101 -0
- package/dist/{chunk-V2FQQILJ.js → chunk-JJYFRAI4.js} +1 -1
- package/dist/{chunk-IGTGLGML.js → chunk-KAKBRDU4.js} +2 -2
- package/dist/{chunk-TTFDAWCS.js → chunk-KIJO75L4.js} +1 -1
- package/dist/{chunk-3XPVZLAR.js → chunk-NQR5SBXX.js} +1 -1
- package/dist/{chunk-6MCASYIS.js → chunk-ON2HYNGB.js} +4 -4
- package/dist/{chunk-GOTCGKX6.js → chunk-RGYEL7QD.js} +1 -1
- package/dist/{chunk-7OFNPEKR.js → chunk-S6OLD4SL.js} +2 -2
- package/dist/{chunk-FRGYHRP6.js → chunk-T5BG7PYZ.js} +1 -1
- package/dist/{chunk-MYGXKD7A.js → chunk-T65MIV36.js} +2 -2
- package/dist/chunk-TDPVEMBS.js +156 -0
- package/dist/{chunk-SHVDJON6.js → chunk-XWWYGXJ5.js} +1 -1
- package/dist/{chunk-37LNY2EC.js → chunk-YJKUE3LV.js} +1 -1
- package/dist/{chunk-KRE55WLI.js → chunk-YLBV2PXM.js} +1 -1
- package/dist/{chunk-ICZVCVD3.js → chunk-ZEWX3GHP.js} +1 -1
- package/dist/{clean-RRE6PMKZ.js → clean-WB62QULT.js} +6 -6
- package/dist/cli.js +49 -49
- package/dist/{cloud-OIR6K7TS.js → cloud-E5WB4DWZ.js} +4 -4
- package/dist/{compare-E57W737I.js → compare-GHFVHZ5A.js} +11 -11
- package/dist/{component-I2O4AX56.js → component-ZGCC3MHX.js} +3 -3
- package/dist/{compositions-B6NKZHIN.js → compositions-THPEDDIX.js} +5 -5
- package/dist/{delete-DTUNBC6K.js → delete-6FWT7DZX.js} +4 -3
- package/dist/{doctor-SCNB73Z3.js → doctor-RDGDOUC4.js} +3 -3
- package/dist/{events-6LQNRKHZ.js → events-CU6FDXHC.js} +3 -3
- package/dist/{events-Q37UJL36.js → events-VHXICDA2.js} +2 -2
- package/dist/{feedback-FOEBE2OW.js → feedback-PUPN6EKP.js} +5 -5
- package/dist/{figma-54MRTBKH.js → figma-ZKWBF7QH.js} +3 -3
- package/dist/fontLocalizeCli.js +1 -1
- package/dist/{get-EPGHM2SA.js → get-JHIBQRPM.js} +4 -3
- package/dist/{grade-compare-LOJWX6SK.js → grade-compare-GPLUXDPW.js} +11 -11
- package/dist/{help-6FPZI3WP.js → help-GO6RGM37.js} +1 -1
- package/dist/{history-GRXSUA5R.js → history-RUTC4SH5.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-LV7DFCLD.js → info-773VXW37.js} +5 -5
- package/dist/{init-3J7BSAC3.js → init-YXSIRYZI.js} +6 -6
- package/dist/{inspect-5RON554C.js → inspect-L4RRJEAA.js} +13 -13
- package/dist/{keyframes-KHXTHI5C.js → keyframes-P5IOQ6AM.js} +6 -6
- package/dist/{layout-DVWWT2TR.js → layout-OH2VTN5E.js} +13 -13
- package/dist/{lint-Q5WFB5ST.js → lint-YEEPVE6Q.js} +6 -6
- package/dist/{list-RFEUTW6N.js → list-QURRZTVN.js} +4 -3
- package/dist/{login-WBHWA4M2.js → login-DFT4L5YY.js} +4 -4
- package/dist/{media-treatment-WRHVNWLS.js → media-treatment-ERQ2PBIN.js} +6 -6
- package/dist/{motionShot-BZLRN3SS.js → motionShot-C2YDYRNB.js} +5 -5
- package/dist/{normalize-audio-4YXE3RIF.js → normalize-audio-R23VODOA.js} +4 -4
- package/dist/{open-MCGYEFML.js → open-GEOB4L3S.js} +4 -4
- package/dist/{play-WXOV3BD7.js → play-BYUS37GA.js} +9 -9
- package/dist/{present-RVG4J6CJ.js → present-BZLRNHDY.js} +9 -9
- package/dist/{preview-PDUQR2JQ.js → preview-TXML6PQ7.js} +5 -5
- package/dist/publish-VX5OH4ST.js +1 -1
- package/dist/{render-5BGU3FXU.js → render-57SXH6NS.js} +7 -7
- package/dist/{render-JNJVFBFF.js → render-JTY7XQFQ.js} +11 -86
- package/dist/skills/hyperframes-cli/references/beats.md +2 -6
- package/dist/{skills-LKJA27ZN.js → skills-2LBVMKVY.js} +5 -5
- package/dist/{skillsUpdateCheck-RFZJKZC4.js → skillsUpdateCheck-5DRXL565.js} +3 -3
- package/dist/{snapshot-EOYA4MLG.js → snapshot-V2L77FCF.js} +13 -13
- package/dist/{staticProjectServer-S3NK3V4S.js → staticProjectServer-4CQ3KDQK.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-CXL23NEv.js → hyperframes-player-CAclPB6q.js} +1 -1
- package/dist/studio/assets/{index-D7BvLHtZ.js → index-B82aOvgB.js} +118 -118
- package/dist/studio/assets/{index-CejKvBNw.js → index-DCwGKghK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-YM5HLXUS.js → studio-api-RYCDLEOR.js} +3 -3
- package/dist/{studioServer-CEXJK5TC.js → studioServer-B7H7EQ4U.js} +9 -9
- package/dist/{telemetry-7AWYECPL.js → telemetry-WVHWY3DU.js} +3 -3
- package/dist/{timeline-G7H373XX.js → timeline-EDXJ5L45.js} +8 -8
- package/dist/{tokens-GYH7NXXA.js → tokens-UNJONAXT.js} +2 -2
- package/dist/{transcribe-CIC7WAT5.js → transcribe-VX7ZE2IZ.js} +3 -3
- package/dist/{updateCheck-MQ44KGUR.js → updateCheck-NLH5E44Q.js} +2 -2
- package/dist/{upgrade-OL47SID3.js → upgrade-RGQJA2B4.js} +2 -2
- package/dist/{validate-TDCH6X3C.js → validate-4AN4PDV7.js} +11 -11
- package/package.json +2 -3
- package/dist/audio-GK4OVVTH.js +0 -2086
- package/dist/beat-analyzer.global.js +0 -341
- package/dist/beats-C3ZSK2R2.js +0 -322
- package/dist/lib-TPG2ZMAX.js +0 -128
- package/dist/studio/assets/index-Bl_xrA5T.js +0 -1
- /package/dist/{capture-ZPRK3TOZ.js → capture-M5ZAD3BI.js} +0 -0
- /package/dist/{lambda-4KCSMIM6.js → lambda-RAJA6ZNA.js} +0 -0
|
@@ -4,74 +4,6 @@ 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
|
-
forceRefreshCredentials,
|
|
9
|
-
resolveCloudAuthHeaders,
|
|
10
|
-
resolveCloudBaseUrl
|
|
11
|
-
} from "./chunk-KMAAOHLO.js";
|
|
12
|
-
import {
|
|
13
|
-
errorBox
|
|
14
|
-
} from "./chunk-K2FLNJVB.js";
|
|
15
|
-
import {
|
|
16
|
-
failCommand
|
|
17
|
-
} from "./chunk-PBN6GBJE.js";
|
|
18
|
-
|
|
19
|
-
// src/cloud/poll.ts
|
|
20
|
-
var DEFAULT_POLL_INTERVAL_MS = 1e4;
|
|
21
|
-
var DEFAULT_MAX_WAIT_MS = 60 * 60 * 1e3;
|
|
22
|
-
var TERMINAL_STATUSES = /* @__PURE__ */ new Set(["completed", "failed"]);
|
|
23
|
-
var PollTimeoutError = class extends Error {
|
|
24
|
-
lastDetail;
|
|
25
|
-
constructor(lastDetail, elapsedMs) {
|
|
26
|
-
super(
|
|
27
|
-
`Render ${lastDetail.render_id} did not reach a terminal state within ${Math.round(elapsedMs / 1e3)}s`
|
|
28
|
-
);
|
|
29
|
-
this.name = "PollTimeoutError";
|
|
30
|
-
this.lastDetail = lastDetail;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
function isTerminal(status) {
|
|
34
|
-
return TERMINAL_STATUSES.has(status);
|
|
35
|
-
}
|
|
36
|
-
async function pollUntilTerminal(client, renderId, options = {}) {
|
|
37
|
-
const intervalMs = options.intervalMs ?? DEFAULT_POLL_INTERVAL_MS;
|
|
38
|
-
const maxWaitMs = options.maxWaitMs ?? DEFAULT_MAX_WAIT_MS;
|
|
39
|
-
const now = options.now ?? (() => Date.now());
|
|
40
|
-
const sleep = options.sleep ?? defaultAbortableSleep(options.signal);
|
|
41
|
-
const started = now();
|
|
42
|
-
while (true) {
|
|
43
|
-
if (options.signal?.aborted) {
|
|
44
|
-
throw signalAbortError(options.signal);
|
|
45
|
-
}
|
|
46
|
-
const detail = await client.getRender({ render_id: renderId, signal: options.signal });
|
|
47
|
-
const elapsed = now() - started;
|
|
48
|
-
options.onTick?.(detail, elapsed);
|
|
49
|
-
if (isTerminal(detail.status)) {
|
|
50
|
-
return detail;
|
|
51
|
-
}
|
|
52
|
-
if (elapsed >= maxWaitMs) {
|
|
53
|
-
throw new PollTimeoutError(detail, elapsed);
|
|
54
|
-
}
|
|
55
|
-
await sleep(intervalMs);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function signalAbortError(signal) {
|
|
59
|
-
const reason = signal.reason;
|
|
60
|
-
return reason instanceof Error ? reason : new Error("Poll aborted");
|
|
61
|
-
}
|
|
62
|
-
function defaultAbortableSleep(signal) {
|
|
63
|
-
return (ms) => new Promise((resolve, reject) => {
|
|
64
|
-
const onAbort = () => {
|
|
65
|
-
clearTimeout(timer);
|
|
66
|
-
reject(signalAbortError(signal));
|
|
67
|
-
};
|
|
68
|
-
const timer = setTimeout(() => {
|
|
69
|
-
signal?.removeEventListener("abort", onAbort);
|
|
70
|
-
resolve();
|
|
71
|
-
}, ms);
|
|
72
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
7
|
|
|
76
8
|
// src/cloud/_gen/client.ts
|
|
77
9
|
var HyperframesApiError = class extends Error {
|
|
@@ -276,81 +208,7 @@ var HyperframesCloudClient = class {
|
|
|
276
208
|
}
|
|
277
209
|
};
|
|
278
210
|
|
|
279
|
-
// src/cloud/index.ts
|
|
280
|
-
async function createCloudClient() {
|
|
281
|
-
const client = new HyperframesCloudClient({
|
|
282
|
-
baseUrl: resolveCloudBaseUrl(),
|
|
283
|
-
getAuthHeaders: resolveCloudAuthHeaders
|
|
284
|
-
});
|
|
285
|
-
return wrapWith401Retry(client);
|
|
286
|
-
}
|
|
287
|
-
function wrapWith401Retry(client) {
|
|
288
|
-
return new Proxy(client, {
|
|
289
|
-
get(target, prop, receiver) {
|
|
290
|
-
const value = Reflect.get(target, prop, receiver);
|
|
291
|
-
if (typeof value !== "function") return value;
|
|
292
|
-
const original = value.bind(target);
|
|
293
|
-
return async (...args) => {
|
|
294
|
-
try {
|
|
295
|
-
return await original(...args);
|
|
296
|
-
} catch (err) {
|
|
297
|
-
if (err instanceof HyperframesApiError && err.status === 401) {
|
|
298
|
-
try {
|
|
299
|
-
await forceRefreshCredentials();
|
|
300
|
-
} catch {
|
|
301
|
-
throw err;
|
|
302
|
-
}
|
|
303
|
-
return await original(...args);
|
|
304
|
-
}
|
|
305
|
-
throw err;
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// src/cloud/errors.ts
|
|
313
|
-
var ERROR_CODE_HINTS = {
|
|
314
|
-
hyperframes_project_too_large: "The zip exceeded the 200 MB limit. Run `hyperframes cloud render --dry-run`, then add only verified-unneeded paths to `.hyperframesignore` or pre-host required large media.",
|
|
315
|
-
hyperframes_render_not_found: "The render_id no longer exists \u2014 either soft-deleted or never created.",
|
|
316
|
-
invalid_parameter: "Check the listed parameter against `hyperframes cloud render --help` for the accepted values.",
|
|
317
|
-
authentication_failed: "Run `hyperframes auth status` to confirm your credential; `hyperframes auth login` to re-auth.",
|
|
318
|
-
rate_limit_exceeded: "Retry after the duration in the Retry-After header."
|
|
319
|
-
};
|
|
320
|
-
function reportApiError(stage, err, options = {}) {
|
|
321
|
-
const hints = { ...ERROR_CODE_HINTS, ...options.extraHints };
|
|
322
|
-
if (err instanceof HyperframesApiError) {
|
|
323
|
-
if (err.status === 404 && options.notFound) {
|
|
324
|
-
errorBox("Not found", options.notFound);
|
|
325
|
-
failCommand();
|
|
326
|
-
}
|
|
327
|
-
const hint = err.code ? hints[err.code] : void 0;
|
|
328
|
-
const title = `${stage} (HTTP ${err.status})`;
|
|
329
|
-
if (hint) {
|
|
330
|
-
errorBox(title, err.message, hint);
|
|
331
|
-
} else if (options.suggestion) {
|
|
332
|
-
errorBox(title, err.message, options.suggestion);
|
|
333
|
-
} else if (err.code) {
|
|
334
|
-
errorBox(title, err.message, `code: ${err.code}`);
|
|
335
|
-
} else {
|
|
336
|
-
errorBox(title, err.message);
|
|
337
|
-
}
|
|
338
|
-
failCommand();
|
|
339
|
-
}
|
|
340
|
-
if (err instanceof Error) {
|
|
341
|
-
errorBox(stage, err.message, options.suggestion);
|
|
342
|
-
failCommand();
|
|
343
|
-
}
|
|
344
|
-
errorBox(stage, String(err), options.suggestion);
|
|
345
|
-
failCommand();
|
|
346
|
-
}
|
|
347
|
-
|
|
348
211
|
export {
|
|
349
|
-
DEFAULT_POLL_INTERVAL_MS,
|
|
350
|
-
DEFAULT_MAX_WAIT_MS,
|
|
351
|
-
PollTimeoutError,
|
|
352
|
-
pollUntilTerminal,
|
|
353
212
|
HyperframesApiError,
|
|
354
|
-
|
|
355
|
-
reportApiError
|
|
213
|
+
HyperframesCloudClient
|
|
356
214
|
};
|
|
@@ -19,7 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GIPNECWL.js";
|
|
23
|
+
import {
|
|
24
|
+
MEDIA_LINK_ATTR,
|
|
25
|
+
relinkSplitHalves
|
|
26
|
+
} from "./chunk-6JR2XUEE.js";
|
|
23
27
|
import {
|
|
24
28
|
DEFAULT_TARGET_LUFS,
|
|
25
29
|
absoluteLoudnessPlan,
|
|
@@ -29,10 +33,6 @@ import {
|
|
|
29
33
|
requiredFfmpeg,
|
|
30
34
|
resolveLocalAudioPath
|
|
31
35
|
} from "./chunk-C6TPGUWD.js";
|
|
32
|
-
import {
|
|
33
|
-
MEDIA_LINK_ATTR,
|
|
34
|
-
relinkSplitHalves
|
|
35
|
-
} from "./chunk-6JR2XUEE.js";
|
|
36
36
|
import {
|
|
37
37
|
PROXY_PARAMS_VERSION,
|
|
38
38
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveCliChromeGpuMode,
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForRuntimeReady
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
resolveCompositionViewportFromHtml
|
|
15
|
-
} from "./chunk-FH7WODJH.js";
|
|
12
|
+
} from "./chunk-ON2HYNGB.js";
|
|
16
13
|
import {
|
|
17
14
|
launchManagedBrowser,
|
|
18
15
|
resolveManagedGpuMode
|
|
19
16
|
} from "./chunk-B5FZ2CQM.js";
|
|
17
|
+
import {
|
|
18
|
+
resolveCompositionViewportFromHtml
|
|
19
|
+
} from "./chunk-FH7WODJH.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveProject
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YJKUE3LV.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
printDeprecationNotice,
|
|
35
35
|
withMeta
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-T5BG7PYZ.js";
|
|
37
37
|
import {
|
|
38
38
|
decodeWellFormedEscapes
|
|
39
39
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -251,7 +251,7 @@ async function validateInBrowser(project, opts) {
|
|
|
251
251
|
const projectDir = project.dir;
|
|
252
252
|
const { bundleToSingleHtml } = await import("./compiler-57M6W5WY.js");
|
|
253
253
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
254
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
254
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-4CQ3KDQK.js");
|
|
255
255
|
const { lintProject } = await import("./lintProject-BGDYHF3F.js");
|
|
256
256
|
const lintResult = await lintProject(projectDir);
|
|
257
257
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|