agor-live 0.21.2 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/dist/cli/commands/branch/env/restart.js +1 -1
  2. package/dist/cli/commands/branch/env/start.js +1 -1
  3. package/dist/cli/commands/branch/env/stop.js +1 -1
  4. package/dist/core/api/index.cjs +5 -1
  5. package/dist/core/api/index.d.ts +6 -1
  6. package/dist/core/api/index.d.ts.map +1 -1
  7. package/dist/core/api/index.js +5 -1
  8. package/dist/core/claude/index.cjs +162 -14
  9. package/dist/core/claude/index.js +166 -18
  10. package/dist/core/client/index.cjs +43 -3
  11. package/dist/core/client/index.js +37 -3
  12. package/dist/core/config/browser.cjs +2 -2
  13. package/dist/core/config/browser.js +2 -2
  14. package/dist/core/config/config-manager.d.ts.map +1 -1
  15. package/dist/core/config/constants.d.ts +1 -1
  16. package/dist/core/config/index.cjs +174 -20
  17. package/dist/core/config/index.js +178 -24
  18. package/dist/core/config/types.d.ts +8 -0
  19. package/dist/core/config/types.d.ts.map +1 -1
  20. package/dist/core/db/index.cjs +495 -86
  21. package/dist/core/db/index.js +482 -75
  22. package/dist/core/db/repositories/artifacts.d.ts.map +1 -1
  23. package/dist/core/db/repositories/branches.d.ts +13 -1
  24. package/dist/core/db/repositories/branches.d.ts.map +1 -1
  25. package/dist/core/db/repositories/gateway-channels.d.ts.map +1 -1
  26. package/dist/core/db/repositories/index.d.ts +1 -0
  27. package/dist/core/db/repositories/index.d.ts.map +1 -1
  28. package/dist/core/db/repositories/session-relationships.d.ts +30 -0
  29. package/dist/core/db/repositories/session-relationships.d.ts.map +1 -0
  30. package/dist/core/db/repositories/users.d.ts +11 -0
  31. package/dist/core/db/repositories/users.d.ts.map +1 -1
  32. package/dist/core/db/schema.d.ts +421 -4
  33. package/dist/core/db/schema.d.ts.map +1 -1
  34. package/dist/core/db/schema.postgres.d.ts +226 -2
  35. package/dist/core/db/schema.postgres.d.ts.map +1 -1
  36. package/dist/core/db/schema.sqlite.d.ts +228 -2
  37. package/dist/core/db/schema.sqlite.d.ts.map +1 -1
  38. package/dist/core/drizzle/postgres/0050_artifact_source_session.sql +3 -0
  39. package/dist/core/drizzle/postgres/0051_session_relationships.sql +26 -0
  40. package/dist/core/drizzle/postgres/meta/_journal.json +14 -0
  41. package/dist/core/drizzle/sqlite/0059_artifact_source_session.sql +2 -0
  42. package/dist/core/drizzle/sqlite/0060_session_relationships.sql +23 -0
  43. package/dist/core/drizzle/sqlite/meta/_journal.json +14 -0
  44. package/dist/core/gateway/connector-registry.d.ts.map +1 -1
  45. package/dist/core/gateway/connector.d.ts +22 -0
  46. package/dist/core/gateway/connector.d.ts.map +1 -1
  47. package/dist/core/gateway/connectors/slack.d.ts +35 -3
  48. package/dist/core/gateway/connectors/slack.d.ts.map +1 -1
  49. package/dist/core/gateway/connectors/teams.d.ts +107 -0
  50. package/dist/core/gateway/connectors/teams.d.ts.map +1 -0
  51. package/dist/core/gateway/context.d.ts.map +1 -1
  52. package/dist/core/gateway/index.cjs +552 -52
  53. package/dist/core/gateway/index.d.ts +3 -2
  54. package/dist/core/gateway/index.d.ts.map +1 -1
  55. package/dist/core/gateway/index.js +544 -52
  56. package/dist/core/gateway/system-message.d.ts +21 -0
  57. package/dist/core/gateway/system-message.d.ts.map +1 -1
  58. package/dist/core/index.cjs +616 -127
  59. package/dist/core/index.js +597 -116
  60. package/dist/core/mcp/index.cjs +146 -9
  61. package/dist/core/mcp/index.js +146 -9
  62. package/dist/core/mcp/template-resolver.d.ts.map +1 -1
  63. package/dist/core/seed/index.cjs +375 -59
  64. package/dist/core/seed/index.js +378 -62
  65. package/dist/core/sessions/index.cjs +19 -0
  66. package/dist/core/sessions/index.js +19 -0
  67. package/dist/core/templates/agor-system-prompt.md +21 -53
  68. package/dist/core/templates/session-context.cjs +2 -73
  69. package/dist/core/templates/session-context.d.ts +9 -53
  70. package/dist/core/templates/session-context.d.ts.map +1 -1
  71. package/dist/core/templates/session-context.js +2 -72
  72. package/dist/core/tools/mcp/jwt-auth.cjs +2 -20
  73. package/dist/core/tools/mcp/jwt-auth.d.ts.map +1 -1
  74. package/dist/core/tools/mcp/jwt-auth.js +2 -20
  75. package/dist/core/tools/mcp/oauth-mcp-transport.cjs +2 -15
  76. package/dist/core/tools/mcp/oauth-mcp-transport.d.ts.map +1 -1
  77. package/dist/core/tools/mcp/oauth-mcp-transport.js +2 -15
  78. package/dist/core/tools/mcp/oauth-refresh.cjs +167 -19
  79. package/dist/core/tools/mcp/oauth-refresh.js +167 -19
  80. package/dist/core/types/artifact.d.ts +5 -1
  81. package/dist/core/types/artifact.d.ts.map +1 -1
  82. package/dist/core/types/branch.d.ts +14 -0
  83. package/dist/core/types/branch.d.ts.map +1 -1
  84. package/dist/core/types/gateway.d.ts +1 -1
  85. package/dist/core/types/gateway.d.ts.map +1 -1
  86. package/dist/core/types/id.d.ts +1 -0
  87. package/dist/core/types/id.d.ts.map +1 -1
  88. package/dist/core/types/index.cjs +36 -0
  89. package/dist/core/types/index.js +30 -0
  90. package/dist/core/types/session.d.ts +65 -1
  91. package/dist/core/types/session.d.ts.map +1 -1
  92. package/dist/core/types/task.d.ts +9 -0
  93. package/dist/core/types/task.d.ts.map +1 -1
  94. package/dist/core/unix/index.cjs +371 -55
  95. package/dist/core/unix/index.js +374 -58
  96. package/dist/core/unix/unix-integration-service.d.ts +10 -7
  97. package/dist/core/unix/unix-integration-service.d.ts.map +1 -1
  98. package/dist/core/utils/permission-mode-mapper.cjs +19 -0
  99. package/dist/core/utils/permission-mode-mapper.js +19 -0
  100. package/dist/daemon/declarations.d.ts +7 -0
  101. package/dist/daemon/declarations.d.ts.map +1 -1
  102. package/dist/daemon/hooks/gateway-route.d.ts.map +1 -1
  103. package/dist/daemon/hooks/gateway-route.js +53 -1
  104. package/dist/daemon/index.js +3760 -2107
  105. package/dist/daemon/main.js +3760 -2107
  106. package/dist/daemon/mcp/server.js +155 -17
  107. package/dist/daemon/mcp/tools/analytics.js +6 -7
  108. package/dist/daemon/mcp/tools/artifacts.d.ts.map +1 -1
  109. package/dist/daemon/mcp/tools/artifacts.js +7 -7
  110. package/dist/daemon/mcp/tools/boards.js +6 -7
  111. package/dist/daemon/mcp/tools/branches.js +6 -7
  112. package/dist/daemon/mcp/tools/card-types.js +6 -7
  113. package/dist/daemon/mcp/tools/cards.js +6 -7
  114. package/dist/daemon/mcp/tools/environment.d.ts.map +1 -1
  115. package/dist/daemon/mcp/tools/environment.js +19 -12
  116. package/dist/daemon/mcp/tools/knowledge.js +6 -7
  117. package/dist/daemon/mcp/tools/mcp-servers.js +6 -7
  118. package/dist/daemon/mcp/tools/messages.js +6 -7
  119. package/dist/daemon/mcp/tools/proxies.js +6 -7
  120. package/dist/daemon/mcp/tools/repos.js +6 -7
  121. package/dist/daemon/mcp/tools/schedules.js +6 -7
  122. package/dist/daemon/mcp/tools/search.js +6 -7
  123. package/dist/daemon/mcp/tools/sessions.d.ts.map +1 -1
  124. package/dist/daemon/mcp/tools/sessions.js +140 -11
  125. package/dist/daemon/mcp/tools/tasks.js +6 -7
  126. package/dist/daemon/mcp/tools/users.js +6 -7
  127. package/dist/daemon/mcp/tools/widgets.js +7 -8
  128. package/dist/daemon/register-hooks.d.ts +5 -1
  129. package/dist/daemon/register-hooks.d.ts.map +1 -1
  130. package/dist/daemon/register-hooks.js +404 -179
  131. package/dist/daemon/register-routes.d.ts.map +1 -1
  132. package/dist/daemon/register-routes.js +360 -162
  133. package/dist/daemon/register-services.d.ts.map +1 -1
  134. package/dist/daemon/register-services.js +1928 -671
  135. package/dist/daemon/services/artifacts.d.ts +10 -1
  136. package/dist/daemon/services/artifacts.d.ts.map +1 -1
  137. package/dist/daemon/services/artifacts.js +25 -1
  138. package/dist/daemon/services/branches.d.ts +11 -1
  139. package/dist/daemon/services/branches.d.ts.map +1 -1
  140. package/dist/daemon/services/branches.js +470 -184
  141. package/dist/daemon/services/claude-models.js +879 -339
  142. package/dist/daemon/services/gateway.d.ts +58 -2
  143. package/dist/daemon/services/gateway.d.ts.map +1 -1
  144. package/dist/daemon/services/gateway.js +590 -47
  145. package/dist/daemon/services/groups.d.ts +2 -0
  146. package/dist/daemon/services/groups.d.ts.map +1 -1
  147. package/dist/daemon/services/groups.js +56 -0
  148. package/dist/daemon/services/mcp-servers.d.ts.map +1 -1
  149. package/dist/daemon/services/mcp-servers.js +0 -6
  150. package/dist/daemon/services/scheduler.d.ts.map +1 -1
  151. package/dist/daemon/services/scheduler.js +6 -2
  152. package/dist/daemon/services/sessions.d.ts +11 -3
  153. package/dist/daemon/services/sessions.d.ts.map +1 -1
  154. package/dist/daemon/services/sessions.js +68 -7
  155. package/dist/daemon/services/tasks.d.ts +13 -2
  156. package/dist/daemon/services/tasks.d.ts.map +1 -1
  157. package/dist/daemon/services/tasks.js +42 -26
  158. package/dist/daemon/startup.js +6 -2
  159. package/dist/daemon/utils/session-stop.d.ts +43 -0
  160. package/dist/daemon/utils/session-stop.d.ts.map +1 -0
  161. package/dist/daemon/utils/session-stop.js +102 -0
  162. package/dist/daemon/utils/session-task-state.d.ts +7 -2
  163. package/dist/daemon/utils/session-task-state.d.ts.map +1 -1
  164. package/dist/daemon/utils/session-task-state.js +9 -3
  165. package/dist/daemon/utils/session-tasks.d.ts +4 -4
  166. package/dist/daemon/utils/session-tasks.d.ts.map +1 -1
  167. package/dist/daemon/utils/session-tasks.js +4 -8
  168. package/dist/executor/commands/environment.d.ts +13 -0
  169. package/dist/executor/commands/environment.d.ts.map +1 -0
  170. package/dist/executor/commands/environment.js +287 -0
  171. package/dist/executor/commands/index.d.ts.map +1 -1
  172. package/dist/executor/commands/index.js +5 -1
  173. package/dist/executor/commands/unix.d.ts +8 -1
  174. package/dist/executor/commands/unix.d.ts.map +1 -1
  175. package/dist/executor/commands/unix.js +157 -2
  176. package/dist/executor/payload-types.d.ts +201 -5
  177. package/dist/executor/payload-types.d.ts.map +1 -1
  178. package/dist/executor/payload-types.js +98 -0
  179. package/dist/executor/sdk-handlers/base/mcp-scoping.d.ts.map +1 -1
  180. package/dist/executor/sdk-handlers/base/mcp-scoping.js +14 -0
  181. package/dist/executor/sdk-handlers/claude/message-processor.d.ts.map +1 -1
  182. package/dist/executor/sdk-handlers/claude/message-processor.js +0 -1
  183. package/dist/executor/sdk-handlers/claude/query-builder.d.ts +1 -0
  184. package/dist/executor/sdk-handlers/claude/query-builder.d.ts.map +1 -1
  185. package/dist/executor/sdk-handlers/claude/query-builder.js +91 -39
  186. package/dist/executor/sdk-handlers/codex/prompt-service.d.ts +12 -5
  187. package/dist/executor/sdk-handlers/codex/prompt-service.d.ts.map +1 -1
  188. package/dist/executor/sdk-handlers/codex/prompt-service.js +72 -30
  189. package/dist/executor/sdk-handlers/copilot/prompt-service.d.ts +2 -4
  190. package/dist/executor/sdk-handlers/copilot/prompt-service.d.ts.map +1 -1
  191. package/dist/executor/sdk-handlers/copilot/prompt-service.js +4 -13
  192. package/dist/executor/sdk-handlers/gemini/prompt-service.d.ts +2 -4
  193. package/dist/executor/sdk-handlers/gemini/prompt-service.d.ts.map +1 -1
  194. package/dist/executor/sdk-handlers/gemini/prompt-service.js +4 -13
  195. package/dist/ui/assets/App-DcEY8Ota.js +3 -0
  196. package/dist/ui/assets/App-DcEY8Ota.js.gz +0 -0
  197. package/dist/ui/assets/{ArtifactConsentModal-ParNk5kW.js → ArtifactConsentModal-CiCbK9iv.js} +1 -1
  198. package/dist/ui/assets/ArtifactConsentModal-CiCbK9iv.js.gz +0 -0
  199. package/dist/ui/assets/ArtifactFullscreenPage-CfsTEGKd.js +9 -0
  200. package/dist/ui/assets/ArtifactFullscreenPage-CfsTEGKd.js.gz +0 -0
  201. package/dist/ui/assets/AutocompleteTextarea-BAFFH_5e.js +18 -0
  202. package/dist/ui/assets/AutocompleteTextarea-BAFFH_5e.js.gz +0 -0
  203. package/dist/ui/assets/BoardObjectNodes-D-O6bZIG.js +34 -0
  204. package/dist/ui/assets/BoardObjectNodes-D-O6bZIG.js.gz +0 -0
  205. package/dist/ui/assets/{CodeEditor.inner-D51Z_CLQ.js → CodeEditor.inner-DBgsP4tn.js} +2 -2
  206. package/dist/ui/assets/CodeEditor.inner-DBgsP4tn.js.gz +0 -0
  207. package/dist/ui/assets/ConversationView-CUWR0gR6.js +1 -0
  208. package/dist/ui/assets/ConversationView-CUWR0gR6.js.gz +0 -0
  209. package/dist/ui/assets/KnowledgePage-B2bzlXfn.js +24 -0
  210. package/dist/ui/assets/KnowledgePage-B2bzlXfn.js.gz +0 -0
  211. package/dist/ui/assets/MarketingScreenshotPage-9Qd7eZsm.css +1 -0
  212. package/dist/ui/assets/MarketingScreenshotPage-zv5RUCuV.js +143 -0
  213. package/dist/ui/assets/MarketingScreenshotPage-zv5RUCuV.js.gz +0 -0
  214. package/dist/ui/assets/MobileApp-VgVnsnsN.js +1 -0
  215. package/dist/ui/assets/MobileApp-VgVnsnsN.js.gz +0 -0
  216. package/dist/ui/assets/SessionCanvas-f1-1Gbcw.js +20 -0
  217. package/dist/ui/assets/SessionCanvas-f1-1Gbcw.js.gz +0 -0
  218. package/dist/ui/assets/{App-BAdBsEnV.css → SessionCanvas-mEmYGZhC.css} +1 -1
  219. package/dist/ui/assets/SessionCanvas-mEmYGZhC.css.gz +0 -0
  220. package/dist/ui/assets/{StreamdownDemoPage-B9wbgp2s.js → StreamdownDemoPage-wzWaqWwr.js} +1 -1
  221. package/dist/ui/assets/StreamdownDemoPage-wzWaqWwr.js.gz +0 -0
  222. package/dist/ui/assets/{ThemeSwitcher-ubn6IOz9.js → ThemeSwitcher-Dly2y9pi.js} +1 -1
  223. package/dist/ui/assets/ThemeSwitcher-Dly2y9pi.js.gz +0 -0
  224. package/dist/ui/assets/antd-CfbbHJOz.js +401 -0
  225. package/dist/ui/assets/antd-CfbbHJOz.js.gz +0 -0
  226. package/dist/ui/assets/architecture-U656AL7Q-CykGFbQU.js +1 -0
  227. package/dist/ui/assets/{architectureDiagram-VXUJARFQ-ChmZt3zk.js → architectureDiagram-VXUJARFQ-C8HXAenz.js} +1 -1
  228. package/dist/ui/assets/architectureDiagram-VXUJARFQ-C8HXAenz.js.gz +0 -0
  229. package/dist/ui/assets/{blockDiagram-VD42YOAC-CzGHAHao.js → blockDiagram-VD42YOAC-BhZaEN19.js} +1 -1
  230. package/dist/ui/assets/blockDiagram-VD42YOAC-BhZaEN19.js.gz +0 -0
  231. package/dist/ui/assets/{c4Diagram-YG6GDRKO-DscJyaWN.js → c4Diagram-YG6GDRKO-Dk_UH-sY.js} +1 -1
  232. package/dist/ui/assets/c4Diagram-YG6GDRKO-Dk_UH-sY.js.gz +0 -0
  233. package/dist/ui/assets/channel-D6_nUWlW.js +1 -0
  234. package/dist/ui/assets/{chunk-4BX2VUAB-DoWpTvP8.js → chunk-4BX2VUAB-XprbG2TG.js} +1 -1
  235. package/dist/ui/assets/chunk-55IACEB6-ByzqIgSb.js +1 -0
  236. package/dist/ui/assets/{chunk-ABZYJK2D-RzDCrjE6.js → chunk-ABZYJK2D-BJcrryHK.js} +1 -1
  237. package/dist/ui/assets/chunk-ABZYJK2D-BJcrryHK.js.gz +0 -0
  238. package/dist/ui/assets/{chunk-AGHRB4JF-jidCS5Of.js → chunk-AGHRB4JF-DvxmfbM0.js} +1 -1
  239. package/dist/ui/assets/chunk-AGHRB4JF-DvxmfbM0.js.gz +0 -0
  240. package/dist/ui/assets/{chunk-ATLVNIR6-BEIIfJtC.js → chunk-ATLVNIR6-DbeJ0OrR.js} +1 -1
  241. package/dist/ui/assets/chunk-ATLVNIR6-DbeJ0OrR.js.gz +0 -0
  242. package/dist/ui/assets/{chunk-B4BG7PRW-B8b6dQQ2.js → chunk-B4BG7PRW-C53q2ggf.js} +1 -1
  243. package/dist/ui/assets/chunk-B4BG7PRW-C53q2ggf.js.gz +0 -0
  244. package/dist/ui/assets/{chunk-CVBHYZKI-D-mQAfrk.js → chunk-CVBHYZKI-B3EBSlb3.js} +1 -1
  245. package/dist/ui/assets/{chunk-DI55MBZ5-BfATX3V8.js → chunk-DI55MBZ5-vIyNEQN-.js} +1 -1
  246. package/dist/ui/assets/chunk-DI55MBZ5-vIyNEQN-.js.gz +0 -0
  247. package/dist/ui/assets/chunk-EXTU4WIE-B3ObkuOm.js +1 -0
  248. package/dist/ui/assets/{chunk-FMBD7UC4-fqXscNvc.js → chunk-FMBD7UC4-rddmfK-Z.js} +1 -1
  249. package/dist/ui/assets/{chunk-HN2XXSSU-BCHvD80g.js → chunk-HN2XXSSU-Dttqcg3b.js} +1 -1
  250. package/dist/ui/assets/chunk-HN2XXSSU-Dttqcg3b.js.gz +0 -0
  251. package/dist/ui/assets/{chunk-JA3XYJ7Z-Cp6dqHnY.js → chunk-JA3XYJ7Z-DbNDev3D.js} +1 -1
  252. package/dist/ui/assets/chunk-JA3XYJ7Z-DbNDev3D.js.gz +0 -0
  253. package/dist/ui/assets/{chunk-JZLCHNYA-cKMooY3y.js → chunk-JZLCHNYA-EUmx2y4H.js} +1 -1
  254. package/dist/ui/assets/chunk-JZLCHNYA-EUmx2y4H.js.gz +0 -0
  255. package/dist/ui/assets/{chunk-MI3HLSF2-BlzO5wOE.js → chunk-MI3HLSF2-65n9Mkyc.js} +1 -1
  256. package/dist/ui/assets/chunk-MI3HLSF2-65n9Mkyc.js.gz +0 -0
  257. package/dist/ui/assets/chunk-N4CR4FBY-mv5koXqW.js +2 -0
  258. package/dist/ui/assets/chunk-N4CR4FBY-mv5koXqW.js.gz +0 -0
  259. package/dist/ui/assets/{chunk-QN33PNHL-DIHGQ_pd.js → chunk-QN33PNHL-DsRKK6NR.js} +1 -1
  260. package/dist/ui/assets/{chunk-QXUST7PY-C9l0muI0.js → chunk-QXUST7PY-BCYnMiS3.js} +1 -1
  261. package/dist/ui/assets/chunk-QXUST7PY-BCYnMiS3.js.gz +0 -0
  262. package/dist/ui/assets/chunk-QZHKN3VN-HucAw4xW.js +1 -0
  263. package/dist/ui/assets/{chunk-S3R3BYOJ-VJiLzt2o.js → chunk-S3R3BYOJ-CWMEa9Dc.js} +1 -1
  264. package/dist/ui/assets/chunk-S3R3BYOJ-CWMEa9Dc.js.gz +0 -0
  265. package/dist/ui/assets/{chunk-TZMSLE5B-DZwI0C_2.js → chunk-TZMSLE5B-BuQUQcTr.js} +1 -1
  266. package/dist/ui/assets/chunk-TZMSLE5B-BuQUQcTr.js.gz +0 -0
  267. package/dist/ui/assets/classDiagram-2ON5EDUG-CUT3rPTB.js +1 -0
  268. package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CUT3rPTB.js +1 -0
  269. package/dist/ui/assets/{cose-bilkent-S5V4N54A-Ipik-oSD.js → cose-bilkent-S5V4N54A-CnPB3ARO.js} +1 -1
  270. package/dist/ui/assets/cose-bilkent-S5V4N54A-CnPB3ARO.js.gz +0 -0
  271. package/dist/ui/assets/cursor-QEb7m-rN.png +0 -0
  272. package/dist/ui/assets/{dagre-6UL2VRFP-BDpyWQnh.js → dagre-6UL2VRFP-DhS-k_Se.js} +1 -1
  273. package/dist/ui/assets/dagre-6UL2VRFP-DhS-k_Se.js.gz +0 -0
  274. package/dist/ui/assets/{dagre-CgA4KhUX.js → dagre-KgLoHEuy.js} +1 -1
  275. package/dist/ui/assets/dagre-KgLoHEuy.js.gz +0 -0
  276. package/dist/ui/assets/{diagram-PSM6KHXK-B4GRzxLJ.js → diagram-PSM6KHXK-BZg3MJmb.js} +1 -1
  277. package/dist/ui/assets/diagram-PSM6KHXK-BZg3MJmb.js.gz +0 -0
  278. package/dist/ui/assets/{diagram-QEK2KX5R-BWPW28XI.js → diagram-QEK2KX5R-BPCitvbo.js} +1 -1
  279. package/dist/ui/assets/diagram-QEK2KX5R-BPCitvbo.js.gz +0 -0
  280. package/dist/ui/assets/{diagram-S2PKOQOG-BIHhcGoV.js → diagram-S2PKOQOG-NW4uK6sx.js} +1 -1
  281. package/dist/ui/assets/diagram-S2PKOQOG-NW4uK6sx.js.gz +0 -0
  282. package/dist/ui/assets/{editor-C-HJ7Yw0.js → editor-CzFWIUw2.js} +1 -1
  283. package/dist/ui/assets/editor-CzFWIUw2.js.gz +0 -0
  284. package/dist/ui/assets/{emoji-D8F6B62m.js → emoji-Dkz4Zzv_.js} +1 -1
  285. package/dist/ui/assets/emoji-Dkz4Zzv_.js.gz +0 -0
  286. package/dist/ui/assets/{erDiagram-Q2GNP2WA-ubTaAFcK.js → erDiagram-Q2GNP2WA-me1fboaf.js} +1 -1
  287. package/dist/ui/assets/erDiagram-Q2GNP2WA-me1fboaf.js.gz +0 -0
  288. package/dist/ui/assets/{flowDiagram-NV44I4VS-BHLCTYjI.js → flowDiagram-NV44I4VS-DzE8dGsh.js} +1 -1
  289. package/dist/ui/assets/flowDiagram-NV44I4VS-DzE8dGsh.js.gz +0 -0
  290. package/dist/ui/assets/{ganttDiagram-LVOFAZNH-ClC3pay1.js → ganttDiagram-LVOFAZNH-CFQD09Mi.js} +2 -2
  291. package/dist/ui/assets/ganttDiagram-LVOFAZNH-CFQD09Mi.js.gz +0 -0
  292. package/dist/ui/assets/{gitGraph-F6HP7TQM-DghoobE6.js → gitGraph-F6HP7TQM-CfFE_uAC.js} +1 -1
  293. package/dist/ui/assets/{gitGraphDiagram-NY62KEGX-Clqpiswu.js → gitGraphDiagram-NY62KEGX-CaVoxU4C.js} +1 -1
  294. package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CaVoxU4C.js.gz +0 -0
  295. package/dist/ui/assets/index-BN5_Qq7R.js +324 -0
  296. package/dist/ui/assets/index-BN5_Qq7R.js.gz +0 -0
  297. package/dist/ui/assets/index-DxuPq13l.css +1 -0
  298. package/dist/ui/assets/index-DxuPq13l.css.gz +0 -0
  299. package/dist/ui/assets/{info-NVLQJR56-0ZldEXPQ.js → info-NVLQJR56-i_xHYg3f.js} +1 -1
  300. package/dist/ui/assets/{infoDiagram-ER5ION4S-DMmPX-il.js → infoDiagram-ER5ION4S-2NL93b78.js} +1 -1
  301. package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-CrVickA2.js → journeyDiagram-XKPGCS4Q-CZF-2DHU.js} +1 -1
  302. package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CZF-2DHU.js.gz +0 -0
  303. package/dist/ui/assets/{kanban-definition-3W4ZIXB7-C_BsdHYL.js → kanban-definition-3W4ZIXB7-CfvJIOny.js} +1 -1
  304. package/dist/ui/assets/kanban-definition-3W4ZIXB7-CfvJIOny.js.gz +0 -0
  305. package/dist/ui/assets/{line-CfBP7Yic.js → line-DDv8kOJk.js} +1 -1
  306. package/dist/ui/assets/{linear-BsjageUB.js → linear-Daef-l29.js} +1 -1
  307. package/dist/ui/assets/linear-Daef-l29.js.gz +0 -0
  308. package/dist/ui/assets/{mermaid-parser.core-DZdP-NFq.js → mermaid-parser.core-CdK9QgYV.js} +2 -2
  309. package/dist/ui/assets/mermaid-parser.core-CdK9QgYV.js.gz +0 -0
  310. package/dist/ui/assets/{mermaid.core-TNrI0pHG.js → mermaid.core-D6GS9mU-.js} +3 -3
  311. package/dist/ui/assets/mermaid.core-D6GS9mU-.js.gz +0 -0
  312. package/dist/ui/assets/message-SqLqNYcv.js +36 -0
  313. package/dist/ui/assets/message-SqLqNYcv.js.gz +0 -0
  314. package/dist/ui/assets/{mindmap-definition-VGOIOE7T-BbmaUjMY.js → mindmap-definition-VGOIOE7T-Cb3QMflX.js} +1 -1
  315. package/dist/ui/assets/mindmap-definition-VGOIOE7T-Cb3QMflX.js.gz +0 -0
  316. package/dist/ui/assets/{packet-BFZMPI3H-D_ZhkXuT.js → packet-BFZMPI3H-Bm2uwz4i.js} +1 -1
  317. package/dist/ui/assets/{particles-Dv28pjOd.js → particles-DsJFOarW.js} +1 -1
  318. package/dist/ui/assets/particles-DsJFOarW.js.gz +0 -0
  319. package/dist/ui/assets/{pie-7BOR55EZ-Dn0Q3qNx.js → pie-7BOR55EZ-5i17tVnF.js} +1 -1
  320. package/dist/ui/assets/{pieDiagram-ADFJNKIX-BbyjfYu8.js → pieDiagram-ADFJNKIX-BxIwQWvw.js} +1 -1
  321. package/dist/ui/assets/pieDiagram-ADFJNKIX-BxIwQWvw.js.gz +0 -0
  322. package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-Bc3GqMKz.js → quadrantDiagram-AYHSOK5B-B5HPe4ga.js} +1 -1
  323. package/dist/ui/assets/quadrantDiagram-AYHSOK5B-B5HPe4ga.js.gz +0 -0
  324. package/dist/ui/assets/{radar-NHE76QYJ-BHwoAy1q.js → radar-NHE76QYJ-BTn-tq0k.js} +1 -1
  325. package/dist/ui/assets/{reactflow-BVYPxNhc.js → reactflow-Bf74ngoo.js} +2 -2
  326. package/dist/ui/assets/reactflow-Bf74ngoo.js.gz +0 -0
  327. package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-BQaKKL09.js → requirementDiagram-UZGBJVZJ-YfI6llkX.js} +1 -1
  328. package/dist/ui/assets/requirementDiagram-UZGBJVZJ-YfI6llkX.js.gz +0 -0
  329. package/dist/ui/assets/{sandpack-BQW_FQ7G.js → sandpack-D7koO5op.js} +1 -1
  330. package/dist/ui/assets/sandpack-D7koO5op.js.gz +0 -0
  331. package/dist/ui/assets/{sankeyDiagram-TZEHDZUN-DiJvDvhb.js → sankeyDiagram-TZEHDZUN-DOk_B10B.js} +1 -1
  332. package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DOk_B10B.js.gz +0 -0
  333. package/dist/ui/assets/{sequenceDiagram-WL72ISMW-Dw32824o.js → sequenceDiagram-WL72ISMW-DAe4Um17.js} +1 -1
  334. package/dist/ui/assets/sequenceDiagram-WL72ISMW-DAe4Um17.js.gz +0 -0
  335. package/dist/ui/assets/{stateDiagram-FKZM4ZOC-BCOpNdHV.js → stateDiagram-FKZM4ZOC-CCesDu_C.js} +1 -1
  336. package/dist/ui/assets/stateDiagram-FKZM4ZOC-CCesDu_C.js.gz +0 -0
  337. package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-CMlIrsoO.js +1 -0
  338. package/dist/ui/assets/{syntax-VJrU5BEu.js → syntax-C-M-8jOU.js} +1 -1
  339. package/dist/ui/assets/syntax-C-M-8jOU.js.gz +0 -0
  340. package/dist/ui/assets/{theme-DZtFA8b4.js → theme-BQZdiqwv.js} +1 -1
  341. package/dist/ui/assets/{timeline-definition-IT6M3QCI-Jh_WZzXv.js → timeline-definition-IT6M3QCI-D6P5txjT.js} +1 -1
  342. package/dist/ui/assets/timeline-definition-IT6M3QCI-D6P5txjT.js.gz +0 -0
  343. package/dist/ui/assets/{treemap-KMMF4GRG-CPYIgjxE.js → treemap-KMMF4GRG-Bitm3gy4.js} +1 -1
  344. package/dist/ui/assets/{knowledgeRoutes-CivaUqha.js → useUserLocalStorage-Ckb8HsIw.js} +1 -1
  345. package/dist/ui/assets/useUserLocalStorage-Ckb8HsIw.js.gz +0 -0
  346. package/dist/ui/assets/{xychartDiagram-PRI3JC2R-CERc7Rdb.js → xychartDiagram-PRI3JC2R-CsybjUbd.js} +1 -1
  347. package/dist/ui/assets/xychartDiagram-PRI3JC2R-CsybjUbd.js.gz +0 -0
  348. package/dist/ui/index.html +13 -11
  349. package/dist/ui/index.html.gz +0 -0
  350. package/package.json +10 -9
  351. package/dist/ui/assets/App-9s2WHM6S.js +0 -22
  352. package/dist/ui/assets/App-9s2WHM6S.js.gz +0 -0
  353. package/dist/ui/assets/App-BAdBsEnV.css.gz +0 -0
  354. package/dist/ui/assets/ArtifactConsentModal-ParNk5kW.js.gz +0 -0
  355. package/dist/ui/assets/ArtifactFullscreenPage-VQxLMCiN.js +0 -9
  356. package/dist/ui/assets/ArtifactFullscreenPage-VQxLMCiN.js.gz +0 -0
  357. package/dist/ui/assets/AutocompleteTextarea-3RchrIgk.js +0 -18
  358. package/dist/ui/assets/AutocompleteTextarea-3RchrIgk.js.gz +0 -0
  359. package/dist/ui/assets/CodeEditor.inner-D51Z_CLQ.js.gz +0 -0
  360. package/dist/ui/assets/ConversationView-Dyddw2b1.js +0 -34
  361. package/dist/ui/assets/ConversationView-Dyddw2b1.js.gz +0 -0
  362. package/dist/ui/assets/KnowledgePage-CdftslnF.js +0 -24
  363. package/dist/ui/assets/KnowledgePage-CdftslnF.js.gz +0 -0
  364. package/dist/ui/assets/MobileApp-BdBMpnJ1.js +0 -1
  365. package/dist/ui/assets/MobileApp-BdBMpnJ1.js.gz +0 -0
  366. package/dist/ui/assets/StreamdownDemoPage-B9wbgp2s.js.gz +0 -0
  367. package/dist/ui/assets/ThemeSwitcher-ubn6IOz9.js.gz +0 -0
  368. package/dist/ui/assets/antd-C-HfEC4E.js +0 -400
  369. package/dist/ui/assets/antd-C-HfEC4E.js.gz +0 -0
  370. package/dist/ui/assets/architecture-U656AL7Q-dkBewUpN.js +0 -1
  371. package/dist/ui/assets/architectureDiagram-VXUJARFQ-ChmZt3zk.js.gz +0 -0
  372. package/dist/ui/assets/blockDiagram-VD42YOAC-CzGHAHao.js.gz +0 -0
  373. package/dist/ui/assets/c4Diagram-YG6GDRKO-DscJyaWN.js.gz +0 -0
  374. package/dist/ui/assets/channel-DvRQqEqC.js +0 -1
  375. package/dist/ui/assets/chunk-55IACEB6-DojF2pZN.js +0 -1
  376. package/dist/ui/assets/chunk-ABZYJK2D-RzDCrjE6.js.gz +0 -0
  377. package/dist/ui/assets/chunk-AGHRB4JF-jidCS5Of.js.gz +0 -0
  378. package/dist/ui/assets/chunk-ATLVNIR6-BEIIfJtC.js.gz +0 -0
  379. package/dist/ui/assets/chunk-B4BG7PRW-B8b6dQQ2.js.gz +0 -0
  380. package/dist/ui/assets/chunk-DI55MBZ5-BfATX3V8.js.gz +0 -0
  381. package/dist/ui/assets/chunk-EXTU4WIE-BKt6lPJM.js +0 -1
  382. package/dist/ui/assets/chunk-HN2XXSSU-BCHvD80g.js.gz +0 -0
  383. package/dist/ui/assets/chunk-JA3XYJ7Z-Cp6dqHnY.js.gz +0 -0
  384. package/dist/ui/assets/chunk-JZLCHNYA-cKMooY3y.js.gz +0 -0
  385. package/dist/ui/assets/chunk-MI3HLSF2-BlzO5wOE.js.gz +0 -0
  386. package/dist/ui/assets/chunk-N4CR4FBY-pASDorUx.js +0 -2
  387. package/dist/ui/assets/chunk-N4CR4FBY-pASDorUx.js.gz +0 -0
  388. package/dist/ui/assets/chunk-QXUST7PY-C9l0muI0.js.gz +0 -0
  389. package/dist/ui/assets/chunk-QZHKN3VN-CZskCFCf.js +0 -1
  390. package/dist/ui/assets/chunk-S3R3BYOJ-VJiLzt2o.js.gz +0 -0
  391. package/dist/ui/assets/chunk-TZMSLE5B-DZwI0C_2.js.gz +0 -0
  392. package/dist/ui/assets/classDiagram-2ON5EDUG-BFASUbmZ.js +0 -1
  393. package/dist/ui/assets/classDiagram-v2-WZHVMYZB-BFASUbmZ.js +0 -1
  394. package/dist/ui/assets/cose-bilkent-S5V4N54A-Ipik-oSD.js.gz +0 -0
  395. package/dist/ui/assets/dagre-6UL2VRFP-BDpyWQnh.js.gz +0 -0
  396. package/dist/ui/assets/dagre-CgA4KhUX.js.gz +0 -0
  397. package/dist/ui/assets/diagram-PSM6KHXK-B4GRzxLJ.js.gz +0 -0
  398. package/dist/ui/assets/diagram-QEK2KX5R-BWPW28XI.js.gz +0 -0
  399. package/dist/ui/assets/diagram-S2PKOQOG-BIHhcGoV.js.gz +0 -0
  400. package/dist/ui/assets/editor-C-HJ7Yw0.js.gz +0 -0
  401. package/dist/ui/assets/emoji-D8F6B62m.js.gz +0 -0
  402. package/dist/ui/assets/erDiagram-Q2GNP2WA-ubTaAFcK.js.gz +0 -0
  403. package/dist/ui/assets/flowDiagram-NV44I4VS-BHLCTYjI.js.gz +0 -0
  404. package/dist/ui/assets/ganttDiagram-LVOFAZNH-ClC3pay1.js.gz +0 -0
  405. package/dist/ui/assets/gitGraphDiagram-NY62KEGX-Clqpiswu.js.gz +0 -0
  406. package/dist/ui/assets/index-D9OElx9A.css +0 -1
  407. package/dist/ui/assets/index-D9OElx9A.css.gz +0 -0
  408. package/dist/ui/assets/index-DxPuzG7E.js +0 -350
  409. package/dist/ui/assets/index-DxPuzG7E.js.gz +0 -0
  410. package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CrVickA2.js.gz +0 -0
  411. package/dist/ui/assets/kanban-definition-3W4ZIXB7-C_BsdHYL.js.gz +0 -0
  412. package/dist/ui/assets/knowledgeRoutes-CivaUqha.js.gz +0 -0
  413. package/dist/ui/assets/linear-BsjageUB.js.gz +0 -0
  414. package/dist/ui/assets/mermaid-parser.core-DZdP-NFq.js.gz +0 -0
  415. package/dist/ui/assets/mermaid.core-TNrI0pHG.js.gz +0 -0
  416. package/dist/ui/assets/message-BtWWJ9Af.js +0 -36
  417. package/dist/ui/assets/message-BtWWJ9Af.js.gz +0 -0
  418. package/dist/ui/assets/mindmap-definition-VGOIOE7T-BbmaUjMY.js.gz +0 -0
  419. package/dist/ui/assets/particles-Dv28pjOd.js.gz +0 -0
  420. package/dist/ui/assets/pieDiagram-ADFJNKIX-BbyjfYu8.js.gz +0 -0
  421. package/dist/ui/assets/quadrantDiagram-AYHSOK5B-Bc3GqMKz.js.gz +0 -0
  422. package/dist/ui/assets/reactflow-BVYPxNhc.js.gz +0 -0
  423. package/dist/ui/assets/requirementDiagram-UZGBJVZJ-BQaKKL09.js.gz +0 -0
  424. package/dist/ui/assets/sandpack-BQW_FQ7G.js.gz +0 -0
  425. package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DiJvDvhb.js.gz +0 -0
  426. package/dist/ui/assets/sequenceDiagram-WL72ISMW-Dw32824o.js.gz +0 -0
  427. package/dist/ui/assets/stateDiagram-FKZM4ZOC-BCOpNdHV.js.gz +0 -0
  428. package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-Cuqwvgfg.js +0 -1
  429. package/dist/ui/assets/syntax-VJrU5BEu.js.gz +0 -0
  430. package/dist/ui/assets/timeline-definition-IT6M3QCI-Jh_WZzXv.js.gz +0 -0
  431. package/dist/ui/assets/xychartDiagram-PRI3JC2R-CERc7Rdb.js.gz +0 -0
@@ -31,7 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  mod
32
32
  ));
33
33
 
34
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
34
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
35
35
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
36
36
  if (kind === "m")
37
37
  throw new TypeError("Private method is not writable");
@@ -49,15 +49,15 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
49
49
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
50
50
  }
51
51
  var init_tslib = __esm({
52
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
52
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
53
53
  "use strict";
54
54
  }
55
55
  });
56
56
 
57
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
57
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
58
58
  var uuid4;
59
59
  var init_uuid = __esm({
60
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
60
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
61
61
  "use strict";
62
62
  uuid4 = function() {
63
63
  const { crypto: crypto2 } = globalThis;
@@ -72,7 +72,7 @@ var init_uuid = __esm({
72
72
  }
73
73
  });
74
74
 
75
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs
75
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs
76
76
  function isAbortError(err) {
77
77
  return typeof err === "object" && err !== null && // Spec-compliant fetch implementations
78
78
  ("name" in err && err.name === "AbortError" || // Expo fetch
@@ -80,7 +80,7 @@ function isAbortError(err) {
80
80
  }
81
81
  var castToError;
82
82
  var init_errors = __esm({
83
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
83
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
84
84
  "use strict";
85
85
  castToError = (err) => {
86
86
  if (err instanceof Error)
@@ -109,10 +109,10 @@ var init_errors = __esm({
109
109
  }
110
110
  });
111
111
 
112
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs
113
- var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
112
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs
113
+ var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, RetryableError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
114
114
  var init_error = __esm({
115
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
115
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
116
116
  "use strict";
117
117
  init_errors();
118
118
  AnthropicError = class extends Error {
@@ -189,6 +189,13 @@ var init_error = __esm({
189
189
  super({ message: message ?? "Request timed out." });
190
190
  }
191
191
  };
192
+ RetryableError = class extends AnthropicError {
193
+ constructor(message, { cause } = {}) {
194
+ super(message ?? "Retryable error.");
195
+ if (cause !== void 0)
196
+ this.cause = cause;
197
+ }
198
+ };
192
199
  BadRequestError = class extends APIError {
193
200
  };
194
201
  AuthenticationError = class extends APIError {
@@ -208,7 +215,7 @@ var init_error = __esm({
208
215
  }
209
216
  });
210
217
 
211
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
218
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
212
219
  function maybeObj(x) {
213
220
  if (typeof x !== "object") {
214
221
  return {};
@@ -227,7 +234,7 @@ function hasOwn(obj, key) {
227
234
  }
228
235
  var startsWithSchemeRegexp, isAbsoluteURL, isArray, isReadonlyArray, validatePositiveInteger, safeJSON;
229
236
  var init_values = __esm({
230
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
237
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
231
238
  "use strict";
232
239
  init_error();
233
240
  startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
@@ -255,10 +262,10 @@ var init_values = __esm({
255
262
  }
256
263
  });
257
264
 
258
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
265
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
259
266
  var sleep;
260
267
  var init_sleep = __esm({
261
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
268
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
262
269
  "use strict";
263
270
  sleep = (ms, signal) => new Promise((resolve4) => {
264
271
  if (signal?.aborted)
@@ -276,16 +283,16 @@ var init_sleep = __esm({
276
283
  }
277
284
  });
278
285
 
279
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs
286
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs
280
287
  var VERSION;
281
288
  var init_version = __esm({
282
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs"() {
289
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs"() {
283
290
  "use strict";
284
- VERSION = "0.100.0";
291
+ VERSION = "0.105.0";
285
292
  }
286
293
  });
287
294
 
288
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
295
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
289
296
  function getDetectedPlatform() {
290
297
  if (typeof Deno !== "undefined" && Deno.build != null) {
291
298
  return "deno";
@@ -323,7 +330,7 @@ function getBrowserInfo() {
323
330
  }
324
331
  var isRunningInBrowser, getPlatformProperties, normalizeArch, normalizePlatform, _platformHeaders, getPlatformHeaders;
325
332
  var init_detect_platform = __esm({
326
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
333
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
327
334
  "use strict";
328
335
  init_version();
329
336
  isRunningInBrowser = () => {
@@ -425,7 +432,7 @@ var init_detect_platform = __esm({
425
432
  }
426
433
  });
427
434
 
428
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs
435
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs
429
436
  function getDefaultFetch() {
430
437
  if (typeof fetch !== "undefined") {
431
438
  return fetch;
@@ -433,11 +440,11 @@ function getDefaultFetch() {
433
440
  throw new Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`");
434
441
  }
435
442
  function makeReadableStream(...args) {
436
- const ReadableStream = globalThis.ReadableStream;
437
- if (typeof ReadableStream === "undefined") {
443
+ const ReadableStream2 = globalThis.ReadableStream;
444
+ if (typeof ReadableStream2 === "undefined") {
438
445
  throw new Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");
439
446
  }
440
- return new ReadableStream(...args);
447
+ return new ReadableStream2(...args);
441
448
  }
442
449
  function ReadableStreamFrom(iterable) {
443
450
  let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
@@ -497,15 +504,15 @@ async function CancelReadableStream(stream) {
497
504
  await cancelPromise;
498
505
  }
499
506
  var init_shims = __esm({
500
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
507
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
501
508
  "use strict";
502
509
  }
503
510
  });
504
511
 
505
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
512
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
506
513
  var FallbackEncoder;
507
514
  var init_request_options = __esm({
508
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
515
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
509
516
  "use strict";
510
517
  FallbackEncoder = ({ headers, body }) => {
511
518
  return {
@@ -518,10 +525,10 @@ var init_request_options = __esm({
518
525
  }
519
526
  });
520
527
 
521
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
528
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
522
529
  var default_format, default_formatter, formatters, RFC1738;
523
530
  var init_formats = __esm({
524
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
531
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
525
532
  "use strict";
526
533
  default_format = "RFC3986";
527
534
  default_formatter = (v) => String(v);
@@ -533,7 +540,7 @@ var init_formats = __esm({
533
540
  }
534
541
  });
535
542
 
536
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
543
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
537
544
  function is_buffer(obj) {
538
545
  if (!obj || typeof obj !== "object") {
539
546
  return false;
@@ -552,7 +559,7 @@ function maybe_map(val, fn) {
552
559
  }
553
560
  var has, hex_table, limit, encode;
554
561
  var init_utils = __esm({
555
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
562
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
556
563
  "use strict";
557
564
  init_formats();
558
565
  init_values();
@@ -620,11 +627,11 @@ var init_utils = __esm({
620
627
  }
621
628
  });
622
629
 
623
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
630
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
624
631
  function is_non_nullish_primitive(v) {
625
632
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
626
633
  }
627
- function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
634
+ function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder2, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
628
635
  let obj = object;
629
636
  let tmp_sc = sideChannel;
630
637
  let step = 0;
@@ -657,19 +664,19 @@ function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, al
657
664
  }
658
665
  if (obj === null) {
659
666
  if (strictNullHandling) {
660
- return encoder && !encodeValuesOnly ? (
667
+ return encoder2 && !encodeValuesOnly ? (
661
668
  // @ts-expect-error
662
- encoder(prefix, defaults.encoder, charset, "key", format)
669
+ encoder2(prefix, defaults.encoder, charset, "key", format)
663
670
  ) : prefix;
664
671
  }
665
672
  obj = "";
666
673
  }
667
674
  if (is_non_nullish_primitive(obj) || is_buffer(obj)) {
668
- if (encoder) {
669
- const key_value = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
675
+ if (encoder2) {
676
+ const key_value = encodeValuesOnly ? prefix : encoder2(prefix, defaults.encoder, charset, "key", format);
670
677
  return [
671
678
  formatter?.(key_value) + "=" + // @ts-expect-error
672
- formatter?.(encoder(obj, defaults.encoder, charset, "value", format))
679
+ formatter?.(encoder2(obj, defaults.encoder, charset, "value", format))
673
680
  ];
674
681
  }
675
682
  return [formatter?.(prefix) + "=" + formatter?.(String(obj))];
@@ -680,8 +687,8 @@ function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, al
680
687
  }
681
688
  let obj_keys;
682
689
  if (generateArrayPrefix === "comma" && isArray(obj)) {
683
- if (encodeValuesOnly && encoder) {
684
- obj = maybe_map(obj, encoder);
690
+ if (encodeValuesOnly && encoder2) {
691
+ obj = maybe_map(obj, encoder2);
685
692
  }
686
693
  obj_keys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
687
694
  } else if (isArray(filter)) {
@@ -719,7 +726,7 @@ function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, al
719
726
  skipNulls,
720
727
  encodeDotInKeys,
721
728
  // @ts-ignore
722
- generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
729
+ generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder2,
723
730
  filter,
724
731
  sort,
725
732
  allowDots,
@@ -860,7 +867,7 @@ function stringify(object, opts = {}) {
860
867
  }
861
868
  var array_prefix_generators, push_to_array, toISOString, defaults, sentinel;
862
869
  var init_stringify = __esm({
863
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
870
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
864
871
  "use strict";
865
872
  init_utils();
866
873
  init_formats();
@@ -906,18 +913,18 @@ var init_stringify = __esm({
906
913
  }
907
914
  });
908
915
 
909
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
916
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
910
917
  function stringifyQuery(query) {
911
918
  return stringify(query, { arrayFormat: "brackets" });
912
919
  }
913
920
  var init_query = __esm({
914
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
921
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
915
922
  "use strict";
916
923
  init_stringify();
917
924
  }
918
925
  });
919
926
 
920
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
927
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
921
928
  function requireSecureTokenEndpoint(baseURL) {
922
929
  if (!baseURL)
923
930
  return;
@@ -1064,7 +1071,7 @@ async function readLimitedText(resp) {
1064
1071
  }
1065
1072
  var GRANT_TYPE_JWT_BEARER, GRANT_TYPE_REFRESH_TOKEN, TOKEN_ENDPOINT, OAUTH_API_BETA_HEADER, FEDERATION_BETA_HEADER, ADVISORY_REFRESH_THRESHOLD_IN_SECONDS, MANDATORY_REFRESH_THRESHOLD_IN_SECONDS, ADVISORY_REFRESH_BACKOFF_IN_SECONDS, MAX_TOKEN_RESPONSE_BYTES, MAX_ERROR_BODY_CHARS, SAFE_ERROR_KEYS, WorkloadIdentityError;
1066
1073
  var init_types = __esm({
1067
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1074
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1068
1075
  "use strict";
1069
1076
  init_error();
1070
1077
  GRANT_TYPE_JWT_BEARER = "urn:ietf:params:oauth:grant-type:jwt-bearer";
@@ -1089,20 +1096,20 @@ var init_types = __esm({
1089
1096
  }
1090
1097
  });
1091
1098
 
1092
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1099
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1093
1100
  function nowAsSeconds() {
1094
1101
  return Math.floor(Date.now() / 1e3);
1095
1102
  }
1096
1103
  var init_time = __esm({
1097
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1104
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1098
1105
  "use strict";
1099
1106
  }
1100
1107
  });
1101
1108
 
1102
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1109
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1103
1110
  var TokenCache;
1104
1111
  var init_token_cache = __esm({
1105
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1112
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1106
1113
  "use strict";
1107
1114
  init_types();
1108
1115
  init_time();
@@ -1196,10 +1203,10 @@ var init_token_cache = __esm({
1196
1203
  }
1197
1204
  });
1198
1205
 
1199
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1206
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1200
1207
  var readEnv;
1201
1208
  var init_env = __esm({
1202
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1209
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1203
1210
  "use strict";
1204
1211
  readEnv = (env) => {
1205
1212
  if (typeof globalThis.process !== "undefined") {
@@ -1213,7 +1220,7 @@ var init_env = __esm({
1213
1220
  }
1214
1221
  });
1215
1222
 
1216
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1223
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1217
1224
  function concatBytes(buffers) {
1218
1225
  let length = 0;
1219
1226
  for (const buffer of buffers) {
@@ -1228,8 +1235,8 @@ function concatBytes(buffers) {
1228
1235
  return output;
1229
1236
  }
1230
1237
  function encodeUTF8(str) {
1231
- let encoder;
1232
- return (encodeUTF8_ ?? (encoder = new globalThis.TextEncoder(), encodeUTF8_ = encoder.encode.bind(encoder)))(str);
1238
+ let encoder2;
1239
+ return (encodeUTF8_ ?? (encoder2 = new globalThis.TextEncoder(), encodeUTF8_ = encoder2.encode.bind(encoder2)))(str);
1233
1240
  }
1234
1241
  function decodeUTF8(bytes) {
1235
1242
  let decoder;
@@ -1237,21 +1244,21 @@ function decodeUTF8(bytes) {
1237
1244
  }
1238
1245
  var encodeUTF8_, decodeUTF8_;
1239
1246
  var init_bytes = __esm({
1240
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1247
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1241
1248
  "use strict";
1242
1249
  }
1243
1250
  });
1244
1251
 
1245
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1252
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1246
1253
  var init_base64 = __esm({
1247
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1254
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1248
1255
  "use strict";
1249
1256
  init_error();
1250
1257
  init_bytes();
1251
1258
  }
1252
1259
  });
1253
1260
 
1254
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1261
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1255
1262
  function noop() {
1256
1263
  }
1257
1264
  function makeLogFn(fnLevel, logger, logLevel) {
@@ -1261,12 +1268,7 @@ function makeLogFn(fnLevel, logger, logLevel) {
1261
1268
  return logger[fnLevel].bind(logger);
1262
1269
  }
1263
1270
  }
1264
- function loggerFor(client) {
1265
- const logger = client.logger;
1266
- const logLevel = client.logLevel ?? "off";
1267
- if (!logger) {
1268
- return noopLogger;
1269
- }
1271
+ function filterLogger(logger, logLevel) {
1270
1272
  const cachedLogger = cachedLoggers.get(logger);
1271
1273
  if (cachedLogger && cachedLogger[0] === logLevel) {
1272
1274
  return cachedLogger[1];
@@ -1280,11 +1282,29 @@ function loggerFor(client) {
1280
1282
  cachedLoggers.set(logger, [logLevel, levelLogger]);
1281
1283
  return levelLogger;
1282
1284
  }
1283
- var levelNumbers, parseLogLevel, noopLogger, cachedLoggers, formatRequestDetails;
1285
+ function loggerFor(client) {
1286
+ const logger = client.logger;
1287
+ const logLevel = client.logLevel ?? "off";
1288
+ if (!logger) {
1289
+ return noopLogger;
1290
+ }
1291
+ return filterLogger(logger, logLevel);
1292
+ }
1293
+ function defaultLogger() {
1294
+ const envLevel = readEnv("ANTHROPIC_LOG");
1295
+ if (!cachedDefaultLogger || envLevel !== lastEnvLevel) {
1296
+ lastEnvLevel = envLevel;
1297
+ cachedDefaultLogger = filterLogger(console, parseLogLevel(envLevel, "process.env['ANTHROPIC_LOG']", filterLogger(console, defaultLogLevel)) ?? defaultLogLevel);
1298
+ }
1299
+ return cachedDefaultLogger;
1300
+ }
1301
+ var defaultLogLevel, levelNumbers, parseLogLevel, noopLogger, cachedLoggers, lastEnvLevel, cachedDefaultLogger, formatRequestDetails;
1284
1302
  var init_log = __esm({
1285
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1303
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1286
1304
  "use strict";
1287
1305
  init_values();
1306
+ init_env();
1307
+ defaultLogLevel = "warn";
1288
1308
  levelNumbers = {
1289
1309
  off: 0,
1290
1310
  error: 200,
@@ -1292,14 +1312,14 @@ var init_log = __esm({
1292
1312
  info: 400,
1293
1313
  debug: 500
1294
1314
  };
1295
- parseLogLevel = (maybeLevel, sourceName, client) => {
1315
+ parseLogLevel = (maybeLevel, sourceName, logger) => {
1296
1316
  if (!maybeLevel) {
1297
1317
  return void 0;
1298
1318
  }
1299
1319
  if (hasOwn(levelNumbers, maybeLevel)) {
1300
1320
  return maybeLevel;
1301
1321
  }
1302
- loggerFor(client).warn(`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`);
1322
+ logger.warn(`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`);
1303
1323
  return void 0;
1304
1324
  };
1305
1325
  noopLogger = {
@@ -1331,9 +1351,9 @@ var init_log = __esm({
1331
1351
  }
1332
1352
  });
1333
1353
 
1334
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1354
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1335
1355
  var init_utils2 = __esm({
1336
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1356
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1337
1357
  "use strict";
1338
1358
  init_values();
1339
1359
  init_base64();
@@ -1345,7 +1365,7 @@ var init_utils2 = __esm({
1345
1365
  }
1346
1366
  });
1347
1367
 
1348
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1368
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1349
1369
  function validateProfileName(name) {
1350
1370
  if (!name) {
1351
1371
  throw new Error("profile name is empty");
@@ -1362,7 +1382,7 @@ function validateProfileName(name) {
1362
1382
  }
1363
1383
  var CREDENTIALS_FILE_VERSION, PROFILE_NAME_PATTERN, loadConfigWithSource, getCredentialsPath, getRootConfigPath, supportsLocalConfigFiles, getActiveProfileName;
1364
1384
  var init_credentials = __esm({
1365
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1385
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1366
1386
  "use strict";
1367
1387
  init_detect_platform();
1368
1388
  init_utils2();
@@ -1527,7 +1547,7 @@ var init_credentials = __esm({
1527
1547
  }
1528
1548
  });
1529
1549
 
1530
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
1550
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
1531
1551
  function identityTokenFromFile(path5) {
1532
1552
  if (!path5) {
1533
1553
  throw new AnthropicError("Identity token file path is empty");
@@ -1554,13 +1574,13 @@ function identityTokenFromValue(token) {
1554
1574
  return () => token;
1555
1575
  }
1556
1576
  var init_identity_token = __esm({
1557
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
1577
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
1558
1578
  "use strict";
1559
1579
  init_error();
1560
1580
  }
1561
1581
  });
1562
1582
 
1563
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
1583
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
1564
1584
  function oidcFederationProvider(config) {
1565
1585
  return async () => {
1566
1586
  requireSecureTokenEndpoint(config.baseURL);
@@ -1618,7 +1638,7 @@ function oidcFederationProvider(config) {
1618
1638
  };
1619
1639
  }
1620
1640
  var init_oidc_federation = __esm({
1621
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
1641
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
1622
1642
  "use strict";
1623
1643
  init_types();
1624
1644
  init_time();
@@ -1626,7 +1646,7 @@ var init_oidc_federation = __esm({
1626
1646
  }
1627
1647
  });
1628
1648
 
1629
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
1649
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
1630
1650
  function userOAuthProvider(config) {
1631
1651
  return async (opts) => {
1632
1652
  const fs4 = await import("fs");
@@ -1700,7 +1720,7 @@ function userOAuthProvider(config) {
1700
1720
  };
1701
1721
  }
1702
1722
  var init_user_oauth = __esm({
1703
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
1723
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
1704
1724
  "use strict";
1705
1725
  init_credentials();
1706
1726
  init_types();
@@ -1709,7 +1729,7 @@ var init_user_oauth = __esm({
1709
1729
  }
1710
1730
  });
1711
1731
 
1712
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
1732
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
1713
1733
  function resolveCredentialsFromConfig(config, options) {
1714
1734
  const credentialsPath = config.authentication.credentials_path ?? null;
1715
1735
  const effectiveBaseURL = (config.base_url || options.baseURL).replace(/\/+$/, "");
@@ -1841,7 +1861,7 @@ function cachedExchangeProvider(exchange, credentialsPath, onCacheWriteError, on
1841
1861
  };
1842
1862
  }
1843
1863
  var init_credential_chain = __esm({
1844
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
1864
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
1845
1865
  "use strict";
1846
1866
  init_env();
1847
1867
  init_credentials();
@@ -1853,7 +1873,7 @@ var init_credential_chain = __esm({
1853
1873
  }
1854
1874
  });
1855
1875
 
1856
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
1876
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
1857
1877
  function findNewlineIndex(buffer, startIndex) {
1858
1878
  const newline = 10;
1859
1879
  const carriage = 13;
@@ -1885,7 +1905,7 @@ function findDoubleNewlineIndex(buffer) {
1885
1905
  }
1886
1906
  var _LineDecoder_buffer, _LineDecoder_carriageReturnIndex, LineDecoder;
1887
1907
  var init_line = __esm({
1888
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
1908
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
1889
1909
  "use strict";
1890
1910
  init_tslib();
1891
1911
  init_bytes();
@@ -1936,7 +1956,7 @@ var init_line = __esm({
1936
1956
  }
1937
1957
  });
1938
1958
 
1939
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs
1959
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs
1940
1960
  async function* _iterSSEMessages(response, controller) {
1941
1961
  if (!response.body) {
1942
1962
  controller.abort();
@@ -1991,7 +2011,7 @@ function partition(str, delimiter2) {
1991
2011
  }
1992
2012
  var _Stream_client, Stream, SSEDecoder;
1993
2013
  var init_streaming = __esm({
1994
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
2014
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
1995
2015
  "use strict";
1996
2016
  init_tslib();
1997
2017
  init_error();
@@ -2010,6 +2030,17 @@ var init_streaming = __esm({
2010
2030
  this.controller = controller;
2011
2031
  __classPrivateFieldSet(this, _Stream_client, client, "f");
2012
2032
  }
2033
+ /**
2034
+ * Iterate the raw Server-Sent Events from `response` — `{event, data, raw}`
2035
+ * objects, before any JSON parsing or event-name filtering.
2036
+ *
2037
+ * This reads `response.body` directly (not a clone), so the response is
2038
+ * consumed. Use this in middleware that fully replaces the stream body; for
2039
+ * read-only observation of parsed events, use `ctx.parse()` instead.
2040
+ */
2041
+ static rawEvents(response, controller = new AbortController()) {
2042
+ return _iterSSEMessages(response, controller);
2043
+ }
2013
2044
  static fromSSEResponse(response, controller, client) {
2014
2045
  let consumed = false;
2015
2046
  const logger = client ? loggerFor(client) : console;
@@ -2202,15 +2233,12 @@ var init_streaming = __esm({
2202
2233
  }
2203
2234
  });
2204
2235
 
2205
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2236
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2206
2237
  async function defaultParseResponse(client, props) {
2207
2238
  const { response, requestLogID, retryOfRequestLogID, startTime } = props;
2208
2239
  const body = await (async () => {
2209
2240
  if (props.options.stream) {
2210
2241
  loggerFor(client).debug("response", response.status, response.url, response.headers, response.body);
2211
- if (props.options.__streamClass) {
2212
- return props.options.__streamClass.fromSSEResponse(response, props.controller);
2213
- }
2214
2242
  return Stream.fromSSEResponse(response, props.controller);
2215
2243
  }
2216
2244
  if (response.status === 204) {
@@ -2252,17 +2280,124 @@ function addRequestID(value, response) {
2252
2280
  });
2253
2281
  }
2254
2282
  var init_parse = __esm({
2255
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2283
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2256
2284
  "use strict";
2257
2285
  init_streaming();
2258
2286
  init_log();
2259
2287
  }
2260
2288
  });
2261
2289
 
2262
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2290
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/middleware.mjs
2291
+ function isFetchOriginError(err) {
2292
+ return typeof err === "object" && err !== null && fetchOriginErrors.has(err);
2293
+ }
2294
+ function isRetryableError(err) {
2295
+ const seen = /* @__PURE__ */ new Set();
2296
+ while (typeof err === "object" && err !== null && !seen.has(err)) {
2297
+ seen.add(err);
2298
+ if (isFetchOriginError(err) || isAbortError(err) || err instanceof APIConnectionError || err instanceof RetryableError) {
2299
+ return true;
2300
+ }
2301
+ err = err.cause;
2302
+ }
2303
+ return false;
2304
+ }
2305
+ function wrapFetchWithMiddleware(fetchFn, middleware, options, client) {
2306
+ return async (url, init = {}) => {
2307
+ if (middleware.length === 0) {
2308
+ return fetchFn.call(void 0, url, init);
2309
+ }
2310
+ const headers = init.headers instanceof Headers ? init.headers : new Headers(init.headers);
2311
+ const response = await applyMiddleware(fetchFn, middleware, options, client)({
2312
+ ...init,
2313
+ headers,
2314
+ url: typeof url === "string" ? url : url instanceof URL ? url.href : url.url
2315
+ });
2316
+ if (response.bodyUsed || response.body?.locked) {
2317
+ throw new AnthropicError("middleware consumed the response body; use response.clone() to inspect it, or return new Response(body, response) to consume and replace it");
2318
+ }
2319
+ return response;
2320
+ };
2321
+ }
2322
+ function createMiddlewareContext(options, client) {
2323
+ const cache = /* @__PURE__ */ new WeakMap();
2324
+ return {
2325
+ options,
2326
+ // Resolved per chain, so changes to the client's `logLevel`/`logger`
2327
+ // apply to subsequent requests.
2328
+ logger: client ? loggerFor(client) : defaultLogger(),
2329
+ parse(response) {
2330
+ if (options?.stream && response.ok) {
2331
+ return parseMiddlewareResponse(response, options);
2332
+ }
2333
+ let parsed = cache.get(response);
2334
+ if (!parsed) {
2335
+ parsed = parseMiddlewareResponse(response, options);
2336
+ cache.set(response, parsed);
2337
+ }
2338
+ return parsed;
2339
+ }
2340
+ };
2341
+ }
2342
+ async function parseMiddlewareResponse(response, options) {
2343
+ if (response.bodyUsed || response.body?.locked) {
2344
+ throw new AnthropicError("cannot ctx.parse() a response whose body was already consumed; call ctx.parse() instead of reading the body, or read via response.clone()");
2345
+ }
2346
+ if (options?.stream && response.ok) {
2347
+ return Stream.fromSSEResponse(response.clone(), new AbortController());
2348
+ }
2349
+ if (response.status === 204) {
2350
+ return null;
2351
+ }
2352
+ if (options?.__binaryResponse) {
2353
+ return response;
2354
+ }
2355
+ const contentType = response.headers.get("content-type");
2356
+ const mediaType = contentType?.split(";")[0]?.trim();
2357
+ const isJSON = mediaType?.includes("application/json") || mediaType?.endsWith("+json");
2358
+ if (isJSON) {
2359
+ if (response.headers.get("content-length") === "0") {
2360
+ return void 0;
2361
+ }
2362
+ return addRequestID(await response.clone().json(), response);
2363
+ }
2364
+ return await response.clone().text();
2365
+ }
2366
+ function applyMiddleware(fetchFn, middleware, options, client) {
2367
+ let next = async ({ url, ...init }) => {
2368
+ try {
2369
+ return await fetchFn.call(void 0, url, init);
2370
+ } catch (err) {
2371
+ const error = castToError(err);
2372
+ fetchOriginErrors.add(error);
2373
+ throw error;
2374
+ }
2375
+ };
2376
+ const ctx = createMiddlewareContext(options, client);
2377
+ for (let i = middleware.length - 1; i >= 0; i--) {
2378
+ const mw = middleware[i];
2379
+ const nextInner = next;
2380
+ next = async (request) => mw(request, nextInner, ctx);
2381
+ }
2382
+ return next;
2383
+ }
2384
+ var fetchOriginErrors;
2385
+ var init_middleware = __esm({
2386
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/middleware.mjs"() {
2387
+ "use strict";
2388
+ init_errors();
2389
+ init_parse();
2390
+ init_log();
2391
+ init_error();
2392
+ init_streaming();
2393
+ fetchOriginErrors = /* @__PURE__ */ new WeakSet();
2394
+ }
2395
+ });
2396
+
2397
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2263
2398
  var _APIPromise_client, APIPromise;
2264
2399
  var init_api_promise = __esm({
2265
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2400
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2266
2401
  "use strict";
2267
2402
  init_tslib();
2268
2403
  init_parse();
@@ -2329,10 +2464,10 @@ var init_api_promise = __esm({
2329
2464
  }
2330
2465
  });
2331
2466
 
2332
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2467
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2333
2468
  var _AbstractPage_client, AbstractPage, PagePromise, Page, PageCursor;
2334
2469
  var init_pagination = __esm({
2335
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2470
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2336
2471
  "use strict";
2337
2472
  init_tslib();
2338
2473
  init_error();
@@ -2464,7 +2599,7 @@ var init_pagination = __esm({
2464
2599
  }
2465
2600
  });
2466
2601
 
2467
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
2602
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
2468
2603
  function makeFile(fileBits, fileName, options) {
2469
2604
  checkFileSupport();
2470
2605
  return new File(fileBits, fileName ?? "unknown_file", options);
@@ -2495,7 +2630,7 @@ function supportsFormData(fetchObject) {
2495
2630
  }
2496
2631
  var checkFileSupport, isAsyncIterable, multipartFormRequestOptions, supportsFormDataMap, createForm, isNamedBlob, addFormValue;
2497
2632
  var init_uploads = __esm({
2498
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
2633
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
2499
2634
  "use strict";
2500
2635
  init_shims();
2501
2636
  checkFileSupport = () => {
@@ -2549,7 +2684,7 @@ var init_uploads = __esm({
2549
2684
  }
2550
2685
  });
2551
2686
 
2552
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
2687
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
2553
2688
  async function toFile(value, name, options) {
2554
2689
  checkFileSupport();
2555
2690
  value = await value;
@@ -2603,7 +2738,7 @@ function propsForError(value) {
2603
2738
  }
2604
2739
  var isBlobLike, isFileLike, isResponseLike;
2605
2740
  var init_to_file = __esm({
2606
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
2741
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
2607
2742
  "use strict";
2608
2743
  init_uploads();
2609
2744
  init_uploads();
@@ -2613,25 +2748,25 @@ var init_to_file = __esm({
2613
2748
  }
2614
2749
  });
2615
2750
 
2616
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs
2751
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs
2617
2752
  var init_uploads2 = __esm({
2618
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
2753
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
2619
2754
  "use strict";
2620
2755
  init_to_file();
2621
2756
  }
2622
2757
  });
2623
2758
 
2624
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs
2759
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs
2625
2760
  var init_shared = __esm({
2626
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
2761
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
2627
2762
  "use strict";
2628
2763
  }
2629
2764
  });
2630
2765
 
2631
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs
2766
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs
2632
2767
  var APIResource;
2633
2768
  var init_resource = __esm({
2634
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
2769
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
2635
2770
  "use strict";
2636
2771
  APIResource = class {
2637
2772
  constructor(client) {
@@ -2641,7 +2776,7 @@ var init_resource = __esm({
2641
2776
  }
2642
2777
  });
2643
2778
 
2644
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs
2779
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs
2645
2780
  function* iterateHeaders(headers) {
2646
2781
  if (!headers)
2647
2782
  return;
@@ -2682,7 +2817,7 @@ function* iterateHeaders(headers) {
2682
2817
  }
2683
2818
  var brand_privateNullableHeaders, buildHeaders;
2684
2819
  var init_headers = __esm({
2685
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
2820
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
2686
2821
  "use strict";
2687
2822
  init_values();
2688
2823
  brand_privateNullableHeaders = Symbol.for("brand.privateNullableHeaders");
@@ -2711,62 +2846,13 @@ var init_headers = __esm({
2711
2846
  }
2712
2847
  });
2713
2848
 
2714
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs
2715
- function wasCreatedByStainlessHelper(value) {
2716
- return typeof value === "object" && value !== null && SDK_HELPER_SYMBOL in value;
2717
- }
2718
- function collectStainlessHelpers(tools, messages) {
2719
- const helpers = /* @__PURE__ */ new Set();
2720
- if (tools) {
2721
- for (const tool of tools) {
2722
- if (wasCreatedByStainlessHelper(tool)) {
2723
- helpers.add(tool[SDK_HELPER_SYMBOL]);
2724
- }
2725
- }
2726
- }
2727
- if (messages) {
2728
- for (const message of messages) {
2729
- if (wasCreatedByStainlessHelper(message)) {
2730
- helpers.add(message[SDK_HELPER_SYMBOL]);
2731
- }
2732
- if (Array.isArray(message.content)) {
2733
- for (const block of message.content) {
2734
- if (wasCreatedByStainlessHelper(block)) {
2735
- helpers.add(block[SDK_HELPER_SYMBOL]);
2736
- }
2737
- }
2738
- }
2739
- }
2740
- }
2741
- return Array.from(helpers);
2742
- }
2743
- function stainlessHelperHeader(tools, messages) {
2744
- const helpers = collectStainlessHelpers(tools, messages);
2745
- if (helpers.length === 0)
2746
- return {};
2747
- return { "x-stainless-helper": helpers.join(", ") };
2748
- }
2749
- function stainlessHelperHeaderFromFile(file) {
2750
- if (wasCreatedByStainlessHelper(file)) {
2751
- return { "x-stainless-helper": file[SDK_HELPER_SYMBOL] };
2752
- }
2753
- return {};
2754
- }
2755
- var SDK_HELPER_SYMBOL;
2756
- var init_stainless_helper_header = __esm({
2757
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs"() {
2758
- "use strict";
2759
- SDK_HELPER_SYMBOL = Symbol("anthropic.sdk.stainlessHelper");
2760
- }
2761
- });
2762
-
2763
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
2849
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
2764
2850
  function encodeURIPath(str) {
2765
2851
  return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
2766
2852
  }
2767
2853
  var EMPTY, createPathTagFunction, path;
2768
2854
  var init_path = __esm({
2769
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
2855
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
2770
2856
  "use strict";
2771
2857
  init_error();
2772
2858
  EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
@@ -2822,10 +2908,302 @@ ${underline}`);
2822
2908
  }
2823
2909
  });
2824
2910
 
2825
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
2911
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
2912
+ var DeploymentRuns;
2913
+ var init_deployment_runs = __esm({
2914
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs"() {
2915
+ "use strict";
2916
+ init_resource();
2917
+ init_pagination();
2918
+ init_headers();
2919
+ init_path();
2920
+ DeploymentRuns = class extends APIResource {
2921
+ /**
2922
+ * Get Deployment Run
2923
+ *
2924
+ * @example
2925
+ * ```ts
2926
+ * const betaManagedAgentsDeploymentRun =
2927
+ * await client.beta.deploymentRuns.retrieve(
2928
+ * 'deployment_run_id',
2929
+ * );
2930
+ * ```
2931
+ */
2932
+ retrieve(deploymentRunID, params = {}, options) {
2933
+ const { betas } = params ?? {};
2934
+ return this._client.get(path`/v1/deployment_runs/${deploymentRunID}?beta=true`, {
2935
+ ...options,
2936
+ headers: buildHeaders([
2937
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
2938
+ options?.headers
2939
+ ])
2940
+ });
2941
+ }
2942
+ /**
2943
+ * List Deployment Runs
2944
+ *
2945
+ * @example
2946
+ * ```ts
2947
+ * // Automatically fetches more pages as needed.
2948
+ * for await (const betaManagedAgentsDeploymentRun of client.beta.deploymentRuns.list()) {
2949
+ * // ...
2950
+ * }
2951
+ * ```
2952
+ */
2953
+ list(params = {}, options) {
2954
+ const { betas, ...query } = params ?? {};
2955
+ return this._client.getAPIList("/v1/deployment_runs?beta=true", PageCursor, {
2956
+ query,
2957
+ ...options,
2958
+ headers: buildHeaders([
2959
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
2960
+ options?.headers
2961
+ ])
2962
+ });
2963
+ }
2964
+ };
2965
+ }
2966
+ });
2967
+
2968
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
2969
+ var Deployments;
2970
+ var init_deployments = __esm({
2971
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs"() {
2972
+ "use strict";
2973
+ init_resource();
2974
+ init_pagination();
2975
+ init_headers();
2976
+ init_path();
2977
+ Deployments = class extends APIResource {
2978
+ /**
2979
+ * Create Deployment
2980
+ *
2981
+ * @example
2982
+ * ```ts
2983
+ * const betaManagedAgentsDeployment =
2984
+ * await client.beta.deployments.create({
2985
+ * agent: 'string',
2986
+ * environment_id: 'x',
2987
+ * initial_events: [
2988
+ * {
2989
+ * content: [
2990
+ * {
2991
+ * text: 'Where is my order #1234?',
2992
+ * type: 'text',
2993
+ * },
2994
+ * ],
2995
+ * type: 'user.message',
2996
+ * },
2997
+ * ],
2998
+ * name: 'x',
2999
+ * });
3000
+ * ```
3001
+ */
3002
+ create(params, options) {
3003
+ const { betas, ...body } = params;
3004
+ return this._client.post("/v1/deployments?beta=true", {
3005
+ body,
3006
+ ...options,
3007
+ headers: buildHeaders([
3008
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3009
+ options?.headers
3010
+ ])
3011
+ });
3012
+ }
3013
+ /**
3014
+ * Get Deployment
3015
+ *
3016
+ * @example
3017
+ * ```ts
3018
+ * const betaManagedAgentsDeployment =
3019
+ * await client.beta.deployments.retrieve('deployment_id');
3020
+ * ```
3021
+ */
3022
+ retrieve(deploymentID, params = {}, options) {
3023
+ const { betas } = params ?? {};
3024
+ return this._client.get(path`/v1/deployments/${deploymentID}?beta=true`, {
3025
+ ...options,
3026
+ headers: buildHeaders([
3027
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3028
+ options?.headers
3029
+ ])
3030
+ });
3031
+ }
3032
+ /**
3033
+ * Update Deployment
3034
+ *
3035
+ * @example
3036
+ * ```ts
3037
+ * const betaManagedAgentsDeployment =
3038
+ * await client.beta.deployments.update('deployment_id');
3039
+ * ```
3040
+ */
3041
+ update(deploymentID, params, options) {
3042
+ const { betas, ...body } = params;
3043
+ return this._client.post(path`/v1/deployments/${deploymentID}?beta=true`, {
3044
+ body,
3045
+ ...options,
3046
+ headers: buildHeaders([
3047
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3048
+ options?.headers
3049
+ ])
3050
+ });
3051
+ }
3052
+ /**
3053
+ * List Deployments
3054
+ *
3055
+ * @example
3056
+ * ```ts
3057
+ * // Automatically fetches more pages as needed.
3058
+ * for await (const betaManagedAgentsDeployment of client.beta.deployments.list()) {
3059
+ * // ...
3060
+ * }
3061
+ * ```
3062
+ */
3063
+ list(params = {}, options) {
3064
+ const { betas, ...query } = params ?? {};
3065
+ return this._client.getAPIList("/v1/deployments?beta=true", PageCursor, {
3066
+ query,
3067
+ ...options,
3068
+ headers: buildHeaders([
3069
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3070
+ options?.headers
3071
+ ])
3072
+ });
3073
+ }
3074
+ /**
3075
+ * Archive Deployment
3076
+ *
3077
+ * @example
3078
+ * ```ts
3079
+ * const betaManagedAgentsDeployment =
3080
+ * await client.beta.deployments.archive('deployment_id');
3081
+ * ```
3082
+ */
3083
+ archive(deploymentID, params = {}, options) {
3084
+ const { betas } = params ?? {};
3085
+ return this._client.post(path`/v1/deployments/${deploymentID}/archive?beta=true`, {
3086
+ ...options,
3087
+ headers: buildHeaders([
3088
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3089
+ options?.headers
3090
+ ])
3091
+ });
3092
+ }
3093
+ /**
3094
+ * Pause Deployment
3095
+ *
3096
+ * @example
3097
+ * ```ts
3098
+ * const betaManagedAgentsDeployment =
3099
+ * await client.beta.deployments.pause('deployment_id');
3100
+ * ```
3101
+ */
3102
+ pause(deploymentID, params = {}, options) {
3103
+ const { betas } = params ?? {};
3104
+ return this._client.post(path`/v1/deployments/${deploymentID}/pause?beta=true`, {
3105
+ ...options,
3106
+ headers: buildHeaders([
3107
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3108
+ options?.headers
3109
+ ])
3110
+ });
3111
+ }
3112
+ /**
3113
+ * Run Deployment Now
3114
+ *
3115
+ * @example
3116
+ * ```ts
3117
+ * const betaManagedAgentsDeploymentRun =
3118
+ * await client.beta.deployments.run('deployment_id');
3119
+ * ```
3120
+ */
3121
+ run(deploymentID, params = {}, options) {
3122
+ const { betas } = params ?? {};
3123
+ return this._client.post(path`/v1/deployments/${deploymentID}/run?beta=true`, {
3124
+ ...options,
3125
+ headers: buildHeaders([
3126
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3127
+ options?.headers
3128
+ ])
3129
+ });
3130
+ }
3131
+ /**
3132
+ * Unpause Deployment
3133
+ *
3134
+ * @example
3135
+ * ```ts
3136
+ * const betaManagedAgentsDeployment =
3137
+ * await client.beta.deployments.unpause('deployment_id');
3138
+ * ```
3139
+ */
3140
+ unpause(deploymentID, params = {}, options) {
3141
+ const { betas } = params ?? {};
3142
+ return this._client.post(path`/v1/deployments/${deploymentID}/unpause?beta=true`, {
3143
+ ...options,
3144
+ headers: buildHeaders([
3145
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3146
+ options?.headers
3147
+ ])
3148
+ });
3149
+ }
3150
+ };
3151
+ }
3152
+ });
3153
+
3154
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs
3155
+ function wasCreatedByStainlessHelper(value) {
3156
+ return typeof value === "object" && value !== null && SDK_HELPER_SYMBOL in value;
3157
+ }
3158
+ function collectStainlessHelpers(tools, messages) {
3159
+ const helpers = /* @__PURE__ */ new Set();
3160
+ if (tools) {
3161
+ for (const tool of tools) {
3162
+ if (wasCreatedByStainlessHelper(tool)) {
3163
+ helpers.add(tool[SDK_HELPER_SYMBOL]);
3164
+ }
3165
+ }
3166
+ }
3167
+ if (messages) {
3168
+ for (const message of messages) {
3169
+ if (wasCreatedByStainlessHelper(message)) {
3170
+ helpers.add(message[SDK_HELPER_SYMBOL]);
3171
+ }
3172
+ if (Array.isArray(message.content)) {
3173
+ for (const block of message.content) {
3174
+ if (wasCreatedByStainlessHelper(block)) {
3175
+ helpers.add(block[SDK_HELPER_SYMBOL]);
3176
+ }
3177
+ }
3178
+ }
3179
+ }
3180
+ }
3181
+ return Array.from(helpers);
3182
+ }
3183
+ function stainlessHelperHeader(tools, messages) {
3184
+ const helpers = collectStainlessHelpers(tools, messages);
3185
+ if (helpers.length === 0)
3186
+ return {};
3187
+ return { "x-stainless-helper": helpers.join(", ") };
3188
+ }
3189
+ function stainlessHelperHeaderFromFile(file) {
3190
+ if (wasCreatedByStainlessHelper(file)) {
3191
+ return { "x-stainless-helper": file[SDK_HELPER_SYMBOL] };
3192
+ }
3193
+ return {};
3194
+ }
3195
+ var SDK_HELPER_SYMBOL;
3196
+ var init_stainless_helper_header = __esm({
3197
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs"() {
3198
+ "use strict";
3199
+ SDK_HELPER_SYMBOL = Symbol("anthropic.sdk.stainlessHelper");
3200
+ }
3201
+ });
3202
+
3203
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
2826
3204
  var Files;
2827
3205
  var init_files = __esm({
2828
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
3206
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
2829
3207
  "use strict";
2830
3208
  init_resource();
2831
3209
  init_pagination();
@@ -2948,10 +3326,10 @@ var init_files = __esm({
2948
3326
  }
2949
3327
  });
2950
3328
 
2951
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3329
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
2952
3330
  var Models;
2953
3331
  var init_models = __esm({
2954
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
3332
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
2955
3333
  "use strict";
2956
3334
  init_resource();
2957
3335
  init_pagination();
@@ -3010,10 +3388,10 @@ var init_models = __esm({
3010
3388
  }
3011
3389
  });
3012
3390
 
3013
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
3391
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
3014
3392
  var UserProfiles;
3015
3393
  var init_user_profiles = __esm({
3016
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
3394
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
3017
3395
  "use strict";
3018
3396
  init_resource();
3019
3397
  init_pagination();
@@ -3865,13 +4243,13 @@ var require_dist = __commonJS({
3865
4243
  const computedSignature = this.sign(msgId, timestamp, payload);
3866
4244
  const expectedSignature = computedSignature.split(",")[1];
3867
4245
  const passedSignatures = msgSignature.split(" ");
3868
- const encoder = new globalThis.TextEncoder();
4246
+ const encoder2 = new globalThis.TextEncoder();
3869
4247
  for (const versionedSignature of passedSignatures) {
3870
4248
  const [version, signature] = versionedSignature.split(",");
3871
4249
  if (version !== "v1") {
3872
4250
  continue;
3873
4251
  }
3874
- if ((0, timing_safe_equal_1.timingSafeEqual)(encoder.encode(signature), encoder.encode(expectedSignature))) {
4252
+ if ((0, timing_safe_equal_1.timingSafeEqual)(encoder2.encode(signature), encoder2.encode(expectedSignature))) {
3875
4253
  return JSON.parse(payload.toString());
3876
4254
  }
3877
4255
  }
@@ -3884,9 +4262,9 @@ var require_dist = __commonJS({
3884
4262
  } else {
3885
4263
  throw new Error("Expected payload to be of type string or Buffer.");
3886
4264
  }
3887
- const encoder = new TextEncoder();
4265
+ const encoder2 = new TextEncoder();
3888
4266
  const timestampNumber = Math.floor(timestamp.getTime() / 1e3);
3889
- const toSign = encoder.encode(`${msgId}.${timestampNumber}.${payload}`);
4267
+ const toSign = encoder2.encode(`${msgId}.${timestampNumber}.${payload}`);
3890
4268
  const expectedSignature = base64.encode(sha256.hmac(this.key, toSign));
3891
4269
  return `v1,${expectedSignature}`;
3892
4270
  }
@@ -3910,10 +4288,10 @@ var require_dist = __commonJS({
3910
4288
  }
3911
4289
  });
3912
4290
 
3913
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4291
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
3914
4292
  var import_standardwebhooks, Webhooks;
3915
4293
  var init_webhooks = __esm({
3916
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
4294
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
3917
4295
  "use strict";
3918
4296
  init_resource();
3919
4297
  import_standardwebhooks = __toESM(require_dist(), 1);
@@ -3932,10 +4310,10 @@ var init_webhooks = __esm({
3932
4310
  }
3933
4311
  });
3934
4312
 
3935
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4313
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
3936
4314
  var Versions;
3937
4315
  var init_versions = __esm({
3938
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
4316
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
3939
4317
  "use strict";
3940
4318
  init_resource();
3941
4319
  init_pagination();
@@ -3970,10 +4348,10 @@ var init_versions = __esm({
3970
4348
  }
3971
4349
  });
3972
4350
 
3973
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
4351
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
3974
4352
  var Agents;
3975
4353
  var init_agents = __esm({
3976
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
4354
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
3977
4355
  "use strict";
3978
4356
  init_resource();
3979
4357
  init_versions();
@@ -4102,7 +4480,7 @@ var init_agents = __esm({
4102
4480
  }
4103
4481
  });
4104
4482
 
4105
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
4483
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
4106
4484
  function linkAbort(external, controller) {
4107
4485
  if (!external)
4108
4486
  return () => {
@@ -4117,12 +4495,12 @@ function linkAbort(external, controller) {
4117
4495
  return () => external.removeEventListener("abort", onAbort);
4118
4496
  }
4119
4497
  var init_abort = __esm({
4120
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
4498
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
4121
4499
  "use strict";
4122
4500
  }
4123
4501
  });
4124
4502
 
4125
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
4503
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
4126
4504
  function isStatus(e, code) {
4127
4505
  return e instanceof APIError && e.status === code;
4128
4506
  }
@@ -4142,13 +4520,13 @@ function applyJitter(ms) {
4142
4520
  return ms * (1 - Math.random() * 0.25);
4143
4521
  }
4144
4522
  var init_backoff = __esm({
4145
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
4523
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
4146
4524
  "use strict";
4147
4525
  init_error();
4148
4526
  }
4149
4527
  });
4150
4528
 
4151
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
4529
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
4152
4530
  function copyClientForHelper(client, { authToken, helper }) {
4153
4531
  if (!authToken) {
4154
4532
  throw new AnthropicError(`copyClientForHelper: expected a non-empty authToken but received ${JSON.stringify(authToken)}`);
@@ -4174,14 +4552,14 @@ function copyClientForHelper(client, { authToken, helper }) {
4174
4552
  });
4175
4553
  }
4176
4554
  var init_helper_client = __esm({
4177
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
4555
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
4178
4556
  "use strict";
4179
4557
  init_error();
4180
4558
  init_headers();
4181
4559
  }
4182
4560
  });
4183
4561
 
4184
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
4562
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
4185
4563
  function backoff2(attempt) {
4186
4564
  return backoff(attempt, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS);
4187
4565
  }
@@ -4192,7 +4570,7 @@ function defaultWorkerId() {
4192
4570
  }
4193
4571
  var _WorkPoller_runnerClient, _WorkPoller_consumed, _WorkPoller_controller, _WorkPoller_detachExternal, _WorkPoller_autoStop, _WorkPoller_drain, _WorkPoller_blockMs, _WorkPoller_reclaimOlderThanMs, _WorkPoller_requestOpts, POLL_BLOCK_MS, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS, WorkPoller;
4194
4572
  var init_poller = __esm({
4195
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
4573
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
4196
4574
  "use strict";
4197
4575
  init_tslib();
4198
4576
  init_error();
@@ -4315,10 +4693,10 @@ var init_poller = __esm({
4315
4693
  }
4316
4694
  });
4317
4695
 
4318
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
4696
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
4319
4697
  var _AsyncQueue_items, _AsyncQueue_waiters, _AsyncQueue_closed, AsyncQueue;
4320
4698
  var init_async_queue = __esm({
4321
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
4699
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
4322
4700
  "use strict";
4323
4701
  init_tslib();
4324
4702
  AsyncQueue = class {
@@ -4385,10 +4763,10 @@ var init_async_queue = __esm({
4385
4763
  }
4386
4764
  });
4387
4765
 
4388
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
4766
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
4389
4767
  var ToolError;
4390
4768
  var init_ToolError = __esm({
4391
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
4769
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
4392
4770
  "use strict";
4393
4771
  ToolError = class extends Error {
4394
4772
  constructor(content) {
@@ -4405,7 +4783,7 @@ var init_ToolError = __esm({
4405
4783
  }
4406
4784
  });
4407
4785
 
4408
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
4786
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
4409
4787
  function toolName(tool) {
4410
4788
  return "name" in tool ? tool.name : tool.mcp_server_name;
4411
4789
  }
@@ -4422,13 +4800,13 @@ async function runRunnableTool(tool, rawInput, context) {
4422
4800
  }
4423
4801
  }
4424
4802
  var init_BetaRunnableTool = __esm({
4425
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
4803
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
4426
4804
  "use strict";
4427
4805
  init_ToolError();
4428
4806
  }
4429
4807
  });
4430
4808
 
4431
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
4809
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
4432
4810
  function isEndTurnIdle(ev) {
4433
4811
  return ev.type === "session.status_idle" && ev.stop_reason?.type === "end_turn";
4434
4812
  }
@@ -4461,7 +4839,7 @@ function toSessionContent(content) {
4461
4839
  }
4462
4840
  var _SessionToolRunner_instances, _SessionToolRunner_consumed, _SessionToolRunner_controller, _SessionToolRunner_detachExternal, _SessionToolRunner_requestOpts, _SessionToolRunner_toolByName, _SessionToolRunner_logger, _SessionToolRunner_seen, _SessionToolRunner_answered, _SessionToolRunner_results, _SessionToolRunner_inFlightCount, _SessionToolRunner_onIdle, _SessionToolRunner_idleTimer, _SessionToolRunner_requestOptions, _SessionToolRunner_streamLoop, _SessionToolRunner_reconcile, _SessionToolRunner_ingestHistory, _SessionToolRunner_handleStreamEvent, _SessionToolRunner_armIdleTimer, _SessionToolRunner_disarmIdleTimer, _SessionToolRunner_execute, _SessionToolRunner_sendResult, _SessionToolRunner_drain, HELPER_NAME, STREAM_BACKOFF_START_MS, STREAM_BACKOFF_CAP_MS, TOOL_TIMEOUT_MS, DRAIN_TIMEOUT_MS, SEND_RETRIES, DEFAULT_MAX_IDLE_MS, SessionToolRunner;
4463
4841
  var init_SessionToolRunner = __esm({
4464
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
4842
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
4465
4843
  "use strict";
4466
4844
  init_tslib();
4467
4845
  init_error();
@@ -4772,15 +5150,15 @@ var init_SessionToolRunner = __esm({
4772
5150
  }
4773
5151
  });
4774
5152
 
4775
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
5153
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
4776
5154
  var init_transform_json_schema = __esm({
4777
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
5155
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
4778
5156
  "use strict";
4779
5157
  init_utils2();
4780
5158
  }
4781
5159
  });
4782
5160
 
4783
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
5161
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
4784
5162
  function betaTool(options) {
4785
5163
  if (options.inputSchema.type !== "object") {
4786
5164
  throw new Error(`JSON schema for tool "${options.name}" must be an object, but got ${options.inputSchema.type}`);
@@ -4796,14 +5174,14 @@ function betaTool(options) {
4796
5174
  };
4797
5175
  }
4798
5176
  var init_json_schema = __esm({
4799
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
5177
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
4800
5178
  "use strict";
4801
5179
  init_sdk();
4802
5180
  init_transform_json_schema();
4803
5181
  }
4804
5182
  });
4805
5183
 
4806
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
5184
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
4807
5185
  function promiseWithResolvers() {
4808
5186
  let resolve4;
4809
5187
  let reject;
@@ -4814,12 +5192,12 @@ function promiseWithResolvers() {
4814
5192
  return { promise, resolve: resolve4, reject };
4815
5193
  }
4816
5194
  var init_promise = __esm({
4817
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
5195
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
4818
5196
  "use strict";
4819
5197
  }
4820
5198
  });
4821
5199
 
4822
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
5200
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
4823
5201
  import * as fs from "fs/promises";
4824
5202
  import * as path2 from "path";
4825
5203
  import { randomUUID } from "crypto";
@@ -4923,7 +5301,7 @@ function fsErrorMessage(err, file) {
4923
5301
  }
4924
5302
  var DIR_CREATE_MODE, FILE_CREATE_MODE;
4925
5303
  var init_fs_util = __esm({
4926
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
5304
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
4927
5305
  "use strict";
4928
5306
  init_ToolError();
4929
5307
  DIR_CREATE_MODE = 493;
@@ -4931,7 +5309,7 @@ var init_fs_util = __esm({
4931
5309
  }
4932
5310
  });
4933
5311
 
4934
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
5312
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
4935
5313
  import * as fs2 from "fs/promises";
4936
5314
  import * as fssync from "fs";
4937
5315
  import * as path3 from "path";
@@ -5088,7 +5466,7 @@ async function readHead(file, n) {
5088
5466
  }
5089
5467
  var execFileAsync;
5090
5468
  var init_skills = __esm({
5091
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
5469
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
5092
5470
  "use strict";
5093
5471
  init_error();
5094
5472
  init_log();
@@ -5097,7 +5475,7 @@ var init_skills = __esm({
5097
5475
  }
5098
5476
  });
5099
5477
 
5100
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
5478
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
5101
5479
  var node_exports = {};
5102
5480
  __export(node_exports, {
5103
5481
  BashSession: () => BashSession,
@@ -5543,7 +5921,7 @@ async function findRg() {
5543
5921
  }
5544
5922
  var _BashSession_instances, _BashSession_proc, _BashSession_buf, _BashSession_truncated, _BashSession_closed, _BashSession_waiting, _BashSession_append, BASH_OUTPUT_LIMIT, BASH_DEFAULT_TIMEOUT_MS, DEFAULT_MAX_FILE_BYTES, GREP_OUTPUT_LIMIT, GREP_MAX_LINE_LENGTH, GLOB_RESULT_LIMIT, ANSI_RE, fsGlob, BashSession, WALK_MAX_DEPTH, WALK_MAX_ENTRIES;
5545
5923
  var init_node = __esm({
5546
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
5924
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
5547
5925
  "use strict";
5548
5926
  init_tslib();
5549
5927
  init_error();
@@ -5686,7 +6064,7 @@ ${out}`;
5686
6064
  }
5687
6065
  });
5688
6066
 
5689
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
6067
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
5690
6068
  async function forceStop(client, work, log, requestOptions) {
5691
6069
  try {
5692
6070
  await client.beta.environments.work.stop(
@@ -5740,7 +6118,7 @@ async function heartbeatLoop(client, work, ctrl, logger, requestOptions) {
5740
6118
  }
5741
6119
  var _EnvironmentWorker_instances, _EnvironmentWorker_signal, _EnvironmentWorker_handleItem, HEARTBEAT_DEFAULT_MS, NO_HEARTBEAT_SENTINEL, EnvironmentWorker;
5742
6120
  var init_worker = __esm({
5743
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
6121
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
5744
6122
  "use strict";
5745
6123
  init_tslib();
5746
6124
  init_error();
@@ -5899,10 +6277,10 @@ var init_worker = __esm({
5899
6277
  }
5900
6278
  });
5901
6279
 
5902
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
6280
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
5903
6281
  var Work;
5904
6282
  var init_work = __esm({
5905
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
6283
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
5906
6284
  "use strict";
5907
6285
  init_resource();
5908
6286
  init_pagination();
@@ -6173,10 +6551,10 @@ var init_work = __esm({
6173
6551
  }
6174
6552
  });
6175
6553
 
6176
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
6554
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
6177
6555
  var Environments;
6178
6556
  var init_environments = __esm({
6179
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
6557
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
6180
6558
  "use strict";
6181
6559
  init_resource();
6182
6560
  init_work();
@@ -6324,10 +6702,10 @@ var init_environments = __esm({
6324
6702
  }
6325
6703
  });
6326
6704
 
6327
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
6705
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
6328
6706
  var Memories;
6329
6707
  var init_memories = __esm({
6330
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
6708
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
6331
6709
  "use strict";
6332
6710
  init_resource();
6333
6711
  init_pagination();
@@ -6456,10 +6834,10 @@ var init_memories = __esm({
6456
6834
  }
6457
6835
  });
6458
6836
 
6459
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
6837
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
6460
6838
  var MemoryVersions;
6461
6839
  var init_memory_versions = __esm({
6462
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
6840
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
6463
6841
  "use strict";
6464
6842
  init_resource();
6465
6843
  init_pagination();
@@ -6539,10 +6917,10 @@ var init_memory_versions = __esm({
6539
6917
  }
6540
6918
  });
6541
6919
 
6542
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
6920
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
6543
6921
  var MemoryStores;
6544
6922
  var init_memory_stores = __esm({
6545
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
6923
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
6546
6924
  "use strict";
6547
6925
  init_resource();
6548
6926
  init_memories();
@@ -6685,18 +7063,18 @@ var init_memory_stores = __esm({
6685
7063
  }
6686
7064
  });
6687
7065
 
6688
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs
7066
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs
6689
7067
  var init_error2 = __esm({
6690
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs"() {
7068
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs"() {
6691
7069
  "use strict";
6692
7070
  init_error();
6693
7071
  }
6694
7072
  });
6695
7073
 
6696
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
7074
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
6697
7075
  var JSONLDecoder;
6698
7076
  var init_jsonl = __esm({
6699
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
7077
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
6700
7078
  "use strict";
6701
7079
  init_error();
6702
7080
  init_shims();
@@ -6734,10 +7112,10 @@ var init_jsonl = __esm({
6734
7112
  }
6735
7113
  });
6736
7114
 
6737
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
7115
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
6738
7116
  var Batches;
6739
7117
  var init_batches = __esm({
6740
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
7118
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
6741
7119
  "use strict";
6742
7120
  init_resource();
6743
7121
  init_pagination();
@@ -6938,10 +7316,10 @@ var init_batches = __esm({
6938
7316
  }
6939
7317
  });
6940
7318
 
6941
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs
7319
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs
6942
7320
  var MODEL_NONSTREAMING_TOKENS;
6943
7321
  var init_constants = __esm({
6944
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
7322
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
6945
7323
  "use strict";
6946
7324
  MODEL_NONSTREAMING_TOKENS = {
6947
7325
  "claude-opus-4-20250514": 8192,
@@ -6956,7 +7334,7 @@ var init_constants = __esm({
6956
7334
  }
6957
7335
  });
6958
7336
 
6959
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
7337
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
6960
7338
  function getOutputFormat(params) {
6961
7339
  return params?.output_format ?? params?.output_config?.format;
6962
7340
  }
@@ -7029,16 +7407,24 @@ function parseBetaOutputFormat(params, content) {
7029
7407
  }
7030
7408
  }
7031
7409
  var init_beta_parser = __esm({
7032
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
7410
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
7033
7411
  "use strict";
7034
7412
  init_error();
7035
7413
  }
7036
7414
  });
7037
7415
 
7038
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
7416
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs
7417
+ var init_streaming2 = __esm({
7418
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
7419
+ "use strict";
7420
+ init_streaming();
7421
+ }
7422
+ });
7423
+
7424
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
7039
7425
  var tokenize, strip, unstrip, generate, partialParse;
7040
7426
  var init_parser = __esm({
7041
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
7427
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
7042
7428
  "use strict";
7043
7429
  tokenize = (input) => {
7044
7430
  let current = 0;
@@ -7140,7 +7526,9 @@ var init_parser = __esm({
7140
7526
  value += char;
7141
7527
  char = input[++current];
7142
7528
  }
7143
- while (char && NUMBERS.test(char) || char === ".") {
7529
+ while (char && (NUMBERS.test(char) || char === "." || // exponent marker, e.g. `1e10` or `1.5E-9`
7530
+ char === "e" || char === "E" || // exponent sign, only valid immediately after the exponent marker
7531
+ (char === "-" || char === "+") && (value[value.length - 1] === "e" || value[value.length - 1] === "E"))) {
7144
7532
  value += char;
7145
7533
  char = input[++current];
7146
7534
  }
@@ -7187,7 +7575,7 @@ var init_parser = __esm({
7187
7575
  break;
7188
7576
  case "number":
7189
7577
  let lastCharacterOfLastToken = lastToken.value[lastToken.value.length - 1];
7190
- if (lastCharacterOfLastToken === "." || lastCharacterOfLastToken === "-") {
7578
+ if (lastCharacterOfLastToken === "." || lastCharacterOfLastToken === "-" || lastCharacterOfLastToken === "+" || lastCharacterOfLastToken === "e" || lastCharacterOfLastToken === "E") {
7191
7579
  tokens = tokens.slice(0, tokens.length - 1);
7192
7580
  return strip(tokens);
7193
7581
  }
@@ -7261,31 +7649,54 @@ var init_parser = __esm({
7261
7649
  }
7262
7650
  });
7263
7651
 
7264
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs
7265
- var init_streaming2 = __esm({
7266
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
7652
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
7653
+ function withLazyInput(prev, jsonBuf) {
7654
+ const next = {};
7655
+ for (const key of Object.keys(prev)) {
7656
+ if (key !== "input")
7657
+ next[key] = prev[key];
7658
+ }
7659
+ Object.defineProperty(next, JSON_BUF_PROPERTY, { value: jsonBuf, enumerable: false, writable: true });
7660
+ let input;
7661
+ let parsed = false;
7662
+ Object.defineProperty(next, "input", {
7663
+ enumerable: true,
7664
+ configurable: true,
7665
+ get() {
7666
+ if (!parsed) {
7667
+ input = jsonBuf ? partialParse(jsonBuf) : {};
7668
+ parsed = true;
7669
+ }
7670
+ return input;
7671
+ }
7672
+ });
7673
+ return next;
7674
+ }
7675
+ var JSON_BUF_PROPERTY;
7676
+ var init_message_stream_utils = __esm({
7677
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs"() {
7267
7678
  "use strict";
7268
- init_streaming();
7679
+ init_parser();
7680
+ JSON_BUF_PROPERTY = "__json_buf";
7269
7681
  }
7270
7682
  });
7271
7683
 
7272
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
7684
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
7273
7685
  function tracksToolInput(content) {
7274
7686
  return content.type === "tool_use" || content.type === "server_tool_use" || content.type === "mcp_tool_use";
7275
7687
  }
7276
7688
  function checkNever(x) {
7277
7689
  }
7278
- var _BetaMessageStream_instances, _BetaMessageStream_currentMessageSnapshot, _BetaMessageStream_params, _BetaMessageStream_connectedPromise, _BetaMessageStream_resolveConnectedPromise, _BetaMessageStream_rejectConnectedPromise, _BetaMessageStream_endPromise, _BetaMessageStream_resolveEndPromise, _BetaMessageStream_rejectEndPromise, _BetaMessageStream_listeners, _BetaMessageStream_ended, _BetaMessageStream_errored, _BetaMessageStream_aborted, _BetaMessageStream_catchingPromiseCreated, _BetaMessageStream_response, _BetaMessageStream_request_id, _BetaMessageStream_logger, _BetaMessageStream_getFinalMessage, _BetaMessageStream_getFinalText, _BetaMessageStream_handleError, _BetaMessageStream_beginRequest, _BetaMessageStream_addStreamEvent, _BetaMessageStream_endRequest, _BetaMessageStream_accumulateMessage, JSON_BUF_PROPERTY, BetaMessageStream;
7690
+ var _BetaMessageStream_instances, _BetaMessageStream_currentMessageSnapshot, _BetaMessageStream_params, _BetaMessageStream_connectedPromise, _BetaMessageStream_resolveConnectedPromise, _BetaMessageStream_rejectConnectedPromise, _BetaMessageStream_endPromise, _BetaMessageStream_resolveEndPromise, _BetaMessageStream_rejectEndPromise, _BetaMessageStream_listeners, _BetaMessageStream_ended, _BetaMessageStream_errored, _BetaMessageStream_aborted, _BetaMessageStream_catchingPromiseCreated, _BetaMessageStream_response, _BetaMessageStream_request_id, _BetaMessageStream_logger, _BetaMessageStream_getFinalMessage, _BetaMessageStream_getFinalText, _BetaMessageStream_handleError, _BetaMessageStream_beginRequest, _BetaMessageStream_addStreamEvent, _BetaMessageStream_endRequest, _BetaMessageStream_accumulateMessage, _BetaMessageStream_toolInputParseError, BetaMessageStream;
7279
7691
  var init_BetaMessageStream = __esm({
7280
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
7692
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
7281
7693
  "use strict";
7282
7694
  init_tslib();
7283
- init_parser();
7284
7695
  init_error2();
7285
7696
  init_errors();
7286
7697
  init_streaming2();
7287
7698
  init_beta_parser();
7288
- JSON_BUF_PROPERTY = "__json_buf";
7699
+ init_message_stream_utils();
7289
7700
  BetaMessageStream = class _BetaMessageStream {
7290
7701
  constructor(params, opts) {
7291
7702
  _BetaMessageStream_instances.add(this);
@@ -7642,8 +8053,15 @@ var init_BetaMessageStream = __esm({
7642
8053
  break;
7643
8054
  }
7644
8055
  case "input_json_delta": {
7645
- if (tracksToolInput(content) && content.input) {
7646
- this._emit("inputJson", event.delta.partial_json, content.input);
8056
+ if (tracksToolInput(content) && __classPrivateFieldGet(this, _BetaMessageStream_listeners, "f").inputJson?.length) {
8057
+ let jsonSnapshot;
8058
+ try {
8059
+ jsonSnapshot = content.input;
8060
+ } catch (err) {
8061
+ __classPrivateFieldGet(this, _BetaMessageStream_handleError, "f").call(this, __classPrivateFieldGet(this, _BetaMessageStream_instances, "m", _BetaMessageStream_toolInputParseError).call(this, content, err));
8062
+ break;
8063
+ }
8064
+ this._emit("inputJson", event.delta.partial_json, jsonSnapshot);
7647
8065
  }
7648
8066
  break;
7649
8067
  }
@@ -7715,6 +8133,9 @@ var init_BetaMessageStream = __esm({
7715
8133
  snapshot.container = event.delta.container;
7716
8134
  snapshot.stop_reason = event.delta.stop_reason;
7717
8135
  snapshot.stop_sequence = event.delta.stop_sequence;
8136
+ if (event.delta.stop_details != null) {
8137
+ snapshot.stop_details = event.delta.stop_details;
8138
+ }
7718
8139
  snapshot.usage.output_tokens = event.usage.output_tokens;
7719
8140
  snapshot.context_management = event.context_management;
7720
8141
  if (event.usage.input_tokens != null) {
@@ -7735,6 +8156,9 @@ var init_BetaMessageStream = __esm({
7735
8156
  return snapshot;
7736
8157
  case "content_block_start":
7737
8158
  snapshot.content.push(event.content_block);
8159
+ if (event.content_block.type === "fallback") {
8160
+ snapshot.model = event.content_block.to.model;
8161
+ }
7738
8162
  return snapshot;
7739
8163
  case "content_block_delta": {
7740
8164
  const snapshotContent = snapshot.content.at(event.index);
@@ -7759,23 +8183,8 @@ var init_BetaMessageStream = __esm({
7759
8183
  }
7760
8184
  case "input_json_delta": {
7761
8185
  if (snapshotContent && tracksToolInput(snapshotContent)) {
7762
- let jsonBuf = snapshotContent[JSON_BUF_PROPERTY] || "";
7763
- jsonBuf += event.delta.partial_json;
7764
- const newContent = { ...snapshotContent };
7765
- Object.defineProperty(newContent, JSON_BUF_PROPERTY, {
7766
- value: jsonBuf,
7767
- enumerable: false,
7768
- writable: true
7769
- });
7770
- if (jsonBuf) {
7771
- try {
7772
- newContent.input = partialParse(jsonBuf);
7773
- } catch (err) {
7774
- const error = new AnthropicError(`Unable to parse tool parameter JSON from model. Please retry your request or adjust your prompt. Error: ${err}. JSON: ${jsonBuf}`);
7775
- __classPrivateFieldGet(this, _BetaMessageStream_handleError, "f").call(this, error);
7776
- }
7777
- }
7778
- snapshot.content[event.index] = newContent;
8186
+ const jsonBuf = (snapshotContent[JSON_BUF_PROPERTY] || "") + event.delta.partial_json;
8187
+ snapshot.content[event.index] = withLazyInput(snapshotContent, jsonBuf);
7779
8188
  }
7780
8189
  break;
7781
8190
  }
@@ -7801,7 +8210,8 @@ var init_BetaMessageStream = __esm({
7801
8210
  if (snapshotContent?.type === "compaction") {
7802
8211
  snapshot.content[event.index] = {
7803
8212
  ...snapshotContent,
7804
- content: (snapshotContent.content || "") + event.delta.content
8213
+ content: (snapshotContent.content || "") + event.delta.content,
8214
+ encrypted_content: event.delta.encrypted_content
7805
8215
  };
7806
8216
  }
7807
8217
  break;
@@ -7811,9 +8221,29 @@ var init_BetaMessageStream = __esm({
7811
8221
  }
7812
8222
  return snapshot;
7813
8223
  }
7814
- case "content_block_stop":
8224
+ case "content_block_stop": {
8225
+ const snapshotContent = snapshot.content.at(event.index);
8226
+ if (snapshotContent && tracksToolInput(snapshotContent) && JSON_BUF_PROPERTY in snapshotContent) {
8227
+ let input;
8228
+ try {
8229
+ input = snapshotContent.input;
8230
+ } catch (err) {
8231
+ input = {};
8232
+ __classPrivateFieldGet(this, _BetaMessageStream_handleError, "f").call(this, __classPrivateFieldGet(this, _BetaMessageStream_instances, "m", _BetaMessageStream_toolInputParseError).call(this, snapshotContent, err));
8233
+ }
8234
+ Object.defineProperty(snapshotContent, "input", {
8235
+ value: input,
8236
+ enumerable: true,
8237
+ configurable: true,
8238
+ writable: true
8239
+ });
8240
+ }
7815
8241
  return snapshot;
8242
+ }
7816
8243
  }
8244
+ }, _BetaMessageStream_toolInputParseError = function _BetaMessageStream_toolInputParseError2(block, err) {
8245
+ const jsonBuf = block[JSON_BUF_PROPERTY];
8246
+ return new AnthropicError(`Unable to parse tool parameter JSON from model. Please retry your request or adjust your prompt. Error: ${err}. JSON: ${jsonBuf}`);
7817
8247
  }, Symbol.asyncIterator)]() {
7818
8248
  const pushQueue = [];
7819
8249
  const readQueue = [];
@@ -7872,10 +8302,10 @@ var init_BetaMessageStream = __esm({
7872
8302
  }
7873
8303
  });
7874
8304
 
7875
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
8305
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
7876
8306
  var DEFAULT_TOKEN_THRESHOLD, DEFAULT_SUMMARY_PROMPT;
7877
8307
  var init_CompactionControl = __esm({
7878
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
8308
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
7879
8309
  "use strict";
7880
8310
  DEFAULT_TOKEN_THRESHOLD = 1e5;
7881
8311
  DEFAULT_SUMMARY_PROMPT = `You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
@@ -7904,7 +8334,7 @@ Wrap your summary in <summary></summary> tags.`;
7904
8334
  }
7905
8335
  });
7906
8336
 
7907
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
8337
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
7908
8338
  async function generateToolResponse(params, lastMessage = params.messages.at(-1), requestOptions) {
7909
8339
  if (!lastMessage || lastMessage.role !== "assistant" || !lastMessage.content || typeof lastMessage.content === "string") {
7910
8340
  return null;
@@ -7954,7 +8384,7 @@ async function generateToolResponse(params, lastMessage = params.messages.at(-1)
7954
8384
  }
7955
8385
  var _BetaToolRunner_instances, _BetaToolRunner_consumed, _BetaToolRunner_mutated, _BetaToolRunner_state, _BetaToolRunner_options, _BetaToolRunner_message, _BetaToolRunner_toolResponse, _BetaToolRunner_completion, _BetaToolRunner_iterationCount, _BetaToolRunner_checkAndCompact, _BetaToolRunner_generateToolResponse, BetaToolRunner;
7956
8386
  var init_BetaToolRunner = __esm({
7957
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
8387
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
7958
8388
  "use strict";
7959
8389
  init_tslib();
7960
8390
  init_ToolError();
@@ -8090,8 +8520,11 @@ var init_BetaToolRunner = __esm({
8090
8520
  const isCompacted = await __classPrivateFieldGet(this, _BetaToolRunner_instances, "m", _BetaToolRunner_checkAndCompact).call(this);
8091
8521
  if (!isCompacted) {
8092
8522
  if (!__classPrivateFieldGet(this, _BetaToolRunner_mutated, "f")) {
8093
- const { role, content } = await __classPrivateFieldGet(this, _BetaToolRunner_message, "f");
8094
- __classPrivateFieldGet(this, _BetaToolRunner_state, "f").params.messages.push({ role, content });
8523
+ const message = await __classPrivateFieldGet(this, _BetaToolRunner_message, "f");
8524
+ __classPrivateFieldGet(this, _BetaToolRunner_state, "f").params.messages.push({ role: message.role, content: message.content });
8525
+ if (message.stop_reason === "refusal") {
8526
+ break;
8527
+ }
8095
8528
  }
8096
8529
  const toolMessage = await __classPrivateFieldGet(this, _BetaToolRunner_instances, "m", _BetaToolRunner_generateToolResponse).call(this, __classPrivateFieldGet(this, _BetaToolRunner_state, "f").params.messages.at(-1));
8097
8530
  if (toolMessage) {
@@ -8250,7 +8683,7 @@ var init_BetaToolRunner = __esm({
8250
8683
  }
8251
8684
  });
8252
8685
 
8253
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
8686
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
8254
8687
  function transformOutputFormat(params) {
8255
8688
  if (!params.output_format) {
8256
8689
  return params;
@@ -8269,7 +8702,7 @@ function transformOutputFormat(params) {
8269
8702
  }
8270
8703
  var DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED, Messages;
8271
8704
  var init_messages = __esm({
8272
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
8705
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
8273
8706
  "use strict";
8274
8707
  init_error2();
8275
8708
  init_batches();
@@ -8295,7 +8728,16 @@ var init_messages = __esm({
8295
8728
  "claude-2.1": "July 21st, 2025",
8296
8729
  "claude-2.0": "July 21st, 2025",
8297
8730
  "claude-3-7-sonnet-latest": "February 19th, 2026",
8298
- "claude-3-7-sonnet-20250219": "February 19th, 2026"
8731
+ "claude-3-7-sonnet-20250219": "February 19th, 2026",
8732
+ "claude-3-5-haiku-latest": "February 19th, 2026",
8733
+ "claude-3-5-haiku-20241022": "February 19th, 2026",
8734
+ "claude-opus-4-0": "June 15th, 2026",
8735
+ "claude-opus-4-20250514": "June 15th, 2026",
8736
+ "claude-sonnet-4-0": "June 15th, 2026",
8737
+ "claude-sonnet-4-20250514": "June 15th, 2026",
8738
+ "claude-opus-4-1": "August 5th, 2026",
8739
+ "claude-opus-4-1-20250805": "August 5th, 2026",
8740
+ "claude-mythos-preview": "June 30th, 2026"
8299
8741
  };
8300
8742
  MODELS_TO_WARN_WITH_THINKING_ENABLED = ["claude-mythos-preview", "claude-opus-4-6"];
8301
8743
  Messages = class extends APIResource {
@@ -8403,10 +8845,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
8403
8845
  }
8404
8846
  });
8405
8847
 
8406
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
8848
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
8407
8849
  var Events;
8408
8850
  var init_events = __esm({
8409
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
8851
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
8410
8852
  "use strict";
8411
8853
  init_resource();
8412
8854
  init_pagination();
@@ -8523,10 +8965,10 @@ var init_events = __esm({
8523
8965
  }
8524
8966
  });
8525
8967
 
8526
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
8968
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
8527
8969
  var Resources;
8528
8970
  var init_resources = __esm({
8529
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
8971
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
8530
8972
  "use strict";
8531
8973
  init_resource();
8532
8974
  init_pagination();
@@ -8657,10 +9099,10 @@ var init_resources = __esm({
8657
9099
  }
8658
9100
  });
8659
9101
 
8660
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
9102
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
8661
9103
  var Events2;
8662
9104
  var init_events2 = __esm({
8663
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
9105
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
8664
9106
  "use strict";
8665
9107
  init_resource();
8666
9108
  init_pagination();
@@ -8719,10 +9161,10 @@ var init_events2 = __esm({
8719
9161
  }
8720
9162
  });
8721
9163
 
8722
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
9164
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
8723
9165
  var Threads;
8724
9166
  var init_threads = __esm({
8725
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
9167
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
8726
9168
  "use strict";
8727
9169
  init_resource();
8728
9170
  init_events2();
@@ -8808,10 +9250,10 @@ var init_threads = __esm({
8808
9250
  }
8809
9251
  });
8810
9252
 
8811
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
9253
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
8812
9254
  var Sessions;
8813
9255
  var init_sessions = __esm({
8814
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
9256
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
8815
9257
  "use strict";
8816
9258
  init_resource();
8817
9259
  init_events();
@@ -8967,10 +9409,10 @@ var init_sessions = __esm({
8967
9409
  }
8968
9410
  });
8969
9411
 
8970
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
9412
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
8971
9413
  var Versions2;
8972
9414
  var init_versions2 = __esm({
8973
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
9415
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
8974
9416
  "use strict";
8975
9417
  init_resource();
8976
9418
  init_pagination();
@@ -9097,10 +9539,10 @@ var init_versions2 = __esm({
9097
9539
  }
9098
9540
  });
9099
9541
 
9100
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
9542
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
9101
9543
  var Skills;
9102
9544
  var init_skills2 = __esm({
9103
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
9545
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
9104
9546
  "use strict";
9105
9547
  init_resource();
9106
9548
  init_versions2();
@@ -9196,10 +9638,10 @@ var init_skills2 = __esm({
9196
9638
  }
9197
9639
  });
9198
9640
 
9199
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
9641
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
9200
9642
  var Credentials;
9201
9643
  var init_credentials2 = __esm({
9202
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
9644
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
9203
9645
  "use strict";
9204
9646
  init_resource();
9205
9647
  init_pagination();
@@ -9375,10 +9817,10 @@ var init_credentials2 = __esm({
9375
9817
  }
9376
9818
  });
9377
9819
 
9378
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
9820
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
9379
9821
  var Vaults;
9380
9822
  var init_vaults = __esm({
9381
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
9823
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
9382
9824
  "use strict";
9383
9825
  init_resource();
9384
9826
  init_credentials2();
@@ -9525,12 +9967,16 @@ var init_vaults = __esm({
9525
9967
  }
9526
9968
  });
9527
9969
 
9528
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
9970
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
9529
9971
  var Beta;
9530
9972
  var init_beta = __esm({
9531
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
9973
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
9532
9974
  "use strict";
9533
9975
  init_resource();
9976
+ init_deployment_runs();
9977
+ init_deployment_runs();
9978
+ init_deployments();
9979
+ init_deployments();
9534
9980
  init_files();
9535
9981
  init_files();
9536
9982
  init_models();
@@ -9561,6 +10007,8 @@ var init_beta = __esm({
9561
10007
  this.agents = new Agents(this._client);
9562
10008
  this.environments = new Environments(this._client);
9563
10009
  this.sessions = new Sessions(this._client);
10010
+ this.deployments = new Deployments(this._client);
10011
+ this.deploymentRuns = new DeploymentRuns(this._client);
9564
10012
  this.vaults = new Vaults(this._client);
9565
10013
  this.memoryStores = new MemoryStores(this._client);
9566
10014
  this.files = new Files(this._client);
@@ -9574,6 +10022,8 @@ var init_beta = __esm({
9574
10022
  Beta.Agents = Agents;
9575
10023
  Beta.Environments = Environments;
9576
10024
  Beta.Sessions = Sessions;
10025
+ Beta.Deployments = Deployments;
10026
+ Beta.DeploymentRuns = DeploymentRuns;
9577
10027
  Beta.Vaults = Vaults;
9578
10028
  Beta.MemoryStores = MemoryStores;
9579
10029
  Beta.Files = Files;
@@ -9583,10 +10033,10 @@ var init_beta = __esm({
9583
10033
  }
9584
10034
  });
9585
10035
 
9586
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs
10036
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs
9587
10037
  var Completions;
9588
10038
  var init_completions = __esm({
9589
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
10039
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
9590
10040
  "use strict";
9591
10041
  init_resource();
9592
10042
  init_headers();
@@ -9608,7 +10058,7 @@ var init_completions = __esm({
9608
10058
  }
9609
10059
  });
9610
10060
 
9611
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs
10061
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs
9612
10062
  function getOutputFormat2(params) {
9613
10063
  return params?.output_config?.format;
9614
10064
  }
@@ -9669,29 +10119,28 @@ function parseOutputFormat(params, content) {
9669
10119
  }
9670
10120
  }
9671
10121
  var init_parser2 = __esm({
9672
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
10122
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
9673
10123
  "use strict";
9674
10124
  init_error();
9675
10125
  }
9676
10126
  });
9677
10127
 
9678
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
10128
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
9679
10129
  function tracksToolInput2(content) {
9680
10130
  return content.type === "tool_use" || content.type === "server_tool_use";
9681
10131
  }
9682
10132
  function checkNever2(x) {
9683
10133
  }
9684
- var _MessageStream_instances, _MessageStream_currentMessageSnapshot, _MessageStream_params, _MessageStream_connectedPromise, _MessageStream_resolveConnectedPromise, _MessageStream_rejectConnectedPromise, _MessageStream_endPromise, _MessageStream_resolveEndPromise, _MessageStream_rejectEndPromise, _MessageStream_listeners, _MessageStream_ended, _MessageStream_errored, _MessageStream_aborted, _MessageStream_catchingPromiseCreated, _MessageStream_response, _MessageStream_request_id, _MessageStream_logger, _MessageStream_getFinalMessage, _MessageStream_getFinalText, _MessageStream_handleError, _MessageStream_beginRequest, _MessageStream_addStreamEvent, _MessageStream_endRequest, _MessageStream_accumulateMessage, JSON_BUF_PROPERTY2, MessageStream;
10134
+ var _MessageStream_instances, _MessageStream_currentMessageSnapshot, _MessageStream_params, _MessageStream_connectedPromise, _MessageStream_resolveConnectedPromise, _MessageStream_rejectConnectedPromise, _MessageStream_endPromise, _MessageStream_resolveEndPromise, _MessageStream_rejectEndPromise, _MessageStream_listeners, _MessageStream_ended, _MessageStream_errored, _MessageStream_aborted, _MessageStream_catchingPromiseCreated, _MessageStream_response, _MessageStream_request_id, _MessageStream_logger, _MessageStream_getFinalMessage, _MessageStream_getFinalText, _MessageStream_handleError, _MessageStream_beginRequest, _MessageStream_addStreamEvent, _MessageStream_endRequest, _MessageStream_accumulateMessage, MessageStream;
9685
10135
  var init_MessageStream = __esm({
9686
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
10136
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
9687
10137
  "use strict";
9688
10138
  init_tslib();
9689
10139
  init_errors();
9690
10140
  init_error2();
9691
10141
  init_streaming2();
9692
- init_parser();
9693
10142
  init_parser2();
9694
- JSON_BUF_PROPERTY2 = "__json_buf";
10143
+ init_message_stream_utils();
9695
10144
  MessageStream = class _MessageStream {
9696
10145
  constructor(params, opts) {
9697
10146
  _MessageStream_instances.add(this);
@@ -10048,7 +10497,7 @@ var init_MessageStream = __esm({
10048
10497
  break;
10049
10498
  }
10050
10499
  case "input_json_delta": {
10051
- if (tracksToolInput2(content) && content.input) {
10500
+ if (tracksToolInput2(content) && __classPrivateFieldGet(this, _MessageStream_listeners, "f").inputJson?.length) {
10052
10501
  this._emit("inputJson", event.delta.partial_json, content.input);
10053
10502
  }
10054
10503
  break;
@@ -10157,18 +10606,8 @@ var init_MessageStream = __esm({
10157
10606
  }
10158
10607
  case "input_json_delta": {
10159
10608
  if (snapshotContent && tracksToolInput2(snapshotContent)) {
10160
- let jsonBuf = snapshotContent[JSON_BUF_PROPERTY2] || "";
10161
- jsonBuf += event.delta.partial_json;
10162
- const newContent = { ...snapshotContent };
10163
- Object.defineProperty(newContent, JSON_BUF_PROPERTY2, {
10164
- value: jsonBuf,
10165
- enumerable: false,
10166
- writable: true
10167
- });
10168
- if (jsonBuf) {
10169
- newContent.input = partialParse(jsonBuf);
10170
- }
10171
- snapshot.content[event.index] = newContent;
10609
+ const jsonBuf = (snapshotContent[JSON_BUF_PROPERTY] || "") + event.delta.partial_json;
10610
+ snapshot.content[event.index] = withLazyInput(snapshotContent, jsonBuf);
10172
10611
  }
10173
10612
  break;
10174
10613
  }
@@ -10195,8 +10634,18 @@ var init_MessageStream = __esm({
10195
10634
  }
10196
10635
  return snapshot;
10197
10636
  }
10198
- case "content_block_stop":
10637
+ case "content_block_stop": {
10638
+ const snapshotContent = snapshot.content.at(event.index);
10639
+ if (snapshotContent && tracksToolInput2(snapshotContent) && JSON_BUF_PROPERTY in snapshotContent) {
10640
+ Object.defineProperty(snapshotContent, "input", {
10641
+ value: snapshotContent.input,
10642
+ enumerable: true,
10643
+ configurable: true,
10644
+ writable: true
10645
+ });
10646
+ }
10199
10647
  return snapshot;
10648
+ }
10200
10649
  }
10201
10650
  }, Symbol.asyncIterator)]() {
10202
10651
  const pushQueue = [];
@@ -10256,10 +10705,10 @@ var init_MessageStream = __esm({
10256
10705
  }
10257
10706
  });
10258
10707
 
10259
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
10708
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
10260
10709
  var Batches2;
10261
10710
  var init_batches2 = __esm({
10262
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
10711
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
10263
10712
  "use strict";
10264
10713
  init_resource();
10265
10714
  init_pagination();
@@ -10409,10 +10858,10 @@ var init_batches2 = __esm({
10409
10858
  }
10410
10859
  });
10411
10860
 
10412
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
10861
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
10413
10862
  var Messages2, DEPRECATED_MODELS2, MODELS_TO_WARN_WITH_THINKING_ENABLED2;
10414
10863
  var init_messages2 = __esm({
10415
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
10864
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
10416
10865
  "use strict";
10417
10866
  init_resource();
10418
10867
  init_headers();
@@ -10533,17 +10982,20 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
10533
10982
  "claude-opus-4-0": "June 15th, 2026",
10534
10983
  "claude-opus-4-20250514": "June 15th, 2026",
10535
10984
  "claude-sonnet-4-0": "June 15th, 2026",
10536
- "claude-sonnet-4-20250514": "June 15th, 2026"
10985
+ "claude-sonnet-4-20250514": "June 15th, 2026",
10986
+ "claude-opus-4-1": "August 5th, 2026",
10987
+ "claude-opus-4-1-20250805": "August 5th, 2026",
10988
+ "claude-mythos-preview": "June 30th, 2026"
10537
10989
  };
10538
10990
  MODELS_TO_WARN_WITH_THINKING_ENABLED2 = ["claude-mythos-preview", "claude-opus-4-6"];
10539
10991
  Messages2.Batches = Batches2;
10540
10992
  }
10541
10993
  });
10542
10994
 
10543
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs
10995
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs
10544
10996
  var Models2;
10545
10997
  var init_models2 = __esm({
10546
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
10998
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
10547
10999
  "use strict";
10548
11000
  init_resource();
10549
11001
  init_pagination();
@@ -10587,9 +11039,9 @@ var init_models2 = __esm({
10587
11039
  }
10588
11040
  });
10589
11041
 
10590
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs
11042
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs
10591
11043
  var init_resources2 = __esm({
10592
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
11044
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
10593
11045
  "use strict";
10594
11046
  init_shared();
10595
11047
  init_beta();
@@ -10599,10 +11051,10 @@ var init_resources2 = __esm({
10599
11051
  }
10600
11052
  });
10601
11053
 
10602
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs
11054
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs
10603
11055
  var _BaseAnthropic_instances, _a, _BaseAnthropic_encoder, _BaseAnthropic_baseURLOverridden, HUMAN_PROMPT, AI_PROMPT, BaseAnthropic, Anthropic;
10604
11056
  var init_client = __esm({
10605
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs"() {
11057
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs"() {
10606
11058
  "use strict";
10607
11059
  init_tslib();
10608
11060
  init_uuid();
@@ -10618,6 +11070,7 @@ var init_client = __esm({
10618
11070
  init_types();
10619
11071
  init_token_cache();
10620
11072
  init_credential_chain();
11073
+ init_middleware();
10621
11074
  init_pagination();
10622
11075
  init_uploads2();
10623
11076
  init_resources2();
@@ -10689,13 +11142,13 @@ var init_client = __esm({
10689
11142
  this._baseURLIsExplicit = opts.__baseURLIsExplicit ?? !!baseURL;
10690
11143
  this.timeout = options.timeout ?? _a.DEFAULT_TIMEOUT;
10691
11144
  this.logger = options.logger ?? console;
10692
- const defaultLogLevel = "warn";
10693
11145
  this.logLevel = defaultLogLevel;
10694
- this.logLevel = parseLogLevel(options.logLevel, "ClientOptions.logLevel", this) ?? parseLogLevel(readEnv("ANTHROPIC_LOG"), "process.env['ANTHROPIC_LOG']", this) ?? defaultLogLevel;
11146
+ this.logLevel = parseLogLevel(options.logLevel, "ClientOptions.logLevel", loggerFor(this)) ?? parseLogLevel(readEnv("ANTHROPIC_LOG"), "process.env['ANTHROPIC_LOG']", loggerFor(this)) ?? defaultLogLevel;
10695
11147
  this.fetchOptions = options.fetchOptions;
10696
11148
  this.maxRetries = options.maxRetries ?? 2;
10697
11149
  this.fetch = options.fetch ?? getDefaultFetch();
10698
11150
  __classPrivateFieldSet(this, _BaseAnthropic_encoder, FallbackEncoder, "f");
11151
+ this.middleware = [...options.middleware ?? []];
10699
11152
  const customHeadersEnv = readEnv("ANTHROPIC_CUSTOM_HEADERS");
10700
11153
  if (customHeadersEnv) {
10701
11154
  const parsed = {};
@@ -10766,7 +11219,7 @@ var init_client = __esm({
10766
11219
  _credentialResolverOptions() {
10767
11220
  return {
10768
11221
  baseURL: this.baseURL,
10769
- fetch: this.fetch,
11222
+ fetch: this._credentialsFetch(),
10770
11223
  userAgent: this.getUserAgent(),
10771
11224
  onCacheWriteError: (err) => {
10772
11225
  loggerFor(this).debug("credential cache write failed (best-effort)", err);
@@ -10776,6 +11229,18 @@ var init_client = __esm({
10776
11229
  }
10777
11230
  };
10778
11231
  }
11232
+ /**
11233
+ * A `Fetch` for first-party credential token-exchange requests (OIDC
11234
+ * federation jwt-bearer grants, user-OAuth refresh grants) that routes
11235
+ * through this client's middleware chain, so middleware observes token
11236
+ * traffic like any other request. Only client-level middleware applies:
11237
+ * a minted token is shared across requests, so attributing the exchange
11238
+ * to any one request's per-request middleware would be arbitrary. For the
11239
+ * same reason, `ctx.options` is undefined for these requests.
11240
+ */
11241
+ _credentialsFetch() {
11242
+ return wrapFetchWithMiddleware(this.fetch, this.middleware, void 0, this);
11243
+ }
10779
11244
  _makeTokenCache(provider) {
10780
11245
  return new TokenCache(provider, (err) => {
10781
11246
  loggerFor(this).debug("advisory token refresh failed; serving cached token", err);
@@ -10804,6 +11269,7 @@ var init_client = __esm({
10804
11269
  logLevel: this.logLevel,
10805
11270
  fetch: this.fetch,
10806
11271
  fetchOptions: this.fetchOptions,
11272
+ middleware: this.middleware,
10807
11273
  apiKey: this.apiKey,
10808
11274
  authToken: this.authToken,
10809
11275
  webhookKey: this.webhookKey,
@@ -10953,6 +11419,13 @@ var init_client = __esm({
10953
11419
  *
10954
11420
  * This is useful for cases where you want to add certain headers based off of
10955
11421
  * the request properties, e.g. `method` or `url`.
11422
+ *
11423
+ * Runs after all middleware (including {@link backendMiddleware}),
11424
+ * immediately before each underlying fetch call, so it sees exactly what
11425
+ * goes over the wire. Middleware may replay a request by calling `next()`
11426
+ * more than once, so this hook can run multiple times per attempt:
11427
+ * overrides must be idempotent and overwrite headers from a previous
11428
+ * invocation rather than append to them.
10956
11429
  */
10957
11430
  async prepareRequest(request, { url, options }) {
10958
11431
  if (this._authState.tokenCache && this.apiKey == null) {
@@ -10968,6 +11441,27 @@ var init_client = __esm({
10968
11441
  request.headers = headers;
10969
11442
  }
10970
11443
  }
11444
+ /**
11445
+ * Internal {@link Middleware} composed innermost in the chain — inside both
11446
+ * client-level and per-request middleware, immediately around the underlying
11447
+ * `fetch`. Subclasses for third-party backends override this to adapt the
11448
+ * canonical Anthropic-shaped request to the backend's wire shape (URL/body
11449
+ * rewriting, request signing) and to normalize the wire response back to the
11450
+ * canonical shape (e.g. AWS EventStream to SSE).
11451
+ *
11452
+ * Running inside the user's middleware means user middleware always observes
11453
+ * canonical Anthropic-shaped traffic, and the adaptation re-runs (e.g.
11454
+ * re-signs) on every `next()` invocation, covering whatever the middleware
11455
+ * mutated.
11456
+ *
11457
+ * Errors thrown here follow the middleware error policy: they propagate to
11458
+ * the caller as-is — no retries, no `APIConnectionError` wrapping — unless
11459
+ * retryable (see {@link Middleware}); throw a `RetryableError` to opt into
11460
+ * the retry path.
11461
+ */
11462
+ backendMiddleware() {
11463
+ return [];
11464
+ }
10971
11465
  get(path5, opts) {
10972
11466
  return this.methodRequest("get", path5, opts);
10973
11467
  }
@@ -11002,22 +11496,17 @@ var init_client = __esm({
11002
11496
  const { req, url, timeout } = await this.buildRequest(options, {
11003
11497
  retryCount: maxRetries - retriesRemaining
11004
11498
  });
11005
- await this.prepareRequest(req, { url, options });
11006
11499
  const requestLogID = "log_" + (Math.random() * (1 << 24) | 0).toString(16).padStart(6, "0");
11007
11500
  const retryLogStr = retryOfRequestLogID === void 0 ? "" : `, retryOf: ${retryOfRequestLogID}`;
11008
11501
  const startTime = Date.now();
11009
- loggerFor(this).debug(`[${requestLogID}] sending request`, formatRequestDetails({
11010
- retryOfRequestLogID,
11011
- method: options.method,
11012
- url,
11013
- options,
11014
- headers: req.headers
11015
- }));
11016
11502
  if (options.signal?.aborted) {
11017
11503
  throw new APIUserAbortError();
11018
11504
  }
11019
11505
  const controller = new AbortController();
11020
- const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
11506
+ const response = await this.fetchWithTimeout(url, req, timeout, controller, options, {
11507
+ requestLogID,
11508
+ retryOfRequestLogID
11509
+ }).catch(castToError);
11021
11510
  const headersTime = Date.now();
11022
11511
  if (response instanceof globalThis.Error) {
11023
11512
  const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
@@ -11025,6 +11514,17 @@ var init_client = __esm({
11025
11514
  throw new APIUserAbortError();
11026
11515
  }
11027
11516
  const isTimeout = isAbortError(response) || /timed? ?out/i.test(String(response) + ("cause" in response ? String(response.cause) : ""));
11517
+ const hasMiddleware = this.middleware.length > 0 || !!options.middleware?.length || this.backendMiddleware().length > 0;
11518
+ if (hasMiddleware && !isTimeout && !isRetryableError(response)) {
11519
+ loggerFor(this).info(`[${requestLogID}] middleware error (not retryable)`);
11520
+ loggerFor(this).debug(`[${requestLogID}] middleware error (not retryable)`, formatRequestDetails({
11521
+ retryOfRequestLogID,
11522
+ url,
11523
+ durationMs: headersTime - startTime,
11524
+ message: response.message
11525
+ }));
11526
+ throw response;
11527
+ }
11028
11528
  if (retriesRemaining) {
11029
11529
  loggerFor(this).info(`[${requestLogID}] connection ${isTimeout ? "timed out" : "failed"} - ${retryMessage}`);
11030
11530
  loggerFor(this).debug(`[${requestLogID}] connection ${isTimeout ? "timed out" : "failed"} (${retryMessage})`, formatRequestDetails({
@@ -11045,6 +11545,9 @@ var init_client = __esm({
11045
11545
  if (isTimeout) {
11046
11546
  throw new APIConnectionTimeoutError();
11047
11547
  }
11548
+ if (hasMiddleware && !isFetchOriginError(response)) {
11549
+ throw response;
11550
+ }
11048
11551
  throw new APIConnectionError({ cause: response });
11049
11552
  }
11050
11553
  const specialHeaders = [...response.headers.entries()].filter(([name]) => name === "request-id").map(([name, value]) => ", " + name + ": " + JSON.stringify(value)).join("");
@@ -11097,12 +11600,11 @@ var init_client = __esm({
11097
11600
  const request = this.makeRequest(options, null, void 0);
11098
11601
  return new PagePromise(this, request, Page2);
11099
11602
  }
11100
- async fetchWithTimeout(url, init, ms, controller) {
11603
+ async fetchWithTimeout(url, init, ms, controller, requestOptions, logCtx) {
11101
11604
  const { signal, method, ...options } = init || {};
11102
11605
  const abort = this._makeAbort(controller);
11103
11606
  if (signal)
11104
11607
  signal.addEventListener("abort", abort, { once: true });
11105
- const timeout = setTimeout(abort, ms);
11106
11608
  const isReadableBody = globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream || typeof options.body === "object" && options.body !== null && Symbol.asyncIterator in options.body;
11107
11609
  const fetchOptions = {
11108
11610
  signal: controller.signal,
@@ -11113,11 +11615,34 @@ var init_client = __esm({
11113
11615
  if (method) {
11114
11616
  fetchOptions.method = method.toUpperCase();
11115
11617
  }
11116
- try {
11117
- return await this.fetch.call(void 0, url, fetchOptions);
11118
- } finally {
11119
- clearTimeout(timeout);
11120
- }
11618
+ const baseFetch = this.fetch;
11619
+ const timedFetch = async (innerUrl, innerInit) => {
11620
+ const timeout = setTimeout(abort, ms);
11621
+ try {
11622
+ return await baseFetch.call(void 0, innerUrl, innerInit);
11623
+ } finally {
11624
+ clearTimeout(timeout);
11625
+ }
11626
+ };
11627
+ const innerFetch = requestOptions === void 0 ? timedFetch : (async (innerUrl, innerInit = {}) => {
11628
+ const innerUrlStr = typeof innerUrl === "string" ? innerUrl : innerUrl instanceof URL ? innerUrl.href : innerUrl.url;
11629
+ innerInit.headers = innerInit.headers instanceof Headers ? innerInit.headers : new Headers(innerInit.headers);
11630
+ await this.prepareRequest(innerInit, { url: innerUrlStr, options: requestOptions });
11631
+ if (logCtx) {
11632
+ loggerFor(this).debug(`[${logCtx.requestLogID}] sending request`, formatRequestDetails({
11633
+ retryOfRequestLogID: logCtx.retryOfRequestLogID,
11634
+ method: innerInit.method,
11635
+ url: innerUrlStr,
11636
+ options: requestOptions,
11637
+ headers: innerInit.headers
11638
+ }));
11639
+ }
11640
+ return timedFetch(innerUrl, innerInit);
11641
+ });
11642
+ const requestMiddleware = requestOptions?.middleware;
11643
+ const backendMiddleware = this.backendMiddleware();
11644
+ const allMiddleware = requestMiddleware?.length || backendMiddleware.length ? [...this.middleware, ...requestMiddleware ?? [], ...backendMiddleware] : this.middleware;
11645
+ return await wrapFetchWithMiddleware(innerFetch, allMiddleware, requestOptions, this)(url, fetchOptions);
11121
11646
  }
11122
11647
  async shouldRetry(response, options) {
11123
11648
  const flags = this._authFlags(options);
@@ -11302,13 +11827,28 @@ var init_client = __esm({
11302
11827
  }
11303
11828
  });
11304
11829
 
11305
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs
11830
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
11831
+ var encoder;
11832
+ var init_middleware2 = __esm({
11833
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs"() {
11834
+ "use strict";
11835
+ init_error();
11836
+ init_streaming();
11837
+ init_errors();
11838
+ init_values();
11839
+ init_request_options();
11840
+ encoder = new TextEncoder();
11841
+ }
11842
+ });
11843
+
11844
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs
11306
11845
  var init_sdk = __esm({
11307
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.100.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs"() {
11846
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs"() {
11308
11847
  "use strict";
11309
11848
  init_client();
11310
11849
  init_uploads2();
11311
11850
  init_api_promise();
11851
+ init_middleware2();
11312
11852
  init_client();
11313
11853
  init_pagination();
11314
11854
  init_error();