@qwen-code/qwen-code 0.22.0-nightly.20260825.22bb5e8b9f → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/bundled/coordinate/SKILL.md +3 -3
  2. package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
  3. package/bundled/qc-helper/docs/configuration/settings.md +6 -6
  4. package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
  5. package/bundled/qc-helper/docs/features/channels/dws.md +120 -0
  6. package/bundled/qc-helper/docs/features/channels/overview.md +3 -3
  7. package/bundled/qc-helper/docs/features/code-review.md +1 -1
  8. package/bundled/qc-helper/docs/qwen-serve.md +2 -0
  9. package/bundled/review/SKILL.md +47 -12
  10. package/bundled/review/references/persistence.md +6 -6
  11. package/bundled/review/references/posting.md +2 -2
  12. package/chunks/MaxSizedBox-UUTUE42J.js +112 -0
  13. package/chunks/{StandaloneSessionPicker-NEWUAPCT.js → StandaloneSessionPicker-XF2TVJFK.js} +78 -77
  14. package/chunks/{acp-startup-profiler-T4GEAPLX.js → acp-startup-profiler-GNYAL6LI.js} +2 -2
  15. package/chunks/{acpAgent-A5CIQGW6.js → acpAgent-GY53MJIW.js} +254 -158
  16. package/chunks/{agent-TQ6CYOIL.js → agent-7U6CC5KF.js} +41 -41
  17. package/chunks/agent-headless-32O4L2CT.js +87 -0
  18. package/chunks/{anthropicContentGenerator-FSBGS426.js → anthropicContentGenerator-U76GTVB6.js} +7 -7
  19. package/chunks/{artifact-tool-UQTNZDUF.js → artifact-tool-XDJCZZCF.js} +2 -2
  20. package/chunks/{askUserQuestion-BSZALR7M.js → askUserQuestion-ZXXERLEV.js} +2 -2
  21. package/chunks/{bridge-MBOVCHXN.js → bridge-DFX2FFH4.js} +57 -56
  22. package/chunks/{ca-DZBZOMLU.js → ca-7HPYOYSZ.js} +1 -0
  23. package/chunks/{channel-management-service-XGGL6PLF.js → channel-management-service-HXXS3HOZ.js} +4 -4
  24. package/chunks/channel-settings-store-ELLH2M4M.js +117 -0
  25. package/chunks/{channel-worker-group-GIXIF4VT.js → channel-worker-group-EVDC2P4K.js} +5 -5
  26. package/chunks/{channel-worker-manager-ZBSYXJEB.js → channel-worker-manager-IJJZHGEI.js} +5 -5
  27. package/chunks/{channel-worker-supervisor-NI6JEY4Q.js → channel-worker-supervisor-YSKB5GVB.js} +9 -5
  28. package/chunks/{chunk-CPZQJP6J.js → chunk-27ONXAFY.js} +1 -1
  29. package/chunks/{chunk-FXNLH7E6.js → chunk-2CRNTW2B.js} +18 -2
  30. package/chunks/{read-package-up-UXSW3YPB.js → chunk-2EAZ43JQ.js} +1 -0
  31. package/chunks/{chunk-YX4II73B.js → chunk-2FN2HNTI.js} +2 -2
  32. package/chunks/{chunk-7KGJGYGA.js → chunk-2MHGD7EE.js} +1 -1
  33. package/chunks/{chunk-H5K5MRU7.js → chunk-2NCVUT3C.js} +4 -4
  34. package/chunks/{chunk-VLEGGCEA.js → chunk-2NNTE2ED.js} +171 -1
  35. package/chunks/{chunk-LNKZTLTH.js → chunk-2SERYG4T.js} +1 -1
  36. package/chunks/{chunk-UEHH33VE.js → chunk-2YDYDDE2.js} +6 -6
  37. package/chunks/{chunk-U7GJPTEY.js → chunk-2YEZNBSD.js} +66 -60
  38. package/chunks/{chunk-L6PFEZUM.js → chunk-2ZV3CZKI.js} +82 -12
  39. package/chunks/{chunk-36XTQW3N.js → chunk-3B5DCAQU.js} +28 -11
  40. package/chunks/{chunk-DE24WTEJ.js → chunk-3BV7TZNQ.js} +3 -3
  41. package/chunks/{chunk-IKPQM6I5.js → chunk-3FSBMAYD.js} +1 -1
  42. package/chunks/{chunk-J54EA46E.js → chunk-3UZCLCXR.js} +3 -3
  43. package/chunks/{chunk-ZROP2DTX.js → chunk-43C2II2G.js} +5 -5
  44. package/chunks/{chunk-2ZH5XAOO.js → chunk-47SIHHPL.js} +8 -8
  45. package/chunks/{chunk-EEBIINBT.js → chunk-4DCP3362.js} +6 -14
  46. package/chunks/{chunk-DF6DJZIX.js → chunk-4TPAG3O7.js} +1 -1
  47. package/chunks/{chunk-6L5EXDDN.js → chunk-5CI4AXDD.js} +4 -4
  48. package/chunks/{chunk-7KOFLDEP.js → chunk-5JTIYALA.js} +1 -1
  49. package/chunks/{chunk-YPJVAQ7V.js → chunk-5MK32KJV.js} +3 -3
  50. package/chunks/{chunk-XXA72PGJ.js → chunk-5T4LWWNX.js} +2 -2
  51. package/chunks/{chunk-NA6AZRDQ.js → chunk-5Y2JCJAH.js} +2 -2
  52. package/chunks/{chunk-3ROKI6MD.js → chunk-5ZYZPDDF.js} +978 -886
  53. package/chunks/{chunk-U4SJGOBF.js → chunk-62PXFOK4.js} +4 -4
  54. package/chunks/{chunk-SKXXO64C.js → chunk-6E4WHQJV.js} +1 -1
  55. package/chunks/{chunk-6Y7XMJFF.js → chunk-6HTMIKXZ.js} +6 -6
  56. package/chunks/{chunk-MGEXTDBI.js → chunk-6KS24S3X.js} +2 -2
  57. package/chunks/{chunk-ZJWFRMCY.js → chunk-6US7BF3G.js} +2 -2
  58. package/chunks/{chunk-RSOG6JND.js → chunk-6YAR6ZU3.js} +2 -2
  59. package/chunks/{chunk-Z3GFRVAY.js → chunk-73WFGVIZ.js} +3 -3
  60. package/chunks/{chunk-IX3CWNG7.js → chunk-76WGY6LW.js} +3 -3
  61. package/chunks/{chunk-CGWPQ6IM.js → chunk-77TOMRBG.js} +3 -3
  62. package/chunks/{chunk-JVTU5JYO.js → chunk-7AS7QX72.js} +1 -1
  63. package/chunks/{chunk-RLIS2VLZ.js → chunk-7DPKPBOQ.js} +2 -2
  64. package/chunks/{chunk-XQNWTA4Y.js → chunk-7JPW6IYH.js} +1 -1
  65. package/chunks/{chunk-UEY5WCRB.js → chunk-7QGEJI7M.js} +1 -1
  66. package/chunks/{chunk-GWUZOBCQ.js → chunk-A7X32SCT.js} +5 -5
  67. package/chunks/{chunk-R7Q5V3A5.js → chunk-AYVIGUUK.js} +1 -1
  68. package/chunks/{chunk-AIT6BMBI.js → chunk-BDHLBR46.js} +17 -3
  69. package/chunks/{chunk-3G6MRLTM.js → chunk-BKDAF7ES.js} +2 -2
  70. package/chunks/{chunk-5AHCPETA.js → chunk-BQBUZDDH.js} +3 -3
  71. package/chunks/{chunk-3KV5KXKU.js → chunk-BVE5EMIG.js} +2 -2
  72. package/chunks/{chunk-NDVTSFWZ.js → chunk-BX2BZPFJ.js} +3 -3
  73. package/chunks/{chunk-7UVAWPYG.js → chunk-C4WBKZJT.js} +4 -4
  74. package/chunks/{chunk-HYBEI2LH.js → chunk-CITGRGCM.js} +2 -1
  75. package/chunks/{chunk-TEQKBONY.js → chunk-CPPYZHBN.js} +1 -1
  76. package/chunks/chunk-DCSAVGDJ.js +20 -0
  77. package/chunks/{chunk-RSWDOHXS.js → chunk-DEYPMJPD.js} +1 -1
  78. package/chunks/{chunk-OWE7TE3F.js → chunk-DP7LABIB.js} +1 -1
  79. package/chunks/{chunk-LQF4PWEU.js → chunk-E4I5MVBR.js} +1 -1
  80. package/chunks/{chunk-NFDTDV37.js → chunk-E55H6BZ7.js} +4 -0
  81. package/chunks/{chunk-K623ENWT.js → chunk-E6FGMDFQ.js} +4 -0
  82. package/chunks/{chunk-QWTNAHCM.js → chunk-EAV3TENS.js} +3 -3
  83. package/chunks/{chunk-27HAGBZG.js → chunk-EB4VDXNI.js} +1 -1
  84. package/chunks/{chunk-RDPKOVXL.js → chunk-EC5BONC3.js} +1 -1
  85. package/chunks/{chunk-JHZIPJWY.js → chunk-EEQYTWGU.js} +5 -5
  86. package/chunks/{chunk-MFSV57XN.js → chunk-EKP3M4RF.js} +1 -1
  87. package/chunks/{chunk-R544UY5E.js → chunk-ELY4QVIB.js} +1 -1
  88. package/chunks/{chunk-PFCVB5ZI.js → chunk-EMGAVCBZ.js} +2 -2
  89. package/chunks/{chunk-JGDTCEBH.js → chunk-FJWICLG7.js} +1 -1
  90. package/chunks/{chunk-OXMS5HCS.js → chunk-FK4H3V6S.js} +5 -5
  91. package/chunks/{chunk-WANR3VVK.js → chunk-FN5C6C7G.js} +125 -60
  92. package/chunks/{chunk-5PVLDRGJ.js → chunk-FPH6TXD3.js} +1 -1
  93. package/chunks/{chunk-OY3ZSNQC.js → chunk-FVDQ5E67.js} +3 -3
  94. package/chunks/{chunk-J752LLEJ.js → chunk-GNMJNDZE.js} +1 -1
  95. package/chunks/{chunk-MSCVPOZR.js → chunk-GNRVKN76.js} +4 -4
  96. package/chunks/{chunk-FNZ42WN7.js → chunk-GTUKW3I6.js} +1 -1
  97. package/chunks/{chunk-NSPS67BG.js → chunk-GZJUCMH4.js} +1 -1
  98. package/chunks/{chunk-SNWAXNJ4.js → chunk-HJOWQUE2.js} +14 -11
  99. package/chunks/{chunk-3K5ORUVO.js → chunk-I32QCIK7.js} +1 -1
  100. package/chunks/{chunk-BOQRZ443.js → chunk-I6VVOZDK.js} +2 -2
  101. package/chunks/{chunk-KUPVZ4EO.js → chunk-I6YW3T3W.js} +207 -26
  102. package/chunks/{chunk-O6CS7VRT.js → chunk-ICWGPK23.js} +7 -7
  103. package/chunks/{chunk-EFT2T2LA.js → chunk-IJVDHPKD.js} +2 -2
  104. package/chunks/{chunk-SEMN7BNM.js → chunk-IKN3IUJP.js} +9 -8
  105. package/chunks/{chunk-O5ONGZGZ.js → chunk-ILPXSKGQ.js} +2 -2
  106. package/chunks/{chunk-QQQSUCC4.js → chunk-IPQA4SR5.js} +1 -1
  107. package/chunks/{chunk-SXBRB7ZP.js → chunk-IRIX323G.js} +2 -2
  108. package/chunks/{chunk-EJ5XRNOK.js → chunk-J7MLXFC5.js} +2 -2
  109. package/chunks/{chunk-KDGY3ST4.js → chunk-JECO75XD.js} +2 -2
  110. package/chunks/chunk-JLGFGPZJ.js +346 -0
  111. package/chunks/{chunk-COT2IXPM.js → chunk-JUIJ3FXC.js} +5 -5
  112. package/chunks/{chunk-IFWUT4GY.js → chunk-JVPFTDBK.js} +1 -1
  113. package/chunks/{chunk-455ZIBFX.js → chunk-K63NK3KL.js} +13 -13
  114. package/chunks/{chunk-MBLNXX3G.js → chunk-KCOXDRQL.js} +5 -5
  115. package/chunks/{chunk-3LUGIYS3.js → chunk-KOJ6MHD5.js} +3 -1
  116. package/chunks/{chunk-W4JA6Z44.js → chunk-KWFP3WV6.js} +9 -7
  117. package/chunks/{chunk-QKSMM4HF.js → chunk-L436XFLJ.js} +1 -1
  118. package/chunks/{chunk-M4TV7AJX.js → chunk-LI2HEMKO.js} +4 -4
  119. package/chunks/{chunk-FLTGTSLG.js → chunk-LJP2BBMK.js} +4 -4
  120. package/chunks/{chunk-HTIG2U5C.js → chunk-LRKMQPMD.js} +1 -1
  121. package/chunks/{chunk-YS4H3OFV.js → chunk-MDZO5V2O.js} +6 -6
  122. package/chunks/{chunk-2HYQZYPT.js → chunk-MW5AHWOZ.js} +7 -7
  123. package/chunks/{chunk-SJDR2S55.js → chunk-MYLXL7F6.js} +11 -11
  124. package/chunks/{chunk-PIZZIIEA.js → chunk-MZS7GEC7.js} +1 -1
  125. package/chunks/{chunk-H3JIT2M6.js → chunk-NER3H7PI.js} +1 -1
  126. package/chunks/{chunk-XYUJPDPB.js → chunk-NVK4HJYQ.js} +1 -1
  127. package/chunks/{chunk-GQQHY6TL.js → chunk-NY3IJYAV.js} +7 -7
  128. package/chunks/{chunk-3E53DKST.js → chunk-O3BUXIPM.js} +3 -3
  129. package/chunks/{chunk-QOUFO7TV.js → chunk-O5YGAEQS.js} +6 -6
  130. package/chunks/{chunk-OINGLDAX.js → chunk-ODXCSIH5.js} +4 -4
  131. package/chunks/{chunk-FMDWTE5I.js → chunk-OI2DR6QB.js} +2 -2
  132. package/chunks/{chunk-ENZMDVCM.js → chunk-OQ6LTSX3.js} +1 -1
  133. package/chunks/{chunk-KUDADN3R.js → chunk-OT26ITEY.js} +3 -3
  134. package/chunks/{chunk-FZUVUBYH.js → chunk-OX44MOAN.js} +3 -3
  135. package/chunks/{chunk-LURJYO2T.js → chunk-OZ6KS6KW.js} +4 -0
  136. package/chunks/{chunk-D2IGZJA7.js → chunk-PAJGKZAA.js} +272 -3
  137. package/chunks/{chunk-MTKBZIXU.js → chunk-PVBT5QPD.js} +1 -1
  138. package/chunks/{chunk-HDH5IDJH.js → chunk-R2ZJH3FV.js} +3 -3
  139. package/chunks/{chunk-SJLW5XGQ.js → chunk-RRKNX553.js} +1 -1
  140. package/chunks/{chunk-JS55F2GJ.js → chunk-SDVF6A42.js} +3 -3
  141. package/chunks/{chunk-DZPWZPGJ.js → chunk-SKNVVYIJ.js} +3 -3
  142. package/chunks/{chunk-SIC4S3RX.js → chunk-SLEWBQWM.js} +2 -2
  143. package/chunks/{chunk-P7DVAZKV.js → chunk-SM7ZVKTF.js} +7 -7
  144. package/chunks/{chunk-3N7EFOOM.js → chunk-SQPOJ4ZI.js} +11 -1
  145. package/chunks/{chunk-YOM3CJOP.js → chunk-SRGENTPF.js} +19 -19
  146. package/chunks/{chunk-ZB7VDPZB.js → chunk-T2CRBIDJ.js} +1 -1
  147. package/chunks/{chunk-F37T2S4O.js → chunk-T2HMXHYA.js} +6 -6
  148. package/chunks/{chunk-5X33EPHJ.js → chunk-T6OODF2U.js} +1 -1
  149. package/chunks/{chunk-7GECZMES.js → chunk-TKO4TLT6.js} +3 -3
  150. package/chunks/{chunk-PQ4RTSTH.js → chunk-TOF4UZHH.js} +3 -3
  151. package/chunks/{chunk-LD76HNCC.js → chunk-UCSV2IZW.js} +3 -3
  152. package/chunks/{chunk-EUZE3GSL.js → chunk-UX3IFLJM.js} +93 -9
  153. package/chunks/{chunk-AHQBSQYT.js → chunk-V3GINY6K.js} +3 -3
  154. package/chunks/{chunk-DD5XZICM.js → chunk-VL4YX3FH.js} +1 -1
  155. package/chunks/{chunk-DLYJ3RN7.js → chunk-VMDURMFY.js} +58 -32
  156. package/chunks/{chunk-E6BJFSLJ.js → chunk-W2WRNJKX.js} +6 -6
  157. package/chunks/{chunk-YLFLHKDL.js → chunk-W3N5XAZ6.js} +1 -1
  158. package/chunks/{chunk-QKGJIP2H.js → chunk-WBT3STGU.js} +1 -1
  159. package/chunks/{chunk-X3PRXXUH.js → chunk-WEGXPP5E.js} +1 -1
  160. package/chunks/{chunk-V6R3IEHF.js → chunk-XJS54K4A.js} +2 -2
  161. package/chunks/{chunk-NDJ3436G.js → chunk-XNXWEGKB.js} +3 -3
  162. package/chunks/{chunk-UFWRXRQ5.js → chunk-XYX474JQ.js} +1312 -290
  163. package/chunks/{chunk-UY2JOZK7.js → chunk-ZEADBZLO.js} +3 -3
  164. package/chunks/{chunk-SNJOBGQV.js → chunk-ZJG323IA.js} +4 -3
  165. package/chunks/{chunk-CZIF7I53.js → chunk-ZKAZP2ZG.js} +2 -2
  166. package/chunks/{chunk-DV3KOUUU.js → chunk-ZLTEQYNC.js} +2 -2
  167. package/chunks/{chunk-RLR7K4JJ.js → chunk-ZWKGZB2K.js} +3 -3
  168. package/chunks/{chunk-EJ2GPZDU.js → chunk-ZXDM7DYV.js} +1049 -383
  169. package/chunks/config-utils-7M6PCTLT.js +113 -0
  170. package/chunks/contextCommand-G4QG3TW6.js +108 -0
  171. package/chunks/{core-runtime-SZFD2YQA.js → core-runtime-PKNQ63VL.js} +53 -52
  172. package/chunks/{create-sub-session-OXESCUS7.js → create-sub-session-PLGPY6TV.js} +53 -52
  173. package/chunks/{create-sub-session-5ZLCAS2P.js → create-sub-session-RVHSWVAP.js} +3 -3
  174. package/chunks/{cron-create-P4CPPO25.js → cron-create-IJGVR5R2.js} +4 -4
  175. package/chunks/{cron-delete-FPD75GL4.js → cron-delete-4N5BI6GL.js} +4 -4
  176. package/chunks/{cron-list-QPML4MWL.js → cron-list-2CATIPUX.js} +4 -4
  177. package/chunks/{daemon-HY4AVTUM.js → daemon-NAYK4XXU.js} +34 -12
  178. package/chunks/{daemon-git-worktree-guard-EAVTZ6CE.js → daemon-git-worktree-guard-LDBJXH2U.js} +331 -86
  179. package/chunks/daemon-status-provider-F5FEHVVG.js +118 -0
  180. package/chunks/daemon-trust-policy-C6YTU5CQ.js +114 -0
  181. package/chunks/{daemon-trust-policy-monitor-ITF54474.js → daemon-trust-policy-monitor-IGEJPHQ4.js} +59 -58
  182. package/chunks/{deferred-core-runtime-WQ4NQA3N.js → deferred-core-runtime-GHT3GDOR.js} +53 -52
  183. package/chunks/{display-image-HOBBUJS5.js → display-image-DR55LL6M.js} +5 -5
  184. package/chunks/dist-4Q7NTUNB.js +2512 -0
  185. package/chunks/{dist-RW4QZD3K.js → dist-6H6RZ5H6.js} +2 -2
  186. package/chunks/{dist-ZUWCGMJ4.js → dist-7CKN54NL.js} +1 -1
  187. package/chunks/{dist-ZQJEKFZH.js → dist-DJBNNPLN.js} +1 -1
  188. package/chunks/{dist-5BX3J3AL.js → dist-FVJZSIO4.js} +28 -7
  189. package/chunks/{dist-OB6D7E7T.js → dist-SATKXKUR.js} +1 -1
  190. package/chunks/{dist-MEANA2OS.js → dist-TJUDJTCB.js} +1 -1
  191. package/chunks/{dist-4LRFQF7R.js → dist-UQUFZDIY.js} +1 -1
  192. package/chunks/{dist-7HGG7XLA.js → dist-ZBVOXSKF.js} +1 -1
  193. package/chunks/earlyInputCapture-HOSJTLWP.js +109 -0
  194. package/chunks/{edit-4MZYBPF5.js → edit-KSPVUEAS.js} +42 -42
  195. package/chunks/{en-X66KZS7T.js → en-6MDBWMTG.js} +1 -0
  196. package/chunks/{enter-worktree-WNR4JUPU.js → enter-worktree-UOZ6ZTP7.js} +7 -7
  197. package/chunks/{enterPlanMode-2EL6YAM5.js → enterPlanMode-DZTABSKN.js} +41 -41
  198. package/chunks/{environment-4QYNT2L3.js → environment-JXOSW25V.js} +57 -54
  199. package/chunks/{errors-N66MMOYD.js → errors-IOXFDE4J.js} +55 -54
  200. package/chunks/{exit-worktree-BUHUM6YC.js → exit-worktree-G2QATUCV.js} +7 -7
  201. package/chunks/{exitPlanMode-F73VQJBO.js → exitPlanMode-PZG4FXRB.js} +41 -41
  202. package/chunks/{fast-path-3L4YK6SO.js → fast-path-EBS7NAVL.js} +2 -2
  203. package/chunks/{gemini-4PINQJWX.js → gemini-JELEKOVS.js} +107 -103
  204. package/chunks/{geminiContentGenerator-7T7IU2V5.js → geminiContentGenerator-I2CKP7XI.js} +8 -8
  205. package/chunks/{glob-TWUYSRRG.js → glob-TDVEVPQZ.js} +41 -41
  206. package/chunks/{goal-tools-FTDQHRRX.js → goal-tools-CNVXMSZD.js} +70 -27
  207. package/chunks/{grep-QUQ3J6SR.js → grep-3NLSS32D.js} +6 -6
  208. package/chunks/handleAutoUpdate-AWAGHKOX.js +111 -0
  209. package/chunks/{i18n-Q6K7AX7Y.js → i18n-CYA25C5F.js} +54 -53
  210. package/chunks/{image-gen-RYOBEDNB.js → image-gen-63NN2H5N.js} +9 -9
  211. package/chunks/initializer-JD2FLNLO.js +115 -0
  212. package/chunks/installationInfo-N3DCWVWR.js +109 -0
  213. package/chunks/{keychain-token-storage-LQTBIXSX.js → keychain-token-storage-3MGFRYGM.js} +2 -2
  214. package/chunks/list-XDQAUET5.js +118 -0
  215. package/chunks/{list-agents-522ILPAR.js → list-agents-EXRSHIDJ.js} +2 -2
  216. package/chunks/loadedSettingsAdapter-IK7H5JRK.js +112 -0
  217. package/chunks/{loggingContentGenerator-RTDUJF6Y.js → loggingContentGenerator-CZWUAHAI.js} +20 -20
  218. package/chunks/{loop-wakeup-VSA4TBIC.js → loop-wakeup-XBPB2BRO.js} +5 -5
  219. package/chunks/{ls-FUCLEBTL.js → ls-WFONAND2.js} +4 -4
  220. package/chunks/{lsp-FYP6TW4R.js → lsp-DUKPDUXN.js} +2 -2
  221. package/chunks/{managed-npm-update-NUDVKV7F.js → managed-npm-update-54W23SP5.js} +54 -53
  222. package/chunks/mcp-2E7ZLMEE.js +112 -0
  223. package/chunks/{monitor-AU2SG5OL.js → monitor-A4J5QRGJ.js} +41 -41
  224. package/chunks/nonInteractiveCli-ZNDXB62Y.js +185 -0
  225. package/chunks/{notebook-edit-TGU7XHIO.js → notebook-edit-4ANFZON5.js} +42 -42
  226. package/chunks/{openaiContentGenerator-QPFWSUPT.js → openaiContentGenerator-JCCJJQZC.js} +24 -24
  227. package/chunks/pidfile-DHV2Y7UD.js +113 -0
  228. package/chunks/{processUtils-ZSHN6VGJ.js → processUtils-JJAR56SO.js} +2 -2
  229. package/chunks/prompt-terminal-ledger-LDZ6QVYA.js +107 -0
  230. package/chunks/{qwenContentGenerator-MEXKZX5O.js → qwenContentGenerator-5JM44ZSA.js} +46 -46
  231. package/chunks/{qwenOAuth2-QHHUP4KQ.js → qwenOAuth2-JIYAWXTW.js} +8 -8
  232. package/chunks/{read-file-T7ESVJAQ.js → read-file-N3E5DY7N.js} +12 -12
  233. package/chunks/{read-mcp-resource-5QGBDZ43.js → read-mcp-resource-7A7NFSFL.js} +2 -2
  234. package/chunks/read-package-up-6T6ICKR7.js +13 -0
  235. package/chunks/{record-artifact-K6BYYWXY.js → record-artifact-CPJ4IJSD.js} +4 -4
  236. package/chunks/report-findings-VFM5DENC.js +33 -0
  237. package/chunks/{request-shutdown-EUXDG4IH.js → request-shutdown-AXVOFN5C.js} +7 -7
  238. package/chunks/{resumeHistoryUtils-JFEAZEWW.js → resumeHistoryUtils-YQRITQAG.js} +60 -59
  239. package/chunks/{ripGrep-KOP6AHIX.js → ripGrep-NEIHKBKB.js} +17 -17
  240. package/chunks/{run-qwen-serve-IAVPTDB7.js → run-qwen-serve-IWGPZADI.js} +577 -67
  241. package/chunks/{runtime-ZICTJKT5.js → runtime-I76HPFUE.js} +64 -63
  242. package/chunks/{scheduler-YNVAANNX.js → scheduler-M6YL4K4I.js} +55 -54
  243. package/chunks/{sdk-exporters-http-GCVM7E4X.js → sdk-exporters-http-XXSKBD2C.js} +2 -2
  244. package/chunks/{sdk-impl-E3KA6NMY.js → sdk-impl-VPNBLV7I.js} +4 -4
  245. package/chunks/{send-message-EJUCEIKN.js → send-message-A2GXDX3B.js} +7 -7
  246. package/chunks/{serve-NF25WYMU.js → serve-XY5S63GN.js} +59 -58
  247. package/chunks/{server-7LKYWHCE.js → server-TWXRRREO.js} +605 -334
  248. package/chunks/{session-5FBBDYPI.js → session-IT5ZXU7A.js} +104 -99
  249. package/chunks/{settings-F7IXLQQW.js → settings-IX5HOOCG.js} +58 -57
  250. package/chunks/{shell-IJYC4BVX.js → shell-LZ55AAJB.js} +41 -41
  251. package/chunks/{skill-RTZU743G.js → skill-WSZ53D2R.js} +107 -23
  252. package/chunks/{skill-settings-ZOHS4J2E.js → skill-settings-5U7FTJIK.js} +58 -57
  253. package/chunks/{spawnChannel-JLKWUMTV.js → spawnChannel-TMC6VXGN.js} +55 -54
  254. package/chunks/{standalone-update-W44DUURE.js → standalone-update-CUYGWTR4.js} +55 -54
  255. package/chunks/{startInteractiveUI-7HPDSR7W.js → startInteractiveUI-O6BI2OSA.js} +219 -170
  256. package/chunks/{syntheticOutput-3ITPRJOB.js → syntheticOutput-5AJ444QT.js} +3 -3
  257. package/chunks/{task-create-USIZE733.js → task-create-CDJSOEQD.js} +11 -11
  258. package/chunks/{task-list-AWAJUPIP.js → task-list-BELMPA75.js} +5 -5
  259. package/chunks/{task-stop-I2CQSMDX.js → task-stop-U3S3KZG2.js} +2 -2
  260. package/chunks/{task-update-TFF2KJGL.js → task-update-77VCFDDZ.js} +11 -11
  261. package/chunks/{team-create-IU2A6HD3.js → team-create-UF4TMQEH.js} +41 -41
  262. package/chunks/{team-delete-E4C4AMPF.js → team-delete-YWFXX77L.js} +5 -5
  263. package/chunks/{team-plan-approval-BWI43D37.js → team-plan-approval-U57NSR6C.js} +41 -41
  264. package/chunks/{terminal-image-renderer-GQAMHJF2.js → terminal-image-renderer-DRL3BROJ.js} +55 -54
  265. package/chunks/theme-manager-HHJPUDRN.js +104 -0
  266. package/chunks/{todoWrite-ZUS3HGEF.js → todoWrite-435EO2CS.js} +4 -4
  267. package/chunks/{tool-search-TQNHT22X.js → tool-search-SV35UV72.js} +17 -17
  268. package/chunks/{total-session-admission-JMM73HNK.js → total-session-admission-TQI7TCTL.js} +57 -56
  269. package/chunks/{trustedFolders-BKQ2UXIB.js → trustedFolders-YKK67IP3.js} +54 -53
  270. package/chunks/{update-relaunch-WI7IWWCM.js → update-relaunch-DX7LVA4P.js} +5 -5
  271. package/chunks/{updateCheck-K6WUHPPT.js → updateCheck-6JRTKTUF.js} +58 -57
  272. package/chunks/useAutoAcceptIndicator-MYXYSKSL.js +122 -0
  273. package/chunks/{validateNonInterActiveAuth-RXCZM7MM.js → validateNonInterActiveAuth-B26O4YJP.js} +100 -95
  274. package/chunks/{version-IRAYALVC.js → version-K5D7VJ4B.js} +2 -2
  275. package/chunks/{web-fetch-FUG5KGKQ.js → web-fetch-VFHZLLNZ.js} +16 -16
  276. package/chunks/{web-search-SO3LHSHP.js → web-search-AQE5A4J5.js} +9 -9
  277. package/chunks/{workflow-XJRA3GRI.js → workflow-XL6AEUZ7.js} +150 -52
  278. package/chunks/workspace-providers-status-H6TG34YV.js +116 -0
  279. package/chunks/{workspace-registration-store-LCB4GHNP.js → workspace-registration-store-I4U3V5LL.js} +1 -1
  280. package/chunks/{workspace-registry-QWPFWGEF.js → workspace-registry-2PWNIYNI.js} +57 -56
  281. package/chunks/{workspace-service-MPGLZJF6.js → workspace-service-4FGTUJLA.js} +65 -64
  282. package/chunks/workspace-skills-status-7VOLUDT6.js +115 -0
  283. package/chunks/{workspace-trust-reconciler-4QDDGBQZ.js → workspace-trust-reconciler-GJ466KCE.js} +65 -64
  284. package/chunks/write-file-PWOYCT2K.js +90 -0
  285. package/chunks/{zh-TW-FZ3ETVR2.js → zh-TW-MV4FWFB6.js} +1 -0
  286. package/chunks/{zh-K3OJZ5LI.js → zh-X3WGU6SI.js} +1 -0
  287. package/chunks/{zoom-image-TCBO2YL5.js → zoom-image-NYJPC3NI.js} +12 -12
  288. package/cli.js +13 -13
  289. package/locales/ca.js +1 -0
  290. package/locales/en.js +1 -0
  291. package/locales/zh-TW.js +1 -0
  292. package/locales/zh.js +1 -0
  293. package/package.json +3 -3
  294. package/web-shell/assets/{abnfDiagram-VCTEODGH-hQsSuKY7.js → abnfDiagram-VCTEODGH-yq7z7Anb.js} +1 -1
  295. package/web-shell/assets/{arc-CpKLq3XD.js → arc-CbJO0xnT.js} +1 -1
  296. package/web-shell/assets/{architectureDiagram-5GKGNRK7-Bplk1J-m.js → architectureDiagram-5GKGNRK7-CRh89421.js} +1 -1
  297. package/web-shell/assets/{blockDiagram-NRAW4CY4-B-cca4ej.js → blockDiagram-NRAW4CY4-C75KAhKv.js} +1 -1
  298. package/web-shell/assets/{c4Diagram-UCG6FXSJ-BZ8cn00E.js → c4Diagram-UCG6FXSJ-BzlMveFB.js} +1 -1
  299. package/web-shell/assets/channel-B3sGR79J.js +1 -0
  300. package/web-shell/assets/{chunk-2Q5K7J3B-DEQ2uYU0.js → chunk-2Q5K7J3B-DA8QDX3a.js} +1 -1
  301. package/web-shell/assets/{chunk-5VM5RSS4-DqH8Lz-4.js → chunk-5VM5RSS4-Bgu7gQ7Y.js} +1 -1
  302. package/web-shell/assets/{chunk-F27PBJKO-Dru7qMTB.js → chunk-F27PBJKO-BOew7pIK.js} +1 -1
  303. package/web-shell/assets/{chunk-G27WJ6UU-DN8KcdzT.js → chunk-G27WJ6UU-DHx1I-hO.js} +1 -1
  304. package/web-shell/assets/{chunk-JWPE2WC7-DMS-EquZ.js → chunk-JWPE2WC7-SarFW0WU.js} +1 -1
  305. package/web-shell/assets/{chunk-LCL6LL3I-ubbLaEwq.js → chunk-LCL6LL3I-BLzP083Z.js} +1 -1
  306. package/web-shell/assets/{chunk-POPQ4Y6H-DdIZqnYy.js → chunk-POPQ4Y6H-Bmkv_iKm.js} +1 -1
  307. package/web-shell/assets/{chunk-SVP7TREG-DkgYFSnb.js → chunk-SVP7TREG-MPx9r1N2.js} +1 -1
  308. package/web-shell/assets/{chunk-XXDRQBXY-CaesHiYG.js → chunk-XXDRQBXY-Ck-09rKG.js} +1 -1
  309. package/web-shell/assets/classDiagram-DTDB5LWJ-sTGo0K3v.js +1 -0
  310. package/web-shell/assets/classDiagram-v2-JRS7N3AN-sTGo0K3v.js +1 -0
  311. package/web-shell/assets/{cose-bilkent-JH36ORCC-bqnC4Oq-.js → cose-bilkent-JH36ORCC-DWm6lfOG.js} +1 -1
  312. package/web-shell/assets/{cynefin-OW5HDTMX-mDRBhRzB.js → cynefin-OW5HDTMX-DcBUyr5R.js} +1 -1
  313. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-B4Tod_Ik.js → cynefinDiagram-5FMLGOSQ-Df8qmd_p.js} +1 -1
  314. package/web-shell/assets/{dagre-3AP2YEHR-DU9f-iCw.js → dagre-3AP2YEHR-DDmGspD7.js} +1 -1
  315. package/web-shell/assets/{diagram-S7CK7UJ4-BsYVeB7c.js → diagram-S7CK7UJ4-BK_qFvbi.js} +1 -1
  316. package/web-shell/assets/{diagram-UQ7AKVKN-frM5Sn9C.js → diagram-UQ7AKVKN-Uw3AP_bi.js} +1 -1
  317. package/web-shell/assets/{diagram-VSXAHHWV-C1Z7uZdv.js → diagram-VSXAHHWV-CJOQKxY7.js} +1 -1
  318. package/web-shell/assets/{diagram-VX7I27RA-CIY4x0M9.js → diagram-VX7I27RA-DhdvZna5.js} +1 -1
  319. package/web-shell/assets/{diagram-Z3DM3KII-hTl4GIbg.js → diagram-Z3DM3KII-edQU0nlP.js} +1 -1
  320. package/web-shell/assets/{ebnfDiagram-PWID7BFC-4loIGTHZ.js → ebnfDiagram-PWID7BFC-4kugBEsO.js} +1 -1
  321. package/web-shell/assets/{erDiagram-SSCWMZ5O-B9Up14ul.js → erDiagram-SSCWMZ5O-BMkFivWO.js} +1 -1
  322. package/web-shell/assets/{flowDiagram-A5DVABFB-CIPfQBl9.js → flowDiagram-A5DVABFB-BM1ea8g-.js} +1 -1
  323. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DaZk3lrl.js → ganttDiagram-EL5Y4UJY-CXj_cKRf.js} +1 -1
  324. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-D-knAHoQ.js → gitGraphDiagram-WWUBYQGX-D0nEqwqu.js} +1 -1
  325. package/web-shell/assets/{index-Di8dYJlQ.js → index-B6JN54Pd.js} +1 -1
  326. package/web-shell/assets/{index-RNKRtdDf.css → index-C-XlQn24.css} +1 -1
  327. package/web-shell/assets/{index-pkWucfFU.js → index-DLjXM0dn.js} +367 -367
  328. package/web-shell/assets/{infoDiagram-RXCK75RN-7AJndIyq.js → infoDiagram-RXCK75RN-DF7aGGbQ.js} +1 -1
  329. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DjIU3IKv.js → ishikawaDiagram-5VMMS53U-CZYNX1lL.js} +1 -1
  330. package/web-shell/assets/{journeyDiagram-EYS64GPL-D3cf3462.js → journeyDiagram-EYS64GPL-CvrqMUz1.js} +1 -1
  331. package/web-shell/assets/{kanban-definition-3QL26DDD-CmuPjlRe.js → kanban-definition-3QL26DDD-BZNJQZBj.js} +1 -1
  332. package/web-shell/assets/{layout-C2Ci1XAx.js → layout-Bf83x7D6.js} +1 -1
  333. package/web-shell/assets/{linear-CqOKGHue.js → linear-Bkc3ES2f.js} +1 -1
  334. package/web-shell/assets/{mermaid.core-Bnt57s5_.js → mermaid.core-C6xuovwz.js} +6 -6
  335. package/web-shell/assets/{mindmap-definition-FBJOCRG2-BSSJVfj3.js → mindmap-definition-FBJOCRG2-DzH6gVRg.js} +1 -1
  336. package/web-shell/assets/{pegDiagram-XKGWAZYB-DNLHwge4.js → pegDiagram-XKGWAZYB-DCvLh2fa.js} +1 -1
  337. package/web-shell/assets/{pieDiagram-E7YTZNPT-CYRSio_9.js → pieDiagram-E7YTZNPT-BtjVlx_6.js} +1 -1
  338. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CzSwKETq.js → quadrantDiagram-AXDQQJYC-IbroqxFe.js} +1 -1
  339. package/web-shell/assets/{railroadDiagram-O6MQD6OU-Dzbg_Jis.js → railroadDiagram-O6MQD6OU-BvMykiWW.js} +1 -1
  340. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CY3Apuzl.js → requirementDiagram-EFPCY7ZU-D-HHMyrh.js} +1 -1
  341. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-432Hiv50.js → sankeyDiagram-P5KCCOFB-C0XXhB6d.js} +1 -1
  342. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CucAf-fk.js → sequenceDiagram-WJ2MYXX4-DseAXj5d.js} +1 -1
  343. package/web-shell/assets/{sizeCapture-X5ZJPWSS-RBc9fiXv.js → sizeCapture-X5ZJPWSS-Cek2EweK.js} +1 -1
  344. package/web-shell/assets/{stateDiagram-HBIQ2CUA-BwsgjK6k.js → stateDiagram-HBIQ2CUA-yLv8wafW.js} +1 -1
  345. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DeThXnol.js +1 -0
  346. package/web-shell/assets/{swimlanes-XN3QIQJK-DMMYIqPz.js → swimlanes-XN3QIQJK-Cwz-opvE.js} +1 -1
  347. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-GW0R1ZSv.js +8 -0
  348. package/web-shell/assets/{timeline-definition-24CTP7MA-BbmmEMJb.js → timeline-definition-24CTP7MA-BJuFD7OG.js} +1 -1
  349. package/web-shell/assets/{vennDiagram-4TSXK5OY-DlfQjNzM.js → vennDiagram-4TSXK5OY-CNAavdoV.js} +1 -1
  350. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-86EXFbP6.js → wardleyDiagram-VM6X3IG4-DaIjAidq.js} +1 -1
  351. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-794nZBSV.js → xychartDiagram-S5SC5T6Z-DkcQXjTy.js} +1 -1
  352. package/web-shell/index.html +2 -2
  353. package/chunks/MaxSizedBox-RQWAKXYC.js +0 -111
  354. package/chunks/agent-headless-YBSOXERA.js +0 -87
  355. package/chunks/channel-settings-store-DD6W3EJQ.js +0 -116
  356. package/chunks/config-utils-WXWWMH2D.js +0 -112
  357. package/chunks/contextCommand-UKPGPBW5.js +0 -107
  358. package/chunks/daemon-status-provider-D2HNWRDK.js +0 -116
  359. package/chunks/daemon-trust-policy-F4JM5CKX.js +0 -113
  360. package/chunks/earlyInputCapture-54M7AWAF.js +0 -108
  361. package/chunks/handleAutoUpdate-T36AMYVP.js +0 -110
  362. package/chunks/initializer-6USYPDX7.js +0 -114
  363. package/chunks/installationInfo-46TRIE5M.js +0 -108
  364. package/chunks/list-BCX6JAYS.js +0 -117
  365. package/chunks/loadedSettingsAdapter-7OBB7B6J.js +0 -111
  366. package/chunks/mcp-FCS6V74Y.js +0 -111
  367. package/chunks/nonInteractiveCli-CQUUSJ3N.js +0 -180
  368. package/chunks/pidfile-SIEQM3X5.js +0 -112
  369. package/chunks/prompt-terminal-ledger-YIAGDBHG.js +0 -106
  370. package/chunks/theme-manager-73W4SEDX.js +0 -103
  371. package/chunks/useAutoAcceptIndicator-SMCU7IYQ.js +0 -121
  372. package/chunks/workspace-providers-status-ZYXLTCJ5.js +0 -115
  373. package/chunks/workspace-skills-status-ZVFYCT5C.js +0 -114
  374. package/chunks/write-file-2KVXXVWB.js +0 -90
  375. package/web-shell/assets/channel-DggMZLoL.js +0 -1
  376. package/web-shell/assets/classDiagram-DTDB5LWJ-DPMQMV0q.js +0 -1
  377. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DPMQMV0q.js +0 -1
  378. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-C_HLER48.js +0 -1
  379. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-KP0j5nd5.js +0 -8
@@ -4,98 +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-DLYJ3RN7.js";
8
- import "./chunk-EJ5XRNOK.js";
9
- import "./chunk-HTIG2U5C.js";
7
+ import "./chunk-VMDURMFY.js";
8
+ import "./chunk-J7MLXFC5.js";
9
+ import "./chunk-LRKMQPMD.js";
10
10
  import "./chunk-LJZSMWOH.js";
11
- import "./chunk-2ZH5XAOO.js";
12
- import "./chunk-DZPWZPGJ.js";
13
- import "./chunk-LD76HNCC.js";
14
- import "./chunk-F37T2S4O.js";
15
- import "./chunk-IKPQM6I5.js";
16
- import "./chunk-V6R3IEHF.js";
11
+ import "./chunk-47SIHHPL.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";
17
18
  import "./chunk-ZPJWUGCS.js";
18
- import "./chunk-RLR7K4JJ.js";
19
- import "./chunk-FZUVUBYH.js";
20
- import "./chunk-UFWRXRQ5.js";
19
+ import "./chunk-ZWKGZB2K.js";
20
+ import "./chunk-OX44MOAN.js";
21
+ import "./chunk-XYX474JQ.js";
21
22
  import "./chunk-GOFAQQZA.js";
22
23
  import "./chunk-5M6IDOMF.js";
23
24
  import "./chunk-TWPJO254.js";
24
25
  import "./chunk-CQ35AJ4Z.js";
25
- import "./chunk-J54EA46E.js";
26
- import "./chunk-PQ4RTSTH.js";
27
- import "./chunk-3E53DKST.js";
28
- import "./chunk-DV3KOUUU.js";
26
+ import "./chunk-3UZCLCXR.js";
27
+ import "./chunk-TOF4UZHH.js";
28
+ import "./chunk-O3BUXIPM.js";
29
+ import "./chunk-ZLTEQYNC.js";
29
30
  import "./chunk-6PVPNMXU.js";
30
- import "./chunk-R7Q5V3A5.js";
31
+ import "./chunk-AYVIGUUK.js";
31
32
  import "./chunk-IRH27ZC2.js";
32
33
  import "./chunk-QHWCP53L.js";
33
- import "./chunk-KDGY3ST4.js";
34
+ import "./chunk-JECO75XD.js";
34
35
  import "./chunk-O6GEWCJA.js";
35
36
  import "./chunk-T26EAKDL.js";
36
37
  import {
37
38
  GitWorktreeService
38
- } from "./chunk-FLTGTSLG.js";
39
+ } from "./chunk-LJP2BBMK.js";
39
40
  import "./chunk-CPBF7KYF.js";
40
- import "./chunk-NA6AZRDQ.js";
41
- import "./chunk-ZB7VDPZB.js";
42
- import "./chunk-CGWPQ6IM.js";
43
- import "./chunk-RSWDOHXS.js";
41
+ import "./chunk-5Y2JCJAH.js";
42
+ import "./chunk-T2CRBIDJ.js";
43
+ import "./chunk-77TOMRBG.js";
44
+ import "./chunk-DEYPMJPD.js";
44
45
  import {
46
+ getShellConfiguration,
45
47
  require_shell_quote,
46
48
  splitCommands
47
- } from "./chunk-5X33EPHJ.js";
48
- import "./chunk-CPZQJP6J.js";
49
- import "./chunk-UY2JOZK7.js";
50
- import "./chunk-WANR3VVK.js";
51
- import "./chunk-3KV5KXKU.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";
52
54
  import "./chunk-MLXTMF7H.js";
53
55
  import "./chunk-NAVJD2PQ.js";
54
- import "./chunk-OY3ZSNQC.js";
55
- import "./chunk-AHQBSQYT.js";
56
+ import "./chunk-FVDQ5E67.js";
57
+ import "./chunk-V3GINY6K.js";
56
58
  import "./chunk-QHMLYMMS.js";
57
- import "./chunk-JS55F2GJ.js";
59
+ import "./chunk-SDVF6A42.js";
58
60
  import "./chunk-P3QQPMQA.js";
59
- import "./chunk-O5ONGZGZ.js";
61
+ import "./chunk-ILPXSKGQ.js";
60
62
  import "./chunk-VNOVK4I7.js";
61
63
  import "./chunk-SAH4BD2J.js";
62
- import "./chunk-CZIF7I53.js";
63
- import "./chunk-OWE7TE3F.js";
64
+ import "./chunk-ZKAZP2ZG.js";
65
+ import "./chunk-DP7LABIB.js";
64
66
  import "./chunk-S6LOFUVP.js";
65
67
  import "./chunk-2LD5U7Q3.js";
66
68
  import "./chunk-DJ2GSRLV.js";
67
- import "./chunk-BOQRZ443.js";
69
+ import "./chunk-I6VVOZDK.js";
68
70
  import "./chunk-K2OJUPOE.js";
69
71
  import "./chunk-CFKIH3D3.js";
70
- import "./chunk-27HAGBZG.js";
71
- import "./chunk-JGDTCEBH.js";
72
- import "./chunk-EUZE3GSL.js";
72
+ import "./chunk-EB4VDXNI.js";
73
+ import "./chunk-FJWICLG7.js";
74
+ import "./chunk-UX3IFLJM.js";
73
75
  import "./chunk-YRLW2MSX.js";
74
76
  import "./chunk-VGC4I5JJ.js";
75
77
  import {
76
78
  isWithinRoot
77
- } from "./chunk-QKGJIP2H.js";
78
- import "./chunk-MTKBZIXU.js";
79
- import "./chunk-QQQSUCC4.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-SIC4S3RX.js";
83
- import "./chunk-O6CS7VRT.js";
84
+ import "./chunk-SLEWBQWM.js";
85
+ import "./chunk-ICWGPK23.js";
84
86
  import "./chunk-XZA32HII.js";
85
- import "./chunk-UEY5WCRB.js";
86
- import "./chunk-FNZ42WN7.js";
87
+ import "./chunk-7QGEJI7M.js";
88
+ import "./chunk-GTUKW3I6.js";
87
89
  import "./chunk-HHJLM3WQ.js";
88
- import "./chunk-ZJWFRMCY.js";
90
+ import "./chunk-6US7BF3G.js";
89
91
  import "./chunk-74TONY4F.js";
90
- import "./chunk-DD5XZICM.js";
91
- import "./chunk-COT2IXPM.js";
92
- import "./chunk-K623ENWT.js";
92
+ import "./chunk-VL4YX3FH.js";
93
+ import "./chunk-JUIJ3FXC.js";
94
+ import "./chunk-E6FGMDFQ.js";
93
95
  import "./chunk-AQ37AY7B.js";
94
- import "./chunk-SJLW5XGQ.js";
95
- import "./chunk-3LUGIYS3.js";
96
+ import "./chunk-RRKNX553.js";
97
+ import "./chunk-KOJ6MHD5.js";
96
98
  import {
97
99
  realpathNearestExistingAsync
98
- } from "./chunk-VLEGGCEA.js";
100
+ } from "./chunk-2NNTE2ED.js";
99
101
  import "./chunk-75DOP5OR.js";
100
102
  import "./chunk-DMTGGOSA.js";
101
103
  import "./chunk-YQ3U5MUC.js";
@@ -184,6 +186,17 @@ var GIT_UNRESOLVABLE_ENV_KEYS = /* @__PURE__ */ new Set([
184
186
  var GIT_NUMBERED_CONFIG_ENV_PATTERN = /^GIT_CONFIG_(KEY|VALUE)_\d+$/;
185
187
  var SHELL_WRAPPER_PROGRAMS = /* @__PURE__ */ new Set(["bash", "dash", "ksh", "sh", "zsh"]);
186
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
+ ];
187
200
  function shellBundleRequestsCommand(flag) {
188
201
  if (!flag.startsWith("-") || flag.startsWith("--")) return false;
189
202
  return flag.slice(1).includes("c");
@@ -234,6 +247,14 @@ var SUDO_CHDIR_FLAGS = /* @__PURE__ */ new Set(["-D", "--chdir"]);
234
247
  var SUDO_CHROOT_FLAGS = /* @__PURE__ */ new Set(["-R", "--chroot"]);
235
248
  var TIMEOUT_VALUE_FLAGS = /* @__PURE__ */ new Set(["-k", "-s", "--kill-after", "--signal"]);
236
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
+ ]);
237
258
  var PATH_EXTRACTING_PROGRAMS = /* @__PURE__ */ new Set(["cpio", "rsync", "tar", "unzip"]);
238
259
  var PROGRAMS_WITH_OWN_C_FLAG = /* @__PURE__ */ new Set([
239
260
  "cmake",
@@ -256,6 +277,8 @@ var EXTERNAL_GUARD_UNSUPPORTED_TOOLS = /* @__PURE__ */ new Set([
256
277
  ]);
257
278
  var DYNAMIC_RELOCATION_DENIAL = "Daemon shell guard denied a mutating Git command with a dynamic repository location.";
258
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.";
259
282
  var UNRESOLVED_TARGET_DENIAL_PREFIX = "Daemon shell guard denied a mutating Git command with an unresolvable repository location: ";
260
283
  var OUTSIDE_TARGET_DENIAL_PREFIX = "Daemon shell guard denied a mutating Git command outside the session working directory: ";
261
284
  var UNDECIDABLE_PAYLOAD_DENIAL = "Daemon shell guard denied a shell command whose payload could not be resolved before execution.";
@@ -327,6 +350,135 @@ var REDIRECT_OPERATORS = /* @__PURE__ */ new Set([
327
350
  "&>",
328
351
  "&>>"
329
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");
330
482
  function tokenizeSegment(segment, startDepth) {
331
483
  let parsed;
332
484
  try {
@@ -449,12 +601,13 @@ function hasGitRelocationMarker(tokens) {
449
601
  }
450
602
  __name(hasGitRelocationMarker, "hasGitRelocationMarker");
451
603
  var GIT_WORD_PATTERN = /\bgit\b/i;
452
- 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)\+?=/;
453
- 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)\+?=/;
454
606
  var GIT_PROGRAM_ENV_KEYS = /* @__PURE__ */ new Set(["GIT_EXEC_PATH", "PATH"]);
455
607
  function recordEnvAssignment(token, state) {
456
- const key = leadingEnvAssignmentKey(token.text);
457
- 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;
458
611
  if (GIT_PROGRAM_ENV_KEYS.has(key) || GIT_UNRESOLVABLE_ENV_KEYS.has(key) || GIT_NUMBERED_CONFIG_ENV_PATTERN.test(key)) {
459
612
  state.unresolved = true;
460
613
  return;
@@ -721,11 +874,36 @@ var EXPORT_BUILTINS = /* @__PURE__ */ new Set([
721
874
  "typeset"
722
875
  ]);
723
876
  var CHDIR_OPTION_PATTERN = /^-[LPe@qs]+$/;
724
- 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) {
725
899
  let index = start;
726
900
  while (index < run.length) {
727
901
  const token = run[index];
728
902
  if (token.text === "--") return run[index + 1];
903
+ if (windows && /^\/[dD]$/.test(token.text)) {
904
+ index++;
905
+ continue;
906
+ }
729
907
  if (variant === "cd" && CHDIR_OPTION_PATTERN.test(token.text)) {
730
908
  index++;
731
909
  continue;
@@ -818,7 +996,10 @@ function readDefinition(run) {
818
996
  return { name, body: joinArgvTexts(bodyTokens) };
819
997
  }
820
998
  __name(readDefinition, "readDefinition");
821
- function analyzeRun(run) {
999
+ function analyzeRun(run, platform = process.platform) {
1000
+ if (platform === "win32" && getShellConfiguration().shell !== "bash") {
1001
+ run = splitFusedWindowsChdirs(run);
1002
+ }
822
1003
  const state = { relocations: [], unresolved: false };
823
1004
  let index = 0;
824
1005
  let assignments = 0;
@@ -847,6 +1028,25 @@ function analyzeRun(run) {
847
1028
  for (const operand of operands) recordEnvAssignment(operand, state);
848
1029
  return { kind: "export", state, operands };
849
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
+ }
850
1050
  if (program === "set") {
851
1051
  if (requestsAllExport(run, index + 1)) {
852
1052
  return { kind: "all-export", state };
@@ -893,6 +1093,9 @@ function analyzeRun(run) {
893
1093
  propagatesCwd: true
894
1094
  };
895
1095
  }
1096
+ if (platform === "win32" && WINDOWS_SHELL_PROGRAMS.has(program)) {
1097
+ return { kind: "undecidable" };
1098
+ }
896
1099
  if (SHELL_WRAPPER_PROGRAMS.has(program)) {
897
1100
  const scan = consumeShellWrapper(run, index);
898
1101
  if (scan.kind === "none") {
@@ -916,14 +1119,19 @@ function analyzeRun(run) {
916
1119
  if (program === "git") {
917
1120
  return { kind: "git", tokens: run.slice(index), state };
918
1121
  }
919
- 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
+ );
920
1128
  return {
921
1129
  kind: "cd",
922
- variant: program,
923
- target: findChdirTarget(run, index + 1, program),
1130
+ variant,
1131
+ target: namedIndex >= 0 ? rest[namedIndex + 1] : findChdirTarget(rest, 0, variant, platform === "win32"),
924
1132
  // `cd -P` resolves each component through its symlinks before
925
1133
  // applying `..`, which a lexical resolve cannot reproduce.
926
- 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))
927
1135
  };
928
1136
  }
929
1137
  return { kind: "other", state, assignmentsOnly: false };
@@ -1079,9 +1287,12 @@ async function resolveGitDirRepository(canonicalGitDir) {
1079
1287
  }
1080
1288
  __name(resolveGitDirRepository, "resolveGitDirRepository");
1081
1289
  async function resolvePhysicalPath(base, target) {
1082
- 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;
1083
1294
  const separators = path.sep === "\\" ? /[\\/]+/ : /\/+/;
1084
- for (const segment of target.split(separators)) {
1295
+ for (const segment of walkable.split(separators)) {
1085
1296
  if (segment === "" || segment === ".") continue;
1086
1297
  if (segment === "..") {
1087
1298
  current = path.dirname(await realpathNearestExistingAsync(current));
@@ -1499,18 +1710,45 @@ async function evaluateCommandWithCwd(command, startCwd, entryCwd, context, dept
1499
1710
  }
1500
1711
  return void 0;
1501
1712
  }, "invokeDefinedBody");
1502
- const segments = splitCommands(stripHeredocBodies(command));
1503
- 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);
1504
1736
  const separatorsMatch = separators.length === segments.length - 1;
1505
- const isPipeComponent = /* @__PURE__ */ __name((index) => separatorsMatch ? (
1506
- // Both sides of a pipe run in subshells; for `&` only the segment it
1507
- // follows (the backgrounded one) does — the next segment is
1508
- // foreground.
1509
- separators[index - 1] === "|" || separators[index] === "|" || separators[index] === "&"
1510
- ) : (
1511
- // Structural disagreement with `splitCommands`: scope every segment
1512
- // rather than guess which ones ran in a subshell.
1513
- 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 pipe — so 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
+ )
1514
1752
  ), "isPipeComponent");
1515
1753
  for (const [segmentIndex, segment] of segments.entries()) {
1516
1754
  const pipeComponent = isPipeComponent(segmentIndex);
@@ -1534,7 +1772,7 @@ async function evaluateCommandWithCwd(command, startCwd, entryCwd, context, dept
1534
1772
  cwdAfter: trackedCwd
1535
1773
  };
1536
1774
  }
1537
- 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.
1538
1776
  /^\s*function\s+([A-Za-z_][A-Za-z0-9_]*)\b/.exec(segment);
1539
1777
  if (functionHeader) {
1540
1778
  insideDefinition = functionHeader[1];
@@ -1641,7 +1879,7 @@ ${segment}`;
1641
1879
  if (denial) return { denial, cwdAfter: trackedCwd };
1642
1880
  continue;
1643
1881
  }
1644
- const analysis = analyzeRun(run);
1882
+ const analysis = analyzeRun(run, platformNow);
1645
1883
  switch (analysis.kind) {
1646
1884
  case "cd": {
1647
1885
  const target = analysis.target === void 0 ? void 0 : expandShellLocals(analysis.target, shellLocals);
@@ -1846,7 +2084,7 @@ ${segment}`;
1846
2084
  allExport = false;
1847
2085
  break;
1848
2086
  case "other": {
1849
- const aliasDefinitions = readAliasDefinitions(run);
2087
+ const aliasDefinitions = windowsNative ? [] : readAliasDefinitions(run);
1850
2088
  if (aliasDefinitions.length > 0) {
1851
2089
  for (const definition2 of aliasDefinitions) {
1852
2090
  definedBodies.set(definition2.name, {
@@ -1856,7 +2094,7 @@ ${segment}`;
1856
2094
  }
1857
2095
  break;
1858
2096
  }
1859
- const definition = readDefinition(run);
2097
+ const definition = windowsNative ? void 0 : readDefinition(run);
1860
2098
  if (definition) {
1861
2099
  definedBodies.set(definition.name, {
1862
2100
  body: definition.body,
@@ -1865,7 +2103,7 @@ ${segment}`;
1865
2103
  break;
1866
2104
  }
1867
2105
  const programToken = readProgramWord(run);
1868
- const definitionName = readFunctionName(run);
2106
+ const definitionName = windowsNative ? void 0 : readFunctionName(run);
1869
2107
  if (definitionName) {
1870
2108
  if (run.some((token) => GIT_WORD_PATTERN.test(token.text))) {
1871
2109
  gitShapedNames.add(definitionName);
@@ -1894,12 +2132,16 @@ ${segment}`;
1894
2132
  if (run.some((t) => PATH_EXTRACTING_PROGRAMS.has(executableBaseName(t)))) {
1895
2133
  if (trackedCwd !== void 0) relinkedTargets.push(trackedCwd);
1896
2134
  }
1897
- if (run.some((t) => PATH_RELINKING_PROGRAMS.has(executableBaseName(t)))) {
1898
- 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;
1899
2143
  if (operand.text.startsWith("-")) continue;
1900
- if (PATH_RELINKING_PROGRAMS.has(executableBaseName(operand))) {
1901
- continue;
1902
- }
2144
+ if (windowsNative && operand.text.startsWith("/")) continue;
1903
2145
  if (operand.dynamic || trackedCwd === void 0) {
1904
2146
  scope.relink.gitDir = true;
1905
2147
  continue;
@@ -2068,7 +2310,10 @@ function createDaemonToolGuard(externalGuard) {
2068
2310
  }
2069
2311
  __name(createDaemonToolGuard, "createDaemonToolGuard");
2070
2312
  export {
2071
- createDaemonToolGuard
2313
+ containsCmdRewriteSyntax,
2314
+ containsUnmodelledWindowsSyntax,
2315
+ createDaemonToolGuard,
2316
+ preserveWindowsPathSeparators
2072
2317
  };
2073
2318
  /**
2074
2319
  * @license