@namzu/cli 44.1.1 → 44.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 +34 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/acp-OUBJWH5B.js +7754 -0
- package/dist/chunks/acp-OUBJWH5B.js.map +6 -0
- package/dist/chunks/{activity-command-Y5ZLCQ63.js → activity-command-R7MUSZIY.js} +16 -15
- package/dist/chunks/activity-command-R7MUSZIY.js.map +6 -0
- package/dist/chunks/{add-F7M57FGR.js → add-PSEIDDRW.js} +21 -18
- package/dist/chunks/add-PSEIDDRW.js.map +6 -0
- package/dist/chunks/{agent-AFX2UZU5.js → agent-YPEXUYPH.js} +35 -30
- package/dist/chunks/agent-session-EZB2OYG3.js +65 -0
- package/dist/chunks/{archive-6NM6DYAT.js → archive-ET4PXE34.js} +11 -10
- package/dist/chunks/archive-ET4PXE34.js.map +6 -0
- package/dist/chunks/{bin-main-I6CHRYYQ.js → bin-main-PMB57AZJ.js} +9 -9
- package/dist/chunks/binding-K6RIQ5AP.js +17 -0
- package/dist/chunks/{browser-OPMOTWTV.js → browser-SKTIAVBF.js} +6 -6
- package/dist/chunks/{chat-KGVPXQS6.js → chat-AVIVXXMD.js} +20 -19
- package/dist/chunks/chat-AVIVXXMD.js.map +6 -0
- package/dist/chunks/chunk-26C37THH.js +867 -0
- package/dist/chunks/chunk-26C37THH.js.map +6 -0
- package/dist/chunks/{chunk-CTN4O42X.js → chunk-2EHPXO4E.js} +3 -3
- package/dist/chunks/{chunk-LS75R55C.js → chunk-2NI5NS5S.js} +3 -3
- package/dist/chunks/{chunk-RV5QY3IY.js → chunk-2U5M5IYH.js} +6 -6
- package/dist/chunks/{chunk-PWOG3OMH.js → chunk-2X6JZAKH.js} +9 -9
- package/dist/chunks/{chunk-W5QFVC74.js → chunk-2Y26DLOF.js} +27 -10
- package/dist/chunks/{chunk-W5QFVC74.js.map → chunk-2Y26DLOF.js.map} +1 -1
- package/dist/chunks/{chunk-BR6EWAKQ.js → chunk-3QGJXD7U.js} +5 -5
- package/dist/chunks/{chunk-XFNCCDJK.js → chunk-435DYOG4.js} +2 -2
- package/dist/chunks/{chunk-Y44FAVKA.js → chunk-4OXIJ2EF.js} +3 -3
- package/dist/chunks/{chunk-RSRJQB6Q.js → chunk-6EJFXJDO.js} +204 -68
- package/dist/chunks/chunk-6EJFXJDO.js.map +6 -0
- package/dist/chunks/{chunk-UC3ZACVN.js → chunk-6FWFSPUL.js} +2 -2
- package/dist/chunks/chunk-6HTC5TQ3.js +89 -0
- package/dist/chunks/chunk-6HTC5TQ3.js.map +6 -0
- package/dist/chunks/chunk-6IDFHPY3.js +413 -0
- package/dist/chunks/chunk-6IDFHPY3.js.map +6 -0
- package/dist/chunks/chunk-7FPKSX4M.js +61 -0
- package/dist/chunks/chunk-7FPKSX4M.js.map +6 -0
- package/dist/chunks/{chunk-EFEZWLZC.js → chunk-7QQOUCGI.js} +12 -10
- package/dist/chunks/chunk-7QQOUCGI.js.map +6 -0
- package/dist/chunks/{chunk-KHM2XON5.js → chunk-7TEXDZVO.js} +17 -3
- package/dist/chunks/chunk-7TEXDZVO.js.map +6 -0
- package/dist/chunks/{chunk-WPNT6IGU.js → chunk-A5GTZ7R2.js} +2 -2
- package/dist/chunks/{chunk-BIGRB2H4.js → chunk-ACSG5R5P.js} +3 -3
- package/dist/chunks/{chunk-QV43JSBP.js → chunk-AI6PBE5G.js} +2 -2
- package/dist/chunks/{chunk-HXZ2JXCO.js → chunk-AX5ESG6K.js} +2 -2
- package/dist/chunks/{chunk-DESOZLEL.js → chunk-B3XIVOLM.js} +2 -2
- package/dist/chunks/{chunk-ZXKN4TWP.js → chunk-BGKQCLLH.js} +242 -447
- package/dist/chunks/chunk-BGKQCLLH.js.map +6 -0
- package/dist/chunks/chunk-BT7ZELXJ.js +63 -0
- package/dist/chunks/chunk-BT7ZELXJ.js.map +6 -0
- package/dist/chunks/{chunk-ZUN2WRCB.js → chunk-DECJPLLA.js} +13 -13
- package/dist/chunks/{chunk-GSYPRZZU.js → chunk-DFCJYRT5.js} +2 -2
- package/dist/chunks/{chunk-QNTR7X7D.js → chunk-DQLSLXDF.js} +5 -5
- package/dist/chunks/chunk-EXFSMYH4.js +83 -0
- package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
- package/dist/chunks/{chunk-6Z2ZJ4BA.js → chunk-FHQTXWDA.js} +4 -4
- package/dist/chunks/chunk-G73G2WGR.js +242 -0
- package/dist/chunks/chunk-G73G2WGR.js.map +6 -0
- package/dist/chunks/{chunk-BLM6IQS4.js → chunk-GANFMGV7.js} +5 -5
- package/dist/chunks/{chunk-REDD2WY7.js → chunk-GBS6ATYF.js} +2 -2
- package/dist/chunks/{chunk-ORVWGSLG.js → chunk-GCCFTP47.js} +4 -4
- package/dist/chunks/{chunk-FKIO77IY.js → chunk-GNEDN6MU.js} +12 -12
- package/dist/chunks/{chunk-NS7EU37U.js → chunk-HB5ZN5KQ.js} +2 -2
- package/dist/chunks/{chunk-EFQ6FUFZ.js → chunk-HELINLSD.js} +2 -2
- package/dist/chunks/{chunk-AY7B43MK.js → chunk-HKCIZR5P.js} +13 -13
- package/dist/chunks/chunk-HRJPVPSU.js +164 -0
- package/dist/chunks/chunk-HRJPVPSU.js.map +6 -0
- package/dist/chunks/{chunk-NPZY5OJ5.js → chunk-HTBMDD6Y.js} +8 -8
- package/dist/chunks/{chunk-LN26A356.js → chunk-I5E4MT3C.js} +4 -4
- package/dist/chunks/{chunk-KK2L4FD2.js → chunk-IJZ7SLBV.js} +3 -3
- package/dist/chunks/{chunk-YAEHAYI4.js → chunk-ITA57VY5.js} +7 -5
- package/dist/chunks/chunk-ITA57VY5.js.map +6 -0
- package/dist/chunks/{chunk-W4E2N7TY.js → chunk-IZVN6K6U.js} +4 -4
- package/dist/chunks/{chunk-7U36A4WQ.js → chunk-JL64XHSL.js} +55 -5
- package/dist/chunks/chunk-JL64XHSL.js.map +6 -0
- package/dist/chunks/chunk-KLKAK2O5.js +5817 -0
- package/dist/chunks/chunk-KLKAK2O5.js.map +6 -0
- package/dist/chunks/{chunk-465CVUN4.js → chunk-L2NNJ4XL.js} +3 -3
- package/dist/chunks/{chunk-JCUPTKQY.js → chunk-LF76CVOZ.js} +4 -4
- package/dist/chunks/{chunk-ZATO2QOS.js → chunk-LFPTXRMM.js} +2 -2
- package/dist/chunks/chunk-LG27EJU6.js +189 -0
- package/dist/chunks/chunk-LG27EJU6.js.map +6 -0
- package/dist/chunks/{chunk-UHPRMPWX.js → chunk-LKJBDF7W.js} +15 -3
- package/dist/chunks/chunk-LKJBDF7W.js.map +6 -0
- package/dist/chunks/chunk-LKODRKMZ.js +575 -0
- package/dist/chunks/chunk-LKODRKMZ.js.map +6 -0
- package/dist/chunks/{chunk-WLUGKIYQ.js → chunk-LQRP2VRQ.js} +4 -4
- package/dist/chunks/{chunk-UGAT33T5.js → chunk-LYGD5P7O.js} +3 -3
- package/dist/chunks/{chunk-CRWNJ62V.js → chunk-M2OZ4SVS.js} +3 -3
- package/dist/chunks/{chunk-I32JTWDW.js → chunk-MGZSEPDY.js} +2 -2
- package/dist/chunks/{chunk-HYFX32Y3.js → chunk-MJBGVVI5.js} +3 -3
- package/dist/chunks/{chunk-YPRKTJ5P.js → chunk-MYL75RA4.js} +2 -2
- package/dist/chunks/chunk-PIVHVYCN.js +3925 -0
- package/dist/chunks/chunk-PIVHVYCN.js.map +6 -0
- package/dist/chunks/{chunk-AE4LOPZF.js → chunk-PMX2WTZL.js} +2 -2
- package/dist/chunks/{chunk-FPLDTTM2.js → chunk-QWSZ5P4C.js} +6 -6
- package/dist/chunks/{chunk-T5POXPXY.js → chunk-RSIWTHYS.js} +3 -3
- package/dist/chunks/{chunk-UP3SWACV.js → chunk-S4QOQGAT.js} +2 -2
- package/dist/chunks/chunk-S7WRWA25.js +33 -0
- package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
- package/dist/chunks/{chunk-ZRBGY4SL.js → chunk-SGRO4RJP.js} +2 -2
- package/dist/chunks/{chunk-WKUTR7YW.js → chunk-SJFPZPOJ.js} +80 -17
- package/dist/chunks/chunk-SJFPZPOJ.js.map +6 -0
- package/dist/chunks/{chunk-JAYPFJGZ.js → chunk-TZZOQ62Z.js} +2 -2
- package/dist/chunks/chunk-U4SST7AD.js +219 -0
- package/dist/chunks/chunk-U4SST7AD.js.map +6 -0
- package/dist/chunks/{chunk-CMAZ3DYB.js → chunk-UGDZ7MLG.js} +4 -4
- package/dist/chunks/chunk-VDKDXDOH.js +290 -0
- package/dist/chunks/chunk-VDKDXDOH.js.map +6 -0
- package/dist/chunks/{chunk-2NFPIARP.js → chunk-VFVWHYHT.js} +4 -4
- package/dist/chunks/{chunk-5UB2LLPG.js → chunk-VZ4PKWLF.js} +2 -2
- package/dist/chunks/{chunk-WLAI3VCE.js → chunk-WKFHQQOU.js} +2 -2
- package/dist/chunks/{chunk-JSFF2HGX.js → chunk-WKPRYH24.js} +3 -3
- package/dist/chunks/{chunk-VR4MTSMH.js → chunk-WQFHJ4TO.js} +3 -3
- package/dist/chunks/{chunk-RFMODICJ.js → chunk-WYJ3CNXX.js} +80 -38
- package/dist/chunks/chunk-WYJ3CNXX.js.map +6 -0
- package/dist/chunks/{chunk-ZNYKZ3MI.js → chunk-XPLHAOGE.js} +2 -2
- package/dist/chunks/{chunk-2NGXQQPP.js → chunk-XX2SP5AM.js} +3 -3
- package/dist/chunks/{chunk-T2PF65KB.js → chunk-YDSWGJWF.js} +2 -2
- package/dist/chunks/{chunk-LUSUJZR2.js → chunk-YJ6NWB2B.js} +2 -2
- package/dist/chunks/{chunk-O4MFP726.js → chunk-YTE3QIH3.js} +998 -393
- package/dist/chunks/chunk-YTE3QIH3.js.map +6 -0
- package/dist/chunks/{chunk-JH3SDABI.js → chunk-YUYNIAJX.js} +6 -6
- package/dist/chunks/{chunk-TX2PUHTP.js → chunk-YXIG4OT2.js} +2 -2
- package/dist/chunks/{cli-runtime-HTTDQPEZ.js → cli-runtime-F4MEMBDL.js} +11 -10
- package/dist/chunks/cli-runtime-F4MEMBDL.js.map +6 -0
- package/dist/chunks/{commands-ZD2L5QMI.js → commands-ZCNZVYTG.js} +5 -5
- package/dist/chunks/{crash-report-2IRIZSBD.js → crash-report-K53VF4H5.js} +6 -6
- package/dist/chunks/{dist-GSYFGRQT.js → dist-6IPPA55L.js} +2 -2
- package/dist/chunks/{dist-45IFTDJW.js → dist-H53G25BE.js} +2 -2
- package/dist/chunks/{dist-RQJEJN3Z.js → dist-L5LBM77I.js} +2 -2
- package/dist/chunks/{dist-OJTB6QLR.js → dist-RIH2Q2ER.js} +2 -2
- package/dist/chunks/{dist-OCZJJFHF.js → dist-RTIKLSUV.js} +2 -2
- package/dist/chunks/{dist-TWYNAZDN.js → dist-T6KE7URX.js} +2 -2
- package/dist/chunks/{dist-FNGLTQIG.js → dist-VSJGDIXP.js} +32 -2
- package/dist/chunks/{dist-NL7WG7PX.js → dist-XNGK3C4G.js} +2 -2
- package/dist/chunks/{doctor-NKPCWPB4.js → doctor-DOCGTBME.js} +17 -15
- package/dist/chunks/{drain-YTSVAQP5.js → drain-LT3J2MEA.js} +13 -13
- package/dist/chunks/entry-UHKDLPDS.js +232 -0
- package/dist/chunks/entry-UHKDLPDS.js.map +6 -0
- package/dist/chunks/{eval-ILFXDQUQ.js → eval-DH26W2QK.js} +2 -2
- package/dist/chunks/{exec-3JDAB34N.js → exec-QGAHWUUQ.js} +57 -47
- package/dist/chunks/exec-QGAHWUUQ.js.map +6 -0
- package/dist/chunks/{github-FH7PPWVW.js → github-JTMZJAZL.js} +4 -4
- package/dist/chunks/{home-5OIZIDIT.js → home-GGVNSCCU.js} +3 -3
- package/dist/chunks/host-6CUYPX4T.js +23 -0
- package/dist/chunks/{host-queries-SO2NOQRR.js → host-queries-4EW7M54U.js} +16 -15
- package/dist/chunks/host-queries-4EW7M54U.js.map +6 -0
- package/dist/chunks/{learn-RHNMJ4BD.js → learn-PAO3IOYA.js} +13 -13
- package/dist/chunks/{learn-builtin-UQ3MWGK6.js → learn-builtin-DXZUXOGG.js} +19 -19
- package/dist/chunks/{lifecycle-RTDYXKBW.js → lifecycle-KDN4D7DP.js} +30 -26
- package/dist/chunks/{list-G6OA34RL.js → list-KSP6S57Z.js} +15 -14
- package/dist/chunks/list-KSP6S57Z.js.map +6 -0
- package/dist/chunks/{live-44HBQCQY.js → live-XWJ2JOFO.js} +15 -13
- package/dist/chunks/{login-J4PWR4FM.js → login-3Q2HKQUW.js} +10 -8
- package/dist/chunks/{logs-22QAEH2Q.js → logs-UYB55HOX.js} +4 -4
- package/dist/chunks/{mcp-EXFVIHPJ.js → mcp-JWSI4KA6.js} +25 -22
- package/dist/chunks/mcp-JWSI4KA6.js.map +6 -0
- package/dist/chunks/{message-command-B4L2W4YZ.js → message-command-YP6TGD3K.js} +47 -42
- package/dist/chunks/message-command-YP6TGD3K.js.map +6 -0
- package/dist/chunks/open-QUDHJK5H.js +19 -0
- package/dist/chunks/{operator-tools-TEP4UTI6.js → operator-tools-43NL7HKO.js} +15 -14
- package/dist/chunks/operator-tools-43NL7HKO.js.map +6 -0
- package/dist/chunks/{output-schema-FZXJ7V33.js → output-schema-TLW5FA37.js} +3 -3
- package/dist/chunks/{pal-BUDEBIBJ.js → pal-EZE2KLYZ.js} +16 -14
- package/dist/chunks/pal-EZE2KLYZ.js.map +6 -0
- package/dist/chunks/palette-WDPS7W6Q.js +15 -0
- package/dist/chunks/peers-OBENILN2.js +18 -0
- package/dist/chunks/prefix-MLAG4KTK.js +14 -0
- package/dist/chunks/{providers-EQ32NZAT.js → providers-PJIHLTXP.js} +22 -18
- package/dist/chunks/pty-HDEXCPR6.js +29 -0
- package/dist/chunks/{resident-FSUGNG56.js → resident-2GHB3BKR.js} +32 -30
- package/dist/chunks/resident-2GHB3BKR.js.map +6 -0
- package/dist/chunks/resume-FHPY2RU3.js +24 -0
- package/dist/chunks/resume-FHPY2RU3.js.map +6 -0
- package/dist/chunks/{resume-command-DHPXCZVL.js → resume-command-VB6VA64L.js} +4 -4
- package/dist/chunks/resume-command-VB6VA64L.js.map +6 -0
- package/dist/chunks/{schedule-OJMZEWJG.js → schedule-42N4JOQJ.js} +8 -8
- package/dist/chunks/{service-EP2QHCK7.js → service-6WGZKKI4.js} +33 -29
- package/dist/chunks/service-6WGZKKI4.js.map +6 -0
- package/dist/chunks/{session-step-44XBOUDV.js → session-step-SBWIM4MZ.js} +15 -15
- package/dist/chunks/session-step-SBWIM4MZ.js.map +6 -0
- package/dist/chunks/{skills-YHAQXVP2.js → skills-V3VDOL3D.js} +11 -11
- package/dist/chunks/spaces-6II4JYTZ.js +231 -0
- package/dist/chunks/spaces-6II4JYTZ.js.map +6 -0
- package/dist/chunks/{start-check-KVZFDBD3.js → start-check-MRSPS5JT.js} +2 -2
- package/dist/chunks/start-check-MRSPS5JT.js.map +6 -0
- package/dist/chunks/{state-NXFKMBOX.js → state-HX3XRNPC.js} +2 -2
- package/dist/chunks/store-7P462EUD.js +17 -0
- package/dist/chunks/store-7P462EUD.js.map +6 -0
- package/dist/chunks/{store-KFJWAELA.js → store-FUQE7EWU.js} +13 -10
- package/dist/chunks/store-FUQE7EWU.js.map +6 -0
- package/dist/chunks/{store-QNY242NN.js → store-IX6KNJA4.js} +6 -6
- package/dist/chunks/store-IX6KNJA4.js.map +6 -0
- package/dist/chunks/{store-JLTSSGKL.js → store-MQXI7G2H.js} +4 -4
- package/dist/chunks/store-MQXI7G2H.js.map +6 -0
- package/dist/chunks/{tui-L5GKR237.js → tui-PH5B6UCO.js} +1822 -816
- package/dist/chunks/tui-PH5B6UCO.js.map +6 -0
- package/dist/chunks/{upgrade-PROVWX55.js → upgrade-HDW5MWLE.js} +6 -6
- package/dist/chunks/{worktree-ELHDXX4X.js → worktree-MLFYZF56.js} +13 -12
- package/dist/chunks/worktree-MLFYZF56.js.map +6 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/manifest.d.ts +1 -0
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/spaces.d.ts +42 -0
- package/dist/commands/spaces.d.ts.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +7 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/doctor/checks/index.d.ts +2 -1
- package/dist/doctor/checks/index.d.ts.map +1 -1
- package/dist/doctor/checks/terminal.d.ts +12 -0
- package/dist/doctor/checks/terminal.d.ts.map +1 -0
- package/dist/index.js +22 -19
- package/dist/integrations/accounts/activity.d.ts +39 -0
- package/dist/integrations/accounts/activity.d.ts.map +1 -0
- package/dist/integrations/accounts/binding.d.ts +30 -0
- package/dist/integrations/accounts/binding.d.ts.map +1 -0
- package/dist/integrations/accounts/codex-login.d.ts +33 -0
- package/dist/integrations/accounts/codex-login.d.ts.map +1 -0
- package/dist/integrations/accounts/host-facts.d.ts +22 -0
- package/dist/integrations/accounts/host-facts.d.ts.map +1 -0
- package/dist/integrations/accounts/open.d.ts +23 -0
- package/dist/integrations/accounts/open.d.ts.map +1 -0
- package/dist/integrations/accounts/rows.d.ts +45 -0
- package/dist/integrations/accounts/rows.d.ts.map +1 -0
- package/dist/integrations/peers/runtime.d.ts +12 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -1
- package/dist/integrations/providers/codex-account.d.ts +30 -0
- package/dist/integrations/providers/codex-account.d.ts.map +1 -0
- package/dist/integrations/providers/codex-oauth.d.ts +12 -0
- package/dist/integrations/providers/codex-oauth.d.ts.map +1 -1
- package/dist/integrations/providers/preferences.d.ts +8 -0
- package/dist/integrations/providers/preferences.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +24 -23
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/sessions/store.d.ts +13 -1
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/spaces/git.d.ts +27 -0
- package/dist/spaces/git.d.ts.map +1 -0
- package/dist/spaces/goto.d.ts +31 -0
- package/dist/spaces/goto.d.ts.map +1 -0
- package/dist/spaces/host.d.ts +380 -0
- package/dist/spaces/host.d.ts.map +1 -0
- package/dist/spaces/input.d.ts +87 -0
- package/dist/spaces/input.d.ts.map +1 -0
- package/dist/spaces/keymap.d.ts +30 -0
- package/dist/spaces/keymap.d.ts.map +1 -0
- package/dist/spaces/layout.d.ts +34 -0
- package/dist/spaces/layout.d.ts.map +1 -0
- package/dist/spaces/overlay.d.ts +105 -0
- package/dist/spaces/overlay.d.ts.map +1 -0
- package/dist/spaces/palette.d.ts +35 -0
- package/dist/spaces/palette.d.ts.map +1 -0
- package/dist/spaces/peers.d.ts +19 -0
- package/dist/spaces/peers.d.ts.map +1 -0
- package/dist/spaces/prefix.d.ts +19 -0
- package/dist/spaces/prefix.d.ts.map +1 -0
- package/dist/spaces/roster.d.ts +111 -0
- package/dist/spaces/roster.d.ts.map +1 -0
- package/dist/spaces/session.d.ts +83 -0
- package/dist/spaces/session.d.ts.map +1 -0
- package/dist/spaces/sidebar.d.ts +99 -0
- package/dist/spaces/sidebar.d.ts.map +1 -0
- package/dist/spaces/signal.d.ts +28 -0
- package/dist/spaces/signal.d.ts.map +1 -0
- package/dist/spaces/status.d.ts +20 -0
- package/dist/spaces/status.d.ts.map +1 -0
- package/dist/spaces/store.d.ts +69 -0
- package/dist/spaces/store.d.ts.map +1 -0
- package/dist/spaces/tabbar.d.ts +36 -0
- package/dist/spaces/tabbar.d.ts.map +1 -0
- package/dist/spaces/tiling.d.ts +90 -0
- package/dist/spaces/tiling.d.ts.map +1 -0
- package/dist/terminal/host/cell.d.ts +35 -0
- package/dist/terminal/host/cell.d.ts.map +1 -0
- package/dist/terminal/host/frame.d.ts +64 -0
- package/dist/terminal/host/frame.d.ts.map +1 -0
- package/dist/terminal/host/index.d.ts +5 -0
- package/dist/terminal/host/index.d.ts.map +1 -0
- package/dist/terminal/host/writer.d.ts +21 -0
- package/dist/terminal/host/writer.d.ts.map +1 -0
- package/dist/terminal/host/xterm-source.d.ts +18 -0
- package/dist/terminal/host/xterm-source.d.ts.map +1 -0
- package/dist/terminal/pty.d.ts.map +1 -1
- package/dist/terminal/screen.d.ts +12 -0
- package/dist/terminal/screen.d.ts.map +1 -1
- package/dist/tui/App.d.ts +106 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +7 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/TextPrompt.d.ts +5 -1
- package/dist/tui/TextPrompt.d.ts.map +1 -1
- package/dist/tui/account-flow.d.ts +126 -0
- package/dist/tui/account-flow.d.ts.map +1 -0
- package/dist/tui/agent.d.ts +17 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/compaction-rows.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +14 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/launch-settings.d.ts +5 -2
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/plain-interruption.d.ts +3 -1
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/resume-picker-state.d.ts +7 -0
- package/dist/tui/resume-picker-state.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +11 -0
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +3 -1
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +2 -0
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/zoom/entry.d.ts +34 -0
- package/dist/tui/zoom/entry.d.ts.map +1 -0
- package/dist/tui/zoom/gesture.d.ts +51 -0
- package/dist/tui/zoom/gesture.d.ts.map +1 -0
- package/dist/tui/zoom/leave.d.ts +11 -0
- package/dist/tui/zoom/leave.d.ts.map +1 -0
- package/dist/tui/zoom/local.d.ts +55 -0
- package/dist/tui/zoom/local.d.ts.map +1 -0
- package/dist/tui/zoom/proxy.d.ts +40 -0
- package/dist/tui/zoom/proxy.d.ts.map +1 -0
- package/package.json +9 -8
- package/dist/chunks/acp-P3S54TTC.js +0 -13601
- package/dist/chunks/acp-P3S54TTC.js.map +0 -6
- package/dist/chunks/activity-command-Y5ZLCQ63.js.map +0 -6
- package/dist/chunks/add-F7M57FGR.js.map +0 -6
- package/dist/chunks/agent-session-CFWQHSYT.js +0 -60
- package/dist/chunks/archive-6NM6DYAT.js.map +0 -6
- package/dist/chunks/chat-KGVPXQS6.js.map +0 -6
- package/dist/chunks/chunk-43PPWWYD.js +0 -1415
- package/dist/chunks/chunk-43PPWWYD.js.map +0 -6
- package/dist/chunks/chunk-7U36A4WQ.js.map +0 -6
- package/dist/chunks/chunk-EFEZWLZC.js.map +0 -6
- package/dist/chunks/chunk-KHM2XON5.js.map +0 -6
- package/dist/chunks/chunk-O4MFP726.js.map +0 -6
- package/dist/chunks/chunk-RFMODICJ.js.map +0 -6
- package/dist/chunks/chunk-RSRJQB6Q.js.map +0 -6
- package/dist/chunks/chunk-UHPRMPWX.js.map +0 -6
- package/dist/chunks/chunk-WKUTR7YW.js.map +0 -6
- package/dist/chunks/chunk-YAEHAYI4.js.map +0 -6
- package/dist/chunks/chunk-ZXKN4TWP.js.map +0 -6
- package/dist/chunks/cli-runtime-HTTDQPEZ.js.map +0 -6
- package/dist/chunks/exec-3JDAB34N.js.map +0 -6
- package/dist/chunks/host-queries-SO2NOQRR.js.map +0 -6
- package/dist/chunks/list-G6OA34RL.js.map +0 -6
- package/dist/chunks/mcp-EXFVIHPJ.js.map +0 -6
- package/dist/chunks/message-command-B4L2W4YZ.js.map +0 -6
- package/dist/chunks/operator-tools-TEP4UTI6.js.map +0 -6
- package/dist/chunks/pal-BUDEBIBJ.js.map +0 -6
- package/dist/chunks/resident-FSUGNG56.js.map +0 -6
- package/dist/chunks/resume-VXHGE5GC.js +0 -23
- package/dist/chunks/service-EP2QHCK7.js.map +0 -6
- package/dist/chunks/tui-L5GKR237.js.map +0 -6
- package/dist/chunks/worktree-ELHDXX4X.js.map +0 -6
- /package/dist/chunks/{agent-AFX2UZU5.js.map → agent-YPEXUYPH.js.map} +0 -0
- /package/dist/chunks/{agent-session-CFWQHSYT.js.map → agent-session-EZB2OYG3.js.map} +0 -0
- /package/dist/chunks/{bin-main-I6CHRYYQ.js.map → bin-main-PMB57AZJ.js.map} +0 -0
- /package/dist/chunks/{commands-ZD2L5QMI.js.map → binding-K6RIQ5AP.js.map} +0 -0
- /package/dist/chunks/{browser-OPMOTWTV.js.map → browser-SKTIAVBF.js.map} +0 -0
- /package/dist/chunks/{chunk-CTN4O42X.js.map → chunk-2EHPXO4E.js.map} +0 -0
- /package/dist/chunks/{chunk-LS75R55C.js.map → chunk-2NI5NS5S.js.map} +0 -0
- /package/dist/chunks/{chunk-RV5QY3IY.js.map → chunk-2U5M5IYH.js.map} +0 -0
- /package/dist/chunks/{chunk-PWOG3OMH.js.map → chunk-2X6JZAKH.js.map} +0 -0
- /package/dist/chunks/{chunk-BR6EWAKQ.js.map → chunk-3QGJXD7U.js.map} +0 -0
- /package/dist/chunks/{chunk-XFNCCDJK.js.map → chunk-435DYOG4.js.map} +0 -0
- /package/dist/chunks/{chunk-Y44FAVKA.js.map → chunk-4OXIJ2EF.js.map} +0 -0
- /package/dist/chunks/{chunk-UC3ZACVN.js.map → chunk-6FWFSPUL.js.map} +0 -0
- /package/dist/chunks/{chunk-WPNT6IGU.js.map → chunk-A5GTZ7R2.js.map} +0 -0
- /package/dist/chunks/{chunk-BIGRB2H4.js.map → chunk-ACSG5R5P.js.map} +0 -0
- /package/dist/chunks/{chunk-QV43JSBP.js.map → chunk-AI6PBE5G.js.map} +0 -0
- /package/dist/chunks/{chunk-HXZ2JXCO.js.map → chunk-AX5ESG6K.js.map} +0 -0
- /package/dist/chunks/{chunk-DESOZLEL.js.map → chunk-B3XIVOLM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZUN2WRCB.js.map → chunk-DECJPLLA.js.map} +0 -0
- /package/dist/chunks/{chunk-GSYPRZZU.js.map → chunk-DFCJYRT5.js.map} +0 -0
- /package/dist/chunks/{chunk-QNTR7X7D.js.map → chunk-DQLSLXDF.js.map} +0 -0
- /package/dist/chunks/{chunk-6Z2ZJ4BA.js.map → chunk-FHQTXWDA.js.map} +0 -0
- /package/dist/chunks/{chunk-BLM6IQS4.js.map → chunk-GANFMGV7.js.map} +0 -0
- /package/dist/chunks/{chunk-REDD2WY7.js.map → chunk-GBS6ATYF.js.map} +0 -0
- /package/dist/chunks/{chunk-ORVWGSLG.js.map → chunk-GCCFTP47.js.map} +0 -0
- /package/dist/chunks/{chunk-FKIO77IY.js.map → chunk-GNEDN6MU.js.map} +0 -0
- /package/dist/chunks/{chunk-NS7EU37U.js.map → chunk-HB5ZN5KQ.js.map} +0 -0
- /package/dist/chunks/{chunk-EFQ6FUFZ.js.map → chunk-HELINLSD.js.map} +0 -0
- /package/dist/chunks/{chunk-AY7B43MK.js.map → chunk-HKCIZR5P.js.map} +0 -0
- /package/dist/chunks/{chunk-NPZY5OJ5.js.map → chunk-HTBMDD6Y.js.map} +0 -0
- /package/dist/chunks/{chunk-LN26A356.js.map → chunk-I5E4MT3C.js.map} +0 -0
- /package/dist/chunks/{chunk-KK2L4FD2.js.map → chunk-IJZ7SLBV.js.map} +0 -0
- /package/dist/chunks/{chunk-W4E2N7TY.js.map → chunk-IZVN6K6U.js.map} +0 -0
- /package/dist/chunks/{chunk-465CVUN4.js.map → chunk-L2NNJ4XL.js.map} +0 -0
- /package/dist/chunks/{chunk-JCUPTKQY.js.map → chunk-LF76CVOZ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZATO2QOS.js.map → chunk-LFPTXRMM.js.map} +0 -0
- /package/dist/chunks/{chunk-WLUGKIYQ.js.map → chunk-LQRP2VRQ.js.map} +0 -0
- /package/dist/chunks/{chunk-UGAT33T5.js.map → chunk-LYGD5P7O.js.map} +0 -0
- /package/dist/chunks/{chunk-CRWNJ62V.js.map → chunk-M2OZ4SVS.js.map} +0 -0
- /package/dist/chunks/{chunk-I32JTWDW.js.map → chunk-MGZSEPDY.js.map} +0 -0
- /package/dist/chunks/{chunk-HYFX32Y3.js.map → chunk-MJBGVVI5.js.map} +0 -0
- /package/dist/chunks/{chunk-YPRKTJ5P.js.map → chunk-MYL75RA4.js.map} +0 -0
- /package/dist/chunks/{chunk-AE4LOPZF.js.map → chunk-PMX2WTZL.js.map} +0 -0
- /package/dist/chunks/{chunk-FPLDTTM2.js.map → chunk-QWSZ5P4C.js.map} +0 -0
- /package/dist/chunks/{chunk-T5POXPXY.js.map → chunk-RSIWTHYS.js.map} +0 -0
- /package/dist/chunks/{chunk-UP3SWACV.js.map → chunk-S4QOQGAT.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRBGY4SL.js.map → chunk-SGRO4RJP.js.map} +0 -0
- /package/dist/chunks/{chunk-JAYPFJGZ.js.map → chunk-TZZOQ62Z.js.map} +0 -0
- /package/dist/chunks/{chunk-CMAZ3DYB.js.map → chunk-UGDZ7MLG.js.map} +0 -0
- /package/dist/chunks/{chunk-2NFPIARP.js.map → chunk-VFVWHYHT.js.map} +0 -0
- /package/dist/chunks/{chunk-5UB2LLPG.js.map → chunk-VZ4PKWLF.js.map} +0 -0
- /package/dist/chunks/{chunk-WLAI3VCE.js.map → chunk-WKFHQQOU.js.map} +0 -0
- /package/dist/chunks/{chunk-JSFF2HGX.js.map → chunk-WKPRYH24.js.map} +0 -0
- /package/dist/chunks/{chunk-VR4MTSMH.js.map → chunk-WQFHJ4TO.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNYKZ3MI.js.map → chunk-XPLHAOGE.js.map} +0 -0
- /package/dist/chunks/{chunk-2NGXQQPP.js.map → chunk-XX2SP5AM.js.map} +0 -0
- /package/dist/chunks/{chunk-T2PF65KB.js.map → chunk-YDSWGJWF.js.map} +0 -0
- /package/dist/chunks/{chunk-LUSUJZR2.js.map → chunk-YJ6NWB2B.js.map} +0 -0
- /package/dist/chunks/{chunk-JH3SDABI.js.map → chunk-YUYNIAJX.js.map} +0 -0
- /package/dist/chunks/{chunk-TX2PUHTP.js.map → chunk-YXIG4OT2.js.map} +0 -0
- /package/dist/chunks/{crash-report-2IRIZSBD.js.map → commands-ZCNZVYTG.js.map} +0 -0
- /package/dist/chunks/{dist-FNGLTQIG.js.map → crash-report-K53VF4H5.js.map} +0 -0
- /package/dist/chunks/{dist-GSYFGRQT.js.map → dist-6IPPA55L.js.map} +0 -0
- /package/dist/chunks/{dist-45IFTDJW.js.map → dist-H53G25BE.js.map} +0 -0
- /package/dist/chunks/{dist-RQJEJN3Z.js.map → dist-L5LBM77I.js.map} +0 -0
- /package/dist/chunks/{dist-OJTB6QLR.js.map → dist-RIH2Q2ER.js.map} +0 -0
- /package/dist/chunks/{dist-OCZJJFHF.js.map → dist-RTIKLSUV.js.map} +0 -0
- /package/dist/chunks/{dist-TWYNAZDN.js.map → dist-T6KE7URX.js.map} +0 -0
- /package/dist/chunks/{doctor-NKPCWPB4.js.map → dist-VSJGDIXP.js.map} +0 -0
- /package/dist/chunks/{dist-NL7WG7PX.js.map → dist-XNGK3C4G.js.map} +0 -0
- /package/dist/chunks/{home-5OIZIDIT.js.map → doctor-DOCGTBME.js.map} +0 -0
- /package/dist/chunks/{drain-YTSVAQP5.js.map → drain-LT3J2MEA.js.map} +0 -0
- /package/dist/chunks/{eval-ILFXDQUQ.js.map → eval-DH26W2QK.js.map} +0 -0
- /package/dist/chunks/{github-FH7PPWVW.js.map → github-JTMZJAZL.js.map} +0 -0
- /package/dist/chunks/{lifecycle-RTDYXKBW.js.map → home-GGVNSCCU.js.map} +0 -0
- /package/dist/chunks/{live-44HBQCQY.js.map → host-6CUYPX4T.js.map} +0 -0
- /package/dist/chunks/{learn-RHNMJ4BD.js.map → learn-PAO3IOYA.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-UQ3MWGK6.js.map → learn-builtin-DXZUXOGG.js.map} +0 -0
- /package/dist/chunks/{login-J4PWR4FM.js.map → lifecycle-KDN4D7DP.js.map} +0 -0
- /package/dist/chunks/{output-schema-FZXJ7V33.js.map → live-XWJ2JOFO.js.map} +0 -0
- /package/dist/chunks/{providers-EQ32NZAT.js.map → login-3Q2HKQUW.js.map} +0 -0
- /package/dist/chunks/{logs-22QAEH2Q.js.map → logs-UYB55HOX.js.map} +0 -0
- /package/dist/chunks/{resume-VXHGE5GC.js.map → open-QUDHJK5H.js.map} +0 -0
- /package/dist/chunks/{resume-command-DHPXCZVL.js.map → output-schema-TLW5FA37.js.map} +0 -0
- /package/dist/chunks/{session-step-44XBOUDV.js.map → palette-WDPS7W6Q.js.map} +0 -0
- /package/dist/chunks/{start-check-KVZFDBD3.js.map → peers-OBENILN2.js.map} +0 -0
- /package/dist/chunks/{store-JLTSSGKL.js.map → prefix-MLAG4KTK.js.map} +0 -0
- /package/dist/chunks/{store-KFJWAELA.js.map → providers-PJIHLTXP.js.map} +0 -0
- /package/dist/chunks/{store-QNY242NN.js.map → pty-HDEXCPR6.js.map} +0 -0
- /package/dist/chunks/{schedule-OJMZEWJG.js.map → schedule-42N4JOQJ.js.map} +0 -0
- /package/dist/chunks/{skills-YHAQXVP2.js.map → skills-V3VDOL3D.js.map} +0 -0
- /package/dist/chunks/{state-NXFKMBOX.js.map → state-HX3XRNPC.js.map} +0 -0
- /package/dist/chunks/{upgrade-PROVWX55.js.map → upgrade-HDW5MWLE.js.map} +0 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import type { HostPtyModule } from '../terminal/pty.js';
|
|
2
|
+
import { type GitLookup } from './git.js';
|
|
3
|
+
import { type PeerSource } from './peers.js';
|
|
4
|
+
import type { Prefix } from './prefix.js';
|
|
5
|
+
import { Roster } from './roster.js';
|
|
6
|
+
import { ChildSession, type LocalPaneSession, type SessionSpec } from './session.js';
|
|
7
|
+
import type { SavedLayout, SpacesStore } from './store.js';
|
|
8
|
+
export interface HostInput {
|
|
9
|
+
on(event: 'data', listener: (chunk: string | Buffer) => void): unknown;
|
|
10
|
+
off(event: 'data', listener: (chunk: string | Buffer) => void): unknown;
|
|
11
|
+
setEncoding?(encoding: BufferEncoding): unknown;
|
|
12
|
+
setRawMode?(raw: boolean): unknown;
|
|
13
|
+
resume?(): unknown;
|
|
14
|
+
pause?(): unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface HostOutput {
|
|
17
|
+
write(data: string): unknown;
|
|
18
|
+
readonly columns: number;
|
|
19
|
+
readonly rows: number;
|
|
20
|
+
on(event: 'resize', listener: () => void): unknown;
|
|
21
|
+
off(event: 'resize', listener: () => void): unknown;
|
|
22
|
+
}
|
|
23
|
+
/** Runs `run` after `ms`; the returned function cancels it. Injected so tests own the clock. */
|
|
24
|
+
export type Schedule = (run: () => void, ms: number) => () => void;
|
|
25
|
+
export declare const realSchedule: Schedule;
|
|
26
|
+
/** What the host asks of the program that starts a session. */
|
|
27
|
+
export interface SessionRequest {
|
|
28
|
+
readonly cwd: string;
|
|
29
|
+
/** Identifies the session to the feed; the program reports it back in its live record. */
|
|
30
|
+
readonly slot: string;
|
|
31
|
+
/** True for the session the command itself started, which alone receives the command's own options. */
|
|
32
|
+
readonly first: boolean;
|
|
33
|
+
/** The account id picked for this session when it started. */
|
|
34
|
+
readonly account?: string;
|
|
35
|
+
/** The label of the account the session was last reported on; a resumed one needs its home. */
|
|
36
|
+
readonly accountLabel?: string;
|
|
37
|
+
/** The conversation to open again, for a session restored from a previous run. */
|
|
38
|
+
readonly resume?: string;
|
|
39
|
+
}
|
|
40
|
+
/** An account a new session can start on. */
|
|
41
|
+
export interface HostAccount {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly label: string;
|
|
44
|
+
readonly provider: string;
|
|
45
|
+
/** The private Codex home of a Codex account; the session's environment points at it. */
|
|
46
|
+
readonly codexHome?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Which conversation, in which folder, a restored session wants to open. */
|
|
49
|
+
export interface ConversationQuery {
|
|
50
|
+
readonly cwd: string;
|
|
51
|
+
readonly conversationId: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The conversation this process is already running, when the host lives inside
|
|
55
|
+
* it. It becomes a pane like the others, never started or hung up by the host.
|
|
56
|
+
*/
|
|
57
|
+
export interface LocalPane {
|
|
58
|
+
readonly session: LocalPaneSession;
|
|
59
|
+
/** The id of the conversation it is in, once it has one; a pane that carries it is this session. */
|
|
60
|
+
readonly conversationId: () => string | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface SpacesHostOptions {
|
|
63
|
+
readonly input: HostInput;
|
|
64
|
+
readonly output: HostOutput;
|
|
65
|
+
readonly binding: HostPtyModule;
|
|
66
|
+
/** The program for a session. */
|
|
67
|
+
readonly spec: (request: SessionRequest) => SessionSpec;
|
|
68
|
+
/** The space the host opens with, and starts a session in. */
|
|
69
|
+
readonly folder: {
|
|
70
|
+
readonly cwd: string;
|
|
71
|
+
readonly name: string;
|
|
72
|
+
};
|
|
73
|
+
/** Spaces and sessions shown but not started until opened. */
|
|
74
|
+
readonly listed?: readonly {
|
|
75
|
+
cwd: string;
|
|
76
|
+
name: string;
|
|
77
|
+
sessions: number;
|
|
78
|
+
}[];
|
|
79
|
+
readonly prefix: Prefix;
|
|
80
|
+
/** The accounts a new session can start on; none means every session starts on the usual sign-in. */
|
|
81
|
+
readonly accounts?: () => readonly HostAccount[];
|
|
82
|
+
/** Where the layout is remembered between runs. */
|
|
83
|
+
readonly store?: SpacesStore;
|
|
84
|
+
/** The layout of the previous run, shown at start with its sessions not yet started. */
|
|
85
|
+
readonly restored?: SavedLayout;
|
|
86
|
+
/** True when the command carries its own options, which then start a fresh session instead of restoring focus. */
|
|
87
|
+
readonly freshFirst?: boolean;
|
|
88
|
+
/** Whether a conversation is already open in another terminal; asked before a restored session starts. */
|
|
89
|
+
readonly inUseElsewhere?: (query: ConversationQuery) => Promise<boolean>;
|
|
90
|
+
/** Whether to draw in true colour; by default what the terminal advertises through COLORTERM. */
|
|
91
|
+
readonly truecolor?: boolean;
|
|
92
|
+
readonly schedule?: Schedule;
|
|
93
|
+
/** Reads a folder's branch for the sidebar; asked after the first frame, never while one is drawn. */
|
|
94
|
+
readonly git?: GitLookup;
|
|
95
|
+
/** The clock, for the double-click that resets the sidebar's width. */
|
|
96
|
+
readonly now?: () => number;
|
|
97
|
+
/** How a session's whole process tree is ended; the default signals its process group. */
|
|
98
|
+
readonly kill?: ConstructorParameters<typeof ChildSession>[4];
|
|
99
|
+
/** Where the sessions' states come from; without it every started session shows as starting. */
|
|
100
|
+
readonly peers?: PeerSource;
|
|
101
|
+
/** The session the host runs inside of; the host then starts hidden, until `openSpaces`. */
|
|
102
|
+
readonly local?: LocalPane;
|
|
103
|
+
readonly newSlot?: () => string;
|
|
104
|
+
readonly isDirectory?: (path: string) => boolean;
|
|
105
|
+
readonly homeDirectory?: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The spaces shell: a sidebar of spaces and sessions, and beside it the shown
|
|
109
|
+
* space's tab, a tiling of panes, each a session.
|
|
110
|
+
*
|
|
111
|
+
* It draws and routes keys and nothing else. Each session is a whole `namzu`
|
|
112
|
+
* running in its own pseudo-terminal, so a session that crashes greys its row and
|
|
113
|
+
* the rest keep running. What a session is doing comes from the live record its
|
|
114
|
+
* terminal publishes, never from reading its screen.
|
|
115
|
+
*/
|
|
116
|
+
export declare class SpacesHost {
|
|
117
|
+
private readonly options;
|
|
118
|
+
readonly roster: Roster;
|
|
119
|
+
private sidebar;
|
|
120
|
+
private split;
|
|
121
|
+
private order;
|
|
122
|
+
private menu;
|
|
123
|
+
private sidebarScroll;
|
|
124
|
+
private sidebarDrag;
|
|
125
|
+
private lastEdgePress;
|
|
126
|
+
private readonly git;
|
|
127
|
+
private gitStarted;
|
|
128
|
+
private cancelGit;
|
|
129
|
+
private confirm;
|
|
130
|
+
private prompt;
|
|
131
|
+
private picker;
|
|
132
|
+
private help;
|
|
133
|
+
private goto;
|
|
134
|
+
private accountList;
|
|
135
|
+
private context;
|
|
136
|
+
/** A space being dragged in the sidebar, and the place it would land. */
|
|
137
|
+
private reorder;
|
|
138
|
+
private cancelSave;
|
|
139
|
+
private forgetAll;
|
|
140
|
+
private notice;
|
|
141
|
+
private pasteOn;
|
|
142
|
+
private pending;
|
|
143
|
+
private rendering;
|
|
144
|
+
private closed;
|
|
145
|
+
/** True while the real terminal belongs to the local session and nothing of the host is drawn. */
|
|
146
|
+
private hidden;
|
|
147
|
+
/** `split` is the spaces screen; `full` draws the selected child alone on the whole terminal. */
|
|
148
|
+
private view;
|
|
149
|
+
private localEntry;
|
|
150
|
+
private quitting;
|
|
151
|
+
/** Answers the running conversation's wish to end while other sessions are mid-turn. */
|
|
152
|
+
private exitGate;
|
|
153
|
+
private paintFailures;
|
|
154
|
+
private cancelKill;
|
|
155
|
+
private cancelPoll;
|
|
156
|
+
private cancelReconcile;
|
|
157
|
+
private stopWatching;
|
|
158
|
+
private reconciling;
|
|
159
|
+
private readonly leaving;
|
|
160
|
+
private readonly palette;
|
|
161
|
+
/** A border being dragged: the split it moves and where on the border it was grabbed. */
|
|
162
|
+
private drag;
|
|
163
|
+
private readonly router;
|
|
164
|
+
private readonly writer;
|
|
165
|
+
private readonly schedule;
|
|
166
|
+
private finish;
|
|
167
|
+
/** Resolves with the exit code once the host has left the terminal alone. */
|
|
168
|
+
readonly done: Promise<number>;
|
|
169
|
+
private readonly onData;
|
|
170
|
+
private readonly onResize;
|
|
171
|
+
/** If the process ends without a clean close, still hand the terminal back and stop the sessions. */
|
|
172
|
+
private readonly onProcessExit;
|
|
173
|
+
constructor(options: SpacesHostOptions);
|
|
174
|
+
start(): void;
|
|
175
|
+
/**
|
|
176
|
+
* Brings back the saved spaces and makes the running conversation one of the
|
|
177
|
+
* panes: the one that carries its conversation id, or else a new tab in the
|
|
178
|
+
* space of its folder. Nothing else is started here.
|
|
179
|
+
*/
|
|
180
|
+
private seedLocal;
|
|
181
|
+
/** True while the spaces screen is on the terminal. */
|
|
182
|
+
get visible(): boolean;
|
|
183
|
+
/** Puts the spaces screen up, with the running conversation selected and the keyboard on the sidebar. */
|
|
184
|
+
openSpaces(): void;
|
|
185
|
+
/** Hands the terminal to the running conversation: leaves the alternate screen and lets it repaint. */
|
|
186
|
+
private openNative;
|
|
187
|
+
/**
|
|
188
|
+
* The conversation is about to unmount: gives the main screen back and has the conversation print
|
|
189
|
+
* its whole history there, so Ink's last frame lands on a screen that is already right. True when
|
|
190
|
+
* the spaces screen was up and has been left.
|
|
191
|
+
*/
|
|
192
|
+
releaseTerminal(): boolean;
|
|
193
|
+
/** Moves the keyboard from a pane to the sidebar of the spaces screen. */
|
|
194
|
+
focusSidebar(): void;
|
|
195
|
+
/** What a hosted session asked of the host through its terminal. */
|
|
196
|
+
private childSignal;
|
|
197
|
+
/** The first run: the current folder as a space with the session the command started. */
|
|
198
|
+
private fresh;
|
|
199
|
+
/**
|
|
200
|
+
* Brings back the previous run's spaces, tabs and panes, none of them started.
|
|
201
|
+
* The one shown is where focus was, unless the command carries its own options
|
|
202
|
+
* or its folder is new, which start a fresh session of their own.
|
|
203
|
+
*/
|
|
204
|
+
private restore;
|
|
205
|
+
private restoreSpaces;
|
|
206
|
+
private restoreTab;
|
|
207
|
+
private addEntry;
|
|
208
|
+
/** A session in a tab of its own, after the space's other tabs. */
|
|
209
|
+
private newTabIn;
|
|
210
|
+
private layout;
|
|
211
|
+
/** The sidebar's view of the host: what it needs to draw and to find what a click lands on. */
|
|
212
|
+
private sidebarModel;
|
|
213
|
+
/** Where the shown tab's panes are. */
|
|
214
|
+
private placement;
|
|
215
|
+
/** What a session's terminal is given: its pane's inside, or the whole pane area for one that is not shown. */
|
|
216
|
+
private paneSize;
|
|
217
|
+
/** Gives each pane's terminal the size of its pane. */
|
|
218
|
+
private fit;
|
|
219
|
+
/** Starts the entry's terminal if it has none yet. */
|
|
220
|
+
private ensureStarted;
|
|
221
|
+
private spawn;
|
|
222
|
+
/** Shows a session and starts the panes of its tab that have not been opened before. */
|
|
223
|
+
private open;
|
|
224
|
+
/** Shows a session without starting it. */
|
|
225
|
+
private show;
|
|
226
|
+
private childChanged;
|
|
227
|
+
private everyChild;
|
|
228
|
+
private relayout;
|
|
229
|
+
private armPoll;
|
|
230
|
+
private armReconcile;
|
|
231
|
+
/** Takes what each session's terminal last wrote about itself. */
|
|
232
|
+
readStatus(): void;
|
|
233
|
+
/** A session that moved to another account makes that account the one its space offers first. */
|
|
234
|
+
private rememberAccount;
|
|
235
|
+
/** Asks each terminal its state directly, so a change that was never written is still seen. */
|
|
236
|
+
reconcile(): Promise<void>;
|
|
237
|
+
/** Called with what the keyboard sent. */
|
|
238
|
+
handleInput(chunk: string): void;
|
|
239
|
+
/** Starts the panes of the shown tab that have not been opened before. */
|
|
240
|
+
private startShown;
|
|
241
|
+
private writeToSelected;
|
|
242
|
+
/** A key the host reads: an answer, a name being typed, a mode's key, or the key after the prefix. */
|
|
243
|
+
private key;
|
|
244
|
+
/** The key after the prefix: whatever the key map binds it to. */
|
|
245
|
+
private command;
|
|
246
|
+
private run;
|
|
247
|
+
/** The name the shown tab was given; a tab without one has none to edit. */
|
|
248
|
+
private shownTabLabel;
|
|
249
|
+
/**
|
|
250
|
+
* The running conversation is about to end (`/exit`, ctrl+c twice). With no other session
|
|
251
|
+
* mid-turn it may go at once; otherwise the spaces screen comes up with the quit question
|
|
252
|
+
* and the answer decides.
|
|
253
|
+
*/
|
|
254
|
+
askLocalExit(): Promise<boolean>;
|
|
255
|
+
private askQuit;
|
|
256
|
+
private toggleSidebar;
|
|
257
|
+
/** A space in the focused pane's folder, started on the same account. */
|
|
258
|
+
private newSpaceHere;
|
|
259
|
+
/** A new space in a folder, its first session on the account the focused pane runs on. */
|
|
260
|
+
private newSpaceIn;
|
|
261
|
+
private captured;
|
|
262
|
+
/** Closes whatever overlay is open without doing what it asked. */
|
|
263
|
+
private dismiss;
|
|
264
|
+
private openMenu;
|
|
265
|
+
private chooseMenu;
|
|
266
|
+
/** A session in a new tab on the usual sign-in, where the `/auth` command adds the account. */
|
|
267
|
+
private addAccount;
|
|
268
|
+
private menuKey;
|
|
269
|
+
private helpKey;
|
|
270
|
+
private accountsKey;
|
|
271
|
+
private gotoKey;
|
|
272
|
+
/** Focuses what a row of the go-to tree names. */
|
|
273
|
+
private chooseGoto;
|
|
274
|
+
private confirmKey;
|
|
275
|
+
private settleExit;
|
|
276
|
+
private contextKey;
|
|
277
|
+
/** Shows what a right-click was on, then does the chosen item to it. */
|
|
278
|
+
private chooseContext;
|
|
279
|
+
private resizeKey;
|
|
280
|
+
private navigateKey;
|
|
281
|
+
/** Moves the selection through the sessions in the order the sidebar lists them; the space and its tab follow. */
|
|
282
|
+
private stepSession;
|
|
283
|
+
/** Opens the selected session full screen: the running conversation natively, a child on the whole terminal. */
|
|
284
|
+
private openFull;
|
|
285
|
+
/** The shown tab's panes as they would sit with nothing zoomed, which is what a direction is measured on. */
|
|
286
|
+
private flatPanes;
|
|
287
|
+
/** Splits the focused pane; the new pane is a session in the same folder, on the same account. */
|
|
288
|
+
private splitFocused;
|
|
289
|
+
private moveFocus;
|
|
290
|
+
private swapFocused;
|
|
291
|
+
private cyclePane;
|
|
292
|
+
private toggleZoom;
|
|
293
|
+
private stepTab;
|
|
294
|
+
private gotoTab;
|
|
295
|
+
/** Closes the focused pane; the last pane of a tab closes the tab, and of a space's only tab asks to close the space. */
|
|
296
|
+
private closePane;
|
|
297
|
+
/** Closes a tab; a space's only tab closes the space, after asking. */
|
|
298
|
+
private closeTabOrSpace;
|
|
299
|
+
private closeTab;
|
|
300
|
+
/** Starts a session in a new tab of the shown space, asking which account first when there is a choice. */
|
|
301
|
+
private newTab;
|
|
302
|
+
private startIn;
|
|
303
|
+
/** Moves among the spaces, showing each one's tab without starting what it holds. */
|
|
304
|
+
private stepSpace;
|
|
305
|
+
private gotoSpace;
|
|
306
|
+
private pickerKey;
|
|
307
|
+
private askFolder;
|
|
308
|
+
private askName;
|
|
309
|
+
private promptKey;
|
|
310
|
+
private endPrompt;
|
|
311
|
+
private expand;
|
|
312
|
+
/** Opens a folder as a space, or shows the space it already is. */
|
|
313
|
+
private openFolder;
|
|
314
|
+
private perform;
|
|
315
|
+
/** Ends the sessions and takes their panes away; closing the last one leaves nothing to bring back and quits. */
|
|
316
|
+
private closeEntries;
|
|
317
|
+
private mouse;
|
|
318
|
+
/** A press on the line between the sidebar and the session: a second one soon after resets the width. */
|
|
319
|
+
private edgePress;
|
|
320
|
+
/** Moves the sidebar's edge, or the rule between its sections, to follow the pointer. */
|
|
321
|
+
private dragSidebar;
|
|
322
|
+
private sidebarPress;
|
|
323
|
+
/** A pointer button went up: a drag of a border, the sidebar or a space ends, and a moved space lands. */
|
|
324
|
+
private endDrags;
|
|
325
|
+
/** While a space is dragged: the place it would land is the space row under the pointer. */
|
|
326
|
+
private dragSpace;
|
|
327
|
+
/** A right-click: a menu for the space, tab or pane under the pointer. */
|
|
328
|
+
private openContext;
|
|
329
|
+
private screen;
|
|
330
|
+
/** Where the open overlay is, for finding what a press lands on. */
|
|
331
|
+
private overlaySurface;
|
|
332
|
+
private listSpec;
|
|
333
|
+
private listLayout;
|
|
334
|
+
private helpLayout;
|
|
335
|
+
private accountsLayout;
|
|
336
|
+
private gotoLayout;
|
|
337
|
+
private gotoVisible;
|
|
338
|
+
/** While an overlay is open a press picks inside it, and anywhere else closes it. */
|
|
339
|
+
private overlayMouse;
|
|
340
|
+
private pressOverlay;
|
|
341
|
+
/** A press in the workspace area: a tab, the "+", a border to drag, or a pane to focus. */
|
|
342
|
+
private workspacePress;
|
|
343
|
+
/** Moves the border being dragged to follow the pointer. */
|
|
344
|
+
private dragBorder;
|
|
345
|
+
private revealSelected;
|
|
346
|
+
/** The question or name field a modal shows, if one is open. */
|
|
347
|
+
private modalSpec;
|
|
348
|
+
private pickerSpec;
|
|
349
|
+
private helpSpec;
|
|
350
|
+
private gotoSpec;
|
|
351
|
+
private accountsSpec;
|
|
352
|
+
/** The menu popup: above the "new / menu" row at the sidebar's left, or at the top of the main area when there is no sidebar. */
|
|
353
|
+
private menuSurface;
|
|
354
|
+
/** What the bottom bar says in a mode: a chip, then keys and what they do. */
|
|
355
|
+
private modeBar;
|
|
356
|
+
private drawModeBar;
|
|
357
|
+
private requestRender;
|
|
358
|
+
/** Paints the current state now, after the emulator has taken all output received so far. */
|
|
359
|
+
render(): Promise<void>;
|
|
360
|
+
/** A drawing error never ends the chain; repeated ones close the host so the terminal is restored. */
|
|
361
|
+
private paintFailed;
|
|
362
|
+
private paint;
|
|
363
|
+
/** Reads every space's branch now and then again on a timer. */
|
|
364
|
+
private armGit;
|
|
365
|
+
/** Draws the open overlay on top; a modal first dims everything under it. */
|
|
366
|
+
private drawOverlay;
|
|
367
|
+
/** The line a dragged space would land at: under the row above the place it would take. */
|
|
368
|
+
private drawDrop;
|
|
369
|
+
/** One pane: its border (the focused one in the accent colour), then its session or what stands in for it. */
|
|
370
|
+
private drawPane;
|
|
371
|
+
/** What is written between runs: spaces with their tabs and pane trees, and where focus is. */
|
|
372
|
+
snapshot(): SavedLayout;
|
|
373
|
+
/** Writes the layout soon; a burst of changes becomes one write. */
|
|
374
|
+
private persist;
|
|
375
|
+
private writeLayout;
|
|
376
|
+
/** Ends every session, then leaves the terminal as it was found. */
|
|
377
|
+
quit(): void;
|
|
378
|
+
private close;
|
|
379
|
+
}
|
|
380
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/spaces/host.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAY,KAAK,SAAS,EAAa,MAAM,UAAU,CAAA;AAoC9D,OAAO,EAAE,KAAK,UAAU,EAA+B,MAAM,YAAY,CAAA;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAc,MAAM,EAAwB,MAAM,aAAa,CAAA;AACtE,OAAO,EACN,YAAY,EACZ,KAAK,gBAAgB,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
|
+
import type { Prefix } from './prefix.js';
|
|
2
|
+
/** A key the host reads itself: after the prefix, in a mode, or into a prompt. */
|
|
3
|
+
export type NavKey = {
|
|
4
|
+
readonly kind: 'up';
|
|
5
|
+
} | {
|
|
6
|
+
readonly kind: 'down';
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'left';
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: 'right';
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'tab';
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: 'backtab';
|
|
15
|
+
} | {
|
|
16
|
+
readonly kind: 'enter';
|
|
17
|
+
} | {
|
|
18
|
+
readonly kind: 'escape';
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'backspace';
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: 'char';
|
|
23
|
+
readonly char: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* What the keyboard is doing: `terminal` sends keys to the focused session,
|
|
27
|
+
* `prefix` waits for the one key after the prefix, `resize` moves borders until
|
|
28
|
+
* it is left, and `navigate` moves through the spaces.
|
|
29
|
+
*/
|
|
30
|
+
export type InputMode = 'terminal' | 'prefix' | 'resize' | 'navigate';
|
|
31
|
+
/** Where a host key came from: the key after the prefix, a mode, or text being typed. */
|
|
32
|
+
export type KeyContext = 'prefix' | 'resize' | 'navigate' | 'text';
|
|
33
|
+
/** What the router wants done with a piece of input. */
|
|
34
|
+
export type InputAction = {
|
|
35
|
+
readonly type: 'write';
|
|
36
|
+
readonly data: string;
|
|
37
|
+
} | {
|
|
38
|
+
readonly type: 'mode';
|
|
39
|
+
readonly mode: InputMode;
|
|
40
|
+
} | {
|
|
41
|
+
readonly type: 'nav';
|
|
42
|
+
readonly key: NavKey;
|
|
43
|
+
readonly from: KeyContext;
|
|
44
|
+
} | {
|
|
45
|
+
readonly type: 'mouse';
|
|
46
|
+
readonly mouse: MouseEvent;
|
|
47
|
+
};
|
|
48
|
+
/** A pointer event in screen cells, counted from 0. */
|
|
49
|
+
export interface MouseEvent {
|
|
50
|
+
readonly kind: 'press' | 'release' | 'drag' | 'context' | 'wheel-up' | 'wheel-down' | 'other';
|
|
51
|
+
readonly x: number;
|
|
52
|
+
readonly y: number;
|
|
53
|
+
}
|
|
54
|
+
/** Control-C: clears the name being typed. */
|
|
55
|
+
export declare const CLEAR = "\u0003";
|
|
56
|
+
/**
|
|
57
|
+
* Splits what the keyboard sent into the host's own keys and bytes for the child.
|
|
58
|
+
*
|
|
59
|
+
* In terminal mode every byte goes to the child untouched except the prefix. A
|
|
60
|
+
* bracketed paste is the exception to the exception: bytes between its markers are
|
|
61
|
+
* pasted text and are never read as the prefix. After the prefix the next key is a
|
|
62
|
+
* command for the host and the keyboard returns to the child; the prefix twice
|
|
63
|
+
* sends one literal prefix byte, which is how a program that binds that key (the
|
|
64
|
+
* composer moves its cursor left on ctrl+b) still receives it. `r` and `w` start
|
|
65
|
+
* the resize and navigate modes, which last until escape or enter.
|
|
66
|
+
*/
|
|
67
|
+
export declare class InputRouter {
|
|
68
|
+
private readonly prefix;
|
|
69
|
+
private mode;
|
|
70
|
+
private pasting;
|
|
71
|
+
private carry;
|
|
72
|
+
private capturing;
|
|
73
|
+
constructor(prefix: Prefix);
|
|
74
|
+
get current(): InputMode;
|
|
75
|
+
/** Hands the keyboard back to the session. */
|
|
76
|
+
focus(): void;
|
|
77
|
+
/** Puts the keyboard on the sidebar: arrows move through the sessions. */
|
|
78
|
+
enterNavigate(): void;
|
|
79
|
+
/**
|
|
80
|
+
* While on, every key goes to the host as text or a key (a name being typed, an
|
|
81
|
+
* answer to a question): escape and enter come through as keys, and the
|
|
82
|
+
* prefix is just a control byte nobody types.
|
|
83
|
+
*/
|
|
84
|
+
capture(on: boolean): void;
|
|
85
|
+
feed(input: string): InputAction[];
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","s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AQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GACzE;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,CAAA;AAEzD,uDAAuD;AACvD,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,CAAA;IAC7F,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAClB;AASD,8CAA8C;AAC9C,eAAO,MAAM,KAAK,WAAS,CAAA;AAQ3B;;;;;;;;;;GAUG;AACH,qBAAa,WAAW;IAMX,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC,OAAO,CAAC,IAAI,CAAwB;IACpC,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,KAAK,CAAK;IAClB,OAAO,CAAC,SAAS,CAAQ;gBAEI,MAAM,EAAE,MAAM;IAE3C,IAAI,OAAO,IAAI,SAAS,CAEvB;IAED,8CAA8C;IAC9C,KAAK,IAAI,IAAI;IAIb,0EAA0E;IAC1E,aAAa,IAAI,IAAI;IAIrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;IAI1B,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,EAAE;CAwGlC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NavKey } from './input.js';
|
|
2
|
+
/** Everything the key after the prefix can ask for. */
|
|
3
|
+
export type ActionId = 'help' | 'menu' | 'quit' | 'goto' | 'new-space' | 'open-folder' | 'rename-space' | 'close-space' | 'space-mode' | 'sidebar' | 'new-tab' | 'rename-tab' | 'close-tab' | 'prev-tab' | 'next-tab' | 'tab-number' | 'split-side' | 'split-stack' | 'focus-left' | 'focus-down' | 'focus-up' | 'focus-right' | 'swap-left' | 'swap-down' | 'swap-up' | 'swap-right' | 'next-pane' | 'prev-pane' | 'close-pane' | 'zoom' | 'resize-mode' | 'rename-pane';
|
|
4
|
+
export type BindingGroup = 'General' | 'Spaces' | 'Tabs' | 'Panes';
|
|
5
|
+
/** One entry of the key map: the keys after the prefix, what they do, and the words for the help. */
|
|
6
|
+
export interface Binding {
|
|
7
|
+
/** Characters, or `tab` / `backtab`, that trigger it. */
|
|
8
|
+
readonly keys: readonly string[];
|
|
9
|
+
readonly action: ActionId;
|
|
10
|
+
readonly group: BindingGroup;
|
|
11
|
+
readonly label: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The one place the keys after the prefix are written down. The host runs
|
|
15
|
+
* whatever this says and the help overlay prints it, so the two cannot differ.
|
|
16
|
+
*/
|
|
17
|
+
export declare const BINDINGS: readonly Binding[];
|
|
18
|
+
/** The name of a key as the help shows it: `shift+n`, `shift+tab`, `-`. */
|
|
19
|
+
export declare function keyName(key: string): string;
|
|
20
|
+
/** The binding a key after the prefix runs, if any. */
|
|
21
|
+
export declare function bindingFor(key: NavKey): Binding | undefined;
|
|
22
|
+
export interface HelpRow {
|
|
23
|
+
/** A group heading, or a key and what it does. */
|
|
24
|
+
readonly heading?: string;
|
|
25
|
+
readonly keys?: string;
|
|
26
|
+
readonly label?: string;
|
|
27
|
+
}
|
|
28
|
+
/** The help overlay's rows: the prefix first, then every binding under its group. */
|
|
29
|
+
export declare function helpRows(prefixName: string): HelpRow[];
|
|
30
|
+
//# sourceMappingURL=keymap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../src/spaces/keymap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,uDAAuD;AACvD,MAAM,MAAM,QAAQ,GACjB,MAAM,GACN,MAA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} from '../terminal/host/frame.js';
|
|
2
|
+
export interface Layout {
|
|
3
|
+
readonly sidebar: Rect | undefined;
|
|
4
|
+
/** True when the sidebar is the thin rail of dots instead of the full lists. */
|
|
5
|
+
readonly rail: boolean;
|
|
6
|
+
/** The one-column rule between the sidebar and the session; it is also the handle that resizes the sidebar. */
|
|
7
|
+
readonly rule: Rect | undefined;
|
|
8
|
+
/** The workspace area: the tab bar and the panes under it. */
|
|
9
|
+
readonly main: Rect;
|
|
10
|
+
/** The one-row tab bar across the top of the main area. */
|
|
11
|
+
readonly tabBar: Rect;
|
|
12
|
+
/** What is left for the panes. */
|
|
13
|
+
readonly panes: Rect;
|
|
14
|
+
}
|
|
15
|
+
/** What the user chose for the sidebar. */
|
|
16
|
+
export interface SidebarSetting {
|
|
17
|
+
readonly collapsed: boolean;
|
|
18
|
+
/** The full sidebar's width, rule included. */
|
|
19
|
+
readonly width: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const SIDEBAR_MIN = 18;
|
|
22
|
+
export declare const SIDEBAR_MAX = 36;
|
|
23
|
+
export declare const SIDEBAR_DEFAULT = 26;
|
|
24
|
+
/** The rail's width, rule included: an index, a space and a dot. */
|
|
25
|
+
export declare const RAIL_WIDTH = 4;
|
|
26
|
+
export declare const DEFAULT_SIDEBAR: SidebarSetting;
|
|
27
|
+
export declare function clampSidebarWidth(width: number): number;
|
|
28
|
+
/**
|
|
29
|
+
* Splits the terminal into a sidebar, a rule and the main area, and the main
|
|
30
|
+
* area into a tab bar and the panes. A full sidebar that would leave the session
|
|
31
|
+
* too narrow gives way to the rail, and the rail to nothing.
|
|
32
|
+
*/
|
|
33
|
+
export declare function computeLayout(cols: number, rows: number, sidebar?: SidebarSetting): Layout;
|
|
34
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/spaces/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,MAAM,WAAW,MAAM;IACtB,QAAQ,CAAC,OAAO,EAAE,IAAI,GAAG,SAAS,CAAA;IAClC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,+GAA+G;IAC/G,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;IAC/B,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;IACnB,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAA;IACrB,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;CACpB;AAED,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,WAAW,KAAK,CAAA;AAC7B,eAAO,MAAM,WAAW,KAAK,CAAA;AAC7B,eAAO,MAAM,eAAe,KAAK,CAAA;AACjC,oEAAoE;AACpE,eAAO,MAAM,UAAU,IAAI,CAAA;AAI3B,eAAO,MAAM,eAAe,EAAE,cAG7B,CAAA;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAgC,GACvC,MAAM,CAkCR"}
|