@code-yeongyu/senpi 2026.9.3-3 → 2026.9.4-2

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 (867) hide show
  1. package/CHANGELOG.md +78 -1
  2. package/README.md +5 -4
  3. package/dist/cli/startup-ui.d.ts.map +1 -1
  4. package/dist/cli/startup-ui.js +2 -1
  5. package/dist/cli/startup-ui.js.map +1 -1
  6. package/dist/core/agent-session-runtime.js +2 -2
  7. package/dist/core/agent-session-runtime.js.map +1 -1
  8. package/dist/core/agent-session.d.ts.map +1 -1
  9. package/dist/core/agent-session.js +24 -1
  10. package/dist/core/agent-session.js.map +1 -1
  11. package/dist/core/compaction/compaction.d.ts.map +1 -1
  12. package/dist/core/compaction/compaction.js +16 -7
  13. package/dist/core/compaction/compaction.js.map +1 -1
  14. package/dist/core/extensions/builtin/bash-timeout/index.d.ts.map +1 -1
  15. package/dist/core/extensions/builtin/bash-timeout/index.js +1 -5
  16. package/dist/core/extensions/builtin/bash-timeout/index.js.map +1 -1
  17. package/dist/core/extensions/builtin/bash-timeout/timeout.d.ts +0 -2
  18. package/dist/core/extensions/builtin/bash-timeout/timeout.d.ts.map +1 -1
  19. package/dist/core/extensions/builtin/bash-timeout/timeout.js +3 -4
  20. package/dist/core/extensions/builtin/bash-timeout/timeout.js.map +1 -1
  21. package/dist/core/extensions/builtin/goal/prompt.d.ts.map +1 -1
  22. package/dist/core/extensions/builtin/goal/prompt.js +1 -3
  23. package/dist/core/extensions/builtin/goal/prompt.js.map +1 -1
  24. package/dist/core/extensions/builtin/goal/tool-registration.js +1 -1
  25. package/dist/core/extensions/builtin/goal/tool-registration.js.map +1 -1
  26. package/dist/core/extensions/builtin/loop/index.d.ts.map +1 -1
  27. package/dist/core/extensions/builtin/loop/index.js +20 -1
  28. package/dist/core/extensions/builtin/loop/index.js.map +1 -1
  29. package/dist/core/extensions/builtin/loop/tools.d.ts +6 -1
  30. package/dist/core/extensions/builtin/loop/tools.d.ts.map +1 -1
  31. package/dist/core/extensions/builtin/loop/tools.js +8 -1
  32. package/dist/core/extensions/builtin/loop/tools.js.map +1 -1
  33. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.d.ts +123 -0
  34. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.d.ts.map +1 -0
  35. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.js +202 -0
  36. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.js.map +1 -0
  37. package/dist/core/extensions/builtin/prompt-preset/gpt-eval-routing.d.ts.map +1 -1
  38. package/dist/core/extensions/builtin/prompt-preset/gpt-eval-routing.js +1 -2
  39. package/dist/core/extensions/builtin/prompt-preset/gpt-eval-routing.js.map +1 -1
  40. package/dist/core/extensions/builtin/prompt-preset/presets.d.ts.map +1 -1
  41. package/dist/core/extensions/builtin/prompt-preset/presets.js +17 -0
  42. package/dist/core/extensions/builtin/prompt-preset/presets.js.map +1 -1
  43. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts +1 -1
  44. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts.map +1 -1
  45. package/dist/core/extensions/builtin/prompt-preset/settings.js +1 -0
  46. package/dist/core/extensions/builtin/prompt-preset/settings.js.map +1 -1
  47. package/dist/core/extensions/builtin/todotools/prompt.d.ts +2 -2
  48. package/dist/core/extensions/builtin/todotools/prompt.d.ts.map +1 -1
  49. package/dist/core/extensions/builtin/todotools/prompt.js +3 -6
  50. package/dist/core/extensions/builtin/todotools/prompt.js.map +1 -1
  51. package/dist/core/extensions/builtin/tool-search/native-search.d.ts +1 -1
  52. package/dist/core/extensions/builtin/tool-search/native-search.d.ts.map +1 -1
  53. package/dist/core/extensions/builtin/tool-search/native-search.js +1 -1
  54. package/dist/core/extensions/builtin/tool-search/native-search.js.map +1 -1
  55. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.d.ts +34 -0
  56. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.d.ts.map +1 -0
  57. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.js +121 -0
  58. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.js.map +1 -0
  59. package/dist/core/extensions/builtin/ttsr/detectors/collapse.d.ts +2 -0
  60. package/dist/core/extensions/builtin/ttsr/detectors/collapse.d.ts.map +1 -1
  61. package/dist/core/extensions/builtin/ttsr/detectors/collapse.js +6 -2
  62. package/dist/core/extensions/builtin/ttsr/detectors/collapse.js.map +1 -1
  63. package/dist/core/extensions/index.d.ts +1 -1
  64. package/dist/core/extensions/index.d.ts.map +1 -1
  65. package/dist/core/extensions/index.js.map +1 -1
  66. package/dist/core/extensions/runner.d.ts +5 -0
  67. package/dist/core/extensions/runner.d.ts.map +1 -1
  68. package/dist/core/extensions/runner.js +44 -1
  69. package/dist/core/extensions/runner.js.map +1 -1
  70. package/dist/core/extensions/types.d.ts +26 -3
  71. package/dist/core/extensions/types.d.ts.map +1 -1
  72. package/dist/core/extensions/types.js.map +1 -1
  73. package/dist/core/http-dispatcher.d.ts.map +1 -1
  74. package/dist/core/http-dispatcher.js +2 -0
  75. package/dist/core/http-dispatcher.js.map +1 -1
  76. package/dist/core/manual-continue.d.ts +13 -0
  77. package/dist/core/manual-continue.d.ts.map +1 -0
  78. package/dist/core/manual-continue.js +19 -0
  79. package/dist/core/manual-continue.js.map +1 -0
  80. package/dist/core/messages.d.ts.map +1 -1
  81. package/dist/core/messages.js +8 -2
  82. package/dist/core/messages.js.map +1 -1
  83. package/dist/core/model-config.d.ts.map +1 -1
  84. package/dist/core/model-config.js +3 -0
  85. package/dist/core/model-config.js.map +1 -1
  86. package/dist/core/provider-composer.d.ts.map +1 -1
  87. package/dist/core/provider-composer.js +13 -2
  88. package/dist/core/provider-composer.js.map +1 -1
  89. package/dist/core/session-manager.d.ts.map +1 -1
  90. package/dist/core/session-manager.js +28 -4
  91. package/dist/core/session-manager.js.map +1 -1
  92. package/dist/core/settings-manager.d.ts +5 -1
  93. package/dist/core/settings-manager.d.ts.map +1 -1
  94. package/dist/core/settings-manager.js +34 -0
  95. package/dist/core/settings-manager.js.map +1 -1
  96. package/dist/core/skills.d.ts.map +1 -1
  97. package/dist/core/skills.js +19 -2
  98. package/dist/core/skills.js.map +1 -1
  99. package/dist/core/terminal-settings.d.ts +3 -0
  100. package/dist/core/terminal-settings.d.ts.map +1 -1
  101. package/dist/core/terminal-settings.js.map +1 -1
  102. package/dist/core/tools/bash.d.ts.map +1 -1
  103. package/dist/core/tools/bash.js +1 -1
  104. package/dist/core/tools/bash.js.map +1 -1
  105. package/dist/core/tools/edit.d.ts.map +1 -1
  106. package/dist/core/tools/edit.js +2 -2
  107. package/dist/core/tools/edit.js.map +1 -1
  108. package/dist/core/tools/find.d.ts.map +1 -1
  109. package/dist/core/tools/find.js +2 -2
  110. package/dist/core/tools/find.js.map +1 -1
  111. package/dist/core/tools/grep.d.ts.map +1 -1
  112. package/dist/core/tools/grep.js +2 -2
  113. package/dist/core/tools/grep.js.map +1 -1
  114. package/dist/core/tools/ls.d.ts.map +1 -1
  115. package/dist/core/tools/ls.js +2 -2
  116. package/dist/core/tools/ls.js.map +1 -1
  117. package/dist/core/tools/read.d.ts.map +1 -1
  118. package/dist/core/tools/read.js +1 -1
  119. package/dist/core/tools/read.js.map +1 -1
  120. package/dist/core/tools/write.d.ts.map +1 -1
  121. package/dist/core/tools/write.js +3 -3
  122. package/dist/core/tools/write.js.map +1 -1
  123. package/dist/index.d.ts +1 -1
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js.map +1 -1
  126. package/dist/main.d.ts.map +1 -1
  127. package/dist/main.js +2 -0
  128. package/dist/main.js.map +1 -1
  129. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  130. package/dist/modes/interactive/components/scoped-models-selector.js +5 -11
  131. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  132. package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
  133. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  134. package/dist/modes/interactive/components/settings-selector.js +21 -8
  135. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  136. package/dist/modes/interactive/components/thinking-selector.js +2 -2
  137. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  138. package/dist/modes/interactive/components/trust-selector.js +2 -2
  139. package/dist/modes/interactive/components/trust-selector.js.map +1 -1
  140. package/dist/modes/interactive/grok/welcome-card.d.ts.map +1 -1
  141. package/dist/modes/interactive/grok/welcome-card.js +5 -2
  142. package/dist/modes/interactive/grok/welcome-card.js.map +1 -1
  143. package/dist/modes/interactive/interactive-mode.d.ts +3 -0
  144. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  145. package/dist/modes/interactive/interactive-mode.js +74 -14
  146. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  147. package/dist/modes/interactive/version-label.d.ts +7 -0
  148. package/dist/modes/interactive/version-label.d.ts.map +1 -0
  149. package/dist/modes/interactive/version-label.js +9 -0
  150. package/dist/modes/interactive/version-label.js.map +1 -0
  151. package/dist/utils/version-check.d.ts.map +1 -1
  152. package/dist/utils/version-check.js +3 -4
  153. package/dist/utils/version-check.js.map +1 -1
  154. package/docs/compaction.md +2 -0
  155. package/docs/environment-variables.md +5 -0
  156. package/docs/extensions.md +22 -2
  157. package/docs/keybindings.md +1 -1
  158. package/docs/models.md +3 -0
  159. package/docs/quickstart.md +1 -1
  160. package/docs/rpc.md +1 -1
  161. package/docs/settings.md +13 -6
  162. package/docs/terminal-setup.md +27 -0
  163. package/docs/usage.md +5 -3
  164. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +96 -0
  165. package/node_modules/@anthropic-ai/sdk/README.md +1 -1
  166. package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map +1 -1
  167. package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map +1 -1
  168. package/node_modules/@anthropic-ai/sdk/core/credentials.js +5 -7
  169. package/node_modules/@anthropic-ai/sdk/core/credentials.js.map +1 -1
  170. package/node_modules/@anthropic-ai/sdk/core/credentials.mjs +5 -7
  171. package/node_modules/@anthropic-ai/sdk/core/credentials.mjs.map +1 -1
  172. package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map +1 -1
  173. package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map +1 -1
  174. package/node_modules/@anthropic-ai/sdk/core/middleware.js +4 -4
  175. package/node_modules/@anthropic-ai/sdk/core/middleware.js.map +1 -1
  176. package/node_modules/@anthropic-ai/sdk/core/middleware.mjs +4 -4
  177. package/node_modules/@anthropic-ai/sdk/core/middleware.mjs.map +1 -1
  178. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.mts +45 -0
  179. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.mts.map +1 -0
  180. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.ts +45 -0
  181. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.ts.map +1 -0
  182. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.js +58 -0
  183. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.js.map +1 -0
  184. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.mjs +54 -0
  185. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.mjs.map +1 -0
  186. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +1 -1
  187. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +1 -1
  188. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +1 -1
  189. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -1
  190. package/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +1 -1
  191. package/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +1 -1
  192. package/node_modules/@anthropic-ai/sdk/internal/errors.js +3 -1
  193. package/node_modules/@anthropic-ai/sdk/internal/errors.js.map +1 -1
  194. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs +3 -1
  195. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +1 -1
  196. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts.map +1 -1
  197. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts.map +1 -1
  198. package/node_modules/@anthropic-ai/sdk/internal/file-store.js +23 -25
  199. package/node_modules/@anthropic-ai/sdk/internal/file-store.js.map +1 -1
  200. package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +5 -6
  201. package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs.map +1 -1
  202. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.mts +9 -0
  203. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.mts.map +1 -0
  204. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.ts +9 -0
  205. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.ts.map +1 -0
  206. package/node_modules/@anthropic-ai/sdk/internal/node.browser.js +22 -0
  207. package/node_modules/@anthropic-ai/sdk/internal/node.browser.js.map +1 -0
  208. package/node_modules/@anthropic-ai/sdk/internal/node.browser.mjs +19 -0
  209. package/node_modules/@anthropic-ai/sdk/internal/node.browser.mjs.map +1 -0
  210. package/node_modules/@anthropic-ai/sdk/internal/node.d.mts +14 -0
  211. package/node_modules/@anthropic-ai/sdk/internal/node.d.mts.map +1 -0
  212. package/node_modules/@anthropic-ai/sdk/internal/node.d.ts +14 -0
  213. package/node_modules/@anthropic-ai/sdk/internal/node.d.ts.map +1 -0
  214. package/node_modules/@anthropic-ai/sdk/internal/node.js +24 -0
  215. package/node_modules/@anthropic-ai/sdk/internal/node.js.map +1 -0
  216. package/node_modules/@anthropic-ai/sdk/internal/node.mjs +14 -0
  217. package/node_modules/@anthropic-ai/sdk/internal/node.mjs.map +1 -0
  218. package/node_modules/@anthropic-ai/sdk/internal/parse.js +1 -1
  219. package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -1
  220. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +1 -1
  221. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -1
  222. package/node_modules/@anthropic-ai/sdk/internal/uploads.js +10 -6
  223. package/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +1 -1
  224. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +10 -6
  225. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -1
  226. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +6 -0
  227. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +1 -1
  228. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +6 -0
  229. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +1 -1
  230. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js +7 -0
  231. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +1 -1
  232. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +6 -0
  233. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -1
  234. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -1
  235. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -1
  236. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +6 -4
  237. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -1
  238. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +4 -2
  239. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -1
  240. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -1
  241. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -1
  242. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +3 -4
  243. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -1
  244. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +1 -2
  245. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -1
  246. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js +1 -1
  247. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js.map +1 -1
  248. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs +1 -1
  249. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs.map +1 -1
  250. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js +1 -1
  251. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js.map +1 -1
  252. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs +1 -1
  253. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs.map +1 -1
  254. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts.map +1 -1
  255. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts.map +1 -1
  256. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js +2 -3
  257. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js.map +1 -1
  258. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs +2 -3
  259. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs.map +1 -1
  260. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js +1 -1
  261. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js.map +1 -1
  262. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs +1 -1
  263. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs.map +1 -1
  264. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts.map +1 -1
  265. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts.map +1 -1
  266. package/node_modules/@anthropic-ai/sdk/lib/middleware.js +30 -7
  267. package/node_modules/@anthropic-ai/sdk/lib/middleware.js.map +1 -1
  268. package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +30 -7
  269. package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs.map +1 -1
  270. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts +3 -2
  271. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts.map +1 -1
  272. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts +3 -2
  273. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts.map +1 -1
  274. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js +3 -46
  275. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js.map +1 -1
  276. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs +3 -46
  277. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs.map +1 -1
  278. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.mts +131 -0
  279. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.mts.map +1 -0
  280. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.ts +131 -0
  281. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.ts.map +1 -0
  282. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.js +45 -0
  283. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.js.map +1 -0
  284. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.mjs +41 -0
  285. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.mjs.map +1 -0
  286. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -1
  287. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -1
  288. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +35 -6
  289. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -1
  290. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +35 -6
  291. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -1
  292. package/node_modules/@anthropic-ai/sdk/package.json +4 -11
  293. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +1 -1
  294. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts.map +1 -1
  295. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts +1 -1
  296. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts.map +1 -1
  297. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js.map +1 -1
  298. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs.map +1 -1
  299. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +13 -9
  300. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -1
  301. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +13 -9
  302. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -1
  303. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +4 -0
  304. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -1
  305. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +4 -0
  306. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -1
  307. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +6 -6
  308. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts +6 -6
  309. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +3 -2
  310. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts.map +1 -1
  311. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts +3 -2
  312. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts.map +1 -1
  313. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +28 -1
  314. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts.map +1 -1
  315. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts +28 -1
  316. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts.map +1 -1
  317. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +8 -1
  318. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts.map +1 -1
  319. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts +8 -1
  320. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts.map +1 -1
  321. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js.map +1 -1
  322. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs.map +1 -1
  323. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +25 -5
  324. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -1
  325. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +25 -5
  326. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -1
  327. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +6 -6
  328. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -1
  329. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +7 -7
  330. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -1
  331. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +5 -4
  332. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -1
  333. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +5 -4
  334. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -1
  335. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +11 -9
  336. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -1
  337. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +1 -0
  338. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -1
  339. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +12 -9
  340. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts.map +1 -1
  341. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts +12 -9
  342. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts.map +1 -1
  343. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +8 -5
  344. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  345. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts +8 -5
  346. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  347. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +1 -1
  348. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -1
  349. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +1 -1
  350. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -1
  351. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -1
  352. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -1
  353. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +198 -29
  354. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -1
  355. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +198 -29
  356. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -1
  357. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -1
  358. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -1
  359. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.mts +177 -0
  360. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.mts.map +1 -0
  361. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.ts +177 -0
  362. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.ts.map +1 -0
  363. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.js +56 -0
  364. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.js.map +1 -0
  365. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.mjs +52 -0
  366. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.mjs.map +1 -0
  367. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.mts +74 -0
  368. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.mts.map +1 -0
  369. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.ts +74 -0
  370. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.ts.map +1 -0
  371. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.js +52 -0
  372. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.js.map +1 -0
  373. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.mjs +48 -0
  374. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.mjs.map +1 -0
  375. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.mts +272 -0
  376. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.mts.map +1 -0
  377. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.ts +272 -0
  378. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.ts.map +1 -0
  379. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.js +119 -0
  380. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.js.map +1 -0
  381. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.mjs +115 -0
  382. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.mjs.map +1 -0
  383. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.mts +14 -0
  384. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.mts.map +1 -0
  385. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.ts +14 -0
  386. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.ts.map +1 -0
  387. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.js +21 -0
  388. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.js.map +1 -0
  389. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.mjs +16 -0
  390. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.mjs.map +1 -0
  391. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.mts +4 -0
  392. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.mts.map +1 -0
  393. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.ts +4 -0
  394. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.ts.map +1 -0
  395. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.js +11 -0
  396. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.js.map +1 -0
  397. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.mjs +5 -0
  398. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.mjs.map +1 -0
  399. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.mts +353 -0
  400. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.mts.map +1 -0
  401. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.ts +353 -0
  402. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.ts.map +1 -0
  403. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.js +169 -0
  404. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.js.map +1 -0
  405. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.mjs +165 -0
  406. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.mjs.map +1 -0
  407. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.mts +3 -0
  408. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
  409. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.ts +3 -0
  410. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
  411. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.js +9 -0
  412. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.js.map +1 -0
  413. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.mjs +4 -0
  414. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.mjs.map +1 -0
  415. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.mts +468 -0
  416. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
  417. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.ts +468 -0
  418. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
  419. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.js +198 -0
  420. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.js.map +1 -0
  421. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.mjs +193 -0
  422. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
  423. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
  424. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
  425. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
  426. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
  427. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.js +114 -0
  428. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
  429. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
  430. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
  431. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.mts +2 -0
  432. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.mts.map +1 -0
  433. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.ts +2 -0
  434. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.ts.map +1 -0
  435. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.js +6 -0
  436. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.js.map +1 -0
  437. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.mjs +3 -0
  438. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.mjs.map +1 -0
  439. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.mts +2 -0
  440. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.mts.map +1 -0
  441. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.ts +2 -0
  442. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.ts.map +1 -0
  443. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.js +6 -0
  444. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.js.map +1 -0
  445. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.mjs +3 -0
  446. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.mjs.map +1 -0
  447. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.mts +11 -0
  448. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.mts.map +1 -0
  449. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.ts +11 -0
  450. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.ts.map +1 -0
  451. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.js +25 -0
  452. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.js.map +1 -0
  453. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.mjs +12 -0
  454. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.mjs.map +1 -0
  455. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.mts +162 -0
  456. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.mts.map +1 -0
  457. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.ts +162 -0
  458. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.ts.map +1 -0
  459. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.js +76 -0
  460. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.js.map +1 -0
  461. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.mjs +72 -0
  462. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.mjs.map +1 -0
  463. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.mts +73 -0
  464. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.mts.map +1 -0
  465. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.ts +73 -0
  466. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.ts.map +1 -0
  467. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.js +62 -0
  468. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.js.map +1 -0
  469. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.mjs +57 -0
  470. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.mjs.map +1 -0
  471. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.mts +77 -0
  472. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.mts.map +1 -0
  473. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.ts +77 -0
  474. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.ts.map +1 -0
  475. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.js +31 -0
  476. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.js.map +1 -0
  477. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.mjs +27 -0
  478. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.mjs.map +1 -0
  479. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.mts +3 -0
  480. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
  481. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.ts +3 -0
  482. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
  483. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.js +9 -0
  484. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.js.map +1 -0
  485. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.mjs +4 -0
  486. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.mjs.map +1 -0
  487. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
  488. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
  489. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
  490. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
  491. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.js +174 -0
  492. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
  493. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
  494. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
  495. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
  496. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
  497. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
  498. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
  499. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.js +125 -0
  500. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
  501. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
  502. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
  503. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.mts +2 -0
  504. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.mts.map +1 -0
  505. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.ts +2 -0
  506. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.ts.map +1 -0
  507. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.js +6 -0
  508. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.js.map +1 -0
  509. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.mjs +3 -0
  510. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.mjs.map +1 -0
  511. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.mts +124 -0
  512. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.mts.map +1 -0
  513. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.ts +124 -0
  514. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.ts.map +1 -0
  515. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.js +67 -0
  516. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.js.map +1 -0
  517. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.mjs +63 -0
  518. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.mjs.map +1 -0
  519. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.mts +5 -0
  520. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.mts.map +1 -0
  521. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.ts +5 -0
  522. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.ts.map +1 -0
  523. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.js +13 -0
  524. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.js.map +1 -0
  525. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.mjs +6 -0
  526. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.mjs.map +1 -0
  527. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.mts +135 -0
  528. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.mts.map +1 -0
  529. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.ts +135 -0
  530. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.ts.map +1 -0
  531. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.js +102 -0
  532. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.js.map +1 -0
  533. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.mjs +98 -0
  534. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.mjs.map +1 -0
  535. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.mts +83 -0
  536. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
  537. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.ts +83 -0
  538. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
  539. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.js +34 -0
  540. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
  541. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.mjs +30 -0
  542. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
  543. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
  544. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
  545. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
  546. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
  547. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.js +189 -0
  548. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
  549. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
  550. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
  551. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.mts +303 -0
  552. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
  553. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.ts +303 -0
  554. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
  555. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.js +112 -0
  556. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.js.map +1 -0
  557. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.mjs +107 -0
  558. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
  559. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.mts +2 -0
  560. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.mts.map +1 -0
  561. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.ts +2 -0
  562. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.ts.map +1 -0
  563. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.js +6 -0
  564. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.js.map +1 -0
  565. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.mjs +3 -0
  566. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.mjs.map +1 -0
  567. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.mts +2 -0
  568. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.mts.map +1 -0
  569. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.ts +2 -0
  570. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.ts.map +1 -0
  571. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.js +6 -0
  572. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.js.map +1 -0
  573. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.mjs +3 -0
  574. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.mjs.map +1 -0
  575. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +1 -1
  576. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts +1 -1
  577. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +10 -10
  578. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts +10 -10
  579. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +2 -1
  580. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts.map +1 -1
  581. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts +2 -1
  582. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts.map +1 -1
  583. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js.map +1 -1
  584. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs.map +1 -1
  585. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +2 -2
  586. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -1
  587. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +2 -2
  588. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -1
  589. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -1
  590. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -1
  591. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +48 -120
  592. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -1
  593. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +48 -120
  594. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -1
  595. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +12 -8
  596. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -1
  597. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +12 -8
  598. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -1
  599. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +35 -138
  600. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -1
  601. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +35 -138
  602. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -1
  603. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +18 -18
  604. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -1
  605. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +18 -18
  606. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -1
  607. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +21 -25
  608. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts.map +1 -1
  609. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts +21 -25
  610. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts.map +1 -1
  611. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +16 -17
  612. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts.map +1 -1
  613. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts +16 -17
  614. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts.map +1 -1
  615. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +21 -8
  616. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js.map +1 -1
  617. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +21 -8
  618. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs.map +1 -1
  619. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1 -3
  620. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -1
  621. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1 -3
  622. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -1
  623. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -1
  624. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -1
  625. package/node_modules/@anthropic-ai/sdk/src/core/credentials.ts +5 -7
  626. package/node_modules/@anthropic-ai/sdk/src/core/middleware.ts +4 -3
  627. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/standard-schema.ts +99 -0
  628. package/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +1 -1
  629. package/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +3 -1
  630. package/node_modules/@anthropic-ai/sdk/src/internal/file-store.ts +11 -10
  631. package/node_modules/@anthropic-ai/sdk/src/internal/node.browser.ts +22 -0
  632. package/node_modules/@anthropic-ai/sdk/src/internal/node.ts +14 -0
  633. package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +1 -1
  634. package/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +10 -7
  635. package/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +7 -0
  636. package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +5 -3
  637. package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +1 -3
  638. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/credential-chain.ts +1 -1
  639. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/identity-token.ts +1 -1
  640. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/types.ts +2 -3
  641. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/user-oauth.ts +1 -1
  642. package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +33 -9
  643. package/node_modules/@anthropic-ai/sdk/src/lib/sessions/accumulate.ts +7 -49
  644. package/node_modules/@anthropic-ai/sdk/src/lib/standard-schema.ts +209 -0
  645. package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +38 -6
  646. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +1 -0
  647. package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +45 -15
  648. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +6 -6
  649. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +3 -2
  650. package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +42 -0
  651. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +8 -1
  652. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +34 -11
  653. package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +13 -7
  654. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +12 -9
  655. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +8 -5
  656. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +5 -1
  657. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +221 -38
  658. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/api-keys.ts +231 -0
  659. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +96 -0
  660. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/external-keys.ts +365 -0
  661. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/federation.ts +71 -0
  662. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/index.ts +31 -0
  663. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/issuers.ts +486 -0
  664. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/index.ts +23 -0
  665. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/rules.ts +624 -0
  666. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
  667. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules.ts +3 -0
  668. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation.ts +3 -0
  669. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +92 -0
  670. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/invites.ts +207 -0
  671. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +269 -0
  672. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/rate-limits.ts +104 -0
  673. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/index.ts +21 -0
  674. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
  675. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
  676. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts.ts +3 -0
  677. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/users.ts +163 -0
  678. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/index.ts +43 -0
  679. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/members.ts +209 -0
  680. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/rate-limits.ts +113 -0
  681. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
  682. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/workspaces.ts +450 -0
  683. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces.ts +3 -0
  684. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization.ts +3 -0
  685. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +1 -1
  686. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +10 -10
  687. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +2 -1
  688. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +7 -10
  689. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +60 -150
  690. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +43 -166
  691. package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +24 -27
  692. package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +25 -29
  693. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +2 -8
  694. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +6 -5
  695. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/memories.ts +5 -3
  696. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.browser.ts +1 -5
  697. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +122 -17
  698. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/skills.ts +10 -43
  699. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
  700. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts.map +1 -1
  701. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts.map +1 -1
  702. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +13 -15
  703. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js.map +1 -1
  704. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +3 -4
  705. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs.map +1 -1
  706. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts.map +1 -1
  707. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts.map +1 -1
  708. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +6 -4
  709. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js.map +1 -1
  710. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +5 -3
  711. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs.map +1 -1
  712. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts +1 -2
  713. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts.map +1 -1
  714. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts +1 -2
  715. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts.map +1 -1
  716. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +0 -4
  717. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js.map +1 -1
  718. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs +0 -3
  719. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs.map +1 -1
  720. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +11 -9
  721. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts.map +1 -1
  722. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts +11 -9
  723. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts.map +1 -1
  724. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +96 -8
  725. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js.map +1 -1
  726. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +96 -7
  727. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs.map +1 -1
  728. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +0 -8
  729. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts.map +1 -1
  730. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts +0 -8
  731. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts.map +1 -1
  732. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +20 -46
  733. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js.map +1 -1
  734. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs +9 -33
  735. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs.map +1 -1
  736. package/node_modules/@anthropic-ai/sdk/version.d.mts +1 -1
  737. package/node_modules/@anthropic-ai/sdk/version.d.ts +1 -1
  738. package/node_modules/@anthropic-ai/sdk/version.js +1 -1
  739. package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
  740. package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +31 -0
  741. package/node_modules/@code-yeongyu/senpi-codemode/README.md +2 -0
  742. package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
  743. package/node_modules/@code-yeongyu/senpi-codemode/src/config/settings.ts +29 -0
  744. package/node_modules/@code-yeongyu/senpi-codemode/src/index.ts +3 -1
  745. package/node_modules/@code-yeongyu/senpi-codemode/src/prompt/eval-prompt.ts +24 -90
  746. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/cell-execution.ts +7 -0
  747. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool-options.ts +6 -0
  748. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool.ts +14 -2
  749. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/types.ts +10 -5
  750. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
  751. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +58 -64
  752. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
  753. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
  754. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +16 -6
  755. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
  756. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +1 -1
  757. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -1
  758. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +6 -1
  759. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -1
  760. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +1 -1
  761. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +1 -1
  762. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +2 -0
  763. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +1 -1
  764. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +40 -10
  765. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +1 -1
  766. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +6 -2
  767. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
  768. package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
  769. package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  770. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +1 -1
  771. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +1 -1
  772. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +130 -15
  773. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +1 -1
  774. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.d.ts +20 -0
  775. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.d.ts.map +1 -0
  776. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.js +40 -0
  777. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.js.map +1 -0
  778. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +1 -1
  779. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +1 -1
  780. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +1 -1
  781. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +16 -1
  782. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +1 -1
  783. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +1 -1
  784. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +2 -1
  785. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +1 -1
  786. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +2 -0
  787. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts.map +1 -1
  788. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +6 -0
  789. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js.map +1 -1
  790. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts +1 -3
  791. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts.map +1 -1
  792. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +2 -16
  793. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js.map +1 -1
  794. package/node_modules/@earendil-works/pi-ai/dist/api/warm-prompt-cache.js +1 -1
  795. package/node_modules/@earendil-works/pi-ai/dist/api/warm-prompt-cache.js.map +1 -1
  796. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +1 -0
  797. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
  798. package/node_modules/@earendil-works/pi-ai/dist/index.js +1 -0
  799. package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -1
  800. package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
  801. package/node_modules/@earendil-works/pi-ai/dist/models.js +3 -2
  802. package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
  803. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.d.ts +2 -0
  804. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.d.ts.map +1 -1
  805. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.js.map +1 -1
  806. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  807. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  808. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  809. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  810. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  811. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  812. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  813. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  814. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  815. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  816. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  817. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  818. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts +1 -1
  819. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts.map +1 -1
  820. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +8 -1
  821. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js.map +1 -1
  822. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +14 -1
  823. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
  824. package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
  825. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.d.ts +23 -0
  826. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.d.ts.map +1 -0
  827. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.js +58 -0
  828. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.js.map +1 -0
  829. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +1 -1
  830. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +53 -12
  831. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +1 -1
  832. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
  833. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +2 -0
  834. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
  835. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.d.ts +4 -2
  836. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.d.ts.map +1 -1
  837. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.js +3 -0
  838. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.js.map +1 -1
  839. package/node_modules/@earendil-works/pi-ai/package.json +3 -3
  840. package/node_modules/@earendil-works/pi-pty/package.json +1 -1
  841. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  842. package/node_modules/@earendil-works/pi-tui/README.md +1 -1
  843. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +1 -0
  844. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -1
  845. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
  846. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -1
  847. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +1 -1
  848. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
  849. package/node_modules/@earendil-works/pi-tui/dist/index.js +1 -1
  850. package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
  851. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +2 -0
  852. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -1
  853. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +106 -6
  854. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -1
  855. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +6 -0
  856. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
  857. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +17 -4
  858. package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
  859. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +11 -0
  860. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +1 -1
  861. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +57 -15
  862. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +1 -1
  863. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
  864. package/node_modules/@earendil-works/pi-tui/dist/tui.js +22 -7
  865. package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
  866. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  867. package/package.json +8 -8
@@ -65,8 +65,7 @@ export const loadConfigWithSource = async (profile) => {
65
65
  return null;
66
66
  }
67
67
  validateProfileName(profileName);
68
- const fs = await import('node:fs');
69
- const path = await import('node:path');
68
+ const { fs, path } = await import("../internal/node.mjs");
70
69
  const configPath = path.join(rootConfigPath, 'configs', `${profileName}.json`);
71
70
  let configRaw;
72
71
  try {
@@ -166,7 +165,7 @@ export const loadCredentials = async () => {
166
165
  if (!credentialsPath) {
167
166
  return null;
168
167
  }
169
- const fs = await import('node:fs');
168
+ const { fs } = await import("../internal/node.mjs");
170
169
  let raw;
171
170
  try {
172
171
  raw = await fs.promises.readFile(credentialsPath, 'utf-8');
@@ -210,14 +209,14 @@ export const getCredentialsPath = async (config, profile) => {
210
209
  return null;
211
210
  }
212
211
  validateProfileName(profileName);
213
- const path = await import('node:path');
212
+ const { path } = await import("../internal/node.mjs");
214
213
  return path.join(rootConfigPath, 'credentials', `${profileName}.json`);
215
214
  };
216
215
  const getRootConfigPath = async () => {
217
216
  if (!supportsLocalConfigFiles()) {
218
217
  return null;
219
218
  }
220
- const path = await import('node:path');
219
+ const { path } = await import("../internal/node.mjs");
221
220
  // ANTHROPIC_CONFIG_DIR is treated as a trusted path: it is set by the
222
221
  // process operator, not by remote input, so it is not validated.
223
222
  const configDir = readEnv('ANTHROPIC_CONFIG_DIR');
@@ -261,8 +260,7 @@ const getActiveProfileName = async () => {
261
260
  if (profileName) {
262
261
  return profileName;
263
262
  }
264
- const fs = await import('node:fs');
265
- const path = await import('node:path');
263
+ const { fs, path } = await import("../internal/node.mjs");
266
264
  const filePath = path.join(rootConfigPath, 'active_config');
267
265
  try {
268
266
  return (await fs.promises.readFile(filePath, 'utf-8')).trim() || 'default';
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.mjs","sourceRoot":"","sources":["../src/core/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wCAAoC;AACjE,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAE5C,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AACzC,8FAA8F;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAgE9C,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEjD,SAAS,mBAAmB,CAAC,IAAY;IACvC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAA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AQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAEnD;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACpD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,MAAM,UAAU,GAAG,CACvB,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,cAAc,EACpB,GAAG,EAAE,iBAAiB,KACnB,OAAO,CAAC,QAAQ,CAAC,CAAC;AAWvB,sFAAsF;AACtF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAetD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,SAAS,UAAU,EAAE,EACjC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,EACzC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,GACjC,KAAK,CA8BP;AAmFD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,SAAS,UAAU,EAAE,EACjC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,EACzC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,GACjC,cAAc,CAuBhB"}
@@ -97,11 +97,11 @@ function createMiddlewareContext(options, client) {
97
97
  // Streams are single-consumer, so caching one would hand later callers
98
98
  // an already-consumed stream; every call gets a fresh clone-backed one.
99
99
  if (options?.stream && response.ok) {
100
- return parseMiddlewareResponse(response, options);
100
+ return parseMiddlewareResponse(response, options, client);
101
101
  }
102
102
  let parsed = cache.get(response);
103
103
  if (!parsed) {
104
- parsed = parseMiddlewareResponse(response, options);
104
+ parsed = parseMiddlewareResponse(response, options, client);
105
105
  cache.set(response, parsed);
106
106
  }
107
107
  return parsed;
@@ -113,7 +113,7 @@ function createMiddlewareContext(options, client) {
113
113
  * `internal/parse.ts`), reading through a clone so the body stays available
114
114
  * to the rest of the chain and the client itself.
115
115
  */
116
- async function parseMiddlewareResponse(response, options) {
116
+ async function parseMiddlewareResponse(response, options, client) {
117
117
  if (response.bodyUsed || response.body?.locked) {
118
118
  throw new error_1.AnthropicError('cannot ctx.parse() a response whose body was already consumed; ' +
119
119
  'call ctx.parse() instead of reading the body, or read via response.clone()');
@@ -124,7 +124,7 @@ async function parseMiddlewareResponse(response, options) {
124
124
  // A fresh controller rather than the request's own: aborting (or
125
125
  // `break`ing out of) the middleware's stream must not cancel the
126
126
  // in-flight request the client is still reading.
127
- return streaming_1.Stream.fromSSEResponse(response.clone(), new AbortController());
127
+ return streaming_1.Stream.fromSSEResponse(response.clone(), new AbortController(), client);
128
128
  }
129
129
  // fetch refuses to read the body when the status code is 204.
130
130
  if (response.status === 204) {
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/core/middleware.ts"],"names":[],"mappings":";;AAmJA,gDAEC;AAOD,4CAeC;AAmBD,0DAmCC;AAqFD,0CA4BC;AAhVD,kDAA+D;AAC/D,gDAAmD;AAEnD,kDAA8E;AAE9E,sCAA6E;AAC7E,8CAAqC;AAiIrC;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAAU,CAAC;AAEhD,sFAAsF;AACtF,SAAgB,kBAAkB,CAAC,GAAY;IAC7C,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAI,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC/E,CAAC;AAED;;;;GAIG;AACH,SA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ACd,CAAC"}
@@ -91,11 +91,11 @@ function createMiddlewareContext(options, client) {
91
91
  // Streams are single-consumer, so caching one would hand later callers
92
92
  // an already-consumed stream; every call gets a fresh clone-backed one.
93
93
  if (options?.stream && response.ok) {
94
- return parseMiddlewareResponse(response, options);
94
+ return parseMiddlewareResponse(response, options, client);
95
95
  }
96
96
  let parsed = cache.get(response);
97
97
  if (!parsed) {
98
- parsed = parseMiddlewareResponse(response, options);
98
+ parsed = parseMiddlewareResponse(response, options, client);
99
99
  cache.set(response, parsed);
100
100
  }
101
101
  return parsed;
@@ -107,7 +107,7 @@ function createMiddlewareContext(options, client) {
107
107
  * `internal/parse.ts`), reading through a clone so the body stays available
108
108
  * to the rest of the chain and the client itself.
109
109
  */
110
- async function parseMiddlewareResponse(response, options) {
110
+ async function parseMiddlewareResponse(response, options, client) {
111
111
  if (response.bodyUsed || response.body?.locked) {
112
112
  throw new AnthropicError('cannot ctx.parse() a response whose body was already consumed; ' +
113
113
  'call ctx.parse() instead of reading the body, or read via response.clone()');
@@ -118,7 +118,7 @@ async function parseMiddlewareResponse(response, options) {
118
118
  // A fresh controller rather than the request's own: aborting (or
119
119
  // `break`ing out of) the middleware's stream must not cancel the
120
120
  // in-flight request the client is still reading.
121
- return Stream.fromSSEResponse(response.clone(), new AbortController());
121
+ return Stream.fromSSEResponse(response.clone(), new AbortController(), client);
122
122
  }
123
123
  // fetch refuses to read the body when the status code is 204.
124
124
  if (response.status === 204) {
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.mjs","sourceRoot":"","sources":["../src/core/middleware.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,+BAA2B;AAC/D,OAAO,EAAE,cAAc,EAAE,8BAA0B;AAEnD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAe,kCAA8B;AAE9E,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,oBAAgB;AAC7E,OAAO,EAAE,MAAM,EAAE,wBAAo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K,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAChD,MAAM,EAAE,GAAG,UAAU,CAAC,CAAC,CAAE,CAAC;QAC1B,MAAM,SAAS,GAAG,IAAI,CAAC;QACvB,IAAI,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { AutoParseableBetaOutputFormat } from "../../lib/beta-parser.mjs";
2
+ import { BetaRunnableTool, BetaToolRunContext, Promisable } from "../../lib/tools/BetaRunnableTool.mjs";
3
+ import { BetaToolResultContentBlockParam } from "../../resources/beta.mjs";
4
+ import { StandardSchemaV1 } from "../../lib/standard-schema.mjs";
5
+ /**
6
+ * Creates a JSON schema output format object from the given
7
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
8
+ *
9
+ * If this is passed to the `.parse()` method then the response message will contain a
10
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
11
+ *
12
+ * This can be passed directly to the `.create()` method but will not
13
+ * result in any automatic parsing, you'll have to parse the response yourself.
14
+ */
15
+ export declare function betaStandardSchemaOutputFormat<Schema extends StandardSchemaV1>(schema: Schema, options?: {
16
+ /**
17
+ * The JSON schema to send to the API. Derived from the schema's
18
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
19
+ */
20
+ jsonSchema?: Record<string, unknown> | undefined;
21
+ }): AutoParseableBetaOutputFormat<StandardSchemaV1.InferOutput<Schema>>;
22
+ /**
23
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
24
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
25
+ * The schema's JSON Schema representation is sent to the API and the provided
26
+ * function's input arguments will be validated against the schema.
27
+ */
28
+ export declare function betaStandardSchemaTool<InputSchema extends StandardSchemaV1>(options: {
29
+ name: string;
30
+ inputSchema: InputSchema;
31
+ description: string;
32
+ run: (args: StandardSchemaV1.InferOutput<InputSchema>, context?: BetaToolRunContext) => Promisable<string | Array<BetaToolResultContentBlockParam>>;
33
+ /**
34
+ * The JSON schema to send as the tool's `input_schema`. Derived from the schema's
35
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
36
+ */
37
+ jsonSchema?: Record<string, unknown> | undefined;
38
+ /**
39
+ * Optional cleanup hook for tools that hold process-level resources (e.g. a
40
+ * persistent shell). `client.beta.sessions.events.toolRunner` calls it once
41
+ * when iteration ends.
42
+ */
43
+ close?: () => void | Promise<void>;
44
+ }): BetaRunnableTool<StandardSchemaV1.InferOutput<InputSchema>>;
45
+ //# sourceMappingURL=standard-schema.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.d.mts","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,kCAA8B;AACtE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,6CAAyC;AACpG,OAAO,EAAE,+BAA+B,EAAE,iCAA6B;AACvE,OAAO,EAGL,gBAAgB,EACjB,sCAAkC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,SAAS,gBAAgB,EAC5E,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAClD,GACA,6BAA6B,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAuBrE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,SAAS,gBAAgB,EAAE,OAAO,EAAE;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,CACH,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,EAC/C,OAAO,CAAC,EAAE,kBAAkB,KACzB,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACjE;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAkB9D"}
@@ -0,0 +1,45 @@
1
+ import { AutoParseableBetaOutputFormat } from "../../lib/beta-parser.js";
2
+ import { BetaRunnableTool, BetaToolRunContext, Promisable } from "../../lib/tools/BetaRunnableTool.js";
3
+ import { BetaToolResultContentBlockParam } from "../../resources/beta.js";
4
+ import { StandardSchemaV1 } from "../../lib/standard-schema.js";
5
+ /**
6
+ * Creates a JSON schema output format object from the given
7
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
8
+ *
9
+ * If this is passed to the `.parse()` method then the response message will contain a
10
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
11
+ *
12
+ * This can be passed directly to the `.create()` method but will not
13
+ * result in any automatic parsing, you'll have to parse the response yourself.
14
+ */
15
+ export declare function betaStandardSchemaOutputFormat<Schema extends StandardSchemaV1>(schema: Schema, options?: {
16
+ /**
17
+ * The JSON schema to send to the API. Derived from the schema's
18
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
19
+ */
20
+ jsonSchema?: Record<string, unknown> | undefined;
21
+ }): AutoParseableBetaOutputFormat<StandardSchemaV1.InferOutput<Schema>>;
22
+ /**
23
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
24
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
25
+ * The schema's JSON Schema representation is sent to the API and the provided
26
+ * function's input arguments will be validated against the schema.
27
+ */
28
+ export declare function betaStandardSchemaTool<InputSchema extends StandardSchemaV1>(options: {
29
+ name: string;
30
+ inputSchema: InputSchema;
31
+ description: string;
32
+ run: (args: StandardSchemaV1.InferOutput<InputSchema>, context?: BetaToolRunContext) => Promisable<string | Array<BetaToolResultContentBlockParam>>;
33
+ /**
34
+ * The JSON schema to send as the tool's `input_schema`. Derived from the schema's
35
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
36
+ */
37
+ jsonSchema?: Record<string, unknown> | undefined;
38
+ /**
39
+ * Optional cleanup hook for tools that hold process-level resources (e.g. a
40
+ * persistent shell). `client.beta.sessions.events.toolRunner` calls it once
41
+ * when iteration ends.
42
+ */
43
+ close?: () => void | Promise<void>;
44
+ }): BetaRunnableTool<StandardSchemaV1.InferOutput<InputSchema>>;
45
+ //# sourceMappingURL=standard-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,iCAA8B;AACtE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,4CAAyC;AACpG,OAAO,EAAE,+BAA+B,EAAE,gCAA6B;AACvE,OAAO,EAGL,gBAAgB,EACjB,qCAAkC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,SAAS,gBAAgB,EAC5E,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAClD,GACA,6BAA6B,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAuBrE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,SAAS,gBAAgB,EAAE,OAAO,EAAE;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,CACH,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,EAC/C,OAAO,CAAC,EAAE,kBAAkB,KACzB,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACjE;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAkB9D"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.betaStandardSchemaOutputFormat = betaStandardSchemaOutputFormat;
4
+ exports.betaStandardSchemaTool = betaStandardSchemaTool;
5
+ const transform_json_schema_1 = require("../../lib/transform-json-schema.js");
6
+ const error_1 = require("../../core/error.js");
7
+ const standard_schema_1 = require("../../lib/standard-schema.js");
8
+ /**
9
+ * Creates a JSON schema output format object from the given
10
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
11
+ *
12
+ * If this is passed to the `.parse()` method then the response message will contain a
13
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
14
+ *
15
+ * This can be passed directly to the `.create()` method but will not
16
+ * result in any automatic parsing, you'll have to parse the response yourself.
17
+ */
18
+ function betaStandardSchemaOutputFormat(schema, options) {
19
+ const jsonSchema = (0, transform_json_schema_1.transformJSONSchema)((0, standard_schema_1.standardSchemaToJSONSchema)(schema, options?.jsonSchema));
20
+ return {
21
+ type: 'json_schema',
22
+ schema: {
23
+ ...jsonSchema,
24
+ },
25
+ parse: (content) => {
26
+ let parsed;
27
+ try {
28
+ parsed = JSON.parse(content);
29
+ }
30
+ catch (error) {
31
+ throw new error_1.AnthropicError(`Failed to parse structured output as JSON: ${error instanceof Error ? error.message : String(error)}`);
32
+ }
33
+ return (0, standard_schema_1.parseWithStandardSchema)(schema, parsed);
34
+ },
35
+ };
36
+ }
37
+ /**
38
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
39
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
40
+ * The schema's JSON Schema representation is sent to the API and the provided
41
+ * function's input arguments will be validated against the schema.
42
+ */
43
+ function betaStandardSchemaTool(options) {
44
+ const jsonSchema = (0, standard_schema_1.standardSchemaToJSONSchema)(options.inputSchema, options.jsonSchema);
45
+ if (jsonSchema['type'] !== 'object') {
46
+ throw new Error(`Schema for tool "${options.name}" must be an object, but got ${String(jsonSchema['type'])}`);
47
+ }
48
+ return {
49
+ type: 'custom',
50
+ name: options.name,
51
+ input_schema: jsonSchema,
52
+ description: options.description,
53
+ run: options.run,
54
+ parse: (args) => (0, standard_schema_1.parseWithStandardSchema)(options.inputSchema, args),
55
+ ...(options.close ? { close: options.close } : {}),
56
+ };
57
+ }
58
+ //# sourceMappingURL=standard-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.js","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":";;AAqBA,wEAgCC;AAQD,wDAqCC;AAlGD,8EAAsE;AACtE,+CAAkD;AAIlD,kEAImC;AAEnC;;;;;;;;;GASG;AACH,SAAgB,8BAA8B,CAC5C,MAAc,EACd,OAMC;IAED,MAAM,UAAU,GAAG,IAAA,2CAAmB,EAAC,IAAA,4CAA0B,EAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAEhG,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN,GAAG,UAAU;SACd;QACD,K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
1
+ import { transformJSONSchema } from "../../lib/transform-json-schema.mjs";
2
+ import { AnthropicError } from "../../core/error.mjs";
3
+ import { parseWithStandardSchema, standardSchemaToJSONSchema, } from "../../lib/standard-schema.mjs";
4
+ /**
5
+ * Creates a JSON schema output format object from the given
6
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
7
+ *
8
+ * If this is passed to the `.parse()` method then the response message will contain a
9
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
10
+ *
11
+ * This can be passed directly to the `.create()` method but will not
12
+ * result in any automatic parsing, you'll have to parse the response yourself.
13
+ */
14
+ export function betaStandardSchemaOutputFormat(schema, options) {
15
+ const jsonSchema = transformJSONSchema(standardSchemaToJSONSchema(schema, options?.jsonSchema));
16
+ return {
17
+ type: 'json_schema',
18
+ schema: {
19
+ ...jsonSchema,
20
+ },
21
+ parse: (content) => {
22
+ let parsed;
23
+ try {
24
+ parsed = JSON.parse(content);
25
+ }
26
+ catch (error) {
27
+ throw new AnthropicError(`Failed to parse structured output as JSON: ${error instanceof Error ? error.message : String(error)}`);
28
+ }
29
+ return parseWithStandardSchema(schema, parsed);
30
+ },
31
+ };
32
+ }
33
+ /**
34
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
35
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
36
+ * The schema's JSON Schema representation is sent to the API and the provided
37
+ * function's input arguments will be validated against the schema.
38
+ */
39
+ export function betaStandardSchemaTool(options) {
40
+ const jsonSchema = standardSchemaToJSONSchema(options.inputSchema, options.jsonSchema);
41
+ if (jsonSchema['type'] !== 'object') {
42
+ throw new Error(`Schema for tool "${options.name}" must be an object, but got ${String(jsonSchema['type'])}`);
43
+ }
44
+ return {
45
+ type: 'custom',
46
+ name: options.name,
47
+ input_schema: jsonSchema,
48
+ description: options.description,
49
+ run: options.run,
50
+ parse: (args) => parseWithStandardSchema(options.inputSchema, args),
51
+ ...(options.close ? { close: options.close } : {}),
52
+ };
53
+ }
54
+ //# sourceMappingURL=standard-schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.mjs","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4CAAwC;AACtE,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAIlD,OAAO,EACL,uBAAuB,EACvB,0BAA0B,GAE3B,sCAAkC;AAEnC;;;;;;;;;GASG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAc,EACd,OAMC;IAED,MAAM,UAAU,GAAG,mBAAmB,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAEhG,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN,GAAG,UAAU;SACd;QACD,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;YACjB,IAAI,MAAe,CAAC;YACpB,IAAI,CAAC;gBACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC/B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,cAAc,CACtB,8CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;YACJ,CAAC;YAED,OAAO,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjD,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAuC,OAmB5E;IACC,MAAM,UAAU,GAAG,0BAA0B,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvF,IAAI,UAAU,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CACb,oBAAoB,OAAO,CAAC,IAAI,gCAAgC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,YAAY,EAAE,UAAoD;QAClE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,KAAK,EAAE,CAAC,IAAa,EAAE,EAAE,CAAC,uBAAuB,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC;QAC5E,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACnD,CAAC;AACJ,CAAC"}
@@ -47,7 +47,7 @@ const getPlatformProperties = () => {
47
47
  'X-Stainless-OS': 'Unknown',
48
48
  'X-Stainless-Arch': `other:${EdgeRuntime}`,
49
49
  'X-Stainless-Runtime': 'edge',
50
- 'X-Stainless-Runtime-Version': globalThis.process.version,
50
+ 'X-Stainless-Runtime-Version': globalThis.process?.version ?? 'unknown',
51
51
  };
52
52
  }
53
53
  // Check if Node.js
@@ -1 +1 @@
1
- {"version":3,"file":"detect-platform.js","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAAqC;AAE9B,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO;IACL,aAAa;IACb,OAAO,MAAM,KAAK,WAAW;QAC7B,aAAa;QACb,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW;QACtC,aAAa;QACb,OAAO,SAAS,KAAK,WAAW,CACjC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,kBAAkB,sBAS7B;AAIF;;GAEG;AACH,SAAS,mBAAmB;IAC1B,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;QACtD,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-OS': 'Unknown',
44
44
  'X-Stainless-Arch': `other:${EdgeRuntime}`,
45
45
  'X-Stainless-Runtime': 'edge',
46
- 'X-Stainless-Runtime-Version': globalThis.process.version,
46
+ 'X-Stainless-Runtime-Version': globalThis.process?.version ?? 'unknown',
47
47
  };
48
48
  }
49
49
  // Check if Node.js
@@ -1 +1 @@
1
- {"version":3,"file":"detect-platform.mjs","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAE,uBAAmB;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO;IACL,aAAa;IACb,OAAO,MAAM,KAAK,WAAW;QAC7B,aAAa;QACb,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW;QACtC,aAAa;QACb,OAAO,SAAS,KAAK,WAAW,CACjC,CAAC;AACJ,CAAC,CAAC;AAIF;;GAEG;AACH,SAAS,mBAAmB;IAC1B,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,WAAW,KAAK,WAAW,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IACE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAC5B,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAE,UAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACrF,KAAK,kBAAkB,EACxB,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAwBD,MAAM,qBAAqB,GAAG,GAAuB,EAAE;IACrD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,IAAI,gBAAgB,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO;YACL,kBAAkB,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C3C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,IAAI,QAAQ,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAC1C,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAC3C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IACzC,IAAI,QAAQ;QAAE,OAAO,SAAS,QAAQ,EAAE,CAAC;IACzC,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,IAAI,gBAAoC,CAAC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO,CAAC,gBAAgB,KAAhB,gBAAgB,GAAK,qBAAqB,EAAE,EAAC,CAAC;AACxD,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAmBtC,CAAC"}
1
+ {"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAqBtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAmBtC,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAqBtC,CAAC"}
@@ -16,7 +16,9 @@ const castToError = (err) => {
16
16
  return err;
17
17
  if (typeof err === 'object' && err !== null) {
18
18
  try {
19
- if (Object.prototype.toString.call(err) === '[object Error]') {
19
+ const tag = Object.prototype.toString.call(err);
20
+ // cross-realm errors (e.g. undici's abort `DOMException` under jest) fail `instanceof Error`
21
+ if (tag === '[object Error]' || tag === '[object DOMException]') {
20
22
  // @ts-ignore - not all envs have native support for cause yet
21
23
  const error = new Error(err.message, err.cause ? { cause: err.cause } : {});
22
24
  if (err.stack)
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASC;AATD,SAAgB,YAAY,CAAC,GAAY;IACvC,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB,GAAG,KAAK,IAAI;QACZ,uCAAuC;QACvC,CAAC,CAAC,MAAM,IAAI,GAAG,IAAK,GAAW,CAAC,IAAI,KAAK,YAAY,CAAC;YACpD,aAAa;YACb,CAAC,SAAS,IAAI,GAAG,IAAI,MAAM,CAAE,GAAW,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAChG,CAAC;AACJ,CAAC;AAEM,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAS,EAAE;IAC7C,IAAI,GAAG,YAAY,KAAK;QAAE,OAAO,GAAG,CAAC;IACrC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC;YACH,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,gBAAgB,EAAE,CAAC;gBAC7D,8DAA8D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9 @@ export const castToError = (err) => {
12
12
  return err;
13
13
  if (typeof err === 'object' && err !== null) {
14
14
  try {
15
- if (Object.prototype.toString.call(err) === '[object Error]') {
15
+ const tag = Object.prototype.toString.call(err);
16
+ // cross-realm errors (e.g. undici's abort `DOMException` under jest) fail `instanceof Error`
17
+ if (tag === '[object Error]' || tag === '[object DOMException]') {
16
18
  // @ts-ignore - not all envs have native support for cause yet
17
19
  const error = new Error(err.message, err.cause ? { cause: err.cause } : {});
18
20
  if (err.stack)
@@ -1 +1 @@
1
- {"version":3,"file":"errors.mjs","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,UAAU,YAAY,CAAC,GAAY;IACvC,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB,GAAG,KAAK,IAAI;QACZ,uCAAuC;QACvC,CAAC,CAAC,MAAM,IAAI,GAAG,IAAK,GAAW,CAAC,IAAI,KAAK,YAAY,CAAC;YACpD,aAAa;YACb,CAAC,SAAS,IAAI,GAAG,IAAI,MAAM,CAAE,GAAW,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAChG,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAS,EAAE;IAC7C,IAAI,GAAG,YAAY,KAAK;QAAE,OAAO,GAAG,CAAC;IACrC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC;YACH,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,gBAAgB,EAAE,CAAC;gBAC7D,8DAA8D;gBAC9D,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAA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