@namzu/cli 52.1.0 → 52.2.0
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/CHANGELOG.md +20 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-C2H6FGPR.js → acp-QNJODJHL.js} +51 -24
- package/dist/chunks/{acp-C2H6FGPR.js.map → acp-QNJODJHL.js.map} +1 -1
- package/dist/chunks/{add-VOR5M5BV.js → add-L6FKDP7N.js} +9 -9
- package/dist/chunks/{agent-EWZGPBGI.js → agent-VJRVABX2.js} +13 -13
- package/dist/chunks/{agent-session-EKTTB7TN.js → agent-session-JO5HEUHN.js} +14 -14
- package/dist/chunks/{apply-at-exit-FVOHKVHQ.js → apply-at-exit-OGSLNQHX.js} +4 -4
- package/dist/chunks/bash-5556UNOY.js +404 -0
- package/dist/chunks/bash-5556UNOY.js.map +6 -0
- package/dist/chunks/{bin-main-C5UNGSAQ.js → bin-main-XIAVK2BK.js} +5 -5
- package/dist/chunks/c-SMQ2QLVV.js +304 -0
- package/dist/chunks/c-SMQ2QLVV.js.map +6 -0
- package/dist/chunks/{chat-YQCC2O5F.js → chat-AQICSI4M.js} +2 -2
- package/dist/chunks/{chunk-F7LMCISP.js → chunk-33CQRXME.js} +3 -3
- package/dist/chunks/{chunk-H6KPEFAR.js → chunk-47E6HKJT.js} +2 -2
- package/dist/chunks/{chunk-6KB5XGKP.js → chunk-4XZ67B3M.js} +2 -2
- package/dist/chunks/{chunk-FWAUXNV2.js → chunk-625CBBTB.js} +2 -2
- package/dist/chunks/{chunk-W7JMWUGD.js → chunk-A54YZM6S.js} +13 -13
- package/dist/chunks/{chunk-WK6RNDIK.js → chunk-BCPKC2WP.js} +2 -2
- package/dist/chunks/{chunk-YIBJO76L.js → chunk-DMUQFCYZ.js} +2 -2
- package/dist/chunks/{chunk-ZNYLVJIS.js → chunk-FTVJAKCW.js} +3 -3
- package/dist/chunks/{chunk-WNVU6MMP.js → chunk-IZJ5JESH.js} +2 -2
- package/dist/chunks/{chunk-JWS3NQAH.js → chunk-JCIHE3LO.js} +4 -4
- package/dist/chunks/{chunk-J2JLP6NV.js → chunk-LJNIEZAF.js} +27 -8
- package/dist/chunks/{chunk-J2JLP6NV.js.map → chunk-LJNIEZAF.js.map} +1 -1
- package/dist/chunks/{chunk-Y2DDE2WB.js → chunk-NRFNUYVH.js} +3 -3
- package/dist/chunks/{chunk-IBTPIZKL.js → chunk-PRTQ2L3O.js} +8 -8
- package/dist/chunks/{chunk-MVMWAXEY.js → chunk-PVHTDN4J.js} +2 -2
- package/dist/chunks/{chunk-2ZYV3IZA.js → chunk-R3BEW6BX.js} +22 -22
- package/dist/chunks/{chunk-QZODMCBW.js → chunk-RX22HLIT.js} +2 -2
- package/dist/chunks/{chunk-FMBLLPNE.js → chunk-S2JWPUUH.js} +67 -1
- package/dist/chunks/{chunk-FMBLLPNE.js.map → chunk-S2JWPUUH.js.map} +1 -1
- package/dist/chunks/{chunk-SFAK4Z6T.js → chunk-SRHEX5JB.js} +3342 -1228
- package/dist/chunks/chunk-SRHEX5JB.js.map +6 -0
- package/dist/chunks/{chunk-N3LPO5PK.js → chunk-TITSLPYI.js} +11 -11
- package/dist/chunks/{chunk-F7MCS63F.js → chunk-UF6F2Z62.js} +3 -3
- package/dist/chunks/{chunk-6O5Q6YBP.js → chunk-UKOCGHMU.js} +489 -57
- package/dist/chunks/{chunk-6O5Q6YBP.js.map → chunk-UKOCGHMU.js.map} +2 -2
- package/dist/chunks/{chunk-4SEHD4ZI.js → chunk-USDNK4TL.js} +2 -2
- package/dist/chunks/{chunk-EJCQKJZ2.js → chunk-WD2F6EO3.js} +35 -3
- package/dist/chunks/chunk-WD2F6EO3.js.map +6 -0
- package/dist/chunks/{chunk-TEBW5NV3.js → chunk-WSEJK4WO.js} +3 -3
- package/dist/chunks/{chunk-GFEHVD2U.js → chunk-WZHS724Y.js} +2 -2
- package/dist/chunks/{chunk-JBC4TK56.js → chunk-YMMEAXUK.js} +2 -2
- package/dist/chunks/{chunk-47R3EA5L.js → chunk-ZDEQIXJX.js} +2 -2
- package/dist/chunks/{chunk-OIYJMKAT.js → chunk-ZIFCQKET.js} +2 -2
- package/dist/chunks/{cli-runtime-SWBSTK5Y.js → cli-runtime-J5E5XM6I.js} +7 -7
- package/dist/chunks/core-6GH4J4QJ.js +1647 -0
- package/dist/chunks/core-6GH4J4QJ.js.map +6 -0
- package/dist/chunks/cpp-VMCZSFFM.js +553 -0
- package/dist/chunks/cpp-VMCZSFFM.js.map +6 -0
- package/dist/chunks/csharp-OVPHVEVY.js +410 -0
- package/dist/chunks/csharp-OVPHVEVY.js.map +6 -0
- package/dist/chunks/css-RIXPOU7U.js +947 -0
- package/dist/chunks/css-RIXPOU7U.js.map +6 -0
- package/dist/chunks/diff-IP3Y64PF.js +63 -0
- package/dist/chunks/diff-IP3Y64PF.js.map +6 -0
- package/dist/chunks/dockerfile-DVPABFVZ.js +44 -0
- package/dist/chunks/dockerfile-DVPABFVZ.js.map +6 -0
- package/dist/chunks/{doctor-BO6742WI.js → doctor-TC5F3XFP.js} +20 -20
- package/dist/chunks/{drain-R55GDZ6K.js → drain-VINUZDH4.js} +2 -2
- package/dist/chunks/{entry-OIRUHLN6.js → entry-UEPUPWGI.js} +4 -4
- package/dist/chunks/{eval-LC2YEQE4.js → eval-YTQCMDNP.js} +5 -5
- package/dist/chunks/{exec-MVNCTFY2.js → exec-DGX427HX.js} +32 -32
- package/dist/chunks/go-RKN2IZ6A.js +164 -0
- package/dist/chunks/go-RKN2IZ6A.js.map +6 -0
- package/dist/chunks/graphql-2VQIML4V.js +80 -0
- package/dist/chunks/graphql-2VQIML4V.js.map +6 -0
- package/dist/chunks/{host-OJRB5UR4.js → host-KTD5OE67.js} +5 -5
- package/dist/chunks/{host-queries-BTUGRPDQ.js → host-queries-JPW6LDTA.js} +2 -2
- package/dist/chunks/ini-W63MIP5J.js +126 -0
- package/dist/chunks/ini-W63MIP5J.js.map +6 -0
- package/dist/chunks/java-R4N7OXMG.js +265 -0
- package/dist/chunks/java-R4N7OXMG.js.map +6 -0
- package/dist/chunks/javascript-26OKUOUQ.js +712 -0
- package/dist/chunks/javascript-26OKUOUQ.js.map +6 -0
- package/dist/chunks/json-4GADDWNK.js +50 -0
- package/dist/chunks/json-4GADDWNK.js.map +6 -0
- package/dist/chunks/kotlin-MB7RKXOG.js +265 -0
- package/dist/chunks/kotlin-MB7RKXOG.js.map +6 -0
- package/dist/chunks/{learn-L7W4AY6F.js → learn-VUJQOB57.js} +2 -2
- package/dist/chunks/{learn-builtin-F6D7VG2T.js → learn-builtin-POKSGCNI.js} +3 -3
- package/dist/chunks/less-GNSNU2PC.js +1028 -0
- package/dist/chunks/less-GNSNU2PC.js.map +6 -0
- package/dist/chunks/{lifecycle-VH5JVETC.js → lifecycle-7BOLGSXR.js} +11 -11
- package/dist/chunks/{list-O6NVVBVF.js → list-QTYDGVQY.js} +7 -7
- package/dist/chunks/{live-VMIC5YSV.js → live-WTDKDIAG.js} +19 -19
- package/dist/chunks/lua-RNOSKZ3S.js +71 -0
- package/dist/chunks/lua-RNOSKZ3S.js.map +6 -0
- package/dist/chunks/makefile-ZK3QWG3U.js +81 -0
- package/dist/chunks/makefile-ZK3QWG3U.js.map +6 -0
- package/dist/chunks/markdown-JVOBZC3L.js +242 -0
- package/dist/chunks/markdown-JVOBZC3L.js.map +6 -0
- package/dist/chunks/{mcp-SUQ5VHS3.js → mcp-6QVO6CF6.js} +5 -5
- package/dist/chunks/{message-command-D72XMTER.js → message-command-LZDQXRHW.js} +16 -16
- package/dist/chunks/objectivec-SSOLSTDI.js +253 -0
- package/dist/chunks/objectivec-SSOLSTDI.js.map +6 -0
- package/dist/chunks/{pal-IMTWZXWM.js → pal-EHDMM5XR.js} +3 -3
- package/dist/chunks/{palette-V2OJ6BIE.js → palette-GXE6GZA5.js} +4 -4
- package/dist/chunks/perl-G647IKFY.js +495 -0
- package/dist/chunks/perl-G647IKFY.js.map +6 -0
- package/dist/chunks/php-KMB36QTV.js +611 -0
- package/dist/chunks/php-KMB36QTV.js.map +6 -0
- package/dist/chunks/php-template-56RLSWZJ.js +56 -0
- package/dist/chunks/php-template-56RLSWZJ.js.map +6 -0
- package/dist/chunks/powershell-CPSUXW3K.js +266 -0
- package/dist/chunks/powershell-CPSUXW3K.js.map +6 -0
- package/dist/chunks/python-OSTRJJHH.js +425 -0
- package/dist/chunks/python-OSTRJJHH.js.map +6 -0
- package/dist/chunks/python-repl-LLFK2MIA.js +35 -0
- package/dist/chunks/python-repl-LLFK2MIA.js.map +6 -0
- package/dist/chunks/r-CJCHZ5CO.js +220 -0
- package/dist/chunks/r-CJCHZ5CO.js.map +6 -0
- package/dist/chunks/ruby-CFOXHYOD.js +423 -0
- package/dist/chunks/ruby-CFOXHYOD.js.map +6 -0
- package/dist/chunks/rust-2CAQW5OE.js +323 -0
- package/dist/chunks/rust-2CAQW5OE.js.map +6 -0
- package/dist/chunks/{schedule-CKRLCLZE.js → schedule-BLLPDUT7.js} +5 -5
- package/dist/chunks/scss-BWFJU4ST.js +932 -0
- package/dist/chunks/scss-BWFJU4ST.js.map +6 -0
- package/dist/chunks/{service-X3J6SDE6.js → service-E2JXIOD6.js} +10 -10
- package/dist/chunks/shell-DRNHCIHJ.js +34 -0
- package/dist/chunks/shell-DRNHCIHJ.js.map +6 -0
- package/dist/chunks/sql-QPNQXTYW.js +655 -0
- package/dist/chunks/sql-QPNQXTYW.js.map +6 -0
- package/dist/chunks/{start-check-U4TZS2VO.js → start-check-NHTTM354.js} +2 -2
- package/dist/chunks/swift-VA7FJ27U.js +890 -0
- package/dist/chunks/swift-VA7FJ27U.js.map +6 -0
- package/dist/chunks/{tui-C2YPD5ZD.js → tui-MYBPZUMK.js} +57 -681
- package/dist/chunks/tui-MYBPZUMK.js.map +6 -0
- package/dist/chunks/typescript-AD6TOU6X.js +826 -0
- package/dist/chunks/typescript-AD6TOU6X.js.map +6 -0
- package/dist/chunks/{upgrade-7AKSY32I.js → upgrade-LG2D66IY.js} +3 -3
- package/dist/chunks/vbnet-RRNEF3GL.js +143 -0
- package/dist/chunks/vbnet-RRNEF3GL.js.map +6 -0
- package/dist/chunks/wasm-4AFLPXP5.js +131 -0
- package/dist/chunks/wasm-4AFLPXP5.js.map +6 -0
- package/dist/chunks/{watch-X7HL77BT.js → watch-E5G5E7SZ.js} +77 -41
- package/dist/chunks/watch-E5G5E7SZ.js.map +6 -0
- package/dist/chunks/{workspaces-4BNGHUKR.js → workspaces-XNXMVP5C.js} +5 -5
- package/dist/chunks/xml-FZC4FVGO.js +236 -0
- package/dist/chunks/xml-FZC4FVGO.js.map +6 -0
- package/dist/chunks/yaml-KHJI72O5.js +211 -0
- package/dist/chunks/yaml-KHJI72O5.js.map +6 -0
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/config/load.d.ts +1 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +27 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/index.js +22 -22
- package/dist/integrations/sessions/watch-view.d.ts +10 -1
- package/dist/integrations/sessions/watch-view.d.ts.map +1 -1
- package/dist/tui/App.d.ts +4 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundAgentRows.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts +13 -3
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +10 -0
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/TranscriptScrollView.d.ts.map +1 -1
- package/dist/tui/agent-calls.d.ts +49 -0
- package/dist/tui/agent-calls.d.ts.map +1 -0
- package/dist/tui/agent-transcript-rows.d.ts +17 -0
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/background-agents.d.ts +22 -2
- package/dist/tui/background-agents.d.ts.map +1 -1
- package/dist/tui/code-highlight.d.ts +222 -0
- package/dist/tui/code-highlight.d.ts.map +1 -0
- package/dist/tui/copy-targets.d.ts.map +1 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts +13 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
- package/dist/tui/fullscreen/glide.d.ts +87 -0
- package/dist/tui/fullscreen/glide.d.ts.map +1 -0
- package/dist/tui/fullscreen/layout.d.ts +10 -1
- package/dist/tui/fullscreen/layout.d.ts.map +1 -1
- package/dist/tui/fullscreen/markdown-rows.d.ts.map +1 -1
- package/dist/tui/fullscreen/rows.d.ts +6 -0
- package/dist/tui/fullscreen/rows.d.ts.map +1 -1
- package/dist/tui/fullscreen/selection.d.ts.map +1 -1
- package/dist/tui/fullscreen/viewport.d.ts +4 -1
- package/dist/tui/fullscreen/viewport.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/markdown-fence.d.ts +47 -0
- package/dist/tui/markdown-fence.d.ts.map +1 -0
- package/dist/tui/markdown-structure.d.ts +22 -0
- package/dist/tui/markdown-structure.d.ts.map +1 -1
- package/dist/tui/markdownParser.d.ts +8 -1
- package/dist/tui/markdownParser.d.ts.map +1 -1
- package/dist/tui/new-output.d.ts +60 -0
- package/dist/tui/new-output.d.ts.map +1 -0
- package/dist/tui/paint/live-paint.d.ts +39 -0
- package/dist/tui/paint/live-paint.d.ts.map +1 -1
- package/dist/tui/read-search-group.d.ts +24 -0
- package/dist/tui/read-search-group.d.ts.map +1 -1
- package/dist/tui/restored-rows.d.ts +26 -2
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/stream-flow.d.ts +24 -0
- package/dist/tui/stream-flow.d.ts.map +1 -1
- package/dist/tui/theme-launch.d.ts +2 -2
- package/dist/tui/theme-launch.d.ts.map +1 -1
- package/dist/tui/theme-palettes.d.ts +20 -0
- package/dist/tui/theme-palettes.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +5 -0
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/transcript-scroll.d.ts +7 -2
- package/dist/tui/transcript-scroll.d.ts.map +1 -1
- package/dist/tui/types.d.ts +9 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/chunks/chunk-EJCQKJZ2.js.map +0 -6
- package/dist/chunks/chunk-SFAK4Z6T.js.map +0 -6
- package/dist/chunks/tui-C2YPD5ZD.js.map +0 -6
- package/dist/chunks/watch-X7HL77BT.js.map +0 -6
- /package/dist/chunks/{add-VOR5M5BV.js.map → add-L6FKDP7N.js.map} +0 -0
- /package/dist/chunks/{agent-EWZGPBGI.js.map → agent-VJRVABX2.js.map} +0 -0
- /package/dist/chunks/{agent-session-EKTTB7TN.js.map → agent-session-JO5HEUHN.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-FVOHKVHQ.js.map → apply-at-exit-OGSLNQHX.js.map} +0 -0
- /package/dist/chunks/{bin-main-C5UNGSAQ.js.map → bin-main-XIAVK2BK.js.map} +0 -0
- /package/dist/chunks/{chat-YQCC2O5F.js.map → chat-AQICSI4M.js.map} +0 -0
- /package/dist/chunks/{chunk-F7LMCISP.js.map → chunk-33CQRXME.js.map} +0 -0
- /package/dist/chunks/{chunk-H6KPEFAR.js.map → chunk-47E6HKJT.js.map} +0 -0
- /package/dist/chunks/{chunk-6KB5XGKP.js.map → chunk-4XZ67B3M.js.map} +0 -0
- /package/dist/chunks/{chunk-FWAUXNV2.js.map → chunk-625CBBTB.js.map} +0 -0
- /package/dist/chunks/{chunk-W7JMWUGD.js.map → chunk-A54YZM6S.js.map} +0 -0
- /package/dist/chunks/{chunk-WK6RNDIK.js.map → chunk-BCPKC2WP.js.map} +0 -0
- /package/dist/chunks/{chunk-YIBJO76L.js.map → chunk-DMUQFCYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNYLVJIS.js.map → chunk-FTVJAKCW.js.map} +0 -0
- /package/dist/chunks/{chunk-WNVU6MMP.js.map → chunk-IZJ5JESH.js.map} +0 -0
- /package/dist/chunks/{chunk-JWS3NQAH.js.map → chunk-JCIHE3LO.js.map} +0 -0
- /package/dist/chunks/{chunk-Y2DDE2WB.js.map → chunk-NRFNUYVH.js.map} +0 -0
- /package/dist/chunks/{chunk-IBTPIZKL.js.map → chunk-PRTQ2L3O.js.map} +0 -0
- /package/dist/chunks/{chunk-MVMWAXEY.js.map → chunk-PVHTDN4J.js.map} +0 -0
- /package/dist/chunks/{chunk-2ZYV3IZA.js.map → chunk-R3BEW6BX.js.map} +0 -0
- /package/dist/chunks/{chunk-QZODMCBW.js.map → chunk-RX22HLIT.js.map} +0 -0
- /package/dist/chunks/{chunk-N3LPO5PK.js.map → chunk-TITSLPYI.js.map} +0 -0
- /package/dist/chunks/{chunk-F7MCS63F.js.map → chunk-UF6F2Z62.js.map} +0 -0
- /package/dist/chunks/{chunk-4SEHD4ZI.js.map → chunk-USDNK4TL.js.map} +0 -0
- /package/dist/chunks/{chunk-TEBW5NV3.js.map → chunk-WSEJK4WO.js.map} +0 -0
- /package/dist/chunks/{chunk-GFEHVD2U.js.map → chunk-WZHS724Y.js.map} +0 -0
- /package/dist/chunks/{chunk-JBC4TK56.js.map → chunk-YMMEAXUK.js.map} +0 -0
- /package/dist/chunks/{chunk-47R3EA5L.js.map → chunk-ZDEQIXJX.js.map} +0 -0
- /package/dist/chunks/{chunk-OIYJMKAT.js.map → chunk-ZIFCQKET.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-SWBSTK5Y.js.map → cli-runtime-J5E5XM6I.js.map} +0 -0
- /package/dist/chunks/{doctor-BO6742WI.js.map → doctor-TC5F3XFP.js.map} +0 -0
- /package/dist/chunks/{drain-R55GDZ6K.js.map → drain-VINUZDH4.js.map} +0 -0
- /package/dist/chunks/{entry-OIRUHLN6.js.map → entry-UEPUPWGI.js.map} +0 -0
- /package/dist/chunks/{eval-LC2YEQE4.js.map → eval-YTQCMDNP.js.map} +0 -0
- /package/dist/chunks/{exec-MVNCTFY2.js.map → exec-DGX427HX.js.map} +0 -0
- /package/dist/chunks/{host-OJRB5UR4.js.map → host-KTD5OE67.js.map} +0 -0
- /package/dist/chunks/{host-queries-BTUGRPDQ.js.map → host-queries-JPW6LDTA.js.map} +0 -0
- /package/dist/chunks/{learn-L7W4AY6F.js.map → learn-VUJQOB57.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-F6D7VG2T.js.map → learn-builtin-POKSGCNI.js.map} +0 -0
- /package/dist/chunks/{lifecycle-VH5JVETC.js.map → lifecycle-7BOLGSXR.js.map} +0 -0
- /package/dist/chunks/{list-O6NVVBVF.js.map → list-QTYDGVQY.js.map} +0 -0
- /package/dist/chunks/{live-VMIC5YSV.js.map → live-WTDKDIAG.js.map} +0 -0
- /package/dist/chunks/{mcp-SUQ5VHS3.js.map → mcp-6QVO6CF6.js.map} +0 -0
- /package/dist/chunks/{message-command-D72XMTER.js.map → message-command-LZDQXRHW.js.map} +0 -0
- /package/dist/chunks/{pal-IMTWZXWM.js.map → pal-EHDMM5XR.js.map} +0 -0
- /package/dist/chunks/{palette-V2OJ6BIE.js.map → palette-GXE6GZA5.js.map} +0 -0
- /package/dist/chunks/{schedule-CKRLCLZE.js.map → schedule-BLLPDUT7.js.map} +0 -0
- /package/dist/chunks/{service-X3J6SDE6.js.map → service-E2JXIOD6.js.map} +0 -0
- /package/dist/chunks/{start-check-U4TZS2VO.js.map → start-check-NHTTM354.js.map} +0 -0
- /package/dist/chunks/{upgrade-7AKSY32I.js.map → upgrade-LG2D66IY.js.map} +0 -0
- /package/dist/chunks/{workspaces-4BNGHUKR.js.map → workspaces-XNXMVP5C.js.map} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
handleTerminationSignals
|
|
5
|
-
} from "./chunk-VAXTDL7E.js";
|
|
6
|
-
import "./chunk-OZQHNGZ3.js";
|
|
7
3
|
import {
|
|
8
4
|
App,
|
|
5
|
+
createLivePaint,
|
|
9
6
|
render_default,
|
|
7
|
+
setSyntaxHighlight,
|
|
8
|
+
startOnFreshLine,
|
|
10
9
|
terminalFocus
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SRHEX5JB.js";
|
|
12
11
|
import "./chunk-27R3OTVS.js";
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WZHS724Y.js";
|
|
14
13
|
import "./chunk-NADQQMMG.js";
|
|
15
14
|
import "./chunk-474J6ZI2.js";
|
|
15
|
+
import {
|
|
16
|
+
handleTerminationSignals
|
|
17
|
+
} from "./chunk-VAXTDL7E.js";
|
|
18
|
+
import "./chunk-OZQHNGZ3.js";
|
|
16
19
|
import "./chunk-SONYUWOD.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-RL2CTUF2.js";
|
|
19
|
-
import "./chunk-WNVU6MMP.js";
|
|
20
|
+
import "./chunk-IZJ5JESH.js";
|
|
20
21
|
import "./chunk-GWQEMJFS.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-TITSLPYI.js";
|
|
23
|
+
import "./chunk-NRFNUYVH.js";
|
|
23
24
|
import "./chunk-OG2MLME3.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-ZIFCQKET.js";
|
|
25
26
|
import "./chunk-FZVZJQHL.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-47E6HKJT.js";
|
|
27
28
|
import "./chunk-XEUQN4JC.js";
|
|
28
29
|
import {
|
|
29
30
|
formatResumeShellCommand
|
|
@@ -33,6 +34,8 @@ import "./chunk-6YG7D7U4.js";
|
|
|
33
34
|
import {
|
|
34
35
|
reportCrash
|
|
35
36
|
} from "./chunk-7ZC4ZAW4.js";
|
|
37
|
+
import "./chunk-VYUMMKAA.js";
|
|
38
|
+
import "./chunk-RL2CTUF2.js";
|
|
36
39
|
import {
|
|
37
40
|
hostedByHost,
|
|
38
41
|
workspacesSignal
|
|
@@ -44,23 +47,23 @@ import {
|
|
|
44
47
|
writeLaunchMouseReset
|
|
45
48
|
} from "./chunk-DH4X2E6M.js";
|
|
46
49
|
import "./chunk-ZB5RBBVO.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-M7LQ3C6L.js";
|
|
50
|
+
import "./chunk-ZDEQIXJX.js";
|
|
51
|
+
import "./chunk-YMMEAXUK.js";
|
|
50
52
|
import "./chunk-6ITTTCLD.js";
|
|
53
|
+
import "./chunk-M7LQ3C6L.js";
|
|
51
54
|
import "./chunk-DC76BQGF.js";
|
|
52
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-BCPKC2WP.js";
|
|
53
56
|
import "./chunk-CKL6DYHR.js";
|
|
54
57
|
import "./chunk-5GP2SAXN.js";
|
|
55
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-UKOCGHMU.js";
|
|
56
59
|
import "./chunk-SZXJSTKM.js";
|
|
60
|
+
import "./chunk-ZI7BWTPK.js";
|
|
61
|
+
import "./chunk-7UTSUGXV.js";
|
|
57
62
|
import "./chunk-46EO7Z5W.js";
|
|
58
63
|
import "./chunk-AVPOO4NC.js";
|
|
59
64
|
import "./chunk-SWUGIHFO.js";
|
|
60
65
|
import "./chunk-YLEBTBWP.js";
|
|
61
66
|
import "./chunk-MVVZHKSQ.js";
|
|
62
|
-
import "./chunk-ZI7BWTPK.js";
|
|
63
|
-
import "./chunk-7UTSUGXV.js";
|
|
64
67
|
import "./chunk-WHODOMXA.js";
|
|
65
68
|
import "./chunk-YOWYTBJS.js";
|
|
66
69
|
import "./chunk-ZWA2JRJV.js";
|
|
@@ -73,22 +76,22 @@ import "./chunk-QALDU3HZ.js";
|
|
|
73
76
|
import "./chunk-JQIBPPOL.js";
|
|
74
77
|
import "./chunk-CKYZQOOB.js";
|
|
75
78
|
import "./chunk-F2BM7LHM.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-WSEJK4WO.js";
|
|
80
|
+
import "./chunk-625CBBTB.js";
|
|
81
|
+
import "./chunk-JCIHE3LO.js";
|
|
79
82
|
import "./chunk-AK2U3N2A.js";
|
|
80
83
|
import {
|
|
81
84
|
setThemeSetting
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-A54YZM6S.js";
|
|
83
86
|
import "./chunk-HMRSZOTE.js";
|
|
84
|
-
import "./chunk-F7JDATG3.js";
|
|
85
87
|
import "./chunk-MDK4RMBQ.js";
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-F7MCS63F.js";
|
|
88
|
+
import "./chunk-F7JDATG3.js";
|
|
88
89
|
import "./chunk-JR6EFL7G.js";
|
|
89
90
|
import "./chunk-A22MBIYU.js";
|
|
90
91
|
import "./chunk-OEW7CJKK.js";
|
|
91
92
|
import "./chunk-EY32VJBC.js";
|
|
93
|
+
import "./chunk-CING2BNJ.js";
|
|
94
|
+
import "./chunk-UF6F2Z62.js";
|
|
92
95
|
import {
|
|
93
96
|
backgroundFromColorFgBg,
|
|
94
97
|
queryTerminalBackground
|
|
@@ -98,8 +101,8 @@ import {
|
|
|
98
101
|
setReducedMotion
|
|
99
102
|
} from "./chunk-HREK4V2O.js";
|
|
100
103
|
import "./chunk-G4N43E6M.js";
|
|
101
|
-
import "./chunk-AXQRLXWR.js";
|
|
102
104
|
import "./chunk-CHIEVVQ2.js";
|
|
105
|
+
import "./chunk-AXQRLXWR.js";
|
|
103
106
|
import "./chunk-EDOJTQQU.js";
|
|
104
107
|
import "./chunk-HIPITBXZ.js";
|
|
105
108
|
import "./chunk-7OKLSYRU.js";
|
|
@@ -108,31 +111,29 @@ import {
|
|
|
108
111
|
replacedInstallLine
|
|
109
112
|
} from "./chunk-K6GW3ZS7.js";
|
|
110
113
|
import "./chunk-BBTPD3DU.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-T6ZUFXGP.js";
|
|
115
|
+
import "./chunk-GNBMKISG.js";
|
|
116
|
+
import "./chunk-ZQIWZDPM.js";
|
|
117
|
+
import "./chunk-4XZ67B3M.js";
|
|
118
|
+
import "./chunk-LJNIEZAF.js";
|
|
113
119
|
import "./chunk-U4XNJBDB.js";
|
|
114
|
-
import "./chunk-LCGXWCVU.js";
|
|
115
120
|
import "./chunk-TUFFLY74.js";
|
|
121
|
+
import "./chunk-LCGXWCVU.js";
|
|
116
122
|
import {
|
|
117
123
|
contextLogging,
|
|
118
124
|
installCliLogging
|
|
119
125
|
} from "./chunk-CA7QW5JY.js";
|
|
120
126
|
import "./chunk-SIG7WHBU.js";
|
|
121
127
|
import "./chunk-LVVD32KJ.js";
|
|
128
|
+
import "./chunk-6PWRKA5T.js";
|
|
122
129
|
import "./chunk-KONYGNG6.js";
|
|
123
130
|
import "./chunk-CR4ERJTP.js";
|
|
124
131
|
import "./chunk-WMEZTDLT.js";
|
|
125
|
-
import "./chunk-T6ZUFXGP.js";
|
|
126
|
-
import "./chunk-GNBMKISG.js";
|
|
127
|
-
import "./chunk-ZQIWZDPM.js";
|
|
128
|
-
import "./chunk-6PWRKA5T.js";
|
|
129
132
|
import "./chunk-HE7WUOX2.js";
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
133
|
+
import "./chunk-WD2F6EO3.js";
|
|
134
|
+
import "./chunk-S2JWPUUH.js";
|
|
132
135
|
import "./chunk-I4GTRFPK.js";
|
|
133
|
-
import
|
|
134
|
-
stringWidth
|
|
135
|
-
} from "./chunk-U5UV2YRE.js";
|
|
136
|
+
import "./chunk-U5UV2YRE.js";
|
|
136
137
|
import "./chunk-USAVWSGJ.js";
|
|
137
138
|
import {
|
|
138
139
|
EXIT_INTERNAL_ERROR,
|
|
@@ -508,637 +509,9 @@ function watchOutputSize(output, platform = process.platform, timers = { setInte
|
|
|
508
509
|
}
|
|
509
510
|
__name(watchOutputSize, "watchOutputSize");
|
|
510
511
|
|
|
511
|
-
// src/tui/paint/live-paint.ts
|
|
512
|
-
import { EventEmitter } from "node:events";
|
|
513
|
-
|
|
514
|
-
// src/tui/paint/cells.ts
|
|
515
|
-
var ESC = "\x1B";
|
|
516
|
-
var RESET = `${ESC}[0m`;
|
|
517
|
-
var LINK_CLOSE = `${ESC}]8;;${ESC}\\`;
|
|
518
|
-
var ERASE_TO_END = `${ESC}[K`;
|
|
519
|
-
var segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
520
|
-
var FLAGS = /* @__PURE__ */ new Map([
|
|
521
|
-
[1, 22],
|
|
522
|
-
[2, 22],
|
|
523
|
-
[3, 23],
|
|
524
|
-
[4, 24],
|
|
525
|
-
[5, 25],
|
|
526
|
-
[7, 27],
|
|
527
|
-
[8, 28],
|
|
528
|
-
[9, 29],
|
|
529
|
-
[53, 55]
|
|
530
|
-
]);
|
|
531
|
-
var OFF_TO_ON = /* @__PURE__ */ new Map([
|
|
532
|
-
[22, [1, 2]],
|
|
533
|
-
[23, [3]],
|
|
534
|
-
[24, [4]],
|
|
535
|
-
[25, [5]],
|
|
536
|
-
[27, [7]],
|
|
537
|
-
[28, [8]],
|
|
538
|
-
[29, [9]],
|
|
539
|
-
[55, [53]]
|
|
540
|
-
]);
|
|
541
|
-
var plain = /* @__PURE__ */ __name(() => ({ flags: /* @__PURE__ */ new Set(), fg: "", bg: "", ul: "" }), "plain");
|
|
542
|
-
function serialise(c) {
|
|
543
|
-
const parts = [...c.flags].sort((a, b) => a - b).map(String);
|
|
544
|
-
if (c.fg) parts.push(c.fg);
|
|
545
|
-
if (c.bg) parts.push(c.bg);
|
|
546
|
-
if (c.ul) parts.push(c.ul);
|
|
547
|
-
return parts.length === 0 ? "" : `${ESC}[${parts.join(";")}m`;
|
|
548
|
-
}
|
|
549
|
-
__name(serialise, "serialise");
|
|
550
|
-
function extended(params, at) {
|
|
551
|
-
const kind = params[at + 1];
|
|
552
|
-
if (kind === 5 && params[at + 2] !== void 0) {
|
|
553
|
-
return { text: `${params[at]};5;${params[at + 2]}`, used: 3 };
|
|
554
|
-
}
|
|
555
|
-
if (kind === 2 && params[at + 2] !== void 0 && params[at + 3] !== void 0 && params[at + 4] !== void 0) {
|
|
556
|
-
return {
|
|
557
|
-
text: `${params[at]};2;${params[at + 2]};${params[at + 3]};${params[at + 4]}`,
|
|
558
|
-
used: 5
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
return null;
|
|
562
|
-
}
|
|
563
|
-
__name(extended, "extended");
|
|
564
|
-
function applySgr(c, raw) {
|
|
565
|
-
if (raw.includes(":")) return false;
|
|
566
|
-
const params = raw === "" ? [0] : raw.split(";").map((p) => p === "" ? 0 : Number(p));
|
|
567
|
-
for (let i = 0; i < params.length; i++) {
|
|
568
|
-
const code = params[i];
|
|
569
|
-
if (!Number.isInteger(code)) return false;
|
|
570
|
-
if (code === 0) {
|
|
571
|
-
c.flags.clear();
|
|
572
|
-
c.fg = "";
|
|
573
|
-
c.bg = "";
|
|
574
|
-
c.ul = "";
|
|
575
|
-
} else if (FLAGS.has(code)) c.flags.add(code);
|
|
576
|
-
else if (OFF_TO_ON.has(code)) for (const on of OFF_TO_ON.get(code) ?? []) c.flags.delete(on);
|
|
577
|
-
else if (code >= 30 && code <= 37 || code >= 90 && code <= 97) c.fg = String(code);
|
|
578
|
-
else if (code >= 40 && code <= 47 || code >= 100 && code <= 107) c.bg = String(code);
|
|
579
|
-
else if (code === 39) c.fg = "";
|
|
580
|
-
else if (code === 49) c.bg = "";
|
|
581
|
-
else if (code === 59) c.ul = "";
|
|
582
|
-
else if (code === 38 || code === 48 || code === 58) {
|
|
583
|
-
const colour = extended(params, i);
|
|
584
|
-
if (colour === null) return false;
|
|
585
|
-
if (code === 38) c.fg = colour.text;
|
|
586
|
-
else if (code === 48) c.bg = colour.text;
|
|
587
|
-
else c.ul = colour.text;
|
|
588
|
-
i += colour.used - 1;
|
|
589
|
-
} else return false;
|
|
590
|
-
}
|
|
591
|
-
return true;
|
|
592
|
-
}
|
|
593
|
-
__name(applySgr, "applySgr");
|
|
594
|
-
var SGR = new RegExp(`${ESC}\\[([0-9;:]*)m`, "y");
|
|
595
|
-
var OSC8 = new RegExp(
|
|
596
|
-
`${ESC}\\]8;([^\\u0007${ESC}]*);([^\\u0007${ESC}]*)(?:\\u0007|${ESC}\\\\)`,
|
|
597
|
-
"y"
|
|
598
|
-
);
|
|
599
|
-
function parseRow(row) {
|
|
600
|
-
const cells = [];
|
|
601
|
-
const colours = plain();
|
|
602
|
-
let sgr = "";
|
|
603
|
-
let link = "";
|
|
604
|
-
let i = 0;
|
|
605
|
-
while (i < row.length) {
|
|
606
|
-
const code = row.charCodeAt(i);
|
|
607
|
-
if (code === 27) {
|
|
608
|
-
const next = row[i + 1];
|
|
609
|
-
if (next === "[") {
|
|
610
|
-
SGR.lastIndex = i;
|
|
611
|
-
const hit = SGR.exec(row);
|
|
612
|
-
if (hit === null || !applySgr(colours, hit[1] ?? "")) return null;
|
|
613
|
-
sgr = serialise(colours);
|
|
614
|
-
i += hit[0].length;
|
|
615
|
-
} else if (next === "]") {
|
|
616
|
-
OSC8.lastIndex = i;
|
|
617
|
-
const hit = OSC8.exec(row);
|
|
618
|
-
if (hit === null) return null;
|
|
619
|
-
link = hit[2] === "" ? "" : hit[0];
|
|
620
|
-
i += hit[0].length;
|
|
621
|
-
} else return null;
|
|
622
|
-
continue;
|
|
623
|
-
}
|
|
624
|
-
if (code < 32 || code === 127) return null;
|
|
625
|
-
let end = i + 1;
|
|
626
|
-
while (end < row.length) {
|
|
627
|
-
const c = row.charCodeAt(end);
|
|
628
|
-
if (c === 27 || c < 32 || c === 127) break;
|
|
629
|
-
end++;
|
|
630
|
-
}
|
|
631
|
-
const run = row.slice(i, end);
|
|
632
|
-
for (const { segment } of segmenter.segment(run)) {
|
|
633
|
-
const width = segment.length === 1 && segment < "\x7F" ? 1 : stringWidth(segment);
|
|
634
|
-
cells.push({ g: segment, width, sgr, link });
|
|
635
|
-
}
|
|
636
|
-
i = end;
|
|
637
|
-
}
|
|
638
|
-
return cells;
|
|
639
|
-
}
|
|
640
|
-
__name(parseRow, "parseRow");
|
|
641
|
-
var sameCell = /* @__PURE__ */ __name((a, b) => a.g === b.g && a.sgr === b.sgr && a.link === b.link, "sameCell");
|
|
642
|
-
var widthOf = /* @__PURE__ */ __name((cells, from, to) => {
|
|
643
|
-
let w = 0;
|
|
644
|
-
for (let i = from; i < to; i++) w += cells[i].width;
|
|
645
|
-
return w;
|
|
646
|
-
}, "widthOf");
|
|
647
|
-
function drawCells(cells, from, to) {
|
|
648
|
-
let out = "";
|
|
649
|
-
let sgr = "";
|
|
650
|
-
let link = "";
|
|
651
|
-
for (let i = from; i < to; i++) {
|
|
652
|
-
const cell = cells[i];
|
|
653
|
-
if (cell.link !== link) {
|
|
654
|
-
out += cell.link === "" ? LINK_CLOSE : cell.link;
|
|
655
|
-
link = cell.link;
|
|
656
|
-
}
|
|
657
|
-
if (cell.sgr !== sgr) {
|
|
658
|
-
out += cell.sgr === "" ? RESET : sgr === "" ? cell.sgr : RESET + cell.sgr;
|
|
659
|
-
sgr = cell.sgr;
|
|
660
|
-
}
|
|
661
|
-
out += cell.g;
|
|
662
|
-
}
|
|
663
|
-
if (link !== "") out += LINK_CLOSE;
|
|
664
|
-
if (sgr !== "") out += RESET;
|
|
665
|
-
return out;
|
|
666
|
-
}
|
|
667
|
-
__name(drawCells, "drawCells");
|
|
668
|
-
function writeWholeRow(row) {
|
|
669
|
-
return `\r${row}${row.includes(ESC) ? RESET : ""}${ERASE_TO_END}`;
|
|
670
|
-
}
|
|
671
|
-
__name(writeWholeRow, "writeWholeRow");
|
|
672
|
-
function writeRowChange(before, after) {
|
|
673
|
-
if (before === after) return "";
|
|
674
|
-
const whole = writeWholeRow(after);
|
|
675
|
-
const old = parseRow(before);
|
|
676
|
-
const next = parseRow(after);
|
|
677
|
-
if (old === null || next === null) return whole;
|
|
678
|
-
const room = Math.min(old.length, next.length);
|
|
679
|
-
let head = 0;
|
|
680
|
-
while (head < room && sameCell(old[head], next[head])) head++;
|
|
681
|
-
let tail = 0;
|
|
682
|
-
while (tail < room - head && sameCell(old[old.length - 1 - tail], next[next.length - 1 - tail]))
|
|
683
|
-
tail++;
|
|
684
|
-
const oldEnd = old.length - tail;
|
|
685
|
-
const nextEnd = next.length - tail;
|
|
686
|
-
if (tail > 0 && widthOf(old, head, oldEnd) !== widthOf(next, head, nextEnd)) {
|
|
687
|
-
tail = 0;
|
|
688
|
-
}
|
|
689
|
-
const stop = next.length - tail;
|
|
690
|
-
const column = widthOf(next, 0, head) + 1;
|
|
691
|
-
const shorter = tail === 0 && widthOf(next, 0, next.length) < widthOf(old, 0, old.length);
|
|
692
|
-
const change = `${ESC}[${column}G${drawCells(next, head, stop)}${shorter ? ERASE_TO_END : ""}`;
|
|
693
|
-
return change.length < whole.length ? change : whole;
|
|
694
|
-
}
|
|
695
|
-
__name(writeRowChange, "writeRowChange");
|
|
696
|
-
function rowWidth(row) {
|
|
697
|
-
const cells = parseRow(row);
|
|
698
|
-
return cells === null ? stringWidth(row) : widthOf(cells, 0, cells.length);
|
|
699
|
-
}
|
|
700
|
-
__name(rowWidth, "rowWidth");
|
|
701
|
-
|
|
702
|
-
// src/tui/paint/live-paint.ts
|
|
703
|
-
var ESC2 = "\x1B";
|
|
704
|
-
var BSU = `${ESC2}[?2026h`;
|
|
705
|
-
var ESU = `${ESC2}[?2026l`;
|
|
706
|
-
var HIDE_CURSOR = `${ESC2}[?25l`;
|
|
707
|
-
var SHOW_CURSOR = `${ESC2}[?25h`;
|
|
708
|
-
var RESET2 = `${ESC2}[0m`;
|
|
709
|
-
var RESIZE = "resize";
|
|
710
|
-
var TAIL = 256;
|
|
711
|
-
var FRAMES_PER_SECOND = 12;
|
|
712
|
-
var FRAME_MS = 1e3 / FRAMES_PER_SECOND;
|
|
713
|
-
var RESIZE_SETTLE_MS = 150;
|
|
714
|
-
var RESIZE_HOLD_MS = 100;
|
|
715
|
-
var ERASE_PREFIX = new RegExp(`^(?:${ESC2}\\[2K(?:${ESC2}\\[1A)?)+${ESC2}\\[G`);
|
|
716
|
-
var CURSOR_MODE = new RegExp(`^${ESC2}\\[\\?25[lh]$`);
|
|
717
|
-
var CLEAR_TERMINAL = `${ESC2}[2J${ESC2}[3J${ESC2}[H`;
|
|
718
|
-
var BENIGN = new RegExp(`^(?:${ESC2}\\][^\\u0007${ESC2}]*(?:\\u0007|${ESC2}\\\\))+$`);
|
|
719
|
-
var SCREEN_CHANGE = new RegExp(`${ESC2}\\[[0-3]?J|${ESC2}\\[H|${ESC2}c|${ESC2}\\[\\?1049[hl]`);
|
|
720
|
-
var realTimers = {
|
|
721
|
-
now: /* @__PURE__ */ __name(() => Date.now(), "now"),
|
|
722
|
-
set: /* @__PURE__ */ __name((run, ms) => {
|
|
723
|
-
const handle = setTimeout(run, ms);
|
|
724
|
-
handle.unref();
|
|
725
|
-
return handle;
|
|
726
|
-
}, "set"),
|
|
727
|
-
clear: /* @__PURE__ */ __name((handle) => clearTimeout(handle), "clear")
|
|
728
|
-
};
|
|
729
|
-
var lines = /* @__PURE__ */ __name((frame) => {
|
|
730
|
-
const rows = frame.split("\n");
|
|
731
|
-
rows.pop();
|
|
732
|
-
return rows;
|
|
733
|
-
}, "lines");
|
|
734
|
-
var crlf = /* @__PURE__ */ __name((text) => {
|
|
735
|
-
const fixed = text.replace(/\r?\n/g, "\r\n");
|
|
736
|
-
return fixed.endsWith("\n") ? fixed : `${fixed}\r
|
|
737
|
-
`;
|
|
738
|
-
}, "crlf");
|
|
739
|
-
function paintChange(shown, next) {
|
|
740
|
-
const s = shown.length;
|
|
741
|
-
const n = next.length;
|
|
742
|
-
let out = "";
|
|
743
|
-
let at = s;
|
|
744
|
-
const go = /* @__PURE__ */ __name((row) => {
|
|
745
|
-
if (row < at) out += `${ESC2}[${at - row}A`;
|
|
746
|
-
else if (row > at) out += `${ESC2}[${row - at}B`;
|
|
747
|
-
at = row;
|
|
748
|
-
}, "go");
|
|
749
|
-
for (let i = 0; i < Math.min(s, n); i++) {
|
|
750
|
-
const was = shown[i];
|
|
751
|
-
const now = next[i];
|
|
752
|
-
if (was === now) continue;
|
|
753
|
-
go(i);
|
|
754
|
-
out += writeRowChange(was, now);
|
|
755
|
-
}
|
|
756
|
-
if (n > s) {
|
|
757
|
-
go(s);
|
|
758
|
-
for (let i = s; i < n; i++) {
|
|
759
|
-
const row = next[i];
|
|
760
|
-
out += `\r${row}${row.includes(ESC2) ? RESET2 : ""}\r
|
|
761
|
-
`;
|
|
762
|
-
}
|
|
763
|
-
} else if (out !== "") {
|
|
764
|
-
go(n);
|
|
765
|
-
out += n < s ? `\r${ESC2}[J` : "\r";
|
|
766
|
-
} else if (n < s) {
|
|
767
|
-
go(n);
|
|
768
|
-
out += `\r${ESC2}[J`;
|
|
769
|
-
}
|
|
770
|
-
return out;
|
|
771
|
-
}
|
|
772
|
-
__name(paintChange, "paintChange");
|
|
773
|
-
function overLine(line, columns) {
|
|
774
|
-
const width = rowWidth(line);
|
|
775
|
-
const colours = line.includes(ESC2);
|
|
776
|
-
const filled = width > 0 && width % Math.max(1, columns) === 0;
|
|
777
|
-
return `${line}${colours ? RESET2 : ""}${filled ? "" : `${ESC2}[K`}\r
|
|
778
|
-
`;
|
|
779
|
-
}
|
|
780
|
-
__name(overLine, "overLine");
|
|
781
|
-
function paintWhole(upRows, statics, rows, columns, screenRows, oneRowEach, scrolled = null) {
|
|
782
|
-
let up = upRows;
|
|
783
|
-
let all = [];
|
|
784
|
-
if (statics !== "") {
|
|
785
|
-
for (const line of lines(statics.endsWith("\n") ? statics : `${statics}
|
|
786
|
-
`))
|
|
787
|
-
all.push(line.replace(/\r$/, ""));
|
|
788
|
-
}
|
|
789
|
-
all.push(...rows);
|
|
790
|
-
if (scrolled !== null) {
|
|
791
|
-
const skip = scrolled(all);
|
|
792
|
-
if (skip > 0) {
|
|
793
|
-
all = all.slice(skip);
|
|
794
|
-
up = Math.max(0, Math.min(up, screenRows - 1));
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
const write = /* @__PURE__ */ __name((from, to) => {
|
|
798
|
-
let data = "";
|
|
799
|
-
for (let i = from; i < to; i++) data += overLine(all[i], columns);
|
|
800
|
-
return data;
|
|
801
|
-
}, "write");
|
|
802
|
-
const total = all.length;
|
|
803
|
-
const fits = oneRowEach && all.every((line) => rowWidth(line) <= columns);
|
|
804
|
-
if (up > 0 && fits && total > up && total <= screenRows) {
|
|
805
|
-
let data = write(up, total);
|
|
806
|
-
let at = total;
|
|
807
|
-
for (let row = up - 1; row >= 0; row--) {
|
|
808
|
-
data += `${ESC2}[${at - row}A${overLine(all[row], columns)}`;
|
|
809
|
-
at = row + 1;
|
|
810
|
-
}
|
|
811
|
-
return `${data}${ESC2}[${total - at}B`;
|
|
812
|
-
}
|
|
813
|
-
return `${up > 0 ? `${ESC2}[${up}A\r` : ""}${write(0, total)}${up > 0 ? `${ESC2}[J` : ""}`;
|
|
814
|
-
}
|
|
815
|
-
__name(paintWhole, "paintWhole");
|
|
816
|
-
function startOnFreshLine(columns) {
|
|
817
|
-
const width = Math.max(1, columns);
|
|
818
|
-
return `${ESC2}[7m%${ESC2}[27m${" ".repeat(width - 1)}\r${ESC2}[K`;
|
|
819
|
-
}
|
|
820
|
-
__name(startOnFreshLine, "startOnFreshLine");
|
|
821
|
-
var plainText = /* @__PURE__ */ __name((row) => row.replace(
|
|
822
|
-
new RegExp(`${ESC2}\\[[0-9;?]*[A-Za-z]|${ESC2}\\][^\\u0007${ESC2}]*(?:\\u0007|${ESC2}\\\\)`, "g"),
|
|
823
|
-
""
|
|
824
|
-
), "plainText");
|
|
825
|
-
function textOfFirstRows(lines2, rows, columns) {
|
|
826
|
-
const width = Math.max(1, columns);
|
|
827
|
-
const taken = [];
|
|
828
|
-
let used = 0;
|
|
829
|
-
for (const line of lines2) {
|
|
830
|
-
if (used === rows) return taken;
|
|
831
|
-
used += Math.max(1, Math.ceil(rowWidth(line) / width));
|
|
832
|
-
if (used > rows) return null;
|
|
833
|
-
taken.push(plainText(line));
|
|
834
|
-
}
|
|
835
|
-
return used === rows ? taken : null;
|
|
836
|
-
}
|
|
837
|
-
__name(textOfFirstRows, "textOfFirstRows");
|
|
838
|
-
function linesAlreadyScrolled(shown, all, regionRows, screenRows, columns) {
|
|
839
|
-
if (screenRows <= 0) return 0;
|
|
840
|
-
const gone = regionRows - (screenRows - 1);
|
|
841
|
-
if (gone <= 0) return 0;
|
|
842
|
-
const old = textOfFirstRows(shown, gone, columns);
|
|
843
|
-
const next = textOfFirstRows(all, gone, columns);
|
|
844
|
-
if (old === null || next === null || old.join("\n") !== next.join("\n")) return 0;
|
|
845
|
-
return next.length;
|
|
846
|
-
}
|
|
847
|
-
__name(linesAlreadyScrolled, "linesAlreadyScrolled");
|
|
848
|
-
function reflowedRows(rows, columns) {
|
|
849
|
-
const width = Math.max(1, columns);
|
|
850
|
-
let total = 0;
|
|
851
|
-
for (const row of rows) total += Math.max(1, Math.ceil(rowWidth(row) / width));
|
|
852
|
-
return total;
|
|
853
|
-
}
|
|
854
|
-
__name(reflowedRows, "reflowedRows");
|
|
855
|
-
function createLivePaint(target, options = {}) {
|
|
856
|
-
const timers = options.timers ?? realTimers;
|
|
857
|
-
const bypass = options.bypass ?? (() => false);
|
|
858
|
-
const hooks = options.process === void 0 ? process : options.process;
|
|
859
|
-
const listeners = new EventEmitter();
|
|
860
|
-
let shown = [];
|
|
861
|
-
let lastFrame = null;
|
|
862
|
-
let pending = null;
|
|
863
|
-
let block = null;
|
|
864
|
-
let hideAsked = false;
|
|
865
|
-
let hidden = false;
|
|
866
|
-
let lastPaint = Number.NEGATIVE_INFINITY;
|
|
867
|
-
let frameTimer = null;
|
|
868
|
-
let settleTimer = null;
|
|
869
|
-
let holdTimer = null;
|
|
870
|
-
let holding = false;
|
|
871
|
-
let resizing = false;
|
|
872
|
-
let reflow = null;
|
|
873
|
-
let fresh = false;
|
|
874
|
-
let adopt = false;
|
|
875
|
-
let disposed = false;
|
|
876
|
-
let printed = { length: 0, tail: "" };
|
|
877
|
-
const out = /* @__PURE__ */ __name((data) => {
|
|
878
|
-
if (data !== "") target.write(data);
|
|
879
|
-
}, "out");
|
|
880
|
-
const stop = /* @__PURE__ */ __name((handle) => {
|
|
881
|
-
if (handle !== null) timers.clear(handle);
|
|
882
|
-
return null;
|
|
883
|
-
}, "stop");
|
|
884
|
-
const paint = /* @__PURE__ */ __name(() => {
|
|
885
|
-
frameTimer = stop(frameTimer);
|
|
886
|
-
const job = pending;
|
|
887
|
-
pending = null;
|
|
888
|
-
const rows = job?.rows ?? (reflow !== null || fresh ? lastFrame : null);
|
|
889
|
-
if (rows === null) {
|
|
890
|
-
if (job?.statics) out(BSU + crlf(job.statics) + ESU);
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
const statics = job?.statics ?? "";
|
|
894
|
-
let data;
|
|
895
|
-
if (reflow !== null || fresh || statics !== "") {
|
|
896
|
-
const up = reflow !== null ? reflow.rows : fresh ? 0 : shown.length;
|
|
897
|
-
const columns = target.columns ?? 80;
|
|
898
|
-
const oldRows = shown;
|
|
899
|
-
const regionRows = up;
|
|
900
|
-
data = (fresh ? "\r\n" : "") + paintWhole(
|
|
901
|
-
up,
|
|
902
|
-
statics,
|
|
903
|
-
rows,
|
|
904
|
-
columns,
|
|
905
|
-
target.rows ?? 0,
|
|
906
|
-
reflow === null,
|
|
907
|
-
reflow !== null ? (all) => linesAlreadyScrolled(oldRows, all, regionRows, target.rows ?? 0, columns) : null
|
|
908
|
-
);
|
|
909
|
-
} else data = paintChange(shown, rows);
|
|
910
|
-
reflow = null;
|
|
911
|
-
fresh = false;
|
|
912
|
-
shown = rows;
|
|
913
|
-
if (data === "") return;
|
|
914
|
-
lastPaint = timers.now();
|
|
915
|
-
const hide = hideAsked && !hidden;
|
|
916
|
-
hidden = hidden || hide;
|
|
917
|
-
out(BSU + (hide ? HIDE_CURSOR : "") + data + ESU);
|
|
918
|
-
}, "paint");
|
|
919
|
-
const schedule = /* @__PURE__ */ __name(() => {
|
|
920
|
-
if (holding || resizing || pending === null || frameTimer !== null) return;
|
|
921
|
-
const wait = lastPaint + FRAME_MS - timers.now();
|
|
922
|
-
if (wait <= 0) paint();
|
|
923
|
-
else {
|
|
924
|
-
frameTimer = timers.set(() => {
|
|
925
|
-
frameTimer = null;
|
|
926
|
-
if (!holding && !resizing) paint();
|
|
927
|
-
}, wait);
|
|
928
|
-
}
|
|
929
|
-
}, "schedule");
|
|
930
|
-
const flush = /* @__PURE__ */ __name(() => {
|
|
931
|
-
holdTimer = stop(holdTimer);
|
|
932
|
-
holding = false;
|
|
933
|
-
if (pending !== null || reflow !== null || fresh) paint();
|
|
934
|
-
}, "flush");
|
|
935
|
-
const verbatim = /* @__PURE__ */ __name((parts) => {
|
|
936
|
-
flush();
|
|
937
|
-
shown = [];
|
|
938
|
-
lastFrame = null;
|
|
939
|
-
out(BSU + parts.join("") + ESU);
|
|
940
|
-
}, "verbatim");
|
|
941
|
-
const take = /* @__PURE__ */ __name((parts) => {
|
|
942
|
-
if (bypass()) {
|
|
943
|
-
verbatim(parts);
|
|
944
|
-
return;
|
|
945
|
-
}
|
|
946
|
-
if (adopt) {
|
|
947
|
-
adopt = false;
|
|
948
|
-
const first = parts.find((part) => part !== "");
|
|
949
|
-
if (first !== void 0 && ERASE_PREFIX.test(first)) {
|
|
950
|
-
const rows2 = (first.match(new RegExp(`${ESC2}\\[2K`, "g")) ?? []).length - 1;
|
|
951
|
-
if (rows2 > 0) reflow = { rows: rows2 };
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
const texts = [];
|
|
955
|
-
for (const part of parts) {
|
|
956
|
-
if (part === "") continue;
|
|
957
|
-
if (CURSOR_MODE.test(part)) {
|
|
958
|
-
hideAsked = part === HIDE_CURSOR;
|
|
959
|
-
if (!hideAsked) {
|
|
960
|
-
flush();
|
|
961
|
-
out(part);
|
|
962
|
-
hidden = false;
|
|
963
|
-
}
|
|
964
|
-
continue;
|
|
965
|
-
}
|
|
966
|
-
const text = part.replace(ERASE_PREFIX, "");
|
|
967
|
-
if (text !== "") texts.push(text);
|
|
968
|
-
}
|
|
969
|
-
if (texts.length > 1 && texts.slice(0, -1).some((text) => text.startsWith(CLEAR_TERMINAL))) {
|
|
970
|
-
const push = "\n".repeat(Math.max(0, target.rows ?? 0));
|
|
971
|
-
verbatim(
|
|
972
|
-
parts.map(
|
|
973
|
-
(part) => part.startsWith(CLEAR_TERMINAL) ? `${push}${ESC2}[2J${ESC2}[H${part.slice(CLEAR_TERMINAL.length)}` : part
|
|
974
|
-
)
|
|
975
|
-
);
|
|
976
|
-
printed = { length: 0, tail: "" };
|
|
977
|
-
adopt = true;
|
|
978
|
-
reflow = null;
|
|
979
|
-
return;
|
|
980
|
-
}
|
|
981
|
-
let frame = texts.pop();
|
|
982
|
-
if (frame === void 0) return;
|
|
983
|
-
if (frame.startsWith(CLEAR_TERMINAL)) {
|
|
984
|
-
const rest = frame.slice(CLEAR_TERMINAL.length);
|
|
985
|
-
const n = printed.length;
|
|
986
|
-
if (n > 0 && rest.slice(Math.max(0, n - printed.tail.length), n) !== printed.tail) {
|
|
987
|
-
verbatim(parts);
|
|
988
|
-
return;
|
|
989
|
-
}
|
|
990
|
-
frame = `${rest.slice(n)}
|
|
991
|
-
`;
|
|
992
|
-
}
|
|
993
|
-
if (frame.includes(`${ESC2}[2J`)) {
|
|
994
|
-
verbatim(parts);
|
|
995
|
-
return;
|
|
996
|
-
}
|
|
997
|
-
if (!frame.endsWith("\n")) frame += "\n";
|
|
998
|
-
for (const text of texts) {
|
|
999
|
-
if (text.includes(`${ESC2}[2J`)) printed = { length: 0, tail: "" };
|
|
1000
|
-
else if (text.endsWith("\n")) {
|
|
1001
|
-
printed = { length: printed.length + text.length, tail: (printed.tail + text).slice(-TAIL) };
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
const statics = texts.join("");
|
|
1005
|
-
const rows = lines(frame);
|
|
1006
|
-
lastFrame = rows;
|
|
1007
|
-
pending = { statics: (pending?.statics ?? "") + statics, rows };
|
|
1008
|
-
schedule();
|
|
1009
|
-
}, "take");
|
|
1010
|
-
const settle = /* @__PURE__ */ __name(() => {
|
|
1011
|
-
settleTimer = null;
|
|
1012
|
-
resizing = false;
|
|
1013
|
-
reflow = { rows: reflowedRows(shown, target.columns ?? 80) };
|
|
1014
|
-
holding = true;
|
|
1015
|
-
listeners.emit(RESIZE);
|
|
1016
|
-
holdTimer = timers.set(() => {
|
|
1017
|
-
holdTimer = null;
|
|
1018
|
-
holding = false;
|
|
1019
|
-
paint();
|
|
1020
|
-
}, RESIZE_HOLD_MS);
|
|
1021
|
-
}, "settle");
|
|
1022
|
-
const onTargetResize = /* @__PURE__ */ __name(() => {
|
|
1023
|
-
if (disposed) return;
|
|
1024
|
-
if (bypass()) {
|
|
1025
|
-
listeners.emit(RESIZE);
|
|
1026
|
-
return;
|
|
1027
|
-
}
|
|
1028
|
-
holdTimer = stop(holdTimer);
|
|
1029
|
-
holding = false;
|
|
1030
|
-
reflow = null;
|
|
1031
|
-
resizing = true;
|
|
1032
|
-
settleTimer = stop(settleTimer);
|
|
1033
|
-
settleTimer = timers.set(settle, RESIZE_SETTLE_MS);
|
|
1034
|
-
}, "onTargetResize");
|
|
1035
|
-
target.on(RESIZE, onTargetResize);
|
|
1036
|
-
const doneWith = /* @__PURE__ */ __name((rest) => {
|
|
1037
|
-
const cb = rest.find((r) => typeof r === "function");
|
|
1038
|
-
if (cb) queueMicrotask(cb);
|
|
1039
|
-
}, "doneWith");
|
|
1040
|
-
const write = /* @__PURE__ */ __name((chunk, ...rest) => {
|
|
1041
|
-
if (disposed || typeof chunk !== "string") {
|
|
1042
|
-
if (!disposed) flush();
|
|
1043
|
-
return Reflect.apply(target.write, target, [chunk, ...rest]);
|
|
1044
|
-
}
|
|
1045
|
-
if (chunk === BSU) {
|
|
1046
|
-
if (block !== null) verbatim(block);
|
|
1047
|
-
block = [];
|
|
1048
|
-
doneWith(rest);
|
|
1049
|
-
return true;
|
|
1050
|
-
}
|
|
1051
|
-
if (block !== null) {
|
|
1052
|
-
if (chunk === ESU) {
|
|
1053
|
-
const parts = block;
|
|
1054
|
-
block = null;
|
|
1055
|
-
take(parts);
|
|
1056
|
-
} else block.push(chunk);
|
|
1057
|
-
doneWith(rest);
|
|
1058
|
-
return true;
|
|
1059
|
-
}
|
|
1060
|
-
if (ERASE_PREFIX.test(chunk) && chunk.replace(ERASE_PREFIX, "") === "") {
|
|
1061
|
-
doneWith(rest);
|
|
1062
|
-
return true;
|
|
1063
|
-
}
|
|
1064
|
-
if (chunk !== "" && !BENIGN.test(chunk)) {
|
|
1065
|
-
if (!holding && !resizing) flush();
|
|
1066
|
-
if (chunk.includes(HIDE_CURSOR) || chunk.includes(SHOW_CURSOR)) {
|
|
1067
|
-
hidden = chunk.lastIndexOf(HIDE_CURSOR) > chunk.lastIndexOf(SHOW_CURSOR);
|
|
1068
|
-
hideAsked = hidden;
|
|
1069
|
-
}
|
|
1070
|
-
if (SCREEN_CHANGE.test(chunk)) {
|
|
1071
|
-
shown = [];
|
|
1072
|
-
reflow = null;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
return Reflect.apply(target.write, target, [chunk, ...rest]);
|
|
1076
|
-
}, "write");
|
|
1077
|
-
const stream = new Proxy(target, {
|
|
1078
|
-
get(base, prop) {
|
|
1079
|
-
if (prop === "write") return write;
|
|
1080
|
-
if (prop === "on" || prop === "addListener" || prop === "once" || prop === "off" || prop === "removeListener") {
|
|
1081
|
-
return (event, listener) => {
|
|
1082
|
-
if (event !== RESIZE) {
|
|
1083
|
-
Reflect.apply(base[prop], base, [event, listener]);
|
|
1084
|
-
return stream;
|
|
1085
|
-
}
|
|
1086
|
-
listeners[prop](event, listener);
|
|
1087
|
-
return stream;
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
const value = Reflect.get(base, prop, base);
|
|
1091
|
-
return typeof value === "function" ? value.bind(base) : value;
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
const onExit = /* @__PURE__ */ __name(() => {
|
|
1095
|
-
if (!disposed) leave();
|
|
1096
|
-
}, "onExit");
|
|
1097
|
-
const onContinue = /* @__PURE__ */ __name(() => {
|
|
1098
|
-
if (disposed || bypass()) return;
|
|
1099
|
-
shown = [];
|
|
1100
|
-
fresh = true;
|
|
1101
|
-
reflow = null;
|
|
1102
|
-
hidden = false;
|
|
1103
|
-
if (lastFrame !== null) paint();
|
|
1104
|
-
}, "onContinue");
|
|
1105
|
-
hooks?.on("exit", onExit);
|
|
1106
|
-
hooks?.on("SIGCONT", onContinue);
|
|
1107
|
-
function leave() {
|
|
1108
|
-
settleTimer = stop(settleTimer);
|
|
1109
|
-
holdTimer = stop(holdTimer);
|
|
1110
|
-
frameTimer = stop(frameTimer);
|
|
1111
|
-
holding = false;
|
|
1112
|
-
resizing = false;
|
|
1113
|
-
if (block !== null) {
|
|
1114
|
-
const parts = block;
|
|
1115
|
-
block = null;
|
|
1116
|
-
take(parts);
|
|
1117
|
-
}
|
|
1118
|
-
if (pending !== null || reflow !== null || fresh) paint();
|
|
1119
|
-
if (hidden) out(SHOW_CURSOR);
|
|
1120
|
-
hidden = false;
|
|
1121
|
-
hideAsked = false;
|
|
1122
|
-
}
|
|
1123
|
-
__name(leave, "leave");
|
|
1124
|
-
return {
|
|
1125
|
-
stream,
|
|
1126
|
-
flush,
|
|
1127
|
-
dispose() {
|
|
1128
|
-
if (disposed) return;
|
|
1129
|
-
leave();
|
|
1130
|
-
disposed = true;
|
|
1131
|
-
target.off(RESIZE, onTargetResize);
|
|
1132
|
-
hooks?.off("exit", onExit);
|
|
1133
|
-
hooks?.off("SIGCONT", onContinue);
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
|
-
}
|
|
1137
|
-
__name(createLivePaint, "createLivePaint");
|
|
1138
|
-
|
|
1139
512
|
// src/tui/paste-marker-guard.ts
|
|
1140
|
-
var
|
|
1141
|
-
var MARKERS = [`${
|
|
513
|
+
var ESC = "\x1B";
|
|
514
|
+
var MARKERS = [`${ESC}[200~`, `${ESC}[201~`];
|
|
1142
515
|
var SHARED_PREFIX_MS = 200;
|
|
1143
516
|
var MARKER_PREFIX_MS = 2e3;
|
|
1144
517
|
function heldTailLength(text) {
|
|
@@ -1221,6 +594,7 @@ __name(liveRenderOption, "liveRenderOption");
|
|
|
1221
594
|
var BACKGROUND_QUERY_WAIT_MS = 250;
|
|
1222
595
|
function applyLaunchTheme(tui, streams, env = process.env) {
|
|
1223
596
|
setReducedMotion(tui?.reducedMotion === true);
|
|
597
|
+
setSyntaxHighlight(tui?.syntaxHighlight !== false);
|
|
1224
598
|
const setting = tui?.theme ?? "dark";
|
|
1225
599
|
if (setting !== "auto") {
|
|
1226
600
|
setThemeSetting(setting, { env });
|
|
@@ -1349,12 +723,12 @@ async function leaveWorkspacesBounded(options) {
|
|
|
1349
723
|
__name(leaveWorkspacesBounded, "leaveWorkspacesBounded");
|
|
1350
724
|
|
|
1351
725
|
// src/tui/zoom/proxy.ts
|
|
1352
|
-
import { EventEmitter
|
|
726
|
+
import { EventEmitter } from "node:events";
|
|
1353
727
|
var HIDE = "\x1B[?25l";
|
|
1354
728
|
var SHOW = "\x1B[?25h";
|
|
1355
729
|
var PASTE_ON = "\x1B[?2004h";
|
|
1356
730
|
var PASTE_OFF = "\x1B[?2004l";
|
|
1357
|
-
var
|
|
731
|
+
var RESIZE = "resize";
|
|
1358
732
|
function createTerminalProxy(realOut, realIn) {
|
|
1359
733
|
let zoomed = null;
|
|
1360
734
|
let keyHandler = null;
|
|
@@ -1363,7 +737,7 @@ function createTerminalProxy(realOut, realIn) {
|
|
|
1363
737
|
let announced = false;
|
|
1364
738
|
let cursorHidden = false;
|
|
1365
739
|
let bracketedPaste = false;
|
|
1366
|
-
const resizes = new
|
|
740
|
+
const resizes = new EventEmitter();
|
|
1367
741
|
let subscribed = false;
|
|
1368
742
|
const noteModes = /* @__PURE__ */ __name((chunk) => {
|
|
1369
743
|
if (typeof chunk !== "string") return;
|
|
@@ -1381,9 +755,9 @@ function createTerminalProxy(realOut, realIn) {
|
|
|
1381
755
|
const subscribe = /* @__PURE__ */ __name(() => {
|
|
1382
756
|
if (subscribed) return;
|
|
1383
757
|
subscribed = true;
|
|
1384
|
-
realOut.on(
|
|
758
|
+
realOut.on(RESIZE, () => {
|
|
1385
759
|
if (zoomed) for (const listener of [...realResizes]) listener();
|
|
1386
|
-
else resizes.emit(
|
|
760
|
+
else resizes.emit(RESIZE);
|
|
1387
761
|
});
|
|
1388
762
|
}, "subscribe");
|
|
1389
763
|
const out = new Proxy(realOut, {
|
|
@@ -1406,7 +780,7 @@ function createTerminalProxy(realOut, realIn) {
|
|
|
1406
780
|
}
|
|
1407
781
|
if (prop === "on" || prop === "addListener" || prop === "once" || prop === "off" || prop === "removeListener") {
|
|
1408
782
|
return (event, listener) => {
|
|
1409
|
-
if (event !==
|
|
783
|
+
if (event !== RESIZE) {
|
|
1410
784
|
Reflect.apply(target[prop], target, [event, listener]);
|
|
1411
785
|
return out;
|
|
1412
786
|
}
|
|
@@ -1456,18 +830,18 @@ function createTerminalProxy(realOut, realIn) {
|
|
|
1456
830
|
enterZoomed(output, onKey) {
|
|
1457
831
|
zoomed = output;
|
|
1458
832
|
keyHandler = onKey;
|
|
1459
|
-
resizes.emit(
|
|
833
|
+
resizes.emit(RESIZE);
|
|
1460
834
|
},
|
|
1461
835
|
leaveZoomed() {
|
|
1462
836
|
zoomed = null;
|
|
1463
837
|
keyHandler = null;
|
|
1464
|
-
resizes.emit(
|
|
838
|
+
resizes.emit(RESIZE);
|
|
1465
839
|
},
|
|
1466
840
|
resizeZoomed(columns, rows) {
|
|
1467
841
|
if (!zoomed) return;
|
|
1468
842
|
zoomed.columns = columns;
|
|
1469
843
|
zoomed.rows = rows;
|
|
1470
|
-
resizes.emit(
|
|
844
|
+
resizes.emit(RESIZE);
|
|
1471
845
|
},
|
|
1472
846
|
onRealResize(listener) {
|
|
1473
847
|
realResizes.add(listener);
|
|
@@ -1533,7 +907,7 @@ async function launchTui(ctx, options = {}) {
|
|
|
1533
907
|
current: null
|
|
1534
908
|
};
|
|
1535
909
|
const workspacesEntry = /* @__PURE__ */ __name(() => {
|
|
1536
|
-
workspaces.current ??= import("./entry-
|
|
910
|
+
workspaces.current ??= import("./entry-UEPUPWGI.js").then(
|
|
1537
911
|
(m) => m.createWorkspacesEntry({
|
|
1538
912
|
proxy,
|
|
1539
913
|
realOut: process.stdout,
|
|
@@ -1590,6 +964,8 @@ async function launchTui(ctx, options = {}) {
|
|
|
1590
964
|
}, "subscribePointer")
|
|
1591
965
|
} : {},
|
|
1592
966
|
...ctx.tui?.copyOnSelect !== void 0 ? { copyOnSelect: ctx.tui.copyOnSelect } : {},
|
|
967
|
+
...ctx.tui?.wheelRows !== void 0 ? { wheelRows: ctx.tui.wheelRows } : {},
|
|
968
|
+
...ctx.tui?.wheelAccel !== void 0 ? { wheelAccel: ctx.tui.wheelAccel } : {},
|
|
1593
969
|
subscribeWheel: /* @__PURE__ */ __name((listener) => {
|
|
1594
970
|
wheelListeners.add(listener);
|
|
1595
971
|
return () => {
|
|
@@ -1677,4 +1053,4 @@ __name(launchTui, "launchTui");
|
|
|
1677
1053
|
export {
|
|
1678
1054
|
launchTui
|
|
1679
1055
|
};
|
|
1680
|
-
//# sourceMappingURL=tui-
|
|
1056
|
+
//# sourceMappingURL=tui-MYBPZUMK.js.map
|