@qwen-code/qwen-code 0.20.0-nightly.20260721.cda0e0348 → 0.20.0-preview.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 (328) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  2. package/bundled/qc-helper/docs/features/auto-mode.md +19 -16
  3. package/bundled/qc-helper/docs/features/sub-agents.md +16 -7
  4. package/bundled/qc-helper/docs/integration-github-action.md +9 -9
  5. package/bundled/review/DESIGN.md +2 -2
  6. package/bundled/review/SKILL.md +4 -4
  7. package/chunks/{MaxSizedBox-EE76OHAP.js → MaxSizedBox-53BTJ3JK.js} +41 -34
  8. package/chunks/{StandaloneSessionPicker-WZH4PC3K.js → StandaloneSessionPicker-VMFIXQ44.js} +57 -50
  9. package/chunks/{acpAgent-2ATF4LMP.js → acpAgent-5WYAVSFG.js} +1135 -428
  10. package/chunks/{agent-KTOOFWMV.js → agent-44FM7PBX.js} +37 -30
  11. package/chunks/agent-headless-CDBMKM44.js +68 -0
  12. package/chunks/{anthropicContentGenerator-W4JLNYWQ.js → anthropicContentGenerator-NMSS7IMV.js} +13 -12
  13. package/chunks/{artifact-tool-WBCAMD3O.js → artifact-tool-56T5IMBP.js} +3 -3
  14. package/chunks/{askUserQuestion-6DZC4UV5.js → askUserQuestion-E25OBIC2.js} +3 -3
  15. package/chunks/{bridge-T4TLAZSJ.js → bridge-IQZT3KU2.js} +42 -35
  16. package/chunks/{build-SSCNEHZZ.js → build-GHIZ4MSZ.js} +1 -1
  17. package/chunks/{ca-ISKASTR5.js → ca-N6VVUFVB.js} +5 -1
  18. package/chunks/{channel-worker-group-QZV2SP5U.js → channel-worker-group-LFBT7K64.js} +3 -3
  19. package/chunks/{channel-worker-manager-3GMAU45H.js → channel-worker-manager-3RUPERG2.js} +3 -3
  20. package/chunks/{channel-worker-supervisor-QCXSXCRY.js → channel-worker-supervisor-A3KVATD3.js} +2 -2
  21. package/chunks/{chunk-OV2KB55J.js → chunk-22OH7L7I.js} +5 -5
  22. package/chunks/chunk-2RFKHEXL.js +74 -0
  23. package/chunks/{chunk-KRI4VCHX.js → chunk-45AIVIUL.js} +9 -9
  24. package/chunks/{chunk-2GFRA3MN.js → chunk-45DNGJKC.js} +3 -3
  25. package/chunks/{chunk-JD3MKVKL.js → chunk-4K56OJFJ.js} +1 -1
  26. package/chunks/{chunk-KTUQMDEP.js → chunk-4K7VDKAD.js} +1 -1
  27. package/chunks/{chunk-QKYTTBYW.js → chunk-4LVZNIDO.js} +1 -1
  28. package/chunks/{chunk-ZEOZL37W.js → chunk-57FIIFJN.js} +1 -1
  29. package/chunks/{chunk-6EFTQYW7.js → chunk-5I5BM454.js} +1 -1
  30. package/chunks/{chunk-JR6UJ24K.js → chunk-5JX7FPHW.js} +2 -2
  31. package/chunks/{chunk-25Y6JSH2.js → chunk-5MZSD2JX.js} +6 -6
  32. package/chunks/{chunk-GPILFVPY.js → chunk-66RKDODM.js} +1 -1
  33. package/chunks/{chunk-L4YSPHR4.js → chunk-6AWRQ4T2.js} +8 -6
  34. package/chunks/{chunk-GMGDLUC7.js → chunk-6IL7KRLE.js} +1 -1
  35. package/chunks/{chunk-JQMBPGOU.js → chunk-6NHK6HS7.js} +3 -3
  36. package/chunks/{chunk-EDMGFJ3E.js → chunk-6OHCY3OB.js} +2 -2
  37. package/chunks/chunk-6PVPNMXU.js +29 -0
  38. package/chunks/{chunk-NO6XTCYT.js → chunk-6RQ5IPUX.js} +18366 -16879
  39. package/chunks/{chunk-BDBMYST4.js → chunk-6X4GWOPW.js} +1 -1
  40. package/chunks/chunk-7362QS5B.js +2256 -0
  41. package/chunks/{chunk-USTF7LPI.js → chunk-7KZ2KYAD.js} +27 -23
  42. package/chunks/{chunk-AYCDXHZB.js → chunk-7Z6JQEL6.js} +1 -1
  43. package/chunks/{chunk-ABIL4ZQU.js → chunk-A7CUSHP7.js} +1 -1
  44. package/chunks/{chunk-246TW4IX.js → chunk-BEKZWVJJ.js} +3 -373
  45. package/chunks/{chunk-LC5CAVMS.js → chunk-BKZEHVPV.js} +171 -169
  46. package/chunks/{chunk-4CWPMWCD.js → chunk-BRHHXGWL.js} +6 -4
  47. package/chunks/{chunk-AY3CSB6F.js → chunk-BXXWWCLA.js} +4 -4
  48. package/chunks/{chunk-G45NOBV7.js → chunk-C3YZ5CLY.js} +7 -6
  49. package/chunks/{chunk-XCHUDLER.js → chunk-CHLNJN3C.js} +1 -1
  50. package/chunks/{chunk-JRW46GQX.js → chunk-CJTAUXKG.js} +3 -3
  51. package/chunks/{chunk-KTNIZG2C.js → chunk-CMRYLH67.js} +2 -2
  52. package/chunks/{chunk-WQQDJE2P.js → chunk-DKZISEDB.js} +54 -51
  53. package/chunks/{chunk-2ITGJJE2.js → chunk-DORJSBMF.js} +6 -6
  54. package/chunks/{chunk-5SCI6E3E.js → chunk-E4IMU4Y5.js} +1 -1
  55. package/chunks/{chunk-7KGXAXF7.js → chunk-E5MVGARW.js} +1 -1
  56. package/chunks/{chunk-FYA3Y5JR.js → chunk-EJFHUF3D.js} +5 -5
  57. package/chunks/{chunk-CG2HPAVD.js → chunk-EPN5MKRH.js} +2 -2
  58. package/chunks/{chunk-NEEB7UEN.js → chunk-FFFM6NJV.js} +1 -2
  59. package/chunks/chunk-FMXMKPI5.js +1780 -0
  60. package/chunks/{chunk-FEOZBUMT.js → chunk-FODK6UMO.js} +0 -27
  61. package/chunks/{chunk-DZZIOIVF.js → chunk-FSXCGBXB.js} +1 -1
  62. package/chunks/chunk-GLNBDYUX.js +38 -0
  63. package/chunks/{chunk-6MC5ASQK.js → chunk-GOWMC4CS.js} +4 -4
  64. package/chunks/{chunk-OONJNQ42.js → chunk-GPSKDNEE.js} +3 -3
  65. package/chunks/{chunk-W3BKN3LO.js → chunk-GZBHRTNM.js} +1 -1
  66. package/chunks/{chunk-XVVH63JG.js → chunk-H4AR2JQF.js} +3 -3
  67. package/chunks/{chunk-LWQ4IAOJ.js → chunk-H4OWOFZL.js} +2 -2
  68. package/chunks/chunk-HTR4WV6U.js +327 -0
  69. package/chunks/{chunk-IYZENXFW.js → chunk-IE7TPOXP.js} +1 -1
  70. package/chunks/{chunk-R3VZNHRX.js → chunk-IT27F3ES.js} +290 -80
  71. package/chunks/{chunk-5JX5EWR5.js → chunk-J3VSRG5Y.js} +61 -21
  72. package/chunks/{chunk-R5N7NF5D.js → chunk-J63IP5ZT.js} +7 -7
  73. package/chunks/{chunk-G45X5TRN.js → chunk-JCW2R7WC.js} +1 -72
  74. package/chunks/{chunk-U4VGYZN7.js → chunk-JD5FHQ3N.js} +3 -3
  75. package/chunks/{chunk-5WG2K5RH.js → chunk-JIHHXJFH.js} +90 -31
  76. package/chunks/{chunk-AWVS63WA.js → chunk-JJEFX6U5.js} +28 -1766
  77. package/chunks/{chunk-5PZ6R37W.js → chunk-JT7HACMQ.js} +2 -2
  78. package/chunks/{chunk-2GOPPEHK.js → chunk-JWJVZHT5.js} +2 -2
  79. package/chunks/{chunk-FZVSFBNW.js → chunk-JYS55H6Z.js} +41 -1
  80. package/chunks/{chunk-6DHWO5ZF.js → chunk-K4VB66QF.js} +11 -11
  81. package/chunks/{chunk-EIAK6Q2B.js → chunk-KHOVYUHX.js} +2 -2
  82. package/chunks/{chunk-2CWOJ2FA.js → chunk-KNTYRZD4.js} +8 -8
  83. package/chunks/{chunk-ACW3VNUE.js → chunk-KQQ757OQ.js} +1 -1
  84. package/chunks/chunk-KWK7UE6L.js +6194 -0
  85. package/chunks/{chunk-OOCI5VVU.js → chunk-LIZRAKPB.js} +1 -1
  86. package/chunks/{chunk-4RA7PWIY.js → chunk-LMQNDPVP.js} +3 -3
  87. package/chunks/chunk-M7WBGLYP.js +151 -0
  88. package/chunks/chunk-NABLFI57.js +82 -0
  89. package/chunks/{chunk-EZVDJFZ7.js → chunk-NPQDJGKU.js} +1 -1
  90. package/chunks/{chunk-GH7OEOYU.js → chunk-NYPUWHHC.js} +4 -4
  91. package/chunks/{chunk-DMRO4GU2.js → chunk-OAGG6CRR.js} +1 -1
  92. package/chunks/chunk-OQ5SYCPE.js +10017 -0
  93. package/chunks/{chunk-C27BYUX6.js → chunk-OQB4EXO4.js} +14 -11
  94. package/chunks/chunk-OZYV6F53.js +391 -0
  95. package/chunks/{chunk-EAUYY7SS.js → chunk-Q2YKNMLS.js} +3 -3
  96. package/chunks/{chunk-PYNCSQSI.js → chunk-Q6DEGTYO.js} +50 -1493
  97. package/chunks/{chunk-PBATSWUQ.js → chunk-QBUDF33N.js} +1 -1
  98. package/chunks/{chunk-32F7BZSK.js → chunk-QD6BRERJ.js} +2 -2
  99. package/chunks/{chunk-6RVJRVQR.js → chunk-QF4DPYPH.js} +1 -1
  100. package/chunks/{chunk-BVLROR2T.js → chunk-QLJUC7TG.js} +1 -1
  101. package/chunks/{chunk-UEY4AYUL.js → chunk-QNLNLENL.js} +2 -2
  102. package/chunks/{chunk-XZOBDSDG.js → chunk-QTROYZUC.js} +83 -39
  103. package/chunks/{chunk-BWK3FX3K.js → chunk-RAUHV362.js} +3 -3
  104. package/chunks/{chunk-JPRLCXAO.js → chunk-RUNR5DAE.js} +4 -4
  105. package/chunks/{chunk-RFIAR4YL.js → chunk-RV4C2ZFG.js} +1 -1
  106. package/chunks/{chunk-E5QFCC4X.js → chunk-RWCQJC5W.js} +51 -35
  107. package/chunks/{chunk-BUKOHGBE.js → chunk-S4BT3PX3.js} +3 -3
  108. package/chunks/{chunk-PFKNXN67.js → chunk-SOMSZ6W3.js} +13 -8
  109. package/chunks/{chunk-JNWZQ27S.js → chunk-SP5WRGVG.js} +3 -3
  110. package/chunks/{chunk-FSL5W5TI.js → chunk-T2L47JJK.js} +3 -3
  111. package/chunks/{chunk-TB6UDU4T.js → chunk-THJNPLI4.js} +16 -16
  112. package/chunks/chunk-TJQXJJX7.js +121 -0
  113. package/chunks/chunk-U7ZFW55U.js +2098 -0
  114. package/chunks/{chunk-W7H223ZZ.js → chunk-UGYMA4EI.js} +1 -1
  115. package/chunks/{chunk-X6YQWCIJ.js → chunk-UH3WSE5L.js} +13 -1
  116. package/chunks/{chunk-WRRF6TEQ.js → chunk-VHYCUGOT.js} +5 -1
  117. package/chunks/{chunk-LLDGOZMJ.js → chunk-VI7UU7ZI.js} +4 -4
  118. package/chunks/{chunk-IM2A6YO3.js → chunk-VLBJ7ZUG.js} +1 -1
  119. package/chunks/{chunk-CUJX3F4X.js → chunk-VTKWURCJ.js} +5 -5
  120. package/chunks/{chunk-R3VWUU2E.js → chunk-VYPFXUCB.js} +1 -1
  121. package/chunks/chunk-WHGVTP7Q.js +1049 -0
  122. package/chunks/{chunk-5YVZ2XLV.js → chunk-X6KLM4LZ.js} +8 -8
  123. package/chunks/{chunk-D2VIDMVM.js → chunk-X6N25LXS.js} +2 -2
  124. package/chunks/{chunk-B452RETY.js → chunk-XFWD3PCA.js} +1 -1
  125. package/chunks/chunk-XHATNRQA.js +1500 -0
  126. package/chunks/{chunk-YGIUIIIF.js → chunk-XP32LURS.js} +3 -3
  127. package/chunks/{chunk-FCUUJKZF.js → chunk-YDLVKCZJ.js} +496 -278
  128. package/chunks/{chunk-OP4MOGXF.js → chunk-YM3SZTH4.js} +8 -1
  129. package/chunks/{chunk-GKY2OJ7R.js → chunk-ZHERRXZJ.js} +1 -1
  130. package/chunks/chunk-ZJVVETCV.js +20600 -0
  131. package/chunks/{computer-use-M6MGRJF2.js → computer-use-FMEBQMCB.js} +42 -35
  132. package/chunks/{config-utils-MOGE4EVB.js → config-utils-WYUQ7II4.js} +1 -1
  133. package/chunks/contextCommand-5YK3QNNJ.js +73 -0
  134. package/chunks/{create-sub-session-P26FE5GG.js → create-sub-session-AZ77LBL3.js} +3 -3
  135. package/chunks/{create-sub-session-MB35IHCR.js → create-sub-session-MLELTOCW.js} +37 -30
  136. package/chunks/{cron-create-JWFHBDRQ.js → cron-create-KTWJM7QT.js} +5 -5
  137. package/chunks/{cron-delete-GDX4E26G.js → cron-delete-2P3I5ULL.js} +5 -5
  138. package/chunks/{cron-list-USMAIWPT.js → cron-list-PXDPGEDQ.js} +5 -5
  139. package/chunks/daemon-status-provider-FXMOD242.js +81 -0
  140. package/chunks/{de-I7ZIYXZC.js → de-4IBXM7CN.js} +5 -1
  141. package/chunks/{dist-VGJTZL4E.js → dist-XRYV6TJP.js} +32 -3
  142. package/chunks/{earlyInputCapture-7QJX25AC.js → earlyInputCapture-N3J42S2G.js} +38 -31
  143. package/chunks/{edit-BTPQWGAA.js → edit-T6GO7VPW.js} +42 -37
  144. package/chunks/{en-XE34GKAA.js → en-USMCCJAJ.js} +5 -1
  145. package/chunks/{enter-worktree-N3SEYKOO.js → enter-worktree-OL3FMR3A.js} +42 -35
  146. package/chunks/{enterPlanMode-TN2JV5MY.js → enterPlanMode-LEP7BSBX.js} +42 -35
  147. package/chunks/{environment-HP6RK262.js → environment-6LNBH2LJ.js} +39 -32
  148. package/chunks/{errors-VHGRDDOQ.js → errors-IM3H4DNG.js} +39 -32
  149. package/chunks/{exit-worktree-FI3SQY3U.js → exit-worktree-6MOANJMY.js} +42 -35
  150. package/chunks/{exitPlanMode-NZWRVIIY.js → exitPlanMode-VLBSWDJK.js} +42 -35
  151. package/chunks/{fast-path-EGP7AXNR.js → fast-path-3Z3JY4BL.js} +3 -3
  152. package/chunks/{fast-path-settings-DAOVFADC.js → fast-path-settings-XB3CPUJT.js} +2 -2
  153. package/chunks/{fr-X7KDVZIY.js → fr-WVHEBDDB.js} +5 -1
  154. package/chunks/{gemini-AN5YMD5O.js → gemini-VDE6O6CX.js} +89 -82
  155. package/chunks/{geminiContentGenerator-ABTMU4FE.js → geminiContentGenerator-NN4ZWALY.js} +5 -5
  156. package/chunks/{getMachineId-bsd-EXV7SWPA.js → getMachineId-bsd-QFVLPUPT.js} +1 -1
  157. package/chunks/{getMachineId-darwin-IUOMFXU3.js → getMachineId-darwin-DGMQQE2E.js} +1 -1
  158. package/chunks/{getMachineId-linux-K7XJYFHL.js → getMachineId-linux-R4Z6CSWC.js} +1 -1
  159. package/chunks/{getMachineId-unsupported-EA5FDRJ6.js → getMachineId-unsupported-Z3SBVBUV.js} +1 -1
  160. package/chunks/{getMachineId-win-KBA6RAI5.js → getMachineId-win-SCK5UFDT.js} +1 -1
  161. package/chunks/{glob-5YABOPJB.js → glob-7AZHIY3Z.js} +42 -35
  162. package/chunks/{grep-U67FKUJT.js → grep-E2KEORSD.js} +42 -35
  163. package/chunks/handleAutoUpdate-BCNVTQWW.js +74 -0
  164. package/chunks/{i18n-GMQV324P.js → i18n-VP4NCTZN.js} +38 -31
  165. package/chunks/initializer-5UB4SRPK.js +79 -0
  166. package/chunks/installationInfo-LNYJCXN3.js +73 -0
  167. package/chunks/{ja-2ICT3KXF.js → ja-KY4ROZTE.js} +5 -1
  168. package/chunks/{keychain-token-storage-DWRJMNH3.js → keychain-token-storage-6ACJDYIB.js} +3 -3
  169. package/chunks/list-NIZ77KPE.js +82 -0
  170. package/chunks/loadedSettingsAdapter-IQPRO2SO.js +76 -0
  171. package/chunks/{loop-wakeup-5GLTUBHA.js → loop-wakeup-RNMRVA66.js} +6 -6
  172. package/chunks/{ls-FHBY3Y7I.js → ls-J2ZI5XYK.js} +5 -5
  173. package/chunks/{lsp-B6VMEW6Y.js → lsp-UMS3NUB5.js} +3 -3
  174. package/chunks/managed-npm-update-GFRDCD77.js +333 -0
  175. package/chunks/mcp-TCUL7LT2.js +76 -0
  176. package/chunks/{monitor-Z7NZNNRC.js → monitor-NDYKU5VS.js} +42 -35
  177. package/chunks/nonInteractiveCli-UHSHJDFD.js +133 -0
  178. package/chunks/{notebook-edit-GFOYAQAZ.js → notebook-edit-GF3HSMXN.js} +43 -38
  179. package/chunks/{openaiContentGenerator-XAAYV6WR.js → openaiContentGenerator-GE2I3C2T.js} +22 -17
  180. package/chunks/{pidfile-ILI37KRQ.js → pidfile-KS4IGGNX.js} +38 -31
  181. package/chunks/{processUtils-LIPJMLVZ.js → processUtils-TEQQ47A2.js} +2 -2
  182. package/chunks/{pt-JJ4XPIBP.js → pt-OK455PLH.js} +5 -1
  183. package/chunks/{qwenContentGenerator-DLJ3KKGZ.js → qwenContentGenerator-NDYOEIUY.js} +44 -35
  184. package/chunks/{qwenOAuth2-J47FU5PW.js → qwenOAuth2-CXDOBPSK.js} +18 -15
  185. package/chunks/{read-file-LCQ2KNNP.js → read-file-QDVJX75S.js} +13 -11
  186. package/chunks/{read-mcp-resource-AKCL7I43.js → read-mcp-resource-F6HYMDUY.js} +3 -3
  187. package/chunks/{record-artifact-PEUB7727.js → record-artifact-7GCFLDD7.js} +3 -3
  188. package/chunks/{resumeHistoryUtils-PSCSAKA6.js → resumeHistoryUtils-5EAQ76W4.js} +43 -36
  189. package/chunks/ripGrep-WANMXNVT.js +66 -0
  190. package/chunks/{ru-STR4KTW7.js → ru-7SPDGMGD.js} +5 -1
  191. package/chunks/{run-qwen-serve-DQ5ZIR36.js → run-qwen-serve-TC6M3WTJ.js} +85 -80
  192. package/chunks/{runtime-6MQFF2A6.js → runtime-BB73E3Z3.js} +45 -38
  193. package/chunks/{scheduler-K4S7NY3G.js → scheduler-NDU5OFSJ.js} +37 -30
  194. package/chunks/sdk-exporters-grpc-ETLH47EP.js +23214 -0
  195. package/chunks/sdk-exporters-http-T3POX73F.js +563 -0
  196. package/chunks/sdk-impl-NSLPDH6I.js +9193 -0
  197. package/chunks/{send-message-3RHE7HSM.js → send-message-PYIJ2PZL.js} +6 -4
  198. package/chunks/{serve-JFAAPC5J.js → serve-BTIRWZJ4.js} +43 -36
  199. package/chunks/{server-QB6CHRZN.js → server-JKAQBE2E.js} +277 -208
  200. package/chunks/{session-FKPVXAAB.js → session-66QFVVDS.js} +81 -74
  201. package/chunks/{settings-CADELKSU.js → settings-NBN6GY7E.js} +46 -39
  202. package/chunks/{shell-EON6WVVH.js → shell-JDSLAQVH.js} +37 -30
  203. package/chunks/{skill-FKSYXJ5U.js → skill-TNMHTO3C.js} +24 -20
  204. package/chunks/{spawnChannel-VM5IHLJO.js → spawnChannel-TFLHHXOC.js} +39 -32
  205. package/chunks/{src-Q4XB6SVD.js → src-YFXMPRBL.js} +254 -210
  206. package/chunks/{standalone-update-KGZHPBMA.js → standalone-update-2CQVQRSC.js} +39 -32
  207. package/chunks/{startInteractiveUI-EYDJIIIZ.js → startInteractiveUI-6C6PENRW.js} +370 -266
  208. package/chunks/{syntheticOutput-FG5PQKIR.js → syntheticOutput-H7RTI5KL.js} +4 -4
  209. package/chunks/{task-create-HX32YXO7.js → task-create-7474AJJD.js} +10 -8
  210. package/chunks/{task-list-QWSY4ZIU.js → task-list-633HGOIB.js} +6 -6
  211. package/chunks/{task-stop-GWC6UWAL.js → task-stop-MNUGHPIA.js} +3 -3
  212. package/chunks/{task-update-NCTAB73Q.js → task-update-66GQB5LI.js} +10 -8
  213. package/chunks/{team-create-CYP3YKYT.js → team-create-IPBHD26Z.js} +42 -35
  214. package/chunks/{team-delete-KK37HTOG.js → team-delete-BB3CG3QF.js} +6 -6
  215. package/chunks/{team-plan-approval-5LXIFKNV.js → team-plan-approval-WIGEJXXM.js} +42 -35
  216. package/chunks/theme-manager-OZYKJG3W.js +70 -0
  217. package/chunks/{todoWrite-ERCAMLFS.js → todoWrite-KRAUN54W.js} +5 -5
  218. package/chunks/{tool-search-Q27QHQU3.js → tool-search-J3CBYJRB.js} +21 -17
  219. package/chunks/total-session-admission-CNBQRM44.js +76 -0
  220. package/chunks/{trustedFolders-C6664IQC.js → trustedFolders-5FJRCHGN.js} +38 -31
  221. package/chunks/{update-relaunch-QC3E4FZW.js → update-relaunch-S5APSFJS.js} +13 -13
  222. package/chunks/{updateCheck-MVUKJMBX.js → updateCheck-BPSMOZXS.js} +46 -34
  223. package/chunks/{useAutoAcceptIndicator-J234IFIS.js → useAutoAcceptIndicator-WZVJ52U3.js} +47 -40
  224. package/chunks/{validateNonInterActiveAuth-YPPEKX4N.js → validateNonInterActiveAuth-64SVMELJ.js} +75 -68
  225. package/chunks/{version-5IXFQ4PT.js → version-SQL27GUA.js} +1 -1
  226. package/chunks/{web-fetch-L62NQVKN.js → web-fetch-K7QCHIOJ.js} +100 -41
  227. package/chunks/web-search-KQPQFM7A.js +731 -0
  228. package/chunks/{workflow-6MHBBFQU.js → workflow-BFTW72A5.js} +47 -39
  229. package/chunks/workspace-providers-status-4PLI2VFC.js +79 -0
  230. package/chunks/{workspace-registration-store-P6QHCSMU.js → workspace-registration-store-VAVPVIF3.js} +2 -2
  231. package/chunks/workspace-registry-I4ZRHGBS.js +80 -0
  232. package/chunks/workspace-service-RXYBWBDJ.js +91 -0
  233. package/chunks/workspace-skills-status-35Z2FU4I.js +78 -0
  234. package/chunks/write-file-KCL5RI2I.js +66 -0
  235. package/chunks/{zh-TW-4RR3YHNN.js → zh-TW-BM47YBFH.js} +5 -1
  236. package/chunks/{zh-6ANG2HTL.js → zh-WY5DWYZD.js} +5 -1
  237. package/cli-entry.js +164 -12
  238. package/cli.js +18 -11
  239. package/locales/ca.js +10 -3
  240. package/locales/de.js +8 -2
  241. package/locales/en.js +8 -2
  242. package/locales/fr.js +8 -2
  243. package/locales/ja.js +8 -2
  244. package/locales/pt.js +8 -2
  245. package/locales/ru.js +8 -2
  246. package/locales/zh-TW.js +8 -2
  247. package/locales/zh.js +8 -2
  248. package/package.json +3 -3
  249. package/web-shell/assets/{arc-B0iTWRo2.js → arc-ByltRugA.js} +1 -1
  250. package/web-shell/assets/{architectureDiagram-3BPJPVTR-DSQP4-9D.js → architectureDiagram-3BPJPVTR-CCRTto5d.js} +1 -1
  251. package/web-shell/assets/{blockDiagram-GPEHLZMM-BNPVXVT3.js → blockDiagram-GPEHLZMM-Jfy36u1L.js} +1 -1
  252. package/web-shell/assets/{c4Diagram-AAUBKEIU-DEHfJFiD.js → c4Diagram-AAUBKEIU-4d5FfEZ0.js} +1 -1
  253. package/web-shell/assets/channel-4N2UIFcG.js +1 -0
  254. package/web-shell/assets/{chunk-2J33WTMH-VZ0uL1p9.js → chunk-2J33WTMH-BPwxCEro.js} +1 -1
  255. package/web-shell/assets/{chunk-4BX2VUAB-D5TKmvwG.js → chunk-4BX2VUAB-jY7ZmJWY.js} +1 -1
  256. package/web-shell/assets/{chunk-55IACEB6-BDW1Lcq-.js → chunk-55IACEB6-C98HgCsS.js} +1 -1
  257. package/web-shell/assets/{chunk-727SXJPM-Cj4h85iM.js → chunk-727SXJPM-cDu-ge-q.js} +1 -1
  258. package/web-shell/assets/{chunk-AQP2D5EJ-5LeqiOhZ.js → chunk-AQP2D5EJ-BKdJwxXK.js} +1 -1
  259. package/web-shell/assets/{chunk-FMBD7UC4-BaTgsco7.js → chunk-FMBD7UC4-DnuxqwMu.js} +1 -1
  260. package/web-shell/assets/{chunk-ND2GUHAM-t3uGlIUk.js → chunk-ND2GUHAM-C4fZNPv0.js} +1 -1
  261. package/web-shell/assets/{chunk-QZHKN3VN-rOnNXL2Q.js → chunk-QZHKN3VN-Cf4XWOmz.js} +1 -1
  262. package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +1 -0
  263. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +1 -0
  264. package/web-shell/assets/{cose-bilkent-S5V4N54A-CcqXykgA.js → cose-bilkent-S5V4N54A-C82mFiqj.js} +1 -1
  265. package/web-shell/assets/{dagre-BM42HDAG-Dkjrchoy.js → dagre-BM42HDAG-Df8KACER.js} +1 -1
  266. package/web-shell/assets/{diagram-2AECGRRQ-B6lcra9M.js → diagram-2AECGRRQ-EzNs7s_2.js} +1 -1
  267. package/web-shell/assets/{diagram-5GNKFQAL-bAIzq3PT.js → diagram-5GNKFQAL-BRLNvreg.js} +1 -1
  268. package/web-shell/assets/{diagram-KO2AKTUF-G9MAZDNW.js → diagram-KO2AKTUF-2HLYHRjC.js} +1 -1
  269. package/web-shell/assets/{diagram-LMA3HP47-DVLF1uWZ.js → diagram-LMA3HP47-DeH0NzSp.js} +1 -1
  270. package/web-shell/assets/{diagram-OG6HWLK6-Cf7y20Tc.js → diagram-OG6HWLK6-k5Gn47-G.js} +1 -1
  271. package/web-shell/assets/{erDiagram-TEJ5UH35-C7ETZB3o.js → erDiagram-TEJ5UH35-gPHFo79f.js} +1 -1
  272. package/web-shell/assets/{flowDiagram-I6XJVG4X-Cl2xgL6J.js → flowDiagram-I6XJVG4X-DYBOiTRW.js} +1 -1
  273. package/web-shell/assets/{ganttDiagram-6RSMTGT7-BgjbMs3q.js → ganttDiagram-6RSMTGT7-cxjAuic9.js} +1 -1
  274. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-JVX34Omm.js → gitGraphDiagram-PVQCEYII-3nPqpmCP.js} +1 -1
  275. package/web-shell/assets/index-B7jzUZ_s.css +5 -0
  276. package/web-shell/assets/{index-BG7Zc4f_.js → index-Cl8d-1bK.js} +1 -1
  277. package/web-shell/assets/index-gE8OWwj_.js +1197 -0
  278. package/web-shell/assets/{infoDiagram-5YYISTIA-3NYyMeZU.js → infoDiagram-5YYISTIA-Dph21pR5.js} +1 -1
  279. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-C03VCu-U.js → ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js} +1 -1
  280. package/web-shell/assets/{journeyDiagram-JHISSGLW-C9PuBRZW.js → journeyDiagram-JHISSGLW-CR-IzvnU.js} +1 -1
  281. package/web-shell/assets/{kanban-definition-UN3LZRKU-C3LvioWR.js → kanban-definition-UN3LZRKU-BYmuybuC.js} +1 -1
  282. package/web-shell/assets/{linear-Du6Yw8N_.js → linear-CngEEoy8.js} +1 -1
  283. package/web-shell/assets/{mermaid.core-BXY5D2-X.js → mermaid.core-G6fbZRPf.js} +5 -5
  284. package/web-shell/assets/{mindmap-definition-RKZ34NQL-2UrHLaDp.js → mindmap-definition-RKZ34NQL-BtnqnUwJ.js} +1 -1
  285. package/web-shell/assets/{pieDiagram-4H26LBE5-dC03ml45.js → pieDiagram-4H26LBE5-XTq6UHIA.js} +1 -1
  286. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CD6jARrp.js → quadrantDiagram-W4KKPZXB-D1J5PrsS.js} +1 -1
  287. package/web-shell/assets/{requirementDiagram-4Y6WPE33-BrK8aXfv.js → requirementDiagram-4Y6WPE33-CLcBUy3t.js} +1 -1
  288. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-B5Vitki_.js → sankeyDiagram-5OEKKPKP-iwKV02_6.js} +1 -1
  289. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CBy2t6Bo.js → sequenceDiagram-3UESZ5HK-7NFYQcEX.js} +1 -1
  290. package/web-shell/assets/{stateDiagram-AJRCARHV-Enrka6T2.js → stateDiagram-AJRCARHV-Bvm4Wih6.js} +1 -1
  291. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +1 -0
  292. package/web-shell/assets/{timeline-definition-PNZ67QCA-CwFq78ss.js → timeline-definition-PNZ67QCA-B4FZFE9O.js} +1 -1
  293. package/web-shell/assets/{vennDiagram-CIIHVFJN-BkOidM0g.js → vennDiagram-CIIHVFJN-CvMBpmtL.js} +1 -1
  294. package/web-shell/assets/{wardley-L42UT6IY-D_j13hQW.js → wardley-L42UT6IY-E3ag2327.js} +1 -1
  295. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-7EveB1w6.js → wardleyDiagram-YWT4CUSO-BEXWlgxC.js} +1 -1
  296. package/web-shell/assets/{xychartDiagram-2RQKCTM6-DRkBhMXr.js → xychartDiagram-2RQKCTM6-CICK05gI.js} +1 -1
  297. package/web-shell/index.html +2 -2
  298. package/chunks/agent-headless-WVJCQ27D.js +0 -61
  299. package/chunks/chunk-CPCVCKKF.js +0 -358
  300. package/chunks/chunk-P64HXIC5.js +0 -74712
  301. package/chunks/chunk-RF34V75B.js +0 -45
  302. package/chunks/chunk-W7FJ3N32.js +0 -49
  303. package/chunks/contextCommand-HTRJJYNE.js +0 -66
  304. package/chunks/daemon-status-provider-67EKK6S3.js +0 -74
  305. package/chunks/handleAutoUpdate-OOKBP5VD.js +0 -67
  306. package/chunks/initializer-NWALZGQ5.js +0 -72
  307. package/chunks/installationInfo-Y3M433E7.js +0 -66
  308. package/chunks/list-CQDDWHTS.js +0 -75
  309. package/chunks/loadedSettingsAdapter-I5KG37EI.js +0 -69
  310. package/chunks/mcp-24HHCBSP.js +0 -69
  311. package/chunks/nonInteractiveCli-GVF2XDJT.js +0 -126
  312. package/chunks/ripGrep-Y2XW4EFC.js +0 -59
  313. package/chunks/theme-manager-QOUMDWMP.js +0 -63
  314. package/chunks/total-session-admission-HWVCZ2WR.js +0 -69
  315. package/chunks/workspace-providers-status-ZTW2B5QU.js +0 -72
  316. package/chunks/workspace-registry-R54M5O3W.js +0 -73
  317. package/chunks/workspace-service-WYLRGM4A.js +0 -84
  318. package/chunks/workspace-skills-status-NN5QFU3A.js +0 -71
  319. package/chunks/write-file-EAT3CHUK.js +0 -596
  320. package/web-shell/assets/channel-tVz-qNSq.js +0 -1
  321. package/web-shell/assets/classDiagram-4FO5ZUOK-CWuaBxYV.js +0 -1
  322. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CWuaBxYV.js +0 -1
  323. package/web-shell/assets/index-48bIcdqF.js +0 -1197
  324. package/web-shell/assets/index-BI-JAO07.css +0 -5
  325. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DUtYfXpW.js +0 -1
  326. package/chunks/{chunk-H24SOJIQ.js → chunk-D7WXIW7H.js} +3 -3
  327. package/chunks/{chunk-PEJWA3QQ.js → chunk-QZJY47IE.js} +5 -5
  328. package/chunks/{dist-XBJVSWS2.js → dist-HMU6CYS4.js} +1 -1
@@ -1,358 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- getTeammateContext,
5
- isTeammate
6
- } from "./chunk-6AM5D4ME.js";
7
- import {
8
- ToolNames
9
- } from "./chunk-OP4MOGXF.js";
10
- import {
11
- init_esbuild_shims
12
- } from "./chunk-5O2XNYP6.js";
13
- import {
14
- __name
15
- } from "./chunk-J2S4EL5Y.js";
16
-
17
- // packages/core/src/subagents/types.ts
18
- init_esbuild_shims();
19
- var BUBBLE_APPROVAL_MODE = "bubble";
20
- var SubagentError = class extends Error {
21
- constructor(message, code, subagentName) {
22
- super(message);
23
- this.code = code;
24
- this.subagentName = subagentName;
25
- this.name = "SubagentError";
26
- }
27
- static {
28
- __name(this, "SubagentError");
29
- }
30
- };
31
- var SubagentErrorCode = {
32
- NOT_FOUND: "NOT_FOUND",
33
- ALREADY_EXISTS: "ALREADY_EXISTS",
34
- INVALID_CONFIG: "INVALID_CONFIG",
35
- INVALID_NAME: "INVALID_NAME",
36
- FILE_ERROR: "FILE_ERROR",
37
- VALIDATION_ERROR: "VALIDATION_ERROR",
38
- TOOL_NOT_FOUND: "TOOL_NOT_FOUND"
39
- };
40
-
41
- // packages/core/src/tools/agent/fork-subagent.ts
42
- init_esbuild_shims();
43
- import { AsyncLocalStorage } from "node:async_hooks";
44
- var FORK_SUBAGENT_TYPE = "fork";
45
- function isForkSubagentEnabled(config) {
46
- return config.isInteractive();
47
- }
48
- __name(isForkSubagentEnabled, "isForkSubagentEnabled");
49
- var FORK_BOILERPLATE_TAG = "fork-boilerplate";
50
- var FORK_DIRECTIVE_PREFIX = "Directive: ";
51
- var FORK_AGENT = {
52
- name: FORK_SUBAGENT_TYPE,
53
- description: 'Fork yourself \u2014 inherits your full conversation context. Selected explicitly via `subagent_type: "fork"` (only in interactive sessions). Runs detached in the background; you are notified when it completes.',
54
- tools: ["*"],
55
- systemPrompt: "You are a forked worker process. Follow the directive in the conversation history. Execute tasks directly using available tools. Do not spawn sub-agents.",
56
- // `bubble` surfaces this fork's permission prompts to the parent's Background-
57
- // tasks UI; a detached fork has no inline UI, so 'default' would auto-deny them.
58
- approvalMode: BUBBLE_APPROVAL_MODE,
59
- level: "session"
60
- };
61
- var FORK_DEFAULT_MAX_TURNS = 200;
62
- var forkExecutionStorage = new AsyncLocalStorage();
63
- function runInForkContext(fn) {
64
- return forkExecutionStorage.run({ marker: true }, fn);
65
- }
66
- __name(runInForkContext, "runInForkContext");
67
- function isInForkExecution() {
68
- return forkExecutionStorage.getStore() !== void 0;
69
- }
70
- __name(isInForkExecution, "isInForkExecution");
71
- var FORK_PLACEHOLDER_RESULT = "Fork started \u2014 processing in background";
72
- function buildFunctionResponseParts(assistantMessage, placeholderOutput) {
73
- return (assistantMessage.parts?.filter((part) => part.functionCall) ?? []).map((part) => ({
74
- functionResponse: {
75
- id: part.functionCall.id,
76
- name: part.functionCall.name,
77
- response: { output: placeholderOutput }
78
- }
79
- }));
80
- }
81
- __name(buildFunctionResponseParts, "buildFunctionResponseParts");
82
- function buildForkedMessages(directive, assistantMessage) {
83
- const toolUseParts = assistantMessage.parts?.filter((part) => part.functionCall) || [];
84
- if (toolUseParts.length === 0) {
85
- return [];
86
- }
87
- const fullAssistantMessage = {
88
- role: assistantMessage.role,
89
- parts: [...assistantMessage.parts || []]
90
- };
91
- const toolResultParts = buildFunctionResponseParts(
92
- assistantMessage,
93
- FORK_PLACEHOLDER_RESULT
94
- );
95
- const toolResultMessage = {
96
- role: "user",
97
- parts: [
98
- ...toolResultParts,
99
- {
100
- text: buildChildMessage(directive)
101
- }
102
- ]
103
- };
104
- return [fullAssistantMessage, toolResultMessage];
105
- }
106
- __name(buildForkedMessages, "buildForkedMessages");
107
- function buildWorktreeNotice(parentCwd, worktreeCwd) {
108
- return `You are operating in an isolated git worktree at ${worktreeCwd}. The parent agent is in ${parentCwd}. Same repository, same relative file layout, separate working copy. All your file edits, writes, and shell commands MUST target paths under ${worktreeCwd}. When the inherited context references a path under ${parentCwd}, translate it to the corresponding path under ${worktreeCwd} before acting on it. Re-read any file you intend to edit (the parent may have modified it after the snapshot in your context). Your changes stay in this worktree and do not affect the parent's working tree.`;
109
- }
110
- __name(buildWorktreeNotice, "buildWorktreeNotice");
111
- function buildPinnedWorktreeNotice(worktreeCwd) {
112
- return `Your working directory is ${worktreeCwd}, a git worktree checked out to the code you have been asked to work on. Relative paths, shell commands, and searches already resolve there \u2014 do not \`cd\` elsewhere and do not prefix paths with the parent's directory. Do not operate on the parent's checkout.`;
113
- }
114
- __name(buildPinnedWorktreeNotice, "buildPinnedWorktreeNotice");
115
- function buildChildMessage(directive) {
116
- return `<${FORK_BOILERPLATE_TAG}>
117
- STOP. READ THIS FIRST.
118
-
119
- You are a forked worker process. You are NOT the main agent.
120
-
121
- RULES (non-negotiable):
122
- 1. You ARE the fork. Do NOT spawn sub-agents; execute directly.
123
- 2. Do NOT converse, ask questions, or suggest next steps
124
- 3. Do NOT editorialize or add meta-commentary
125
- 4. USE your tools directly: Bash, Read, Write, etc.
126
- 5. If you modify files, report the files changed and verification performed. Do NOT create a commit unless the directive explicitly asks you to.
127
- 6. Do NOT emit text between tool calls. Use tools silently, then report once at the end.
128
- 7. Stay strictly within your directive's scope. If you discover related systems outside your scope, mention them in one sentence at most \u2014 other workers cover those areas.
129
- 8. Keep your report under 500 words unless the directive specifies otherwise. Be factual and concise.
130
- 9. Your response MUST begin with "Scope:". No preamble, no thinking-out-loud.
131
- 10. REPORT structured facts, then stop
132
-
133
- Output format (plain text labels, not markdown headers):
134
- Scope: <echo back your assigned scope in one sentence>
135
- Result: <the answer or key findings, limited to the scope above>
136
- Key files: <relevant file paths \u2014 include for research tasks>
137
- Files changed: <list \u2014 include only if you modified files>
138
- Verification: <checks performed and their outcome \u2014 include only if you modified files>
139
- Issues: <list \u2014 include only if there are issues to flag>
140
- </${FORK_BOILERPLATE_TAG}>
141
-
142
- ${FORK_DIRECTIVE_PREFIX}${directive}`;
143
- }
144
- __name(buildChildMessage, "buildChildMessage");
145
-
146
- // packages/core/src/agents/runtime/agent-context.ts
147
- init_esbuild_shims();
148
- import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
149
- var storage = new AsyncLocalStorage2();
150
- function runWithAgentContext(agentId, fn, depthOverride) {
151
- const current = storage.getStore() ?? {};
152
- const depth = depthOverride ?? (current.depth ?? -1) + 1;
153
- return storage.run({ ...current, agentId, depth }, fn);
154
- }
155
- __name(runWithAgentContext, "runWithAgentContext");
156
- function runWithRuntimeContentGenerator(view, fn) {
157
- const current = storage.getStore() ?? {};
158
- return storage.run({ ...current, runtimeView: view }, fn);
159
- }
160
- __name(runWithRuntimeContentGenerator, "runWithRuntimeContentGenerator");
161
- function getCurrentAgentId() {
162
- return storage.getStore()?.agentId ?? null;
163
- }
164
- __name(getCurrentAgentId, "getCurrentAgentId");
165
- function getCurrentAgentDepth() {
166
- return storage.getStore()?.depth ?? 0;
167
- }
168
- __name(getCurrentAgentDepth, "getCurrentAgentDepth");
169
- function getRuntimeContentGenerator() {
170
- return storage.getStore()?.runtimeView;
171
- }
172
- __name(getRuntimeContentGenerator, "getRuntimeContentGenerator");
173
- function isTopLevelSession() {
174
- return getCurrentAgentId() === null;
175
- }
176
- __name(isTopLevelSession, "isTopLevelSession");
177
- function childLaunchDepth() {
178
- return getCurrentAgentId() !== null ? getCurrentAgentDepth() + 1 : 0;
179
- }
180
- __name(childLaunchDepth, "childLaunchDepth");
181
- function canSpawnNestedAgent(maxDepth) {
182
- return childLaunchDepth() + 1 <= maxDepth;
183
- }
184
- __name(canSpawnNestedAgent, "canSpawnNestedAgent");
185
- function spawnBlockReason(maxDepth) {
186
- if (!canSpawnNestedAgent(maxDepth)) return "depth";
187
- if (isTeammate()) return "teammate";
188
- if (isInForkExecution()) return "fork";
189
- return null;
190
- }
191
- __name(spawnBlockReason, "spawnBlockReason");
192
-
193
- // packages/core/src/config/approval-mode.ts
194
- init_esbuild_shims();
195
- var ApprovalMode = /* @__PURE__ */ ((ApprovalMode2) => {
196
- ApprovalMode2["PLAN"] = "plan";
197
- ApprovalMode2["DEFAULT"] = "default";
198
- ApprovalMode2["AUTO_EDIT"] = "auto-edit";
199
- ApprovalMode2["AUTO"] = "auto";
200
- ApprovalMode2["YOLO"] = "yolo";
201
- return ApprovalMode2;
202
- })(ApprovalMode || {});
203
- var APPROVAL_MODES = Object.values(ApprovalMode);
204
-
205
- // packages/core/src/agents/runtime/subagent-plan-tool-policy.ts
206
- init_esbuild_shims();
207
- var SUBAGENT_PLAN_LIFECYCLE_TOOLS = /* @__PURE__ */ new Set([
208
- ToolNames.ENTER_PLAN_MODE,
209
- ToolNames.EXIT_PLAN_MODE
210
- ]);
211
- var PLAN_REQUIRED_TEAMMATE_PRE_APPROVAL_TOOLS = /* @__PURE__ */ new Set([
212
- ToolNames.EXIT_PLAN_MODE,
213
- ToolNames.READ_FILE,
214
- ToolNames.GREP,
215
- ToolNames.GLOB,
216
- ToolNames.LS,
217
- ToolNames.LSP,
218
- ToolNames.TASK_LIST,
219
- ToolNames.TOOL_SEARCH,
220
- ToolNames.READ_MCP_RESOURCE
221
- ]);
222
- var PRE_APPROVAL_TASK_CLAIM_KEYS = /* @__PURE__ */ new Set([
223
- "taskId",
224
- "status",
225
- "owner",
226
- "addBlocks",
227
- "addBlockedBy"
228
- ]);
229
- function isSubagentLikeExecutionContext() {
230
- return getCurrentAgentId() !== null || isTeammate();
231
- }
232
- __name(isSubagentLikeExecutionContext, "isSubagentLikeExecutionContext");
233
- function isPlanRequiredTeammateContext() {
234
- return getTeammateContext()?.planModeRequired === true;
235
- }
236
- __name(isPlanRequiredTeammateContext, "isPlanRequiredTeammateContext");
237
- function isPlanRequiredTeammateAwaitingApproval(config) {
238
- return isPlanRequiredTeammateContext() && config.getApprovalMode() === "plan" /* PLAN */;
239
- }
240
- __name(isPlanRequiredTeammateAwaitingApproval, "isPlanRequiredTeammateAwaitingApproval");
241
- function isPlanLifecycleToolUnavailableInSubagent(toolName) {
242
- if (!isSubagentLikeExecutionContext()) return false;
243
- if (toolName === ToolNames.ENTER_PLAN_MODE) return true;
244
- if (toolName === ToolNames.EXIT_PLAN_MODE) {
245
- return !isPlanRequiredTeammateContext();
246
- }
247
- return false;
248
- }
249
- __name(isPlanLifecycleToolUnavailableInSubagent, "isPlanLifecycleToolUnavailableInSubagent");
250
- function shouldUsePlanOnlyReminderInSubagentContext() {
251
- return isSubagentLikeExecutionContext() && !isPlanRequiredTeammateContext();
252
- }
253
- __name(shouldUsePlanOnlyReminderInSubagentContext, "shouldUsePlanOnlyReminderInSubagentContext");
254
- function isLeaderOnlyToolUnavailableInSubagent(toolName) {
255
- return isSubagentLikeExecutionContext() && toolName === ToolNames.TEAM_PLAN_APPROVAL;
256
- }
257
- __name(isLeaderOnlyToolUnavailableInSubagent, "isLeaderOnlyToolUnavailableInSubagent");
258
- function getLeaderOnlyToolUnavailableMessage(toolName) {
259
- return `${toolName} is only available to the team leader. Subagents and teammates cannot approve teammate plans.`;
260
- }
261
- __name(getLeaderOnlyToolUnavailableMessage, "getLeaderOnlyToolUnavailableMessage");
262
- function getPlanRequiredTeammatePreApprovalMessage(toolName) {
263
- return `${toolName} is not available while this plan-required teammate is waiting for leader approval. Finish investigation, call exit_plan_mode with the proposed plan, and wait for the leader to approve it before taking execution actions.`;
264
- }
265
- __name(getPlanRequiredTeammatePreApprovalMessage, "getPlanRequiredTeammatePreApprovalMessage");
266
- function isPlanRequiredTeammatePreApprovalAllowedTool(toolName, params) {
267
- if (PLAN_REQUIRED_TEAMMATE_PRE_APPROVAL_TOOLS.has(toolName)) {
268
- return true;
269
- }
270
- if (toolName !== ToolNames.TASK_UPDATE) {
271
- return false;
272
- }
273
- return isPreApprovalClaimOnlyTaskUpdate(params);
274
- }
275
- __name(isPlanRequiredTeammatePreApprovalAllowedTool, "isPlanRequiredTeammatePreApprovalAllowedTool");
276
- function isPreApprovalClaimOnlyTaskUpdate(params) {
277
- if (typeof params !== "object" || params === null || Array.isArray(params)) {
278
- return false;
279
- }
280
- const taskParams = params;
281
- for (const key of Object.keys(taskParams)) {
282
- if (!PRE_APPROVAL_TASK_CLAIM_KEYS.has(key)) {
283
- return false;
284
- }
285
- }
286
- const agentName = getTeammateContext()?.agentName;
287
- return typeof taskParams["taskId"] === "string" && taskParams["status"] === "in_progress" && (taskParams["owner"] === void 0 || taskParams["owner"] === agentName) && isAbsentOrEmptyArray(taskParams["addBlocks"]) && isAbsentOrEmptyArray(taskParams["addBlockedBy"]);
288
- }
289
- __name(isPreApprovalClaimOnlyTaskUpdate, "isPreApprovalClaimOnlyTaskUpdate");
290
- function isAbsentOrEmptyArray(value) {
291
- return value === void 0 || Array.isArray(value) && value.length === 0;
292
- }
293
- __name(isAbsentOrEmptyArray, "isAbsentOrEmptyArray");
294
- function getSubagentPlanToolUnavailableMessage(toolName) {
295
- return `${toolName} is not available inside subagents or team agents. Plan mode is owned by the caller/main session; return your plan, findings, or constraints to the caller in your normal response instead of entering or exiting plan mode.`;
296
- }
297
- __name(getSubagentPlanToolUnavailableMessage, "getSubagentPlanToolUnavailableMessage");
298
- function buildSubagentPlanToolBlockedResult(toolName, logTag, logger) {
299
- const message = getSubagentPlanToolUnavailableMessage(toolName);
300
- logger.warn(
301
- `[${logTag}] Blocked plan lifecycle tool call from subagent: ${toolName}`
302
- );
303
- return {
304
- llmContent: message,
305
- returnDisplay: message,
306
- error: { message }
307
- };
308
- }
309
- __name(buildSubagentPlanToolBlockedResult, "buildSubagentPlanToolBlockedResult");
310
-
311
- export {
312
- BUBBLE_APPROVAL_MODE,
313
- SubagentError,
314
- SubagentErrorCode,
315
- FORK_SUBAGENT_TYPE,
316
- isForkSubagentEnabled,
317
- FORK_AGENT,
318
- FORK_DEFAULT_MAX_TURNS,
319
- runInForkContext,
320
- FORK_PLACEHOLDER_RESULT,
321
- buildFunctionResponseParts,
322
- buildForkedMessages,
323
- buildWorktreeNotice,
324
- buildPinnedWorktreeNotice,
325
- buildChildMessage,
326
- runWithAgentContext,
327
- runWithRuntimeContentGenerator,
328
- getCurrentAgentId,
329
- getCurrentAgentDepth,
330
- getRuntimeContentGenerator,
331
- isTopLevelSession,
332
- childLaunchDepth,
333
- spawnBlockReason,
334
- ApprovalMode,
335
- APPROVAL_MODES,
336
- SUBAGENT_PLAN_LIFECYCLE_TOOLS,
337
- isSubagentLikeExecutionContext,
338
- isPlanRequiredTeammateContext,
339
- isPlanRequiredTeammateAwaitingApproval,
340
- isPlanLifecycleToolUnavailableInSubagent,
341
- shouldUsePlanOnlyReminderInSubagentContext,
342
- isLeaderOnlyToolUnavailableInSubagent,
343
- getLeaderOnlyToolUnavailableMessage,
344
- getPlanRequiredTeammatePreApprovalMessage,
345
- isPlanRequiredTeammatePreApprovalAllowedTool,
346
- getSubagentPlanToolUnavailableMessage,
347
- buildSubagentPlanToolBlockedResult
348
- };
349
- /**
350
- * @license
351
- * Copyright 2025 Qwen
352
- * SPDX-License-Identifier: Apache-2.0
353
- */
354
- /**
355
- * @license
356
- * Copyright 2025 Google LLC
357
- * SPDX-License-Identifier: Apache-2.0
358
- */