@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,6 +1,6 @@
1
- var $=Object.defineProperty;var s=(t,e)=>$(t,"name",{value:e,configurable:!0});import{createProvider as W}from"../models.js";import{createAssistantMessageEventStream as N}from"../utils/event-stream.js";const A="faux",I="faux",C="faux-1",z="Faux Model",j="http://localhost:0",O=3,S=5,_={input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};export function fauxText(t){return{type:"text",text:t}}s(fauxText,"fauxText");export function fauxThinking(t){return{type:"thinking",thinking:t}}s(fauxThinking,"fauxThinking");export function fauxToolCall(t,e,o={}){return{type:"toolCall",id:o.id??F("tool"),name:t,arguments:e}}s(fauxToolCall,"fauxToolCall");function J(t){return typeof t=="string"?[fauxText(t)]:Array.isArray(t)?t:[t]}s(J,"normalizeFauxAssistantContent");export function fauxAssistantMessage(t,e={}){return{role:"assistant",content:J(t),api:A,provider:I,model:C,usage:_,stopReason:e.stopReason??"stop",errorMessage:e.errorMessage,responseId:e.responseId,timestamp:e.timestamp??Date.now()}}s(fauxAssistantMessage,"fauxAssistantMessage");function y(t){return Math.ceil(t.length/4)}s(y,"estimateTokens");function F(t){return`${t}:${Date.now()}:${Math.random().toString(36).slice(2)}`}s(F,"randomId");function b(t){return typeof t=="string"?t:t.map(e=>e.type==="text"?e.text:`[image:${e.mimeType}:${e.data.length}]`).join(`
2
- `)}s(b,"contentToText");function v(t){return t.map(e=>e.type==="text"?e.text:e.type==="thinking"?e.thinking:`${e.name}:${JSON.stringify(e.arguments)}`).join(`
3
- `)}s(v,"assistantContentToText");function K(t){return[t.toolName,...t.content.map(e=>b([e]))].join(`
4
- `)}s(K,"toolResultToText");function B(t){return t.role==="user"?b(t.content):t.role==="assistant"?v(t.content):K(t)}s(B,"messageToText");function Z(t){const e=[];t.systemPrompt&&e.push(`system:${t.systemPrompt}`);for(const o of t.messages)e.push(`${o.role}:${B(o)}`);return t.tools?.length&&e.push(`tools:${JSON.stringify(t.tools)}`),e.join(`
1
+ var $=Object.defineProperty;var s=(t,e)=>$(t,"name",{value:e,configurable:!0});import{createProvider as W}from"../models.js";import{createAssistantMessageEventStream as N}from"../utils/event-stream.js";const A="faux",I="faux",C="faux-1",z="Faux Model",j="http://localhost:0",O=3,S=5,w={input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};export function fauxText(t){return{type:"text",text:t}}s(fauxText,"fauxText");export function fauxThinking(t){return{type:"thinking",thinking:t}}s(fauxThinking,"fauxThinking");export function fauxToolCall(t,e,o={}){return{type:"toolCall",id:o.id??b("tool"),name:t,arguments:e}}s(fauxToolCall,"fauxToolCall");function J(t){return typeof t=="string"?[fauxText(t)]:Array.isArray(t)?t:[t]}s(J,"normalizeFauxAssistantContent");export function fauxAssistantMessage(t,e={}){return{role:"assistant",content:J(t),api:A,provider:I,model:C,usage:w,stopReason:e.stopReason??"stop",errorMessage:e.errorMessage,responseId:e.responseId,timestamp:e.timestamp??Date.now()}}s(fauxAssistantMessage,"fauxAssistantMessage");function y(t){return Math.ceil(t.length/4)}s(y,"estimateTokens");function b(t){return`${t}:${Date.now()}:${Math.random().toString(36).slice(2)}`}s(b,"randomId");function v(t){return typeof t=="string"?t:t.map(e=>e.type==="text"?e.text:`[image:${e.mimeType}:${e.data.length}]`).join(`
2
+ `)}s(v,"contentToText");function F(t){return t.map(e=>e.type==="text"?e.text:e.type==="thinking"?e.thinking:`${e.name}:${JSON.stringify(e.arguments)}`).join(`
3
+ `)}s(F,"assistantContentToText");function K(t){return[t.toolName,...t.content.map(e=>v([e]))].join(`
4
+ `)}s(K,"toolResultToText");function B(t){return t.role==="user"?v(t.content):t.role==="assistant"?F(t.content):K(t)}s(B,"messageToText");function Z(t){const e=[];t.systemPrompt&&e.push(`system:${t.systemPrompt}`);for(const o of t.messages)e.push(`${o.role}:${B(o)}`);return t.tools?.length&&e.push(`tools:${JSON.stringify(t.tools)}`),e.join(`
5
5
 
6
- `)}s(Z,"serializeContext");function G(t,e){const o=Math.min(t.length,e.length);let r=0;for(;r<o&&t[r]===e[r];)r++;return r}s(G,"commonPrefixLength");function L(t,e,o,r){const u=Z(e),d=y(u),n=y(v(t.content));let a=d,c=0,p=0;const l=o?.sessionId;if(l&&o?.cacheRetention!=="none"){const g=r.get(l);if(g){const T=G(g,u);c=y(g.slice(0,T)),p=y(u.slice(T)),a=Math.max(0,d-c)}else p=d;r.set(l,u)}return{...t,usage:{input:a,output:n,cacheRead:c,cacheWrite:p,totalTokens:a+n+c+p,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}}s(L,"withUsageEstimate");function k(t,e,o){const r=[];let u=0;for(;u<t.length;){const d=e+Math.floor(Math.random()*(o-e+1)),n=Math.max(1,d*4);r.push(t.slice(u,u+n)),u+=n}return r.length>0?r:[""]}s(k,"splitStringByTokenSize");function V(t,e,o,r){const u=structuredClone(t);return{...u,api:e,provider:o,model:r,timestamp:u.timestamp??Date.now(),usage:u.usage??_}}s(V,"cloneMessage");function U(t,e,o,r){return{role:"assistant",content:[],api:e,provider:o,model:r,usage:_,stopReason:"error",errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()}}s(U,"createErrorMessage");function R(t){return{...t,stopReason:"aborted",errorMessage:"Request was aborted",timestamp:Date.now()}}s(R,"createAbortedMessage");function D(t,e){if(!e||e<=0)return new Promise(r=>queueMicrotask(r));const o=y(t)/e*1e3;return new Promise(r=>setTimeout(r,o))}s(D,"scheduleChunk");async function X(t,e,o,r,u,d){const n={...e,content:[],stopReason:"pending"};if(d?.aborted){const a=R(n);t.push({type:"error",reason:"aborted",error:a}),t.end(a);return}t.push({type:"start",partial:{...n}});for(let a=0;a<e.content.length;a++){if(d?.aborted){const p=R(n);t.push({type:"error",reason:"aborted",error:p}),t.end(p);return}const c=e.content[a];if(c.type==="thinking"){n.content=[...n.content,{type:"thinking",thinking:""}],t.push({type:"thinking_start",contentIndex:a,partial:{...n}});for(const p of k(c.thinking,o,r)){if(await D(p,u),d?.aborted){const l=R(n);t.push({type:"error",reason:"aborted",error:l}),t.end(l);return}n.content[a].thinking+=p,t.push({type:"thinking_delta",contentIndex:a,delta:p,partial:{...n}})}t.push({type:"thinking_end",contentIndex:a,content:c.thinking,partial:{...n}});continue}if(c.type==="text"){n.content=[...n.content,{type:"text",text:""}],t.push({type:"text_start",contentIndex:a,partial:{...n}});for(const p of k(c.text,o,r)){if(await D(p,u),d?.aborted){const l=R(n);t.push({type:"error",reason:"aborted",error:l}),t.end(l);return}n.content[a].text+=p,t.push({type:"text_delta",contentIndex:a,delta:p,partial:{...n}})}t.push({type:"text_end",contentIndex:a,content:c.text,partial:{...n}});continue}n.content=[...n.content,{type:"toolCall",id:c.id,name:c.name,arguments:{}}],t.push({type:"toolcall_start",contentIndex:a,partial:{...n}});for(const p of k(JSON.stringify(c.arguments),o,r)){if(await D(p,u),d?.aborted){const l=R(n);t.push({type:"error",reason:"aborted",error:l}),t.end(l);return}t.push({type:"toolcall_delta",contentIndex:a,delta:p,partial:{...n}})}n.content[a].arguments=c.arguments,t.push({type:"toolcall_end",contentIndex:a,toolCall:c,partial:{...n}})}if(e.stopReason==="pending")throw new Error("Faux response ended without a stop reason");if(e.stopReason==="error"||e.stopReason==="aborted"){t.push({type:"error",reason:e.stopReason,error:e}),t.end(e);return}t.push({type:"done",reason:e.stopReason,message:e}),t.end(e)}s(X,"streamWithDeltas");export function createFauxCore(t){const e=t.api??F(A),o=t.provider??I,r=Math.max(1,Math.min(t.tokenSize?.min??O,t.tokenSize?.max??S)),u=Math.max(r,t.tokenSize?.max??S);let d=[];const n=t.tokensPerSecond,a={callCount:0},c=new Map,l=(t.models?.length?t.models:[{id:C,name:z,reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384}]).map(i=>({id:i.id,name:i.name??i.id,api:e,provider:o,baseUrl:j,reasoning:i.reasoning??!1,input:i.input??["text","image"],cost:i.cost??{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:i.contextWindow??128e3,maxTokens:i.maxTokens??16384})),g=s((i,h,f)=>{const x=N(),M=d.shift();return a.callCount++,queueMicrotask(async()=>{try{if(await f?.onResponse?.({status:200,headers:{}},i),!M){let w=U(new Error("No more faux responses queued"),e,o,i.id);w=L(w,h,f,c),x.push({type:"error",reason:"error",error:w}),x.end(w);return}const E=typeof M=="function"?await M(h,f,a,i):M;let m=V(E,e,o,i.id);m=L(m,h,f,c),await X(x,m,r,u,n,f?.signal)}catch(E){const m=U(E,e,o,i.id);x.push({type:"error",reason:"error",error:m}),x.end(m)}}),x},"stream"),T=s((i,h,f)=>g(i,h,f),"streamSimple");function P(i){return i?l.find(h=>h.id===i):l[0]}return s(P,"getModel"),{api:e,provider:o,models:l,stream:g,streamSimple:T,getModel:P,state:a,setResponses(i){d=[...i]},appendResponses(i){d.push(...i)},getPendingResponseCount(){return d.length}}}s(createFauxCore,"createFauxCore");export function fauxProvider(t={}){const e=createFauxCore(t);return{provider:W({id:e.provider,auth:{apiKey:{name:"Faux",resolve:s(async()=>({auth:{}}),"resolve")}},models:e.models,api:{stream:e.stream,streamSimple:e.streamSimple}}),api:e.api,models:e.models,getModel:e.getModel,state:e.state,setResponses:e.setResponses,appendResponses:e.appendResponses,getPendingResponseCount:e.getPendingResponseCount}}s(fauxProvider,"fauxProvider");
6
+ `)}s(Z,"serializeContext");function G(t,e){const o=Math.min(t.length,e.length);let r=0;for(;r<o&&t[r]===e[r];)r++;return r}s(G,"commonPrefixLength");function L(t,e,o,r){const u=Z(e),l=y(u),n=y(F(t.content));let a=l,c=0,p=0;const d=o?.sessionId;if(d&&o?.cacheRetention!=="none"){const g=r.get(d);if(g){const T=G(g,u);c=y(g.slice(0,T)),p=y(u.slice(T)),a=Math.max(0,l-c)}else p=l;r.set(d,u)}return{...t,usage:{input:a,output:n,cacheRead:c,cacheWrite:p,totalTokens:a+n+c+p,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}}s(L,"withUsageEstimate");function k(t,e,o){const r=[];let u=0;for(;u<t.length;){const l=e+Math.floor(Math.random()*(o-e+1)),n=Math.max(1,l*4);r.push(t.slice(u,u+n)),u+=n}return r.length>0?r:[""]}s(k,"splitStringByTokenSize");function V(t,e,o,r){const u=structuredClone(t);return{...u,api:e,provider:o,model:r,timestamp:u.timestamp??Date.now(),usage:u.usage??w}}s(V,"cloneMessage");function U(t,e,o,r){return{role:"assistant",content:[],api:e,provider:o,model:r,usage:w,stopReason:"error",errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()}}s(U,"createErrorMessage");function R(t){return{...t,stopReason:"aborted",errorMessage:"Request was aborted",timestamp:Date.now()}}s(R,"createAbortedMessage");function D(t,e){if(!e||e<=0)return new Promise(r=>queueMicrotask(r));const o=y(t)/e*1e3;return new Promise(r=>setTimeout(r,o))}s(D,"scheduleChunk");async function X(t,e,o,r,u,l){const n={...e,content:[]};if(l?.aborted){const a=R(n);t.push({type:"error",reason:"aborted",error:a}),t.end(a);return}t.push({type:"start",partial:{...n}});for(let a=0;a<e.content.length;a++){if(l?.aborted){const p=R(n);t.push({type:"error",reason:"aborted",error:p}),t.end(p);return}const c=e.content[a];if(c.type==="thinking"){n.content=[...n.content,{type:"thinking",thinking:""}],t.push({type:"thinking_start",contentIndex:a,partial:{...n}});for(const p of k(c.thinking,o,r)){if(await D(p,u),l?.aborted){const d=R(n);t.push({type:"error",reason:"aborted",error:d}),t.end(d);return}n.content[a].thinking+=p,t.push({type:"thinking_delta",contentIndex:a,delta:p,partial:{...n}})}t.push({type:"thinking_end",contentIndex:a,content:c.thinking,partial:{...n}});continue}if(c.type==="text"){n.content=[...n.content,{type:"text",text:""}],t.push({type:"text_start",contentIndex:a,partial:{...n}});for(const p of k(c.text,o,r)){if(await D(p,u),l?.aborted){const d=R(n);t.push({type:"error",reason:"aborted",error:d}),t.end(d);return}n.content[a].text+=p,t.push({type:"text_delta",contentIndex:a,delta:p,partial:{...n}})}t.push({type:"text_end",contentIndex:a,content:c.text,partial:{...n}});continue}n.content=[...n.content,{type:"toolCall",id:c.id,name:c.name,arguments:{}}],t.push({type:"toolcall_start",contentIndex:a,partial:{...n}});for(const p of k(JSON.stringify(c.arguments),o,r)){if(await D(p,u),l?.aborted){const d=R(n);t.push({type:"error",reason:"aborted",error:d}),t.end(d);return}t.push({type:"toolcall_delta",contentIndex:a,delta:p,partial:{...n}})}n.content[a].arguments=c.arguments,t.push({type:"toolcall_end",contentIndex:a,toolCall:c,partial:{...n}})}if(e.stopReason==="error"||e.stopReason==="aborted"){t.push({type:"error",reason:e.stopReason,error:e}),t.end(e);return}t.push({type:"done",reason:e.stopReason,message:e}),t.end(e)}s(X,"streamWithDeltas");export function createFauxCore(t){const e=t.api??b(A),o=t.provider??I,r=Math.max(1,Math.min(t.tokenSize?.min??O,t.tokenSize?.max??S)),u=Math.max(r,t.tokenSize?.max??S);let l=[];const n=t.tokensPerSecond,a={callCount:0},c=new Map,d=(t.models?.length?t.models:[{id:C,name:z,reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384}]).map(i=>({id:i.id,name:i.name??i.id,api:e,provider:o,baseUrl:j,reasoning:i.reasoning??!1,input:i.input??["text","image"],cost:i.cost??{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:i.contextWindow??128e3,maxTokens:i.maxTokens??16384})),g=s((i,h,f)=>{const x=N(),M=l.shift();return a.callCount++,queueMicrotask(async()=>{try{if(await f?.onResponse?.({status:200,headers:{}},i),!M){let _=U(new Error("No more faux responses queued"),e,o,i.id);_=L(_,h,f,c),x.push({type:"error",reason:"error",error:_}),x.end(_);return}const E=typeof M=="function"?await M(h,f,a,i):M;let m=V(E,e,o,i.id);m=L(m,h,f,c),await X(x,m,r,u,n,f?.signal)}catch(E){const m=U(E,e,o,i.id);x.push({type:"error",reason:"error",error:m}),x.end(m)}}),x},"stream"),T=s((i,h,f)=>g(i,h,f),"streamSimple");function P(i){return i?d.find(h=>h.id===i):d[0]}return s(P,"getModel"),{api:e,provider:o,models:d,stream:g,streamSimple:T,getModel:P,state:a,setResponses(i){l=[...i]},appendResponses(i){l.push(...i)},getPendingResponseCount(){return l.length}}}s(createFauxCore,"createFauxCore");export function fauxProvider(t={}){const e=createFauxCore(t);return{provider:W({id:e.provider,auth:{apiKey:{name:"Faux",resolve:s(async()=>({auth:{}}),"resolve")}},models:e.models,api:{stream:e.stream,streamSimple:e.streamSimple}}),api:e.api,models:e.models,getModel:e.getModel,state:e.state,setResponses:e.setResponses,appendResponses:e.appendResponses,getPendingResponseCount:e.getPendingResponseCount}}s(fauxProvider,"fauxProvider");
@@ -1 +1 @@
1
- {"name":"@earendil-works/pi-ai","version":"0.83.0","type":"module","main":"./dist/index.js","sideEffects":["./dist/compat.js","./dist/images.js","./dist/providers/images/register-builtins.js"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./compat":{"types":"./dist/compat.d.ts","import":"./dist/compat.js"},"./providers/*":{"types":"./dist/providers/*.d.ts","import":"./dist/providers/*.js"},"./api/*":{"types":"./dist/api/*.d.ts","import":"./dist/api/*.js"},"./oauth":{"types":"./dist/oauth.d.ts","import":"./dist/oauth.js"},"./bedrock-provider":{"types":"./dist/bedrock-provider.d.ts","import":"./dist/bedrock-provider.js"},"./bun-oauth":{"types":"./dist/bun-oauth.d.ts","import":"./dist/bun-oauth.js"}},"bin":{"pi-ai":"dist/cli.js"},"dependencies":{"@anthropic-ai/sdk":"0.91.1","@aws-sdk/client-bedrock-runtime":"3.1048.0","@google/genai":"1.52.0","@mistralai/mistralai":"2.2.6","@opentelemetry/api":"1.9.0","@smithy/node-http-handler":"4.7.3","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.6","openai":"6.26.0","partial-json":"0.1.7","typebox":"1.3.7"},"license":"MIT","engines":{"node":">=22.19.0"}}
1
+ {"name":"@earendil-works/pi-ai","version":"0.82.1","type":"module","main":"./dist/index.js","sideEffects":["./dist/compat.js","./dist/images.js","./dist/providers/images/register-builtins.js"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./compat":{"types":"./dist/compat.d.ts","import":"./dist/compat.js"},"./providers/*":{"types":"./dist/providers/*.d.ts","import":"./dist/providers/*.js"},"./api/*":{"types":"./dist/api/*.d.ts","import":"./dist/api/*.js"},"./oauth":{"types":"./dist/oauth.d.ts","import":"./dist/oauth.js"},"./bedrock-provider":{"types":"./dist/bedrock-provider.d.ts","import":"./dist/bedrock-provider.js"},"./bun-oauth":{"types":"./dist/bun-oauth.d.ts","import":"./dist/bun-oauth.js"}},"bin":{"pi-ai":"dist/cli.js"},"dependencies":{"@anthropic-ai/sdk":"0.91.1","@aws-sdk/client-bedrock-runtime":"3.1048.0","@google/genai":"1.52.0","@mistralai/mistralai":"2.2.6","@opentelemetry/api":"1.9.0","@smithy/node-http-handler":"4.7.3","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.6","openai":"6.26.0","partial-json":"0.1.7","typebox":"1.1.38"},"license":"MIT","engines":{"node":">=22.19.0"}}
@@ -1 +1 @@
1
- {"name":"@koromix/koffi-darwin-arm64","version":"3.1.5","license":"MIT","main":"./index.js","os":["darwin"],"cpu":["arm64"]}
1
+ {"name":"@koromix/koffi-darwin-arm64","version":"3.1.6","license":"MIT","main":"./index.js","os":["darwin"],"cpu":["arm64"]}
@@ -1 +1 @@
1
- {"name":"@koromix/koffi-darwin-x64","version":"3.1.5","license":"MIT","main":"./index.js","os":["darwin"],"cpu":["x64"]}
1
+ {"name":"@koromix/koffi-darwin-x64","version":"3.1.6","license":"MIT","main":"./index.js","os":["darwin"],"cpu":["x64"]}
@@ -1 +1 @@
1
- {"name":"@koromix/koffi-win32-x64","version":"3.1.5","license":"MIT","main":"./index.js","os":["win32"],"cpu":["x64"]}
1
+ {"name":"@koromix/koffi-win32-x64","version":"3.1.6","license":"MIT","main":"./index.js","os":["win32"],"cpu":["x64"]}
@@ -1,4 +1,4 @@
1
- const { getSmithyContext } = require("@smithy/core/transport");
1
+ const { getSmithyContext, hasOwn } = require("@smithy/core/transport");
2
2
  exports.getSmithyContext = getSmithyContext;
3
3
  const { HttpRequest } = require("@smithy/core/protocols");
4
4
  const { requestBuilder } = require("@smithy/core/protocols");
@@ -203,6 +203,8 @@ class DefaultIdentityProviderConfig {
203
203
  authSchemes = new Map();
204
204
  constructor(config) {
205
205
  for (const key in config) {
206
+ if (!hasOwn(config, key))
207
+ continue;
206
208
  const value = config[key];
207
209
  if (value !== undefined) {
208
210
  this.authSchemes.set(key, value);
@@ -1,7 +1,7 @@
1
1
  const { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require("@smithy/core/serde");
2
+ const { hasOwn, getSmithyContext } = require("@smithy/core/transport");
2
3
  const { HttpRequest, collectBody, SerdeContext, RpcProtocol } = require("@smithy/core/protocols");
3
4
  const { NormalizedSchema, deref, TypeRegistry } = require("@smithy/core/schema");
4
- const { getSmithyContext } = require("@smithy/core/transport");
5
5
 
6
6
  const majorUint64 = 0;
7
7
  const majorNegativeInt64 = 1;
@@ -299,23 +299,39 @@ function decodeTagValue(at, to, minor, unsignedInt, offset) {
299
299
  }
300
300
  else if (minor === 4) {
301
301
  const decimalFraction = decode(at + offset, to);
302
- const [exponent, mantissa] = decimalFraction;
302
+ const [rawExponent, mantissa] = decimalFraction;
303
303
  const normalizer = mantissa < 0 ? -1 : 1;
304
- const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
305
- let numericString;
304
+ const absMantissa = BigInt(normalizer) * BigInt(mantissa);
305
+ const mantissaDigits = String(absMantissa);
306
306
  const sign = mantissa < 0 ? "-" : "";
307
- numericString =
308
- exponent === 0
309
- ? mantissaStr
310
- : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
311
- numericString = numericString.replace(/^0+/g, "");
312
- if (numericString === "") {
313
- numericString = "0";
314
- }
315
- if (numericString[0] === ".") {
316
- numericString = "0" + numericString;
317
- }
318
- numericString = sign + numericString;
307
+ let numericString;
308
+ const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
309
+ if (isSmallExponent) {
310
+ const exponent = rawExponent;
311
+ const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
312
+ numericString =
313
+ exponent === 0
314
+ ? mantissaStr
315
+ : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
316
+ numericString = numericString.replace(/^0+/g, "");
317
+ if (numericString === "") {
318
+ numericString = "0";
319
+ }
320
+ if (numericString[0] === ".") {
321
+ numericString = "0" + numericString;
322
+ }
323
+ numericString = sign + numericString;
324
+ }
325
+ else {
326
+ const bigExponent = BigInt(rawExponent);
327
+ if (mantissaDigits.length === 1) {
328
+ numericString = sign + mantissaDigits + "e" + String(bigExponent);
329
+ }
330
+ else {
331
+ const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
332
+ numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
333
+ }
334
+ }
319
335
  _offset = offset + _offset;
320
336
  return nv(numericString);
321
337
  }
@@ -664,13 +680,21 @@ function encode(_input) {
664
680
  }
665
681
  else if (typeof input === "object") {
666
682
  if (input instanceof NumericValue) {
667
- const decimalIndex = input.string.indexOf(".");
668
- const exponent = decimalIndex === -1 ? 0 : decimalIndex - input.string.length + 1;
669
- const mantissa = BigInt(input.string.replace(".", ""));
683
+ let str = input.string;
684
+ let expOffset = BigInt(0);
685
+ const eIndex = str.search(/[eE]/);
686
+ if (eIndex !== -1) {
687
+ expOffset = BigInt(str.slice(eIndex + 1));
688
+ str = str.slice(0, eIndex);
689
+ }
690
+ const decimalIndex = str.indexOf(".");
691
+ const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
692
+ const exponent = expOffset - BigInt(fractionDigits);
693
+ const mantissa = BigInt(str.replace(".", ""));
670
694
  data[cursor$1++] = 0b110_00100;
671
695
  encodeInteger(majorList, 2);
672
696
  encodeStack.push(mantissa);
673
- encodeStack.push(exponent);
697
+ encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
674
698
  continue;
675
699
  }
676
700
  if (input[tagSymbol]) {
@@ -888,6 +912,8 @@ const loadSmithyRpcV2CborErrorCode = (output, data) => {
888
912
  }
889
913
  let codeKey;
890
914
  for (const key in data) {
915
+ if (!hasOwn(data, key))
916
+ continue;
891
917
  if (key.toLowerCase() === "code") {
892
918
  codeKey = key;
893
919
  break;
@@ -920,6 +946,8 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
920
946
  }
921
947
  if (endpoint.headers) {
922
948
  for (const name in endpoint.headers) {
949
+ if (!hasOwn(endpoint.headers, name))
950
+ continue;
923
951
  contents.headers[name] = endpoint.headers[name];
924
952
  }
925
953
  }
@@ -1180,6 +1208,8 @@ function writeStruct(ns, value, serdeContext) {
1180
1208
  }
1181
1209
  if (typeof value.__type === "string") {
1182
1210
  for (const k in value) {
1211
+ if (!hasOwn(value, k))
1212
+ continue;
1183
1213
  if (!memberNames.includes(k)) {
1184
1214
  writeString(k);
1185
1215
  writeUntypedValue(value[k]);
@@ -1245,6 +1275,8 @@ function writeMap(ns, value, isDocument, serdeContext) {
1245
1275
  const valueSchema = ns.getValueSchema();
1246
1276
  const keys = [];
1247
1277
  for (const k in value) {
1278
+ if (!hasOwn(value, k))
1279
+ continue;
1248
1280
  const v = value[k];
1249
1281
  if (isDocument ? v !== undefined : v != null || sparse) {
1250
1282
  keys.push(k);
@@ -1506,14 +1538,27 @@ function writeTag(tagValue, innerValue) {
1506
1538
  writeUntypedValue(innerValue);
1507
1539
  }
1508
1540
  function writeNumericValue(nv) {
1509
- const decimalIndex = nv.string.indexOf(".");
1510
- const exponent = decimalIndex === -1 ? 0 : decimalIndex - nv.string.length + 1;
1511
- const mantissa = BigInt(nv.string.replace(".", ""));
1541
+ let str = nv.string;
1542
+ let expOffset = BigInt(0);
1543
+ const eIndex = str.search(/[eE]/);
1544
+ if (eIndex !== -1) {
1545
+ expOffset = BigInt(str.slice(eIndex + 1));
1546
+ str = str.slice(0, eIndex);
1547
+ }
1548
+ const decimalIndex = str.indexOf(".");
1549
+ const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
1550
+ const exponent = expOffset - BigInt(fractionDigits);
1551
+ const mantissa = BigInt(str.replace(".", ""));
1512
1552
  ensure(9);
1513
1553
  buf[cursor++] = 0b110_00100;
1514
1554
  encodeHeader(majorList, 2);
1515
1555
  ensure(9);
1516
- writeInteger(exponent);
1556
+ if (exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn) {
1557
+ writeInteger(Number(exponent));
1558
+ }
1559
+ else {
1560
+ writeBigInt(exponent);
1561
+ }
1517
1562
  writeBigInt(mantissa);
1518
1563
  }
1519
1564
  function writeTimestamp(date) {
@@ -1645,6 +1690,8 @@ function readStruct(ns, count, startPos) {
1645
1690
  if (isUnion) {
1646
1691
  let resultEmpty = true;
1647
1692
  for (const _ in result) {
1693
+ if (!hasOwn(result, _))
1694
+ continue;
1648
1695
  resultEmpty = false;
1649
1696
  break;
1650
1697
  }
@@ -1684,23 +1731,39 @@ function readTag(ns) {
1684
1731
  if (tagNumber === 4) {
1685
1732
  const docSchema = NormalizedSchema.of(15);
1686
1733
  const pair = readValue(docSchema);
1687
- const [exponent, mantissa] = pair;
1734
+ const [rawExponent, mantissa] = pair;
1688
1735
  const normalizer = mantissa < 0 ? -1 : 1;
1689
- const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
1690
- let numericString;
1736
+ const absMantissa = BigInt(normalizer) * BigInt(mantissa);
1737
+ const mantissaDigits = String(absMantissa);
1691
1738
  const sign = mantissa < 0 ? "-" : "";
1692
- numericString =
1693
- exponent === 0
1694
- ? mantissaStr
1695
- : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
1696
- numericString = numericString.replace(/^0+/g, "");
1697
- if (numericString === "") {
1698
- numericString = "0";
1699
- }
1700
- if (numericString[0] === ".") {
1701
- numericString = "0" + numericString;
1702
- }
1703
- numericString = sign + numericString;
1739
+ let numericString;
1740
+ const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
1741
+ if (isSmallExponent) {
1742
+ const exponent = rawExponent;
1743
+ const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
1744
+ numericString =
1745
+ exponent === 0
1746
+ ? mantissaStr
1747
+ : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
1748
+ numericString = numericString.replace(/^0+/g, "");
1749
+ if (numericString === "") {
1750
+ numericString = "0";
1751
+ }
1752
+ if (numericString[0] === ".") {
1753
+ numericString = "0" + numericString;
1754
+ }
1755
+ numericString = sign + numericString;
1756
+ }
1757
+ else {
1758
+ const bigExponent = BigInt(rawExponent);
1759
+ if (mantissaDigits.length === 1) {
1760
+ numericString = sign + mantissaDigits + "e" + String(bigExponent);
1761
+ }
1762
+ else {
1763
+ const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
1764
+ numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
1765
+ }
1766
+ }
1704
1767
  return nv(numericString);
1705
1768
  }
1706
1769
  const docSchema = NormalizedSchema.of(15);
@@ -1797,6 +1860,8 @@ function readMapIndefinite(ns) {
1797
1860
  if (isUnion) {
1798
1861
  let resultEmpty = true;
1799
1862
  for (const _ in result) {
1863
+ if (!hasOwn(result, _))
1864
+ continue;
1800
1865
  resultEmpty = false;
1801
1866
  break;
1802
1867
  }
@@ -2101,6 +2166,8 @@ function transformObject(ns, value) {
2101
2166
  if (ns.isMapSchema()) {
2102
2167
  const targetSchema = ns.getValueSchema();
2103
2168
  for (const key in value) {
2169
+ if (!hasOwn(value, key))
2170
+ continue;
2104
2171
  newObject[key] = transformObject(targetSchema, value[key]);
2105
2172
  }
2106
2173
  }
@@ -2110,6 +2177,8 @@ function transformObject(ns, value) {
2110
2177
  if (isUnion) {
2111
2178
  keys = new Set();
2112
2179
  for (const k in value) {
2180
+ if (!hasOwn(value, k))
2181
+ continue;
2113
2182
  if (k !== "__type") {
2114
2183
  keys.add(k);
2115
2184
  }
@@ -2126,6 +2195,8 @@ function transformObject(ns, value) {
2126
2195
  if (isUnion && keys?.size === 1) {
2127
2196
  let newObjectEmpty = true;
2128
2197
  for (const _ in newObject) {
2198
+ if (!hasOwn(newObject, _))
2199
+ continue;
2129
2200
  newObjectEmpty = false;
2130
2201
  break;
2131
2202
  }
@@ -2136,6 +2207,8 @@ function transformObject(ns, value) {
2136
2207
  }
2137
2208
  else if (typeof value.__type === "string") {
2138
2209
  for (const k in value) {
2210
+ if (!hasOwn(value, k))
2211
+ continue;
2139
2212
  if (!(k in newObject)) {
2140
2213
  newObject[k] = value[k];
2141
2214
  }
@@ -2298,6 +2371,8 @@ class CborShapeSerializer extends SerdeContext {
2298
2371
  if (ns.isMapSchema()) {
2299
2372
  const sparse = !!ns.getMergedTraits().sparse;
2300
2373
  for (const key in sourceObject) {
2374
+ if (!hasOwn(sourceObject, key))
2375
+ continue;
2301
2376
  const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
2302
2377
  if (value != null || sparse) {
2303
2378
  newObject[key] = value;
@@ -2318,6 +2393,8 @@ class CborShapeSerializer extends SerdeContext {
2318
2393
  }
2319
2394
  else if (typeof sourceObject.__type === "string") {
2320
2395
  for (const k in sourceObject) {
2396
+ if (!hasOwn(sourceObject, k))
2397
+ continue;
2321
2398
  if (!(k in newObject)) {
2322
2399
  newObject[k] = this.serialize(15, sourceObject[k]);
2323
2400
  }
@@ -2334,6 +2411,8 @@ class CborShapeSerializer extends SerdeContext {
2334
2411
  return newArray;
2335
2412
  }
2336
2413
  for (const key in sourceObject) {
2414
+ if (!hasOwn(sourceObject, key))
2415
+ continue;
2337
2416
  newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
2338
2417
  }
2339
2418
  }
@@ -2408,6 +2487,8 @@ class CborShapeDeserializer extends SerdeContext {
2408
2487
  if (ns.isMapSchema()) {
2409
2488
  const targetSchema = ns.getValueSchema();
2410
2489
  for (const key in value) {
2490
+ if (!hasOwn(value, key))
2491
+ continue;
2411
2492
  const itemValue = this.readValue(targetSchema, value[key]);
2412
2493
  newObject[key] = itemValue;
2413
2494
  }
@@ -2418,6 +2499,8 @@ class CborShapeDeserializer extends SerdeContext {
2418
2499
  if (isUnion) {
2419
2500
  keys = new Set();
2420
2501
  for (const k in value) {
2502
+ if (!hasOwn(value, k))
2503
+ continue;
2421
2504
  if (k !== "__type") {
2422
2505
  keys.add(k);
2423
2506
  }
@@ -2434,6 +2517,8 @@ class CborShapeDeserializer extends SerdeContext {
2434
2517
  if (isUnion && keys?.size === 1) {
2435
2518
  let newObjectEmpty = true;
2436
2519
  for (const _ in newObject) {
2520
+ if (!hasOwn(newObject, _))
2521
+ continue;
2437
2522
  newObjectEmpty = false;
2438
2523
  break;
2439
2524
  }
@@ -2444,6 +2529,8 @@ class CborShapeDeserializer extends SerdeContext {
2444
2529
  }
2445
2530
  else if (typeof value.__type === "string") {
2446
2531
  for (const k in value) {
2532
+ if (!hasOwn(value, k))
2533
+ continue;
2447
2534
  if (!(k in newObject)) {
2448
2535
  newObject[k] = value[k];
2449
2536
  }
@@ -1,3 +1,4 @@
1
+ const { hasOwn } = require("@smithy/core/transport");
1
2
  const { getSmithyContext, normalizeProvider } = require("@smithy/core/transport");
2
3
  exports.getSmithyContext = getSmithyContext;
3
4
  exports.normalizeProvider = normalizeProvider;
@@ -867,6 +868,8 @@ const knownAlgorithms = Object.values(AlgorithmId);
867
868
  const getChecksumConfiguration = (runtimeConfig) => {
868
869
  const checksumAlgorithms = [];
869
870
  for (const id in AlgorithmId) {
871
+ if (!hasOwn(AlgorithmId, id))
872
+ continue;
870
873
  const algorithmId = AlgorithmId[id];
871
874
  if (runtimeConfig[algorithmId] === undefined) {
872
875
  continue;
@@ -940,7 +943,9 @@ const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeAr
940
943
  const getValueFromTextNode = (obj) => {
941
944
  const textNodeName = "#text";
942
945
  for (const key in obj) {
943
- if (Object.prototype.hasOwnProperty.call(obj, key) && obj[key][textNodeName] !== undefined) {
946
+ if (!hasOwn(obj, key))
947
+ continue;
948
+ if (obj[key][textNodeName] !== undefined) {
944
949
  obj[key] = obj[key][textNodeName];
945
950
  }
946
951
  else if (typeof obj[key] === "object" && obj[key] !== null) {
@@ -981,7 +986,9 @@ function map(arg0, arg1, arg2) {
981
986
  instructions = arg1;
982
987
  }
983
988
  }
984
- for (const key of Object.keys(instructions)) {
989
+ for (const key in instructions) {
990
+ if (!hasOwn(instructions, key))
991
+ continue;
985
992
  if (!Array.isArray(instructions[key])) {
986
993
  target[key] = instructions[key];
987
994
  continue;
@@ -1000,6 +1007,8 @@ const convertMap = (target) => {
1000
1007
  const take = (source, instructions) => {
1001
1008
  const out = {};
1002
1009
  for (const key in instructions) {
1010
+ if (!hasOwn(instructions, key))
1011
+ continue;
1003
1012
  applyInstruction(out, source, instructions, key);
1004
1013
  }
1005
1014
  return out;
@@ -1079,7 +1088,9 @@ const _json = (obj) => {
1079
1088
  }
1080
1089
  if (typeof obj === "object") {
1081
1090
  const target = {};
1082
- for (const key of Object.keys(obj)) {
1091
+ for (const key in obj) {
1092
+ if (!hasOwn(obj, key))
1093
+ continue;
1083
1094
  if (obj[key] == null) {
1084
1095
  continue;
1085
1096
  }
@@ -1,4 +1,4 @@
1
- const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
1
+ const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require("@smithy/core/transport");
2
2
  exports.isValidHostLabel = isValidHostLabel;
3
3
  exports.middlewareEndpointToEndpointV1 = toEndpointV1;
4
4
  exports.toEndpointV1 = toEndpointV1;
@@ -782,6 +782,8 @@ const resolveEndpoint = (ruleSetObject, options) => {
782
782
  const { parameters, rules } = ruleSetObject;
783
783
  options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
784
784
  for (const paramKey in parameters) {
785
+ if (!hasOwn(parameters, paramKey))
786
+ continue;
785
787
  const parameter = parameters[paramKey];
786
788
  const endpointParam = endpointParams[paramKey];
787
789
  if (endpointParam == null && parameter.default != null) {
@@ -1,5 +1,5 @@
1
1
  const { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require("@smithy/core/config");
2
- const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
2
+ const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require("@smithy/core/transport");
3
3
  exports.isValidHostLabel = isValidHostLabel;
4
4
  exports.middlewareEndpointToEndpointV1 = toEndpointV1;
5
5
  exports.toEndpointV1 = toEndpointV1;
@@ -830,6 +830,8 @@ const resolveEndpoint = (ruleSetObject, options) => {
830
830
  const { parameters, rules } = ruleSetObject;
831
831
  options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
832
832
  for (const paramKey in parameters) {
833
+ if (!hasOwn(parameters, paramKey))
834
+ continue;
833
835
  const parameter = parameters[paramKey];
834
836
  const endpointParam = endpointParams[paramKey];
835
837
  if (endpointParam == null && parameter.default != null) {
@@ -1,4 +1,5 @@
1
1
  const { Crc32 } = require("@smithy/core/checksum");
2
+ const { hasOwn } = require("@smithy/core/transport");
2
3
  const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
3
4
  const { TypeRegistry } = require("@smithy/core/schema");
4
5
 
@@ -55,7 +56,9 @@ class HeaderMarshaller {
55
56
  }
56
57
  format(headers) {
57
58
  const chunks = [];
58
- for (const headerName of Object.keys(headers)) {
59
+ for (const headerName in headers) {
60
+ if (!hasOwn(headers, headerName))
61
+ continue;
59
62
  const bytes = this.fromUtf8(headerName);
60
63
  chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
61
64
  }
@@ -638,6 +641,8 @@ class EventStreamSerde {
638
641
  }
639
642
  let unionMember = "";
640
643
  for (const key in event) {
644
+ if (!hasOwn(event, key))
645
+ continue;
641
646
  if (key !== "__type") {
642
647
  unionMember = key;
643
648
  break;
@@ -665,6 +670,8 @@ class EventStreamSerde {
665
670
  const asyncIterable = marshaller.deserialize(response.body, async (event) => {
666
671
  let unionMember = "";
667
672
  for (const key in event) {
673
+ if (!hasOwn(event, key))
674
+ continue;
668
675
  if (key !== "__type") {
669
676
  unionMember = key;
670
677
  break;
@@ -739,6 +746,8 @@ class EventStreamSerde {
739
746
  throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
740
747
  }
741
748
  for (const key in firstEvent.value) {
749
+ if (!hasOwn(firstEvent.value, key))
750
+ continue;
742
751
  initialResponseContainer[key] = firstEvent.value[key];
743
752
  }
744
753
  }
@@ -1,4 +1,5 @@
1
1
  const { Crc32 } = require("@smithy/core/checksum");
2
+ const { hasOwn } = require("@smithy/core/transport");
2
3
  const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
3
4
  const { Readable } = require("node:stream");
4
5
  const { TypeRegistry } = require("@smithy/core/schema");
@@ -56,7 +57,9 @@ class HeaderMarshaller {
56
57
  }
57
58
  format(headers) {
58
59
  const chunks = [];
59
- for (const headerName of Object.keys(headers)) {
60
+ for (const headerName in headers) {
61
+ if (!hasOwn(headers, headerName))
62
+ continue;
60
63
  const bytes = this.fromUtf8(headerName);
61
64
  chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
62
65
  }
@@ -663,6 +666,8 @@ class EventStreamSerde {
663
666
  }
664
667
  let unionMember = "";
665
668
  for (const key in event) {
669
+ if (!hasOwn(event, key))
670
+ continue;
666
671
  if (key !== "__type") {
667
672
  unionMember = key;
668
673
  break;
@@ -690,6 +695,8 @@ class EventStreamSerde {
690
695
  const asyncIterable = marshaller.deserialize(response.body, async (event) => {
691
696
  let unionMember = "";
692
697
  for (const key in event) {
698
+ if (!hasOwn(event, key))
699
+ continue;
693
700
  if (key !== "__type") {
694
701
  unionMember = key;
695
702
  break;
@@ -764,6 +771,8 @@ class EventStreamSerde {
764
771
  throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
765
772
  }
766
773
  for (const key in firstEvent.value) {
774
+ if (!hasOwn(firstEvent.value, key))
775
+ continue;
767
776
  initialResponseContainer[key] = firstEvent.value[key];
768
777
  }
769
778
  }