@namzu/cli 36.2.0 → 36.3.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 (297) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-P22WRX3A.js → acp-CJ2TTGJD.js} +58 -34
  4. package/dist/chunks/acp-CJ2TTGJD.js.map +6 -0
  5. package/dist/chunks/{activity-command-OK463NV4.js → activity-command-MCYEK4Z4.js} +10 -10
  6. package/dist/chunks/{add-ML53TFN2.js → add-ZQ3YWP4F.js} +16 -16
  7. package/dist/chunks/{agent-3ST7Q6HZ.js → agent-UO62HZPI.js} +22 -22
  8. package/dist/chunks/agent-session-DU55LD4P.js +46 -0
  9. package/dist/chunks/{archive-WV2NBOHR.js → archive-VPREZOGC.js} +8 -8
  10. package/dist/chunks/{bin-main-FPJQMK33.js → bin-main-J5ULRXXN.js} +3 -3
  11. package/dist/chunks/{browser-JRWZ3PYX.js → browser-FZWYOIIJ.js} +6 -6
  12. package/dist/chunks/{chat-3IJFKDSN.js → chat-BGWKKQTT.js} +13 -13
  13. package/dist/chunks/{chunk-S7E42272.js → chunk-2BZOT2CT.js} +2 -2
  14. package/dist/chunks/{chunk-LIZPXS73.js → chunk-3F5DGROG.js} +2 -2
  15. package/dist/chunks/{chunk-KNNQHRZ4.js → chunk-46B7KRXY.js} +6 -6
  16. package/dist/chunks/{chunk-PT7TZNBV.js → chunk-52OVP5BG.js} +4 -4
  17. package/dist/chunks/{chunk-X2YRM3UE.js → chunk-56OUKG5W.js} +3 -3
  18. package/dist/chunks/{chunk-HJ42RG5U.js → chunk-5URT3ZM2.js} +4 -4
  19. package/dist/chunks/{chunk-GWOW3U2S.js → chunk-6TDJXZ5W.js} +4 -4
  20. package/dist/chunks/chunk-74KMYYM2.js +755 -0
  21. package/dist/chunks/chunk-74KMYYM2.js.map +6 -0
  22. package/dist/chunks/{chunk-43FBWINL.js → chunk-AEPAIDAA.js} +5 -5
  23. package/dist/chunks/{chunk-7WQV2FSF.js → chunk-AHYHR5DY.js} +3 -3
  24. package/dist/chunks/{chunk-XAKL7C7B.js → chunk-AP5KD43Y.js} +2 -2
  25. package/dist/chunks/{chunk-NRML7BIR.js → chunk-AS7UWXMN.js} +4 -4
  26. package/dist/chunks/{chunk-QQLB573I.js → chunk-BOV53LZO.js} +2 -2
  27. package/dist/chunks/{chunk-GPBUDMUF.js → chunk-BUCICQWG.js} +2 -2
  28. package/dist/chunks/{chunk-OS7IVIYH.js → chunk-CXSUA2PF.js} +242 -3
  29. package/dist/chunks/{chunk-OS7IVIYH.js.map → chunk-CXSUA2PF.js.map} +3 -3
  30. package/dist/chunks/{chunk-5PQVJBIO.js → chunk-CZVHXYGD.js} +6 -3
  31. package/dist/chunks/{chunk-5PQVJBIO.js.map → chunk-CZVHXYGD.js.map} +1 -1
  32. package/dist/chunks/{chunk-CFN7CUD3.js → chunk-DYUOXP5Q.js} +13 -13
  33. package/dist/chunks/{chunk-G5XTLTDR.js → chunk-E7HLYLD7.js} +3 -3
  34. package/dist/chunks/{chunk-ABD2DOO2.js → chunk-EKUJUPFA.js} +4 -4
  35. package/dist/chunks/{chunk-AABPCENY.js → chunk-F3YQ2CSZ.js} +4 -4
  36. package/dist/chunks/{chunk-2VXA7GZU.js → chunk-FU4GQ7K2.js} +2 -2
  37. package/dist/chunks/{chunk-VHKKPDL2.js → chunk-GQN64E36.js} +3 -3
  38. package/dist/chunks/{chunk-AL6ESCHD.js → chunk-GSHSAMZJ.js} +12 -12
  39. package/dist/chunks/{chunk-H7VJHF5S.js → chunk-H6MWKPHM.js} +1030 -264
  40. package/dist/chunks/chunk-H6MWKPHM.js.map +6 -0
  41. package/dist/chunks/{chunk-3OZ2OBGU.js → chunk-HKDPP2JF.js} +2 -2
  42. package/dist/chunks/{chunk-YZ675PG4.js → chunk-HSEJGSXE.js} +2 -2
  43. package/dist/chunks/{chunk-ZXWJ6G3J.js → chunk-I6CDUPVR.js} +2 -2
  44. package/dist/chunks/{chunk-27VZRJTG.js → chunk-IQBR45AU.js} +2 -2
  45. package/dist/chunks/{chunk-HIZ7F6BT.js → chunk-JCDTR2ZU.js} +4 -4
  46. package/dist/chunks/{chunk-53EZXXT4.js → chunk-KHF4IAIH.js} +27 -9
  47. package/dist/chunks/chunk-KHF4IAIH.js.map +6 -0
  48. package/dist/chunks/{chunk-ZNAH4EGP.js → chunk-KMHLON54.js} +2 -2
  49. package/dist/chunks/{chunk-CXLSM5SH.js → chunk-KOG2WB66.js} +4 -4
  50. package/dist/chunks/{chunk-AGHVC2IJ.js → chunk-LBH5WVXU.js} +2 -2
  51. package/dist/chunks/{chunk-NKEOCU52.js → chunk-LNQ6SCBF.js} +7 -7
  52. package/dist/chunks/{chunk-22P25PLK.js → chunk-LYDXPWAZ.js} +22 -4
  53. package/dist/chunks/{chunk-22P25PLK.js.map → chunk-LYDXPWAZ.js.map} +1 -1
  54. package/dist/chunks/{chunk-YEFJAE2B.js → chunk-M32YRERZ.js} +27 -26
  55. package/dist/chunks/{chunk-YEFJAE2B.js.map → chunk-M32YRERZ.js.map} +1 -1
  56. package/dist/chunks/{chunk-U5AWHJ7O.js → chunk-MBBFX64S.js} +2 -2
  57. package/dist/chunks/{chunk-PJ3UYK2K.js → chunk-MJO6CH5F.js} +3 -3
  58. package/dist/chunks/{chunk-AVIW5JJF.js → chunk-NATYSTPM.js} +2 -2
  59. package/dist/chunks/{chunk-KQOIPRZ5.js → chunk-QRT3N2K3.js} +2 -2
  60. package/dist/chunks/{chunk-DYBUCWAB.js → chunk-QXDKRJZ5.js} +3 -3
  61. package/dist/chunks/{chunk-EOO5AKO4.js → chunk-RBX6RVYO.js} +6 -6
  62. package/dist/chunks/{chunk-VSUHR44P.js → chunk-RM6HTBJK.js} +2 -2
  63. package/dist/chunks/{chunk-YLIKDPD6.js → chunk-S6DK2YOB.js} +9 -9
  64. package/dist/chunks/{chunk-WW4VKEBD.js → chunk-S6MZK4LD.js} +2 -2
  65. package/dist/chunks/{chunk-ZZ6Z2DO6.js → chunk-UFTNEQFN.js} +10 -10
  66. package/dist/chunks/{chunk-7OEK2NAO.js → chunk-UXGI3FE5.js} +8 -8
  67. package/dist/chunks/{chunk-ZKTLXAQK.js → chunk-V3ZLK3XQ.js} +3243 -1041
  68. package/dist/chunks/chunk-V3ZLK3XQ.js.map +6 -0
  69. package/dist/chunks/{chunk-WNMRETWS.js → chunk-VUOS5SQ3.js} +2 -2
  70. package/dist/chunks/{chunk-YTJO7G24.js → chunk-XCWZZZOW.js} +3 -3
  71. package/dist/chunks/{chunk-RPAHIOW6.js → chunk-YYQFUKI7.js} +3 -3
  72. package/dist/chunks/{chunk-5GARJ3CK.js → chunk-YYVDLVUM.js} +2 -2
  73. package/dist/chunks/{chunk-HQZSTYKY.js → chunk-ZB5ETOVE.js} +3 -3
  74. package/dist/chunks/{chunk-GFSD2D3M.js → chunk-ZG6NVROB.js} +2 -2
  75. package/dist/chunks/{chunk-MBGQS5YA.js → chunk-ZHBHRMCI.js} +4 -4
  76. package/dist/chunks/{cli-runtime-CQKITOHY.js → cli-runtime-NG23IVRM.js} +8 -8
  77. package/dist/chunks/{commands-UEPVSG33.js → commands-LQISMOPF.js} +5 -5
  78. package/dist/chunks/{crash-report-3GQ3SJML.js → crash-report-EYK56MJJ.js} +6 -6
  79. package/dist/chunks/{dist-YDFJ4YOH.js → dist-3AMBKAG4.js} +2 -2
  80. package/dist/chunks/{dist-SCEJQJFY.js → dist-AUDNCB3F.js} +2 -2
  81. package/dist/chunks/{dist-FFMNE5LK.js → dist-AZJ56DQJ.js} +2 -2
  82. package/dist/chunks/{dist-IPJVDPA3.js → dist-DWB5AYXB.js} +2 -2
  83. package/dist/chunks/{dist-VJ2UQYSX.js → dist-EDKLCZY4.js} +2 -2
  84. package/dist/chunks/{dist-Q37IZHCW.js → dist-PZXF5NU3.js} +2 -2
  85. package/dist/chunks/{dist-AMYVT2VT.js → dist-XT4V74YL.js} +2 -2
  86. package/dist/chunks/{doctor-YWK25HGQ.js → doctor-3EOUWDYB.js} +6 -6
  87. package/dist/chunks/{drain-5R73B66Y.js → drain-VKGTCFXC.js} +10 -10
  88. package/dist/chunks/{eval-GYPUHRIK.js → eval-VHWEJ4GG.js} +2 -2
  89. package/dist/chunks/{exec-AHAC6YBQ.js → exec-TBNI5CDH.js} +149 -41
  90. package/dist/chunks/exec-TBNI5CDH.js.map +6 -0
  91. package/dist/chunks/{home-GI6TRZAN.js → home-H4GTIYO5.js} +3 -3
  92. package/dist/chunks/{host-queries-MN57UTDU.js → host-queries-AIZVYFDQ.js} +13 -13
  93. package/dist/chunks/{lifecycle-7LD634AQ.js → lifecycle-UF7VDCOQ.js} +23 -23
  94. package/dist/chunks/{list-DSHTQRTP.js → list-JJZ7I5OF.js} +12 -12
  95. package/dist/chunks/{login-R5P2OAXZ.js → login-T2RKNHK2.js} +8 -8
  96. package/dist/chunks/{logs-SGPSXLBY.js → logs-J6D4SEDY.js} +4 -4
  97. package/dist/chunks/{mcp-MC6B34XH.js → mcp-WONRVJ26.js} +15 -15
  98. package/dist/chunks/{message-command-4MV2SVHP.js → message-command-BGQB2TFW.js} +29 -29
  99. package/dist/chunks/{operator-tools-GI63VOXH.js → operator-tools-H4MYC5PE.js} +11 -11
  100. package/dist/chunks/{output-schema-74VSN66J.js → output-schema-RFJUTQ2N.js} +3 -3
  101. package/dist/chunks/{pal-BWPYGQ4B.js → pal-AV7AD5MG.js} +11 -11
  102. package/dist/chunks/{providers-YV45XVWS.js → providers-BHF65IUG.js} +6 -6
  103. package/dist/chunks/{resident-OC2D5V5I.js → resident-YF3MIILM.js} +18 -18
  104. package/dist/chunks/{resume-command-DZBKOABY.js → resume-command-Y3NYDSI4.js} +4 -4
  105. package/dist/chunks/{schedule-GUD625PJ.js → schedule-6T2MNPKK.js} +8 -8
  106. package/dist/chunks/{service-67FZ3N75.js → service-2VASPD2V.js} +22 -22
  107. package/dist/chunks/session-step-LJ24HVLF.js +26 -0
  108. package/dist/chunks/{skills-DNNEKEOH.js → skills-K3JRZ3IR.js} +8 -8
  109. package/dist/chunks/{state-K7MMFNZC.js → state-QPSQI7U7.js} +2 -2
  110. package/dist/chunks/{store-2PDDGKYZ.js → store-7WZWQXKX.js} +6 -6
  111. package/dist/chunks/{store-NIBJFQOT.js → store-PSQKDEPY.js} +8 -8
  112. package/dist/chunks/{store-KYMOKW6X.js → store-Z3PS6LUZ.js} +4 -4
  113. package/dist/chunks/{tui-UY3ZLTMX.js → tui-GNG3YLGE.js} +2536 -1325
  114. package/dist/chunks/tui-GNG3YLGE.js.map +6 -0
  115. package/dist/chunks/{upgrade-2NO7NPPM.js → upgrade-C6QUXRLB.js} +3 -3
  116. package/dist/chunks/{worktree-ADQJ4AJ5.js → worktree-KLD2PAMU.js} +10 -10
  117. package/dist/cli.d.ts.map +1 -1
  118. package/dist/commands/acp-harness.d.ts.map +1 -1
  119. package/dist/commands/desktop-host-pr.d.ts +14 -0
  120. package/dist/commands/desktop-host-pr.d.ts.map +1 -0
  121. package/dist/commands/desktop-host.d.ts +3 -0
  122. package/dist/commands/desktop-host.d.ts.map +1 -1
  123. package/dist/commands/exec-json.d.ts.map +1 -1
  124. package/dist/commands/exec-workflows.d.ts +50 -0
  125. package/dist/commands/exec-workflows.d.ts.map +1 -0
  126. package/dist/commands/exec.d.ts.map +1 -1
  127. package/dist/config/load.d.ts.map +1 -1
  128. package/dist/config/schema.d.ts +13 -0
  129. package/dist/config/schema.d.ts.map +1 -1
  130. package/dist/index.js +9 -9
  131. package/dist/integrations/resident/runner-worker.js +16 -16
  132. package/dist/integrations/subagents/activity.d.ts +19 -0
  133. package/dist/integrations/subagents/activity.d.ts.map +1 -1
  134. package/dist/integrations/subagents/runtime.d.ts +52 -0
  135. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  136. package/dist/integrations/workflows/doctrine.d.ts +7 -0
  137. package/dist/integrations/workflows/doctrine.d.ts.map +1 -0
  138. package/dist/integrations/workflows/history.d.ts +13 -0
  139. package/dist/integrations/workflows/history.d.ts.map +1 -0
  140. package/dist/integrations/workflows/host.d.ts +59 -0
  141. package/dist/integrations/workflows/host.d.ts.map +1 -0
  142. package/dist/integrations/workflows/notice.d.ts +21 -0
  143. package/dist/integrations/workflows/notice.d.ts.map +1 -0
  144. package/dist/integrations/workflows/offering.d.ts +40 -0
  145. package/dist/integrations/workflows/offering.d.ts.map +1 -0
  146. package/dist/integrations/workflows/registry.d.ts +85 -0
  147. package/dist/integrations/workflows/registry.d.ts.map +1 -0
  148. package/dist/integrations/workflows/view.d.ts +97 -0
  149. package/dist/integrations/workflows/view.d.ts.map +1 -0
  150. package/dist/tui/AgentExplorer.d.ts +179 -32
  151. package/dist/tui/AgentExplorer.d.ts.map +1 -1
  152. package/dist/tui/App.d.ts.map +1 -1
  153. package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
  154. package/dist/tui/BrandHeader.d.ts +3 -1
  155. package/dist/tui/BrandHeader.d.ts.map +1 -1
  156. package/dist/tui/Composer.d.ts +23 -1
  157. package/dist/tui/Composer.d.ts.map +1 -1
  158. package/dist/tui/ComposerFrame.d.ts +10 -3
  159. package/dist/tui/ComposerFrame.d.ts.map +1 -1
  160. package/dist/tui/LiveActivity.d.ts +4 -0
  161. package/dist/tui/LiveActivity.d.ts.map +1 -1
  162. package/dist/tui/PendingInputPanel.d.ts +14 -11
  163. package/dist/tui/PendingInputPanel.d.ts.map +1 -1
  164. package/dist/tui/PermissionOverlay.d.ts.map +1 -1
  165. package/dist/tui/StatusBar.d.ts +61 -36
  166. package/dist/tui/StatusBar.d.ts.map +1 -1
  167. package/dist/tui/Transcript.d.ts +14 -0
  168. package/dist/tui/Transcript.d.ts.map +1 -1
  169. package/dist/tui/agent-transcript-rows.d.ts +34 -12
  170. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  171. package/dist/tui/agent.d.ts +49 -1
  172. package/dist/tui/agent.d.ts.map +1 -1
  173. package/dist/tui/job-exit-row.d.ts +19 -0
  174. package/dist/tui/job-exit-row.d.ts.map +1 -0
  175. package/dist/tui/permission-review.d.ts +26 -0
  176. package/dist/tui/permission-review.d.ts.map +1 -1
  177. package/dist/tui/pr-status.d.ts +112 -0
  178. package/dist/tui/pr-status.d.ts.map +1 -0
  179. package/dist/tui/shell-cell.d.ts +86 -0
  180. package/dist/tui/shell-cell.d.ts.map +1 -0
  181. package/dist/tui/shorten-path.d.ts +10 -0
  182. package/dist/tui/shorten-path.d.ts.map +1 -0
  183. package/dist/tui/slashCommands.d.ts +4 -0
  184. package/dist/tui/slashCommands.d.ts.map +1 -1
  185. package/dist/tui/theme.d.ts +6 -0
  186. package/dist/tui/theme.d.ts.map +1 -1
  187. package/dist/tui/tidy-tool-output.d.ts +5 -0
  188. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  189. package/dist/tui/types.d.ts +10 -1
  190. package/dist/tui/types.d.ts.map +1 -1
  191. package/dist/tui/use-pr-status.d.ts +15 -0
  192. package/dist/tui/use-pr-status.d.ts.map +1 -0
  193. package/dist/tui/workflow-runs.d.ts +42 -0
  194. package/dist/tui/workflow-runs.d.ts.map +1 -0
  195. package/package.json +7 -7
  196. package/dist/chunks/acp-P22WRX3A.js.map +0 -6
  197. package/dist/chunks/agent-session-C2HDOXK4.js +0 -46
  198. package/dist/chunks/chunk-53EZXXT4.js.map +0 -6
  199. package/dist/chunks/chunk-H7VJHF5S.js.map +0 -6
  200. package/dist/chunks/chunk-L6FMG3R6.js +0 -380
  201. package/dist/chunks/chunk-L6FMG3R6.js.map +0 -6
  202. package/dist/chunks/chunk-ZKTLXAQK.js.map +0 -6
  203. package/dist/chunks/exec-AHAC6YBQ.js.map +0 -6
  204. package/dist/chunks/session-step-YNMU75FQ.js +0 -26
  205. package/dist/chunks/tui-UY3ZLTMX.js.map +0 -6
  206. /package/dist/chunks/{activity-command-OK463NV4.js.map → activity-command-MCYEK4Z4.js.map} +0 -0
  207. /package/dist/chunks/{add-ML53TFN2.js.map → add-ZQ3YWP4F.js.map} +0 -0
  208. /package/dist/chunks/{agent-3ST7Q6HZ.js.map → agent-UO62HZPI.js.map} +0 -0
  209. /package/dist/chunks/{agent-session-C2HDOXK4.js.map → agent-session-DU55LD4P.js.map} +0 -0
  210. /package/dist/chunks/{archive-WV2NBOHR.js.map → archive-VPREZOGC.js.map} +0 -0
  211. /package/dist/chunks/{bin-main-FPJQMK33.js.map → bin-main-J5ULRXXN.js.map} +0 -0
  212. /package/dist/chunks/{browser-JRWZ3PYX.js.map → browser-FZWYOIIJ.js.map} +0 -0
  213. /package/dist/chunks/{chat-3IJFKDSN.js.map → chat-BGWKKQTT.js.map} +0 -0
  214. /package/dist/chunks/{chunk-S7E42272.js.map → chunk-2BZOT2CT.js.map} +0 -0
  215. /package/dist/chunks/{chunk-LIZPXS73.js.map → chunk-3F5DGROG.js.map} +0 -0
  216. /package/dist/chunks/{chunk-KNNQHRZ4.js.map → chunk-46B7KRXY.js.map} +0 -0
  217. /package/dist/chunks/{chunk-PT7TZNBV.js.map → chunk-52OVP5BG.js.map} +0 -0
  218. /package/dist/chunks/{chunk-X2YRM3UE.js.map → chunk-56OUKG5W.js.map} +0 -0
  219. /package/dist/chunks/{chunk-HJ42RG5U.js.map → chunk-5URT3ZM2.js.map} +0 -0
  220. /package/dist/chunks/{chunk-GWOW3U2S.js.map → chunk-6TDJXZ5W.js.map} +0 -0
  221. /package/dist/chunks/{chunk-43FBWINL.js.map → chunk-AEPAIDAA.js.map} +0 -0
  222. /package/dist/chunks/{chunk-7WQV2FSF.js.map → chunk-AHYHR5DY.js.map} +0 -0
  223. /package/dist/chunks/{chunk-XAKL7C7B.js.map → chunk-AP5KD43Y.js.map} +0 -0
  224. /package/dist/chunks/{chunk-NRML7BIR.js.map → chunk-AS7UWXMN.js.map} +0 -0
  225. /package/dist/chunks/{chunk-QQLB573I.js.map → chunk-BOV53LZO.js.map} +0 -0
  226. /package/dist/chunks/{chunk-GPBUDMUF.js.map → chunk-BUCICQWG.js.map} +0 -0
  227. /package/dist/chunks/{chunk-CFN7CUD3.js.map → chunk-DYUOXP5Q.js.map} +0 -0
  228. /package/dist/chunks/{chunk-G5XTLTDR.js.map → chunk-E7HLYLD7.js.map} +0 -0
  229. /package/dist/chunks/{chunk-ABD2DOO2.js.map → chunk-EKUJUPFA.js.map} +0 -0
  230. /package/dist/chunks/{chunk-AABPCENY.js.map → chunk-F3YQ2CSZ.js.map} +0 -0
  231. /package/dist/chunks/{chunk-2VXA7GZU.js.map → chunk-FU4GQ7K2.js.map} +0 -0
  232. /package/dist/chunks/{chunk-VHKKPDL2.js.map → chunk-GQN64E36.js.map} +0 -0
  233. /package/dist/chunks/{chunk-AL6ESCHD.js.map → chunk-GSHSAMZJ.js.map} +0 -0
  234. /package/dist/chunks/{chunk-3OZ2OBGU.js.map → chunk-HKDPP2JF.js.map} +0 -0
  235. /package/dist/chunks/{chunk-YZ675PG4.js.map → chunk-HSEJGSXE.js.map} +0 -0
  236. /package/dist/chunks/{chunk-ZXWJ6G3J.js.map → chunk-I6CDUPVR.js.map} +0 -0
  237. /package/dist/chunks/{chunk-27VZRJTG.js.map → chunk-IQBR45AU.js.map} +0 -0
  238. /package/dist/chunks/{chunk-HIZ7F6BT.js.map → chunk-JCDTR2ZU.js.map} +0 -0
  239. /package/dist/chunks/{chunk-ZNAH4EGP.js.map → chunk-KMHLON54.js.map} +0 -0
  240. /package/dist/chunks/{chunk-CXLSM5SH.js.map → chunk-KOG2WB66.js.map} +0 -0
  241. /package/dist/chunks/{chunk-AGHVC2IJ.js.map → chunk-LBH5WVXU.js.map} +0 -0
  242. /package/dist/chunks/{chunk-NKEOCU52.js.map → chunk-LNQ6SCBF.js.map} +0 -0
  243. /package/dist/chunks/{chunk-U5AWHJ7O.js.map → chunk-MBBFX64S.js.map} +0 -0
  244. /package/dist/chunks/{chunk-PJ3UYK2K.js.map → chunk-MJO6CH5F.js.map} +0 -0
  245. /package/dist/chunks/{chunk-AVIW5JJF.js.map → chunk-NATYSTPM.js.map} +0 -0
  246. /package/dist/chunks/{chunk-KQOIPRZ5.js.map → chunk-QRT3N2K3.js.map} +0 -0
  247. /package/dist/chunks/{chunk-DYBUCWAB.js.map → chunk-QXDKRJZ5.js.map} +0 -0
  248. /package/dist/chunks/{chunk-EOO5AKO4.js.map → chunk-RBX6RVYO.js.map} +0 -0
  249. /package/dist/chunks/{chunk-VSUHR44P.js.map → chunk-RM6HTBJK.js.map} +0 -0
  250. /package/dist/chunks/{chunk-YLIKDPD6.js.map → chunk-S6DK2YOB.js.map} +0 -0
  251. /package/dist/chunks/{chunk-WW4VKEBD.js.map → chunk-S6MZK4LD.js.map} +0 -0
  252. /package/dist/chunks/{chunk-ZZ6Z2DO6.js.map → chunk-UFTNEQFN.js.map} +0 -0
  253. /package/dist/chunks/{chunk-7OEK2NAO.js.map → chunk-UXGI3FE5.js.map} +0 -0
  254. /package/dist/chunks/{chunk-WNMRETWS.js.map → chunk-VUOS5SQ3.js.map} +0 -0
  255. /package/dist/chunks/{chunk-YTJO7G24.js.map → chunk-XCWZZZOW.js.map} +0 -0
  256. /package/dist/chunks/{chunk-RPAHIOW6.js.map → chunk-YYQFUKI7.js.map} +0 -0
  257. /package/dist/chunks/{chunk-5GARJ3CK.js.map → chunk-YYVDLVUM.js.map} +0 -0
  258. /package/dist/chunks/{chunk-HQZSTYKY.js.map → chunk-ZB5ETOVE.js.map} +0 -0
  259. /package/dist/chunks/{chunk-GFSD2D3M.js.map → chunk-ZG6NVROB.js.map} +0 -0
  260. /package/dist/chunks/{chunk-MBGQS5YA.js.map → chunk-ZHBHRMCI.js.map} +0 -0
  261. /package/dist/chunks/{cli-runtime-CQKITOHY.js.map → cli-runtime-NG23IVRM.js.map} +0 -0
  262. /package/dist/chunks/{commands-UEPVSG33.js.map → commands-LQISMOPF.js.map} +0 -0
  263. /package/dist/chunks/{crash-report-3GQ3SJML.js.map → crash-report-EYK56MJJ.js.map} +0 -0
  264. /package/dist/chunks/{dist-YDFJ4YOH.js.map → dist-3AMBKAG4.js.map} +0 -0
  265. /package/dist/chunks/{dist-SCEJQJFY.js.map → dist-AUDNCB3F.js.map} +0 -0
  266. /package/dist/chunks/{dist-FFMNE5LK.js.map → dist-AZJ56DQJ.js.map} +0 -0
  267. /package/dist/chunks/{dist-IPJVDPA3.js.map → dist-DWB5AYXB.js.map} +0 -0
  268. /package/dist/chunks/{dist-VJ2UQYSX.js.map → dist-EDKLCZY4.js.map} +0 -0
  269. /package/dist/chunks/{dist-Q37IZHCW.js.map → dist-PZXF5NU3.js.map} +0 -0
  270. /package/dist/chunks/{dist-AMYVT2VT.js.map → dist-XT4V74YL.js.map} +0 -0
  271. /package/dist/chunks/{doctor-YWK25HGQ.js.map → doctor-3EOUWDYB.js.map} +0 -0
  272. /package/dist/chunks/{drain-5R73B66Y.js.map → drain-VKGTCFXC.js.map} +0 -0
  273. /package/dist/chunks/{eval-GYPUHRIK.js.map → eval-VHWEJ4GG.js.map} +0 -0
  274. /package/dist/chunks/{home-GI6TRZAN.js.map → home-H4GTIYO5.js.map} +0 -0
  275. /package/dist/chunks/{host-queries-MN57UTDU.js.map → host-queries-AIZVYFDQ.js.map} +0 -0
  276. /package/dist/chunks/{lifecycle-7LD634AQ.js.map → lifecycle-UF7VDCOQ.js.map} +0 -0
  277. /package/dist/chunks/{list-DSHTQRTP.js.map → list-JJZ7I5OF.js.map} +0 -0
  278. /package/dist/chunks/{login-R5P2OAXZ.js.map → login-T2RKNHK2.js.map} +0 -0
  279. /package/dist/chunks/{logs-SGPSXLBY.js.map → logs-J6D4SEDY.js.map} +0 -0
  280. /package/dist/chunks/{mcp-MC6B34XH.js.map → mcp-WONRVJ26.js.map} +0 -0
  281. /package/dist/chunks/{message-command-4MV2SVHP.js.map → message-command-BGQB2TFW.js.map} +0 -0
  282. /package/dist/chunks/{operator-tools-GI63VOXH.js.map → operator-tools-H4MYC5PE.js.map} +0 -0
  283. /package/dist/chunks/{output-schema-74VSN66J.js.map → output-schema-RFJUTQ2N.js.map} +0 -0
  284. /package/dist/chunks/{pal-BWPYGQ4B.js.map → pal-AV7AD5MG.js.map} +0 -0
  285. /package/dist/chunks/{providers-YV45XVWS.js.map → providers-BHF65IUG.js.map} +0 -0
  286. /package/dist/chunks/{resident-OC2D5V5I.js.map → resident-YF3MIILM.js.map} +0 -0
  287. /package/dist/chunks/{resume-command-DZBKOABY.js.map → resume-command-Y3NYDSI4.js.map} +0 -0
  288. /package/dist/chunks/{schedule-GUD625PJ.js.map → schedule-6T2MNPKK.js.map} +0 -0
  289. /package/dist/chunks/{service-67FZ3N75.js.map → service-2VASPD2V.js.map} +0 -0
  290. /package/dist/chunks/{session-step-YNMU75FQ.js.map → session-step-LJ24HVLF.js.map} +0 -0
  291. /package/dist/chunks/{skills-DNNEKEOH.js.map → skills-K3JRZ3IR.js.map} +0 -0
  292. /package/dist/chunks/{state-K7MMFNZC.js.map → state-QPSQI7U7.js.map} +0 -0
  293. /package/dist/chunks/{store-2PDDGKYZ.js.map → store-7WZWQXKX.js.map} +0 -0
  294. /package/dist/chunks/{store-KYMOKW6X.js.map → store-PSQKDEPY.js.map} +0 -0
  295. /package/dist/chunks/{store-NIBJFQOT.js.map → store-Z3PS6LUZ.js.map} +0 -0
  296. /package/dist/chunks/{upgrade-2NO7NPPM.js.map → upgrade-C6QUXRLB.js.map} +0 -0
  297. /package/dist/chunks/{worktree-ADQJ4AJ5.js.map → worktree-KLD2PAMU.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @namzu/cli
2
2
 
3
+ ## 36.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6f80b14: The `workflow` tool now reports a script that fails before it starts any agent as a failed tool call with the located error (line, column, source line), instead of "started in the background" followed by a separate failure message and a dead `0/0` row on the rail; a script that finishes without an agent returns its result in the call. `wait_for_task` given a workflow run id now says in a sentence that a workflow run is not a task and that its end arrives as one message, instead of a UUID format error. Nothing for callers to change.
8
+
9
+ ## 36.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 437dd6d: Add the `workflow` tool. When you ask for one (hypermode on, the word "workflow" or "iş akışı" in your message, or `/workflow <what to do>`), the model can write a short script that starts many agents in phases and runs them in the background. Before anything starts you see its name, purpose, phases, agent limits and the script (`d` shows all of it) and approve once; in `auto` mode ("bypass permissions") it starts without asking, and a session with nobody to ask refuses with a plain reason. Its agents are ordinary children under the same permission mode, rules, sandbox and budget as the `Agent` tool, but they are not subagent rows: the run is one row on the rail (`◯ name ▰▱ 3/6 · 12s · ↓ tokens`) opening to its phases (declared ones listed before they start), then a phase's agents, then an agent's transcript; `x` stops the run on the phases and skips one agent on the agents. The conversation shows `● Workflow(<purpose>)` at launch and `✓ Workflow <name> completed · …` when the run ends, `/workflows` lists this conversation's runs (earlier ones from their journals under `<session>/runs/<runId>/workflow/`), and the model gets one message with the result when a run ends. Nothing changes for conversations that never ask for a workflow. The workflow tool is offered only by hosts that can review a background run (the terminal and `namzu exec`, not the desktop app yet). A finished workflow and a background command that ends on its own now start a turn at once when the session is idle, so the model reports without you typing (a command you stopped yourself does not). `namzu exec` waits for a workflow the model started, lets the model report, and then exits; its `Tokens:` line (and the `budget` in `exec --json`) is the whole command's, the reporting turn and the workflow's agents included. New config keys: `workflow.maxConcurrency` (1-16, default min(8, CPUs-2)) and `workflow.maxAgents` (1-1000, default 200).
14
+
15
+ ### Patch Changes
16
+
17
+ - 437dd6d: The agents rail under the message box is now a `main` row plus one row per agent that is running or finished in the last 30 seconds (type, description, time and spend), five at a time with `↓ N more`. Press ↓ in an empty composer to move into it: ↑/↓ select, Enter opens that agent's transcript (Esc comes back to the same row), `x` stops a running agent or clears a finished one, Esc returns to the composer. The old titled tree (workflow and phase lines, a latest-activity line per agent, the `↓ / ctrl+t` counter) is no longer drawn on the rail; `Ctrl+T` and `/agents` still open the full cockpit with all of it.
18
+ - 437dd6d: `/jobs` is now the `Background` panel: a row per background shell (status icon, command, `running` / `done` / `error` / `stopped`), `Shell details` with `Status:`, `Runtime:`, `Command:` and live `Output:`, and no job ids on screen. When a background command ends the transcript gets a row such as `● Background command "npm test" completed (exit code 0) · 12s`, or `failed with exit code 2` / `was stopped`.
19
+ - 437dd6d: Messages you type while Namzu is working now wait as grey `❯` rows above the input box instead of inside it; a Tab-queued one says `after this reply`. Press Up on an empty input to choose a queued message and Enter to edit it, or `ctrl+x ctrl+s` to send waiting messages now. Nothing changes in how messages reach the model.
20
+
21
+ They sit directly above the `Working` row.
22
+
23
+ - 692466e: The message box in Namzu Desktop now shows, beside the mode, how many background shells are running ("2 shells", which opens the list) and the pull request of the conversation's branch ("PR #607", coloured by review state, which opens it in the browser). The pull request comes from the GitHub command line tool the terminal already uses; with `gh` missing, signed out, or no pull request, nothing is shown. The CLI host gains a read-only `namzu/project/pr` request for it.
24
+ - 692466e: A message typed in Namzu Desktop while a reply is running now reaches that reply at its next model request, as the terminal does. Before, the desktop host reported live input as unavailable for the whole of every turn, so each such message silently waited for the reply to finish. Nothing to change on your side.
25
+ - 437dd6d: The composer footer is now one row of items in the reference's order: the mode in plain words (`⏵⏵ bypass permissions on`, `⏵⏵ accept edits on`, `‖ plan mode on`), `PR #592` for the current branch's pull request (coloured by review state and linked where the terminal supports it), a `N shells` pill for running background shells (the separate "shells running" line is gone), then `esc to interrupt` while a turn runs, `← N agents` and `↓ to manage`. From an empty composer `←` opens the agents and `↓` focuses the shell pill first (Enter opens the `/jobs` screen) and then the agents rail; with anything typed both keys keep moving the cursor, and the hints leave the row. The agents rail's own `↓ to manage` on its `main` row is gone, since the footer says it. A running shell takes the `(shift+tab to cycle)` reminder off the row. The model name now yields first when the row is narrow. The pull request comes from the `gh` command line tool, read in the background, only on a real terminal; `NAMZU_PR_STATUS=off` turns it off. The working directory no longer appears on the footer row. The composer's frame is now two plain horizontal rules with a dim `❯ ` prompt between them: the boxed frame with corners, side borders and a `MESSAGE` caption is gone, and `hypermode` is named at the upper rule's right end.
26
+ - 437dd6d: The startup header now shows the folder Namzu is working in on the row under the version, with the home folder written as `~` and a long path cut from the left to fit. The footer no longer carries it.
27
+ - 437dd6d: Shell commands in the terminal now read like Claude Code's: a green or red dot in front of `Bash(command)` instead of a tick and a duration, the command's line breaks kept in the header, and the output hung under `⎿` as its first three lines followed by `… +N lines (ctrl+o to expand)`. A failed command now shows its error output and `Exit code N` instead of repeating the command, an empty result reads `(No output)`, and a command moved to a background job reads `Running in the background` instead of the instructions meant for the model. While a command runs it shows `Running…` with the elapsed time.
28
+ - 28eaee1: On Windows the `bash` tool, background jobs started with `run_in_background`, and plugin shell hooks now run in Git for Windows' bash instead of cmd.exe whenever Git for Windows is installed, and `hostCommandShell()` and `BashTool.commandDialect()` answer `bash` there instead of `cmd`. Before, every command a model wrote was refused or needed a person to approve it each time, because the permission rules cannot read cmd.exe lines. Git Bash is looked up as `NAMZU_BASH_SHELL`, then `%ProgramFiles%\Git\bin\bash.exe`, then `%ProgramFiles(x86)%\Git\bin\bash.exe`, then `%LOCALAPPDATA%\Programs\Git\bin\bash.exe`, then the install holding the first `git` that `where.exe git` lists outside the working directory. Commands now need Unix syntax (`/dev/null`, forward slashes, `$VAR`); the model is told so, and `>nul` is rewritten to `/dev/null`. A host that depends on cmd.exe syntax in the `bash` tool, or on `hostCommandShell().dialect === 'cmd'` on a machine with Git for Windows, sets `NAMZU_BASH_SHELL=cmd` (a path to `cmd.exe`, such as `%ComSpec%`, works too) to keep the old behaviour. Without Git for Windows nothing changes except that `windowsShellNotice()` returns a sentence saying commands run in cmd.exe and each asks for approval; the CLI shows it once at session start. New exports: `findGitBash`, `isWindowsBash`, `windowsShellNotice`, `rewriteWindowsNullRedirect`, `WINDOWS_BASH_GUIDANCE`, `WINDOWS_CMD_FALLBACK_NOTICE`, and an optional `windows` flag on `CommandShell`. Stopping a command or job on Windows now also ends processes that Git Bash forked, which `taskkill /T` alone missed.
29
+ - 437dd6d: Agents that the model gave one `workflow` label now also appear as a single row on the rail under the message box: `◯ name`, a progress bar, `3/7 · elapsed · ↓ tokens`. Press ↓ to reach it; Enter opens that workflow's phases and agents (Esc comes back to the row), `x` stops its running agents or clears the row once it has finished, and the row leaves 30 seconds after the last agent ends. When a workflow's turn ends, one line in the conversation says how it ended. The rail's key line now reads `enter to view · x to stop`.
30
+ - 437dd6d: Workflows and subagents are now separate in the terminal. An agent started with a `workflow` label no longer shows up as an agent row on the rail: it appears only inside its workflow, which is one row after the agent rows, and the `main` row shows only when there is an agent row. Enter on the workflow opens its phases (numbered, turning ✔ or ✘, with done/total), then the agents of a phase, then an agent's transcript; ← or Esc goes back up and `x` stops the whole workflow or one agent. In the conversation a workflow's launch is one `Workflow <name>` line instead of a row per agent, and the turn summary no longer counts phases.
31
+ - Updated dependencies [437dd6d]
32
+ - Updated dependencies [437dd6d]
33
+ - Updated dependencies [28eaee1]
34
+ - Updated dependencies [437dd6d]
35
+ - @namzu/sdk@51.0.0
36
+ - @namzu/browser@2.0.1
37
+ - @namzu/computer-use@3.1.0
38
+ - @namzu/anthropic@6.3.0
39
+ - @namzu/ollama@2.2.5
40
+ - @namzu/openai@4.1.4
41
+ - @namzu/openrouter@3.0.3
42
+ - @namzu/sandbox@26.0.0
43
+
3
44
  ## 36.2.0
4
45
 
5
46
  ### Minor Changes
package/dist/bin.js CHANGED
@@ -81,6 +81,6 @@ __name(suppressSqliteExperimentalWarning, "suppressSqliteExperimentalWarning");
81
81
  suppressSqliteExperimentalWarning();
82
82
 
83
83
  // src/bin.ts
84
- var { main } = await import("./chunks/bin-main-FPJQMK33.js");
84
+ var { main } = await import("./chunks/bin-main-J5ULRXXN.js");
85
85
  main(fileURLToPath(new URL("./", import.meta.url).href + "bin.js"));
86
86
  //# sourceMappingURL=bin.js.map
@@ -2,15 +2,17 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  dispatchCliPalMessages
5
- } from "./chunk-YLIKDPD6.js";
5
+ } from "./chunk-S6DK2YOB.js";
6
6
  import {
7
7
  conversationMarkdown,
8
+ lookupPr,
9
+ runCommand,
8
10
  withKeyNote
9
- } from "./chunk-OS7IVIYH.js";
10
- import "./chunk-43FBWINL.js";
11
+ } from "./chunk-CXSUA2PF.js";
12
+ import "./chunk-AEPAIDAA.js";
11
13
  import {
12
14
  decideHeadlessTrust
13
- } from "./chunk-WNMRETWS.js";
15
+ } from "./chunk-VUOS5SQ3.js";
14
16
  import {
15
17
  cliPalComputerStatus,
16
18
  cliPalScreen,
@@ -23,21 +25,21 @@ import {
23
25
  startCliPalComputer,
24
26
  stopCliPalComputer,
25
27
  takeOverCliPalComputer
26
- } from "./chunk-RPAHIOW6.js";
28
+ } from "./chunk-YYQFUKI7.js";
27
29
  import {
28
30
  palSessionEnvironment
29
- } from "./chunk-7OEK2NAO.js";
31
+ } from "./chunk-UXGI3FE5.js";
30
32
  import {
31
33
  cliPalActivitySubscriptionPolicy,
32
34
  cliPalActivitySubscriptionStore,
33
35
  cliPalCommunicationPolicy,
34
36
  cliPalCommunicationStore
35
- } from "./chunk-KNNQHRZ4.js";
37
+ } from "./chunk-46B7KRXY.js";
36
38
  import {
37
39
  claimPalConversation,
38
40
  listPalConversations,
39
41
  palConversationBinding
40
- } from "./chunk-GWOW3U2S.js";
42
+ } from "./chunk-6TDJXZ5W.js";
41
43
  import {
42
44
  FileCheckpointStore,
43
45
  PluginSettingsStore,
@@ -48,16 +50,16 @@ import {
48
50
  sessionLogCheckpointView,
49
51
  validateComposerSendSettings,
50
52
  verifyCredential
51
- } from "./chunk-H7VJHF5S.js";
52
- import "./chunk-PT7TZNBV.js";
53
- import "./chunk-LIZPXS73.js";
53
+ } from "./chunk-H6MWKPHM.js";
54
+ import "./chunk-52OVP5BG.js";
55
+ import "./chunk-3F5DGROG.js";
54
56
  import "./chunk-WHODOMXA.js";
55
- import "./chunk-HIZ7F6BT.js";
56
- import "./chunk-YTJO7G24.js";
57
- import "./chunk-L6FMG3R6.js";
58
- import "./chunk-XAKL7C7B.js";
59
- import "./chunk-HJ42RG5U.js";
60
- import "./chunk-PJ3UYK2K.js";
57
+ import "./chunk-JCDTR2ZU.js";
58
+ import "./chunk-XCWZZZOW.js";
59
+ import "./chunk-74KMYYM2.js";
60
+ import "./chunk-AP5KD43Y.js";
61
+ import "./chunk-5URT3ZM2.js";
62
+ import "./chunk-MJO6CH5F.js";
61
63
  import "./chunk-ZWA2JRJV.js";
62
64
  import "./chunk-NUGPLXVK.js";
63
65
  import {
@@ -67,7 +69,7 @@ import {
67
69
  resolveTrustedProjectContext
68
70
  } from "./chunk-CHIEVVQ2.js";
69
71
  import "./chunk-GNBMKISG.js";
70
- import "./chunk-U5AWHJ7O.js";
72
+ import "./chunk-MBBFX64S.js";
71
73
  import "./chunk-US5ZFPAU.js";
72
74
  import {
73
75
  automaticKind,
@@ -75,7 +77,7 @@ import {
75
77
  discoverProviders,
76
78
  hasApiCredential,
77
79
  isAnonymousZen
78
- } from "./chunk-CFN7CUD3.js";
80
+ } from "./chunk-DYUOXP5Q.js";
79
81
  import {
80
82
  ALL_PROVIDER_IDS,
81
83
  PROVIDER_REGISTRY
@@ -83,13 +85,13 @@ import {
83
85
  import {
84
86
  compilePermissions,
85
87
  warnLegacyMcpPermissionNames
86
- } from "./chunk-DYBUCWAB.js";
87
- import "./chunk-YZ675PG4.js";
88
+ } from "./chunk-QXDKRJZ5.js";
89
+ import "./chunk-HSEJGSXE.js";
88
90
  import {
89
91
  cliLogger
90
- } from "./chunk-2VXA7GZU.js";
92
+ } from "./chunk-FU4GQ7K2.js";
91
93
  import "./chunk-EEDZOGV4.js";
92
- import "./chunk-AGHVC2IJ.js";
94
+ import "./chunk-LBH5WVXU.js";
93
95
  import "./chunk-OH6TB27S.js";
94
96
  import {
95
97
  isOfferableModel
@@ -112,11 +114,11 @@ import {
112
114
  refreshIndex,
113
115
  setTitle,
114
116
  unarchiveConversation
115
- } from "./chunk-ABD2DOO2.js";
117
+ } from "./chunk-EKUJUPFA.js";
116
118
  import {
117
119
  cliProjectRoot
118
120
  } from "./chunk-H6B6AROX.js";
119
- import "./chunk-WW4VKEBD.js";
121
+ import "./chunk-S6MZK4LD.js";
120
122
  import {
121
123
  cliPalStore,
122
124
  createPal,
@@ -126,13 +128,13 @@ import {
126
128
  listPals,
127
129
  palAtWorkspace,
128
130
  updatePal
129
- } from "./chunk-NRML7BIR.js";
131
+ } from "./chunk-AS7UWXMN.js";
130
132
  import {
131
133
  isTrusted,
132
134
  isTrustedAtStateRoot,
133
135
  trustDir,
134
136
  untrustDir
135
- } from "./chunk-GFSD2D3M.js";
137
+ } from "./chunk-ZG6NVROB.js";
136
138
  import {
137
139
  canonicalProjectPath
138
140
  } from "./chunk-JORONMD3.js";
@@ -143,8 +145,8 @@ import {
143
145
  readStoredGeminiApiKey,
144
146
  writeStoredApiKey,
145
147
  writeStoredGeminiApiKey
146
- } from "./chunk-QQLB573I.js";
147
- import "./chunk-3OZ2OBGU.js";
148
+ } from "./chunk-BOV53LZO.js";
149
+ import "./chunk-HKDPP2JF.js";
148
150
  import {
149
151
  ACPServer,
150
152
  DiskLogMedium,
@@ -177,7 +179,7 @@ import {
177
179
  resolveWithinAnyReal,
178
180
  resolveWithinReal,
179
181
  selectAssistantText
180
- } from "./chunk-ZKTLXAQK.js";
182
+ } from "./chunk-V3ZLK3XQ.js";
181
183
  import {
182
184
  __commonJS,
183
185
  __name,
@@ -9587,6 +9589,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
9587
9589
  const selections = /* @__PURE__ */ new Map();
9588
9590
  const records = /* @__PURE__ */ new Map();
9589
9591
  const reserving = /* @__PURE__ */ new Set();
9592
+ const nativeTurns = /* @__PURE__ */ new Set();
9590
9593
  const catalogues = /* @__PURE__ */ new Map();
9591
9594
  const clock2 = /* @__PURE__ */ __name(() => (deps.now ?? Date.now)(), "clock");
9592
9595
  let closed = false;
@@ -9754,7 +9757,14 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
9754
9757
  let record2 = records.get(request.sessionId);
9755
9758
  try {
9756
9759
  const choice = await selectionFor(request.sessionId, cwd);
9757
- if (!choice) return await base.gateway.prompt(request);
9760
+ if (!choice) {
9761
+ nativeTurns.add(request.sessionId);
9762
+ try {
9763
+ return await base.gateway.prompt(request);
9764
+ } finally {
9765
+ nativeTurns.delete(request.sessionId);
9766
+ }
9767
+ }
9758
9768
  if (request.attachments?.length)
9759
9769
  throw new Error(
9760
9770
  "This engine connection does not support attachments yet. Your draft is retained."
@@ -9864,7 +9874,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
9864
9874
  ...liveInputStatus && liveInput ? {
9865
9875
  liveInputStatus: /* @__PURE__ */ __name(async (id2, scopeId, scope) => {
9866
9876
  if (closed) throw new Error("The connection is closed.");
9867
- if (records.has(id2) || selections.has(id2) || reserving.has(id2)) {
9877
+ if (records.has(id2) || selections.has(id2) || reserving.has(id2) && !nativeTurns.has(id2)) {
9868
9878
  if (scopeId !== void 0)
9869
9879
  throw new Error("This live prompt scope is unavailable in this engine.");
9870
9880
  return { available: false, inputs: [] };
@@ -9872,7 +9882,7 @@ function withCliHarnesses(base, directory, deps = createDefaults()) {
9872
9882
  return liveInputStatus(id2, scopeId, scope);
9873
9883
  }, "liveInputStatus"),
9874
9884
  liveInput: /* @__PURE__ */ __name(async (id2, input, scope) => {
9875
- if (closed || records.has(id2) || selections.has(id2) || reserving.has(id2))
9885
+ if (closed || records.has(id2) || selections.has(id2) || reserving.has(id2) && !nativeTurns.has(id2))
9876
9886
  throw new Error("Live input is unavailable in this engine.");
9877
9887
  return liveInput(id2, input, scope);
9878
9888
  }, "liveInput")
@@ -10917,6 +10927,14 @@ function createProjectChanges(options = {}) {
10917
10927
  }
10918
10928
  __name(createProjectChanges, "createProjectChanges");
10919
10929
 
10930
+ // src/commands/desktop-host-pr.ts
10931
+ async function projectPr(cwd, run = runCommand) {
10932
+ const found = await lookupPr(run, cwd);
10933
+ if (found.state.kind !== "pr") return null;
10934
+ return { number: found.state.number, url: found.state.url, review: found.state.review };
10935
+ }
10936
+ __name(projectPr, "projectPr");
10937
+
10920
10938
  // src/commands/desktop-host.ts
10921
10939
  function text3(params, key, max = 400) {
10922
10940
  const value = params[key];
@@ -11979,6 +11997,12 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
11979
11997
  if (!isTrusted(cwd)) return null;
11980
11998
  return projectGit(cwd);
11981
11999
  }, "namzu/project/git"),
12000
+ "namzu/project/pr": /* @__PURE__ */ __name(async (params = {}) => {
12001
+ if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
12002
+ throw new Error("Invalid project pull request request.");
12003
+ if (!isTrusted(cwd)) return { pr: null };
12004
+ return { pr: await projectPr(cwd) };
12005
+ }, "namzu/project/pr"),
11982
12006
  "namzu/project/changes": /* @__PURE__ */ __name(async (params = {}) => {
11983
12007
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
11984
12008
  throw new Error("Invalid project changes request.");
@@ -13516,4 +13540,4 @@ export {
13516
13540
  resolveAcpSession,
13517
13541
  runAcpCommand
13518
13542
  };
13519
- //# sourceMappingURL=acp-P22WRX3A.js.map
13543
+ //# sourceMappingURL=acp-CJ2TTGJD.js.map