@qwen-code/qwen-code 0.22.0 → 0.22.2-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 (449) hide show
  1. package/bundled/computer-use/SKILL.md +229 -0
  2. package/bundled/computer-use/agents/openai.yaml +4 -0
  3. package/bundled/coordinate/SKILL.md +5 -5
  4. package/bundled/qc-helper/docs/configuration/auth.md +7 -7
  5. package/bundled/qc-helper/docs/configuration/model-providers.md +70 -9
  6. package/bundled/qc-helper/docs/configuration/settings.md +40 -40
  7. package/bundled/qc-helper/docs/extension/introduction.md +3 -1
  8. package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
  9. package/bundled/qc-helper/docs/features/channels/dingtalk.md +12 -0
  10. package/bundled/qc-helper/docs/features/channels/dws.md +120 -0
  11. package/bundled/qc-helper/docs/features/channels/overview.md +3 -3
  12. package/bundled/qc-helper/docs/features/code-review.md +25 -21
  13. package/bundled/qc-helper/docs/features/commands.md +2 -2
  14. package/bundled/qc-helper/docs/features/computer-use.md +57 -51
  15. package/bundled/qc-helper/docs/features/mcp.md +35 -12
  16. package/bundled/qc-helper/docs/features/sub-agents.md +1 -1
  17. package/bundled/qc-helper/docs/features/worktree.md +1 -1
  18. package/bundled/qc-helper/docs/overview.md +1 -1
  19. package/bundled/qc-helper/docs/quickstart.md +1 -1
  20. package/bundled/qc-helper/docs/qwen-serve.md +29 -6
  21. package/bundled/review/SKILL.md +119 -417
  22. package/bundled/review/references/aone.md +18 -0
  23. package/bundled/review/references/persistence.md +105 -0
  24. package/bundled/review/references/posting.md +270 -0
  25. package/chunks/MaxSizedBox-XYQOMOBE.js +112 -0
  26. package/chunks/{StandaloneSessionPicker-KTHPCSR6.js → StandaloneSessionPicker-KFMJILVY.js} +87 -86
  27. package/chunks/{acp-startup-profiler-T4GEAPLX.js → acp-startup-profiler-GNYAL6LI.js} +2 -2
  28. package/chunks/{acpAgent-CRY3JZ5O.js → acpAgent-KNFTTDWL.js} +2216 -1931
  29. package/chunks/agent-6V6MZOA7.js +97 -0
  30. package/chunks/agent-headless-3ZC4LX3E.js +87 -0
  31. package/chunks/{anthropicContentGenerator-Y2OX6LS4.js → anthropicContentGenerator-U76GTVB6.js} +128 -58
  32. package/chunks/{artifact-tool-SBXMTVCB.js → artifact-tool-XDJCZZCF.js} +2 -2
  33. package/chunks/{askUserQuestion-KEQJRFD6.js → askUserQuestion-ZXXERLEV.js} +2 -2
  34. package/chunks/bridge-LFFLHLU5.js +119 -0
  35. package/chunks/{ca-D3F4S6NG.js → ca-7HPYOYSZ.js} +3 -0
  36. package/chunks/{channel-management-service-IRTT7RNE.js → channel-management-service-HXXS3HOZ.js} +4 -4
  37. package/chunks/channel-settings-store-CAL2HWAH.js +117 -0
  38. package/chunks/{channel-worker-group-BJNMR2MP.js → channel-worker-group-EVDC2P4K.js} +8 -7
  39. package/chunks/{channel-worker-manager-EMA7CQDJ.js → channel-worker-manager-IJJZHGEI.js} +8 -7
  40. package/chunks/{channel-worker-supervisor-F6I6WSWW.js → channel-worker-supervisor-YSKB5GVB.js} +12 -7
  41. package/chunks/{chunk-2TRNCJK4.js → chunk-27ONXAFY.js} +1 -1
  42. package/chunks/{read-package-up-UXSW3YPB.js → chunk-2EAZ43JQ.js} +1 -0
  43. package/chunks/{chunk-DB2OKNTU.js → chunk-2FN2HNTI.js} +2 -2
  44. package/chunks/{chunk-KM73TBQ4.js → chunk-2LD5U7Q3.js} +31 -0
  45. package/chunks/{chunk-QJHPWLZC.js → chunk-2MHGD7EE.js} +1 -1
  46. package/chunks/{chunk-A5F2YNO6.js → chunk-2NNTE2ED.js} +245 -10
  47. package/chunks/{chunk-Z3JMO2CH.js → chunk-2SERYG4T.js} +1 -1
  48. package/chunks/{chunk-4J7OPYNS.js → chunk-2YDYDDE2.js} +6 -6
  49. package/chunks/{chunk-SE55HQGF.js → chunk-3B5DCAQU.js} +74 -52
  50. package/chunks/{chunk-UIRLQ3N7.js → chunk-3BV7TZNQ.js} +3 -3
  51. package/chunks/{chunk-2Z6LSQMF.js → chunk-3FSBMAYD.js} +1 -1
  52. package/chunks/{chunk-S4C4JJKE.js → chunk-3UXJFOB3.js} +5 -5
  53. package/chunks/{chunk-DJEHYM4H.js → chunk-3UZCLCXR.js} +3 -3
  54. package/chunks/{chunk-BUGYW6FB.js → chunk-4IDJQOCO.js} +1 -1
  55. package/chunks/chunk-4K7NQDCG.js +104 -0
  56. package/chunks/{chunk-WS7PAXXR.js → chunk-4N6UAPD3.js} +18 -13
  57. package/chunks/{chunk-VYC7XFYV.js → chunk-4PLAO7FS.js} +5 -5
  58. package/chunks/{chunk-UZPYR3EV.js → chunk-4TPAG3O7.js} +1 -1
  59. package/chunks/{chunk-2E3V7G6Y.js → chunk-4X5GYZFO.js} +55 -50
  60. package/chunks/{chunk-XYQHT3AW.js → chunk-4Z3PSHN4.js} +2 -2
  61. package/chunks/{chunk-PDL6LKB5.js → chunk-5AFPOEY3.js} +1 -1
  62. package/chunks/{chunk-BB5IMQCV.js → chunk-5CW26JIE.js} +2 -2
  63. package/chunks/{chunk-7KOFLDEP.js → chunk-5JTIYALA.js} +1 -1
  64. package/chunks/{chunk-U2UYQMM6.js → chunk-5NV2AN56.js} +3 -3
  65. package/chunks/{chunk-CXJHQVEK.js → chunk-5PA6UEYA.js} +4 -0
  66. package/chunks/{chunk-IBJ5S45N.js → chunk-5T4LWWNX.js} +2 -2
  67. package/chunks/{chunk-VUMLT7E5.js → chunk-5Y2JCJAH.js} +2 -2
  68. package/chunks/{chunk-BEGIBJAZ.js → chunk-6HOU52QX.js} +4 -4
  69. package/chunks/{chunk-GAHYKJPV.js → chunk-6US7BF3G.js} +7 -59
  70. package/chunks/{chunk-3CLIDIVQ.js → chunk-73WFGVIZ.js} +3 -3
  71. package/chunks/{chunk-ZZUVC6RI.js → chunk-76WGY6LW.js} +3 -3
  72. package/chunks/{chunk-XLDFW44M.js → chunk-77TOMRBG.js} +3 -3
  73. package/chunks/{chunk-ND7NOI4P.js → chunk-7CWEZQ6T.js} +0 -15
  74. package/chunks/{chunk-DWCKACFL.js → chunk-7DPKPBOQ.js} +2 -2
  75. package/chunks/{chunk-X7V3N6YH.js → chunk-7JJUFI36.js} +218 -37
  76. package/chunks/{chunk-45NQKMYB.js → chunk-7JPW6IYH.js} +1 -1
  77. package/chunks/{chunk-HDKCKCYO.js → chunk-7QGEJI7M.js} +1 -1
  78. package/chunks/{chunk-PHJJ3RVO.js → chunk-7XKW4CVK.js} +7 -15
  79. package/chunks/{chunk-O5Z7EB6Y.js → chunk-AYHQZBJ4.js} +170 -207
  80. package/chunks/{chunk-7DYNJFES.js → chunk-AYVIGUUK.js} +6 -1
  81. package/chunks/{chunk-43T5WDQ7.js → chunk-BFSFJR3D.js} +1 -1
  82. package/chunks/{chunk-OARZJFZX.js → chunk-BGWT7VBV.js} +4 -4
  83. package/chunks/{chunk-AP3B7LKD.js → chunk-BKDAF7ES.js} +2 -2
  84. package/chunks/{chunk-B6UBOIFE.js → chunk-BQBUZDDH.js} +14 -11
  85. package/chunks/{chunk-6PCOVQO2.js → chunk-BU7OUDQB.js} +8 -8
  86. package/chunks/{chunk-VLRBJ24J.js → chunk-BVE5EMIG.js} +2 -2
  87. package/chunks/{chunk-6UQSU7CQ.js → chunk-C2BAEV64.js} +58 -107
  88. package/chunks/{chunk-QKBYFU2Q.js → chunk-CFKIH3D3.js} +21 -1
  89. package/chunks/{chunk-URN2JIAQ.js → chunk-CITGRGCM.js} +2 -1
  90. package/chunks/{chunk-WU5E4HMO.js → chunk-CPPYZHBN.js} +1 -1
  91. package/chunks/{chunk-T6XLJRQY.js → chunk-D6XO27Z5.js} +36509 -5182
  92. package/chunks/{chunk-Q54XG7IX.js → chunk-DEYPMJPD.js} +1 -1
  93. package/chunks/{chunk-KSPRQSB4.js → chunk-DIMEPKCW.js} +52 -12
  94. package/chunks/{chunk-I432KXWD.js → chunk-DP7LABIB.js} +1 -1
  95. package/chunks/{chunk-P47E4SJC.js → chunk-DWRFOH3G.js} +3 -3
  96. package/chunks/{chunk-J5ZDDUKM.js → chunk-DX5FZGHZ.js} +4 -4
  97. package/chunks/{chunk-36OF5PRW.js → chunk-E4I5MVBR.js} +7 -3
  98. package/chunks/{chunk-AW27A43Y.js → chunk-E55H6BZ7.js} +93 -1
  99. package/chunks/{chunk-K623ENWT.js → chunk-E6FGMDFQ.js} +4 -0
  100. package/chunks/{chunk-YZBDKFRQ.js → chunk-EADEZDPO.js} +993 -895
  101. package/chunks/{chunk-5XUTPXQU.js → chunk-EAV3TENS.js} +6 -9
  102. package/chunks/{chunk-LI4YHTQK.js → chunk-EB4VDXNI.js} +1 -1
  103. package/chunks/{chunk-JOLJTKIG.js → chunk-EC5BONC3.js} +1 -1
  104. package/chunks/{chunk-W4CRPSC5.js → chunk-ELY4QVIB.js} +1 -1
  105. package/chunks/{chunk-AVCCKIZ6.js → chunk-EWBY3PFB.js} +1 -1
  106. package/chunks/chunk-FBX2SDQ4.js +48 -0
  107. package/chunks/{chunk-C72BXMJ5.js → chunk-FJWICLG7.js} +1 -1
  108. package/chunks/{chunk-LDGWX737.js → chunk-FN5C6C7G.js} +160 -59
  109. package/chunks/{chunk-3ZFJUBTP.js → chunk-FPH6TXD3.js} +1 -1
  110. package/chunks/{chunk-WRT324N6.js → chunk-FVDQ5E67.js} +3 -3
  111. package/chunks/{chunk-2A4C2MEG.js → chunk-FY62MBPS.js} +35 -12
  112. package/chunks/{chunk-VFACN2CE.js → chunk-GNMJNDZE.js} +1 -1
  113. package/chunks/{chunk-6QSA4JHL.js → chunk-GQAIZL3H.js} +2772 -814
  114. package/chunks/{chunk-PZRUV52H.js → chunk-GTUKW3I6.js} +20 -2
  115. package/chunks/{chunk-7DMTAQJ6.js → chunk-GXWY24QS.js} +132 -49
  116. package/chunks/chunk-GYTKQYDB.js +23 -0
  117. package/chunks/{chunk-VMJL7RH6.js → chunk-GZJUCMH4.js} +4 -4
  118. package/chunks/{chunk-2GXYDNXP.js → chunk-H2MDBYLL.js} +8 -8
  119. package/chunks/{chunk-RDG44S5I.js → chunk-H4JK2A2V.js} +2 -2
  120. package/chunks/{chunk-FVBVJEBG.js → chunk-HOANA6GC.js} +10 -8
  121. package/chunks/{chunk-AO4M6NMD.js → chunk-I6HWGOWD.js} +60 -20
  122. package/chunks/{chunk-7IV52LTO.js → chunk-I6VVOZDK.js} +2 -2
  123. package/chunks/{chunk-SQS55KR4.js → chunk-IJVDHPKD.js} +2 -2
  124. package/chunks/{chunk-QS4ENGVF.js → chunk-IKN3IUJP.js} +9 -8
  125. package/chunks/{chunk-2UZJWSVD.js → chunk-ILPXSKGQ.js} +2 -2
  126. package/chunks/{chunk-OVH5Y7KS.js → chunk-IN66KO3N.js} +19 -3
  127. package/chunks/{chunk-ZRYQMWEP.js → chunk-IPQA4SR5.js} +2 -2
  128. package/chunks/{chunk-AZF6SME3.js → chunk-JECO75XD.js} +3 -3
  129. package/chunks/{chunk-MQP3MHWN.js → chunk-JJJD6QCC.js} +21 -15
  130. package/chunks/chunk-JLGFGPZJ.js +346 -0
  131. package/chunks/{chunk-WZDM44SB.js → chunk-JUIJ3FXC.js} +7 -7
  132. package/chunks/{chunk-A6NRNRKE.js → chunk-JVPFTDBK.js} +1 -1
  133. package/chunks/{chunk-2J3OJGTL.js → chunk-K2OJUPOE.js} +1 -21
  134. package/chunks/{chunk-GHY5OIYP.js → chunk-K5PNJ6VL.js} +13 -13
  135. package/chunks/{chunk-NW35NVFN.js → chunk-K6FURWIX.js} +4 -4
  136. package/chunks/{chunk-6NFAEG54.js → chunk-KOJ6MHD5.js} +24 -13
  137. package/chunks/{chunk-A5F63FEW.js → chunk-L436XFLJ.js} +1 -1
  138. package/chunks/{chunk-GIWB5QLV.js → chunk-LJP2BBMK.js} +4 -4
  139. package/chunks/{chunk-FYZMB6DB.js → chunk-LKOSBI2M.js} +11 -11
  140. package/chunks/{create-sub-session-XBCVGNFU.js → chunk-LRKMQPMD.js} +4 -6
  141. package/chunks/{chunk-5HJUPACR.js → chunk-LRLMDV5X.js} +2 -2
  142. package/chunks/{chunk-MHG6NDS6.js → chunk-MB4OCRQ2.js} +2 -2
  143. package/chunks/{chunk-IIWGSX4L.js → chunk-MI7CMXPU.js} +1 -1
  144. package/chunks/{chunk-ZLCT4C5A.js → chunk-MZS7GEC7.js} +1 -1
  145. package/chunks/{chunk-WWUSHZ7M.js → chunk-N4B7VPXK.js} +5 -5
  146. package/chunks/{chunk-BMCSKS37.js → chunk-NUHCXGAD.js} +6 -6
  147. package/chunks/{chunk-XZJKSETB.js → chunk-O3BUXIPM.js} +3 -3
  148. package/chunks/{chunk-4XPSVIED.js → chunk-O5YGAEQS.js} +6 -6
  149. package/chunks/{chunk-ZRFUT5VV.js → chunk-OAAPGZVH.js} +7 -7
  150. package/chunks/{chunk-UU4WC7DK.js → chunk-OGZAQWJP.js} +82 -12
  151. package/chunks/{chunk-5XHAOUWD.js → chunk-OI2DR6QB.js} +3 -3
  152. package/chunks/{chunk-EFB657PR.js → chunk-OX44MOAN.js} +3 -3
  153. package/chunks/{chunk-LURJYO2T.js → chunk-OZ6KS6KW.js} +4 -0
  154. package/chunks/{chunk-4F5WV4RF.js → chunk-PAJGKZAA.js} +281 -10
  155. package/chunks/{chunk-HIK2OF33.js → chunk-PVBT5QPD.js} +1 -1
  156. package/chunks/{chunk-MPHLIJYL.js → chunk-QB5DD75E.js} +14 -8
  157. package/chunks/chunk-QHMLYMMS.js +32 -0
  158. package/chunks/{chunk-4CWDWDL6.js → chunk-RCDXSEJ5.js} +1 -1
  159. package/chunks/{chunk-L4HVF7LM.js → chunk-RQ5ASDFQ.js} +3 -3
  160. package/chunks/{chunk-PXOJLJ5W.js → chunk-RQAMNZ4Y.js} +333 -184
  161. package/chunks/{chunk-K52PZNU4.js → chunk-RRKNX553.js} +2 -2
  162. package/chunks/{chunk-RPJQ3O4M.js → chunk-RUJTCU46.js} +31 -41
  163. package/chunks/{chunk-62JOGZL5.js → chunk-RUQBJS34.js} +199 -87
  164. package/chunks/chunk-RXFQM6FQ.js +42 -0
  165. package/chunks/{chunk-SJ4HB27T.js → chunk-SDVF6A42.js} +3 -3
  166. package/chunks/{chunk-TBVSALA3.js → chunk-SKNVVYIJ.js} +3 -3
  167. package/chunks/{chunk-JGUBDRBC.js → chunk-SLEWBQWM.js} +3 -3
  168. package/chunks/{chunk-UUQFJILB.js → chunk-SQPOJ4ZI.js} +15 -3
  169. package/chunks/{chunk-ISJMN3ML.js → chunk-T2CRBIDJ.js} +1 -1
  170. package/chunks/{chunk-MZKWFWVG.js → chunk-T2HMXHYA.js} +6 -6
  171. package/chunks/{chunk-FEMQ6Y7W.js → chunk-T6OODF2U.js} +47 -126
  172. package/chunks/{chunk-KVGR4MCF.js → chunk-TOF4UZHH.js} +3 -3
  173. package/chunks/{chunk-7HFULI45.js → chunk-TQYZG5DU.js} +3 -3
  174. package/chunks/{chunk-LD5VIJ7S.js → chunk-TWSKM647.js} +1 -1
  175. package/chunks/{chunk-25NESM4G.js → chunk-TWUA5EIL.js} +29 -5
  176. package/chunks/{chunk-6FRJEE2S.js → chunk-U66FXEH2.js} +5 -5
  177. package/chunks/{chunk-7NBVNAJJ.js → chunk-UCSV2IZW.js} +3 -3
  178. package/chunks/chunk-UVDOONRU.js +20 -0
  179. package/chunks/{chunk-FDD2IUEL.js → chunk-UX3IFLJM.js} +229 -21
  180. package/chunks/{chunk-YDJRMQU4.js → chunk-V3GINY6K.js} +3 -3
  181. package/chunks/{chunk-XL5K4SVK.js → chunk-VL4YX3FH.js} +1 -1
  182. package/chunks/{chunk-ZS5BHEPD.js → chunk-VLY6XOBY.js} +1 -1
  183. package/chunks/{chunk-KIVGVFMM.js → chunk-VUZY6MEQ.js} +16 -4
  184. package/chunks/{chunk-OE52YHCZ.js → chunk-W2WRNJKX.js} +11 -11
  185. package/chunks/{chunk-YLFLHKDL.js → chunk-W3N5XAZ6.js} +1 -1
  186. package/chunks/{chunk-IWOWEENB.js → chunk-WBT3STGU.js} +385 -25
  187. package/chunks/{chunk-S3G6YFQC.js → chunk-WEGXPP5E.js} +1 -1
  188. package/chunks/{chunk-RDQ7QB4Y.js → chunk-XJS54K4A.js} +2 -2
  189. package/chunks/{chunk-7JBHIQS2.js → chunk-XO4NGYRP.js} +7 -13
  190. package/chunks/{chunk-F6WFNA7U.js → chunk-XZA32HII.js} +3 -6
  191. package/chunks/{chunk-VEND4KA4.js → chunk-YT5XN3HV.js} +1 -1
  192. package/chunks/{chunk-NUGZAFR2.js → chunk-ZEADBZLO.js} +147 -6
  193. package/chunks/chunk-ZELCTN6Y.js +29 -0
  194. package/chunks/{chunk-TQOF5KBL.js → chunk-ZEZKIS2K.js} +0 -31
  195. package/chunks/{chunk-IOSEW6KP.js → chunk-ZJG323IA.js} +5 -4
  196. package/chunks/{chunk-VSNPOSDN.js → chunk-ZKAZP2ZG.js} +107 -12
  197. package/chunks/{chunk-YMVFIYHV.js → chunk-ZLTEQYNC.js} +2 -2
  198. package/chunks/{chunk-O5BDEWBC.js → chunk-ZWKGZB2K.js} +3 -3
  199. package/chunks/chunk-ZYNTSXWK.js +32 -0
  200. package/chunks/config-utils-YMJNA25D.js +113 -0
  201. package/chunks/contextCommand-WMPSNKPG.js +108 -0
  202. package/chunks/{core-runtime-CES6JSVV.js → core-runtime-6TBMEULI.js} +63 -58
  203. package/chunks/create-sub-session-RVHSWVAP.js +17 -0
  204. package/chunks/{create-sub-session-UJTPMVOG.js → create-sub-session-SAOMTP62.js} +60 -58
  205. package/chunks/{cron-create-IKA56DAF.js → cron-create-IJGVR5R2.js} +4 -4
  206. package/chunks/{cron-delete-K5Q62EGH.js → cron-delete-4N5BI6GL.js} +4 -4
  207. package/chunks/{cron-list-QBFGAMP7.js → cron-list-2CATIPUX.js} +4 -4
  208. package/chunks/{daemon-RZZUPGOJ.js → daemon-NAYK4XXU.js} +51 -24
  209. package/chunks/{daemon-git-worktree-guard-3QY2BQYB.js → daemon-git-worktree-guard-TYLESM6G.js} +338 -92
  210. package/chunks/daemon-status-provider-YBQAZD3G.js +118 -0
  211. package/chunks/daemon-trust-policy-O75ZSIJN.js +114 -0
  212. package/chunks/{daemon-trust-policy-monitor-TK4K7M63.js → daemon-trust-policy-monitor-WWX7I7P6.js} +68 -66
  213. package/chunks/{de-RYUHH2C6.js → de-X6HLSIFE.js} +1 -0
  214. package/chunks/deferred-core-runtime-MGCCR6LA.js +116 -0
  215. package/chunks/{display-image-OEJMJV3S.js → display-image-DR55LL6M.js} +5 -5
  216. package/chunks/dist-4Q7NTUNB.js +2512 -0
  217. package/chunks/{dist-ESS34DHC.js → dist-6H6RZ5H6.js} +2 -2
  218. package/chunks/{dist-LZO24N3E.js → dist-7CKN54NL.js} +1 -1
  219. package/chunks/{dist-5EV2G6MC.js → dist-DJBNNPLN.js} +1 -1
  220. package/chunks/{dist-J6P3C52Z.js → dist-FVJZSIO4.js} +28 -7
  221. package/chunks/{dist-K7IQB53U.js → dist-SATKXKUR.js} +1 -1
  222. package/chunks/{dist-ES6HNUW2.js → dist-TJUDJTCB.js} +246 -17
  223. package/chunks/{dist-VVQBOKDH.js → dist-UQUFZDIY.js} +1 -1
  224. package/chunks/{dist-2OG3PGKO.js → dist-ZBVOXSKF.js} +3 -3
  225. package/chunks/earlyInputCapture-2EJKJET3.js +109 -0
  226. package/chunks/{edit-A2633SLR.js → edit-GBDKI5DZ.js} +48 -48
  227. package/chunks/{en-3RHLPITS.js → en-6MDBWMTG.js} +3 -0
  228. package/chunks/{enter-worktree-OIAHE2TB.js → enter-worktree-UOZ6ZTP7.js} +7 -8
  229. package/chunks/{enterPlanMode-SUGIKLR7.js → enterPlanMode-2KTIPPM3.js} +47 -47
  230. package/chunks/environment-XJ75LJ6N.js +131 -0
  231. package/chunks/errors-XEI3SJRV.js +115 -0
  232. package/chunks/{exit-worktree-3UT3SSWT.js → exit-worktree-G2QATUCV.js} +7 -8
  233. package/chunks/exitPlanMode-AUMYTFIQ.js +85 -0
  234. package/chunks/{fast-path-3AVP3G35.js → fast-path-TU7U2ETU.js} +28 -7
  235. package/chunks/{fast-path-settings-WHX3J3ZI.js → fast-path-settings-XMFBYFUH.js} +2 -2
  236. package/chunks/{fr-4PL5GHG4.js → fr-FTZWF462.js} +1 -0
  237. package/chunks/{gemini-7PVQWHTH.js → gemini-FKMYDP64.js} +129 -123
  238. package/chunks/{geminiContentGenerator-B2FOJJDJ.js → geminiContentGenerator-WSHP7CSR.js} +16 -13
  239. package/chunks/{glob-7YGXE6OV.js → glob-EOM6XK7H.js} +47 -47
  240. package/chunks/{goal-tools-TLJCE7YZ.js → goal-tools-CNVXMSZD.js} +72 -28
  241. package/chunks/{grep-6DV6LTON.js → grep-3NLSS32D.js} +6 -6
  242. package/chunks/handleAutoUpdate-S4CLP36D.js +111 -0
  243. package/chunks/i18n-XX7U2Q3X.js +126 -0
  244. package/chunks/{image-gen-7CSCJ73T.js → image-gen-63NN2H5N.js} +9 -11
  245. package/chunks/initializer-D3CA3272.js +115 -0
  246. package/chunks/installationInfo-HVDQOSIE.js +109 -0
  247. package/chunks/{ja-HZ7X7PQO.js → ja-2GL5FKYJ.js} +1 -0
  248. package/chunks/{keychain-token-storage-MTFTAESK.js → keychain-token-storage-3MGFRYGM.js} +2 -2
  249. package/chunks/list-XUDSTGT3.js +118 -0
  250. package/chunks/{list-agents-43XUEXJV.js → list-agents-EXRSHIDJ.js} +2 -2
  251. package/chunks/loadedSettingsAdapter-ZOJ4QEID.js +112 -0
  252. package/chunks/{loggingContentGenerator-RNE66CKK.js → loggingContentGenerator-TUDGCVUG.js} +27 -30
  253. package/chunks/{loop-wakeup-E54KDUXC.js → loop-wakeup-XBPB2BRO.js} +5 -5
  254. package/chunks/{ls-CGL2UC3H.js → ls-WFONAND2.js} +4 -4
  255. package/chunks/{lsp-5IKUO5DX.js → lsp-DUKPDUXN.js} +2 -2
  256. package/chunks/{managed-npm-update-Y3SC3GLJ.js → managed-npm-update-5K4FWFX2.js} +61 -59
  257. package/chunks/mcp-QJ6AUYE5.js +112 -0
  258. package/chunks/{monitor-PXYSGSUN.js → monitor-UUHIAGT7.js} +47 -47
  259. package/chunks/nonInteractiveCli-PAWO75YO.js +185 -0
  260. package/chunks/{notebook-edit-ISIBJVBR.js → notebook-edit-GZPB3Q57.js} +48 -48
  261. package/chunks/open-with-auth-4UI3KHUR.js +55 -0
  262. package/chunks/{openaiContentGenerator-6TBOPEGT.js → openaiContentGenerator-RPP6YBS3.js} +29 -30
  263. package/chunks/pidfile-RF3WUFKR.js +113 -0
  264. package/chunks/{processUtils-YK2TDTTU.js → processUtils-ENAY2GSA.js} +2 -2
  265. package/chunks/prompt-terminal-ledger-4CCXZ2LF.js +107 -0
  266. package/chunks/{pt-QT5N2Q6Q.js → pt-XN2YWJVM.js} +1 -0
  267. package/chunks/{qwenContentGenerator-CLDMA2Y4.js → qwenContentGenerator-GLUZVJAU.js} +53 -59
  268. package/chunks/{qwenOAuth2-DLDR6UC5.js → qwenOAuth2-JIYAWXTW.js} +8 -10
  269. package/chunks/{read-file-2HOD2ATO.js → read-file-75R5LUWQ.js} +13 -14
  270. package/chunks/{read-mcp-resource-XYES2B42.js → read-mcp-resource-7A7NFSFL.js} +2 -2
  271. package/chunks/read-package-up-6T6ICKR7.js +13 -0
  272. package/chunks/{record-artifact-W3IBTGL7.js → record-artifact-CPJ4IJSD.js} +4 -5
  273. package/chunks/report-findings-VFM5DENC.js +33 -0
  274. package/chunks/request-shutdown-AXVOFN5C.js +133 -0
  275. package/chunks/resumeHistoryUtils-GFPJD2XB.js +120 -0
  276. package/chunks/ripGrep-FNLXQYBS.js +39 -0
  277. package/chunks/{ru-STMG5BPD.js → ru-OLTMFJEW.js} +1 -0
  278. package/chunks/{run-qwen-serve-XJHOW2NY.js → run-qwen-serve-FJD4VMI2.js} +622 -79
  279. package/chunks/{runtime-J4SPTJRQ.js → runtime-INDSJB4K.js} +73 -71
  280. package/chunks/{scheduler-VRAEZZ4E.js → scheduler-Z52TCSUG.js} +62 -60
  281. package/chunks/{sdk-exporters-http-RSIOP3G2.js → sdk-exporters-http-XXSKBD2C.js} +5 -5
  282. package/chunks/{sdk-impl-CB3KARSK.js → sdk-impl-VPNBLV7I.js} +7 -7
  283. package/chunks/{send-message-J4VT46OI.js → send-message-A2GXDX3B.js} +10 -31
  284. package/chunks/serve-GVD2WXVL.js +120 -0
  285. package/chunks/{server-74ONDK62.js → server-PSN5OOSX.js} +965 -405
  286. package/chunks/{session-BO6VBWJP.js → session-JPE34X6Q.js} +151 -140
  287. package/chunks/{settings-35QZNFDG.js → settings-IVGC4UYK.js} +71 -69
  288. package/chunks/shell-A5PZGPBR.js +95 -0
  289. package/chunks/{skill-DKEMQSNJ.js → skill-UUXQPDEH.js} +108 -25
  290. package/chunks/skill-settings-WVRXLTK4.js +120 -0
  291. package/chunks/spawnChannel-KTURLD4B.js +113 -0
  292. package/chunks/standalone-update-IRFRNGAA.js +120 -0
  293. package/chunks/{startInteractiveUI-J2QSGWPU.js → startInteractiveUI-MC4GLL6G.js} +381 -293
  294. package/chunks/{syntheticOutput-JAXMIMZP.js → syntheticOutput-5AJ444QT.js} +3 -3
  295. package/chunks/{task-create-I2H322E4.js → task-create-CDJSOEQD.js} +11 -11
  296. package/chunks/{task-list-3OLIWFTQ.js → task-list-BELMPA75.js} +5 -5
  297. package/chunks/{task-stop-JAUY6MSY.js → task-stop-U3S3KZG2.js} +2 -2
  298. package/chunks/{task-update-B3XO4CPI.js → task-update-77VCFDDZ.js} +11 -11
  299. package/chunks/{team-create-W534PMGX.js → team-create-WO5ZBCFW.js} +48 -48
  300. package/chunks/{team-delete-Q7GE7RRI.js → team-delete-YWFXX77L.js} +5 -5
  301. package/chunks/{team-plan-approval-WNV6P6NG.js → team-plan-approval-KAVKRN7U.js} +47 -47
  302. package/chunks/terminal-image-renderer-SMRRNI6Z.js +116 -0
  303. package/chunks/theme-manager-A7CPN7F4.js +104 -0
  304. package/chunks/{todoWrite-FJJTY2TI.js → todoWrite-435EO2CS.js} +4 -4
  305. package/chunks/{tool-search-Y4KL3LRE.js → tool-search-FBN6OC6U.js} +18 -19
  306. package/chunks/total-session-admission-B7U6UWKQ.js +114 -0
  307. package/chunks/trustedFolders-B4LPJBFK.js +124 -0
  308. package/chunks/{update-relaunch-OHVFN6KF.js → update-relaunch-X5TJVKVG.js} +6 -6
  309. package/chunks/updateCheck-JCLP5JFT.js +120 -0
  310. package/chunks/useAutoAcceptIndicator-VBT3NKDM.js +122 -0
  311. package/chunks/{validateNonInterActiveAuth-WJXH426F.js → validateNonInterActiveAuth-W7HYH5ZN.js} +113 -106
  312. package/chunks/{version-QMDRADXM.js → version-JG4J76GL.js} +2 -2
  313. package/chunks/{web-fetch-ROS6P4LP.js → web-fetch-SPLMEDWF.js} +25 -242
  314. package/chunks/{web-search-JS3E76O6.js → web-search-PNW6OEH6.js} +11 -11
  315. package/chunks/{web-shell-static-3NUTRHAH.js → web-shell-static-A6QMUNNV.js} +11 -4
  316. package/chunks/webapi-Z5OM224P.js +4118 -0
  317. package/chunks/{workflow-2FCMBTBZ.js → workflow-QHOIIXJO.js} +635 -94
  318. package/chunks/workspace-providers-status-653DTR35.js +116 -0
  319. package/chunks/{workspace-registration-store-SU4EJKSD.js → workspace-registration-store-H375IYR2.js} +1 -1
  320. package/chunks/workspace-registry-XTLCD7Z2.js +123 -0
  321. package/chunks/workspace-service-KVJWACCS.js +131 -0
  322. package/chunks/workspace-skills-status-TRJ2VWGU.js +115 -0
  323. package/chunks/{workspace-trust-reconciler-4Y4F7XIX.js → workspace-trust-reconciler-6SC6RKQE.js} +74 -73
  324. package/chunks/write-file-EAZSJZKR.js +90 -0
  325. package/chunks/{zh-TW-NX43Z2S2.js → zh-TW-MV4FWFB6.js} +3 -0
  326. package/chunks/{zh-3JQ75KFU.js → zh-X3WGU6SI.js} +3 -0
  327. package/chunks/{zoom-image-DNBKCGGF.js → zoom-image-WGNPZ572.js} +13 -14
  328. package/cli.js +15 -15
  329. package/locales/ca.js +3 -0
  330. package/locales/de.js +1 -0
  331. package/locales/en.js +3 -0
  332. package/locales/fr.js +1 -0
  333. package/locales/ja.js +1 -0
  334. package/locales/pt.js +1 -0
  335. package/locales/ru.js +1 -0
  336. package/locales/zh-TW.js +3 -0
  337. package/locales/zh.js +3 -0
  338. package/package.json +3 -3
  339. package/web-shell/assets/{abnfDiagram-VCTEODGH-DWHXEVlf.js → abnfDiagram-VCTEODGH-yq7z7Anb.js} +1 -1
  340. package/web-shell/assets/{arc-CXKjm86V.js → arc-CbJO0xnT.js} +1 -1
  341. package/web-shell/assets/{architectureDiagram-5GKGNRK7-B_ynI0cX.js → architectureDiagram-5GKGNRK7-CRh89421.js} +1 -1
  342. package/web-shell/assets/{blockDiagram-NRAW4CY4-DMebd9X0.js → blockDiagram-NRAW4CY4-C75KAhKv.js} +1 -1
  343. package/web-shell/assets/{c4Diagram-UCG6FXSJ-BZ5BlxS-.js → c4Diagram-UCG6FXSJ-BzlMveFB.js} +1 -1
  344. package/web-shell/assets/channel-B3sGR79J.js +1 -0
  345. package/web-shell/assets/{chunk-2Q5K7J3B-CluJKopE.js → chunk-2Q5K7J3B-DA8QDX3a.js} +1 -1
  346. package/web-shell/assets/{chunk-5VM5RSS4-hzDAPFOo.js → chunk-5VM5RSS4-Bgu7gQ7Y.js} +1 -1
  347. package/web-shell/assets/{chunk-F27PBJKO-6vHioKJe.js → chunk-F27PBJKO-BOew7pIK.js} +1 -1
  348. package/web-shell/assets/{chunk-G27WJ6UU-B_5hKTGo.js → chunk-G27WJ6UU-DHx1I-hO.js} +1 -1
  349. package/web-shell/assets/{chunk-JWPE2WC7-CO9VoFCH.js → chunk-JWPE2WC7-SarFW0WU.js} +1 -1
  350. package/web-shell/assets/{chunk-LCL6LL3I-7L5JpxYu.js → chunk-LCL6LL3I-BLzP083Z.js} +1 -1
  351. package/web-shell/assets/{chunk-POPQ4Y6H-DHLJMAqj.js → chunk-POPQ4Y6H-Bmkv_iKm.js} +1 -1
  352. package/web-shell/assets/{chunk-SVP7TREG-Dt-4Cqdl.js → chunk-SVP7TREG-MPx9r1N2.js} +1 -1
  353. package/web-shell/assets/{chunk-XXDRQBXY-QlSQ3ssG.js → chunk-XXDRQBXY-Ck-09rKG.js} +1 -1
  354. package/web-shell/assets/classDiagram-DTDB5LWJ-sTGo0K3v.js +1 -0
  355. package/web-shell/assets/classDiagram-v2-JRS7N3AN-sTGo0K3v.js +1 -0
  356. package/web-shell/assets/{cose-bilkent-JH36ORCC-DMw3EOxl.js → cose-bilkent-JH36ORCC-DWm6lfOG.js} +1 -1
  357. package/web-shell/assets/{cynefin-OW5HDTMX-s6vEA7RQ.js → cynefin-OW5HDTMX-DcBUyr5R.js} +1 -1
  358. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-AOKsvYLt.js → cynefinDiagram-5FMLGOSQ-Df8qmd_p.js} +1 -1
  359. package/web-shell/assets/{dagre-3AP2YEHR-9QAZn3m7.js → dagre-3AP2YEHR-DDmGspD7.js} +1 -1
  360. package/web-shell/assets/{diagram-S7CK7UJ4-CWpnu4FN.js → diagram-S7CK7UJ4-BK_qFvbi.js} +1 -1
  361. package/web-shell/assets/{diagram-UQ7AKVKN-9l0jXD8q.js → diagram-UQ7AKVKN-Uw3AP_bi.js} +1 -1
  362. package/web-shell/assets/{diagram-VSXAHHWV-BMUHroj4.js → diagram-VSXAHHWV-CJOQKxY7.js} +1 -1
  363. package/web-shell/assets/{diagram-VX7I27RA-Co9x27vm.js → diagram-VX7I27RA-DhdvZna5.js} +1 -1
  364. package/web-shell/assets/{diagram-Z3DM3KII-BKnTeOER.js → diagram-Z3DM3KII-edQU0nlP.js} +1 -1
  365. package/web-shell/assets/{ebnfDiagram-PWID7BFC-QBZD9CKG.js → ebnfDiagram-PWID7BFC-4kugBEsO.js} +1 -1
  366. package/web-shell/assets/{erDiagram-SSCWMZ5O-dKWAEGun.js → erDiagram-SSCWMZ5O-BMkFivWO.js} +1 -1
  367. package/web-shell/assets/{flowDiagram-A5DVABFB-CR_UgVqj.js → flowDiagram-A5DVABFB-BM1ea8g-.js} +1 -1
  368. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DQUnjWO6.js → ganttDiagram-EL5Y4UJY-CXj_cKRf.js} +1 -1
  369. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-C4j59wPL.js → gitGraphDiagram-WWUBYQGX-D0nEqwqu.js} +1 -1
  370. package/web-shell/assets/{index-tYXRIPz4.js → index-B6JN54Pd.js} +1 -1
  371. package/web-shell/assets/{index-BN_m_uHJ.css → index-C-XlQn24.css} +1 -1
  372. package/web-shell/assets/index-DLjXM0dn.js +1860 -0
  373. package/web-shell/assets/{infoDiagram-RXCK75RN-mzqbt50w.js → infoDiagram-RXCK75RN-DF7aGGbQ.js} +1 -1
  374. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-ChLOqhGl.js → ishikawaDiagram-5VMMS53U-CZYNX1lL.js} +1 -1
  375. package/web-shell/assets/{journeyDiagram-EYS64GPL-SifZE-R8.js → journeyDiagram-EYS64GPL-CvrqMUz1.js} +1 -1
  376. package/web-shell/assets/{kanban-definition-3QL26DDD-Sft2qlbc.js → kanban-definition-3QL26DDD-BZNJQZBj.js} +1 -1
  377. package/web-shell/assets/{layout-O2uHVkPd.js → layout-Bf83x7D6.js} +1 -1
  378. package/web-shell/assets/{linear-BVqYgjSc.js → linear-Bkc3ES2f.js} +1 -1
  379. package/web-shell/assets/{mermaid.core-CZ9MQaJ6.js → mermaid.core-C6xuovwz.js} +6 -6
  380. package/web-shell/assets/{mindmap-definition-FBJOCRG2-BNQYjBqM.js → mindmap-definition-FBJOCRG2-DzH6gVRg.js} +1 -1
  381. package/web-shell/assets/{pegDiagram-XKGWAZYB-rh1J8uv6.js → pegDiagram-XKGWAZYB-DCvLh2fa.js} +1 -1
  382. package/web-shell/assets/{pieDiagram-E7YTZNPT-BQHR5mn9.js → pieDiagram-E7YTZNPT-BtjVlx_6.js} +1 -1
  383. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CLCbP7mK.js → quadrantDiagram-AXDQQJYC-IbroqxFe.js} +1 -1
  384. package/web-shell/assets/{railroadDiagram-O6MQD6OU-CDQhrkbm.js → railroadDiagram-O6MQD6OU-BvMykiWW.js} +1 -1
  385. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BdP9uswg.js → requirementDiagram-EFPCY7ZU-D-HHMyrh.js} +1 -1
  386. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CFZDFBXF.js → sankeyDiagram-P5KCCOFB-C0XXhB6d.js} +1 -1
  387. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BW9WOJXI.js → sequenceDiagram-WJ2MYXX4-DseAXj5d.js} +1 -1
  388. package/web-shell/assets/{sizeCapture-X5ZJPWSS-CPMia32z.js → sizeCapture-X5ZJPWSS-Cek2EweK.js} +1 -1
  389. package/web-shell/assets/{stateDiagram-HBIQ2CUA-BANp9p7F.js → stateDiagram-HBIQ2CUA-yLv8wafW.js} +1 -1
  390. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DeThXnol.js +1 -0
  391. package/web-shell/assets/{swimlanes-XN3QIQJK-JroXksK-.js → swimlanes-XN3QIQJK-Cwz-opvE.js} +1 -1
  392. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-GW0R1ZSv.js +8 -0
  393. package/web-shell/assets/{timeline-definition-24CTP7MA-DfuVIfYY.js → timeline-definition-24CTP7MA-BJuFD7OG.js} +1 -1
  394. package/web-shell/assets/{vennDiagram-4TSXK5OY-BZXoSjRB.js → vennDiagram-4TSXK5OY-CNAavdoV.js} +1 -1
  395. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BdiY8avC.js → wardleyDiagram-VM6X3IG4-DaIjAidq.js} +1 -1
  396. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-DcXh_U4H.js → xychartDiagram-S5SC5T6Z-DkcQXjTy.js} +1 -1
  397. package/web-shell/index.html +19 -4
  398. package/chunks/MaxSizedBox-3OZJCC3J.js +0 -110
  399. package/chunks/agent-BFE3DQM3.js +0 -93
  400. package/chunks/agent-headless-LLVKZZ4P.js +0 -87
  401. package/chunks/bridge-EBYO4SYM.js +0 -118
  402. package/chunks/channel-settings-store-5VP2Y2YM.js +0 -115
  403. package/chunks/chunk-AXMWHKXA.js +0 -42
  404. package/chunks/chunk-IO257NUD.js +0 -623
  405. package/chunks/chunk-YHC2EYYG.js +0 -125
  406. package/chunks/computer-use-EGPWFEX6.js +0 -2142
  407. package/chunks/config-utils-WZ43VOBS.js +0 -25
  408. package/chunks/contextCommand-5DSEQI6S.js +0 -106
  409. package/chunks/daemon-status-provider-EYMLPYJU.js +0 -116
  410. package/chunks/daemon-trust-policy-CQYKZ7VO.js +0 -112
  411. package/chunks/deferred-core-runtime-WFEPUXZR.js +0 -114
  412. package/chunks/earlyInputCapture-PN4PP7V5.js +0 -107
  413. package/chunks/environment-WUPHLPKZ.js +0 -127
  414. package/chunks/errors-WPMPVIAT.js +0 -113
  415. package/chunks/exitPlanMode-MLFHYZNB.js +0 -85
  416. package/chunks/handleAutoUpdate-F5OTWUT5.js +0 -109
  417. package/chunks/i18n-C562S6KN.js +0 -124
  418. package/chunks/initializer-7YPGOFP4.js +0 -113
  419. package/chunks/installationInfo-ARU5Q2H7.js +0 -107
  420. package/chunks/list-KTSK275C.js +0 -116
  421. package/chunks/loadedSettingsAdapter-F3T2EQ5J.js +0 -110
  422. package/chunks/mcp-6ONTVPAY.js +0 -110
  423. package/chunks/nonInteractiveCli-KZDWFAN6.js +0 -178
  424. package/chunks/pidfile-IO7ALSZF.js +0 -111
  425. package/chunks/prompt-terminal-ledger-TCE7PMCE.js +0 -105
  426. package/chunks/resumeHistoryUtils-DDSBAQJS.js +0 -118
  427. package/chunks/ripGrep-E7P6K4QR.js +0 -40
  428. package/chunks/serve-KEAWV4TI.js +0 -118
  429. package/chunks/shell-H6K63WG3.js +0 -95
  430. package/chunks/skill-settings-TCKLXIXM.js +0 -118
  431. package/chunks/spawnChannel-2K6NKWM5.js +0 -111
  432. package/chunks/standalone-update-LSCGOEFP.js +0 -118
  433. package/chunks/terminal-image-renderer-UHX3UD66.js +0 -114
  434. package/chunks/theme-manager-6B47ZPIF.js +0 -102
  435. package/chunks/total-session-admission-NSCFWGJH.js +0 -113
  436. package/chunks/trustedFolders-7XMJWGQ3.js +0 -122
  437. package/chunks/updateCheck-EOVLHD4T.js +0 -118
  438. package/chunks/useAutoAcceptIndicator-ZNMIGBTN.js +0 -120
  439. package/chunks/workspace-providers-status-GPGU5YMT.js +0 -113
  440. package/chunks/workspace-registry-BQISXT6Y.js +0 -122
  441. package/chunks/workspace-service-LLY6HCUC.js +0 -129
  442. package/chunks/workspace-skills-status-L5N2Y3ZP.js +0 -113
  443. package/chunks/write-file-EJHU2Z3E.js +0 -90
  444. package/web-shell/assets/channel-Zg3WHgq_.js +0 -1
  445. package/web-shell/assets/classDiagram-DTDB5LWJ-C16l9jQz.js +0 -1
  446. package/web-shell/assets/classDiagram-v2-JRS7N3AN-C16l9jQz.js +0 -1
  447. package/web-shell/assets/index-DrlJu79f.js +0 -1792
  448. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-NZYAoQLU.js +0 -1
  449. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-3YdVX3vj.js +0 -8
@@ -4,97 +4,100 @@ import {
4
4
  EXTERNAL_TOOL_GUARD_MAX_DENIAL_REASON_CHARS,
5
5
  SHELL_EXECUTING_TOOL_NAMES
6
6
  } from "./chunk-3VUENPWF.js";
7
- import "./chunk-62JOGZL5.js";
8
- import "./chunk-5HJUPACR.js";
9
- import "./chunk-2GXYDNXP.js";
10
- import "./chunk-TBVSALA3.js";
11
- import "./chunk-7NBVNAJJ.js";
12
- import "./chunk-MZKWFWVG.js";
13
- import "./chunk-2Z6LSQMF.js";
14
- import "./chunk-RDQ7QB4Y.js";
7
+ import "./chunk-RUQBJS34.js";
8
+ import "./chunk-LRLMDV5X.js";
9
+ import "./chunk-LRKMQPMD.js";
10
+ import "./chunk-LJZSMWOH.js";
11
+ import "./chunk-H2MDBYLL.js";
12
+ import "./chunk-JLGFGPZJ.js";
13
+ import "./chunk-SKNVVYIJ.js";
14
+ import "./chunk-UCSV2IZW.js";
15
+ import "./chunk-T2HMXHYA.js";
16
+ import "./chunk-3FSBMAYD.js";
17
+ import "./chunk-XJS54K4A.js";
15
18
  import "./chunk-ZPJWUGCS.js";
16
- import "./chunk-O5BDEWBC.js";
17
- import "./chunk-KM73TBQ4.js";
18
- import "./chunk-EFB657PR.js";
19
- import "./chunk-T6XLJRQY.js";
19
+ import "./chunk-ZWKGZB2K.js";
20
+ import "./chunk-OX44MOAN.js";
21
+ import "./chunk-D6XO27Z5.js";
20
22
  import "./chunk-GOFAQQZA.js";
23
+ import "./chunk-5M6IDOMF.js";
21
24
  import "./chunk-TWPJO254.js";
22
25
  import "./chunk-CQ35AJ4Z.js";
23
- import "./chunk-5M6IDOMF.js";
24
- import "./chunk-KVGR4MCF.js";
25
- import "./chunk-XZJKSETB.js";
26
- import "./chunk-YMVFIYHV.js";
26
+ import "./chunk-3UZCLCXR.js";
27
+ import "./chunk-TOF4UZHH.js";
28
+ import "./chunk-O3BUXIPM.js";
29
+ import "./chunk-ZLTEQYNC.js";
27
30
  import "./chunk-6PVPNMXU.js";
28
- import "./chunk-7DYNJFES.js";
29
- import "./chunk-DJEHYM4H.js";
31
+ import "./chunk-AYVIGUUK.js";
30
32
  import "./chunk-IRH27ZC2.js";
31
33
  import "./chunk-QHWCP53L.js";
32
- import "./chunk-AZF6SME3.js";
34
+ import "./chunk-JECO75XD.js";
33
35
  import "./chunk-O6GEWCJA.js";
34
36
  import "./chunk-T26EAKDL.js";
35
37
  import {
36
38
  GitWorktreeService
37
- } from "./chunk-GIWB5QLV.js";
39
+ } from "./chunk-LJP2BBMK.js";
38
40
  import "./chunk-CPBF7KYF.js";
39
- import "./chunk-VUMLT7E5.js";
40
- import "./chunk-ISJMN3ML.js";
41
- import "./chunk-XLDFW44M.js";
42
- import "./chunk-Q54XG7IX.js";
41
+ import "./chunk-5Y2JCJAH.js";
42
+ import "./chunk-T2CRBIDJ.js";
43
+ import "./chunk-77TOMRBG.js";
44
+ import "./chunk-DEYPMJPD.js";
43
45
  import {
46
+ getShellConfiguration,
44
47
  require_shell_quote,
45
48
  splitCommands
46
- } from "./chunk-FEMQ6Y7W.js";
47
- import "./chunk-2TRNCJK4.js";
48
- import "./chunk-NUGZAFR2.js";
49
- import "./chunk-LDGWX737.js";
50
- import "./chunk-VLRBJ24J.js";
49
+ } from "./chunk-T6OODF2U.js";
50
+ import "./chunk-27ONXAFY.js";
51
+ import "./chunk-ZEADBZLO.js";
52
+ import "./chunk-FN5C6C7G.js";
53
+ import "./chunk-BVE5EMIG.js";
51
54
  import "./chunk-MLXTMF7H.js";
52
55
  import "./chunk-NAVJD2PQ.js";
53
- import "./chunk-WRT324N6.js";
54
- import "./chunk-YDJRMQU4.js";
55
- import "./chunk-SJ4HB27T.js";
56
+ import "./chunk-FVDQ5E67.js";
57
+ import "./chunk-V3GINY6K.js";
58
+ import "./chunk-QHMLYMMS.js";
59
+ import "./chunk-SDVF6A42.js";
56
60
  import "./chunk-P3QQPMQA.js";
57
- import "./chunk-2UZJWSVD.js";
61
+ import "./chunk-ILPXSKGQ.js";
58
62
  import "./chunk-VNOVK4I7.js";
59
63
  import "./chunk-SAH4BD2J.js";
60
- import "./chunk-VSNPOSDN.js";
61
- import "./chunk-I432KXWD.js";
64
+ import "./chunk-ZKAZP2ZG.js";
65
+ import "./chunk-DP7LABIB.js";
62
66
  import "./chunk-S6LOFUVP.js";
63
- import "./chunk-7IV52LTO.js";
64
- import "./chunk-AXMWHKXA.js";
67
+ import "./chunk-2LD5U7Q3.js";
65
68
  import "./chunk-DJ2GSRLV.js";
66
- import "./chunk-2J3OJGTL.js";
67
- import "./chunk-LI4YHTQK.js";
68
- import "./chunk-QKBYFU2Q.js";
69
- import "./chunk-C72BXMJ5.js";
70
- import "./chunk-FDD2IUEL.js";
69
+ import "./chunk-I6VVOZDK.js";
70
+ import "./chunk-K2OJUPOE.js";
71
+ import "./chunk-CFKIH3D3.js";
72
+ import "./chunk-EB4VDXNI.js";
73
+ import "./chunk-FJWICLG7.js";
74
+ import "./chunk-UX3IFLJM.js";
71
75
  import "./chunk-YRLW2MSX.js";
72
76
  import "./chunk-VGC4I5JJ.js";
73
77
  import {
74
78
  isWithinRoot
75
- } from "./chunk-IWOWEENB.js";
76
- import "./chunk-HIK2OF33.js";
77
- import "./chunk-ZRYQMWEP.js";
78
- import "./chunk-2E3V7G6Y.js";
79
- import "./chunk-F6WFNA7U.js";
79
+ } from "./chunk-WBT3STGU.js";
80
+ import "./chunk-PVBT5QPD.js";
81
+ import "./chunk-IPQA4SR5.js";
80
82
  import "./chunk-WZAD4ZNJ.js";
81
83
  import "./chunk-FPGTNKCP.js";
82
- import "./chunk-YHC2EYYG.js";
83
- import "./chunk-PZRUV52H.js";
84
- import "./chunk-JGUBDRBC.js";
85
- import "./chunk-HDKCKCYO.js";
84
+ import "./chunk-SLEWBQWM.js";
85
+ import "./chunk-4X5GYZFO.js";
86
+ import "./chunk-XZA32HII.js";
87
+ import "./chunk-7QGEJI7M.js";
88
+ import "./chunk-GTUKW3I6.js";
86
89
  import "./chunk-HHJLM3WQ.js";
87
- import "./chunk-GAHYKJPV.js";
90
+ import "./chunk-6US7BF3G.js";
88
91
  import "./chunk-74TONY4F.js";
89
- import "./chunk-XL5K4SVK.js";
90
- import "./chunk-WZDM44SB.js";
91
- import "./chunk-K623ENWT.js";
92
+ import "./chunk-VL4YX3FH.js";
93
+ import "./chunk-JUIJ3FXC.js";
94
+ import "./chunk-E6FGMDFQ.js";
92
95
  import "./chunk-AQ37AY7B.js";
93
- import "./chunk-K52PZNU4.js";
94
- import "./chunk-6NFAEG54.js";
96
+ import "./chunk-RRKNX553.js";
97
+ import "./chunk-KOJ6MHD5.js";
95
98
  import {
96
99
  realpathNearestExistingAsync
97
- } from "./chunk-A5F2YNO6.js";
100
+ } from "./chunk-2NNTE2ED.js";
98
101
  import "./chunk-75DOP5OR.js";
99
102
  import "./chunk-DMTGGOSA.js";
100
103
  import "./chunk-YQ3U5MUC.js";
@@ -183,6 +186,17 @@ var GIT_UNRESOLVABLE_ENV_KEYS = /* @__PURE__ */ new Set([
183
186
  var GIT_NUMBERED_CONFIG_ENV_PATTERN = /^GIT_CONFIG_(KEY|VALUE)_\d+$/;
184
187
  var SHELL_WRAPPER_PROGRAMS = /* @__PURE__ */ new Set(["bash", "dash", "ksh", "sh", "zsh"]);
185
188
  var SHELL_WRAPPER_VALUE_FLAGS = /* @__PURE__ */ new Set(["-o", "-O"]);
189
+ var WINDOWS_SHELL_PROGRAMS = /* @__PURE__ */ new Set(["cmd", "powershell", "pwsh"]);
190
+ var POWERSHELL_LOCATION_PROGRAMS = /* @__PURE__ */ new Set([
191
+ "set-location",
192
+ "sl",
193
+ "push-location",
194
+ "pop-location"
195
+ ]);
196
+ var POWERSHELL_ENV_MUTATION_PATTERNS = [
197
+ /^\$\{?env:[A-Za-z_][A-Za-z0-9_]*\}?\s*\+?=(?!=)/i,
198
+ /^\[Environment\]::SetEnvironmentVariable\s*\(/i
199
+ ];
186
200
  function shellBundleRequestsCommand(flag) {
187
201
  if (!flag.startsWith("-") || flag.startsWith("--")) return false;
188
202
  return flag.slice(1).includes("c");
@@ -233,6 +247,14 @@ var SUDO_CHDIR_FLAGS = /* @__PURE__ */ new Set(["-D", "--chdir"]);
233
247
  var SUDO_CHROOT_FLAGS = /* @__PURE__ */ new Set(["-R", "--chroot"]);
234
248
  var TIMEOUT_VALUE_FLAGS = /* @__PURE__ */ new Set(["-k", "-s", "--kill-after", "--signal"]);
235
249
  var PATH_RELINKING_PROGRAMS = /* @__PURE__ */ new Set(["cp", "ln", "mv"]);
250
+ var WIN32_PATH_RELINKING_PROGRAMS = /* @__PURE__ */ new Set([
251
+ ...PATH_RELINKING_PROGRAMS,
252
+ "copy",
253
+ "mklink",
254
+ "move",
255
+ "robocopy",
256
+ "xcopy"
257
+ ]);
236
258
  var PATH_EXTRACTING_PROGRAMS = /* @__PURE__ */ new Set(["cpio", "rsync", "tar", "unzip"]);
237
259
  var PROGRAMS_WITH_OWN_C_FLAG = /* @__PURE__ */ new Set([
238
260
  "cmake",
@@ -255,6 +277,8 @@ var EXTERNAL_GUARD_UNSUPPORTED_TOOLS = /* @__PURE__ */ new Set([
255
277
  ]);
256
278
  var DYNAMIC_RELOCATION_DENIAL = "Daemon shell guard denied a mutating Git command with a dynamic repository location.";
257
279
  var UNPARSEABLE_COMMAND_DENIAL = "Daemon shell guard denied a shell command that could not be parsed before execution.";
280
+ var CMD_REWRITE_SYNTAX_DENIAL = "Daemon shell guard denied a shell command containing cmd.exe rewrite syntax it cannot evaluate before execution.";
281
+ var WINDOWS_UNMODELLED_SYNTAX_DENIAL = "Daemon shell guard denied a shell command containing Windows shell syntax it cannot evaluate before execution.";
258
282
  var UNRESOLVED_TARGET_DENIAL_PREFIX = "Daemon shell guard denied a mutating Git command with an unresolvable repository location: ";
259
283
  var OUTSIDE_TARGET_DENIAL_PREFIX = "Daemon shell guard denied a mutating Git command outside the session working directory: ";
260
284
  var UNDECIDABLE_PAYLOAD_DENIAL = "Daemon shell guard denied a shell command whose payload could not be resolved before execution.";
@@ -326,6 +350,135 @@ var REDIRECT_OPERATORS = /* @__PURE__ */ new Set([
326
350
  "&>",
327
351
  "&>>"
328
352
  ]);
353
+ var WINDOWS_CMD_BOUNDARY_CHARS = /* @__PURE__ */ new Set([
354
+ " ",
355
+ " ",
356
+ ";",
357
+ "|",
358
+ "&",
359
+ "<",
360
+ ">",
361
+ "(",
362
+ ")"
363
+ ]);
364
+ function preserveWindowsPathSeparators(segment, platform = process.platform, shell = getShellConfiguration().shell) {
365
+ if (platform !== "win32" || shell === "bash") return segment;
366
+ let single = false;
367
+ let double = false;
368
+ let out = "";
369
+ for (let index = 0; index < segment.length; index++) {
370
+ const character = segment[index];
371
+ if (single) {
372
+ if (character === "'") single = false;
373
+ out += character;
374
+ continue;
375
+ }
376
+ if (double) {
377
+ if (character === '"') {
378
+ double = false;
379
+ } else if (character === "\\") {
380
+ out += "\\\\";
381
+ continue;
382
+ }
383
+ out += character;
384
+ continue;
385
+ }
386
+ if (character === "'") {
387
+ single = true;
388
+ out += character;
389
+ continue;
390
+ }
391
+ if (character === '"') {
392
+ double = true;
393
+ out += character;
394
+ continue;
395
+ }
396
+ if (character === "\\") {
397
+ const next = segment[index + 1];
398
+ out += next !== void 0 && WINDOWS_CMD_BOUNDARY_CHARS.has(next) ? '"\\\\"' : "\\\\";
399
+ continue;
400
+ }
401
+ out += character;
402
+ }
403
+ return out;
404
+ }
405
+ __name(preserveWindowsPathSeparators, "preserveWindowsPathSeparators");
406
+ function containsCmdRewriteSyntax(segment, platform = process.platform, shell = getShellConfiguration().shell) {
407
+ if (platform !== "win32" || shell !== "cmd") return false;
408
+ let doubleQuoted = false;
409
+ let percents = 0;
410
+ let bangs = 0;
411
+ for (const character of segment) {
412
+ if (character === '"') {
413
+ doubleQuoted = !doubleQuoted;
414
+ continue;
415
+ }
416
+ if (character === "^" && !doubleQuoted) return true;
417
+ if (character === "%") percents++;
418
+ else if (character === "!") bangs++;
419
+ }
420
+ return percents >= 2 || bangs >= 2;
421
+ }
422
+ __name(containsCmdRewriteSyntax, "containsCmdRewriteSyntax");
423
+ function containsUnmodelledWindowsSyntax(command, platform = process.platform, shell = getShellConfiguration().shell) {
424
+ if (platform !== "win32" || shell === "bash") return false;
425
+ const trimmed = command.trim();
426
+ if (shell === "cmd" && trimmed.length > 1 && trimmed.startsWith('"') && trimmed.endsWith('"') && trimmed.slice(1, -1).includes('"')) {
427
+ return true;
428
+ }
429
+ let single = false;
430
+ let double = false;
431
+ for (let index = 0; index < command.length; index++) {
432
+ const character = command[index];
433
+ if (single) {
434
+ if (character === "'") {
435
+ if (shell === "powershell" && command[index + 1] === "'") return true;
436
+ single = false;
437
+ }
438
+ continue;
439
+ }
440
+ if (double) {
441
+ if (character === '"') double = false;
442
+ continue;
443
+ }
444
+ if (character === "'") {
445
+ if (shell === "cmd") return true;
446
+ single = true;
447
+ continue;
448
+ }
449
+ if (character === '"') {
450
+ double = true;
451
+ continue;
452
+ }
453
+ if (character === "(" || character === ")") return true;
454
+ if (character === "&") {
455
+ if (command[index + 1] === "&") {
456
+ index++;
457
+ continue;
458
+ }
459
+ if (command[index + 1] === ">") {
460
+ index += command[index + 2] === ">" ? 2 : 1;
461
+ continue;
462
+ }
463
+ const previous = command[index - 1];
464
+ if (previous === ">" || previous === "<") continue;
465
+ return true;
466
+ }
467
+ if (shell === "cmd" && (character === "#" || character === ";")) {
468
+ return true;
469
+ }
470
+ if (shell === "powershell" && command.startsWith("--%", index)) {
471
+ return true;
472
+ }
473
+ if (shell === "powershell" && POWERSHELL_ENV_MUTATION_PATTERNS.some(
474
+ (pattern) => pattern.test(command.slice(index))
475
+ )) {
476
+ return true;
477
+ }
478
+ }
479
+ return false;
480
+ }
481
+ __name(containsUnmodelledWindowsSyntax, "containsUnmodelledWindowsSyntax");
329
482
  function tokenizeSegment(segment, startDepth) {
330
483
  let parsed;
331
484
  try {
@@ -448,12 +601,13 @@ function hasGitRelocationMarker(tokens) {
448
601
  }
449
602
  __name(hasGitRelocationMarker, "hasGitRelocationMarker");
450
603
  var GIT_WORD_PATTERN = /\bgit\b/i;
451
- var TEXT_RELOCATION_MARKER_WITHOUT_C_PATTERN = /(^|\s)(--git-dir=?|--work-tree=?|-execdir)|(^|[\s;&|(){}])(cd|pushd)([\s;&|]|$)|(^|[\s;&|(){}])(GIT_DIR|GIT_WORK_TREE|GIT_COMMON_DIR|GIT_INDEX_FILE|GIT_EXEC_PATH|PATH)\+?=/;
452
- var TEXT_RELOCATION_MARKER_PATTERN = /(^|\s)(-C|--git-dir=?|--work-tree=?|-execdir)|(^|[\s;&|(){}])(cd|pushd)([\s;&|]|$)|(^|[\s;&|(){}])(GIT_DIR|GIT_WORK_TREE|GIT_COMMON_DIR|GIT_INDEX_FILE|GIT_EXEC_PATH|PATH)\+?=/;
604
+ var TEXT_RELOCATION_MARKER_WITHOUT_C_PATTERN = /(^|\s)(--git-dir=?|--work-tree=?|-execdir)|(^|[\s;&|(){}])(cd|chdir|pushd)([\s;&|]|$)|(^|[\s;&|(){}])(GIT_DIR|GIT_WORK_TREE|GIT_COMMON_DIR|GIT_INDEX_FILE|GIT_EXEC_PATH|PATH)\+?=/;
605
+ var TEXT_RELOCATION_MARKER_PATTERN = /(^|\s)(-C|--git-dir=?|--work-tree=?|-execdir)|(^|[\s;&|(){}])(cd|chdir|pushd)([\s;&|]|$)|(^|[\s;&|(){}])(GIT_DIR|GIT_WORK_TREE|GIT_COMMON_DIR|GIT_INDEX_FILE|GIT_EXEC_PATH|PATH)\+?=/;
453
606
  var GIT_PROGRAM_ENV_KEYS = /* @__PURE__ */ new Set(["GIT_EXEC_PATH", "PATH"]);
454
607
  function recordEnvAssignment(token, state) {
455
- const key = leadingEnvAssignmentKey(token.text);
456
- if (key === null) return;
608
+ const rawKey = leadingEnvAssignmentKey(token.text);
609
+ if (rawKey === null) return;
610
+ const key = process.platform === "win32" && getShellConfiguration().shell !== "bash" ? rawKey.toUpperCase() : rawKey;
457
611
  if (GIT_PROGRAM_ENV_KEYS.has(key) || GIT_UNRESOLVABLE_ENV_KEYS.has(key) || GIT_NUMBERED_CONFIG_ENV_PATTERN.test(key)) {
458
612
  state.unresolved = true;
459
613
  return;
@@ -720,11 +874,36 @@ var EXPORT_BUILTINS = /* @__PURE__ */ new Set([
720
874
  "typeset"
721
875
  ]);
722
876
  var CHDIR_OPTION_PATTERN = /^-[LPe@qs]+$/;
723
- function findChdirTarget(run, start, variant) {
877
+ var FUSED_CHDIR_PATTERN = /^(cd|chdir|pushd|popd)([./\\].*)$/i;
878
+ function splitFusedWindowsChdirs(run) {
879
+ for (let index = 0; index < run.length; index++) {
880
+ const token = run[index];
881
+ if (token.redirect || token.ambiguousFd) continue;
882
+ if (leadingEnvAssignmentKey(token.text) !== null) continue;
883
+ if (LEADING_SHELL_KEYWORDS.has(token.text)) continue;
884
+ const match = token.dynamic ? null : FUSED_CHDIR_PATTERN.exec(token.text);
885
+ if (match === null) return run;
886
+ const replacement = run.slice();
887
+ replacement.splice(
888
+ index,
889
+ 1,
890
+ { text: match[1], dynamic: false },
891
+ { text: match[2], dynamic: false }
892
+ );
893
+ return replacement;
894
+ }
895
+ return run;
896
+ }
897
+ __name(splitFusedWindowsChdirs, "splitFusedWindowsChdirs");
898
+ function findChdirTarget(run, start, variant, windows = false) {
724
899
  let index = start;
725
900
  while (index < run.length) {
726
901
  const token = run[index];
727
902
  if (token.text === "--") return run[index + 1];
903
+ if (windows && /^\/[dD]$/.test(token.text)) {
904
+ index++;
905
+ continue;
906
+ }
728
907
  if (variant === "cd" && CHDIR_OPTION_PATTERN.test(token.text)) {
729
908
  index++;
730
909
  continue;
@@ -817,7 +996,10 @@ function readDefinition(run) {
817
996
  return { name, body: joinArgvTexts(bodyTokens) };
818
997
  }
819
998
  __name(readDefinition, "readDefinition");
820
- function analyzeRun(run) {
999
+ function analyzeRun(run, platform = process.platform) {
1000
+ if (platform === "win32" && getShellConfiguration().shell !== "bash") {
1001
+ run = splitFusedWindowsChdirs(run);
1002
+ }
821
1003
  const state = { relocations: [], unresolved: false };
822
1004
  let index = 0;
823
1005
  let assignments = 0;
@@ -846,6 +1028,25 @@ function analyzeRun(run) {
846
1028
  for (const operand of operands) recordEnvAssignment(operand, state);
847
1029
  return { kind: "export", state, operands };
848
1030
  }
1031
+ if (platform === "win32" && getShellConfiguration().shell !== "bash" && (program === "path" || program === "doskey")) {
1032
+ state.unresolved = true;
1033
+ return { kind: "export", state, operands: [] };
1034
+ }
1035
+ if (platform === "win32" && getShellConfiguration().shell !== "bash" && (program === "set" || program === "setx")) {
1036
+ const operands = run.slice(index + 1);
1037
+ if (program === "setx" || getShellConfiguration().shell === "powershell") {
1038
+ state.unresolved = true;
1039
+ return { kind: "export", state, operands: [] };
1040
+ }
1041
+ for (const operand of operands) {
1042
+ if (operand.dynamic || leadingEnvAssignmentKey(operand.text) === null) {
1043
+ state.unresolved = true;
1044
+ return { kind: "export", state, operands: [] };
1045
+ }
1046
+ recordEnvAssignment(operand, state);
1047
+ }
1048
+ return { kind: "export", state, operands };
1049
+ }
849
1050
  if (program === "set") {
850
1051
  if (requestsAllExport(run, index + 1)) {
851
1052
  return { kind: "all-export", state };
@@ -892,6 +1093,9 @@ function analyzeRun(run) {
892
1093
  propagatesCwd: true
893
1094
  };
894
1095
  }
1096
+ if (platform === "win32" && WINDOWS_SHELL_PROGRAMS.has(program)) {
1097
+ return { kind: "undecidable" };
1098
+ }
895
1099
  if (SHELL_WRAPPER_PROGRAMS.has(program)) {
896
1100
  const scan = consumeShellWrapper(run, index);
897
1101
  if (scan.kind === "none") {
@@ -915,14 +1119,19 @@ function analyzeRun(run) {
915
1119
  if (program === "git") {
916
1120
  return { kind: "git", tokens: run.slice(index), state };
917
1121
  }
918
- if (program === "cd" || program === "pushd" || program === "popd") {
1122
+ if (program === "cd" || program === "pushd" || program === "popd" || platform === "win32" && program === "chdir" || platform === "win32" && getShellConfiguration().shell === "powershell" && POWERSHELL_LOCATION_PROGRAMS.has(program)) {
1123
+ const variant = program === "chdir" || program === "set-location" || program === "sl" ? "cd" : program === "push-location" || program === "pushd" ? "pushd" : program === "pop-location" || program === "popd" ? "popd" : "cd";
1124
+ const rest = run.slice(index + 1);
1125
+ const namedIndex = rest.findIndex(
1126
+ (token2) => token2.text === "-Path" || token2.text === "-LiteralPath"
1127
+ );
919
1128
  return {
920
1129
  kind: "cd",
921
- variant: program,
922
- target: findChdirTarget(run, index + 1, program),
1130
+ variant,
1131
+ target: namedIndex >= 0 ? rest[namedIndex + 1] : findChdirTarget(rest, 0, variant, platform === "win32"),
923
1132
  // `cd -P` resolves each component through its symlinks before
924
1133
  // applying `..`, which a lexical resolve cannot reproduce.
925
- physical: run.slice(index + 1).some((token2) => /^-[A-Za-z]*P/.test(token2.text))
1134
+ physical: rest.some((token2) => /^-[A-Za-z]*P/.test(token2.text))
926
1135
  };
927
1136
  }
928
1137
  return { kind: "other", state, assignmentsOnly: false };
@@ -1078,9 +1287,12 @@ async function resolveGitDirRepository(canonicalGitDir) {
1078
1287
  }
1079
1288
  __name(resolveGitDirRepository, "resolveGitDirRepository");
1080
1289
  async function resolvePhysicalPath(base, target) {
1081
- let current = path.isAbsolute(target) ? path.parse(target).root : base;
1290
+ const parsed = path.parse(target);
1291
+ const absolute = path.isAbsolute(target);
1292
+ let current = absolute ? parsed.root : base;
1293
+ const walkable = absolute ? target.slice(parsed.root.length) : target;
1082
1294
  const separators = path.sep === "\\" ? /[\\/]+/ : /\/+/;
1083
- for (const segment of target.split(separators)) {
1295
+ for (const segment of walkable.split(separators)) {
1084
1296
  if (segment === "" || segment === ".") continue;
1085
1297
  if (segment === "..") {
1086
1298
  current = path.dirname(await realpathNearestExistingAsync(current));
@@ -1498,18 +1710,45 @@ async function evaluateCommandWithCwd(command, startCwd, entryCwd, context, dept
1498
1710
  }
1499
1711
  return void 0;
1500
1712
  }, "invokeDefinedBody");
1501
- const segments = splitCommands(stripHeredocBodies(command));
1502
- const separators = readTopLevelSeparators(stripHeredocBodies(command));
1713
+ const platformNow = process.platform;
1714
+ const shellNow = getShellConfiguration().shell;
1715
+ const windowsNative = platformNow === "win32" && shellNow !== "bash";
1716
+ const strippedCommand = windowsNative ? command : stripHeredocBodies(command);
1717
+ if (containsCmdRewriteSyntax(strippedCommand, platformNow, shellNow)) {
1718
+ return {
1719
+ denial: { allowed: false, reason: CMD_REWRITE_SYNTAX_DENIAL },
1720
+ cwdAfter: trackedCwd
1721
+ };
1722
+ }
1723
+ if (containsUnmodelledWindowsSyntax(strippedCommand, platformNow, shellNow)) {
1724
+ return {
1725
+ denial: { allowed: false, reason: WINDOWS_UNMODELLED_SYNTAX_DENIAL },
1726
+ cwdAfter: trackedCwd
1727
+ };
1728
+ }
1729
+ const normalizedCommand = preserveWindowsPathSeparators(
1730
+ strippedCommand,
1731
+ platformNow,
1732
+ shellNow
1733
+ );
1734
+ const segments = splitCommands(normalizedCommand);
1735
+ const separators = readTopLevelSeparators(normalizedCommand);
1503
1736
  const separatorsMatch = separators.length === segments.length - 1;
1504
- const isPipeComponent = /* @__PURE__ */ __name((index) => separatorsMatch ? (
1505
- // Both sides of a pipe run in subshells; for `&` only the segment it
1506
- // follows (the backgrounded one) doesthe next segment is
1507
- // foreground.
1508
- separators[index - 1] === "|" || separators[index] === "|" || separators[index] === "&"
1509
- ) : (
1510
- // Structural disagreement with `splitCommands`: scope every segment
1511
- // rather than guess which ones ran in a subshell.
1512
- separators.some((separator) => separator === "|" || separator === "&")
1737
+ const isPipeComponent = /* @__PURE__ */ __name((index) => (
1738
+ // A PowerShell pipeline runs every stage in the one session a `cd` on
1739
+ // either side outlives the pipeso no segment is scoped there.
1740
+ windowsNative && shellNow === "powershell" ? false : separatorsMatch ? (
1741
+ // Both sides of a pipe run in subshells; for `&` only the segment
1742
+ // it follows (the backgrounded one) does — the next segment is
1743
+ // foreground.
1744
+ separators[index - 1] === "|" || separators[index] === "|" || separators[index] === "&"
1745
+ ) : (
1746
+ // Structural disagreement with `splitCommands`: scope every segment
1747
+ // rather than guess which ones ran in a subshell.
1748
+ separators.some(
1749
+ (separator) => separator === "|" || separator === "&"
1750
+ )
1751
+ )
1513
1752
  ), "isPipeComponent");
1514
1753
  for (const [segmentIndex, segment] of segments.entries()) {
1515
1754
  const pipeComponent = isPipeComponent(segmentIndex);
@@ -1533,7 +1772,7 @@ async function evaluateCommandWithCwd(command, startCwd, entryCwd, context, dept
1533
1772
  cwdAfter: trackedCwd
1534
1773
  };
1535
1774
  }
1536
- const functionHeader = /^\s*([A-Za-z_][A-Za-z0-9_]*)\s*\(\s*\)/.exec(segment) ?? // The `function NAME` keyword form, with the `()` optional.
1775
+ const functionHeader = windowsNative ? null : /^\s*([A-Za-z_][A-Za-z0-9_]*)\s*\(\s*\)/.exec(segment) ?? // The `function NAME` keyword form, with the `()` optional.
1537
1776
  /^\s*function\s+([A-Za-z_][A-Za-z0-9_]*)\b/.exec(segment);
1538
1777
  if (functionHeader) {
1539
1778
  insideDefinition = functionHeader[1];
@@ -1640,7 +1879,7 @@ ${segment}`;
1640
1879
  if (denial) return { denial, cwdAfter: trackedCwd };
1641
1880
  continue;
1642
1881
  }
1643
- const analysis = analyzeRun(run);
1882
+ const analysis = analyzeRun(run, platformNow);
1644
1883
  switch (analysis.kind) {
1645
1884
  case "cd": {
1646
1885
  const target = analysis.target === void 0 ? void 0 : expandShellLocals(analysis.target, shellLocals);
@@ -1845,7 +2084,7 @@ ${segment}`;
1845
2084
  allExport = false;
1846
2085
  break;
1847
2086
  case "other": {
1848
- const aliasDefinitions = readAliasDefinitions(run);
2087
+ const aliasDefinitions = windowsNative ? [] : readAliasDefinitions(run);
1849
2088
  if (aliasDefinitions.length > 0) {
1850
2089
  for (const definition2 of aliasDefinitions) {
1851
2090
  definedBodies.set(definition2.name, {
@@ -1855,7 +2094,7 @@ ${segment}`;
1855
2094
  }
1856
2095
  break;
1857
2096
  }
1858
- const definition = readDefinition(run);
2097
+ const definition = windowsNative ? void 0 : readDefinition(run);
1859
2098
  if (definition) {
1860
2099
  definedBodies.set(definition.name, {
1861
2100
  body: definition.body,
@@ -1864,7 +2103,7 @@ ${segment}`;
1864
2103
  break;
1865
2104
  }
1866
2105
  const programToken = readProgramWord(run);
1867
- const definitionName = readFunctionName(run);
2106
+ const definitionName = windowsNative ? void 0 : readFunctionName(run);
1868
2107
  if (definitionName) {
1869
2108
  if (run.some((token) => GIT_WORD_PATTERN.test(token.text))) {
1870
2109
  gitShapedNames.add(definitionName);
@@ -1893,12 +2132,16 @@ ${segment}`;
1893
2132
  if (run.some((t) => PATH_EXTRACTING_PROGRAMS.has(executableBaseName(t)))) {
1894
2133
  if (trackedCwd !== void 0) relinkedTargets.push(trackedCwd);
1895
2134
  }
1896
- if (run.some((t) => PATH_RELINKING_PROGRAMS.has(executableBaseName(t)))) {
1897
- for (const operand of run) {
2135
+ const relinkPrograms = platformNow === "win32" ? WIN32_PATH_RELINKING_PROGRAMS : PATH_RELINKING_PROGRAMS;
2136
+ const relinkProgramIndex = run.findIndex(
2137
+ (t) => !t.redirect && !t.ambiguousFd && relinkPrograms.has(executableBaseName(t))
2138
+ );
2139
+ if (relinkProgramIndex >= 0) {
2140
+ for (const [operandIndex, operand] of run.entries()) {
2141
+ if (operandIndex === relinkProgramIndex) continue;
2142
+ if (operand.redirect || operand.ambiguousFd) continue;
1898
2143
  if (operand.text.startsWith("-")) continue;
1899
- if (PATH_RELINKING_PROGRAMS.has(executableBaseName(operand))) {
1900
- continue;
1901
- }
2144
+ if (windowsNative && operand.text.startsWith("/")) continue;
1902
2145
  if (operand.dynamic || trackedCwd === void 0) {
1903
2146
  scope.relink.gitDir = true;
1904
2147
  continue;
@@ -2067,7 +2310,10 @@ function createDaemonToolGuard(externalGuard) {
2067
2310
  }
2068
2311
  __name(createDaemonToolGuard, "createDaemonToolGuard");
2069
2312
  export {
2070
- createDaemonToolGuard
2313
+ containsCmdRewriteSyntax,
2314
+ containsUnmodelledWindowsSyntax,
2315
+ createDaemonToolGuard,
2316
+ preserveWindowsPathSeparators
2071
2317
  };
2072
2318
  /**
2073
2319
  * @license