@namzu/cli 44.1.1 → 45.0.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 +179 -0
- package/README.md +4 -2
- package/dist/bin.js +1 -1
- package/dist/chunks/acp-XSAUUT2D.js +7648 -0
- package/dist/chunks/acp-XSAUUT2D.js.map +6 -0
- package/dist/chunks/{activity-command-Y5ZLCQ63.js → activity-command-DB4DREW7.js} +16 -15
- package/dist/chunks/activity-command-DB4DREW7.js.map +6 -0
- package/dist/chunks/{add-F7M57FGR.js → add-NVXRVUGY.js} +27 -21
- package/dist/chunks/add-NVXRVUGY.js.map +6 -0
- package/dist/chunks/{agent-AFX2UZU5.js → agent-6TD66IMV.js} +43 -34
- package/dist/chunks/agent-session-3A5K5VK3.js +69 -0
- package/dist/chunks/{archive-6NM6DYAT.js → archive-A3X7KX2U.js} +11 -10
- package/dist/chunks/archive-A3X7KX2U.js.map +6 -0
- package/dist/chunks/{bin-main-I6CHRYYQ.js → bin-main-5PYV7WYI.js} +11 -11
- package/dist/chunks/binding-EMMG5PAE.js +17 -0
- package/dist/chunks/{browser-OPMOTWTV.js → browser-FUFFJBRR.js} +6 -6
- package/dist/chunks/{chat-KGVPXQS6.js → chat-M653DEAF.js} +20 -19
- package/dist/chunks/chat-M653DEAF.js.map +6 -0
- package/dist/chunks/{chunk-TX2PUHTP.js → chunk-24FBGXYR.js} +3 -3
- package/dist/chunks/{chunk-2NGXQQPP.js → chunk-2OAD3CZE.js} +3 -3
- package/dist/chunks/chunk-2YCPLLUW.js +61 -0
- package/dist/chunks/chunk-2YCPLLUW.js.map +6 -0
- package/dist/chunks/{chunk-JCUPTKQY.js → chunk-325X27UO.js} +4 -4
- package/dist/chunks/{chunk-REDD2WY7.js → chunk-43HR3AF5.js} +2 -2
- package/dist/chunks/{chunk-DESOZLEL.js → chunk-43PTHA5N.js} +2 -2
- package/dist/chunks/{chunk-T5POXPXY.js → chunk-46OOPRR6.js} +3 -3
- package/dist/chunks/chunk-4DVCHAWN.js +219 -0
- package/dist/chunks/chunk-4DVCHAWN.js.map +6 -0
- package/dist/chunks/chunk-667W6Z5W.js +309 -0
- package/dist/chunks/chunk-667W6Z5W.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-6PDIDZGX.js +363 -0
- package/dist/chunks/chunk-6PDIDZGX.js.map +6 -0
- package/dist/chunks/{chunk-UHPRMPWX.js → chunk-6TT7NXLP.js} +182 -139
- package/dist/chunks/chunk-6TT7NXLP.js.map +6 -0
- package/dist/chunks/{chunk-EFQ6FUFZ.js → chunk-6ZEHXLF7.js} +2 -2
- package/dist/chunks/{chunk-RSRJQB6Q.js → chunk-7DR7EU3J.js} +2078 -850
- package/dist/chunks/chunk-7DR7EU3J.js.map +6 -0
- package/dist/chunks/chunk-7NJAEWFK.js +153 -0
- package/dist/chunks/chunk-7NJAEWFK.js.map +6 -0
- package/dist/chunks/{chunk-I32JTWDW.js → chunk-7TBETDTX.js} +2 -2
- package/dist/chunks/{chunk-465CVUN4.js → chunk-ADCVLGQO.js} +3 -3
- package/dist/chunks/{chunk-W5QFVC74.js → chunk-AHNXQAYZ.js} +91 -56
- package/dist/chunks/chunk-AHNXQAYZ.js.map +6 -0
- package/dist/chunks/{chunk-W4E2N7TY.js → chunk-ANHFJD66.js} +4 -4
- package/dist/chunks/{chunk-UGAT33T5.js → chunk-B6INWHLR.js} +3 -3
- package/dist/chunks/{chunk-Y44FAVKA.js → chunk-BICC735N.js} +3 -3
- package/dist/chunks/{chunk-UC3ZACVN.js → chunk-BOM64EUQ.js} +2 -2
- package/dist/chunks/{chunk-RFMODICJ.js → chunk-C4MAQ64X.js} +84 -42
- package/dist/chunks/chunk-C4MAQ64X.js.map +6 -0
- package/dist/chunks/chunk-CDDS3UKB.js +425 -0
- package/dist/chunks/chunk-CDDS3UKB.js.map +6 -0
- package/dist/chunks/{chunk-CTN4O42X.js → chunk-D23EJNO5.js} +3 -3
- package/dist/chunks/{chunk-G5RAECIB.js → chunk-E2MNVA3X.js} +2 -2
- package/dist/chunks/{chunk-BR6EWAKQ.js → chunk-E3FA5H3Q.js} +5 -5
- package/dist/chunks/{chunk-LUSUJZR2.js → chunk-EFU2OFEK.js} +2 -2
- package/dist/chunks/chunk-EXFSMYH4.js +83 -0
- package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
- package/dist/chunks/{chunk-EFEZWLZC.js → chunk-FUJSGQYW.js} +17 -13
- package/dist/chunks/chunk-FUJSGQYW.js.map +6 -0
- package/dist/chunks/{chunk-FPLDTTM2.js → chunk-FZR4XULA.js} +6 -6
- package/dist/chunks/{chunk-YAEHAYI4.js → chunk-G5FWVYK2.js} +47 -9
- package/dist/chunks/chunk-G5FWVYK2.js.map +6 -0
- package/dist/chunks/{chunk-6LLJQ3KY.js → chunk-G6YSAHKC.js} +4 -3
- package/dist/chunks/chunk-G6YSAHKC.js.map +6 -0
- package/dist/chunks/{chunk-JSFF2HGX.js → chunk-GAEZQRQI.js} +3 -3
- package/dist/chunks/{chunk-UP3SWACV.js → chunk-GCFXQSN6.js} +2 -2
- package/dist/chunks/{chunk-XPS3W7FC.js → chunk-GMUWAUKQ.js} +2 -2
- package/dist/chunks/chunk-GWGIAZLZ.js +5853 -0
- package/dist/chunks/chunk-GWGIAZLZ.js.map +6 -0
- package/dist/chunks/chunk-H6AUN2YD.js +290 -0
- package/dist/chunks/chunk-H6AUN2YD.js.map +6 -0
- package/dist/chunks/{chunk-KHM2XON5.js → chunk-HFD2VRQP.js} +18 -4
- package/dist/chunks/chunk-HFD2VRQP.js.map +6 -0
- package/dist/chunks/{chunk-CRWNJ62V.js → chunk-HGIIAAEG.js} +5 -6
- package/dist/chunks/chunk-HGIIAAEG.js.map +6 -0
- package/dist/chunks/{chunk-WLAI3VCE.js → chunk-HH3NBBBE.js} +2 -2
- package/dist/chunks/{chunk-WPNT6IGU.js → chunk-HV2JFRSE.js} +2 -2
- package/dist/chunks/{chunk-ZXKN4TWP.js → chunk-IRUDNBAR.js} +242 -447
- package/dist/chunks/chunk-IRUDNBAR.js.map +6 -0
- package/dist/chunks/chunk-IYEDXZQZ.js +4322 -0
- package/dist/chunks/chunk-IYEDXZQZ.js.map +6 -0
- package/dist/chunks/{chunk-AE4LOPZF.js → chunk-J2FGTLZV.js} +2 -2
- package/dist/chunks/{chunk-T2PF65KB.js → chunk-JAB62RI5.js} +2 -2
- package/dist/chunks/{chunk-HXZ2JXCO.js → chunk-JKPUOSDC.js} +2 -2
- package/dist/chunks/{chunk-GSYPRZZU.js → chunk-K5FQ4G64.js} +2 -2
- package/dist/chunks/{chunk-NS7EU37U.js → chunk-KVCYYXCS.js} +2 -2
- package/dist/chunks/{chunk-PWOG3OMH.js → chunk-KZ5WYSA6.js} +9 -9
- package/dist/chunks/chunk-L2WEBN6A.js +49 -0
- package/dist/chunks/chunk-L2WEBN6A.js.map +6 -0
- package/dist/chunks/{chunk-7U36A4WQ.js → chunk-L6QJZZCJ.js} +55 -5
- package/dist/chunks/chunk-L6QJZZCJ.js.map +6 -0
- package/dist/chunks/{chunk-ORVWGSLG.js → chunk-LHZSSQ6K.js} +4 -4
- package/dist/chunks/{chunk-2NFPIARP.js → chunk-LR4QQMJH.js} +4 -4
- package/dist/chunks/{chunk-3NJPNX6V.js → chunk-LVVD32KJ.js} +14 -4
- package/dist/chunks/chunk-LVVD32KJ.js.map +6 -0
- package/dist/chunks/{chunk-JAYPFJGZ.js → chunk-M7LCVDP3.js} +9 -2
- package/dist/chunks/chunk-M7LCVDP3.js.map +6 -0
- package/dist/chunks/{chunk-JV3LONAU.js → chunk-MDK4RMBQ.js} +9 -3
- package/dist/chunks/{chunk-JV3LONAU.js.map → chunk-MDK4RMBQ.js.map} +1 -1
- package/dist/chunks/{chunk-QNTR7X7D.js → chunk-MKRYUMLP.js} +6 -6
- package/dist/chunks/{chunk-O4MFP726.js → chunk-MMZHUQZQ.js} +4427 -1413
- package/dist/chunks/chunk-MMZHUQZQ.js.map +6 -0
- package/dist/chunks/{chunk-WKUTR7YW.js → chunk-MYSU54EZ.js} +86 -21
- package/dist/chunks/chunk-MYSU54EZ.js.map +6 -0
- package/dist/chunks/{chunk-5UB2LLPG.js → chunk-NUNOIP4Y.js} +2 -2
- package/dist/chunks/{chunk-ZRBGY4SL.js → chunk-NXX6C3WS.js} +2 -2
- package/dist/chunks/{chunk-ZNYKZ3MI.js → chunk-OENL667J.js} +2 -2
- package/dist/chunks/{chunk-LS75R55C.js → chunk-OMRU22BQ.js} +4 -4
- package/dist/chunks/{chunk-BLM6IQS4.js → chunk-P6FEQPES.js} +5 -5
- package/dist/chunks/{chunk-BIGRB2H4.js → chunk-P6RUYL3F.js} +3 -3
- package/dist/chunks/chunk-P7MNE6YP.js +456 -0
- package/dist/chunks/chunk-P7MNE6YP.js.map +6 -0
- package/dist/chunks/{chunk-6Z2ZJ4BA.js → chunk-RJQ6WQYX.js} +358 -32
- package/dist/chunks/chunk-RJQ6WQYX.js.map +6 -0
- package/dist/chunks/{chunk-YPRKTJ5P.js → chunk-S2UDKXWH.js} +2 -2
- package/dist/chunks/chunk-S766UWAQ.js +227 -0
- package/dist/chunks/chunk-S766UWAQ.js.map +6 -0
- package/dist/chunks/chunk-S7WRWA25.js +33 -0
- package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
- package/dist/chunks/{chunk-XFNCCDJK.js → chunk-TFOIA3U3.js} +2 -2
- package/dist/chunks/{chunk-NPZY5OJ5.js → chunk-THJQXERD.js} +8 -8
- package/dist/chunks/{chunk-ZUN2WRCB.js → chunk-THQAGFMO.js} +17 -17
- package/dist/chunks/{chunk-FKIO77IY.js → chunk-THUX2WOG.js} +12 -12
- package/dist/chunks/{chunk-AY7B43MK.js → chunk-TKIWAXRU.js} +13 -13
- package/dist/chunks/{chunk-QV43JSBP.js → chunk-TUF4NNJV.js} +2 -2
- package/dist/chunks/{chunk-KK2L4FD2.js → chunk-U33GIKBK.js} +4 -4
- package/dist/chunks/{chunk-WLUGKIYQ.js → chunk-U3EQTU4G.js} +4 -4
- package/dist/chunks/{chunk-VR4MTSMH.js → chunk-U6U472VN.js} +3 -3
- package/dist/chunks/chunk-VAP6YMB6.js +362 -0
- package/dist/chunks/chunk-VAP6YMB6.js.map +6 -0
- package/dist/chunks/{chunk-RV5QY3IY.js → chunk-VGUU6E6X.js} +6 -6
- package/dist/chunks/chunk-VHFPIYVY.js +63 -0
- package/dist/chunks/chunk-VHFPIYVY.js.map +6 -0
- package/dist/chunks/{chunk-LN26A356.js → chunk-VY377HAA.js} +4 -4
- package/dist/chunks/{chunk-HYFX32Y3.js → chunk-WG32TSVL.js} +3 -3
- package/dist/chunks/{chunk-ZATO2QOS.js → chunk-WSIMHBEQ.js} +2 -2
- package/dist/chunks/{chunk-JH3SDABI.js → chunk-X4WCRRZV.js} +6 -6
- package/dist/chunks/chunk-X7WLWVR7.js +189 -0
- package/dist/chunks/chunk-X7WLWVR7.js.map +6 -0
- package/dist/chunks/{chunk-2OVZNENW.js → chunk-XH5YF2YX.js} +2 -2
- package/dist/chunks/chunk-Y2PZNQH5.js +413 -0
- package/dist/chunks/chunk-Y2PZNQH5.js.map +6 -0
- package/dist/chunks/{chunk-CMAZ3DYB.js → chunk-YLNQLDMP.js} +5 -5
- package/dist/chunks/chunk-YOWYTBJS.js +96 -0
- package/dist/chunks/chunk-YOWYTBJS.js.map +6 -0
- package/dist/chunks/{cli-runtime-HTTDQPEZ.js → cli-runtime-QWBGE2VF.js} +16 -15
- package/dist/chunks/cli-runtime-QWBGE2VF.js.map +6 -0
- package/dist/chunks/{commands-ZD2L5QMI.js → commands-LVUUZ6LF.js} +5 -5
- package/dist/chunks/{crash-report-2IRIZSBD.js → crash-report-PGXMRS5P.js} +8 -8
- package/dist/chunks/{dist-NL7WG7PX.js → dist-6HN2ZMLV.js} +2 -2
- package/dist/chunks/{dist-45IFTDJW.js → dist-JJANJMY5.js} +162 -13
- package/dist/chunks/dist-JJANJMY5.js.map +6 -0
- package/dist/chunks/{dist-GSYFGRQT.js → dist-JRBSW53E.js} +2 -2
- package/dist/chunks/{dist-OJTB6QLR.js → dist-NSCNMOX7.js} +2 -2
- package/dist/chunks/{dist-FNGLTQIG.js → dist-TC6H7TPQ.js} +78 -2
- package/dist/chunks/{dist-TWYNAZDN.js → dist-V4SNHHMB.js} +2 -2
- package/dist/chunks/{dist-RQJEJN3Z.js → dist-VON3NRHE.js} +35 -6
- package/dist/chunks/dist-VON3NRHE.js.map +6 -0
- package/dist/chunks/{dist-OCZJJFHF.js → dist-VV3V36IP.js} +2 -2
- package/dist/chunks/{doctor-NKPCWPB4.js → doctor-P7L35KGN.js} +20 -16
- package/dist/chunks/{drain-YTSVAQP5.js → drain-HOHRXIYY.js} +14 -14
- package/dist/chunks/entry-L7XZIE7J.js +233 -0
- package/dist/chunks/entry-L7XZIE7J.js.map +6 -0
- package/dist/chunks/{eval-ILFXDQUQ.js → eval-2F473JAC.js} +2 -2
- package/dist/chunks/{exec-3JDAB34N.js → exec-VCM4AL2S.js} +65 -51
- package/dist/chunks/exec-VCM4AL2S.js.map +6 -0
- package/dist/chunks/{github-FH7PPWVW.js → github-OFCHQMQQ.js} +5 -5
- package/dist/chunks/{home-5OIZIDIT.js → home-R6WCBSOT.js} +3 -3
- package/dist/chunks/host-JGPJVLTC.js +28 -0
- package/dist/chunks/{host-queries-SO2NOQRR.js → host-queries-QWV47CFK.js} +17 -16
- package/dist/chunks/host-queries-QWV47CFK.js.map +6 -0
- package/dist/chunks/{learn-RHNMJ4BD.js → learn-3UPHM5OI.js} +14 -14
- package/dist/chunks/{learn-builtin-UQ3MWGK6.js → learn-builtin-3Q4BJFCF.js} +20 -20
- package/dist/chunks/{lifecycle-RTDYXKBW.js → lifecycle-EJLVISCU.js} +37 -30
- package/dist/chunks/{list-G6OA34RL.js → list-DQJBF4AB.js} +18 -17
- package/dist/chunks/list-DQJBF4AB.js.map +6 -0
- package/dist/chunks/{live-44HBQCQY.js → live-IWDOVSLG.js} +18 -14
- package/dist/chunks/login-B2PHE6IL.js +34 -0
- package/dist/chunks/{logs-22QAEH2Q.js → logs-5UTV3FMG.js} +4 -4
- package/dist/chunks/{mcp-EXFVIHPJ.js → mcp-JN36OQLX.js} +32 -26
- package/dist/chunks/mcp-JN36OQLX.js.map +6 -0
- package/dist/chunks/{message-command-B4L2W4YZ.js → message-command-RMLQ2PU5.js} +54 -45
- package/dist/chunks/message-command-RMLQ2PU5.js.map +6 -0
- package/dist/chunks/mouse-WFSJSLQD.js +22 -0
- package/dist/chunks/open-LDBJL43A.js +20 -0
- package/dist/chunks/{operator-tools-TEP4UTI6.js → operator-tools-NA7PLRIP.js} +15 -14
- package/dist/chunks/operator-tools-NA7PLRIP.js.map +6 -0
- package/dist/chunks/{output-schema-FZXJ7V33.js → output-schema-UKYWRZPS.js} +3 -3
- package/dist/chunks/{pal-BUDEBIBJ.js → pal-MAVUNYMB.js} +20 -15
- package/dist/chunks/pal-MAVUNYMB.js.map +6 -0
- package/dist/chunks/palette-WDPS7W6Q.js +15 -0
- package/dist/chunks/peers-FBTQW2SY.js +18 -0
- package/dist/chunks/prefix-MLAG4KTK.js +14 -0
- package/dist/chunks/{providers-EQ32NZAT.js → providers-M75ET3GT.js} +45 -26
- package/dist/chunks/pty-VMUEEJRN.js +29 -0
- package/dist/chunks/pty-VMUEEJRN.js.map +6 -0
- package/dist/chunks/{resident-FSUGNG56.js → resident-URNRPE2S.js} +35 -33
- package/dist/chunks/resident-URNRPE2S.js.map +6 -0
- package/dist/chunks/resume-7B3EHDJ7.js +24 -0
- package/dist/chunks/resume-7B3EHDJ7.js.map +6 -0
- package/dist/chunks/{resume-command-DHPXCZVL.js → resume-command-5QGHV6WR.js} +4 -4
- package/dist/chunks/resume-command-5QGHV6WR.js.map +6 -0
- package/dist/chunks/{schedule-OJMZEWJG.js → schedule-BK3WF2VK.js} +8 -8
- package/dist/chunks/{service-EP2QHCK7.js → service-VWASFP3R.js} +38 -31
- package/dist/chunks/service-VWASFP3R.js.map +6 -0
- package/dist/chunks/{session-step-44XBOUDV.js → session-step-DORV5FER.js} +16 -16
- package/dist/chunks/session-step-DORV5FER.js.map +6 -0
- package/dist/chunks/{skills-YHAQXVP2.js → skills-TDDPMTQI.js} +12 -12
- package/dist/chunks/spaces-AEOU6MSZ.js +241 -0
- package/dist/chunks/spaces-AEOU6MSZ.js.map +6 -0
- package/dist/chunks/{start-check-KVZFDBD3.js → start-check-N4TPV2TM.js} +2 -2
- package/dist/chunks/start-check-N4TPV2TM.js.map +6 -0
- package/dist/chunks/{state-NXFKMBOX.js → state-SHLWYVZU.js} +2 -2
- package/dist/chunks/{store-JLTSSGKL.js → store-75YZOOZI.js} +4 -4
- package/dist/chunks/store-75YZOOZI.js.map +6 -0
- package/dist/chunks/{store-QNY242NN.js → store-CQVUIU7K.js} +6 -6
- package/dist/chunks/store-CQVUIU7K.js.map +6 -0
- package/dist/chunks/{store-KFJWAELA.js → store-GUSFCKJA.js} +13 -10
- package/dist/chunks/store-GUSFCKJA.js.map +6 -0
- package/dist/chunks/store-Z5H6LYVE.js +17 -0
- package/dist/chunks/store-Z5H6LYVE.js.map +6 -0
- package/dist/chunks/{tui-L5GKR237.js → tui-PGHWYFN4.js} +9702 -7547
- package/dist/chunks/tui-PGHWYFN4.js.map +6 -0
- package/dist/chunks/{upgrade-PROVWX55.js → upgrade-RHPZQ33L.js} +6 -6
- package/dist/chunks/{worktree-ELHDXX4X.js → worktree-5IYFN33C.js} +13 -12
- package/dist/chunks/worktree-5IYFN33C.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/login.d.ts +2 -2
- package/dist/commands/login.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 +46 -0
- package/dist/commands/spaces.d.ts.map +1 -0
- package/dist/config/load.d.ts +6 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/model-environment.d.ts.map +1 -1
- package/dist/config/schema.d.ts +27 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/context/environment.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 +28 -23
- 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/clipboard/copy.d.ts +94 -0
- package/dist/integrations/clipboard/copy.d.ts.map +1 -0
- package/dist/integrations/clipboard/image-fit.d.ts +91 -0
- package/dist/integrations/clipboard/image-fit.d.ts.map +1 -0
- package/dist/integrations/clipboard/image-paths.d.ts +56 -0
- package/dist/integrations/clipboard/image-paths.d.ts.map +1 -0
- package/dist/integrations/clipboard/image.d.ts +80 -15
- package/dist/integrations/clipboard/image.d.ts.map +1 -1
- package/dist/integrations/clipboard/text-read.d.ts +28 -0
- package/dist/integrations/clipboard/text-read.d.ts.map +1 -0
- package/dist/integrations/clipboard/text.d.ts +16 -1
- package/dist/integrations/clipboard/text.d.ts.map +1 -1
- package/dist/integrations/clipboard/wsl.d.ts +38 -0
- package/dist/integrations/clipboard/wsl.d.ts.map +1 -0
- package/dist/integrations/outstanding/collect.d.ts +51 -0
- package/dist/integrations/outstanding/collect.d.ts.map +1 -0
- package/dist/integrations/outstanding/facts.d.ts +23 -0
- package/dist/integrations/outstanding/facts.d.ts.map +1 -0
- package/dist/integrations/outstanding/note.d.ts +26 -0
- package/dist/integrations/outstanding/note.d.ts.map +1 -0
- package/dist/integrations/outstanding/progress-notices.d.ts +66 -0
- package/dist/integrations/outstanding/progress-notices.d.ts.map +1 -0
- package/dist/integrations/outstanding/status.d.ts +104 -0
- package/dist/integrations/outstanding/status.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/anthropic-endpoint.d.ts +34 -0
- package/dist/integrations/providers/anthropic-endpoint.d.ts.map +1 -0
- 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/connections.d.ts +8 -0
- package/dist/integrations/providers/connections.d.ts.map +1 -1
- package/dist/integrations/providers/credential-store.d.ts +2 -0
- package/dist/integrations/providers/credential-store.d.ts.map +1 -1
- package/dist/integrations/providers/index.d.ts +3 -1
- package/dist/integrations/providers/index.d.ts.map +1 -1
- package/dist/integrations/providers/key-migration.d.ts +22 -0
- package/dist/integrations/providers/key-migration.d.ts.map +1 -0
- package/dist/integrations/providers/model-reasoning.d.ts +1 -1
- package/dist/integrations/providers/model-reasoning.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/providers/registry.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +25 -24
- 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 +6 -0
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/idle-watch.d.ts +30 -0
- package/dist/integrations/subagents/idle-watch.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +23 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/saved-agents.d.ts +3 -1
- package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
- package/dist/integrations/subagents/task-observation.d.ts +20 -0
- package/dist/integrations/subagents/task-observation.d.ts.map +1 -0
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/host.d.ts +8 -1
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts +1 -1
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/orphans.d.ts +38 -0
- package/dist/integrations/workflows/orphans.d.ts.map +1 -0
- package/dist/integrations/workflows/registry.d.ts +12 -1
- package/dist/integrations/workflows/registry.d.ts.map +1 -1
- package/dist/integrations/workflows/resume.d.ts +93 -0
- package/dist/integrations/workflows/resume.d.ts.map +1 -0
- package/dist/integrations/workflows/view.d.ts +13 -0
- package/dist/integrations/workflows/view.d.ts.map +1 -1
- package/dist/permissions/image-read.d.ts +20 -0
- package/dist/permissions/image-read.d.ts.map +1 -0
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/rounds/gates.d.ts +63 -0
- package/dist/rounds/gates.d.ts.map +1 -0
- package/dist/rounds/goal-admission.d.ts +55 -0
- package/dist/rounds/goal-admission.d.ts.map +1 -0
- package/dist/rounds/queue.d.ts +39 -0
- package/dist/rounds/queue.d.ts.map +1 -0
- package/dist/rounds/types.d.ts +105 -0
- package/dist/rounds/types.d.ts.map +1 -0
- package/dist/rounds/wake-ledger.d.ts +126 -0
- package/dist/rounds/wake-ledger.d.ts.map +1 -0
- 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 +446 -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/mouse.d.ts +34 -0
- package/dist/spaces/mouse.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/selection.d.ts +52 -0
- package/dist/spaces/selection.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 +26 -0
- package/dist/terminal/screen.d.ts.map +1 -1
- package/dist/tui/App.d.ts +66 -15
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundJobsPanel.d.ts +9 -7
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +14 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +9 -7
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/TaskList.d.ts +15 -2
- package/dist/tui/TaskList.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 +38 -10
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/background-view.d.ts +46 -0
- package/dist/tui/background-view.d.ts.map +1 -0
- package/dist/tui/compaction-rows.d.ts.map +1 -1
- package/dist/tui/computer-use-screen-approval.d.ts +10 -0
- package/dist/tui/computer-use-screen-approval.d.ts.map +1 -0
- package/dist/tui/context-grid.d.ts +2 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +18 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/credential-entry.d.ts +7 -6
- package/dist/tui/credential-entry.d.ts.map +1 -1
- package/dist/tui/hypermode.d.ts +1 -3
- package/dist/tui/hypermode.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/keymap.d.ts +10 -1
- package/dist/tui/keymap.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/login-prompt.d.ts +4 -2
- package/dist/tui/login-prompt.d.ts.map +1 -1
- package/dist/tui/model-switch.d.ts.map +1 -1
- package/dist/tui/permission-review.d.ts +5 -0
- package/dist/tui/permission-review.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 +22 -26
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/system-rows.d.ts +0 -6
- package/dist/tui/system-rows.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/typed-key-save.d.ts +27 -0
- package/dist/tui/typed-key-save.d.ts.map +1 -0
- package/dist/tui/zoom/entry.d.ts +37 -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 +10 -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-3NJPNX6V.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-6LLJQ3KY.js.map +0 -6
- package/dist/chunks/chunk-6Z2ZJ4BA.js.map +0 -6
- package/dist/chunks/chunk-7U36A4WQ.js.map +0 -6
- package/dist/chunks/chunk-CRWNJ62V.js.map +0 -6
- package/dist/chunks/chunk-EFEZWLZC.js.map +0 -6
- package/dist/chunks/chunk-JAYPFJGZ.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-W5QFVC74.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/dist-45IFTDJW.js.map +0 -6
- package/dist/chunks/dist-RQJEJN3Z.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/login-J4PWR4FM.js +0 -29
- 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/integrations/subagents/batches.d.ts +0 -91
- package/dist/integrations/subagents/batches.d.ts.map +0 -1
- package/dist/integrations/subagents/slash.d.ts +0 -55
- package/dist/integrations/subagents/slash.d.ts.map +0 -1
- /package/dist/chunks/{agent-AFX2UZU5.js.map → agent-6TD66IMV.js.map} +0 -0
- /package/dist/chunks/{agent-session-CFWQHSYT.js.map → agent-session-3A5K5VK3.js.map} +0 -0
- /package/dist/chunks/{bin-main-I6CHRYYQ.js.map → bin-main-5PYV7WYI.js.map} +0 -0
- /package/dist/chunks/{commands-ZD2L5QMI.js.map → binding-EMMG5PAE.js.map} +0 -0
- /package/dist/chunks/{browser-OPMOTWTV.js.map → browser-FUFFJBRR.js.map} +0 -0
- /package/dist/chunks/{chunk-TX2PUHTP.js.map → chunk-24FBGXYR.js.map} +0 -0
- /package/dist/chunks/{chunk-2NGXQQPP.js.map → chunk-2OAD3CZE.js.map} +0 -0
- /package/dist/chunks/{chunk-JCUPTKQY.js.map → chunk-325X27UO.js.map} +0 -0
- /package/dist/chunks/{chunk-REDD2WY7.js.map → chunk-43HR3AF5.js.map} +0 -0
- /package/dist/chunks/{chunk-DESOZLEL.js.map → chunk-43PTHA5N.js.map} +0 -0
- /package/dist/chunks/{chunk-T5POXPXY.js.map → chunk-46OOPRR6.js.map} +0 -0
- /package/dist/chunks/{chunk-EFQ6FUFZ.js.map → chunk-6ZEHXLF7.js.map} +0 -0
- /package/dist/chunks/{chunk-I32JTWDW.js.map → chunk-7TBETDTX.js.map} +0 -0
- /package/dist/chunks/{chunk-465CVUN4.js.map → chunk-ADCVLGQO.js.map} +0 -0
- /package/dist/chunks/{chunk-W4E2N7TY.js.map → chunk-ANHFJD66.js.map} +0 -0
- /package/dist/chunks/{chunk-UGAT33T5.js.map → chunk-B6INWHLR.js.map} +0 -0
- /package/dist/chunks/{chunk-Y44FAVKA.js.map → chunk-BICC735N.js.map} +0 -0
- /package/dist/chunks/{chunk-UC3ZACVN.js.map → chunk-BOM64EUQ.js.map} +0 -0
- /package/dist/chunks/{chunk-CTN4O42X.js.map → chunk-D23EJNO5.js.map} +0 -0
- /package/dist/chunks/{chunk-G5RAECIB.js.map → chunk-E2MNVA3X.js.map} +0 -0
- /package/dist/chunks/{chunk-BR6EWAKQ.js.map → chunk-E3FA5H3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-LUSUJZR2.js.map → chunk-EFU2OFEK.js.map} +0 -0
- /package/dist/chunks/{chunk-FPLDTTM2.js.map → chunk-FZR4XULA.js.map} +0 -0
- /package/dist/chunks/{chunk-JSFF2HGX.js.map → chunk-GAEZQRQI.js.map} +0 -0
- /package/dist/chunks/{chunk-UP3SWACV.js.map → chunk-GCFXQSN6.js.map} +0 -0
- /package/dist/chunks/{chunk-XPS3W7FC.js.map → chunk-GMUWAUKQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WLAI3VCE.js.map → chunk-HH3NBBBE.js.map} +0 -0
- /package/dist/chunks/{chunk-WPNT6IGU.js.map → chunk-HV2JFRSE.js.map} +0 -0
- /package/dist/chunks/{chunk-AE4LOPZF.js.map → chunk-J2FGTLZV.js.map} +0 -0
- /package/dist/chunks/{chunk-T2PF65KB.js.map → chunk-JAB62RI5.js.map} +0 -0
- /package/dist/chunks/{chunk-HXZ2JXCO.js.map → chunk-JKPUOSDC.js.map} +0 -0
- /package/dist/chunks/{chunk-GSYPRZZU.js.map → chunk-K5FQ4G64.js.map} +0 -0
- /package/dist/chunks/{chunk-NS7EU37U.js.map → chunk-KVCYYXCS.js.map} +0 -0
- /package/dist/chunks/{chunk-PWOG3OMH.js.map → chunk-KZ5WYSA6.js.map} +0 -0
- /package/dist/chunks/{chunk-ORVWGSLG.js.map → chunk-LHZSSQ6K.js.map} +0 -0
- /package/dist/chunks/{chunk-2NFPIARP.js.map → chunk-LR4QQMJH.js.map} +0 -0
- /package/dist/chunks/{chunk-QNTR7X7D.js.map → chunk-MKRYUMLP.js.map} +0 -0
- /package/dist/chunks/{chunk-5UB2LLPG.js.map → chunk-NUNOIP4Y.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRBGY4SL.js.map → chunk-NXX6C3WS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNYKZ3MI.js.map → chunk-OENL667J.js.map} +0 -0
- /package/dist/chunks/{chunk-LS75R55C.js.map → chunk-OMRU22BQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BLM6IQS4.js.map → chunk-P6FEQPES.js.map} +0 -0
- /package/dist/chunks/{chunk-BIGRB2H4.js.map → chunk-P6RUYL3F.js.map} +0 -0
- /package/dist/chunks/{chunk-YPRKTJ5P.js.map → chunk-S2UDKXWH.js.map} +0 -0
- /package/dist/chunks/{chunk-XFNCCDJK.js.map → chunk-TFOIA3U3.js.map} +0 -0
- /package/dist/chunks/{chunk-NPZY5OJ5.js.map → chunk-THJQXERD.js.map} +0 -0
- /package/dist/chunks/{chunk-ZUN2WRCB.js.map → chunk-THQAGFMO.js.map} +0 -0
- /package/dist/chunks/{chunk-FKIO77IY.js.map → chunk-THUX2WOG.js.map} +0 -0
- /package/dist/chunks/{chunk-AY7B43MK.js.map → chunk-TKIWAXRU.js.map} +0 -0
- /package/dist/chunks/{chunk-QV43JSBP.js.map → chunk-TUF4NNJV.js.map} +0 -0
- /package/dist/chunks/{chunk-KK2L4FD2.js.map → chunk-U33GIKBK.js.map} +0 -0
- /package/dist/chunks/{chunk-WLUGKIYQ.js.map → chunk-U3EQTU4G.js.map} +0 -0
- /package/dist/chunks/{chunk-VR4MTSMH.js.map → chunk-U6U472VN.js.map} +0 -0
- /package/dist/chunks/{chunk-RV5QY3IY.js.map → chunk-VGUU6E6X.js.map} +0 -0
- /package/dist/chunks/{chunk-LN26A356.js.map → chunk-VY377HAA.js.map} +0 -0
- /package/dist/chunks/{chunk-HYFX32Y3.js.map → chunk-WG32TSVL.js.map} +0 -0
- /package/dist/chunks/{chunk-ZATO2QOS.js.map → chunk-WSIMHBEQ.js.map} +0 -0
- /package/dist/chunks/{chunk-JH3SDABI.js.map → chunk-X4WCRRZV.js.map} +0 -0
- /package/dist/chunks/{chunk-2OVZNENW.js.map → chunk-XH5YF2YX.js.map} +0 -0
- /package/dist/chunks/{chunk-CMAZ3DYB.js.map → chunk-YLNQLDMP.js.map} +0 -0
- /package/dist/chunks/{crash-report-2IRIZSBD.js.map → commands-LVUUZ6LF.js.map} +0 -0
- /package/dist/chunks/{dist-FNGLTQIG.js.map → crash-report-PGXMRS5P.js.map} +0 -0
- /package/dist/chunks/{dist-NL7WG7PX.js.map → dist-6HN2ZMLV.js.map} +0 -0
- /package/dist/chunks/{dist-GSYFGRQT.js.map → dist-JRBSW53E.js.map} +0 -0
- /package/dist/chunks/{dist-OJTB6QLR.js.map → dist-NSCNMOX7.js.map} +0 -0
- /package/dist/chunks/{doctor-NKPCWPB4.js.map → dist-TC6H7TPQ.js.map} +0 -0
- /package/dist/chunks/{dist-TWYNAZDN.js.map → dist-V4SNHHMB.js.map} +0 -0
- /package/dist/chunks/{dist-OCZJJFHF.js.map → dist-VV3V36IP.js.map} +0 -0
- /package/dist/chunks/{home-5OIZIDIT.js.map → doctor-P7L35KGN.js.map} +0 -0
- /package/dist/chunks/{drain-YTSVAQP5.js.map → drain-HOHRXIYY.js.map} +0 -0
- /package/dist/chunks/{eval-ILFXDQUQ.js.map → eval-2F473JAC.js.map} +0 -0
- /package/dist/chunks/{github-FH7PPWVW.js.map → github-OFCHQMQQ.js.map} +0 -0
- /package/dist/chunks/{lifecycle-RTDYXKBW.js.map → home-R6WCBSOT.js.map} +0 -0
- /package/dist/chunks/{live-44HBQCQY.js.map → host-JGPJVLTC.js.map} +0 -0
- /package/dist/chunks/{learn-RHNMJ4BD.js.map → learn-3UPHM5OI.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-UQ3MWGK6.js.map → learn-builtin-3Q4BJFCF.js.map} +0 -0
- /package/dist/chunks/{login-J4PWR4FM.js.map → lifecycle-EJLVISCU.js.map} +0 -0
- /package/dist/chunks/{output-schema-FZXJ7V33.js.map → live-IWDOVSLG.js.map} +0 -0
- /package/dist/chunks/{providers-EQ32NZAT.js.map → login-B2PHE6IL.js.map} +0 -0
- /package/dist/chunks/{logs-22QAEH2Q.js.map → logs-5UTV3FMG.js.map} +0 -0
- /package/dist/chunks/{resume-VXHGE5GC.js.map → mouse-WFSJSLQD.js.map} +0 -0
- /package/dist/chunks/{resume-command-DHPXCZVL.js.map → open-LDBJL43A.js.map} +0 -0
- /package/dist/chunks/{session-step-44XBOUDV.js.map → output-schema-UKYWRZPS.js.map} +0 -0
- /package/dist/chunks/{start-check-KVZFDBD3.js.map → palette-WDPS7W6Q.js.map} +0 -0
- /package/dist/chunks/{store-JLTSSGKL.js.map → peers-FBTQW2SY.js.map} +0 -0
- /package/dist/chunks/{store-KFJWAELA.js.map → prefix-MLAG4KTK.js.map} +0 -0
- /package/dist/chunks/{store-QNY242NN.js.map → providers-M75ET3GT.js.map} +0 -0
- /package/dist/chunks/{schedule-OJMZEWJG.js.map → schedule-BK3WF2VK.js.map} +0 -0
- /package/dist/chunks/{skills-YHAQXVP2.js.map → skills-TDDPMTQI.js.map} +0 -0
- /package/dist/chunks/{state-NXFKMBOX.js.map → state-SHLWYVZU.js.map} +0 -0
- /package/dist/chunks/{upgrade-PROVWX55.js.map → upgrade-RHPZQ33L.js.map} +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Frame, Rect } from '../terminal/host/frame.js';
|
|
2
|
+
import type { GitStatus } from './git.js';
|
|
3
|
+
import type { Palette } from './palette.js';
|
|
4
|
+
import type { Entry, Roster, Space } from './roster.js';
|
|
5
|
+
import { type Dot } from './status.js';
|
|
6
|
+
/** How the agents list is ordered: by space, or the ones that want a look first. */
|
|
7
|
+
export type AgentOrder = 'grouped' | 'priority';
|
|
8
|
+
export interface SidebarScroll {
|
|
9
|
+
/** The first space shown. */
|
|
10
|
+
spaces: number;
|
|
11
|
+
/** The first agent shown. */
|
|
12
|
+
agents: number;
|
|
13
|
+
}
|
|
14
|
+
export interface SidebarModel {
|
|
15
|
+
readonly roster: Roster;
|
|
16
|
+
readonly mode: 'terminal' | 'navigate';
|
|
17
|
+
/** Lines for the foot of the sidebar: a question, or a name being typed. */
|
|
18
|
+
readonly foot: readonly string[];
|
|
19
|
+
readonly scroll: SidebarScroll;
|
|
20
|
+
readonly palette: Palette;
|
|
21
|
+
readonly git: (cwd: string) => GitStatus | undefined;
|
|
22
|
+
readonly order: AgentOrder;
|
|
23
|
+
/** The share of the height the spaces section takes. */
|
|
24
|
+
readonly split: number;
|
|
25
|
+
/** Draw the thin rail of dots instead of the lists. */
|
|
26
|
+
readonly rail: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type SidebarTarget = {
|
|
29
|
+
readonly kind: 'space';
|
|
30
|
+
readonly space: Space;
|
|
31
|
+
} | {
|
|
32
|
+
readonly kind: 'agent';
|
|
33
|
+
readonly entry: Entry;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: 'new';
|
|
36
|
+
} | {
|
|
37
|
+
readonly kind: 'menu';
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: 'order';
|
|
40
|
+
} | {
|
|
41
|
+
readonly kind: 'collapse';
|
|
42
|
+
} | {
|
|
43
|
+
readonly kind: 'split';
|
|
44
|
+
};
|
|
45
|
+
/** The glyph and colour of a dot, for the tests that check what a row says. */
|
|
46
|
+
export declare function dotStyle(dot: Dot, palette: Palette): {
|
|
47
|
+
glyph: string;
|
|
48
|
+
fg: number;
|
|
49
|
+
};
|
|
50
|
+
/** Where each part of the sidebar sits, in rows from its top. */
|
|
51
|
+
export interface Geometry {
|
|
52
|
+
readonly rail: boolean;
|
|
53
|
+
readonly height: number;
|
|
54
|
+
/** The rule between the two sections. */
|
|
55
|
+
readonly ruleY: number;
|
|
56
|
+
/** The "spaces" header; none on the rail. */
|
|
57
|
+
readonly headerY: number | undefined;
|
|
58
|
+
readonly spaceTop: number;
|
|
59
|
+
/** Rows a space takes: 2 in the full sidebar, 1 on the rail. */
|
|
60
|
+
readonly spaceStep: 1 | 2;
|
|
61
|
+
/** How many spaces fit. */
|
|
62
|
+
readonly spaceCap: number;
|
|
63
|
+
/** The "new" and "menu" row; none on the rail. */
|
|
64
|
+
readonly footerY: number | undefined;
|
|
65
|
+
readonly agentHeaderY: number | undefined;
|
|
66
|
+
readonly agentTop: number;
|
|
67
|
+
readonly agentCap: number;
|
|
68
|
+
/** The row with the collapse toggle. */
|
|
69
|
+
readonly toggleY: number;
|
|
70
|
+
}
|
|
71
|
+
/** The rule's row for a split: each section keeps at least three rows where the height allows. */
|
|
72
|
+
export declare function ruleRow(height: number, split: number): number;
|
|
73
|
+
export declare function geometry(height: number, footLines: number, split: number, rail: boolean): Geometry;
|
|
74
|
+
/** Every session of every space, in the order the agents list shows them. */
|
|
75
|
+
export declare function agentList(roster: Roster, order: AgentOrder): Entry[];
|
|
76
|
+
/** Keeps both scrolls in range and, if asked, brings the shown space and session into view. */
|
|
77
|
+
export declare function clampScroll(scroll: SidebarScroll, model: Pick<SidebarModel, 'roster' | 'order' | 'foot' | 'split' | 'rail'>, height: number, reveal?: boolean): SidebarScroll;
|
|
78
|
+
/** Which scrollable list sidebar row `y` is in. */
|
|
79
|
+
export declare function regionAt(model: Pick<SidebarModel, 'foot' | 'split' | 'rail'>, height: number, y: number): 'spaces' | 'agents' | undefined;
|
|
80
|
+
/** The label of the order toggle: the order the list is in now. */
|
|
81
|
+
export declare function orderLabel(order: AgentOrder): string;
|
|
82
|
+
/** What a click at a cell of the sidebar lands on. */
|
|
83
|
+
export declare function hitTest(model: Pick<SidebarModel, 'roster' | 'scroll' | 'order' | 'foot' | 'split' | 'rail'>, width: number, height: number, x: number, y: number): SidebarTarget | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* The second line of an agent: its tab (when the space has several), its name and
|
|
86
|
+
* its account. When they do not fit, the tab shrinks to its number, then the name
|
|
87
|
+
* gives way; the account is the part worth keeping.
|
|
88
|
+
*/
|
|
89
|
+
export declare function agentDetail(roster: Roster, entry: Entry, width?: number): string;
|
|
90
|
+
/** The thumb of a list's scrollbar: where it starts and how long it is, in rows; none if the list fits. */
|
|
91
|
+
export declare function scrollThumb(total: number, cap: number, scroll: number, rows: number): {
|
|
92
|
+
start: number;
|
|
93
|
+
length: number;
|
|
94
|
+
} | undefined;
|
|
95
|
+
export declare function drawSidebar(frame: Frame, rect: Rect, model: SidebarModel): void;
|
|
96
|
+
export declare function drawRule(frame: Frame, rect: Rect, palette: Palette): void;
|
|
97
|
+
/** What the session area says over a session that is gone. */
|
|
98
|
+
export declare function endedMessage(ending: 'finished' | 'stopped' | 'could-not-start' | undefined, prefixName: string): string;
|
|
99
|
+
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/spaces/sidebar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EAAE,KAAK,GAAG,EAA0B,MAAM,aAAa,CAAA;AAG9D,oFAAoF;AACpF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C,MAAM,WAAW,aAAa;IAC7B,6BAA6B;IAC7B,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C9D,wBAAgB,YAAY,CAC3B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,iBAAiB,GAAG,SAAS,EAC9D,UAAU,EAAE,MAAM,GAChB,MAAM,CAKR"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A private message from a hosted session to the host that owns its terminal.
|
|
3
|
+
*
|
|
4
|
+
* A session started by the spaces host cannot open the spaces screen itself: the
|
|
5
|
+
* host already is that screen. When its `←` gesture fires it writes this
|
|
6
|
+
* operating-system-command sequence to its own terminal instead; the host reads
|
|
7
|
+
* the session's output, strips the sequence and acts on it.
|
|
8
|
+
*/
|
|
9
|
+
/** What a hosted session can ask of its host. */
|
|
10
|
+
export type SignalName = 'zoom-out';
|
|
11
|
+
export declare function isSignalName(name: string): name is SignalName;
|
|
12
|
+
/** The bytes a session writes to ask its host to leave it. */
|
|
13
|
+
export declare function spacesSignal(name: SignalName): string;
|
|
14
|
+
/** True when this process is a session the spaces host started directly. */
|
|
15
|
+
export declare function hostedByHost(env: NodeJS.ProcessEnv, ppid: number): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Takes the sequences out of a session's output as it arrives. A sequence cut
|
|
18
|
+
* in two by the terminal is held back until its other half comes; anything that
|
|
19
|
+
* turns out not to be ours is released unchanged.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SignalFilter {
|
|
22
|
+
private carry;
|
|
23
|
+
feed(data: string): {
|
|
24
|
+
text: string;
|
|
25
|
+
signals: SignalName[];
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../src/spaces/signal.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,iDAAiD;AACjD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAA;AAInC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,UAAU,CAE7D;AAQD,8DAA8D;AAC9D,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAErD;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED;;;;GAIG;AACH,qBAAa,YAAY;IACxB,OAAO,CAAC,KAAK,CAAK;IAElB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,UAAU,EAAE,CAAA;KAAE;CAwC3D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PeerSessionState } from '@namzu/sdk';
|
|
2
|
+
/** What a session is doing, as the host knows it. */
|
|
3
|
+
export type SessionActivity = 'not-started' | 'starting' | 'working' | 'needs-approval' | 'idle' | 'exited';
|
|
4
|
+
/** The one dot a row shows. `done` is a finished turn nobody has looked at yet. */
|
|
5
|
+
export type Dot = 'blocked' | 'done' | 'working' | 'idle' | 'none';
|
|
6
|
+
/**
|
|
7
|
+
* Combines what the session's own terminal last reported with what the host sees
|
|
8
|
+
* of the process. A terminal that has not reported yet is `starting`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function deriveActivity(child: 'none' | 'starting' | 'running' | 'exited', reported: PeerSessionState | undefined): SessionActivity;
|
|
11
|
+
export declare function dotFor(activity: SessionActivity, unseen: boolean): Dot;
|
|
12
|
+
/** The most urgent dot of a group: blocked, then finished-unseen, then working, then idle. */
|
|
13
|
+
export declare function aggregateDot(dots: readonly Dot[]): Dot;
|
|
14
|
+
/** The plain words under a row, or nothing when the dot says enough. */
|
|
15
|
+
export declare function activityNote(activity: SessionActivity, unseen: boolean, ending?: 'finished' | 'stopped' | 'could-not-start'): string | undefined;
|
|
16
|
+
/** The note a space row carries when something in it wants a look. */
|
|
17
|
+
export declare function spaceNote(dot: Dot): string | undefined;
|
|
18
|
+
/** The note under a session whose account is out of allowance. */
|
|
19
|
+
export declare function limitedNote(until: number | undefined, now: number): string;
|
|
20
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/spaces/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAGlD,qDAAqD;AACrD,MAAM,MAAM,eAAe,GACxB,aAAa,GACb,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,MAAM,GACN,QAAQ,CAAA;AAEX,mFAAmF;AACnF,MAAM,MAAM,GAAG,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAIlE;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,EACjD,QAAQ,EAAE,gBAAgB,GAAG,SAAS,GACpC,eAAe,CAMjB;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,GAAG,GAAG,CAKtE;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,EAAE,GAAG,GAAG,CAGtD;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAC3B,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,iBAAiB,GACjD,MAAM,GAAG,SAAS,CAgBpB;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAItD;AAED,kEAAkE;AAClE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAG1E"}
|
|
@@ -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;AAC/F,MAAM,MAAM,SAAS,GAClB;IAAE,QAAQ,CAAC,OAA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Q,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":["../../src/spaces/tiling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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gB,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,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,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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,9 +14,24 @@
|
|
|
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;
|
|
20
|
+
private clipboardListener;
|
|
18
21
|
constructor(cols: number, rows: number, scrollback: number);
|
|
22
|
+
/** Calls `listener` with the payload (`selection;base64`) of each clipboard request the program prints. */
|
|
23
|
+
onClipboard(listener: (data: string) => void): void;
|
|
24
|
+
get cols(): number;
|
|
25
|
+
/** Lines the buffer holds, history included. */
|
|
26
|
+
bufferLength(): number;
|
|
27
|
+
/** The buffer line shown at the top row when scrolled `back` rows into the history. */
|
|
28
|
+
viewTop(back?: number): number;
|
|
29
|
+
/** Columns `from` up to `to` of a buffer line as text; blanks at the right are cut when `trim`. */
|
|
30
|
+
lineText(line: number, from: number, to: number, trim?: boolean): string;
|
|
31
|
+
/** Whether the line continues the one above it (the program's text wrapped, no new line was printed). */
|
|
32
|
+
lineWrapped(line: number): boolean;
|
|
33
|
+
/** Columns the cell takes: 2 for a wide character, 0 for the second half of one, 1 otherwise. */
|
|
34
|
+
cellWidth(line: number, col: number): number;
|
|
19
35
|
write(data: string): void;
|
|
20
36
|
/** Resolves once everything written so far has been parsed. */
|
|
21
37
|
settled(): Promise<void>;
|
|
@@ -24,8 +40,18 @@ export declare class HeadlessScreen {
|
|
|
24
40
|
offset(): number;
|
|
25
41
|
/** The screen as escape sequences that rebuild it, within `maxLength`. */
|
|
26
42
|
serialize(scrollback: number, maxLength: number): string;
|
|
43
|
+
/** Whether the program asked for bracketed paste, so the real terminal can be told to send it. */
|
|
44
|
+
bracketedPaste(): boolean;
|
|
45
|
+
/** Replies the emulator makes to the program's terminal queries (cursor position, attributes). */
|
|
46
|
+
onResponse(listener: (data: string) => void): {
|
|
47
|
+
dispose(): void;
|
|
48
|
+
};
|
|
27
49
|
/** The visible rows as plain text, trailing blanks trimmed. */
|
|
28
50
|
lines(): string[];
|
|
51
|
+
/** Rows of history above the visible screen. */
|
|
52
|
+
scrollbackSize(): number;
|
|
53
|
+
/** The visible screen as cells for the host's renderer, `back` rows into the scrollback. */
|
|
54
|
+
cells(back?: number): CellSource;
|
|
29
55
|
dispose(): void;
|
|
30
56
|
}
|
|
31
57
|
//# 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;IACf,OAAO,CAAC,iBAAiB,CAAsC;gBAEnD,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAiB1D,2GAA2G;IAC3G,WAAW,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAInD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,gDAAgD;IAChD,YAAY,IAAI,MAAM;IAItB,uFAAuF;IACvF,OAAO,CAAC,IAAI,SAAI,GAAG,MAAM;IAKzB,mGAAmG;IACnG,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,E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