@songtonyli/dsh-cli 0.1.92 → 0.1.94

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 (1919) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +1 -4
  4. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  5. package/node_modules/@aws-sdk/core/package.json +3 -3
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  9. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  10. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  11. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  12. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  13. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  14. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
  15. package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
  16. package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +8 -1
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  21. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  23. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  24. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  25. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  26. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  27. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  28. package/node_modules/@deepseek-ai/cordis-plugin-include/README.md +10 -0
  29. package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +647 -149
  30. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  31. package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +362 -236
  32. package/node_modules/@deepseek-ai/cordis-plugin-include/src/journal.ts +242 -0
  33. package/node_modules/@deepseek-ai/cordis-plugin-include/src/patch.ts +261 -0
  34. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +5 -1
  35. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +96 -20
  36. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  37. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +2 -2
  38. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +3 -2
  39. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/tree.ts +77 -8
  40. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +24 -13
  41. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  42. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  43. package/node_modules/@deepseek-ai/dsh/lib/bin-DQ1vWxS0.js +254 -0
  44. package/node_modules/@deepseek-ai/dsh/lib/bin.js +19 -245
  45. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DCQrFN8g.js +64 -0
  46. package/node_modules/@deepseek-ai/dsh/lib/dump-config-ekMiCsuS.js +2 -0
  47. package/node_modules/@deepseek-ai/dsh/lib/dump-config-schema-C_NhxM7L.js +41 -0
  48. package/node_modules/@deepseek-ai/dsh/lib/plugin-cQMw2oZz.js +102 -0
  49. package/node_modules/@deepseek-ai/dsh/lib/profile-boot-xiaehH2x.js +330 -0
  50. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  51. package/node_modules/@deepseek-ai/dsh/package.json +127 -127
  52. package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +1 -1
  53. package/node_modules/@deepseek-ai/dsh-acp/package.json +26 -26
  54. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  55. package/node_modules/@deepseek-ai/dsh-action-cards/README.i18n.yaml +2 -2
  56. package/node_modules/@deepseek-ai/dsh-action-cards/README.md +1 -1
  57. package/node_modules/@deepseek-ai/dsh-action-cards/README.zh.md +1 -1
  58. package/node_modules/@deepseek-ai/dsh-action-cards/lib/index.js +7 -4
  59. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +16 -4
  60. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.remote-client.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-action-cards/lib/types/index.js +7 -4
  62. package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
  63. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
  64. package/node_modules/@deepseek-ai/dsh-agent/README.md +1 -1
  65. package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +1 -1
  66. package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +5 -30
  67. package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +5 -32
  68. package/node_modules/@deepseek-ai/dsh-agent/package.json +21 -21
  69. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  70. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +28 -28
  71. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  72. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
  73. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
  74. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +5 -7
  75. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -27
  76. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
  77. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +12 -8
  78. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +1 -1
  79. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +15 -3
  80. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +1 -1
  81. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
  82. package/node_modules/@deepseek-ai/dsh-agent-team/README.i18n.yaml +97 -0
  83. package/node_modules/@deepseek-ai/dsh-agent-team/README.md +217 -0
  84. package/node_modules/@deepseek-ai/dsh-agent-team/README.zh.md +217 -0
  85. package/node_modules/@deepseek-ai/dsh-agent-team/lib/index.js +824 -0
  86. package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.host.js +825 -0
  87. package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.remote-client.js +79 -0
  88. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/client.js +3 -0
  89. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/error.js +10 -0
  90. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/index.js +176 -0
  91. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/journal.js +66 -0
  92. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/projection.js +172 -0
  93. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-board.js +257 -0
  94. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-view.js +51 -0
  95. package/node_modules/@deepseek-ai/dsh-agent-team/locale/en.json +6 -0
  96. package/node_modules/@deepseek-ai/dsh-agent-team/locale/ja.json +6 -0
  97. package/node_modules/@deepseek-ai/dsh-agent-team/locale/zh.json +6 -0
  98. package/node_modules/@deepseek-ai/dsh-agent-team/package.json +83 -0
  99. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +13 -13
  100. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  101. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
  102. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +14 -14
  103. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
  104. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +12 -12
  105. package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
  106. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +4 -4
  107. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
  108. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
  109. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1048 -558
  110. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
  111. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +8 -3
  112. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
  113. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +49 -46
  114. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +4 -4
  115. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +4 -4
  116. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +4 -4
  117. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +16 -48
  118. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +46 -44
  119. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +252 -264
  120. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +209 -245
  121. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +10 -19
  122. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +6 -3
  123. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +8 -32
  124. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +4 -21
  125. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +2 -2
  126. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +3 -3
  127. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +2 -2
  128. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +7 -7
  129. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +2 -2
  130. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +14 -7
  131. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +77 -77
  132. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  133. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +15 -3
  134. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +22 -22
  135. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
  136. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  137. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  138. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +2 -0
  139. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +2 -0
  140. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +841 -145
  141. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
  142. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  143. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  144. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  145. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  146. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  147. package/node_modules/@deepseek-ai/dsh-base/README.md +2 -0
  148. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -0
  149. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +29 -15
  150. package/node_modules/@deepseek-ai/dsh-base/package.json +103 -101
  151. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  152. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  153. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  154. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  155. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  156. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +15 -3
  157. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  158. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
  159. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +16 -0
  160. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
  161. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  162. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
  163. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
  164. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +5 -1
  165. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
  166. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +6 -6
  167. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +16 -16
  168. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
  169. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +9 -9
  170. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/lib/client.js +1 -1
  171. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
  172. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  173. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
  174. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.i18n.yaml +40 -0
  175. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.md +100 -0
  176. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.zh.md +100 -0
  177. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/lib/client.js +1425 -0
  178. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/en.json +6 -0
  179. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/ja.json +6 -0
  180. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/zh.json +6 -0
  181. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/package.json +72 -0
  182. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
  183. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +12 -12
  184. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +5 -5
  185. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +4 -4
  186. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +3 -1
  187. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +3 -1
  188. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +74 -7
  189. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
  190. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
  191. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +10 -10
  192. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  193. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +5 -4
  194. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +5 -4
  195. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +56 -48
  196. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -35
  197. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
  198. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.i18n.yaml +8 -8
  199. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.md +4 -4
  200. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.zh.md +4 -4
  201. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/lib/client.js +24 -61
  202. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/de.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/en.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/es.json +1 -1
  205. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/fr.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ja.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/pt.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ru.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/zh.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +11 -11
  211. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +28 -28
  212. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
  213. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +6 -6
  214. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.i18n.yaml +6 -6
  215. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.md +5 -5
  216. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.zh.md +5 -5
  217. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/lib/client.js +73 -21
  218. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +11 -11
  219. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +10 -10
  220. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +7 -7
  221. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
  222. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -11
  223. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +4 -4
  224. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +5 -1
  225. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +5 -1
  226. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +185 -89
  227. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
  228. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
  229. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -15
  230. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +8 -8
  231. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +5 -3
  232. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +5 -3
  233. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +106 -111
  234. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
  235. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +25 -25
  236. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
  237. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +19 -19
  238. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +4 -4
  239. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +3 -3
  240. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +3 -3
  241. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +4 -6
  242. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +18 -18
  243. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -12
  244. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +13 -13
  245. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +16 -16
  246. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +4 -4
  247. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.md +2 -2
  248. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.zh.md +2 -2
  249. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
  250. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +8 -8
  251. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +12 -8
  252. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +12 -8
  253. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +4002 -400
  254. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
  255. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +6 -6
  256. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +9 -9
  257. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +4 -4
  258. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -0
  259. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -0
  260. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +7 -7
  261. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  262. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
  263. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +8 -8
  264. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +4 -4
  265. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +3 -1
  266. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +3 -1
  267. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +469 -41
  268. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +17 -17
  269. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
  270. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +11 -11
  271. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +7 -7
  272. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +8 -8
  273. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +8 -8
  274. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -7
  275. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +8 -8
  276. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +12 -12
  277. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +15 -10
  278. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +15 -10
  279. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +773 -335
  280. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/de.json +2 -2
  281. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/es.json +2 -2
  282. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/fr.json +2 -2
  283. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ja.json +2 -2
  284. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/pt.json +2 -2
  285. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ru.json +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/zh.json +2 -2
  287. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +10 -9
  288. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
  289. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +8 -8
  290. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +11 -6
  291. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +11 -6
  292. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +269 -111
  293. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -11
  294. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +10 -10
  295. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  296. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +1 -1
  297. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +1 -1
  298. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +1 -1
  299. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  300. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
  301. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
  302. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -14
  303. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
  304. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +12 -12
  305. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +16 -8
  306. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +16 -8
  307. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +310 -150
  308. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +18 -17
  309. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +12 -12
  310. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
  311. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +4 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +4 -2
  313. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +128 -50
  314. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +31 -31
  315. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +20 -20
  316. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +22 -22
  317. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +13 -13
  318. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  319. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +6 -2
  320. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +6 -2
  321. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +44 -37
  322. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
  323. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  324. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  325. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  326. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  327. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +15 -3
  328. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  329. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  330. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +18 -12
  331. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +5 -5
  332. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +5 -5
  333. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +16 -8
  334. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -26
  335. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  336. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
  337. package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +37 -0
  338. package/node_modules/@deepseek-ai/dsh-computer-use/README.md +90 -0
  339. package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +90 -0
  340. package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +35 -0
  341. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +10 -0
  342. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +36 -0
  343. package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +6 -0
  344. package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +6 -0
  345. package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +6 -0
  346. package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +6 -0
  347. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +6 -0
  348. package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +6 -0
  349. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +6 -0
  350. package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +6 -0
  351. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +44 -0
  352. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  353. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +230 -62
  354. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +10 -10
  355. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +30 -6
  356. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
  357. package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.i18n.yaml +6 -6
  358. package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.md +5 -3
  359. package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.zh.md +5 -3
  360. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/index.js +75 -77
  361. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/index.js +59 -54
  362. package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +21 -21
  363. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  364. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  365. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +49 -0
  366. package/node_modules/@deepseek-ai/dsh-cua/README.md +132 -0
  367. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +132 -0
  368. package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +597 -0
  369. package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +611 -0
  370. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +1803 -0
  371. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +1922 -0
  372. package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +285 -0
  373. package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +305 -0
  374. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +458 -0
  375. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +343 -0
  376. package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +6 -0
  377. package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +6 -0
  378. package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +6 -0
  379. package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +6 -0
  380. package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +6 -0
  381. package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +6 -0
  382. package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +6 -0
  383. package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +6 -0
  384. package/node_modules/@deepseek-ai/dsh-cua/package.json +151 -0
  385. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +46 -0
  386. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +94 -0
  387. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +94 -0
  388. package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +10 -0
  389. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +1 -0
  390. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +1 -0
  391. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +33 -0
  392. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +33 -0
  393. package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +35 -0
  394. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +7 -0
  395. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +7 -0
  396. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +7 -0
  397. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +7 -0
  398. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +7 -0
  399. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +7 -0
  400. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +7 -0
  401. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +7 -0
  402. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +57 -0
  403. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +11 -11
  404. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  405. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  406. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +5 -5
  407. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  408. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  409. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +46 -46
  410. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +4 -4
  411. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +20 -20
  412. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +2 -2
  413. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +2 -2
  414. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +2 -2
  415. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +5773 -5757
  416. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +15 -3
  417. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +42 -42
  418. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +19 -18
  419. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +15 -15
  420. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
  421. package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +6 -6
  422. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.i18n.yaml +10 -10
  423. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.md +6 -4
  424. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.zh.md +6 -4
  425. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/cordis.patch.yml +4 -0
  426. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.de.md +1 -0
  427. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.es.md +1 -0
  428. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.fr.md +1 -0
  429. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.ja.md +1 -0
  430. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.md +1 -0
  431. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.pt.md +1 -0
  432. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.ru.md +1 -0
  433. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.zh.md +1 -0
  434. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/preview.svg +28 -0
  435. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/preview.zh.svg +28 -0
  436. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/de.json +2 -1
  437. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/en.json +2 -1
  438. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/es.json +2 -1
  439. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/fr.json +2 -1
  440. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ja.json +2 -1
  441. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/pt.json +2 -1
  442. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ru.json +2 -1
  443. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/zh.json +2 -1
  444. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +10 -8
  445. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +10 -10
  446. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/lib/index.js +11 -1
  447. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +33 -33
  448. package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
  449. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -7
  450. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +8 -8
  451. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +8 -8
  452. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +8 -8
  453. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/cordis.patch.yml +0 -4
  454. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +892 -501
  455. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +607 -229
  456. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.host.js +45 -31
  457. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.remote-client.js +33 -27
  458. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +73 -75
  459. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +4 -4
  460. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
  461. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
  462. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.i18n.yaml +2 -2
  463. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.md +1 -1
  464. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.zh.md +1 -1
  465. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +6 -2
  466. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
  467. package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
  468. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +4 -4
  469. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
  470. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  471. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
  472. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.i18n.yaml +4 -4
  473. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.md +2 -2
  474. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.zh.md +2 -2
  475. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +23 -23
  476. package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +29 -29
  477. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  478. package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +23 -23
  479. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  480. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +17 -17
  481. package/node_modules/@deepseek-ai/dsh-fs/package.json +10 -10
  482. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -8
  483. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +2 -2
  484. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +1 -1
  485. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +1 -1
  486. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  487. package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +3 -3
  488. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  489. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +15 -3
  490. package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
  491. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +2 -2
  492. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.md +1 -1
  493. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.zh.md +1 -1
  494. package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +5 -1
  495. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  496. package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -13
  497. package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +2 -2
  498. package/node_modules/@deepseek-ai/dsh-headless/README.md +2 -0
  499. package/node_modules/@deepseek-ai/dsh-headless/README.zh.md +2 -0
  500. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
  501. package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
  502. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +5 -1
  503. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  504. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  505. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  506. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +2 -2
  507. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.md +1 -1
  508. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.zh.md +1 -1
  509. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +20 -20
  510. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  511. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  512. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  513. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  514. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +2 -2
  515. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -2
  516. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  517. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
  518. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -5
  519. package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +6 -6
  520. package/node_modules/@deepseek-ai/dsh-http-proxy/README.md +4 -1
  521. package/node_modules/@deepseek-ai/dsh-http-proxy/README.zh.md +4 -1
  522. package/node_modules/@deepseek-ai/dsh-http-proxy/lib/index.js +54 -16
  523. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
  524. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  525. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  526. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  527. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  528. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  529. package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
  530. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
  531. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +37 -14
  532. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +14 -2
  533. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +38 -20
  534. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  535. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +2 -2
  536. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +3 -1
  537. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +3 -1
  538. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +27 -5
  539. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
  540. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +6 -6
  541. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -1
  542. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -1
  543. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +52 -2
  544. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
  545. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +2 -2
  546. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +1 -1
  547. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +1 -1
  548. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +5 -8
  549. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
  550. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +2 -2
  551. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +1 -1
  552. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +1 -1
  553. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +4 -10
  554. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
  555. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +8 -8
  556. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -2
  557. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -2
  558. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +18 -8
  559. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +28 -28
  560. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
  561. package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +15 -12
  562. package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +29 -6
  563. package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +29 -6
  564. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +870 -202
  565. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/connection.js +379 -0
  566. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.js +99 -0
  567. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.js +27 -0
  568. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.js +56 -0
  569. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.js +111 -0
  570. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/index.js +163 -0
  571. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.js +89 -0
  572. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/server-context.js +25 -0
  573. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.js +95 -0
  574. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.js +66 -0
  575. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/tools.js +432 -0
  576. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/transport.js +39 -0
  577. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.js +7 -0
  578. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +34 -24
  579. package/node_modules/@deepseek-ai/dsh-mcp-manager/README.i18n.yaml +64 -0
  580. package/node_modules/@deepseek-ai/dsh-mcp-manager/README.md +196 -0
  581. package/node_modules/@deepseek-ai/dsh-mcp-manager/README.zh.md +196 -0
  582. package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/index.js +572 -0
  583. package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/typert.host.js +323 -0
  584. package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/typert.remote-client.js +170 -0
  585. package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/types/index.js +582 -0
  586. package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/types/types.js +8 -0
  587. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/de.json +6 -0
  588. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/en.json +6 -0
  589. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/es.json +6 -0
  590. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/fr.json +6 -0
  591. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/ja.json +6 -0
  592. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/pt.json +6 -0
  593. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/ru.json +6 -0
  594. package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/zh.json +6 -0
  595. package/node_modules/@deepseek-ai/dsh-mcp-manager/package.json +77 -0
  596. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +16 -16
  597. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  598. package/node_modules/@deepseek-ai/dsh-message-quotes/lib/client.js +2 -2
  599. package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +9 -9
  600. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  601. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +38 -15
  602. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
  603. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  604. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
  605. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
  606. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
  607. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +57 -95
  608. package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +4 -4
  609. package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
  610. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  611. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  612. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +15 -3
  613. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  614. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
  615. package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
  616. package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
  617. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  618. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +23 -23
  619. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +2 -2
  620. package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +1 -1
  621. package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +1 -1
  622. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  623. package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +3 -3
  624. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +0 -1
  625. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +12 -12
  626. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +12 -12
  627. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +0 -1
  628. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +38 -38
  629. package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +2 -2
  630. package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +1 -1
  631. package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +1 -1
  632. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +37 -7
  633. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +1 -1
  634. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/repository-cache.js +40 -7
  635. package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +31 -31
  636. package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +4 -4
  637. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  638. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.i18n.yaml +2 -2
  639. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.md +1 -1
  640. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.zh.md +1 -1
  641. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/index.js +2 -2
  642. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +15 -3
  643. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/types/index.js +2 -2
  644. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +17 -17
  645. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  646. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +11 -8
  647. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +21 -1
  648. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +22 -2
  649. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +2 -3
  650. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +428 -31
  651. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +423 -28
  652. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  653. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  654. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  655. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +39 -16
  656. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  657. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  658. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +26 -26
  659. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  660. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
  661. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
  662. package/node_modules/@deepseek-ai/dsh-schedule/package.json +40 -40
  663. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  664. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +19 -19
  665. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +4 -4
  666. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +3 -3
  667. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +3 -3
  668. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +21 -18
  669. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +48 -48
  670. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +39 -39
  671. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +13 -13
  672. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +1 -0
  673. package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
  674. package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
  675. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +19 -19
  676. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  677. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  678. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/lib/index.js +36 -13
  679. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +7 -7
  680. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  681. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  682. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  683. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
  684. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +24 -24
  685. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  686. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +76 -29
  687. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  688. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +12 -12
  689. package/node_modules/@deepseek-ai/dsh-session-projection/README.md +10 -6
  690. package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +10 -6
  691. package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +107 -42
  692. package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +128 -47
  693. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
  694. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
  695. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +1 -1
  696. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +1 -1
  697. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  698. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  699. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  700. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +15 -3
  701. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +41 -41
  702. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  703. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  704. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
  705. package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
  706. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +15 -15
  707. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +20 -20
  708. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  709. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  710. package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
  711. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  712. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  713. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  714. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  715. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  716. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +10 -10
  717. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  718. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  719. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -35
  720. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  721. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
  722. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  723. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +39 -24
  724. package/node_modules/@deepseek-ai/dsh-subagent/README.md +41 -20
  725. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +41 -20
  726. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +580 -872
  727. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +64 -120
  728. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +17 -63
  729. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +1 -1
  730. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +39 -115
  731. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/child-agent.js +6 -4
  732. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +12 -14
  733. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +1 -5
  734. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/descriptor.js +1 -1
  735. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +83 -146
  736. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +5 -31
  737. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +401 -568
  738. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +2 -2
  739. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/types.js +2 -4
  740. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -55
  741. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  742. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
  743. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +2 -2
  744. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +1 -1
  745. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +1 -1
  746. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +19 -19
  747. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  748. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  749. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +0 -1
  750. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
  751. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  752. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +22 -22
  753. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
  754. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  755. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +38 -15
  756. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  757. package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +4 -2
  758. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/breakdown-projection.js +1 -0
  759. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/usage-projection.js +1 -0
  760. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  761. package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.i18n.yaml +85 -0
  762. package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.md +178 -0
  763. package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.zh.md +178 -0
  764. package/node_modules/@deepseek-ai/dsh-tool-agent-team/lib/index.js +308 -0
  765. package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/en.json +6 -0
  766. package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/ja.json +6 -0
  767. package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/zh.json +6 -0
  768. package/node_modules/@deepseek-ai/dsh-tool-agent-team/package.json +63 -0
  769. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +13 -13
  770. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +37 -37
  771. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +27 -27
  772. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +10 -10
  773. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +230 -183
  774. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +17 -17
  775. package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +5 -5
  776. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +28 -28
  777. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +4 -4
  778. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +7 -7
  779. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +7 -7
  780. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +5 -5
  781. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +39 -39
  782. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +31 -31
  783. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +2 -2
  784. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +1 -1
  785. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +1 -1
  786. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -1
  787. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  788. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +19 -19
  789. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +21 -21
  790. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +35 -35
  791. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +28 -28
  792. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +24 -24
  793. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +19 -19
  794. package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
  795. package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -0
  796. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +18 -18
  797. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +23 -23
  798. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +19 -19
  799. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +15 -13
  800. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +14 -12
  801. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +40 -43
  802. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -25
  803. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +53 -38
  804. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +41 -21
  805. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +41 -21
  806. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +235 -98
  807. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +25 -22
  808. package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +32 -32
  809. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +19 -19
  810. package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +6 -6
  811. package/node_modules/@deepseek-ai/dsh-tool-web/README.md +5 -4
  812. package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +5 -4
  813. package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
  814. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +25 -24
  815. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +24 -24
  816. package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -13
  817. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +12 -12
  818. package/node_modules/@deepseek-ai/dsh-tools/package.json +20 -20
  819. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +6 -6
  820. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +10 -8
  821. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +10 -8
  822. package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +17 -0
  823. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +113 -99
  824. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +87 -87
  825. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +10 -10
  826. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  827. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  828. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  829. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
  830. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +1 -1
  831. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +1 -1
  832. package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +5 -6
  833. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +16 -4
  834. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +5 -6
  835. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
  836. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
  837. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  838. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  839. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  840. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  841. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +18 -12
  842. package/node_modules/@deepseek-ai/dsh-web/README.md +38 -7
  843. package/node_modules/@deepseek-ai/dsh-web/README.zh.md +38 -7
  844. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +220 -112
  845. package/node_modules/@deepseek-ai/dsh-web/lib/typert.host.js +178 -0
  846. package/node_modules/@deepseek-ai/dsh-web/lib/typert.remote-client.js +45 -0
  847. package/node_modules/@deepseek-ai/dsh-web/lib/types/index.js +277 -0
  848. package/node_modules/@deepseek-ai/dsh-web/lib/types/types.js +18 -0
  849. package/node_modules/@deepseek-ai/dsh-web/package.json +26 -7
  850. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  851. package/node_modules/@deepseek-ai/dsh-web-app/README.md +2 -0
  852. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +2 -0
  853. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +14 -6
  854. package/node_modules/@deepseek-ai/dsh-web-app/package.json +157 -154
  855. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +1 -1
  856. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.i18n.yaml +12 -12
  857. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.md +22 -12
  858. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.zh.md +22 -12
  859. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/lib/index.js +394 -163
  860. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +30 -19
  861. package/node_modules/@deepseek-ai/dsh-web-fetch-http/lib/index.js +11 -0
  862. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
  863. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-B2q7cWGa.js +199 -0
  864. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-uWlUD22X.css +1 -0
  865. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DFkUqiqq.js +2 -0
  866. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-BbPA7N5Y.js +2 -0
  867. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-BcJWnZHR.js +2 -0
  868. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-CtdShwKQ.js +2 -0
  869. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-DllPV2XI.js +2 -0
  870. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-ZPgsG5h9.js +2 -0
  871. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-CnLRC5W9.js +2 -0
  872. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/vendor-BUMdD3V7.js +411 -0
  873. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +3 -3
  874. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -21
  875. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +8 -8
  876. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +6 -4
  877. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +6 -4
  878. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +30 -18
  879. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -18
  880. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  881. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  882. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +11 -13
  883. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +39 -39
  884. package/node_modules/@deepseek-ai/dsh-working-directory/package.json +21 -21
  885. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  886. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +26 -26
  887. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  888. package/node_modules/@earendil-works/pi-ai/README.md +35 -35
  889. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +59 -71
  890. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +0 -6
  891. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +125 -103
  892. package/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js +51 -18
  893. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +0 -6
  894. package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +57 -2
  895. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +0 -6
  896. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +17 -44
  897. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +0 -5
  898. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +42 -54
  899. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +58 -57
  900. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +0 -6
  901. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -0
  902. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +24 -9
  903. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +4 -11
  904. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +4 -22
  905. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +1 -14
  906. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +9 -3
  907. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/trusted-url.js +12 -0
  908. package/node_modules/@earendil-works/pi-ai/dist/cli.js +6 -2
  909. package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -2
  910. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +1 -1
  911. package/node_modules/@earendil-works/pi-ai/dist/models.js +1 -0
  912. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +1 -1
  913. package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +1 -1
  914. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +1 -1
  915. package/node_modules/@earendil-works/pi-ai/dist/providers/azure.models.js +1 -1
  916. package/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +1 -1
  917. package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +1 -1
  918. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +1 -1
  919. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +1 -1
  920. package/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +144 -111
  921. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  922. package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  923. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  924. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure.json +1 -1
  925. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  926. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  927. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  928. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  929. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  930. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  931. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  932. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  933. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  934. package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  935. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  936. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
  937. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  938. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  939. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  940. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  941. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  942. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  943. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  944. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  945. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  946. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  947. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  948. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  949. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  950. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  951. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  952. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  953. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  954. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  955. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  956. package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +1 -1
  957. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +7 -2
  958. package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +1 -1
  959. package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +1 -1
  960. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +1 -1
  961. package/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +1 -1
  962. package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -1
  963. package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +1 -1
  964. package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +1 -1
  965. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +1 -1
  966. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +1 -1
  967. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +1 -1
  968. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +1 -1
  969. package/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.js +41 -30
  970. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +1 -1
  971. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +1 -1
  972. package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +1 -1
  973. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +1 -1
  974. package/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +1 -1
  975. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +1 -1
  976. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +1 -1
  977. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +1 -1
  978. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +1 -1
  979. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +1 -1
  980. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +1 -1
  981. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +1 -1
  982. package/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +2 -1
  983. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +1 -1
  984. package/node_modules/@earendil-works/pi-ai/dist/providers/schema-builders.js +18 -0
  985. package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +1 -1
  986. package/node_modules/@earendil-works/pi-ai/dist/providers/typesafe.models.js +1 -1
  987. package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +1 -1
  988. package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +1 -1
  989. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +1 -1
  990. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +1 -1
  991. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +1 -1
  992. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +1 -1
  993. package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +1 -1
  994. package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +1 -1
  995. package/node_modules/@earendil-works/pi-ai/dist/telemetry.js +2 -1
  996. package/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +2 -1
  997. package/node_modules/@earendil-works/pi-ai/dist/utils/openrouter-cost.js +34 -0
  998. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +2 -0
  999. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +3 -0
  1000. package/node_modules/@earendil-works/pi-ai/dist/utils/streaming-json.js +513 -0
  1001. package/node_modules/@earendil-works/pi-ai/dist/utils/string-enum.js +20 -0
  1002. package/node_modules/@earendil-works/pi-ai/dist/utils/text.js +9 -0
  1003. package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +1 -1
  1004. package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +27 -277
  1005. package/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
  1006. package/node_modules/@earendil-works/pi-ai/package.json +6 -5
  1007. package/node_modules/@earendil-works/pi-schema/CHANGELOG.md +13 -0
  1008. package/node_modules/@earendil-works/pi-schema/README.md +296 -0
  1009. package/node_modules/@earendil-works/pi-schema/dist/annotations.js +193 -0
  1010. package/node_modules/@earendil-works/pi-schema/dist/builders.js +98 -0
  1011. package/node_modules/@earendil-works/pi-schema/dist/checks.js +447 -0
  1012. package/node_modules/@earendil-works/pi-schema/dist/coerce.js +585 -0
  1013. package/node_modules/@earendil-works/pi-schema/dist/compiler.js +532 -0
  1014. package/node_modules/@earendil-works/pi-schema/dist/explain.js +381 -0
  1015. package/node_modules/@earendil-works/pi-schema/dist/formats/index.js +51 -0
  1016. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/date.js +47 -0
  1017. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/date_time.js +39 -0
  1018. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/duration.js +36 -0
  1019. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/email.js +36 -0
  1020. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/hostname.js +38 -0
  1021. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idn_email.js +36 -0
  1022. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idn_hostname.js +39 -0
  1023. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/format/bidi.js +132 -0
  1024. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/format/puny.js +172 -0
  1025. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/hostname.js +43 -0
  1026. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/idn-hostname.js +71 -0
  1027. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/index.js +30 -0
  1028. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/ascii.js +37 -0
  1029. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/puny.js +56 -0
  1030. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/label/unicode.js +134 -0
  1031. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/idna/pattern/pattern.js +98 -0
  1032. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/ipv4.js +36 -0
  1033. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/ipv6.js +36 -0
  1034. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/iri.js +63 -0
  1035. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/iri_reference.js +40 -0
  1036. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/json_pointer.js +37 -0
  1037. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/json_pointer_uri_fragment.js +37 -0
  1038. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/regex.js +41 -0
  1039. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/relative_json_pointer.js +37 -0
  1040. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/time.js +60 -0
  1041. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri.js +36 -0
  1042. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri_reference.js +36 -0
  1043. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uri_template.js +37 -0
  1044. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/url.js +36 -0
  1045. package/node_modules/@earendil-works/pi-schema/dist/formats/typebox/uuid.js +37 -0
  1046. package/node_modules/@earendil-works/pi-schema/dist/index.js +5 -0
  1047. package/node_modules/@earendil-works/pi-schema/dist/resolver.js +202 -0
  1048. package/node_modules/@earendil-works/pi-schema/dist/shared.js +33 -0
  1049. package/node_modules/@earendil-works/pi-schema/dist/typebox-static.js +5 -0
  1050. package/node_modules/@earendil-works/pi-schema/dist/types.js +3 -0
  1051. package/node_modules/@earendil-works/pi-schema/dist/validator.js +71 -0
  1052. package/node_modules/@earendil-works/pi-schema/package.json +53 -0
  1053. package/node_modules/@earendil-works/pi-telemetry/package.json +4 -2
  1054. package/node_modules/@shikijs/core/dist/index.mjs +57 -43
  1055. package/node_modules/@shikijs/core/package.json +5 -5
  1056. package/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +2 -3
  1057. package/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +2 -3
  1058. package/node_modules/@shikijs/engine-javascript/dist/index.mjs +1 -1
  1059. package/node_modules/@shikijs/engine-javascript/dist/string-CFc1qfdw.mjs +113 -0
  1060. package/node_modules/@shikijs/engine-javascript/package.json +3 -3
  1061. package/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +1 -1
  1062. package/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +6 -4
  1063. package/node_modules/@shikijs/engine-oniguruma/package.json +3 -3
  1064. package/node_modules/@shikijs/langs/package.json +2 -2
  1065. package/node_modules/@shikijs/primitive/dist/index.mjs +30 -33
  1066. package/node_modules/@shikijs/primitive/package.json +3 -3
  1067. package/node_modules/@shikijs/themes/package.json +2 -2
  1068. package/node_modules/@shikijs/types/dist/index.mjs +1 -2
  1069. package/node_modules/@shikijs/types/package.json +2 -2
  1070. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +10 -4
  1071. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  1072. package/node_modules/@smithy/core/package.json +1 -1
  1073. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -2
  1074. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -2
  1075. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  1076. package/node_modules/http2-wrapper/package.json +2 -23
  1077. package/node_modules/http2-wrapper/source/agent.js +70 -4
  1078. package/node_modules/jose/dist/webapi/jwks/remote.js +3 -1
  1079. package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
  1080. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -1
  1081. package/node_modules/jose/package.json +1 -1
  1082. package/node_modules/semver/classes/range.js +2 -2
  1083. package/node_modules/semver/internal/constants.js +30 -0
  1084. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  1085. package/node_modules/semver/package.json +1 -1
  1086. package/node_modules/shiki/dist/bundle-full.mjs +4 -5
  1087. package/node_modules/shiki/dist/bundle-web.mjs +4 -6
  1088. package/node_modules/shiki/dist/core-unwasm.mjs +1 -2
  1089. package/node_modules/shiki/dist/core.mjs +1 -1
  1090. package/node_modules/shiki/dist/engine-oniguruma-XLVxwJtN.mjs +6 -0
  1091. package/node_modules/shiki/dist/engine-oniguruma.mjs +2 -7
  1092. package/node_modules/shiki/dist/index.mjs +2 -2
  1093. package/node_modules/shiki/dist/langs-bundle-full-CSdmXkDy.mjs +1325 -0
  1094. package/node_modules/shiki/dist/langs.mjs +1 -2
  1095. package/node_modules/shiki/dist/rolldown-runtime-782esTHO.mjs +26 -0
  1096. package/node_modules/shiki/dist/themes.mjs +1 -2
  1097. package/node_modules/shiki/dist/wasm.mjs +1 -2
  1098. package/node_modules/shiki/package.json +8 -8
  1099. package/node_modules/tslib/README.md +3 -8
  1100. package/node_modules/tslib/package.json +1 -1
  1101. package/node_modules/tslib/tslib.es6.js +10 -1
  1102. package/node_modules/tslib/tslib.es6.mjs +10 -1
  1103. package/node_modules/tslib/tslib.js +10 -1
  1104. package/package.json +379 -376
  1105. package/node_modules/@deepseek-ai/dsh/lib/dump-config-D97dwXdd.js +0 -64
  1106. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DuXZcU0e.js +0 -2
  1107. package/node_modules/@deepseek-ai/dsh/lib/dump-config-schema-r4V15-lg.js +0 -41
  1108. package/node_modules/@deepseek-ai/dsh/lib/plugin-DscIHF4k.js +0 -102
  1109. package/node_modules/@deepseek-ai/dsh/lib/profile-boot-e2mS45fC.js +0 -330
  1110. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +0 -100
  1111. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +0 -225
  1112. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +0 -225
  1113. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +0 -1638
  1114. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/activity.js +0 -85
  1115. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +0 -3
  1116. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/error.js +0 -23
  1117. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -231
  1118. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/journal.js +0 -65
  1119. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +0 -103
  1120. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/persisted.js +0 -20
  1121. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +0 -327
  1122. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +0 -437
  1123. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +0 -23
  1124. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +0 -235
  1125. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +0 -57
  1126. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +0 -6
  1127. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/ja.json +0 -6
  1128. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +0 -6
  1129. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +0 -68
  1130. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +0 -52
  1131. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +0 -118
  1132. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +0 -118
  1133. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +0 -29
  1134. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.md +0 -1
  1135. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.zh.md +0 -1
  1136. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.svg +0 -1
  1137. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.zh.svg +0 -1
  1138. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +0 -12
  1139. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/de.json +0 -7
  1140. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +0 -7
  1141. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/es.json +0 -7
  1142. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/fr.json +0 -7
  1143. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ja.json +0 -7
  1144. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/pt.json +0 -7
  1145. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ru.json +0 -7
  1146. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +0 -7
  1147. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +0 -54
  1148. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +0 -43
  1149. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +0 -102
  1150. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +0 -102
  1151. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +0 -690
  1152. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +0 -6
  1153. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/ja.json +0 -6
  1154. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +0 -6
  1155. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +0 -66
  1156. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations-krUNq6VU.js +0 -287
  1157. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations.js +0 -26
  1158. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +0 -70
  1159. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +0 -155
  1160. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +0 -155
  1161. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +0 -580
  1162. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +0 -6
  1163. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/ja.json +0 -6
  1164. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +0 -6
  1165. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +0 -61
  1166. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +0 -197
  1167. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +0 -1
  1168. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-C-Uijqkk.js +0 -2
  1169. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-CLu1VCSi.js +0 -2
  1170. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-CjQPq1Mz.js +0 -2
  1171. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BuDKiyD7.js +0 -2
  1172. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-ZtjE4NPI.js +0 -2
  1173. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-Tt81icjn.js +0 -2
  1174. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-B5SDFeDA.js +0 -2
  1175. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/vendor-7utBqO4o.js +0 -411
  1176. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +0 -61
  1177. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.md +0 -142
  1178. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.zh.md +0 -142
  1179. package/node_modules/@deepseek-ai/dsh-web-search-exa/lib/index.js +0 -154
  1180. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/de.json +0 -6
  1181. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/en.json +0 -6
  1182. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/es.json +0 -6
  1183. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/fr.json +0 -6
  1184. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ja.json +0 -6
  1185. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/pt.json +0 -6
  1186. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ru.json +0 -6
  1187. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/zh.json +0 -6
  1188. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +0 -45
  1189. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +0 -82
  1190. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.md +0 -165
  1191. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.zh.md +0 -165
  1192. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/lib/index.js +0 -152
  1193. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/de.json +0 -6
  1194. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/en.json +0 -6
  1195. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/es.json +0 -6
  1196. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/fr.json +0 -6
  1197. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ja.json +0 -6
  1198. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/pt.json +0 -6
  1199. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ru.json +0 -6
  1200. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/zh.json +0 -6
  1201. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +0 -45
  1202. package/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js +0 -21
  1203. package/node_modules/@shikijs/engine-javascript/dist/string-TLTPtCPs.mjs +0 -115
  1204. package/node_modules/shiki/dist/langs-bundle-full-xQVO1Cek.mjs +0 -1326
  1205. package/node_modules/shiki/dist/rolldown-runtime-BBjsoOtd.mjs +0 -27
  1206. package/node_modules/typebox/build/compile/code.mjs +0 -65
  1207. package/node_modules/typebox/build/compile/compile.mjs +0 -12
  1208. package/node_modules/typebox/build/compile/index.mjs +0 -14
  1209. package/node_modules/typebox/build/compile/validator.mjs +0 -91
  1210. package/node_modules/typebox/build/error/errors.mjs +0 -18
  1211. package/node_modules/typebox/build/error/index.mjs +0 -1
  1212. package/node_modules/typebox/build/format/_registry.mjs +0 -96
  1213. package/node_modules/typebox/build/format/date.mjs +0 -19
  1214. package/node_modules/typebox/build/format/date_time.mjs +0 -11
  1215. package/node_modules/typebox/build/format/duration.mjs +0 -8
  1216. package/node_modules/typebox/build/format/email.mjs +0 -8
  1217. package/node_modules/typebox/build/format/format.mjs +0 -22
  1218. package/node_modules/typebox/build/format/hostname.mjs +0 -10
  1219. package/node_modules/typebox/build/format/idn_email.mjs +0 -8
  1220. package/node_modules/typebox/build/format/idn_hostname.mjs +0 -11
  1221. package/node_modules/typebox/build/format/idna/format/bidi.mjs +0 -98
  1222. package/node_modules/typebox/build/format/idna/format/puny.mjs +0 -144
  1223. package/node_modules/typebox/build/format/idna/hostname.mjs +0 -16
  1224. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +0 -43
  1225. package/node_modules/typebox/build/format/idna/index.mjs +0 -2
  1226. package/node_modules/typebox/build/format/idna/label/ascii.mjs +0 -9
  1227. package/node_modules/typebox/build/format/idna/label/puny.mjs +0 -28
  1228. package/node_modules/typebox/build/format/idna/label/unicode.mjs +0 -106
  1229. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +0 -70
  1230. package/node_modules/typebox/build/format/index.mjs +0 -4
  1231. package/node_modules/typebox/build/format/ipv4.mjs +0 -8
  1232. package/node_modules/typebox/build/format/ipv6.mjs +0 -8
  1233. package/node_modules/typebox/build/format/iri.mjs +0 -35
  1234. package/node_modules/typebox/build/format/iri_reference.mjs +0 -14
  1235. package/node_modules/typebox/build/format/json_pointer.mjs +0 -9
  1236. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +0 -9
  1237. package/node_modules/typebox/build/format/regex.mjs +0 -13
  1238. package/node_modules/typebox/build/format/relative_json_pointer.mjs +0 -9
  1239. package/node_modules/typebox/build/format/time.mjs +0 -32
  1240. package/node_modules/typebox/build/format/uri.mjs +0 -8
  1241. package/node_modules/typebox/build/format/uri_reference.mjs +0 -8
  1242. package/node_modules/typebox/build/format/uri_template.mjs +0 -9
  1243. package/node_modules/typebox/build/format/url.mjs +0 -8
  1244. package/node_modules/typebox/build/format/uuid.mjs +0 -9
  1245. package/node_modules/typebox/build/guard/emit.mjs +0 -191
  1246. package/node_modules/typebox/build/guard/globals.mjs +0 -90
  1247. package/node_modules/typebox/build/guard/guard.mjs +0 -221
  1248. package/node_modules/typebox/build/guard/index.mjs +0 -6
  1249. package/node_modules/typebox/build/guard/native.mjs +0 -60
  1250. package/node_modules/typebox/build/guard/string.mjs +0 -168
  1251. package/node_modules/typebox/build/index.mjs +0 -14
  1252. package/node_modules/typebox/build/schema/build.mjs +0 -118
  1253. package/node_modules/typebox/build/schema/check.mjs +0 -14
  1254. package/node_modules/typebox/build/schema/compile.mjs +0 -46
  1255. package/node_modules/typebox/build/schema/engine/_context.mjs +0 -124
  1256. package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +0 -20
  1257. package/node_modules/typebox/build/schema/engine/_externals.mjs +0 -25
  1258. package/node_modules/typebox/build/schema/engine/_functions.mjs +0 -65
  1259. package/node_modules/typebox/build/schema/engine/_reducer.mjs +0 -45
  1260. package/node_modules/typebox/build/schema/engine/_refine.mjs +0 -29
  1261. package/node_modules/typebox/build/schema/engine/_regexp.mjs +0 -4
  1262. package/node_modules/typebox/build/schema/engine/_stack.mjs +0 -209
  1263. package/node_modules/typebox/build/schema/engine/_unique.mjs +0 -5
  1264. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +0 -60
  1265. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +0 -123
  1266. package/node_modules/typebox/build/schema/engine/allOf.mjs +0 -47
  1267. package/node_modules/typebox/build/schema/engine/anyOf.mjs +0 -52
  1268. package/node_modules/typebox/build/schema/engine/boolean.mjs +0 -25
  1269. package/node_modules/typebox/build/schema/engine/const.mjs +0 -30
  1270. package/node_modules/typebox/build/schema/engine/contains.mjs +0 -54
  1271. package/node_modules/typebox/build/schema/engine/dependencies.mjs +0 -45
  1272. package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +0 -40
  1273. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +0 -38
  1274. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +0 -25
  1275. package/node_modules/typebox/build/schema/engine/enum.mjs +0 -33
  1276. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +0 -25
  1277. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +0 -25
  1278. package/node_modules/typebox/build/schema/engine/format.mjs +0 -26
  1279. package/node_modules/typebox/build/schema/engine/if.mjs +0 -47
  1280. package/node_modules/typebox/build/schema/engine/index.mjs +0 -54
  1281. package/node_modules/typebox/build/schema/engine/items.mjs +0 -88
  1282. package/node_modules/typebox/build/schema/engine/maxContains.mjs +0 -42
  1283. package/node_modules/typebox/build/schema/engine/maxItems.mjs +0 -25
  1284. package/node_modules/typebox/build/schema/engine/maxLength.mjs +0 -25
  1285. package/node_modules/typebox/build/schema/engine/maxProperties.mjs +0 -25
  1286. package/node_modules/typebox/build/schema/engine/maximum.mjs +0 -25
  1287. package/node_modules/typebox/build/schema/engine/minContains.mjs +0 -51
  1288. package/node_modules/typebox/build/schema/engine/minItems.mjs +0 -25
  1289. package/node_modules/typebox/build/schema/engine/minLength.mjs +0 -25
  1290. package/node_modules/typebox/build/schema/engine/minProperties.mjs +0 -25
  1291. package/node_modules/typebox/build/schema/engine/minimum.mjs +0 -25
  1292. package/node_modules/typebox/build/schema/engine/multipleOf.mjs +0 -25
  1293. package/node_modules/typebox/build/schema/engine/not.mjs +0 -39
  1294. package/node_modules/typebox/build/schema/engine/oneOf.mjs +0 -59
  1295. package/node_modules/typebox/build/schema/engine/pattern.mjs +0 -29
  1296. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +0 -45
  1297. package/node_modules/typebox/build/schema/engine/prefixItems.mjs +0 -35
  1298. package/node_modules/typebox/build/schema/engine/properties.mjs +0 -75
  1299. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +0 -37
  1300. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +0 -25
  1301. package/node_modules/typebox/build/schema/engine/ref.mjs +0 -52
  1302. package/node_modules/typebox/build/schema/engine/required.mjs +0 -32
  1303. package/node_modules/typebox/build/schema/engine/schema.mjs +0 -362
  1304. package/node_modules/typebox/build/schema/engine/type.mjs +0 -70
  1305. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +0 -51
  1306. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +0 -51
  1307. package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +0 -51
  1308. package/node_modules/typebox/build/schema/errors.mjs +0 -18
  1309. package/node_modules/typebox/build/schema/index.mjs +0 -9
  1310. package/node_modules/typebox/build/schema/intern/index.mjs +0 -1
  1311. package/node_modules/typebox/build/schema/intern/intern.mjs +0 -259
  1312. package/node_modules/typebox/build/schema/parse.mjs +0 -32
  1313. package/node_modules/typebox/build/schema/pointer/index.mjs +0 -2
  1314. package/node_modules/typebox/build/schema/pointer/pointer.mjs +0 -106
  1315. package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +0 -2
  1316. package/node_modules/typebox/build/schema/resolve/index.mjs +0 -1
  1317. package/node_modules/typebox/build/schema/resolve/resolve.mjs +0 -327
  1318. package/node_modules/typebox/build/schema/schema.mjs +0 -11
  1319. package/node_modules/typebox/build/schema/static/_canonical.mjs +0 -2
  1320. package/node_modules/typebox/build/schema/static/_comparer.mjs +0 -2
  1321. package/node_modules/typebox/build/schema/static/_elements.mjs +0 -2
  1322. package/node_modules/typebox/build/schema/static/additionalProperties.mjs +0 -3
  1323. package/node_modules/typebox/build/schema/static/allOf.mjs +0 -2
  1324. package/node_modules/typebox/build/schema/static/anyOf.mjs +0 -2
  1325. package/node_modules/typebox/build/schema/static/const.mjs +0 -2
  1326. package/node_modules/typebox/build/schema/static/enum.mjs +0 -2
  1327. package/node_modules/typebox/build/schema/static/if.mjs +0 -2
  1328. package/node_modules/typebox/build/schema/static/items.mjs +0 -2
  1329. package/node_modules/typebox/build/schema/static/oneOf.mjs +0 -2
  1330. package/node_modules/typebox/build/schema/static/patternProperties.mjs +0 -2
  1331. package/node_modules/typebox/build/schema/static/prefixItems.mjs +0 -2
  1332. package/node_modules/typebox/build/schema/static/properties.mjs +0 -2
  1333. package/node_modules/typebox/build/schema/static/propertyNames.mjs +0 -3
  1334. package/node_modules/typebox/build/schema/static/ref.mjs +0 -3
  1335. package/node_modules/typebox/build/schema/static/required.mjs +0 -3
  1336. package/node_modules/typebox/build/schema/static/schema.mjs +0 -2
  1337. package/node_modules/typebox/build/schema/static/static.mjs +0 -3
  1338. package/node_modules/typebox/build/schema/static/type.mjs +0 -3
  1339. package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +0 -3
  1340. package/node_modules/typebox/build/schema/types/_refine.mjs +0 -18
  1341. package/node_modules/typebox/build/schema/types/additionalItems.mjs +0 -14
  1342. package/node_modules/typebox/build/schema/types/additionalProperties.mjs +0 -14
  1343. package/node_modules/typebox/build/schema/types/allOf.mjs +0 -15
  1344. package/node_modules/typebox/build/schema/types/anchor.mjs +0 -12
  1345. package/node_modules/typebox/build/schema/types/anyOf.mjs +0 -15
  1346. package/node_modules/typebox/build/schema/types/const.mjs +0 -12
  1347. package/node_modules/typebox/build/schema/types/contains.mjs +0 -14
  1348. package/node_modules/typebox/build/schema/types/default.mjs +0 -12
  1349. package/node_modules/typebox/build/schema/types/defs.mjs +0 -12
  1350. package/node_modules/typebox/build/schema/types/dependencies.mjs +0 -16
  1351. package/node_modules/typebox/build/schema/types/dependentRequired.mjs +0 -15
  1352. package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +0 -15
  1353. package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +0 -12
  1354. package/node_modules/typebox/build/schema/types/dynamicRef.mjs +0 -12
  1355. package/node_modules/typebox/build/schema/types/else.mjs +0 -14
  1356. package/node_modules/typebox/build/schema/types/enum.mjs +0 -13
  1357. package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +0 -13
  1358. package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +0 -13
  1359. package/node_modules/typebox/build/schema/types/format.mjs +0 -13
  1360. package/node_modules/typebox/build/schema/types/id.mjs +0 -13
  1361. package/node_modules/typebox/build/schema/types/if.mjs +0 -14
  1362. package/node_modules/typebox/build/schema/types/index.mjs +0 -57
  1363. package/node_modules/typebox/build/schema/types/items.mjs +0 -26
  1364. package/node_modules/typebox/build/schema/types/maxContains.mjs +0 -13
  1365. package/node_modules/typebox/build/schema/types/maxItems.mjs +0 -13
  1366. package/node_modules/typebox/build/schema/types/maxLength.mjs +0 -13
  1367. package/node_modules/typebox/build/schema/types/maxProperties.mjs +0 -13
  1368. package/node_modules/typebox/build/schema/types/maximum.mjs +0 -13
  1369. package/node_modules/typebox/build/schema/types/minContains.mjs +0 -13
  1370. package/node_modules/typebox/build/schema/types/minItems.mjs +0 -13
  1371. package/node_modules/typebox/build/schema/types/minLength.mjs +0 -13
  1372. package/node_modules/typebox/build/schema/types/minProperties.mjs +0 -13
  1373. package/node_modules/typebox/build/schema/types/minimum.mjs +0 -13
  1374. package/node_modules/typebox/build/schema/types/multipleOf.mjs +0 -13
  1375. package/node_modules/typebox/build/schema/types/not.mjs +0 -14
  1376. package/node_modules/typebox/build/schema/types/oneOf.mjs +0 -15
  1377. package/node_modules/typebox/build/schema/types/pattern.mjs +0 -14
  1378. package/node_modules/typebox/build/schema/types/patternProperties.mjs +0 -15
  1379. package/node_modules/typebox/build/schema/types/prefixItems.mjs +0 -14
  1380. package/node_modules/typebox/build/schema/types/properties.mjs +0 -15
  1381. package/node_modules/typebox/build/schema/types/propertyNames.mjs +0 -15
  1382. package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +0 -19
  1383. package/node_modules/typebox/build/schema/types/recursiveRef.mjs +0 -12
  1384. package/node_modules/typebox/build/schema/types/ref.mjs +0 -13
  1385. package/node_modules/typebox/build/schema/types/required.mjs +0 -14
  1386. package/node_modules/typebox/build/schema/types/schema.mjs +0 -14
  1387. package/node_modules/typebox/build/schema/types/then.mjs +0 -14
  1388. package/node_modules/typebox/build/schema/types/type.mjs +0 -15
  1389. package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +0 -14
  1390. package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +0 -14
  1391. package/node_modules/typebox/build/schema/types/uniqueItems.mjs +0 -13
  1392. package/node_modules/typebox/build/system/arguments/arguments.mjs +0 -9
  1393. package/node_modules/typebox/build/system/arguments/index.mjs +0 -1
  1394. package/node_modules/typebox/build/system/environment/environment.mjs +0 -1
  1395. package/node_modules/typebox/build/system/environment/evaluate.mjs +0 -37
  1396. package/node_modules/typebox/build/system/environment/index.mjs +0 -1
  1397. package/node_modules/typebox/build/system/hashing/hash.mjs +0 -232
  1398. package/node_modules/typebox/build/system/hashing/index.mjs +0 -1
  1399. package/node_modules/typebox/build/system/index.mjs +0 -4
  1400. package/node_modules/typebox/build/system/locale/_config.mjs +0 -15
  1401. package/node_modules/typebox/build/system/locale/_locale.mjs +0 -40
  1402. package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -40
  1403. package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -40
  1404. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -40
  1405. package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -40
  1406. package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -40
  1407. package/node_modules/typebox/build/system/locale/en_US.mjs +0 -39
  1408. package/node_modules/typebox/build/system/locale/es_419.mjs +0 -40
  1409. package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -40
  1410. package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -40
  1411. package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -40
  1412. package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -40
  1413. package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -40
  1414. package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -40
  1415. package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -40
  1416. package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -40
  1417. package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -40
  1418. package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -40
  1419. package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -40
  1420. package/node_modules/typebox/build/system/locale/index.mjs +0 -1
  1421. package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -40
  1422. package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -40
  1423. package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -40
  1424. package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -40
  1425. package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -40
  1426. package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -40
  1427. package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -40
  1428. package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -40
  1429. package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -40
  1430. package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -40
  1431. package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -40
  1432. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -40
  1433. package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -40
  1434. package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -40
  1435. package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -40
  1436. package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -40
  1437. package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -40
  1438. package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -40
  1439. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -40
  1440. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -40
  1441. package/node_modules/typebox/build/system/memory/assign.mjs +0 -12
  1442. package/node_modules/typebox/build/system/memory/clone.mjs +0 -113
  1443. package/node_modules/typebox/build/system/memory/create.mjs +0 -29
  1444. package/node_modules/typebox/build/system/memory/discard.mjs +0 -18
  1445. package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
  1446. package/node_modules/typebox/build/system/memory/index.mjs +0 -1
  1447. package/node_modules/typebox/build/system/memory/memory.mjs +0 -7
  1448. package/node_modules/typebox/build/system/memory/metrics.mjs +0 -8
  1449. package/node_modules/typebox/build/system/memory/update.mjs +0 -33
  1450. package/node_modules/typebox/build/system/settings/index.mjs +0 -1
  1451. package/node_modules/typebox/build/system/settings/settings.mjs +0 -36
  1452. package/node_modules/typebox/build/system/system.mjs +0 -6
  1453. package/node_modules/typebox/build/system/unreachable/index.mjs +0 -1
  1454. package/node_modules/typebox/build/system/unreachable/unreachable.mjs +0 -6
  1455. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -11
  1456. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -11
  1457. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -11
  1458. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -11
  1459. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -11
  1460. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -11
  1461. package/node_modules/typebox/build/type/action/capitalize.mjs +0 -11
  1462. package/node_modules/typebox/build/type/action/conditional.mjs +0 -13
  1463. package/node_modules/typebox/build/type/action/constructor_parameters.mjs +0 -11
  1464. package/node_modules/typebox/build/type/action/evaluate.mjs +0 -11
  1465. package/node_modules/typebox/build/type/action/exclude.mjs +0 -11
  1466. package/node_modules/typebox/build/type/action/extract.mjs +0 -11
  1467. package/node_modules/typebox/build/type/action/index.mjs +0 -30
  1468. package/node_modules/typebox/build/type/action/indexed.mjs +0 -14
  1469. package/node_modules/typebox/build/type/action/instance_type.mjs +0 -11
  1470. package/node_modules/typebox/build/type/action/interface.mjs +0 -22
  1471. package/node_modules/typebox/build/type/action/keyof.mjs +0 -11
  1472. package/node_modules/typebox/build/type/action/lowercase.mjs +0 -11
  1473. package/node_modules/typebox/build/type/action/mapped.mjs +0 -13
  1474. package/node_modules/typebox/build/type/action/module.mjs +0 -13
  1475. package/node_modules/typebox/build/type/action/non_nullable.mjs +0 -11
  1476. package/node_modules/typebox/build/type/action/omit.mjs +0 -14
  1477. package/node_modules/typebox/build/type/action/parameters.mjs +0 -11
  1478. package/node_modules/typebox/build/type/action/partial.mjs +0 -11
  1479. package/node_modules/typebox/build/type/action/pick.mjs +0 -14
  1480. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -19
  1481. package/node_modules/typebox/build/type/action/required.mjs +0 -11
  1482. package/node_modules/typebox/build/type/action/return_type.mjs +0 -11
  1483. package/node_modules/typebox/build/type/action/uncapitalize.mjs +0 -11
  1484. package/node_modules/typebox/build/type/action/uppercase.mjs +0 -11
  1485. package/node_modules/typebox/build/type/action/with.mjs +0 -11
  1486. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +0 -66
  1487. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +0 -79
  1488. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +0 -33
  1489. package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +0 -27
  1490. package/node_modules/typebox/build/type/engine/conditional/index.mjs +0 -1
  1491. package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +0 -23
  1492. package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +0 -1
  1493. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +0 -25
  1494. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +0 -16
  1495. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +0 -45
  1496. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +0 -47
  1497. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +0 -47
  1498. package/node_modules/typebox/build/type/engine/cyclic/index.mjs +0 -6
  1499. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +0 -31
  1500. package/node_modules/typebox/build/type/engine/cyclic/target.mjs +0 -16
  1501. package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
  1502. package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +0 -9
  1503. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +0 -37
  1504. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +0 -18
  1505. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +0 -60
  1506. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +0 -33
  1507. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +0 -56
  1508. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +0 -10
  1509. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +0 -8
  1510. package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +0 -12
  1511. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +0 -31
  1512. package/node_modules/typebox/build/type/engine/exclude/index.mjs +0 -1
  1513. package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +0 -16
  1514. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +0 -22
  1515. package/node_modules/typebox/build/type/engine/extract/index.mjs +0 -1
  1516. package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +0 -16
  1517. package/node_modules/typebox/build/type/engine/extract/operation.mjs +0 -22
  1518. package/node_modules/typebox/build/type/engine/helpers/index.mjs +0 -3
  1519. package/node_modules/typebox/build/type/engine/helpers/keys.mjs +0 -8
  1520. package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +0 -15
  1521. package/node_modules/typebox/build/type/engine/helpers/union.mjs +0 -3
  1522. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -14
  1523. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -14
  1524. package/node_modules/typebox/build/type/engine/index.mjs +0 -37
  1525. package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +0 -8
  1526. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -8
  1527. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +0 -8
  1528. package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +0 -8
  1529. package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +0 -5
  1530. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +0 -8
  1531. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +0 -25
  1532. package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +0 -7
  1533. package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +0 -14
  1534. package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +0 -12
  1535. package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +0 -18
  1536. package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +0 -35
  1537. package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +0 -40
  1538. package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +0 -35
  1539. package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +0 -14
  1540. package/node_modules/typebox/build/type/engine/indexed/index.mjs +0 -1
  1541. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +0 -28
  1542. package/node_modules/typebox/build/type/engine/instance_type/index.mjs +0 -1
  1543. package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +0 -21
  1544. package/node_modules/typebox/build/type/engine/instantiate.mjs +0 -158
  1545. package/node_modules/typebox/build/type/engine/interface/index.mjs +0 -1
  1546. package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +0 -23
  1547. package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +0 -9
  1548. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +0 -8
  1549. package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +0 -13
  1550. package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +0 -7
  1551. package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +0 -1
  1552. package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +0 -52
  1553. package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +0 -4
  1554. package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +0 -8
  1555. package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +0 -5
  1556. package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +0 -20
  1557. package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +0 -5
  1558. package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +0 -7
  1559. package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +0 -23
  1560. package/node_modules/typebox/build/type/engine/keyof/index.mjs +0 -1
  1561. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +0 -29
  1562. package/node_modules/typebox/build/type/engine/mapped/index.mjs +0 -1
  1563. package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +0 -15
  1564. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +0 -42
  1565. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +0 -39
  1566. package/node_modules/typebox/build/type/engine/module/index.mjs +0 -1
  1567. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +0 -36
  1568. package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +0 -1
  1569. package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +0 -22
  1570. package/node_modules/typebox/build/type/engine/object/collapse.mjs +0 -14
  1571. package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +0 -8
  1572. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -8
  1573. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +0 -22
  1574. package/node_modules/typebox/build/type/engine/object/from_object.mjs +0 -4
  1575. package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +0 -9
  1576. package/node_modules/typebox/build/type/engine/object/from_type.mjs +0 -23
  1577. package/node_modules/typebox/build/type/engine/object/from_union.mjs +0 -19
  1578. package/node_modules/typebox/build/type/engine/object/index.mjs +0 -1
  1579. package/node_modules/typebox/build/type/engine/omit/from_type.mjs +0 -18
  1580. package/node_modules/typebox/build/type/engine/omit/index.mjs +0 -1
  1581. package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +0 -16
  1582. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -14
  1583. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -14
  1584. package/node_modules/typebox/build/type/engine/parameters/index.mjs +0 -1
  1585. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +0 -25
  1586. package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +0 -11
  1587. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -8
  1588. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +0 -8
  1589. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +0 -11
  1590. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +0 -20
  1591. package/node_modules/typebox/build/type/engine/partial/from_union.mjs +0 -7
  1592. package/node_modules/typebox/build/type/engine/partial/index.mjs +0 -1
  1593. package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +0 -15
  1594. package/node_modules/typebox/build/type/engine/patterns/index.mjs +0 -2
  1595. package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +0 -11
  1596. package/node_modules/typebox/build/type/engine/patterns/template.mjs +0 -20
  1597. package/node_modules/typebox/build/type/engine/pick/from_type.mjs +0 -20
  1598. package/node_modules/typebox/build/type/engine/pick/index.mjs +0 -1
  1599. package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +0 -16
  1600. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  1601. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -27
  1602. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -14
  1603. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -14
  1604. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +0 -7
  1605. package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +0 -11
  1606. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -8
  1607. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +0 -8
  1608. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +0 -11
  1609. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +0 -7
  1610. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +0 -25
  1611. package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +0 -7
  1612. package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +0 -1
  1613. package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +0 -15
  1614. package/node_modules/typebox/build/type/engine/record/from_key.mjs +0 -40
  1615. package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +0 -6
  1616. package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +0 -5
  1617. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +0 -8
  1618. package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +0 -7
  1619. package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +0 -8
  1620. package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +0 -10
  1621. package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +0 -7
  1622. package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +0 -12
  1623. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +0 -12
  1624. package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +0 -39
  1625. package/node_modules/typebox/build/type/engine/record/index.mjs +0 -1
  1626. package/node_modules/typebox/build/type/engine/record/instantiate.mjs +0 -17
  1627. package/node_modules/typebox/build/type/engine/record/record_create.mjs +0 -7
  1628. package/node_modules/typebox/build/type/engine/ref/index.mjs +0 -1
  1629. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +0 -10
  1630. package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +0 -11
  1631. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -8
  1632. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +0 -8
  1633. package/node_modules/typebox/build/type/engine/required/from_object.mjs +0 -11
  1634. package/node_modules/typebox/build/type/engine/required/from_type.mjs +0 -20
  1635. package/node_modules/typebox/build/type/engine/required/from_union.mjs +0 -7
  1636. package/node_modules/typebox/build/type/engine/required/index.mjs +0 -1
  1637. package/node_modules/typebox/build/type/engine/required/instantiate.mjs +0 -15
  1638. package/node_modules/typebox/build/type/engine/rest/index.mjs +0 -1
  1639. package/node_modules/typebox/build/type/engine/rest/spread.mjs +0 -19
  1640. package/node_modules/typebox/build/type/engine/return_type/index.mjs +0 -1
  1641. package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +0 -21
  1642. package/node_modules/typebox/build/type/engine/template_literal/create.mjs +0 -5
  1643. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +0 -81
  1644. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +0 -81
  1645. package/node_modules/typebox/build/type/engine/template_literal/index.mjs +0 -6
  1646. package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +0 -15
  1647. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +0 -26
  1648. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +0 -10
  1649. package/node_modules/typebox/build/type/engine/template_literal/static.mjs +0 -2
  1650. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +0 -26
  1651. package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +0 -14
  1652. package/node_modules/typebox/build/type/engine/with/index.mjs +0 -1
  1653. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -14
  1654. package/node_modules/typebox/build/type/extends/any.mjs +0 -12
  1655. package/node_modules/typebox/build/type/extends/array.mjs +0 -21
  1656. package/node_modules/typebox/build/type/extends/bigint.mjs +0 -9
  1657. package/node_modules/typebox/build/type/extends/boolean.mjs +0 -9
  1658. package/node_modules/typebox/build/type/extends/constructor.mjs +0 -17
  1659. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -6
  1660. package/node_modules/typebox/build/type/extends/enum.mjs +0 -7
  1661. package/node_modules/typebox/build/type/extends/extends.mjs +0 -17
  1662. package/node_modules/typebox/build/type/extends/extends_left.mjs +0 -80
  1663. package/node_modules/typebox/build/type/extends/extends_right.mjs +0 -49
  1664. package/node_modules/typebox/build/type/extends/function.mjs +0 -17
  1665. package/node_modules/typebox/build/type/extends/index.mjs +0 -2
  1666. package/node_modules/typebox/build/type/extends/inference.mjs +0 -62
  1667. package/node_modules/typebox/build/type/extends/integer.mjs +0 -10
  1668. package/node_modules/typebox/build/type/extends/intersect.mjs +0 -15
  1669. package/node_modules/typebox/build/type/extends/literal.mjs +0 -44
  1670. package/node_modules/typebox/build/type/extends/never.mjs +0 -9
  1671. package/node_modules/typebox/build/type/extends/null.mjs +0 -9
  1672. package/node_modules/typebox/build/type/extends/number.mjs +0 -9
  1673. package/node_modules/typebox/build/type/extends/object.mjs +0 -109
  1674. package/node_modules/typebox/build/type/extends/parameters.mjs +0 -28
  1675. package/node_modules/typebox/build/type/extends/record.mjs +0 -23
  1676. package/node_modules/typebox/build/type/extends/result.mjs +0 -36
  1677. package/node_modules/typebox/build/type/extends/return_type.mjs +0 -9
  1678. package/node_modules/typebox/build/type/extends/string.mjs +0 -9
  1679. package/node_modules/typebox/build/type/extends/symbol.mjs +0 -9
  1680. package/node_modules/typebox/build/type/extends/template_literal.mjs +0 -7
  1681. package/node_modules/typebox/build/type/extends/tuple.mjs +0 -61
  1682. package/node_modules/typebox/build/type/extends/undefined.mjs +0 -10
  1683. package/node_modules/typebox/build/type/extends/union.mjs +0 -24
  1684. package/node_modules/typebox/build/type/extends/unknown.mjs +0 -12
  1685. package/node_modules/typebox/build/type/extends/void.mjs +0 -9
  1686. package/node_modules/typebox/build/type/index.mjs +0 -5
  1687. package/node_modules/typebox/build/type/script/index.mjs +0 -1
  1688. package/node_modules/typebox/build/type/script/mapping.mjs +0 -528
  1689. package/node_modules/typebox/build/type/script/parser.mjs +0 -140
  1690. package/node_modules/typebox/build/type/script/script.mjs +0 -22
  1691. package/node_modules/typebox/build/type/script/token/bigint.mjs +0 -14
  1692. package/node_modules/typebox/build/type/script/token/const.mjs +0 -18
  1693. package/node_modules/typebox/build/type/script/token/ident.mjs +0 -26
  1694. package/node_modules/typebox/build/type/script/token/index.mjs +0 -12
  1695. package/node_modules/typebox/build/type/script/token/integer.mjs +0 -19
  1696. package/node_modules/typebox/build/type/script/token/internal/char.mjs +0 -26
  1697. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +0 -15
  1698. package/node_modules/typebox/build/type/script/token/internal/many.mjs +0 -14
  1699. package/node_modules/typebox/build/type/script/token/internal/match.mjs +0 -11
  1700. package/node_modules/typebox/build/type/script/token/internal/optional.mjs +0 -9
  1701. package/node_modules/typebox/build/type/script/token/internal/take.mjs +0 -30
  1702. package/node_modules/typebox/build/type/script/token/internal/trim.mjs +0 -34
  1703. package/node_modules/typebox/build/type/script/token/number.mjs +0 -19
  1704. package/node_modules/typebox/build/type/script/token/rest.mjs +0 -9
  1705. package/node_modules/typebox/build/type/script/token/span.mjs +0 -24
  1706. package/node_modules/typebox/build/type/script/token/string.mjs +0 -20
  1707. package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +0 -26
  1708. package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +0 -38
  1709. package/node_modules/typebox/build/type/script/token/until.mjs +0 -21
  1710. package/node_modules/typebox/build/type/script/token/until_1.mjs +0 -12
  1711. package/node_modules/typebox/build/type/types/_codec.mjs +0 -60
  1712. package/node_modules/typebox/build/type/types/_immutable.mjs +0 -18
  1713. package/node_modules/typebox/build/type/types/_optional.mjs +0 -18
  1714. package/node_modules/typebox/build/type/types/_readonly.mjs +0 -18
  1715. package/node_modules/typebox/build/type/types/_refine.mjs +0 -36
  1716. package/node_modules/typebox/build/type/types/any.mjs +0 -18
  1717. package/node_modules/typebox/build/type/types/array.mjs +0 -25
  1718. package/node_modules/typebox/build/type/types/bigint.mjs +0 -21
  1719. package/node_modules/typebox/build/type/types/boolean.mjs +0 -17
  1720. package/node_modules/typebox/build/type/types/call.mjs +0 -23
  1721. package/node_modules/typebox/build/type/types/constructor.mjs +0 -24
  1722. package/node_modules/typebox/build/type/types/cyclic.mjs +0 -29
  1723. package/node_modules/typebox/build/type/types/deferred.mjs +0 -16
  1724. package/node_modules/typebox/build/type/types/dependent.mjs +0 -24
  1725. package/node_modules/typebox/build/type/types/enum.mjs +0 -22
  1726. package/node_modules/typebox/build/type/types/function.mjs +0 -25
  1727. package/node_modules/typebox/build/type/types/generic.mjs +0 -17
  1728. package/node_modules/typebox/build/type/types/identifier.mjs +0 -17
  1729. package/node_modules/typebox/build/type/types/index.mjs +0 -51
  1730. package/node_modules/typebox/build/type/types/infer.mjs +0 -20
  1731. package/node_modules/typebox/build/type/types/integer.mjs +0 -21
  1732. package/node_modules/typebox/build/type/types/intersect.mjs +0 -24
  1733. package/node_modules/typebox/build/type/types/literal.mjs +0 -62
  1734. package/node_modules/typebox/build/type/types/never.mjs +0 -22
  1735. package/node_modules/typebox/build/type/types/null.mjs +0 -17
  1736. package/node_modules/typebox/build/type/types/number.mjs +0 -21
  1737. package/node_modules/typebox/build/type/types/object.mjs +0 -28
  1738. package/node_modules/typebox/build/type/types/parameter.mjs +0 -21
  1739. package/node_modules/typebox/build/type/types/properties.mjs +0 -15
  1740. package/node_modules/typebox/build/type/types/record.mjs +0 -66
  1741. package/node_modules/typebox/build/type/types/ref.mjs +0 -18
  1742. package/node_modules/typebox/build/type/types/rest.mjs +0 -17
  1743. package/node_modules/typebox/build/type/types/schema.mjs +0 -15
  1744. package/node_modules/typebox/build/type/types/static.mjs +0 -3
  1745. package/node_modules/typebox/build/type/types/string.mjs +0 -22
  1746. package/node_modules/typebox/build/type/types/symbol.mjs +0 -17
  1747. package/node_modules/typebox/build/type/types/template_literal.mjs +0 -37
  1748. package/node_modules/typebox/build/type/types/this.mjs +0 -17
  1749. package/node_modules/typebox/build/type/types/tuple.mjs +0 -25
  1750. package/node_modules/typebox/build/type/types/undefined.mjs +0 -17
  1751. package/node_modules/typebox/build/type/types/union.mjs +0 -24
  1752. package/node_modules/typebox/build/type/types/unknown.mjs +0 -17
  1753. package/node_modules/typebox/build/type/types/unsafe.mjs +0 -20
  1754. package/node_modules/typebox/build/type/types/void.mjs +0 -17
  1755. package/node_modules/typebox/build/typebox.mjs +0 -85
  1756. package/node_modules/typebox/build/value/assert/assert.mjs +0 -28
  1757. package/node_modules/typebox/build/value/assert/index.mjs +0 -1
  1758. package/node_modules/typebox/build/value/check/check.mjs +0 -11
  1759. package/node_modules/typebox/build/value/check/index.mjs +0 -1
  1760. package/node_modules/typebox/build/value/clean/additional.mjs +0 -6
  1761. package/node_modules/typebox/build/value/clean/clean.mjs +0 -17
  1762. package/node_modules/typebox/build/value/clean/from_array.mjs +0 -8
  1763. package/node_modules/typebox/build/value/clean/from_cyclic.mjs +0 -6
  1764. package/node_modules/typebox/build/value/clean/from_intersect.mjs +0 -26
  1765. package/node_modules/typebox/build/value/clean/from_object.mjs +0 -31
  1766. package/node_modules/typebox/build/value/clean/from_record.mjs +0 -32
  1767. package/node_modules/typebox/build/value/clean/from_ref.mjs +0 -8
  1768. package/node_modules/typebox/build/value/clean/from_tuple.mjs +0 -14
  1769. package/node_modules/typebox/build/value/clean/from_type.mjs +0 -21
  1770. package/node_modules/typebox/build/value/clean/from_union.mjs +0 -12
  1771. package/node_modules/typebox/build/value/clean/index.mjs +0 -1
  1772. package/node_modules/typebox/build/value/clone/clone.mjs +0 -12
  1773. package/node_modules/typebox/build/value/clone/index.mjs +0 -1
  1774. package/node_modules/typebox/build/value/codec/callback.mjs +0 -25
  1775. package/node_modules/typebox/build/value/codec/decode.mjs +0 -52
  1776. package/node_modules/typebox/build/value/codec/encode.mjs +0 -52
  1777. package/node_modules/typebox/build/value/codec/from_array.mjs +0 -35
  1778. package/node_modules/typebox/build/value/codec/from_cyclic.mjs +0 -8
  1779. package/node_modules/typebox/build/value/codec/from_intersect.mjs +0 -58
  1780. package/node_modules/typebox/build/value/codec/from_object.mjs +0 -42
  1781. package/node_modules/typebox/build/value/codec/from_record.mjs +0 -39
  1782. package/node_modules/typebox/build/value/codec/from_ref.mjs +0 -31
  1783. package/node_modules/typebox/build/value/codec/from_tuple.mjs +0 -32
  1784. package/node_modules/typebox/build/value/codec/from_type.mjs +0 -22
  1785. package/node_modules/typebox/build/value/codec/from_union.mjs +0 -39
  1786. package/node_modules/typebox/build/value/codec/has.mjs +0 -93
  1787. package/node_modules/typebox/build/value/codec/index.mjs +0 -3
  1788. package/node_modules/typebox/build/value/convert/convert.mjs +0 -15
  1789. package/node_modules/typebox/build/value/convert/from_additional.mjs +0 -18
  1790. package/node_modules/typebox/build/value/convert/from_array.mjs +0 -7
  1791. package/node_modules/typebox/build/value/convert/from_bigint.mjs +0 -6
  1792. package/node_modules/typebox/build/value/convert/from_boolean.mjs +0 -6
  1793. package/node_modules/typebox/build/value/convert/from_cyclic.mjs +0 -6
  1794. package/node_modules/typebox/build/value/convert/from_enum.mjs +0 -6
  1795. package/node_modules/typebox/build/value/convert/from_integer.mjs +0 -6
  1796. package/node_modules/typebox/build/value/convert/from_intersect.mjs +0 -8
  1797. package/node_modules/typebox/build/value/convert/from_literal.mjs +0 -44
  1798. package/node_modules/typebox/build/value/convert/from_null.mjs +0 -6
  1799. package/node_modules/typebox/build/value/convert/from_number.mjs +0 -6
  1800. package/node_modules/typebox/build/value/convert/from_object.mjs +0 -28
  1801. package/node_modules/typebox/build/value/convert/from_record.mjs +0 -23
  1802. package/node_modules/typebox/build/value/convert/from_ref.mjs +0 -8
  1803. package/node_modules/typebox/build/value/convert/from_string.mjs +0 -6
  1804. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +0 -6
  1805. package/node_modules/typebox/build/value/convert/from_tuple.mjs +0 -11
  1806. package/node_modules/typebox/build/value/convert/from_type.mjs +0 -43
  1807. package/node_modules/typebox/build/value/convert/from_undefined.mjs +0 -6
  1808. package/node_modules/typebox/build/value/convert/from_union.mjs +0 -13
  1809. package/node_modules/typebox/build/value/convert/from_void.mjs +0 -6
  1810. package/node_modules/typebox/build/value/convert/index.mjs +0 -1
  1811. package/node_modules/typebox/build/value/convert/try/index.mjs +0 -1
  1812. package/node_modules/typebox/build/value/convert/try/try.mjs +0 -8
  1813. package/node_modules/typebox/build/value/convert/try/try_array.mjs +0 -6
  1814. package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +0 -45
  1815. package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +0 -41
  1816. package/node_modules/typebox/build/value/convert/try/try_null.mjs +0 -44
  1817. package/node_modules/typebox/build/value/convert/try/try_number.mjs +0 -44
  1818. package/node_modules/typebox/build/value/convert/try/try_result.mjs +0 -17
  1819. package/node_modules/typebox/build/value/convert/try/try_string.mjs +0 -12
  1820. package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +0 -44
  1821. package/node_modules/typebox/build/value/create/create.mjs +0 -11
  1822. package/node_modules/typebox/build/value/create/error.mjs +0 -7
  1823. package/node_modules/typebox/build/value/create/from_array.mjs +0 -10
  1824. package/node_modules/typebox/build/value/create/from_bigint.mjs +0 -7
  1825. package/node_modules/typebox/build/value/create/from_boolean.mjs +0 -4
  1826. package/node_modules/typebox/build/value/create/from_constructor.mjs +0 -10
  1827. package/node_modules/typebox/build/value/create/from_cyclic.mjs +0 -6
  1828. package/node_modules/typebox/build/value/create/from_default.mjs +0 -10
  1829. package/node_modules/typebox/build/value/create/from_enum.mjs +0 -6
  1830. package/node_modules/typebox/build/value/create/from_function.mjs +0 -6
  1831. package/node_modules/typebox/build/value/create/from_integer.mjs +0 -8
  1832. package/node_modules/typebox/build/value/create/from_intersect.mjs +0 -8
  1833. package/node_modules/typebox/build/value/create/from_literal.mjs +0 -4
  1834. package/node_modules/typebox/build/value/create/from_never.mjs +0 -5
  1835. package/node_modules/typebox/build/value/create/from_null.mjs +0 -4
  1836. package/node_modules/typebox/build/value/create/from_number.mjs +0 -8
  1837. package/node_modules/typebox/build/value/create/from_object.mjs +0 -9
  1838. package/node_modules/typebox/build/value/create/from_record.mjs +0 -8
  1839. package/node_modules/typebox/build/value/create/from_ref.mjs +0 -9
  1840. package/node_modules/typebox/build/value/create/from_string.mjs +0 -9
  1841. package/node_modules/typebox/build/value/create/from_symbol.mjs +0 -4
  1842. package/node_modules/typebox/build/value/create/from_template_literal.mjs +0 -11
  1843. package/node_modules/typebox/build/value/create/from_tuple.mjs +0 -5
  1844. package/node_modules/typebox/build/value/create/from_type.mjs +0 -61
  1845. package/node_modules/typebox/build/value/create/from_undefined.mjs +0 -4
  1846. package/node_modules/typebox/build/value/create/from_union.mjs +0 -9
  1847. package/node_modules/typebox/build/value/create/from_void.mjs +0 -4
  1848. package/node_modules/typebox/build/value/create/index.mjs +0 -2
  1849. package/node_modules/typebox/build/value/default/default.mjs +0 -15
  1850. package/node_modules/typebox/build/value/default/from_array.mjs +0 -12
  1851. package/node_modules/typebox/build/value/default/from_cyclic.mjs +0 -7
  1852. package/node_modules/typebox/build/value/default/from_default.mjs +0 -13
  1853. package/node_modules/typebox/build/value/default/from_intersect.mjs +0 -9
  1854. package/node_modules/typebox/build/value/default/from_object.mjs +0 -32
  1855. package/node_modules/typebox/build/value/default/from_record.mjs +0 -26
  1856. package/node_modules/typebox/build/value/default/from_ref.mjs +0 -9
  1857. package/node_modules/typebox/build/value/default/from_tuple.mjs +0 -14
  1858. package/node_modules/typebox/build/value/default/from_type.mjs +0 -25
  1859. package/node_modules/typebox/build/value/default/from_union.mjs +0 -14
  1860. package/node_modules/typebox/build/value/default/index.mjs +0 -1
  1861. package/node_modules/typebox/build/value/delta/diff.mjs +0 -135
  1862. package/node_modules/typebox/build/value/delta/edit.mjs +0 -17
  1863. package/node_modules/typebox/build/value/delta/index.mjs +0 -3
  1864. package/node_modules/typebox/build/value/delta/patch.mjs +0 -42
  1865. package/node_modules/typebox/build/value/equal/equal.mjs +0 -6
  1866. package/node_modules/typebox/build/value/equal/index.mjs +0 -1
  1867. package/node_modules/typebox/build/value/errors/errors.mjs +0 -12
  1868. package/node_modules/typebox/build/value/errors/index.mjs +0 -1
  1869. package/node_modules/typebox/build/value/hash/hash.mjs +0 -10
  1870. package/node_modules/typebox/build/value/hash/index.mjs +0 -1
  1871. package/node_modules/typebox/build/value/index.mjs +0 -29
  1872. package/node_modules/typebox/build/value/parse/index.mjs +0 -1
  1873. package/node_modules/typebox/build/value/parse/parse.mjs +0 -47
  1874. package/node_modules/typebox/build/value/pipeline/index.mjs +0 -1
  1875. package/node_modules/typebox/build/value/pipeline/pipeline.mjs +0 -15
  1876. package/node_modules/typebox/build/value/pointer/index.mjs +0 -1
  1877. package/node_modules/typebox/build/value/repair/error.mjs +0 -8
  1878. package/node_modules/typebox/build/value/repair/from_array.mjs +0 -39
  1879. package/node_modules/typebox/build/value/repair/from_enum.mjs +0 -6
  1880. package/node_modules/typebox/build/value/repair/from_intersect.mjs +0 -8
  1881. package/node_modules/typebox/build/value/repair/from_object.mjs +0 -33
  1882. package/node_modules/typebox/build/value/repair/from_record.mjs +0 -33
  1883. package/node_modules/typebox/build/value/repair/from_ref.mjs +0 -9
  1884. package/node_modules/typebox/build/value/repair/from_template_literal.mjs +0 -7
  1885. package/node_modules/typebox/build/value/repair/from_tuple.mjs +0 -12
  1886. package/node_modules/typebox/build/value/repair/from_type.mjs +0 -88
  1887. package/node_modules/typebox/build/value/repair/from_union.mjs +0 -24
  1888. package/node_modules/typebox/build/value/repair/from_unknown.mjs +0 -12
  1889. package/node_modules/typebox/build/value/repair/index.mjs +0 -1
  1890. package/node_modules/typebox/build/value/repair/repair.mjs +0 -20
  1891. package/node_modules/typebox/build/value/shared/index.mjs +0 -4
  1892. package/node_modules/typebox/build/value/shared/optional_undefined.mjs +0 -15
  1893. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +0 -72
  1894. package/node_modules/typebox/build/value/shared/union_score_select.mjs +0 -51
  1895. package/node_modules/typebox/build/value/value.mjs +0 -15
  1896. package/node_modules/typebox/package.json +0 -87
  1897. package/node_modules/typebox/readme.md +0 -371
  1898. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-graph.js +0 -0
  1899. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/types.js +0 -0
  1900. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/validation.js +0 -0
  1901. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/de.json +0 -0
  1902. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/es.json +0 -0
  1903. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/fr.json +0 -0
  1904. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/pt.json +0 -0
  1905. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/ru.json +0 -0
  1906. /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/lib/index.js +0 -0
  1907. /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/de.json +0 -0
  1908. /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/es.json +0 -0
  1909. /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/fr.json +0 -0
  1910. /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/pt.json +0 -0
  1911. /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/ru.json +0 -0
  1912. /package/node_modules/{typebox/build/schema/static/index.mjs → @deepseek-ai/dsh-cua/lib/remote-types.js} +0 -0
  1913. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-profile → dsh-cua-bundle}/lib/index.js +0 -0
  1914. /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/de.json +0 -0
  1915. /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/es.json +0 -0
  1916. /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/fr.json +0 -0
  1917. /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/pt.json +0 -0
  1918. /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/ru.json +0 -0
  1919. /package/node_modules/{typebox/license → @earendil-works/pi-schema/LICENSES/typebox-LICENSE} +0 -0
@@ -1,1638 +0,0 @@
1
- import { Service } from "@deepseek-ai/cordis";
2
- import z from "@deepseek-ai/schemastery";
3
- import { HarnessError, createUserMessage } from "@deepseek-ai/dsh-llm";
4
- import { steerHostSubagentPrompt } from "@deepseek-ai/dsh-subagent/internal";
5
- import { inspect } from "node:util";
6
- import { z as z$1 } from "zod";
7
- import { brandString } from "@deepseek-ai/dsh-brand";
8
- import { randomUUID } from "node:crypto";
9
- import { foldSubagentDescriptor } from "@deepseek-ai/dsh-subagent";
10
- //#region lib/types/error.js
11
- /** Typed Agent Teams failures. */
12
- /** Stable failure raised by the Team domain. */
13
- var TeamError = class extends HarnessError {
14
- constructor(message, code, options) {
15
- super(message, code, options);
16
- this.name = "TeamError";
17
- }
18
- };
19
- /**
20
- * Render an arbitrary thrown value without replacing the original rejection.
21
- * @param error - caught value used in a diagnostic or durable failure record.
22
- * @returns one bounded single-line description.
23
- */
24
- function errorMessage(error) {
25
- if (error instanceof Error) return error.message;
26
- if (typeof error === "string") return error;
27
- return inspect(error, {
28
- breakLength: Infinity,
29
- compact: true,
30
- depth: 4
31
- });
32
- }
33
- //#endregion
34
- //#region lib/types/activity.js
35
- /** One-shot Team change waiters independent of durable state projection. */
36
- /** Owns current Team change waiters and releases each at most once. */
37
- var TeamActivity = class {
38
- waiters = /* @__PURE__ */ new Map();
39
- closed = false;
40
- /**
41
- * Wait for one later Team-domain or member-status change.
42
- * @param id - Team whose next edge wakes the caller.
43
- * @param timeoutMs - bounded wait duration from ten seconds through one hour.
44
- * @param signal - caller cancellation for this wait only.
45
- * @returns whether the wait ended by timeout.
46
- */
47
- async wait(id, timeoutMs, signal) {
48
- if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 1e4 || timeoutMs > 36e5) throw new TeamError("timeoutMs must be an integer from 10000 through 3600000", "TEAM_INVALID_TIMEOUT");
49
- signal.throwIfAborted();
50
- if (this.closed) return { timedOut: false };
51
- return { timedOut: !await new Promise((resolve, reject) => {
52
- let waiters = this.waiters.get(id);
53
- if (waiters === void 0) {
54
- waiters = /* @__PURE__ */ new Set();
55
- this.waiters.set(id, waiters);
56
- }
57
- let settled = false;
58
- const finish = (settle) => {
59
- /* v8 ignore next -- timeout, abort, and notification may race after one winner removes the others. */
60
- if (settled) return;
61
- settled = true;
62
- clearTimeout(timer);
63
- signal.removeEventListener("abort", onAbort);
64
- waiters.delete(waiter);
65
- if (waiters.size === 0) this.waiters.delete(id);
66
- settle();
67
- };
68
- const onAbort = () => {
69
- finish(() => {
70
- const reason = signal.reason;
71
- reject(reason instanceof Error ? reason : new TeamError(`wait_agent aborted: ${errorMessage(reason)}`, "TEAM_WAIT_ABORTED"));
72
- });
73
- };
74
- const waiter = { resolve: () => {
75
- finish(() => {
76
- resolve(true);
77
- });
78
- } };
79
- waiters.add(waiter);
80
- const timer = setTimeout(() => {
81
- finish(() => {
82
- resolve(false);
83
- });
84
- }, timeoutMs);
85
- signal.addEventListener("abort", onAbort, { once: true });
86
- /* v8 ignore next -- requires an abort in the synchronous gap between the pre-check and listener registration. */
87
- if (signal.aborted) onAbort();
88
- }) };
89
- }
90
- /**
91
- * Wake and remove every current waiter for one Team.
92
- * @param id - Team whose current waiters observe the change.
93
- */
94
- notify(id) {
95
- const waiters = this.waiters.get(id);
96
- if (waiters === void 0) return;
97
- this.waiters.delete(id);
98
- for (const waiter of waiters) waiter.resolve();
99
- }
100
- /** Close admission and wake every current waiter during runtime disposal. */
101
- close() {
102
- this.closed = true;
103
- for (const waiters of this.waiters.values()) for (const waiter of waiters) waiter.resolve();
104
- this.waiters.clear();
105
- }
106
- };
107
- //#endregion
108
- //#region lib/types/journal.js
109
- /** Serialized Team transactions over the exact live Lead Session log. */
110
- /** Owns per-Lead transaction order and committed Team event publication. */
111
- var TeamJournal = class {
112
- ctx;
113
- teamProjectionHandle;
114
- onCommit;
115
- tails = /* @__PURE__ */ new Map();
116
- /**
117
- * @param ctx - Team service context with the injected Session service.
118
- * @param teamProjectionHandle - Team state registration owned by the Team service.
119
- * @param onCommit - synchronous notification after the Team event flush succeeds.
120
- */
121
- constructor(ctx, teamProjectionHandle, onCommit) {
122
- this.ctx = ctx;
123
- this.teamProjectionHandle = teamProjectionHandle;
124
- this.onCommit = onCommit;
125
- }
126
- /**
127
- * Read authoritative Team state for one exact live Lead.
128
- * @param root - exact live Team Lead.
129
- * @returns current projected state selected by the Lead Team id.
130
- * @throws when the durable Team projection has failed.
131
- */
132
- state(root) {
133
- const projection = this.teamProjectionHandle.stateOf(root.session);
134
- if (projection.failure !== void 0) throw new Error(projection.failure);
135
- return projection;
136
- }
137
- /**
138
- * Serialize one Lead's asynchronous mutation operation.
139
- * @param rootId - Lead Session identity selecting the transaction queue.
140
- * @param operation - complete read-check-append operation.
141
- * @returns the operation result.
142
- */
143
- async transact(rootId, operation) {
144
- const run = (this.tails.get(rootId) ?? Promise.resolve()).then(operation, operation);
145
- const tail = run.then(() => void 0, () => void 0);
146
- this.tails.set(rootId, tail);
147
- try {
148
- return await run;
149
- } finally {
150
- if (this.tails.get(rootId) === tail) this.tails.delete(rootId);
151
- }
152
- }
153
- /**
154
- * Append and checkpoint one root-owned Team event before publication.
155
- * @param root - exact live Lead whose Session owns the event.
156
- * @param type - Team event discriminant.
157
- * @param data - payload correlated with the event type.
158
- */
159
- async appendAndFlush(root, type, data) {
160
- root.session.append.bind(root.session)(type, data);
161
- await this.ctx.sessions.flush(root.session);
162
- this.onCommit(root);
163
- }
164
- };
165
- //#endregion
166
- //#region lib/types/lifecycle.js
167
- /** Shared admission cutoff and bounded settlement for the Team runtime. */
168
- /** Owns the single Team runtime cancellation fact and disposal timeout. */
169
- var TeamRuntimeLifecycle = class {
170
- disposalTimeoutMs;
171
- operations = /* @__PURE__ */ new Set();
172
- controller = new AbortController();
173
- /**
174
- * @param disposalTimeoutMs - maximum wait for one disposal settlement operation.
175
- */
176
- constructor(disposalTimeoutMs) {
177
- this.disposalTimeoutMs = disposalTimeoutMs;
178
- }
179
- /** Signal aborted exactly when Team runtime admission closes. */
180
- get signal() {
181
- return this.controller.signal;
182
- }
183
- /** Whether Team runtime admission is closed. */
184
- get disposed() {
185
- return this.signal.aborted;
186
- }
187
- /** The exact cancellation reason used to distinguish expected disposal rejection. */
188
- get reason() {
189
- return this.signal.reason;
190
- }
191
- /** Whether a rejection is the runtime cancellation, directly or through an Error cause chain. */
192
- isCancellation(reason) {
193
- const seen = /* @__PURE__ */ new Set();
194
- let current = reason;
195
- while (!seen.has(current)) {
196
- if (this.disposed && current === this.reason) return true;
197
- if (this.disposed && current instanceof TeamError && current.code === "TEAM_DISPOSED") return true;
198
- if (!(current instanceof Error)) return false;
199
- seen.add(current);
200
- current = current.cause;
201
- }
202
- return false;
203
- }
204
- /** Close Team runtime admission and cancel admitted interruptible work. */
205
- close() {
206
- this.controller.abort(new TeamError("Agent Teams service disposed", "TEAM_DISPOSED"));
207
- }
208
- /**
209
- * Track an admitted send or complete creation transaction until it settles.
210
- * @param operation - asynchronous work owned by this runtime.
211
- * @returns the same operation.
212
- */
213
- track(operation) {
214
- this.operations.add(operation);
215
- operation.then(() => {
216
- this.operations.delete(operation);
217
- }, () => {
218
- this.operations.delete(operation);
219
- });
220
- return operation;
221
- }
222
- /**
223
- * Capture outstanding operations after closing admission.
224
- * @returns admitted work still awaiting settlement.
225
- */
226
- pending() {
227
- return [...this.operations];
228
- }
229
- /**
230
- * Await admitted operations and retain failures other than runtime cancellation.
231
- * @param operations - admitted operations captured after the admission cutoff.
232
- * @param failures - aggregate destination for unexpected rejection or timeout.
233
- */
234
- async settle(operations, failures) {
235
- if (operations.length === 0) return;
236
- try {
237
- const outcomes = await this.withTimeout(Promise.allSettled(operations));
238
- for (const outcome of outcomes) if (outcome.status === "rejected" && !this.isCancellation(outcome.reason)) failures.push(outcome.reason);
239
- } catch (error) {
240
- failures.push(error);
241
- }
242
- }
243
- /**
244
- * Bound one runtime settlement operation.
245
- * @param operation - settlement that may otherwise block HMR or process shutdown.
246
- * @returns the operation result.
247
- */
248
- async withTimeout(operation) {
249
- let timer;
250
- const timeout = new Promise((_resolve, reject) => {
251
- timer = setTimeout(() => {
252
- reject(new TeamError(`Agent Teams runtime disposal exceeded ${this.disposalTimeoutMs}ms`, "TEAM_DISPOSAL_TIMEOUT"));
253
- }, this.disposalTimeoutMs);
254
- });
255
- try {
256
- return await Promise.race([operation, timeout]);
257
- } finally {
258
- clearTimeout(timer);
259
- }
260
- }
261
- };
262
- //#endregion
263
- //#region lib/types/types.js
264
- /** Public Agent Teams identities, durable records, and service request values. */
265
- /**
266
- * Brand one root Session identity as its implicit Team identity.
267
- * @param id - Root Session identity.
268
- * @returns the same string branded as a Team identity.
269
- */
270
- function TeamId(id) {
271
- return id;
272
- }
273
- /**
274
- * Brand a validated task id.
275
- * @param id - Team-local task identity.
276
- * @returns the same string branded as a Team task identity.
277
- */
278
- function TeamTaskId(id) {
279
- return id;
280
- }
281
- /**
282
- * Brand a generated peer-message id.
283
- * @param id - Durable mailbox message identity.
284
- * @returns the same string branded as a Team message identity.
285
- */
286
- function TeamMessageId(id) {
287
- return id;
288
- }
289
- //#endregion
290
- //#region lib/types/task-graph.js
291
- /** Complete dependency validation for current Team task snapshots. */
292
- /** Package-private task dependency failure retained for command error mapping. */
293
- var TeamTaskGraphError = class extends Error {
294
- violation;
295
- /**
296
- * @param message - concrete invalid dependency relation.
297
- * @param violation - stable relation category used by Team commands.
298
- */
299
- constructor(message, violation) {
300
- super(message);
301
- this.violation = violation;
302
- this.name = "TeamTaskGraphError";
303
- }
304
- };
305
- /**
306
- * Validate the complete active task graph after replacing one candidate snapshot.
307
- * @param current - current task snapshots before the candidate event.
308
- * @param candidate - new or next-revision task snapshot.
309
- * @throws {TeamTaskGraphError} when an active dependency is missing, duplicated, self-referential, or cyclic.
310
- */
311
- function assertTaskGraphCandidate(current, candidate) {
312
- const tasks = new Map(current.map((task) => [task.id, task]));
313
- tasks.set(candidate.id, candidate);
314
- for (const task of tasks.values()) {
315
- if (task.status === "deleted") continue;
316
- const seen = /* @__PURE__ */ new Set();
317
- for (const blockerId of task.blockedBy) {
318
- if (blockerId === task.id) throw new TeamTaskGraphError(`team task "${task.id}" cannot block itself`, "cycle");
319
- if (seen.has(blockerId)) throw new TeamTaskGraphError(`team task "${task.id}" repeats blocker "${blockerId}"`, "duplicate");
320
- const blocker = tasks.get(blockerId);
321
- if (blocker === void 0 || blocker.status === "deleted") throw new TeamTaskGraphError(`blocker task "${blockerId}" for "${task.id}" is missing or deleted`, "missing");
322
- seen.add(blockerId);
323
- }
324
- }
325
- const visiting = /* @__PURE__ */ new Set();
326
- const visited = /* @__PURE__ */ new Set();
327
- const visit = (id) => {
328
- if (visiting.has(id)) throw new TeamTaskGraphError(`task dependency cycle includes "${id}"`, "cycle");
329
- if (visited.has(id)) return;
330
- const task = tasks.get(id);
331
- if (task === void 0 || task.status === "deleted") return;
332
- visiting.add(id);
333
- for (const blockerId of task.blockedBy) visit(blockerId);
334
- visiting.delete(id);
335
- visited.add(id);
336
- };
337
- for (const task of tasks.values()) visit(task.id);
338
- }
339
- //#endregion
340
- //#region lib/types/task-view.js
341
- /** Pure task-view derivation shared by the task board and the client projection. */
342
- /**
343
- * Whether two normalized file or directory prefixes overlap on path components.
344
- * @param left - normalized write scope.
345
- * @param right - normalized write scope.
346
- * @returns whether either scope contains the other.
347
- */
348
- function scopesOverlap(left, right) {
349
- return left === right || left.startsWith(`${right}/`) || right.startsWith(`${left}/`);
350
- }
351
- /**
352
- * Whether every current blocker of one task completed.
353
- * @param state - Team state supplying sibling tasks.
354
- * @param task - durable task snapshot to test.
355
- * @returns whether the task has no incomplete blockers.
356
- */
357
- function taskReady(state, task) {
358
- return task.blockedBy.every((id) => state.tasks.find((candidate) => candidate.id === id)?.status === "completed");
359
- }
360
- /**
361
- * Derive one task view with owner name, readiness, and advisory write overlaps.
362
- * A committing caller may pass its pre-append state because `task` supplies the
363
- * new value explicitly; owner names, blocker readiness, and other task scopes
364
- * do not change when that snapshot is appended.
365
- * @param state - Team state supplying members and sibling tasks.
366
- * @param task - durable task snapshot to view.
367
- * @returns a detached task view.
368
- */
369
- function projectTaskView(state, task) {
370
- const ownerName = task.ownerId === void 0 ? void 0 : task.ownerId === brandString(state.id) ? "lead" : state.members.find((member) => member.id === task.ownerId)?.name;
371
- const warnings = /* @__PURE__ */ new Set();
372
- for (const other of state.tasks) {
373
- if (other.id === task.id || other.status !== "in_progress") continue;
374
- if (task.writeScopes.some((left) => other.writeScopes.some((right) => scopesOverlap(left, right)))) warnings.add(`write scopes overlap with ${other.id}`);
375
- }
376
- return {
377
- id: task.id,
378
- revision: task.revision,
379
- subject: task.subject,
380
- description: task.description,
381
- status: task.status,
382
- blockedBy: [...task.blockedBy],
383
- writeScopes: [...task.writeScopes],
384
- ...ownerName === void 0 ? {} : { ownerName },
385
- ready: task.status === "pending" && taskReady(state, task),
386
- writeScopeWarnings: [...warnings]
387
- };
388
- }
389
- //#endregion
390
- //#region lib/types/projection.js
391
- /** Team state projected incrementally from committed Session events, with a durable-only client view. */
392
- const nonNegativeSafeInteger = z$1.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
393
- const positiveSafeInteger = nonNegativeSafeInteger.min(1);
394
- const sessionIdSchema = z$1.string().min(1).transform((value) => brandString(value));
395
- const teamIdSchema = z$1.string().min(1).transform((value) => TeamId(value));
396
- const numericTaskIdPattern = /^task-(\d+)$/u;
397
- const teamTaskIdSchema = z$1.string().min(1).refine((value) => {
398
- const match = numericTaskIdPattern.exec(value);
399
- return match === null || Number.isSafeInteger(Number(match[1]));
400
- }, { message: "numeric task id suffix must be a safe integer" }).transform((value) => TeamTaskId(value));
401
- const teamMessageIdSchema = z$1.string().min(1).transform((value) => TeamMessageId(value));
402
- const coreContentBlockTypes = new Set([
403
- "text",
404
- "reasoning",
405
- "image",
406
- "tool-call",
407
- "tool-result"
408
- ]);
409
- const imageAttachmentSchema = z$1.object({
410
- attachmentId: z$1.string().min(1),
411
- mediaType: z$1.enum([
412
- "image/png",
413
- "image/jpeg",
414
- "image/webp",
415
- "image/gif"
416
- ]),
417
- bytes: nonNegativeSafeInteger,
418
- width: positiveSafeInteger,
419
- height: positiveSafeInteger,
420
- name: z$1.string().optional()
421
- }).strict();
422
- const contentBlockSchema = z$1.lazy(() => z$1.union([
423
- z$1.object({
424
- type: z$1.literal("text"),
425
- text: z$1.string()
426
- }).strict(),
427
- z$1.object({
428
- type: z$1.literal("reasoning"),
429
- text: z$1.string()
430
- }).strict(),
431
- z$1.object({
432
- type: z$1.literal("image"),
433
- attachment: imageAttachmentSchema
434
- }).strict(),
435
- z$1.object({
436
- type: z$1.literal("tool-call"),
437
- id: z$1.string().min(1),
438
- name: z$1.string(),
439
- arguments: z$1.string()
440
- }).strict(),
441
- z$1.custom((value) => {
442
- if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
443
- const type = value.type;
444
- return typeof type === "string" && type.length > 0 && !coreContentBlockTypes.has(type);
445
- })
446
- ]));
447
- const teamMemberSnapshotSchema = z$1.object({
448
- id: sessionIdSchema,
449
- name: z$1.string(),
450
- description: z$1.string(),
451
- provider: z$1.string(),
452
- context: z$1.enum(["fresh", "fork"]),
453
- phase: z$1.enum([
454
- "provisioning",
455
- "active",
456
- "failed"
457
- ]),
458
- error: z$1.string().optional()
459
- }).strict();
460
- const teamTaskSnapshotSchema = z$1.object({
461
- id: teamTaskIdSchema,
462
- revision: positiveSafeInteger,
463
- subject: z$1.string(),
464
- description: z$1.string(),
465
- status: z$1.enum([
466
- "pending",
467
- "in_progress",
468
- "completed",
469
- "deleted"
470
- ]),
471
- ownerId: sessionIdSchema.optional(),
472
- blockedBy: z$1.array(teamTaskIdSchema),
473
- writeScopes: z$1.array(z$1.string())
474
- }).strict();
475
- const teamMessageSnapshotSchema = z$1.object({
476
- id: teamMessageIdSchema,
477
- senderId: sessionIdSchema,
478
- senderName: z$1.string(),
479
- targetId: sessionIdSchema,
480
- content: z$1.array(contentBlockSchema)
481
- }).strict();
482
- const teamEventSelectorSchema = z$1.object({
483
- version: nonNegativeSafeInteger,
484
- teamId: teamIdSchema
485
- }).loose();
486
- const teamMemberEventSchema = z$1.object({
487
- version: z$1.literal(2),
488
- teamId: teamIdSchema,
489
- member: teamMemberSnapshotSchema
490
- }).strict();
491
- const teamTaskEventSchema = z$1.object({
492
- version: z$1.literal(2),
493
- teamId: teamIdSchema,
494
- task: teamTaskSnapshotSchema
495
- }).strict();
496
- const teamMessageQueuedEventSchema = z$1.object({
497
- version: z$1.literal(2),
498
- teamId: teamIdSchema,
499
- message: teamMessageSnapshotSchema
500
- }).strict();
501
- const teamMessageDeliveredEventSchema = z$1.object({
502
- version: z$1.literal(2),
503
- teamId: teamIdSchema,
504
- messageId: teamMessageIdSchema,
505
- targetId: sessionIdSchema
506
- }).strict();
507
- /**
508
- * Construct empty state for one Team identity.
509
- * @param rootId - root Session identity.
510
- * @returns empty Team state.
511
- */
512
- function emptyTeamState(rootId) {
513
- return {
514
- id: TeamId(rootId),
515
- members: [],
516
- tasks: [],
517
- messages: [],
518
- delivered: [],
519
- nextTaskNumber: 1
520
- };
521
- }
522
- const teamProjectionEntrySchema = z$1.object({
523
- id: teamIdSchema,
524
- members: z$1.array(teamMemberSnapshotSchema),
525
- tasks: z$1.array(teamTaskSnapshotSchema),
526
- messages: z$1.array(teamMessageSnapshotSchema),
527
- delivered: z$1.array(teamMessageIdSchema),
528
- nextTaskNumber: positiveSafeInteger,
529
- failure: z$1.string().optional()
530
- }).strict();
531
- /**
532
- * Test whether a Session event belongs to the Team domain.
533
- * @param event - candidate Session event.
534
- * @returns whether the event has a Team-owned type.
535
- */
536
- function isTeamEvent(event) {
537
- return event.type === "team/member" || event.type === "team/task" || event.type === "team/message/queued" || event.type === "team/message/delivered";
538
- }
539
- /** Decode one persisted Team value and retain the schema failure as its cause. */
540
- function parsePersisted(type, schema, value) {
541
- try {
542
- return schema.parse(value);
543
- } catch (error) {
544
- throw new Error(`persisted Agent Teams ${type} payload is invalid`, { cause: error });
545
- }
546
- }
547
- /** Decode the complete current-version payload selected by one Team event type. */
548
- function parseCurrentTeamEvent(event) {
549
- switch (event.type) {
550
- case "team/member": return {
551
- ...event,
552
- data: parsePersisted(event.type, teamMemberEventSchema, event.data)
553
- };
554
- case "team/task": return {
555
- ...event,
556
- data: parsePersisted(event.type, teamTaskEventSchema, event.data)
557
- };
558
- case "team/message/queued": return {
559
- ...event,
560
- data: parsePersisted(event.type, teamMessageQueuedEventSchema, event.data)
561
- };
562
- case "team/message/delivered": return {
563
- ...event,
564
- data: parsePersisted(event.type, teamMessageDeliveredEventSchema, event.data)
565
- };
566
- /* v8 ignore next 2 -- TeamEventType is closed and every member is handled above. */
567
- default: return event;
568
- }
569
- }
570
- function applyProjectionEvent(state, event) {
571
- if (state.failure !== void 0) return state;
572
- if (!isTeamEvent(event)) return state;
573
- try {
574
- const selector = parsePersisted(event.type, teamEventSelectorSchema, event.data);
575
- if (selector.teamId !== state.id) return state;
576
- if (selector.version !== 2) throw new Error(`unsupported Agent Teams event version ${String(selector.version)}`);
577
- return applyCurrentTeamEvent(state, parseCurrentTeamEvent(event));
578
- } catch (error) {
579
- /* v8 ignore next -- the owned Team transition throws Error instances. */
580
- return {
581
- ...state,
582
- failure: error instanceof Error ? error.message : String(error)
583
- };
584
- }
585
- }
586
- function replaceAt(items, index, item) {
587
- const next = [...items];
588
- if (index < 0) next.push(item);
589
- else next[index] = item;
590
- return next;
591
- }
592
- function applyCurrentTeamEvent(state, event) {
593
- switch (event.type) {
594
- case "team/member": {
595
- const member = event.data.member;
596
- const index = state.members.findIndex((candidate) => candidate.id === member.id);
597
- const prior = state.members[index];
598
- const named = state.members.find((candidate) => candidate.name === member.name);
599
- if (named !== void 0 && named.id !== member.id) throw new Error(`teammate name "${member.name}" is reused by another member`);
600
- if (prior === void 0) {
601
- if (member.phase !== "provisioning") throw new Error(`teammate "${member.name}" must begin provisioning`);
602
- } else {
603
- if (prior.name !== member.name || prior.provider !== member.provider || prior.context !== member.context) throw new Error(`teammate "${member.id}" changed immutable identity fields`);
604
- if (prior.phase !== "provisioning" || member.phase === "provisioning") throw new Error(`teammate "${member.name}" has an invalid ${prior.phase} -> ${member.phase} transition`);
605
- }
606
- return {
607
- ...state,
608
- members: replaceAt(state.members, index, member)
609
- };
610
- }
611
- case "team/task": {
612
- const task = event.data.task;
613
- const index = state.tasks.findIndex((candidate) => candidate.id === task.id);
614
- const prior = state.tasks[index];
615
- if (prior === void 0 && task.revision !== 1) throw new Error(`team task "${task.id}" must begin at revision 1`);
616
- if (prior !== void 0 && task.revision !== prior.revision + 1) throw new Error(`team task "${task.id}" revision is not contiguous`);
617
- assertTaskGraphCandidate(state.tasks, task);
618
- let nextTaskNumber = state.nextTaskNumber;
619
- const match = numericTaskIdPattern.exec(task.id);
620
- if (match !== null) {
621
- const number = Number(match[1]);
622
- nextTaskNumber = Math.max(nextTaskNumber, number === Number.MAX_SAFE_INTEGER ? number : number + 1);
623
- }
624
- return {
625
- ...state,
626
- tasks: replaceAt(state.tasks, index, task),
627
- nextTaskNumber
628
- };
629
- }
630
- case "team/message/queued": {
631
- const message = event.data.message;
632
- if (state.messages.some((candidate) => candidate.id === message.id)) throw new Error(`team message "${message.id}" was queued twice`);
633
- return {
634
- ...state,
635
- messages: [...state.messages, message]
636
- };
637
- }
638
- case "team/message/delivered": {
639
- const queued = state.messages.find((message) => message.id === event.data.messageId);
640
- if (queued === void 0) throw new Error(`team message "${event.data.messageId}" was delivered before queueing`);
641
- if (queued.targetId !== event.data.targetId) throw new Error(`team message "${event.data.messageId}" target changed`);
642
- if (state.delivered.includes(event.data.messageId)) throw new Error(`team message "${event.data.messageId}" was delivered twice`);
643
- return {
644
- ...state,
645
- delivered: [...state.delivered, event.data.messageId]
646
- };
647
- }
648
- /* v8 ignore next 2 -- TeamEventType is closed and every member is handled above. */
649
- default: return state;
650
- }
651
- }
652
- const teamMemberProjectionSchema = z$1.object({
653
- id: sessionIdSchema,
654
- name: z$1.string(),
655
- role: z$1.enum(["lead", "teammate"]),
656
- phase: z$1.enum([
657
- "provisioning",
658
- "active",
659
- "failed"
660
- ]),
661
- error: z$1.string().optional()
662
- }).strict();
663
- const teamTaskViewSchema = z$1.object({
664
- id: teamTaskIdSchema,
665
- revision: positiveSafeInteger,
666
- subject: z$1.string(),
667
- description: z$1.string(),
668
- status: z$1.enum([
669
- "pending",
670
- "in_progress",
671
- "completed",
672
- "deleted"
673
- ]),
674
- blockedBy: z$1.array(teamTaskIdSchema),
675
- writeScopes: z$1.array(z$1.string()),
676
- ownerName: z$1.string().optional(),
677
- ready: z$1.boolean(),
678
- writeScopeWarnings: z$1.array(z$1.string())
679
- }).strict();
680
- const teamProjectionSchema = z$1.object({
681
- members: z$1.array(teamMemberProjectionSchema),
682
- tasks: z$1.array(teamTaskViewSchema),
683
- failure: z$1.string().optional()
684
- }).strict();
685
- /** Client views keyed by the member and task collections they were derived from. */
686
- const teamProjectionViews = /* @__PURE__ */ new WeakMap();
687
- function buildTeamProjection(state) {
688
- const members = [{
689
- id: brandString(state.id),
690
- name: "lead",
691
- role: "lead",
692
- phase: "active"
693
- }];
694
- for (const member of state.members) members.push({
695
- id: member.id,
696
- name: member.name,
697
- role: "teammate",
698
- phase: member.phase,
699
- ...member.error === void 0 ? {} : { error: member.error }
700
- });
701
- return {
702
- members,
703
- tasks: state.tasks.filter((task) => task.status !== "deleted").map((task) => projectTaskView(state, task)),
704
- ...state.failure === void 0 ? {} : { failure: state.failure }
705
- };
706
- }
707
- /**
708
- * Durable client view of one Team state. Mailbox-only state changes reuse the
709
- * previous view reference, so the live drive publishes nothing for them.
710
- * A failure is terminal: later events retain the failed state reference and
711
- * do not republish its view.
712
- * @param state - current Team state.
713
- * @returns the roster and non-deleted task board, plus any projection failure.
714
- */
715
- function teamProjectionView(state) {
716
- if (state.failure !== void 0) return buildTeamProjection(state);
717
- let byTasks = teamProjectionViews.get(state.members);
718
- if (byTasks === void 0) {
719
- byTasks = /* @__PURE__ */ new WeakMap();
720
- teamProjectionViews.set(state.members, byTasks);
721
- }
722
- let view = byTasks.get(state.tasks);
723
- if (view === void 0) {
724
- view = buildTeamProjection(state);
725
- byTasks.set(state.tasks, view);
726
- }
727
- return view;
728
- }
729
- /** Team projection selected by the projected Session identity; the wire view carries durable roster and task state only. */
730
- const teamProjectionDefinition = {
731
- key: "agentTeam",
732
- stateVersion: 4,
733
- stateSchema: teamProjectionEntrySchema,
734
- init: (header) => emptyTeamState(header.id),
735
- apply: applyProjectionEvent,
736
- wire: {
737
- viewSchema: teamProjectionSchema,
738
- view: teamProjectionView
739
- }
740
- };
741
- //#endregion
742
- //#region lib/types/persisted.js
743
- /** Short-lived read-handle access to persisted Team member Sessions. */
744
- /**
745
- * Read one stored session's header and complete event log through a
746
- * short-lived read handle, closing the handle before returning.
747
- * @param persistence - the durable session store.
748
- * @param id - the stored session to read.
749
- * @param signal - cancellation observed by open and read.
750
- * @returns the stored header and every committed event.
751
- */
752
- async function readPersistedSession(persistence, id, signal) {
753
- const handle = await persistence.open(id, "read", { signal });
754
- try {
755
- const { events } = await handle.read(0, void 0, { signal });
756
- return {
757
- header: handle.header,
758
- inheritedEventCount: handle.inheritedEventCount,
759
- events
760
- };
761
- } finally {
762
- await handle.close();
763
- }
764
- }
765
- //#endregion
766
- //#region lib/types/session-message.js
767
- /** Durable Session-message acceptance checks for teammate provisioning. */
768
- /** Fold the durable inbox suffix into the messages still awaiting a claim. */
769
- function pendingInboxMessages(events) {
770
- const inbox = {
771
- "next-turn": [],
772
- "next-step": []
773
- };
774
- for (const event of events) {
775
- if (event.type !== "agent/inbox/spliced") continue;
776
- inbox[event.data.target].splice(event.data.start, event.data.removedCount ?? 0, ...event.data.inserted);
777
- }
778
- return [...inbox["next-turn"], ...inbox["next-step"]];
779
- }
780
- /**
781
- * Test whether one message is model-visible or still durably pending.
782
- * @param events - one Session's non-inherited event suffix.
783
- * @param predicate - identity check for the accepted message.
784
- * @returns whether history or the current inbox contains a match.
785
- */
786
- function messageAccepted(events, predicate) {
787
- return events.some((event) => event.type === "user/message" && predicate(event.data)) || pendingInboxMessages(events).some(predicate);
788
- }
789
- //#endregion
790
- //#region lib/types/validation.js
791
- /** Input normalization shared by Team roster and task commands. */
792
- /**
793
- * Normalize one required human-authored string.
794
- * @param value - raw input value.
795
- * @param field - diagnostic field name.
796
- * @param maxLength - maximum normalized character count.
797
- * @returns trimmed non-empty text.
798
- */
799
- function requiredText(value, field, maxLength) {
800
- const text = value.trim();
801
- if (text.length === 0) throw new TeamError(`${field} must be non-empty`, "TEAM_INVALID_ARGUMENT");
802
- if (text.length > maxLength) throw new TeamError(`${field} exceeds ${maxLength} characters`, "TEAM_INVALID_ARGUMENT");
803
- return text;
804
- }
805
- /**
806
- * Normalize one workspace-relative path prefix without treating it as a lock.
807
- * @param value - user-authored path prefix.
808
- * @returns normalized slash-separated prefix.
809
- */
810
- function writeScope(value) {
811
- const normalized = value.replaceAll("\\", "/").replace(/^\.\//u, "").replace(/\/+$/u, "");
812
- const segments = normalized.split("/");
813
- if (normalized.length === 0 || normalized.startsWith("/") || /^[a-z]:/iu.test(normalized) || segments.some((segment) => segment.length === 0 || segment === "." || segment === "..")) throw new TeamError(`invalid workspace-relative write scope ${JSON.stringify(value)}`, "TEAM_INVALID_WRITE_SCOPE");
814
- return normalized;
815
- }
816
- //#endregion
817
- //#region lib/types/roster.js
818
- /** Team membership, continuable-child provisioning, and roster-owned teardown. */
819
- const MEMBER_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;
820
- /**
821
- * Resolve one active Team member by model-facing name, including the Lead pseudo-row.
822
- * @param root - exact live Team Lead.
823
- * @param state - current Team state.
824
- * @param rawName - candidate member name.
825
- * @returns resolved durable id and normalized name.
826
- */
827
- function resolveActiveMember(root, state, rawName) {
828
- const name = rawName.trim();
829
- if (name === "lead") return {
830
- id: root.id,
831
- name
832
- };
833
- const member = state.members.find((candidate) => candidate.name === name);
834
- if (member === void 0 || member.phase !== "active") throw new TeamError(`active teammate "${name}" not found`, "TEAM_MEMBER_NOT_FOUND");
835
- return {
836
- id: member.id,
837
- name
838
- };
839
- }
840
- /** Owns Team identities and the lifecycle of rostered continuable children. */
841
- var TeamRoster = class {
842
- ctx;
843
- journal;
844
- lifecycle;
845
- maxMembers;
846
- /**
847
- * @param ctx - Team service context with Agent, Session, persistence, and subagent services.
848
- * @param journal - authoritative Lead-log transaction owner.
849
- * @param lifecycle - shared Team runtime admission cutoff.
850
- * @param maxMembers - maximum immutable roster entries per Team.
851
- */
852
- constructor(ctx, journal, lifecycle, maxMembers) {
853
- this.ctx = ctx;
854
- this.journal = journal;
855
- this.lifecycle = lifecycle;
856
- this.maxMembers = maxMembers;
857
- }
858
- /**
859
- * Resolve one exact live Agent's Team role.
860
- * @param agent - exact live Agent used as the authority credential.
861
- * @returns its root, Team identity, role, and model-facing name.
862
- */
863
- membership(agent) {
864
- const membership = this.tryMembership(agent);
865
- if (membership === void 0) throw new TeamError(`agent "${agent.id}" is not a member of an active Agent Team`, "TEAM_NOT_MEMBER");
866
- return membership;
867
- }
868
- /**
869
- * Resolve a caller without throwing for scoped installation and lifecycle observers.
870
- * @param agent - candidate exact live Agent.
871
- * @returns Team membership, or undefined for non-Team subagents and stale identities.
872
- */
873
- tryMembership(agent) {
874
- if (this.ctx.agents.get(agent.id) !== agent) return void 0;
875
- try {
876
- const parentId = agent.session.header.parentSession;
877
- if (parentId !== void 0) {
878
- const root = this.ctx.agents.get(parentId);
879
- if (root !== void 0) {
880
- const member = this.journal.state(root).members.find((candidate) => candidate.id === agent.id);
881
- if (member?.phase === "active" || member?.phase === "provisioning") return {
882
- root,
883
- id: TeamId(root.id),
884
- role: "teammate",
885
- name: member.name
886
- };
887
- if (this.subagentDescriptor(agent)) return void 0;
888
- return {
889
- root: agent,
890
- id: TeamId(agent.id),
891
- role: "lead",
892
- name: "lead"
893
- };
894
- }
895
- }
896
- if (this.subagentDescriptor(agent)) return void 0;
897
- return {
898
- root: agent,
899
- id: TeamId(agent.id),
900
- role: "lead",
901
- name: "lead"
902
- };
903
- } catch {
904
- return;
905
- }
906
- }
907
- /**
908
- * List the runtime-enriched roster visible to one Team member.
909
- * @param membership - exact caller membership resolved by this roster.
910
- * @returns Lead and teammate rows in creation order.
911
- */
912
- list(membership) {
913
- const { root } = membership;
914
- const state = this.journal.state(root);
915
- const result = [{
916
- id: root.id,
917
- name: "lead",
918
- role: "lead",
919
- status: availability(root),
920
- ...root.options.model === void 0 ? {} : { model: root.options.model },
921
- diagnostics: []
922
- }];
923
- for (const member of state.members) {
924
- const live = this.ctx.agents.get(member.id);
925
- const model = live?.options.model ?? root.options.model;
926
- result.push({
927
- id: member.id,
928
- name: member.name,
929
- role: "teammate",
930
- status: member.phase === "failed" ? "failed" : member.phase === "provisioning" ? "provisioning" : availability(live),
931
- description: member.description,
932
- provider: member.provider,
933
- context: member.context,
934
- ...model === void 0 ? {} : { model },
935
- diagnostics: member.error === void 0 ? [] : [member.error]
936
- });
937
- }
938
- return result;
939
- }
940
- /**
941
- * Create one named, continuable direct child of the Team Lead.
942
- * @param caller - exact live Lead Agent.
943
- * @param request - immutable name, description, prompt, context mode, provider, and cancellation.
944
- * @returns the active roster row.
945
- */
946
- async spawn(caller, request) {
947
- if (this.lifecycle.disposed) throw new TeamError("Agent Teams service is disposing", "TEAM_DISPOSED");
948
- return await this.lifecycle.track(this.spawnAdmitted(caller, request));
949
- }
950
- /**
951
- * Reconcile provisioning state when one Team member Session starts.
952
- * @param agent - newly started exact live Agent.
953
- * @param signal - shared runtime cancellation.
954
- */
955
- async recoverFor(agent, signal) {
956
- signal.throwIfAborted();
957
- const membership = this.tryMembership(agent);
958
- if (membership?.role === "lead") await this.reconcileProvisioning(membership.root, signal);
959
- }
960
- /**
961
- * Interrupt one live teammate turn without clearing its pending inbox.
962
- * @param caller - exact live Lead Agent.
963
- * @param targetName - durable teammate name.
964
- * @returns the target status sampled before cancellation.
965
- */
966
- interrupt(caller, targetName) {
967
- const membership = this.membership(caller);
968
- if (membership.role !== "lead") throw new TeamError("only the Team Lead can interrupt teammates", "TEAM_LEAD_REQUIRED");
969
- const state = this.journal.state(membership.root);
970
- const target = resolveActiveMember(membership.root, state, targetName);
971
- if (target.id === membership.root.id) throw new TeamError("the Team Lead cannot interrupt itself", "TEAM_INVALID_TARGET");
972
- const live = this.ctx.agents.get(target.id);
973
- if (live === void 0) return { previousStatus: "inactive" };
974
- const previousStatus = availability(live);
975
- this.ctx.subagents.interrupt(target.id, {
976
- kind: "ancestor",
977
- agent: caller
978
- });
979
- return { previousStatus };
980
- }
981
- /**
982
- * Group exact live roster children by their current Lead for runtime teardown.
983
- * @returns each live Lead and the roster child ids currently in the Agent registry.
984
- */
985
- liveChildrenByRoot() {
986
- const teams = /* @__PURE__ */ new Map();
987
- for (const agent of this.ctx.agents.list()) {
988
- const rootId = agent.session.header.parentSession;
989
- if (rootId === void 0) continue;
990
- const root = this.ctx.agents.get(rootId);
991
- if (root === void 0 || !this.journal.state(root).members.some((member) => member.id === agent.id)) continue;
992
- const children = teams.get(root) ?? [];
993
- children.push(agent.id);
994
- teams.set(root, children);
995
- }
996
- return teams;
997
- }
998
- /**
999
- * Release exact teammate Activations through the continuation lifecycle owner.
1000
- * @param root - exact live Team Lead authorizing release.
1001
- * @param childIds - selected roster child ids.
1002
- */
1003
- async stopTeammates(root, childIds) {
1004
- await this.lifecycle.withTimeout(this.ctx.subagents.drainChildren(root, childIds));
1005
- }
1006
- /** Perform one creation admitted before the Team runtime disposal cutoff. */
1007
- async spawnAdmitted(caller, request) {
1008
- const membership = this.membership(caller);
1009
- if (membership.role !== "lead") throw new TeamError("only the Team Lead can create teammates", "TEAM_LEAD_REQUIRED");
1010
- const signal = AbortSignal.any([request.signal, this.lifecycle.signal]);
1011
- signal.throwIfAborted();
1012
- const root = membership.root;
1013
- const name = this.memberName(request.name);
1014
- const description = requiredText(request.description, "description", 200);
1015
- const childId = brandString(randomUUID());
1016
- const member = {
1017
- id: childId,
1018
- name,
1019
- description,
1020
- provider: requiredText(request.provider, "provider", 200),
1021
- context: request.context,
1022
- phase: "provisioning"
1023
- };
1024
- await this.journal.transact(root.id, async () => {
1025
- const state = this.journal.state(root);
1026
- if (state.members.some((member) => member.name === name)) throw new TeamError(`teammate name "${name}" was already used in this Team`, "TEAM_MEMBER_NAME_TAKEN");
1027
- if (state.members.length >= this.maxMembers) throw new TeamError(`Team member limit ${this.maxMembers} reached`, "TEAM_MEMBER_LIMIT");
1028
- await this.journal.appendAndFlush(root, "team/member", {
1029
- version: 2,
1030
- teamId: TeamId(root.id),
1031
- member
1032
- });
1033
- });
1034
- try {
1035
- const started = await this.ctx.subagents.startActivation({
1036
- delivery: "parent",
1037
- childId,
1038
- provider: request.provider,
1039
- label: description,
1040
- request: {
1041
- prompt: request.prompt,
1042
- parent: root
1043
- },
1044
- signal
1045
- });
1046
- await this.checkpointInitialPrompt(childId, started.messageId, signal);
1047
- } catch (error) {
1048
- const failed = {
1049
- ...member,
1050
- phase: "failed",
1051
- error: errorMessage(error)
1052
- };
1053
- try {
1054
- const phase = await this.settleProvisioning(root, failed);
1055
- await this.stopTeammates(root, [childId]);
1056
- if (phase === "active") throw new TeamError(`teammate "${name}" became active while its creator reported failure`, "TEAM_PROVISIONING_CONFLICT", { cause: error });
1057
- } catch (recordError) {
1058
- throw new AggregateError([error, recordError], "teammate creation and durable failure recording both failed");
1059
- }
1060
- throw error;
1061
- }
1062
- const active = {
1063
- ...member,
1064
- phase: "active"
1065
- };
1066
- if (await this.settleProvisioning(root, active) === "failed") {
1067
- const conflict = new TeamError(`teammate "${name}" was reconciled as failed while creation was in progress`, "TEAM_PROVISIONING_CONFLICT");
1068
- try {
1069
- await this.stopTeammates(root, [childId]);
1070
- } catch (cleanupError) {
1071
- /* v8 ignore next -- requires the independently tested HMR settlement conflict and cleanup failure together. */
1072
- throw new AggregateError([conflict, cleanupError], "provisioning conflict cleanup failed");
1073
- }
1074
- throw conflict;
1075
- }
1076
- return { member: this.memberView(active) };
1077
- }
1078
- /** Flush the accepted initial inbox item before the Lead can commit `active`. */
1079
- async checkpointInitialPrompt(childId, messageId, signal) {
1080
- while (true) {
1081
- signal.throwIfAborted();
1082
- const session = this.ctx.sessions.get(childId);
1083
- if (session === void 0) {
1084
- const stored = await readPersistedSession(this.ctx.sessionPersistence, childId, signal);
1085
- if (messageAccepted(stored.events.slice(stored.inheritedEventCount), (message) => message.id === messageId)) return;
1086
- throw new TeamError(`teammate "${childId}" initial prompt was not durably accepted`, "TEAM_PROVISIONING_CONFLICT");
1087
- }
1088
- const progress = Promise.withResolvers();
1089
- progress.promise.catch(() => void 0);
1090
- const stopEvent = this.ctx.on("session/event", (candidate) => {
1091
- if (candidate === session) progress.resolve();
1092
- });
1093
- const stopDisposed = this.ctx.on("session/disposed", (candidate) => {
1094
- if (candidate === session) progress.resolve();
1095
- });
1096
- const onAbort = () => {
1097
- const reason = signal.reason;
1098
- progress.reject(reason instanceof Error ? reason : new TeamError(`teammate creation aborted: ${errorMessage(reason)}`, "TEAM_DISPOSED"));
1099
- };
1100
- signal.addEventListener("abort", onAbort, { once: true });
1101
- try {
1102
- signal.throwIfAborted();
1103
- await this.ctx.sessions.flush(session);
1104
- if (messageAccepted(session.snapshotEvents(session.inheritedEventCount), (message) => message.id === messageId)) return;
1105
- if (this.ctx.sessions.get(childId) !== session) continue;
1106
- await progress.promise;
1107
- } finally {
1108
- signal.removeEventListener("abort", onAbort);
1109
- stopDisposed();
1110
- stopEvent();
1111
- }
1112
- }
1113
- }
1114
- /** Settle provisioning-only members from their independently durable child Sessions. */
1115
- async reconcileProvisioning(root, signal) {
1116
- const provisioning = this.journal.state(root).members.filter((member) => member.phase === "provisioning");
1117
- for (const member of provisioning) {
1118
- signal.throwIfAborted();
1119
- if (this.ctx.agents.get(member.id) !== void 0) continue;
1120
- let phase = "failed";
1121
- let failure = "provisioning did not leave a resumable child Session";
1122
- try {
1123
- const loaded = await readPersistedSession(this.ctx.sessionPersistence, member.id, signal);
1124
- const suffix = loaded.events.slice(loaded.inheritedEventCount);
1125
- const descriptor = foldSubagentDescriptor(suffix);
1126
- const acceptedInitialPrompt = messageAccepted(suffix, (message) => message.source.kind === "user");
1127
- if (loaded.header.parentSession === root.id && descriptor?.mode === "continuable" && descriptor.provider === member.provider && acceptedInitialPrompt) phase = "active";
1128
- else failure = "persisted child Session does not match the provisioned continuation";
1129
- } catch (error) {
1130
- failure = `child Session recovery failed: ${errorMessage(error)}`;
1131
- }
1132
- signal.throwIfAborted();
1133
- await this.journal.transact(root.id, async () => {
1134
- signal.throwIfAborted();
1135
- const current = this.journal.state(root).members.find((candidate) => candidate.id === member.id);
1136
- if (current?.phase !== "provisioning") return;
1137
- const settled = {
1138
- ...current,
1139
- phase,
1140
- ...phase === "failed" ? { error: failure } : {}
1141
- };
1142
- await this.journal.appendAndFlush(root, "team/member", {
1143
- version: 2,
1144
- teamId: TeamId(root.id),
1145
- member: settled
1146
- });
1147
- });
1148
- }
1149
- }
1150
- /** Build one runtime member row after successful creation. */
1151
- memberView(member) {
1152
- const live = this.ctx.agents.get(member.id);
1153
- return {
1154
- id: member.id,
1155
- name: member.name,
1156
- role: "teammate",
1157
- status: availability(live),
1158
- description: member.description,
1159
- provider: member.provider,
1160
- context: member.context,
1161
- ...live?.options.model === void 0 ? {} : { model: live.options.model },
1162
- diagnostics: []
1163
- };
1164
- }
1165
- /** Validate a never-reused model-facing teammate name. */
1166
- memberName(value) {
1167
- if (!MEMBER_NAME.test(value) || value.length > 64 || value === "lead") throw new TeamError("teammate name must be lower-kebab-case, at most 64 characters, and not \"lead\"", "TEAM_INVALID_MEMBER_NAME");
1168
- return value;
1169
- }
1170
- /** Append one terminal provisioning edge unless recovery already settled it. */
1171
- async settleProvisioning(root, terminal) {
1172
- return this.journal.transact(root.id, async () => {
1173
- const current = this.journal.state(root).members.find((member) => member.id === terminal.id);
1174
- /* v8 ignore next 3 -- the append-only provisioning event is committed by this operation before settlement. */
1175
- if (current === void 0) throw new TeamError(`provisioned teammate "${terminal.id}" disappeared`, "TEAM_PROVISIONING_CONFLICT");
1176
- if (current.phase !== "provisioning") return current.phase;
1177
- await this.journal.appendAndFlush(root, "team/member", {
1178
- version: 2,
1179
- teamId: TeamId(root.id),
1180
- member: terminal
1181
- });
1182
- return terminal.phase === "active" ? "active" : "failed";
1183
- });
1184
- }
1185
- /** Whether a Session's own suffix identifies a provider-owned subagent child. */
1186
- subagentDescriptor(agent) {
1187
- return foldSubagentDescriptor(agent.session.snapshotEvents(agent.session.inheritedEventCount)) !== void 0;
1188
- }
1189
- };
1190
- /** Turn availability is independent of whether the Agent is loaded. */
1191
- function availability(agent) {
1192
- return agent?.status === "running" ? "running" : "inactive";
1193
- }
1194
- //#endregion
1195
- //#region lib/types/task-board.js
1196
- /** Shared Team task DAG commands and runtime-enriched views. */
1197
- const TASK_GRAPH_ERROR_CODES = {
1198
- missing: "TEAM_TASK_NOT_FOUND",
1199
- duplicate: "TEAM_INVALID_ARGUMENT",
1200
- cycle: "TEAM_TASK_DEPENDENCY_CYCLE"
1201
- };
1202
- /** Owns Team task limits, authorization, transitions, and derived views. */
1203
- var TeamTaskBoard = class {
1204
- journal;
1205
- maxTasks;
1206
- /**
1207
- * @param journal - authoritative Lead-log transaction owner.
1208
- * @param maxTasks - maximum non-deleted tasks retained by one Team.
1209
- */
1210
- constructor(journal, maxTasks) {
1211
- this.journal = journal;
1212
- this.maxTasks = maxTasks;
1213
- }
1214
- /**
1215
- * Create one unowned pending task in the Team Lead log.
1216
- * @param membership - exact caller membership resolved by the Team roster.
1217
- * @param request - task text, blockers, and advisory write scopes.
1218
- * @returns the revision-one task view.
1219
- */
1220
- async create(membership, request) {
1221
- const { root } = membership;
1222
- return this.journal.transact(root.id, async () => {
1223
- const state = this.journal.state(root);
1224
- if (state.tasks.filter((task) => task.status !== "deleted").length >= this.maxTasks) throw new TeamError(`Team task limit ${this.maxTasks} reached`, "TEAM_TASK_LIMIT");
1225
- const id = TeamTaskId(`task-${state.nextTaskNumber}`);
1226
- if (state.tasks.some((task) => task.id === id)) throw new TeamError("Team task id space exhausted", "TEAM_TASK_LIMIT");
1227
- const task = {
1228
- id,
1229
- revision: 1,
1230
- subject: requiredText(request.subject, "subject", 200),
1231
- description: requiredText(request.description, "description", 16384),
1232
- status: "pending",
1233
- blockedBy: this.dependencies(request.blockedBy ?? [], state),
1234
- writeScopes: this.writeScopes(request.writeScopes ?? [])
1235
- };
1236
- this.assertTaskGraph(state, task);
1237
- await this.journal.appendAndFlush(root, "team/task", {
1238
- version: 2,
1239
- teamId: TeamId(root.id),
1240
- task
1241
- });
1242
- return projectTaskView(state, task);
1243
- });
1244
- }
1245
- /**
1246
- * Return one task, including a deleted tombstone.
1247
- * @param membership - exact caller membership resolved by the Team roster.
1248
- * @param id - Team-local task identity.
1249
- * @returns the latest task value and derived readiness diagnostics.
1250
- */
1251
- get(membership, id) {
1252
- const { root } = membership;
1253
- const state = this.journal.state(root);
1254
- const task = state.tasks.find((candidate) => candidate.id === id);
1255
- if (task === void 0) throw new TeamError(`team task "${id}" not found`, "TEAM_TASK_NOT_FOUND");
1256
- return projectTaskView(state, task);
1257
- }
1258
- /**
1259
- * List current non-deleted tasks in numeric creation order.
1260
- * @param membership - exact caller membership resolved by the Team roster.
1261
- * @returns detached current task views.
1262
- */
1263
- list(membership) {
1264
- const { root } = membership;
1265
- const state = this.journal.state(root);
1266
- return state.tasks.filter((task) => task.status !== "deleted").map((task) => projectTaskView(state, task));
1267
- }
1268
- /**
1269
- * Compare-and-set one authorized task transition.
1270
- * @param caller - exact live Team member authorizing the mutation.
1271
- * @param membership - caller role and exact live Lead.
1272
- * @param request - task identity, expected revision, action, and action fields.
1273
- * @returns the committed next task revision.
1274
- */
1275
- async update(caller, membership, request) {
1276
- const root = membership.root;
1277
- return this.journal.transact(root.id, async () => {
1278
- const state = this.journal.state(root);
1279
- const current = state.tasks.find((task) => task.id === request.taskId);
1280
- if (current === void 0) throw new TeamError(`team task "${request.taskId}" not found`, "TEAM_TASK_NOT_FOUND");
1281
- if (current.revision !== request.expectedRevision) throw new TeamError(`stale team task "${current.id}" revision ${request.expectedRevision}; current revision is ${current.revision}`, "TEAM_TASK_STALE_REVISION");
1282
- if (current.status === "deleted") throw new TeamError(`team task "${current.id}" is deleted`, "TEAM_TASK_DELETED");
1283
- const lead = membership.role === "lead";
1284
- const owner = current.ownerId === caller.id;
1285
- const authorizeOwner = () => {
1286
- if (!lead && !owner) throw new TeamError("task mutation requires its owner or Team Lead", "TEAM_TASK_UNAUTHORIZED");
1287
- };
1288
- let next;
1289
- switch (request.action) {
1290
- case "claim":
1291
- if (current.ownerId !== void 0 && current.ownerId !== caller.id) throw new TeamError(`team task "${current.id}" is owned by another member`, "TEAM_TASK_ALREADY_CLAIMED");
1292
- if (current.status !== "pending" || !taskReady(state, current)) throw new TeamError(`team task "${current.id}" is not ready to claim`, "TEAM_TASK_BLOCKED");
1293
- next = {
1294
- ...current,
1295
- status: "in_progress",
1296
- ownerId: caller.id
1297
- };
1298
- break;
1299
- case "release":
1300
- authorizeOwner();
1301
- if (current.status !== "in_progress") throw new TeamError("only an in-progress task can be released", "TEAM_TASK_INVALID_TRANSITION");
1302
- next = this.withoutOwner({
1303
- ...current,
1304
- status: "pending"
1305
- });
1306
- break;
1307
- case "edit":
1308
- authorizeOwner();
1309
- if (request.subject === void 0 && request.description === void 0 && request.writeScopes === void 0) throw new TeamError("task edit requires subject, description, or write_scopes", "TEAM_INVALID_ARGUMENT");
1310
- next = {
1311
- ...current,
1312
- ...request.subject === void 0 ? {} : { subject: requiredText(request.subject, "subject", 200) },
1313
- ...request.description === void 0 ? {} : { description: requiredText(request.description, "description", 16384) },
1314
- ...request.writeScopes === void 0 ? {} : { writeScopes: this.writeScopes(request.writeScopes) }
1315
- };
1316
- break;
1317
- case "set_dependencies":
1318
- authorizeOwner();
1319
- if (request.blockedBy === void 0) throw new TeamError("set_dependencies requires blocked_by", "TEAM_INVALID_ARGUMENT");
1320
- next = {
1321
- ...current,
1322
- blockedBy: this.dependencies(request.blockedBy, state, current.id)
1323
- };
1324
- break;
1325
- case "complete":
1326
- authorizeOwner();
1327
- if (current.status !== "in_progress") throw new TeamError("only an in-progress task can complete", "TEAM_TASK_INVALID_TRANSITION");
1328
- next = {
1329
- ...current,
1330
- status: "completed"
1331
- };
1332
- break;
1333
- case "reopen":
1334
- authorizeOwner();
1335
- if (current.status !== "completed") throw new TeamError("only a completed task can reopen", "TEAM_TASK_INVALID_TRANSITION");
1336
- next = this.withoutOwner({
1337
- ...current,
1338
- status: "pending"
1339
- });
1340
- break;
1341
- case "reassign": {
1342
- if (!lead) throw new TeamError("only the Team Lead can reassign tasks", "TEAM_LEAD_REQUIRED");
1343
- if (current.status !== "pending" && current.status !== "in_progress") throw new TeamError("only a pending or in-progress task can be reassigned", "TEAM_TASK_INVALID_TRANSITION");
1344
- if (request.owner === void 0 || request.owner.trim().length === 0) {
1345
- next = this.withoutOwner({
1346
- ...current,
1347
- status: "pending"
1348
- });
1349
- break;
1350
- }
1351
- if (!taskReady(state, current)) throw new TeamError(`team task "${current.id}" is blocked`, "TEAM_TASK_BLOCKED");
1352
- const assignee = resolveActiveMember(root, state, request.owner);
1353
- next = {
1354
- ...current,
1355
- status: "in_progress",
1356
- ownerId: assignee.id
1357
- };
1358
- break;
1359
- }
1360
- case "delete": {
1361
- authorizeOwner();
1362
- const dependent = state.tasks.find((task) => task.status !== "deleted" && task.id !== current.id && task.blockedBy.includes(current.id));
1363
- if (dependent !== void 0) throw new TeamError(`team task "${current.id}" still blocks "${dependent.id}"`, "TEAM_TASK_HAS_DEPENDENTS");
1364
- next = {
1365
- ...current,
1366
- status: "deleted"
1367
- };
1368
- break;
1369
- }
1370
- /* v8 ignore next 2 -- TeamTaskAction is closed and every member is handled above. */
1371
- default: throw new TeamError(`unsupported task action ${String(request.action)}`, "TEAM_INVALID_ARGUMENT");
1372
- }
1373
- const task = {
1374
- ...next,
1375
- revision: current.revision + 1
1376
- };
1377
- this.assertTaskGraph(state, task);
1378
- await this.journal.appendAndFlush(root, "team/task", {
1379
- version: 2,
1380
- teamId: TeamId(root.id),
1381
- task
1382
- });
1383
- return projectTaskView(state, task);
1384
- });
1385
- }
1386
- /** Validate and de-duplicate dependency ids against the current task graph. */
1387
- dependencies(values, state, self) {
1388
- const seen = /* @__PURE__ */ new Set();
1389
- const result = [];
1390
- for (const id of values) {
1391
- if (id === self) throw new TeamError("a team task cannot block itself", "TEAM_TASK_DEPENDENCY_CYCLE");
1392
- if (seen.has(id)) throw new TeamError(`duplicate blocker "${id}"`, "TEAM_INVALID_ARGUMENT");
1393
- const task = state.tasks.find((candidate) => candidate.id === id);
1394
- if (task === void 0 || task.status === "deleted") throw new TeamError(`blocker task "${id}" not found`, "TEAM_TASK_NOT_FOUND");
1395
- seen.add(id);
1396
- result.push(id);
1397
- }
1398
- return result;
1399
- }
1400
- /** Normalize and de-duplicate task write scopes. */
1401
- writeScopes(values) {
1402
- return [...new Set(values.map(writeScope))];
1403
- }
1404
- /** Map shared task-graph validation onto stable command error codes. */
1405
- assertTaskGraph(state, candidate) {
1406
- try {
1407
- assertTaskGraphCandidate(state.tasks, candidate);
1408
- } catch (error) {
1409
- /* v8 ignore next -- the shared validator is the only statement in the try and throws this exact error. */
1410
- if (!(error instanceof TeamTaskGraphError)) throw error;
1411
- throw new TeamError(error.message, TASK_GRAPH_ERROR_CODES[error.violation], { cause: error });
1412
- }
1413
- }
1414
- /** Remove an optional owner field under exactOptionalPropertyTypes. */
1415
- withoutOwner(task) {
1416
- const { ownerId: _ownerId, ...without } = task;
1417
- return without;
1418
- }
1419
- };
1420
- //#endregion
1421
- //#region lib/types/index.js
1422
- /** Agent Teams service façade over roster, messaging, task, and runtime lifecycle owners. */
1423
- const DEFAULT_MAX_MEMBERS = 16;
1424
- const DEFAULT_MAX_TASKS = 256;
1425
- const DEFAULT_MAX_MESSAGE_BYTES = 65536;
1426
- const DEFAULT_DISPOSAL_TIMEOUT_MS = 5e3;
1427
- /** Validate one positive safe-integer deployment limit. */
1428
- function positiveLimit(name, value) {
1429
- if (!Number.isSafeInteger(value) || value < 1) throw new TeamError(`${name} must be a positive safe integer`, "TEAM_INVALID_CONFIG");
1430
- return value;
1431
- }
1432
- /** Agent Teams service backed by the exact live Lead Session log. */
1433
- var TeamService = class extends Service {
1434
- static inject = [
1435
- "agents",
1436
- "sessions",
1437
- "sessionPersistence",
1438
- "sessionProjections",
1439
- "subagents"
1440
- ];
1441
- static Config = z.object({
1442
- maxMembers: z.number().step(1).min(1).default(DEFAULT_MAX_MEMBERS),
1443
- maxTasks: z.number().step(1).min(1).default(DEFAULT_MAX_TASKS),
1444
- maxMessageBytes: z.number().step(1).min(1).default(DEFAULT_MAX_MESSAGE_BYTES),
1445
- disposalTimeoutMs: z.number().step(1).min(1).default(DEFAULT_DISPOSAL_TIMEOUT_MS)
1446
- });
1447
- /** Validated deployment limits used by every Team operation. */
1448
- config;
1449
- activity;
1450
- lifecycle;
1451
- journal;
1452
- roster;
1453
- tasks;
1454
- constructor(ctx, config = {}) {
1455
- super(ctx, "agentTeams");
1456
- this.config = {
1457
- maxMembers: positiveLimit("maxMembers", config.maxMembers ?? DEFAULT_MAX_MEMBERS),
1458
- maxTasks: positiveLimit("maxTasks", config.maxTasks ?? DEFAULT_MAX_TASKS),
1459
- maxMessageBytes: positiveLimit("maxMessageBytes", config.maxMessageBytes ?? DEFAULT_MAX_MESSAGE_BYTES),
1460
- disposalTimeoutMs: positiveLimit("disposalTimeoutMs", config.disposalTimeoutMs ?? DEFAULT_DISPOSAL_TIMEOUT_MS)
1461
- };
1462
- this.activity = new TeamActivity();
1463
- this.lifecycle = new TeamRuntimeLifecycle(this.config.disposalTimeoutMs);
1464
- }
1465
- async [Service.init]() {
1466
- const ctx = this.ctx;
1467
- const teamProjectionHandle = await ctx.sessionProjections.register(teamProjectionDefinition);
1468
- this.journal = new TeamJournal(ctx, teamProjectionHandle, (root) => {
1469
- this.activity.notify(TeamId(root.id));
1470
- });
1471
- this.roster = new TeamRoster(ctx, this.journal, this.lifecycle, this.config.maxMembers);
1472
- this.tasks = new TeamTaskBoard(this.journal, this.config.maxTasks);
1473
- ctx.effect(() => () => this.disposeRuntime(), "agentTeams.runtimeLifecycle()");
1474
- ctx.on("agent/created", ({ agent }) => {
1475
- this.scheduleRecovery(agent);
1476
- });
1477
- ctx.on("agent/status", ({ agent }) => {
1478
- const membership = this.roster.tryMembership(agent);
1479
- if (membership !== void 0) this.activity.notify(membership.id);
1480
- });
1481
- for (const agent of ctx.agents.list()) this.scheduleRecovery(agent);
1482
- }
1483
- /**
1484
- * Resolve one exact live Agent's Team role.
1485
- * @param agent - exact live Agent used as the authority credential.
1486
- * @returns its root, Team identity, role, and model-facing name.
1487
- */
1488
- membership(agent) {
1489
- return this.roster.membership(agent);
1490
- }
1491
- /**
1492
- * List the runtime-enriched roster visible to one Team member.
1493
- * @param agent - exact live Team member.
1494
- * @returns Lead and teammate rows in creation order.
1495
- */
1496
- listMembers(agent) {
1497
- return this.roster.list(this.roster.membership(agent));
1498
- }
1499
- /**
1500
- * Create one named, continuable direct child of the Team Lead.
1501
- * @param caller - exact live Lead Agent.
1502
- * @param request - immutable name, description, prompt, context mode, provider, and cancellation.
1503
- * @returns the active roster row.
1504
- */
1505
- async spawnTeammate(caller, request) {
1506
- return await this.roster.spawn(caller, request);
1507
- }
1508
- /**
1509
- * Steer one peer message into the target inbox or reject the attempt.
1510
- * @param caller - exact live sending Team member.
1511
- * @param request - target name, content, and cancellation before acceptance.
1512
- * @returns accepted inbox identity; acceptance follows normal Agent persistence and does not await model processing.
1513
- */
1514
- async sendMessage(caller, request) {
1515
- if (this.lifecycle.disposed) throw new TeamError("Agent Teams service is disposing", "TEAM_DISPOSED");
1516
- return await this.lifecycle.track(this.sendAdmitted(caller, {
1517
- ...request,
1518
- signal: AbortSignal.any([request.signal, this.lifecycle.signal])
1519
- }));
1520
- }
1521
- /**
1522
- * Create one unowned pending task in the Team Lead log.
1523
- * @param caller - exact live Team member creating the task.
1524
- * @param request - task text, blockers, and advisory write scopes.
1525
- * @returns the revision-one task view.
1526
- */
1527
- async createTask(caller, request) {
1528
- return await this.tasks.create(this.roster.membership(caller), request);
1529
- }
1530
- /**
1531
- * Return one task, including a deleted tombstone.
1532
- * @param caller - exact live Team member reading the task.
1533
- * @param id - Team-local task identity.
1534
- * @returns the latest task value and derived readiness diagnostics.
1535
- */
1536
- getTask(caller, id) {
1537
- return this.tasks.get(this.roster.membership(caller), id);
1538
- }
1539
- /**
1540
- * List current non-deleted tasks in numeric creation order.
1541
- * @param caller - exact live Team member reading the board.
1542
- * @returns detached current task views.
1543
- */
1544
- listTasks(caller) {
1545
- return this.tasks.list(this.roster.membership(caller));
1546
- }
1547
- /**
1548
- * Compare-and-set one authorized task transition.
1549
- * @param caller - exact live Team member authorizing the mutation.
1550
- * @param request - task identity, expected revision, action, and action fields.
1551
- * @returns the committed next task revision.
1552
- */
1553
- async updateTask(caller, request) {
1554
- return await this.tasks.update(caller, this.roster.membership(caller), request);
1555
- }
1556
- /**
1557
- * Wait for the next Team-domain or member-status change.
1558
- * @param caller - exact live Team member waiting for activity.
1559
- * @param timeoutMs - bounded wait duration from ten seconds through one hour.
1560
- * @param signal - caller cancellation for the wait only.
1561
- * @returns one observed change or a timeout result.
1562
- */
1563
- async waitForChange(caller, timeoutMs, signal) {
1564
- const membership = this.roster.membership(caller);
1565
- return await this.activity.wait(membership.id, timeoutMs, signal);
1566
- }
1567
- /**
1568
- * Interrupt one live teammate turn without clearing its pending inbox.
1569
- * @param caller - exact live Lead Agent.
1570
- * @param targetName - durable teammate name.
1571
- * @returns the target status sampled before cancellation.
1572
- */
1573
- interrupt(caller, targetName) {
1574
- return this.roster.interrupt(caller, targetName);
1575
- }
1576
- /**
1577
- * Resolve a caller without throwing, used by scoped-tool installation and observers.
1578
- * @param agent - candidate exact live Agent.
1579
- * @returns Team membership, or undefined for non-Team subagents and stale identities.
1580
- */
1581
- tryMembership(agent) {
1582
- return this.roster.tryMembership(agent);
1583
- }
1584
- /** Deliver an admitted send using the Lead's authority and the actual sender's identity. */
1585
- async sendAdmitted(caller, request) {
1586
- const membership = this.roster.membership(caller);
1587
- request.signal.throwIfAborted();
1588
- const { root } = membership;
1589
- const target = resolveActiveMember(root, this.journal.state(root), request.target);
1590
- if (target.id === caller.id) throw new TeamError("a Team member cannot message itself", "TEAM_SELF_MESSAGE");
1591
- const content = [{
1592
- type: "text",
1593
- text: `Team message from ${membership.name}:`
1594
- }, ...structuredClone(request.content)];
1595
- if (Buffer.byteLength(JSON.stringify(content), "utf8") > this.config.maxMessageBytes) throw new TeamError(`team message exceeds ${this.config.maxMessageBytes} bytes`, "TEAM_MESSAGE_TOO_LARGE");
1596
- const source = {
1597
- kind: "agent-message",
1598
- form: "relay",
1599
- senderSessionId: caller.id
1600
- };
1601
- let messageId;
1602
- if (target.id === root.id) {
1603
- const input = createUserMessage({
1604
- content,
1605
- source
1606
- });
1607
- root.steer(input);
1608
- messageId = input.id;
1609
- } else messageId = await steerHostSubagentPrompt(this.ctx.subagents, root, target.id, content, source, request.signal);
1610
- this.activity.notify(membership.id);
1611
- return { messageId };
1612
- }
1613
- /** Queue one contained provisioning reconciliation after publication has unwound. */
1614
- scheduleRecovery(agent) {
1615
- queueMicrotask(() => {
1616
- if (this.lifecycle.disposed) return;
1617
- this.roster.recoverFor(agent, this.lifecycle.signal).catch((error) => {
1618
- if (this.lifecycle.disposed) return;
1619
- this.ctx.logger.warn(`Agent Teams recovery for "${agent.id}" failed: ${errorMessage(error)}`);
1620
- });
1621
- });
1622
- }
1623
- /** Stop Team-owned live branches and release every waiter before service disposal completes. */
1624
- async disposeRuntime() {
1625
- this.lifecycle.close();
1626
- this.activity.close();
1627
- const failures = [];
1628
- await this.lifecycle.settle(this.lifecycle.pending(), failures);
1629
- for (const [root, childIds] of this.roster.liveChildrenByRoot()) try {
1630
- await this.roster.stopTeammates(root, childIds);
1631
- } catch (error) {
1632
- failures.push(error);
1633
- }
1634
- if (failures.length > 0) throw new AggregateError(failures, "Agent Teams runtime disposal failed");
1635
- }
1636
- };
1637
- //#endregion
1638
- export { TeamError, TeamId, TeamMessageId, TeamService, TeamService as default, TeamTaskId };