@songtonyli/dsh-cli 0.1.51 → 0.1.53

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 (995) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/dsh/package.json +112 -111
  4. package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
  5. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
  6. package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
  7. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  8. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +22 -22
  9. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +16 -4
  10. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +17 -0
  11. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +17 -0
  12. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +22 -7
  13. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +24 -24
  14. package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +4 -4
  15. package/node_modules/@deepseek-ai/dsh-agent-preset/README.md +4 -1
  16. package/node_modules/@deepseek-ai/dsh-agent-preset/README.zh.md +4 -1
  17. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -5
  18. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/agent-experience/SKILL.md +19 -0
  19. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -1
  20. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +9 -4
  21. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/user-actions.md +15 -0
  22. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
  23. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +28 -28
  24. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
  25. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  26. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
  27. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.i18n.yaml +64 -0
  28. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.md +138 -0
  29. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.zh.md +138 -0
  30. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/index.js +501 -0
  31. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.host.js +350 -0
  32. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.remote-client.js +249 -0
  33. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/index.js +424 -0
  34. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/types.js +12 -0
  35. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +66 -0
  36. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
  37. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +10 -10
  38. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  39. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -0
  40. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -0
  41. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +274 -0
  42. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +2 -1
  43. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -40
  44. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  45. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +2 -0
  46. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +2 -0
  47. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +3 -2
  48. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +2 -2
  49. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +1 -0
  50. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +69 -69
  51. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  52. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
  53. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +17 -17
  54. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +3 -3
  55. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
  56. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -18
  57. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -12
  58. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +0 -1
  59. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +0 -1
  60. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +2 -1
  61. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -9
  62. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  64. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  65. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  66. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +4 -4
  67. package/node_modules/@deepseek-ai/dsh-base/README.md +2 -2
  68. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -2
  69. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +11 -10
  70. package/node_modules/@deepseek-ai/dsh-base/package.json +94 -93
  71. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
  72. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  73. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  75. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
  76. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  78. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +4 -4
  79. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
  80. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +5 -5
  81. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.i18n.yaml +34 -0
  82. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.md +67 -0
  83. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.zh.md +67 -0
  84. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/client.js +75 -0
  85. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/index.js +185 -0
  86. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.host.js +284 -0
  87. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.remote-client.js +220 -0
  88. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +78 -0
  89. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
  90. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +8 -8
  91. package/node_modules/@deepseek-ai/dsh-client-store/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +16 -16
  93. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
  94. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -9
  95. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -4
  96. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +4 -4
  97. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -0
  98. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -0
  99. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +204 -72
  100. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +4 -4
  101. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +37 -36
  102. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +15 -15
  103. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  104. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
  105. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
  106. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +89 -25
  107. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +33 -32
  108. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
  109. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
  110. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
  111. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
  112. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
  113. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +12 -12
  114. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
  115. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +4 -4
  116. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -1
  117. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -1
  118. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
  120. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +16 -16
  121. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
  122. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +2 -0
  123. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +2 -0
  124. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +26 -16
  125. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -16
  126. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +18 -18
  127. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +15 -15
  128. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +20 -20
  129. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +6 -6
  130. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +8 -2
  131. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +8 -2
  132. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +3546 -3243
  133. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -15
  134. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +6 -6
  135. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +6 -5
  136. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +6 -5
  137. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +2 -2
  138. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +5 -4
  139. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +4 -0
  140. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +82 -21
  141. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +1 -0
  142. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +135 -58
  143. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +6 -2
  144. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +14 -5
  145. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +10 -3
  146. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +1 -0
  147. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +2 -8
  148. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +2 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +1 -1
  150. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +4 -4
  151. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -13
  152. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
  153. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
  154. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
  155. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +1 -1
  157. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/en.json +6 -0
  158. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/zh.json +6 -0
  159. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +22 -20
  160. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -8
  161. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +6 -6
  162. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +4 -4
  163. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +4 -2
  164. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +4 -2
  165. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +132 -24
  166. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +1 -1
  167. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -16
  168. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +9 -9
  169. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +4 -4
  170. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +4 -2
  171. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +4 -2
  172. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +20 -16
  173. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +13 -13
  174. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +6 -6
  175. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -2
  176. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -2
  177. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +11 -13
  178. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -10
  179. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +8 -8
  180. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +5 -5
  181. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +5 -5
  182. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +51 -22
  183. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -12
  184. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +6 -6
  185. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/README.i18n.yaml +37 -0
  186. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/README.md +70 -0
  187. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/README.zh.md +70 -0
  188. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/client.js +180 -0
  189. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/index.js +6 -0
  190. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +62 -0
  191. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +9 -9
  192. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +8 -8
  193. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +9 -9
  194. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +2 -2
  195. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +1 -1
  196. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +1 -1
  197. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +2 -2
  198. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
  199. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +10 -10
  200. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  201. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +2 -0
  202. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +2 -0
  203. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +2 -1
  204. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -11
  205. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +2 -2
  206. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +1 -1
  207. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +1 -1
  208. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +1 -1
  209. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +11 -11
  210. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  211. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +1 -1
  212. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +1 -1
  213. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +1 -1
  214. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +18 -18
  215. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
  216. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
  217. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +15 -15
  218. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
  219. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +1 -1
  220. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +1 -1
  221. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +21 -14
  222. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -13
  223. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +3 -3
  224. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +17 -17
  225. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  226. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +4 -2
  227. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +4 -2
  228. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  229. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +11 -11
  230. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
  231. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +1 -1
  232. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +1 -1
  233. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +20 -27
  234. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +23 -23
  235. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +16 -16
  236. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -18
  237. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +7 -1
  238. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +14 -14
  239. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +4 -4
  240. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +4 -0
  241. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +4 -0
  242. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +21 -11
  243. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +24 -23
  244. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +2 -2
  246. package/node_modules/@deepseek-ai/dsh-command-compact/README.md +1 -1
  247. package/node_modules/@deepseek-ai/dsh-command-compact/README.zh.md +1 -1
  248. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  249. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  250. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  251. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
  252. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  253. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  254. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
  255. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  256. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
  257. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +2 -2
  258. package/node_modules/@deepseek-ai/dsh-config-editor/README.md +2 -0
  259. package/node_modules/@deepseek-ai/dsh-config-editor/README.zh.md +2 -0
  260. package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +8 -2
  261. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
  262. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +12 -6
  263. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
  264. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
  265. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +16 -16
  266. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  267. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  268. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +2 -2
  269. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +2 -0
  270. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +2 -0
  271. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +7 -7
  272. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +2 -0
  274. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +2 -0
  275. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +14 -1
  276. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +17 -1
  277. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
  278. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  279. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  280. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +21 -21
  281. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
  282. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
  283. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +6 -4
  284. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +35 -35
  285. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +22 -22
  286. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +31 -31
  287. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/README.i18n.yaml +46 -0
  288. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/README.md +95 -0
  289. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/README.zh.md +95 -0
  290. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/cordis.patch.yml +16 -0
  291. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/icon.svg +18 -0
  292. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/lib/index.js +1 -0
  293. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/locale/en.json +6 -0
  294. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/locale/zh.json +6 -0
  295. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/package.json +53 -0
  296. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
  297. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
  298. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
  299. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +1 -1
  300. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
  301. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  302. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
  303. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  304. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +5 -5
  305. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  306. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  307. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
  308. package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
  309. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  310. package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
  311. package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
  312. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  313. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
  314. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
  315. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
  316. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  317. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -13
  318. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  319. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/lib/index.js +3 -3
  320. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +4 -4
  321. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
  322. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +1 -1
  323. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +1 -1
  324. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  325. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
  326. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/README.i18n.yaml +37 -0
  327. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/README.md +109 -0
  328. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/README.zh.md +109 -0
  329. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/lib/index.js +88 -0
  330. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +45 -0
  331. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  332. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
  333. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  334. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  335. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  336. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  337. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  338. package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
  339. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +21 -21
  340. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  341. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +1 -1
  342. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +1 -1
  343. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +18 -13
  344. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
  345. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +10 -10
  346. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
  347. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  348. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
  349. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +21 -21
  350. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
  351. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
  352. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  353. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +6 -6
  354. package/node_modules/@deepseek-ai/dsh-native-command/README.md +4 -4
  355. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +4 -4
  356. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +22 -20
  357. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-linux.js +2 -2
  358. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +1 -1
  359. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications.js +4 -4
  360. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +11 -10
  361. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/runner.js +5 -3
  362. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  363. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +11 -11
  364. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
  365. package/node_modules/@deepseek-ai/dsh-otel/README.i18n.yaml +37 -0
  366. package/node_modules/@deepseek-ai/dsh-otel/README.md +70 -0
  367. package/node_modules/@deepseek-ai/dsh-otel/README.zh.md +70 -0
  368. package/node_modules/@deepseek-ai/dsh-otel/lib/index.js +399 -0
  369. package/node_modules/@deepseek-ai/dsh-otel/package.json +47 -0
  370. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  371. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  372. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
  373. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +20 -20
  374. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  375. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
  376. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
  377. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  378. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  379. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
  380. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
  381. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  382. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  383. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  384. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +2 -2
  385. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +2 -0
  386. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +2 -0
  387. package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +5 -1
  388. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  389. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
  390. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +9 -9
  391. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +13 -2
  392. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +15 -2
  393. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md +46 -0
  394. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/scripts/diagnose-windows-sandbox-acl.ps1 +721 -0
  395. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +2 -2
  396. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  397. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-Cl_DXjhk.js +1411 -0
  398. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +15 -9
  399. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
  400. package/node_modules/@deepseek-ai/dsh-schedule/README.md +1 -1
  401. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +1 -1
  402. package/node_modules/@deepseek-ai/dsh-schedule/locale/en.json +6 -0
  403. package/node_modules/@deepseek-ai/dsh-schedule/locale/zh.json +6 -0
  404. package/node_modules/@deepseek-ai/dsh-schedule/package.json +32 -30
  405. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  406. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
  407. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
  408. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
  409. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
  410. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +14 -11
  411. package/node_modules/@deepseek-ai/dsh-session/README.md +7 -3
  412. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +8 -6
  413. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +131 -91
  414. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +1 -1
  415. package/node_modules/@deepseek-ai/dsh-session/lib/types/repair.js +113 -80
  416. package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
  417. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
  418. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  419. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
  420. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
  421. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  422. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  423. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
  424. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +2 -2
  425. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +4 -2
  426. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +4 -2
  427. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +3 -3
  428. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +4 -4
  429. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +15 -15
  430. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +21 -21
  431. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  432. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +2 -2
  433. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +11 -11
  434. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
  435. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  436. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  437. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  438. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
  439. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -34
  440. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  441. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +4 -4
  442. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.md +3 -1
  443. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.zh.md +3 -1
  444. package/node_modules/@deepseek-ai/dsh-session-telemetry/lib/index.js +7 -2
  445. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  446. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +16 -16
  447. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.md +18 -13
  448. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.zh.md +18 -13
  449. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/lib/index.js +46 -49
  450. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -24
  451. package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
  452. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +13 -13
  453. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  454. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  455. package/node_modules/@deepseek-ai/dsh-settings/package.json +12 -12
  456. package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
  457. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
  458. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  459. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  460. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  461. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +3 -3
  462. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  463. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  464. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +30 -30
  465. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  466. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
  467. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  468. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
  469. package/node_modules/@deepseek-ai/dsh-subagent/package.json +48 -48
  470. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
  471. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
  472. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
  473. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +17 -17
  474. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  475. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +8 -8
  476. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
  477. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  478. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +4 -4
  479. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.md +2 -2
  480. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.zh.md +2 -2
  481. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +12 -3
  482. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
  483. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +2 -2
  484. package/node_modules/@deepseek-ai/dsh-time-context/README.md +1 -1
  485. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +1 -1
  486. package/node_modules/@deepseek-ai/dsh-time-context/locale/en.json +6 -0
  487. package/node_modules/@deepseek-ai/dsh-time-context/locale/zh.json +6 -0
  488. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -21
  489. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  490. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
  491. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  492. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
  493. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
  494. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +19 -19
  495. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
  496. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +91 -5
  497. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
  498. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +29 -29
  499. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
  500. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
  501. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
  502. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +17 -17
  503. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
  504. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +20 -20
  505. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
  506. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
  507. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
  508. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +26 -26
  509. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
  510. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
  511. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
  512. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +22 -22
  513. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
  514. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
  515. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +30 -12
  516. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +42 -7
  517. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +42 -7
  518. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +1273 -114
  519. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -72
  520. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
  521. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
  522. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  523. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
  524. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +7 -7
  525. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
  526. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  527. package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
  528. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  529. package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
  530. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
  531. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +2 -2
  532. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  533. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  534. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  535. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +6 -6
  536. package/node_modules/@deepseek-ai/dsh-web-app/README.md +6 -2
  537. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +6 -2
  538. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +25 -19
  539. package/node_modules/@deepseek-ai/dsh-web-app/package.json +139 -137
  540. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
  541. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Cq6ljTv2.css +1 -0
  542. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Dy0OhsZ5.js +127 -0
  543. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  544. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +16 -16
  545. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +15 -12
  546. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +12 -7
  547. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +12 -7
  548. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +61 -15
  549. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -13
  550. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
  551. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
  552. package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
  553. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
  554. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +3 -3
  555. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  556. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
  557. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +34 -34
  558. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  559. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +11 -11
  560. package/node_modules/@keyv/serialize/LICENSE +22 -0
  561. package/node_modules/@keyv/serialize/README.md +15 -0
  562. package/node_modules/@keyv/serialize/dist/index.cjs +84 -0
  563. package/node_modules/@keyv/serialize/dist/index.js +58 -0
  564. package/node_modules/@keyv/serialize/package.json +49 -0
  565. package/node_modules/@sindresorhus/is/distribution/index.js +1354 -0
  566. package/node_modules/@sindresorhus/is/distribution/types.js +2 -0
  567. package/node_modules/@sindresorhus/is/distribution/utilities.js +3 -0
  568. package/node_modules/@sindresorhus/is/license +9 -0
  569. package/node_modules/@sindresorhus/is/package.json +76 -0
  570. package/node_modules/@sindresorhus/is/readme.md +844 -0
  571. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  572. package/node_modules/@types/http-cache-semantics/README.md +15 -0
  573. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  574. package/node_modules/byte-counter/index.js +27 -0
  575. package/node_modules/byte-counter/license +9 -0
  576. package/node_modules/byte-counter/node.js +15 -0
  577. package/node_modules/byte-counter/package.json +70 -0
  578. package/node_modules/byte-counter/readme.md +127 -0
  579. package/node_modules/byte-counter/utilities.js +13 -0
  580. package/node_modules/cacheable-lookup/LICENSE +21 -0
  581. package/node_modules/cacheable-lookup/README.md +245 -0
  582. package/node_modules/cacheable-lookup/package.json +57 -0
  583. package/node_modules/cacheable-lookup/source/index.js +452 -0
  584. package/node_modules/cacheable-request/LICENSE +19 -0
  585. package/node_modules/cacheable-request/README.md +341 -0
  586. package/node_modules/cacheable-request/dist/index.js +351 -0
  587. package/node_modules/cacheable-request/dist/types.js +19 -0
  588. package/node_modules/cacheable-request/package.json +58 -0
  589. package/node_modules/decompress-response/index.js +90 -0
  590. package/node_modules/decompress-response/license +9 -0
  591. package/node_modules/decompress-response/package.json +56 -0
  592. package/node_modules/decompress-response/readme.md +36 -0
  593. package/node_modules/form-data-encoder/lib/index.cjs +375 -0
  594. package/node_modules/form-data-encoder/lib/index.js +347 -0
  595. package/node_modules/form-data-encoder/license +21 -0
  596. package/node_modules/form-data-encoder/package.json +64 -0
  597. package/node_modules/form-data-encoder/readme.md +369 -0
  598. package/node_modules/got/dist/source/as-promise/index.js +204 -0
  599. package/node_modules/got/dist/source/as-promise/types.js +17 -0
  600. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  601. package/node_modules/got/dist/source/core/diagnostics-channel.js +49 -0
  602. package/node_modules/got/dist/source/core/errors.js +147 -0
  603. package/node_modules/got/dist/source/core/index.js +1339 -0
  604. package/node_modules/got/dist/source/core/options.js +1838 -0
  605. package/node_modules/got/dist/source/core/parse-link-header.js +33 -0
  606. package/node_modules/got/dist/source/core/response.js +41 -0
  607. package/node_modules/got/dist/source/core/timed-out.js +136 -0
  608. package/node_modules/got/dist/source/core/utils/defer-to-connect.js +44 -0
  609. package/node_modules/got/dist/source/core/utils/get-body-size.js +37 -0
  610. package/node_modules/got/dist/source/core/utils/is-client-request.js +4 -0
  611. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  612. package/node_modules/got/dist/source/core/utils/is-unix-socket-url.js +25 -0
  613. package/node_modules/got/dist/source/core/utils/options-to-url.js +48 -0
  614. package/node_modules/got/dist/source/core/utils/proxy-events.js +15 -0
  615. package/node_modules/got/dist/source/core/utils/timer.js +162 -0
  616. package/node_modules/got/dist/source/core/utils/unhandle.js +20 -0
  617. package/node_modules/got/dist/source/core/utils/url-to-options.js +22 -0
  618. package/node_modules/got/dist/source/core/utils/weakable-map.js +24 -0
  619. package/node_modules/got/dist/source/create.js +188 -0
  620. package/node_modules/got/dist/source/index.js +22 -0
  621. package/node_modules/got/dist/source/types.js +1 -0
  622. package/node_modules/got/license +9 -0
  623. package/node_modules/got/package.json +151 -0
  624. package/node_modules/got/readme.md +478 -0
  625. package/node_modules/http-cache-semantics/LICENSE +9 -0
  626. package/node_modules/http-cache-semantics/README.md +268 -0
  627. package/node_modules/http-cache-semantics/index.js +928 -0
  628. package/node_modules/http-cache-semantics/package.json +19 -0
  629. package/node_modules/http2-wrapper/LICENSE +21 -0
  630. package/node_modules/http2-wrapper/README.md +459 -0
  631. package/node_modules/http2-wrapper/package.json +81 -0
  632. package/node_modules/http2-wrapper/source/agent.js +796 -0
  633. package/node_modules/http2-wrapper/source/auto.js +225 -0
  634. package/node_modules/http2-wrapper/source/client-request.js +563 -0
  635. package/node_modules/http2-wrapper/source/incoming-message.js +73 -0
  636. package/node_modules/http2-wrapper/source/index.js +50 -0
  637. package/node_modules/http2-wrapper/source/proxies/get-auth-headers.js +17 -0
  638. package/node_modules/http2-wrapper/source/proxies/h1-over-h2.js +90 -0
  639. package/node_modules/http2-wrapper/source/proxies/h2-over-h1.js +48 -0
  640. package/node_modules/http2-wrapper/source/proxies/h2-over-h2.js +32 -0
  641. package/node_modules/http2-wrapper/source/proxies/h2-over-hx.js +40 -0
  642. package/node_modules/http2-wrapper/source/proxies/initialize.js +21 -0
  643. package/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.js +11 -0
  644. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +29 -0
  645. package/node_modules/http2-wrapper/source/utils/check-type.js +20 -0
  646. package/node_modules/http2-wrapper/source/utils/delay-async-destroy.js +33 -0
  647. package/node_modules/http2-wrapper/source/utils/errors.js +51 -0
  648. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  649. package/node_modules/http2-wrapper/source/utils/js-stream-socket.js +8 -0
  650. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  651. package/node_modules/http2-wrapper/source/utils/proxy-socket-handler.js +102 -0
  652. package/node_modules/http2-wrapper/source/utils/validate-header-name.js +11 -0
  653. package/node_modules/http2-wrapper/source/utils/validate-header-value.js +17 -0
  654. package/node_modules/keyv/LICENSE +22 -0
  655. package/node_modules/keyv/README.md +828 -0
  656. package/node_modules/keyv/dist/index.cjs +990 -0
  657. package/node_modules/keyv/dist/index.js +964 -0
  658. package/node_modules/keyv/package.json +80 -0
  659. package/node_modules/koffi/CHANGELOG.md +1 -87
  660. package/node_modules/koffi/README.md +8 -12
  661. package/node_modules/koffi/cnoke.cjs +66 -117
  662. package/node_modules/koffi/doc/benchmarks.md +1 -35
  663. package/node_modules/koffi/doc/composites.md +20 -9
  664. package/node_modules/koffi/doc/index.md +10 -12
  665. package/node_modules/koffi/doc/migration.md +1 -1
  666. package/node_modules/koffi/lib/native/base/base.cc +187 -338
  667. package/node_modules/koffi/lib/native/base/base.hh +39 -150
  668. package/node_modules/koffi/package.json +1 -1
  669. package/node_modules/koffi/src/koffi/CMakeLists.txt +5 -12
  670. package/node_modules/koffi/src/koffi/index.cjs +69 -112
  671. package/node_modules/koffi/src/koffi/index.js +66 -109
  672. package/node_modules/koffi/src/koffi/indirect.cjs +69 -112
  673. package/node_modules/koffi/src/koffi/indirect.js +66 -109
  674. package/node_modules/koffi/src/koffi/src/abi/arm64.cc +1127 -87
  675. package/node_modules/koffi/src/koffi/src/abi/arm64_asm.S +15 -54
  676. package/node_modules/koffi/src/koffi/src/abi/arm64_asm.asm +20 -63
  677. package/node_modules/koffi/src/koffi/src/abi/loong64_asm.S +29 -55
  678. package/node_modules/koffi/src/koffi/src/abi/riscv64.cc +1134 -120
  679. package/node_modules/koffi/src/koffi/src/abi/riscv64_asm.S +29 -55
  680. package/node_modules/koffi/src/koffi/src/abi/x64sysv.cc +1124 -76
  681. package/node_modules/koffi/src/koffi/src/abi/x64sysv_asm.S +22 -52
  682. package/node_modules/koffi/src/koffi/src/abi/x64win.cc +1015 -46
  683. package/node_modules/koffi/src/koffi/src/abi/x64win_asm.S +32 -32
  684. package/node_modules/koffi/src/koffi/src/abi/x64win_asm.asm +39 -39
  685. package/node_modules/koffi/src/koffi/src/abi/x86.cc +1048 -99
  686. package/node_modules/koffi/src/koffi/src/abi/x86_asm.S +14 -15
  687. package/node_modules/koffi/src/koffi/src/abi/x86_asm.asm +20 -21
  688. package/node_modules/koffi/src/koffi/src/call.cc +280 -464
  689. package/node_modules/koffi/src/koffi/src/call.hh +46 -67
  690. package/node_modules/koffi/src/koffi/src/ffi.cc +224 -193
  691. package/node_modules/koffi/src/koffi/src/ffi.hh +145 -63
  692. package/node_modules/koffi/src/koffi/src/parser.cc +3 -3
  693. package/node_modules/koffi/src/koffi/src/static.cjs +0 -40
  694. package/node_modules/koffi/src/koffi/src/static.js +0 -40
  695. package/node_modules/koffi/src/koffi/src/type.cc +51 -148
  696. package/node_modules/koffi/src/koffi/src/type.hh +8 -19
  697. package/node_modules/koffi/src/koffi/src/util.cc +179 -108
  698. package/node_modules/koffi/src/koffi/src/util.hh +114 -36
  699. package/node_modules/koffi/src/koffi/src/win32.cc +0 -2
  700. package/node_modules/koffi/src/koffi/src/win32.hh +14 -17
  701. package/node_modules/koffi/vendor/node-addon-api/README.md +1 -1
  702. package/node_modules/koffi/vendor/node-addon-api/napi-inl.h +0 -39
  703. package/node_modules/koffi/vendor/node-addon-api/napi.h +0 -43
  704. package/node_modules/lowercase-keys/index.js +3 -0
  705. package/node_modules/lowercase-keys/license +9 -0
  706. package/node_modules/lowercase-keys/package.json +38 -0
  707. package/node_modules/lowercase-keys/readme.md +32 -0
  708. package/node_modules/micromark-util-types/package.json +2 -36
  709. package/node_modules/mimic-response/index.js +75 -0
  710. package/node_modules/mimic-response/license +9 -0
  711. package/node_modules/mimic-response/package.json +41 -0
  712. package/node_modules/mimic-response/readme.md +78 -0
  713. package/node_modules/normalize-url/index.js +305 -0
  714. package/node_modules/normalize-url/license +9 -0
  715. package/node_modules/normalize-url/package.json +53 -0
  716. package/node_modules/normalize-url/readme.md +347 -0
  717. package/node_modules/p-cancelable/index.js +119 -0
  718. package/node_modules/p-cancelable/license +9 -0
  719. package/node_modules/p-cancelable/package.json +47 -0
  720. package/node_modules/p-cancelable/readme.md +152 -0
  721. package/node_modules/quick-lru/index.js +123 -0
  722. package/node_modules/quick-lru/license +9 -0
  723. package/node_modules/quick-lru/package.json +40 -0
  724. package/node_modules/quick-lru/readme.md +111 -0
  725. package/node_modules/resolve-alpn/LICENSE +22 -0
  726. package/node_modules/resolve-alpn/README.md +60 -0
  727. package/node_modules/resolve-alpn/index.js +43 -0
  728. package/node_modules/resolve-alpn/package.json +31 -0
  729. package/node_modules/responselike/index.js +49 -0
  730. package/node_modules/responselike/license +10 -0
  731. package/node_modules/responselike/package.json +46 -0
  732. package/node_modules/responselike/readme.md +75 -0
  733. package/node_modules/sharp/dist/is.cjs +8 -2
  734. package/node_modules/sharp/dist/is.mjs +8 -2
  735. package/node_modules/sharp/dist/operation.cjs +2 -2
  736. package/node_modules/sharp/dist/operation.mjs +2 -2
  737. package/node_modules/sharp/dist/output.cjs +1 -0
  738. package/node_modules/sharp/dist/output.mjs +1 -0
  739. package/node_modules/sharp/dist/resize.cjs +14 -14
  740. package/node_modules/sharp/dist/resize.mjs +14 -14
  741. package/node_modules/sharp/dist/sharp.cjs +3 -3
  742. package/node_modules/sharp/dist/sharp.mjs +3 -3
  743. package/node_modules/sharp/package.json +10 -10
  744. package/node_modules/sharp/src/binding.gyp +1 -1
  745. package/node_modules/sharp/src/common.cc +4 -4
  746. package/node_modules/sharp/src/common.h +2 -2
  747. package/node_modules/sharp/src/pipeline.cc +31 -6
  748. package/node_modules/sharp/src/utilities.cc +1 -1
  749. package/node_modules/type-fest/license-cc0 +121 -0
  750. package/node_modules/type-fest/license-mit +9 -0
  751. package/node_modules/type-fest/package.json +84 -0
  752. package/node_modules/type-fest/readme.md +1060 -0
  753. package/package.json +376 -331
  754. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +0 -1
  755. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +0 -127
  756. package/node_modules/@opentelemetry/exporter-logs-otlp-http/LICENSE +0 -201
  757. package/node_modules/@opentelemetry/exporter-logs-otlp-http/README.md +0 -112
  758. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/index.js +0 -6
  759. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/browser/OTLPLogExporter.js +0 -16
  760. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/browser/index.js +0 -6
  761. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/index.js +0 -6
  762. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/node/OTLPLogExporter.js +0 -18
  763. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/node/index.js +0 -6
  764. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/version.js +0 -7
  765. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/index.js +0 -6
  766. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/browser/OTLPLogExporter.js +0 -16
  767. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/browser/index.js +0 -6
  768. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/index.js +0 -6
  769. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/node/OTLPLogExporter.js +0 -18
  770. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/platform/node/index.js +0 -6
  771. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/esnext/version.js +0 -7
  772. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/index.js +0 -10
  773. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/browser/OTLPLogExporter.js +0 -20
  774. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/browser/index.js +0 -10
  775. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/index.js +0 -10
  776. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/OTLPLogExporter.js +0 -22
  777. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/index.js +0 -10
  778. package/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.js +0 -10
  779. package/node_modules/@opentelemetry/exporter-logs-otlp-http/package.json +0 -91
  780. package/node_modules/koffi/src/koffi/src/abi/arm32.cc +0 -302
  781. package/node_modules/koffi/src/koffi/src/abi/arm32_asm.S +0 -199
  782. package/node_modules/koffi/src/koffi/src/abi/ppc64.cc +0 -222
  783. package/node_modules/koffi/src/koffi/src/abi/ppc64_asm.S +0 -266
  784. package/node_modules/koffi/src/koffi/src/interp.cc +0 -1594
  785. package/node_modules/koffi/src/koffi/src/interp.hh +0 -142
  786. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/LICENSE +0 -0
  787. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/README.md +0 -0
  788. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/Resource.js +0 -0
  789. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js +0 -0
  790. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/config.js +0 -0
  791. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/default-service-name.js +0 -0
  792. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detect-resources.js +0 -0
  793. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/EnvDetector.js +0 -0
  794. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/NoopDetector.js +0 -0
  795. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/index.js +0 -0
  796. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/HostDetector.js +0 -0
  797. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/OSDetector.js +0 -0
  798. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/ProcessDetector.js +0 -0
  799. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/ServiceInstanceIdDetector.js +0 -0
  800. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/browser/index.js +0 -0
  801. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/index.js +0 -0
  802. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/HostDetector.js +0 -0
  803. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/OSDetector.js +0 -0
  804. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js +0 -0
  805. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ServiceInstanceIdDetector.js +0 -0
  806. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/index.js +0 -0
  807. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js +0 -0
  808. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js +0 -0
  809. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js +0 -0
  810. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js +0 -0
  811. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js +0 -0
  812. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js +0 -0
  813. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId.js +0 -0
  814. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/utils.js +0 -0
  815. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/index.js +0 -0
  816. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/semconv.js +0 -0
  817. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core/build/esm/common → dsh-otel/node_modules/@opentelemetry/resources/build/esm}/types.js +0 -0
  818. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esm/utils.js +0 -0
  819. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/build/esm/version.js +0 -0
  820. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/Resource.js +0 -0
  821. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/ResourceImpl.js +0 -0
  822. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/config.js +0 -0
  823. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/default-service-name.js +0 -0
  824. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detect-resources.js +0 -0
  825. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/EnvDetector.js +0 -0
  826. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/NoopDetector.js +0 -0
  827. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/index.js +0 -0
  828. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/HostDetector.js +0 -0
  829. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/OSDetector.js +0 -0
  830. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/ProcessDetector.js +0 -0
  831. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/ServiceInstanceIdDetector.js +0 -0
  832. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/browser/index.js +0 -0
  833. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/index.js +0 -0
  834. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/HostDetector.js +0 -0
  835. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/OSDetector.js +0 -0
  836. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/ProcessDetector.js +0 -0
  837. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/ServiceInstanceIdDetector.js +0 -0
  838. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/index.js +0 -0
  839. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.js +0 -0
  840. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-bsd.js +0 -0
  841. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-darwin.js +0 -0
  842. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-linux.js +0 -0
  843. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-unsupported.js +0 -0
  844. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-win.js +0 -0
  845. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId.js +0 -0
  846. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/utils.js +0 -0
  847. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/index.js +0 -0
  848. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/semconv.js +0 -0
  849. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core/build/esnext/common → dsh-otel/node_modules/@opentelemetry/resources/build/esnext}/types.js +0 -0
  850. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/esnext/utils.js +0 -0
  851. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/build/esnext/version.js +0 -0
  852. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/Resource.js +0 -0
  853. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/ResourceImpl.js +0 -0
  854. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/config.js +0 -0
  855. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/default-service-name.js +0 -0
  856. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detect-resources.js +0 -0
  857. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js +0 -0
  858. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/NoopDetector.js +0 -0
  859. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/index.js +0 -0
  860. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/HostDetector.js +0 -0
  861. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/OSDetector.js +0 -0
  862. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/ProcessDetector.js +0 -0
  863. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/ServiceInstanceIdDetector.js +0 -0
  864. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/browser/index.js +0 -0
  865. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js +0 -0
  866. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js +0 -0
  867. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js +0 -0
  868. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js +0 -0
  869. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetector.js +0 -0
  870. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js +0 -0
  871. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js +0 -0
  872. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js +0 -0
  873. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js +0 -0
  874. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js +0 -0
  875. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js +0 -0
  876. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js +0 -0
  877. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js +0 -0
  878. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js +0 -0
  879. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/index.js +0 -0
  880. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/semconv.js +0 -0
  881. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core/build/src/common → dsh-otel/node_modules/@opentelemetry/resources/build/src}/types.js +0 -0
  882. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/build/src/utils.js +0 -0
  883. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/core → dsh-otel/node_modules/@opentelemetry/resources}/build/src/version.js +0 -0
  884. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/LICENSE +0 -0
  885. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/README.md +0 -0
  886. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/ExportResult.js +0 -0
  887. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/baggage/constants.js +0 -0
  888. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js +0 -0
  889. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/baggage/utils.js +0 -0
  890. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.js +0 -0
  891. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/attributes.js +0 -0
  892. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js +0 -0
  893. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/globalThis.js +0 -0
  894. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js +0 -0
  895. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/time.js +0 -0
  896. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/common/timer-util.js +0 -0
  897. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources/build/esm → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/common}/types.js +0 -0
  898. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/index.js +0 -0
  899. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/internal/exporter.js +0 -0
  900. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/internal/validators.js +0 -0
  901. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js +0 -0
  902. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/browser/index.js +0 -0
  903. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js +0 -0
  904. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/index.js +0 -0
  905. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js +0 -0
  906. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/node/index.js +0 -0
  907. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js +0 -0
  908. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +0 -0
  909. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/semconv.js +0 -0
  910. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +0 -0
  911. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js +0 -0
  912. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.js +0 -0
  913. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js +0 -0
  914. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/callback.js +0 -0
  915. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/configuration.js +0 -0
  916. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js +0 -0
  917. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/merge.js +0 -0
  918. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/promise.js +0 -0
  919. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/timeout.js +0 -0
  920. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esm/utils/url.js +0 -0
  921. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/build/esm/version.js +0 -0
  922. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/ExportResult.js +0 -0
  923. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/baggage/constants.js +0 -0
  924. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/baggage/propagation/W3CBaggagePropagator.js +0 -0
  925. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/baggage/utils.js +0 -0
  926. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/anchored-clock.js +0 -0
  927. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/attributes.js +0 -0
  928. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/global-error-handler.js +0 -0
  929. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/globalThis.js +0 -0
  930. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/logging-error-handler.js +0 -0
  931. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/time.js +0 -0
  932. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/common/timer-util.js +0 -0
  933. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources/build/esnext → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/common}/types.js +0 -0
  934. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/index.js +0 -0
  935. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/internal/exporter.js +0 -0
  936. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/internal/validators.js +0 -0
  937. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/browser/environment.js +0 -0
  938. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.js +0 -0
  939. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/browser/sdk-info.js +0 -0
  940. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/index.js +0 -0
  941. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/node/environment.js +0 -0
  942. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/node/index.js +0 -0
  943. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/platform/node/sdk-info.js +0 -0
  944. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +0 -0
  945. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/semconv.js +0 -0
  946. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +0 -0
  947. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/W3CTraceContextPropagator.js +0 -0
  948. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/rpc-metadata.js +0 -0
  949. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/trace/suppress-tracing.js +0 -0
  950. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/callback.js +0 -0
  951. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/configuration.js +0 -0
  952. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/lodash.merge.js +0 -0
  953. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/merge.js +0 -0
  954. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/promise.js +0 -0
  955. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/timeout.js +0 -0
  956. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/esnext/utils/url.js +0 -0
  957. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/build/esnext/version.js +0 -0
  958. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/ExportResult.js +0 -0
  959. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/baggage/constants.js +0 -0
  960. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/baggage/propagation/W3CBaggagePropagator.js +0 -0
  961. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/baggage/utils.js +0 -0
  962. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/anchored-clock.js +0 -0
  963. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/attributes.js +0 -0
  964. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/global-error-handler.js +0 -0
  965. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/globalThis.js +0 -0
  966. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/logging-error-handler.js +0 -0
  967. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/time.js +0 -0
  968. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/common/timer-util.js +0 -0
  969. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources/build/src → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/common}/types.js +0 -0
  970. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/index.js +0 -0
  971. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/internal/exporter.js +0 -0
  972. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/internal/validators.js +0 -0
  973. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/browser/environment.js +0 -0
  974. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/browser/index.js +0 -0
  975. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/browser/sdk-info.js +0 -0
  976. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/index.js +0 -0
  977. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/node/environment.js +0 -0
  978. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/node/index.js +0 -0
  979. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/platform/node/sdk-info.js +0 -0
  980. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/propagation/composite.js +0 -0
  981. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/semconv.js +0 -0
  982. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +0 -0
  983. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/W3CTraceContextPropagator.js +0 -0
  984. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.js +0 -0
  985. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.js +0 -0
  986. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/callback.js +0 -0
  987. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/configuration.js +0 -0
  988. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/lodash.merge.js +0 -0
  989. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/merge.js +0 -0
  990. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/promise.js +0 -0
  991. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/timeout.js +0 -0
  992. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/build/src/utils/url.js +0 -0
  993. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel/node_modules/@opentelemetry/resources → dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core}/build/src/version.js +0 -0
  994. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel/node_modules/@opentelemetry/resources}/node_modules/@opentelemetry/core/package.json +0 -0
  995. /package/node_modules/@deepseek-ai/{dsh-session-telemetry-otel → dsh-otel}/node_modules/@opentelemetry/resources/package.json +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-webhook-github",
3
3
  "description": "Signed GitHub HTTP webhook adapter for the DeepSeek Harness webhook runtime",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -33,13 +33,13 @@
33
33
  "license": "MIT",
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "4.0.4",
36
- "@deepseek-ai/dsh-credentials": "0.1.7-rc.2",
37
- "@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
38
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
39
- "@deepseek-ai/dsh-webhook": "0.1.7-rc.2"
36
+ "@deepseek-ai/dsh-credentials": "0.2.0-rc.1",
37
+ "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.1",
38
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
39
+ "@deepseek-ai/dsh-webhook": "0.2.0-rc.1"
40
40
  },
41
41
  "dependencies": {
42
- "@deepseek-ai/dsh-util-values": "0.1.7-rc.2",
42
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.1",
43
43
  "@deepseek-ai/schemastery": "3.18.4",
44
44
  "@octokit/webhooks": "^14.2.0"
45
45
  },
@@ -47,9 +47,9 @@
47
47
  "@deepseek-ai/cordis": "4.0.4",
48
48
  "@deepseek-ai/cordis-plugin-include": "1.0.9",
49
49
  "@deepseek-ai/cordis-plugin-loader": "1.0.5",
50
- "@deepseek-ai/dsh-credentials": "0.1.7-rc.2",
51
- "@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
52
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
53
- "@deepseek-ai/dsh-webhook": "0.1.7-rc.2"
50
+ "@deepseek-ai/dsh-credentials": "0.2.0-rc.1",
51
+ "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.1",
52
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
53
+ "@deepseek-ai/dsh-webhook": "0.2.0-rc.1"
54
54
  }
55
55
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-win32-process",
3
3
  "description": "Shared low-level Win32 process, stdio, and Job Object primitives",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -30,8 +30,8 @@
30
30
  "@deepseek-ai/cordis": "4.0.4"
31
31
  },
32
32
  "dependencies": {
33
- "@deepseek-ai/dsh-lazy-require": "0.1.7-rc.2",
34
- "koffi": "^3.1.0"
33
+ "@deepseek-ai/dsh-lazy-require": "0.2.0-rc.1",
34
+ "koffi": "3.1.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@deepseek-ai/cordis": "4.0.4"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-workflow",
3
3
  "description": "Workflow capability seam: ctx.workflowEngine service, run vocabulary, and workflow/* events",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,19 +37,19 @@
37
37
  ],
38
38
  "license": "MIT",
39
39
  "peerDependencies": {
40
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
41
- "@deepseek-ai/dsh-brand": "0.1.7-rc.2",
42
- "@deepseek-ai/dsh-invariants": "0.1.7-rc.2",
43
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
44
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
40
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
41
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.1",
42
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
43
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
44
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
45
45
  "@deepseek-ai/cordis": "4.0.4"
46
46
  },
47
47
  "devDependencies": {
48
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
49
- "@deepseek-ai/dsh-brand": "0.1.7-rc.2",
50
- "@deepseek-ai/dsh-invariants": "0.1.7-rc.2",
51
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
52
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
48
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
49
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.1",
50
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
51
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
52
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
53
53
  "@deepseek-ai/cordis": "4.0.4"
54
54
  }
55
55
  }
@@ -9,7 +9,7 @@ import { assertNever, snapshotJsonValue } from "@deepseek-ai/dsh-util-values";
9
9
  //#region lib/types/guest-source.js
10
10
  /** Generated by scripts/gen-workflow-guest.ts. Do not edit directly. */
11
11
  /** Self-contained ESM guest transported into the mounted PTC runtime. */
12
- const WORKFLOW_GUEST_SOURCE = "import * as vm from \"node:vm\";\n//#region packages/workflow/workflow-ptc/src/realm.ts\n/**\n* Materializes script VM values as plain JSON and renders thrown values.\n* Getters and proxy traps may execute inside the confined Node process;\n* process isolation and cancellation belong to PTC, not the VM.\n* @module @deepseek-ai/dsh-workflow-ptc/realm\n*/\n/** Thrown by {@link materializeFromRealm}; the caller wraps it into the right `WorkflowError` code. */\nvar MaterializeError = class extends Error {\n path;\n reason;\n constructor(path, reason) {\n super(`${path}: ${reason}`);\n this.path = path;\n this.reason = reason;\n this.name = \"MaterializeError\";\n }\n};\n/**\n* Render a thrown value to failure text without ever throwing: prefer the\n* `stack` (host or realm — a realm error's `stack` is a plain string read),\n* fall back to `message`, then `String()`. Reading those properties MAY run\n* script code; if that code itself throws, a fixed label is returned instead.\n* @param error - any value thrown in the host or guest realm.\n* @returns human-readable text for the failure report; prefers the stack.\n*/\nfunction renderThrown(error) {\n try {\n const stack = error?.stack;\n if (typeof stack === \"string\" && stack.length > 0) return stack;\n const message = error?.message;\n if (typeof message === \"string\" && message.length > 0) return message;\n return String(error);\n } catch {\n return \"[unrenderable thrown value]\";\n }\n}\n/**\n* Whether an object's prototype chain represents a plain data object: `null`, or a prototype\n* whose own prototype is `null` (the realm's `Object.prototype` — which we\n* cannot compare by identity across realms). A `Date`/`Map`/class instance\n* has a longer chain and is rejected.\n*/\nfunction hasPlainPrototype(value) {\n const proto = Object.getPrototypeOf(value);\n if (proto === null) return true;\n return Object.getPrototypeOf(proto) === null;\n}\n/**\n* Copy `value` (typically from the vm realm) into plain host JSON data. Root `undefined` is\n* returned unchanged; nested `undefined` and values JSON cannot represent losslessly fail\n* with the offending path. Property accessors run normally, and a throwing read is wrapped\n* with its rendered failure.\n*\n* @param value - the realm value to materialize.\n* @param root - the path label for the root value (error messages).\n* @returns the host-realm copy (plain objects/arrays/scalars only).\n* @throws {@link MaterializeError} for unsupported values, cycles, sparse arrays, exotic\n* prototypes, or property reads that throw.\n*/\nfunction materializeFromRealm(value, root = \"value\") {\n if (value === void 0) return void 0;\n try {\n return materialize(value, root, /* @__PURE__ */ new Set());\n } catch (error) {\n if (error instanceof MaterializeError) throw error;\n throw new MaterializeError(root, `reading the value threw: ${renderThrown(error)}`);\n }\n}\nfunction materialize(value, path, seen) {\n switch (typeof value) {\n case \"boolean\":\n case \"string\": return value;\n case \"number\":\n if (!Number.isFinite(value)) throw new MaterializeError(path, \"non-finite numbers are not JSON data\");\n return value;\n case \"bigint\": throw new MaterializeError(path, \"bigints are not JSON data\");\n case \"function\": throw new MaterializeError(path, \"functions are not plain JSON data\");\n case \"symbol\": throw new MaterializeError(path, \"symbols are not plain JSON data\");\n case \"undefined\": throw new MaterializeError(path, \"undefined is not JSON data\");\n case \"object\": break;\n }\n if (value === null) return null;\n const objectValue = value;\n if (seen.has(objectValue)) throw new MaterializeError(path, \"circular references are not JSON data\");\n seen.add(objectValue);\n try {\n if (Array.isArray(objectValue)) return materializeArray(objectValue, path, seen);\n return materializeObject(objectValue, path, seen);\n } finally {\n seen.delete(objectValue);\n }\n}\nfunction materializeArray(value, path, seen) {\n const out = [];\n for (let index = 0; index < value.length; index++) {\n if (!(index in value)) throw new MaterializeError(`${path}[${index}]`, \"sparse arrays are not JSON data\");\n out.push(materialize(value[index], `${path}[${index}]`, seen));\n }\n for (const key of Object.keys(value)) {\n const index = Number(key);\n if (!Number.isInteger(index) || index < 0 || index >= value.length) throw new MaterializeError(`${path}.${key}`, \"arrays with non-index properties are not JSON data\");\n }\n if (Object.getOwnPropertySymbols(value).length > 0) throw new MaterializeError(path, \"symbol-keyed properties are not plain JSON data\");\n return out;\n}\nfunction materializeObject(value, path, seen) {\n if (!hasPlainPrototype(value)) throw new MaterializeError(path, \"only plain objects and arrays are JSON data (exotic prototype)\");\n if (Object.getOwnPropertySymbols(value).length > 0) throw new MaterializeError(path, \"symbol-keyed properties are not plain JSON data\");\n const out = {};\n for (const key of Object.keys(value)) Object.defineProperty(out, key, {\n value: materialize(value[key], `${path}.${key}`, seen),\n enumerable: true,\n writable: true,\n configurable: true\n });\n return out;\n}\n//#endregion\n//#region packages/util/brand/src/index.ts\n/**\n* Apply a compile-time string brand without changing the value.\n* @param value - string admitted by the domain that owns the target brand.\n* @returns the same string with the requested compile-time brand.\n*/\nfunction brandString(value) {\n return value;\n}\n//#endregion\n//#region packages/llm/llm/src/error.ts\n/**\n* Harness error base with a stable machine-routable code and chained cause.\n* Package errors extend it so tool results and replay can retain failure class.\n* @module @deepseek-ai/dsh-llm/error\n*/\n/**\n* Base class for all harness errors. Carries a `code` (stable, programmatic —\n* e.g. `NO_ADAPTER`, `INVALID_ARGS`, `INVARIANT`) distinct from the\n* human-readable `message`, and supports `cause` chaining via the standard\n* `ErrorOptions`. `name` defaults to the subclass constructor name.\n*/\nvar HarnessError = class extends Error {\n /** Stable machine-routable failure class (e.g. `RATE_LIMIT`); route on this, never by parsing `message`. */\n code;\n constructor(message, code, options) {\n super(message, options);\n this.code = code;\n this.name = new.target.name;\n }\n};\nnew RegExp(String.raw`(?:^|[^a-z0-9])context[\\s_-](?:length|window)[\\s_-]` + String.raw`(?:exceed(?:ed|s)?|overflow(?:ed)?|limit[\\s_-]exceeded)(?:$|[^a-z0-9])`, \"i\");\nnew RegExp(String.raw`\\b(?:request|prompt|input|messages?)\\s+(?:is\\s+|are\\s+)?` + String.raw`too\\s+(?:large|long)\\s+for\\s+(?:(?:this|the)\\s+)?` + String.raw`(?:model(?:'s)?\\s+)?context(?:\\s+window)?\\b`, \"i\");\nnew RegExp(String.raw`\\b(?:input|prompt|request|messages?)\\b.{0,40}` + String.raw`\\b(?:exceed(?:s|ed)?|overflows?|is\\s+larger\\s+than)\\b.{0,40}` + String.raw`\\b(?:the\\s+)?(?:model(?:'s)?\\s+)?context(?:\\s+(?:length|window))?\\b`, \"i\");\n//#endregion\n//#region packages/util/values/src/index.ts\n/**\n* Mark an unreachable closed-union branch.\n* @param value - impossible value; an unhandled typed variant fails at the call site.\n* @param context - optional switch-site label included in the failure message.\n* @returns never; a runtime value that escaped its type always throws.\n*/\nfunction assertNever(value, context) {\n const rendered = JSON.stringify(value) ?? String(value);\n throw new Error(`unreachable variant${context ? ` in ${context}` : \"\"}: ${rendered}`);\n}\n/** Whether a realm-owned intrinsic prototype is backed by its native constructor. */\nfunction hasIntrinsicConstructor$1(prototype, name) {\n const constructor = Object.getOwnPropertyDescriptor(prototype, \"constructor\")?.value;\n if (typeof constructor !== \"function\") return false;\n try {\n return constructor.name === name && constructor.prototype === prototype && Function.prototype.toString.call(constructor) === `function ${name}() { [native code] }`;\n } catch {\n return false;\n }\n}\n/** Whether a candidate is one realm's intrinsic `Object.prototype`. */\nfunction isIntrinsicObjectPrototype$1(value) {\n return Object.getPrototypeOf(value) === null && hasIntrinsicConstructor$1(value, \"Object\");\n}\n/** Whether an array uses one realm's intrinsic `Array.prototype`, not a subclass or forged prototype. */\nfunction hasPlainArrayPrototype$1(value) {\n const prototype = Object.getPrototypeOf(value);\n if (!Array.isArray(prototype) || !hasIntrinsicConstructor$1(prototype, \"Array\")) return false;\n const objectPrototype = Object.getPrototypeOf(prototype);\n return typeof objectPrototype === \"object\" && objectPrototype !== null && isIntrinsicObjectPrototype$1(objectPrototype);\n}\n/** Whether an object is a plain or null-prototype record from any JavaScript realm. */\nfunction hasPlainObjectPrototype(value) {\n const prototype = Object.getPrototypeOf(value);\n return prototype === null || typeof prototype === \"object\" && isIntrinsicObjectPrototype$1(prototype);\n}\n/** Return every JSON-visible object key, or reject own data JSON would discard. */\nfunction enumerableStringKeys(value) {\n const keys = Reflect.ownKeys(value);\n if (keys.some((key) => typeof key !== \"string\" || !Object.prototype.propertyIsEnumerable.call(value, key))) return void 0;\n return keys;\n}\n/** Validate lossless JSON iteratively, optionally materializing a detached snapshot. */\nfunction walkJsonValue(value, detach) {\n const ancestors = /* @__PURE__ */ new Set();\n let root;\n const assign = (destination, item) => {\n if (destination === void 0) return;\n if (destination.kind === \"root\") root = item;\n else if (destination.kind === \"array\") destination.target[destination.index] = item;\n else Object.defineProperty(destination.target, destination.key, {\n value: item,\n enumerable: true,\n configurable: true,\n writable: true\n });\n };\n const tasks = [{\n kind: \"visit\",\n value,\n ...detach ? { destination: { kind: \"root\" } } : {}\n }];\n for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {\n if (task.kind === \"leave\") {\n ancestors.delete(task.source);\n continue;\n }\n if (task.kind === \"array-item\") {\n if (!Object.prototype.hasOwnProperty.call(task.source, task.index)) return void 0;\n tasks.push({\n kind: \"visit\",\n value: task.source[task.index],\n ...task.target === void 0 ? {} : { destination: {\n kind: \"array\",\n target: task.target,\n index: task.index\n } }\n });\n continue;\n }\n if (task.kind === \"object-property\") {\n tasks.push({\n kind: \"visit\",\n value: task.source[task.key],\n ...task.target === void 0 ? {} : { destination: {\n kind: \"object\",\n target: task.target,\n key: task.key\n } }\n });\n continue;\n }\n const current = task.value;\n if (current === null) {\n assign(task.destination, null);\n continue;\n }\n if (typeof current === \"boolean\" || typeof current === \"string\") {\n assign(task.destination, current);\n continue;\n }\n if (typeof current === \"number\") {\n if (!Number.isFinite(current) || Object.is(current, -0)) return void 0;\n assign(task.destination, current);\n continue;\n }\n if (typeof current !== \"object\") return void 0;\n if (ancestors.has(current)) return void 0;\n if (Array.isArray(current)) {\n if (!hasPlainArrayPrototype$1(current)) return void 0;\n const length = current.length;\n if (Reflect.ownKeys(current).length !== length + 1) return void 0;\n const target = detach ? [] : void 0;\n if (target !== void 0) assign(task.destination, target);\n ancestors.add(current);\n tasks.push({\n kind: \"leave\",\n source: current\n });\n for (let index = length - 1; index >= 0; index--) tasks.push({\n kind: \"array-item\",\n source: current,\n index,\n ...target === void 0 ? {} : { target }\n });\n continue;\n }\n if (!hasPlainObjectPrototype(current)) return void 0;\n const keys = enumerableStringKeys(current);\n if (keys === void 0) return void 0;\n const target = detach ? {} : void 0;\n if (target !== void 0) assign(task.destination, target);\n ancestors.add(current);\n tasks.push({\n kind: \"leave\",\n source: current\n });\n for (let index = keys.length - 1; index >= 0; index--) {\n const key = keys[index];\n /* v8 ignore next -- the loop is bounded by the captured key count. */\n if (key === void 0) return void 0;\n tasks.push({\n kind: \"object-property\",\n source: current,\n key,\n ...target === void 0 ? {} : { target }\n });\n }\n }\n return detach ? root : true;\n}\n/**\n* Test the same lossless JSON rules as {@link snapshotJsonValue} without detaching the value.\n* @param value - candidate value to test.\n* @returns whether the value survives a JSON round trip without loss.\n*/\nfunction isJsonValue(value) {\n return walkJsonValue(value, false) === true;\n}\n//#endregion\n//#region packages/core/tools/src/json-schema.ts\n/**\n* Enforced JSON Schema subset shared by tool outputs, generated PTC mode\n* types, subagents, and workflows. The subset accepts any JSON root, an\n* annotation-only schema for unconstrained JSON, one scalar `type`, object\n* `properties`/`required`/boolean `additionalProperties`, array `items`,\n* type-correct scalar `enum`/`const`, and exact-one `oneOf`.\n*\n* Unsupported or misplaced keywords reject rather than being accepted without\n* enforcement. Consumers that require an object root apply\n* {@link assertObjectJsonSchema} before accepting input.\n* @module dsh-tools/json-schema\n*/\n/**\n* Thrown when a raw schema falls outside the enforced subset. `violations`\n* lists every offending path instead of stopping at the first author error.\n*/\nvar JsonSchemaError = class extends HarnessError {\n /** Individual schema violations in walk order. */\n violations;\n constructor(violations) {\n super(`unsupported JSON schema: ${violations.join(\"; \")}`, \"UNSUPPORTED_SCHEMA\");\n this.name = \"JsonSchemaError\";\n this.violations = violations;\n }\n};\nconst CONSTRAINT_KEYWORDS = new Set([\n \"type\",\n \"oneOf\",\n \"properties\",\n \"required\",\n \"additionalProperties\",\n \"items\",\n \"enum\",\n \"const\"\n]);\nconst ANNOTATION_KEYWORDS = new Set([\n \"description\",\n \"title\",\n \"default\",\n \"examples\"\n]);\nconst SCHEMA_TYPES = [\n \"object\",\n \"array\",\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"null\"\n];\n/** Whether a realm-owned intrinsic prototype is backed by its native constructor. */\nfunction hasIntrinsicConstructor(prototype, name) {\n const constructor = Object.getOwnPropertyDescriptor(prototype, \"constructor\")?.value;\n if (typeof constructor !== \"function\") return false;\n try {\n return constructor.name === name && constructor.prototype === prototype && Function.prototype.toString.call(constructor) === `function ${name}() { [native code] }`;\n } catch {\n return false;\n }\n}\n/** Whether a candidate is one realm's intrinsic `Object.prototype`. */\nfunction isIntrinsicObjectPrototype(value) {\n return Object.getPrototypeOf(value) === null && hasIntrinsicConstructor(value, \"Object\");\n}\n/**\n* Test for a realm-agnostic plain JSON record without accepting arrays or\n* exotic objects.\n* @param value - candidate record from any JavaScript realm.\n* @returns Whether the value has a plain-object prototype chain.\n*/\nfunction isPlainJsonRecord(value) {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n try {\n const prototype = Object.getPrototypeOf(value);\n return prototype === null || typeof prototype === \"object\" && isIntrinsicObjectPrototype(prototype);\n } catch {\n return false;\n }\n}\n/** Whether an array uses one realm's intrinsic `Array.prototype`. */\nfunction hasPlainArrayPrototype(value) {\n const prototype = Object.getPrototypeOf(value);\n if (!Array.isArray(prototype) || !hasIntrinsicConstructor(prototype, \"Array\")) return false;\n const objectPrototype = Object.getPrototypeOf(prototype);\n return typeof objectPrototype === \"object\" && objectPrototype !== null && isIntrinsicObjectPrototype(objectPrototype);\n}\n/** Return whether a record contains only own enumerable string keys. */\nfunction hasOnlyEnumerableStringKeys(value) {\n try {\n return Reflect.ownKeys(value).every((key) => typeof key === \"string\" && Object.prototype.propertyIsEnumerable.call(value, key));\n } catch {\n return false;\n }\n}\n/**\n* Test for an ordinary schema record whose keys survive JSON projection.\n* @param value - candidate record from any JavaScript realm.\n* @returns Whether the record has an intrinsic prototype and only own enumerable string keys.\n*/\nfunction isJsonSchemaRecord(value) {\n return isPlainJsonRecord(value) && hasOnlyEnumerableStringKeys(value);\n}\n/**\n* Test for a dense ordinary array with no JSON-invisible decorations.\n* @param value - candidate array from any JavaScript realm.\n* @returns Whether the array is intrinsic, dense, and undecorated.\n*/\nfunction isPlainJsonArray(value) {\n if (!Array.isArray(value)) return false;\n try {\n if (!hasPlainArrayPrototype(value) || Reflect.ownKeys(value).length !== value.length + 1) return false;\n for (let index = 0; index < value.length; index++) if (!Object.hasOwn(value, index)) return false;\n return true;\n } catch {\n return false;\n }\n}\n/** Lossless finite JSON number, excluding negative zero. */\nfunction isJsonNumber(value) {\n return typeof value === \"number\" && Number.isFinite(value) && !Object.is(value, -0);\n}\n/** Whether a scalar is valid for one declared schema type. */\nfunction scalarMatches(type, value) {\n switch (type) {\n case \"string\": return typeof value === \"string\";\n case \"number\": return isJsonNumber(value);\n case \"integer\": return isJsonNumber(value) && Number.isInteger(value);\n case \"boolean\": return typeof value === \"boolean\";\n case \"null\": return value === null;\n /* v8 ignore next -- JsonSchemaScalarType is closed; this retains compile-time exhaustiveness. */\n default: return assertNever(type, \"JsonSchemaType\");\n }\n}\n/** Keywords that are invalid beside `oneOf`. */\nconst ONE_OF_SIBLING_KEYWORDS = [\n \"properties\",\n \"required\",\n \"additionalProperties\",\n \"items\",\n \"enum\",\n \"const\"\n];\n/** Validate object-only fields after its property schemas have been visited. */\nfunction checkObjectSchemaTail(node, path, properties, violations) {\n const hasRequired = Object.hasOwn(node, \"required\");\n const required = hasRequired ? node.required : void 0;\n if (hasRequired) if (!isPlainJsonArray(required) || required.some((entry) => typeof entry !== \"string\")) violations.push(`${path}.required must be an array of strings`);\n else {\n const declared = isJsonSchemaRecord(properties) ? properties : {};\n for (const key of required) if (!Object.hasOwn(declared, key)) violations.push(`${path}.required names \"${key}\" which is not in properties`);\n }\n if (Object.hasOwn(node, \"additionalProperties\") && typeof node.additionalProperties !== \"boolean\") violations.push(`${path}.additionalProperties must be a boolean`);\n}\n/** Collect every violation for one raw schema tree without using the JavaScript call stack. */\nfunction checkSchemaNode(root, rootPath, violations, seen) {\n const tasks = [{\n kind: \"enter\",\n node: root,\n path: rootPath\n }];\n for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {\n if (task.kind === \"leave\") {\n seen.delete(task.node);\n continue;\n }\n if (task.kind === \"one-of-tail\") {\n for (const key of ONE_OF_SIBLING_KEYWORDS) if (Object.hasOwn(task.node, key)) violations.push(`${task.path}.${key} is not supported beside oneOf`);\n continue;\n }\n if (task.kind === \"object-tail\") {\n checkObjectSchemaTail(task.node, task.path, task.properties, violations);\n continue;\n }\n const { node, path } = task;\n if (!isJsonSchemaRecord(node)) {\n violations.push(`${path} must be a schema object`);\n continue;\n }\n if (seen.has(node)) {\n violations.push(`${path} is circular`);\n continue;\n }\n seen.add(node);\n tasks.push({\n kind: \"leave\",\n node\n });\n for (const key of Object.keys(node)) {\n if (CONSTRAINT_KEYWORDS.has(key)) continue;\n if (ANNOTATION_KEYWORDS.has(key)) {\n try {\n if (!isJsonValue(node[key])) violations.push(`${path}.${key} annotation must be lossless JSON data`);\n } catch {\n violations.push(`${path}.${key} annotation must be lossless JSON data`);\n }\n continue;\n }\n violations.push(`${path}.${key} is not a supported keyword (subset: type/oneOf/properties/required/additionalProperties/items/enum/const + annotations)`);\n }\n if (Object.hasOwn(node, \"description\") && typeof node.description !== \"string\") violations.push(`${path}.description must be a string`);\n if (Object.hasOwn(node, \"title\") && typeof node.title !== \"string\") violations.push(`${path}.title must be a string`);\n const hasType = Object.hasOwn(node, \"type\");\n const hasOneOf = Object.hasOwn(node, \"oneOf\");\n if (hasType && hasOneOf) {\n violations.push(`${path} cannot declare both type and oneOf`);\n continue;\n }\n if (!hasType && !hasOneOf) {\n for (const key of ONE_OF_SIBLING_KEYWORDS) if (Object.hasOwn(node, key)) violations.push(`${path}.${key} requires type or oneOf`);\n continue;\n }\n if (hasOneOf) {\n const oneOf = node.oneOf;\n tasks.push({\n kind: \"one-of-tail\",\n node,\n path\n });\n if (!isPlainJsonArray(oneOf) || oneOf.length < 2) violations.push(`${path}.oneOf must be an array of at least two schemas`);\n else for (let index = oneOf.length - 1; index >= 0; index--) tasks.push({\n kind: \"enter\",\n node: oneOf[index],\n path: `${path}.oneOf[${index}]`\n });\n continue;\n }\n const type = node.type;\n if (typeof type !== \"string\" || !SCHEMA_TYPES.includes(type)) {\n violations.push(Array.isArray(type) ? `${path}.type must be a single type string (type arrays are not supported)` : `${path}.type must be one of ${SCHEMA_TYPES.join(\"/\")}`);\n continue;\n }\n const schemaType = type;\n for (const [key, types] of Object.entries({\n properties: [\"object\"],\n required: [\"object\"],\n additionalProperties: [\"object\"],\n items: [\"array\"],\n enum: [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"null\"\n ],\n const: [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"null\"\n ]\n })) if (Object.hasOwn(node, key) && !types.includes(schemaType)) violations.push(`${path}.${key} is not supported on type \"${schemaType}\"`);\n switch (schemaType) {\n case \"object\": {\n const properties = Object.hasOwn(node, \"properties\") ? node.properties : void 0;\n tasks.push({\n kind: \"object-tail\",\n node,\n path,\n properties\n });\n if (Object.hasOwn(node, \"properties\")) if (!isJsonSchemaRecord(properties)) violations.push(`${path}.properties must be an object of schemas`);\n else {\n const entries = Object.entries(properties);\n for (let index = entries.length - 1; index >= 0; index--) {\n const entry = entries[index];\n /* v8 ignore next -- the loop is bounded by the captured entry count. */\n if (entry === void 0) continue;\n tasks.push({\n kind: \"enter\",\n node: entry[1],\n path: `${path}.properties.${entry[0]}`\n });\n }\n }\n break;\n }\n case \"array\":\n if (Object.hasOwn(node, \"items\")) tasks.push({\n kind: \"enter\",\n node: node.items,\n path: `${path}.items`\n });\n break;\n case \"string\":\n case \"number\":\n case \"integer\":\n case \"boolean\":\n case \"null\": {\n const hasEnum = Object.hasOwn(node, \"enum\");\n const allowed = hasEnum ? node.enum : void 0;\n const enumValid = isPlainJsonArray(allowed) && allowed.length > 0 && allowed.every((entry) => scalarMatches(schemaType, entry));\n if (hasEnum && !enumValid) violations.push(`${path}.enum must be a non-empty array of ${schemaType} values`);\n const hasConst = Object.hasOwn(node, \"const\");\n const declaredConst = hasConst ? node.const : void 0;\n const constValid = scalarMatches(schemaType, declaredConst);\n if (hasConst) {\n if (!constValid) violations.push(`${path}.const must be a ${schemaType} value`);\n else if (enumValid && !allowed.includes(declaredConst)) violations.push(`${path}.const must be one of ${path}.enum when both are declared`);\n }\n break;\n }\n /* v8 ignore next -- schemaType was narrowed from the closed SCHEMA_TYPES table above. */\n default: assertNever(schemaType, \"JsonSchemaType\");\n }\n }\n}\n/**\n* Assert the enforced subset plus the object-root constraint retained by\n* subagent and workflow structured outputs.\n* @param schema - untrusted caller-supplied schema.\n* @returns Assertion that the schema belongs to the supported subset and has an object root.\n*/\nfunction assertObjectJsonSchema(schema) {\n const violations = [];\n checkSchemaNode(schema, \"schema\", violations, /* @__PURE__ */ new Set());\n if (violations.length === 0 && (!isJsonSchemaRecord(schema) || !Object.hasOwn(schema, \"type\") || schema.type !== \"object\")) violations.push(\"schema.type must be \\\"object\\\" (structured output is object-rooted)\");\n if (violations.length > 0) throw new JsonSchemaError(violations);\n}\n//#endregion\n//#region packages/workflow/workflow/src/index.ts\n/**\n* Typed error for workflow-seam failures. Extends {@link HarnessError}, so the\n* `code` is machine-routable taxonomy. `fatal` drives the combinator\n* discipline: `parallel()`/`pipeline()` re-throw a fatal error (a typo'd\n* option or a tripped cap must kill the script loudly), and reserve the\n* per-item `null` for child-run failures and ordinary in-stage script errors.\n* Every {@link WorkflowErrorCode} is fatal; the flag exists so the\n* distinction is explicit at every catch site rather than implied.\n*/\nvar WorkflowError = class extends HarnessError {\n /** Whether combinators must propagate this error instead of nulling the item. */\n fatal;\n constructor(message, code, options) {\n super(message, code, options);\n this.name = \"WorkflowError\";\n this.fatal = options?.fatal ?? true;\n }\n};\n/**\n* Whether combinators must re-throw `error` instead of mapping the item to `null`.\n* @param error - any thrown value; fatality is host `instanceof` (unforgeable from a script realm).\n* @returns true iff `error` is a {@link WorkflowError} whose `fatal` flag is set.\n*/\nfunction isFatalWorkflowError(error) {\n return error instanceof WorkflowError && error.fatal;\n}\n//#endregion\n//#region packages/workflow/workflow-ptc/src/runtime.ts\n/**\n* Workflow VM hooks, child callbacks, ordinary concurrency limits and result serialization.\n* PTC owns process confinement and cancellation. Fatal hook and provider failures propagate\n* through combinators; ordinary child failures and stage errors become per-item nulls.\n* @module @deepseek-ai/dsh-workflow-ptc/runtime\n*/\n/** The `agent()` options the script may pass; everything else rejects loud. */\nconst SUPPORTED_AGENT_OPTIONS = new Set([\n \"label\",\n \"phase\",\n \"schema\",\n \"provider\",\n \"model\"\n]);\n/** Deferred Claude Code options we name explicitly in the rejection message. */\nconst DEFERRED_AGENT_OPTIONS = new Set([\n \"effort\",\n \"isolation\",\n \"agentType\"\n]);\n/** Flatten a child's final output blocks to text (the non-schema `agent()` result). */\nfunction outputText(blocks) {\n return blocks.filter((block) => block.type === \"text\").map((block) => block.text).join(\"\");\n}\n/** A short display label derived from the prompt when the script passes none. */\nfunction defaultLabel(prompt) {\n const newline = prompt.indexOf(\"\\n\");\n const line = newline === -1 ? prompt : prompt.slice(0, newline);\n return line.length <= 48 ? line : `${line.slice(0, 47)}…`;\n}\n/**\n* One script execution inside the confined Node process. The host owns\n* cancellation and cleanup of any dropped child work.\n*/\nvar WorkflowExecution = class {\n limits;\n observer;\n children;\n /** 1-based count of `agent()` calls started (the `agentsStarted` result field). */\n started = 0;\n activeSlots = 0;\n slotWaiters = [];\n currentPhase;\n context;\n compiled;\n constructor(meta, body, args, limits, observer, children) {\n this.limits = limits;\n this.observer = observer;\n this.children = children;\n try {\n this.compiled = new vm.Script(`(async () => {\\n${body}\\n})()`, {\n filename: `workflow:${meta.name}`,\n lineOffset: -1\n });\n } catch (error) {\n throw new WorkflowError(`workflow script does not parse: ${String(error)}`, \"SCRIPT_PARSE\", { cause: error });\n }\n this.context = vm.createContext({}, { name: `workflow:${meta.name}` });\n const globals = {\n agent: (prompt, opts) => this.contain(this.agent(prompt, opts)),\n parallel: (thunks) => this.contain(this.parallel(thunks)),\n pipeline: (items, ...stages) => this.contain(this.pipeline(items, stages)),\n phase: (title) => {\n this.phase(title);\n },\n log: (message) => {\n this.log(message);\n },\n args\n };\n for (const [key, value] of Object.entries(globals)) this.context[key] = typeof value === \"function\" ? Object.freeze(value) : value;\n }\n /**\n * Run the script and materialize its JSON return value.\n * @returns A completed or error result; script failures never reject.\n */\n async drive() {\n try {\n const scriptPromise = this.compiled.runInContext(this.context, { timeout: this.limits.syncTimeoutMs });\n const raw = await this.contain(Promise.resolve(scriptPromise));\n return {\n value: raw === void 0 ? null : this.materializeResult(raw),\n stopReason: \"completed\",\n agentsStarted: this.started\n };\n } catch (error) {\n return {\n value: null,\n stopReason: \"error\",\n error: renderThrown(error),\n agentsStarted: this.started\n };\n }\n }\n /**\n * Attach a no-op rejection consumer WITHOUT changing what the caller\n * receives: if the script drops the promise, a host rejection cannot become\n * an unhandled rejection that kills the process; if\n * the script does await it, it still observes the rejection.\n */\n contain(promise) {\n promise.catch(() => {});\n return promise;\n }\n /** Materialize the script's return value; violations become RESULT_UNSERIALIZABLE. */\n materializeResult(raw) {\n try {\n return materializeFromRealm(raw, \"workflow result\");\n } catch (error) {\n /* v8 ignore next -- defensive rethrow arm: materializeFromRealm only throws MaterializeError */\n if (!(error instanceof MaterializeError)) throw error;\n throw new WorkflowError(`the workflow's return value is not plain JSON data — ${error.message}. Return only JSON-serializable objects/arrays/scalars.`, \"RESULT_UNSERIALIZABLE\", { cause: error });\n }\n }\n /** Acquire one concurrency slot in FIFO order. */\n acquireSlot() {\n if (this.activeSlots < this.limits.maxConcurrentAgents) {\n this.activeSlots += 1;\n return Promise.resolve();\n }\n return new Promise((resolve) => {\n this.slotWaiters.push(() => {\n this.activeSlots += 1;\n resolve();\n });\n });\n }\n releaseSlot() {\n this.activeSlots -= 1;\n const next = this.slotWaiters.shift();\n if (next) next();\n }\n /** The `agent(prompt, opts)` hook. */\n async agent(rawPrompt, rawOpts) {\n if (typeof rawPrompt !== \"string\" || rawPrompt.length === 0) throw new WorkflowError(\"agent() requires a non-empty prompt string\", \"INVALID_ARGUMENT\");\n const opts = this.readAgentOptions(rawOpts);\n if (this.started >= this.limits.maxTotalAgents) throw new WorkflowError(`this run reached its total agent cap (${this.limits.maxTotalAgents}) — a runaway-loop backstop; raise the applicable maxTotalAgents limit if the scale is intentional`, \"AGENT_CAP\");\n this.started += 1;\n const seq = this.started;\n const label = opts.label ?? defaultLabel(rawPrompt);\n const phase = opts.phase ?? this.currentPhase;\n await this.acquireSlot();\n try {\n let run;\n try {\n run = await this.children.startAgent({\n prompt: rawPrompt,\n ...opts.schema !== void 0 ? { schema: opts.schema } : {},\n ...opts.provider !== void 0 ? { provider: opts.provider } : {},\n ...opts.model !== void 0 ? { model: opts.model } : {}\n });\n } catch (error) {\n throw new WorkflowError(`agent() could not start a child: ${renderThrown(error)}`, \"AGENT_START\", { cause: error });\n }\n const info = {\n seq,\n label,\n ...phase !== void 0 ? { phase } : {},\n childId: brandString(run.id)\n };\n this.observer.agentStart(info);\n try {\n let result;\n try {\n result = await run.result;\n } catch (error) {\n this.observer.agentEnd({\n ...info,\n outcome: \"failed\"\n });\n throw new WorkflowError(`child agent run failed: ${renderThrown(error)}`, \"AGENT_RESULT\", { cause: error });\n }\n if (result.stopReason === \"completed\") {\n if (opts.schema !== void 0) {\n if (result.structured === void 0) {\n this.observer.agentEnd({\n ...info,\n outcome: \"failed\"\n });\n return null;\n }\n this.observer.agentEnd({\n ...info,\n outcome: \"completed\"\n });\n return result.structured;\n }\n this.observer.agentEnd({\n ...info,\n outcome: \"completed\"\n });\n return outputText(result.output);\n }\n this.observer.agentEnd({\n ...info,\n outcome: \"failed\"\n });\n return null;\n } finally {\n await run.dispose();\n }\n } finally {\n this.releaseSlot();\n }\n }\n /** Materialize + validate the `agent()` options bag from the realm. */\n readAgentOptions(rawOpts) {\n if (rawOpts === void 0) return {};\n let opts;\n try {\n opts = materializeFromRealm(rawOpts, \"agent() options\");\n } catch (error) {\n /* v8 ignore next -- defensive rethrow arm: materializeFromRealm only throws MaterializeError */\n if (!(error instanceof MaterializeError)) throw error;\n throw new WorkflowError(`agent() options must be plain JSON data — ${error.message}`, \"INVALID_ARGUMENT\", { cause: error });\n }\n if (typeof opts !== \"object\" || opts === null || Array.isArray(opts)) throw new WorkflowError(\"agent() options must be an object\", \"INVALID_ARGUMENT\");\n const record = opts;\n for (const key of Object.keys(record)) {\n if (SUPPORTED_AGENT_OPTIONS.has(key)) continue;\n if (DEFERRED_AGENT_OPTIONS.has(key)) throw new WorkflowError(`agent() option \"${key}\" is deferred and not supported by this engine (supported: label, phase, schema, provider, model)`, \"UNSUPPORTED_OPTION\");\n throw new WorkflowError(`agent() option \"${key}\" is not recognized (supported: label, phase, schema, provider, model)`, \"UNSUPPORTED_OPTION\");\n }\n for (const key of [\n \"label\",\n \"phase\",\n \"provider\",\n \"model\"\n ]) if (record[key] !== void 0 && typeof record[key] !== \"string\") throw new WorkflowError(`agent() option \"${key}\" must be a string`, \"INVALID_ARGUMENT\");\n let schema;\n if (record.schema !== void 0) try {\n assertObjectJsonSchema(record.schema);\n schema = record.schema;\n } catch (error) {\n /* v8 ignore next -- defensive rethrow arm: assertObjectJsonSchema only throws JsonSchemaError */\n if (!(error instanceof JsonSchemaError)) throw error;\n throw new WorkflowError(`agent() schema is outside the supported subset — ${error.message}`, \"UNSUPPORTED_SCHEMA\", { cause: error });\n }\n return {\n ...record.label !== void 0 ? { label: record.label } : {},\n ...record.phase !== void 0 ? { phase: record.phase } : {},\n ...record.provider !== void 0 ? { provider: record.provider } : {},\n ...record.model !== void 0 ? { model: record.model } : {},\n ...schema !== void 0 ? { schema } : {}\n };\n }\n /** The `parallel(thunks)` hook: each thunk caught → `null`; fatal errors propagate. */\n async parallel(rawThunks) {\n if (!Array.isArray(rawThunks)) throw new WorkflowError(\"parallel() requires an array of zero-argument functions\", \"INVALID_ARGUMENT\");\n this.assertItemCap(rawThunks.length, \"parallel()\");\n const thunks = rawThunks.map((thunk, index) => {\n if (typeof thunk !== \"function\") throw new WorkflowError(`parallel() item ${index} is not a function`, \"INVALID_ARGUMENT\");\n return thunk;\n });\n return Promise.all(thunks.map(async (thunk) => {\n try {\n return await thunk();\n } catch (error) {\n if (isFatalWorkflowError(error)) throw error;\n return null;\n }\n }));\n }\n /** The `pipeline(items, ...stages)` hook: per-item stage chains, NO cross-stage barrier. */\n async pipeline(rawItems, rawStages) {\n if (!Array.isArray(rawItems)) throw new WorkflowError(\"pipeline() requires an items array\", \"INVALID_ARGUMENT\");\n this.assertItemCap(rawItems.length, \"pipeline()\");\n if (rawStages.length === 0) throw new WorkflowError(\"pipeline() requires at least one stage function\", \"INVALID_ARGUMENT\");\n const stages = rawStages.map((stage, index) => {\n if (typeof stage !== \"function\") throw new WorkflowError(`pipeline() stage ${index} is not a function`, \"INVALID_ARGUMENT\");\n return stage;\n });\n return Promise.all(rawItems.map(async (item, index) => {\n let value = item;\n try {\n for (const stage of stages) value = await stage(value, item, index);\n return value;\n } catch (error) {\n if (isFatalWorkflowError(error)) throw error;\n return null;\n }\n }));\n }\n assertItemCap(length, hook) {\n if (length > this.limits.maxItemsPerCall) throw new WorkflowError(`${hook} received ${length} items — over the per-call cap (${this.limits.maxItemsPerCall}); split the work or raise maxItemsPerCall in the engine config`, \"ITEM_CAP\");\n }\n /** The `phase(title)` hook: sets the current label for subsequent `agent()` calls and notifies observers. */\n phase(title) {\n if (typeof title !== \"string\" || title.length === 0) throw new WorkflowError(\"phase() requires a non-empty title string\", \"INVALID_ARGUMENT\");\n this.currentPhase = title;\n this.observer.phase(title);\n }\n /** The `log(message)` hook: narration to observers. */\n log(message) {\n if (typeof message !== \"string\") throw new WorkflowError(\"log() requires a message string\", \"INVALID_ARGUMENT\");\n this.observer.log(message);\n }\n};\n//#endregion\n//#region packages/workflow/workflow-ptc/src/guest.ts\n/**\n* Run a workflow with one progress batch in flight. Drain progress before child\n* disposal and the terminal result; PTC and the host own cancellation and cleanup.\n* @param host - JSON callbacks owned by this workflow run.\n* @returns The script result after progress delivery; initialization failures reject.\n*/\nasync function runWorkflowGuest(host) {\n const init = await host.begin({});\n let queued = [];\n let inFlight;\n let progressError;\n const flush = () => {\n if (inFlight !== void 0 || queued.length === 0) return;\n const batch = queued;\n queued = [];\n inFlight = host.progress(batch).then(() => {\n inFlight = void 0;\n flush();\n }, (error) => {\n progressError = renderThrown(error);\n queued = [];\n inFlight = void 0;\n });\n };\n const send = (event) => {\n if (progressError !== void 0) return;\n queued.push(event);\n flush();\n };\n const drain = async () => {\n while (inFlight !== void 0) await inFlight;\n };\n const result = await new WorkflowExecution(init.meta, init.body, init.args, init.limits, {\n phase: (title) => {\n send({\n type: \"phase\",\n title\n });\n },\n log: (message) => {\n send({\n type: \"log\",\n message\n });\n },\n agentStart: (info) => {\n send({\n type: \"agent-start\",\n info\n });\n },\n agentEnd: (info) => {\n send({\n type: \"agent-end\",\n info\n });\n }\n }, { async startAgent(request) {\n const { callId, childId } = await host.startChild(request);\n const result = host.childResult({ callId });\n result.catch(() => {});\n return {\n id: childId,\n result,\n async dispose() {\n await drain();\n await host.disposeChild({ callId });\n }\n };\n } }).drive();\n await drain();\n return progressError === void 0 ? result : {\n value: null,\n stopReason: \"error\",\n error: progressError,\n agentsStarted: result.agentsStarted\n };\n}\n//#endregion\nexport { runWorkflowGuest };\n//# sourceURL=dsh-workflow-guest.js\n";
12
+ const WORKFLOW_GUEST_SOURCE = "import * as vm from \"node:vm\";\n//#region packages/workflow/workflow-ptc/src/realm.ts\n/**\n* Materializes script VM values as plain JSON and renders thrown values.\n* Getters and proxy traps may execute inside the confined Node process;\n* process isolation and cancellation belong to PTC, not the VM.\n* @module @deepseek-ai/dsh-workflow-ptc/realm\n*/\n/** Thrown by {@link materializeFromRealm}; the caller wraps it into the right `WorkflowError` code. */\nvar MaterializeError = class extends Error {\n path;\n reason;\n constructor(path, reason) {\n super(`${path}: ${reason}`);\n this.path = path;\n this.reason = reason;\n this.name = \"MaterializeError\";\n }\n};\n/**\n* Render a thrown value to failure text without ever throwing: prefer the\n* `stack` (host or realm — a realm error's `stack` is a plain string read),\n* fall back to `message`, then `String()`. Reading those properties MAY run\n* script code; if that code itself throws, a fixed label is returned instead.\n* @param error - any value thrown in the host or guest realm.\n* @returns human-readable text for the failure report; prefers the stack.\n*/\nfunction renderThrown(error) {\n try {\n const stack = error?.stack;\n if (typeof stack === \"string\" && stack.length > 0) return stack;\n const message = error?.message;\n if (typeof message === \"string\" && message.length > 0) return message;\n return String(error);\n } catch {\n return \"[unrenderable thrown value]\";\n }\n}\n/**\n* Whether an object's prototype chain represents a plain data object: `null`, or a prototype\n* whose own prototype is `null` (the realm's `Object.prototype` — which we\n* cannot compare by identity across realms). A `Date`/`Map`/class instance\n* has a longer chain and is rejected.\n*/\nfunction hasPlainPrototype(value) {\n const proto = Object.getPrototypeOf(value);\n if (proto === null) return true;\n return Object.getPrototypeOf(proto) === null;\n}\n/**\n* Copy `value` (typically from the vm realm) into plain host JSON data. Root `undefined` is\n* returned unchanged; nested `undefined` and values JSON cannot represent losslessly fail\n* with the offending path. Property accessors run normally, and a throwing read is wrapped\n* with its rendered failure.\n*\n* @param value - the realm value to materialize.\n* @param root - the path label for the root value (error messages).\n* @returns the host-realm copy (plain objects/arrays/scalars only).\n* @throws {@link MaterializeError} for unsupported values, cycles, sparse arrays, exotic\n* prototypes, or property reads that throw.\n*/\nfunction materializeFromRealm(value, root = \"value\") {\n if (value === void 0) return void 0;\n try {\n return materialize(value, root, /* @__PURE__ */ new Set());\n } catch (error) {\n if (error instanceof MaterializeError) throw error;\n throw new MaterializeError(root, `reading the value threw: ${renderThrown(error)}`);\n }\n}\nfunction materialize(value, path, seen) {\n switch (typeof value) {\n case \"boolean\":\n case \"string\": return value;\n case \"number\":\n if (!Number.isFinite(value)) throw new MaterializeError(path, \"non-finite numbers are not JSON data\");\n return value;\n case \"bigint\": throw new MaterializeError(path, \"bigints are not JSON data\");\n case \"function\": throw new MaterializeError(path, \"functions are not plain JSON data\");\n case \"symbol\": throw new MaterializeError(path, \"symbols are not plain JSON data\");\n case \"undefined\": throw new MaterializeError(path, \"undefined is not JSON data\");\n case \"object\": break;\n }\n if (value === null) return null;\n const objectValue = value;\n if (seen.has(objectValue)) throw new MaterializeError(path, \"circular references are not JSON data\");\n seen.add(objectValue);\n try {\n if (Array.isArray(objectValue)) return materializeArray(objectValue, path, seen);\n return materializeObject(objectValue, path, seen);\n } finally {\n seen.delete(objectValue);\n }\n}\nfunction materializeArray(value, path, seen) {\n const out = [];\n for (let index = 0; index < value.length; index++) {\n if (!(index in value)) throw new MaterializeError(`${path}[${index}]`, \"sparse arrays are not JSON data\");\n out.push(materialize(value[index], `${path}[${index}]`, seen));\n }\n for (const key of Object.keys(value)) {\n const index = Number(key);\n if (!Number.isInteger(index) || index < 0 || index >= value.length) throw new MaterializeError(`${path}.${key}`, \"arrays with non-index properties are not JSON data\");\n }\n if (Object.getOwnPropertySymbols(value).length > 0) throw new MaterializeError(path, \"symbol-keyed properties are not plain JSON data\");\n return out;\n}\nfunction materializeObject(value, path, seen) {\n if (!hasPlainPrototype(value)) throw new MaterializeError(path, \"only plain objects and arrays are JSON data (exotic prototype)\");\n if (Object.getOwnPropertySymbols(value).length > 0) throw new MaterializeError(path, \"symbol-keyed properties are not plain JSON data\");\n const out = {};\n for (const key of Object.keys(value)) Object.defineProperty(out, key, {\n value: materialize(value[key], `${path}.${key}`, seen),\n enumerable: true,\n writable: true,\n configurable: true\n });\n return out;\n}\n//#endregion\n//#region packages/util/brand/src/index.ts\n/**\n* Apply a compile-time string brand without changing the value.\n* @param value - string admitted by the domain that owns the target brand.\n* @returns the same string with the requested compile-time brand.\n*/\nfunction brandString(value) {\n return value;\n}\n//#endregion\n//#region packages/llm/llm/src/error.ts\n/**\n* Harness error base with a stable machine-routable code and chained cause.\n* Package errors extend it so tool results and replay can retain failure class.\n* @module @deepseek-ai/dsh-llm/error\n*/\n/**\n* Base class for all harness errors. Carries a `code` (stable, programmatic —\n* e.g. `NO_ADAPTER`, `INVALID_ARGS`, `INVARIANT`) distinct from the\n* human-readable `message`, and supports `cause` chaining via the standard\n* `ErrorOptions`. `name` defaults to the subclass constructor name.\n*/\nvar HarnessError = class extends Error {\n /** Stable machine-routable failure class (e.g. `RATE_LIMIT`); route on this, never by parsing `message`. */\n code;\n constructor(message, code, options) {\n super(message, options);\n this.code = code;\n this.name = new.target.name;\n }\n};\nnew RegExp(String.raw`(?:^|[^a-z0-9])context[\\s_-](?:length|window)[\\s_-]` + String.raw`(?:exceed(?:ed|s)?|overflow(?:ed)?|limit[\\s_-]exceeded)(?:$|[^a-z0-9])`, \"i\");\nnew RegExp(String.raw`\\b(?:request|prompt|input|messages?)\\s+(?:is\\s+|are\\s+)?` + String.raw`too\\s+(?:large|long)\\s+for\\s+(?:(?:this|the)\\s+)?` + String.raw`(?:model(?:'s)?\\s+)?context(?:\\s+window)?\\b`, \"i\");\nnew RegExp(String.raw`\\b(?:input|prompt|request|messages?)\\b.{0,40}` + String.raw`\\b(?:exceed(?:s|ed)?|overflows?|is\\s+larger\\s+than)\\b.{0,40}` + String.raw`\\b(?:the\\s+)?(?:model(?:'s)?\\s+)?context(?:\\s+(?:length|window))?\\b`, \"i\");\n//#endregion\n//#region packages/util/values/src/index.ts\n/**\n* Mark an unreachable closed-union branch.\n* @param value - impossible value; an unhandled typed variant fails at the call site.\n* @param context - optional switch-site label included in the failure message.\n* @returns never; a runtime value that escaped its type always throws.\n*/\nfunction assertNever(value, context) {\n const rendered = JSON.stringify(value) ?? String(value);\n throw new Error(`unreachable variant${context ? ` in ${context}` : \"\"}: ${rendered}`);\n}\n/** Whether a realm-owned intrinsic prototype has a native constructor matching this engine's representation. */\nfunction hasIntrinsicConstructor$1(prototype, name) {\n const constructor = Object.getOwnPropertyDescriptor(prototype, \"constructor\")?.value;\n if (typeof constructor !== \"function\") return false;\n try {\n return constructor.name === name && constructor.prototype === prototype && Function.prototype.toString.call(constructor) === Function.prototype.toString.call(name === \"Array\" ? Array : Object);\n } catch {\n return false;\n }\n}\n/** Whether a candidate is one realm's intrinsic `Object.prototype`. */\nfunction isIntrinsicObjectPrototype$1(value) {\n return Object.getPrototypeOf(value) === null && hasIntrinsicConstructor$1(value, \"Object\");\n}\n/** Whether an array uses one realm's intrinsic `Array.prototype`, not a subclass or forged prototype. */\nfunction hasPlainArrayPrototype$1(value) {\n const prototype = Object.getPrototypeOf(value);\n if (!Array.isArray(prototype) || !hasIntrinsicConstructor$1(prototype, \"Array\")) return false;\n const objectPrototype = Object.getPrototypeOf(prototype);\n return typeof objectPrototype === \"object\" && objectPrototype !== null && isIntrinsicObjectPrototype$1(objectPrototype);\n}\n/** Whether an object is a plain or null-prototype record from any JavaScript realm. */\nfunction hasPlainObjectPrototype(value) {\n const prototype = Object.getPrototypeOf(value);\n return prototype === null || typeof prototype === \"object\" && isIntrinsicObjectPrototype$1(prototype);\n}\n/** Return every JSON-visible object key, or reject own data JSON would discard. */\nfunction enumerableStringKeys(value) {\n const keys = Reflect.ownKeys(value);\n if (keys.some((key) => typeof key !== \"string\" || !Object.prototype.propertyIsEnumerable.call(value, key))) return void 0;\n return keys;\n}\n/** Validate lossless JSON iteratively, optionally materializing a detached snapshot. */\nfunction walkJsonValue(value, detach) {\n const ancestors = /* @__PURE__ */ new Set();\n let root;\n const assign = (destination, item) => {\n if (destination === void 0) return;\n if (destination.kind === \"root\") root = item;\n else if (destination.kind === \"array\") destination.target[destination.index] = item;\n else Object.defineProperty(destination.target, destination.key, {\n value: item,\n enumerable: true,\n configurable: true,\n writable: true\n });\n };\n const tasks = [{\n kind: \"visit\",\n value,\n ...detach ? { destination: { kind: \"root\" } } : {}\n }];\n for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {\n if (task.kind === \"leave\") {\n ancestors.delete(task.source);\n continue;\n }\n if (task.kind === \"array-item\") {\n if (!Object.prototype.hasOwnProperty.call(task.source, task.index)) return void 0;\n tasks.push({\n kind: \"visit\",\n value: task.source[task.index],\n ...task.target === void 0 ? {} : { destination: {\n kind: \"array\",\n target: task.target,\n index: task.index\n } }\n });\n continue;\n }\n if (task.kind === \"object-property\") {\n tasks.push({\n kind: \"visit\",\n value: task.source[task.key],\n ...task.target === void 0 ? {} : { destination: {\n kind: \"object\",\n target: task.target,\n key: task.key\n } }\n });\n continue;\n }\n const current = task.value;\n if (current === null) {\n assign(task.destination, null);\n continue;\n }\n if (typeof current === \"boolean\" || typeof current === \"string\") {\n assign(task.destination, current);\n continue;\n }\n if (typeof current === \"number\") {\n if (!Number.isFinite(current) || Object.is(current, -0)) return void 0;\n assign(task.destination, current);\n continue;\n }\n if (typeof current !== \"object\") return void 0;\n if (ancestors.has(current)) return void 0;\n if (Array.isArray(current)) {\n if (!hasPlainArrayPrototype$1(current)) return void 0;\n const length = current.length;\n if (Reflect.ownKeys(current).length !== length + 1) return void 0;\n const target = detach ? [] : void 0;\n if (target !== void 0) assign(task.destination, target);\n ancestors.add(current);\n tasks.push({\n kind: \"leave\",\n source: current\n });\n for (let index = length - 1; index >= 0; index--) tasks.push({\n kind: \"array-item\",\n source: current,\n index,\n ...target === void 0 ? {} : { target }\n });\n continue;\n }\n if (!hasPlainObjectPrototype(current)) return void 0;\n const keys = enumerableStringKeys(current);\n if (keys === void 0) return void 0;\n const target = detach ? {} : void 0;\n if (target !== void 0) assign(task.destination, target);\n ancestors.add(current);\n tasks.push({\n kind: \"leave\",\n source: current\n });\n for (let index = keys.length - 1; index >= 0; index--) {\n const key = keys[index];\n /* v8 ignore next -- the loop is bounded by the captured key count. */\n if (key === void 0) return void 0;\n tasks.push({\n kind: \"object-property\",\n source: current,\n key,\n ...target === void 0 ? {} : { target }\n });\n }\n }\n return detach ? root : true;\n}\n/**\n* Test the same lossless JSON rules as {@link snapshotJsonValue} without detaching the value.\n* @param value - candidate value to test.\n* @returns whether the value survives a JSON round trip without loss.\n*/\nfunction isJsonValue(value) {\n return walkJsonValue(value, false) === true;\n}\n//#endregion\n//#region packages/core/tools/src/json-schema.ts\n/**\n* Enforced JSON Schema subset shared by tool outputs, generated PTC mode\n* types, subagents, and workflows. The subset accepts any JSON root, an\n* annotation-only schema for unconstrained JSON, one scalar `type`, object\n* `properties`/`required`/boolean `additionalProperties`, array `items`,\n* type-correct scalar `enum`/`const`, and exact-one `oneOf`.\n*\n* Unsupported or misplaced keywords reject rather than being accepted without\n* enforcement. Consumers that require an object root apply\n* {@link assertObjectJsonSchema} before accepting input.\n* @module dsh-tools/json-schema\n*/\n/**\n* Thrown when a raw schema falls outside the enforced subset. `violations`\n* lists every offending path instead of stopping at the first author error.\n*/\nvar JsonSchemaError = class extends HarnessError {\n /** Individual schema violations in walk order. */\n violations;\n constructor(violations) {\n super(`unsupported JSON schema: ${violations.join(\"; \")}`, \"UNSUPPORTED_SCHEMA\");\n this.name = \"JsonSchemaError\";\n this.violations = violations;\n }\n};\nconst CONSTRAINT_KEYWORDS = new Set([\n \"type\",\n \"oneOf\",\n \"properties\",\n \"required\",\n \"additionalProperties\",\n \"items\",\n \"enum\",\n \"const\"\n]);\nconst ANNOTATION_KEYWORDS = new Set([\n \"description\",\n \"title\",\n \"default\",\n \"examples\"\n]);\nconst SCHEMA_TYPES = [\n \"object\",\n \"array\",\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"null\"\n];\n/** Whether a realm-owned intrinsic prototype is backed by its native constructor. */\nfunction hasIntrinsicConstructor(prototype, name) {\n const constructor = Object.getOwnPropertyDescriptor(prototype, \"constructor\")?.value;\n if (typeof constructor !== \"function\") return false;\n try {\n return constructor.name === name && constructor.prototype === prototype && Function.prototype.toString.call(constructor) === `function ${name}() { [native code] }`;\n } catch {\n return false;\n }\n}\n/** Whether a candidate is one realm's intrinsic `Object.prototype`. */\nfunction isIntrinsicObjectPrototype(value) {\n return Object.getPrototypeOf(value) === null && hasIntrinsicConstructor(value, \"Object\");\n}\n/**\n* Test for a realm-agnostic plain JSON record without accepting arrays or\n* exotic objects.\n* @param value - candidate record from any JavaScript realm.\n* @returns Whether the value has a plain-object prototype chain.\n*/\nfunction isPlainJsonRecord(value) {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n try {\n const prototype = Object.getPrototypeOf(value);\n return prototype === null || typeof prototype === \"object\" && isIntrinsicObjectPrototype(prototype);\n } catch {\n return false;\n }\n}\n/** Whether an array uses one realm's intrinsic `Array.prototype`. */\nfunction hasPlainArrayPrototype(value) {\n const prototype = Object.getPrototypeOf(value);\n if (!Array.isArray(prototype) || !hasIntrinsicConstructor(prototype, \"Array\")) return false;\n const objectPrototype = Object.getPrototypeOf(prototype);\n return typeof objectPrototype === \"object\" && objectPrototype !== null && isIntrinsicObjectPrototype(objectPrototype);\n}\n/** Return whether a record contains only own enumerable string keys. */\nfunction hasOnlyEnumerableStringKeys(value) {\n try {\n return Reflect.ownKeys(value).every((key) => typeof key === \"string\" && Object.prototype.propertyIsEnumerable.call(value, key));\n } catch {\n return false;\n }\n}\n/**\n* Test for an ordinary schema record whose keys survive JSON projection.\n* @param value - candidate record from any JavaScript realm.\n* @returns Whether the record has an intrinsic prototype and only own enumerable string keys.\n*/\nfunction isJsonSchemaRecord(value) {\n return isPlainJsonRecord(value) && hasOnlyEnumerableStringKeys(value);\n}\n/**\n* Test for a dense ordinary array with no JSON-invisible decorations.\n* @param value - candidate array from any JavaScript realm.\n* @returns Whether the array is intrinsic, dense, and undecorated.\n*/\nfunction isPlainJsonArray(value) {\n if (!Array.isArray(value)) return false;\n try {\n if (!hasPlainArrayPrototype(value) || Reflect.ownKeys(value).length !== value.length + 1) return false;\n for (let index = 0; index < value.length; index++) if (!Object.hasOwn(value, index)) return false;\n return true;\n } catch {\n return false;\n }\n}\n/** Lossless finite JSON number, excluding negative zero. */\nfunction isJsonNumber(value) {\n return typeof value === \"number\" && Number.isFinite(value) && !Object.is(value, -0);\n}\n/** Whether a scalar is valid for one declared schema type. */\nfunction scalarMatches(type, value) {\n switch (type) {\n case \"string\": return typeof value === \"string\";\n case \"number\": return isJsonNumber(value);\n case \"integer\": return isJsonNumber(value) && Number.isInteger(value);\n case \"boolean\": return typeof value === \"boolean\";\n case \"null\": return value === null;\n /* v8 ignore next -- JsonSchemaScalarType is closed; this retains compile-time exhaustiveness. */\n default: return assertNever(type, \"JsonSchemaType\");\n }\n}\n/** Keywords that are invalid beside `oneOf`. */\nconst ONE_OF_SIBLING_KEYWORDS = [\n \"properties\",\n \"required\",\n \"additionalProperties\",\n \"items\",\n \"enum\",\n \"const\"\n];\n/** Validate object-only fields after its property schemas have been visited. */\nfunction checkObjectSchemaTail(node, path, properties, violations) {\n const hasRequired = Object.hasOwn(node, \"required\");\n const required = hasRequired ? node.required : void 0;\n if (hasRequired) if (!isPlainJsonArray(required) || required.some((entry) => typeof entry !== \"string\")) violations.push(`${path}.required must be an array of strings`);\n else {\n const declared = isJsonSchemaRecord(properties) ? properties : {};\n for (const key of required) if (!Object.hasOwn(declared, key)) violations.push(`${path}.required names \"${key}\" which is not in properties`);\n }\n if (Object.hasOwn(node, \"additionalProperties\") && typeof node.additionalProperties !== \"boolean\") violations.push(`${path}.additionalProperties must be a boolean`);\n}\n/** Collect every violation for one raw schema tree without using the JavaScript call stack. */\nfunction checkSchemaNode(root, rootPath, violations, seen) {\n const tasks = [{\n kind: \"enter\",\n node: root,\n path: rootPath\n }];\n for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {\n if (task.kind === \"leave\") {\n seen.delete(task.node);\n continue;\n }\n if (task.kind === \"one-of-tail\") {\n for (const key of ONE_OF_SIBLING_KEYWORDS) if (Object.hasOwn(task.node, key)) violations.push(`${task.path}.${key} is not supported beside oneOf`);\n continue;\n }\n if (task.kind === \"object-tail\") {\n checkObjectSchemaTail(task.node, task.path, task.properties, violations);\n continue;\n }\n const { node, path } = task;\n if (!isJsonSchemaRecord(node)) {\n violations.push(`${path} must be a schema object`);\n continue;\n }\n if (seen.has(node)) {\n violations.push(`${path} is circular`);\n continue;\n }\n seen.add(node);\n tasks.push({\n kind: \"leave\",\n node\n });\n for (const key of Object.keys(node)) {\n if (CONSTRAINT_KEYWORDS.has(key)) continue;\n if (ANNOTATION_KEYWORDS.has(key)) {\n try {\n if (!isJsonValue(node[key])) violations.push(`${path}.${key} annotation must be lossless JSON data`);\n } catch {\n violations.push(`${path}.${key} annotation must be lossless JSON data`);\n }\n continue;\n }\n violations.push(`${path}.${key} is not a supported keyword (subset: type/oneOf/properties/required/additionalProperties/items/enum/const + annotations)`);\n }\n if (Object.hasOwn(node, \"description\") && typeof node.description !== \"string\") violations.push(`${path}.description must be a string`);\n if (Object.hasOwn(node, \"title\") && typeof node.title !== \"string\") violations.push(`${path}.title must be a string`);\n const hasType = Object.hasOwn(node, \"type\");\n const hasOneOf = Object.hasOwn(node, \"oneOf\");\n if (hasType && hasOneOf) {\n violations.push(`${path} cannot declare both type and oneOf`);\n continue;\n }\n if (!hasType && !hasOneOf) {\n for (const key of ONE_OF_SIBLING_KEYWORDS) if (Object.hasOwn(node, key)) violations.push(`${path}.${key} requires type or oneOf`);\n continue;\n }\n if (hasOneOf) {\n const oneOf = node.oneOf;\n tasks.push({\n kind: \"one-of-tail\",\n node,\n path\n });\n if (!isPlainJsonArray(oneOf) || oneOf.length < 2) violations.push(`${path}.oneOf must be an array of at least two schemas`);\n else for (let index = oneOf.length - 1; index >= 0; index--) tasks.push({\n kind: \"enter\",\n node: oneOf[index],\n path: `${path}.oneOf[${index}]`\n });\n continue;\n }\n const type = node.type;\n if (typeof type !== \"string\" || !SCHEMA_TYPES.includes(type)) {\n violations.push(Array.isArray(type) ? `${path}.type must be a single type string (type arrays are not supported)` : `${path}.type must be one of ${SCHEMA_TYPES.join(\"/\")}`);\n continue;\n }\n const schemaType = type;\n for (const [key, types] of Object.entries({\n properties: [\"object\"],\n required: [\"object\"],\n additionalProperties: [\"object\"],\n items: [\"array\"],\n enum: [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"null\"\n ],\n const: [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"null\"\n ]\n })) if (Object.hasOwn(node, key) && !types.includes(schemaType)) violations.push(`${path}.${key} is not supported on type \"${schemaType}\"`);\n switch (schemaType) {\n case \"object\": {\n const properties = Object.hasOwn(node, \"properties\") ? node.properties : void 0;\n tasks.push({\n kind: \"object-tail\",\n node,\n path,\n properties\n });\n if (Object.hasOwn(node, \"properties\")) if (!isJsonSchemaRecord(properties)) violations.push(`${path}.properties must be an object of schemas`);\n else {\n const entries = Object.entries(properties);\n for (let index = entries.length - 1; index >= 0; index--) {\n const entry = entries[index];\n /* v8 ignore next -- the loop is bounded by the captured entry count. */\n if (entry === void 0) continue;\n tasks.push({\n kind: \"enter\",\n node: entry[1],\n path: `${path}.properties.${entry[0]}`\n });\n }\n }\n break;\n }\n case \"array\":\n if (Object.hasOwn(node, \"items\")) tasks.push({\n kind: \"enter\",\n node: node.items,\n path: `${path}.items`\n });\n break;\n case \"string\":\n case \"number\":\n case \"integer\":\n case \"boolean\":\n case \"null\": {\n const hasEnum = Object.hasOwn(node, \"enum\");\n const allowed = hasEnum ? node.enum : void 0;\n const enumValid = isPlainJsonArray(allowed) && allowed.length > 0 && allowed.every((entry) => scalarMatches(schemaType, entry));\n if (hasEnum && !enumValid) violations.push(`${path}.enum must be a non-empty array of ${schemaType} values`);\n const hasConst = Object.hasOwn(node, \"const\");\n const declaredConst = hasConst ? node.const : void 0;\n const constValid = scalarMatches(schemaType, declaredConst);\n if (hasConst) {\n if (!constValid) violations.push(`${path}.const must be a ${schemaType} value`);\n else if (enumValid && !allowed.includes(declaredConst)) violations.push(`${path}.const must be one of ${path}.enum when both are declared`);\n }\n break;\n }\n /* v8 ignore next -- schemaType was narrowed from the closed SCHEMA_TYPES table above. */\n default: assertNever(schemaType, \"JsonSchemaType\");\n }\n }\n}\n/**\n* Assert the enforced subset plus the object-root constraint retained by\n* subagent and workflow structured outputs.\n* @param schema - untrusted caller-supplied schema.\n* @returns Assertion that the schema belongs to the supported subset and has an object root.\n*/\nfunction assertObjectJsonSchema(schema) {\n const violations = [];\n checkSchemaNode(schema, \"schema\", violations, /* @__PURE__ */ new Set());\n if (violations.length === 0 && (!isJsonSchemaRecord(schema) || !Object.hasOwn(schema, \"type\") || schema.type !== \"object\")) violations.push(\"schema.type must be \\\"object\\\" (structured output is object-rooted)\");\n if (violations.length > 0) throw new JsonSchemaError(violations);\n}\n//#endregion\n//#region packages/workflow/workflow/src/index.ts\n/**\n* Typed error for workflow-seam failures. Extends {@link HarnessError}, so the\n* `code` is machine-routable taxonomy. `fatal` drives the combinator\n* discipline: `parallel()`/`pipeline()` re-throw a fatal error (a typo'd\n* option or a tripped cap must kill the script loudly), and reserve the\n* per-item `null` for child-run failures and ordinary in-stage script errors.\n* Every {@link WorkflowErrorCode} is fatal; the flag exists so the\n* distinction is explicit at every catch site rather than implied.\n*/\nvar WorkflowError = class extends HarnessError {\n /** Whether combinators must propagate this error instead of nulling the item. */\n fatal;\n constructor(message, code, options) {\n super(message, code, options);\n this.name = \"WorkflowError\";\n this.fatal = options?.fatal ?? true;\n }\n};\n/**\n* Whether combinators must re-throw `error` instead of mapping the item to `null`.\n* @param error - any thrown value; fatality is host `instanceof` (unforgeable from a script realm).\n* @returns true iff `error` is a {@link WorkflowError} whose `fatal` flag is set.\n*/\nfunction isFatalWorkflowError(error) {\n return error instanceof WorkflowError && error.fatal;\n}\n//#endregion\n//#region packages/workflow/workflow-ptc/src/runtime.ts\n/**\n* Workflow VM hooks, child callbacks, ordinary concurrency limits and result serialization.\n* PTC owns process confinement and cancellation. Fatal hook and provider failures propagate\n* through combinators; ordinary child failures and stage errors become per-item nulls.\n* @module @deepseek-ai/dsh-workflow-ptc/runtime\n*/\n/** The `agent()` options the script may pass; everything else rejects loud. */\nconst SUPPORTED_AGENT_OPTIONS = new Set([\n \"label\",\n \"phase\",\n \"schema\",\n \"provider\",\n \"model\"\n]);\n/** Deferred Claude Code options we name explicitly in the rejection message. */\nconst DEFERRED_AGENT_OPTIONS = new Set([\n \"effort\",\n \"isolation\",\n \"agentType\"\n]);\n/** Flatten a child's final output blocks to text (the non-schema `agent()` result). */\nfunction outputText(blocks) {\n return blocks.filter((block) => block.type === \"text\").map((block) => block.text).join(\"\");\n}\n/** A short display label derived from the prompt when the script passes none. */\nfunction defaultLabel(prompt) {\n const newline = prompt.indexOf(\"\\n\");\n const line = newline === -1 ? prompt : prompt.slice(0, newline);\n return line.length <= 48 ? line : `${line.slice(0, 47)}…`;\n}\n/**\n* One script execution inside the confined Node process. The host owns\n* cancellation and cleanup of any dropped child work.\n*/\nvar WorkflowExecution = class {\n limits;\n observer;\n children;\n /** 1-based count of `agent()` calls started (the `agentsStarted` result field). */\n started = 0;\n activeSlots = 0;\n slotWaiters = [];\n currentPhase;\n context;\n compiled;\n constructor(meta, body, args, limits, observer, children) {\n this.limits = limits;\n this.observer = observer;\n this.children = children;\n try {\n this.compiled = new vm.Script(`(async () => {\\n${body}\\n})()`, {\n filename: `workflow:${meta.name}`,\n lineOffset: -1\n });\n } catch (error) {\n throw new WorkflowError(`workflow script does not parse: ${String(error)}`, \"SCRIPT_PARSE\", { cause: error });\n }\n this.context = vm.createContext({}, { name: `workflow:${meta.name}` });\n const globals = {\n agent: (prompt, opts) => this.contain(this.agent(prompt, opts)),\n parallel: (thunks) => this.contain(this.parallel(thunks)),\n pipeline: (items, ...stages) => this.contain(this.pipeline(items, stages)),\n phase: (title) => {\n this.phase(title);\n },\n log: (message) => {\n this.log(message);\n },\n args\n };\n for (const [key, value] of Object.entries(globals)) this.context[key] = typeof value === \"function\" ? Object.freeze(value) : value;\n }\n /**\n * Run the script and materialize its JSON return value.\n * @returns A completed or error result; script failures never reject.\n */\n async drive() {\n try {\n const scriptPromise = this.compiled.runInContext(this.context, { timeout: this.limits.syncTimeoutMs });\n const raw = await this.contain(Promise.resolve(scriptPromise));\n return {\n value: raw === void 0 ? null : this.materializeResult(raw),\n stopReason: \"completed\",\n agentsStarted: this.started\n };\n } catch (error) {\n return {\n value: null,\n stopReason: \"error\",\n error: renderThrown(error),\n agentsStarted: this.started\n };\n }\n }\n /**\n * Attach a no-op rejection consumer WITHOUT changing what the caller\n * receives: if the script drops the promise, a host rejection cannot become\n * an unhandled rejection that kills the process; if\n * the script does await it, it still observes the rejection.\n */\n contain(promise) {\n promise.catch(() => {});\n return promise;\n }\n /** Materialize the script's return value; violations become RESULT_UNSERIALIZABLE. */\n materializeResult(raw) {\n try {\n return materializeFromRealm(raw, \"workflow result\");\n } catch (error) {\n /* v8 ignore next -- defensive rethrow arm: materializeFromRealm only throws MaterializeError */\n if (!(error instanceof MaterializeError)) throw error;\n throw new WorkflowError(`the workflow's return value is not plain JSON data — ${error.message}. Return only JSON-serializable objects/arrays/scalars.`, \"RESULT_UNSERIALIZABLE\", { cause: error });\n }\n }\n /** Acquire one concurrency slot in FIFO order. */\n acquireSlot() {\n if (this.activeSlots < this.limits.maxConcurrentAgents) {\n this.activeSlots += 1;\n return Promise.resolve();\n }\n return new Promise((resolve) => {\n this.slotWaiters.push(() => {\n this.activeSlots += 1;\n resolve();\n });\n });\n }\n releaseSlot() {\n this.activeSlots -= 1;\n const next = this.slotWaiters.shift();\n if (next) next();\n }\n /** The `agent(prompt, opts)` hook. */\n async agent(rawPrompt, rawOpts) {\n if (typeof rawPrompt !== \"string\" || rawPrompt.length === 0) throw new WorkflowError(\"agent() requires a non-empty prompt string\", \"INVALID_ARGUMENT\");\n const opts = this.readAgentOptions(rawOpts);\n if (this.started >= this.limits.maxTotalAgents) throw new WorkflowError(`this run reached its total agent cap (${this.limits.maxTotalAgents}) — a runaway-loop backstop; raise the applicable maxTotalAgents limit if the scale is intentional`, \"AGENT_CAP\");\n this.started += 1;\n const seq = this.started;\n const label = opts.label ?? defaultLabel(rawPrompt);\n const phase = opts.phase ?? this.currentPhase;\n await this.acquireSlot();\n try {\n let run;\n try {\n run = await this.children.startAgent({\n prompt: rawPrompt,\n ...opts.schema !== void 0 ? { schema: opts.schema } : {},\n ...opts.provider !== void 0 ? { provider: opts.provider } : {},\n ...opts.model !== void 0 ? { model: opts.model } : {}\n });\n } catch (error) {\n throw new WorkflowError(`agent() could not start a child: ${renderThrown(error)}`, \"AGENT_START\", { cause: error });\n }\n const info = {\n seq,\n label,\n ...phase !== void 0 ? { phase } : {},\n childId: brandString(run.id)\n };\n this.observer.agentStart(info);\n try {\n let result;\n try {\n result = await run.result;\n } catch (error) {\n this.observer.agentEnd({\n ...info,\n outcome: \"failed\"\n });\n throw new WorkflowError(`child agent run failed: ${renderThrown(error)}`, \"AGENT_RESULT\", { cause: error });\n }\n if (result.stopReason === \"completed\") {\n if (opts.schema !== void 0) {\n if (result.structured === void 0) {\n this.observer.agentEnd({\n ...info,\n outcome: \"failed\"\n });\n return null;\n }\n this.observer.agentEnd({\n ...info,\n outcome: \"completed\"\n });\n return result.structured;\n }\n this.observer.agentEnd({\n ...info,\n outcome: \"completed\"\n });\n return outputText(result.output);\n }\n this.observer.agentEnd({\n ...info,\n outcome: \"failed\"\n });\n return null;\n } finally {\n await run.dispose();\n }\n } finally {\n this.releaseSlot();\n }\n }\n /** Materialize + validate the `agent()` options bag from the realm. */\n readAgentOptions(rawOpts) {\n if (rawOpts === void 0) return {};\n let opts;\n try {\n opts = materializeFromRealm(rawOpts, \"agent() options\");\n } catch (error) {\n /* v8 ignore next -- defensive rethrow arm: materializeFromRealm only throws MaterializeError */\n if (!(error instanceof MaterializeError)) throw error;\n throw new WorkflowError(`agent() options must be plain JSON data — ${error.message}`, \"INVALID_ARGUMENT\", { cause: error });\n }\n if (typeof opts !== \"object\" || opts === null || Array.isArray(opts)) throw new WorkflowError(\"agent() options must be an object\", \"INVALID_ARGUMENT\");\n const record = opts;\n for (const key of Object.keys(record)) {\n if (SUPPORTED_AGENT_OPTIONS.has(key)) continue;\n if (DEFERRED_AGENT_OPTIONS.has(key)) throw new WorkflowError(`agent() option \"${key}\" is deferred and not supported by this engine (supported: label, phase, schema, provider, model)`, \"UNSUPPORTED_OPTION\");\n throw new WorkflowError(`agent() option \"${key}\" is not recognized (supported: label, phase, schema, provider, model)`, \"UNSUPPORTED_OPTION\");\n }\n for (const key of [\n \"label\",\n \"phase\",\n \"provider\",\n \"model\"\n ]) if (record[key] !== void 0 && typeof record[key] !== \"string\") throw new WorkflowError(`agent() option \"${key}\" must be a string`, \"INVALID_ARGUMENT\");\n let schema;\n if (record.schema !== void 0) try {\n assertObjectJsonSchema(record.schema);\n schema = record.schema;\n } catch (error) {\n /* v8 ignore next -- defensive rethrow arm: assertObjectJsonSchema only throws JsonSchemaError */\n if (!(error instanceof JsonSchemaError)) throw error;\n throw new WorkflowError(`agent() schema is outside the supported subset — ${error.message}`, \"UNSUPPORTED_SCHEMA\", { cause: error });\n }\n return {\n ...record.label !== void 0 ? { label: record.label } : {},\n ...record.phase !== void 0 ? { phase: record.phase } : {},\n ...record.provider !== void 0 ? { provider: record.provider } : {},\n ...record.model !== void 0 ? { model: record.model } : {},\n ...schema !== void 0 ? { schema } : {}\n };\n }\n /** The `parallel(thunks)` hook: each thunk caught → `null`; fatal errors propagate. */\n async parallel(rawThunks) {\n if (!Array.isArray(rawThunks)) throw new WorkflowError(\"parallel() requires an array of zero-argument functions\", \"INVALID_ARGUMENT\");\n this.assertItemCap(rawThunks.length, \"parallel()\");\n const thunks = rawThunks.map((thunk, index) => {\n if (typeof thunk !== \"function\") throw new WorkflowError(`parallel() item ${index} is not a function`, \"INVALID_ARGUMENT\");\n return thunk;\n });\n return Promise.all(thunks.map(async (thunk) => {\n try {\n return await thunk();\n } catch (error) {\n if (isFatalWorkflowError(error)) throw error;\n return null;\n }\n }));\n }\n /** The `pipeline(items, ...stages)` hook: per-item stage chains, NO cross-stage barrier. */\n async pipeline(rawItems, rawStages) {\n if (!Array.isArray(rawItems)) throw new WorkflowError(\"pipeline() requires an items array\", \"INVALID_ARGUMENT\");\n this.assertItemCap(rawItems.length, \"pipeline()\");\n if (rawStages.length === 0) throw new WorkflowError(\"pipeline() requires at least one stage function\", \"INVALID_ARGUMENT\");\n const stages = rawStages.map((stage, index) => {\n if (typeof stage !== \"function\") throw new WorkflowError(`pipeline() stage ${index} is not a function`, \"INVALID_ARGUMENT\");\n return stage;\n });\n return Promise.all(rawItems.map(async (item, index) => {\n let value = item;\n try {\n for (const stage of stages) value = await stage(value, item, index);\n return value;\n } catch (error) {\n if (isFatalWorkflowError(error)) throw error;\n return null;\n }\n }));\n }\n assertItemCap(length, hook) {\n if (length > this.limits.maxItemsPerCall) throw new WorkflowError(`${hook} received ${length} items — over the per-call cap (${this.limits.maxItemsPerCall}); split the work or raise maxItemsPerCall in the engine config`, \"ITEM_CAP\");\n }\n /** The `phase(title)` hook: sets the current label for subsequent `agent()` calls and notifies observers. */\n phase(title) {\n if (typeof title !== \"string\" || title.length === 0) throw new WorkflowError(\"phase() requires a non-empty title string\", \"INVALID_ARGUMENT\");\n this.currentPhase = title;\n this.observer.phase(title);\n }\n /** The `log(message)` hook: narration to observers. */\n log(message) {\n if (typeof message !== \"string\") throw new WorkflowError(\"log() requires a message string\", \"INVALID_ARGUMENT\");\n this.observer.log(message);\n }\n};\n//#endregion\n//#region packages/workflow/workflow-ptc/src/guest.ts\n/**\n* Run a workflow with one progress batch in flight. Drain progress before child\n* disposal and the terminal result; PTC and the host own cancellation and cleanup.\n* @param host - JSON callbacks owned by this workflow run.\n* @returns The script result after progress delivery; initialization failures reject.\n*/\nasync function runWorkflowGuest(host) {\n const init = await host.begin({});\n let queued = [];\n let inFlight;\n let progressError;\n const flush = () => {\n if (inFlight !== void 0 || queued.length === 0) return;\n const batch = queued;\n queued = [];\n inFlight = host.progress(batch).then(() => {\n inFlight = void 0;\n flush();\n }, (error) => {\n progressError = renderThrown(error);\n queued = [];\n inFlight = void 0;\n });\n };\n const send = (event) => {\n if (progressError !== void 0) return;\n queued.push(event);\n flush();\n };\n const drain = async () => {\n while (inFlight !== void 0) await inFlight;\n };\n const result = await new WorkflowExecution(init.meta, init.body, init.args, init.limits, {\n phase: (title) => {\n send({\n type: \"phase\",\n title\n });\n },\n log: (message) => {\n send({\n type: \"log\",\n message\n });\n },\n agentStart: (info) => {\n send({\n type: \"agent-start\",\n info\n });\n },\n agentEnd: (info) => {\n send({\n type: \"agent-end\",\n info\n });\n }\n }, { async startAgent(request) {\n const { callId, childId } = await host.startChild(request);\n const result = host.childResult({ callId });\n result.catch(() => {});\n return {\n id: childId,\n result,\n async dispose() {\n await drain();\n await host.disposeChild({ callId });\n }\n };\n } }).drive();\n await drain();\n return progressError === void 0 ? result : {\n value: null,\n stopReason: \"error\",\n error: progressError,\n agentsStarted: result.agentsStarted\n };\n}\n//#endregion\nexport { runWorkflowGuest };\n//# sourceURL=dsh-workflow-guest.js\n";
13
13
  //#endregion
14
14
  //#region lib/types/realm.js
15
15
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-workflow-ptc",
3
3
  "description": "Workflow orchestration in the shared sandboxed Node PTC runtime",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -28,44 +28,44 @@
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
30
  "@deepseek-ai/cordis": "4.0.4",
31
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
32
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
33
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
34
- "@deepseek-ai/dsh-subagent": "0.1.7-rc.2",
35
- "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
36
- "@deepseek-ai/dsh-workflow": "0.1.7-rc.2",
37
- "@deepseek-ai/dsh-ptc-runtime": "0.1.7-rc.2",
38
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
39
- "@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.2"
31
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
32
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
33
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
34
+ "@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
35
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.1",
36
+ "@deepseek-ai/dsh-workflow": "0.2.0-rc.1",
37
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.0-rc.1",
38
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
39
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.1"
40
40
  },
41
41
  "dependencies": {
42
- "@deepseek-ai/dsh-brand": "0.1.7-rc.2",
43
- "@deepseek-ai/dsh-util-values": "0.1.7-rc.2",
42
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.1",
43
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.1",
44
44
  "@deepseek-ai/schemastery": "3.18.4"
45
45
  },
46
46
  "devDependencies": {
47
- "@deepseek-ai/dsh-llm-deepseek-api-key": "0.1.7-rc.2",
47
+ "@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.0-rc.1",
48
48
  "@deepseek-ai/cordis": "4.0.4",
49
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
50
- "@deepseek-ai/dsh-agent-loop": "0.1.7-rc.2",
51
- "@deepseek-ai/dsh-invariants": "0.1.7-rc.2",
52
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
53
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
54
- "@deepseek-ai/dsh-session-projection": "0.1.7-rc.2",
55
- "@deepseek-ai/dsh-subagent": "0.1.7-rc.2",
56
- "@deepseek-ai/dsh-subagent-spawn-in-process": "0.1.7-rc.2",
57
- "@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
58
- "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
59
- "@deepseek-ai/dsh-workflow": "0.1.7-rc.2",
60
- "@deepseek-ai/dsh-http-proxy": "0.1.7-rc.2",
61
- "@deepseek-ai/dsh-ptc-runtime": "0.1.7-rc.2",
62
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
63
- "@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.2",
64
- "@deepseek-ai/dsh-ptc-runtime-node": "0.1.7-rc.2",
65
- "@deepseek-ai/dsh-fs": "0.1.7-rc.2",
66
- "@deepseek-ai/dsh-fs-local": "0.1.7-rc.2",
67
- "@deepseek-ai/dsh-subprocess": "0.1.7-rc.2",
68
- "@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.2",
69
- "@deepseek-ai/dsh-sandbox-local": "0.1.7-rc.2"
49
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
50
+ "@deepseek-ai/dsh-agent-loop": "0.2.0-rc.1",
51
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
52
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
53
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
54
+ "@deepseek-ai/dsh-session-projection": "0.2.0-rc.1",
55
+ "@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
56
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.1",
57
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
58
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.1",
59
+ "@deepseek-ai/dsh-workflow": "0.2.0-rc.1",
60
+ "@deepseek-ai/dsh-http-proxy": "0.2.0-rc.1",
61
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.0-rc.1",
62
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
63
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.1",
64
+ "@deepseek-ai/dsh-ptc-runtime-node": "0.2.0-rc.1",
65
+ "@deepseek-ai/dsh-fs": "0.2.0-rc.1",
66
+ "@deepseek-ai/dsh-fs-local": "0.2.0-rc.1",
67
+ "@deepseek-ai/dsh-subprocess": "0.2.0-rc.1",
68
+ "@deepseek-ai/dsh-subprocess-local": "0.2.0-rc.1",
69
+ "@deepseek-ai/dsh-sandbox-local": "0.2.0-rc.1"
70
70
  }
71
71
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-workspace",
3
3
  "description": "Workspace entity registry (ctx.workspaceRegistry): durable workspace records with validated session attachment over the domain data form for the DeepSeek Harness",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -38,24 +38,24 @@
38
38
  "license": "MIT",
39
39
  "peerDependencies": {
40
40
  "@deepseek-ai/cordis": "4.0.4",
41
- "@deepseek-ai/dsh-invariants": "0.1.7-rc.2",
42
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
43
- "@deepseek-ai/dsh-session-persistence": "0.1.7-rc.2",
44
- "@deepseek-ai/dsh-storage": "0.1.7-rc.2",
45
- "@deepseek-ai/dsh-storage-domain": "0.1.7-rc.2",
46
- "@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2"
41
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
42
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
43
+ "@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
44
+ "@deepseek-ai/dsh-storage": "0.2.0-rc.1",
45
+ "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.1",
46
+ "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.1"
47
47
  },
48
48
  "dependencies": {
49
- "@deepseek-ai/dsh-brand": "0.1.7-rc.2",
49
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.1",
50
50
  "zod": "^4.4.3"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@deepseek-ai/cordis": "4.0.4",
54
- "@deepseek-ai/dsh-invariants": "0.1.7-rc.2",
55
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
56
- "@deepseek-ai/dsh-session-persistence": "0.1.7-rc.2",
57
- "@deepseek-ai/dsh-storage": "0.1.7-rc.2",
58
- "@deepseek-ai/dsh-storage-domain": "0.1.7-rc.2",
59
- "@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2"
54
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
55
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
56
+ "@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
57
+ "@deepseek-ai/dsh-storage": "0.2.0-rc.1",
58
+ "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.1",
59
+ "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.1"
60
60
  }
61
61
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-workspace-changes",
3
3
  "description": "Per-turn workspace file changes recorded from git working-tree snapshots and whole-file captures, with per-file comparisons, for the DeepSeek Harness",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,20 +37,20 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@deepseek-ai/cordis": "4.0.4",
40
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
41
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
42
- "@deepseek-ai/dsh-subprocess": "0.1.7-rc.2",
43
- "@deepseek-ai/dsh-tools": "0.1.7-rc.2"
40
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
41
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
42
+ "@deepseek-ai/dsh-subprocess": "0.2.0-rc.1",
43
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@deepseek-ai/cordis": "4.0.4",
47
47
  "@deepseek-ai/cordis-plugin-include": "1.0.9",
48
48
  "@deepseek-ai/cordis-plugin-loader": "1.0.5",
49
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
50
- "@deepseek-ai/dsh-session": "0.1.7-rc.2",
51
- "@deepseek-ai/dsh-subprocess": "0.1.7-rc.2",
52
- "@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.2",
53
- "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
54
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2"
49
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
50
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
51
+ "@deepseek-ai/dsh-subprocess": "0.2.0-rc.1",
52
+ "@deepseek-ai/dsh-subprocess-local": "0.2.0-rc.1",
53
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.1",
54
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1"
55
55
  }
56
56
  }
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017-2021 Luke Childs
4
+ Copyright (c) 2021-2022 Jared Wray
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,15 @@
1
+ # @keyv/serialize [<img width="100" align="right" src="https://jaredwray.com/images/keyv-symbol.svg" alt="keyv">](https://github.com/jaredwra/keyv)
2
+
3
+ > Serialization functionality for [Keyv](https://github.com/jaredwray/keyv)
4
+
5
+
6
+ [![build](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml)
7
+ [![codecov](https://codecov.io/gh/jaredwray/keyv/branch/main/graph/badge.svg?token=bRzR3RyOXZ)](https://codecov.io/gh/jaredwray/keyv)
8
+ [![GitHub license](https://img.shields.io/github/license/jaredwray/keyv)](https://github.com/jaredwray/keyv/blob/main/LICENSE)
9
+ [![npm](https://img.shields.io/npm/dm/@keyv/serialize)](https://npmjs.com/package/@keyv/serialize)
10
+
11
+ This is the serialization functionality for [Keyv](https://github.com/jaredwray/keyv/tree/main/packages/keyv). It is used to serialize and deserialize data for storage and retrieval. You can also create your own [custom serialization functions](https://github.com/jaredwray/keyv/tree/main/packages/keyv#custom-serializers).
12
+
13
+ ## License
14
+
15
+ [MIT © Jared Wray](LISCENCE)
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ defaultDeserialize: () => defaultDeserialize,
24
+ defaultSerialize: () => defaultSerialize
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+ var import_node_buffer = require("buffer");
28
+ var _serialize = (data, escapeColonStrings = true) => {
29
+ if (data === void 0 || data === null) {
30
+ return "null";
31
+ }
32
+ if (typeof data === "string") {
33
+ return JSON.stringify(
34
+ escapeColonStrings && data.startsWith(":") ? `:${data}` : data
35
+ );
36
+ }
37
+ if (import_node_buffer.Buffer.isBuffer(data)) {
38
+ return JSON.stringify(`:base64:${data.toString("base64")}`);
39
+ }
40
+ if (data?.toJSON) {
41
+ data = data.toJSON();
42
+ }
43
+ if (typeof data === "object") {
44
+ let s = "";
45
+ const array = Array.isArray(data);
46
+ s = array ? "[" : "{";
47
+ let first = true;
48
+ for (const k in data) {
49
+ const ignore = typeof data[k] === "function" || !array && data[k] === void 0;
50
+ if (!Object.hasOwn(data, k) || ignore) {
51
+ continue;
52
+ }
53
+ if (!first) {
54
+ s += ",";
55
+ }
56
+ first = false;
57
+ if (array) {
58
+ s += _serialize(data[k], escapeColonStrings);
59
+ } else if (data[k] !== void 0) {
60
+ s += `${_serialize(k, false)}:${_serialize(data[k], escapeColonStrings)}`;
61
+ }
62
+ }
63
+ s += array ? "]" : "}";
64
+ return s;
65
+ }
66
+ return JSON.stringify(data);
67
+ };
68
+ var defaultSerialize = (data) => {
69
+ return _serialize(data, true);
70
+ };
71
+ var defaultDeserialize = (data) => JSON.parse(data, (_, value) => {
72
+ if (typeof value === "string") {
73
+ if (value.startsWith(":base64:")) {
74
+ return import_node_buffer.Buffer.from(value.slice(8), "base64");
75
+ }
76
+ return value.startsWith(":") ? value.slice(1) : value;
77
+ }
78
+ return value;
79
+ });
80
+ // Annotate the CommonJS export names for ESM import in node:
81
+ 0 && (module.exports = {
82
+ defaultDeserialize,
83
+ defaultSerialize
84
+ });