@namzu/cli 49.1.0 → 49.1.1

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 (302) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-YPJ27JQK.js → acp-MBBNHTFF.js} +1126 -56
  4. package/dist/chunks/acp-MBBNHTFF.js.map +6 -0
  5. package/dist/chunks/{activity-command-5XZJLJH5.js → activity-command-W7V33K4I.js} +12 -12
  6. package/dist/chunks/{add-37AHNBYS.js → add-FQUU7CPV.js} +20 -20
  7. package/dist/chunks/{agent-PNIZE5HR.js → agent-MJG43QEN.js} +36 -36
  8. package/dist/chunks/agent-session-K5GXC7TI.js +69 -0
  9. package/dist/chunks/{archive-A7SSRR76.js → archive-VOUK2Z7P.js} +10 -10
  10. package/dist/chunks/{bin-main-G4E4SR4J.js → bin-main-FMGPWUMO.js} +7 -7
  11. package/dist/chunks/{binding-AIMTFLZW.js → binding-CRYJQ7PU.js} +3 -3
  12. package/dist/chunks/{browser-F5Y3IT6U.js → browser-MSESQ5SY.js} +6 -6
  13. package/dist/chunks/{chat-DIF26XMR.js → chat-JK7GKOOT.js} +15 -15
  14. package/dist/chunks/{chunk-ZWJPQH5F.js → chunk-24VVQCMV.js} +3 -3
  15. package/dist/chunks/{chunk-C5YVEX36.js → chunk-26CZDEKO.js} +2 -2
  16. package/dist/chunks/{chunk-7VF7HGMF.js → chunk-2BSKESPI.js} +3 -3
  17. package/dist/chunks/{chunk-JBBB5EG2.js → chunk-2HNRN4BZ.js} +3 -3
  18. package/dist/chunks/{chunk-ESHBGSXA.js → chunk-2JZ6O4JX.js} +3 -3
  19. package/dist/chunks/{chunk-HYF3OKB7.js → chunk-2RWJX3XO.js} +4 -4
  20. package/dist/chunks/{chunk-W27IOJQ5.js → chunk-2SBMVMTO.js} +6 -6
  21. package/dist/chunks/{chunk-6QOP2PHC.js → chunk-37JCXHFG.js} +2 -2
  22. package/dist/chunks/{chunk-USTCATWP.js → chunk-3KLNVOTV.js} +4 -4
  23. package/dist/chunks/{chunk-6KBZJBBN.js → chunk-3VMSB36D.js} +6 -6
  24. package/dist/chunks/{chunk-4IOUN4SV.js → chunk-4DMJITJF.js} +5 -5
  25. package/dist/chunks/{chunk-PPVNYNKK.js → chunk-54NEBNV3.js} +2 -2
  26. package/dist/chunks/{chunk-HREKLDJP.js → chunk-5EOQWRBM.js} +4 -4
  27. package/dist/chunks/{chunk-37AR6YJQ.js → chunk-5PAU4A3K.js} +2 -2
  28. package/dist/chunks/{chunk-QSGYZU46.js → chunk-6BRAEYBL.js} +10 -10
  29. package/dist/chunks/{chunk-7HU7BYTT.js → chunk-6GOXVYVF.js} +3 -3
  30. package/dist/chunks/{chunk-STEWNJWS.js → chunk-6JGKF5CJ.js} +13 -13
  31. package/dist/chunks/{chunk-6MEYPHDQ.js → chunk-76DVKFKX.js} +52 -39
  32. package/dist/chunks/chunk-76DVKFKX.js.map +6 -0
  33. package/dist/chunks/{chunk-DLPWM4YC.js → chunk-B47YGS45.js} +9 -9
  34. package/dist/chunks/{chunk-DJZ5W4ML.js → chunk-BBESTSGG.js} +2 -2
  35. package/dist/chunks/{chunk-4Z5ONGFB.js → chunk-BIV4ZVMQ.js} +2 -2
  36. package/dist/chunks/{chunk-4AZTZXPQ.js → chunk-BTTD4VKX.js} +4 -4
  37. package/dist/chunks/{chunk-4L3LPJ4M.js → chunk-CCYLACZC.js} +2 -2
  38. package/dist/chunks/{chunk-BERMCELL.js → chunk-DZBKO5XZ.js} +2 -2
  39. package/dist/chunks/{chunk-BWOSM4EO.js → chunk-EPMW4N5H.js} +3 -3
  40. package/dist/chunks/{chunk-VIBYGZFX.js → chunk-EQTOFC36.js} +2 -2
  41. package/dist/chunks/{chunk-2LZA3UMD.js → chunk-EWMX4NYZ.js} +2 -2
  42. package/dist/chunks/{chunk-A425M7RP.js → chunk-FAL6MHR7.js} +2 -2
  43. package/dist/chunks/{chunk-EGPWQL55.js → chunk-FDV7XIWK.js} +3 -3
  44. package/dist/chunks/{chunk-RAPB7HY3.js → chunk-GJABD7QF.js} +6 -6
  45. package/dist/chunks/{chunk-TVBD2LZV.js → chunk-GO3IILJG.js} +3 -3
  46. package/dist/chunks/{chunk-4PF6DIYU.js → chunk-GVT765NL.js} +2 -2
  47. package/dist/chunks/{chunk-6COUMXPW.js → chunk-HVNC42NZ.js} +3 -3
  48. package/dist/chunks/{chunk-NQSEDCTH.js → chunk-IOCOFAL2.js} +2 -2
  49. package/dist/chunks/{chunk-5I4QGJER.js → chunk-JCP7GH4E.js} +9 -9
  50. package/dist/chunks/{chunk-SIYXJ6PT.js → chunk-JEIT4APA.js} +2 -2
  51. package/dist/chunks/{chunk-WCJBKSGT.js → chunk-JFAQGZU4.js} +2 -2
  52. package/dist/chunks/{chunk-D4DY4FZX.js → chunk-JPQSIROH.js} +4 -4
  53. package/dist/chunks/{chunk-KEMOXQGR.js → chunk-JW67WBS2.js} +9 -9
  54. package/dist/chunks/{chunk-2WJQTSRQ.js → chunk-KL3CLIA2.js} +12 -12
  55. package/dist/chunks/{chunk-KMTM4NNH.js → chunk-KOTJVZ33.js} +5 -5
  56. package/dist/chunks/{chunk-JRX5IIMR.js → chunk-LID7O2YP.js} +5 -5
  57. package/dist/chunks/{chunk-Y67ML2IN.js → chunk-M2VJZ5G5.js} +2 -2
  58. package/dist/chunks/{chunk-DXEAJL7W.js → chunk-MJOO5EA4.js} +3 -3
  59. package/dist/chunks/{chunk-Y2RIV5UX.js → chunk-MUT6I5NR.js} +15 -5
  60. package/dist/chunks/{chunk-Y2RIV5UX.js.map → chunk-MUT6I5NR.js.map} +1 -1
  61. package/dist/chunks/{chunk-QIVWFRYO.js → chunk-MVMP5SIL.js} +4 -4
  62. package/dist/chunks/{chunk-Z43EXCUP.js → chunk-NIBYXC3H.js} +3 -3
  63. package/dist/chunks/{chunk-XPW3PSVI.js → chunk-NPRTOWXF.js} +3 -3
  64. package/dist/chunks/{chunk-TWZ5PJH2.js → chunk-NSPM2ALB.js} +5 -5
  65. package/dist/chunks/{chunk-HD74DQ3Z.js → chunk-NZAFY2F4.js} +2 -2
  66. package/dist/chunks/{chunk-CBIXPHOV.js → chunk-OS4QHE3D.js} +4 -4
  67. package/dist/chunks/{chunk-GKPKHFMK.js → chunk-PBGIIPSL.js} +4 -4
  68. package/dist/chunks/{chunk-NPH7ZTH4.js → chunk-PF32FZUI.js} +2 -2
  69. package/dist/chunks/{chunk-ZYIPLUWS.js → chunk-Q6JWNB54.js} +33 -33
  70. package/dist/chunks/{chunk-2PMNQ6HR.js → chunk-QCL4LFUZ.js} +4 -4
  71. package/dist/chunks/{chunk-IDJTFYNK.js → chunk-QDWRNNKU.js} +4 -4
  72. package/dist/chunks/{chunk-6PURQMHH.js → chunk-QHGD7RLH.js} +3 -3
  73. package/dist/chunks/{chunk-UXFW6KD7.js → chunk-QZAYT5UR.js} +2 -2
  74. package/dist/chunks/{chunk-UH7EP7TA.js → chunk-R4SQ7YG2.js} +2 -2
  75. package/dist/chunks/{chunk-ZKLDG2CM.js → chunk-SVRLQQMB.js} +3 -3
  76. package/dist/chunks/{chunk-SVH5P7TU.js → chunk-TGUXLYS2.js} +13 -13
  77. package/dist/chunks/{chunk-C4C4Y2VT.js → chunk-TUHTURON.js} +2 -2
  78. package/dist/chunks/{chunk-7TWA4BQX.js → chunk-U73P6IJU.js} +1213 -2500
  79. package/dist/chunks/chunk-U73P6IJU.js.map +6 -0
  80. package/dist/chunks/{chunk-SY2AJ6LM.js → chunk-UEETLO7H.js} +2 -2
  81. package/dist/chunks/{chunk-UANL44QG.js → chunk-UNYSNMAQ.js} +2 -2
  82. package/dist/chunks/{chunk-TWEFDQ7C.js → chunk-UVGXDFY5.js} +2 -2
  83. package/dist/chunks/{chunk-RNMU75CI.js → chunk-VJXFLYGQ.js} +2 -2
  84. package/dist/chunks/{chunk-O6DNY5EM.js → chunk-WEQDKDC3.js} +3 -3
  85. package/dist/chunks/{chunk-WVLBFEBP.js → chunk-WG7E73KJ.js} +3 -3
  86. package/dist/chunks/{chunk-OBDGNMPB.js → chunk-WH6LELNJ.js} +7 -7
  87. package/dist/chunks/{chunk-IE5XIE4W.js → chunk-XCECERRM.js} +32 -8
  88. package/dist/chunks/{chunk-IE5XIE4W.js.map → chunk-XCECERRM.js.map} +1 -1
  89. package/dist/chunks/{chunk-AHM54PGY.js → chunk-XCGIZUMG.js} +3 -3
  90. package/dist/chunks/{chunk-J65SOO5P.js → chunk-XKRGL5Z5.js} +3 -3
  91. package/dist/chunks/{chunk-JDUZFFX3.js → chunk-XWMIL5WP.js} +2 -2
  92. package/dist/chunks/{chunk-7X2NHTHU.js → chunk-YZFC3GTH.js} +3 -3
  93. package/dist/chunks/{chunk-YWZ3IMAS.js → chunk-Z2PZBUDP.js} +2 -2
  94. package/dist/chunks/{cli-runtime-KHIX5OG4.js → cli-runtime-YAF6N4B4.js} +12 -12
  95. package/dist/chunks/{commands-OGOMUDPT.js → commands-UJGFQSQ4.js} +5 -5
  96. package/dist/chunks/{crash-report-VXC7CJDY.js → crash-report-YQOJKQCG.js} +7 -7
  97. package/dist/chunks/{dist-LUUDW6KE.js → dist-2L7NSJJE.js} +2 -2
  98. package/dist/chunks/{dist-POXH7TX7.js → dist-AFI563E4.js} +2 -2
  99. package/dist/chunks/{dist-Q5YPDPOH.js → dist-B445LLNF.js} +2 -2
  100. package/dist/chunks/{dist-O4Y5VCRK.js → dist-GETHBP7P.js} +2 -2
  101. package/dist/chunks/{dist-Q7Z5SE4S.js → dist-GL2VWTJS.js} +2 -2
  102. package/dist/chunks/{dist-EL2RMYNK.js → dist-H6SCKMJX.js} +2 -2
  103. package/dist/chunks/{dist-AA4JNWT2.js → dist-HYGOYQLL.js} +2 -2
  104. package/dist/chunks/{dist-Z62XBGQ7.js → dist-MF62HCKV.js} +2 -2
  105. package/dist/chunks/{doctor-5IRXJ7DK.js → doctor-H27EQ5RE.js} +17 -17
  106. package/dist/chunks/{drain-A44YWORN.js → drain-WO6UFXH4.js} +9 -9
  107. package/dist/chunks/{entry-ODCHCJ3O.js → entry-QFLKR4O3.js} +6 -6
  108. package/dist/chunks/{eval-35ZBHZLK.js → eval-SKVWJKSU.js} +2 -2
  109. package/dist/chunks/{exec-TPOW33QE.js → exec-ZAXVBVTH.js} +35 -35
  110. package/dist/chunks/{home-F4YAXKWJ.js → home-5EUINGKN.js} +3 -3
  111. package/dist/chunks/{host-V7LVA7QU.js → host-5EP6E23T.js} +10 -10
  112. package/dist/chunks/{host-queries-2HRJZ2TH.js → host-queries-6NEPSEAS.js} +15 -15
  113. package/dist/chunks/{learn-NLECFL5B.js → learn-HJMN624W.js} +11 -11
  114. package/dist/chunks/{learn-builtin-XLID77I3.js → learn-builtin-VRTLHEQW.js} +14 -14
  115. package/dist/chunks/{lifecycle-UQL62JPO.js → lifecycle-MJTRWTCM.js} +29 -29
  116. package/dist/chunks/{list-4PS7WAPI.js → list-LFBLFIKV.js} +11 -11
  117. package/dist/chunks/{live-GBK7RIX2.js → live-MOEHIAAF.js} +16 -16
  118. package/dist/chunks/{login-7LGGUBI5.js → login-4NTLCW7N.js} +14 -14
  119. package/dist/chunks/{logs-VYY2CWAN.js → logs-EUKQL5B7.js} +4 -4
  120. package/dist/chunks/{mcp-QL4TOTV5.js → mcp-CVG7FG6J.js} +24 -24
  121. package/dist/chunks/{message-command-SCSTDFSA.js → message-command-WCIE3455.js} +42 -42
  122. package/dist/chunks/{open-QSZFHDIW.js → open-ZY2THIE3.js} +8 -8
  123. package/dist/chunks/{operator-tools-WF2UGZ5G.js → operator-tools-D6L7ASDD.js} +13 -13
  124. package/dist/chunks/{output-schema-P3WXODDE.js → output-schema-GR4GYBPU.js} +3 -3
  125. package/dist/chunks/{pal-JLSBOTEO.js → pal-O2V75KQK.js} +17 -17
  126. package/dist/chunks/{peers-IMCPUY6R.js → peers-QB4HQ5PZ.js} +6 -6
  127. package/dist/chunks/{peers-HDPCIVBY.js → peers-TNGB6WQH.js} +7 -7
  128. package/dist/chunks/{providers-YXH2C5HE.js → providers-5VUFH7IJ.js} +12 -12
  129. package/dist/chunks/{pty-74F5BMD3.js → pty-ORVEC6FI.js} +3 -3
  130. package/dist/chunks/resume-YK5YX2GP.js +23 -0
  131. package/dist/chunks/{resume-command-LFK2PQYH.js → resume-command-26JB6FZZ.js} +4 -4
  132. package/dist/chunks/{schedule-5ZYAZJIM.js → schedule-LSM2OF24.js} +8 -8
  133. package/dist/chunks/{service-LTYPMKWG.js → service-V2BNTEB4.js} +29 -29
  134. package/dist/chunks/{skills-KUT4QD3K.js → skills-T2ZYRYZF.js} +8 -8
  135. package/dist/chunks/{start-check-SYGALC5U.js → start-check-A4B3AXO2.js} +2 -2
  136. package/dist/chunks/{startup-failure-YKREQTPO.js → startup-failure-YHDJI7YI.js} +2 -2
  137. package/dist/chunks/{state-MQXTG6O3.js → state-OY6VG73L.js} +2 -2
  138. package/dist/chunks/{store-KC43NWR4.js → store-DBWWXNYV.js} +6 -6
  139. package/dist/chunks/{store-J4UP5MJ3.js → store-IVQVINSF.js} +10 -10
  140. package/dist/chunks/{store-KW3NJHWV.js → store-LEOLKXRN.js} +4 -4
  141. package/dist/chunks/{store-EO3HNNFC.js → store-QPO2TZ42.js} +3 -3
  142. package/dist/chunks/{tui-DPTVVKBE.js → tui-VCNESTDO.js} +68 -68
  143. package/dist/chunks/{upgrade-WI5CFBGG.js → upgrade-QQ665A7W.js} +7 -7
  144. package/dist/chunks/{workspaces-VQ7VHN7N.js → workspaces-5JL7LPKW.js} +16 -16
  145. package/dist/chunks/{worktree-KSDU4MTM.js → worktree-U2RO5D47.js} +12 -12
  146. package/dist/commands/acp-screen-question.d.ts +32 -0
  147. package/dist/commands/acp-screen-question.d.ts.map +1 -0
  148. package/dist/commands/acp.d.ts.map +1 -1
  149. package/dist/commands/desktop-host.d.ts +2 -0
  150. package/dist/commands/desktop-host.d.ts.map +1 -1
  151. package/dist/config/desktop-settings.d.ts +39 -0
  152. package/dist/config/desktop-settings.d.ts.map +1 -0
  153. package/dist/config/load.d.ts +8 -0
  154. package/dist/config/load.d.ts.map +1 -1
  155. package/dist/config/schema.d.ts +2 -2
  156. package/dist/config/settings-descriptors.d.ts +72 -0
  157. package/dist/config/settings-descriptors.d.ts.map +1 -0
  158. package/dist/index.js +20 -20
  159. package/dist/integrations/providers/zen-catalogue.d.ts +14 -0
  160. package/dist/integrations/providers/zen-catalogue.d.ts.map +1 -1
  161. package/dist/tui/agent.d.ts.map +1 -1
  162. package/dist/tui/computer-use-screen-approval.d.ts +10 -0
  163. package/dist/tui/computer-use-screen-approval.d.ts.map +1 -1
  164. package/package.json +4 -4
  165. package/dist/chunks/acp-YPJ27JQK.js.map +0 -6
  166. package/dist/chunks/agent-session-ONKOQQ5Y.js +0 -69
  167. package/dist/chunks/chunk-6MEYPHDQ.js.map +0 -6
  168. package/dist/chunks/chunk-7TWA4BQX.js.map +0 -6
  169. package/dist/chunks/resume-M63SJGJ4.js +0 -23
  170. /package/dist/chunks/{activity-command-5XZJLJH5.js.map → activity-command-W7V33K4I.js.map} +0 -0
  171. /package/dist/chunks/{add-37AHNBYS.js.map → add-FQUU7CPV.js.map} +0 -0
  172. /package/dist/chunks/{agent-PNIZE5HR.js.map → agent-MJG43QEN.js.map} +0 -0
  173. /package/dist/chunks/{agent-session-ONKOQQ5Y.js.map → agent-session-K5GXC7TI.js.map} +0 -0
  174. /package/dist/chunks/{archive-A7SSRR76.js.map → archive-VOUK2Z7P.js.map} +0 -0
  175. /package/dist/chunks/{bin-main-G4E4SR4J.js.map → bin-main-FMGPWUMO.js.map} +0 -0
  176. /package/dist/chunks/{binding-AIMTFLZW.js.map → binding-CRYJQ7PU.js.map} +0 -0
  177. /package/dist/chunks/{browser-F5Y3IT6U.js.map → browser-MSESQ5SY.js.map} +0 -0
  178. /package/dist/chunks/{chat-DIF26XMR.js.map → chat-JK7GKOOT.js.map} +0 -0
  179. /package/dist/chunks/{chunk-ZWJPQH5F.js.map → chunk-24VVQCMV.js.map} +0 -0
  180. /package/dist/chunks/{chunk-C5YVEX36.js.map → chunk-26CZDEKO.js.map} +0 -0
  181. /package/dist/chunks/{chunk-7VF7HGMF.js.map → chunk-2BSKESPI.js.map} +0 -0
  182. /package/dist/chunks/{chunk-JBBB5EG2.js.map → chunk-2HNRN4BZ.js.map} +0 -0
  183. /package/dist/chunks/{chunk-ESHBGSXA.js.map → chunk-2JZ6O4JX.js.map} +0 -0
  184. /package/dist/chunks/{chunk-HYF3OKB7.js.map → chunk-2RWJX3XO.js.map} +0 -0
  185. /package/dist/chunks/{chunk-W27IOJQ5.js.map → chunk-2SBMVMTO.js.map} +0 -0
  186. /package/dist/chunks/{chunk-6QOP2PHC.js.map → chunk-37JCXHFG.js.map} +0 -0
  187. /package/dist/chunks/{chunk-USTCATWP.js.map → chunk-3KLNVOTV.js.map} +0 -0
  188. /package/dist/chunks/{chunk-6KBZJBBN.js.map → chunk-3VMSB36D.js.map} +0 -0
  189. /package/dist/chunks/{chunk-4IOUN4SV.js.map → chunk-4DMJITJF.js.map} +0 -0
  190. /package/dist/chunks/{chunk-PPVNYNKK.js.map → chunk-54NEBNV3.js.map} +0 -0
  191. /package/dist/chunks/{chunk-HREKLDJP.js.map → chunk-5EOQWRBM.js.map} +0 -0
  192. /package/dist/chunks/{chunk-37AR6YJQ.js.map → chunk-5PAU4A3K.js.map} +0 -0
  193. /package/dist/chunks/{chunk-QSGYZU46.js.map → chunk-6BRAEYBL.js.map} +0 -0
  194. /package/dist/chunks/{chunk-7HU7BYTT.js.map → chunk-6GOXVYVF.js.map} +0 -0
  195. /package/dist/chunks/{chunk-STEWNJWS.js.map → chunk-6JGKF5CJ.js.map} +0 -0
  196. /package/dist/chunks/{chunk-DLPWM4YC.js.map → chunk-B47YGS45.js.map} +0 -0
  197. /package/dist/chunks/{chunk-DJZ5W4ML.js.map → chunk-BBESTSGG.js.map} +0 -0
  198. /package/dist/chunks/{chunk-4Z5ONGFB.js.map → chunk-BIV4ZVMQ.js.map} +0 -0
  199. /package/dist/chunks/{chunk-4AZTZXPQ.js.map → chunk-BTTD4VKX.js.map} +0 -0
  200. /package/dist/chunks/{chunk-4L3LPJ4M.js.map → chunk-CCYLACZC.js.map} +0 -0
  201. /package/dist/chunks/{chunk-BERMCELL.js.map → chunk-DZBKO5XZ.js.map} +0 -0
  202. /package/dist/chunks/{chunk-BWOSM4EO.js.map → chunk-EPMW4N5H.js.map} +0 -0
  203. /package/dist/chunks/{chunk-VIBYGZFX.js.map → chunk-EQTOFC36.js.map} +0 -0
  204. /package/dist/chunks/{chunk-2LZA3UMD.js.map → chunk-EWMX4NYZ.js.map} +0 -0
  205. /package/dist/chunks/{chunk-A425M7RP.js.map → chunk-FAL6MHR7.js.map} +0 -0
  206. /package/dist/chunks/{chunk-EGPWQL55.js.map → chunk-FDV7XIWK.js.map} +0 -0
  207. /package/dist/chunks/{chunk-RAPB7HY3.js.map → chunk-GJABD7QF.js.map} +0 -0
  208. /package/dist/chunks/{chunk-TVBD2LZV.js.map → chunk-GO3IILJG.js.map} +0 -0
  209. /package/dist/chunks/{chunk-4PF6DIYU.js.map → chunk-GVT765NL.js.map} +0 -0
  210. /package/dist/chunks/{chunk-6COUMXPW.js.map → chunk-HVNC42NZ.js.map} +0 -0
  211. /package/dist/chunks/{chunk-NQSEDCTH.js.map → chunk-IOCOFAL2.js.map} +0 -0
  212. /package/dist/chunks/{chunk-5I4QGJER.js.map → chunk-JCP7GH4E.js.map} +0 -0
  213. /package/dist/chunks/{chunk-SIYXJ6PT.js.map → chunk-JEIT4APA.js.map} +0 -0
  214. /package/dist/chunks/{chunk-WCJBKSGT.js.map → chunk-JFAQGZU4.js.map} +0 -0
  215. /package/dist/chunks/{chunk-D4DY4FZX.js.map → chunk-JPQSIROH.js.map} +0 -0
  216. /package/dist/chunks/{chunk-KEMOXQGR.js.map → chunk-JW67WBS2.js.map} +0 -0
  217. /package/dist/chunks/{chunk-2WJQTSRQ.js.map → chunk-KL3CLIA2.js.map} +0 -0
  218. /package/dist/chunks/{chunk-KMTM4NNH.js.map → chunk-KOTJVZ33.js.map} +0 -0
  219. /package/dist/chunks/{chunk-JRX5IIMR.js.map → chunk-LID7O2YP.js.map} +0 -0
  220. /package/dist/chunks/{chunk-Y67ML2IN.js.map → chunk-M2VJZ5G5.js.map} +0 -0
  221. /package/dist/chunks/{chunk-DXEAJL7W.js.map → chunk-MJOO5EA4.js.map} +0 -0
  222. /package/dist/chunks/{chunk-QIVWFRYO.js.map → chunk-MVMP5SIL.js.map} +0 -0
  223. /package/dist/chunks/{chunk-Z43EXCUP.js.map → chunk-NIBYXC3H.js.map} +0 -0
  224. /package/dist/chunks/{chunk-XPW3PSVI.js.map → chunk-NPRTOWXF.js.map} +0 -0
  225. /package/dist/chunks/{chunk-TWZ5PJH2.js.map → chunk-NSPM2ALB.js.map} +0 -0
  226. /package/dist/chunks/{chunk-HD74DQ3Z.js.map → chunk-NZAFY2F4.js.map} +0 -0
  227. /package/dist/chunks/{chunk-CBIXPHOV.js.map → chunk-OS4QHE3D.js.map} +0 -0
  228. /package/dist/chunks/{chunk-GKPKHFMK.js.map → chunk-PBGIIPSL.js.map} +0 -0
  229. /package/dist/chunks/{chunk-NPH7ZTH4.js.map → chunk-PF32FZUI.js.map} +0 -0
  230. /package/dist/chunks/{chunk-ZYIPLUWS.js.map → chunk-Q6JWNB54.js.map} +0 -0
  231. /package/dist/chunks/{chunk-2PMNQ6HR.js.map → chunk-QCL4LFUZ.js.map} +0 -0
  232. /package/dist/chunks/{chunk-IDJTFYNK.js.map → chunk-QDWRNNKU.js.map} +0 -0
  233. /package/dist/chunks/{chunk-6PURQMHH.js.map → chunk-QHGD7RLH.js.map} +0 -0
  234. /package/dist/chunks/{chunk-UXFW6KD7.js.map → chunk-QZAYT5UR.js.map} +0 -0
  235. /package/dist/chunks/{chunk-UH7EP7TA.js.map → chunk-R4SQ7YG2.js.map} +0 -0
  236. /package/dist/chunks/{chunk-ZKLDG2CM.js.map → chunk-SVRLQQMB.js.map} +0 -0
  237. /package/dist/chunks/{chunk-SVH5P7TU.js.map → chunk-TGUXLYS2.js.map} +0 -0
  238. /package/dist/chunks/{chunk-C4C4Y2VT.js.map → chunk-TUHTURON.js.map} +0 -0
  239. /package/dist/chunks/{chunk-SY2AJ6LM.js.map → chunk-UEETLO7H.js.map} +0 -0
  240. /package/dist/chunks/{chunk-UANL44QG.js.map → chunk-UNYSNMAQ.js.map} +0 -0
  241. /package/dist/chunks/{chunk-TWEFDQ7C.js.map → chunk-UVGXDFY5.js.map} +0 -0
  242. /package/dist/chunks/{chunk-RNMU75CI.js.map → chunk-VJXFLYGQ.js.map} +0 -0
  243. /package/dist/chunks/{chunk-O6DNY5EM.js.map → chunk-WEQDKDC3.js.map} +0 -0
  244. /package/dist/chunks/{chunk-WVLBFEBP.js.map → chunk-WG7E73KJ.js.map} +0 -0
  245. /package/dist/chunks/{chunk-OBDGNMPB.js.map → chunk-WH6LELNJ.js.map} +0 -0
  246. /package/dist/chunks/{chunk-AHM54PGY.js.map → chunk-XCGIZUMG.js.map} +0 -0
  247. /package/dist/chunks/{chunk-J65SOO5P.js.map → chunk-XKRGL5Z5.js.map} +0 -0
  248. /package/dist/chunks/{chunk-JDUZFFX3.js.map → chunk-XWMIL5WP.js.map} +0 -0
  249. /package/dist/chunks/{chunk-7X2NHTHU.js.map → chunk-YZFC3GTH.js.map} +0 -0
  250. /package/dist/chunks/{chunk-YWZ3IMAS.js.map → chunk-Z2PZBUDP.js.map} +0 -0
  251. /package/dist/chunks/{cli-runtime-KHIX5OG4.js.map → cli-runtime-YAF6N4B4.js.map} +0 -0
  252. /package/dist/chunks/{commands-OGOMUDPT.js.map → commands-UJGFQSQ4.js.map} +0 -0
  253. /package/dist/chunks/{crash-report-VXC7CJDY.js.map → crash-report-YQOJKQCG.js.map} +0 -0
  254. /package/dist/chunks/{dist-LUUDW6KE.js.map → dist-2L7NSJJE.js.map} +0 -0
  255. /package/dist/chunks/{dist-POXH7TX7.js.map → dist-AFI563E4.js.map} +0 -0
  256. /package/dist/chunks/{dist-Q5YPDPOH.js.map → dist-B445LLNF.js.map} +0 -0
  257. /package/dist/chunks/{dist-O4Y5VCRK.js.map → dist-GETHBP7P.js.map} +0 -0
  258. /package/dist/chunks/{dist-Q7Z5SE4S.js.map → dist-GL2VWTJS.js.map} +0 -0
  259. /package/dist/chunks/{dist-EL2RMYNK.js.map → dist-H6SCKMJX.js.map} +0 -0
  260. /package/dist/chunks/{dist-AA4JNWT2.js.map → dist-HYGOYQLL.js.map} +0 -0
  261. /package/dist/chunks/{dist-Z62XBGQ7.js.map → dist-MF62HCKV.js.map} +0 -0
  262. /package/dist/chunks/{doctor-5IRXJ7DK.js.map → doctor-H27EQ5RE.js.map} +0 -0
  263. /package/dist/chunks/{drain-A44YWORN.js.map → drain-WO6UFXH4.js.map} +0 -0
  264. /package/dist/chunks/{entry-ODCHCJ3O.js.map → entry-QFLKR4O3.js.map} +0 -0
  265. /package/dist/chunks/{eval-35ZBHZLK.js.map → eval-SKVWJKSU.js.map} +0 -0
  266. /package/dist/chunks/{exec-TPOW33QE.js.map → exec-ZAXVBVTH.js.map} +0 -0
  267. /package/dist/chunks/{home-F4YAXKWJ.js.map → home-5EUINGKN.js.map} +0 -0
  268. /package/dist/chunks/{host-V7LVA7QU.js.map → host-5EP6E23T.js.map} +0 -0
  269. /package/dist/chunks/{host-queries-2HRJZ2TH.js.map → host-queries-6NEPSEAS.js.map} +0 -0
  270. /package/dist/chunks/{learn-NLECFL5B.js.map → learn-HJMN624W.js.map} +0 -0
  271. /package/dist/chunks/{learn-builtin-XLID77I3.js.map → learn-builtin-VRTLHEQW.js.map} +0 -0
  272. /package/dist/chunks/{lifecycle-UQL62JPO.js.map → lifecycle-MJTRWTCM.js.map} +0 -0
  273. /package/dist/chunks/{list-4PS7WAPI.js.map → list-LFBLFIKV.js.map} +0 -0
  274. /package/dist/chunks/{live-GBK7RIX2.js.map → live-MOEHIAAF.js.map} +0 -0
  275. /package/dist/chunks/{login-7LGGUBI5.js.map → login-4NTLCW7N.js.map} +0 -0
  276. /package/dist/chunks/{logs-VYY2CWAN.js.map → logs-EUKQL5B7.js.map} +0 -0
  277. /package/dist/chunks/{mcp-QL4TOTV5.js.map → mcp-CVG7FG6J.js.map} +0 -0
  278. /package/dist/chunks/{message-command-SCSTDFSA.js.map → message-command-WCIE3455.js.map} +0 -0
  279. /package/dist/chunks/{open-QSZFHDIW.js.map → open-ZY2THIE3.js.map} +0 -0
  280. /package/dist/chunks/{operator-tools-WF2UGZ5G.js.map → operator-tools-D6L7ASDD.js.map} +0 -0
  281. /package/dist/chunks/{output-schema-P3WXODDE.js.map → output-schema-GR4GYBPU.js.map} +0 -0
  282. /package/dist/chunks/{pal-JLSBOTEO.js.map → pal-O2V75KQK.js.map} +0 -0
  283. /package/dist/chunks/{peers-IMCPUY6R.js.map → peers-QB4HQ5PZ.js.map} +0 -0
  284. /package/dist/chunks/{peers-HDPCIVBY.js.map → peers-TNGB6WQH.js.map} +0 -0
  285. /package/dist/chunks/{providers-YXH2C5HE.js.map → providers-5VUFH7IJ.js.map} +0 -0
  286. /package/dist/chunks/{pty-74F5BMD3.js.map → pty-ORVEC6FI.js.map} +0 -0
  287. /package/dist/chunks/{resume-M63SJGJ4.js.map → resume-YK5YX2GP.js.map} +0 -0
  288. /package/dist/chunks/{resume-command-LFK2PQYH.js.map → resume-command-26JB6FZZ.js.map} +0 -0
  289. /package/dist/chunks/{schedule-5ZYAZJIM.js.map → schedule-LSM2OF24.js.map} +0 -0
  290. /package/dist/chunks/{service-LTYPMKWG.js.map → service-V2BNTEB4.js.map} +0 -0
  291. /package/dist/chunks/{skills-KUT4QD3K.js.map → skills-T2ZYRYZF.js.map} +0 -0
  292. /package/dist/chunks/{start-check-SYGALC5U.js.map → start-check-A4B3AXO2.js.map} +0 -0
  293. /package/dist/chunks/{startup-failure-YKREQTPO.js.map → startup-failure-YHDJI7YI.js.map} +0 -0
  294. /package/dist/chunks/{state-MQXTG6O3.js.map → state-OY6VG73L.js.map} +0 -0
  295. /package/dist/chunks/{store-EO3HNNFC.js.map → store-DBWWXNYV.js.map} +0 -0
  296. /package/dist/chunks/{store-J4UP5MJ3.js.map → store-IVQVINSF.js.map} +0 -0
  297. /package/dist/chunks/{store-KC43NWR4.js.map → store-LEOLKXRN.js.map} +0 -0
  298. /package/dist/chunks/{store-KW3NJHWV.js.map → store-QPO2TZ42.js.map} +0 -0
  299. /package/dist/chunks/{tui-DPTVVKBE.js.map → tui-VCNESTDO.js.map} +0 -0
  300. /package/dist/chunks/{upgrade-WI5CFBGG.js.map → upgrade-QQ665A7W.js.map} +0 -0
  301. /package/dist/chunks/{workspaces-VQ7VHN7N.js.map → workspaces-5JL7LPKW.js.map} +0 -0
  302. /package/dist/chunks/{worktree-KSDU4MTM.js.map → worktree-U2RO5D47.js.map} +0 -0
@@ -2,25 +2,30 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  dispatchCliPalMessages
5
- } from "./chunk-DLPWM4YC.js";
5
+ } from "./chunk-B47YGS45.js";
6
6
  import {
7
7
  decideHeadlessTrust
8
- } from "./chunk-4PF6DIYU.js";
8
+ } from "./chunk-GVT765NL.js";
9
9
  import {
10
10
  conversationMarkdown,
11
11
  lookupPr,
12
12
  runCommand,
13
13
  withKeyNote
14
- } from "./chunk-6PURQMHH.js";
15
- import "./chunk-TWZ5PJH2.js";
14
+ } from "./chunk-QHGD7RLH.js";
15
+ import "./chunk-NSPM2ALB.js";
16
16
  import "./chunk-JETLWXUE.js";
17
+ import {
18
+ deleteUserConfigValue,
19
+ setUserConfigValue,
20
+ userConfigPath
21
+ } from "./chunk-NIBYXC3H.js";
17
22
  import {
18
23
  HeadlessScreen
19
24
  } from "./chunk-GWGIAZLZ.js";
20
25
  import "./chunk-6HTC5TQ3.js";
21
26
  import {
22
27
  launchRefusal
23
- } from "./chunk-SIYXJ6PT.js";
28
+ } from "./chunk-JEIT4APA.js";
24
29
  import {
25
30
  cliPalComputerStatus,
26
31
  cliPalScreen,
@@ -33,21 +38,21 @@ import {
33
38
  startCliPalComputer,
34
39
  stopCliPalComputer,
35
40
  takeOverCliPalComputer
36
- } from "./chunk-O6DNY5EM.js";
41
+ } from "./chunk-WEQDKDC3.js";
37
42
  import {
38
43
  palSessionEnvironment
39
- } from "./chunk-QSGYZU46.js";
44
+ } from "./chunk-6BRAEYBL.js";
40
45
  import {
41
46
  cliPalActivitySubscriptionPolicy,
42
47
  cliPalActivitySubscriptionStore,
43
48
  cliPalCommunicationPolicy,
44
49
  cliPalCommunicationStore
45
- } from "./chunk-RAPB7HY3.js";
50
+ } from "./chunk-GJABD7QF.js";
46
51
  import {
47
52
  claimPalConversation,
48
53
  listPalConversations,
49
54
  palConversationBinding
50
- } from "./chunk-HYF3OKB7.js";
55
+ } from "./chunk-2RWJX3XO.js";
51
56
  import {
52
57
  FileCheckpointStore,
53
58
  PluginSettingsStore,
@@ -55,37 +60,38 @@ import {
55
60
  describeProviderModels,
56
61
  describeProviderReasoning,
57
62
  probeAgentSession,
63
+ screenQuestionApp,
58
64
  sessionLogCheckpointView,
59
65
  validateComposerSendSettings,
60
66
  verifyCredential
61
- } from "./chunk-6MEYPHDQ.js";
62
- import "./chunk-HREKLDJP.js";
63
- import "./chunk-7X2NHTHU.js";
64
- import "./chunk-J65SOO5P.js";
65
- import "./chunk-7HU7BYTT.js";
66
- import "./chunk-4AZTZXPQ.js";
67
- import "./chunk-2PMNQ6HR.js";
68
- import "./chunk-UH7EP7TA.js";
69
- import "./chunk-ZWJPQH5F.js";
70
- import "./chunk-QIVWFRYO.js";
67
+ } from "./chunk-76DVKFKX.js";
68
+ import "./chunk-5EOQWRBM.js";
69
+ import "./chunk-YZFC3GTH.js";
70
+ import "./chunk-XKRGL5Z5.js";
71
+ import "./chunk-6GOXVYVF.js";
72
+ import "./chunk-BTTD4VKX.js";
73
+ import "./chunk-QCL4LFUZ.js";
74
+ import "./chunk-R4SQ7YG2.js";
75
+ import "./chunk-24VVQCMV.js";
76
+ import "./chunk-MVMP5SIL.js";
71
77
  import "./chunk-WHODOMXA.js";
72
- import "./chunk-DXEAJL7W.js";
78
+ import "./chunk-MJOO5EA4.js";
73
79
  import "./chunk-YOWYTBJS.js";
74
80
  import "./chunk-2IPDTDB3.js";
75
- import "./chunk-VIBYGZFX.js";
81
+ import "./chunk-EQTOFC36.js";
76
82
  import "./chunk-IYUW2RAA.js";
77
- import "./chunk-EGPWQL55.js";
83
+ import "./chunk-FDV7XIWK.js";
78
84
  import "./chunk-ZWA2JRJV.js";
79
85
  import "./chunk-NUGPLXVK.js";
80
- import "./chunk-JRX5IIMR.js";
86
+ import "./chunk-LID7O2YP.js";
81
87
  import {
82
88
  listProviderConnections,
83
89
  removeProviderKey,
84
90
  saveProviderKey,
85
91
  typedKeyProvider
86
- } from "./chunk-ESHBGSXA.js";
87
- import "./chunk-4IOUN4SV.js";
88
- import "./chunk-GKPKHFMK.js";
92
+ } from "./chunk-2JZ6O4JX.js";
93
+ import "./chunk-4DMJITJF.js";
94
+ import "./chunk-PBGIIPSL.js";
89
95
  import {
90
96
  archiveConversation,
91
97
  closeSessions,
@@ -103,8 +109,8 @@ import {
103
109
  refreshIndex,
104
110
  setTitle,
105
111
  unarchiveConversation
106
- } from "./chunk-W27IOJQ5.js";
107
- import "./chunk-BWOSM4EO.js";
112
+ } from "./chunk-2SBMVMTO.js";
113
+ import "./chunk-EPMW4N5H.js";
108
114
  import {
109
115
  cliProjectRoot
110
116
  } from "./chunk-JQIBPPOL.js";
@@ -117,14 +123,14 @@ import {
117
123
  listPals,
118
124
  palAtWorkspace,
119
125
  updatePal
120
- } from "./chunk-USTCATWP.js";
126
+ } from "./chunk-3KLNVOTV.js";
121
127
  import {
122
128
  isTrusted,
123
129
  isTrustedAtStateRoot,
124
130
  trustDir,
125
131
  untrustDir
126
- } from "./chunk-4L3LPJ4M.js";
127
- import "./chunk-DJZ5W4ML.js";
132
+ } from "./chunk-CCYLACZC.js";
133
+ import "./chunk-BBESTSGG.js";
128
134
  import {
129
135
  resolveTrustedProjectContext
130
136
  } from "./chunk-CHIEVVQ2.js";
@@ -132,19 +138,24 @@ import {
132
138
  CLI_VERSION
133
139
  } from "./chunk-HE7WUOX2.js";
134
140
  import "./chunk-GNBMKISG.js";
135
- import "./chunk-TVBD2LZV.js";
141
+ import "./chunk-GO3IILJG.js";
136
142
  import "./chunk-OH6TB27S.js";
137
- import "./chunk-Y2RIV5UX.js";
138
- import "./chunk-KONYGNG6.js";
143
+ import {
144
+ ConfigValueError,
145
+ readConfigKey
146
+ } from "./chunk-MUT6I5NR.js";
147
+ import {
148
+ require_dist
149
+ } from "./chunk-KONYGNG6.js";
139
150
  import "./chunk-LCGXWCVU.js";
140
151
  import {
141
152
  compilePermissionLayers,
142
153
  permissionLayersOf,
143
154
  warnLegacyMcpPermissionNames
144
- } from "./chunk-JBBB5EG2.js";
155
+ } from "./chunk-2HNRN4BZ.js";
145
156
  import {
146
157
  cliLogger
147
- } from "./chunk-JDUZFFX3.js";
158
+ } from "./chunk-XWMIL5WP.js";
148
159
  import "./chunk-SIG7WHBU.js";
149
160
  import "./chunk-LVVD32KJ.js";
150
161
  import "./chunk-6PWRKA5T.js";
@@ -161,28 +172,28 @@ import {
161
172
  loadHostPty,
162
173
  processesCarrying,
163
174
  quietConptyHelper
164
- } from "./chunk-C4C4Y2VT.js";
165
- import "./chunk-2WJQTSRQ.js";
175
+ } from "./chunk-TUHTURON.js";
176
+ import "./chunk-KL3CLIA2.js";
166
177
  import {
167
178
  automaticKind,
168
179
  canSelectModel,
169
180
  discoverProviders,
170
181
  isAnonymousZen
171
- } from "./chunk-KMTM4NNH.js";
182
+ } from "./chunk-KOTJVZ33.js";
172
183
  import {
173
184
  isOfferableModel
174
- } from "./chunk-IE5XIE4W.js";
185
+ } from "./chunk-XCECERRM.js";
175
186
  import "./chunk-G6YSAHKC.js";
176
187
  import "./chunk-B73OIFL6.js";
177
188
  import "./chunk-RI2KAZJO.js";
178
- import "./chunk-2LZA3UMD.js";
179
- import "./chunk-6QOP2PHC.js";
180
- import "./chunk-UANL44QG.js";
189
+ import "./chunk-EWMX4NYZ.js";
190
+ import "./chunk-37JCXHFG.js";
191
+ import "./chunk-UNYSNMAQ.js";
181
192
  import {
182
193
  canonicalProjectPath
183
194
  } from "./chunk-JORONMD3.js";
184
- import "./chunk-BERMCELL.js";
185
- import "./chunk-TWEFDQ7C.js";
195
+ import "./chunk-DZBKO5XZ.js";
196
+ import "./chunk-UVGXDFY5.js";
186
197
  import {
187
198
  ACPServer,
188
199
  DiskLogMedium,
@@ -216,14 +227,15 @@ import {
216
227
  resolveWithinAnyReal,
217
228
  resolveWithinReal,
218
229
  selectAssistantText
219
- } from "./chunk-7TWA4BQX.js";
230
+ } from "./chunk-U73P6IJU.js";
220
231
  import {
221
- __name
232
+ __name,
233
+ __toESM
222
234
  } from "./chunk-76FLAFCG.js";
223
235
 
224
236
  // src/commands/acp.ts
225
237
  import { randomUUID as randomUUID6 } from "node:crypto";
226
- import { readFileSync } from "node:fs";
238
+ import { readFileSync as readFileSync2 } from "node:fs";
227
239
  import { dirname as dirname3, join as join6, relative } from "node:path";
228
240
  import { fileURLToPath } from "node:url";
229
241
 
@@ -3721,7 +3733,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
3721
3733
  return selections.get(id2);
3722
3734
  }, "selectionFor");
3723
3735
  const fresh = /* @__PURE__ */ __name((entry) => entry?.settled === true && entry.stored !== true && entry.at !== void 0 && clock2() - entry.at < MODEL_LIST_FRESH_MS, "fresh");
3724
- const lookup = /* @__PURE__ */ __name(async (engine, cwd) => {
3736
+ const lookup2 = /* @__PURE__ */ __name(async (engine, cwd) => {
3725
3737
  const identity = await deps.identity?.(engine) ?? "";
3726
3738
  const key = JSON.stringify([engine, cwd, identity]);
3727
3739
  for (const other of [...catalogues.keys()]) {
@@ -3766,7 +3778,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
3766
3778
  return entry;
3767
3779
  }, "discover");
3768
3780
  const modelsFor = /* @__PURE__ */ __name(async (engine, cwd, mode = "cached") => {
3769
- const { key, identity, entry } = await lookup(engine, cwd);
3781
+ const { key, identity, entry } = await lookup2(engine, cwd);
3770
3782
  const again = entry?.settled === true && (mode === "force" || mode === "revalidate" && !fresh(entry));
3771
3783
  const found = entry && !again ? entry : discover(key, identity, engine, cwd, entry);
3772
3784
  const models = await found.promise;
@@ -3777,12 +3789,12 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
3777
3789
  );
3778
3790
  return models;
3779
3791
  }, "modelsFor");
3780
- const knownModels = /* @__PURE__ */ __name(async (engine, cwd) => (await lookup(engine, cwd)).entry?.models, "knownModels");
3792
+ const knownModels = /* @__PURE__ */ __name(async (engine, cwd) => (await lookup2(engine, cwd)).entry?.models, "knownModels");
3781
3793
  const findModel = /* @__PURE__ */ __name(async (engine, cwd, wanted) => {
3782
3794
  let models = await modelsFor(engine, cwd);
3783
3795
  const target = /* @__PURE__ */ __name((list) => wanted === void 0 ? list.find((row3) => row3.default) ?? list[0] : list.find((row3) => row3.id === wanted), "target");
3784
3796
  let row2 = target(models);
3785
- if (!row2 && !fresh((await lookup(engine, cwd)).entry)) {
3797
+ if (!row2 && !fresh((await lookup2(engine, cwd)).entry)) {
3786
3798
  models = await modelsFor(engine, cwd, "force");
3787
3799
  row2 = target(models);
3788
3800
  }
@@ -4235,9 +4247,1047 @@ async function readProviderRetryStatus(state, sessionId) {
4235
4247
  }
4236
4248
  __name(readProviderRetryStatus, "readProviderRetryStatus");
4237
4249
 
4250
+ // src/commands/acp-screen-question.ts
4251
+ var SCREEN_MOMENT_TOOL = "screen_moment";
4252
+ function questionsOverPermission(sessionId, ask, turnSignal) {
4253
+ let counter = 0;
4254
+ return async (question, signal) => {
4255
+ const app = screenQuestionApp(question);
4256
+ if (app === void 0) return { kind: "skip" };
4257
+ if (turnSignal.aborted) return { kind: "abort" };
4258
+ counter += 1;
4259
+ const asked = ask({
4260
+ sessionId,
4261
+ toolCalls: [
4262
+ {
4263
+ id: `screen-moment-${counter}`,
4264
+ name: SCREEN_MOMENT_TOOL,
4265
+ input: { app },
4266
+ isDestructive: false,
4267
+ alwaysAsk: true
4268
+ }
4269
+ ]
4270
+ }).then(
4271
+ (outcome) => outcome.kind === "reject" ? { kind: "answer", selectedOptionIds: ["deny"] } : { kind: "answer", selectedOptionIds: ["allow"] },
4272
+ () => turnSignal.aborted ? { kind: "abort" } : { kind: "skip" }
4273
+ );
4274
+ if (!signal) return asked;
4275
+ const stopped = new Promise((resolve4) => {
4276
+ const done = /* @__PURE__ */ __name(() => resolve4({ kind: "skip" }), "done");
4277
+ if (signal.aborted) done();
4278
+ else signal.addEventListener("abort", done, { once: true });
4279
+ });
4280
+ return Promise.race([asked, stopped]);
4281
+ };
4282
+ }
4283
+ __name(questionsOverPermission, "questionsOverPermission");
4284
+
4238
4285
  // src/commands/desktop-host.ts
4239
4286
  import { lstat as lstat2 } from "node:fs/promises";
4240
4287
 
4288
+ // src/config/desktop-settings.ts
4289
+ var import_yaml = __toESM(require_dist(), 1);
4290
+ import { existsSync, readFileSync } from "node:fs";
4291
+
4292
+ // src/config/settings-descriptors.ts
4293
+ var on = { kind: "toggle" };
4294
+ var num = /* @__PURE__ */ __name((min, max, unit) => ({
4295
+ kind: "number",
4296
+ ...min !== void 0 ? { min } : {},
4297
+ ...max !== void 0 ? { max } : {},
4298
+ ...unit ? { unit } : {}
4299
+ }), "num");
4300
+ var pick = /* @__PURE__ */ __name((...values) => ({
4301
+ kind: "select",
4302
+ options: values.map((value) => ({ value, label: value }))
4303
+ }), "pick");
4304
+ var checks = /* @__PURE__ */ __name((...values) => ({
4305
+ kind: "checks",
4306
+ options: values.map((value) => ({ value, label: value }))
4307
+ }), "checks");
4308
+ var json = /* @__PURE__ */ __name((example) => ({ kind: "json", example }), "json");
4309
+ var fileOnly = { kind: "file-only" };
4310
+ function d(path, section, label, description, control, more = {}) {
4311
+ return { path, section, label, description, control, ...more };
4312
+ }
4313
+ __name(d, "d");
4314
+ var SETTING_DESCRIPTORS = [
4315
+ // General
4316
+ d(
4317
+ "format",
4318
+ "terminal",
4319
+ "Output format",
4320
+ "How the command line prints its results.",
4321
+ pick("text", "json", "yaml"),
4322
+ { defaultText: "text" }
4323
+ ),
4324
+ d("quiet", "terminal", "Quiet output", "Print only what was asked for.", on, {
4325
+ defaultText: "off"
4326
+ }),
4327
+ d(
4328
+ "hypermode",
4329
+ "general",
4330
+ "Hypermode",
4331
+ "Let Namzu run longer, larger jobs without stopping to check in.",
4332
+ on,
4333
+ {
4334
+ defaultText: "off",
4335
+ confirm: "Namzu will run longer jobs without stopping to check in with you.",
4336
+ confirmWhen: "on"
4337
+ }
4338
+ ),
4339
+ d(
4340
+ "profiles",
4341
+ "general",
4342
+ "Profiles",
4343
+ "Named bundles of settings you switch between. Edit them in the config file.",
4344
+ fileOnly
4345
+ ),
4346
+ // Models
4347
+ d(
4348
+ "model",
4349
+ "models",
4350
+ "Choose the model automatically",
4351
+ "Pick a model for each task. Needs routing below.",
4352
+ pick("auto"),
4353
+ {
4354
+ confirm: "Namzu will send the start of each task to a model that chooses which model answers."
4355
+ }
4356
+ ),
4357
+ d(
4358
+ "routing",
4359
+ "models",
4360
+ "Automatic routing",
4361
+ "Which model is the default, which are fast and large, and how a choice is made.",
4362
+ json('{ "default": { "provider": "anthropic", "model": "..." }, "strategy": "yesno" }'),
4363
+ {
4364
+ confirm: "Routing sends task text to a model that decides which model answers."
4365
+ }
4366
+ ),
4367
+ d(
4368
+ "smallModel",
4369
+ "models",
4370
+ "Small model",
4371
+ "The model for quick side jobs such as titles. Provider/model, or just the model.",
4372
+ { kind: "text", placeholder: "provider/model" },
4373
+ {
4374
+ defaultText: "the cheapest model with a known price",
4375
+ confirm: "Text from your conversations is sent to this model for side jobs."
4376
+ }
4377
+ ),
4378
+ d(
4379
+ "refusalFallback",
4380
+ "models",
4381
+ "When a model refuses",
4382
+ "Try another model when the first one declines to answer.",
4383
+ pick("auto", "off"),
4384
+ {
4385
+ defaultText: "auto",
4386
+ confirm: "The request will be sent to a different model after a refusal."
4387
+ }
4388
+ ),
4389
+ d(
4390
+ "modelCatalogueRefresh",
4391
+ "models",
4392
+ "Refresh the model list",
4393
+ "Look for new models and prices when Namzu starts.",
4394
+ on,
4395
+ { defaultText: "on" }
4396
+ ),
4397
+ d(
4398
+ "decision",
4399
+ "models",
4400
+ "Decision model",
4401
+ "A second model that helps with notifications, memory, skills and picks. Set it up from the terminal; it keeps no secret in this file.",
4402
+ fileOnly
4403
+ ),
4404
+ d(
4405
+ "permissions.autoMode",
4406
+ "models",
4407
+ "Auto mode reviewer",
4408
+ "The model and rules that approve actions in auto mode.",
4409
+ json('{ "model": "provider/model" }'),
4410
+ {
4411
+ confirm: "This decides which actions are approved without asking you."
4412
+ }
4413
+ ),
4414
+ // Projects: what may run
4415
+ d(
4416
+ "permissions.defaultMode",
4417
+ "projects",
4418
+ "Default permission mode",
4419
+ "How Namzu asks before it acts, until you choose otherwise for a conversation.",
4420
+ pick("prompt", "accept-edits", "plan", "bypass", "auto", "strict"),
4421
+ {
4422
+ defaultText: "prompt",
4423
+ confirm: "Some modes let Namzu act without asking. Only choose one you are comfortable with."
4424
+ }
4425
+ ),
4426
+ d(
4427
+ "permissions.disableBypassMode",
4428
+ "projects",
4429
+ "Forbid bypass mode",
4430
+ "Remove the mode that skips every question.",
4431
+ on,
4432
+ {
4433
+ confirm: "Bypass mode, which skips every question, will be available again.",
4434
+ confirmWhen: "off"
4435
+ }
4436
+ ),
4437
+ d(
4438
+ "permissions.disableAutoMode",
4439
+ "projects",
4440
+ "Forbid auto mode",
4441
+ "Remove the mode that lets a model approve actions.",
4442
+ on,
4443
+ {
4444
+ confirm: "Auto mode, where a model approves actions, will be available again.",
4445
+ confirmWhen: "off"
4446
+ }
4447
+ ),
4448
+ d(
4449
+ "permissions",
4450
+ "projects",
4451
+ "Permission rules",
4452
+ "Allow, ask or deny a tool, or a pattern of its input.",
4453
+ json('{ "bash": "ask", "read": "allow" }'),
4454
+ {
4455
+ confirm: "Rules can let tools run without asking you."
4456
+ }
4457
+ ),
4458
+ d(
4459
+ "permissionChecks",
4460
+ "projects",
4461
+ "Permission self-checks",
4462
+ "Cases that must come out as allow, ask or deny, checked when Namzu starts.",
4463
+ json('[ { "tool": "bash", "input": "rm -rf /", "expect": "deny" } ]'),
4464
+ {
4465
+ confirm: "Removing a check means a rule that lets the wrong thing through goes unnoticed."
4466
+ }
4467
+ ),
4468
+ d(
4469
+ "additionalDirectories",
4470
+ "projects",
4471
+ "Extra folders",
4472
+ "Folders besides the project that Namzu may read and change.",
4473
+ json('[ "/path/to/folder" ]'),
4474
+ {
4475
+ confirm: "Namzu will be able to reach these folders in every project."
4476
+ }
4477
+ ),
4478
+ d(
4479
+ "sandbox.enabled",
4480
+ "projects",
4481
+ "Run in a sandbox",
4482
+ "Keep what Namzu runs inside an isolated space.",
4483
+ on,
4484
+ {
4485
+ confirm: "Without a sandbox, commands run directly on this computer.",
4486
+ confirmWhen: "off"
4487
+ }
4488
+ ),
4489
+ d(
4490
+ "sandbox.allowEscape",
4491
+ "projects",
4492
+ "Allow leaving the sandbox",
4493
+ "Let Namzu ask to run one command outside it.",
4494
+ on,
4495
+ {
4496
+ defaultText: "on",
4497
+ confirm: "Namzu will be able to ask to run commands outside the sandbox.",
4498
+ confirmWhen: "on"
4499
+ }
4500
+ ),
4501
+ d(
4502
+ "sandbox.allowUnattendedEscape",
4503
+ "projects",
4504
+ "Allow leaving it without asking",
4505
+ "Let work nobody is watching run outside the sandbox.",
4506
+ on,
4507
+ {
4508
+ defaultText: "off",
4509
+ confirm: "Unattended work could run commands outside the sandbox with nobody to stop it.",
4510
+ confirmWhen: "on"
4511
+ }
4512
+ ),
4513
+ d(
4514
+ "sandbox.requireIsolation",
4515
+ "projects",
4516
+ "Required isolation",
4517
+ "Namzu refuses to start when the sandbox cannot isolate all of these.",
4518
+ checks("filesystem", "network", "process")
4519
+ ),
4520
+ d(
4521
+ "sandbox.workspace",
4522
+ "projects",
4523
+ "Sandbox workspace",
4524
+ "Work in the project folder, or in a throwaway copy.",
4525
+ pick("working-directory", "ephemeral"),
4526
+ { defaultText: "working-directory" }
4527
+ ),
4528
+ d(
4529
+ "sandbox.teardownTimeoutMs",
4530
+ "projects",
4531
+ "Sandbox cleanup time limit",
4532
+ "How long to wait while a sandbox shuts down. 0 waits as long as it takes.",
4533
+ num(0, void 0, "ms"),
4534
+ { defaultText: "30000" }
4535
+ ),
4536
+ // Updates
4537
+ d(
4538
+ "updates.auto",
4539
+ "terminal",
4540
+ "Install command line updates automatically",
4541
+ "Namzu updates itself in the background.",
4542
+ on,
4543
+ {
4544
+ confirm: "Namzu will install new versions of its command line on its own.",
4545
+ confirmWhen: "on"
4546
+ }
4547
+ ),
4548
+ d(
4549
+ "updates.channel",
4550
+ "updates",
4551
+ "Update channel",
4552
+ "latest gets new versions first, stable waits longer.",
4553
+ pick("latest", "stable"),
4554
+ { defaultText: "latest" }
4555
+ ),
4556
+ d(
4557
+ "updates.check",
4558
+ "terminal",
4559
+ "Check for command line updates",
4560
+ "Look for a new version when Namzu starts.",
4561
+ on
4562
+ ),
4563
+ // Agent
4564
+ d(
4565
+ "limits.maxResponseTokens",
4566
+ "agent",
4567
+ "Longest answer",
4568
+ "The most a model may write in one answer.",
4569
+ num(1, void 0, "tokens"),
4570
+ { defaultText: "8192" }
4571
+ ),
4572
+ d(
4573
+ "limits.maxReasoningTokens",
4574
+ "agent",
4575
+ "Thinking budget",
4576
+ "The most a model may think before answering. 0 removes the cap.",
4577
+ num(0, void 0, "tokens"),
4578
+ { defaultText: "24000 at medium effort and above" }
4579
+ ),
4580
+ d(
4581
+ "limits.doneGate",
4582
+ "agent",
4583
+ "Check before finishing",
4584
+ "Namzu checks its own work once before it ends a turn.",
4585
+ on,
4586
+ {
4587
+ defaultText: "on",
4588
+ confirm: "Namzu will end a turn without checking its own work first.",
4589
+ confirmWhen: "off"
4590
+ }
4591
+ ),
4592
+ d("limits.maxIterations", "agent", "Most steps per task", "0 means no limit.", num(0), {
4593
+ defaultText: "no limit",
4594
+ confirm: "With no limit, a task can keep taking steps until it ends on its own.",
4595
+ confirmWhen: "zero"
4596
+ }),
4597
+ d(
4598
+ "limits.tokenBudget",
4599
+ "agent",
4600
+ "Most tokens per task",
4601
+ "0 means no limit.",
4602
+ num(0, void 0, "tokens"),
4603
+ {
4604
+ defaultText: "no limit",
4605
+ confirm: "With no limit, a task can use as many tokens as it needs.",
4606
+ confirmWhen: "zero"
4607
+ }
4608
+ ),
4609
+ d(
4610
+ "limits.timeoutMs",
4611
+ "agent",
4612
+ "Longest task time",
4613
+ "0 means no limit.",
4614
+ num(0, void 0, "ms"),
4615
+ { defaultText: "no limit" }
4616
+ ),
4617
+ d(
4618
+ "limits.costLimitUsd",
4619
+ "agent",
4620
+ "Most spend per task",
4621
+ "In US dollars. 0 means no limit.",
4622
+ num(0, void 0, "USD"),
4623
+ {
4624
+ defaultText: "no limit",
4625
+ confirm: "With no limit, a task can spend as much as it takes.",
4626
+ confirmWhen: "zero"
4627
+ }
4628
+ ),
4629
+ d(
4630
+ "limits.waitForProviderMs",
4631
+ "terminal",
4632
+ "Wait for a busy provider",
4633
+ "How long a one-shot run waits when a provider is busy.",
4634
+ num(0, void 0, "ms"),
4635
+ { defaultText: "0" }
4636
+ ),
4637
+ d(
4638
+ "workflow.maxConcurrency",
4639
+ "agent",
4640
+ "Helpers working at once",
4641
+ "How many helper agents may run side by side.",
4642
+ num(2, 16),
4643
+ { defaultText: "your processor count minus 2, at most 16" }
4644
+ ),
4645
+ d(
4646
+ "workflow.maxAgents",
4647
+ "agent",
4648
+ "Most helpers per workflow",
4649
+ "A cap on how many helper agents one workflow may start.",
4650
+ num(1, 1e3),
4651
+ { defaultText: "1000" }
4652
+ ),
4653
+ d(
4654
+ "workflow.sizeGuideline",
4655
+ "agent",
4656
+ "Workflow size",
4657
+ "How large a workflow Namzu aims for.",
4658
+ pick("unrestricted", "small", "medium", "large"),
4659
+ { defaultText: "medium" }
4660
+ ),
4661
+ d(
4662
+ "toolResultScreens",
4663
+ "agent",
4664
+ "Screens on tool results",
4665
+ "Checks applied to what a tool returns before a model reads it.",
4666
+ json('[ "correspondence", "injection" ]'),
4667
+ {
4668
+ confirm: "Removing a screen lets tool output reach the model unchecked."
4669
+ }
4670
+ ),
4671
+ d(
4672
+ "compaction.strategy",
4673
+ "agent",
4674
+ "How long chats are shortened",
4675
+ "The method used to fit a long conversation in the model window.",
4676
+ pick("structured", "salience"),
4677
+ { defaultText: "salience" }
4678
+ ),
4679
+ d(
4680
+ "compaction.autoCompactWindowTokens",
4681
+ "agent",
4682
+ "Shorten at this size",
4683
+ "Shorten the conversation when it reaches this many tokens.",
4684
+ num(1, void 0, "tokens")
4685
+ ),
4686
+ d(
4687
+ "compaction.contextWindowTokens",
4688
+ "agent",
4689
+ "Assumed model window",
4690
+ "Override the model window size Namzu assumes. Advanced.",
4691
+ num(1, void 0, "tokens")
4692
+ ),
4693
+ d(
4694
+ "compaction.modelSummary",
4695
+ "agent",
4696
+ "Summarise with a model",
4697
+ "Use a model to write the summary when shortening.",
4698
+ on,
4699
+ { defaultText: "on" }
4700
+ ),
4701
+ d(
4702
+ "compaction.recallEvidence",
4703
+ "agent",
4704
+ "Recall dropped details",
4705
+ "Bring back details that shortening removed when they matter.",
4706
+ on,
4707
+ { defaultText: "on" }
4708
+ ),
4709
+ d(
4710
+ "compaction.resolveEvidenceQueries",
4711
+ "agent",
4712
+ "Ask a model what to recall",
4713
+ "A paid call that finds the details worth recalling.",
4714
+ on,
4715
+ { defaultText: "on" }
4716
+ ),
4717
+ d(
4718
+ "compaction.retainedToolPreviewChars",
4719
+ "agent",
4720
+ "Kept tool output",
4721
+ "Characters of each tool result kept after shortening. 0 keeps up to 40000.",
4722
+ num(0, void 0, "characters"),
4723
+ { defaultText: "4000" }
4724
+ ),
4725
+ d(
4726
+ "compaction.deduplicateObservations",
4727
+ "agent",
4728
+ "Drop repeated results",
4729
+ "Keep one copy of the same tool result.",
4730
+ on,
4731
+ { defaultText: "on" }
4732
+ ),
4733
+ d(
4734
+ "compaction.consolidate",
4735
+ "agent",
4736
+ "Merge notes when shortening",
4737
+ "Merge related notes into one.",
4738
+ on
4739
+ ),
4740
+ d(
4741
+ "compaction.idleCompaction",
4742
+ "agent",
4743
+ "Shorten while idle",
4744
+ "Shorten a large conversation while you are away.",
4745
+ on,
4746
+ { defaultText: "off" }
4747
+ ),
4748
+ d(
4749
+ "compaction.idleCompactionMinTokens",
4750
+ "agent",
4751
+ "Idle shortening starts at",
4752
+ "The smallest conversation worth shortening while idle. At least 100000.",
4753
+ num(1e5, void 0, "tokens"),
4754
+ { defaultText: "200000" }
4755
+ ),
4756
+ d(
4757
+ "compaction.promptCacheTtl",
4758
+ "agent",
4759
+ "Cache lifetime",
4760
+ "1h keeps a conversation cheap to resume but costs more to write.",
4761
+ pick("5m", "1h"),
4762
+ { defaultText: "5m" }
4763
+ ),
4764
+ d("memory.recall", "agent", "Recall memory", "Bring saved memory into a conversation.", on, {
4765
+ defaultText: "on"
4766
+ }),
4767
+ d(
4768
+ "memory.identifierGrounding",
4769
+ "agent",
4770
+ "Check names against memory",
4771
+ "Verify file and function names before using them.",
4772
+ on,
4773
+ { defaultText: "off" }
4774
+ ),
4775
+ d(
4776
+ "memory.select",
4777
+ "agent",
4778
+ "Choose memory with a model",
4779
+ "A model picks which memories to bring in.",
4780
+ pick("on", "off"),
4781
+ {
4782
+ defaultText: "on",
4783
+ confirm: "Memory titles are sent to a model to choose from."
4784
+ }
4785
+ ),
4786
+ d(
4787
+ "memory.curation",
4788
+ "agent",
4789
+ "Tidy memory with a model",
4790
+ "A model merges and retires memories.",
4791
+ pick("on", "off"),
4792
+ {
4793
+ defaultText: "on",
4794
+ confirm: "Memory content is sent to a model to tidy it."
4795
+ }
4796
+ ),
4797
+ d(
4798
+ "memory.retireAfterDays",
4799
+ "agent",
4800
+ "Retire unused memory after",
4801
+ "Days before an unused memory retires. 0 keeps it forever.",
4802
+ num(0, void 0, "days"),
4803
+ { defaultText: "21" }
4804
+ ),
4805
+ d(
4806
+ "learningObservations",
4807
+ "agent",
4808
+ "Learn from your work",
4809
+ "Note what you do so Namzu can suggest habits and skills.",
4810
+ on,
4811
+ { defaultText: "on" }
4812
+ ),
4813
+ d(
4814
+ "learningGenerator.enabled",
4815
+ "agent",
4816
+ "Write suggestions from what it learned",
4817
+ "Let a model turn observations into suggestions.",
4818
+ on
4819
+ ),
4820
+ d(
4821
+ "learningGenerator.cycleTokens",
4822
+ "agent",
4823
+ "Tokens per learning cycle",
4824
+ "The most one learning pass may use.",
4825
+ num(1e3, void 0, "tokens"),
4826
+ { defaultText: "120000" }
4827
+ ),
4828
+ d(
4829
+ "learningGenerator.dailyTokens",
4830
+ "agent",
4831
+ "Tokens per day for learning",
4832
+ "The most learning may use in a day.",
4833
+ num(1e3, void 0, "tokens"),
4834
+ { defaultText: "300000" }
4835
+ ),
4836
+ d("skills.builtin", "agent", "Built-in skills", "Offer the skills that ship with Namzu.", on, {
4837
+ defaultText: "on"
4838
+ }),
4839
+ d(
4840
+ "skills.disabled",
4841
+ "agent",
4842
+ "Turned-off skills",
4843
+ "Skills Namzu will not use, by name.",
4844
+ json('[ "skill-name" ]')
4845
+ ),
4846
+ d(
4847
+ "skills.suggest",
4848
+ "agent",
4849
+ "Suggest saving a skill",
4850
+ "After a long task, offer to keep it as a skill.",
4851
+ on,
4852
+ { defaultText: "on" }
4853
+ ),
4854
+ d(
4855
+ "skills.suggestMinToolCalls",
4856
+ "agent",
4857
+ "Suggest after this many steps",
4858
+ "How long a task must be before a skill is suggested.",
4859
+ num(1),
4860
+ { defaultText: "6" }
4861
+ ),
4862
+ d(
4863
+ "schedule.maxConcurrentRuns",
4864
+ "agent",
4865
+ "Scheduled runs at once",
4866
+ "How many scheduled tasks may run side by side.",
4867
+ num(1),
4868
+ { defaultText: "2" }
4869
+ ),
4870
+ d(
4871
+ "schedule.notifications",
4872
+ "agent",
4873
+ "Notify when a scheduled run ends",
4874
+ "Tell you when a scheduled task finishes.",
4875
+ on,
4876
+ { defaultText: "on" }
4877
+ ),
4878
+ // Tools
4879
+ d(
4880
+ "web.search",
4881
+ "tools",
4882
+ "Web search",
4883
+ "off, cached results only, or live.",
4884
+ pick("off", "cached", "live"),
4885
+ {
4886
+ defaultText: "live",
4887
+ confirm: "Namzu will search the web and send queries out."
4888
+ }
4889
+ ),
4890
+ d(
4891
+ "web.backend",
4892
+ "tools",
4893
+ "Web search service",
4894
+ "Which service answers web searches.",
4895
+ pick("auto", "exa", "native"),
4896
+ {
4897
+ defaultText: "auto",
4898
+ confirm: "The native option has no local review of what is searched."
4899
+ }
4900
+ ),
4901
+ d("web.fetch", "tools", "Fetch web pages", "Let Namzu read the web pages it is pointed to.", on, {
4902
+ defaultText: "on",
4903
+ confirm: "Namzu will download pages from the internet.",
4904
+ confirmWhen: "on"
4905
+ }),
4906
+ d("browser.enabled", "terminal", "Browser", "Let the terminal app use a browser.", on, {
4907
+ defaultText: "on"
4908
+ }),
4909
+ d(
4910
+ "browser.defaultProfile",
4911
+ "tools",
4912
+ "Browser profile",
4913
+ "The browser profile Namzu uses. Sign-ins live in it.",
4914
+ { kind: "text", placeholder: "default" },
4915
+ {
4916
+ defaultText: "default",
4917
+ confirm: "That profile holds the sign-ins Namzu would use."
4918
+ }
4919
+ ),
4920
+ d(
4921
+ "browser.engine",
4922
+ "tools",
4923
+ "Browser engine",
4924
+ "Which browser Namzu drives.",
4925
+ pick("auto", "windows", "local"),
4926
+ { defaultText: "auto" }
4927
+ ),
4928
+ d(
4929
+ "browser.headless",
4930
+ "tools",
4931
+ "Show the browser window",
4932
+ "auto decides, always hides it, never shows it.",
4933
+ pick("auto", "always", "never"),
4934
+ { defaultText: "auto" }
4935
+ ),
4936
+ d(
4937
+ "browser.sites",
4938
+ "tools",
4939
+ "Browser sites",
4940
+ "Per site: deny, read, ask or act. * is every other site.",
4941
+ json('{ "example.com": "read", "*": "ask" }'),
4942
+ {
4943
+ confirm: "Allowing act lets Namzu click and type on that site."
4944
+ }
4945
+ ),
4946
+ d(
4947
+ "browser.keepOpen",
4948
+ "tools",
4949
+ "Keep the browser open",
4950
+ "Leave the browser running between tasks.",
4951
+ on,
4952
+ { defaultText: "off" }
4953
+ ),
4954
+ d(
4955
+ "codeAnalysis.enabled",
4956
+ "terminal",
4957
+ "Code analysis",
4958
+ "Understand code structure in the terminal app.",
4959
+ on,
4960
+ { defaultText: "on" }
4961
+ ),
4962
+ d(
4963
+ "mcpServers",
4964
+ "tools",
4965
+ "Connected servers",
4966
+ "Tool servers Namzu starts or reaches. They hold commands and secrets, so edit them in the config file or the terminal.",
4967
+ fileOnly
4968
+ ),
4969
+ d(
4970
+ "hooks",
4971
+ "tools",
4972
+ "Hooks",
4973
+ "Commands that run on events such as before a tool runs. Edit them in the config file.",
4974
+ fileOnly
4975
+ ),
4976
+ d("plugins.enabled", "tools", "Plugins", "Allow plugins to run code.", on, {
4977
+ defaultText: "off",
4978
+ confirm: "Plugins run code on this computer.",
4979
+ confirmWhen: "on"
4980
+ }),
4981
+ d(
4982
+ "plugins.autoDiscovery",
4983
+ "tools",
4984
+ "Find plugins automatically",
4985
+ "Look for plugins in the usual folders.",
4986
+ on
4987
+ ),
4988
+ d(
4989
+ "plugins.hookTimeoutMs",
4990
+ "tools",
4991
+ "Plugin hook time limit",
4992
+ "How long a plugin hook may run.",
4993
+ num(1, void 0, "ms")
4994
+ ),
4995
+ d(
4996
+ "plugins.allowedScopes",
4997
+ "tools",
4998
+ "Where plugins may come from",
4999
+ "project, user, or both.",
5000
+ checks("project", "user"),
5001
+ {
5002
+ confirm: "Plugins from a project run code that came with that project."
5003
+ }
5004
+ ),
5005
+ d(
5006
+ "plugins.launchDirs",
5007
+ "tools",
5008
+ "Plugin folders",
5009
+ "Extra folders to load plugins from.",
5010
+ json('[ "/path/to/plugins" ]'),
5011
+ {
5012
+ confirm: "Plugins in these folders run code on this computer."
5013
+ }
5014
+ ),
5015
+ // Telemetry
5016
+ d(
5017
+ "telemetry.sessionExport.destination",
5018
+ "telemetry",
5019
+ "Save conversations to a file",
5020
+ "Write each conversation to this file.",
5021
+ { kind: "text", placeholder: "/path/to/file" },
5022
+ {
5023
+ confirm: "Your conversations will be copied to this file."
5024
+ }
5025
+ ),
5026
+ d(
5027
+ "telemetry.sessionExport.eventTypes",
5028
+ "telemetry",
5029
+ "What to save",
5030
+ "Only these kinds of events. Empty means all.",
5031
+ json('[ "message" ]')
5032
+ ),
5033
+ d(
5034
+ "telemetry.sessionExport.redactors",
5035
+ "telemetry",
5036
+ "Hide secrets when saving",
5037
+ "secrets removes keys and tokens. An empty list saves everything as is.",
5038
+ json('[ "secrets" ]'),
5039
+ {
5040
+ confirm: "With nothing hidden, secrets in a conversation are saved as they are."
5041
+ }
5042
+ ),
5043
+ d(
5044
+ "telemetry.otlp.endpoint",
5045
+ "telemetry",
5046
+ "Send traces to",
5047
+ "An OpenTelemetry address. Do not put a password in it; the address is shown here as written.",
5048
+ { kind: "text", placeholder: "https://" },
5049
+ {
5050
+ confirm: "Traces of your work will be sent to this address."
5051
+ }
5052
+ ),
5053
+ d(
5054
+ "telemetry.otlp.headers",
5055
+ "telemetry",
5056
+ "Trace sign-in headers",
5057
+ "Headers sent with traces. They hold a token, so edit them in the config file.",
5058
+ fileOnly
5059
+ ),
5060
+ // Terminal app
5061
+ d(
5062
+ "tui.theme",
5063
+ "terminal",
5064
+ "Terminal theme",
5065
+ "Colours in the terminal app.",
5066
+ pick("auto", "dark", "light", "dark-daltonized", "light-daltonized", "dark-ansi", "light-ansi"),
5067
+ { defaultText: "dark" }
5068
+ ),
5069
+ d("tui.reducedMotion", "terminal", "Reduce motion", "Less movement in the terminal app.", on),
5070
+ d(
5071
+ "tui.showExpandedTodos",
5072
+ "terminal",
5073
+ "Expand task lists",
5074
+ "Show every task, not a summary.",
5075
+ on
5076
+ ),
5077
+ d("tui.fullscreen", "terminal", "Full screen", "Use the whole terminal window.", on),
5078
+ d("tui.mouse", "terminal", "Mouse", "full, scroll only, or off.", pick("full", "scroll", "off"), {
5079
+ defaultText: "full"
5080
+ }),
5081
+ d("tui.copyOnSelect", "terminal", "Copy on select", "Copy text when you select it.", on, {
5082
+ defaultText: "on"
5083
+ }),
5084
+ d(
5085
+ "tui.recap",
5086
+ "terminal",
5087
+ "Recap on return",
5088
+ "A short recap when you come back to a conversation.",
5089
+ on,
5090
+ { defaultText: "on" }
5091
+ ),
5092
+ d("tui.spinnerTips", "terminal", "Tips while working", "Show a tip next to the spinner.", on, {
5093
+ defaultText: "on"
5094
+ }),
5095
+ d("tui.notifications", "terminal", "Notifications", "Which events notify you.", json("true"), {
5096
+ defaultText: "off"
5097
+ }),
5098
+ d(
5099
+ "tui.notificationMethod",
5100
+ "terminal",
5101
+ "Notification method",
5102
+ "How the terminal tells you.",
5103
+ pick("osc9", "bel", "kitty", "ghostty"),
5104
+ { defaultText: "osc9" }
5105
+ ),
5106
+ d("tui.sound", "terminal", "Sound", "Play a sound with notifications.", on, {
5107
+ defaultText: "on"
5108
+ }),
5109
+ d(
5110
+ "tui.workspacesPrefix",
5111
+ "terminal",
5112
+ "Workspaces key",
5113
+ "The key that starts a workspace shortcut, like ctrl+b.",
5114
+ { kind: "text", placeholder: "ctrl+b" },
5115
+ { defaultText: "ctrl+b" }
5116
+ ),
5117
+ d(
5118
+ "composerTriggers.enabled",
5119
+ "terminal",
5120
+ "Composer triggers",
5121
+ "Words in the message box that start things.",
5122
+ on,
5123
+ { defaultText: "on" }
5124
+ ),
5125
+ d(
5126
+ "composerTriggers.suggest",
5127
+ "terminal",
5128
+ "Suggest triggers",
5129
+ "Offer a trigger when one fits.",
5130
+ on,
5131
+ { defaultText: "on" }
5132
+ ),
5133
+ d(
5134
+ "composerTriggers.languages",
5135
+ "terminal",
5136
+ "Trigger languages",
5137
+ "Languages the triggers listen for.",
5138
+ checks("en", "tr")
5139
+ ),
5140
+ d(
5141
+ "composerTriggers.builtin",
5142
+ "terminal",
5143
+ "Each trigger",
5144
+ "Per trigger: arm, suggest or off.",
5145
+ json('{ "hypermode": "suggest" }')
5146
+ ),
5147
+ d(
5148
+ "statusLine",
5149
+ "terminal",
5150
+ "Status line",
5151
+ "A command whose output fills the terminal status line. It runs a command, so edit it in the config file.",
5152
+ fileOnly
5153
+ )
5154
+ ];
5155
+
5156
+ // src/config/desktop-settings.ts
5157
+ function descriptorFor(path) {
5158
+ const found = SETTING_DESCRIPTORS.find((entry) => entry.path === path);
5159
+ if (!found) throw new Error("That is not a setting Namzu can change here.");
5160
+ return found;
5161
+ }
5162
+ __name(descriptorFor, "descriptorFor");
5163
+ function readUserDocument(opts) {
5164
+ const file = userConfigPath(opts);
5165
+ if (!existsSync(file)) return {};
5166
+ const parsed = (0, import_yaml.parse)(readFileSync(file, "utf8"));
5167
+ if (parsed === null || parsed === void 0) return {};
5168
+ if (typeof parsed !== "object" || Array.isArray(parsed))
5169
+ throw new Error(`${file} is not a mapping of settings; fix it first`);
5170
+ return parsed;
5171
+ }
5172
+ __name(readUserDocument, "readUserDocument");
5173
+ function lookup(doc, path) {
5174
+ let at = doc;
5175
+ for (const segment of path) {
5176
+ if (at === null || typeof at !== "object" || Array.isArray(at)) return void 0;
5177
+ at = at[segment];
5178
+ }
5179
+ return at;
5180
+ }
5181
+ __name(lookup, "lookup");
5182
+ function readSettings(opts = {}) {
5183
+ const doc = readUserDocument(opts);
5184
+ const settings = SETTING_DESCRIPTORS.map((entry) => {
5185
+ const value = lookup(doc, entry.path.split("."));
5186
+ if (value === void 0) return { path: entry.path, set: false };
5187
+ if (entry.control.kind === "file-only") return { path: entry.path, set: true };
5188
+ return { path: entry.path, set: true, value };
5189
+ });
5190
+ return { file: userConfigPath(opts), settings, descriptors: SETTING_DESCRIPTORS };
5191
+ }
5192
+ __name(readSettings, "readSettings");
5193
+ function coerce(entry, raw) {
5194
+ const control = entry.control;
5195
+ switch (control.kind) {
5196
+ case "toggle":
5197
+ if (typeof raw !== "boolean") throw new Error("Choose on or off.");
5198
+ return raw;
5199
+ case "select":
5200
+ if (typeof raw !== "string" || !control.options.some((o) => o.value === raw))
5201
+ throw new Error(`Choose one of: ${control.options.map((o) => o.value).join(", ")}.`);
5202
+ return raw;
5203
+ case "checks": {
5204
+ if (!Array.isArray(raw) || raw.some((v) => typeof v !== "string"))
5205
+ throw new Error("Choose from the list.");
5206
+ const allowed = control.options.map((o) => o.value);
5207
+ if (raw.some((v) => !allowed.includes(v)))
5208
+ throw new Error(`Choose from: ${allowed.join(", ")}.`);
5209
+ return raw;
5210
+ }
5211
+ case "number":
5212
+ if (typeof raw !== "number" || !Number.isFinite(raw)) throw new Error("Enter a number.");
5213
+ if (control.min !== void 0 && raw < control.min)
5214
+ throw new Error(`Enter ${control.min} or more.`);
5215
+ if (control.max !== void 0 && raw > control.max)
5216
+ throw new Error(`Enter ${control.max} or less.`);
5217
+ return raw;
5218
+ case "text": {
5219
+ if (typeof raw !== "string") throw new Error("Enter some text.");
5220
+ const text4 = raw.trim();
5221
+ if (text4.length === 0 || text4.length > 2e3)
5222
+ throw new Error("Enter between 1 and 2000 characters.");
5223
+ return text4;
5224
+ }
5225
+ case "json": {
5226
+ if (typeof raw !== "string") throw new Error("Enter JSON.");
5227
+ if (raw.length > 1e5) throw new Error("That is too long.");
5228
+ try {
5229
+ return JSON.parse(raw);
5230
+ } catch (error) {
5231
+ throw new Error(`That is not valid JSON: ${error.message}`);
5232
+ }
5233
+ }
5234
+ case "file-only":
5235
+ throw new Error("Edit this one in the config file; Desktop does not show or change it.");
5236
+ }
5237
+ }
5238
+ __name(coerce, "coerce");
5239
+ function checkWhole(doc, path, value, file) {
5240
+ const [root, ...rest] = path;
5241
+ let block;
5242
+ if (rest.length === 0) block = value;
5243
+ else {
5244
+ const current = doc[root];
5245
+ const base = current && typeof current === "object" && !Array.isArray(current) ? structuredClone(current) : {};
5246
+ let at = base;
5247
+ for (const segment of rest.slice(0, -1)) {
5248
+ const next = at[segment];
5249
+ if (!next || typeof next !== "object" || Array.isArray(next)) at[segment] = {};
5250
+ at = at[segment];
5251
+ }
5252
+ const last = rest[rest.length - 1];
5253
+ if (value === void 0) delete at[last];
5254
+ else at[last] = value;
5255
+ block = base;
5256
+ }
5257
+ if (block === void 0) return;
5258
+ try {
5259
+ readConfigKey(root, block, file);
5260
+ } catch (error) {
5261
+ if (error instanceof ConfigValueError) throw new Error(error.message);
5262
+ throw error;
5263
+ }
5264
+ }
5265
+ __name(checkWhole, "checkWhole");
5266
+ function checkSetting(change, opts = {}) {
5267
+ prepare(change, opts);
5268
+ }
5269
+ __name(checkSetting, "checkSetting");
5270
+ function prepare(change, opts) {
5271
+ const entry = descriptorFor(change.path);
5272
+ const path = entry.path.split(".");
5273
+ const file = userConfigPath(opts);
5274
+ if (change.value === void 0 || change.value === null) {
5275
+ if (entry.control.kind === "file-only") throw new Error("Edit this one in the config file.");
5276
+ checkWhole(readUserDocument(opts), path, void 0, file);
5277
+ return { path, value: void 0 };
5278
+ }
5279
+ const value = coerce(entry, change.value);
5280
+ checkWhole(readUserDocument(opts), path, value, file);
5281
+ return { path, value };
5282
+ }
5283
+ __name(prepare, "prepare");
5284
+ function writeSetting(change, opts = {}) {
5285
+ const { path, value } = prepare(change, opts);
5286
+ if (value === void 0) deleteUserConfigValue(path, opts);
5287
+ else setUserConfigValue(path, value, opts);
5288
+ }
5289
+ __name(writeSetting, "writeSetting");
5290
+
4241
5291
  // src/pals/desktop-communication.ts
4242
5292
  import { randomUUID as randomUUID5 } from "node:crypto";
4243
5293
  import { lstatSync, realpathSync as realpathSync2 } from "node:fs";
@@ -6189,6 +7239,23 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
6189
7239
  throw new Error("Saving a key accepts only the provider and the key.");
6190
7240
  return runtime.saveProviderKey(text3(params, "provider"), text3(params, "apiKey", 4096));
6191
7241
  }, "namzu/providers/save_key"),
7242
+ "namzu/config/get": /* @__PURE__ */ __name(() => {
7243
+ if (pal()) throw new Error("Pals do not read the host settings.");
7244
+ return readSettings();
7245
+ }, "namzu/config/get"),
7246
+ "namzu/config/set": /* @__PURE__ */ __name((params) => {
7247
+ if (pal()) throw new Error("Pals do not change the host settings.");
7248
+ if (Object.keys(params).some((key) => !["path", "value", "dryRun"].includes(key)))
7249
+ throw new Error("A setting change names only the setting and its value.");
7250
+ if (params.dryRun !== void 0 && typeof params.dryRun !== "boolean")
7251
+ throw new Error("dryRun is true or false.");
7252
+ if (params.dryRun === true) {
7253
+ checkSetting({ path: text3(params, "path"), value: params.value });
7254
+ return readSettings();
7255
+ }
7256
+ writeSetting({ path: text3(params, "path"), value: params.value });
7257
+ return readSettings();
7258
+ }, "namzu/config/set"),
6192
7259
  "namzu/providers/refresh": /* @__PURE__ */ __name(() => runtime.refreshProviders(), "namzu/providers/refresh"),
6193
7260
  "namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(text3(params, "provider")), "namzu/providers/remove_key"),
6194
7261
  "namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(text3(params, "provider")), "namzu/providers/test"),
@@ -6316,7 +7383,7 @@ __name(withPreviews, "withPreviews");
6316
7383
  function readPackageVersion() {
6317
7384
  try {
6318
7385
  const here = dirname3(fileURLToPath(new URL("../", import.meta.url).href + "commands/acp.js"));
6319
- const pkg = JSON.parse(readFileSync(join6(here, "..", "..", "package.json"), "utf8"));
7386
+ const pkg = JSON.parse(readFileSync2(join6(here, "..", "..", "package.json"), "utf8"));
6320
7387
  return typeof pkg.version === "string" ? pkg.version : "0.0.0";
6321
7388
  } catch {
6322
7389
  return "0.0.0";
@@ -6357,9 +7424,9 @@ function waitForOperation(operation, signal) {
6357
7424
  });
6358
7425
  }
6359
7426
  __name(waitForOperation, "waitForOperation");
6360
- async function resolveAcpSession(wireSessionId, lookup) {
7427
+ async function resolveAcpSession(wireSessionId, lookup2) {
6361
7428
  if (isEntityId(wireSessionId, "session")) return { sessionId: wireSessionId };
6362
- const found = await lookup("acp", "session", wireSessionId);
7429
+ const found = await lookup2("acp", "session", wireSessionId);
6363
7430
  if (found) return { sessionId: found.sessionId };
6364
7431
  return {
6365
7432
  sessionId: generateSessionId(),
@@ -6874,6 +7941,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
6874
7941
  ...computer ? { assertExecutionAllowed: /* @__PURE__ */ __name(() => assertRetryComputer(record2, original), "assertExecutionAllowed") } : {},
6875
7942
  signal,
6876
7943
  onPermission,
7944
+ // The one question a Desktop conversation can raise itself: the screen is
7945
+ // needed for a moment. It reaches the person as a card, never as a standing yes.
7946
+ ...runtimeOptions.computerUse === true ? { onQuestion: questionsOverPermission(sessionId, ask, signal) } : {},
6877
7947
  ...monitorSnapshot.text ? { hostContext: /* @__PURE__ */ __name(() => [monitorSnapshot.text], "hostContext") } : {},
6878
7948
  ...inputInbox ? {
6879
7949
  inboundMessages: /* @__PURE__ */ __name(() => {
@@ -7660,4 +8730,4 @@ export {
7660
8730
  resolveAcpSession,
7661
8731
  runAcpCommand
7662
8732
  };
7663
- //# sourceMappingURL=acp-YPJ27JQK.js.map
8733
+ //# sourceMappingURL=acp-MBBNHTFF.js.map