@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
@@ -7,8 +7,8 @@ import { Remote, RemoteError, TypertRemoteService, principalOf } from "@deepseek
7
7
  import { AttachmentError } from "@deepseek-ai/dsh-attachment";
8
8
  import { z as z$1 } from "zod";
9
9
  import { HarnessError, ReasoningEffortId, boundContextSummary, contentHasImage, createUserMessage, errorChain, joinAssistantStreamText } from "@deepseek-ai/dsh-llm";
10
- import { randomUUID } from "node:crypto";
11
10
  import { foldConsumedWork } from "@deepseek-ai/dsh-agent";
11
+ import { randomUUID } from "node:crypto";
12
12
  import { isAbsolute, resolve } from "node:path";
13
13
  import { brandString } from "@deepseek-ai/dsh-brand";
14
14
  import { SessionLogOffset, SessionSeq } from "@deepseek-ai/dsh-session";
@@ -39,16 +39,10 @@ var SubagentError = class extends HarnessError {
39
39
  const SESSION_ID_SCHEMA = z$1.string().min(1);
40
40
  const CONTROL_ID_SCHEMAS = {
41
41
  "subagent.prompt": z$1.object({
42
- parentSessionId: SESSION_ID_SCHEMA,
43
42
  childSessionId: SESSION_ID_SCHEMA,
44
- mode: z$1.literal("continuable"),
45
43
  delivery: z$1.enum(["queue", "steer"])
46
44
  }),
47
- "subagent.interrupt": z$1.object({
48
- parentSessionId: SESSION_ID_SCHEMA,
49
- childSessionId: SESSION_ID_SCHEMA,
50
- mode: z$1.literal("continuable")
51
- })
45
+ "subagent.interrupt": z$1.object({ childSessionId: SESSION_ID_SCHEMA })
52
46
  };
53
47
  /**
54
48
  * Apply the subagent payload checks that are stricter than generated
@@ -77,7 +71,7 @@ function rejectPrompt(error, childSessionId, signal) {
77
71
  if (error instanceof SubagentError) switch (error.code) {
78
72
  case "MODEL_DOES_NOT_SUPPORT_IMAGES": throw new RemoteError("subagent/attachment-invalid", error.message, { reason: error.code }, { cause: error });
79
73
  case "NOT_RESUMABLE": throw new RemoteError("subagent/not-resumable", "subagent cannot be resumed", { childSessionId }, { cause: error });
80
- case "UNAUTHORIZED": throw new RemoteError("subagent/unauthorized", "subagent does not belong to this parent", { childSessionId }, { cause: error });
74
+ case "UNAUTHORIZED": throw new RemoteError("subagent/unauthorized", "subagent membership in the active tree could not be verified", { childSessionId }, { cause: error });
81
75
  case "DRAINING":
82
76
  case "ACTIVATION_CLOSING":
83
77
  case "ACTIVATION_LIMIT_REACHED":
@@ -122,32 +116,12 @@ function assertSubagentMaxDepth(maxDepth) {
122
116
  if (maxDepth !== void 0 && (typeof maxDepth !== "number" || !Number.isSafeInteger(maxDepth) || maxDepth < 0 || Object.is(maxDepth, -0))) throw new TypeError("subagent maxDepth must be a non-negative safe integer");
123
117
  }
124
118
  //#endregion
125
- //#region lib/types/types.js
126
- /**
127
- * The seam's consumer-facing contracts: request, result, and capability types
128
- * for {@link SubagentProvider}, plus the `subagent/start` and `subagent/end`
129
- * payloads that plugins and hosts observe. Internal control interfaces belong
130
- * with their implementation — the lifecycle observer in `./lifecycle.ts`, the
131
- * manager host in `./manager.ts` — so this module stays the published
132
- * surface rather than a bag of everything type-shaped.
133
- *
134
- * @module @deepseek-ai/dsh-subagent/types
135
- */
136
- /**
137
- * Brand a string as a {@link SubagentRunId}.
138
- * @param id - the raw run id.
139
- * @returns the same string, branded.
140
- */
141
- function SubagentRunId(id) {
142
- return id;
143
- }
144
- //#endregion
145
119
  //#region lib/types/lifecycle.js
146
120
  /**
147
- * Lifecycle-edge publication for managed subagent activations.
121
+ * Contained lifecycle notifications for subagents.
148
122
  *
149
- * Public event payloads live in `./types.ts`; the package-private observer
150
- * retains only the identity shared by each start/end pair.
123
+ * The service owns scoped dispatch and listener containment; the manager
124
+ * supplies event payloads from each activation.
151
125
  *
152
126
  * @module @deepseek-ai/dsh-subagent/lifecycle
153
127
  */
@@ -157,8 +131,8 @@ function SubagentRunId(id) {
157
131
  * returned promise is logged without starving peer listeners, changing the run,
158
132
  * or — for provider removal, which fires from a disposer — breaking teardown.
159
133
  * @param ctx - the service's own context, owning dispatch and the logger.
160
- * @param carrier - resolve the scoped dispatch carrier for one delegating parent.
161
- * @returns the emitter both observers and the provider registry publish through.
134
+ * @param carrier - resolve the scoped dispatch carrier for one subagent tree root.
135
+ * @returns the emitter the manager and provider registry publish through.
162
136
  */
163
137
  function createLifecycleEmitter(ctx, carrier) {
164
138
  return (name, info, parent) => {
@@ -178,35 +152,6 @@ function createLifecycleEmitter(ctx, carrier) {
178
152
  };
179
153
  }
180
154
  /**
181
- * Build the observer for one local or external activation's residency epoch. Creation failure before residency emits no lifecycle edge.
182
- * @param emit - the contained lifecycle emitter.
183
- * @param provider - the provider name recorded in the durable descriptor.
184
- * @param childId - the durable child session id.
185
- * @param parent - the exact live direct parent keying scoped dispatch.
186
- * @returns the observer whose edges this epoch publishes.
187
- */
188
- function createActivationObserver(emit, provider, childId, parent) {
189
- const identity = {
190
- runId: SubagentRunId(randomUUID()),
191
- provider,
192
- id: childId,
193
- local: false
194
- };
195
- return {
196
- start: (child) => {
197
- identity.local = child !== void 0;
198
- emit("subagent/start", identity, parent);
199
- },
200
- settle: ({ stopReason, output }) => {
201
- emit("subagent/end", {
202
- ...identity,
203
- stopReason,
204
- ...output.length === 0 ? {} : { lastAssistantMessage: output }
205
- }, parent);
206
- }
207
- };
208
- }
209
- /**
210
155
  * Why this child's epoch ended, for the terminal lifecycle edge and the
211
156
  * manager's own parent delivery. The child's own log is authoritative:
212
157
  * teardown succeeding says nothing about whether the model errored, hit its
@@ -367,10 +312,11 @@ function childSessionMeta(parent, childDepth, isSeeded, selectedPreset) {
367
312
  const SUBAGENT_DELEGATION_CONTEXT = "You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it. Before each tool call, say in one short sentence what you are doing and why it serves the task, so your progress can be followed.";
368
313
  /**
369
314
  * Compose a child before publication and restore historical descriptor overrides.
370
- * Explicit selection mounts the named preset; omission synchronously joins the
371
- * parent's current generation. Registrations belong to the child's scope.
315
+ * Explicit selection mounts the named preset. Omission joins a supplied creator's
316
+ * current generation; a restored child without a saved preset uses host composition.
317
+ * Registrations belong to the child's scope.
372
318
  * @param childCtx - the child agent's scoped creation context.
373
- * @param parent - the delegating parent used when no preset is selected.
319
+ * @param parent - creator for fresh delegation; absent during target-only restoration.
374
320
  * @param composition - independent preset and any overrides read from a historical descriptor.
375
321
  * @returns A promise when mounting an independent preset; otherwise completes synchronously.
376
322
  */
@@ -382,7 +328,7 @@ function applyChildComposition(childCtx, parent, composition) {
382
328
  applyChildOverrides(childCtx, composition);
383
329
  });
384
330
  }
385
- childCtx.get("agentPresets")?.composeFrom(childCtx, parent.ctx);
331
+ if (parent !== void 0) childCtx.get("agentPresets")?.composeFrom(childCtx, parent.ctx);
386
332
  applyChildOverrides(childCtx, composition);
387
333
  }
388
334
  function applyChildOverrides(childCtx, composition) {
@@ -444,7 +390,7 @@ function appendDelegatedPolicyOverrides(childSession, overrides) {
444
390
  *
445
391
  * @module @deepseek-ai/dsh-subagent/continuation-messages
446
392
  */
447
- /** Build durable attribution for one adjacent-Agent message. */
393
+ /** Build durable attribution for one Agent message. */
448
394
  function agentMessageSource(sender) {
449
395
  return {
450
396
  kind: "agent-message",
@@ -453,7 +399,7 @@ function agentMessageSource(sender) {
453
399
  };
454
400
  }
455
401
  /**
456
- * Build the model-visible and durable representation of one adjacent-Agent message.
402
+ * Build the model-visible and durable representation of one Agent message.
457
403
  * @param sender - exact live Agent that authored the message.
458
404
  * @param content - model-visible message blocks supplied by the sender.
459
405
  * @returns the durable user-message representation delivered to the recipient.
@@ -468,16 +414,14 @@ function createAgentMessage(sender, content) {
468
414
  });
469
415
  }
470
416
  /**
471
- * Append adjacent-Agent return guidance to a continuable child's initial task.
472
- * @param parentId - durable parent session id named in the guidance.
417
+ * Append automatic result-delivery guidance to a parent-delivered child's initial task.
473
418
  * @param prompt - initial model-visible task blocks.
474
- * @returns task blocks followed by the continuable return guidance.
419
+ * @returns task blocks followed by the result-delivery guidance.
475
420
  */
476
- function withContinuableReturnGuidance(parentId, prompt) {
477
- const encodedParentId = JSON.stringify(parentId);
421
+ function withResultDeliveryGuidance(prompt) {
478
422
  return [...prompt, {
479
423
  type: "text",
480
- text: `Your parent agent id is ${encodedParentId}. Before you finish, send your result to that agent with send_message({ agent_id: ${encodedParentId}, message: "<self-contained result>" }). The parent shares your workspace but does not automatically receive your transcript, tool output, or reasoning. Send earlier messages as well when a finding changes what the parent should do next; sending a message does not end your turn.`
424
+ text: "Your final answer is delivered automatically if your parent is still online. Include the result and relevant evidence in that answer; the parent does not receive your full transcript, tool output, or reasoning. If your last action is a message to your parent, the completion notice omits your final answer; include the result and relevant evidence in that message."
481
425
  }];
482
426
  }
483
427
  /**
@@ -507,8 +451,8 @@ function settlementSummary(childId, stopReason, continuable) {
507
451
  * @param childId - durable child session id named in the notice.
508
452
  * @param terminal - recorded terminal state for the settled Activation.
509
453
  * @param continuable - whether the child can accept another task.
510
- * @param omitClosingText - replace the closing text with a note that the child's
511
- * last message to the parent already carries it.
454
+ * @param omitClosingText - replace the closing text when the child's last action
455
+ * was a message to its direct parent.
512
456
  * @returns the durable user-message representation delivered to the parent.
513
457
  */
514
458
  function createSettlementMessage(childId, terminal, continuable = true, omitClosingText = false) {
@@ -543,11 +487,84 @@ function createSettlementMessage(childId, terminal, continuable = true, omitClos
543
487
  kind: "subagent-settled",
544
488
  form: "notice",
545
489
  summary: boundContextSummary(summary),
490
+ stopReason: terminal.stopReason,
546
491
  senderSessionId: childId
547
492
  }
548
493
  });
549
494
  }
550
495
  //#endregion
496
+ //#region lib/types/archive-admission.js
497
+ /**
498
+ * The `subagent` family of the Workspace registry's archive admission: which
499
+ * subagent descendants of a Session are still inside a turn, and how they
500
+ * stop when the Session is archived with its work. Archived ancestors also
501
+ * block later model steps, including when their Sessions have been released.
502
+ *
503
+ * @module @deepseek-ai/dsh-subagent
504
+ */
505
+ /**
506
+ * Answer `workspace/session-activity` with the running subagent descendants of
507
+ * the asked Session, and `workspace/session-stop` by cancelling each of them
508
+ * as their parent would. Reject subsequent steps beneath archived ancestors.
509
+ * All listeners live as long as `ctx`'s fiber.
510
+ * @param ctx - context carrying the Agent registry.
511
+ * @param residentAncestors - verified creation ancestors for an exact managed Agent, absent before publication or for unmanaged Agents.
512
+ * @param identityOf - ready service-owned descriptor identity reader; absent or invalid descriptors yield no identity.
513
+ */
514
+ function installSubagentArchiveAdmission(ctx, residentAncestors, identityOf) {
515
+ const ancestorsOf = (agent) => residentAncestors(agent) ?? headerAncestors(ctx, agent);
516
+ const runningDescendants = (sessionId) => ctx.agents.list().filter((agent) => agent.status === "running" && ancestorsOf(agent).includes(sessionId));
517
+ ctx.on("workspace/session-activity", async ({ sessionId }, next) => {
518
+ const running = runningDescendants(sessionId);
519
+ const rest = await next();
520
+ if (running.length === 0) return rest;
521
+ return [{
522
+ kind: "subagent",
523
+ items: running.map((child) => describe(child, identityOf(child.session)))
524
+ }, ...rest];
525
+ });
526
+ ctx.on("workspace/session-stop", ({ sessionId }) => {
527
+ for (const child of runningDescendants(sessionId)) try {
528
+ child.cancel({ kind: "parent" });
529
+ } catch (error) {
530
+ ctx.logger.warn(`subagent: cancelling "${child.id}" for an archived Session failed: ${String(error)}`);
531
+ }
532
+ });
533
+ ctx.on("agent/pre-step", ({ agent }, next) => {
534
+ const archived = ctx.get("workspaceRegistry")?.archivedSessionIds;
535
+ return archived !== void 0 && ancestorsOf(agent).some((id) => archived.includes(id)) ? Promise.resolve({ kind: "reject" }) : next();
536
+ });
537
+ }
538
+ /**
539
+ * Header-only ancestry for Agents without a published Activation. Include an
540
+ * offline direct creator; ordinary forks stop the chain and cycles terminate.
541
+ */
542
+ function headerAncestors(ctx, agent) {
543
+ const ancestors = [];
544
+ const visited = new Set([agent.id]);
545
+ let header = agent.session.header;
546
+ while (header.origin === "subagent" && header.parentSession !== void 0 && !visited.has(header.parentSession)) {
547
+ const parentId = header.parentSession;
548
+ ancestors.push(parentId);
549
+ visited.add(parentId);
550
+ const parent = ctx.agents.get(parentId)?.session;
551
+ if (parent === void 0) break;
552
+ header = parent.header;
553
+ }
554
+ return ancestors;
555
+ }
556
+ /**
557
+ * Report the child's current projected label only when its descriptor belongs
558
+ * to the child's own log; inherited, absent, or invalid identities yield the id alone.
559
+ */
560
+ function describe(child, identity) {
561
+ const label = identity !== void 0 && child.session.isOwnSeq(identity.seq) ? identity.label : void 0;
562
+ return label === void 0 ? { id: child.id } : {
563
+ id: child.id,
564
+ label
565
+ };
566
+ }
567
+ //#endregion
551
568
  //#region lib/types/descriptor.js
552
569
  /**
553
570
  * The durable subagent-child descriptor: the versioned, model-hidden
@@ -565,7 +582,7 @@ function createSettlementMessage(childId, terminal, continuable = true, omitClos
565
582
  * to one activation's result contract rather than durable child composition.
566
583
  * Per-activation knobs such as `maxTokens` are omitted for the same reason as
567
584
  * `outputSchema`: they budget one activation. Cold resume requires the exact
568
- * live parent for authorization but reconstructs child options only from the
585
+ * live subagent tree root for authorization but reconstructs child options only from the
569
586
  * durable descriptor, so it neither restores the prior budget nor inherits
570
587
  * the parent's current one; the resumed route's defaults apply instead.
571
588
  *
@@ -843,28 +860,23 @@ function establishExternalCatalogChild(parent, childId, label) {
843
860
  });
844
861
  }
845
862
  //#endregion
846
- //#region lib/types/internal.js
863
+ //#region lib/types/types.js
847
864
  /**
848
- * Continuation integration markers and host adapters outside the public
849
- * Service Definition and model-facing Agent messaging contract.
850
- * @module @deepseek-ai/dsh-subagent/internal
865
+ * The seam's consumer-facing contracts: request, result, and capability types
866
+ * for {@link SubagentProvider}, plus the `subagent/start` and `subagent/end`
867
+ * payloads that plugins and hosts observe. Internal control interfaces, such
868
+ * as the manager host, belong with their implementation.
869
+ *
870
+ * @module @deepseek-ai/dsh-subagent/types
851
871
  */
852
- /** Process-stable identity carried only by the standard adjacent-Agent messaging tool. */
853
- const adjacentAgentSendMessageTool = Symbol.for("dsh.subagent.adjacentAgentSendMessageTool");
854
872
  /**
855
- * Test whether one visible definition is the standard adjacent-Agent messaging tool.
856
- * @param definition - the scope-resolved `send_message` candidate.
857
- * @returns whether the definition carries the internal standard-tool identity.
873
+ * Brand a string as a {@link SubagentRunId}.
874
+ * @param id - the raw run id.
875
+ * @returns the same string, branded.
858
876
  */
859
- function isAdjacentAgentSendMessageTool(definition) {
860
- return definition !== void 0 && definition[adjacentAgentSendMessageTool] === true;
877
+ function SubagentRunId(id) {
878
+ return id;
861
879
  }
862
- /**
863
- * Process-stable symbol-keyed host delivery shared by the bundled runtime
864
- * entry and this unbundled internal subpath.
865
- * @internal
866
- */
867
- const deliverSubagentPrompt = Symbol.for("dsh.subagent.deliverPrompt");
868
880
  //#endregion
869
881
  //#region lib/types/structured.js
870
882
  /**
@@ -892,7 +904,7 @@ const STRUCTURED_OUTPUT_INSTRUCTION = `When you have your final answer, you MUST
892
904
  * @param childCtx - the child agent's scope context (`setup`'s argument).
893
905
  * @param schema - the trusted, already-asserted schema subset to enforce (see
894
906
  * `assertObjectJsonSchema` in dsh-tools).
895
- * @param canComplete - whether accepted input and owned child work have finished.
907
+ * @param canComplete - whether accepted input has been processed.
896
908
  * @returns the attachment handle (read `captured()` after the child settles).
897
909
  */
898
910
  function attachStructuredRuntime(childCtx, schema, canComplete) {
@@ -934,7 +946,7 @@ function attachStructuredRuntime(childCtx, schema, canComplete) {
934
946
  execute(args, exec) {
935
947
  const violations = validateJsonSchemaValue(schema, args);
936
948
  if (violations.length > 0) throw new ToolArgsError(violations);
937
- if (!canComplete()) throw new Error("Wait for all delegated child tasks to finish and process pending messages before submitting structured output.");
949
+ if (!canComplete()) throw new Error("Process pending messages before submitting structured output.");
938
950
  staged.set(exec, { value: args });
939
951
  exec.concludeTurn();
940
952
  return Promise.resolve({ recorded: true });
@@ -1044,7 +1056,7 @@ function finalAssistantOutput(events) {
1044
1056
  /** Execution-period records, capacity slots, child serialization, and local output capture.
1045
1057
  * @module @deepseek-ai/dsh-subagent/activation
1046
1058
  */
1047
- /** Process-local slots shared through uninterrupted continuable parent links. */
1059
+ /** Process-local capacity shared by every member of a subagent tree. */
1048
1060
  var ActivationPool = class {
1049
1061
  slots = /* @__PURE__ */ new Set();
1050
1062
  /**
@@ -1150,11 +1162,11 @@ var ChildLock = class {
1150
1162
  /**
1151
1163
  * Owns subagent startup, message admission, cold resume, and execution lifetimes.
1152
1164
  * One child lock orders input acceptance and closure; one activation map owns
1153
- * capacity, parent relationships, and resource release across all providers.
1165
+ * capacity, runtime ownership, and resource release across all providers.
1154
1166
  *
1155
1167
  * @module @deepseek-ai/dsh-subagent/manager
1156
1168
  */
1157
- var __addDisposableResource$2 = function(env, value, async) {
1169
+ var __addDisposableResource$1 = function(env, value, async) {
1158
1170
  if (value !== null && value !== void 0) {
1159
1171
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
1160
1172
  var dispose, inner;
@@ -1183,7 +1195,7 @@ var __addDisposableResource$2 = function(env, value, async) {
1183
1195
  } else if (async) env.stack.push({ async: true });
1184
1196
  return value;
1185
1197
  };
1186
- var __disposeResources$2 = (function(SuppressedError) {
1198
+ var __disposeResources$1 = (function(SuppressedError) {
1187
1199
  return function(env) {
1188
1200
  function fail(e) {
1189
1201
  env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
@@ -1231,18 +1243,13 @@ var SubagentManager = class {
1231
1243
  locks = new ChildLock();
1232
1244
  /** Structural Cordis owner of every Activation handle. */
1233
1245
  ownerCtx;
1234
- /**
1235
- * Exact roots whose host teardown has begun, with the live lineage members
1236
- * observed under each root. Entries remain until that exact root leaves the
1237
- * Agent registry, closing admission throughout its host's teardown without
1238
- * poisoning a later same-id replacement.
1239
- */
1240
- closingScopes = /* @__PURE__ */ new Map();
1246
+ /** Exact subagent tree roots whose host teardown has closed admission. */
1247
+ closingRoots = /* @__PURE__ */ new Set();
1241
1248
  draining = false;
1242
1249
  /**
1243
1250
  * Build one manager inside the service's Agent-injected context.
1244
1251
  * @param ctx - context providing Agents, Sessions, and teardown ownership.
1245
- * @param host - provider dispatch and lifecycle observation owned by the service.
1252
+ * @param host - descriptor reads and lifecycle publication owned by the service.
1246
1253
  * @param maxActiveSubagents - the current configured child capacity.
1247
1254
  */
1248
1255
  constructor(ctx, host, maxActiveSubagents) {
@@ -1251,8 +1258,12 @@ var SubagentManager = class {
1251
1258
  this.maxActiveSubagents = maxActiveSubagents;
1252
1259
  const scope = ctx.plugin(function activationOwner() {});
1253
1260
  this.ownerCtx = scope.ctx;
1261
+ installSubagentArchiveAdmission(ctx, (agent) => {
1262
+ const activation = this.resident.get(agent.id);
1263
+ return activation !== void 0 && activationAgent(activation) === agent ? activation.ancestors : void 0;
1264
+ }, (session) => host.identityOf(session));
1254
1265
  ctx.on("agent/disposed", ({ agent }) => {
1255
- this.closingScopes.delete(agent);
1266
+ this.closingRoots.delete(agent);
1256
1267
  });
1257
1268
  ctx.effect(function* () {
1258
1269
  yield scope.dispose;
@@ -1262,7 +1273,7 @@ var SubagentManager = class {
1262
1273
  /**
1263
1274
  * Interrupt one live continuable child's current turn under the supplied authority.
1264
1275
  * @param targetSessionId - the durable child session id to interrupt.
1265
- * @param authority - the human parent address or exact live ancestor Agent.
1276
+ * @param authority - a trusted user operation or exact live ancestor Agent.
1266
1277
  */
1267
1278
  interrupt(targetSessionId, authority) {
1268
1279
  if (authority.kind === "ancestor") {
@@ -1272,9 +1283,7 @@ var SubagentManager = class {
1272
1283
  }
1273
1284
  const activation = this.resident.get(targetSessionId);
1274
1285
  if (activation === void 0) return;
1275
- if (authority.kind === "user") {
1276
- if (activation.parent.id !== authority.parentSessionId) throw new SubagentError(`subagent "${targetSessionId}" belongs to another parent session`, "UNAUTHORIZED");
1277
- } else if (!activation.ancestry.has(authority.agent)) throw new SubagentError(`subagent "${targetSessionId}" is not a live descendant of agent "${authority.agent.id}"`, "UNAUTHORIZED");
1286
+ if (authority.kind === "ancestor" && (this.rootOf(authority.agent) !== activation.root || !activation.ancestors.includes(authority.agent.id))) throw new SubagentError(`subagent "${targetSessionId}" is not a live descendant of agent "${authority.agent.id}"`, "UNAUTHORIZED");
1278
1287
  if (activation.closing !== void 0) return;
1279
1288
  const kind = authority.kind === "user" ? "user" : "parent";
1280
1289
  if (activation.kind === "local") activation.handle.agent.cancel({ kind }, { keepInbox: true });
@@ -1285,28 +1294,25 @@ var SubagentManager = class {
1285
1294
  }
1286
1295
  /**
1287
1296
  * Close admission, await every already-admitted materialization through
1288
- * publication or rollback, then dispose the stable live Activation graph
1289
- * child-first.
1297
+ * publication or rollback, then dispose every agent in the subagent tree.
1290
1298
  */
1291
1299
  async drain() {
1292
1300
  this.draining = true;
1293
1301
  for (const pending of this.materializations) pending.controller.abort();
1294
1302
  await Promise.all([...this.materializations].map((materialization) => materialization.settled));
1295
- const owned = /* @__PURE__ */ new Set();
1296
- for (const activation of this.resident.values()) for (const child of activation.ownedChildren) owned.add(child);
1297
- const roots = [...this.resident.values()].filter((activation) => !owned.has(activation.childId));
1298
- await this.disposeRoots(roots, "activation(s)");
1303
+ await this.disposeRoots([...this.resident.values()], "activation(s)");
1299
1304
  }
1300
1305
  /**
1301
- * Join progressing child work, leaving idle parked inboxes resident.
1302
- * @param parent - exact live parent whose descendants are observed.
1303
- * @returns whether work was joined and the host must recheck parent completion.
1306
+ * Join progressing subagent tree work for its root, leaving idle parked inboxes resident.
1307
+ * @param root - exact live subagent tree root; ordinary members return false.
1308
+ * @returns whether work was joined and the host must recheck root completion.
1304
1309
  */
1305
- async waitForChildren(parent) {
1310
+ async waitForTreeWork(root) {
1311
+ if (this.rootOf(root) !== root) return false;
1306
1312
  let observed = false;
1307
1313
  while (true) {
1308
- const pending = [...this.materializations].filter((item) => item.lineage.includes(parent));
1309
- const children = [...this.resident.values()].filter((item) => activationAgent(item) !== parent && item.ancestry.has(parent));
1314
+ const pending = [...this.materializations].filter((item) => item.root === root);
1315
+ const children = [...this.resident.values()].filter((item) => item.root === root);
1310
1316
  observed ||= children.some((item) => item.kind === "local" && item.handle.agent.status !== "idle");
1311
1317
  await Promise.all(children.flatMap((item) => item.kind === "local" ? [item.handle.agent.whenIdle()] : []));
1312
1318
  const waits = pending.map((item) => item.settled);
@@ -1319,10 +1325,6 @@ var SubagentManager = class {
1319
1325
  waits.push(item.handle.agent.whenIdle());
1320
1326
  continue;
1321
1327
  }
1322
- if (item.ownedChildren.size > 0) {
1323
- if ([...item.ownedChildren].some((id) => !this.resident.has(id))) waits.push(item.poke.promise);
1324
- continue;
1325
- }
1326
1328
  const inbox = item.handle.agent.inbox;
1327
1329
  if (item.failureAt === void 0 && (inbox.nextTurn.length > 0 || inbox.nextStep.length > 0)) continue;
1328
1330
  waits.push(Promise.race([item.result.promise.catch(() => void 0), item.poke.promise]));
@@ -1332,114 +1334,73 @@ var SubagentManager = class {
1332
1334
  await Promise.all(waits);
1333
1335
  continue;
1334
1336
  }
1335
- if ([...this.materializations].some((item) => item.lineage.includes(parent) && !pending.includes(item)) || [...this.resident.values()].some((item) => activationAgent(item) !== parent && item.ancestry.has(parent) && !children.includes(item))) continue;
1337
+ if ([...this.materializations].some((item) => item.root === root && !pending.includes(item)) || [...this.resident.values()].some((item) => item.root === root && !children.includes(item))) continue;
1336
1338
  return observed;
1337
1339
  }
1338
1340
  }
1339
1341
  /**
1340
- * Stop the managed descendants of exact live host-owned parents.
1341
- * @param parents - exact live roots whose managed descendants must stop.
1342
+ * Stop every member of the selected subagent trees; ordinary members do not close a subagent tree.
1343
+ * @param parents - exact live subagent tree roots whose instances must stop.
1342
1344
  */
1343
1345
  async drainDescendants(parents) {
1344
- const roots = new Set(parents.filter((parent) => this.ctx.agents.get(parent.id) === parent));
1345
- if (roots.size === 0) return;
1346
- for (const root of roots) this.closingMembers(root).add(root);
1347
- const targets = [];
1348
- for (const activation of this.resident.values()) {
1349
- const child = activationAgent(activation);
1350
- const lineage = this.liveLineage(child ?? activation.parent);
1351
- const owners = [...roots].filter((root) => child !== root && activation.ancestry.has(root));
1352
- if (owners.length === 0) continue;
1353
- targets.push(activation);
1354
- for (const owner of owners) {
1355
- const members = this.closingMembers(owner);
1356
- if (child !== void 0) members.add(child);
1357
- for (const agent of lineage) members.add(agent);
1358
- }
1359
- }
1360
- const materializations = [...this.materializations].filter((materialization) => {
1361
- const owners = [...roots].filter((root) => materialization.lineage.includes(root));
1362
- for (const owner of owners) {
1363
- const members = this.closingMembers(owner);
1364
- for (const agent of materialization.lineage) members.add(agent);
1365
- }
1366
- if (owners.length > 0) materialization.controller.abort();
1367
- return owners.length > 0;
1368
- });
1369
- const ownedTargets = /* @__PURE__ */ new Set();
1370
- for (const activation of targets) for (const child of activation.ownedChildren) ownedTargets.add(child);
1371
- const targetRoots = targets.filter((activation) => !ownedTargets.has(activation.childId));
1372
- for (const activation of targets) this.dispose(activation).catch(() => void 0);
1373
- await Promise.all(materializations.map((materialization) => materialization.settled));
1374
- await this.disposeRoots(targetRoots, "scoped activation(s)");
1375
- }
1376
- /**
1377
- * Release selected resident direct children of one exact live parent.
1378
- * @param parent - exact live direct parent authorizing the selected release.
1379
- * @param childIds - durable direct-child ids to release when resident.
1380
- */
1381
- async drainChildren(parent, childIds) {
1382
- if (this.ctx.agents.get(parent.id) !== parent) throw new SubagentError("selected child teardown requires the exact live parent agent", "UNAUTHORIZED");
1383
- const targets = [];
1384
- for (const childId of new Set(childIds)) {
1385
- const activation = this.resident.get(childId);
1386
- if (activation === void 0) continue;
1387
- if (activation.parent.id !== parent.id || !activation.ancestry.has(parent)) throw new SubagentError(`subagent "${childId}" is not a direct child of agent "${parent.id}"`, "UNAUTHORIZED");
1388
- targets.push(activation);
1389
- }
1390
- for (const activation of targets) this.dispose(activation).catch(() => void 0);
1391
- await this.disposeRoots(targets, "selected activation(s)");
1346
+ const roots = new Set(parents.filter((root) => this.ctx.agents.get(root.id) === root && this.rootOf(root) === root));
1347
+ for (const root of roots) this.closingRoots.add(root);
1348
+ const pending = [...this.materializations].filter((item) => roots.has(item.root));
1349
+ for (const item of pending) item.controller.abort();
1350
+ const targets = [...this.resident.values()].filter((item) => roots.has(item.root));
1351
+ const disposal = this.disposeRoots(targets, "scoped activation(s)");
1352
+ const [disposed] = await Promise.allSettled([disposal, ...pending.map((item) => item.settled)]);
1353
+ if (disposed.status === "rejected") throw disposed.reason;
1392
1354
  }
1393
1355
  /**
1394
1356
  * Start one continuable background child and resolve at initial inbox acceptance.
1395
1357
  * Every earlier failure disposes any created handle and rolls back Activation
1396
- * and parent ownership without returning either id.
1358
+ * and its capacity slot without returning either id.
1397
1359
  * @param spec - provider, delegation request, and caller cancellation.
1360
+ * @param prepare - creation contribution bound to the checked provider.
1398
1361
  * @returns the durable child id and accepted initial prompt message id.
1399
1362
  */
1400
- async startLocal(spec) {
1401
- const request = spec.request;
1402
- const parent = request.parent;
1363
+ async startLocal(spec, prepare) {
1364
+ const parent = spec.parent;
1403
1365
  this.assertAdmitting(parent);
1404
- const persistence = spec.delivery === "caller" ? this.ctx.get("sessionPersistence") : this.requirePersistence();
1405
- assertSubagentMaxDepth(request.maxDepth);
1406
- const childId = spec.childId ?? brandString(randomUUID());
1407
- this.assertChildIdAvailable(childId);
1408
- const childDepth = resolveChildDepth(parent, request.maxDepth);
1409
- const agentOptions = resolveChildAgentOptions(parent, request.agentOptions, childDepth);
1410
- const agentProvider = agentOptions.provider;
1411
- const agentModel = agentOptions.model;
1412
- const agentReasoningEffort = agentOptions.reasoningEffort;
1413
- const descriptor = snapshotSubagentDescriptor({
1414
- mode: "continuable",
1415
- provider: spec.provider,
1416
- label: spec.label,
1417
- ...agentProvider !== void 0 ? { agentProvider } : {},
1418
- ...agentModel !== void 0 ? { agentModel } : {},
1419
- ...agentReasoningEffort !== void 0 ? { agentReasoningEffort } : {}
1420
- });
1421
- const delegatedPolicies = captureDelegatedPolicyOverrides(parent);
1422
- const releaseHold = this.holdOwnership(parent, childId);
1423
- try {
1424
- const cwd = await this.resolveDirectory(request, spec.signal);
1425
- const prepared = await this.host.prepareContinuable(spec.provider, {
1366
+ const ancestry = this.ancestryForChild(parent);
1367
+ return this.trackStartup(ancestry.root, spec.signal, async (signal) => {
1368
+ const persistence = spec.delivery === "caller" ? this.ctx.get("sessionPersistence") : this.requirePersistence();
1369
+ const childId = spec.childId ?? brandString(randomUUID());
1370
+ this.assertChildIdAvailable(childId);
1371
+ const childDepth = resolveChildDepth(parent, spec.maxDepth);
1372
+ const agentOptions = resolveChildAgentOptions(parent, spec.agentOptions, childDepth);
1373
+ const agentProvider = agentOptions.provider;
1374
+ const agentModel = agentOptions.model;
1375
+ const agentReasoningEffort = agentOptions.reasoningEffort;
1376
+ const descriptor = snapshotSubagentDescriptor({
1377
+ mode: "continuable",
1378
+ provider: spec.provider,
1379
+ label: spec.label,
1380
+ ...agentProvider !== void 0 ? { agentProvider } : {},
1381
+ ...agentModel !== void 0 ? { agentModel } : {},
1382
+ ...agentReasoningEffort !== void 0 ? { agentReasoningEffort } : {}
1383
+ });
1384
+ const delegatedPolicies = captureDelegatedPolicyOverrides(parent);
1385
+ const cwd = await this.resolveDirectory(spec, signal);
1386
+ const prepared = await prepare({
1426
1387
  sessionId: childId,
1427
1388
  cwd,
1428
1389
  parent,
1429
- signal: spec.signal
1390
+ signal
1430
1391
  });
1431
- spec.signal.throwIfAborted();
1392
+ signal.throwIfAborted();
1432
1393
  this.assertAdmitting(parent);
1433
1394
  const inheritedEventCount = SessionLogOffset(prepared.seed?.length ?? 0);
1434
1395
  const seed = prepared.seed;
1435
1396
  let established;
1436
1397
  const messageId = await this.locks.run(childId, async () => {
1437
- spec.signal.throwIfAborted();
1398
+ signal.throwIfAborted();
1438
1399
  this.assertAdmitting(parent);
1439
1400
  this.assertChildIdAvailable(childId);
1440
1401
  if (spec.childId !== void 0) {
1441
- const persisted = await persistence?.stat(childId, { signal: spec.signal });
1442
- spec.signal.throwIfAborted();
1402
+ const persisted = await persistence?.stat(childId, { signal });
1403
+ signal.throwIfAborted();
1443
1404
  this.assertAdmitting(parent);
1444
1405
  this.assertChildIdAvailable(childId);
1445
1406
  if (persisted !== void 0) throw new SubagentError(`subagent "${childId}" already exists`, "DUPLICATE_CHILD");
@@ -1448,29 +1409,33 @@ var SubagentManager = class {
1448
1409
  kind: "local",
1449
1410
  childId,
1450
1411
  provider: spec.provider,
1451
- parent,
1412
+ ...ancestry,
1452
1413
  create: {
1414
+ parent,
1453
1415
  cwd,
1454
1416
  seed,
1455
- meta: childSessionMeta(parent, childDepth, prepared.seed !== void 0, request.agentPreset),
1417
+ meta: childSessionMeta(parent, childDepth, prepared.seed !== void 0, spec.agentPreset),
1456
1418
  inheritedEventCount,
1457
1419
  delegatedPolicies,
1458
1420
  descriptor
1459
1421
  },
1460
1422
  agentOptions,
1461
- composition: { agentPreset: request.agentPreset },
1462
- signal: spec.signal,
1423
+ composition: { agentPreset: spec.agentPreset },
1424
+ signal,
1463
1425
  delivery: spec.delivery,
1464
- outputSchema: spec.request.outputSchema
1426
+ outputSchema: spec.outputSchema
1465
1427
  });
1466
1428
  established = activation;
1467
- const child = requireLocalActivation(activation).handle.agent;
1468
- const childHeader = child.session.header;
1469
- return await this.submitMaterialized(activation, spec.delivery !== "caller" && isAdjacentAgentSendMessageTool(this.ctx.get("tools")?.get("send_message", child)) ? withContinuableReturnGuidance(parent.id, request.prompt) : request.prompt, {
1429
+ const childHeader = requireLocalActivation(activation).handle.agent.session.header;
1430
+ return await this.submitMaterialized(activation, spec.delivery !== "caller" ? withResultDeliveryGuidance(spec.prompt) : spec.prompt, {
1470
1431
  source: { kind: "user" },
1471
- signal: spec.signal,
1472
- delivery: "queue"
1473
- }, parent, () => {
1432
+ signal,
1433
+ delivery: "queue",
1434
+ authorize: () => {
1435
+ this.assertAdmitting(parent);
1436
+ }
1437
+ }, ancestry.root, () => {
1438
+ this.assertAdmitting(parent);
1474
1439
  establishCatalogChild(parent.session, childHeader, descriptor);
1475
1440
  });
1476
1441
  });
@@ -1479,54 +1444,49 @@ var SubagentManager = class {
1479
1444
  childId,
1480
1445
  messageId
1481
1446
  };
1482
- } catch (error) {
1483
- releaseHold();
1484
- throw error;
1485
- }
1447
+ });
1486
1448
  }
1487
1449
  /**
1488
1450
  * Start an external backend under activation ownership.
1489
1451
  * @param spec - task, provider, cancellation, and delivery policy.
1452
+ * @param start - execution bound to the checked provider.
1490
1453
  * @returns the accepted activation and its result/disposal capabilities.
1491
1454
  */
1492
- async startExternal(spec) {
1493
- const parent = spec.request.parent;
1455
+ async startExternal(spec, start) {
1456
+ const { provider, delivery, childId: _childId, ...request } = spec;
1457
+ const parent = request.parent;
1494
1458
  this.assertAdmitting(parent);
1495
- const pendingId = brandString(randomUUID());
1496
- const releaseHold = this.holdOwnership(parent, pendingId);
1497
- let activation;
1498
- try {
1499
- const cwd = await this.resolveDirectory(spec.request, spec.signal);
1500
- activation = await this.materialize({
1501
- kind: "external",
1502
- childId: pendingId,
1503
- provider: spec.provider,
1504
- parent,
1505
- signal: spec.signal,
1506
- delivery: spec.delivery,
1507
- start: (signal) => this.host.startExternal(spec.provider, {
1508
- ...spec.request,
1509
- cwd,
1510
- label: spec.label,
1511
- signal
1512
- })
1513
- });
1514
- this.assertAdmitting(parent);
1515
- this.assertLiveParent(parent, activation.childId);
1516
- spec.signal.throwIfAborted();
1517
- if (spec.delivery === "parent") establishExternalCatalogChild(parent.session, activation.childId, spec.label);
1518
- this.announce(activation);
1519
- return this.receipt(activation);
1520
- } catch (error) {
1521
- if (activation !== void 0) try {
1522
- await this.dispose(activation);
1523
- } catch (cleanupError) {
1524
- this.ctx.logger.warn(`subagent "${activation.childId}" admission rollback failed: ${failureMessage(cleanupError)}`);
1459
+ const ancestry = this.ancestryForChild(parent);
1460
+ return this.trackStartup(ancestry.root, spec.signal, async (signal) => {
1461
+ let activation;
1462
+ try {
1463
+ const cwd = await this.resolveDirectory(spec, signal);
1464
+ activation = await this.materialize({
1465
+ kind: "external",
1466
+ provider,
1467
+ ...ancestry,
1468
+ signal,
1469
+ delivery,
1470
+ start: (signal) => start({
1471
+ ...request,
1472
+ cwd,
1473
+ signal
1474
+ })
1475
+ });
1476
+ this.assertAdmitting(parent);
1477
+ signal.throwIfAborted();
1478
+ if (delivery === "parent") establishExternalCatalogChild(parent.session, activation.childId, spec.label);
1479
+ this.accept(activation);
1480
+ return this.receipt(activation);
1481
+ } catch (error) {
1482
+ if (activation !== void 0) try {
1483
+ await this.dispose(activation);
1484
+ } catch (cleanupError) {
1485
+ this.ctx.logger.warn(`subagent "${activation.childId}" admission rollback failed: ${failureMessage(cleanupError)}`);
1486
+ }
1487
+ throw error;
1525
1488
  }
1526
- throw error;
1527
- } finally {
1528
- releaseHold();
1529
- }
1489
+ });
1530
1490
  }
1531
1491
  /** Capture the explicit or inherited directory while the parent still owns startup. */
1532
1492
  async resolveDirectory(request, signal) {
@@ -1535,60 +1495,125 @@ var SubagentManager = class {
1535
1495
  return cwd;
1536
1496
  }
1537
1497
  /**
1538
- * Deliver one model-authored message to a direct continuable child or to the
1539
- * sender's direct parent. A missing direct child cold-resumes through the
1540
- * ordinary continuation lifecycle.
1541
- * @param sender - exact live Agent authorizing and originating the message.
1542
- * @param targetId - durable direct-parent or direct-child session id.
1543
- * @param content - model-authored content to deliver.
1544
- * @param options - caller cancellation before acceptance.
1545
- * @returns the accepted message's inbox id.
1498
+ * Resolve the live subagent tree root from runtime ownership, independent of creator residency.
1499
+ * @param caller - exact live Agent selecting the subagent tree.
1500
+ * @returns the live subagent tree root.
1501
+ * @throws when the caller has no active runtime owner.
1502
+ */
1503
+ rootOf(caller) {
1504
+ if (this.ctx.agents.get(caller.id) !== caller) throw new SubagentError("subagent tree access requires the exact live caller", "UNAUTHORIZED");
1505
+ const identity = this.host.identityOf(caller.session);
1506
+ const delegated = caller.session.header.origin === "subagent" || identity != null && caller.session.isOwnSeq(identity.seq);
1507
+ const activation = this.resident.get(caller.id);
1508
+ if (activation !== void 0 && activationAgent(activation) === caller && this.ctx.agents.get(activation.root.id) === activation.root) return activation.root;
1509
+ if (delegated || activation !== void 0) throw new SubagentError("agent has no active runtime owner", "UNAUTHORIZED");
1510
+ return caller;
1511
+ }
1512
+ /** Capture creation ancestry separately from the root that owns the new instance. */
1513
+ ancestryForChild(creator) {
1514
+ return {
1515
+ root: this.rootOf(creator),
1516
+ ancestors: [...this.resident.get(creator.id)?.ancestors ?? [], creator.id]
1517
+ };
1518
+ }
1519
+ /**
1520
+ * Deliver to another agent in the subagent tree, restoring only the target when absent.
1521
+ * @param sender - exact live root or resident continuable Agent.
1522
+ * @param targetId - another member's durable Session id.
1523
+ * @param content - model-authored message blocks.
1524
+ * @param options - cancellation before inbox acceptance.
1525
+ * @returns the accepted inbox message id.
1546
1526
  */
1547
1527
  async sendMessage(sender, targetId, content, options) {
1548
- if (this.ctx.agents.get(sender.id) !== sender) throw new SubagentError("message delivery requires the exact live sender agent", "UNAUTHORIZED");
1528
+ options.signal.throwIfAborted();
1529
+ const root = this.rootOf(sender);
1530
+ if (sender.id === targetId) throw new SubagentError("send_message requires another agent in the subagent tree", "UNAUTHORIZED");
1549
1531
  this.assertAdmitting(sender);
1550
- const senderActivation = this.resident.get(sender.id);
1551
- if (senderActivation !== void 0 && senderActivation.kind === "local" && senderActivation.handle.agent === sender && senderActivation.parent.id === targetId) {
1552
- options.signal.throwIfAborted();
1553
- return this.sendToParent(senderActivation, sender, content);
1554
- }
1555
- if (sender.session.header.parentSession === targetId) throw new SubagentError(`agent "${sender.id}" is not a resident continuable child and cannot send to parent "${targetId}"`, "UNAUTHORIZED");
1556
- return this.deliverToChild(sender, targetId, content, {
1532
+ const message = createAgentMessage(sender, content);
1533
+ const activation = this.resident.get(sender.id);
1534
+ return this.deliverToMember(root, targetId, [...message.content], {
1557
1535
  signal: options.signal,
1558
- delivery: "steer"
1536
+ delivery: "steer",
1537
+ source: message.source,
1538
+ authorize: () => {
1539
+ this.assertAdmitting(sender);
1540
+ },
1541
+ onAccepted: () => {
1542
+ if (activation?.kind === "local" && activation.ancestors.at(-1) === targetId) activation.omitClosingText = true;
1543
+ }
1559
1544
  });
1560
1545
  }
1561
- /**
1562
- * Queue one human-authored prompt as a distinct direct-child turn.
1563
- * @param parent - exact live direct parent authorizing delivery.
1564
- * @param childId - durable direct-child session id.
1565
- * @param content - model-visible prompt blocks.
1566
- * @param source - durable attribution for the human prompt.
1567
- * @param signal - caller cancellation before inbox acceptance.
1568
- * @returns the accepted durable message id.
1569
- */
1570
- async queuePrompt(parent, childId, content, source, signal) {
1571
- return this.deliverToChild(parent, childId, content, {
1572
- source,
1573
- signal,
1574
- delivery: "queue"
1575
- });
1546
+ /** Resolve the live owner through verified creation edges without activating ancestors. */
1547
+ async resolveCreationAncestry(source, signal, root) {
1548
+ const ancestors = [];
1549
+ const seen = new Set([source.header.id]);
1550
+ let { header, projections, inheritedEventCount } = source;
1551
+ while (true) {
1552
+ const env_1 = {
1553
+ stack: [],
1554
+ error: void 0,
1555
+ hasError: false
1556
+ };
1557
+ try {
1558
+ signal.throwIfAborted();
1559
+ const parentId = header.parentSession;
1560
+ const identity = projections?.values.subagent;
1561
+ if (parentId === void 0 || identity == null || identity.seq < inheritedEventCount) break;
1562
+ if (seen.has(parentId)) throw new SubagentError("cyclic subagent creation ancestry", "UNAUTHORIZED");
1563
+ seen.add(parentId);
1564
+ const parent = __addDisposableResource$1(env_1, await this.observeContinuation(parentId, signal), false);
1565
+ if (!parent.projections?.values.subagentCatalog?.some((entry) => entry.id === header.id)) throw new SubagentError("subagent is absent from its creator catalog", "UNAUTHORIZED");
1566
+ ancestors.unshift(parentId);
1567
+ if (parentId === root?.id) return {
1568
+ root,
1569
+ ancestors
1570
+ };
1571
+ ({header, projections, inheritedEventCount} = parent);
1572
+ } catch (e_1) {
1573
+ env_1.error = e_1;
1574
+ env_1.hasError = true;
1575
+ } finally {
1576
+ __disposeResources$1(env_1);
1577
+ }
1578
+ }
1579
+ if (root === void 0 && ancestors.length > 0 && header.origin !== "subagent") {
1580
+ const owner = this.ctx.agents.get(header.id);
1581
+ if (owner === void 0 || this.rootOf(owner) !== owner) throw new SubagentError("subagent tree root is not live", "CONTINUATION_UNAVAILABLE");
1582
+ return {
1583
+ root: owner,
1584
+ ancestors
1585
+ };
1586
+ }
1587
+ throw new SubagentError(`agent "${source.header.id}" is not a member of this subagent tree`, "UNAUTHORIZED");
1576
1588
  }
1577
1589
  /**
1578
- * Steer one host-authored prompt to a direct continuable child.
1579
- * @param parent - exact live direct parent authorizing delivery.
1580
- * @param childId - durable direct-child session id.
1590
+ * Deliver one host-authored prompt through the target's live subagent tree root.
1591
+ * Remote callers must be authorized for the target Session before invoking this operation.
1592
+ * @param childId - durable continuable subagent session id.
1581
1593
  * @param content - model-visible prompt blocks.
1582
- * @param source - durable attribution for the host prompt.
1583
- * @param signal - caller cancellation before inbox acceptance.
1594
+ * @param options - inbox destination, durable attribution, and cancellation before acceptance.
1584
1595
  * @returns the accepted durable message id.
1585
1596
  */
1586
- async steerPrompt(parent, childId, content, source, signal) {
1587
- return this.deliverToChild(parent, childId, content, {
1588
- source,
1589
- signal,
1590
- delivery: "steer"
1591
- });
1597
+ async deliverPrompt(childId, content, options) {
1598
+ options.signal.throwIfAborted();
1599
+ let root = this.resident.get(childId)?.root;
1600
+ if (root === void 0) {
1601
+ const env_2 = {
1602
+ stack: [],
1603
+ error: void 0,
1604
+ hasError: false
1605
+ };
1606
+ try {
1607
+ const source = __addDisposableResource$1(env_2, await this.observeContinuation(childId, options.signal), false);
1608
+ ({root} = await this.resolveCreationAncestry(source, options.signal));
1609
+ } catch (e_2) {
1610
+ env_2.error = e_2;
1611
+ env_2.hasError = true;
1612
+ } finally {
1613
+ __disposeResources$1(env_2);
1614
+ }
1615
+ }
1616
+ return this.deliverToMember(root, childId, content, options);
1592
1617
  }
1593
1618
  /** Admit local input synchronously before any teardown can begin. */
1594
1619
  deliver(activation, message, delivery) {
@@ -1606,32 +1631,6 @@ var SubagentManager = class {
1606
1631
  if (this.resident.has(childId) || this.ctx.agents.get(childId) !== void 0 || this.ctx.get("sessions")?.get(childId) !== void 0) throw new SubagentError(`subagent "${childId}" already exists`, "DUPLICATE_CHILD");
1607
1632
  }
1608
1633
  /**
1609
- * Pre-register `childId` in a continuation-managed parent's owned set so the
1610
- * parent cannot settle while a caller is still establishing or resuming that
1611
- * child. Returns a releaser for the failure path; it removes only a hold
1612
- * this call added, and leaves ownership in place once a live Activation for
1613
- * the child exists.
1614
- * @param parent - the live direct parent the operation is admitted under.
1615
- * @param childId - the durable child the operation addresses.
1616
- * @returns the failure-path releaser; a no-op when nothing was added.
1617
- */
1618
- holdOwnership(parent, childId) {
1619
- const parentActivation = this.resident.get(parent.id);
1620
- if (parentActivation === void 0 || activationAgent(parentActivation) !== parent) return () => {};
1621
- if (parentActivation.closing !== void 0) throw new SubagentError(`subagent parent "${parent.id}" is being disposed; the child was not established`, "ACTIVATION_CLOSING");
1622
- if (parentActivation.ownedChildren.has(childId)) return () => {};
1623
- parentActivation.ownedChildren.add(childId);
1624
- return () => {
1625
- const live = this.resident.get(childId);
1626
- /* v8 ignore next 4 -- reaching this arm needs another delivery to establish the child
1627
- * between this operation's failure and its releaser running, which no test can schedule
1628
- * deterministically: the ownership edge then belongs to that live Activation, so the
1629
- * conservative keep leaves it for finishDisposal's releaseOwnership. */
1630
- if (live !== void 0 && live.closing === void 0) return;
1631
- if (parentActivation.ownedChildren.delete(childId)) this.wake(parentActivation);
1632
- };
1633
- }
1634
- /**
1635
1634
  * Apply activation admission to a resident parent before delivering input.
1636
1635
  * @param parent - exact live Agent receiving the message.
1637
1636
  * @param message - durable user message to deliver.
@@ -1651,27 +1650,16 @@ var SubagentManager = class {
1651
1650
  else parent.followup(message);
1652
1651
  }
1653
1652
  /**
1654
- * Reject new admission once the manager or this exact parent tree began draining.
1655
- * @param agent - exact live Agent whose lineage determines admission.
1653
+ * Reject new work from closing members or subagent trees.
1654
+ * @param agent - exact live caller whose instance and subagent tree must admit work.
1656
1655
  */
1657
1656
  assertAdmitting(agent) {
1658
1657
  const closing = this.closingTeardownFor(agent);
1659
- if (closing === void 0) return;
1660
- throw new SubagentError(closing === "manager" ? "subagents are draining; the operation was not admitted" : `subagents below parent "${closing.id}" are draining; the operation was not admitted`, "DRAINING");
1661
- }
1662
- /**
1663
- * Authorize one operation against the durable direct-parent lineage.
1664
- * @param parent - exact live Agent claiming direct-parent authority.
1665
- * @param childId - durable child session id addressed by the operation.
1666
- * @param parentSession - durable direct-parent id recorded by the child.
1667
- */
1668
- authorizeLineage(parent, childId, parentSession) {
1669
- this.assertLiveParent(parent, childId);
1670
- if (parentSession !== parent.id) throw new SubagentError(`subagent "${childId}" belongs to another parent session`, "UNAUTHORIZED");
1671
- }
1672
- /** Reject parent authority after the live registry entry changes. */
1673
- assertLiveParent(parent, childId) {
1674
- if (this.ctx.agents.get(parent.id) !== parent) throw new SubagentError(`subagent "${childId}" delivery requires the exact live parent agent`, "UNAUTHORIZED");
1658
+ if (closing === void 0) {
1659
+ if (this.resident.get(agent.id)?.closing !== void 0) throw new SubagentError(`subagent "${agent.id}" is closing`, "ACTIVATION_CLOSING");
1660
+ return;
1661
+ }
1662
+ throw new SubagentError(closing === "manager" ? "subagents are draining; the operation was not admitted" : `subagent tree "${closing.id}" is draining; the operation was not admitted`, "DRAINING");
1675
1663
  }
1676
1664
  /**
1677
1665
  * Create or resume one child Agent and publish its Activation.
@@ -1679,25 +1667,28 @@ var SubagentManager = class {
1679
1667
  * @returns the published process-local Activation.
1680
1668
  */
1681
1669
  materialize(inputs) {
1682
- this.assertAdmitting(inputs.parent);
1670
+ this.assertAdmitting(inputs.root);
1683
1671
  inputs.signal.throwIfAborted();
1684
- const lineage = this.liveLineage(inputs.parent);
1685
- const pool = this.resident.get(inputs.parent.id)?.pool ?? this.rootPool(inputs.parent);
1686
- const releaseSlot = pool.reserve(this.maxActiveSubagents());
1672
+ const releaseSlot = this.rootPool(inputs.root).reserve(this.maxActiveSubagents());
1673
+ return this.materializeTracked(inputs, releaseSlot).catch((error) => {
1674
+ releaseSlot();
1675
+ throw error;
1676
+ });
1677
+ }
1678
+ /** Keep subagent tree shutdown and host waits joined to preparation, publication, and rollback. */
1679
+ trackStartup(root, signal, start) {
1680
+ this.assertAdmitting(root);
1681
+ signal.throwIfAborted();
1687
1682
  const settled = Promise.withResolvers();
1688
1683
  const controller = new AbortController();
1689
1684
  const materialization = {
1690
- lineage,
1685
+ root,
1691
1686
  settled: settled.promise,
1692
1687
  controller
1693
1688
  };
1694
1689
  this.materializations.add(materialization);
1695
- return this.materializeTracked({
1696
- ...inputs,
1697
- signal: AbortSignal.any([inputs.signal, controller.signal])
1698
- }, lineage, pool, releaseSlot).catch((error) => {
1699
- releaseSlot();
1700
- if (error instanceof Error && error.name === "AbortError") this.assertAdmitting(inputs.parent);
1690
+ return start(AbortSignal.any([signal, controller.signal])).catch((error) => {
1691
+ if (error instanceof Error && error.name === "AbortError") this.assertAdmitting(root);
1701
1692
  throw error;
1702
1693
  }).finally(() => {
1703
1694
  this.materializations.delete(materialization);
@@ -1732,35 +1723,13 @@ var SubagentManager = class {
1732
1723
  }))).filter((failure) => failure !== void 0);
1733
1724
  if (reasons.length > 0) throw new SubagentError(`subagent teardown failed for ${reasons.length} ${failureSubject}: ` + reasons.map((reason) => failureMessage(reason)).join("; "), "ACTIVATION_TEARDOWN_FAILED");
1734
1725
  }
1735
- /** Return the retained member set for one exact scoped-teardown root. */
1736
- closingMembers(root) {
1737
- const existing = this.closingScopes.get(root);
1738
- if (existing !== void 0) return existing;
1739
- const members = /* @__PURE__ */ new Set();
1740
- this.closingScopes.set(root, members);
1741
- return members;
1742
- }
1743
- /** Return the exact currently resolvable ancestry from `agent` upward. */
1744
- liveLineage(agent) {
1745
- const lineage = [agent];
1746
- const seen = new Set([agent.id]);
1747
- let parentSession = agent.session.header.parentSession;
1748
- while (parentSession !== void 0) {
1749
- const parent = this.ctx.agents.get(parentSession);
1750
- if (parent === void 0 || seen.has(parent.id)) break;
1751
- lineage.push(parent);
1752
- seen.add(parent.id);
1753
- parentSession = parent.session.header.parentSession;
1754
- }
1755
- return lineage;
1756
- }
1757
- /** Return the teardown that closed continuable admission for this agent's lineage. */
1726
+ /** Return the subagent tree teardown that closed admission for this exact Agent. */
1758
1727
  closingTeardownFor(agent) {
1759
1728
  if (this.draining) return "manager";
1760
- const lineage = this.liveLineage(agent);
1761
- for (const [root, members] of this.closingScopes) if (members.has(agent) || lineage.includes(root)) return root;
1729
+ const root = this.rootOf(agent);
1730
+ return this.closingRoots.has(root) ? root : void 0;
1762
1731
  }
1763
- /** Resolve a root's pool once; descendants inherit their resident parent's pool directly. */
1732
+ /** Share one capacity pool across every instance in a subagent tree. */
1764
1733
  rootPool(parent) {
1765
1734
  let pool = this.rootPools.get(parent);
1766
1735
  if (pool === void 0) {
@@ -1770,9 +1739,8 @@ var SubagentManager = class {
1770
1739
  return pool;
1771
1740
  }
1772
1741
  /** Perform one tracked materialization through publication or rollback. */
1773
- async materializeTracked(inputs, parentLineage, pool, releaseSlot) {
1774
- const { provider, parent } = inputs;
1775
- let childId = inputs.childId;
1742
+ async materializeTracked(inputs, releaseSlot) {
1743
+ const { provider, root } = inputs;
1776
1744
  inputs.signal.throwIfAborted();
1777
1745
  let resource;
1778
1746
  if (inputs.kind === "external") {
@@ -1789,9 +1757,8 @@ var SubagentManager = class {
1789
1757
  controller
1790
1758
  };
1791
1759
  run.result.catch(() => void 0);
1792
- childId = run.id;
1793
1760
  try {
1794
- this.assertChildIdAvailable(childId);
1761
+ this.assertChildIdAvailable(run.id);
1795
1762
  } catch (error) {
1796
1763
  await run.dispose();
1797
1764
  throw error;
@@ -1800,11 +1767,18 @@ var SubagentManager = class {
1800
1767
  inputs.signal.removeEventListener("abort", cancelStartup);
1801
1768
  }
1802
1769
  } else {
1803
- const { create } = inputs;
1770
+ const { create, childId } = inputs;
1804
1771
  let structured;
1805
1772
  const setup = async (childCtx, child) => {
1806
- if (inputs.composition.agentPreset !== void 0) await applyChildComposition(childCtx, parent, inputs.composition);
1773
+ if (inputs.composition.agentPreset !== void 0) await applyChildComposition(childCtx, create?.parent, inputs.composition);
1807
1774
  if (create !== void 0) {
1775
+ const { provider, model, reasoningEffort } = inputs.agentOptions;
1776
+ const inherited = child.model.current();
1777
+ if (provider !== void 0 && model !== void 0 && (inherited?.provider !== provider || inherited.model !== model || inherited.reasoningEffort !== reasoningEffort)) child.model.select({
1778
+ provider,
1779
+ model,
1780
+ ...reasoningEffort === void 0 ? {} : { reasoningEffort }
1781
+ });
1808
1782
  if (inputs.composition.agentPreset !== void 0) child.session.append("agent-preset/selected", { agentPreset: inputs.composition.agentPreset });
1809
1783
  child.session.append("subagent/descriptor", create.descriptor);
1810
1784
  appendDelegatedPolicyOverrides(child.session, create.delegatedPolicies);
@@ -1812,18 +1786,16 @@ var SubagentManager = class {
1812
1786
  if (workingDirectory === void 0) throw new Error("local subagents require the working-directory service");
1813
1787
  await workingDirectory.set(child, create.cwd, inputs.signal);
1814
1788
  }
1815
- if (inputs.composition.agentPreset === void 0) await applyChildComposition(childCtx, parent, inputs.composition);
1816
- if (inputs.outputSchema !== void 0) structured = attachStructuredRuntime(childCtx, inputs.outputSchema, () => this.resident.get(childId)?.ownedChildren.size === 0 && child.inbox.nextStep.length === 0 && child.inbox.nextTurn.length === 0);
1789
+ if (inputs.composition.agentPreset === void 0) await applyChildComposition(childCtx, create?.parent, inputs.composition);
1790
+ if (inputs.outputSchema !== void 0) structured = attachStructuredRuntime(childCtx, inputs.outputSchema, () => child.inbox.nextStep.length === 0 && child.inbox.nextTurn.length === 0);
1817
1791
  };
1818
1792
  const handle = create === void 0 ? await this.ownerCtx.agents.resume({
1819
1793
  resumeSessionId: childId,
1820
- parentAgent: parent,
1821
1794
  agentOptions: inputs.agentOptions,
1822
1795
  signal: inputs.signal,
1823
1796
  setup
1824
1797
  }) : await this.ownerCtx.agents.create({
1825
1798
  sessionId: childId,
1826
- parentAgent: parent,
1827
1799
  meta: create.meta,
1828
1800
  ...create.seed === void 0 ? {} : { seed: create.seed },
1829
1801
  inheritedEventCount: create.inheritedEventCount,
@@ -1841,28 +1813,25 @@ var SubagentManager = class {
1841
1813
  omitClosingText: false
1842
1814
  };
1843
1815
  }
1844
- const observer = this.host.observeActivation(provider, childId, parent);
1816
+ const childId = resource.kind === "local" ? resource.handle.agent.id : resource.run.id;
1845
1817
  const activation = {
1846
- pool,
1847
1818
  releaseSlot,
1848
1819
  childId,
1820
+ runId: SubagentRunId(randomUUID()),
1821
+ provider,
1849
1822
  ...resource,
1850
- parent,
1823
+ root,
1824
+ ancestors: inputs.ancestors,
1851
1825
  delivery: inputs.delivery ?? "parent",
1852
1826
  result: Promise.withResolvers(),
1853
1827
  closing: void 0,
1854
- ancestry: new WeakSet(resource.kind === "external" ? parentLineage : [resource.handle.agent, ...parentLineage]),
1855
- ownedChildren: /* @__PURE__ */ new Set(),
1856
- observer,
1857
- announced: false
1828
+ accepted: false
1858
1829
  };
1859
1830
  activation.result.promise.catch(() => void 0);
1860
1831
  this.resident.set(childId, activation);
1861
1832
  try {
1862
- this.assertAdmitting(parent);
1833
+ this.assertAdmitting(root);
1863
1834
  inputs.signal.throwIfAborted();
1864
- if (this.ctx.agents.get(parent.id) !== parent) throw new SubagentError("subagent parent is no longer live", "UNAUTHORIZED");
1865
- this.acquireOwnership(parent, childId);
1866
1835
  const wakeSettlement = () => {
1867
1836
  this.wake(activation);
1868
1837
  };
@@ -1878,7 +1847,7 @@ var SubagentManager = class {
1878
1847
  if (event.type === "tool/call") activation.omitClosingText = false;
1879
1848
  });
1880
1849
  }
1881
- observer.start(activationAgent(activation));
1850
+ this.host.emitLifecycle("subagent/start", this.runInfo(activation), root);
1882
1851
  } catch (error) {
1883
1852
  /* v8 ignore next -- rollback failure must not mask the admission failure
1884
1853
  * that prevented this operation from returning an accepted message id. */
@@ -1887,13 +1856,19 @@ var SubagentManager = class {
1887
1856
  }
1888
1857
  return activation;
1889
1858
  }
1890
- /**
1891
- * Begin settlement observation after initial acceptance is recorded.
1892
- * @param activation - accepted activation to observe.
1893
- */
1894
- announce(activation) {
1895
- if (activation.announced) return;
1896
- activation.announced = true;
1859
+ /** Identity shared by one residency epoch's start/end pair, including cold resumes. */
1860
+ runInfo(activation) {
1861
+ return {
1862
+ runId: activation.runId,
1863
+ provider: activation.provider,
1864
+ parentSessionId: activation.ancestors.at(-1),
1865
+ id: activation.childId,
1866
+ local: activation.kind === "local"
1867
+ };
1868
+ }
1869
+ /** Record acceptance and begin settlement observation before returning the receipt. */
1870
+ accept(activation) {
1871
+ activation.accepted = true;
1897
1872
  if (activation.kind === "local") this.watchLocalSettlement(activation);
1898
1873
  else {
1899
1874
  const finish = () => this.close(activation, () => this.finishDisposal(activation, false));
@@ -1910,23 +1885,10 @@ var SubagentManager = class {
1910
1885
  } finally {
1911
1886
  this.resident.delete(activation.childId);
1912
1887
  activation.releaseSlot();
1913
- this.releaseOwnership(activation.childId);
1914
1888
  activation.result.reject(error);
1915
1889
  }
1916
1890
  });
1917
1891
  }
1918
- /** Register the child in a continuation-managed parent's owned set. */
1919
- acquireOwnership(parent, childId) {
1920
- const parentActivation = this.resident.get(parent.id);
1921
- if (parentActivation === void 0) return;
1922
- if (parentActivation.closing !== void 0) throw new SubagentError(`subagent parent "${parent.id}" is being disposed; the child was not established`, "ACTIVATION_CLOSING");
1923
- parentActivation.ownedChildren.add(childId);
1924
- this.wake(parentActivation);
1925
- }
1926
- /** Remove one child from its live owner's set and let that owner re-check settlement. */
1927
- releaseOwnership(childId) {
1928
- for (const candidate of this.resident.values()) if (candidate.ownedChildren.delete(childId)) this.wake(candidate);
1929
- }
1930
1892
  /** Let a settlement watcher re-check residency after relevant state changes. */
1931
1893
  wake(activation) {
1932
1894
  if (activation.kind === "external") return;
@@ -1981,16 +1943,15 @@ var SubagentManager = class {
1981
1943
  reportTeardownFailure(activation, error) {
1982
1944
  this.ctx.logger.warn(`subagent "${activation.childId}" activation teardown failed: ${failureMessage(error)}`);
1983
1945
  }
1984
- /** Check pending input and owned children before closing admission. */
1946
+ /** Check pending input before closing admission. */
1985
1947
  settlementState(activation, observation) {
1986
1948
  if (activation.closing !== void 0) return "closed";
1987
1949
  if (activation.poke !== observation) return "retry";
1988
1950
  const inbox = activation.handle.agent.inbox;
1989
- if (activation.ownedChildren.size > 0) return "wait";
1990
1951
  if (activation.failureAt === void 0 && (inbox.nextTurn.length > 0 || inbox.nextStep.length > 0)) return "wait";
1991
1952
  return "ready";
1992
1953
  }
1993
- /** Propagate stop synchronously and await descendant startup rollback before release. */
1954
+ /** Stop and release one instance without affecting its creation descendants. */
1994
1955
  async finishDisposal(activation, stop) {
1995
1956
  this.wake(activation);
1996
1957
  const { childId } = activation;
@@ -2014,22 +1975,7 @@ var SubagentManager = class {
2014
1975
  } else {
2015
1976
  if (stop) {
2016
1977
  activation.handle.agent.cancel({ kind: "parent" });
2017
- const idle = activation.handle.agent.whenIdle();
2018
- const children = [...activation.ownedChildren].map((child) => this.resident.get(child)).filter((child) => child !== void 0);
2019
- const pending = [...this.materializations].filter((item) => item.lineage.includes(activation.handle.agent));
2020
- const childDisposals = children.map((child) => this.dispose(child));
2021
- for (const item of pending) item.controller.abort();
2022
- childDisposals.push(...pending.map((item) => item.settled));
2023
- const reasons = (await Promise.all(childDisposals.map(async (disposal) => {
2024
- try {
2025
- await disposal;
2026
- return;
2027
- } catch (error) {
2028
- return error;
2029
- }
2030
- }))).filter((reason) => reason !== void 0);
2031
- if (reasons.length > 0) failures.push(new SubagentError(`subagent "${childId}" child teardown failed: ${reasons.map((reason) => failureMessage(reason)).join("; ")}`, "ACTIVATION_TEARDOWN_FAILED"));
2032
- await idle;
1978
+ await activation.handle.agent.whenIdle();
2033
1979
  await this.flushFinalState(activation);
2034
1980
  }
2035
1981
  result = captureLocalResult(activation);
@@ -2054,18 +2000,22 @@ var SubagentManager = class {
2054
2000
  stopReason: "error"
2055
2001
  };
2056
2002
  this.notifySettlement(activation, result);
2057
- this.releaseOwnership(childId);
2058
- activation.observer.settle(terminal);
2003
+ this.host.emitLifecycle("subagent/end", {
2004
+ ...this.runInfo(activation),
2005
+ stopReason: terminal.stopReason,
2006
+ ...terminal.output.length === 0 ? {} : { lastAssistantMessage: terminal.output }
2007
+ }, activation.root);
2059
2008
  if (resultFailure === void 0) activation.result.resolve(result);
2060
2009
  else activation.result.reject(resultFailure.error);
2061
2010
  if (failure !== void 0) throw failure;
2062
2011
  }
2063
2012
  /** Deliver the captured execution result to the durable direct parent after cleanup. */
2064
2013
  notifySettlement(activation, terminal) {
2065
- if (!activation.announced || activation.delivery === "caller") return;
2014
+ if (!activation.accepted || activation.delivery === "caller") return;
2066
2015
  try {
2067
- const parent = this.ctx.agents.get(activation.parent.id);
2068
- if (parent !== activation.parent) return;
2016
+ const parentId = activation.ancestors.at(-1);
2017
+ const parent = this.ctx.agents.get(parentId);
2018
+ if (parent === void 0 || this.rootOf(parent) !== activation.root) return;
2069
2019
  const message = createSettlementMessage(activation.childId, terminal, activation.kind === "local", activation.kind === "local" && activation.omitClosingText);
2070
2020
  if (this.closingTeardownFor(parent) !== void 0) {
2071
2021
  parent.inject(message);
@@ -2092,124 +2042,100 @@ var SubagentManager = class {
2092
2042
  dispose: () => this.dispose(activation)
2093
2043
  };
2094
2044
  }
2095
- /** Route one parent-originated delivery through residency and cold resume. */
2096
- async deliverToChild(parent, childId, content, options) {
2097
- this.assertAdmitting(parent);
2098
- const releaseHold = this.holdOwnership(parent, childId);
2099
- try {
2100
- return await this.deliverFollowup(parent, childId, content, options);
2101
- } catch (error) {
2102
- releaseHold();
2103
- throw error;
2104
- }
2105
- }
2106
- /** The delivery loop behind {@link deliverToChild}, run under the parent hold. */
2107
- async deliverFollowup(parent, childId, content, options) {
2045
+ /** Serialize target restoration and inbox admission; closure is awaited outside the lock. */
2046
+ async deliverToMember(root, childId, content, options) {
2108
2047
  while (true) {
2109
- const live = await this.locks.run(childId, async () => {
2048
+ this.assertAdmitting(root);
2049
+ options.signal.throwIfAborted();
2050
+ const result = await this.locks.run(childId, async () => {
2051
+ if (childId === root.id) {
2052
+ if (contentHasImage(content)) await this.assertImageCapable(root, options.signal);
2053
+ options.signal.throwIfAborted();
2054
+ options.authorize?.();
2055
+ this.assertAdmitting(root);
2056
+ const message = createUserMessage({
2057
+ content,
2058
+ source: options.source
2059
+ });
2060
+ this.sendWaking(root, message, options.delivery);
2061
+ options.onAccepted?.();
2062
+ return { messageId: message.id };
2063
+ }
2110
2064
  const activation = this.resident.get(childId);
2111
- if (activation === void 0) return this.coldResume(parent, childId, content, options);
2112
- requireLocalActivation(activation);
2113
- const disposal = activation.closing;
2114
- /* v8 ignore next 3 -- the send-versus-dispose cutoff needs a delivery to
2115
- * observe the transaction inside the same critical section that opened it. */
2116
- if (disposal !== void 0) return disposal.then(() => void 0, () => void 0);
2117
- if (contentHasImage(content)) {
2118
- await this.assertImageCapable(requireLocalActivation(activation).handle.agent, options.signal);
2119
- if (activation.closing !== void 0) {
2120
- await Promise.allSettled([activation.closing]);
2121
- return;
2122
- }
2065
+ if (activation === void 0) {
2066
+ const restored = await this.restoreTarget(root, childId, options.signal);
2067
+ return { messageId: await this.submitMaterialized(restored, content, options, root) };
2123
2068
  }
2124
- const messageId = this.submitAdmitted(activation, content, options, parent);
2125
- this.announce(activation);
2126
- return messageId;
2069
+ if (activation.root !== root) throw new SubagentError("target belongs to another subagent tree", "UNAUTHORIZED");
2070
+ requireLocalActivation(activation);
2071
+ if (activation.closing === void 0 && contentHasImage(content)) await this.assertImageCapable(requireLocalActivation(activation).handle.agent, options.signal);
2072
+ if (activation.closing !== void 0) return { closing: activation.closing };
2073
+ return { messageId: this.submitAdmitted(activation, content, options, root) };
2127
2074
  });
2128
- /* v8 ignore start -- only a delivery that lost the disposal cutoff retries. */
2129
- if (live !== void 0) return live;
2130
- this.assertAdmitting(parent);
2131
- options.signal.throwIfAborted();
2075
+ if ("messageId" in result) return result.messageId;
2076
+ await Promise.allSettled([result.closing]);
2132
2077
  }
2133
2078
  }
2134
- /** Deliver one resident continuable child's message to its live direct parent. */
2135
- sendToParent(activation, sender, content) {
2136
- /* v8 ignore next 6 -- only synchronous re-entrant teardown can open this
2137
- * transaction between exact-agent authorization and this no-await span. */
2138
- if (activation.closing !== void 0) throw new SubagentError(`subagent "${sender.id}" activation is being disposed; the message was not delivered`, "ACTIVATION_CLOSING");
2139
- const parent = this.ctx.agents.get(activation.parent.id);
2140
- if (parent !== activation.parent) throw new SubagentError("direct parent is not live; the message was not delivered", "PARENT_UNAVAILABLE");
2141
- const message = createAgentMessage(sender, content);
2142
- this.sendAgentMessage(parent, message);
2143
- activation.omitClosingText = true;
2144
- return message.id;
2145
- }
2146
- /** Send one Agent message while translating only the target's own rejection. */
2147
- sendAgentMessage(parent, message) {
2079
+ /** Read continuation history, preserving cancellation and reporting unavailable storage. */
2080
+ async observeContinuation(childId, signal) {
2081
+ const query = this.requireSessionQuery();
2148
2082
  try {
2149
- this.sendWaking(parent, message, "steer");
2083
+ return await query.observeSession(childId, { signal });
2150
2084
  } catch (error) {
2151
- throw new SubagentError("direct parent is not live; the message was not delivered", "PARENT_UNAVAILABLE", { cause: error });
2085
+ signal.throwIfAborted();
2086
+ throw new SubagentError(`subagent "${childId}" is unavailable`, "NOT_RESUMABLE", { cause: error });
2152
2087
  }
2153
2088
  }
2154
- /**
2155
- * Cold-resume a persisted child and submit the waiting turn. The descriptor
2156
- * supplies every reconstruction input; no subagent provider is dispatched.
2157
- */
2158
- async coldResume(parent, childId, content, options) {
2159
- const env_1 = {
2160
- stack: [],
2161
- error: void 0,
2162
- hasError: false
2163
- };
2164
- try {
2165
- const query = this.requireSessionQuery();
2166
- let observation;
2167
- try {
2168
- observation = await query.observeSession(childId, { signal: options.signal });
2169
- } catch (error) {
2170
- options.signal.throwIfAborted();
2171
- throw new SubagentError(`subagent "${childId}" is unavailable`, "NOT_RESUMABLE", { cause: error });
2172
- }
2173
- const source = __addDisposableResource$2(env_1, observation, false);
2174
- this.assertAdmitting(parent);
2175
- this.authorizeLineage(parent, childId, source.header.parentSession);
2176
- const ownEvents = source.events.slice(source.inheritedEventCount);
2177
- const descriptor = foldSubagentDescriptor(ownEvents);
2178
- if (descriptor === void 0 || descriptor.mode !== "continuable") throw new SubagentError(`subagent "${childId}" has no supported continuation state and cannot be resumed; choose a different target`, "NOT_RESUMABLE");
2179
- let activation;
2089
+ /** Reconstruct only the target under its subagent tree root; the caller owns acceptance or rollback. */
2090
+ async restoreTarget(root, childId, signal) {
2091
+ return this.trackStartup(root, signal, async (signal) => {
2092
+ const env_3 = {
2093
+ stack: [],
2094
+ error: void 0,
2095
+ hasError: false
2096
+ };
2180
2097
  try {
2181
- const independentlySelected = hasIndependentPresetSelection(ownEvents);
2182
- const agentPreset = independentlySelected ? source.projections?.values.agentPreset : void 0;
2183
- if (independentlySelected && typeof agentPreset !== "string") throw new SubagentError(`subagent "${childId}" has no agent preset projection for restoration`, "NOT_RESUMABLE");
2184
- activation = await this.materialize({
2185
- kind: "local",
2186
- childId,
2187
- provider: descriptor.provider,
2188
- parent,
2189
- agentOptions: {
2190
- ...descriptor.agentProvider !== void 0 ? { provider: descriptor.agentProvider } : {},
2191
- ...descriptor.agentModel !== void 0 ? { model: descriptor.agentModel } : {},
2192
- ...descriptor.agentReasoningEffort !== void 0 ? { reasoningEffort: ReasoningEffortId(descriptor.agentReasoningEffort) } : {}
2193
- },
2194
- composition: {
2195
- agentPreset: agentPreset ?? void 0,
2196
- persona: descriptor.persona,
2197
- toolFilter: descriptor.toolFilter
2198
- },
2199
- signal: options.signal
2200
- });
2201
- } catch (error) {
2202
- options.signal.throwIfAborted();
2203
- if (error instanceof SubagentError) throw error;
2204
- throw new SubagentError(`subagent "${childId}" is unavailable`, "NOT_RESUMABLE", { cause: error });
2098
+ const source = __addDisposableResource$1(env_3, await this.observeContinuation(childId, signal), false);
2099
+ this.assertAdmitting(root);
2100
+ const descriptor = foldSubagentDescriptor(source.events.slice(source.inheritedEventCount));
2101
+ if (descriptor === void 0 || descriptor.mode !== "continuable") throw new SubagentError(`subagent "${childId}" has no supported continuation state and cannot be resumed; choose a different target`, "NOT_RESUMABLE");
2102
+ const { ancestors } = await this.resolveCreationAncestry(source, signal, root);
2103
+ let activation;
2104
+ try {
2105
+ const projectedPreset = source.projections?.values.agentPreset;
2106
+ if (projectedPreset === void 0 && source.events.some((event) => event.type === "agent-preset/selected")) throw new SubagentError(`subagent "${childId}" has no agent preset projection for restoration`, "NOT_RESUMABLE");
2107
+ const agentPreset = projectedPreset ?? source.header.agentPreset;
2108
+ activation = await this.materialize({
2109
+ kind: "local",
2110
+ childId,
2111
+ provider: descriptor.provider,
2112
+ root,
2113
+ ancestors,
2114
+ agentOptions: {
2115
+ ...descriptor.agentProvider !== void 0 ? { provider: descriptor.agentProvider } : {},
2116
+ ...descriptor.agentModel !== void 0 ? { model: descriptor.agentModel } : {},
2117
+ ...descriptor.agentReasoningEffort !== void 0 ? { reasoningEffort: ReasoningEffortId(descriptor.agentReasoningEffort) } : {}
2118
+ },
2119
+ composition: {
2120
+ agentPreset: agentPreset ?? void 0,
2121
+ persona: descriptor.persona,
2122
+ toolFilter: descriptor.toolFilter
2123
+ },
2124
+ signal
2125
+ });
2126
+ } catch (error) {
2127
+ signal.throwIfAborted();
2128
+ if (error instanceof SubagentError) throw error;
2129
+ throw new SubagentError(`subagent "${childId}" is unavailable`, "NOT_RESUMABLE", { cause: error });
2130
+ }
2131
+ return activation;
2132
+ } catch (e_3) {
2133
+ env_3.error = e_3;
2134
+ env_3.hasError = true;
2135
+ } finally {
2136
+ __disposeResources$1(env_3);
2205
2137
  }
2206
- return await this.submitMaterialized(activation, content, options, parent);
2207
- } catch (e_1) {
2208
- env_1.error = e_1;
2209
- env_1.hasError = true;
2210
- } finally {
2211
- __disposeResources$2(env_1);
2212
- }
2138
+ });
2213
2139
  }
2214
2140
  /** Admit a materialized child, commit its creation fact, and release it on failure. */
2215
2141
  async submitMaterialized(activation, content, options, parent, commit) {
@@ -2220,7 +2146,7 @@ var SubagentManager = class {
2220
2146
  }
2221
2147
  const messageId = this.submitAdmitted(activation, content, options, parent);
2222
2148
  commit?.();
2223
- this.announce(activation);
2149
+ this.accept(activation);
2224
2150
  return messageId;
2225
2151
  } catch (error) {
2226
2152
  try {
@@ -2233,19 +2159,19 @@ var SubagentManager = class {
2233
2159
  }
2234
2160
  /** Build and submit one message across the final synchronous admission cutoff. */
2235
2161
  submitAdmitted(activation, content, options, parent) {
2236
- const message = options.source === void 0 ? createAgentMessage(parent, content) : createUserMessage({
2162
+ const message = createUserMessage({
2237
2163
  content,
2238
2164
  source: options.source
2239
2165
  });
2240
2166
  options.signal.throwIfAborted();
2167
+ options.authorize?.();
2241
2168
  this.assertAdmitting(parent);
2242
- this.authorizeLineage(parent, activation.childId, activation.parent.id);
2243
- this.acquireOwnership(parent, activation.childId);
2244
2169
  try {
2245
2170
  this.deliver(activation, message, options.delivery);
2246
2171
  } finally {
2247
2172
  this.wake(activation);
2248
2173
  }
2174
+ options.onAccepted?.();
2249
2175
  return message.id;
2250
2176
  }
2251
2177
  /** Refuse image content for a child whose fixed model accepts text only. */
@@ -2271,15 +2197,6 @@ var SubagentManager = class {
2271
2197
  return query;
2272
2198
  }
2273
2199
  };
2274
- /** Creation-time selection precedes the own descriptor; historical forks can select after it. */
2275
- function hasIndependentPresetSelection(events) {
2276
- for (const event of events) {
2277
- if (event.type === "subagent/descriptor") return false;
2278
- if (event.type === "agent-preset/selected") return true;
2279
- }
2280
- /* v8 ignore next -- coldResume rejects logs without a supported own descriptor before this lookup. */
2281
- return false;
2282
- }
2283
2200
  //#endregion
2284
2201
  //#region lib/types/list-children.js
2285
2202
  /**
@@ -2287,7 +2204,7 @@ function hasIndependentPresetSelection(events) {
2287
2204
  * Each catalog read releases its Session observation before the next branch.
2288
2205
  * @module @deepseek-ai/dsh-subagent
2289
2206
  */
2290
- var __addDisposableResource$1 = function(env, value, async) {
2207
+ var __addDisposableResource = function(env, value, async) {
2291
2208
  if (value !== null && value !== void 0) {
2292
2209
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
2293
2210
  var dispose, inner;
@@ -2316,7 +2233,7 @@ var __addDisposableResource$1 = function(env, value, async) {
2316
2233
  } else if (async) env.stack.push({ async: true });
2317
2234
  return value;
2318
2235
  };
2319
- var __disposeResources$1 = (function(SuppressedError) {
2236
+ var __disposeResources = (function(SuppressedError) {
2320
2237
  return function(env) {
2321
2238
  function fail(e) {
2322
2239
  env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
@@ -2362,14 +2279,14 @@ async function listChildren(ctx, parentSessionId, signal) {
2362
2279
  try {
2363
2280
  const query = ctx.get("sessionQuery");
2364
2281
  if (query === void 0) throw new SubagentError("listing subagents requires the sessionQuery service (load @deepseek-ai/dsh-session-query)", "SUBAGENT_CONTROL_QUERY_UNAVAILABLE");
2365
- const entries = __addDisposableResource$1(env_1, await query.observeSession(parentSessionId, { ...signal === void 0 ? {} : { signal } }), false).projections?.values.subagentCatalog;
2282
+ const entries = __addDisposableResource(env_1, await query.observeSession(parentSessionId, { ...signal === void 0 ? {} : { signal } }), false).projections?.values.subagentCatalog;
2366
2283
  if (entries === void 0) throw new SubagentError("listing subagents requires the registered subagentCatalog projection", "SUBAGENT_CONTROL_PROJECTIONS_UNAVAILABLE");
2367
2284
  return entries;
2368
2285
  } catch (e_1) {
2369
2286
  env_1.error = e_1;
2370
2287
  env_1.hasError = true;
2371
2288
  } finally {
2372
- __disposeResources$1(env_1);
2289
+ __disposeResources(env_1);
2373
2290
  }
2374
2291
  }
2375
2292
  /**
@@ -2452,159 +2369,6 @@ function assertListingNotCancelled(signal) {
2452
2369
  if (signal?.aborted) throw new SubagentError("subagent listing was cancelled", "CANCELLED");
2453
2370
  }
2454
2371
  //#endregion
2455
- //#region lib/types/archive-admission.js
2456
- /**
2457
- * The `subagent` family of the Workspace registry's archive admission: which
2458
- * subagent descendants of a Session are still inside a turn, and how they
2459
- * stop when the Session is archived with its work.
2460
- *
2461
- * @module @deepseek-ai/dsh-subagent
2462
- */
2463
- var __addDisposableResource = function(env, value, async) {
2464
- if (value !== null && value !== void 0) {
2465
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
2466
- var dispose, inner;
2467
- if (async) {
2468
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
2469
- dispose = value[Symbol.asyncDispose];
2470
- }
2471
- if (dispose === void 0) {
2472
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
2473
- dispose = value[Symbol.dispose];
2474
- if (async) inner = dispose;
2475
- }
2476
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
2477
- if (inner) dispose = function() {
2478
- try {
2479
- inner.call(this);
2480
- } catch (e) {
2481
- return Promise.reject(e);
2482
- }
2483
- };
2484
- env.stack.push({
2485
- value,
2486
- dispose,
2487
- async
2488
- });
2489
- } else if (async) env.stack.push({ async: true });
2490
- return value;
2491
- };
2492
- var __disposeResources = (function(SuppressedError) {
2493
- return function(env) {
2494
- function fail(e) {
2495
- env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
2496
- env.hasError = true;
2497
- }
2498
- var r, s = 0;
2499
- function next() {
2500
- while (r = env.stack.pop()) try {
2501
- if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
2502
- if (r.dispose) {
2503
- var result = r.dispose.call(r.value);
2504
- if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
2505
- fail(e);
2506
- return next();
2507
- });
2508
- } else s |= 1;
2509
- } catch (e) {
2510
- fail(e);
2511
- }
2512
- if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
2513
- if (env.hasError) throw env.error;
2514
- }
2515
- return next();
2516
- };
2517
- })(typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
2518
- var e = new Error(message);
2519
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2520
- });
2521
- /**
2522
- * Answer `workspace/session-activity` with the running subagent descendants of
2523
- * the asked Session, and `workspace/session-stop` by cancelling each of them
2524
- * as their parent would. Both listeners live as long as `ctx`'s fiber.
2525
- * @param ctx - context carrying the Agent registry; the Session query service is optional and only supplies labels.
2526
- */
2527
- function installSubagentArchiveAdmission(ctx) {
2528
- ctx.on("workspace/session-activity", async ({ sessionId }, next) => {
2529
- const running = runningDescendants(ctx, sessionId);
2530
- const rest = await next();
2531
- if (running.length === 0) return rest;
2532
- return [{
2533
- kind: "subagent",
2534
- items: await Promise.all(running.map((child) => describe(ctx, child)))
2535
- }, ...rest];
2536
- });
2537
- ctx.on("workspace/session-stop", ({ sessionId }) => {
2538
- for (const child of runningDescendants(ctx, sessionId)) try {
2539
- child.cancel({ kind: "parent" });
2540
- } catch (error) {
2541
- ctx.logger.warn(`subagent: cancelling "${child.id}" for an archived Session failed: ${String(error)}`);
2542
- }
2543
- });
2544
- }
2545
- /**
2546
- * Live subagent descendants inside a turn, by durable lineage: a child whose
2547
- * header names its parent and carries the subagent origin this package
2548
- * records, at any depth. A fork shares the lineage field without the origin
2549
- * and is an independent conversation, so it never holds its source. Lineage
2550
- * is read as data, so a damaged header chain that loops is visited once.
2551
- */
2552
- function runningDescendants(ctx, rootId) {
2553
- const childrenOf = /* @__PURE__ */ new Map();
2554
- for (const agent of ctx.agents.list()) {
2555
- const { parentSession, origin } = agent.session.header;
2556
- if (parentSession === void 0 || origin !== "subagent") continue;
2557
- const siblings = childrenOf.get(parentSession) ?? [];
2558
- siblings.push(agent);
2559
- childrenOf.set(parentSession, siblings);
2560
- }
2561
- const running = [];
2562
- const pending = [rootId];
2563
- const visited = /* @__PURE__ */ new Set();
2564
- while (pending.length > 0) {
2565
- const parentId = pending.shift();
2566
- if (visited.has(parentId)) continue;
2567
- visited.add(parentId);
2568
- for (const child of childrenOf.get(parentId) ?? []) {
2569
- if (child.status === "running") running.push(child);
2570
- pending.push(child.id);
2571
- }
2572
- }
2573
- return running;
2574
- }
2575
- /**
2576
- * The child's activity item: its id, plus the durable creation label its
2577
- * descriptor carries, read through a live Session observation. Without the
2578
- * Session query service, or with a descriptor that is absent or unreadable,
2579
- * the item names the child by id alone.
2580
- */
2581
- async function describe(ctx, child) {
2582
- const query = ctx.get("sessionQuery");
2583
- if (query === void 0) return { id: child.id };
2584
- try {
2585
- const env_1 = {
2586
- stack: [],
2587
- error: void 0,
2588
- hasError: false
2589
- };
2590
- try {
2591
- const observation = __addDisposableResource(env_1, await query.observeSession(child.id, { projectionMode: "none" }), false);
2592
- const label = foldSubagentDescriptor(observation.events.slice(observation.inheritedEventCount))?.label;
2593
- return label === void 0 ? { id: child.id } : {
2594
- id: child.id,
2595
- label
2596
- };
2597
- } catch (e_1) {
2598
- env_1.error = e_1;
2599
- env_1.hasError = true;
2600
- } finally {
2601
- __disposeResources(env_1);
2602
- }
2603
- } catch {
2604
- return { id: child.id };
2605
- }
2606
- }
2607
- //#endregion
2608
2372
  //#region lib/types/projection.js
2609
2373
  /**
2610
2374
  * Pure session projections for subagent identity (mode/label) and active-turn
@@ -2956,12 +2720,18 @@ let SubagentRuntime = (() => {
2956
2720
  let _classSuper = TypertRemoteService;
2957
2721
  let _instanceExtraInitializers = [];
2958
2722
  let _prompt_decorators;
2959
- let _interruptByParent_decorators;
2723
+ let _interruptByUser_decorators;
2960
2724
  return class SubagentRuntime extends _classSuper {
2961
2725
  static {
2962
2726
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
2963
- _prompt_decorators = [Remote("prompt")];
2964
- _interruptByParent_decorators = [Remote("interruptByParent")];
2727
+ _prompt_decorators = [Remote({
2728
+ name: "prompt",
2729
+ resources: { session: (request) => request.childSessionId }
2730
+ })];
2731
+ _interruptByUser_decorators = [Remote({
2732
+ name: "interruptByUser",
2733
+ resources: { session: (childSessionId) => childSessionId }
2734
+ })];
2965
2735
  __esDecorate(this, null, _prompt_decorators, {
2966
2736
  kind: "method",
2967
2737
  name: "prompt",
@@ -2973,14 +2743,14 @@ let SubagentRuntime = (() => {
2973
2743
  },
2974
2744
  metadata: _metadata
2975
2745
  }, null, _instanceExtraInitializers);
2976
- __esDecorate(this, null, _interruptByParent_decorators, {
2746
+ __esDecorate(this, null, _interruptByUser_decorators, {
2977
2747
  kind: "method",
2978
- name: "interruptByParent",
2748
+ name: "interruptByUser",
2979
2749
  static: false,
2980
2750
  private: false,
2981
2751
  access: {
2982
- has: (obj) => "interruptByParent" in obj,
2983
- get: (obj) => obj.interruptByParent
2752
+ has: (obj) => "interruptByUser" in obj,
2753
+ get: (obj) => obj.interruptByUser
2984
2754
  },
2985
2755
  metadata: _metadata
2986
2756
  }, null, _instanceExtraInitializers);
@@ -3009,13 +2779,17 @@ let SubagentRuntime = (() => {
3009
2779
  super(ctx, "subagents");
3010
2780
  this.config = config;
3011
2781
  this.emitLifecycle = createLifecycleEmitter(this.ctx, (parent) => scopeTarget(this, parent));
2782
+ }
2783
+ async [Service.init]() {
2784
+ const ctx = this.ctx;
2785
+ await ctx.sessionProjections.register(subagentCatalogProjectionDefinition);
2786
+ await ctx.sessionProjections.register(subagentTimingProjectionDefinition);
2787
+ const identityProjection = await ctx.sessionProjections.register(subagentIdentityProjectionDefinition);
2788
+ if (ctx.fiber.uid === null) return;
3012
2789
  ctx.inject(["agents"], (childCtx) => {
3013
2790
  const manager = new SubagentManager(childCtx, {
3014
- startExternal: (name, request) => {
3015
- return this.expectProvider(name).start(request);
3016
- },
3017
- prepareContinuable: (name, request) => this.prepareContinuable(name, request),
3018
- observeActivation: (provider, childId, parent) => this.observeActivation(provider, childId, parent)
2791
+ identityOf: (session) => identityProjection.stateOf(session).identity,
2792
+ emitLifecycle: this.emitLifecycle
3019
2793
  }, () => this.config.maxActiveSubagents.get());
3020
2794
  this.manager = manager;
3021
2795
  childCtx.effect(() => () => {
@@ -3023,15 +2797,6 @@ let SubagentRuntime = (() => {
3023
2797
  if (this.manager === manager) this.manager = void 0;
3024
2798
  }, "subagents.managerBinding()");
3025
2799
  });
3026
- ctx.inject(["agents"], (agentsCtx) => {
3027
- installSubagentArchiveAdmission(agentsCtx);
3028
- });
3029
- }
3030
- async [Service.init]() {
3031
- const { sessionProjections } = this.ctx;
3032
- await sessionProjections.register(subagentCatalogProjectionDefinition);
3033
- await sessionProjections.register(subagentTimingProjectionDefinition);
3034
- await sessionProjections.register(subagentIdentityProjectionDefinition);
3035
2800
  }
3036
2801
  /**
3037
2802
  * Resolve a delegation tool's depth policy against the current user setting.
@@ -3050,64 +2815,64 @@ let SubagentRuntime = (() => {
3050
2815
  * @param spec - task, backend, and result recipient.
3051
2816
  * @returns identities, execution result, and exact-activation disposal. A reserved
3052
2817
  * childId requires a local backend and guarantees an accepted messageId.
2818
+ * @throws PROVIDER_CHANGED if the selected provider is removed or replaced before dispatch.
3053
2819
  */
3054
2820
  async startActivation(spec) {
3055
2821
  const provider = this.expectProvider(spec.provider);
3056
2822
  if (spec.childId !== void 0 && provider.prepareContinuable === void 0) throw new SubagentError("reserved child ids require a local backend", "UNSUPPORTED_CAPABILITY");
3057
- assertSubagentMaxDepth(spec.request.maxDepth);
3058
- this.assertCapabilities(provider, {
3059
- ...spec.request,
3060
- signal: spec.signal
3061
- });
2823
+ assertSubagentMaxDepth(spec.maxDepth);
2824
+ this.assertCapabilities(provider, spec);
3062
2825
  const manager = this.requireManager();
3063
- if (this.ctx.get("agents")?.get(spec.request.parent.id) !== spec.request.parent) throw new SubagentError("subagent creation requires the exact live parent agent", "UNAUTHORIZED");
3064
- if (spec.request.outputSchema !== void 0) assertObjectJsonSchema(spec.request.outputSchema);
3065
- return provider.prepareContinuable === void 0 ? manager.startExternal(spec) : manager.startLocal(spec);
2826
+ if (this.ctx.get("agents")?.get(spec.parent.id) !== spec.parent) throw new SubagentError("subagent creation requires the exact live parent agent", "UNAUTHORIZED");
2827
+ if (spec.outputSchema !== void 0) assertObjectJsonSchema(spec.outputSchema);
2828
+ const prepare = provider.prepareContinuable?.bind(provider);
2829
+ if (prepare !== void 0) return manager.startLocal(spec, (request) => {
2830
+ this.assertProviderCurrent(provider);
2831
+ return prepare(request);
2832
+ });
2833
+ const start = provider.start.bind(provider);
2834
+ return manager.startExternal(spec, (request) => {
2835
+ this.assertProviderCurrent(provider);
2836
+ return start(request);
2837
+ });
2838
+ }
2839
+ /**
2840
+ * Resolve the root shared by an Agent and its other agents in its subagent tree.
2841
+ * @param caller - exact live Agent whose subagent ancestry selects the tree.
2842
+ * @returns the live root; ordinary Session forks lead independent trees.
2843
+ * @throws when the caller or its runtime owner is unavailable.
2844
+ */
2845
+ rootOf(caller) {
2846
+ return this.requireManager().rootOf(caller);
3066
2847
  }
3067
2848
  /**
3068
- * Join progressing descendants without cancelling them. Idle descendants whose
3069
- * inboxes require a later wake stay resident and do not delay host completion.
3070
- * @param parent - the exact parent whose descendant work is observed.
3071
- * @returns whether work was joined; hosts recheck parent idle after true.
2849
+ * Join progressing subagent tree work for its root. Idle members with parked input
2850
+ * stay resident without delaying host completion. Ordinary members return false.
2851
+ * @param root - exact live subagent tree root whose member work is awaited.
2852
+ * @returns whether work was joined; hosts recheck root idle after true.
3072
2853
  */
3073
- async waitForChildren(parent) {
3074
- return this.manager?.waitForChildren(parent) ?? false;
2854
+ async waitForTreeWork(root) {
2855
+ return this.manager?.waitForTreeWork(root) ?? false;
3075
2856
  }
3076
2857
  /**
3077
- * Steer one model-authored message to the sender's direct parent or direct
3078
- * continuable child. A running target admits it at the nearest step boundary;
3079
- * an idle target starts a turn, and an absent direct child cold-resumes from
3080
- * persistence. The service derives durable sender attribution from the exact
3081
- * live sender. Caller cancellation stops only pre-acceptance work.
3082
- * @param sender - exact live Agent authorizing and originating the message.
3083
- * @param targetId - durable direct-parent or direct-child session id.
2858
+ * Steer one model-authored message to another member of the same subagent tree.
2859
+ * A running target receives it at its next step; an idle target starts a turn.
2860
+ * A cold target resumes under its runtime subagent tree root without restoring
2861
+ * its creation ancestors. Sender identity is rechecked before inbox acceptance; cancellation
2862
+ * stops only pre-acceptance work and never retracts an accepted message.
2863
+ * @param sender - exact live root or resident continuable Agent originating the message.
2864
+ * @param targetId - another root or continuable member's durable Session id.
3084
2865
  * @param content - model-authored content to deliver.
3085
2866
  * @param options - caller cancellation before inbox acceptance.
3086
2867
  * @returns the accepted message's inbox id.
3087
- * @throws when continuation services are unavailable, adjacency is rejected,
3088
- * or the message was not admitted.
2868
+ * @throws when the target is outside the tree, cannot resume, or rejects input.
3089
2869
  */
3090
2870
  async sendMessage(sender, targetId, content, options) {
3091
2871
  return this.requireManager().sendMessage(sender, targetId, content, options);
3092
2872
  }
3093
2873
  /**
3094
- * Deliver one host-protocol message to a direct continuable child.
3095
- * Symbol-keyed so host adapters can preserve their own source descriptors without
3096
- * widening the public Service Definition or impersonating an Agent sender.
3097
- * @param parent - exact live direct parent authorizing delivery.
3098
- * @param childId - durable direct-child session id.
3099
- * @param content - host-authored content to deliver.
3100
- * @param source - durable host-protocol source descriptor.
3101
- * @param signal - caller cancellation before inbox acceptance.
3102
- * @param delivery - Queue as a distinct turn or Steer at the nearest step.
3103
- * @returns the accepted message's inbox id.
3104
- */
3105
- [deliverSubagentPrompt](parent, childId, content, source, signal, delivery) {
3106
- return delivery === "steer" ? this.requireManager().steerPrompt(parent, childId, content, source, signal) : this.requireManager().queuePrompt(parent, childId, content, source, signal);
3107
- }
3108
- /**
3109
- * Interrupt one live child's current execution under a human parent
3110
- * address or an exact live ancestor Agent. Fire-and-return: the cancel
2874
+ * Interrupt one live child's current execution under a trusted user
2875
+ * operation or an exact live ancestor Agent. Fire-and-return: the cancel
3111
2876
  * signal is issued before this returns, but the target may keep running
3112
2877
  * until it observes the signal. Unclaimed pending inbox work, the Activation,
3113
2878
  * and published descendants are preserved; claimed work is not requeued.
@@ -3116,7 +2881,7 @@ let SubagentRuntime = (() => {
3116
2881
  * is an accepted no-op, as is a manager-less composition, which cannot own a
3117
2882
  * live Activation.
3118
2883
  * @param targetSessionId - the durable child session id to interrupt.
3119
- * @param authority - the human parent address or exact live ancestor Agent.
2884
+ * @param authority - a trusted user operation or exact live ancestor Agent.
3120
2885
  * @throws {SubagentError} `UNAUTHORIZED` when the authority does not own the
3121
2886
  * live target.
3122
2887
  */
@@ -3124,13 +2889,11 @@ let SubagentRuntime = (() => {
3124
2889
  this.manager?.interrupt(targetSessionId, authority);
3125
2890
  }
3126
2891
  /**
3127
- * Close subagent admission below exact live parent Agents, stop only their
3128
- * visible descendant Activations synchronously, then await admitted scoped
3129
- * materializations and release those forests child-first. The scoped cutoff
3130
- * lasts until each exact parent leaves the registry; unrelated parent trees
3131
- * remain live.
3132
- * @param parents - exact host-owned parent Agents entering teardown.
3133
- * @returns once every retained descendant activation released its execution handle.
2892
+ * Close admission and stop all instances in the selected subagent trees, then await
2893
+ * pending startup and cleanup. Ordinary members are ignored. The cutoff lasts
2894
+ * until each exact root leaves the registry; unrelated subagent trees remain live.
2895
+ * @param parents - exact live subagent tree roots entering teardown.
2896
+ * @returns once all admitted startup and member cleanup have settled.
3134
2897
  * @throws an aggregate error after all branches settle when any failed.
3135
2898
  */
3136
2899
  async drainDescendants(parents) {
@@ -3139,33 +2902,6 @@ let SubagentRuntime = (() => {
3139
2902
  await manager.drainDescendants(parents);
3140
2903
  }
3141
2904
  /**
3142
- * Release selected resident direct children of one exact live
3143
- * parent. Other children of the same parent remain admitted and resident.
3144
- * Absent targets and a manager-less composition are accepted no-ops.
3145
- * @param parent - exact live direct parent authorizing the selected release.
3146
- * @param childIds - durable direct-child ids to release when resident.
3147
- * @returns once every selected activation released its execution handle.
3148
- * @throws {SubagentError} `UNAUTHORIZED` when a resident target belongs to a
3149
- * different parent or the supplied parent identity is stale.
3150
- */
3151
- async drainChildren(parent, childIds) {
3152
- const manager = this.manager;
3153
- if (manager === void 0) return;
3154
- await manager.drainChildren(parent, childIds);
3155
- }
3156
- /**
3157
- * Read the parent's durable direct-child catalog without loading or resuming an Agent.
3158
- * The service owns and releases the live-preferred Session observation.
3159
- * @param parentSessionId - parent whose direct children are requested.
3160
- * @param signal - cancellation forwarded to the Session query.
3161
- * @returns catalog children in parent event order.
3162
- * @throws {@link SubagentError} when query or catalog projection is unavailable.
3163
- * @throws SessionQueryError when the parent cannot be read or the query is cancelled.
3164
- */
3165
- listChildren(parentSessionId, signal) {
3166
- return listChildren(this.ctx, parentSessionId, signal);
3167
- }
3168
- /**
3169
2905
  * Recursively list reachable parent catalogs in stable pre-order, preserving
3170
2906
  * each catalog's event order. Each row carries its catalog parent and depth;
3171
2907
  * external children are leaves; one-shot and unknown-mode children remain
@@ -3185,8 +2921,8 @@ let SubagentRuntime = (() => {
3185
2921
  return listDescendants(this.ctx, rootSessionId, signal);
3186
2922
  }
3187
2923
  /**
3188
- * Deliver one browser-authored message to a continuable child through the
3189
- * exact live direct parent, retaining the caller-minted request identity and
2924
+ * Deliver one browser-authored message to a continuable child through its
2925
+ * live subagent tree root, retaining the caller-minted request identity and
3190
2926
  * validated browser zone on the accepted message. Success identifies the
3191
2927
  * message the child's inbox accepted; later execution is independent of this
3192
2928
  * call. Queue delivery targets a later turn; steer delivery targets the
@@ -3194,21 +2930,20 @@ let SubagentRuntime = (() => {
3194
2930
  * Image parts are admitted and persisted through the attachment store
3195
2931
  * before delivery, and the child's model must accept image input.
3196
2932
  * Cold resume at capacity rejects with `subagent/delivery-unavailable`.
3197
- * @param request - durable address, delivery, minted identity, content, and optional browser zone.
2933
+ * Access is checked on the target Session before attachment admission or restoration.
2934
+ * @param request - target id, delivery, minted identity, content, and optional browser zone.
3198
2935
  * @param signal - carrier cancellation, owning the call until inbox acceptance.
3199
2936
  * @returns the accepted message's inbox identity.
3200
2937
  * @throws {RemoteError} `gateway/bad-request`, `subagent/attachment-invalid`,
3201
- * `subagent/invalid-time-zone`, `subagent/parent-unavailable`,
2938
+ * `subagent/invalid-time-zone`,
3202
2939
  * `subagent/not-resumable`, `subagent/unauthorized`,
3203
2940
  * `subagent/delivery-unavailable`, `gateway/cancelled`, or `gateway/internal`.
3204
2941
  */
3205
2942
  async prompt(request, signal) {
3206
- const { parentSessionId, childSessionId, clientTimeZone, delivery } = request;
2943
+ const { childSessionId, clientTimeZone, delivery } = request;
3207
2944
  validateControlRequest("subagent.prompt", request);
3208
2945
  const canonicalTimeZone = clientTimeZone === void 0 ? void 0 : canonicalClientTimeZone(clientTimeZone);
3209
2946
  if (clientTimeZone !== void 0 && canonicalTimeZone === void 0) throw new RemoteError("subagent/invalid-time-zone", "clientTimeZone must be UTC or a valid IANA Area/Location name", { value: clientTimeZone });
3210
- const parent = this.ctx.get("agents")?.get(parentSessionId);
3211
- if (parent === void 0) throw new RemoteError("subagent/parent-unavailable", `parent session "${parentSessionId}" is not live`, { parentSessionId });
3212
2947
  const principal = principalOf(this.ctx.invocation);
3213
2948
  const source = {
3214
2949
  kind: "user",
@@ -3227,38 +2962,29 @@ let SubagentRuntime = (() => {
3227
2962
  if (attachments === void 0) throw new Error("subagent image prompt requires an attachment store");
3228
2963
  content = await attachments.admitPromptContent(request.content);
3229
2964
  }
3230
- return { messageId: await this[deliverSubagentPrompt](parent, childSessionId, content, source, signal, delivery) };
2965
+ return { messageId: await this.requireManager().deliverPrompt(childSessionId, content, {
2966
+ source,
2967
+ signal,
2968
+ delivery
2969
+ }) };
3231
2970
  } catch (error) {
3232
2971
  return rejectPrompt(error, childSessionId, signal);
3233
2972
  }
3234
2973
  }
3235
2974
  /**
3236
- * Remote face of {@link interrupt} under one durable parent address. No
3237
- * catalog, history, persistence, or parent Agent lookup runs: the core
3238
- * primitive alone authorizes the address against the live Activation, which
3239
- * is what keeps a live child interruptible while its parent Agent is offline.
2975
+ * Remote face of {@link interrupt}, authorized on the target Session by the Gateway.
2976
+ * No catalog, history, persistence, or parent Agent lookup runs.
3240
2977
  * Absent, idle, and already-completed targets are accepted no-ops there.
3241
2978
  * @param childSessionId - durable child session id to interrupt.
3242
- * @param parentSessionId - durable direct parent whose authority is claimed.
3243
- * @param mode - required continuable-address discriminator.
3244
2979
  * @returns acknowledgement that the cancel signal was admitted, not that the target is quiescent.
3245
2980
  * @throws {RemoteError} `gateway/bad-request` for an empty id,
3246
- * `subagent/unauthorized` when the address does not own the live target,
3247
2981
  * otherwise `gateway/internal`.
3248
2982
  */
3249
- interruptByParent(childSessionId, parentSessionId, mode) {
3250
- validateControlRequest("subagent.interrupt", {
3251
- childSessionId,
3252
- parentSessionId,
3253
- mode
3254
- });
2983
+ interruptByUser(childSessionId) {
2984
+ validateControlRequest("subagent.interrupt", { childSessionId });
3255
2985
  try {
3256
- this.interrupt(childSessionId, {
3257
- kind: "user",
3258
- parentSessionId
3259
- });
2986
+ this.interrupt(childSessionId, { kind: "user" });
3260
2987
  } catch (error) {
3261
- if (error instanceof SubagentError && error.code === "UNAUTHORIZED") throw new RemoteError("subagent/unauthorized", "subagent does not belong to this parent", { childSessionId }, { cause: error });
3262
2988
  throw new RemoteError("gateway/internal", "subagent interrupt failed", {}, { cause: error });
3263
2989
  }
3264
2990
  return { accepted: true };
@@ -3292,20 +3018,9 @@ let SubagentRuntime = (() => {
3292
3018
  getProvider(name) {
3293
3019
  return this.providers.get(name);
3294
3020
  }
3295
- /**
3296
- * List registered provider names in insertion order.
3297
- * @returns the registered names.
3298
- */
3299
- list() {
3300
- return [...this.providers.keys()];
3301
- }
3302
- /**
3303
- * Resolve one provider's detached continuable-creation contribution. Method
3304
- * presence on the provider IS the capability, so a provider without it is
3305
- * rejected before the manager reserves any child resources.
3306
- */
3307
- async prepareContinuable(name, request) {
3308
- return this.expectProvider(name).prepareContinuable(request);
3021
+ /** A pending start must use the exact provider whose capabilities were checked. */
3022
+ assertProviderCurrent(provider) {
3023
+ if (this.providers.get(provider.name) !== provider) throw new SubagentError(`subagent provider "${provider.name}" changed during startup; retry the delegation`, "PROVIDER_CHANGED");
3309
3024
  }
3310
3025
  /** Look up a provider for dispatch or fail loud. */
3311
3026
  expectProvider(name) {
@@ -3318,13 +3033,6 @@ let SubagentRuntime = (() => {
3318
3033
  if (this.manager === void 0) throw new SubagentError("continuable subagents require the agents service", "CONTINUATION_UNAVAILABLE");
3319
3034
  return this.manager;
3320
3035
  }
3321
- /**
3322
- * Build the lifecycle observer for one continuable Activation's residency
3323
- * epoch, so the manager publishes its edges without owning event dispatch.
3324
- */
3325
- observeActivation(provider, childId, parent) {
3326
- return createActivationObserver(this.emitLifecycle, provider, childId, parent);
3327
- }
3328
3036
  /** Reject the first requested capability that the provider lacks. */
3329
3037
  assertCapabilities(provider, request) {
3330
3038
  if (request.agentPreset !== void 0 && (!provider.capabilities.agentPreset || provider.inheritsParentContext)) throw new SubagentError(`subagent provider "${provider.name}" does not support independent agent preset selection`, "UNSUPPORTED_CAPABILITY");