hyperframes 0.8.122 → 0.8.123
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-UDNFUHR7.js → add-CJXLRVWK.js} +14 -14
- package/dist/{animatedGifPrep-2EXOFDLI.js → animatedGifPrep-VHXPTSJL.js} +5 -5
- package/dist/{asset-YFEFDXZV.js → asset-KTRZSJ5R.js} +2 -2
- package/dist/{assetCataloger-NDJSFPJN.js → assetCataloger-NH6UQG4Y.js} +2 -2
- package/dist/{auth-22YSZLEK.js → auth-T52MOHC7.js} +2 -2
- package/dist/{autoUpdate-4OUJ7O3D.js → autoUpdate-EI6JX53V.js} +2 -2
- package/dist/{backgroundChecks-FP5AP654.js → backgroundChecks-7N3FFYIV.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ZXQVHWED.js → batchRender-JDH4PXPD.js} +3 -3
- package/dist/{beats-AML5JHGX.js → beats-TG2TOST6.js} +11 -11
- package/dist/{benchmark-6LELU6ZT.js → benchmark-WGXMGPUI.js} +11 -11
- package/dist/{browser-5NUYM6P2.js → browser-VMEADLNK.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-TSGE3UAO.js → bundleWithLocalizedFonts-EDBQ5EME.js} +2 -2
- package/dist/{capture-33BJRABG.js → capture-22IWCYV2.js} +2 -2
- package/dist/{capture-HFYBSASN.js → capture-UZFI2G65.js} +8 -8
- package/dist/{catalog-KZ2PUXHS.js → catalog-3V4SSSYE.js} +14 -14
- package/dist/{check-RJQIUSVM.js → check-LTKOTPFI.js} +30 -30
- package/dist/{checkBrowser-QQZCRUSY.js → checkBrowser-LTZPCRBO.js} +33 -33
- package/dist/{chunk-J22NAGNW.js → chunk-24AS45UQ.js} +29 -14
- package/dist/{chunk-KCJGTEJD.js → chunk-2FH6HOQ2.js} +1 -1
- package/dist/{chunk-C477PVA2.js → chunk-2QAAOW5T.js} +1 -1
- package/dist/{chunk-NA2DKY3M.js → chunk-3SHYUYXR.js} +9 -9
- package/dist/{chunk-QR77QVIT.js → chunk-3V6V66SZ.js} +2 -2
- package/dist/{chunk-OHJGKETC.js → chunk-4EZKLNMD.js} +1 -1
- package/dist/{chunk-26LWC4RP.js → chunk-4TIUZ6Z7.js} +2 -2
- package/dist/{chunk-VFZICECI.js → chunk-4XAAOWFC.js} +1 -1
- package/dist/chunk-53IO4HLZ.js +3541 -0
- package/dist/{chunk-XIZHC6UO.js → chunk-73KPBRCO.js} +1 -1
- package/dist/{chunk-OZ4V6VQ2.js → chunk-7NWNDQID.js} +3 -3
- package/dist/{chunk-JD3C44FP.js → chunk-AICUP6TU.js} +1 -1
- package/dist/chunk-AMV2OPXR.js +82 -0
- package/dist/{chunk-2CYCP3AY.js → chunk-BET5FXMM.js} +1 -1
- package/dist/{chunk-74G66BSC.js → chunk-CZRQH5SP.js} +1 -1
- package/dist/{chunk-NUWXK2NW.js → chunk-DR7F77AN.js} +1 -1
- package/dist/{chunk-TV2LRJVK.js → chunk-E26WHQFM.js} +2 -2
- package/dist/{chunk-SSOJUJFQ.js → chunk-EJF6CESB.js} +1 -1
- package/dist/{chunk-EBODC6OT.js → chunk-ELHC6CLH.js} +3 -3
- package/dist/{chunk-OQ6HLIYU.js → chunk-EYNWMEWX.js} +9 -9
- package/dist/{chunk-2BMZEUGD.js → chunk-GPUM6BRL.js} +1 -1
- package/dist/{chunk-KJHOYQ2T.js → chunk-HISVSZH7.js} +2 -2
- package/dist/{chunk-EB5XYJBZ.js → chunk-ILOJE2TE.js} +1 -1
- package/dist/{chunk-X6SS5FWY.js → chunk-IML47HIH.js} +7 -7
- package/dist/{chunk-Y6WM6GY3.js → chunk-IOMMM4AX.js} +1 -1
- package/dist/{chunk-A6DWJRHP.js → chunk-KQ7BAEVP.js} +2 -2
- package/dist/{chunk-ABMHBIWX.js → chunk-MBSCHJQZ.js} +1 -1
- package/dist/{chunk-BGYDTAYR.js → chunk-MUAFAG77.js} +4 -4
- package/dist/{chunk-JQPICVXM.js → chunk-OCH6V4FB.js} +2 -2
- package/dist/{chunk-ZIPAUKTK.js → chunk-PQQZNS5K.js} +1 -1
- package/dist/{chunk-5KTDZVF3.js → chunk-PUFPAYTJ.js} +1 -1
- package/dist/{chunk-7T6RZSKP.js → chunk-QLKCB3NY.js} +7 -7
- package/dist/{chunk-UUI2OMI7.js → chunk-RTINVJNS.js} +1 -1
- package/dist/{chunk-LQBR4IC7.js → chunk-RYP46ARK.js} +1 -1
- package/dist/{chunk-UQR6DWPM.js → chunk-S3JOM6L4.js} +3 -3
- package/dist/{chunk-3VG4A22C.js → chunk-SKZ6H3JT.js} +1 -1
- package/dist/{chunk-VP4IJ3NC.js → chunk-TLA5RBEB.js} +1 -1
- package/dist/{chunk-FD5UEKRP.js → chunk-UI2I6ZQE.js} +1 -1
- package/dist/{chunk-DQKPTQEA.js → chunk-UMMVYWDI.js} +5 -5
- package/dist/{chunk-MOPVB4VL.js → chunk-VEGNMQZI.js} +2 -2
- package/dist/{chunk-NKS75GFI.js → chunk-WAD4ACBZ.js} +2 -2
- package/dist/{chunk-ZTWFHWRR.js → chunk-XIJTGR4O.js} +1 -1
- package/dist/{chunk-DNIJ7MH6.js → chunk-XQSMY5HF.js} +2 -2
- package/dist/{chunk-Q4GCD5WE.js → chunk-Z3SUEG2T.js} +5 -5
- package/dist/{clean-QXMDWVYB.js → clean-YZQXCSXZ.js} +14 -14
- package/dist/cli.js +52 -51
- package/dist/{cloud-WTPVHGBP.js → cloud-TYUXSEGA.js} +4 -4
- package/dist/{cloudrun-JFN7W6XI.js → cloudrun-MA2JVRHV.js} +3 -3
- package/dist/{compare-CCDZEHTS.js → compare-6DSDY2IF.js} +24 -24
- package/dist/{compiler-DNZFJIKO.js → compiler-4FHYKPNR.js} +2 -2
- package/dist/{component-OSVQHEQJ.js → component-NY4JERQ5.js} +3 -3
- package/dist/{compositions-CCMN5HAA.js → compositions-SI2SKZAF.js} +10 -10
- package/dist/{delete-ZE7Z7SDY.js → delete-YU7XRF6M.js} +2 -2
- package/dist/{dist-Z7QP5AQY.js → dist-AMQZTIJP.js} +2 -2
- package/dist/{doctor-KKRGCPV3.js → doctor-MXX7AHXT.js} +9 -9
- package/dist/{events-YN5EY7O7.js → events-LLCZN2LK.js} +8 -8
- package/dist/{events-WJKCFVF7.js → events-R5N3EVAF.js} +7 -7
- package/dist/{feedback-DHLYWTNU.js → feedback-MIZ3HJT4.js} +9 -9
- package/dist/{figma-KCTT7ELR.js → figma-4ESVBLHH.js} +3 -3
- package/dist/fontLocalizeCli.js +7 -7
- package/dist/{get-XCGOGN53.js → get-OF3I77OW.js} +2 -2
- package/dist/{gpuPolicy-J5CPE3TK.js → gpuPolicy-KDI7HVOA.js} +5 -5
- package/dist/{grade-compare-FBX5S77X.js → grade-compare-QXE4ZEZU.js} +24 -24
- package/dist/{help-6TQVEU2Q.js → help-NFHZFSQN.js} +3 -2
- package/dist/{history-PPDOAO2Z.js → history-DTRCFREW.js} +14 -14
- package/dist/hyperframe-runtime.js +50 -50
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +50 -50
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-42EBGTUI.js → info-KRDLMYKB.js} +10 -10
- package/dist/{init-SERRMFRH.js → init-XTXSP6IU.js} +21 -21
- package/dist/{inspect-6TEDC7QZ.js → inspect-KH3CTX62.js} +25 -25
- package/dist/{installer-C47R4ZSU.js → installer-M5OHZ3QU.js} +4 -4
- package/dist/{keyframes-BNLMFEWU.js → keyframes-K5UWQDSW.js} +11 -11
- package/dist/{lambda-DGWKFO3L.js → lambda-PXGK25LH.js} +4 -4
- package/dist/{layout-PMYXB4ZJ.js → layout-SYWCNF2S.js} +25 -25
- package/dist/{lint-DDNL3QQ5.js → lint-A5W6BCKC.js} +11 -11
- package/dist/{list-VCELX3BO.js → list-CXWE53HJ.js} +2 -2
- package/dist/{login-WC4YD67C.js → login-WUPTUIG2.js} +4 -4
- package/dist/{media-treatment-4QGIOHQR.js → media-treatment-INJWEP6H.js} +11 -11
- package/dist/{models-UTVBFNKD.js → models-D5CMY6VB.js} +6 -6
- package/dist/{motionShot-3WDJAW4C.js → motionShot-HS4M4WOQ.js} +11 -11
- package/dist/{normalize-audio-ZXESA45N.js → normalize-audio-ILF3IDZC.js} +10 -10
- package/dist/open-4V3RXCR6.js +115 -0
- package/dist/{pipeline-DRXU55OB.js → pipeline-CPGRA375.js} +5 -5
- package/dist/{play-AUEOCKY3.js → play-IFATKPFL.js} +19 -19
- package/dist/{preflight-OJJZVHWE.js → preflight-IQEYFD33.js} +6 -6
- package/dist/{present-7JZQMSSU.js → present-A3EXMPEB.js} +15 -15
- package/dist/{preview-3AMXHHVS.js → preview-6OFPNSRQ.js} +27 -22
- package/dist/{producer-QI55RCFB.js → producer-T4HGO327.js} +1 -1
- package/dist/{projectConfig-EJNHN452.js → projectConfig-VKUAJTKN.js} +6 -6
- package/dist/{publication-SH4OD64P.js → publication-EYW5DW5Q.js} +2 -2
- package/dist/{publish-2B5LKGKK.js → publish-7N3KAN23.js} +7 -7
- package/dist/{remove-background-EJ4SPMBK.js → remove-background-76NDLWX2.js} +6 -6
- package/dist/{render-GWIDYUYW.js → render-FVVTP6IC.js} +11 -11
- package/dist/{render-JRYEUEAR.js → render-SGKRP4OI.js} +41 -23
- package/dist/{render-Y4OQV7BU.js → render-WWSM5VDX.js} +3 -3
- package/dist/{render-batch-3F43JEX2.js → render-batch-UHVLIDQ6.js} +3 -3
- package/dist/{renderCancellation-WUM56H5O.js → renderCancellation-TZ2YQXLI.js} +5 -5
- package/dist/{resolver-WHBQ7QFS.js → resolver-BERTN5TY.js} +4 -4
- package/dist/{sherpa-5OYOKOOP.js → sherpa-WAI3BU35.js} +6 -6
- package/dist/{skills-JKBN3CQS.js → skills-4J56N4BF.js} +10 -10
- package/dist/{skillsUpdateCheck-KUYRATKA.js → skillsUpdateCheck-GPLLGZTN.js} +3 -3
- package/dist/{snapshot-M7FF5DBZ.js → snapshot-XPPNHMIG.js} +25 -25
- package/dist/{src-7NUMTCMB.js → src-6ZDBAHYH.js} +6 -6
- package/dist/{src-S7FSBDSO.js → src-K6L2URKG.js} +4 -4
- package/dist/{staticProjectServer-AQFAOUJX.js → staticProjectServer-ETIXS3GJ.js} +13 -13
- package/dist/{status-55DDWDMV.js → status-P2I66DU7.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-DMzBHhbH.js → hyperframes-player-yABdb6yk.js} +1 -1
- package/dist/studio/assets/{index-lyjhSEzi.js → index-D77MIjSJ.js} +1 -1
- package/dist/studio/assets/{index-CBRX2eZX.js → index-DWjF2Kxw.js} +1 -1
- package/dist/studio/assets/{index-B-YDp8hN.js → index-Dt7lWtY7.js} +146 -146
- package/dist/studio/assets/{index-t1LH6H5H.css → index-LrNlT5Tg.css} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/studio/index.js +1195 -1009
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/styles.css +1 -1
- package/dist/{studio-api-7RBB3E3E.js → studio-api-PTVN2GZ5.js} +7 -7
- package/dist/{studioServer-5FPPFWL6.js → studioServer-55366NG4.js} +72 -37
- package/dist/{system-BQ72Y6YD.js → system-M44QRAAZ.js} +5 -5
- package/dist/{telemetry-OIX76XCZ.js → telemetry-6GQL3BIP.js} +8 -8
- package/dist/{timeline-JWDLDSVO.js → timeline-NMG3JG3V.js} +14 -14
- package/dist/{tokens-HZKAUSHK.js → tokens-5LYIBBEF.js} +2 -2
- package/dist/{transcribe-AQSGSWXV.js → transcribe-3SONDYLT.js} +6 -6
- package/dist/{transcribe-G2HSKAJN.js → transcribe-4DGPFZTU.js} +11 -11
- package/dist/{tts-P3LIPIL5.js → tts-CGUXR7R4.js} +1 -1
- package/dist/{updateCheck-Y6ICSKXS.js → updateCheck-CXNND3CL.js} +2 -2
- package/dist/{upgrade-XU35HZ7O.js → upgrade-RFTKDIVZ.js} +2 -2
- package/dist/{urlDownloader-V7FRXT7U.js → urlDownloader-VRZX26OK.js} +4 -4
- package/dist/{validate-J2D2ZRPB.js → validate-3BFHVVZH.js} +15 -15
- package/dist/{video-MZPB3UAC.js → video-ECPRKRRP.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-C6MUZ4T2.js +0 -3541
- package/dist/{synthesize-K62TIZWI.js → synthesize-BDXNRYZN.js} +4 -4
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQSMY5HF.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S3JOM6L4.js";
|
|
12
12
|
import {
|
|
13
13
|
getPowerState
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ILOJE2TE.js";
|
|
15
15
|
import {
|
|
16
16
|
CliRuntimeError
|
|
17
17
|
} from "./chunk-PBN6GBJE.js";
|
|
18
18
|
import {
|
|
19
19
|
redactTelemetryString
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TLA5RBEB.js";
|
|
21
21
|
import {
|
|
22
22
|
readConfig
|
|
23
23
|
} from "./chunk-XUXGIA7H.js";
|
|
@@ -0,0 +1,82 @@
|
|
|
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/desktopApp.ts
|
|
9
|
+
import { spawnSync } from "child_process";
|
|
10
|
+
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
11
|
+
import { homedir } from "os";
|
|
12
|
+
import { basename, join, relative } from "path";
|
|
13
|
+
var DESKTOP_BUNDLE_IDS = ["dev.hyperframes.desktop", "dev.hyperframes.desktop.canary"];
|
|
14
|
+
var DESKTOP_APP_NAMES = ["HyperFrames.app", "HyperFrames Canary.app"];
|
|
15
|
+
var DESKTOP_DOWNLOAD_URL = "https://hyperframes.dev/studio/download";
|
|
16
|
+
var DOWNLOAD_HINT = `Edit it by chatting with Framey in HyperFrames Studio \u2192 ${DESKTOP_DOWNLOAD_URL}`;
|
|
17
|
+
var HANDOFF_READY = false;
|
|
18
|
+
var AGENT_HANDOFF_FILE = join(".hyperframes", "agent-handoff.json");
|
|
19
|
+
function agentSession(env = process.env) {
|
|
20
|
+
if (env.CLAUDE_CODE_SESSION_ID)
|
|
21
|
+
return { engine: "claude", sessionId: env.CLAUDE_CODE_SESSION_ID };
|
|
22
|
+
if (env.CODEX_THREAD_ID) return { engine: "codex", sessionId: env.CODEX_THREAD_ID };
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
var openWithBundle = (bundleId, dir) => spawnSync("open", ["-b", bundleId, dir], { stdio: "ignore" }).status === 0;
|
|
26
|
+
function leaveHandoff(dir, session) {
|
|
27
|
+
if (!session) return null;
|
|
28
|
+
try {
|
|
29
|
+
mkdirSync(join(dir, ".hyperframes"), { recursive: true });
|
|
30
|
+
writeFileSync(join(dir, AGENT_HANDOFF_FILE), JSON.stringify(session));
|
|
31
|
+
return session;
|
|
32
|
+
} catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function openInDesktop(dir, {
|
|
37
|
+
ready = HANDOFF_READY,
|
|
38
|
+
platform = process.platform,
|
|
39
|
+
open = openWithBundle,
|
|
40
|
+
installed = () => desktopInstalled({ platform }),
|
|
41
|
+
env = process.env
|
|
42
|
+
} = {}) {
|
|
43
|
+
const notOpened = (reason) => ({ opened: false, reason, downloadUrl: DESKTOP_DOWNLOAD_URL });
|
|
44
|
+
if (!ready) return notOpened("handoff-unavailable");
|
|
45
|
+
if (platform !== "darwin") return notOpened("unsupported-platform");
|
|
46
|
+
const bundleId = DESKTOP_BUNDLE_IDS.find((id) => open(id, dir));
|
|
47
|
+
if (!bundleId) return notOpened(installed() ? "open-failed" : "not-installed");
|
|
48
|
+
return { opened: true, bundleId, handedOver: leaveHandoff(dir, agentSession(env)) };
|
|
49
|
+
}
|
|
50
|
+
function openCommandFor(dir, cwd = process.cwd()) {
|
|
51
|
+
const shown = relative(cwd, dir) || ".";
|
|
52
|
+
return `hyperframes open ${/\s/.test(shown) ? JSON.stringify(shown) : shown}`;
|
|
53
|
+
}
|
|
54
|
+
var spotlightFinds = (bundleId) => spawnSync("mdfind", [`kMDItemCFBundleIdentifier == '${bundleId}'`], { encoding: "utf8" }).stdout?.split("\n").some((path) => path.endsWith(".app") && !basename(path).startsWith(".")) ?? false;
|
|
55
|
+
function desktopInstalled({
|
|
56
|
+
platform = process.platform,
|
|
57
|
+
home = homedir(),
|
|
58
|
+
exists = existsSync,
|
|
59
|
+
spotlight = spotlightFinds
|
|
60
|
+
} = {}) {
|
|
61
|
+
if (platform !== "darwin") return false;
|
|
62
|
+
const folders = ["/Applications", join(home, "Applications")];
|
|
63
|
+
if (folders.some((folder) => DESKTOP_APP_NAMES.some((name) => exists(join(folder, name)))))
|
|
64
|
+
return true;
|
|
65
|
+
return DESKTOP_BUNDLE_IDS.some(spotlight);
|
|
66
|
+
}
|
|
67
|
+
function desktopHint(dir, {
|
|
68
|
+
env = process.env,
|
|
69
|
+
ready = HANDOFF_READY,
|
|
70
|
+
installed
|
|
71
|
+
} = {}) {
|
|
72
|
+
if (env.HYPERFRAMES_DESKTOP_PROJECT) return null;
|
|
73
|
+
return ready && (installed ?? desktopInstalled()) ? `Edit it with Framey: ${openCommandFor(dir)}` : DOWNLOAD_HINT;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
DESKTOP_DOWNLOAD_URL,
|
|
78
|
+
DOWNLOAD_HINT,
|
|
79
|
+
HANDOFF_READY,
|
|
80
|
+
openInDesktop,
|
|
81
|
+
desktopHint
|
|
82
|
+
};
|
|
@@ -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-LLCZN2LK.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XIJTGR4O.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-GMECXFAN.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TLA5RBEB.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-24AS45UQ.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GPUM6BRL.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MBSCHJQZ.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/staticProjectServer.ts
|
|
27
27
|
import { createServer } from "http";
|
|
@@ -6,20 +6,20 @@ 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-UI2I6ZQE.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z3SUEG2T.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCompositionViewportFromHtml
|
|
18
18
|
} from "./chunk-5Z63TBTX.js";
|
|
19
19
|
import {
|
|
20
20
|
launchManagedBrowser,
|
|
21
21
|
resolveManagedGpuMode
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SKZ6H3JT.js";
|
|
23
23
|
import {
|
|
24
24
|
c
|
|
25
25
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
printDeprecationNotice,
|
|
35
35
|
withMeta
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CZRQH5SP.js";
|
|
37
37
|
import {
|
|
38
38
|
normalizeErrorMessage
|
|
39
39
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -222,7 +222,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
222
222
|
async function localizeRemoteAssets(html) {
|
|
223
223
|
let dir;
|
|
224
224
|
try {
|
|
225
|
-
const { loadProducer } = await import("./producer-
|
|
225
|
+
const { loadProducer } = await import("./producer-T4HGO327.js");
|
|
226
226
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
227
227
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
228
228
|
const assetDir = dir;
|
|
@@ -243,9 +243,9 @@ async function localizeRemoteAssets(html) {
|
|
|
243
243
|
}
|
|
244
244
|
async function validateInBrowser(project, opts) {
|
|
245
245
|
const projectDir = project.dir;
|
|
246
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
246
|
+
const { bundleToSingleHtml } = await import("./compiler-4FHYKPNR.js");
|
|
247
247
|
const { ensureBrowser } = await import("./manager-CT3D67CG.js");
|
|
248
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
248
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-ETIXS3GJ.js");
|
|
249
249
|
const { lintProject } = await import("./lintProject-MXUZEBDH.js");
|
|
250
250
|
const lintResult = await lintProject(projectDir);
|
|
251
251
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -267,9 +267,9 @@ async function validateInBrowser(project, opts) {
|
|
|
267
267
|
try {
|
|
268
268
|
const browser = await ensureBrowser();
|
|
269
269
|
const puppeteer = await import("puppeteer-core");
|
|
270
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
270
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-K6L2URKG.js");
|
|
271
271
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
272
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu } = await import("./gpuPolicy-
|
|
272
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu } = await import("./gpuPolicy-KDI7HVOA.js");
|
|
273
273
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
274
274
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
275
275
|
const chromeBrowser = await launchManagedBrowser(puppeteer.default, {
|
|
@@ -6,10 +6,10 @@ 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-24AS45UQ.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-53IO4HLZ.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
EncoderInterruptedError,
|
|
18
18
|
encoderFailureError,
|
|
19
19
|
prepareAnimatedGifInputs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4TIUZ6Z7.js";
|
|
21
21
|
import {
|
|
22
22
|
createStudioPositionSeekReapplyScript
|
|
23
23
|
} from "./chunk-KC5XXX3X.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
validateEngineConfigSnapshot,
|
|
146
146
|
verifyDiskDrawElementSamples,
|
|
147
147
|
writeCapturedFrame
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-WAD4ACBZ.js";
|
|
149
149
|
import {
|
|
150
150
|
HF_VFX_ATTR,
|
|
151
151
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
resolveAbsoluteMediaStartSeconds,
|
|
164
164
|
resolveAuthoredTimingWindow,
|
|
165
165
|
toFps
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-TLA5RBEB.js";
|
|
167
167
|
import {
|
|
168
168
|
CANVAS_DIMENSIONS,
|
|
169
169
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
inlineSubCompositions,
|
|
189
189
|
prepareFlattenedInnerRoot,
|
|
190
190
|
styleElementsFor
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-RYP46ARK.js";
|
|
192
192
|
import {
|
|
193
193
|
HF_COLOR_GRADING_ATTR,
|
|
194
194
|
MAX_AUDIO_GAIN,
|
|
@@ -209,7 +209,7 @@ import {
|
|
|
209
209
|
resolveNaturalMediaTimelineDurationFromValues,
|
|
210
210
|
shouldClampResolvedMediaDuration,
|
|
211
211
|
sourceTimeAt
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-53IO4HLZ.js";
|
|
213
213
|
import {
|
|
214
214
|
chromeMajorCeiling
|
|
215
215
|
} from "./chunk-TWWSYAKJ.js";
|
|
@@ -14156,7 +14156,7 @@ function startServer(options = {}) {
|
|
|
14156
14156
|
});
|
|
14157
14157
|
async function shutdown(signal) {
|
|
14158
14158
|
log.info(`Received ${signal}, shutting down`);
|
|
14159
|
-
const { drainBrowserPool } = await import("./src-
|
|
14159
|
+
const { drainBrowserPool } = await import("./src-K6L2URKG.js");
|
|
14160
14160
|
await drainBrowserPool().catch(() => {
|
|
14161
14161
|
});
|
|
14162
14162
|
const handle = await Promise.race([
|
|
@@ -15279,7 +15279,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
|
|
|
15279
15279
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
15280
15280
|
if (probeResult.probeSession) {
|
|
15281
15281
|
try {
|
|
15282
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
15282
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-K6L2URKG.js");
|
|
15283
15283
|
await closeCaptureSession2(probeResult.probeSession);
|
|
15284
15284
|
} catch (err) {
|
|
15285
15285
|
log.warn("[plan] probe session close failed", {
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7NWNDQID.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S3JOM6L4.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -7,16 +7,16 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7NWNDQID.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S3JOM6L4.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-ZTZA4UWZ.js";
|
|
17
17
|
import {
|
|
18
18
|
detectAgentRuntime
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ILOJE2TE.js";
|
|
20
20
|
import {
|
|
21
21
|
readConfig,
|
|
22
22
|
writeConfig
|
|
@@ -83,7 +83,7 @@ async function maybePromptRenderFeedback(opts) {
|
|
|
83
83
|
async function getDoctorSummary() {
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
|
-
import("./system-
|
|
86
|
+
import("./system-M44QRAAZ.js"),
|
|
87
87
|
import("./ffmpeg-QIUFEFTY.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isAllowedHtmlAttribute,
|
|
9
9
|
isSafeAttributeValue,
|
|
10
10
|
sanitizeRichTextChildren
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TLA5RBEB.js";
|
|
12
12
|
import {
|
|
13
13
|
removeElementWithGsapCascade
|
|
14
14
|
} from "./chunk-F7MXHGU3.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
ensureHfIds,
|
|
18
18
|
mintHfId,
|
|
19
19
|
walkCompositionDescendants
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RYP46ARK.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
23
|
} from "./chunk-N4RVOW43.js";
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-73KPBRCO.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MBSCHJQZ.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BET5FXMM.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-E26WHQFM.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XIJTGR4O.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7NWNDQID.js";
|
|
33
33
|
import {
|
|
34
34
|
c
|
|
35
35
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-PBN6GBJE.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TLA5RBEB.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-ZTZA4UWZ.js";
|
|
13
13
|
import {
|
|
14
14
|
getSystemMeta
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ILOJE2TE.js";
|
|
16
16
|
import {
|
|
17
17
|
getInvocationId
|
|
18
18
|
} from "./chunk-54HJ63Q2.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
evaluateCanary,
|
|
24
24
|
findCanary,
|
|
25
25
|
parseCanaryOverride
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TLA5RBEB.js";
|
|
27
27
|
import {
|
|
28
28
|
hostAnswers
|
|
29
29
|
} from "./chunk-K4WIOZFP.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-XUXGIA7H.js";
|
|
38
38
|
import {
|
|
39
39
|
VERSION
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XQSMY5HF.js";
|
|
41
41
|
|
|
42
42
|
// src/telemetry/transport.ts
|
|
43
43
|
import { spawn } from "child_process";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4XAAOWFC.js";
|
|
10
10
|
import {
|
|
11
11
|
requestCliExit
|
|
12
12
|
} from "./chunk-PBN6GBJE.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PUFPAYTJ.js";
|
|
20
20
|
import {
|
|
21
21
|
c
|
|
22
22
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -25,24 +25,24 @@ import {
|
|
|
25
25
|
getFreeDiskMb,
|
|
26
26
|
getShmSizeMb,
|
|
27
27
|
getSystemMeta
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ILOJE2TE.js";
|
|
29
29
|
import {
|
|
30
30
|
defineCommand
|
|
31
31
|
} from "./chunk-S3S4TGEH.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveExtractCacheDir
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WAD4ACBZ.js";
|
|
35
35
|
import {
|
|
36
36
|
getUpdateMeta,
|
|
37
37
|
withMeta
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CZRQH5SP.js";
|
|
39
39
|
import {
|
|
40
40
|
CONFIG_PATH,
|
|
41
41
|
withFileLock
|
|
42
42
|
} from "./chunk-XUXGIA7H.js";
|
|
43
43
|
import {
|
|
44
44
|
VERSION
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XQSMY5HF.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeErrorMessage
|
|
48
48
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_VP9_CPU_USED,
|
|
18
18
|
renderProvenanceArgs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WAD4ACBZ.js";
|
|
20
20
|
import {
|
|
21
21
|
loadOptionalPackage
|
|
22
22
|
} from "./chunk-XT5P4QMO.js";
|
|
@@ -202,7 +202,7 @@ function inferInputKind(inputPath) {
|
|
|
202
202
|
}
|
|
203
203
|
async function probeMedia(inputPath) {
|
|
204
204
|
const isImage = inferInputKind(inputPath) === "image";
|
|
205
|
-
const engine = await import("./src-
|
|
205
|
+
const engine = await import("./src-K6L2URKG.js");
|
|
206
206
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
207
207
|
if (isImage) {
|
|
208
208
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|