@anthropic-ai/sdk 0.119.0 → 0.121.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 (466) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/helpers/beta/environments.d.mts +5 -4
  3. package/helpers/beta/environments.d.mts.map +1 -1
  4. package/helpers/beta/environments.d.ts +5 -4
  5. package/helpers/beta/environments.d.ts.map +1 -1
  6. package/helpers/beta/environments.js +5 -4
  7. package/helpers/beta/environments.js.map +1 -1
  8. package/helpers/beta/environments.mjs +5 -4
  9. package/helpers/beta/environments.mjs.map +1 -1
  10. package/helpers/beta/standard-schema.d.mts +45 -0
  11. package/helpers/beta/standard-schema.d.mts.map +1 -0
  12. package/helpers/beta/standard-schema.d.ts +45 -0
  13. package/helpers/beta/standard-schema.d.ts.map +1 -0
  14. package/helpers/beta/standard-schema.js +58 -0
  15. package/helpers/beta/standard-schema.js.map +1 -0
  16. package/helpers/beta/standard-schema.mjs +54 -0
  17. package/helpers/beta/standard-schema.mjs.map +1 -0
  18. package/internal/detect-platform.js +1 -1
  19. package/internal/detect-platform.js.map +1 -1
  20. package/internal/detect-platform.mjs +1 -1
  21. package/internal/detect-platform.mjs.map +1 -1
  22. package/internal/file-store.d.mts +136 -0
  23. package/internal/file-store.d.mts.map +1 -0
  24. package/internal/file-store.d.ts +136 -0
  25. package/internal/file-store.d.ts.map +1 -0
  26. package/internal/file-store.js +531 -0
  27. package/internal/file-store.js.map +1 -0
  28. package/internal/file-store.mjs +523 -0
  29. package/internal/file-store.mjs.map +1 -0
  30. package/internal/utils/values.d.mts +6 -0
  31. package/internal/utils/values.d.mts.map +1 -1
  32. package/internal/utils/values.d.ts +6 -0
  33. package/internal/utils/values.d.ts.map +1 -1
  34. package/internal/utils/values.js +7 -0
  35. package/internal/utils/values.js.map +1 -1
  36. package/internal/utils/values.mjs +6 -0
  37. package/internal/utils/values.mjs.map +1 -1
  38. package/lib/BetaMessageStream.d.mts.map +1 -1
  39. package/lib/BetaMessageStream.d.ts.map +1 -1
  40. package/lib/BetaMessageStream.js +3 -4
  41. package/lib/BetaMessageStream.js.map +1 -1
  42. package/lib/BetaMessageStream.mjs +1 -2
  43. package/lib/BetaMessageStream.mjs.map +1 -1
  44. package/lib/MessageStream.d.mts.map +1 -1
  45. package/lib/MessageStream.d.ts.map +1 -1
  46. package/lib/MessageStream.js +3 -4
  47. package/lib/MessageStream.js.map +1 -1
  48. package/lib/MessageStream.mjs +1 -2
  49. package/lib/MessageStream.mjs.map +1 -1
  50. package/lib/environments/poller.d.mts +6 -0
  51. package/lib/environments/poller.d.mts.map +1 -1
  52. package/lib/environments/poller.d.ts +6 -0
  53. package/lib/environments/poller.d.ts.map +1 -1
  54. package/lib/environments/poller.js +46 -1
  55. package/lib/environments/poller.js.map +1 -1
  56. package/lib/environments/poller.mjs +46 -1
  57. package/lib/environments/poller.mjs.map +1 -1
  58. package/lib/environments/worker.d.mts +89 -12
  59. package/lib/environments/worker.d.mts.map +1 -1
  60. package/lib/environments/worker.d.ts +89 -12
  61. package/lib/environments/worker.d.ts.map +1 -1
  62. package/lib/environments/worker.js +336 -67
  63. package/lib/environments/worker.js.map +1 -1
  64. package/lib/environments/worker.mjs +336 -68
  65. package/lib/environments/worker.mjs.map +1 -1
  66. package/lib/sessions/accumulate.d.mts.map +1 -1
  67. package/lib/sessions/accumulate.d.ts.map +1 -1
  68. package/lib/sessions/accumulate.js +3 -4
  69. package/lib/sessions/accumulate.js.map +1 -1
  70. package/lib/sessions/accumulate.mjs +1 -2
  71. package/lib/sessions/accumulate.mjs.map +1 -1
  72. package/lib/standard-schema.d.mts +131 -0
  73. package/lib/standard-schema.d.mts.map +1 -0
  74. package/lib/standard-schema.d.ts +131 -0
  75. package/lib/standard-schema.d.ts.map +1 -0
  76. package/lib/standard-schema.js +45 -0
  77. package/lib/standard-schema.js.map +1 -0
  78. package/lib/standard-schema.mjs +41 -0
  79. package/lib/standard-schema.mjs.map +1 -0
  80. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  81. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  82. package/lib/tools/BetaToolRunner.js +35 -6
  83. package/lib/tools/BetaToolRunner.js.map +1 -1
  84. package/lib/tools/BetaToolRunner.mjs +35 -6
  85. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  86. package/package.json +2 -11
  87. package/resources/beta/agents/agents.d.mts +322 -27
  88. package/resources/beta/agents/agents.d.mts.map +1 -1
  89. package/resources/beta/agents/agents.d.ts +322 -27
  90. package/resources/beta/agents/agents.d.ts.map +1 -1
  91. package/resources/beta/agents/agents.js.map +1 -1
  92. package/resources/beta/agents/agents.mjs.map +1 -1
  93. package/resources/beta/agents/index.d.mts +1 -1
  94. package/resources/beta/agents/index.d.mts.map +1 -1
  95. package/resources/beta/agents/index.d.ts +1 -1
  96. package/resources/beta/agents/index.d.ts.map +1 -1
  97. package/resources/beta/agents/index.js.map +1 -1
  98. package/resources/beta/agents/index.mjs.map +1 -1
  99. package/resources/beta/beta.d.mts +7 -3
  100. package/resources/beta/beta.d.mts.map +1 -1
  101. package/resources/beta/beta.d.ts +7 -3
  102. package/resources/beta/beta.d.ts.map +1 -1
  103. package/resources/beta/beta.js +4 -0
  104. package/resources/beta/beta.js.map +1 -1
  105. package/resources/beta/beta.mjs +4 -0
  106. package/resources/beta/beta.mjs.map +1 -1
  107. package/resources/beta/environments/environments.d.mts +8 -1
  108. package/resources/beta/environments/environments.d.mts.map +1 -1
  109. package/resources/beta/environments/environments.d.ts +8 -1
  110. package/resources/beta/environments/environments.d.ts.map +1 -1
  111. package/resources/beta/environments/environments.js.map +1 -1
  112. package/resources/beta/environments/environments.mjs.map +1 -1
  113. package/resources/beta/environments/work.d.mts +5 -1
  114. package/resources/beta/environments/work.d.mts.map +1 -1
  115. package/resources/beta/environments/work.d.ts +5 -1
  116. package/resources/beta/environments/work.d.ts.map +1 -1
  117. package/resources/beta/environments/work.js +0 -17
  118. package/resources/beta/environments/work.js.map +1 -1
  119. package/resources/beta/environments/work.mjs +0 -17
  120. package/resources/beta/environments/work.mjs.map +1 -1
  121. package/resources/beta/index.d.mts +2 -1
  122. package/resources/beta/index.d.mts.map +1 -1
  123. package/resources/beta/index.d.ts +2 -1
  124. package/resources/beta/index.d.ts.map +1 -1
  125. package/resources/beta/index.js +11 -9
  126. package/resources/beta/index.js.map +1 -1
  127. package/resources/beta/index.mjs +1 -0
  128. package/resources/beta/index.mjs.map +1 -1
  129. package/resources/beta/memory-stores/memories.d.mts +6 -5
  130. package/resources/beta/memory-stores/memories.d.mts.map +1 -1
  131. package/resources/beta/memory-stores/memories.d.ts +6 -5
  132. package/resources/beta/memory-stores/memories.d.ts.map +1 -1
  133. package/resources/beta/memory-stores/memory-versions.d.mts +8 -5
  134. package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  135. package/resources/beta/memory-stores/memory-versions.d.ts +8 -5
  136. package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  137. package/resources/beta/messages/messages.d.mts +51 -9
  138. package/resources/beta/messages/messages.d.mts.map +1 -1
  139. package/resources/beta/messages/messages.d.ts +51 -9
  140. package/resources/beta/messages/messages.d.ts.map +1 -1
  141. package/resources/beta/messages/messages.js.map +1 -1
  142. package/resources/beta/messages/messages.mjs.map +1 -1
  143. package/resources/beta/organization/api-keys.d.mts +177 -0
  144. package/resources/beta/organization/api-keys.d.mts.map +1 -0
  145. package/resources/beta/organization/api-keys.d.ts +177 -0
  146. package/resources/beta/organization/api-keys.d.ts.map +1 -0
  147. package/resources/beta/organization/api-keys.js +56 -0
  148. package/resources/beta/organization/api-keys.js.map +1 -0
  149. package/resources/beta/organization/api-keys.mjs +52 -0
  150. package/resources/beta/organization/api-keys.mjs.map +1 -0
  151. package/resources/beta/organization/external-keys.d.mts +269 -0
  152. package/resources/beta/organization/external-keys.d.mts.map +1 -0
  153. package/resources/beta/organization/external-keys.d.ts +269 -0
  154. package/resources/beta/organization/external-keys.d.ts.map +1 -0
  155. package/resources/beta/organization/external-keys.js +119 -0
  156. package/resources/beta/organization/external-keys.js.map +1 -0
  157. package/resources/beta/organization/external-keys.mjs +115 -0
  158. package/resources/beta/organization/external-keys.mjs.map +1 -0
  159. package/resources/beta/organization/federation/federation.d.mts +14 -0
  160. package/resources/beta/organization/federation/federation.d.mts.map +1 -0
  161. package/resources/beta/organization/federation/federation.d.ts +14 -0
  162. package/resources/beta/organization/federation/federation.d.ts.map +1 -0
  163. package/resources/beta/organization/federation/federation.js +21 -0
  164. package/resources/beta/organization/federation/federation.js.map +1 -0
  165. package/resources/beta/organization/federation/federation.mjs +16 -0
  166. package/resources/beta/organization/federation/federation.mjs.map +1 -0
  167. package/resources/beta/organization/federation/index.d.mts +4 -0
  168. package/resources/beta/organization/federation/index.d.mts.map +1 -0
  169. package/resources/beta/organization/federation/index.d.ts +4 -0
  170. package/resources/beta/organization/federation/index.d.ts.map +1 -0
  171. package/resources/beta/organization/federation/index.js +11 -0
  172. package/resources/beta/organization/federation/index.js.map +1 -0
  173. package/resources/beta/organization/federation/index.mjs +5 -0
  174. package/resources/beta/organization/federation/index.mjs.map +1 -0
  175. package/resources/beta/organization/federation/issuers.d.mts +353 -0
  176. package/resources/beta/organization/federation/issuers.d.mts.map +1 -0
  177. package/resources/beta/organization/federation/issuers.d.ts +353 -0
  178. package/resources/beta/organization/federation/issuers.d.ts.map +1 -0
  179. package/resources/beta/organization/federation/issuers.js +169 -0
  180. package/resources/beta/organization/federation/issuers.js.map +1 -0
  181. package/resources/beta/organization/federation/issuers.mjs +165 -0
  182. package/resources/beta/organization/federation/issuers.mjs.map +1 -0
  183. package/resources/beta/organization/federation/rules/index.d.mts +3 -0
  184. package/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
  185. package/resources/beta/organization/federation/rules/index.d.ts +3 -0
  186. package/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
  187. package/resources/beta/organization/federation/rules/index.js +9 -0
  188. package/resources/beta/organization/federation/rules/index.js.map +1 -0
  189. package/resources/beta/organization/federation/rules/index.mjs +4 -0
  190. package/resources/beta/organization/federation/rules/index.mjs.map +1 -0
  191. package/resources/beta/organization/federation/rules/rules.d.mts +468 -0
  192. package/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
  193. package/resources/beta/organization/federation/rules/rules.d.ts +468 -0
  194. package/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
  195. package/resources/beta/organization/federation/rules/rules.js +198 -0
  196. package/resources/beta/organization/federation/rules/rules.js.map +1 -0
  197. package/resources/beta/organization/federation/rules/rules.mjs +193 -0
  198. package/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
  199. package/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
  200. package/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
  201. package/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
  202. package/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
  203. package/resources/beta/organization/federation/rules/workspaces.js +114 -0
  204. package/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
  205. package/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
  206. package/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
  207. package/resources/beta/organization/federation/rules.d.mts +2 -0
  208. package/resources/beta/organization/federation/rules.d.mts.map +1 -0
  209. package/resources/beta/organization/federation/rules.d.ts +2 -0
  210. package/resources/beta/organization/federation/rules.d.ts.map +1 -0
  211. package/resources/beta/organization/federation/rules.js +6 -0
  212. package/resources/beta/organization/federation/rules.js.map +1 -0
  213. package/resources/beta/organization/federation/rules.mjs +3 -0
  214. package/resources/beta/organization/federation/rules.mjs.map +1 -0
  215. package/resources/beta/organization/federation.d.mts +2 -0
  216. package/resources/beta/organization/federation.d.mts.map +1 -0
  217. package/resources/beta/organization/federation.d.ts +2 -0
  218. package/resources/beta/organization/federation.d.ts.map +1 -0
  219. package/resources/beta/organization/federation.js +6 -0
  220. package/resources/beta/organization/federation.js.map +1 -0
  221. package/resources/beta/organization/federation.mjs +3 -0
  222. package/resources/beta/organization/federation.mjs.map +1 -0
  223. package/resources/beta/organization/index.d.mts +10 -0
  224. package/resources/beta/organization/index.d.mts.map +1 -0
  225. package/resources/beta/organization/index.d.ts +10 -0
  226. package/resources/beta/organization/index.d.ts.map +1 -0
  227. package/resources/beta/organization/index.js +23 -0
  228. package/resources/beta/organization/index.js.map +1 -0
  229. package/resources/beta/organization/index.mjs +11 -0
  230. package/resources/beta/organization/index.mjs.map +1 -0
  231. package/resources/beta/organization/invites.d.mts +162 -0
  232. package/resources/beta/organization/invites.d.mts.map +1 -0
  233. package/resources/beta/organization/invites.d.ts +162 -0
  234. package/resources/beta/organization/invites.d.ts.map +1 -0
  235. package/resources/beta/organization/invites.js +76 -0
  236. package/resources/beta/organization/invites.js.map +1 -0
  237. package/resources/beta/organization/invites.mjs +72 -0
  238. package/resources/beta/organization/invites.mjs.map +1 -0
  239. package/resources/beta/organization/organization.d.mts +69 -0
  240. package/resources/beta/organization/organization.d.mts.map +1 -0
  241. package/resources/beta/organization/organization.d.ts +69 -0
  242. package/resources/beta/organization/organization.d.ts.map +1 -0
  243. package/resources/beta/organization/organization.js +58 -0
  244. package/resources/beta/organization/organization.js.map +1 -0
  245. package/resources/beta/organization/organization.mjs +53 -0
  246. package/resources/beta/organization/organization.mjs.map +1 -0
  247. package/resources/beta/organization/rate-limits.d.mts +78 -0
  248. package/resources/beta/organization/rate-limits.d.mts.map +1 -0
  249. package/resources/beta/organization/rate-limits.d.ts +78 -0
  250. package/resources/beta/organization/rate-limits.d.ts.map +1 -0
  251. package/resources/beta/organization/rate-limits.js +32 -0
  252. package/resources/beta/organization/rate-limits.js.map +1 -0
  253. package/resources/beta/organization/rate-limits.mjs +28 -0
  254. package/resources/beta/organization/rate-limits.mjs.map +1 -0
  255. package/resources/beta/organization/service-accounts/index.d.mts +3 -0
  256. package/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
  257. package/resources/beta/organization/service-accounts/index.d.ts +3 -0
  258. package/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
  259. package/resources/beta/organization/service-accounts/index.js +9 -0
  260. package/resources/beta/organization/service-accounts/index.js.map +1 -0
  261. package/resources/beta/organization/service-accounts/index.mjs +4 -0
  262. package/resources/beta/organization/service-accounts/index.mjs.map +1 -0
  263. package/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
  264. package/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
  265. package/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
  266. package/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
  267. package/resources/beta/organization/service-accounts/service-accounts.js +174 -0
  268. package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
  269. package/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
  270. package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
  271. package/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
  272. package/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
  273. package/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
  274. package/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
  275. package/resources/beta/organization/service-accounts/workspaces.js +125 -0
  276. package/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
  277. package/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
  278. package/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
  279. package/resources/beta/organization/service-accounts.d.mts +2 -0
  280. package/resources/beta/organization/service-accounts.d.mts.map +1 -0
  281. package/resources/beta/organization/service-accounts.d.ts +2 -0
  282. package/resources/beta/organization/service-accounts.d.ts.map +1 -0
  283. package/resources/beta/organization/service-accounts.js +6 -0
  284. package/resources/beta/organization/service-accounts.js.map +1 -0
  285. package/resources/beta/organization/service-accounts.mjs +3 -0
  286. package/resources/beta/organization/service-accounts.mjs.map +1 -0
  287. package/resources/beta/organization/users.d.mts +124 -0
  288. package/resources/beta/organization/users.d.mts.map +1 -0
  289. package/resources/beta/organization/users.d.ts +124 -0
  290. package/resources/beta/organization/users.d.ts.map +1 -0
  291. package/resources/beta/organization/users.js +67 -0
  292. package/resources/beta/organization/users.js.map +1 -0
  293. package/resources/beta/organization/users.mjs +63 -0
  294. package/resources/beta/organization/users.mjs.map +1 -0
  295. package/resources/beta/organization/workspaces/index.d.mts +5 -0
  296. package/resources/beta/organization/workspaces/index.d.mts.map +1 -0
  297. package/resources/beta/organization/workspaces/index.d.ts +5 -0
  298. package/resources/beta/organization/workspaces/index.d.ts.map +1 -0
  299. package/resources/beta/organization/workspaces/index.js +13 -0
  300. package/resources/beta/organization/workspaces/index.js.map +1 -0
  301. package/resources/beta/organization/workspaces/index.mjs +6 -0
  302. package/resources/beta/organization/workspaces/index.mjs.map +1 -0
  303. package/resources/beta/organization/workspaces/members.d.mts +135 -0
  304. package/resources/beta/organization/workspaces/members.d.mts.map +1 -0
  305. package/resources/beta/organization/workspaces/members.d.ts +135 -0
  306. package/resources/beta/organization/workspaces/members.d.ts.map +1 -0
  307. package/resources/beta/organization/workspaces/members.js +102 -0
  308. package/resources/beta/organization/workspaces/members.js.map +1 -0
  309. package/resources/beta/organization/workspaces/members.mjs +98 -0
  310. package/resources/beta/organization/workspaces/members.mjs.map +1 -0
  311. package/resources/beta/organization/workspaces/rate-limits.d.mts +84 -0
  312. package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
  313. package/resources/beta/organization/workspaces/rate-limits.d.ts +84 -0
  314. package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
  315. package/resources/beta/organization/workspaces/rate-limits.js +35 -0
  316. package/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
  317. package/resources/beta/organization/workspaces/rate-limits.mjs +31 -0
  318. package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
  319. package/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
  320. package/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
  321. package/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
  322. package/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
  323. package/resources/beta/organization/workspaces/service-accounts.js +189 -0
  324. package/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
  325. package/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
  326. package/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
  327. package/resources/beta/organization/workspaces/workspaces.d.mts +287 -0
  328. package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
  329. package/resources/beta/organization/workspaces/workspaces.d.ts +287 -0
  330. package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
  331. package/resources/beta/organization/workspaces/workspaces.js +112 -0
  332. package/resources/beta/organization/workspaces/workspaces.js.map +1 -0
  333. package/resources/beta/organization/workspaces/workspaces.mjs +107 -0
  334. package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
  335. package/resources/beta/organization/workspaces.d.mts +2 -0
  336. package/resources/beta/organization/workspaces.d.mts.map +1 -0
  337. package/resources/beta/organization/workspaces.d.ts +2 -0
  338. package/resources/beta/organization/workspaces.d.ts.map +1 -0
  339. package/resources/beta/organization/workspaces.js +6 -0
  340. package/resources/beta/organization/workspaces.js.map +1 -0
  341. package/resources/beta/organization/workspaces.mjs +3 -0
  342. package/resources/beta/organization/workspaces.mjs.map +1 -0
  343. package/resources/beta/organization.d.mts +2 -0
  344. package/resources/beta/organization.d.mts.map +1 -0
  345. package/resources/beta/organization.d.ts +2 -0
  346. package/resources/beta/organization.d.ts.map +1 -0
  347. package/resources/beta/organization.js +6 -0
  348. package/resources/beta/organization.js.map +1 -0
  349. package/resources/beta/organization.mjs +3 -0
  350. package/resources/beta/organization.mjs.map +1 -0
  351. package/resources/beta/sessions/threads/threads.d.mts +2 -1
  352. package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
  353. package/resources/beta/sessions/threads/threads.d.ts +2 -1
  354. package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
  355. package/resources/beta/sessions/threads/threads.js.map +1 -1
  356. package/resources/beta/sessions/threads/threads.mjs.map +1 -1
  357. package/resources/messages/messages.d.mts +1 -1
  358. package/resources/messages/messages.d.ts +1 -1
  359. package/src/helpers/beta/environments.ts +5 -4
  360. package/src/helpers/beta/standard-schema.ts +99 -0
  361. package/src/internal/detect-platform.ts +1 -1
  362. package/src/internal/file-store.ts +550 -0
  363. package/src/internal/utils/values.ts +7 -0
  364. package/src/lib/BetaMessageStream.ts +1 -3
  365. package/src/lib/MessageStream.ts +1 -3
  366. package/src/lib/environments/poller.ts +47 -1
  367. package/src/lib/environments/worker.ts +419 -79
  368. package/src/lib/sessions/accumulate.ts +1 -3
  369. package/src/lib/standard-schema.ts +209 -0
  370. package/src/lib/tools/BetaToolRunner.ts +38 -6
  371. package/src/resources/beta/agents/agents.ts +435 -30
  372. package/src/resources/beta/agents/index.ts +17 -0
  373. package/src/resources/beta/beta.ts +52 -1
  374. package/src/resources/beta/environments/environments.ts +8 -1
  375. package/src/resources/beta/environments/work.ts +7 -0
  376. package/src/resources/beta/index.ts +18 -0
  377. package/src/resources/beta/memory-stores/memories.ts +6 -5
  378. package/src/resources/beta/memory-stores/memory-versions.ts +8 -5
  379. package/src/resources/beta/messages/messages.ts +51 -9
  380. package/src/resources/beta/organization/api-keys.ts +231 -0
  381. package/src/resources/beta/organization/external-keys.ts +362 -0
  382. package/src/resources/beta/organization/federation/federation.ts +71 -0
  383. package/src/resources/beta/organization/federation/index.ts +31 -0
  384. package/src/resources/beta/organization/federation/issuers.ts +486 -0
  385. package/src/resources/beta/organization/federation/rules/index.ts +23 -0
  386. package/src/resources/beta/organization/federation/rules/rules.ts +624 -0
  387. package/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
  388. package/src/resources/beta/organization/federation/rules.ts +3 -0
  389. package/src/resources/beta/organization/federation.ts +3 -0
  390. package/src/resources/beta/organization/index.ts +83 -0
  391. package/src/resources/beta/organization/invites.ts +207 -0
  392. package/src/resources/beta/organization/organization.ts +245 -0
  393. package/src/resources/beta/organization/rate-limits.ts +105 -0
  394. package/src/resources/beta/organization/service-accounts/index.ts +21 -0
  395. package/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
  396. package/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
  397. package/src/resources/beta/organization/service-accounts.ts +3 -0
  398. package/src/resources/beta/organization/users.ts +163 -0
  399. package/src/resources/beta/organization/workspaces/index.ts +43 -0
  400. package/src/resources/beta/organization/workspaces/members.ts +209 -0
  401. package/src/resources/beta/organization/workspaces/rate-limits.ts +114 -0
  402. package/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
  403. package/src/resources/beta/organization/workspaces/workspaces.ts +434 -0
  404. package/src/resources/beta/organization/workspaces.ts +3 -0
  405. package/src/resources/beta/organization.ts +3 -0
  406. package/src/resources/beta/sessions/threads/threads.ts +2 -1
  407. package/src/resources/messages/messages.ts +1 -1
  408. package/src/tools/agent-toolset/fs-util.ts +40 -24
  409. package/src/tools/agent-toolset/memories.ts +1017 -0
  410. package/src/tools/agent-toolset/node.browser.ts +69 -1
  411. package/src/tools/agent-toolset/node.ts +143 -57
  412. package/src/tools/agent-toolset/skills.ts +29 -9
  413. package/src/tools/agent-toolset/sync-interval.ts +30 -0
  414. package/src/version.ts +1 -1
  415. package/tools/agent-toolset/fs-util.d.mts +23 -10
  416. package/tools/agent-toolset/fs-util.d.mts.map +1 -1
  417. package/tools/agent-toolset/fs-util.d.ts +23 -10
  418. package/tools/agent-toolset/fs-util.d.ts.map +1 -1
  419. package/tools/agent-toolset/fs-util.js +40 -25
  420. package/tools/agent-toolset/fs-util.js.map +1 -1
  421. package/tools/agent-toolset/fs-util.mjs +38 -25
  422. package/tools/agent-toolset/fs-util.mjs.map +1 -1
  423. package/tools/agent-toolset/memories.d.mts +173 -0
  424. package/tools/agent-toolset/memories.d.mts.map +1 -0
  425. package/tools/agent-toolset/memories.d.ts +173 -0
  426. package/tools/agent-toolset/memories.d.ts.map +1 -0
  427. package/tools/agent-toolset/memories.js +902 -0
  428. package/tools/agent-toolset/memories.js.map +1 -0
  429. package/tools/agent-toolset/memories.mjs +895 -0
  430. package/tools/agent-toolset/memories.mjs.map +1 -0
  431. package/tools/agent-toolset/node.browser.d.mts +32 -1
  432. package/tools/agent-toolset/node.browser.d.mts.map +1 -1
  433. package/tools/agent-toolset/node.browser.d.ts +32 -1
  434. package/tools/agent-toolset/node.browser.d.ts.map +1 -1
  435. package/tools/agent-toolset/node.browser.js +59 -1
  436. package/tools/agent-toolset/node.browser.js.map +1 -1
  437. package/tools/agent-toolset/node.browser.mjs +54 -0
  438. package/tools/agent-toolset/node.browser.mjs.map +1 -1
  439. package/tools/agent-toolset/node.d.mts +56 -24
  440. package/tools/agent-toolset/node.d.mts.map +1 -1
  441. package/tools/agent-toolset/node.d.ts +56 -24
  442. package/tools/agent-toolset/node.d.ts.map +1 -1
  443. package/tools/agent-toolset/node.js +83 -44
  444. package/tools/agent-toolset/node.js.map +1 -1
  445. package/tools/agent-toolset/node.mjs +77 -44
  446. package/tools/agent-toolset/node.mjs.map +1 -1
  447. package/tools/agent-toolset/skills.d.mts +16 -7
  448. package/tools/agent-toolset/skills.d.mts.map +1 -1
  449. package/tools/agent-toolset/skills.d.ts +16 -7
  450. package/tools/agent-toolset/skills.d.ts.map +1 -1
  451. package/tools/agent-toolset/skills.js +27 -9
  452. package/tools/agent-toolset/skills.js.map +1 -1
  453. package/tools/agent-toolset/skills.mjs +27 -9
  454. package/tools/agent-toolset/skills.mjs.map +1 -1
  455. package/tools/agent-toolset/sync-interval.d.mts +19 -0
  456. package/tools/agent-toolset/sync-interval.d.mts.map +1 -0
  457. package/tools/agent-toolset/sync-interval.d.ts +19 -0
  458. package/tools/agent-toolset/sync-interval.d.ts.map +1 -0
  459. package/tools/agent-toolset/sync-interval.js +29 -0
  460. package/tools/agent-toolset/sync-interval.js.map +1 -0
  461. package/tools/agent-toolset/sync-interval.mjs +25 -0
  462. package/tools/agent-toolset/sync-interval.mjs.map +1 -0
  463. package/version.d.mts +1 -1
  464. package/version.d.ts +1 -1
  465. package/version.js +1 -1
  466. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.121.0 (2026-08-26)
4
+
5
+ Full Changelog: [sdk-v0.120.0...sdk-v0.121.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.120.0...sdk-v0.121.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** add `updates` thinking display mode (beta) ([22274ea](https://github.com/anthropics/anthropic-sdk-typescript/commit/22274eaf968edc62a8b9e1f39a1913f5e04b2ada))
10
+ * **api:** add missing anthropic-beta values ([0779f02](https://github.com/anthropics/anthropic-sdk-typescript/commit/0779f02666cfc6088c1555ee25e8cd8677e421da))
11
+ * **api:** add support for Organization API endpoints ([8b61e7a](https://github.com/anthropics/anthropic-sdk-typescript/commit/8b61e7a4d441d662cd121c94c6d27dbffa5c294a))
12
+ * **helpers:** support Standard Schema for structured outputs and tools ([7880078](https://github.com/anthropics/anthropic-sdk-typescript/commit/788007889c048e18f6bdf19d4903f1ac96f66cb0))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **tools:** keep the tool runner going on pause_turn ([#288](https://github.com/anthropics/anthropic-sdk-typescript/issues/288)) ([f040dc9](https://github.com/anthropics/anthropic-sdk-typescript/commit/f040dc9d39a3ec471a87ac8eb93387fb7d9960c3))
18
+ * **types:** don't reference NodeJS.ProcessEnv from published types ([#367](https://github.com/anthropics/anthropic-sdk-typescript/issues/367)) ([fd38dfd](https://github.com/anthropics/anthropic-sdk-typescript/commit/fd38dfdc48beec5d0d3640b65ac3e467bc73ea4e))
19
+
20
+
21
+ ### Chores
22
+
23
+ * **docs:** clarify skill version `latest` support and memory version retention ([7405a69](https://github.com/anthropics/anthropic-sdk-typescript/commit/7405a692be3ab6728037223482337f640cfa00b9))
24
+ * **examples:** remove redundant main().catch boilerplate ([154ace7](https://github.com/anthropics/anthropic-sdk-typescript/commit/154ace7ea8ccd66d59b3a7d2ca61dcff82b39417))
25
+ * **internal:** cancel superseded CI runs ([0532c98](https://github.com/anthropics/anthropic-sdk-typescript/commit/0532c9878433dd93cc1b7b34c8a895f2a80aeb2c))
26
+ * **internal:** codegen related update ([228ff1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/228ff1e5fa09fe6d6e1cca2cb876d2fa29d431b6))
27
+ * **internal:** minor workflow reformat ([41b6c31](https://github.com/anthropics/anthropic-sdk-typescript/commit/41b6c3190f4c4196817e9102fac1f9fca674452e))
28
+ * **internal:** tighten publint and attw lint checks ([e3fbd62](https://github.com/anthropics/anthropic-sdk-typescript/commit/e3fbd62677554699b51498179fe15feb73f1f24e))
29
+
30
+
31
+ ### Documentation
32
+
33
+ * **api:** clarify session thread agent and usage.iterations compaction descriptions (beta) ([6e852a7](https://github.com/anthropics/anthropic-sdk-typescript/commit/6e852a70ee5db1d514e9459ac627324bfe6c904f))
34
+ * **examples:** use adaptive thinking in thinking examples ([3dd7699](https://github.com/anthropics/anthropic-sdk-typescript/commit/3dd7699110fd34b82b795841e76ac40122a63c7d))
35
+
36
+ ## 0.120.0 (2026-08-19)
37
+
38
+ Full Changelog: [sdk-v0.119.0...sdk-v0.120.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.119.0...sdk-v0.120.0)
39
+
40
+ ### Features
41
+
42
+ * **api:** managed agents web search config and self hosted sandbox memory ([ba8ec50](https://github.com/anthropics/anthropic-sdk-typescript/commit/ba8ec50ffe31e10781971a942d54289439307424))
43
+
44
+
45
+ ### Chores
46
+
47
+ * **internal:** use a single pnpm workspace lockfile ([#359](https://github.com/anthropics/anthropic-sdk-typescript/issues/359)) ([3c32145](https://github.com/anthropics/anthropic-sdk-typescript/commit/3c32145d2bc4d53888c6c6857c9af216eec95fb9))
48
+
3
49
  ## 0.119.0 (2026-08-19)
4
50
 
5
51
  Full Changelog: [sdk-v0.118.0...sdk-v0.119.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.118.0...sdk-v0.119.0)
@@ -9,10 +9,11 @@
9
9
  * - {@link EnvironmentWorker} (`client.beta.environments.work.worker`) — the full
10
10
  * composition: poll → set up the workdir + skills → run a
11
11
  * {@link SessionToolRunner} while heartbeating the work-item lease →
12
- * force-stop on exit loop. Use `handleItem()` for the per-item flow when you
13
- * already hold a claimed work item with no arguments it reads the
14
- * `ANTHROPIC_*` env vars that `ant worker poll --on-work` sets. The class is
15
- * also exported here if you prefer `new EnvironmentWorker({ client, ... })`.
12
+ * force-stop on exit (unless the lease was lost to another holder) loop.
13
+ * Use `handleItem()` for the per-item flow when you already hold a claimed
14
+ * work item with no arguments it reads the `ANTHROPIC_*` env vars that
15
+ * `ant worker poll --on-work` sets. The class is also exported here if you
16
+ * prefer `new EnvironmentWorker({ client, ... })`.
16
17
  *
17
18
  * The tool implementations themselves (`betaAgentToolset20260401` and the
18
19
  * per-tool factories) live in their own Node-only module — import them directly
@@ -1 +1 @@
1
- {"version":3,"file":"environments.d.mts","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,yCAAqC"}
1
+ {"version":3,"file":"environments.d.mts","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,yCAAqC"}
@@ -9,10 +9,11 @@
9
9
  * - {@link EnvironmentWorker} (`client.beta.environments.work.worker`) — the full
10
10
  * composition: poll → set up the workdir + skills → run a
11
11
  * {@link SessionToolRunner} while heartbeating the work-item lease →
12
- * force-stop on exit loop. Use `handleItem()` for the per-item flow when you
13
- * already hold a claimed work item with no arguments it reads the
14
- * `ANTHROPIC_*` env vars that `ant worker poll --on-work` sets. The class is
15
- * also exported here if you prefer `new EnvironmentWorker({ client, ... })`.
12
+ * force-stop on exit (unless the lease was lost to another holder) loop.
13
+ * Use `handleItem()` for the per-item flow when you already hold a claimed
14
+ * work item with no arguments it reads the `ANTHROPIC_*` env vars that
15
+ * `ant worker poll --on-work` sets. The class is also exported here if you
16
+ * prefer `new EnvironmentWorker({ client, ... })`.
16
17
  *
17
18
  * The tool implementations themselves (`betaAgentToolset20260401` and the
18
19
  * per-tool factories) live in their own Node-only module — import them directly
@@ -1 +1 @@
1
- {"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,wCAAqC"}
1
+ {"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,wCAAqC"}
@@ -12,10 +12,11 @@ exports.DEFAULT_MAX_IDLE_MS = exports.MANAGED_AGENTS_BETA = exports.SessionToolR
12
12
  * - {@link EnvironmentWorker} (`client.beta.environments.work.worker`) — the full
13
13
  * composition: poll → set up the workdir + skills → run a
14
14
  * {@link SessionToolRunner} while heartbeating the work-item lease →
15
- * force-stop on exit loop. Use `handleItem()` for the per-item flow when you
16
- * already hold a claimed work item with no arguments it reads the
17
- * `ANTHROPIC_*` env vars that `ant worker poll --on-work` sets. The class is
18
- * also exported here if you prefer `new EnvironmentWorker({ client, ... })`.
15
+ * force-stop on exit (unless the lease was lost to another holder) loop.
16
+ * Use `handleItem()` for the per-item flow when you already hold a claimed
17
+ * work item with no arguments it reads the `ANTHROPIC_*` env vars that
18
+ * `ant worker poll --on-work` sets. The class is also exported here if you
19
+ * prefer `new EnvironmentWorker({ client, ... })`.
19
20
  *
20
21
  * The tool implementations themselves (`betaAgentToolset20260401` and the
21
22
  * per-tool factories) live in their own Node-only module — import them directly
@@ -1 +1 @@
1
- {"version":3,"file":"environments.js","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yDAYsC;AAXpC,mGAAA,UAAU,OAAA;AACV,0GAAA,iBAAiB,OAAA;AACjB,0GAAA,iBAAiB,OAAA;AACjB,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"environments.js","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,yDAYsC;AAXpC,mGAAA,UAAU,OAAA;AACV,0GAAA,iBAAiB,OAAA;AACjB,0GAAA,iBAAiB,OAAA;AACjB,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA"}
@@ -9,10 +9,11 @@
9
9
  * - {@link EnvironmentWorker} (`client.beta.environments.work.worker`) — the full
10
10
  * composition: poll → set up the workdir + skills → run a
11
11
  * {@link SessionToolRunner} while heartbeating the work-item lease →
12
- * force-stop on exit loop. Use `handleItem()` for the per-item flow when you
13
- * already hold a claimed work item with no arguments it reads the
14
- * `ANTHROPIC_*` env vars that `ant worker poll --on-work` sets. The class is
15
- * also exported here if you prefer `new EnvironmentWorker({ client, ... })`.
12
+ * force-stop on exit (unless the lease was lost to another holder) loop.
13
+ * Use `handleItem()` for the per-item flow when you already hold a claimed
14
+ * work item with no arguments it reads the `ANTHROPIC_*` env vars that
15
+ * `ant worker poll --on-work` sets. The class is also exported here if you
16
+ * prefer `new EnvironmentWorker({ client, ... })`.
16
17
  *
17
18
  * The tool implementations themselves (`betaAgentToolset20260401` and the
18
19
  * per-tool factories) live in their own Node-only module — import them directly
@@ -1 +1 @@
1
- {"version":3,"file":"environments.mjs","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,GAOpB,yCAAqC"}
1
+ {"version":3,"file":"environments.mjs","sourceRoot":"","sources":["../../src/helpers/beta/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,GAOpB,yCAAqC"}
@@ -0,0 +1,45 @@
1
+ import { AutoParseableBetaOutputFormat } from "../../lib/beta-parser.mjs";
2
+ import { BetaRunnableTool, BetaToolRunContext, Promisable } from "../../lib/tools/BetaRunnableTool.mjs";
3
+ import { BetaToolResultContentBlockParam } from "../../resources/beta.mjs";
4
+ import { StandardSchemaV1 } from "../../lib/standard-schema.mjs";
5
+ /**
6
+ * Creates a JSON schema output format object from the given
7
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
8
+ *
9
+ * If this is passed to the `.parse()` method then the response message will contain a
10
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
11
+ *
12
+ * This can be passed directly to the `.create()` method but will not
13
+ * result in any automatic parsing, you'll have to parse the response yourself.
14
+ */
15
+ export declare function betaStandardSchemaOutputFormat<Schema extends StandardSchemaV1>(schema: Schema, options?: {
16
+ /**
17
+ * The JSON schema to send to the API. Derived from the schema's
18
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
19
+ */
20
+ jsonSchema?: Record<string, unknown> | undefined;
21
+ }): AutoParseableBetaOutputFormat<StandardSchemaV1.InferOutput<Schema>>;
22
+ /**
23
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
24
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
25
+ * The schema's JSON Schema representation is sent to the API and the provided
26
+ * function's input arguments will be validated against the schema.
27
+ */
28
+ export declare function betaStandardSchemaTool<InputSchema extends StandardSchemaV1>(options: {
29
+ name: string;
30
+ inputSchema: InputSchema;
31
+ description: string;
32
+ run: (args: StandardSchemaV1.InferOutput<InputSchema>, context?: BetaToolRunContext) => Promisable<string | Array<BetaToolResultContentBlockParam>>;
33
+ /**
34
+ * The JSON schema to send as the tool's `input_schema`. Derived from the schema's
35
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
36
+ */
37
+ jsonSchema?: Record<string, unknown> | undefined;
38
+ /**
39
+ * Optional cleanup hook for tools that hold process-level resources (e.g. a
40
+ * persistent shell). `client.beta.sessions.events.toolRunner` calls it once
41
+ * when iteration ends.
42
+ */
43
+ close?: () => void | Promise<void>;
44
+ }): BetaRunnableTool<StandardSchemaV1.InferOutput<InputSchema>>;
45
+ //# sourceMappingURL=standard-schema.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.d.mts","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,kCAA8B;AACtE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,6CAAyC;AACpG,OAAO,EAAE,+BAA+B,EAAE,iCAA6B;AACvE,OAAO,EAGL,gBAAgB,EACjB,sCAAkC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,SAAS,gBAAgB,EAC5E,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAClD,GACA,6BAA6B,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAuBrE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,SAAS,gBAAgB,EAAE,OAAO,EAAE;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,CACH,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,EAC/C,OAAO,CAAC,EAAE,kBAAkB,KACzB,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACjE;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAkB9D"}
@@ -0,0 +1,45 @@
1
+ import { AutoParseableBetaOutputFormat } from "../../lib/beta-parser.js";
2
+ import { BetaRunnableTool, BetaToolRunContext, Promisable } from "../../lib/tools/BetaRunnableTool.js";
3
+ import { BetaToolResultContentBlockParam } from "../../resources/beta.js";
4
+ import { StandardSchemaV1 } from "../../lib/standard-schema.js";
5
+ /**
6
+ * Creates a JSON schema output format object from the given
7
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
8
+ *
9
+ * If this is passed to the `.parse()` method then the response message will contain a
10
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
11
+ *
12
+ * This can be passed directly to the `.create()` method but will not
13
+ * result in any automatic parsing, you'll have to parse the response yourself.
14
+ */
15
+ export declare function betaStandardSchemaOutputFormat<Schema extends StandardSchemaV1>(schema: Schema, options?: {
16
+ /**
17
+ * The JSON schema to send to the API. Derived from the schema's
18
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
19
+ */
20
+ jsonSchema?: Record<string, unknown> | undefined;
21
+ }): AutoParseableBetaOutputFormat<StandardSchemaV1.InferOutput<Schema>>;
22
+ /**
23
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
24
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
25
+ * The schema's JSON Schema representation is sent to the API and the provided
26
+ * function's input arguments will be validated against the schema.
27
+ */
28
+ export declare function betaStandardSchemaTool<InputSchema extends StandardSchemaV1>(options: {
29
+ name: string;
30
+ inputSchema: InputSchema;
31
+ description: string;
32
+ run: (args: StandardSchemaV1.InferOutput<InputSchema>, context?: BetaToolRunContext) => Promisable<string | Array<BetaToolResultContentBlockParam>>;
33
+ /**
34
+ * The JSON schema to send as the tool's `input_schema`. Derived from the schema's
35
+ * `~standard.jsonSchema` (Standard JSON Schema) interface if not given.
36
+ */
37
+ jsonSchema?: Record<string, unknown> | undefined;
38
+ /**
39
+ * Optional cleanup hook for tools that hold process-level resources (e.g. a
40
+ * persistent shell). `client.beta.sessions.events.toolRunner` calls it once
41
+ * when iteration ends.
42
+ */
43
+ close?: () => void | Promise<void>;
44
+ }): BetaRunnableTool<StandardSchemaV1.InferOutput<InputSchema>>;
45
+ //# sourceMappingURL=standard-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,iCAA8B;AACtE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,4CAAyC;AACpG,OAAO,EAAE,+BAA+B,EAAE,gCAA6B;AACvE,OAAO,EAGL,gBAAgB,EACjB,qCAAkC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,SAAS,gBAAgB,EAC5E,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAClD,GACA,6BAA6B,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAuBrE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,SAAS,gBAAgB,EAAE,OAAO,EAAE;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,CACH,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,EAC/C,OAAO,CAAC,EAAE,kBAAkB,KACzB,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACjE;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAkB9D"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.betaStandardSchemaOutputFormat = betaStandardSchemaOutputFormat;
4
+ exports.betaStandardSchemaTool = betaStandardSchemaTool;
5
+ const transform_json_schema_1 = require("../../lib/transform-json-schema.js");
6
+ const error_1 = require("../../core/error.js");
7
+ const standard_schema_1 = require("../../lib/standard-schema.js");
8
+ /**
9
+ * Creates a JSON schema output format object from the given
10
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
11
+ *
12
+ * If this is passed to the `.parse()` method then the response message will contain a
13
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
14
+ *
15
+ * This can be passed directly to the `.create()` method but will not
16
+ * result in any automatic parsing, you'll have to parse the response yourself.
17
+ */
18
+ function betaStandardSchemaOutputFormat(schema, options) {
19
+ const jsonSchema = (0, transform_json_schema_1.transformJSONSchema)((0, standard_schema_1.standardSchemaToJSONSchema)(schema, options?.jsonSchema));
20
+ return {
21
+ type: 'json_schema',
22
+ schema: {
23
+ ...jsonSchema,
24
+ },
25
+ parse: (content) => {
26
+ let parsed;
27
+ try {
28
+ parsed = JSON.parse(content);
29
+ }
30
+ catch (error) {
31
+ throw new error_1.AnthropicError(`Failed to parse structured output as JSON: ${error instanceof Error ? error.message : String(error)}`);
32
+ }
33
+ return (0, standard_schema_1.parseWithStandardSchema)(schema, parsed);
34
+ },
35
+ };
36
+ }
37
+ /**
38
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
39
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
40
+ * The schema's JSON Schema representation is sent to the API and the provided
41
+ * function's input arguments will be validated against the schema.
42
+ */
43
+ function betaStandardSchemaTool(options) {
44
+ const jsonSchema = (0, standard_schema_1.standardSchemaToJSONSchema)(options.inputSchema, options.jsonSchema);
45
+ if (jsonSchema['type'] !== 'object') {
46
+ throw new Error(`Schema for tool "${options.name}" must be an object, but got ${String(jsonSchema['type'])}`);
47
+ }
48
+ return {
49
+ type: 'custom',
50
+ name: options.name,
51
+ input_schema: jsonSchema,
52
+ description: options.description,
53
+ run: options.run,
54
+ parse: (args) => (0, standard_schema_1.parseWithStandardSchema)(options.inputSchema, args),
55
+ ...(options.close ? { close: options.close } : {}),
56
+ };
57
+ }
58
+ //# sourceMappingURL=standard-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.js","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":";;AAqBA,wEAgCC;AAQD,wDAqCC;AAlGD,8EAAsE;AACtE,+CAAkD;AAIlD,kEAImC;AAEnC;;;;;;;;;GASG;AACH,SAAgB,8BAA8B,CAC5C,MAAc,EACd,OAMC;IAED,MAAM,UAAU,GAAG,IAAA,2CAAmB,EAAC,IAAA,4CAA0B,EAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAEhG,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN,GAAG,UAAU;SACd;QACD,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;YACjB,IAAI,MAAe,CAAC;YACpB,IAAI,CAAC;gBACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC/B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,sBAAc,CACtB,8CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;YACJ,CAAC;YAED,OAAO,IAAA,yCAAuB,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjD,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAuC,OAmB5E;IACC,MAAM,UAAU,GAAG,IAAA,4CAA0B,EAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvF,IAAI,UAAU,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CACb,oBAAoB,OAAO,CAAC,IAAI,gCAAgC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,YAAY,EAAE,UAAoD;QAClE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,KAAK,EAAE,CAAC,IAAa,EAAE,EAAE,CAAC,IAAA,yCAAuB,EAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC;QAC5E,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACnD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { transformJSONSchema } from "../../lib/transform-json-schema.mjs";
2
+ import { AnthropicError } from "../../core/error.mjs";
3
+ import { parseWithStandardSchema, standardSchemaToJSONSchema, } from "../../lib/standard-schema.mjs";
4
+ /**
5
+ * Creates a JSON schema output format object from the given
6
+ * [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType, ...).
7
+ *
8
+ * If this is passed to the `.parse()` method then the response message will contain a
9
+ * `.parsed_output` property that is the result of parsing the content with the given schema.
10
+ *
11
+ * This can be passed directly to the `.create()` method but will not
12
+ * result in any automatic parsing, you'll have to parse the response yourself.
13
+ */
14
+ export function betaStandardSchemaOutputFormat(schema, options) {
15
+ const jsonSchema = transformJSONSchema(standardSchemaToJSONSchema(schema, options?.jsonSchema));
16
+ return {
17
+ type: 'json_schema',
18
+ schema: {
19
+ ...jsonSchema,
20
+ },
21
+ parse: (content) => {
22
+ let parsed;
23
+ try {
24
+ parsed = JSON.parse(content);
25
+ }
26
+ catch (error) {
27
+ throw new AnthropicError(`Failed to parse structured output as JSON: ${error instanceof Error ? error.message : String(error)}`);
28
+ }
29
+ return parseWithStandardSchema(schema, parsed);
30
+ },
31
+ };
32
+ }
33
+ /**
34
+ * Creates a tool using the provided [Standard Schema](https://standardschema.dev)
35
+ * (Zod, Valibot, ArkType, ...) that can be passed into the `.toolRunner()` method.
36
+ * The schema's JSON Schema representation is sent to the API and the provided
37
+ * function's input arguments will be validated against the schema.
38
+ */
39
+ export function betaStandardSchemaTool(options) {
40
+ const jsonSchema = standardSchemaToJSONSchema(options.inputSchema, options.jsonSchema);
41
+ if (jsonSchema['type'] !== 'object') {
42
+ throw new Error(`Schema for tool "${options.name}" must be an object, but got ${String(jsonSchema['type'])}`);
43
+ }
44
+ return {
45
+ type: 'custom',
46
+ name: options.name,
47
+ input_schema: jsonSchema,
48
+ description: options.description,
49
+ run: options.run,
50
+ parse: (args) => parseWithStandardSchema(options.inputSchema, args),
51
+ ...(options.close ? { close: options.close } : {}),
52
+ };
53
+ }
54
+ //# sourceMappingURL=standard-schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-schema.mjs","sourceRoot":"","sources":["../../src/helpers/beta/standard-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4CAAwC;AACtE,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAIlD,OAAO,EACL,uBAAuB,EACvB,0BAA0B,GAE3B,sCAAkC;AAEnC;;;;;;;;;GASG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAc,EACd,OAMC;IAED,MAAM,UAAU,GAAG,mBAAmB,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAEhG,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN,GAAG,UAAU;SACd;QACD,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;YACjB,IAAI,MAAe,CAAC;YACpB,IAAI,CAAC;gBACH,MAAM,GAAG,IAAI,CAAC,KAAK,C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-Runtime-Version': globalThis.process.version,
50
+ 'X-Stainless-Runtime-Version': globalThis.process?.version ?? 'unknown',
51
51
  };
52
52
  }
53
53
  // Check if Node.js
@@ -1 +1 @@
1
- {"version":3,"file":"detect-platform.js","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAAqC;AAE9B,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO;IACL,aAAa;IACb,OAAO,MAAM,KAAK,WAAW;QAC7B,aAAa;QACb,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW;QACtC,aAAa;QACb,OAAO,SAAS,KAAK,WAAW,CACjC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,kBAAkB,sBAS7B;AAIF;;GAEG;AACH,SAAS,mBAAmB;IAC1B,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,WAAW,KAAK,WAAW,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IACE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAC5B,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAE,UAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACrF,KAAK,kBAAkB,EACxB,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAwBD,MAAM,qBAAqB,GAAG,GAAuB,EAAE;IACrD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,IAAI,gBAAgB,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO;YACL,kBAAkB,EAAE,IAAI;YACxB,6BAA6B,EAAE,iBAAO;YACtC,gBAAgB,EAAE,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE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AAQ;QAAE,OAAO,OAAO,CAAC;IAC1C,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAC3C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IACzC,IAAI,QAAQ;QAAE,OAAO,SAAS,QAAQ,EAAE,CAAC;IACzC,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,IAAI,gBAAoC,CAAC;AAClC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO,CAAC,gBAAgB,KAAhB,gBAAgB,GAAK,qBAAqB,EAAE,EAAC,CAAC;AACxD,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B"}
@@ -43,7 +43,7 @@ const getPlatformProperties = () => {
43
43
  'X-Stainless-OS': 'Unknown',
44
44
  'X-Stainless-Arch': `other:${EdgeRuntime}`,
45
45
  'X-Stainless-Runtime': 'edge',
46
- 'X-Stainless-Runtime-Version': globalThis.process.version,
46
+ 'X-Stainless-Runtime-Version': globalThis.process?.version ?? 'unknown',
47
47
  };
48
48
  }
49
49
  // Check if Node.js
@@ -1 +1 @@
1
- {"version":3,"file":"detect-platform.mjs","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAE,uBAAmB;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO;IACL,aAAa;IACb,OAAO,MAAM,KAAK,WAAW;QAC7B,aAAa;QACb,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW;QACtC,aAAa;QACb,OAAO,SAAS,KAAK,WAAW,CACjC,CAAC;AACJ,CAAC,CAAC;AAIF;;GAEG;AACH,SAAS,mBAAmB;IAC1B,IAAI,OAAO,IAAI,KAAK,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
+ * `FileStore` — one confined folder; a relative path cannot escape it.
3
+ *
4
+ * Beta scope: symlinks are refused or skipped wherever the store meets them,
5
+ * but there is no hardening against a process racing the store's own
6
+ * syscalls; fsync durability, non-POSIX hosts, and read-size caps are out of
7
+ * scope.
8
+ */
9
+ /** A refused operation — input the store will not act on. OS errors propagate with their `.code`. */
10
+ export declare class FileStoreError extends Error {
11
+ static readonly ESCAPES_ROOT = "escapes the store root";
12
+ static readonly IS_A_SYMLINK = "is a symlink";
13
+ static readonly NOT_A_FILE = "is not a regular file";
14
+ static readonly NOT_A_DIRECTORY = "is not a directory";
15
+ static readonly NOT_UTF8 = "is not valid utf-8";
16
+ static readonly MOVE_DESTINATION_EXISTS = "already exists";
17
+ readonly reason: string;
18
+ readonly relPath: string;
19
+ constructor(reason: string, relPath: string);
20
+ }
21
+ /**
22
+ * The store's resolved root, and what {@link FileStore.dispose} will do to it.
23
+ *
24
+ * `removedOnDispose` is true when `open` found no root, so `dispose` removes
25
+ * it. A root that was already there is someone else's — a pre-seeded mount, a
26
+ * caller's workdir — and is kept.
27
+ */
28
+ export type Root = {
29
+ path: string;
30
+ removedOnDispose: boolean;
31
+ };
32
+ /** Options for {@link FileStore.open} / {@link openFileStore}. */
33
+ export interface OpenFileStoreOptions {
34
+ /**
35
+ * Restrict the store to valid UTF-8 (default `false`): a `put` of binary
36
+ * bytes and a `get` of a binary file are refused with
37
+ * {@link FileStoreError}, so a caller that decodes what `get` returns can
38
+ * never hit a decode error.
39
+ */
40
+ utf8?: boolean;
41
+ }
42
+ /** Resolve `root`; creates nothing — only {@link FileStore.createRoot} makes the folder. */
43
+ export declare function openFileStore(root: string, opts?: OpenFileStoreOptions): Promise<FileStore>;
44
+ /**
45
+ * True for a path usable verbatim as a store location: absolute, with no `..`
46
+ * components. Paths are judged in POSIX terms — they are wire values naming
47
+ * locations inside a POSIX container, not host-native paths.
48
+ */
49
+ export declare function isPathLegal(p: string): boolean;
50
+ /**
51
+ * One confined folder of regular files.
52
+ *
53
+ * Every `relPath` is relative to the root (a leading `/` also means the root)
54
+ * and refused with {@link FileStoreError} when it escapes. The store holds
55
+ * regular files only: symlinks are refused on read and skipped by listings —
56
+ * {@link findSymlinks} reports them. A `relPath` resolving to the root itself
57
+ * is banned by this interface: `put` and `get` refuse it, `move` and `remove`
58
+ * do nothing. A store opened with `utf8: true` refuses binary content the
59
+ * same way — on `put` of such bytes and on `get` of such a file. Only
60
+ * {@link createRoot} makes the root: writes create directories below it,
61
+ * never the root itself, so a root removed while the store is open stays
62
+ * removed and the write fails with `ENOENT`.
63
+ */
64
+ export declare class FileStore {
65
+ private readonly rootPath;
66
+ /** True ⇒ this open created the root, so {@link dispose} removes it. */
67
+ private readonly removedOnDispose;
68
+ /** Set iff the store refuses non-UTF-8 content; {@link requireUtf8} decodes against it, on both put and get. */
69
+ private readonly decoder;
70
+ /** `hashtree`'s advisory cache; every hit re-validates against a fresh stat. */
71
+ private readonly hashes;
72
+ static isPathLegal: typeof isPathLegal;
73
+ /** @internal — use {@link FileStore.open} / {@link openFileStore}. */
74
+ constructor(root: string, removedOnDispose: boolean, utf8Only?: boolean);
75
+ /** Resolve `root`; creates nothing — only {@link createRoot} makes the folder. */
76
+ static open(root: string, opts?: OpenFileStoreOptions): Promise<FileStore>;
77
+ /** Create the root directory and any missing ancestors; already existing is fine. */
78
+ createRoot(): Promise<void>;
79
+ /** The resolved root, and what {@link dispose} will do to it. */
80
+ root(): Root;
81
+ /**
82
+ * Remove the root iff `open` created it; pre-existing roots are kept.
83
+ *
84
+ * Wired to `Symbol.asyncDispose` at runtime when the host provides it, so
85
+ * `await using` works on engines with explicit resource management.
86
+ */
87
+ dispose(): Promise<void>;
88
+ /**
89
+ * Write `data` (`string` UTF-8 or bytes) atomically to the file at `relPath`.
90
+ *
91
+ * Missing directories below the root are created; a missing root is not —
92
+ * the write fails with `ENOENT`.
93
+ */
94
+ put(relPath: string, data: string | Uint8Array, opts?: {
95
+ executable?: boolean;
96
+ }): Promise<void>;
97
+ /** The file's bytes; `null` when absent. */
98
+ get(relPath: string): Promise<Uint8Array | null>;
99
+ /** The relative path of every file under the directory `under`. */
100
+ ls(under?: string): Promise<Set<string>>;
101
+ /**
102
+ * Every symlink under `under` — listings skip them and reads refuse them,
103
+ * so a caller that must know they exist asks here.
104
+ */
105
+ findSymlinks(under?: string): Promise<Set<string>>;
106
+ /**
107
+ * `{relPath: sha256Hex}` of every file under the directory `under`.
108
+ *
109
+ * Unchanged files — same size, mtime, and ctime since the last call —
110
+ * reuse their recorded hash instead of being re-read.
111
+ */
112
+ hashtree(under?: string): Promise<Record<string, string>>;
113
+ /** One file's sha256; `null` when absent. Shares {@link hashtree}'s cache. */
114
+ hashFile(relPath: string): Promise<string | null>;
115
+ /**
116
+ * Rename `src` to `dst`; an existing `dst` is refused. The banned store
117
+ * root as either end does nothing.
118
+ */
119
+ move(src: string, dst: string): Promise<void>;
120
+ /** Delete a file or subtree; absent — and the banned store root — do nothing. */
121
+ remove(relPath: string): Promise<void>;
122
+ private resolveUnderRoot;
123
+ private requireUtf8;
124
+ private hashViaCache;
125
+ }
126
+ /** sha256 of a file's contents, streamed — constant memory on any file size. */
127
+ declare function hashFile(full: string): Promise<string>;
128
+ /** Test seam — the hasher, the trust margin, and the walk clock. @internal */
129
+ export declare const _internals: {
130
+ hashFile: typeof hashFile;
131
+ timestampTrustMarginNs: bigint;
132
+ nowNs: () => bigint;
133
+ };
134
+ export declare const LocalFileStore: typeof FileStore;
135
+ export {};
136
+ //# sourceMappingURL=file-store.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-store.d.mts","sourceRoot":"","sources":["../src/internal/file-store.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAmBH,qGAAqG;AACrG,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,CAAC,QAAQ,CAAC,YAAY,4BAA4B;IACxD,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAC9C,MAAM,CAAC,QAAQ,CAAC,UAAU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