@namzu/cli 60.1.0 → 61.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-6R4I2A3Q.js → acp-Q3IA5XHU.js} +294 -133
  4. package/dist/chunks/acp-Q3IA5XHU.js.map +6 -0
  5. package/dist/chunks/{activity-command-JU4HLIQJ.js → activity-command-PXOMQCVV.js} +14 -14
  6. package/dist/chunks/{add-S6JYKDI4.js → add-HIIKDZDN.js} +21 -21
  7. package/dist/chunks/{agent-E343AQV7.js → agent-5OM6GGWO.js} +55 -53
  8. package/dist/chunks/agent-session-MNEGO6RD.js +95 -0
  9. package/dist/chunks/{apply-at-exit-MEOJMGNT.js → apply-at-exit-2TUEV3TN.js} +7 -7
  10. package/dist/chunks/{archive-ZPWC7GZU.js → archive-ESYECN4Y.js} +12 -12
  11. package/dist/chunks/{auth-6NX4TMIG.js → auth-WA6ZXNXM.js} +12 -12
  12. package/dist/chunks/{bin-main-P3KAQDKC.js → bin-main-Y5FDOG2X.js} +8 -8
  13. package/dist/chunks/{binding-6QZVGFQ5.js → binding-7ZF533IJ.js} +3 -3
  14. package/dist/chunks/{browser-KK2U5524.js → browser-HFAVORW3.js} +7 -7
  15. package/dist/chunks/{chat-VEXJRSZN.js → chat-BVA2BLKE.js} +17 -17
  16. package/dist/chunks/{chunk-PS5SVAUJ.js → chunk-2SXME4FG.js} +2 -2
  17. package/dist/chunks/{chunk-VQZPXK4X.js → chunk-2ZA7XJ63.js} +3 -3
  18. package/dist/chunks/{chunk-452SL2Y4.js → chunk-3CEL5P45.js} +2 -2
  19. package/dist/chunks/{chunk-N5CCXOYK.js → chunk-3DCQNM64.js} +7 -7
  20. package/dist/chunks/{chunk-4KVYTHY7.js → chunk-3KCGBW3F.js} +3 -3
  21. package/dist/chunks/{chunk-66QIFMEO.js → chunk-3RDKZZQE.js} +2 -2
  22. package/dist/chunks/{chunk-ZHEEG3NS.js → chunk-5KRUNLE7.js} +2 -2
  23. package/dist/chunks/{chunk-PE4MWWUW.js → chunk-5M44QX4G.js} +3 -3
  24. package/dist/chunks/{chunk-C7E7YCRD.js → chunk-5VKCUXB2.js} +8 -6
  25. package/dist/chunks/chunk-5VKCUXB2.js.map +6 -0
  26. package/dist/chunks/{chunk-SXONHO4H.js → chunk-65ROGOIM.js} +9 -9
  27. package/dist/chunks/{chunk-HM7L5PM2.js → chunk-65ZRPJA5.js} +3 -3
  28. package/dist/chunks/{chunk-BA7KUG6V.js → chunk-6FGEPFFB.js} +2 -2
  29. package/dist/chunks/{chunk-32OIBGYI.js → chunk-6PEEUJSR.js} +10 -8
  30. package/dist/chunks/chunk-6PEEUJSR.js.map +6 -0
  31. package/dist/chunks/{chunk-44YG6EI4.js → chunk-6UWOG6FY.js} +4 -4
  32. package/dist/chunks/{chunk-2KVQVPJ7.js → chunk-6ZZQSHLH.js} +6 -6
  33. package/dist/chunks/{chunk-2KVQVPJ7.js.map → chunk-6ZZQSHLH.js.map} +1 -1
  34. package/dist/chunks/{chunk-AMYP2WPW.js → chunk-752F23K2.js} +8 -8
  35. package/dist/chunks/{chunk-DRSQTKDN.js → chunk-7BRCXPI3.js} +3 -3
  36. package/dist/chunks/{chunk-WOTA5FO5.js → chunk-7TPWEPUT.js} +3 -3
  37. package/dist/chunks/{chunk-PRJO4XM3.js → chunk-A42WH5C5.js} +2 -2
  38. package/dist/chunks/{chunk-RMOTHWPV.js → chunk-AAGA2PWL.js} +17 -6
  39. package/dist/chunks/chunk-AAGA2PWL.js.map +6 -0
  40. package/dist/chunks/{chunk-F5W4TNCR.js → chunk-AHV6BJED.js} +2 -2
  41. package/dist/chunks/{chunk-4CJ3HPOT.js → chunk-AYD4H6VV.js} +2 -2
  42. package/dist/chunks/{chunk-2DCOB33W.js → chunk-B7DL5QPS.js} +19 -6
  43. package/dist/chunks/chunk-B7DL5QPS.js.map +6 -0
  44. package/dist/chunks/{chunk-FK4MAZV2.js → chunk-BXUNIVZB.js} +13 -6
  45. package/dist/chunks/chunk-BXUNIVZB.js.map +6 -0
  46. package/dist/chunks/{chunk-J4PL65DJ.js → chunk-C3KDKOUV.js} +6 -6
  47. package/dist/chunks/{chunk-VWUTJ4EU.js → chunk-CJBRIESJ.js} +3 -3
  48. package/dist/chunks/{chunk-YWRRS7SO.js → chunk-COOEFXWT.js} +2 -2
  49. package/dist/chunks/{chunk-BJT37HR4.js → chunk-CQ2EGIRN.js} +301 -713
  50. package/dist/chunks/chunk-CQ2EGIRN.js.map +6 -0
  51. package/dist/chunks/{chunk-NVWD5XDT.js → chunk-DAZEYCY5.js} +2 -2
  52. package/dist/chunks/{chunk-4Y242BU4.js → chunk-DL5KZGQK.js} +5 -5
  53. package/dist/chunks/{chunk-O4EILTV6.js → chunk-DRYK66N3.js} +78 -25
  54. package/dist/chunks/chunk-DRYK66N3.js.map +6 -0
  55. package/dist/chunks/{chunk-RQAY7REG.js → chunk-EDAEDZ37.js} +3 -3
  56. package/dist/chunks/{chunk-QQ4S6MNH.js → chunk-EDLBZSB2.js} +1198 -305
  57. package/dist/chunks/chunk-EDLBZSB2.js.map +6 -0
  58. package/dist/chunks/{chunk-R6M6EIAH.js → chunk-EEBDKNNP.js} +4 -4
  59. package/dist/chunks/{chunk-GT22EDUB.js → chunk-EOLSGOXC.js} +6 -6
  60. package/dist/chunks/{chunk-O45DCUNX.js → chunk-EYFAHVYO.js} +2 -2
  61. package/dist/chunks/{chunk-NKHEBASJ.js → chunk-EZYMBETQ.js} +2 -2
  62. package/dist/chunks/{chunk-ME4LETA3.js → chunk-F5AHQ4RX.js} +2 -2
  63. package/dist/chunks/{chunk-MUSGZEFY.js → chunk-F5SG7JPB.js} +2 -2
  64. package/dist/chunks/{chunk-MK42KB72.js → chunk-FHKPEPTE.js} +4 -4
  65. package/dist/chunks/{chunk-XDUA6PBP.js → chunk-FHP4D55L.js} +2 -2
  66. package/dist/chunks/{chunk-WDKAL7EW.js → chunk-FIEADS4A.js} +2 -2
  67. package/dist/chunks/{chunk-K2EKXCLZ.js → chunk-G5NS6ASX.js} +3 -3
  68. package/dist/chunks/{chunk-I4RC6KQQ.js → chunk-GS7ST2VG.js} +19 -19
  69. package/dist/chunks/{chunk-XE6XT6R6.js → chunk-GSNTXEOD.js} +4 -4
  70. package/dist/chunks/{chunk-H6NTNPWD.js → chunk-HGBVFYQT.js} +4 -4
  71. package/dist/chunks/{chunk-D2R47LDH.js → chunk-HIJXZ6FI.js} +12 -12
  72. package/dist/chunks/{chunk-5F4DSPZC.js → chunk-HLYITQWD.js} +10 -10
  73. package/dist/chunks/{chunk-42JIZXVL.js → chunk-HN2NZD4E.js} +3 -88
  74. package/dist/chunks/chunk-HN2NZD4E.js.map +6 -0
  75. package/dist/chunks/{chunk-QCV3HH4P.js → chunk-HX3ENA3I.js} +2 -2
  76. package/dist/chunks/{chunk-HKRUNZVI.js → chunk-IWVJDG4L.js} +3 -3
  77. package/dist/chunks/{chunk-PZWSRAE7.js → chunk-J2ITWYQQ.js} +6 -6
  78. package/dist/chunks/{chunk-4BNCVR3U.js → chunk-JR3LFDKN.js} +2 -2
  79. package/dist/chunks/{chunk-BZR5PIFF.js → chunk-JRZSUEK4.js} +367 -176
  80. package/dist/chunks/chunk-JRZSUEK4.js.map +6 -0
  81. package/dist/chunks/{chunk-FMD4REZQ.js → chunk-K4PFUUP7.js} +47 -40
  82. package/dist/chunks/chunk-K4PFUUP7.js.map +6 -0
  83. package/dist/chunks/{chunk-TBJ6XU3T.js → chunk-KDOBJGF2.js} +3 -3
  84. package/dist/chunks/{chunk-EBBT2I5S.js → chunk-KDPGC66S.js} +30 -6
  85. package/dist/chunks/chunk-KDPGC66S.js.map +6 -0
  86. package/dist/chunks/{chunk-QNJXULU7.js → chunk-KKHZG7B2.js} +2 -2
  87. package/dist/chunks/{chunk-6W3UGXGG.js → chunk-KTSPKGEC.js} +4 -4
  88. package/dist/chunks/{chunk-BURGRQWO.js → chunk-KXBZ7P2A.js} +2 -2
  89. package/dist/chunks/{chunk-4473VICE.js → chunk-KZ5XYWKO.js} +3 -3
  90. package/dist/chunks/{chunk-EXJJLYZK.js → chunk-LKWENSPO.js} +7 -60
  91. package/dist/chunks/chunk-LKWENSPO.js.map +6 -0
  92. package/dist/chunks/{chunk-F7KOBJVW.js → chunk-LLVZON4J.js} +4 -4
  93. package/dist/chunks/{chunk-B4AOCHH6.js → chunk-LNMFADLE.js} +3 -3
  94. package/dist/chunks/{chunk-AC5P6W3G.js → chunk-ME7MQ4P2.js} +2 -2
  95. package/dist/chunks/{chunk-JJ72TLOA.js → chunk-MESE2QPT.js} +27 -30
  96. package/dist/chunks/chunk-MESE2QPT.js.map +6 -0
  97. package/dist/chunks/{chunk-FPC3K4TT.js → chunk-MHESN2FM.js} +3 -3
  98. package/dist/chunks/{chunk-SLTJNYOU.js → chunk-MKCZB324.js} +2 -2
  99. package/dist/chunks/{chunk-5IGEQN7L.js → chunk-NE55T7GN.js} +4 -4
  100. package/dist/chunks/{chunk-VG7245VJ.js → chunk-NI2YKSPW.js} +6 -6
  101. package/dist/chunks/{chunk-AYMB4AOZ.js → chunk-NQVSTOUH.js} +4 -4
  102. package/dist/chunks/chunk-NSU3TAZZ.js +74 -0
  103. package/dist/chunks/chunk-NSU3TAZZ.js.map +6 -0
  104. package/dist/chunks/{chunk-QGBR42TV.js → chunk-NVRUHQKC.js} +7 -7
  105. package/dist/chunks/{chunk-PAUMCJPX.js → chunk-O3AEUU3Q.js} +3 -3
  106. package/dist/chunks/{chunk-4DSUVT37.js → chunk-OG7MBIKO.js} +5 -5
  107. package/dist/chunks/{chunk-NBJ5PRAY.js → chunk-OGMRGX5M.js} +3 -3
  108. package/dist/chunks/{chunk-WJ6QRVL6.js → chunk-PFQQ6YFF.js} +2 -2
  109. package/dist/chunks/{chunk-CXW7I2S3.js → chunk-PHEL63BK.js} +2 -2
  110. package/dist/chunks/{chunk-YR3TWNIV.js → chunk-PJORD4FZ.js} +9 -9
  111. package/dist/chunks/{chunk-5ZLKTFU2.js → chunk-PSUJIMQV.js} +3 -3
  112. package/dist/chunks/{chunk-TBGKPWCL.js → chunk-PWSMXR6B.js} +9 -9
  113. package/dist/chunks/{chunk-PRRX5LNR.js → chunk-PYFAJB35.js} +2 -2
  114. package/dist/chunks/{chunk-BWD2TUI4.js → chunk-PYFGTXFQ.js} +5 -5
  115. package/dist/chunks/{chunk-EWPGU4HH.js → chunk-Q5H7EHCH.js} +314 -22
  116. package/dist/chunks/{chunk-EWPGU4HH.js.map → chunk-Q5H7EHCH.js.map} +2 -2
  117. package/dist/chunks/{chunk-BHQHTM3Z.js → chunk-QH4DQR57.js} +5 -5
  118. package/dist/chunks/{chunk-TTKMQW6B.js → chunk-QR5VVGWU.js} +3 -3
  119. package/dist/chunks/{chunk-UCML5ZXB.js → chunk-QR7GTBV3.js} +3 -3
  120. package/dist/chunks/{chunk-T7ILM666.js → chunk-R5BEMFDZ.js} +11 -11
  121. package/dist/chunks/{chunk-D4TXOX34.js → chunk-RQOE2MRO.js} +2 -2
  122. package/dist/chunks/chunk-RYOZ4HYY.js +1221 -0
  123. package/dist/chunks/chunk-RYOZ4HYY.js.map +6 -0
  124. package/dist/chunks/{chunk-6TUHWKXP.js → chunk-RZBIRLZ6.js} +6 -6
  125. package/dist/chunks/{chunk-GTUTBTOV.js → chunk-SLLKDPGZ.js} +3 -3
  126. package/dist/chunks/{chunk-6HYK4DDB.js → chunk-SXI6NW2H.js} +3 -3
  127. package/dist/chunks/{chunk-R2KAESOM.js → chunk-SYJRI5A4.js} +2 -2
  128. package/dist/chunks/{chunk-RKKU2RE4.js → chunk-T26HDLQS.js} +2 -2
  129. package/dist/chunks/{chunk-WYA4QWWE.js → chunk-TBQQRYS2.js} +5 -5
  130. package/dist/chunks/{chunk-IMMUS7IW.js → chunk-TFREQNR5.js} +20 -12
  131. package/dist/chunks/chunk-TFREQNR5.js.map +6 -0
  132. package/dist/chunks/{chunk-GPTYDM26.js → chunk-TQZSXYON.js} +8 -8
  133. package/dist/chunks/{chunk-D6PB3Z7Q.js → chunk-TSN7J4ZH.js} +2 -2
  134. package/dist/chunks/{chunk-Z5OG4HXI.js → chunk-TT3GLF32.js} +133 -89
  135. package/dist/chunks/chunk-TT3GLF32.js.map +6 -0
  136. package/dist/chunks/{chunk-PZLPACNY.js → chunk-TWTZKA46.js} +3 -3
  137. package/dist/chunks/{chunk-K7YZJV2X.js → chunk-U3OY3T54.js} +34 -16
  138. package/dist/chunks/chunk-U3OY3T54.js.map +6 -0
  139. package/dist/chunks/{chunk-MF3SFDBW.js → chunk-U6DACADN.js} +3 -3
  140. package/dist/chunks/chunk-UBDKPN27.js +150 -0
  141. package/dist/chunks/chunk-UBDKPN27.js.map +6 -0
  142. package/dist/chunks/{chunk-75YLZNZW.js → chunk-UDSY3L6M.js} +3 -3
  143. package/dist/chunks/{chunk-WPGVZMSU.js → chunk-UOU7PGPZ.js} +2 -2
  144. package/dist/chunks/{chunk-TSOZBRM6.js → chunk-UY5KPN7B.js} +2 -2
  145. package/dist/chunks/{chunk-DEAG4G5J.js → chunk-V3DMBRE3.js} +2 -2
  146. package/dist/chunks/{chunk-QBLHOG2F.js → chunk-V5K2AOLI.js} +3 -3
  147. package/dist/chunks/{chunk-TTFPWGIU.js → chunk-VAJPCN3B.js} +2 -2
  148. package/dist/chunks/{chunk-JECLB23L.js → chunk-VIURZHCB.js} +6 -6
  149. package/dist/chunks/{chunk-IQ44C7Y3.js → chunk-VOR32IWQ.js} +4 -4
  150. package/dist/chunks/{chunk-XNQY26AE.js → chunk-W3BDNKTN.js} +4 -4
  151. package/dist/chunks/{chunk-JRBFL6WT.js → chunk-W5GDQFZS.js} +2 -2
  152. package/dist/chunks/{chunk-FVIKYFYD.js → chunk-XWGWQBF7.js} +2 -2
  153. package/dist/chunks/{chunk-KSRN5Y2O.js → chunk-Y2HHHKBF.js} +165 -79
  154. package/dist/chunks/chunk-Y2HHHKBF.js.map +6 -0
  155. package/dist/chunks/{chunk-PLCWCIL4.js → chunk-Y5NGMUDN.js} +2 -2
  156. package/dist/chunks/{chunk-TMPP2DEY.js → chunk-YCODODZO.js} +4 -4
  157. package/dist/chunks/{chunk-HG2PPCAE.js → chunk-YENBRA7T.js} +3 -3
  158. package/dist/chunks/{chunk-HCQGZPVT.js → chunk-YHUAVEOM.js} +2 -2
  159. package/dist/chunks/{chunk-4ENL4VUO.js → chunk-YPNF7YFU.js} +4 -4
  160. package/dist/chunks/{chunk-IL4Y3JGT.js → chunk-ZCDOMHZU.js} +13 -13
  161. package/dist/chunks/{chunk-BNLIRJ3M.js → chunk-ZPOMLH5G.js} +4 -4
  162. package/dist/chunks/{cli-runtime-ZJKKIW4H.js → cli-runtime-5IXM6W6M.js} +22 -22
  163. package/dist/chunks/{commands-TQH5DD22.js → commands-LOMIOXZ3.js} +6 -6
  164. package/dist/chunks/{config-APYUJ5UW.js → config-UBOJ3N77.js} +12 -12
  165. package/dist/chunks/{cost-5YV27U7F.js → cost-LM34ZHBI.js} +5 -5
  166. package/dist/chunks/{crash-report-QVXU2YVL.js → crash-report-PTHJP6ZC.js} +6 -6
  167. package/dist/chunks/{dist-AOT4CEP5.js → dist-3P6YD6AW.js} +2 -2
  168. package/dist/chunks/{dist-H7CAJ3ZW.js → dist-3W2E4ZVU.js} +16 -2
  169. package/dist/chunks/{dist-Z2HW2SJR.js → dist-C7M5OJAH.js} +2 -2
  170. package/dist/chunks/{dist-2FSOLP72.js → dist-HJYAXRBL.js} +2 -2
  171. package/dist/chunks/{dist-IZGKRIWL.js → dist-LZAIP6RQ.js} +2 -2
  172. package/dist/chunks/{dist-J4UXFVYR.js → dist-TEFBDQUK.js} +2 -2
  173. package/dist/chunks/{dist-PZYMYR7N.js → dist-Y4YXKFL6.js} +3 -3
  174. package/dist/chunks/{dist-JHKRSGW6.js → dist-ZVUIWK64.js} +2 -2
  175. package/dist/chunks/{doctor-CM6UPXG5.js → doctor-LL6FW4DE.js} +40 -40
  176. package/dist/chunks/{drain-X6RURKKC.js → drain-AX2SKGAZ.js} +31 -31
  177. package/dist/chunks/drain-AX2SKGAZ.js.map +6 -0
  178. package/dist/chunks/{entry-QQDPY6ZL.js → entry-QT6CMKBN.js} +6 -6
  179. package/dist/chunks/{eval-GZA22B4I.js → eval-HKAAPPGO.js} +9 -9
  180. package/dist/chunks/{exec-3NE75Z6E.js → exec-DY3B5KGJ.js} +98 -52
  181. package/dist/chunks/exec-DY3B5KGJ.js.map +6 -0
  182. package/dist/chunks/{extension-N5IQNKVZ.js → extension-55PWXBQY.js} +6 -6
  183. package/dist/chunks/{home-I4FIB6FV.js → home-7KXFLNBX.js} +3 -3
  184. package/dist/chunks/{homes-WTMMXQ6G.js → homes-WYHCCBK6.js} +5 -5
  185. package/dist/chunks/{hooks-R42OTZDT.js → hooks-UZ46HYL4.js} +22 -22
  186. package/dist/chunks/{hooks-report-K6VOPVBR.js → hooks-report-RD53ZGON.js} +18 -18
  187. package/dist/chunks/{host-65UFBZJV.js → host-NUIEARM2.js} +11 -10
  188. package/dist/chunks/host-queries-OB7OWZI6.js +37 -0
  189. package/dist/chunks/{installed-list-7QIWVKLQ.js → installed-list-T3G757YK.js} +4 -4
  190. package/dist/chunks/{learn-NZXLKYV4.js → learn-MTQXTX6E.js} +17 -17
  191. package/dist/chunks/{learn-builtin-RC4XXVBS.js → learn-builtin-3SXUVV7J.js} +20 -20
  192. package/dist/chunks/{lifecycle-NLCZ6OPA.js → lifecycle-MFXCFSJP.js} +33 -30
  193. package/dist/chunks/{list-2U67CAWS.js → list-M6Y24N5J.js} +18 -18
  194. package/dist/chunks/{live-CWJ2NWUQ.js → live-UNUQSBVZ.js} +39 -39
  195. package/dist/chunks/{load-H52QQBVE.js → load-GA4OIEG4.js} +9 -9
  196. package/dist/chunks/{logs-ZIW3QFU4.js → logs-LUPWFBWF.js} +4 -4
  197. package/dist/chunks/{mcp-FNSMEMCM.js → mcp-4GD5Y5W7.js} +98 -36
  198. package/dist/chunks/mcp-4GD5Y5W7.js.map +6 -0
  199. package/dist/chunks/{mcp-serve-ZC2OKIPP.js → mcp-serve-RQKZQNPI.js} +17 -17
  200. package/dist/chunks/{message-command-IHZWL5GI.js → message-command-L5HAX56P.js} +59 -59
  201. package/dist/chunks/{open-AHDQMVXI.js → open-D6QESFR2.js} +7 -7
  202. package/dist/chunks/{operator-tools-P5R4TF6N.js → operator-tools-CFYHXAZS.js} +15 -15
  203. package/dist/chunks/{output-schema-Q5RWHNKE.js → output-schema-WV5RUG66.js} +3 -3
  204. package/dist/chunks/{pal-T42HU4AK.js → pal-JVR6ZLEI.js} +15 -15
  205. package/dist/chunks/{peers-5RYEA7IA.js → peers-EK24T2HF.js} +8 -7
  206. package/dist/chunks/{peers-7ZG3DEBO.js → peers-NCDTNFJV.js} +20 -19
  207. package/dist/chunks/peers-NCDTNFJV.js.map +6 -0
  208. package/dist/chunks/{plugin-DGEINYG5.js → plugin-RR4O7D6C.js} +108 -52
  209. package/dist/chunks/plugin-RR4O7D6C.js.map +6 -0
  210. package/dist/chunks/{providers-I24HYZXG.js → providers-2CLIPXQ2.js} +10 -10
  211. package/dist/chunks/{providers-BXXIM7EW.js → providers-RTRULUUS.js} +17 -17
  212. package/dist/chunks/{pty-WVKM6ATI.js → pty-OHLKFJFA.js} +3 -3
  213. package/dist/chunks/resume-5OWRUFUL.js +25 -0
  214. package/dist/chunks/{resume-command-4I47WN7T.js → resume-command-HIIEMJAT.js} +4 -4
  215. package/dist/chunks/{running-VID6BVT2.js → running-3BAWMUK4.js} +4 -4
  216. package/dist/chunks/{schedule-75IZH76Z.js → schedule-OW54ANKO.js} +12 -12
  217. package/dist/chunks/{send-QRYY2NCG.js → send-5NIU4WFY.js} +20 -19
  218. package/dist/chunks/send-person-RYBIVAML.js +33 -0
  219. package/dist/chunks/{service-B6BNESZB.js → service-MGZ4LEVY.js} +33 -30
  220. package/dist/chunks/service-MGZ4LEVY.js.map +6 -0
  221. package/dist/chunks/{setting-cli-O4YWOIU5.js → setting-cli-CHPHJSAM.js} +12 -12
  222. package/dist/chunks/{skills-PEMVX5C3.js → skills-6DNVYWKR.js} +26 -26
  223. package/dist/chunks/{start-check-EKRXJ5VE.js → start-check-MHUGGAYJ.js} +2 -2
  224. package/dist/chunks/{startup-failure-2UJKPNMR.js → startup-failure-R2AIVZYU.js} +2 -2
  225. package/dist/chunks/{state-X3MKUFYM.js → state-2WEGEDJ5.js} +19 -19
  226. package/dist/chunks/{store-VRKKFOYW.js → store-MCRRV4BB.js} +3 -3
  227. package/dist/chunks/{store-QFNY4BV4.js → store-RITSVC5A.js} +4 -4
  228. package/dist/chunks/{store-MK5IYBE5.js → store-UFRLA47W.js} +8 -8
  229. package/dist/chunks/{store-4OXWHFS5.js → store-WH3C3EPV.js} +12 -12
  230. package/dist/chunks/{tui-MI72TUST.js → tui-5QS4AAMU.js} +98 -96
  231. package/dist/chunks/tui-5QS4AAMU.js.map +6 -0
  232. package/dist/chunks/{update-ELZEXYIX.js → update-3VXQAKVL.js} +8 -8
  233. package/dist/chunks/{watch-HPINGMZZ.js → watch-PMFTONTW.js} +102 -100
  234. package/dist/chunks/watch-PMFTONTW.js.map +6 -0
  235. package/dist/chunks/{workspaces-3LB4SPPS.js → workspaces-N7A3JNL4.js} +16 -15
  236. package/dist/chunks/workspaces-N7A3JNL4.js.map +6 -0
  237. package/dist/chunks/{worktree-5CWUUWNO.js → worktree-6L5FLMVI.js} +24 -24
  238. package/dist/cli.d.ts.map +1 -1
  239. package/dist/commands/acp.d.ts +8 -1
  240. package/dist/commands/acp.d.ts.map +1 -1
  241. package/dist/commands/desktop-host-plugins.d.ts +28 -1
  242. package/dist/commands/desktop-host-plugins.d.ts.map +1 -1
  243. package/dist/commands/desktop-host.d.ts +20 -1
  244. package/dist/commands/desktop-host.d.ts.map +1 -1
  245. package/dist/commands/drain.d.ts.map +1 -1
  246. package/dist/commands/exec-browser.d.ts +19 -0
  247. package/dist/commands/exec-browser.d.ts.map +1 -0
  248. package/dist/commands/exec-flags.d.ts +11 -2
  249. package/dist/commands/exec-flags.d.ts.map +1 -1
  250. package/dist/commands/exec-json.d.ts.map +1 -1
  251. package/dist/commands/exec.d.ts.map +1 -1
  252. package/dist/commands/mcp.d.ts +16 -1
  253. package/dist/commands/mcp.d.ts.map +1 -1
  254. package/dist/commands/plugin-install.d.ts +6 -0
  255. package/dist/commands/plugin-install.d.ts.map +1 -1
  256. package/dist/commands/plugin-records.d.ts +3 -0
  257. package/dist/commands/plugin-records.d.ts.map +1 -1
  258. package/dist/commands/plugin.d.ts.map +1 -1
  259. package/dist/config/load.d.ts.map +1 -1
  260. package/dist/config/schema.d.ts +29 -3
  261. package/dist/config/schema.d.ts.map +1 -1
  262. package/dist/config/session-options.d.ts +116 -0
  263. package/dist/config/session-options.d.ts.map +1 -1
  264. package/dist/config/settings-descriptors.d.ts.map +1 -1
  265. package/dist/index.js +40 -40
  266. package/dist/integrations/archive/zip.d.ts +8 -1
  267. package/dist/integrations/archive/zip.d.ts.map +1 -1
  268. package/dist/integrations/mcp/plugin-remote.d.ts +4 -0
  269. package/dist/integrations/mcp/plugin-remote.d.ts.map +1 -1
  270. package/dist/integrations/peers/process-ancestry.d.ts +10 -0
  271. package/dist/integrations/peers/process-ancestry.d.ts.map +1 -1
  272. package/dist/integrations/plugins/fetch/archive.d.ts.map +1 -1
  273. package/dist/integrations/plugins/fetch/git.d.ts +13 -3
  274. package/dist/integrations/plugins/fetch/git.d.ts.map +1 -1
  275. package/dist/integrations/plugins/fetch/policy.d.ts +40 -0
  276. package/dist/integrations/plugins/fetch/policy.d.ts.map +1 -0
  277. package/dist/integrations/plugins/fetch/source.d.ts +8 -10
  278. package/dist/integrations/plugins/fetch/source.d.ts.map +1 -1
  279. package/dist/integrations/plugins/fetch/url.d.ts +16 -4
  280. package/dist/integrations/plugins/fetch/url.d.ts.map +1 -1
  281. package/dist/integrations/plugins/files.d.ts.map +1 -1
  282. package/dist/integrations/plugins/install-manifest.d.ts +11 -0
  283. package/dist/integrations/plugins/install-manifest.d.ts.map +1 -1
  284. package/dist/integrations/plugins/install-plan.d.ts.map +1 -1
  285. package/dist/integrations/plugins/install-preview.d.ts +1 -2
  286. package/dist/integrations/plugins/install-preview.d.ts.map +1 -1
  287. package/dist/integrations/plugins/install.d.ts.map +1 -1
  288. package/dist/integrations/plugins/installed-source.d.ts +25 -0
  289. package/dist/integrations/plugins/installed-source.d.ts.map +1 -1
  290. package/dist/integrations/plugins/inventory.d.ts.map +1 -1
  291. package/dist/integrations/plugins/remote-marketplace.d.ts +16 -2
  292. package/dist/integrations/plugins/remote-marketplace.d.ts.map +1 -1
  293. package/dist/integrations/plugins/runtime.d.ts.map +1 -1
  294. package/dist/integrations/plugins/surface.d.ts +3 -1
  295. package/dist/integrations/plugins/surface.d.ts.map +1 -1
  296. package/dist/integrations/plugins/update-compare.d.ts +3 -3
  297. package/dist/integrations/plugins/update-compare.d.ts.map +1 -1
  298. package/dist/integrations/plugins/validate.d.ts.map +1 -1
  299. package/dist/integrations/workflows/guidance.d.ts +12 -0
  300. package/dist/integrations/workflows/guidance.d.ts.map +1 -0
  301. package/dist/integrations/workflows/host.d.ts +3 -0
  302. package/dist/integrations/workflows/host.d.ts.map +1 -1
  303. package/dist/integrations/workflows/offering.d.ts +16 -1
  304. package/dist/integrations/workflows/offering.d.ts.map +1 -1
  305. package/dist/integrations/workflows/size.d.ts +17 -3
  306. package/dist/integrations/workflows/size.d.ts.map +1 -1
  307. package/dist/permissions/auto-classifier.d.ts.map +1 -1
  308. package/dist/permissions/send-floor.d.ts +7 -0
  309. package/dist/permissions/send-floor.d.ts.map +1 -1
  310. package/dist/reminders/hypermode.d.ts +6 -0
  311. package/dist/reminders/hypermode.d.ts.map +1 -1
  312. package/dist/reminders/index.d.ts +1 -0
  313. package/dist/reminders/index.d.ts.map +1 -1
  314. package/dist/schedule/fire/fire.d.ts.map +1 -1
  315. package/dist/schedule/policy.d.ts.map +1 -1
  316. package/dist/skills/skill-shell.d.ts +9 -5
  317. package/dist/skills/skill-shell.d.ts.map +1 -1
  318. package/dist/tui/AgentExplorer.d.ts +3 -2
  319. package/dist/tui/AgentExplorer.d.ts.map +1 -1
  320. package/dist/tui/App.d.ts.map +1 -1
  321. package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
  322. package/dist/tui/ColouredText.d.ts +11 -0
  323. package/dist/tui/ColouredText.d.ts.map +1 -0
  324. package/dist/tui/LiveActivity.d.ts.map +1 -1
  325. package/dist/tui/Transcript.d.ts +7 -1
  326. package/dist/tui/Transcript.d.ts.map +1 -1
  327. package/dist/tui/agent-tokens.d.ts +7 -0
  328. package/dist/tui/agent-tokens.d.ts.map +1 -1
  329. package/dist/tui/agent-transcript-rows.d.ts +5 -1
  330. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  331. package/dist/tui/agent.d.ts +31 -4
  332. package/dist/tui/agent.d.ts.map +1 -1
  333. package/dist/tui/computer-use-screen-approval.d.ts +11 -1
  334. package/dist/tui/computer-use-screen-approval.d.ts.map +1 -1
  335. package/dist/tui/job-result-footer.d.ts +6 -1
  336. package/dist/tui/job-result-footer.d.ts.map +1 -1
  337. package/dist/tui/model-selection-intent.d.ts +5 -1
  338. package/dist/tui/model-selection-intent.d.ts.map +1 -1
  339. package/dist/tui/sgr-colour.d.ts +46 -0
  340. package/dist/tui/sgr-colour.d.ts.map +1 -0
  341. package/dist/tui/shell-cell.d.ts +1 -0
  342. package/dist/tui/shell-cell.d.ts.map +1 -1
  343. package/dist/tui/tidy-tool-output.d.ts +3 -3
  344. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  345. package/dist/tui/tool-end-rows.d.ts +2 -0
  346. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  347. package/dist/tui/transcript-screen.d.ts.map +1 -1
  348. package/dist/tui/transcript-scroll.d.ts.map +1 -1
  349. package/package.json +4 -4
  350. package/skills/README.md +5 -0
  351. package/skills/workflow-authoring/SKILL.md +101 -0
  352. package/dist/chunks/acp-6R4I2A3Q.js.map +0 -6
  353. package/dist/chunks/agent-session-D6JIOCON.js +0 -95
  354. package/dist/chunks/chunk-2DCOB33W.js.map +0 -6
  355. package/dist/chunks/chunk-32OIBGYI.js.map +0 -6
  356. package/dist/chunks/chunk-42JIZXVL.js.map +0 -6
  357. package/dist/chunks/chunk-BJT37HR4.js.map +0 -6
  358. package/dist/chunks/chunk-BZR5PIFF.js.map +0 -6
  359. package/dist/chunks/chunk-C7E7YCRD.js.map +0 -6
  360. package/dist/chunks/chunk-EBBT2I5S.js.map +0 -6
  361. package/dist/chunks/chunk-EXJJLYZK.js.map +0 -6
  362. package/dist/chunks/chunk-FK4MAZV2.js.map +0 -6
  363. package/dist/chunks/chunk-FMD4REZQ.js.map +0 -6
  364. package/dist/chunks/chunk-IMMUS7IW.js.map +0 -6
  365. package/dist/chunks/chunk-JJ72TLOA.js.map +0 -6
  366. package/dist/chunks/chunk-K7YZJV2X.js.map +0 -6
  367. package/dist/chunks/chunk-KF6IKSF2.js +0 -472
  368. package/dist/chunks/chunk-KF6IKSF2.js.map +0 -6
  369. package/dist/chunks/chunk-KSRN5Y2O.js.map +0 -6
  370. package/dist/chunks/chunk-O4EILTV6.js.map +0 -6
  371. package/dist/chunks/chunk-QQ4S6MNH.js.map +0 -6
  372. package/dist/chunks/chunk-RMOTHWPV.js.map +0 -6
  373. package/dist/chunks/chunk-Z5OG4HXI.js.map +0 -6
  374. package/dist/chunks/drain-X6RURKKC.js.map +0 -6
  375. package/dist/chunks/exec-3NE75Z6E.js.map +0 -6
  376. package/dist/chunks/host-queries-L4PYE2BW.js +0 -37
  377. package/dist/chunks/mcp-FNSMEMCM.js.map +0 -6
  378. package/dist/chunks/peers-7ZG3DEBO.js.map +0 -6
  379. package/dist/chunks/plugin-DGEINYG5.js.map +0 -6
  380. package/dist/chunks/resume-F7JEDBHI.js +0 -25
  381. package/dist/chunks/send-person-VADQNJBN.js +0 -32
  382. package/dist/chunks/service-B6BNESZB.js.map +0 -6
  383. package/dist/chunks/tui-MI72TUST.js.map +0 -6
  384. package/dist/chunks/watch-HPINGMZZ.js.map +0 -6
  385. package/dist/chunks/workspaces-3LB4SPPS.js.map +0 -6
  386. /package/dist/chunks/{activity-command-JU4HLIQJ.js.map → activity-command-PXOMQCVV.js.map} +0 -0
  387. /package/dist/chunks/{add-S6JYKDI4.js.map → add-HIIKDZDN.js.map} +0 -0
  388. /package/dist/chunks/{agent-E343AQV7.js.map → agent-5OM6GGWO.js.map} +0 -0
  389. /package/dist/chunks/{agent-session-D6JIOCON.js.map → agent-session-MNEGO6RD.js.map} +0 -0
  390. /package/dist/chunks/{apply-at-exit-MEOJMGNT.js.map → apply-at-exit-2TUEV3TN.js.map} +0 -0
  391. /package/dist/chunks/{archive-ZPWC7GZU.js.map → archive-ESYECN4Y.js.map} +0 -0
  392. /package/dist/chunks/{auth-6NX4TMIG.js.map → auth-WA6ZXNXM.js.map} +0 -0
  393. /package/dist/chunks/{bin-main-P3KAQDKC.js.map → bin-main-Y5FDOG2X.js.map} +0 -0
  394. /package/dist/chunks/{binding-6QZVGFQ5.js.map → binding-7ZF533IJ.js.map} +0 -0
  395. /package/dist/chunks/{browser-KK2U5524.js.map → browser-HFAVORW3.js.map} +0 -0
  396. /package/dist/chunks/{chat-VEXJRSZN.js.map → chat-BVA2BLKE.js.map} +0 -0
  397. /package/dist/chunks/{chunk-PS5SVAUJ.js.map → chunk-2SXME4FG.js.map} +0 -0
  398. /package/dist/chunks/{chunk-VQZPXK4X.js.map → chunk-2ZA7XJ63.js.map} +0 -0
  399. /package/dist/chunks/{chunk-452SL2Y4.js.map → chunk-3CEL5P45.js.map} +0 -0
  400. /package/dist/chunks/{chunk-N5CCXOYK.js.map → chunk-3DCQNM64.js.map} +0 -0
  401. /package/dist/chunks/{chunk-4KVYTHY7.js.map → chunk-3KCGBW3F.js.map} +0 -0
  402. /package/dist/chunks/{chunk-66QIFMEO.js.map → chunk-3RDKZZQE.js.map} +0 -0
  403. /package/dist/chunks/{chunk-ZHEEG3NS.js.map → chunk-5KRUNLE7.js.map} +0 -0
  404. /package/dist/chunks/{chunk-PE4MWWUW.js.map → chunk-5M44QX4G.js.map} +0 -0
  405. /package/dist/chunks/{chunk-SXONHO4H.js.map → chunk-65ROGOIM.js.map} +0 -0
  406. /package/dist/chunks/{chunk-HM7L5PM2.js.map → chunk-65ZRPJA5.js.map} +0 -0
  407. /package/dist/chunks/{chunk-BA7KUG6V.js.map → chunk-6FGEPFFB.js.map} +0 -0
  408. /package/dist/chunks/{chunk-44YG6EI4.js.map → chunk-6UWOG6FY.js.map} +0 -0
  409. /package/dist/chunks/{chunk-AMYP2WPW.js.map → chunk-752F23K2.js.map} +0 -0
  410. /package/dist/chunks/{chunk-DRSQTKDN.js.map → chunk-7BRCXPI3.js.map} +0 -0
  411. /package/dist/chunks/{chunk-WOTA5FO5.js.map → chunk-7TPWEPUT.js.map} +0 -0
  412. /package/dist/chunks/{chunk-PRJO4XM3.js.map → chunk-A42WH5C5.js.map} +0 -0
  413. /package/dist/chunks/{chunk-F5W4TNCR.js.map → chunk-AHV6BJED.js.map} +0 -0
  414. /package/dist/chunks/{chunk-4CJ3HPOT.js.map → chunk-AYD4H6VV.js.map} +0 -0
  415. /package/dist/chunks/{chunk-J4PL65DJ.js.map → chunk-C3KDKOUV.js.map} +0 -0
  416. /package/dist/chunks/{chunk-VWUTJ4EU.js.map → chunk-CJBRIESJ.js.map} +0 -0
  417. /package/dist/chunks/{chunk-YWRRS7SO.js.map → chunk-COOEFXWT.js.map} +0 -0
  418. /package/dist/chunks/{chunk-NVWD5XDT.js.map → chunk-DAZEYCY5.js.map} +0 -0
  419. /package/dist/chunks/{chunk-4Y242BU4.js.map → chunk-DL5KZGQK.js.map} +0 -0
  420. /package/dist/chunks/{chunk-RQAY7REG.js.map → chunk-EDAEDZ37.js.map} +0 -0
  421. /package/dist/chunks/{chunk-R6M6EIAH.js.map → chunk-EEBDKNNP.js.map} +0 -0
  422. /package/dist/chunks/{chunk-GT22EDUB.js.map → chunk-EOLSGOXC.js.map} +0 -0
  423. /package/dist/chunks/{chunk-O45DCUNX.js.map → chunk-EYFAHVYO.js.map} +0 -0
  424. /package/dist/chunks/{chunk-NKHEBASJ.js.map → chunk-EZYMBETQ.js.map} +0 -0
  425. /package/dist/chunks/{chunk-ME4LETA3.js.map → chunk-F5AHQ4RX.js.map} +0 -0
  426. /package/dist/chunks/{chunk-MUSGZEFY.js.map → chunk-F5SG7JPB.js.map} +0 -0
  427. /package/dist/chunks/{chunk-MK42KB72.js.map → chunk-FHKPEPTE.js.map} +0 -0
  428. /package/dist/chunks/{chunk-XDUA6PBP.js.map → chunk-FHP4D55L.js.map} +0 -0
  429. /package/dist/chunks/{chunk-WDKAL7EW.js.map → chunk-FIEADS4A.js.map} +0 -0
  430. /package/dist/chunks/{chunk-K2EKXCLZ.js.map → chunk-G5NS6ASX.js.map} +0 -0
  431. /package/dist/chunks/{chunk-I4RC6KQQ.js.map → chunk-GS7ST2VG.js.map} +0 -0
  432. /package/dist/chunks/{chunk-XE6XT6R6.js.map → chunk-GSNTXEOD.js.map} +0 -0
  433. /package/dist/chunks/{chunk-H6NTNPWD.js.map → chunk-HGBVFYQT.js.map} +0 -0
  434. /package/dist/chunks/{chunk-D2R47LDH.js.map → chunk-HIJXZ6FI.js.map} +0 -0
  435. /package/dist/chunks/{chunk-5F4DSPZC.js.map → chunk-HLYITQWD.js.map} +0 -0
  436. /package/dist/chunks/{chunk-QCV3HH4P.js.map → chunk-HX3ENA3I.js.map} +0 -0
  437. /package/dist/chunks/{chunk-HKRUNZVI.js.map → chunk-IWVJDG4L.js.map} +0 -0
  438. /package/dist/chunks/{chunk-PZWSRAE7.js.map → chunk-J2ITWYQQ.js.map} +0 -0
  439. /package/dist/chunks/{chunk-4BNCVR3U.js.map → chunk-JR3LFDKN.js.map} +0 -0
  440. /package/dist/chunks/{chunk-TBJ6XU3T.js.map → chunk-KDOBJGF2.js.map} +0 -0
  441. /package/dist/chunks/{chunk-QNJXULU7.js.map → chunk-KKHZG7B2.js.map} +0 -0
  442. /package/dist/chunks/{chunk-6W3UGXGG.js.map → chunk-KTSPKGEC.js.map} +0 -0
  443. /package/dist/chunks/{chunk-BURGRQWO.js.map → chunk-KXBZ7P2A.js.map} +0 -0
  444. /package/dist/chunks/{chunk-4473VICE.js.map → chunk-KZ5XYWKO.js.map} +0 -0
  445. /package/dist/chunks/{chunk-F7KOBJVW.js.map → chunk-LLVZON4J.js.map} +0 -0
  446. /package/dist/chunks/{chunk-B4AOCHH6.js.map → chunk-LNMFADLE.js.map} +0 -0
  447. /package/dist/chunks/{chunk-AC5P6W3G.js.map → chunk-ME7MQ4P2.js.map} +0 -0
  448. /package/dist/chunks/{chunk-FPC3K4TT.js.map → chunk-MHESN2FM.js.map} +0 -0
  449. /package/dist/chunks/{chunk-SLTJNYOU.js.map → chunk-MKCZB324.js.map} +0 -0
  450. /package/dist/chunks/{chunk-5IGEQN7L.js.map → chunk-NE55T7GN.js.map} +0 -0
  451. /package/dist/chunks/{chunk-VG7245VJ.js.map → chunk-NI2YKSPW.js.map} +0 -0
  452. /package/dist/chunks/{chunk-AYMB4AOZ.js.map → chunk-NQVSTOUH.js.map} +0 -0
  453. /package/dist/chunks/{chunk-QGBR42TV.js.map → chunk-NVRUHQKC.js.map} +0 -0
  454. /package/dist/chunks/{chunk-PAUMCJPX.js.map → chunk-O3AEUU3Q.js.map} +0 -0
  455. /package/dist/chunks/{chunk-4DSUVT37.js.map → chunk-OG7MBIKO.js.map} +0 -0
  456. /package/dist/chunks/{chunk-NBJ5PRAY.js.map → chunk-OGMRGX5M.js.map} +0 -0
  457. /package/dist/chunks/{chunk-WJ6QRVL6.js.map → chunk-PFQQ6YFF.js.map} +0 -0
  458. /package/dist/chunks/{chunk-CXW7I2S3.js.map → chunk-PHEL63BK.js.map} +0 -0
  459. /package/dist/chunks/{chunk-YR3TWNIV.js.map → chunk-PJORD4FZ.js.map} +0 -0
  460. /package/dist/chunks/{chunk-5ZLKTFU2.js.map → chunk-PSUJIMQV.js.map} +0 -0
  461. /package/dist/chunks/{chunk-TBGKPWCL.js.map → chunk-PWSMXR6B.js.map} +0 -0
  462. /package/dist/chunks/{chunk-PRRX5LNR.js.map → chunk-PYFAJB35.js.map} +0 -0
  463. /package/dist/chunks/{chunk-BWD2TUI4.js.map → chunk-PYFGTXFQ.js.map} +0 -0
  464. /package/dist/chunks/{chunk-BHQHTM3Z.js.map → chunk-QH4DQR57.js.map} +0 -0
  465. /package/dist/chunks/{chunk-TTKMQW6B.js.map → chunk-QR5VVGWU.js.map} +0 -0
  466. /package/dist/chunks/{chunk-UCML5ZXB.js.map → chunk-QR7GTBV3.js.map} +0 -0
  467. /package/dist/chunks/{chunk-T7ILM666.js.map → chunk-R5BEMFDZ.js.map} +0 -0
  468. /package/dist/chunks/{chunk-D4TXOX34.js.map → chunk-RQOE2MRO.js.map} +0 -0
  469. /package/dist/chunks/{chunk-6TUHWKXP.js.map → chunk-RZBIRLZ6.js.map} +0 -0
  470. /package/dist/chunks/{chunk-GTUTBTOV.js.map → chunk-SLLKDPGZ.js.map} +0 -0
  471. /package/dist/chunks/{chunk-6HYK4DDB.js.map → chunk-SXI6NW2H.js.map} +0 -0
  472. /package/dist/chunks/{chunk-R2KAESOM.js.map → chunk-SYJRI5A4.js.map} +0 -0
  473. /package/dist/chunks/{chunk-RKKU2RE4.js.map → chunk-T26HDLQS.js.map} +0 -0
  474. /package/dist/chunks/{chunk-WYA4QWWE.js.map → chunk-TBQQRYS2.js.map} +0 -0
  475. /package/dist/chunks/{chunk-GPTYDM26.js.map → chunk-TQZSXYON.js.map} +0 -0
  476. /package/dist/chunks/{chunk-D6PB3Z7Q.js.map → chunk-TSN7J4ZH.js.map} +0 -0
  477. /package/dist/chunks/{chunk-PZLPACNY.js.map → chunk-TWTZKA46.js.map} +0 -0
  478. /package/dist/chunks/{chunk-MF3SFDBW.js.map → chunk-U6DACADN.js.map} +0 -0
  479. /package/dist/chunks/{chunk-75YLZNZW.js.map → chunk-UDSY3L6M.js.map} +0 -0
  480. /package/dist/chunks/{chunk-WPGVZMSU.js.map → chunk-UOU7PGPZ.js.map} +0 -0
  481. /package/dist/chunks/{chunk-TSOZBRM6.js.map → chunk-UY5KPN7B.js.map} +0 -0
  482. /package/dist/chunks/{chunk-DEAG4G5J.js.map → chunk-V3DMBRE3.js.map} +0 -0
  483. /package/dist/chunks/{chunk-QBLHOG2F.js.map → chunk-V5K2AOLI.js.map} +0 -0
  484. /package/dist/chunks/{chunk-TTFPWGIU.js.map → chunk-VAJPCN3B.js.map} +0 -0
  485. /package/dist/chunks/{chunk-JECLB23L.js.map → chunk-VIURZHCB.js.map} +0 -0
  486. /package/dist/chunks/{chunk-IQ44C7Y3.js.map → chunk-VOR32IWQ.js.map} +0 -0
  487. /package/dist/chunks/{chunk-XNQY26AE.js.map → chunk-W3BDNKTN.js.map} +0 -0
  488. /package/dist/chunks/{chunk-JRBFL6WT.js.map → chunk-W5GDQFZS.js.map} +0 -0
  489. /package/dist/chunks/{chunk-FVIKYFYD.js.map → chunk-XWGWQBF7.js.map} +0 -0
  490. /package/dist/chunks/{chunk-PLCWCIL4.js.map → chunk-Y5NGMUDN.js.map} +0 -0
  491. /package/dist/chunks/{chunk-TMPP2DEY.js.map → chunk-YCODODZO.js.map} +0 -0
  492. /package/dist/chunks/{chunk-HG2PPCAE.js.map → chunk-YENBRA7T.js.map} +0 -0
  493. /package/dist/chunks/{chunk-HCQGZPVT.js.map → chunk-YHUAVEOM.js.map} +0 -0
  494. /package/dist/chunks/{chunk-4ENL4VUO.js.map → chunk-YPNF7YFU.js.map} +0 -0
  495. /package/dist/chunks/{chunk-IL4Y3JGT.js.map → chunk-ZCDOMHZU.js.map} +0 -0
  496. /package/dist/chunks/{chunk-BNLIRJ3M.js.map → chunk-ZPOMLH5G.js.map} +0 -0
  497. /package/dist/chunks/{cli-runtime-ZJKKIW4H.js.map → cli-runtime-5IXM6W6M.js.map} +0 -0
  498. /package/dist/chunks/{commands-TQH5DD22.js.map → commands-LOMIOXZ3.js.map} +0 -0
  499. /package/dist/chunks/{config-APYUJ5UW.js.map → config-UBOJ3N77.js.map} +0 -0
  500. /package/dist/chunks/{cost-5YV27U7F.js.map → cost-LM34ZHBI.js.map} +0 -0
  501. /package/dist/chunks/{crash-report-QVXU2YVL.js.map → crash-report-PTHJP6ZC.js.map} +0 -0
  502. /package/dist/chunks/{dist-AOT4CEP5.js.map → dist-3P6YD6AW.js.map} +0 -0
  503. /package/dist/chunks/{dist-H7CAJ3ZW.js.map → dist-3W2E4ZVU.js.map} +0 -0
  504. /package/dist/chunks/{dist-Z2HW2SJR.js.map → dist-C7M5OJAH.js.map} +0 -0
  505. /package/dist/chunks/{dist-2FSOLP72.js.map → dist-HJYAXRBL.js.map} +0 -0
  506. /package/dist/chunks/{dist-IZGKRIWL.js.map → dist-LZAIP6RQ.js.map} +0 -0
  507. /package/dist/chunks/{dist-J4UXFVYR.js.map → dist-TEFBDQUK.js.map} +0 -0
  508. /package/dist/chunks/{dist-PZYMYR7N.js.map → dist-Y4YXKFL6.js.map} +0 -0
  509. /package/dist/chunks/{dist-JHKRSGW6.js.map → dist-ZVUIWK64.js.map} +0 -0
  510. /package/dist/chunks/{doctor-CM6UPXG5.js.map → doctor-LL6FW4DE.js.map} +0 -0
  511. /package/dist/chunks/{entry-QQDPY6ZL.js.map → entry-QT6CMKBN.js.map} +0 -0
  512. /package/dist/chunks/{eval-GZA22B4I.js.map → eval-HKAAPPGO.js.map} +0 -0
  513. /package/dist/chunks/{extension-N5IQNKVZ.js.map → extension-55PWXBQY.js.map} +0 -0
  514. /package/dist/chunks/{home-I4FIB6FV.js.map → home-7KXFLNBX.js.map} +0 -0
  515. /package/dist/chunks/{homes-WTMMXQ6G.js.map → homes-WYHCCBK6.js.map} +0 -0
  516. /package/dist/chunks/{hooks-R42OTZDT.js.map → hooks-UZ46HYL4.js.map} +0 -0
  517. /package/dist/chunks/{hooks-report-K6VOPVBR.js.map → hooks-report-RD53ZGON.js.map} +0 -0
  518. /package/dist/chunks/{host-65UFBZJV.js.map → host-NUIEARM2.js.map} +0 -0
  519. /package/dist/chunks/{host-queries-L4PYE2BW.js.map → host-queries-OB7OWZI6.js.map} +0 -0
  520. /package/dist/chunks/{installed-list-7QIWVKLQ.js.map → installed-list-T3G757YK.js.map} +0 -0
  521. /package/dist/chunks/{learn-NZXLKYV4.js.map → learn-MTQXTX6E.js.map} +0 -0
  522. /package/dist/chunks/{learn-builtin-RC4XXVBS.js.map → learn-builtin-3SXUVV7J.js.map} +0 -0
  523. /package/dist/chunks/{lifecycle-NLCZ6OPA.js.map → lifecycle-MFXCFSJP.js.map} +0 -0
  524. /package/dist/chunks/{list-2U67CAWS.js.map → list-M6Y24N5J.js.map} +0 -0
  525. /package/dist/chunks/{live-CWJ2NWUQ.js.map → live-UNUQSBVZ.js.map} +0 -0
  526. /package/dist/chunks/{load-H52QQBVE.js.map → load-GA4OIEG4.js.map} +0 -0
  527. /package/dist/chunks/{logs-ZIW3QFU4.js.map → logs-LUPWFBWF.js.map} +0 -0
  528. /package/dist/chunks/{mcp-serve-ZC2OKIPP.js.map → mcp-serve-RQKZQNPI.js.map} +0 -0
  529. /package/dist/chunks/{message-command-IHZWL5GI.js.map → message-command-L5HAX56P.js.map} +0 -0
  530. /package/dist/chunks/{open-AHDQMVXI.js.map → open-D6QESFR2.js.map} +0 -0
  531. /package/dist/chunks/{operator-tools-P5R4TF6N.js.map → operator-tools-CFYHXAZS.js.map} +0 -0
  532. /package/dist/chunks/{output-schema-Q5RWHNKE.js.map → output-schema-WV5RUG66.js.map} +0 -0
  533. /package/dist/chunks/{pal-T42HU4AK.js.map → pal-JVR6ZLEI.js.map} +0 -0
  534. /package/dist/chunks/{peers-5RYEA7IA.js.map → peers-EK24T2HF.js.map} +0 -0
  535. /package/dist/chunks/{providers-I24HYZXG.js.map → providers-2CLIPXQ2.js.map} +0 -0
  536. /package/dist/chunks/{providers-BXXIM7EW.js.map → providers-RTRULUUS.js.map} +0 -0
  537. /package/dist/chunks/{pty-WVKM6ATI.js.map → pty-OHLKFJFA.js.map} +0 -0
  538. /package/dist/chunks/{resume-F7JEDBHI.js.map → resume-5OWRUFUL.js.map} +0 -0
  539. /package/dist/chunks/{resume-command-4I47WN7T.js.map → resume-command-HIIEMJAT.js.map} +0 -0
  540. /package/dist/chunks/{running-VID6BVT2.js.map → running-3BAWMUK4.js.map} +0 -0
  541. /package/dist/chunks/{schedule-75IZH76Z.js.map → schedule-OW54ANKO.js.map} +0 -0
  542. /package/dist/chunks/{send-QRYY2NCG.js.map → send-5NIU4WFY.js.map} +0 -0
  543. /package/dist/chunks/{send-person-VADQNJBN.js.map → send-person-RYBIVAML.js.map} +0 -0
  544. /package/dist/chunks/{setting-cli-O4YWOIU5.js.map → setting-cli-CHPHJSAM.js.map} +0 -0
  545. /package/dist/chunks/{skills-PEMVX5C3.js.map → skills-6DNVYWKR.js.map} +0 -0
  546. /package/dist/chunks/{start-check-EKRXJ5VE.js.map → start-check-MHUGGAYJ.js.map} +0 -0
  547. /package/dist/chunks/{startup-failure-2UJKPNMR.js.map → startup-failure-R2AIVZYU.js.map} +0 -0
  548. /package/dist/chunks/{state-X3MKUFYM.js.map → state-2WEGEDJ5.js.map} +0 -0
  549. /package/dist/chunks/{store-4OXWHFS5.js.map → store-MCRRV4BB.js.map} +0 -0
  550. /package/dist/chunks/{store-MK5IYBE5.js.map → store-RITSVC5A.js.map} +0 -0
  551. /package/dist/chunks/{store-QFNY4BV4.js.map → store-UFRLA47W.js.map} +0 -0
  552. /package/dist/chunks/{store-VRKKFOYW.js.map → store-WH3C3EPV.js.map} +0 -0
  553. /package/dist/chunks/{update-ELZEXYIX.js.map → update-3VXQAKVL.js.map} +0 -0
  554. /package/dist/chunks/{worktree-5CWUUWNO.js.map → worktree-6L5FLMVI.js.map} +0 -0
@@ -17,21 +17,24 @@ import {
17
17
  moveLegacyLocalConfigOnce,
18
18
  updateLocalSettings,
19
19
  writeLocalAllows
20
- } from "./chunk-QGBR42TV.js";
20
+ } from "./chunk-NVRUHQKC.js";
21
21
  import {
22
22
  isTrusted
23
- } from "./chunk-VWUTJ4EU.js";
23
+ } from "./chunk-CJBRIESJ.js";
24
+ import {
25
+ terminalDisplayText
26
+ } from "./chunk-I4GTRFPK.js";
24
27
  import {
25
28
  LEGACY_LOCAL_CONFIG_FILE,
26
29
  LOCAL_SETTINGS_FILE,
27
30
  foldRuleLists,
28
31
  parseRuleString,
29
32
  patternOf
30
- } from "./chunk-O4EILTV6.js";
33
+ } from "./chunk-DRYK66N3.js";
31
34
  import {
32
35
  compilePermissions,
33
36
  isPermissionEffect
34
- } from "./chunk-HKRUNZVI.js";
37
+ } from "./chunk-IWVJDG4L.js";
35
38
  import {
36
39
  formatSize,
37
40
  homePath,
@@ -39,11 +42,11 @@ import {
39
42
  } from "./chunk-GMUWAUKQ.js";
40
43
  import {
41
44
  cliLogger
42
- } from "./chunk-PRJO4XM3.js";
45
+ } from "./chunk-A42WH5C5.js";
43
46
  import {
44
47
  StateFileBusyError,
45
48
  StateFileUnreadableError
46
- } from "./chunk-F5W4TNCR.js";
49
+ } from "./chunk-AHV6BJED.js";
47
50
  import {
48
51
  AuthorizationGate,
49
52
  LOG_SECRET_PATTERNS,
@@ -60,7 +63,7 @@ import {
60
63
  resolveNamzuHome,
61
64
  resolvePermissionPreset,
62
65
  writesThroughRedirection
63
- } from "./chunk-QQ4S6MNH.js";
66
+ } from "./chunk-EDLBZSB2.js";
64
67
  import {
65
68
  __name
66
69
  } from "./chunk-76FLAFCG.js";
@@ -365,8 +368,178 @@ function fitCommand(command, limit) {
365
368
  }
366
369
  __name(fitCommand, "fitCommand");
367
370
 
371
+ // src/tui/sgr-colour.ts
372
+ var NAMES = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"];
373
+ function applyParams(from, params) {
374
+ const style = { ...from };
375
+ const codes = params === "" ? [0] : params.split(/[;:]/u).map((part) => Number(part || "0"));
376
+ for (let i = 0; i < codes.length; i++) {
377
+ const code = codes[i] ?? 0;
378
+ if (code === 0) {
379
+ for (const key of Object.keys(style)) delete style[key];
380
+ } else if (code === 1) style.bold = true;
381
+ else if (code === 2) style.dim = true;
382
+ else if (code === 3) style.italic = true;
383
+ else if (code === 7) style.inverse = true;
384
+ else if (code === 9) style.strike = true;
385
+ else if (code === 22) {
386
+ style.bold = void 0;
387
+ style.dim = void 0;
388
+ } else if (code === 23) style.italic = void 0;
389
+ else if (code === 27) style.inverse = void 0;
390
+ else if (code === 29) style.strike = void 0;
391
+ else if (code >= 30 && code <= 37) style.fg = NAMES[code - 30];
392
+ else if (code >= 90 && code <= 97) style.fg = `${NAMES[code - 90]}Bright`;
393
+ else if (code === 39) style.fg = void 0;
394
+ else if (code >= 40 && code <= 47) style.bg = NAMES[code - 40];
395
+ else if (code >= 100 && code <= 107) style.bg = `${NAMES[code - 100]}Bright`;
396
+ else if (code === 49) style.bg = void 0;
397
+ else if (code === 38 || code === 48) {
398
+ const mode = codes[i + 1];
399
+ let colour;
400
+ if (mode === 5) {
401
+ const n = codes[i + 2];
402
+ if (n !== void 0 && n >= 0 && n <= 255) colour = `ansi256(${n})`;
403
+ i += 2;
404
+ } else if (mode === 2) {
405
+ const [r, g, b] = [codes[i + 2], codes[i + 3], codes[i + 4]];
406
+ if ([r, g, b].every((v) => v !== void 0 && v >= 0 && v <= 255)) {
407
+ colour = `rgb(${r},${g},${b})`;
408
+ }
409
+ i += 4;
410
+ }
411
+ if (colour !== void 0) {
412
+ if (code === 38) style.fg = colour;
413
+ else style.bg = colour;
414
+ }
415
+ }
416
+ }
417
+ for (const key of Object.keys(style)) {
418
+ if (style[key] === void 0) delete style[key];
419
+ }
420
+ return style;
421
+ }
422
+ __name(applyParams, "applyParams");
423
+ function isDefault(style) {
424
+ return Object.keys(style).length === 0;
425
+ }
426
+ __name(isDefault, "isDefault");
427
+ function sgrOf(style) {
428
+ const codes = ["0"];
429
+ if (style.bold) codes.push("1");
430
+ if (style.dim) codes.push("2");
431
+ if (style.italic) codes.push("3");
432
+ if (style.inverse) codes.push("7");
433
+ if (style.strike) codes.push("9");
434
+ for (const [colour, base] of [
435
+ [style.fg, 38],
436
+ [style.bg, 48]
437
+ ]) {
438
+ if (colour === void 0) continue;
439
+ const index = NAMES.findIndex((name) => name === colour);
440
+ const bright = NAMES.findIndex((name) => `${name}Bright` === colour);
441
+ if (index >= 0) codes.push(String(base === 38 ? 30 + index : 40 + index));
442
+ else if (bright >= 0) codes.push(String(base === 38 ? 90 + bright : 100 + bright));
443
+ else {
444
+ const n = /^ansi256\((\d+)\)$/u.exec(colour);
445
+ const rgb = /^rgb\((\d+),(\d+),(\d+)\)$/u.exec(colour);
446
+ if (n) codes.push(`${base};5;${n[1]}`);
447
+ else if (rgb) codes.push(`${base};2;${rgb[1]};${rgb[2]};${rgb[3]}`);
448
+ }
449
+ }
450
+ return `\x1B[${codes.join(";")}m`;
451
+ }
452
+ __name(sgrOf, "sgrOf");
453
+ var UNFINISHED = /\u001b(?:\[[0-?]*[ -/]*|\][^\u0007\u001b]*\u001b?)?$/u;
454
+ var UNFINISHED_LIMIT = 256;
455
+ var TOKEN = (
456
+ // biome-ignore lint/suspicious/noControlCharactersInRegex: the escape byte is what this reads
457
+ /(?:\u001b|\u009b)\[([0-?]*)[ -/]*([@-~])|\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)|\u001b[@-Z\\-_]/gu
458
+ );
459
+ function colourLines(text) {
460
+ let source = text.replace(/\r\n/gu, "\n");
461
+ const open = UNFINISHED.exec(source);
462
+ if (open && source.length - open.index <= UNFINISHED_LIMIT) source = source.slice(0, open.index);
463
+ let style = {};
464
+ const lines = [];
465
+ let line = "";
466
+ const addText = /* @__PURE__ */ __name((piece) => {
467
+ const parts = piece.split("\n");
468
+ parts.forEach((part, index) => {
469
+ if (index > 0) {
470
+ lines.push(line);
471
+ line = isDefault(style) ? "" : sgrOf(style);
472
+ }
473
+ line += terminalDisplayText(part.replace(/\u001b/gu, ""));
474
+ });
475
+ }, "addText");
476
+ let last = 0;
477
+ for (const match of source.matchAll(TOKEN)) {
478
+ addText(source.slice(last, match.index));
479
+ last = match.index + match[0].length;
480
+ if (match[2] === "m" && match[1] !== void 0 && /^[0-9;:]*$/u.test(match[1])) {
481
+ style = applyParams(style, match[1]);
482
+ line += sgrOf(style);
483
+ }
484
+ }
485
+ addText(source.slice(last));
486
+ lines.push(line);
487
+ return lines;
488
+ }
489
+ __name(colourLines, "colourLines");
490
+ function colourLine(text) {
491
+ return colourLines(text).join(" ");
492
+ }
493
+ __name(colourLine, "colourLine");
494
+ var SGR = /\u001b\[([0-9;:]*)m/gu;
495
+ function sgrSpans(line) {
496
+ if (!line.includes("\x1B")) return line.length > 0 ? [{ text: line, style: {} }] : [];
497
+ const spans = [];
498
+ let style = {};
499
+ let last = 0;
500
+ for (const match of line.matchAll(SGR)) {
501
+ if (match.index > last) spans.push({ text: line.slice(last, match.index), style });
502
+ last = match.index + match[0].length;
503
+ style = applyParams(style, match[1] ?? "");
504
+ }
505
+ if (last < line.length) spans.push({ text: line.slice(last), style });
506
+ return spans;
507
+ }
508
+ __name(sgrSpans, "sgrSpans");
509
+ function plainOf(line) {
510
+ return line.includes("\x1B") ? line.replace(SGR, "") : line;
511
+ }
512
+ __name(plainOf, "plainOf");
513
+ function wrapColoured(line, wrap) {
514
+ if (!line.includes("\x1B")) return wrap(line);
515
+ const cells = [];
516
+ for (const span of sgrSpans(line)) {
517
+ for (const ch of span.text) cells.push({ ch, style: span.style });
518
+ }
519
+ const rows = wrap(cells.map((cell) => cell.ch).join(""));
520
+ const out = [];
521
+ let at = 0;
522
+ for (const row of rows) {
523
+ let built = "";
524
+ let current;
525
+ for (const ch of row) {
526
+ while (at < cells.length && cells[at]?.ch !== ch && /^\s$/u.test(cells[at]?.ch ?? "")) at++;
527
+ const cell = cells[at];
528
+ if (cell === void 0 || cell.ch !== ch) return rows;
529
+ if (current === void 0 || sgrOf(current) !== sgrOf(cell.style)) {
530
+ current = cell.style;
531
+ built += isDefault(current) ? "\x1B[0m" : sgrOf(current);
532
+ }
533
+ built += ch;
534
+ at++;
535
+ }
536
+ out.push(built);
537
+ }
538
+ return out;
539
+ }
540
+ __name(wrapColoured, "wrapColoured");
541
+
368
542
  // src/tui/tidy-tool-output.ts
369
- import { stripVTControlCharacters } from "node:util";
370
543
  var BACKGROUND_NOTE = "Running in the background (\u2193 to manage)";
371
544
  var CONTINUED_NOTE = "Continues in the background (\u2193 to manage)";
372
545
  function looksBinary(text) {
@@ -390,17 +563,18 @@ function tidyTerminalOutput(raw) {
390
563
  }
391
564
  let failure;
392
565
  const kept = [];
393
- for (const line of stripVTControlCharacters(raw).split("\n")) {
394
- if (/^NOTE: \d+ credential-shaped environment variable/.test(line)) continue;
395
- const exit = /^Error: Command exited with code (\d+)\s*$/.exec(line);
566
+ for (const line of colourLines(raw)) {
567
+ const plain = plainOf(line);
568
+ if (/^NOTE: \d+ credential-shaped environment variable/.test(plain)) continue;
569
+ const exit = /^Error: Command exited with code (\d+)\s*$/.exec(plain);
396
570
  if (exit) {
397
571
  failure = `Exited with code ${exit[1]}`;
398
572
  continue;
399
573
  }
400
574
  kept.push(line);
401
575
  }
402
- while (kept.length > 0 && kept[kept.length - 1]?.trim() === "") kept.pop();
403
- const output = kept.join("\n");
576
+ while (kept.length > 0 && plainOf(kept[kept.length - 1] ?? "").trim() === "") kept.pop();
577
+ const output = kept.map(plainOf).join("\n");
404
578
  const background = /^Started background job /.test(output);
405
579
  const code = failure ? /\d+/.exec(failure)?.[0] : void 0;
406
580
  const shell = {
@@ -436,11 +610,11 @@ function endedHow(facts) {
436
610
  __name(endedHow, "endedHow");
437
611
  var NOT_SHOWN_LINE = /^… \+([\d,]+) lines?$/;
438
612
  function windowLines(window) {
439
- const lines = window.head.length > 0 ? window.head.split("\n") : [];
613
+ const lines = window.head.length > 0 ? colourLines(window.head) : [];
440
614
  if (window.omittedLines) {
441
615
  lines.push(hiddenLinesHint(window.omittedLines, { canExpand: false }));
442
616
  }
443
- if (window.tail) lines.push(...window.tail.split("\n"));
617
+ if (window.tail) lines.push(...colourLines(window.tail));
444
618
  return lines;
445
619
  }
446
620
  __name(windowLines, "windowLines");
@@ -466,11 +640,11 @@ function tidyCommandOutput(facts, raw) {
466
640
  const sentence = `The command printed binary data (${formatSize(facts.binary.bytes)}), which is not shown.`;
467
641
  return withFailure(sentence, cell([], [], sentence));
468
642
  }
469
- const clean = /* @__PURE__ */ __name((window) => window && window.totalBytes > 0 ? windowLines(window).map((line) => stripVTControlCharacters(line)) : [], "clean");
643
+ const clean = /* @__PURE__ */ __name((window) => window && window.totalBytes > 0 ? windowLines(window) : [], "clean");
470
644
  const stdout = clean(facts.stdout);
471
645
  const stderr = clean(facts.stderr);
472
646
  if (stdout.length > 0 || stderr.length > 0) {
473
- return withFailure([...stdout, ...stderr].join("\n"), cell(stdout, stderr));
647
+ return withFailure([...stdout, ...stderr].map(plainOf).join("\n"), cell(stdout, stderr));
474
648
  }
475
649
  return withFailure(
476
650
  tidyTerminalOutput(raw).output,
@@ -597,6 +771,103 @@ function factsHeadline(facts) {
597
771
  }
598
772
  __name(factsHeadline, "factsHeadline");
599
773
 
774
+ // src/integrations/workflows/guidance.ts
775
+ var WORKFLOW_AUTHORING_SKILL = "workflow-authoring";
776
+ var WORKFLOW_AUTHORING_GUIDANCE = [
777
+ "# Writing a workflow script",
778
+ "",
779
+ "The `workflow` tool description gives the language: `meta`, `agent`, `parallel`, `pipeline`, `phase`, `log`,",
780
+ "`args` and `budget`. This page is how to design a script that earns its cost. Read it before you write one.",
781
+ "It never starts a run: only the operator's opt-in and approval do.",
782
+ "",
783
+ "## Decide the shape first",
784
+ "",
785
+ '- **Scale to what was asked.** "Find any bugs" is a few finders and one check per finding. "Audit this',
786
+ ' thoroughly" or "be comprehensive" is a larger finder pool, three to five independent refuters per',
787
+ " finding and a synthesis stage. When unsure on research, review or audit, lean toward thoroughness.",
788
+ "- **Two parallel units at least.** A workflow runs independent units side by side. With fewer than two (one",
789
+ " scope, one small fix, one file) do the work inline and say so in a sentence.",
790
+ "- **Hybrid: scout inline first.** When the work-list is not known (which files, which channels, what the",
791
+ " diff touches), list it yourself with one cheap shell or search call, then write the script over the",
792
+ " discovered list. Size the split from the counts: split a heavy area further, merge the empty ones. Do",
793
+ " not guess the split.",
794
+ "- **Common single-phase shapes.** Understand: parallel readers, each returning a structured map of one",
795
+ " area. Design: a judge panel and a scored synthesis. Review: pick the dimensions, find per dimension,",
796
+ " verify each finding adversarially. Research: a multi-modal sweep, a deep read of the best sources, a",
797
+ " synthesis. Migrate: discover the sites, change each in its own agent, verify the result.",
798
+ "- **Several in sequence.** For larger work run one workflow per phase and read each result before you",
799
+ " decide the next. You stay in the loop, and each run is one well-scoped fan-out.",
800
+ "",
801
+ "## Pipeline by default",
802
+ "",
803
+ "`pipeline(items, ...stages)` runs one chain per item with no barrier: item A can be verified while item B",
804
+ "is still being found. Use it unless you need a barrier. A barrier (finish a whole stage with",
805
+ "`parallel`, then use every result together) is right in three cases only:",
806
+ "",
807
+ "1. Dedup across all results before you spend verifier agents on them.",
808
+ "2. Exit early when the stage found nothing at all.",
809
+ "3. Compare items to each other (rank them, pick the best, find contradictions).",
810
+ "",
811
+ "Smell test: if stage two for item A is just as valid without stage one for item B, a barrier only waits.",
812
+ "When in doubt, pipeline.",
813
+ "",
814
+ "## Structured results, merged in code",
815
+ "",
816
+ "- Give every agent `opts.schema` (a JSON Schema) so it returns records, not prose. Merge, dedupe, sort and",
817
+ " count in plain JavaScript. Never paste one agent's free text into another agent's prompt as the merge.",
818
+ "- Always handle `null` (a failed or skipped agent) and filter it out.",
819
+ "- Return the full merged records (ids, file:line, verdicts, counts), not excerpts. When they would pass",
820
+ " the result cap, have agents write them to files and return the paths and the counts.",
821
+ "",
822
+ "## Quality patterns",
823
+ "",
824
+ "Use the ones the task needs; skip them for trivial or already verified work.",
825
+ "",
826
+ "- **Adversarial verify.** For each finding start several independent refuters, told to try to disprove it",
827
+ " and to answer `refuted` when unsure. The majority decides; with three, a finding survives when at",
828
+ " least two fail to refute it:",
829
+ ' `const votes = await parallel([1, 2, 3].map((n) => () => agent("Try to refute: " + claim + ". Answer',
830
+ ' refuted if unsure.", { label: "refute:" + id + ":" + n, schema: VERDICT })))`',
831
+ " `const survives = votes.filter((v) => v && !v.refuted).length >= 2`",
832
+ "- **Perspective-diverse verify.** Give each verifier a distinct lens (correctness, security, performance,",
833
+ " does it reproduce) instead of N identical refuters; they fail in different places.",
834
+ "- **Judge panel.** Generate several independent attempts from different angles (for example MVP first,",
835
+ " risk first, user first), score them with parallel judges, then write the synthesis from the winner and",
836
+ " graft the best ideas of the runners-up.",
837
+ "- **Loop until dry.** Keep starting finders until K rounds in a row return nothing new (K is two for a",
838
+ " normal job); a plain counter misses the tail. Dedup each round against everything seen so far, not only",
839
+ " against what was confirmed, or a finding a judge rejected comes back next round. Bound the loop with a",
840
+ " hard round cap and with `budget`.",
841
+ "- **Multi-modal sweep.** Several agents search the same space in different ways (by container, by",
842
+ " content, by entity, by time). Each is blind to what the others surface, which is the point.",
843
+ "- **Completeness critic.** A last agent asks what is missing: a mode not run, a claim not verified, a",
844
+ " source not read. What it finds becomes the next round of work.",
845
+ "",
846
+ "## Honest limits",
847
+ "",
848
+ "- **No silent caps.** When the script bounds coverage (top N, no retry, sampling, a round cap), `log()`",
849
+ " what was dropped and how many.",
850
+ "- **Model and effort per agent.** Leave `opts.model` out unless you are sure another tier fits; an agent",
851
+ ' inherits the session\'s model. Use `effort: "low"` for mechanical stages and a higher effort only for',
852
+ " the hardest verify and judge stages.",
853
+ "- **Concurrency and size.** Agents beyond the concurrency cap queue; at most 1000 start per run, and the run",
854
+ " reports any it did not start. Give every loop a hard iteration cap.",
855
+ "- **Resume.** Call `workflow` again with `{scriptPath, resumeFromRunId}`: agents whose prompt and options",
856
+ " are unchanged return their saved results, and the first one that differs runs again with everything",
857
+ " after it. Read `journal.jsonl` before you diagnose an empty result; saved results can be empty.",
858
+ "- **Plain JavaScript, not TypeScript.** Type annotations, interfaces and generics fail to parse.",
859
+ "- **Deterministic.** The same inputs must make the same `agent()` calls in the same order. `Date.now()`,",
860
+ " `new Date()` with no argument and `Math.random()` throw: pass a timestamp through `args`, and put the",
861
+ " index in the label or prompt for N independent samples.",
862
+ "",
863
+ "## Never",
864
+ "",
865
+ "- Start a run the operator did not opt into, or retry a script they declined.",
866
+ "- Leave an agent without a `label` of the form `kind:target`.",
867
+ "- Let a loop run without a hard cap, or a bounded sweep without a `log()` line saying what it left out.",
868
+ "- Keep a run going that can no longer change the answer: stop it with `stop_task`."
869
+ ].join("\n");
870
+
600
871
  // src/integrations/subagents/stop-guidance.ts
601
872
  var WORKFLOW_RUN_ID = /^w[0-9a-z]{8}$/;
602
873
  var STOP_WORK_GUIDANCE = "Background work you started is yours to end once it no longer serves the task: stop it when the person changed course, when a result already in hand answers the question, or when an earlier stage failed so the rest is pointless. Do not stop work that is only slow; a task agent_task_list labels stalled or dead is a candidate. Say in one sentence what you stopped and why.";
@@ -606,7 +877,11 @@ var STOP_TASK_DESCRIPTION = `Stop work you started in this conversation: an agen
606
877
  // src/integrations/workflows/offering.ts
607
878
  var WORKFLOW_TOOL_NAME = "workflow";
608
879
  var WORKFLOW_BACKGROUND_NOTE = "Running in the background \xB7 follow it with \u2193 or /tasks";
609
- var WORKFLOW_TOOL_DESCRIPTION = [
880
+ function workflowLaunchNote(sizeGuideline) {
881
+ return `Running in the background \xB7 /workflows to monitor${sizeGuideline === void 0 ? "" : ` \xB7 ${sizeGuideline} size (/config)`}`;
882
+ }
883
+ __name(workflowLaunchNote, "workflowLaunchNote");
884
+ var WORKFLOW_TOOL_DESCRIPTION_CORE = [
610
885
  `Run a workflow: a short JavaScript program you write once that starts many subagents, in order and in parallel, and returns one value. It runs in the background: this call returns once the first agent is requested, and one message arrives when the run ends. A script that fails before it requests any agent is an error of this call, and one that finishes without any returns its result here. Call it only after an explicit opt-in: the operator's message included the keyword "hypermode" or "workflow" (a note confirms it), hypermode is on for the session (a note confirms it), the operator asked for a workflow or multi-agent orchestration in their own words, they named a saved workflow to run, or the person asked to continue or resume a run of this conversation (resumeFromRunId). For any other task, even one that would clearly benefit from parallelism, do not call it; for a single subagent or a small fan-out, use the Agent tool. When hypermode is on, that is a standing opt-in for every substantive task, except that on an unclear request you ask one question first, and you work alone only on a conversational or trivial turn.`,
611
886
  "",
612
887
  "The script is confined: no files, no network, no commands, no timers, no imports. Its only power is agent(), which starts a subagent with the same tools, permissions, sandbox and budget the Agent tool gives. A prompt you pass is data for that subagent and cannot widen what it may do.",
@@ -621,7 +896,7 @@ var WORKFLOW_TOOL_DESCRIPTION = [
621
896
  "- pipeline(items, stage1, stage2, ...) runs one chain per item with no barrier between stages; a stage gets (prevResult, originalItem, index), where the first stage gets the item as prevResult, and an item whose stage gives null stops there. A stage that throws drops its item to null and the reason goes through log(), so filter the nulls; a misused hook in a stage fails the run, as in parallel().",
622
897
  "- phase(title) names the stage that the following agents belong to; inside parallel() or pipeline() pass opts.phase instead. Use the same titles as in meta.phases.",
623
898
  '- log(message) writes a progress line. args is exactly the JSON you pass in the args input of the call (undefined when you omit it). budget is { total, spent(), remaining() }: total is the token target the person typed (a standalone "+500k" in their message) or null when there is none; spent() is the tokens this run has used; remaining() is max(0, total - spent()), or Infinity with no target. The target is a hard ceiling: once spent() reaches total, agent() throws, so wrap loops in try/catch and guard them on budget.total (with no target remaining() is Infinity). Example: while (budget.total && budget.remaining() > 50_000) { ... }.',
624
- "- return a small JSON value: it is what you get back, capped at about 8000 characters. Have agents write large results to files and return the paths.",
899
+ "- return the result as structured data, not excerpts: it is what you get back, capped at about 8000 characters. Return the full merged records (ids, file:line, verdicts, counts), never a truncated slice of each agent's report that you would then have to fetch agent by agent. When the full result would be larger than the cap, have agents write it to files and return the paths plus the counts.",
625
900
  "",
626
901
  "Scripts must be deterministic: the same inputs make the same agent() calls in the same order. Date.now(), new Date() with no argument and Math.random() throw (they break resume): pass a timestamp through args, and for N independent samples put the index in the label or prompt. new Date(x), Date.parse and Date.UTC work.",
627
902
  "",
@@ -629,7 +904,7 @@ var WORKFLOW_TOOL_DESCRIPTION = [
629
904
  "",
630
905
  "Limits: a handful of agents run at once (the cap comes from the configuration; usually up to 16) and at most 1000 start per run (fewer if configured); a script that asks for more fails, so give any loop a hard iteration cap. The script may be up to 256 KiB and args 64 KiB, but the operator reads the script before it starts, so keep it as short as it can be: loops over lists, shared helpers, prompts built from args. Put long per-agent instructions in a file the agents read.",
631
906
  "",
632
- "Quality patterns, when hypermode is on or the task is large: adversarial verify (a second agent tries to disprove each finding), a judge panel (several agents score the same candidates, keep the consensus), loop until dry (repeat a sweep until a pass finds nothing new), and a completeness critic (a last agent lists what the others missed). Pick what fits; skip them for trivial or already verified work.",
907
+ "Design before you write: with fewer than two independent units (one scope, one small fix, one file) do not start a workflow, say so in a sentence and do the work yourself. When the work-list is not known, scout it inline first, then write the script over what you found. Give every agent a schema and merge in code, and return full records, not excerpts.",
633
908
  "",
634
909
  'Example call, one agent per package and one pass over what they found: {"script":"export const meta = { name: \\"check-stale-settings\\", description: \\"Check each package for stale settings\\", phases: [{ title: \\"Scan\\", detail: \\"one agent per package, side by side\\" }] }\\nconst found = await parallel(args.packages.map((p) => () => agent(\\"List stale settings in \\" + p, { label: \\"scan:\\" + p, phase: \\"Scan\\" })))\\nreturn found.filter(Boolean)","args":{"packages":["core","web"]}}.',
635
910
  "",
@@ -637,6 +912,16 @@ var WORKFLOW_TOOL_DESCRIPTION = [
637
912
  "",
638
913
  "Before it starts the operator sees the name, description, phases, limits and the script, and approves or declines. If they decline, do not retry with the same script; ask what to change."
639
914
  ].join("\n");
915
+ var WORKFLOW_GUIDANCE_POINTER = `Before writing a script, load the \`${WORKFLOW_AUTHORING_SKILL}\` skill with the skill tool: it holds the full authoring reference (how to scout, pipeline, verify, judge and loop, and what to leave out).`;
916
+ function workflowToolDescription(options) {
917
+ return [
918
+ WORKFLOW_TOOL_DESCRIPTION_CORE,
919
+ "",
920
+ options.skillAvailable ? WORKFLOW_GUIDANCE_POINTER : WORKFLOW_AUTHORING_GUIDANCE
921
+ ].join("\n");
922
+ }
923
+ __name(workflowToolDescription, "workflowToolDescription");
924
+ var WORKFLOW_TOOL_DESCRIPTION = workflowToolDescription({ skillAvailable: false });
640
925
  function workflowRefusal(turn) {
641
926
  if (turn.mode === "auto" || turn.mode === "bypass" || turn.interactive) return void 0;
642
927
  return "A workflow starts many agents on one decision, so a person has to approve it first. This session has nobody to ask and is not set to run without asking, so no workflow was started. Run it from the terminal, or start the session with --permission-mode bypass.";
@@ -2169,6 +2454,11 @@ export {
2169
2454
  workingDirectoryProblem,
2170
2455
  withoutCdToCwd,
2171
2456
  fitCommand,
2457
+ colourLines,
2458
+ colourLine,
2459
+ sgrSpans,
2460
+ plainOf,
2461
+ wrapColoured,
2172
2462
  tidyTerminalOutput,
2173
2463
  NOT_SHOWN_LINE,
2174
2464
  tidyCommandOutput,
@@ -2193,9 +2483,11 @@ export {
2193
2483
  SubagentActivityMonitor,
2194
2484
  WORKFLOW_RUN_ID,
2195
2485
  STOP_TASK_DESCRIPTION,
2486
+ WORKFLOW_AUTHORING_SKILL,
2196
2487
  WORKFLOW_TOOL_NAME,
2197
2488
  WORKFLOW_BACKGROUND_NOTE,
2198
- WORKFLOW_TOOL_DESCRIPTION,
2489
+ workflowLaunchNote,
2490
+ workflowToolDescription,
2199
2491
  workflowRefusal,
2200
2492
  ruleEntries,
2201
2493
  renderRules,
@@ -2219,4 +2511,4 @@ export {
2219
2511
  KEYWORD_COMMANDS,
2220
2512
  parseSlash
2221
2513
  };
2222
- //# sourceMappingURL=chunk-EWPGU4HH.js.map
2514
+ //# sourceMappingURL=chunk-Q5H7EHCH.js.map