hyperframes 0.8.205 → 0.8.207
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/bin/hyperframes.mjs +1 -0
- package/dist/{add-BA4AU262.js → add-LXFWHBE3.js} +19 -18
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
- package/dist/{animatedGifPrep-UNUCFGLQ.js → animatedGifPrep-VBPJZKFT.js} +21 -15
- package/dist/api.js +31 -31
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-KCDVTNC3.js → asset-JX4RW3GO.js} +2 -2
- package/dist/{assetCataloger-5FCVQ3N6.js → assetCataloger-JKKOPBCF.js} +15 -14
- package/dist/{audio-KDBPEHRS.js → audio-OXQ3L6DW.js} +24 -24
- package/dist/{auth-IMPBZZXJ.js → auth-JAL7P7ZA.js} +1 -1
- package/dist/{autoUpdate-YE2RKCAG.js → autoUpdate-MRI2AICE.js} +2 -2
- package/dist/{backgroundChecks-OWY2UFSR.js → backgroundChecks-ORR46PBY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-AN4HWKET.js → batchRender-IFZYPGIW.js} +9 -9
- package/dist/{beats-VTQJ4JH6.js → beats-UDLOEW6U.js} +21 -21
- package/dist/{benchmark-PBEWHJ5K.js → benchmark-VTVDNKSO.js} +14 -14
- package/dist/{browser-E7ANEHNU.js → browser-QJC4BL2Y.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-I3BWMRSP.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
- package/dist/{capture-MP7R72WU.js → capture-2P4JERSX.js} +14 -3
- package/dist/{capture-XODFC4S4.js → capture-GLM2ACPM.js} +81 -41
- package/dist/{captureCompositionFrame-2OYGVDI3.js → captureCompositionFrame-A2A5MGQB.js} +19 -19
- package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
- package/dist/{catalog-ORVCCEQR.js → catalog-5ZLVUQVJ.js} +25 -24
- package/dist/{catch-up-SYAQOXTT.js → catch-up-FRMVYJHZ.js} +5 -5
- package/dist/{check-6SQR6SSA.js → check-WVY7SM7C.js} +50 -48
- package/dist/checkAudio-PLEQY3SZ.js +201 -0
- package/dist/{checkBrowser-HOTD3CDE.js → checkBrowser-XSZUA2DQ.js} +42 -41
- package/dist/{chunk-JFNB4CMI.js → chunk-526VSRZ4.js} +20 -8
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-CUGADCIV.js → chunk-5KBMYSF2.js} +54 -15
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-TZ7MTRVJ.js → chunk-5PYRU5DT.js} +13 -13
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-KBZSMKKD.js → chunk-63DP5CB2.js} +29 -3
- package/dist/{chunk-GLBEBBS2.js → chunk-6IYIS2U7.js} +2 -2
- package/dist/{chunk-GSTFETKE.js → chunk-6KCFVLO6.js} +5 -5
- package/dist/{chunk-EXRHI43B.js → chunk-6KOHY5EP.js} +10 -9
- package/dist/{chunk-CU76YDPX.js → chunk-6Z7XDUUJ.js} +1 -1
- package/dist/{chunk-XNAIYEKD.js → chunk-7PJ3AJB2.js} +1 -1
- package/dist/{chunk-6GAYBX5C.js → chunk-7RWUY3BJ.js} +64 -62
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/chunk-BDJIQZN2.js +4830 -0
- package/dist/{chunk-75WNFDRU.js → chunk-C53ZNJDZ.js} +4 -4
- package/dist/{chunk-GBQCTZON.js → chunk-CVZO6TFE.js} +13 -43
- package/dist/{chunk-RQDVTUVD.js → chunk-DJQZ7DEH.js} +15 -15
- package/dist/{chunk-KAIQPYCM.js → chunk-DML6BD4K.js} +2 -2
- package/dist/{chunk-BTYT3RT3.js → chunk-EG3B2VWK.js} +2 -2
- package/dist/{chunk-OB7QARSN.js → chunk-EGRIVMCQ.js} +1 -1
- package/dist/{chunk-V4K4BSCM.js → chunk-EHFZEKQM.js} +57 -5
- package/dist/{chunk-H4MSJ2NZ.js → chunk-FEO7YW7V.js} +8 -8
- package/dist/{chunk-FNBEYIZH.js → chunk-FVAI7AHF.js} +13 -12
- package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
- package/dist/{chunk-L6N2TLXR.js → chunk-H3LQ5X6Q.js} +84 -79
- package/dist/{chunk-MVXOY5RC.js → chunk-HA3V4XAF.js} +6 -6
- package/dist/{chunk-WB55EQNJ.js → chunk-HM7SUIQD.js} +38 -9
- package/dist/{chunk-G445Y3YG.js → chunk-HVOTYAS4.js} +15 -7
- package/dist/{chunk-IKYXXIMP.js → chunk-I2TDHVFV.js} +3 -3
- package/dist/{chunk-3N4T6I3O.js → chunk-I3TYUQLB.js} +1 -1
- package/dist/{chunk-AECL3B23.js → chunk-IBZHSU2J.js} +1 -1
- package/dist/{chunk-2FEOM3ZT.js → chunk-ID766OZB.js} +12 -12
- package/dist/{chunk-4UIEQIF4.js → chunk-IK4JY2LI.js} +2 -2
- package/dist/{chunk-C4LV6L4Q.js → chunk-IW5P4KK7.js} +3 -3
- package/dist/{chunk-N7VQD4WB.js → chunk-IYZT62UR.js} +1 -1
- package/dist/chunk-JKE24AG7.js +62 -0
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-EUFBE5BW.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-6NC4KBS2.js → chunk-JQ32262N.js} +1 -1
- package/dist/{chunk-J2E3VVOS.js → chunk-KDHHPJOG.js} +4 -4
- package/dist/{chunk-A42PDANH.js → chunk-LCCYYTEK.js} +1 -1
- package/dist/{chunk-T2UR3T4L.js → chunk-LK6KPVX2.js} +263 -74
- package/dist/{chunk-RWOWD3PW.js → chunk-LPI7HX4G.js} +2 -2
- package/dist/{chunk-UR6BAPOD.js → chunk-LXP6XWJL.js} +2 -2
- package/dist/{chunk-4RPCYGZG.js → chunk-MAUGXKSI.js} +4 -4
- package/dist/{chunk-AII6P2TC.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-26OI2B2X.js → chunk-MSHL6CF2.js} +1 -1
- package/dist/{chunk-SVVAUJPL.js → chunk-NHA4NRBE.js} +136 -25
- package/dist/{chunk-5F6B6KMK.js → chunk-NHL5CMO2.js} +18 -3
- package/dist/{chunk-NF6KI46X.js → chunk-NJNC2DQV.js} +31 -28
- package/dist/{chunk-I7IXUCKL.js → chunk-NSC5A4IR.js} +1 -1
- package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
- package/dist/{chunk-57I5KNTL.js → chunk-PL36HK3U.js} +3 -3
- package/dist/{chunk-TOEIJ4WF.js → chunk-PUIG6DHT.js} +5 -5
- package/dist/{chunk-BA7MQJXG.js → chunk-QE4WRS3N.js} +3 -3
- package/dist/{chunk-7V7OUKTU.js → chunk-QTWXVOZI.js} +1 -1
- package/dist/{chunk-V2XXV2EH.js → chunk-QZ2JQ6O4.js} +6 -6
- package/dist/{chunk-BHOGXIBO.js → chunk-RPZNQV6D.js} +58 -826
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-HADQPG7O.js → chunk-SXOD5J7T.js} +2 -2
- package/dist/{chunk-32R2AFZ3.js → chunk-T4JGFCXU.js} +3 -3
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-ZSUWGNIT.js → chunk-TSTONNOD.js} +2 -2
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-BZ727KLT.js → chunk-U32PA6DI.js} +1 -1
- package/dist/{chunk-5PVPGWMH.js → chunk-UAT2UMTP.js} +1 -1
- package/dist/{chunk-TGS33LDU.js → chunk-UKM3JYNB.js} +5 -71
- package/dist/{chunk-UEOGIZ3Q.js → chunk-UUOIH4RW.js} +3 -3
- package/dist/{chunk-MASFRPCB.js → chunk-UYPWH7PH.js} +10 -10
- package/dist/{chunk-LSQM3NBR.js → chunk-VAVDAOUA.js} +1 -1
- package/dist/chunk-VBPNCOD7.js +355 -0
- package/dist/{chunk-HQ3CFNHL.js → chunk-VH4PNYOS.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
- package/dist/{chunk-ZB6SCA4J.js → chunk-XAGBSYIQ.js} +9 -2
- package/dist/{chunk-LQUMMPGK.js → chunk-XKW4Z7BU.js} +1 -1
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-6YYFNGCS.js → chunk-XULJBZ7K.js} +7 -4
- package/dist/chunk-YJK6HOL5.js +29 -0
- package/dist/{chunk-KVNXEAVT.js → chunk-ZCJ5EGLU.js} +30 -10
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-AECSY5LT.js → chunk-ZYGIDXAK.js} +569 -378
- package/dist/{clean-BW7NHQS5.js → clean-TL3IPJDN.js} +28 -28
- package/dist/cli.js +55 -55
- package/dist/{cloud-TZVXTWZO.js → cloud-EYMRPJNY.js} +4 -4
- package/dist/{cloudrun-KRIETALO.js → cloudrun-TOJ36NLX.js} +11 -11
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-WYWHJ4CR.js → compare-MP5EOW4D.js} +40 -40
- package/dist/{compiler-ANIPXLJ7.js → compiler-NOPVLJ2S.js} +15 -15
- package/dist/{component-CY7DCX56.js → component-ASACDCZK.js} +3 -3
- package/dist/{compositions-5YEB24E3.js → compositions-WKNZJY34.js} +19 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
- package/dist/{delete-6642PDON.js → delete-DQTFHP3G.js} +2 -2
- package/dist/{deploy-NZP6TZLS.js → deploy-HHCFOUFM.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-V2BGP46S.js → dist-L4Z4ZEYW.js} +7 -4
- package/dist/{dist-DGFC75NC.js → dist-NQEYA4ZX.js} +44 -36
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-ZW4A2FS3.js → doctor-JDM65CP7.js} +20 -20
- package/dist/{events-NJU4VFDA.js → events-MBRNA3UF.js} +3 -3
- package/dist/{events-XRCHY2F6.js → events-RKRHRLJD.js} +2 -2
- package/dist/{feedback-NQLSZMES.js → feedback-LZWIWV5J.js} +17 -17
- package/dist/{ffmpeg-RYDQLG3G.js → ffmpeg-4PZKSIGE.js} +15 -15
- package/dist/{figma-TJAMP2CI.js → figma-QFNYUT3F.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -18
- package/dist/{get-RRZ3O26X.js → get-2B5ENJOH.js} +2 -2
- package/dist/{gpuPolicy-4WLHUUS3.js → gpuPolicy-E5FB2GFR.js} +13 -13
- package/dist/{grade-compare-P7PE3NAA.js → grade-compare-4GUAPJHE.js} +40 -40
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/heifImagePrep-C2RYIEER.js +53 -0
- package/dist/{help-6RELRVIW.js → help-XGDAXV67.js} +1 -1
- package/dist/{history-GIIDYND3.js → history-WNFF6HGU.js} +108 -60
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +75 -68
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-LBUA2DXE.js → info-BR2LKGJD.js} +16 -16
- package/dist/{init-QUPXBONY.js → init-P6UWPUY3.js} +59 -58
- package/dist/{inspect-CL42DJZ4.js → inspect-MSRPF7ZO.js} +40 -39
- package/dist/inspection.js +4 -4
- package/dist/{installer-VR7XDLR3.js → installer-MPUQS3ZX.js} +10 -10
- package/dist/{keyframes-LELLROMA.js → keyframes-J6K66QTO.js} +11 -11
- package/dist/{lambda-I6KFXWOO.js → lambda-LJ2OSWFJ.js} +32 -13
- package/dist/{layout-NR6SNRZE.js → layout-CDY65XGA.js} +40 -39
- package/dist/{lint-DYEMSEQR.js → lint-CAUNBGPX.js} +13 -10
- package/dist/{lintProject-EA4NPL2X.js → lintProject-ZTSX3AWT.js} +7 -4
- package/dist/{list-RDURYO5U.js → list-33BYQNRZ.js} +2 -2
- package/dist/{login-VKLET5OL.js → login-5QMRKOHK.js} +4 -4
- package/dist/{manager-IYT3THJN.js → manager-3JOHHPVR.js} +17 -17
- package/dist/{manager-7TSUZKXU.js → manager-RMYSZ3KI.js} +7 -3
- package/dist/{media-treatment-I4AFEQZ3.js → media-treatment-4WP22CFN.js} +23 -23
- package/dist/{models-LLPVGC2E.js → models-HPWCHAZX.js} +28 -28
- package/dist/{motionShot-6A6HH6IK.js → motionShot-I7GDIROQ.js} +23 -23
- package/dist/{normalize-audio-KVQJBYLT.js → normalize-audio-VTMXPSC7.js} +14 -14
- package/dist/{open-J4ZT4X3C.js → open-SAO7OQTT.js} +19 -19
- package/dist/{parakeetRunner-FLUCIDIZ.js → parakeetRunner-ZYPBIA73.js} +25 -25
- package/dist/{pipeline-RRVLGALQ.js → pipeline-VNBMR6QU.js} +16 -16
- package/dist/{play-QGJSXUVM.js → play-7VI6A7KN.js} +42 -32
- package/dist/{preflight-SP2ZERBE.js → preflight-VWV7L45J.js} +17 -17
- package/dist/{present-UR4YBHMX.js → present-CSJGYOFF.js} +37 -27
- package/dist/{preview-6ENCRU4C.js → preview-B246ZTVO.js} +60 -45
- package/dist/{producer-OMHZRY6A.js → producer-WJLFDVQJ.js} +1 -1
- package/dist/{projectConfig-NGS7GJ47.js → projectConfig-OMR46ZWQ.js} +14 -13
- package/dist/{publication-6NYQA22Y.js → publication-AA7NNYET.js} +8 -8
- package/dist/{publish-E6RE5VHB.js → publish-TJ4QVVSP.js} +18 -17
- package/dist/{remove-background-66PQRA7R.js → remove-background-LQ2V7W7N.js} +20 -20
- package/dist/{render-ZLRJUFMX.js → render-AWEEPG3F.js} +39 -37
- package/dist/{render-SBAZWXPO.js → render-E5QJG74D.js} +14 -11
- package/dist/{render-IMSGS6BD.js → render-JLTNZ36U.js} +83 -51
- package/dist/{render-batch-MO7LYZSP.js → render-batch-U4T4VSCM.js} +14 -11
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-QMBVTAKT.js → resolver-GXCTUKPV.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
- package/dist/{sherpa-JZRDL3OE.js → sherpa-4VZWVHWZ.js} +24 -24
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/{skills-YBTEWFYS.js → skills-WUKR7SUE.js} +8 -8
- package/dist/{skillsUpdateCheck-Z4HTDZJN.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
- package/dist/{snapshot-5F5UV6H5.js → snapshot-Q7S2FTNG.js} +143 -77
- package/dist/{src-WWXYV2TS.js → src-CLAALR5W.js} +26 -19
- package/dist/{src-UTW3F2PM.js → src-ZOXUSGAP.js} +24 -12
- package/dist/{staticProjectServer-UHZ63C5O.js → staticProjectServer-DQ7PIDPA.js} +26 -26
- package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
- package/dist/studio/assets/{index-dy6GQJn4.js → index-BF9YeBnC.js} +142 -142
- package/dist/studio/assets/{index-C8hp9Y7c.js → index-BrqAmMRt.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BHZ3PHL2.js → studio-api-NUE227JM.js} +18 -18
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-AFUXWRB5.js → studioServer-HVOKP4VI.js} +81 -70
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QZHRXGRY.js} +30 -8
- package/dist/{telemetry-UYKOT4OJ.js → telemetry-2Y5JXLDB.js} +3 -3
- package/dist/{timeline-K5NLEMH4.js → timeline-WOQGXFRV.js} +28 -28
- package/dist/{tokens-FCOSWE2O.js → tokens-T3OHTWUC.js} +2 -2
- package/dist/{transcribe-SIFMTW5W.js → transcribe-4U74P5TG.js} +22 -22
- package/dist/{transcribe-K2QTXDQR.js → transcribe-JZ3BO546.js} +32 -32
- package/dist/{tts-5I2AJNLM.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-JZ6TBZVE.js → updateCheck-6EUAGAM4.js} +2 -2
- package/dist/{upgrade-TUPAJXQQ.js → upgrade-55K6F4MP.js} +2 -2
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-L4775QID.js → urlDownloader-47JMOLNN.js} +12 -12
- package/dist/{validate-4HVVMEBV.js → validate-QBJ3SBS4.js} +32 -32
- package/dist/{video-4OGPF3IE.js → video-3ZAUNAR3.js} +17 -15
- package/dist/warmCheck.js +50 -48
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-ZUQZP6QD.js +0 -3986
- package/dist/studio/assets/hyperframes-player-DzdSmJdB.js +0 -478
|
@@ -9,23 +9,24 @@ import {
|
|
|
9
9
|
readToolContext,
|
|
10
10
|
reportArtifacts,
|
|
11
11
|
withProjectLock
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
captureArtifactRevision
|
|
15
|
-
} from "./chunk-N7VQD4WB.js";
|
|
16
|
-
import {
|
|
17
|
-
loadProducer
|
|
18
|
-
} from "./chunk-BZ727KLT.js";
|
|
19
|
-
import {
|
|
20
|
-
trackLintRun
|
|
21
|
-
} from "./chunk-C4LV6L4Q.js";
|
|
12
|
+
} from "./chunk-GXUONASF.js";
|
|
22
13
|
import {
|
|
23
14
|
beginCheckSnapshots,
|
|
24
15
|
checkSnapshotDirectory,
|
|
25
16
|
finishCheckSnapshots,
|
|
26
17
|
preResolveHostileMediaProxies,
|
|
27
18
|
rectToBbox
|
|
28
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5PYRU5DT.js";
|
|
20
|
+
import {
|
|
21
|
+
collectProjectMedia,
|
|
22
|
+
mediaPath
|
|
23
|
+
} from "./chunk-YJK6HOL5.js";
|
|
24
|
+
import {
|
|
25
|
+
captureArtifactRevision
|
|
26
|
+
} from "./chunk-IYZT62UR.js";
|
|
27
|
+
import {
|
|
28
|
+
trackLintRun
|
|
29
|
+
} from "./chunk-IW5P4KK7.js";
|
|
29
30
|
import {
|
|
30
31
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
31
32
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -38,21 +39,24 @@ import {
|
|
|
38
39
|
dedupeLayoutIssues,
|
|
39
40
|
evaluateMotion,
|
|
40
41
|
findMotionSpec,
|
|
41
|
-
findingElementKey,
|
|
42
|
-
formatFindingTimes,
|
|
43
42
|
formatLayoutIssue,
|
|
44
43
|
frozenSpans,
|
|
45
|
-
groupSampledFindings,
|
|
46
44
|
limitLayoutIssues,
|
|
47
45
|
longestContiguousRun,
|
|
48
46
|
longestContiguousRunMs,
|
|
49
47
|
mergeSampleTimes,
|
|
50
48
|
parseAt,
|
|
51
49
|
readMotionSpec
|
|
52
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-CVZO6TFE.js";
|
|
51
|
+
import {
|
|
52
|
+
findingAtRoot,
|
|
53
|
+
findingElementKey,
|
|
54
|
+
formatFindingTimes,
|
|
55
|
+
groupSampledFindings
|
|
56
|
+
} from "./chunk-TQBQYO4L.js";
|
|
53
57
|
import {
|
|
54
58
|
resolveProject
|
|
55
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XAGBSYIQ.js";
|
|
56
60
|
import {
|
|
57
61
|
recordArtifacts
|
|
58
62
|
} from "./chunk-XDMZY3H7.js";
|
|
@@ -61,17 +65,17 @@ import {
|
|
|
61
65
|
closeManagedBrowser,
|
|
62
66
|
onStopSignal,
|
|
63
67
|
registerBrowserSessionCleanup
|
|
64
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-MAUGXKSI.js";
|
|
65
69
|
import {
|
|
66
70
|
withRemainingBudget
|
|
67
71
|
} from "./chunk-EHSBBBR2.js";
|
|
68
72
|
import {
|
|
69
73
|
resolveLocalBrowserGpuMode
|
|
70
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-LPI7HX4G.js";
|
|
71
75
|
import {
|
|
72
76
|
trackCheckReport,
|
|
73
77
|
trackCommandFailure
|
|
74
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-NSC5A4IR.js";
|
|
75
79
|
import {
|
|
76
80
|
swallowedFlagUsageError
|
|
77
81
|
} from "./chunk-HTIUNMTP.js";
|
|
@@ -91,17 +95,14 @@ import {
|
|
|
91
95
|
import {
|
|
92
96
|
extractMediaMetadata,
|
|
93
97
|
findHdrAutoPromotion
|
|
94
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-LK6KPVX2.js";
|
|
95
99
|
import {
|
|
96
100
|
lintProject,
|
|
97
101
|
shouldBlockRender
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import {
|
|
100
|
-
resolveProjectRelativeSrc
|
|
101
|
-
} from "./chunk-PBNWRWKA.js";
|
|
102
|
+
} from "./chunk-ZCJ5EGLU.js";
|
|
102
103
|
import {
|
|
103
104
|
withMeta
|
|
104
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
105
106
|
import {
|
|
106
107
|
normalizeErrorMessage
|
|
107
108
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -724,28 +725,13 @@ function round(value) {
|
|
|
724
725
|
}
|
|
725
726
|
|
|
726
727
|
// src/utils/hdrPromotion.ts
|
|
727
|
-
async function
|
|
728
|
-
const { bundleToSingleHtml } = await import("./compiler-ANIPXLJ7.js");
|
|
729
|
-
return bundleToSingleHtml(projectDir);
|
|
730
|
-
}
|
|
731
|
-
async function collectBundledRenderMedia(html) {
|
|
732
|
-
const producer = await loadProducer();
|
|
733
|
-
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
734
|
-
return producer.collectRenderMedia(html);
|
|
735
|
-
}
|
|
736
|
-
var DEFAULT_DEPENDENCIES = {
|
|
737
|
-
bundleHtml: bundleProjectHtml,
|
|
738
|
-
collectMedia: collectBundledRenderMedia
|
|
739
|
-
};
|
|
740
|
-
async function inspectHdrAutoPromotion(project, extractMetadata = extractMediaMetadata, dependencies = DEFAULT_DEPENDENCIES) {
|
|
728
|
+
async function inspectHdrAutoPromotion(project, media, extractMetadata = extractMediaMetadata) {
|
|
741
729
|
const assets = [];
|
|
742
|
-
const media = await dependencies.collectMedia(await dependencies.bundleHtml(project.dir));
|
|
743
730
|
for (const { src } of [...media.videos, ...media.images]) {
|
|
744
|
-
const path = /^https?:\/\//i.test(src) ? src : resolveProjectRelativeSrc(src, project.dir, project.dir);
|
|
745
731
|
try {
|
|
746
732
|
assets.push({
|
|
747
733
|
asset: src,
|
|
748
|
-
colorSpace: (await extractMetadata(
|
|
734
|
+
colorSpace: (await extractMetadata(mediaPath(src, project.dir))).colorSpace
|
|
749
735
|
});
|
|
750
736
|
} catch {
|
|
751
737
|
continue;
|
|
@@ -1834,7 +1820,7 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
|
|
|
1834
1820
|
skipped: false
|
|
1835
1821
|
};
|
|
1836
1822
|
}
|
|
1837
|
-
async function runCheckPipeline(project, options, dependencies =
|
|
1823
|
+
async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDENCIES) {
|
|
1838
1824
|
beginCheckSnapshots(project.dir);
|
|
1839
1825
|
const prelaunched = dependencies.prelaunchBrowser?.(project, options).catch(() => void 0);
|
|
1840
1826
|
try {
|
|
@@ -1851,15 +1837,7 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
|
|
|
1851
1837
|
...getRunId() !== void 0 ? { runId: getRunId() } : {}
|
|
1852
1838
|
});
|
|
1853
1839
|
const lint = buildLintSection(lintResult);
|
|
1854
|
-
|
|
1855
|
-
let hdrInspection = "available";
|
|
1856
|
-
try {
|
|
1857
|
-
hdrPromotion = await (dependencies.inspectHdrAutoPromotion ?? inspectHdrAutoPromotion)(
|
|
1858
|
-
project
|
|
1859
|
-
);
|
|
1860
|
-
} catch {
|
|
1861
|
-
hdrInspection = "unavailable";
|
|
1862
|
-
}
|
|
1840
|
+
const { hdr, audio } = await inspectProjectMedia(project, dependencies);
|
|
1863
1841
|
if (shouldBlockRender(true, false, lintResult.totalErrors, lintResult.totalWarnings)) {
|
|
1864
1842
|
return buildReport(
|
|
1865
1843
|
options,
|
|
@@ -1868,8 +1846,9 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
|
|
|
1868
1846
|
{ kind: "none" },
|
|
1869
1847
|
[],
|
|
1870
1848
|
[],
|
|
1871
|
-
|
|
1872
|
-
|
|
1849
|
+
hdr.autoPromotion,
|
|
1850
|
+
hdr.inspection,
|
|
1851
|
+
await audio
|
|
1873
1852
|
);
|
|
1874
1853
|
}
|
|
1875
1854
|
const motion = dependencies.resolveMotionSpec(project.dir);
|
|
@@ -1904,8 +1883,9 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
|
|
|
1904
1883
|
motion,
|
|
1905
1884
|
specFindings,
|
|
1906
1885
|
snapshotFiles,
|
|
1907
|
-
|
|
1908
|
-
|
|
1886
|
+
hdr.autoPromotion,
|
|
1887
|
+
hdr.inspection,
|
|
1888
|
+
await audio
|
|
1909
1889
|
);
|
|
1910
1890
|
outcome = {
|
|
1911
1891
|
kind: "report",
|
|
@@ -2108,7 +2088,7 @@ function buildLintSection(result) {
|
|
|
2108
2088
|
);
|
|
2109
2089
|
return { ...section(findings), filesScanned: result.results.length };
|
|
2110
2090
|
}
|
|
2111
|
-
function buildReport(options, lint, browser, motion, extraMotionFindings, snapshotFiles, hdrPromotion = null, hdrInspection = "available") {
|
|
2091
|
+
function buildReport(options, lint, browser, motion, extraMotionFindings, snapshotFiles, hdrPromotion = null, hdrInspection = "available", audioFindings = []) {
|
|
2112
2092
|
const shaping = options.components?.length ? { ...options, maxIssues: Number.MAX_SAFE_INTEGER } : options;
|
|
2113
2093
|
const layout = shapeLayoutSection(browser.layoutIssues, browser, shaping);
|
|
2114
2094
|
const shapedMotion = shapeLayoutFindings(browser.motionIssues, shaping);
|
|
@@ -2117,8 +2097,9 @@ function buildReport(options, lint, browser, motion, extraMotionFindings, snapsh
|
|
|
2117
2097
|
const motionSection = section(motionFindings);
|
|
2118
2098
|
const contrastSection = section(browser.contrastFindings);
|
|
2119
2099
|
const craftSection = section(browser.craft.findings);
|
|
2120
|
-
const
|
|
2121
|
-
const
|
|
2100
|
+
const audioSection = section(audioFindings);
|
|
2101
|
+
const warningCount = lint.warningCount + audioSection.warningCount + runtime.warningCount + layout.warningCount + motionSection.warningCount + contrastSection.warningCount + craftSection.warningCount;
|
|
2102
|
+
const errorCount = lint.errorCount + audioSection.errorCount + runtime.errorCount + layout.errorCount + motionSection.errorCount + contrastSection.errorCount + craftSection.errorCount;
|
|
2122
2103
|
const strictWarningCount = warningCount - craftSection.warningCount;
|
|
2123
2104
|
const report = {
|
|
2124
2105
|
ok: errorCount === 0 && (!options.strict || strictWarningCount === 0),
|
|
@@ -2146,6 +2127,7 @@ function buildReport(options, lint, browser, motion, extraMotionFindings, snapsh
|
|
|
2146
2127
|
step: browser.craft.step,
|
|
2147
2128
|
samples: browser.craft.samples
|
|
2148
2129
|
},
|
|
2130
|
+
audio: audioSection,
|
|
2149
2131
|
hdr: { autoPromotion: hdrPromotion, inspection: hdrInspection },
|
|
2150
2132
|
snapshots: {
|
|
2151
2133
|
enabled: options.snapshots,
|
|
@@ -2190,7 +2172,7 @@ function filterComponentReport(report, options) {
|
|
|
2190
2172
|
components: options.components,
|
|
2191
2173
|
hiddenFindings: 0,
|
|
2192
2174
|
notes: [
|
|
2193
|
-
"Static lint and unscoped runtime failures remain project-wide.",
|
|
2175
|
+
"Static lint, audio and unscoped runtime failures remain project-wide.",
|
|
2194
2176
|
...options.range ? [
|
|
2195
2177
|
"Whole-timeline motion assertions, frozen-sweep detection and craft warnings are skipped for range checks."
|
|
2196
2178
|
] : []
|
|
@@ -2293,18 +2275,6 @@ function runtimeFailure(error, code = "check_runtime_failure") {
|
|
|
2293
2275
|
error instanceof CheckDeadlineError ? error.sourceFile ?? "index.html" : "index.html"
|
|
2294
2276
|
);
|
|
2295
2277
|
}
|
|
2296
|
-
function findingAtRoot(code, severity, message, sourceFile) {
|
|
2297
|
-
return {
|
|
2298
|
-
code,
|
|
2299
|
-
severity,
|
|
2300
|
-
message,
|
|
2301
|
-
selector: "[data-composition-id]",
|
|
2302
|
-
dataAttributes: {},
|
|
2303
|
-
sourceFile,
|
|
2304
|
-
bbox: ZERO_BBOX2,
|
|
2305
|
-
time: 0
|
|
2306
|
-
};
|
|
2307
|
-
}
|
|
2308
2278
|
function failureReport(options, finding) {
|
|
2309
2279
|
const lint = { ...section([]), filesScanned: 0 };
|
|
2310
2280
|
const browser = emptyBrowserResult();
|
|
@@ -2330,7 +2300,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2330
2300
|
};
|
|
2331
2301
|
}
|
|
2332
2302
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2333
|
-
const module = await import("./checkBrowser-
|
|
2303
|
+
const module = await import("./checkBrowser-XSZUA2DQ.js");
|
|
2334
2304
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2335
2305
|
}
|
|
2336
2306
|
var adoptedBrowser;
|
|
@@ -2344,7 +2314,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2344
2314
|
if (adopted) return adopted;
|
|
2345
2315
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2346
2316
|
if (html === void 0) return void 0;
|
|
2347
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2317
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-A2A5MGQB.js");
|
|
2348
2318
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2349
2319
|
}
|
|
2350
2320
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2356,14 +2326,46 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2356
2326
|
return relative(projectDir, path);
|
|
2357
2327
|
}
|
|
2358
2328
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2359
|
-
const module = await import("./checkBrowser-
|
|
2329
|
+
const module = await import("./checkBrowser-XSZUA2DQ.js");
|
|
2360
2330
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2361
2331
|
}
|
|
2362
2332
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2363
|
-
const module = await import("./checkBrowser-
|
|
2333
|
+
const module = await import("./checkBrowser-XSZUA2DQ.js");
|
|
2364
2334
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2365
2335
|
}
|
|
2366
|
-
|
|
2336
|
+
async function inspectProjectMedia(project, dependencies) {
|
|
2337
|
+
const media = (dependencies.collectMedia ?? collectMedia)(project);
|
|
2338
|
+
let hdr;
|
|
2339
|
+
try {
|
|
2340
|
+
const promotion = (dependencies.inspectHdrAutoPromotion ?? inspectHdrAutoPromotion)(
|
|
2341
|
+
project,
|
|
2342
|
+
await media
|
|
2343
|
+
);
|
|
2344
|
+
hdr = { autoPromotion: await promotion, inspection: "available" };
|
|
2345
|
+
} catch {
|
|
2346
|
+
hdr = { autoPromotion: null, inspection: "unavailable" };
|
|
2347
|
+
}
|
|
2348
|
+
const audio = media.then((found) => (dependencies.inspectAudio ?? inspectAudio)(project, found)).catch((error) => audioCheckFailure(project, error));
|
|
2349
|
+
return { hdr, audio };
|
|
2350
|
+
}
|
|
2351
|
+
function collectMedia(project) {
|
|
2352
|
+
return collectProjectMedia(project.dir);
|
|
2353
|
+
}
|
|
2354
|
+
async function inspectAudio(project, media) {
|
|
2355
|
+
const module = await import("./checkAudio-PLEQY3SZ.js");
|
|
2356
|
+
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2357
|
+
}
|
|
2358
|
+
function audioCheckFailure(project, error) {
|
|
2359
|
+
return [
|
|
2360
|
+
findingAtRoot(
|
|
2361
|
+
"audio_check_unavailable",
|
|
2362
|
+
"info",
|
|
2363
|
+
`Audio was not checked: ${normalizeErrorMessage(error)}`,
|
|
2364
|
+
relative(project.dir, project.indexPath)
|
|
2365
|
+
)
|
|
2366
|
+
];
|
|
2367
|
+
}
|
|
2368
|
+
var DEFAULT_DEPENDENCIES = {
|
|
2367
2369
|
lintProject,
|
|
2368
2370
|
resolveMotionSpec,
|
|
2369
2371
|
runBrowserCheck,
|
|
@@ -2371,7 +2373,9 @@ var DEFAULT_DEPENDENCIES2 = {
|
|
|
2371
2373
|
writeSnapshot,
|
|
2372
2374
|
captureFindingCrops,
|
|
2373
2375
|
captureFindingFrames,
|
|
2374
|
-
|
|
2376
|
+
collectMedia,
|
|
2377
|
+
inspectHdrAutoPromotion,
|
|
2378
|
+
inspectAudio
|
|
2375
2379
|
};
|
|
2376
2380
|
|
|
2377
2381
|
// src/commands/check.ts
|
|
@@ -2400,7 +2404,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2400
2404
|
}
|
|
2401
2405
|
},
|
|
2402
2406
|
async prepareMedia(project, options) {
|
|
2403
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2407
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-Z2JTBNDS.js");
|
|
2404
2408
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2405
2409
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2406
2410
|
},
|
|
@@ -2884,6 +2888,7 @@ function printHumanReport(report) {
|
|
|
2884
2888
|
printSection("Motion", report.motion);
|
|
2885
2889
|
printContrastSection(report);
|
|
2886
2890
|
printCraftSection(report);
|
|
2891
|
+
printSection("Audio", report.audio);
|
|
2887
2892
|
printSnapshotSection(report);
|
|
2888
2893
|
console.log();
|
|
2889
2894
|
const label = report.ok ? c.success("Check passed") : c.error("Check failed");
|
|
@@ -14,11 +14,7 @@ import {
|
|
|
14
14
|
hdrToSdrToneMapFilter,
|
|
15
15
|
isHeavyForPreview,
|
|
16
16
|
parseFirstFrameColour
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
decodeAuthoredAttribute,
|
|
20
|
-
scanHtmlOpeningTags
|
|
21
|
-
} from "./chunk-SVVAUJPL.js";
|
|
17
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
22
18
|
import {
|
|
23
19
|
mkdirWithinProject,
|
|
24
20
|
realProjectRoot,
|
|
@@ -35,7 +31,11 @@ import {
|
|
|
35
31
|
} from "./chunk-PBNWRWKA.js";
|
|
36
32
|
import {
|
|
37
33
|
rewriteAssetPath
|
|
38
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SE2MXV2N.js";
|
|
35
|
+
import {
|
|
36
|
+
decodeAuthoredAttribute,
|
|
37
|
+
scanHtmlOpeningTags
|
|
38
|
+
} from "./chunk-NHA4NRBE.js";
|
|
39
39
|
|
|
40
40
|
// ../studio-server/dist/chunk-JKPLDWAB.js
|
|
41
41
|
import { statSync } from "fs";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
runCancellableProcess,
|
|
9
9
|
runRenderSetupWorker
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EHFZEKQM.js";
|
|
11
11
|
import {
|
|
12
12
|
getFreeDiskMb
|
|
13
13
|
} from "./chunk-QSFWGZG6.js";
|
|
@@ -469,11 +469,36 @@ Install Chromium manually and point hyperframes to it:
|
|
|
469
469
|
Then re-run your command. The HYPERFRAMES_BROWSER_PATH env var persists for the session.`
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
+
var BROWSER_WAIT_NOTICE_MS = 15e3;
|
|
473
|
+
async function withBrowserWaitNotice(task, notify = console.warn, everyMs = BROWSER_WAIT_NOTICE_MS) {
|
|
474
|
+
const timer = setInterval(
|
|
475
|
+
() => notify(
|
|
476
|
+
"[hyperframes] Still getting Chrome ready; the first use downloads it. Set HYPERFRAMES_BROWSER_PATH to use an installed Chrome instead."
|
|
477
|
+
),
|
|
478
|
+
everyMs
|
|
479
|
+
);
|
|
480
|
+
timer.unref();
|
|
481
|
+
try {
|
|
482
|
+
return await task;
|
|
483
|
+
} finally {
|
|
484
|
+
clearInterval(timer);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
472
487
|
async function ensureBrowser(options) {
|
|
473
|
-
|
|
474
|
-
|
|
488
|
+
const resolved = {
|
|
489
|
+
...options,
|
|
490
|
+
downloadAttempts: options?.downloadAttempts ?? (process.stdout.isTTY ? DOWNLOAD_ATTEMPTS : 1)
|
|
491
|
+
};
|
|
492
|
+
const task = resolved.signal ? ensureBrowserInOwnedProcess(resolved) : ensureBrowserInCurrentProcess(resolved);
|
|
493
|
+
return resolved.onProgress ? task : withBrowserWaitNotice(task);
|
|
475
494
|
}
|
|
476
495
|
async function ensureBrowserInCurrentProcess(options) {
|
|
496
|
+
const configured = browserPathFromEnv();
|
|
497
|
+
if (configured && !existsSync(configured.path)) {
|
|
498
|
+
throw new Error(
|
|
499
|
+
`${configured.name} is set to ${configured.path}, which does not exist. Fix the path or unset it.`
|
|
500
|
+
);
|
|
501
|
+
}
|
|
477
502
|
const fromEnv = findFromEnv();
|
|
478
503
|
if (fromEnv) return fromEnv;
|
|
479
504
|
if (!options?.force) {
|
|
@@ -510,7 +535,8 @@ async function ensureBrowserInOwnedProcess(options) {
|
|
|
510
535
|
"browser",
|
|
511
536
|
{
|
|
512
537
|
force: options.force,
|
|
513
|
-
preferManagedChrome: options.preferManagedChrome
|
|
538
|
+
preferManagedChrome: options.preferManagedChrome,
|
|
539
|
+
downloadAttempts: options.downloadAttempts
|
|
514
540
|
},
|
|
515
541
|
{
|
|
516
542
|
signal,
|
|
@@ -555,18 +581,18 @@ Point hyperframes at an already-installed Chrome/Chromium instead:
|
|
|
555
581
|
|
|
556
582
|
export HYPERFRAMES_BROWSER_PATH="${example}"
|
|
557
583
|
|
|
558
|
-
Then re-run your command. Any Chrome build works for the screenshot capture path; install a real chrome-headless-shell later if you need the perf-optimized BeginFrame path. Alternatively, run inside the hyperframes Docker image which ships a compatible headless-shell.`;
|
|
584
|
+
Run \`hyperframes doctor\` to see which Chrome was found. Then re-run your command. Any Chrome build works for the screenshot capture path; install a real chrome-headless-shell later if you need the perf-optimized BeginFrame path. Alternatively, run inside the hyperframes Docker image which ships a compatible headless-shell.`;
|
|
559
585
|
return new Error(message, { cause: cause instanceof Error ? cause : void 0 });
|
|
560
586
|
}
|
|
561
587
|
var DOWNLOAD_STALL_MS = 6e4;
|
|
562
588
|
var DOWNLOAD_ATTEMPTS = 3;
|
|
563
|
-
async function retryOnStall(run, clear) {
|
|
589
|
+
async function retryOnStall(run, clear, attempts = DOWNLOAD_ATTEMPTS) {
|
|
564
590
|
for (let attempt = 1; ; attempt++) {
|
|
565
591
|
try {
|
|
566
592
|
return await run();
|
|
567
593
|
} catch (err) {
|
|
568
|
-
if (!(err instanceof BrowserDownloadStalledError) || attempt >=
|
|
569
|
-
console.warn(`[hyperframes] ${err.message} Retrying (${attempt}/${
|
|
594
|
+
if (!(err instanceof BrowserDownloadStalledError) || attempt >= attempts) throw err;
|
|
595
|
+
console.warn(`[hyperframes] ${err.message} Retrying (${attempt}/${attempts - 1}).`);
|
|
570
596
|
clear();
|
|
571
597
|
}
|
|
572
598
|
}
|
|
@@ -642,7 +668,8 @@ async function downloadBrowser(options) {
|
|
|
642
668
|
`[hyperframes] Downloaded browser archive was corrupt (${normalizeErrorMessage(err)}); re-downloading.`
|
|
643
669
|
)
|
|
644
670
|
),
|
|
645
|
-
clearStaging
|
|
671
|
+
clearStaging,
|
|
672
|
+
options?.downloadAttempts
|
|
646
673
|
);
|
|
647
674
|
assertExecutableUnpacked(stagingDir, staged.executablePath);
|
|
648
675
|
unzipLog.lines = [];
|
|
@@ -733,9 +760,11 @@ export {
|
|
|
733
760
|
_resetSystemFallbackWarnForTests,
|
|
734
761
|
findSystemBrowser,
|
|
735
762
|
findBrowser,
|
|
763
|
+
withBrowserWaitNotice,
|
|
736
764
|
ensureBrowser,
|
|
737
765
|
isCorruptArchiveError,
|
|
738
766
|
installWithCorruptArchiveRecovery,
|
|
767
|
+
retryOnStall,
|
|
739
768
|
sweepKilledInstalls,
|
|
740
769
|
clearBrowser,
|
|
741
770
|
isLinuxArm
|
|
@@ -8,14 +8,15 @@ import {
|
|
|
8
8
|
addCatchUpNote,
|
|
9
9
|
markSeen,
|
|
10
10
|
readSeen,
|
|
11
|
+
seenPath,
|
|
11
12
|
writeRecord
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5PCALX6G.js";
|
|
13
14
|
import {
|
|
14
15
|
createProjectConfig
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LXP6XWJL.js";
|
|
16
17
|
import {
|
|
17
18
|
isHyperframesProject
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
19
20
|
|
|
20
21
|
// src/utils/desktopApp.ts
|
|
21
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -31,9 +32,13 @@ var DOWNLOADS = {
|
|
|
31
32
|
linux: `${STUDIO_PAGE}/download?os=linux`,
|
|
32
33
|
win32: `${STUDIO_PAGE}/download?os=windows`
|
|
33
34
|
};
|
|
34
|
-
var
|
|
35
|
+
var tagged = (url, src) => `${url}${url.includes("?") ? "&" : "?"}src=${src}`;
|
|
36
|
+
var desktopDownloadUrl = (platform = process.platform, src = "cli") => {
|
|
37
|
+
const url = DOWNLOADS[platform];
|
|
38
|
+
return url ? tagged(url, src) : null;
|
|
39
|
+
};
|
|
35
40
|
var downloadHint = (url) => `Keep editing by chatting with Framey in the HyperFrames desktop app \u2192 ${url}`;
|
|
36
|
-
var HANDOFF_READY =
|
|
41
|
+
var HANDOFF_READY = true;
|
|
37
42
|
var AGENT_HANDOFF_FILE = join(".hyperframes", "agent-handoff.json");
|
|
38
43
|
var DESKTOP_CTA_RECORD = "desktop-cta.json";
|
|
39
44
|
function agentSession(env = process.env) {
|
|
@@ -94,7 +99,9 @@ function leaveHandoff(dir, session) {
|
|
|
94
99
|
if (!session || !writeRecord(dir, "agent-handoff.json", JSON.stringify(session))) return null;
|
|
95
100
|
const now = Date.now();
|
|
96
101
|
if (!readSeen(dir).at && !markSeen(dir, { at: now, checked: now }))
|
|
97
|
-
console.warn(
|
|
102
|
+
console.warn(
|
|
103
|
+
`\u25C7 Couldn't note the hand-off in ${seenPath(dir)}, so \`catch-up\` won't see it.`
|
|
104
|
+
);
|
|
98
105
|
addCatchUpNote(dir);
|
|
99
106
|
return session;
|
|
100
107
|
}
|
|
@@ -116,12 +123,13 @@ function openInDesktop(dir, {
|
|
|
116
123
|
installed = () => desktopInstalled({ platform }),
|
|
117
124
|
env = process.env,
|
|
118
125
|
cta,
|
|
126
|
+
src = "cli",
|
|
119
127
|
...where
|
|
120
128
|
} = {}) {
|
|
121
129
|
const notOpened = (reason) => ({
|
|
122
130
|
opened: false,
|
|
123
131
|
reason,
|
|
124
|
-
downloadUrl: desktopDownloadUrl(platform) ?? STUDIO_PAGE
|
|
132
|
+
downloadUrl: desktopDownloadUrl(platform, src) ?? STUDIO_PAGE
|
|
125
133
|
});
|
|
126
134
|
const opened = (canary) => {
|
|
127
135
|
if (cta) writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ cta, at: Date.now() }));
|
|
@@ -6,7 +6,7 @@ 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-XAGBSYIQ.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_HISTORY_ROOT,
|
|
12
12
|
HistoryBusyError,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
findPreviewServerForProject,
|
|
19
19
|
studioApiUrl
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-543U46OR.js";
|
|
21
21
|
|
|
22
22
|
// src/utils/historyOwner.ts
|
|
23
23
|
import { randomUUID } from "crypto";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import { dirname, join, resolve } from "path";
|
|
34
34
|
var historyDeps = {
|
|
35
35
|
historyRoot: resolve(process.env.HYPERFRAMES_HISTORY_ROOT || DEFAULT_HISTORY_ROOT),
|
|
36
|
-
findServer: (projectDir) => findPreviewServerForProject(projectDir),
|
|
36
|
+
findServer: async (projectDir) => process.env.HYPERFRAMES_NO_PREVIEW_DISCOVERY === "1" ? null : findPreviewServerForProject(projectDir),
|
|
37
37
|
/** A turn with no write for this long has ended, through a preview or not. */
|
|
38
38
|
turnIdleMs: MAX_WINDOW_IDLE_MS,
|
|
39
39
|
ownerWaitMs: void 0,
|
|
@@ -6,31 +6,31 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
relinkSplitHalves
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
isAllowedHtmlAttribute,
|
|
12
|
-
isSafeAttributeValue,
|
|
13
|
-
sanitizeRichTextChildren
|
|
14
|
-
} from "./chunk-6GAYBX5C.js";
|
|
9
|
+
} from "./chunk-VQB7G5BM.js";
|
|
15
10
|
import {
|
|
16
11
|
EXCLUDED_TAGS,
|
|
17
12
|
ensureHfIds,
|
|
18
13
|
mintHfId,
|
|
19
14
|
walkCompositionDescendants
|
|
20
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RPZNQV6D.js";
|
|
21
16
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
isAllowedHtmlAttribute,
|
|
18
|
+
isSafeAttributeValue,
|
|
19
|
+
sanitizeRichTextChildren
|
|
20
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
25
21
|
import {
|
|
26
22
|
require_dist
|
|
27
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZCJ5EGLU.js";
|
|
28
24
|
import {
|
|
29
25
|
readClipTiming,
|
|
30
26
|
readMediaOffsetSeconds,
|
|
31
27
|
readPlaybackRate,
|
|
32
28
|
writeClipTiming
|
|
33
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SE2MXV2N.js";
|
|
30
|
+
import {
|
|
31
|
+
decodedUrlPath,
|
|
32
|
+
removeElementWithGsapCascade
|
|
33
|
+
} from "./chunk-NHA4NRBE.js";
|
|
34
34
|
import {
|
|
35
35
|
parseHTML
|
|
36
36
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
detectGpuEncoder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LK6KPVX2.js";
|
|
10
10
|
import {
|
|
11
11
|
runCancellableProcess
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EHFZEKQM.js";
|
|
13
13
|
import {
|
|
14
14
|
findFfBinary
|
|
15
15
|
} from "./chunk-VAS6HQX3.js";
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NSC5A4IR.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QTWXVOZI.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZCJ5EGLU.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|