hyperframes 0.8.185 → 0.8.188
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-ODTNPRGG.js → add-UORF6235.js} +12 -12
- package/dist/{animatedGifPrep-PEP5GWOJ.js → animatedGifPrep-23MLSEXF.js} +7 -7
- package/dist/api.js +16 -16
- package/dist/{asset-EZG42XPA.js → asset-DOKDVHCW.js} +2 -2
- package/dist/{assetCataloger-OHAJFCA7.js → assetCataloger-CD27MHEY.js} +7 -7
- package/dist/audio-3NMZHNNU.js +2317 -0
- package/dist/{auth-VP2SIZFN.js → auth-AWKTSKGC.js} +1 -1
- package/dist/{autoUpdate-RVSUX4SS.js → autoUpdate-VBOI4CNU.js} +2 -2
- package/dist/{backgroundChecks-LEHK74NS.js → backgroundChecks-S4R454YU.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-3X6CL7PK.js → batchRender-EGPYNDHK.js} +4 -4
- package/dist/{beats-66VPQLSC.js → beats-YENEQUOA.js} +5 -5
- package/dist/{benchmark-PBJVTOJP.js → benchmark-THSJIQG7.js} +9 -9
- package/dist/{browser-TPL5MWGC.js → browser-BDMVQ6WJ.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-67MLTHKM.js → bundleWithLocalizedFonts-3QG722YD.js} +2 -2
- package/dist/{capture-YYRE7EV3.js → capture-WM4XDMFX.js} +2 -2
- package/dist/{capture-F3GNMRZM.js → capture-Z6BGCTK3.js} +10 -10
- package/dist/{captureCompositionFrame-PXV2ISHD.js → captureCompositionFrame-EMHSAIBZ.js} +15 -11
- package/dist/{catalog-6SDD3OHF.js → catalog-7TV6UNCG.js} +12 -12
- package/dist/{catch-up-CWIVA5VG.js → catch-up-63IUDZRW.js} +4 -4
- package/dist/{check-YQ6REK2S.js → check-7RHZL4DV.js} +32 -32
- package/dist/{checkBrowser-5XZCBRXM.js → checkBrowser-PF56CT5X.js} +29 -29
- package/dist/{chunk-TAX2ZJAP.js → chunk-2DHCCBCN.js} +9 -9
- package/dist/{chunk-K73RJB23.js → chunk-2WUDFZCR.js} +2 -2
- package/dist/{chunk-4CTNDBE3.js → chunk-44QWRPGE.js} +2 -2
- package/dist/{chunk-X6L6MD5B.js → chunk-46VJ2UAV.js} +6 -6
- package/dist/{chunk-BRAPBUPQ.js → chunk-57XL23DE.js} +1 -1
- package/dist/{chunk-J36JVBLR.js → chunk-5C7R55BJ.js} +1 -1
- package/dist/{chunk-SKYPMHQC.js → chunk-5DPV7LU3.js} +3 -3
- package/dist/{chunk-D42NU3DZ.js → chunk-5OZI55AC.js} +1 -1
- package/dist/{chunk-5UBZPG74.js → chunk-6A45RKAK.js} +1 -1
- package/dist/{chunk-I7QMXZSB.js → chunk-6HYPEIH7.js} +2 -2
- package/dist/{chunk-KQ4JEJLF.js → chunk-6HZ7TSJJ.js} +14 -8
- package/dist/{chunk-6ASIXMFP.js → chunk-6OWNUXTU.js} +1 -1
- package/dist/{chunk-WQLKDL35.js → chunk-6Q5CFUAP.js} +1 -1
- package/dist/{chunk-G2UANIDX.js → chunk-B2P4JRUJ.js} +1 -1
- package/dist/chunk-BPX7LZG6.js +3896 -0
- package/dist/{chunk-EMAWIZ54.js → chunk-BU4HRISA.js} +58 -21
- package/dist/{chunk-ESBMUZXZ.js → chunk-BWEZDN6U.js} +1 -1
- package/dist/{chunk-5UDRPPN2.js → chunk-CE7EQUBV.js} +8 -5
- package/dist/{chunk-UPR3MU6Z.js → chunk-DA4TQFSF.js} +1 -1
- package/dist/{chunk-HDIRZGK4.js → chunk-DG4ME554.js} +1 -1
- package/dist/{chunk-RTBSA3EA.js → chunk-DLFAVRF3.js} +1 -1
- package/dist/{chunk-TTVHYD5R.js → chunk-EI7FP7F3.js} +1 -1
- package/dist/{chunk-RUEGYANA.js → chunk-FOLMMQF3.js} +11 -11
- package/dist/{chunk-5GUKZRQN.js → chunk-FSTLXRIN.js} +1 -1
- package/dist/{chunk-CX3USX23.js → chunk-FWVILDOZ.js} +3 -3
- package/dist/{chunk-IVEFOUZI.js → chunk-GYBPAKBM.js} +2287 -2264
- package/dist/{chunk-HXUTX5GR.js → chunk-HKUZCSNZ.js} +2 -2
- package/dist/{chunk-PMMQRJDE.js → chunk-HPQSUPR7.js} +1 -1
- package/dist/{chunk-7RAY4WZP.js → chunk-I7C5GUEQ.js} +3 -3
- package/dist/{chunk-55YELV7B.js → chunk-IA2IDJAG.js} +1 -1
- package/dist/{chunk-7PS6RVWD.js → chunk-IJYR4TTA.js} +1 -1
- package/dist/{chunk-6RIZY7OP.js → chunk-JWRT2IXO.js} +1 -1
- package/dist/{chunk-2TAS5O4P.js → chunk-JYC53CW4.js} +108 -20
- package/dist/{chunk-IDFNKFPL.js → chunk-KDBPZOXK.js} +18 -7
- package/dist/{chunk-ISTRDGIX.js → chunk-KWSEIVR6.js} +1 -1
- package/dist/{chunk-IPDKZ5IN.js → chunk-KY7375C4.js} +1 -1
- package/dist/{chunk-F3OPUWQX.js → chunk-L243NE72.js} +7 -7
- package/dist/{chunk-H6UY725W.js → chunk-LWY3PFJ7.js} +2 -2
- package/dist/{chunk-6GPR3G3C.js → chunk-LWYZN7HS.js} +1 -1
- package/dist/{chunk-OAG47RE6.js → chunk-MJKUCR3C.js} +1 -1
- package/dist/{chunk-SQVRXHOW.js → chunk-MTPPEEYZ.js} +3 -3
- package/dist/{chunk-TOI35GN2.js → chunk-MXXX6WVC.js} +1 -1
- package/dist/{chunk-BH7TTIPN.js → chunk-NFHRGHCJ.js} +5 -5
- package/dist/{chunk-IDGLGXPA.js → chunk-NFLZNSUZ.js} +1 -1
- package/dist/{chunk-K2ZKXTVL.js → chunk-NMOTNNP2.js} +1 -1
- package/dist/{chunk-LYKSTRAY.js → chunk-OJOZXWLC.js} +3 -3
- package/dist/{chunk-FX6RUJUY.js → chunk-OKSYDQHY.js} +3 -3
- package/dist/{chunk-H5SM5PJI.js → chunk-PMXR3IUH.js} +1 -1
- package/dist/{chunk-A6QCO474.js → chunk-PQLFJYGP.js} +5 -5
- package/dist/{chunk-PFD25NAC.js → chunk-RIJHDTM5.js} +4 -0
- package/dist/{chunk-Q47FAYYK.js → chunk-SMF6YAUL.js} +9 -11
- package/dist/{chunk-EMSDWBG3.js → chunk-T3OXKSRG.js} +2 -2
- package/dist/{chunk-VHZ6DL3M.js → chunk-TMK4Q7JA.js} +10 -7
- package/dist/{chunk-Q447CX26.js → chunk-TSFA2Y5C.js} +60 -47
- package/dist/{chunk-XWC7CNPY.js → chunk-UF6RCYA5.js} +1 -1
- package/dist/{chunk-I45HL3VP.js → chunk-V6NM4KL3.js} +3 -3
- package/dist/{chunk-FFJ5TDRD.js → chunk-VHBBV5DH.js} +10 -3
- package/dist/{chunk-HHSJJFVM.js → chunk-W2KGJHUL.js} +2 -2
- package/dist/{chunk-37CNYTQQ.js → chunk-X556BGL7.js} +1 -1
- package/dist/{chunk-UJKQWGFF.js → chunk-X7HBSTCZ.js} +8 -0
- package/dist/{chunk-CML25PAF.js → chunk-XNFDDVJS.js} +27 -3
- package/dist/{chunk-J5XEZ24I.js → chunk-XPVN4R66.js} +3 -3
- package/dist/{chunk-I3IH5MV5.js → chunk-YCW345M4.js} +222 -118
- package/dist/{chunk-KROXPHXX.js → chunk-YV4WT7CJ.js} +5 -9
- package/dist/{chunk-PHMBMOXF.js → chunk-YZ73IPW2.js} +48 -4
- package/dist/{clean-7J6ZCCGV.js → clean-43O47OTN.js} +16 -16
- package/dist/cli.js +53 -53
- package/dist/{cloud-7IJCJCDD.js → cloud-ZFWKFFSU.js} +4 -4
- package/dist/{cloudrun-UNZRIIDB.js → cloudrun-XBBESKEU.js} +5 -5
- package/dist/{compare-Q7VW5JZT.js → compare-OW4ELTFZ.js} +26 -26
- package/dist/{compiler-KPHYGFXL.js → compiler-23MT6CX6.js} +4 -4
- package/dist/{component-UUBREJKN.js → component-SDV7LWH6.js} +3 -3
- package/dist/{compositions-T4FTKIDP.js → compositions-DI5QZCEK.js} +11 -11
- package/dist/{delete-WZQF2IIA.js → delete-QY2NSQ2G.js} +4 -4
- package/dist/deploy-MJVC4EFY.js +300 -0
- package/dist/{destroy-4B5HW5FH.js → destroy-SSPAKADI.js} +13 -3
- package/dist/{dist-LM7AVHOU.js → dist-JH32CBQL.js} +1 -1
- package/dist/{dist-ULGTPSU4.js → dist-RFTGYT26.js} +7 -5
- package/dist/{doctor-VSNGRKXJ.js → doctor-7ZOECPHR.js} +11 -11
- package/dist/{events-E63YBUL2.js → events-WIX4JM2K.js} +3 -3
- package/dist/{events-CRW2DYUT.js → events-XVQQGECC.js} +2 -2
- package/dist/{feedback-OSZWVR6N.js → feedback-GBYBR6UO.js} +7 -7
- package/dist/{ffmpeg-JLH3Z7G7.js → ffmpeg-QGQBYMO3.js} +7 -7
- package/dist/{figma-2BQNNR53.js → figma-2CMKUGJQ.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-P2XI53QW.js → get-RWCNUOHU.js} +4 -4
- package/dist/{gpuPolicy-NTKQJY75.js → gpuPolicy-UGWSN32D.js} +7 -7
- package/dist/{grade-compare-OYASIHIB.js → grade-compare-J2MX7HZL.js} +27 -27
- package/dist/{help-HK6K2N4G.js → help-SH3ID7MV.js} +1 -1
- package/dist/{history-JMTYKLXW.js → history-C7V5QH7J.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -69
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-AW7CIVRE.js → info-ZN3JJ3IN.js} +8 -8
- package/dist/{init-6KIDG4LB.js → init-KRNGSRNH.js} +65 -47
- package/dist/{inspect-B7BLYMRZ.js → inspect-AYDZXTX7.js} +27 -27
- package/dist/{installer-ZP2LQZUQ.js → installer-N6AIK6XQ.js} +5 -5
- package/dist/{keyframes-EQ36A5JE.js → keyframes-2RFUCEDK.js} +6 -6
- package/dist/{lambda-E6VURLIS.js → lambda-VW3CF6EE.js} +20 -13
- package/dist/{layout-XYC64QQQ.js → layout-OE64APE7.js} +27 -27
- package/dist/{lint-V5DJYWBX.js → lint-UXJTX5WS.js} +7 -7
- package/dist/{lintProject-JATQKR64.js → lintProject-XM3DLUKG.js} +1 -1
- package/dist/{list-RUGVRTVD.js → list-KOL6JPZJ.js} +7 -7
- package/dist/{login-ZTKGKXGS.js → login-MAQXOPDG.js} +4 -4
- package/dist/{manager-JUP7PM6N.js → manager-3LZKRK7P.js} +8 -8
- package/dist/{media-treatment-VIUPK4OR.js → media-treatment-COLSXXQJ.js} +13 -13
- package/dist/{models-LJS2HBOZ.js → models-XXWMGOD7.js} +11 -11
- package/dist/{motionShot-3UAXZ7SN.js → motionShot-RECBNTBZ.js} +14 -14
- package/dist/{normalize-4UDISLPL.js → normalize-3AYFSN2F.js} +1 -1
- package/dist/{normalize-audio-SBYI4YIH.js → normalize-audio-LKVGHZWR.js} +6 -6
- package/dist/{open-S27TUD3A.js → open-UEQVSRKH.js} +12 -12
- package/dist/{parakeetRunner-ETLMLJ4L.js → parakeetRunner-QVPCZ36U.js} +12 -12
- package/dist/{pipeline-I2M22M24.js → pipeline-5VSMQBKW.js} +8 -8
- package/dist/{play-COJU6VJK.js → play-MNEABYN4.js} +19 -19
- package/dist/{policies-XXNGXWHV.js → policies-MBWGLMWB.js} +17 -0
- package/dist/{preflight-FZ24NCHH.js → preflight-ONJ74DWQ.js} +8 -8
- package/dist/{present-YAHKLC5D.js → present-GQ24GTYX.js} +15 -15
- package/dist/{preview-KQOEU5YE.js → preview-ALL7O4RG.js} +18 -18
- package/dist/{producer-DTNNG4T6.js → producer-43L2UDF6.js} +1 -1
- package/dist/{progress-NHJIHAAG.js → progress-PX3PVAIM.js} +5 -3
- package/dist/{projectConfig-4A76VYUP.js → projectConfig-VJXUXK7U.js} +7 -7
- package/dist/{publication-SQPMC2W3.js → publication-L6E5NTFV.js} +3 -3
- package/dist/{publish-QUEJBGGT.js → publish-LCLBJEPR.js} +9 -9
- package/dist/{remove-background-FP2ETAQH.js → remove-background-PDL4KPR4.js} +9 -9
- package/dist/{render-P664SMC7.js → render-7HVKJ7T4.js} +9 -7
- package/dist/{render-BIFIL4U6.js → render-J33ZHR6I.js} +44 -28
- package/dist/{render-GQFXJWLV.js → render-OPCRLZVL.js} +31 -22
- package/dist/{render-batch-ZCPMYH6Z.js → render-batch-ZHHIGXU3.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-BUC2GFZQ.js → resolver-KNNIMMBM.js} +5 -5
- package/dist/{sam-MC24SZHC.js → sam-FHJ7IL7T.js} +3 -1
- package/dist/{sherpa-HFT6XEP6.js → sherpa-GI62H3H5.js} +11 -11
- package/dist/{sites-MAVH57MO.js → sites-5PWHAMEG.js} +1 -1
- package/dist/skills/hyperframes/references/motion.md +1 -0
- package/dist/{skills-3WEVO3NU.js → skills-IUTD6VQO.js} +5 -5
- package/dist/{skillsUpdateCheck-BFPWFOK5.js → skillsUpdateCheck-XZE7MJG6.js} +3 -3
- package/dist/{snapshot-WDQ6S7CJ.js → snapshot-XEXTHLZP.js} +37 -34
- package/dist/{src-NPR2JZOJ.js → src-6STRGCDC.js} +8 -8
- package/dist/{src-RZ574OKP.js → src-ZPIV4PGX.js} +10 -6
- package/dist/{state-ORRPOLMQ.js → state-JPNCCXAV.js} +3 -1
- package/dist/{staticProjectServer-FTGTEZI4.js → staticProjectServer-HJLT7MHE.js} +15 -15
- package/dist/studio/assets/{hyperframes-player-CoOdf435.js → hyperframes-player-DwWIKKZG.js} +1 -1
- package/dist/studio/assets/{index-CR85xg2x.js → index-Cjwz7_13.js} +1 -1
- package/dist/studio/assets/{index-C_6rTpaB.js → index-M8lEpS0Q.js} +131 -131
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TAWB7B23.js → studio-api-OBHEB5ND.js} +9 -9
- package/dist/{studioServer-HRQGJTBU.js → studioServer-KRIZFYML.js} +47 -46
- package/dist/{telemetry-QZ6HJF4W.js → telemetry-N5OOVBCP.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +5 -0
- package/dist/templates/_shared/CLAUDE.md +5 -0
- package/dist/{timeline-IKUEW42T.js → timeline-YUFH65OG.js} +17 -17
- package/dist/{tokens-AUGUEWHS.js → tokens-K4VYLSWJ.js} +2 -2
- package/dist/{transcribe-7734CG3N.js → transcribe-CY4CVO54.js} +17 -17
- package/dist/{transcribe-FWU6EMEO.js → transcribe-GMQXKDYN.js} +10 -10
- package/dist/{updateCheck-VIPQ3FPW.js → updateCheck-2625RXK4.js} +2 -2
- package/dist/{upgrade-4VNDQTVO.js → upgrade-6ZY5MSBQ.js} +2 -2
- package/dist/{urlDownloader-6CXL4CL7.js → urlDownloader-PVJWG7V3.js} +6 -6
- package/dist/{validate-QWCMVWID.js → validate-XSRHEE7E.js} +21 -21
- package/dist/{video-245Q5WN4.js → video-MBFHC54F.js} +7 -7
- package/dist/warmCheck.js +34 -34
- package/package.json +18 -2
- package/dist/audio-65R4T74I.js +0 -1154
- package/dist/chunk-3NPOFC43.js +0 -3805
- package/dist/deploy-JU7A3XNC.js +0 -196
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JWRT2IXO.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YCW345M4.js";
|
|
33
33
|
import {
|
|
34
34
|
getAvailableMemoryMb,
|
|
35
35
|
getFreeDiskMb,
|
|
@@ -39,14 +39,14 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
getUpdateMeta,
|
|
41
41
|
withMeta
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KWSEIVR6.js";
|
|
43
43
|
import {
|
|
44
44
|
CONFIG_PATH,
|
|
45
45
|
withFileLock
|
|
46
46
|
} from "./chunk-XUXGIA7H.js";
|
|
47
47
|
import {
|
|
48
48
|
VERSION
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-6HYPEIH7.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-3LZKRK7P.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -11,6 +11,9 @@ import {
|
|
|
11
11
|
// src/commands/lambda/state.ts
|
|
12
12
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
13
13
|
import { dirname, join } from "path";
|
|
14
|
+
function videoArchitecture(stack) {
|
|
15
|
+
return stack.videoFunctionName ? "arm64" : void 0;
|
|
16
|
+
}
|
|
14
17
|
var STATE_DIR_NAME = ".hyperframes";
|
|
15
18
|
var STATE_FILE_PREFIX = "lambda-stack-";
|
|
16
19
|
var DEFAULT_STACK_NAME = "hyperframes-default";
|
|
@@ -58,6 +61,7 @@ function requireStack(stackName, cwd = process.cwd()) {
|
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
export {
|
|
64
|
+
videoArchitecture,
|
|
61
65
|
DEFAULT_STACK_NAME,
|
|
62
66
|
stateFilePath,
|
|
63
67
|
writeStackOutputs,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
INLINED_FILE_ATTR,
|
|
11
11
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
12
12
|
UNCONDITIONAL_CSS_KEY,
|
|
13
|
+
assignMediaRenderIds,
|
|
13
14
|
clampDurations,
|
|
14
15
|
compileTimingAttrs,
|
|
15
16
|
compositionStyle,
|
|
@@ -37,7 +38,7 @@ import {
|
|
|
37
38
|
stripEmbeddedRuntimeScripts,
|
|
38
39
|
styleElementsFor,
|
|
39
40
|
warnUnknownEnumValues
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BPX7LZG6.js";
|
|
41
42
|
import {
|
|
42
43
|
cssVariableName
|
|
43
44
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -47,7 +48,7 @@ import {
|
|
|
47
48
|
} from "./chunk-OFQWTKPW.js";
|
|
48
49
|
import {
|
|
49
50
|
lintHyperframeHtml
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-TSFA2Y5C.js";
|
|
51
52
|
import {
|
|
52
53
|
checkSubCompositionUsability,
|
|
53
54
|
resolveSubCompositionContent
|
|
@@ -2057,7 +2058,6 @@ function inDocumentOrder(el) {
|
|
|
2057
2058
|
var RAW_TEXT = /* @__PURE__ */ new Set(["script", "style", "textarea", "title", "xmp", "noembed", "noframes"]);
|
|
2058
2059
|
var IMPLIED = /* @__PURE__ */ new Set(["html", "head", "body", "tbody"]);
|
|
2059
2060
|
function startTags(html) {
|
|
2060
|
-
const lower = html.toLowerCase();
|
|
2061
2061
|
const tags = [];
|
|
2062
2062
|
let i = html.indexOf("<");
|
|
2063
2063
|
while (i >= 0) {
|
|
@@ -2070,18 +2070,15 @@ function startTags(html) {
|
|
|
2070
2070
|
if (end < 0) return null;
|
|
2071
2071
|
const tag = name[1].toLowerCase();
|
|
2072
2072
|
tags.push({ name: tag, nameEnd: i + name[0].length, bracket: end });
|
|
2073
|
-
const after = RAW_TEXT.has(tag) ? rawTextEnd(
|
|
2073
|
+
const after = RAW_TEXT.has(tag) ? rawTextEnd(html, tag, end) : end;
|
|
2074
2074
|
i = after < 0 ? -1 : html.indexOf("<", after + 1);
|
|
2075
2075
|
}
|
|
2076
2076
|
return tags;
|
|
2077
2077
|
}
|
|
2078
|
-
function rawTextEnd(
|
|
2079
|
-
const
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
if (next !== void 0 && /[\s/>]/.test(next)) return at;
|
|
2083
|
-
}
|
|
2084
|
-
return -1;
|
|
2078
|
+
function rawTextEnd(html, tag, from) {
|
|
2079
|
+
const endTag = new RegExp(`</${tag}(?=[\\s/>]|$)`, "gi");
|
|
2080
|
+
endTag.lastIndex = from;
|
|
2081
|
+
return endTag.exec(html)?.index ?? -1;
|
|
2085
2082
|
}
|
|
2086
2083
|
function nextTagAfter(html, lt) {
|
|
2087
2084
|
const comment = html.startsWith("<!--", lt);
|
|
@@ -3253,6 +3250,7 @@ async function bundleProject(projectDir, options) {
|
|
|
3253
3250
|
}
|
|
3254
3251
|
}
|
|
3255
3252
|
}
|
|
3253
|
+
assignMediaRenderIds(document);
|
|
3256
3254
|
return document.toString();
|
|
3257
3255
|
}
|
|
3258
3256
|
function cssSafeVariableValue(value) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YCW345M4.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-ZPIV4PGX.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -72,6 +72,13 @@ function interpolateZeroDuration(words) {
|
|
|
72
72
|
i = j - 1;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
var TRAILING_PUNCTUATION = /^[.,!?;:'")\]}>…–—¡¿\-,。!?、;:」』)】》〉]+$/;
|
|
76
|
+
function crossesCjkBoundary(left, right) {
|
|
77
|
+
return CJK_CHAR.test(left.at(-1) ?? "") || CJK_CHAR.test(right[0] ?? "");
|
|
78
|
+
}
|
|
79
|
+
function continuesWord(previous, rawText, text) {
|
|
80
|
+
return TRAILING_PUNCTUATION.test(text) || /^'(t|m|s|ve|re|ll|d)$/i.test(text) || !rawText.startsWith(" ") && !crossesCjkBoundary(previous, text);
|
|
81
|
+
}
|
|
75
82
|
function parseWhisperCpp(data) {
|
|
76
83
|
const words = [];
|
|
77
84
|
const transcription = data.transcription;
|
|
@@ -81,8 +88,7 @@ function parseWhisperCpp(data) {
|
|
|
81
88
|
const text = rawText.trim();
|
|
82
89
|
if (!text || text.startsWith("[_") || text.startsWith("[BLANK")) continue;
|
|
83
90
|
const lastWord = words[words.length - 1];
|
|
84
|
-
|
|
85
|
-
if (shouldMerge) {
|
|
91
|
+
if (lastWord && continuesWord(lastWord.text, rawText, text)) {
|
|
86
92
|
lastWord.text += text;
|
|
87
93
|
lastWord.end = round3((token.offsets?.to ?? 0) / 1e3);
|
|
88
94
|
continue;
|
|
@@ -197,7 +203,7 @@ function pad3(n) {
|
|
|
197
203
|
return n.toString().padStart(3, "0");
|
|
198
204
|
}
|
|
199
205
|
function endsSentence(text) {
|
|
200
|
-
return /[
|
|
206
|
+
return /[.!?。!?][)"'\]}」』)]*$/.test(text);
|
|
201
207
|
}
|
|
202
208
|
function pushCue(cues, cue) {
|
|
203
209
|
if (!cue) return;
|
|
@@ -234,10 +240,7 @@ function inferPreGrouped(words) {
|
|
|
234
240
|
return median(spaceless.map((w) => w.text.trim().length)) >= SPACELESS_PHRASE_MIN_CHARS;
|
|
235
241
|
}
|
|
236
242
|
function joinTokens(left, right) {
|
|
237
|
-
|
|
238
|
-
const b = right[0] ?? "";
|
|
239
|
-
const sep = CJK_CHAR.test(a) || CJK_CHAR.test(b) ? "" : " ";
|
|
240
|
-
return `${left}${sep}${right}`;
|
|
243
|
+
return `${left}${crossesCjkBoundary(left, right) ? "" : " "}${right}`;
|
|
241
244
|
}
|
|
242
245
|
function wordsToCues(words, opts = {}) {
|
|
243
246
|
const preGrouped = opts.preGrouped ?? inferPreGrouped(words);
|
|
@@ -5897,6 +5897,53 @@ function findRuntimeMediaSrcMutationFindings(ctx) {
|
|
|
5897
5897
|
}
|
|
5898
5898
|
return findings;
|
|
5899
5899
|
}
|
|
5900
|
+
var VOID_ELEMENTS = /* @__PURE__ */ new Set([
|
|
5901
|
+
"area",
|
|
5902
|
+
"base",
|
|
5903
|
+
"br",
|
|
5904
|
+
"col",
|
|
5905
|
+
"embed",
|
|
5906
|
+
"hr",
|
|
5907
|
+
"img",
|
|
5908
|
+
"input",
|
|
5909
|
+
"link",
|
|
5910
|
+
"meta",
|
|
5911
|
+
"source",
|
|
5912
|
+
"track",
|
|
5913
|
+
"wbr"
|
|
5914
|
+
]);
|
|
5915
|
+
var closeTag = (name) => new RegExp(`</${name}>`, "gi");
|
|
5916
|
+
function innermostTimedWrapper(source, tags, media) {
|
|
5917
|
+
let found = null;
|
|
5918
|
+
for (const parent of tags) {
|
|
5919
|
+
if (parent.index >= media.index) break;
|
|
5920
|
+
if (parent.name === "video" || parent.name === "audio" || VOID_ELEMENTS.has(parent.name))
|
|
5921
|
+
continue;
|
|
5922
|
+
if (readDecodedAttr(parent.raw, "data-composition-id")) continue;
|
|
5923
|
+
const start = readAttr(parent.raw, "data-start");
|
|
5924
|
+
if (!start) continue;
|
|
5925
|
+
const events = [
|
|
5926
|
+
...tags.filter((t) => t.name === parent.name && t.index > parent.index && t.index < media.index).map((t) => [t.index, 1]),
|
|
5927
|
+
...[...source.substring(parent.index, media.index).matchAll(closeTag(parent.name))].map(
|
|
5928
|
+
(m) => [parent.index + m.index, -1]
|
|
5929
|
+
)
|
|
5930
|
+
];
|
|
5931
|
+
let depth = 1;
|
|
5932
|
+
for (const [, delta] of events.sort((x, y) => x[0] - y[0])) {
|
|
5933
|
+
depth += delta;
|
|
5934
|
+
if (depth === 0) break;
|
|
5935
|
+
}
|
|
5936
|
+
if (depth > 0) {
|
|
5937
|
+
found = {
|
|
5938
|
+
name: parent.name,
|
|
5939
|
+
id: readAttr(parent.raw, "id") || void 0,
|
|
5940
|
+
start,
|
|
5941
|
+
duration: readAttr(parent.raw, "data-duration")
|
|
5942
|
+
};
|
|
5943
|
+
}
|
|
5944
|
+
}
|
|
5945
|
+
return found;
|
|
5946
|
+
}
|
|
5900
5947
|
var mediaRules = [
|
|
5901
5948
|
findNestedMediaStartBasisFindings,
|
|
5902
5949
|
findSpeedRampOnNonMediaFindings,
|
|
@@ -6033,54 +6080,19 @@ var mediaRules = [
|
|
|
6033
6080
|
// video_nested_in_timed_element
|
|
6034
6081
|
({ source, tags }) => {
|
|
6035
6082
|
const findings = [];
|
|
6036
|
-
const voidElements = /* @__PURE__ */ new Set([
|
|
6037
|
-
"area",
|
|
6038
|
-
"base",
|
|
6039
|
-
"br",
|
|
6040
|
-
"col",
|
|
6041
|
-
"embed",
|
|
6042
|
-
"hr",
|
|
6043
|
-
"img",
|
|
6044
|
-
"input",
|
|
6045
|
-
"link",
|
|
6046
|
-
"meta",
|
|
6047
|
-
"source",
|
|
6048
|
-
"track",
|
|
6049
|
-
"wbr"
|
|
6050
|
-
]);
|
|
6051
|
-
const timedTagPositions = [];
|
|
6052
|
-
for (const tag of tags) {
|
|
6053
|
-
if (tag.name === "video" || tag.name === "audio") continue;
|
|
6054
|
-
if (voidElements.has(tag.name)) continue;
|
|
6055
|
-
if (readDecodedAttr(tag.raw, "data-composition-id")) continue;
|
|
6056
|
-
if (readAttr(tag.raw, "data-start")) {
|
|
6057
|
-
timedTagPositions.push({
|
|
6058
|
-
name: tag.name,
|
|
6059
|
-
start: tag.index,
|
|
6060
|
-
id: readAttr(tag.raw, "id") || void 0
|
|
6061
|
-
});
|
|
6062
|
-
}
|
|
6063
|
-
}
|
|
6064
6083
|
for (const tag of tags) {
|
|
6065
6084
|
if (tag.name !== "video") continue;
|
|
6066
6085
|
if (!readAttr(tag.raw, "data-start")) continue;
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
fixHint: "Time the wrapper OR the video, never both: remove data-start from the wrapper (use it as a non-timed visual container), or move the <video> up to be a direct child of the stage.",
|
|
6078
|
-
snippet: truncateSnippet(tag.raw)
|
|
6079
|
-
});
|
|
6080
|
-
break;
|
|
6081
|
-
}
|
|
6082
|
-
}
|
|
6083
|
-
}
|
|
6086
|
+
const parent = innermostTimedWrapper(source, tags, tag);
|
|
6087
|
+
if (!parent) continue;
|
|
6088
|
+
findings.push({
|
|
6089
|
+
code: "video_nested_in_timed_element",
|
|
6090
|
+
severity: "error",
|
|
6091
|
+
message: `<video> with data-start is nested inside <${parent.name}${parent.id ? ` id="${parent.id}"` : ""}> which also has data-start. The frame extractor resolves the video's start from its own data-start without the wrapper's offset, while visibility uses the wrapper's window, so the two disagree: the clip shows the wrong source frames and then disappears partway through its slot.`,
|
|
6092
|
+
elementId: readAttr(tag.raw, "id") || void 0,
|
|
6093
|
+
fixHint: "Time the wrapper OR the video, never both: remove data-start from the wrapper (use it as a non-timed visual container), or move the <video> up to be a direct child of the stage.",
|
|
6094
|
+
snippet: truncateSnippet(tag.raw)
|
|
6095
|
+
});
|
|
6084
6096
|
}
|
|
6085
6097
|
return findings;
|
|
6086
6098
|
},
|
|
@@ -6148,7 +6160,7 @@ var mediaRules = [
|
|
|
6148
6160
|
return findings;
|
|
6149
6161
|
},
|
|
6150
6162
|
// media_missing_data_start + media_missing_id + media_missing_src + media_preload_none
|
|
6151
|
-
({ tags }) => {
|
|
6163
|
+
({ source, tags }) => {
|
|
6152
6164
|
const findings = [];
|
|
6153
6165
|
for (const tag of tags) {
|
|
6154
6166
|
if (tag.name !== "video" && tag.name !== "audio") continue;
|
|
@@ -6156,12 +6168,13 @@ var mediaRules = [
|
|
|
6156
6168
|
const hasId = readAttr(tag.raw, "id");
|
|
6157
6169
|
const hasSrc = mediaHasResolvableSrc(tag, tags);
|
|
6158
6170
|
if (hasSrc && !hasDataStart) {
|
|
6171
|
+
const wrapper = tag.name === "video" ? innermostTimedWrapper(source, tags, tag) : null;
|
|
6159
6172
|
findings.push({
|
|
6160
6173
|
code: "media_missing_data_start",
|
|
6161
6174
|
severity: "error",
|
|
6162
6175
|
message: `<${tag.name}${hasId ? ` id="${hasId}"` : ""}> has src but no data-start. HyperFrames cannot own playback for untimed media, so preview and render behavior can diverge.`,
|
|
6163
6176
|
elementId: hasId || void 0,
|
|
6164
|
-
fixHint: `Add data-start="0" (or the intended start time) and data-duration if the clip should stop before the source ends.`,
|
|
6177
|
+
fixHint: wrapper ? `This <${tag.name}> sits inside the timed <${wrapper.name}${wrapper.id ? ` id="${wrapper.id}"` : ""}> (data-start="${wrapper.start}"), and the wrapper's data-start would then clash. Move the <${tag.name}> out as a direct child of the stage and give it that wrapper's data-start="${wrapper.start}"${wrapper.duration ? ` and data-duration="${wrapper.duration}"` : ""}.` : `Add data-start="0" (or the intended start time) and data-duration if the clip should stop before the source ends.`,
|
|
6165
6178
|
snippet: truncateSnippet(tag.raw)
|
|
6166
6179
|
});
|
|
6167
6180
|
}
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6Q5CFUAP.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PMXR3IUH.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TSFA2Y5C.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -43,9 +43,14 @@ async function probeAudio(file) {
|
|
|
43
43
|
duration: Number(stream.duration ?? parsed.format?.duration ?? 0)
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
async function decodeAudio(file, window = {}, probed) {
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
46
|
+
async function decodeAudio(file, window = {}, probed, format = {}) {
|
|
47
|
+
const probedInfo = probed ?? await probeAudio(file);
|
|
48
|
+
if (!probedInfo) return null;
|
|
49
|
+
const info = {
|
|
50
|
+
...probedInfo,
|
|
51
|
+
sampleRate: format.sampleRate ?? probedInfo.sampleRate,
|
|
52
|
+
channels: format.mono ? 1 : probedInfo.channels
|
|
53
|
+
};
|
|
49
54
|
const seek = window.from ? ["-ss", String(window.from)] : [];
|
|
50
55
|
const length = window.seconds === void 0 ? [] : ["-t", String(window.seconds)];
|
|
51
56
|
const { stdout } = await run(
|
|
@@ -59,6 +64,8 @@ async function decodeAudio(file, window = {}, probed) {
|
|
|
59
64
|
...length,
|
|
60
65
|
"-map",
|
|
61
66
|
"0:a:0",
|
|
67
|
+
...format.mono ? ["-ac", "1"] : [],
|
|
68
|
+
...format.sampleRate ? ["-ar", String(format.sampleRate)] : [],
|
|
62
69
|
"-f",
|
|
63
70
|
"f32le",
|
|
64
71
|
"-acodec",
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-DCAI5DBR.js";
|
|
13
13
|
import {
|
|
14
14
|
createProjectConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DG4ME554.js";
|
|
16
16
|
import {
|
|
17
17
|
isHyperframesProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YV4WT7CJ.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/desktopApp.ts
|
|
21
21
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -29,6 +29,12 @@ function clampAudioGain(value) {
|
|
|
29
29
|
return 1;
|
|
30
30
|
return Math.max(0, Math.min(MAX_AUDIO_GAIN, value));
|
|
31
31
|
}
|
|
32
|
+
function gainTimesLane(gain, lane) {
|
|
33
|
+
return clampAudioGain(gain * lane);
|
|
34
|
+
}
|
|
35
|
+
function clipGain(volume, tweened) {
|
|
36
|
+
return tweened ? 1 : clampAudioGain(volume);
|
|
37
|
+
}
|
|
32
38
|
function formatAudioGain(gain) {
|
|
33
39
|
return clampAudioGain(gain).toFixed(6).replace(/\.?0+$/, "");
|
|
34
40
|
}
|
|
@@ -37,6 +43,8 @@ export {
|
|
|
37
43
|
MAX_AUDIO_GAIN_DB,
|
|
38
44
|
MAX_AUDIO_GAIN,
|
|
39
45
|
clampAudioGain,
|
|
46
|
+
gainTimesLane,
|
|
47
|
+
clipGain,
|
|
40
48
|
formatAudioGain,
|
|
41
49
|
AUDIBLE_VIDEO_QUALIFIER,
|
|
42
50
|
AUDIBLE_MEDIA_SELECTOR,
|
|
@@ -49,7 +49,11 @@ function parseReservedConcurrency(raw) {
|
|
|
49
49
|
}
|
|
50
50
|
function samDeploy(opts) {
|
|
51
51
|
assertSamAvailable();
|
|
52
|
-
const paramOverrides = [
|
|
52
|
+
const paramOverrides = [
|
|
53
|
+
`ChromeSource=${opts.chromeSource ?? "sparticuz"}`,
|
|
54
|
+
// Always sent: omitted, SAM's UsePreviousValue would keep a video function the user dropped.
|
|
55
|
+
`VideoImageUri=${opts.videoImageUri ?? '""'}`
|
|
56
|
+
];
|
|
53
57
|
if (opts.reservedConcurrency !== void 0) {
|
|
54
58
|
paramOverrides.push(`ReservedConcurrency=${opts.reservedConcurrency}`);
|
|
55
59
|
}
|
|
@@ -133,14 +137,34 @@ function fetchStackOutputs(opts) {
|
|
|
133
137
|
// for cost math + CloudWatch lookups.
|
|
134
138
|
functionName: functionName.split(":").pop() ?? functionName,
|
|
135
139
|
stateMachineArn,
|
|
136
|
-
reservedConcurrency: reserved > 0 ? reserved : void 0
|
|
140
|
+
reservedConcurrency: reserved > 0 ? reserved : void 0,
|
|
141
|
+
videoFunctionName: byKey.get("VideoFunctionArn")?.split(":").pop()
|
|
137
142
|
};
|
|
138
143
|
}
|
|
144
|
+
function deleteEcrRepository(opts) {
|
|
145
|
+
assertAwsCliAvailable();
|
|
146
|
+
const args = [
|
|
147
|
+
"ecr",
|
|
148
|
+
"delete-repository",
|
|
149
|
+
"--repository-name",
|
|
150
|
+
opts.repositoryName,
|
|
151
|
+
"--force",
|
|
152
|
+
"--region",
|
|
153
|
+
opts.region
|
|
154
|
+
];
|
|
155
|
+
if (opts.awsProfile) args.push("--profile", opts.awsProfile);
|
|
156
|
+
const result = spawnSync("aws", args, { encoding: "utf-8" });
|
|
157
|
+
if (result.status === 0 || result.stderr?.includes("RepositoryNotFoundException")) return;
|
|
158
|
+
throw new Error(
|
|
159
|
+
`[lambda] aws ecr delete-repository ${opts.repositoryName} exited with code ${result.status ?? "unknown"}: ${result.stderr ?? ""}`
|
|
160
|
+
);
|
|
161
|
+
}
|
|
139
162
|
|
|
140
163
|
export {
|
|
141
164
|
locateSamTemplate,
|
|
142
165
|
parseReservedConcurrency,
|
|
143
166
|
samDeploy,
|
|
144
167
|
samDelete,
|
|
145
|
-
fetchStackOutputs
|
|
168
|
+
fetchStackOutputs,
|
|
169
|
+
deleteEcrRepository
|
|
146
170
|
};
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6HZ7TSJJ.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-LWYZN7HS.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DG4ME554.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeWellFormedEscapes
|
|
27
27
|
} from "./chunk-BSQ7XANM.js";
|