@qqbrowser/qbot-dsh 0.0.14 → 0.1.0

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 (333) 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/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  4. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  5. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  6. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  7. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  8. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  10. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  11. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  12. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  13. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  14. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  15. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
  16. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  17. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  18. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  19. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  20. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  21. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  22. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +1 -1
  23. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  24. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  25. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
  26. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  27. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  28. package/node_modules/@deepseek-ai/dsh-client-runtime/lib/client.js +4 -4
  29. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  30. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  32. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
  35. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
  37. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  38. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
  39. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  40. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
  41. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  42. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
  43. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  44. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  45. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  46. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  47. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
  48. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  50. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
  58. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  61. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +22 -22
  62. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  64. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  65. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  66. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +3 -3
  67. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  68. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  69. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  71. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  72. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  73. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +3 -3
  75. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  76. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  79. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  80. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +4 -4
  82. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  83. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +14 -14
  84. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
  90. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  91. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  93. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  95. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  97. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  98. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  99. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -2
  100. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  101. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  102. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  103. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  104. package/node_modules/@deepseek-ai/dsh-content-review/package.json +1 -1
  105. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +4 -4
  106. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -4
  108. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  110. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  112. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  114. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -2
  116. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  118. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  120. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/index.js +7 -7
  122. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api-proxy.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  131. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  132. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  136. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +1 -1
  137. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +1 -1
  138. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1 -1
  140. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  141. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +4 -4
  142. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +1 -1
  143. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  144. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
  147. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  150. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  151. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  152. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  153. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  155. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  156. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +3 -3
  157. package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  160. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  165. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +1 -1
  168. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  171. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  172. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +2 -2
  174. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  176. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  177. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  178. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  179. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  183. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  193. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  194. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  195. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  196. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  197. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  198. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  201. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  202. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +1 -1
  205. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  211. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  212. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +7 -10
  213. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  215. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +5 -2
  216. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  217. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -8
  218. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  219. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  220. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  221. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  222. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  224. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  225. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  226. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  227. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  228. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  229. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  230. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  231. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  232. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  233. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +15 -15
  234. package/node_modules/@deepseek-ai/dsh-tools/lib/types/code-mode.js +8 -8
  235. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +3 -3
  236. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +4 -4
  237. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  238. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  239. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  240. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  241. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  242. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  243. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  244. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-BQQQ5Qt-.js → index-fPGOmJjK.js} +25 -25
  246. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +1 -1
  247. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  248. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  249. package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +1 -1
  250. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  251. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  252. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  253. package/node_modules/@tanstack/react-virtual/package.json +1 -1
  254. package/node_modules/@tanstack/virtual-core/dist/cjs/index.cjs +7 -1
  255. package/node_modules/@tanstack/virtual-core/dist/cjs/utils.cjs +14 -4
  256. package/node_modules/@tanstack/virtual-core/dist/esm/index.js +1 -1
  257. package/node_modules/@tanstack/virtual-core/dist/esm/utils.js +2 -2
  258. package/node_modules/@tanstack/virtual-core/package.json +1 -1
  259. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  260. package/node_modules/hono/dist/cjs/context.js +4 -0
  261. package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
  262. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
  263. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
  264. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
  265. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
  266. package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
  267. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
  268. package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
  269. package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
  270. package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
  271. package/node_modules/hono/dist/client/utils.js +1 -1
  272. package/node_modules/hono/dist/middleware/cors/index.js +1 -1
  273. package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
  274. package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
  275. package/node_modules/hono/dist/middleware/etag/index.js +1 -1
  276. package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -1
  277. package/node_modules/hono/dist/router/linear-router/router.js +1 -1
  278. package/node_modules/hono/dist/router/pattern-router/router.js +1 -1
  279. package/node_modules/hono/dist/router/trie-router/node.js +1 -1
  280. package/node_modules/hono/dist/router/trie-router/router.js +1 -1
  281. package/node_modules/hono/dist/utils/ipaddr.js +1 -1
  282. package/node_modules/hono/package.json +1 -1
  283. package/node_modules/node-pty/lib/conpty_console_list_agent.js +11 -2
  284. package/node_modules/node-pty/lib/index.js +6 -6
  285. package/node_modules/node-pty/lib/shared/conout.js +2 -3
  286. package/node_modules/node-pty/lib/terminal.js +2 -2
  287. package/node_modules/node-pty/lib/unixTerminal.js +11 -6
  288. package/node_modules/node-pty/lib/utils.js +6 -7
  289. package/node_modules/node-pty/lib/windowsConoutConnection.js +24 -18
  290. package/node_modules/node-pty/lib/windowsPtyAgent.js +125 -101
  291. package/node_modules/node-pty/lib/windowsTerminal.js +14 -4
  292. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +3 -3
  293. package/node_modules/node-pty/package.json +1 -1
  294. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  295. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  296. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  297. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  298. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  299. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  300. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  301. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  302. package/node_modules/node-pty/scripts/post-install.js +1 -5
  303. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
  304. package/node_modules/node-pty/third_party/conpty/{1.23.251008001 → 1.25.260303002}/win10-arm64/conpty.dll +0 -0
  305. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
  306. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
  307. package/package.json +1 -1
  308. package/node_modules/node-pty/deps/winpty/.drone.yml +0 -15
  309. package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  310. package/node_modules/node-pty/deps/winpty/configure +0 -167
  311. package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  312. package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  313. package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  314. package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  315. package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  316. package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  317. package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  318. package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  319. package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  320. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  321. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  322. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  323. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  324. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  325. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  326. package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  327. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  328. package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  329. package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  330. package/node_modules/node-pty/scripts/increment-version.js +0 -54
  331. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  332. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  333. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-pwsh-local","version":"0.0.14","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.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-timeout":"^0.0.14","@deepseek-ai/dsh-subprocess":"^0.0.14","@deepseek-ai/dsh-settings":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-pwsh-local","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-subprocess":"^0.1.0","@deepseek-ai/dsh-timeout":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.1.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-pwsh-sandbox","version":"0.0.14","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.14","@deepseek-ai/dsh-sandbox-policy":"^0.0.14","@deepseek-ai/dsh-pwsh-local":"^0.0.14","@deepseek-ai/dsh-sandbox":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-shell":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-pwsh-sandbox","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-pwsh-local":"^0.1.0","@deepseek-ai/dsh-sandbox-policy":"^0.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1,4 +1,4 @@
1
- var R=Object.defineProperty;var s=(e,t)=>R(e,"name",{value:t,configurable:!0});import{Service as b}from"@deepseek-ai/cordis";import a from"@deepseek-ai/schemastery";import{Scene as D,authSend as N}from"@tencent/qb-auth-send-h5";import{existsSync as O,readFileSync as $}from"node:fs";import{createConnection as B}from"node:net";import{homedir as L}from"node:os";import{join as g}from"node:path";import{StringDecoder as F}from"node:string_decoder";const d={SOCIAL_TOKEN_EXPIRED:"-28",QB_TOKEN_EXPIRED:"-34"},X=1101;var p=class extends Error{static{s(this,"QbAuthExpiredError")}code="QB_AUTH_EXPIRED";authCode;constructor(e,t,i){super(t,i),this.name="QbAuthExpiredError",this.authCode=e}},y=class extends Error{static{s(this,"QbTokenExhaustedError")}code="QB_TOKEN_EXHAUSTED";constructor(e){super(e),this.name="QbTokenExhaustedError"}},r=class extends Error{static{s(this,"QbPipeError")}code="QB_PIPE_FAILED";constructor(e,t){super(e,t),this.name="QbPipeError"}},v=class extends Error{static{s(this,"QbRpcError")}code="QB_RPC_FAILED";constructor(e,t){super(e,t),this.name="QbRpcError"}};const q=s(e=>{if(typeof e=="string")return e;if(typeof e=="number")return String(e)},"readCodeField"),K=s(e=>{if(typeof e!="object"||e===null)return"";const t=e,i=t.err;if(typeof i=="object"&&i!==null){const n=q(i.code);if(n!==void 0)return n}return q(t.code)??""},"readRejectCode"),j=s(e=>e===d.SOCIAL_TOKEN_EXPIRED||e===d.QB_TOKEN_EXPIRED,"isAuthErrorCode"),E=s(e=>{const t=K(e);if(j(t))return t;let i;if(typeof e=="string")i=e;else if(typeof e=="object"&&e!==null)try{i=JSON.stringify(e)}catch{return null}else return null;for(const n of Object.values(d))if(i.includes(`"code":"${n}"`)||i.includes(`"code": "${n}"`))return n;return null},"extractAuthErrorCode"),P=s(e=>e===void 0||e===0?4:e===3?2:e===2||e===5?4:e,"convertAccountType"),I=s(e=>{switch(e.platform){case"darwin":return g(e.homedir,"Library","Application Support","QQBrowser3","ipc_token");case"win32":if(e.localAppData===void 0||e.localAppData==="")throw new r("qb-auth: %LOCALAPPDATA% is unset, cannot locate the QQBrowser IPC token file");return g(e.localAppData,"Tencent","QQBrowser","User Data","ipc_token");case"linux":return g(e.homedir,".config","qqbrowser","ipc_token");default:throw new r(`qb-auth: unsupported platform for QQBrowser IPC: ${e.platform}`)}},"resolveTokenFilePath"),k=s(e=>{const t=e.trim().split(/\r?\n/);if(t.length<3)throw new r(`qb-auth: malformed IPC token file: expected 3 lines (pid / token / pipe path), found ${t.length}`);const[i,n,o]=t;if(i===void 0||n===void 0||o===void 0)throw new r("qb-auth: malformed IPC token file: missing one of pid / token / pipe path");const c=Number.parseInt(i,10),f=n.trim(),l=o.trim();if(!Number.isInteger(c))throw new r("qb-auth: malformed IPC token file: first line is not a process id");if(f==="")throw new r("qb-auth: malformed IPC token file: empty auth token");if(l==="")throw new r("qb-auth: malformed IPC token file: empty pipe path");return{pid:c,token:f,pipePath:l}},"parseDiscovery");var _=class{static{s(this,"QbPipeClient")}options;socket;nextId=0;pending=new Map;decoder=new F("utf8");buffer="";accountInfoCache;closed=!1;constructor(e){this.options=e}isConnected(){return this.socket!==void 0&&!this.socket.destroyed}async connect(){if(this.closed)throw new r("qb-auth: pipe client is closed");const e=this.discover(),t=await this.openSocket(e.pipePath);this.socket=t,t.on("data",n=>{this.consume(n)});const i=await this.call("auth",{token:e.token});if(i.error!==void 0)throw this.close(),new r(`qb-auth: IPC handshake refused: ${i.error}`);if(i.result?.authenticated!==!0)throw this.close(),new r("qb-auth: IPC handshake refused: the browser did not authenticate this client")}close(){this.closed=!0;const e=this.socket;this.socket=void 0,this.failPending(new r("qb-auth: pipe connection closed")),e!==void 0&&e.destroy()}async getAccountInfo(){const e=this.accountInfoCache;if(e!==void 0)return e;const t=await this.call("getAccountInfo");return t.result!==void 0&&(t.result.account_type=P(t.result.account_type)),this.accountInfoCache=t,t}clearAccountInfoCache(){this.accountInfoCache=void 0}async refreshToken(e){const t=await this.call("refreshToken",{tokenType:e});return this.clearAccountInfoCache(),t}async getBrowserParam(){return this.call("getBrowserParam")}discover(){const e=this.options.tokenFilePath??I({platform:process.platform,homedir:L(),localAppData:process.env.LOCALAPPDATA});if(!O(e))throw new r(`qb-auth: QQBrowser is not running or its IPC service is off (no token file at ${e})`);return k($(e,"utf-8"))}openSocket(e){return new Promise((t,i)=>{const n=B({path:e}),o=s(c=>{n.destroy(),i(new r(`qb-auth: cannot connect to QQBrowser IPC: ${c.message}`,{cause:c}))},"onConnectError");n.once("error",o),n.once("connect",()=>{n.off("error",o),n.on("error",c=>{this.failPending(new r(`qb-auth: IPC connection error: ${c.message}`,{cause:c})),n.destroy()}),n.once("close",()=>{this.failPending(new r("qb-auth: pipe connection closed"))}),t(n)})})}consume(e){this.buffer+=this.decoder.write(e);let t=this.buffer.indexOf(`
1
+ var x=Object.defineProperty;var c=(e,t)=>x(e,"name",{value:t,configurable:!0});import{Service as b}from"@deepseek-ai/cordis";import a from"@deepseek-ai/schemastery";import{Scene as S,authSend as R}from"@tencent/qb-auth-send-h5";import{existsSync as D,readFileSync as N}from"node:fs";import{createConnection as O}from"node:net";import{homedir as $}from"node:os";import{join as g}from"node:path";import{StringDecoder as B}from"node:string_decoder";const h={SOCIAL_TOKEN_EXPIRED:"-28",QB_TOKEN_EXPIRED:"-34"},L=1101;var p=class extends Error{static{c(this,"QbAuthExpiredError")}code="QB_AUTH_EXPIRED";authCode;constructor(e,t,i){super(t,i),this.name="QbAuthExpiredError",this.authCode=e}},F=class extends Error{static{c(this,"QbTokenExhaustedError")}code="QB_TOKEN_EXHAUSTED";constructor(e){super(e),this.name="QbTokenExhaustedError"}},r=class extends Error{static{c(this,"QbPipeError")}code="QB_PIPE_FAILED";constructor(e,t){super(e,t),this.name="QbPipeError"}},y=class extends Error{static{c(this,"QbRpcError")}code="QB_RPC_FAILED";constructor(e,t){super(e,t),this.name="QbRpcError"}};const v=c(e=>{if(typeof e=="string")return e;if(typeof e=="number")return String(e)},"readCodeField"),j=c(e=>{if(typeof e!="object"||e===null)return"";const t=e,i=t.err;if(typeof i=="object"&&i!==null){const n=v(i.code);if(n!==void 0)return n}return v(t.code)??""},"readRejectCode"),X=c(e=>e===h.SOCIAL_TOKEN_EXPIRED||e===h.QB_TOKEN_EXPIRED,"isAuthErrorCode"),q=c(e=>{const t=j(e);if(X(t))return t;let i;if(typeof e=="string")i=e;else if(typeof e=="object"&&e!==null)try{i=JSON.stringify(e)}catch{return null}else return null;for(const n of Object.values(h))if(i.includes(`"code":"${n}"`)||i.includes(`"code": "${n}"`))return n;return null},"extractAuthErrorCode"),E=c(e=>e===void 0||e===0?4:e===3?2:e===2||e===5?4:e,"convertAccountType"),P=c(e=>{switch(e.platform){case"darwin":return g(e.homedir,"Library","Application Support","QQBrowser3","ipc_token");case"win32":if(e.localAppData===void 0||e.localAppData==="")throw new r("qb-auth: %LOCALAPPDATA% is unset, cannot locate the QQBrowser IPC token file");return g(e.localAppData,"Tencent","QQBrowser","User Data","ipc_token");case"linux":return g(e.homedir,".config","qqbrowser","ipc_token");default:throw new r(`qb-auth: unsupported platform for QQBrowser IPC: ${e.platform}`)}},"resolveTokenFilePath"),I=c(e=>{const t=e.trim().split(/\r?\n/);if(t.length<3)throw new r(`qb-auth: malformed IPC token file: expected 3 lines (pid / token / pipe path), found ${t.length}`);const[i,n,o]=t;if(i===void 0||n===void 0||o===void 0)throw new r("qb-auth: malformed IPC token file: missing one of pid / token / pipe path");const s=Number.parseInt(i,10),d=n.trim(),l=o.trim();if(!Number.isInteger(s))throw new r("qb-auth: malformed IPC token file: first line is not a process id");if(d==="")throw new r("qb-auth: malformed IPC token file: empty auth token");if(l==="")throw new r("qb-auth: malformed IPC token file: empty pipe path");return{pid:s,token:d,pipePath:l}},"parseDiscovery");var k=class{static{c(this,"QbPipeClient")}options;socket;nextId=0;pending=new Map;decoder=new B("utf8");buffer="";accountInfoCache;closed=!1;constructor(e){this.options=e}isConnected(){return this.socket!==void 0&&!this.socket.destroyed}async connect(){if(this.closed)throw new r("qb-auth: pipe client is closed");const e=this.discover(),t=await this.openSocket(e.pipePath);this.socket=t,t.on("data",n=>{this.consume(n)});const i=await this.call("auth",{token:e.token});if(i.error!==void 0)throw this.close(),new r(`qb-auth: IPC handshake refused: ${i.error}`);if(i.result?.authenticated!==!0)throw this.close(),new r("qb-auth: IPC handshake refused: the browser did not authenticate this client")}close(){this.closed=!0;const e=this.socket;this.socket=void 0,this.failPending(new r("qb-auth: pipe connection closed")),e!==void 0&&e.destroy()}async getAccountInfo(){const e=this.accountInfoCache;if(e!==void 0)return e;const t=await this.call("getAccountInfo");return t.result!==void 0&&(t.result.account_type=E(t.result.account_type)),this.accountInfoCache=t,t}clearAccountInfoCache(){this.accountInfoCache=void 0}async refreshToken(e){const t=await this.call("refreshToken",{tokenType:e});return this.clearAccountInfoCache(),t}async getBrowserParam(){return this.call("getBrowserParam")}discover(){const e=this.options.tokenFilePath??P({platform:process.platform,homedir:$(),localAppData:process.env.LOCALAPPDATA});if(!D(e))throw new r(`qb-auth: QQBrowser is not running or its IPC service is off (no token file at ${e})`);return I(N(e,"utf-8"))}openSocket(e){return new Promise((t,i)=>{const n=O({path:e}),o=c(s=>{n.destroy(),i(new r(`qb-auth: cannot connect to QQBrowser IPC: ${s.message}`,{cause:s}))},"onConnectError");n.once("error",o),n.once("connect",()=>{n.off("error",o),n.on("error",s=>{this.failPending(new r(`qb-auth: IPC connection error: ${s.message}`,{cause:s})),n.destroy()}),n.once("close",()=>{this.failPending(new r("qb-auth: pipe connection closed"))}),t(n)})})}consume(e){this.buffer+=this.decoder.write(e);let t=this.buffer.indexOf(`
2
2
  `);for(;t!==-1;){const i=this.buffer.slice(0,t);this.buffer=this.buffer.slice(t+1),this.dispatch(i),t=this.buffer.indexOf(`
3
- `)}}dispatch(e){if(e.trim()==="")return;let t;try{t=JSON.parse(e)}catch{return}const i=this.pending.get(t.id);i!==void 0&&(this.pending.delete(t.id),clearTimeout(i.timer),i.settle(t))}call(e,t){return new Promise((i,n)=>{const o=this.socket;if(o===void 0||o.destroyed){n(new r("qb-auth: not connected to QQBrowser IPC"));return}this.nextId+=1;const c=this.nextId,f=setTimeout(()=>{this.pending.delete(c),n(new r(`qb-auth: IPC request timed out: ${e}`))},this.options.requestTimeoutMs);this.pending.set(c,{settle:i,fail:n,timer:f});const l=t===void 0?{id:c,method:e}:{id:c,method:e,params:t};o.write(`${JSON.stringify(l)}
4
- `)})}failPending(e){const t=[...this.pending.values()];this.pending.clear();for(const i of t)clearTimeout(i.timer),i.fail(e)}};const A="trpc_mtt_llm_access_proxy_LlmAccessProxy",C="ds_harness",Q="非常抱歉,您已将QQ浏览器提供的免费模型token额度已用完,需等待额度补充!若急需使用,可立即前往【自定义模型】创建专属配置,畅享无阻~感谢您的理解,我们正全力优化体验!",w=s(e=>typeof e=="object"&&e!==null?e:{},"asRecord"),T=s(e=>typeof e=="string"?JSON.parse(e):e,"parseAuthSendReply"),h=s((...e)=>{for(const t of e)if(t!==void 0&&t!=="")return t;return""},"firstNonEmpty"),u=s((e,t)=>{const i=e[t];return typeof i=="string"?i:""},"readString");var x=class extends b{static{s(this,"QbAuth")}config;static Config=a.object({usePipe:a.boolean().default(!0),loginInfo:a.object({guid:a.string(),openid:a.string(),access_token:a.string().role("secret"),qbaccess_token:a.string().role("secret"),qbid:a.string(),appid:a.string(),account_type:a.string()}),identity:a.object({guid:a.string().default(""),qimei36:a.string().default(""),qua2:a.string().default("")}),tokenFilePath:a.string().default(""),maxRetry:a.natural().max(8).default(1),requestTimeoutMs:a.natural().min(100).max(12e4).default(5e3)});pipe;loginInfo;deviceInfo;accountResolved=!1;resolving;disposed=!1;constructor(e,t){super(e,"qbAuth"),this.config=t}async[b.init](){return this.ctx.effect(()=>()=>{this.disposed=!0,this.pipe?.close(),this.pipe=void 0},"qbAuth.pipe"),Promise.resolve()}async identity(){await this.ensureAccount();const e=w(this.deviceInfo);return{guid:h(u(e,"guid"),this.loginInfo?.guid,this.config.identity.guid),qimei36:h(u(e,"qimei36"),this.config.identity.qimei36),qua2:h(u(e,"qua2"),u(e,"qua"),this.config.identity.qua2)}}async rpc(e){const t=await this.callWithAuth(async(i,n)=>{const o={...i===void 0?{}:{loginInfo:i},...n===void 0?{}:{overRideInfo:n}};try{return await N({servantName:e.servantName,funcName:e.funcName,scene:D.external,isAuth:!1},e.body,o)}catch(c){throw console.error(`qb-auth: raw SDK rejection for ${e.funcName}:`,c),c}});return T(t)}async llmToken(){const e=await this.identity(),t=w(await this.rpc({servantName:A,funcName:"EncodeToken",body:{base:{qimei36:e.qimei36,qua2:e.qua2},authcall:{bus:C}}})),i=w(t.rsp),n=typeof i.ret=="number"?i.ret:void 0;if(n===1101)throw new y(Q);const o=t.token;if(typeof o!="string"||o==="")throw new v(`qb-auth: EncodeToken returned no ticket (ret=${String(n)}, reason=${u(i,"reason")})`);return o}async callWithAuth(e){await this.ensureAccount();const t=this.buildOverRideInfo();for(let i=0;;i+=1)try{return await e(this.loginInfo,t)}catch(n){const o=E(n);if(o===null)throw n;if(i>=this.config.maxRetry)throw new p(o,`qb-auth: ${m(o)} expired and could not be refreshed (code=${o})`,{cause:n});if(!this.config.usePipe)throw new p(o,`qb-auth: ${m(o)} expired but IPC refresh is disabled (code=${o})`,{cause:n});this.ctx.logger.debug(`qb-auth: refreshing ${m(o)} after upstream expiry`);try{await this.refreshViaPipe(o)}catch(c){throw new p(o,`qb-auth: ${m(o)} expired and the refresh failed (code=${o})`,{cause:c})}}}inspect(){return{pipeConnected:this.pipe?.isConnected()??!1,accountResolved:this.accountResolved,hasLoginInfo:this.loginInfo!==void 0}}buildOverRideInfo(){const e=w(this.deviceInfo),t=h(u(e,"qua2"),u(e,"qua"),this.config.identity.qua2),i=h(u(e,"qimei36"),this.config.identity.qimei36);if(!(t===""&&i===""))return{"q-qua2":t,"q-qimei36":i}}async ensureAccount(){if(!this.config.usePipe){this.loginInfo=this.config.loginInfo;return}if(this.accountResolved)return;const e=this.resolving;if(e!==void 0)return e;const t=this.loadFromPipe();this.resolving=t;try{await t,this.accountResolved=!0}finally{this.resolving=void 0}}async loadFromPipe(){const e=await this.ensurePipe(),[t,i]=await Promise.all([e.getAccountInfo(),e.getBrowserParam()]);if(t.error!==void 0||t.result===void 0)throw new r(`qb-auth: cannot read the QQBrowser account: ${t.error??"empty reply"}`);this.loginInfo=S(t.result),i.result===void 0?this.ctx.logger.debug("qb-auth: QQBrowser returned no device parameters; continuing without them"):this.deviceInfo=i.result}isDisposed(){return this.disposed}async ensurePipe(){if(this.isDisposed())throw new r("qb-auth: service disposed");const e=this.pipe;if(e!==void 0&&e.isConnected())return e;const t=new _({tokenFilePath:this.config.tokenFilePath===""?void 0:this.config.tokenFilePath,requestTimeoutMs:this.config.requestTimeoutMs});if(await t.connect(),this.isDisposed())throw t.close(),new r("qb-auth: service disposed");return this.pipe=t,t}async refreshViaPipe(e){const t=await this.ensurePipe(),i=e===d.QB_TOKEN_EXPIRED?"qbtoken":"token",n=await t.refreshToken(i);if(n.error!==void 0)throw new r(`qb-auth: ticket refresh failed: ${n.error}`);const o=await t.getAccountInfo();if(o.error!==void 0||o.result===void 0)throw new r(`qb-auth: cannot re-read the account after refresh: ${o.error??"empty reply"}`);this.loginInfo=S(o.result)}};const m=s(e=>e===d.QB_TOKEN_EXPIRED?"the QQBrowser ticket":"the social ticket","ticketName"),S=s(e=>({guid:e.guid,openid:e.openid,access_token:e.access_token,qbaccess_token:e.qbaccess_token,qbid:e.qbid,appid:e.appid,account_type:String(e.account_type)}),"toLoginInfo");export{d as AUTH_ERROR_CODES,C as BUS_IDENTIFIER,A as LLM_ACCESS_PROXY_SERVANT,x as QbAuth,x as default,p as QbAuthExpiredError,_ as QbPipeClient,r as QbPipeError,v as QbRpcError,y as QbTokenExhaustedError,Q as TOKEN_EXHAUSTED_MESSAGE,X as TOKEN_EXHAUSTED_RET,P as convertAccountType,E as extractAuthErrorCode,T as parseAuthSendReply,k as parseDiscovery,I as resolveTokenFilePath};
3
+ `)}}dispatch(e){if(e.trim()==="")return;let t;try{t=JSON.parse(e)}catch{return}const i=this.pending.get(t.id);i!==void 0&&(this.pending.delete(t.id),clearTimeout(i.timer),i.settle(t))}call(e,t){return new Promise((i,n)=>{const o=this.socket;if(o===void 0||o.destroyed){n(new r("qb-auth: not connected to QQBrowser IPC"));return}this.nextId+=1;const s=this.nextId,d=setTimeout(()=>{this.pending.delete(s),n(new r(`qb-auth: IPC request timed out: ${e}`))},this.options.requestTimeoutMs);this.pending.set(s,{settle:i,fail:n,timer:d});const l=t===void 0?{id:s,method:e}:{id:s,method:e,params:t};o.write(`${JSON.stringify(l)}
4
+ `)})}failPending(e){const t=[...this.pending.values()];this.pending.clear();for(const i of t)clearTimeout(i.timer),i.fail(e)}};const _="trpc_mtt_llm_access_proxy_LlmAccessProxy",A="ds_harness",K="非常抱歉,您已将QQ浏览器提供的免费token额度用完了,敬请期待后续免费活动!若急需使用,可立即前往【设置-模型】自定义。感谢您的理解,我们正全力优化体验!",m=c(e=>typeof e=="object"&&e!==null?e:{},"asRecord"),C=c(e=>typeof e=="string"?JSON.parse(e):e,"parseAuthSendReply"),f=c((...e)=>{for(const t of e)if(t!==void 0&&t!=="")return t;return""},"firstNonEmpty"),u=c((e,t)=>{const i=e[t];return typeof i=="string"?i:""},"readString");var Q=class extends b{static{c(this,"QbAuth")}config;static Config=a.object({usePipe:a.boolean().default(!0),loginInfo:a.object({guid:a.string(),openid:a.string(),access_token:a.string().role("secret"),qbaccess_token:a.string().role("secret"),qbid:a.string(),appid:a.string(),account_type:a.string()}),identity:a.object({guid:a.string().default(""),qimei36:a.string().default(""),qua2:a.string().default("")}),tokenFilePath:a.string().default(""),maxRetry:a.natural().max(8).default(1),requestTimeoutMs:a.natural().min(100).max(12e4).default(5e3)});pipe;loginInfo;deviceInfo;accountResolved=!1;resolving;disposed=!1;constructor(e,t){super(e,"qbAuth"),this.config=t}async[b.init](){return this.ctx.effect(()=>()=>{this.disposed=!0,this.pipe?.close(),this.pipe=void 0},"qbAuth.pipe"),Promise.resolve()}async identity(){await this.ensureAccount();const e=m(this.deviceInfo);return{guid:f(u(e,"guid"),this.loginInfo?.guid,this.config.identity.guid),qimei36:f(u(e,"qimei36"),this.config.identity.qimei36),qua2:f(u(e,"qua2"),u(e,"qua"),this.config.identity.qua2)}}async rpc(e){const t=await this.callWithAuth(async(i,n)=>{const o={...i===void 0?{}:{loginInfo:i},...n===void 0?{}:{overRideInfo:n}};try{return await R({servantName:e.servantName,funcName:e.funcName,scene:S.external,isAuth:!1},e.body,o)}catch(s){throw console.error(`qb-auth: raw SDK rejection for ${e.funcName}:`,s),s}});return C(t)}async llmToken(){const e=await this.identity(),t=m(await this.rpc({servantName:_,funcName:"EncodeToken",body:{base:{qimei36:e.qimei36,qua2:e.qua2},authcall:{bus:A}}})),i=m(t.rsp),n=typeof i.ret=="number"?i.ret:void 0,o=t.token;if(typeof o!="string"||o===""){const s=t.extend;throw new y((typeof s=="object"&&s!==null?Object.values(s).filter(d=>typeof d=="string"&&d!=="").join("; "):"")||`qb-auth: EncodeToken returned no ticket (ret=${String(n)}, reason=${u(i,"reason")})`)}return o}async callWithAuth(e){await this.ensureAccount();const t=this.buildOverRideInfo();for(let i=0;;i+=1)try{return await e(this.loginInfo,t)}catch(n){const o=q(n);if(o===null)throw n;if(i>=this.config.maxRetry)throw new p(o,`qb-auth: ${w(o)} expired and could not be refreshed (code=${o})`,{cause:n});if(!this.config.usePipe)throw new p(o,`qb-auth: ${w(o)} expired but IPC refresh is disabled (code=${o})`,{cause:n});this.ctx.logger.debug(`qb-auth: refreshing ${w(o)} after upstream expiry`);try{await this.refreshViaPipe(o)}catch(s){throw new p(o,`qb-auth: ${w(o)} expired and the refresh failed (code=${o})`,{cause:s})}}}inspect(){return{pipeConnected:this.pipe?.isConnected()??!1,accountResolved:this.accountResolved,hasLoginInfo:this.loginInfo!==void 0}}buildOverRideInfo(){const e=m(this.deviceInfo),t=f(u(e,"qua2"),u(e,"qua"),this.config.identity.qua2),i=f(u(e,"qimei36"),this.config.identity.qimei36);if(!(t===""&&i===""))return{"q-qua2":t,"q-qimei36":i}}async ensureAccount(){if(!this.config.usePipe){this.loginInfo=this.config.loginInfo;return}if(this.accountResolved)return;const e=this.resolving;if(e!==void 0)return e;const t=this.loadFromPipe();this.resolving=t;try{await t,this.accountResolved=!0}finally{this.resolving=void 0}}async loadFromPipe(){const e=await this.ensurePipe(),[t,i]=await Promise.all([e.getAccountInfo(),e.getBrowserParam()]);if(t.error!==void 0||t.result===void 0)throw new r(`qb-auth: cannot read the QQBrowser account: ${t.error??"empty reply"}`);this.loginInfo=T(t.result),i.result===void 0?this.ctx.logger.debug("qb-auth: QQBrowser returned no device parameters; continuing without them"):this.deviceInfo=i.result}isDisposed(){return this.disposed}async ensurePipe(){if(this.isDisposed())throw new r("qb-auth: service disposed");const e=this.pipe;if(e!==void 0&&e.isConnected())return e;const t=new k({tokenFilePath:this.config.tokenFilePath===""?void 0:this.config.tokenFilePath,requestTimeoutMs:this.config.requestTimeoutMs});if(await t.connect(),this.isDisposed())throw t.close(),new r("qb-auth: service disposed");return this.pipe=t,t}async refreshViaPipe(e){const t=await this.ensurePipe(),i=e===h.QB_TOKEN_EXPIRED?"qbtoken":"token",n=await t.refreshToken(i);if(n.error!==void 0)throw new r(`qb-auth: ticket refresh failed: ${n.error}`);const o=await t.getAccountInfo();if(o.error!==void 0||o.result===void 0)throw new r(`qb-auth: cannot re-read the account after refresh: ${o.error??"empty reply"}`);this.loginInfo=T(o.result)}};const w=c(e=>e===h.QB_TOKEN_EXPIRED?"the QQBrowser ticket":"the social ticket","ticketName"),T=c(e=>({guid:e.guid,openid:e.openid,access_token:e.access_token,qbaccess_token:e.qbaccess_token,qbid:e.qbid,appid:e.appid,account_type:String(e.account_type)}),"toLoginInfo");export{h as AUTH_ERROR_CODES,A as BUS_IDENTIFIER,_ as LLM_ACCESS_PROXY_SERVANT,Q as QbAuth,Q as default,p as QbAuthExpiredError,k as QbPipeClient,r as QbPipeError,y as QbRpcError,F as QbTokenExhaustedError,K as TOKEN_EXHAUSTED_MESSAGE,L as TOKEN_EXHAUSTED_RET,E as convertAccountType,q as extractAuthErrorCode,C as parseAuthSendReply,I as parseDiscovery,P as resolveTokenFilePath};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-qb-auth","version":"0.0.14","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.14"},"dependencies":{"@tencent/qb-auth-send-h5":"^2.5.0","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-qb-auth","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0"},"dependencies":{"@tencent/qb-auth-send-h5":"^2.5.0","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-repeat-tool-reminder","version":"0.0.14","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.0.14","@deepseek-ai/dsh-tools":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-repeat-tool-reminder","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-tools":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-sandbox","version":"0.0.14","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.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-sandbox","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.1.0"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-sandbox-local","version":"0.0.14","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.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-sandbox":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1","@deepseek-ai/dsh-sandbox-windows-acl":"^0.0.14","@deepseek-ai/node-addon-landlock-run":"^0.1.1"}}
1
+ {"name":"@deepseek-ai/dsh-sandbox-local","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/dsh-sandbox-windows-acl":"^0.1.0","@deepseek-ai/schemastery":"^3.18.1","@deepseek-ai/node-addon-landlock-run":"^0.1.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-sandbox-policy","version":"0.0.14","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.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-system-prompt":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-sandbox":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-sandbox-policy","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-system-prompt":"^0.1.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-sandbox-windows-acl","version":"0.0.14","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./runner":{"types":"./lib/types/runner.d.ts","default":"./lib/runner.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.14","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"koffi":"^3.1.0"}}
1
+ {"name":"@deepseek-ai/dsh-sandbox-windows-acl","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./runner":{"types":"./lib/types/runner.d.ts","default":"./lib/runner.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","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"koffi":"^3.1.0"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-schedule","version":"0.0.14","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.14","@deepseek-ai/dsh-brand":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-session-persistence":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-schedule","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-brand":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-tools":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-scope","version":"0.0.14","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.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-scope","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session","version":"0.0.14","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.14","@deepseek-ai/dsh-scope":"^0.0.14","@deepseek-ai/dsh-typert-protocol":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./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.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-typert-protocol":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-scope":"^0.1.0"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-checkpoint-policy","version":"0.0.14","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.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-session-persistence":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-session-checkpoint-policy","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-tools":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- var U=Object.defineProperty;var n=(l,d)=>U(l,"name",{value:d,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-session-log-export",factory:n(l=>{var d={exports:{}},c=d.exports;Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});let h=l("@deepseek-ai/dsh-client-runtime/client"),r=l("react/jsx-runtime"),u=l("@deepseek-ai/dsh-client-ui-primitives");const w={bySession:{}};function m(e){return`dsh-session-${String(e).replace(/[^A-Za-z0-9_-]/g,"_")}.zip`}n(m,"sessionLogZipFilename");function f(e,s){const o=document.createElement("a");o.href=e,o.download=s,o.click()}n(f,"downloadUrl");function S(){const e=globalThis.location?.origin;return e!==void 0&&e!=="null"?e:"http://dsh.internal"}n(S,"hostBase");function b(e){return e instanceof Error?e.message:String(e)}n(b,"messageOf");var v=class{static{n(this,"SessionLogDownloadController")}fetcher;save;store=(0,h.createSnapshotStore)(w);active=new Map;disposed=!1;constructor(e=(o,t)=>fetch(o,t),s=f){this.fetcher=e,this.save=s}download(e){const s=this.active.get(e);if(s!==void 0)return s.done;if(this.disposed)return Promise.resolve();const o=new AbortController,t=this.run(e,o.signal).finally(()=>{this.active.delete(e)});return this.active.set(e,{abort:o,done:t}),t}dismiss(e){const s=this.store.getSnapshot().bySession[String(e)];s===void 0||!s.open||this.publish(e,{...s,open:!1})}async dispose(){this.disposed=!0;const e=[...this.active.values()];for(const s of e)s.abort.abort();await Promise.allSettled(e.map(s=>s.done))}async run(e,s){this.publish(e,{open:!0,status:"downloading",error:null});try{const o=new URL("/api/session.export",S());o.searchParams.set("sessionId",e),o.searchParams.set("includeDescendants","true");const t=await this.fetcher(o,{method:"HEAD",signal:s});if(!t.ok){const a=await t.text().catch(()=>"");throw new Error(`Export failed: HTTP ${t.status}${a===""?"":` ${a}`}`)}this.save(o.toString(),m(e));const i=this.store.getSnapshot().bySession[String(e)]?.open??!0;this.publish(e,{open:i,status:"success",error:null})}catch(o){if(s.aborted)return;const t=this.store.getSnapshot().bySession[String(e)]?.open??!0;this.publish(e,{open:t,status:"error",error:b(o)})}}publish(e,s){this.store.update(o=>{o.bySession={...o.bySession,[String(e)]:s}})}};function y({sessionId:e,useSessionLogDownload:s,dismiss:o,t}){const i=s(C=>C.bySession[String(e)]),a=i?.status,F=i?.open===!0,B=a==="error"?i?.error||t("dialog.commandFailed"):null,N=t(a==="downloading"?"dialog.preparingTitle":a==="success"?"dialog.successTitle":"dialog.errorTitle"),P=a==="downloading"?t("dialog.preparingDescription"):a==="success"?t("dialog.successDescription"):B??t("dialog.commandFailed");return(0,r.jsx)(u.Modal,{open:F,onClose:n(()=>{o(e)},"onClose"),title:N,description:P,closeLabel:t("dialog.close"),footer:(0,r.jsx)(u.Button,{variant:"primary",onClick:n(()=>{o(e)},"onClick"),children:t("dialog.close")})})}n(y,"SessionLogDownloadDialog");const x=".UFwDNa_sessionLogButton{border:1px solid var(--dsw-alias-border-l2);min-width:111px;height:32px;color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family);cursor:pointer;background:0 0;border-radius:18px;justify-content:center;align-items:center;gap:4px;padding:6px 12px;font-size:13px;font-weight:400;line-height:20px;display:inline-flex}.UFwDNa_sessionLogButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.UFwDNa_sessionLogButton:disabled{color:var(--dsw-alias-label-dimmed);cursor:wait}.UFwDNa_sessionLogButton span,.UFwDNa_sessionLogButton svg{flex:none}.UFwDNa_sessionLogButton span{white-space:nowrap}",p="@deepseek-ai/dsh-session-log-export/HeaderAction.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(p)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-session-log-export",e.dataset.pluginCss=p,e.textContent=x,document.head.appendChild(e)}var _={sessionLogButton:"UFwDNa_sessionLogButton"};function D(e){const{sessionId:s,useSessionLogDownload:o,request:t}=e,i=o(a=>a.bySession[String(s)])?.status==="downloading";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{type:"button",className:_.sessionLogButton,disabled:i,"aria-busy":i,onClick:n(()=>{t(s)},"onClick"),children:[(0,r.jsx)("span",{children:"Session log"}),(0,r.jsx)(u.IconDownloadOutline16,{size:12})]}),(0,r.jsx)(y,{...e})]})}n(D,"SessionLogDownloadHeaderAction");const g="session-log-download",L={"dialog.preparingTitle":"正在导出 Session","dialog.preparingDescription":"正在准备包含当前 Session、子 Session 和附件的 ZIP 文件。","dialog.successTitle":"Session 导出已开始下载","dialog.successDescription":"浏览器正在下载 Session ZIP 文件。","dialog.errorTitle":"Session 导出失败","dialog.close":"关闭","dialog.commandFailed":"无法启动 Session 导出。"},j={"dialog.preparingTitle":"Exporting Session","dialog.preparingDescription":"Preparing a ZIP containing this Session, its sub-Sessions, and attachments.","dialog.successTitle":"Session download started","dialog.successDescription":"The browser is downloading the Session ZIP.","dialog.errorTitle":"Session export failed","dialog.close":"Close","dialog.commandFailed":"Could not start the Session export."},k=["slots","locale"];function T(e){const s=new v;e.provide("sessionLogDownload",s),e.effect(()=>async()=>{await s.dispose()},"session-log-download: browser download lifecycle"),e.effect(()=>e.locale.register(g,{zh:L,en:j}),"session-log-download: browser dictionaries"),e.on("command/executed",(o,t,i)=>{t==="export"&&i.kind==="success"&&s.download(o)}),e.slots.inject("conversation.session.header.utilities",()=>e.slots.register({name:"conversation.session.header.utilities",id:"session-log-download",locale:g,inject:n(()=>({hooks:{sessionLogDownload:s.store},request:n(o=>s.download(o),"request"),dismiss:n(o=>{s.dismiss(o)},"dismiss")}),"inject")},D))}return n(T,"apply"),c.apply=T,c.inject=k,d.exports},"factory")});
1
+ var G=Object.defineProperty;var n=(l,d)=>G(l,"name",{value:d,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-session-log-export",factory:n(l=>{var d={exports:{}},c=d.exports;Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});let h=l("@deepseek-ai/dsh-client-runtime/client"),a=l("react/jsx-runtime"),u=l("@deepseek-ai/dsh-client-ui-primitives");const m={bySession:{}};function f(e){return`dsh-session-${String(e).replace(/[^A-Za-z0-9_-]/g,"_")}.zip`}n(f,"sessionLogZipFilename");function w(e,s){const o=document.createElement("a");o.href=e,o.download=s,o.click()}n(w,"downloadUrl");function S(){const e=globalThis.location?.origin;return e!==void 0&&e!=="null"?e:"http://dsh.internal"}n(S,"hostBase");function b(e){return e instanceof Error?e.message:String(e)}n(b,"messageOf");var v=class{static{n(this,"SessionLogDownloadController")}fetcher;save;store=(0,h.createSnapshotStore)(m);active=new Map;disposed=!1;constructor(e=(o,t)=>fetch(o,t),s=w){this.fetcher=e,this.save=s}download(e){const s=this.active.get(e);if(s!==void 0)return s.done;if(this.disposed)return Promise.resolve();const o=new AbortController,t=this.run(e,o.signal).finally(()=>{this.active.delete(e)});return this.active.set(e,{abort:o,done:t}),t}dismiss(e){const s=this.store.getSnapshot().bySession[String(e)];s===void 0||!s.open||this.publish(e,{...s,open:!1})}async dispose(){this.disposed=!0;const e=[...this.active.values()];for(const s of e)s.abort.abort();await Promise.allSettled(e.map(s=>s.done))}async run(e,s){this.publish(e,{open:!0,status:"downloading",error:null});try{const o=new URL("/api/session.export",S());o.searchParams.set("sessionId",e),o.searchParams.set("includeDescendants","true");const t=await this.fetcher(o,{method:"HEAD",signal:s});if(!t.ok){const r=await t.text().catch(()=>"");throw new Error(`Export failed: HTTP ${t.status}${r===""?"":` ${r}`}`)}this.save(o.toString(),f(e));const i=this.store.getSnapshot().bySession[String(e)]?.open??!0;this.publish(e,{open:i,status:"success",error:null})}catch(o){if(s.aborted)return;const t=this.store.getSnapshot().bySession[String(e)]?.open??!0;this.publish(e,{open:t,status:"error",error:b(o)})}}publish(e,s){this.store.update(o=>{o.bySession={...o.bySession,[String(e)]:s}})}};function y({sessionId:e,useSessionLogDownload:s,dismiss:o,t}){const i=s(E=>E.bySession[String(e)]),r=i?.status,T=i?.open===!0,B=r==="error"?i?.error||t("dialog.commandFailed"):null,C=t(r==="downloading"?"dialog.preparingTitle":r==="success"?"dialog.successTitle":"dialog.errorTitle"),A=r==="downloading"?t("dialog.preparingDescription"):r==="success"?t("dialog.successDescription"):B??t("dialog.commandFailed");return(0,a.jsx)(u.Modal,{open:T,onClose:n(()=>{o(e)},"onClose"),title:C,description:A,closeLabel:t("dialog.close"),footer:(0,a.jsx)(u.Button,{variant:"primary",onClick:n(()=>{o(e)},"onClick"),children:t("dialog.close")})})}n(y,"SessionLogDownloadDialog");const x=".V9GP8W_sessionLogButton{border:1px solid var(--dsw-alias-border-l2);min-width:111px;height:32px;color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family);cursor:pointer;background:0 0;border-radius:18px;justify-content:center;align-items:center;gap:4px;padding:6px 12px;font-size:13px;font-weight:400;line-height:20px;display:inline-flex}.V9GP8W_sessionLogButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.V9GP8W_sessionLogButton:disabled{color:var(--dsw-alias-label-dimmed);cursor:wait}.V9GP8W_sessionLogButton span,.V9GP8W_sessionLogButton svg{flex:none}.V9GP8W_sessionLogButton span{white-space:nowrap}",p="@deepseek-ai/dsh-session-log-export/HeaderAction.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(p)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-session-log-export",e.dataset.pluginCss=p,e.textContent=x,document.head.appendChild(e)}var _={sessionLogButton:"V9GP8W_sessionLogButton"};function L(e){const{sessionId:s,useSessionLogDownload:o,request:t}=e,i=o(r=>r.bySession[String(s)])?.status==="downloading";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:_.sessionLogButton,disabled:i,"aria-busy":i,onClick:n(()=>{t(s)},"onClick"),children:[(0,a.jsx)("span",{children:"Session log"}),(0,a.jsx)(u.IconDownloadOutline16,{size:12})]}),(0,a.jsx)(y,{...e})]})}n(L,"SessionLogDownloadHeaderAction");const g="session-log-download",P={"dialog.preparingTitle":"正在导出 Session","dialog.preparingDescription":"正在准备包含当前 Session、子 Session 和附件的 ZIP 文件。","dialog.successTitle":"Session 导出已开始下载","dialog.successDescription":"浏览器正在下载 Session ZIP 文件。","dialog.errorTitle":"Session 导出失败","dialog.close":"关闭","dialog.commandFailed":"无法启动 Session 导出。"},D={"dialog.preparingTitle":"Exporting Session","dialog.preparingDescription":"Preparing a ZIP containing this Session, its sub-Sessions, and attachments.","dialog.successTitle":"Session download started","dialog.successDescription":"The browser is downloading the Session ZIP.","dialog.errorTitle":"Session export failed","dialog.close":"Close","dialog.commandFailed":"Could not start the Session export."},j=["slots","locale"];function k(e){const s=new v;e.provide("sessionLogDownload",s),e.effect(()=>async()=>{await s.dispose()},"session-log-download: browser download lifecycle"),e.effect(()=>e.locale.register(g,{zh:P,en:D}),"session-log-download: browser dictionaries"),e.on("command/executed",(o,t,i)=>{t==="export"&&i.kind==="success"&&s.download(o)}),e.slots.inject("conversation.session.header.utilities",()=>e.slots.register({name:"conversation.session.header.utilities",id:"session-log-download",locale:g,inject:n(()=>({hooks:{sessionLogDownload:s.store},request:n(o=>s.download(o),"request"),dismiss:n(o=>{s.dismiss(o)},"dismiss")}),"inject")},L))}return n(k,"apply"),c.apply=k,c.inject=j,d.exports},"factory")});
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-log-export","version":"0.0.14","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.14","@deepseek-ai/dsh-client-ui-conversation":"^0.0.14","@deepseek-ai/dsh-client-runtime":"^0.0.14","@deepseek-ai/dsh-client-ui-commands":"^0.0.14","@deepseek-ai/dsh-client-ui-primitives":"^0.0.14","@deepseek-ai/dsh-commands":"^0.0.14","@deepseek-ai/dsh-client-ui-slots":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14"},"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","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.1.0","@deepseek-ai/dsh-client-ui-commands":"^0.1.0","@deepseek-ai/dsh-client-ui-conversation":"^0.1.0","@deepseek-ai/dsh-client-ui-slots":"^0.1.0","@deepseek-ai/dsh-client-runtime":"^0.1.0","@deepseek-ai/dsh-client-ui-primitives":"^0.1.0","@deepseek-ai/dsh-commands":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0"},"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.14","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.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-timeout":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-persistence","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-timeout":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-persistence-jsonl","version":"0.0.14","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.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-persistence":"^0.0.14"},"dependencies":{"koffi":"^3.1.0","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-persistence-jsonl","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@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.14","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.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-projection","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./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","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-projection-cache","version":"0.0.14","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.0.14","@deepseek-ai/dsh-storage-domain":"^0.0.14","@deepseek-ai/dsh-session-persistence":"^0.0.14","@deepseek-ai/dsh-session-projection":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-session-projection-cache","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@deepseek-ai/dsh-storage-domain":"^0.1.0","@deepseek-ai/dsh-session-projection":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -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.14","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.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-session-persistence":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-title":"^0.0.14"},"peerDependenciesMeta":{"@deepseek-ai/dsh-session-persistence":{"optional":true}}}
1
+ {"name":"@deepseek-ai/dsh-session-query","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-title":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"peerDependenciesMeta":{"@deepseek-ai/dsh-session-persistence":{"optional":true}}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-query-sqlite","version":"0.0.14","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.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-session-persistence":"^0.0.14","@deepseek-ai/dsh-session-query":"^0.0.14","@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","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","@deepseek-ai/dsh-session-query":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"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.14","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.0.14","@deepseek-ai/dsh-compaction":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-session-query":"^0.0.14","@deepseek-ai/dsh-output-retention":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-session-reference","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-compaction":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-query":"^0.1.0","@deepseek-ai/dsh-output-retention":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-stats","version":"0.0.14","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.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.0.14"},"dependencies":{"zod":"^4.4.3"}}
1
+ {"name":"@deepseek-ai/dsh-session-stats","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./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","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.1.0"},"dependencies":{"zod":"^4.4.3"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-telemetry","version":"0.0.14","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.14","@deepseek-ai/dsh-agent":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-telemetry","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.1.0"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-telemetry-otel","version":"0.0.14","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.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-session-telemetry":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-anonymous-user-id":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-session-telemetry-otel","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","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.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-telemetry":"^0.1.0","@deepseek-ai/dsh-anonymous-user-id":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-title","version":"0.0.14","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-brand":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-session-projection":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-title","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./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-brand":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0"},"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.14","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-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-session-title-llm":"^0.0.14","@deepseek-ai/dsh-session-title":"^0.0.14","@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","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","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-session-title":"^0.1.0","@deepseek-ai/dsh-session-title-llm":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-session-title-llm","version":"0.0.14","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.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session-title":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-timeout":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-session-title-llm","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-timeout":"^0.1.0","@deepseek-ai/dsh-session-title":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-settings","version":"0.0.14","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.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/schemastery":"^3.18.1","@deepseek-ai/dsh-invariants":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-settings","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./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","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-settings-file","version":"0.0.14","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.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-home-paths":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.0.14"},"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","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","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-settings":"^0.1.0","@deepseek-ai/dsh-home-paths":"^0.1.0","@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.14","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.14","@deepseek-ai/dsh-subprocess":"^0.0.14","@deepseek-ai/dsh-sandbox":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-shell","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-subprocess":"^0.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.1.0"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-shell-env","version":"0.0.14","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.0.14","@deepseek-ai/dsh-home-paths":"^0.0.14","@deepseek-ai/dsh-session-persistence":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-tools":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-shell-env","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-home-paths":"^0.1.0","@deepseek-ai/dsh-session-persistence":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.1.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-skill","version":"0.0.14","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.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-scope":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-skill","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-scope":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-skill-badge","version":"0.0.14","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.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-skill":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-skill-badge","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-skill":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-skill-filesystem","version":"0.0.14","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.0.14","@deepseek-ai/dsh-skill":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-home-paths":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"},"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","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","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-home-paths":"^0.1.0","@deepseek-ai/dsh-skill":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"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.14","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.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.0.14"}}
1
+ {"name":"@deepseek-ai/dsh-spill","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-spill-local","version":"0.0.14","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.14","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-spill":"^0.0.14"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-spill-local","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-spill":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-spill-policy","version":"0.0.14","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.0.14","@deepseek-ai/dsh-output-retention":"^0.0.14","@deepseek-ai/dsh-invariants":"^0.0.14","@deepseek-ai/dsh-tools":"^0.0.14","@deepseek-ai/dsh-llm":"^0.0.14","@deepseek-ai/dsh-session":"^0.0.14","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-spill-policy","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-llm":"^0.1.0","@deepseek-ai/dsh-output-retention":"^0.1.0","@deepseek-ai/dsh-session":"^0.1.0","@deepseek-ai/dsh-spill":"^0.1.0","@deepseek-ai/dsh-tools":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-storage","version":"0.0.14","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.14","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-storage","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}