@qqbrowser/qbot-dsh 0.0.15 → 0.1.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 (737) hide show
  1. package/config/agent-presets/code/agent.cordis.yml +2 -2
  2. package/config/agent-presets/standard/agent.cordis.yml +2 -2
  3. package/cordis.patch.yml +50 -0
  4. package/lib/args-w1okyL78.js +9 -0
  5. package/lib/bin.js +2 -2
  6. package/lib/client.js +1 -0
  7. package/lib/content-review-CqDoh3wY.js +1 -0
  8. package/lib/content-review.js +1 -0
  9. package/lib/dump-config-CIL0Goqj.js +1 -0
  10. package/lib/gateway-port-CSFbDyoZ.js +1 -0
  11. package/lib/index.js +1 -0
  12. package/lib/llm-gateway-openai.js +17 -0
  13. package/lib/native-protocol-DdrIh89-.js +2 -0
  14. package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
  15. package/lib/profile-boot-CxJUSdnu.js +1 -0
  16. package/lib/profile-boot-DCgBQ4qO.js +8 -0
  17. package/lib/qb-auth-C2ofR1zn.js +4 -0
  18. package/lib/qb-auth.js +1 -0
  19. package/lib/web-search-dsh.js +1 -0
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  21. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  22. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  23. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  25. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  26. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  27. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
  28. package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  35. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  37. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  38. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  39. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
  40. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  41. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  42. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
  43. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  44. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  45. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  46. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
  47. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  48. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  50. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-runtime/lib/client.js +4 -4
  58. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  62. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
  64. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  65. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
  66. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  67. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
  68. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  69. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  71. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
  72. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  73. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  75. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  76. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  79. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  80. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  82. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
  83. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  84. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  90. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +22 -22
  91. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
  93. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  95. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1 -1
  97. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  98. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  99. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  100. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  101. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  102. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  103. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  104. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -1
  105. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  106. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
  108. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  110. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -1
  112. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
  116. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  118. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
  120. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  122. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  123. package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -2
  131. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  132. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +4 -4
  136. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  137. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -4
  138. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  140. package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
  141. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  142. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  143. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  144. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -2
  147. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
  150. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
  151. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  152. package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
  153. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/index.js +7 -7
  155. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js +1 -1
  156. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api-proxy.js +1 -1
  157. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  160. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
  165. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  168. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +1 -1
  171. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +1 -1
  172. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1 -1
  174. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  176. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  177. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  178. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
  179. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  183. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  193. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  194. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  195. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  196. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  197. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  198. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  201. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  202. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +2 -2
  205. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  211. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  212. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  213. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  215. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  216. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  217. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
  218. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  219. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  220. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  221. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  222. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  224. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  225. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  226. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  227. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  228. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  229. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  230. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  231. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  232. package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
  233. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  235. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  236. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  237. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +1 -1
  238. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  239. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  240. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  241. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  242. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  243. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  244. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +7 -10
  246. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  247. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  248. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +9 -30
  249. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  250. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -8
  251. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  252. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  253. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  254. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  255. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  256. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  257. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  258. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  259. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  260. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  261. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  262. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  263. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  264. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  265. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  266. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +15 -15
  267. package/node_modules/@deepseek-ai/dsh-tools/lib/types/code-mode.js +8 -8
  268. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +3 -3
  269. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +4 -4
  270. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  271. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  272. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  273. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  274. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  275. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  276. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  278. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
  279. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
  280. package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
  281. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  282. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-BQQQ5Qt-.js → index-fPGOmJjK.js} +25 -25
  283. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +1 -1
  284. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  285. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  286. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  287. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
  288. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  289. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  290. package/node_modules/@deepseek-ai/node-addon-landlock-run/package.json +1 -1
  291. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
  292. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
  293. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
  294. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
  295. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
  296. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
  297. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
  298. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  299. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
  300. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
  301. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
  302. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  303. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
  304. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
  305. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
  306. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  307. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  308. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  309. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  310. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  311. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  312. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  313. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  314. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  315. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  316. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  317. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  318. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  319. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  320. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  321. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  322. package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
  323. package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
  324. package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
  325. package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
  326. package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
  327. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
  328. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  329. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  330. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  331. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  332. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  333. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  334. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  335. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  336. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  337. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  338. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  339. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  340. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  341. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  342. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  343. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  344. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  345. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  346. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  347. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  348. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  349. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  350. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  351. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  352. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  353. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  354. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  355. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  356. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  357. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  358. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  359. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  360. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  361. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  362. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  363. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  364. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  365. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  366. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  367. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  368. package/node_modules/@smithy/core/package.json +1 -1
  369. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
  370. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
  371. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  372. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  373. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  374. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  375. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  376. package/node_modules/@smithy/signature-v4/package.json +1 -1
  377. package/node_modules/@tanstack/react-virtual/package.json +1 -1
  378. package/node_modules/@tanstack/virtual-core/dist/cjs/index.cjs +7 -1
  379. package/node_modules/@tanstack/virtual-core/dist/cjs/utils.cjs +14 -4
  380. package/node_modules/@tanstack/virtual-core/dist/esm/index.js +1 -1
  381. package/node_modules/@tanstack/virtual-core/dist/esm/utils.js +2 -2
  382. package/node_modules/@tanstack/virtual-core/package.json +1 -1
  383. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  384. package/node_modules/hono/dist/cjs/context.js +4 -0
  385. package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
  386. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
  387. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
  388. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
  389. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
  390. package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
  391. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
  392. package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
  393. package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
  394. package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
  395. package/node_modules/hono/dist/client/utils.js +1 -1
  396. package/node_modules/hono/dist/middleware/cors/index.js +1 -1
  397. package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
  398. package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
  399. package/node_modules/hono/dist/middleware/etag/index.js +1 -1
  400. package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -1
  401. package/node_modules/hono/dist/router/linear-router/router.js +1 -1
  402. package/node_modules/hono/dist/router/pattern-router/router.js +1 -1
  403. package/node_modules/hono/dist/router/trie-router/node.js +1 -1
  404. package/node_modules/hono/dist/router/trie-router/router.js +1 -1
  405. package/node_modules/hono/dist/utils/ipaddr.js +1 -1
  406. package/node_modules/hono/package.json +1 -1
  407. package/node_modules/koffi/package.json +1 -1
  408. package/node_modules/koffi/src/koffi/index.cjs +1 -1
  409. package/node_modules/koffi/src/koffi/index.js +1 -1
  410. package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
  411. package/node_modules/koffi/src/koffi/indirect.js +1 -1
  412. package/node_modules/negotiator/lib/accept.js +54 -0
  413. package/node_modules/negotiator/lib/charset.js +10 -34
  414. package/node_modules/negotiator/lib/encoding.js +9 -30
  415. package/node_modules/negotiator/lib/language.js +15 -36
  416. package/node_modules/negotiator/lib/mediaType.js +16 -134
  417. package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
  418. package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
  419. package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
  420. package/node_modules/negotiator/package.json +1 -1
  421. package/node_modules/node-pty/lib/conpty_console_list_agent.js +11 -2
  422. package/node_modules/node-pty/lib/index.js +6 -6
  423. package/node_modules/node-pty/lib/shared/conout.js +2 -3
  424. package/node_modules/node-pty/lib/terminal.js +2 -2
  425. package/node_modules/node-pty/lib/unixTerminal.js +11 -6
  426. package/node_modules/node-pty/lib/utils.js +6 -7
  427. package/node_modules/node-pty/lib/windowsConoutConnection.js +24 -18
  428. package/node_modules/node-pty/lib/windowsPtyAgent.js +125 -101
  429. package/node_modules/node-pty/lib/windowsTerminal.js +14 -4
  430. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +3 -3
  431. package/node_modules/node-pty/package.json +1 -1
  432. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  433. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  434. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  435. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  436. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  437. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  438. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  439. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  440. package/node_modules/node-pty/scripts/post-install.js +1 -5
  441. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
  442. package/node_modules/node-pty/third_party/conpty/{1.23.251008001 → 1.25.260303002}/win10-arm64/conpty.dll +0 -0
  443. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
  444. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
  445. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  446. package/node_modules/typebox/build/format/_idna.mjs +1 -1
  447. package/node_modules/typebox/build/format/_puny.mjs +1 -1
  448. package/node_modules/typebox/build/format/uuid.mjs +1 -1
  449. package/node_modules/typebox/build/guard/emit.mjs +1 -1
  450. package/node_modules/typebox/build/guard/guard.mjs +1 -1
  451. package/node_modules/typebox/build/guard/string.mjs +1 -1
  452. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  453. package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
  454. package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
  455. package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
  456. package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
  457. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  458. package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
  459. package/node_modules/typebox/build/schema/types/index.mjs +1 -1
  460. package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
  461. package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
  462. package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
  463. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
  464. package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
  465. package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
  466. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
  467. package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
  468. package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
  469. package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
  470. package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
  471. package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
  472. package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
  473. package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
  474. package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
  475. package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
  476. package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
  477. package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
  478. package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
  479. package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
  480. package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
  481. package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
  482. package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
  483. package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
  484. package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
  485. package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
  486. package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
  487. package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
  488. package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
  489. package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
  490. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
  491. package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
  492. package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
  493. package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
  494. package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
  495. package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
  496. package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
  497. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
  498. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
  499. package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
  500. package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
  501. package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
  502. package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
  503. package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
  504. package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
  505. package/node_modules/typebox/build/type/action/index.mjs +1 -1
  506. package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
  507. package/node_modules/typebox/build/type/action/module.mjs +1 -1
  508. package/node_modules/typebox/build/type/action/options.mjs +1 -0
  509. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
  510. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  511. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
  512. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
  513. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
  514. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
  515. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
  516. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
  517. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
  518. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
  519. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
  520. package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
  521. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
  522. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
  523. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
  524. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
  525. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
  526. package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
  527. package/node_modules/typebox/build/type/engine/index.mjs +1 -1
  528. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
  529. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
  530. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
  531. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
  532. package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
  533. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
  534. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
  535. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
  536. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
  537. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
  538. package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
  539. package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
  540. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  541. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
  542. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
  543. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
  544. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
  545. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
  546. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
  547. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
  548. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
  549. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
  550. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
  551. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
  552. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
  553. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
  554. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
  555. package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
  556. package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
  557. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
  558. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
  559. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  560. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
  561. package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
  562. package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
  563. package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
  564. package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
  565. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  566. package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
  567. package/node_modules/typebox/build/type/extends/object.mjs +1 -1
  568. package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
  569. package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
  570. package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
  571. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
  572. package/node_modules/typebox/build/type/extends/union.mjs +1 -1
  573. package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
  574. package/node_modules/typebox/build/type/script/parser.mjs +6 -6
  575. package/node_modules/typebox/build/type/script/script.mjs +1 -1
  576. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  577. package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
  578. package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
  579. package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
  580. package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
  581. package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
  582. package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
  583. package/node_modules/typebox/build/type/types/base.mjs +1 -0
  584. package/node_modules/typebox/build/type/types/call.mjs +1 -1
  585. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  586. package/node_modules/typebox/build/type/types/enum.mjs +1 -1
  587. package/node_modules/typebox/build/type/types/index.mjs +1 -1
  588. package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
  589. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  590. package/node_modules/typebox/build/type/types/promise.mjs +1 -0
  591. package/node_modules/typebox/build/type/types/record.mjs +1 -1
  592. package/node_modules/typebox/build/typebox.mjs +1 -1
  593. package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
  594. package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
  595. package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
  596. package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
  597. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
  598. package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
  599. package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
  600. package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
  601. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
  602. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
  603. package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
  604. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
  605. package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
  606. package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
  607. package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
  608. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
  609. package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
  610. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
  611. package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
  612. package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
  613. package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
  614. package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
  615. package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
  616. package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
  617. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  618. package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
  619. package/node_modules/typebox/build/value/index.mjs +1 -1
  620. package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
  621. package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
  622. package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
  623. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
  624. package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
  625. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  626. package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
  627. package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
  628. package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
  629. package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
  630. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
  631. package/node_modules/typebox/build/value/value.mjs +1 -1
  632. package/node_modules/typebox/package.json +1 -1
  633. package/package.json +1 -1
  634. package/lib/args-DcHS9iff.js +0 -9
  635. package/lib/dump-config-xQTUTTDD.js +0 -1
  636. package/lib/profile-boot-BkordgJK.js +0 -1
  637. package/lib/profile-boot-DDo03lXi.js +0 -8
  638. package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
  639. package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
  640. package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
  641. package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
  642. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
  643. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
  644. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
  645. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
  646. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
  647. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
  648. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
  649. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
  650. package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
  651. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
  652. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
  653. package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
  654. package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
  655. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
  656. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
  657. package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
  658. package/node_modules/@napi-rs/xattr/LICENSE +0 -21
  659. package/node_modules/@napi-rs/xattr/index.js +0 -567
  660. package/node_modules/@napi-rs/xattr/package.json +0 -1
  661. package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
  662. package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
  663. package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
  664. package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
  665. package/node_modules/@parcel/watcher/LICENSE +0 -21
  666. package/node_modules/@parcel/watcher/index.js +0 -44
  667. package/node_modules/@parcel/watcher/index.js.flow +0 -45
  668. package/node_modules/@parcel/watcher/package.json +0 -1
  669. package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
  670. package/node_modules/@parcel/watcher/wrapper.js +0 -88
  671. package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
  672. package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
  673. package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
  674. package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
  675. package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
  676. package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
  677. package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
  678. package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
  679. package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
  680. package/node_modules/is-extglob/LICENSE +0 -21
  681. package/node_modules/is-extglob/index.js +0 -20
  682. package/node_modules/is-extglob/package.json +0 -1
  683. package/node_modules/is-glob/LICENSE +0 -21
  684. package/node_modules/is-glob/index.js +0 -150
  685. package/node_modules/is-glob/package.json +0 -1
  686. package/node_modules/node-pty/deps/winpty/.drone.yml +0 -15
  687. package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  688. package/node_modules/node-pty/deps/winpty/configure +0 -167
  689. package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  690. package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  691. package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  692. package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  693. package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  694. package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  695. package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  696. package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  697. package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  698. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  699. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  700. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  701. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  702. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  703. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  704. package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  705. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  706. package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  707. package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  708. package/node_modules/node-pty/scripts/increment-version.js +0 -54
  709. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  710. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  711. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  712. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
  713. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
  714. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
  715. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
  716. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
  717. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
  718. package/node_modules/typebox/build/type/action/with.mjs +0 -1
  719. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
  720. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
  721. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
  722. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
  723. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
  724. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
  725. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
  726. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  727. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
  728. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
  729. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
  730. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
  731. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
  732. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
  733. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
  734. package/node_modules/typebox/build/type/extends/record.mjs +0 -1
  735. package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
  736. /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
  737. /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-client-ui-theme","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./styles/*":"./lib/styles/*","./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-api-remotes"],"platform":"web","immediately":true}},"license":"MIT","peerDependencies":{"react":"^18.2.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-connection":"^0.0.15","@deepseek-ai/dsh-api-remotes":"^0.0.15","@deepseek-ai/dsh-client-locale":"^0.0.15","@deepseek-ai/dsh-client-runtime":"^0.0.15","@deepseek-ai/dsh-client-ui-settings":"^0.0.15","@deepseek-ai/dsh-client-ui-slots":"^0.0.15","@deepseek-ai/dsh-host-webserver":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-client-ui-primitives":"^0.0.15"},"dependencies":{"clsx":"^2.0.0","@deepseek-ai/dsh-settings":"^0.0.15","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-client-ui-theme","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./styles/*":"./lib/styles/*","./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-api-remotes"],"platform":"web","immediately":true}},"license":"MIT","peerDependencies":{"react":"^18.2.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-locale":"^0.1.0-rc.7","@deepseek-ai/dsh-api-remotes":"^0.1.0-rc.7","@deepseek-ai/dsh-client-runtime":"^0.1.0-rc.7","@deepseek-ai/dsh-client-connection":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-primitives":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-settings":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-slots":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-host-webserver":"^0.1.0-rc.7"},"dependencies":{"clsx":"^2.0.0","@deepseek-ai/schemastery":"^3.18.1","@deepseek-ai/dsh-settings":"^0.1.0-rc.7"}}
@@ -1,4 +1,4 @@
1
1
  var vt=Object.defineProperty;var l=(C,W)=>vt(C,"name",{value:W,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-client-ui-tool",factory:l(C=>{var W={exports:{}},R=W.exports;Object.defineProperty(R,Symbol.toStringTag,{value:"Module"});let n=C("react/jsx-runtime"),S=C("react"),d=C("@deepseek-ai/dsh-client-ui-primitives"),we=C("@deepseek-ai/dsh-client-runtime/client");const ge={search:"Search",read:"Read",bash:"Bash",write:"Write",edit:"Edit",code:"Code",others:"Tool call"},_e={bash:"bash",pwsh:"bash",read:"read",web_fetch:"read",web_search:"search",grep:"search",glob:"search",write:"write",edit:"edit",run_code:"code",cordis_package_inspect:"read",cordis_runtime_inspect:"read",cordis_run:"others",cordis_stop:"others",cordis_undefine:"others"},be={cordis_package_inspect:"Inspect",cordis_runtime_inspect:"Inspect",cordis_run:"Run Cordis Plugin",cordis_stop:"Stop Cordis Plugin",cordis_undefine:"Remove Cordis Plugin",pwsh:"Pwsh"};function ke(e){return _e[e]??"others"}l(ke,"classifyTool");function $(e){const t=[];for(const r of e.content)r.type==="text"?t.push(r.text):t.push(JSON.stringify(r,null,2));return t.length===0&&e.error!==void 0&&t.push(`${e.error.name}: ${e.error.code}`),t.join(`
2
2
  `)}l($,"resultText");function D(e){try{return JSON.parse(e)}catch{return}}l(D,"parseArgs");function O(e){const t=e.indexOf(`
3
3
  `);return t===-1?e:e.slice(0,t)}l(O,"firstLine");function X(e,t){for(const r of t){const o=e[r];if(typeof o=="string"&&o!=="")return o}}l(X,"pickString");const je={bash:["description","command"],read:["path","file_path","url"],search:["query","pattern","url"],write:["path","file_path"],edit:["path","file_path"],code:["description"],others:[]};function ee(e,t){if(t===void 0||t==="")return e;const r=t.replace(/[/\\]+$/,"");return e.startsWith(`${r}/`)||e.startsWith(`${r}\\`)?e.slice(r.length+1):e}l(ee,"relativizeToCwd");function Ce(e,t){const r=D(t);if(typeof r!="object"||r===null)return O(t);const o=r,i=X(o,je[e]);if(i!==void 0)return O(i);for(const s of Object.values(o))if(typeof s=="string"&&s!=="")return O(s);return O(t)}l(Ce,"deriveSummary");const Oe=["path","file_path"],He=new Set(["read","write","edit"]);function Se(e,t){if(!He.has(e))return;const r=D(t);if(typeof r!="object"||r===null)return;const o=X(r,Oe);return o===void 0?void 0:O(o)}l(Se,"deriveFilePath");function Ge(e,t){if(t==="")return null;const r=D(t);if(r===void 0)return t;if(e==="code"&&typeof r=="object"&&r!==null){const o=r.code;if(typeof o=="string"&&o!=="")return o}return JSON.stringify(r,null,2)}l(Ge,"deriveBody");function _(e,t,r){const o=ke(e),i="kind"in t,s=(i?t.call?.argsRaw:t.argsRaw)??"",a=i?t.error?.code==="interrupted"?"stopped":t.isError?"error":"ok":"running",c=s===""?t.callId:ee(Ce(o,s),r),p=be[e],v=o==="others"&&e!==""&&p===void 0?`${e} · ${c}`:c,f=i&&$(t)||null,h=a==="error"&&f!==null?O(f):null;return{variant:o,title:p??ge[o],summary:v,filePath:Se(o,s),body:Ge(o,s),output:f,errorSummary:h,state:a}}l(_,"toolRowModel");function z(e,t){if(!("kind"in e))return null;const r=e.resultView?.card==="read"?e.resultView:null;if(r===null)return null;const o=r.lines.map(i=>({number:i.number,text:i.text}));return{label:r.title??ee(r.path,t),lines:o,totalLines:r.totalLines,lang:r.lang}}l(z,"readCardModel");function te(e){if(!Array.isArray(e)||e.length===0)return null;const t=[];for(const r of e){if(typeof r!="object"||r===null)return null;const{path:o,oldText:i,newText:s}=r;if(typeof o!="string"||i!==null&&typeof i!="string"||typeof s!="string")return null;t.push({path:o,oldText:i,newText:s})}return t}l(te,"narrowDiffs");function F(e){if(!("kind"in e)){const o=e.callView?.card==="diff"?e.callView:null,i=o===null?null:te(o.diffs);return i===null?null:{card:{diffs:i}}}const t=e.resultView?.card==="diff"?e.resultView:null,r=t===null?null:te(t.diffs);return r===null?null:{card:{diffs:r}}}l(F,"diffCardModel");function Ee(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.path=="string"&&Array.isArray(t.matches)&&t.matches.every(r=>typeof r=="object"&&r!==null&&typeof r.lineNumber=="number"&&typeof r.line=="string"))}l(Ee,"isValidFiles");function Be(e){const t=e.filter(r=>r.type==="text"&&typeof r.text=="string").map(r=>r.text).join(`
4
- `);return t===""?void 0:t}l(Be,"flattenContent");function V(e){if(!("kind"in e))return null;const t=e.resultView?.card==="search"?e.resultView:null;if(t===null)return null;const r={truncated:t.truncated,total:t.total},o=t.truncated?Be(e.content):void 0;return t.shape==="matches"?Ee(t.files)?{title:t.title,recovery:o,card:{kind:"matches",files:t.files,...r}}:null:t.shape!=="paths"||!Array.isArray(t.paths)||!t.paths.every(i=>typeof i=="string")?null:{title:t.title,recovery:o,card:{kind:"paths",paths:t.paths,...r}}}l(V,"searchCardModel");function P(e){return{signal:l(t=>e("terminal.signal",{signal:t}),"signal"),exitCode:l(t=>e("terminal.exitCode",{code:t}),"exitCode"),running:e("terminal.running"),failed:e("terminal.failed"),done:e("terminal.done"),copy:e("copy"),copied:e("copied"),noOutput:e("terminal.noOutput"),collapseAria:e("terminal.collapseAria"),collapse:e("collapse"),expandAria:l(t=>e("terminal.expandAria",{n:t}),"expandAria"),expand:l(t=>e("terminal.expandRest",{n:t}),"expand")}}l(P,"terminalBlockLabels");function re(e){const{exitCode:t,signal:r,running:o}=e.card;return o!==!0&&(t!==void 0&&t!==0||r!==void 0)}l(re,"terminalFailed");function oe(e,t){return e===void 0||e===""?t:ne(t===void 0||t===""?e:(0,we.resolveWorkspacePath)(t,e))}l(oe,"resolveTerminalCwd");function ne(e){if(!/(?:^|[/\\])\.\.?(?:[/\\]|$)/.test(e))return e;const t=/^[/\\]{2}([^/\\]+)[/\\]+([^/\\]+)/.exec(e);if(t!==null){const[c,p,v]=t,f=`\\\\${String(p)}\\${String(v)}`,h=ie(e.slice(c.length),!0);return h===""?f:`${f}\\${h}`}const r=e.includes("\\")&&!e.includes("/")?"\\":"/",o=/^[/\\]/.test(e),i=/^[A-Za-z]:/.exec(e)?.[0]??"",s=ie(e.slice(i.length),o||i!=="",r),a=o?r:"";return i===""?`${a}${s}`:`${i}${o?a:r}${s}`}l(ne,"normalizeSegments");function ie(e,t,r="/"){const o=[];for(const i of e.split(/[/\\]/))if(!(i===""||i===".")){if(i===".."){o.length>0&&o[o.length-1]!==".."?o.pop():t||o.push(i);continue}o.push(i)}return o.join(r)}l(ie,"collapse");function M(e,t){const r=e.callView?.card==="terminal"?e.callView:null;if(!("kind"in e))return r===null?null:{description:r.description,card:{command:r.title,cwd:oe(r.cwd,t),output:void 0,exitCode:void 0,signal:void 0,running:!0}};const o=e.resultView?.card==="terminal"?e.resultView:null;return o===null?null:{description:r?.description,card:{command:o.title??r?.title??"",cwd:r===null?void 0:oe(r.cwd,t),output:o.output,exitCode:o.exitCode,signal:o.signal,running:!1}}}l(M,"terminalCardModel");function q(e){if(!("kind"in e))return null;const t=e.resultView;return t?.card!=="web"?null:t.kind==="search"?{kind:"search",answer:t.answer,sources:t.sources.map(r=>({url:r.url,title:r.title,snippet:r.snippet,publishedAt:r.publishedAt})),truncated:t.truncated}:t.kind==="fetch"?{kind:"fetch",url:t.url,statusCode:t.statusCode,truncated:t.truncated}:null}l(q,"webCardModel");function ae(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ae(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}l(ae,"r");function J(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ae(e))&&(o&&(o+=" "),o+=t);return o}l(J,"clsx");const Te='.i0cOkG_root{flex-direction:column;display:flex}.i0cOkG_row{position:relative;overflow:hidden}.i0cOkG_root[data-state=running] .i0cOkG_row:after{content:"";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%, transparent 100%);pointer-events:none;width:300px;animation:2.6s ease-out infinite i0cOkG_dsh-tool-row-sweep;position:absolute;top:0;bottom:0;left:0}@keyframes i0cOkG_dsh-tool-row-sweep{0%{left:-300px}90%,to{left:100%}}.i0cOkG_leading{flex-shrink:0}.i0cOkG_root[data-tool^=cordis_] .i0cOkG_leading,.i0cOkG_root[data-tool^=cordis_] .i0cOkG_title{color:var(--dsw-alias-state-business-primary)}.i0cOkG_root[data-tool^=cordis_] .i0cOkG_title{font-weight:500}.i0cOkG_root[data-tool^=cordis_] .i0cOkG_sep{background:var(--dsw-alias-state-business-primary)}.i0cOkG_chevron{color:var(--dsw-alias-label-secondary)}.i0cOkG_title{font-weight:400}.i0cOkG_sep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.i0cOkG_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-size:14px;line-height:24px;overflow:hidden}.i0cOkG_summarySuffix{white-space:nowrap;color:var(--dsw-alias-label-tertiary);flex:none;margin-left:4px;font-size:14px;line-height:24px}.i0cOkG_fileLink{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:inherit;text-align:left;color:var(--dsw-alias-label-secondary);text-decoration:underline;text-decoration-color:var(--dsw-alias-label-quaternary);text-underline-offset:3px;cursor:pointer;background:0 0;border:none;flex:auto;margin:0;padding:0;font-size:14px;line-height:24px;overflow:hidden}.i0cOkG_fileLink:hover{color:var(--dsw-alias-label-primary);text-decoration-color:currentColor}.i0cOkG_errorSummary{color:var(--dsw-alias-state-error-primary)}.i0cOkG_bodyWrap{flex-direction:column;display:flex}.i0cOkG_inspectButton{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.i0cOkG_root:hover .i0cOkG_inspectButton,.i0cOkG_inspectButton:focus-visible{opacity:1}.i0cOkG_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.i0cOkG_bodyScroll{max-height:260px;overflow-y:auto}.i0cOkG_ioCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);border-radius:12px;flex-direction:column;margin:4px 0 4px 4px;display:flex}.i0cOkG_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.i0cOkG_ioSection::-webkit-scrollbar-thumb{background-clip:padding-box;border:2px solid #0000;border-radius:6px}.i0cOkG_ioSection::-webkit-scrollbar-track{margin:6px 0}.i0cOkG_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.i0cOkG_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:1px}.i0cOkG_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.i0cOkG_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.i0cOkG_codeBody,.i0cOkG_terminalBody,.i0cOkG_diffBody,.i0cOkG_readBody,.i0cOkG_searchBody,.i0cOkG_webBody{margin:4px 0 4px 4px}.i0cOkG_searchRecovery{white-space:pre-wrap;overflow-wrap:anywhere;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);margin:4px 0 4px 4px}.i0cOkG_codeBody{--dsl-code-block-content-font:var(--dsw-font-markdown-code-block-small)}.i0cOkG_terminalBody{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:1px solid var(--dsw-alias-border-l1)}.i0cOkG_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}',le="@deepseek-ai/dsh-client-ui-tool/ToolRow.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(le)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=le,e.textContent=Te,document.head.appendChild(e)}var u={ioSection:"i0cOkG_ioSection",readBody:"i0cOkG_readBody",errorSummary:"i0cOkG_errorSummary",title:"i0cOkG_title",root:"i0cOkG_root",ioCard:"i0cOkG_ioCard",ioLabel:"i0cOkG_ioLabel",terminalBody:"i0cOkG_terminalBody",bodyScroll:"i0cOkG_bodyScroll",webBody:"i0cOkG_webBody",ioDivider:"i0cOkG_ioDivider",bodyWrap:"i0cOkG_bodyWrap",summary:"i0cOkG_summary",row:"i0cOkG_row",leading:"i0cOkG_leading","dsh-tool-row-sweep":"i0cOkG_dsh-tool-row-sweep",searchRecovery:"i0cOkG_searchRecovery",searchBody:"i0cOkG_searchBody",visuallyHidden:"i0cOkG_visuallyHidden",ioText:"i0cOkG_ioText",summarySuffix:"i0cOkG_summarySuffix",inspectButton:"i0cOkG_inspectButton",sep:"i0cOkG_sep",fileLink:"i0cOkG_fileLink",diffBody:"i0cOkG_diffBody",chevron:"i0cOkG_chevron",codeBody:"i0cOkG_codeBody"};function We(e,t){switch(e){case"error":return(0,n.jsx)(d.StateDot,{state:"error"});case"stopped":return(0,n.jsx)(d.StateDot,{state:"warning"});default:return t}}l(We,"leadingFor$1");function Ne(e,t){switch(e){case"running":return t("row.running");case"error":return t("row.failed");case"stopped":return t("row.stopped");default:return null}}l(Ne,"stateStatus$1");function k({t:e,variant:t,toolName:r,icon:o,title:i,summary:s,summarySuffix:a,body:c,output:p,errorSummary:v,terminal:f,diff:h,read:G,search:y,web:E,state:b,filePath:H,onOpenFile:N,inspect:I}){const[g,pt]=(0,S.useState)(!1),K=f??null,Q=h??null,U=G??null,B=y??null,Y=E??null,T=p??null,he=c!==null||T!==null||(K??Q??U??B??Y)!==null,mt=g&&he,xe=Ne(b,e),A=b==="error"?v??null:null,Z=A??s,ve=A===null?a??null:null,ft=H!==void 0&&N!==void 0&&A===null,yt=l(()=>{pt(j=>!j)},"toggleExpand"),ht=l(j=>{j.stopPropagation(),H!==void 0&&N?.(H)},"openFile"),xt=l(j=>{(j.key==="Enter"||j.key===" ")&&j.stopPropagation()},"fileLinkKeyDown"),L=t==="code"?null:c;return(0,n.jsxs)("div",{className:u.root,"data-variant":t,"data-tool":r,"data-state":b,children:[xe!==null&&(0,n.jsx)("span",{className:u.visuallyHidden,children:xe}),(0,n.jsx)(d.DisclosureRow,{rowClassName:u.row,leadingClassName:u.leading,titleClassName:u.title,chevronClassName:u.chevron,icon:We(b,o),title:i,open:mt,expandable:he,expandOnRowClick:!0,keepContentWhenOpen:!0,onToggle:yt,collapsedContent:Z!==""&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:u.sep,"aria-hidden":!0}),ft?(0,n.jsx)("button",{type:"button",className:u.fileLink,onClick:ht,onKeyDown:xt,children:Z}):(0,n.jsx)("span",{className:J(u.summary,A!==null&&u.errorSummary),children:Z}),ve!==null&&(0,n.jsx)("span",{className:u.summarySuffix,children:ve})]}),children:(0,n.jsxs)("div",{className:u.bodyWrap,children:[K!==null?(0,n.jsx)(d.TerminalBlock,{...K.card,maxLines:1/0,labels:P(e),className:u.terminalBody}):Q!==null?(0,n.jsx)(d.DiffBlock,{...Q.card,maxLines:8,className:u.diffBody}):U!==null?(0,n.jsx)(d.ReadBlock,{...U,maxLines:8,className:u.readBody}):B!==null?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.SearchBlock,{...B.card,maxLines:8,className:u.searchBody}),B.recovery!==void 0&&(0,n.jsx)("div",{className:u.searchRecovery,children:B.recovery})]}):Y!==null?(0,n.jsx)(d.WebBlock,{...Y,className:u.webBody}):(0,n.jsxs)(n.Fragment,{children:[t==="code"&&c!==null&&(0,n.jsx)("div",{className:u.bodyScroll,children:(0,n.jsx)(d.CodeBlock,{code:c,lang:"typescript",copyLabel:e("copy"),copiedLabel:e("copied"),className:u.codeBody})}),(L!==null||T!==null)&&(0,n.jsxs)("div",{className:u.ioCard,children:[L!==null&&(0,n.jsxs)("div",{className:u.ioSection,children:[(0,n.jsx)("span",{className:u.ioLabel,children:"IN"}),(0,n.jsx)("span",{className:u.ioText,children:L})]}),L!==null&&T!==null&&(0,n.jsx)("span",{className:u.ioDivider,"aria-hidden":!0}),T!==null&&(0,n.jsxs)("div",{className:u.ioSection,children:[(0,n.jsx)("span",{className:u.ioLabel,children:"OUT"}),(0,n.jsx)("span",{className:u.ioText,"data-error":b==="error"||void 0,children:T})]})]})]}),I!==void 0&&(0,n.jsxs)("button",{type:"button",className:u.inspectButton,onClick:I,children:[(0,n.jsx)(d.IconInspectOutline12,{}),"Inspect"]})]})})]})}l(k,"ToolRow");const Ie={search:(0,n.jsx)(d.IconSearchOutline16,{size:14}),read:(0,n.jsx)(d.IconBrowseOutline16,{size:14}),bash:(0,n.jsx)(d.IconApiOutline14,{size:14}),write:(0,n.jsx)(d.IconEditOutline16,{size:14}),edit:(0,n.jsx)(d.IconEditOutline16,{size:14}),code:(0,n.jsx)(d.IconCodeOutline16,{size:14}),others:(0,n.jsx)(d.IconSparkle16,{size:14})};function Ae({toolName:e,block:t,cwd:r,openFile:o,inspect:i,t:s}){const a=_(e,t,r),c=M(t,r),p=z(t,r),v=F(t),f=V(t),h=q(t),G=a.state==="ok"&&c!==null&&re(c)?"error":a.state,y=a.filePath!==void 0;return(0,n.jsx)(k,{t:s,variant:a.variant,toolName:e,icon:Ie[a.variant],title:a.title,summary:c?.description??f?.title??a.summary,body:y?null:a.body,output:a.output,errorSummary:a.errorSummary,terminal:c,diff:v,read:p,search:f,web:h,state:G,filePath:a.filePath,onOpenFile:y?o:void 0,inspect:i})}l(Ae,"GenericToolCard");const Le=".qLcl5a_callRow{border-radius:6px}.qLcl5a_subCalls{border-left:1px solid var(--dsw-alias-border-l2);flex-direction:column;gap:4px;margin:4px 0 2px 22px;padding-left:8px;display:flex}",se="@deepseek-ai/dsh-client-ui-tool/ToolCallTree.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(se)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=se,e.textContent=Le,document.head.appendChild(e)}var ce={subCalls:"qLcl5a_subCalls",callRow:"qLcl5a_callRow"};function Re(e){return"kind"in e?e.call?.name??"":e.name}l(Re,"callName");const $e=(0,S.memo)(l(function({renderSlot:t,callId:r,toolName:o,block:i,openFile:s,selected:a,cwd:c,inspectCall:p,t:v,children:f}){const h=(0,S.useMemo)(()=>({callId:r,toolName:o,block:i,openFile:s,cwd:c,inspect:l(()=>{p(r)},"inspect")}),[r,o,i,s,c,p]);return(0,n.jsxs)("div",{className:ce.callRow,"data-chat-anchor-key":`call:${r}`,"data-chat-call-id":r,"data-selected":a||void 0,children:[t("tool.call.toolview",h,{entryKey:o,fallback:(0,n.jsx)(Ae,{...h,t:v})}),f]})},"ToolCall")),De=(0,S.memo)(l(function e({renderSlot:t,block:r,selectedCallId:o,cwd:i,openFile:s,inspectCall:a,t:c}){return(0,n.jsx)($e,{renderSlot:t,callId:r.callId,toolName:Re(r),block:r,openFile:s,selected:r.callId===o,cwd:i,inspectCall:a,t:c,children:r.subCalls.length>0?(0,n.jsx)("div",{className:ce.subCalls,"data-subcalls":!0,children:r.subCalls.map(p=>(0,n.jsx)(e,{renderSlot:t,block:p,selectedCallId:o,cwd:i,openFile:s,inspectCall:a,t:c},p.callId))}):null})},"ToolCallBranch"));function ze({renderSlot:e,node:t,selectedCallId:r,cwd:o,openFile:i,inspectCall:s,t:a}){const c=t.data.root;return(0,n.jsx)(De,{renderSlot:e,block:c,selectedCallId:r,cwd:o,openFile:i,inspectCall:s,t:a})}l(ze,"ToolCallTree");const Fe=".HlHH-G_description{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);margin:0 0 6px}.HlHH-G_cardBody{margin:0}.HlHH-G_recovery{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);margin:6px 0 0}.HlHH-G_code{background:var(--dsw-alias-markdown-code-block);font-family:var(--ds-font-family-code);color:var(--dsw-alias-label-primary);white-space:pre-wrap;word-break:break-word;border-radius:12px;margin:0;padding:16px;font-size:13px;line-height:22px}.HlHH-G_code[data-error]{color:var(--dsw-alias-state-error-primary)}.HlHH-G_read,.HlHH-G_web{margin:0}.HlHH-G_empty{color:var(--dsw-alias-label-tertiary);padding:8px 0;font-size:13px;line-height:20px}",de="@deepseek-ai/dsh-client-ui-tool/ToolDetails.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(de)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=de,e.textContent=Fe,document.head.appendChild(e)}var w={code:"HlHH-G_code",empty:"HlHH-G_empty",recovery:"HlHH-G_recovery",cardBody:"HlHH-G_cardBody",read:"HlHH-G_read",web:"HlHH-G_web",description:"HlHH-G_description"};function Ve({block:e,cwd:t,t:r}){const o=M(e,t);if(o!==null)return(0,n.jsxs)(n.Fragment,{children:[o.description!==void 0?(0,n.jsx)("div",{className:w.description,children:o.description}):null,(0,n.jsx)(d.TerminalBlock,{...o.card,labels:P(r),className:w.cardBody})]});const i=z(e,t);if(i!==null)return(0,n.jsx)(d.ReadBlock,{...i,className:w.read});const s=F(e);if(s!==null)return(0,n.jsx)(d.DiffBlock,{...s.card,className:w.cardBody});const a=V(e);if(a!==null)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.SearchBlock,{...a.card,className:w.cardBody}),a.recovery!==void 0?(0,n.jsx)("div",{className:w.recovery,children:a.recovery}):null]});const c=q(e);if(c!==null){const p="kind"in e?$(e):"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.WebBlock,{...c,className:w.web}),p!==""?(0,n.jsx)("pre",{className:w.code,children:p}):null]})}return"kind"in e?(0,n.jsx)("pre",{className:w.code,"data-error":e.isError||void 0,children:$(e)}):(0,n.jsx)("div",{className:w.empty,children:r("details.running")})}l(Ve,"ToolDetails");const x="conversation";function Pe(e){return typeof e=="object"&&e!==null}l(Pe,"isAnswer");function Me(e,t){let r;try{r=JSON.parse(e)}catch{return null}if(typeof r!="object"||r===null)return null;const o=r.answers;if(!Array.isArray(o)||!o.every(Pe))return null;const i=o.filter(s=>Array.isArray(s.selected)&&s.selected.length>0||typeof s.custom=="string"&&s.custom!=="").length;return t("ask.answered",{answered:i,total:o.length})}l(Me,"answeredSummary");function qe({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s="kind"in t?t.error?.code:void 0;let a=i.summary,c=i.state;return s==="ASK_CANCELLED"?a=o("ask.cancelled"):s==="ASK_ABORTED"?(a=o("ask.interrupted"),c="stopped"):i.state==="running"?a=o("ask.waiting"):"kind"in t&&i.state==="ok"&&(a=Me(t.content.filter(p=>p.type==="text").map(p=>p.text).join(""),o)??i.summary),(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:(0,n.jsx)(d.IconQuestionOutline14,{}),title:o("ask.rowTitle"),summary:a,body:i.body,output:i.output,state:c,inspect:r})}l(qe,"AskQuestionRow");const Je={name:"ask-question-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"ask_user_question",locale:x},qe))}},Ke='.EuCmHW_card{flex-direction:column;display:flex}.EuCmHW_terminal{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:1px solid var(--dsw-alias-border-l1);margin:4px 0 4px 4px}.EuCmHW_ioCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);border-radius:12px;flex-direction:column;margin:4px 0 4px 4px;display:flex}.EuCmHW_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.EuCmHW_ioSection::-webkit-scrollbar-thumb{background-clip:padding-box;border:2px solid #0000;border-radius:6px}.EuCmHW_ioSection::-webkit-scrollbar-track{margin:6px 0}.EuCmHW_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.EuCmHW_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:1px}.EuCmHW_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.EuCmHW_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.EuCmHW_root[data-expandable]{cursor:pointer}.EuCmHW_root{align-items:center;min-width:0;height:24px;display:flex;position:relative;overflow:hidden}.EuCmHW_root[data-state=running]:after{content:"";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%, transparent 100%);pointer-events:none;width:300px;animation:2.6s ease-out infinite EuCmHW_dsh-bash-row-sweep;position:absolute;top:0;bottom:0;left:0}@keyframes EuCmHW_dsh-bash-row-sweep{0%{left:-300px}90%,to{left:100%}}.EuCmHW_leading{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;margin-right:6px;display:inline-flex;position:relative}.EuCmHW_chevron{color:var(--dsw-alias-label-secondary)}.EuCmHW_iconIdle{opacity:1;transition:opacity .1s;display:inline-flex}.EuCmHW_chevronHover{opacity:0;margin:auto;transition:opacity .1s;position:absolute;inset:0}.EuCmHW_root:hover .EuCmHW_iconIdle{opacity:0}.EuCmHW_root:hover .EuCmHW_chevronHover{opacity:1}.EuCmHW_title{color:var(--dsw-alias-label-secondary);flex:none;font-size:14px;line-height:24px}.EuCmHW_sep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.EuCmHW_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-size:14px;line-height:24px;overflow:hidden}.EuCmHW_errorSummary{color:var(--dsw-alias-state-error-primary)}.EuCmHW_bodyWrap{flex-direction:column;display:flex}.EuCmHW_inspectButton{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.EuCmHW_card:hover .EuCmHW_inspectButton,.EuCmHW_inspectButton:focus-visible{opacity:1}.EuCmHW_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.EuCmHW_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}',ue="@deepseek-ai/dsh-client-ui-tool/bash-sample.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(ue)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=ue,e.textContent=Ke,document.head.appendChild(e)}var m={ioSection:"EuCmHW_ioSection",summary:"EuCmHW_summary",visuallyHidden:"EuCmHW_visuallyHidden",ioDivider:"EuCmHW_ioDivider",leading:"EuCmHW_leading",ioLabel:"EuCmHW_ioLabel",ioText:"EuCmHW_ioText",inspectButton:"EuCmHW_inspectButton",terminal:"EuCmHW_terminal",ioCard:"EuCmHW_ioCard",sep:"EuCmHW_sep",errorSummary:"EuCmHW_errorSummary",root:"EuCmHW_root","dsh-bash-row-sweep":"EuCmHW_dsh-bash-row-sweep",chevron:"EuCmHW_chevron",chevronHover:"EuCmHW_chevronHover",title:"EuCmHW_title",card:"EuCmHW_card",bodyWrap:"EuCmHW_bodyWrap",iconIdle:"EuCmHW_iconIdle"};function pe(e){switch(e){case"error":return(0,n.jsx)(d.StateDot,{state:"error"});case"stopped":return(0,n.jsx)(d.StateDot,{state:"warning"});default:return(0,n.jsx)(d.IconApiOutline14,{size:14})}}l(pe,"leadingFor");function Qe(e,t){switch(e){case"running":return t("bash.running");case"error":return t("bash.failed");case"stopped":return t("bash.stopped");default:return null}}l(Qe,"stateStatus");function Ue({toolName:e,block:t,sessionId:r,useSessions:o,inspect:i,t:s}){const a=_(e,t),c=M(t,o(g=>g.byId[r]?.cwd)),p=a.state==="ok"&&c!==null&&re(c)?"error":a.state,v=Qe(p,s),[f,h]=(0,S.useState)(!1),G=c===null&&a.state==="error"&&(a.body!==null||a.output!==null),y=c!==null||G,E=f&&y,b=a.state==="error"?a.errorSummary:null,H=l(()=>{h(g=>!g)},"toggleExpand"),N=l(g=>{!y||g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),H())},"toggleFromKeyboard"),I=E?(0,n.jsx)(d.IconChevronDownOutline14,{className:m.chevron}):y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:m.iconIdle,children:pe(p)}),(0,n.jsx)(d.IconChevronDownOutline14,{className:J(m.chevron,m.chevronHover)})]}):pe(p);return(0,n.jsxs)("div",{className:m.card,children:[(0,n.jsxs)("div",{className:m.root,"data-sample":"bash","data-variant":"bash","data-state":p,"data-expandable":y||void 0,role:y?"button":void 0,tabIndex:y?0:void 0,"aria-expanded":y?E:void 0,onClick:y?H:void 0,onKeyDown:y?N:void 0,children:[(0,n.jsx)("span",{className:m.leading,children:I}),v!==null&&(0,n.jsx)("span",{className:m.visuallyHidden,children:v}),(0,n.jsx)("span",{className:m.title,children:a.title}),(0,n.jsx)("span",{className:m.sep,"aria-hidden":!0}),(0,n.jsx)("span",{className:J(m.summary,b!==null&&m.errorSummary),children:b??c?.description??a.summary})]}),E&&(0,n.jsxs)("div",{className:m.bodyWrap,children:[c!==null?(0,n.jsx)(d.TerminalBlock,{...c.card,maxLines:1/0,labels:P(s),className:m.terminal}):(0,n.jsxs)("div",{className:m.ioCard,children:[a.body!==null&&(0,n.jsxs)("div",{className:m.ioSection,children:[(0,n.jsx)("span",{className:m.ioLabel,children:"IN"}),(0,n.jsx)("span",{className:m.ioText,children:a.body})]}),a.body!==null&&a.output!==null&&(0,n.jsx)("span",{className:m.ioDivider,"aria-hidden":!0}),a.output!==null&&(0,n.jsxs)("div",{className:m.ioSection,children:[(0,n.jsx)("span",{className:m.ioLabel,children:"OUT"}),(0,n.jsx)("span",{className:m.ioText,"data-error":!0,children:a.output})]})]}),i!==void 0&&(0,n.jsxs)("button",{type:"button",className:m.inspectButton,onClick:i,children:[(0,n.jsx)(d.IconInspectOutline12,{}),"Inspect"]})]})]})}l(Ue,"BashRow");const Ye={name:"bash-toolview-sample",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"bash",locale:x},Ue))}};function me({toolName:e,block:t,cwd:r,openFile:o,inspect:i,t:s}){const a=_(e,t,r),c=F(t);return(0,n.jsx)(k,{t:s,variant:a.variant,toolName:e,icon:(0,n.jsx)(d.IconEditOutline16,{size:14}),title:a.title,summary:a.summary,body:null,output:a.output,errorSummary:a.errorSummary,diff:c,state:a.state,filePath:a.filePath,onOpenFile:o,inspect:i})}l(me,"FileMutationRow");const Ze={name:"file-mutation-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",function*(){yield e.slots.register({name:"tool.call.toolview",key:"edit",locale:x},me),yield e.slots.register({name:"tool.call.toolview",key:"write",locale:x},me)})}};function Xe({toolName:e,block:t,cwd:r,openFile:o,inspect:i,t:s}){const a=_(e,t,r),c=z(t,r);return(0,n.jsx)(k,{t:s,variant:a.variant,toolName:e,icon:(0,n.jsx)(d.IconBrowseOutline16,{size:14}),title:a.title,summary:a.summary,body:null,output:a.output,errorSummary:a.errorSummary,read:c,state:a.state,filePath:a.filePath,onOpenFile:o,inspect:i})}l(Xe,"ReadRow");const et={name:"read-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"read",locale:x},Xe))}},tt={grep:"Grep",glob:"Glob"};function fe({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s=V(t);return(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:(0,n.jsx)(d.IconSearchOutline16,{size:14}),title:tt[e]??i.title,summary:s?.title??i.summary,body:null,output:i.output,errorSummary:i.errorSummary,search:s,state:i.state,inspect:r})}l(fe,"SearchRow");const rt={name:"search-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",function*(){yield e.slots.register({name:"tool.call.toolview",key:"grep",locale:x},fe),yield e.slots.register({name:"tool.call.toolview",key:"glob",locale:x},fe)})}};function ot(e){const t=e.filter(i=>i.status==="in_progress"),r=t[0]?.content,o=typeof r=="string"&&r.trim()!=="";return{done:e.filter(i=>i.status==="completed").length,total:e.length,activeContent:o?r:null,activeExtra:o?t.length-1:0}}l(ot,"planSummary");function nt(e){return typeof e=="object"&&e!==null}l(nt,"isItem");function it(e,t){let r;try{r=JSON.parse(e)}catch{return null}if(typeof r!="object"||r===null)return null;const o=r.todos;if(!Array.isArray(o)||!o.every(nt))return null;const{done:i,total:s,activeContent:a,activeExtra:c}=ot(o),p=t("todo.completed",{done:i,total:s});return{text:a===null?p:`${p} · ${a}`,extra:c}}l(it,"summarize");function at({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s=it(("kind"in t?t.call?.argsRaw:t.argsRaw)??"",o)??{text:i.summary,extra:0};return(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:(0,n.jsx)(d.IconChecklistOutline14,{}),title:o("todo.rowTitle"),summary:s.text,summarySuffix:s.extra>0?`+${s.extra}`:null,body:i.body,output:i.output,errorSummary:i.errorSummary,state:i.state,inspect:r})}l(at,"TodoRow");const lt={name:"todo-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"todo_write",locale:x},at))}},st={web_search:"Search",web_fetch:"Fetch"};function ye({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s=q(t),a=e==="web_fetch"?(0,n.jsx)(d.IconBrowseOutline16,{size:14}):(0,n.jsx)(d.IconGlobeOutline14,{size:14});return(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:a,title:st[e]??i.title,summary:i.summary,body:null,output:i.output,errorSummary:i.errorSummary,web:s,state:i.state,inspect:r})}l(ye,"WebRow");const ct={name:"web-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",function*(){yield e.slots.register({name:"tool.call.toolview",key:"web_search",locale:x},ye),yield e.slots.register({name:"tool.call.toolview",key:"web_fetch",locale:x},ye)})}},dt=["slots"];function ut(e){e.slots.inject("conversation.chat.node",()=>e.slots.register({name:"conversation.chat.node",key:"tool-call",locale:x,children:{"tool.call.toolview":{kind:"keyed",scope:"session"}}},ze)),e.slots.inject("conversation.details.tool",()=>e.slots.register({name:"conversation.details.tool",locale:x},Ve)),e.plugin(Ye),e.plugin(et),e.plugin(Ze),e.plugin(rt),e.plugin(ct),e.plugin(lt),e.plugin(Je)}return l(ut,"apply"),R.apply=ut,R.inject=dt,W.exports},"factory")});
4
+ `);return t===""?void 0:t}l(Be,"flattenContent");function V(e){if(!("kind"in e))return null;const t=e.resultView?.card==="search"?e.resultView:null;if(t===null)return null;const r={truncated:t.truncated,total:t.total},o=t.truncated?Be(e.content):void 0;return t.shape==="matches"?Ee(t.files)?{title:t.title,recovery:o,card:{kind:"matches",files:t.files,...r}}:null:t.shape!=="paths"||!Array.isArray(t.paths)||!t.paths.every(i=>typeof i=="string")?null:{title:t.title,recovery:o,card:{kind:"paths",paths:t.paths,...r}}}l(V,"searchCardModel");function P(e){return{signal:l(t=>e("terminal.signal",{signal:t}),"signal"),exitCode:l(t=>e("terminal.exitCode",{code:t}),"exitCode"),running:e("terminal.running"),failed:e("terminal.failed"),done:e("terminal.done"),copy:e("copy"),copied:e("copied"),noOutput:e("terminal.noOutput"),collapseAria:e("terminal.collapseAria"),collapse:e("collapse"),expandAria:l(t=>e("terminal.expandAria",{n:t}),"expandAria"),expand:l(t=>e("terminal.expandRest",{n:t}),"expand")}}l(P,"terminalBlockLabels");function re(e){const{exitCode:t,signal:r,running:o}=e.card;return o!==!0&&(t!==void 0&&t!==0||r!==void 0)}l(re,"terminalFailed");function oe(e,t){return e===void 0||e===""?t:ne(t===void 0||t===""?e:(0,we.resolveWorkspacePath)(t,e))}l(oe,"resolveTerminalCwd");function ne(e){if(!/(?:^|[/\\])\.\.?(?:[/\\]|$)/.test(e))return e;const t=/^[/\\]{2}([^/\\]+)[/\\]+([^/\\]+)/.exec(e);if(t!==null){const[c,p,v]=t,f=`\\\\${String(p)}\\${String(v)}`,h=ie(e.slice(c.length),!0);return h===""?f:`${f}\\${h}`}const r=e.includes("\\")&&!e.includes("/")?"\\":"/",o=/^[/\\]/.test(e),i=/^[A-Za-z]:/.exec(e)?.[0]??"",s=ie(e.slice(i.length),o||i!=="",r),a=o?r:"";return i===""?`${a}${s}`:`${i}${o?a:r}${s}`}l(ne,"normalizeSegments");function ie(e,t,r="/"){const o=[];for(const i of e.split(/[/\\]/))if(!(i===""||i===".")){if(i===".."){o.length>0&&o[o.length-1]!==".."?o.pop():t||o.push(i);continue}o.push(i)}return o.join(r)}l(ie,"collapse");function M(e,t){const r=e.callView?.card==="terminal"?e.callView:null;if(!("kind"in e))return r===null?null:{description:r.description,card:{command:r.title,cwd:oe(r.cwd,t),output:void 0,exitCode:void 0,signal:void 0,running:!0}};const o=e.resultView?.card==="terminal"?e.resultView:null;return o===null?null:{description:r?.description,card:{command:o.title??r?.title??"",cwd:r===null?void 0:oe(r.cwd,t),output:o.output,exitCode:o.exitCode,signal:o.signal,running:!1}}}l(M,"terminalCardModel");function q(e){if(!("kind"in e))return null;const t=e.resultView;return t?.card!=="web"?null:t.kind==="search"?{kind:"search",answer:t.answer,sources:t.sources.map(r=>({url:r.url,title:r.title,snippet:r.snippet,publishedAt:r.publishedAt})),truncated:t.truncated}:t.kind==="fetch"?{kind:"fetch",url:t.url,statusCode:t.statusCode,truncated:t.truncated}:null}l(q,"webCardModel");function ae(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ae(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}l(ae,"r");function J(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ae(e))&&(o&&(o+=" "),o+=t);return o}l(J,"clsx");const Te='.i0cOkG_root{flex-direction:column;display:flex}.i0cOkG_row{position:relative;overflow:hidden}.i0cOkG_root[data-state=running] .i0cOkG_row:after{content:"";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%, transparent 100%);pointer-events:none;width:300px;animation:2.6s ease-out infinite i0cOkG_dsh-tool-row-sweep;position:absolute;top:0;bottom:0;left:0}@keyframes i0cOkG_dsh-tool-row-sweep{0%{left:-300px}90%,to{left:100%}}.i0cOkG_leading{flex-shrink:0}.i0cOkG_root[data-tool^=cordis_] .i0cOkG_leading,.i0cOkG_root[data-tool^=cordis_] .i0cOkG_title{color:var(--dsw-alias-state-business-primary)}.i0cOkG_root[data-tool^=cordis_] .i0cOkG_title{font-weight:500}.i0cOkG_root[data-tool^=cordis_] .i0cOkG_sep{background:var(--dsw-alias-state-business-primary)}.i0cOkG_chevron{color:var(--dsw-alias-label-secondary)}.i0cOkG_title{font-weight:400}.i0cOkG_sep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.i0cOkG_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-size:14px;line-height:24px;overflow:hidden}.i0cOkG_summarySuffix{white-space:nowrap;color:var(--dsw-alias-label-tertiary);flex:none;margin-left:4px;font-size:14px;line-height:24px}.i0cOkG_fileLink{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:inherit;text-align:left;color:var(--dsw-alias-label-secondary);text-decoration:underline;text-decoration-color:var(--dsw-alias-label-quaternary);text-underline-offset:3px;cursor:pointer;background:0 0;border:none;flex:auto;margin:0;padding:0;font-size:14px;line-height:24px;overflow:hidden}.i0cOkG_fileLink:hover{color:var(--dsw-alias-label-primary);text-decoration-color:currentColor}.i0cOkG_errorSummary{color:var(--dsw-alias-state-error-primary)}.i0cOkG_bodyWrap{flex-direction:column;display:flex}.i0cOkG_inspectButton{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.i0cOkG_root:hover .i0cOkG_inspectButton,.i0cOkG_inspectButton:focus-visible{opacity:1}.i0cOkG_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.i0cOkG_bodyScroll{max-height:260px;overflow-y:auto}.i0cOkG_ioCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);border-radius:12px;flex-direction:column;margin:4px 0 4px 4px;display:flex}.i0cOkG_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.i0cOkG_ioSection::-webkit-scrollbar-thumb{background-clip:padding-box;border:2px solid #0000;border-radius:6px}.i0cOkG_ioSection::-webkit-scrollbar-track{margin:6px 0}.i0cOkG_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.i0cOkG_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:1px}.i0cOkG_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.i0cOkG_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.i0cOkG_codeBody,.i0cOkG_terminalBody,.i0cOkG_diffBody,.i0cOkG_readBody,.i0cOkG_searchBody,.i0cOkG_webBody{margin:4px 0 4px 4px}.i0cOkG_searchRecovery{white-space:pre-wrap;overflow-wrap:anywhere;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);margin:4px 0 4px 4px}.i0cOkG_codeBody{--dsl-code-block-content-font:var(--dsw-font-markdown-code-block-small)}.i0cOkG_terminalBody{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:1px solid var(--dsw-alias-border-l1)}.i0cOkG_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}',le="@deepseek-ai/dsh-client-ui-tool/ToolRow.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(le)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=le,e.textContent=Te,document.head.appendChild(e)}var u={chevron:"i0cOkG_chevron",row:"i0cOkG_row",fileLink:"i0cOkG_fileLink",ioCard:"i0cOkG_ioCard",readBody:"i0cOkG_readBody",summary:"i0cOkG_summary",ioDivider:"i0cOkG_ioDivider",searchBody:"i0cOkG_searchBody","dsh-tool-row-sweep":"i0cOkG_dsh-tool-row-sweep",title:"i0cOkG_title",webBody:"i0cOkG_webBody",bodyWrap:"i0cOkG_bodyWrap",sep:"i0cOkG_sep",root:"i0cOkG_root",diffBody:"i0cOkG_diffBody",visuallyHidden:"i0cOkG_visuallyHidden",ioLabel:"i0cOkG_ioLabel",ioText:"i0cOkG_ioText",searchRecovery:"i0cOkG_searchRecovery",bodyScroll:"i0cOkG_bodyScroll",inspectButton:"i0cOkG_inspectButton",ioSection:"i0cOkG_ioSection",terminalBody:"i0cOkG_terminalBody",summarySuffix:"i0cOkG_summarySuffix",errorSummary:"i0cOkG_errorSummary",leading:"i0cOkG_leading",codeBody:"i0cOkG_codeBody"};function We(e,t){switch(e){case"error":return(0,n.jsx)(d.StateDot,{state:"error"});case"stopped":return(0,n.jsx)(d.StateDot,{state:"warning"});default:return t}}l(We,"leadingFor$1");function Ne(e,t){switch(e){case"running":return t("row.running");case"error":return t("row.failed");case"stopped":return t("row.stopped");default:return null}}l(Ne,"stateStatus$1");function k({t:e,variant:t,toolName:r,icon:o,title:i,summary:s,summarySuffix:a,body:c,output:p,errorSummary:v,terminal:f,diff:h,read:G,search:y,web:E,state:b,filePath:H,onOpenFile:N,inspect:I}){const[g,pt]=(0,S.useState)(!1),K=f??null,Q=h??null,U=G??null,B=y??null,Y=E??null,T=p??null,he=c!==null||T!==null||(K??Q??U??B??Y)!==null,mt=g&&he,xe=Ne(b,e),A=b==="error"?v??null:null,Z=A??s,ve=A===null?a??null:null,ft=H!==void 0&&N!==void 0&&A===null,yt=l(()=>{pt(j=>!j)},"toggleExpand"),ht=l(j=>{j.stopPropagation(),H!==void 0&&N?.(H)},"openFile"),xt=l(j=>{(j.key==="Enter"||j.key===" ")&&j.stopPropagation()},"fileLinkKeyDown"),L=t==="code"?null:c;return(0,n.jsxs)("div",{className:u.root,"data-variant":t,"data-tool":r,"data-state":b,children:[xe!==null&&(0,n.jsx)("span",{className:u.visuallyHidden,children:xe}),(0,n.jsx)(d.DisclosureRow,{rowClassName:u.row,leadingClassName:u.leading,titleClassName:u.title,chevronClassName:u.chevron,icon:We(b,o),title:i,open:mt,expandable:he,expandOnRowClick:!0,keepContentWhenOpen:!0,onToggle:yt,collapsedContent:Z!==""&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:u.sep,"aria-hidden":!0}),ft?(0,n.jsx)("button",{type:"button",className:u.fileLink,onClick:ht,onKeyDown:xt,children:Z}):(0,n.jsx)("span",{className:J(u.summary,A!==null&&u.errorSummary),children:Z}),ve!==null&&(0,n.jsx)("span",{className:u.summarySuffix,children:ve})]}),children:(0,n.jsxs)("div",{className:u.bodyWrap,children:[K!==null?(0,n.jsx)(d.TerminalBlock,{...K.card,maxLines:1/0,labels:P(e),className:u.terminalBody}):Q!==null?(0,n.jsx)(d.DiffBlock,{...Q.card,maxLines:8,className:u.diffBody}):U!==null?(0,n.jsx)(d.ReadBlock,{...U,maxLines:8,className:u.readBody}):B!==null?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.SearchBlock,{...B.card,maxLines:8,className:u.searchBody}),B.recovery!==void 0&&(0,n.jsx)("div",{className:u.searchRecovery,children:B.recovery})]}):Y!==null?(0,n.jsx)(d.WebBlock,{...Y,className:u.webBody}):(0,n.jsxs)(n.Fragment,{children:[t==="code"&&c!==null&&(0,n.jsx)("div",{className:u.bodyScroll,children:(0,n.jsx)(d.CodeBlock,{code:c,lang:"typescript",copyLabel:e("copy"),copiedLabel:e("copied"),className:u.codeBody})}),(L!==null||T!==null)&&(0,n.jsxs)("div",{className:u.ioCard,children:[L!==null&&(0,n.jsxs)("div",{className:u.ioSection,children:[(0,n.jsx)("span",{className:u.ioLabel,children:"IN"}),(0,n.jsx)("span",{className:u.ioText,children:L})]}),L!==null&&T!==null&&(0,n.jsx)("span",{className:u.ioDivider,"aria-hidden":!0}),T!==null&&(0,n.jsxs)("div",{className:u.ioSection,children:[(0,n.jsx)("span",{className:u.ioLabel,children:"OUT"}),(0,n.jsx)("span",{className:u.ioText,"data-error":b==="error"||void 0,children:T})]})]})]}),I!==void 0&&(0,n.jsxs)("button",{type:"button",className:u.inspectButton,onClick:I,children:[(0,n.jsx)(d.IconInspectOutline12,{}),"Inspect"]})]})})]})}l(k,"ToolRow");const Ie={search:(0,n.jsx)(d.IconSearchOutline16,{size:14}),read:(0,n.jsx)(d.IconBrowseOutline16,{size:14}),bash:(0,n.jsx)(d.IconApiOutline14,{size:14}),write:(0,n.jsx)(d.IconEditOutline16,{size:14}),edit:(0,n.jsx)(d.IconEditOutline16,{size:14}),code:(0,n.jsx)(d.IconCodeOutline16,{size:14}),others:(0,n.jsx)(d.IconSparkle16,{size:14})};function Ae({toolName:e,block:t,cwd:r,openFile:o,inspect:i,t:s}){const a=_(e,t,r),c=M(t,r),p=z(t,r),v=F(t),f=V(t),h=q(t),G=a.state==="ok"&&c!==null&&re(c)?"error":a.state,y=a.filePath!==void 0;return(0,n.jsx)(k,{t:s,variant:a.variant,toolName:e,icon:Ie[a.variant],title:a.title,summary:c?.description??f?.title??a.summary,body:y?null:a.body,output:a.output,errorSummary:a.errorSummary,terminal:c,diff:v,read:p,search:f,web:h,state:G,filePath:a.filePath,onOpenFile:y?o:void 0,inspect:i})}l(Ae,"GenericToolCard");const Le=".qLcl5a_callRow{border-radius:6px}.qLcl5a_subCalls{border-left:1px solid var(--dsw-alias-border-l2);flex-direction:column;gap:4px;margin:4px 0 2px 22px;padding-left:8px;display:flex}",se="@deepseek-ai/dsh-client-ui-tool/ToolCallTree.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(se)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=se,e.textContent=Le,document.head.appendChild(e)}var ce={subCalls:"qLcl5a_subCalls",callRow:"qLcl5a_callRow"};function Re(e){return"kind"in e?e.call?.name??"":e.name}l(Re,"callName");const $e=(0,S.memo)(l(function({renderSlot:t,callId:r,toolName:o,block:i,openFile:s,selected:a,cwd:c,inspectCall:p,t:v,children:f}){const h=(0,S.useMemo)(()=>({callId:r,toolName:o,block:i,openFile:s,cwd:c,inspect:l(()=>{p(r)},"inspect")}),[r,o,i,s,c,p]);return(0,n.jsxs)("div",{className:ce.callRow,"data-chat-anchor-key":`call:${r}`,"data-chat-call-id":r,"data-selected":a||void 0,children:[t("tool.call.toolview",h,{entryKey:o,fallback:(0,n.jsx)(Ae,{...h,t:v})}),f]})},"ToolCall")),De=(0,S.memo)(l(function e({renderSlot:t,block:r,selectedCallId:o,cwd:i,openFile:s,inspectCall:a,t:c}){return(0,n.jsx)($e,{renderSlot:t,callId:r.callId,toolName:Re(r),block:r,openFile:s,selected:r.callId===o,cwd:i,inspectCall:a,t:c,children:r.subCalls.length>0?(0,n.jsx)("div",{className:ce.subCalls,"data-subcalls":!0,children:r.subCalls.map(p=>(0,n.jsx)(e,{renderSlot:t,block:p,selectedCallId:o,cwd:i,openFile:s,inspectCall:a,t:c},p.callId))}):null})},"ToolCallBranch"));function ze({renderSlot:e,node:t,selectedCallId:r,cwd:o,openFile:i,inspectCall:s,t:a}){const c=t.data.root;return(0,n.jsx)(De,{renderSlot:e,block:c,selectedCallId:r,cwd:o,openFile:i,inspectCall:s,t:a})}l(ze,"ToolCallTree");const Fe=".HlHH-G_description{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);margin:0 0 6px}.HlHH-G_cardBody{margin:0}.HlHH-G_recovery{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);margin:6px 0 0}.HlHH-G_code{background:var(--dsw-alias-markdown-code-block);font-family:var(--ds-font-family-code);color:var(--dsw-alias-label-primary);white-space:pre-wrap;word-break:break-word;border-radius:12px;margin:0;padding:16px;font-size:13px;line-height:22px}.HlHH-G_code[data-error]{color:var(--dsw-alias-state-error-primary)}.HlHH-G_read,.HlHH-G_web{margin:0}.HlHH-G_empty{color:var(--dsw-alias-label-tertiary);padding:8px 0;font-size:13px;line-height:20px}",de="@deepseek-ai/dsh-client-ui-tool/ToolDetails.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(de)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=de,e.textContent=Fe,document.head.appendChild(e)}var w={web:"HlHH-G_web",cardBody:"HlHH-G_cardBody",description:"HlHH-G_description",recovery:"HlHH-G_recovery",code:"HlHH-G_code",read:"HlHH-G_read",empty:"HlHH-G_empty"};function Ve({block:e,cwd:t,t:r}){const o=M(e,t);if(o!==null)return(0,n.jsxs)(n.Fragment,{children:[o.description!==void 0?(0,n.jsx)("div",{className:w.description,children:o.description}):null,(0,n.jsx)(d.TerminalBlock,{...o.card,labels:P(r),className:w.cardBody})]});const i=z(e,t);if(i!==null)return(0,n.jsx)(d.ReadBlock,{...i,className:w.read});const s=F(e);if(s!==null)return(0,n.jsx)(d.DiffBlock,{...s.card,className:w.cardBody});const a=V(e);if(a!==null)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.SearchBlock,{...a.card,className:w.cardBody}),a.recovery!==void 0?(0,n.jsx)("div",{className:w.recovery,children:a.recovery}):null]});const c=q(e);if(c!==null){const p="kind"in e?$(e):"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.WebBlock,{...c,className:w.web}),p!==""?(0,n.jsx)("pre",{className:w.code,children:p}):null]})}return"kind"in e?(0,n.jsx)("pre",{className:w.code,"data-error":e.isError||void 0,children:$(e)}):(0,n.jsx)("div",{className:w.empty,children:r("details.running")})}l(Ve,"ToolDetails");const x="conversation";function Pe(e){return typeof e=="object"&&e!==null}l(Pe,"isAnswer");function Me(e,t){let r;try{r=JSON.parse(e)}catch{return null}if(typeof r!="object"||r===null)return null;const o=r.answers;if(!Array.isArray(o)||!o.every(Pe))return null;const i=o.filter(s=>Array.isArray(s.selected)&&s.selected.length>0||typeof s.custom=="string"&&s.custom!=="").length;return t("ask.answered",{answered:i,total:o.length})}l(Me,"answeredSummary");function qe({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s="kind"in t?t.error?.code:void 0;let a=i.summary,c=i.state;return s==="ASK_CANCELLED"?a=o("ask.cancelled"):s==="ASK_ABORTED"?(a=o("ask.interrupted"),c="stopped"):i.state==="running"?a=o("ask.waiting"):"kind"in t&&i.state==="ok"&&(a=Me(t.content.filter(p=>p.type==="text").map(p=>p.text).join(""),o)??i.summary),(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:(0,n.jsx)(d.IconQuestionOutline14,{}),title:o("ask.rowTitle"),summary:a,body:i.body,output:i.output,state:c,inspect:r})}l(qe,"AskQuestionRow");const Je={name:"ask-question-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"ask_user_question",locale:x},qe))}},Ke='.EuCmHW_card{flex-direction:column;display:flex}.EuCmHW_terminal{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:1px solid var(--dsw-alias-border-l1);margin:4px 0 4px 4px}.EuCmHW_ioCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);border-radius:12px;flex-direction:column;margin:4px 0 4px 4px;display:flex}.EuCmHW_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.EuCmHW_ioSection::-webkit-scrollbar-thumb{background-clip:padding-box;border:2px solid #0000;border-radius:6px}.EuCmHW_ioSection::-webkit-scrollbar-track{margin:6px 0}.EuCmHW_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.EuCmHW_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:1px}.EuCmHW_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.EuCmHW_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.EuCmHW_root[data-expandable]{cursor:pointer}.EuCmHW_root{align-items:center;min-width:0;height:24px;display:flex;position:relative;overflow:hidden}.EuCmHW_root[data-state=running]:after{content:"";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%, transparent 100%);pointer-events:none;width:300px;animation:2.6s ease-out infinite EuCmHW_dsh-bash-row-sweep;position:absolute;top:0;bottom:0;left:0}@keyframes EuCmHW_dsh-bash-row-sweep{0%{left:-300px}90%,to{left:100%}}.EuCmHW_leading{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;margin-right:6px;display:inline-flex;position:relative}.EuCmHW_chevron{color:var(--dsw-alias-label-secondary)}.EuCmHW_iconIdle{opacity:1;transition:opacity .1s;display:inline-flex}.EuCmHW_chevronHover{opacity:0;margin:auto;transition:opacity .1s;position:absolute;inset:0}.EuCmHW_root:hover .EuCmHW_iconIdle{opacity:0}.EuCmHW_root:hover .EuCmHW_chevronHover{opacity:1}.EuCmHW_title{color:var(--dsw-alias-label-secondary);flex:none;font-size:14px;line-height:24px}.EuCmHW_sep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.EuCmHW_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-size:14px;line-height:24px;overflow:hidden}.EuCmHW_errorSummary{color:var(--dsw-alias-state-error-primary)}.EuCmHW_bodyWrap{flex-direction:column;display:flex}.EuCmHW_inspectButton{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.EuCmHW_card:hover .EuCmHW_inspectButton,.EuCmHW_inspectButton:focus-visible{opacity:1}.EuCmHW_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.EuCmHW_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}',ue="@deepseek-ai/dsh-client-ui-tool/bash-sample.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(ue)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-ui-tool",e.dataset.pluginCss=ue,e.textContent=Ke,document.head.appendChild(e)}var m={bodyWrap:"EuCmHW_bodyWrap",ioLabel:"EuCmHW_ioLabel",summary:"EuCmHW_summary",errorSummary:"EuCmHW_errorSummary",chevronHover:"EuCmHW_chevronHover",root:"EuCmHW_root",sep:"EuCmHW_sep",ioCard:"EuCmHW_ioCard",card:"EuCmHW_card",ioSection:"EuCmHW_ioSection",inspectButton:"EuCmHW_inspectButton",terminal:"EuCmHW_terminal",chevron:"EuCmHW_chevron",title:"EuCmHW_title",ioText:"EuCmHW_ioText",ioDivider:"EuCmHW_ioDivider",leading:"EuCmHW_leading",visuallyHidden:"EuCmHW_visuallyHidden","dsh-bash-row-sweep":"EuCmHW_dsh-bash-row-sweep",iconIdle:"EuCmHW_iconIdle"};function pe(e){switch(e){case"error":return(0,n.jsx)(d.StateDot,{state:"error"});case"stopped":return(0,n.jsx)(d.StateDot,{state:"warning"});default:return(0,n.jsx)(d.IconApiOutline14,{size:14})}}l(pe,"leadingFor");function Qe(e,t){switch(e){case"running":return t("bash.running");case"error":return t("bash.failed");case"stopped":return t("bash.stopped");default:return null}}l(Qe,"stateStatus");function Ue({toolName:e,block:t,sessionId:r,useSessions:o,inspect:i,t:s}){const a=_(e,t),c=M(t,o(g=>g.byId[r]?.cwd)),p=a.state==="ok"&&c!==null&&re(c)?"error":a.state,v=Qe(p,s),[f,h]=(0,S.useState)(!1),G=c===null&&a.state==="error"&&(a.body!==null||a.output!==null),y=c!==null||G,E=f&&y,b=a.state==="error"?a.errorSummary:null,H=l(()=>{h(g=>!g)},"toggleExpand"),N=l(g=>{!y||g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),H())},"toggleFromKeyboard"),I=E?(0,n.jsx)(d.IconChevronDownOutline14,{className:m.chevron}):y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:m.iconIdle,children:pe(p)}),(0,n.jsx)(d.IconChevronDownOutline14,{className:J(m.chevron,m.chevronHover)})]}):pe(p);return(0,n.jsxs)("div",{className:m.card,children:[(0,n.jsxs)("div",{className:m.root,"data-sample":"bash","data-variant":"bash","data-state":p,"data-expandable":y||void 0,role:y?"button":void 0,tabIndex:y?0:void 0,"aria-expanded":y?E:void 0,onClick:y?H:void 0,onKeyDown:y?N:void 0,children:[(0,n.jsx)("span",{className:m.leading,children:I}),v!==null&&(0,n.jsx)("span",{className:m.visuallyHidden,children:v}),(0,n.jsx)("span",{className:m.title,children:a.title}),(0,n.jsx)("span",{className:m.sep,"aria-hidden":!0}),(0,n.jsx)("span",{className:J(m.summary,b!==null&&m.errorSummary),children:b??c?.description??a.summary})]}),E&&(0,n.jsxs)("div",{className:m.bodyWrap,children:[c!==null?(0,n.jsx)(d.TerminalBlock,{...c.card,maxLines:1/0,labels:P(s),className:m.terminal}):(0,n.jsxs)("div",{className:m.ioCard,children:[a.body!==null&&(0,n.jsxs)("div",{className:m.ioSection,children:[(0,n.jsx)("span",{className:m.ioLabel,children:"IN"}),(0,n.jsx)("span",{className:m.ioText,children:a.body})]}),a.body!==null&&a.output!==null&&(0,n.jsx)("span",{className:m.ioDivider,"aria-hidden":!0}),a.output!==null&&(0,n.jsxs)("div",{className:m.ioSection,children:[(0,n.jsx)("span",{className:m.ioLabel,children:"OUT"}),(0,n.jsx)("span",{className:m.ioText,"data-error":!0,children:a.output})]})]}),i!==void 0&&(0,n.jsxs)("button",{type:"button",className:m.inspectButton,onClick:i,children:[(0,n.jsx)(d.IconInspectOutline12,{}),"Inspect"]})]})]})}l(Ue,"BashRow");const Ye={name:"bash-toolview-sample",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"bash",locale:x},Ue))}};function me({toolName:e,block:t,cwd:r,openFile:o,inspect:i,t:s}){const a=_(e,t,r),c=F(t);return(0,n.jsx)(k,{t:s,variant:a.variant,toolName:e,icon:(0,n.jsx)(d.IconEditOutline16,{size:14}),title:a.title,summary:a.summary,body:null,output:a.output,errorSummary:a.errorSummary,diff:c,state:a.state,filePath:a.filePath,onOpenFile:o,inspect:i})}l(me,"FileMutationRow");const Ze={name:"file-mutation-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",function*(){yield e.slots.register({name:"tool.call.toolview",key:"edit",locale:x},me),yield e.slots.register({name:"tool.call.toolview",key:"write",locale:x},me)})}};function Xe({toolName:e,block:t,cwd:r,openFile:o,inspect:i,t:s}){const a=_(e,t,r),c=z(t,r);return(0,n.jsx)(k,{t:s,variant:a.variant,toolName:e,icon:(0,n.jsx)(d.IconBrowseOutline16,{size:14}),title:a.title,summary:a.summary,body:null,output:a.output,errorSummary:a.errorSummary,read:c,state:a.state,filePath:a.filePath,onOpenFile:o,inspect:i})}l(Xe,"ReadRow");const et={name:"read-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"read",locale:x},Xe))}},tt={grep:"Grep",glob:"Glob"};function fe({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s=V(t);return(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:(0,n.jsx)(d.IconSearchOutline16,{size:14}),title:tt[e]??i.title,summary:s?.title??i.summary,body:null,output:i.output,errorSummary:i.errorSummary,search:s,state:i.state,inspect:r})}l(fe,"SearchRow");const rt={name:"search-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",function*(){yield e.slots.register({name:"tool.call.toolview",key:"grep",locale:x},fe),yield e.slots.register({name:"tool.call.toolview",key:"glob",locale:x},fe)})}};function ot(e){const t=e.filter(i=>i.status==="in_progress"),r=t[0]?.content,o=typeof r=="string"&&r.trim()!=="";return{done:e.filter(i=>i.status==="completed").length,total:e.length,activeContent:o?r:null,activeExtra:o?t.length-1:0}}l(ot,"planSummary");function nt(e){return typeof e=="object"&&e!==null}l(nt,"isItem");function it(e,t){let r;try{r=JSON.parse(e)}catch{return null}if(typeof r!="object"||r===null)return null;const o=r.todos;if(!Array.isArray(o)||!o.every(nt))return null;const{done:i,total:s,activeContent:a,activeExtra:c}=ot(o),p=t("todo.completed",{done:i,total:s});return{text:a===null?p:`${p} · ${a}`,extra:c}}l(it,"summarize");function at({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s=it(("kind"in t?t.call?.argsRaw:t.argsRaw)??"",o)??{text:i.summary,extra:0};return(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:(0,n.jsx)(d.IconChecklistOutline14,{}),title:o("todo.rowTitle"),summary:s.text,summarySuffix:s.extra>0?`+${s.extra}`:null,body:i.body,output:i.output,errorSummary:i.errorSummary,state:i.state,inspect:r})}l(at,"TodoRow");const lt={name:"todo-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",()=>e.slots.register({name:"tool.call.toolview",key:"todo_write",locale:x},at))}},st={web_search:"Search",web_fetch:"Fetch"};function ye({toolName:e,block:t,inspect:r,t:o}){const i=_(e,t),s=q(t),a=e==="web_fetch"?(0,n.jsx)(d.IconBrowseOutline16,{size:14}):(0,n.jsx)(d.IconGlobeOutline14,{size:14});return(0,n.jsx)(k,{t:o,variant:i.variant,toolName:e,icon:a,title:st[e]??i.title,summary:i.summary,body:null,output:i.output,errorSummary:i.errorSummary,web:s,state:i.state,inspect:r})}l(ye,"WebRow");const ct={name:"web-toolview",inject:["slots"],apply(e){e.slots.inject("tool.call.toolview",function*(){yield e.slots.register({name:"tool.call.toolview",key:"web_search",locale:x},ye),yield e.slots.register({name:"tool.call.toolview",key:"web_fetch",locale:x},ye)})}},dt=["slots"];function ut(e){e.slots.inject("conversation.chat.node",()=>e.slots.register({name:"conversation.chat.node",key:"tool-call",locale:x,children:{"tool.call.toolview":{kind:"keyed",scope:"session"}}},ze)),e.slots.inject("conversation.details.tool",()=>e.slots.register({name:"conversation.details.tool",locale:x},Ve)),e.plugin(Ye),e.plugin(et),e.plugin(Ze),e.plugin(rt),e.plugin(ct),e.plugin(lt),e.plugin(Je)}return l(ut,"apply"),R.apply=ut,R.inject=dt,W.exports},"factory")});
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-client-ui-tool","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"}},"license":"MIT","dependencies":{"clsx":"^2.0.0"},"peerDependencies":{"react":"^18.2.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-locale":"^0.0.15","@deepseek-ai/dsh-client-ui-conversation":"^0.0.15","@deepseek-ai/dsh-client-ui-primitives":"^0.0.15","@deepseek-ai/dsh-client-runtime":"^0.0.15","@deepseek-ai/dsh-api-remotes":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-client-ui-slots":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-client-ui-tool","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"}},"license":"MIT","dependencies":{"clsx":"^2.0.0"},"peerDependencies":{"react":"^18.2.0","@deepseek-ai/dsh-api-remotes":"^0.1.0-rc.7","@deepseek-ai/dsh-client-locale":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-conversation":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-primitives":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-client-runtime":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-slots":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}