hyperframes 0.8.206 → 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-FFMNAJXJ.js → add-LXFWHBE3.js} +19 -18
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-VBPJZKFT.js} +12 -12
- package/dist/api.js +30 -30
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-JX4RW3GO.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-JKKOPBCF.js} +14 -13
- package/dist/{audio-VYWWM4DB.js → audio-OXQ3L6DW.js} +22 -22
- package/dist/{auth-GZQZCUPL.js → auth-JAL7P7ZA.js} +1 -1
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-MRI2AICE.js} +2 -2
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-ORR46PBY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-LI2BJRGO.js → batchRender-IFZYPGIW.js} +9 -9
- package/dist/{beats-H73CSYT4.js → beats-UDLOEW6U.js} +19 -19
- package/dist/{benchmark-XT3A5REC.js → benchmark-VTVDNKSO.js} +14 -14
- package/dist/{browser-VIOK66YK.js → browser-QJC4BL2Y.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
- package/dist/{capture-252WNPCD.js → capture-2P4JERSX.js} +14 -3
- package/dist/{capture-KKD5GMAF.js → capture-GLM2ACPM.js} +73 -33
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-A2A5MGQB.js} +18 -18
- package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-5ZLVUQVJ.js} +25 -24
- package/dist/{catch-up-BFW7Z35W.js → catch-up-FRMVYJHZ.js} +5 -5
- package/dist/{check-XUWBZASR.js → check-WVY7SM7C.js} +47 -47
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-PLEQY3SZ.js} +16 -16
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-XSZUA2DQ.js} +40 -40
- package/dist/{chunk-2S263R6D.js → chunk-526VSRZ4.js} +9 -9
- package/dist/{chunk-SFYLZX5C.js → chunk-5KBMYSF2.js} +54 -15
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AJSU6KGS.js → chunk-5PYRU5DT.js} +13 -13
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-QVTCXN42.js → chunk-63DP5CB2.js} +29 -3
- package/dist/{chunk-FNNGQ3DB.js → chunk-6IYIS2U7.js} +2 -2
- package/dist/{chunk-VDVVQNTK.js → chunk-6KCFVLO6.js} +5 -5
- package/dist/{chunk-DEVZJ4AL.js → chunk-6KOHY5EP.js} +7 -7
- package/dist/{chunk-CIHW6VM2.js → chunk-6Z7XDUUJ.js} +1 -1
- package/dist/{chunk-PQYWYBEQ.js → chunk-7PJ3AJB2.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-7RWUY3BJ.js} +47 -55
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/chunk-BDJIQZN2.js +4830 -0
- package/dist/{chunk-4CY5RXXC.js → chunk-C53ZNJDZ.js} +4 -4
- package/dist/{chunk-FULMZCDW.js → chunk-CVZO6TFE.js} +10 -10
- package/dist/{chunk-6ZFDNEMY.js → chunk-DJQZ7DEH.js} +15 -15
- package/dist/{chunk-E2ZZSDDQ.js → chunk-DML6BD4K.js} +2 -2
- package/dist/{chunk-PNKLOMHQ.js → chunk-EG3B2VWK.js} +2 -2
- package/dist/{chunk-XOM3XTJ4.js → chunk-EGRIVMCQ.js} +1 -1
- package/dist/{chunk-3CS6QYL7.js → chunk-FEO7YW7V.js} +8 -8
- package/dist/{chunk-H4JO7VSI.js → chunk-FVAI7AHF.js} +12 -12
- package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
- package/dist/{chunk-CZYS6UKP.js → chunk-H3LQ5X6Q.js} +19 -19
- package/dist/{chunk-AXEEZKIL.js → chunk-HA3V4XAF.js} +6 -6
- package/dist/{chunk-G6W55MTX.js → chunk-HM7SUIQD.js} +38 -9
- package/dist/{chunk-VEA7Z4PZ.js → chunk-HVOTYAS4.js} +15 -7
- package/dist/{chunk-3R6SXPHD.js → chunk-I2TDHVFV.js} +2 -2
- package/dist/{chunk-36QE3P6B.js → chunk-I3TYUQLB.js} +1 -1
- package/dist/{chunk-63DGZRZP.js → chunk-IBZHSU2J.js} +1 -1
- package/dist/{chunk-AEC4T4IF.js → chunk-ID766OZB.js} +12 -12
- package/dist/{chunk-5QKJPCQ4.js → chunk-IK4JY2LI.js} +2 -2
- package/dist/{chunk-UMUVGNOH.js → chunk-IW5P4KK7.js} +3 -3
- package/dist/{chunk-AAX2A7LQ.js → chunk-IYZT62UR.js} +1 -1
- package/dist/chunk-JKE24AG7.js +62 -0
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-2RT7MXFL.js → chunk-JQ32262N.js} +1 -1
- package/dist/{chunk-RW4DMP2Y.js → chunk-KDHHPJOG.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-LCCYYTEK.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-LK6KPVX2.js} +167 -55
- package/dist/{chunk-42KN6I6A.js → chunk-LPI7HX4G.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-LXP6XWJL.js} +2 -2
- package/dist/{chunk-T6SD37JZ.js → chunk-MAUGXKSI.js} +4 -4
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-TSJVPPXT.js → chunk-MSHL6CF2.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-OZUAVHFE.js → chunk-NHL5CMO2.js} +3 -3
- package/dist/{chunk-7SXL476O.js → chunk-NJNC2DQV.js} +27 -26
- package/dist/{chunk-FMWACL3L.js → chunk-NSC5A4IR.js} +1 -1
- package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
- package/dist/{chunk-X5HHHFTX.js → chunk-PL36HK3U.js} +3 -3
- package/dist/{chunk-BBUK6A7Q.js → chunk-PUIG6DHT.js} +5 -5
- package/dist/{chunk-CPSGXAYD.js → chunk-QE4WRS3N.js} +3 -3
- package/dist/{chunk-FJW757TF.js → chunk-QTWXVOZI.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-QZ2JQ6O4.js} +6 -6
- package/dist/{chunk-MFHYBSJC.js → chunk-RPZNQV6D.js} +3 -3
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-GAV56VJL.js → chunk-SXOD5J7T.js} +2 -2
- package/dist/{chunk-VHVSBOZH.js → chunk-T4JGFCXU.js} +3 -3
- package/dist/{chunk-HJAJ6W4V.js → chunk-TSTONNOD.js} +2 -2
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-CNVHMLPI.js → chunk-U32PA6DI.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-UAT2UMTP.js} +1 -1
- package/dist/{chunk-QL4ZYSIB.js → chunk-UKM3JYNB.js} +5 -71
- package/dist/{chunk-Z3XXLTVB.js → chunk-UUOIH4RW.js} +3 -3
- package/dist/{chunk-CMDVJP4T.js → chunk-UYPWH7PH.js} +10 -10
- package/dist/{chunk-3B2DBUQX.js → chunk-VAVDAOUA.js} +1 -1
- package/dist/{chunk-G6QDFWDN.js → chunk-VBPNCOD7.js} +2 -2
- package/dist/{chunk-NNLQTG3M.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-HEP5XMXV.js → chunk-XAGBSYIQ.js} +9 -2
- package/dist/{chunk-4DGLKB2H.js → chunk-XKW4Z7BU.js} +1 -1
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-NVLPW3DG.js → chunk-XULJBZ7K.js} +2 -2
- package/dist/{chunk-X7RXXBYM.js → chunk-YJK6HOL5.js} +2 -2
- package/dist/{chunk-2MLMO25E.js → chunk-ZCJ5EGLU.js} +26 -6
- package/dist/{chunk-L5MFWGGU.js → chunk-ZYGIDXAK.js} +528 -327
- package/dist/{clean-N5VSKUVS.js → clean-TL3IPJDN.js} +27 -27
- package/dist/cli.js +55 -55
- package/dist/{cloud-74NF5FXC.js → cloud-EYMRPJNY.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-TOJ36NLX.js} +11 -11
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-MP5EOW4D.js} +41 -41
- package/dist/{compiler-4MHMC777.js → compiler-NOPVLJ2S.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-ASACDCZK.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-WKNZJY34.js} +16 -16
- package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
- package/dist/{delete-GB4MS7LM.js → delete-DQTFHP3G.js} +2 -2
- package/dist/{deploy-NXD3Q3KD.js → deploy-HHCFOUFM.js} +1 -1
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-ZY6IFESG.js → dist-L4Z4ZEYW.js} +6 -3
- package/dist/{dist-3ZJMZU75.js → dist-NQEYA4ZX.js} +36 -36
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-JDM65CP7.js} +19 -19
- package/dist/{events-T3CLIYRG.js → events-MBRNA3UF.js} +3 -3
- package/dist/{events-RYQYEWBV.js → events-RKRHRLJD.js} +2 -2
- package/dist/{feedback-K5ZMMLTA.js → feedback-LZWIWV5J.js} +17 -17
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-4PZKSIGE.js} +14 -14
- package/dist/{figma-MYYCX635.js → figma-QFNYUT3F.js} +3 -3
- package/dist/fontLocalizeCli.js +19 -18
- package/dist/{get-JVIDYMVP.js → get-2B5ENJOH.js} +2 -2
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-E5FB2GFR.js} +12 -12
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-4GUAPJHE.js} +39 -39
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-C2RYIEER.js} +13 -13
- package/dist/{help-XPPSLIRY.js → help-XGDAXV67.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-WNFF6HGU.js} +107 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +74 -69
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-BR2LKGJD.js} +16 -16
- package/dist/{init-NTIXWA3D.js → init-P6UWPUY3.js} +58 -57
- package/dist/{inspect-MYMCV5E7.js → inspect-MSRPF7ZO.js} +38 -38
- package/dist/{installer-PYJIJ3PJ.js → installer-MPUQS3ZX.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-J6K66QTO.js} +11 -11
- package/dist/{lambda-SBNUYEQE.js → lambda-LJ2OSWFJ.js} +32 -13
- package/dist/{layout-IOMCOABO.js → layout-CDY65XGA.js} +38 -38
- package/dist/{lint-AQWHHMPS.js → lint-CAUNBGPX.js} +12 -9
- package/dist/{lintProject-5A4SCW3S.js → lintProject-ZTSX3AWT.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-33BYQNRZ.js} +2 -2
- package/dist/{login-3ZDK5JOA.js → login-5QMRKOHK.js} +4 -4
- package/dist/{manager-QYFYWZOK.js → manager-3JOHHPVR.js} +16 -16
- package/dist/{manager-F2YREC5X.js → manager-RMYSZ3KI.js} +7 -3
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-4WP22CFN.js} +22 -22
- package/dist/{models-MR55FAUX.js → models-HPWCHAZX.js} +27 -27
- package/dist/{motionShot-DC47S7BT.js → motionShot-I7GDIROQ.js} +22 -22
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-VTMXPSC7.js} +14 -14
- package/dist/{open-YXWBWTKL.js → open-SAO7OQTT.js} +19 -19
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-ZYPBIA73.js} +24 -24
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-VNBMR6QU.js} +15 -15
- package/dist/{play-S562STR4.js → play-7VI6A7KN.js} +28 -28
- package/dist/{preflight-QWGXMISC.js → preflight-VWV7L45J.js} +16 -16
- package/dist/{present-PGOHZT3L.js → present-CSJGYOFF.js} +23 -23
- package/dist/{preview-JU75H4QN.js → preview-B246ZTVO.js} +48 -36
- package/dist/{producer-H66OMZLW.js → producer-WJLFDVQJ.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-OMR46ZWQ.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-AA7NNYET.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-TJ4QVVSP.js} +17 -16
- package/dist/{remove-background-WRCGIU32.js → remove-background-LQ2V7W7N.js} +19 -19
- package/dist/{render-5J5PP3UK.js → render-AWEEPG3F.js} +34 -32
- package/dist/{render-QS3YJCBR.js → render-E5QJG74D.js} +14 -11
- package/dist/{render-VUVTK2JM.js → render-JLTNZ36U.js} +80 -48
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-U4T4VSCM.js} +14 -11
- package/dist/renderSetupWorker.js +10 -7
- package/dist/{resolver-QCBWPRSC.js → resolver-GXCTUKPV.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
- package/dist/{sherpa-IZ22SC5W.js → sherpa-4VZWVHWZ.js} +23 -23
- 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-3RFMPMJA.js → skills-WUKR7SUE.js} +8 -8
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
- package/dist/{snapshot-5PHA43DK.js → snapshot-Q7S2FTNG.js} +123 -70
- package/dist/{src-36BQVJL3.js → src-CLAALR5W.js} +20 -19
- package/dist/{src-4YJKYMNF.js → src-ZOXUSGAP.js} +19 -11
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-DQ7PIDPA.js} +25 -25
- package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-BF9YeBnC.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-BrqAmMRt.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-NUE227JM.js} +17 -17
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-HVOKP4VI.js} +71 -69
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-W3LRO3TB.js → telemetry-2Y5JXLDB.js} +3 -3
- package/dist/{timeline-BDO5DYWP.js → timeline-WOQGXFRV.js} +27 -27
- package/dist/{tokens-47CEMYFV.js → tokens-T3OHTWUC.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-4U74P5TG.js} +21 -21
- package/dist/{transcribe-GEPVJO3A.js → transcribe-JZ3BO546.js} +31 -31
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-6EUAGAM4.js} +2 -2
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-55K6F4MP.js} +2 -2
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-47JMOLNN.js} +11 -11
- package/dist/{validate-2OPSQT3W.js → validate-QBJ3SBS4.js} +31 -31
- package/dist/{video-ECWXMY4F.js → video-3ZAUNAR3.js} +16 -14
- package/dist/warmCheck.js +47 -47
- 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/{chunk-X7A7C4JS.js → chunk-EHFZEKQM.js} +3 -3
|
@@ -8,35 +8,35 @@ import {
|
|
|
8
8
|
resolveCaptureBrowserGpuMode,
|
|
9
9
|
resolveLocalBrowserGpuMode,
|
|
10
10
|
resolveLocalWebGpu
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LPI7HX4G.js";
|
|
12
12
|
import {
|
|
13
13
|
assertWebGpuAdapterAvailable,
|
|
14
14
|
compositionRequiresWebGpu
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LK6KPVX2.js";
|
|
16
16
|
import "./chunk-5S7W3TUO.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-KLIPVNCO.js";
|
|
17
|
+
import "./chunk-RPZNQV6D.js";
|
|
18
|
+
import "./chunk-7RWUY3BJ.js";
|
|
19
|
+
import "./chunk-BDJIQZN2.js";
|
|
21
20
|
import "./chunk-VC76R6W2.js";
|
|
22
|
-
import "./chunk-OFRRUYBA.js";
|
|
23
|
-
import "./chunk-FR7YBU3H.js";
|
|
24
21
|
import "./chunk-OFQWTKPW.js";
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RQVDTPGD.js";
|
|
26
23
|
import "./chunk-3GXQPCJC.js";
|
|
27
24
|
import "./chunk-634HSJ3J.js";
|
|
28
25
|
import "./chunk-FXMKHHPO.js";
|
|
29
26
|
import "./chunk-K4MJX7SR.js";
|
|
30
27
|
import "./chunk-4UMPIPCQ.js";
|
|
31
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-ZCJ5EGLU.js";
|
|
32
29
|
import "./chunk-CZGHFATT.js";
|
|
33
30
|
import "./chunk-VAS6HQX3.js";
|
|
34
31
|
import "./chunk-PBNWRWKA.js";
|
|
35
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-SE2MXV2N.js";
|
|
33
|
+
import "./chunk-NHA4NRBE.js";
|
|
34
|
+
import "./chunk-FR7YBU3H.js";
|
|
35
|
+
import "./chunk-DPVXBVLL.js";
|
|
36
36
|
import "./chunk-GWTIFRF5.js";
|
|
37
37
|
import "./chunk-2RY2LWAA.js";
|
|
38
38
|
import "./chunk-3422KMTD.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-WC4MTXGN.js";
|
|
40
40
|
import "./chunk-UIOZIIB7.js";
|
|
41
41
|
import "./chunk-M2WBOQ2Q.js";
|
|
42
42
|
export {
|
|
@@ -15,50 +15,50 @@ import {
|
|
|
15
15
|
import "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
findFFmpeg
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IK4JY2LI.js";
|
|
19
19
|
import {
|
|
20
20
|
serveStaticProjectHtml
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-526VSRZ4.js";
|
|
22
|
+
import "./chunk-NHL5CMO2.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-
|
|
25
|
+
import "./chunk-NJNC2DQV.js";
|
|
26
|
+
import "./chunk-ID766OZB.js";
|
|
27
|
+
import "./chunk-VQB7G5BM.js";
|
|
28
|
+
import "./chunk-6KCFVLO6.js";
|
|
29
29
|
import "./chunk-XDMZY3H7.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-HA3V4XAF.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-UYPWH7PH.js";
|
|
36
|
+
import "./chunk-MAUGXKSI.js";
|
|
37
37
|
import "./chunk-MOEGCMKI.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-UKM3JYNB.js";
|
|
39
39
|
import "./chunk-DKPNNYBZ.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-7PJ3AJB2.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-IBZHSU2J.js";
|
|
44
|
+
import "./chunk-LPI7HX4G.js";
|
|
45
|
+
import "./chunk-LXP6XWJL.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-VAVDAOUA.js";
|
|
50
50
|
import "./chunk-JHOCK3DG.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-UUOIH4RW.js";
|
|
52
|
+
import "./chunk-XKW4Z7BU.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-NSC5A4IR.js";
|
|
61
|
+
import "./chunk-QTWXVOZI.js";
|
|
62
62
|
import "./chunk-VWG7OQKU.js";
|
|
63
63
|
import {
|
|
64
64
|
defineCommand
|
|
@@ -70,58 +70,58 @@ 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-LK6KPVX2.js";
|
|
77
77
|
import "./chunk-5S7W3TUO.js";
|
|
78
|
+
import "./chunk-RPZNQV6D.js";
|
|
78
79
|
import {
|
|
79
80
|
gsapCdnDist
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-RQVDTPGD.js";
|
|
82
|
-
import "./chunk-MFHYBSJC.js";
|
|
81
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
83
82
|
import {
|
|
84
83
|
HF_COLOR_GRADING_ATTR,
|
|
85
84
|
isHfColorGradingActive,
|
|
86
85
|
normalizeHfColorGrading,
|
|
87
86
|
parseCubeLut,
|
|
88
87
|
serializeHfColorGrading
|
|
89
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BDJIQZN2.js";
|
|
90
89
|
import "./chunk-VC76R6W2.js";
|
|
91
|
-
import "./chunk-OFRRUYBA.js";
|
|
92
|
-
import "./chunk-FR7YBU3H.js";
|
|
93
90
|
import "./chunk-OFQWTKPW.js";
|
|
94
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-RQVDTPGD.js";
|
|
95
92
|
import "./chunk-3GXQPCJC.js";
|
|
96
93
|
import "./chunk-634HSJ3J.js";
|
|
97
94
|
import "./chunk-FXMKHHPO.js";
|
|
98
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-EHFZEKQM.js";
|
|
96
|
+
import "./chunk-KGPLIH7B.js";
|
|
99
97
|
import "./chunk-QSFWGZG6.js";
|
|
100
98
|
import "./chunk-XT6MXC7A.js";
|
|
101
99
|
import "./chunk-K4MJX7SR.js";
|
|
102
100
|
import "./chunk-4UMPIPCQ.js";
|
|
103
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-ZCJ5EGLU.js";
|
|
104
102
|
import "./chunk-CZGHFATT.js";
|
|
105
103
|
import "./chunk-VAS6HQX3.js";
|
|
106
104
|
import "./chunk-PBNWRWKA.js";
|
|
107
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-SE2MXV2N.js";
|
|
106
|
+
import "./chunk-NHA4NRBE.js";
|
|
107
|
+
import "./chunk-FR7YBU3H.js";
|
|
108
|
+
import "./chunk-DPVXBVLL.js";
|
|
108
109
|
import "./chunk-GWTIFRF5.js";
|
|
109
110
|
import "./chunk-2RY2LWAA.js";
|
|
110
111
|
import "./chunk-3422KMTD.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
+
import "./chunk-WC4MTXGN.js";
|
|
112
113
|
import "./chunk-UIOZIIB7.js";
|
|
113
114
|
import {
|
|
114
115
|
withMeta
|
|
115
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
116
117
|
import "./chunk-K4WIOZFP.js";
|
|
117
118
|
import "./chunk-PSX5SF2N.js";
|
|
118
119
|
import "./chunk-WERLJGIC.js";
|
|
119
120
|
import "./chunk-ISN5GRYI.js";
|
|
120
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-DML6BD4K.js";
|
|
121
122
|
import {
|
|
122
123
|
normalizeErrorMessage
|
|
123
124
|
} from "./chunk-T2EUWCJE.js";
|
|
124
|
-
import "./chunk-KGPLIH7B.js";
|
|
125
125
|
import "./chunk-M2WBOQ2Q.js";
|
|
126
126
|
|
|
127
127
|
// src/commands/grade-compare.ts
|
|
@@ -509,7 +509,7 @@ async function loadReferenceFrame(framePath) {
|
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
async function captureGradeCompareSheet(projectDir, timeoutMs) {
|
|
512
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
512
|
+
const { bundleToSingleHtml } = await import("./compiler-NOPVLJ2S.js");
|
|
513
513
|
const html = await bundleToSingleHtml(projectDir);
|
|
514
514
|
const server = await serveStaticProjectHtml(projectDir, html);
|
|
515
515
|
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,34 @@ import {
|
|
|
12
12
|
isHeifBytes,
|
|
13
13
|
prepareHeifImageInputs,
|
|
14
14
|
primaryGrid
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-VBPNCOD7.js";
|
|
16
|
+
import "./chunk-XULJBZ7K.js";
|
|
17
17
|
import "./chunk-BZ56MTDX.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-LK6KPVX2.js";
|
|
19
19
|
import "./chunk-5S7W3TUO.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-KLIPVNCO.js";
|
|
20
|
+
import "./chunk-RPZNQV6D.js";
|
|
21
|
+
import "./chunk-7RWUY3BJ.js";
|
|
22
|
+
import "./chunk-BDJIQZN2.js";
|
|
24
23
|
import "./chunk-VC76R6W2.js";
|
|
25
|
-
import "./chunk-OFRRUYBA.js";
|
|
26
|
-
import "./chunk-FR7YBU3H.js";
|
|
27
24
|
import "./chunk-OFQWTKPW.js";
|
|
28
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RQVDTPGD.js";
|
|
29
26
|
import "./chunk-3GXQPCJC.js";
|
|
30
27
|
import "./chunk-634HSJ3J.js";
|
|
31
28
|
import "./chunk-FXMKHHPO.js";
|
|
32
29
|
import "./chunk-K4MJX7SR.js";
|
|
33
30
|
import "./chunk-4UMPIPCQ.js";
|
|
34
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-ZCJ5EGLU.js";
|
|
35
32
|
import "./chunk-CZGHFATT.js";
|
|
36
33
|
import "./chunk-VAS6HQX3.js";
|
|
37
34
|
import "./chunk-PBNWRWKA.js";
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-SE2MXV2N.js";
|
|
36
|
+
import "./chunk-NHA4NRBE.js";
|
|
37
|
+
import "./chunk-FR7YBU3H.js";
|
|
38
|
+
import "./chunk-DPVXBVLL.js";
|
|
39
39
|
import "./chunk-GWTIFRF5.js";
|
|
40
40
|
import "./chunk-2RY2LWAA.js";
|
|
41
41
|
import "./chunk-3422KMTD.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-WC4MTXGN.js";
|
|
43
43
|
import "./chunk-UIOZIIB7.js";
|
|
44
44
|
import "./chunk-M2WBOQ2Q.js";
|
|
45
45
|
export {
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
withOwner,
|
|
13
13
|
withReader,
|
|
14
14
|
writeTurn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I2TDHVFV.js";
|
|
16
16
|
import "./chunk-X7MTZ4T2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-XAGBSYIQ.js";
|
|
18
18
|
import {
|
|
19
19
|
HistoryBusyError,
|
|
20
20
|
HistoryIdError,
|
|
@@ -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-NSC5A4IR.js";
|
|
33
|
+
import "./chunk-QTWXVOZI.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-EGRIVMCQ.js";
|
|
53
53
|
import "./chunk-K4WIOZFP.js";
|
|
54
54
|
import "./chunk-PSX5SF2N.js";
|
|
55
55
|
import "./chunk-WERLJGIC.js";
|
|
56
56
|
import "./chunk-ISN5GRYI.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-DML6BD4K.js";
|
|
58
58
|
import "./chunk-T2EUWCJE.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": "98ef5d9ded07a8647d7220aa648089eaf8ad2c3ddee0e2e6d563f80ba60a7a58",
|
|
5
5
|
"artifacts": {
|
|
6
6
|
"iife": "hyperframe.runtime.iife.js",
|
|
7
7
|
"esm": "hyperframe.runtime.mjs"
|