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
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
import "./chunk-OFQWTKPW.js";
|
|
28
28
|
import {
|
|
29
29
|
withMeta
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
31
31
|
import "./chunk-K4WIOZFP.js";
|
|
32
32
|
import "./chunk-PSX5SF2N.js";
|
|
33
33
|
import "./chunk-WERLJGIC.js";
|
|
34
34
|
import "./chunk-ISN5GRYI.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-DML6BD4K.js";
|
|
36
36
|
import "./chunk-T2EUWCJE.js";
|
|
37
37
|
import "./chunk-M2WBOQ2Q.js";
|
|
38
38
|
|
|
@@ -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-ZUQZP6QD.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-SVVAUJPL.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";
|
|
29
|
+
import "./chunk-CZGHFATT.js";
|
|
32
30
|
import "./chunk-VAS6HQX3.js";
|
|
33
31
|
import "./chunk-PBNWRWKA.js";
|
|
34
|
-
import "./chunk-
|
|
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-BHOGXIBO.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-SVVAUJPL.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";
|
|
102
|
+
import "./chunk-CZGHFATT.js";
|
|
104
103
|
import "./chunk-VAS6HQX3.js";
|
|
105
104
|
import "./chunk-PBNWRWKA.js";
|
|
106
|
-
import "./chunk-
|
|
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");
|
|
@@ -261,7 +261,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
261
261
|
const mediaTime = time - start;
|
|
262
262
|
if (time >= start && time < end) {
|
|
263
263
|
if (Math.abs(media.currentTime - mediaTime) > 0.1) {
|
|
264
|
-
media.currentTime = mediaTime;
|
|
264
|
+
media.currentTime = mediaTime + ${Number(options.mediaElementLeadSeconds ?? 0)};
|
|
265
265
|
}
|
|
266
266
|
if (media.paused && !${timelineVar}.paused()) {
|
|
267
267
|
media.play().catch(function() {});
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 {
|
|
8
|
+
HEIF_IMAGE_CONVERSION_FAILED,
|
|
9
|
+
HeifImageConversionError,
|
|
10
|
+
HeifToolUnavailableError,
|
|
11
|
+
convertHeifToJpeg,
|
|
12
|
+
isHeifBytes,
|
|
13
|
+
prepareHeifImageInputs,
|
|
14
|
+
primaryGrid
|
|
15
|
+
} from "./chunk-VBPNCOD7.js";
|
|
16
|
+
import "./chunk-XULJBZ7K.js";
|
|
17
|
+
import "./chunk-BZ56MTDX.js";
|
|
18
|
+
import "./chunk-LK6KPVX2.js";
|
|
19
|
+
import "./chunk-5S7W3TUO.js";
|
|
20
|
+
import "./chunk-RPZNQV6D.js";
|
|
21
|
+
import "./chunk-7RWUY3BJ.js";
|
|
22
|
+
import "./chunk-BDJIQZN2.js";
|
|
23
|
+
import "./chunk-VC76R6W2.js";
|
|
24
|
+
import "./chunk-OFQWTKPW.js";
|
|
25
|
+
import "./chunk-RQVDTPGD.js";
|
|
26
|
+
import "./chunk-3GXQPCJC.js";
|
|
27
|
+
import "./chunk-634HSJ3J.js";
|
|
28
|
+
import "./chunk-FXMKHHPO.js";
|
|
29
|
+
import "./chunk-K4MJX7SR.js";
|
|
30
|
+
import "./chunk-4UMPIPCQ.js";
|
|
31
|
+
import "./chunk-ZCJ5EGLU.js";
|
|
32
|
+
import "./chunk-CZGHFATT.js";
|
|
33
|
+
import "./chunk-VAS6HQX3.js";
|
|
34
|
+
import "./chunk-PBNWRWKA.js";
|
|
35
|
+
import "./chunk-SE2MXV2N.js";
|
|
36
|
+
import "./chunk-NHA4NRBE.js";
|
|
37
|
+
import "./chunk-FR7YBU3H.js";
|
|
38
|
+
import "./chunk-DPVXBVLL.js";
|
|
39
|
+
import "./chunk-GWTIFRF5.js";
|
|
40
|
+
import "./chunk-2RY2LWAA.js";
|
|
41
|
+
import "./chunk-3422KMTD.js";
|
|
42
|
+
import "./chunk-WC4MTXGN.js";
|
|
43
|
+
import "./chunk-UIOZIIB7.js";
|
|
44
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
45
|
+
export {
|
|
46
|
+
HEIF_IMAGE_CONVERSION_FAILED,
|
|
47
|
+
HeifImageConversionError,
|
|
48
|
+
HeifToolUnavailableError,
|
|
49
|
+
convertHeifToJpeg,
|
|
50
|
+
isHeifBytes,
|
|
51
|
+
prepareHeifImageInputs,
|
|
52
|
+
primaryGrid
|
|
53
|
+
};
|
|
@@ -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,
|
|
@@ -25,12 +25,12 @@ import "./chunk-ALVXFXUG.js";
|
|
|
25
25
|
import "./chunk-K2FLNJVB.js";
|
|
26
26
|
import {
|
|
27
27
|
AmbiguousPreviewServerError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-543U46OR.js";
|
|
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"
|