@dimivelev/chimera 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1733) hide show
  1. package/CHANGELOG.md +4443 -0
  2. package/README.md +600 -0
  3. package/dist/bun/cli.d.ts +3 -0
  4. package/dist/bun/cli.d.ts.map +1 -0
  5. package/dist/bun/cli.js +9 -0
  6. package/dist/bun/cli.js.map +1 -0
  7. package/dist/bun/register-bedrock.d.ts +2 -0
  8. package/dist/bun/register-bedrock.d.ts.map +1 -0
  9. package/dist/bun/register-bedrock.js +4 -0
  10. package/dist/bun/register-bedrock.js.map +1 -0
  11. package/dist/bun/restore-sandbox-env.d.ts +13 -0
  12. package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
  13. package/dist/bun/restore-sandbox-env.js +32 -0
  14. package/dist/bun/restore-sandbox-env.js.map +1 -0
  15. package/dist/cli/args.d.ts +56 -0
  16. package/dist/cli/args.d.ts.map +1 -0
  17. package/dist/cli/args.js +368 -0
  18. package/dist/cli/args.js.map +1 -0
  19. package/dist/cli/config-selector.d.ts +14 -0
  20. package/dist/cli/config-selector.d.ts.map +1 -0
  21. package/dist/cli/config-selector.js +31 -0
  22. package/dist/cli/config-selector.js.map +1 -0
  23. package/dist/cli/file-processor.d.ts +15 -0
  24. package/dist/cli/file-processor.d.ts.map +1 -0
  25. package/dist/cli/file-processor.js +82 -0
  26. package/dist/cli/file-processor.js.map +1 -0
  27. package/dist/cli/initial-message.d.ts +18 -0
  28. package/dist/cli/initial-message.d.ts.map +1 -0
  29. package/dist/cli/initial-message.js +22 -0
  30. package/dist/cli/initial-message.js.map +1 -0
  31. package/dist/cli/list-models.d.ts +9 -0
  32. package/dist/cli/list-models.d.ts.map +1 -0
  33. package/dist/cli/list-models.js +98 -0
  34. package/dist/cli/list-models.js.map +1 -0
  35. package/dist/cli/session-picker.d.ts +9 -0
  36. package/dist/cli/session-picker.d.ts.map +1 -0
  37. package/dist/cli/session-picker.js +35 -0
  38. package/dist/cli/session-picker.js.map +1 -0
  39. package/dist/cli.d.ts +3 -0
  40. package/dist/cli.d.ts.map +1 -0
  41. package/dist/cli.js +18 -0
  42. package/dist/cli.js.map +1 -0
  43. package/dist/config.d.ts +92 -0
  44. package/dist/config.d.ts.map +1 -0
  45. package/dist/config.js +428 -0
  46. package/dist/config.js.map +1 -0
  47. package/dist/core/agent-session-runtime.d.ts +117 -0
  48. package/dist/core/agent-session-runtime.d.ts.map +1 -0
  49. package/dist/core/agent-session-runtime.js +300 -0
  50. package/dist/core/agent-session-runtime.js.map +1 -0
  51. package/dist/core/agent-session-services.d.ts +87 -0
  52. package/dist/core/agent-session-services.d.ts.map +1 -0
  53. package/dist/core/agent-session-services.js +119 -0
  54. package/dist/core/agent-session-services.js.map +1 -0
  55. package/dist/core/agent-session.d.ts +604 -0
  56. package/dist/core/agent-session.d.ts.map +1 -0
  57. package/dist/core/agent-session.js +2526 -0
  58. package/dist/core/agent-session.js.map +1 -0
  59. package/dist/core/auth-guidance.d.ts +5 -0
  60. package/dist/core/auth-guidance.d.ts.map +1 -0
  61. package/dist/core/auth-guidance.js +21 -0
  62. package/dist/core/auth-guidance.js.map +1 -0
  63. package/dist/core/auth-storage.d.ts +141 -0
  64. package/dist/core/auth-storage.d.ts.map +1 -0
  65. package/dist/core/auth-storage.js +442 -0
  66. package/dist/core/auth-storage.js.map +1 -0
  67. package/dist/core/bash-executor.d.ts +32 -0
  68. package/dist/core/bash-executor.d.ts.map +1 -0
  69. package/dist/core/bash-executor.js +111 -0
  70. package/dist/core/bash-executor.js.map +1 -0
  71. package/dist/core/compaction/branch-summarization.d.ts +88 -0
  72. package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  73. package/dist/core/compaction/branch-summarization.js +243 -0
  74. package/dist/core/compaction/branch-summarization.js.map +1 -0
  75. package/dist/core/compaction/compaction.d.ts +121 -0
  76. package/dist/core/compaction/compaction.d.ts.map +1 -0
  77. package/dist/core/compaction/compaction.js +619 -0
  78. package/dist/core/compaction/compaction.js.map +1 -0
  79. package/dist/core/compaction/index.d.ts +7 -0
  80. package/dist/core/compaction/index.d.ts.map +1 -0
  81. package/dist/core/compaction/index.js +7 -0
  82. package/dist/core/compaction/index.js.map +1 -0
  83. package/dist/core/compaction/utils.d.ts +38 -0
  84. package/dist/core/compaction/utils.d.ts.map +1 -0
  85. package/dist/core/compaction/utils.js +153 -0
  86. package/dist/core/compaction/utils.js.map +1 -0
  87. package/dist/core/defaults.d.ts +3 -0
  88. package/dist/core/defaults.d.ts.map +1 -0
  89. package/dist/core/defaults.js +2 -0
  90. package/dist/core/defaults.js.map +1 -0
  91. package/dist/core/diagnostics.d.ts +15 -0
  92. package/dist/core/diagnostics.d.ts.map +1 -0
  93. package/dist/core/diagnostics.js +2 -0
  94. package/dist/core/diagnostics.js.map +1 -0
  95. package/dist/core/event-bus.d.ts +9 -0
  96. package/dist/core/event-bus.d.ts.map +1 -0
  97. package/dist/core/event-bus.js +25 -0
  98. package/dist/core/event-bus.js.map +1 -0
  99. package/dist/core/exec.d.ts +29 -0
  100. package/dist/core/exec.d.ts.map +1 -0
  101. package/dist/core/exec.js +75 -0
  102. package/dist/core/exec.js.map +1 -0
  103. package/dist/core/export-html/ansi-to-html.d.ts +22 -0
  104. package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  105. package/dist/core/export-html/ansi-to-html.js +249 -0
  106. package/dist/core/export-html/ansi-to-html.js.map +1 -0
  107. package/dist/core/export-html/index.d.ts +37 -0
  108. package/dist/core/export-html/index.d.ts.map +1 -0
  109. package/dist/core/export-html/index.js +226 -0
  110. package/dist/core/export-html/index.js.map +1 -0
  111. package/dist/core/export-html/template.css +1066 -0
  112. package/dist/core/export-html/template.html +55 -0
  113. package/dist/core/export-html/template.js +1851 -0
  114. package/dist/core/export-html/tool-renderer.d.ts +34 -0
  115. package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  116. package/dist/core/export-html/tool-renderer.js +108 -0
  117. package/dist/core/export-html/tool-renderer.js.map +1 -0
  118. package/dist/core/export-html/vendor/highlight.min.js +1213 -0
  119. package/dist/core/export-html/vendor/marked.min.js +6 -0
  120. package/dist/core/extensions/index.d.ts +12 -0
  121. package/dist/core/extensions/index.d.ts.map +1 -0
  122. package/dist/core/extensions/index.js +9 -0
  123. package/dist/core/extensions/index.js.map +1 -0
  124. package/dist/core/extensions/loader.d.ts +24 -0
  125. package/dist/core/extensions/loader.d.ts.map +1 -0
  126. package/dist/core/extensions/loader.js +481 -0
  127. package/dist/core/extensions/loader.js.map +1 -0
  128. package/dist/core/extensions/runner.d.ts +160 -0
  129. package/dist/core/extensions/runner.d.ts.map +1 -0
  130. package/dist/core/extensions/runner.js +836 -0
  131. package/dist/core/extensions/runner.js.map +1 -0
  132. package/dist/core/extensions/types.d.ts +1178 -0
  133. package/dist/core/extensions/types.d.ts.map +1 -0
  134. package/dist/core/extensions/types.js +45 -0
  135. package/dist/core/extensions/types.js.map +1 -0
  136. package/dist/core/extensions/wrapper.d.ts +20 -0
  137. package/dist/core/extensions/wrapper.d.ts.map +1 -0
  138. package/dist/core/extensions/wrapper.js +22 -0
  139. package/dist/core/extensions/wrapper.js.map +1 -0
  140. package/dist/core/footer-data-provider.d.ts +54 -0
  141. package/dist/core/footer-data-provider.d.ts.map +1 -0
  142. package/dist/core/footer-data-provider.js +338 -0
  143. package/dist/core/footer-data-provider.js.map +1 -0
  144. package/dist/core/http-dispatcher.d.ts +21 -0
  145. package/dist/core/http-dispatcher.d.ts.map +1 -0
  146. package/dist/core/http-dispatcher.js +48 -0
  147. package/dist/core/http-dispatcher.js.map +1 -0
  148. package/dist/core/index.d.ts +12 -0
  149. package/dist/core/index.d.ts.map +1 -0
  150. package/dist/core/index.js +12 -0
  151. package/dist/core/index.js.map +1 -0
  152. package/dist/core/keybindings.d.ts +353 -0
  153. package/dist/core/keybindings.d.ts.map +1 -0
  154. package/dist/core/keybindings.js +295 -0
  155. package/dist/core/keybindings.js.map +1 -0
  156. package/dist/core/messages.d.ts +77 -0
  157. package/dist/core/messages.d.ts.map +1 -0
  158. package/dist/core/messages.js +123 -0
  159. package/dist/core/messages.js.map +1 -0
  160. package/dist/core/model-registry.d.ts +150 -0
  161. package/dist/core/model-registry.d.ts.map +1 -0
  162. package/dist/core/model-registry.js +784 -0
  163. package/dist/core/model-registry.js.map +1 -0
  164. package/dist/core/model-resolver.d.ts +110 -0
  165. package/dist/core/model-resolver.d.ts.map +1 -0
  166. package/dist/core/model-resolver.js +495 -0
  167. package/dist/core/model-resolver.js.map +1 -0
  168. package/dist/core/output-guard.d.ts +7 -0
  169. package/dist/core/output-guard.d.ts.map +1 -0
  170. package/dist/core/output-guard.js +89 -0
  171. package/dist/core/output-guard.js.map +1 -0
  172. package/dist/core/package-manager.d.ts +204 -0
  173. package/dist/core/package-manager.d.ts.map +1 -0
  174. package/dist/core/package-manager.js +2040 -0
  175. package/dist/core/package-manager.js.map +1 -0
  176. package/dist/core/prompt-templates.d.ts +52 -0
  177. package/dist/core/prompt-templates.d.ts.map +1 -0
  178. package/dist/core/prompt-templates.js +238 -0
  179. package/dist/core/prompt-templates.js.map +1 -0
  180. package/dist/core/provider-display-names.d.ts +2 -0
  181. package/dist/core/provider-display-names.d.ts.map +1 -0
  182. package/dist/core/provider-display-names.js +33 -0
  183. package/dist/core/provider-display-names.js.map +1 -0
  184. package/dist/core/resolve-config-value.d.ts +31 -0
  185. package/dist/core/resolve-config-value.d.ts.map +1 -0
  186. package/dist/core/resolve-config-value.js +249 -0
  187. package/dist/core/resolve-config-value.js.map +1 -0
  188. package/dist/core/resource-loader.d.ts +194 -0
  189. package/dist/core/resource-loader.d.ts.map +1 -0
  190. package/dist/core/resource-loader.js +734 -0
  191. package/dist/core/resource-loader.js.map +1 -0
  192. package/dist/core/sdk.d.ts +109 -0
  193. package/dist/core/sdk.d.ts.map +1 -0
  194. package/dist/core/sdk.js +291 -0
  195. package/dist/core/sdk.js.map +1 -0
  196. package/dist/core/session-cwd.d.ts +19 -0
  197. package/dist/core/session-cwd.d.ts.map +1 -0
  198. package/dist/core/session-cwd.js +38 -0
  199. package/dist/core/session-cwd.js.map +1 -0
  200. package/dist/core/session-manager.d.ts +332 -0
  201. package/dist/core/session-manager.d.ts.map +1 -0
  202. package/dist/core/session-manager.js +1218 -0
  203. package/dist/core/session-manager.js.map +1 -0
  204. package/dist/core/settings-manager.d.ts +266 -0
  205. package/dist/core/settings-manager.d.ts.map +1 -0
  206. package/dist/core/settings-manager.js +800 -0
  207. package/dist/core/settings-manager.js.map +1 -0
  208. package/dist/core/skills.d.ts +60 -0
  209. package/dist/core/skills.d.ts.map +1 -0
  210. package/dist/core/skills.js +387 -0
  211. package/dist/core/skills.js.map +1 -0
  212. package/dist/core/slash-commands.d.ts +14 -0
  213. package/dist/core/slash-commands.d.ts.map +1 -0
  214. package/dist/core/slash-commands.js +25 -0
  215. package/dist/core/slash-commands.js.map +1 -0
  216. package/dist/core/source-info.d.ts +18 -0
  217. package/dist/core/source-info.d.ts.map +1 -0
  218. package/dist/core/source-info.js +19 -0
  219. package/dist/core/source-info.js.map +1 -0
  220. package/dist/core/system-prompt.d.ts +28 -0
  221. package/dist/core/system-prompt.d.ts.map +1 -0
  222. package/dist/core/system-prompt.js +120 -0
  223. package/dist/core/system-prompt.js.map +1 -0
  224. package/dist/core/telemetry.d.ts +3 -0
  225. package/dist/core/telemetry.d.ts.map +1 -0
  226. package/dist/core/telemetry.js +9 -0
  227. package/dist/core/telemetry.js.map +1 -0
  228. package/dist/core/timings.d.ts +8 -0
  229. package/dist/core/timings.d.ts.map +1 -0
  230. package/dist/core/timings.js +31 -0
  231. package/dist/core/timings.js.map +1 -0
  232. package/dist/core/tools/bash.d.ts +68 -0
  233. package/dist/core/tools/bash.d.ts.map +1 -0
  234. package/dist/core/tools/bash.js +337 -0
  235. package/dist/core/tools/bash.js.map +1 -0
  236. package/dist/core/tools/edit-diff.d.ts +87 -0
  237. package/dist/core/tools/edit-diff.d.ts.map +1 -0
  238. package/dist/core/tools/edit-diff.js +345 -0
  239. package/dist/core/tools/edit-diff.js.map +1 -0
  240. package/dist/core/tools/edit.d.ts +51 -0
  241. package/dist/core/tools/edit.d.ts.map +1 -0
  242. package/dist/core/tools/edit.js +284 -0
  243. package/dist/core/tools/edit.js.map +1 -0
  244. package/dist/core/tools/file-mutation-queue.d.ts +6 -0
  245. package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
  246. package/dist/core/tools/file-mutation-queue.js +52 -0
  247. package/dist/core/tools/file-mutation-queue.js.map +1 -0
  248. package/dist/core/tools/find.d.ts +35 -0
  249. package/dist/core/tools/find.d.ts.map +1 -0
  250. package/dist/core/tools/find.js +297 -0
  251. package/dist/core/tools/find.js.map +1 -0
  252. package/dist/core/tools/grep.d.ts +37 -0
  253. package/dist/core/tools/grep.d.ts.map +1 -0
  254. package/dist/core/tools/grep.js +304 -0
  255. package/dist/core/tools/grep.js.map +1 -0
  256. package/dist/core/tools/index.d.ts +40 -0
  257. package/dist/core/tools/index.d.ts.map +1 -0
  258. package/dist/core/tools/index.js +112 -0
  259. package/dist/core/tools/index.js.map +1 -0
  260. package/dist/core/tools/ls.d.ts +37 -0
  261. package/dist/core/tools/ls.d.ts.map +1 -0
  262. package/dist/core/tools/ls.js +167 -0
  263. package/dist/core/tools/ls.js.map +1 -0
  264. package/dist/core/tools/output-accumulator.d.ts +52 -0
  265. package/dist/core/tools/output-accumulator.d.ts.map +1 -0
  266. package/dist/core/tools/output-accumulator.js +184 -0
  267. package/dist/core/tools/output-accumulator.js.map +1 -0
  268. package/dist/core/tools/path-utils.d.ts +10 -0
  269. package/dist/core/tools/path-utils.d.ts.map +1 -0
  270. package/dist/core/tools/path-utils.js +99 -0
  271. package/dist/core/tools/path-utils.js.map +1 -0
  272. package/dist/core/tools/read.d.ts +35 -0
  273. package/dist/core/tools/read.d.ts.map +1 -0
  274. package/dist/core/tools/read.js +289 -0
  275. package/dist/core/tools/read.js.map +1 -0
  276. package/dist/core/tools/render-utils.d.ts +24 -0
  277. package/dist/core/tools/render-utils.d.ts.map +1 -0
  278. package/dist/core/tools/render-utils.js +65 -0
  279. package/dist/core/tools/render-utils.js.map +1 -0
  280. package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
  281. package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
  282. package/dist/core/tools/tool-definition-wrapper.js +34 -0
  283. package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
  284. package/dist/core/tools/truncate.d.ts +70 -0
  285. package/dist/core/tools/truncate.d.ts.map +1 -0
  286. package/dist/core/tools/truncate.js +215 -0
  287. package/dist/core/tools/truncate.js.map +1 -0
  288. package/dist/core/tools/write.d.ts +26 -0
  289. package/dist/core/tools/write.d.ts.map +1 -0
  290. package/dist/core/tools/write.js +197 -0
  291. package/dist/core/tools/write.js.map +1 -0
  292. package/dist/index.d.ts +31 -0
  293. package/dist/index.d.ts.map +1 -0
  294. package/dist/index.js +44 -0
  295. package/dist/index.js.map +1 -0
  296. package/dist/main.d.ts +12 -0
  297. package/dist/main.d.ts.map +1 -0
  298. package/dist/main.js +631 -0
  299. package/dist/main.js.map +1 -0
  300. package/dist/migrations.d.ts +33 -0
  301. package/dist/migrations.d.ts.map +1 -0
  302. package/dist/migrations.js +398 -0
  303. package/dist/migrations.js.map +1 -0
  304. package/dist/modes/index.d.ts +9 -0
  305. package/dist/modes/index.d.ts.map +1 -0
  306. package/dist/modes/index.js +8 -0
  307. package/dist/modes/index.js.map +1 -0
  308. package/dist/modes/interactive/assets/clankolas.png +0 -0
  309. package/dist/modes/interactive/components/armin.d.ts +34 -0
  310. package/dist/modes/interactive/components/armin.d.ts.map +1 -0
  311. package/dist/modes/interactive/components/armin.js +333 -0
  312. package/dist/modes/interactive/components/armin.js.map +1 -0
  313. package/dist/modes/interactive/components/assistant-message.d.ts +20 -0
  314. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  315. package/dist/modes/interactive/components/assistant-message.js +121 -0
  316. package/dist/modes/interactive/components/assistant-message.js.map +1 -0
  317. package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
  318. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  319. package/dist/modes/interactive/components/bash-execution.js +175 -0
  320. package/dist/modes/interactive/components/bash-execution.js.map +1 -0
  321. package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  322. package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  323. package/dist/modes/interactive/components/bordered-loader.js +54 -0
  324. package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  325. package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  326. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  327. package/dist/modes/interactive/components/branch-summary-message.js +44 -0
  328. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  329. package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  330. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  331. package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
  332. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  333. package/dist/modes/interactive/components/config-selector.d.ts +71 -0
  334. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  335. package/dist/modes/interactive/components/config-selector.js +506 -0
  336. package/dist/modes/interactive/components/config-selector.js.map +1 -0
  337. package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  338. package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  339. package/dist/modes/interactive/components/countdown-timer.js +33 -0
  340. package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  341. package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
  342. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  343. package/dist/modes/interactive/components/custom-editor.js +70 -0
  344. package/dist/modes/interactive/components/custom-editor.js.map +1 -0
  345. package/dist/modes/interactive/components/custom-message.d.ts +20 -0
  346. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  347. package/dist/modes/interactive/components/custom-message.js +79 -0
  348. package/dist/modes/interactive/components/custom-message.js.map +1 -0
  349. package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
  350. package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
  351. package/dist/modes/interactive/components/daxnuts.js +140 -0
  352. package/dist/modes/interactive/components/daxnuts.js.map +1 -0
  353. package/dist/modes/interactive/components/diff.d.ts +12 -0
  354. package/dist/modes/interactive/components/diff.d.ts.map +1 -0
  355. package/dist/modes/interactive/components/diff.js +133 -0
  356. package/dist/modes/interactive/components/diff.js.map +1 -0
  357. package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  358. package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  359. package/dist/modes/interactive/components/dynamic-border.js +21 -0
  360. package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  361. package/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
  362. package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
  363. package/dist/modes/interactive/components/earendil-announcement.js +40 -0
  364. package/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
  365. package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
  366. package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  367. package/dist/modes/interactive/components/extension-editor.js +119 -0
  368. package/dist/modes/interactive/components/extension-editor.js.map +1 -0
  369. package/dist/modes/interactive/components/extension-input.d.ts +23 -0
  370. package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  371. package/dist/modes/interactive/components/extension-input.js +61 -0
  372. package/dist/modes/interactive/components/extension-input.js.map +1 -0
  373. package/dist/modes/interactive/components/extension-selector.d.ts +26 -0
  374. package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  375. package/dist/modes/interactive/components/extension-selector.js +83 -0
  376. package/dist/modes/interactive/components/extension-selector.js.map +1 -0
  377. package/dist/modes/interactive/components/footer.d.ts +28 -0
  378. package/dist/modes/interactive/components/footer.d.ts.map +1 -0
  379. package/dist/modes/interactive/components/footer.js +210 -0
  380. package/dist/modes/interactive/components/footer.js.map +1 -0
  381. package/dist/modes/interactive/components/index.d.ts +32 -0
  382. package/dist/modes/interactive/components/index.d.ts.map +1 -0
  383. package/dist/modes/interactive/components/index.js +33 -0
  384. package/dist/modes/interactive/components/index.js.map +1 -0
  385. package/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
  386. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  387. package/dist/modes/interactive/components/keybinding-hints.js +36 -0
  388. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  389. package/dist/modes/interactive/components/login-dialog.d.ts +52 -0
  390. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  391. package/dist/modes/interactive/components/login-dialog.js +183 -0
  392. package/dist/modes/interactive/components/login-dialog.js.map +1 -0
  393. package/dist/modes/interactive/components/model-selector.d.ts +47 -0
  394. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  395. package/dist/modes/interactive/components/model-selector.js +278 -0
  396. package/dist/modes/interactive/components/model-selector.js.map +1 -0
  397. package/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
  398. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  399. package/dist/modes/interactive/components/oauth-selector.js +165 -0
  400. package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  401. package/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
  402. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  403. package/dist/modes/interactive/components/scoped-models-selector.js +290 -0
  404. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  405. package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
  406. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  407. package/dist/modes/interactive/components/session-selector-search.js +155 -0
  408. package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  409. package/dist/modes/interactive/components/session-selector.d.ts +96 -0
  410. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  411. package/dist/modes/interactive/components/session-selector.js +861 -0
  412. package/dist/modes/interactive/components/session-selector.js.map +1 -0
  413. package/dist/modes/interactive/components/settings-selector.d.ts +69 -0
  414. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  415. package/dist/modes/interactive/components/settings-selector.js +390 -0
  416. package/dist/modes/interactive/components/settings-selector.js.map +1 -0
  417. package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  418. package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  419. package/dist/modes/interactive/components/show-images-selector.js +39 -0
  420. package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  421. package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  422. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  423. package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
  424. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  425. package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  426. package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  427. package/dist/modes/interactive/components/theme-selector.js +50 -0
  428. package/dist/modes/interactive/components/theme-selector.js.map +1 -0
  429. package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
  430. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  431. package/dist/modes/interactive/components/thinking-selector.js +51 -0
  432. package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  433. package/dist/modes/interactive/components/tool-execution.d.ts +63 -0
  434. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  435. package/dist/modes/interactive/components/tool-execution.js +295 -0
  436. package/dist/modes/interactive/components/tool-execution.js.map +1 -0
  437. package/dist/modes/interactive/components/tree-selector.d.ts +89 -0
  438. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  439. package/dist/modes/interactive/components/tree-selector.js +1093 -0
  440. package/dist/modes/interactive/components/tree-selector.js.map +1 -0
  441. package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  442. package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  443. package/dist/modes/interactive/components/user-message-selector.js +114 -0
  444. package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  445. package/dist/modes/interactive/components/user-message.d.ts +10 -0
  446. package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  447. package/dist/modes/interactive/components/user-message.js +29 -0
  448. package/dist/modes/interactive/components/user-message.js.map +1 -0
  449. package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
  450. package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  451. package/dist/modes/interactive/components/visual-truncate.js +33 -0
  452. package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  453. package/dist/modes/interactive/interactive-mode.d.ts +373 -0
  454. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  455. package/dist/modes/interactive/interactive-mode.js +4723 -0
  456. package/dist/modes/interactive/interactive-mode.js.map +1 -0
  457. package/dist/modes/interactive/theme/dark.json +86 -0
  458. package/dist/modes/interactive/theme/light.json +85 -0
  459. package/dist/modes/interactive/theme/theme-schema.json +335 -0
  460. package/dist/modes/interactive/theme/theme.d.ts +100 -0
  461. package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  462. package/dist/modes/interactive/theme/theme.js +1034 -0
  463. package/dist/modes/interactive/theme/theme.js.map +1 -0
  464. package/dist/modes/print-mode.d.ts +28 -0
  465. package/dist/modes/print-mode.d.ts.map +1 -0
  466. package/dist/modes/print-mode.js +132 -0
  467. package/dist/modes/print-mode.js.map +1 -0
  468. package/dist/modes/rpc/jsonl.d.ts +17 -0
  469. package/dist/modes/rpc/jsonl.d.ts.map +1 -0
  470. package/dist/modes/rpc/jsonl.js +49 -0
  471. package/dist/modes/rpc/jsonl.js.map +1 -0
  472. package/dist/modes/rpc/rpc-client.d.ts +227 -0
  473. package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  474. package/dist/modes/rpc/rpc-client.js +467 -0
  475. package/dist/modes/rpc/rpc-client.js.map +1 -0
  476. package/dist/modes/rpc/rpc-mode.d.ts +20 -0
  477. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  478. package/dist/modes/rpc/rpc-mode.js +616 -0
  479. package/dist/modes/rpc/rpc-mode.js.map +1 -0
  480. package/dist/modes/rpc/rpc-types.d.ts +420 -0
  481. package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  482. package/dist/modes/rpc/rpc-types.js +8 -0
  483. package/dist/modes/rpc/rpc-types.js.map +1 -0
  484. package/dist/package-manager-cli.d.ts +4 -0
  485. package/dist/package-manager-cli.d.ts.map +1 -0
  486. package/dist/package-manager-cli.js +515 -0
  487. package/dist/package-manager-cli.js.map +1 -0
  488. package/dist/utils/ansi.d.ts +2 -0
  489. package/dist/utils/ansi.d.ts.map +1 -0
  490. package/dist/utils/ansi.js +52 -0
  491. package/dist/utils/ansi.js.map +1 -0
  492. package/dist/utils/changelog.d.ts +21 -0
  493. package/dist/utils/changelog.d.ts.map +1 -0
  494. package/dist/utils/changelog.js +87 -0
  495. package/dist/utils/changelog.js.map +1 -0
  496. package/dist/utils/child-process.d.ts +15 -0
  497. package/dist/utils/child-process.d.ts.map +1 -0
  498. package/dist/utils/child-process.js +88 -0
  499. package/dist/utils/child-process.js.map +1 -0
  500. package/dist/utils/chimera-user-agent.d.ts +2 -0
  501. package/dist/utils/chimera-user-agent.d.ts.map +1 -0
  502. package/dist/utils/chimera-user-agent.js +5 -0
  503. package/dist/utils/chimera-user-agent.js.map +1 -0
  504. package/dist/utils/clipboard-image.d.ts +11 -0
  505. package/dist/utils/clipboard-image.d.ts.map +1 -0
  506. package/dist/utils/clipboard-image.js +245 -0
  507. package/dist/utils/clipboard-image.js.map +1 -0
  508. package/dist/utils/clipboard-native.d.ts +10 -0
  509. package/dist/utils/clipboard-native.d.ts.map +1 -0
  510. package/dist/utils/clipboard-native.js +20 -0
  511. package/dist/utils/clipboard-native.js.map +1 -0
  512. package/dist/utils/clipboard.d.ts +2 -0
  513. package/dist/utils/clipboard.d.ts.map +1 -0
  514. package/dist/utils/clipboard.js +117 -0
  515. package/dist/utils/clipboard.js.map +1 -0
  516. package/dist/utils/deprecation.d.ts +4 -0
  517. package/dist/utils/deprecation.d.ts.map +1 -0
  518. package/dist/utils/deprecation.js +13 -0
  519. package/dist/utils/deprecation.js.map +1 -0
  520. package/dist/utils/exif-orientation.d.ts +5 -0
  521. package/dist/utils/exif-orientation.d.ts.map +1 -0
  522. package/dist/utils/exif-orientation.js +158 -0
  523. package/dist/utils/exif-orientation.js.map +1 -0
  524. package/dist/utils/frontmatter.d.ts +8 -0
  525. package/dist/utils/frontmatter.d.ts.map +1 -0
  526. package/dist/utils/frontmatter.js +26 -0
  527. package/dist/utils/frontmatter.js.map +1 -0
  528. package/dist/utils/fs-watch.d.ts +5 -0
  529. package/dist/utils/fs-watch.d.ts.map +1 -0
  530. package/dist/utils/fs-watch.js +25 -0
  531. package/dist/utils/fs-watch.js.map +1 -0
  532. package/dist/utils/git.d.ts +26 -0
  533. package/dist/utils/git.d.ts.map +1 -0
  534. package/dist/utils/git.js +163 -0
  535. package/dist/utils/git.js.map +1 -0
  536. package/dist/utils/html.d.ts +7 -0
  537. package/dist/utils/html.d.ts.map +1 -0
  538. package/dist/utils/html.js +40 -0
  539. package/dist/utils/html.js.map +1 -0
  540. package/dist/utils/image-convert.d.ts +9 -0
  541. package/dist/utils/image-convert.d.ts.map +1 -0
  542. package/dist/utils/image-convert.js +39 -0
  543. package/dist/utils/image-convert.js.map +1 -0
  544. package/dist/utils/image-resize-core.d.ts +30 -0
  545. package/dist/utils/image-resize-core.d.ts.map +1 -0
  546. package/dist/utils/image-resize-core.js +124 -0
  547. package/dist/utils/image-resize-core.js.map +1 -0
  548. package/dist/utils/image-resize-worker.d.ts +2 -0
  549. package/dist/utils/image-resize-worker.d.ts.map +1 -0
  550. package/dist/utils/image-resize-worker.js +31 -0
  551. package/dist/utils/image-resize-worker.js.map +1 -0
  552. package/dist/utils/image-resize.d.ts +16 -0
  553. package/dist/utils/image-resize.d.ts.map +1 -0
  554. package/dist/utils/image-resize.js +97 -0
  555. package/dist/utils/image-resize.js.map +1 -0
  556. package/dist/utils/json.d.ts +3 -0
  557. package/dist/utils/json.d.ts.map +1 -0
  558. package/dist/utils/json.js +7 -0
  559. package/dist/utils/json.js.map +1 -0
  560. package/dist/utils/mime.d.ts +3 -0
  561. package/dist/utils/mime.d.ts.map +1 -0
  562. package/dist/utils/mime.js +69 -0
  563. package/dist/utils/mime.js.map +1 -0
  564. package/dist/utils/paths.d.ts +31 -0
  565. package/dist/utils/paths.d.ts.map +1 -0
  566. package/dist/utils/paths.js +92 -0
  567. package/dist/utils/paths.js.map +1 -0
  568. package/dist/utils/photon.d.ts +21 -0
  569. package/dist/utils/photon.d.ts.map +1 -0
  570. package/dist/utils/photon.js +121 -0
  571. package/dist/utils/photon.js.map +1 -0
  572. package/dist/utils/shell.d.ts +30 -0
  573. package/dist/utils/shell.d.ts.map +1 -0
  574. package/dist/utils/shell.js +195 -0
  575. package/dist/utils/shell.js.map +1 -0
  576. package/dist/utils/sleep.d.ts +5 -0
  577. package/dist/utils/sleep.d.ts.map +1 -0
  578. package/dist/utils/sleep.js +17 -0
  579. package/dist/utils/sleep.js.map +1 -0
  580. package/dist/utils/syntax-highlight.d.ts +12 -0
  581. package/dist/utils/syntax-highlight.d.ts.map +1 -0
  582. package/dist/utils/syntax-highlight.js +118 -0
  583. package/dist/utils/syntax-highlight.js.map +1 -0
  584. package/dist/utils/tools-manager.d.ts +3 -0
  585. package/dist/utils/tools-manager.d.ts.map +1 -0
  586. package/dist/utils/tools-manager.js +328 -0
  587. package/dist/utils/tools-manager.js.map +1 -0
  588. package/dist/utils/version-check.d.ts +15 -0
  589. package/dist/utils/version-check.d.ts.map +1 -0
  590. package/dist/utils/version-check.js +82 -0
  591. package/dist/utils/version-check.js.map +1 -0
  592. package/dist/utils/windows-self-update.d.ts +3 -0
  593. package/dist/utils/windows-self-update.d.ts.map +1 -0
  594. package/dist/utils/windows-self-update.js +77 -0
  595. package/dist/utils/windows-self-update.js.map +1 -0
  596. package/docs/compaction.md +394 -0
  597. package/docs/custom-provider.md +736 -0
  598. package/docs/development.md +71 -0
  599. package/docs/docs.json +148 -0
  600. package/docs/extensions.md +2613 -0
  601. package/docs/images/doom-extension.png +0 -0
  602. package/docs/images/exy.png +0 -0
  603. package/docs/images/interactive-mode.png +0 -0
  604. package/docs/images/tree-view.png +0 -0
  605. package/docs/index.md +80 -0
  606. package/docs/json.md +82 -0
  607. package/docs/keybindings.md +197 -0
  608. package/docs/models.md +493 -0
  609. package/docs/packages.md +226 -0
  610. package/docs/prompt-templates.md +88 -0
  611. package/docs/providers.md +251 -0
  612. package/docs/quickstart.md +165 -0
  613. package/docs/rpc.md +1408 -0
  614. package/docs/sdk.md +1137 -0
  615. package/docs/session-format.md +412 -0
  616. package/docs/sessions.md +145 -0
  617. package/docs/settings.md +281 -0
  618. package/docs/shell-aliases.md +13 -0
  619. package/docs/skills.md +231 -0
  620. package/docs/terminal-setup.md +114 -0
  621. package/docs/termux.md +127 -0
  622. package/docs/themes.md +295 -0
  623. package/docs/tmux.md +61 -0
  624. package/docs/tui.md +927 -0
  625. package/docs/usage.md +288 -0
  626. package/docs/windows.md +17 -0
  627. package/examples/README.md +25 -0
  628. package/examples/extensions/README.md +209 -0
  629. package/examples/extensions/auto-commit-on-exit.ts +49 -0
  630. package/examples/extensions/bash-spawn-hook.ts +30 -0
  631. package/examples/extensions/bookmark.ts +50 -0
  632. package/examples/extensions/border-status-editor.ts +145 -0
  633. package/examples/extensions/built-in-tool-renderer.ts +249 -0
  634. package/examples/extensions/claude-rules.ts +86 -0
  635. package/examples/extensions/commands.ts +72 -0
  636. package/examples/extensions/confirm-destructive.ts +59 -0
  637. package/examples/extensions/custom-compaction.ts +127 -0
  638. package/examples/extensions/custom-footer.ts +64 -0
  639. package/examples/extensions/custom-header.ts +73 -0
  640. package/examples/extensions/custom-provider-anthropic/index.ts +604 -0
  641. package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  642. package/examples/extensions/custom-provider-anthropic/package.json +19 -0
  643. package/examples/extensions/custom-provider-gitlab-duo/index.ts +400 -0
  644. package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  645. package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  646. package/examples/extensions/dirty-repo-guard.ts +56 -0
  647. package/examples/extensions/doom-overlay/README.md +45 -0
  648. package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  649. package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  650. package/examples/extensions/doom-overlay/doom/build.sh +152 -0
  651. package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  652. package/examples/extensions/doom-overlay/doom-component.ts +132 -0
  653. package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  654. package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  655. package/examples/extensions/doom-overlay/index.ts +74 -0
  656. package/examples/extensions/doom-overlay/wad-finder.ts +51 -0
  657. package/examples/extensions/dynamic-resources/SKILL.md +8 -0
  658. package/examples/extensions/dynamic-resources/dynamic.json +79 -0
  659. package/examples/extensions/dynamic-resources/dynamic.md +5 -0
  660. package/examples/extensions/dynamic-resources/index.ts +15 -0
  661. package/examples/extensions/dynamic-tools.ts +74 -0
  662. package/examples/extensions/event-bus.ts +43 -0
  663. package/examples/extensions/file-trigger.ts +41 -0
  664. package/examples/extensions/git-checkpoint.ts +53 -0
  665. package/examples/extensions/git-merge-and-resolve.ts +115 -0
  666. package/examples/extensions/github-issue-autocomplete.ts +185 -0
  667. package/examples/extensions/handoff.ts +191 -0
  668. package/examples/extensions/hello.ts +26 -0
  669. package/examples/extensions/hidden-thinking-label.ts +53 -0
  670. package/examples/extensions/inline-bash.ts +94 -0
  671. package/examples/extensions/input-transform-streaming.ts +39 -0
  672. package/examples/extensions/input-transform.ts +43 -0
  673. package/examples/extensions/interactive-shell.ts +196 -0
  674. package/examples/extensions/mac-system-theme.ts +47 -0
  675. package/examples/extensions/message-renderer.ts +59 -0
  676. package/examples/extensions/minimal-mode.ts +426 -0
  677. package/examples/extensions/modal-editor.ts +85 -0
  678. package/examples/extensions/model-status.ts +31 -0
  679. package/examples/extensions/notify.ts +55 -0
  680. package/examples/extensions/overlay-qa-tests.ts +1450 -0
  681. package/examples/extensions/overlay-test.ts +153 -0
  682. package/examples/extensions/permission-gate.ts +34 -0
  683. package/examples/extensions/pirate.ts +47 -0
  684. package/examples/extensions/plan-mode/README.md +65 -0
  685. package/examples/extensions/plan-mode/index.ts +340 -0
  686. package/examples/extensions/plan-mode/utils.ts +168 -0
  687. package/examples/extensions/preset.ts +430 -0
  688. package/examples/extensions/prompt-customizer.ts +97 -0
  689. package/examples/extensions/protected-paths.ts +30 -0
  690. package/examples/extensions/provider-payload.ts +18 -0
  691. package/examples/extensions/qna.ts +122 -0
  692. package/examples/extensions/question.ts +264 -0
  693. package/examples/extensions/questionnaire.ts +427 -0
  694. package/examples/extensions/rainbow-editor.ts +88 -0
  695. package/examples/extensions/reload-runtime.ts +37 -0
  696. package/examples/extensions/rpc-demo.ts +118 -0
  697. package/examples/extensions/sandbox/index.ts +321 -0
  698. package/examples/extensions/sandbox/package-lock.json +92 -0
  699. package/examples/extensions/sandbox/package.json +19 -0
  700. package/examples/extensions/send-user-message.ts +97 -0
  701. package/examples/extensions/session-name.ts +27 -0
  702. package/examples/extensions/shutdown-command.ts +63 -0
  703. package/examples/extensions/snake.ts +343 -0
  704. package/examples/extensions/space-invaders.ts +560 -0
  705. package/examples/extensions/ssh.ts +220 -0
  706. package/examples/extensions/status-line.ts +32 -0
  707. package/examples/extensions/structured-output.ts +65 -0
  708. package/examples/extensions/subagent/README.md +175 -0
  709. package/examples/extensions/subagent/agents/planner.md +37 -0
  710. package/examples/extensions/subagent/agents/reviewer.md +35 -0
  711. package/examples/extensions/subagent/agents/scout.md +50 -0
  712. package/examples/extensions/subagent/agents/worker.md +24 -0
  713. package/examples/extensions/subagent/agents.ts +126 -0
  714. package/examples/extensions/subagent/index.ts +1009 -0
  715. package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  716. package/examples/extensions/subagent/prompts/implement.md +10 -0
  717. package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  718. package/examples/extensions/summarize.ts +206 -0
  719. package/examples/extensions/system-prompt-header.ts +17 -0
  720. package/examples/extensions/tic-tac-toe.ts +1008 -0
  721. package/examples/extensions/timed-confirm.ts +70 -0
  722. package/examples/extensions/titlebar-spinner.ts +58 -0
  723. package/examples/extensions/todo.ts +297 -0
  724. package/examples/extensions/tool-override.ts +144 -0
  725. package/examples/extensions/tools.ts +146 -0
  726. package/examples/extensions/trigger-compact.ts +50 -0
  727. package/examples/extensions/truncated-tool.ts +195 -0
  728. package/examples/extensions/widget-placement.ts +9 -0
  729. package/examples/extensions/with-deps/index.ts +32 -0
  730. package/examples/extensions/with-deps/package-lock.json +31 -0
  731. package/examples/extensions/with-deps/package.json +22 -0
  732. package/examples/extensions/working-indicator.ts +123 -0
  733. package/examples/extensions/working-message-test.ts +25 -0
  734. package/examples/rpc-extension-ui.ts +632 -0
  735. package/examples/sdk/01-minimal.ts +26 -0
  736. package/examples/sdk/02-custom-model.ts +53 -0
  737. package/examples/sdk/03-custom-prompt.ts +70 -0
  738. package/examples/sdk/04-skills.ts +55 -0
  739. package/examples/sdk/05-tools.ts +48 -0
  740. package/examples/sdk/06-extensions.ts +94 -0
  741. package/examples/sdk/07-context-files.ts +42 -0
  742. package/examples/sdk/08-prompt-templates.ts +51 -0
  743. package/examples/sdk/09-api-keys-and-oauth.ts +52 -0
  744. package/examples/sdk/10-settings.ts +53 -0
  745. package/examples/sdk/11-sessions.ts +52 -0
  746. package/examples/sdk/12-full-control.ts +77 -0
  747. package/examples/sdk/13-session-runtime.ts +67 -0
  748. package/examples/sdk/README.md +144 -0
  749. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +1677 -0
  750. package/node_modules/@anthropic-ai/sdk/LICENSE +8 -0
  751. package/node_modules/@anthropic-ai/sdk/README.md +674 -0
  752. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts +3 -0
  753. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -0
  754. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts +3 -0
  755. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -0
  756. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +226 -0
  757. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -0
  758. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +223 -0
  759. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -0
  760. package/node_modules/@anthropic-ai/sdk/api-promise.d.mts +2 -0
  761. package/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -0
  762. package/node_modules/@anthropic-ai/sdk/api-promise.d.ts +2 -0
  763. package/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -0
  764. package/node_modules/@anthropic-ai/sdk/api-promise.js +6 -0
  765. package/node_modules/@anthropic-ai/sdk/api-promise.js.map +1 -0
  766. package/node_modules/@anthropic-ai/sdk/api-promise.mjs +2 -0
  767. package/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -0
  768. package/node_modules/@anthropic-ai/sdk/bin/cli +53 -0
  769. package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +7 -0
  770. package/node_modules/@anthropic-ai/sdk/client.d.mts +225 -0
  771. package/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -0
  772. package/node_modules/@anthropic-ai/sdk/client.d.ts +225 -0
  773. package/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -0
  774. package/node_modules/@anthropic-ai/sdk/client.js +536 -0
  775. package/node_modules/@anthropic-ai/sdk/client.js.map +1 -0
  776. package/node_modules/@anthropic-ai/sdk/client.mjs +531 -0
  777. package/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -0
  778. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +49 -0
  779. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -0
  780. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +49 -0
  781. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -0
  782. package/node_modules/@anthropic-ai/sdk/core/api-promise.js +76 -0
  783. package/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -0
  784. package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +72 -0
  785. package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -0
  786. package/node_modules/@anthropic-ai/sdk/core/error.d.mts +47 -0
  787. package/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -0
  788. package/node_modules/@anthropic-ai/sdk/core/error.d.ts +47 -0
  789. package/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -0
  790. package/node_modules/@anthropic-ai/sdk/core/error.js +114 -0
  791. package/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -0
  792. package/node_modules/@anthropic-ai/sdk/core/error.mjs +98 -0
  793. package/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -0
  794. package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +63 -0
  795. package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -0
  796. package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +63 -0
  797. package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -0
  798. package/node_modules/@anthropic-ai/sdk/core/pagination.js +123 -0
  799. package/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -0
  800. package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +117 -0
  801. package/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -0
  802. package/node_modules/@anthropic-ai/sdk/core/resource.d.mts +6 -0
  803. package/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -0
  804. package/node_modules/@anthropic-ai/sdk/core/resource.d.ts +6 -0
  805. package/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -0
  806. package/node_modules/@anthropic-ai/sdk/core/resource.js +11 -0
  807. package/node_modules/@anthropic-ai/sdk/core/resource.js.map +1 -0
  808. package/node_modules/@anthropic-ai/sdk/core/resource.mjs +7 -0
  809. package/node_modules/@anthropic-ai/sdk/core/resource.mjs.map +1 -0
  810. package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +31 -0
  811. package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -0
  812. package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +31 -0
  813. package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -0
  814. package/node_modules/@anthropic-ai/sdk/core/streaming.js +282 -0
  815. package/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -0
  816. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +277 -0
  817. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -0
  818. package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +3 -0
  819. package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -0
  820. package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts +3 -0
  821. package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -0
  822. package/node_modules/@anthropic-ai/sdk/core/uploads.js +6 -0
  823. package/node_modules/@anthropic-ai/sdk/core/uploads.js.map +1 -0
  824. package/node_modules/@anthropic-ai/sdk/core/uploads.mjs +2 -0
  825. package/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -0
  826. package/node_modules/@anthropic-ai/sdk/error.d.mts +2 -0
  827. package/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -0
  828. package/node_modules/@anthropic-ai/sdk/error.d.ts +2 -0
  829. package/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -0
  830. package/node_modules/@anthropic-ai/sdk/error.js +6 -0
  831. package/node_modules/@anthropic-ai/sdk/error.js.map +1 -0
  832. package/node_modules/@anthropic-ai/sdk/error.mjs +2 -0
  833. package/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -0
  834. package/node_modules/@anthropic-ai/sdk/index.d.mts +7 -0
  835. package/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -0
  836. package/node_modules/@anthropic-ai/sdk/index.d.ts +7 -0
  837. package/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -0
  838. package/node_modules/@anthropic-ai/sdk/index.js +35 -0
  839. package/node_modules/@anthropic-ai/sdk/index.js.map +1 -0
  840. package/node_modules/@anthropic-ai/sdk/index.mjs +8 -0
  841. package/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -0
  842. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts +73 -0
  843. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts.map +1 -0
  844. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts +73 -0
  845. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts.map +1 -0
  846. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.js +4 -0
  847. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.js.map +1 -0
  848. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs +3 -0
  849. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs.map +1 -0
  850. package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts +5 -0
  851. package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -0
  852. package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts +5 -0
  853. package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -0
  854. package/node_modules/@anthropic-ai/sdk/internal/constants.js +15 -0
  855. package/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -0
  856. package/node_modules/@anthropic-ai/sdk/internal/constants.mjs +12 -0
  857. package/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -0
  858. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts +10 -0
  859. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -0
  860. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts +10 -0
  861. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -0
  862. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js +39 -0
  863. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js.map +1 -0
  864. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs +35 -0
  865. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -0
  866. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts +17 -0
  867. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts.map +1 -0
  868. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts +17 -0
  869. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts.map +1 -0
  870. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.js +113 -0
  871. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.js.map +1 -0
  872. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs +108 -0
  873. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -0
  874. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts +15 -0
  875. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts.map +1 -0
  876. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts +15 -0
  877. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts.map +1 -0
  878. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +162 -0
  879. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +1 -0
  880. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +157 -0
  881. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -0
  882. package/node_modules/@anthropic-ai/sdk/internal/errors.d.mts +3 -0
  883. package/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +1 -0
  884. package/node_modules/@anthropic-ai/sdk/internal/errors.d.ts +3 -0
  885. package/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +1 -0
  886. package/node_modules/@anthropic-ai/sdk/internal/errors.js +41 -0
  887. package/node_modules/@anthropic-ai/sdk/internal/errors.js.map +1 -0
  888. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs +36 -0
  889. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +1 -0
  890. package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +22 -0
  891. package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -0
  892. package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +22 -0
  893. package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -0
  894. package/node_modules/@anthropic-ai/sdk/internal/headers.js +79 -0
  895. package/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -0
  896. package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +74 -0
  897. package/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -0
  898. package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +17 -0
  899. package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -0
  900. package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +17 -0
  901. package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -0
  902. package/node_modules/@anthropic-ai/sdk/internal/parse.js +55 -0
  903. package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -0
  904. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +51 -0
  905. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -0
  906. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +34 -0
  907. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -0
  908. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +34 -0
  909. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -0
  910. package/node_modules/@anthropic-ai/sdk/internal/request-options.js +14 -0
  911. package/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -0
  912. package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
  913. package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -0
  914. package/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts +28 -0
  915. package/node_modules/@anthropic-ai/sdk/internal/shim-types.d.ts +28 -0
  916. package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +20 -0
  917. package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -0
  918. package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +20 -0
  919. package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -0
  920. package/node_modules/@anthropic-ai/sdk/internal/shims.js +92 -0
  921. package/node_modules/@anthropic-ai/sdk/internal/shims.js.map +1 -0
  922. package/node_modules/@anthropic-ai/sdk/internal/shims.mjs +85 -0
  923. package/node_modules/@anthropic-ai/sdk/internal/shims.mjs.map +1 -0
  924. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts +8 -0
  925. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts.map +1 -0
  926. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts +8 -0
  927. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts.map +1 -0
  928. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.js +38 -0
  929. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.js.map +1 -0
  930. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs +35 -0
  931. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs.map +1 -0
  932. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts +45 -0
  933. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -0
  934. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts +45 -0
  935. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -0
  936. package/node_modules/@anthropic-ai/sdk/internal/to-file.js +96 -0
  937. package/node_modules/@anthropic-ai/sdk/internal/to-file.js.map +1 -0
  938. package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs +93 -0
  939. package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -0
  940. package/node_modules/@anthropic-ai/sdk/internal/tslib.js +81 -0
  941. package/node_modules/@anthropic-ai/sdk/internal/tslib.mjs +17 -0
  942. package/node_modules/@anthropic-ai/sdk/internal/types.d.mts +67 -0
  943. package/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -0
  944. package/node_modules/@anthropic-ai/sdk/internal/types.d.ts +67 -0
  945. package/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -0
  946. package/node_modules/@anthropic-ai/sdk/internal/types.js +4 -0
  947. package/node_modules/@anthropic-ai/sdk/internal/types.js.map +1 -0
  948. package/node_modules/@anthropic-ai/sdk/internal/types.mjs +3 -0
  949. package/node_modules/@anthropic-ai/sdk/internal/types.mjs.map +1 -0
  950. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +42 -0
  951. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -0
  952. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts +42 -0
  953. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -0
  954. package/node_modules/@anthropic-ai/sdk/internal/uploads.js +146 -0
  955. package/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +1 -0
  956. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +136 -0
  957. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -0
  958. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts +3 -0
  959. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts.map +1 -0
  960. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts +3 -0
  961. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts.map +1 -0
  962. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.js +38 -0
  963. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.js.map +1 -0
  964. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs +33 -0
  965. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -0
  966. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts +4 -0
  967. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts.map +1 -0
  968. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts +4 -0
  969. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts.map +1 -0
  970. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js +31 -0
  971. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js.map +1 -0
  972. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs +26 -0
  973. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs.map +1 -0
  974. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts +9 -0
  975. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts.map +1 -0
  976. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts +9 -0
  977. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts.map +1 -0
  978. package/node_modules/@anthropic-ai/sdk/internal/utils/env.js +22 -0
  979. package/node_modules/@anthropic-ai/sdk/internal/utils/env.js.map +1 -0
  980. package/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs +18 -0
  981. package/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs.map +1 -0
  982. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +37 -0
  983. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -0
  984. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +37 -0
  985. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -0
  986. package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +86 -0
  987. package/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -0
  988. package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +80 -0
  989. package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -0
  990. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts +15 -0
  991. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts.map +1 -0
  992. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts +15 -0
  993. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts.map +1 -0
  994. package/node_modules/@anthropic-ai/sdk/internal/utils/path.js +58 -0
  995. package/node_modules/@anthropic-ai/sdk/internal/utils/path.js.map +1 -0
  996. package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs +53 -0
  997. package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -0
  998. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +2 -0
  999. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -0
  1000. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +2 -0
  1001. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -0
  1002. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +7 -0
  1003. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -0
  1004. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +3 -0
  1005. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -0
  1006. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts +5 -0
  1007. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts.map +1 -0
  1008. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts +5 -0
  1009. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts.map +1 -0
  1010. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js +19 -0
  1011. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js.map +1 -0
  1012. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs +15 -0
  1013. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs.map +1 -0
  1014. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +16 -0
  1015. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +1 -0
  1016. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +16 -0
  1017. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +1 -0
  1018. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js +109 -0
  1019. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +1 -0
  1020. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +92 -0
  1021. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -0
  1022. package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts +7 -0
  1023. package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -0
  1024. package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts +7 -0
  1025. package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -0
  1026. package/node_modules/@anthropic-ai/sdk/internal/utils.js +11 -0
  1027. package/node_modules/@anthropic-ai/sdk/internal/utils.js.map +1 -0
  1028. package/node_modules/@anthropic-ai/sdk/internal/utils.mjs +8 -0
  1029. package/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -0
  1030. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +114 -0
  1031. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -0
  1032. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +114 -0
  1033. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -0
  1034. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +553 -0
  1035. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -0
  1036. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +549 -0
  1037. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -0
  1038. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +114 -0
  1039. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -0
  1040. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +114 -0
  1041. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -0
  1042. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +553 -0
  1043. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -0
  1044. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +549 -0
  1045. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -0
  1046. package/node_modules/@anthropic-ai/sdk/package.json +185 -0
  1047. package/node_modules/@anthropic-ai/sdk/pagination.d.mts +2 -0
  1048. package/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -0
  1049. package/node_modules/@anthropic-ai/sdk/pagination.d.ts +2 -0
  1050. package/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -0
  1051. package/node_modules/@anthropic-ai/sdk/pagination.js +6 -0
  1052. package/node_modules/@anthropic-ai/sdk/pagination.js.map +1 -0
  1053. package/node_modules/@anthropic-ai/sdk/pagination.mjs +2 -0
  1054. package/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -0
  1055. package/node_modules/@anthropic-ai/sdk/resource.d.mts +2 -0
  1056. package/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -0
  1057. package/node_modules/@anthropic-ai/sdk/resource.d.ts +2 -0
  1058. package/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -0
  1059. package/node_modules/@anthropic-ai/sdk/resource.js +6 -0
  1060. package/node_modules/@anthropic-ai/sdk/resource.js.map +1 -0
  1061. package/node_modules/@anthropic-ai/sdk/resource.mjs +2 -0
  1062. package/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -0
  1063. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +61 -0
  1064. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -0
  1065. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +61 -0
  1066. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -0
  1067. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +25 -0
  1068. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -0
  1069. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +20 -0
  1070. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -0
  1071. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +151 -0
  1072. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -0
  1073. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +151 -0
  1074. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -0
  1075. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +122 -0
  1076. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -0
  1077. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +118 -0
  1078. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -0
  1079. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +5 -0
  1080. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -0
  1081. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +5 -0
  1082. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -0
  1083. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +13 -0
  1084. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -0
  1085. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +6 -0
  1086. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -0
  1087. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +343 -0
  1088. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -0
  1089. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +343 -0
  1090. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -0
  1091. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +204 -0
  1092. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -0
  1093. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +200 -0
  1094. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -0
  1095. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +3 -0
  1096. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -0
  1097. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +3 -0
  1098. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -0
  1099. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js +9 -0
  1100. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -0
  1101. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs +4 -0
  1102. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -0
  1103. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +1561 -0
  1104. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -0
  1105. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +1561 -0
  1106. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -0
  1107. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +86 -0
  1108. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -0
  1109. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +81 -0
  1110. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -0
  1111. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts +2 -0
  1112. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -0
  1113. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts +2 -0
  1114. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -0
  1115. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.js +6 -0
  1116. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.js.map +1 -0
  1117. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs +3 -0
  1118. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -0
  1119. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +74 -0
  1120. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -0
  1121. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +74 -0
  1122. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -0
  1123. package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +60 -0
  1124. package/node_modules/@anthropic-ai/sdk/resources/beta/models.js.map +1 -0
  1125. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +56 -0
  1126. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -0
  1127. package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +2 -0
  1128. package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -0
  1129. package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts +2 -0
  1130. package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -0
  1131. package/node_modules/@anthropic-ai/sdk/resources/beta.js +6 -0
  1132. package/node_modules/@anthropic-ai/sdk/resources/beta.js.map +1 -0
  1133. package/node_modules/@anthropic-ai/sdk/resources/beta.mjs +3 -0
  1134. package/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -0
  1135. package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +183 -0
  1136. package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -0
  1137. package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +183 -0
  1138. package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -0
  1139. package/node_modules/@anthropic-ai/sdk/resources/completions.js +23 -0
  1140. package/node_modules/@anthropic-ai/sdk/resources/completions.js.map +1 -0
  1141. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +19 -0
  1142. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -0
  1143. package/node_modules/@anthropic-ai/sdk/resources/index.d.mts +6 -0
  1144. package/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -0
  1145. package/node_modules/@anthropic-ai/sdk/resources/index.d.ts +6 -0
  1146. package/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -0
  1147. package/node_modules/@anthropic-ai/sdk/resources/index.js +15 -0
  1148. package/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -0
  1149. package/node_modules/@anthropic-ai/sdk/resources/index.mjs +7 -0
  1150. package/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -0
  1151. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +304 -0
  1152. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -0
  1153. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +304 -0
  1154. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -0
  1155. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +153 -0
  1156. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -0
  1157. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +149 -0
  1158. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -0
  1159. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +3 -0
  1160. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -0
  1161. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +3 -0
  1162. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -0
  1163. package/node_modules/@anthropic-ai/sdk/resources/messages/index.js +9 -0
  1164. package/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -0
  1165. package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs +4 -0
  1166. package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -0
  1167. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1264 -0
  1168. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -0
  1169. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1264 -0
  1170. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -0
  1171. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +72 -0
  1172. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -0
  1173. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +67 -0
  1174. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -0
  1175. package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +2 -0
  1176. package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -0
  1177. package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +2 -0
  1178. package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -0
  1179. package/node_modules/@anthropic-ai/sdk/resources/messages.js +6 -0
  1180. package/node_modules/@anthropic-ai/sdk/resources/messages.js.map +1 -0
  1181. package/node_modules/@anthropic-ai/sdk/resources/messages.mjs +3 -0
  1182. package/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -0
  1183. package/node_modules/@anthropic-ai/sdk/resources/models.d.mts +59 -0
  1184. package/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -0
  1185. package/node_modules/@anthropic-ai/sdk/resources/models.d.ts +59 -0
  1186. package/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -0
  1187. package/node_modules/@anthropic-ai/sdk/resources/models.js +45 -0
  1188. package/node_modules/@anthropic-ai/sdk/resources/models.js.map +1 -0
  1189. package/node_modules/@anthropic-ai/sdk/resources/models.mjs +41 -0
  1190. package/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -0
  1191. package/node_modules/@anthropic-ai/sdk/resources/shared.d.mts +42 -0
  1192. package/node_modules/@anthropic-ai/sdk/resources/shared.d.mts.map +1 -0
  1193. package/node_modules/@anthropic-ai/sdk/resources/shared.d.ts +42 -0
  1194. package/node_modules/@anthropic-ai/sdk/resources/shared.d.ts.map +1 -0
  1195. package/node_modules/@anthropic-ai/sdk/resources/shared.js +4 -0
  1196. package/node_modules/@anthropic-ai/sdk/resources/shared.js.map +1 -0
  1197. package/node_modules/@anthropic-ai/sdk/resources/shared.mjs +3 -0
  1198. package/node_modules/@anthropic-ai/sdk/resources/shared.mjs.map +1 -0
  1199. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts +2 -0
  1200. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts.map +1 -0
  1201. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +2 -0
  1202. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +1 -0
  1203. package/node_modules/@anthropic-ai/sdk/resources/top-level.js +4 -0
  1204. package/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +1 -0
  1205. package/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +3 -0
  1206. package/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +1 -0
  1207. package/node_modules/@anthropic-ai/sdk/resources.d.mts +2 -0
  1208. package/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -0
  1209. package/node_modules/@anthropic-ai/sdk/resources.d.ts +2 -0
  1210. package/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -0
  1211. package/node_modules/@anthropic-ai/sdk/resources.js +5 -0
  1212. package/node_modules/@anthropic-ai/sdk/resources.js.map +1 -0
  1213. package/node_modules/@anthropic-ai/sdk/resources.mjs +2 -0
  1214. package/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -0
  1215. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +3 -0
  1216. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +264 -0
  1217. package/node_modules/@anthropic-ai/sdk/src/api-promise.ts +2 -0
  1218. package/node_modules/@anthropic-ai/sdk/src/client.ts +1070 -0
  1219. package/node_modules/@anthropic-ai/sdk/src/core/README.md +3 -0
  1220. package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +101 -0
  1221. package/node_modules/@anthropic-ai/sdk/src/core/error.ts +133 -0
  1222. package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +201 -0
  1223. package/node_modules/@anthropic-ai/sdk/src/core/resource.ts +11 -0
  1224. package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +331 -0
  1225. package/node_modules/@anthropic-ai/sdk/src/core/uploads.ts +2 -0
  1226. package/node_modules/@anthropic-ai/sdk/src/error.ts +2 -0
  1227. package/node_modules/@anthropic-ai/sdk/src/index.ts +23 -0
  1228. package/node_modules/@anthropic-ai/sdk/src/internal/README.md +3 -0
  1229. package/node_modules/@anthropic-ai/sdk/src/internal/builtin-types.ts +93 -0
  1230. package/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +12 -0
  1231. package/node_modules/@anthropic-ai/sdk/src/internal/decoders/jsonl.ts +48 -0
  1232. package/node_modules/@anthropic-ai/sdk/src/internal/decoders/line.ts +135 -0
  1233. package/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +196 -0
  1234. package/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +33 -0
  1235. package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +99 -0
  1236. package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +84 -0
  1237. package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +39 -0
  1238. package/node_modules/@anthropic-ai/sdk/src/internal/shim-types.d.ts +28 -0
  1239. package/node_modules/@anthropic-ai/sdk/src/internal/shims.ts +107 -0
  1240. package/node_modules/@anthropic-ai/sdk/src/internal/stream-utils.ts +32 -0
  1241. package/node_modules/@anthropic-ai/sdk/src/internal/to-file.ts +159 -0
  1242. package/node_modules/@anthropic-ai/sdk/src/internal/types.ts +92 -0
  1243. package/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +193 -0
  1244. package/node_modules/@anthropic-ai/sdk/src/internal/utils/base64.ts +40 -0
  1245. package/node_modules/@anthropic-ai/sdk/src/internal/utils/bytes.ts +32 -0
  1246. package/node_modules/@anthropic-ai/sdk/src/internal/utils/env.ts +18 -0
  1247. package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +127 -0
  1248. package/node_modules/@anthropic-ai/sdk/src/internal/utils/path.ts +65 -0
  1249. package/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +3 -0
  1250. package/node_modules/@anthropic-ai/sdk/src/internal/utils/uuid.ts +17 -0
  1251. package/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +102 -0
  1252. package/node_modules/@anthropic-ai/sdk/src/internal/utils.ts +8 -0
  1253. package/node_modules/@anthropic-ai/sdk/src/lib/.keep +4 -0
  1254. package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +683 -0
  1255. package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +684 -0
  1256. package/node_modules/@anthropic-ai/sdk/src/pagination.ts +2 -0
  1257. package/node_modules/@anthropic-ai/sdk/src/resource.ts +2 -0
  1258. package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +380 -0
  1259. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +258 -0
  1260. package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +148 -0
  1261. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +502 -0
  1262. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +135 -0
  1263. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +2249 -0
  1264. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages.ts +3 -0
  1265. package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +118 -0
  1266. package/node_modules/@anthropic-ai/sdk/src/resources/beta.ts +3 -0
  1267. package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +231 -0
  1268. package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +121 -0
  1269. package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +396 -0
  1270. package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +110 -0
  1271. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +1783 -0
  1272. package/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +3 -0
  1273. package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +103 -0
  1274. package/node_modules/@anthropic-ai/sdk/src/resources/shared.ts +72 -0
  1275. package/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +3 -0
  1276. package/node_modules/@anthropic-ai/sdk/src/resources.ts +1 -0
  1277. package/node_modules/@anthropic-ai/sdk/src/streaming.ts +2 -0
  1278. package/node_modules/@anthropic-ai/sdk/src/tsconfig.json +11 -0
  1279. package/node_modules/@anthropic-ai/sdk/src/uploads.ts +2 -0
  1280. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -0
  1281. package/node_modules/@anthropic-ai/sdk/streaming.d.mts +2 -0
  1282. package/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -0
  1283. package/node_modules/@anthropic-ai/sdk/streaming.d.ts +2 -0
  1284. package/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -0
  1285. package/node_modules/@anthropic-ai/sdk/streaming.js +6 -0
  1286. package/node_modules/@anthropic-ai/sdk/streaming.js.map +1 -0
  1287. package/node_modules/@anthropic-ai/sdk/streaming.mjs +2 -0
  1288. package/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -0
  1289. package/node_modules/@anthropic-ai/sdk/uploads.d.mts +2 -0
  1290. package/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -0
  1291. package/node_modules/@anthropic-ai/sdk/uploads.d.ts +2 -0
  1292. package/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -0
  1293. package/node_modules/@anthropic-ai/sdk/uploads.js +6 -0
  1294. package/node_modules/@anthropic-ai/sdk/uploads.js.map +1 -0
  1295. package/node_modules/@anthropic-ai/sdk/uploads.mjs +2 -0
  1296. package/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -0
  1297. package/node_modules/@anthropic-ai/sdk/version.d.mts +2 -0
  1298. package/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -0
  1299. package/node_modules/@anthropic-ai/sdk/version.d.ts +2 -0
  1300. package/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -0
  1301. package/node_modules/@anthropic-ai/sdk/version.js +5 -0
  1302. package/node_modules/@anthropic-ai/sdk/version.js.map +1 -0
  1303. package/node_modules/@anthropic-ai/sdk/version.mjs +2 -0
  1304. package/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -0
  1305. package/node_modules/@dimivelev/chimera-agent-core/dist/agent-loop.d.ts +24 -0
  1306. package/node_modules/@dimivelev/chimera-agent-core/dist/agent-loop.d.ts.map +1 -0
  1307. package/node_modules/@dimivelev/chimera-agent-core/dist/agent-loop.js +502 -0
  1308. package/node_modules/@dimivelev/chimera-agent-core/dist/agent-loop.js.map +1 -0
  1309. package/node_modules/@dimivelev/chimera-agent-core/dist/agent.d.ts +118 -0
  1310. package/node_modules/@dimivelev/chimera-agent-core/dist/agent.d.ts.map +1 -0
  1311. package/node_modules/@dimivelev/chimera-agent-core/dist/agent.js +402 -0
  1312. package/node_modules/@dimivelev/chimera-agent-core/dist/agent.js.map +1 -0
  1313. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/agent-harness.d.ts +95 -0
  1314. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/agent-harness.d.ts.map +1 -0
  1315. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/agent-harness.js +963 -0
  1316. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/agent-harness.js.map +1 -0
  1317. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/branch-summarization.d.ts +53 -0
  1318. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -0
  1319. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/branch-summarization.js +175 -0
  1320. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -0
  1321. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/compaction.d.ts +95 -0
  1322. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -0
  1323. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/compaction.js +528 -0
  1324. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/compaction.js.map +1 -0
  1325. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/utils.d.ts +25 -0
  1326. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/utils.d.ts.map +1 -0
  1327. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/utils.js +131 -0
  1328. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/compaction/utils.js.map +1 -0
  1329. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/env/nodejs.d.ts +51 -0
  1330. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/env/nodejs.d.ts.map +1 -0
  1331. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/env/nodejs.js +486 -0
  1332. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/env/nodejs.js.map +1 -0
  1333. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/messages.d.ts +51 -0
  1334. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/messages.d.ts.map +1 -0
  1335. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/messages.js +102 -0
  1336. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/messages.js.map +1 -0
  1337. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/prompt-templates.d.ts +48 -0
  1338. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/prompt-templates.d.ts.map +1 -0
  1339. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/prompt-templates.js +230 -0
  1340. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/prompt-templates.js.map +1 -0
  1341. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-repo.d.ts +26 -0
  1342. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-repo.d.ts.map +1 -0
  1343. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-repo.js +101 -0
  1344. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-repo.js.map +1 -0
  1345. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-storage.d.ts +33 -0
  1346. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-storage.d.ts.map +1 -0
  1347. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-storage.js +231 -0
  1348. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/jsonl-storage.js.map +1 -0
  1349. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-repo.d.ts +18 -0
  1350. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-repo.d.ts.map +1 -0
  1351. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-repo.js +42 -0
  1352. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-repo.js.map +1 -0
  1353. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-storage.d.ts +25 -0
  1354. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-storage.d.ts.map +1 -0
  1355. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-storage.js +114 -0
  1356. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/memory-storage.js.map +1 -0
  1357. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/repo-utils.d.ts +11 -0
  1358. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/repo-utils.d.ts.map +1 -0
  1359. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/repo-utils.js +39 -0
  1360. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/repo-utils.js.map +1 -0
  1361. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/session.d.ts +33 -0
  1362. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/session.d.ts.map +1 -0
  1363. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/session.js +210 -0
  1364. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/session.js.map +1 -0
  1365. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/uuid.d.ts +2 -0
  1366. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/uuid.d.ts.map +1 -0
  1367. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/uuid.js +50 -0
  1368. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/session/uuid.js.map +1 -0
  1369. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/skills.d.ts +44 -0
  1370. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/skills.d.ts.map +1 -0
  1371. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/skills.js +311 -0
  1372. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/skills.js.map +1 -0
  1373. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/system-prompt.d.ts +3 -0
  1374. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/system-prompt.d.ts.map +1 -0
  1375. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/system-prompt.js +30 -0
  1376. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/system-prompt.js.map +1 -0
  1377. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/types.d.ts +615 -0
  1378. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/types.d.ts.map +1 -0
  1379. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/types.js +94 -0
  1380. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/types.js.map +1 -0
  1381. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/shell-output.d.ts +14 -0
  1382. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/shell-output.d.ts.map +1 -0
  1383. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/shell-output.js +126 -0
  1384. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/shell-output.js.map +1 -0
  1385. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/truncate.d.ts +70 -0
  1386. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/truncate.d.ts.map +1 -0
  1387. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/truncate.js +290 -0
  1388. package/node_modules/@dimivelev/chimera-agent-core/dist/harness/utils/truncate.js.map +1 -0
  1389. package/node_modules/@dimivelev/chimera-agent-core/dist/index.d.ts +20 -0
  1390. package/node_modules/@dimivelev/chimera-agent-core/dist/index.d.ts.map +1 -0
  1391. package/node_modules/@dimivelev/chimera-agent-core/dist/index.js +25 -0
  1392. package/node_modules/@dimivelev/chimera-agent-core/dist/index.js.map +1 -0
  1393. package/node_modules/@dimivelev/chimera-agent-core/dist/node.d.ts +3 -0
  1394. package/node_modules/@dimivelev/chimera-agent-core/dist/node.d.ts.map +1 -0
  1395. package/node_modules/@dimivelev/chimera-agent-core/dist/node.js +3 -0
  1396. package/node_modules/@dimivelev/chimera-agent-core/dist/node.js.map +1 -0
  1397. package/node_modules/@dimivelev/chimera-agent-core/dist/proxy.d.ts +69 -0
  1398. package/node_modules/@dimivelev/chimera-agent-core/dist/proxy.d.ts.map +1 -0
  1399. package/node_modules/@dimivelev/chimera-agent-core/dist/proxy.js +278 -0
  1400. package/node_modules/@dimivelev/chimera-agent-core/dist/proxy.js.map +1 -0
  1401. package/node_modules/@dimivelev/chimera-agent-core/dist/types.d.ts +393 -0
  1402. package/node_modules/@dimivelev/chimera-agent-core/dist/types.d.ts.map +1 -0
  1403. package/node_modules/@dimivelev/chimera-agent-core/dist/types.js +2 -0
  1404. package/node_modules/@dimivelev/chimera-agent-core/dist/types.js.map +1 -0
  1405. package/node_modules/@dimivelev/chimera-agent-core/package.json +60 -0
  1406. package/node_modules/@dimivelev/chimera-ai/dist/api-registry.d.ts +20 -0
  1407. package/node_modules/@dimivelev/chimera-ai/dist/api-registry.d.ts.map +1 -0
  1408. package/node_modules/@dimivelev/chimera-ai/dist/api-registry.js +44 -0
  1409. package/node_modules/@dimivelev/chimera-ai/dist/api-registry.js.map +1 -0
  1410. package/node_modules/@dimivelev/chimera-ai/dist/bedrock-provider.d.ts +5 -0
  1411. package/node_modules/@dimivelev/chimera-ai/dist/bedrock-provider.d.ts.map +1 -0
  1412. package/node_modules/@dimivelev/chimera-ai/dist/bedrock-provider.js +6 -0
  1413. package/node_modules/@dimivelev/chimera-ai/dist/bedrock-provider.js.map +1 -0
  1414. package/node_modules/@dimivelev/chimera-ai/dist/cli.d.ts +3 -0
  1415. package/node_modules/@dimivelev/chimera-ai/dist/cli.d.ts.map +1 -0
  1416. package/node_modules/@dimivelev/chimera-ai/dist/cli.js +130 -0
  1417. package/node_modules/@dimivelev/chimera-ai/dist/cli.js.map +1 -0
  1418. package/node_modules/@dimivelev/chimera-ai/dist/env-api-keys.d.ts +18 -0
  1419. package/node_modules/@dimivelev/chimera-ai/dist/env-api-keys.d.ts.map +1 -0
  1420. package/node_modules/@dimivelev/chimera-ai/dist/env-api-keys.js +178 -0
  1421. package/node_modules/@dimivelev/chimera-ai/dist/env-api-keys.js.map +1 -0
  1422. package/node_modules/@dimivelev/chimera-ai/dist/image-models.d.ts +10 -0
  1423. package/node_modules/@dimivelev/chimera-ai/dist/image-models.d.ts.map +1 -0
  1424. package/node_modules/@dimivelev/chimera-ai/dist/image-models.generated.d.ts +4 -0
  1425. package/node_modules/@dimivelev/chimera-ai/dist/image-models.generated.d.ts.map +1 -0
  1426. package/node_modules/@dimivelev/chimera-ai/dist/image-models.generated.js +6 -0
  1427. package/node_modules/@dimivelev/chimera-ai/dist/image-models.generated.js.map +1 -0
  1428. package/node_modules/@dimivelev/chimera-ai/dist/image-models.js +23 -0
  1429. package/node_modules/@dimivelev/chimera-ai/dist/image-models.js.map +1 -0
  1430. package/node_modules/@dimivelev/chimera-ai/dist/images-api-registry.d.ts +14 -0
  1431. package/node_modules/@dimivelev/chimera-ai/dist/images-api-registry.d.ts.map +1 -0
  1432. package/node_modules/@dimivelev/chimera-ai/dist/images-api-registry.js +22 -0
  1433. package/node_modules/@dimivelev/chimera-ai/dist/images-api-registry.js.map +1 -0
  1434. package/node_modules/@dimivelev/chimera-ai/dist/images.d.ts +4 -0
  1435. package/node_modules/@dimivelev/chimera-ai/dist/images.d.ts.map +1 -0
  1436. package/node_modules/@dimivelev/chimera-ai/dist/images.js +14 -0
  1437. package/node_modules/@dimivelev/chimera-ai/dist/images.js.map +1 -0
  1438. package/node_modules/@dimivelev/chimera-ai/dist/index.d.ts +32 -0
  1439. package/node_modules/@dimivelev/chimera-ai/dist/index.d.ts.map +1 -0
  1440. package/node_modules/@dimivelev/chimera-ai/dist/index.js +20 -0
  1441. package/node_modules/@dimivelev/chimera-ai/dist/index.js.map +1 -0
  1442. package/node_modules/@dimivelev/chimera-ai/dist/models.d.ts +18 -0
  1443. package/node_modules/@dimivelev/chimera-ai/dist/models.d.ts.map +1 -0
  1444. package/node_modules/@dimivelev/chimera-ai/dist/models.generated.d.ts +14714 -0
  1445. package/node_modules/@dimivelev/chimera-ai/dist/models.generated.d.ts.map +1 -0
  1446. package/node_modules/@dimivelev/chimera-ai/dist/models.generated.js +13379 -0
  1447. package/node_modules/@dimivelev/chimera-ai/dist/models.generated.js.map +1 -0
  1448. package/node_modules/@dimivelev/chimera-ai/dist/models.js +71 -0
  1449. package/node_modules/@dimivelev/chimera-ai/dist/models.js.map +1 -0
  1450. package/node_modules/@dimivelev/chimera-ai/dist/oauth.d.ts +2 -0
  1451. package/node_modules/@dimivelev/chimera-ai/dist/oauth.d.ts.map +1 -0
  1452. package/node_modules/@dimivelev/chimera-ai/dist/oauth.js +2 -0
  1453. package/node_modules/@dimivelev/chimera-ai/dist/oauth.js.map +1 -0
  1454. package/node_modules/@dimivelev/chimera-ai/dist/providers/amazon-bedrock.d.ts +38 -0
  1455. package/node_modules/@dimivelev/chimera-ai/dist/providers/amazon-bedrock.d.ts.map +1 -0
  1456. package/node_modules/@dimivelev/chimera-ai/dist/providers/amazon-bedrock.js +826 -0
  1457. package/node_modules/@dimivelev/chimera-ai/dist/providers/amazon-bedrock.js.map +1 -0
  1458. package/node_modules/@dimivelev/chimera-ai/dist/providers/anthropic.d.ts +71 -0
  1459. package/node_modules/@dimivelev/chimera-ai/dist/providers/anthropic.d.ts.map +1 -0
  1460. package/node_modules/@dimivelev/chimera-ai/dist/providers/anthropic.js +959 -0
  1461. package/node_modules/@dimivelev/chimera-ai/dist/providers/anthropic.js.map +1 -0
  1462. package/node_modules/@dimivelev/chimera-ai/dist/providers/azure-openai-responses.d.ts +15 -0
  1463. package/node_modules/@dimivelev/chimera-ai/dist/providers/azure-openai-responses.d.ts.map +1 -0
  1464. package/node_modules/@dimivelev/chimera-ai/dist/providers/azure-openai-responses.js +221 -0
  1465. package/node_modules/@dimivelev/chimera-ai/dist/providers/azure-openai-responses.js.map +1 -0
  1466. package/node_modules/@dimivelev/chimera-ai/dist/providers/cloudflare.d.ts +13 -0
  1467. package/node_modules/@dimivelev/chimera-ai/dist/providers/cloudflare.d.ts.map +1 -0
  1468. package/node_modules/@dimivelev/chimera-ai/dist/providers/cloudflare.js +26 -0
  1469. package/node_modules/@dimivelev/chimera-ai/dist/providers/cloudflare.js.map +1 -0
  1470. package/node_modules/@dimivelev/chimera-ai/dist/providers/faux.d.ts +56 -0
  1471. package/node_modules/@dimivelev/chimera-ai/dist/providers/faux.d.ts.map +1 -0
  1472. package/node_modules/@dimivelev/chimera-ai/dist/providers/faux.js +368 -0
  1473. package/node_modules/@dimivelev/chimera-ai/dist/providers/faux.js.map +1 -0
  1474. package/node_modules/@dimivelev/chimera-ai/dist/providers/github-copilot-headers.d.ts +8 -0
  1475. package/node_modules/@dimivelev/chimera-ai/dist/providers/github-copilot-headers.d.ts.map +1 -0
  1476. package/node_modules/@dimivelev/chimera-ai/dist/providers/github-copilot-headers.js +29 -0
  1477. package/node_modules/@dimivelev/chimera-ai/dist/providers/github-copilot-headers.js.map +1 -0
  1478. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-shared.d.ts +70 -0
  1479. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-shared.d.ts.map +1 -0
  1480. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-shared.js +329 -0
  1481. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-shared.js.map +1 -0
  1482. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-vertex.d.ts +15 -0
  1483. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-vertex.d.ts.map +1 -0
  1484. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-vertex.js +442 -0
  1485. package/node_modules/@dimivelev/chimera-ai/dist/providers/google-vertex.js.map +1 -0
  1486. package/node_modules/@dimivelev/chimera-ai/dist/providers/google.d.ts +13 -0
  1487. package/node_modules/@dimivelev/chimera-ai/dist/providers/google.d.ts.map +1 -0
  1488. package/node_modules/@dimivelev/chimera-ai/dist/providers/google.js +402 -0
  1489. package/node_modules/@dimivelev/chimera-ai/dist/providers/google.js.map +1 -0
  1490. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/openrouter.d.ts +3 -0
  1491. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/openrouter.d.ts.map +1 -0
  1492. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/openrouter.js +128 -0
  1493. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/openrouter.js.map +1 -0
  1494. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/register-builtins.d.ts +4 -0
  1495. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/register-builtins.d.ts.map +1 -0
  1496. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/register-builtins.js +34 -0
  1497. package/node_modules/@dimivelev/chimera-ai/dist/providers/images/register-builtins.js.map +1 -0
  1498. package/node_modules/@dimivelev/chimera-ai/dist/providers/mistral.d.ts +25 -0
  1499. package/node_modules/@dimivelev/chimera-ai/dist/providers/mistral.d.ts.map +1 -0
  1500. package/node_modules/@dimivelev/chimera-ai/dist/providers/mistral.js +534 -0
  1501. package/node_modules/@dimivelev/chimera-ai/dist/providers/mistral.js.map +1 -0
  1502. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-codex-responses.d.ts +30 -0
  1503. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-codex-responses.d.ts.map +1 -0
  1504. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-codex-responses.js +1171 -0
  1505. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-codex-responses.js.map +1 -0
  1506. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-completions.d.ts +19 -0
  1507. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-completions.d.ts.map +1 -0
  1508. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-completions.js +956 -0
  1509. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-completions.js.map +1 -0
  1510. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-prompt-cache.d.ts +3 -0
  1511. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-prompt-cache.d.ts.map +1 -0
  1512. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-prompt-cache.js +10 -0
  1513. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-prompt-cache.js.map +1 -0
  1514. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses-shared.d.ts +18 -0
  1515. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses-shared.d.ts.map +1 -0
  1516. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses-shared.js +495 -0
  1517. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses-shared.js.map +1 -0
  1518. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses.d.ts +13 -0
  1519. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses.d.ts.map +1 -0
  1520. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses.js +233 -0
  1521. package/node_modules/@dimivelev/chimera-ai/dist/providers/openai-responses.js.map +1 -0
  1522. package/node_modules/@dimivelev/chimera-ai/dist/providers/register-builtins.d.ts +35 -0
  1523. package/node_modules/@dimivelev/chimera-ai/dist/providers/register-builtins.d.ts.map +1 -0
  1524. package/node_modules/@dimivelev/chimera-ai/dist/providers/register-builtins.js +254 -0
  1525. package/node_modules/@dimivelev/chimera-ai/dist/providers/register-builtins.js.map +1 -0
  1526. package/node_modules/@dimivelev/chimera-ai/dist/providers/simple-options.d.ts +8 -0
  1527. package/node_modules/@dimivelev/chimera-ai/dist/providers/simple-options.d.ts.map +1 -0
  1528. package/node_modules/@dimivelev/chimera-ai/dist/providers/simple-options.js +42 -0
  1529. package/node_modules/@dimivelev/chimera-ai/dist/providers/simple-options.js.map +1 -0
  1530. package/node_modules/@dimivelev/chimera-ai/dist/providers/transform-messages.d.ts +8 -0
  1531. package/node_modules/@dimivelev/chimera-ai/dist/providers/transform-messages.d.ts.map +1 -0
  1532. package/node_modules/@dimivelev/chimera-ai/dist/providers/transform-messages.js +184 -0
  1533. package/node_modules/@dimivelev/chimera-ai/dist/providers/transform-messages.js.map +1 -0
  1534. package/node_modules/@dimivelev/chimera-ai/dist/session-resources.d.ts +4 -0
  1535. package/node_modules/@dimivelev/chimera-ai/dist/session-resources.d.ts.map +1 -0
  1536. package/node_modules/@dimivelev/chimera-ai/dist/session-resources.js +22 -0
  1537. package/node_modules/@dimivelev/chimera-ai/dist/session-resources.js.map +1 -0
  1538. package/node_modules/@dimivelev/chimera-ai/dist/stream.d.ts +8 -0
  1539. package/node_modules/@dimivelev/chimera-ai/dist/stream.d.ts.map +1 -0
  1540. package/node_modules/@dimivelev/chimera-ai/dist/stream.js +39 -0
  1541. package/node_modules/@dimivelev/chimera-ai/dist/stream.js.map +1 -0
  1542. package/node_modules/@dimivelev/chimera-ai/dist/types.d.ts +514 -0
  1543. package/node_modules/@dimivelev/chimera-ai/dist/types.d.ts.map +1 -0
  1544. package/node_modules/@dimivelev/chimera-ai/dist/types.js +2 -0
  1545. package/node_modules/@dimivelev/chimera-ai/dist/types.js.map +1 -0
  1546. package/node_modules/@dimivelev/chimera-ai/dist/utils/abort-signals.d.ts +6 -0
  1547. package/node_modules/@dimivelev/chimera-ai/dist/utils/abort-signals.d.ts.map +1 -0
  1548. package/node_modules/@dimivelev/chimera-ai/dist/utils/abort-signals.js +34 -0
  1549. package/node_modules/@dimivelev/chimera-ai/dist/utils/abort-signals.js.map +1 -0
  1550. package/node_modules/@dimivelev/chimera-ai/dist/utils/diagnostics.d.ts +19 -0
  1551. package/node_modules/@dimivelev/chimera-ai/dist/utils/diagnostics.d.ts.map +1 -0
  1552. package/node_modules/@dimivelev/chimera-ai/dist/utils/diagnostics.js +25 -0
  1553. package/node_modules/@dimivelev/chimera-ai/dist/utils/diagnostics.js.map +1 -0
  1554. package/node_modules/@dimivelev/chimera-ai/dist/utils/event-stream.d.ts +21 -0
  1555. package/node_modules/@dimivelev/chimera-ai/dist/utils/event-stream.d.ts.map +1 -0
  1556. package/node_modules/@dimivelev/chimera-ai/dist/utils/event-stream.js +81 -0
  1557. package/node_modules/@dimivelev/chimera-ai/dist/utils/event-stream.js.map +1 -0
  1558. package/node_modules/@dimivelev/chimera-ai/dist/utils/hash.d.ts +3 -0
  1559. package/node_modules/@dimivelev/chimera-ai/dist/utils/hash.d.ts.map +1 -0
  1560. package/node_modules/@dimivelev/chimera-ai/dist/utils/hash.js +14 -0
  1561. package/node_modules/@dimivelev/chimera-ai/dist/utils/hash.js.map +1 -0
  1562. package/node_modules/@dimivelev/chimera-ai/dist/utils/headers.d.ts +2 -0
  1563. package/node_modules/@dimivelev/chimera-ai/dist/utils/headers.d.ts.map +1 -0
  1564. package/node_modules/@dimivelev/chimera-ai/dist/utils/headers.js +8 -0
  1565. package/node_modules/@dimivelev/chimera-ai/dist/utils/headers.js.map +1 -0
  1566. package/node_modules/@dimivelev/chimera-ai/dist/utils/json-parse.d.ts +16 -0
  1567. package/node_modules/@dimivelev/chimera-ai/dist/utils/json-parse.d.ts.map +1 -0
  1568. package/node_modules/@dimivelev/chimera-ai/dist/utils/json-parse.js +113 -0
  1569. package/node_modules/@dimivelev/chimera-ai/dist/utils/json-parse.js.map +1 -0
  1570. package/node_modules/@dimivelev/chimera-ai/dist/utils/node-http-proxy.d.ts +10 -0
  1571. package/node_modules/@dimivelev/chimera-ai/dist/utils/node-http-proxy.d.ts.map +1 -0
  1572. package/node_modules/@dimivelev/chimera-ai/dist/utils/node-http-proxy.js +97 -0
  1573. package/node_modules/@dimivelev/chimera-ai/dist/utils/node-http-proxy.js.map +1 -0
  1574. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/anthropic.d.ts +25 -0
  1575. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/anthropic.d.ts.map +1 -0
  1576. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/anthropic.js +335 -0
  1577. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/anthropic.js.map +1 -0
  1578. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/device-code.d.ts +21 -0
  1579. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/device-code.d.ts.map +1 -0
  1580. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/device-code.js +56 -0
  1581. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/device-code.js.map +1 -0
  1582. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/github-copilot.d.ts +30 -0
  1583. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -0
  1584. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/github-copilot.js +268 -0
  1585. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/github-copilot.js.map +1 -0
  1586. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/index.d.ts +58 -0
  1587. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/index.d.ts.map +1 -0
  1588. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/index.js +122 -0
  1589. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/index.js.map +1 -0
  1590. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/oauth-page.d.ts +3 -0
  1591. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/oauth-page.d.ts.map +1 -0
  1592. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/oauth-page.js +105 -0
  1593. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/oauth-page.js.map +1 -0
  1594. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/openai-codex.d.ts +43 -0
  1595. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/openai-codex.d.ts.map +1 -0
  1596. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/openai-codex.js +485 -0
  1597. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/openai-codex.js.map +1 -0
  1598. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/pkce.d.ts +13 -0
  1599. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/pkce.d.ts.map +1 -0
  1600. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/pkce.js +31 -0
  1601. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/pkce.js.map +1 -0
  1602. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/types.d.ts +64 -0
  1603. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/types.d.ts.map +1 -0
  1604. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/types.js +2 -0
  1605. package/node_modules/@dimivelev/chimera-ai/dist/utils/oauth/types.js.map +1 -0
  1606. package/node_modules/@dimivelev/chimera-ai/dist/utils/overflow.d.ts +57 -0
  1607. package/node_modules/@dimivelev/chimera-ai/dist/utils/overflow.d.ts.map +1 -0
  1608. package/node_modules/@dimivelev/chimera-ai/dist/utils/overflow.js +154 -0
  1609. package/node_modules/@dimivelev/chimera-ai/dist/utils/overflow.js.map +1 -0
  1610. package/node_modules/@dimivelev/chimera-ai/dist/utils/sanitize-unicode.d.ts +22 -0
  1611. package/node_modules/@dimivelev/chimera-ai/dist/utils/sanitize-unicode.d.ts.map +1 -0
  1612. package/node_modules/@dimivelev/chimera-ai/dist/utils/sanitize-unicode.js +26 -0
  1613. package/node_modules/@dimivelev/chimera-ai/dist/utils/sanitize-unicode.js.map +1 -0
  1614. package/node_modules/@dimivelev/chimera-ai/dist/utils/typebox-helpers.d.ts +17 -0
  1615. package/node_modules/@dimivelev/chimera-ai/dist/utils/typebox-helpers.d.ts.map +1 -0
  1616. package/node_modules/@dimivelev/chimera-ai/dist/utils/typebox-helpers.js +21 -0
  1617. package/node_modules/@dimivelev/chimera-ai/dist/utils/typebox-helpers.js.map +1 -0
  1618. package/node_modules/@dimivelev/chimera-ai/dist/utils/validation.d.ts +18 -0
  1619. package/node_modules/@dimivelev/chimera-ai/dist/utils/validation.d.ts.map +1 -0
  1620. package/node_modules/@dimivelev/chimera-ai/dist/utils/validation.js +281 -0
  1621. package/node_modules/@dimivelev/chimera-ai/dist/utils/validation.js.map +1 -0
  1622. package/node_modules/@dimivelev/chimera-ai/package.json +106 -0
  1623. package/node_modules/@dimivelev/chimera-tui/dist/autocomplete.d.ts +54 -0
  1624. package/node_modules/@dimivelev/chimera-tui/dist/autocomplete.d.ts.map +1 -0
  1625. package/node_modules/@dimivelev/chimera-tui/dist/autocomplete.js +632 -0
  1626. package/node_modules/@dimivelev/chimera-tui/dist/autocomplete.js.map +1 -0
  1627. package/node_modules/@dimivelev/chimera-tui/dist/components/box.d.ts +22 -0
  1628. package/node_modules/@dimivelev/chimera-tui/dist/components/box.d.ts.map +1 -0
  1629. package/node_modules/@dimivelev/chimera-tui/dist/components/box.js +104 -0
  1630. package/node_modules/@dimivelev/chimera-tui/dist/components/box.js.map +1 -0
  1631. package/node_modules/@dimivelev/chimera-tui/dist/components/cancellable-loader.d.ts +22 -0
  1632. package/node_modules/@dimivelev/chimera-tui/dist/components/cancellable-loader.d.ts.map +1 -0
  1633. package/node_modules/@dimivelev/chimera-tui/dist/components/cancellable-loader.js +35 -0
  1634. package/node_modules/@dimivelev/chimera-tui/dist/components/cancellable-loader.js.map +1 -0
  1635. package/node_modules/@dimivelev/chimera-tui/dist/components/editor.d.ts +249 -0
  1636. package/node_modules/@dimivelev/chimera-tui/dist/components/editor.d.ts.map +1 -0
  1637. package/node_modules/@dimivelev/chimera-tui/dist/components/editor.js +1857 -0
  1638. package/node_modules/@dimivelev/chimera-tui/dist/components/editor.js.map +1 -0
  1639. package/node_modules/@dimivelev/chimera-tui/dist/components/image.d.ts +28 -0
  1640. package/node_modules/@dimivelev/chimera-tui/dist/components/image.d.ts.map +1 -0
  1641. package/node_modules/@dimivelev/chimera-tui/dist/components/image.js +89 -0
  1642. package/node_modules/@dimivelev/chimera-tui/dist/components/image.js.map +1 -0
  1643. package/node_modules/@dimivelev/chimera-tui/dist/components/input.d.ts +37 -0
  1644. package/node_modules/@dimivelev/chimera-tui/dist/components/input.d.ts.map +1 -0
  1645. package/node_modules/@dimivelev/chimera-tui/dist/components/input.js +378 -0
  1646. package/node_modules/@dimivelev/chimera-tui/dist/components/input.js.map +1 -0
  1647. package/node_modules/@dimivelev/chimera-tui/dist/components/loader.d.ts +31 -0
  1648. package/node_modules/@dimivelev/chimera-tui/dist/components/loader.d.ts.map +1 -0
  1649. package/node_modules/@dimivelev/chimera-tui/dist/components/loader.js +69 -0
  1650. package/node_modules/@dimivelev/chimera-tui/dist/components/loader.js.map +1 -0
  1651. package/node_modules/@dimivelev/chimera-tui/dist/components/markdown.d.ts +96 -0
  1652. package/node_modules/@dimivelev/chimera-tui/dist/components/markdown.d.ts.map +1 -0
  1653. package/node_modules/@dimivelev/chimera-tui/dist/components/markdown.js +644 -0
  1654. package/node_modules/@dimivelev/chimera-tui/dist/components/markdown.js.map +1 -0
  1655. package/node_modules/@dimivelev/chimera-tui/dist/components/select-list.d.ts +50 -0
  1656. package/node_modules/@dimivelev/chimera-tui/dist/components/select-list.d.ts.map +1 -0
  1657. package/node_modules/@dimivelev/chimera-tui/dist/components/select-list.js +159 -0
  1658. package/node_modules/@dimivelev/chimera-tui/dist/components/select-list.js.map +1 -0
  1659. package/node_modules/@dimivelev/chimera-tui/dist/components/settings-list.d.ts +50 -0
  1660. package/node_modules/@dimivelev/chimera-tui/dist/components/settings-list.d.ts.map +1 -0
  1661. package/node_modules/@dimivelev/chimera-tui/dist/components/settings-list.js +185 -0
  1662. package/node_modules/@dimivelev/chimera-tui/dist/components/settings-list.js.map +1 -0
  1663. package/node_modules/@dimivelev/chimera-tui/dist/components/spacer.d.ts +12 -0
  1664. package/node_modules/@dimivelev/chimera-tui/dist/components/spacer.d.ts.map +1 -0
  1665. package/node_modules/@dimivelev/chimera-tui/dist/components/spacer.js +23 -0
  1666. package/node_modules/@dimivelev/chimera-tui/dist/components/spacer.js.map +1 -0
  1667. package/node_modules/@dimivelev/chimera-tui/dist/components/text.d.ts +19 -0
  1668. package/node_modules/@dimivelev/chimera-tui/dist/components/text.d.ts.map +1 -0
  1669. package/node_modules/@dimivelev/chimera-tui/dist/components/text.js +89 -0
  1670. package/node_modules/@dimivelev/chimera-tui/dist/components/text.js.map +1 -0
  1671. package/node_modules/@dimivelev/chimera-tui/dist/components/truncated-text.d.ts +13 -0
  1672. package/node_modules/@dimivelev/chimera-tui/dist/components/truncated-text.d.ts.map +1 -0
  1673. package/node_modules/@dimivelev/chimera-tui/dist/components/truncated-text.js +51 -0
  1674. package/node_modules/@dimivelev/chimera-tui/dist/components/truncated-text.js.map +1 -0
  1675. package/node_modules/@dimivelev/chimera-tui/dist/editor-component.d.ts +39 -0
  1676. package/node_modules/@dimivelev/chimera-tui/dist/editor-component.d.ts.map +1 -0
  1677. package/node_modules/@dimivelev/chimera-tui/dist/editor-component.js +2 -0
  1678. package/node_modules/@dimivelev/chimera-tui/dist/editor-component.js.map +1 -0
  1679. package/node_modules/@dimivelev/chimera-tui/dist/fuzzy.d.ts +16 -0
  1680. package/node_modules/@dimivelev/chimera-tui/dist/fuzzy.d.ts.map +1 -0
  1681. package/node_modules/@dimivelev/chimera-tui/dist/fuzzy.js +110 -0
  1682. package/node_modules/@dimivelev/chimera-tui/dist/fuzzy.js.map +1 -0
  1683. package/node_modules/@dimivelev/chimera-tui/dist/index.d.ts +23 -0
  1684. package/node_modules/@dimivelev/chimera-tui/dist/index.d.ts.map +1 -0
  1685. package/node_modules/@dimivelev/chimera-tui/dist/index.js +32 -0
  1686. package/node_modules/@dimivelev/chimera-tui/dist/index.js.map +1 -0
  1687. package/node_modules/@dimivelev/chimera-tui/dist/keybindings.d.ts +193 -0
  1688. package/node_modules/@dimivelev/chimera-tui/dist/keybindings.d.ts.map +1 -0
  1689. package/node_modules/@dimivelev/chimera-tui/dist/keybindings.js +174 -0
  1690. package/node_modules/@dimivelev/chimera-tui/dist/keybindings.js.map +1 -0
  1691. package/node_modules/@dimivelev/chimera-tui/dist/keys.d.ts +184 -0
  1692. package/node_modules/@dimivelev/chimera-tui/dist/keys.d.ts.map +1 -0
  1693. package/node_modules/@dimivelev/chimera-tui/dist/keys.js +1173 -0
  1694. package/node_modules/@dimivelev/chimera-tui/dist/keys.js.map +1 -0
  1695. package/node_modules/@dimivelev/chimera-tui/dist/kill-ring.d.ts +28 -0
  1696. package/node_modules/@dimivelev/chimera-tui/dist/kill-ring.d.ts.map +1 -0
  1697. package/node_modules/@dimivelev/chimera-tui/dist/kill-ring.js +44 -0
  1698. package/node_modules/@dimivelev/chimera-tui/dist/kill-ring.js.map +1 -0
  1699. package/node_modules/@dimivelev/chimera-tui/dist/native-modifiers.d.ts +3 -0
  1700. package/node_modules/@dimivelev/chimera-tui/dist/native-modifiers.d.ts.map +1 -0
  1701. package/node_modules/@dimivelev/chimera-tui/dist/native-modifiers.js +53 -0
  1702. package/node_modules/@dimivelev/chimera-tui/dist/native-modifiers.js.map +1 -0
  1703. package/node_modules/@dimivelev/chimera-tui/dist/stdin-buffer.d.ts +50 -0
  1704. package/node_modules/@dimivelev/chimera-tui/dist/stdin-buffer.d.ts.map +1 -0
  1705. package/node_modules/@dimivelev/chimera-tui/dist/stdin-buffer.js +361 -0
  1706. package/node_modules/@dimivelev/chimera-tui/dist/stdin-buffer.js.map +1 -0
  1707. package/node_modules/@dimivelev/chimera-tui/dist/terminal-image.d.ts +90 -0
  1708. package/node_modules/@dimivelev/chimera-tui/dist/terminal-image.d.ts.map +1 -0
  1709. package/node_modules/@dimivelev/chimera-tui/dist/terminal-image.js +366 -0
  1710. package/node_modules/@dimivelev/chimera-tui/dist/terminal-image.js.map +1 -0
  1711. package/node_modules/@dimivelev/chimera-tui/dist/terminal.d.ts +113 -0
  1712. package/node_modules/@dimivelev/chimera-tui/dist/terminal.d.ts.map +1 -0
  1713. package/node_modules/@dimivelev/chimera-tui/dist/terminal.js +472 -0
  1714. package/node_modules/@dimivelev/chimera-tui/dist/terminal.js.map +1 -0
  1715. package/node_modules/@dimivelev/chimera-tui/dist/tui.d.ts +242 -0
  1716. package/node_modules/@dimivelev/chimera-tui/dist/tui.d.ts.map +1 -0
  1717. package/node_modules/@dimivelev/chimera-tui/dist/tui.js +1221 -0
  1718. package/node_modules/@dimivelev/chimera-tui/dist/tui.js.map +1 -0
  1719. package/node_modules/@dimivelev/chimera-tui/dist/undo-stack.d.ts +17 -0
  1720. package/node_modules/@dimivelev/chimera-tui/dist/undo-stack.d.ts.map +1 -0
  1721. package/node_modules/@dimivelev/chimera-tui/dist/undo-stack.js +25 -0
  1722. package/node_modules/@dimivelev/chimera-tui/dist/undo-stack.js.map +1 -0
  1723. package/node_modules/@dimivelev/chimera-tui/dist/utils.d.ts +84 -0
  1724. package/node_modules/@dimivelev/chimera-tui/dist/utils.d.ts.map +1 -0
  1725. package/node_modules/@dimivelev/chimera-tui/dist/utils.js +1029 -0
  1726. package/node_modules/@dimivelev/chimera-tui/dist/utils.js.map +1 -0
  1727. package/node_modules/@dimivelev/chimera-tui/dist/word-navigation.d.ts +25 -0
  1728. package/node_modules/@dimivelev/chimera-tui/dist/word-navigation.d.ts.map +1 -0
  1729. package/node_modules/@dimivelev/chimera-tui/dist/word-navigation.js +96 -0
  1730. package/node_modules/@dimivelev/chimera-tui/dist/word-navigation.js.map +1 -0
  1731. package/node_modules/@dimivelev/chimera-tui/package.json +47 -0
  1732. package/npm-shrinkwrap.json +1783 -0
  1733. package/package.json +104 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../src/migrations.ts"],"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,KAAK,CAAC,KAAK,EAAE,CAAC;YACtB,OAAO,EAAE,CAAC;QAAA,CACV,CAAC,CAAC;IAAA,CACH,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,EAAE,CAAC;AAAA,CACd;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,GAAW,EAGvC;IACD,MAAM,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;IACtD,iCAAiC,EAAE,CAAC;IACpC,4BAA4B,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC;IACpB,4BAA4B,EAAE,CAAC;IAC/B,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACxD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC;AAAA,CACtD","sourcesContent":["/**\n * One-time migrations that run on startup.\n */\n\nimport chalk from \"chalk\";\nimport { chmodSync, existsSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync } from \"fs\";\nimport { dirname, join } from \"path\";\nimport { CONFIG_DIR_NAME, getAgentDir, getBinDir } from \"./config.ts\";\nimport { migrateKeybindingsConfig } from \"./core/keybindings.ts\";\nimport { isLegacyEnvVarNameConfigValue } from \"./core/resolve-config-value.ts\";\nimport { stripJsonComments } from \"./utils/json.ts\";\n\nconst MIGRATION_GUIDE_URL =\n\t\"https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md#extensions-migration\";\nconst EXTENSIONS_DOC_URL =\n\t\"https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/docs/extensions.md\";\n\n/**\n * Migrate legacy oauth.json and settings.json apiKeys to auth.json.\n *\n * @returns Array of provider names that were migrated\n */\nexport function migrateAuthToAuthJson(): string[] {\n\tconst agentDir = getAgentDir();\n\tconst authPath = join(agentDir, \"auth.json\");\n\tconst oauthPath = join(agentDir, \"oauth.json\");\n\tconst settingsPath = join(agentDir, \"settings.json\");\n\n\t// Skip if auth.json already exists\n\tif (existsSync(authPath)) return [];\n\n\tconst migrated: Record<string, unknown> = {};\n\tconst providers: string[] = [];\n\n\t// Migrate oauth.json\n\tif (existsSync(oauthPath)) {\n\t\ttry {\n\t\t\tconst oauth = JSON.parse(readFileSync(oauthPath, \"utf-8\"));\n\t\t\tfor (const [provider, cred] of Object.entries(oauth)) {\n\t\t\t\tmigrated[provider] = { type: \"oauth\", ...(cred as object) };\n\t\t\t\tproviders.push(provider);\n\t\t\t}\n\t\t\trenameSync(oauthPath, `${oauthPath}.migrated`);\n\t\t} catch {\n\t\t\t// Skip on error\n\t\t}\n\t}\n\n\t// Migrate settings.json apiKeys\n\tif (existsSync(settingsPath)) {\n\t\ttry {\n\t\t\tconst content = readFileSync(settingsPath, \"utf-8\");\n\t\t\tconst settings = JSON.parse(content);\n\t\t\tif (settings.apiKeys && typeof settings.apiKeys === \"object\") {\n\t\t\t\tfor (const [provider, key] of Object.entries(settings.apiKeys)) {\n\t\t\t\t\tif (!migrated[provider] && typeof key === \"string\") {\n\t\t\t\t\t\tmigrated[provider] = { type: \"api_key\", key };\n\t\t\t\t\t\tproviders.push(provider);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete settings.apiKeys;\n\t\t\t\twriteFileSync(settingsPath, JSON.stringify(settings, null, 2));\n\t\t\t}\n\t\t} catch {\n\t\t\t// Skip on error\n\t\t}\n\t}\n\n\tif (Object.keys(migrated).length > 0) {\n\t\tmkdirSync(dirname(authPath), { recursive: true });\n\t\twriteFileSync(authPath, JSON.stringify(migrated, null, 2), { mode: 0o600 });\n\t}\n\n\treturn providers;\n}\n\ninterface ConfigValueMigration {\n\tlocation: string;\n\tfrom: string;\n\tto: string;\n}\n\nfunction migrateLegacyEnvVarString(value: string): string | undefined {\n\treturn isLegacyEnvVarNameConfigValue(value) ? `$${value}` : undefined;\n}\n\nfunction migrateStringProperty(\n\trecord: Record<string, unknown>,\n\tkey: string,\n\tlocation: string,\n\tmigrations: ConfigValueMigration[],\n): boolean {\n\tconst value = record[key];\n\tif (typeof value !== \"string\") return false;\n\tconst migrated = migrateLegacyEnvVarString(value);\n\tif (migrated === undefined) return false;\n\trecord[key] = migrated;\n\tmigrations.push({ location, from: value, to: migrated });\n\treturn true;\n}\n\nfunction migrateHeadersConfig(headers: unknown, location: string, migrations: ConfigValueMigration[]): boolean {\n\tif (typeof headers !== \"object\" || headers === null || Array.isArray(headers)) return false;\n\tconst headerRecord = headers as Record<string, unknown>;\n\tlet migrated = false;\n\tfor (const [key, value] of Object.entries(headerRecord)) {\n\t\tif (typeof value !== \"string\") continue;\n\t\tconst migratedValue = migrateLegacyEnvVarString(value);\n\t\tif (migratedValue === undefined) continue;\n\t\theaderRecord[key] = migratedValue;\n\t\tmigrations.push({ location: `${location}[${JSON.stringify(key)}]`, from: value, to: migratedValue });\n\t\tmigrated = true;\n\t}\n\treturn migrated;\n}\n\nfunction migrateAuthJsonConfigValues(agentDir: string): ConfigValueMigration[] {\n\tconst authPath = join(agentDir, \"auth.json\");\n\tif (!existsSync(authPath)) return [];\n\n\ttry {\n\t\tconst parsed = JSON.parse(readFileSync(authPath, \"utf-8\")) as unknown;\n\t\tif (typeof parsed !== \"object\" || parsed === null || Array.isArray(parsed)) return [];\n\t\tconst authData = parsed as Record<string, unknown>;\n\n\t\tconst migrations: ConfigValueMigration[] = [];\n\t\tfor (const [provider, credential] of Object.entries(authData)) {\n\t\t\tif (typeof credential !== \"object\" || credential === null || Array.isArray(credential)) continue;\n\t\t\tconst credentialRecord = credential as Record<string, unknown>;\n\t\t\tif (credentialRecord.type !== \"api_key\") continue;\n\t\t\tmigrateStringProperty(credentialRecord, \"key\", `auth.json[${JSON.stringify(provider)}].key`, migrations);\n\t\t}\n\n\t\tif (migrations.length === 0) return [];\n\t\twriteFileSync(authPath, `${JSON.stringify(parsed, null, 2)}\\n`, \"utf-8\");\n\t\tchmodSync(authPath, 0o600);\n\t\treturn migrations;\n\t} catch {\n\t\treturn [];\n\t}\n}\n\nfunction migrateModelsJsonConfigValues(agentDir: string): ConfigValueMigration[] {\n\tconst modelsPath = join(agentDir, \"models.json\");\n\tif (!existsSync(modelsPath)) return [];\n\n\tconst parsed = JSON.parse(stripJsonComments(readFileSync(modelsPath, \"utf-8\"))) as unknown;\n\tif (typeof parsed !== \"object\" || parsed === null || Array.isArray(parsed)) return [];\n\tconst modelsData = parsed as Record<string, unknown>;\n\tconst providers = modelsData.providers;\n\tif (typeof providers !== \"object\" || providers === null || Array.isArray(providers)) return [];\n\n\tconst migrations: ConfigValueMigration[] = [];\n\tfor (const [provider, providerConfig] of Object.entries(providers)) {\n\t\tif (typeof providerConfig !== \"object\" || providerConfig === null || Array.isArray(providerConfig)) continue;\n\t\tconst providerRecord = providerConfig as Record<string, unknown>;\n\t\tconst providerLocation = `models.json.providers[${JSON.stringify(provider)}]`;\n\t\tmigrateStringProperty(providerRecord, \"apiKey\", `${providerLocation}.apiKey`, migrations);\n\t\tmigrateHeadersConfig(providerRecord.headers, `${providerLocation}.headers`, migrations);\n\n\t\tif (Array.isArray(providerRecord.models)) {\n\t\t\tfor (let index = 0; index < providerRecord.models.length; index++) {\n\t\t\t\tconst modelConfig = providerRecord.models[index];\n\t\t\t\tif (typeof modelConfig !== \"object\" || modelConfig === null || Array.isArray(modelConfig)) continue;\n\t\t\t\tconst modelRecord = modelConfig as Record<string, unknown>;\n\t\t\t\tconst modelKey = typeof modelRecord.id === \"string\" ? JSON.stringify(modelRecord.id) : String(index);\n\t\t\t\tmigrateHeadersConfig(modelRecord.headers, `${providerLocation}.models[${modelKey}].headers`, migrations);\n\t\t\t}\n\t\t}\n\n\t\tconst modelOverrides = providerRecord.modelOverrides;\n\t\tif (typeof modelOverrides === \"object\" && modelOverrides !== null && !Array.isArray(modelOverrides)) {\n\t\t\tfor (const [modelId, modelOverride] of Object.entries(modelOverrides)) {\n\t\t\t\tif (typeof modelOverride !== \"object\" || modelOverride === null || Array.isArray(modelOverride)) continue;\n\t\t\t\tconst modelOverrideRecord = modelOverride as Record<string, unknown>;\n\t\t\t\tmigrateHeadersConfig(\n\t\t\t\t\tmodelOverrideRecord.headers,\n\t\t\t\t\t`${providerLocation}.modelOverrides[${JSON.stringify(modelId)}].headers`,\n\t\t\t\t\tmigrations,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (migrations.length === 0) return [];\n\twriteFileSync(modelsPath, `${JSON.stringify(parsed, null, 2)}\\n`, \"utf-8\");\n\treturn migrations;\n}\n\nfunction migrateExplicitEnvVarConfigValues(): void {\n\tconst agentDir = getAgentDir();\n\tconst migrations = [...migrateAuthJsonConfigValues(agentDir), ...migrateModelsJsonConfigValues(agentDir)];\n\tif (migrations.length === 0) return;\n\n\tconst details = migrations.map((migration) => ` - ${migration.location}: ${migration.from} -> ${migration.to}`);\n\tconsole.log(\n\t\tchalk.yellow(\n\t\t\t[\n\t\t\t\t\"Warning: Migrated API key/header environment references to explicit $ENV_VAR syntax. Plain strings will be treated as literals.\",\n\t\t\t\t...details,\n\t\t\t].join(\"\\n\"),\n\t\t),\n\t);\n}\n\n/**\n * Migrate sessions from ~/.pi/agent/*.jsonl to proper session directories.\n *\n * Bug in v0.30.0: Sessions were saved to ~/.pi/agent/ instead of\n * ~/.pi/agent/sessions/<encoded-cwd>/. This migration moves them\n * to the correct location based on the cwd in their session header.\n *\n * See: https://github.com/earendil-works/pi-mono/issues/320\n */\nexport function migrateSessionsFromAgentRoot(): void {\n\tconst agentDir = getAgentDir();\n\n\t// Find all .jsonl files directly in agentDir (not in subdirectories)\n\tlet files: string[];\n\ttry {\n\t\tfiles = readdirSync(agentDir)\n\t\t\t.filter((f) => f.endsWith(\".jsonl\"))\n\t\t\t.map((f) => join(agentDir, f));\n\t} catch {\n\t\treturn;\n\t}\n\n\tif (files.length === 0) return;\n\n\tfor (const file of files) {\n\t\ttry {\n\t\t\t// Read first line to get session header\n\t\t\tconst content = readFileSync(file, \"utf8\");\n\t\t\tconst firstLine = content.split(\"\\n\")[0];\n\t\t\tif (!firstLine?.trim()) continue;\n\n\t\t\tconst header = JSON.parse(firstLine);\n\t\t\tif (header.type !== \"session\" || !header.cwd) continue;\n\n\t\t\tconst cwd: string = header.cwd;\n\n\t\t\t// Compute the correct session directory (same encoding as session-manager.ts)\n\t\t\tconst safePath = `--${cwd.replace(/^[/\\\\]/, \"\").replace(/[/\\\\:]/g, \"-\")}--`;\n\t\t\tconst correctDir = join(agentDir, \"sessions\", safePath);\n\n\t\t\t// Create directory if needed\n\t\t\tif (!existsSync(correctDir)) {\n\t\t\t\tmkdirSync(correctDir, { recursive: true });\n\t\t\t}\n\n\t\t\t// Move the file\n\t\t\tconst fileName = file.split(\"/\").pop() || file.split(\"\\\\\").pop();\n\t\t\tconst newPath = join(correctDir, fileName!);\n\n\t\t\tif (existsSync(newPath)) continue; // Skip if target exists\n\n\t\t\trenameSync(file, newPath);\n\t\t} catch {\n\t\t\t// Skip files that can't be migrated\n\t\t}\n\t}\n}\n\n/**\n * Migrate commands/ to prompts/ if needed.\n * Works for both regular directories and symlinks.\n */\nfunction migrateCommandsToPrompts(baseDir: string, label: string): boolean {\n\tconst commandsDir = join(baseDir, \"commands\");\n\tconst promptsDir = join(baseDir, \"prompts\");\n\n\tif (existsSync(commandsDir) && !existsSync(promptsDir)) {\n\t\ttry {\n\t\t\trenameSync(commandsDir, promptsDir);\n\t\t\tconsole.log(chalk.green(`Migrated ${label} commands/ → prompts/`));\n\t\t\treturn true;\n\t\t} catch (err) {\n\t\t\tconsole.log(\n\t\t\t\tchalk.yellow(\n\t\t\t\t\t`Warning: Could not migrate ${label} commands/ to prompts/: ${err instanceof Error ? err.message : err}`,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t}\n\treturn false;\n}\n\nfunction migrateKeybindingsConfigFile(): void {\n\tconst configPath = join(getAgentDir(), \"keybindings.json\");\n\tif (!existsSync(configPath)) return;\n\n\ttry {\n\t\tconst parsed = JSON.parse(readFileSync(configPath, \"utf-8\")) as unknown;\n\t\tif (typeof parsed !== \"object\" || parsed === null || Array.isArray(parsed)) {\n\t\t\treturn;\n\t\t}\n\t\tconst { config, migrated } = migrateKeybindingsConfig(parsed as Record<string, unknown>);\n\t\tif (!migrated) return;\n\t\twriteFileSync(configPath, `${JSON.stringify(config, null, 2)}\\n`, \"utf-8\");\n\t} catch {\n\t\t// Ignore malformed files during migration\n\t}\n}\n\n/**\n * Move fd/rg binaries from tools/ to bin/ if they exist.\n */\nfunction migrateToolsToBin(): void {\n\tconst agentDir = getAgentDir();\n\tconst toolsDir = join(agentDir, \"tools\");\n\tconst binDir = getBinDir();\n\n\tif (!existsSync(toolsDir)) return;\n\n\tconst binaries = [\"fd\", \"rg\", \"fd.exe\", \"rg.exe\"];\n\tlet movedAny = false;\n\n\tfor (const bin of binaries) {\n\t\tconst oldPath = join(toolsDir, bin);\n\t\tconst newPath = join(binDir, bin);\n\n\t\tif (existsSync(oldPath)) {\n\t\t\tif (!existsSync(binDir)) {\n\t\t\t\tmkdirSync(binDir, { recursive: true });\n\t\t\t}\n\t\t\tif (!existsSync(newPath)) {\n\t\t\t\ttry {\n\t\t\t\t\trenameSync(oldPath, newPath);\n\t\t\t\t\tmovedAny = true;\n\t\t\t\t} catch {\n\t\t\t\t\t// Ignore errors\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Target exists, just delete the old one\n\t\t\t\ttry {\n\t\t\t\t\trmSync?.(oldPath, { force: true });\n\t\t\t\t} catch {\n\t\t\t\t\t// Ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (movedAny) {\n\t\tconsole.log(chalk.green(`Migrated managed binaries tools/ → bin/`));\n\t}\n}\n\n/**\n * Check for deprecated hooks/ and tools/ directories.\n * Note: tools/ may contain fd/rg binaries extracted by pi, so only warn if it has other files.\n */\nfunction checkDeprecatedExtensionDirs(baseDir: string, label: string): string[] {\n\tconst hooksDir = join(baseDir, \"hooks\");\n\tconst toolsDir = join(baseDir, \"tools\");\n\tconst warnings: string[] = [];\n\n\tif (existsSync(hooksDir)) {\n\t\twarnings.push(`${label} hooks/ directory found. Hooks have been renamed to extensions.`);\n\t}\n\n\tif (existsSync(toolsDir)) {\n\t\t// Check if tools/ contains anything other than fd/rg (which are auto-extracted binaries)\n\t\ttry {\n\t\t\tconst entries = readdirSync(toolsDir);\n\t\t\tconst customTools = entries.filter((e) => {\n\t\t\t\tconst lower = e.toLowerCase();\n\t\t\t\treturn (\n\t\t\t\t\tlower !== \"fd\" && lower !== \"rg\" && lower !== \"fd.exe\" && lower !== \"rg.exe\" && !e.startsWith(\".\") // Ignore .DS_Store and other hidden files\n\t\t\t\t);\n\t\t\t});\n\t\t\tif (customTools.length > 0) {\n\t\t\t\twarnings.push(\n\t\t\t\t\t`${label} tools/ directory contains custom tools. Custom tools have been merged into extensions.`,\n\t\t\t\t);\n\t\t\t}\n\t\t} catch {\n\t\t\t// Ignore read errors\n\t\t}\n\t}\n\n\treturn warnings;\n}\n\n/**\n * Run extension system migrations (commands→prompts) and collect warnings about deprecated directories.\n */\nfunction migrateExtensionSystem(cwd: string): string[] {\n\tconst agentDir = getAgentDir();\n\tconst projectDir = join(cwd, CONFIG_DIR_NAME);\n\n\t// Migrate commands/ to prompts/\n\tmigrateCommandsToPrompts(agentDir, \"Global\");\n\tmigrateCommandsToPrompts(projectDir, \"Project\");\n\n\t// Check for deprecated directories\n\tconst warnings = [\n\t\t...checkDeprecatedExtensionDirs(agentDir, \"Global\"),\n\t\t...checkDeprecatedExtensionDirs(projectDir, \"Project\"),\n\t];\n\n\treturn warnings;\n}\n\n/**\n * Print deprecation warnings and wait for keypress.\n */\nexport async function showDeprecationWarnings(warnings: string[]): Promise<void> {\n\tif (warnings.length === 0) return;\n\n\tfor (const warning of warnings) {\n\t\tconsole.log(chalk.yellow(`Warning: ${warning}`));\n\t}\n\tconsole.log(chalk.yellow(`\\nMove your extensions to the extensions/ directory.`));\n\tconsole.log(chalk.yellow(`Migration guide: ${MIGRATION_GUIDE_URL}`));\n\tconsole.log(chalk.yellow(`Documentation: ${EXTENSIONS_DOC_URL}`));\n\tconsole.log(chalk.dim(`\\nPress any key to continue...`));\n\n\tawait new Promise<void>((resolve) => {\n\t\tprocess.stdin.setRawMode?.(true);\n\t\tprocess.stdin.resume();\n\t\tprocess.stdin.once(\"data\", () => {\n\t\t\tprocess.stdin.setRawMode?.(false);\n\t\t\tprocess.stdin.pause();\n\t\t\tresolve();\n\t\t});\n\t});\n\tconsole.log();\n}\n\n/**\n * Run all migrations. Called once on startup.\n *\n * @returns Object with migration results and deprecation warnings\n */\nexport function runMigrations(cwd: string): {\n\tmigratedAuthProviders: string[];\n\tdeprecationWarnings: string[];\n} {\n\tconst migratedAuthProviders = migrateAuthToAuthJson();\n\tmigrateExplicitEnvVarConfigValues();\n\tmigrateSessionsFromAgentRoot();\n\tmigrateToolsToBin();\n\tmigrateKeybindingsConfigFile();\n\tconst deprecationWarnings = migrateExtensionSystem(cwd);\n\treturn { migratedAuthProviders, deprecationWarnings };\n}\n"]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Run modes for the coding agent.
3
+ */
4
+ export { InteractiveMode, type InteractiveModeOptions } from "./interactive/interactive-mode.ts";
5
+ export { type PrintModeOptions, runPrintMode } from "./print-mode.ts";
6
+ export { type ModelInfo, RpcClient, type RpcClientOptions, type RpcEventListener } from "./rpc/rpc-client.ts";
7
+ export { runRpcMode } from "./rpc/rpc-mode.ts";
8
+ export type { RpcCommand, RpcResponse, RpcSessionState } from "./rpc/rpc-types.ts";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACjG,OAAO,EAAE,KAAK,gBAAgB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["/**\n * Run modes for the coding agent.\n */\n\nexport { InteractiveMode, type InteractiveModeOptions } from \"./interactive/interactive-mode.ts\";\nexport { type PrintModeOptions, runPrintMode } from \"./print-mode.ts\";\nexport { type ModelInfo, RpcClient, type RpcClientOptions, type RpcEventListener } from \"./rpc/rpc-client.ts\";\nexport { runRpcMode } from \"./rpc/rpc-mode.ts\";\nexport type { RpcCommand, RpcResponse, RpcSessionState } from \"./rpc/rpc-types.ts\";\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Run modes for the coding agent.
3
+ */
4
+ export { InteractiveMode } from "./interactive/interactive-mode.js";
5
+ export { runPrintMode } from "./print-mode.js";
6
+ export { RpcClient } from "./rpc/rpc-client.js";
7
+ export { runRpcMode } from "./rpc/rpc-mode.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA+B,MAAM,mCAAmC,CAAC;AACjG,OAAO,EAAyB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAkB,SAAS,EAAgD,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["/**\n * Run modes for the coding agent.\n */\n\nexport { InteractiveMode, type InteractiveModeOptions } from \"./interactive/interactive-mode.ts\";\nexport { type PrintModeOptions, runPrintMode } from \"./print-mode.ts\";\nexport { type ModelInfo, RpcClient, type RpcClientOptions, type RpcEventListener } from \"./rpc/rpc-client.ts\";\nexport { runRpcMode } from \"./rpc/rpc-mode.ts\";\nexport type { RpcCommand, RpcResponse, RpcSessionState } from \"./rpc/rpc-types.ts\";\n"]}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Armin says hi! A fun easter egg with animated XBM art.
3
+ */
4
+ import type { Component, TUI } from "@dimivelev/chimera-tui";
5
+ export declare class ArminComponent implements Component {
6
+ private ui;
7
+ private interval;
8
+ private effect;
9
+ private finalGrid;
10
+ private currentGrid;
11
+ private effectState;
12
+ private cachedLines;
13
+ private cachedWidth;
14
+ private gridVersion;
15
+ private cachedVersion;
16
+ constructor(ui: TUI);
17
+ invalidate(): void;
18
+ render(width: number): string[];
19
+ private createEmptyGrid;
20
+ private initEffect;
21
+ private startAnimation;
22
+ private stopAnimation;
23
+ private tickEffect;
24
+ private tickTypewriter;
25
+ private tickScanline;
26
+ private tickRain;
27
+ private tickFade;
28
+ private tickCrt;
29
+ private tickGlitch;
30
+ private tickDissolve;
31
+ private updateDisplay;
32
+ dispose(): void;
33
+ }
34
+ //# sourceMappingURL=armin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"armin.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/armin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAuD7D,qBAAa,cAAe,YAAW,SAAS;IAC/C,OAAO,CAAC,EAAE,CAAM;IAChB,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,aAAa,CAAM;IAE3B,YAAY,EAAE,EAAE,GAAG,EAQlB;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAwB9B;IAED,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,UAAU;IAgElB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,QAAQ;IAmDhB,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,OAAO;IAoBf,OAAO,CAAC,UAAU;IAgClB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,aAAa;IAIrB,OAAO,IAAI,IAAI,CAEd;CACD","sourcesContent":["/**\n * Armin says hi! A fun easter egg with animated XBM art.\n */\n\nimport type { Component, TUI } from \"@dimivelev/chimera-tui\";\nimport { theme } from \"../theme/theme.ts\";\n\n// XBM image: 31x36 pixels, LSB first, 1=background, 0=foreground\nconst WIDTH = 31;\nconst HEIGHT = 36;\nconst BITS = [\n\t0xff, 0xff, 0xff, 0x7f, 0xff, 0xf0, 0xff, 0x7f, 0xff, 0xed, 0xff, 0x7f, 0xff, 0xdb, 0xff, 0x7f, 0xff, 0xb7, 0xff,\n\t0x7f, 0xff, 0x77, 0xfe, 0x7f, 0x3f, 0xf8, 0xfe, 0x7f, 0xdf, 0xff, 0xfe, 0x7f, 0xdf, 0x3f, 0xfc, 0x7f, 0x9f, 0xc3,\n\t0xfb, 0x7f, 0x6f, 0xfc, 0xf4, 0x7f, 0xf7, 0x0f, 0xf7, 0x7f, 0xf7, 0xff, 0xf7, 0x7f, 0xf7, 0xff, 0xe3, 0x7f, 0xf7,\n\t0x07, 0xe8, 0x7f, 0xef, 0xf8, 0x67, 0x70, 0x0f, 0xff, 0xbb, 0x6f, 0xf1, 0x00, 0xd0, 0x5b, 0xfd, 0x3f, 0xec, 0x53,\n\t0xc1, 0xff, 0xef, 0x57, 0x9f, 0xfd, 0xee, 0x5f, 0x9f, 0xfc, 0xae, 0x5f, 0x1f, 0x78, 0xac, 0x5f, 0x3f, 0x00, 0x50,\n\t0x6c, 0x7f, 0x00, 0xdc, 0x77, 0xff, 0xc0, 0x3f, 0x78, 0xff, 0x01, 0xf8, 0x7f, 0xff, 0x03, 0x9c, 0x78, 0xff, 0x07,\n\t0x8c, 0x7c, 0xff, 0x0f, 0xce, 0x78, 0xff, 0xff, 0xcf, 0x7f, 0xff, 0xff, 0xcf, 0x78, 0xff, 0xff, 0xdf, 0x78, 0xff,\n\t0xff, 0xdf, 0x7d, 0xff, 0xff, 0x3f, 0x7e, 0xff, 0xff, 0xff, 0x7f,\n];\n\nconst BYTES_PER_ROW = Math.ceil(WIDTH / 8);\nconst DISPLAY_HEIGHT = Math.ceil(HEIGHT / 2); // Half-block rendering\n\ntype Effect = \"typewriter\" | \"scanline\" | \"rain\" | \"fade\" | \"crt\" | \"glitch\" | \"dissolve\";\n\nconst EFFECTS: Effect[] = [\"typewriter\", \"scanline\", \"rain\", \"fade\", \"crt\", \"glitch\", \"dissolve\"];\n\n// Get pixel at (x, y): true = foreground, false = background\nfunction getPixel(x: number, y: number): boolean {\n\tif (y >= HEIGHT) return false;\n\tconst byteIndex = y * BYTES_PER_ROW + Math.floor(x / 8);\n\tconst bitIndex = x % 8;\n\treturn ((BITS[byteIndex] >> bitIndex) & 1) === 0;\n}\n\n// Get the character for a cell (2 vertical pixels packed)\nfunction getChar(x: number, row: number): string {\n\tconst upper = getPixel(x, row * 2);\n\tconst lower = getPixel(x, row * 2 + 1);\n\tif (upper && lower) return \"█\";\n\tif (upper) return \"▀\";\n\tif (lower) return \"▄\";\n\treturn \" \";\n}\n\n// Build the final image grid\nfunction buildFinalGrid(): string[][] {\n\tconst grid: string[][] = [];\n\tfor (let row = 0; row < DISPLAY_HEIGHT; row++) {\n\t\tconst line: string[] = [];\n\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\tline.push(getChar(x, row));\n\t\t}\n\t\tgrid.push(line);\n\t}\n\treturn grid;\n}\n\nexport class ArminComponent implements Component {\n\tprivate ui: TUI;\n\tprivate interval: ReturnType<typeof setInterval> | null = null;\n\tprivate effect: Effect;\n\tprivate finalGrid: string[][];\n\tprivate currentGrid: string[][];\n\tprivate effectState: Record<string, unknown> = {};\n\tprivate cachedLines: string[] = [];\n\tprivate cachedWidth = 0;\n\tprivate gridVersion = 0;\n\tprivate cachedVersion = -1;\n\n\tconstructor(ui: TUI) {\n\t\tthis.ui = ui;\n\t\tthis.effect = EFFECTS[Math.floor(Math.random() * EFFECTS.length)];\n\t\tthis.finalGrid = buildFinalGrid();\n\t\tthis.currentGrid = this.createEmptyGrid();\n\n\t\tthis.initEffect();\n\t\tthis.startAnimation();\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedWidth = 0;\n\t}\n\n\trender(width: number): string[] {\n\t\tif (width === this.cachedWidth && this.cachedVersion === this.gridVersion) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\tconst padding = 1;\n\t\tconst availableWidth = width - padding;\n\n\t\tthis.cachedLines = this.currentGrid.map((row) => {\n\t\t\t// Clip row to available width before applying color\n\t\t\tconst clipped = row.slice(0, availableWidth).join(\"\");\n\t\t\tconst padRight = Math.max(0, width - padding - clipped.length);\n\t\t\treturn ` ${theme.fg(\"accent\", clipped)}${\" \".repeat(padRight)}`;\n\t\t});\n\n\t\t// Add \"ARMIN SAYS HI\" at the end\n\t\tconst message = \"ARMIN SAYS HI\";\n\t\tconst msgPadRight = Math.max(0, width - padding - message.length);\n\t\tthis.cachedLines.push(` ${theme.fg(\"accent\", message)}${\" \".repeat(msgPadRight)}`);\n\n\t\tthis.cachedWidth = width;\n\t\tthis.cachedVersion = this.gridVersion;\n\n\t\treturn this.cachedLines;\n\t}\n\n\tprivate createEmptyGrid(): string[][] {\n\t\treturn Array.from({ length: DISPLAY_HEIGHT }, () => Array(WIDTH).fill(\" \"));\n\t}\n\n\tprivate initEffect(): void {\n\t\tswitch (this.effect) {\n\t\t\tcase \"typewriter\":\n\t\t\t\tthis.effectState = { pos: 0 };\n\t\t\t\tbreak;\n\t\t\tcase \"scanline\":\n\t\t\t\tthis.effectState = { row: 0 };\n\t\t\t\tbreak;\n\t\t\tcase \"rain\":\n\t\t\t\t// Track falling position for each column\n\t\t\t\tthis.effectState = {\n\t\t\t\t\tdrops: Array.from({ length: WIDTH }, () => ({\n\t\t\t\t\t\ty: -Math.floor(Math.random() * DISPLAY_HEIGHT * 2),\n\t\t\t\t\t\tsettled: 0,\n\t\t\t\t\t})),\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"fade\": {\n\t\t\t\t// Shuffle all pixel positions\n\t\t\t\tconst positions: [number, number][] = [];\n\t\t\t\tfor (let row = 0; row < DISPLAY_HEIGHT; row++) {\n\t\t\t\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\t\t\t\tpositions.push([row, x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Fisher-Yates shuffle\n\t\t\t\tfor (let i = positions.length - 1; i > 0; i--) {\n\t\t\t\t\tconst j = Math.floor(Math.random() * (i + 1));\n\t\t\t\t\t[positions[i], positions[j]] = [positions[j], positions[i]];\n\t\t\t\t}\n\t\t\t\tthis.effectState = { positions, idx: 0 };\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"crt\":\n\t\t\t\tthis.effectState = { expansion: 0 };\n\t\t\t\tbreak;\n\t\t\tcase \"glitch\":\n\t\t\t\tthis.effectState = { phase: 0, glitchFrames: 8 };\n\t\t\t\tbreak;\n\t\t\tcase \"dissolve\": {\n\t\t\t\t// Start with random noise\n\t\t\t\tthis.currentGrid = Array.from({ length: DISPLAY_HEIGHT }, () =>\n\t\t\t\t\tArray.from({ length: WIDTH }, () => {\n\t\t\t\t\t\tconst chars = [\" \", \"░\", \"▒\", \"▓\", \"█\", \"▀\", \"▄\"];\n\t\t\t\t\t\treturn chars[Math.floor(Math.random() * chars.length)];\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t\t// Shuffle positions for gradual resolve\n\t\t\t\tconst dissolvePositions: [number, number][] = [];\n\t\t\t\tfor (let row = 0; row < DISPLAY_HEIGHT; row++) {\n\t\t\t\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\t\t\t\tdissolvePositions.push([row, x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let i = dissolvePositions.length - 1; i > 0; i--) {\n\t\t\t\t\tconst j = Math.floor(Math.random() * (i + 1));\n\t\t\t\t\t[dissolvePositions[i], dissolvePositions[j]] = [dissolvePositions[j], dissolvePositions[i]];\n\t\t\t\t}\n\t\t\t\tthis.effectState = { positions: dissolvePositions, idx: 0 };\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate startAnimation(): void {\n\t\tconst fps = this.effect === \"glitch\" ? 60 : 30;\n\t\tthis.interval = setInterval(() => {\n\t\t\tconst done = this.tickEffect();\n\t\t\tthis.updateDisplay();\n\t\t\tthis.ui.requestRender();\n\t\t\tif (done) {\n\t\t\t\tthis.stopAnimation();\n\t\t\t}\n\t\t}, 1000 / fps);\n\t}\n\n\tprivate stopAnimation(): void {\n\t\tif (this.interval) {\n\t\t\tclearInterval(this.interval);\n\t\t\tthis.interval = null;\n\t\t}\n\t}\n\n\tprivate tickEffect(): boolean {\n\t\tswitch (this.effect) {\n\t\t\tcase \"typewriter\":\n\t\t\t\treturn this.tickTypewriter();\n\t\t\tcase \"scanline\":\n\t\t\t\treturn this.tickScanline();\n\t\t\tcase \"rain\":\n\t\t\t\treturn this.tickRain();\n\t\t\tcase \"fade\":\n\t\t\t\treturn this.tickFade();\n\t\t\tcase \"crt\":\n\t\t\t\treturn this.tickCrt();\n\t\t\tcase \"glitch\":\n\t\t\t\treturn this.tickGlitch();\n\t\t\tcase \"dissolve\":\n\t\t\t\treturn this.tickDissolve();\n\t\t\tdefault:\n\t\t\t\treturn true;\n\t\t}\n\t}\n\n\tprivate tickTypewriter(): boolean {\n\t\tconst state = this.effectState as { pos: number };\n\t\tconst pixelsPerFrame = 3;\n\n\t\tfor (let i = 0; i < pixelsPerFrame; i++) {\n\t\t\tconst row = Math.floor(state.pos / WIDTH);\n\t\t\tconst x = state.pos % WIDTH;\n\t\t\tif (row >= DISPLAY_HEIGHT) return true;\n\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\tstate.pos++;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate tickScanline(): boolean {\n\t\tconst state = this.effectState as { row: number };\n\t\tif (state.row >= DISPLAY_HEIGHT) return true;\n\n\t\t// Copy row\n\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\tthis.currentGrid[state.row][x] = this.finalGrid[state.row][x];\n\t\t}\n\t\tstate.row++;\n\t\treturn false;\n\t}\n\n\tprivate tickRain(): boolean {\n\t\tconst state = this.effectState as {\n\t\t\tdrops: { y: number; settled: number }[];\n\t\t};\n\n\t\tlet allSettled = true;\n\t\tthis.currentGrid = this.createEmptyGrid();\n\n\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\tconst drop = state.drops[x];\n\n\t\t\t// Draw settled pixels\n\t\t\tfor (let row = DISPLAY_HEIGHT - 1; row >= DISPLAY_HEIGHT - drop.settled; row--) {\n\t\t\t\tif (row >= 0) {\n\t\t\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check if this column is done\n\t\t\tif (drop.settled >= DISPLAY_HEIGHT) continue;\n\n\t\t\tallSettled = false;\n\n\t\t\t// Find the target row for this column (lowest non-space pixel)\n\t\t\tlet targetRow = -1;\n\t\t\tfor (let row = DISPLAY_HEIGHT - 1 - drop.settled; row >= 0; row--) {\n\t\t\t\tif (this.finalGrid[row][x] !== \" \") {\n\t\t\t\t\ttargetRow = row;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Move drop down\n\t\t\tdrop.y++;\n\n\t\t\t// Draw falling drop\n\t\t\tif (drop.y >= 0 && drop.y < DISPLAY_HEIGHT) {\n\t\t\t\tif (targetRow >= 0 && drop.y >= targetRow) {\n\t\t\t\t\t// Settle\n\t\t\t\t\tdrop.settled = DISPLAY_HEIGHT - targetRow;\n\t\t\t\t\tdrop.y = -Math.floor(Math.random() * 5) - 1;\n\t\t\t\t} else {\n\t\t\t\t\t// Still falling\n\t\t\t\t\tthis.currentGrid[drop.y][x] = \"▓\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn allSettled;\n\t}\n\n\tprivate tickFade(): boolean {\n\t\tconst state = this.effectState as { positions: [number, number][]; idx: number };\n\t\tconst pixelsPerFrame = 15;\n\n\t\tfor (let i = 0; i < pixelsPerFrame; i++) {\n\t\t\tif (state.idx >= state.positions.length) return true;\n\t\t\tconst [row, x] = state.positions[state.idx];\n\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\tstate.idx++;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate tickCrt(): boolean {\n\t\tconst state = this.effectState as { expansion: number };\n\t\tconst midRow = Math.floor(DISPLAY_HEIGHT / 2);\n\n\t\tthis.currentGrid = this.createEmptyGrid();\n\n\t\t// Draw from middle expanding outward\n\t\tconst top = midRow - state.expansion;\n\t\tconst bottom = midRow + state.expansion;\n\n\t\tfor (let row = Math.max(0, top); row <= Math.min(DISPLAY_HEIGHT - 1, bottom); row++) {\n\t\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\t}\n\t\t}\n\n\t\tstate.expansion++;\n\t\treturn state.expansion > DISPLAY_HEIGHT;\n\t}\n\n\tprivate tickGlitch(): boolean {\n\t\tconst state = this.effectState as { phase: number; glitchFrames: number };\n\n\t\tif (state.phase < state.glitchFrames) {\n\t\t\t// Glitch phase: show corrupted version\n\t\t\tthis.currentGrid = this.finalGrid.map((row) => {\n\t\t\t\tconst offset = Math.floor(Math.random() * 7) - 3;\n\t\t\t\tconst glitchRow = [...row];\n\n\t\t\t\t// Random horizontal offset\n\t\t\t\tif (Math.random() < 0.3) {\n\t\t\t\t\tconst shifted = glitchRow.slice(offset).concat(glitchRow.slice(0, offset));\n\t\t\t\t\treturn shifted.slice(0, WIDTH);\n\t\t\t\t}\n\n\t\t\t\t// Random vertical swap\n\t\t\t\tif (Math.random() < 0.2) {\n\t\t\t\t\tconst swapRow = Math.floor(Math.random() * DISPLAY_HEIGHT);\n\t\t\t\t\treturn [...this.finalGrid[swapRow]];\n\t\t\t\t}\n\n\t\t\t\treturn glitchRow;\n\t\t\t});\n\t\t\tstate.phase++;\n\t\t\treturn false;\n\t\t}\n\n\t\t// Final frame: show clean image\n\t\tthis.currentGrid = this.finalGrid.map((row) => [...row]);\n\t\treturn true;\n\t}\n\n\tprivate tickDissolve(): boolean {\n\t\tconst state = this.effectState as { positions: [number, number][]; idx: number };\n\t\tconst pixelsPerFrame = 20;\n\n\t\tfor (let i = 0; i < pixelsPerFrame; i++) {\n\t\t\tif (state.idx >= state.positions.length) return true;\n\t\t\tconst [row, x] = state.positions[state.idx];\n\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\tstate.idx++;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate updateDisplay(): void {\n\t\tthis.gridVersion++;\n\t}\n\n\tdispose(): void {\n\t\tthis.stopAnimation();\n\t}\n}\n"]}
@@ -0,0 +1,333 @@
1
+ /**
2
+ * Armin says hi! A fun easter egg with animated XBM art.
3
+ */
4
+ import { theme } from "../theme/theme.js";
5
+ // XBM image: 31x36 pixels, LSB first, 1=background, 0=foreground
6
+ const WIDTH = 31;
7
+ const HEIGHT = 36;
8
+ const BITS = [
9
+ 0xff, 0xff, 0xff, 0x7f, 0xff, 0xf0, 0xff, 0x7f, 0xff, 0xed, 0xff, 0x7f, 0xff, 0xdb, 0xff, 0x7f, 0xff, 0xb7, 0xff,
10
+ 0x7f, 0xff, 0x77, 0xfe, 0x7f, 0x3f, 0xf8, 0xfe, 0x7f, 0xdf, 0xff, 0xfe, 0x7f, 0xdf, 0x3f, 0xfc, 0x7f, 0x9f, 0xc3,
11
+ 0xfb, 0x7f, 0x6f, 0xfc, 0xf4, 0x7f, 0xf7, 0x0f, 0xf7, 0x7f, 0xf7, 0xff, 0xf7, 0x7f, 0xf7, 0xff, 0xe3, 0x7f, 0xf7,
12
+ 0x07, 0xe8, 0x7f, 0xef, 0xf8, 0x67, 0x70, 0x0f, 0xff, 0xbb, 0x6f, 0xf1, 0x00, 0xd0, 0x5b, 0xfd, 0x3f, 0xec, 0x53,
13
+ 0xc1, 0xff, 0xef, 0x57, 0x9f, 0xfd, 0xee, 0x5f, 0x9f, 0xfc, 0xae, 0x5f, 0x1f, 0x78, 0xac, 0x5f, 0x3f, 0x00, 0x50,
14
+ 0x6c, 0x7f, 0x00, 0xdc, 0x77, 0xff, 0xc0, 0x3f, 0x78, 0xff, 0x01, 0xf8, 0x7f, 0xff, 0x03, 0x9c, 0x78, 0xff, 0x07,
15
+ 0x8c, 0x7c, 0xff, 0x0f, 0xce, 0x78, 0xff, 0xff, 0xcf, 0x7f, 0xff, 0xff, 0xcf, 0x78, 0xff, 0xff, 0xdf, 0x78, 0xff,
16
+ 0xff, 0xdf, 0x7d, 0xff, 0xff, 0x3f, 0x7e, 0xff, 0xff, 0xff, 0x7f,
17
+ ];
18
+ const BYTES_PER_ROW = Math.ceil(WIDTH / 8);
19
+ const DISPLAY_HEIGHT = Math.ceil(HEIGHT / 2); // Half-block rendering
20
+ const EFFECTS = ["typewriter", "scanline", "rain", "fade", "crt", "glitch", "dissolve"];
21
+ // Get pixel at (x, y): true = foreground, false = background
22
+ function getPixel(x, y) {
23
+ if (y >= HEIGHT)
24
+ return false;
25
+ const byteIndex = y * BYTES_PER_ROW + Math.floor(x / 8);
26
+ const bitIndex = x % 8;
27
+ return ((BITS[byteIndex] >> bitIndex) & 1) === 0;
28
+ }
29
+ // Get the character for a cell (2 vertical pixels packed)
30
+ function getChar(x, row) {
31
+ const upper = getPixel(x, row * 2);
32
+ const lower = getPixel(x, row * 2 + 1);
33
+ if (upper && lower)
34
+ return "█";
35
+ if (upper)
36
+ return "▀";
37
+ if (lower)
38
+ return "▄";
39
+ return " ";
40
+ }
41
+ // Build the final image grid
42
+ function buildFinalGrid() {
43
+ const grid = [];
44
+ for (let row = 0; row < DISPLAY_HEIGHT; row++) {
45
+ const line = [];
46
+ for (let x = 0; x < WIDTH; x++) {
47
+ line.push(getChar(x, row));
48
+ }
49
+ grid.push(line);
50
+ }
51
+ return grid;
52
+ }
53
+ export class ArminComponent {
54
+ ui;
55
+ interval = null;
56
+ effect;
57
+ finalGrid;
58
+ currentGrid;
59
+ effectState = {};
60
+ cachedLines = [];
61
+ cachedWidth = 0;
62
+ gridVersion = 0;
63
+ cachedVersion = -1;
64
+ constructor(ui) {
65
+ this.ui = ui;
66
+ this.effect = EFFECTS[Math.floor(Math.random() * EFFECTS.length)];
67
+ this.finalGrid = buildFinalGrid();
68
+ this.currentGrid = this.createEmptyGrid();
69
+ this.initEffect();
70
+ this.startAnimation();
71
+ }
72
+ invalidate() {
73
+ this.cachedWidth = 0;
74
+ }
75
+ render(width) {
76
+ if (width === this.cachedWidth && this.cachedVersion === this.gridVersion) {
77
+ return this.cachedLines;
78
+ }
79
+ const padding = 1;
80
+ const availableWidth = width - padding;
81
+ this.cachedLines = this.currentGrid.map((row) => {
82
+ // Clip row to available width before applying color
83
+ const clipped = row.slice(0, availableWidth).join("");
84
+ const padRight = Math.max(0, width - padding - clipped.length);
85
+ return ` ${theme.fg("accent", clipped)}${" ".repeat(padRight)}`;
86
+ });
87
+ // Add "ARMIN SAYS HI" at the end
88
+ const message = "ARMIN SAYS HI";
89
+ const msgPadRight = Math.max(0, width - padding - message.length);
90
+ this.cachedLines.push(` ${theme.fg("accent", message)}${" ".repeat(msgPadRight)}`);
91
+ this.cachedWidth = width;
92
+ this.cachedVersion = this.gridVersion;
93
+ return this.cachedLines;
94
+ }
95
+ createEmptyGrid() {
96
+ return Array.from({ length: DISPLAY_HEIGHT }, () => Array(WIDTH).fill(" "));
97
+ }
98
+ initEffect() {
99
+ switch (this.effect) {
100
+ case "typewriter":
101
+ this.effectState = { pos: 0 };
102
+ break;
103
+ case "scanline":
104
+ this.effectState = { row: 0 };
105
+ break;
106
+ case "rain":
107
+ // Track falling position for each column
108
+ this.effectState = {
109
+ drops: Array.from({ length: WIDTH }, () => ({
110
+ y: -Math.floor(Math.random() * DISPLAY_HEIGHT * 2),
111
+ settled: 0,
112
+ })),
113
+ };
114
+ break;
115
+ case "fade": {
116
+ // Shuffle all pixel positions
117
+ const positions = [];
118
+ for (let row = 0; row < DISPLAY_HEIGHT; row++) {
119
+ for (let x = 0; x < WIDTH; x++) {
120
+ positions.push([row, x]);
121
+ }
122
+ }
123
+ // Fisher-Yates shuffle
124
+ for (let i = positions.length - 1; i > 0; i--) {
125
+ const j = Math.floor(Math.random() * (i + 1));
126
+ [positions[i], positions[j]] = [positions[j], positions[i]];
127
+ }
128
+ this.effectState = { positions, idx: 0 };
129
+ break;
130
+ }
131
+ case "crt":
132
+ this.effectState = { expansion: 0 };
133
+ break;
134
+ case "glitch":
135
+ this.effectState = { phase: 0, glitchFrames: 8 };
136
+ break;
137
+ case "dissolve": {
138
+ // Start with random noise
139
+ this.currentGrid = Array.from({ length: DISPLAY_HEIGHT }, () => Array.from({ length: WIDTH }, () => {
140
+ const chars = [" ", "░", "▒", "▓", "█", "▀", "▄"];
141
+ return chars[Math.floor(Math.random() * chars.length)];
142
+ }));
143
+ // Shuffle positions for gradual resolve
144
+ const dissolvePositions = [];
145
+ for (let row = 0; row < DISPLAY_HEIGHT; row++) {
146
+ for (let x = 0; x < WIDTH; x++) {
147
+ dissolvePositions.push([row, x]);
148
+ }
149
+ }
150
+ for (let i = dissolvePositions.length - 1; i > 0; i--) {
151
+ const j = Math.floor(Math.random() * (i + 1));
152
+ [dissolvePositions[i], dissolvePositions[j]] = [dissolvePositions[j], dissolvePositions[i]];
153
+ }
154
+ this.effectState = { positions: dissolvePositions, idx: 0 };
155
+ break;
156
+ }
157
+ }
158
+ }
159
+ startAnimation() {
160
+ const fps = this.effect === "glitch" ? 60 : 30;
161
+ this.interval = setInterval(() => {
162
+ const done = this.tickEffect();
163
+ this.updateDisplay();
164
+ this.ui.requestRender();
165
+ if (done) {
166
+ this.stopAnimation();
167
+ }
168
+ }, 1000 / fps);
169
+ }
170
+ stopAnimation() {
171
+ if (this.interval) {
172
+ clearInterval(this.interval);
173
+ this.interval = null;
174
+ }
175
+ }
176
+ tickEffect() {
177
+ switch (this.effect) {
178
+ case "typewriter":
179
+ return this.tickTypewriter();
180
+ case "scanline":
181
+ return this.tickScanline();
182
+ case "rain":
183
+ return this.tickRain();
184
+ case "fade":
185
+ return this.tickFade();
186
+ case "crt":
187
+ return this.tickCrt();
188
+ case "glitch":
189
+ return this.tickGlitch();
190
+ case "dissolve":
191
+ return this.tickDissolve();
192
+ default:
193
+ return true;
194
+ }
195
+ }
196
+ tickTypewriter() {
197
+ const state = this.effectState;
198
+ const pixelsPerFrame = 3;
199
+ for (let i = 0; i < pixelsPerFrame; i++) {
200
+ const row = Math.floor(state.pos / WIDTH);
201
+ const x = state.pos % WIDTH;
202
+ if (row >= DISPLAY_HEIGHT)
203
+ return true;
204
+ this.currentGrid[row][x] = this.finalGrid[row][x];
205
+ state.pos++;
206
+ }
207
+ return false;
208
+ }
209
+ tickScanline() {
210
+ const state = this.effectState;
211
+ if (state.row >= DISPLAY_HEIGHT)
212
+ return true;
213
+ // Copy row
214
+ for (let x = 0; x < WIDTH; x++) {
215
+ this.currentGrid[state.row][x] = this.finalGrid[state.row][x];
216
+ }
217
+ state.row++;
218
+ return false;
219
+ }
220
+ tickRain() {
221
+ const state = this.effectState;
222
+ let allSettled = true;
223
+ this.currentGrid = this.createEmptyGrid();
224
+ for (let x = 0; x < WIDTH; x++) {
225
+ const drop = state.drops[x];
226
+ // Draw settled pixels
227
+ for (let row = DISPLAY_HEIGHT - 1; row >= DISPLAY_HEIGHT - drop.settled; row--) {
228
+ if (row >= 0) {
229
+ this.currentGrid[row][x] = this.finalGrid[row][x];
230
+ }
231
+ }
232
+ // Check if this column is done
233
+ if (drop.settled >= DISPLAY_HEIGHT)
234
+ continue;
235
+ allSettled = false;
236
+ // Find the target row for this column (lowest non-space pixel)
237
+ let targetRow = -1;
238
+ for (let row = DISPLAY_HEIGHT - 1 - drop.settled; row >= 0; row--) {
239
+ if (this.finalGrid[row][x] !== " ") {
240
+ targetRow = row;
241
+ break;
242
+ }
243
+ }
244
+ // Move drop down
245
+ drop.y++;
246
+ // Draw falling drop
247
+ if (drop.y >= 0 && drop.y < DISPLAY_HEIGHT) {
248
+ if (targetRow >= 0 && drop.y >= targetRow) {
249
+ // Settle
250
+ drop.settled = DISPLAY_HEIGHT - targetRow;
251
+ drop.y = -Math.floor(Math.random() * 5) - 1;
252
+ }
253
+ else {
254
+ // Still falling
255
+ this.currentGrid[drop.y][x] = "▓";
256
+ }
257
+ }
258
+ }
259
+ return allSettled;
260
+ }
261
+ tickFade() {
262
+ const state = this.effectState;
263
+ const pixelsPerFrame = 15;
264
+ for (let i = 0; i < pixelsPerFrame; i++) {
265
+ if (state.idx >= state.positions.length)
266
+ return true;
267
+ const [row, x] = state.positions[state.idx];
268
+ this.currentGrid[row][x] = this.finalGrid[row][x];
269
+ state.idx++;
270
+ }
271
+ return false;
272
+ }
273
+ tickCrt() {
274
+ const state = this.effectState;
275
+ const midRow = Math.floor(DISPLAY_HEIGHT / 2);
276
+ this.currentGrid = this.createEmptyGrid();
277
+ // Draw from middle expanding outward
278
+ const top = midRow - state.expansion;
279
+ const bottom = midRow + state.expansion;
280
+ for (let row = Math.max(0, top); row <= Math.min(DISPLAY_HEIGHT - 1, bottom); row++) {
281
+ for (let x = 0; x < WIDTH; x++) {
282
+ this.currentGrid[row][x] = this.finalGrid[row][x];
283
+ }
284
+ }
285
+ state.expansion++;
286
+ return state.expansion > DISPLAY_HEIGHT;
287
+ }
288
+ tickGlitch() {
289
+ const state = this.effectState;
290
+ if (state.phase < state.glitchFrames) {
291
+ // Glitch phase: show corrupted version
292
+ this.currentGrid = this.finalGrid.map((row) => {
293
+ const offset = Math.floor(Math.random() * 7) - 3;
294
+ const glitchRow = [...row];
295
+ // Random horizontal offset
296
+ if (Math.random() < 0.3) {
297
+ const shifted = glitchRow.slice(offset).concat(glitchRow.slice(0, offset));
298
+ return shifted.slice(0, WIDTH);
299
+ }
300
+ // Random vertical swap
301
+ if (Math.random() < 0.2) {
302
+ const swapRow = Math.floor(Math.random() * DISPLAY_HEIGHT);
303
+ return [...this.finalGrid[swapRow]];
304
+ }
305
+ return glitchRow;
306
+ });
307
+ state.phase++;
308
+ return false;
309
+ }
310
+ // Final frame: show clean image
311
+ this.currentGrid = this.finalGrid.map((row) => [...row]);
312
+ return true;
313
+ }
314
+ tickDissolve() {
315
+ const state = this.effectState;
316
+ const pixelsPerFrame = 20;
317
+ for (let i = 0; i < pixelsPerFrame; i++) {
318
+ if (state.idx >= state.positions.length)
319
+ return true;
320
+ const [row, x] = state.positions[state.idx];
321
+ this.currentGrid[row][x] = this.finalGrid[row][x];
322
+ state.idx++;
323
+ }
324
+ return false;
325
+ }
326
+ updateDisplay() {
327
+ this.gridVersion++;
328
+ }
329
+ dispose() {
330
+ this.stopAnimation();
331
+ }
332
+ }
333
+ //# sourceMappingURL=armin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"armin.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/armin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,iEAAiE;AACjE,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,MAAM,IAAI,GAAG;IACZ,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EA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C3D,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;gBACrC,CAAC;gBAED,OAAO,SAAS,CAAC;YAAA,CACjB,CAAC,CAAC;YACH,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,OAAO,KAAK,CAAC;QACd,CAAC;QAED,gCAAgC;QAChC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACzD,OAAO,IAAI,CAAC;IAAA,CACZ;IAEO,YAAY,GAAY;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,WAA6D,CAAC;QACjF,MAAM,cAAc,GAAG,EAAE,CAAC;QAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,IAAI,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAC;YACrD,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC5C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClD,KAAK,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;QACD,OAAO,KAAK,CAAC;IAAA,CACb;IAEO,aAAa,GAAS;QAC7B,IAAI,CAAC,WAAW,EAAE,CAAC;IAAA,CACnB;IAED,OAAO,GAAS;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;IAAA,CACrB;CACD","sourcesContent":["/**\n * Armin says hi! A fun easter egg with animated XBM art.\n */\n\nimport type { Component, TUI } from \"@dimivelev/chimera-tui\";\nimport { theme } from \"../theme/theme.ts\";\n\n// XBM image: 31x36 pixels, LSB first, 1=background, 0=foreground\nconst WIDTH = 31;\nconst HEIGHT = 36;\nconst BITS = [\n\t0xff, 0xff, 0xff, 0x7f, 0xff, 0xf0, 0xff, 0x7f, 0xff, 0xed, 0xff, 0x7f, 0xff, 0xdb, 0xff, 0x7f, 0xff, 0xb7, 0xff,\n\t0x7f, 0xff, 0x77, 0xfe, 0x7f, 0x3f, 0xf8, 0xfe, 0x7f, 0xdf, 0xff, 0xfe, 0x7f, 0xdf, 0x3f, 0xfc, 0x7f, 0x9f, 0xc3,\n\t0xfb, 0x7f, 0x6f, 0xfc, 0xf4, 0x7f, 0xf7, 0x0f, 0xf7, 0x7f, 0xf7, 0xff, 0xf7, 0x7f, 0xf7, 0xff, 0xe3, 0x7f, 0xf7,\n\t0x07, 0xe8, 0x7f, 0xef, 0xf8, 0x67, 0x70, 0x0f, 0xff, 0xbb, 0x6f, 0xf1, 0x00, 0xd0, 0x5b, 0xfd, 0x3f, 0xec, 0x53,\n\t0xc1, 0xff, 0xef, 0x57, 0x9f, 0xfd, 0xee, 0x5f, 0x9f, 0xfc, 0xae, 0x5f, 0x1f, 0x78, 0xac, 0x5f, 0x3f, 0x00, 0x50,\n\t0x6c, 0x7f, 0x00, 0xdc, 0x77, 0xff, 0xc0, 0x3f, 0x78, 0xff, 0x01, 0xf8, 0x7f, 0xff, 0x03, 0x9c, 0x78, 0xff, 0x07,\n\t0x8c, 0x7c, 0xff, 0x0f, 0xce, 0x78, 0xff, 0xff, 0xcf, 0x7f, 0xff, 0xff, 0xcf, 0x78, 0xff, 0xff, 0xdf, 0x78, 0xff,\n\t0xff, 0xdf, 0x7d, 0xff, 0xff, 0x3f, 0x7e, 0xff, 0xff, 0xff, 0x7f,\n];\n\nconst BYTES_PER_ROW = Math.ceil(WIDTH / 8);\nconst DISPLAY_HEIGHT = Math.ceil(HEIGHT / 2); // Half-block rendering\n\ntype Effect = \"typewriter\" | \"scanline\" | \"rain\" | \"fade\" | \"crt\" | \"glitch\" | \"dissolve\";\n\nconst EFFECTS: Effect[] = [\"typewriter\", \"scanline\", \"rain\", \"fade\", \"crt\", \"glitch\", \"dissolve\"];\n\n// Get pixel at (x, y): true = foreground, false = background\nfunction getPixel(x: number, y: number): boolean {\n\tif (y >= HEIGHT) return false;\n\tconst byteIndex = y * BYTES_PER_ROW + Math.floor(x / 8);\n\tconst bitIndex = x % 8;\n\treturn ((BITS[byteIndex] >> bitIndex) & 1) === 0;\n}\n\n// Get the character for a cell (2 vertical pixels packed)\nfunction getChar(x: number, row: number): string {\n\tconst upper = getPixel(x, row * 2);\n\tconst lower = getPixel(x, row * 2 + 1);\n\tif (upper && lower) return \"█\";\n\tif (upper) return \"▀\";\n\tif (lower) return \"▄\";\n\treturn \" \";\n}\n\n// Build the final image grid\nfunction buildFinalGrid(): string[][] {\n\tconst grid: string[][] = [];\n\tfor (let row = 0; row < DISPLAY_HEIGHT; row++) {\n\t\tconst line: string[] = [];\n\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\tline.push(getChar(x, row));\n\t\t}\n\t\tgrid.push(line);\n\t}\n\treturn grid;\n}\n\nexport class ArminComponent implements Component {\n\tprivate ui: TUI;\n\tprivate interval: ReturnType<typeof setInterval> | null = null;\n\tprivate effect: Effect;\n\tprivate finalGrid: string[][];\n\tprivate currentGrid: string[][];\n\tprivate effectState: Record<string, unknown> = {};\n\tprivate cachedLines: string[] = [];\n\tprivate cachedWidth = 0;\n\tprivate gridVersion = 0;\n\tprivate cachedVersion = -1;\n\n\tconstructor(ui: TUI) {\n\t\tthis.ui = ui;\n\t\tthis.effect = EFFECTS[Math.floor(Math.random() * EFFECTS.length)];\n\t\tthis.finalGrid = buildFinalGrid();\n\t\tthis.currentGrid = this.createEmptyGrid();\n\n\t\tthis.initEffect();\n\t\tthis.startAnimation();\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedWidth = 0;\n\t}\n\n\trender(width: number): string[] {\n\t\tif (width === this.cachedWidth && this.cachedVersion === this.gridVersion) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\tconst padding = 1;\n\t\tconst availableWidth = width - padding;\n\n\t\tthis.cachedLines = this.currentGrid.map((row) => {\n\t\t\t// Clip row to available width before applying color\n\t\t\tconst clipped = row.slice(0, availableWidth).join(\"\");\n\t\t\tconst padRight = Math.max(0, width - padding - clipped.length);\n\t\t\treturn ` ${theme.fg(\"accent\", clipped)}${\" \".repeat(padRight)}`;\n\t\t});\n\n\t\t// Add \"ARMIN SAYS HI\" at the end\n\t\tconst message = \"ARMIN SAYS HI\";\n\t\tconst msgPadRight = Math.max(0, width - padding - message.length);\n\t\tthis.cachedLines.push(` ${theme.fg(\"accent\", message)}${\" \".repeat(msgPadRight)}`);\n\n\t\tthis.cachedWidth = width;\n\t\tthis.cachedVersion = this.gridVersion;\n\n\t\treturn this.cachedLines;\n\t}\n\n\tprivate createEmptyGrid(): string[][] {\n\t\treturn Array.from({ length: DISPLAY_HEIGHT }, () => Array(WIDTH).fill(\" \"));\n\t}\n\n\tprivate initEffect(): void {\n\t\tswitch (this.effect) {\n\t\t\tcase \"typewriter\":\n\t\t\t\tthis.effectState = { pos: 0 };\n\t\t\t\tbreak;\n\t\t\tcase \"scanline\":\n\t\t\t\tthis.effectState = { row: 0 };\n\t\t\t\tbreak;\n\t\t\tcase \"rain\":\n\t\t\t\t// Track falling position for each column\n\t\t\t\tthis.effectState = {\n\t\t\t\t\tdrops: Array.from({ length: WIDTH }, () => ({\n\t\t\t\t\t\ty: -Math.floor(Math.random() * DISPLAY_HEIGHT * 2),\n\t\t\t\t\t\tsettled: 0,\n\t\t\t\t\t})),\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"fade\": {\n\t\t\t\t// Shuffle all pixel positions\n\t\t\t\tconst positions: [number, number][] = [];\n\t\t\t\tfor (let row = 0; row < DISPLAY_HEIGHT; row++) {\n\t\t\t\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\t\t\t\tpositions.push([row, x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Fisher-Yates shuffle\n\t\t\t\tfor (let i = positions.length - 1; i > 0; i--) {\n\t\t\t\t\tconst j = Math.floor(Math.random() * (i + 1));\n\t\t\t\t\t[positions[i], positions[j]] = [positions[j], positions[i]];\n\t\t\t\t}\n\t\t\t\tthis.effectState = { positions, idx: 0 };\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"crt\":\n\t\t\t\tthis.effectState = { expansion: 0 };\n\t\t\t\tbreak;\n\t\t\tcase \"glitch\":\n\t\t\t\tthis.effectState = { phase: 0, glitchFrames: 8 };\n\t\t\t\tbreak;\n\t\t\tcase \"dissolve\": {\n\t\t\t\t// Start with random noise\n\t\t\t\tthis.currentGrid = Array.from({ length: DISPLAY_HEIGHT }, () =>\n\t\t\t\t\tArray.from({ length: WIDTH }, () => {\n\t\t\t\t\t\tconst chars = [\" \", \"░\", \"▒\", \"▓\", \"█\", \"▀\", \"▄\"];\n\t\t\t\t\t\treturn chars[Math.floor(Math.random() * chars.length)];\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t\t// Shuffle positions for gradual resolve\n\t\t\t\tconst dissolvePositions: [number, number][] = [];\n\t\t\t\tfor (let row = 0; row < DISPLAY_HEIGHT; row++) {\n\t\t\t\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\t\t\t\tdissolvePositions.push([row, x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let i = dissolvePositions.length - 1; i > 0; i--) {\n\t\t\t\t\tconst j = Math.floor(Math.random() * (i + 1));\n\t\t\t\t\t[dissolvePositions[i], dissolvePositions[j]] = [dissolvePositions[j], dissolvePositions[i]];\n\t\t\t\t}\n\t\t\t\tthis.effectState = { positions: dissolvePositions, idx: 0 };\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate startAnimation(): void {\n\t\tconst fps = this.effect === \"glitch\" ? 60 : 30;\n\t\tthis.interval = setInterval(() => {\n\t\t\tconst done = this.tickEffect();\n\t\t\tthis.updateDisplay();\n\t\t\tthis.ui.requestRender();\n\t\t\tif (done) {\n\t\t\t\tthis.stopAnimation();\n\t\t\t}\n\t\t}, 1000 / fps);\n\t}\n\n\tprivate stopAnimation(): void {\n\t\tif (this.interval) {\n\t\t\tclearInterval(this.interval);\n\t\t\tthis.interval = null;\n\t\t}\n\t}\n\n\tprivate tickEffect(): boolean {\n\t\tswitch (this.effect) {\n\t\t\tcase \"typewriter\":\n\t\t\t\treturn this.tickTypewriter();\n\t\t\tcase \"scanline\":\n\t\t\t\treturn this.tickScanline();\n\t\t\tcase \"rain\":\n\t\t\t\treturn this.tickRain();\n\t\t\tcase \"fade\":\n\t\t\t\treturn this.tickFade();\n\t\t\tcase \"crt\":\n\t\t\t\treturn this.tickCrt();\n\t\t\tcase \"glitch\":\n\t\t\t\treturn this.tickGlitch();\n\t\t\tcase \"dissolve\":\n\t\t\t\treturn this.tickDissolve();\n\t\t\tdefault:\n\t\t\t\treturn true;\n\t\t}\n\t}\n\n\tprivate tickTypewriter(): boolean {\n\t\tconst state = this.effectState as { pos: number };\n\t\tconst pixelsPerFrame = 3;\n\n\t\tfor (let i = 0; i < pixelsPerFrame; i++) {\n\t\t\tconst row = Math.floor(state.pos / WIDTH);\n\t\t\tconst x = state.pos % WIDTH;\n\t\t\tif (row >= DISPLAY_HEIGHT) return true;\n\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\tstate.pos++;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate tickScanline(): boolean {\n\t\tconst state = this.effectState as { row: number };\n\t\tif (state.row >= DISPLAY_HEIGHT) return true;\n\n\t\t// Copy row\n\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\tthis.currentGrid[state.row][x] = this.finalGrid[state.row][x];\n\t\t}\n\t\tstate.row++;\n\t\treturn false;\n\t}\n\n\tprivate tickRain(): boolean {\n\t\tconst state = this.effectState as {\n\t\t\tdrops: { y: number; settled: number }[];\n\t\t};\n\n\t\tlet allSettled = true;\n\t\tthis.currentGrid = this.createEmptyGrid();\n\n\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\tconst drop = state.drops[x];\n\n\t\t\t// Draw settled pixels\n\t\t\tfor (let row = DISPLAY_HEIGHT - 1; row >= DISPLAY_HEIGHT - drop.settled; row--) {\n\t\t\t\tif (row >= 0) {\n\t\t\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check if this column is done\n\t\t\tif (drop.settled >= DISPLAY_HEIGHT) continue;\n\n\t\t\tallSettled = false;\n\n\t\t\t// Find the target row for this column (lowest non-space pixel)\n\t\t\tlet targetRow = -1;\n\t\t\tfor (let row = DISPLAY_HEIGHT - 1 - drop.settled; row >= 0; row--) {\n\t\t\t\tif (this.finalGrid[row][x] !== \" \") {\n\t\t\t\t\ttargetRow = row;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Move drop down\n\t\t\tdrop.y++;\n\n\t\t\t// Draw falling drop\n\t\t\tif (drop.y >= 0 && drop.y < DISPLAY_HEIGHT) {\n\t\t\t\tif (targetRow >= 0 && drop.y >= targetRow) {\n\t\t\t\t\t// Settle\n\t\t\t\t\tdrop.settled = DISPLAY_HEIGHT - targetRow;\n\t\t\t\t\tdrop.y = -Math.floor(Math.random() * 5) - 1;\n\t\t\t\t} else {\n\t\t\t\t\t// Still falling\n\t\t\t\t\tthis.currentGrid[drop.y][x] = \"▓\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn allSettled;\n\t}\n\n\tprivate tickFade(): boolean {\n\t\tconst state = this.effectState as { positions: [number, number][]; idx: number };\n\t\tconst pixelsPerFrame = 15;\n\n\t\tfor (let i = 0; i < pixelsPerFrame; i++) {\n\t\t\tif (state.idx >= state.positions.length) return true;\n\t\t\tconst [row, x] = state.positions[state.idx];\n\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\tstate.idx++;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate tickCrt(): boolean {\n\t\tconst state = this.effectState as { expansion: number };\n\t\tconst midRow = Math.floor(DISPLAY_HEIGHT / 2);\n\n\t\tthis.currentGrid = this.createEmptyGrid();\n\n\t\t// Draw from middle expanding outward\n\t\tconst top = midRow - state.expansion;\n\t\tconst bottom = midRow + state.expansion;\n\n\t\tfor (let row = Math.max(0, top); row <= Math.min(DISPLAY_HEIGHT - 1, bottom); row++) {\n\t\t\tfor (let x = 0; x < WIDTH; x++) {\n\t\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\t}\n\t\t}\n\n\t\tstate.expansion++;\n\t\treturn state.expansion > DISPLAY_HEIGHT;\n\t}\n\n\tprivate tickGlitch(): boolean {\n\t\tconst state = this.effectState as { phase: number; glitchFrames: number };\n\n\t\tif (state.phase < state.glitchFrames) {\n\t\t\t// Glitch phase: show corrupted version\n\t\t\tthis.currentGrid = this.finalGrid.map((row) => {\n\t\t\t\tconst offset = Math.floor(Math.random() * 7) - 3;\n\t\t\t\tconst glitchRow = [...row];\n\n\t\t\t\t// Random horizontal offset\n\t\t\t\tif (Math.random() < 0.3) {\n\t\t\t\t\tconst shifted = glitchRow.slice(offset).concat(glitchRow.slice(0, offset));\n\t\t\t\t\treturn shifted.slice(0, WIDTH);\n\t\t\t\t}\n\n\t\t\t\t// Random vertical swap\n\t\t\t\tif (Math.random() < 0.2) {\n\t\t\t\t\tconst swapRow = Math.floor(Math.random() * DISPLAY_HEIGHT);\n\t\t\t\t\treturn [...this.finalGrid[swapRow]];\n\t\t\t\t}\n\n\t\t\t\treturn glitchRow;\n\t\t\t});\n\t\t\tstate.phase++;\n\t\t\treturn false;\n\t\t}\n\n\t\t// Final frame: show clean image\n\t\tthis.currentGrid = this.finalGrid.map((row) => [...row]);\n\t\treturn true;\n\t}\n\n\tprivate tickDissolve(): boolean {\n\t\tconst state = this.effectState as { positions: [number, number][]; idx: number };\n\t\tconst pixelsPerFrame = 20;\n\n\t\tfor (let i = 0; i < pixelsPerFrame; i++) {\n\t\t\tif (state.idx >= state.positions.length) return true;\n\t\t\tconst [row, x] = state.positions[state.idx];\n\t\t\tthis.currentGrid[row][x] = this.finalGrid[row][x];\n\t\t\tstate.idx++;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate updateDisplay(): void {\n\t\tthis.gridVersion++;\n\t}\n\n\tdispose(): void {\n\t\tthis.stopAnimation();\n\t}\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import type { AssistantMessage } from "@dimivelev/chimera-ai";
2
+ import { Container, type MarkdownTheme } from "@dimivelev/chimera-tui";
3
+ /**
4
+ * Component that renders a complete assistant message
5
+ */
6
+ export declare class AssistantMessageComponent extends Container {
7
+ private contentContainer;
8
+ private hideThinkingBlock;
9
+ private markdownTheme;
10
+ private hiddenThinkingLabel;
11
+ private lastMessage?;
12
+ private hasToolCalls;
13
+ constructor(message?: AssistantMessage, hideThinkingBlock?: boolean, markdownTheme?: MarkdownTheme, hiddenThinkingLabel?: string);
14
+ invalidate(): void;
15
+ setHideThinkingBlock(hide: boolean): void;
16
+ setHiddenThinkingLabel(label: string): void;
17
+ render(width: number): string[];
18
+ updateContent(message: AssistantMessage): void;
19
+ }
20
+ //# sourceMappingURL=assistant-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-message.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/assistant-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAY,KAAK,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAO/F;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACvD,OAAO,CAAC,gBAAgB,CAAY;IACpC,OAAO,CAAC,iBAAiB,CAAU;IACnC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,WAAW,CAAC,CAAmB;IACvC,OAAO,CAAC,YAAY,CAAS;IAE7B,YACC,OAAO,CAAC,EAAE,gBAAgB,EAC1B,iBAAiB,UAAQ,EACzB,aAAa,GAAE,aAAkC,EACjD,mBAAmB,SAAgB,EAenC;IAEQ,UAAU,IAAI,IAAI,CAK1B;IAED,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAKxC;IAED,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAK1C;IAEQ,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CASvC;IAED,aAAa,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAyE7C;CACD","sourcesContent":["import type { AssistantMessage } from \"@dimivelev/chimera-ai\";\nimport { Container, Markdown, type MarkdownTheme, Spacer, Text } from \"@dimivelev/chimera-tui\";\nimport { getMarkdownTheme, theme } from \"../theme/theme.ts\";\n\nconst OSC133_ZONE_START = \"\\x1b]133;A\\x07\";\nconst OSC133_ZONE_END = \"\\x1b]133;B\\x07\";\nconst OSC133_ZONE_FINAL = \"\\x1b]133;C\\x07\";\n\n/**\n * Component that renders a complete assistant message\n */\nexport class AssistantMessageComponent extends Container {\n\tprivate contentContainer: Container;\n\tprivate hideThinkingBlock: boolean;\n\tprivate markdownTheme: MarkdownTheme;\n\tprivate hiddenThinkingLabel: string;\n\tprivate lastMessage?: AssistantMessage;\n\tprivate hasToolCalls = false;\n\n\tconstructor(\n\t\tmessage?: AssistantMessage,\n\t\thideThinkingBlock = false,\n\t\tmarkdownTheme: MarkdownTheme = getMarkdownTheme(),\n\t\thiddenThinkingLabel = \"Thinking...\",\n\t) {\n\t\tsuper();\n\n\t\tthis.hideThinkingBlock = hideThinkingBlock;\n\t\tthis.markdownTheme = markdownTheme;\n\t\tthis.hiddenThinkingLabel = hiddenThinkingLabel;\n\n\t\t// Container for text/thinking content\n\t\tthis.contentContainer = new Container();\n\t\tthis.addChild(this.contentContainer);\n\n\t\tif (message) {\n\t\t\tthis.updateContent(message);\n\t\t}\n\t}\n\n\toverride invalidate(): void {\n\t\tsuper.invalidate();\n\t\tif (this.lastMessage) {\n\t\t\tthis.updateContent(this.lastMessage);\n\t\t}\n\t}\n\n\tsetHideThinkingBlock(hide: boolean): void {\n\t\tthis.hideThinkingBlock = hide;\n\t\tif (this.lastMessage) {\n\t\t\tthis.updateContent(this.lastMessage);\n\t\t}\n\t}\n\n\tsetHiddenThinkingLabel(label: string): void {\n\t\tthis.hiddenThinkingLabel = label;\n\t\tif (this.lastMessage) {\n\t\t\tthis.updateContent(this.lastMessage);\n\t\t}\n\t}\n\n\toverride render(width: number): string[] {\n\t\tconst lines = super.render(width);\n\t\tif (this.hasToolCalls || lines.length === 0) {\n\t\t\treturn lines;\n\t\t}\n\n\t\tlines[0] = OSC133_ZONE_START + lines[0];\n\t\tlines[lines.length - 1] = OSC133_ZONE_END + OSC133_ZONE_FINAL + lines[lines.length - 1];\n\t\treturn lines;\n\t}\n\n\tupdateContent(message: AssistantMessage): void {\n\t\tthis.lastMessage = message;\n\n\t\t// Clear content container\n\t\tthis.contentContainer.clear();\n\n\t\tconst hasVisibleContent = message.content.some(\n\t\t\t(c) => (c.type === \"text\" && c.text.trim()) || (c.type === \"thinking\" && c.thinking.trim()),\n\t\t);\n\n\t\tif (hasVisibleContent) {\n\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t}\n\n\t\t// Render content in order\n\t\tfor (let i = 0; i < message.content.length; i++) {\n\t\t\tconst content = message.content[i];\n\t\t\tif (content.type === \"text\" && content.text.trim()) {\n\t\t\t\t// Assistant text messages with no background - trim the text\n\t\t\t\t// Set paddingY=0 to avoid extra spacing before tool executions\n\t\t\t\tthis.contentContainer.addChild(new Markdown(content.text.trim(), 1, 0, this.markdownTheme));\n\t\t\t} else if (content.type === \"thinking\" && content.thinking.trim()) {\n\t\t\t\t// Add spacing only when another visible assistant content block follows.\n\t\t\t\t// This avoids a superfluous blank line before separately-rendered tool execution blocks.\n\t\t\t\tconst hasVisibleContentAfter = message.content\n\t\t\t\t\t.slice(i + 1)\n\t\t\t\t\t.some((c) => (c.type === \"text\" && c.text.trim()) || (c.type === \"thinking\" && c.thinking.trim()));\n\n\t\t\t\tif (this.hideThinkingBlock) {\n\t\t\t\t\t// Show static thinking label when hidden\n\t\t\t\t\tthis.contentContainer.addChild(\n\t\t\t\t\t\tnew Text(theme.italic(theme.fg(\"thinkingText\", this.hiddenThinkingLabel)), 1, 0),\n\t\t\t\t\t);\n\t\t\t\t\tif (hasVisibleContentAfter) {\n\t\t\t\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Thinking traces in thinkingText color, italic\n\t\t\t\t\tthis.contentContainer.addChild(\n\t\t\t\t\t\tnew Markdown(content.thinking.trim(), 1, 0, this.markdownTheme, {\n\t\t\t\t\t\t\tcolor: (text: string) => theme.fg(\"thinkingText\", text),\n\t\t\t\t\t\t\titalic: true,\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\t\t\t\t\tif (hasVisibleContentAfter) {\n\t\t\t\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check if aborted - show after partial content\n\t\t// But only if there are no tool calls (tool execution components will show the error)\n\t\tconst hasToolCalls = message.content.some((c) => c.type === \"toolCall\");\n\t\tthis.hasToolCalls = hasToolCalls;\n\t\tif (!hasToolCalls) {\n\t\t\tif (message.stopReason === \"aborted\") {\n\t\t\t\tconst abortMessage =\n\t\t\t\t\tmessage.errorMessage && message.errorMessage !== \"Request was aborted\"\n\t\t\t\t\t\t? message.errorMessage\n\t\t\t\t\t\t: \"Operation aborted\";\n\t\t\t\tif (hasVisibleContent) {\n\t\t\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t\t\t} else {\n\t\t\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t\t\t}\n\t\t\t\tthis.contentContainer.addChild(new Text(theme.fg(\"error\", abortMessage), 1, 0));\n\t\t\t} else if (message.stopReason === \"error\") {\n\t\t\t\tconst errorMsg = message.errorMessage || \"Unknown error\";\n\t\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t\t\tthis.contentContainer.addChild(new Text(theme.fg(\"error\", `Error: ${errorMsg}`), 1, 0));\n\t\t\t}\n\t\t}\n\t}\n}\n"]}