@qqbrowser/qbot-dsh 0.1.0 → 0.1.2

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 (629) hide show
  1. package/cordis.patch.yml +50 -0
  2. package/lib/args-w1okyL78.js +9 -0
  3. package/lib/bin.js +1 -2
  4. package/lib/client.js +1 -0
  5. package/lib/content-review-CqDoh3wY.js +1 -0
  6. package/lib/content-review.js +1 -0
  7. package/lib/dump-config-CIL0Goqj.js +1 -0
  8. package/lib/gateway-port-CSFbDyoZ.js +1 -0
  9. package/lib/index.js +1 -0
  10. package/lib/llm-gateway-openai.js +17 -0
  11. package/lib/native-protocol-DdrIh89-.js +2 -0
  12. package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
  13. package/lib/profile-boot-CxJUSdnu.js +1 -0
  14. package/lib/profile-boot-DCgBQ4qO.js +8 -0
  15. package/lib/qb-auth-C2ofR1zn.js +4 -0
  16. package/lib/qb-auth.js +1 -0
  17. package/lib/web-search-dsh.js +1 -0
  18. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  19. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  21. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  23. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  24. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  25. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
  26. package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  27. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
  30. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  32. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  35. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  37. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
  38. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  39. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  40. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  41. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  42. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  43. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
  44. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  45. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  46. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  47. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  48. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  50. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  58. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
  61. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  62. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
  63. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  64. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
  65. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  66. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
  67. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  68. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  69. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  71. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
  72. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  73. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  75. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  76. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  79. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
  80. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
  82. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  83. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
  84. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  90. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +3 -3
  91. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  93. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  95. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  97. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  98. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +3 -3
  99. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  100. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  101. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
  102. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  103. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  104. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  105. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +4 -4
  106. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +14 -14
  108. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
  110. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  112. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
  114. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  116. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
  118. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  120. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  122. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  123. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  124. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  131. package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
  132. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  136. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  137. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  138. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
  140. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
  141. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  142. package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
  143. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  144. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  147. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  150. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  151. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
  152. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  153. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  155. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  156. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  157. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  160. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  165. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  168. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  171. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  172. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  174. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  176. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  177. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  178. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  179. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +1 -1
  183. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  193. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  194. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  195. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  196. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  197. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  198. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
  201. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  202. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  205. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  211. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  212. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  213. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  215. package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
  216. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  217. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  218. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  219. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  220. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  221. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  222. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  224. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  225. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  226. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  227. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  228. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  229. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +5 -29
  230. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  231. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  232. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  233. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  235. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  236. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  237. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  238. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  239. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  240. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  241. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  242. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  243. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  244. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  246. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  247. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  248. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  249. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  250. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  251. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
  252. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  253. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
  254. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
  255. package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
  256. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  257. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  258. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  259. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  260. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
  261. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  262. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  263. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
  264. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
  265. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
  266. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
  267. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
  268. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
  269. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
  270. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  271. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
  272. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
  273. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
  274. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  275. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
  276. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
  277. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
  278. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  279. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  280. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  281. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  282. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  283. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  284. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  285. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  286. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  287. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  288. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  289. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  290. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  291. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  292. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  293. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  294. package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
  295. package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
  296. package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
  297. package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
  298. package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
  299. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
  300. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  301. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  302. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  303. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  304. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  305. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  306. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  307. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  308. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  309. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  310. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  311. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  312. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  313. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  314. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  315. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  316. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  317. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  318. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  319. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  320. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  321. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  322. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  323. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  324. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  325. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  326. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  327. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  328. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  329. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  330. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  331. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  332. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  333. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  334. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  335. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  336. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  337. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  338. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  339. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  340. package/node_modules/@smithy/core/package.json +1 -1
  341. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
  342. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
  343. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  344. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  345. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  346. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  347. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  348. package/node_modules/@smithy/signature-v4/package.json +1 -1
  349. package/node_modules/koffi/package.json +1 -1
  350. package/node_modules/koffi/src/koffi/index.cjs +1 -1
  351. package/node_modules/koffi/src/koffi/index.js +1 -1
  352. package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
  353. package/node_modules/koffi/src/koffi/indirect.js +1 -1
  354. package/node_modules/negotiator/lib/accept.js +54 -0
  355. package/node_modules/negotiator/lib/charset.js +10 -34
  356. package/node_modules/negotiator/lib/encoding.js +9 -30
  357. package/node_modules/negotiator/lib/language.js +15 -36
  358. package/node_modules/negotiator/lib/mediaType.js +16 -134
  359. package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
  360. package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
  361. package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
  362. package/node_modules/negotiator/package.json +1 -1
  363. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  364. package/node_modules/typebox/build/format/_idna.mjs +1 -1
  365. package/node_modules/typebox/build/format/_puny.mjs +1 -1
  366. package/node_modules/typebox/build/format/uuid.mjs +1 -1
  367. package/node_modules/typebox/build/guard/emit.mjs +1 -1
  368. package/node_modules/typebox/build/guard/guard.mjs +1 -1
  369. package/node_modules/typebox/build/guard/string.mjs +1 -1
  370. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  371. package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
  372. package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
  373. package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
  374. package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
  375. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  376. package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
  377. package/node_modules/typebox/build/schema/types/index.mjs +1 -1
  378. package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
  379. package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
  380. package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
  381. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
  382. package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
  383. package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
  384. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
  385. package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
  386. package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
  387. package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
  388. package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
  389. package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
  390. package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
  391. package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
  392. package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
  393. package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
  394. package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
  395. package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
  396. package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
  397. package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
  398. package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
  399. package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
  400. package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
  401. package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
  402. package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
  403. package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
  404. package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
  405. package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
  406. package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
  407. package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
  408. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
  409. package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
  410. package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
  411. package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
  412. package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
  413. package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
  414. package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
  415. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
  416. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
  417. package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
  418. package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
  419. package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
  420. package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
  421. package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
  422. package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
  423. package/node_modules/typebox/build/type/action/index.mjs +1 -1
  424. package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
  425. package/node_modules/typebox/build/type/action/module.mjs +1 -1
  426. package/node_modules/typebox/build/type/action/options.mjs +1 -0
  427. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
  428. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  429. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
  430. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
  431. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
  432. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
  433. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
  434. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
  435. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
  436. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
  437. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
  438. package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
  439. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
  440. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
  441. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
  442. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
  443. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
  444. package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
  445. package/node_modules/typebox/build/type/engine/index.mjs +1 -1
  446. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
  447. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
  448. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
  449. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
  450. package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
  451. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
  452. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
  453. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
  454. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
  455. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
  456. package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
  457. package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
  458. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  459. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
  460. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
  461. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
  462. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
  463. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
  464. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
  465. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
  466. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
  467. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
  468. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
  469. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
  470. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
  471. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
  472. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
  473. package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
  474. package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
  475. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
  476. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
  477. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  478. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
  479. package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
  480. package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
  481. package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
  482. package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
  483. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  484. package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
  485. package/node_modules/typebox/build/type/extends/object.mjs +1 -1
  486. package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
  487. package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
  488. package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
  489. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
  490. package/node_modules/typebox/build/type/extends/union.mjs +1 -1
  491. package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
  492. package/node_modules/typebox/build/type/script/parser.mjs +6 -6
  493. package/node_modules/typebox/build/type/script/script.mjs +1 -1
  494. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  495. package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
  496. package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
  497. package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
  498. package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
  499. package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
  500. package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
  501. package/node_modules/typebox/build/type/types/base.mjs +1 -0
  502. package/node_modules/typebox/build/type/types/call.mjs +1 -1
  503. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  504. package/node_modules/typebox/build/type/types/enum.mjs +1 -1
  505. package/node_modules/typebox/build/type/types/index.mjs +1 -1
  506. package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
  507. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  508. package/node_modules/typebox/build/type/types/promise.mjs +1 -0
  509. package/node_modules/typebox/build/type/types/record.mjs +1 -1
  510. package/node_modules/typebox/build/typebox.mjs +1 -1
  511. package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
  512. package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
  513. package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
  514. package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
  515. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
  516. package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
  517. package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
  518. package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
  519. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
  520. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
  521. package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
  522. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
  523. package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
  524. package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
  525. package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
  526. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
  527. package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
  528. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
  529. package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
  530. package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
  531. package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
  532. package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
  533. package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
  534. package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
  535. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  536. package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
  537. package/node_modules/typebox/build/value/index.mjs +1 -1
  538. package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
  539. package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
  540. package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
  541. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
  542. package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
  543. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  544. package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
  545. package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
  546. package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
  547. package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
  548. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
  549. package/node_modules/typebox/build/value/value.mjs +1 -1
  550. package/node_modules/typebox/package.json +1 -1
  551. package/package.json +1 -1
  552. package/lib/args-DcHS9iff.js +0 -9
  553. package/lib/dump-config-xQTUTTDD.js +0 -1
  554. package/lib/profile-boot-BkordgJK.js +0 -1
  555. package/lib/profile-boot-DDo03lXi.js +0 -8
  556. package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
  557. package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
  558. package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
  559. package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
  560. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
  561. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
  562. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
  563. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
  564. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
  565. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
  566. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
  567. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
  568. package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
  569. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
  570. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
  571. package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
  572. package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
  573. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
  574. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
  575. package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
  576. package/node_modules/@napi-rs/xattr/LICENSE +0 -21
  577. package/node_modules/@napi-rs/xattr/index.js +0 -567
  578. package/node_modules/@napi-rs/xattr/package.json +0 -1
  579. package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
  580. package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
  581. package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
  582. package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
  583. package/node_modules/@parcel/watcher/LICENSE +0 -21
  584. package/node_modules/@parcel/watcher/index.js +0 -44
  585. package/node_modules/@parcel/watcher/index.js.flow +0 -45
  586. package/node_modules/@parcel/watcher/package.json +0 -1
  587. package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
  588. package/node_modules/@parcel/watcher/wrapper.js +0 -88
  589. package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
  590. package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
  591. package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
  592. package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
  593. package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
  594. package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
  595. package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
  596. package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
  597. package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
  598. package/node_modules/is-extglob/LICENSE +0 -21
  599. package/node_modules/is-extglob/index.js +0 -20
  600. package/node_modules/is-extglob/package.json +0 -1
  601. package/node_modules/is-glob/LICENSE +0 -21
  602. package/node_modules/is-glob/index.js +0 -150
  603. package/node_modules/is-glob/package.json +0 -1
  604. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
  605. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
  606. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
  607. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
  608. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
  609. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
  610. package/node_modules/typebox/build/type/action/with.mjs +0 -1
  611. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
  612. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
  613. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
  614. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
  615. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
  616. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
  617. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
  618. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  619. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
  620. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
  621. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
  622. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
  623. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
  624. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
  625. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
  626. package/node_modules/typebox/build/type/extends/record.mjs +0 -1
  627. package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
  628. /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
  629. /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
@@ -1,4 +0,0 @@
1
- var x=Object.defineProperty;var c=(e,t)=>x(e,"name",{value:t,configurable:!0});import{Service as b}from"@deepseek-ai/cordis";import a from"@deepseek-ai/schemastery";import{Scene as S,authSend as R}from"@tencent/qb-auth-send-h5";import{existsSync as D,readFileSync as N}from"node:fs";import{createConnection as O}from"node:net";import{homedir as $}from"node:os";import{join as g}from"node:path";import{StringDecoder as B}from"node:string_decoder";const h={SOCIAL_TOKEN_EXPIRED:"-28",QB_TOKEN_EXPIRED:"-34"},L=1101;var p=class extends Error{static{c(this,"QbAuthExpiredError")}code="QB_AUTH_EXPIRED";authCode;constructor(e,t,i){super(t,i),this.name="QbAuthExpiredError",this.authCode=e}},F=class extends Error{static{c(this,"QbTokenExhaustedError")}code="QB_TOKEN_EXHAUSTED";constructor(e){super(e),this.name="QbTokenExhaustedError"}},r=class extends Error{static{c(this,"QbPipeError")}code="QB_PIPE_FAILED";constructor(e,t){super(e,t),this.name="QbPipeError"}},y=class extends Error{static{c(this,"QbRpcError")}code="QB_RPC_FAILED";constructor(e,t){super(e,t),this.name="QbRpcError"}};const v=c(e=>{if(typeof e=="string")return e;if(typeof e=="number")return String(e)},"readCodeField"),j=c(e=>{if(typeof e!="object"||e===null)return"";const t=e,i=t.err;if(typeof i=="object"&&i!==null){const n=v(i.code);if(n!==void 0)return n}return v(t.code)??""},"readRejectCode"),X=c(e=>e===h.SOCIAL_TOKEN_EXPIRED||e===h.QB_TOKEN_EXPIRED,"isAuthErrorCode"),q=c(e=>{const t=j(e);if(X(t))return t;let i;if(typeof e=="string")i=e;else if(typeof e=="object"&&e!==null)try{i=JSON.stringify(e)}catch{return null}else return null;for(const n of Object.values(h))if(i.includes(`"code":"${n}"`)||i.includes(`"code": "${n}"`))return n;return null},"extractAuthErrorCode"),E=c(e=>e===void 0||e===0?4:e===3?2:e===2||e===5?4:e,"convertAccountType"),P=c(e=>{switch(e.platform){case"darwin":return g(e.homedir,"Library","Application Support","QQBrowser3","ipc_token");case"win32":if(e.localAppData===void 0||e.localAppData==="")throw new r("qb-auth: %LOCALAPPDATA% is unset, cannot locate the QQBrowser IPC token file");return g(e.localAppData,"Tencent","QQBrowser","User Data","ipc_token");case"linux":return g(e.homedir,".config","qqbrowser","ipc_token");default:throw new r(`qb-auth: unsupported platform for QQBrowser IPC: ${e.platform}`)}},"resolveTokenFilePath"),I=c(e=>{const t=e.trim().split(/\r?\n/);if(t.length<3)throw new r(`qb-auth: malformed IPC token file: expected 3 lines (pid / token / pipe path), found ${t.length}`);const[i,n,o]=t;if(i===void 0||n===void 0||o===void 0)throw new r("qb-auth: malformed IPC token file: missing one of pid / token / pipe path");const s=Number.parseInt(i,10),d=n.trim(),l=o.trim();if(!Number.isInteger(s))throw new r("qb-auth: malformed IPC token file: first line is not a process id");if(d==="")throw new r("qb-auth: malformed IPC token file: empty auth token");if(l==="")throw new r("qb-auth: malformed IPC token file: empty pipe path");return{pid:s,token:d,pipePath:l}},"parseDiscovery");var k=class{static{c(this,"QbPipeClient")}options;socket;nextId=0;pending=new Map;decoder=new B("utf8");buffer="";accountInfoCache;closed=!1;constructor(e){this.options=e}isConnected(){return this.socket!==void 0&&!this.socket.destroyed}async connect(){if(this.closed)throw new r("qb-auth: pipe client is closed");const e=this.discover(),t=await this.openSocket(e.pipePath);this.socket=t,t.on("data",n=>{this.consume(n)});const i=await this.call("auth",{token:e.token});if(i.error!==void 0)throw this.close(),new r(`qb-auth: IPC handshake refused: ${i.error}`);if(i.result?.authenticated!==!0)throw this.close(),new r("qb-auth: IPC handshake refused: the browser did not authenticate this client")}close(){this.closed=!0;const e=this.socket;this.socket=void 0,this.failPending(new r("qb-auth: pipe connection closed")),e!==void 0&&e.destroy()}async getAccountInfo(){const e=this.accountInfoCache;if(e!==void 0)return e;const t=await this.call("getAccountInfo");return t.result!==void 0&&(t.result.account_type=E(t.result.account_type)),this.accountInfoCache=t,t}clearAccountInfoCache(){this.accountInfoCache=void 0}async refreshToken(e){const t=await this.call("refreshToken",{tokenType:e});return this.clearAccountInfoCache(),t}async getBrowserParam(){return this.call("getBrowserParam")}discover(){const e=this.options.tokenFilePath??P({platform:process.platform,homedir:$(),localAppData:process.env.LOCALAPPDATA});if(!D(e))throw new r(`qb-auth: QQBrowser is not running or its IPC service is off (no token file at ${e})`);return I(N(e,"utf-8"))}openSocket(e){return new Promise((t,i)=>{const n=O({path:e}),o=c(s=>{n.destroy(),i(new r(`qb-auth: cannot connect to QQBrowser IPC: ${s.message}`,{cause:s}))},"onConnectError");n.once("error",o),n.once("connect",()=>{n.off("error",o),n.on("error",s=>{this.failPending(new r(`qb-auth: IPC connection error: ${s.message}`,{cause:s})),n.destroy()}),n.once("close",()=>{this.failPending(new r("qb-auth: pipe connection closed"))}),t(n)})})}consume(e){this.buffer+=this.decoder.write(e);let t=this.buffer.indexOf(`
2
- `);for(;t!==-1;){const i=this.buffer.slice(0,t);this.buffer=this.buffer.slice(t+1),this.dispatch(i),t=this.buffer.indexOf(`
3
- `)}}dispatch(e){if(e.trim()==="")return;let t;try{t=JSON.parse(e)}catch{return}const i=this.pending.get(t.id);i!==void 0&&(this.pending.delete(t.id),clearTimeout(i.timer),i.settle(t))}call(e,t){return new Promise((i,n)=>{const o=this.socket;if(o===void 0||o.destroyed){n(new r("qb-auth: not connected to QQBrowser IPC"));return}this.nextId+=1;const s=this.nextId,d=setTimeout(()=>{this.pending.delete(s),n(new r(`qb-auth: IPC request timed out: ${e}`))},this.options.requestTimeoutMs);this.pending.set(s,{settle:i,fail:n,timer:d});const l=t===void 0?{id:s,method:e}:{id:s,method:e,params:t};o.write(`${JSON.stringify(l)}
4
- `)})}failPending(e){const t=[...this.pending.values()];this.pending.clear();for(const i of t)clearTimeout(i.timer),i.fail(e)}};const _="trpc_mtt_llm_access_proxy_LlmAccessProxy",A="ds_harness",K="非常抱歉,您已将QQ浏览器提供的免费token额度用完了,敬请期待后续免费活动!若急需使用,可立即前往【设置-模型】自定义。感谢您的理解,我们正全力优化体验!",m=c(e=>typeof e=="object"&&e!==null?e:{},"asRecord"),C=c(e=>typeof e=="string"?JSON.parse(e):e,"parseAuthSendReply"),f=c((...e)=>{for(const t of e)if(t!==void 0&&t!=="")return t;return""},"firstNonEmpty"),u=c((e,t)=>{const i=e[t];return typeof i=="string"?i:""},"readString");var Q=class extends b{static{c(this,"QbAuth")}config;static Config=a.object({usePipe:a.boolean().default(!0),loginInfo:a.object({guid:a.string(),openid:a.string(),access_token:a.string().role("secret"),qbaccess_token:a.string().role("secret"),qbid:a.string(),appid:a.string(),account_type:a.string()}),identity:a.object({guid:a.string().default(""),qimei36:a.string().default(""),qua2:a.string().default("")}),tokenFilePath:a.string().default(""),maxRetry:a.natural().max(8).default(1),requestTimeoutMs:a.natural().min(100).max(12e4).default(5e3)});pipe;loginInfo;deviceInfo;accountResolved=!1;resolving;disposed=!1;constructor(e,t){super(e,"qbAuth"),this.config=t}async[b.init](){return this.ctx.effect(()=>()=>{this.disposed=!0,this.pipe?.close(),this.pipe=void 0},"qbAuth.pipe"),Promise.resolve()}async identity(){await this.ensureAccount();const e=m(this.deviceInfo);return{guid:f(u(e,"guid"),this.loginInfo?.guid,this.config.identity.guid),qimei36:f(u(e,"qimei36"),this.config.identity.qimei36),qua2:f(u(e,"qua2"),u(e,"qua"),this.config.identity.qua2)}}async rpc(e){const t=await this.callWithAuth(async(i,n)=>{const o={...i===void 0?{}:{loginInfo:i},...n===void 0?{}:{overRideInfo:n}};try{return await R({servantName:e.servantName,funcName:e.funcName,scene:S.external,isAuth:!1},e.body,o)}catch(s){throw console.error(`qb-auth: raw SDK rejection for ${e.funcName}:`,s),s}});return C(t)}async llmToken(){const e=await this.identity(),t=m(await this.rpc({servantName:_,funcName:"EncodeToken",body:{base:{qimei36:e.qimei36,qua2:e.qua2},authcall:{bus:A}}})),i=m(t.rsp),n=typeof i.ret=="number"?i.ret:void 0,o=t.token;if(typeof o!="string"||o===""){const s=t.extend;throw new y((typeof s=="object"&&s!==null?Object.values(s).filter(d=>typeof d=="string"&&d!=="").join("; "):"")||`qb-auth: EncodeToken returned no ticket (ret=${String(n)}, reason=${u(i,"reason")})`)}return o}async callWithAuth(e){await this.ensureAccount();const t=this.buildOverRideInfo();for(let i=0;;i+=1)try{return await e(this.loginInfo,t)}catch(n){const o=q(n);if(o===null)throw n;if(i>=this.config.maxRetry)throw new p(o,`qb-auth: ${w(o)} expired and could not be refreshed (code=${o})`,{cause:n});if(!this.config.usePipe)throw new p(o,`qb-auth: ${w(o)} expired but IPC refresh is disabled (code=${o})`,{cause:n});this.ctx.logger.debug(`qb-auth: refreshing ${w(o)} after upstream expiry`);try{await this.refreshViaPipe(o)}catch(s){throw new p(o,`qb-auth: ${w(o)} expired and the refresh failed (code=${o})`,{cause:s})}}}inspect(){return{pipeConnected:this.pipe?.isConnected()??!1,accountResolved:this.accountResolved,hasLoginInfo:this.loginInfo!==void 0}}buildOverRideInfo(){const e=m(this.deviceInfo),t=f(u(e,"qua2"),u(e,"qua"),this.config.identity.qua2),i=f(u(e,"qimei36"),this.config.identity.qimei36);if(!(t===""&&i===""))return{"q-qua2":t,"q-qimei36":i}}async ensureAccount(){if(!this.config.usePipe){this.loginInfo=this.config.loginInfo;return}if(this.accountResolved)return;const e=this.resolving;if(e!==void 0)return e;const t=this.loadFromPipe();this.resolving=t;try{await t,this.accountResolved=!0}finally{this.resolving=void 0}}async loadFromPipe(){const e=await this.ensurePipe(),[t,i]=await Promise.all([e.getAccountInfo(),e.getBrowserParam()]);if(t.error!==void 0||t.result===void 0)throw new r(`qb-auth: cannot read the QQBrowser account: ${t.error??"empty reply"}`);this.loginInfo=T(t.result),i.result===void 0?this.ctx.logger.debug("qb-auth: QQBrowser returned no device parameters; continuing without them"):this.deviceInfo=i.result}isDisposed(){return this.disposed}async ensurePipe(){if(this.isDisposed())throw new r("qb-auth: service disposed");const e=this.pipe;if(e!==void 0&&e.isConnected())return e;const t=new k({tokenFilePath:this.config.tokenFilePath===""?void 0:this.config.tokenFilePath,requestTimeoutMs:this.config.requestTimeoutMs});if(await t.connect(),this.isDisposed())throw t.close(),new r("qb-auth: service disposed");return this.pipe=t,t}async refreshViaPipe(e){const t=await this.ensurePipe(),i=e===h.QB_TOKEN_EXPIRED?"qbtoken":"token",n=await t.refreshToken(i);if(n.error!==void 0)throw new r(`qb-auth: ticket refresh failed: ${n.error}`);const o=await t.getAccountInfo();if(o.error!==void 0||o.result===void 0)throw new r(`qb-auth: cannot re-read the account after refresh: ${o.error??"empty reply"}`);this.loginInfo=T(o.result)}};const w=c(e=>e===h.QB_TOKEN_EXPIRED?"the QQBrowser ticket":"the social ticket","ticketName"),T=c(e=>({guid:e.guid,openid:e.openid,access_token:e.access_token,qbaccess_token:e.qbaccess_token,qbid:e.qbid,appid:e.appid,account_type:String(e.account_type)}),"toLoginInfo");export{h as AUTH_ERROR_CODES,A as BUS_IDENTIFIER,_ as LLM_ACCESS_PROXY_SERVANT,Q as QbAuth,Q as default,p as QbAuthExpiredError,k as QbPipeClient,r as QbPipeError,y as QbRpcError,F as QbTokenExhaustedError,K as TOKEN_EXHAUSTED_MESSAGE,L as TOKEN_EXHAUSTED_RET,E as convertAccountType,q as extractAuthErrorCode,C as parseAuthSendReply,I as parseDiscovery,P as resolveTokenFilePath};
@@ -1 +0,0 @@
1
- var s=Object.defineProperty;var t=(e,n)=>s(e,"name",{value:n,configurable:!0});const a="@deepseek-ai/dsh-qb-auth",r="qb-auth-invariant",l=["invariants"],c=t((e,n)=>{e.on("internal/plugin",()=>{const o=e.get("qbAuth");if(o===void 0)return;const i=o.inspect();i.accountResolved&&!i.hasLoginInfo&&n("qbAuth reported account resolution complete while holding no login info — resolution state and resolved credentials diverged")},{global:!0})},"install"),u=t(e=>Promise.resolve(e.invariants.register(a,c)),"apply");export{u as apply,l as inject,r as name};
@@ -1 +0,0 @@
1
- {"name":"@deepseek-ai/dsh-qb-auth","version":"0.1.0","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0"},"dependencies":{"@tencent/qb-auth-send-h5":"^2.5.0","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 DeepSeek
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- var H=Object.defineProperty;var o=(e,t)=>H(e,"name",{value:t,configurable:!0});import d from"@deepseek-ai/schemastery";import{WebError as u}from"@deepseek-ai/dsh-web";const q="dsh",g="qbqaproxy.imtt.qq.com",S="deepseek-harness",_="dsh_search",y="mtt_dsh_search_proxy",D="GetToken",b=6e4,I=[1002,1005],B="/cgi-bin/search/proxy",C="deepseek-harness/0.0.1";var k=class extends u{static{o(this,"DshSearchTokenRejected")}};function f(e){return typeof e=="string"&&e.trim().length>0}o(f,"isNonBlank");function N(e){return Number.isInteger(e)&&e>0}o(N,"isPositiveInteger");function M(e){return URL.canParse(`https://${e}`)}o(M,"isValidHost");function R(e){return e instanceof DOMException&&e.name==="AbortError"}o(R,"isAbortError");function V(e){if(!(e instanceof Error))return String(e);const t=e.cause;return t instanceof Error&&t.message!==e.message?`${e.message} (${t.message})`:e.message}o(V,"describeFetchError");function w(e){if(f(e.link))return{url:e.link,...f(e.title)?{title:e.title}:{},...f(e.snippet)?{snippet:e.snippet}:{},...f(e.date)?{publishedAt:e.date}:{}}}o(w,"mapDshSearchItem");function O(e){return{sources:(e.result_list??[]).map(w).filter(t=>t!==void 0),truncated:!1}}o(O,"mapDshSearchResponse");var T=class{static{o(this,"DshSearchProvider")}options;id="dsh";cachedToken;issuing;constructor(e){this.options=e}available(){return M(this.options.host)&&(this.options.num===void 0||N(this.options.num))}async search(e,t){const r=await this.acquireToken(!1);try{return await this.searchOnce(e,r,t)}catch(n){if(!(n instanceof k))throw n;const a=await this.acquireToken(!0);return this.searchOnce(e,a,t)}}acquireToken(e){const t=this.options.tokenRefreshMarginMs??6e4,r=this.cachedToken;if(!e&&r!==void 0&&Date.now()<r.expiretime*1e3-t)return Promise.resolve(r.token);if(!e&&this.issuing!==void 0)return this.issuing;const n=this.options.fetchToken().then(a=>(this.cachedToken=a,a.token));return this.issuing=n,n.catch(()=>{}).finally(()=>{this.issuing===n&&(this.issuing=void 0)}),n}async searchOnce(e,t,r){const n=this.options.num??e.maxResults,a=JSON.stringify({query:e.query,...n!==void 0?{num:n}:{}}),l=`https://${this.options.host}${B}`;let h;try{h=await fetch(l,{method:"POST",redirect:"error",headers:{"content-type":"application/json",authorization:`Bearer ${t}`,"user-agent":C,accept:"application/json"},body:a,...r!==void 0?{signal:r}:{}})}catch(s){throw R(s)?new u("DshSearch search aborted","WEB_ABORTED",{cause:s}):new u(`DshSearch search request to ${l} failed: ${V(s)}`,"WEB_PROVIDER_ERROR",{cause:s})}if(!h.ok){const s=h.status;let c=`DshSearch API error (HTTP ${s})`;try{const p=await h.json();f(p.msg)&&(c=`DshSearch API error (HTTP ${s}): ${p.msg}`)}catch(p){if(R(p))throw new u("DshSearch search aborted","WEB_ABORTED",{cause:p})}throw new u(c,"WEB_PROVIDER_ERROR")}let i;try{i=await h.json()}catch(s){throw R(s)?new u("DshSearch search aborted","WEB_ABORTED",{cause:s}):new u(`DshSearch returned an unprocessable response body: ${String(s)}`,"WEB_PROVIDER_ERROR",{cause:s})}if(typeof i.code!="number")throw new u("DshSearch returned an unexpected response body (missing code)","WEB_PROVIDER_ERROR");if(I.includes(i.code))throw new k(`DshSearch token rejected (code ${i.code}): ${i.msg??"no message"}`,"WEB_PROVIDER_ERROR");if(i.code!==0)throw new u(`DshSearch search failed (code ${i.code}): ${i.msg??"no message"}`,"WEB_PROVIDER_ERROR");return O(i)}};const W="web-search-dsh",j=["web","qbAuth"],A="qb-gateway",v="Auto",$="deepseek-official",F=d.object({host:d.string().default(g),callfrom:d.string().default(S),bus:d.string().default(_),num:d.number().step(1).min(1),tokenRefreshMarginMs:d.natural().min(0).default(b),routeSelection:d.object({provider:d.string().default(A),model:d.string().default(v)}),fallbackProvider:d.string().default($)}),E=o(e=>typeof e=="object"&&e!==null?e:{},"asRecord"),P=o((e,t)=>{const r=e[t];return typeof r=="string"?r:""},"readString"),L=o(e=>{if(e instanceof Error)return e.message;if(typeof e=="string")return e;const t=E(e),r=P(t,"message");if(r!=="")return r;try{const n=JSON.stringify(e);if(n!==void 0)return n}catch{}return String(e)},"describeCause"),U=o(e=>{const t=e.token,r=typeof t=="string"&&t!==""?{...e,token:`<redacted, ${String(t.length)} chars>`}:e;try{return JSON.stringify(r)}catch{return"<unprintable reply>"}},"redactReply"),x=o(e=>{const t=e.token,r=typeof t!="string"?`type ${typeof t}`:t===""?"empty":`${String(t.length)} chars`,n=e.expiretime;return`token=${r}, expiretime=${typeof n=="number"?String(n):typeof n=="string"?`"${n}" (string)`:`type ${typeof n}`}`},"tokenFieldSummary");async function K(e,t){let r;try{const c=await e.qbAuth.identity();r=await e.qbAuth.rpc({servantName:y,funcName:D,body:{base:{qimei36:c.qimei36,qua2:c.qua2},authcall:{callfrom:t.callfrom??"deepseek-harness",bus:t.bus??"dsh_search"}}})}catch(c){throw new u(`DshSearch token issuance failed: ${L(c)}`,"WEB_PROVIDER_ERROR",{cause:c})}const n=E(r),a=E(n.rsp),l=typeof a.ret=="number"?a.ret:void 0;if(l!==0)throw new u(`DshSearch token issuance rejected (ret=${String(l)}, reason=${P(a,"reason")||"none"})`,"WEB_PROVIDER_ERROR");const h=n.token,i=n.expiretime,s=typeof i=="string"&&i.trim()!==""?Number(i):i;if(typeof h!="string"||h===""||typeof s!="number"||!Number.isFinite(s)||s<=0){const c=U(n);throw e.logger.debug(`web-search-dsh: GetToken returned an unusable reply: ${c}`),new u(`DshSearch token issuance returned no usable token or expiry (ret=${String(l)}, ${x(n)}); reply: ${c}`,"WEB_PROVIDER_ERROR")}return{token:h,expiretime:s}}o(K,"issueSearchToken");function G(e){const t=e.get("agents")?.currentInitiator()?.session.requestHeader()?.config;return t!==void 0?{provider:t.provider,model:t.model}:e.get("agentDefaultModel")?.currentSelection()}o(G,"currentModelSelection");function J(e,t){e.web.registerSearchProvider(new T({host:t.host??"qbqaproxy.imtt.qq.com",...t.num!==void 0?{num:t.num}:{},tokenRefreshMarginMs:t.tokenRefreshMarginMs??6e4,fetchToken:o(()=>K(e,t),"fetchToken")}));const r=t.routeSelection?.provider??"qb-gateway",n=t.routeSelection?.model??"Auto",a=t.fallbackProvider??"deepseek-official";e.web.registerSearchProviderSelector((l,h)=>{const i=G(e);if(i===void 0)return;const s=i.provider===r&&i.model===n,c=h.includes("dsh")?void 0:"dsh",p=l.get(a),m=p!==void 0&&p.available()&&!h.includes(a)?a:void 0;return s?c??m:m??c})}o(J,"apply");export{F as Config,q as DSH_PROVIDER_ID,_ as DSH_SEARCH_DEFAULT_BUS,S as DSH_SEARCH_DEFAULT_CALLFROM,$ as DSH_SEARCH_DEFAULT_FALLBACK_PROVIDER,g as DSH_SEARCH_DEFAULT_HOST,v as DSH_SEARCH_DEFAULT_ROUTE_MODEL,A as DSH_SEARCH_DEFAULT_ROUTE_PROVIDER,D as DSH_SEARCH_TOKEN_FUNC,b as DSH_SEARCH_TOKEN_MARGIN_MS,y as DSH_SEARCH_TOKEN_SERVANT,T as DshSearchProvider,J as apply,j as inject,w as mapDshSearchItem,O as mapDshSearchResponse,W as name};
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var e=(s,n)=>a(s,"name",{value:n,configurable:!0});const t="@deepseek-ai/dsh-web-search-dsh",i="web-search-dsh-invariant",r=["invariants"],c=e(()=>{},"install"),o=e(s=>Promise.resolve(s.invariants.register(t,c)),"apply");export{o as apply,r as inject,i as name};
@@ -1 +0,0 @@
1
- {"name":"@deepseek-ai/dsh-web-search-dsh","version":"0.1.0","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-qb-auth":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-agent-default-model":"^0.1.0","@deepseek-ai/dsh-web":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 N-API for Rust
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.