@qwen-code/qwen-code 0.19.3 → 0.19.4-nightly.20260702.46814e4f1

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 (308) hide show
  1. package/bundled/loop/SKILL.md +22 -3
  2. package/bundled/loop/SKILL.test.ts +20 -0
  3. package/bundled/loop/autonomous-loop.test.ts +59 -0
  4. package/bundled/loop/autonomous-loop.ts +102 -0
  5. package/bundled/loop/loop-task-file.test.ts +1064 -0
  6. package/bundled/loop/loop-task-file.ts +404 -0
  7. package/bundled/loop/loop-tick-resolver.test.ts +906 -0
  8. package/bundled/loop/loop-tick-resolver.ts +416 -0
  9. package/bundled/qc-helper/SKILL.md +12 -5
  10. package/bundled/qc-helper/docs/configuration/auth.md +1 -1
  11. package/bundled/qc-helper/docs/configuration/settings.md +62 -32
  12. package/bundled/qc-helper/docs/features/approval-mode.md +3 -0
  13. package/bundled/qc-helper/docs/features/auto-mode.md +40 -0
  14. package/bundled/qc-helper/docs/features/channels/overview.md +81 -18
  15. package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
  16. package/bundled/qc-helper/docs/features/code-review.md +17 -61
  17. package/bundled/qc-helper/docs/features/commands.md +42 -40
  18. package/bundled/qc-helper/docs/features/headless.md +19 -18
  19. package/bundled/qc-helper/docs/features/hooks.md +6 -1
  20. package/bundled/qc-helper/docs/features/mcp.md +3 -1
  21. package/bundled/qc-helper/docs/features/memory.md +1 -1
  22. package/bundled/qc-helper/docs/features/scheduled-tasks.md +10 -0
  23. package/bundled/qc-helper/docs/features/status-line.md +3 -3
  24. package/bundled/qc-helper/docs/ide-integration/ide-integration.md +4 -4
  25. package/bundled/qc-helper/docs/qwen-serve.md +53 -0
  26. package/bundled/qc-helper/docs/support/troubleshooting.md +11 -0
  27. package/bundled/review/DESIGN.md +21 -26
  28. package/bundled/review/SKILL.md +45 -129
  29. package/chunks/MaxSizedBox-GHGRQ2OS.js +69 -0
  30. package/chunks/{StandaloneSessionPicker-Z52JTYST.js → StandaloneSessionPicker-G7YTTM27.js} +49 -42
  31. package/chunks/{acpAgent-7RZUOWOM.js → acpAgent-SDOILBSU.js} +1325 -365
  32. package/chunks/{agent-4FG7WTHJ.js → agent-NTSXGV4L.js} +31 -25
  33. package/chunks/agent-headless-WYURMSAB.js +62 -0
  34. package/chunks/{anthropicContentGenerator-PFITVL7Y.js → anthropicContentGenerator-WL3LJOUB.js} +110 -31
  35. package/chunks/{artifact-tool-D2X7G3C3.js → artifact-tool-W76WC2JX.js} +3 -3
  36. package/chunks/{askUserQuestion-UGETICJQ.js → askUserQuestion-J3P6TH3V.js} +2 -2
  37. package/chunks/bridge-AMOL4W4P.js +73 -0
  38. package/chunks/{ca-IUFWESZL.js → ca-HCMB2I54.js} +10 -9
  39. package/chunks/channel-worker-supervisor-C3IB63V7.js +659 -0
  40. package/chunks/{chunk-STUWFKGD.js → chunk-26JIREA5.js} +466 -543
  41. package/chunks/{chunk-SLNKLLEO.js → chunk-2MRV62AU.js} +37 -8
  42. package/chunks/{chunk-ODLIHNOY.js → chunk-2U4HUMOL.js} +1 -1
  43. package/chunks/{chunk-CKQA6AWF.js → chunk-4D73HUOP.js} +1 -1
  44. package/chunks/{chunk-M2U5NM24.js → chunk-54YZOP7P.js} +309 -72
  45. package/chunks/{chunk-J7FA27RO.js → chunk-5LKL3PAU.js} +3 -3
  46. package/chunks/chunk-5P5XGNYH.js +93 -0
  47. package/chunks/{chunk-UFLGERMB.js → chunk-6JE32BRB.js} +178 -124
  48. package/chunks/{chunk-FKAVULLM.js → chunk-75AVTQJ2.js} +74 -10
  49. package/chunks/{chunk-I2LYBGNI.js → chunk-7IOMIYOE.js} +1 -1
  50. package/chunks/{chunk-4LUZAKMK.js → chunk-7KXAGQJ2.js} +1 -1
  51. package/chunks/{chunk-BXSHL2SF.js → chunk-7LUOQJ3D.js} +1 -1
  52. package/chunks/{chunk-YAINVQ3Q.js → chunk-A5OPLHFM.js} +18693 -17055
  53. package/chunks/chunk-AHNXYU4O.js +24 -0
  54. package/chunks/{chunk-UX4SGCGN.js → chunk-AVQDCKNF.js} +96 -22
  55. package/chunks/{chunk-HYCC3XM3.js → chunk-B236XPGF.js} +1 -1
  56. package/chunks/chunk-B6SZLQAZ.js +3523 -0
  57. package/chunks/{chunk-5DWXLGOM.js → chunk-BJBWRCSK.js} +1 -1
  58. package/chunks/chunk-BPFJQGY7.js +193 -0
  59. package/chunks/{chunk-SKQZZVAV.js → chunk-BZHLWC6T.js} +2 -2
  60. package/chunks/{chunk-U3KSMM7G.js → chunk-D5KISTLW.js} +339 -383
  61. package/chunks/{chunk-GT2FGICD.js → chunk-DE7YXUR7.js} +1 -1
  62. package/chunks/{chunk-BUUQ5HPX.js → chunk-DG573EOO.js} +1 -1
  63. package/chunks/{chunk-VVLOGDB6.js → chunk-DX3TKXNT.js} +2 -2
  64. package/chunks/chunk-E5A7LHNN.js +51 -0
  65. package/chunks/{chunk-3PJXIDKI.js → chunk-E6US47KI.js} +3 -27
  66. package/chunks/{chunk-QBZ22PQX.js → chunk-EWALXUAD.js} +3 -1
  67. package/chunks/{chunk-PDE7CSDS.js → chunk-FXKI7OW6.js} +2 -2
  68. package/chunks/{chunk-F3ZYSEY6.js → chunk-FY4TT4L4.js} +3 -3
  69. package/chunks/{chunk-QLDPRILK.js → chunk-G7OQ3RFJ.js} +3 -3
  70. package/chunks/{chunk-R2BXK7SX.js → chunk-GHOTR7HL.js} +6 -1
  71. package/chunks/{chunk-KMGMKW5Q.js → chunk-GLPV75ES.js} +9 -3
  72. package/chunks/{chunk-LD2XBG6Z.js → chunk-GO6LNQXT.js} +1 -39
  73. package/chunks/{chunk-CNLEDYE3.js → chunk-H6TNLOLM.js} +5 -5
  74. package/chunks/{chunk-JVHEVCAU.js → chunk-HLW4EGKR.js} +31 -6
  75. package/chunks/{chunk-I4H7PRWQ.js → chunk-HTWHAN44.js} +1 -1
  76. package/chunks/{chunk-QE6KJYLT.js → chunk-IPYE5BIS.js} +123 -25
  77. package/chunks/{chunk-EJYJYJZ2.js → chunk-IRJWHZWU.js} +3 -70
  78. package/chunks/{chunk-EDMZZFDU.js → chunk-J3YPTTNL.js} +930 -798
  79. package/chunks/{chunk-GGBIN5K7.js → chunk-JGAJMIJZ.js} +1 -1
  80. package/chunks/{chunk-N4EJFBN5.js → chunk-JVLP5US5.js} +427 -263
  81. package/chunks/{chunk-R5OP2ATH.js → chunk-JZG7VB6C.js} +11 -11
  82. package/chunks/{chunk-QI7GOGJR.js → chunk-KKQWC6WS.js} +1 -1
  83. package/chunks/{chunk-ADCIHOQZ.js → chunk-KX5QZRW2.js} +142 -30
  84. package/chunks/{chunk-SBBN4BWR.js → chunk-L7OJ3ZO3.js} +1 -1
  85. package/chunks/{chunk-NDOC6M5S.js → chunk-L7QPM2YD.js} +2 -2
  86. package/chunks/{chunk-BVSVIN45.js → chunk-LKWAVAB5.js} +3 -3
  87. package/chunks/{chunk-T4T2FNV4.js → chunk-LOW52WYZ.js} +2 -2
  88. package/chunks/{chunk-4QK3O43S.js → chunk-LU7BIVWC.js} +4 -4
  89. package/chunks/{chunk-ZP6UKOPB.js → chunk-LWGLBVWA.js} +1 -1
  90. package/chunks/{chunk-L7OKCI7T.js → chunk-M7BLWURA.js} +15 -1
  91. package/chunks/{chunk-PR32FRT6.js → chunk-MIM62IXS.js} +3 -3
  92. package/chunks/{chunk-RD6YJJJ6.js → chunk-MOUXUCXQ.js} +1 -1
  93. package/chunks/{chunk-VBZ452JT.js → chunk-MSNGFH6L.js} +494 -114
  94. package/chunks/{chunk-BX5YO7UW.js → chunk-MTNTVOJR.js} +542 -370
  95. package/chunks/chunk-MX2YXRER.js +44 -0
  96. package/chunks/chunk-NIOPRZNN.js +27 -0
  97. package/chunks/{chunk-SMYQZVZ3.js → chunk-NOGSPTLJ.js} +1 -1
  98. package/chunks/{chunk-DDMOU62Q.js → chunk-NPQWQYU6.js} +1 -1
  99. package/chunks/{chunk-MNF6S5PR.js → chunk-P5THQV6A.js} +4 -4
  100. package/chunks/{chunk-6V4NZFUS.js → chunk-PCYOT4PK.js} +5 -5
  101. package/chunks/{chunk-CF6BB3LT.js → chunk-PPFWEV7G.js} +10 -1
  102. package/chunks/{chunk-FXKVLFFY.js → chunk-PSFDB5FZ.js} +3 -3
  103. package/chunks/{chunk-XJYUPHRC.js → chunk-QOMAHFYI.js} +3 -3
  104. package/chunks/{chunk-J37FGIOA.js → chunk-QXPI7FEC.js} +38 -4
  105. package/chunks/{chunk-RRFZXMYP.js → chunk-QZDBHNMV.js} +691 -164
  106. package/chunks/{chunk-S7AKE7HL.js → chunk-R6RI2HIC.js} +63 -9
  107. package/chunks/{chunk-HZT4UCFB.js → chunk-RB7S52NJ.js} +4 -4
  108. package/chunks/{chunk-J33ZR6OJ.js → chunk-RK22ACPP.js} +16 -16
  109. package/chunks/chunk-RM3PGSGL.js +66 -0
  110. package/chunks/chunk-RNBYOUGV.js +42 -0
  111. package/chunks/chunk-S6RLAIUR.js +23 -0
  112. package/chunks/{chunk-3TV3HUWZ.js → chunk-SCYK2YLI.js} +81 -30
  113. package/chunks/{chunk-HPZTOP4I.js → chunk-SEKRT4SD.js} +133 -23
  114. package/chunks/chunk-SEZC2725.js +36 -0
  115. package/chunks/chunk-SIUQ3YYX.js +78 -0
  116. package/chunks/{chunk-O2VBQ3Y2.js → chunk-SJBIFVD2.js} +2 -2
  117. package/chunks/chunk-SYCJMSIJ.js +82 -0
  118. package/chunks/{chunk-JE5FVRPC.js → chunk-T22H4V4R.js} +48 -23
  119. package/chunks/{chunk-3227DZO4.js → chunk-T42ACHFI.js} +1 -1
  120. package/chunks/{chunk-UO5GVXQE.js → chunk-TENOUWY2.js} +3 -3
  121. package/chunks/{chunk-JOLIREYR.js → chunk-TOAUDIS7.js} +1 -1
  122. package/chunks/{chunk-QNKBEJO2.js → chunk-UA6XBZT7.js} +2776 -1289
  123. package/chunks/{chunk-O75BHFQW.js → chunk-UQTYK5SS.js} +2 -2
  124. package/chunks/{chunk-Y6YMRS3U.js → chunk-UY2TCIZS.js} +17 -3
  125. package/chunks/{chunk-FNJ7BDPH.js → chunk-UY7ZAYTY.js} +10 -7
  126. package/chunks/{chunk-UYT3MWEB.js → chunk-UYHWM24C.js} +30 -2
  127. package/chunks/{chunk-SMXULRAN.js → chunk-VXGPYF7U.js} +1 -1
  128. package/chunks/{chunk-BTLJ2MF5.js → chunk-W7CG5HPC.js} +3 -3
  129. package/chunks/{chunk-JJXWTVSK.js → chunk-XHZKDN7M.js} +34 -1
  130. package/chunks/{chunk-K5XU6E4T.js → chunk-XKSCTXPK.js} +2 -2
  131. package/chunks/chunk-Y4LITCRB.js +367 -0
  132. package/chunks/chunk-YHTNWGRR.js +239 -0
  133. package/chunks/{chunk-BKXBARJZ.js → chunk-YPCPZSZB.js} +1 -1
  134. package/chunks/{chunk-QWFNTRH4.js → chunk-YSM24SCE.js} +1 -1
  135. package/chunks/chunk-YTFBURQD.js +313 -0
  136. package/chunks/{chunk-NL4C3H6C.js → chunk-YXK4GPYO.js} +1 -1
  137. package/chunks/{chunk-RYLJU2DY.js → chunk-ZN5T4BHI.js} +1 -1
  138. package/chunks/{computer-use-JGB36FDW.js → computer-use-MTSVPLPY.js} +34 -28
  139. package/chunks/contextCommand-VGJ3BPTK.js +67 -0
  140. package/chunks/{cron-create-SKEY55RG.js → cron-create-6YTCOX6P.js} +4 -4
  141. package/chunks/{cron-delete-I3NAT32Z.js → cron-delete-E3NIFSUK.js} +4 -4
  142. package/chunks/{cron-list-6XRRL6TH.js → cron-list-Q64MNQNE.js} +4 -4
  143. package/chunks/daemon-EEB2RYOL.js +8453 -0
  144. package/chunks/daemon-status-provider-H5SNMK42.js +71 -0
  145. package/chunks/{de-EOW5PVHF.js → de-PLLFDERI.js} +10 -9
  146. package/chunks/{dist-NHEYYB2B.js → dist-ADMIQGHI.js} +2 -2
  147. package/chunks/{dist-J37VXPLD.js → dist-BCQ7INM7.js} +40 -15
  148. package/chunks/{dist-663NZ6MI.js → dist-KNZFCY5F.js} +116 -11
  149. package/chunks/{dist-LB6OGPVM.js → dist-LHUWC3K6.js} +26 -5
  150. package/chunks/{dist-PQPZ5Q4N.js → dist-WBBZ76JZ.js} +20 -9
  151. package/chunks/{earlyInputCapture-44RISVVJ.js → earlyInputCapture-U4ZIQSQU.js} +32 -26
  152. package/chunks/{edit-NN6GM5DT.js → edit-SYIQ2KBI.js} +41 -38
  153. package/chunks/{en-HPWEJBTR.js → en-M4EBUBNU.js} +32 -10
  154. package/chunks/{enter-worktree-PB3O2C7D.js → enter-worktree-HPPOO244.js} +31 -25
  155. package/chunks/{enterPlanMode-YQFNNSUA.js → enterPlanMode-56YYO52U.js} +41 -25
  156. package/chunks/{errors-LS7XU5DZ.js → errors-EO4SXCFP.js} +33 -27
  157. package/chunks/{exit-worktree-E2FTNSBK.js → exit-worktree-UDM7E6XH.js} +31 -25
  158. package/chunks/{exitPlanMode-GLYK2BUB.js → exitPlanMode-M6P3AWLJ.js} +149 -33
  159. package/chunks/{fast-path-WQ6M7LI7.js → fast-path-42P4QYWI.js} +33 -14
  160. package/chunks/{fast-path-settings-OAGU3X5H.js → fast-path-settings-UQLRFDQP.js} +2 -2
  161. package/chunks/{fr-BN5NKSAC.js → fr-MBMNQSQ6.js} +10 -9
  162. package/chunks/{gemini-2YFLVA2M.js → gemini-NRLXS5J7.js} +84 -70
  163. package/chunks/{geminiContentGenerator-XV6SV6CD.js → geminiContentGenerator-DLJPYYPA.js} +41 -5
  164. package/chunks/{glob-2H6CDDMK.js → glob-JPY3F74Y.js} +31 -25
  165. package/chunks/{grep-VXIUXM3C.js → grep-HW23YES5.js} +31 -25
  166. package/chunks/initializer-HWOZTC4A.js +67 -0
  167. package/chunks/{ja-7DEUB2TS.js → ja-HFV5QCHR.js} +10 -9
  168. package/chunks/{keychain-token-storage-YLMDLKXT.js → keychain-token-storage-GPAKRDKQ.js} +2 -2
  169. package/chunks/list-OZGAGRDG.js +71 -0
  170. package/chunks/loadedSettingsAdapter-RUTZVVIA.js +66 -0
  171. package/chunks/{loop-wakeup-CITGGQHA.js → loop-wakeup-G2EHBRGR.js} +5 -5
  172. package/chunks/{ls-R5WP4BGZ.js → ls-IDHUVSAG.js} +4 -4
  173. package/chunks/{lsp-GSICJMMW.js → lsp-FSRYXGFT.js} +2 -2
  174. package/chunks/{monitor-HKLRS2HQ.js → monitor-QVWEIXU3.js} +33 -26
  175. package/chunks/nonInteractiveCli-RV2WYPML.js +109 -0
  176. package/chunks/{notebook-edit-Y6SKSGTT.js → notebook-edit-B26W3FFH.js} +37 -34
  177. package/chunks/{openaiContentGenerator-J7G2FYJT.js → openaiContentGenerator-6TH7AZGQ.js} +15 -13
  178. package/chunks/pidfile-KW2QQJZI.js +73 -0
  179. package/chunks/{pt-TNZRNLQB.js → pt-2THT3YHA.js} +10 -9
  180. package/chunks/{qwenContentGenerator-5XIEM5GV.js → qwenContentGenerator-5IQAC7RN.js} +33 -27
  181. package/chunks/{qwenOAuth2-AG3PFFLZ.js → qwenOAuth2-LWLA6MQG.js} +5 -4
  182. package/chunks/{read-file-J7D552ZJ.js → read-file-CWFAHOI2.js} +11 -10
  183. package/chunks/{read-mcp-resource-DQQW7H7T.js → read-mcp-resource-PIJF24RO.js} +2 -2
  184. package/chunks/ripGrep-FTZGDKY4.js +60 -0
  185. package/chunks/{ru-NIAUBKCN.js → ru-Z67YJHBG.js} +10 -9
  186. package/chunks/{run-qwen-serve-SGEEVMXD.js → run-qwen-serve-FN2SW5ZI.js} +545 -97
  187. package/chunks/{scheduler-7CQI3S4Q.js → scheduler-BMS23O3I.js} +31 -25
  188. package/chunks/{send-message-EE4TWKVU.js → send-message-33PYFMCT.js} +20 -4
  189. package/chunks/serve-PXFYKL65.js +71 -0
  190. package/chunks/{server-4QMUWXPW.js → server-BRKALJ4F.js} +4132 -1175
  191. package/chunks/{session-NRO7UFOY.js → session-AQMISBP4.js} +205 -64
  192. package/chunks/{settings-SGWRDQSC.js → settings-JCPVUZMB.js} +35 -29
  193. package/chunks/{shell-62ANGIHL.js → shell-POHCRVN2.js} +31 -25
  194. package/chunks/{skill-VWAQAWW6.js → skill-QPEVHS6H.js} +13 -12
  195. package/chunks/spawnChannel-V3QT62TE.js +69 -0
  196. package/chunks/{src-KUV5J5Q2.js → src-IZSP7L6Y.js} +127 -32
  197. package/chunks/{startInteractiveUI-6EYJN3JV.js → startInteractiveUI-63KATISO.js} +16762 -16075
  198. package/chunks/{syntheticOutput-T5YHQ6S2.js → syntheticOutput-YOSWIHDJ.js} +3 -3
  199. package/chunks/{task-create-BLY7RHXX.js → task-create-NHS2NGB3.js} +9 -7
  200. package/chunks/{task-list-3QUYNVYR.js → task-list-5UIB564R.js} +7 -6
  201. package/chunks/{task-stop-U4RATK2V.js → task-stop-HGXZ2VZ3.js} +2 -2
  202. package/chunks/{task-update-U54O7KJX.js → task-update-IYYWUILG.js} +40 -7
  203. package/chunks/{team-create-LPOGCPM7.js → team-create-E5O2F3CA.js} +31 -25
  204. package/chunks/{team-delete-LKBYPASD.js → team-delete-FEKJCU4P.js} +7 -6
  205. package/chunks/team-plan-approval-2TU4YROB.js +202 -0
  206. package/chunks/theme-manager-37KOGPJL.js +64 -0
  207. package/chunks/{todoWrite-OYXKTVYN.js → todoWrite-TKMVZ2HT.js} +4 -4
  208. package/chunks/{tool-search-YPUFJ3ZQ.js → tool-search-4ZTGNSFI.js} +38 -11
  209. package/chunks/{trustedFolders-5B24TMEA.js → trustedFolders-RJ5WXJ6L.js} +32 -26
  210. package/chunks/{validateNonInterActiveAuth-BTDTYOVT.js → validateNonInterActiveAuth-ZWMHZAOK.js} +66 -55
  211. package/chunks/{web-fetch-EEB5LZYU.js → web-fetch-J4PIW36Q.js} +5 -4
  212. package/chunks/{workflow-LAWIW5LI.js → workflow-6PG2PC5M.js} +68 -39
  213. package/chunks/workspace-providers-status-4QIZN2W4.js +68 -0
  214. package/chunks/workspace-service-CYMCOEIO.js +78 -0
  215. package/chunks/{write-file-PCV226DJ.js → write-file-R354LGQF.js} +41 -40
  216. package/chunks/{zh-5EUYXASN.js → zh-SLZNSSZB.js} +32 -10
  217. package/chunks/{zh-TW-TR3XYGE5.js → zh-TW-P53C2SL5.js} +32 -10
  218. package/cli.js +6 -6
  219. package/locales/ca.js +15 -13
  220. package/locales/de.js +15 -13
  221. package/locales/en.js +52 -15
  222. package/locales/fr.js +15 -14
  223. package/locales/ja.js +15 -14
  224. package/locales/pt.js +15 -13
  225. package/locales/ru.js +15 -13
  226. package/locales/zh-TW.js +50 -14
  227. package/locales/zh.js +50 -14
  228. package/node_modules/@qwen-code/audio-capture/package.json +1 -1
  229. package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
  230. package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
  231. package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
  232. package/package.json +15 -6
  233. package/patches/chrome-devtools-mcp+1.4.0.patch +31 -0
  234. package/postinstall.js +50 -0
  235. package/web-shell/assets/{arc-DA7r8Ueo.js → arc-Bd3048nX.js} +1 -1
  236. package/web-shell/assets/{architectureDiagram-3BPJPVTR-ZDUxPtZ2.js → architectureDiagram-3BPJPVTR-DyzbzABx.js} +1 -1
  237. package/web-shell/assets/{blockDiagram-GPEHLZMM-vrtOf1kJ.js → blockDiagram-GPEHLZMM-CTjxm9Sy.js} +1 -1
  238. package/web-shell/assets/{c4Diagram-AAUBKEIU-BHFjzIi4.js → c4Diagram-AAUBKEIU-DSOFWNU6.js} +1 -1
  239. package/web-shell/assets/channel-oVoup_Ci.js +1 -0
  240. package/web-shell/assets/{chunk-2J33WTMH-mdeQVz59.js → chunk-2J33WTMH-D_PFdjo2.js} +1 -1
  241. package/web-shell/assets/{chunk-4BX2VUAB-BkKMlwBX.js → chunk-4BX2VUAB-52eG6wOT.js} +1 -1
  242. package/web-shell/assets/{chunk-55IACEB6-B7bnXNfu.js → chunk-55IACEB6-CGTZfKkC.js} +1 -1
  243. package/web-shell/assets/{chunk-727SXJPM-DGz8Mm6i.js → chunk-727SXJPM-CZ-qfRUm.js} +1 -1
  244. package/web-shell/assets/{chunk-AQP2D5EJ-BQAydUNk.js → chunk-AQP2D5EJ-B2dSDcqM.js} +1 -1
  245. package/web-shell/assets/{chunk-FMBD7UC4-GHr2LN_p.js → chunk-FMBD7UC4-Cfy3tyA0.js} +1 -1
  246. package/web-shell/assets/{chunk-ND2GUHAM-7R91lnUx.js → chunk-ND2GUHAM-CApNUpUq.js} +1 -1
  247. package/web-shell/assets/{chunk-QZHKN3VN-aTJD3lSQ.js → chunk-QZHKN3VN-CVBG8kgg.js} +1 -1
  248. package/web-shell/assets/classDiagram-4FO5ZUOK-B8WsaT2G.js +1 -0
  249. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B8WsaT2G.js +1 -0
  250. package/web-shell/assets/{cose-bilkent-S5V4N54A-BTf8t1RL.js → cose-bilkent-S5V4N54A-URd77-_-.js} +1 -1
  251. package/web-shell/assets/{dagre-BM42HDAG-_sgp3WuA.js → dagre-BM42HDAG-C07H4G9-.js} +1 -1
  252. package/web-shell/assets/{diagram-2AECGRRQ-CROtRy1w.js → diagram-2AECGRRQ-CYbpXrSn.js} +1 -1
  253. package/web-shell/assets/{diagram-5GNKFQAL-BqGRzwSc.js → diagram-5GNKFQAL-SI8s6fjX.js} +1 -1
  254. package/web-shell/assets/{diagram-KO2AKTUF-CMrcEtA7.js → diagram-KO2AKTUF-mBkC4RTW.js} +1 -1
  255. package/web-shell/assets/{diagram-LMA3HP47-BRydGNW5.js → diagram-LMA3HP47-CyBPDzWJ.js} +1 -1
  256. package/web-shell/assets/{diagram-OG6HWLK6-D0ilgNjV.js → diagram-OG6HWLK6-DwK7kBCu.js} +1 -1
  257. package/web-shell/assets/{erDiagram-TEJ5UH35-2lnQeJUM.js → erDiagram-TEJ5UH35-Ds1StEUd.js} +1 -1
  258. package/web-shell/assets/{flowDiagram-I6XJVG4X-C_ZMdQiC.js → flowDiagram-I6XJVG4X-BDC4-jHO.js} +1 -1
  259. package/web-shell/assets/{ganttDiagram-6RSMTGT7-Dw9V_Ny0.js → ganttDiagram-6RSMTGT7-CV2aHQqf.js} +1 -1
  260. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-HDXI-F1B.js → gitGraphDiagram-PVQCEYII-B8RcuV_L.js} +1 -1
  261. package/web-shell/assets/index-B5WZ0qP1.js +717 -0
  262. package/web-shell/assets/index-CYE1IMd1.css +5 -0
  263. package/web-shell/assets/{infoDiagram-5YYISTIA-CuB8Ebua.js → infoDiagram-5YYISTIA-DUPoTf50.js} +1 -1
  264. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-D_tyhVwh.js → ishikawaDiagram-YF4QCWOH-FDYOx9rf.js} +1 -1
  265. package/web-shell/assets/{journeyDiagram-JHISSGLW-CgCwJQNU.js → journeyDiagram-JHISSGLW-C5_ohMRp.js} +1 -1
  266. package/web-shell/assets/{kanban-definition-UN3LZRKU-PZUtcbPx.js → kanban-definition-UN3LZRKU-Bn4UnOMG.js} +1 -1
  267. package/web-shell/assets/{linear-CZqRdJIU.js → linear-Bl0pKQtY.js} +1 -1
  268. package/web-shell/assets/{mermaid.core-CPW_4UEF.js → mermaid.core-sevQFoji.js} +72 -72
  269. package/web-shell/assets/{mindmap-definition-RKZ34NQL-D_Y75ID7.js → mindmap-definition-RKZ34NQL-DSH4JZF9.js} +1 -1
  270. package/web-shell/assets/{pieDiagram-4H26LBE5-Q4dTyLeF.js → pieDiagram-4H26LBE5-acWvdQTD.js} +1 -1
  271. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-ckw329Ft.js → quadrantDiagram-W4KKPZXB-DlggX4Sm.js} +1 -1
  272. package/web-shell/assets/{requirementDiagram-4Y6WPE33-DbVDm4It.js → requirementDiagram-4Y6WPE33--mMqwmV8.js} +1 -1
  273. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CHuZ_ecH.js → sankeyDiagram-5OEKKPKP-BtV9tZ77.js} +1 -1
  274. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DU2YSpq-.js → sequenceDiagram-3UESZ5HK-iDQzPFlj.js} +1 -1
  275. package/web-shell/assets/{stateDiagram-AJRCARHV-CA9PEBUo.js → stateDiagram-AJRCARHV-CsCyQLZ3.js} +1 -1
  276. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CPapECG9.js +1 -0
  277. package/web-shell/assets/{timeline-definition-PNZ67QCA-Bhlo4WVc.js → timeline-definition-PNZ67QCA-Dl0rnKvr.js} +1 -1
  278. package/web-shell/assets/{vennDiagram-CIIHVFJN-6xtPLsyl.js → vennDiagram-CIIHVFJN-qF7nTZzA.js} +1 -1
  279. package/web-shell/assets/{wardley-L42UT6IY-3eozmXPf.js → wardley-L42UT6IY-fWoK9i7F.js} +1 -1
  280. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BOn6hKss.js → wardleyDiagram-YWT4CUSO-pHGfkMnc.js} +1 -1
  281. package/web-shell/assets/{xychartDiagram-2RQKCTM6-BsP4-I_y.js → xychartDiagram-2RQKCTM6-3Doc4Trz.js} +1 -1
  282. package/web-shell/index.html +18 -2
  283. package/chunks/MaxSizedBox-QNF3EIGU.js +0 -63
  284. package/chunks/agent-headless-RQ5BTX3G.js +0 -56
  285. package/chunks/bridge-JL2PMCIW.js +0 -66
  286. package/chunks/chunk-5GOVVXEV.js +0 -73
  287. package/chunks/chunk-BC3C4F3Q.js +0 -40
  288. package/chunks/chunk-BW4KCQFD.js +0 -1103
  289. package/chunks/chunk-RKIZXJMB.js +0 -13
  290. package/chunks/contextCommand-WYU6OQ2F.js +0 -61
  291. package/chunks/daemon-status-provider-HH2EC5FI.js +0 -65
  292. package/chunks/headlessSafetyWarnings-TBE35GJ4.js +0 -55
  293. package/chunks/initializer-2Y7SLOKV.js +0 -61
  294. package/chunks/list-ZAFHZ7OS.js +0 -65
  295. package/chunks/loadedSettingsAdapter-6KJXD6M3.js +0 -60
  296. package/chunks/nonInteractiveCli-5W4GIZQM.js +0 -96
  297. package/chunks/ripGrep-IEIFIWP4.js +0 -54
  298. package/chunks/serve-V6GVZR6U.js +0 -65
  299. package/chunks/spawnChannel-3VHW5EPY.js +0 -63
  300. package/chunks/theme-manager-LYLGAERF.js +0 -58
  301. package/chunks/workspace-providers-status-PIAFVYHA.js +0 -62
  302. package/chunks/workspace-service-YAIOD4HG.js +0 -71
  303. package/web-shell/assets/channel-iRo68q4Q.js +0 -1
  304. package/web-shell/assets/classDiagram-4FO5ZUOK-iHF24a8X.js +0 -1
  305. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-iHF24a8X.js +0 -1
  306. package/web-shell/assets/index-CHmzAWys.css +0 -5
  307. package/web-shell/assets/index-w6GTOHh1.js +0 -713
  308. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-t1LRI0oY.js +0 -1
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  createDebugLogger
5
- } from "./chunk-UX4SGCGN.js";
5
+ } from "./chunk-AVQDCKNF.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-A4BMJM77.js";
@@ -2263,9 +2263,9 @@ var require_fast_deep_equal = __commonJS({
2263
2263
  }
2264
2264
  });
2265
2265
 
2266
- // node_modules/json-schema-traverse/index.js
2266
+ // packages/core/node_modules/json-schema-traverse/index.js
2267
2267
  var require_json_schema_traverse = __commonJS({
2268
- "node_modules/json-schema-traverse/index.js"(exports, module) {
2268
+ "packages/core/node_modules/json-schema-traverse/index.js"(exports, module) {
2269
2269
  "use strict";
2270
2270
  init_esbuild_shims();
2271
2271
  var traverse = module.exports = function(schema, opts, cb) {
@@ -2286,7 +2286,10 @@ var require_json_schema_traverse = __commonJS({
2286
2286
  contains: true,
2287
2287
  additionalProperties: true,
2288
2288
  propertyNames: true,
2289
- not: true
2289
+ not: true,
2290
+ if: true,
2291
+ then: true,
2292
+ else: true
2290
2293
  };
2291
2294
  traverse.arrayKeywords = {
2292
2295
  items: true,
@@ -2295,6 +2298,7 @@ var require_json_schema_traverse = __commonJS({
2295
2298
  oneOf: true
2296
2299
  };
2297
2300
  traverse.propsKeywords = {
2301
+ $defs: true,
2298
2302
  definitions: true,
2299
2303
  properties: true,
2300
2304
  patternProperties: true,
@@ -3363,97 +3367,69 @@ var require_data = __commonJS({
3363
3367
  }
3364
3368
  });
3365
3369
 
3366
- // node_modules/fast-uri/lib/scopedChars.js
3367
- var require_scopedChars = __commonJS({
3368
- "node_modules/fast-uri/lib/scopedChars.js"(exports, module) {
3369
- "use strict";
3370
- init_esbuild_shims();
3371
- var HEX = {
3372
- 0: 0,
3373
- 1: 1,
3374
- 2: 2,
3375
- 3: 3,
3376
- 4: 4,
3377
- 5: 5,
3378
- 6: 6,
3379
- 7: 7,
3380
- 8: 8,
3381
- 9: 9,
3382
- a: 10,
3383
- A: 10,
3384
- b: 11,
3385
- B: 11,
3386
- c: 12,
3387
- C: 12,
3388
- d: 13,
3389
- D: 13,
3390
- e: 14,
3391
- E: 14,
3392
- f: 15,
3393
- F: 15
3394
- };
3395
- module.exports = {
3396
- HEX
3397
- };
3398
- }
3399
- });
3400
-
3401
3370
  // node_modules/fast-uri/lib/utils.js
3402
3371
  var require_utils = __commonJS({
3403
3372
  "node_modules/fast-uri/lib/utils.js"(exports, module) {
3404
3373
  "use strict";
3405
3374
  init_esbuild_shims();
3406
- var { HEX } = require_scopedChars();
3407
- var IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
3408
- function normalizeIPv4(host) {
3409
- if (findToken(host, ".") < 3) {
3410
- return { host, isIPV4: false };
3411
- }
3412
- const matches = host.match(IPV4_REG) || [];
3413
- const [address] = matches;
3414
- if (address) {
3415
- return { host: stripLeadingZeros(address, "."), isIPV4: true };
3416
- } else {
3417
- return { host, isIPV4: false };
3418
- }
3419
- }
3420
- __name(normalizeIPv4, "normalizeIPv4");
3421
- function stringArrayToHexStripped(input, keepZero = false) {
3375
+ var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3376
+ var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3377
+ var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3378
+ var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3379
+ var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3380
+ function stringArrayToHexStripped(input) {
3422
3381
  let acc = "";
3423
- let strip = true;
3424
- for (const c of input) {
3425
- if (HEX[c] === void 0) return void 0;
3426
- if (c !== "0" && strip === true) strip = false;
3427
- if (!strip) acc += c;
3382
+ let code = 0;
3383
+ let i = 0;
3384
+ for (i = 0; i < input.length; i++) {
3385
+ code = input[i].charCodeAt(0);
3386
+ if (code === 48) {
3387
+ continue;
3388
+ }
3389
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
3390
+ return "";
3391
+ }
3392
+ acc += input[i];
3393
+ break;
3394
+ }
3395
+ for (i += 1; i < input.length; i++) {
3396
+ code = input[i].charCodeAt(0);
3397
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
3398
+ return "";
3399
+ }
3400
+ acc += input[i];
3428
3401
  }
3429
- if (keepZero && acc.length === 0) acc = "0";
3430
3402
  return acc;
3431
3403
  }
3432
3404
  __name(stringArrayToHexStripped, "stringArrayToHexStripped");
3405
+ var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3406
+ function consumeIsZone(buffer) {
3407
+ buffer.length = 0;
3408
+ return true;
3409
+ }
3410
+ __name(consumeIsZone, "consumeIsZone");
3411
+ function consumeHextets(buffer, address, output) {
3412
+ if (buffer.length) {
3413
+ const hex = stringArrayToHexStripped(buffer);
3414
+ if (hex !== "") {
3415
+ address.push(hex);
3416
+ } else {
3417
+ output.error = true;
3418
+ return false;
3419
+ }
3420
+ buffer.length = 0;
3421
+ }
3422
+ return true;
3423
+ }
3424
+ __name(consumeHextets, "consumeHextets");
3433
3425
  function getIPV6(input) {
3434
3426
  let tokenCount = 0;
3435
3427
  const output = { error: false, address: "", zone: "" };
3436
3428
  const address = [];
3437
3429
  const buffer = [];
3438
- let isZone = false;
3439
3430
  let endipv6Encountered = false;
3440
3431
  let endIpv6 = false;
3441
- function consume() {
3442
- if (buffer.length) {
3443
- if (isZone === false) {
3444
- const hex = stringArrayToHexStripped(buffer);
3445
- if (hex !== void 0) {
3446
- address.push(hex);
3447
- } else {
3448
- output.error = true;
3449
- return false;
3450
- }
3451
- }
3452
- buffer.length = 0;
3453
- }
3454
- return true;
3455
- }
3456
- __name(consume, "consume");
3432
+ let consume = consumeHextets;
3457
3433
  for (let i = 0; i < input.length; i++) {
3458
3434
  const cursor = input[i];
3459
3435
  if (cursor === "[" || cursor === "]") {
@@ -3463,31 +3439,30 @@ var require_utils = __commonJS({
3463
3439
  if (endipv6Encountered === true) {
3464
3440
  endIpv6 = true;
3465
3441
  }
3466
- if (!consume()) {
3442
+ if (!consume(buffer, address, output)) {
3467
3443
  break;
3468
3444
  }
3469
- tokenCount++;
3470
- address.push(":");
3471
- if (tokenCount > 7) {
3445
+ if (++tokenCount > 7) {
3472
3446
  output.error = true;
3473
3447
  break;
3474
3448
  }
3475
- if (i - 1 >= 0 && input[i - 1] === ":") {
3449
+ if (i > 0 && input[i - 1] === ":") {
3476
3450
  endipv6Encountered = true;
3477
3451
  }
3452
+ address.push(":");
3478
3453
  continue;
3479
3454
  } else if (cursor === "%") {
3480
- if (!consume()) {
3455
+ if (!consume(buffer, address, output)) {
3481
3456
  break;
3482
3457
  }
3483
- isZone = true;
3458
+ consume = consumeIsZone;
3484
3459
  } else {
3485
3460
  buffer.push(cursor);
3486
3461
  continue;
3487
3462
  }
3488
3463
  }
3489
3464
  if (buffer.length) {
3490
- if (isZone) {
3465
+ if (consume === consumeIsZone) {
3491
3466
  output.zone = buffer.join("");
3492
3467
  } else if (endIpv6) {
3493
3468
  address.push(buffer.join(""));
@@ -3511,35 +3486,12 @@ var require_utils = __commonJS({
3511
3486
  newHost += "%" + ipv6.zone;
3512
3487
  escapedHost += "%25" + ipv6.zone;
3513
3488
  }
3514
- return { host: newHost, escapedHost, isIPV6: true };
3489
+ return { host: newHost, isIPV6: true, escapedHost };
3515
3490
  } else {
3516
3491
  return { host, isIPV6: false };
3517
3492
  }
3518
3493
  }
3519
3494
  __name(normalizeIPv6, "normalizeIPv6");
3520
- function stripLeadingZeros(str, token) {
3521
- let out = "";
3522
- let skip = true;
3523
- const l = str.length;
3524
- for (let i = 0; i < l; i++) {
3525
- const c = str[i];
3526
- if (c === "0" && skip) {
3527
- if (i + 1 <= l && str[i + 1] === token || i + 1 === l) {
3528
- out += c;
3529
- skip = false;
3530
- }
3531
- } else {
3532
- if (c === token) {
3533
- skip = true;
3534
- } else {
3535
- skip = false;
3536
- }
3537
- out += c;
3538
- }
3539
- }
3540
- return out;
3541
- }
3542
- __name(stripLeadingZeros, "stripLeadingZeros");
3543
3495
  function findToken(str, token) {
3544
3496
  let ind = 0;
3545
3497
  for (let i = 0; i < str.length; i++) {
@@ -3548,92 +3500,193 @@ var require_utils = __commonJS({
3548
3500
  return ind;
3549
3501
  }
3550
3502
  __name(findToken, "findToken");
3551
- var RDS1 = /^\.\.?\//u;
3552
- var RDS2 = /^\/\.(?:\/|$)/u;
3553
- var RDS3 = /^\/\.\.(?:\/|$)/u;
3554
- var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u;
3555
- function removeDotSegments(input) {
3503
+ function removeDotSegments(path) {
3504
+ let input = path;
3556
3505
  const output = [];
3557
- while (input.length) {
3558
- if (input.match(RDS1)) {
3559
- input = input.replace(RDS1, "");
3560
- } else if (input.match(RDS2)) {
3561
- input = input.replace(RDS2, "/");
3562
- } else if (input.match(RDS3)) {
3563
- input = input.replace(RDS3, "/");
3564
- output.pop();
3565
- } else if (input === "." || input === "..") {
3566
- input = "";
3567
- } else {
3568
- const im = input.match(RDS5);
3569
- if (im) {
3570
- const s = im[0];
3571
- input = input.slice(s.length);
3572
- output.push(s);
3506
+ let nextSlash = -1;
3507
+ let len = 0;
3508
+ while (len = input.length) {
3509
+ if (len === 1) {
3510
+ if (input === ".") {
3511
+ break;
3512
+ } else if (input === "/") {
3513
+ output.push("/");
3514
+ break;
3573
3515
  } else {
3574
- throw new Error("Unexpected dot segment condition");
3516
+ output.push(input);
3517
+ break;
3518
+ }
3519
+ } else if (len === 2) {
3520
+ if (input[0] === ".") {
3521
+ if (input[1] === ".") {
3522
+ break;
3523
+ } else if (input[1] === "/") {
3524
+ input = input.slice(2);
3525
+ continue;
3526
+ }
3527
+ } else if (input[0] === "/") {
3528
+ if (input[1] === "." || input[1] === "/") {
3529
+ output.push("/");
3530
+ break;
3531
+ }
3532
+ }
3533
+ } else if (len === 3) {
3534
+ if (input === "/..") {
3535
+ if (output.length !== 0) {
3536
+ output.pop();
3537
+ }
3538
+ output.push("/");
3539
+ break;
3540
+ }
3541
+ }
3542
+ if (input[0] === ".") {
3543
+ if (input[1] === ".") {
3544
+ if (input[2] === "/") {
3545
+ input = input.slice(3);
3546
+ continue;
3547
+ }
3548
+ } else if (input[1] === "/") {
3549
+ input = input.slice(2);
3550
+ continue;
3551
+ }
3552
+ } else if (input[0] === "/") {
3553
+ if (input[1] === ".") {
3554
+ if (input[2] === "/") {
3555
+ input = input.slice(2);
3556
+ continue;
3557
+ } else if (input[2] === ".") {
3558
+ if (input[3] === "/") {
3559
+ input = input.slice(3);
3560
+ if (output.length !== 0) {
3561
+ output.pop();
3562
+ }
3563
+ continue;
3564
+ }
3565
+ }
3575
3566
  }
3576
3567
  }
3568
+ if ((nextSlash = input.indexOf("/", 1)) === -1) {
3569
+ output.push(input);
3570
+ break;
3571
+ } else {
3572
+ output.push(input.slice(0, nextSlash));
3573
+ input = input.slice(nextSlash);
3574
+ }
3577
3575
  }
3578
3576
  return output.join("");
3579
3577
  }
3580
3578
  __name(removeDotSegments, "removeDotSegments");
3581
- function normalizeComponentEncoding(components, esc) {
3582
- const func = esc !== true ? escape : unescape;
3583
- if (components.scheme !== void 0) {
3584
- components.scheme = func(components.scheme);
3585
- }
3586
- if (components.userinfo !== void 0) {
3587
- components.userinfo = func(components.userinfo);
3588
- }
3589
- if (components.host !== void 0) {
3590
- components.host = func(components.host);
3591
- }
3592
- if (components.path !== void 0) {
3593
- components.path = func(components.path);
3579
+ var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3580
+ var HOST_DELIM_RE = /[@/?#:]/g;
3581
+ var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
3582
+ function reescapeHostDelimiters(host, isIP) {
3583
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
3584
+ re.lastIndex = 0;
3585
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
3586
+ }
3587
+ __name(reescapeHostDelimiters, "reescapeHostDelimiters");
3588
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
3589
+ if (input.indexOf("%") === -1) {
3590
+ return input;
3591
+ }
3592
+ let output = "";
3593
+ for (let i = 0; i < input.length; i++) {
3594
+ if (input[i] === "%" && i + 2 < input.length) {
3595
+ const hex = input.slice(i + 1, i + 3);
3596
+ if (isHexPair(hex)) {
3597
+ const normalizedHex = hex.toUpperCase();
3598
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3599
+ if (decodeUnreserved && isUnreserved(decoded)) {
3600
+ output += decoded;
3601
+ } else {
3602
+ output += "%" + normalizedHex;
3603
+ }
3604
+ i += 2;
3605
+ continue;
3606
+ }
3607
+ }
3608
+ output += input[i];
3594
3609
  }
3595
- if (components.query !== void 0) {
3596
- components.query = func(components.query);
3610
+ return output;
3611
+ }
3612
+ __name(normalizePercentEncoding, "normalizePercentEncoding");
3613
+ function normalizePathEncoding(input) {
3614
+ let output = "";
3615
+ for (let i = 0; i < input.length; i++) {
3616
+ if (input[i] === "%" && i + 2 < input.length) {
3617
+ const hex = input.slice(i + 1, i + 3);
3618
+ if (isHexPair(hex)) {
3619
+ const normalizedHex = hex.toUpperCase();
3620
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3621
+ if (decoded !== "." && isUnreserved(decoded)) {
3622
+ output += decoded;
3623
+ } else {
3624
+ output += "%" + normalizedHex;
3625
+ }
3626
+ i += 2;
3627
+ continue;
3628
+ }
3629
+ }
3630
+ if (isPathCharacter(input[i])) {
3631
+ output += input[i];
3632
+ } else {
3633
+ output += escape(input[i]);
3634
+ }
3597
3635
  }
3598
- if (components.fragment !== void 0) {
3599
- components.fragment = func(components.fragment);
3636
+ return output;
3637
+ }
3638
+ __name(normalizePathEncoding, "normalizePathEncoding");
3639
+ function escapePreservingEscapes(input) {
3640
+ let output = "";
3641
+ for (let i = 0; i < input.length; i++) {
3642
+ if (input[i] === "%" && i + 2 < input.length) {
3643
+ const hex = input.slice(i + 1, i + 3);
3644
+ if (isHexPair(hex)) {
3645
+ output += "%" + hex.toUpperCase();
3646
+ i += 2;
3647
+ continue;
3648
+ }
3649
+ }
3650
+ output += escape(input[i]);
3600
3651
  }
3601
- return components;
3652
+ return output;
3602
3653
  }
3603
- __name(normalizeComponentEncoding, "normalizeComponentEncoding");
3604
- function recomposeAuthority(components) {
3654
+ __name(escapePreservingEscapes, "escapePreservingEscapes");
3655
+ function recomposeAuthority(component) {
3605
3656
  const uriTokens = [];
3606
- if (components.userinfo !== void 0) {
3607
- uriTokens.push(components.userinfo);
3657
+ if (component.userinfo !== void 0) {
3658
+ uriTokens.push(component.userinfo);
3608
3659
  uriTokens.push("@");
3609
3660
  }
3610
- if (components.host !== void 0) {
3611
- let host = unescape(components.host);
3612
- const ipV4res = normalizeIPv4(host);
3613
- if (ipV4res.isIPV4) {
3614
- host = ipV4res.host;
3615
- } else {
3616
- const ipV6res = normalizeIPv6(ipV4res.host);
3661
+ if (component.host !== void 0) {
3662
+ let host = unescape(component.host);
3663
+ if (!isIPv4(host)) {
3664
+ const ipV6res = normalizeIPv6(host);
3617
3665
  if (ipV6res.isIPV6 === true) {
3618
3666
  host = `[${ipV6res.escapedHost}]`;
3619
3667
  } else {
3620
- host = components.host;
3668
+ host = reescapeHostDelimiters(host, false);
3621
3669
  }
3622
3670
  }
3623
3671
  uriTokens.push(host);
3624
3672
  }
3625
- if (typeof components.port === "number" || typeof components.port === "string") {
3673
+ if (typeof component.port === "number" || typeof component.port === "string") {
3626
3674
  uriTokens.push(":");
3627
- uriTokens.push(String(components.port));
3675
+ uriTokens.push(String(component.port));
3628
3676
  }
3629
3677
  return uriTokens.length ? uriTokens.join("") : void 0;
3630
3678
  }
3631
3679
  __name(recomposeAuthority, "recomposeAuthority");
3632
3680
  module.exports = {
3681
+ nonSimpleDomain,
3633
3682
  recomposeAuthority,
3634
- normalizeComponentEncoding,
3683
+ reescapeHostDelimiters,
3684
+ normalizePercentEncoding,
3685
+ normalizePathEncoding,
3686
+ escapePreservingEscapes,
3635
3687
  removeDotSegments,
3636
- normalizeIPv4,
3688
+ isIPv4,
3689
+ isUUID,
3637
3690
  normalizeIPv6,
3638
3691
  stringArrayToHexStripped
3639
3692
  };
@@ -3645,154 +3698,220 @@ var require_schemes = __commonJS({
3645
3698
  "node_modules/fast-uri/lib/schemes.js"(exports, module) {
3646
3699
  "use strict";
3647
3700
  init_esbuild_shims();
3648
- var UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu;
3701
+ var { isUUID } = require_utils();
3649
3702
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3650
- function isSecure(wsComponents) {
3651
- return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
3703
+ var supportedSchemeNames = (
3704
+ /** @type {const} */
3705
+ [
3706
+ "http",
3707
+ "https",
3708
+ "ws",
3709
+ "wss",
3710
+ "urn",
3711
+ "urn:uuid"
3712
+ ]
3713
+ );
3714
+ function isValidSchemeName(name) {
3715
+ return supportedSchemeNames.indexOf(
3716
+ /** @type {*} */
3717
+ name
3718
+ ) !== -1;
3719
+ }
3720
+ __name(isValidSchemeName, "isValidSchemeName");
3721
+ function wsIsSecure(wsComponent) {
3722
+ if (wsComponent.secure === true) {
3723
+ return true;
3724
+ } else if (wsComponent.secure === false) {
3725
+ return false;
3726
+ } else if (wsComponent.scheme) {
3727
+ return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
3728
+ } else {
3729
+ return false;
3730
+ }
3652
3731
  }
3653
- __name(isSecure, "isSecure");
3654
- function httpParse(components) {
3655
- if (!components.host) {
3656
- components.error = components.error || "HTTP URIs must have a host.";
3732
+ __name(wsIsSecure, "wsIsSecure");
3733
+ function httpParse(component) {
3734
+ if (!component.host) {
3735
+ component.error = component.error || "HTTP URIs must have a host.";
3657
3736
  }
3658
- return components;
3737
+ return component;
3659
3738
  }
3660
3739
  __name(httpParse, "httpParse");
3661
- function httpSerialize(components) {
3662
- const secure = String(components.scheme).toLowerCase() === "https";
3663
- if (components.port === (secure ? 443 : 80) || components.port === "") {
3664
- components.port = void 0;
3740
+ function httpSerialize(component) {
3741
+ const secure = String(component.scheme).toLowerCase() === "https";
3742
+ if (component.port === (secure ? 443 : 80) || component.port === "") {
3743
+ component.port = void 0;
3665
3744
  }
3666
- if (!components.path) {
3667
- components.path = "/";
3745
+ if (!component.path) {
3746
+ component.path = "/";
3668
3747
  }
3669
- return components;
3748
+ return component;
3670
3749
  }
3671
3750
  __name(httpSerialize, "httpSerialize");
3672
- function wsParse(wsComponents) {
3673
- wsComponents.secure = isSecure(wsComponents);
3674
- wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
3675
- wsComponents.path = void 0;
3676
- wsComponents.query = void 0;
3677
- return wsComponents;
3751
+ function wsParse(wsComponent) {
3752
+ wsComponent.secure = wsIsSecure(wsComponent);
3753
+ wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
3754
+ wsComponent.path = void 0;
3755
+ wsComponent.query = void 0;
3756
+ return wsComponent;
3678
3757
  }
3679
3758
  __name(wsParse, "wsParse");
3680
- function wsSerialize(wsComponents) {
3681
- if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
3682
- wsComponents.port = void 0;
3759
+ function wsSerialize(wsComponent) {
3760
+ if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
3761
+ wsComponent.port = void 0;
3683
3762
  }
3684
- if (typeof wsComponents.secure === "boolean") {
3685
- wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
3686
- wsComponents.secure = void 0;
3763
+ if (typeof wsComponent.secure === "boolean") {
3764
+ wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
3765
+ wsComponent.secure = void 0;
3687
3766
  }
3688
- if (wsComponents.resourceName) {
3689
- const [path, query] = wsComponents.resourceName.split("?");
3690
- wsComponents.path = path && path !== "/" ? path : void 0;
3691
- wsComponents.query = query;
3692
- wsComponents.resourceName = void 0;
3767
+ if (wsComponent.resourceName) {
3768
+ const [path, query] = wsComponent.resourceName.split("?");
3769
+ wsComponent.path = path && path !== "/" ? path : void 0;
3770
+ wsComponent.query = query;
3771
+ wsComponent.resourceName = void 0;
3693
3772
  }
3694
- wsComponents.fragment = void 0;
3695
- return wsComponents;
3773
+ wsComponent.fragment = void 0;
3774
+ return wsComponent;
3696
3775
  }
3697
3776
  __name(wsSerialize, "wsSerialize");
3698
- function urnParse(urnComponents, options) {
3699
- if (!urnComponents.path) {
3700
- urnComponents.error = "URN can not be parsed";
3701
- return urnComponents;
3777
+ function urnParse(urnComponent, options) {
3778
+ if (!urnComponent.path) {
3779
+ urnComponent.error = "URN can not be parsed";
3780
+ return urnComponent;
3702
3781
  }
3703
- const matches = urnComponents.path.match(URN_REG);
3782
+ const matches = urnComponent.path.match(URN_REG);
3704
3783
  if (matches) {
3705
- const scheme = options.scheme || urnComponents.scheme || "urn";
3706
- urnComponents.nid = matches[1].toLowerCase();
3707
- urnComponents.nss = matches[2];
3708
- const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`;
3709
- const schemeHandler = SCHEMES[urnScheme];
3710
- urnComponents.path = void 0;
3784
+ const scheme = options.scheme || urnComponent.scheme || "urn";
3785
+ urnComponent.nid = matches[1].toLowerCase();
3786
+ urnComponent.nss = matches[2];
3787
+ const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
3788
+ const schemeHandler = getSchemeHandler(urnScheme);
3789
+ urnComponent.path = void 0;
3711
3790
  if (schemeHandler) {
3712
- urnComponents = schemeHandler.parse(urnComponents, options);
3791
+ urnComponent = schemeHandler.parse(urnComponent, options);
3713
3792
  }
3714
3793
  } else {
3715
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
3794
+ urnComponent.error = urnComponent.error || "URN can not be parsed.";
3716
3795
  }
3717
- return urnComponents;
3796
+ return urnComponent;
3718
3797
  }
3719
3798
  __name(urnParse, "urnParse");
3720
- function urnSerialize(urnComponents, options) {
3721
- const scheme = options.scheme || urnComponents.scheme || "urn";
3722
- const nid = urnComponents.nid.toLowerCase();
3799
+ function urnSerialize(urnComponent, options) {
3800
+ if (urnComponent.nid === void 0) {
3801
+ throw new Error("URN without nid cannot be serialized");
3802
+ }
3803
+ const scheme = options.scheme || urnComponent.scheme || "urn";
3804
+ const nid = urnComponent.nid.toLowerCase();
3723
3805
  const urnScheme = `${scheme}:${options.nid || nid}`;
3724
- const schemeHandler = SCHEMES[urnScheme];
3806
+ const schemeHandler = getSchemeHandler(urnScheme);
3725
3807
  if (schemeHandler) {
3726
- urnComponents = schemeHandler.serialize(urnComponents, options);
3808
+ urnComponent = schemeHandler.serialize(urnComponent, options);
3727
3809
  }
3728
- const uriComponents = urnComponents;
3729
- const nss = urnComponents.nss;
3730
- uriComponents.path = `${nid || options.nid}:${nss}`;
3810
+ const uriComponent = urnComponent;
3811
+ const nss = urnComponent.nss;
3812
+ uriComponent.path = `${nid || options.nid}:${nss}`;
3731
3813
  options.skipEscape = true;
3732
- return uriComponents;
3814
+ return uriComponent;
3733
3815
  }
3734
3816
  __name(urnSerialize, "urnSerialize");
3735
- function urnuuidParse(urnComponents, options) {
3736
- const uuidComponents = urnComponents;
3737
- uuidComponents.uuid = uuidComponents.nss;
3738
- uuidComponents.nss = void 0;
3739
- if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {
3740
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
3817
+ function urnuuidParse(urnComponent, options) {
3818
+ const uuidComponent = urnComponent;
3819
+ uuidComponent.uuid = uuidComponent.nss;
3820
+ uuidComponent.nss = void 0;
3821
+ if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
3822
+ uuidComponent.error = uuidComponent.error || "UUID is not valid.";
3741
3823
  }
3742
- return uuidComponents;
3824
+ return uuidComponent;
3743
3825
  }
3744
3826
  __name(urnuuidParse, "urnuuidParse");
3745
- function urnuuidSerialize(uuidComponents) {
3746
- const urnComponents = uuidComponents;
3747
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
3748
- return urnComponents;
3827
+ function urnuuidSerialize(uuidComponent) {
3828
+ const urnComponent = uuidComponent;
3829
+ urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
3830
+ return urnComponent;
3749
3831
  }
3750
3832
  __name(urnuuidSerialize, "urnuuidSerialize");
3751
- var http = {
3752
- scheme: "http",
3753
- domainHost: true,
3754
- parse: httpParse,
3755
- serialize: httpSerialize
3756
- };
3757
- var https = {
3758
- scheme: "https",
3759
- domainHost: http.domainHost,
3760
- parse: httpParse,
3761
- serialize: httpSerialize
3762
- };
3763
- var ws = {
3764
- scheme: "ws",
3765
- domainHost: true,
3766
- parse: wsParse,
3767
- serialize: wsSerialize
3768
- };
3769
- var wss = {
3770
- scheme: "wss",
3771
- domainHost: ws.domainHost,
3772
- parse: ws.parse,
3773
- serialize: ws.serialize
3774
- };
3775
- var urn = {
3776
- scheme: "urn",
3777
- parse: urnParse,
3778
- serialize: urnSerialize,
3779
- skipNormalize: true
3780
- };
3781
- var urnuuid = {
3782
- scheme: "urn:uuid",
3783
- parse: urnuuidParse,
3784
- serialize: urnuuidSerialize,
3785
- skipNormalize: true
3786
- };
3787
- var SCHEMES = {
3788
- http,
3789
- https,
3790
- ws,
3791
- wss,
3792
- urn,
3793
- "urn:uuid": urnuuid
3794
- };
3795
- module.exports = SCHEMES;
3833
+ var http = (
3834
+ /** @type {SchemeHandler} */
3835
+ {
3836
+ scheme: "http",
3837
+ domainHost: true,
3838
+ parse: httpParse,
3839
+ serialize: httpSerialize
3840
+ }
3841
+ );
3842
+ var https = (
3843
+ /** @type {SchemeHandler} */
3844
+ {
3845
+ scheme: "https",
3846
+ domainHost: http.domainHost,
3847
+ parse: httpParse,
3848
+ serialize: httpSerialize
3849
+ }
3850
+ );
3851
+ var ws = (
3852
+ /** @type {SchemeHandler} */
3853
+ {
3854
+ scheme: "ws",
3855
+ domainHost: true,
3856
+ parse: wsParse,
3857
+ serialize: wsSerialize
3858
+ }
3859
+ );
3860
+ var wss = (
3861
+ /** @type {SchemeHandler} */
3862
+ {
3863
+ scheme: "wss",
3864
+ domainHost: ws.domainHost,
3865
+ parse: ws.parse,
3866
+ serialize: ws.serialize
3867
+ }
3868
+ );
3869
+ var urn = (
3870
+ /** @type {SchemeHandler} */
3871
+ {
3872
+ scheme: "urn",
3873
+ parse: urnParse,
3874
+ serialize: urnSerialize,
3875
+ skipNormalize: true
3876
+ }
3877
+ );
3878
+ var urnuuid = (
3879
+ /** @type {SchemeHandler} */
3880
+ {
3881
+ scheme: "urn:uuid",
3882
+ parse: urnuuidParse,
3883
+ serialize: urnuuidSerialize,
3884
+ skipNormalize: true
3885
+ }
3886
+ );
3887
+ var SCHEMES = (
3888
+ /** @type {Record<SchemeName, SchemeHandler>} */
3889
+ {
3890
+ http,
3891
+ https,
3892
+ ws,
3893
+ wss,
3894
+ urn,
3895
+ "urn:uuid": urnuuid
3896
+ }
3897
+ );
3898
+ Object.setPrototypeOf(SCHEMES, null);
3899
+ function getSchemeHandler(scheme) {
3900
+ return scheme && (SCHEMES[
3901
+ /** @type {SchemeName} */
3902
+ scheme
3903
+ ] || SCHEMES[
3904
+ /** @type {SchemeName} */
3905
+ scheme.toLowerCase()
3906
+ ]) || void 0;
3907
+ }
3908
+ __name(getSchemeHandler, "getSchemeHandler");
3909
+ module.exports = {
3910
+ wsIsSecure,
3911
+ SCHEMES,
3912
+ isValidSchemeName,
3913
+ getSchemeHandler
3914
+ };
3796
3915
  }
3797
3916
  });
3798
3917
 
@@ -3801,24 +3920,27 @@ var require_fast_uri = __commonJS({
3801
3920
  "node_modules/fast-uri/index.js"(exports, module) {
3802
3921
  "use strict";
3803
3922
  init_esbuild_shims();
3804
- var { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require_utils();
3805
- var SCHEMES = require_schemes();
3923
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3924
+ var { SCHEMES, getSchemeHandler } = require_schemes();
3806
3925
  function normalize(uri, options) {
3807
3926
  if (typeof uri === "string") {
3808
- uri = serialize(parse(uri, options), options);
3927
+ uri = /** @type {T} */
3928
+ normalizeString(uri, options);
3809
3929
  } else if (typeof uri === "object") {
3810
- uri = parse(serialize(uri, options), options);
3930
+ uri = /** @type {T} */
3931
+ parse(serialize(uri, options), options);
3811
3932
  }
3812
3933
  return uri;
3813
3934
  }
3814
3935
  __name(normalize, "normalize");
3815
3936
  function resolve(baseURI, relativeURI, options) {
3816
- const schemelessOptions = Object.assign({ scheme: "null" }, options);
3817
- const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
3818
- return serialize(resolved, { ...schemelessOptions, skipEscape: true });
3937
+ const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3938
+ const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
3939
+ schemelessOptions.skipEscape = true;
3940
+ return serialize(resolved, schemelessOptions);
3819
3941
  }
3820
3942
  __name(resolve, "resolve");
3821
- function resolveComponents(base, relative, options, skipNormalization) {
3943
+ function resolveComponent(base, relative, options, skipNormalization) {
3822
3944
  const target = {};
3823
3945
  if (!skipNormalization) {
3824
3946
  base = parse(serialize(base, options), options);
@@ -3848,7 +3970,7 @@ var require_fast_uri = __commonJS({
3848
3970
  target.query = base.query;
3849
3971
  }
3850
3972
  } else {
3851
- if (relative.path.charAt(0) === "/") {
3973
+ if (relative.path[0] === "/") {
3852
3974
  target.path = removeDotSegments(relative.path);
3853
3975
  } else {
3854
3976
  if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
@@ -3871,25 +3993,15 @@ var require_fast_uri = __commonJS({
3871
3993
  target.fragment = relative.fragment;
3872
3994
  return target;
3873
3995
  }
3874
- __name(resolveComponents, "resolveComponents");
3996
+ __name(resolveComponent, "resolveComponent");
3875
3997
  function equal(uriA, uriB, options) {
3876
- if (typeof uriA === "string") {
3877
- uriA = unescape(uriA);
3878
- uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true });
3879
- } else if (typeof uriA === "object") {
3880
- uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3881
- }
3882
- if (typeof uriB === "string") {
3883
- uriB = unescape(uriB);
3884
- uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
3885
- } else if (typeof uriB === "object") {
3886
- uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3887
- }
3888
- return uriA.toLowerCase() === uriB.toLowerCase();
3998
+ const normalizedA = normalizeComparableURI(uriA, options);
3999
+ const normalizedB = normalizeComparableURI(uriB, options);
4000
+ return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
3889
4001
  }
3890
4002
  __name(equal, "equal");
3891
4003
  function serialize(cmpts, opts) {
3892
- const components = {
4004
+ const component = {
3893
4005
  host: cmpts.host,
3894
4006
  scheme: cmpts.scheme,
3895
4007
  userinfo: cmpts.userinfo,
@@ -3907,64 +4019,62 @@ var require_fast_uri = __commonJS({
3907
4019
  };
3908
4020
  const options = Object.assign({}, opts);
3909
4021
  const uriTokens = [];
3910
- const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
3911
- if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
3912
- if (components.path !== void 0) {
4022
+ const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
4023
+ if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
4024
+ if (component.path !== void 0) {
3913
4025
  if (!options.skipEscape) {
3914
- components.path = escape(components.path);
3915
- if (components.scheme !== void 0) {
3916
- components.path = components.path.split("%3A").join(":");
4026
+ component.path = escapePreservingEscapes(component.path);
4027
+ if (component.scheme !== void 0) {
4028
+ component.path = component.path.split("%3A").join(":");
3917
4029
  }
3918
4030
  } else {
3919
- components.path = unescape(components.path);
4031
+ component.path = normalizePercentEncoding(component.path);
3920
4032
  }
3921
4033
  }
3922
- if (options.reference !== "suffix" && components.scheme) {
3923
- uriTokens.push(components.scheme, ":");
4034
+ if (options.reference !== "suffix" && component.scheme) {
4035
+ uriTokens.push(component.scheme, ":");
3924
4036
  }
3925
- const authority = recomposeAuthority(components);
4037
+ const authority = recomposeAuthority(component);
3926
4038
  if (authority !== void 0) {
3927
4039
  if (options.reference !== "suffix") {
3928
4040
  uriTokens.push("//");
3929
4041
  }
3930
4042
  uriTokens.push(authority);
3931
- if (components.path && components.path.charAt(0) !== "/") {
4043
+ if (component.path && component.path[0] !== "/") {
3932
4044
  uriTokens.push("/");
3933
4045
  }
3934
4046
  }
3935
- if (components.path !== void 0) {
3936
- let s = components.path;
4047
+ if (component.path !== void 0) {
4048
+ let s = component.path;
3937
4049
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3938
4050
  s = removeDotSegments(s);
3939
4051
  }
3940
- if (authority === void 0) {
3941
- s = s.replace(/^\/\//u, "/%2F");
4052
+ if (authority === void 0 && s[0] === "/" && s[1] === "/") {
4053
+ s = "/%2F" + s.slice(2);
3942
4054
  }
3943
4055
  uriTokens.push(s);
3944
4056
  }
3945
- if (components.query !== void 0) {
3946
- uriTokens.push("?", components.query);
4057
+ if (component.query !== void 0) {
4058
+ uriTokens.push("?", component.query);
3947
4059
  }
3948
- if (components.fragment !== void 0) {
3949
- uriTokens.push("#", components.fragment);
4060
+ if (component.fragment !== void 0) {
4061
+ uriTokens.push("#", component.fragment);
3950
4062
  }
3951
4063
  return uriTokens.join("");
3952
4064
  }
3953
4065
  __name(serialize, "serialize");
3954
- var hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3955
- function nonSimpleDomain(value) {
3956
- let code = 0;
3957
- for (let i = 0, len = value.length; i < len; ++i) {
3958
- code = value.charCodeAt(i);
3959
- if (code > 126 || hexLookUp[code]) {
3960
- return true;
3961
- }
4066
+ var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
4067
+ function getParseError(parsed, matches) {
4068
+ if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
4069
+ return 'URI path must start with "/" when authority is present.';
3962
4070
  }
3963
- return false;
4071
+ if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
4072
+ return "URI port is malformed.";
4073
+ }
4074
+ return void 0;
3964
4075
  }
3965
- __name(nonSimpleDomain, "nonSimpleDomain");
3966
- var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3967
- function parse(uri, opts) {
4076
+ __name(getParseError, "getParseError");
4077
+ function parseWithStatus(uri, opts) {
3968
4078
  const options = Object.assign({}, opts);
3969
4079
  const parsed = {
3970
4080
  scheme: void 0,
@@ -3975,9 +4085,15 @@ var require_fast_uri = __commonJS({
3975
4085
  query: void 0,
3976
4086
  fragment: void 0
3977
4087
  };
3978
- const gotEncoding = uri.indexOf("%") !== -1;
4088
+ let malformedAuthorityOrPort = false;
3979
4089
  let isIP = false;
3980
- if (options.reference === "suffix") uri = (options.scheme ? options.scheme + ":" : "") + "//" + uri;
4090
+ if (options.reference === "suffix") {
4091
+ if (options.scheme) {
4092
+ uri = options.scheme + ":" + uri;
4093
+ } else {
4094
+ uri = "//" + uri;
4095
+ }
4096
+ }
3981
4097
  const matches = uri.match(URI_PARSE);
3982
4098
  if (matches) {
3983
4099
  parsed.scheme = matches[1];
@@ -3990,14 +4106,18 @@ var require_fast_uri = __commonJS({
3990
4106
  if (isNaN(parsed.port)) {
3991
4107
  parsed.port = matches[5];
3992
4108
  }
4109
+ const parseError = getParseError(parsed, matches);
4110
+ if (parseError !== void 0) {
4111
+ parsed.error = parsed.error || parseError;
4112
+ malformedAuthorityOrPort = true;
4113
+ }
3993
4114
  if (parsed.host) {
3994
- const ipv4result = normalizeIPv4(parsed.host);
3995
- if (ipv4result.isIPV4 === false) {
3996
- const ipv6result = normalizeIPv6(ipv4result.host);
4115
+ const ipv4result = isIPv4(parsed.host);
4116
+ if (ipv4result === false) {
4117
+ const ipv6result = normalizeIPv6(parsed.host);
3997
4118
  parsed.host = ipv6result.host.toLowerCase();
3998
4119
  isIP = ipv6result.isIPV6;
3999
4120
  } else {
4000
- parsed.host = ipv4result.host;
4001
4121
  isIP = true;
4002
4122
  }
4003
4123
  }
@@ -4013,28 +4133,34 @@ var require_fast_uri = __commonJS({
4013
4133
  if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
4014
4134
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
4015
4135
  }
4016
- const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || "").toLowerCase()];
4136
+ const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
4017
4137
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
4018
4138
  if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4019
4139
  try {
4020
- parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
4140
+ parsed.host = new URL("http://" + parsed.host).hostname;
4021
4141
  } catch (e) {
4022
4142
  parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
4023
4143
  }
4024
4144
  }
4025
4145
  }
4026
4146
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4027
- if (gotEncoding && parsed.scheme !== void 0) {
4028
- parsed.scheme = unescape(parsed.scheme);
4029
- }
4030
- if (gotEncoding && parsed.host !== void 0) {
4031
- parsed.host = unescape(parsed.host);
4147
+ if (uri.indexOf("%") !== -1) {
4148
+ if (parsed.scheme !== void 0) {
4149
+ parsed.scheme = unescape(parsed.scheme);
4150
+ }
4151
+ if (parsed.host !== void 0) {
4152
+ parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
4153
+ }
4032
4154
  }
4033
4155
  if (parsed.path) {
4034
- parsed.path = escape(unescape(parsed.path));
4156
+ parsed.path = normalizePathEncoding(parsed.path);
4035
4157
  }
4036
4158
  if (parsed.fragment) {
4037
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
4159
+ try {
4160
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
4161
+ } catch {
4162
+ parsed.error = parsed.error || "URI malformed";
4163
+ }
4038
4164
  }
4039
4165
  }
4040
4166
  if (schemeHandler && schemeHandler.parse) {
@@ -4043,14 +4169,40 @@ var require_fast_uri = __commonJS({
4043
4169
  } else {
4044
4170
  parsed.error = parsed.error || "URI can not be parsed.";
4045
4171
  }
4046
- return parsed;
4172
+ return { parsed, malformedAuthorityOrPort };
4173
+ }
4174
+ __name(parseWithStatus, "parseWithStatus");
4175
+ function parse(uri, opts) {
4176
+ return parseWithStatus(uri, opts).parsed;
4047
4177
  }
4048
4178
  __name(parse, "parse");
4179
+ function normalizeString(uri, opts) {
4180
+ return normalizeStringWithStatus(uri, opts).normalized;
4181
+ }
4182
+ __name(normalizeString, "normalizeString");
4183
+ function normalizeStringWithStatus(uri, opts) {
4184
+ const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
4185
+ return {
4186
+ normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
4187
+ malformedAuthorityOrPort
4188
+ };
4189
+ }
4190
+ __name(normalizeStringWithStatus, "normalizeStringWithStatus");
4191
+ function normalizeComparableURI(uri, opts) {
4192
+ if (typeof uri === "string") {
4193
+ const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
4194
+ return malformedAuthorityOrPort ? void 0 : normalized;
4195
+ }
4196
+ if (typeof uri === "object") {
4197
+ return serialize(uri, opts);
4198
+ }
4199
+ }
4200
+ __name(normalizeComparableURI, "normalizeComparableURI");
4049
4201
  var fastUri = {
4050
4202
  SCHEMES,
4051
4203
  normalize,
4052
4204
  resolve,
4053
- resolveComponents,
4205
+ resolveComponent,
4054
4206
  equal,
4055
4207
  serialize,
4056
4208
  parse
@@ -4190,7 +4342,7 @@ var require_core = __commonJS({
4190
4342
  constructor(opts = {}) {
4191
4343
  this.schemas = {};
4192
4344
  this.refs = {};
4193
- this.formats = {};
4345
+ this.formats = /* @__PURE__ */ Object.create(null);
4194
4346
  this._compilations = /* @__PURE__ */ new Set();
4195
4347
  this._loading = {};
4196
4348
  this._cache = /* @__PURE__ */ new Map();
@@ -5007,6 +5159,7 @@ var require_pattern = __commonJS({
5007
5159
  init_esbuild_shims();
5008
5160
  Object.defineProperty(exports, "__esModule", { value: true });
5009
5161
  var code_1 = require_code2();
5162
+ var util_1 = require_util();
5010
5163
  var codegen_1 = require_codegen();
5011
5164
  var error = {
5012
5165
  message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, "message"),
@@ -5019,10 +5172,18 @@ var require_pattern = __commonJS({
5019
5172
  $data: true,
5020
5173
  error,
5021
5174
  code(cxt) {
5022
- const { data, $data, schema, schemaCode, it } = cxt;
5175
+ const { gen, data, $data, schema, schemaCode, it } = cxt;
5023
5176
  const u = it.opts.unicodeRegExp ? "u" : "";
5024
- const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
5025
- cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
5177
+ if ($data) {
5178
+ const { regExp } = it.opts.code;
5179
+ const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
5180
+ const valid = gen.let("valid");
5181
+ gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
5182
+ cxt.fail$data((0, codegen_1._)`!${valid}`);
5183
+ } else {
5184
+ const regExp = (0, code_1.usePattern)(cxt, schema);
5185
+ cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
5186
+ }
5026
5187
  }
5027
5188
  };
5028
5189
  exports.default = def;
@@ -11359,7 +11520,7 @@ var require_core4 = __commonJS({
11359
11520
  constructor(opts = {}) {
11360
11521
  this.schemas = {};
11361
11522
  this.refs = {};
11362
- this.formats = {};
11523
+ this.formats = /* @__PURE__ */ Object.create(null);
11363
11524
  this._compilations = /* @__PURE__ */ new Set();
11364
11525
  this._loading = {};
11365
11526
  this._cache = /* @__PURE__ */ new Map();
@@ -12176,6 +12337,7 @@ var require_pattern2 = __commonJS({
12176
12337
  init_esbuild_shims();
12177
12338
  Object.defineProperty(exports, "__esModule", { value: true });
12178
12339
  var code_1 = require_code4();
12340
+ var util_1 = require_util2();
12179
12341
  var codegen_1 = require_codegen2();
12180
12342
  var error = {
12181
12343
  message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, "message"),
@@ -12188,10 +12350,18 @@ var require_pattern2 = __commonJS({
12188
12350
  $data: true,
12189
12351
  error,
12190
12352
  code(cxt) {
12191
- const { data, $data, schema, schemaCode, it } = cxt;
12353
+ const { gen, data, $data, schema, schemaCode, it } = cxt;
12192
12354
  const u = it.opts.unicodeRegExp ? "u" : "";
12193
- const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
12194
- cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
12355
+ if ($data) {
12356
+ const { regExp } = it.opts.code;
12357
+ const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
12358
+ const valid = gen.let("valid");
12359
+ gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
12360
+ cxt.fail$data((0, codegen_1._)`!${valid}`);
12361
+ } else {
12362
+ const regExp = (0, code_1.usePattern)(cxt, schema);
12363
+ cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
12364
+ }
12195
12365
  }
12196
12366
  };
12197
12367
  exports.default = def;
@@ -15011,9 +15181,9 @@ var AgentStatistics = class {
15011
15181
  const stats = this.getSummary(now);
15012
15182
  const sr = stats.totalToolCalls > 0 ? stats.successRate ?? stats.successfulToolCalls / stats.totalToolCalls * 100 : 0;
15013
15183
  const lines = [
15014
- `\u{1F4CB} Task Completed: ${taskDesc}`,
15015
- `\u{1F527} Tool Usage: ${stats.totalToolCalls} calls${stats.totalToolCalls ? `, ${sr.toFixed(1)}% success` : ""}`,
15016
- `\u23F1\uFE0F Duration: ${this.fmtDuration(stats.totalDurationMs)} | \u{1F501} Rounds: ${stats.rounds}`
15184
+ `\u25B8 Task Completed: ${taskDesc}`,
15185
+ `\u25CF Tool Usage: ${stats.totalToolCalls} calls${stats.totalToolCalls ? `, ${sr.toFixed(1)}% success` : ""}`,
15186
+ `\u25CF Duration: ${this.fmtDuration(stats.totalDurationMs)} | \u25CF Rounds: ${stats.rounds}`
15017
15187
  ];
15018
15188
  if (typeof stats.totalTokens === "number") {
15019
15189
  const parts = [
@@ -15021,7 +15191,7 @@ var AgentStatistics = class {
15021
15191
  `out ${stats.outputTokens ?? 0}`
15022
15192
  ];
15023
15193
  lines.push(
15024
- `\u{1F522} Tokens: ${stats.totalTokens.toLocaleString()}${parts.length ? ` (${parts.join(", ")})` : ""}`
15194
+ `\u25CF Tokens: ${stats.totalTokens.toLocaleString()}${parts.length ? ` (${parts.join(", ")})` : ""}`
15025
15195
  );
15026
15196
  }
15027
15197
  return lines.join("\n");
@@ -15030,23 +15200,23 @@ var AgentStatistics = class {
15030
15200
  const stats = this.getSummary(now);
15031
15201
  const sr = stats.totalToolCalls > 0 ? stats.successRate ?? stats.successfulToolCalls / stats.totalToolCalls * 100 : 0;
15032
15202
  const lines = [];
15033
- lines.push(`\u{1F4CB} Task Completed: ${taskDesc}`);
15203
+ lines.push(`\u25B8 Task Completed: ${taskDesc}`);
15034
15204
  lines.push(
15035
- `\u23F1\uFE0F Duration: ${this.fmtDuration(stats.totalDurationMs)} | \u{1F501} Rounds: ${stats.rounds}`
15205
+ `\u25CF Duration: ${this.fmtDuration(stats.totalDurationMs)} | \u25CF Rounds: ${stats.rounds}`
15036
15206
  );
15037
15207
  let quality = "Poor execution";
15038
15208
  if (sr >= 95) quality = "Excellent execution";
15039
15209
  else if (sr >= 85) quality = "Good execution";
15040
15210
  else if (sr >= 70) quality = "Fair execution";
15041
- lines.push(`\u2705 Quality: ${quality} (${sr.toFixed(1)}% tool success)`);
15211
+ lines.push(`\u2713 Quality: ${quality} (${sr.toFixed(1)}% tool success)`);
15042
15212
  const d = stats.totalDurationMs;
15043
15213
  let speed = "Long execution - consider breaking down tasks";
15044
15214
  if (d < 1e4) speed = "Fast completion - under 10 seconds";
15045
15215
  else if (d < 6e4) speed = "Good speed - under a minute";
15046
15216
  else if (d < 3e5) speed = "Moderate duration - a few minutes";
15047
- lines.push(`\u{1F680} Speed: ${speed}`);
15217
+ lines.push(`\u25CF Speed: ${speed}`);
15048
15218
  lines.push(
15049
- `\u{1F527} Tools: ${stats.totalToolCalls} calls, ${sr.toFixed(1)}% success (${stats.successfulToolCalls} ok, ${stats.failedToolCalls} failed)`
15219
+ `\u25CF Tools: ${stats.totalToolCalls} calls, ${sr.toFixed(1)}% success (${stats.successfulToolCalls} ok, ${stats.failedToolCalls} failed)`
15050
15220
  );
15051
15221
  if (typeof stats.totalTokens === "number") {
15052
15222
  const parts = [
@@ -15054,7 +15224,7 @@ var AgentStatistics = class {
15054
15224
  `out ${stats.outputTokens ?? 0}`
15055
15225
  ];
15056
15226
  lines.push(
15057
- `\u{1F522} Tokens: ${stats.totalTokens.toLocaleString()} (${parts.join(", ")})`
15227
+ `\u25CF Tokens: ${stats.totalTokens.toLocaleString()} (${parts.join(", ")})`
15058
15228
  );
15059
15229
  }
15060
15230
  if (stats.toolUsage && stats.toolUsage.length) {
@@ -15069,7 +15239,7 @@ var AgentStatistics = class {
15069
15239
  }
15070
15240
  const tips = this.generatePerformanceTips(stats);
15071
15241
  if (tips.length) {
15072
- lines.push("\n\u{1F4A1} Performance Insights:");
15242
+ lines.push("\n\u2605 Performance Insights:");
15073
15243
  for (const tip of tips.slice(0, 3)) lines.push(` - ${tip}`);
15074
15244
  }
15075
15245
  return lines.join("\n");
@@ -15457,6 +15627,7 @@ var ToolNames = {
15457
15627
  TASK_LIST: "task_list",
15458
15628
  TEAM_CREATE: "team_create",
15459
15629
  TEAM_DELETE: "team_delete",
15630
+ TEAM_PLAN_APPROVAL: "team_plan_approval",
15460
15631
  SEND_MESSAGE: "send_message",
15461
15632
  STRUCTURED_OUTPUT: "structured_output",
15462
15633
  MONITOR: "monitor",
@@ -15501,6 +15672,7 @@ var ToolDisplayNames = {
15501
15672
  TASK_LIST: "TaskList",
15502
15673
  TEAM_CREATE: "TeamCreate",
15503
15674
  TEAM_DELETE: "TeamDelete",
15675
+ TEAM_PLAN_APPROVAL: "TeamPlanApproval",
15504
15676
  SEND_MESSAGE: "SendMessage",
15505
15677
  STRUCTURED_OUTPUT: "StructuredOutput",
15506
15678
  MONITOR: "Monitor",