@relay-harness/coding-agent 0.0.0-stage → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1297) hide show
  1. package/CHANGELOG.md +6111 -0
  2. package/README.md +80 -2
  3. package/dist/bun/cli.d.ts +5 -0
  4. package/dist/bun/cli.d.ts.map +1 -0
  5. package/dist/bun/cli.js +5 -0
  6. package/dist/bun/cli.js.map +1 -0
  7. package/dist/bun/restore-sandbox-env.d.ts +17 -0
  8. package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
  9. package/dist/bun/restore-sandbox-env.js +36 -0
  10. package/dist/bun/restore-sandbox-env.js.map +1 -0
  11. package/dist/bun/runtime-setup.d.ts +2 -0
  12. package/dist/bun/runtime-setup.d.ts.map +1 -0
  13. package/dist/bun/runtime-setup.js +12 -0
  14. package/dist/bun/runtime-setup.js.map +1 -0
  15. package/dist/bun/sandbox-env-setup.d.ts +2 -0
  16. package/dist/bun/sandbox-env-setup.d.ts.map +1 -0
  17. package/dist/bun/sandbox-env-setup.js +4 -0
  18. package/dist/bun/sandbox-env-setup.js.map +1 -0
  19. package/dist/bundle/chunks/anthropic-messages-TXWUAW5N.js +6 -0
  20. package/dist/bundle/chunks/anthropic.js +75 -0
  21. package/dist/bundle/chunks/azure-openai-responses-EJG46ESA.js +2 -0
  22. package/dist/bundle/chunks/bedrock-converse-stream.js +83 -0
  23. package/dist/bundle/chunks/chunk-3QND5D7W.js +82 -0
  24. package/dist/bundle/chunks/chunk-3XNI2SB6.js +15 -0
  25. package/dist/bundle/chunks/chunk-4L3WN2XY.js +2 -0
  26. package/dist/bundle/chunks/chunk-6CYCI3EJ.js +12 -0
  27. package/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
  28. package/dist/bundle/chunks/chunk-A3JYRWB6.js +2 -0
  29. package/dist/bundle/chunks/chunk-C47CLQZK.js +2 -0
  30. package/dist/bundle/chunks/chunk-DRQDKNXA.js +2 -0
  31. package/dist/bundle/chunks/chunk-EQ2HXQGJ.js +2 -0
  32. package/dist/bundle/chunks/chunk-F5ZABL6Z.js +20 -0
  33. package/dist/bundle/chunks/chunk-H3QXYIF7.js +31 -0
  34. package/dist/bundle/chunks/chunk-H6S6DQTM.js +2 -0
  35. package/dist/bundle/chunks/chunk-ISNO4JTR.js +127 -0
  36. package/dist/bundle/chunks/chunk-KJUDFE6Y.js +11 -0
  37. package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
  38. package/dist/bundle/chunks/chunk-LD2P6SFZ.js +2 -0
  39. package/dist/bundle/chunks/chunk-MP5FU7MG.js +20 -0
  40. package/dist/bundle/chunks/chunk-O7R77OAK.js +2 -0
  41. package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
  42. package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
  43. package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
  44. package/dist/bundle/chunks/chunk-PTRF7IZB.js +2 -0
  45. package/dist/bundle/chunks/chunk-RZ4KG4BP.js +44 -0
  46. package/dist/bundle/chunks/chunk-S3GGRYIO.js +6 -0
  47. package/dist/bundle/chunks/chunk-TEPMHNKQ.js +2 -0
  48. package/dist/bundle/chunks/chunk-TRDNDS6A.js +4 -0
  49. package/dist/bundle/chunks/chunk-USJZMAIR.js +2 -0
  50. package/dist/bundle/chunks/chunk-UTB4DTYQ.js +2 -0
  51. package/dist/bundle/chunks/chunk-WMTXXI7H.js +4 -0
  52. package/dist/bundle/chunks/chunk-XDAWU2J5.js +132 -0
  53. package/dist/bundle/chunks/chunk-XSLAMYCK.js +1297 -0
  54. package/dist/bundle/chunks/chunk-Z2G7KLPH.js +11 -0
  55. package/dist/bundle/chunks/cli-K4CNHWOI.js +51 -0
  56. package/dist/bundle/chunks/cloudflare-workers-ai-system-one-NM3JRRWQ.js +2 -0
  57. package/dist/bundle/chunks/codemode-worker.js +374 -0
  58. package/dist/bundle/chunks/easter-egg-3d-TGRCIHA4.js +2 -0
  59. package/dist/bundle/chunks/execute-6E5DA2QI.js +388 -0
  60. package/dist/bundle/chunks/github-copilot.js +2 -0
  61. package/dist/bundle/chunks/google-generative-ai-HYUNEOCJ.js +2 -0
  62. package/dist/bundle/chunks/google-vertex-J7MDGTNM.js +2 -0
  63. package/dist/bundle/chunks/https-proxy-agent-2VXB7436.js +13 -0
  64. package/dist/bundle/chunks/image-resize-worker.js +2 -0
  65. package/dist/bundle/chunks/jiti-loader-C3NU2SDH.js +21 -0
  66. package/dist/bundle/chunks/jiti-static-loader-E6ANQD5T.js +2 -0
  67. package/dist/bundle/chunks/kimi-coding.js +2 -0
  68. package/dist/bundle/chunks/lib-TEDK3E5I.js +9 -0
  69. package/dist/bundle/chunks/llama-cpp-classify-XT44PI3C.js +22 -0
  70. package/dist/bundle/chunks/meta.js +2 -0
  71. package/dist/bundle/chunks/mistral-conversations-UD2HHXKZ.js +5 -0
  72. package/dist/bundle/chunks/multipart-parser-SQ6GDJL7.js +3 -0
  73. package/dist/bundle/chunks/node-N5BSDOA5.js +16 -0
  74. package/dist/bundle/chunks/node-TWVVAGPO.js +2 -0
  75. package/dist/bundle/chunks/openai-chatgpt.js +75 -0
  76. package/dist/bundle/chunks/openai-codex-responses-EMHXEJR4.js +10 -0
  77. package/dist/bundle/chunks/openai-codex.js +75 -0
  78. package/dist/bundle/chunks/openai-completions-LPKRZYMC.js +7 -0
  79. package/dist/bundle/chunks/openai-responses-TOOBRHUV.js +3 -0
  80. package/dist/bundle/chunks/openrouter-images-ZVXWCSIM.js +2 -0
  81. package/dist/bundle/chunks/openrouter.js +75 -0
  82. package/dist/bundle/chunks/relay-messages-QRFJXG5X.js +8 -0
  83. package/dist/bundle/chunks/runtime-O5HLCH3V.js +2 -0
  84. package/dist/bundle/chunks/src-UK77SYZE.js +4 -0
  85. package/dist/bundle/chunks/typesafe-system-one-PRR5K6CI.js +2 -0
  86. package/dist/bundle/chunks/virtual-modules-FNVEVB65.js +2 -0
  87. package/dist/bundle/chunks/xai.js +2 -0
  88. package/dist/bundle/cli-runtime.js +3 -0
  89. package/dist/bundle/cli.js +5 -0
  90. package/dist/bundle/index.js +2 -0
  91. package/dist/bundle/rpc-entry.js +3 -0
  92. package/dist/cli/args.d.ts +61 -0
  93. package/dist/cli/args.d.ts.map +1 -0
  94. package/dist/cli/args.js +454 -0
  95. package/dist/cli/args.js.map +1 -0
  96. package/dist/cli/auth-check.d.ts +19 -0
  97. package/dist/cli/auth-check.d.ts.map +1 -0
  98. package/dist/cli/auth-check.js +50 -0
  99. package/dist/cli/auth-check.js.map +1 -0
  100. package/dist/cli/auth-command.d.ts +24 -0
  101. package/dist/cli/auth-command.d.ts.map +1 -0
  102. package/dist/cli/auth-command.js +103 -0
  103. package/dist/cli/auth-command.js.map +1 -0
  104. package/dist/cli/config-selector.d.ts +16 -0
  105. package/dist/cli/config-selector.d.ts.map +1 -0
  106. package/dist/cli/config-selector.js +32 -0
  107. package/dist/cli/config-selector.js.map +1 -0
  108. package/dist/cli/credential-print.d.ts +13 -0
  109. package/dist/cli/credential-print.d.ts.map +1 -0
  110. package/dist/cli/credential-print.js +76 -0
  111. package/dist/cli/credential-print.js.map +1 -0
  112. package/dist/cli/file-processor.d.ts +15 -0
  113. package/dist/cli/file-processor.d.ts.map +1 -0
  114. package/dist/cli/file-processor.js +71 -0
  115. package/dist/cli/file-processor.js.map +1 -0
  116. package/dist/cli/initial-message.d.ts +18 -0
  117. package/dist/cli/initial-message.d.ts.map +1 -0
  118. package/dist/cli/initial-message.js +22 -0
  119. package/dist/cli/initial-message.js.map +1 -0
  120. package/dist/cli/list-models.d.ts +9 -0
  121. package/dist/cli/list-models.d.ts.map +1 -0
  122. package/dist/cli/list-models.js +98 -0
  123. package/dist/cli/list-models.js.map +1 -0
  124. package/dist/cli/project-trust.d.ts +10 -0
  125. package/dist/cli/project-trust.d.ts.map +1 -0
  126. package/dist/cli/project-trust.js +48 -0
  127. package/dist/cli/project-trust.js.map +1 -0
  128. package/dist/cli/session-picker.d.ts +10 -0
  129. package/dist/cli/session-picker.d.ts.map +1 -0
  130. package/dist/cli/session-picker.js +36 -0
  131. package/dist/cli/session-picker.js.map +1 -0
  132. package/dist/cli/setup.d.ts +2 -0
  133. package/dist/cli/setup.d.ts.map +1 -0
  134. package/dist/cli/setup.js +12 -0
  135. package/dist/cli/setup.js.map +1 -0
  136. package/dist/cli/startup-ui.d.ts +20 -0
  137. package/dist/cli/startup-ui.d.ts.map +1 -0
  138. package/dist/cli/startup-ui.js +193 -0
  139. package/dist/cli/startup-ui.js.map +1 -0
  140. package/dist/cli.d.ts +3 -0
  141. package/dist/cli.d.ts.map +1 -0
  142. package/dist/cli.js +6 -0
  143. package/dist/cli.js.map +1 -0
  144. package/dist/config.d.ts +108 -0
  145. package/dist/config.d.ts.map +1 -0
  146. package/dist/config.js +264 -0
  147. package/dist/config.js.map +1 -0
  148. package/dist/core/agent-session-runtime.d.ts +119 -0
  149. package/dist/core/agent-session-runtime.d.ts.map +1 -0
  150. package/dist/core/agent-session-runtime.js +317 -0
  151. package/dist/core/agent-session-runtime.js.map +1 -0
  152. package/dist/core/agent-session-services.d.ts +86 -0
  153. package/dist/core/agent-session-services.d.ts.map +1 -0
  154. package/dist/core/agent-session-services.js +147 -0
  155. package/dist/core/agent-session-services.js.map +1 -0
  156. package/dist/core/agent-session.d.ts +891 -0
  157. package/dist/core/agent-session.d.ts.map +1 -0
  158. package/dist/core/agent-session.js +3553 -0
  159. package/dist/core/agent-session.js.map +1 -0
  160. package/dist/core/auth-guidance.d.ts +5 -0
  161. package/dist/core/auth-guidance.d.ts.map +1 -0
  162. package/dist/core/auth-guidance.js +21 -0
  163. package/dist/core/auth-guidance.js.map +1 -0
  164. package/dist/core/auth-storage.d.ts +72 -0
  165. package/dist/core/auth-storage.d.ts.map +1 -0
  166. package/dist/core/auth-storage.js +426 -0
  167. package/dist/core/auth-storage.js.map +1 -0
  168. package/dist/core/bash-executor.d.ts +32 -0
  169. package/dist/core/bash-executor.d.ts.map +1 -0
  170. package/dist/core/bash-executor.js +106 -0
  171. package/dist/core/bash-executor.js.map +1 -0
  172. package/dist/core/bug-report.d.ts +176 -0
  173. package/dist/core/bug-report.d.ts.map +1 -0
  174. package/dist/core/bug-report.js +292 -0
  175. package/dist/core/bug-report.js.map +1 -0
  176. package/dist/core/cache-stats.d.ts +49 -0
  177. package/dist/core/cache-stats.d.ts.map +1 -0
  178. package/dist/core/cache-stats.js +112 -0
  179. package/dist/core/cache-stats.js.map +1 -0
  180. package/dist/core/cache-warmer.d.ts +103 -0
  181. package/dist/core/cache-warmer.d.ts.map +1 -0
  182. package/dist/core/cache-warmer.js +356 -0
  183. package/dist/core/cache-warmer.js.map +1 -0
  184. package/dist/core/compaction/branch-summarization.d.ts +98 -0
  185. package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  186. package/dist/core/compaction/branch-summarization.js +251 -0
  187. package/dist/core/compaction/branch-summarization.js.map +1 -0
  188. package/dist/core/compaction/compaction.d.ts +145 -0
  189. package/dist/core/compaction/compaction.d.ts.map +1 -0
  190. package/dist/core/compaction/compaction.js +744 -0
  191. package/dist/core/compaction/compaction.js.map +1 -0
  192. package/dist/core/compaction/index.d.ts +7 -0
  193. package/dist/core/compaction/index.d.ts.map +1 -0
  194. package/dist/core/compaction/index.js +7 -0
  195. package/dist/core/compaction/index.js.map +1 -0
  196. package/dist/core/compaction/utils.d.ts +39 -0
  197. package/dist/core/compaction/utils.d.ts.map +1 -0
  198. package/dist/core/compaction/utils.js +149 -0
  199. package/dist/core/compaction/utils.js.map +1 -0
  200. package/dist/core/crash-log.d.ts +27 -0
  201. package/dist/core/crash-log.d.ts.map +1 -0
  202. package/dist/core/crash-log.js +140 -0
  203. package/dist/core/crash-log.js.map +1 -0
  204. package/dist/core/defaults.d.ts +4 -0
  205. package/dist/core/defaults.d.ts.map +1 -0
  206. package/dist/core/defaults.js +11 -0
  207. package/dist/core/defaults.js.map +1 -0
  208. package/dist/core/diagnostics.d.ts +15 -0
  209. package/dist/core/diagnostics.d.ts.map +1 -0
  210. package/dist/core/diagnostics.js +2 -0
  211. package/dist/core/diagnostics.js.map +1 -0
  212. package/dist/core/event-bus.d.ts +9 -0
  213. package/dist/core/event-bus.d.ts.map +1 -0
  214. package/dist/core/event-bus.js +25 -0
  215. package/dist/core/event-bus.js.map +1 -0
  216. package/dist/core/exec.d.ts +29 -0
  217. package/dist/core/exec.d.ts.map +1 -0
  218. package/dist/core/exec.js +75 -0
  219. package/dist/core/exec.js.map +1 -0
  220. package/dist/core/experimental.d.ts +2 -0
  221. package/dist/core/experimental.d.ts.map +1 -0
  222. package/dist/core/experimental.js +4 -0
  223. package/dist/core/experimental.js.map +1 -0
  224. package/dist/core/export-html/ansi-to-html.d.ts +22 -0
  225. package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  226. package/dist/core/export-html/ansi-to-html.js +249 -0
  227. package/dist/core/export-html/ansi-to-html.js.map +1 -0
  228. package/dist/core/export-html/index.d.ts +37 -0
  229. package/dist/core/export-html/index.d.ts.map +1 -0
  230. package/dist/core/export-html/index.js +226 -0
  231. package/dist/core/export-html/index.js.map +1 -0
  232. package/dist/core/export-html/template.css +1076 -0
  233. package/dist/core/export-html/template.html +55 -0
  234. package/dist/core/export-html/template.js +1918 -0
  235. package/dist/core/export-html/tool-renderer.d.ts +34 -0
  236. package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  237. package/dist/core/export-html/tool-renderer.js +108 -0
  238. package/dist/core/export-html/tool-renderer.js.map +1 -0
  239. package/dist/core/export-html/vendor/highlight.min.js +1213 -0
  240. package/dist/core/export-html/vendor/marked.min.js +78 -0
  241. package/dist/core/extensions/index.d.ts +12 -0
  242. package/dist/core/extensions/index.d.ts.map +1 -0
  243. package/dist/core/extensions/index.js +9 -0
  244. package/dist/core/extensions/index.js.map +1 -0
  245. package/dist/core/extensions/jiti-loader.d.ts +2 -0
  246. package/dist/core/extensions/jiti-loader.d.ts.map +1 -0
  247. package/dist/core/extensions/jiti-loader.js +4 -0
  248. package/dist/core/extensions/jiti-loader.js.map +1 -0
  249. package/dist/core/extensions/jiti-static-loader.d.ts +2 -0
  250. package/dist/core/extensions/jiti-static-loader.d.ts.map +1 -0
  251. package/dist/core/extensions/jiti-static-loader.js +4 -0
  252. package/dist/core/extensions/jiti-static-loader.js.map +1 -0
  253. package/dist/core/extensions/loader.d.ts +23 -0
  254. package/dist/core/extensions/loader.d.ts.map +1 -0
  255. package/dist/core/extensions/loader.js +701 -0
  256. package/dist/core/extensions/loader.js.map +1 -0
  257. package/dist/core/extensions/runner.d.ts +213 -0
  258. package/dist/core/extensions/runner.d.ts.map +1 -0
  259. package/dist/core/extensions/runner.js +1239 -0
  260. package/dist/core/extensions/runner.js.map +1 -0
  261. package/dist/core/extensions/types.d.ts +1720 -0
  262. package/dist/core/extensions/types.d.ts.map +1 -0
  263. package/dist/core/extensions/types.js +48 -0
  264. package/dist/core/extensions/types.js.map +1 -0
  265. package/dist/core/extensions/virtual-modules.d.ts +3 -0
  266. package/dist/core/extensions/virtual-modules.d.ts.map +1 -0
  267. package/dist/core/extensions/virtual-modules.js +38 -0
  268. package/dist/core/extensions/virtual-modules.js.map +1 -0
  269. package/dist/core/extensions/wrapper.d.ts +20 -0
  270. package/dist/core/extensions/wrapper.d.ts.map +1 -0
  271. package/dist/core/extensions/wrapper.js +22 -0
  272. package/dist/core/extensions/wrapper.js.map +1 -0
  273. package/dist/core/footer-data-provider.d.ts +64 -0
  274. package/dist/core/footer-data-provider.d.ts.map +1 -0
  275. package/dist/core/footer-data-provider.js +338 -0
  276. package/dist/core/footer-data-provider.js.map +1 -0
  277. package/dist/core/harness-core.d.ts +50 -0
  278. package/dist/core/harness-core.d.ts.map +1 -0
  279. package/dist/core/harness-core.js +240 -0
  280. package/dist/core/harness-core.js.map +1 -0
  281. package/dist/core/http-dispatcher.d.ts +22 -0
  282. package/dist/core/http-dispatcher.d.ts.map +1 -0
  283. package/dist/core/http-dispatcher.js +98 -0
  284. package/dist/core/http-dispatcher.js.map +1 -0
  285. package/dist/core/index.d.ts +14 -0
  286. package/dist/core/index.d.ts.map +1 -0
  287. package/dist/core/index.js +13 -0
  288. package/dist/core/index.js.map +1 -0
  289. package/dist/core/keybindings.d.ts +428 -0
  290. package/dist/core/keybindings.d.ts.map +1 -0
  291. package/dist/core/keybindings.js +321 -0
  292. package/dist/core/keybindings.js.map +1 -0
  293. package/dist/core/mcp-servers.d.ts +125 -0
  294. package/dist/core/mcp-servers.d.ts.map +1 -0
  295. package/dist/core/mcp-servers.js +198 -0
  296. package/dist/core/mcp-servers.js.map +1 -0
  297. package/dist/core/messages.d.ts +77 -0
  298. package/dist/core/messages.d.ts.map +1 -0
  299. package/dist/core/messages.js +124 -0
  300. package/dist/core/messages.js.map +1 -0
  301. package/dist/core/model-config.d.ts +759 -0
  302. package/dist/core/model-config.d.ts.map +1 -0
  303. package/dist/core/model-config.js +293 -0
  304. package/dist/core/model-config.js.map +1 -0
  305. package/dist/core/model-registry.d.ts +63 -0
  306. package/dist/core/model-registry.d.ts.map +1 -0
  307. package/dist/core/model-registry.js +144 -0
  308. package/dist/core/model-registry.js.map +1 -0
  309. package/dist/core/model-resolver.d.ts +124 -0
  310. package/dist/core/model-resolver.d.ts.map +1 -0
  311. package/dist/core/model-resolver.js +589 -0
  312. package/dist/core/model-resolver.js.map +1 -0
  313. package/dist/core/model-runtime.d.ts +142 -0
  314. package/dist/core/model-runtime.d.ts.map +1 -0
  315. package/dist/core/model-runtime.js +732 -0
  316. package/dist/core/model-runtime.js.map +1 -0
  317. package/dist/core/models-store.d.ts +22 -0
  318. package/dist/core/models-store.d.ts.map +1 -0
  319. package/dist/core/models-store.js +115 -0
  320. package/dist/core/models-store.js.map +1 -0
  321. package/dist/core/nested-tool-calls.d.ts +102 -0
  322. package/dist/core/nested-tool-calls.d.ts.map +1 -0
  323. package/dist/core/nested-tool-calls.js +178 -0
  324. package/dist/core/nested-tool-calls.js.map +1 -0
  325. package/dist/core/output-guard.d.ts +7 -0
  326. package/dist/core/output-guard.d.ts.map +1 -0
  327. package/dist/core/output-guard.js +89 -0
  328. package/dist/core/output-guard.js.map +1 -0
  329. package/dist/core/package-manager.d.ts +217 -0
  330. package/dist/core/package-manager.d.ts.map +1 -0
  331. package/dist/core/package-manager.js +2224 -0
  332. package/dist/core/package-manager.js.map +1 -0
  333. package/dist/core/project-trust.d.ts +15 -0
  334. package/dist/core/project-trust.d.ts.map +1 -0
  335. package/dist/core/project-trust.js +59 -0
  336. package/dist/core/project-trust.js.map +1 -0
  337. package/dist/core/prompt-templates.d.ts +59 -0
  338. package/dist/core/prompt-templates.d.ts.map +1 -0
  339. package/dist/core/prompt-templates.js +262 -0
  340. package/dist/core/prompt-templates.js.map +1 -0
  341. package/dist/core/provider-attribution.d.ts +4 -0
  342. package/dist/core/provider-attribution.d.ts.map +1 -0
  343. package/dist/core/provider-attribution.js +72 -0
  344. package/dist/core/provider-attribution.js.map +1 -0
  345. package/dist/core/provider-composer.d.ts +80 -0
  346. package/dist/core/provider-composer.d.ts.map +1 -0
  347. package/dist/core/provider-composer.js +484 -0
  348. package/dist/core/provider-composer.js.map +1 -0
  349. package/dist/core/relay-manifest.d.ts +8 -0
  350. package/dist/core/relay-manifest.d.ts.map +1 -0
  351. package/dist/core/relay-manifest.js +26 -0
  352. package/dist/core/relay-manifest.js.map +1 -0
  353. package/dist/core/resolve-config-value.d.ts +30 -0
  354. package/dist/core/resolve-config-value.d.ts.map +1 -0
  355. package/dist/core/resolve-config-value.js +247 -0
  356. package/dist/core/resolve-config-value.js.map +1 -0
  357. package/dist/core/resource-loader.d.ts +227 -0
  358. package/dist/core/resource-loader.d.ts.map +1 -0
  359. package/dist/core/resource-loader.js +1005 -0
  360. package/dist/core/resource-loader.js.map +1 -0
  361. package/dist/core/runtime-credentials.d.ts +15 -0
  362. package/dist/core/runtime-credentials.d.ts.map +1 -0
  363. package/dist/core/runtime-credentials.js +39 -0
  364. package/dist/core/runtime-credentials.js.map +1 -0
  365. package/dist/core/sdk.d.ts +108 -0
  366. package/dist/core/sdk.d.ts.map +1 -0
  367. package/dist/core/sdk.js +315 -0
  368. package/dist/core/sdk.js.map +1 -0
  369. package/dist/core/session-cwd.d.ts +19 -0
  370. package/dist/core/session-cwd.d.ts.map +1 -0
  371. package/dist/core/session-cwd.js +38 -0
  372. package/dist/core/session-cwd.js.map +1 -0
  373. package/dist/core/session-export.d.ts +8 -0
  374. package/dist/core/session-export.d.ts.map +1 -0
  375. package/dist/core/session-export.js +33 -0
  376. package/dist/core/session-export.js.map +1 -0
  377. package/dist/core/session-manager.d.ts +416 -0
  378. package/dist/core/session-manager.d.ts.map +1 -0
  379. package/dist/core/session-manager.js +1523 -0
  380. package/dist/core/session-manager.js.map +1 -0
  381. package/dist/core/settings-diagnostics.d.ts +9 -0
  382. package/dist/core/settings-diagnostics.d.ts.map +1 -0
  383. package/dist/core/settings-diagnostics.js +21 -0
  384. package/dist/core/settings-diagnostics.js.map +1 -0
  385. package/dist/core/settings-manager.d.ts +421 -0
  386. package/dist/core/settings-manager.d.ts.map +1 -0
  387. package/dist/core/settings-manager.js +1120 -0
  388. package/dist/core/settings-manager.js.map +1 -0
  389. package/dist/core/skills.d.ts +60 -0
  390. package/dist/core/skills.d.ts.map +1 -0
  391. package/dist/core/skills.js +408 -0
  392. package/dist/core/skills.js.map +1 -0
  393. package/dist/core/slash-commands.d.ts +15 -0
  394. package/dist/core/slash-commands.d.ts.map +1 -0
  395. package/dist/core/slash-commands.js +29 -0
  396. package/dist/core/slash-commands.js.map +1 -0
  397. package/dist/core/source-info.d.ts +26 -0
  398. package/dist/core/source-info.d.ts.map +1 -0
  399. package/dist/core/source-info.js +35 -0
  400. package/dist/core/source-info.js.map +1 -0
  401. package/dist/core/system-prompt.d.ts +71 -0
  402. package/dist/core/system-prompt.d.ts.map +1 -0
  403. package/dist/core/system-prompt.js +147 -0
  404. package/dist/core/system-prompt.js.map +1 -0
  405. package/dist/core/telemetry.d.ts +3 -0
  406. package/dist/core/telemetry.d.ts.map +1 -0
  407. package/dist/core/telemetry.js +9 -0
  408. package/dist/core/telemetry.js.map +1 -0
  409. package/dist/core/timings.d.ts +10 -0
  410. package/dist/core/timings.d.ts.map +1 -0
  411. package/dist/core/timings.js +41 -0
  412. package/dist/core/timings.js.map +1 -0
  413. package/dist/core/tools/bash.d.ts +100 -0
  414. package/dist/core/tools/bash.d.ts.map +1 -0
  415. package/dist/core/tools/bash.js +333 -0
  416. package/dist/core/tools/bash.js.map +1 -0
  417. package/dist/core/tools/edit-diff.d.ts +101 -0
  418. package/dist/core/tools/edit-diff.d.ts.map +1 -0
  419. package/dist/core/tools/edit-diff.js +421 -0
  420. package/dist/core/tools/edit-diff.js.map +1 -0
  421. package/dist/core/tools/edit.d.ts +44 -0
  422. package/dist/core/tools/edit.d.ts.map +1 -0
  423. package/dist/core/tools/edit.js +147 -0
  424. package/dist/core/tools/edit.js.map +1 -0
  425. package/dist/core/tools/file-mutation-queue.d.ts +6 -0
  426. package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
  427. package/dist/core/tools/file-mutation-queue.js +52 -0
  428. package/dist/core/tools/file-mutation-queue.js.map +1 -0
  429. package/dist/core/tools/find.d.ts +42 -0
  430. package/dist/core/tools/find.d.ts.map +1 -0
  431. package/dist/core/tools/find.js +251 -0
  432. package/dist/core/tools/find.js.map +1 -0
  433. package/dist/core/tools/grep.d.ts +41 -0
  434. package/dist/core/tools/grep.d.ts.map +1 -0
  435. package/dist/core/tools/grep.js +252 -0
  436. package/dist/core/tools/grep.js.map +1 -0
  437. package/dist/core/tools/index.d.ts +43 -0
  438. package/dist/core/tools/index.d.ts.map +1 -0
  439. package/dist/core/tools/index.js +129 -0
  440. package/dist/core/tools/index.js.map +1 -0
  441. package/dist/core/tools/ls.d.ts +41 -0
  442. package/dist/core/tools/ls.d.ts.map +1 -0
  443. package/dist/core/tools/ls.js +126 -0
  444. package/dist/core/tools/ls.js.map +1 -0
  445. package/dist/core/tools/output-accumulator.d.ts +63 -0
  446. package/dist/core/tools/output-accumulator.d.ts.map +1 -0
  447. package/dist/core/tools/output-accumulator.js +214 -0
  448. package/dist/core/tools/output-accumulator.js.map +1 -0
  449. package/dist/core/tools/path-utils.d.ts +10 -0
  450. package/dist/core/tools/path-utils.d.ts.map +1 -0
  451. package/dist/core/tools/path-utils.js +99 -0
  452. package/dist/core/tools/path-utils.js.map +1 -0
  453. package/dist/core/tools/powershell.d.ts +16 -0
  454. package/dist/core/tools/powershell.d.ts.map +1 -0
  455. package/dist/core/tools/powershell.js +39 -0
  456. package/dist/core/tools/powershell.js.map +1 -0
  457. package/dist/core/tools/read.d.ts +42 -0
  458. package/dist/core/tools/read.d.ts.map +1 -0
  459. package/dist/core/tools/read.js +169 -0
  460. package/dist/core/tools/read.js.map +1 -0
  461. package/dist/core/tools/render-utils.d.ts +30 -0
  462. package/dist/core/tools/render-utils.d.ts.map +1 -0
  463. package/dist/core/tools/render-utils.js +91 -0
  464. package/dist/core/tools/render-utils.js.map +1 -0
  465. package/dist/core/tools/renderers/bash.d.ts +12 -0
  466. package/dist/core/tools/renderers/bash.d.ts.map +1 -0
  467. package/dist/core/tools/renderers/bash.js +117 -0
  468. package/dist/core/tools/renderers/bash.js.map +1 -0
  469. package/dist/core/tools/renderers/edit.d.ts +23 -0
  470. package/dist/core/tools/renderers/edit.d.ts.map +1 -0
  471. package/dist/core/tools/renderers/edit.js +167 -0
  472. package/dist/core/tools/renderers/edit.js.map +1 -0
  473. package/dist/core/tools/renderers/find.d.ts +10 -0
  474. package/dist/core/tools/renderers/find.d.ts.map +1 -0
  475. package/dist/core/tools/renderers/find.js +64 -0
  476. package/dist/core/tools/renderers/find.js.map +1 -0
  477. package/dist/core/tools/renderers/grep.d.ts +10 -0
  478. package/dist/core/tools/renderers/grep.d.ts.map +1 -0
  479. package/dist/core/tools/renderers/grep.js +69 -0
  480. package/dist/core/tools/renderers/grep.js.map +1 -0
  481. package/dist/core/tools/renderers/index.d.ts +28 -0
  482. package/dist/core/tools/renderers/index.d.ts.map +1 -0
  483. package/dist/core/tools/renderers/index.js +47 -0
  484. package/dist/core/tools/renderers/index.js.map +1 -0
  485. package/dist/core/tools/renderers/ls.d.ts +10 -0
  486. package/dist/core/tools/renderers/ls.d.ts.map +1 -0
  487. package/dist/core/tools/renderers/ls.js +58 -0
  488. package/dist/core/tools/renderers/ls.js.map +1 -0
  489. package/dist/core/tools/renderers/read.d.ts +11 -0
  490. package/dist/core/tools/renderers/read.d.ts.map +1 -0
  491. package/dist/core/tools/renderers/read.js +130 -0
  492. package/dist/core/tools/renderers/read.js.map +1 -0
  493. package/dist/core/tools/renderers/write.d.ts +10 -0
  494. package/dist/core/tools/renderers/write.d.ts.map +1 -0
  495. package/dist/core/tools/renderers/write.js +153 -0
  496. package/dist/core/tools/renderers/write.js.map +1 -0
  497. package/dist/core/tools/tool-definition-wrapper.d.ts +16 -0
  498. package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
  499. package/dist/core/tools/tool-definition-wrapper.js +38 -0
  500. package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
  501. package/dist/core/tools/truncate.d.ts +84 -0
  502. package/dist/core/tools/truncate.d.ts.map +1 -0
  503. package/dist/core/tools/truncate.js +244 -0
  504. package/dist/core/tools/truncate.js.map +1 -0
  505. package/dist/core/tools/write.d.ts +30 -0
  506. package/dist/core/tools/write.d.ts.map +1 -0
  507. package/dist/core/tools/write.js +61 -0
  508. package/dist/core/tools/write.js.map +1 -0
  509. package/dist/core/trust-manager.d.ts +36 -0
  510. package/dist/core/trust-manager.d.ts.map +1 -0
  511. package/dist/core/trust-manager.js +204 -0
  512. package/dist/core/trust-manager.js.map +1 -0
  513. package/dist/core/usage-totals.d.ts +21 -0
  514. package/dist/core/usage-totals.d.ts.map +1 -0
  515. package/dist/core/usage-totals.js +79 -0
  516. package/dist/core/usage-totals.js.map +1 -0
  517. package/dist/core/virtual-models.d.ts +117 -0
  518. package/dist/core/virtual-models.d.ts.map +1 -0
  519. package/dist/core/virtual-models.js +124 -0
  520. package/dist/core/virtual-models.js.map +1 -0
  521. package/dist/core/workspace-probe.d.ts +8 -0
  522. package/dist/core/workspace-probe.d.ts.map +1 -0
  523. package/dist/core/workspace-probe.js +65 -0
  524. package/dist/core/workspace-probe.js.map +1 -0
  525. package/dist/extensions/codemode/execute.d.ts +16 -0
  526. package/dist/extensions/codemode/execute.d.ts.map +1 -0
  527. package/dist/extensions/codemode/execute.js +577 -0
  528. package/dist/extensions/codemode/execute.js.map +1 -0
  529. package/dist/extensions/codemode/execute.lazy.d.ts +3 -0
  530. package/dist/extensions/codemode/execute.lazy.d.ts.map +1 -0
  531. package/dist/extensions/codemode/execute.lazy.js +3 -0
  532. package/dist/extensions/codemode/execute.lazy.js.map +1 -0
  533. package/dist/extensions/codemode/index.d.ts +21 -0
  534. package/dist/extensions/codemode/index.d.ts.map +1 -0
  535. package/dist/extensions/codemode/index.js +31 -0
  536. package/dist/extensions/codemode/index.js.map +1 -0
  537. package/dist/extensions/codemode/renderer.d.ts +12 -0
  538. package/dist/extensions/codemode/renderer.d.ts.map +1 -0
  539. package/dist/extensions/codemode/renderer.js +137 -0
  540. package/dist/extensions/codemode/renderer.js.map +1 -0
  541. package/dist/extensions/codemode/tool.d.ts +123 -0
  542. package/dist/extensions/codemode/tool.d.ts.map +1 -0
  543. package/dist/extensions/codemode/tool.js +268 -0
  544. package/dist/extensions/codemode/tool.js.map +1 -0
  545. package/dist/extensions/codemode/worker.d.ts +7 -0
  546. package/dist/extensions/codemode/worker.d.ts.map +1 -0
  547. package/dist/extensions/codemode/worker.js +7 -0
  548. package/dist/extensions/codemode/worker.js.map +1 -0
  549. package/dist/extensions/index.d.ts +3 -0
  550. package/dist/extensions/index.d.ts.map +1 -0
  551. package/dist/extensions/index.js +19 -0
  552. package/dist/extensions/index.js.map +1 -0
  553. package/dist/extensions/intake/docx.d.ts +42 -0
  554. package/dist/extensions/intake/docx.d.ts.map +1 -0
  555. package/dist/extensions/intake/docx.js +148 -0
  556. package/dist/extensions/intake/docx.js.map +1 -0
  557. package/dist/extensions/intake/index.d.ts +17 -0
  558. package/dist/extensions/intake/index.d.ts.map +1 -0
  559. package/dist/extensions/intake/index.js +88 -0
  560. package/dist/extensions/intake/index.js.map +1 -0
  561. package/dist/extensions/intake/prompt.d.ts +6 -0
  562. package/dist/extensions/intake/prompt.d.ts.map +1 -0
  563. package/dist/extensions/intake/prompt.js +41 -0
  564. package/dist/extensions/intake/prompt.js.map +1 -0
  565. package/dist/extensions/intake/questionnaire.d.ts +84 -0
  566. package/dist/extensions/intake/questionnaire.d.ts.map +1 -0
  567. package/dist/extensions/intake/questionnaire.js +472 -0
  568. package/dist/extensions/intake/questionnaire.js.map +1 -0
  569. package/dist/extensions/laya/assessment.d.ts +34 -0
  570. package/dist/extensions/laya/assessment.d.ts.map +1 -0
  571. package/dist/extensions/laya/assessment.js +171 -0
  572. package/dist/extensions/laya/assessment.js.map +1 -0
  573. package/dist/extensions/laya/index.d.ts +34 -0
  574. package/dist/extensions/laya/index.d.ts.map +1 -0
  575. package/dist/extensions/laya/index.js +516 -0
  576. package/dist/extensions/laya/index.js.map +1 -0
  577. package/dist/extensions/laya/model-manifest.d.ts +7 -0
  578. package/dist/extensions/laya/model-manifest.d.ts.map +1 -0
  579. package/dist/extensions/laya/model-manifest.js +48 -0
  580. package/dist/extensions/laya/model-manifest.js.map +1 -0
  581. package/dist/extensions/laya/policy.d.ts +130 -0
  582. package/dist/extensions/laya/policy.d.ts.map +1 -0
  583. package/dist/extensions/laya/policy.js +222 -0
  584. package/dist/extensions/laya/policy.js.map +1 -0
  585. package/dist/extensions/laya/questions.d.ts +60 -0
  586. package/dist/extensions/laya/questions.d.ts.map +1 -0
  587. package/dist/extensions/laya/questions.js +189 -0
  588. package/dist/extensions/laya/questions.js.map +1 -0
  589. package/dist/extensions/laya/routers.d.ts +17 -0
  590. package/dist/extensions/laya/routers.d.ts.map +1 -0
  591. package/dist/extensions/laya/routers.js +119 -0
  592. package/dist/extensions/laya/routers.js.map +1 -0
  593. package/dist/extensions/laya/runtime.d.ts +68 -0
  594. package/dist/extensions/laya/runtime.d.ts.map +1 -0
  595. package/dist/extensions/laya/runtime.js +179 -0
  596. package/dist/extensions/laya/runtime.js.map +1 -0
  597. package/dist/extensions/laya/seed.d.ts +39 -0
  598. package/dist/extensions/laya/seed.d.ts.map +1 -0
  599. package/dist/extensions/laya/seed.js +358 -0
  600. package/dist/extensions/laya/seed.js.map +1 -0
  601. package/dist/extensions/laya/server.d.ts +26 -0
  602. package/dist/extensions/laya/server.d.ts.map +1 -0
  603. package/dist/extensions/laya/server.js +117 -0
  604. package/dist/extensions/laya/server.js.map +1 -0
  605. package/dist/extensions/laya/telemetry.d.ts +94 -0
  606. package/dist/extensions/laya/telemetry.d.ts.map +1 -0
  607. package/dist/extensions/laya/telemetry.js +107 -0
  608. package/dist/extensions/laya/telemetry.js.map +1 -0
  609. package/dist/extensions/llama/client.d.ts +69 -0
  610. package/dist/extensions/llama/client.d.ts.map +1 -0
  611. package/dist/extensions/llama/client.js +313 -0
  612. package/dist/extensions/llama/client.js.map +1 -0
  613. package/dist/extensions/llama/huggingface.d.ts +23 -0
  614. package/dist/extensions/llama/huggingface.d.ts.map +1 -0
  615. package/dist/extensions/llama/huggingface.js +141 -0
  616. package/dist/extensions/llama/huggingface.js.map +1 -0
  617. package/dist/extensions/llama/index.d.ts +3 -0
  618. package/dist/extensions/llama/index.d.ts.map +1 -0
  619. package/dist/extensions/llama/index.js +219 -0
  620. package/dist/extensions/llama/index.js.map +1 -0
  621. package/dist/extensions/llama/provider.d.ts +12 -0
  622. package/dist/extensions/llama/provider.d.ts.map +1 -0
  623. package/dist/extensions/llama/provider.js +213 -0
  624. package/dist/extensions/llama/provider.js.map +1 -0
  625. package/dist/extensions/llama/ui.d.ts +42 -0
  626. package/dist/extensions/llama/ui.d.ts.map +1 -0
  627. package/dist/extensions/llama/ui.js +416 -0
  628. package/dist/extensions/llama/ui.js.map +1 -0
  629. package/dist/extensions/mcp/cli.d.ts +21 -0
  630. package/dist/extensions/mcp/cli.d.ts.map +1 -0
  631. package/dist/extensions/mcp/cli.js +503 -0
  632. package/dist/extensions/mcp/cli.js.map +1 -0
  633. package/dist/extensions/mcp/cli.lazy.d.ts +3 -0
  634. package/dist/extensions/mcp/cli.lazy.d.ts.map +1 -0
  635. package/dist/extensions/mcp/cli.lazy.js +3 -0
  636. package/dist/extensions/mcp/cli.lazy.js.map +1 -0
  637. package/dist/extensions/mcp/config.d.ts +84 -0
  638. package/dist/extensions/mcp/config.d.ts.map +1 -0
  639. package/dist/extensions/mcp/config.js +194 -0
  640. package/dist/extensions/mcp/config.js.map +1 -0
  641. package/dist/extensions/mcp/index.d.ts +79 -0
  642. package/dist/extensions/mcp/index.d.ts.map +1 -0
  643. package/dist/extensions/mcp/index.js +1101 -0
  644. package/dist/extensions/mcp/index.js.map +1 -0
  645. package/dist/extensions/mcp/log.d.ts +16 -0
  646. package/dist/extensions/mcp/log.d.ts.map +1 -0
  647. package/dist/extensions/mcp/log.js +66 -0
  648. package/dist/extensions/mcp/log.js.map +1 -0
  649. package/dist/extensions/mcp/oauth.d.ts +98 -0
  650. package/dist/extensions/mcp/oauth.d.ts.map +1 -0
  651. package/dist/extensions/mcp/oauth.js +366 -0
  652. package/dist/extensions/mcp/oauth.js.map +1 -0
  653. package/dist/extensions/mcp/resources.d.ts +43 -0
  654. package/dist/extensions/mcp/resources.d.ts.map +1 -0
  655. package/dist/extensions/mcp/resources.js +262 -0
  656. package/dist/extensions/mcp/resources.js.map +1 -0
  657. package/dist/extensions/mcp/runtime.d.ts +98 -0
  658. package/dist/extensions/mcp/runtime.d.ts.map +1 -0
  659. package/dist/extensions/mcp/runtime.js +395 -0
  660. package/dist/extensions/mcp/runtime.js.map +1 -0
  661. package/dist/extensions/mcp/runtime.lazy.d.ts +3 -0
  662. package/dist/extensions/mcp/runtime.lazy.d.ts.map +1 -0
  663. package/dist/extensions/mcp/runtime.lazy.js +3 -0
  664. package/dist/extensions/mcp/runtime.lazy.js.map +1 -0
  665. package/dist/extensions/mcp/tools.d.ts +86 -0
  666. package/dist/extensions/mcp/tools.d.ts.map +1 -0
  667. package/dist/extensions/mcp/tools.js +252 -0
  668. package/dist/extensions/mcp/tools.js.map +1 -0
  669. package/dist/extensions/mcp/ui.d.ts +60 -0
  670. package/dist/extensions/mcp/ui.d.ts.map +1 -0
  671. package/dist/extensions/mcp/ui.js +178 -0
  672. package/dist/extensions/mcp/ui.js.map +1 -0
  673. package/dist/extensions/tool-search/index.d.ts +12 -0
  674. package/dist/extensions/tool-search/index.d.ts.map +1 -0
  675. package/dist/extensions/tool-search/index.js +15 -0
  676. package/dist/extensions/tool-search/index.js.map +1 -0
  677. package/dist/extensions/tool-search/tool.d.ts +73 -0
  678. package/dist/extensions/tool-search/tool.d.ts.map +1 -0
  679. package/dist/extensions/tool-search/tool.js +189 -0
  680. package/dist/extensions/tool-search/tool.js.map +1 -0
  681. package/dist/index.d.ts +44 -0
  682. package/dist/index.d.ts.map +1 -0
  683. package/dist/index.js +53 -0
  684. package/dist/index.js.map +1 -0
  685. package/dist/main.d.ts +16 -0
  686. package/dist/main.d.ts.map +1 -0
  687. package/dist/main.js +820 -0
  688. package/dist/main.js.map +1 -0
  689. package/dist/migrations.d.ts +33 -0
  690. package/dist/migrations.d.ts.map +1 -0
  691. package/dist/migrations.js +282 -0
  692. package/dist/migrations.js.map +1 -0
  693. package/dist/modes/index.d.ts +10 -0
  694. package/dist/modes/index.d.ts.map +1 -0
  695. package/dist/modes/index.js +8 -0
  696. package/dist/modes/index.js.map +1 -0
  697. package/dist/modes/interactive/assets/clankolas.png +0 -0
  698. package/dist/modes/interactive/bug-report.d.ts +16 -0
  699. package/dist/modes/interactive/bug-report.d.ts.map +1 -0
  700. package/dist/modes/interactive/bug-report.js +171 -0
  701. package/dist/modes/interactive/bug-report.js.map +1 -0
  702. package/dist/modes/interactive/chat-viewport.d.ts +20 -0
  703. package/dist/modes/interactive/chat-viewport.d.ts.map +1 -0
  704. package/dist/modes/interactive/chat-viewport.js +28 -0
  705. package/dist/modes/interactive/chat-viewport.js.map +1 -0
  706. package/dist/modes/interactive/components/armin.d.ts +37 -0
  707. package/dist/modes/interactive/components/armin.d.ts.map +1 -0
  708. package/dist/modes/interactive/components/armin.js +335 -0
  709. package/dist/modes/interactive/components/armin.js.map +1 -0
  710. package/dist/modes/interactive/components/assistant-message.d.ts +26 -0
  711. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  712. package/dist/modes/interactive/components/assistant-message.js +158 -0
  713. package/dist/modes/interactive/components/assistant-message.js.map +1 -0
  714. package/dist/modes/interactive/components/auth-url.d.ts +14 -0
  715. package/dist/modes/interactive/components/auth-url.d.ts.map +1 -0
  716. package/dist/modes/interactive/components/auth-url.js +37 -0
  717. package/dist/modes/interactive/components/auth-url.js.map +1 -0
  718. package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
  719. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  720. package/dist/modes/interactive/components/bash-execution.js +175 -0
  721. package/dist/modes/interactive/components/bash-execution.js.map +1 -0
  722. package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  723. package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  724. package/dist/modes/interactive/components/bordered-loader.js +54 -0
  725. package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  726. package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  727. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  728. package/dist/modes/interactive/components/branch-summary-message.js +51 -0
  729. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  730. package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  731. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  732. package/dist/modes/interactive/components/compaction-summary-message.js +52 -0
  733. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  734. package/dist/modes/interactive/components/config-selector.d.ts +102 -0
  735. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  736. package/dist/modes/interactive/components/config-selector.js +771 -0
  737. package/dist/modes/interactive/components/config-selector.js.map +1 -0
  738. package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  739. package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  740. package/dist/modes/interactive/components/countdown-timer.js +33 -0
  741. package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  742. package/dist/modes/interactive/components/custom-editor.d.ts +30 -0
  743. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  744. package/dist/modes/interactive/components/custom-editor.js +115 -0
  745. package/dist/modes/interactive/components/custom-editor.js.map +1 -0
  746. package/dist/modes/interactive/components/custom-entry.d.ts +19 -0
  747. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -0
  748. package/dist/modes/interactive/components/custom-entry.js +52 -0
  749. package/dist/modes/interactive/components/custom-entry.js.map +1 -0
  750. package/dist/modes/interactive/components/custom-message.d.ts +22 -0
  751. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  752. package/dist/modes/interactive/components/custom-message.js +87 -0
  753. package/dist/modes/interactive/components/custom-message.js.map +1 -0
  754. package/dist/modes/interactive/components/diff.d.ts +12 -0
  755. package/dist/modes/interactive/components/diff.d.ts.map +1 -0
  756. package/dist/modes/interactive/components/diff.js +133 -0
  757. package/dist/modes/interactive/components/diff.js.map +1 -0
  758. package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  759. package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  760. package/dist/modes/interactive/components/dynamic-border.js +21 -0
  761. package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  762. package/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
  763. package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
  764. package/dist/modes/interactive/components/earendil-announcement.js +40 -0
  765. package/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
  766. package/dist/modes/interactive/components/easter-egg-3d.d.ts +104 -0
  767. package/dist/modes/interactive/components/easter-egg-3d.d.ts.map +1 -0
  768. package/dist/modes/interactive/components/easter-egg-3d.js +1141 -0
  769. package/dist/modes/interactive/components/easter-egg-3d.js.map +1 -0
  770. package/dist/modes/interactive/components/easter-egg-3d.lazy.d.ts +6 -0
  771. package/dist/modes/interactive/components/easter-egg-3d.lazy.d.ts.map +1 -0
  772. package/dist/modes/interactive/components/easter-egg-3d.lazy.js +23 -0
  773. package/dist/modes/interactive/components/easter-egg-3d.lazy.js.map +1 -0
  774. package/dist/modes/interactive/components/extension-editor.d.ts +24 -0
  775. package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  776. package/dist/modes/interactive/components/extension-editor.js +103 -0
  777. package/dist/modes/interactive/components/extension-editor.js.map +1 -0
  778. package/dist/modes/interactive/components/extension-input.d.ts +25 -0
  779. package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  780. package/dist/modes/interactive/components/extension-input.js +67 -0
  781. package/dist/modes/interactive/components/extension-input.js.map +1 -0
  782. package/dist/modes/interactive/components/extension-selector.d.ts +27 -0
  783. package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  784. package/dist/modes/interactive/components/extension-selector.js +87 -0
  785. package/dist/modes/interactive/components/extension-selector.js.map +1 -0
  786. package/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
  787. package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
  788. package/dist/modes/interactive/components/first-time-setup.js +109 -0
  789. package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
  790. package/dist/modes/interactive/components/footer.d.ts +39 -0
  791. package/dist/modes/interactive/components/footer.d.ts.map +1 -0
  792. package/dist/modes/interactive/components/footer.js +265 -0
  793. package/dist/modes/interactive/components/footer.js.map +1 -0
  794. package/dist/modes/interactive/components/index.d.ts +33 -0
  795. package/dist/modes/interactive/components/index.d.ts.map +1 -0
  796. package/dist/modes/interactive/components/index.js +34 -0
  797. package/dist/modes/interactive/components/index.js.map +1 -0
  798. package/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
  799. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  800. package/dist/modes/interactive/components/keybinding-hints.js +36 -0
  801. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  802. package/dist/modes/interactive/components/login-dialog.d.ts +54 -0
  803. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  804. package/dist/modes/interactive/components/login-dialog.js +194 -0
  805. package/dist/modes/interactive/components/login-dialog.js.map +1 -0
  806. package/dist/modes/interactive/components/markdown-transform.d.ts +3 -0
  807. package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -0
  808. package/dist/modes/interactive/components/markdown-transform.js +19 -0
  809. package/dist/modes/interactive/components/markdown-transform.js.map +1 -0
  810. package/dist/modes/interactive/components/mermaid.d.ts +11 -0
  811. package/dist/modes/interactive/components/mermaid.d.ts.map +1 -0
  812. package/dist/modes/interactive/components/mermaid.js +75 -0
  813. package/dist/modes/interactive/components/mermaid.js.map +1 -0
  814. package/dist/modes/interactive/components/model-selector.d.ts +60 -0
  815. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  816. package/dist/modes/interactive/components/model-selector.js +361 -0
  817. package/dist/modes/interactive/components/model-selector.js.map +1 -0
  818. package/dist/modes/interactive/components/oauth-selector.d.ts +39 -0
  819. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  820. package/dist/modes/interactive/components/oauth-selector.js +166 -0
  821. package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  822. package/dist/modes/interactive/components/relay-logo.d.ts +22 -0
  823. package/dist/modes/interactive/components/relay-logo.d.ts.map +1 -0
  824. package/dist/modes/interactive/components/relay-logo.js +63 -0
  825. package/dist/modes/interactive/components/relay-logo.js.map +1 -0
  826. package/dist/modes/interactive/components/scoped-models-selector.d.ts +46 -0
  827. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  828. package/dist/modes/interactive/components/scoped-models-selector.js +326 -0
  829. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  830. package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
  831. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  832. package/dist/modes/interactive/components/session-selector-search.js +155 -0
  833. package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  834. package/dist/modes/interactive/components/session-selector.d.ts +95 -0
  835. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  836. package/dist/modes/interactive/components/session-selector.js +893 -0
  837. package/dist/modes/interactive/components/session-selector.js.map +1 -0
  838. package/dist/modes/interactive/components/settings-selector.d.ts +96 -0
  839. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  840. package/dist/modes/interactive/components/settings-selector.js +742 -0
  841. package/dist/modes/interactive/components/settings-selector.js.map +1 -0
  842. package/dist/modes/interactive/components/settings-submenu.d.ts +72 -0
  843. package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -0
  844. package/dist/modes/interactive/components/settings-submenu.js +165 -0
  845. package/dist/modes/interactive/components/settings-submenu.js.map +1 -0
  846. package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  847. package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  848. package/dist/modes/interactive/components/show-images-selector.js +39 -0
  849. package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  850. package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  851. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  852. package/dist/modes/interactive/components/skill-invocation-message.js +54 -0
  853. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  854. package/dist/modes/interactive/components/status-indicator.d.ts +30 -0
  855. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -0
  856. package/dist/modes/interactive/components/status-indicator.js +67 -0
  857. package/dist/modes/interactive/components/status-indicator.js.map +1 -0
  858. package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  859. package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  860. package/dist/modes/interactive/components/theme-selector.js +50 -0
  861. package/dist/modes/interactive/components/theme-selector.js.map +1 -0
  862. package/dist/modes/interactive/components/themed-text.d.ts +17 -0
  863. package/dist/modes/interactive/components/themed-text.d.ts.map +1 -0
  864. package/dist/modes/interactive/components/themed-text.js +29 -0
  865. package/dist/modes/interactive/components/themed-text.js.map +1 -0
  866. package/dist/modes/interactive/components/thinking-selector.d.ts +23 -0
  867. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  868. package/dist/modes/interactive/components/thinking-selector.js +109 -0
  869. package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  870. package/dist/modes/interactive/components/tool-execution.d.ts +68 -0
  871. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  872. package/dist/modes/interactive/components/tool-execution.js +314 -0
  873. package/dist/modes/interactive/components/tool-execution.js.map +1 -0
  874. package/dist/modes/interactive/components/tree-selector.d.ts +94 -0
  875. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  876. package/dist/modes/interactive/components/tree-selector.js +1254 -0
  877. package/dist/modes/interactive/components/tree-selector.js.map +1 -0
  878. package/dist/modes/interactive/components/trust-selector.d.ts +23 -0
  879. package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
  880. package/dist/modes/interactive/components/trust-selector.js +91 -0
  881. package/dist/modes/interactive/components/trust-selector.js.map +1 -0
  882. package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  883. package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  884. package/dist/modes/interactive/components/user-message-selector.js +114 -0
  885. package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  886. package/dist/modes/interactive/components/user-message.d.ts +16 -0
  887. package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  888. package/dist/modes/interactive/components/user-message.js +50 -0
  889. package/dist/modes/interactive/components/user-message.js.map +1 -0
  890. package/dist/modes/interactive/components/visual-truncate.d.ts +48 -0
  891. package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  892. package/dist/modes/interactive/components/visual-truncate.js +66 -0
  893. package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  894. package/dist/modes/interactive/external-editor.d.ts +12 -0
  895. package/dist/modes/interactive/external-editor.d.ts.map +1 -0
  896. package/dist/modes/interactive/external-editor.js +38 -0
  897. package/dist/modes/interactive/external-editor.js.map +1 -0
  898. package/dist/modes/interactive/interactive-mode.d.ts +482 -0
  899. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  900. package/dist/modes/interactive/interactive-mode.js +5861 -0
  901. package/dist/modes/interactive/interactive-mode.js.map +1 -0
  902. package/dist/modes/interactive/model-catalog-refresh.d.ts +7 -0
  903. package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -0
  904. package/dist/modes/interactive/model-catalog-refresh.js +34 -0
  905. package/dist/modes/interactive/model-catalog-refresh.js.map +1 -0
  906. package/dist/modes/interactive/model-search.d.ts +12 -0
  907. package/dist/modes/interactive/model-search.d.ts.map +1 -0
  908. package/dist/modes/interactive/model-search.js +15 -0
  909. package/dist/modes/interactive/model-search.js.map +1 -0
  910. package/dist/modes/interactive/session-share.d.ts +16 -0
  911. package/dist/modes/interactive/session-share.d.ts.map +1 -0
  912. package/dist/modes/interactive/session-share.js +119 -0
  913. package/dist/modes/interactive/session-share.js.map +1 -0
  914. package/dist/modes/interactive/theme/dark.json +78 -0
  915. package/dist/modes/interactive/theme/light.json +78 -0
  916. package/dist/modes/interactive/theme/system-theme.d.ts +55 -0
  917. package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -0
  918. package/dist/modes/interactive/theme/system-theme.js +546 -0
  919. package/dist/modes/interactive/theme/system-theme.js.map +1 -0
  920. package/dist/modes/interactive/theme/theme-controller.d.ts +81 -0
  921. package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
  922. package/dist/modes/interactive/theme/theme-controller.js +210 -0
  923. package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
  924. package/dist/modes/interactive/theme/theme-json.d.ts +85 -0
  925. package/dist/modes/interactive/theme/theme-json.d.ts.map +1 -0
  926. package/dist/modes/interactive/theme/theme-json.js +132 -0
  927. package/dist/modes/interactive/theme/theme-json.js.map +1 -0
  928. package/dist/modes/interactive/theme/theme-schema.json +361 -0
  929. package/dist/modes/interactive/theme/theme.d.ts +158 -0
  930. package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  931. package/dist/modes/interactive/theme/theme.js +912 -0
  932. package/dist/modes/interactive/theme/theme.js.map +1 -0
  933. package/dist/modes/interactive/tui-renderer.d.ts +22 -0
  934. package/dist/modes/interactive/tui-renderer.d.ts.map +1 -0
  935. package/dist/modes/interactive/tui-renderer.js +67 -0
  936. package/dist/modes/interactive/tui-renderer.js.map +1 -0
  937. package/dist/modes/json-event.d.ts +34 -0
  938. package/dist/modes/json-event.d.ts.map +1 -0
  939. package/dist/modes/json-event.js +29 -0
  940. package/dist/modes/json-event.js.map +1 -0
  941. package/dist/modes/print-mode.d.ts +28 -0
  942. package/dist/modes/print-mode.d.ts.map +1 -0
  943. package/dist/modes/print-mode.js +142 -0
  944. package/dist/modes/print-mode.js.map +1 -0
  945. package/dist/modes/rpc/jsonl.d.ts +17 -0
  946. package/dist/modes/rpc/jsonl.d.ts.map +1 -0
  947. package/dist/modes/rpc/jsonl.js +49 -0
  948. package/dist/modes/rpc/jsonl.js.map +1 -0
  949. package/dist/modes/rpc/rpc-client.d.ts +254 -0
  950. package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  951. package/dist/modes/rpc/rpc-client.js +499 -0
  952. package/dist/modes/rpc/rpc-client.js.map +1 -0
  953. package/dist/modes/rpc/rpc-mode.d.ts +20 -0
  954. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  955. package/dist/modes/rpc/rpc-mode.js +655 -0
  956. package/dist/modes/rpc/rpc-mode.js.map +1 -0
  957. package/dist/modes/rpc/rpc-types.d.ts +478 -0
  958. package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  959. package/dist/modes/rpc/rpc-types.js +8 -0
  960. package/dist/modes/rpc/rpc-types.js.map +1 -0
  961. package/dist/package-manager-cli.d.ts +8 -0
  962. package/dist/package-manager-cli.d.ts.map +1 -0
  963. package/dist/package-manager-cli.js +524 -0
  964. package/dist/package-manager-cli.js.map +1 -0
  965. package/dist/rpc-entry.d.ts +3 -0
  966. package/dist/rpc-entry.d.ts.map +1 -0
  967. package/dist/rpc-entry.js +11 -0
  968. package/dist/rpc-entry.js.map +1 -0
  969. package/dist/utils/abort.d.ts +5 -0
  970. package/dist/utils/abort.d.ts.map +1 -0
  971. package/dist/utils/abort.js +48 -0
  972. package/dist/utils/abort.js.map +1 -0
  973. package/dist/utils/ansi.d.ts +2 -0
  974. package/dist/utils/ansi.d.ts.map +1 -0
  975. package/dist/utils/ansi.js +52 -0
  976. package/dist/utils/ansi.js.map +1 -0
  977. package/dist/utils/changelog.d.ts +22 -0
  978. package/dist/utils/changelog.d.ts.map +1 -0
  979. package/dist/utils/changelog.js +176 -0
  980. package/dist/utils/changelog.js.map +1 -0
  981. package/dist/utils/child-process.d.ts +18 -0
  982. package/dist/utils/child-process.d.ts.map +1 -0
  983. package/dist/utils/child-process.js +106 -0
  984. package/dist/utils/child-process.js.map +1 -0
  985. package/dist/utils/clipboard-command.d.ts +7 -0
  986. package/dist/utils/clipboard-command.d.ts.map +1 -0
  987. package/dist/utils/clipboard-command.js +45 -0
  988. package/dist/utils/clipboard-command.js.map +1 -0
  989. package/dist/utils/clipboard-image.d.ts +11 -0
  990. package/dist/utils/clipboard-image.d.ts.map +1 -0
  991. package/dist/utils/clipboard-image.js +214 -0
  992. package/dist/utils/clipboard-image.js.map +1 -0
  993. package/dist/utils/clipboard.d.ts +6 -0
  994. package/dist/utils/clipboard.d.ts.map +1 -0
  995. package/dist/utils/clipboard.js +156 -0
  996. package/dist/utils/clipboard.js.map +1 -0
  997. package/dist/utils/deprecation.d.ts +4 -0
  998. package/dist/utils/deprecation.d.ts.map +1 -0
  999. package/dist/utils/deprecation.js +13 -0
  1000. package/dist/utils/deprecation.js.map +1 -0
  1001. package/dist/utils/exif-orientation.d.ts +5 -0
  1002. package/dist/utils/exif-orientation.d.ts.map +1 -0
  1003. package/dist/utils/exif-orientation.js +157 -0
  1004. package/dist/utils/exif-orientation.js.map +1 -0
  1005. package/dist/utils/frontmatter.d.ts +8 -0
  1006. package/dist/utils/frontmatter.d.ts.map +1 -0
  1007. package/dist/utils/frontmatter.js +27 -0
  1008. package/dist/utils/frontmatter.js.map +1 -0
  1009. package/dist/utils/fs-watch.d.ts +5 -0
  1010. package/dist/utils/fs-watch.d.ts.map +1 -0
  1011. package/dist/utils/fs-watch.js +25 -0
  1012. package/dist/utils/fs-watch.js.map +1 -0
  1013. package/dist/utils/git.d.ts +26 -0
  1014. package/dist/utils/git.d.ts.map +1 -0
  1015. package/dist/utils/git.js +195 -0
  1016. package/dist/utils/git.js.map +1 -0
  1017. package/dist/utils/html.d.ts +7 -0
  1018. package/dist/utils/html.d.ts.map +1 -0
  1019. package/dist/utils/html.js +40 -0
  1020. package/dist/utils/html.js.map +1 -0
  1021. package/dist/utils/image-convert.d.ts +22 -0
  1022. package/dist/utils/image-convert.d.ts.map +1 -0
  1023. package/dist/utils/image-convert.js +84 -0
  1024. package/dist/utils/image-convert.js.map +1 -0
  1025. package/dist/utils/image-process.d.ts +18 -0
  1026. package/dist/utils/image-process.d.ts.map +1 -0
  1027. package/dist/utils/image-process.js +83 -0
  1028. package/dist/utils/image-process.js.map +1 -0
  1029. package/dist/utils/image-resize-core.d.ts +30 -0
  1030. package/dist/utils/image-resize-core.d.ts.map +1 -0
  1031. package/dist/utils/image-resize-core.js +124 -0
  1032. package/dist/utils/image-resize-core.js.map +1 -0
  1033. package/dist/utils/image-resize-worker.d.ts +2 -0
  1034. package/dist/utils/image-resize-worker.d.ts.map +1 -0
  1035. package/dist/utils/image-resize-worker.js +31 -0
  1036. package/dist/utils/image-resize-worker.js.map +1 -0
  1037. package/dist/utils/image-resize.d.ts +16 -0
  1038. package/dist/utils/image-resize.d.ts.map +1 -0
  1039. package/dist/utils/image-resize.js +97 -0
  1040. package/dist/utils/image-resize.js.map +1 -0
  1041. package/dist/utils/json.d.ts +3 -0
  1042. package/dist/utils/json.d.ts.map +1 -0
  1043. package/dist/utils/json.js +7 -0
  1044. package/dist/utils/json.js.map +1 -0
  1045. package/dist/utils/management-http.d.ts +25 -0
  1046. package/dist/utils/management-http.d.ts.map +1 -0
  1047. package/dist/utils/management-http.js +54 -0
  1048. package/dist/utils/management-http.js.map +1 -0
  1049. package/dist/utils/mime.d.ts +3 -0
  1050. package/dist/utils/mime.d.ts.map +1 -0
  1051. package/dist/utils/mime.js +110 -0
  1052. package/dist/utils/mime.js.map +1 -0
  1053. package/dist/utils/open-browser.d.ts +9 -0
  1054. package/dist/utils/open-browser.d.ts.map +1 -0
  1055. package/dist/utils/open-browser.js +22 -0
  1056. package/dist/utils/open-browser.js.map +1 -0
  1057. package/dist/utils/output-files.d.ts +15 -0
  1058. package/dist/utils/output-files.d.ts.map +1 -0
  1059. package/dist/utils/output-files.js +30 -0
  1060. package/dist/utils/output-files.js.map +1 -0
  1061. package/dist/utils/paths.d.ts +34 -0
  1062. package/dist/utils/paths.d.ts.map +1 -0
  1063. package/dist/utils/paths.js +115 -0
  1064. package/dist/utils/paths.js.map +1 -0
  1065. package/dist/utils/photon.d.ts +21 -0
  1066. package/dist/utils/photon.d.ts.map +1 -0
  1067. package/dist/utils/photon.js +121 -0
  1068. package/dist/utils/photon.js.map +1 -0
  1069. package/dist/utils/relay-user-agent.d.ts +2 -0
  1070. package/dist/utils/relay-user-agent.d.ts.map +1 -0
  1071. package/dist/utils/relay-user-agent.js +5 -0
  1072. package/dist/utils/relay-user-agent.js.map +1 -0
  1073. package/dist/utils/shell.d.ts +32 -0
  1074. package/dist/utils/shell.d.ts.map +1 -0
  1075. package/dist/utils/shell.js +189 -0
  1076. package/dist/utils/shell.js.map +1 -0
  1077. package/dist/utils/sleep.d.ts +5 -0
  1078. package/dist/utils/sleep.d.ts.map +1 -0
  1079. package/dist/utils/sleep.js +17 -0
  1080. package/dist/utils/sleep.js.map +1 -0
  1081. package/dist/utils/syntax-highlight.d.ts +13 -0
  1082. package/dist/utils/syntax-highlight.d.ts.map +1 -0
  1083. package/dist/utils/syntax-highlight.js +179 -0
  1084. package/dist/utils/syntax-highlight.js.map +1 -0
  1085. package/dist/utils/text.d.ts +8 -0
  1086. package/dist/utils/text.d.ts.map +1 -0
  1087. package/dist/utils/text.js +9 -0
  1088. package/dist/utils/text.js.map +1 -0
  1089. package/dist/utils/tool-result-images.d.ts +21 -0
  1090. package/dist/utils/tool-result-images.d.ts.map +1 -0
  1091. package/dist/utils/tool-result-images.js +48 -0
  1092. package/dist/utils/tool-result-images.js.map +1 -0
  1093. package/dist/utils/tools-manager.d.ts +13 -0
  1094. package/dist/utils/tools-manager.d.ts.map +1 -0
  1095. package/dist/utils/tools-manager.js +343 -0
  1096. package/dist/utils/tools-manager.js.map +1 -0
  1097. package/dist/utils/version-check.d.ts +17 -0
  1098. package/dist/utils/version-check.d.ts.map +1 -0
  1099. package/dist/utils/version-check.js +74 -0
  1100. package/dist/utils/version-check.js.map +1 -0
  1101. package/dist/utils/wsl.d.ts +3 -0
  1102. package/dist/utils/wsl.d.ts.map +1 -0
  1103. package/dist/utils/wsl.js +15 -0
  1104. package/dist/utils/wsl.js.map +1 -0
  1105. package/dist/utils/zip.d.ts +7 -0
  1106. package/dist/utils/zip.d.ts.map +1 -0
  1107. package/dist/utils/zip.js +60 -0
  1108. package/dist/utils/zip.js.map +1 -0
  1109. package/docs/cli-integration.md +106 -0
  1110. package/docs/cli.md +316 -0
  1111. package/docs/codemode.md +207 -0
  1112. package/docs/compaction.md +463 -0
  1113. package/docs/configuration.md +47 -0
  1114. package/docs/containerization.md +154 -0
  1115. package/docs/custom-provider.md +173 -0
  1116. package/docs/docs.json +224 -0
  1117. package/docs/environment-variables.md +97 -0
  1118. package/docs/extensions.md +274 -0
  1119. package/docs/harness-core.md +99 -0
  1120. package/docs/how-relay-works.md +49 -0
  1121. package/docs/images/doom-extension.png +0 -0
  1122. package/docs/images/exy.png +0 -0
  1123. package/docs/images/interactive-mode.png +0 -0
  1124. package/docs/images/tree-view.png +0 -0
  1125. package/docs/index.md +39 -0
  1126. package/docs/intake.md +40 -0
  1127. package/docs/json.md +226 -0
  1128. package/docs/keybindings.md +194 -0
  1129. package/docs/laya.md +112 -0
  1130. package/docs/llama-cpp.md +114 -0
  1131. package/docs/mcp.md +258 -0
  1132. package/docs/message-types.md +261 -0
  1133. package/docs/models.md +205 -0
  1134. package/docs/packages.md +129 -0
  1135. package/docs/prompt-templates.md +59 -0
  1136. package/docs/providers.md +187 -0
  1137. package/docs/quickstart.md +126 -0
  1138. package/docs/rpc-commands.md +860 -0
  1139. package/docs/rpc-extension-ui.md +200 -0
  1140. package/docs/rpc.md +193 -0
  1141. package/docs/sdk.md +147 -0
  1142. package/docs/security.md +99 -0
  1143. package/docs/session-format.md +293 -0
  1144. package/docs/sessions.md +66 -0
  1145. package/docs/settings.md +205 -0
  1146. package/docs/shell-aliases.md +93 -0
  1147. package/docs/skills.md +93 -0
  1148. package/docs/slash-commands.md +61 -0
  1149. package/docs/terminal-setup.md +219 -0
  1150. package/docs/termux.md +121 -0
  1151. package/docs/themes.md +136 -0
  1152. package/docs/tmux.md +55 -0
  1153. package/docs/tui.md +125 -0
  1154. package/docs/usage.md +94 -0
  1155. package/docs/virtual-models.md +114 -0
  1156. package/docs/windows.md +67 -0
  1157. package/examples/README.md +39 -0
  1158. package/examples/extensions/README.md +213 -0
  1159. package/examples/extensions/auto-commit-on-exit.ts +49 -0
  1160. package/examples/extensions/bash-spawn-hook.ts +30 -0
  1161. package/examples/extensions/bookmark.ts +50 -0
  1162. package/examples/extensions/border-status-editor.ts +150 -0
  1163. package/examples/extensions/built-in-tool-renderer.ts +225 -0
  1164. package/examples/extensions/claude-rules.ts +86 -0
  1165. package/examples/extensions/commands.ts +72 -0
  1166. package/examples/extensions/confirm-destructive.ts +59 -0
  1167. package/examples/extensions/custom-compaction.ts +117 -0
  1168. package/examples/extensions/custom-footer.ts +64 -0
  1169. package/examples/extensions/custom-header.ts +73 -0
  1170. package/examples/extensions/custom-provider-anthropic/index.ts +617 -0
  1171. package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  1172. package/examples/extensions/custom-provider-anthropic/package.json +19 -0
  1173. package/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
  1174. package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  1175. package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  1176. package/examples/extensions/debug-provider.ts +90 -0
  1177. package/examples/extensions/dirty-repo-guard.ts +56 -0
  1178. package/examples/extensions/doom-overlay/README.md +46 -0
  1179. package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  1180. package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  1181. package/examples/extensions/doom-overlay/doom/build.sh +152 -0
  1182. package/examples/extensions/doom-overlay/doom/doomgeneric_relay.c +72 -0
  1183. package/examples/extensions/doom-overlay/doom-component.ts +132 -0
  1184. package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  1185. package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  1186. package/examples/extensions/doom-overlay/index.ts +74 -0
  1187. package/examples/extensions/doom-overlay/wad-finder.ts +55 -0
  1188. package/examples/extensions/dynamic-resources/SKILL.md +8 -0
  1189. package/examples/extensions/dynamic-resources/dynamic.json +81 -0
  1190. package/examples/extensions/dynamic-resources/dynamic.md +5 -0
  1191. package/examples/extensions/dynamic-resources/index.ts +15 -0
  1192. package/examples/extensions/dynamic-tools.ts +74 -0
  1193. package/examples/extensions/entry-renderer.ts +41 -0
  1194. package/examples/extensions/event-bus.ts +43 -0
  1195. package/examples/extensions/file-trigger.ts +41 -0
  1196. package/examples/extensions/git-checkpoint.ts +53 -0
  1197. package/examples/extensions/git-merge-and-resolve.ts +115 -0
  1198. package/examples/extensions/github-issue-autocomplete.ts +185 -0
  1199. package/examples/extensions/handoff.ts +190 -0
  1200. package/examples/extensions/hello.ts +26 -0
  1201. package/examples/extensions/hidden-thinking-label.ts +53 -0
  1202. package/examples/extensions/inline-bash.ts +94 -0
  1203. package/examples/extensions/input-transform-streaming.ts +39 -0
  1204. package/examples/extensions/input-transform.ts +43 -0
  1205. package/examples/extensions/interactive-shell.ts +196 -0
  1206. package/examples/extensions/jev-router.ts +113 -0
  1207. package/examples/extensions/mac-system-theme.ts +47 -0
  1208. package/examples/extensions/message-renderer.ts +59 -0
  1209. package/examples/extensions/minimal-mode.ts +354 -0
  1210. package/examples/extensions/modal-editor.ts +85 -0
  1211. package/examples/extensions/model-status.ts +31 -0
  1212. package/examples/extensions/notify.ts +57 -0
  1213. package/examples/extensions/overlay-qa-tests.ts +1450 -0
  1214. package/examples/extensions/overlay-test.ts +153 -0
  1215. package/examples/extensions/permission-gate.ts +34 -0
  1216. package/examples/extensions/pirate.ts +47 -0
  1217. package/examples/extensions/plan-mode/README.md +66 -0
  1218. package/examples/extensions/plan-mode/index.ts +390 -0
  1219. package/examples/extensions/plan-mode/utils.ts +168 -0
  1220. package/examples/extensions/preset.ts +436 -0
  1221. package/examples/extensions/project-trust.ts +64 -0
  1222. package/examples/extensions/prompt-customizer.ts +49 -0
  1223. package/examples/extensions/protected-paths.ts +30 -0
  1224. package/examples/extensions/provider-payload.ts +18 -0
  1225. package/examples/extensions/qna.ts +118 -0
  1226. package/examples/extensions/question.ts +278 -0
  1227. package/examples/extensions/questionnaire.ts +440 -0
  1228. package/examples/extensions/rainbow-editor.ts +88 -0
  1229. package/examples/extensions/reload-runtime.ts +37 -0
  1230. package/examples/extensions/rpc-demo.ts +118 -0
  1231. package/examples/extensions/sandbox/index.ts +321 -0
  1232. package/examples/extensions/sandbox/package-lock.json +92 -0
  1233. package/examples/extensions/sandbox/package.json +19 -0
  1234. package/examples/extensions/send-user-message.ts +97 -0
  1235. package/examples/extensions/session-name.ts +27 -0
  1236. package/examples/extensions/shutdown-command.ts +63 -0
  1237. package/examples/extensions/snake.ts +343 -0
  1238. package/examples/extensions/space-invaders.ts +560 -0
  1239. package/examples/extensions/ssh.ts +220 -0
  1240. package/examples/extensions/status-line.ts +32 -0
  1241. package/examples/extensions/structured-output.ts +65 -0
  1242. package/examples/extensions/subagent/README.md +196 -0
  1243. package/examples/extensions/subagent/agents/planner.md +37 -0
  1244. package/examples/extensions/subagent/agents/reviewer.md +35 -0
  1245. package/examples/extensions/subagent/agents/scout.md +50 -0
  1246. package/examples/extensions/subagent/agents/security-auditor.md +20 -0
  1247. package/examples/extensions/subagent/agents/verifier.md +31 -0
  1248. package/examples/extensions/subagent/agents/worker.md +24 -0
  1249. package/examples/extensions/subagent/agents.ts +157 -0
  1250. package/examples/extensions/subagent/index.ts +1038 -0
  1251. package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  1252. package/examples/extensions/subagent/prompts/implement-and-verify.md +10 -0
  1253. package/examples/extensions/subagent/prompts/implement.md +10 -0
  1254. package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  1255. package/examples/extensions/subagent/skills/delegate/SKILL.md +48 -0
  1256. package/examples/extensions/subagent/skills/security-audit/SKILL.md +108 -0
  1257. package/examples/extensions/subagent/skills/security-audit/references/categories.md +130 -0
  1258. package/examples/extensions/subagent/skills/security-audit/references/report.md +38 -0
  1259. package/examples/extensions/summarize.ts +199 -0
  1260. package/examples/extensions/system-prompt-header.ts +17 -0
  1261. package/examples/extensions/tic-tac-toe.ts +1008 -0
  1262. package/examples/extensions/timed-confirm.ts +70 -0
  1263. package/examples/extensions/titlebar-spinner.ts +58 -0
  1264. package/examples/extensions/todo.ts +297 -0
  1265. package/examples/extensions/tool-override.ts +144 -0
  1266. package/examples/extensions/tools.ts +146 -0
  1267. package/examples/extensions/trigger-compact.ts +50 -0
  1268. package/examples/extensions/truncated-tool.ts +195 -0
  1269. package/examples/extensions/widget-placement.ts +9 -0
  1270. package/examples/extensions/with-deps/index.ts +32 -0
  1271. package/examples/extensions/with-deps/package-lock.json +31 -0
  1272. package/examples/extensions/with-deps/package.json +22 -0
  1273. package/examples/extensions/working-indicator.ts +123 -0
  1274. package/examples/extensions/working-message-test.ts +25 -0
  1275. package/examples/plugins/relay-example-plugin/README.md +38 -0
  1276. package/examples/plugins/relay-example-plugin/package.json +10 -0
  1277. package/examples/plugins/relay-example-plugin/src/contract.ts +13 -0
  1278. package/examples/plugins/relay-example-plugin/src/session.ts +24 -0
  1279. package/examples/plugins/relay-example-plugin/src/tui.ts +31 -0
  1280. package/examples/rpc-client.ts +35 -0
  1281. package/examples/rpc-extension-ui.ts +661 -0
  1282. package/examples/sdk/01-minimal.ts +26 -0
  1283. package/examples/sdk/02-custom-model.ts +49 -0
  1284. package/examples/sdk/03-custom-prompt.ts +70 -0
  1285. package/examples/sdk/04-skills.ts +55 -0
  1286. package/examples/sdk/05-tools.ts +48 -0
  1287. package/examples/sdk/06-extensions.ts +94 -0
  1288. package/examples/sdk/07-context-files.ts +42 -0
  1289. package/examples/sdk/08-prompt-templates.ts +51 -0
  1290. package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
  1291. package/examples/sdk/10-settings.ts +53 -0
  1292. package/examples/sdk/11-sessions.ts +52 -0
  1293. package/examples/sdk/12-full-control.ts +74 -0
  1294. package/examples/sdk/13-session-runtime.ts +67 -0
  1295. package/examples/sdk/14-codemode-mcp.ts +61 -0
  1296. package/examples/sdk/README.md +141 -0
  1297. package/package.json +107 -5
@@ -0,0 +1,106 @@
1
+ # CLI Integration
2
+
3
+ By default, running `relay` opens the interactive terminal interface. When input or output is piped or redirected, Relay uses print mode instead. You can also select print, JSON, or RPC mode explicitly for scripts and applications.
4
+
5
+ All four modes use the same agent, sessions, resources, and tools. The mode determines how input enters Relay, how output is exposed, and whether the process remains available for more commands.
6
+
7
+ The SDK is not a CLI mode. It embeds the agent directly in a Node.js or Bun process. See the [SDK](sdk.md) when direct TypeScript access is preferable to a process boundary.
8
+
9
+ ## Choose a mode
10
+
11
+ | Mode | Interface | Lifetime | Use it when |
12
+ |---|---|---|---|
13
+ | Interactive | Terminal UI | Until the user exits | A person is working with Relay directly |
14
+ | Print | Final text on stdout | One invocation | A script needs the final assistant response |
15
+ | JSON | JSONL events on stdout | One invocation | A process needs structured progress from a run |
16
+ | RPC | JSONL commands, responses, and events | Long-lived | A process needs bidirectional control |
17
+
18
+ CLI options still select the working directory, model, tools, resources, and session persistence independently of the mode. See [Command Line](cli.md) for the complete startup options.
19
+
20
+ ## Print to stdout
21
+
22
+ Print mode runs the supplied prompts, writes the final assistant text to stdout, and exits:
23
+
24
+ ```bash
25
+ relay --print "Summarize the changes in this repository"
26
+ ```
27
+
28
+ Use print mode when only the final text is needed, including command substitution, pipelines, and one-shot jobs. Intermediate events are not exposed.
29
+
30
+ Print mode writes errors to stderr. A final assistant response with an `error` or `aborted` stop reason produces a nonzero exit status.
31
+
32
+ When no mode is selected explicitly, non-TTY stdin or stdout also selects print mode. This allows piped input and output without adding `--print`.
33
+
34
+ ## Stream JSON events
35
+
36
+ JSON mode writes a session header followed by agent and session events as newline-delimited JSON:
37
+
38
+ ```bash
39
+ relay --mode json "Review this repository" > events.jsonl
40
+ ```
41
+
42
+ This is structured event output, not a single JSON result or a constraint on the format of the model’s response.
43
+
44
+ All prompts are supplied when the process starts. The process streams events for that run and then exits; it does not accept later commands.
45
+
46
+ A failed or aborted assistant response appears in the event stream but does not by itself produce a nonzero exit status. Inspect the events when success or failure matters. Relay still exits nonzero if the invocation throws an error.
47
+
48
+ Streaming `message_update` records contain deltas rather than a growing message snapshot. Assemble live output from the delta events, then replace it with the authoritative message from `message_end`.
49
+
50
+ `agent_end` can be followed by automatic recovery or queued work. `agent_settled` marks the end of automatic work for the current run.
51
+
52
+ Stdout is reserved for JSONL. Diagnostics and application logging are written to stderr. See [JSON Event Stream](json.md) for framing, event shapes, and reconstruction rules.
53
+
54
+ ## Control Relay with RPC
55
+
56
+ RPC mode keeps Relay running while another process sends commands and receives responses and events:
57
+
58
+ ```bash
59
+ relay --mode rpc --no-session
60
+ ```
61
+
62
+ Commands are JSON objects written to stdin. Responses and events are JSON objects written to stdout. Every record occupies one line.
63
+
64
+ Add an `id` to commands that need correlation. The matching response repeats that ID. Events generally have no command ID because they describe session activity rather than one request.
65
+
66
+ A successful `prompt` response means the prompt was accepted, queued, or handled. It does not mean the run completed. Continue consuming events through `agent_settled` when completion matters.
67
+
68
+ RPC commands can change models, inspect state, manage sessions, run shell commands, and answer extension UI requests.
69
+
70
+ Extension dialogs form a request-response subprotocol. Other extension UI updates are notifications that a client may display or ignore. TUI-only extension capabilities are unavailable or degraded outside interactive mode.
71
+
72
+ For Node.js or TypeScript integrations, prefer `RpcClient` from `@relay-harness/coding-agent`. It starts a Relay RPC child process, correlates requests, exposes typed command methods, and delivers session events to listeners.
73
+
74
+ The [RPC client example](../examples/rpc-client.ts) sends one prompt, streams text and tool activity, waits for `agent_settled`, and shuts down the child process. It is included in the repository’s TypeScript checks.
75
+
76
+ `RpcClient.promptAndWait()` installs its event listener before sending the prompt, avoiding a race with fast completions. For separate operations, subscribe before calling `prompt()` and call `waitForIdle()` only while a run is active.
77
+
78
+ The client requires a path to a runnable Relay CLI. The repository example points at `dist/cli.js`, so the package must be built before that example runs from a checkout.
79
+
80
+ If you are building a client without `RpcClient`, start with [RPC Protocol](rpc.md), then use [RPC Commands](rpc-commands.md) and [JSON Event Stream](json.md) as the wire references.
81
+
82
+ ## Fork and rebrand Relay
83
+
84
+ A source fork can change the CLI name and configuration directory through `package.json`:
85
+
86
+ ```json
87
+ {
88
+ "relayConfig": {
89
+ "name": "my-agent",
90
+ "configDir": ".my-agent"
91
+ }
92
+ }
93
+ ```
94
+
95
+ Change the top-level `bin` field to set the executable name. These settings affect the CLI banner, configuration paths, and derived environment variable names.
96
+
97
+ ## Examples and references
98
+
99
+ - [RPC client](../examples/rpc-client.ts): typed Node.js integration
100
+ - [RPC extension UI](../examples/rpc-extension-ui.ts): custom terminal client with extension dialogs
101
+ - [Command Line](cli.md): startup options and mode selection
102
+ - [JSON Event Stream](json.md): JSON event reference
103
+ - [RPC Protocol](rpc.md): RPC lifecycle, framing, errors, and shutdown
104
+ - [RPC Commands](rpc-commands.md): command and response reference
105
+ - [RPC Extension UI](rpc-extension-ui.md): extension interaction subprotocol
106
+ - [SDK examples](../examples/sdk/): in-process TypeScript integrations
package/docs/cli.md ADDED
@@ -0,0 +1,316 @@
1
+ <a id="cli-and-modes-reference"></a>
2
+
3
+ # Command Line
4
+
5
+ This page documents Relay's built-in command-line commands and options. Run `relay --help` or append `--help` to a command for the exact interface in your installed version. The top-level help also includes options registered by loaded extensions.
6
+
7
+ ```sh
8
+ relay [options] [--] [@files...] [messages...]
9
+ relay install <source> [options]
10
+ relay remove <source> [options]
11
+ relay uninstall <source> [options]
12
+ relay update [target] [options]
13
+ relay list
14
+ relay config [options]
15
+ relay auth <check|print-api-key|print-bearer-token> [options]
16
+ relay mcp <list|login|logout> [options]
17
+ ```
18
+
19
+ <a id="modes"></a>
20
+
21
+ ## Invocation and output
22
+
23
+ ```sh
24
+ relay
25
+ relay --print "Summarize this repository"
26
+ git diff | relay --print "Review this change"
27
+ relay --mode json "Inspect this repository" > events.jsonl
28
+ ```
29
+
30
+ With terminal stdin and stdout, Relay opens the terminal UI unless `--print`, `--mode json`, or `--mode rpc` selects another interface. When either stream is redirected and neither JSON nor RPC mode is selected, Relay uses print mode. See [CLI Integration](cli-integration.md) for choosing between interactive, print, JSON, RPC, and SDK integration.
31
+
32
+ | Input | Behavior |
33
+ |---|---|
34
+ | `message` | Provide an initial prompt |
35
+ | `@path` | Include a text file or image in the first prompt |
36
+ | Piped stdin | Prepend its contents to the first prompt |
37
+ | `--` | Stop option parsing so a prompt can begin with `-` |
38
+
39
+ Relay resolves `@path` from the current working directory. The working directory also controls project configuration, resource discovery, and session grouping.
40
+
41
+ `--print` controls whether Relay runs once and exits. `--mode` selects the output interface. `--mode text` does not force one-shot execution when stdin and stdout are terminals; use `--print` for that behavior.
42
+
43
+ | Option | Behavior |
44
+ |---|---|
45
+ | `-p`, `--print` | Run the supplied prompts, write the final assistant text to stdout, then exit |
46
+ | `--mode text` | Select text output; still open the terminal UI when stdin and stdout are terminals |
47
+ | `--mode json` | Run the supplied prompts, write JSONL events to stdout, then exit |
48
+ | `--mode rpc` | Read JSONL commands from stdin and write responses and events to stdout until shutdown |
49
+ | `--export <input> [output]` | Export a session file to HTML and exit; derive the destination when `output` is omitted |
50
+
51
+ RPC mode rejects `@file` arguments. JSON and RPC modes reserve stdout for protocol records. See [JSON Event Stream](json.md) and [RPC Protocol](rpc.md).
52
+
53
+ <a id="model-options"></a>
54
+
55
+ ## Models
56
+
57
+ ```sh
58
+ relay --model sonnet:high
59
+ ```
60
+
61
+ See [Choose a Model](models.md) for model selection and [Providers](providers.md) for credentials.
62
+
63
+ - `--provider <name>`<br>
64
+ Restricts `--model` lookup to one provider. It requires `--model`.
65
+ - `--model <pattern>`<br>
66
+ Selects by exact ID or fuzzy ID/name match. It accepts `provider/id` and an optional `:<thinking>` suffix.
67
+ - `--api-key <key>`<br>
68
+ Uses a non-persistent API-key override. It requires a model selected through `--model` or `--models`.
69
+ - `--thinking <level>`<br>
70
+ Sets `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`. It overrides a `--model` suffix and is clamped to the model's capabilities.
71
+ - `--models <patterns>`<br>
72
+ Sets a comma-separated scope for startup and cycling. It accepts exact IDs, fuzzy matches, case-insensitive globs, and optional `:<thinking>` suffixes.
73
+ - `--list-models [search]`<br>
74
+ Lists available models, optionally filtered by a fuzzy search, then exits.
75
+
76
+ <a id="session-options"></a>
77
+
78
+ ## Sessions
79
+
80
+ ```sh
81
+ relay --continue
82
+ ```
83
+
84
+ See [Sessions and Context](sessions.md) for resuming, forking, naming, and storing sessions.
85
+
86
+ - `-c`, `--continue`<br>
87
+ Continues the most recent session for the current project.
88
+ - `-r`, `--resume`<br>
89
+ Opens the session selector.
90
+ - `--session <path|id>`<br>
91
+ Opens by file path, exact ID, or partial ID. Relay searches the current project first and offers to fork a cross-project match.
92
+ - `--session-id <id>`<br>
93
+ Opens the exact project session ID or creates it if absent. IDs accept letters, numbers, `.`, `_`, and `-`.
94
+ - `--fork <path|id>`<br>
95
+ Forks an existing session into a new session for the current project.
96
+ - `--session-dir <dir>`<br>
97
+ Overrides storage and lookup. It takes precedence over `RELAY_CODING_AGENT_SESSION_DIR` and the `sessionDir` setting.
98
+ - `--no-session`<br>
99
+ Uses an in-memory session that is not persisted.
100
+ - `-n`, `--name <name>`<br>
101
+ Sets the session display name.
102
+
103
+ Constraints:
104
+
105
+ - Session IDs must start and end with a letter or number.
106
+ - `--fork` cannot be combined with `--session`, `--continue`, `--resume`, or `--no-session`.
107
+ - `--session-id` cannot be combined with `--session`, `--continue`, or `--resume`. Combine it with `--fork` to choose the new ID.
108
+
109
+ <a id="tool-options"></a>
110
+
111
+ ## Tools
112
+
113
+ ```sh
114
+ relay --tools read,grep,find,ls --print "Review this project"
115
+ ```
116
+
117
+ See [Settings](settings.md#tools) for configuring the default tool selection.
118
+
119
+ - `-t`, `--tools <list>`<br>
120
+ Replaces the default selection with a comma-separated allowlist of built-in, extension, or custom tools.
121
+ - `-xt`, `--exclude-tools <list>`<br>
122
+ Disables comma-separated tool names after all other selection options.
123
+ - `-nbt`, `--no-builtin-tools`<br>
124
+ Disables default built-in tools while retaining extension and custom tools.
125
+ - `-nt`, `--no-tools`<br>
126
+ Starts with all built-in, extension, and custom tools disabled.
127
+
128
+ Default enabled tools are `read`, `bash`, `edit`, and `write`, unless `defaultTools` changes them. `--tools` replaces the whole selection, so name every tool you want; `defaultTools` also accepts `+name` and `-name` to change the defaults instead.
129
+
130
+ | Built-in | Purpose |
131
+ |---|---|
132
+ | `read` | Read text files and supported images |
133
+ | `bash` | Run shell commands |
134
+ | `powershell` | Run PowerShell commands on Windows |
135
+ | `edit` | Apply exact text replacements to an existing file |
136
+ | `write` | Create or overwrite a file |
137
+ | `grep` | Search file contents |
138
+ | `find` | Find paths using glob patterns |
139
+ | `ls` | List directory contents |
140
+
141
+ Built-in extensions add two more tools. They are off by default; the MCP extension turns them on when an MCP server needs them (see [MCP](mcp.md#exposure)). To enable them yourself, name them in `--tools` or `defaultTools`.
142
+
143
+ | Built-in extension | Purpose |
144
+ |---|---|
145
+ | `codemode` | Run JavaScript that calls the other tools, for example in parallel with `Promise.allSettled`; only the script's output reaches the model |
146
+ | `tool_search` | Search tools that are not declared to the model (`codemode` and `deferred` exposure, such as MCP tools) and declare the matches for the next call |
147
+
148
+ ### Enable codemode
149
+
150
+ To turn on `codemode` for every session, add it to the default tools in `~/.relay/agent/settings.json` or a project's `.relay/settings.json`:
151
+
152
+ ```json
153
+ {
154
+ "defaultTools": ["+codemode"]
155
+ }
156
+ ```
157
+
158
+ This keeps `read`, `bash`, `edit`, and `write` and adds `codemode`. For one invocation, list every tool, since `--tools` replaces the selection:
159
+
160
+ ```sh
161
+ relay --tools read,bash,edit,write,codemode
162
+ ```
163
+
164
+ Codemode is useful without MCP: scripts can run several tool calls in parallel, filter large output before it reaches the model, call classifier models such as TypeSafe's Jev through `models.classify()` (see [Classifier models](models.md#use-classifier-models)), and generate images through `models.generateImages()` (see [Image models](models.md#use-image-models)).
165
+
166
+ ### How codemode works
167
+
168
+ Scripts run in a QuickJS sandbox and reach the other tools through `tools.<name>(args)`. [Codemode](codemode.md) describes the script API, how tools are listed and found, the `store()` and `models` globals, and the limits.
169
+
170
+ ### Tool search
171
+
172
+ `tool_search` is off by default; enable it with `"defaultTools": ["+tool_search"]` or `--tools`. It uses the same ranking as `searchTools()` over tools that are not declared yet and declares the matches for the next model call. Loaded tools are recorded in the session like other tool changes, so they stay declared on that branch.
173
+
174
+ <a id="resource-options"></a>
175
+
176
+ ## Resources
177
+
178
+ ```sh
179
+ relay --extension ./review.ts
180
+ ```
181
+
182
+ See [Configuration](configuration.md) for conventional directories and project trust, [Settings](settings.md#resources) for configured paths, and [Relay Packages](packages.md) for package sources.
183
+
184
+ - `-e`, `--extension <path>`<br>
185
+ Loads an extension file or directory, or a built-in extension such as `builtin:mcp`, and is repeatable.
186
+ - `-ne`, `--no-extensions`<br>
187
+ Disables discovered, configured, and built-in extensions. Explicit `-e` paths still load, so `relay -ne -e builtin:mcp` keeps only the built-in MCP support.
188
+ - `--skill <path>`<br>
189
+ Loads a skill file or directory and is repeatable.
190
+ - `-ns`, `--no-skills`<br>
191
+ Disables discovered and configured skills. Explicit `--skill` paths still load.
192
+ - `--prompt-template <path>`<br>
193
+ Loads a prompt-template file or directory and is repeatable.
194
+ - `-np`, `--no-prompt-templates`<br>
195
+ Disables discovered and configured templates. Explicit `--prompt-template` paths still load.
196
+ - `--theme <path>`<br>
197
+ Loads a theme file or directory and is repeatable.
198
+ - `--use-theme <name[/name]>`<br>
199
+ Selects the initial interactive theme for this run.
200
+ - `--no-themes`<br>
201
+ Disables discovered and configured themes. Explicit `--theme` paths still load.
202
+ - `-nc`, `--no-context-files`<br>
203
+ Disables `AGENTS.md` and `CLAUDE.md` discovery.
204
+
205
+ Resource paths apply only to the current process. Relative paths resolve from the current working directory.
206
+
207
+ <a id="prompt-and-display-options"></a>
208
+
209
+ ## Prompts and process
210
+
211
+ ```sh
212
+ relay --append-system-prompt ./instructions.md
213
+ ```
214
+
215
+ See [Configuration](configuration.md) for saved configuration, [Security](security.md#understand-project-trust) for project trust, and [Environment Variables](environment-variables.md) for process controls.
216
+
217
+ - `--system-prompt <text|path>`<br>
218
+ Replaces the default system prompt with text or the contents of an existing file.
219
+ - `--append-system-prompt <text|path>`<br>
220
+ Appends text or an existing file to the system prompt and is repeatable.
221
+ - `--tui-mode <mode>`<br>
222
+ Uses `fullscreen` (default) or `regular` terminal mode.
223
+ - `--verbose`<br>
224
+ Shows verbose interactive startup information, overriding `quietStartup`.
225
+ - `-a`, `--approve`<br>
226
+ Trusts project-local configuration and resources for this process.
227
+ - `-na`, `--no-approve`<br>
228
+ Ignores trust-gated project-local configuration and resources for this process.
229
+ - `--offline`<br>
230
+ Disables automatic network activity, including model catalog refreshes. Equivalent to `RELAY_OFFLINE=1`.
231
+ - `-h`, `--help`<br>
232
+ Shows help, including flags registered by loaded extensions, then exits.
233
+ - `-v`, `--version`<br>
234
+ Shows the Relay version, then exits.
235
+
236
+ Extensions may register additional long-form options. Unknown short options are rejected.
237
+
238
+ ## Package commands
239
+
240
+ ```sh
241
+ relay install npm:@scope/package
242
+ ```
243
+
244
+ See [Relay Packages](packages.md) for source formats, filtering, installation, and project scope.
245
+
246
+ ### Common tasks
247
+
248
+ | Task | Command |
249
+ |---|---|
250
+ | Install a package | `relay install <source>` |
251
+ | List configured packages | `relay list` |
252
+ | Remove a package and its settings entry | `relay remove <source>` |
253
+ | Configure which package resources load | `relay config` |
254
+
255
+ Add `--local` or `-l` to `install`, `remove`, `uninstall`, or `config` to use project settings instead of global settings.
256
+
257
+ ### Update packages
258
+
259
+ Running `relay update` without a target updates all installed packages.
260
+
261
+ | Task | Command |
262
+ |---|---|
263
+ | Update all installed packages | `relay update` |
264
+ | Update one installed package | `relay update <source>` |
265
+ | Refresh model catalogs | `relay update --models` |
266
+
267
+ `relay update` never updates Relay itself. Relay is installed from source: pull the checkout, then run `npm install --ignore-scripts` and `npm run build`. With Nix, use `nix profile upgrade relay`.
268
+
269
+ ### Aliases and command options
270
+
271
+ - `relay uninstall <source>` is an alias for `relay remove <source>`.
272
+ - `relay update --extension <source>` is an alias for `relay update <source>`.
273
+ - `-a`, `--approve` trusts project-local files for one command. `-na`, `--no-approve` ignores trust-gated project-local files.
274
+ - Append `-h` or `--help` to a command for its exact usage and option constraints.
275
+
276
+ ## Credential commands
277
+
278
+ ```sh
279
+ relay auth check --provider openai --json
280
+ ```
281
+
282
+ Authentication commands require `--provider <provider>` or `--model <model>`. See [Providers](providers.md) for supported methods.
283
+
284
+ | Command | Description |
285
+ |---|---|
286
+ | `relay auth check` | Print `ready`, `not_ready`, or `invalid`; exit with status `0`, `1`, or `2`, respectively |
287
+ | `relay auth print-api-key` | Print the resolved API key |
288
+ | `relay auth print-bearer-token` | Print a resolved OAuth bearer token |
289
+
290
+ | Option | Applies to | Description |
291
+ |---|---|---|
292
+ | `--provider <provider>` | All | Resolve credentials for a provider |
293
+ | `--model <model>` | All | Resolve credentials from a model; may be combined with `--provider` |
294
+ | `--json` | `auth check` | Write the structured result as JSON |
295
+ | `--credentials` | `auth check` | Emit the resolved credential when ready |
296
+ | `--no-refresh` | `auth check` | Do not refresh expired OAuth credentials; refresh is the default |
297
+ | `--min-expiry <duration>` | `print-bearer-token` | Require remaining token lifetime using `ms`, `s`, `m`, or `h`, such as `30m` |
298
+
299
+ Credential-printing commands write secrets to stdout.
300
+
301
+ ## MCP commands
302
+
303
+ These commands work outside a session, so agents can run them through `bash`. See [MCP Servers](mcp.md).
304
+
305
+ | Command | Description |
306
+ |---|---|
307
+ | `relay mcp add <server> [options] -- <command> [args...]` | Add or replace a stdio server in `mcp.json`; `--env KEY=VALUE` (repeatable) and `--cwd <dir>` set its environment and working directory. Arguments after the command are passed to it |
308
+ | `relay mcp add <server> [options] --url <url>` | Add or replace a streamable HTTP server; `--header KEY=VALUE` (repeatable), `--bearer-token-env-var <NAME>` (sends `Authorization: Bearer ${NAME}`), `--oauth-client-id`, `--oauth-client-secret`, `--oauth-callback-port`, and `--oauth-client-name` configure authentication |
309
+ | `relay mcp remove <server>` | Remove a server from `mcp.json`; stored OAuth credentials are kept |
310
+ | `relay mcp list [--json]` | Connect to every enabled server and print its state, tools, and errors; exit with `1` when a config entry is invalid or an enabled server is not connected |
311
+ | `relay mcp login <server> [--timeout <seconds>]` | Sign in to an OAuth server: open the authorization page and wait for the browser (default 300 seconds); a terminal also accepts the pasted redirect URL |
312
+ | `relay mcp logout <server>` | Delete the stored OAuth credentials of a server |
313
+
314
+ `add` and `remove` change `~/.relay/agent/mcp.json`, or `.relay/mcp.json` in the current directory with `--local` (`-l`). `add` also takes `--exposure <mode>` (see [Exposure](mcp.md#exposure)) and `--description <text>` and does not connect; run `relay mcp list` to check the server.
315
+
316
+ Project `.relay/mcp.json` files are only read for projects that are already trusted.
@@ -0,0 +1,207 @@
1
+ # Codemode
2
+
3
+ The `codemode` tool lets the model write a JavaScript script that calls relay's other tools and runs non-LLM models, such as classifiers and image models. Only the script's output reaches the model, so a script can run calls in parallel and filter large results before the model sees them. To turn it on, see [Enable codemode](cli.md#enable-codemode).
4
+
5
+ ## Scripts
6
+
7
+ The tool input is raw JavaScript source, not JSON and not a markdown code fence. It runs as the body of an async function in a QuickJS sandbox, so top-level `await` and `return` work. The sandbox has no Node APIs, file system, network, or timers; scripts reach the outside world only through tools and `models`.
8
+
9
+ A script may start with an options line:
10
+
11
+ ```js
12
+ // @options: {"max_output_tokens": 2000, "timeout_ms": 60000}
13
+ ```
14
+
15
+ - `max_output_tokens` (default 10000) limits the output. Longer output keeps its start and end, and the full text is written to a temp file whose path is included in the result. A script fails when its output passes 16777216 characters of text and base64 image data or 100000 `text()`, `image()`, and `console` calls; write large data to a file with a tool instead.
16
+ - `timeout_ms` is a hard deadline for the whole script. It is unset by default. Image generation can take minutes, so do not set a short deadline for scripts that generate images.
17
+
18
+ The result starts with `Script completed` or `Script failed`, the wall time, and the output. A failed script keeps its partial output, followed by `Script error:` and the error. Tool calls are real: calls made before a failure are not undone. Calls still running when the script ends are cancelled, and unawaited promises are discarded.
19
+
20
+ ## Globals
21
+
22
+ | Global | Purpose |
23
+ |---|---|
24
+ | `tools.<name>(args)` | Call a tool. See [Call tools](#call-tools). |
25
+ | `text(value)` | Add a text item to the output. Strings are added as is, other values as JSON. |
26
+ | `image(value)` | Add an image to the output: a base64 `data:` URL, an `{ image_url }` object, or an image block `{ type: "image", data, mimeType }` such as those returned by MCP tools and `models.generateImages()`. Remote URLs are not supported. PNG, JPEG, GIF, and WebP are accepted. Each image is also saved to a temp file, and the result names the path before the image. |
27
+ | `console.log(...)` | Like `text()`; `info`, `warn`, `error`, and `debug` do the same. |
28
+ | `return value` | A top-level `return` adds the value like `text()`. |
29
+ | `exit()` | End the script successfully. |
30
+ | `store(key, value)` / `load(key)` | Keep small JSON values across `codemode` calls. See [Store values](#store-values). |
31
+ | `ALL_TOOLS` | Every callable tool as `{ name, description }`, including tools the description does not list. |
32
+ | `searchTools(query, { limit?, namespace? })` | Rank callable tools by relevance (BM25, default limit 8). Resolves to `{ name, description }[]`. |
33
+ | `describeTool(name)` | Resolves to a tool's description and TypeScript declaration, or `undefined`. |
34
+ | `describeNamespace(name)` | Resolves to `{ name, description?, instructions?, tools }` for a namespace such as an MCP server, or `undefined`. |
35
+ | `models` | List and run non-LLM models. See [Models](#models). |
36
+
37
+ ## Call tools
38
+
39
+ Every tool the session can call is a method of `tools`, named by its identifier: characters that are not valid in a JavaScript identifier become `_`, so the MCP tool `mcp__dev-tools__search` is `tools.mcp__dev_tools__search`. Each method takes one object with the tool's arguments.
40
+
41
+ What a call resolves to depends on the tool:
42
+
43
+ - Tools with an output schema resolve to a structured value. `bash` resolves to `{ output, truncated, full_output_path?, exit_code, wall_time_seconds }`, also for non-zero exit codes. Its `output` is not limited to the 2000 lines or 50KB the model sees: it holds up to 1 MiB, and longer output keeps its first and last 512 KiB around an omission marker, with `truncated` set and the full output in `full_output_path`.
44
+ - MCP tools resolve to their `CallToolResult`, including `isError` and `structuredContent`.
45
+ - Other tools, such as `read`, `edit`, and `write`, resolve to their text output.
46
+
47
+ A call that fails, is blocked, or gets invalid arguments rejects with an `Error` that carries the tool's error text. Use `Promise.allSettled()` to keep the results of the calls that succeed.
48
+
49
+ The `codemode` description lists tools with their TypeScript declarations, grouped by namespace (for example one MCP server). Tools with `deferred` exposure, which includes MCP tools with the default `codemode` exposure, are not listed, so the description stays the same while MCP servers connect. Listed declarations share a budget of 3000 estimated tokens (`codemode.inlineBudget` in [settings](settings.md#tools)). Scripts find the other tools with `searchTools()`, `describeTool()`, `describeNamespace()`, or by filtering `ALL_TOOLS`.
50
+
51
+ While `codemode` is active, `codemode.mode` in [settings](settings.md#tools) decides how the other tools are presented. With `on` (default) declared tools stay declared, and their descriptions say how to call them from scripts. With `only` they are hidden from the model and listed in the `codemode` description instead, so the model calls them through scripts.
52
+
53
+ ## Store values
54
+
55
+ `store(key, value)` keeps a JSON value under a string key for later `codemode` calls; storing `undefined` deletes the key. `load(key)` returns the value, or `undefined`. Writes are kept only when the script succeeds: each successful script that stores values appends a `codemode-store` custom entry to the session, so resumed sessions keep the values and each branch sees only the values written on its path.
56
+
57
+ The store is for small state such as IDs, cursors, or summaries. One value may have at most 262144 characters of JSON and all values together at most 1048576. Do not store image data; show images with `image()`, which also saves them to a temp file.
58
+
59
+ ## Models
60
+
61
+ `models` reaches the model catalog and runs non-LLM models with the session's credentials: classifiers, which answer typed questions about JSON state, and image models, which generate images. Chat models are listed but cannot be run from scripts. Which classifier and image models exist is described in [Use classifier models](models.md#use-classifier-models) and [Use image models](models.md#use-image-models).
62
+
63
+ ```ts
64
+ type ModelType = "chat" | "image" | "classifier";
65
+
66
+ /** A catalog entry. `provider` and `id` identify it; other fields depend on the type. */
67
+ interface ModelInfo {
68
+ type?: ModelType;
69
+ provider: string;
70
+ id: string;
71
+ name: string;
72
+ api: string;
73
+ input: ("text" | "image")[];
74
+ contextWindow?: number;
75
+ [key: string]: unknown;
76
+ }
77
+
78
+ declare const models: {
79
+ /** Every known model of a type, optionally for one provider. */
80
+ getModelsOfType(type: ModelType, provider?: string): Promise<ModelInfo[]>;
81
+ /** Models of a type whose provider has working credentials. */
82
+ getAvailableOfType(type: ModelType, provider?: string): Promise<ModelInfo[]>;
83
+ /** One catalog entry, or undefined. */
84
+ getModelOfType(type: ModelType, provider: string, id: string): Promise<ModelInfo | undefined>;
85
+ /** Answer `context.questions` about `context.state`; answers are in `result.answers` by question ID. */
86
+ classify(model: ModelInfo, context: ClassifierContext): Promise<ClassifierResult>;
87
+ /** Generate images from `context.input` text and image blocks; show `result.output` blocks with image(). Can take minutes. */
88
+ generateImages(model: ModelInfo, context: ImagesContext): Promise<ImagesResult>;
89
+ };
90
+ ```
91
+
92
+ `classify()` and `generateImages()` use only the `provider` and `id` of `model`, so `{ provider, id }` works as well. They do not throw on provider errors: check `stopReason` and `errorMessage`. At most four such calls run at once per script; more calls wait for a free slot, so `Promise.all()` over many items is fine. Their usage is added to the `codemode` tool result and counts toward the session cost.
93
+
94
+ Model IDs differ between providers, for example `typesafe/jev-latest` and `openrouter/typesafe/jev-1.13`. Use `models.getAvailableOfType(type)` to find the IDs that work with the current credentials.
95
+
96
+ ### Classify
97
+
98
+ ```ts
99
+ interface ClassifierContext {
100
+ /** The data to classify. */
101
+ state: Record<string, unknown>;
102
+ /** Questions by ID. One call answers all of them. */
103
+ questions: Record<string, ClassifierQuestion>;
104
+ }
105
+
106
+ type ClassifierQuestion =
107
+ /** Pick one label. `criteria` maps each label to what it means. */
108
+ | { type: "choice"; instructions: string; criteria: Record<string, string> }
109
+ /** Score on an ordered scale. `criteria` describes each level, lowest first. */
110
+ | { type: "score"; instructions: string; criteria: string[] }
111
+ /** Yes or no. */
112
+ | { type: "bool"; instructions: string; criteria: { true: string; false: string } };
113
+
114
+ interface ClassifierResult {
115
+ provider: string;
116
+ model: string;
117
+ /** Answers by question ID. */
118
+ answers: Record<string, ClassifierAnswer>;
119
+ usage?: ModelUsage;
120
+ stopReason: "stop" | "error" | "aborted";
121
+ errorMessage?: string;
122
+ }
123
+
124
+ type ClassifierAnswer =
125
+ | { type: "choice"; choice: string; probabilities: Record<string, number>; confidence: number }
126
+ /** `score` is the expected level index, from 0 to `criteria.length - 1`. */
127
+ | { type: "score"; score: number; confidence: number }
128
+ /** Probability of `true`. */
129
+ | { type: "bool"; probability: number };
130
+
131
+ /** Token counts and cost in USD, when the service reports them. */
132
+ type ModelUsage = { input: number; output: number; totalTokens: number; cost: { total: number } };
133
+ ```
134
+
135
+ Classify several items by calling `classify()` once per item. This script sorts feedback messages, for example ones a tool returned earlier in the script:
136
+
137
+ ```js
138
+ const jev = await models.getModelOfType("classifier", "typesafe", "jev-latest");
139
+ const results = await Promise.all(
140
+ messages.map((message) =>
141
+ models.classify(jev, {
142
+ state: { message },
143
+ questions: {
144
+ sentiment: {
145
+ type: "choice",
146
+ instructions: "How does the user feel about the product?",
147
+ criteria: { positive: "Satisfied or happy", negative: "Unhappy or frustrated", neutral: "Neither" },
148
+ },
149
+ urgency: {
150
+ type: "score",
151
+ instructions: "How urgently does this need a reply?",
152
+ criteria: ["no reply needed", "reply this week", "reply today"],
153
+ },
154
+ },
155
+ }),
156
+ ),
157
+ );
158
+ return results.map((result, i) =>
159
+ result.stopReason === "stop"
160
+ ? { message: messages[i], sentiment: result.answers.sentiment.choice, urgency: result.answers.urgency.score }
161
+ : { message: messages[i], error: result.errorMessage },
162
+ );
163
+ ```
164
+
165
+ ### Generate images
166
+
167
+ ```ts
168
+ interface ImagesContext {
169
+ /** The prompt as text blocks, plus image blocks to edit or use as references. */
170
+ input: (TextBlock | ImageBlock)[];
171
+ }
172
+
173
+ interface ImagesResult {
174
+ provider: string;
175
+ model: string;
176
+ /** Generated images, and text blocks for models that also return text. */
177
+ output: (TextBlock | ImageBlock)[];
178
+ usage?: ModelUsage;
179
+ stopReason: "stop" | "error" | "aborted";
180
+ errorMessage?: string;
181
+ }
182
+
183
+ type TextBlock = { type: "text"; text: string };
184
+ /** `data` is base64. */
185
+ type ImageBlock = { type: "image"; data: string; mimeType: string };
186
+ ```
187
+
188
+ Show generated images with `image(block)`. Do not print `data` with `text()`, `console`, or `return`: it is large and the model cannot read it as text. `image()` also saves each image to a temp file and puts its path in the result, so a later turn can copy or move the file.
189
+
190
+ ```js
191
+ // @options: {"timeout_ms": 300000}
192
+ const painter = await models.getModelOfType("image", "openrouter", "google/gemini-2.5-flash-image");
193
+ const result = await models.generateImages(painter, {
194
+ input: [{ type: "text", text: "A red fox in the snow, watercolor" }],
195
+ });
196
+ if (result.stopReason !== "stop") return result.errorMessage;
197
+ for (const block of result.output) {
198
+ if (block.type === "image") image(block);
199
+ else text(block.text);
200
+ }
201
+ ```
202
+
203
+ ## Limits
204
+
205
+ - A script's VM has 256 MB of memory. Running out throws `InternalError: out of memory`; filter or aggregate large data instead of accumulating it.
206
+ - A script that waits on a promise that can never settle (no tool call pending) fails immediately, since there are no timers.
207
+ - Scripts cannot start other `codemode` scripts.