hyperframes 0.8.206 → 0.8.208
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-FFMNAJXJ.js → add-XMWRBMBR.js} +22 -20
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-6XURJIPV.js} +14 -13
- package/dist/api.js +33 -32
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-I5GGEOB2.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-YBPXUNUP.js} +17 -14
- package/dist/{audio-VYWWM4DB.js → audio-GFJCHH5W.js} +420 -138
- package/dist/{auth-GZQZCUPL.js → auth-QOA55RYR.js} +4 -4
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-SPS4QPJU.js} +4 -4
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-HRJO7YK7.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-LI2BJRGO.js → batchRender-FBP3RKUF.js} +11 -10
- package/dist/{beats-H73CSYT4.js → beats-VNGJ7F6W.js} +32 -25
- package/dist/{benchmark-XT3A5REC.js → benchmark-NZ3N3MIV.js} +16 -16
- package/dist/{browser-VIOK66YK.js → browser-BD5BKRJ5.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-WXVNPAWD.js} +3 -3
- package/dist/{capture-KKD5GMAF.js → capture-CXWXKWS5.js} +120 -54
- package/dist/{capture-252WNPCD.js → capture-LMJ4TQRL.js} +63 -17
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-ZKVCRYYU.js} +21 -20
- package/dist/{captureFile-LYOJOUIE.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-WRXQSCAU.js} +28 -26
- package/dist/{catch-up-BFW7Z35W.js → catch-up-MDSPABFC.js} +7 -7
- package/dist/{check-XUWBZASR.js → check-SIBBK5HA.js} +53 -52
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-QQBR4HR7.js} +19 -18
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-4EBJLLIH.js} +45 -44
- package/dist/{chunk-XDMZY3H7.js → chunk-3O2E4Q66.js} +15 -20
- package/dist/{chunk-VEA7Z4PZ.js → chunk-43MW4SY7.js} +15 -7
- package/dist/{chunk-HJAJ6W4V.js → chunk-4F5NRJ6M.js} +2 -2
- package/dist/{chunk-2RT7MXFL.js → chunk-4HT2L6W2.js} +1 -1
- package/dist/{chunk-QVTCXN42.js → chunk-4KG3ESVO.js} +30 -4
- package/dist/{chunk-42KN6I6A.js → chunk-4LTBQEPD.js} +2 -2
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-NVLPW3DG.js → chunk-5HB4JM7H.js} +2 -2
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-X5HHHFTX.js → chunk-6CWKORZO.js} +3 -3
- package/dist/{chunk-ZF3R2IPC.js → chunk-6DSYBW7Z.js} +1 -0
- package/dist/{chunk-VHVSBOZH.js → chunk-6JNSYFOH.js} +4 -4
- package/dist/{chunk-AJSU6KGS.js → chunk-6N7D2GUV.js} +15 -15
- package/dist/{chunk-F2ASNL2K.js → chunk-6PWQH77E.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-6WRN4WC6.js} +1 -1
- package/dist/{chunk-GAV56VJL.js → chunk-7CPI2DWL.js} +2 -2
- package/dist/{chunk-CMDVJP4T.js → chunk-7PAK7LZ5.js} +11 -11
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/{chunk-X7RXXBYM.js → chunk-B5MPMIKQ.js} +2 -2
- package/dist/{chunk-RW4DMP2Y.js → chunk-BKDQFOKK.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-BLCKQPBE.js} +1 -1
- package/dist/chunk-BQMAPNDA.js +4830 -0
- package/dist/{chunk-CPSGXAYD.js → chunk-CP225S5H.js} +3 -3
- package/dist/{chunk-3R6SXPHD.js → chunk-CSWCZA6V.js} +3 -3
- package/dist/{chunk-4CY5RXXC.js → chunk-D2CE2J2A.js} +4 -4
- package/dist/{chunk-FMWACL3L.js → chunk-DHQSDCWD.js} +6 -2
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-OZUAVHFE.js → chunk-DXACKQ3F.js} +3 -3
- package/dist/{chunk-5QKJPCQ4.js → chunk-EGOXYG3M.js} +2 -2
- package/dist/{chunk-QL4ZYSIB.js → chunk-ENRFKCI6.js} +5 -71
- package/dist/{chunk-MRF4AMKD.js → chunk-EQBDKYXR.js} +5 -10
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-FULMZCDW.js → chunk-EYEEZXLI.js} +11 -11
- package/dist/{chunk-2MLMO25E.js → chunk-FC4WT5FX.js} +105 -7
- package/dist/{chunk-PLGGKTCB.js → chunk-FFDYRJBE.js} +37 -21
- package/dist/{chunk-7SXL476O.js → chunk-G2A6RC5R.js} +72 -28
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-CZYS6UKP.js → chunk-GEO6THL3.js} +61 -30
- package/dist/{chunk-MFHYBSJC.js → chunk-GHSO62LK.js} +3 -3
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-4DGLKB2H.js → chunk-HUKQW4YE.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-HZN7ICAF.js} +8 -8
- package/dist/{chunk-6ZFDNEMY.js → chunk-IIJVSCSH.js} +16 -16
- package/dist/{chunk-VDVVQNTK.js → chunk-IL2TMC6F.js} +5 -5
- package/dist/{chunk-L5MFWGGU.js → chunk-J67FSI3Q.js} +623 -376
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-SFYLZX5C.js → chunk-K4PHB3YQ.js} +59 -15
- package/dist/{chunk-G6W55MTX.js → chunk-KTWGVEN6.js} +40 -11
- package/dist/{chunk-FNNGQ3DB.js → chunk-LSMFOZ4F.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-PNKLOMHQ.js → chunk-MBGM26P5.js} +17 -22
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-MPO25DQW.js} +451 -208
- package/dist/{chunk-E2ZZSDDQ.js → chunk-MW2NQQ6Z.js} +2 -2
- package/dist/{chunk-TSJVPPXT.js → chunk-MYO77JWR.js} +1 -1
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-NNLQTG3M.js → chunk-NZ6G5YWZ.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-ORFRUZPB.js} +2 -2
- package/dist/{chunk-Z3XXLTVB.js → chunk-OTXXDONS.js} +3 -3
- package/dist/{chunk-2S263R6D.js → chunk-P7WGVXR7.js} +9 -9
- package/dist/{chunk-AXEEZKIL.js → chunk-PKVA6MPV.js} +6 -6
- package/dist/{chunk-FJW757TF.js → chunk-PSOAGSNO.js} +2 -2
- package/dist/{chunk-AEC4T4IF.js → chunk-PWEOSJ3E.js} +12 -12
- package/dist/{chunk-X7A7C4JS.js → chunk-Q43YUROE.js} +3 -3
- package/dist/{chunk-PQYWYBEQ.js → chunk-QP2MJYTJ.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-QWBVPWUI.js} +47 -55
- package/dist/{chunk-AAX2A7LQ.js → chunk-S2OLTAEL.js} +2 -2
- package/dist/{chunk-CNVHMLPI.js → chunk-S4KHJERB.js} +1 -1
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-3CS6QYL7.js → chunk-SI7QCT2J.js} +8 -8
- package/dist/{chunk-CIHW6VM2.js → chunk-SKKQMW5X.js} +1 -1
- package/dist/{chunk-3B2DBUQX.js → chunk-TNTGGDSD.js} +1 -1
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-XOM3XTJ4.js → chunk-U6KN6OIP.js} +2 -2
- package/dist/{chunk-63DGZRZP.js → chunk-ULL3U6PV.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-UMUVGNOH.js → chunk-VR3JLTZD.js} +3 -3
- package/dist/{chunk-DEVZJ4AL.js → chunk-VS4SK7BN.js} +17 -11
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/chunk-WABB4LZS.js +62 -0
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-36QE3P6B.js → chunk-WNMVC3IT.js} +1 -1
- package/dist/{chunk-T6SD37JZ.js → chunk-X6MCIK7L.js} +103 -16
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-BBUK6A7Q.js → chunk-XG3IZV62.js} +7 -7
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-G6QDFWDN.js → chunk-XOFBXLMG.js} +2 -2
- package/dist/{chunk-H4JO7VSI.js → chunk-XUQYC5DD.js} +12 -12
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-HEP5XMXV.js → chunk-Z5TGBEPJ.js} +9 -2
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{clean-N5VSKUVS.js → clean-6GX7WAEC.js} +32 -31
- package/dist/cli.js +58 -58
- package/dist/{cloud-74NF5FXC.js → cloud-6PFJKLNL.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-UGG3ZFH7.js} +13 -12
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-P4EBOP4B.js} +46 -45
- package/dist/{compiler-4MHMC777.js → compiler-PG4RKX6K.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-SQPMI3W7.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-KRIHY3IY.js} +20 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-GB4MS7LM.js → delete-T5TO4SV6.js} +7 -7
- package/dist/{deploy-NXD3Q3KD.js → deploy-AO6LQR5G.js} +6 -6
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-3ZJMZU75.js → dist-23AAB5X2.js} +36 -36
- package/dist/{dist-ZY6IFESG.js → dist-6IMEDVMC.js} +6 -3
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-QBUJQ655.js} +23 -22
- package/dist/{events-RYQYEWBV.js → events-J7CESLKQ.js} +4 -4
- package/dist/{events-T3CLIYRG.js → events-SIZO7YHI.js} +5 -5
- package/dist/{feedback-K5ZMMLTA.js → feedback-74WOJ5PN.js} +22 -22
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-AKUP6U2S.js} +17 -16
- package/dist/{figma-MYYCX635.js → figma-GGMYRR4Q.js} +3 -3
- package/dist/fontLocalizeCli.js +21 -19
- package/dist/{get-JVIDYMVP.js → get-PLKAI6JM.js} +7 -7
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-EYDAAPJF.js} +14 -13
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-UADJP4AV.js} +44 -43
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-KDF3OPOK.js} +15 -14
- package/dist/{help-XPPSLIRY.js → help-WSQQ555Q.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-VSQ2DQ3V.js} +110 -62
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-MOQ4LRC3.js} +18 -18
- package/dist/{init-NTIXWA3D.js → init-EONQSZJG.js} +62 -60
- package/dist/{inspect-MYMCV5E7.js → inspect-OLCVLHOU.js} +43 -42
- package/dist/{installer-PYJIJ3PJ.js → installer-GHISA75B.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-DGQYCY24.js} +13 -13
- package/dist/{lambda-SBNUYEQE.js → lambda-AMMWF2YH.js} +35 -15
- package/dist/{layout-IOMCOABO.js → layout-R6CAPGRO.js} +43 -42
- package/dist/{lint-AQWHHMPS.js → lint-QZJEYPHD.js} +14 -11
- package/dist/{lintProject-5A4SCW3S.js → lintProject-W3YVHAGP.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-KCJID4SP.js} +7 -7
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-3ZDK5JOA.js → login-7HKBEPJS.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-QYFYWZOK.js → manager-6YSKJMVD.js} +19 -18
- package/dist/{manager-F2YREC5X.js → manager-Z7W4GQGF.js} +9 -5
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-E3DL6LEZ.js} +34 -31
- package/dist/{models-MR55FAUX.js → models-URWI7YEG.js} +30 -29
- package/dist/{motionShot-DC47S7BT.js → motionShot-27IXMDJK.js} +25 -24
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-WGRLPR3P.js} +16 -16
- package/dist/{open-YXWBWTKL.js → open-LQ35PLEN.js} +21 -21
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-XASVIDTI.js} +27 -26
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-GA7QVCHS.js} +18 -17
- package/dist/{play-S562STR4.js → play-RYZP77CI.js} +31 -31
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-QWGXMISC.js → preflight-HJFSJXXF.js} +19 -18
- package/dist/{present-PGOHZT3L.js → present-YBMLOWZV.js} +26 -26
- package/dist/{preview-JU75H4QN.js → preview-QIRKJCRV.js} +52 -39
- package/dist/{producer-H66OMZLW.js → producer-524FDOLX.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-IDQN5ZRW.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-3X3IGSDO.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-2BF7K6HX.js} +21 -20
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-WRCGIU32.js → remove-background-EZBCEFT6.js} +22 -21
- package/dist/{render-QS3YJCBR.js → render-EFUA2A6A.js} +15 -11
- package/dist/{render-VUVTK2JM.js → render-JFMTAXHD.js} +87 -53
- package/dist/{render-5J5PP3UK.js → render-TEEBI2UT.js} +49 -43
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-XTYNXVSW.js} +16 -12
- package/dist/renderSetupWorker.js +12 -9
- package/dist/{resolver-QCBWPRSC.js → resolver-FZS6TN6B.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-IZ22SC5W.js → sherpa-TQIAIKTH.js} +26 -25
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- 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/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-3RFMPMJA.js → skills-S6ZG5KKH.js} +10 -10
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-XC7JQL3F.js} +5 -5
- package/dist/{snapshot-5PHA43DK.js → snapshot-ERYZIM32.js} +152 -80
- package/dist/{src-4YJKYMNF.js → src-6XOMREMS.js} +21 -12
- package/dist/{src-36BQVJL3.js → src-OL6RHPE4.js} +22 -20
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-JYDDGPAH.js} +26 -26
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/hyperframes-player-5dRdMVOq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-Bu3mJUU2.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-ZqyQ91pm.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-GRU4SHKD.js} +18 -18
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-OYPBEI5B.js} +76 -73
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-W3LRO3TB.js → telemetry-CPYINR63.js} +5 -5
- package/dist/{timeline-BDO5DYWP.js → timeline-RGK5BMPD.js} +34 -33
- package/dist/{tokens-47CEMYFV.js → tokens-EX4BOWRW.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-MK367I6A.js} +24 -23
- package/dist/{transcribe-GEPVJO3A.js → transcribe-RI52JMVW.js} +35 -34
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-BIEJKQI4.js} +4 -4
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-ES3UUI7O.js} +4 -4
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-XAGYSTAG.js} +13 -12
- package/dist/{validate-2OPSQT3W.js → validate-A6GZHNEI.js} +36 -35
- package/dist/{video-ECWXMY4F.js → video-OEMGR3MN.js} +19 -15
- package/dist/warmCheck.js +53 -52
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-KLIPVNCO.js +0 -4824
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -8,35 +8,36 @@ import {
|
|
|
8
8
|
resolveCaptureBrowserGpuMode,
|
|
9
9
|
resolveLocalBrowserGpuMode,
|
|
10
10
|
resolveLocalWebGpu
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4LTBQEPD.js";
|
|
12
12
|
import {
|
|
13
13
|
assertWebGpuAdapterAvailable,
|
|
14
14
|
compositionRequiresWebGpu
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MPO25DQW.js";
|
|
16
|
+
import "./chunk-Z5J67X44.js";
|
|
16
17
|
import "./chunk-5S7W3TUO.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-KLIPVNCO.js";
|
|
18
|
+
import "./chunk-GHSO62LK.js";
|
|
19
|
+
import "./chunk-QWBVPWUI.js";
|
|
20
|
+
import "./chunk-BQMAPNDA.js";
|
|
21
21
|
import "./chunk-VC76R6W2.js";
|
|
22
|
-
import "./chunk-OFRRUYBA.js";
|
|
23
|
-
import "./chunk-FR7YBU3H.js";
|
|
24
22
|
import "./chunk-OFQWTKPW.js";
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-RQVDTPGD.js";
|
|
26
24
|
import "./chunk-3GXQPCJC.js";
|
|
27
25
|
import "./chunk-634HSJ3J.js";
|
|
28
26
|
import "./chunk-FXMKHHPO.js";
|
|
29
27
|
import "./chunk-K4MJX7SR.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-ERUQ3S6D.js";
|
|
29
|
+
import "./chunk-FC4WT5FX.js";
|
|
32
30
|
import "./chunk-CZGHFATT.js";
|
|
33
31
|
import "./chunk-VAS6HQX3.js";
|
|
34
32
|
import "./chunk-PBNWRWKA.js";
|
|
35
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-SE2MXV2N.js";
|
|
34
|
+
import "./chunk-NHA4NRBE.js";
|
|
35
|
+
import "./chunk-FR7YBU3H.js";
|
|
36
|
+
import "./chunk-DPVXBVLL.js";
|
|
36
37
|
import "./chunk-GWTIFRF5.js";
|
|
37
38
|
import "./chunk-2RY2LWAA.js";
|
|
38
39
|
import "./chunk-3422KMTD.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-WC4MTXGN.js";
|
|
40
41
|
import "./chunk-UIOZIIB7.js";
|
|
41
42
|
import "./chunk-M2WBOQ2Q.js";
|
|
42
43
|
export {
|
|
@@ -15,50 +15,50 @@ import {
|
|
|
15
15
|
import "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
findFFmpeg
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EGOXYG3M.js";
|
|
19
19
|
import {
|
|
20
20
|
serveStaticProjectHtml
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-P7WGVXR7.js";
|
|
22
|
+
import "./chunk-DXACKQ3F.js";
|
|
23
23
|
import "./chunk-X7MTZ4T2.js";
|
|
24
24
|
import "./chunk-XUHOIDKG.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-G2A6RC5R.js";
|
|
26
|
+
import "./chunk-PWEOSJ3E.js";
|
|
27
|
+
import "./chunk-VQB7G5BM.js";
|
|
28
|
+
import "./chunk-IL2TMC6F.js";
|
|
29
|
+
import "./chunk-3O2E4Q66.js";
|
|
30
|
+
import "./chunk-PKVA6MPV.js";
|
|
31
31
|
import "./chunk-ALVXFXUG.js";
|
|
32
32
|
import {
|
|
33
33
|
openSettledCompositionPage,
|
|
34
34
|
runFfmpegOnce
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-7PAK7LZ5.js";
|
|
36
|
+
import "./chunk-X6MCIK7L.js";
|
|
37
37
|
import "./chunk-MOEGCMKI.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-ENRFKCI6.js";
|
|
39
39
|
import "./chunk-DKPNNYBZ.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-QP2MJYTJ.js";
|
|
41
41
|
import "./chunk-K2FLNJVB.js";
|
|
42
42
|
import "./chunk-EHSBBBR2.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-ULL3U6PV.js";
|
|
44
|
+
import "./chunk-4LTBQEPD.js";
|
|
45
|
+
import "./chunk-ORFRUZPB.js";
|
|
46
46
|
import "./chunk-XT7X6QCP.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-XMRA7CQG.js";
|
|
48
48
|
import "./chunk-HVW7ABXD.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-TNTGGDSD.js";
|
|
50
50
|
import "./chunk-JHOCK3DG.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-OTXXDONS.js";
|
|
52
|
+
import "./chunk-HUKQW4YE.js";
|
|
53
53
|
import "./chunk-AWDFDFI3.js";
|
|
54
54
|
import "./chunk-P6LJ4Y32.js";
|
|
55
55
|
import "./chunk-GMECXFAN.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-W4DMQZL5.js";
|
|
57
57
|
import "./chunk-EOVYQ3IG.js";
|
|
58
58
|
import {
|
|
59
59
|
trackCompareSheet
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-DHQSDCWD.js";
|
|
61
|
+
import "./chunk-PSOAGSNO.js";
|
|
62
62
|
import "./chunk-VWG7OQKU.js";
|
|
63
63
|
import {
|
|
64
64
|
defineCommand
|
|
@@ -70,58 +70,59 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
c
|
|
72
72
|
} from "./chunk-ZTZA4UWZ.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-5YHQBCWH.js";
|
|
74
74
|
import "./chunk-EVMY7IPL.js";
|
|
75
75
|
import "./chunk-7FMUTGOH.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-MPO25DQW.js";
|
|
77
|
+
import "./chunk-Z5J67X44.js";
|
|
77
78
|
import "./chunk-5S7W3TUO.js";
|
|
79
|
+
import "./chunk-GHSO62LK.js";
|
|
78
80
|
import {
|
|
79
81
|
gsapCdnDist
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-RQVDTPGD.js";
|
|
82
|
-
import "./chunk-MFHYBSJC.js";
|
|
82
|
+
} from "./chunk-QWBVPWUI.js";
|
|
83
83
|
import {
|
|
84
84
|
HF_COLOR_GRADING_ATTR,
|
|
85
85
|
isHfColorGradingActive,
|
|
86
86
|
normalizeHfColorGrading,
|
|
87
87
|
parseCubeLut,
|
|
88
88
|
serializeHfColorGrading
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-BQMAPNDA.js";
|
|
90
90
|
import "./chunk-VC76R6W2.js";
|
|
91
|
-
import "./chunk-OFRRUYBA.js";
|
|
92
|
-
import "./chunk-FR7YBU3H.js";
|
|
93
91
|
import "./chunk-OFQWTKPW.js";
|
|
94
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-RQVDTPGD.js";
|
|
95
93
|
import "./chunk-3GXQPCJC.js";
|
|
96
94
|
import "./chunk-634HSJ3J.js";
|
|
97
95
|
import "./chunk-FXMKHHPO.js";
|
|
98
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-Q43YUROE.js";
|
|
97
|
+
import "./chunk-KGPLIH7B.js";
|
|
99
98
|
import "./chunk-QSFWGZG6.js";
|
|
100
99
|
import "./chunk-XT6MXC7A.js";
|
|
101
100
|
import "./chunk-K4MJX7SR.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-ERUQ3S6D.js";
|
|
102
|
+
import "./chunk-FC4WT5FX.js";
|
|
104
103
|
import "./chunk-CZGHFATT.js";
|
|
105
104
|
import "./chunk-VAS6HQX3.js";
|
|
106
105
|
import "./chunk-PBNWRWKA.js";
|
|
107
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-SE2MXV2N.js";
|
|
107
|
+
import "./chunk-NHA4NRBE.js";
|
|
108
|
+
import "./chunk-FR7YBU3H.js";
|
|
109
|
+
import "./chunk-DPVXBVLL.js";
|
|
108
110
|
import "./chunk-GWTIFRF5.js";
|
|
109
111
|
import "./chunk-2RY2LWAA.js";
|
|
110
112
|
import "./chunk-3422KMTD.js";
|
|
111
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-WC4MTXGN.js";
|
|
112
114
|
import "./chunk-UIOZIIB7.js";
|
|
113
115
|
import {
|
|
114
116
|
withMeta
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-U6KN6OIP.js";
|
|
116
118
|
import "./chunk-K4WIOZFP.js";
|
|
117
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-NEASABW6.js";
|
|
118
120
|
import "./chunk-WERLJGIC.js";
|
|
119
121
|
import "./chunk-ISN5GRYI.js";
|
|
120
|
-
import "./chunk-
|
|
122
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
121
123
|
import {
|
|
122
124
|
normalizeErrorMessage
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import "./chunk-KGPLIH7B.js";
|
|
125
|
+
} from "./chunk-EU7MVORF.js";
|
|
125
126
|
import "./chunk-M2WBOQ2Q.js";
|
|
126
127
|
|
|
127
128
|
// src/commands/grade-compare.ts
|
|
@@ -509,7 +510,7 @@ async function loadReferenceFrame(framePath) {
|
|
|
509
510
|
};
|
|
510
511
|
}
|
|
511
512
|
async function captureGradeCompareSheet(projectDir, timeoutMs) {
|
|
512
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
513
|
+
const { bundleToSingleHtml } = await import("./compiler-PG4RKX6K.js");
|
|
513
514
|
const html = await bundleToSingleHtml(projectDir);
|
|
514
515
|
const server = await serveStaticProjectHtml(projectDir, html);
|
|
515
516
|
const sheetPath = join(projectDir, "grade-compare.png");
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseGsapScriptAcorn,
|
|
15
15
|
parseGsapScriptAcornForWrite,
|
|
16
16
|
scriptShape
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-W4DMQZL5.js";
|
|
18
|
+
import "./chunk-WC4MTXGN.js";
|
|
19
19
|
import "./chunk-M2WBOQ2Q.js";
|
|
20
20
|
export {
|
|
21
21
|
buildArcPath,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
8
|
+
|
|
9
|
+
// src/hangReport.ts
|
|
10
|
+
import { writeFileSync } from "fs";
|
|
11
|
+
import { isAbsolute, join } from "path";
|
|
12
|
+
var QUIET_MS = 6e4;
|
|
13
|
+
function writeReportFile(path, report = process.report) {
|
|
14
|
+
if (!("excludeEnv" in report)) return false;
|
|
15
|
+
report.excludeEnv = true;
|
|
16
|
+
writeFileSync(path, JSON.stringify(report.getReport()), { mode: 384 });
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
function watchForHang(outputs = [process.stdout, process.stderr], env = process.env, writeReport = writeReportFile) {
|
|
20
|
+
const dir = env.HYPERFRAMES_HANG_REPORT;
|
|
21
|
+
if (!dir || !isAbsolute(dir)) return;
|
|
22
|
+
let timer;
|
|
23
|
+
let written = false;
|
|
24
|
+
const arm = () => {
|
|
25
|
+
if (written) return;
|
|
26
|
+
clearTimeout(timer);
|
|
27
|
+
timer = setTimeout(() => {
|
|
28
|
+
written = true;
|
|
29
|
+
try {
|
|
30
|
+
writeReport(join(dir, `hang-${process.pid}.json`));
|
|
31
|
+
} catch {
|
|
32
|
+
}
|
|
33
|
+
}, QUIET_MS).unref();
|
|
34
|
+
};
|
|
35
|
+
for (const output of outputs) {
|
|
36
|
+
const write = output.write.bind(output);
|
|
37
|
+
output.write = (...args) => {
|
|
38
|
+
arm();
|
|
39
|
+
return write(...args);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
arm();
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
watchForHang,
|
|
46
|
+
writeReportFile
|
|
47
|
+
};
|
|
@@ -12,34 +12,35 @@ import {
|
|
|
12
12
|
isHeifBytes,
|
|
13
13
|
prepareHeifImageInputs,
|
|
14
14
|
primaryGrid
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-XOFBXLMG.js";
|
|
16
|
+
import "./chunk-5HB4JM7H.js";
|
|
17
17
|
import "./chunk-BZ56MTDX.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MPO25DQW.js";
|
|
19
|
+
import "./chunk-Z5J67X44.js";
|
|
19
20
|
import "./chunk-5S7W3TUO.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-KLIPVNCO.js";
|
|
21
|
+
import "./chunk-GHSO62LK.js";
|
|
22
|
+
import "./chunk-QWBVPWUI.js";
|
|
23
|
+
import "./chunk-BQMAPNDA.js";
|
|
24
24
|
import "./chunk-VC76R6W2.js";
|
|
25
|
-
import "./chunk-OFRRUYBA.js";
|
|
26
|
-
import "./chunk-FR7YBU3H.js";
|
|
27
25
|
import "./chunk-OFQWTKPW.js";
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RQVDTPGD.js";
|
|
29
27
|
import "./chunk-3GXQPCJC.js";
|
|
30
28
|
import "./chunk-634HSJ3J.js";
|
|
31
29
|
import "./chunk-FXMKHHPO.js";
|
|
32
30
|
import "./chunk-K4MJX7SR.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-ERUQ3S6D.js";
|
|
32
|
+
import "./chunk-FC4WT5FX.js";
|
|
35
33
|
import "./chunk-CZGHFATT.js";
|
|
36
34
|
import "./chunk-VAS6HQX3.js";
|
|
37
35
|
import "./chunk-PBNWRWKA.js";
|
|
38
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-SE2MXV2N.js";
|
|
37
|
+
import "./chunk-NHA4NRBE.js";
|
|
38
|
+
import "./chunk-FR7YBU3H.js";
|
|
39
|
+
import "./chunk-DPVXBVLL.js";
|
|
39
40
|
import "./chunk-GWTIFRF5.js";
|
|
40
41
|
import "./chunk-2RY2LWAA.js";
|
|
41
42
|
import "./chunk-3422KMTD.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-WC4MTXGN.js";
|
|
43
44
|
import "./chunk-UIOZIIB7.js";
|
|
44
45
|
import "./chunk-M2WBOQ2Q.js";
|
|
45
46
|
export {
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
withOwner,
|
|
13
13
|
withReader,
|
|
14
14
|
writeTurn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CSWCZA6V.js";
|
|
16
16
|
import "./chunk-X7MTZ4T2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-Z5TGBEPJ.js";
|
|
18
18
|
import {
|
|
19
19
|
HistoryBusyError,
|
|
20
20
|
HistoryIdError,
|
|
21
21
|
HistoryRefusedError,
|
|
22
22
|
START
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3O2E4Q66.js";
|
|
24
24
|
import "./chunk-ALVXFXUG.js";
|
|
25
25
|
import "./chunk-K2FLNJVB.js";
|
|
26
26
|
import {
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
import "./chunk-EOVYQ3IG.js";
|
|
30
30
|
import {
|
|
31
31
|
trackHistoryAction
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-DHQSDCWD.js";
|
|
33
|
+
import "./chunk-PSOAGSNO.js";
|
|
34
34
|
import "./chunk-VWG7OQKU.js";
|
|
35
35
|
import {
|
|
36
36
|
defineCommand
|
|
@@ -49,29 +49,107 @@ import "./chunk-XT6MXC7A.js";
|
|
|
49
49
|
import "./chunk-UIOZIIB7.js";
|
|
50
50
|
import {
|
|
51
51
|
withMeta
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-U6KN6OIP.js";
|
|
53
53
|
import "./chunk-K4WIOZFP.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-NEASABW6.js";
|
|
55
55
|
import "./chunk-WERLJGIC.js";
|
|
56
56
|
import "./chunk-ISN5GRYI.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
58
|
+
import "./chunk-EU7MVORF.js";
|
|
59
59
|
import "./chunk-M2WBOQ2Q.js";
|
|
60
60
|
|
|
61
|
+
// src/utils/unifiedDiff.ts
|
|
62
|
+
var CONTEXT = 3;
|
|
63
|
+
var MAX_EDIT_LINES = 4e3;
|
|
64
|
+
function linesOf(text) {
|
|
65
|
+
if (text === "") return [];
|
|
66
|
+
const lines = text.split("\n");
|
|
67
|
+
if (lines[lines.length - 1] === "") lines.pop();
|
|
68
|
+
else lines[lines.length - 1] += "\0";
|
|
69
|
+
return lines;
|
|
70
|
+
}
|
|
71
|
+
var display = (line2) => line2.endsWith("\0") ? `${line2.slice(0, -1)}
|
|
72
|
+
\` : line2;
|
|
73
|
+
function editScript(a, b) {
|
|
74
|
+
let head = 0;
|
|
75
|
+
while (head < a.length && head < b.length && a[head] === b[head]) head++;
|
|
76
|
+
let tail = 0;
|
|
77
|
+
while (tail < a.length - head && tail < b.length - head && a[a.length - 1 - tail] === b[b.length - 1 - tail])
|
|
78
|
+
tail++;
|
|
79
|
+
const x = a.slice(head, a.length - tail);
|
|
80
|
+
const y = b.slice(head, b.length - tail);
|
|
81
|
+
const same = (lines) => lines.map((text) => ({ kind: " ", text }));
|
|
82
|
+
return [...same(a.slice(0, head)), ...middle(x, y), ...same(a.slice(a.length - tail))];
|
|
83
|
+
}
|
|
84
|
+
var replaceAll = (a, b) => [
|
|
85
|
+
...a.map((text) => ({ kind: "-", text })),
|
|
86
|
+
...b.map((text) => ({ kind: "+", text }))
|
|
87
|
+
];
|
|
88
|
+
var movesDown = (v, offset, k, d) => k === -d || k !== d && v[offset + k - 1] < v[offset + k + 1];
|
|
89
|
+
function reach(v, offset, k, d, a, b) {
|
|
90
|
+
let x = movesDown(v, offset, k, d) ? v[offset + k + 1] : v[offset + k - 1] + 1;
|
|
91
|
+
while (x < a.length && x - k < b.length && a[x] === b[x - k]) x++;
|
|
92
|
+
return x;
|
|
93
|
+
}
|
|
94
|
+
function middle(a, b) {
|
|
95
|
+
if (a.length + b.length > MAX_EDIT_LINES) return replaceAll(a, b);
|
|
96
|
+
const offset = a.length + b.length;
|
|
97
|
+
const v = new Int32Array(2 * offset + 2);
|
|
98
|
+
const trace = [];
|
|
99
|
+
for (let d = 0; ; d++) {
|
|
100
|
+
trace.push(v.slice());
|
|
101
|
+
for (let k = -d; k <= d; k += 2) {
|
|
102
|
+
const x = reach(v, offset, k, d, a, b);
|
|
103
|
+
v[offset + k] = x;
|
|
104
|
+
if (x >= a.length && x - k >= b.length) return backtrack(trace, a, b, offset, d);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function slideBack(ops, a, x, to) {
|
|
109
|
+
for (; x > to; x--) ops.push({ kind: " ", text: a[x - 1] });
|
|
110
|
+
return to;
|
|
111
|
+
}
|
|
112
|
+
function backtrack(trace, a, b, offset, last) {
|
|
113
|
+
const ops = [];
|
|
114
|
+
let x = a.length;
|
|
115
|
+
let y = b.length;
|
|
116
|
+
for (let d = last; d > 0; d--) {
|
|
117
|
+
const k = x - y;
|
|
118
|
+
const down = movesDown(trace[d], offset, k, d);
|
|
119
|
+
const prevX = trace[d][offset + (down ? k + 1 : k - 1)];
|
|
120
|
+
x = slideBack(ops, a, x, down ? prevX : prevX + 1);
|
|
121
|
+
y = x - k;
|
|
122
|
+
if (down) ops.push({ kind: "+", text: b[--y] });
|
|
123
|
+
else ops.push({ kind: "-", text: a[--x] });
|
|
124
|
+
}
|
|
125
|
+
slideBack(ops, a, x, 0);
|
|
126
|
+
return ops.reverse();
|
|
127
|
+
}
|
|
128
|
+
function unifiedDiff(path, before, after) {
|
|
129
|
+
const ops = editScript(linesOf(before), linesOf(after));
|
|
130
|
+
const changed = ops.flatMap((op, index) => op.kind === " " ? [] : [index]);
|
|
131
|
+
if (changed.length === 0) return "";
|
|
132
|
+
const out = [`diff --git a/${path} b/${path}`, `--- a/${path}`, `+++ b/${path}`];
|
|
133
|
+
let from = 0;
|
|
134
|
+
while (from < changed.length) {
|
|
135
|
+
let to = from;
|
|
136
|
+
while (to + 1 < changed.length && changed[to + 1] - changed[to] <= 2 * CONTEXT + 1) to++;
|
|
137
|
+
const start = Math.max(0, changed[from] - CONTEXT);
|
|
138
|
+
const end = Math.min(ops.length, changed[to] + CONTEXT + 1);
|
|
139
|
+
const hunk = ops.slice(start, end);
|
|
140
|
+
const before0 = ops.slice(0, start).filter((op) => op.kind !== "+").length;
|
|
141
|
+
const after0 = ops.slice(0, start).filter((op) => op.kind !== "-").length;
|
|
142
|
+
const oldLen = hunk.filter((op) => op.kind !== "+").length;
|
|
143
|
+
const newLen = hunk.filter((op) => op.kind !== "-").length;
|
|
144
|
+
const range = (first, length) => length === 1 ? `${first + 1}` : `${length === 0 ? first : first + 1},${length}`;
|
|
145
|
+
out.push(`@@ -${range(before0, oldLen)} +${range(after0, newLen)} @@`);
|
|
146
|
+
for (const op of hunk) out.push(`${op.kind}${display(op.text)}`);
|
|
147
|
+
from = to + 1;
|
|
148
|
+
}
|
|
149
|
+
return out.join("\n");
|
|
150
|
+
}
|
|
151
|
+
|
|
61
152
|
// src/commands/history.ts
|
|
62
|
-
import { spawnSync } from "child_process";
|
|
63
|
-
import {
|
|
64
|
-
closeSync,
|
|
65
|
-
fstatSync,
|
|
66
|
-
mkdirSync,
|
|
67
|
-
mkdtempSync,
|
|
68
|
-
openSync,
|
|
69
|
-
readSync,
|
|
70
|
-
rmSync,
|
|
71
|
-
writeFileSync
|
|
72
|
-
} from "fs";
|
|
73
|
-
import { tmpdir } from "os";
|
|
74
|
-
import { dirname, join } from "path";
|
|
75
153
|
var examples = [
|
|
76
154
|
[
|
|
77
155
|
"What changed since your last turn, and who changed it",
|
|
@@ -181,48 +259,18 @@ function print(json, data, text) {
|
|
|
181
259
|
console.log(json ? JSON.stringify(withMeta(data), null, 2) : text);
|
|
182
260
|
}
|
|
183
261
|
async function textDiff(reader, entry) {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
);
|
|
191
|
-
|
|
192
|
-
out.push(`Binary ${file.path} changed`);
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
const [a, b] = ["a", "b"].map((side, index) => {
|
|
196
|
-
const path = join(side, file.path);
|
|
197
|
-
mkdirSync(dirname(join(work, path)), { recursive: true });
|
|
198
|
-
writeFileSync(join(work, path), sides[index]);
|
|
199
|
-
return path;
|
|
200
|
-
});
|
|
201
|
-
const outputPath = join(work, "diff");
|
|
202
|
-
const outputFd = openSync(outputPath, "w+", 384);
|
|
203
|
-
try {
|
|
204
|
-
const diff = spawnSync("git", ["diff", "--no-index", "--no-color", "--no-prefix", a, b], {
|
|
205
|
-
cwd: work,
|
|
206
|
-
encoding: "utf-8",
|
|
207
|
-
stdio: ["ignore", outputFd, "pipe"]
|
|
208
|
-
});
|
|
209
|
-
if (diff.error) throw new Refusal("--diff needs git on PATH");
|
|
210
|
-
const output = Buffer.alloc(fstatSync(outputFd).size);
|
|
211
|
-
let offset = 0;
|
|
212
|
-
while (offset < output.length) {
|
|
213
|
-
const count = readSync(outputFd, output, offset, output.length - offset, offset);
|
|
214
|
-
if (count === 0) break;
|
|
215
|
-
offset += count;
|
|
216
|
-
}
|
|
217
|
-
out.push(output.subarray(0, offset).toString("utf-8").trimEnd());
|
|
218
|
-
} finally {
|
|
219
|
-
closeSync(outputFd);
|
|
220
|
-
}
|
|
262
|
+
const out = [];
|
|
263
|
+
for (const file of entry.files) {
|
|
264
|
+
const sides = await Promise.all(
|
|
265
|
+
[file.before, file.after].map((hash) => hash ? reader.blob(hash) : Buffer.alloc(0))
|
|
266
|
+
);
|
|
267
|
+
if (sides.some((bytes) => bytes.subarray(0, 8e3).includes(0))) {
|
|
268
|
+
out.push(`Binary ${file.path} changed`);
|
|
269
|
+
continue;
|
|
221
270
|
}
|
|
222
|
-
|
|
223
|
-
} finally {
|
|
224
|
-
rmSync(work, { recursive: true, force: true });
|
|
271
|
+
out.push(unifiedDiff(file.path, sides[0].toString("utf-8"), sides[1].toString("utf-8")));
|
|
225
272
|
}
|
|
273
|
+
return out.join("\n");
|
|
226
274
|
}
|
|
227
275
|
function conflictText(entry, newer, files, again) {
|
|
228
276
|
return [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.1.0",
|
|
3
3
|
"buildId": "dev",
|
|
4
|
-
"sha256": "
|
|
4
|
+
"sha256": "e7380e2810c1db76b94231462d6756bbd8fd7047ab2014b7428a26dc7105b099",
|
|
5
5
|
"artifacts": {
|
|
6
6
|
"iife": "hyperframe.runtime.iife.js",
|
|
7
7
|
"esm": "hyperframe.runtime.mjs"
|