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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (867) hide show
  1. package/CHANGELOG.md +78 -1
  2. package/README.md +5 -4
  3. package/dist/cli/startup-ui.d.ts.map +1 -1
  4. package/dist/cli/startup-ui.js +2 -1
  5. package/dist/cli/startup-ui.js.map +1 -1
  6. package/dist/core/agent-session-runtime.js +2 -2
  7. package/dist/core/agent-session-runtime.js.map +1 -1
  8. package/dist/core/agent-session.d.ts.map +1 -1
  9. package/dist/core/agent-session.js +24 -1
  10. package/dist/core/agent-session.js.map +1 -1
  11. package/dist/core/compaction/compaction.d.ts.map +1 -1
  12. package/dist/core/compaction/compaction.js +16 -7
  13. package/dist/core/compaction/compaction.js.map +1 -1
  14. package/dist/core/extensions/builtin/bash-timeout/index.d.ts.map +1 -1
  15. package/dist/core/extensions/builtin/bash-timeout/index.js +1 -5
  16. package/dist/core/extensions/builtin/bash-timeout/index.js.map +1 -1
  17. package/dist/core/extensions/builtin/bash-timeout/timeout.d.ts +0 -2
  18. package/dist/core/extensions/builtin/bash-timeout/timeout.d.ts.map +1 -1
  19. package/dist/core/extensions/builtin/bash-timeout/timeout.js +3 -4
  20. package/dist/core/extensions/builtin/bash-timeout/timeout.js.map +1 -1
  21. package/dist/core/extensions/builtin/goal/prompt.d.ts.map +1 -1
  22. package/dist/core/extensions/builtin/goal/prompt.js +1 -3
  23. package/dist/core/extensions/builtin/goal/prompt.js.map +1 -1
  24. package/dist/core/extensions/builtin/goal/tool-registration.js +1 -1
  25. package/dist/core/extensions/builtin/goal/tool-registration.js.map +1 -1
  26. package/dist/core/extensions/builtin/loop/index.d.ts.map +1 -1
  27. package/dist/core/extensions/builtin/loop/index.js +20 -1
  28. package/dist/core/extensions/builtin/loop/index.js.map +1 -1
  29. package/dist/core/extensions/builtin/loop/tools.d.ts +6 -1
  30. package/dist/core/extensions/builtin/loop/tools.d.ts.map +1 -1
  31. package/dist/core/extensions/builtin/loop/tools.js +8 -1
  32. package/dist/core/extensions/builtin/loop/tools.js.map +1 -1
  33. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.d.ts +123 -0
  34. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.d.ts.map +1 -0
  35. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.js +202 -0
  36. package/dist/core/extensions/builtin/prompt-preset/gpt-6-astra.js.map +1 -0
  37. package/dist/core/extensions/builtin/prompt-preset/gpt-eval-routing.d.ts.map +1 -1
  38. package/dist/core/extensions/builtin/prompt-preset/gpt-eval-routing.js +1 -2
  39. package/dist/core/extensions/builtin/prompt-preset/gpt-eval-routing.js.map +1 -1
  40. package/dist/core/extensions/builtin/prompt-preset/presets.d.ts.map +1 -1
  41. package/dist/core/extensions/builtin/prompt-preset/presets.js +17 -0
  42. package/dist/core/extensions/builtin/prompt-preset/presets.js.map +1 -1
  43. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts +1 -1
  44. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts.map +1 -1
  45. package/dist/core/extensions/builtin/prompt-preset/settings.js +1 -0
  46. package/dist/core/extensions/builtin/prompt-preset/settings.js.map +1 -1
  47. package/dist/core/extensions/builtin/todotools/prompt.d.ts +2 -2
  48. package/dist/core/extensions/builtin/todotools/prompt.d.ts.map +1 -1
  49. package/dist/core/extensions/builtin/todotools/prompt.js +3 -6
  50. package/dist/core/extensions/builtin/todotools/prompt.js.map +1 -1
  51. package/dist/core/extensions/builtin/tool-search/native-search.d.ts +1 -1
  52. package/dist/core/extensions/builtin/tool-search/native-search.d.ts.map +1 -1
  53. package/dist/core/extensions/builtin/tool-search/native-search.js +1 -1
  54. package/dist/core/extensions/builtin/tool-search/native-search.js.map +1 -1
  55. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.d.ts +34 -0
  56. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.d.ts.map +1 -0
  57. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.js +121 -0
  58. package/dist/core/extensions/builtin/ttsr/detectors/collapse-paragraphs.js.map +1 -0
  59. package/dist/core/extensions/builtin/ttsr/detectors/collapse.d.ts +2 -0
  60. package/dist/core/extensions/builtin/ttsr/detectors/collapse.d.ts.map +1 -1
  61. package/dist/core/extensions/builtin/ttsr/detectors/collapse.js +6 -2
  62. package/dist/core/extensions/builtin/ttsr/detectors/collapse.js.map +1 -1
  63. package/dist/core/extensions/index.d.ts +1 -1
  64. package/dist/core/extensions/index.d.ts.map +1 -1
  65. package/dist/core/extensions/index.js.map +1 -1
  66. package/dist/core/extensions/runner.d.ts +5 -0
  67. package/dist/core/extensions/runner.d.ts.map +1 -1
  68. package/dist/core/extensions/runner.js +44 -1
  69. package/dist/core/extensions/runner.js.map +1 -1
  70. package/dist/core/extensions/types.d.ts +26 -3
  71. package/dist/core/extensions/types.d.ts.map +1 -1
  72. package/dist/core/extensions/types.js.map +1 -1
  73. package/dist/core/http-dispatcher.d.ts.map +1 -1
  74. package/dist/core/http-dispatcher.js +2 -0
  75. package/dist/core/http-dispatcher.js.map +1 -1
  76. package/dist/core/manual-continue.d.ts +13 -0
  77. package/dist/core/manual-continue.d.ts.map +1 -0
  78. package/dist/core/manual-continue.js +19 -0
  79. package/dist/core/manual-continue.js.map +1 -0
  80. package/dist/core/messages.d.ts.map +1 -1
  81. package/dist/core/messages.js +8 -2
  82. package/dist/core/messages.js.map +1 -1
  83. package/dist/core/model-config.d.ts.map +1 -1
  84. package/dist/core/model-config.js +3 -0
  85. package/dist/core/model-config.js.map +1 -1
  86. package/dist/core/provider-composer.d.ts.map +1 -1
  87. package/dist/core/provider-composer.js +13 -2
  88. package/dist/core/provider-composer.js.map +1 -1
  89. package/dist/core/session-manager.d.ts.map +1 -1
  90. package/dist/core/session-manager.js +28 -4
  91. package/dist/core/session-manager.js.map +1 -1
  92. package/dist/core/settings-manager.d.ts +5 -1
  93. package/dist/core/settings-manager.d.ts.map +1 -1
  94. package/dist/core/settings-manager.js +34 -0
  95. package/dist/core/settings-manager.js.map +1 -1
  96. package/dist/core/skills.d.ts.map +1 -1
  97. package/dist/core/skills.js +19 -2
  98. package/dist/core/skills.js.map +1 -1
  99. package/dist/core/terminal-settings.d.ts +3 -0
  100. package/dist/core/terminal-settings.d.ts.map +1 -1
  101. package/dist/core/terminal-settings.js.map +1 -1
  102. package/dist/core/tools/bash.d.ts.map +1 -1
  103. package/dist/core/tools/bash.js +1 -1
  104. package/dist/core/tools/bash.js.map +1 -1
  105. package/dist/core/tools/edit.d.ts.map +1 -1
  106. package/dist/core/tools/edit.js +2 -2
  107. package/dist/core/tools/edit.js.map +1 -1
  108. package/dist/core/tools/find.d.ts.map +1 -1
  109. package/dist/core/tools/find.js +2 -2
  110. package/dist/core/tools/find.js.map +1 -1
  111. package/dist/core/tools/grep.d.ts.map +1 -1
  112. package/dist/core/tools/grep.js +2 -2
  113. package/dist/core/tools/grep.js.map +1 -1
  114. package/dist/core/tools/ls.d.ts.map +1 -1
  115. package/dist/core/tools/ls.js +2 -2
  116. package/dist/core/tools/ls.js.map +1 -1
  117. package/dist/core/tools/read.d.ts.map +1 -1
  118. package/dist/core/tools/read.js +1 -1
  119. package/dist/core/tools/read.js.map +1 -1
  120. package/dist/core/tools/write.d.ts.map +1 -1
  121. package/dist/core/tools/write.js +3 -3
  122. package/dist/core/tools/write.js.map +1 -1
  123. package/dist/index.d.ts +1 -1
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js.map +1 -1
  126. package/dist/main.d.ts.map +1 -1
  127. package/dist/main.js +2 -0
  128. package/dist/main.js.map +1 -1
  129. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  130. package/dist/modes/interactive/components/scoped-models-selector.js +5 -11
  131. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  132. package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
  133. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  134. package/dist/modes/interactive/components/settings-selector.js +21 -8
  135. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  136. package/dist/modes/interactive/components/thinking-selector.js +2 -2
  137. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  138. package/dist/modes/interactive/components/trust-selector.js +2 -2
  139. package/dist/modes/interactive/components/trust-selector.js.map +1 -1
  140. package/dist/modes/interactive/grok/welcome-card.d.ts.map +1 -1
  141. package/dist/modes/interactive/grok/welcome-card.js +5 -2
  142. package/dist/modes/interactive/grok/welcome-card.js.map +1 -1
  143. package/dist/modes/interactive/interactive-mode.d.ts +3 -0
  144. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  145. package/dist/modes/interactive/interactive-mode.js +74 -14
  146. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  147. package/dist/modes/interactive/version-label.d.ts +7 -0
  148. package/dist/modes/interactive/version-label.d.ts.map +1 -0
  149. package/dist/modes/interactive/version-label.js +9 -0
  150. package/dist/modes/interactive/version-label.js.map +1 -0
  151. package/dist/utils/version-check.d.ts.map +1 -1
  152. package/dist/utils/version-check.js +3 -4
  153. package/dist/utils/version-check.js.map +1 -1
  154. package/docs/compaction.md +2 -0
  155. package/docs/environment-variables.md +5 -0
  156. package/docs/extensions.md +22 -2
  157. package/docs/keybindings.md +1 -1
  158. package/docs/models.md +3 -0
  159. package/docs/quickstart.md +1 -1
  160. package/docs/rpc.md +1 -1
  161. package/docs/settings.md +13 -6
  162. package/docs/terminal-setup.md +27 -0
  163. package/docs/usage.md +5 -3
  164. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +96 -0
  165. package/node_modules/@anthropic-ai/sdk/README.md +1 -1
  166. package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map +1 -1
  167. package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map +1 -1
  168. package/node_modules/@anthropic-ai/sdk/core/credentials.js +5 -7
  169. package/node_modules/@anthropic-ai/sdk/core/credentials.js.map +1 -1
  170. package/node_modules/@anthropic-ai/sdk/core/credentials.mjs +5 -7
  171. package/node_modules/@anthropic-ai/sdk/core/credentials.mjs.map +1 -1
  172. package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map +1 -1
  173. package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map +1 -1
  174. package/node_modules/@anthropic-ai/sdk/core/middleware.js +4 -4
  175. package/node_modules/@anthropic-ai/sdk/core/middleware.js.map +1 -1
  176. package/node_modules/@anthropic-ai/sdk/core/middleware.mjs +4 -4
  177. package/node_modules/@anthropic-ai/sdk/core/middleware.mjs.map +1 -1
  178. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.mts +45 -0
  179. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.mts.map +1 -0
  180. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.ts +45 -0
  181. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.d.ts.map +1 -0
  182. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.js +58 -0
  183. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.js.map +1 -0
  184. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.mjs +54 -0
  185. package/node_modules/@anthropic-ai/sdk/helpers/beta/standard-schema.mjs.map +1 -0
  186. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +1 -1
  187. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +1 -1
  188. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +1 -1
  189. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -1
  190. package/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +1 -1
  191. package/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +1 -1
  192. package/node_modules/@anthropic-ai/sdk/internal/errors.js +3 -1
  193. package/node_modules/@anthropic-ai/sdk/internal/errors.js.map +1 -1
  194. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs +3 -1
  195. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +1 -1
  196. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts.map +1 -1
  197. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts.map +1 -1
  198. package/node_modules/@anthropic-ai/sdk/internal/file-store.js +23 -25
  199. package/node_modules/@anthropic-ai/sdk/internal/file-store.js.map +1 -1
  200. package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +5 -6
  201. package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs.map +1 -1
  202. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.mts +9 -0
  203. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.mts.map +1 -0
  204. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.ts +9 -0
  205. package/node_modules/@anthropic-ai/sdk/internal/node.browser.d.ts.map +1 -0
  206. package/node_modules/@anthropic-ai/sdk/internal/node.browser.js +22 -0
  207. package/node_modules/@anthropic-ai/sdk/internal/node.browser.js.map +1 -0
  208. package/node_modules/@anthropic-ai/sdk/internal/node.browser.mjs +19 -0
  209. package/node_modules/@anthropic-ai/sdk/internal/node.browser.mjs.map +1 -0
  210. package/node_modules/@anthropic-ai/sdk/internal/node.d.mts +14 -0
  211. package/node_modules/@anthropic-ai/sdk/internal/node.d.mts.map +1 -0
  212. package/node_modules/@anthropic-ai/sdk/internal/node.d.ts +14 -0
  213. package/node_modules/@anthropic-ai/sdk/internal/node.d.ts.map +1 -0
  214. package/node_modules/@anthropic-ai/sdk/internal/node.js +24 -0
  215. package/node_modules/@anthropic-ai/sdk/internal/node.js.map +1 -0
  216. package/node_modules/@anthropic-ai/sdk/internal/node.mjs +14 -0
  217. package/node_modules/@anthropic-ai/sdk/internal/node.mjs.map +1 -0
  218. package/node_modules/@anthropic-ai/sdk/internal/parse.js +1 -1
  219. package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -1
  220. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +1 -1
  221. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -1
  222. package/node_modules/@anthropic-ai/sdk/internal/uploads.js +10 -6
  223. package/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +1 -1
  224. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +10 -6
  225. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -1
  226. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +6 -0
  227. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +1 -1
  228. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +6 -0
  229. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +1 -1
  230. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js +7 -0
  231. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +1 -1
  232. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +6 -0
  233. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -1
  234. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -1
  235. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -1
  236. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +6 -4
  237. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -1
  238. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +4 -2
  239. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -1
  240. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -1
  241. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -1
  242. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +3 -4
  243. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -1
  244. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +1 -2
  245. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -1
  246. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js +1 -1
  247. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js.map +1 -1
  248. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs +1 -1
  249. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs.map +1 -1
  250. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js +1 -1
  251. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js.map +1 -1
  252. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs +1 -1
  253. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs.map +1 -1
  254. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts.map +1 -1
  255. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts.map +1 -1
  256. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js +2 -3
  257. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js.map +1 -1
  258. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs +2 -3
  259. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs.map +1 -1
  260. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js +1 -1
  261. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js.map +1 -1
  262. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs +1 -1
  263. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs.map +1 -1
  264. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts.map +1 -1
  265. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts.map +1 -1
  266. package/node_modules/@anthropic-ai/sdk/lib/middleware.js +30 -7
  267. package/node_modules/@anthropic-ai/sdk/lib/middleware.js.map +1 -1
  268. package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +30 -7
  269. package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs.map +1 -1
  270. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts +3 -2
  271. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts.map +1 -1
  272. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts +3 -2
  273. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts.map +1 -1
  274. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js +3 -46
  275. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js.map +1 -1
  276. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs +3 -46
  277. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs.map +1 -1
  278. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.mts +131 -0
  279. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.mts.map +1 -0
  280. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.ts +131 -0
  281. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.d.ts.map +1 -0
  282. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.js +45 -0
  283. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.js.map +1 -0
  284. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.mjs +41 -0
  285. package/node_modules/@anthropic-ai/sdk/lib/standard-schema.mjs.map +1 -0
  286. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -1
  287. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -1
  288. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +35 -6
  289. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -1
  290. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +35 -6
  291. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -1
  292. package/node_modules/@anthropic-ai/sdk/package.json +4 -11
  293. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +1 -1
  294. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts.map +1 -1
  295. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts +1 -1
  296. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts.map +1 -1
  297. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js.map +1 -1
  298. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs.map +1 -1
  299. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +13 -9
  300. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -1
  301. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +13 -9
  302. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -1
  303. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +4 -0
  304. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -1
  305. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +4 -0
  306. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -1
  307. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +6 -6
  308. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts +6 -6
  309. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +3 -2
  310. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts.map +1 -1
  311. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts +3 -2
  312. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts.map +1 -1
  313. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +28 -1
  314. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts.map +1 -1
  315. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts +28 -1
  316. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts.map +1 -1
  317. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +8 -1
  318. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts.map +1 -1
  319. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts +8 -1
  320. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts.map +1 -1
  321. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js.map +1 -1
  322. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs.map +1 -1
  323. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +25 -5
  324. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -1
  325. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +25 -5
  326. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -1
  327. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +6 -6
  328. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -1
  329. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +7 -7
  330. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -1
  331. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +5 -4
  332. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -1
  333. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +5 -4
  334. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -1
  335. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +11 -9
  336. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -1
  337. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +1 -0
  338. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -1
  339. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +12 -9
  340. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts.map +1 -1
  341. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts +12 -9
  342. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts.map +1 -1
  343. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +8 -5
  344. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  345. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts +8 -5
  346. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  347. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +1 -1
  348. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -1
  349. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +1 -1
  350. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -1
  351. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -1
  352. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -1
  353. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +198 -29
  354. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -1
  355. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +198 -29
  356. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -1
  357. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -1
  358. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -1
  359. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.mts +177 -0
  360. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.mts.map +1 -0
  361. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.ts +177 -0
  362. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.ts.map +1 -0
  363. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.js +56 -0
  364. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.js.map +1 -0
  365. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.mjs +52 -0
  366. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.mjs.map +1 -0
  367. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.mts +74 -0
  368. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.mts.map +1 -0
  369. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.ts +74 -0
  370. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.ts.map +1 -0
  371. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.js +52 -0
  372. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.js.map +1 -0
  373. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.mjs +48 -0
  374. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.mjs.map +1 -0
  375. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.mts +272 -0
  376. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.mts.map +1 -0
  377. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.ts +272 -0
  378. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.ts.map +1 -0
  379. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.js +119 -0
  380. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.js.map +1 -0
  381. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.mjs +115 -0
  382. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.mjs.map +1 -0
  383. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.mts +14 -0
  384. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.mts.map +1 -0
  385. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.ts +14 -0
  386. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.ts.map +1 -0
  387. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.js +21 -0
  388. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.js.map +1 -0
  389. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.mjs +16 -0
  390. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.mjs.map +1 -0
  391. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.mts +4 -0
  392. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.mts.map +1 -0
  393. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.ts +4 -0
  394. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.ts.map +1 -0
  395. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.js +11 -0
  396. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.js.map +1 -0
  397. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.mjs +5 -0
  398. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.mjs.map +1 -0
  399. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.mts +353 -0
  400. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.mts.map +1 -0
  401. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.ts +353 -0
  402. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.ts.map +1 -0
  403. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.js +169 -0
  404. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.js.map +1 -0
  405. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.mjs +165 -0
  406. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.mjs.map +1 -0
  407. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.mts +3 -0
  408. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
  409. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.ts +3 -0
  410. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
  411. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.js +9 -0
  412. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.js.map +1 -0
  413. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.mjs +4 -0
  414. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.mjs.map +1 -0
  415. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.mts +468 -0
  416. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
  417. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.ts +468 -0
  418. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
  419. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.js +198 -0
  420. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.js.map +1 -0
  421. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.mjs +193 -0
  422. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
  423. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
  424. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
  425. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
  426. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
  427. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.js +114 -0
  428. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
  429. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
  430. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
  431. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.mts +2 -0
  432. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.mts.map +1 -0
  433. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.ts +2 -0
  434. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.d.ts.map +1 -0
  435. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.js +6 -0
  436. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.js.map +1 -0
  437. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.mjs +3 -0
  438. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.mjs.map +1 -0
  439. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.mts +2 -0
  440. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.mts.map +1 -0
  441. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.ts +2 -0
  442. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.d.ts.map +1 -0
  443. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.js +6 -0
  444. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.js.map +1 -0
  445. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.mjs +3 -0
  446. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.mjs.map +1 -0
  447. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.mts +11 -0
  448. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.mts.map +1 -0
  449. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.ts +11 -0
  450. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.ts.map +1 -0
  451. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.js +25 -0
  452. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.js.map +1 -0
  453. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.mjs +12 -0
  454. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.mjs.map +1 -0
  455. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.mts +162 -0
  456. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.mts.map +1 -0
  457. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.ts +162 -0
  458. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.ts.map +1 -0
  459. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.js +76 -0
  460. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.js.map +1 -0
  461. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.mjs +72 -0
  462. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.mjs.map +1 -0
  463. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.mts +73 -0
  464. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.mts.map +1 -0
  465. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.ts +73 -0
  466. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.ts.map +1 -0
  467. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.js +62 -0
  468. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.js.map +1 -0
  469. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.mjs +57 -0
  470. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.mjs.map +1 -0
  471. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.mts +77 -0
  472. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.mts.map +1 -0
  473. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.ts +77 -0
  474. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.ts.map +1 -0
  475. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.js +31 -0
  476. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.js.map +1 -0
  477. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.mjs +27 -0
  478. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.mjs.map +1 -0
  479. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.mts +3 -0
  480. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
  481. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.ts +3 -0
  482. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
  483. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.js +9 -0
  484. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.js.map +1 -0
  485. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.mjs +4 -0
  486. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.mjs.map +1 -0
  487. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
  488. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
  489. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
  490. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
  491. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.js +174 -0
  492. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
  493. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
  494. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
  495. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
  496. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
  497. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
  498. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
  499. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.js +125 -0
  500. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
  501. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
  502. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
  503. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.mts +2 -0
  504. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.mts.map +1 -0
  505. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.ts +2 -0
  506. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.d.ts.map +1 -0
  507. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.js +6 -0
  508. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.js.map +1 -0
  509. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.mjs +3 -0
  510. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.mjs.map +1 -0
  511. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.mts +124 -0
  512. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.mts.map +1 -0
  513. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.ts +124 -0
  514. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.ts.map +1 -0
  515. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.js +67 -0
  516. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.js.map +1 -0
  517. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.mjs +63 -0
  518. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.mjs.map +1 -0
  519. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.mts +5 -0
  520. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.mts.map +1 -0
  521. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.ts +5 -0
  522. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.ts.map +1 -0
  523. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.js +13 -0
  524. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.js.map +1 -0
  525. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.mjs +6 -0
  526. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.mjs.map +1 -0
  527. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.mts +135 -0
  528. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.mts.map +1 -0
  529. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.ts +135 -0
  530. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.ts.map +1 -0
  531. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.js +102 -0
  532. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.js.map +1 -0
  533. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.mjs +98 -0
  534. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.mjs.map +1 -0
  535. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.mts +83 -0
  536. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
  537. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.ts +83 -0
  538. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
  539. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.js +34 -0
  540. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
  541. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.mjs +30 -0
  542. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
  543. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
  544. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
  545. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
  546. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
  547. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.js +189 -0
  548. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
  549. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
  550. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
  551. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.mts +303 -0
  552. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
  553. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.ts +303 -0
  554. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
  555. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.js +112 -0
  556. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.js.map +1 -0
  557. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.mjs +107 -0
  558. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
  559. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.mts +2 -0
  560. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.mts.map +1 -0
  561. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.ts +2 -0
  562. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.d.ts.map +1 -0
  563. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.js +6 -0
  564. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.js.map +1 -0
  565. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.mjs +3 -0
  566. package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.mjs.map +1 -0
  567. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.mts +2 -0
  568. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.mts.map +1 -0
  569. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.ts +2 -0
  570. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.d.ts.map +1 -0
  571. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.js +6 -0
  572. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.js.map +1 -0
  573. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.mjs +3 -0
  574. package/node_modules/@anthropic-ai/sdk/resources/beta/organization.mjs.map +1 -0
  575. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +1 -1
  576. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts +1 -1
  577. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +10 -10
  578. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts +10 -10
  579. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +2 -1
  580. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts.map +1 -1
  581. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts +2 -1
  582. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts.map +1 -1
  583. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js.map +1 -1
  584. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs.map +1 -1
  585. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +2 -2
  586. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -1
  587. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +2 -2
  588. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -1
  589. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -1
  590. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -1
  591. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +48 -120
  592. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -1
  593. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +48 -120
  594. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -1
  595. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +12 -8
  596. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -1
  597. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +12 -8
  598. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -1
  599. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +35 -138
  600. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -1
  601. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +35 -138
  602. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -1
  603. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +18 -18
  604. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -1
  605. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +18 -18
  606. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -1
  607. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +21 -25
  608. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts.map +1 -1
  609. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts +21 -25
  610. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts.map +1 -1
  611. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +16 -17
  612. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts.map +1 -1
  613. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts +16 -17
  614. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts.map +1 -1
  615. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +21 -8
  616. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js.map +1 -1
  617. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +21 -8
  618. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs.map +1 -1
  619. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1 -3
  620. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -1
  621. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1 -3
  622. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -1
  623. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -1
  624. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -1
  625. package/node_modules/@anthropic-ai/sdk/src/core/credentials.ts +5 -7
  626. package/node_modules/@anthropic-ai/sdk/src/core/middleware.ts +4 -3
  627. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/standard-schema.ts +99 -0
  628. package/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +1 -1
  629. package/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +3 -1
  630. package/node_modules/@anthropic-ai/sdk/src/internal/file-store.ts +11 -10
  631. package/node_modules/@anthropic-ai/sdk/src/internal/node.browser.ts +22 -0
  632. package/node_modules/@anthropic-ai/sdk/src/internal/node.ts +14 -0
  633. package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +1 -1
  634. package/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +10 -7
  635. package/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +7 -0
  636. package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +5 -3
  637. package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +1 -3
  638. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/credential-chain.ts +1 -1
  639. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/identity-token.ts +1 -1
  640. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/types.ts +2 -3
  641. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/user-oauth.ts +1 -1
  642. package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +33 -9
  643. package/node_modules/@anthropic-ai/sdk/src/lib/sessions/accumulate.ts +7 -49
  644. package/node_modules/@anthropic-ai/sdk/src/lib/standard-schema.ts +209 -0
  645. package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +38 -6
  646. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +1 -0
  647. package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +45 -15
  648. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +6 -6
  649. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +3 -2
  650. package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +42 -0
  651. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +8 -1
  652. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +34 -11
  653. package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +13 -7
  654. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +12 -9
  655. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +8 -5
  656. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +5 -1
  657. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +221 -38
  658. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/api-keys.ts +231 -0
  659. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +96 -0
  660. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/external-keys.ts +365 -0
  661. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/federation.ts +71 -0
  662. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/index.ts +31 -0
  663. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/issuers.ts +486 -0
  664. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/index.ts +23 -0
  665. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/rules.ts +624 -0
  666. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
  667. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules.ts +3 -0
  668. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation.ts +3 -0
  669. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +92 -0
  670. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/invites.ts +207 -0
  671. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +269 -0
  672. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/rate-limits.ts +104 -0
  673. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/index.ts +21 -0
  674. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
  675. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
  676. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts.ts +3 -0
  677. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/users.ts +163 -0
  678. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/index.ts +43 -0
  679. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/members.ts +209 -0
  680. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/rate-limits.ts +113 -0
  681. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
  682. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/workspaces.ts +450 -0
  683. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces.ts +3 -0
  684. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization.ts +3 -0
  685. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +1 -1
  686. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +10 -10
  687. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +2 -1
  688. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +7 -10
  689. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +60 -150
  690. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +43 -166
  691. package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +24 -27
  692. package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +25 -29
  693. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +2 -8
  694. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +6 -5
  695. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/memories.ts +5 -3
  696. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.browser.ts +1 -5
  697. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +122 -17
  698. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/skills.ts +10 -43
  699. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
  700. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts.map +1 -1
  701. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts.map +1 -1
  702. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +13 -15
  703. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js.map +1 -1
  704. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +3 -4
  705. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs.map +1 -1
  706. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts.map +1 -1
  707. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts.map +1 -1
  708. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +6 -4
  709. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js.map +1 -1
  710. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +5 -3
  711. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs.map +1 -1
  712. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts +1 -2
  713. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts.map +1 -1
  714. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts +1 -2
  715. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts.map +1 -1
  716. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +0 -4
  717. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js.map +1 -1
  718. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs +0 -3
  719. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs.map +1 -1
  720. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +11 -9
  721. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts.map +1 -1
  722. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts +11 -9
  723. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts.map +1 -1
  724. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +96 -8
  725. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js.map +1 -1
  726. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +96 -7
  727. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs.map +1 -1
  728. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +0 -8
  729. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts.map +1 -1
  730. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts +0 -8
  731. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts.map +1 -1
  732. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +20 -46
  733. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js.map +1 -1
  734. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs +9 -33
  735. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs.map +1 -1
  736. package/node_modules/@anthropic-ai/sdk/version.d.mts +1 -1
  737. package/node_modules/@anthropic-ai/sdk/version.d.ts +1 -1
  738. package/node_modules/@anthropic-ai/sdk/version.js +1 -1
  739. package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
  740. package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +31 -0
  741. package/node_modules/@code-yeongyu/senpi-codemode/README.md +2 -0
  742. package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
  743. package/node_modules/@code-yeongyu/senpi-codemode/src/config/settings.ts +29 -0
  744. package/node_modules/@code-yeongyu/senpi-codemode/src/index.ts +3 -1
  745. package/node_modules/@code-yeongyu/senpi-codemode/src/prompt/eval-prompt.ts +24 -90
  746. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/cell-execution.ts +7 -0
  747. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool-options.ts +6 -0
  748. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool.ts +14 -2
  749. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/types.ts +10 -5
  750. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
  751. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +58 -64
  752. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
  753. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
  754. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +16 -6
  755. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
  756. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +1 -1
  757. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -1
  758. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +6 -1
  759. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -1
  760. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +1 -1
  761. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +1 -1
  762. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +2 -0
  763. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +1 -1
  764. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +40 -10
  765. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +1 -1
  766. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +6 -2
  767. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
  768. package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
  769. package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  770. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +1 -1
  771. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +1 -1
  772. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +130 -15
  773. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +1 -1
  774. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.d.ts +20 -0
  775. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.d.ts.map +1 -0
  776. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.js +40 -0
  777. package/node_modules/@earendil-works/pi-ai/dist/api/context-room.js.map +1 -0
  778. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +1 -1
  779. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +1 -1
  780. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +1 -1
  781. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +16 -1
  782. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +1 -1
  783. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +1 -1
  784. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +2 -1
  785. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +1 -1
  786. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +2 -0
  787. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts.map +1 -1
  788. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +6 -0
  789. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js.map +1 -1
  790. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts +1 -3
  791. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts.map +1 -1
  792. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +2 -16
  793. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js.map +1 -1
  794. package/node_modules/@earendil-works/pi-ai/dist/api/warm-prompt-cache.js +1 -1
  795. package/node_modules/@earendil-works/pi-ai/dist/api/warm-prompt-cache.js.map +1 -1
  796. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +1 -0
  797. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
  798. package/node_modules/@earendil-works/pi-ai/dist/index.js +1 -0
  799. package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -1
  800. package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
  801. package/node_modules/@earendil-works/pi-ai/dist/models.js +3 -2
  802. package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
  803. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.d.ts +2 -0
  804. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.d.ts.map +1 -1
  805. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.js.map +1 -1
  806. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  807. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  808. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  809. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  810. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  811. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  812. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  813. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  814. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  815. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  816. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  817. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  818. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts +1 -1
  819. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts.map +1 -1
  820. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +8 -1
  821. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js.map +1 -1
  822. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +14 -1
  823. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
  824. package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
  825. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.d.ts +23 -0
  826. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.d.ts.map +1 -0
  827. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.js +58 -0
  828. package/node_modules/@earendil-works/pi-ai/dist/utils/drop-failed-assistant-turns.js.map +1 -0
  829. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +1 -1
  830. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +53 -12
  831. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +1 -1
  832. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
  833. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +2 -0
  834. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
  835. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.d.ts +4 -2
  836. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.d.ts.map +1 -1
  837. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.js +3 -0
  838. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.js.map +1 -1
  839. package/node_modules/@earendil-works/pi-ai/package.json +3 -3
  840. package/node_modules/@earendil-works/pi-pty/package.json +1 -1
  841. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  842. package/node_modules/@earendil-works/pi-tui/README.md +1 -1
  843. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +1 -0
  844. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -1
  845. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
  846. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -1
  847. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +1 -1
  848. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
  849. package/node_modules/@earendil-works/pi-tui/dist/index.js +1 -1
  850. package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
  851. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +2 -0
  852. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -1
  853. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +106 -6
  854. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -1
  855. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +6 -0
  856. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
  857. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +17 -4
  858. package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
  859. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +11 -0
  860. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +1 -1
  861. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +57 -15
  862. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +1 -1
  863. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
  864. package/node_modules/@earendil-works/pi-tui/dist/tui.js +22 -7
  865. package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
  866. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  867. package/package.json +8 -8
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Formats a version string for user-facing display. Release versions (semver or
3
+ * CalVer, starting with a digit) render with a `v` prefix; branded build labels
4
+ * such as `omo@c6e7dd7 2026-09-04 10:17 +09:00` render verbatim.
5
+ */
6
+ export declare function formatDisplayVersion(version: string): string;
7
+ //# sourceMappingURL=version-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-label.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive/version-label.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5D"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Formats a version string for user-facing display. Release versions (semver or
3
+ * CalVer, starting with a digit) render with a `v` prefix; branded build labels
4
+ * such as `omo@c6e7dd7 2026-09-04 10:17 +09:00` render verbatim.
5
+ */
6
+ export function formatDisplayVersion(version) {
7
+ return /^[0-9]/.test(version) ? `v${version}` : version;
8
+ }
9
+ //# sourceMappingURL=version-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-label.js","sourceRoot":"","sources":["../../../src/modes/interactive/version-label.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe;IACnD,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AACzD,CAAC","sourcesContent":["/**\n * Formats a version string for user-facing display. Release versions (semver or\n * CalVer, starting with a digit) render with a `v` prefix; branded build labels\n * such as `omo@c6e7dd7 2026-09-04 10:17 +09:00` render verbatim.\n */\nexport function formatDisplayVersion(version: string): string {\n\treturn /^[0-9]/.test(version) ? `v${version}` : version;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../../src/utils/version-check.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAA0B,MAAM,kBAAkB,CAAC;AAcnF,kFAAkF;AAClF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAKlH;AAMD,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AASD,sFAAsF;AACtF,wBAAgB,uBAAuB,CAA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AE,OAAO,GAAG,MAAM,CAiB9D;AACD,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoBpG;AAED,wBAAgB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAK/F;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQ9D;AAED,wBAAsB,kBAAkB,CACvC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACnD,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAqCtC;AAED,wBAAsB,kBAAkB,CACvC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACnD,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;AAED,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAYvG"}
@@ -67,10 +67,9 @@ export function comparePackageVersions(leftVersion, rightVersion) {
67
67
  }
68
68
  export function isNewerPackageVersion(candidateVersion, currentVersion) {
69
69
  const comparison = comparePackageVersions(candidateVersion, currentVersion);
70
- if (comparison !== undefined) {
71
- return comparison > 0;
72
- }
73
- return candidateVersion.trim() !== currentVersion.trim();
70
+ // Unparseable pairs (e.g. branded build labels) are never "newer": an update
71
+ // we cannot order is not one we can advertise.
72
+ return comparison !== undefined && comparison > 0;
74
73
  }
75
74
  export function getReleaseChangelogUrl(version) {
76
75
  const trimmedVersion = version.trim();
@@ -1 +1 @@
1
- {"version":3,"file":"version-check.js","sourceRoot":"","sources":["../../src/utils/version-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACvC,cAAsB,EACtB,UAAmD,EAAE;IAErD,OAAO,CAAC,MAAM,kBAAkB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC;AACrE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,cAAsB;IAChE,IAAI,QAAQ,CAAC,oBAAoB,CAAC;QAAE,OAAO,SAAS,CAAC;IAErD,IAAI,CAAC;QACJ,MAAM,aAAa,GAAG,MAAM,kBAAkB,CAAC,cAAc,CAAC,CAAC;QAC/D,IAAI,aAAa,IAAI,qBAAqB,CAAC,aAAa,CAAC,OAAO,EAAE,cAAc,CAAC,EAAE,CAAC;YACnF,OAAO,aAAa,CAAC;QACtB,CAAC;QACD,OAAO,SAAS,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC","sourcesContent":["import { compare, valid } from \"semver\";\nimport { PACKAGE_NAME } from \"../config.ts\";\nimport { type BrandUpdateChannel, brandProfile, envValue } from \"../core/brand.ts\";\nimport { fetchWithRetry } from \"./management-http.ts\";\nimport { getPiUserAgent } from \"./pi-user-agent.ts\";\n\nconst REGISTRY_BASE_URL = \"https://registry.npmjs.org\";\nconst LATEST_VERSION_URL = `${REGISTRY_BASE_URL}/${encodeURIComponent(PACKAGE_NAME)}/latest`;\n\n/** Registry endpoint answering \"what version does this product publish right now?\". */\nfunction latestVersionUrl(channel: BrandUpdateChannel | undefined): string {\n\treturn channel\n\t\t? `${REGISTRY_BASE_URL}/-/package/${encodeURIComponent(channel.packageName)}/dist-tags`\n\t\t: LATEST_VERSION_URL;\n}\n\n/** Reads the available version out of whichever registry document was fetched. */\nexport function readAvailableVersion(payload: unknown, channel: BrandUpdateChannel | undefined): string | undefined {\n\tif (typeof payload !== \"object\" || payload === null) return undefined;\n\tconst source = payload as Record<string, unknown>;\n\tconst raw = channel ? source[channel.distTag] : source.version;\n\treturn typeof raw === \"string\" && raw.trim() ? raw.trim() : undefined;\n}\nconst DEFAULT_VERSION_CHECK_TIMEOUT_MS = 10000;\nconst RELEASE_CHANGELOG_BASE_URL = \"https://github.com/code-yeongyu/senpi/blob\";\nconst RELEASE_CHANGELOG_PATH = \"packages/coding-agent/CHANGELOG.md\";\nconst SENPI_CALVER_PATTERN = /^(\\d{4})\\.(\\d{1,2})\\.(\\d{1,2})(?:-([2-9]\\d*))?$/;\n\nexport interface LatestPiRelease {\n\tversion: string;\n\tpackageName?: string;\n\tnote?: string;\n}\n\nfunction parseSenpiCalVer(version: string): readonly [number, number, number, number] | undefined {\n\tconst match = SENPI_CALVER_PATTERN.exec(version);\n\tif (!match) {\n\t\treturn undefined;\n\t}\n\treturn [Number(match[1]), Number(match[2]), Number(match[3]), Number(match[4] ?? 1)];\n}\n/** Include useful errno details hidden behind Node's generic \"fetch failed\" error. */\nexport function formatVersionCheckError(error: unknown): string {\n\tconst rootMessage = error instanceof Error && error.message ? error.message : String(error);\n\tconst cause = error instanceof Error ? error.cause : undefined;\n\tconst causes = cause instanceof AggregateError ? cause.errors : cause === undefined ? [] : [cause];\n\tconst codes = causes\n\t\t.map((value) =>\n\t\t\ttypeof value === \"object\" && value !== null && \"code\" in value && typeof value.code === \"string\"\n\t\t\t\t? value.code\n\t\t\t\t: undefined,\n\t\t)\n\t\t.filter((code): code is string => code !== undefined);\n\n\tif (codes.length > 0) return `${rootMessage} (${[...new Set(codes)].join(\", \")})`;\n\tconst causeMessage = causes.find(\n\t\t(value): value is Error => value instanceof Error && Boolean(value.message),\n\t)?.message;\n\treturn causeMessage ? `${rootMessage} (cause: ${causeMessage})` : rootMessage;\n}\nexport function comparePackageVersions(leftVersion: string, rightVersion: string): number | undefined {\n\tconst leftTrimmed = leftVersion.trim();\n\tconst rightTrimmed = rightVersion.trim();\n\tconst leftCalVer = parseSenpiCalVer(leftTrimmed);\n\tconst rightCalVer = parseSenpiCalVer(rightTrimmed);\n\tif (leftCalVer && rightCalVer) {\n\t\tfor (let index = 0; index < leftCalVer.length; index++) {\n\t\t\tif (leftCalVer[index] !== rightCalVer[index]) {\n\t\t\t\treturn leftCalVer[index] < rightCalVer[index] ? -1 : 1;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\tconst left = valid(leftTrimmed);\n\tconst right = valid(rightTrimmed);\n\tif (!left || !right) {\n\t\treturn undefined;\n\t}\n\treturn compare(left, right);\n}\n\nexport function isNewerPackageVersion(candidateVersion: string, currentVersion: string): boolean {\n\tconst comparison = comparePackageVersions(candidateVersion, currentVersion);\n\tif (comparison !== undefined) {\n\t\treturn comparison > 0;\n\t}\n\treturn candidateVersion.trim() !== currentVersion.trim();\n}\n\nexport function getReleaseChangelogUrl(version: string): string {\n\tconst trimmedVersion = version.trim();\n\tconst channel = brandProfile()?.update;\n\tif (channel?.changelogUrl) {\n\t\treturn channel.changelogUrl.replace(\"{version}\", trimmedVersion);\n\t}\n\tconst tag = trimmedVersion.startsWith(\"v\") ? trimmedVersion : `v${trimmedVersion}`;\n\treturn `${RELEASE_CHANGELOG_BASE_URL}/${tag}/${RELEASE_CHANGELOG_PATH}`;\n}\n\nexport async function getLatestPiRelease(\n\tcurrentVersion: string,\n\toptions: { timeoutMs?: number; retry?: boolean } = {},\n): Promise<LatestPiRelease | undefined> {\n\tif (envValue(\"OFFLINE\")) return undefined;\n\n\tconst brand = brandProfile();\n\tconst channel = brand?.update;\n\tif (brand && !channel) {\n\t\t// The engine's own releases are not installable from inside a branded distribution, so\n\t\t// advertising them would send the user after an update they cannot apply.\n\t\treturn undefined;\n\t}\n\tconst response = await fetchWithRetry(\n\t\tlatestVersionUrl(channel),\n\t\t{\n\t\t\theaders: {\n\t\t\t\t\"User-Agent\": getPiUserAgent(currentVersion),\n\t\t\t\taccept: \"application/json\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tmaxRetries: options.retry ? 2 : 0,\n\t\t\ttimeoutMs: options.timeoutMs ?? DEFAULT_VERSION_CHECK_TIMEOUT_MS,\n\t\t},\n\t);\n\tif (!response.ok) return undefined;\n\n\tconst data = (await response.json()) as { packageName?: unknown; version?: unknown; note?: unknown };\n\tconst availableVersion = readAvailableVersion(data, channel);\n\tif (!availableVersion) {\n\t\treturn undefined;\n\t}\n\tif (channel) {\n\t\treturn { version: availableVersion, packageName: channel.packageName };\n\t}\n\tconst packageName =\n\t\ttypeof data.packageName === \"string\" && data.packageName.trim() ? data.packageName.trim() : undefined;\n\tconst note = typeof data.note === \"string\" && data.note.trim() ? data.note.trim() : undefined;\n\treturn { version: availableVersion, packageName, note };\n}\n\nexport async function getLatestPiVersion(\n\tcurrentVersion: string,\n\toptions: { timeoutMs?: number; retry?: boolean } = {},\n): Promise<string | undefined> {\n\treturn (await getLatestPiRelease(currentVersion, options))?.version;\n}\n\nexport async function checkForNewPiVersion(currentVersion: string): Promise<LatestPiRelease | undefined> {\n\tif (envValue(\"SKIP_VERSION_CHECK\")) return undefined;\n\n\ttry {\n\t\tconst latestRelease = await getLatestPiRelease(currentVersion);\n\t\tif (latestRelease && isNewerPackageVersion(latestRelease.version, currentVersion)) {\n\t\t\treturn latestRelease;\n\t\t}\n\t\treturn undefined;\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"]}
1
+ {"version":3,"file":"version-check.js","sourceRoot":"","sources":["../../src/utils/version-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAA2B,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AACvD,MAAM,kBAAkB,GAAG,GAAG,iBAAiB,IAAI,kBAAkB,C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cAAc,CAAC,EAAE,CAAC;YACnF,OAAO,aAAa,CAAC;QACtB,CAAC;QACD,OAAO,SAAS,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC","sourcesContent":["import { compare, valid } from \"semver\";\nimport { PACKAGE_NAME } from \"../config.ts\";\nimport { type BrandUpdateChannel, brandProfile, envValue } from \"../core/brand.ts\";\nimport { fetchWithRetry } from \"./management-http.ts\";\nimport { getPiUserAgent } from \"./pi-user-agent.ts\";\n\nconst REGISTRY_BASE_URL = \"https://registry.npmjs.org\";\nconst LATEST_VERSION_URL = `${REGISTRY_BASE_URL}/${encodeURIComponent(PACKAGE_NAME)}/latest`;\n\n/** Registry endpoint answering \"what version does this product publish right now?\". */\nfunction latestVersionUrl(channel: BrandUpdateChannel | undefined): string {\n\treturn channel\n\t\t? `${REGISTRY_BASE_URL}/-/package/${encodeURIComponent(channel.packageName)}/dist-tags`\n\t\t: LATEST_VERSION_URL;\n}\n\n/** Reads the available version out of whichever registry document was fetched. */\nexport function readAvailableVersion(payload: unknown, channel: BrandUpdateChannel | undefined): string | undefined {\n\tif (typeof payload !== \"object\" || payload === null) return undefined;\n\tconst source = payload as Record<string, unknown>;\n\tconst raw = channel ? source[channel.distTag] : source.version;\n\treturn typeof raw === \"string\" && raw.trim() ? raw.trim() : undefined;\n}\nconst DEFAULT_VERSION_CHECK_TIMEOUT_MS = 10000;\nconst RELEASE_CHANGELOG_BASE_URL = \"https://github.com/code-yeongyu/senpi/blob\";\nconst RELEASE_CHANGELOG_PATH = \"packages/coding-agent/CHANGELOG.md\";\nconst SENPI_CALVER_PATTERN = /^(\\d{4})\\.(\\d{1,2})\\.(\\d{1,2})(?:-([2-9]\\d*))?$/;\n\nexport interface LatestPiRelease {\n\tversion: string;\n\tpackageName?: string;\n\tnote?: string;\n}\n\nfunction parseSenpiCalVer(version: string): readonly [number, number, number, number] | undefined {\n\tconst match = SENPI_CALVER_PATTERN.exec(version);\n\tif (!match) {\n\t\treturn undefined;\n\t}\n\treturn [Number(match[1]), Number(match[2]), Number(match[3]), Number(match[4] ?? 1)];\n}\n/** Include useful errno details hidden behind Node's generic \"fetch failed\" error. */\nexport function formatVersionCheckError(error: unknown): string {\n\tconst rootMessage = error instanceof Error && error.message ? error.message : String(error);\n\tconst cause = error instanceof Error ? error.cause : undefined;\n\tconst causes = cause instanceof AggregateError ? cause.errors : cause === undefined ? [] : [cause];\n\tconst codes = causes\n\t\t.map((value) =>\n\t\t\ttypeof value === \"object\" && value !== null && \"code\" in value && typeof value.code === \"string\"\n\t\t\t\t? value.code\n\t\t\t\t: undefined,\n\t\t)\n\t\t.filter((code): code is string => code !== undefined);\n\n\tif (codes.length > 0) return `${rootMessage} (${[...new Set(codes)].join(\", \")})`;\n\tconst causeMessage = causes.find(\n\t\t(value): value is Error => value instanceof Error && Boolean(value.message),\n\t)?.message;\n\treturn causeMessage ? `${rootMessage} (cause: ${causeMessage})` : rootMessage;\n}\nexport function comparePackageVersions(leftVersion: string, rightVersion: string): number | undefined {\n\tconst leftTrimmed = leftVersion.trim();\n\tconst rightTrimmed = rightVersion.trim();\n\tconst leftCalVer = parseSenpiCalVer(leftTrimmed);\n\tconst rightCalVer = parseSenpiCalVer(rightTrimmed);\n\tif (leftCalVer && rightCalVer) {\n\t\tfor (let index = 0; index < leftCalVer.length; index++) {\n\t\t\tif (leftCalVer[index] !== rightCalVer[index]) {\n\t\t\t\treturn leftCalVer[index] < rightCalVer[index] ? -1 : 1;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\tconst left = valid(leftTrimmed);\n\tconst right = valid(rightTrimmed);\n\tif (!left || !right) {\n\t\treturn undefined;\n\t}\n\treturn compare(left, right);\n}\n\nexport function isNewerPackageVersion(candidateVersion: string, currentVersion: string): boolean {\n\tconst comparison = comparePackageVersions(candidateVersion, currentVersion);\n\t// Unparseable pairs (e.g. branded build labels) are never \"newer\": an update\n\t// we cannot order is not one we can advertise.\n\treturn comparison !== undefined && comparison > 0;\n}\n\nexport function getReleaseChangelogUrl(version: string): string {\n\tconst trimmedVersion = version.trim();\n\tconst channel = brandProfile()?.update;\n\tif (channel?.changelogUrl) {\n\t\treturn channel.changelogUrl.replace(\"{version}\", trimmedVersion);\n\t}\n\tconst tag = trimmedVersion.startsWith(\"v\") ? trimmedVersion : `v${trimmedVersion}`;\n\treturn `${RELEASE_CHANGELOG_BASE_URL}/${tag}/${RELEASE_CHANGELOG_PATH}`;\n}\n\nexport async function getLatestPiRelease(\n\tcurrentVersion: string,\n\toptions: { timeoutMs?: number; retry?: boolean } = {},\n): Promise<LatestPiRelease | undefined> {\n\tif (envValue(\"OFFLINE\")) return undefined;\n\n\tconst brand = brandProfile();\n\tconst channel = brand?.update;\n\tif (brand && !channel) {\n\t\t// The engine's own releases are not installable from inside a branded distribution, so\n\t\t// advertising them would send the user after an update they cannot apply.\n\t\treturn undefined;\n\t}\n\tconst response = await fetchWithRetry(\n\t\tlatestVersionUrl(channel),\n\t\t{\n\t\t\theaders: {\n\t\t\t\t\"User-Agent\": getPiUserAgent(currentVersion),\n\t\t\t\taccept: \"application/json\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tmaxRetries: options.retry ? 2 : 0,\n\t\t\ttimeoutMs: options.timeoutMs ?? DEFAULT_VERSION_CHECK_TIMEOUT_MS,\n\t\t},\n\t);\n\tif (!response.ok) return undefined;\n\n\tconst data = (await response.json()) as { packageName?: unknown; version?: unknown; note?: unknown };\n\tconst availableVersion = readAvailableVersion(data, channel);\n\tif (!availableVersion) {\n\t\treturn undefined;\n\t}\n\tif (channel) {\n\t\treturn { version: availableVersion, packageName: channel.packageName };\n\t}\n\tconst packageName =\n\t\ttypeof data.packageName === \"string\" && data.packageName.trim() ? data.packageName.trim() : undefined;\n\tconst note = typeof data.note === \"string\" && data.note.trim() ? data.note.trim() : undefined;\n\treturn { version: availableVersion, packageName, note };\n}\n\nexport async function getLatestPiVersion(\n\tcurrentVersion: string,\n\toptions: { timeoutMs?: number; retry?: boolean } = {},\n): Promise<string | undefined> {\n\treturn (await getLatestPiRelease(currentVersion, options))?.version;\n}\n\nexport async function checkForNewPiVersion(currentVersion: string): Promise<LatestPiRelease | undefined> {\n\tif (envValue(\"SKIP_VERSION_CHECK\")) return undefined;\n\n\ttry {\n\t\tconst latestRelease = await getLatestPiRelease(currentVersion);\n\t\tif (latestRelease && isNewerPackageVersion(latestRelease.version, currentVersion)) {\n\t\t\treturn latestRelease;\n\t\t}\n\t\treturn undefined;\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"]}
@@ -34,6 +34,8 @@ contextTokens > contextWindow - reserveTokens
34
34
 
35
35
  By default, `reserveTokens` is 16384 tokens (configurable in `~/.senpi/agent/settings.json` or `<project-dir>/.senpi/settings.json`). This leaves room for the LLM's response.
36
36
 
37
+ During a multi-turn agent run, Pi checks this threshold after tools finish and their results are appended, before starting the next assistant response. If the threshold is crossed, Pi compacts inside the same agent run and resumes with the summary and retained messages. It skips this between-turn check when the completed tool batch terminates the run and no queued message requires another response. Pi also checks the threshold before a new user prompt and after a low-level agent run ends.
38
+
37
39
  You can also trigger manually with `/compact [instructions]`, where optional instructions focus the summary.
38
40
 
39
41
  ### How It Works
@@ -87,6 +87,11 @@ These variables are read by Pi itself:
87
87
  | `PI_CACHE_RETENTION` | Set to `long` to opt into extended provider prompt caching where supported; direct Anthropic defaults to 5 minutes |
88
88
  | `PI_SHARE_VIEWER_URL` | Override the base URL used by `/share` |
89
89
  | `PI_HARDWARE_CURSOR` | Set to `1` to show the hardware cursor; see [Terminal setup](terminal-setup.md) |
90
+ | `PI_HYPERLINKS` | Override OSC 8 hyperlink detection with `1`, `0`, or `auto` |
91
+ | `PI_IMAGE_PROTOCOL` | Override inline image detection with `kitty`, `iterm2`, `none`, or `auto` |
92
+ | `PI_TRUE_COLOR` | Override truecolor detection with `1`, `0`, or `auto` |
93
+
94
+ `SENPI_HYPERLINKS`, `SENPI_IMAGE_PROTOCOL`, and `SENPI_TRUE_COLOR` are equivalent capability overrides for branded Senpi distributions. They take precedence over the legacy `PI_*` names when both are set; explicit settings in the terminal configuration take precedence over either environment variable. The image protocol accepts `kitty`, `iterm2`, `none`, or `auto`.
90
95
  | `PI_TUI_ESC_TIMEOUT` | How long to wait after a lone ESC before treating it as Escape, in milliseconds; defaults to `100` over SSH and `10` otherwise. Increase if Alt-key input is misread as Escape |
91
96
  | `SENPI_RECOVER_INSPECTOR_VM_IMPORT` | Set to `1` at process start to keep the TUI running when a Node Inspector (`node inspect` / `--inspect`) eval uses dynamic `import()`, which Node rejects with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`. Recovery applies only to that exact Inspector-originated rejection while an Inspector endpoint is active; all other uncaught errors remain fatal. Use `require()` or a target-side loader in Inspector evals instead |
92
97
  | `VISUAL`, `EDITOR` | External editor fallback when `externalEditor` is unset |
@@ -650,6 +650,24 @@ pi.on("agent_settled", async (_event, ctx) => {
650
650
  });
651
651
  ```
652
652
 
653
+ #### ui_prompt_start / ui_prompt_end
654
+
655
+ Notification-only lifecycle events for blocking user-facing extension UI prompts. They fire around `ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`, `ctx.ui.editor()`, and `ctx.ui.custom()` so host/status integrations can report "waiting for user" instead of just "running".
656
+
657
+ Nested or overlapping prompts are coalesced into one outer waiting span. Handlers are invoked best-effort and are not awaited before showing or closing the prompt.
658
+
659
+ ```typescript
660
+ pi.on("ui_prompt_start", async (event, ctx) => {
661
+ // event.reason === "ui_prompt"
662
+ // event.kind: "select" | "confirm" | "input" | "editor" | "custom"
663
+ // event.title: prompt title when available
664
+ });
665
+
666
+ pi.on("ui_prompt_end", async (event, ctx) => {
667
+ // Pi is no longer waiting on that UI prompt span.
668
+ });
669
+ ```
670
+
653
671
  #### turn_start / turn_end
654
672
 
655
673
  Fired for each turn (one LLM response + tool calls).
@@ -1920,7 +1938,7 @@ Typical `sourceInfo.source` values:
1920
1938
 
1921
1939
  ### pi.setModel(model)
1922
1940
 
1923
- Set the current model. Returns `false` if no API key is available for the model. See [models.md](models.md) for configuring custom models.
1941
+ Set the model for the current session. The change is recorded in session history and restored when that session is resumed, but it does not change the configured `defaultProvider` or `defaultModel` used by new sessions. Returns `false` if authentication is not configured for the model's provider. See [models.md](models.md) for configuring custom models.
1924
1942
 
1925
1943
  ```typescript
1926
1944
  const model = ctx.modelRegistry.find("anthropic", "claude-sonnet-4-5");
@@ -1934,7 +1952,9 @@ if (model) {
1934
1952
 
1935
1953
  ### pi.getThinkingLevel() / pi.setThinkingLevel(level)
1936
1954
 
1937
- Get or set the thinking level. Level is clamped to model capabilities (non-reasoning models always use "off"). Changes emit `thinking_level_select`.
1955
+ Get the current thinking level. Level is clamped to model capabilities (non-reasoning models always use "off"). Changes emit `thinking_level_select`.
1956
+
1957
+ `pi.setThinkingLevel()` changes the thinking level for the current session. The change is recorded in session history and restored when that session is resumed, but it does not change the configured default used by new sessions.
1938
1958
 
1939
1959
  ```typescript
1940
1960
  const current = pi.getThinkingLevel(); // "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
@@ -158,7 +158,7 @@ This routing remains configurable through the ordinary action bindings. For exam
158
158
  | Keybinding id | Default | Description |
159
159
  |--------|---------|-------------|
160
160
  | `app.tools.expand` | `ctrl+o` | Collapse or expand tool output |
161
- | `app.message.copy` | `ctrl+x` | Copy the last assistant message, or the selected message in `/tree` |
161
+ | `app.message.copy` | `ctrl+x` | Copy the selected message in `/tree`; otherwise copy the last assistant message, or the active fullscreen text selection when `fullscreenCopyOnSelect` is disabled |
162
162
  | `app.message.followUp` | `alt+enter` | Queue follow-up message |
163
163
  | `app.message.dequeue` | `alt+up` | Restore queued messages to editor |
164
164
 
package/docs/models.md CHANGED
@@ -497,6 +497,8 @@ By default senpi sends per-tool `eager_input_streaming: true`. If a proxy or Ant
497
497
 
498
498
  Some Anthropic models require adaptive thinking (`thinking.type: "adaptive"` plus `output_config.effort`) instead of the legacy budget-based thinking payload. Built-in models set this automatically. For custom providers or aliases that route to those models, set `forceAdaptiveThinking` to `true`.
499
499
 
500
+ Claude models with per-turn effort support use `supportsMidConvoEffort`. Pi then persists each response's provider effort, reconstructs effort-only system messages on later requests, and sends thinking binding controls with `prefix_mismatch_behavior: "drop_block"` to avoid stale signed-thinking prefixes causing persistent 400 responses. Set this only for the exact supported Claude model on a faithful Anthropic Messages transport; do not enable it for APIs that merely imitate the Messages shape.
501
+
500
502
  Some Anthropic-compatible providers emit thinking blocks with empty signatures and still expect them on replay. Set `allowEmptySignature` to `true` only for those providers; real Anthropic rejects empty thinking signatures.
501
503
 
502
504
  Built-in Anthropic models enable `supportsStrictTools` in their model metadata. Custom Anthropic-compatible models must set it to `true` when their endpoint accepts strict JSON-schema tool definitions.
@@ -533,6 +535,7 @@ Built-in Anthropic models enable `supportsStrictTools` in their model metadata.
533
535
  | `sendSessionAffinityHeaders` | Whether to send `x-session-affinity` from the session id when caching is enabled. Default: auto-detected for known providers. |
534
536
  | `supportsCacheControlOnTools` | Whether the provider accepts Anthropic-style `cache_control` markers on tool definitions. Default: `true`. |
535
537
  | `forceAdaptiveThinking` | Whether to send adaptive thinking (`thinking.type: "adaptive"` plus `output_config.effort`) for this model. Built-in adaptive models set this automatically. Default: `false`. |
538
+ | `supportsMidConvoEffort` | Whether the exact Claude model transport supports per-turn effort system messages and thinking binding controls. Pi persists native effort levels and always sends `drop_block` when enabled. Default: `false`. |
536
539
  | `allowEmptySignature` | Whether to replay empty thinking signatures as `signature: ""` instead of converting thinking to text. Default: `false`. |
537
540
  | `supportsStrictTools` | Whether the provider accepts strict JSON-schema tool definitions. Default: `false`; built-in Anthropic models enable it in generated metadata. |
538
541
 
@@ -130,7 +130,7 @@ The command output is sent to the model. Use `!!command` to run a command withou
130
130
 
131
131
  ### Switch models
132
132
 
133
- Use `/model` or Ctrl+L to choose a model. Use Shift+Tab to cycle thinking level. Use Ctrl+P / Shift+Ctrl+P to cycle through favorite models.
133
+ Use `/model` or Ctrl+L to choose a model for the current session. Press Ctrl+S in the model picker to save the highlighted model as the startup default. Use `/thinking` to choose a thinking level for the current session, or Ctrl+S in that picker to save the startup default thinking level. Use Shift+Tab to cycle thinking level. Use Ctrl+P / Shift+Ctrl+P to cycle through favorite models.
134
134
 
135
135
  ### Continue later
136
136
 
package/docs/rpc.md CHANGED
@@ -361,7 +361,7 @@ See [set_follow_up_mode](#set_follow_up_mode) for controlling how follow-up mess
361
361
 
362
362
  #### abort
363
363
 
364
- Abort the current agent operation.
364
+ Abort the current operation and wait for the session to become idle before responding.
365
365
 
366
366
  ```json
367
367
  {"type": "abort"}
package/docs/settings.md CHANGED
@@ -7,7 +7,7 @@ Senpi uses JSON settings files with project settings overriding global settings.
7
7
  | `~/.senpi/agent/settings.json` | Global (all projects) |
8
8
  | `.senpi/settings.json` | Project (current directory) |
9
9
 
10
- Edit directly or use `/settings` for common options.
10
+ Edit directly or use `/settings` for common options. To save startup model defaults interactively, use `/model` and press Ctrl+S on the desired model. To save the startup thinking level, use `/thinking` and press Ctrl+S.
11
11
 
12
12
  ## Project Trust
13
13
 
@@ -81,15 +81,15 @@ Permission rules are a confirmation policy, not a sandbox. Senpi, extensions, pa
81
81
 
82
82
  | Setting | Type | Default | Description |
83
83
  |---------|------|---------|-------------|
84
- | `defaultProvider` | string | - | Default provider (e.g., `"anthropic"`, `"openai"`) |
85
- | `defaultModel` | string | - | Default model ID |
86
- | `defaultThinkingLevel` | string | - | `"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`, `"max"` |
84
+ | `defaultProvider` | string | - | Startup provider (e.g., `"anthropic"`, `"openai"`; saved with Ctrl+S in `/model`, or edited manually) |
85
+ | `defaultModel` | string | - | Startup model ID (saved with Ctrl+S in `/model`, or edited manually) |
86
+ | `defaultThinkingLevel` | string | - | Startup thinking level (saved with Ctrl+S in `/thinking`, or edited manually): `"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`, `"max"` |
87
87
  | `modelThinkingLevels` | object | - | Per-model reasoning effort memory (`"provider/id": "level"`) |
88
88
  | `modelLastOnThinkingLevels` | object | - | Per-model last non-off reasoning level, used by `/reasoning on` to restore the previous effort |
89
89
  | `modelServiceTiers` | object | - | Per-model service tier memory (`"provider/id": "auto" \| "priority"`) |
90
- | `promptPreset` | string | `"auto"` | Force a system prompt preset: `"auto"`, `"kimi-k2-6"`, `"kimi-k2-7"`, `"kimi-k3"`, `"glm-5.2"`, `"glm-5.3"`, `"grok-4.5"`, `"grok-4.6"`, `"claude-fable-5"`, `"claude-fable-5-1"`, `"claude-opus-5"`, `"claude-opus-4-5"`, `"claude-opus-4-6"`, `"claude-opus-4-7"`, `"claude-opus-4-8"`, `"deepseek-v4-flash"`, `"deepseek-v4-flash-0731"`, `"deepseek-v4-pro"`, `"gpt-5"`, `"gpt-5.2"`, `"gpt-5.3-codex"`, `"gpt-5.4"`, `"gpt-5.5"`, or `"gpt-5.6"` |
90
+ | `promptPreset` | string | `"auto"` | Force a system prompt preset: `"auto"`, `"kimi-k2-6"`, `"kimi-k2-7"`, `"kimi-k3"`, `"glm-5.2"`, `"glm-5.3"`, `"grok-4.5"`, `"grok-4.6"`, `"claude-fable-5"`, `"claude-fable-5-1"`, `"claude-opus-5"`, `"claude-opus-4-5"`, `"claude-opus-4-6"`, `"claude-opus-4-7"`, `"claude-opus-4-8"`, `"deepseek-v4-flash"`, `"deepseek-v4-flash-0731"`, `"deepseek-v4-pro"`, `"gpt-5"`, `"gpt-5.2"`, `"gpt-5.3-codex"`, `"gpt-5.4"`, `"gpt-5.5"`, `"gpt-5.6"`, or `"gpt-6-astra"` |
91
91
  | `hideThinkingBlock` | boolean | `false` | Hide thinking blocks in output |
92
- | `showCacheMissNotices` | boolean | `false` | Show transcript notices for significant prompt-cache misses and compaction or branch-summary usage |
92
+ | `showCacheMissNotices` | boolean | `false` | Show transcript notices for significant prompt-cache misses, compaction or branch-summary usage, and provider recovery diagnostics such as dropped Anthropic thinking blocks |
93
93
  | `thinkingBudgets` | object | - | Custom token budgets per thinking level. Anthropic, Google, and Bedrock use these natively. OpenAI-compatible models use them when `compat.thinkingTokenBudgetField` (or `supportsThinkingTokenBudget`) is set. |
94
94
 
95
95
  #### promptPreset
@@ -141,6 +141,7 @@ When this value is anything other than `"auto"`, it overrides any model-level `p
141
141
  | `tuiMode` | string | `"regular"` | Interactive TUI mode: `"regular"` or experimental `"fullscreen"`. Changes from `/settings` apply immediately; `--tui-mode` overrides this setting at startup |
142
142
  | `fullscreenExitOutput` | string | `"transcript"` | Fullscreen exit output: `"transcript"` prints the final transcript and resume hint, while `"resume-hint"` restores the previous screen and prints only the resume hint. Has no effect in regular TUI mode |
143
143
  | `fullscreenScrollbar` | string | `"auto"` | Fullscreen transcript scrollbar: `"auto"` shows it temporarily while scrolling, `"always"` reserves the rightmost column and keeps it visible, and `"hidden"` hides it. Has no effect in regular TUI mode |
144
+ | `fullscreenCopyOnSelect` | boolean | `true` | Automatically copy selected text in fullscreen mode. When disabled, selections stay highlighted and `Ctrl+X` copies the active selection |
144
145
 
145
146
  For VS Code, include `--wait` so senpi resumes after the editor exits:
146
147
 
@@ -346,6 +347,9 @@ Both ambient-auth providers are explicit opt-in: a vendor CLI being logged in on
346
347
  | `terminal.showImages` | boolean | `true` | Show images in terminal (if supported) |
347
348
  | `terminal.imageWidthCells` | number | `60` | Preferred inline image width in terminal cells |
348
349
  | `terminal.clearOnShrink` | boolean | `false` | Clear empty rows when content shrinks (can cause flicker) |
350
+ | `terminal.hyperlinks` | boolean or `"auto"` | `"auto"` | Override OSC 8 hyperlink support (advanced, JSON-only) |
351
+ | `terminal.images` | string or boolean | `"auto"` | Override image protocol support with `"kitty"`, `"iterm2"`, `false`, or `"auto"` (advanced, JSON-only) |
352
+ | `terminal.trueColor` | boolean or `"auto"` | `"auto"` | Override truecolor support (advanced, JSON-only) |
349
353
  | `images.autoResize` | boolean | `true` | Resize images to 2000x2000 max. Applies to `@file` attachments, `read`, and images returned by tools |
350
354
  | `images.blockImages` | boolean | `false` | Block all images from being sent to LLM |
351
355
 
@@ -575,6 +579,9 @@ See [packages.md](packages.md) for package management details.
575
579
  "defaultProvider": "anthropic",
576
580
  "defaultModel": "claude-sonnet-4-20250514",
577
581
  "defaultThinkingLevel": "medium",
582
+ "modelThinkingLevels": {
583
+ "anthropic/claude-sonnet-4-20250514": "high"
584
+ },
578
585
  "theme": "dark",
579
586
  "compaction": {
580
587
  "enabled": true,
@@ -2,6 +2,18 @@
2
2
 
3
3
  Pi uses the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/) for reliable modifier key detection. Most modern terminals support this protocol, but some require configuration.
4
4
 
5
+ ## Capability Overrides
6
+
7
+ Pi auto-detects OSC 8 hyperlinks, inline image protocols, and truecolor. If detection fails behind a terminal proxy or multiplexer, use these advanced overrides:
8
+
9
+ | Capability | Environment variable | JSON setting |
10
+ |------------|----------------------|--------------|
11
+ | OSC 8 hyperlinks | `PI_HYPERLINKS=1\|0\|auto` | `terminal.hyperlinks: true\|false\|"auto"` |
12
+ | Inline images | `PI_IMAGE_PROTOCOL=kitty\|iterm2\|none\|auto` | `terminal.images: "kitty"\|"iterm2"\|false\|"auto"` |
13
+ | Truecolor | `PI_TRUE_COLOR=1\|0\|auto` | `terminal.trueColor: true\|false\|"auto"` |
14
+
15
+ Settings take precedence over environment variables; unset or `auto` preserves detection. Only force capabilities supported by the complete terminal path, since unsupported escape sequences can corrupt rendering.
16
+
5
17
  ## Kitty
6
18
 
7
19
  Works out of the box.
@@ -118,6 +130,21 @@ Add to `keybindings.json`:
118
130
  }
119
131
  ```
120
132
 
133
+ ## Zed (Integrated Terminal)
134
+
135
+ Add these key bindings to your Zed `keymap.json`:
136
+
137
+ ```json
138
+ {
139
+ "context": "Terminal",
140
+ "bindings": {
141
+ "shift-enter": ["terminal::SendText", "\u001b[13;2u"],
142
+ "ctrl--": ["terminal::SendText", "\u001b[45;5u"],
143
+ "ctrl-alt-]": ["terminal::SendText", "\u001b[93;7u"]
144
+ }
145
+ }
146
+ ```
147
+
121
148
  ## Windows Terminal
122
149
 
123
150
  Pi uses Windows-style keybindings when running natively on Windows or in WSL:
package/docs/usage.md CHANGED
@@ -22,10 +22,11 @@ The editor can be replaced temporarily by built-in UI such as `/settings` or by
22
22
  | File reference | Type `@` to fuzzy-search project files |
23
23
  | Path completion | Press Tab to complete paths |
24
24
  | Multi-line input | Shift+Enter, or Ctrl+Enter on Windows Terminal |
25
- | Copy response | Ctrl+X copies the last assistant message; in `/tree`, it copies the selected message |
25
+ | Copy response | Ctrl+X copies the selected message in `/tree`; otherwise it copies the last assistant message, or the active fullscreen text selection when `fullscreenCopyOnSelect` is disabled |
26
26
  | Images | Paste with Ctrl+V, Alt+V on Windows, or drag into the terminal |
27
27
  | Shell command | `!command` runs and sends output to the model |
28
28
  | Hidden shell command | `!!command` runs without sending output to the model |
29
+ | Manual continue | Type `.` alone to resume the most recent intent without sending a new user message |
29
30
  | External editor | Ctrl+G opens `externalEditor`, `$VISUAL`, `$EDITOR`, Notepad on Windows, or `nano` elsewhere |
30
31
  | Shortcut overlay | Type `?` on an empty editor to show a dismissible shortcut grid |
31
32
  | Startup tips | A rotating `Tip:` line in the startup banner and under the working status teaches features; disable with `"tips": false` |
@@ -40,12 +41,13 @@ Type `/` in the editor to open command completion. Extensions can register custo
40
41
  |---------|-------------|
41
42
  | `/login`, `/logout` | Manage OAuth or API-key credentials |
42
43
  | [`/llama`](llama-cpp.md) | Download, load, and unload llama.cpp router models |
43
- | `/model` | Switch models |
44
+ | `/model` | Switch models; Ctrl+S in the picker saves the startup default |
45
+ | `/thinking` | Switch thinking level; Ctrl+S in the picker saves the startup default |
44
46
  | `/scoped-models` | Enable/disable models for Ctrl+P cycling |
45
47
  | `/reasoning [on\|off]` | Show or toggle reasoning for the current model |
46
48
  | `/efforts [level]` | Show or set reasoning effort (graded models only) |
47
49
  | `/fast [on\|off]` | Toggle fast mode (OpenAI Codex models, persisted per model) |
48
- | `/settings` | Thinking level, theme, message delivery, transport |
50
+ | `/settings` | Theme, message delivery, transport, and other preferences |
49
51
  | `/resume` | Pick from previous sessions |
50
52
  | `/new` | Start a new session |
51
53
  | `/name <name>` | Set session display name |
@@ -1,5 +1,101 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.123.0 (2026-09-01)
4
+
5
+ Full Changelog: [sdk-v0.122.0...sdk-v0.123.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.122.0...sdk-v0.123.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** beta user profiles: add external_user_onboarded_at, remove relationship in favor of access_type ([3efb1a1](https://github.com/anthropics/anthropic-sdk-typescript/commit/3efb1a1a812e30db1da695a1a16cce50cc950cfc))
10
+ * **api:** manual updates ([c6f0bda](https://github.com/anthropics/anthropic-sdk-typescript/commit/c6f0bdaff67aa65dfcb6a6e02b83e60f1de50ec7))
11
+ * **api:** organization compliance settings, user-profile order_by, memory-store and toolset schema updates ([8e2f0c2](https://github.com/anthropics/anthropic-sdk-typescript/commit/8e2f0c2f7ec7edf861e40d3131939fb819113e95))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * keep credential file access out of non-Node bundles ([ab6a4b2](https://github.com/anthropics/anthropic-sdk-typescript/commit/ab6a4b2814f09d20da12fa8ce3592d91ef2b2f89))
17
+
18
+
19
+ ### Chores
20
+
21
+ * **internal:** codegen related update ([788ea8b](https://github.com/anthropics/anthropic-sdk-typescript/commit/788ea8bdaa1077c472041f5424e7250fefb71564))
22
+
23
+
24
+ ### Documentation
25
+
26
+ * **changelog:** detail the beta files/skills GA-shape change ([#1175](https://github.com/anthropics/anthropic-sdk-typescript/issues/1175)) ([4951de0](https://github.com/anthropics/anthropic-sdk-typescript/commit/4951de02e8322ca353592a1546f78047a7633c4a))
27
+
28
+ ## 0.122.0 (2026-08-27)
29
+
30
+ Full Changelog: [sdk-v0.121.0...sdk-v0.122.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.121.0...sdk-v0.122.0)
31
+
32
+ ### Features
33
+
34
+ * **api:** beta files/skills namespaces use GA shapes; drop dated beta header pins ([45d693a](https://github.com/anthropics/anthropic-sdk-typescript/commit/45d693a66bc7fb1af66d9c4e3625f6d6f64bae59))
35
+
36
+ The beta Files and Skills namespaces (`client.beta.files`, `client.beta.skills`) no longer send the `files-api-2025-04-14` / `skills-2025-10-02` headers and return the same shapes as `client.files` / `client.skills` (with `Beta`-prefixed type names). Requests that still send those headers on raw HTTP keep receiving the beta shapes.
37
+
38
+ Changes in the beta namespaces:
39
+ - `client.beta.skills.delete()` now deletes a Skill together with all of its versions (previously refused while any version existed). It returns `BetaDeletedSkill` (was `SkillDeleteResponse`).
40
+ - Beta Messages type `BetaSkill` (the `{type, skill_id, version}` entry in `BetaContainer.skills`) is renamed `BetaContainerSkill`; the request-side `BetaSkillParams` keeps its name. `BetaSkill` now names the Skill object returned by `client.beta.skills.create()` / `retrieve()` / `list()` (replacing `SkillCreateResponse` / `SkillRetrieveResponse` / `SkillListResponse`), and skill versions are `BetaSkillVersion` / `BetaDeletedSkillVersion` (replacing `Version*Response`).
41
+ - `client.beta.files.list()` returns a `BetaFileMetadataPageCursor` (`PageCursor<BetaFileMetadata>` with `data` / `next_page`) and `FileListParams` paginates with `page` / `ids` (was `BetaFileMetadataPage`, a `Page<BetaFileMetadata>` with `data`, `has_more`, `first_id`, `last_id` and `before_id` / `after_id`); `for await` auto-pagination is unchanged. `BetaSkill` uses `display_name` (was `display_title`, also in `SkillCreateParams`) and `latest_version_id` (was `latest_version`), and `BetaSkillVersion` is addressed by its `skver_…` `id` (the Unix-timestamp `version` field is gone).
42
+
43
+ Migration guides: [Migrate from `files-api-2025-04-14`](https://platform.claude.com/docs/en/build-with-claude/files#migrate-from-files-api-2025-04-14) · [Migrate from `skills-2025-10-02`](https://platform.claude.com/docs/en/build-with-claude/skills-guide#migrate-from-skills-2025-10-02)
44
+
45
+
46
+ ### Bug Fixes
47
+
48
+ * **client:** classify cross-realm DOMException abort/timeout errors correctly ([1bd6395](https://github.com/anthropics/anthropic-sdk-typescript/commit/1bd639515e9948c1dc45047ce5cb4fcfc5c436b8))
49
+ * **client:** use configured logger for SSE parse errors ([80eeaf7](https://github.com/anthropics/anthropic-sdk-typescript/commit/80eeaf7b01b49ed83abd38bb6841b4ad25b06fe6))
50
+ * **sessions:** make event accumulator forward-compatible with new event types ([#410](https://github.com/anthropics/anthropic-sdk-typescript/issues/410)) ([2d084fd](https://github.com/anthropics/anthropic-sdk-typescript/commit/2d084fdaeb6b51a1613f321cd65e2184d55d8d1e))
51
+ * **tools:** let read return a view_range of a file over the size cap ([#427](https://github.com/anthropics/anthropic-sdk-typescript/issues/427)) ([56b3260](https://github.com/anthropics/anthropic-sdk-typescript/commit/56b32601f6b97a0d56450f2eba19e58d1bb0202e))
52
+ * **uploads:** default bare Blob filename on skills endpoints ([#422](https://github.com/anthropics/anthropic-sdk-typescript/issues/422)) ([e111649](https://github.com/anthropics/anthropic-sdk-typescript/commit/e1116491dd4021d0237d1bb440237677a03045f5))
53
+ * **webhooks:** require headers to be passed to `unwrap()` ([3230804](https://github.com/anthropics/anthropic-sdk-typescript/commit/3230804e63371f535a850d1df6752284643a01fe))
54
+
55
+
56
+ ### Chores
57
+
58
+ * **internal:** codegen related update ([c2f327a](https://github.com/anthropics/anthropic-sdk-typescript/commit/c2f327a30d14a4b1ee4cc777a4d0b37f5d44f0af))
59
+
60
+
61
+ ### Documentation
62
+
63
+ * **api:** clarify pagination on the organization rate-limit list endpoints ([d6015b9](https://github.com/anthropics/anthropic-sdk-typescript/commit/d6015b90b3e895cd173b7d71038ec71bf467a69b))
64
+ * document TypeScript 5.0 as the minimum supported version ([788e721](https://github.com/anthropics/anthropic-sdk-typescript/commit/788e7217937471e07af3800ab65172eafbf32e2a))
65
+
66
+ ## 0.121.0 (2026-08-26)
67
+
68
+ Full Changelog: [sdk-v0.120.0...sdk-v0.121.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.120.0...sdk-v0.121.0)
69
+
70
+ ### Features
71
+
72
+ * **api:** add `updates` thinking display mode (beta) ([22274ea](https://github.com/anthropics/anthropic-sdk-typescript/commit/22274eaf968edc62a8b9e1f39a1913f5e04b2ada))
73
+ * **api:** add missing anthropic-beta values ([0779f02](https://github.com/anthropics/anthropic-sdk-typescript/commit/0779f02666cfc6088c1555ee25e8cd8677e421da))
74
+ * **api:** add support for Organization API endpoints ([8b61e7a](https://github.com/anthropics/anthropic-sdk-typescript/commit/8b61e7a4d441d662cd121c94c6d27dbffa5c294a))
75
+ * **helpers:** support Standard Schema for structured outputs and tools ([7880078](https://github.com/anthropics/anthropic-sdk-typescript/commit/788007889c048e18f6bdf19d4903f1ac96f66cb0))
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * **tools:** keep the tool runner going on pause_turn ([#288](https://github.com/anthropics/anthropic-sdk-typescript/issues/288)) ([f040dc9](https://github.com/anthropics/anthropic-sdk-typescript/commit/f040dc9d39a3ec471a87ac8eb93387fb7d9960c3))
81
+ * **types:** don't reference NodeJS.ProcessEnv from published types ([#367](https://github.com/anthropics/anthropic-sdk-typescript/issues/367)) ([fd38dfd](https://github.com/anthropics/anthropic-sdk-typescript/commit/fd38dfdc48beec5d0d3640b65ac3e467bc73ea4e))
82
+
83
+
84
+ ### Chores
85
+
86
+ * **docs:** clarify skill version `latest` support and memory version retention ([7405a69](https://github.com/anthropics/anthropic-sdk-typescript/commit/7405a692be3ab6728037223482337f640cfa00b9))
87
+ * **examples:** remove redundant main().catch boilerplate ([154ace7](https://github.com/anthropics/anthropic-sdk-typescript/commit/154ace7ea8ccd66d59b3a7d2ca61dcff82b39417))
88
+ * **internal:** cancel superseded CI runs ([0532c98](https://github.com/anthropics/anthropic-sdk-typescript/commit/0532c9878433dd93cc1b7b34c8a895f2a80aeb2c))
89
+ * **internal:** codegen related update ([228ff1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/228ff1e5fa09fe6d6e1cca2cb876d2fa29d431b6))
90
+ * **internal:** minor workflow reformat ([41b6c31](https://github.com/anthropics/anthropic-sdk-typescript/commit/41b6c3190f4c4196817e9102fac1f9fca674452e))
91
+ * **internal:** tighten publint and attw lint checks ([e3fbd62](https://github.com/anthropics/anthropic-sdk-typescript/commit/e3fbd62677554699b51498179fe15feb73f1f24e))
92
+
93
+
94
+ ### Documentation
95
+
96
+ * **api:** clarify session thread agent and usage.iterations compaction descriptions (beta) ([6e852a7](https://github.com/anthropics/anthropic-sdk-typescript/commit/6e852a70ee5db1d514e9459ac627324bfe6c904f))
97
+ * **examples:** use adaptive thinking in thinking examples ([3dd7699](https://github.com/anthropics/anthropic-sdk-typescript/commit/3dd7699110fd34b82b795841e76ac40122a63c7d))
98
+
3
99
  ## 0.120.0 (2026-08-19)
4
100
 
5
101
  Full Changelog: [sdk-v0.119.0...sdk-v0.120.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.119.0...sdk-v0.120.0)
@@ -34,7 +34,7 @@ console.log(message.content);
34
34
 
35
35
  ## Requirements
36
36
 
37
- TypeScript >= 4.9 is supported.
37
+ TypeScript >= 5.0 is supported.
38
38
 
39
39
  The following runtimes are supported:
40
40
 
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.mts","sourceRoot":"","sources":["../src/core/credentials.ts"],"names":[],"mappings":"AAGA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AACzC,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAE9C;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,GAAG,CACA;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,+DAA+D;IAC/D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EACX;QACE,MAAM,EAAE,MAAM,CAA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;;;;;;;;;GA0BG;AACH,eAAO,MAAM,UAAU,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAEjF,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CA6FxF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,QAAa,OAAO,CAAC,oBAAoB,GAAG,IAAI,CA8B3E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,eAAe,GAAG,IAAI,EAC9B,UAAU,MAAM,KACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAkBvB,CAAC"}
@@ -102,8 +102,7 @@ const loadConfigWithSource = async (profile) => {
102
102
  return null;
103
103
  }
104
104
  validateProfileName(profileName);
105
- const fs = await Promise.resolve().then(() => __importStar(require('node:fs')));
106
- const path = await Promise.resolve().then(() => __importStar(require('node:path')));
105
+ const { fs, path } = await Promise.resolve().then(() => __importStar(require("../internal/node.js")));
107
106
  const configPath = path.join(rootConfigPath, 'configs', `${profileName}.json`);
108
107
  let configRaw;
109
108
  try {
@@ -204,7 +203,7 @@ const loadCredentials = async () => {
204
203
  if (!credentialsPath) {
205
204
  return null;
206
205
  }
207
- const fs = await Promise.resolve().then(() => __importStar(require('node:fs')));
206
+ const { fs } = await Promise.resolve().then(() => __importStar(require("../internal/node.js")));
208
207
  let raw;
209
208
  try {
210
209
  raw = await fs.promises.readFile(credentialsPath, 'utf-8');
@@ -249,7 +248,7 @@ const getCredentialsPath = async (config, profile) => {
249
248
  return null;
250
249
  }
251
250
  validateProfileName(profileName);
252
- const path = await Promise.resolve().then(() => __importStar(require('node:path')));
251
+ const { path } = await Promise.resolve().then(() => __importStar(require("../internal/node.js")));
253
252
  return path.join(rootConfigPath, 'credentials', `${profileName}.json`);
254
253
  };
255
254
  exports.getCredentialsPath = getCredentialsPath;
@@ -257,7 +256,7 @@ const getRootConfigPath = async () => {
257
256
  if (!supportsLocalConfigFiles()) {
258
257
  return null;
259
258
  }
260
- const path = await Promise.resolve().then(() => __importStar(require('node:path')));
259
+ const { path } = await Promise.resolve().then(() => __importStar(require("../internal/node.js")));
261
260
  // ANTHROPIC_CONFIG_DIR is treated as a trusted path: it is set by the
262
261
  // process operator, not by remote input, so it is not validated.
263
262
  const configDir = (0, utils_1.readEnv)('ANTHROPIC_CONFIG_DIR');
@@ -301,8 +300,7 @@ const getActiveProfileName = async () => {
301
300
  if (profileName) {
302
301
  return profileName;
303
302
  }
304
- const fs = await Promise.resolve().then(() => __importStar(require('node:fs')));
305
- const path = await Promise.resolve().then(() => __importStar(require('node:path')));
303
+ const { fs, path } = await Promise.resolve().then(() => __importStar(require("../internal/node.js")));
306
304
  const filePath = path.join(rootConfigPath, 'active_config');
307
305
  try {
308
306
  return (await fs.promises.readFile(filePath, 'utf-8')).trim() || 'default';
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/core/credentials.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAiE;AACjE,gDAA4C;AAE5C,0FAA0F;AAC7E,QAAA,mBAAmB,GAAG,KAAK,CAAC;AACzC,8FAA8F;AACjF,QAAA,wBAAwB,GAAG,KAAK,CAAC;AAgE9C,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEjD,SAAS,mBAAmB,CAAC,IAAY;IACvC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClC,MAAM,I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