@namzu/cli 44.1.0 → 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 +49 -0
- package/dist/bin-main.d.ts +1 -1
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +2 -2
- package/dist/bin.js.map +1 -1
- package/dist/chunks/acp-OUBJWH5B.js +7754 -0
- package/dist/chunks/acp-OUBJWH5B.js.map +6 -0
- package/dist/chunks/{activity-command-UCUGH2LW.js → activity-command-R7MUSZIY.js} +16 -15
- package/dist/chunks/activity-command-R7MUSZIY.js.map +6 -0
- package/dist/chunks/{add-TNGQA6CH.js → add-PSEIDDRW.js} +22 -19
- package/dist/chunks/add-PSEIDDRW.js.map +6 -0
- package/dist/chunks/{agent-F7HY5T3U.js → agent-YPEXUYPH.js} +36 -31
- package/dist/chunks/agent-session-EZB2OYG3.js +65 -0
- package/dist/chunks/{archive-3L6VJWS4.js → archive-ET4PXE34.js} +11 -10
- package/dist/chunks/archive-ET4PXE34.js.map +6 -0
- package/dist/chunks/{bin-main-YEEDVZXH.js → bin-main-PMB57AZJ.js} +25 -15
- package/dist/chunks/bin-main-PMB57AZJ.js.map +6 -0
- package/dist/chunks/binding-K6RIQ5AP.js +17 -0
- package/dist/chunks/{browser-UHJ43DUU.js → browser-SKTIAVBF.js} +7 -7
- package/dist/chunks/{chat-DDPHHLQJ.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-4YJ4EI4X.js → chunk-2EHPXO4E.js} +3 -3
- package/dist/chunks/{chunk-F37FVPVW.js → chunk-2NI5NS5S.js} +3 -3
- package/dist/chunks/{chunk-SEYQW7MF.js → chunk-2U5M5IYH.js} +6 -6
- package/dist/chunks/{chunk-ZRPLJYFM.js → chunk-2X6JZAKH.js} +12 -12
- package/dist/chunks/{chunk-72ZSHKT7.js → chunk-2Y26DLOF.js} +27 -10
- package/dist/chunks/{chunk-72ZSHKT7.js.map → chunk-2Y26DLOF.js.map} +1 -1
- package/dist/chunks/{chunk-4Z4VYMTT.js → chunk-3QGJXD7U.js} +5 -5
- package/dist/chunks/{chunk-UZYTWQYW.js → chunk-435DYOG4.js} +2 -2
- package/dist/chunks/{chunk-CFHRQGO2.js → chunk-4OXIJ2EF.js} +3 -3
- package/dist/chunks/{chunk-SYOISB7S.js → chunk-6EJFXJDO.js} +219 -76
- package/dist/chunks/chunk-6EJFXJDO.js.map +6 -0
- package/dist/chunks/{chunk-VPZBVRXT.js → chunk-6FWFSPUL.js} +5 -3
- package/dist/chunks/chunk-6FWFSPUL.js.map +6 -0
- 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-MT4ONV77.js → chunk-7QQOUCGI.js} +16 -14
- package/dist/chunks/chunk-7QQOUCGI.js.map +6 -0
- package/dist/chunks/{chunk-3A4UOMMU.js → chunk-7TEXDZVO.js} +17 -3
- package/dist/chunks/chunk-7TEXDZVO.js.map +6 -0
- package/dist/chunks/{chunk-WEAIQEWJ.js → chunk-A5GTZ7R2.js} +2 -2
- package/dist/chunks/{chunk-DYJY4COC.js → chunk-ACSG5R5P.js} +3 -3
- package/dist/chunks/{chunk-6WXVHAS6.js → chunk-AI6PBE5G.js} +2 -2
- package/dist/chunks/{chunk-HI7UZRIV.js → chunk-AX5ESG6K.js} +2 -2
- package/dist/chunks/{chunk-WOY7SAUB.js → chunk-B3XIVOLM.js} +2 -2
- package/dist/chunks/{chunk-B45X6IGD.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-ZNY5ZPBB.js → chunk-DECJPLLA.js} +13 -13
- package/dist/chunks/{chunk-AH3DBEMR.js → chunk-DFCJYRT5.js} +2 -2
- package/dist/chunks/{chunk-TKCRF7DK.js → chunk-DQLSLXDF.js} +7 -7
- package/dist/chunks/chunk-EXFSMYH4.js +83 -0
- package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
- package/dist/chunks/{chunk-KEOBHC65.js → chunk-FHQTXWDA.js} +19 -7
- package/dist/chunks/chunk-FHQTXWDA.js.map +6 -0
- package/dist/chunks/chunk-G73G2WGR.js +242 -0
- package/dist/chunks/chunk-G73G2WGR.js.map +6 -0
- package/dist/chunks/{chunk-CLVP63AB.js → chunk-GANFMGV7.js} +5 -5
- package/dist/chunks/{chunk-GKMPPOXW.js → chunk-GBS6ATYF.js} +2 -2
- package/dist/chunks/{chunk-5PJIJTP2.js → chunk-GCCFTP47.js} +4 -4
- package/dist/chunks/{chunk-UXDNVRJ5.js → chunk-GNEDN6MU.js} +14 -14
- package/dist/chunks/{chunk-7DYH6R67.js → chunk-HB5ZN5KQ.js} +2 -2
- package/dist/chunks/{chunk-BKZW4DRY.js → chunk-HELINLSD.js} +2 -2
- package/dist/chunks/{chunk-OERIIND6.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-4LHT2QDO.js → chunk-HTBMDD6Y.js} +8 -8
- package/dist/chunks/{chunk-WTPIGLX7.js → chunk-I5E4MT3C.js} +4 -4
- package/dist/chunks/{chunk-GX74LDJL.js → chunk-IJZ7SLBV.js} +3 -3
- package/dist/chunks/{chunk-WIU25RLZ.js → chunk-ITA57VY5.js} +7 -5
- package/dist/chunks/chunk-ITA57VY5.js.map +6 -0
- package/dist/chunks/{chunk-OZLMT5WB.js → chunk-IZVN6K6U.js} +4 -4
- package/dist/chunks/{chunk-XHCUNLST.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-VKYIL6BJ.js → chunk-L2NNJ4XL.js} +3 -3
- package/dist/chunks/{chunk-IDU2KLLT.js → chunk-LF76CVOZ.js} +4 -4
- package/dist/chunks/{chunk-N4IDJ5V2.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-SBKOTD2M.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-I47Q4G4X.js → chunk-LQRP2VRQ.js} +4 -4
- package/dist/chunks/{chunk-PEJV6XTK.js → chunk-LYGD5P7O.js} +3 -3
- package/dist/chunks/{chunk-JS4C7HNH.js → chunk-M2OZ4SVS.js} +3 -3
- package/dist/chunks/{chunk-RBTQ5ZQU.js → chunk-MGZSEPDY.js} +2 -2
- package/dist/chunks/{chunk-W6OOY44A.js → chunk-MJBGVVI5.js} +3 -3
- package/dist/chunks/{chunk-76DOZYZP.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-B5KDTZYH.js → chunk-PMX2WTZL.js} +2 -2
- package/dist/chunks/{chunk-J7PV6OOX.js → chunk-QWSZ5P4C.js} +6 -6
- package/dist/chunks/{chunk-TBIX6JRE.js → chunk-R66H2G5R.js} +12 -1
- package/dist/chunks/chunk-R66H2G5R.js.map +6 -0
- package/dist/chunks/{chunk-EBN4YPIN.js → chunk-RSIWTHYS.js} +3 -3
- package/dist/chunks/{chunk-IYNTTEQA.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-UVSKCXL6.js → chunk-SGRO4RJP.js} +2 -2
- package/dist/chunks/{chunk-NB5LGTUL.js → chunk-SJFPZPOJ.js} +83 -20
- package/dist/chunks/chunk-SJFPZPOJ.js.map +6 -0
- package/dist/chunks/{chunk-3LCJJT2F.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-3UK2GDVX.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-DASSBULE.js → chunk-VFVWHYHT.js} +4 -4
- package/dist/chunks/{chunk-WQ72OU4F.js → chunk-VZ4PKWLF.js} +2 -2
- package/dist/chunks/{chunk-Y6HB4AJE.js → chunk-WKFHQQOU.js} +2 -2
- package/dist/chunks/{chunk-WUUZJCAA.js → chunk-WKPRYH24.js} +3 -3
- package/dist/chunks/{chunk-7HRVTREO.js → chunk-WQFHJ4TO.js} +3 -3
- package/dist/chunks/{chunk-OAISYZM4.js → chunk-WYJ3CNXX.js} +83 -41
- package/dist/chunks/chunk-WYJ3CNXX.js.map +6 -0
- package/dist/chunks/{chunk-V2EGJD7W.js → chunk-XPLHAOGE.js} +2 -2
- package/dist/chunks/{chunk-WG5LLHJX.js → chunk-XX2SP5AM.js} +3 -3
- package/dist/chunks/{chunk-YSGVHT54.js → chunk-YDSWGJWF.js} +2 -2
- package/dist/chunks/{chunk-MZUVCANX.js → chunk-YJ6NWB2B.js} +2 -2
- package/dist/chunks/{chunk-OKDDIWD7.js → chunk-YTE3QIH3.js} +99941 -80958
- package/dist/chunks/chunk-YTE3QIH3.js.map +6 -0
- package/dist/chunks/{chunk-EYYWIMVU.js → chunk-YUYNIAJX.js} +6 -6
- package/dist/chunks/{chunk-RMBD3YZ5.js → chunk-YXIG4OT2.js} +2 -2
- package/dist/chunks/{cli-runtime-VRAUDAKZ.js → cli-runtime-F4MEMBDL.js} +11 -10
- package/dist/chunks/cli-runtime-F4MEMBDL.js.map +6 -0
- package/dist/chunks/{commands-Q3FSPHGU.js → commands-ZCNZVYTG.js} +6 -6
- package/dist/chunks/{crash-report-6XW44BV6.js → crash-report-K53VF4H5.js} +6 -6
- package/dist/chunks/{dist-VEEXDONU.js → dist-6IPPA55L.js} +2 -2
- package/dist/chunks/{dist-KNYBFHXB.js → dist-H53G25BE.js} +2 -2
- package/dist/chunks/{dist-6XC3YARD.js → dist-L5LBM77I.js} +2 -2
- package/dist/chunks/{dist-4SPA7VSK.js → dist-RIH2Q2ER.js} +2 -2
- package/dist/chunks/{dist-VYUROH2A.js → dist-RTIKLSUV.js} +2 -2
- package/dist/chunks/{dist-5DDSGOSA.js → dist-T6KE7URX.js} +2 -2
- package/dist/chunks/dist-VSJGDIXP.js +2754 -0
- package/dist/chunks/{dist-NG6RAO2C.js → dist-XNGK3C4G.js} +2 -2
- package/dist/chunks/{doctor-ZDXK5W6E.js → doctor-DOCGTBME.js} +18 -16
- package/dist/chunks/{drain-NQLOKED3.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-A2G4KS62.js → eval-DH26W2QK.js} +2 -2
- package/dist/chunks/{exec-EWGVFJNZ.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-5N3FSKF7.js → home-GGVNSCCU.js} +3 -3
- package/dist/chunks/host-6CUYPX4T.js +23 -0
- package/dist/chunks/{host-queries-R2KVVFTJ.js → host-queries-4EW7M54U.js} +16 -15
- package/dist/chunks/host-queries-4EW7M54U.js.map +6 -0
- package/dist/chunks/{learn-SAVZB4Q7.js → learn-PAO3IOYA.js} +13 -13
- package/dist/chunks/{learn-builtin-ZWX7Q3X2.js → learn-builtin-DXZUXOGG.js} +19 -19
- package/dist/chunks/{lifecycle-2RFARBGC.js → lifecycle-KDN4D7DP.js} +31 -27
- package/dist/chunks/{list-D63Z2LT4.js → list-KSP6S57Z.js} +16 -15
- package/dist/chunks/list-KSP6S57Z.js.map +6 -0
- package/dist/chunks/{live-XC3V46W3.js → live-XWJ2JOFO.js} +16 -14
- package/dist/chunks/{login-NIX66V67.js → login-3Q2HKQUW.js} +10 -8
- package/dist/chunks/{logs-LJSWQUT5.js → logs-UYB55HOX.js} +5 -5
- package/dist/chunks/{mcp-OCEDFJA5.js → mcp-JWSI4KA6.js} +25 -22
- package/dist/chunks/mcp-JWSI4KA6.js.map +6 -0
- package/dist/chunks/{message-command-THJZ4EIM.js → message-command-YP6TGD3K.js} +50 -45
- package/dist/chunks/message-command-YP6TGD3K.js.map +6 -0
- package/dist/chunks/open-QUDHJK5H.js +19 -0
- package/dist/chunks/{operator-tools-C7KZGWFJ.js → operator-tools-43NL7HKO.js} +15 -14
- package/dist/chunks/operator-tools-43NL7HKO.js.map +6 -0
- package/dist/chunks/{output-schema-4BLF2AFQ.js → output-schema-TLW5FA37.js} +3 -3
- package/dist/chunks/{pal-7IB6LZJX.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-NCGZXLFH.js → providers-PJIHLTXP.js} +22 -18
- package/dist/chunks/pty-HDEXCPR6.js +29 -0
- package/dist/chunks/pty-HDEXCPR6.js.map +6 -0
- package/dist/chunks/{resident-EODT4UTE.js → resident-2GHB3BKR.js} +30 -28
- 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-YJ6LCKON.js → resume-command-VB6VA64L.js} +5 -5
- package/dist/chunks/resume-command-VB6VA64L.js.map +6 -0
- package/dist/chunks/{schedule-LWY6AMC3.js → schedule-42N4JOQJ.js} +9 -9
- package/dist/chunks/{service-RQZF7NCJ.js → service-6WGZKKI4.js} +34 -30
- package/dist/chunks/service-6WGZKKI4.js.map +6 -0
- package/dist/chunks/{session-step-YIL6LV2J.js → session-step-SBWIM4MZ.js} +15 -15
- package/dist/chunks/session-step-SBWIM4MZ.js.map +6 -0
- package/dist/chunks/{skills-3KYQHENX.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-OKGZSWUG.js → start-check-MRSPS5JT.js} +2 -2
- package/dist/chunks/start-check-MRSPS5JT.js.map +6 -0
- package/dist/chunks/{state-ER7R4WEN.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-C654AJPG.js → store-FUQE7EWU.js} +13 -10
- package/dist/chunks/store-FUQE7EWU.js.map +6 -0
- package/dist/chunks/{store-EQQRW7NJ.js → store-IX6KNJA4.js} +6 -6
- package/dist/chunks/store-IX6KNJA4.js.map +6 -0
- package/dist/chunks/{store-HWGRIA5X.js → store-MQXI7G2H.js} +4 -4
- package/dist/chunks/store-MQXI7G2H.js.map +6 -0
- package/dist/chunks/{tui-UYHIDUPB.js → tui-PH5B6UCO.js} +1844 -838
- package/dist/chunks/tui-PH5B6UCO.js.map +6 -0
- package/dist/chunks/{upgrade-D6Q5EAMR.js → upgrade-HDW5MWLE.js} +6 -6
- package/dist/chunks/{worktree-UFFQMC2B.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 +24 -21
- 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 +26 -25
- 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/integrations/subagents/activity.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/termination-state.d.ts +4 -0
- package/dist/termination-state.d.ts.map +1 -1
- package/dist/termination.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-failure.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 +6 -5
- package/dist/chunks/acp-JCGPYVIA.js +0 -13601
- package/dist/chunks/acp-JCGPYVIA.js.map +0 -6
- package/dist/chunks/activity-command-UCUGH2LW.js.map +0 -6
- package/dist/chunks/add-TNGQA6CH.js.map +0 -6
- package/dist/chunks/agent-session-FFLSUP5P.js +0 -60
- package/dist/chunks/archive-3L6VJWS4.js.map +0 -6
- package/dist/chunks/bin-main-YEEDVZXH.js.map +0 -6
- package/dist/chunks/chat-DDPHHLQJ.js.map +0 -6
- package/dist/chunks/chunk-3A4UOMMU.js.map +0 -6
- package/dist/chunks/chunk-B45X6IGD.js.map +0 -6
- package/dist/chunks/chunk-KEOBHC65.js.map +0 -6
- package/dist/chunks/chunk-MT4ONV77.js.map +0 -6
- package/dist/chunks/chunk-NB5LGTUL.js.map +0 -6
- package/dist/chunks/chunk-OAISYZM4.js.map +0 -6
- package/dist/chunks/chunk-OKDDIWD7.js.map +0 -6
- package/dist/chunks/chunk-SBKOTD2M.js.map +0 -6
- package/dist/chunks/chunk-SYOISB7S.js.map +0 -6
- package/dist/chunks/chunk-TBIX6JRE.js.map +0 -6
- package/dist/chunks/chunk-UEPYLY5U.js +0 -1415
- package/dist/chunks/chunk-UEPYLY5U.js.map +0 -6
- package/dist/chunks/chunk-VPZBVRXT.js.map +0 -6
- package/dist/chunks/chunk-WIU25RLZ.js.map +0 -6
- package/dist/chunks/chunk-XHCUNLST.js.map +0 -6
- package/dist/chunks/cli-runtime-VRAUDAKZ.js.map +0 -6
- package/dist/chunks/exec-EWGVFJNZ.js.map +0 -6
- package/dist/chunks/host-queries-R2KVVFTJ.js.map +0 -6
- package/dist/chunks/list-D63Z2LT4.js.map +0 -6
- package/dist/chunks/mcp-OCEDFJA5.js.map +0 -6
- package/dist/chunks/message-command-THJZ4EIM.js.map +0 -6
- package/dist/chunks/operator-tools-C7KZGWFJ.js.map +0 -6
- package/dist/chunks/pal-7IB6LZJX.js.map +0 -6
- package/dist/chunks/resident-EODT4UTE.js.map +0 -6
- package/dist/chunks/resume-2RX7TSTR.js +0 -23
- package/dist/chunks/service-RQZF7NCJ.js.map +0 -6
- package/dist/chunks/tui-UYHIDUPB.js.map +0 -6
- package/dist/chunks/worktree-UFFQMC2B.js.map +0 -6
- /package/dist/chunks/{agent-F7HY5T3U.js.map → agent-YPEXUYPH.js.map} +0 -0
- /package/dist/chunks/{agent-session-FFLSUP5P.js.map → agent-session-EZB2OYG3.js.map} +0 -0
- /package/dist/chunks/{commands-Q3FSPHGU.js.map → binding-K6RIQ5AP.js.map} +0 -0
- /package/dist/chunks/{browser-UHJ43DUU.js.map → browser-SKTIAVBF.js.map} +0 -0
- /package/dist/chunks/{chunk-4YJ4EI4X.js.map → chunk-2EHPXO4E.js.map} +0 -0
- /package/dist/chunks/{chunk-F37FVPVW.js.map → chunk-2NI5NS5S.js.map} +0 -0
- /package/dist/chunks/{chunk-SEYQW7MF.js.map → chunk-2U5M5IYH.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRPLJYFM.js.map → chunk-2X6JZAKH.js.map} +0 -0
- /package/dist/chunks/{chunk-4Z4VYMTT.js.map → chunk-3QGJXD7U.js.map} +0 -0
- /package/dist/chunks/{chunk-UZYTWQYW.js.map → chunk-435DYOG4.js.map} +0 -0
- /package/dist/chunks/{chunk-CFHRQGO2.js.map → chunk-4OXIJ2EF.js.map} +0 -0
- /package/dist/chunks/{chunk-WEAIQEWJ.js.map → chunk-A5GTZ7R2.js.map} +0 -0
- /package/dist/chunks/{chunk-DYJY4COC.js.map → chunk-ACSG5R5P.js.map} +0 -0
- /package/dist/chunks/{chunk-6WXVHAS6.js.map → chunk-AI6PBE5G.js.map} +0 -0
- /package/dist/chunks/{chunk-HI7UZRIV.js.map → chunk-AX5ESG6K.js.map} +0 -0
- /package/dist/chunks/{chunk-WOY7SAUB.js.map → chunk-B3XIVOLM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNY5ZPBB.js.map → chunk-DECJPLLA.js.map} +0 -0
- /package/dist/chunks/{chunk-AH3DBEMR.js.map → chunk-DFCJYRT5.js.map} +0 -0
- /package/dist/chunks/{chunk-TKCRF7DK.js.map → chunk-DQLSLXDF.js.map} +0 -0
- /package/dist/chunks/{chunk-CLVP63AB.js.map → chunk-GANFMGV7.js.map} +0 -0
- /package/dist/chunks/{chunk-GKMPPOXW.js.map → chunk-GBS6ATYF.js.map} +0 -0
- /package/dist/chunks/{chunk-5PJIJTP2.js.map → chunk-GCCFTP47.js.map} +0 -0
- /package/dist/chunks/{chunk-UXDNVRJ5.js.map → chunk-GNEDN6MU.js.map} +0 -0
- /package/dist/chunks/{chunk-7DYH6R67.js.map → chunk-HB5ZN5KQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BKZW4DRY.js.map → chunk-HELINLSD.js.map} +0 -0
- /package/dist/chunks/{chunk-OERIIND6.js.map → chunk-HKCIZR5P.js.map} +0 -0
- /package/dist/chunks/{chunk-4LHT2QDO.js.map → chunk-HTBMDD6Y.js.map} +0 -0
- /package/dist/chunks/{chunk-WTPIGLX7.js.map → chunk-I5E4MT3C.js.map} +0 -0
- /package/dist/chunks/{chunk-GX74LDJL.js.map → chunk-IJZ7SLBV.js.map} +0 -0
- /package/dist/chunks/{chunk-OZLMT5WB.js.map → chunk-IZVN6K6U.js.map} +0 -0
- /package/dist/chunks/{chunk-VKYIL6BJ.js.map → chunk-L2NNJ4XL.js.map} +0 -0
- /package/dist/chunks/{chunk-IDU2KLLT.js.map → chunk-LF76CVOZ.js.map} +0 -0
- /package/dist/chunks/{chunk-N4IDJ5V2.js.map → chunk-LFPTXRMM.js.map} +0 -0
- /package/dist/chunks/{chunk-I47Q4G4X.js.map → chunk-LQRP2VRQ.js.map} +0 -0
- /package/dist/chunks/{chunk-PEJV6XTK.js.map → chunk-LYGD5P7O.js.map} +0 -0
- /package/dist/chunks/{chunk-JS4C7HNH.js.map → chunk-M2OZ4SVS.js.map} +0 -0
- /package/dist/chunks/{chunk-RBTQ5ZQU.js.map → chunk-MGZSEPDY.js.map} +0 -0
- /package/dist/chunks/{chunk-W6OOY44A.js.map → chunk-MJBGVVI5.js.map} +0 -0
- /package/dist/chunks/{chunk-76DOZYZP.js.map → chunk-MYL75RA4.js.map} +0 -0
- /package/dist/chunks/{chunk-B5KDTZYH.js.map → chunk-PMX2WTZL.js.map} +0 -0
- /package/dist/chunks/{chunk-J7PV6OOX.js.map → chunk-QWSZ5P4C.js.map} +0 -0
- /package/dist/chunks/{chunk-EBN4YPIN.js.map → chunk-RSIWTHYS.js.map} +0 -0
- /package/dist/chunks/{chunk-IYNTTEQA.js.map → chunk-S4QOQGAT.js.map} +0 -0
- /package/dist/chunks/{chunk-UVSKCXL6.js.map → chunk-SGRO4RJP.js.map} +0 -0
- /package/dist/chunks/{chunk-3LCJJT2F.js.map → chunk-TZZOQ62Z.js.map} +0 -0
- /package/dist/chunks/{chunk-3UK2GDVX.js.map → chunk-UGDZ7MLG.js.map} +0 -0
- /package/dist/chunks/{chunk-DASSBULE.js.map → chunk-VFVWHYHT.js.map} +0 -0
- /package/dist/chunks/{chunk-WQ72OU4F.js.map → chunk-VZ4PKWLF.js.map} +0 -0
- /package/dist/chunks/{chunk-Y6HB4AJE.js.map → chunk-WKFHQQOU.js.map} +0 -0
- /package/dist/chunks/{chunk-WUUZJCAA.js.map → chunk-WKPRYH24.js.map} +0 -0
- /package/dist/chunks/{chunk-7HRVTREO.js.map → chunk-WQFHJ4TO.js.map} +0 -0
- /package/dist/chunks/{chunk-V2EGJD7W.js.map → chunk-XPLHAOGE.js.map} +0 -0
- /package/dist/chunks/{chunk-WG5LLHJX.js.map → chunk-XX2SP5AM.js.map} +0 -0
- /package/dist/chunks/{chunk-YSGVHT54.js.map → chunk-YDSWGJWF.js.map} +0 -0
- /package/dist/chunks/{chunk-MZUVCANX.js.map → chunk-YJ6NWB2B.js.map} +0 -0
- /package/dist/chunks/{chunk-EYYWIMVU.js.map → chunk-YUYNIAJX.js.map} +0 -0
- /package/dist/chunks/{chunk-RMBD3YZ5.js.map → chunk-YXIG4OT2.js.map} +0 -0
- /package/dist/chunks/{crash-report-6XW44BV6.js.map → commands-ZCNZVYTG.js.map} +0 -0
- /package/dist/chunks/{doctor-ZDXK5W6E.js.map → crash-report-K53VF4H5.js.map} +0 -0
- /package/dist/chunks/{dist-VEEXDONU.js.map → dist-6IPPA55L.js.map} +0 -0
- /package/dist/chunks/{dist-KNYBFHXB.js.map → dist-H53G25BE.js.map} +0 -0
- /package/dist/chunks/{dist-6XC3YARD.js.map → dist-L5LBM77I.js.map} +0 -0
- /package/dist/chunks/{dist-4SPA7VSK.js.map → dist-RIH2Q2ER.js.map} +0 -0
- /package/dist/chunks/{dist-VYUROH2A.js.map → dist-RTIKLSUV.js.map} +0 -0
- /package/dist/chunks/{dist-5DDSGOSA.js.map → dist-T6KE7URX.js.map} +0 -0
- /package/dist/chunks/{home-5N3FSKF7.js.map → dist-VSJGDIXP.js.map} +0 -0
- /package/dist/chunks/{dist-NG6RAO2C.js.map → dist-XNGK3C4G.js.map} +0 -0
- /package/dist/chunks/{lifecycle-2RFARBGC.js.map → doctor-DOCGTBME.js.map} +0 -0
- /package/dist/chunks/{drain-NQLOKED3.js.map → drain-LT3J2MEA.js.map} +0 -0
- /package/dist/chunks/{eval-A2G4KS62.js.map → eval-DH26W2QK.js.map} +0 -0
- /package/dist/chunks/{github-FH7PPWVW.js.map → github-JTMZJAZL.js.map} +0 -0
- /package/dist/chunks/{live-XC3V46W3.js.map → home-GGVNSCCU.js.map} +0 -0
- /package/dist/chunks/{login-NIX66V67.js.map → host-6CUYPX4T.js.map} +0 -0
- /package/dist/chunks/{learn-SAVZB4Q7.js.map → learn-PAO3IOYA.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-ZWX7Q3X2.js.map → learn-builtin-DXZUXOGG.js.map} +0 -0
- /package/dist/chunks/{output-schema-4BLF2AFQ.js.map → lifecycle-KDN4D7DP.js.map} +0 -0
- /package/dist/chunks/{providers-NCGZXLFH.js.map → live-XWJ2JOFO.js.map} +0 -0
- /package/dist/chunks/{resume-2RX7TSTR.js.map → login-3Q2HKQUW.js.map} +0 -0
- /package/dist/chunks/{logs-LJSWQUT5.js.map → logs-UYB55HOX.js.map} +0 -0
- /package/dist/chunks/{resume-command-YJ6LCKON.js.map → open-QUDHJK5H.js.map} +0 -0
- /package/dist/chunks/{session-step-YIL6LV2J.js.map → output-schema-TLW5FA37.js.map} +0 -0
- /package/dist/chunks/{start-check-OKGZSWUG.js.map → palette-WDPS7W6Q.js.map} +0 -0
- /package/dist/chunks/{store-C654AJPG.js.map → peers-OBENILN2.js.map} +0 -0
- /package/dist/chunks/{store-EQQRW7NJ.js.map → prefix-MLAG4KTK.js.map} +0 -0
- /package/dist/chunks/{store-HWGRIA5X.js.map → providers-PJIHLTXP.js.map} +0 -0
- /package/dist/chunks/{schedule-LWY6AMC3.js.map → schedule-42N4JOQJ.js.map} +0 -0
- /package/dist/chunks/{skills-3KYQHENX.js.map → skills-V3VDOL3D.js.map} +0 -0
- /package/dist/chunks/{state-ER7R4WEN.js.map → state-HX3XRNPC.js.map} +0 -0
- /package/dist/chunks/{upgrade-D6Q5EAMR.js.map → upgrade-HDW5MWLE.js.map} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const SPACES_FILE = "spaces.json";
|
|
2
|
+
/** One session as it is kept between runs. */
|
|
3
|
+
export interface SavedSession {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
/** The conversation, once it has one; the session resumes it when opened. */
|
|
6
|
+
readonly conversationId?: string;
|
|
7
|
+
/** The label of the non-usual account the session was on. */
|
|
8
|
+
readonly account?: string;
|
|
9
|
+
/** The account id picked when it started, for a session with no conversation yet. */
|
|
10
|
+
readonly pickedAccount?: string;
|
|
11
|
+
}
|
|
12
|
+
/** A pane tree as kept: a split with its direction, ratio and two children, or one session. */
|
|
13
|
+
export type SavedNode = {
|
|
14
|
+
readonly session: SavedSession;
|
|
15
|
+
} | {
|
|
16
|
+
readonly split: 'side' | 'stack';
|
|
17
|
+
readonly ratio: number;
|
|
18
|
+
readonly a: SavedNode;
|
|
19
|
+
readonly b: SavedNode;
|
|
20
|
+
};
|
|
21
|
+
export interface SavedTab {
|
|
22
|
+
/** The name the user gave the tab; without one it shows its number. */
|
|
23
|
+
readonly name?: string;
|
|
24
|
+
readonly tree: SavedNode;
|
|
25
|
+
/** Which pane has focus, counted left to right and top to bottom. */
|
|
26
|
+
readonly focus?: number;
|
|
27
|
+
readonly zoomed?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface SavedSpace {
|
|
30
|
+
readonly name: string;
|
|
31
|
+
readonly cwd: string;
|
|
32
|
+
readonly lastAccount?: string;
|
|
33
|
+
readonly tabs: readonly SavedTab[];
|
|
34
|
+
/** The tab shown when the space is opened. */
|
|
35
|
+
readonly activeTab?: number;
|
|
36
|
+
}
|
|
37
|
+
/** The sidebar choices kept with the layout. */
|
|
38
|
+
export interface SavedSidebar {
|
|
39
|
+
readonly collapsed?: boolean;
|
|
40
|
+
/** The full sidebar's width, rule included. */
|
|
41
|
+
readonly width?: number;
|
|
42
|
+
/** The share of its height the spaces section takes. */
|
|
43
|
+
readonly split?: number;
|
|
44
|
+
/** How the agents section is ordered. */
|
|
45
|
+
readonly order?: 'grouped' | 'priority';
|
|
46
|
+
}
|
|
47
|
+
/** The layout `namzu spaces` restores: spaces with their tabs and pane trees, and where focus was. */
|
|
48
|
+
export interface SavedLayout {
|
|
49
|
+
readonly version: 2;
|
|
50
|
+
readonly spaces: readonly SavedSpace[];
|
|
51
|
+
/** The space that was shown. */
|
|
52
|
+
readonly focus?: {
|
|
53
|
+
readonly space: number;
|
|
54
|
+
};
|
|
55
|
+
readonly sidebar?: SavedSidebar;
|
|
56
|
+
}
|
|
57
|
+
export interface SpacesStore {
|
|
58
|
+
load(): SavedLayout | undefined;
|
|
59
|
+
save(layout: SavedLayout): void;
|
|
60
|
+
}
|
|
61
|
+
export declare function spacesFilePath(env: NodeJS.ProcessEnv): string;
|
|
62
|
+
/**
|
|
63
|
+
* A layout read from disk, keeping what is well formed and dropping the rest.
|
|
64
|
+
* Version 1 files (a flat list of sessions per space) are migrated.
|
|
65
|
+
*/
|
|
66
|
+
export declare function parseLayout(raw: unknown): SavedLayout | undefined;
|
|
67
|
+
/** The layout file under the Namzu home: private to the user, replaced whole so a crash never leaves half of it. */
|
|
68
|
+
export declare function fileStore(path: string, say?: (message: string) => void): SpacesStore;
|
|
69
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/spaces/store.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,gBAAgB,CAAA;AAExC,8CAA8C;AAC9C,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IAChC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,qFAAqF;IACrF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED,+FAA+F;A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AAE,SAAS,UAAU,EAAE,CAAA;IACtC,gCAAgC;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAC/B;AAMD,MAAM,WAAW,WAAW;IAC3B,IAAI,IAAI,WAAW,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;CAC/B;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAE7D;AAoHD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAmDjE;AAED,oHAAoH;AACpH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CA+CpF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Frame, Rect } from '../terminal/host/frame.js';
|
|
2
|
+
import type { Palette } from './palette.js';
|
|
3
|
+
import type { Space, Tab } from './roster.js';
|
|
4
|
+
/** The least a tab is wide; a longer name makes it wider. */
|
|
5
|
+
export declare const MIN_TAB_WIDTH = 8;
|
|
6
|
+
/** The width of the "add a tab" target. */
|
|
7
|
+
export declare const NEW_TAB_WIDTH = 3;
|
|
8
|
+
export interface TabChip {
|
|
9
|
+
readonly tab: Tab;
|
|
10
|
+
readonly rect: Rect;
|
|
11
|
+
readonly label: string;
|
|
12
|
+
readonly active: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface TabBar {
|
|
15
|
+
readonly chips: readonly TabChip[];
|
|
16
|
+
/** The "+" target; undefined when there is no room for it. */
|
|
17
|
+
readonly plus: Rect | undefined;
|
|
18
|
+
}
|
|
19
|
+
/** What a tab says: its name or its number, with a Z while one of its panes is zoomed. */
|
|
20
|
+
export declare function tabLabel(tab: Tab, index: number): string;
|
|
21
|
+
/**
|
|
22
|
+
* Where each tab and the "+" go in the one-row bar. Tabs are separated by one
|
|
23
|
+
* cell; when they do not all fit, the first ones scroll off so the active tab
|
|
24
|
+
* stays in view.
|
|
25
|
+
*/
|
|
26
|
+
export declare function layoutTabBar(space: Space, area: Rect): TabBar;
|
|
27
|
+
/** Draws the bar: the active tab a filled chip, the rest quiet, and a "+". */
|
|
28
|
+
export declare function drawTabBar(frame: Frame, area: Rect, space: Space, palette: Palette): void;
|
|
29
|
+
/** What a click at a cell of the bar lands on. */
|
|
30
|
+
export declare function tabBarTarget(bar: TabBar, x: number, y: number): {
|
|
31
|
+
kind: 'tab';
|
|
32
|
+
tab: Tab;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'new';
|
|
35
|
+
} | undefined;
|
|
36
|
+
//# sourceMappingURL=tabbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabbar.d.ts","sourceRoot":"","sources":["../../src/spaces/tabbar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAE7C,6DAA6D;AAC7D,eAAO,MAAM,aAAa,IAAI,CAAA;AAC9B,2CAA2C;AAC3C,eAAO,MAAM,aAAa,IAAI,CAAA;AAE9B,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAA;IACjB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,MAAM;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;CAC/B;AAED,0FAA0F;AAC1F,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CA8B7D;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAoBzF;AAED,kDAAkD;AAClD,wBAAgB,YAAY,CAC3B,GAAG,EAAE,MAAM,EACX,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACP;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,GAAG,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GAAG,SAAS,CAKzD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { Rect } from '../terminal/host/frame.js';
|
|
2
|
+
import type { Entry } from './roster.js';
|
|
3
|
+
/** How a split lays its two children out: `side` puts them left and right, `stack` top and bottom. */
|
|
4
|
+
export type SplitDir = 'side' | 'stack';
|
|
5
|
+
export interface Leaf {
|
|
6
|
+
readonly kind: 'leaf';
|
|
7
|
+
entry: Entry;
|
|
8
|
+
}
|
|
9
|
+
export interface Split {
|
|
10
|
+
readonly kind: 'split';
|
|
11
|
+
dir: SplitDir;
|
|
12
|
+
/** The share of the split's room the first child takes. */
|
|
13
|
+
ratio: number;
|
|
14
|
+
a: Node;
|
|
15
|
+
b: Node;
|
|
16
|
+
}
|
|
17
|
+
/** A tab's panes: a binary tree whose leaves are sessions. */
|
|
18
|
+
export type Node = Leaf | Split;
|
|
19
|
+
export type Direction = 'left' | 'right' | 'up' | 'down';
|
|
20
|
+
export declare const MIN_RATIO = 0.1;
|
|
21
|
+
export declare const MAX_RATIO = 0.9;
|
|
22
|
+
/** The least room a bordered pane gets, border included. */
|
|
23
|
+
export declare const MIN_PANE_WIDTH = 12;
|
|
24
|
+
export declare const MIN_PANE_HEIGHT = 5;
|
|
25
|
+
/** What one resize key moves a border, as a share of its split. */
|
|
26
|
+
export declare const RESIZE_STEP = 0.05;
|
|
27
|
+
export declare function leaf(entry: Entry): Leaf;
|
|
28
|
+
export declare function clampRatio(ratio: number): number;
|
|
29
|
+
/** The sessions of a tree, left to right and top to bottom. */
|
|
30
|
+
export declare function leaves(node: Node): Entry[];
|
|
31
|
+
export declare function contains(node: Node, entry: Entry): boolean;
|
|
32
|
+
/** The tree with `created` split off beside `target`; the new pane is the second child. */
|
|
33
|
+
export declare function splitLeaf(node: Node, target: Entry, created: Entry, dir: SplitDir): Node;
|
|
34
|
+
/**
|
|
35
|
+
* The tree without `entry`: its sibling takes the room. `next` is the pane that
|
|
36
|
+
* lands where it was, for focus to move to.
|
|
37
|
+
*/
|
|
38
|
+
export declare function removeLeaf(node: Node, entry: Entry): {
|
|
39
|
+
root: Node | undefined;
|
|
40
|
+
next: Entry | undefined;
|
|
41
|
+
};
|
|
42
|
+
/** Swaps the sessions in two leaves. */
|
|
43
|
+
export declare function swapLeaves(node: Node, first: Entry, second: Entry): void;
|
|
44
|
+
/**
|
|
45
|
+
* Moves a border by one step in the key's direction: `forward` (right or down)
|
|
46
|
+
* raises the split's ratio, backward lowers it, whichever side the pane is on.
|
|
47
|
+
* The split is the nearest one of that `axis` with the pane on the matching edge
|
|
48
|
+
* (the border to its right or below for `forward`); with none there, the nearest
|
|
49
|
+
* one on the opposite edge.
|
|
50
|
+
*/
|
|
51
|
+
export declare function resizeAt(node: Node, entry: Entry, axis: SplitDir, forward: boolean, step?: number): boolean;
|
|
52
|
+
export interface Placed {
|
|
53
|
+
readonly entry: Entry;
|
|
54
|
+
/** The pane with its border. */
|
|
55
|
+
readonly outer: Rect;
|
|
56
|
+
/** What the session's terminal gets. */
|
|
57
|
+
readonly inner: Rect;
|
|
58
|
+
}
|
|
59
|
+
/** A border two panes share, which can be dragged. */
|
|
60
|
+
export interface Divider {
|
|
61
|
+
readonly split: Split;
|
|
62
|
+
/** The room the whole split takes. */
|
|
63
|
+
readonly area: Rect;
|
|
64
|
+
/** Where the second child starts: a column for `side`, a row for `stack`. */
|
|
65
|
+
readonly at: number;
|
|
66
|
+
}
|
|
67
|
+
export interface Placement {
|
|
68
|
+
readonly panes: readonly Placed[];
|
|
69
|
+
readonly dividers: readonly Divider[];
|
|
70
|
+
readonly bordered: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Lays the tree out in `area`. With more than one pane every pane has its own
|
|
74
|
+
* border and neighbours' borders touch; a lone pane has none and fills the area.
|
|
75
|
+
*/
|
|
76
|
+
export declare function place(root: Node, area: Rect): Placement;
|
|
77
|
+
/** The ratio that puts a split's second child at `at`. */
|
|
78
|
+
export declare function ratioFor(divider: Divider, at: number): number;
|
|
79
|
+
/** The divider whose border covers the cell, if any. */
|
|
80
|
+
export declare function dividerAt(dividers: readonly Divider[], x: number, y: number): Divider | undefined;
|
|
81
|
+
export declare function paneAt(panes: readonly Placed[], x: number, y: number): Placed | undefined;
|
|
82
|
+
/** The pane next to `from` in a direction: the nearest one that shares some of its edge. */
|
|
83
|
+
export declare function neighbour(panes: readonly Placed[], from: Entry, direction: Direction): Entry | undefined;
|
|
84
|
+
/** Lays a tab out: zoomed, its focused pane alone takes the whole area and keeps its border. */
|
|
85
|
+
export declare function placeTab(tab: {
|
|
86
|
+
root: Node;
|
|
87
|
+
focus: Entry;
|
|
88
|
+
zoomed: boolean;
|
|
89
|
+
}, area: Rect): Placement;
|
|
90
|
+
//# sourceMappingURL=tiling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiling.d.ts","sourceRoot":"","sources":["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,IAAI,GAAG,SAAS,CA4BvD;AAED,0DAA0D;AAC1D,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAI7D;AAED,wDAAwD;AACxD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAOjG;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzF;AAMD,4FAA4F;AAC5F,wBAAgB,SAAS,CACxB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,IAAI,EAAE,KAAK,EACX,SAAS,EAAE,SAAS,GAClB,KAAK,GAAG,SAAS,CA8BnB;AAED,gGAAgG;AAChG,wBAAgB,QAAQ,CACvB,GAAG,EAAE;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,EAClD,IAAI,EAAE,IAAI,GACR,SAAS,CAQX"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One character cell of a terminal screen, in a form that compares with `===`
|
|
3
|
+
* on its fields and serializes to a short SGR sequence.
|
|
4
|
+
*
|
|
5
|
+
* Colours are numbers: -1 is the terminal default, 0..255 a palette entry, and
|
|
6
|
+
* `RGB_FLAG | 0xRRGGBB` a true colour.
|
|
7
|
+
*/
|
|
8
|
+
export interface Cell {
|
|
9
|
+
/** The cluster drawn in this cell; '' for the second half of a wide character. */
|
|
10
|
+
readonly ch: string;
|
|
11
|
+
/** Columns the cell occupies: 1, 2 for the first half of a wide character, 0 for its second half. */
|
|
12
|
+
readonly width: 0 | 1 | 2;
|
|
13
|
+
readonly fg: number;
|
|
14
|
+
readonly bg: number;
|
|
15
|
+
readonly attrs: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_COLOR = -1;
|
|
18
|
+
export declare const RGB_FLAG = 16777216;
|
|
19
|
+
export declare const ATTR_BOLD = 1;
|
|
20
|
+
export declare const ATTR_DIM = 2;
|
|
21
|
+
export declare const ATTR_ITALIC = 4;
|
|
22
|
+
export declare const ATTR_UNDERLINE = 8;
|
|
23
|
+
export declare const ATTR_BLINK = 16;
|
|
24
|
+
export declare const ATTR_INVERSE = 32;
|
|
25
|
+
export declare const ATTR_INVISIBLE = 64;
|
|
26
|
+
export declare const ATTR_STRIKE = 128;
|
|
27
|
+
export declare const ATTR_OVERLINE = 256;
|
|
28
|
+
export declare const BLANK_CELL: Cell;
|
|
29
|
+
/** The second half of a wide character: drawn by the first half, never written itself. */
|
|
30
|
+
export declare const CONTINUATION_CELL: Cell;
|
|
31
|
+
export declare function sameCell(a: Cell, b: Cell): boolean;
|
|
32
|
+
export declare function rgb(r: number, g: number, b: number): number;
|
|
33
|
+
/** The SGR sequence that sets exactly this style from a reset state. */
|
|
34
|
+
export declare function sgr(fg: number, bg: number, attrs: number): string;
|
|
35
|
+
//# sourceMappingURL=cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/terminal/host/cell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,IAAI;IACpB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,qGAAqG;IACrG,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,aAAa,KAAK,CAAA;AAC/B,eAAO,MAAM,QAAQ,WAAY,CAAA;AAEjC,eAAO,MAAM,SAAS,IAAI,CAAA;AAC1B,eAAO,MAAM,QAAQ,IAAI,CAAA;AACzB,eAAO,MAAM,WAAW,IAAI,CAAA;AAC5B,eAAO,MAAM,cAAc,IAAI,CAAA;AAC/B,eAAO,MAAM,UAAU,KAAK,CAAA;AAC5B,eAAO,MAAM,YAAY,KAAK,CAAA;AAC9B,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,eAAO,MAAM,WAAW,MAAM,CAAA;AAC9B,eAAO,MAAM,aAAa,MAAM,CAAA;AAEhC,eAAO,MAAM,UAAU,EAAE,IAMvB,CAAA;AAEF,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,EAAE,IAM9B,CAAA;AAEF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAKlD;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;AAwBD,wEAAwE;AACxE,wBAAgB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type Cell } from './cell.js';
|
|
2
|
+
export interface Rect {
|
|
3
|
+
readonly x: number;
|
|
4
|
+
readonly y: number;
|
|
5
|
+
readonly width: number;
|
|
6
|
+
readonly height: number;
|
|
7
|
+
}
|
|
8
|
+
/** Style applied to text and fills written by the sidebar API. */
|
|
9
|
+
export interface CellStyle {
|
|
10
|
+
readonly fg?: number;
|
|
11
|
+
readonly bg?: number;
|
|
12
|
+
readonly attrs?: number;
|
|
13
|
+
}
|
|
14
|
+
/** Where the real terminal's cursor should rest after a frame, in frame coordinates. */
|
|
15
|
+
export interface FrameCursor {
|
|
16
|
+
readonly x: number;
|
|
17
|
+
readonly y: number;
|
|
18
|
+
readonly visible: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A read-only view of a screen that can be copied into a frame. The terminal
|
|
22
|
+
* emulator adapter implements it; tests may implement it directly.
|
|
23
|
+
*/
|
|
24
|
+
export interface CellSource {
|
|
25
|
+
readonly cols: number;
|
|
26
|
+
readonly rows: number;
|
|
27
|
+
/** The cell at a visible position, or undefined outside the screen. */
|
|
28
|
+
cell(x: number, y: number): Cell | undefined;
|
|
29
|
+
readonly cursor: FrameCursor;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The picture of the whole real terminal for one instant: every cell, plus the
|
|
33
|
+
* cursor. Regions of it are filled from child screens (`blit`) and by the host's
|
|
34
|
+
* own chrome (`fillRect`, `writeText`). Nothing here touches stdout; a
|
|
35
|
+
* `DiffWriter` turns the difference between two frames into bytes.
|
|
36
|
+
*/
|
|
37
|
+
export declare class Frame {
|
|
38
|
+
readonly cols: number;
|
|
39
|
+
readonly rows: number;
|
|
40
|
+
readonly cells: Cell[];
|
|
41
|
+
cursor: FrameCursor;
|
|
42
|
+
constructor(cols: number, rows: number);
|
|
43
|
+
cellAt(x: number, y: number): Cell | undefined;
|
|
44
|
+
/** Sets one cell, ignoring positions outside the frame. */
|
|
45
|
+
set(x: number, y: number, cell: Cell): void;
|
|
46
|
+
private clip;
|
|
47
|
+
/** Fills a rectangle with blanks in the given style. */
|
|
48
|
+
fillRect(rect: Rect, style?: CellStyle): void;
|
|
49
|
+
/**
|
|
50
|
+
* Writes text on one row of a rectangle, clipped to the rectangle's width. Wide
|
|
51
|
+
* characters take two cells; one that would straddle the right edge is replaced
|
|
52
|
+
* by a blank. Returns the number of columns used.
|
|
53
|
+
*/
|
|
54
|
+
writeText(rect: Rect, row: number, text: string, style?: CellStyle): number;
|
|
55
|
+
/**
|
|
56
|
+
* Copies a source screen into a rectangle, top-left aligned and clipped to the
|
|
57
|
+
* rectangle, the frame and the source. A wide character cut by the clip edge, or
|
|
58
|
+
* whose second half is missing, becomes a blank.
|
|
59
|
+
*/
|
|
60
|
+
blit(source: CellSource, rect: Rect): void;
|
|
61
|
+
/** Places the cursor explicitly (for example on a sidebar input row). */
|
|
62
|
+
setCursor(cursor: FrameCursor): void;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../src/terminal/host/frame.ts"],"names":[],"mappings":"AACA,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,WAAW,CAAA;AAEpE,MAAM,WAAW,IAAI;IACpB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACvB;AAED,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,wFAAwF;AACxF,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAC5C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAC5B;AAID;;;;;GAKG;AACH,qBAAa,KAAK;IAKhB,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM;IALtB,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,CAAA;IACtB,MAAM,EAAE,WAAW,CAAiC;gBAG1C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM;IAKtB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAK9C,2DAA2D;IAC3D,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAK3C,OAAO,CAAC,IAAI;IAQZ,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,GAAE,SAAc,GAAG,IAAI;IAOjD;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,SAAc,GAAG,MAAM;IAqB/E;;;;OAIG;IACH,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAoB1C,yEAAyE;IACzE,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;CAGpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/terminal/host/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Frame } from './frame.js';
|
|
2
|
+
/**
|
|
3
|
+
* Turns successive frames into the smallest byte stream that makes the real
|
|
4
|
+
* terminal show the newest one: only cells that differ from the previous frame
|
|
5
|
+
* are written, each run of changed cells in a row gets one cursor move and one
|
|
6
|
+
* style change per style, and the cursor ends on the frame's cursor.
|
|
7
|
+
*
|
|
8
|
+
* Output is wrapped in synchronized-update markers so a terminal that supports
|
|
9
|
+
* them paints the frame at once; the others ignore the markers.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DiffWriter {
|
|
12
|
+
private previous;
|
|
13
|
+
private previousCols;
|
|
14
|
+
private previousRows;
|
|
15
|
+
private cursor;
|
|
16
|
+
/** Forget what the terminal shows; the next render repaints every cell. */
|
|
17
|
+
invalidate(): void;
|
|
18
|
+
/** The bytes that bring the terminal from the previous frame to this one. Empty when nothing changed. */
|
|
19
|
+
render(frame: Frame): string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/terminal/host/writer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,YAAY,CAAA;AAOpD;;;;;;;;GAQG;AACH,qBAAa,UAAU;IACtB,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,MAAM,CAAyB;IAEvC,2EAA2E;IAC3E,UAAU,IAAI,IAAI;IAKlB,yGAAyG;IACzG,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;CAkE5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IBufferCell, Terminal } from '@xterm/headless';
|
|
2
|
+
import { type Cell } from './cell.js';
|
|
3
|
+
import type { CellSource } from './frame.js';
|
|
4
|
+
/** Converts one emulator cell. The emulator's cell object is reused by `getCell`, so this copies. */
|
|
5
|
+
export declare function readCell(cell: IBufferCell): Cell;
|
|
6
|
+
/**
|
|
7
|
+
* Tracks whether the emulated program has hidden the cursor. The emulator does
|
|
8
|
+
* not expose it, so this watches the cursor-visibility mode toggles while
|
|
9
|
+
* leaving them for the emulator to handle.
|
|
10
|
+
*/
|
|
11
|
+
export declare function trackCursorVisibility(term: Terminal): () => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* A `CellSource` over the emulator's active buffer (so a program on the
|
|
14
|
+
* alternate screen is read from it), showing the viewport scrolled `back` rows
|
|
15
|
+
* into the scrollback. The cursor is hidden while scrolled back.
|
|
16
|
+
*/
|
|
17
|
+
export declare function xtermSource(term: Terminal, cursorVisible?: () => boolean, back?: number): CellSource;
|
|
18
|
+
//# sourceMappingURL=xterm-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xterm-source.d.ts","sourceRoot":"","sources":["../../../src/terminal/host/xterm-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAe,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAYN,KAAK,IAAI,EAGT,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,YAAY,CAAA;AAQzD,qGAAqG;AACrG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAyBhD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,OAAO,CAWnE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAC1B,IAAI,EAAE,QAAQ,EACd,aAAa,GAAE,MAAM,OAAoB,EACzC,IAAI,SAAI,GACN,UAAU,CA0BZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pty.d.ts","sourceRoot":"","sources":["../../src/terminal/pty.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,oBAAoB,CAAA;AAK7C,yFAAyF;AACzF,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,MAAM,C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}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CellSource } from './host/frame.js';
|
|
1
2
|
/**
|
|
2
3
|
* What a terminal looks like right now, kept by a headless emulator fed with the
|
|
3
4
|
* same bytes the viewers get.
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
export declare class HeadlessScreen {
|
|
14
15
|
private readonly term;
|
|
15
16
|
private readonly serializer;
|
|
17
|
+
private readonly cursorVisible;
|
|
16
18
|
private parsed;
|
|
17
19
|
private fed;
|
|
18
20
|
constructor(cols: number, rows: number, scrollback: number);
|
|
@@ -24,8 +26,18 @@ export declare class HeadlessScreen {
|
|
|
24
26
|
offset(): number;
|
|
25
27
|
/** The screen as escape sequences that rebuild it, within `maxLength`. */
|
|
26
28
|
serialize(scrollback: number, maxLength: number): string;
|
|
29
|
+
/** Whether the program asked for bracketed paste, so the real terminal can be told to send it. */
|
|
30
|
+
bracketedPaste(): boolean;
|
|
31
|
+
/** Replies the emulator makes to the program's terminal queries (cursor position, attributes). */
|
|
32
|
+
onResponse(listener: (data: string) => void): {
|
|
33
|
+
dispose(): void;
|
|
34
|
+
};
|
|
27
35
|
/** The visible rows as plain text, trailing blanks trimmed. */
|
|
28
36
|
lines(): string[];
|
|
37
|
+
/** Rows of history above the visible screen. */
|
|
38
|
+
scrollbackSize(): number;
|
|
39
|
+
/** The visible screen as cells for the host's renderer, `back` rows into the scrollback. */
|
|
40
|
+
cells(back?: number): CellSource;
|
|
29
41
|
dispose(): void;
|
|
30
42
|
}
|
|
31
43
|
//# sourceMappingURL=screen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../src/terminal/screen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../src/terminal/screen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAUjD;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoB;IAC/C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAC7C,OAAO,CAAC,MAAM,CAAI;IAClB,OAAO,CAAC,GAAG,CAAI;gBAEH,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAO1D,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAQzB,+DAA+D;IAC/D,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAIxC,wDAAwD;IACxD,MAAM,IAAI,MAAM;IAIhB,0EAA0E;IAC1E,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAMxD,kGAAkG;IAClG,cAAc,IAAI,OAAO;IAIzB,kGAAkG;IAClG,UAAU,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE;IAIjE,+DAA+D;IAC/D,KAAK,IAAI,MAAM,EAAE;IAQjB,gDAAgD;IAChD,cAAc,IAAI,MAAM;IAIxB,4FAA4F;IAC5F,KAAK,CAAC,IAAI,SAAI,GAAG,UAAU;IAI3B,OAAO,IAAI,IAAI;CAIf"}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
/** The signals a turn-running command answers by giving its conversation back. */
|
|
9
9
|
export declare const TERMINATION_SIGNALS: readonly ["SIGTERM", "SIGHUP", "SIGINT"];
|
|
10
10
|
export type TerminationSignal = (typeof TERMINATION_SIGNALS)[number];
|
|
11
|
+
/** A turn-capable command has loaded the kernel; the binary must release its leases before exit. */
|
|
12
|
+
export declare function markSessionLeaseUse(): void;
|
|
13
|
+
/** Keep utility-only exits from importing the kernel just to release an empty registry. */
|
|
14
|
+
export declare function sessionLeasesMayBeHeld(): boolean;
|
|
11
15
|
/**
|
|
12
16
|
* The signal this process is stopping for, or `null`. The binary's own exit
|
|
13
17
|
* path consults it: once a signal is being handled, the handler ends the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termination-state.d.ts","sourceRoot":"","sources":["../src/termination-state.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,0CAA2C,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"termination-state.d.ts","sourceRoot":"","sources":["../src/termination-state.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,0CAA2C,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAKpE,oGAAoG;AACpG,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED,2FAA2F;AAC3F,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,iBAAiB,GAAG,IAAI,CAEhE;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAErE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termination.d.ts","sourceRoot":"","sources":["../src/termination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAMH,OAAO,EACN,mBAAmB,EACnB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"termination.d.ts","sourceRoot":"","sources":["../src/termination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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BAAgB,wBAAwB,CACvC,OAAO,GAAE,wBAA6B,GACpC,mBAAmB,CA8DrB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACxC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,GACrE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAS9B;AAED,oDAAoD;AACpD,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C"}
|
package/dist/tui/App.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { type Message, type ReasoningEffort, type SessionId } from '@namzu/sdk';
|
|
1
|
+
import { type GoalRoundAuthority, type Message, type MessageAttachment, type ReasoningEffort, type SessionId } from '@namzu/sdk';
|
|
2
|
+
import { type PeerMail } from '../integrations/peers/runtime.js';
|
|
2
3
|
import { type SubscriptionProviderId } from '../integrations/providers/index.js';
|
|
3
4
|
import type { Batch } from '../integrations/subagents/batches.js';
|
|
4
5
|
import { type ModeAvailability, type PermissionMode } from '../permissions/mode.js';
|
|
5
6
|
import { type ChoicePickerOption } from './ChoicePicker.js';
|
|
7
|
+
import { type AddKind } from './account-flow.js';
|
|
6
8
|
import { type AgentSession } from './agent.js';
|
|
7
9
|
import type { TuiExitSummary } from './exit-summary.js';
|
|
8
10
|
import { type ThemeSetting } from './theme-palettes.js';
|
|
9
11
|
import type { TipHistoryStore } from './tip-history.js';
|
|
12
|
+
import { type TriggerId } from './triggers/registry.js';
|
|
10
13
|
import type { QueuedHintCount } from './composer-hints.js';
|
|
11
14
|
import { type RestoreOptions } from './restored-rows.js';
|
|
12
15
|
import { type CommandPickerEntry } from './slashCommands.js';
|
|
@@ -25,6 +28,32 @@ export interface AppProps {
|
|
|
25
28
|
readonly terminationExit?: {
|
|
26
29
|
current: (() => void) | null;
|
|
27
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Where the launcher finds how to have the screen cleared and the whole
|
|
33
|
+
* transcript printed again. The spaces screen needs it on every switch of
|
|
34
|
+
* the terminal between a mirror and the real screen, including when the
|
|
35
|
+
* width does not change and the App's own resize reset would not run.
|
|
36
|
+
*/
|
|
37
|
+
readonly repaint?: {
|
|
38
|
+
current: (() => void) | null;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Opens the spaces screen: `←` on an empty composer. Absent where there is
|
|
42
|
+
* no spaces screen to open (Windows, no terminal), which keeps `←` opening the
|
|
43
|
+
* agents cockpit. Resolves false when it could not be opened, and the cockpit opens instead.
|
|
44
|
+
*/
|
|
45
|
+
readonly onOpenSpaces?: () => Promise<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Asked before a typed exit (`/exit`, ctrl+c or ctrl+d twice) ends the conversation; false keeps
|
|
48
|
+
* it, because the spaces screen asked whether to hang up sessions that are mid-turn.
|
|
49
|
+
* A termination signal does not ask.
|
|
50
|
+
*/
|
|
51
|
+
readonly onConfirmExit?: () => Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Runs once the session is closed and just before Ink unmounts: gives the terminal back from
|
|
54
|
+
* the spaces screen, so the last frame is drawn on the screen the shell will show.
|
|
55
|
+
*/
|
|
56
|
+
readonly beforeExit?: () => Promise<void>;
|
|
28
57
|
/**
|
|
29
58
|
* The launcher turns this on: an empty first prompt suggests an example
|
|
30
59
|
* (`Try "fix lint errors"`). Off by default so the many fixtures that wait
|
|
@@ -200,6 +229,36 @@ type ChoicePickerState = {
|
|
|
200
229
|
readonly notice?: string;
|
|
201
230
|
readonly values: readonly ReviewCommit[];
|
|
202
231
|
readonly options: readonly ChoicePickerOption[];
|
|
232
|
+
} | {
|
|
233
|
+
/** `/auth`: the accounts this conversation can run on. */
|
|
234
|
+
readonly kind: 'account';
|
|
235
|
+
readonly title: string;
|
|
236
|
+
readonly notice?: string;
|
|
237
|
+
readonly values: readonly string[];
|
|
238
|
+
readonly options: readonly ChoicePickerOption[];
|
|
239
|
+
/** Opened by a spent allowance: the reply it stopped, run again on the account chosen. */
|
|
240
|
+
readonly limit?: {
|
|
241
|
+
readonly resubmit: QueuedPrompt | null;
|
|
242
|
+
};
|
|
243
|
+
} | {
|
|
244
|
+
readonly kind: 'account-add';
|
|
245
|
+
readonly title: string;
|
|
246
|
+
readonly notice?: string;
|
|
247
|
+
readonly values: readonly AddKind[];
|
|
248
|
+
readonly options: readonly ChoicePickerOption[];
|
|
249
|
+
} | {
|
|
250
|
+
readonly kind: 'account-provider';
|
|
251
|
+
readonly title: string;
|
|
252
|
+
readonly notice?: string;
|
|
253
|
+
readonly values: readonly string[];
|
|
254
|
+
readonly options: readonly ChoicePickerOption[];
|
|
255
|
+
} | {
|
|
256
|
+
readonly kind: 'account-remove';
|
|
257
|
+
readonly title: string;
|
|
258
|
+
readonly notice?: string;
|
|
259
|
+
readonly accountId: string;
|
|
260
|
+
readonly values: readonly ('cancel' | 'remove')[];
|
|
261
|
+
readonly options: readonly ChoicePickerOption[];
|
|
203
262
|
});
|
|
204
263
|
/** Exact operator-authored prompts that belong in terminal input history. */
|
|
205
264
|
export declare function promptHistoryFromConversation(messages: readonly Message[]): readonly string[];
|
|
@@ -213,6 +272,52 @@ export declare function promptHistoryFromConversation(messages: readonly Message
|
|
|
213
272
|
* are drawn from the saved messages alone.
|
|
214
273
|
*/
|
|
215
274
|
export declare function projectConversation(messages: readonly Message[], nextId: () => string, readableUserTexts?: readonly string[], restore?: Partial<RestoreOptions>): readonly TranscriptMessage[];
|
|
275
|
+
/**
|
|
276
|
+
* One complete composer submission waiting for the active turn to settle.
|
|
277
|
+
*
|
|
278
|
+
* A queue of strings is not a queue of prompts. The composer can submit image
|
|
279
|
+
* attachments with its text, and dropping that second field here makes the
|
|
280
|
+
* later turn look successful while asking the model a different question from
|
|
281
|
+
* the one the operator composed.
|
|
282
|
+
*/
|
|
283
|
+
type QueuedPrompt = {
|
|
284
|
+
readonly kind: 'human';
|
|
285
|
+
readonly text: string;
|
|
286
|
+
readonly attachments?: readonly MessageAttachment[];
|
|
287
|
+
/** Composed by `/skills save` or `/skills new`; see `StreamState.skillFlow`. */
|
|
288
|
+
readonly skillFlow?: true;
|
|
289
|
+
/** Server-selected data attached as host context, never reparsed for mentions or slash commands. */
|
|
290
|
+
readonly mcpContext?: string;
|
|
291
|
+
/** Only an operator-composed message can be returned to the composer. */
|
|
292
|
+
readonly recallable?: true;
|
|
293
|
+
/** The typed command when a slash action expanded it into `text` for the model. */
|
|
294
|
+
readonly recallText?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Composer triggers armed when the operator sent it (`./triggers/`).
|
|
297
|
+
* Only the composer's own submit sets this; see `SubmitMeta`.
|
|
298
|
+
*/
|
|
299
|
+
readonly triggers?: readonly TriggerId[];
|
|
300
|
+
} | {
|
|
301
|
+
readonly kind: 'peer';
|
|
302
|
+
readonly text: string;
|
|
303
|
+
readonly mail: PeerMail;
|
|
304
|
+
readonly generation: number;
|
|
305
|
+
} | {
|
|
306
|
+
/**
|
|
307
|
+
* What ended while nobody was talking to the model: a workflow run, a
|
|
308
|
+
* background command. The text is built when the turn is admitted,
|
|
309
|
+
* from what is still undelivered then, so it never repeats a notice a
|
|
310
|
+
* running turn already took.
|
|
311
|
+
*/
|
|
312
|
+
readonly kind: 'notice';
|
|
313
|
+
readonly text: string;
|
|
314
|
+
readonly generation: number;
|
|
315
|
+
} | {
|
|
316
|
+
readonly kind: 'goal';
|
|
317
|
+
readonly text: string;
|
|
318
|
+
readonly goalRound: GoalRoundAuthority;
|
|
319
|
+
readonly generation: number;
|
|
320
|
+
};
|
|
216
321
|
/**
|
|
217
322
|
* The App, drawn inside the theme epoch: a theme change redraws this component,
|
|
218
323
|
* and the epoch it hands down is what makes a memoised row repaint.
|