@qqbrowser/qbot-dsh 0.0.15 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (737) hide show
  1. package/config/agent-presets/code/agent.cordis.yml +2 -2
  2. package/config/agent-presets/standard/agent.cordis.yml +2 -2
  3. package/cordis.patch.yml +50 -0
  4. package/lib/args-w1okyL78.js +9 -0
  5. package/lib/bin.js +2 -2
  6. package/lib/client.js +1 -0
  7. package/lib/content-review-CqDoh3wY.js +1 -0
  8. package/lib/content-review.js +1 -0
  9. package/lib/dump-config-CIL0Goqj.js +1 -0
  10. package/lib/gateway-port-CSFbDyoZ.js +1 -0
  11. package/lib/index.js +1 -0
  12. package/lib/llm-gateway-openai.js +17 -0
  13. package/lib/native-protocol-DdrIh89-.js +2 -0
  14. package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
  15. package/lib/profile-boot-CxJUSdnu.js +1 -0
  16. package/lib/profile-boot-DCgBQ4qO.js +8 -0
  17. package/lib/qb-auth-C2ofR1zn.js +4 -0
  18. package/lib/qb-auth.js +1 -0
  19. package/lib/web-search-dsh.js +1 -0
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  21. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  22. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  23. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  25. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  26. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  27. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
  28. package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  35. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  37. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  38. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  39. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
  40. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  41. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  42. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
  43. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  44. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  45. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  46. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
  47. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  48. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  50. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-runtime/lib/client.js +4 -4
  58. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  62. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
  64. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  65. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
  66. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  67. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
  68. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  69. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  71. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
  72. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  73. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  75. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  76. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  79. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  80. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  82. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
  83. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  84. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  90. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +22 -22
  91. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
  93. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  95. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1 -1
  97. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  98. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  99. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  100. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  101. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  102. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  103. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  104. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -1
  105. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  106. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
  108. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  110. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -1
  112. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
  116. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  118. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
  120. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  122. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  123. package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -2
  131. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  132. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +4 -4
  136. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  137. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -4
  138. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  140. package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
  141. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  142. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  143. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  144. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -2
  147. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
  150. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
  151. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  152. package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
  153. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/index.js +7 -7
  155. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js +1 -1
  156. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api-proxy.js +1 -1
  157. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  160. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
  165. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  168. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +1 -1
  171. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +1 -1
  172. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1 -1
  174. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  176. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  177. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  178. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
  179. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  183. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  193. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  194. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  195. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  196. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  197. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  198. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  201. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  202. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +2 -2
  205. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  211. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  212. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  213. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  215. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  216. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  217. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
  218. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  219. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  220. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  221. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  222. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  224. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  225. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  226. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  227. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  228. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  229. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  230. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  231. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  232. package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
  233. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  235. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  236. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  237. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +1 -1
  238. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  239. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  240. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  241. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  242. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  243. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  244. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +7 -10
  246. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  247. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  248. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +9 -30
  249. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  250. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -8
  251. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  252. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  253. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  254. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  255. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  256. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  257. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  258. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  259. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  260. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  261. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  262. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  263. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  264. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  265. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  266. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +15 -15
  267. package/node_modules/@deepseek-ai/dsh-tools/lib/types/code-mode.js +8 -8
  268. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +3 -3
  269. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +4 -4
  270. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  271. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  272. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  273. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  274. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  275. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  276. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  278. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
  279. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
  280. package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
  281. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  282. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-BQQQ5Qt-.js → index-fPGOmJjK.js} +25 -25
  283. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +1 -1
  284. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  285. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  286. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  287. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
  288. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  289. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  290. package/node_modules/@deepseek-ai/node-addon-landlock-run/package.json +1 -1
  291. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
  292. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
  293. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
  294. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
  295. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
  296. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
  297. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
  298. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  299. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
  300. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
  301. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
  302. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  303. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
  304. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
  305. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
  306. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  307. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  308. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  309. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  310. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  311. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  312. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  313. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  314. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  315. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  316. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  317. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  318. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  319. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  320. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  321. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  322. package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
  323. package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
  324. package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
  325. package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
  326. package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
  327. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
  328. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  329. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  330. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  331. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  332. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  333. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  334. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  335. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  336. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  337. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  338. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  339. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  340. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  341. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  342. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  343. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  344. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  345. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  346. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  347. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  348. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  349. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  350. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  351. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  352. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  353. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  354. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  355. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  356. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  357. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  358. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  359. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  360. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  361. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  362. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  363. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  364. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  365. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  366. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  367. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  368. package/node_modules/@smithy/core/package.json +1 -1
  369. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
  370. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
  371. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  372. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  373. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  374. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  375. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  376. package/node_modules/@smithy/signature-v4/package.json +1 -1
  377. package/node_modules/@tanstack/react-virtual/package.json +1 -1
  378. package/node_modules/@tanstack/virtual-core/dist/cjs/index.cjs +7 -1
  379. package/node_modules/@tanstack/virtual-core/dist/cjs/utils.cjs +14 -4
  380. package/node_modules/@tanstack/virtual-core/dist/esm/index.js +1 -1
  381. package/node_modules/@tanstack/virtual-core/dist/esm/utils.js +2 -2
  382. package/node_modules/@tanstack/virtual-core/package.json +1 -1
  383. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  384. package/node_modules/hono/dist/cjs/context.js +4 -0
  385. package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
  386. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
  387. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
  388. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
  389. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
  390. package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
  391. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
  392. package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
  393. package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
  394. package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
  395. package/node_modules/hono/dist/client/utils.js +1 -1
  396. package/node_modules/hono/dist/middleware/cors/index.js +1 -1
  397. package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
  398. package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
  399. package/node_modules/hono/dist/middleware/etag/index.js +1 -1
  400. package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -1
  401. package/node_modules/hono/dist/router/linear-router/router.js +1 -1
  402. package/node_modules/hono/dist/router/pattern-router/router.js +1 -1
  403. package/node_modules/hono/dist/router/trie-router/node.js +1 -1
  404. package/node_modules/hono/dist/router/trie-router/router.js +1 -1
  405. package/node_modules/hono/dist/utils/ipaddr.js +1 -1
  406. package/node_modules/hono/package.json +1 -1
  407. package/node_modules/koffi/package.json +1 -1
  408. package/node_modules/koffi/src/koffi/index.cjs +1 -1
  409. package/node_modules/koffi/src/koffi/index.js +1 -1
  410. package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
  411. package/node_modules/koffi/src/koffi/indirect.js +1 -1
  412. package/node_modules/negotiator/lib/accept.js +54 -0
  413. package/node_modules/negotiator/lib/charset.js +10 -34
  414. package/node_modules/negotiator/lib/encoding.js +9 -30
  415. package/node_modules/negotiator/lib/language.js +15 -36
  416. package/node_modules/negotiator/lib/mediaType.js +16 -134
  417. package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
  418. package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
  419. package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
  420. package/node_modules/negotiator/package.json +1 -1
  421. package/node_modules/node-pty/lib/conpty_console_list_agent.js +11 -2
  422. package/node_modules/node-pty/lib/index.js +6 -6
  423. package/node_modules/node-pty/lib/shared/conout.js +2 -3
  424. package/node_modules/node-pty/lib/terminal.js +2 -2
  425. package/node_modules/node-pty/lib/unixTerminal.js +11 -6
  426. package/node_modules/node-pty/lib/utils.js +6 -7
  427. package/node_modules/node-pty/lib/windowsConoutConnection.js +24 -18
  428. package/node_modules/node-pty/lib/windowsPtyAgent.js +125 -101
  429. package/node_modules/node-pty/lib/windowsTerminal.js +14 -4
  430. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +3 -3
  431. package/node_modules/node-pty/package.json +1 -1
  432. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  433. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  434. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  435. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  436. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  437. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  438. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  439. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  440. package/node_modules/node-pty/scripts/post-install.js +1 -5
  441. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
  442. package/node_modules/node-pty/third_party/conpty/{1.23.251008001 → 1.25.260303002}/win10-arm64/conpty.dll +0 -0
  443. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
  444. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
  445. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  446. package/node_modules/typebox/build/format/_idna.mjs +1 -1
  447. package/node_modules/typebox/build/format/_puny.mjs +1 -1
  448. package/node_modules/typebox/build/format/uuid.mjs +1 -1
  449. package/node_modules/typebox/build/guard/emit.mjs +1 -1
  450. package/node_modules/typebox/build/guard/guard.mjs +1 -1
  451. package/node_modules/typebox/build/guard/string.mjs +1 -1
  452. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  453. package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
  454. package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
  455. package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
  456. package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
  457. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  458. package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
  459. package/node_modules/typebox/build/schema/types/index.mjs +1 -1
  460. package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
  461. package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
  462. package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
  463. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
  464. package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
  465. package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
  466. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
  467. package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
  468. package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
  469. package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
  470. package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
  471. package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
  472. package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
  473. package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
  474. package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
  475. package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
  476. package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
  477. package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
  478. package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
  479. package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
  480. package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
  481. package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
  482. package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
  483. package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
  484. package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
  485. package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
  486. package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
  487. package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
  488. package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
  489. package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
  490. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
  491. package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
  492. package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
  493. package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
  494. package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
  495. package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
  496. package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
  497. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
  498. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
  499. package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
  500. package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
  501. package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
  502. package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
  503. package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
  504. package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
  505. package/node_modules/typebox/build/type/action/index.mjs +1 -1
  506. package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
  507. package/node_modules/typebox/build/type/action/module.mjs +1 -1
  508. package/node_modules/typebox/build/type/action/options.mjs +1 -0
  509. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
  510. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  511. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
  512. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
  513. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
  514. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
  515. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
  516. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
  517. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
  518. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
  519. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
  520. package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
  521. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
  522. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
  523. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
  524. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
  525. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
  526. package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
  527. package/node_modules/typebox/build/type/engine/index.mjs +1 -1
  528. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
  529. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
  530. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
  531. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
  532. package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
  533. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
  534. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
  535. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
  536. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
  537. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
  538. package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
  539. package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
  540. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  541. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
  542. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
  543. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
  544. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
  545. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
  546. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
  547. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
  548. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
  549. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
  550. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
  551. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
  552. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
  553. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
  554. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
  555. package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
  556. package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
  557. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
  558. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
  559. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  560. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
  561. package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
  562. package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
  563. package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
  564. package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
  565. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  566. package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
  567. package/node_modules/typebox/build/type/extends/object.mjs +1 -1
  568. package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
  569. package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
  570. package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
  571. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
  572. package/node_modules/typebox/build/type/extends/union.mjs +1 -1
  573. package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
  574. package/node_modules/typebox/build/type/script/parser.mjs +6 -6
  575. package/node_modules/typebox/build/type/script/script.mjs +1 -1
  576. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  577. package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
  578. package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
  579. package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
  580. package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
  581. package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
  582. package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
  583. package/node_modules/typebox/build/type/types/base.mjs +1 -0
  584. package/node_modules/typebox/build/type/types/call.mjs +1 -1
  585. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  586. package/node_modules/typebox/build/type/types/enum.mjs +1 -1
  587. package/node_modules/typebox/build/type/types/index.mjs +1 -1
  588. package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
  589. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  590. package/node_modules/typebox/build/type/types/promise.mjs +1 -0
  591. package/node_modules/typebox/build/type/types/record.mjs +1 -1
  592. package/node_modules/typebox/build/typebox.mjs +1 -1
  593. package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
  594. package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
  595. package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
  596. package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
  597. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
  598. package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
  599. package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
  600. package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
  601. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
  602. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
  603. package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
  604. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
  605. package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
  606. package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
  607. package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
  608. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
  609. package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
  610. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
  611. package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
  612. package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
  613. package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
  614. package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
  615. package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
  616. package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
  617. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  618. package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
  619. package/node_modules/typebox/build/value/index.mjs +1 -1
  620. package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
  621. package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
  622. package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
  623. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
  624. package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
  625. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  626. package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
  627. package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
  628. package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
  629. package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
  630. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
  631. package/node_modules/typebox/build/value/value.mjs +1 -1
  632. package/node_modules/typebox/package.json +1 -1
  633. package/package.json +1 -1
  634. package/lib/args-DcHS9iff.js +0 -9
  635. package/lib/dump-config-xQTUTTDD.js +0 -1
  636. package/lib/profile-boot-BkordgJK.js +0 -1
  637. package/lib/profile-boot-DDo03lXi.js +0 -8
  638. package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
  639. package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
  640. package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
  641. package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
  642. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
  643. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
  644. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
  645. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
  646. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
  647. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
  648. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
  649. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
  650. package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
  651. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
  652. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
  653. package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
  654. package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
  655. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
  656. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
  657. package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
  658. package/node_modules/@napi-rs/xattr/LICENSE +0 -21
  659. package/node_modules/@napi-rs/xattr/index.js +0 -567
  660. package/node_modules/@napi-rs/xattr/package.json +0 -1
  661. package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
  662. package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
  663. package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
  664. package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
  665. package/node_modules/@parcel/watcher/LICENSE +0 -21
  666. package/node_modules/@parcel/watcher/index.js +0 -44
  667. package/node_modules/@parcel/watcher/index.js.flow +0 -45
  668. package/node_modules/@parcel/watcher/package.json +0 -1
  669. package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
  670. package/node_modules/@parcel/watcher/wrapper.js +0 -88
  671. package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
  672. package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
  673. package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
  674. package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
  675. package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
  676. package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
  677. package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
  678. package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
  679. package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
  680. package/node_modules/is-extglob/LICENSE +0 -21
  681. package/node_modules/is-extglob/index.js +0 -20
  682. package/node_modules/is-extglob/package.json +0 -1
  683. package/node_modules/is-glob/LICENSE +0 -21
  684. package/node_modules/is-glob/index.js +0 -150
  685. package/node_modules/is-glob/package.json +0 -1
  686. package/node_modules/node-pty/deps/winpty/.drone.yml +0 -15
  687. package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  688. package/node_modules/node-pty/deps/winpty/configure +0 -167
  689. package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  690. package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  691. package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  692. package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  693. package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  694. package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  695. package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  696. package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  697. package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  698. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  699. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  700. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  701. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  702. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  703. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  704. package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  705. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  706. package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  707. package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  708. package/node_modules/node-pty/scripts/increment-version.js +0 -54
  709. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  710. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  711. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  712. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
  713. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
  714. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
  715. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
  716. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
  717. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
  718. package/node_modules/typebox/build/type/action/with.mjs +0 -1
  719. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
  720. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
  721. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
  722. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
  723. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
  724. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
  725. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
  726. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  727. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
  728. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
  729. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
  730. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
  731. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
  732. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
  733. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
  734. package/node_modules/typebox/build/type/extends/record.mjs +0 -1
  735. package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
  736. /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
  737. /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-scope","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-scope","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json","./surface":{"types":"./lib/types/surface.d.ts","default":"./lib/types/surface.js"}},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-scope":"^0.0.15","@deepseek-ai/dsh-typert-protocol":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json","./surface":{"types":"./lib/types/surface.d.ts","default":"./lib/types/surface.js"}},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-typert-protocol":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-scope":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-checkpoint-policy","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-persistence":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-session-checkpoint-policy","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-log-export","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"react":"^18.2.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-locale":"^0.0.15","@deepseek-ai/dsh-client-runtime":"^0.0.15","@deepseek-ai/dsh-client-ui-commands":"^0.0.15","@deepseek-ai/dsh-client-ui-primitives":"^0.0.15","@deepseek-ai/dsh-client-ui-conversation":"^0.0.15","@deepseek-ai/dsh-client-ui-slots":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-commands":"^0.0.15"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-commands","@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"}}}
1
+ {"name":"@deepseek-ai/dsh-session-log-export","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"react":"^18.2.0","@deepseek-ai/dsh-client-locale":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-ui-conversation":"^0.1.0-rc.7","@deepseek-ai/dsh-client-runtime":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-primitives":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-slots":"^0.1.0-rc.7","@deepseek-ai/dsh-commands":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-client-ui-commands":"^0.1.0-rc.7"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-commands","@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"}}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-persistence","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-timeout":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-session-persistence","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-timeout":"^0.1.0-rc.7","@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-persistence-jsonl","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-session-persistence":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"koffi":"^3.1.0","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-persistence-jsonl","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"koffi":"^3.1.0","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-projection","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3"},"peerDependencies":{"@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-session-projection","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-projection-cache","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-session-persistence":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-session-projection":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-storage-domain":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-session-projection-cache","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-storage-domain":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session-projection":"^0.1.0-rc.7"}}
@@ -1,2 +1,2 @@
1
- var re=Object.defineProperty;var o=(t,e)=>re(t,"name",{value:e,configurable:!0});import{Service as ne}from"@deepseek-ai/cordis";import{Session as oe,foldSurface as Q,isSurfaceEvent as ae,snapshotSessionEvent as y}from"@deepseek-ai/dsh-session";import{foldSessionTitle as ce}from"@deepseek-ai/dsh-session-title";import{HarnessError as ie}from"@deepseek-ai/dsh-llm";import{SessionPersistenceCorruptionError as de}from"@deepseek-ai/dsh-session-persistence";const ue=50,he=4;var h=class extends ie{static{o(this,"SessionQueryError")}constructor(t,e,s){super(t,e,s)}};function I(t,e){if(t.version!==e.version||t.id!==e.id||t.createdAt!==e.createdAt||t.cwd!==e.cwd||t.parentSession!==e.parentSession||t.seedLength!==e.seedLength||(t.delegationDepth??0)!==(e.delegationDepth??0))throw new h(`session source headers conflict for session "${t.id}"`,"SESSION_QUERY_SOURCE_CONFLICT")}o(I,"assertSessionHeadersCompatible");var fe=class{static{o(this,"SessionCorpus")}_ctx;_persistedInspectConcurrency;_persistence;_optionalPersistenceFiber;constructor(t,e){this._ctx=t,this._persistedInspectConcurrency=e,this._optionalPersistenceFiber=t.inject(["sessionPersistence"],s=>{const r=s.sessionPersistence;this._persistence=r,s.effect(()=>()=>{this._persistence===r&&(this._persistence=void 0)},"sessionQuery.persistenceBinding")}),t.effect(()=>()=>this._optionalPersistenceFiber.dispose(),"sessionQuery.optionalPersistence")}async listSessions(t){t?.throwIfAborted();const e=this._persistence,s=e===void 0?[]:await U(e,t);t?.throwIfAborted();const r=new Map;for(const n of s)r.set(n.id,{header:structuredClone(n),live:!1,persisted:!0});for(const n of this._ctx.sessions.list()){const c=r.get(n.id);c!==void 0&&I(n.header,c.header),r.set(n.id,{header:structuredClone(n.header),live:!0,persisted:c!==void 0})}return[...r.values()].sort(pe)}async load(t,e){e?.throwIfAborted();const s=this._ctx.sessions.get(t);if(s!==void 0){const u=Y(s);return e?.throwIfAborted(),u}const r=this._persistence;if(r===void 0)throw b(t);const n=(await U(r,e)).find(u=>u.id===t);if(e?.throwIfAborted(),n===void 0)throw b(t);const c=await L(r,t,e);e?.throwIfAborted();const a=this._ctx.sessions.get(t);if(a!==void 0){const u=Y(a);return e?.throwIfAborted(),u}I(c.meta,n);const d={header:structuredClone(c.meta),events:c.events.map(u=>structuredClone(u))};return e?.throwIfAborted(),d}async projectMany(t,e,s){const r=[...new Set(t)];s?.throwIfAborted();const n=new Map,c=[];for(const i of r){const w=this._ctx.sessions.get(i);w===void 0?c.push(i):n.set(i,N(i,g(w),e,s))}if(c.length===0)return A(r,n);const a=this._persistence;if(a===void 0){for(const i of c)n.set(i,{sessionId:i,status:"rejected",reason:b(i)});return A(r,n)}let d;try{d=await U(a,s),s?.throwIfAborted()}catch(i){s?.aborted&&s.throwIfAborted();for(const w of c)n.set(w,{sessionId:w,status:"rejected",reason:i});return A(r,n)}const u=new Map(d.map(i=>[i.id,i])),l=o(async i=>{const w=u.get(i);if(w===void 0){const m=this._ctx.sessions.get(i);n.set(i,m===void 0?{sessionId:i,status:"rejected",reason:b(i)}:N(i,g(m),e,s));return}try{s?.throwIfAborted();const m=await L(a,i,s);s?.throwIfAborted();const M=this._ctx.sessions.get(i);if(M!==void 0){n.set(i,N(i,g(M),e,s));return}I(m.meta,w),n.set(i,N(i,{header:m.meta,events:m.events},e,s))}catch(m){s?.aborted&&s.throwIfAborted(),n.set(i,{sessionId:i,status:"rejected",reason:m})}},"resolvePersisted");let p=0;const f=o(async()=>{for(;;){s?.throwIfAborted();const i=p;if(i>=c.length)return;p+=1,await l(c[i])}},"worker"),S=Math.min(this._persistedInspectConcurrency,c.length),v=await Promise.allSettled(Array.from({length:S},()=>f()));s?.aborted&&s.throwIfAborted();for(const i of v)if(i.status==="rejected")throw i.reason;return s?.throwIfAborted(),A(r,n)}};function N(t,e,s,r){try{r?.throwIfAborted();const n=s(e);return r?.throwIfAborted(),{sessionId:t,status:"fulfilled",value:n}}catch(n){return r?.aborted&&r.throwIfAborted(),{sessionId:t,status:"rejected",reason:n}}}o(N,"projectSource");function g(t){return{header:t.header,events:t.events}}o(g,"sourceLive");function A(t,e){return t.map(s=>e.get(s))}o(A,"orderedResults");async function U(t,e){try{return await t.list(e)}catch(s){throw e?.aborted&&e.throwIfAborted(),new h(`session persistence listing failed: ${q(s)}`,"SESSION_QUERY_PERSISTENCE_FAILED",{cause:s})}}o(U,"listPersisted");async function L(t,e,s){try{return await t.inspect(e,s)}catch(r){throw s?.aborted&&s.throwIfAborted(),r instanceof de?new h(`stored session "${e}" is corrupt: ${q(r)}`,"SESSION_QUERY_CORRUPT_SESSION",{cause:r}):new h(`failed to inspect session "${e}": ${q(r)}`,"SESSION_QUERY_PERSISTENCE_FAILED",{cause:r})}}o(L,"inspectPersisted");function Y(t){return{header:structuredClone(t.header),events:t.events.map(e=>structuredClone(e))}}o(Y,"snapshotLive");function pe(t,e){return e.header.createdAt-t.header.createdAt||t.header.id.localeCompare(e.header.id)}o(pe,"compareSessions");function b(t){return new h(`session "${t}" not found`,"SESSION_QUERY_SESSION_NOT_FOUND")}o(b,"notFound");function q(t){return t instanceof Error?t.message:"unknown error"}o(q,"errorMessage");function P(t){switch(t.type){case"user/message":return F(t.data.content);case"assistant/message":return F(t.data.message.content);case"tool/call":return E([t.data.name,t.data.arguments]);case"tool/result":return E([F(t.data.message.content),t.data.error?.name??"",t.data.error?.code??""]);case"todo/write":return E(t.data.todos.flatMap(e=>[e.status,e.content]));case"turn/end":return le(t.data.reason);case"turn/start":case"step/start":case"step/end":case"assistant/chunk":case"request/header":return"";default:return""}}o(P,"extractSessionEventText");function le(t){switch(t.kind){case"error":return E(["error",t.error.message]);case"aborted":return"aborted";case"max-tokens":case"interrupted":return t.kind;case"completed":return"";default:return""}}o(le,"turnEndText");function F(t){return E(t.flatMap(W))}o(F,"contentText");function W(t){switch(t.type){case"text":return[t.text];case"reasoning":return[];case"tool-call":return[t.name,t.arguments];case"tool-result":return t.content.flatMap(W);default:return[]}}o(W,"blockText");function E(t){return t.map(e=>e.trim()).filter(Boolean).join(`
2
- `)}o(E,"joinText");function Se(t,e){const s=j(e);return e.map(r=>({sessionId:t,seq:r.seq,type:r.type,time:r.time,surface:s.get(r.seq)??"log-only"}))}o(Se,"buildSessionEventRecords");function V(t,e){const s=j(e),r=[];for(const n of e){const c=P(n);c.length!==0&&r.push({sessionId:t,seq:n.seq,type:n.type,time:n.time,surface:s.get(n.seq)??"log-only",text:c})}return r}o(V,"buildSessionEventSearchDocuments");function j(t){let e;try{e=Q(t)}catch(r){throw new h(`invalid session surface: ${r instanceof Error?r.message:"unknown error"}`,"SESSION_QUERY_INVALID_SURFACE",{cause:r})}const s=new Map;for(const r of e.nodes)s.set(r,"current");for(const r of e.replacements)for(const n of r.shadowedSeqs)s.set(n,"shadowed");return s}o(j,"classifySurface");function B(t,e=[]){const s=e.map(we);return t.filter(r=>s.every(n=>n(r)))}o(B,"filterSessionResults");function z(t,e=[]){const s=e.map(me);return t.filter(r=>s.every(n=>n(r)))}o(z,"filterSessionEventDocuments");function G(t){return J(t),t.map(e=>{switch(e.kind){case"id":return{kind:e.kind,values:R(e.kind,e.values)};case"cwd":return{kind:e.kind,values:K(e.kind,e.values)};case"created-at":return Z(e.kind,e);case"parent":return{kind:e.kind,values:K(e.kind,e.values)};case"availability":{const s=R(e.kind,e.values);return x(e.kind,s,["live","persisted"]),{kind:e.kind,values:s}}default:return k(e)}})}o(G,"materializeSessionResultFilters");function H(t){return J(t),t.map(e=>{switch(e.kind){case"seq":case"time":return Z(e.kind,e);case"type":return{kind:e.kind,values:R(e.kind,e.values)};case"surface":{const s=R(e.kind,e.values);return x(e.kind,s,["current","shadowed","log-only"]),{kind:e.kind,values:s}}case"text":if(typeof e.text!="string")throw _("text filter text must be a string");return{kind:e.kind,text:e.text};default:return k(e)}})}o(H,"materializeSessionEventResultFilters");function X(t){const e=t.trim();if(e.length===0)throw new h("session text filter must contain non-whitespace text","SESSION_QUERY_INVALID_FILTER");const s=e.split(/\s+/u).map(r=>r.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join("\\s+");return new RegExp(s,"iu")}o(X,"compileSessionTextFilter");function we(t){switch(t.kind){case"id":return e=>t.values.includes(e.header.id);case"cwd":return e=>t.values.includes(e.header.cwd??null);case"created-at":{const e=C(t.kind,t);return s=>T(s.header.createdAt,e)}case"parent":return e=>t.values.includes(e.header.parentSession??null);case"availability":return x(t.kind,t.values,["live","persisted"]),e=>t.values.some(s=>s==="live"?e.live:e.persisted);default:return k(t)}}o(we,"sessionPredicate");function me(t){switch(t.kind){case"seq":{const e=C(t.kind,t);return s=>T(s.seq,e)}case"time":{const e=C(t.kind,t);return s=>T(s.time,e)}case"type":return e=>t.values.includes(e.type);case"surface":return x(t.kind,t.values,["current","shadowed","log-only"]),e=>t.values.includes(e.surface);case"text":{const e=X(t.text);return s=>e.test(s.text)}default:return k(t)}}o(me,"eventPredicate");function R(t,e){if(!ee(e)||e.some(s=>typeof s!="string"))throw _(`${t} filter values must be an array of strings`);return[...e]}o(R,"copyStrings");function J(t){if(!Array.isArray(t))throw _("filters must be an array")}o(J,"assertArray");function K(t,e){if(!ee(e)||e.some(s=>s!==null&&typeof s!="string"))throw _(`${t} filter values must be an array of strings or null`);return[...e]}o(K,"copyNullableStrings");function Z(t,e){const s={kind:t,...e.from===void 0?{}:{from:e.from},...e.to===void 0?{}:{to:e.to}};return C(t,s),s}o(Z,"copyRange");function k(t){const e=t.kind;throw _(`unknown filter kind ${typeof e=="string"?`"${e}"`:"(missing)"}`)}o(k,"unknownFilter");function x(t,e,s){for(const r of e)if(!s.includes(r))throw new h(`session ${t} filter contains unknown value "${r}"`,"SESSION_QUERY_INVALID_FILTER")}o(x,"assertAllowedValues");function C(t,e){if(e.from!==void 0&&!Number.isFinite(e.from))throw $(t,"from must be finite");if(e.to!==void 0&&!Number.isFinite(e.to))throw $(t,"to must be finite");if(e.from!==void 0&&e.to!==void 0&&e.from>e.to)throw $(t,"from must be less than or equal to to");return e}o(C,"validateRange");function T(t,e){return(e.from===void 0||t>=e.from)&&(e.to===void 0||t<=e.to)}o(T,"matchesRange");function $(t,e){return _(`${t} filter ${e}`)}o($,"invalidRange");function _(t){return new h(`session ${t}`,"SESSION_QUERY_INVALID_FILTER")}o(_,"invalidFilter");function ee(t){return Array.isArray(t)}o(ee,"isRuntimeArray");function ve(t,e){return D(t,e).records}o(ve,"eventRecords");function _e(t,e){return D(t,e).currentSeqs.map(s=>{const r=e[s];if(r===void 0||r.seq!==s||!ae(r))throw new h(`invalid session surface: current node ${s} is not a surface event`,"SESSION_QUERY_INVALID_SURFACE");return y(r)})}o(_e,"currentSurfaceEvents");function Ee(t,e,s){const r=e[s];if(r===void 0||r.seq!==s)throw new h(`session "${t}" has no event at seq ${s}`,"SESSION_QUERY_EVENT_NOT_FOUND");const n=D(t,e),c=[];let a=n.replacedBy.get(s);for(;a!==void 0;)c.push(a),a=n.replacedBy.get(a);const d=[];for(const p of e)p.seq<=s||te(p).includes(s)&&d.push(p.seq);const u=n.records[s],l=n.replacedBy.get(s);return{target:u,...l===void 0?{}:{replacedBy:l},replacementChain:c,replacedEventSeqs:n.replacedEventSeqs.get(s)??[],sourceEventSeqs:[...te(r)],derivedEventSeqs:d}}o(Ee,"traceEvent");function ye(t,e){const s=new Map(t.map(f=>[f.header.id,f])),r=s.get(e);if(r===void 0)throw new h(`session "${e}" not found`,"SESSION_QUERY_SESSION_NOT_FOUND");const n=[],c=new Set([e]);let a,d=r.header.parentSession;for(;d!==void 0;){if(c.has(d))throw new h(`session lineage contains a cycle at "${d}"`,"SESSION_QUERY_INVALID_LINEAGE");c.add(d);const f=s.get(d);if(f===void 0){a=d;break}n.push(f),d=f.header.parentSession}const u=new Map;for(const f of t){const S=f.header.parentSession;if(S===void 0)continue;const v=u.get(S)??[];v.push(f),u.set(S,v)}for(const f of u.values())f.sort((S,v)=>S.header.createdAt-v.header.createdAt||S.header.id.localeCompare(v.header.id));const l=Ie(u,e),p={target:O(r),ancestors:n.map(O),descendants:l};return a!==void 0?{...p,complete:!1,unresolvedParentId:a}:{...p,complete:!0,root:O(n.at(-1)??r)}}o(ye,"traceSession");function D(t,e){let s;try{s=Q(e)}catch(a){throw new h(`invalid session surface: ${a instanceof Error?a.message:"unknown error"}`,"SESSION_QUERY_INVALID_SURFACE",{cause:a})}const r=new Set(s.nodes),n=new Map,c=new Map;for(const a of s.replacements){const d=a.shadowedSeqs;c.set(a.seq,d);for(const u of d)n.set(u,a.seq)}return{records:e.map(a=>({sessionId:t,seq:a.seq,type:a.type,time:a.time,surface:r.has(a.seq)?"current":n.has(a.seq)?"shadowed":"log-only"})),replacedBy:n,replacedEventSeqs:c,currentSeqs:[...s.nodes]}}o(D,"analyzeEventLog");function te(t){return t.sourceEventSeqs??[]}o(te,"eventSources");function Ie(t,e){const s=[],r=[{sessionId:e,descendants:s}];for(;r.length>0;){const n=r.pop(),c=[];for(const a of t.get(n.sessionId)??[]){const d={session:O(a),descendants:[]};c.push(d),n.descendants.push(d)}for(let a=c.length-1;a>=0;a-=1){const d=c[a];r.push({sessionId:d.session.header.id,descendants:d.descendants})}}return s}o(Ie,"buildDescendants");function O(t){return{...t,header:structuredClone(t.header)}}o(O,"cloneRecord");function Ne(t){return t}o(Ne,"SessionSearchCursor");var se=class extends ne{static{o(this,"SessionQueryEngine")}static inject=["sessions"];_readWindowMax;_corpus;constructor(t,e={}){if(super(t,"sessionQuery"),this._readWindowMax=e.readWindowMax??50,!Number.isInteger(this._readWindowMax)||this._readWindowMax<0)throw new h("session-query: readWindowMax must be a non-negative integer","SESSION_QUERY_INVALID_CONFIG");const s=e.persistedInspectConcurrency??4;if(!Number.isSafeInteger(s)||s<1)throw new h("session-query: persistedInspectConcurrency must be a positive safe integer","SESSION_QUERY_INVALID_CONFIG");this._corpus=new fe(t,s)}listSessions(t){return this._corpus.listSessions(t)}async readSession(t){const e=await this._corpus.load(t);return oe.create(t,e.events,e.header),{session:structuredClone(e.header),events:e.events.map(y)}}async filterSessions(t,e){const s=G(t);return this._filterSessions(s,e)}async readTitle(t,e){return(await this.readTitleSnapshot(t,e)).title}async readTitleSnapshot(t,e){const s=(await this.readTitleSnapshots([t],e))[0];if(s.status==="rejected")throw s.reason;return s.value}async readTitleSnapshots(t,e){return this._corpus.projectMany(t,s=>{const r=ce(s.events);return{session:structuredClone(s.header),...r===void 0?{}:{title:r}}},e)}async listEvents(t){return ve(t,(await this._corpus.load(t)).events)}async filterEvents(t,e){const s=H(e);return this._filterEvents(t,s)}async _filterSessions(t,e){return B(await this._corpus.listSessions(e),t)}async _filterEvents(t,e){return z(V(t,(await this._corpus.load(t)).events),e)}async readSurface(t){const e=await this._corpus.load(t);return{session:structuredClone(e.header),capturedThroughSeq:e.events.at(-1)?.seq??null,events:_e(t,e.events)}}async traceSession(t,e){const s=await this._corpus.listSessions(e);return e?.throwIfAborted(),ye(s,t)}async traceEvent(t,e){const s=await this._corpus.load(t.sessionId,e);return e?.throwIfAborted(),{session:s.header,...Ee(t.sessionId,s.events,t.seq)}}async readEvent(t,e){const s=this._readWindow("before",t.before),r=this._readWindow("after",t.after),n=t.sessionId,c=t.seq;return this._readEvent(n,c,s,r,e)}async _readEvent(t,e,s,r,n){const c=await this._corpus.load(t,n);n?.throwIfAborted();const a=c.events[e];if(a===void 0||a.seq!==e)throw new h(`session "${t}" has no event at seq ${e}`,"SESSION_QUERY_EVENT_NOT_FOUND");const d=Math.max(0,e-s),u=Math.min(c.events.length-1,e+r),l=y(a),p=c.events.slice(d,u+1).map(f=>f===a?l:y(f));return{session:structuredClone(c.header),target:l,events:p,startSeq:d,endSeq:u}}_readWindow(t,e){if(e===void 0)return 0;if(!Number.isInteger(e)||e<0||e>this._readWindowMax)throw new h(`${t} must be an integer between 0 and ${this._readWindowMax}`,"SESSION_QUERY_INVALID_WINDOW");return e}};export{he as SESSION_QUERY_DEFAULT_PERSISTED_INSPECT_CONCURRENCY,ue as SESSION_QUERY_READ_WINDOW_MAX,se as SessionQueryEngine,se as default,h as SessionQueryError,Ne as SessionSearchCursor,I as assertSessionHeadersCompatible,Se as buildSessionEventRecords,V as buildSessionEventSearchDocuments,X as compileSessionTextFilter,P as extractSessionEventText,z as filterSessionEventDocuments,B as filterSessionResults,H as materializeSessionEventResultFilters,G as materializeSessionResultFilters};
1
+ var re=Object.defineProperty;var o=(t,e)=>re(t,"name",{value:e,configurable:!0});import{Service as ne}from"@deepseek-ai/cordis";import{Session as oe,foldSurface as Q,isSurfaceEvent as ae,snapshotSessionEvent as y}from"@deepseek-ai/dsh-session";import{foldSessionTitle as ce}from"@deepseek-ai/dsh-session-title";import{HarnessError as ie}from"@deepseek-ai/dsh-llm";const de=50,ue=4;var h=class extends ie{static{o(this,"SessionQueryError")}constructor(t,e,s){super(t,e,s)}};function I(t,e){if(t.version!==e.version||t.id!==e.id||t.createdAt!==e.createdAt||t.cwd!==e.cwd||t.parentSession!==e.parentSession||t.seedLength!==e.seedLength||(t.delegationDepth??0)!==(e.delegationDepth??0))throw new h(`session source headers conflict for session "${t.id}"`,"SESSION_QUERY_SOURCE_CONFLICT")}o(I,"assertSessionHeadersCompatible");var he=class{static{o(this,"SessionCorpus")}_ctx;_persistedInspectConcurrency;_persistence;_optionalPersistenceFiber;constructor(t,e){this._ctx=t,this._persistedInspectConcurrency=e,this._optionalPersistenceFiber=t.inject(["sessionPersistence"],s=>{const r=s.sessionPersistence;this._persistence=r,s.effect(()=>()=>{this._persistence===r&&(this._persistence=void 0)},"sessionQuery.persistenceBinding")}),t.effect(()=>()=>this._optionalPersistenceFiber.dispose(),"sessionQuery.optionalPersistence")}async listSessions(t){t?.throwIfAborted();const e=this._persistence,s=e===void 0?[]:await U(e,t);t?.throwIfAborted();const r=new Map;for(const n of s)r.set(n.id,{header:structuredClone(n),live:!1,persisted:!0});for(const n of this._ctx.sessions.list()){const c=r.get(n.id);c!==void 0&&I(n.header,c.header),r.set(n.id,{header:structuredClone(n.header),live:!0,persisted:c!==void 0})}return[...r.values()].sort(fe)}async load(t,e){e?.throwIfAborted();const s=this._ctx.sessions.get(t);if(s!==void 0){const u=Y(s);return e?.throwIfAborted(),u}const r=this._persistence;if(r===void 0)throw b(t);const n=(await U(r,e)).find(u=>u.id===t);if(e?.throwIfAborted(),n===void 0)throw b(t);const c=await L(r,t,e);e?.throwIfAborted();const a=this._ctx.sessions.get(t);if(a!==void 0){const u=Y(a);return e?.throwIfAborted(),u}I(c.meta,n);const d={header:structuredClone(c.meta),events:c.events.map(u=>structuredClone(u))};return e?.throwIfAborted(),d}async projectMany(t,e,s){const r=[...new Set(t)];s?.throwIfAborted();const n=new Map,c=[];for(const i of r){const w=this._ctx.sessions.get(i);w===void 0?c.push(i):n.set(i,N(i,g(w),e,s))}if(c.length===0)return A(r,n);const a=this._persistence;if(a===void 0){for(const i of c)n.set(i,{sessionId:i,status:"rejected",reason:b(i)});return A(r,n)}let d;try{d=await U(a,s),s?.throwIfAborted()}catch(i){s?.aborted&&s.throwIfAborted();for(const w of c)n.set(w,{sessionId:w,status:"rejected",reason:i});return A(r,n)}const u=new Map(d.map(i=>[i.id,i])),l=o(async i=>{const w=u.get(i);if(w===void 0){const m=this._ctx.sessions.get(i);n.set(i,m===void 0?{sessionId:i,status:"rejected",reason:b(i)}:N(i,g(m),e,s));return}try{s?.throwIfAborted();const m=await L(a,i,s);s?.throwIfAborted();const M=this._ctx.sessions.get(i);if(M!==void 0){n.set(i,N(i,g(M),e,s));return}I(m.meta,w),n.set(i,N(i,{header:m.meta,events:m.events},e,s))}catch(m){s?.aborted&&s.throwIfAborted(),n.set(i,{sessionId:i,status:"rejected",reason:m})}},"resolvePersisted");let p=0;const f=o(async()=>{for(;;){s?.throwIfAborted();const i=p;if(i>=c.length)return;p+=1,await l(c[i])}},"worker"),S=Math.min(this._persistedInspectConcurrency,c.length),v=await Promise.allSettled(Array.from({length:S},()=>f()));s?.aborted&&s.throwIfAborted();for(const i of v)if(i.status==="rejected")throw i.reason;return s?.throwIfAborted(),A(r,n)}};function N(t,e,s,r){try{r?.throwIfAborted();const n=s(e);return r?.throwIfAborted(),{sessionId:t,status:"fulfilled",value:n}}catch(n){return r?.aborted&&r.throwIfAborted(),{sessionId:t,status:"rejected",reason:n}}}o(N,"projectSource");function g(t){return{header:t.header,events:t.events}}o(g,"sourceLive");function A(t,e){return t.map(s=>e.get(s))}o(A,"orderedResults");async function U(t,e){try{return await t.list(e)}catch(s){throw e?.aborted&&e.throwIfAborted(),new h(`session persistence listing failed: ${q(s)}`,"SESSION_QUERY_PERSISTENCE_FAILED",{cause:s})}}o(U,"listPersisted");async function L(t,e,s){try{return await t.inspect(e,s)}catch(r){throw s?.aborted&&s.throwIfAborted(),r instanceof Error&&r.name==="SessionPersistenceCorruptionError"?new h(`stored session "${e}" is corrupt: ${q(r)}`,"SESSION_QUERY_CORRUPT_SESSION",{cause:r}):new h(`failed to inspect session "${e}": ${q(r)}`,"SESSION_QUERY_PERSISTENCE_FAILED",{cause:r})}}o(L,"inspectPersisted");function Y(t){return{header:structuredClone(t.header),events:t.events.map(e=>structuredClone(e))}}o(Y,"snapshotLive");function fe(t,e){return e.header.createdAt-t.header.createdAt||t.header.id.localeCompare(e.header.id)}o(fe,"compareSessions");function b(t){return new h(`session "${t}" not found`,"SESSION_QUERY_SESSION_NOT_FOUND")}o(b,"notFound");function q(t){return t instanceof Error?t.message:"unknown error"}o(q,"errorMessage");function P(t){switch(t.type){case"user/message":return F(t.data.content);case"assistant/message":return F(t.data.message.content);case"tool/call":return E([t.data.name,t.data.arguments]);case"tool/result":return E([F(t.data.message.content),t.data.error?.name??"",t.data.error?.code??""]);case"todo/write":return E(t.data.todos.flatMap(e=>[e.status,e.content]));case"turn/end":return pe(t.data.reason);case"turn/start":case"step/start":case"step/end":case"assistant/chunk":case"request/header":return"";default:return""}}o(P,"extractSessionEventText");function pe(t){switch(t.kind){case"error":return E(["error",t.error.message]);case"aborted":return"aborted";case"max-tokens":case"interrupted":return t.kind;case"completed":return"";default:return""}}o(pe,"turnEndText");function F(t){return E(t.flatMap(W))}o(F,"contentText");function W(t){switch(t.type){case"text":return[t.text];case"reasoning":return[];case"tool-call":return[t.name,t.arguments];case"tool-result":return t.content.flatMap(W);default:return[]}}o(W,"blockText");function E(t){return t.map(e=>e.trim()).filter(Boolean).join(`
2
+ `)}o(E,"joinText");function le(t,e){const s=j(e);return e.map(r=>({sessionId:t,seq:r.seq,type:r.type,time:r.time,surface:s.get(r.seq)??"log-only"}))}o(le,"buildSessionEventRecords");function V(t,e){const s=j(e),r=[];for(const n of e){const c=P(n);c.length!==0&&r.push({sessionId:t,seq:n.seq,type:n.type,time:n.time,surface:s.get(n.seq)??"log-only",text:c})}return r}o(V,"buildSessionEventSearchDocuments");function j(t){let e;try{e=Q(t)}catch(r){throw new h(`invalid session surface: ${r instanceof Error?r.message:"unknown error"}`,"SESSION_QUERY_INVALID_SURFACE",{cause:r})}const s=new Map;for(const r of e.nodes)s.set(r,"current");for(const r of e.replacements)for(const n of r.shadowedSeqs)s.set(n,"shadowed");return s}o(j,"classifySurface");function B(t,e=[]){const s=e.map(Se);return t.filter(r=>s.every(n=>n(r)))}o(B,"filterSessionResults");function z(t,e=[]){const s=e.map(we);return t.filter(r=>s.every(n=>n(r)))}o(z,"filterSessionEventDocuments");function G(t){return J(t),t.map(e=>{switch(e.kind){case"id":return{kind:e.kind,values:R(e.kind,e.values)};case"cwd":return{kind:e.kind,values:K(e.kind,e.values)};case"created-at":return Z(e.kind,e);case"parent":return{kind:e.kind,values:K(e.kind,e.values)};case"availability":{const s=R(e.kind,e.values);return x(e.kind,s,["live","persisted"]),{kind:e.kind,values:s}}default:return k(e)}})}o(G,"materializeSessionResultFilters");function H(t){return J(t),t.map(e=>{switch(e.kind){case"seq":case"time":return Z(e.kind,e);case"type":return{kind:e.kind,values:R(e.kind,e.values)};case"surface":{const s=R(e.kind,e.values);return x(e.kind,s,["current","shadowed","log-only"]),{kind:e.kind,values:s}}case"text":if(typeof e.text!="string")throw _("text filter text must be a string");return{kind:e.kind,text:e.text};default:return k(e)}})}o(H,"materializeSessionEventResultFilters");function X(t){const e=t.trim();if(e.length===0)throw new h("session text filter must contain non-whitespace text","SESSION_QUERY_INVALID_FILTER");const s=e.split(/\s+/u).map(r=>r.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join("\\s+");return new RegExp(s,"iu")}o(X,"compileSessionTextFilter");function Se(t){switch(t.kind){case"id":return e=>t.values.includes(e.header.id);case"cwd":return e=>t.values.includes(e.header.cwd??null);case"created-at":{const e=C(t.kind,t);return s=>T(s.header.createdAt,e)}case"parent":return e=>t.values.includes(e.header.parentSession??null);case"availability":return x(t.kind,t.values,["live","persisted"]),e=>t.values.some(s=>s==="live"?e.live:e.persisted);default:return k(t)}}o(Se,"sessionPredicate");function we(t){switch(t.kind){case"seq":{const e=C(t.kind,t);return s=>T(s.seq,e)}case"time":{const e=C(t.kind,t);return s=>T(s.time,e)}case"type":return e=>t.values.includes(e.type);case"surface":return x(t.kind,t.values,["current","shadowed","log-only"]),e=>t.values.includes(e.surface);case"text":{const e=X(t.text);return s=>e.test(s.text)}default:return k(t)}}o(we,"eventPredicate");function R(t,e){if(!ee(e)||e.some(s=>typeof s!="string"))throw _(`${t} filter values must be an array of strings`);return[...e]}o(R,"copyStrings");function J(t){if(!Array.isArray(t))throw _("filters must be an array")}o(J,"assertArray");function K(t,e){if(!ee(e)||e.some(s=>s!==null&&typeof s!="string"))throw _(`${t} filter values must be an array of strings or null`);return[...e]}o(K,"copyNullableStrings");function Z(t,e){const s={kind:t,...e.from===void 0?{}:{from:e.from},...e.to===void 0?{}:{to:e.to}};return C(t,s),s}o(Z,"copyRange");function k(t){const e=t.kind;throw _(`unknown filter kind ${typeof e=="string"?`"${e}"`:"(missing)"}`)}o(k,"unknownFilter");function x(t,e,s){for(const r of e)if(!s.includes(r))throw new h(`session ${t} filter contains unknown value "${r}"`,"SESSION_QUERY_INVALID_FILTER")}o(x,"assertAllowedValues");function C(t,e){if(e.from!==void 0&&!Number.isFinite(e.from))throw $(t,"from must be finite");if(e.to!==void 0&&!Number.isFinite(e.to))throw $(t,"to must be finite");if(e.from!==void 0&&e.to!==void 0&&e.from>e.to)throw $(t,"from must be less than or equal to to");return e}o(C,"validateRange");function T(t,e){return(e.from===void 0||t>=e.from)&&(e.to===void 0||t<=e.to)}o(T,"matchesRange");function $(t,e){return _(`${t} filter ${e}`)}o($,"invalidRange");function _(t){return new h(`session ${t}`,"SESSION_QUERY_INVALID_FILTER")}o(_,"invalidFilter");function ee(t){return Array.isArray(t)}o(ee,"isRuntimeArray");function me(t,e){return D(t,e).records}o(me,"eventRecords");function ve(t,e){return D(t,e).currentSeqs.map(s=>{const r=e[s];if(r===void 0||r.seq!==s||!ae(r))throw new h(`invalid session surface: current node ${s} is not a surface event`,"SESSION_QUERY_INVALID_SURFACE");return y(r)})}o(ve,"currentSurfaceEvents");function _e(t,e,s){const r=e[s];if(r===void 0||r.seq!==s)throw new h(`session "${t}" has no event at seq ${s}`,"SESSION_QUERY_EVENT_NOT_FOUND");const n=D(t,e),c=[];let a=n.replacedBy.get(s);for(;a!==void 0;)c.push(a),a=n.replacedBy.get(a);const d=[];for(const p of e)p.seq<=s||te(p).includes(s)&&d.push(p.seq);const u=n.records[s],l=n.replacedBy.get(s);return{target:u,...l===void 0?{}:{replacedBy:l},replacementChain:c,replacedEventSeqs:n.replacedEventSeqs.get(s)??[],sourceEventSeqs:[...te(r)],derivedEventSeqs:d}}o(_e,"traceEvent");function Ee(t,e){const s=new Map(t.map(f=>[f.header.id,f])),r=s.get(e);if(r===void 0)throw new h(`session "${e}" not found`,"SESSION_QUERY_SESSION_NOT_FOUND");const n=[],c=new Set([e]);let a,d=r.header.parentSession;for(;d!==void 0;){if(c.has(d))throw new h(`session lineage contains a cycle at "${d}"`,"SESSION_QUERY_INVALID_LINEAGE");c.add(d);const f=s.get(d);if(f===void 0){a=d;break}n.push(f),d=f.header.parentSession}const u=new Map;for(const f of t){const S=f.header.parentSession;if(S===void 0)continue;const v=u.get(S)??[];v.push(f),u.set(S,v)}for(const f of u.values())f.sort((S,v)=>S.header.createdAt-v.header.createdAt||S.header.id.localeCompare(v.header.id));const l=ye(u,e),p={target:O(r),ancestors:n.map(O),descendants:l};return a!==void 0?{...p,complete:!1,unresolvedParentId:a}:{...p,complete:!0,root:O(n.at(-1)??r)}}o(Ee,"traceSession");function D(t,e){let s;try{s=Q(e)}catch(a){throw new h(`invalid session surface: ${a instanceof Error?a.message:"unknown error"}`,"SESSION_QUERY_INVALID_SURFACE",{cause:a})}const r=new Set(s.nodes),n=new Map,c=new Map;for(const a of s.replacements){const d=a.shadowedSeqs;c.set(a.seq,d);for(const u of d)n.set(u,a.seq)}return{records:e.map(a=>({sessionId:t,seq:a.seq,type:a.type,time:a.time,surface:r.has(a.seq)?"current":n.has(a.seq)?"shadowed":"log-only"})),replacedBy:n,replacedEventSeqs:c,currentSeqs:[...s.nodes]}}o(D,"analyzeEventLog");function te(t){return t.sourceEventSeqs??[]}o(te,"eventSources");function ye(t,e){const s=[],r=[{sessionId:e,descendants:s}];for(;r.length>0;){const n=r.pop(),c=[];for(const a of t.get(n.sessionId)??[]){const d={session:O(a),descendants:[]};c.push(d),n.descendants.push(d)}for(let a=c.length-1;a>=0;a-=1){const d=c[a];r.push({sessionId:d.session.header.id,descendants:d.descendants})}}return s}o(ye,"buildDescendants");function O(t){return{...t,header:structuredClone(t.header)}}o(O,"cloneRecord");function Ie(t){return t}o(Ie,"SessionSearchCursor");var se=class extends ne{static{o(this,"SessionQueryEngine")}static inject=["sessions"];_readWindowMax;_corpus;constructor(t,e={}){if(super(t,"sessionQuery"),this._readWindowMax=e.readWindowMax??50,!Number.isInteger(this._readWindowMax)||this._readWindowMax<0)throw new h("session-query: readWindowMax must be a non-negative integer","SESSION_QUERY_INVALID_CONFIG");const s=e.persistedInspectConcurrency??4;if(!Number.isSafeInteger(s)||s<1)throw new h("session-query: persistedInspectConcurrency must be a positive safe integer","SESSION_QUERY_INVALID_CONFIG");this._corpus=new he(t,s)}listSessions(t){return this._corpus.listSessions(t)}async readSession(t){const e=await this._corpus.load(t);return oe.create(t,e.events,e.header),{session:structuredClone(e.header),events:e.events.map(y)}}async filterSessions(t,e){const s=G(t);return this._filterSessions(s,e)}async readTitle(t,e){return(await this.readTitleSnapshot(t,e)).title}async readTitleSnapshot(t,e){const s=(await this.readTitleSnapshots([t],e))[0];if(s.status==="rejected")throw s.reason;return s.value}async readTitleSnapshots(t,e){return this._corpus.projectMany(t,s=>{const r=ce(s.events);return{session:structuredClone(s.header),...r===void 0?{}:{title:r}}},e)}async listEvents(t){return me(t,(await this._corpus.load(t)).events)}async filterEvents(t,e){const s=H(e);return this._filterEvents(t,s)}async _filterSessions(t,e){return B(await this._corpus.listSessions(e),t)}async _filterEvents(t,e){return z(V(t,(await this._corpus.load(t)).events),e)}async readSurface(t){const e=await this._corpus.load(t);return{session:structuredClone(e.header),capturedThroughSeq:e.events.at(-1)?.seq??null,events:ve(t,e.events)}}async traceSession(t,e){const s=await this._corpus.listSessions(e);return e?.throwIfAborted(),Ee(s,t)}async traceEvent(t,e){const s=await this._corpus.load(t.sessionId,e);return e?.throwIfAborted(),{session:s.header,..._e(t.sessionId,s.events,t.seq)}}async readEvent(t,e){const s=this._readWindow("before",t.before),r=this._readWindow("after",t.after),n=t.sessionId,c=t.seq;return this._readEvent(n,c,s,r,e)}async _readEvent(t,e,s,r,n){const c=await this._corpus.load(t,n);n?.throwIfAborted();const a=c.events[e];if(a===void 0||a.seq!==e)throw new h(`session "${t}" has no event at seq ${e}`,"SESSION_QUERY_EVENT_NOT_FOUND");const d=Math.max(0,e-s),u=Math.min(c.events.length-1,e+r),l=y(a),p=c.events.slice(d,u+1).map(f=>f===a?l:y(f));return{session:structuredClone(c.header),target:l,events:p,startSeq:d,endSeq:u}}_readWindow(t,e){if(e===void 0)return 0;if(!Number.isInteger(e)||e<0||e>this._readWindowMax)throw new h(`${t} must be an integer between 0 and ${this._readWindowMax}`,"SESSION_QUERY_INVALID_WINDOW");return e}};export{ue as SESSION_QUERY_DEFAULT_PERSISTED_INSPECT_CONCURRENCY,de as SESSION_QUERY_READ_WINDOW_MAX,se as SessionQueryEngine,se as default,h as SessionQueryError,Ie as SessionSearchCursor,I as assertSessionHeadersCompatible,le as buildSessionEventRecords,V as buildSessionEventSearchDocuments,X as compileSessionTextFilter,P as extractSessionEventText,z as filterSessionEventDocuments,B as filterSessionResults,H as materializeSessionEventResultFilters,G as materializeSessionResultFilters};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-query","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-session-persistence":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-session-title":"^0.0.15"},"peerDependenciesMeta":{"@deepseek-ai/dsh-session-persistence":{"optional":true}}}
1
+ {"name":"@deepseek-ai/dsh-session-query","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-session-title":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7"},"peerDependenciesMeta":{"@deepseek-ai/dsh-session-persistence":{"optional":true}}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-query-sqlite","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-session-persistence":"^0.0.15","@deepseek-ai/dsh-session-query":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"peerDependenciesMeta":{"@deepseek-ai/dsh-session-persistence":{"optional":true}},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-query-sqlite","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session-query":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7"},"peerDependenciesMeta":{"@deepseek-ai/dsh-session-persistence":{"optional":true}},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-reference","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-compaction":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-output-retention":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-session-query":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-reference","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-compaction":"^0.1.0-rc.7","@deepseek-ai/dsh-output-retention":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-query":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-stats","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-session-projection":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"zod":"^4.4.3"}}
1
+ {"name":"@deepseek-ai/dsh-session-stats","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7"},"dependencies":{"zod":"^4.4.3"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-telemetry","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-telemetry","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-telemetry-otel","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@opentelemetry/api":"^1.9.1","@opentelemetry/api-logs":"^0.220.0","@opentelemetry/exporter-logs-otlp-http":"^0.220.0","@opentelemetry/otlp-exporter-base":"^0.220.0","@opentelemetry/resources":"^2.9.0","@opentelemetry/sdk-logs":"^0.220.0","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-command-feedback":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-anonymous-user-id":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-telemetry":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-session-telemetry-otel","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@opentelemetry/api":"^1.9.1","@opentelemetry/api-logs":"^0.220.0","@opentelemetry/exporter-logs-otlp-http":"^0.220.0","@opentelemetry/otlp-exporter-base":"^0.220.0","@opentelemetry/resources":"^2.9.0","@opentelemetry/sdk-logs":"^0.220.0","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-command-feedback":"^0.1.0-rc.7","@deepseek-ai/dsh-session-telemetry":"^0.1.0-rc.7","@deepseek-ai/dsh-anonymous-user-id":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-title","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.0.15"},"dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-title","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.1.0-rc.7"},"dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-title-first-prompt-llm","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-session-title":"^0.0.15","@deepseek-ai/dsh-session-title-llm":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-title-first-prompt-llm","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session-title":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-title-llm":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-title-llm","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-timeout":"^0.0.15","@deepseek-ai/dsh-session-title":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-title-llm","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-session-title":"^0.1.0-rc.7","@deepseek-ai/dsh-timeout":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-settings","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-settings","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-settings-file","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-atomic-write":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-home-paths":"^0.0.15","@deepseek-ai/dsh-settings":"^0.0.15"},"dependencies":{"chokidar":"^4.0.3","yaml":"^2.9.0","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-settings-file","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-atomic-write":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-settings":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"chokidar":"^4.0.3","yaml":"^2.9.0","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-shell","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-subprocess":"^0.0.15","@deepseek-ai/dsh-sandbox":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-shell","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-subprocess":"^0.1.0-rc.7","@deepseek-ai/dsh-settings":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- var b=Object.defineProperty;var c=(e,r)=>b(e,"name",{value:r,configurable:!0});import{Service as E}from"@deepseek-ai/cordis";import h from"@deepseek-ai/schemastery";import{DSH_ENV_PREFIX as i}from"@deepseek-ai/dsh-shell";import{DSH_HOME_ENV as l,resolveDshHome as w}from"@deepseek-ai/dsh-home-paths";const S="shell-env",p=[],u=h.object({dshHome:h.string()}),m=`${i}SHELL`,d=`${i}SESSION_ID`,v=`${i}SESSION_JSONL`,y=new Set([l,m,d]),_=/^[A-Z][A-Z0-9_]*$/;var f=class extends E{static{c(this,"ShellEnvRegistry")}contributors=new Map;keyOwners=new Map;dshHome;constructor(e,r={}){super(e,"shellEnv"),this.dshHome=w(r.dshHome)}register(e){const r=this.ctx.effect(function*(){if(e.name.trim().length===0)throw new Error("bash env contributor name must be non-empty");if(this.contributors.has(e.name))throw new Error(`bash env contributor "${e.name}" is already registered`);const s=Object.entries(e.variables);for(const[t,n]of s){if(y.has(t))throw new Error(`bash env contributor "${e.name}" cannot own reserved key "${t}"`);if(!t.startsWith(i)||!_.test(t.slice(i.length)))throw new Error(`bash env contributor "${e.name}" declared invalid key "${t}"`);if(n.description.trim().length===0)throw new Error(`bash env contributor "${e.name}" must describe "${t}"`);const o=this.keyOwners.get(t);if(o!==void 0)throw new Error(`bash env key "${t}" is already owned by contributor "${o}"; contributor "${e.name}" cannot also own it`)}this.contributors.set(e.name,e);for(const[t]of s)this.keyOwners.set(t,e.name);yield()=>{this.contributors.delete(e.name);for(const[t]of s)this.keyOwners.delete(t)}}.bind(this),"bashEnv.register()");return()=>{r()}}collect(e){const r={[l]:this.dshHome,[m]:"1"};e.agent!==void 0&&(r[d]=e.agent.session.header.id);for(const s of[...this.contributors.values()].sort((t,n)=>t.name.localeCompare(n.name))){const t=s.resolve(e);for(const[n,o]of Object.entries(t)){const a=n;if(!Object.hasOwn(s.variables,a))throw new Error(`bash env contributor "${s.name}" returned undeclared key "${a}"`);if(typeof o!="string")throw new Error(`bash env contributor "${s.name}" returned a non-string value for "${a}"`);r[a]=o}}return Object.freeze(Object.fromEntries(Object.entries(r).sort(([s],[t])=>s.localeCompare(t))))}list(){return[...this.contributors.values()].flatMap(e=>Object.entries(e.variables).map(([r,s])=>({contributor:e.name,description:s.description,key:r}))).sort((e,r)=>e.key.localeCompare(r.key))}};function O(e,r={}){new f(e,r).register({name:"session-persistence",variables:{[v]:{description:"Absolute target path of the current session JSONL when the active persistence backend provides one."}},resolve(s){const t=s.agent;if(t===void 0)return{};const n=e.get("sessionPersistence")?.locate(t.session.header);return n?.kind==="jsonl"?{[v]:n.path}:{}}})}c(O,"apply");export{u as Config,f as ShellEnvRegistry,O as apply,p as inject,S as name};
1
+ var b=Object.defineProperty;var c=(e,r)=>b(e,"name",{value:r,configurable:!0});import{Service as E}from"@deepseek-ai/cordis";import h from"@deepseek-ai/schemastery";import{DSH_ENV_PREFIX as i}from"@deepseek-ai/dsh-shell";import{DSH_HOME_ENV as l,resolveDshHome as w}from"@deepseek-ai/dsh-home-paths";const S="shell-env",p=[],u=h.object({dshHome:h.string()}),m=`${i}SHELL`,d=`${i}SESSION_ID`,v=`${i}SESSION_JSONL`,y=new Set([l,m,d]),_=/^[A-Z][A-Z0-9_]*$/;var f=class extends E{static{c(this,"ShellEnvRegistry")}contributors=new Map;keyOwners=new Map;dshHome;constructor(e,r={}){super(e,"shellEnv"),this.dshHome=w(r.dshHome)}register(e){const r=this.ctx.effect(function*(){if(e.name.trim().length===0)throw new Error("bash env contributor name must be non-empty");if(this.contributors.has(e.name))throw new Error(`bash env contributor "${e.name}" is already registered`);const s=Object.entries(e.variables);for(const[t,n]of s){if(!t.startsWith(i)||!_.test(t.slice(i.length)))throw new Error(`bash env contributor "${e.name}" declared invalid key "${t}"`);if(y.has(t))throw new Error(`bash env contributor "${e.name}" cannot own reserved key "${t}"`);if(n.description.trim().length===0)throw new Error(`bash env contributor "${e.name}" must describe "${t}"`);const o=this.keyOwners.get(t);if(o!==void 0)throw new Error(`bash env key "${t}" is already owned by contributor "${o}"; contributor "${e.name}" cannot also own it`)}this.contributors.set(e.name,e);for(const[t]of s)this.keyOwners.set(t,e.name);yield()=>{this.contributors.delete(e.name);for(const[t]of s)this.keyOwners.delete(t)}}.bind(this),"bashEnv.register()");return()=>{r()}}collect(e){const r={[l]:this.dshHome,[m]:"1"};e.agent!==void 0&&(r[d]=e.agent.session.header.id);for(const s of[...this.contributors.values()].sort((t,n)=>t.name.localeCompare(n.name))){const t=s.resolve(e);for(const[n,o]of Object.entries(t)){const a=n;if(!Object.hasOwn(s.variables,a))throw new Error(`bash env contributor "${s.name}" returned undeclared key "${a}"`);if(typeof o!="string")throw new Error(`bash env contributor "${s.name}" returned a non-string value for "${a}"`);r[a]=o}}return Object.freeze(Object.fromEntries(Object.entries(r).sort(([s],[t])=>s.localeCompare(t))))}list(){return[...this.contributors.values()].flatMap(e=>Object.entries(e.variables).map(([r,s])=>({contributor:e.name,description:s.description,key:r}))).sort((e,r)=>e.key.localeCompare(r.key))}};function O(e,r={}){new f(e,r).register({name:"session-persistence",variables:{[v]:{description:"Absolute target path of the current session JSONL when the active persistence backend provides one."}},resolve(s){const t=s.agent;if(t===void 0)return{};const n=e.get("sessionPersistence")?.locate(t.session.header);return n?.kind==="jsonl"?{[v]:n.path}:{}}})}c(O,"apply");export{u as Config,f as ShellEnvRegistry,O as apply,p as inject,S as name};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-shell-env","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-home-paths":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-shell":"^0.0.15","@deepseek-ai/dsh-session-persistence":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-shell-env","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-skill","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-scope":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-skill","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-scope":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-skill-badge","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-skill":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-skill-badge","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-skill":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-skill-filesystem","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-home-paths":"^0.0.15","@deepseek-ai/dsh-skill":"^0.0.15","@deepseek-ai/dsh-fs":"^0.0.15"},"dependencies":{"chokidar":"^5.0.0","yaml":"^2.4.2","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-skill-filesystem","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-fs":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-skill":"^0.1.0-rc.7"},"dependencies":{"chokidar":"^5.0.0","yaml":"^2.4.2","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-spill","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-spill","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-spill-local","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-spill":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-spill-local","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-spill":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-spill-policy","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-spill":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-output-retention":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-spill-policy","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-spill":"^0.1.0-rc.7","@deepseek-ai/dsh-output-retention":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-storage","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-storage","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-storage-domain","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-storage":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-storage-domain","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-storage":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-storage-json","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-storage":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-storage-json","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-storage":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-subagent","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3"},"peerDependencies":{"@deepseek-ai/dsh-agent-presets":"^0.0.15","@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-sandbox":"^0.0.15","@deepseek-ai/dsh-brand":"^0.0.15","@deepseek-ai/dsh-sandbox-policy":"^0.0.15","@deepseek-ai/dsh-scope":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-session-persistence":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session-projection":"^0.0.15","@deepseek-ai/dsh-jobs":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-session-projection-cache":"^0.0.15","@deepseek-ai/dsh-user-approval":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"peerDependenciesMeta":{"@deepseek-ai/dsh-agent-presets":{"optional":true},"@deepseek-ai/dsh-sandbox":{"optional":true},"@deepseek-ai/dsh-sandbox-policy":{"optional":true},"@deepseek-ai/dsh-session-persistence":{"optional":true},"@deepseek-ai/dsh-session-projection":{"optional":true},"@deepseek-ai/dsh-session-projection-cache":{"optional":true},"@deepseek-ai/dsh-jobs":{"optional":true},"@deepseek-ai/dsh-user-approval":{"optional":true}}}
1
+ {"name":"@deepseek-ai/dsh-subagent","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3"},"peerDependencies":{"@deepseek-ai/dsh-agent-presets":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-scope":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7","@deepseek-ai/dsh-session-projection":"^0.1.0-rc.7","@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-session-projection-cache":"^0.1.0-rc.7","@deepseek-ai/dsh-jobs":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-user-approval":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"peerDependenciesMeta":{"@deepseek-ai/dsh-agent-presets":{"optional":true},"@deepseek-ai/dsh-sandbox":{"optional":true},"@deepseek-ai/dsh-sandbox-policy":{"optional":true},"@deepseek-ai/dsh-session-persistence":{"optional":true},"@deepseek-ai/dsh-session-projection":{"optional":true},"@deepseek-ai/dsh-session-projection-cache":{"optional":true},"@deepseek-ai/dsh-jobs":{"optional":true},"@deepseek-ai/dsh-user-approval":{"optional":true}}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-subagent-fork-in-process","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/dsh-subagent-in-process-driver":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-agent":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-subagent-fork-in-process","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent-in-process-driver":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-subagent-in-process-driver","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-subagent-in-process-driver","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-subagent-spawn-in-process","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-subagent-in-process-driver":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-subagent-spawn-in-process","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent-in-process-driver":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- var E=Object.defineProperty;var t=(e,s)=>E(e,"name",{value:s,configurable:!0});import{Service as u}from"@deepseek-ai/cordis";const S="DSH_",n=/KEY|PASSWORD|SECRET|TOKEN/i;function p(){const e={};for(const[s,r]of Object.entries(process.env)){const o=s.toUpperCase();r!==void 0&&!n.test(s)&&o!=="QBOT_DSH_HOME"&&!o.startsWith("DSH_")&&(e[s]=r)}return e}t(p,"scrubbedParentEnv");var c=class extends u{static{t(this,"SubprocessRuntime")}constructor(e){super(e,"subprocess")}};export{S as DSH_ENV_PREFIX,n as SENSITIVE_ENV_PATTERN,c as SubprocessRuntime,c as default,p as scrubbedParentEnv};
1
+ var c=Object.defineProperty;var t=(e,s)=>c(e,"name",{value:s,configurable:!0});import{Service as E}from"@deepseek-ai/cordis";const u="DSH_",o=/KEY|PASSWORD|SECRET|TOKEN/i;function S(){const e={};for(const[s,r]of Object.entries(process.env))r!==void 0&&!o.test(s)&&!s.toUpperCase().startsWith("DSH_")&&(e[s]=r);return e}t(S,"scrubbedParentEnv");var n=class extends E{static{t(this,"SubprocessRuntime")}constructor(e){super(e,"subprocess")}};export{u as DSH_ENV_PREFIX,o as SENSITIVE_ENV_PATTERN,n as SubprocessRuntime,n as default,S as scrubbedParentEnv};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-subprocess","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-subprocess","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-subprocess-local","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-subprocess":"^0.0.15","@deepseek-ai/dsh-timeout":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"node-pty":"^1.1.0"}}
1
+ {"name":"@deepseek-ai/dsh-subprocess-local","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-subprocess":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-timeout":"^0.1.0-rc.7"},"dependencies":{"node-pty":"1.2.0-beta.15"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-system-prompt","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-scope":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-llm":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-system-prompt","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-scope":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-terminal","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-brand":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-terminal","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -7,4 +7,4 @@ var T=Object.defineProperty;var o=(t,e)=>T(t,"name",{value:e,configurable:!0});i
7
7
  `),this.dropped=!0)}const e=m(this.value,this.maxBytes);this.value=e.text,this.dropped||=e.truncated}consume(){const t=this.value,e=this.dropped;return this.value="",this.dropped=!1,{delta:t,truncated:e}}snapshot(){return{text:this.value,truncated:this.dropped}}},O=class{static{o(this,"LocalSendOperation")}startedAt;onCancel;output;promise;finished=!1;cancellationRequested=!1;initialForegroundLeftWait;initialForegroundPgid;constructor(t,e,i){this.startedAt=e,this.onCancel=i,this.output=new v(t),this.promise=Promise.withResolvers(),this.initialForegroundLeftWait=!0}get done(){return this.promise.promise}get settled(){return this.finished}get cancelRequested(){return this.cancellationRequested}append(t){this.finished||this.output.append(t)}settle(t,e,i){if(this.finished)return;this.finished=!0;const s=this.output.snapshot();this.promise.resolve({viewport:s.text,waitReason:t,sessionStatus:e,truncated:s.truncated||i})}fail(t){this.finished||(this.finished=!0,this.promise.reject(t))}readOutput(){return this.output.consume()}setInitialForeground(t){this.initialForegroundPgid=t?.processGroupId,this.initialForegroundLeftWait=t?.inputWaiting!==!0}acceptsStdinWait(t,e){return t!==this.initialForegroundPgid?e:(e||(this.initialForegroundLeftWait=!0),e&&this.initialForegroundLeftWait)}cancel(){return this.finished?!1:(this.cancellationRequested=!0,this.onCancel(),!0)}},B=class{static{o(this,"LocalPtySession")}terminal;config;motd="";pid;decoder=new TextDecoder;sanitizer;scrollback;outputEnded=Promise.withResolvers();completion;statusValue={kind:"running"};active;activeTimer;activeDeadlineTimer;activeAbort;interrupting;activeWrite;pollingReady;polling=!1;promptSeen=!1;promptTextSeen=!1;promptTail="";shellPgid;initializing=!1;lastOutputAt=Date.now();closing=!1;closePromise;transportFailure;constructor(t,e){this.terminal=t,this.config=e,this.pid=t.pid,this.sanitizer=new R(e.maxReadBytes),this.scrollback=new v(e.scrollbackMaxBytes,e.scrollbackLines),t.output.on("data",this.onTerminalData),t.output.once("end",this.onTerminalEnd),t.output.once("error",this.onTerminalError),this.completion=t.done.then(i=>this.onExit(i),i=>{this.onTransportFailure(i)})}async initialize(t){this.initializing=!0;try{const e=await this.startSend({text:"",submit:!1,...t!==void 0?{signal:t}:{}}).done;if(e.waitReason==="session_exit")throw new Error("PTY shell exited during startup");if(e.waitReason==="timeout")throw new Error("PTY shell did not reach readiness before startup timeout");this.motd=e.viewport}catch(e){throw t?.throwIfAborted(),e}finally{this.initializing=!1}}startSend(t){if(this.closing)throw new Error("PTY session is closing");if(this.statusValue.kind==="exited")throw new Error("PTY session has exited");if(this.active!==void 0){const i=this.activeWrite!==void 0?" or draining provider write":this.interrupting!==void 0?" or draining foreground interrupt":"";throw new P(`PTY session already has an active send${i}`,"SEND_ACTIVE")}if(t.signal?.aborted===!0)throw new Error("PTY send aborted before write");const e=new O(this.config.maxReadBytes,Date.now(),()=>{this.interrupt(e)});if(this.active=e,this.resetReadinessEvidence(),t.signal!==void 0){const i=o(()=>{e.cancel()},"onAbort");t.signal.addEventListener("abort",i,{once:!0}),this.activeAbort=()=>t.signal?.removeEventListener("abort",i)}return this.activeDeadlineTimer=setTimeout(()=>{this.active===e&&this.settleActive("timeout",this.activeWrite!==void 0||this.interrupting===e)},this.config.timeoutMs),this.beginSend(e,t),e}async beginSend(t,e){let i;try{i=await this.terminal.inspectForeground()}catch(s){this.active===t&&!this.closing&&this.interrupting!==t&&this.failActive(s);return}try{if(this.active!==t||this.closing||this.interrupting===t)return;t.setInitialForeground(i);const s=`${e.text}${e.submit?"\r":""}`;if(s.length>0&&!t.cancelRequested){this.resetReadinessEvidence();const n=this.terminal.write(s);this.activeWrite=n.then(()=>!0,()=>!1);try{await n}finally{this.activeWrite=void 0}}if(t.cancelRequested)return;if(this.active===t&&t.settled){this.clearActive();return}this.active===t&&!this.closing&&(this.pollingReady=t,this.schedulePoll(t))}catch(s){this.active===t&&!this.closing&&(t.settled?this.clearActive():this.failActive(s))}}resetReadinessEvidence(){this.lastOutputAt=Date.now(),this.promptSeen=!1,this.promptTextSeen=!1,this.promptTail=""}read(t){const e=this.scrollback.snapshot(),i=e.text.split(`
8
8
  `),s=e.text.length===0?0:i.length,n=t.offset??0,r=t.count??500;if(!Number.isSafeInteger(n)||n<0)throw new Error("PTY read offset must be a non-negative safe integer");if(!Number.isSafeInteger(r)||r<=0)throw new Error("PTY read count must be a positive safe integer");if(n>=s)return{text:"",totalLines:s,lineBegin:n,lineEnd:n,truncated:e.truncated};const h=s-n,a=Math.max(0,h-r),d=m(i.slice(a,h).join(`
9
9
  `),this.config.maxReadBytes),c=d.text.length===0?0:d.text.split(`
10
- `).length;return{text:d.text,totalLines:s,lineBegin:n,lineEnd:n+c,truncated:e.truncated||d.truncated}}async signal(t){if(this.closing)throw new Error("PTY session is closing");return{delivered:!0,targetPgid:await this.terminal.signalForeground(t)}}status(){return this.statusValue}close(t){if(this.closing=!0,this.closePromise!==void 0)return this.closePromise;const e=this.closeOnce(t).catch(i=>{throw this.closePromise=void 0,this.failActive(i),i});return this.closePromise=e,e}onTerminalData=o(t=>{const e=typeof t=="string"?p.from(t,"utf8"):t;this.onData(this.decoder.decode(e,{stream:!0}))},"onTerminalData");onTerminalEnd=o(()=>{this.onData(this.decoder.decode()),this.appendOutput(this.sanitizer.flush()),this.outputEnded.resolve()},"onTerminalEnd");onTerminalError=o(t=>{this.onTransportFailure(t),this.outputEnded.resolve()},"onTerminalError");onData(t){const e=this.sanitizer.push(t);if(this.appendOutput(e.text),e.prompt&&(this.promptSeen=!0,this.promptTail="",this.lastOutputAt=Date.now()),this.promptSeen&&e.promptTail!==void 0){const i=Math.max(0,6-this.promptTail.length);this.promptTail+=e.promptTail.slice(0,i),e.promptTail.length>i&&(this.promptTail=`${g}\0`),this.promptTextSeen=this.promptTail===g}}async onExit(t){await this.outputEnded.promise,this.transportFailure===void 0&&(this.statusValue={kind:"exited",exitCode:t.exitCode,signal:t.signal},this.settleActive("session_exit"))}onTransportFailure(t){const e=t instanceof Error?t:new Error(String(t));this.transportFailure??=e,this.statusValue={kind:"exited",exitCode:null,signal:null},this.failActive(e),this.terminal.terminate().catch(()=>{})}appendOutput(t){t.length!==0&&(this.lastOutputAt=Date.now(),this.scrollback.append(t),this.active?.append(t))}schedulePoll(t,e=this.config.pollIntervalMs){this.active!==t||this.interrupting===t||this.polling||(this.activeTimer!==void 0&&clearTimeout(this.activeTimer),this.activeTimer=setTimeout(()=>{this.activeTimer=void 0,this.pollReadiness(t)},e))}async pollReadiness(t){if(!(this.active!==t||this.polling)){this.polling=!0;try{if(this.statusValue.kind==="exited"){this.settleActive("session_exit");return}const e=await this.terminal.inspectForeground();if(this.active!==t||this.closing||this.interrupting===t)return;const i=Date.now()-this.lastOutputAt;if(this.promptSeen&&e!==void 0&&this.shellPgid===void 0&&(this.shellPgid=e.processGroupId),this.promptSeen&&this.promptTextSeen&&i>=this.config.pollIntervalMs&&e?.processGroupId===this.shellPgid){this.settleActive("stdin_read");return}const s=Date.now()-t.startedAt,n=!this.initializing||this.scrollback.snapshot().text.length>0,r=n&&e!==void 0&&t.acceptsStdinWait(e.processGroupId,e.inputWaiting);if(s>=this.config.exactProbeAfterMs&&r){this.settleActive("stdin_read");return}const h=this.promptSeen?this.config.handoffGraceMs:0;n&&i>=this.config.idleSilenceMs+h&&this.settleActive("inferred_idle")}catch(e){this.active===t&&!this.closing&&this.interrupting!==t&&this.failActive(e)}finally{this.polling=!1;const e=this.active;e!==void 0&&this.pollingReady===e&&this.schedulePoll(e)}}}settleActive(t,e=!1){const i=this.active;if(i===void 0)return;const s=this.scrollback.snapshot().truncated;e?(this.stopPolling(),this.activeAbort?.(),this.activeAbort=void 0):this.clearActive(),i.settle(t,this.statusValue,s)}stopPolling(){this.stopReadinessPolling(),this.activeDeadlineTimer!==void 0&&clearTimeout(this.activeDeadlineTimer),this.activeDeadlineTimer=void 0}stopReadinessPolling(){this.activeTimer!==void 0&&clearTimeout(this.activeTimer),this.activeTimer=void 0,this.pollingReady=void 0}clearActive(){const t=this.active;this.stopPolling(),this.activeAbort?.(),this.activeAbort=void 0,this.interrupting===t&&(this.interrupting=void 0),this.pollingReady=void 0,this.active=void 0}failActive(t){const e=this.active;e!==void 0&&(this.clearActive(),e.fail(t))}interrupt(t){this.active===t&&(this.interrupting=t,this.stopReadinessPolling(),this.interruptOnce(t))}async interruptOnce(t){try{const e=this.activeWrite;if(e!==void 0&&!await e)return;await this.terminal.signalForeground("SIGINT")}catch(e){this.active===t&&!this.closing&&this.onTransportFailure(e);return}finally{this.interrupting===t&&(this.interrupting=void 0)}this.active===t&&t.settled?this.clearActive():this.active===t&&!this.closing&&(this.pollingReady=t,this.schedulePoll(t,0))}async closeOnce(t){this.stopPolling();try{await this.terminal.terminate()}catch(e){throw new Error(`PTY cleanup failed (${t})`,{cause:e})}if(this.settleActive("session_exit"),await this.completion,this.terminal.output.off("data",this.onTerminalData),this.terminal.output.off("end",this.onTerminalEnd),this.terminal.output.off("error",this.onTerminalError),this.transportFailure!==void 0)throw this.transportFailure}};const D="terminal-bash",I=["terminals","sandboxPolicy","subprocess"],b=new WeakMap;function L(t,e){const i=b.get(e);if(i!==void 0){i.pty=t.terminals,i.sandboxPolicy=t.sandboxPolicy;return}const s={pty:t.terminals,sandboxPolicy:t.sandboxPolicy};b.set(e,s),e.ctx.on("internal/dispatch",(n,r,h)=>{if(r!=="session/event")return;const[a,d]=h;if(a!==e.session||d.type!=="sandbox/mode")return;const c=E(a.events)??s.sandboxPolicy.defaultMode;if(!(d.data.mode===c||!s.pty.hasOwnerActivity(e)))throw new Error(`cannot change sandbox mode from "${c}" to "${d.data.mode}" while persistent terminal sessions are open or being created; wait for creation to settle and close them first`)},{global:!0})}o(L,"ensureSandboxModeFence");function F(t){return{TERM:"dumb",PAGER:"cat",GIT_PAGER:"cat",PS1:g,PROMPT_COMMAND:'printf "\\033]133;D;%s\\007" "$?"',BASH_SILENCE_DEPRECATION_WARNING:"1",DSH_SHELL:"1",DSH_SESSION_ID:t.owner.id,DSH_PTY_SESSION_ID:t.sessionId}}o(F,"childEnvironment");function k(t,e,i){const s=[e.shellPath,...e.shellArgs];if(i.mode==="danger-full-access")return s;const n=t.get("sandbox");if(n===void 0)throw new Error(`terminal-bash: sandbox mode "${i.mode}" requires a ctx.sandbox provider in the execution world`);return n.confine(s,{...i,mode:i.mode}).argv}o(k,"spawnArgv");async function W(t,e){if(e===void 0){await t.initialize(e);return}const i=Promise.withResolvers(),s=o(()=>{i.reject(e.reason)},"onAbort");e.addEventListener("abort",s,{once:!0});try{e.throwIfAborted(),await Promise.race([t.initialize(e),i.promise])}finally{e.removeEventListener("abort",s)}}o(W,"initializeSession");var w=class{static{o(this,"BashTerminalBackend")}ctx;config;spawnTerminal;createSession;type;constructor(t,e,i=n=>t.subprocess.spawnTerminal(n),s=(n,r)=>new B(n,r)){this.ctx=t,this.config=e,this.spawnTerminal=i,this.createSession=s,this.type=e.backendType}async spawn(t){t.signal?.throwIfAborted(),L(this.ctx,t.owner);const e=this.ctx.sandboxPolicy.resolve({session:t.owner.session}),i=k(this.ctx,this.config,e);if(i[0]===void 0)throw new Error("terminal-bash: sandbox returned empty argv");const s=await this.spawnTerminal({argv:i,cwd:t.cwd??e.workspaceRoot,env:F(t),rows:this.config.rows,cols:this.config.cols,graceMs:this.config.disposeGraceMs,signal:t.signal}),n=this.createSession(s,this.config);try{return await W(n,t.signal),n}catch(r){try{await n.close("PTY startup failed")}catch(h){throw new y(r,h)}throw r}}};function C(t,e){S(e),t.terminals.registerBackend(new w(t,e))}o(C,"apply");export{w as BashTerminalBackend,A as Config,C as apply,I as inject,D as name};
10
+ `).length;return{text:d.text,totalLines:s,lineBegin:n,lineEnd:n+c,truncated:e.truncated||d.truncated}}async signal(t){if(this.closing)throw new Error("PTY session is closing");return{delivered:!0,targetPgid:await this.terminal.signalForeground(t)}}status(){return this.statusValue}close(t){if(this.closing=!0,this.closePromise!==void 0)return this.closePromise;const e=this.closeOnce(t).catch(i=>{throw this.closePromise=void 0,this.failActive(i),i});return this.closePromise=e,e}onTerminalData=o(t=>{const e=typeof t=="string"?p.from(t,"utf8"):t;this.onData(this.decoder.decode(e,{stream:!0}))},"onTerminalData");onTerminalEnd=o(()=>{this.onData(this.decoder.decode()),this.appendOutput(this.sanitizer.flush()),this.outputEnded.resolve()},"onTerminalEnd");onTerminalError=o(t=>{this.onTransportFailure(t),this.outputEnded.resolve()},"onTerminalError");onData(t){const e=this.sanitizer.push(t);if(this.appendOutput(e.text),e.prompt&&(this.promptSeen=!0,this.promptTail="",this.lastOutputAt=Date.now()),this.promptSeen&&e.promptTail!==void 0){const i=Math.max(0,6-this.promptTail.length);this.promptTail+=e.promptTail.slice(0,i),e.promptTail.length>i&&(this.promptTail=`${g}\0`),this.promptTextSeen=this.promptTail===g}}async onExit(t){await this.outputEnded.promise,this.transportFailure===void 0&&(this.statusValue={kind:"exited",exitCode:t.exitCode,signal:t.signal},this.settleActive("session_exit"))}onTransportFailure(t){const e=t instanceof Error?t:new Error(String(t));this.transportFailure??=e,this.statusValue={kind:"exited",exitCode:null,signal:null},this.failActive(e),this.terminal.terminate().catch(()=>{})}appendOutput(t){t.length!==0&&(this.lastOutputAt=Date.now(),this.scrollback.append(t),this.active?.append(t))}schedulePoll(t,e=this.config.pollIntervalMs){this.active!==t||this.interrupting===t||this.polling||(this.activeTimer!==void 0&&clearTimeout(this.activeTimer),this.activeTimer=setTimeout(()=>{this.activeTimer=void 0,this.pollReadiness(t)},e))}async pollReadiness(t){if(!(this.active!==t||this.polling)){this.polling=!0;try{if(this.statusValue.kind==="exited"){this.settleActive("session_exit");return}const e=await this.terminal.inspectForeground();if(this.active!==t||this.closing||this.interrupting===t)return;const i=Date.now()-this.lastOutputAt;if(this.promptSeen&&e!==void 0&&this.shellPgid===void 0&&(this.shellPgid=e.processGroupId),this.promptSeen&&this.promptTextSeen&&i>=this.config.pollIntervalMs&&e?.processGroupId===this.shellPgid){this.settleActive("stdin_read");return}const s=Date.now()-t.startedAt,n=!this.initializing||this.scrollback.snapshot().text.length>0,r=n&&e!==void 0&&t.acceptsStdinWait(e.processGroupId,e.inputWaiting);if(s>=this.config.exactProbeAfterMs&&r){this.settleActive("stdin_read");return}const h=this.promptSeen?this.config.handoffGraceMs:0;n&&i>=this.config.idleSilenceMs+h&&this.settleActive("inferred_idle")}catch(e){this.active===t&&!this.closing&&this.interrupting!==t&&this.failActive(e)}finally{this.polling=!1;const e=this.active;e!==void 0&&this.pollingReady===e&&this.schedulePoll(e)}}}settleActive(t,e=!1){const i=this.active;if(i===void 0)return;const s=this.scrollback.snapshot().truncated;e?(this.stopPolling(),this.activeAbort?.(),this.activeAbort=void 0):this.clearActive(),i.settle(t,this.statusValue,s)}stopPolling(){this.stopReadinessPolling(),this.activeDeadlineTimer!==void 0&&clearTimeout(this.activeDeadlineTimer),this.activeDeadlineTimer=void 0}stopReadinessPolling(){this.activeTimer!==void 0&&clearTimeout(this.activeTimer),this.activeTimer=void 0,this.pollingReady=void 0}clearActive(){const t=this.active;this.stopPolling(),this.activeAbort?.(),this.activeAbort=void 0,this.interrupting===t&&(this.interrupting=void 0),this.pollingReady=void 0,this.active=void 0}failActive(t){const e=this.active;e!==void 0&&(this.clearActive(),e.fail(t))}interrupt(t){this.active===t&&(this.interrupting=t,this.stopReadinessPolling(),this.interruptOnce(t))}async interruptOnce(t){try{const e=this.activeWrite;if(e!==void 0&&!await e)return;await this.terminal.signalForeground("SIGINT")}catch(e){this.active===t&&!this.closing&&this.onTransportFailure(e);return}finally{this.interrupting===t&&(this.interrupting=void 0)}this.active===t&&t.settled?this.clearActive():this.active===t&&!this.closing&&(this.pollingReady=t,this.schedulePoll(t,0))}async closeOnce(t){this.stopPolling();try{await this.terminal.terminate()}catch(e){throw new Error(`PTY cleanup failed (${t})`,{cause:e})}if(this.settleActive("session_exit"),await this.completion,this.terminal.output.off("data",this.onTerminalData),this.terminal.output.off("end",this.onTerminalEnd),this.terminal.output.off("error",this.onTerminalError),this.transportFailure!==void 0)throw this.transportFailure}};const D="terminal-bash",I=["terminals","sandboxPolicy","subprocess"],b=new WeakMap;function L(t,e){const i=b.get(e);if(i!==void 0){i.pty=t.terminals,i.sandboxPolicy=t.sandboxPolicy;return}const s={pty:t.terminals,sandboxPolicy:t.sandboxPolicy};b.set(e,s),e.ctx.on("internal/dispatch",(n,r,h)=>{if(r!=="session/event")return;const[a,d]=h;if(a!==e.session||d.type!=="sandbox/mode")return;const c=E(a.events)??s.sandboxPolicy.defaultMode;if(!(d.data.mode===c||!s.pty.hasOwnerActivity(e)))throw new Error(`cannot change sandbox mode from "${c}" to "${d.data.mode}" while persistent terminal sessions are open or being created; wait for creation to settle and close them first`)},{global:!0})}o(L,"ensureSandboxModeFence");function F(t){return{TERM:"dumb",PAGER:"cat",GIT_PAGER:"cat",PS1:g,PROMPT_COMMAND:`printf "\\033]133;D;%s\\007" "$?"; PS1='${g}'`,BASH_SILENCE_DEPRECATION_WARNING:"1",DSH_SHELL:"1",DSH_SESSION_ID:t.owner.id,DSH_PTY_SESSION_ID:t.sessionId}}o(F,"childEnvironment");function k(t,e,i){const s=[e.shellPath,...e.shellArgs];if(i.mode==="danger-full-access")return s;const n=t.get("sandbox");if(n===void 0)throw new Error(`terminal-bash: sandbox mode "${i.mode}" requires a ctx.sandbox provider in the execution world`);return n.confine(s,{...i,mode:i.mode}).argv}o(k,"spawnArgv");async function W(t,e){if(e===void 0){await t.initialize(e);return}const i=Promise.withResolvers(),s=o(()=>{i.reject(e.reason)},"onAbort");e.addEventListener("abort",s,{once:!0});try{e.throwIfAborted(),await Promise.race([t.initialize(e),i.promise])}finally{e.removeEventListener("abort",s)}}o(W,"initializeSession");var w=class{static{o(this,"BashTerminalBackend")}ctx;config;spawnTerminal;createSession;type;constructor(t,e,i=n=>t.subprocess.spawnTerminal(n),s=(n,r)=>new B(n,r)){this.ctx=t,this.config=e,this.spawnTerminal=i,this.createSession=s,this.type=e.backendType}async spawn(t){t.signal?.throwIfAborted(),L(this.ctx,t.owner);const e=this.ctx.sandboxPolicy.resolve({session:t.owner.session}),i=k(this.ctx,this.config,e);if(i[0]===void 0)throw new Error("terminal-bash: sandbox returned empty argv");const s=await this.spawnTerminal({argv:i,cwd:t.cwd??e.workspaceRoot,env:F(t),rows:this.config.rows,cols:this.config.cols,graceMs:this.config.disposeGraceMs,signal:t.signal}),n=this.createSession(s,this.config);try{return await W(n,t.signal),n}catch(r){try{await n.close("PTY startup failed")}catch(h){throw new y(r,h)}throw r}}};function C(t,e){S(e),t.terminals.registerBackend(new w(t,e))}o(C,"apply");export{w as BashTerminalBackend,A as Config,C as apply,I as inject,D as name};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-terminal-bash","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-terminal":"^0.0.15","@deepseek-ai/dsh-sandbox":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-subprocess":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-sandbox-policy":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-terminal-bash","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-terminal":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-subprocess":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}