@songtonyli/dsh-cli 0.1.52 → 0.1.54

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 (1653) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +28 -0
  4. package/node_modules/@anthropic-ai/sdk/client.js +2 -1
  5. package/node_modules/@anthropic-ai/sdk/client.mjs +2 -1
  6. package/node_modules/@anthropic-ai/sdk/core/streaming.js +4 -2
  7. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +4 -2
  8. package/node_modules/@anthropic-ai/sdk/package.json +1 -1
  9. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +25 -10
  10. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +25 -10
  11. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.js +5 -2
  12. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs +5 -2
  13. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +10 -4
  14. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +10 -4
  15. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +40 -16
  16. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +40 -16
  17. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +25 -10
  18. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +25 -10
  19. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +30 -12
  20. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +30 -12
  21. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +20 -8
  22. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +20 -8
  23. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +22 -9
  24. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +22 -9
  25. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +25 -10
  26. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +25 -10
  27. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +30 -12
  28. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +30 -12
  29. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +15 -6
  30. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +15 -6
  31. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +25 -11
  32. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +25 -11
  33. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +4 -2
  34. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +4 -2
  35. package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +10 -4
  36. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +10 -4
  37. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +15 -6
  38. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +15 -6
  39. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.js +25 -10
  40. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs +25 -10
  41. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +30 -12
  42. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +30 -12
  43. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +10 -4
  44. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +10 -4
  45. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +15 -6
  46. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +15 -6
  47. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +20 -8
  48. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +20 -8
  49. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +22 -9
  50. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +22 -9
  51. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +20 -8
  52. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +20 -8
  53. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +30 -12
  54. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +30 -12
  55. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +35 -14
  56. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +35 -14
  57. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js +30 -12
  58. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs +30 -12
  59. package/node_modules/@anthropic-ai/sdk/resources/completions.js +5 -2
  60. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +5 -2
  61. package/node_modules/@anthropic-ai/sdk/resources/files.js +79 -10
  62. package/node_modules/@anthropic-ai/sdk/resources/files.mjs +79 -10
  63. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +52 -13
  64. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +52 -13
  65. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +10 -4
  66. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +10 -4
  67. package/node_modules/@anthropic-ai/sdk/resources/models.js +23 -4
  68. package/node_modules/@anthropic-ai/sdk/resources/models.mjs +23 -4
  69. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +64 -8
  70. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +64 -8
  71. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +67 -7
  72. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +67 -7
  73. package/node_modules/@anthropic-ai/sdk/src/client.ts +12 -1
  74. package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +4 -2
  75. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +75 -10
  76. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/versions.ts +15 -2
  77. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +30 -4
  78. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +120 -16
  79. package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +75 -10
  80. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +90 -12
  81. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +60 -8
  82. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +75 -11
  83. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +75 -10
  84. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +90 -12
  85. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +49 -10
  86. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +85 -11
  87. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +24 -2
  88. package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +30 -4
  89. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +12 -2
  90. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +2 -0
  91. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +4 -0
  92. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +45 -6
  93. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/resources.ts +75 -10
  94. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +90 -12
  95. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +30 -4
  96. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +45 -6
  97. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +60 -8
  98. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +72 -9
  99. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +60 -8
  100. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +90 -12
  101. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +105 -14
  102. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +90 -12
  103. package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +15 -2
  104. package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +161 -18
  105. package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +5 -0
  106. package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +137 -13
  107. package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +4 -0
  108. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +38 -4
  109. package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +43 -4
  110. package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +2 -0
  111. package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +127 -13
  112. package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +115 -11
  113. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +16 -4
  114. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
  115. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +14 -4
  116. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +14 -4
  117. package/node_modules/@anthropic-ai/sdk/version.js +1 -1
  118. package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
  119. package/node_modules/@aws-sdk/client-bedrock-runtime/README.md +7 -0
  120. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +2419 -185
  121. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +2 -0
  122. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commandBuilder.js +14 -0
  123. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js +2 -14
  124. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js +2 -14
  125. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js +2 -18
  126. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js +2 -14
  127. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js +2 -14
  128. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeGuardrailChecksCommand.js +4 -0
  129. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js +2 -14
  130. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -27
  131. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -18
  132. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js +2 -14
  133. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js +2 -14
  134. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js +1 -0
  135. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js +2 -1
  136. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +51 -0
  137. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.browser.js +0 -2
  138. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js +1 -2
  139. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.native.js +0 -2
  140. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js +2 -0
  141. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +244 -31
  142. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +43 -45
  143. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +34 -32
  144. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  145. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -4
  146. package/node_modules/@aws-sdk/token-providers/package.json +31 -31
  147. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +4 -4
  148. package/node_modules/@deepseek-ai/dsh/README.md +3 -1
  149. package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
  150. package/node_modules/@deepseek-ai/dsh/lib/bin.js +12 -8
  151. package/node_modules/@deepseek-ai/dsh/lib/{plugin-DkYIj96-.js → plugin-BGnVfe_D.js} +26 -8
  152. package/node_modules/@deepseek-ai/dsh/package.json +112 -111
  153. package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
  154. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
  155. package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
  156. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  157. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +22 -22
  158. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +16 -4
  159. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +17 -0
  160. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +17 -0
  161. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +22 -7
  162. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +24 -24
  163. package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +4 -4
  164. package/node_modules/@deepseek-ai/dsh-agent-preset/README.md +4 -1
  165. package/node_modules/@deepseek-ai/dsh-agent-preset/README.zh.md +4 -1
  166. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -5
  167. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/agent-experience/SKILL.md +19 -0
  168. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +10 -2
  169. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +9 -4
  170. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/user-actions.md +15 -0
  171. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +2 -2
  172. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +28 -28
  173. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
  174. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  175. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
  176. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.i18n.yaml +64 -0
  177. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.md +138 -0
  178. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.zh.md +138 -0
  179. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/index.js +501 -0
  180. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.host.js +350 -0
  181. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.remote-client.js +249 -0
  182. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/index.js +424 -0
  183. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/types.js +12 -0
  184. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +66 -0
  185. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  186. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +2 -0
  187. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +2 -0
  188. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +9 -0
  189. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +12 -0
  190. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
  191. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +10 -10
  192. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  193. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -0
  194. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -0
  195. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +533 -19
  196. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +4 -2
  197. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -40
  198. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  199. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +2 -0
  200. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +2 -0
  201. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +3 -2
  202. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +162 -6
  203. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +120 -0
  204. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +1 -0
  205. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +69 -69
  206. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  207. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
  208. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +1 -1
  209. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +1 -1
  210. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +13 -7
  211. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +2 -2
  212. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/shells.js +14 -8
  213. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +17 -17
  214. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +3 -3
  215. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
  216. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -18
  217. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -12
  218. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +0 -1
  219. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +0 -1
  220. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +2 -1
  221. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -9
  222. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  224. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  225. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  226. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +4 -4
  227. package/node_modules/@deepseek-ai/dsh-base/README.md +2 -2
  228. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -2
  229. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +11 -10
  230. package/node_modules/@deepseek-ai/dsh-base/package.json +94 -93
  231. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
  232. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  233. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  235. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
  236. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +2 -2
  237. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  238. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +4 -4
  239. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +7 -7
  240. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
  241. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +5 -5
  242. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.i18n.yaml +34 -0
  243. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.md +67 -0
  244. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.zh.md +67 -0
  245. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/client.js +75 -0
  246. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/index.js +185 -0
  247. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.host.js +284 -0
  248. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.remote-client.js +220 -0
  249. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +78 -0
  250. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
  251. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +2 -2
  252. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +1 -1
  253. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +1 -1
  254. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +12 -7
  255. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +8 -8
  256. package/node_modules/@deepseek-ai/dsh-client-store/package.json +1 -1
  257. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
  258. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +1 -1
  259. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +1 -1
  260. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +69 -80
  261. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +16 -16
  262. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +10 -10
  263. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
  264. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +49 -49
  265. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -9
  266. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -4
  267. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +11 -11
  268. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +12 -3
  269. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +11 -2
  270. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +421 -325
  271. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +4 -4
  272. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +37 -36
  273. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +4 -4
  274. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +7 -1
  275. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +7 -1
  276. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +126 -65
  277. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +15 -15
  278. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  279. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
  281. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +256 -179
  282. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +33 -32
  283. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +74 -74
  284. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
  285. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +1 -1
  287. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +1 -1
  288. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +80 -80
  289. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
  290. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +39 -39
  291. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
  292. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
  293. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +16 -16
  294. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
  295. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +23 -23
  296. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +12 -12
  297. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +37 -37
  298. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
  299. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +4 -4
  300. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -1
  301. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -1
  302. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +9 -9
  303. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
  304. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +12 -12
  305. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +16 -16
  306. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +8 -8
  307. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +11 -3
  308. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +11 -3
  309. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +266 -103
  310. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -16
  311. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +6 -6
  312. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +3 -3
  313. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +3 -3
  314. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +45 -31
  315. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +19 -18
  316. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +18 -18
  317. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +15 -15
  318. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  319. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +1 -1
  320. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +1 -1
  321. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +26 -26
  322. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +20 -20
  323. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
  324. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +9 -3
  325. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +9 -3
  326. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +1294 -1010
  327. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -15
  328. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +8 -8
  329. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +16 -8
  330. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +16 -8
  331. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +14 -2
  332. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +2 -2
  333. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
  334. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +5 -4
  335. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +4 -0
  336. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +82 -21
  337. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +1 -0
  338. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +483 -283
  339. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +7 -3
  340. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +4 -3
  341. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
  342. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +14 -5
  343. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +10 -3
  344. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +2 -0
  345. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +2 -8
  346. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +2 -2
  347. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +1 -1
  348. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +4 -4
  349. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -13
  350. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +1 -1
  351. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
  352. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
  353. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
  354. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
  355. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +182 -182
  356. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/en.json +6 -0
  357. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/zh.json +6 -0
  358. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +22 -20
  359. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -8
  360. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +6 -6
  361. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +6 -6
  362. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +5 -3
  363. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +5 -3
  364. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +269 -165
  365. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +1 -1
  366. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -16
  367. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +9 -9
  368. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +4 -4
  369. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +5 -3
  370. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +5 -3
  371. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +74 -70
  372. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +13 -13
  373. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +6 -6
  374. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -2
  375. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -2
  376. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +98 -100
  377. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -10
  378. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +8 -8
  379. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +5 -5
  380. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +5 -5
  381. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +85 -56
  382. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -12
  383. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +13 -13
  384. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +6 -6
  385. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/README.i18n.yaml +37 -0
  386. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/README.md +70 -0
  387. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/README.zh.md +70 -0
  388. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/client.js +180 -0
  389. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/index.js +6 -0
  390. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +62 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +9 -9
  392. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +24 -24
  393. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +8 -8
  394. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +27 -27
  395. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +9 -9
  396. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +2 -2
  397. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +1 -1
  398. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +1 -1
  399. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +2 -2
  400. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
  401. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +2 -2
  402. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +1 -1
  403. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +1 -1
  404. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +43 -43
  405. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +10 -10
  406. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +4 -4
  407. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +3 -1
  408. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +3 -1
  409. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +54 -58
  410. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -11
  411. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +2 -2
  412. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +1 -1
  413. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +1 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +25 -25
  415. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +11 -11
  416. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  417. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +1 -1
  418. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +1 -1
  419. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +9 -9
  420. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +70 -70
  421. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +9 -9
  422. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +18 -18
  423. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
  424. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +1 -1
  425. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +1 -1
  426. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +27 -22
  427. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
  428. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +6 -6
  429. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +4 -4
  430. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +4 -4
  431. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +209 -182
  432. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
  433. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +16 -16
  434. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +11 -11
  435. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +15 -15
  436. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
  437. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +1 -1
  438. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +1 -1
  439. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +39 -32
  440. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -13
  441. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
  442. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +37 -37
  443. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +17 -17
  444. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +8 -8
  445. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +9 -5
  446. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +9 -5
  447. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +33 -33
  448. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +4 -4
  449. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +11 -11
  450. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +9 -6
  451. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +12 -2
  452. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +12 -2
  453. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +413 -170
  454. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
  455. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +197 -197
  456. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +16 -16
  457. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +26 -20
  458. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +37 -13
  459. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +37 -13
  460. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1303 -264
  461. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +23 -19
  462. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
  463. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
  464. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
  465. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +30 -24
  466. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +14 -14
  467. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +6 -6
  468. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +5 -1
  469. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +5 -1
  470. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +116 -105
  471. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +24 -23
  472. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  473. package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +2 -2
  474. package/node_modules/@deepseek-ai/dsh-command-compact/README.md +1 -1
  475. package/node_modules/@deepseek-ai/dsh-command-compact/README.zh.md +1 -1
  476. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  477. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  478. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  479. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +2 -2
  480. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  481. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  482. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
  483. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  484. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
  485. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +2 -2
  486. package/node_modules/@deepseek-ai/dsh-config-editor/README.md +2 -0
  487. package/node_modules/@deepseek-ai/dsh-config-editor/README.zh.md +2 -0
  488. package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +8 -2
  489. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
  490. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +71 -10
  491. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
  492. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +5 -2
  493. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +8 -0
  494. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +8 -0
  495. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +58 -20
  496. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +20 -20
  497. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +12 -12
  498. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -3
  499. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/inspect-registry.js +62 -17
  500. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +17 -16
  501. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  502. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  503. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +2 -2
  504. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +2 -0
  505. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +2 -0
  506. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +7 -7
  507. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +2 -2
  508. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +2 -0
  509. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +2 -0
  510. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +14 -1
  511. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +17 -1
  512. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
  513. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  514. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  515. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +21 -21
  516. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
  517. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
  518. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +6 -4
  519. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +35 -35
  520. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +32 -32
  521. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +22 -22
  522. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +24 -24
  523. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +31 -31
  524. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/README.i18n.yaml +46 -0
  525. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/README.md +95 -0
  526. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/README.zh.md +95 -0
  527. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/cordis.patch.yml +16 -0
  528. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/icon.svg +18 -0
  529. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/lib/index.js +1 -0
  530. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/locale/en.json +6 -0
  531. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/locale/zh.json +6 -0
  532. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/package.json +53 -0
  533. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
  534. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
  535. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
  536. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +1 -1
  537. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
  538. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  539. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
  540. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  541. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +5 -5
  542. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  543. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  544. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +2 -2
  545. package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
  546. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  547. package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
  548. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
  549. package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -0
  550. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -0
  551. package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
  552. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  553. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
  554. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
  555. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
  556. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  557. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -13
  558. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  559. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/lib/index.js +3 -3
  560. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +4 -4
  561. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
  562. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +1 -1
  563. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +1 -1
  564. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  565. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
  566. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/README.i18n.yaml +37 -0
  567. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/README.md +109 -0
  568. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/README.zh.md +109 -0
  569. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/lib/index.js +88 -0
  570. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +45 -0
  571. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  572. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
  573. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  574. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  575. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  576. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  577. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  578. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +1 -1
  579. package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
  580. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +21 -21
  581. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  582. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +1 -1
  583. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +1 -1
  584. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +18 -13
  585. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
  586. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +10 -10
  587. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
  588. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +6 -6
  589. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -3
  590. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -3
  591. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +10 -6
  592. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +22 -22
  593. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +21 -21
  594. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
  595. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
  596. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  597. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +6 -6
  598. package/node_modules/@deepseek-ai/dsh-native-command/README.md +4 -4
  599. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +4 -4
  600. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +22 -20
  601. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-linux.js +2 -2
  602. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +1 -1
  603. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications.js +4 -4
  604. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +11 -10
  605. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/runner.js +5 -3
  606. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  607. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +11 -11
  608. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
  609. package/node_modules/@deepseek-ai/dsh-otel/README.i18n.yaml +37 -0
  610. package/node_modules/@deepseek-ai/dsh-otel/README.md +70 -0
  611. package/node_modules/@deepseek-ai/dsh-otel/README.zh.md +70 -0
  612. package/node_modules/@deepseek-ai/dsh-otel/lib/index.js +399 -0
  613. package/node_modules/@deepseek-ai/dsh-otel/package.json +47 -0
  614. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  615. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  616. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +2 -2
  617. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +20 -20
  618. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  619. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
  620. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
  621. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  622. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  623. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
  624. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
  625. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  626. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  627. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  628. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +2 -2
  629. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +2 -0
  630. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +2 -0
  631. package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +5 -1
  632. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  633. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
  634. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +9 -9
  635. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +13 -2
  636. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +15 -2
  637. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md +63 -0
  638. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/scripts/diagnose-windows-sandbox-acl.ps1 +798 -0
  639. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +2 -2
  640. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  641. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-DxezulnA.js → types-Cl_DXjhk.js} +89 -2
  642. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +15 -9
  643. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +4 -4
  644. package/node_modules/@deepseek-ai/dsh-schedule/README.md +4 -4
  645. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +4 -4
  646. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +6 -4
  647. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +6 -4
  648. package/node_modules/@deepseek-ai/dsh-schedule/locale/en.json +6 -0
  649. package/node_modules/@deepseek-ai/dsh-schedule/locale/zh.json +6 -0
  650. package/node_modules/@deepseek-ai/dsh-schedule/package.json +32 -30
  651. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  652. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
  653. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
  654. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
  655. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
  656. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +14 -11
  657. package/node_modules/@deepseek-ai/dsh-session/README.md +7 -3
  658. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +8 -6
  659. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +131 -91
  660. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +1 -1
  661. package/node_modules/@deepseek-ai/dsh-session/lib/types/repair.js +113 -80
  662. package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
  663. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
  664. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  665. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
  666. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
  667. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  668. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  669. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
  670. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +2 -2
  671. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +4 -2
  672. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +4 -2
  673. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +3 -3
  674. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +4 -4
  675. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +15 -15
  676. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  677. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +21 -21
  678. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  679. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +2 -2
  680. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +11 -11
  681. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
  682. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  683. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  684. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  685. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +2 -2
  686. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -34
  687. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  688. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +4 -4
  689. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.md +3 -1
  690. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.zh.md +3 -1
  691. package/node_modules/@deepseek-ai/dsh-session-telemetry/lib/index.js +7 -2
  692. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  693. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +16 -16
  694. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.md +18 -13
  695. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.zh.md +18 -13
  696. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/lib/index.js +46 -49
  697. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -24
  698. package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
  699. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +13 -13
  700. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  701. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  702. package/node_modules/@deepseek-ai/dsh-settings/package.json +12 -12
  703. package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
  704. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
  705. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  706. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  707. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  708. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +3 -3
  709. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  710. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  711. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +30 -30
  712. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  713. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
  714. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  715. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +2 -2
  716. package/node_modules/@deepseek-ai/dsh-subagent/package.json +48 -48
  717. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
  718. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
  719. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
  720. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +17 -17
  721. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  722. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +8 -8
  723. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
  724. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  725. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +4 -4
  726. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.md +2 -2
  727. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.zh.md +2 -2
  728. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +12 -3
  729. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
  730. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +2 -2
  731. package/node_modules/@deepseek-ai/dsh-time-context/README.md +1 -1
  732. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +1 -1
  733. package/node_modules/@deepseek-ai/dsh-time-context/locale/en.json +6 -0
  734. package/node_modules/@deepseek-ai/dsh-time-context/locale/zh.json +6 -0
  735. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -21
  736. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  737. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
  738. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  739. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +22 -22
  740. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.md +27 -11
  741. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.zh.md +27 -11
  742. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +211 -3
  743. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +12 -9
  744. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  745. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
  746. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
  747. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +1 -1
  748. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
  749. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +19 -19
  750. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
  751. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  752. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +1 -1
  753. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +1 -1
  754. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +1 -1
  755. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +122 -6
  756. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +3 -3
  757. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
  758. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +29 -29
  759. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
  760. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
  761. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
  762. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +17 -17
  763. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
  764. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +1 -1
  765. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +1 -1
  766. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +2 -2
  767. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
  768. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +4 -4
  769. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +2 -2
  770. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +2 -2
  771. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +1 -1
  772. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +20 -20
  773. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
  774. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
  775. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
  776. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +26 -26
  777. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
  778. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
  779. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
  780. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +22 -22
  781. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
  782. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
  783. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +8 -8
  784. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +9 -6
  785. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +9 -6
  786. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +567 -40
  787. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
  788. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
  789. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
  790. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  791. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
  792. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +19 -22
  793. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +13 -10
  794. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +13 -10
  795. package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +659 -46
  796. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +770 -0
  797. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.remote-client.js +125 -0
  798. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +289 -58
  799. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
  800. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
  801. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +35 -11
  802. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
  803. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  804. package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
  805. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  806. package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
  807. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
  808. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +2 -2
  809. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  810. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  811. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  812. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +6 -6
  813. package/node_modules/@deepseek-ai/dsh-web-app/README.md +6 -2
  814. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +6 -2
  815. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +25 -19
  816. package/node_modules/@deepseek-ai/dsh-web-app/package.json +139 -137
  817. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
  818. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-5SrrfWpU.js +127 -0
  819. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BPHePDI_.css +1 -0
  820. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  821. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +16 -16
  822. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +15 -12
  823. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +12 -7
  824. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +12 -7
  825. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +61 -15
  826. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -13
  827. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
  828. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
  829. package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
  830. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
  831. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +3 -3
  832. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  833. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
  834. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +34 -34
  835. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  836. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +11 -11
  837. package/node_modules/@earendil-works/pi-ai/README.md +52 -8
  838. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +131 -87
  839. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +17 -5
  840. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +13 -12
  841. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +21 -73
  842. package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +55 -4
  843. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +25 -65
  844. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +19 -12
  845. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +26 -23
  846. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +44 -59
  847. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +56 -56
  848. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +14 -19
  849. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  850. package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +21 -7
  851. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +5 -0
  852. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +190 -0
  853. package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +2 -0
  854. package/node_modules/@earendil-works/pi-ai/dist/compat.js +9 -6
  855. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
  856. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +49 -4
  857. package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -1
  858. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +4 -0
  859. package/node_modules/@earendil-works/pi-ai/dist/models.js +5 -2
  860. package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +2 -0
  861. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  862. package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  863. package/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
  864. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  865. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  866. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  867. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
  868. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  869. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  870. package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
  871. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  872. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  873. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  874. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  875. package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
  876. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  877. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  878. package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -0
  879. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
  880. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
  881. package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  882. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  883. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
  884. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  885. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  886. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  887. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  888. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  889. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  890. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  891. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  892. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  893. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -0
  894. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  895. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  896. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  897. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  898. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  899. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  900. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  901. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  902. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  903. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +12 -11
  904. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.js +24 -0
  905. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +6 -0
  906. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +4 -3
  907. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +22 -0
  908. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -4
  909. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +19 -5
  910. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +6 -0
  911. package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +8 -29
  912. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +25 -7
  913. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +11 -5
  914. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +9 -1
  915. package/node_modules/@earendil-works/pi-ai/dist/utils/text.js +26 -0
  916. package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +204 -0
  917. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/LICENSE +22 -0
  918. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/README.md +70 -0
  919. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/index.js +234 -0
  920. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
  921. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/package.json +51 -0
  922. package/node_modules/@earendil-works/pi-ai/package.json +9 -9
  923. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  924. package/node_modules/@google/genai/README.md +19 -4
  925. package/node_modules/@google/genai/dist/index.cjs +7737 -2768
  926. package/node_modules/@google/genai/dist/index.mjs +7730 -2769
  927. package/node_modules/@google/genai/dist/node/index.cjs +7741 -2763
  928. package/node_modules/@google/genai/dist/node/index.mjs +7734 -2764
  929. package/node_modules/@google/genai/dist/tokenizer/node.cjs +424 -117
  930. package/node_modules/@google/genai/dist/tokenizer/node.mjs +424 -117
  931. package/node_modules/@google/genai/dist/vertex_internal/index.cjs +560 -181
  932. package/node_modules/@google/genai/dist/vertex_internal/index.js +561 -182
  933. package/node_modules/@google/genai/dist/web/index.mjs +7717 -2757
  934. package/node_modules/@google/genai/package.json +3 -3
  935. package/node_modules/@keyv/serialize/LICENSE +22 -0
  936. package/node_modules/@keyv/serialize/README.md +15 -0
  937. package/node_modules/@keyv/serialize/dist/index.cjs +84 -0
  938. package/node_modules/@keyv/serialize/dist/index.js +58 -0
  939. package/node_modules/@keyv/serialize/package.json +49 -0
  940. package/node_modules/@sindresorhus/is/distribution/index.js +1354 -0
  941. package/node_modules/@sindresorhus/is/distribution/types.js +2 -0
  942. package/node_modules/@sindresorhus/is/distribution/utilities.js +3 -0
  943. package/node_modules/@sindresorhus/is/license +9 -0
  944. package/node_modules/@sindresorhus/is/package.json +76 -0
  945. package/node_modules/@sindresorhus/is/readme.md +844 -0
  946. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -70
  947. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  948. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  949. package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
  950. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +19 -8
  951. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  952. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +10 -2
  953. package/node_modules/@smithy/node-http-handler/package.json +23 -30
  954. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  955. package/node_modules/@types/http-cache-semantics/README.md +15 -0
  956. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  957. package/node_modules/agent-base/dist/helpers.js +5 -34
  958. package/node_modules/agent-base/dist/index.js +8 -40
  959. package/node_modules/agent-base/package.json +11 -11
  960. package/node_modules/byte-counter/index.js +27 -0
  961. package/node_modules/byte-counter/license +9 -0
  962. package/node_modules/byte-counter/node.js +15 -0
  963. package/node_modules/byte-counter/package.json +70 -0
  964. package/node_modules/byte-counter/readme.md +127 -0
  965. package/node_modules/byte-counter/utilities.js +13 -0
  966. package/node_modules/cacheable-lookup/LICENSE +21 -0
  967. package/node_modules/cacheable-lookup/README.md +245 -0
  968. package/node_modules/cacheable-lookup/package.json +57 -0
  969. package/node_modules/cacheable-lookup/source/index.js +452 -0
  970. package/node_modules/cacheable-request/LICENSE +19 -0
  971. package/node_modules/cacheable-request/README.md +341 -0
  972. package/node_modules/cacheable-request/dist/index.js +351 -0
  973. package/node_modules/cacheable-request/dist/types.js +19 -0
  974. package/node_modules/cacheable-request/package.json +58 -0
  975. package/node_modules/decompress-response/index.js +90 -0
  976. package/node_modules/decompress-response/license +9 -0
  977. package/node_modules/decompress-response/package.json +56 -0
  978. package/node_modules/decompress-response/readme.md +36 -0
  979. package/node_modules/form-data-encoder/lib/index.cjs +375 -0
  980. package/node_modules/form-data-encoder/lib/index.js +347 -0
  981. package/node_modules/form-data-encoder/license +21 -0
  982. package/node_modules/form-data-encoder/package.json +64 -0
  983. package/node_modules/form-data-encoder/readme.md +369 -0
  984. package/node_modules/got/dist/source/as-promise/index.js +204 -0
  985. package/node_modules/got/dist/source/as-promise/types.js +17 -0
  986. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  987. package/node_modules/got/dist/source/core/diagnostics-channel.js +49 -0
  988. package/node_modules/got/dist/source/core/errors.js +147 -0
  989. package/node_modules/got/dist/source/core/index.js +1339 -0
  990. package/node_modules/got/dist/source/core/options.js +1838 -0
  991. package/node_modules/got/dist/source/core/parse-link-header.js +33 -0
  992. package/node_modules/got/dist/source/core/response.js +41 -0
  993. package/node_modules/got/dist/source/core/timed-out.js +136 -0
  994. package/node_modules/got/dist/source/core/utils/defer-to-connect.js +44 -0
  995. package/node_modules/got/dist/source/core/utils/get-body-size.js +37 -0
  996. package/node_modules/got/dist/source/core/utils/is-client-request.js +4 -0
  997. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  998. package/node_modules/got/dist/source/core/utils/is-unix-socket-url.js +25 -0
  999. package/node_modules/got/dist/source/core/utils/options-to-url.js +48 -0
  1000. package/node_modules/got/dist/source/core/utils/proxy-events.js +15 -0
  1001. package/node_modules/got/dist/source/core/utils/timer.js +162 -0
  1002. package/node_modules/got/dist/source/core/utils/unhandle.js +20 -0
  1003. package/node_modules/got/dist/source/core/utils/url-to-options.js +22 -0
  1004. package/node_modules/got/dist/source/core/utils/weakable-map.js +24 -0
  1005. package/node_modules/got/dist/source/create.js +188 -0
  1006. package/node_modules/got/dist/source/index.js +22 -0
  1007. package/node_modules/got/dist/source/types.js +1 -0
  1008. package/node_modules/got/license +9 -0
  1009. package/node_modules/got/package.json +151 -0
  1010. package/node_modules/got/readme.md +478 -0
  1011. package/node_modules/http-cache-semantics/LICENSE +9 -0
  1012. package/node_modules/http-cache-semantics/README.md +268 -0
  1013. package/node_modules/http-cache-semantics/index.js +928 -0
  1014. package/node_modules/http-cache-semantics/package.json +19 -0
  1015. package/node_modules/http-proxy-agent/dist/index.js +26 -42
  1016. package/node_modules/http-proxy-agent/package.json +14 -13
  1017. package/node_modules/http2-wrapper/LICENSE +21 -0
  1018. package/node_modules/http2-wrapper/README.md +459 -0
  1019. package/node_modules/http2-wrapper/package.json +81 -0
  1020. package/node_modules/http2-wrapper/source/agent.js +796 -0
  1021. package/node_modules/http2-wrapper/source/auto.js +225 -0
  1022. package/node_modules/http2-wrapper/source/client-request.js +563 -0
  1023. package/node_modules/http2-wrapper/source/incoming-message.js +73 -0
  1024. package/node_modules/http2-wrapper/source/index.js +50 -0
  1025. package/node_modules/http2-wrapper/source/proxies/get-auth-headers.js +17 -0
  1026. package/node_modules/http2-wrapper/source/proxies/h1-over-h2.js +90 -0
  1027. package/node_modules/http2-wrapper/source/proxies/h2-over-h1.js +48 -0
  1028. package/node_modules/http2-wrapper/source/proxies/h2-over-h2.js +32 -0
  1029. package/node_modules/http2-wrapper/source/proxies/h2-over-hx.js +40 -0
  1030. package/node_modules/http2-wrapper/source/proxies/initialize.js +21 -0
  1031. package/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.js +11 -0
  1032. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +29 -0
  1033. package/node_modules/http2-wrapper/source/utils/check-type.js +20 -0
  1034. package/node_modules/http2-wrapper/source/utils/delay-async-destroy.js +33 -0
  1035. package/node_modules/http2-wrapper/source/utils/errors.js +51 -0
  1036. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  1037. package/node_modules/http2-wrapper/source/utils/js-stream-socket.js +8 -0
  1038. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  1039. package/node_modules/http2-wrapper/source/utils/proxy-socket-handler.js +102 -0
  1040. package/node_modules/http2-wrapper/source/utils/validate-header-name.js +11 -0
  1041. package/node_modules/http2-wrapper/source/utils/validate-header-value.js +17 -0
  1042. package/node_modules/https-proxy-agent/node_modules/agent-base/LICENSE +22 -0
  1043. package/node_modules/https-proxy-agent/node_modules/agent-base/README.md +69 -0
  1044. package/node_modules/https-proxy-agent/node_modules/agent-base/dist/helpers.js +66 -0
  1045. package/node_modules/https-proxy-agent/node_modules/agent-base/dist/index.js +178 -0
  1046. package/node_modules/https-proxy-agent/node_modules/agent-base/package.json +46 -0
  1047. package/node_modules/keyv/LICENSE +22 -0
  1048. package/node_modules/keyv/README.md +828 -0
  1049. package/node_modules/keyv/dist/index.cjs +990 -0
  1050. package/node_modules/keyv/dist/index.js +964 -0
  1051. package/node_modules/keyv/package.json +80 -0
  1052. package/node_modules/koffi/CHANGELOG.md +1 -87
  1053. package/node_modules/koffi/README.md +8 -12
  1054. package/node_modules/koffi/cnoke.cjs +66 -117
  1055. package/node_modules/koffi/doc/benchmarks.md +1 -35
  1056. package/node_modules/koffi/doc/composites.md +20 -9
  1057. package/node_modules/koffi/doc/index.md +10 -12
  1058. package/node_modules/koffi/doc/migration.md +1 -1
  1059. package/node_modules/koffi/lib/native/base/base.cc +187 -338
  1060. package/node_modules/koffi/lib/native/base/base.hh +39 -150
  1061. package/node_modules/koffi/package.json +1 -1
  1062. package/node_modules/koffi/src/koffi/CMakeLists.txt +5 -12
  1063. package/node_modules/koffi/src/koffi/index.cjs +69 -112
  1064. package/node_modules/koffi/src/koffi/index.js +66 -109
  1065. package/node_modules/koffi/src/koffi/indirect.cjs +69 -112
  1066. package/node_modules/koffi/src/koffi/indirect.js +66 -109
  1067. package/node_modules/koffi/src/koffi/src/abi/arm64.cc +1127 -87
  1068. package/node_modules/koffi/src/koffi/src/abi/arm64_asm.S +15 -54
  1069. package/node_modules/koffi/src/koffi/src/abi/arm64_asm.asm +20 -63
  1070. package/node_modules/koffi/src/koffi/src/abi/loong64_asm.S +29 -55
  1071. package/node_modules/koffi/src/koffi/src/abi/riscv64.cc +1134 -120
  1072. package/node_modules/koffi/src/koffi/src/abi/riscv64_asm.S +29 -55
  1073. package/node_modules/koffi/src/koffi/src/abi/x64sysv.cc +1124 -76
  1074. package/node_modules/koffi/src/koffi/src/abi/x64sysv_asm.S +22 -52
  1075. package/node_modules/koffi/src/koffi/src/abi/x64win.cc +1015 -46
  1076. package/node_modules/koffi/src/koffi/src/abi/x64win_asm.S +32 -32
  1077. package/node_modules/koffi/src/koffi/src/abi/x64win_asm.asm +39 -39
  1078. package/node_modules/koffi/src/koffi/src/abi/x86.cc +1048 -99
  1079. package/node_modules/koffi/src/koffi/src/abi/x86_asm.S +14 -15
  1080. package/node_modules/koffi/src/koffi/src/abi/x86_asm.asm +20 -21
  1081. package/node_modules/koffi/src/koffi/src/call.cc +280 -464
  1082. package/node_modules/koffi/src/koffi/src/call.hh +46 -67
  1083. package/node_modules/koffi/src/koffi/src/ffi.cc +224 -193
  1084. package/node_modules/koffi/src/koffi/src/ffi.hh +145 -63
  1085. package/node_modules/koffi/src/koffi/src/parser.cc +3 -3
  1086. package/node_modules/koffi/src/koffi/src/static.cjs +0 -40
  1087. package/node_modules/koffi/src/koffi/src/static.js +0 -40
  1088. package/node_modules/koffi/src/koffi/src/type.cc +51 -148
  1089. package/node_modules/koffi/src/koffi/src/type.hh +8 -19
  1090. package/node_modules/koffi/src/koffi/src/util.cc +179 -108
  1091. package/node_modules/koffi/src/koffi/src/util.hh +114 -36
  1092. package/node_modules/koffi/src/koffi/src/win32.cc +0 -2
  1093. package/node_modules/koffi/src/koffi/src/win32.hh +14 -17
  1094. package/node_modules/koffi/vendor/node-addon-api/README.md +1 -1
  1095. package/node_modules/koffi/vendor/node-addon-api/napi-inl.h +0 -39
  1096. package/node_modules/koffi/vendor/node-addon-api/napi.h +0 -43
  1097. package/node_modules/lowercase-keys/index.js +3 -0
  1098. package/node_modules/lowercase-keys/license +9 -0
  1099. package/node_modules/lowercase-keys/package.json +38 -0
  1100. package/node_modules/lowercase-keys/readme.md +32 -0
  1101. package/node_modules/micromark-util-types/package.json +2 -36
  1102. package/node_modules/mimic-response/index.js +75 -0
  1103. package/node_modules/mimic-response/license +9 -0
  1104. package/node_modules/mimic-response/package.json +41 -0
  1105. package/node_modules/mimic-response/readme.md +78 -0
  1106. package/node_modules/normalize-url/index.js +305 -0
  1107. package/node_modules/normalize-url/license +9 -0
  1108. package/node_modules/normalize-url/package.json +53 -0
  1109. package/node_modules/normalize-url/readme.md +347 -0
  1110. package/node_modules/p-cancelable/index.js +119 -0
  1111. package/node_modules/p-cancelable/license +9 -0
  1112. package/node_modules/p-cancelable/package.json +47 -0
  1113. package/node_modules/p-cancelable/readme.md +152 -0
  1114. package/node_modules/proxy-agent-negotiate/dist/index.js +35 -0
  1115. package/node_modules/proxy-agent-negotiate/package.json +43 -0
  1116. package/node_modules/quick-lru/index.js +123 -0
  1117. package/node_modules/quick-lru/license +9 -0
  1118. package/node_modules/quick-lru/package.json +40 -0
  1119. package/node_modules/quick-lru/readme.md +111 -0
  1120. package/node_modules/resolve-alpn/LICENSE +22 -0
  1121. package/node_modules/resolve-alpn/README.md +60 -0
  1122. package/node_modules/resolve-alpn/index.js +43 -0
  1123. package/node_modules/resolve-alpn/package.json +31 -0
  1124. package/node_modules/responselike/index.js +49 -0
  1125. package/node_modules/responselike/license +10 -0
  1126. package/node_modules/responselike/package.json +46 -0
  1127. package/node_modules/responselike/readme.md +75 -0
  1128. package/node_modules/sharp/dist/is.cjs +8 -2
  1129. package/node_modules/sharp/dist/is.mjs +8 -2
  1130. package/node_modules/sharp/dist/operation.cjs +2 -2
  1131. package/node_modules/sharp/dist/operation.mjs +2 -2
  1132. package/node_modules/sharp/dist/output.cjs +1 -0
  1133. package/node_modules/sharp/dist/output.mjs +1 -0
  1134. package/node_modules/sharp/dist/resize.cjs +14 -14
  1135. package/node_modules/sharp/dist/resize.mjs +14 -14
  1136. package/node_modules/sharp/dist/sharp.cjs +3 -3
  1137. package/node_modules/sharp/dist/sharp.mjs +3 -3
  1138. package/node_modules/sharp/package.json +10 -10
  1139. package/node_modules/sharp/src/binding.gyp +1 -1
  1140. package/node_modules/sharp/src/common.cc +4 -4
  1141. package/node_modules/sharp/src/common.h +2 -2
  1142. package/node_modules/sharp/src/pipeline.cc +31 -6
  1143. package/node_modules/sharp/src/utilities.cc +1 -1
  1144. package/node_modules/type-fest/license-cc0 +121 -0
  1145. package/node_modules/type-fest/license-mit +9 -0
  1146. package/node_modules/type-fest/package.json +84 -0
  1147. package/node_modules/type-fest/readme.md +1060 -0
  1148. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  1149. package/node_modules/typebox/build/format/date.mjs +1 -1
  1150. package/node_modules/typebox/build/format/date_time.mjs +3 -3
  1151. package/node_modules/typebox/build/format/email.mjs +2 -2
  1152. package/node_modules/typebox/build/format/hostname.mjs +2 -10
  1153. package/node_modules/typebox/build/format/idn_email.mjs +3 -3
  1154. package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
  1155. package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
  1156. package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
  1157. package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
  1158. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +43 -0
  1159. package/node_modules/typebox/build/format/idna/index.mjs +2 -0
  1160. package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
  1161. package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
  1162. package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
  1163. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
  1164. package/node_modules/typebox/build/format/ipv4.mjs +2 -32
  1165. package/node_modules/typebox/build/format/ipv6.mjs +2 -61
  1166. package/node_modules/typebox/build/format/iri.mjs +30 -8
  1167. package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
  1168. package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
  1169. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
  1170. package/node_modules/typebox/build/format/regex.mjs +2 -6
  1171. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  1172. package/node_modules/typebox/build/format/time.mjs +19 -14
  1173. package/node_modules/typebox/build/format/uri.mjs +3 -130
  1174. package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
  1175. package/node_modules/typebox/build/format/uri_template.mjs +4 -5
  1176. package/node_modules/typebox/build/format/url.mjs +4 -5
  1177. package/node_modules/typebox/build/guard/emit.mjs +13 -8
  1178. package/node_modules/typebox/build/guard/guard.mjs +22 -13
  1179. package/node_modules/typebox/build/guard/string.mjs +23 -31
  1180. package/node_modules/typebox/build/schema/compile.mjs +8 -8
  1181. package/node_modules/typebox/build/schema/engine/_context.mjs +12 -17
  1182. package/node_modules/typebox/build/schema/engine/_functions.mjs +2 -3
  1183. package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
  1184. package/node_modules/typebox/build/schema/engine/_stack.mjs +138 -36
  1185. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
  1186. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +20 -7
  1187. package/node_modules/typebox/build/schema/engine/allOf.mjs +2 -2
  1188. package/node_modules/typebox/build/schema/engine/anyOf.mjs +2 -2
  1189. package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
  1190. package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
  1191. package/node_modules/typebox/build/schema/engine/if.mjs +2 -2
  1192. package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
  1193. package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
  1194. package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
  1195. package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
  1196. package/node_modules/typebox/build/schema/engine/oneOf.mjs +9 -8
  1197. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
  1198. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
  1199. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +1 -3
  1200. package/node_modules/typebox/build/schema/engine/ref.mjs +3 -9
  1201. package/node_modules/typebox/build/schema/engine/schema.mjs +19 -4
  1202. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  1203. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  1204. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  1205. package/node_modules/typebox/build/schema/errors.mjs +7 -13
  1206. package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
  1207. package/node_modules/typebox/build/schema/intern/intern.mjs +259 -0
  1208. package/node_modules/typebox/build/schema/parse.mjs +10 -5
  1209. package/node_modules/typebox/build/schema/resolve/resolve.mjs +327 -1
  1210. package/node_modules/typebox/build/schema/schema.mjs +1 -0
  1211. package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
  1212. package/node_modules/typebox/build/schema/types/index.mjs +0 -2
  1213. package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
  1214. package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
  1215. package/node_modules/typebox/build/system/memory/create.mjs +3 -4
  1216. package/node_modules/typebox/build/system/memory/discard.mjs +8 -7
  1217. package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
  1218. package/node_modules/typebox/build/system/memory/update.mjs +3 -2
  1219. package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
  1220. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
  1221. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
  1222. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
  1223. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
  1224. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
  1225. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
  1226. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
  1227. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
  1228. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
  1229. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
  1230. package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
  1231. package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
  1232. package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
  1233. package/node_modules/typebox/build/type/script/parser.mjs +27 -23
  1234. package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
  1235. package/node_modules/typebox/package.json +29 -29
  1236. package/node_modules/typebox/readme.md +84 -83
  1237. package/package.json +388 -357
  1238. package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
  1239. package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
  1240. package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
  1241. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
  1242. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
  1243. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
  1244. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
  1245. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
  1246. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
  1247. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
  1248. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
  1249. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
  1250. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
  1251. package/node_modules/@aws-crypto/sha256-browser/package.json +0 -28
  1252. package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
  1253. package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
  1254. package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
  1255. package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
  1256. package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
  1257. package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
  1258. package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
  1259. package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
  1260. package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
  1261. package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
  1262. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
  1263. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
  1264. package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
  1265. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
  1266. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
  1267. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
  1268. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
  1269. package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
  1270. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
  1271. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
  1272. package/node_modules/@aws-crypto/sha256-js/package.json +0 -27
  1273. package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
  1274. package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
  1275. package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
  1276. package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
  1277. package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
  1278. package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
  1279. package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
  1280. package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
  1281. package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
  1282. package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
  1283. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
  1284. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
  1285. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
  1286. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
  1287. package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -23
  1288. package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
  1289. package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
  1290. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
  1291. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
  1292. package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
  1293. package/node_modules/@aws-crypto/util/LICENSE +0 -201
  1294. package/node_modules/@aws-crypto/util/README.md +0 -16
  1295. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
  1296. package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
  1297. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
  1298. package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
  1299. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
  1300. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
  1301. package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
  1302. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
  1303. package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
  1304. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
  1305. package/node_modules/@aws-crypto/util/package.json +0 -27
  1306. package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
  1307. package/node_modules/@aws-crypto/util/src/index.ts +0 -7
  1308. package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
  1309. package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
  1310. package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
  1311. package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
  1312. package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
  1313. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +0 -63
  1314. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +0 -49
  1315. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +0 -18
  1316. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +0 -12
  1317. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/errors.js +0 -169
  1318. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +0 -41
  1319. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +0 -78
  1320. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +0 -19
  1321. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +0 -48
  1322. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +0 -1500
  1323. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +0 -201
  1324. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +0 -9
  1325. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
  1326. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
  1327. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
  1328. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
  1329. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
  1330. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
  1331. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
  1332. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
  1333. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
  1334. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
  1335. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
  1336. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
  1337. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
  1338. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
  1339. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
  1340. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
  1341. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +0 -56
  1342. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +0 -201
  1343. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +0 -9
  1344. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
  1345. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
  1346. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
  1347. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
  1348. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
  1349. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
  1350. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
  1351. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
  1352. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
  1353. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
  1354. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +0 -2
  1355. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +0 -2
  1356. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
  1357. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
  1358. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
  1359. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
  1360. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
  1361. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
  1362. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +0 -56
  1363. package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
  1364. package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
  1365. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
  1366. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
  1367. package/node_modules/@aws-sdk/util-locate-window/package.json +0 -43
  1368. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -28
  1369. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
  1370. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
  1371. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
  1372. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
  1373. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
  1374. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +0 -1
  1375. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +0 -127
  1376. package/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +0 -36
  1377. package/node_modules/@opentelemetry/exporter-logs-otlp-http/LICENSE +0 -201
  1378. package/node_modules/@opentelemetry/exporter-logs-otlp-http/README.md +0 -112
  1379. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/index.js +0 -6
  1380. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/browser/OTLPLogExporter.js +0 -16
  1381. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/browser/index.js +0 -6
  1382. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/index.js +0 -6
  1383. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/node/OTLPLogExporter.js +0 -18
  1384. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/node/index.js +0 -6
  1385. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/version.js +0 -7
  1386. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/index.js +0 -6
  1387. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/browser/OTLPLogExporter.js +0 -16
  1388. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/browser/index.js +0 -6
  1389. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/index.js +0 -6
  1390. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/node/OTLPLogExporter.js +0 -18
  1391. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/node/index.js +0 -6
  1392. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/version.js +0 -7
  1393. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/index.js +0 -10
  1394. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/browser/OTLPLogExporter.js +0 -20
  1395. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/browser/index.js +0 -10
  1396. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/index.js +0 -10
  1397. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/OTLPLogExporter.js +0 -22
  1398. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/index.js +0 -10
  1399. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.js +0 -10
  1400. package/node_modules/@opentelemetry/exporter-logs-otlp-http/package.json +0 -91
  1401. package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  1402. package/node_modules/@smithy/is-array-buffer/README.md +0 -10
  1403. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
  1404. package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
  1405. package/node_modules/@smithy/is-array-buffer/package.json +0 -48
  1406. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
  1407. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
  1408. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
  1409. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
  1410. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
  1411. package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  1412. package/node_modules/@smithy/util-buffer-from/README.md +0 -10
  1413. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
  1414. package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
  1415. package/node_modules/@smithy/util-buffer-from/package.json +0 -49
  1416. package/node_modules/@smithy/util-utf8/LICENSE +0 -201
  1417. package/node_modules/@smithy/util-utf8/README.md +0 -4
  1418. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  1419. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  1420. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  1421. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  1422. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  1423. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  1424. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  1425. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  1426. package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  1427. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
  1428. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  1429. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  1430. package/node_modules/@smithy/util-utf8/package.json +0 -54
  1431. package/node_modules/koffi/src/koffi/src/abi/arm32.cc +0 -302
  1432. package/node_modules/koffi/src/koffi/src/abi/arm32_asm.S +0 -199
  1433. package/node_modules/koffi/src/koffi/src/abi/ppc64.cc +0 -222
  1434. package/node_modules/koffi/src/koffi/src/abi/ppc64_asm.S +0 -266
  1435. package/node_modules/koffi/src/koffi/src/interp.cc +0 -1594
  1436. package/node_modules/koffi/src/koffi/src/interp.hh +0 -142
  1437. package/node_modules/typebox/build/format/_idna.mjs +0 -246
  1438. package/node_modules/typebox/build/format/_puny.mjs +0 -77
  1439. package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
  1440. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
  1441. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
  1442. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/LICENSE +0 -0
  1443. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/README.md +0 -0
  1444. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/Resource.js +0 -0
  1445. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js +0 -0
  1446. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/config.js +0 -0
  1447. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/default-service-name.js +0 -0
  1448. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detect-resources.js +0 -0
  1449. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/EnvDetector.js +0 -0
  1450. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/NoopDetector.js +0 -0
  1451. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/index.js +0 -0
  1452. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/HostDetector.js +0 -0
  1453. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/OSDetector.js +0 -0
  1454. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/ProcessDetector.js +0 -0
  1455. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/ServiceInstanceIdDetector.js +0 -0
  1456. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/index.js +0 -0
  1457. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/index.js +0 -0
  1458. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/HostDetector.js +0 -0
  1459. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/OSDetector.js +0 -0
  1460. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js +0 -0
  1461. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ServiceInstanceIdDetector.js +0 -0
  1462. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/index.js +0 -0
  1463. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js +0 -0
  1464. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js +0 -0
  1465. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js +0 -0
  1466. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js +0 -0
  1467. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js +0 -0
  1468. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js +0 -0
  1469. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId.js +0 -0
  1470. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/utils.js +0 -0
  1471. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/index.js +0 -0
  1472. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/semconv.js +0 -0
  1473. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core/build/esm/common → dsh-otel/node_modules/@opentelemetry/resources/build/esm}/types.js +0 -0
  1474. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/utils.js +0 -0
  1475. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/build/esm/version.js +0 -0
  1476. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/Resource.js +0 -0
  1477. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/ResourceImpl.js +0 -0
  1478. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/config.js +0 -0
  1479. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/default-service-name.js +0 -0
  1480. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detect-resources.js +0 -0
  1481. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/EnvDetector.js +0 -0
  1482. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/NoopDetector.js +0 -0
  1483. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/index.js +0 -0
  1484. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/HostDetector.js +0 -0
  1485. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/OSDetector.js +0 -0
  1486. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/ProcessDetector.js +0 -0
  1487. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/ServiceInstanceIdDetector.js +0 -0
  1488. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/index.js +0 -0
  1489. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/index.js +0 -0
  1490. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/HostDetector.js +0 -0
  1491. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/OSDetector.js +0 -0
  1492. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/ProcessDetector.js +0 -0
  1493. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/ServiceInstanceIdDetector.js +0 -0
  1494. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/index.js +0 -0
  1495. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.js +0 -0
  1496. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-bsd.js +0 -0
  1497. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-darwin.js +0 -0
  1498. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-linux.js +0 -0
  1499. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-unsupported.js +0 -0
  1500. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-win.js +0 -0
  1501. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId.js +0 -0
  1502. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/utils.js +0 -0
  1503. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/index.js +0 -0
  1504. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/semconv.js +0 -0
  1505. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core/build/esnext/common → dsh-otel/node_modules/@opentelemetry/resources/build/esnext}/types.js +0 -0
  1506. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/utils.js +0 -0
  1507. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/build/esnext/version.js +0 -0
  1508. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/Resource.js +0 -0
  1509. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/ResourceImpl.js +0 -0
  1510. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/config.js +0 -0
  1511. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/default-service-name.js +0 -0
  1512. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detect-resources.js +0 -0
  1513. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js +0 -0
  1514. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/NoopDetector.js +0 -0
  1515. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/index.js +0 -0
  1516. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/HostDetector.js +0 -0
  1517. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/OSDetector.js +0 -0
  1518. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/ProcessDetector.js +0 -0
  1519. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/ServiceInstanceIdDetector.js +0 -0
  1520. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/index.js +0 -0
  1521. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js +0 -0
  1522. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js +0 -0
  1523. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js +0 -0
  1524. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js +0 -0
  1525. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetector.js +0 -0
  1526. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js +0 -0
  1527. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js +0 -0
  1528. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js +0 -0
  1529. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js +0 -0
  1530. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js +0 -0
  1531. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js +0 -0
  1532. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js +0 -0
  1533. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js +0 -0
  1534. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js +0 -0
  1535. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/index.js +0 -0
  1536. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/semconv.js +0 -0
  1537. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core/build/src/common → dsh-otel/node_modules/@opentelemetry/resources/build/src}/types.js +0 -0
  1538. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/utils.js +0 -0
  1539. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/build/src/version.js +0 -0
  1540. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/LICENSE +0 -0
  1541. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/README.md +0 -0
  1542. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/ExportResult.js +0 -0
  1543. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/baggage/constants.js +0 -0
  1544. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js +0 -0
  1545. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/baggage/utils.js +0 -0
  1546. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.js +0 -0
  1547. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/attributes.js +0 -0
  1548. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js +0 -0
  1549. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/globalThis.js +0 -0
  1550. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js +0 -0
  1551. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/time.js +0 -0
  1552. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/timer-util.js +0 -0
  1553. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources/build/esm → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/common}/types.js +0 -0
  1554. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/index.js +0 -0
  1555. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/internal/exporter.js +0 -0
  1556. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/internal/validators.js +0 -0
  1557. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js +0 -0
  1558. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/browser/index.js +0 -0
  1559. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js +0 -0
  1560. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/index.js +0 -0
  1561. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js +0 -0
  1562. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/node/index.js +0 -0
  1563. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js +0 -0
  1564. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +0 -0
  1565. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/semconv.js +0 -0
  1566. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +0 -0
  1567. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js +0 -0
  1568. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.js +0 -0
  1569. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js +0 -0
  1570. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/callback.js +0 -0
  1571. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/configuration.js +0 -0
  1572. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js +0 -0
  1573. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/merge.js +0 -0
  1574. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/promise.js +0 -0
  1575. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/timeout.js +0 -0
  1576. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/url.js +0 -0
  1577. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/build/esm/version.js +0 -0
  1578. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/ExportResult.js +0 -0
  1579. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/baggage/constants.js +0 -0
  1580. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/baggage/propagation/W3CBaggagePropagator.js +0 -0
  1581. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/baggage/utils.js +0 -0
  1582. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/anchored-clock.js +0 -0
  1583. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/attributes.js +0 -0
  1584. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/global-error-handler.js +0 -0
  1585. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/globalThis.js +0 -0
  1586. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/logging-error-handler.js +0 -0
  1587. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/time.js +0 -0
  1588. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/timer-util.js +0 -0
  1589. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources/build/esnext → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/common}/types.js +0 -0
  1590. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/index.js +0 -0
  1591. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/internal/exporter.js +0 -0
  1592. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/internal/validators.js +0 -0
  1593. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/browser/environment.js +0 -0
  1594. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.js +0 -0
  1595. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/browser/sdk-info.js +0 -0
  1596. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/index.js +0 -0
  1597. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/node/environment.js +0 -0
  1598. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/node/index.js +0 -0
  1599. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/node/sdk-info.js +0 -0
  1600. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +0 -0
  1601. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/semconv.js +0 -0
  1602. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +0 -0
  1603. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/W3CTraceContextPropagator.js +0 -0
  1604. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/rpc-metadata.js +0 -0
  1605. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/suppress-tracing.js +0 -0
  1606. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/callback.js +0 -0
  1607. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/configuration.js +0 -0
  1608. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/lodash.merge.js +0 -0
  1609. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/merge.js +0 -0
  1610. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/promise.js +0 -0
  1611. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/timeout.js +0 -0
  1612. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/url.js +0 -0
  1613. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/build/esnext/version.js +0 -0
  1614. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/ExportResult.js +0 -0
  1615. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/baggage/constants.js +0 -0
  1616. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/baggage/propagation/W3CBaggagePropagator.js +0 -0
  1617. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/baggage/utils.js +0 -0
  1618. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/anchored-clock.js +0 -0
  1619. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/attributes.js +0 -0
  1620. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/global-error-handler.js +0 -0
  1621. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/globalThis.js +0 -0
  1622. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/logging-error-handler.js +0 -0
  1623. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/time.js +0 -0
  1624. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/timer-util.js +0 -0
  1625. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources/build/src → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/common}/types.js +0 -0
  1626. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/index.js +0 -0
  1627. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/internal/exporter.js +0 -0
  1628. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/internal/validators.js +0 -0
  1629. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/browser/environment.js +0 -0
  1630. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/browser/index.js +0 -0
  1631. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/browser/sdk-info.js +0 -0
  1632. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/index.js +0 -0
  1633. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/node/environment.js +0 -0
  1634. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/node/index.js +0 -0
  1635. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/node/sdk-info.js +0 -0
  1636. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/propagation/composite.js +0 -0
  1637. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/semconv.js +0 -0
  1638. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +0 -0
  1639. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/W3CTraceContextPropagator.js +0 -0
  1640. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.js +0 -0
  1641. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.js +0 -0
  1642. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/callback.js +0 -0
  1643. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/configuration.js +0 -0
  1644. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/lodash.merge.js +0 -0
  1645. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/merge.js +0 -0
  1646. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/promise.js +0 -0
  1647. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/timeout.js +0 -0
  1648. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/url.js +0 -0
  1649. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/build/src/version.js +0 -0
  1650. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/package.json +0 -0
  1651. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/package.json +0 -0
  1652. /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-http2.js +0 -0
  1653. /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-https.js +0 -0
@@ -2,9 +2,8 @@
2
2
  // SPDX-FileCopyrightText: 2026 Niels Martignène <niels.martignene@protonmail.com>
3
3
 
4
4
  #include "lib/native/base/base.hh"
5
- #include "ffi.hh"
6
5
  #include "call.hh"
7
- #include "interp.hh"
6
+ #include "ffi.hh"
8
7
  #include "type.hh"
9
8
  #include "util.hh"
10
9
  #if defined(_WIN32)
@@ -19,14 +18,14 @@ struct RelayContext {
19
18
  CallData *call;
20
19
 
21
20
  Size idx;
22
- uint8_t *base;
21
+ uint8_t *sp;
23
22
 
24
23
  std::mutex mutex = {};
25
24
  std::condition_variable cv = {};
26
25
  bool done = false;
27
26
  };
28
27
 
29
- extern "C" napi_value SwitchAndRelay(CallData *call, Size idx, uint8_t *sp, uint8_t *saved_sp, uint8_t **new_stack);
28
+ extern "C" napi_value SwitchAndRelay(CallData *call, Size idx, uint8_t *sp, uint8_t *saved_sp, MemoryRange<uint8_t> *new_stack);
30
29
 
31
30
  #if defined(_WIN32)
32
31
 
@@ -51,87 +50,13 @@ static napi_value (*translate_zero_call)(napi_env env, napi_callback_info info);
51
50
  #if defined(K_DEBUG)
52
51
  CallData::~CallData()
53
52
  {
53
+ K_ASSERT(mem->stack.end == prev_stack);
54
+ K_ASSERT(mem->heap.ptr == prev_heap);
54
55
  K_ASSERT(!out_arguments.len);
55
56
  K_ASSERT(!used_trampolines.len);
56
- K_ASSERT(!allocator->IsUsed());
57
57
  }
58
58
  #endif
59
59
 
60
- napi_value CallData::Run(const FunctionInfo *func, void *native)
61
- {
62
- uint8_t *base = AllocStack<uint8_t>(func->plan.stk_size);
63
-
64
- const OpData *first = func->plan.sync.ptr;
65
- return RunForward(this, base, native, first);
66
- }
67
-
68
- bool CallData::PrepareAsync(const FunctionInfo *func)
69
- {
70
- uint8_t *base = AllocStack<uint8_t>(func->plan.stk_size);
71
- async_base = base;
72
-
73
- const OpData *first = func->plan.async.ptr;
74
- return !RunForward(this, base, nullptr, first); // Yield returns nullptr
75
- }
76
-
77
- void CallData::ExecuteAsync(void *native)
78
- {
79
- const OpData *next = async_ip++;
80
- RunForward(this, async_base, native, next);
81
- }
82
-
83
- napi_value CallData::EndAsync()
84
- {
85
- const OpData *next = async_ip++;
86
- return RunForward(this, async_base, nullptr, next);
87
- }
88
-
89
- void CallData::Relay(Size idx, uint8_t *base)
90
- {
91
- TrampolineInfo *trampoline = &shared.trampolines[idx];
92
- const FunctionInfo *proto = trampoline->proto;
93
-
94
- const OpData *first = proto->plan.relay.ptr;
95
- trampoline->state = RunRelay(this, trampoline, base, first);
96
- }
97
-
98
- static K_FORCE_INLINE void ConvertBuffer(BufferConversion conversion, void *ptr, Size len, Size stride)
99
- {
100
- #define SWAP(CType) \
101
- do { \
102
- uint8_t *it = (uint8_t *)ptr; \
103
- uint8_t *end = (uint8_t *)ptr + len; \
104
- \
105
- while (it < end) { \
106
- *(CType *)it = ReverseBytes(*(CType *)it); \
107
- it += stride; \
108
- } \
109
- } while (false)
110
-
111
- switch (conversion) {
112
- case BufferConversion::None: {} break;
113
-
114
- case BufferConversion::Swap16: { SWAP(uint16_t); } break;
115
- case BufferConversion::Swap32: { SWAP(uint32_t); } break;
116
- case BufferConversion::Swap64: { SWAP(uint64_t); } break;
117
-
118
- case BufferConversion::FloatToDouble: {
119
- K_ASSERT(stride == 8);
120
-
121
- len /= K_SIZE(float);
122
-
123
- for (Size i = len - 1; i >= 0; i--) {
124
- const float *src = (const float *)ptr + i;
125
- double *dest = (double *)ptr + i;
126
-
127
- *dest = *src;
128
- }
129
- } break;
130
- }
131
-
132
- #undef SWAP
133
- }
134
-
135
60
  void CallData::Finalize()
136
61
  {
137
62
  FinalizeFast();
@@ -139,68 +64,56 @@ void CallData::Finalize()
139
64
  if (out_arguments.len) {
140
65
  if (!env.IsExceptionPending()) {
141
66
  for (const OutArgument &out: out_arguments) {
67
+ napi_value value = GetReferenceValue(env, out.ref);
68
+
142
69
  switch (out.kind) {
143
70
  case OutArgument::Kind::Array: {
144
- napi_value value = GetReferenceValue(env, out.ref);
145
-
146
71
  K_ASSERT(IsArray(env, value));
147
72
 
148
73
  uint32_t len = GetArrayLength(env, value);
149
- DecodeElements(instance, value, (const uint8_t *)out.ptr, out.type, len);
74
+ DecodeElements(instance, value, out.ptr, out.type, len);
150
75
  } break;
151
76
 
152
77
  case OutArgument::Kind::String: {
153
- napi_value value = GetReferenceValue(env, out.ref);
154
-
155
78
  K_ASSERT(IsArray(env, value));
156
79
  K_ASSERT(GetArrayLength(env, value) == 1);
157
80
 
158
- Size len = strnlen((const char *)out.ptr, out.len);
81
+ Size len = strnlen((const char *)out.ptr, out.max_len);
159
82
  napi_value str = NewString(env, (const char *)out.ptr, len);
160
83
 
161
84
  napi_set_element(env, value, 0, str);
162
85
  } break;
163
86
 
164
87
  case OutArgument::Kind::String16: {
165
- napi_value value = GetReferenceValue(env, out.ref);
166
-
167
88
  K_ASSERT(IsArray(env, value));
168
89
  K_ASSERT(GetArrayLength(env, value) == 1);
169
90
 
170
- Size len = NullTerminatedLength((const char16_t *)out.ptr, out.len);
91
+ Size len = NullTerminatedLength((const char16_t *)out.ptr, out.max_len);
171
92
  napi_value str = NewString(env, (const char16_t *)out.ptr, len);
172
93
 
173
94
  napi_set_element(env, value, 0, str);
174
95
  } break;
175
96
 
176
97
  case OutArgument::Kind::String32: {
177
- napi_value value = GetReferenceValue(env, out.ref);
178
-
179
98
  K_ASSERT(IsArray(env, value));
180
99
  K_ASSERT(GetArrayLength(env, value) == 1);
181
100
 
182
- Size len = NullTerminatedLength((const char32_t *)out.ptr, out.len);
101
+ Size len = NullTerminatedLength((const char32_t *)out.ptr, out.max_len);
183
102
  napi_value str = NewString(env, (const char32_t *)out.ptr, len);
184
103
 
185
104
  napi_set_element(env, value, 0, str);
186
105
  } break;
187
106
 
188
107
  case OutArgument::Kind::Object: {
189
- napi_value value = GetReferenceValue(env, out.ref);
190
-
191
108
  if (CheckValueTag(env, value, &UnionValueMarker)) {
192
109
  UnionValue *u = nullptr;
193
110
  NAPI_OK(napi_unwrap(env, value, (void **)&u));
194
111
 
195
- u->SetRaw((const uint8_t *)out.ptr);
112
+ u->SetRaw(out.ptr);
196
113
  } else {
197
- DecodeObject(instance, value, (const uint8_t *)out.ptr, out.type->ref.type);
114
+ DecodeObject(instance, value, out.ptr, out.type->ref.type);
198
115
  }
199
116
  } break;
200
-
201
- case OutArgument::Kind::Convert: {
202
- ConvertBuffer(out.type->ref.conversion, (uint8_t *)out.ptr, out.len, out.type->ref.stride);
203
- } break;
204
117
  }
205
118
  }
206
119
  }
@@ -241,10 +154,19 @@ void CallData::FinalizeFast()
241
154
  K_DEFER { finalized = true; };
242
155
  #endif
243
156
 
244
- allocator->ReleaseAll();
157
+ mem->stack.end = prev_stack;
158
+ mem->heap.ptr = prev_heap;
159
+
160
+ if (release_alloc) {
161
+ // We could check for prev_stack == mem->stack.len and call ReleaseAll() if true, but
162
+ // it is a virtual method. Which means it could be slow (unless devirtualized), and
163
+ // most of the time there's nothing to release.
164
+ // So instead, take note of the need to call ReleaseAll() when big chunks are allocated.
165
+ mem->allocator.ReleaseAll();
166
+ }
245
167
  }
246
168
 
247
- void CallData::RelayAsync(Size idx, uint8_t *base)
169
+ void CallData::RelayAsync(Size idx, uint8_t *sp)
248
170
  {
249
171
  // JS/V8 is single-threaded, and runs on main_thread_id. Forward the call
250
172
  // to the JS event loop.
@@ -252,7 +174,7 @@ void CallData::RelayAsync(Size idx, uint8_t *base)
252
174
  RelayContext ctx = {
253
175
  .call = this,
254
176
  .idx = idx,
255
- .base = base
177
+ .sp = sp
256
178
  };
257
179
 
258
180
  NAPI_OK(napi_call_threadsafe_function(instance->broker, &ctx, napi_tsfn_blocking));
@@ -274,7 +196,7 @@ napi_value CallData::CallCallback(const TrampolineInfo *trampoline, const napi_v
274
196
  NAPI_OK(napi_get_reference_value(env, trampoline->func, &func));
275
197
 
276
198
  napi_status status = napi_call_function(env, recv, func, (size_t)count, args, &value);
277
- if (status == napi_pending_exception || status == napi_cannot_run_js) [[unlikely]]
199
+ if (status == napi_pending_exception) [[unlikely]]
278
200
  return nullptr;
279
201
  K_ASSERT(status == napi_ok);
280
202
 
@@ -330,14 +252,12 @@ Size CallData::PushStringValue(napi_value value, const char **out_str)
330
252
  {
331
253
  size_t len;
332
254
 
333
- size_t available = (size_t)(heap.end - heap.ptr);
334
- char *ptr = (char *)heap.ptr;
255
+ size_t available = (size_t)(mem->heap.end - mem->heap.ptr);
256
+ char *ptr = (char *)mem->heap.ptr;
335
257
 
336
258
  // Fast path for small strings
337
- {
338
- size_t small = std::min(available, (size_t)4096);
339
-
340
- napi_status status = napi_get_value_string_utf8(env, value, ptr, small, &len);
259
+ if (available >= 4096) [[likely]] {
260
+ napi_status status = napi_get_value_string_utf8(env, value, ptr, 4096, &len);
341
261
  if (status == napi_string_expected)
342
262
  return -1;
343
263
  K_ASSERT(status == napi_ok);
@@ -346,11 +266,10 @@ Size CallData::PushStringValue(napi_value value, const char **out_str)
346
266
 
347
267
  // UTF-8 can take up to 4 bytes for a codepoint, so truncation may
348
268
  // result in a value that is several bytes less than the buffer size.
349
- // So len < len - 4 should be enough, but exagerate a bit "just in case" :)
350
- // Avoid substraction because we're using size_t (unsigned).
269
+ // So len < 4096 - 4 should be enough, but exagerate a bit "just in case" :)
351
270
 
352
- if (len + 8 < small) {
353
- heap.ptr += (Size)AlignLen(len, 16);
271
+ if ((Size)len < 4096 - 8) {
272
+ mem->heap.ptr += (Size)AlignLen(len, 16);
354
273
 
355
274
  *out_str = ptr;
356
275
  return (Size)len;
@@ -364,12 +283,13 @@ Size CallData::PushStringValue(napi_value value, const char **out_str)
364
283
  if (len <= available) {
365
284
  NAPI_OK(napi_get_value_string_utf8(env, value, ptr, len, nullptr));
366
285
 
367
- heap.ptr += (Size)AlignLen(len, 16);
286
+ mem->heap.ptr += (Size)AlignLen(len, 16);
368
287
 
369
288
  *out_str = ptr;
370
289
  return (Size)len;
371
290
  } else {
372
- Span<char> buf = allocator->AllocateSpan<char>((Size)len);
291
+ Span<char> buf = AllocateSpan<char>(&mem->allocator, (Size)len);
292
+ release_alloc |= (prev_stack == mem->stack.end);
373
293
 
374
294
  NAPI_OK(napi_get_value_string_utf8(env, value, buf.ptr, len, nullptr));
375
295
 
@@ -390,15 +310,16 @@ Size CallData::PushString16Value(napi_value value, const char16_t **out_str16)
390
310
 
391
311
  len++;
392
312
 
393
- buf.ptr = (char16_t *)heap.ptr;
394
- buf.len = (heap.end - heap.ptr) / 2;
313
+ buf.ptr = (char16_t *)mem->heap.ptr;
314
+ buf.len = (mem->heap.end - mem->heap.ptr) / 2;
395
315
 
396
316
  if (len <= (size_t)buf.len) {
397
317
  NAPI_OK(napi_get_value_string_utf16(env, value, buf.ptr, len, nullptr));
398
318
 
399
- heap.ptr += (Size)AlignLen(len * 2, 16);
319
+ mem->heap.ptr += (Size)AlignLen(len * 2, 16);
400
320
  } else {
401
- buf = allocator->AllocateSpan<char16_t>((Size)len);
321
+ buf = AllocateSpan<char16_t>(&mem->allocator, (Size)len);
322
+ release_alloc |= (prev_stack == mem->stack.end);
402
323
 
403
324
  NAPI_OK(napi_get_value_string_utf16(env, value, buf.ptr, len, nullptr));
404
325
  }
@@ -418,13 +339,14 @@ Size CallData::PushString32Value(napi_value value, const char32_t **out_str32)
418
339
  if (buf16.len < 0) [[unlikely]]
419
340
  return -1;
420
341
 
421
- buf.ptr = (char32_t *)heap.ptr;
422
- buf.len = (heap.end - heap.ptr) / 4;
342
+ buf.ptr = (char32_t *)mem->heap.ptr;
343
+ buf.len = (mem->heap.end - mem->heap.ptr) / 4;
423
344
 
424
345
  if (buf16.len < buf.len) [[likely]] {
425
- heap.ptr += AlignLen(buf16.len * 4, 16);
346
+ mem->heap.ptr += AlignLen(buf16.len * 4, 16);
426
347
  } else {
427
- buf = allocator->AllocateSpan<char32_t>(buf16.len);
348
+ buf = AllocateSpan<char32_t>(&mem->allocator, buf16.len);
349
+ release_alloc |= (prev_stack == mem->stack.end);
428
350
  }
429
351
 
430
352
  Size j = 0;
@@ -454,7 +376,7 @@ Size CallData::PushString32Value(napi_value value, const char32_t **out_str32)
454
376
  return j;
455
377
  }
456
378
 
457
- static K_FORCE_INLINE napi_value GetMemberValue(napi_env env, napi_value obj, const RecordMember &member)
379
+ static FORCE_INLINE napi_value GetMemberValue(napi_env env, napi_value obj, const RecordMember &member)
458
380
  {
459
381
  napi_value value;
460
382
 
@@ -471,7 +393,8 @@ static K_FORCE_INLINE napi_value GetMemberValue(napi_env env, napi_value obj, co
471
393
 
472
394
  bool CallData::PushObject(napi_value obj, const TypeInfo *type, uint8_t *origin)
473
395
  {
474
- K_ASSERT(IsAggregate(type));
396
+ K_ASSERT(type->primitive == PrimitiveKind::Record ||
397
+ type->primitive == PrimitiveKind::Union);
475
398
 
476
399
  if (GetKindOf(env, obj) != napi_object) [[unlikely]] {
477
400
  ThrowError<Napi::TypeError>(env, "Unexpected %1 value, expected object", GetValueType(instance, obj));
@@ -528,7 +451,8 @@ bool CallData::PushObject(napi_value obj, const TypeInfo *type, uint8_t *origin)
528
451
  }
529
452
  }
530
453
 
531
- MemSet(origin, type->fill, type->size);
454
+ int fill = (type->flags & (int)TypeFlag::FillWithOnes) ? 0xFF : 0;
455
+ MemSet(origin, fill, type->size);
532
456
 
533
457
  #define PUSH_INTEGER(CType) \
534
458
  do { \
@@ -695,12 +619,15 @@ bool CallData::PushNormalArray(Napi::Array array, const TypeInfo *type, Size siz
695
619
  len = size / stride;
696
620
 
697
621
  if (stride != ref->size) {
698
- MemSet(origin, type->fill, size);
622
+ int fill = (type->flags & (int)TypeFlag::FillWithOnes) ? 0xFF : 0;
623
+ MemSet(origin, fill, size);
699
624
  }
700
625
  } else if (stride == ref->size) {
701
- MemSet(origin + available, type->fill, size - available);
626
+ int fill = (type->flags & (int)TypeFlag::FillWithOnes) ? 0xFF : 0;
627
+ MemSet(origin + available, fill, size - available);
702
628
  } else {
703
- MemSet(origin, type->fill, size);
629
+ int fill = (type->flags & (int)TypeFlag::FillWithOnes) ? 0xFF : 0;
630
+ MemSet(origin, fill, size);
704
631
  }
705
632
 
706
633
  Size offset = 0;
@@ -890,8 +817,6 @@ void CallData::PushBuffer(Span<const uint8_t> buffer, const TypeInfo *type, uint
890
817
  if (stride == ref->size) {
891
818
  MemCpy(origin, buffer.ptr, buffer.len);
892
819
  MemSet(origin + buffer.len, 0, (Size)type->size - buffer.len);
893
-
894
- ConvertBuffer(type->ref.conversion, origin, buffer.len, stride);
895
820
  } else {
896
821
  Size len = buffer.len / ref->size;
897
822
 
@@ -901,9 +826,29 @@ void CallData::PushBuffer(Span<const uint8_t> buffer, const TypeInfo *type, uint
901
826
 
902
827
  memcpy(dest, src, ref->size);
903
828
  }
829
+ }
830
+
831
+ #define SWAP(CType) \
832
+ do { \
833
+ Size len = buffer.len / K_SIZE(CType); \
834
+ \
835
+ for (Size i = 0; i < len; i++) { \
836
+ CType *ptr = (CType *)(origin + i * stride); \
837
+ *ptr = ReverseBytes(*ptr); \
838
+ } \
839
+ } while (false)
904
840
 
905
- ConvertBuffer(type->ref.conversion, origin, len * stride, stride);
841
+ if (type->primitive == PrimitiveKind::Array || type->primitive == PrimitiveKind::Pointer) {
842
+ if (ref->primitive == PrimitiveKind::Int16S || ref->primitive == PrimitiveKind::UInt16S) {
843
+ SWAP(uint16_t);
844
+ } else if (ref->primitive == PrimitiveKind::Int32S || ref->primitive == PrimitiveKind::UInt32S) {
845
+ SWAP(uint32_t);
846
+ } else if (ref->primitive == PrimitiveKind::Int64S || ref->primitive == PrimitiveKind::UInt64S) {
847
+ SWAP(uint64_t);
848
+ }
906
849
  }
850
+
851
+ #undef SWAP
907
852
  }
908
853
 
909
854
  bool CallData::PushStringArray(napi_value value, const TypeInfo *type, uint8_t *origin)
@@ -940,45 +885,28 @@ bool CallData::PushPointer(napi_value value, const TypeInfo *type, int direction
940
885
  // just made things worse. Oh, well.
941
886
 
942
887
  void *ptr = nullptr;
943
- Size len = 0;
888
+ napi_valuetype kind = napi_undefined;
944
889
 
945
890
  restart:
946
891
 
947
- if (TryPointer(env, value, &ptr, &len)) {
948
- if (type->ref.conversion == BufferConversion::None) [[likely]] {
949
- *out_ptr = ptr;
950
- return true;
951
- }
952
-
953
- if (len >= 0) {
954
- if (directions & 2) {
955
- if (directions & 1) {
956
- ConvertBuffer(type->ref.conversion, ptr, len, type->ref.stride);
957
- }
892
+ if (TryPointer(env, value, &ptr, &kind)) {
893
+ #if defined(EXTERNAL_POINTERS)
894
+ if (kind == napi_external && CheckValueTag(env, value, &CastMarker)) {
895
+ Napi::External<ValueCast> external = Napi::External<ValueCast>(env, value);
896
+ ValueCast *cast = external.Data();
958
897
 
959
- OutArgument *out = out_arguments.AppendDefault();
898
+ NAPI_OK(napi_get_reference_value(env, cast->ref, &value));
899
+ type = cast->type;
960
900
 
961
- out->kind = OutArgument::Kind::Convert;
962
- out->ptr = ptr;
963
- out->len = len;
964
- out->type = type;
965
- } else if (directions & 1) { // In
966
- void *copy = AllocHeap(len);
967
-
968
- MemCpy(copy, ptr, len);
969
- ConvertBuffer(type->ref.conversion, copy, len, type->ref.stride);
970
-
971
- ptr = copy;
972
- }
901
+ goto restart;
973
902
  }
903
+ #endif
974
904
 
975
905
  *out_ptr = ptr;
976
906
  return true;
977
907
  }
978
908
 
979
- // When TryPointer fails, it stuffs the napi_valuetype (kind) in out_len to help
980
- napi_valuetype kind = (napi_valuetype)len;
981
-
909
+ #if !defined(EXTERNAL_POINTERS)
982
910
  if (kind == napi_external && CheckValueTag(env, value, &CastMarker)) {
983
911
  Napi::External<ValueCast> external = Napi::External<ValueCast>(env, value);
984
912
  ValueCast *cast = external.Data();
@@ -988,6 +916,7 @@ restart:
988
916
 
989
917
  goto restart;
990
918
  }
919
+ #endif
991
920
 
992
921
  return PushPointerSlow(value, kind, type, directions, out_ptr);
993
922
  }
@@ -1004,38 +933,27 @@ bool CallData::PushPointerSlow(napi_value value, napi_valuetype kind, const Type
1004
933
  if (directions & 2) [[unlikely]]
1005
934
  goto unexpected;
1006
935
 
1007
- switch (ref->primitive) {
1008
- case PrimitiveKind::Void: {
1009
- if (ref != instance->void_type) [[unlikely]]
1010
- goto unexpected;
1011
-
1012
- PushStringValue(value, (const char **)out_ptr);
1013
- return true;
1014
- } break;
1015
-
1016
- case PrimitiveKind::Int8: {
1017
- PushStringValue(value, (const char **)out_ptr);
1018
- return true;
1019
- } break;
1020
- case PrimitiveKind::Int16: {
1021
- PushString16Value(value, (const char16_t **)out_ptr);
1022
- return true;
1023
- } break;
1024
- case PrimitiveKind::Int32: {
1025
- PushString32Value(value, (const char32_t **)out_ptr);
1026
- return true;
1027
- } break;
1028
-
1029
- default: goto unexpected;
936
+ if (ref == instance->void_type) {
937
+ PushStringValue(value, (const char **)out_ptr);
938
+ return true;
939
+ } else if (ref->primitive == PrimitiveKind::Int8) {
940
+ PushStringValue(value, (const char **)out_ptr);
941
+ return true;
942
+ } else if (ref->primitive == PrimitiveKind::Int16) {
943
+ PushString16Value(value, (const char16_t **)out_ptr);
944
+ return true;
945
+ } else if (ref->primitive == PrimitiveKind::Int32) {
946
+ PushString32Value(value, (const char32_t **)out_ptr);
947
+ return true;
948
+ } else {
949
+ goto unexpected;
1030
950
  }
1031
-
1032
- K_UNREACHABLE();
1033
951
  } else if (IsArray(env, value)) {
1034
952
  Napi::Array array = Napi::Array(env, value);
1035
953
  Size len = PushIndirectString(array, ref, &ptr);
1036
954
 
1037
955
  OutArgument::Kind out_kind;
1038
- Size out_len = 0;
956
+ Size out_max_len = -1;
1039
957
 
1040
958
  if (len >= 0) {
1041
959
  if (!ref->size && ref != instance->void_type) [[unlikely]] {
@@ -1048,7 +966,7 @@ bool CallData::PushPointerSlow(napi_value value, napi_valuetype kind, const Type
1048
966
  case 2: { out_kind = OutArgument::Kind::String16; } break;
1049
967
  case 4: { out_kind = OutArgument::Kind::String32; } break;
1050
968
  }
1051
- out_len = len;
969
+ out_max_len = len;
1052
970
  } else {
1053
971
  Size size = (Size)array.Length() * ref->size;
1054
972
 
@@ -1076,14 +994,15 @@ bool CallData::PushPointerSlow(napi_value value, napi_valuetype kind, const Type
1076
994
  NAPI_OK(napi_create_reference(env, value, 1, &out->ref));
1077
995
 
1078
996
  out->kind = out_kind;
1079
- out->ptr = ptr;
1080
- out->len = out_len;
997
+ out->ptr = (const uint8_t *)ptr;
1081
998
  out->type = type;
999
+ out->max_len = out_max_len;
1082
1000
  }
1083
1001
 
1084
1002
  *out_ptr = ptr;
1085
1003
  return true;
1086
- } else if (IsAggregate(ref)) [[likely]] {
1004
+ } else if (ref->primitive == PrimitiveKind::Record ||
1005
+ ref->primitive == PrimitiveKind::Union) [[likely]] {
1087
1006
  ptr = (void *)AllocHeap(ref->size);
1088
1007
 
1089
1008
  if (ref->primitive == PrimitiveKind::Union &&
@@ -1108,8 +1027,9 @@ bool CallData::PushPointerSlow(napi_value value, napi_valuetype kind, const Type
1108
1027
  NAPI_OK(napi_create_reference(env, value, 1, &out->ref));
1109
1028
 
1110
1029
  out->kind = OutArgument::Kind::Object;
1111
- out->ptr = ptr;
1030
+ out->ptr = (const uint8_t *)ptr;
1112
1031
  out->type = type;
1032
+ out->max_len = -1;
1113
1033
  }
1114
1034
 
1115
1035
  *out_ptr = ptr;
@@ -1138,18 +1058,27 @@ unexpected:
1138
1058
  bool CallData::PushCallback(napi_value value, const TypeInfo *type, void **out_ptr)
1139
1059
  {
1140
1060
  void *ptr = nullptr;
1141
- Size len = 0;
1061
+ napi_valuetype kind = napi_undefined;
1142
1062
 
1143
1063
  restart:
1144
1064
 
1145
- if (TryPointer(env, value, &ptr, &len)) {
1065
+ if (TryPointer(env, value, &ptr, &kind)) {
1066
+ #if defined(EXTERNAL_POINTERS)
1067
+ if (kind == napi_external && CheckValueTag(env, value, &CastMarker)) {
1068
+ Napi::External<ValueCast> external = Napi::External<ValueCast>(env, value);
1069
+ ValueCast *cast = external.Data();
1070
+
1071
+ NAPI_OK(napi_get_reference_value(env, cast->ref, &value));
1072
+ type = cast->type;
1073
+
1074
+ goto restart;
1075
+ }
1076
+ #endif
1077
+
1146
1078
  *out_ptr = ptr;
1147
1079
  return true;
1148
1080
  }
1149
1081
 
1150
- // When TryPointer fails, it stuffs the napi_valuetype (kind) in out_len to help
1151
- napi_valuetype kind = (napi_valuetype)len;
1152
-
1153
1082
  if (kind == napi_function) {
1154
1083
  Napi::Function func = Napi::Function(env, value);
1155
1084
 
@@ -1159,6 +1088,7 @@ restart:
1159
1088
 
1160
1089
  *out_ptr = ptr;
1161
1090
  return true;
1091
+ #if !defined(EXTERNAL_POINTERS)
1162
1092
  } else if (kind == napi_external && CheckValueTag(env, value, &CastMarker)) {
1163
1093
  Napi::External<ValueCast> external = Napi::External<ValueCast>(env, value);
1164
1094
  ValueCast *cast = external.Data();
@@ -1167,6 +1097,7 @@ restart:
1167
1097
  type = cast->type;
1168
1098
 
1169
1099
  goto restart;
1100
+ #endif
1170
1101
  }
1171
1102
 
1172
1103
  ThrowError<Napi::TypeError>(env, "Unexpected %1 value, expected %2", GetValueType(instance, value), type->name);
@@ -1195,7 +1126,7 @@ Size CallData::PushIndirectString(Napi::Array array, const TypeInfo *ref, void *
1195
1126
 
1196
1127
  void *CallData::ReserveTrampoline(const FunctionInfo *proto, Napi::Function func)
1197
1128
  {
1198
- if (!InitAsyncBroker(instance)) [[unlikely]]
1129
+ if (!InitAsyncBroker(env, instance)) [[unlikely]]
1199
1130
  return nullptr;
1200
1131
 
1201
1132
  int16_t idx;
@@ -1220,11 +1151,13 @@ void *CallData::ReserveTrampoline(const FunctionInfo *proto, Napi::Function func
1220
1151
  trampoline->state = 1;
1221
1152
  trampoline->env = env;
1222
1153
  trampoline->instance = instance;
1223
- trampoline->stack = instance->sync_memory.stack;
1154
+ trampoline->stack0 = instance->memories[0]->stack0;
1224
1155
  trampoline->proto = proto;
1225
1156
  NAPI_OK(napi_create_reference(env, func, 1, &trampoline->func));
1226
1157
 
1227
- return GetTrampolinePointer(idx);
1158
+ void *ptr = GetTrampoline(idx);
1159
+
1160
+ return ptr;
1228
1161
  }
1229
1162
 
1230
1163
  bool CallData::CheckDynamicLength(napi_value obj, Size element, const char *countedby, napi_value value)
@@ -1270,17 +1203,6 @@ bool CallData::CheckDynamicLength(napi_value obj, Size element, const char *coun
1270
1203
 
1271
1204
  #if defined(K_DEBUG)
1272
1205
 
1273
- void CallData::FillMemory(void *ptr, Size len)
1274
- {
1275
- static bool randomize = GetDebugFlag("RANDOMIZE_MEMORY");
1276
-
1277
- if (randomize) {
1278
- FillRandomSafe(ptr, len);
1279
- } else {
1280
- MemSet(ptr, 0, len);
1281
- }
1282
- }
1283
-
1284
1206
  static bool IsDebugCallsEnabled()
1285
1207
  {
1286
1208
  static bool debug = GetDebugFlag("DEBUG_CALLS");
@@ -1302,7 +1224,7 @@ void CallData::DebugCall(const FunctionInfo *func)
1302
1224
  }
1303
1225
  }
1304
1226
 
1305
- PrintLn(StdErr, "Return: %1 (%2)", func->ret->name, FmtMemSize(func->ret->size));
1227
+ PrintLn(StdErr, "Return: %1 (%2)", func->ret.type->name, FmtMemSize(func->ret.type->size));
1306
1228
  }
1307
1229
 
1308
1230
  void CallData::DebugForward()
@@ -1310,8 +1232,8 @@ void CallData::DebugForward()
1310
1232
  if (!IsDebugCallsEnabled())
1311
1233
  return;
1312
1234
 
1313
- Span<const uint8_t> stack = MakeSpan(new_stack, this->stack.end);
1314
- Span<const uint8_t> heap = MakeSpan(prev_heap, this->heap.ptr);
1235
+ Span<const uint8_t> stack = MakeSpan(mem->stack.end, prev_stack - mem->stack.end);
1236
+ Span<const uint8_t> heap = MakeSpan(prev_heap, mem->heap.ptr - prev_heap);
1315
1237
 
1316
1238
  DumpMemory("Stack", stack);
1317
1239
  DumpMemory("Heap", heap);
@@ -1319,13 +1241,7 @@ void CallData::DebugForward()
1319
1241
 
1320
1242
  #endif
1321
1243
 
1322
- #if defined(__GNUC__)
1323
- #define TRANSLATE_FUNC __attribute__((no_stack_protector))
1324
- #else
1325
- #define TRANSLATE_FUNC
1326
- #endif
1327
-
1328
- static TRANSLATE_FUNC napi_value TranslateZeroCall(napi_env env, napi_callback_info info)
1244
+ static napi_value TranslateZeroCall(napi_env env, napi_callback_info info)
1329
1245
  {
1330
1246
  struct CallbackBundle {
1331
1247
  napi_env env;
@@ -1336,28 +1252,27 @@ static TRANSLATE_FUNC napi_value TranslateZeroCall(napi_env env, napi_callback_i
1336
1252
  FunctionInfo *func = (FunctionInfo *)(*ptr)->data;
1337
1253
 
1338
1254
  InstanceData *instance = func->instance;
1339
- CallData call(env, instance, &instance->sync_memory);
1255
+ InstanceMemory *mem = instance->memories[0];
1256
+ CallData call(env, instance, mem, func->native);
1340
1257
 
1341
1258
  K_DEFER_C(prev_call = instance->sync_call) { instance->sync_call = prev_call; };
1342
1259
  instance->sync_call = &call;
1343
1260
 
1344
1261
  call.DebugCall(func);
1345
1262
 
1346
- napi_value ret = call.Run(func, func->native);
1263
+ napi_value ret = call.Run(func, nullptr);
1347
1264
  call.FinalizeFast();
1348
1265
 
1349
1266
  return ret;
1350
1267
  }
1351
1268
 
1352
- static TRANSLATE_FUNC napi_value TranslateFastCall(napi_env env, napi_callback_info info)
1269
+ napi_value TranslateFastCall(napi_env env, napi_callback_info info)
1353
1270
  {
1354
- static_assert(MaxParameters >= 6);
1355
-
1356
- CallData call(env);
1271
+ napi_value args[6];
1357
1272
  size_t count = 6;
1358
1273
  FunctionInfo *func;
1359
1274
 
1360
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, (void **)&func));
1275
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, (void **)&func));
1361
1276
 
1362
1277
  if (count < (size_t)func->required_parameters) [[unlikely]] {
1363
1278
  ThrowError<Napi::TypeError>(env, "Expected %1 arguments, got %2", func->parameters.len, count);
@@ -1365,79 +1280,70 @@ static TRANSLATE_FUNC napi_value TranslateFastCall(napi_env env, napi_callback_i
1365
1280
  }
1366
1281
 
1367
1282
  InstanceData *instance = func->instance;
1368
- call.Init(instance, &instance->sync_memory);
1283
+ InstanceMemory *mem = instance->memories[0];
1284
+ CallData call(env, instance, mem, func->native);
1369
1285
 
1370
1286
  K_DEFER_C(prev_call = instance->sync_call) { instance->sync_call = prev_call; };
1371
1287
  instance->sync_call = &call;
1372
1288
 
1373
1289
  call.DebugCall(func);
1374
1290
 
1375
- napi_value ret = call.Run(func, func->native);
1291
+ napi_value ret = call.Run(func, args);
1376
1292
  call.FinalizeFast();
1377
1293
 
1378
1294
  return ret;
1379
1295
  }
1380
1296
 
1381
- static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateNormalCall(CallData *call, const FunctionInfo *func, void *native, Size count)
1297
+ static FORCE_INLINE napi_value TranslateNormalCall(napi_env env, const FunctionInfo *func, void *native, napi_value *args, Size count)
1382
1298
  {
1383
1299
  if (count < func->required_parameters) [[unlikely]] {
1384
- ThrowError<Napi::TypeError>(call->env, "Expected %1 arguments, got %2", func->parameters.len, count);
1385
- return call->env.Null();
1300
+ ThrowError<Napi::TypeError>(env, "Expected %1 arguments, got %2", func->parameters.len, count);
1301
+ return Napi::Env(env).Null();
1386
1302
  }
1387
1303
 
1388
1304
  InstanceData *instance = func->instance;
1389
- call->Init(instance, &instance->sync_memory);
1305
+ InstanceMemory *mem = instance->memories[0];
1306
+ CallData call(env, instance, mem, native);
1390
1307
 
1391
1308
  K_DEFER_C(prev_call = instance->sync_call) { instance->sync_call = prev_call; };
1392
- instance->sync_call = call;
1309
+ instance->sync_call = &call;
1393
1310
 
1394
- call->DebugCall(func);
1311
+ call.DebugCall(func);
1395
1312
 
1396
- napi_value ret = call->Run(func, native);
1397
- call->Finalize();
1313
+ napi_value ret = call.Run(func, args);
1314
+ call.Finalize();
1398
1315
 
1399
1316
  return ret;
1400
1317
  }
1401
1318
 
1402
- static TRANSLATE_FUNC napi_value TranslateNormalCall(napi_env env, napi_callback_info info)
1319
+ static napi_value TranslateNormalCall(napi_env env, napi_callback_info info)
1403
1320
  {
1404
- static_assert(MaxParameters >= 6);
1321
+ static_assert(MaxParameters >= 8);
1405
1322
 
1406
- CallData call(env);
1407
- size_t count = 6;
1323
+ napi_value args[MaxParameters];
1324
+ size_t count = 8;
1408
1325
  FunctionInfo *func;
1409
1326
 
1410
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, (void **)&func));
1327
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, (void **)&func));
1411
1328
 
1412
- if (count > 6) {
1413
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, nullptr));
1329
+ if (count > 8) {
1330
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, nullptr));
1414
1331
  count = std::min(count, (size_t)MaxParameters);
1415
1332
  }
1416
1333
 
1417
- return TranslateNormalCall(&call, func, func->native, (Size)count);
1334
+ return TranslateNormalCall(env, func, func->native, args, (Size)count);
1418
1335
  }
1419
1336
 
1420
- static TRANSLATE_FUNC napi_value TranslateNormalCallDebugAsync(napi_env env, napi_callback_info info)
1337
+ static FORCE_INLINE napi_value TranslateNormalCallDebugAsync(napi_env env, const FunctionInfo *func, void *native, napi_value *args, Size count)
1421
1338
  {
1422
- static_assert(MaxParameters >= 8);
1423
-
1424
- CallData call(env);
1425
- size_t count = 8;
1426
- FunctionInfo *func;
1427
-
1428
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, (void **)&func));
1429
-
1430
- if (count > 8) {
1431
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, nullptr));
1432
- count = std::min(count, (size_t)MaxParameters);
1433
- }
1434
- if (count < (size_t)func->required_parameters) [[unlikely]] {
1339
+ if (count < func->required_parameters) [[unlikely]] {
1435
1340
  ThrowError<Napi::TypeError>(env, "Expected %1 arguments, got %2", func->parameters.len, count);
1436
1341
  return Napi::Env(env).Null();
1437
1342
  }
1438
1343
 
1439
1344
  InstanceData *instance = func->instance;
1440
- call.Init(instance, &instance->sync_memory);
1345
+ InstanceMemory *mem = instance->memories[0];
1346
+ CallData call(env, instance, mem, native);
1441
1347
 
1442
1348
  K_DEFER_C(prev_call = instance->sync_call) { instance->sync_call = prev_call; };
1443
1349
  instance->sync_call = &call;
@@ -1449,8 +1355,8 @@ static TRANSLATE_FUNC napi_value TranslateNormalCallDebugAsync(napi_env env, nap
1449
1355
  // instructions, by setting DEBUG_ASYNC=1.
1450
1356
 
1451
1357
  napi_value ret;
1452
- if (call.PrepareAsync(func)) {
1453
- call.ExecuteAsync(func->native);
1358
+ if (call.PrepareAsync(func, args)) {
1359
+ call.ExecuteAsync();
1454
1360
  ret = call.EndAsync();
1455
1361
  } else {
1456
1362
  ret = Napi::Env(env).Null();
@@ -1460,14 +1366,33 @@ static TRANSLATE_FUNC napi_value TranslateNormalCallDebugAsync(napi_env env, nap
1460
1366
  return ret;
1461
1367
  }
1462
1368
 
1463
- static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateVariadicCall(CallData *call, const FunctionInfo *func, void *native, Size count)
1369
+ static napi_value TranslateNormalCallDebugAsync(napi_env env, napi_callback_info info)
1464
1370
  {
1465
- InstanceData *instance = func->instance;
1466
- call->Init(instance, &instance->sync_memory);
1371
+ static_assert(MaxParameters >= 8);
1372
+
1373
+ napi_value args[MaxParameters];
1374
+ size_t count = 8;
1375
+ FunctionInfo *func;
1376
+
1377
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, (void **)&func));
1378
+
1379
+ if (count > 8) {
1380
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, nullptr));
1381
+ count = std::min(count, (size_t)MaxParameters);
1382
+ }
1383
+
1384
+ return TranslateNormalCallDebugAsync(env, func, func->native, args, count);
1385
+ }
1467
1386
 
1387
+ static napi_value TranslateVariadicCall(napi_env env, const FunctionInfo *func, void *native, napi_value *args, Size count)
1388
+ {
1468
1389
  FunctionInfo *variadic = nullptr;
1469
1390
  K_DEFER_N(err_guard) { delete variadic; };
1470
1391
 
1392
+ InstanceData *instance = func->instance;
1393
+ InstanceMemory *mem = instance->memories[0];
1394
+ CallData call(env, instance, mem, native);
1395
+
1471
1396
  // Try cached function
1472
1397
  {
1473
1398
  FunctionInfo *prev = instance->variadic_func;
@@ -1481,7 +1406,7 @@ static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateVariadicCall(CallData *
1481
1406
 
1482
1407
  for (Size i = prev->required_parameters, j = prev->required_parameters; i < (Size)count; i += 2, j++) {
1483
1408
  int directions;
1484
- const TypeInfo *type = ResolveType(instance, call->args[i], &directions);
1409
+ const TypeInfo *type = ResolveType(instance, args[i], &directions);
1485
1410
 
1486
1411
  if (type != prev->parameters[j].type || directions != prev->parameters[j].directions) [[unlikely]] {
1487
1412
  match = false;
@@ -1500,12 +1425,12 @@ static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateVariadicCall(CallData *
1500
1425
  }
1501
1426
 
1502
1427
  if (!variadic) {
1503
- Napi::Env env = call->env;
1504
-
1505
1428
  variadic = new FunctionInfo();
1506
1429
 
1507
1430
  memcpy((void *)variadic, func, K_SIZE(*func));
1508
1431
  memset((void *)&variadic->parameters, 0, K_SIZE(variadic->parameters));
1432
+ memset((void *)&variadic->sync, 0, K_SIZE(variadic->sync));
1433
+ memset((void *)&variadic->async, 0, K_SIZE(variadic->async));
1509
1434
 
1510
1435
  variadic->parameters = func->parameters;
1511
1436
  variadic->lib = nullptr;
@@ -1522,7 +1447,7 @@ static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateVariadicCall(CallData *
1522
1447
  for (Size i = variadic->required_parameters; i < count; i += 2) {
1523
1448
  ParameterInfo param = {};
1524
1449
 
1525
- param.type = ResolveType(instance, call->args[i], &param.directions);
1450
+ param.type = ResolveType(instance, args[i], &param.directions);
1526
1451
 
1527
1452
  if (!param.type) [[unlikely]]
1528
1453
  return Napi::Env(env).Null();
@@ -1541,17 +1466,17 @@ static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateVariadicCall(CallData *
1541
1466
  variadic->parameters.Append(param);
1542
1467
  }
1543
1468
 
1544
- if (!PreparePlan(instance, variadic)) [[unlikely]]
1469
+ if (!AnalyseFunction(env, instance, variadic)) [[unlikely]]
1545
1470
  return Napi::Env(env).Null();
1546
1471
  }
1547
1472
 
1548
1473
  K_DEFER_C(prev_call = instance->sync_call) { instance->sync_call = prev_call; };
1549
- instance->sync_call = call;
1474
+ instance->sync_call = &call;
1550
1475
 
1551
- call->DebugCall(func);
1476
+ call.DebugCall(func);
1552
1477
 
1553
- napi_value ret = call->Run(variadic, native);
1554
- call->Finalize();
1478
+ napi_value ret = call.Run(variadic, args);
1479
+ call.Finalize();
1555
1480
 
1556
1481
  if (variadic != instance->variadic_func) {
1557
1482
  err_guard.Disable();
@@ -1563,75 +1488,54 @@ static TRANSLATE_FUNC K_FORCE_INLINE napi_value TranslateVariadicCall(CallData *
1563
1488
  return ret;
1564
1489
  }
1565
1490
 
1566
- static TRANSLATE_FUNC napi_value TranslateVariadicCall(napi_env env, napi_callback_info info)
1491
+ static napi_value TranslateVariadicCall(napi_env env, napi_callback_info info)
1567
1492
  {
1568
1493
  static_assert(MaxParameters >= 8);
1569
1494
 
1570
- CallData call(env);
1495
+ napi_value args[MaxParameters];
1571
1496
  size_t count = 8;
1572
1497
  FunctionInfo *func;
1573
1498
 
1574
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, (void **)&func));
1499
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, (void **)&func));
1575
1500
 
1576
1501
  if (count > 8) {
1577
- NAPI_OK(napi_get_cb_info(env, info, &count, call.args, nullptr, nullptr));
1502
+ NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, nullptr));
1578
1503
  count = std::min(count, (size_t)MaxParameters);
1579
1504
  }
1580
1505
 
1581
- return TranslateVariadicCall(&call, func, func->native, (Size)count);
1506
+ return TranslateVariadicCall(env, func, func->native, args, (Size)count);
1582
1507
  }
1583
1508
 
1584
- #undef TRANSLATE_FUNC
1585
-
1586
- class AsyncCall {
1509
+ class AsyncCall: public Napi::AsyncWorker {
1587
1510
  Napi::Env env;
1588
1511
 
1589
- napi_async_work work = nullptr;
1590
- napi_ref callback = nullptr;
1591
-
1592
- const FunctionInfo *func = nullptr;
1593
- InstanceMemory *mem = nullptr;
1512
+ const FunctionInfo *func;
1594
1513
  NoDestroy<CallData> call;
1595
1514
 
1596
1515
  bool prepared = false;
1597
1516
 
1598
- int last_errno = 0;
1599
- #if defined(_WIN32)
1600
- void *last_error = nullptr;
1601
- #endif
1602
-
1603
1517
  public:
1604
- AsyncCall(Napi::Env env) : env(env), call(env) {}
1518
+ AsyncCall(Napi::Env env, InstanceData *instance, InstanceMemory *mem, const FunctionInfo *func, Napi::Function &callback)
1519
+ : Napi::AsyncWorker(callback), env(env), func(func->Ref()), call(env, instance, mem, func->native) {}
1605
1520
  ~AsyncCall();
1606
1521
 
1607
- napi_value *Args() { return call->args; }
1522
+ bool Prepare(napi_value *args) {
1523
+ call->DebugCall(func);
1608
1524
 
1609
- bool Prepare(InstanceData *instance, InstanceMemory *mem, const FunctionInfo *func, napi_value callback);
1610
- void Queue();
1525
+ prepared = call->PrepareAsync(func, args);
1611
1526
 
1612
- void Execute();
1613
- void Complete();
1614
- void Fail(napi_value err);
1615
-
1616
- static void HandleExecute(napi_env env, void *udata);
1617
- static void HandleComplete(napi_env env, napi_status status, void *udata);
1618
- };
1619
-
1620
- void AsyncCall::HandleExecute(napi_env, void *udata)
1621
- {
1622
- AsyncCall *async = (AsyncCall *)udata;
1623
- async->Execute();
1624
- }
1625
-
1626
- void AsyncCall::HandleComplete(napi_env, napi_status status, void *udata)
1627
- {
1628
- AsyncCall *async = (AsyncCall *)udata;
1527
+ if (!prepared) [[unlikely]] {
1528
+ Napi::Error err = env.GetAndClearPendingException();
1529
+ SetError(err.Message());
1530
+ }
1629
1531
 
1630
- K_ASSERT(status == napi_ok);
1631
- async->Complete();
1532
+ return prepared;
1533
+ }
1632
1534
 
1633
- delete async;
1634
- }
1535
+ void Execute() override;
1536
+ void OnOK() override;
1537
+ void OnError(const Napi::Error& err) override;
1538
+ };
1635
1539
 
1636
1540
  AsyncCall::~AsyncCall()
1637
1541
  {
@@ -1639,118 +1543,49 @@ AsyncCall::~AsyncCall()
1639
1543
  call->~CallData();
1640
1544
  #endif
1641
1545
 
1642
- if (func) {
1643
- ReleaseAsyncMemory(call->instance, mem);
1644
- func->Unref();
1645
- }
1646
-
1647
- node_api_delete_reference(env, callback);
1648
- napi_delete_async_work(env, work);
1546
+ ReleaseMemory(call->instance, call->mem);
1547
+ func->Unref();
1649
1548
  }
1650
1549
 
1651
- bool AsyncCall::Prepare(InstanceData *instance, InstanceMemory *mem, const FunctionInfo *func, napi_value callback)
1550
+ void AsyncCall::Execute()
1652
1551
  {
1653
- K_ASSERT(!work);
1654
-
1655
- // Init async work
1656
- {
1657
- napi_value name;
1658
- NAPI_OK(napi_create_string_utf8(env, func->name, NAPI_AUTO_LENGTH, &name));
1659
-
1660
- NAPI_OK(napi_create_async_work(env, nullptr, name, &AsyncCall::HandleExecute, &AsyncCall::HandleComplete, this, &work));
1661
- NAPI_OK(napi_create_reference(env, callback, 1, &this->callback));
1662
- }
1663
-
1664
- // Keep together (see destructor)
1665
- this->func = func->Ref();
1666
- this->mem = mem;
1667
- call->Init(instance, mem);
1668
-
1669
- call->DebugCall(func);
1670
-
1671
- prepared = call->PrepareAsync(func);
1672
-
1673
- if (!prepared) [[unlikely]] {
1674
- Napi::Error err = env.GetAndClearPendingException();
1675
- Fail(err.Value());
1552
+ if (prepared) [[likely]] {
1553
+ call->ExecuteAsync();
1676
1554
  }
1677
-
1678
- return prepared;
1679
1555
  }
1680
1556
 
1681
- void AsyncCall::Queue()
1557
+ void AsyncCall::OnOK()
1682
1558
  {
1683
1559
  K_ASSERT(prepared);
1684
- NAPI_OK(napi_queue_async_work(env, work));
1685
- }
1686
-
1687
- void AsyncCall::Execute()
1688
- {
1689
- K_ASSERT(prepared);
1690
- call->ExecuteAsync(func->native);
1691
-
1692
- last_errno = errno;
1693
1560
 
1694
- #if defined(_WIN32)
1695
- TEB *teb = GetTEB();
1696
- last_error = teb->EnvironmentPointer;
1697
- #endif
1698
- }
1699
-
1700
- void AsyncCall::Complete()
1701
- {
1702
- K_ASSERT(prepared);
1561
+ Napi::FunctionReference &callback = Callback();
1703
1562
 
1704
1563
  napi_value ret = call->EndAsync();
1705
1564
  call->Finalize();
1706
1565
 
1707
- napi_value recv;
1708
- napi_value func;
1709
- napi_value args[] = { env.Null(), ret ? ret : env.Undefined() };
1710
-
1711
- NAPI_OK(napi_get_undefined(env, &recv));
1712
- NAPI_OK(napi_get_reference_value(env, callback, &func));
1713
-
1714
- #if defined(_WIN32)
1715
- TEB *teb = GetTEB();
1716
-
1717
- K_DEFER_C(prev_errno = errno,
1718
- prev_error = teb->EnvironmentPointer) {
1719
- errno = prev_errno;
1720
- teb->EnvironmentPointer = prev_error;
1721
- };
1722
- errno = last_errno;
1723
- teb->EnvironmentPointer = last_error;
1724
- #else
1725
- K_DEFER_C(prev_errno = errno) { errno = prev_errno; };
1726
- errno = last_errno;
1727
- #endif
1566
+ napi_value self = env.Null();
1567
+ napi_value args[] = { env.Null(), ret };
1728
1568
 
1729
- napi_call_function(env, recv, func, K_LEN(args), args, nullptr);
1569
+ callback.Call(self, K_LEN(args), args);
1730
1570
  }
1731
1571
 
1732
- void AsyncCall::Fail(napi_value err)
1572
+ void AsyncCall::OnError(const Napi::Error& err)
1733
1573
  {
1734
- call->Finalize();
1574
+ Napi::FunctionReference &callback = Callback();
1735
1575
 
1736
- napi_value recv;
1737
- napi_value func;
1738
- napi_value args[] = { err, env.Undefined() };
1576
+ call->Finalize();
1739
1577
 
1740
- NAPI_OK(napi_get_undefined(env, &recv));
1741
- NAPI_OK(napi_get_reference_value(env, callback, &func));
1578
+ napi_value self = env.Null();
1579
+ napi_value args[] = { err.Value(), env.Undefined() };
1742
1580
 
1743
- napi_call_function(env, recv, func, K_LEN(args), args, nullptr);
1581
+ callback.Call(self, K_LEN(args), args);
1744
1582
  }
1745
1583
 
1746
1584
  static napi_value TranslateAsyncCall(napi_env env, napi_callback_info info)
1747
1585
  {
1748
1586
  static_assert(MaxParameters >= 6);
1749
1587
 
1750
- AsyncCall *async = new AsyncCall(env);
1751
- K_DEFER_N(err_guard) { delete async; };
1752
-
1753
- napi_value *args = async->Args();
1588
+ napi_value args[MaxParameters];
1754
1589
  size_t count = 6;
1755
1590
  FunctionInfo *func;
1756
1591
 
@@ -1760,31 +1595,30 @@ static napi_value TranslateAsyncCall(napi_env env, napi_callback_info info)
1760
1595
  NAPI_OK(napi_get_cb_info(env, info, &count, args, nullptr, nullptr));
1761
1596
  count = std::min(count, (size_t)MaxParameters);
1762
1597
  }
1598
+
1599
+ InstanceData *instance = func->instance;
1600
+
1763
1601
  if (count <= (size_t)func->required_parameters) {
1764
1602
  ThrowError<Napi::TypeError>(env, "Expected %1 arguments, got %2", func->required_parameters + 1, count);
1765
1603
  return Napi::Env(env).Null();
1766
1604
  }
1767
1605
 
1768
- InstanceData *instance = func->instance;
1769
-
1770
- Napi::Value callback = Napi::Value(env, args[func->required_parameters]);
1606
+ Napi::Function callback = Napi::Value(env, args[func->required_parameters]).As<Napi::Function>();
1771
1607
 
1772
1608
  if (!callback.IsFunction()) {
1773
1609
  ThrowError<Napi::TypeError>(env, "Expected callback function as last argument, got %1", GetValueType(instance, callback));
1774
1610
  return Napi::Env(env).Null();
1775
1611
  }
1776
1612
 
1777
- InstanceMemory *mem = AllocateAsyncMemory(instance);
1613
+ InstanceMemory *mem = AllocateMemory(instance, instance->config.async_stack_size, instance->config.async_heap_size);
1778
1614
  if (!mem) [[unlikely]] {
1779
1615
  ThrowError<Napi::Error>(env, "Too many asynchronous calls are running");
1780
1616
  return Napi::Env(env).Null();
1781
1617
  }
1618
+ AsyncCall *async = new AsyncCall(env, instance, mem, func, callback);
1782
1619
 
1783
- if (!async->Prepare(instance, mem, func, callback))
1784
- return Napi::Env(env).Null();
1785
-
1620
+ async->Prepare(args);
1786
1621
  async->Queue();
1787
- err_guard.Disable();
1788
1622
 
1789
1623
  return Napi::Env(env).Undefined();
1790
1624
  }
@@ -1838,15 +1672,10 @@ void InitTranslateZeroCall(Napi::Env env)
1838
1672
 
1839
1673
  napi_value CallPointer(Napi::Env env, const FunctionInfo *proto, void *native, napi_value *args, Size count)
1840
1674
  {
1841
- CallData call(env);
1842
-
1843
- Size copy = std::min(count * K_SIZE(*call.args), K_SIZE(call.args));
1844
- MemCpy(call.args, args, copy);
1845
-
1846
1675
  if (proto->variadic) {
1847
- return TranslateVariadicCall(&call, proto, native, count);
1676
+ return TranslateVariadicCall(env, proto, native, args, count);
1848
1677
  } else {
1849
- return TranslateNormalCall(&call, proto, native, count);
1678
+ return TranslateNormalCall(env, proto, native, args, count);
1850
1679
  }
1851
1680
  }
1852
1681
 
@@ -1855,7 +1684,7 @@ static void PerformAsyncRelay(napi_env, napi_value, void *, void *udata)
1855
1684
  RelayContext *ctx = (RelayContext *)udata;
1856
1685
  CallData *call = ctx->call;
1857
1686
 
1858
- call->Relay(ctx->idx, ctx->base);
1687
+ call->Relay(ctx->idx, ctx->sp);
1859
1688
  call->Finalize();
1860
1689
 
1861
1690
  // We're done!
@@ -1864,11 +1693,9 @@ static void PerformAsyncRelay(napi_env, napi_value, void *, void *udata)
1864
1693
  ctx->cv.notify_one();
1865
1694
  }
1866
1695
 
1867
- bool InitAsyncBroker(InstanceData *instance)
1696
+ bool InitAsyncBroker(Napi::Env env, InstanceData *instance)
1868
1697
  {
1869
1698
  if (!instance->broker) {
1870
- Napi::Env env = instance->env;
1871
-
1872
1699
  if (napi_create_threadsafe_function(env, nullptr, nullptr,
1873
1700
  NewString(env, "Koffi Async Callback Broker"),
1874
1701
  0, 1, nullptr, nullptr, nullptr,
@@ -1883,30 +1710,27 @@ bool InitAsyncBroker(InstanceData *instance)
1883
1710
  return true;
1884
1711
  }
1885
1712
 
1886
- void *GetTrampolinePointer(Size idx)
1713
+ void *GetTrampoline(int idx)
1887
1714
  {
1888
1715
  return (void *)(TrampolineStart + TrampolineSize * idx);
1889
1716
  }
1890
1717
 
1891
- Size GetTrampolineIndex(void *ptr)
1892
- {
1893
- return ((uint8_t *)ptr - TrampolineStart) / TrampolineSize;
1894
- }
1895
-
1896
- static bool CanTypeAcceptFunctions(const TypeInfo *type)
1718
+ static bool CanTypeAcceptCallbacks(const TypeInfo *type)
1897
1719
  {
1898
1720
  if (type->primitive == PrimitiveKind::Pointer)
1899
1721
  return true;
1900
1722
  if (type->primitive == PrimitiveKind::Callback)
1901
1723
  return true;
1902
1724
 
1903
- if (IsAggregate(type) && std::any_of(type->members.begin(), type->members.end(),
1904
- [](const RecordMember &member) { return CanTypeAcceptFunctions(member.type); }))
1905
- return true;
1906
- if (type->primitive == PrimitiveKind::Array && CanTypeAcceptFunctions(type->ref.type))
1907
- return true;
1725
+ if (type->primitive == PrimitiveKind::Record ||
1726
+ type->primitive == PrimitiveKind::Union) {
1727
+ for (const RecordMember &member: type->members) {
1728
+ if (CanTypeAcceptCallbacks(member.type))
1729
+ return false;
1730
+ }
1731
+ }
1908
1732
 
1909
- return false;
1733
+ return true;
1910
1734
  }
1911
1735
 
1912
1736
  static bool CanUseFastCall(const FunctionInfo *func)
@@ -1914,14 +1738,15 @@ static bool CanUseFastCall(const FunctionInfo *func)
1914
1738
  if (func->parameters.len > 6)
1915
1739
  return false;
1916
1740
 
1917
- // Fast calls basically skip CallData::Finalize(), which handles output arguments and
1918
- // temporary callback trampolines. If the function does not use any output argument
1919
- // and cannot accept JS functions (so no pointer/callback argument), we can skip finalization!
1741
+ // Fast calls basically skip CallData::Finalize(), which handles output arguments
1742
+ // and temporary callback trampolines. If the function does not use any
1743
+ // output argument and cannot accept callbacks (so no pointer or callback arguments),
1744
+ // we can skip finalization!
1920
1745
 
1921
1746
  for (const ParameterInfo &param: func->parameters) {
1922
1747
  if (param.directions & 2)
1923
1748
  return false;
1924
- if (CanTypeAcceptFunctions(param.type))
1749
+ if (CanTypeAcceptCallbacks(param.type))
1925
1750
  return false;
1926
1751
  }
1927
1752
 
@@ -1944,7 +1769,7 @@ napi_value DescribeFunction(InstanceData *instance, const FunctionInfo *func)
1944
1769
 
1945
1770
  meta.Set("name", NewString(env, func->name));
1946
1771
  meta.Set("arguments", arguments);
1947
- meta.Set("result", WrapType(instance, func->ret));
1772
+ meta.Set("result", WrapType(instance, func->ret.type));
1948
1773
 
1949
1774
  for (Size i = 0; i < func->parameters.len; i++) {
1950
1775
  const ParameterInfo &param = func->parameters[i];
@@ -2007,7 +1832,7 @@ napi_value WrapFunction(InstanceData *instance, const FunctionInfo *func)
2007
1832
  return wrapper;
2008
1833
  }
2009
1834
 
2010
- static K_FORCE_INLINE bool CheckTrampolineStatus(TrampolineInfo *trampoline)
1835
+ static FORCE_INLINE bool CheckTrampolineStatus(TrampolineInfo *trampoline)
2011
1836
  {
2012
1837
  if (trampoline->state == 1) [[likely]]
2013
1838
  return true;
@@ -2038,18 +1863,10 @@ extern "C" void RelayCallback(Size idx, uint8_t *sp)
2038
1863
  // Fast path: main thread and we are running a native call through Koffi.
2039
1864
  // But this means we are running on the custom Koffi stack, which could trip up
2040
1865
  // Node and V8, so we need to switch back to the normal/main stack.
2041
- if (sp >= trampoline->stack.ptr && sp <= trampoline->stack.end) [[likely]] {
2042
- InstanceMemory *mem0 = &instance->sync_memory;
1866
+ if (sp >= trampoline->stack0.ptr && sp <= trampoline->stack0.end) [[likely]] {
2043
1867
  CallData *call = instance->sync_call;
2044
1868
 
2045
- K_DEFER_C(prev_stack = mem0->stack.end,
2046
- prev_heap = mem0->heap.ptr) {
2047
- mem0->stack.end = prev_stack;
2048
- mem0->heap.ptr = prev_heap;
2049
- };
2050
- mem0->heap.ptr = call->heap.ptr;
2051
-
2052
- SwitchAndRelay(call, idx, sp, call->saved_sp, &mem0->stack.end);
1869
+ SwitchAndRelay(call, idx, sp, call->saved_sp, &call->mem->stack);
2053
1870
  return;
2054
1871
  }
2055
1872
 
@@ -2063,15 +1880,15 @@ extern "C" void RelayCallback(Size idx, uint8_t *sp)
2063
1880
 
2064
1881
  Napi::Env env = trampoline->env;
2065
1882
 
2066
- InstanceMemory *mem = AllocateAsyncMemory(instance);
1883
+ InstanceMemory *mem = AllocateMemory(instance, instance->config.async_stack_size, instance->config.async_heap_size);
2067
1884
  if (!mem) [[unlikely]] {
2068
1885
  ThrowError<Napi::Error>(env, "Too many asynchronous calls are running");
2069
1886
  return;
2070
1887
  }
2071
- K_DEFER { ReleaseAsyncMemory(instance, mem); };
1888
+ K_DEFER { ReleaseMemory(instance, mem); };
2072
1889
 
2073
1890
  if (std::this_thread::get_id() == instance->main_thread_id) {
2074
- CallData call(env, instance, mem);
1891
+ CallData call(env, instance, mem, nullptr);
2075
1892
  K_DEFER { call.Finalize(); };
2076
1893
 
2077
1894
  napi_handle_scope scope;
@@ -2080,7 +1897,7 @@ extern "C" void RelayCallback(Size idx, uint8_t *sp)
2080
1897
 
2081
1898
  call.Relay(idx, sp);
2082
1899
  } else {
2083
- CallData call(env, instance, mem);
1900
+ CallData call(env, instance, mem, nullptr);
2084
1901
  call.RelayAsync(idx, sp);
2085
1902
  }
2086
1903
  }
@@ -2103,9 +1920,9 @@ extern "C" void RelayDirect(CallData *call, Size idx, uint8_t *sp)
2103
1920
  };
2104
1921
 
2105
1922
  // Adjust stack limits so SEH works correctly
2106
- teb->StackBase = instance->real_stack.end;
2107
- teb->StackLimit = instance->real_stack.ptr;
2108
- teb->DeallocationStack = instance->real_stack.ptr;
1923
+ teb->StackBase = instance->main_stack_max;
1924
+ teb->StackLimit = instance->main_stack_min;
1925
+ teb->DeallocationStack = instance->main_stack_min;
2109
1926
  #endif
2110
1927
 
2111
1928
  if (!CheckTrampolineStatus(trampoline))
@@ -2126,7 +1943,7 @@ bool Encode(InstanceData *instance, uint8_t *origin, napi_value value, const Typ
2126
1943
  Napi::Env env = instance->env;
2127
1944
 
2128
1945
  InstanceMemory mem = {};
2129
- CallData call(env, instance, &mem);
1946
+ CallData call(env, instance, &mem, nullptr);
2130
1947
 
2131
1948
  #define PUSH_INTEGER(CType) \
2132
1949
  do { \
@@ -2260,16 +2077,15 @@ bool Encode(InstanceData *instance, uint8_t *origin, napi_value value, const Typ
2260
2077
  #undef PUSH_INTEGER
2261
2078
 
2262
2079
  // Keep memory around if any was allocated
2263
- if (call.allocator->IsUsed()) {
2264
- HeapChain *copy = instance->encode_map.FindValue(origin, nullptr);
2080
+ if (mem.allocator.IsUsed()) {
2081
+ LinkedAllocator *copy = instance->encode_map.FindValue(origin, nullptr);
2265
2082
 
2266
2083
  if (!copy) {
2267
2084
  copy = instance->encode_allocators.AppendDefault();
2268
2085
  instance->encode_map.Set(origin, copy);
2269
2086
  }
2270
2087
 
2271
- std::swap(*call.allocator, *copy);
2272
- call.allocator->ReleaseAll();
2088
+ std::swap(mem.allocator, *copy);
2273
2089
  }
2274
2090
 
2275
2091
  return true;