agor-live 0.22.0 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1006) hide show
  1. package/dist/cli/commands/admin/add-to-branch-group.d.ts +2 -13
  2. package/dist/cli/commands/admin/add-to-branch-group.d.ts.map +1 -1
  3. package/dist/cli/commands/admin/add-to-branch-group.js +133 -33
  4. package/dist/cli/commands/admin/create-branch-group.d.ts +2 -13
  5. package/dist/cli/commands/admin/create-branch-group.d.ts.map +1 -1
  6. package/dist/cli/commands/admin/create-branch-group.js +132 -38
  7. package/dist/cli/commands/admin/create-symlink.d.ts +2 -14
  8. package/dist/cli/commands/admin/create-symlink.d.ts.map +1 -1
  9. package/dist/cli/commands/admin/create-symlink.js +138 -61
  10. package/dist/cli/commands/admin/delete-branch-group.d.ts +2 -13
  11. package/dist/cli/commands/admin/delete-branch-group.d.ts.map +1 -1
  12. package/dist/cli/commands/admin/delete-branch-group.js +132 -28
  13. package/dist/cli/commands/admin/delete-user.d.ts +2 -13
  14. package/dist/cli/commands/admin/delete-user.d.ts.map +1 -1
  15. package/dist/cli/commands/admin/delete-user.js +132 -38
  16. package/dist/cli/commands/admin/ensure-user.d.ts +2 -14
  17. package/dist/cli/commands/admin/ensure-user.d.ts.map +1 -1
  18. package/dist/cli/commands/admin/ensure-user.js +131 -46
  19. package/dist/cli/commands/admin/remove-from-branch-group.d.ts +2 -13
  20. package/dist/cli/commands/admin/remove-from-branch-group.d.ts.map +1 -1
  21. package/dist/cli/commands/admin/remove-from-branch-group.js +133 -33
  22. package/dist/cli/commands/admin/remove-symlink.d.ts +2 -14
  23. package/dist/cli/commands/admin/remove-symlink.d.ts.map +1 -1
  24. package/dist/cli/commands/admin/remove-symlink.js +136 -49
  25. package/dist/cli/commands/admin/scrub-git-remotes.d.ts +2 -2
  26. package/dist/cli/commands/admin/scrub-git-remotes.d.ts.map +1 -1
  27. package/dist/cli/commands/admin/scrub-git-remotes.js +128 -86
  28. package/dist/cli/commands/admin/sync-user-symlinks.d.ts +2 -14
  29. package/dist/cli/commands/admin/sync-user-symlinks.d.ts.map +1 -1
  30. package/dist/cli/commands/admin/sync-user-symlinks.js +132 -43
  31. package/dist/cli/commands/auth/whoami.d.ts.map +1 -1
  32. package/dist/cli/commands/auth/whoami.js +2 -1
  33. package/dist/cli/commands/branch/env/request.test.d.ts +2 -0
  34. package/dist/cli/commands/branch/env/request.test.d.ts.map +1 -0
  35. package/dist/cli/commands/branch/env/request.test.js +17723 -0
  36. package/dist/cli/commands/branch/env/restart.d.ts.map +1 -1
  37. package/dist/cli/commands/branch/env/restart.js +7 -1
  38. package/dist/cli/commands/branch/env/start.d.ts.map +1 -1
  39. package/dist/cli/commands/branch/env/start.js +7 -1
  40. package/dist/cli/commands/branch/env/stop.d.ts.map +1 -1
  41. package/dist/cli/commands/branch/env/stop.js +7 -1
  42. package/dist/cli/commands/daemon/status.d.ts.map +1 -1
  43. package/dist/cli/commands/daemon/status.js +2 -1
  44. package/dist/cli/commands/init.d.ts +6 -0
  45. package/dist/cli/commands/init.d.ts.map +1 -1
  46. package/dist/cli/commands/init.js +140 -2
  47. package/dist/cli/commands/local/add-to-branch-group.d.ts +13 -0
  48. package/dist/cli/commands/local/add-to-branch-group.d.ts.map +1 -0
  49. package/dist/cli/commands/local/add-to-branch-group.js +37 -0
  50. package/dist/cli/commands/local/create-branch-group.d.ts +12 -0
  51. package/dist/cli/commands/local/create-branch-group.d.ts.map +1 -0
  52. package/dist/cli/commands/local/create-branch-group.js +35 -0
  53. package/dist/cli/commands/local/create-symlink.d.ts +14 -0
  54. package/dist/cli/commands/local/create-symlink.d.ts.map +1 -0
  55. package/dist/cli/commands/local/create-symlink.js +45 -0
  56. package/dist/cli/commands/{daemon → local/daemon}/sync.d.ts +1 -1
  57. package/dist/cli/commands/local/daemon/sync.d.ts.map +1 -0
  58. package/dist/cli/commands/{daemon → local/daemon}/sync.js +7 -6
  59. package/dist/cli/commands/local/delete-branch-group.d.ts +12 -0
  60. package/dist/cli/commands/local/delete-branch-group.d.ts.map +1 -0
  61. package/dist/cli/commands/local/delete-branch-group.js +35 -0
  62. package/dist/cli/commands/local/delete-user.d.ts +12 -0
  63. package/dist/cli/commands/local/delete-user.d.ts.map +1 -0
  64. package/dist/cli/commands/local/delete-user.js +36 -0
  65. package/dist/cli/commands/local/ensure-user.d.ts +12 -0
  66. package/dist/cli/commands/local/ensure-user.d.ts.map +1 -0
  67. package/dist/cli/commands/local/ensure-user.js +41 -0
  68. package/dist/cli/commands/local/remove-from-branch-group.d.ts +13 -0
  69. package/dist/cli/commands/local/remove-from-branch-group.d.ts.map +1 -0
  70. package/dist/cli/commands/local/remove-from-branch-group.js +37 -0
  71. package/dist/cli/commands/local/remove-symlink.d.ts +13 -0
  72. package/dist/cli/commands/local/remove-symlink.d.ts.map +1 -0
  73. package/dist/cli/commands/local/remove-symlink.js +39 -0
  74. package/dist/cli/commands/local/scrub-git-remotes.d.ts +9 -0
  75. package/dist/cli/commands/local/scrub-git-remotes.d.ts.map +1 -0
  76. package/dist/cli/commands/local/scrub-git-remotes.js +23 -0
  77. package/dist/cli/commands/{admin → local}/sync-unix.d.ts.map +1 -1
  78. package/dist/cli/commands/{admin → local}/sync-unix.js +3 -3
  79. package/dist/cli/commands/local/sync-user-symlinks.d.ts +12 -0
  80. package/dist/cli/commands/local/sync-user-symlinks.d.ts.map +1 -0
  81. package/dist/cli/commands/local/sync-user-symlinks.js +37 -0
  82. package/dist/cli/commands/telemetry/index.d.ts +7 -0
  83. package/dist/cli/commands/telemetry/index.d.ts.map +1 -0
  84. package/dist/cli/commands/telemetry/index.js +40 -0
  85. package/dist/cli/commands/telemetry/off.d.ts +6 -0
  86. package/dist/cli/commands/telemetry/off.d.ts.map +1 -0
  87. package/dist/cli/commands/telemetry/off.js +35 -0
  88. package/dist/cli/commands/telemetry/on.d.ts +6 -0
  89. package/dist/cli/commands/telemetry/on.d.ts.map +1 -0
  90. package/dist/cli/commands/telemetry/on.js +37 -0
  91. package/dist/cli/commands/telemetry/test.d.ts +6 -0
  92. package/dist/cli/commands/telemetry/test.d.ts.map +1 -0
  93. package/dist/cli/commands/telemetry/test.js +56 -0
  94. package/dist/cli/commands/user/create-admin.d.ts.map +1 -1
  95. package/dist/cli/commands/user/create-admin.js +81 -72
  96. package/dist/cli/commands/user/list.d.ts.map +1 -1
  97. package/dist/cli/commands/user/list.js +1 -0
  98. package/dist/cli/commands/whoami.js +2 -1
  99. package/dist/cli/lib/branch-environment-action.d.ts +21 -0
  100. package/dist/cli/lib/branch-environment-action.d.ts.map +1 -0
  101. package/dist/cli/lib/branch-environment-action.js +8 -0
  102. package/dist/core/api/index.cjs +7 -2
  103. package/dist/core/api/index.d.ts +13 -4
  104. package/dist/core/api/index.d.ts.map +1 -1
  105. package/dist/core/api/index.js +7 -2
  106. package/dist/core/claude/index.cjs +518 -89
  107. package/dist/core/claude/index.js +515 -88
  108. package/dist/core/claude-cli/index.cjs +24 -0
  109. package/dist/core/claude-cli/index.js +24 -0
  110. package/dist/core/claude-cli/pricing.d.ts.map +1 -1
  111. package/dist/core/client/index.cjs +52 -7
  112. package/dist/core/client/index.js +48 -7
  113. package/dist/core/config/browser.cjs +3 -5
  114. package/dist/core/config/browser.js +3 -5
  115. package/dist/core/config/config-manager.d.ts +33 -13
  116. package/dist/core/config/config-manager.d.ts.map +1 -1
  117. package/dist/core/config/index.cjs +4259 -4527
  118. package/dist/core/config/index.d.ts +1 -0
  119. package/dist/core/config/index.d.ts.map +1 -1
  120. package/dist/core/config/index.js +4295 -4583
  121. package/dist/core/config/key-resolver.d.ts.map +1 -1
  122. package/dist/core/config/multitenancy.d.ts +33 -0
  123. package/dist/core/config/multitenancy.d.ts.map +1 -0
  124. package/dist/core/config/security-resolver.d.ts +1 -0
  125. package/dist/core/config/security-resolver.d.ts.map +1 -1
  126. package/dist/core/config/types.d.ts +67 -4
  127. package/dist/core/config/types.d.ts.map +1 -1
  128. package/dist/core/db/client.d.ts +34 -2
  129. package/dist/core/db/client.d.ts.map +1 -1
  130. package/dist/core/db/database-wrapper.d.ts.map +1 -1
  131. package/dist/core/db/first-run-bootstrap.d.ts.map +1 -1
  132. package/dist/core/db/index.cjs +2767 -1232
  133. package/dist/core/db/index.d.ts +2 -1
  134. package/dist/core/db/index.d.ts.map +1 -1
  135. package/dist/core/db/index.js +2601 -1094
  136. package/dist/core/db/migrate.d.ts.map +1 -1
  137. package/dist/core/db/repositories/artifacts.d.ts +27 -2
  138. package/dist/core/db/repositories/artifacts.d.ts.map +1 -1
  139. package/dist/core/db/repositories/base.d.ts +18 -0
  140. package/dist/core/db/repositories/base.d.ts.map +1 -1
  141. package/dist/core/db/repositories/board-comments.d.ts +17 -1
  142. package/dist/core/db/repositories/board-comments.d.ts.map +1 -1
  143. package/dist/core/db/repositories/board-objects.d.ts.map +1 -1
  144. package/dist/core/db/repositories/boards.d.ts +54 -3
  145. package/dist/core/db/repositories/boards.d.ts.map +1 -1
  146. package/dist/core/db/repositories/branch-access.d.ts +32 -0
  147. package/dist/core/db/repositories/branch-access.d.ts.map +1 -1
  148. package/dist/core/db/repositories/branches.d.ts +52 -2
  149. package/dist/core/db/repositories/branches.d.ts.map +1 -1
  150. package/dist/core/db/repositories/cards.d.ts +15 -1
  151. package/dist/core/db/repositories/cards.d.ts.map +1 -1
  152. package/dist/core/db/repositories/gateway-channels.d.ts +9 -0
  153. package/dist/core/db/repositories/gateway-channels.d.ts.map +1 -1
  154. package/dist/core/db/repositories/gateway-outbound-messages.d.ts +19 -0
  155. package/dist/core/db/repositories/gateway-outbound-messages.d.ts.map +1 -0
  156. package/dist/core/db/repositories/index.d.ts +2 -0
  157. package/dist/core/db/repositories/index.d.ts.map +1 -1
  158. package/dist/core/db/repositories/messages.d.ts +9 -2
  159. package/dist/core/db/repositories/messages.d.ts.map +1 -1
  160. package/dist/core/db/repositories/repos.d.ts.map +1 -1
  161. package/dist/core/db/repositories/schedules.d.ts +12 -1
  162. package/dist/core/db/repositories/schedules.d.ts.map +1 -1
  163. package/dist/core/db/repositories/sessions.d.ts +56 -5
  164. package/dist/core/db/repositories/sessions.d.ts.map +1 -1
  165. package/dist/core/db/repositories/tasks.d.ts +7 -2
  166. package/dist/core/db/repositories/tasks.d.ts.map +1 -1
  167. package/dist/core/db/repositories/user-api-keys.d.ts +10 -1
  168. package/dist/core/db/repositories/user-api-keys.d.ts.map +1 -1
  169. package/dist/core/db/repositories/users.d.ts +8 -8
  170. package/dist/core/db/repositories/users.d.ts.map +1 -1
  171. package/dist/core/db/schema.d.ts +1460 -38
  172. package/dist/core/db/schema.d.ts.map +1 -1
  173. package/dist/core/db/schema.postgres.d.ts +1082 -37
  174. package/dist/core/db/schema.postgres.d.ts.map +1 -1
  175. package/dist/core/db/schema.sqlite.d.ts +397 -1
  176. package/dist/core/db/schema.sqlite.d.ts.map +1 -1
  177. package/dist/core/db/tenant-context.d.ts +26 -0
  178. package/dist/core/db/tenant-context.d.ts.map +1 -0
  179. package/dist/core/db/tenant-scope.d.ts +31 -0
  180. package/dist/core/db/tenant-scope.d.ts.map +1 -0
  181. package/dist/core/db/user-utils.d.ts +2 -2
  182. package/dist/core/db/user-utils.d.ts.map +1 -1
  183. package/dist/core/drizzle/postgres/0052_gateway_outbound_messages.sql +45 -0
  184. package/dist/core/drizzle/postgres/0053_user_token_invalidation.sql +1 -0
  185. package/dist/core/drizzle/postgres/0054_app_level_multitenancy.sql +219 -0
  186. package/dist/core/drizzle/postgres/0055_app_level_multitenancy_rls.sql +411 -0
  187. package/dist/core/drizzle/postgres/0056_composite_indexes.sql +15 -0
  188. package/dist/core/drizzle/postgres/0057_message_timestamp_indexes.sql +3 -0
  189. package/dist/core/drizzle/postgres/meta/_journal.json +42 -0
  190. package/dist/core/drizzle/sqlite/0061_gateway_outbound_messages.sql +38 -0
  191. package/dist/core/drizzle/sqlite/0062_user_token_invalidation.sql +1 -0
  192. package/dist/core/drizzle/sqlite/0063_composite_indexes.sql +10 -0
  193. package/dist/core/drizzle/sqlite/0064_message_timestamp_indexes.sql +2 -0
  194. package/dist/core/drizzle/sqlite/meta/_journal.json +28 -0
  195. package/dist/core/environment/render-snapshot.cjs +7 -6
  196. package/dist/core/environment/render-snapshot.d.ts +2 -0
  197. package/dist/core/environment/render-snapshot.d.ts.map +1 -1
  198. package/dist/core/environment/render-snapshot.js +7 -6
  199. package/dist/core/environment/variable-resolver.cjs +3 -1
  200. package/dist/core/environment/variable-resolver.js +3 -1
  201. package/dist/core/environment/webhook.cjs +1 -4
  202. package/dist/core/environment/webhook.js +1 -4
  203. package/dist/core/gateway/connector.d.ts +10 -1
  204. package/dist/core/gateway/connector.d.ts.map +1 -1
  205. package/dist/core/gateway/connectors/slack-manifest.cjs +108 -0
  206. package/dist/core/gateway/connectors/slack-manifest.d.ts +85 -0
  207. package/dist/core/gateway/connectors/slack-manifest.d.ts.map +1 -0
  208. package/dist/core/gateway/connectors/slack-manifest.js +81 -0
  209. package/dist/core/gateway/connectors/slack.d.ts +101 -4
  210. package/dist/core/gateway/connectors/slack.d.ts.map +1 -1
  211. package/dist/core/gateway/index.cjs +495 -29
  212. package/dist/core/gateway/index.d.ts +4 -1
  213. package/dist/core/gateway/index.d.ts.map +1 -1
  214. package/dist/core/gateway/index.js +490 -28
  215. package/dist/core/gateway/system-message.d.ts.map +1 -1
  216. package/dist/core/git/exec.cjs +24 -0
  217. package/dist/core/git/exec.d.ts +6 -4
  218. package/dist/core/git/exec.d.ts.map +1 -1
  219. package/dist/core/git/exec.js +2 -0
  220. package/dist/core/git/index.cjs +3 -1363
  221. package/dist/core/git/index.d.ts +4 -614
  222. package/dist/core/git/index.d.ts.map +1 -1
  223. package/dist/core/git/index.js +1 -1304
  224. package/dist/core/git/pure.cjs +24 -0
  225. package/dist/core/git/pure.d.ts +2 -27
  226. package/dist/core/git/pure.d.ts.map +1 -1
  227. package/dist/core/git/pure.js +2 -0
  228. package/dist/core/index.cjs +11563 -10832
  229. package/dist/core/index.d.ts +2 -0
  230. package/dist/core/index.d.ts.map +1 -1
  231. package/dist/core/index.js +12203 -10962
  232. package/dist/core/lib/feathers-validation.cjs +9 -1
  233. package/dist/core/lib/feathers-validation.d.ts +2 -0
  234. package/dist/core/lib/feathers-validation.d.ts.map +1 -1
  235. package/dist/core/lib/feathers-validation.js +9 -1
  236. package/dist/core/local-actions/git-remotes.d.ts +7 -0
  237. package/dist/core/local-actions/git-remotes.d.ts.map +1 -0
  238. package/dist/core/local-actions/index.cjs +8008 -0
  239. package/dist/core/local-actions/index.d.ts +6 -0
  240. package/dist/core/local-actions/index.d.ts.map +1 -0
  241. package/dist/core/local-actions/index.js +8010 -0
  242. package/dist/core/local-actions/symlinks.d.ts +20 -0
  243. package/dist/core/local-actions/symlinks.d.ts.map +1 -0
  244. package/dist/core/local-actions/types.d.ts +14 -0
  245. package/dist/core/local-actions/types.d.ts.map +1 -0
  246. package/dist/core/local-actions/unix-groups.d.ts +16 -0
  247. package/dist/core/local-actions/unix-groups.d.ts.map +1 -0
  248. package/dist/core/local-actions/unix-users.d.ts +12 -0
  249. package/dist/core/local-actions/unix-users.d.ts.map +1 -0
  250. package/dist/core/mcp/index.cjs +373 -28
  251. package/dist/core/mcp/index.d.ts +1 -1
  252. package/dist/core/mcp/index.d.ts.map +1 -1
  253. package/dist/core/mcp/index.js +369 -27
  254. package/dist/core/mcp/template-patterns.d.ts +15 -0
  255. package/dist/core/mcp/template-patterns.d.ts.map +1 -0
  256. package/dist/core/mcp/template-resolver.d.ts +13 -0
  257. package/dist/core/mcp/template-resolver.d.ts.map +1 -1
  258. package/dist/core/models/browser.cjs +154 -25
  259. package/dist/core/models/browser.js +150 -25
  260. package/dist/core/models/claude.d.ts +2 -2
  261. package/dist/core/models/claude.d.ts.map +1 -1
  262. package/dist/core/models/codex.d.ts +205 -21
  263. package/dist/core/models/codex.d.ts.map +1 -1
  264. package/dist/core/models/index.cjs +154 -25
  265. package/dist/core/models/index.js +150 -25
  266. package/dist/core/package.json +24 -0
  267. package/dist/core/seed/demo-fixtures.d.ts +87 -0
  268. package/dist/core/seed/demo-fixtures.d.ts.map +1 -0
  269. package/dist/core/seed/dev-fixtures.d.ts.map +1 -1
  270. package/dist/core/seed/index.cjs +8569 -5519
  271. package/dist/core/seed/index.d.ts +1 -0
  272. package/dist/core/seed/index.d.ts.map +1 -1
  273. package/dist/core/seed/index.js +8580 -5535
  274. package/dist/core/sessions/index.cjs +110 -24
  275. package/dist/core/sessions/index.js +110 -24
  276. package/dist/core/telemetry/index.cjs +361 -0
  277. package/dist/core/telemetry/index.d.ts +5 -0
  278. package/dist/core/telemetry/index.d.ts.map +1 -0
  279. package/dist/core/telemetry/index.js +315 -0
  280. package/dist/core/telemetry/logger.d.ts +44 -0
  281. package/dist/core/telemetry/logger.d.ts.map +1 -0
  282. package/dist/core/telemetry/model-normalization.d.ts +3 -0
  283. package/dist/core/telemetry/model-normalization.d.ts.map +1 -0
  284. package/dist/core/telemetry/types.d.ts +47 -0
  285. package/dist/core/telemetry/types.d.ts.map +1 -0
  286. package/dist/core/telemetry/version.d.ts +9 -0
  287. package/dist/core/telemetry/version.d.ts.map +1 -0
  288. package/dist/core/templates/agor-system-prompt.md +1 -0
  289. package/dist/core/templates/handlebars-helpers.cjs +3 -1
  290. package/dist/core/templates/handlebars-helpers.d.ts +5 -0
  291. package/dist/core/templates/handlebars-helpers.d.ts.map +1 -1
  292. package/dist/core/templates/handlebars-helpers.js +3 -1
  293. package/dist/core/tools/mcp/auth-secrets.cjs +3460 -3
  294. package/dist/core/tools/mcp/auth-secrets.d.ts.map +1 -1
  295. package/dist/core/tools/mcp/auth-secrets.js +3477 -3
  296. package/dist/core/tools/mcp/http-headers.cjs +17 -1
  297. package/dist/core/tools/mcp/http-headers.d.ts.map +1 -1
  298. package/dist/core/tools/mcp/http-headers.js +15 -1
  299. package/dist/core/tools/mcp/oauth-refresh.cjs +568 -114
  300. package/dist/core/tools/mcp/oauth-refresh.js +566 -115
  301. package/dist/core/types/board.d.ts +14 -0
  302. package/dist/core/types/board.d.ts.map +1 -1
  303. package/dist/core/types/branch.d.ts +13 -0
  304. package/dist/core/types/branch.d.ts.map +1 -1
  305. package/dist/core/types/config-services.d.ts.map +1 -1
  306. package/dist/core/types/feathers.d.ts +6 -0
  307. package/dist/core/types/feathers.d.ts.map +1 -1
  308. package/dist/core/types/gateway.d.ts +90 -1
  309. package/dist/core/types/gateway.d.ts.map +1 -1
  310. package/dist/core/types/index.cjs +42 -0
  311. package/dist/core/types/index.d.ts +1 -0
  312. package/dist/core/types/index.d.ts.map +1 -1
  313. package/dist/core/types/index.js +38 -0
  314. package/dist/core/types/schedule.d.ts +4 -3
  315. package/dist/core/types/schedule.d.ts.map +1 -1
  316. package/dist/core/types/session.d.ts +7 -1
  317. package/dist/core/types/session.d.ts.map +1 -1
  318. package/dist/core/types/tenant.d.ts +15 -0
  319. package/dist/core/types/tenant.d.ts.map +1 -0
  320. package/dist/core/types/user.d.ts +61 -0
  321. package/dist/core/types/user.d.ts.map +1 -1
  322. package/dist/core/unix/index.cjs +1123 -674
  323. package/dist/core/unix/index.js +1071 -624
  324. package/dist/core/utils/emoji-shortcodes.d.ts +13 -0
  325. package/dist/core/utils/emoji-shortcodes.d.ts.map +1 -0
  326. package/dist/core/yaml/index.cjs +8 -8
  327. package/dist/core/yaml/index.d.ts +1 -1
  328. package/dist/core/yaml/index.d.ts.map +1 -1
  329. package/dist/core/yaml/index.js +7 -7
  330. package/dist/daemon/adapters/drizzle.d.ts +26 -4
  331. package/dist/daemon/adapters/drizzle.d.ts.map +1 -1
  332. package/dist/daemon/adapters/drizzle.js +68 -7
  333. package/dist/daemon/auth/api-key-strategy.js +1 -1
  334. package/dist/daemon/auth/executor-runtime-scope.d.ts.map +1 -1
  335. package/dist/daemon/auth/executor-runtime-scope.js +34 -6
  336. package/dist/daemon/auth/executor-session-token.d.ts +15 -0
  337. package/dist/daemon/auth/executor-session-token.d.ts.map +1 -0
  338. package/dist/daemon/auth/executor-session-token.js +17 -0
  339. package/dist/daemon/auth/issue-browser-tokens-hook.d.ts +24 -0
  340. package/dist/daemon/auth/issue-browser-tokens-hook.d.ts.map +1 -0
  341. package/dist/daemon/auth/issue-browser-tokens-hook.js +95 -0
  342. package/dist/daemon/auth/launch-auth.d.ts +5 -4
  343. package/dist/daemon/auth/launch-auth.d.ts.map +1 -1
  344. package/dist/daemon/auth/launch-auth.js +123 -39
  345. package/dist/daemon/auth/refresh-token-service.d.ts +22 -0
  346. package/dist/daemon/auth/refresh-token-service.d.ts.map +1 -0
  347. package/dist/daemon/auth/refresh-token-service.js +133 -0
  348. package/dist/daemon/auth/runtime-tokens.d.ts +3 -1
  349. package/dist/daemon/auth/runtime-tokens.d.ts.map +1 -1
  350. package/dist/daemon/auth/runtime-tokens.js +17 -4
  351. package/dist/daemon/auth/service-jwt-strategy.d.ts +2 -1
  352. package/dist/daemon/auth/service-jwt-strategy.d.ts.map +1 -1
  353. package/dist/daemon/auth/service-jwt-strategy.js +141 -3
  354. package/dist/daemon/auth/token-invalidation.d.ts +11 -0
  355. package/dist/daemon/auth/token-invalidation.d.ts.map +1 -0
  356. package/dist/daemon/auth/token-invalidation.js +38 -0
  357. package/dist/daemon/auth/user-redaction.d.ts +12 -0
  358. package/dist/daemon/auth/user-redaction.d.ts.map +1 -0
  359. package/dist/daemon/auth/user-redaction.js +13 -0
  360. package/dist/daemon/declarations.d.ts +5 -4
  361. package/dist/daemon/declarations.d.ts.map +1 -1
  362. package/dist/daemon/hooks/gateway-route.d.ts.map +1 -1
  363. package/dist/daemon/hooks/gateway-route.js +23 -13
  364. package/dist/daemon/index.d.ts.map +1 -1
  365. package/dist/daemon/index.js +8271 -2956
  366. package/dist/daemon/knowledge/pgvector.d.ts +3 -3
  367. package/dist/daemon/knowledge/pgvector.d.ts.map +1 -1
  368. package/dist/daemon/knowledge/pgvector.js +24 -0
  369. package/dist/daemon/knowledge/units.d.ts +2 -2
  370. package/dist/daemon/knowledge/units.d.ts.map +1 -1
  371. package/dist/daemon/main.js +8271 -2956
  372. package/dist/daemon/mcp/server.d.ts +3 -3
  373. package/dist/daemon/mcp/server.d.ts.map +1 -1
  374. package/dist/daemon/mcp/server.js +1740 -81
  375. package/dist/daemon/mcp/tokens.d.ts +2 -2
  376. package/dist/daemon/mcp/tokens.d.ts.map +1 -1
  377. package/dist/daemon/mcp/tokens.js +5 -1
  378. package/dist/daemon/mcp/tool-registry.d.ts.map +1 -1
  379. package/dist/daemon/mcp/tool-registry.js +1 -0
  380. package/dist/daemon/mcp/tools/analytics.d.ts.map +1 -1
  381. package/dist/daemon/mcp/tools/analytics.js +598 -24
  382. package/dist/daemon/mcp/tools/artifacts.js +560 -20
  383. package/dist/daemon/mcp/tools/boards.d.ts.map +1 -1
  384. package/dist/daemon/mcp/tools/boards.js +567 -21
  385. package/dist/daemon/mcp/tools/branches.d.ts.map +1 -1
  386. package/dist/daemon/mcp/tools/branches.js +624 -50
  387. package/dist/daemon/mcp/tools/card-types.js +558 -18
  388. package/dist/daemon/mcp/tools/cards.js +558 -18
  389. package/dist/daemon/mcp/tools/environment.js +566 -18
  390. package/dist/daemon/mcp/tools/gateway-channels.d.ts +4 -0
  391. package/dist/daemon/mcp/tools/gateway-channels.d.ts.map +1 -0
  392. package/dist/daemon/mcp/tools/gateway-channels.js +16187 -0
  393. package/dist/daemon/mcp/tools/knowledge.js +558 -18
  394. package/dist/daemon/mcp/tools/mcp-servers.d.ts.map +1 -1
  395. package/dist/daemon/mcp/tools/mcp-servers.js +893 -18
  396. package/dist/daemon/mcp/tools/messages.d.ts.map +1 -1
  397. package/dist/daemon/mcp/tools/messages.js +618 -32
  398. package/dist/daemon/mcp/tools/proxies.js +568 -20
  399. package/dist/daemon/mcp/tools/repos.js +558 -18
  400. package/dist/daemon/mcp/tools/schedules.d.ts.map +1 -1
  401. package/dist/daemon/mcp/tools/schedules.js +561 -19
  402. package/dist/daemon/mcp/tools/search.js +558 -18
  403. package/dist/daemon/mcp/tools/sessions.d.ts.map +1 -1
  404. package/dist/daemon/mcp/tools/sessions.js +571 -24
  405. package/dist/daemon/mcp/tools/tasks.js +558 -18
  406. package/dist/daemon/mcp/tools/users.d.ts.map +1 -1
  407. package/dist/daemon/mcp/tools/users.js +577 -23
  408. package/dist/daemon/mcp/tools/widgets.d.ts.map +1 -1
  409. package/dist/daemon/mcp/tools/widgets.js +759 -83
  410. package/dist/daemon/oauth-auth-helpers.d.ts +35 -0
  411. package/dist/daemon/oauth-auth-helpers.d.ts.map +1 -0
  412. package/dist/daemon/oauth-auth-helpers.js +14 -0
  413. package/dist/daemon/register-hooks.d.ts +4 -2
  414. package/dist/daemon/register-hooks.d.ts.map +1 -1
  415. package/dist/daemon/register-hooks.js +1158 -595
  416. package/dist/daemon/register-routes.d.ts +3 -2
  417. package/dist/daemon/register-routes.d.ts.map +1 -1
  418. package/dist/daemon/register-routes.js +3161 -812
  419. package/dist/daemon/register-services.d.ts +2 -2
  420. package/dist/daemon/register-services.d.ts.map +1 -1
  421. package/dist/daemon/register-services.js +2782 -739
  422. package/dist/daemon/services/artifacts.d.ts +34 -6
  423. package/dist/daemon/services/artifacts.d.ts.map +1 -1
  424. package/dist/daemon/services/artifacts.js +109 -8
  425. package/dist/daemon/services/assistant-knowledge.d.ts +2 -2
  426. package/dist/daemon/services/assistant-knowledge.d.ts.map +1 -1
  427. package/dist/daemon/services/board-comments.d.ts +8 -5
  428. package/dist/daemon/services/board-comments.d.ts.map +1 -1
  429. package/dist/daemon/services/board-comments.js +78 -13
  430. package/dist/daemon/services/board-objects.d.ts +8 -5
  431. package/dist/daemon/services/board-objects.d.ts.map +1 -1
  432. package/dist/daemon/services/board-objects.js +14 -4
  433. package/dist/daemon/services/boards.d.ts +39 -5
  434. package/dist/daemon/services/boards.d.ts.map +1 -1
  435. package/dist/daemon/services/boards.js +123 -8
  436. package/dist/daemon/services/branch-owners.d.ts +3 -1
  437. package/dist/daemon/services/branch-owners.d.ts.map +1 -1
  438. package/dist/daemon/services/branch-owners.js +31 -4
  439. package/dist/daemon/services/branches.d.ts +31 -8
  440. package/dist/daemon/services/branches.d.ts.map +1 -1
  441. package/dist/daemon/services/branches.js +272 -36
  442. package/dist/daemon/services/card-types.d.ts +3 -3
  443. package/dist/daemon/services/card-types.d.ts.map +1 -1
  444. package/dist/daemon/services/card-types.js +68 -7
  445. package/dist/daemon/services/cards.d.ts +19 -4
  446. package/dist/daemon/services/cards.d.ts.map +1 -1
  447. package/dist/daemon/services/cards.js +92 -8
  448. package/dist/daemon/services/check-auth.d.ts +2 -2
  449. package/dist/daemon/services/check-auth.d.ts.map +1 -1
  450. package/dist/daemon/services/claude-cli-integration.d.ts +4 -1
  451. package/dist/daemon/services/claude-cli-integration.d.ts.map +1 -1
  452. package/dist/daemon/services/claude-cli-integration.js +117 -65
  453. package/dist/daemon/services/claude-models.d.ts +3 -3
  454. package/dist/daemon/services/claude-models.d.ts.map +1 -1
  455. package/dist/daemon/services/claude-models.js +387 -273
  456. package/dist/daemon/services/config.d.ts +12 -4
  457. package/dist/daemon/services/config.d.ts.map +1 -1
  458. package/dist/daemon/services/config.js +39 -3
  459. package/dist/daemon/services/copilot-models.d.ts +3 -3
  460. package/dist/daemon/services/copilot-models.d.ts.map +1 -1
  461. package/dist/daemon/services/cursor-models.d.ts +3 -3
  462. package/dist/daemon/services/cursor-models.d.ts.map +1 -1
  463. package/dist/daemon/services/files.d.ts +3 -3
  464. package/dist/daemon/services/files.d.ts.map +1 -1
  465. package/dist/daemon/services/files.js +24 -5
  466. package/dist/daemon/services/gateway-channels-test.d.ts +24 -0
  467. package/dist/daemon/services/gateway-channels-test.d.ts.map +1 -0
  468. package/dist/daemon/services/gateway-channels-test.js +66 -0
  469. package/dist/daemon/services/gateway-channels.d.ts +3 -3
  470. package/dist/daemon/services/gateway-channels.d.ts.map +1 -1
  471. package/dist/daemon/services/gateway-channels.js +68 -7
  472. package/dist/daemon/services/gateway.d.ts +63 -3
  473. package/dist/daemon/services/gateway.d.ts.map +1 -1
  474. package/dist/daemon/services/gateway.js +640 -60
  475. package/dist/daemon/services/github-app-setup.d.ts +3 -3
  476. package/dist/daemon/services/github-app-setup.d.ts.map +1 -1
  477. package/dist/daemon/services/groups.d.ts +5 -5
  478. package/dist/daemon/services/groups.d.ts.map +1 -1
  479. package/dist/daemon/services/health-monitor.d.ts +34 -2
  480. package/dist/daemon/services/health-monitor.d.ts.map +1 -1
  481. package/dist/daemon/services/health-monitor.js +155 -30
  482. package/dist/daemon/services/knowledge-document-edits.d.ts +3 -3
  483. package/dist/daemon/services/knowledge-document-edits.d.ts.map +1 -1
  484. package/dist/daemon/services/knowledge-documents.d.ts +3 -3
  485. package/dist/daemon/services/knowledge-documents.d.ts.map +1 -1
  486. package/dist/daemon/services/knowledge-documents.js +92 -7
  487. package/dist/daemon/services/knowledge-embedding-indexer.d.ts +7 -2
  488. package/dist/daemon/services/knowledge-embedding-indexer.d.ts.map +1 -1
  489. package/dist/daemon/services/knowledge-embedding-indexer.js +37 -3
  490. package/dist/daemon/services/knowledge-graph.d.ts +3 -3
  491. package/dist/daemon/services/knowledge-graph.d.ts.map +1 -1
  492. package/dist/daemon/services/knowledge-indexing.d.ts +3 -3
  493. package/dist/daemon/services/knowledge-indexing.d.ts.map +1 -1
  494. package/dist/daemon/services/knowledge-namespaces.d.ts +3 -3
  495. package/dist/daemon/services/knowledge-namespaces.d.ts.map +1 -1
  496. package/dist/daemon/services/knowledge-namespaces.js +72 -8
  497. package/dist/daemon/services/knowledge-reindex.d.ts +3 -3
  498. package/dist/daemon/services/knowledge-reindex.d.ts.map +1 -1
  499. package/dist/daemon/services/knowledge-reindex.js +28 -1
  500. package/dist/daemon/services/knowledge-search.d.ts +3 -3
  501. package/dist/daemon/services/knowledge-search.d.ts.map +1 -1
  502. package/dist/daemon/services/knowledge-settings.d.ts +3 -3
  503. package/dist/daemon/services/knowledge-settings.d.ts.map +1 -1
  504. package/dist/daemon/services/knowledge-settings.js +24 -0
  505. package/dist/daemon/services/knowledge-versions.d.ts +3 -3
  506. package/dist/daemon/services/knowledge-versions.d.ts.map +1 -1
  507. package/dist/daemon/services/knowledge-versions.js +68 -7
  508. package/dist/daemon/services/leaderboard.d.ts +14 -6
  509. package/dist/daemon/services/leaderboard.d.ts.map +1 -1
  510. package/dist/daemon/services/leaderboard.js +74 -15
  511. package/dist/daemon/services/local-actions.d.ts +13 -0
  512. package/dist/daemon/services/local-actions.d.ts.map +1 -0
  513. package/dist/daemon/services/local-actions.js +120 -0
  514. package/dist/daemon/services/mcp-servers.d.ts +3 -3
  515. package/dist/daemon/services/mcp-servers.d.ts.map +1 -1
  516. package/dist/daemon/services/mcp-servers.js +68 -7
  517. package/dist/daemon/services/messages.d.ts +10 -6
  518. package/dist/daemon/services/messages.d.ts.map +1 -1
  519. package/dist/daemon/services/messages.js +87 -7
  520. package/dist/daemon/services/repos.d.ts +6 -6
  521. package/dist/daemon/services/repos.d.ts.map +1 -1
  522. package/dist/daemon/services/repos.js +131 -32
  523. package/dist/daemon/services/scheduler.d.ts +23 -27
  524. package/dist/daemon/services/scheduler.d.ts.map +1 -1
  525. package/dist/daemon/services/scheduler.js +55 -28
  526. package/dist/daemon/services/schedules.d.ts +3 -3
  527. package/dist/daemon/services/schedules.d.ts.map +1 -1
  528. package/dist/daemon/services/schedules.js +68 -7
  529. package/dist/daemon/services/session-env-selections.d.ts +3 -3
  530. package/dist/daemon/services/session-env-selections.d.ts.map +1 -1
  531. package/dist/daemon/services/session-mcp-servers.d.ts +3 -3
  532. package/dist/daemon/services/session-mcp-servers.d.ts.map +1 -1
  533. package/dist/daemon/services/session-streams.d.ts +29 -0
  534. package/dist/daemon/services/session-streams.d.ts.map +1 -0
  535. package/dist/daemon/services/session-streams.js +84 -0
  536. package/dist/daemon/services/session-token-service.d.ts.map +1 -1
  537. package/dist/daemon/services/session-token-service.js +11 -4
  538. package/dist/daemon/services/sessions.d.ts +9 -5
  539. package/dist/daemon/services/sessions.d.ts.map +1 -1
  540. package/dist/daemon/services/sessions.js +143 -10
  541. package/dist/daemon/services/tasks.d.ts +11 -5
  542. package/dist/daemon/services/tasks.d.ts.map +1 -1
  543. package/dist/daemon/services/tasks.js +199 -39
  544. package/dist/daemon/services/terminals.d.ts +21 -3
  545. package/dist/daemon/services/terminals.d.ts.map +1 -1
  546. package/dist/daemon/services/terminals.js +81 -25
  547. package/dist/daemon/services/thread-session-map.d.ts +3 -3
  548. package/dist/daemon/services/thread-session-map.d.ts.map +1 -1
  549. package/dist/daemon/services/thread-session-map.js +68 -7
  550. package/dist/daemon/services/user-avatar-sync.d.ts +21 -0
  551. package/dist/daemon/services/user-avatar-sync.d.ts.map +1 -0
  552. package/dist/daemon/services/user-avatar-sync.js +267 -0
  553. package/dist/daemon/services/users.d.ts +29 -9
  554. package/dist/daemon/services/users.d.ts.map +1 -1
  555. package/dist/daemon/services/users.js +383 -30
  556. package/dist/daemon/services/zone-trigger.d.ts.map +1 -1
  557. package/dist/daemon/services/zone-trigger.js +17 -4
  558. package/dist/daemon/setup/build-info.d.ts +1 -1
  559. package/dist/daemon/setup/build-info.d.ts.map +1 -1
  560. package/dist/daemon/setup/build-info.js +5 -1
  561. package/dist/daemon/setup/database.d.ts +8 -3
  562. package/dist/daemon/setup/database.d.ts.map +1 -1
  563. package/dist/daemon/setup/database.js +26 -6
  564. package/dist/daemon/setup/first-run-admin.d.ts +2 -2
  565. package/dist/daemon/setup/first-run-admin.d.ts.map +1 -1
  566. package/dist/daemon/setup/index.js +137 -25
  567. package/dist/daemon/setup/socketio.d.ts +10 -1
  568. package/dist/daemon/setup/socketio.d.ts.map +1 -1
  569. package/dist/daemon/setup/socketio.js +108 -18
  570. package/dist/daemon/startup.d.ts +13 -2
  571. package/dist/daemon/startup.d.ts.map +1 -1
  572. package/dist/daemon/startup.js +377 -94
  573. package/dist/daemon/utils/append-system-message.d.ts +2 -2
  574. package/dist/daemon/utils/append-system-message.d.ts.map +1 -1
  575. package/dist/daemon/utils/apply-session-config-defaults.d.ts.map +1 -1
  576. package/dist/daemon/utils/apply-session-config-defaults.js +12 -1
  577. package/dist/daemon/utils/authorization.d.ts +3 -1
  578. package/dist/daemon/utils/authorization.d.ts.map +1 -1
  579. package/dist/daemon/utils/authorization.js +36 -7
  580. package/dist/daemon/utils/branch-authorization.d.ts +30 -0
  581. package/dist/daemon/utils/branch-authorization.d.ts.map +1 -1
  582. package/dist/daemon/utils/branch-authorization.js +63 -5
  583. package/dist/daemon/utils/branch-inspect.d.ts +1 -0
  584. package/dist/daemon/utils/branch-inspect.d.ts.map +1 -1
  585. package/dist/daemon/utils/branch-inspect.js +11 -3
  586. package/dist/daemon/utils/emit-service-event.d.ts +56 -0
  587. package/dist/daemon/utils/emit-service-event.d.ts.map +1 -0
  588. package/dist/daemon/utils/emit-service-event.js +23 -0
  589. package/dist/daemon/utils/executor-read-impersonation.d.ts +2 -2
  590. package/dist/daemon/utils/executor-read-impersonation.d.ts.map +1 -1
  591. package/dist/daemon/utils/git-impersonation.d.ts +10 -10
  592. package/dist/daemon/utils/git-impersonation.d.ts.map +1 -1
  593. package/dist/daemon/utils/git-remote-credential-scan.d.ts +3 -3
  594. package/dist/daemon/utils/git-remote-credential-scan.d.ts.map +1 -1
  595. package/dist/daemon/utils/git-remote-credential-scan.js +6 -2
  596. package/dist/daemon/utils/mcp-header-secrets.d.ts +3 -5
  597. package/dist/daemon/utils/mcp-header-secrets.d.ts.map +1 -1
  598. package/dist/daemon/utils/mcp-header-secrets.js +31 -2
  599. package/dist/daemon/utils/mcp-token-authorization.d.ts +18 -13
  600. package/dist/daemon/utils/mcp-token-authorization.d.ts.map +1 -1
  601. package/dist/daemon/utils/mcp-token-authorization.js +11 -5
  602. package/dist/daemon/utils/open-source-telemetry-config.d.ts +6 -0
  603. package/dist/daemon/utils/open-source-telemetry-config.d.ts.map +1 -0
  604. package/dist/daemon/utils/open-source-telemetry-config.js +21 -0
  605. package/dist/daemon/utils/open-source-telemetry-heartbeat.d.ts +7 -0
  606. package/dist/daemon/utils/open-source-telemetry-heartbeat.d.ts.map +1 -0
  607. package/dist/daemon/utils/open-source-telemetry-heartbeat.js +15 -0
  608. package/dist/daemon/utils/open-source-telemetry-usage.d.ts +9 -0
  609. package/dist/daemon/utils/open-source-telemetry-usage.d.ts.map +1 -0
  610. package/dist/daemon/utils/open-source-telemetry-usage.js +121 -0
  611. package/dist/daemon/utils/realign-repo-origin.d.ts +3 -3
  612. package/dist/daemon/utils/realign-repo-origin.d.ts.map +1 -1
  613. package/dist/daemon/utils/realign-repo-origin.js +47 -16
  614. package/dist/daemon/utils/realtime-access-cache.d.ts +9 -0
  615. package/dist/daemon/utils/realtime-access-cache.d.ts.map +1 -1
  616. package/dist/daemon/utils/realtime-access-cache.js +24 -0
  617. package/dist/daemon/utils/realtime-publish.d.ts +26 -0
  618. package/dist/daemon/utils/realtime-publish.d.ts.map +1 -1
  619. package/dist/daemon/utils/realtime-publish.js +171 -12
  620. package/dist/daemon/utils/session-queue-tenant-scope.d.ts +24 -0
  621. package/dist/daemon/utils/session-queue-tenant-scope.d.ts.map +1 -0
  622. package/dist/daemon/utils/session-queue-tenant-scope.js +133 -0
  623. package/dist/daemon/utils/session-state-hooks.d.ts +3 -3
  624. package/dist/daemon/utils/session-state-hooks.d.ts.map +1 -1
  625. package/dist/daemon/utils/session-turn-lock.d.ts +8 -1
  626. package/dist/daemon/utils/session-turn-lock.d.ts.map +1 -1
  627. package/dist/daemon/utils/session-turn-lock.js +25 -2
  628. package/dist/daemon/utils/spawn-executor.d.ts +23 -1
  629. package/dist/daemon/utils/spawn-executor.d.ts.map +1 -1
  630. package/dist/daemon/utils/spawn-executor.js +34 -4
  631. package/dist/daemon/utils/tenant-db-scope.d.ts +20 -0
  632. package/dist/daemon/utils/tenant-db-scope.d.ts.map +1 -0
  633. package/dist/daemon/utils/tenant-db-scope.js +114 -0
  634. package/dist/daemon/utils/unix-group-init.d.ts +3 -3
  635. package/dist/daemon/utils/unix-group-init.d.ts.map +1 -1
  636. package/dist/daemon/utils/upload.d.ts +6 -9
  637. package/dist/daemon/utils/upload.d.ts.map +1 -1
  638. package/dist/daemon/utils/upload.js +30 -37
  639. package/dist/daemon/widgets/env-vars/index.d.ts +26 -1
  640. package/dist/daemon/widgets/env-vars/index.d.ts.map +1 -1
  641. package/dist/daemon/widgets/env-vars/index.js +145 -21
  642. package/dist/daemon/widgets/gateway-token/index.d.ts +114 -0
  643. package/dist/daemon/widgets/gateway-token/index.d.ts.map +1 -0
  644. package/dist/daemon/widgets/gateway-token/index.js +14711 -0
  645. package/dist/daemon/widgets/index.d.ts.map +1 -1
  646. package/dist/daemon/widgets/index.js +327 -37
  647. package/dist/daemon/widgets/registry.d.ts +7 -0
  648. package/dist/daemon/widgets/registry.d.ts.map +1 -1
  649. package/dist/daemon/widgets/submissions.js +12 -9
  650. package/dist/executor/commands/environment.d.ts.map +1 -1
  651. package/dist/executor/commands/environment.js +9 -5
  652. package/dist/executor/commands/git.d.ts.map +1 -1
  653. package/dist/executor/commands/git.js +3 -1
  654. package/dist/executor/db/feathers-repositories.d.ts +19 -1
  655. package/dist/executor/db/feathers-repositories.d.ts.map +1 -1
  656. package/dist/executor/db/feathers-repositories.js +31 -1
  657. package/dist/executor/git/index.d.ts +8 -0
  658. package/dist/executor/git/index.d.ts.map +1 -0
  659. package/dist/executor/git/index.js +7 -0
  660. package/dist/executor/handlers/sdk/base-executor.d.ts.map +1 -1
  661. package/dist/executor/handlers/sdk/base-executor.js +4 -1
  662. package/dist/executor/handlers/sdk/claude.d.ts.map +1 -1
  663. package/dist/executor/handlers/sdk/claude.js +1 -1
  664. package/dist/executor/handlers/sdk/codex.d.ts.map +1 -1
  665. package/dist/executor/handlers/sdk/codex.js +1 -1
  666. package/dist/executor/handlers/sdk/copilot.d.ts.map +1 -1
  667. package/dist/executor/handlers/sdk/copilot.js +1 -1
  668. package/dist/executor/handlers/sdk/cursor.d.ts.map +1 -1
  669. package/dist/executor/handlers/sdk/cursor.js +1 -0
  670. package/dist/executor/handlers/sdk/gemini.d.ts.map +1 -1
  671. package/dist/executor/handlers/sdk/gemini.js +1 -1
  672. package/dist/executor/handlers/sdk/git-safe-directory.d.ts.map +1 -1
  673. package/dist/executor/handlers/sdk/git-safe-directory.js +1 -1
  674. package/dist/executor/handlers/sdk/opencode.d.ts.map +1 -1
  675. package/dist/executor/handlers/sdk/opencode.js +1 -1
  676. package/dist/executor/payload-types.d.ts +5 -5
  677. package/dist/executor/sdk-handlers/base/diff-enrichment.js +1 -1
  678. package/dist/executor/sdk-handlers/base/mcp-scoping.d.ts +8 -1
  679. package/dist/executor/sdk-handlers/base/mcp-scoping.d.ts.map +1 -1
  680. package/dist/executor/sdk-handlers/base/mcp-scoping.js +58 -6
  681. package/dist/executor/sdk-handlers/claude/claude-tool.d.ts +2 -2
  682. package/dist/executor/sdk-handlers/claude/claude-tool.d.ts.map +1 -1
  683. package/dist/executor/sdk-handlers/claude/claude-tool.js +2 -2
  684. package/dist/executor/sdk-handlers/claude/prompt-service.d.ts +13 -3
  685. package/dist/executor/sdk-handlers/claude/prompt-service.d.ts.map +1 -1
  686. package/dist/executor/sdk-handlers/claude/prompt-service.js +16 -3
  687. package/dist/executor/sdk-handlers/claude/query-builder.d.ts +2 -1
  688. package/dist/executor/sdk-handlers/claude/query-builder.d.ts.map +1 -1
  689. package/dist/executor/sdk-handlers/claude/query-builder.js +2 -1
  690. package/dist/executor/sdk-handlers/codex/codex-tool.d.ts +8 -12
  691. package/dist/executor/sdk-handlers/codex/codex-tool.d.ts.map +1 -1
  692. package/dist/executor/sdk-handlers/codex/codex-tool.js +14 -17
  693. package/dist/executor/sdk-handlers/codex/normalizer.d.ts.map +1 -1
  694. package/dist/executor/sdk-handlers/codex/normalizer.js +11 -1
  695. package/dist/executor/sdk-handlers/codex/pricing/litellm-openai-model-prices.json +3663 -0
  696. package/dist/executor/sdk-handlers/codex/pricing/litellm-pricing.d.ts +31 -0
  697. package/dist/executor/sdk-handlers/codex/pricing/litellm-pricing.d.ts.map +1 -0
  698. package/dist/executor/sdk-handlers/codex/pricing/litellm-pricing.js +46 -0
  699. package/dist/executor/sdk-handlers/codex/prompt-service.d.ts +3 -2
  700. package/dist/executor/sdk-handlers/codex/prompt-service.d.ts.map +1 -1
  701. package/dist/executor/sdk-handlers/codex/prompt-service.js +131 -12
  702. package/dist/executor/sdk-handlers/codex/usage.d.ts +14 -23
  703. package/dist/executor/sdk-handlers/codex/usage.d.ts.map +1 -1
  704. package/dist/executor/sdk-handlers/codex/usage.js +18 -33
  705. package/dist/executor/sdk-handlers/copilot/copilot-tool.d.ts +2 -2
  706. package/dist/executor/sdk-handlers/copilot/copilot-tool.d.ts.map +1 -1
  707. package/dist/executor/sdk-handlers/copilot/copilot-tool.js +2 -2
  708. package/dist/executor/sdk-handlers/copilot/prompt-service.d.ts +3 -2
  709. package/dist/executor/sdk-handlers/copilot/prompt-service.d.ts.map +1 -1
  710. package/dist/executor/sdk-handlers/copilot/prompt-service.js +4 -1
  711. package/dist/executor/sdk-handlers/gemini/gemini-tool.d.ts +2 -2
  712. package/dist/executor/sdk-handlers/gemini/gemini-tool.d.ts.map +1 -1
  713. package/dist/executor/sdk-handlers/gemini/gemini-tool.js +2 -2
  714. package/dist/executor/sdk-handlers/gemini/prompt-service.d.ts +3 -2
  715. package/dist/executor/sdk-handlers/gemini/prompt-service.d.ts.map +1 -1
  716. package/dist/executor/sdk-handlers/gemini/prompt-service.js +4 -1
  717. package/dist/executor/sdk-handlers/opencode/opencode-tool.d.ts +3 -2
  718. package/dist/executor/sdk-handlers/opencode/opencode-tool.d.ts.map +1 -1
  719. package/dist/executor/sdk-handlers/opencode/opencode-tool.js +4 -1
  720. package/dist/executor/services/feathers-client.d.ts.map +1 -1
  721. package/dist/executor/services/feathers-client.js +124 -25
  722. package/dist/git/index.cjs +1101 -0
  723. package/dist/git/index.d.ts +533 -0
  724. package/dist/git/index.d.ts.map +1 -0
  725. package/dist/git/index.js +1022 -0
  726. package/dist/git/package.json +21 -0
  727. package/dist/git/pure.cjs +185 -0
  728. package/dist/git/pure.d.ts +39 -0
  729. package/dist/git/pure.d.ts.map +1 -0
  730. package/dist/git/pure.js +139 -0
  731. package/dist/ui/assets/AgorEmojiPickerInner-leeNywMc.js +1 -0
  732. package/dist/ui/assets/App-Dpl4Cc0U.js +4 -0
  733. package/dist/ui/assets/App-Dpl4Cc0U.js.gz +0 -0
  734. package/dist/ui/assets/AppNode-wN3UZlFK.js +1 -0
  735. package/dist/ui/assets/AppNode-wN3UZlFK.js.gz +0 -0
  736. package/dist/ui/assets/ArtifactConsentModal-DjzXcP_L.js +1 -0
  737. package/dist/ui/assets/ArtifactConsentModal-DjzXcP_L.js.gz +0 -0
  738. package/dist/ui/assets/ArtifactFullscreenPage-B3b_EZ0F.js +9 -0
  739. package/dist/ui/assets/ArtifactFullscreenPage-B3b_EZ0F.js.gz +0 -0
  740. package/dist/ui/assets/ArtifactNode-DISy2T-6.js +9 -0
  741. package/dist/ui/assets/ArtifactNode-DISy2T-6.js.gz +0 -0
  742. package/dist/ui/assets/AutocompleteTextarea-DUpsoEGr.js +19 -0
  743. package/dist/ui/assets/AutocompleteTextarea-DUpsoEGr.js.gz +0 -0
  744. package/dist/ui/assets/BoardObjectNodes-BakeGpIX.js +34 -0
  745. package/dist/ui/assets/BoardObjectNodes-BakeGpIX.js.gz +0 -0
  746. package/dist/ui/assets/CodeEditor.inner-HmSdTLW5.js +7 -0
  747. package/dist/ui/assets/CodeEditor.inner-HmSdTLW5.js.gz +0 -0
  748. package/dist/ui/assets/ConversationView-mWaA-B1f.js +1 -0
  749. package/dist/ui/assets/ConversationView-mWaA-B1f.js.gz +0 -0
  750. package/dist/ui/assets/EmbeddedTerminal-NNoyPA81.js +2 -0
  751. package/dist/ui/assets/EmbeddedTerminal-NNoyPA81.js.gz +0 -0
  752. package/dist/ui/assets/KnowledgePage-CkxVnRvz.js +24 -0
  753. package/dist/ui/assets/KnowledgePage-CkxVnRvz.js.gz +0 -0
  754. package/dist/ui/assets/{MarketingScreenshotPage-zv5RUCuV.js → MarketingScreenshotPage-B86Gs8jx.js} +2 -2
  755. package/dist/ui/assets/MarketingScreenshotPage-B86Gs8jx.js.gz +0 -0
  756. package/dist/ui/assets/MobileApp-BPs-SXvz.js +1 -0
  757. package/dist/ui/assets/MobileApp-BPs-SXvz.js.gz +0 -0
  758. package/dist/ui/assets/{SessionCanvas-mEmYGZhC.css → SessionCanvas-Bh7Yg5dZ.css} +1 -1
  759. package/dist/ui/assets/SessionCanvas-Bh7Yg5dZ.css.gz +0 -0
  760. package/dist/ui/assets/SessionCanvas-xVfDoEtz.js +13 -0
  761. package/dist/ui/assets/SessionCanvas-xVfDoEtz.js.gz +0 -0
  762. package/dist/ui/assets/{StreamdownDemoPage-wzWaqWwr.js → StreamdownDemoPage-CvWLzVsv.js} +2 -2
  763. package/dist/ui/assets/StreamdownDemoPage-CvWLzVsv.js.gz +0 -0
  764. package/dist/ui/assets/TerminalModal-ExOgsuOP.js +2 -0
  765. package/dist/ui/assets/TerminalModal-ExOgsuOP.js.gz +0 -0
  766. package/dist/ui/assets/ThemeSwitcher-Cgyp5ruu.js +1 -0
  767. package/dist/ui/assets/ThemeSwitcher-Cgyp5ruu.js.gz +0 -0
  768. package/dist/ui/assets/ThemedSyntaxHighlighter.inner-rpCN9S6K.js +1 -0
  769. package/dist/ui/assets/{antd-CfbbHJOz.js → antd-BCqimh1J.js} +5 -5
  770. package/dist/ui/assets/{antd-CfbbHJOz.js.gz → antd-BCqimh1J.js.gz} +0 -0
  771. package/dist/ui/assets/architecture-U656AL7Q-BxSQIjrE.js +1 -0
  772. package/dist/ui/assets/architectureDiagram-VXUJARFQ-pDpGHSqT.js +36 -0
  773. package/dist/ui/assets/architectureDiagram-VXUJARFQ-pDpGHSqT.js.gz +0 -0
  774. package/dist/ui/assets/{blockDiagram-VD42YOAC-BhZaEN19.js → blockDiagram-VD42YOAC-uP8JTJpK.js} +4 -4
  775. package/dist/ui/assets/blockDiagram-VD42YOAC-uP8JTJpK.js.gz +0 -0
  776. package/dist/ui/assets/{c4Diagram-YG6GDRKO-Dk_UH-sY.js → c4Diagram-YG6GDRKO-qQe72Mm7.js} +2 -2
  777. package/dist/ui/assets/c4Diagram-YG6GDRKO-qQe72Mm7.js.gz +0 -0
  778. package/dist/ui/assets/channel-CoUBs6Zn.js +1 -0
  779. package/dist/ui/assets/{chunk-4BX2VUAB-XprbG2TG.js → chunk-4BX2VUAB-sz-YE8Nt.js} +1 -1
  780. package/dist/ui/assets/chunk-4ZMWKKQ3-3oKtfWXp.js +3 -0
  781. package/dist/ui/assets/chunk-4ZMWKKQ3-3oKtfWXp.js.gz +0 -0
  782. package/dist/ui/assets/chunk-55IACEB6-BS04dgKF.js +1 -0
  783. package/dist/ui/assets/{chunk-ABZYJK2D-BJcrryHK.js → chunk-ABZYJK2D-t3Gkphds.js} +3 -3
  784. package/dist/ui/assets/chunk-ABZYJK2D-t3Gkphds.js.gz +0 -0
  785. package/dist/ui/assets/{chunk-AGHRB4JF-DvxmfbM0.js → chunk-AGHRB4JF-D_QmWxbY.js} +1 -1
  786. package/dist/ui/assets/chunk-AGHRB4JF-D_QmWxbY.js.gz +0 -0
  787. package/dist/ui/assets/{chunk-ATLVNIR6-DbeJ0OrR.js → chunk-ATLVNIR6-Bmg7-Ufz.js} +1 -1
  788. package/dist/ui/assets/chunk-ATLVNIR6-Bmg7-Ufz.js.gz +0 -0
  789. package/dist/ui/assets/{chunk-B4BG7PRW-C53q2ggf.js → chunk-B4BG7PRW-dnSEE1u-.js} +3 -3
  790. package/dist/ui/assets/chunk-B4BG7PRW-dnSEE1u-.js.gz +0 -0
  791. package/dist/ui/assets/{chunk-CVBHYZKI-B3EBSlb3.js → chunk-CVBHYZKI-BStaYnF0.js} +1 -1
  792. package/dist/ui/assets/{chunk-DI55MBZ5-vIyNEQN-.js → chunk-DI55MBZ5-28dvx6o3.js} +1 -1
  793. package/dist/ui/assets/chunk-DI55MBZ5-28dvx6o3.js.gz +0 -0
  794. package/dist/ui/assets/chunk-EXTU4WIE-X-FURkEh.js +1 -0
  795. package/dist/ui/assets/{chunk-FMBD7UC4-rddmfK-Z.js → chunk-FMBD7UC4-C_63gC9S.js} +1 -1
  796. package/dist/ui/assets/{chunk-HN2XXSSU-Dttqcg3b.js → chunk-HN2XXSSU-UFD374KI.js} +1 -1
  797. package/dist/ui/assets/chunk-HN2XXSSU-UFD374KI.js.gz +0 -0
  798. package/dist/ui/assets/chunk-JA3XYJ7Z-B60hLNeR.js +11 -0
  799. package/dist/ui/assets/chunk-JA3XYJ7Z-B60hLNeR.js.gz +0 -0
  800. package/dist/ui/assets/{chunk-JZLCHNYA-EUmx2y4H.js → chunk-JZLCHNYA-ButC6pwN.js} +5 -5
  801. package/dist/ui/assets/chunk-JZLCHNYA-ButC6pwN.js.gz +0 -0
  802. package/dist/ui/assets/{chunk-MI3HLSF2-65n9Mkyc.js → chunk-MI3HLSF2-BivYzoSV.js} +1 -1
  803. package/dist/ui/assets/chunk-MI3HLSF2-BivYzoSV.js.gz +0 -0
  804. package/dist/ui/assets/chunk-N4CR4FBY-mVWzo5wJ.js +2 -0
  805. package/dist/ui/assets/chunk-N4CR4FBY-mVWzo5wJ.js.gz +0 -0
  806. package/dist/ui/assets/{chunk-QN33PNHL-DsRKK6NR.js → chunk-QN33PNHL-tXtHZpaG.js} +1 -1
  807. package/dist/ui/assets/{chunk-QXUST7PY-BCYnMiS3.js → chunk-QXUST7PY-DATib_Vv.js} +2 -2
  808. package/dist/ui/assets/chunk-QXUST7PY-DATib_Vv.js.gz +0 -0
  809. package/dist/ui/assets/chunk-QZHKN3VN-y6l249e5.js +1 -0
  810. package/dist/ui/assets/chunk-S3R3BYOJ-BEtfmflI.js +2 -0
  811. package/dist/ui/assets/chunk-S3R3BYOJ-BEtfmflI.js.gz +0 -0
  812. package/dist/ui/assets/{chunk-TZMSLE5B-BuQUQcTr.js → chunk-TZMSLE5B-BY1ZtogK.js} +1 -1
  813. package/dist/ui/assets/chunk-TZMSLE5B-BY1ZtogK.js.gz +0 -0
  814. package/dist/ui/assets/classDiagram-2ON5EDUG-BYvq-uPY.js +1 -0
  815. package/dist/ui/assets/classDiagram-v2-WZHVMYZB-BYvq-uPY.js +1 -0
  816. package/dist/ui/assets/constants-CYzQKfD1.js +1 -0
  817. package/dist/ui/assets/{cose-bilkent-S5V4N54A-CnPB3ARO.js → cose-bilkent-S5V4N54A-DPvYrqGG.js} +1 -1
  818. package/dist/ui/assets/cose-bilkent-S5V4N54A-DPvYrqGG.js.gz +0 -0
  819. package/dist/ui/assets/{dagre-6UL2VRFP-DhS-k_Se.js → dagre-6UL2VRFP-D800J6qb.js} +1 -1
  820. package/dist/ui/assets/dagre-6UL2VRFP-D800J6qb.js.gz +0 -0
  821. package/dist/ui/assets/{dagre-KgLoHEuy.js → dagre-TNc4wezg.js} +1 -1
  822. package/dist/ui/assets/dagre-TNc4wezg.js.gz +0 -0
  823. package/dist/ui/assets/diagram-PSM6KHXK-CGdP9F-X.js +24 -0
  824. package/dist/ui/assets/diagram-PSM6KHXK-CGdP9F-X.js.gz +0 -0
  825. package/dist/ui/assets/{diagram-QEK2KX5R-BPCitvbo.js → diagram-QEK2KX5R-BD5lOCe5.js} +1 -1
  826. package/dist/ui/assets/diagram-QEK2KX5R-BD5lOCe5.js.gz +0 -0
  827. package/dist/ui/assets/{diagram-S2PKOQOG-NW4uK6sx.js → diagram-S2PKOQOG-cp3l22vN.js} +1 -1
  828. package/dist/ui/assets/diagram-S2PKOQOG-cp3l22vN.js.gz +0 -0
  829. package/dist/ui/assets/editor-Cr0W5BQI.js +39 -0
  830. package/dist/ui/assets/editor-Cr0W5BQI.js.gz +0 -0
  831. package/dist/ui/assets/emoji-Bv3m24sO.js +3 -0
  832. package/dist/ui/assets/emoji-Bv3m24sO.js.gz +0 -0
  833. package/dist/ui/assets/{erDiagram-Q2GNP2WA-me1fboaf.js → erDiagram-Q2GNP2WA-CQSXRgqr.js} +2 -2
  834. package/dist/ui/assets/erDiagram-Q2GNP2WA-CQSXRgqr.js.gz +0 -0
  835. package/dist/ui/assets/flowDiagram-NV44I4VS-CKcKpkph.js +162 -0
  836. package/dist/ui/assets/flowDiagram-NV44I4VS-CKcKpkph.js.gz +0 -0
  837. package/dist/ui/assets/ganttDiagram-LVOFAZNH-DlAHzXO5.js +267 -0
  838. package/dist/ui/assets/ganttDiagram-LVOFAZNH-DlAHzXO5.js.gz +0 -0
  839. package/dist/ui/assets/{gitGraph-F6HP7TQM-CfFE_uAC.js → gitGraph-F6HP7TQM-DeuXy4B1.js} +1 -1
  840. package/dist/ui/assets/gitGraphDiagram-NY62KEGX-aB-AI4Vq.js +65 -0
  841. package/dist/ui/assets/gitGraphDiagram-NY62KEGX-aB-AI4Vq.js.gz +0 -0
  842. package/dist/ui/assets/index-B-qHc0o5.js +63 -0
  843. package/dist/ui/assets/index-B-qHc0o5.js.gz +0 -0
  844. package/dist/ui/assets/{index-DxuPq13l.css → index-qkT7Qqm2.css} +1 -1
  845. package/dist/ui/assets/index-qkT7Qqm2.css.gz +0 -0
  846. package/dist/ui/assets/{info-NVLQJR56-i_xHYg3f.js → info-NVLQJR56-B9PG7xsc.js} +1 -1
  847. package/dist/ui/assets/{infoDiagram-ER5ION4S-2NL93b78.js → infoDiagram-ER5ION4S-C5Wpoqim.js} +1 -1
  848. package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-CZF-2DHU.js → journeyDiagram-XKPGCS4Q-CHLziqfS.js} +3 -3
  849. package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CHLziqfS.js.gz +0 -0
  850. package/dist/ui/assets/{kanban-definition-3W4ZIXB7-CfvJIOny.js → kanban-definition-3W4ZIXB7-Dq7GzQE_.js} +1 -1
  851. package/dist/ui/assets/kanban-definition-3W4ZIXB7-Dq7GzQE_.js.gz +0 -0
  852. package/dist/ui/assets/{line-DDv8kOJk.js → line-DHKNg83I.js} +1 -1
  853. package/dist/ui/assets/{linear-Daef-l29.js → linear-BvUfn0I8.js} +1 -1
  854. package/dist/ui/assets/linear-BvUfn0I8.js.gz +0 -0
  855. package/dist/ui/assets/{mermaid-parser.core-CdK9QgYV.js → mermaid-parser.core-C6d9tKoo.js} +2 -2
  856. package/dist/ui/assets/mermaid-parser.core-C6d9tKoo.js.gz +0 -0
  857. package/dist/ui/assets/mermaid.core-CxE5KezR.js +11 -0
  858. package/dist/ui/assets/mermaid.core-CxE5KezR.js.gz +0 -0
  859. package/dist/ui/assets/{mindmap-definition-VGOIOE7T-Cb3QMflX.js → mindmap-definition-VGOIOE7T-DmPoQ48w.js} +1 -1
  860. package/dist/ui/assets/mindmap-definition-VGOIOE7T-DmPoQ48w.js.gz +0 -0
  861. package/dist/ui/assets/{packet-BFZMPI3H-Bm2uwz4i.js → packet-BFZMPI3H-JZEkVZxU.js} +1 -1
  862. package/dist/ui/assets/{particles-DsJFOarW.js → particles-CxMmUw86.js} +1 -1
  863. package/dist/ui/assets/particles-CxMmUw86.js.gz +0 -0
  864. package/dist/ui/assets/{pie-7BOR55EZ-5i17tVnF.js → pie-7BOR55EZ-_1II5pYQ.js} +1 -1
  865. package/dist/ui/assets/{pieDiagram-ADFJNKIX-BxIwQWvw.js → pieDiagram-ADFJNKIX-DrNkH33i.js} +1 -1
  866. package/dist/ui/assets/pieDiagram-ADFJNKIX-DrNkH33i.js.gz +0 -0
  867. package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-B5HPe4ga.js → quadrantDiagram-AYHSOK5B-DOpC-HEF.js} +3 -3
  868. package/dist/ui/assets/quadrantDiagram-AYHSOK5B-DOpC-HEF.js.gz +0 -0
  869. package/dist/ui/assets/{radar-NHE76QYJ-BTn-tq0k.js → radar-NHE76QYJ-DDmqhzEZ.js} +1 -1
  870. package/dist/ui/assets/reactflow-D98uPOMq.js +2 -0
  871. package/dist/ui/assets/reactflow-D98uPOMq.js.gz +0 -0
  872. package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-YfI6llkX.js → requirementDiagram-UZGBJVZJ-Bzx0iEPP.js} +1 -1
  873. package/dist/ui/assets/requirementDiagram-UZGBJVZJ-Bzx0iEPP.js.gz +0 -0
  874. package/dist/ui/assets/{sandpack-D7koO5op.js → sandpack-059Z4UWP.js} +38 -38
  875. package/dist/ui/assets/sandpack-059Z4UWP.js.gz +0 -0
  876. package/dist/ui/assets/sandpackDefaults-CPMNDsw7.js +1 -0
  877. package/dist/ui/assets/sandpackDefaults-CPMNDsw7.js.gz +0 -0
  878. package/dist/ui/assets/sankeyDiagram-TZEHDZUN-Do9pvfDv.js +10 -0
  879. package/dist/ui/assets/sankeyDiagram-TZEHDZUN-Do9pvfDv.js.gz +0 -0
  880. package/dist/ui/assets/{sequenceDiagram-WL72ISMW-DAe4Um17.js → sequenceDiagram-WL72ISMW-CN8neUTA.js} +6 -6
  881. package/dist/ui/assets/sequenceDiagram-WL72ISMW-CN8neUTA.js.gz +0 -0
  882. package/dist/ui/assets/src-DEbsv3pp.js +34 -0
  883. package/dist/ui/assets/src-DEbsv3pp.js.gz +0 -0
  884. package/dist/ui/assets/stateDiagram-FKZM4ZOC-BluWJi8n.js +1 -0
  885. package/dist/ui/assets/stateDiagram-FKZM4ZOC-BluWJi8n.js.gz +0 -0
  886. package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-DeyqBMDR.js +1 -0
  887. package/dist/ui/assets/streamdown-BT1twtFc.js +521 -0
  888. package/dist/ui/assets/streamdown-BT1twtFc.js.gz +0 -0
  889. package/dist/ui/assets/syntax-CBu6nLfm.js +9 -0
  890. package/dist/ui/assets/syntax-CBu6nLfm.js.gz +0 -0
  891. package/dist/ui/assets/{timeline-definition-IT6M3QCI-D6P5txjT.js → timeline-definition-IT6M3QCI-WdUNkiRj.js} +16 -16
  892. package/dist/ui/assets/timeline-definition-IT6M3QCI-WdUNkiRj.js.gz +0 -0
  893. package/dist/ui/assets/{treemap-KMMF4GRG-Bitm3gy4.js → treemap-KMMF4GRG-CoriU4Jl.js} +1 -1
  894. package/dist/ui/assets/{useUserLocalStorage-Ckb8HsIw.js → useUserLocalStorage-GidNiOPC.js} +1 -1
  895. package/dist/ui/assets/useUserLocalStorage-GidNiOPC.js.gz +0 -0
  896. package/dist/ui/assets/{xychartDiagram-PRI3JC2R-CsybjUbd.js → xychartDiagram-PRI3JC2R-CgBAKNt2.js} +1 -1
  897. package/dist/ui/assets/xychartDiagram-PRI3JC2R-CgBAKNt2.js.gz +0 -0
  898. package/dist/ui/index.html +11 -11
  899. package/dist/ui/index.html.gz +0 -0
  900. package/package.json +6 -5
  901. package/scripts/postinstall.js +27 -19
  902. package/dist/cli/commands/daemon/sync.d.ts.map +0 -1
  903. package/dist/ui/assets/App-DcEY8Ota.js +0 -3
  904. package/dist/ui/assets/App-DcEY8Ota.js.gz +0 -0
  905. package/dist/ui/assets/ArtifactConsentModal-CiCbK9iv.js +0 -1
  906. package/dist/ui/assets/ArtifactConsentModal-CiCbK9iv.js.gz +0 -0
  907. package/dist/ui/assets/ArtifactFullscreenPage-CfsTEGKd.js +0 -9
  908. package/dist/ui/assets/ArtifactFullscreenPage-CfsTEGKd.js.gz +0 -0
  909. package/dist/ui/assets/AutocompleteTextarea-BAFFH_5e.js +0 -18
  910. package/dist/ui/assets/AutocompleteTextarea-BAFFH_5e.js.gz +0 -0
  911. package/dist/ui/assets/BoardObjectNodes-D-O6bZIG.js +0 -34
  912. package/dist/ui/assets/BoardObjectNodes-D-O6bZIG.js.gz +0 -0
  913. package/dist/ui/assets/CodeEditor.inner-DBgsP4tn.js +0 -8
  914. package/dist/ui/assets/CodeEditor.inner-DBgsP4tn.js.gz +0 -0
  915. package/dist/ui/assets/ConversationView-CUWR0gR6.js +0 -1
  916. package/dist/ui/assets/ConversationView-CUWR0gR6.js.gz +0 -0
  917. package/dist/ui/assets/KnowledgePage-B2bzlXfn.js +0 -24
  918. package/dist/ui/assets/KnowledgePage-B2bzlXfn.js.gz +0 -0
  919. package/dist/ui/assets/MarketingScreenshotPage-zv5RUCuV.js.gz +0 -0
  920. package/dist/ui/assets/MobileApp-VgVnsnsN.js +0 -1
  921. package/dist/ui/assets/MobileApp-VgVnsnsN.js.gz +0 -0
  922. package/dist/ui/assets/SessionCanvas-f1-1Gbcw.js +0 -20
  923. package/dist/ui/assets/SessionCanvas-f1-1Gbcw.js.gz +0 -0
  924. package/dist/ui/assets/SessionCanvas-mEmYGZhC.css.gz +0 -0
  925. package/dist/ui/assets/StreamdownDemoPage-wzWaqWwr.js.gz +0 -0
  926. package/dist/ui/assets/ThemeSwitcher-Dly2y9pi.js +0 -1
  927. package/dist/ui/assets/ThemeSwitcher-Dly2y9pi.js.gz +0 -0
  928. package/dist/ui/assets/architecture-U656AL7Q-CykGFbQU.js +0 -1
  929. package/dist/ui/assets/architectureDiagram-VXUJARFQ-C8HXAenz.js +0 -36
  930. package/dist/ui/assets/architectureDiagram-VXUJARFQ-C8HXAenz.js.gz +0 -0
  931. package/dist/ui/assets/blockDiagram-VD42YOAC-BhZaEN19.js.gz +0 -0
  932. package/dist/ui/assets/c4Diagram-YG6GDRKO-Dk_UH-sY.js.gz +0 -0
  933. package/dist/ui/assets/channel-D6_nUWlW.js +0 -1
  934. package/dist/ui/assets/chunk-55IACEB6-ByzqIgSb.js +0 -1
  935. package/dist/ui/assets/chunk-ABZYJK2D-BJcrryHK.js.gz +0 -0
  936. package/dist/ui/assets/chunk-AGHRB4JF-DvxmfbM0.js.gz +0 -0
  937. package/dist/ui/assets/chunk-ATLVNIR6-DbeJ0OrR.js.gz +0 -0
  938. package/dist/ui/assets/chunk-B4BG7PRW-C53q2ggf.js.gz +0 -0
  939. package/dist/ui/assets/chunk-DI55MBZ5-vIyNEQN-.js.gz +0 -0
  940. package/dist/ui/assets/chunk-EXTU4WIE-B3ObkuOm.js +0 -1
  941. package/dist/ui/assets/chunk-HN2XXSSU-Dttqcg3b.js.gz +0 -0
  942. package/dist/ui/assets/chunk-JA3XYJ7Z-DbNDev3D.js +0 -11
  943. package/dist/ui/assets/chunk-JA3XYJ7Z-DbNDev3D.js.gz +0 -0
  944. package/dist/ui/assets/chunk-JZLCHNYA-EUmx2y4H.js.gz +0 -0
  945. package/dist/ui/assets/chunk-MI3HLSF2-65n9Mkyc.js.gz +0 -0
  946. package/dist/ui/assets/chunk-N4CR4FBY-mv5koXqW.js +0 -2
  947. package/dist/ui/assets/chunk-N4CR4FBY-mv5koXqW.js.gz +0 -0
  948. package/dist/ui/assets/chunk-QXUST7PY-BCYnMiS3.js.gz +0 -0
  949. package/dist/ui/assets/chunk-QZHKN3VN-HucAw4xW.js +0 -1
  950. package/dist/ui/assets/chunk-S3R3BYOJ-CWMEa9Dc.js +0 -2
  951. package/dist/ui/assets/chunk-S3R3BYOJ-CWMEa9Dc.js.gz +0 -0
  952. package/dist/ui/assets/chunk-TZMSLE5B-BuQUQcTr.js.gz +0 -0
  953. package/dist/ui/assets/classDiagram-2ON5EDUG-CUT3rPTB.js +0 -1
  954. package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CUT3rPTB.js +0 -1
  955. package/dist/ui/assets/cose-bilkent-S5V4N54A-CnPB3ARO.js.gz +0 -0
  956. package/dist/ui/assets/dagre-6UL2VRFP-DhS-k_Se.js.gz +0 -0
  957. package/dist/ui/assets/dagre-KgLoHEuy.js.gz +0 -0
  958. package/dist/ui/assets/diagram-PSM6KHXK-BZg3MJmb.js +0 -24
  959. package/dist/ui/assets/diagram-PSM6KHXK-BZg3MJmb.js.gz +0 -0
  960. package/dist/ui/assets/diagram-QEK2KX5R-BPCitvbo.js.gz +0 -0
  961. package/dist/ui/assets/diagram-S2PKOQOG-NW4uK6sx.js.gz +0 -0
  962. package/dist/ui/assets/editor-CzFWIUw2.js +0 -39
  963. package/dist/ui/assets/editor-CzFWIUw2.js.gz +0 -0
  964. package/dist/ui/assets/emoji-Dkz4Zzv_.js +0 -3
  965. package/dist/ui/assets/emoji-Dkz4Zzv_.js.gz +0 -0
  966. package/dist/ui/assets/erDiagram-Q2GNP2WA-me1fboaf.js.gz +0 -0
  967. package/dist/ui/assets/flowDiagram-NV44I4VS-DzE8dGsh.js +0 -162
  968. package/dist/ui/assets/flowDiagram-NV44I4VS-DzE8dGsh.js.gz +0 -0
  969. package/dist/ui/assets/ganttDiagram-LVOFAZNH-CFQD09Mi.js +0 -267
  970. package/dist/ui/assets/ganttDiagram-LVOFAZNH-CFQD09Mi.js.gz +0 -0
  971. package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CaVoxU4C.js +0 -65
  972. package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CaVoxU4C.js.gz +0 -0
  973. package/dist/ui/assets/index-BN5_Qq7R.js +0 -324
  974. package/dist/ui/assets/index-BN5_Qq7R.js.gz +0 -0
  975. package/dist/ui/assets/index-DxuPq13l.css.gz +0 -0
  976. package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CZF-2DHU.js.gz +0 -0
  977. package/dist/ui/assets/kanban-definition-3W4ZIXB7-CfvJIOny.js.gz +0 -0
  978. package/dist/ui/assets/katex-CamJ39w1.js +0 -257
  979. package/dist/ui/assets/katex-CamJ39w1.js.gz +0 -0
  980. package/dist/ui/assets/linear-Daef-l29.js.gz +0 -0
  981. package/dist/ui/assets/mermaid-parser.core-CdK9QgYV.js.gz +0 -0
  982. package/dist/ui/assets/mermaid.core-D6GS9mU-.js +0 -11
  983. package/dist/ui/assets/mermaid.core-D6GS9mU-.js.gz +0 -0
  984. package/dist/ui/assets/message-SqLqNYcv.js +0 -36
  985. package/dist/ui/assets/message-SqLqNYcv.js.gz +0 -0
  986. package/dist/ui/assets/mindmap-definition-VGOIOE7T-Cb3QMflX.js.gz +0 -0
  987. package/dist/ui/assets/particles-DsJFOarW.js.gz +0 -0
  988. package/dist/ui/assets/pieDiagram-ADFJNKIX-BxIwQWvw.js.gz +0 -0
  989. package/dist/ui/assets/quadrantDiagram-AYHSOK5B-B5HPe4ga.js.gz +0 -0
  990. package/dist/ui/assets/reactflow-Bf74ngoo.js +0 -2
  991. package/dist/ui/assets/reactflow-Bf74ngoo.js.gz +0 -0
  992. package/dist/ui/assets/requirementDiagram-UZGBJVZJ-YfI6llkX.js.gz +0 -0
  993. package/dist/ui/assets/sandpack-D7koO5op.js.gz +0 -0
  994. package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DOk_B10B.js +0 -10
  995. package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DOk_B10B.js.gz +0 -0
  996. package/dist/ui/assets/sequenceDiagram-WL72ISMW-DAe4Um17.js.gz +0 -0
  997. package/dist/ui/assets/stateDiagram-FKZM4ZOC-CCesDu_C.js +0 -1
  998. package/dist/ui/assets/stateDiagram-FKZM4ZOC-CCesDu_C.js.gz +0 -0
  999. package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-CMlIrsoO.js +0 -1
  1000. package/dist/ui/assets/syntax-C-M-8jOU.js +0 -10
  1001. package/dist/ui/assets/syntax-C-M-8jOU.js.gz +0 -0
  1002. package/dist/ui/assets/theme-BQZdiqwv.js +0 -1
  1003. package/dist/ui/assets/timeline-definition-IT6M3QCI-D6P5txjT.js.gz +0 -0
  1004. package/dist/ui/assets/useUserLocalStorage-Ckb8HsIw.js.gz +0 -0
  1005. package/dist/ui/assets/xychartDiagram-PRI3JC2R-CsybjUbd.js.gz +0 -0
  1006. /package/dist/cli/commands/{admin → local}/sync-unix.d.ts +0 -0
@@ -31,7 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  mod
32
32
  ));
33
33
 
34
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
34
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
35
35
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
36
36
  if (kind === "m")
37
37
  throw new TypeError("Private method is not writable");
@@ -49,15 +49,15 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
49
49
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
50
50
  }
51
51
  var init_tslib = __esm({
52
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
52
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
53
53
  "use strict";
54
54
  }
55
55
  });
56
56
 
57
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
57
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
58
58
  var uuid4;
59
59
  var init_uuid = __esm({
60
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
60
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
61
61
  "use strict";
62
62
  uuid4 = function() {
63
63
  const { crypto: crypto2 } = globalThis;
@@ -72,7 +72,7 @@ var init_uuid = __esm({
72
72
  }
73
73
  });
74
74
 
75
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs
75
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs
76
76
  function isAbortError(err) {
77
77
  return typeof err === "object" && err !== null && // Spec-compliant fetch implementations
78
78
  ("name" in err && err.name === "AbortError" || // Expo fetch
@@ -80,7 +80,7 @@ function isAbortError(err) {
80
80
  }
81
81
  var castToError;
82
82
  var init_errors = __esm({
83
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
83
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
84
84
  "use strict";
85
85
  castToError = (err) => {
86
86
  if (err instanceof Error)
@@ -109,10 +109,10 @@ var init_errors = __esm({
109
109
  }
110
110
  });
111
111
 
112
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs
112
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs
113
113
  var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, RetryableError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
114
114
  var init_error = __esm({
115
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
115
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
116
116
  "use strict";
117
117
  init_errors();
118
118
  AnthropicError = class extends Error {
@@ -215,7 +215,7 @@ var init_error = __esm({
215
215
  }
216
216
  });
217
217
 
218
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
218
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
219
219
  function maybeObj(x) {
220
220
  if (typeof x !== "object") {
221
221
  return {};
@@ -234,7 +234,7 @@ function hasOwn(obj, key) {
234
234
  }
235
235
  var startsWithSchemeRegexp, isAbsoluteURL, isArray, isReadonlyArray, validatePositiveInteger, safeJSON;
236
236
  var init_values = __esm({
237
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
237
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
238
238
  "use strict";
239
239
  init_error();
240
240
  startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
@@ -262,10 +262,10 @@ var init_values = __esm({
262
262
  }
263
263
  });
264
264
 
265
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
265
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
266
266
  var sleep;
267
267
  var init_sleep = __esm({
268
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
268
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
269
269
  "use strict";
270
270
  sleep = (ms, signal) => new Promise((resolve4) => {
271
271
  if (signal?.aborted)
@@ -283,16 +283,16 @@ var init_sleep = __esm({
283
283
  }
284
284
  });
285
285
 
286
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs
286
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs
287
287
  var VERSION;
288
288
  var init_version = __esm({
289
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs"() {
289
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/version.mjs"() {
290
290
  "use strict";
291
- VERSION = "0.105.0";
291
+ VERSION = "0.109.0";
292
292
  }
293
293
  });
294
294
 
295
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
295
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
296
296
  function getDetectedPlatform() {
297
297
  if (typeof Deno !== "undefined" && Deno.build != null) {
298
298
  return "deno";
@@ -330,7 +330,7 @@ function getBrowserInfo() {
330
330
  }
331
331
  var isRunningInBrowser, getPlatformProperties, normalizeArch, normalizePlatform, _platformHeaders, getPlatformHeaders;
332
332
  var init_detect_platform = __esm({
333
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
333
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
334
334
  "use strict";
335
335
  init_version();
336
336
  isRunningInBrowser = () => {
@@ -432,7 +432,7 @@ var init_detect_platform = __esm({
432
432
  }
433
433
  });
434
434
 
435
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs
435
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs
436
436
  function getDefaultFetch() {
437
437
  if (typeof fetch !== "undefined") {
438
438
  return fetch;
@@ -504,15 +504,15 @@ async function CancelReadableStream(stream) {
504
504
  await cancelPromise;
505
505
  }
506
506
  var init_shims = __esm({
507
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
507
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
508
508
  "use strict";
509
509
  }
510
510
  });
511
511
 
512
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
512
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
513
513
  var FallbackEncoder;
514
514
  var init_request_options = __esm({
515
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
515
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
516
516
  "use strict";
517
517
  FallbackEncoder = ({ headers, body }) => {
518
518
  return {
@@ -525,10 +525,10 @@ var init_request_options = __esm({
525
525
  }
526
526
  });
527
527
 
528
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
528
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
529
529
  var default_format, default_formatter, formatters, RFC1738;
530
530
  var init_formats = __esm({
531
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
531
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
532
532
  "use strict";
533
533
  default_format = "RFC3986";
534
534
  default_formatter = (v) => String(v);
@@ -540,7 +540,7 @@ var init_formats = __esm({
540
540
  }
541
541
  });
542
542
 
543
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
543
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
544
544
  function is_buffer(obj) {
545
545
  if (!obj || typeof obj !== "object") {
546
546
  return false;
@@ -559,7 +559,7 @@ function maybe_map(val, fn) {
559
559
  }
560
560
  var has, hex_table, limit, encode;
561
561
  var init_utils = __esm({
562
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
562
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
563
563
  "use strict";
564
564
  init_formats();
565
565
  init_values();
@@ -627,7 +627,7 @@ var init_utils = __esm({
627
627
  }
628
628
  });
629
629
 
630
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
630
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
631
631
  function is_non_nullish_primitive(v) {
632
632
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
633
633
  }
@@ -867,7 +867,7 @@ function stringify(object, opts = {}) {
867
867
  }
868
868
  var array_prefix_generators, push_to_array, toISOString, defaults, sentinel;
869
869
  var init_stringify = __esm({
870
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
870
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
871
871
  "use strict";
872
872
  init_utils();
873
873
  init_formats();
@@ -913,18 +913,18 @@ var init_stringify = __esm({
913
913
  }
914
914
  });
915
915
 
916
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
916
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
917
917
  function stringifyQuery(query) {
918
918
  return stringify(query, { arrayFormat: "brackets" });
919
919
  }
920
920
  var init_query = __esm({
921
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
921
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
922
922
  "use strict";
923
923
  init_stringify();
924
924
  }
925
925
  });
926
926
 
927
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
927
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
928
928
  function requireSecureTokenEndpoint(baseURL) {
929
929
  if (!baseURL)
930
930
  return;
@@ -1071,7 +1071,7 @@ async function readLimitedText(resp) {
1071
1071
  }
1072
1072
  var GRANT_TYPE_JWT_BEARER, GRANT_TYPE_REFRESH_TOKEN, TOKEN_ENDPOINT, OAUTH_API_BETA_HEADER, FEDERATION_BETA_HEADER, ADVISORY_REFRESH_THRESHOLD_IN_SECONDS, MANDATORY_REFRESH_THRESHOLD_IN_SECONDS, ADVISORY_REFRESH_BACKOFF_IN_SECONDS, MAX_TOKEN_RESPONSE_BYTES, MAX_ERROR_BODY_CHARS, SAFE_ERROR_KEYS, WorkloadIdentityError;
1073
1073
  var init_types = __esm({
1074
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1074
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1075
1075
  "use strict";
1076
1076
  init_error();
1077
1077
  GRANT_TYPE_JWT_BEARER = "urn:ietf:params:oauth:grant-type:jwt-bearer";
@@ -1096,20 +1096,20 @@ var init_types = __esm({
1096
1096
  }
1097
1097
  });
1098
1098
 
1099
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1099
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1100
1100
  function nowAsSeconds() {
1101
1101
  return Math.floor(Date.now() / 1e3);
1102
1102
  }
1103
1103
  var init_time = __esm({
1104
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1104
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1105
1105
  "use strict";
1106
1106
  }
1107
1107
  });
1108
1108
 
1109
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1109
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1110
1110
  var TokenCache;
1111
1111
  var init_token_cache = __esm({
1112
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1112
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1113
1113
  "use strict";
1114
1114
  init_types();
1115
1115
  init_time();
@@ -1203,10 +1203,10 @@ var init_token_cache = __esm({
1203
1203
  }
1204
1204
  });
1205
1205
 
1206
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1206
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1207
1207
  var readEnv;
1208
1208
  var init_env = __esm({
1209
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1209
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1210
1210
  "use strict";
1211
1211
  readEnv = (env) => {
1212
1212
  if (typeof globalThis.process !== "undefined") {
@@ -1220,7 +1220,7 @@ var init_env = __esm({
1220
1220
  }
1221
1221
  });
1222
1222
 
1223
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1223
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1224
1224
  function concatBytes(buffers) {
1225
1225
  let length = 0;
1226
1226
  for (const buffer of buffers) {
@@ -1244,21 +1244,21 @@ function decodeUTF8(bytes) {
1244
1244
  }
1245
1245
  var encodeUTF8_, decodeUTF8_;
1246
1246
  var init_bytes = __esm({
1247
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1247
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1248
1248
  "use strict";
1249
1249
  }
1250
1250
  });
1251
1251
 
1252
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1252
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1253
1253
  var init_base64 = __esm({
1254
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1254
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1255
1255
  "use strict";
1256
1256
  init_error();
1257
1257
  init_bytes();
1258
1258
  }
1259
1259
  });
1260
1260
 
1261
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1261
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1262
1262
  function noop() {
1263
1263
  }
1264
1264
  function makeLogFn(fnLevel, logger, logLevel) {
@@ -1300,7 +1300,7 @@ function defaultLogger() {
1300
1300
  }
1301
1301
  var defaultLogLevel, levelNumbers, parseLogLevel, noopLogger, cachedLoggers, lastEnvLevel, cachedDefaultLogger, formatRequestDetails;
1302
1302
  var init_log = __esm({
1303
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1303
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1304
1304
  "use strict";
1305
1305
  init_values();
1306
1306
  init_env();
@@ -1351,9 +1351,9 @@ var init_log = __esm({
1351
1351
  }
1352
1352
  });
1353
1353
 
1354
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1354
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1355
1355
  var init_utils2 = __esm({
1356
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1356
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1357
1357
  "use strict";
1358
1358
  init_values();
1359
1359
  init_base64();
@@ -1365,7 +1365,7 @@ var init_utils2 = __esm({
1365
1365
  }
1366
1366
  });
1367
1367
 
1368
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1368
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1369
1369
  function validateProfileName(name) {
1370
1370
  if (!name) {
1371
1371
  throw new Error("profile name is empty");
@@ -1382,7 +1382,7 @@ function validateProfileName(name) {
1382
1382
  }
1383
1383
  var CREDENTIALS_FILE_VERSION, PROFILE_NAME_PATTERN, loadConfigWithSource, getCredentialsPath, getRootConfigPath, supportsLocalConfigFiles, getActiveProfileName;
1384
1384
  var init_credentials = __esm({
1385
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1385
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1386
1386
  "use strict";
1387
1387
  init_detect_platform();
1388
1388
  init_utils2();
@@ -1547,7 +1547,7 @@ var init_credentials = __esm({
1547
1547
  }
1548
1548
  });
1549
1549
 
1550
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
1550
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
1551
1551
  function identityTokenFromFile(path5) {
1552
1552
  if (!path5) {
1553
1553
  throw new AnthropicError("Identity token file path is empty");
@@ -1574,13 +1574,13 @@ function identityTokenFromValue(token) {
1574
1574
  return () => token;
1575
1575
  }
1576
1576
  var init_identity_token = __esm({
1577
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
1577
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
1578
1578
  "use strict";
1579
1579
  init_error();
1580
1580
  }
1581
1581
  });
1582
1582
 
1583
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
1583
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
1584
1584
  function oidcFederationProvider(config) {
1585
1585
  return async () => {
1586
1586
  requireSecureTokenEndpoint(config.baseURL);
@@ -1638,7 +1638,7 @@ function oidcFederationProvider(config) {
1638
1638
  };
1639
1639
  }
1640
1640
  var init_oidc_federation = __esm({
1641
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
1641
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
1642
1642
  "use strict";
1643
1643
  init_types();
1644
1644
  init_time();
@@ -1646,7 +1646,7 @@ var init_oidc_federation = __esm({
1646
1646
  }
1647
1647
  });
1648
1648
 
1649
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
1649
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
1650
1650
  function userOAuthProvider(config) {
1651
1651
  return async (opts) => {
1652
1652
  const fs4 = await import("fs");
@@ -1720,7 +1720,7 @@ function userOAuthProvider(config) {
1720
1720
  };
1721
1721
  }
1722
1722
  var init_user_oauth = __esm({
1723
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
1723
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
1724
1724
  "use strict";
1725
1725
  init_credentials();
1726
1726
  init_types();
@@ -1729,7 +1729,7 @@ var init_user_oauth = __esm({
1729
1729
  }
1730
1730
  });
1731
1731
 
1732
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
1732
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
1733
1733
  function resolveCredentialsFromConfig(config, options) {
1734
1734
  const credentialsPath = config.authentication.credentials_path ?? null;
1735
1735
  const effectiveBaseURL = (config.base_url || options.baseURL).replace(/\/+$/, "");
@@ -1861,7 +1861,7 @@ function cachedExchangeProvider(exchange, credentialsPath, onCacheWriteError, on
1861
1861
  };
1862
1862
  }
1863
1863
  var init_credential_chain = __esm({
1864
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
1864
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
1865
1865
  "use strict";
1866
1866
  init_env();
1867
1867
  init_credentials();
@@ -1873,7 +1873,7 @@ var init_credential_chain = __esm({
1873
1873
  }
1874
1874
  });
1875
1875
 
1876
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
1876
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
1877
1877
  function findNewlineIndex(buffer, startIndex) {
1878
1878
  const newline = 10;
1879
1879
  const carriage = 13;
@@ -1905,7 +1905,7 @@ function findDoubleNewlineIndex(buffer) {
1905
1905
  }
1906
1906
  var _LineDecoder_buffer, _LineDecoder_carriageReturnIndex, LineDecoder;
1907
1907
  var init_line = __esm({
1908
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
1908
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
1909
1909
  "use strict";
1910
1910
  init_tslib();
1911
1911
  init_bytes();
@@ -1956,7 +1956,7 @@ var init_line = __esm({
1956
1956
  }
1957
1957
  });
1958
1958
 
1959
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs
1959
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs
1960
1960
  async function* _iterSSEMessages(response, controller) {
1961
1961
  if (!response.body) {
1962
1962
  controller.abort();
@@ -2011,7 +2011,7 @@ function partition(str, delimiter2) {
2011
2011
  }
2012
2012
  var _Stream_client, Stream, SSEDecoder;
2013
2013
  var init_streaming = __esm({
2014
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
2014
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
2015
2015
  "use strict";
2016
2016
  init_tslib();
2017
2017
  init_error();
@@ -2061,7 +2061,7 @@ var init_streaming = __esm({
2061
2061
  throw e;
2062
2062
  }
2063
2063
  }
2064
- 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" || sse.event === "user.message" || sse.event === "user.interrupt" || sse.event === "user.tool_confirmation" || sse.event === "user.custom_tool_result" || sse.event === "user.tool_result" || sse.event === "agent.message" || sse.event === "agent.thinking" || sse.event === "agent.tool_use" || sse.event === "agent.tool_result" || sse.event === "agent.mcp_tool_use" || sse.event === "agent.mcp_tool_result" || sse.event === "agent.custom_tool_use" || sse.event === "agent.thread_context_compacted" || sse.event === "session.status_running" || sse.event === "session.status_idle" || sse.event === "session.status_rescheduled" || sse.event === "session.status_terminated" || sse.event === "session.error" || sse.event === "session.deleted" || sse.event === "session.updated" || sse.event === "span.model_request_start" || sse.event === "span.model_request_end" || sse.event === "span.outcome_evaluation_start" || sse.event === "span.outcome_evaluation_ongoing" || sse.event === "span.outcome_evaluation_end" || sse.event === "user.define_outcome" || sse.event === "agent.thread_message_received" || sse.event === "agent.thread_message_sent" || sse.event === "agent.session_thread_message_received" || sse.event === "agent.session_thread_message_sent" || sse.event === "session.thread_created" || sse.event === "session.thread_status_created" || sse.event === "session.thread_status_running" || sse.event === "session.thread_status_idle" || sse.event === "session.thread_status_rescheduled" || sse.event === "session.thread_status_terminated") {
2064
+ 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" || sse.event === "user.message" || sse.event === "user.interrupt" || sse.event === "user.tool_confirmation" || sse.event === "user.custom_tool_result" || sse.event === "user.tool_result" || sse.event === "agent.message" || sse.event === "agent.thinking" || sse.event === "agent.tool_use" || sse.event === "agent.tool_result" || sse.event === "agent.mcp_tool_use" || sse.event === "agent.mcp_tool_result" || sse.event === "agent.custom_tool_use" || sse.event === "agent.thread_context_compacted" || sse.event === "session.status_running" || sse.event === "session.status_idle" || sse.event === "session.status_rescheduled" || sse.event === "session.status_terminated" || sse.event === "session.error" || sse.event === "session.deleted" || sse.event === "session.updated" || sse.event === "span.model_request_start" || sse.event === "span.model_request_end" || sse.event === "span.outcome_evaluation_start" || sse.event === "span.outcome_evaluation_ongoing" || sse.event === "span.outcome_evaluation_end" || sse.event === "user.define_outcome" || sse.event === "agent.thread_message_received" || sse.event === "agent.thread_message_sent" || sse.event === "agent.session_thread_message_received" || sse.event === "agent.session_thread_message_sent" || sse.event === "session.thread_created" || sse.event === "session.thread_status_created" || sse.event === "session.thread_status_running" || sse.event === "session.thread_status_idle" || sse.event === "session.thread_status_rescheduled" || sse.event === "session.thread_status_terminated" || sse.event === "event_start" || sse.event === "event_delta" || sse.event === "system.message") {
2065
2065
  try {
2066
2066
  yield JSON.parse(sse.data);
2067
2067
  } catch (e) {
@@ -2233,7 +2233,7 @@ var init_streaming = __esm({
2233
2233
  }
2234
2234
  });
2235
2235
 
2236
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2236
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2237
2237
  async function defaultParseResponse(client, props) {
2238
2238
  const { response, requestLogID, retryOfRequestLogID, startTime } = props;
2239
2239
  const body = await (async () => {
@@ -2280,14 +2280,14 @@ function addRequestID(value, response) {
2280
2280
  });
2281
2281
  }
2282
2282
  var init_parse = __esm({
2283
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2283
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2284
2284
  "use strict";
2285
2285
  init_streaming();
2286
2286
  init_log();
2287
2287
  }
2288
2288
  });
2289
2289
 
2290
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/middleware.mjs
2290
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/middleware.mjs
2291
2291
  function isFetchOriginError(err) {
2292
2292
  return typeof err === "object" && err !== null && fetchOriginErrors.has(err);
2293
2293
  }
@@ -2383,7 +2383,7 @@ function applyMiddleware(fetchFn, middleware, options, client) {
2383
2383
  }
2384
2384
  var fetchOriginErrors;
2385
2385
  var init_middleware = __esm({
2386
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/middleware.mjs"() {
2386
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/middleware.mjs"() {
2387
2387
  "use strict";
2388
2388
  init_errors();
2389
2389
  init_parse();
@@ -2394,10 +2394,10 @@ var init_middleware = __esm({
2394
2394
  }
2395
2395
  });
2396
2396
 
2397
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2397
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2398
2398
  var _APIPromise_client, APIPromise;
2399
2399
  var init_api_promise = __esm({
2400
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2400
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2401
2401
  "use strict";
2402
2402
  init_tslib();
2403
2403
  init_parse();
@@ -2464,10 +2464,10 @@ var init_api_promise = __esm({
2464
2464
  }
2465
2465
  });
2466
2466
 
2467
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2468
- var _AbstractPage_client, AbstractPage, PagePromise, Page, PageCursor;
2467
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2468
+ var _AbstractPage_client, AbstractPage, PagePromise, Page, PageCursor, BidirectionalPageCursor;
2469
2469
  var init_pagination = __esm({
2470
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2470
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2471
2471
  "use strict";
2472
2472
  init_tslib();
2473
2473
  init_error();
@@ -2596,10 +2596,34 @@ var init_pagination = __esm({
2596
2596
  };
2597
2597
  }
2598
2598
  };
2599
+ BidirectionalPageCursor = class extends AbstractPage {
2600
+ constructor(client, response, body, options) {
2601
+ super(client, response, body, options);
2602
+ this.data = body.data || [];
2603
+ this.next_page = body.next_page || null;
2604
+ this.prev_page = body.prev_page || null;
2605
+ }
2606
+ getPaginatedItems() {
2607
+ return this.data ?? [];
2608
+ }
2609
+ nextPageRequestOptions() {
2610
+ const cursor = this.next_page;
2611
+ if (!cursor) {
2612
+ return null;
2613
+ }
2614
+ return {
2615
+ ...this.options,
2616
+ query: {
2617
+ ...maybeObj(this.options.query),
2618
+ page: cursor
2619
+ }
2620
+ };
2621
+ }
2622
+ };
2599
2623
  }
2600
2624
  });
2601
2625
 
2602
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
2626
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
2603
2627
  function makeFile(fileBits, fileName, options) {
2604
2628
  checkFileSupport();
2605
2629
  return new File(fileBits, fileName ?? "unknown_file", options);
@@ -2630,7 +2654,7 @@ function supportsFormData(fetchObject) {
2630
2654
  }
2631
2655
  var checkFileSupport, isAsyncIterable, multipartFormRequestOptions, supportsFormDataMap, createForm, isNamedBlob, addFormValue;
2632
2656
  var init_uploads = __esm({
2633
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
2657
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
2634
2658
  "use strict";
2635
2659
  init_shims();
2636
2660
  checkFileSupport = () => {
@@ -2684,7 +2708,7 @@ var init_uploads = __esm({
2684
2708
  }
2685
2709
  });
2686
2710
 
2687
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
2711
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
2688
2712
  async function toFile(value, name, options) {
2689
2713
  checkFileSupport();
2690
2714
  value = await value;
@@ -2738,7 +2762,7 @@ function propsForError(value) {
2738
2762
  }
2739
2763
  var isBlobLike, isFileLike, isResponseLike;
2740
2764
  var init_to_file = __esm({
2741
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
2765
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
2742
2766
  "use strict";
2743
2767
  init_uploads();
2744
2768
  init_uploads();
@@ -2748,25 +2772,25 @@ var init_to_file = __esm({
2748
2772
  }
2749
2773
  });
2750
2774
 
2751
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs
2775
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs
2752
2776
  var init_uploads2 = __esm({
2753
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
2777
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
2754
2778
  "use strict";
2755
2779
  init_to_file();
2756
2780
  }
2757
2781
  });
2758
2782
 
2759
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs
2783
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs
2760
2784
  var init_shared = __esm({
2761
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
2785
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
2762
2786
  "use strict";
2763
2787
  }
2764
2788
  });
2765
2789
 
2766
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs
2790
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs
2767
2791
  var APIResource;
2768
2792
  var init_resource = __esm({
2769
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
2793
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
2770
2794
  "use strict";
2771
2795
  APIResource = class {
2772
2796
  constructor(client) {
@@ -2776,7 +2800,7 @@ var init_resource = __esm({
2776
2800
  }
2777
2801
  });
2778
2802
 
2779
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs
2803
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs
2780
2804
  function* iterateHeaders(headers) {
2781
2805
  if (!headers)
2782
2806
  return;
@@ -2809,18 +2833,28 @@ function* iterateHeaders(headers) {
2809
2833
  continue;
2810
2834
  if (shouldClear && !didClear) {
2811
2835
  didClear = true;
2812
- yield [name, null];
2836
+ yield [name, clearSentinel];
2813
2837
  }
2814
2838
  yield [name, value];
2815
2839
  }
2816
2840
  }
2817
2841
  }
2818
- var brand_privateNullableHeaders, buildHeaders;
2842
+ var brand_privateNullableHeaders, clearSentinel, APPEND_HEADERS, appendHeaderValue, buildHeaders;
2819
2843
  var init_headers = __esm({
2820
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
2844
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
2821
2845
  "use strict";
2822
2846
  init_values();
2823
2847
  brand_privateNullableHeaders = Symbol.for("brand.privateNullableHeaders");
2848
+ clearSentinel = Symbol("clear");
2849
+ APPEND_HEADERS = /* @__PURE__ */ new Set(["x-stainless-helper"]);
2850
+ appendHeaderValue = (existing, addition) => {
2851
+ const tokens = existing ? existing.split(",").map((t) => t.trim()).filter(Boolean) : [];
2852
+ for (const tok of addition.split(",").map((t) => t.trim())) {
2853
+ if (tok && !tokens.includes(tok))
2854
+ tokens.push(tok);
2855
+ }
2856
+ return tokens.join(", ");
2857
+ };
2824
2858
  buildHeaders = (newHeaders) => {
2825
2859
  const targetHeaders = new Headers();
2826
2860
  const nullHeaders = /* @__PURE__ */ new Set();
@@ -2828,9 +2862,23 @@ var init_headers = __esm({
2828
2862
  const seenHeaders = /* @__PURE__ */ new Set();
2829
2863
  for (const [name, value] of iterateHeaders(headers)) {
2830
2864
  const lowerName = name.toLowerCase();
2831
- if (!seenHeaders.has(lowerName)) {
2865
+ if (APPEND_HEADERS.has(lowerName)) {
2866
+ if (value === clearSentinel)
2867
+ continue;
2868
+ if (value === null) {
2869
+ targetHeaders.delete(name);
2870
+ nullHeaders.add(lowerName);
2871
+ } else {
2872
+ targetHeaders.set(name, appendHeaderValue(targetHeaders.get(name), value));
2873
+ nullHeaders.delete(lowerName);
2874
+ }
2875
+ continue;
2876
+ }
2877
+ if (value === clearSentinel || !seenHeaders.has(lowerName)) {
2832
2878
  targetHeaders.delete(name);
2833
2879
  seenHeaders.add(lowerName);
2880
+ if (value === clearSentinel)
2881
+ continue;
2834
2882
  }
2835
2883
  if (value === null) {
2836
2884
  targetHeaders.delete(name);
@@ -2846,13 +2894,13 @@ var init_headers = __esm({
2846
2894
  }
2847
2895
  });
2848
2896
 
2849
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
2897
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
2850
2898
  function encodeURIPath(str) {
2851
2899
  return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
2852
2900
  }
2853
2901
  var EMPTY, createPathTagFunction, path;
2854
2902
  var init_path = __esm({
2855
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
2903
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
2856
2904
  "use strict";
2857
2905
  init_error();
2858
2906
  EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
@@ -2908,10 +2956,10 @@ ${underline}`);
2908
2956
  }
2909
2957
  });
2910
2958
 
2911
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
2959
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
2912
2960
  var DeploymentRuns;
2913
2961
  var init_deployment_runs = __esm({
2914
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs"() {
2962
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs"() {
2915
2963
  "use strict";
2916
2964
  init_resource();
2917
2965
  init_pagination();
@@ -2965,10 +3013,10 @@ var init_deployment_runs = __esm({
2965
3013
  }
2966
3014
  });
2967
3015
 
2968
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
3016
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
2969
3017
  var Deployments;
2970
3018
  var init_deployments = __esm({
2971
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs"() {
3019
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs"() {
2972
3020
  "use strict";
2973
3021
  init_resource();
2974
3022
  init_pagination();
@@ -3016,7 +3064,9 @@ var init_deployments = __esm({
3016
3064
  * @example
3017
3065
  * ```ts
3018
3066
  * const betaManagedAgentsDeployment =
3019
- * await client.beta.deployments.retrieve('deployment_id');
3067
+ * await client.beta.deployments.retrieve(
3068
+ * 'depl_011CZkZcDH3vPqd7xnEfwTai',
3069
+ * );
3020
3070
  * ```
3021
3071
  */
3022
3072
  retrieve(deploymentID, params = {}, options) {
@@ -3035,7 +3085,9 @@ var init_deployments = __esm({
3035
3085
  * @example
3036
3086
  * ```ts
3037
3087
  * const betaManagedAgentsDeployment =
3038
- * await client.beta.deployments.update('deployment_id');
3088
+ * await client.beta.deployments.update(
3089
+ * 'depl_011CZkZcDH3vPqd7xnEfwTai',
3090
+ * );
3039
3091
  * ```
3040
3092
  */
3041
3093
  update(deploymentID, params, options) {
@@ -3077,7 +3129,9 @@ var init_deployments = __esm({
3077
3129
  * @example
3078
3130
  * ```ts
3079
3131
  * const betaManagedAgentsDeployment =
3080
- * await client.beta.deployments.archive('deployment_id');
3132
+ * await client.beta.deployments.archive(
3133
+ * 'depl_011CZkZcDH3vPqd7xnEfwTai',
3134
+ * );
3081
3135
  * ```
3082
3136
  */
3083
3137
  archive(deploymentID, params = {}, options) {
@@ -3096,7 +3150,9 @@ var init_deployments = __esm({
3096
3150
  * @example
3097
3151
  * ```ts
3098
3152
  * const betaManagedAgentsDeployment =
3099
- * await client.beta.deployments.pause('deployment_id');
3153
+ * await client.beta.deployments.pause(
3154
+ * 'depl_011CZkZcDH3vPqd7xnEfwTai',
3155
+ * );
3100
3156
  * ```
3101
3157
  */
3102
3158
  pause(deploymentID, params = {}, options) {
@@ -3115,7 +3171,9 @@ var init_deployments = __esm({
3115
3171
  * @example
3116
3172
  * ```ts
3117
3173
  * const betaManagedAgentsDeploymentRun =
3118
- * await client.beta.deployments.run('deployment_id');
3174
+ * await client.beta.deployments.run(
3175
+ * 'depl_011CZkZcDH3vPqd7xnEfwTai',
3176
+ * );
3119
3177
  * ```
3120
3178
  */
3121
3179
  run(deploymentID, params = {}, options) {
@@ -3134,7 +3192,9 @@ var init_deployments = __esm({
3134
3192
  * @example
3135
3193
  * ```ts
3136
3194
  * const betaManagedAgentsDeployment =
3137
- * await client.beta.deployments.unpause('deployment_id');
3195
+ * await client.beta.deployments.unpause(
3196
+ * 'depl_011CZkZcDH3vPqd7xnEfwTai',
3197
+ * );
3138
3198
  * ```
3139
3199
  */
3140
3200
  unpause(deploymentID, params = {}, options) {
@@ -3151,7 +3211,10 @@ var init_deployments = __esm({
3151
3211
  }
3152
3212
  });
3153
3213
 
3154
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs
3214
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs
3215
+ function helperHeader(value) {
3216
+ return { [STAINLESS_HELPER_HEADER]: value };
3217
+ }
3155
3218
  function wasCreatedByStainlessHelper(value) {
3156
3219
  return typeof value === "object" && value !== null && SDK_HELPER_SYMBOL in value;
3157
3220
  }
@@ -3169,8 +3232,9 @@ function collectStainlessHelpers(tools, messages) {
3169
3232
  if (wasCreatedByStainlessHelper(message)) {
3170
3233
  helpers.add(message[SDK_HELPER_SYMBOL]);
3171
3234
  }
3172
- if (Array.isArray(message.content)) {
3173
- for (const block of message.content) {
3235
+ const content = message.content;
3236
+ if (Array.isArray(content)) {
3237
+ for (const block of content) {
3174
3238
  if (wasCreatedByStainlessHelper(block)) {
3175
3239
  helpers.add(block[SDK_HELPER_SYMBOL]);
3176
3240
  }
@@ -3184,26 +3248,28 @@ function stainlessHelperHeader(tools, messages) {
3184
3248
  const helpers = collectStainlessHelpers(tools, messages);
3185
3249
  if (helpers.length === 0)
3186
3250
  return {};
3187
- return { "x-stainless-helper": helpers.join(", ") };
3251
+ return { [STAINLESS_HELPER_HEADER]: helpers.join(", ") };
3188
3252
  }
3189
3253
  function stainlessHelperHeaderFromFile(file) {
3190
3254
  if (wasCreatedByStainlessHelper(file)) {
3191
- return { "x-stainless-helper": file[SDK_HELPER_SYMBOL] };
3255
+ return { [STAINLESS_HELPER_HEADER]: file[SDK_HELPER_SYMBOL] };
3192
3256
  }
3193
3257
  return {};
3194
3258
  }
3195
- var SDK_HELPER_SYMBOL;
3259
+ var STAINLESS_HELPER_HEADER, STAINLESS_HELPER_METHOD_HEADER, SDK_HELPER_SYMBOL;
3196
3260
  var init_stainless_helper_header = __esm({
3197
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs"() {
3261
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs"() {
3198
3262
  "use strict";
3263
+ STAINLESS_HELPER_HEADER = "x-stainless-helper";
3264
+ STAINLESS_HELPER_METHOD_HEADER = "x-stainless-helper-method";
3199
3265
  SDK_HELPER_SYMBOL = Symbol("anthropic.sdk.stainlessHelper");
3200
3266
  }
3201
3267
  });
3202
3268
 
3203
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
3269
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
3204
3270
  var Files;
3205
3271
  var init_files = __esm({
3206
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
3272
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
3207
3273
  "use strict";
3208
3274
  init_resource();
3209
3275
  init_pagination();
@@ -3326,10 +3392,10 @@ var init_files = __esm({
3326
3392
  }
3327
3393
  });
3328
3394
 
3329
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3395
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3330
3396
  var Models;
3331
3397
  var init_models = __esm({
3332
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
3398
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
3333
3399
  "use strict";
3334
3400
  init_resource();
3335
3401
  init_pagination();
@@ -3388,10 +3454,10 @@ var init_models = __esm({
3388
3454
  }
3389
3455
  });
3390
3456
 
3391
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
3457
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
3392
3458
  var UserProfiles;
3393
3459
  var init_user_profiles = __esm({
3394
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
3460
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
3395
3461
  "use strict";
3396
3462
  init_resource();
3397
3463
  init_pagination();
@@ -4288,10 +4354,10 @@ var require_dist = __commonJS({
4288
4354
  }
4289
4355
  });
4290
4356
 
4291
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4357
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4292
4358
  var import_standardwebhooks, Webhooks;
4293
4359
  var init_webhooks = __esm({
4294
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
4360
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
4295
4361
  "use strict";
4296
4362
  init_resource();
4297
4363
  import_standardwebhooks = __toESM(require_dist(), 1);
@@ -4310,10 +4376,10 @@ var init_webhooks = __esm({
4310
4376
  }
4311
4377
  });
4312
4378
 
4313
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4379
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4314
4380
  var Versions;
4315
4381
  var init_versions = __esm({
4316
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
4382
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
4317
4383
  "use strict";
4318
4384
  init_resource();
4319
4385
  init_pagination();
@@ -4348,10 +4414,10 @@ var init_versions = __esm({
4348
4414
  }
4349
4415
  });
4350
4416
 
4351
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
4417
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
4352
4418
  var Agents;
4353
4419
  var init_agents = __esm({
4354
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
4420
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
4355
4421
  "use strict";
4356
4422
  init_resource();
4357
4423
  init_versions();
@@ -4480,7 +4546,7 @@ var init_agents = __esm({
4480
4546
  }
4481
4547
  });
4482
4548
 
4483
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
4549
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
4484
4550
  function linkAbort(external, controller) {
4485
4551
  if (!external)
4486
4552
  return () => {
@@ -4495,12 +4561,12 @@ function linkAbort(external, controller) {
4495
4561
  return () => external.removeEventListener("abort", onAbort);
4496
4562
  }
4497
4563
  var init_abort = __esm({
4498
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
4564
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
4499
4565
  "use strict";
4500
4566
  }
4501
4567
  });
4502
4568
 
4503
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
4569
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
4504
4570
  function isStatus(e, code) {
4505
4571
  return e instanceof APIError && e.status === code;
4506
4572
  }
@@ -4520,13 +4586,13 @@ function applyJitter(ms) {
4520
4586
  return ms * (1 - Math.random() * 0.25);
4521
4587
  }
4522
4588
  var init_backoff = __esm({
4523
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
4589
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
4524
4590
  "use strict";
4525
4591
  init_error();
4526
4592
  }
4527
4593
  });
4528
4594
 
4529
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
4595
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
4530
4596
  function copyClientForHelper(client, { authToken, helper }) {
4531
4597
  if (!authToken) {
4532
4598
  throw new AnthropicError(`copyClientForHelper: expected a non-empty authToken but received ${JSON.stringify(authToken)}`);
@@ -4541,7 +4607,7 @@ function copyClientForHelper(client, { authToken, helper }) {
4541
4607
  const defaultHeaders = buildHeaders([
4542
4608
  inheritedAuthExtraHeaders,
4543
4609
  parentDefaults,
4544
- { "x-stainless-helper": helper }
4610
+ { [STAINLESS_HELPER_HEADER]: helper }
4545
4611
  ]);
4546
4612
  return client.withOptions({
4547
4613
  apiKey: null,
@@ -4552,14 +4618,15 @@ function copyClientForHelper(client, { authToken, helper }) {
4552
4618
  });
4553
4619
  }
4554
4620
  var init_helper_client = __esm({
4555
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
4621
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
4556
4622
  "use strict";
4557
4623
  init_error();
4558
4624
  init_headers();
4625
+ init_stainless_helper_header();
4559
4626
  }
4560
4627
  });
4561
4628
 
4562
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
4629
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
4563
4630
  function backoff2(attempt) {
4564
4631
  return backoff(attempt, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS);
4565
4632
  }
@@ -4570,7 +4637,7 @@ function defaultWorkerId() {
4570
4637
  }
4571
4638
  var _WorkPoller_runnerClient, _WorkPoller_consumed, _WorkPoller_controller, _WorkPoller_detachExternal, _WorkPoller_autoStop, _WorkPoller_drain, _WorkPoller_blockMs, _WorkPoller_reclaimOlderThanMs, _WorkPoller_requestOpts, POLL_BLOCK_MS, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS, WorkPoller;
4572
4639
  var init_poller = __esm({
4573
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
4640
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
4574
4641
  "use strict";
4575
4642
  init_tslib();
4576
4643
  init_error();
@@ -4693,10 +4760,10 @@ var init_poller = __esm({
4693
4760
  }
4694
4761
  });
4695
4762
 
4696
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
4763
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
4697
4764
  var _AsyncQueue_items, _AsyncQueue_waiters, _AsyncQueue_closed, AsyncQueue;
4698
4765
  var init_async_queue = __esm({
4699
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
4766
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
4700
4767
  "use strict";
4701
4768
  init_tslib();
4702
4769
  AsyncQueue = class {
@@ -4763,10 +4830,10 @@ var init_async_queue = __esm({
4763
4830
  }
4764
4831
  });
4765
4832
 
4766
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
4833
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
4767
4834
  var ToolError;
4768
4835
  var init_ToolError = __esm({
4769
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
4836
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
4770
4837
  "use strict";
4771
4838
  ToolError = class extends Error {
4772
4839
  constructor(content) {
@@ -4783,7 +4850,7 @@ var init_ToolError = __esm({
4783
4850
  }
4784
4851
  });
4785
4852
 
4786
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
4853
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
4787
4854
  function toolName(tool) {
4788
4855
  return "name" in tool ? tool.name : tool.mcp_server_name;
4789
4856
  }
@@ -4800,13 +4867,13 @@ async function runRunnableTool(tool, rawInput, context) {
4800
4867
  }
4801
4868
  }
4802
4869
  var init_BetaRunnableTool = __esm({
4803
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
4870
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
4804
4871
  "use strict";
4805
4872
  init_ToolError();
4806
4873
  }
4807
4874
  });
4808
4875
 
4809
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
4876
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
4810
4877
  function isEndTurnIdle(ev) {
4811
4878
  return ev.type === "session.status_idle" && ev.stop_reason?.type === "end_turn";
4812
4879
  }
@@ -4837,9 +4904,9 @@ function toSessionContent(content) {
4837
4904
  });
4838
4905
  return out.length > 0 ? out : [{ type: "text", text: "(no output)" }];
4839
4906
  }
4840
- var _SessionToolRunner_instances, _SessionToolRunner_consumed, _SessionToolRunner_controller, _SessionToolRunner_detachExternal, _SessionToolRunner_requestOpts, _SessionToolRunner_toolByName, _SessionToolRunner_logger, _SessionToolRunner_seen, _SessionToolRunner_answered, _SessionToolRunner_results, _SessionToolRunner_inFlightCount, _SessionToolRunner_onIdle, _SessionToolRunner_idleTimer, _SessionToolRunner_requestOptions, _SessionToolRunner_streamLoop, _SessionToolRunner_reconcile, _SessionToolRunner_ingestHistory, _SessionToolRunner_handleStreamEvent, _SessionToolRunner_armIdleTimer, _SessionToolRunner_disarmIdleTimer, _SessionToolRunner_execute, _SessionToolRunner_sendResult, _SessionToolRunner_drain, HELPER_NAME, STREAM_BACKOFF_START_MS, STREAM_BACKOFF_CAP_MS, TOOL_TIMEOUT_MS, DRAIN_TIMEOUT_MS, SEND_RETRIES, DEFAULT_MAX_IDLE_MS, SessionToolRunner;
4907
+ var _SessionToolRunner_instances, _SessionToolRunner_consumed, _SessionToolRunner_controller, _SessionToolRunner_detachExternal, _SessionToolRunner_requestOpts, _SessionToolRunner_toolByName, _SessionToolRunner_logger, _SessionToolRunner_seen, _SessionToolRunner_answered, _SessionToolRunner_results, _SessionToolRunner_inFlightCount, _SessionToolRunner_onIdle, _SessionToolRunner_idleTimer, _SessionToolRunner_requestOptions, _SessionToolRunner_streamLoop, _SessionToolRunner_reconcile, _SessionToolRunner_ingestHistory, _SessionToolRunner_handleStreamEvent, _SessionToolRunner_armIdleTimer, _SessionToolRunner_disarmIdleTimer, _SessionToolRunner_execute, _SessionToolRunner_sendResult, _SessionToolRunner_drain, STREAM_BACKOFF_START_MS, STREAM_BACKOFF_CAP_MS, TOOL_TIMEOUT_MS, DRAIN_TIMEOUT_MS, SEND_RETRIES, DEFAULT_MAX_IDLE_MS, SessionToolRunner;
4841
4908
  var init_SessionToolRunner = __esm({
4842
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
4909
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
4843
4910
  "use strict";
4844
4911
  init_tslib();
4845
4912
  init_error();
@@ -4849,8 +4916,8 @@ var init_SessionToolRunner = __esm({
4849
4916
  init_abort();
4850
4917
  init_async_queue();
4851
4918
  init_headers();
4919
+ init_stainless_helper_header();
4852
4920
  init_BetaRunnableTool();
4853
- HELPER_NAME = "SessionToolRunner";
4854
4921
  STREAM_BACKOFF_START_MS = 500;
4855
4922
  STREAM_BACKOFF_CAP_MS = 1e4;
4856
4923
  TOOL_TIMEOUT_MS = 12e4;
@@ -4941,7 +5008,7 @@ var init_SessionToolRunner = __esm({
4941
5008
  _SessionToolRunner_requestOptions = function _SessionToolRunner_requestOptions2() {
4942
5009
  return {
4943
5010
  ...__classPrivateFieldGet(this, _SessionToolRunner_requestOpts, "f"),
4944
- headers: buildHeaders([{ "x-stainless-helper": HELPER_NAME }, __classPrivateFieldGet(this, _SessionToolRunner_requestOpts, "f")?.headers]),
5011
+ headers: buildHeaders([helperHeader("session-tool-runner"), __classPrivateFieldGet(this, _SessionToolRunner_requestOpts, "f")?.headers]),
4945
5012
  signal: __classPrivateFieldGet(this, _SessionToolRunner_controller, "f").signal
4946
5013
  };
4947
5014
  }, _SessionToolRunner_streamLoop = // ===== event stream =====
@@ -5150,15 +5217,15 @@ var init_SessionToolRunner = __esm({
5150
5217
  }
5151
5218
  });
5152
5219
 
5153
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
5220
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
5154
5221
  var init_transform_json_schema = __esm({
5155
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
5222
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
5156
5223
  "use strict";
5157
5224
  init_utils2();
5158
5225
  }
5159
5226
  });
5160
5227
 
5161
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
5228
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
5162
5229
  function betaTool(options) {
5163
5230
  if (options.inputSchema.type !== "object") {
5164
5231
  throw new Error(`JSON schema for tool "${options.name}" must be an object, but got ${options.inputSchema.type}`);
@@ -5174,14 +5241,14 @@ function betaTool(options) {
5174
5241
  };
5175
5242
  }
5176
5243
  var init_json_schema = __esm({
5177
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
5244
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
5178
5245
  "use strict";
5179
5246
  init_sdk();
5180
5247
  init_transform_json_schema();
5181
5248
  }
5182
5249
  });
5183
5250
 
5184
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
5251
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
5185
5252
  function promiseWithResolvers() {
5186
5253
  let resolve4;
5187
5254
  let reject;
@@ -5192,12 +5259,12 @@ function promiseWithResolvers() {
5192
5259
  return { promise, resolve: resolve4, reject };
5193
5260
  }
5194
5261
  var init_promise = __esm({
5195
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
5262
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
5196
5263
  "use strict";
5197
5264
  }
5198
5265
  });
5199
5266
 
5200
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
5267
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
5201
5268
  import * as fs from "fs/promises";
5202
5269
  import * as path2 from "path";
5203
5270
  import { randomUUID } from "crypto";
@@ -5211,6 +5278,7 @@ async function realpathOrSelf(p) {
5211
5278
  async function canonicalize(abs) {
5212
5279
  const tail = [];
5213
5280
  let prefix = abs;
5281
+ let hops = 0;
5214
5282
  for (; ; ) {
5215
5283
  let real;
5216
5284
  try {
@@ -5222,6 +5290,9 @@ async function canonicalize(abs) {
5222
5290
  } catch {
5223
5291
  }
5224
5292
  if (isLink) {
5293
+ if (++hops > 40) {
5294
+ throw new ToolError(`path ${JSON.stringify(abs)} has too many levels of symbolic links`);
5295
+ }
5225
5296
  prefix = path2.resolve(path2.dirname(prefix), await fs.readlink(prefix));
5226
5297
  continue;
5227
5298
  }
@@ -5237,19 +5308,12 @@ async function canonicalize(abs) {
5237
5308
  }
5238
5309
  async function confineToRoot(root, p, opts) {
5239
5310
  const allowOutside = opts?.allowOutside ?? false;
5240
- if (path2.isAbsolute(p)) {
5241
- if (!allowOutside) {
5242
- throw new ToolError(`absolute path ${JSON.stringify(p)} not permitted`);
5243
- }
5244
- return path2.resolve(p);
5245
- }
5246
5311
  const realRoot = await realpathOrSelf(path2.resolve(root));
5247
5312
  const abs = path2.resolve(realRoot, p);
5248
5313
  if (allowOutside)
5249
5314
  return abs;
5250
5315
  const real = await canonicalize(abs);
5251
- const rootSep = realRoot.endsWith(path2.sep) ? realRoot : realRoot + path2.sep;
5252
- if (real !== realRoot && !real.startsWith(rootSep)) {
5316
+ if (real !== realRoot && !real.startsWith(realRoot + path2.sep)) {
5253
5317
  throw new ToolError(`path ${JSON.stringify(p)} escapes workdir`);
5254
5318
  }
5255
5319
  return real;
@@ -5301,7 +5365,7 @@ function fsErrorMessage(err, file) {
5301
5365
  }
5302
5366
  var DIR_CREATE_MODE, FILE_CREATE_MODE;
5303
5367
  var init_fs_util = __esm({
5304
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
5368
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
5305
5369
  "use strict";
5306
5370
  init_ToolError();
5307
5371
  DIR_CREATE_MODE = 493;
@@ -5309,7 +5373,7 @@ var init_fs_util = __esm({
5309
5373
  }
5310
5374
  });
5311
5375
 
5312
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
5376
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
5313
5377
  import * as fs2 from "fs/promises";
5314
5378
  import * as fssync from "fs";
5315
5379
  import * as path3 from "path";
@@ -5466,7 +5530,7 @@ async function readHead(file, n) {
5466
5530
  }
5467
5531
  var execFileAsync;
5468
5532
  var init_skills = __esm({
5469
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
5533
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
5470
5534
  "use strict";
5471
5535
  init_error();
5472
5536
  init_log();
@@ -5475,7 +5539,7 @@ var init_skills = __esm({
5475
5539
  }
5476
5540
  });
5477
5541
 
5478
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
5542
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
5479
5543
  var node_exports = {};
5480
5544
  __export(node_exports, {
5481
5545
  BashSession: () => BashSession,
@@ -5735,6 +5799,7 @@ function betaGlobTool(ctx) {
5735
5799
  if (!ctx.unrestrictedPaths && pat.split(/[\\/]/).includes("..")) {
5736
5800
  throw new ToolError('glob: ".." is not permitted in the pattern');
5737
5801
  }
5802
+ const realRoot = ctx.unrestrictedPaths ? root : await fs3.realpath(root).catch(() => root);
5738
5803
  const matches = [];
5739
5804
  try {
5740
5805
  for await (const entry of fsGlob(pat, {
@@ -5745,8 +5810,16 @@ function betaGlobTool(ctx) {
5745
5810
  if (!entry.isFile())
5746
5811
  continue;
5747
5812
  const full = path4.join(entry.parentPath, entry.name);
5748
- if (!ctx.unrestrictedPaths && !isWithin(root, full))
5749
- continue;
5813
+ if (!ctx.unrestrictedPaths) {
5814
+ let real;
5815
+ try {
5816
+ real = await fs3.realpath(full);
5817
+ } catch {
5818
+ continue;
5819
+ }
5820
+ if (!isWithin(realRoot, real))
5821
+ continue;
5822
+ }
5750
5823
  let mtime = 0;
5751
5824
  try {
5752
5825
  mtime = (await fs3.stat(full)).mtimeMs;
@@ -5921,7 +5994,7 @@ async function findRg() {
5921
5994
  }
5922
5995
  var _BashSession_instances, _BashSession_proc, _BashSession_buf, _BashSession_truncated, _BashSession_closed, _BashSession_waiting, _BashSession_append, BASH_OUTPUT_LIMIT, BASH_DEFAULT_TIMEOUT_MS, DEFAULT_MAX_FILE_BYTES, GREP_OUTPUT_LIMIT, GREP_MAX_LINE_LENGTH, GLOB_RESULT_LIMIT, ANSI_RE, fsGlob, BashSession, WALK_MAX_DEPTH, WALK_MAX_ENTRIES;
5923
5996
  var init_node = __esm({
5924
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
5997
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
5925
5998
  "use strict";
5926
5999
  init_tslib();
5927
6000
  init_error();
@@ -6064,7 +6137,7 @@ ${out}`;
6064
6137
  }
6065
6138
  });
6066
6139
 
6067
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
6140
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
6068
6141
  async function forceStop(client, work, log, requestOptions) {
6069
6142
  try {
6070
6143
  await client.beta.environments.work.stop(
@@ -6118,7 +6191,7 @@ async function heartbeatLoop(client, work, ctrl, logger, requestOptions) {
6118
6191
  }
6119
6192
  var _EnvironmentWorker_instances, _EnvironmentWorker_signal, _EnvironmentWorker_handleItem, HEARTBEAT_DEFAULT_MS, NO_HEARTBEAT_SENTINEL, EnvironmentWorker;
6120
6193
  var init_worker = __esm({
6121
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
6194
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
6122
6195
  "use strict";
6123
6196
  init_tslib();
6124
6197
  init_error();
@@ -6277,10 +6350,10 @@ var init_worker = __esm({
6277
6350
  }
6278
6351
  });
6279
6352
 
6280
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
6353
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
6281
6354
  var Work;
6282
6355
  var init_work = __esm({
6283
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
6356
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
6284
6357
  "use strict";
6285
6358
  init_resource();
6286
6359
  init_pagination();
@@ -6551,10 +6624,10 @@ var init_work = __esm({
6551
6624
  }
6552
6625
  });
6553
6626
 
6554
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
6627
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
6555
6628
  var Environments;
6556
6629
  var init_environments = __esm({
6557
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
6630
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
6558
6631
  "use strict";
6559
6632
  init_resource();
6560
6633
  init_work();
@@ -6702,10 +6775,10 @@ var init_environments = __esm({
6702
6775
  }
6703
6776
  });
6704
6777
 
6705
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
6778
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
6706
6779
  var Memories;
6707
6780
  var init_memories = __esm({
6708
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
6781
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
6709
6782
  "use strict";
6710
6783
  init_resource();
6711
6784
  init_pagination();
@@ -6834,10 +6907,10 @@ var init_memories = __esm({
6834
6907
  }
6835
6908
  });
6836
6909
 
6837
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
6910
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
6838
6911
  var MemoryVersions;
6839
6912
  var init_memory_versions = __esm({
6840
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
6913
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
6841
6914
  "use strict";
6842
6915
  init_resource();
6843
6916
  init_pagination();
@@ -6917,10 +6990,10 @@ var init_memory_versions = __esm({
6917
6990
  }
6918
6991
  });
6919
6992
 
6920
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
6993
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
6921
6994
  var MemoryStores;
6922
6995
  var init_memory_stores = __esm({
6923
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
6996
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
6924
6997
  "use strict";
6925
6998
  init_resource();
6926
6999
  init_memories();
@@ -7063,18 +7136,18 @@ var init_memory_stores = __esm({
7063
7136
  }
7064
7137
  });
7065
7138
 
7066
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs
7139
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs
7067
7140
  var init_error2 = __esm({
7068
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs"() {
7141
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/error.mjs"() {
7069
7142
  "use strict";
7070
7143
  init_error();
7071
7144
  }
7072
7145
  });
7073
7146
 
7074
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
7147
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
7075
7148
  var JSONLDecoder;
7076
7149
  var init_jsonl = __esm({
7077
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
7150
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
7078
7151
  "use strict";
7079
7152
  init_error();
7080
7153
  init_shims();
@@ -7112,10 +7185,10 @@ var init_jsonl = __esm({
7112
7185
  }
7113
7186
  });
7114
7187
 
7115
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
7188
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
7116
7189
  var Batches;
7117
7190
  var init_batches = __esm({
7118
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
7191
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
7119
7192
  "use strict";
7120
7193
  init_resource();
7121
7194
  init_pagination();
@@ -7132,7 +7205,7 @@ var init_batches = __esm({
7132
7205
  * can take up to 24 hours to complete.
7133
7206
  *
7134
7207
  * Learn more about the Message Batches API in our
7135
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
7208
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
7136
7209
  *
7137
7210
  * @example
7138
7211
  * ```ts
@@ -7154,12 +7227,15 @@ var init_batches = __esm({
7154
7227
  * ```
7155
7228
  */
7156
7229
  create(params, options) {
7157
- const { betas, ...body } = params;
7230
+ const { betas, user_profile_id, ...body } = params;
7158
7231
  return this._client.post("/v1/messages/batches?beta=true", {
7159
7232
  body,
7160
7233
  ...options,
7161
7234
  headers: buildHeaders([
7162
- { "anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString() },
7235
+ {
7236
+ "anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
7237
+ ...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : void 0
7238
+ },
7163
7239
  options?.headers
7164
7240
  ])
7165
7241
  });
@@ -7170,7 +7246,7 @@ var init_batches = __esm({
7170
7246
  * `results_url` field in the response.
7171
7247
  *
7172
7248
  * Learn more about the Message Batches API in our
7173
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
7249
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
7174
7250
  *
7175
7251
  * @example
7176
7252
  * ```ts
@@ -7195,7 +7271,7 @@ var init_batches = __esm({
7195
7271
  * returned first.
7196
7272
  *
7197
7273
  * Learn more about the Message Batches API in our
7198
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
7274
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
7199
7275
  *
7200
7276
  * @example
7201
7277
  * ```ts
@@ -7223,7 +7299,7 @@ var init_batches = __esm({
7223
7299
  * like to delete an in-progress batch, you must first cancel it.
7224
7300
  *
7225
7301
  * Learn more about the Message Batches API in our
7226
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
7302
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
7227
7303
  *
7228
7304
  * @example
7229
7305
  * ```ts
@@ -7255,7 +7331,7 @@ var init_batches = __esm({
7255
7331
  * non-interruptible.
7256
7332
  *
7257
7333
  * Learn more about the Message Batches API in our
7258
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
7334
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
7259
7335
  *
7260
7336
  * @example
7261
7337
  * ```ts
@@ -7283,7 +7359,7 @@ var init_batches = __esm({
7283
7359
  * requests. Use the `custom_id` field to match results to requests.
7284
7360
  *
7285
7361
  * Learn more about the Message Batches API in our
7286
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
7362
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
7287
7363
  *
7288
7364
  * @example
7289
7365
  * ```ts
@@ -7316,10 +7392,10 @@ var init_batches = __esm({
7316
7392
  }
7317
7393
  });
7318
7394
 
7319
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs
7395
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs
7320
7396
  var MODEL_NONSTREAMING_TOKENS;
7321
7397
  var init_constants = __esm({
7322
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
7398
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
7323
7399
  "use strict";
7324
7400
  MODEL_NONSTREAMING_TOKENS = {
7325
7401
  "claude-opus-4-20250514": 8192,
@@ -7334,7 +7410,7 @@ var init_constants = __esm({
7334
7410
  }
7335
7411
  });
7336
7412
 
7337
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
7413
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
7338
7414
  function getOutputFormat(params) {
7339
7415
  return params?.output_format ?? params?.output_config?.format;
7340
7416
  }
@@ -7407,24 +7483,24 @@ function parseBetaOutputFormat(params, content) {
7407
7483
  }
7408
7484
  }
7409
7485
  var init_beta_parser = __esm({
7410
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
7486
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
7411
7487
  "use strict";
7412
7488
  init_error();
7413
7489
  }
7414
7490
  });
7415
7491
 
7416
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs
7492
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs
7417
7493
  var init_streaming2 = __esm({
7418
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
7494
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
7419
7495
  "use strict";
7420
7496
  init_streaming();
7421
7497
  }
7422
7498
  });
7423
7499
 
7424
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
7500
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
7425
7501
  var tokenize, strip, unstrip, generate, partialParse;
7426
7502
  var init_parser = __esm({
7427
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
7503
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
7428
7504
  "use strict";
7429
7505
  tokenize = (input) => {
7430
7506
  let current = 0;
@@ -7649,7 +7725,7 @@ var init_parser = __esm({
7649
7725
  }
7650
7726
  });
7651
7727
 
7652
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
7728
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
7653
7729
  function withLazyInput(prev, jsonBuf) {
7654
7730
  const next = {};
7655
7731
  for (const key of Object.keys(prev)) {
@@ -7674,14 +7750,14 @@ function withLazyInput(prev, jsonBuf) {
7674
7750
  }
7675
7751
  var JSON_BUF_PROPERTY;
7676
7752
  var init_message_stream_utils = __esm({
7677
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs"() {
7753
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs"() {
7678
7754
  "use strict";
7679
7755
  init_parser();
7680
7756
  JSON_BUF_PROPERTY = "__json_buf";
7681
7757
  }
7682
7758
  });
7683
7759
 
7684
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
7760
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
7685
7761
  function tracksToolInput(content) {
7686
7762
  return content.type === "tool_use" || content.type === "server_tool_use" || content.type === "mcp_tool_use";
7687
7763
  }
@@ -7689,9 +7765,10 @@ function checkNever(x) {
7689
7765
  }
7690
7766
  var _BetaMessageStream_instances, _BetaMessageStream_currentMessageSnapshot, _BetaMessageStream_params, _BetaMessageStream_connectedPromise, _BetaMessageStream_resolveConnectedPromise, _BetaMessageStream_rejectConnectedPromise, _BetaMessageStream_endPromise, _BetaMessageStream_resolveEndPromise, _BetaMessageStream_rejectEndPromise, _BetaMessageStream_listeners, _BetaMessageStream_ended, _BetaMessageStream_errored, _BetaMessageStream_aborted, _BetaMessageStream_catchingPromiseCreated, _BetaMessageStream_response, _BetaMessageStream_request_id, _BetaMessageStream_logger, _BetaMessageStream_getFinalMessage, _BetaMessageStream_getFinalText, _BetaMessageStream_handleError, _BetaMessageStream_beginRequest, _BetaMessageStream_addStreamEvent, _BetaMessageStream_endRequest, _BetaMessageStream_accumulateMessage, _BetaMessageStream_toolInputParseError, BetaMessageStream;
7691
7767
  var init_BetaMessageStream = __esm({
7692
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
7768
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
7693
7769
  "use strict";
7694
7770
  init_tslib();
7771
+ init_stainless_helper_header();
7695
7772
  init_error2();
7696
7773
  init_errors();
7697
7774
  init_streaming2();
@@ -7803,7 +7880,7 @@ var init_BetaMessageStream = __esm({
7803
7880
  runner._addMessageParam(message);
7804
7881
  }
7805
7882
  __classPrivateFieldSet(runner, _BetaMessageStream_params, { ...params, stream: true }, "f");
7806
- runner._run(() => runner._createMessage(messages, { ...params, stream: true }, { ...options, headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" } }));
7883
+ runner._run(() => runner._createMessage(messages, { ...params, stream: true }, { ...options, headers: { ...options?.headers, [STAINLESS_HELPER_METHOD_HEADER]: "stream" } }));
7807
7884
  return runner;
7808
7885
  }
7809
7886
  _run(executor) {
@@ -8302,10 +8379,10 @@ var init_BetaMessageStream = __esm({
8302
8379
  }
8303
8380
  });
8304
8381
 
8305
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
8382
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
8306
8383
  var DEFAULT_TOKEN_THRESHOLD, DEFAULT_SUMMARY_PROMPT;
8307
8384
  var init_CompactionControl = __esm({
8308
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
8385
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
8309
8386
  "use strict";
8310
8387
  DEFAULT_TOKEN_THRESHOLD = 1e5;
8311
8388
  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:
@@ -8334,7 +8411,7 @@ Wrap your summary in <summary></summary> tags.`;
8334
8411
  }
8335
8412
  });
8336
8413
 
8337
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
8414
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
8338
8415
  async function generateToolResponse(params, lastMessage = params.messages.at(-1), requestOptions) {
8339
8416
  if (!lastMessage || lastMessage.role !== "assistant" || !lastMessage.content || typeof lastMessage.content === "string") {
8340
8417
  return null;
@@ -8384,7 +8461,7 @@ async function generateToolResponse(params, lastMessage = params.messages.at(-1)
8384
8461
  }
8385
8462
  var _BetaToolRunner_instances, _BetaToolRunner_consumed, _BetaToolRunner_mutated, _BetaToolRunner_state, _BetaToolRunner_options, _BetaToolRunner_message, _BetaToolRunner_toolResponse, _BetaToolRunner_completion, _BetaToolRunner_iterationCount, _BetaToolRunner_checkAndCompact, _BetaToolRunner_generateToolResponse, BetaToolRunner;
8386
8463
  var init_BetaToolRunner = __esm({
8387
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
8464
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
8388
8465
  "use strict";
8389
8466
  init_tslib();
8390
8467
  init_ToolError();
@@ -8414,11 +8491,14 @@ var init_BetaToolRunner = __esm({
8414
8491
  messages: structuredClone(params.messages)
8415
8492
  }
8416
8493
  }, "f");
8417
- const helpers = collectStainlessHelpers(params.tools, params.messages);
8418
- const helperValue = ["BetaToolRunner", ...helpers].join(", ");
8494
+ const collected = collectStainlessHelpers(params.tools, params.messages);
8419
8495
  __classPrivateFieldSet(this, _BetaToolRunner_options, {
8420
8496
  ...options,
8421
- headers: buildHeaders([{ "x-stainless-helper": helperValue }, options?.headers])
8497
+ headers: buildHeaders([
8498
+ helperHeader("BetaToolRunner"),
8499
+ collected.length ? { [STAINLESS_HELPER_HEADER]: collected.join(", ") } : void 0,
8500
+ options?.headers
8501
+ ])
8422
8502
  }, "f");
8423
8503
  __classPrivateFieldSet(this, _BetaToolRunner_completion, promiseWithResolvers(), "f");
8424
8504
  if (params.compactionControl?.enabled) {
@@ -8475,7 +8555,7 @@ var init_BetaToolRunner = __esm({
8475
8555
  max_tokens: __classPrivateFieldGet(this, _BetaToolRunner_state, "f").params.max_tokens
8476
8556
  }, {
8477
8557
  signal: __classPrivateFieldGet(this, _BetaToolRunner_options, "f").signal,
8478
- headers: buildHeaders([__classPrivateFieldGet(this, _BetaToolRunner_options, "f").headers, { "x-stainless-helper": "compaction" }])
8558
+ headers: buildHeaders([__classPrivateFieldGet(this, _BetaToolRunner_options, "f").headers, helperHeader("compaction")])
8479
8559
  });
8480
8560
  if (response.content[0]?.type !== "text") {
8481
8561
  throw new AnthropicError("Expected text response for compaction");
@@ -8683,7 +8763,7 @@ var init_BetaToolRunner = __esm({
8683
8763
  }
8684
8764
  });
8685
8765
 
8686
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
8766
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
8687
8767
  function transformOutputFormat(params) {
8688
8768
  if (!params.output_format) {
8689
8769
  return params;
@@ -8702,7 +8782,7 @@ function transformOutputFormat(params) {
8702
8782
  }
8703
8783
  var DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED, Messages;
8704
8784
  var init_messages = __esm({
8705
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
8785
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
8706
8786
  "use strict";
8707
8787
  init_error2();
8708
8788
  init_batches();
@@ -8747,7 +8827,7 @@ var init_messages = __esm({
8747
8827
  }
8748
8828
  create(params, options) {
8749
8829
  const modifiedParams = transformOutputFormat(params);
8750
- const { betas, ...body } = modifiedParams;
8830
+ const { betas, user_profile_id, ...body } = modifiedParams;
8751
8831
  if (body.model in DEPRECATED_MODELS) {
8752
8832
  console.warn(`The model '${body.model}' is deprecated and will reach end-of-life on ${DEPRECATED_MODELS[body.model]}
8753
8833
  Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);
@@ -8760,14 +8840,17 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
8760
8840
  const maxNonstreamingTokens = MODEL_NONSTREAMING_TOKENS[body.model] ?? void 0;
8761
8841
  timeout = this._client.calculateNonstreamingTimeout(body.max_tokens, maxNonstreamingTokens);
8762
8842
  }
8763
- const helperHeader = stainlessHelperHeader(body.tools, body.messages);
8843
+ const helperHeader2 = stainlessHelperHeader(body.tools, body.messages);
8764
8844
  return this._client.post("/v1/messages?beta=true", {
8765
8845
  body,
8766
8846
  timeout: timeout ?? 6e5,
8767
8847
  ...options,
8768
8848
  headers: buildHeaders([
8769
- { ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : void 0 },
8770
- helperHeader,
8849
+ {
8850
+ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : void 0,
8851
+ ...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : void 0
8852
+ },
8853
+ helperHeader2,
8771
8854
  options?.headers
8772
8855
  ]),
8773
8856
  stream: modifiedParams.stream ?? false
@@ -8812,7 +8895,7 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
8812
8895
  * including tools, images, and documents, without creating it.
8813
8896
  *
8814
8897
  * Learn more about token counting in our
8815
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/token-counting)
8898
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
8816
8899
  *
8817
8900
  * @example
8818
8901
  * ```ts
@@ -8825,12 +8908,15 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
8825
8908
  */
8826
8909
  countTokens(params, options) {
8827
8910
  const modifiedParams = transformOutputFormat(params);
8828
- const { betas, ...body } = modifiedParams;
8911
+ const { betas, user_profile_id, ...body } = modifiedParams;
8829
8912
  return this._client.post("/v1/messages/count_tokens?beta=true", {
8830
8913
  body,
8831
8914
  ...options,
8832
8915
  headers: buildHeaders([
8833
- { "anthropic-beta": [...betas ?? [], "token-counting-2024-11-01"].toString() },
8916
+ {
8917
+ "anthropic-beta": [...betas ?? [], "token-counting-2024-11-01"].toString(),
8918
+ ...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : void 0
8919
+ },
8834
8920
  options?.headers
8835
8921
  ])
8836
8922
  });
@@ -8845,10 +8931,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
8845
8931
  }
8846
8932
  });
8847
8933
 
8848
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
8934
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
8849
8935
  var Events;
8850
8936
  var init_events = __esm({
8851
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
8937
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
8852
8938
  "use strict";
8853
8939
  init_resource();
8854
8940
  init_pagination();
@@ -8928,8 +9014,9 @@ var init_events = __esm({
8928
9014
  * ```
8929
9015
  */
8930
9016
  stream(sessionID, params = {}, options) {
8931
- const { betas } = params ?? {};
9017
+ const { betas, ...query } = params ?? {};
8932
9018
  return this._client.get(path`/v1/sessions/${sessionID}/events/stream?beta=true`, {
9019
+ query,
8933
9020
  ...options,
8934
9021
  headers: buildHeaders([
8935
9022
  { "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
@@ -8965,10 +9052,10 @@ var init_events = __esm({
8965
9052
  }
8966
9053
  });
8967
9054
 
8968
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
9055
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
8969
9056
  var Resources;
8970
9057
  var init_resources = __esm({
8971
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
9058
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
8972
9059
  "use strict";
8973
9060
  init_resource();
8974
9061
  init_pagination();
@@ -9099,10 +9186,10 @@ var init_resources = __esm({
9099
9186
  }
9100
9187
  });
9101
9188
 
9102
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
9189
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
9103
9190
  var Events2;
9104
9191
  var init_events2 = __esm({
9105
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
9192
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
9106
9193
  "use strict";
9107
9194
  init_resource();
9108
9195
  init_pagination();
@@ -9161,10 +9248,10 @@ var init_events2 = __esm({
9161
9248
  }
9162
9249
  });
9163
9250
 
9164
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
9251
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
9165
9252
  var Threads;
9166
9253
  var init_threads = __esm({
9167
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
9254
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
9168
9255
  "use strict";
9169
9256
  init_resource();
9170
9257
  init_events2();
@@ -9250,10 +9337,10 @@ var init_threads = __esm({
9250
9337
  }
9251
9338
  });
9252
9339
 
9253
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
9340
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
9254
9341
  var Sessions;
9255
9342
  var init_sessions = __esm({
9256
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
9343
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
9257
9344
  "use strict";
9258
9345
  init_resource();
9259
9346
  init_events();
@@ -9351,7 +9438,7 @@ var init_sessions = __esm({
9351
9438
  */
9352
9439
  list(params = {}, options) {
9353
9440
  const { betas, ...query } = params ?? {};
9354
- return this._client.getAPIList("/v1/sessions?beta=true", PageCursor, {
9441
+ return this._client.getAPIList("/v1/sessions?beta=true", BidirectionalPageCursor, {
9355
9442
  query,
9356
9443
  ...options,
9357
9444
  headers: buildHeaders([
@@ -9409,10 +9496,10 @@ var init_sessions = __esm({
9409
9496
  }
9410
9497
  });
9411
9498
 
9412
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
9499
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
9413
9500
  var Versions2;
9414
9501
  var init_versions2 = __esm({
9415
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
9502
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
9416
9503
  "use strict";
9417
9504
  init_resource();
9418
9505
  init_pagination();
@@ -9539,10 +9626,10 @@ var init_versions2 = __esm({
9539
9626
  }
9540
9627
  });
9541
9628
 
9542
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
9629
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
9543
9630
  var Skills;
9544
9631
  var init_skills2 = __esm({
9545
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
9632
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
9546
9633
  "use strict";
9547
9634
  init_resource();
9548
9635
  init_versions2();
@@ -9638,10 +9725,10 @@ var init_skills2 = __esm({
9638
9725
  }
9639
9726
  });
9640
9727
 
9641
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
9728
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
9642
9729
  var Credentials;
9643
9730
  var init_credentials2 = __esm({
9644
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
9731
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
9645
9732
  "use strict";
9646
9733
  init_resource();
9647
9734
  init_pagination();
@@ -9817,10 +9904,10 @@ var init_credentials2 = __esm({
9817
9904
  }
9818
9905
  });
9819
9906
 
9820
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
9907
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
9821
9908
  var Vaults;
9822
9909
  var init_vaults = __esm({
9823
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
9910
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
9824
9911
  "use strict";
9825
9912
  init_resource();
9826
9913
  init_credentials2();
@@ -9967,10 +10054,10 @@ var init_vaults = __esm({
9967
10054
  }
9968
10055
  });
9969
10056
 
9970
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
10057
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
9971
10058
  var Beta;
9972
10059
  var init_beta = __esm({
9973
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
10060
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
9974
10061
  "use strict";
9975
10062
  init_resource();
9976
10063
  init_deployment_runs();
@@ -10033,10 +10120,10 @@ var init_beta = __esm({
10033
10120
  }
10034
10121
  });
10035
10122
 
10036
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs
10123
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs
10037
10124
  var Completions;
10038
10125
  var init_completions = __esm({
10039
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
10126
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
10040
10127
  "use strict";
10041
10128
  init_resource();
10042
10129
  init_headers();
@@ -10058,7 +10145,7 @@ var init_completions = __esm({
10058
10145
  }
10059
10146
  });
10060
10147
 
10061
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs
10148
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs
10062
10149
  function getOutputFormat2(params) {
10063
10150
  return params?.output_config?.format;
10064
10151
  }
@@ -10119,13 +10206,13 @@ function parseOutputFormat(params, content) {
10119
10206
  }
10120
10207
  }
10121
10208
  var init_parser2 = __esm({
10122
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
10209
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
10123
10210
  "use strict";
10124
10211
  init_error();
10125
10212
  }
10126
10213
  });
10127
10214
 
10128
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
10215
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
10129
10216
  function tracksToolInput2(content) {
10130
10217
  return content.type === "tool_use" || content.type === "server_tool_use";
10131
10218
  }
@@ -10133,9 +10220,10 @@ function checkNever2(x) {
10133
10220
  }
10134
10221
  var _MessageStream_instances, _MessageStream_currentMessageSnapshot, _MessageStream_params, _MessageStream_connectedPromise, _MessageStream_resolveConnectedPromise, _MessageStream_rejectConnectedPromise, _MessageStream_endPromise, _MessageStream_resolveEndPromise, _MessageStream_rejectEndPromise, _MessageStream_listeners, _MessageStream_ended, _MessageStream_errored, _MessageStream_aborted, _MessageStream_catchingPromiseCreated, _MessageStream_response, _MessageStream_request_id, _MessageStream_logger, _MessageStream_getFinalMessage, _MessageStream_getFinalText, _MessageStream_handleError, _MessageStream_beginRequest, _MessageStream_addStreamEvent, _MessageStream_endRequest, _MessageStream_accumulateMessage, MessageStream;
10135
10222
  var init_MessageStream = __esm({
10136
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
10223
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
10137
10224
  "use strict";
10138
10225
  init_tslib();
10226
+ init_stainless_helper_header();
10139
10227
  init_errors();
10140
10228
  init_error2();
10141
10229
  init_streaming2();
@@ -10247,7 +10335,7 @@ var init_MessageStream = __esm({
10247
10335
  runner._addMessageParam(message);
10248
10336
  }
10249
10337
  __classPrivateFieldSet(runner, _MessageStream_params, { ...params, stream: true }, "f");
10250
- runner._run(() => runner._createMessage(messages, { ...params, stream: true }, { ...options, headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" } }));
10338
+ runner._run(() => runner._createMessage(messages, { ...params, stream: true }, { ...options, headers: { ...options?.headers, [STAINLESS_HELPER_METHOD_HEADER]: "stream" } }));
10251
10339
  return runner;
10252
10340
  }
10253
10341
  _run(executor) {
@@ -10705,10 +10793,10 @@ var init_MessageStream = __esm({
10705
10793
  }
10706
10794
  });
10707
10795
 
10708
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
10796
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
10709
10797
  var Batches2;
10710
10798
  var init_batches2 = __esm({
10711
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
10799
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
10712
10800
  "use strict";
10713
10801
  init_resource();
10714
10802
  init_pagination();
@@ -10725,7 +10813,7 @@ var init_batches2 = __esm({
10725
10813
  * can take up to 24 hours to complete.
10726
10814
  *
10727
10815
  * Learn more about the Message Batches API in our
10728
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
10816
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
10729
10817
  *
10730
10818
  * @example
10731
10819
  * ```ts
@@ -10745,8 +10833,16 @@ var init_batches2 = __esm({
10745
10833
  * });
10746
10834
  * ```
10747
10835
  */
10748
- create(body, options) {
10749
- return this._client.post("/v1/messages/batches", { body, ...options });
10836
+ create(params, options) {
10837
+ const { user_profile_id, ...body } = params;
10838
+ return this._client.post("/v1/messages/batches", {
10839
+ body,
10840
+ ...options,
10841
+ headers: buildHeaders([
10842
+ { ...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : void 0 },
10843
+ options?.headers
10844
+ ])
10845
+ });
10750
10846
  }
10751
10847
  /**
10752
10848
  * This endpoint is idempotent and can be used to poll for Message Batch
@@ -10754,7 +10850,7 @@ var init_batches2 = __esm({
10754
10850
  * `results_url` field in the response.
10755
10851
  *
10756
10852
  * Learn more about the Message Batches API in our
10757
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
10853
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
10758
10854
  *
10759
10855
  * @example
10760
10856
  * ```ts
@@ -10771,7 +10867,7 @@ var init_batches2 = __esm({
10771
10867
  * returned first.
10772
10868
  *
10773
10869
  * Learn more about the Message Batches API in our
10774
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
10870
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
10775
10871
  *
10776
10872
  * @example
10777
10873
  * ```ts
@@ -10791,7 +10887,7 @@ var init_batches2 = __esm({
10791
10887
  * like to delete an in-progress batch, you must first cancel it.
10792
10888
  *
10793
10889
  * Learn more about the Message Batches API in our
10794
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
10890
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
10795
10891
  *
10796
10892
  * @example
10797
10893
  * ```ts
@@ -10814,7 +10910,7 @@ var init_batches2 = __esm({
10814
10910
  * non-interruptible.
10815
10911
  *
10816
10912
  * Learn more about the Message Batches API in our
10817
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
10913
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
10818
10914
  *
10819
10915
  * @example
10820
10916
  * ```ts
@@ -10834,7 +10930,7 @@ var init_batches2 = __esm({
10834
10930
  * requests. Use the `custom_id` field to match results to requests.
10835
10931
  *
10836
10932
  * Learn more about the Message Batches API in our
10837
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)
10933
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)
10838
10934
  *
10839
10935
  * @example
10840
10936
  * ```ts
@@ -10858,10 +10954,10 @@ var init_batches2 = __esm({
10858
10954
  }
10859
10955
  });
10860
10956
 
10861
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
10957
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
10862
10958
  var Messages2, DEPRECATED_MODELS2, MODELS_TO_WARN_WITH_THINKING_ENABLED2;
10863
10959
  var init_messages2 = __esm({
10864
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
10960
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
10865
10961
  "use strict";
10866
10962
  init_resource();
10867
10963
  init_headers();
@@ -10876,7 +10972,8 @@ var init_messages2 = __esm({
10876
10972
  super(...arguments);
10877
10973
  this.batches = new Batches2(this._client);
10878
10974
  }
10879
- create(body, options) {
10975
+ create(params, options) {
10976
+ const { user_profile_id, ...body } = params;
10880
10977
  if (body.model in DEPRECATED_MODELS2) {
10881
10978
  console.warn(`The model '${body.model}' is deprecated and will reach end-of-life on ${DEPRECATED_MODELS2[body.model]}
10882
10979
  Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);
@@ -10889,13 +10986,17 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
10889
10986
  const maxNonstreamingTokens = MODEL_NONSTREAMING_TOKENS[body.model] ?? void 0;
10890
10987
  timeout = this._client.calculateNonstreamingTimeout(body.max_tokens, maxNonstreamingTokens);
10891
10988
  }
10892
- const helperHeader = stainlessHelperHeader(body.tools, body.messages);
10989
+ const helperHeader2 = stainlessHelperHeader(body.tools, body.messages);
10893
10990
  return this._client.post("/v1/messages", {
10894
10991
  body,
10895
10992
  timeout: timeout ?? 6e5,
10896
10993
  ...options,
10897
- headers: buildHeaders([helperHeader, options?.headers]),
10898
- stream: body.stream ?? false
10994
+ headers: buildHeaders([
10995
+ { ...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : void 0 },
10996
+ helperHeader2,
10997
+ options?.headers
10998
+ ]),
10999
+ stream: params.stream ?? false
10899
11000
  });
10900
11001
  }
10901
11002
  /**
@@ -10950,7 +11051,7 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
10950
11051
  * including tools, images, and documents, without creating it.
10951
11052
  *
10952
11053
  * Learn more about token counting in our
10953
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/token-counting)
11054
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
10954
11055
  *
10955
11056
  * @example
10956
11057
  * ```ts
@@ -10961,8 +11062,16 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
10961
11062
  * });
10962
11063
  * ```
10963
11064
  */
10964
- countTokens(body, options) {
10965
- return this._client.post("/v1/messages/count_tokens", { body, ...options });
11065
+ countTokens(params, options) {
11066
+ const { user_profile_id, ...body } = params;
11067
+ return this._client.post("/v1/messages/count_tokens", {
11068
+ body,
11069
+ ...options,
11070
+ headers: buildHeaders([
11071
+ { ...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : void 0 },
11072
+ options?.headers
11073
+ ])
11074
+ });
10966
11075
  }
10967
11076
  };
10968
11077
  DEPRECATED_MODELS2 = {
@@ -10992,10 +11101,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
10992
11101
  }
10993
11102
  });
10994
11103
 
10995
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs
11104
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs
10996
11105
  var Models2;
10997
11106
  var init_models2 = __esm({
10998
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
11107
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
10999
11108
  "use strict";
11000
11109
  init_resource();
11001
11110
  init_pagination();
@@ -11039,9 +11148,9 @@ var init_models2 = __esm({
11039
11148
  }
11040
11149
  });
11041
11150
 
11042
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs
11151
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs
11043
11152
  var init_resources2 = __esm({
11044
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
11153
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
11045
11154
  "use strict";
11046
11155
  init_shared();
11047
11156
  init_beta();
@@ -11051,10 +11160,10 @@ var init_resources2 = __esm({
11051
11160
  }
11052
11161
  });
11053
11162
 
11054
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs
11163
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs
11055
11164
  var _BaseAnthropic_instances, _a, _BaseAnthropic_encoder, _BaseAnthropic_baseURLOverridden, HUMAN_PROMPT, AI_PROMPT, BaseAnthropic, Anthropic;
11056
11165
  var init_client = __esm({
11057
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs"() {
11166
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/client.mjs"() {
11058
11167
  "use strict";
11059
11168
  init_tslib();
11060
11169
  init_uuid();
@@ -11827,23 +11936,25 @@ var init_client = __esm({
11827
11936
  }
11828
11937
  });
11829
11938
 
11830
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
11939
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
11831
11940
  var encoder;
11832
11941
  var init_middleware2 = __esm({
11833
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs"() {
11942
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs"() {
11834
11943
  "use strict";
11835
11944
  init_error();
11836
11945
  init_streaming();
11837
11946
  init_errors();
11947
+ init_headers();
11948
+ init_stainless_helper_header();
11838
11949
  init_values();
11839
11950
  init_request_options();
11840
11951
  encoder = new TextEncoder();
11841
11952
  }
11842
11953
  });
11843
11954
 
11844
- // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs
11955
+ // ../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs
11845
11956
  var init_sdk = __esm({
11846
- "../../node_modules/.pnpm/@anthropic-ai+sdk@0.105.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs"() {
11957
+ "../../node_modules/.pnpm/@anthropic-ai+sdk@0.109.0_zod@4.4.3/node_modules/@anthropic-ai/sdk/index.mjs"() {
11847
11958
  "use strict";
11848
11959
  init_client();
11849
11960
  init_uploads2();
@@ -11872,10 +11983,13 @@ var STATIC_RESULT = {
11872
11983
  source: "static"
11873
11984
  };
11874
11985
  function isAlias(id) {
11875
- return /^claude-[a-z]+-\d+-\d+$/.test(id);
11986
+ return /^claude-[a-z]+-\d+(?:-\d+)?$/.test(id);
11876
11987
  }
11877
11988
  var CONTEXT_1M_BETA = "context-1m-2025-08-07";
11878
11989
  var ONE_MILLION_TOKENS = 9e5;
11990
+ function hasNativeMillionContext(id) {
11991
+ return id.startsWith("claude-fable");
11992
+ }
11879
11993
  function toModelOptions(models) {
11880
11994
  const aliases = models.filter((m) => isAlias(m.id));
11881
11995
  const options = [];
@@ -11886,7 +12000,7 @@ function toModelOptions(models) {
11886
12000
  description: void 0,
11887
12001
  source: "dynamic"
11888
12002
  });
11889
- if (m.max_input_tokens && m.max_input_tokens >= ONE_MILLION_TOKENS) {
12003
+ if (m.max_input_tokens && m.max_input_tokens >= ONE_MILLION_TOKENS && !hasNativeMillionContext(m.id)) {
11890
12004
  options.push({
11891
12005
  id: `${m.id}[1m]`,
11892
12006
  displayName: `${m.display_name} (1M context)`,