@goondocks/myco 0.18.0 → 0.19.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 (192) hide show
  1. package/README.md +17 -130
  2. package/dist/{agent-run-2NFYMQXW.js → agent-run-EADUYYAS.js} +6 -6
  3. package/dist/{agent-tasks-MEIYLXGN.js → agent-tasks-GC77JXQB.js} +6 -6
  4. package/dist/{chunk-EO2RQW4S.js → chunk-2CKDAFSX.js} +2 -2
  5. package/dist/{chunk-NZI7WBZI.js → chunk-2DF4OZ2D.js} +22 -2
  6. package/dist/chunk-2DF4OZ2D.js.map +1 -0
  7. package/dist/{chunk-OW433Q4C.js → chunk-2LN2BBKA.js} +45 -4
  8. package/dist/chunk-2LN2BBKA.js.map +1 -0
  9. package/dist/{chunk-U7GJTVSX.js → chunk-2OO3BRFK.js} +21 -7
  10. package/dist/chunk-2OO3BRFK.js.map +1 -0
  11. package/dist/{chunk-RAV5YMRU.js → chunk-3TPD6HEF.js} +4 -4
  12. package/dist/{chunk-JMOUFG6Y.js → chunk-44PZCAYS.js} +47 -5
  13. package/dist/chunk-44PZCAYS.js.map +1 -0
  14. package/dist/{chunk-D7TYRPRM.js → chunk-6LQIMRTC.js} +145 -145
  15. package/dist/chunk-6LQIMRTC.js.map +1 -0
  16. package/dist/{chunk-NI23QCHB.js → chunk-AELJ4PS5.js} +5 -5
  17. package/dist/{chunk-BUIR3JWM.js → chunk-CYBC2HZ3.js} +3 -3
  18. package/dist/chunk-EM63ZFKA.js +166 -0
  19. package/dist/chunk-EM63ZFKA.js.map +1 -0
  20. package/dist/{chunk-O3TRN3RC.js → chunk-INWD6AIQ.js} +2 -2
  21. package/dist/{chunk-CML4MCYF.js → chunk-KSXTNYXO.js} +2 -2
  22. package/dist/{chunk-KWTOCJLB.js → chunk-LLJMDXO2.js} +1176 -241
  23. package/dist/chunk-LLJMDXO2.js.map +1 -0
  24. package/dist/{chunk-2V7HR7HB.js → chunk-MDEUXYJG.js} +4 -4
  25. package/dist/{chunk-PFWIPRF6.js → chunk-MS6FDV45.js} +3 -3
  26. package/dist/{chunk-55QEICRO.js → chunk-N77K772N.js} +3 -3
  27. package/dist/{chunk-E4VLWIJC.js → chunk-ODXLRR4U.js} +1 -1
  28. package/dist/{chunk-DLFDBKEV.js → chunk-OZF5EURR.js} +19 -16
  29. package/dist/chunk-OZF5EURR.js.map +1 -0
  30. package/dist/{chunk-IB76KGBY.js → chunk-POEPHBQK.js} +1 -1
  31. package/dist/{chunk-7OYXB2NM.js → chunk-REN37KYI.js} +6 -2
  32. package/dist/chunk-REN37KYI.js.map +1 -0
  33. package/dist/{chunk-JDI4DPWD.js → chunk-RXROZBSK.js} +637 -150
  34. package/dist/chunk-RXROZBSK.js.map +1 -0
  35. package/dist/{chunk-U3J2DDSR.js → chunk-SCI55NKY.js} +2 -2
  36. package/dist/{chunk-GDY63YAW.js → chunk-U6PF3YII.js} +79 -79
  37. package/dist/chunk-U6PF3YII.js.map +1 -0
  38. package/dist/{chunk-FABWUX5G.js → chunk-UVKQ62II.js} +18 -4
  39. package/dist/chunk-UVKQ62II.js.map +1 -0
  40. package/dist/{chunk-VOCGURV7.js → chunk-UW6DGPSV.js} +3 -3
  41. package/dist/{chunk-CKJAWZQE.js → chunk-W4VHC2ES.js} +11 -3
  42. package/dist/chunk-W4VHC2ES.js.map +1 -0
  43. package/dist/{chunk-75AZFBFW.js → chunk-YPWF322W.js} +3 -3
  44. package/dist/{cli-IIMBALPV.js → cli-X7CFP4YD.js} +39 -39
  45. package/dist/{client-VZCUISHZ.js → client-YA33HUFY.js} +4 -4
  46. package/dist/{config-DA4IUVFL.js → config-RFB2DJC6.js} +6 -6
  47. package/dist/{detect-GEM3NVK6.js → detect-BEOIHGBC.js} +5 -5
  48. package/dist/{detect-providers-PSVKXTWE.js → detect-providers-2OQBU4VX.js} +4 -4
  49. package/dist/{doctor-QYD34X7Q.js → doctor-FAH7N66M.js} +11 -11
  50. package/dist/{executor-NSPRTH4M.js → executor-ICTRRUBY.js} +93 -285
  51. package/dist/executor-ICTRRUBY.js.map +1 -0
  52. package/dist/{init-WYYL44KZ.js → init-PTJEOTJV.js} +15 -15
  53. package/dist/{llm-KEDHK3TQ.js → llm-7D2OGDEK.js} +4 -4
  54. package/dist/{loader-Q3P3R4UP.js → loader-O2JFO2UC.js} +6 -6
  55. package/dist/{loader-SKKUMT5C.js → loader-VPE4RCIF.js} +6 -6
  56. package/dist/{main-6PY3ITQ5.js → main-EIKBLOUL.js} +752 -264
  57. package/dist/main-EIKBLOUL.js.map +1 -0
  58. package/dist/{open-HRFMJDQX.js → open-2JCSOLZS.js} +6 -6
  59. package/dist/{post-compact-HT24YMAN.js → post-compact-2HPPWPBI.js} +10 -10
  60. package/dist/{post-tool-use-DENRI5WB.js → post-tool-use-TWBBBABS.js} +9 -9
  61. package/dist/{post-tool-use-failure-A6SNJX42.js → post-tool-use-failure-LIJYR4KL.js} +10 -10
  62. package/dist/{pre-compact-3Q4BALCL.js → pre-compact-II2CMNTG.js} +10 -10
  63. package/dist/{provider-check-AE3L5Z6R.js → provider-check-KEQNQ6LO.js} +4 -4
  64. package/dist/{registry-O2NZLO3V.js → registry-X5FDGYXT.js} +7 -7
  65. package/dist/{remove-YB5A6HY2.js → remove-L5MVYBOY.js} +11 -11
  66. package/dist/{resolution-events-XWYLLDRK.js → resolution-events-MVIZMONR.js} +4 -4
  67. package/dist/{restart-RGDVHELZ.js → restart-VIT3JBD6.js} +7 -7
  68. package/dist/{search-WOHT3G55.js → search-O6BB5MTO.js} +7 -7
  69. package/dist/{server-6SUNYDV7.js → server-O3UPJVBR.js} +258 -173
  70. package/dist/server-O3UPJVBR.js.map +1 -0
  71. package/dist/{session-W3SKRFRV.js → session-5JV3DQIK.js} +8 -8
  72. package/dist/{session-end-OUTY7AFF.js → session-end-PZ2OXBGG.js} +9 -9
  73. package/dist/{session-start-5MB3LFOA.js → session-start-FDGM56BX.js} +22 -17
  74. package/dist/{session-start-5MB3LFOA.js.map → session-start-FDGM56BX.js.map} +1 -1
  75. package/dist/{setup-llm-ZMYGIQX5.js → setup-llm-MQK557BB.js} +10 -10
  76. package/dist/src/agent/definitions/tasks/extract-only.yaml +1 -1
  77. package/dist/src/agent/definitions/tasks/full-intelligence.yaml +10 -0
  78. package/dist/src/agent/definitions/tasks/skill-evolve.yaml +163 -49
  79. package/dist/src/agent/definitions/tasks/skill-generate.yaml +44 -27
  80. package/dist/src/agent/definitions/tasks/skill-survey.yaml +132 -138
  81. package/dist/src/agent/definitions/tasks/supersession-sweep.yaml +1 -1
  82. package/dist/src/cli.js +1 -1
  83. package/dist/src/daemon/main.js +1 -1
  84. package/dist/src/hooks/post-tool-use.js +1 -1
  85. package/dist/src/hooks/session-end.js +1 -1
  86. package/dist/src/hooks/session-start.js +1 -1
  87. package/dist/src/hooks/stop.js +1 -1
  88. package/dist/src/hooks/user-prompt-submit.js +1 -1
  89. package/dist/src/mcp/server.js +1 -1
  90. package/dist/src/symbionts/manifests/codex.yaml +45 -7
  91. package/dist/{stats-DGI6B3HX.js → stats-2STTARTC.js} +11 -11
  92. package/dist/{stop-YGHODSP7.js → stop-WNKCMCGO.js} +9 -9
  93. package/dist/{stop-failure-7IJTPJ6W.js → stop-failure-6GTOBVTN.js} +10 -10
  94. package/dist/{subagent-start-ZBQ5PJB5.js → subagent-start-VJF5YKVX.js} +10 -10
  95. package/dist/{subagent-stop-N2TDQU2D.js → subagent-stop-UW6HMICY.js} +10 -10
  96. package/dist/{task-completed-BDLMRSBB.js → task-completed-U4Q3XXLX.js} +10 -10
  97. package/dist/{team-2ZFGTSIN.js → team-N6TXS2PF.js} +148 -103
  98. package/dist/team-N6TXS2PF.js.map +1 -0
  99. package/dist/ui/assets/{index-DtT9_nlT.js → index-CHIm98OP.js} +48 -48
  100. package/dist/ui/index.html +1 -1
  101. package/dist/{update-STLAN7LR.js → update-ZYCOWKMD.js} +11 -11
  102. package/dist/{user-prompt-submit-4IBFUYQ3.js → user-prompt-submit-SOYL4OWF.js} +15 -12
  103. package/dist/user-prompt-submit-SOYL4OWF.js.map +1 -0
  104. package/dist/{verify-EJYPO7QA.js → verify-P37PQ4YM.js} +8 -8
  105. package/dist/{version-YPBIKH77.js → version-XAWC277D.js} +2 -2
  106. package/package.json +25 -8
  107. package/CONTRIBUTING.md +0 -132
  108. package/dist/chunk-7OYXB2NM.js.map +0 -1
  109. package/dist/chunk-CKJAWZQE.js.map +0 -1
  110. package/dist/chunk-D7TYRPRM.js.map +0 -1
  111. package/dist/chunk-DLFDBKEV.js.map +0 -1
  112. package/dist/chunk-FABWUX5G.js.map +0 -1
  113. package/dist/chunk-GDY63YAW.js.map +0 -1
  114. package/dist/chunk-JDI4DPWD.js.map +0 -1
  115. package/dist/chunk-JMOUFG6Y.js.map +0 -1
  116. package/dist/chunk-KWTOCJLB.js.map +0 -1
  117. package/dist/chunk-NZI7WBZI.js.map +0 -1
  118. package/dist/chunk-OW433Q4C.js.map +0 -1
  119. package/dist/chunk-RJMXDUMA.js +0 -40
  120. package/dist/chunk-RJMXDUMA.js.map +0 -1
  121. package/dist/chunk-U7GJTVSX.js.map +0 -1
  122. package/dist/executor-NSPRTH4M.js.map +0 -1
  123. package/dist/main-6PY3ITQ5.js.map +0 -1
  124. package/dist/server-6SUNYDV7.js.map +0 -1
  125. package/dist/src/worker/package-lock.json +0 -4338
  126. package/dist/src/worker/package.json +0 -22
  127. package/dist/src/worker/src/auth.ts +0 -31
  128. package/dist/src/worker/src/index.ts +0 -470
  129. package/dist/src/worker/src/mcp/auth.ts +0 -65
  130. package/dist/src/worker/src/mcp/server.ts +0 -53
  131. package/dist/src/worker/src/mcp/tools/context.ts +0 -13
  132. package/dist/src/worker/src/mcp/tools/get.ts +0 -15
  133. package/dist/src/worker/src/mcp/tools/graph.ts +0 -35
  134. package/dist/src/worker/src/mcp/tools/search.ts +0 -32
  135. package/dist/src/worker/src/mcp/tools/sessions.ts +0 -24
  136. package/dist/src/worker/src/mcp/tools/skills.ts +0 -16
  137. package/dist/src/worker/src/mcp/tools/team.ts +0 -9
  138. package/dist/src/worker/src/schema.ts +0 -324
  139. package/dist/src/worker/src/search-helpers.ts +0 -70
  140. package/dist/src/worker/tsconfig.json +0 -16
  141. package/dist/src/worker/wrangler.toml +0 -30
  142. package/dist/team-2ZFGTSIN.js.map +0 -1
  143. package/dist/user-prompt-submit-4IBFUYQ3.js.map +0 -1
  144. /package/dist/{agent-run-2NFYMQXW.js.map → agent-run-EADUYYAS.js.map} +0 -0
  145. /package/dist/{agent-tasks-MEIYLXGN.js.map → agent-tasks-GC77JXQB.js.map} +0 -0
  146. /package/dist/{chunk-EO2RQW4S.js.map → chunk-2CKDAFSX.js.map} +0 -0
  147. /package/dist/{chunk-RAV5YMRU.js.map → chunk-3TPD6HEF.js.map} +0 -0
  148. /package/dist/{chunk-NI23QCHB.js.map → chunk-AELJ4PS5.js.map} +0 -0
  149. /package/dist/{chunk-BUIR3JWM.js.map → chunk-CYBC2HZ3.js.map} +0 -0
  150. /package/dist/{chunk-O3TRN3RC.js.map → chunk-INWD6AIQ.js.map} +0 -0
  151. /package/dist/{chunk-CML4MCYF.js.map → chunk-KSXTNYXO.js.map} +0 -0
  152. /package/dist/{chunk-2V7HR7HB.js.map → chunk-MDEUXYJG.js.map} +0 -0
  153. /package/dist/{chunk-PFWIPRF6.js.map → chunk-MS6FDV45.js.map} +0 -0
  154. /package/dist/{chunk-55QEICRO.js.map → chunk-N77K772N.js.map} +0 -0
  155. /package/dist/{chunk-E4VLWIJC.js.map → chunk-ODXLRR4U.js.map} +0 -0
  156. /package/dist/{chunk-IB76KGBY.js.map → chunk-POEPHBQK.js.map} +0 -0
  157. /package/dist/{chunk-U3J2DDSR.js.map → chunk-SCI55NKY.js.map} +0 -0
  158. /package/dist/{chunk-VOCGURV7.js.map → chunk-UW6DGPSV.js.map} +0 -0
  159. /package/dist/{chunk-75AZFBFW.js.map → chunk-YPWF322W.js.map} +0 -0
  160. /package/dist/{cli-IIMBALPV.js.map → cli-X7CFP4YD.js.map} +0 -0
  161. /package/dist/{client-VZCUISHZ.js.map → client-YA33HUFY.js.map} +0 -0
  162. /package/dist/{config-DA4IUVFL.js.map → config-RFB2DJC6.js.map} +0 -0
  163. /package/dist/{detect-GEM3NVK6.js.map → detect-BEOIHGBC.js.map} +0 -0
  164. /package/dist/{detect-providers-PSVKXTWE.js.map → detect-providers-2OQBU4VX.js.map} +0 -0
  165. /package/dist/{doctor-QYD34X7Q.js.map → doctor-FAH7N66M.js.map} +0 -0
  166. /package/dist/{init-WYYL44KZ.js.map → init-PTJEOTJV.js.map} +0 -0
  167. /package/dist/{llm-KEDHK3TQ.js.map → llm-7D2OGDEK.js.map} +0 -0
  168. /package/dist/{loader-Q3P3R4UP.js.map → loader-O2JFO2UC.js.map} +0 -0
  169. /package/dist/{loader-SKKUMT5C.js.map → loader-VPE4RCIF.js.map} +0 -0
  170. /package/dist/{open-HRFMJDQX.js.map → open-2JCSOLZS.js.map} +0 -0
  171. /package/dist/{post-compact-HT24YMAN.js.map → post-compact-2HPPWPBI.js.map} +0 -0
  172. /package/dist/{post-tool-use-DENRI5WB.js.map → post-tool-use-TWBBBABS.js.map} +0 -0
  173. /package/dist/{post-tool-use-failure-A6SNJX42.js.map → post-tool-use-failure-LIJYR4KL.js.map} +0 -0
  174. /package/dist/{pre-compact-3Q4BALCL.js.map → pre-compact-II2CMNTG.js.map} +0 -0
  175. /package/dist/{provider-check-AE3L5Z6R.js.map → provider-check-KEQNQ6LO.js.map} +0 -0
  176. /package/dist/{registry-O2NZLO3V.js.map → registry-X5FDGYXT.js.map} +0 -0
  177. /package/dist/{remove-YB5A6HY2.js.map → remove-L5MVYBOY.js.map} +0 -0
  178. /package/dist/{resolution-events-XWYLLDRK.js.map → resolution-events-MVIZMONR.js.map} +0 -0
  179. /package/dist/{restart-RGDVHELZ.js.map → restart-VIT3JBD6.js.map} +0 -0
  180. /package/dist/{search-WOHT3G55.js.map → search-O6BB5MTO.js.map} +0 -0
  181. /package/dist/{session-W3SKRFRV.js.map → session-5JV3DQIK.js.map} +0 -0
  182. /package/dist/{session-end-OUTY7AFF.js.map → session-end-PZ2OXBGG.js.map} +0 -0
  183. /package/dist/{setup-llm-ZMYGIQX5.js.map → setup-llm-MQK557BB.js.map} +0 -0
  184. /package/dist/{stats-DGI6B3HX.js.map → stats-2STTARTC.js.map} +0 -0
  185. /package/dist/{stop-YGHODSP7.js.map → stop-WNKCMCGO.js.map} +0 -0
  186. /package/dist/{stop-failure-7IJTPJ6W.js.map → stop-failure-6GTOBVTN.js.map} +0 -0
  187. /package/dist/{subagent-start-ZBQ5PJB5.js.map → subagent-start-VJF5YKVX.js.map} +0 -0
  188. /package/dist/{subagent-stop-N2TDQU2D.js.map → subagent-stop-UW6HMICY.js.map} +0 -0
  189. /package/dist/{task-completed-BDLMRSBB.js.map → task-completed-U4Q3XXLX.js.map} +0 -0
  190. /package/dist/{update-STLAN7LR.js.map → update-ZYCOWKMD.js.map} +0 -0
  191. /package/dist/{verify-EJYPO7QA.js.map → verify-P37PQ4YM.js.map} +0 -0
  192. /package/dist/{version-YPBIKH77.js.map → version-XAWC277D.js.map} +0 -0
@@ -2,14 +2,14 @@ import { createRequire as __cr } from 'node:module'; const require = __cr(import
2
2
  import {
3
3
  LmStudioBackend,
4
4
  OllamaBackend
5
- } from "./chunk-CML4MCYF.js";
5
+ } from "./chunk-KSXTNYXO.js";
6
6
  import {
7
7
  EMBEDDING_REQUEST_TIMEOUT_MS,
8
8
  LLM_REQUEST_TIMEOUT_MS,
9
9
  PROVIDER_DETECT_TIMEOUT_MS
10
- } from "./chunk-CKJAWZQE.js";
10
+ } from "./chunk-W4VHC2ES.js";
11
11
 
12
- // node_modules/@anthropic-ai/sdk/internal/tslib.mjs
12
+ // ../../node_modules/@anthropic-ai/sdk/internal/tslib.mjs
13
13
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
14
14
  if (kind === "m")
15
15
  throw new TypeError("Private method is not writable");
@@ -27,7 +27,7 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
27
27
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
28
28
  }
29
29
 
30
- // node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
30
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
31
31
  var uuid4 = function() {
32
32
  const { crypto } = globalThis;
33
33
  if (crypto?.randomUUID) {
@@ -39,7 +39,7 @@ var uuid4 = function() {
39
39
  return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
40
40
  };
41
41
 
42
- // node_modules/@anthropic-ai/sdk/internal/errors.mjs
42
+ // ../../node_modules/@anthropic-ai/sdk/internal/errors.mjs
43
43
  function isAbortError(err) {
44
44
  return typeof err === "object" && err !== null && // Spec-compliant fetch implementations
45
45
  ("name" in err && err.name === "AbortError" || // Expo fetch
@@ -70,7 +70,7 @@ var castToError = (err) => {
70
70
  return new Error(err);
71
71
  };
72
72
 
73
- // node_modules/@anthropic-ai/sdk/core/error.mjs
73
+ // ../../node_modules/@anthropic-ai/sdk/core/error.mjs
74
74
  var AnthropicError = class extends Error {
75
75
  };
76
76
  var APIError = class _APIError extends AnthropicError {
@@ -162,7 +162,7 @@ var RateLimitError = class extends APIError {
162
162
  var InternalServerError = class extends APIError {
163
163
  };
164
164
 
165
- // node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
165
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
166
166
  var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
167
167
  var isAbsoluteURL = (url) => {
168
168
  return startsWithSchemeRegexp.test(url);
@@ -202,13 +202,13 @@ var safeJSON = (text) => {
202
202
  }
203
203
  };
204
204
 
205
- // node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
205
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
206
206
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
207
207
 
208
- // node_modules/@anthropic-ai/sdk/version.mjs
209
- var VERSION = "0.82.0";
208
+ // ../../node_modules/@anthropic-ai/sdk/version.mjs
209
+ var VERSION = "0.88.0";
210
210
 
211
- // node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
211
+ // ../../node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
212
212
  var isRunningInBrowser = () => {
213
213
  return (
214
214
  // @ts-ignore
@@ -342,7 +342,7 @@ var getPlatformHeaders = () => {
342
342
  return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
343
343
  };
344
344
 
345
- // node_modules/@anthropic-ai/sdk/internal/shims.mjs
345
+ // ../../node_modules/@anthropic-ai/sdk/internal/shims.mjs
346
346
  function getDefaultFetch() {
347
347
  if (typeof fetch !== "undefined") {
348
348
  return fetch;
@@ -414,7 +414,7 @@ async function CancelReadableStream(stream) {
414
414
  await cancelPromise;
415
415
  }
416
416
 
417
- // node_modules/@anthropic-ai/sdk/internal/request-options.mjs
417
+ // ../../node_modules/@anthropic-ai/sdk/internal/request-options.mjs
418
418
  var FallbackEncoder = ({ headers, body }) => {
419
419
  return {
420
420
  bodyHeaders: {
@@ -424,7 +424,7 @@ var FallbackEncoder = ({ headers, body }) => {
424
424
  };
425
425
  };
426
426
 
427
- // node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
427
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
428
428
  function stringifyQuery(query) {
429
429
  return Object.entries(query).filter(([_, value]) => typeof value !== "undefined").map(([key, value]) => {
430
430
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
@@ -437,7 +437,7 @@ function stringifyQuery(query) {
437
437
  }).join("&");
438
438
  }
439
439
 
440
- // node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
440
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
441
441
  function concatBytes(buffers) {
442
442
  let length = 0;
443
443
  for (const buffer of buffers) {
@@ -462,7 +462,7 @@ function decodeUTF8(bytes) {
462
462
  return (decodeUTF8_ ?? (decoder = new globalThis.TextDecoder(), decodeUTF8_ = decoder.decode.bind(decoder)))(bytes);
463
463
  }
464
464
 
465
- // node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
465
+ // ../../node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
466
466
  var _LineDecoder_buffer;
467
467
  var _LineDecoder_carriageReturnIndex;
468
468
  var LineDecoder = class {
@@ -539,7 +539,7 @@ function findDoubleNewlineIndex(buffer) {
539
539
  return -1;
540
540
  }
541
541
 
542
- // node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
542
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
543
543
  var levelNumbers = {
544
544
  off: 0,
545
545
  error: 200,
@@ -612,7 +612,7 @@ var formatRequestDetails = (details) => {
612
612
  return details;
613
613
  };
614
614
 
615
- // node_modules/@anthropic-ai/sdk/core/streaming.mjs
615
+ // ../../node_modules/@anthropic-ai/sdk/core/streaming.mjs
616
616
  var _Stream_client;
617
617
  var Stream = class _Stream {
618
618
  constructor(iterator, controller, client) {
@@ -641,7 +641,7 @@ var Stream = class _Stream {
641
641
  throw e;
642
642
  }
643
643
  }
644
- if (sse.event === "message_start" || sse.event === "message_delta" || sse.event === "message_stop" || sse.event === "content_block_start" || sse.event === "content_block_delta" || sse.event === "content_block_stop") {
644
+ if (sse.event === "message_start" || sse.event === "message_delta" || sse.event === "message_stop" || sse.event === "content_block_start" || sse.event === "content_block_delta" || sse.event === "content_block_stop" || sse.event === "message") {
645
645
  try {
646
646
  yield JSON.parse(sse.data);
647
647
  } catch (e) {
@@ -863,7 +863,7 @@ function partition(str, delimiter) {
863
863
  return [str, "", ""];
864
864
  }
865
865
 
866
- // node_modules/@anthropic-ai/sdk/internal/parse.mjs
866
+ // ../../node_modules/@anthropic-ai/sdk/internal/parse.mjs
867
867
  async function defaultParseResponse(client, props) {
868
868
  const { response, requestLogID, retryOfRequestLogID, startTime } = props;
869
869
  const body = await (async () => {
@@ -913,7 +913,7 @@ function addRequestID(value, response) {
913
913
  });
914
914
  }
915
915
 
916
- // node_modules/@anthropic-ai/sdk/core/api-promise.mjs
916
+ // ../../node_modules/@anthropic-ai/sdk/core/api-promise.mjs
917
917
  var _APIPromise_client;
918
918
  var APIPromise = class _APIPromise extends Promise {
919
919
  constructor(client, responsePromise, parseResponse = defaultParseResponse) {
@@ -976,7 +976,7 @@ var APIPromise = class _APIPromise extends Promise {
976
976
  };
977
977
  _APIPromise_client = /* @__PURE__ */ new WeakMap();
978
978
 
979
- // node_modules/@anthropic-ai/sdk/core/pagination.mjs
979
+ // ../../node_modules/@anthropic-ai/sdk/core/pagination.mjs
980
980
  var _AbstractPage_client;
981
981
  var AbstractPage = class {
982
982
  constructor(client, response, body, options) {
@@ -1081,18 +1081,11 @@ var PageCursor = class extends AbstractPage {
1081
1081
  constructor(client, response, body, options) {
1082
1082
  super(client, response, body, options);
1083
1083
  this.data = body.data || [];
1084
- this.has_more = body.has_more || false;
1085
1084
  this.next_page = body.next_page || null;
1086
1085
  }
1087
1086
  getPaginatedItems() {
1088
1087
  return this.data ?? [];
1089
1088
  }
1090
- hasNextPage() {
1091
- if (this.has_more === false) {
1092
- return false;
1093
- }
1094
- return super.hasNextPage();
1095
- }
1096
1089
  nextPageRequestOptions() {
1097
1090
  const cursor = this.next_page;
1098
1091
  if (!cursor) {
@@ -1108,7 +1101,7 @@ var PageCursor = class extends AbstractPage {
1108
1101
  }
1109
1102
  };
1110
1103
 
1111
- // node_modules/@anthropic-ai/sdk/internal/uploads.mjs
1104
+ // ../../node_modules/@anthropic-ai/sdk/internal/uploads.mjs
1112
1105
  var checkFileSupport = () => {
1113
1106
  if (typeof File === "undefined") {
1114
1107
  const { process: process2 } = globalThis;
@@ -1186,7 +1179,7 @@ var addFormValue = async (form, key, value, stripFilenames) => {
1186
1179
  }
1187
1180
  };
1188
1181
 
1189
- // node_modules/@anthropic-ai/sdk/internal/to-file.mjs
1182
+ // ../../node_modules/@anthropic-ai/sdk/internal/to-file.mjs
1190
1183
  var isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function";
1191
1184
  var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
1192
1185
  var isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function";
@@ -1242,14 +1235,14 @@ function propsForError(value) {
1242
1235
  return `; props: [${props.map((p) => `"${p}"`).join(", ")}]`;
1243
1236
  }
1244
1237
 
1245
- // node_modules/@anthropic-ai/sdk/core/resource.mjs
1238
+ // ../../node_modules/@anthropic-ai/sdk/core/resource.mjs
1246
1239
  var APIResource = class {
1247
1240
  constructor(client) {
1248
1241
  this._client = client;
1249
1242
  }
1250
1243
  };
1251
1244
 
1252
- // node_modules/@anthropic-ai/sdk/internal/headers.mjs
1245
+ // ../../node_modules/@anthropic-ai/sdk/internal/headers.mjs
1253
1246
  var brand_privateNullableHeaders = /* @__PURE__ */ Symbol.for("brand.privateNullableHeaders");
1254
1247
  function* iterateHeaders(headers) {
1255
1248
  if (!headers)
@@ -1312,50 +1305,7 @@ var buildHeaders = (newHeaders) => {
1312
1305
  return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
1313
1306
  };
1314
1307
 
1315
- // node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs
1316
- var SDK_HELPER_SYMBOL = /* @__PURE__ */ Symbol("anthropic.sdk.stainlessHelper");
1317
- function wasCreatedByStainlessHelper(value) {
1318
- return typeof value === "object" && value !== null && SDK_HELPER_SYMBOL in value;
1319
- }
1320
- function collectStainlessHelpers(tools, messages) {
1321
- const helpers = /* @__PURE__ */ new Set();
1322
- if (tools) {
1323
- for (const tool of tools) {
1324
- if (wasCreatedByStainlessHelper(tool)) {
1325
- helpers.add(tool[SDK_HELPER_SYMBOL]);
1326
- }
1327
- }
1328
- }
1329
- if (messages) {
1330
- for (const message of messages) {
1331
- if (wasCreatedByStainlessHelper(message)) {
1332
- helpers.add(message[SDK_HELPER_SYMBOL]);
1333
- }
1334
- if (Array.isArray(message.content)) {
1335
- for (const block of message.content) {
1336
- if (wasCreatedByStainlessHelper(block)) {
1337
- helpers.add(block[SDK_HELPER_SYMBOL]);
1338
- }
1339
- }
1340
- }
1341
- }
1342
- }
1343
- return Array.from(helpers);
1344
- }
1345
- function stainlessHelperHeader(tools, messages) {
1346
- const helpers = collectStainlessHelpers(tools, messages);
1347
- if (helpers.length === 0)
1348
- return {};
1349
- return { "x-stainless-helper": helpers.join(", ") };
1350
- }
1351
- function stainlessHelperHeaderFromFile(file) {
1352
- if (wasCreatedByStainlessHelper(file)) {
1353
- return { "x-stainless-helper": file[SDK_HELPER_SYMBOL] };
1354
- }
1355
- return {};
1356
- }
1357
-
1358
- // node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
1308
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
1359
1309
  function encodeURIPath(str) {
1360
1310
  return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
1361
1311
  }
@@ -1410,7 +1360,184 @@ ${underline}`);
1410
1360
  };
1411
1361
  var path = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
1412
1362
 
1413
- // node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
1363
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs
1364
+ var Environments = class extends APIResource {
1365
+ /**
1366
+ * Create a new environment with the specified configuration.
1367
+ *
1368
+ * @example
1369
+ * ```ts
1370
+ * const betaEnvironment =
1371
+ * await client.beta.environments.create({
1372
+ * name: 'python-data-analysis',
1373
+ * });
1374
+ * ```
1375
+ */
1376
+ create(params, options) {
1377
+ const { betas, ...body } = params;
1378
+ return this._client.post("/v1/environments?beta=true", {
1379
+ body,
1380
+ ...options,
1381
+ headers: buildHeaders([
1382
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1383
+ options?.headers
1384
+ ])
1385
+ });
1386
+ }
1387
+ /**
1388
+ * Retrieve a specific environment by ID.
1389
+ *
1390
+ * @example
1391
+ * ```ts
1392
+ * const betaEnvironment =
1393
+ * await client.beta.environments.retrieve(
1394
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
1395
+ * );
1396
+ * ```
1397
+ */
1398
+ retrieve(environmentID, params = {}, options) {
1399
+ const { betas } = params ?? {};
1400
+ return this._client.get(path`/v1/environments/${environmentID}?beta=true`, {
1401
+ ...options,
1402
+ headers: buildHeaders([
1403
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1404
+ options?.headers
1405
+ ])
1406
+ });
1407
+ }
1408
+ /**
1409
+ * Update an existing environment's configuration.
1410
+ *
1411
+ * @example
1412
+ * ```ts
1413
+ * const betaEnvironment =
1414
+ * await client.beta.environments.update(
1415
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
1416
+ * );
1417
+ * ```
1418
+ */
1419
+ update(environmentID, params, options) {
1420
+ const { betas, ...body } = params;
1421
+ return this._client.post(path`/v1/environments/${environmentID}?beta=true`, {
1422
+ body,
1423
+ ...options,
1424
+ headers: buildHeaders([
1425
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1426
+ options?.headers
1427
+ ])
1428
+ });
1429
+ }
1430
+ /**
1431
+ * List environments with pagination support.
1432
+ *
1433
+ * @example
1434
+ * ```ts
1435
+ * // Automatically fetches more pages as needed.
1436
+ * for await (const betaEnvironment of client.beta.environments.list()) {
1437
+ * // ...
1438
+ * }
1439
+ * ```
1440
+ */
1441
+ list(params = {}, options) {
1442
+ const { betas, ...query } = params ?? {};
1443
+ return this._client.getAPIList("/v1/environments?beta=true", PageCursor, {
1444
+ query,
1445
+ ...options,
1446
+ headers: buildHeaders([
1447
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1448
+ options?.headers
1449
+ ])
1450
+ });
1451
+ }
1452
+ /**
1453
+ * Delete an environment by ID. Returns a confirmation of the deletion.
1454
+ *
1455
+ * @example
1456
+ * ```ts
1457
+ * const betaEnvironmentDeleteResponse =
1458
+ * await client.beta.environments.delete(
1459
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
1460
+ * );
1461
+ * ```
1462
+ */
1463
+ delete(environmentID, params = {}, options) {
1464
+ const { betas } = params ?? {};
1465
+ return this._client.delete(path`/v1/environments/${environmentID}?beta=true`, {
1466
+ ...options,
1467
+ headers: buildHeaders([
1468
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1469
+ options?.headers
1470
+ ])
1471
+ });
1472
+ }
1473
+ /**
1474
+ * Archive an environment by ID. Archived environments cannot be used to create new
1475
+ * sessions.
1476
+ *
1477
+ * @example
1478
+ * ```ts
1479
+ * const betaEnvironment =
1480
+ * await client.beta.environments.archive(
1481
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
1482
+ * );
1483
+ * ```
1484
+ */
1485
+ archive(environmentID, params = {}, options) {
1486
+ const { betas } = params ?? {};
1487
+ return this._client.post(path`/v1/environments/${environmentID}/archive?beta=true`, {
1488
+ ...options,
1489
+ headers: buildHeaders([
1490
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1491
+ options?.headers
1492
+ ])
1493
+ });
1494
+ }
1495
+ };
1496
+
1497
+ // ../../node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs
1498
+ var SDK_HELPER_SYMBOL = /* @__PURE__ */ Symbol("anthropic.sdk.stainlessHelper");
1499
+ function wasCreatedByStainlessHelper(value) {
1500
+ return typeof value === "object" && value !== null && SDK_HELPER_SYMBOL in value;
1501
+ }
1502
+ function collectStainlessHelpers(tools, messages) {
1503
+ const helpers = /* @__PURE__ */ new Set();
1504
+ if (tools) {
1505
+ for (const tool of tools) {
1506
+ if (wasCreatedByStainlessHelper(tool)) {
1507
+ helpers.add(tool[SDK_HELPER_SYMBOL]);
1508
+ }
1509
+ }
1510
+ }
1511
+ if (messages) {
1512
+ for (const message of messages) {
1513
+ if (wasCreatedByStainlessHelper(message)) {
1514
+ helpers.add(message[SDK_HELPER_SYMBOL]);
1515
+ }
1516
+ if (Array.isArray(message.content)) {
1517
+ for (const block of message.content) {
1518
+ if (wasCreatedByStainlessHelper(block)) {
1519
+ helpers.add(block[SDK_HELPER_SYMBOL]);
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ }
1525
+ return Array.from(helpers);
1526
+ }
1527
+ function stainlessHelperHeader(tools, messages) {
1528
+ const helpers = collectStainlessHelpers(tools, messages);
1529
+ if (helpers.length === 0)
1530
+ return {};
1531
+ return { "x-stainless-helper": helpers.join(", ") };
1532
+ }
1533
+ function stainlessHelperHeaderFromFile(file) {
1534
+ if (wasCreatedByStainlessHelper(file)) {
1535
+ return { "x-stainless-helper": file[SDK_HELPER_SYMBOL] };
1536
+ }
1537
+ return {};
1538
+ }
1539
+
1540
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
1414
1541
  var Files = class extends APIResource {
1415
1542
  /**
1416
1543
  * List Files
@@ -1524,7 +1651,7 @@ var Files = class extends APIResource {
1524
1651
  }
1525
1652
  };
1526
1653
 
1527
- // node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
1654
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
1528
1655
  var Models = class extends APIResource {
1529
1656
  /**
1530
1657
  * Get a specific model.
@@ -1576,61 +1703,209 @@ var Models = class extends APIResource {
1576
1703
  }
1577
1704
  };
1578
1705
 
1579
- // node_modules/@anthropic-ai/sdk/internal/constants.mjs
1580
- var MODEL_NONSTREAMING_TOKENS = {
1581
- "claude-opus-4-20250514": 8192,
1582
- "claude-opus-4-0": 8192,
1583
- "claude-4-opus-20250514": 8192,
1584
- "anthropic.claude-opus-4-20250514-v1:0": 8192,
1585
- "claude-opus-4@20250514": 8192,
1586
- "claude-opus-4-1-20250805": 8192,
1587
- "anthropic.claude-opus-4-1-20250805-v1:0": 8192,
1588
- "claude-opus-4-1@20250805": 8192
1706
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
1707
+ var Versions = class extends APIResource {
1708
+ /**
1709
+ * List Agent Versions
1710
+ *
1711
+ * @example
1712
+ * ```ts
1713
+ * // Automatically fetches more pages as needed.
1714
+ * for await (const betaManagedAgentsAgent of client.beta.agents.versions.list(
1715
+ * 'agent_011CZkYpogX7uDKUyvBTophP',
1716
+ * )) {
1717
+ * // ...
1718
+ * }
1719
+ * ```
1720
+ */
1721
+ list(agentID, params = {}, options) {
1722
+ const { betas, ...query } = params ?? {};
1723
+ return this._client.getAPIList(path`/v1/agents/${agentID}/versions?beta=true`, PageCursor, {
1724
+ query,
1725
+ ...options,
1726
+ headers: buildHeaders([
1727
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1728
+ options?.headers
1729
+ ])
1730
+ });
1731
+ }
1589
1732
  };
1590
1733
 
1591
- // node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
1592
- function getOutputFormat(params) {
1593
- return params?.output_format ?? params?.output_config?.format;
1594
- }
1595
- function maybeParseBetaMessage(message, params, opts) {
1596
- const outputFormat = getOutputFormat(params);
1597
- if (!params || !("parse" in (outputFormat ?? {}))) {
1598
- return {
1599
- ...message,
1600
- content: message.content.map((block) => {
1601
- if (block.type === "text") {
1602
- const parsedBlock = Object.defineProperty({ ...block }, "parsed_output", {
1603
- value: null,
1604
- enumerable: false
1605
- });
1606
- return Object.defineProperty(parsedBlock, "parsed", {
1607
- get() {
1608
- opts.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead.");
1609
- return null;
1610
- },
1611
- enumerable: false
1612
- });
1613
- }
1614
- return block;
1615
- }),
1616
- parsed_output: null
1617
- };
1734
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
1735
+ var Agents = class extends APIResource {
1736
+ constructor() {
1737
+ super(...arguments);
1738
+ this.versions = new Versions(this._client);
1618
1739
  }
1619
- return parseBetaMessage(message, params, opts);
1620
- }
1621
- function parseBetaMessage(message, params, opts) {
1622
- let firstParsedOutput = null;
1623
- const content = message.content.map((block) => {
1624
- if (block.type === "text") {
1625
- const parsedOutput = parseBetaOutputFormat(params, block.text);
1626
- if (firstParsedOutput === null) {
1627
- firstParsedOutput = parsedOutput;
1628
- }
1629
- const parsedBlock = Object.defineProperty({ ...block }, "parsed_output", {
1630
- value: parsedOutput,
1631
- enumerable: false
1632
- });
1633
- return Object.defineProperty(parsedBlock, "parsed", {
1740
+ /**
1741
+ * Create Agent
1742
+ *
1743
+ * @example
1744
+ * ```ts
1745
+ * const betaManagedAgentsAgent =
1746
+ * await client.beta.agents.create({
1747
+ * model: 'claude-sonnet-4-6',
1748
+ * name: 'My First Agent',
1749
+ * });
1750
+ * ```
1751
+ */
1752
+ create(params, options) {
1753
+ const { betas, ...body } = params;
1754
+ return this._client.post("/v1/agents?beta=true", {
1755
+ body,
1756
+ ...options,
1757
+ headers: buildHeaders([
1758
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1759
+ options?.headers
1760
+ ])
1761
+ });
1762
+ }
1763
+ /**
1764
+ * Get Agent
1765
+ *
1766
+ * @example
1767
+ * ```ts
1768
+ * const betaManagedAgentsAgent =
1769
+ * await client.beta.agents.retrieve(
1770
+ * 'agent_011CZkYpogX7uDKUyvBTophP',
1771
+ * );
1772
+ * ```
1773
+ */
1774
+ retrieve(agentID, params = {}, options) {
1775
+ const { betas, ...query } = params ?? {};
1776
+ return this._client.get(path`/v1/agents/${agentID}?beta=true`, {
1777
+ query,
1778
+ ...options,
1779
+ headers: buildHeaders([
1780
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1781
+ options?.headers
1782
+ ])
1783
+ });
1784
+ }
1785
+ /**
1786
+ * Update Agent
1787
+ *
1788
+ * @example
1789
+ * ```ts
1790
+ * const betaManagedAgentsAgent =
1791
+ * await client.beta.agents.update(
1792
+ * 'agent_011CZkYpogX7uDKUyvBTophP',
1793
+ * { version: 1 },
1794
+ * );
1795
+ * ```
1796
+ */
1797
+ update(agentID, params, options) {
1798
+ const { betas, ...body } = params;
1799
+ return this._client.post(path`/v1/agents/${agentID}?beta=true`, {
1800
+ body,
1801
+ ...options,
1802
+ headers: buildHeaders([
1803
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1804
+ options?.headers
1805
+ ])
1806
+ });
1807
+ }
1808
+ /**
1809
+ * List Agents
1810
+ *
1811
+ * @example
1812
+ * ```ts
1813
+ * // Automatically fetches more pages as needed.
1814
+ * for await (const betaManagedAgentsAgent of client.beta.agents.list()) {
1815
+ * // ...
1816
+ * }
1817
+ * ```
1818
+ */
1819
+ list(params = {}, options) {
1820
+ const { betas, ...query } = params ?? {};
1821
+ return this._client.getAPIList("/v1/agents?beta=true", PageCursor, {
1822
+ query,
1823
+ ...options,
1824
+ headers: buildHeaders([
1825
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1826
+ options?.headers
1827
+ ])
1828
+ });
1829
+ }
1830
+ /**
1831
+ * Archive Agent
1832
+ *
1833
+ * @example
1834
+ * ```ts
1835
+ * const betaManagedAgentsAgent =
1836
+ * await client.beta.agents.archive(
1837
+ * 'agent_011CZkYpogX7uDKUyvBTophP',
1838
+ * );
1839
+ * ```
1840
+ */
1841
+ archive(agentID, params = {}, options) {
1842
+ const { betas } = params ?? {};
1843
+ return this._client.post(path`/v1/agents/${agentID}/archive?beta=true`, {
1844
+ ...options,
1845
+ headers: buildHeaders([
1846
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
1847
+ options?.headers
1848
+ ])
1849
+ });
1850
+ }
1851
+ };
1852
+ Agents.Versions = Versions;
1853
+
1854
+ // ../../node_modules/@anthropic-ai/sdk/internal/constants.mjs
1855
+ var MODEL_NONSTREAMING_TOKENS = {
1856
+ "claude-opus-4-20250514": 8192,
1857
+ "claude-opus-4-0": 8192,
1858
+ "claude-4-opus-20250514": 8192,
1859
+ "anthropic.claude-opus-4-20250514-v1:0": 8192,
1860
+ "claude-opus-4@20250514": 8192,
1861
+ "claude-opus-4-1-20250805": 8192,
1862
+ "anthropic.claude-opus-4-1-20250805-v1:0": 8192,
1863
+ "claude-opus-4-1@20250805": 8192
1864
+ };
1865
+
1866
+ // ../../node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
1867
+ function getOutputFormat(params) {
1868
+ return params?.output_format ?? params?.output_config?.format;
1869
+ }
1870
+ function maybeParseBetaMessage(message, params, opts) {
1871
+ const outputFormat = getOutputFormat(params);
1872
+ if (!params || !("parse" in (outputFormat ?? {}))) {
1873
+ return {
1874
+ ...message,
1875
+ content: message.content.map((block) => {
1876
+ if (block.type === "text") {
1877
+ const parsedBlock = Object.defineProperty({ ...block }, "parsed_output", {
1878
+ value: null,
1879
+ enumerable: false
1880
+ });
1881
+ return Object.defineProperty(parsedBlock, "parsed", {
1882
+ get() {
1883
+ opts.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead.");
1884
+ return null;
1885
+ },
1886
+ enumerable: false
1887
+ });
1888
+ }
1889
+ return block;
1890
+ }),
1891
+ parsed_output: null
1892
+ };
1893
+ }
1894
+ return parseBetaMessage(message, params, opts);
1895
+ }
1896
+ function parseBetaMessage(message, params, opts) {
1897
+ let firstParsedOutput = null;
1898
+ const content = message.content.map((block) => {
1899
+ if (block.type === "text") {
1900
+ const parsedOutput = parseBetaOutputFormat(params, block.text);
1901
+ if (firstParsedOutput === null) {
1902
+ firstParsedOutput = parsedOutput;
1903
+ }
1904
+ const parsedBlock = Object.defineProperty({ ...block }, "parsed_output", {
1905
+ value: parsedOutput,
1906
+ enumerable: false
1907
+ });
1908
+ return Object.defineProperty(parsedBlock, "parsed", {
1634
1909
  get() {
1635
1910
  opts.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead.");
1636
1911
  return parsedOutput;
@@ -1661,7 +1936,7 @@ function parseBetaOutputFormat(params, content) {
1661
1936
  }
1662
1937
  }
1663
1938
 
1664
- // node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
1939
+ // ../../node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
1665
1940
  var tokenize = (input) => {
1666
1941
  let current = 0;
1667
1942
  let tokens = [];
@@ -1881,7 +2156,7 @@ var generate = (tokens) => {
1881
2156
  };
1882
2157
  var partialParse = (input) => JSON.parse(generate(unstrip(strip(tokenize(input)))));
1883
2158
 
1884
- // node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
2159
+ // ../../node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
1885
2160
  var _BetaMessageStream_instances;
1886
2161
  var _BetaMessageStream_currentMessageSnapshot;
1887
2162
  var _BetaMessageStream_params;
@@ -2496,7 +2771,7 @@ var BetaMessageStream = class _BetaMessageStream {
2496
2771
  function checkNever(x) {
2497
2772
  }
2498
2773
 
2499
- // node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
2774
+ // ../../node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
2500
2775
  var ToolError = class extends Error {
2501
2776
  constructor(content) {
2502
2777
  const message = typeof content === "string" ? content : content.map((block) => {
@@ -2510,7 +2785,7 @@ var ToolError = class extends Error {
2510
2785
  }
2511
2786
  };
2512
2787
 
2513
- // node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
2788
+ // ../../node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
2514
2789
  var DEFAULT_TOKEN_THRESHOLD = 1e5;
2515
2790
  var 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:
2516
2791
  1. Task Overview
@@ -2536,7 +2811,7 @@ Any promises made to the user
2536
2811
  Be concise but complete\u2014err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
2537
2812
  Wrap your summary in <summary></summary> tags.`;
2538
2813
 
2539
- // node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
2814
+ // ../../node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
2540
2815
  var _BetaToolRunner_instances;
2541
2816
  var _BetaToolRunner_consumed;
2542
2817
  var _BetaToolRunner_mutated;
@@ -2585,6 +2860,9 @@ var BetaToolRunner = class {
2585
2860
  headers: buildHeaders([{ "x-stainless-helper": helperValue }, options?.headers])
2586
2861
  }, "f");
2587
2862
  __classPrivateFieldSet(this, _BetaToolRunner_completion, promiseWithResolvers(), "f");
2863
+ if (params.compactionControl?.enabled) {
2864
+ console.warn('Anthropic: The `compactionControl` parameter is deprecated and will be removed in a future version. Use server-side compaction instead by passing `edits: [{ type: "compact_20260112" }]` in the params passed to `toolRunner()`. See https://platform.claude.com/docs/en/build-with-claude/compaction');
2865
+ }
2588
2866
  }
2589
2867
  async *[(_BetaToolRunner_consumed = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_mutated = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_state = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_options = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_message = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_toolResponse = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_completion = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_iterationCount = /* @__PURE__ */ new WeakMap(), _BetaToolRunner_instances = /* @__PURE__ */ new WeakSet(), _BetaToolRunner_checkAndCompact = async function _BetaToolRunner_checkAndCompact2() {
2590
2868
  const compactionControl = __classPrivateFieldGet(this, _BetaToolRunner_state, "f").params.compactionControl;
@@ -2635,7 +2913,8 @@ var BetaToolRunner = class {
2635
2913
  ],
2636
2914
  max_tokens: __classPrivateFieldGet(this, _BetaToolRunner_state, "f").params.max_tokens
2637
2915
  }, {
2638
- headers: { "x-stainless-helper": "compaction" }
2916
+ signal: __classPrivateFieldGet(this, _BetaToolRunner_options, "f").signal,
2917
+ headers: buildHeaders([__classPrivateFieldGet(this, _BetaToolRunner_options, "f").headers, { "x-stainless-helper": "compaction" }])
2639
2918
  });
2640
2919
  if (response.content[0]?.type !== "text") {
2641
2920
  throw new AnthropicError("Expected text response for compaction");
@@ -2718,6 +2997,13 @@ var BetaToolRunner = class {
2718
2997
  __classPrivateFieldSet(this, _BetaToolRunner_mutated, true, "f");
2719
2998
  __classPrivateFieldSet(this, _BetaToolRunner_toolResponse, void 0, "f");
2720
2999
  }
3000
+ setRequestOptions(optionsOrMutator) {
3001
+ if (typeof optionsOrMutator === "function") {
3002
+ __classPrivateFieldSet(this, _BetaToolRunner_options, optionsOrMutator(__classPrivateFieldGet(this, _BetaToolRunner_options, "f")), "f");
3003
+ } else {
3004
+ __classPrivateFieldSet(this, _BetaToolRunner_options, { ...__classPrivateFieldGet(this, _BetaToolRunner_options, "f"), ...optionsOrMutator }, "f");
3005
+ }
3006
+ }
2721
3007
  /**
2722
3008
  * Get the tool response for the last message from the assistant.
2723
3009
  * Avoids redundant tool executions by caching results.
@@ -2730,12 +3016,12 @@ var BetaToolRunner = class {
2730
3016
  * console.log('Tool results:', toolResponse.content);
2731
3017
  * }
2732
3018
  */
2733
- async generateToolResponse() {
3019
+ async generateToolResponse(signal = __classPrivateFieldGet(this, _BetaToolRunner_options, "f").signal) {
2734
3020
  const message = await __classPrivateFieldGet(this, _BetaToolRunner_message, "f") ?? this.params.messages.at(-1);
2735
3021
  if (!message) {
2736
3022
  return null;
2737
3023
  }
2738
- return __classPrivateFieldGet(this, _BetaToolRunner_instances, "m", _BetaToolRunner_generateToolResponse).call(this, message);
3024
+ return __classPrivateFieldGet(this, _BetaToolRunner_instances, "m", _BetaToolRunner_generateToolResponse).call(this, message, signal);
2739
3025
  }
2740
3026
  /**
2741
3027
  * Wait for the async iterator to complete. This works even if the async iterator hasn't yet started, and
@@ -2820,14 +3106,17 @@ var BetaToolRunner = class {
2820
3106
  return this.runUntilDone().then(onfulfilled, onrejected);
2821
3107
  }
2822
3108
  };
2823
- _BetaToolRunner_generateToolResponse = async function _BetaToolRunner_generateToolResponse2(lastMessage) {
3109
+ _BetaToolRunner_generateToolResponse = async function _BetaToolRunner_generateToolResponse2(lastMessage, signal = __classPrivateFieldGet(this, _BetaToolRunner_options, "f").signal) {
2824
3110
  if (__classPrivateFieldGet(this, _BetaToolRunner_toolResponse, "f") !== void 0) {
2825
3111
  return __classPrivateFieldGet(this, _BetaToolRunner_toolResponse, "f");
2826
3112
  }
2827
- __classPrivateFieldSet(this, _BetaToolRunner_toolResponse, generateToolResponse(__classPrivateFieldGet(this, _BetaToolRunner_state, "f").params, lastMessage), "f");
3113
+ __classPrivateFieldSet(this, _BetaToolRunner_toolResponse, generateToolResponse(__classPrivateFieldGet(this, _BetaToolRunner_state, "f").params, lastMessage, {
3114
+ ...__classPrivateFieldGet(this, _BetaToolRunner_options, "f"),
3115
+ signal
3116
+ }), "f");
2828
3117
  return __classPrivateFieldGet(this, _BetaToolRunner_toolResponse, "f");
2829
3118
  };
2830
- async function generateToolResponse(params, lastMessage = params.messages.at(-1)) {
3119
+ async function generateToolResponse(params, lastMessage = params.messages.at(-1), requestOptions) {
2831
3120
  if (!lastMessage || lastMessage.role !== "assistant" || !lastMessage.content || typeof lastMessage.content === "string") {
2832
3121
  return null;
2833
3122
  }
@@ -2850,7 +3139,10 @@ async function generateToolResponse(params, lastMessage = params.messages.at(-1)
2850
3139
  if ("parse" in tool && tool.parse) {
2851
3140
  input = tool.parse(input);
2852
3141
  }
2853
- const result = await tool.run(input);
3142
+ const result = await tool.run(input, {
3143
+ toolUseBlock: toolUse,
3144
+ signal: requestOptions?.signal
3145
+ });
2854
3146
  return {
2855
3147
  type: "tool_result",
2856
3148
  tool_use_id: toolUse.id,
@@ -2871,7 +3163,7 @@ async function generateToolResponse(params, lastMessage = params.messages.at(-1)
2871
3163
  };
2872
3164
  }
2873
3165
 
2874
- // node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
3166
+ // ../../node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
2875
3167
  var JSONLDecoder = class _JSONLDecoder {
2876
3168
  constructor(iterator, controller) {
2877
3169
  this.iterator = iterator;
@@ -2903,7 +3195,7 @@ var JSONLDecoder = class _JSONLDecoder {
2903
3195
  }
2904
3196
  };
2905
3197
 
2906
- // node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
3198
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
2907
3199
  var Batches = class extends APIResource {
2908
3200
  /**
2909
3201
  * Send a batch of Message creation requests.
@@ -3095,7 +3387,7 @@ var Batches = class extends APIResource {
3095
3387
  }
3096
3388
  };
3097
3389
 
3098
- // node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
3390
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
3099
3391
  var DEPRECATED_MODELS = {
3100
3392
  "claude-1.3": "November 6th, 2024",
3101
3393
  "claude-1.3-100k": "November 6th, 2024",
@@ -3188,7 +3480,7 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
3188
3480
  * ```ts
3189
3481
  * const betaMessageTokensCount =
3190
3482
  * await client.beta.messages.countTokens({
3191
- * messages: [{ content: 'string', role: 'user' }],
3483
+ * messages: [{ content: 'Hello, world', role: 'user' }],
3192
3484
  * model: 'claude-opus-4-6',
3193
3485
  * });
3194
3486
  * ```
@@ -3229,199 +3521,842 @@ Messages.Batches = Batches;
3229
3521
  Messages.BetaToolRunner = BetaToolRunner;
3230
3522
  Messages.ToolError = ToolError;
3231
3523
 
3232
- // node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
3233
- var Versions = class extends APIResource {
3524
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
3525
+ var Events = class extends APIResource {
3234
3526
  /**
3235
- * Create Skill Version
3527
+ * List Events
3236
3528
  *
3237
3529
  * @example
3238
3530
  * ```ts
3239
- * const version = await client.beta.skills.versions.create(
3240
- * 'skill_id',
3241
- * );
3531
+ * // Automatically fetches more pages as needed.
3532
+ * for await (const betaManagedAgentsSessionEvent of client.beta.sessions.events.list(
3533
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3534
+ * )) {
3535
+ * // ...
3536
+ * }
3242
3537
  * ```
3243
3538
  */
3244
- create(skillID, params = {}, options) {
3245
- const { betas, ...body } = params ?? {};
3246
- return this._client.post(path`/v1/skills/${skillID}/versions?beta=true`, multipartFormRequestOptions({
3247
- body,
3539
+ list(sessionID, params = {}, options) {
3540
+ const { betas, ...query } = params ?? {};
3541
+ return this._client.getAPIList(path`/v1/sessions/${sessionID}/events?beta=true`, PageCursor, {
3542
+ query,
3248
3543
  ...options,
3249
3544
  headers: buildHeaders([
3250
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3545
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3251
3546
  options?.headers
3252
3547
  ])
3253
- }, this._client));
3548
+ });
3254
3549
  }
3255
3550
  /**
3256
- * Get Skill Version
3551
+ * Send Events
3257
3552
  *
3258
3553
  * @example
3259
3554
  * ```ts
3260
- * const version = await client.beta.skills.versions.retrieve(
3261
- * 'version',
3262
- * { skill_id: 'skill_id' },
3263
- * );
3555
+ * const betaManagedAgentsSendSessionEvents =
3556
+ * await client.beta.sessions.events.send(
3557
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3558
+ * {
3559
+ * events: [
3560
+ * {
3561
+ * content: [
3562
+ * {
3563
+ * text: 'Where is my order #1234?',
3564
+ * type: 'text',
3565
+ * },
3566
+ * ],
3567
+ * type: 'user.message',
3568
+ * },
3569
+ * ],
3570
+ * },
3571
+ * );
3264
3572
  * ```
3265
3573
  */
3266
- retrieve(version, params, options) {
3267
- const { skill_id, betas } = params;
3268
- return this._client.get(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
3574
+ send(sessionID, params, options) {
3575
+ const { betas, ...body } = params;
3576
+ return this._client.post(path`/v1/sessions/${sessionID}/events?beta=true`, {
3577
+ body,
3269
3578
  ...options,
3270
3579
  headers: buildHeaders([
3271
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3580
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3272
3581
  options?.headers
3273
3582
  ])
3274
3583
  });
3275
3584
  }
3276
3585
  /**
3277
- * List Skill Versions
3586
+ * Stream Events
3278
3587
  *
3279
3588
  * @example
3280
3589
  * ```ts
3281
- * // Automatically fetches more pages as needed.
3282
- * for await (const versionListResponse of client.beta.skills.versions.list(
3283
- * 'skill_id',
3284
- * )) {
3285
- * // ...
3286
- * }
3590
+ * const betaManagedAgentsStreamSessionEvents =
3591
+ * await client.beta.sessions.events.stream(
3592
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3593
+ * );
3287
3594
  * ```
3288
3595
  */
3289
- list(skillID, params = {}, options) {
3290
- const { betas, ...query } = params ?? {};
3291
- return this._client.getAPIList(path`/v1/skills/${skillID}/versions?beta=true`, PageCursor, {
3292
- query,
3596
+ stream(sessionID, params = {}, options) {
3597
+ const { betas } = params ?? {};
3598
+ return this._client.get(path`/v1/sessions/${sessionID}/events/stream?beta=true`, {
3293
3599
  ...options,
3294
3600
  headers: buildHeaders([
3295
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3601
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3296
3602
  options?.headers
3297
- ])
3603
+ ]),
3604
+ stream: true
3298
3605
  });
3299
3606
  }
3607
+ };
3608
+
3609
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
3610
+ var Resources = class extends APIResource {
3300
3611
  /**
3301
- * Delete Skill Version
3612
+ * Get Session Resource
3302
3613
  *
3303
3614
  * @example
3304
3615
  * ```ts
3305
- * const version = await client.beta.skills.versions.delete(
3306
- * 'version',
3307
- * { skill_id: 'skill_id' },
3308
- * );
3616
+ * const resource =
3617
+ * await client.beta.sessions.resources.retrieve(
3618
+ * 'sesrsc_011CZkZBJq5dWxk9fVLNcPht',
3619
+ * { session_id: 'sesn_011CZkZAtmR3yMPDzynEDxu7' },
3620
+ * );
3309
3621
  * ```
3310
3622
  */
3311
- delete(version, params, options) {
3312
- const { skill_id, betas } = params;
3313
- return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
3623
+ retrieve(resourceID, params, options) {
3624
+ const { session_id, betas } = params;
3625
+ return this._client.get(path`/v1/sessions/${session_id}/resources/${resourceID}?beta=true`, {
3314
3626
  ...options,
3315
3627
  headers: buildHeaders([
3316
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3628
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3317
3629
  options?.headers
3318
3630
  ])
3319
3631
  });
3320
3632
  }
3321
- };
3322
-
3323
- // node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
3324
- var Skills = class extends APIResource {
3325
- constructor() {
3326
- super(...arguments);
3327
- this.versions = new Versions(this._client);
3328
- }
3329
3633
  /**
3330
- * Create Skill
3634
+ * Update Session Resource
3331
3635
  *
3332
3636
  * @example
3333
3637
  * ```ts
3334
- * const skill = await client.beta.skills.create();
3638
+ * const resource =
3639
+ * await client.beta.sessions.resources.update(
3640
+ * 'sesrsc_011CZkZBJq5dWxk9fVLNcPht',
3641
+ * {
3642
+ * session_id: 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3643
+ * authorization_token: 'ghp_exampletoken',
3644
+ * },
3645
+ * );
3335
3646
  * ```
3336
3647
  */
3337
- create(params = {}, options) {
3338
- const { betas, ...body } = params ?? {};
3339
- return this._client.post("/v1/skills?beta=true", multipartFormRequestOptions({
3648
+ update(resourceID, params, options) {
3649
+ const { session_id, betas, ...body } = params;
3650
+ return this._client.post(path`/v1/sessions/${session_id}/resources/${resourceID}?beta=true`, {
3340
3651
  body,
3341
3652
  ...options,
3342
3653
  headers: buildHeaders([
3343
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3654
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3344
3655
  options?.headers
3345
3656
  ])
3346
- }, this._client, false));
3657
+ });
3347
3658
  }
3348
3659
  /**
3349
- * Get Skill
3660
+ * List Session Resources
3350
3661
  *
3351
3662
  * @example
3352
3663
  * ```ts
3353
- * const skill = await client.beta.skills.retrieve('skill_id');
3664
+ * // Automatically fetches more pages as needed.
3665
+ * for await (const betaManagedAgentsSessionResource of client.beta.sessions.resources.list(
3666
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3667
+ * )) {
3668
+ * // ...
3669
+ * }
3354
3670
  * ```
3355
3671
  */
3356
- retrieve(skillID, params = {}, options) {
3357
- const { betas } = params ?? {};
3358
- return this._client.get(path`/v1/skills/${skillID}?beta=true`, {
3672
+ list(sessionID, params = {}, options) {
3673
+ const { betas, ...query } = params ?? {};
3674
+ return this._client.getAPIList(path`/v1/sessions/${sessionID}/resources?beta=true`, PageCursor, {
3675
+ query,
3359
3676
  ...options,
3360
3677
  headers: buildHeaders([
3361
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3678
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3362
3679
  options?.headers
3363
3680
  ])
3364
3681
  });
3365
3682
  }
3366
3683
  /**
3367
- * List Skills
3684
+ * Delete Session Resource
3368
3685
  *
3369
3686
  * @example
3370
3687
  * ```ts
3371
- * // Automatically fetches more pages as needed.
3372
- * for await (const skillListResponse of client.beta.skills.list()) {
3373
- * // ...
3374
- * }
3688
+ * const betaManagedAgentsDeleteSessionResource =
3689
+ * await client.beta.sessions.resources.delete(
3690
+ * 'sesrsc_011CZkZBJq5dWxk9fVLNcPht',
3691
+ * { session_id: 'sesn_011CZkZAtmR3yMPDzynEDxu7' },
3692
+ * );
3375
3693
  * ```
3376
3694
  */
3377
- list(params = {}, options) {
3378
- const { betas, ...query } = params ?? {};
3379
- return this._client.getAPIList("/v1/skills?beta=true", PageCursor, {
3380
- query,
3695
+ delete(resourceID, params, options) {
3696
+ const { session_id, betas } = params;
3697
+ return this._client.delete(path`/v1/sessions/${session_id}/resources/${resourceID}?beta=true`, {
3381
3698
  ...options,
3382
3699
  headers: buildHeaders([
3383
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3700
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3384
3701
  options?.headers
3385
3702
  ])
3386
3703
  });
3387
3704
  }
3388
3705
  /**
3389
- * Delete Skill
3706
+ * Add Session Resource
3390
3707
  *
3391
3708
  * @example
3392
3709
  * ```ts
3393
- * const skill = await client.beta.skills.delete('skill_id');
3710
+ * const betaManagedAgentsFileResource =
3711
+ * await client.beta.sessions.resources.add(
3712
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3713
+ * {
3714
+ * file_id: 'file_011CNha8iCJcU1wXNR6q4V8w',
3715
+ * type: 'file',
3716
+ * },
3717
+ * );
3394
3718
  * ```
3395
3719
  */
3396
- delete(skillID, params = {}, options) {
3397
- const { betas } = params ?? {};
3398
- return this._client.delete(path`/v1/skills/${skillID}?beta=true`, {
3720
+ add(sessionID, params, options) {
3721
+ const { betas, ...body } = params;
3722
+ return this._client.post(path`/v1/sessions/${sessionID}/resources?beta=true`, {
3723
+ body,
3399
3724
  ...options,
3400
3725
  headers: buildHeaders([
3401
- { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3726
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3727
+ options?.headers
3728
+ ])
3729
+ });
3730
+ }
3731
+ };
3732
+
3733
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
3734
+ var Sessions = class extends APIResource {
3735
+ constructor() {
3736
+ super(...arguments);
3737
+ this.events = new Events(this._client);
3738
+ this.resources = new Resources(this._client);
3739
+ }
3740
+ /**
3741
+ * Create Session
3742
+ *
3743
+ * @example
3744
+ * ```ts
3745
+ * const betaManagedAgentsSession =
3746
+ * await client.beta.sessions.create({
3747
+ * agent: 'agent_011CZkYpogX7uDKUyvBTophP',
3748
+ * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
3749
+ * });
3750
+ * ```
3751
+ */
3752
+ create(params, options) {
3753
+ const { betas, ...body } = params;
3754
+ return this._client.post("/v1/sessions?beta=true", {
3755
+ body,
3756
+ ...options,
3757
+ headers: buildHeaders([
3758
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3759
+ options?.headers
3760
+ ])
3761
+ });
3762
+ }
3763
+ /**
3764
+ * Get Session
3765
+ *
3766
+ * @example
3767
+ * ```ts
3768
+ * const betaManagedAgentsSession =
3769
+ * await client.beta.sessions.retrieve(
3770
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3771
+ * );
3772
+ * ```
3773
+ */
3774
+ retrieve(sessionID, params = {}, options) {
3775
+ const { betas } = params ?? {};
3776
+ return this._client.get(path`/v1/sessions/${sessionID}?beta=true`, {
3777
+ ...options,
3778
+ headers: buildHeaders([
3779
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3780
+ options?.headers
3781
+ ])
3782
+ });
3783
+ }
3784
+ /**
3785
+ * Update Session
3786
+ *
3787
+ * @example
3788
+ * ```ts
3789
+ * const betaManagedAgentsSession =
3790
+ * await client.beta.sessions.update(
3791
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3792
+ * );
3793
+ * ```
3794
+ */
3795
+ update(sessionID, params, options) {
3796
+ const { betas, ...body } = params;
3797
+ return this._client.post(path`/v1/sessions/${sessionID}?beta=true`, {
3798
+ body,
3799
+ ...options,
3800
+ headers: buildHeaders([
3801
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3802
+ options?.headers
3803
+ ])
3804
+ });
3805
+ }
3806
+ /**
3807
+ * List Sessions
3808
+ *
3809
+ * @example
3810
+ * ```ts
3811
+ * // Automatically fetches more pages as needed.
3812
+ * for await (const betaManagedAgentsSession of client.beta.sessions.list()) {
3813
+ * // ...
3814
+ * }
3815
+ * ```
3816
+ */
3817
+ list(params = {}, options) {
3818
+ const { betas, ...query } = params ?? {};
3819
+ return this._client.getAPIList("/v1/sessions?beta=true", PageCursor, {
3820
+ query,
3821
+ ...options,
3822
+ headers: buildHeaders([
3823
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3824
+ options?.headers
3825
+ ])
3826
+ });
3827
+ }
3828
+ /**
3829
+ * Delete Session
3830
+ *
3831
+ * @example
3832
+ * ```ts
3833
+ * const betaManagedAgentsDeletedSession =
3834
+ * await client.beta.sessions.delete(
3835
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3836
+ * );
3837
+ * ```
3838
+ */
3839
+ delete(sessionID, params = {}, options) {
3840
+ const { betas } = params ?? {};
3841
+ return this._client.delete(path`/v1/sessions/${sessionID}?beta=true`, {
3842
+ ...options,
3843
+ headers: buildHeaders([
3844
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3845
+ options?.headers
3846
+ ])
3847
+ });
3848
+ }
3849
+ /**
3850
+ * Archive Session
3851
+ *
3852
+ * @example
3853
+ * ```ts
3854
+ * const betaManagedAgentsSession =
3855
+ * await client.beta.sessions.archive(
3856
+ * 'sesn_011CZkZAtmR3yMPDzynEDxu7',
3857
+ * );
3858
+ * ```
3859
+ */
3860
+ archive(sessionID, params = {}, options) {
3861
+ const { betas } = params ?? {};
3862
+ return this._client.post(path`/v1/sessions/${sessionID}/archive?beta=true`, {
3863
+ ...options,
3864
+ headers: buildHeaders([
3865
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3866
+ options?.headers
3867
+ ])
3868
+ });
3869
+ }
3870
+ };
3871
+ Sessions.Events = Events;
3872
+ Sessions.Resources = Resources;
3873
+
3874
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
3875
+ var Versions2 = class extends APIResource {
3876
+ /**
3877
+ * Create Skill Version
3878
+ *
3879
+ * @example
3880
+ * ```ts
3881
+ * const version = await client.beta.skills.versions.create(
3882
+ * 'skill_id',
3883
+ * );
3884
+ * ```
3885
+ */
3886
+ create(skillID, params = {}, options) {
3887
+ const { betas, ...body } = params ?? {};
3888
+ return this._client.post(path`/v1/skills/${skillID}/versions?beta=true`, multipartFormRequestOptions({
3889
+ body,
3890
+ ...options,
3891
+ headers: buildHeaders([
3892
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3893
+ options?.headers
3894
+ ])
3895
+ }, this._client));
3896
+ }
3897
+ /**
3898
+ * Get Skill Version
3899
+ *
3900
+ * @example
3901
+ * ```ts
3902
+ * const version = await client.beta.skills.versions.retrieve(
3903
+ * 'version',
3904
+ * { skill_id: 'skill_id' },
3905
+ * );
3906
+ * ```
3907
+ */
3908
+ retrieve(version, params, options) {
3909
+ const { skill_id, betas } = params;
3910
+ return this._client.get(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
3911
+ ...options,
3912
+ headers: buildHeaders([
3913
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3914
+ options?.headers
3915
+ ])
3916
+ });
3917
+ }
3918
+ /**
3919
+ * List Skill Versions
3920
+ *
3921
+ * @example
3922
+ * ```ts
3923
+ * // Automatically fetches more pages as needed.
3924
+ * for await (const versionListResponse of client.beta.skills.versions.list(
3925
+ * 'skill_id',
3926
+ * )) {
3927
+ * // ...
3928
+ * }
3929
+ * ```
3930
+ */
3931
+ list(skillID, params = {}, options) {
3932
+ const { betas, ...query } = params ?? {};
3933
+ return this._client.getAPIList(path`/v1/skills/${skillID}/versions?beta=true`, PageCursor, {
3934
+ query,
3935
+ ...options,
3936
+ headers: buildHeaders([
3937
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3938
+ options?.headers
3939
+ ])
3940
+ });
3941
+ }
3942
+ /**
3943
+ * Delete Skill Version
3944
+ *
3945
+ * @example
3946
+ * ```ts
3947
+ * const version = await client.beta.skills.versions.delete(
3948
+ * 'version',
3949
+ * { skill_id: 'skill_id' },
3950
+ * );
3951
+ * ```
3952
+ */
3953
+ delete(version, params, options) {
3954
+ const { skill_id, betas } = params;
3955
+ return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
3956
+ ...options,
3957
+ headers: buildHeaders([
3958
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3959
+ options?.headers
3960
+ ])
3961
+ });
3962
+ }
3963
+ };
3964
+
3965
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
3966
+ var Skills = class extends APIResource {
3967
+ constructor() {
3968
+ super(...arguments);
3969
+ this.versions = new Versions2(this._client);
3970
+ }
3971
+ /**
3972
+ * Create Skill
3973
+ *
3974
+ * @example
3975
+ * ```ts
3976
+ * const skill = await client.beta.skills.create();
3977
+ * ```
3978
+ */
3979
+ create(params = {}, options) {
3980
+ const { betas, ...body } = params ?? {};
3981
+ return this._client.post("/v1/skills?beta=true", multipartFormRequestOptions({
3982
+ body,
3983
+ ...options,
3984
+ headers: buildHeaders([
3985
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
3986
+ options?.headers
3987
+ ])
3988
+ }, this._client, false));
3989
+ }
3990
+ /**
3991
+ * Get Skill
3992
+ *
3993
+ * @example
3994
+ * ```ts
3995
+ * const skill = await client.beta.skills.retrieve('skill_id');
3996
+ * ```
3997
+ */
3998
+ retrieve(skillID, params = {}, options) {
3999
+ const { betas } = params ?? {};
4000
+ return this._client.get(path`/v1/skills/${skillID}?beta=true`, {
4001
+ ...options,
4002
+ headers: buildHeaders([
4003
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
4004
+ options?.headers
4005
+ ])
4006
+ });
4007
+ }
4008
+ /**
4009
+ * List Skills
4010
+ *
4011
+ * @example
4012
+ * ```ts
4013
+ * // Automatically fetches more pages as needed.
4014
+ * for await (const skillListResponse of client.beta.skills.list()) {
4015
+ * // ...
4016
+ * }
4017
+ * ```
4018
+ */
4019
+ list(params = {}, options) {
4020
+ const { betas, ...query } = params ?? {};
4021
+ return this._client.getAPIList("/v1/skills?beta=true", PageCursor, {
4022
+ query,
4023
+ ...options,
4024
+ headers: buildHeaders([
4025
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
4026
+ options?.headers
4027
+ ])
4028
+ });
4029
+ }
4030
+ /**
4031
+ * Delete Skill
4032
+ *
4033
+ * @example
4034
+ * ```ts
4035
+ * const skill = await client.beta.skills.delete('skill_id');
4036
+ * ```
4037
+ */
4038
+ delete(skillID, params = {}, options) {
4039
+ const { betas } = params ?? {};
4040
+ return this._client.delete(path`/v1/skills/${skillID}?beta=true`, {
4041
+ ...options,
4042
+ headers: buildHeaders([
4043
+ { "anthropic-beta": [...betas ?? [], "skills-2025-10-02"].toString() },
4044
+ options?.headers
4045
+ ])
4046
+ });
4047
+ }
4048
+ };
4049
+ Skills.Versions = Versions2;
4050
+
4051
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
4052
+ var Credentials = class extends APIResource {
4053
+ /**
4054
+ * Create Credential
4055
+ *
4056
+ * @example
4057
+ * ```ts
4058
+ * const betaManagedAgentsCredential =
4059
+ * await client.beta.vaults.credentials.create(
4060
+ * 'vlt_011CZkZDLs7fYzm1hXNPeRjv',
4061
+ * {
4062
+ * auth: {
4063
+ * token: 'bearer_exampletoken',
4064
+ * mcp_server_url:
4065
+ * 'https://example-server.modelcontextprotocol.io/sse',
4066
+ * type: 'static_bearer',
4067
+ * },
4068
+ * },
4069
+ * );
4070
+ * ```
4071
+ */
4072
+ create(vaultID, params, options) {
4073
+ const { betas, ...body } = params;
4074
+ return this._client.post(path`/v1/vaults/${vaultID}/credentials?beta=true`, {
4075
+ body,
4076
+ ...options,
4077
+ headers: buildHeaders([
4078
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4079
+ options?.headers
4080
+ ])
4081
+ });
4082
+ }
4083
+ /**
4084
+ * Get Credential
4085
+ *
4086
+ * @example
4087
+ * ```ts
4088
+ * const betaManagedAgentsCredential =
4089
+ * await client.beta.vaults.credentials.retrieve(
4090
+ * 'vcrd_011CZkZEMt8gZan2iYOQfSkw',
4091
+ * { vault_id: 'vlt_011CZkZDLs7fYzm1hXNPeRjv' },
4092
+ * );
4093
+ * ```
4094
+ */
4095
+ retrieve(credentialID, params, options) {
4096
+ const { vault_id, betas } = params;
4097
+ return this._client.get(path`/v1/vaults/${vault_id}/credentials/${credentialID}?beta=true`, {
4098
+ ...options,
4099
+ headers: buildHeaders([
4100
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4101
+ options?.headers
4102
+ ])
4103
+ });
4104
+ }
4105
+ /**
4106
+ * Update Credential
4107
+ *
4108
+ * @example
4109
+ * ```ts
4110
+ * const betaManagedAgentsCredential =
4111
+ * await client.beta.vaults.credentials.update(
4112
+ * 'vcrd_011CZkZEMt8gZan2iYOQfSkw',
4113
+ * { vault_id: 'vlt_011CZkZDLs7fYzm1hXNPeRjv' },
4114
+ * );
4115
+ * ```
4116
+ */
4117
+ update(credentialID, params, options) {
4118
+ const { vault_id, betas, ...body } = params;
4119
+ return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}?beta=true`, {
4120
+ body,
4121
+ ...options,
4122
+ headers: buildHeaders([
4123
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4124
+ options?.headers
4125
+ ])
4126
+ });
4127
+ }
4128
+ /**
4129
+ * List Credentials
4130
+ *
4131
+ * @example
4132
+ * ```ts
4133
+ * // Automatically fetches more pages as needed.
4134
+ * for await (const betaManagedAgentsCredential of client.beta.vaults.credentials.list(
4135
+ * 'vlt_011CZkZDLs7fYzm1hXNPeRjv',
4136
+ * )) {
4137
+ * // ...
4138
+ * }
4139
+ * ```
4140
+ */
4141
+ list(vaultID, params = {}, options) {
4142
+ const { betas, ...query } = params ?? {};
4143
+ return this._client.getAPIList(path`/v1/vaults/${vaultID}/credentials?beta=true`, PageCursor, {
4144
+ query,
4145
+ ...options,
4146
+ headers: buildHeaders([
4147
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4148
+ options?.headers
4149
+ ])
4150
+ });
4151
+ }
4152
+ /**
4153
+ * Delete Credential
4154
+ *
4155
+ * @example
4156
+ * ```ts
4157
+ * const betaManagedAgentsDeletedCredential =
4158
+ * await client.beta.vaults.credentials.delete(
4159
+ * 'vcrd_011CZkZEMt8gZan2iYOQfSkw',
4160
+ * { vault_id: 'vlt_011CZkZDLs7fYzm1hXNPeRjv' },
4161
+ * );
4162
+ * ```
4163
+ */
4164
+ delete(credentialID, params, options) {
4165
+ const { vault_id, betas } = params;
4166
+ return this._client.delete(path`/v1/vaults/${vault_id}/credentials/${credentialID}?beta=true`, {
4167
+ ...options,
4168
+ headers: buildHeaders([
4169
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4170
+ options?.headers
4171
+ ])
4172
+ });
4173
+ }
4174
+ /**
4175
+ * Archive Credential
4176
+ *
4177
+ * @example
4178
+ * ```ts
4179
+ * const betaManagedAgentsCredential =
4180
+ * await client.beta.vaults.credentials.archive(
4181
+ * 'vcrd_011CZkZEMt8gZan2iYOQfSkw',
4182
+ * { vault_id: 'vlt_011CZkZDLs7fYzm1hXNPeRjv' },
4183
+ * );
4184
+ * ```
4185
+ */
4186
+ archive(credentialID, params, options) {
4187
+ const { vault_id, betas } = params;
4188
+ return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/archive?beta=true`, {
4189
+ ...options,
4190
+ headers: buildHeaders([
4191
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4192
+ options?.headers
4193
+ ])
4194
+ });
4195
+ }
4196
+ };
4197
+
4198
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
4199
+ var Vaults = class extends APIResource {
4200
+ constructor() {
4201
+ super(...arguments);
4202
+ this.credentials = new Credentials(this._client);
4203
+ }
4204
+ /**
4205
+ * Create Vault
4206
+ *
4207
+ * @example
4208
+ * ```ts
4209
+ * const betaManagedAgentsVault =
4210
+ * await client.beta.vaults.create({
4211
+ * display_name: 'Example vault',
4212
+ * });
4213
+ * ```
4214
+ */
4215
+ create(params, options) {
4216
+ const { betas, ...body } = params;
4217
+ return this._client.post("/v1/vaults?beta=true", {
4218
+ body,
4219
+ ...options,
4220
+ headers: buildHeaders([
4221
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4222
+ options?.headers
4223
+ ])
4224
+ });
4225
+ }
4226
+ /**
4227
+ * Get Vault
4228
+ *
4229
+ * @example
4230
+ * ```ts
4231
+ * const betaManagedAgentsVault =
4232
+ * await client.beta.vaults.retrieve(
4233
+ * 'vlt_011CZkZDLs7fYzm1hXNPeRjv',
4234
+ * );
4235
+ * ```
4236
+ */
4237
+ retrieve(vaultID, params = {}, options) {
4238
+ const { betas } = params ?? {};
4239
+ return this._client.get(path`/v1/vaults/${vaultID}?beta=true`, {
4240
+ ...options,
4241
+ headers: buildHeaders([
4242
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4243
+ options?.headers
4244
+ ])
4245
+ });
4246
+ }
4247
+ /**
4248
+ * Update Vault
4249
+ *
4250
+ * @example
4251
+ * ```ts
4252
+ * const betaManagedAgentsVault =
4253
+ * await client.beta.vaults.update(
4254
+ * 'vlt_011CZkZDLs7fYzm1hXNPeRjv',
4255
+ * );
4256
+ * ```
4257
+ */
4258
+ update(vaultID, params, options) {
4259
+ const { betas, ...body } = params;
4260
+ return this._client.post(path`/v1/vaults/${vaultID}?beta=true`, {
4261
+ body,
4262
+ ...options,
4263
+ headers: buildHeaders([
4264
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4265
+ options?.headers
4266
+ ])
4267
+ });
4268
+ }
4269
+ /**
4270
+ * List Vaults
4271
+ *
4272
+ * @example
4273
+ * ```ts
4274
+ * // Automatically fetches more pages as needed.
4275
+ * for await (const betaManagedAgentsVault of client.beta.vaults.list()) {
4276
+ * // ...
4277
+ * }
4278
+ * ```
4279
+ */
4280
+ list(params = {}, options) {
4281
+ const { betas, ...query } = params ?? {};
4282
+ return this._client.getAPIList("/v1/vaults?beta=true", PageCursor, {
4283
+ query,
4284
+ ...options,
4285
+ headers: buildHeaders([
4286
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4287
+ options?.headers
4288
+ ])
4289
+ });
4290
+ }
4291
+ /**
4292
+ * Delete Vault
4293
+ *
4294
+ * @example
4295
+ * ```ts
4296
+ * const betaManagedAgentsDeletedVault =
4297
+ * await client.beta.vaults.delete(
4298
+ * 'vlt_011CZkZDLs7fYzm1hXNPeRjv',
4299
+ * );
4300
+ * ```
4301
+ */
4302
+ delete(vaultID, params = {}, options) {
4303
+ const { betas } = params ?? {};
4304
+ return this._client.delete(path`/v1/vaults/${vaultID}?beta=true`, {
4305
+ ...options,
4306
+ headers: buildHeaders([
4307
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
4308
+ options?.headers
4309
+ ])
4310
+ });
4311
+ }
4312
+ /**
4313
+ * Archive Vault
4314
+ *
4315
+ * @example
4316
+ * ```ts
4317
+ * const betaManagedAgentsVault =
4318
+ * await client.beta.vaults.archive(
4319
+ * 'vlt_011CZkZDLs7fYzm1hXNPeRjv',
4320
+ * );
4321
+ * ```
4322
+ */
4323
+ archive(vaultID, params = {}, options) {
4324
+ const { betas } = params ?? {};
4325
+ return this._client.post(path`/v1/vaults/${vaultID}/archive?beta=true`, {
4326
+ ...options,
4327
+ headers: buildHeaders([
4328
+ { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
3402
4329
  options?.headers
3403
4330
  ])
3404
4331
  });
3405
4332
  }
3406
4333
  };
3407
- Skills.Versions = Versions;
4334
+ Vaults.Credentials = Credentials;
3408
4335
 
3409
- // node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
4336
+ // ../../node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
3410
4337
  var Beta = class extends APIResource {
3411
4338
  constructor() {
3412
4339
  super(...arguments);
3413
4340
  this.models = new Models(this._client);
3414
4341
  this.messages = new Messages(this._client);
4342
+ this.agents = new Agents(this._client);
4343
+ this.environments = new Environments(this._client);
4344
+ this.sessions = new Sessions(this._client);
4345
+ this.vaults = new Vaults(this._client);
3415
4346
  this.files = new Files(this._client);
3416
4347
  this.skills = new Skills(this._client);
3417
4348
  }
3418
4349
  };
3419
4350
  Beta.Models = Models;
3420
4351
  Beta.Messages = Messages;
4352
+ Beta.Agents = Agents;
4353
+ Beta.Environments = Environments;
4354
+ Beta.Sessions = Sessions;
4355
+ Beta.Vaults = Vaults;
3421
4356
  Beta.Files = Files;
3422
4357
  Beta.Skills = Skills;
3423
4358
 
3424
- // node_modules/@anthropic-ai/sdk/resources/completions.mjs
4359
+ // ../../node_modules/@anthropic-ai/sdk/resources/completions.mjs
3425
4360
  var Completions = class extends APIResource {
3426
4361
  create(params, options) {
3427
4362
  const { betas, ...body } = params;
@@ -3438,7 +4373,7 @@ var Completions = class extends APIResource {
3438
4373
  }
3439
4374
  };
3440
4375
 
3441
- // node_modules/@anthropic-ai/sdk/lib/parser.mjs
4376
+ // ../../node_modules/@anthropic-ai/sdk/lib/parser.mjs
3442
4377
  function getOutputFormat2(params) {
3443
4378
  return params?.output_config?.format;
3444
4379
  }
@@ -3499,7 +4434,7 @@ function parseOutputFormat(params, content) {
3499
4434
  }
3500
4435
  }
3501
4436
 
3502
- // node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
4437
+ // ../../node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
3503
4438
  var _MessageStream_instances;
3504
4439
  var _MessageStream_currentMessageSnapshot;
3505
4440
  var _MessageStream_params;
@@ -4089,7 +5024,7 @@ var MessageStream = class _MessageStream {
4089
5024
  function checkNever2(x) {
4090
5025
  }
4091
5026
 
4092
- // node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
5027
+ // ../../node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
4093
5028
  var Batches2 = class extends APIResource {
4094
5029
  /**
4095
5030
  * Send a batch of Message creation requests.
@@ -4230,7 +5165,7 @@ var Batches2 = class extends APIResource {
4230
5165
  }
4231
5166
  };
4232
5167
 
4233
- // node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
5168
+ // ../../node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
4234
5169
  var Messages2 = class extends APIResource {
4235
5170
  constructor() {
4236
5171
  super(...arguments);
@@ -4316,7 +5251,7 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
4316
5251
  * ```ts
4317
5252
  * const messageTokensCount =
4318
5253
  * await client.messages.countTokens({
4319
- * messages: [{ content: 'string', role: 'user' }],
5254
+ * messages: [{ content: 'Hello, world', role: 'user' }],
4320
5255
  * model: 'claude-opus-4-6',
4321
5256
  * });
4322
5257
  * ```
@@ -4343,7 +5278,7 @@ var DEPRECATED_MODELS2 = {
4343
5278
  var MODELS_TO_WARN_WITH_THINKING_ENABLED2 = ["claude-opus-4-6"];
4344
5279
  Messages2.Batches = Batches2;
4345
5280
 
4346
- // node_modules/@anthropic-ai/sdk/resources/models.mjs
5281
+ // ../../node_modules/@anthropic-ai/sdk/resources/models.mjs
4347
5282
  var Models2 = class extends APIResource {
4348
5283
  /**
4349
5284
  * Get a specific model.
@@ -4380,18 +5315,18 @@ var Models2 = class extends APIResource {
4380
5315
  }
4381
5316
  };
4382
5317
 
4383
- // node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
5318
+ // ../../node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
4384
5319
  var readEnv = (env) => {
4385
5320
  if (typeof globalThis.process !== "undefined") {
4386
- return globalThis.process.env?.[env]?.trim() ?? void 0;
5321
+ return globalThis.process.env?.[env]?.trim() || void 0;
4387
5322
  }
4388
5323
  if (typeof globalThis.Deno !== "undefined") {
4389
- return globalThis.Deno.env?.get?.(env)?.trim();
5324
+ return globalThis.Deno.env?.get?.(env)?.trim() || void 0;
4390
5325
  }
4391
5326
  return void 0;
4392
5327
  };
4393
5328
 
4394
- // node_modules/@anthropic-ai/sdk/client.mjs
5329
+ // ../../node_modules/@anthropic-ai/sdk/client.mjs
4395
5330
  var _BaseAnthropic_instances;
4396
5331
  var _a;
4397
5332
  var _BaseAnthropic_encoder;
@@ -5018,4 +5953,4 @@ export {
5018
5953
  createLlmProvider,
5019
5954
  createEmbeddingProvider
5020
5955
  };
5021
- //# sourceMappingURL=chunk-KWTOCJLB.js.map
5956
+ //# sourceMappingURL=chunk-LLJMDXO2.js.map