@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.
Files changed (602) hide show
  1. package/CHANGELOG.md +179 -0
  2. package/README.md +4 -2
  3. package/dist/bin.js +1 -1
  4. package/dist/chunks/acp-XSAUUT2D.js +7648 -0
  5. package/dist/chunks/acp-XSAUUT2D.js.map +6 -0
  6. package/dist/chunks/{activity-command-Y5ZLCQ63.js → activity-command-DB4DREW7.js} +16 -15
  7. package/dist/chunks/activity-command-DB4DREW7.js.map +6 -0
  8. package/dist/chunks/{add-F7M57FGR.js → add-NVXRVUGY.js} +27 -21
  9. package/dist/chunks/add-NVXRVUGY.js.map +6 -0
  10. package/dist/chunks/{agent-AFX2UZU5.js → agent-6TD66IMV.js} +43 -34
  11. package/dist/chunks/agent-session-3A5K5VK3.js +69 -0
  12. package/dist/chunks/{archive-6NM6DYAT.js → archive-A3X7KX2U.js} +11 -10
  13. package/dist/chunks/archive-A3X7KX2U.js.map +6 -0
  14. package/dist/chunks/{bin-main-I6CHRYYQ.js → bin-main-5PYV7WYI.js} +11 -11
  15. package/dist/chunks/binding-EMMG5PAE.js +17 -0
  16. package/dist/chunks/{browser-OPMOTWTV.js → browser-FUFFJBRR.js} +6 -6
  17. package/dist/chunks/{chat-KGVPXQS6.js → chat-M653DEAF.js} +20 -19
  18. package/dist/chunks/chat-M653DEAF.js.map +6 -0
  19. package/dist/chunks/{chunk-TX2PUHTP.js → chunk-24FBGXYR.js} +3 -3
  20. package/dist/chunks/{chunk-2NGXQQPP.js → chunk-2OAD3CZE.js} +3 -3
  21. package/dist/chunks/chunk-2YCPLLUW.js +61 -0
  22. package/dist/chunks/chunk-2YCPLLUW.js.map +6 -0
  23. package/dist/chunks/{chunk-JCUPTKQY.js → chunk-325X27UO.js} +4 -4
  24. package/dist/chunks/{chunk-REDD2WY7.js → chunk-43HR3AF5.js} +2 -2
  25. package/dist/chunks/{chunk-DESOZLEL.js → chunk-43PTHA5N.js} +2 -2
  26. package/dist/chunks/{chunk-T5POXPXY.js → chunk-46OOPRR6.js} +3 -3
  27. package/dist/chunks/chunk-4DVCHAWN.js +219 -0
  28. package/dist/chunks/chunk-4DVCHAWN.js.map +6 -0
  29. package/dist/chunks/chunk-667W6Z5W.js +309 -0
  30. package/dist/chunks/chunk-667W6Z5W.js.map +6 -0
  31. package/dist/chunks/chunk-6HTC5TQ3.js +89 -0
  32. package/dist/chunks/chunk-6HTC5TQ3.js.map +6 -0
  33. package/dist/chunks/chunk-6PDIDZGX.js +363 -0
  34. package/dist/chunks/chunk-6PDIDZGX.js.map +6 -0
  35. package/dist/chunks/{chunk-UHPRMPWX.js → chunk-6TT7NXLP.js} +182 -139
  36. package/dist/chunks/chunk-6TT7NXLP.js.map +6 -0
  37. package/dist/chunks/{chunk-EFQ6FUFZ.js → chunk-6ZEHXLF7.js} +2 -2
  38. package/dist/chunks/{chunk-RSRJQB6Q.js → chunk-7DR7EU3J.js} +2078 -850
  39. package/dist/chunks/chunk-7DR7EU3J.js.map +6 -0
  40. package/dist/chunks/chunk-7NJAEWFK.js +153 -0
  41. package/dist/chunks/chunk-7NJAEWFK.js.map +6 -0
  42. package/dist/chunks/{chunk-I32JTWDW.js → chunk-7TBETDTX.js} +2 -2
  43. package/dist/chunks/{chunk-465CVUN4.js → chunk-ADCVLGQO.js} +3 -3
  44. package/dist/chunks/{chunk-W5QFVC74.js → chunk-AHNXQAYZ.js} +91 -56
  45. package/dist/chunks/chunk-AHNXQAYZ.js.map +6 -0
  46. package/dist/chunks/{chunk-W4E2N7TY.js → chunk-ANHFJD66.js} +4 -4
  47. package/dist/chunks/{chunk-UGAT33T5.js → chunk-B6INWHLR.js} +3 -3
  48. package/dist/chunks/{chunk-Y44FAVKA.js → chunk-BICC735N.js} +3 -3
  49. package/dist/chunks/{chunk-UC3ZACVN.js → chunk-BOM64EUQ.js} +2 -2
  50. package/dist/chunks/{chunk-RFMODICJ.js → chunk-C4MAQ64X.js} +84 -42
  51. package/dist/chunks/chunk-C4MAQ64X.js.map +6 -0
  52. package/dist/chunks/chunk-CDDS3UKB.js +425 -0
  53. package/dist/chunks/chunk-CDDS3UKB.js.map +6 -0
  54. package/dist/chunks/{chunk-CTN4O42X.js → chunk-D23EJNO5.js} +3 -3
  55. package/dist/chunks/{chunk-G5RAECIB.js → chunk-E2MNVA3X.js} +2 -2
  56. package/dist/chunks/{chunk-BR6EWAKQ.js → chunk-E3FA5H3Q.js} +5 -5
  57. package/dist/chunks/{chunk-LUSUJZR2.js → chunk-EFU2OFEK.js} +2 -2
  58. package/dist/chunks/chunk-EXFSMYH4.js +83 -0
  59. package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
  60. package/dist/chunks/{chunk-EFEZWLZC.js → chunk-FUJSGQYW.js} +17 -13
  61. package/dist/chunks/chunk-FUJSGQYW.js.map +6 -0
  62. package/dist/chunks/{chunk-FPLDTTM2.js → chunk-FZR4XULA.js} +6 -6
  63. package/dist/chunks/{chunk-YAEHAYI4.js → chunk-G5FWVYK2.js} +47 -9
  64. package/dist/chunks/chunk-G5FWVYK2.js.map +6 -0
  65. package/dist/chunks/{chunk-6LLJQ3KY.js → chunk-G6YSAHKC.js} +4 -3
  66. package/dist/chunks/chunk-G6YSAHKC.js.map +6 -0
  67. package/dist/chunks/{chunk-JSFF2HGX.js → chunk-GAEZQRQI.js} +3 -3
  68. package/dist/chunks/{chunk-UP3SWACV.js → chunk-GCFXQSN6.js} +2 -2
  69. package/dist/chunks/{chunk-XPS3W7FC.js → chunk-GMUWAUKQ.js} +2 -2
  70. package/dist/chunks/chunk-GWGIAZLZ.js +5853 -0
  71. package/dist/chunks/chunk-GWGIAZLZ.js.map +6 -0
  72. package/dist/chunks/chunk-H6AUN2YD.js +290 -0
  73. package/dist/chunks/chunk-H6AUN2YD.js.map +6 -0
  74. package/dist/chunks/{chunk-KHM2XON5.js → chunk-HFD2VRQP.js} +18 -4
  75. package/dist/chunks/chunk-HFD2VRQP.js.map +6 -0
  76. package/dist/chunks/{chunk-CRWNJ62V.js → chunk-HGIIAAEG.js} +5 -6
  77. package/dist/chunks/chunk-HGIIAAEG.js.map +6 -0
  78. package/dist/chunks/{chunk-WLAI3VCE.js → chunk-HH3NBBBE.js} +2 -2
  79. package/dist/chunks/{chunk-WPNT6IGU.js → chunk-HV2JFRSE.js} +2 -2
  80. package/dist/chunks/{chunk-ZXKN4TWP.js → chunk-IRUDNBAR.js} +242 -447
  81. package/dist/chunks/chunk-IRUDNBAR.js.map +6 -0
  82. package/dist/chunks/chunk-IYEDXZQZ.js +4322 -0
  83. package/dist/chunks/chunk-IYEDXZQZ.js.map +6 -0
  84. package/dist/chunks/{chunk-AE4LOPZF.js → chunk-J2FGTLZV.js} +2 -2
  85. package/dist/chunks/{chunk-T2PF65KB.js → chunk-JAB62RI5.js} +2 -2
  86. package/dist/chunks/{chunk-HXZ2JXCO.js → chunk-JKPUOSDC.js} +2 -2
  87. package/dist/chunks/{chunk-GSYPRZZU.js → chunk-K5FQ4G64.js} +2 -2
  88. package/dist/chunks/{chunk-NS7EU37U.js → chunk-KVCYYXCS.js} +2 -2
  89. package/dist/chunks/{chunk-PWOG3OMH.js → chunk-KZ5WYSA6.js} +9 -9
  90. package/dist/chunks/chunk-L2WEBN6A.js +49 -0
  91. package/dist/chunks/chunk-L2WEBN6A.js.map +6 -0
  92. package/dist/chunks/{chunk-7U36A4WQ.js → chunk-L6QJZZCJ.js} +55 -5
  93. package/dist/chunks/chunk-L6QJZZCJ.js.map +6 -0
  94. package/dist/chunks/{chunk-ORVWGSLG.js → chunk-LHZSSQ6K.js} +4 -4
  95. package/dist/chunks/{chunk-2NFPIARP.js → chunk-LR4QQMJH.js} +4 -4
  96. package/dist/chunks/{chunk-3NJPNX6V.js → chunk-LVVD32KJ.js} +14 -4
  97. package/dist/chunks/chunk-LVVD32KJ.js.map +6 -0
  98. package/dist/chunks/{chunk-JAYPFJGZ.js → chunk-M7LCVDP3.js} +9 -2
  99. package/dist/chunks/chunk-M7LCVDP3.js.map +6 -0
  100. package/dist/chunks/{chunk-JV3LONAU.js → chunk-MDK4RMBQ.js} +9 -3
  101. package/dist/chunks/{chunk-JV3LONAU.js.map → chunk-MDK4RMBQ.js.map} +1 -1
  102. package/dist/chunks/{chunk-QNTR7X7D.js → chunk-MKRYUMLP.js} +6 -6
  103. package/dist/chunks/{chunk-O4MFP726.js → chunk-MMZHUQZQ.js} +4427 -1413
  104. package/dist/chunks/chunk-MMZHUQZQ.js.map +6 -0
  105. package/dist/chunks/{chunk-WKUTR7YW.js → chunk-MYSU54EZ.js} +86 -21
  106. package/dist/chunks/chunk-MYSU54EZ.js.map +6 -0
  107. package/dist/chunks/{chunk-5UB2LLPG.js → chunk-NUNOIP4Y.js} +2 -2
  108. package/dist/chunks/{chunk-ZRBGY4SL.js → chunk-NXX6C3WS.js} +2 -2
  109. package/dist/chunks/{chunk-ZNYKZ3MI.js → chunk-OENL667J.js} +2 -2
  110. package/dist/chunks/{chunk-LS75R55C.js → chunk-OMRU22BQ.js} +4 -4
  111. package/dist/chunks/{chunk-BLM6IQS4.js → chunk-P6FEQPES.js} +5 -5
  112. package/dist/chunks/{chunk-BIGRB2H4.js → chunk-P6RUYL3F.js} +3 -3
  113. package/dist/chunks/chunk-P7MNE6YP.js +456 -0
  114. package/dist/chunks/chunk-P7MNE6YP.js.map +6 -0
  115. package/dist/chunks/{chunk-6Z2ZJ4BA.js → chunk-RJQ6WQYX.js} +358 -32
  116. package/dist/chunks/chunk-RJQ6WQYX.js.map +6 -0
  117. package/dist/chunks/{chunk-YPRKTJ5P.js → chunk-S2UDKXWH.js} +2 -2
  118. package/dist/chunks/chunk-S766UWAQ.js +227 -0
  119. package/dist/chunks/chunk-S766UWAQ.js.map +6 -0
  120. package/dist/chunks/chunk-S7WRWA25.js +33 -0
  121. package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
  122. package/dist/chunks/{chunk-XFNCCDJK.js → chunk-TFOIA3U3.js} +2 -2
  123. package/dist/chunks/{chunk-NPZY5OJ5.js → chunk-THJQXERD.js} +8 -8
  124. package/dist/chunks/{chunk-ZUN2WRCB.js → chunk-THQAGFMO.js} +17 -17
  125. package/dist/chunks/{chunk-FKIO77IY.js → chunk-THUX2WOG.js} +12 -12
  126. package/dist/chunks/{chunk-AY7B43MK.js → chunk-TKIWAXRU.js} +13 -13
  127. package/dist/chunks/{chunk-QV43JSBP.js → chunk-TUF4NNJV.js} +2 -2
  128. package/dist/chunks/{chunk-KK2L4FD2.js → chunk-U33GIKBK.js} +4 -4
  129. package/dist/chunks/{chunk-WLUGKIYQ.js → chunk-U3EQTU4G.js} +4 -4
  130. package/dist/chunks/{chunk-VR4MTSMH.js → chunk-U6U472VN.js} +3 -3
  131. package/dist/chunks/chunk-VAP6YMB6.js +362 -0
  132. package/dist/chunks/chunk-VAP6YMB6.js.map +6 -0
  133. package/dist/chunks/{chunk-RV5QY3IY.js → chunk-VGUU6E6X.js} +6 -6
  134. package/dist/chunks/chunk-VHFPIYVY.js +63 -0
  135. package/dist/chunks/chunk-VHFPIYVY.js.map +6 -0
  136. package/dist/chunks/{chunk-LN26A356.js → chunk-VY377HAA.js} +4 -4
  137. package/dist/chunks/{chunk-HYFX32Y3.js → chunk-WG32TSVL.js} +3 -3
  138. package/dist/chunks/{chunk-ZATO2QOS.js → chunk-WSIMHBEQ.js} +2 -2
  139. package/dist/chunks/{chunk-JH3SDABI.js → chunk-X4WCRRZV.js} +6 -6
  140. package/dist/chunks/chunk-X7WLWVR7.js +189 -0
  141. package/dist/chunks/chunk-X7WLWVR7.js.map +6 -0
  142. package/dist/chunks/{chunk-2OVZNENW.js → chunk-XH5YF2YX.js} +2 -2
  143. package/dist/chunks/chunk-Y2PZNQH5.js +413 -0
  144. package/dist/chunks/chunk-Y2PZNQH5.js.map +6 -0
  145. package/dist/chunks/{chunk-CMAZ3DYB.js → chunk-YLNQLDMP.js} +5 -5
  146. package/dist/chunks/chunk-YOWYTBJS.js +96 -0
  147. package/dist/chunks/chunk-YOWYTBJS.js.map +6 -0
  148. package/dist/chunks/{cli-runtime-HTTDQPEZ.js → cli-runtime-QWBGE2VF.js} +16 -15
  149. package/dist/chunks/cli-runtime-QWBGE2VF.js.map +6 -0
  150. package/dist/chunks/{commands-ZD2L5QMI.js → commands-LVUUZ6LF.js} +5 -5
  151. package/dist/chunks/{crash-report-2IRIZSBD.js → crash-report-PGXMRS5P.js} +8 -8
  152. package/dist/chunks/{dist-NL7WG7PX.js → dist-6HN2ZMLV.js} +2 -2
  153. package/dist/chunks/{dist-45IFTDJW.js → dist-JJANJMY5.js} +162 -13
  154. package/dist/chunks/dist-JJANJMY5.js.map +6 -0
  155. package/dist/chunks/{dist-GSYFGRQT.js → dist-JRBSW53E.js} +2 -2
  156. package/dist/chunks/{dist-OJTB6QLR.js → dist-NSCNMOX7.js} +2 -2
  157. package/dist/chunks/{dist-FNGLTQIG.js → dist-TC6H7TPQ.js} +78 -2
  158. package/dist/chunks/{dist-TWYNAZDN.js → dist-V4SNHHMB.js} +2 -2
  159. package/dist/chunks/{dist-RQJEJN3Z.js → dist-VON3NRHE.js} +35 -6
  160. package/dist/chunks/dist-VON3NRHE.js.map +6 -0
  161. package/dist/chunks/{dist-OCZJJFHF.js → dist-VV3V36IP.js} +2 -2
  162. package/dist/chunks/{doctor-NKPCWPB4.js → doctor-P7L35KGN.js} +20 -16
  163. package/dist/chunks/{drain-YTSVAQP5.js → drain-HOHRXIYY.js} +14 -14
  164. package/dist/chunks/entry-L7XZIE7J.js +233 -0
  165. package/dist/chunks/entry-L7XZIE7J.js.map +6 -0
  166. package/dist/chunks/{eval-ILFXDQUQ.js → eval-2F473JAC.js} +2 -2
  167. package/dist/chunks/{exec-3JDAB34N.js → exec-VCM4AL2S.js} +65 -51
  168. package/dist/chunks/exec-VCM4AL2S.js.map +6 -0
  169. package/dist/chunks/{github-FH7PPWVW.js → github-OFCHQMQQ.js} +5 -5
  170. package/dist/chunks/{home-5OIZIDIT.js → home-R6WCBSOT.js} +3 -3
  171. package/dist/chunks/host-JGPJVLTC.js +28 -0
  172. package/dist/chunks/{host-queries-SO2NOQRR.js → host-queries-QWV47CFK.js} +17 -16
  173. package/dist/chunks/host-queries-QWV47CFK.js.map +6 -0
  174. package/dist/chunks/{learn-RHNMJ4BD.js → learn-3UPHM5OI.js} +14 -14
  175. package/dist/chunks/{learn-builtin-UQ3MWGK6.js → learn-builtin-3Q4BJFCF.js} +20 -20
  176. package/dist/chunks/{lifecycle-RTDYXKBW.js → lifecycle-EJLVISCU.js} +37 -30
  177. package/dist/chunks/{list-G6OA34RL.js → list-DQJBF4AB.js} +18 -17
  178. package/dist/chunks/list-DQJBF4AB.js.map +6 -0
  179. package/dist/chunks/{live-44HBQCQY.js → live-IWDOVSLG.js} +18 -14
  180. package/dist/chunks/login-B2PHE6IL.js +34 -0
  181. package/dist/chunks/{logs-22QAEH2Q.js → logs-5UTV3FMG.js} +4 -4
  182. package/dist/chunks/{mcp-EXFVIHPJ.js → mcp-JN36OQLX.js} +32 -26
  183. package/dist/chunks/mcp-JN36OQLX.js.map +6 -0
  184. package/dist/chunks/{message-command-B4L2W4YZ.js → message-command-RMLQ2PU5.js} +54 -45
  185. package/dist/chunks/message-command-RMLQ2PU5.js.map +6 -0
  186. package/dist/chunks/mouse-WFSJSLQD.js +22 -0
  187. package/dist/chunks/open-LDBJL43A.js +20 -0
  188. package/dist/chunks/{operator-tools-TEP4UTI6.js → operator-tools-NA7PLRIP.js} +15 -14
  189. package/dist/chunks/operator-tools-NA7PLRIP.js.map +6 -0
  190. package/dist/chunks/{output-schema-FZXJ7V33.js → output-schema-UKYWRZPS.js} +3 -3
  191. package/dist/chunks/{pal-BUDEBIBJ.js → pal-MAVUNYMB.js} +20 -15
  192. package/dist/chunks/pal-MAVUNYMB.js.map +6 -0
  193. package/dist/chunks/palette-WDPS7W6Q.js +15 -0
  194. package/dist/chunks/peers-FBTQW2SY.js +18 -0
  195. package/dist/chunks/prefix-MLAG4KTK.js +14 -0
  196. package/dist/chunks/{providers-EQ32NZAT.js → providers-M75ET3GT.js} +45 -26
  197. package/dist/chunks/pty-VMUEEJRN.js +29 -0
  198. package/dist/chunks/pty-VMUEEJRN.js.map +6 -0
  199. package/dist/chunks/{resident-FSUGNG56.js → resident-URNRPE2S.js} +35 -33
  200. package/dist/chunks/resident-URNRPE2S.js.map +6 -0
  201. package/dist/chunks/resume-7B3EHDJ7.js +24 -0
  202. package/dist/chunks/resume-7B3EHDJ7.js.map +6 -0
  203. package/dist/chunks/{resume-command-DHPXCZVL.js → resume-command-5QGHV6WR.js} +4 -4
  204. package/dist/chunks/resume-command-5QGHV6WR.js.map +6 -0
  205. package/dist/chunks/{schedule-OJMZEWJG.js → schedule-BK3WF2VK.js} +8 -8
  206. package/dist/chunks/{service-EP2QHCK7.js → service-VWASFP3R.js} +38 -31
  207. package/dist/chunks/service-VWASFP3R.js.map +6 -0
  208. package/dist/chunks/{session-step-44XBOUDV.js → session-step-DORV5FER.js} +16 -16
  209. package/dist/chunks/session-step-DORV5FER.js.map +6 -0
  210. package/dist/chunks/{skills-YHAQXVP2.js → skills-TDDPMTQI.js} +12 -12
  211. package/dist/chunks/spaces-AEOU6MSZ.js +241 -0
  212. package/dist/chunks/spaces-AEOU6MSZ.js.map +6 -0
  213. package/dist/chunks/{start-check-KVZFDBD3.js → start-check-N4TPV2TM.js} +2 -2
  214. package/dist/chunks/start-check-N4TPV2TM.js.map +6 -0
  215. package/dist/chunks/{state-NXFKMBOX.js → state-SHLWYVZU.js} +2 -2
  216. package/dist/chunks/{store-JLTSSGKL.js → store-75YZOOZI.js} +4 -4
  217. package/dist/chunks/store-75YZOOZI.js.map +6 -0
  218. package/dist/chunks/{store-QNY242NN.js → store-CQVUIU7K.js} +6 -6
  219. package/dist/chunks/store-CQVUIU7K.js.map +6 -0
  220. package/dist/chunks/{store-KFJWAELA.js → store-GUSFCKJA.js} +13 -10
  221. package/dist/chunks/store-GUSFCKJA.js.map +6 -0
  222. package/dist/chunks/store-Z5H6LYVE.js +17 -0
  223. package/dist/chunks/store-Z5H6LYVE.js.map +6 -0
  224. package/dist/chunks/{tui-L5GKR237.js → tui-PGHWYFN4.js} +9702 -7547
  225. package/dist/chunks/tui-PGHWYFN4.js.map +6 -0
  226. package/dist/chunks/{upgrade-PROVWX55.js → upgrade-RHPZQ33L.js} +6 -6
  227. package/dist/chunks/{worktree-ELHDXX4X.js → worktree-5IYFN33C.js} +13 -12
  228. package/dist/chunks/worktree-5IYFN33C.js.map +6 -0
  229. package/dist/cli.d.ts.map +1 -1
  230. package/dist/commands/exec-json.d.ts.map +1 -1
  231. package/dist/commands/login.d.ts +2 -2
  232. package/dist/commands/login.d.ts.map +1 -1
  233. package/dist/commands/manifest.d.ts +1 -0
  234. package/dist/commands/manifest.d.ts.map +1 -1
  235. package/dist/commands/spaces.d.ts +46 -0
  236. package/dist/commands/spaces.d.ts.map +1 -0
  237. package/dist/config/load.d.ts +6 -1
  238. package/dist/config/load.d.ts.map +1 -1
  239. package/dist/config/model-environment.d.ts.map +1 -1
  240. package/dist/config/schema.d.ts +27 -0
  241. package/dist/config/schema.d.ts.map +1 -1
  242. package/dist/context/environment.d.ts.map +1 -1
  243. package/dist/doctor/checks/index.d.ts +2 -1
  244. package/dist/doctor/checks/index.d.ts.map +1 -1
  245. package/dist/doctor/checks/terminal.d.ts +12 -0
  246. package/dist/doctor/checks/terminal.d.ts.map +1 -0
  247. package/dist/index.js +28 -23
  248. package/dist/integrations/accounts/activity.d.ts +39 -0
  249. package/dist/integrations/accounts/activity.d.ts.map +1 -0
  250. package/dist/integrations/accounts/binding.d.ts +30 -0
  251. package/dist/integrations/accounts/binding.d.ts.map +1 -0
  252. package/dist/integrations/accounts/codex-login.d.ts +33 -0
  253. package/dist/integrations/accounts/codex-login.d.ts.map +1 -0
  254. package/dist/integrations/accounts/host-facts.d.ts +22 -0
  255. package/dist/integrations/accounts/host-facts.d.ts.map +1 -0
  256. package/dist/integrations/accounts/open.d.ts +23 -0
  257. package/dist/integrations/accounts/open.d.ts.map +1 -0
  258. package/dist/integrations/accounts/rows.d.ts +45 -0
  259. package/dist/integrations/accounts/rows.d.ts.map +1 -0
  260. package/dist/integrations/clipboard/copy.d.ts +94 -0
  261. package/dist/integrations/clipboard/copy.d.ts.map +1 -0
  262. package/dist/integrations/clipboard/image-fit.d.ts +91 -0
  263. package/dist/integrations/clipboard/image-fit.d.ts.map +1 -0
  264. package/dist/integrations/clipboard/image-paths.d.ts +56 -0
  265. package/dist/integrations/clipboard/image-paths.d.ts.map +1 -0
  266. package/dist/integrations/clipboard/image.d.ts +80 -15
  267. package/dist/integrations/clipboard/image.d.ts.map +1 -1
  268. package/dist/integrations/clipboard/text-read.d.ts +28 -0
  269. package/dist/integrations/clipboard/text-read.d.ts.map +1 -0
  270. package/dist/integrations/clipboard/text.d.ts +16 -1
  271. package/dist/integrations/clipboard/text.d.ts.map +1 -1
  272. package/dist/integrations/clipboard/wsl.d.ts +38 -0
  273. package/dist/integrations/clipboard/wsl.d.ts.map +1 -0
  274. package/dist/integrations/outstanding/collect.d.ts +51 -0
  275. package/dist/integrations/outstanding/collect.d.ts.map +1 -0
  276. package/dist/integrations/outstanding/facts.d.ts +23 -0
  277. package/dist/integrations/outstanding/facts.d.ts.map +1 -0
  278. package/dist/integrations/outstanding/note.d.ts +26 -0
  279. package/dist/integrations/outstanding/note.d.ts.map +1 -0
  280. package/dist/integrations/outstanding/progress-notices.d.ts +66 -0
  281. package/dist/integrations/outstanding/progress-notices.d.ts.map +1 -0
  282. package/dist/integrations/outstanding/status.d.ts +104 -0
  283. package/dist/integrations/outstanding/status.d.ts.map +1 -0
  284. package/dist/integrations/peers/runtime.d.ts +12 -0
  285. package/dist/integrations/peers/runtime.d.ts.map +1 -1
  286. package/dist/integrations/providers/anthropic-endpoint.d.ts +34 -0
  287. package/dist/integrations/providers/anthropic-endpoint.d.ts.map +1 -0
  288. package/dist/integrations/providers/codex-account.d.ts +30 -0
  289. package/dist/integrations/providers/codex-account.d.ts.map +1 -0
  290. package/dist/integrations/providers/codex-oauth.d.ts +12 -0
  291. package/dist/integrations/providers/codex-oauth.d.ts.map +1 -1
  292. package/dist/integrations/providers/connections.d.ts +8 -0
  293. package/dist/integrations/providers/connections.d.ts.map +1 -1
  294. package/dist/integrations/providers/credential-store.d.ts +2 -0
  295. package/dist/integrations/providers/credential-store.d.ts.map +1 -1
  296. package/dist/integrations/providers/index.d.ts +3 -1
  297. package/dist/integrations/providers/index.d.ts.map +1 -1
  298. package/dist/integrations/providers/key-migration.d.ts +22 -0
  299. package/dist/integrations/providers/key-migration.d.ts.map +1 -0
  300. package/dist/integrations/providers/model-reasoning.d.ts +1 -1
  301. package/dist/integrations/providers/model-reasoning.d.ts.map +1 -1
  302. package/dist/integrations/providers/preferences.d.ts +8 -0
  303. package/dist/integrations/providers/preferences.d.ts.map +1 -1
  304. package/dist/integrations/providers/registry.d.ts.map +1 -1
  305. package/dist/integrations/resident/runner-worker.js +25 -24
  306. package/dist/integrations/resident/runner-worker.js.map +1 -1
  307. package/dist/integrations/sessions/store.d.ts +13 -1
  308. package/dist/integrations/sessions/store.d.ts.map +1 -1
  309. package/dist/integrations/subagents/activity.d.ts +6 -0
  310. package/dist/integrations/subagents/activity.d.ts.map +1 -1
  311. package/dist/integrations/subagents/idle-watch.d.ts +30 -0
  312. package/dist/integrations/subagents/idle-watch.d.ts.map +1 -0
  313. package/dist/integrations/subagents/runtime.d.ts +23 -0
  314. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  315. package/dist/integrations/subagents/saved-agents.d.ts +3 -1
  316. package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
  317. package/dist/integrations/subagents/task-observation.d.ts +20 -0
  318. package/dist/integrations/subagents/task-observation.d.ts.map +1 -0
  319. package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
  320. package/dist/integrations/workflows/host.d.ts +8 -1
  321. package/dist/integrations/workflows/host.d.ts.map +1 -1
  322. package/dist/integrations/workflows/notice.d.ts +1 -1
  323. package/dist/integrations/workflows/notice.d.ts.map +1 -1
  324. package/dist/integrations/workflows/offering.d.ts.map +1 -1
  325. package/dist/integrations/workflows/orphans.d.ts +38 -0
  326. package/dist/integrations/workflows/orphans.d.ts.map +1 -0
  327. package/dist/integrations/workflows/registry.d.ts +12 -1
  328. package/dist/integrations/workflows/registry.d.ts.map +1 -1
  329. package/dist/integrations/workflows/resume.d.ts +93 -0
  330. package/dist/integrations/workflows/resume.d.ts.map +1 -0
  331. package/dist/integrations/workflows/view.d.ts +13 -0
  332. package/dist/integrations/workflows/view.d.ts.map +1 -1
  333. package/dist/permissions/image-read.d.ts +20 -0
  334. package/dist/permissions/image-read.d.ts.map +1 -0
  335. package/dist/permissions/path-rules.d.ts.map +1 -1
  336. package/dist/rounds/gates.d.ts +63 -0
  337. package/dist/rounds/gates.d.ts.map +1 -0
  338. package/dist/rounds/goal-admission.d.ts +55 -0
  339. package/dist/rounds/goal-admission.d.ts.map +1 -0
  340. package/dist/rounds/queue.d.ts +39 -0
  341. package/dist/rounds/queue.d.ts.map +1 -0
  342. package/dist/rounds/types.d.ts +105 -0
  343. package/dist/rounds/types.d.ts.map +1 -0
  344. package/dist/rounds/wake-ledger.d.ts +126 -0
  345. package/dist/rounds/wake-ledger.d.ts.map +1 -0
  346. package/dist/spaces/git.d.ts +27 -0
  347. package/dist/spaces/git.d.ts.map +1 -0
  348. package/dist/spaces/goto.d.ts +31 -0
  349. package/dist/spaces/goto.d.ts.map +1 -0
  350. package/dist/spaces/host.d.ts +446 -0
  351. package/dist/spaces/host.d.ts.map +1 -0
  352. package/dist/spaces/input.d.ts +87 -0
  353. package/dist/spaces/input.d.ts.map +1 -0
  354. package/dist/spaces/keymap.d.ts +30 -0
  355. package/dist/spaces/keymap.d.ts.map +1 -0
  356. package/dist/spaces/layout.d.ts +34 -0
  357. package/dist/spaces/layout.d.ts.map +1 -0
  358. package/dist/spaces/mouse.d.ts +34 -0
  359. package/dist/spaces/mouse.d.ts.map +1 -0
  360. package/dist/spaces/overlay.d.ts +105 -0
  361. package/dist/spaces/overlay.d.ts.map +1 -0
  362. package/dist/spaces/palette.d.ts +35 -0
  363. package/dist/spaces/palette.d.ts.map +1 -0
  364. package/dist/spaces/peers.d.ts +19 -0
  365. package/dist/spaces/peers.d.ts.map +1 -0
  366. package/dist/spaces/prefix.d.ts +19 -0
  367. package/dist/spaces/prefix.d.ts.map +1 -0
  368. package/dist/spaces/roster.d.ts +111 -0
  369. package/dist/spaces/roster.d.ts.map +1 -0
  370. package/dist/spaces/selection.d.ts +52 -0
  371. package/dist/spaces/selection.d.ts.map +1 -0
  372. package/dist/spaces/session.d.ts +83 -0
  373. package/dist/spaces/session.d.ts.map +1 -0
  374. package/dist/spaces/sidebar.d.ts +99 -0
  375. package/dist/spaces/sidebar.d.ts.map +1 -0
  376. package/dist/spaces/signal.d.ts +28 -0
  377. package/dist/spaces/signal.d.ts.map +1 -0
  378. package/dist/spaces/status.d.ts +20 -0
  379. package/dist/spaces/status.d.ts.map +1 -0
  380. package/dist/spaces/store.d.ts +69 -0
  381. package/dist/spaces/store.d.ts.map +1 -0
  382. package/dist/spaces/tabbar.d.ts +36 -0
  383. package/dist/spaces/tabbar.d.ts.map +1 -0
  384. package/dist/spaces/tiling.d.ts +90 -0
  385. package/dist/spaces/tiling.d.ts.map +1 -0
  386. package/dist/terminal/host/cell.d.ts +35 -0
  387. package/dist/terminal/host/cell.d.ts.map +1 -0
  388. package/dist/terminal/host/frame.d.ts +64 -0
  389. package/dist/terminal/host/frame.d.ts.map +1 -0
  390. package/dist/terminal/host/index.d.ts +5 -0
  391. package/dist/terminal/host/index.d.ts.map +1 -0
  392. package/dist/terminal/host/writer.d.ts +21 -0
  393. package/dist/terminal/host/writer.d.ts.map +1 -0
  394. package/dist/terminal/host/xterm-source.d.ts +18 -0
  395. package/dist/terminal/host/xterm-source.d.ts.map +1 -0
  396. package/dist/terminal/pty.d.ts.map +1 -1
  397. package/dist/terminal/screen.d.ts +26 -0
  398. package/dist/terminal/screen.d.ts.map +1 -1
  399. package/dist/tui/App.d.ts +66 -15
  400. package/dist/tui/App.d.ts.map +1 -1
  401. package/dist/tui/BackgroundJobsPanel.d.ts +9 -7
  402. package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
  403. package/dist/tui/Composer.d.ts +14 -1
  404. package/dist/tui/Composer.d.ts.map +1 -1
  405. package/dist/tui/LiveActivity.d.ts.map +1 -1
  406. package/dist/tui/PermissionOverlay.d.ts.map +1 -1
  407. package/dist/tui/Picker.d.ts.map +1 -1
  408. package/dist/tui/ResumePicker.d.ts.map +1 -1
  409. package/dist/tui/StatusBar.d.ts +9 -7
  410. package/dist/tui/StatusBar.d.ts.map +1 -1
  411. package/dist/tui/TaskList.d.ts +15 -2
  412. package/dist/tui/TaskList.d.ts.map +1 -1
  413. package/dist/tui/TextPrompt.d.ts +5 -1
  414. package/dist/tui/TextPrompt.d.ts.map +1 -1
  415. package/dist/tui/account-flow.d.ts +126 -0
  416. package/dist/tui/account-flow.d.ts.map +1 -0
  417. package/dist/tui/agent.d.ts +38 -10
  418. package/dist/tui/agent.d.ts.map +1 -1
  419. package/dist/tui/background-view.d.ts +46 -0
  420. package/dist/tui/background-view.d.ts.map +1 -0
  421. package/dist/tui/compaction-rows.d.ts.map +1 -1
  422. package/dist/tui/computer-use-screen-approval.d.ts +10 -0
  423. package/dist/tui/computer-use-screen-approval.d.ts.map +1 -0
  424. package/dist/tui/context-grid.d.ts +2 -0
  425. package/dist/tui/context-grid.d.ts.map +1 -1
  426. package/dist/tui/context-usage.d.ts +18 -0
  427. package/dist/tui/context-usage.d.ts.map +1 -1
  428. package/dist/tui/credential-entry.d.ts +7 -6
  429. package/dist/tui/credential-entry.d.ts.map +1 -1
  430. package/dist/tui/hypermode.d.ts +1 -3
  431. package/dist/tui/hypermode.d.ts.map +1 -1
  432. package/dist/tui/index.d.ts.map +1 -1
  433. package/dist/tui/keymap.d.ts +10 -1
  434. package/dist/tui/keymap.d.ts.map +1 -1
  435. package/dist/tui/launch-settings.d.ts +5 -2
  436. package/dist/tui/launch-settings.d.ts.map +1 -1
  437. package/dist/tui/login-prompt.d.ts +4 -2
  438. package/dist/tui/login-prompt.d.ts.map +1 -1
  439. package/dist/tui/model-switch.d.ts.map +1 -1
  440. package/dist/tui/permission-review.d.ts +5 -0
  441. package/dist/tui/permission-review.d.ts.map +1 -1
  442. package/dist/tui/plain-interruption.d.ts +3 -1
  443. package/dist/tui/plain-interruption.d.ts.map +1 -1
  444. package/dist/tui/resume-picker-state.d.ts +7 -0
  445. package/dist/tui/resume-picker-state.d.ts.map +1 -1
  446. package/dist/tui/slashCommands.d.ts +22 -26
  447. package/dist/tui/slashCommands.d.ts.map +1 -1
  448. package/dist/tui/system-rows.d.ts +0 -6
  449. package/dist/tui/system-rows.d.ts.map +1 -1
  450. package/dist/tui/tidy-tool-output.d.ts +3 -1
  451. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  452. package/dist/tui/tool-end-rows.d.ts +2 -0
  453. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  454. package/dist/tui/typed-key-save.d.ts +27 -0
  455. package/dist/tui/typed-key-save.d.ts.map +1 -0
  456. package/dist/tui/zoom/entry.d.ts +37 -0
  457. package/dist/tui/zoom/entry.d.ts.map +1 -0
  458. package/dist/tui/zoom/gesture.d.ts +51 -0
  459. package/dist/tui/zoom/gesture.d.ts.map +1 -0
  460. package/dist/tui/zoom/leave.d.ts +11 -0
  461. package/dist/tui/zoom/leave.d.ts.map +1 -0
  462. package/dist/tui/zoom/local.d.ts +55 -0
  463. package/dist/tui/zoom/local.d.ts.map +1 -0
  464. package/dist/tui/zoom/proxy.d.ts +40 -0
  465. package/dist/tui/zoom/proxy.d.ts.map +1 -0
  466. package/package.json +10 -8
  467. package/dist/chunks/acp-P3S54TTC.js +0 -13601
  468. package/dist/chunks/acp-P3S54TTC.js.map +0 -6
  469. package/dist/chunks/activity-command-Y5ZLCQ63.js.map +0 -6
  470. package/dist/chunks/add-F7M57FGR.js.map +0 -6
  471. package/dist/chunks/agent-session-CFWQHSYT.js +0 -60
  472. package/dist/chunks/archive-6NM6DYAT.js.map +0 -6
  473. package/dist/chunks/chat-KGVPXQS6.js.map +0 -6
  474. package/dist/chunks/chunk-3NJPNX6V.js.map +0 -6
  475. package/dist/chunks/chunk-43PPWWYD.js +0 -1415
  476. package/dist/chunks/chunk-43PPWWYD.js.map +0 -6
  477. package/dist/chunks/chunk-6LLJQ3KY.js.map +0 -6
  478. package/dist/chunks/chunk-6Z2ZJ4BA.js.map +0 -6
  479. package/dist/chunks/chunk-7U36A4WQ.js.map +0 -6
  480. package/dist/chunks/chunk-CRWNJ62V.js.map +0 -6
  481. package/dist/chunks/chunk-EFEZWLZC.js.map +0 -6
  482. package/dist/chunks/chunk-JAYPFJGZ.js.map +0 -6
  483. package/dist/chunks/chunk-KHM2XON5.js.map +0 -6
  484. package/dist/chunks/chunk-O4MFP726.js.map +0 -6
  485. package/dist/chunks/chunk-RFMODICJ.js.map +0 -6
  486. package/dist/chunks/chunk-RSRJQB6Q.js.map +0 -6
  487. package/dist/chunks/chunk-UHPRMPWX.js.map +0 -6
  488. package/dist/chunks/chunk-W5QFVC74.js.map +0 -6
  489. package/dist/chunks/chunk-WKUTR7YW.js.map +0 -6
  490. package/dist/chunks/chunk-YAEHAYI4.js.map +0 -6
  491. package/dist/chunks/chunk-ZXKN4TWP.js.map +0 -6
  492. package/dist/chunks/cli-runtime-HTTDQPEZ.js.map +0 -6
  493. package/dist/chunks/dist-45IFTDJW.js.map +0 -6
  494. package/dist/chunks/dist-RQJEJN3Z.js.map +0 -6
  495. package/dist/chunks/exec-3JDAB34N.js.map +0 -6
  496. package/dist/chunks/host-queries-SO2NOQRR.js.map +0 -6
  497. package/dist/chunks/list-G6OA34RL.js.map +0 -6
  498. package/dist/chunks/login-J4PWR4FM.js +0 -29
  499. package/dist/chunks/mcp-EXFVIHPJ.js.map +0 -6
  500. package/dist/chunks/message-command-B4L2W4YZ.js.map +0 -6
  501. package/dist/chunks/operator-tools-TEP4UTI6.js.map +0 -6
  502. package/dist/chunks/pal-BUDEBIBJ.js.map +0 -6
  503. package/dist/chunks/resident-FSUGNG56.js.map +0 -6
  504. package/dist/chunks/resume-VXHGE5GC.js +0 -23
  505. package/dist/chunks/service-EP2QHCK7.js.map +0 -6
  506. package/dist/chunks/tui-L5GKR237.js.map +0 -6
  507. package/dist/chunks/worktree-ELHDXX4X.js.map +0 -6
  508. package/dist/integrations/subagents/batches.d.ts +0 -91
  509. package/dist/integrations/subagents/batches.d.ts.map +0 -1
  510. package/dist/integrations/subagents/slash.d.ts +0 -55
  511. package/dist/integrations/subagents/slash.d.ts.map +0 -1
  512. /package/dist/chunks/{agent-AFX2UZU5.js.map → agent-6TD66IMV.js.map} +0 -0
  513. /package/dist/chunks/{agent-session-CFWQHSYT.js.map → agent-session-3A5K5VK3.js.map} +0 -0
  514. /package/dist/chunks/{bin-main-I6CHRYYQ.js.map → bin-main-5PYV7WYI.js.map} +0 -0
  515. /package/dist/chunks/{commands-ZD2L5QMI.js.map → binding-EMMG5PAE.js.map} +0 -0
  516. /package/dist/chunks/{browser-OPMOTWTV.js.map → browser-FUFFJBRR.js.map} +0 -0
  517. /package/dist/chunks/{chunk-TX2PUHTP.js.map → chunk-24FBGXYR.js.map} +0 -0
  518. /package/dist/chunks/{chunk-2NGXQQPP.js.map → chunk-2OAD3CZE.js.map} +0 -0
  519. /package/dist/chunks/{chunk-JCUPTKQY.js.map → chunk-325X27UO.js.map} +0 -0
  520. /package/dist/chunks/{chunk-REDD2WY7.js.map → chunk-43HR3AF5.js.map} +0 -0
  521. /package/dist/chunks/{chunk-DESOZLEL.js.map → chunk-43PTHA5N.js.map} +0 -0
  522. /package/dist/chunks/{chunk-T5POXPXY.js.map → chunk-46OOPRR6.js.map} +0 -0
  523. /package/dist/chunks/{chunk-EFQ6FUFZ.js.map → chunk-6ZEHXLF7.js.map} +0 -0
  524. /package/dist/chunks/{chunk-I32JTWDW.js.map → chunk-7TBETDTX.js.map} +0 -0
  525. /package/dist/chunks/{chunk-465CVUN4.js.map → chunk-ADCVLGQO.js.map} +0 -0
  526. /package/dist/chunks/{chunk-W4E2N7TY.js.map → chunk-ANHFJD66.js.map} +0 -0
  527. /package/dist/chunks/{chunk-UGAT33T5.js.map → chunk-B6INWHLR.js.map} +0 -0
  528. /package/dist/chunks/{chunk-Y44FAVKA.js.map → chunk-BICC735N.js.map} +0 -0
  529. /package/dist/chunks/{chunk-UC3ZACVN.js.map → chunk-BOM64EUQ.js.map} +0 -0
  530. /package/dist/chunks/{chunk-CTN4O42X.js.map → chunk-D23EJNO5.js.map} +0 -0
  531. /package/dist/chunks/{chunk-G5RAECIB.js.map → chunk-E2MNVA3X.js.map} +0 -0
  532. /package/dist/chunks/{chunk-BR6EWAKQ.js.map → chunk-E3FA5H3Q.js.map} +0 -0
  533. /package/dist/chunks/{chunk-LUSUJZR2.js.map → chunk-EFU2OFEK.js.map} +0 -0
  534. /package/dist/chunks/{chunk-FPLDTTM2.js.map → chunk-FZR4XULA.js.map} +0 -0
  535. /package/dist/chunks/{chunk-JSFF2HGX.js.map → chunk-GAEZQRQI.js.map} +0 -0
  536. /package/dist/chunks/{chunk-UP3SWACV.js.map → chunk-GCFXQSN6.js.map} +0 -0
  537. /package/dist/chunks/{chunk-XPS3W7FC.js.map → chunk-GMUWAUKQ.js.map} +0 -0
  538. /package/dist/chunks/{chunk-WLAI3VCE.js.map → chunk-HH3NBBBE.js.map} +0 -0
  539. /package/dist/chunks/{chunk-WPNT6IGU.js.map → chunk-HV2JFRSE.js.map} +0 -0
  540. /package/dist/chunks/{chunk-AE4LOPZF.js.map → chunk-J2FGTLZV.js.map} +0 -0
  541. /package/dist/chunks/{chunk-T2PF65KB.js.map → chunk-JAB62RI5.js.map} +0 -0
  542. /package/dist/chunks/{chunk-HXZ2JXCO.js.map → chunk-JKPUOSDC.js.map} +0 -0
  543. /package/dist/chunks/{chunk-GSYPRZZU.js.map → chunk-K5FQ4G64.js.map} +0 -0
  544. /package/dist/chunks/{chunk-NS7EU37U.js.map → chunk-KVCYYXCS.js.map} +0 -0
  545. /package/dist/chunks/{chunk-PWOG3OMH.js.map → chunk-KZ5WYSA6.js.map} +0 -0
  546. /package/dist/chunks/{chunk-ORVWGSLG.js.map → chunk-LHZSSQ6K.js.map} +0 -0
  547. /package/dist/chunks/{chunk-2NFPIARP.js.map → chunk-LR4QQMJH.js.map} +0 -0
  548. /package/dist/chunks/{chunk-QNTR7X7D.js.map → chunk-MKRYUMLP.js.map} +0 -0
  549. /package/dist/chunks/{chunk-5UB2LLPG.js.map → chunk-NUNOIP4Y.js.map} +0 -0
  550. /package/dist/chunks/{chunk-ZRBGY4SL.js.map → chunk-NXX6C3WS.js.map} +0 -0
  551. /package/dist/chunks/{chunk-ZNYKZ3MI.js.map → chunk-OENL667J.js.map} +0 -0
  552. /package/dist/chunks/{chunk-LS75R55C.js.map → chunk-OMRU22BQ.js.map} +0 -0
  553. /package/dist/chunks/{chunk-BLM6IQS4.js.map → chunk-P6FEQPES.js.map} +0 -0
  554. /package/dist/chunks/{chunk-BIGRB2H4.js.map → chunk-P6RUYL3F.js.map} +0 -0
  555. /package/dist/chunks/{chunk-YPRKTJ5P.js.map → chunk-S2UDKXWH.js.map} +0 -0
  556. /package/dist/chunks/{chunk-XFNCCDJK.js.map → chunk-TFOIA3U3.js.map} +0 -0
  557. /package/dist/chunks/{chunk-NPZY5OJ5.js.map → chunk-THJQXERD.js.map} +0 -0
  558. /package/dist/chunks/{chunk-ZUN2WRCB.js.map → chunk-THQAGFMO.js.map} +0 -0
  559. /package/dist/chunks/{chunk-FKIO77IY.js.map → chunk-THUX2WOG.js.map} +0 -0
  560. /package/dist/chunks/{chunk-AY7B43MK.js.map → chunk-TKIWAXRU.js.map} +0 -0
  561. /package/dist/chunks/{chunk-QV43JSBP.js.map → chunk-TUF4NNJV.js.map} +0 -0
  562. /package/dist/chunks/{chunk-KK2L4FD2.js.map → chunk-U33GIKBK.js.map} +0 -0
  563. /package/dist/chunks/{chunk-WLUGKIYQ.js.map → chunk-U3EQTU4G.js.map} +0 -0
  564. /package/dist/chunks/{chunk-VR4MTSMH.js.map → chunk-U6U472VN.js.map} +0 -0
  565. /package/dist/chunks/{chunk-RV5QY3IY.js.map → chunk-VGUU6E6X.js.map} +0 -0
  566. /package/dist/chunks/{chunk-LN26A356.js.map → chunk-VY377HAA.js.map} +0 -0
  567. /package/dist/chunks/{chunk-HYFX32Y3.js.map → chunk-WG32TSVL.js.map} +0 -0
  568. /package/dist/chunks/{chunk-ZATO2QOS.js.map → chunk-WSIMHBEQ.js.map} +0 -0
  569. /package/dist/chunks/{chunk-JH3SDABI.js.map → chunk-X4WCRRZV.js.map} +0 -0
  570. /package/dist/chunks/{chunk-2OVZNENW.js.map → chunk-XH5YF2YX.js.map} +0 -0
  571. /package/dist/chunks/{chunk-CMAZ3DYB.js.map → chunk-YLNQLDMP.js.map} +0 -0
  572. /package/dist/chunks/{crash-report-2IRIZSBD.js.map → commands-LVUUZ6LF.js.map} +0 -0
  573. /package/dist/chunks/{dist-FNGLTQIG.js.map → crash-report-PGXMRS5P.js.map} +0 -0
  574. /package/dist/chunks/{dist-NL7WG7PX.js.map → dist-6HN2ZMLV.js.map} +0 -0
  575. /package/dist/chunks/{dist-GSYFGRQT.js.map → dist-JRBSW53E.js.map} +0 -0
  576. /package/dist/chunks/{dist-OJTB6QLR.js.map → dist-NSCNMOX7.js.map} +0 -0
  577. /package/dist/chunks/{doctor-NKPCWPB4.js.map → dist-TC6H7TPQ.js.map} +0 -0
  578. /package/dist/chunks/{dist-TWYNAZDN.js.map → dist-V4SNHHMB.js.map} +0 -0
  579. /package/dist/chunks/{dist-OCZJJFHF.js.map → dist-VV3V36IP.js.map} +0 -0
  580. /package/dist/chunks/{home-5OIZIDIT.js.map → doctor-P7L35KGN.js.map} +0 -0
  581. /package/dist/chunks/{drain-YTSVAQP5.js.map → drain-HOHRXIYY.js.map} +0 -0
  582. /package/dist/chunks/{eval-ILFXDQUQ.js.map → eval-2F473JAC.js.map} +0 -0
  583. /package/dist/chunks/{github-FH7PPWVW.js.map → github-OFCHQMQQ.js.map} +0 -0
  584. /package/dist/chunks/{lifecycle-RTDYXKBW.js.map → home-R6WCBSOT.js.map} +0 -0
  585. /package/dist/chunks/{live-44HBQCQY.js.map → host-JGPJVLTC.js.map} +0 -0
  586. /package/dist/chunks/{learn-RHNMJ4BD.js.map → learn-3UPHM5OI.js.map} +0 -0
  587. /package/dist/chunks/{learn-builtin-UQ3MWGK6.js.map → learn-builtin-3Q4BJFCF.js.map} +0 -0
  588. /package/dist/chunks/{login-J4PWR4FM.js.map → lifecycle-EJLVISCU.js.map} +0 -0
  589. /package/dist/chunks/{output-schema-FZXJ7V33.js.map → live-IWDOVSLG.js.map} +0 -0
  590. /package/dist/chunks/{providers-EQ32NZAT.js.map → login-B2PHE6IL.js.map} +0 -0
  591. /package/dist/chunks/{logs-22QAEH2Q.js.map → logs-5UTV3FMG.js.map} +0 -0
  592. /package/dist/chunks/{resume-VXHGE5GC.js.map → mouse-WFSJSLQD.js.map} +0 -0
  593. /package/dist/chunks/{resume-command-DHPXCZVL.js.map → open-LDBJL43A.js.map} +0 -0
  594. /package/dist/chunks/{session-step-44XBOUDV.js.map → output-schema-UKYWRZPS.js.map} +0 -0
  595. /package/dist/chunks/{start-check-KVZFDBD3.js.map → palette-WDPS7W6Q.js.map} +0 -0
  596. /package/dist/chunks/{store-JLTSSGKL.js.map → peers-FBTQW2SY.js.map} +0 -0
  597. /package/dist/chunks/{store-KFJWAELA.js.map → prefix-MLAG4KTK.js.map} +0 -0
  598. /package/dist/chunks/{store-QNY242NN.js.map → providers-M75ET3GT.js.map} +0 -0
  599. /package/dist/chunks/{schedule-OJMZEWJG.js.map → schedule-BK3WF2VK.js.map} +0 -0
  600. /package/dist/chunks/{skills-YHAQXVP2.js.map → skills-TDDPMTQI.js.map} +0 -0
  601. /package/dist/chunks/{state-NXFKMBOX.js.map → state-SHLWYVZU.js.map} +0 -0
  602. /package/dist/chunks/{upgrade-PROVWX55.js.map → upgrade-RHPZQ33L.js.map} +0 -0
@@ -0,0 +1,34 @@
1
+ import type { Rect } from '../terminal/host/frame.js';
2
+ export interface Layout {
3
+ readonly sidebar: Rect | undefined;
4
+ /** True when the sidebar is the thin rail of dots instead of the full lists. */
5
+ readonly rail: boolean;
6
+ /** The one-column rule between the sidebar and the session; it is also the handle that resizes the sidebar. */
7
+ readonly rule: Rect | undefined;
8
+ /** The workspace area: the tab bar and the panes under it. */
9
+ readonly main: Rect;
10
+ /** The one-row tab bar across the top of the main area. */
11
+ readonly tabBar: Rect;
12
+ /** What is left for the panes. */
13
+ readonly panes: Rect;
14
+ }
15
+ /** What the user chose for the sidebar. */
16
+ export interface SidebarSetting {
17
+ readonly collapsed: boolean;
18
+ /** The full sidebar's width, rule included. */
19
+ readonly width: number;
20
+ }
21
+ export declare const SIDEBAR_MIN = 18;
22
+ export declare const SIDEBAR_MAX = 36;
23
+ export declare const SIDEBAR_DEFAULT = 26;
24
+ /** The rail's width, rule included: an index, a space and a dot. */
25
+ export declare const RAIL_WIDTH = 4;
26
+ export declare const DEFAULT_SIDEBAR: SidebarSetting;
27
+ export declare function clampSidebarWidth(width: number): number;
28
+ /**
29
+ * Splits the terminal into a sidebar, a rule and the main area, and the main
30
+ * area into a tab bar and the panes. A full sidebar that would leave the session
31
+ * too narrow gives way to the rail, and the rail to nothing.
32
+ */
33
+ export declare function computeLayout(cols: number, rows: number, sidebar?: SidebarSetting): Layout;
34
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/spaces/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,MAAM,WAAW,MAAM;IACtB,QAAQ,CAAC,OAAO,EAAE,IAAI,GAAG,SAAS,CAAA;IAClC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,+GAA+G;IAC/G,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;IAC/B,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;IACnB,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAA;IACrB,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;CACpB;AAED,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,WAAW,KAAK,CAAA;AAC7B,eAAO,MAAM,WAAW,KAAK,CAAA;AAC7B,eAAO,MAAM,eAAe,KAAK,CAAA;AACjC,oEAAoE;AACpE,eAAO,MAAM,UAAU,IAAI,CAAA;AAI3B,eAAO,MAAM,eAAe,EAAE,cAG7B,CAAA;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAgC,GACvC,MAAM,CAkCR"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * How much of the pointer the spaces screen asks the terminal to report.
3
+ *
4
+ * `full` reports presses, releases and drags (the sidebar, tabs, borders and text
5
+ * selection need them), `scroll` reports only the wheel and presses nothing the host
6
+ * acts on, `off` asks for nothing so the terminal keeps its own selection.
7
+ */
8
+ export type MouseMode = 'full' | 'scroll' | 'off';
9
+ /** Turns off every pointer mode a program may have left on, widest list first. */
10
+ export declare const MOUSE_OFF: string;
11
+ /**
12
+ * The mode in force: `NAMZU_DISABLE_MOUSE` turns the pointer off, then
13
+ * `NAMZU_DISABLE_MOUSE_CLICKS` keeps only the wheel, then the `tui.mouse` setting;
14
+ * otherwise `full`.
15
+ */
16
+ export declare function resolveMouseMode(env: Readonly<Record<string, string | undefined>>, setting?: MouseMode): MouseMode;
17
+ /** The sequence that switches the pointer reporting of `mode` on; nothing for `off`. */
18
+ export declare function mouseOn(mode: MouseMode): string;
19
+ /** Takes the alternate screen, clears it and switches the pointer on. Anything left on is reset first. */
20
+ export declare function enterScreen(mode: MouseMode): string;
21
+ /** Hands the terminal to a session that draws on the main screen: pointer off, main screen back. */
22
+ export declare const LEAVE_TO_NATIVE: string;
23
+ /** Gives the terminal back for good: pointer off, paste mode off, cursor shown, main screen back. */
24
+ export declare const LEAVE_SCREEN: string;
25
+ /**
26
+ * Clears pointer reporting a killed earlier run may have left on the terminal. Written once at the
27
+ * start of an interactive launch, before the first frame; nothing for a stream that is not a
28
+ * terminal, or for a session a spaces host runs (its terminal is the host's own emulator).
29
+ */
30
+ export declare function writeLaunchMouseReset(out: {
31
+ readonly isTTY?: boolean;
32
+ write(text: string): unknown;
33
+ }, hosted: boolean): boolean;
34
+ //# sourceMappingURL=mouse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../../src/spaces/mouse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;AAIjD,kFAAkF;AAClF,eAAO,MAAM,SAAS,QAEZ,CAAA;AAQV;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EACjD,OAAO,CAAC,EAAE,SAAS,GACjB,SAAS,CAIX;AAED,wFAAwF;AACxF,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAI/C;AAED,0GAA0G;AAC1G,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEnD;AAED,oGAAoG;AACpG,eAAO,MAAM,eAAe,QAA6B,CAAA;AAEzD,qGAAqG;AACrG,eAAO,MAAM,YAAY,QAAmD,CAAA;AAE5E;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,GAAG,EAAE;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/D,MAAM,EAAE,OAAO,GACb,OAAO,CAIT"}
@@ -0,0 +1,105 @@
1
+ import type { Frame, Rect } from '../terminal/host/frame.js';
2
+ import type { Palette } from './palette.js';
3
+ /** The size of the terminal an overlay is placed on. */
4
+ export interface Screen {
5
+ readonly cols: number;
6
+ readonly rows: number;
7
+ }
8
+ export type ModalAction = 'confirm' | 'cancel' | 'clear';
9
+ /** Where an overlay's parts are, so the same numbers draw it and find what a click lands on. */
10
+ export interface Surface {
11
+ readonly rect: Rect;
12
+ readonly buttons: readonly {
13
+ readonly rect: Rect;
14
+ readonly action: ModalAction;
15
+ }[];
16
+ readonly rows: readonly {
17
+ readonly rect: Rect;
18
+ readonly index: number;
19
+ }[];
20
+ }
21
+ export type Hit = {
22
+ readonly kind: 'outside';
23
+ } | {
24
+ readonly kind: 'inside';
25
+ } | {
26
+ readonly kind: 'button';
27
+ readonly action: ModalAction;
28
+ } | {
29
+ readonly kind: 'row';
30
+ readonly index: number;
31
+ };
32
+ /** What a press at a cell lands on: a button, a row, the overlay's body, or outside it. */
33
+ export declare function hitSurface(surface: Surface, x: number, y: number): Hit;
34
+ /** A square box in one colour. */
35
+ export declare function drawBox(frame: Frame, rect: Rect, fg: number, bg?: number): void;
36
+ /** Dims everything drawn so far, so the overlay on top stands out. */
37
+ export declare function dimFrame(frame: Frame): void;
38
+ export interface ModalButton {
39
+ readonly label: string;
40
+ readonly action: ModalAction;
41
+ /** The button enter presses: filled in the modal's colour. */
42
+ readonly primary?: boolean;
43
+ }
44
+ export interface ModalSpec {
45
+ readonly title: string;
46
+ /** A destructive question: its border, title and main button are red. */
47
+ readonly danger?: boolean;
48
+ readonly lines?: readonly string[];
49
+ /** A text field, shown with its text and a cursor. */
50
+ readonly input?: {
51
+ readonly value: string;
52
+ };
53
+ readonly error?: string;
54
+ readonly buttons: readonly ModalButton[];
55
+ }
56
+ export interface ModalLayout extends Surface {
57
+ readonly inputRect: Rect | undefined;
58
+ }
59
+ /** The buttons that fit in `room` columns: the optional ones (neither primary nor cancel) go first, then the label of the rest is kept whole. */
60
+ export declare function fittingButtons(buttons: readonly ModalButton[], room: number): ModalButton[];
61
+ export declare function layoutModal(screen: Screen, fullSpec: ModalSpec): ModalLayout;
62
+ export declare function drawModal(frame: Frame, layout: ModalLayout, spec: ModalSpec, palette: Palette): void;
63
+ export interface ListRow {
64
+ readonly text: string;
65
+ /** Columns the row is pushed right, for a tree. */
66
+ readonly indent?: number;
67
+ readonly dot?: {
68
+ readonly glyph: string;
69
+ readonly fg: number;
70
+ };
71
+ /** A group heading: drawn bold, never chosen. */
72
+ readonly heading?: boolean;
73
+ /** The keys of a help row, drawn in the accent colour before the text. */
74
+ readonly keys?: string;
75
+ /** Dim text, for a row that is context rather than a choice. */
76
+ readonly muted?: boolean;
77
+ }
78
+ export interface ListSpec {
79
+ readonly title: string;
80
+ readonly input?: {
81
+ readonly value: string;
82
+ };
83
+ readonly rows: readonly ListRow[];
84
+ /** The chosen row, or -1 when nothing is chosen (a help screen). */
85
+ readonly index: number;
86
+ readonly scroll: number;
87
+ readonly footer: string;
88
+ readonly width: number;
89
+ }
90
+ export interface ListLayout extends Surface {
91
+ readonly inputRect: Rect | undefined;
92
+ /** The first row shown. */
93
+ readonly top: number;
94
+ /** How many rows fit. */
95
+ readonly capacity: number;
96
+ }
97
+ export declare function layoutList(screen: Screen, spec: ListSpec): ListLayout;
98
+ export declare function drawList(frame: Frame, layout: ListLayout, spec: ListSpec, palette: Palette): void;
99
+ /** The box a menu or a context menu draws: rows of text at a point of the screen. */
100
+ export declare function layoutPopup(screen: Screen, at: {
101
+ readonly x: number;
102
+ readonly y: number;
103
+ }, items: readonly string[], minWidth?: number): Surface;
104
+ export declare function drawPopup(frame: Frame, surface: Surface, items: readonly string[], index: number, palette: Palette): void;
105
+ //# sourceMappingURL=overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/spaces/overlay.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,wDAAwD;AACxD,MAAM,WAAW,MAAM;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExD,gGAAgG;AAChG,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;KAAE,EAAE,CAAA;IAClF,QAAQ,CAAC,IAAI,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACzE;AAED,MAAM,MAAM,GAAG,GACZ;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IAA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EAAE,MAAM,CAAA;IACpB,yBAAyB;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CACzB;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,UAAU,CA6BrE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA6DjG;AAID,qFAAqF;AACrF,wBAAgB,WAAW,CAC1B,MAAM,EAAE,MAAM,EACd,EAAE,EAAE;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAC9C,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,QAAQ,SAAK,GACX,OAAO,CAiBT;AAED,wBAAgB,SAAS,CACxB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,GACd,IAAI,CAeN"}
@@ -0,0 +1,35 @@
1
+ /** The colours the host draws its own chrome in. */
2
+ export interface Palette {
3
+ /** The focused pane's border, the active tab and keys in the mode bar. */
4
+ readonly accent: number;
5
+ /** The mode bar and the tab bar. */
6
+ readonly panelBg: number;
7
+ /** The tab bar's resting tabs. */
8
+ readonly surface: number;
9
+ /** Text on a resting tab: dim, except where the 16 colours leave no contrast. */
10
+ readonly tabRest: number;
11
+ /** The border of a pane without focus, and dim text. */
12
+ readonly dim: number;
13
+ readonly dimmer: number;
14
+ readonly text: number;
15
+ readonly subtext: number;
16
+ /** The resize mode's chip. */
17
+ readonly mauve: number;
18
+ readonly green: number;
19
+ readonly yellow: number;
20
+ readonly red: number;
21
+ readonly teal: number;
22
+ /** The faint tint behind the shown space and the pane in focus. */
23
+ readonly activeRow: number;
24
+ /** The stronger tint behind the row the navigate cursor is on. */
25
+ readonly cursorRow: number;
26
+ }
27
+ type Rgb = readonly [number, number, number];
28
+ /** The index of the 16 colours nearest to a true colour. */
29
+ export declare function nearestAnsi(color: Rgb): number;
30
+ /** Whether the terminal says it shows true colour. */
31
+ export declare function advertisesTruecolor(env: NodeJS.ProcessEnv): boolean;
32
+ /** The default palette in true colour, or its nearest 16 colours where that is not shown. */
33
+ export declare function paletteFor(truecolor: boolean): Palette;
34
+ export {};
35
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/spaces/palette.ts"],"names":[],"mappings":"AAEA,oDAAoD;AACpD,MAAM,WAAW,OAAO;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,oCAAoC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,kCAAkC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,iFAAiF;IACjF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,wDAAwD;IACxD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,8BAA8B;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mEAAmE;IACnE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC1B;AAED,KAAK,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAqC5C,4DAA4D;AAC5D,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAc9C;AAED,sDAAsD;AACtD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAEnE;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAoBtD"}
@@ -0,0 +1,19 @@
1
+ import { type PeerRecord, type PeerSessionState } from '@namzu/sdk';
2
+ /**
3
+ * Where the host learns what its sessions are doing. Each session's own terminal
4
+ * publishes a live record and answers a ping; nothing is read off its screen.
5
+ */
6
+ export interface PeerSource {
7
+ /** Every live-session record in the runtime directory. */
8
+ records(): readonly PeerRecord[];
9
+ /** Asks a terminal for its state now; undefined when it did not answer. */
10
+ ping(record: PeerRecord): Promise<PeerSessionState | undefined>;
11
+ /** Calls `onChange` when records are written or removed; returns how to stop. */
12
+ watch?(onChange: () => void): () => void;
13
+ }
14
+ /** Picks the record that belongs to a host slot; a copy that came from a nested run loses to the session's own process. */
15
+ export declare function recordForSlot(records: readonly PeerRecord[], slot: string, pid: number | undefined): PeerRecord | undefined;
16
+ /** The record of the process the host itself runs in, for a session that is not a child: the one with its own id. */
17
+ export declare function recordForPid(records: readonly PeerRecord[], pid: number | undefined): PeerRecord | undefined;
18
+ export declare function createPeerSource(env: NodeJS.ProcessEnv): PeerSource | undefined;
19
+ //# sourceMappingURL=peers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peers.d.ts","sourceRoot":"","sources":["../../src/spaces/peers.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,gBAAgB,EAGrB,MAAM,YAAY,CAAA;AAGnB;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B,0DAA0D;IAC1D,OAAO,IAAI,SAAS,UAAU,EAAE,CAAA;IAChC,2EAA2E;IAC3E,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAA;IAC/D,iFAAiF;IACjF,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;CACxC;AAED,2HAA2H;AAC3H,wBAAgB,aAAa,CAC5B,OAAO,EAAE,SAAS,UAAU,EAAE,EAC9B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GAAG,SAAS,GACrB,UAAU,GAAG,SAAS,CAGxB;AAED,qHAAqH;AACrH,wBAAgB,YAAY,CAC3B,OAAO,EAAE,SAAS,UAAU,EAAE,EAC9B,GAAG,EAAE,MAAM,GAAG,SAAS,GACrB,UAAU,GAAG,SAAS,CAGxB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,GAAG,SAAS,CAwB/E"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The key that puts the spaces host in navigate mode.
3
+ *
4
+ * It must be one control byte the host can see before the child does, so it is
5
+ * written `ctrl+<letter>` or `ctrl+space`. Keys that a terminal program needs for
6
+ * itself (interrupt, end of input, suspend) or that are the same byte as Tab,
7
+ * Enter, Backspace or Escape cannot be the prefix.
8
+ */
9
+ export interface Prefix {
10
+ /** The setting as written, normalised: `ctrl+b`, `ctrl+space`. */
11
+ readonly name: string;
12
+ /** The single byte the terminal sends for it. */
13
+ readonly byte: string;
14
+ }
15
+ export declare const DEFAULT_PREFIX: Prefix;
16
+ export declare function parsePrefix(value: string): Prefix | undefined;
17
+ /** The words shown for a prefix, for example `ctrl+b`. */
18
+ export declare function describePrefix(prefix: Prefix): string;
19
+ //# sourceMappingURL=prefix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefix.d.ts","sourceRoot":"","sources":["../../src/spaces/prefix.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,MAAM;IACtB,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,iDAAiD;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,MAAyC,CAAA;AAKtE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAW7D;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAErD"}
@@ -0,0 +1,111 @@
1
+ import type { PeerSessionState } from '@namzu/sdk';
2
+ import type { PaneSession } from './session.js';
3
+ import { type Dot, type SessionActivity } from './status.js';
4
+ import { type Node, type SplitDir } from './tiling.js';
5
+ /** One tab of a space: the tiling of its panes, which one has focus, and whether it is zoomed. */
6
+ export interface Tab {
7
+ /** The name the user gave it; without one the tab shows its number. */
8
+ name?: string;
9
+ root: Node;
10
+ focus: Entry;
11
+ zoomed: boolean;
12
+ }
13
+ /** A project folder; the sidebar lists these on top. */
14
+ export interface Space {
15
+ readonly id: string;
16
+ name: string;
17
+ readonly cwd: string;
18
+ /** The account id the last session started here ran on; the picker offers it first. */
19
+ lastAccount?: string;
20
+ readonly tabs: Tab[];
21
+ /** The tab shown when the space is shown. */
22
+ activeTab: Tab | undefined;
23
+ }
24
+ /** One pane's session. The terminal behind it starts only when the pane is first opened. */
25
+ export declare class Entry {
26
+ readonly slot: string;
27
+ readonly spaceId: string;
28
+ label: string;
29
+ child: PaneSession | undefined;
30
+ /** What the session's own terminal last reported through the peer feed. */
31
+ reported: PeerSessionState | undefined;
32
+ /** A turn finished while nobody was looking at this session. */
33
+ unseen: boolean;
34
+ /** Rows scrolled back into the session's history; 0 follows the live screen. */
35
+ scrollBack: number;
36
+ /** The label of the non-usual account the session is on, as its terminal last reported. */
37
+ account: string | undefined;
38
+ conversationId: string | undefined;
39
+ limited: boolean;
40
+ /** When the spent allowance is expected back (epoch ms), if the terminal knows. */
41
+ limitedUntil: number | undefined;
42
+ /** The account id picked when the session was started; what a first launch binds. */
43
+ pickedAccount: string | undefined;
44
+ /** The session the command itself started, which alone receives the command's options. */
45
+ first: boolean;
46
+ /** The conversation to open when the session first starts, for one restored from a previous run. */
47
+ resume: string | undefined;
48
+ /** Whether its conversation is already open in another terminal: it is not started. */
49
+ openElsewhere: boolean;
50
+ /** Restored from a previous run: its folder is looked at again each time it is opened. */
51
+ verifyFolder: boolean;
52
+ /** Its folder was not found when it was last opened, so it is not started. */
53
+ folderMissing: boolean;
54
+ /** The check for that is running. */
55
+ checking: boolean;
56
+ /** When its activity last changed, as a count that only grows; the priority order puts the newest first. */
57
+ changedAt: number;
58
+ private seen;
59
+ constructor(slot: string, spaceId: string, label: string);
60
+ activity(): SessionActivity;
61
+ dot(): Dot;
62
+ /** Records the activity just observed; returns the previous one. */
63
+ observe(): SessionActivity;
64
+ }
65
+ /**
66
+ * The spaces, their sessions and which session is shown. Knows nothing about
67
+ * terminals beyond what an entry's child reports about itself.
68
+ */
69
+ export declare class Roster {
70
+ readonly spaces: Space[];
71
+ readonly entries: Entry[];
72
+ private current;
73
+ private counter;
74
+ private ticks;
75
+ /** The session with focus: the focused pane of the shown tab of the shown space. */
76
+ get selected(): Entry | undefined;
77
+ spaceOf(entry: Entry): Space;
78
+ entriesOf(space: Space): Entry[];
79
+ tabOf(entry: Entry): Tab | undefined;
80
+ /** The tab being shown. */
81
+ get shownTab(): Tab | undefined;
82
+ addSpace(cwd: string, name: string): Space;
83
+ /** Moves a space to a place in the list; the others keep their order. False when nothing moved. */
84
+ moveSpace(space: Space, to: number): boolean;
85
+ /** A session that is not in any tab yet; give it a place with `addTab` or `splitBeside`. */
86
+ addSession(space: Space, slot: string, label?: string): Entry;
87
+ /** A tab holding one pane, after the space's others. */
88
+ addTab(space: Space, entry: Entry, name?: string): Tab;
89
+ /** A tab built from a whole tree, as when a layout is restored. */
90
+ addTree(space: Space, root: Node, focus: Entry, name?: string, zoomed?: boolean): Tab;
91
+ /** Splits the pane of `target` and puts `created` in the new half, which takes focus. */
92
+ splitBeside(target: Entry, created: Entry, dir: SplitDir): void;
93
+ /** `session N` for the smallest N not already used, so a name never repeats after a close. */
94
+ private freeLabel;
95
+ /** Whether the entry's pane is on screen: in the shown tab of the shown space. */
96
+ isVisible(entry: Entry): boolean;
97
+ /** Shows an entry's tab with that pane focused; looking at panes clears their "finished" mark. */
98
+ select(entry: Entry): void;
99
+ /** Re-reads an entry's activity and marks a finished turn nobody was watching. */
100
+ update(entry: Entry): void;
101
+ spaceDot(space: Space): Dot;
102
+ /**
103
+ * Removes a session and its pane: the neighbour takes the room and focus. A tab
104
+ * left empty goes, and so does a space left with no tab.
105
+ */
106
+ removeEntry(entry: Entry): void;
107
+ removeSpace(space: Space): Entry[];
108
+ /** Takes a tab out with its sessions. */
109
+ removeTab(space: Space, tab: Tab): Entry[];
110
+ }
111
+ //# sourceMappingURL=roster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/spaces/roster.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,eAAe,EAAwC,MAAM,aAAa,CAAA;AAClG,OAAO,EACN,KAAK,IAAI,EACT,KAAK,QAAQ,EAMb,MAAM,aAAa,CAAA;AAEpB,kGAAkG;AAClG,MAAM,WAAW,GAAG;IACnB,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,KAAK,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;CACf;AAED,wDAAwD;AACxD,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,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kF;IAClF,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAKhC,kGAAkG;IAClG,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAa1B,kFAAkF;IAClF,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAS1B,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG;IAI3B;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAmC/B,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE;IAMlC,yCAAyC;IACzC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,GAAG,KAAK,EAAE;CAK1C"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Text selection on a pane's screen, in the terminal emulator's own lines.
3
+ *
4
+ * A point is a line of the emulator's buffer (history included) and a column, so the
5
+ * wheel scrolling, or new output arriving, while a selection is being made does not
6
+ * move it. Nothing here knows about the screen the host draws or the clipboard.
7
+ */
8
+ /** What selection reads of a screen. */
9
+ export interface TextSource {
10
+ readonly cols: number;
11
+ bufferLength(): number;
12
+ lineText(line: number, from: number, to: number, trim?: boolean): string;
13
+ lineWrapped(line: number): boolean;
14
+ /** Columns the cell at `col` takes: 2 for a wide character, 0 for the second half of one, 1 otherwise. */
15
+ cellWidth(line: number, col: number): number;
16
+ }
17
+ export interface Point {
18
+ readonly line: number;
19
+ readonly col: number;
20
+ }
21
+ /** From `start` to `end`, both cells included, `start` first. */
22
+ export interface Range {
23
+ readonly start: Point;
24
+ readonly end: Point;
25
+ }
26
+ export declare function orderRange(a: Point, b: Point): Range;
27
+ /** The columns of `line` the range covers, as `[from, to)`; undefined when it does not reach the line. */
28
+ export declare function colsOnLine(range: Range, line: number, cols: number): readonly [number, number] | undefined;
29
+ /**
30
+ * The text of a range. Each line loses its trailing blanks; a line the program wrapped joins the
31
+ * next without a line break. Attributes and escape sequences are never part of it.
32
+ */
33
+ export declare function extractText(source: TextSource, raw: Range): string;
34
+ /** The first column of the cell that holds `col`: the second half of a wide character belongs to the first. */
35
+ export declare function cellStart(source: TextSource, line: number, col: number): number;
36
+ /** The last column of the cell that holds `col`. */
37
+ export declare function cellEnd(source: TextSource, line: number, col: number): number;
38
+ /** The range grown to whole cells: a wide character is never cut in half. */
39
+ export declare function snapRange(source: TextSource, range: Range): Range;
40
+ /** The run of non-blank, non-bracket characters around a cell; the cell alone when it is blank. */
41
+ export declare function wordAt(source: TextSource, line: number, col: number): Range;
42
+ /** The whole line the program printed, wrapped rows included, without its trailing blanks. */
43
+ export declare function lineAt(source: TextSource, line: number): Range;
44
+ /** Counts presses made in the same place within `windowMs` of each other: 1, 2, 3, then 1 again. */
45
+ export declare class ClickCounter {
46
+ private readonly now;
47
+ private readonly windowMs;
48
+ private last;
49
+ constructor(now: () => number, windowMs: number);
50
+ press(x: number, y: number): 1 | 2 | 3;
51
+ }
52
+ //# sourceMappingURL=selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/spaces/selection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wCAAwC;AACxC,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,YAAY,IAAI,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxE,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,0GAA0G;IAC1G,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5C;AAED,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACpB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,MAAM,MAAM,EACjB,QAAQ,EAAE,MAAM;IAGlC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;CActC"}
@@ -0,0 +1,83 @@
1
+ import { type HostPty, type HostPtyModule } from '../terminal/pty.js';
2
+ import { HeadlessScreen } from '../terminal/screen.js';
3
+ import { type SignalName } from './signal.js';
4
+ /** What to run in a session's pseudo-terminal. */
5
+ export interface SessionSpec {
6
+ readonly file: string;
7
+ readonly args: readonly string[];
8
+ readonly cwd: string;
9
+ readonly env: Record<string, string>;
10
+ }
11
+ /**
12
+ * `starting` until the program prints its first byte, `running` after, `exited`
13
+ * once it is gone for any reason. How it ended is `ending`.
14
+ */
15
+ export type SessionStatus = 'starting' | 'running' | 'exited';
16
+ export type SessionEnding = 'finished' | 'stopped' | 'could-not-start';
17
+ /**
18
+ * What the host needs of a pane's session, whatever runs behind it: a program in
19
+ * a pseudo-terminal of its own (`ChildSession`) or the conversation this very
20
+ * process is running (`LocalSession`).
21
+ */
22
+ export interface PaneSession {
23
+ readonly status: SessionStatus;
24
+ readonly ending: SessionEnding | undefined;
25
+ readonly screen: HeadlessScreen;
26
+ readonly pid: number | undefined;
27
+ /** True for the session the host runs inside of: it is not started or hung up like a child. */
28
+ readonly local?: boolean;
29
+ write(data: string): void;
30
+ resize(cols: number, rows: number): void;
31
+ stop(signal?: 'SIGHUP' | 'SIGTERM' | 'SIGKILL'): void;
32
+ dispose(): void;
33
+ }
34
+ /**
35
+ * The session the host runs inside of. Its terminal is the process's own, so
36
+ * the host shows it through a mirror while the spaces screen is up and gives the
37
+ * terminal back to it for full screen.
38
+ */
39
+ export interface LocalPaneSession extends PaneSession {
40
+ readonly local: true;
41
+ /** Starts showing the session in a mirror of this size; its output goes to `screen`. */
42
+ attach(cols: number, rows: number): void;
43
+ /** Gives the real terminal back to the session, full size, and has it repaint. */
44
+ detach(): void;
45
+ /** Calls `listener` when the session's screen or status changes. */
46
+ observe(listener: () => void): void;
47
+ }
48
+ /**
49
+ * One child program in a pseudo-terminal, with a headless screen that follows
50
+ * what it prints. Everything that touches the pseudo-terminal after the program
51
+ * is gone is a no-op: writing or resizing a closed descriptor throws, and a host
52
+ * that dies on a child's exit would take every other session down with it.
53
+ */
54
+ export declare class ChildSession implements PaneSession {
55
+ readonly label: string;
56
+ private readonly spec;
57
+ private readonly onChange;
58
+ private readonly kill;
59
+ private readonly onSignal?;
60
+ status: SessionStatus;
61
+ ending: SessionEnding | undefined;
62
+ readonly screen: HeadlessScreen;
63
+ private pty;
64
+ private readonly signals;
65
+ private cols;
66
+ private rows;
67
+ constructor(label: string, spec: SessionSpec, size: {
68
+ cols: number;
69
+ rows: number;
70
+ }, onChange: () => void, kill?: (pty: HostPty, signal: 'SIGHUP' | 'SIGTERM' | 'SIGKILL') => void, onSignal?: ((signal: SignalName) => void) | undefined);
71
+ /** The process id of the program, once it has started. */
72
+ get pid(): number | undefined;
73
+ start(binding: HostPtyModule): void;
74
+ private finish;
75
+ /** Sends input to the program; nothing once it has ended. */
76
+ write(data: string): void;
77
+ /** Gives the program a new size; the screen follows even when the program is gone. */
78
+ resize(cols: number, rows: number): void;
79
+ /** Ends the program and what it started. */
80
+ stop(signal?: 'SIGHUP' | 'SIGTERM' | 'SIGKILL'): void;
81
+ dispose(): void;
82
+ }
83
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/spaces/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,oBAAoB,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;AAE3D,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QA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