eve 0.5.4 → 0.6.0-beta.3

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 (1743) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +2 -2
  3. package/NOTICE +5 -0
  4. package/README.md +120 -108
  5. package/bin/eve.d.ts +66 -0
  6. package/bin/eve.js +285 -0
  7. package/dist/docs/public/README.md +89 -0
  8. package/dist/docs/public/advanced/auth-and-route-protection.md +270 -0
  9. package/dist/docs/public/advanced/context-control.md +109 -0
  10. package/dist/docs/public/advanced/default-harness.md +94 -0
  11. package/dist/docs/public/advanced/deployment.md +113 -0
  12. package/dist/docs/public/advanced/dev-tui.md +37 -0
  13. package/dist/docs/public/advanced/dynamic-capabilities.md +129 -0
  14. package/dist/docs/public/advanced/dynamic-workflows.md +55 -0
  15. package/dist/docs/public/advanced/evals.md +121 -0
  16. package/dist/docs/public/advanced/execution-model-and-durability.md +48 -0
  17. package/dist/docs/public/advanced/hooks.md +154 -0
  18. package/dist/docs/public/advanced/instrumentation.md +165 -0
  19. package/dist/docs/public/advanced/meta.json +21 -0
  20. package/dist/docs/public/advanced/remote-agents.md +60 -0
  21. package/dist/docs/public/advanced/security-model.md +79 -0
  22. package/dist/docs/public/advanced/session-context.md +149 -0
  23. package/dist/docs/public/advanced/sessions-runs-and-streaming.md +127 -0
  24. package/dist/docs/public/advanced/state.md +62 -0
  25. package/dist/docs/public/agent-config.md +80 -0
  26. package/dist/docs/public/channels/custom.mdx +275 -0
  27. package/dist/docs/public/channels/discord.mdx +74 -0
  28. package/dist/docs/public/channels/eve.mdx +82 -0
  29. package/dist/docs/public/channels/github.mdx +56 -0
  30. package/dist/docs/public/channels/linear.mdx +168 -0
  31. package/dist/docs/public/channels/meta.json +15 -0
  32. package/dist/docs/public/channels/overview.mdx +53 -0
  33. package/dist/docs/public/channels/slack.mdx +92 -0
  34. package/dist/docs/public/channels/teams.mdx +55 -0
  35. package/dist/docs/public/channels/telegram.mdx +56 -0
  36. package/dist/docs/public/channels/twilio.mdx +62 -0
  37. package/dist/docs/public/client/continuations.mdx +126 -0
  38. package/dist/docs/public/client/messages.mdx +152 -0
  39. package/dist/docs/public/client/meta.json +4 -0
  40. package/dist/docs/public/client/output-schema.mdx +135 -0
  41. package/dist/docs/public/client/overview.mdx +116 -0
  42. package/dist/docs/public/client/streaming.mdx +143 -0
  43. package/dist/docs/public/connections.mdx +196 -0
  44. package/dist/docs/public/frontend/meta.json +4 -0
  45. package/dist/docs/public/frontend/nextjs.mdx +79 -0
  46. package/dist/docs/public/frontend/nuxt.mdx +82 -0
  47. package/dist/docs/public/frontend/overview.mdx +234 -0
  48. package/dist/docs/public/frontend/sveltekit.mdx +94 -0
  49. package/dist/docs/public/frontend/use-eve-agent-svelte.mdx +111 -0
  50. package/dist/docs/public/frontend/use-eve-agent-vue.mdx +123 -0
  51. package/dist/docs/public/getting-started.mdx +176 -0
  52. package/dist/docs/public/instructions.mdx +58 -0
  53. package/dist/docs/public/introduction.md +102 -0
  54. package/dist/docs/public/meta.json +22 -0
  55. package/dist/docs/public/reference/cli.md +123 -0
  56. package/dist/docs/public/reference/faqs.md +48 -0
  57. package/dist/docs/public/reference/meta.json +4 -0
  58. package/dist/docs/public/reference/project-layout.md +111 -0
  59. package/dist/docs/public/reference/typescript-api.md +97 -0
  60. package/dist/docs/public/sandbox.mdx +198 -0
  61. package/dist/docs/public/schedules.mdx +104 -0
  62. package/dist/docs/public/skills.mdx +79 -0
  63. package/dist/docs/public/subagents.mdx +76 -0
  64. package/dist/docs/public/tools.mdx +111 -0
  65. package/dist/docs/public/tutorial/connect-a-warehouse.mdx +47 -0
  66. package/dist/docs/public/tutorial/first-agent.mdx +61 -0
  67. package/dist/docs/public/tutorial/guard-the-spend.mdx +59 -0
  68. package/dist/docs/public/tutorial/how-it-runs.mdx +24 -0
  69. package/dist/docs/public/tutorial/meta.json +14 -0
  70. package/dist/docs/public/tutorial/query-sample-data.mdx +81 -0
  71. package/dist/docs/public/tutorial/remember-definitions.mdx +72 -0
  72. package/dist/docs/public/tutorial/run-analysis.mdx +86 -0
  73. package/dist/docs/public/tutorial/ship-it.mdx +100 -0
  74. package/dist/docs/public/tutorial/team-playbooks.mdx +63 -0
  75. package/dist/src/_virtual/_rolldown/runtime.js +1 -0
  76. package/dist/src/channel/adapter-context.d.ts +11 -0
  77. package/dist/src/channel/adapter-context.js +1 -0
  78. package/dist/src/channel/adapter.d.ts +160 -0
  79. package/dist/src/channel/adapter.js +1 -0
  80. package/dist/src/channel/compiled-channel.d.ts +21 -0
  81. package/dist/src/channel/compiled-channel.js +1 -0
  82. package/dist/src/channel/cross-channel-receive.d.ts +70 -0
  83. package/dist/src/channel/cross-channel-receive.js +2 -0
  84. package/dist/src/channel/http.d.ts +29 -0
  85. package/dist/src/channel/http.js +1 -0
  86. package/dist/src/channel/instrumentation.d.ts +10 -0
  87. package/dist/src/channel/instrumentation.js +1 -0
  88. package/dist/src/channel/receive-target.d.ts +17 -0
  89. package/dist/src/channel/receive-target.js +1 -0
  90. package/dist/src/channel/resolve-text.d.ts +19 -0
  91. package/dist/src/channel/resolve-text.js +1 -0
  92. package/dist/src/channel/routes.d.ts +217 -0
  93. package/dist/src/channel/routes.js +1 -0
  94. package/dist/src/channel/schedule.d.ts +66 -0
  95. package/dist/src/channel/schedule.js +1 -0
  96. package/dist/src/channel/send.d.ts +4 -0
  97. package/dist/src/channel/send.js +1 -0
  98. package/dist/src/channel/session-callback.d.ts +10 -0
  99. package/dist/src/channel/session-callback.js +1 -0
  100. package/dist/src/channel/session.d.ts +46 -0
  101. package/dist/src/channel/session.js +1 -0
  102. package/dist/src/channel/types.d.ts +303 -0
  103. package/dist/src/channel/types.js +1 -0
  104. package/dist/src/channel/websocket-upgrade-server.d.ts +26 -0
  105. package/dist/src/channel/websocket-upgrade-server.js +1 -0
  106. package/dist/src/chunks/use-eve-agent-9vL56Fjy.js +1195 -0
  107. package/dist/src/chunks/use-eve-agent-DTWI5Lji.js +1225 -0
  108. package/dist/src/cli/commands/channel-add-conflicts.d.ts +21 -0
  109. package/dist/src/cli/commands/channel-add-conflicts.js +1 -0
  110. package/dist/src/cli/commands/channels.d.ts +26 -0
  111. package/dist/src/cli/commands/channels.js +1 -0
  112. package/dist/src/cli/commands/info.d.ts +53 -0
  113. package/dist/src/cli/commands/info.js +2 -0
  114. package/dist/src/cli/dev/environment.d.ts +20 -0
  115. package/dist/src/cli/dev/environment.js +1 -0
  116. package/dist/src/cli/dev/repl/input-requests.d.ts +38 -0
  117. package/dist/src/cli/dev/repl/input-requests.js +1 -0
  118. package/dist/src/cli/dev/repl/input.d.ts +19 -0
  119. package/dist/src/cli/dev/repl/input.js +1 -0
  120. package/dist/src/cli/dev/repl/repl.d.ts +62 -0
  121. package/dist/src/cli/dev/repl/repl.js +2 -0
  122. package/dist/src/cli/dev/repl/terminal.d.ts +21 -0
  123. package/dist/src/cli/dev/repl/terminal.js +5 -0
  124. package/dist/src/cli/dev/tui/layout.d.ts +24 -0
  125. package/dist/src/cli/dev/tui/layout.js +3 -0
  126. package/dist/src/cli/dev/tui/markdown.d.ts +14 -0
  127. package/dist/src/cli/dev/tui/markdown.js +3 -0
  128. package/dist/src/cli/dev/tui/runner.d.ts +211 -0
  129. package/dist/src/cli/dev/tui/runner.js +1 -0
  130. package/dist/src/cli/dev/tui/terminal-frame-buffer.d.ts +21 -0
  131. package/dist/src/cli/dev/tui/terminal-frame-buffer.js +2 -0
  132. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +111 -0
  133. package/dist/src/cli/dev/tui/terminal-renderer.js +12 -0
  134. package/dist/src/cli/dev/tui/terminal-text.d.ts +6 -0
  135. package/dist/src/cli/dev/tui/terminal-text.js +1 -0
  136. package/dist/src/cli/dev/tui/test/index.d.ts +11 -0
  137. package/dist/src/cli/dev/tui/test/index.js +1 -0
  138. package/dist/src/cli/dev/tui/test/mock-terminal.d.ts +28 -0
  139. package/dist/src/cli/dev/tui/test/mock-terminal.js +3 -0
  140. package/dist/src/cli/dev/tui/tui.d.ts +32 -0
  141. package/dist/src/cli/dev/tui/tui.js +1 -0
  142. package/dist/src/cli/dev/tui/types.d.ts +68 -0
  143. package/dist/src/cli/dev/tui/types.js +1 -0
  144. package/dist/src/cli/dev/url.d.ts +4 -0
  145. package/dist/src/cli/dev/url.js +1 -0
  146. package/dist/src/cli/run.d.ts +112 -0
  147. package/dist/src/cli/run.js +3 -0
  148. package/dist/src/cli/ui/output.d.ts +62 -0
  149. package/dist/src/cli/ui/output.js +8 -0
  150. package/dist/src/client/client-error.d.ts +14 -0
  151. package/dist/src/client/client-error.js +1 -0
  152. package/dist/src/client/client.d.ts +28 -0
  153. package/dist/src/client/client.js +1 -0
  154. package/dist/src/client/eve-agent-store.d.ts +89 -0
  155. package/dist/src/client/eve-agent-store.js +2 -0
  156. package/dist/src/client/index.d.ts +15 -0
  157. package/dist/src/client/index.js +1 -0
  158. package/dist/src/client/message-reducer-types.d.ts +174 -0
  159. package/dist/src/client/message-reducer-types.js +1 -0
  160. package/dist/src/client/message-reducer.d.ts +14 -0
  161. package/dist/src/client/message-reducer.js +1 -0
  162. package/dist/src/client/message-response.d.ts +42 -0
  163. package/dist/src/client/message-response.js +1 -0
  164. package/dist/src/client/ndjson.d.ts +16 -0
  165. package/dist/src/client/ndjson.js +3 -0
  166. package/dist/src/client/open-stream.d.ts +18 -0
  167. package/dist/src/client/open-stream.js +1 -0
  168. package/dist/src/client/output-schema.d.ts +12 -0
  169. package/dist/src/client/output-schema.js +1 -0
  170. package/dist/src/client/reducer.d.ts +63 -0
  171. package/dist/src/client/reducer.js +1 -0
  172. package/dist/src/client/session-utils.d.ts +29 -0
  173. package/dist/src/client/session-utils.js +1 -0
  174. package/dist/src/client/session.d.ts +49 -0
  175. package/dist/src/client/session.js +1 -0
  176. package/dist/src/client/types.d.ts +165 -0
  177. package/dist/src/client/types.js +1 -0
  178. package/dist/src/client/url.d.ts +8 -0
  179. package/dist/src/client/url.js +1 -0
  180. package/dist/src/compiled/.vendor-stamp.json +32 -0
  181. package/dist/src/compiled/@ai-sdk/anthropic/LICENSE +13 -0
  182. package/dist/src/compiled/@ai-sdk/anthropic/_provider-utils.d.ts +15 -0
  183. package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +1262 -0
  184. package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -0
  185. package/dist/src/compiled/@ai-sdk/google/LICENSE +13 -0
  186. package/dist/src/compiled/@ai-sdk/google/_provider-utils.d.ts +11 -0
  187. package/dist/src/compiled/@ai-sdk/google/index.d.ts +627 -0
  188. package/dist/src/compiled/@ai-sdk/google/index.js +11 -0
  189. package/dist/src/compiled/@ai-sdk/mcp/LICENSE +13 -0
  190. package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +37 -0
  191. package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -0
  192. package/dist/src/compiled/@ai-sdk/openai/LICENSE +13 -0
  193. package/dist/src/compiled/@ai-sdk/openai/_provider-utils.d.ts +15 -0
  194. package/dist/src/compiled/@ai-sdk/openai/index.d.ts +1296 -0
  195. package/dist/src/compiled/@ai-sdk/openai/index.js +11 -0
  196. package/dist/src/compiled/@ai-sdk/otel/LICENSE +13 -0
  197. package/dist/src/compiled/@ai-sdk/otel/index.d.ts +32 -0
  198. package/dist/src/compiled/@ai-sdk/otel/index.js +3 -0
  199. package/dist/src/compiled/@ai-sdk/provider/LICENSE +13 -0
  200. package/dist/src/compiled/@ai-sdk/provider/_json-schema.d.ts +5 -0
  201. package/dist/src/compiled/@ai-sdk/provider/index.d.ts +7138 -0
  202. package/dist/src/compiled/@ai-sdk/provider/index.js +3 -0
  203. package/dist/src/compiled/@chat-adapter/slack/LICENSE +9 -0
  204. package/dist/src/compiled/@chat-adapter/slack/_chat-adapter-shared.d.ts +9 -0
  205. package/dist/src/compiled/@chat-adapter/slack/_slack-web-api.d.ts +7 -0
  206. package/dist/src/compiled/@chat-adapter/slack/index.d.ts +950 -0
  207. package/dist/src/compiled/@chat-adapter/slack/index.js +48 -0
  208. package/dist/src/compiled/@chat-adapter/state-memory/LICENSE +9 -0
  209. package/dist/src/compiled/@chat-adapter/state-memory/index.d.ts +50 -0
  210. package/dist/src/compiled/@chat-adapter/state-memory/index.js +1 -0
  211. package/dist/src/compiled/@opentelemetry/api/LICENSE +201 -0
  212. package/dist/src/compiled/@opentelemetry/api/index.d.ts +47 -0
  213. package/dist/src/compiled/@opentelemetry/api/index.js +1 -0
  214. package/dist/src/compiled/@standard-schema/spec/LICENSE +21 -0
  215. package/dist/src/compiled/@standard-schema/spec/index.d.ts +119 -0
  216. package/dist/src/compiled/@standard-schema/spec/index.js +1 -0
  217. package/dist/src/compiled/@vercel/oidc/LICENSE +202 -0
  218. package/dist/src/compiled/@vercel/oidc/index.d.ts +21 -0
  219. package/dist/src/compiled/@vercel/oidc/index.js +2 -0
  220. package/dist/src/compiled/@vercel/sandbox/LICENSE +201 -0
  221. package/dist/src/compiled/@vercel/sandbox/index.d.ts +128 -0
  222. package/dist/src/compiled/@vercel/sandbox/index.js +108 -0
  223. package/dist/src/compiled/@vercel/sandbox/network-policy.d.ts +161 -0
  224. package/dist/src/compiled/@workflow/core/LICENSE.md +201 -0
  225. package/dist/src/compiled/@workflow/core/_ms.d.ts +4 -0
  226. package/dist/src/compiled/@workflow/core/_workflow-serde.d.ts +5 -0
  227. package/dist/src/compiled/@workflow/core/_workflow-utils.d.ts +8 -0
  228. package/dist/src/compiled/@workflow/core/attribute-changes.d.ts +7 -0
  229. package/dist/src/compiled/@workflow/core/capabilities.d.ts +45 -0
  230. package/dist/src/compiled/@workflow/core/capture-stack.d.ts +16 -0
  231. package/dist/src/compiled/@workflow/core/class-serialization.d.ts +31 -0
  232. package/dist/src/compiled/@workflow/core/classify-error.d.ts +20 -0
  233. package/dist/src/compiled/@workflow/core/context-errors.d.ts +27 -0
  234. package/dist/src/compiled/@workflow/core/context-violation-error.d.ts +97 -0
  235. package/dist/src/compiled/@workflow/core/create-hook.d.ts +179 -0
  236. package/dist/src/compiled/@workflow/core/define-hook.d.ts +68 -0
  237. package/dist/src/compiled/@workflow/core/describe-error.d.ts +70 -0
  238. package/dist/src/compiled/@workflow/core/encryption.d.ts +66 -0
  239. package/dist/src/compiled/@workflow/core/events-consumer.d.ts +72 -0
  240. package/dist/src/compiled/@workflow/core/flushable-stream.d.ts +82 -0
  241. package/dist/src/compiled/@workflow/core/global.d.ts +48 -0
  242. package/dist/src/compiled/@workflow/core/index.d.ts +20 -0
  243. package/dist/src/compiled/@workflow/core/index.js +2 -0
  244. package/dist/src/compiled/@workflow/core/log-format.d.ts +25 -0
  245. package/dist/src/compiled/@workflow/core/logger.d.ts +29 -0
  246. package/dist/src/compiled/@workflow/core/private.d.ts +135 -0
  247. package/dist/src/compiled/@workflow/core/private.js +1 -0
  248. package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +52 -0
  249. package/dist/src/compiled/@workflow/core/runtime/get-port-lazy.d.ts +10 -0
  250. package/dist/src/compiled/@workflow/core/runtime/get-world-lazy.d.ts +32 -0
  251. package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +105 -0
  252. package/dist/src/compiled/@workflow/core/runtime/replay-budget.d.ts +98 -0
  253. package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +77 -0
  254. package/dist/src/compiled/@workflow/core/runtime/run.d.ts +134 -0
  255. package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +50 -0
  256. package/dist/src/compiled/@workflow/core/runtime/start.d.ts +59 -0
  257. package/dist/src/compiled/@workflow/core/runtime/step-executor.d.ts +42 -0
  258. package/dist/src/compiled/@workflow/core/runtime/step-handler.d.ts +2 -0
  259. package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +42 -0
  260. package/dist/src/compiled/@workflow/core/runtime/world-init.d.ts +75 -0
  261. package/dist/src/compiled/@workflow/core/runtime/world.d.ts +32 -0
  262. package/dist/src/compiled/@workflow/core/runtime.d.ts +22 -0
  263. package/dist/src/compiled/@workflow/core/runtime.js +141 -0
  264. package/dist/src/compiled/@workflow/core/schemas.d.ts +15 -0
  265. package/dist/src/compiled/@workflow/core/serialization/client.d.ts +17 -0
  266. package/dist/src/compiled/@workflow/core/serialization/codec-devalue.d.ts +14 -0
  267. package/dist/src/compiled/@workflow/core/serialization/codec.d.ts +90 -0
  268. package/dist/src/compiled/@workflow/core/serialization/encryption.d.ts +33 -0
  269. package/dist/src/compiled/@workflow/core/serialization/errors.d.ts +34 -0
  270. package/dist/src/compiled/@workflow/core/serialization/format.d.ts +60 -0
  271. package/dist/src/compiled/@workflow/core/serialization/index.d.ts +18 -0
  272. package/dist/src/compiled/@workflow/core/serialization/reducers/class.d.ts +11 -0
  273. package/dist/src/compiled/@workflow/core/serialization/reducers/common.d.ts +16 -0
  274. package/dist/src/compiled/@workflow/core/serialization/reducers/step-function.d.ts +35 -0
  275. package/dist/src/compiled/@workflow/core/serialization/step.d.ts +17 -0
  276. package/dist/src/compiled/@workflow/core/serialization/types.d.ts +228 -0
  277. package/dist/src/compiled/@workflow/core/serialization/workflow.d.ts +29 -0
  278. package/dist/src/compiled/@workflow/core/serialization-format.d.ts +171 -0
  279. package/dist/src/compiled/@workflow/core/serialization.d.ts +344 -0
  280. package/dist/src/compiled/@workflow/core/set-attributes.d.ts +13 -0
  281. package/dist/src/compiled/@workflow/core/sleep.d.ts +33 -0
  282. package/dist/src/compiled/@workflow/core/source-map.d.ts +10 -0
  283. package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +29 -0
  284. package/dist/src/compiled/@workflow/core/step/get-closure-vars.d.ts +9 -0
  285. package/dist/src/compiled/@workflow/core/step/get-step-metadata.d.ts +42 -0
  286. package/dist/src/compiled/@workflow/core/step/get-workflow-metadata.d.ts +7 -0
  287. package/dist/src/compiled/@workflow/core/step/writable-stream.d.ts +22 -0
  288. package/dist/src/compiled/@workflow/core/step.d.ts +4 -0
  289. package/dist/src/compiled/@workflow/core/symbols.d.ts +42 -0
  290. package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +283 -0
  291. package/dist/src/compiled/@workflow/core/telemetry.d.ts +53 -0
  292. package/dist/src/compiled/@workflow/core/types.d.ts +20 -0
  293. package/dist/src/compiled/@workflow/core/util.d.ts +40 -0
  294. package/dist/src/compiled/@workflow/core/version.d.ts +2 -0
  295. package/dist/src/compiled/@workflow/core/vm/index.d.ts +17 -0
  296. package/dist/src/compiled/@workflow/core/vm/uint8array-base64.d.ts +21 -0
  297. package/dist/src/compiled/@workflow/core/vm/uuid.d.ts +10 -0
  298. package/dist/src/compiled/@workflow/core/workflow/abort-controller.d.ts +65 -0
  299. package/dist/src/compiled/@workflow/core/workflow/create-hook.d.ts +7 -0
  300. package/dist/src/compiled/@workflow/core/workflow/define-hook.d.ts +10 -0
  301. package/dist/src/compiled/@workflow/core/workflow/get-workflow-metadata.d.ts +32 -0
  302. package/dist/src/compiled/@workflow/core/workflow/hook.d.ts +4 -0
  303. package/dist/src/compiled/@workflow/core/workflow/index.d.ts +12 -0
  304. package/dist/src/compiled/@workflow/core/workflow/set-attributes.d.ts +74 -0
  305. package/dist/src/compiled/@workflow/core/workflow/sleep.d.ts +4 -0
  306. package/dist/src/compiled/@workflow/core/workflow/world-init-stub.d.ts +15 -0
  307. package/dist/src/compiled/@workflow/core/workflow/writable-stream.d.ts +3 -0
  308. package/dist/src/compiled/@workflow/core/workflow.d.ts +1 -0
  309. package/dist/src/compiled/@workflow/core/workflow.js +1 -0
  310. package/dist/src/compiled/@workflow/errors/LICENSE.md +201 -0
  311. package/dist/src/compiled/@workflow/errors/_ms.d.ts +4 -0
  312. package/dist/src/compiled/@workflow/errors/error-codes.d.ts +23 -0
  313. package/dist/src/compiled/@workflow/errors/index.d.ts +536 -0
  314. package/dist/src/compiled/@workflow/errors/index.js +1 -0
  315. package/dist/src/compiled/@workflow/world/LICENSE.md +201 -0
  316. package/dist/src/compiled/@workflow/world/attributes.d.ts +110 -0
  317. package/dist/src/compiled/@workflow/world/events.d.ts +415 -0
  318. package/dist/src/compiled/@workflow/world/hooks.d.ts +72 -0
  319. package/dist/src/compiled/@workflow/world/index.d.ts +25 -0
  320. package/dist/src/compiled/@workflow/world/index.js +1 -0
  321. package/dist/src/compiled/@workflow/world/interfaces.d.ts +264 -0
  322. package/dist/src/compiled/@workflow/world/queue.d.ts +128 -0
  323. package/dist/src/compiled/@workflow/world/recovery.d.ts +13 -0
  324. package/dist/src/compiled/@workflow/world/runs.d.ts +144 -0
  325. package/dist/src/compiled/@workflow/world/serialization.d.ts +25 -0
  326. package/dist/src/compiled/@workflow/world/shared.d.ts +83 -0
  327. package/dist/src/compiled/@workflow/world/spec-version.d.ts +46 -0
  328. package/dist/src/compiled/@workflow/world/steps.d.ts +70 -0
  329. package/dist/src/compiled/@workflow/world/ulid.d.ts +35 -0
  330. package/dist/src/compiled/@workflow/world/waits.d.ts +21 -0
  331. package/dist/src/compiled/_chunks/node/auth-BsyzphzW.js +2 -0
  332. package/dist/src/compiled/_chunks/node/dist-BQYUcBqu.js +90 -0
  333. package/dist/src/compiled/_chunks/node/dist-BdTs18CF.js +1 -0
  334. package/dist/src/compiled/_chunks/node/retry-DkR2H1Y0.js +1 -0
  335. package/dist/src/compiled/_chunks/node/token-ORseRyWn.js +1 -0
  336. package/dist/src/compiled/_chunks/node/version-BGue04qw.js +1 -0
  337. package/dist/src/compiled/_chunks/workflow/chunk-DSjMdhoD.js +1 -0
  338. package/dist/src/compiled/_chunks/workflow/coerce-BTuSKQr5.js +1 -0
  339. package/dist/src/compiled/_chunks/workflow/compat-CG1hDp-3.js +1 -0
  340. package/dist/src/compiled/_chunks/workflow/core-5Woff_dW.js +65 -0
  341. package/dist/src/compiled/_chunks/workflow/dist-6a3viBXZ.js +3 -0
  342. package/dist/src/compiled/_chunks/workflow/dist-D0jyrm7a.js +1 -0
  343. package/dist/src/compiled/_chunks/workflow/dist-gEXVSMPU.js +14 -0
  344. package/dist/src/compiled/_chunks/workflow/resume-hook-0Zk0zSvq.js +12 -0
  345. package/dist/src/compiled/_chunks/workflow/schemas-DWOIBELG.js +1 -0
  346. package/dist/src/compiled/_chunks/workflow/sleep-DXZr2BgM.js +1 -0
  347. package/dist/src/compiled/_chunks/workflow/src-B54rYDvB.js +1 -0
  348. package/dist/src/compiled/_chunks/workflow/symbols-BWCAoPHE.js +48 -0
  349. package/dist/src/compiled/_chunks/workflow/token-CcaAeZHd.js +1 -0
  350. package/dist/src/compiled/_chunks/workflow/token-nK4u-N7w.js +1 -0
  351. package/dist/src/compiled/chat/LICENSE +9 -0
  352. package/dist/src/compiled/chat/_mdast.d.ts +24 -0
  353. package/dist/src/compiled/chat/index.d.ts +714 -0
  354. package/dist/src/compiled/chat/index.js +1 -0
  355. package/dist/src/compiled/chat/jsx-runtime-CFq1K_Ve.d.ts +782 -0
  356. package/dist/src/compiled/chokidar/LICENSE +21 -0
  357. package/dist/src/compiled/chokidar/index.d.ts +33 -0
  358. package/dist/src/compiled/chokidar/index.js +1 -0
  359. package/dist/src/compiled/commander/LICENSE +22 -0
  360. package/dist/src/compiled/commander/index.d.ts +1113 -0
  361. package/dist/src/compiled/commander/index.js +19 -0
  362. package/dist/src/compiled/experimental-ai-sdk-code-mode/LICENSE +21 -0
  363. package/dist/src/compiled/experimental-ai-sdk-code-mode/approval-continuation.d.ts +71 -0
  364. package/dist/src/compiled/experimental-ai-sdk-code-mode/approval.d.ts +32 -0
  365. package/dist/src/compiled/experimental-ai-sdk-code-mode/code-mode-tool.d.ts +16 -0
  366. package/dist/src/compiled/experimental-ai-sdk-code-mode/continuation-capability.d.ts +33 -0
  367. package/dist/src/compiled/experimental-ai-sdk-code-mode/errors.d.ts +114 -0
  368. package/dist/src/compiled/experimental-ai-sdk-code-mode/fetch-policy.d.ts +21 -0
  369. package/dist/src/compiled/experimental-ai-sdk-code-mode/host-interrupt.d.ts +25 -0
  370. package/dist/src/compiled/experimental-ai-sdk-code-mode/index.d.ts +11 -0
  371. package/dist/src/compiled/experimental-ai-sdk-code-mode/index.js +419 -0
  372. package/dist/src/compiled/experimental-ai-sdk-code-mode/interrupt-continuation.d.ts +32 -0
  373. package/dist/src/compiled/experimental-ai-sdk-code-mode/options.d.ts +3 -0
  374. package/dist/src/compiled/experimental-ai-sdk-code-mode/run-code-mode.d.ts +12 -0
  375. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/guest-sources.d.ts +3 -0
  376. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/manager.d.ts +22 -0
  377. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/max-workers.d.ts +20 -0
  378. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/protocol.d.ts +49 -0
  379. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/worker-source.d.ts +11 -0
  380. package/dist/src/compiled/experimental-ai-sdk-code-mode/serialization.d.ts +5 -0
  381. package/dist/src/compiled/experimental-ai-sdk-code-mode/source-cache.d.ts +11 -0
  382. package/dist/src/compiled/experimental-ai-sdk-code-mode/telemetry.d.ts +20 -0
  383. package/dist/src/compiled/experimental-ai-sdk-code-mode/tool-invocation.d.ts +24 -0
  384. package/dist/src/compiled/experimental-ai-sdk-code-mode/tool-prompt.d.ts +3 -0
  385. package/dist/src/compiled/experimental-ai-sdk-code-mode/types.d.ts +802 -0
  386. package/dist/src/compiled/gray-matter/LICENSE +21 -0
  387. package/dist/src/compiled/gray-matter/index.d.ts +62 -0
  388. package/dist/src/compiled/gray-matter/index.js +48 -0
  389. package/dist/src/compiled/jose/LICENSE.md +21 -0
  390. package/dist/src/compiled/jose/index.d.ts +40 -0
  391. package/dist/src/compiled/jose/index.js +2 -0
  392. package/dist/src/compiled/jsonc-parser/LICENSE.md +21 -0
  393. package/dist/src/compiled/jsonc-parser/index.d.ts +13 -0
  394. package/dist/src/compiled/jsonc-parser/index.js +15 -0
  395. package/dist/src/compiled/just-bash/LICENSE +201 -0
  396. package/dist/src/compiled/just-bash/index.d.ts +116 -0
  397. package/dist/src/compiled/just-bash/index.js +2200 -0
  398. package/dist/src/compiled/just-bash/network/types.d.ts +155 -0
  399. package/dist/src/compiled/picocolors/LICENSE +15 -0
  400. package/dist/src/compiled/picocolors/index.d.ts +55 -0
  401. package/dist/src/compiled/picocolors/index.js +1 -0
  402. package/dist/src/compiled/turndown/LICENSE +21 -0
  403. package/dist/src/compiled/turndown/index.d.ts +13 -0
  404. package/dist/src/compiled/turndown/index.js +69 -0
  405. package/dist/src/compiled/zod/LICENSE +21 -0
  406. package/dist/src/compiled/zod/index.d.ts +5 -0
  407. package/dist/src/compiled/zod/index.js +1 -0
  408. package/dist/src/compiled/zod-validation-error/LICENSE +9 -0
  409. package/dist/src/compiled/zod-validation-error/index.d.ts +12 -0
  410. package/dist/src/compiled/zod-validation-error/index.js +1 -0
  411. package/dist/src/compiler/artifacts.d.ts +109 -0
  412. package/dist/src/compiler/artifacts.js +1 -0
  413. package/dist/src/compiler/channel-instrumentation-types.d.ts +8 -0
  414. package/dist/src/compiler/channel-instrumentation-types.js +2 -0
  415. package/dist/src/compiler/compile-agent.d.ts +41 -0
  416. package/dist/src/compiler/compile-agent.js +3 -0
  417. package/dist/src/compiler/compile-from-memory.d.ts +76 -0
  418. package/dist/src/compiler/compile-from-memory.js +1 -0
  419. package/dist/src/compiler/manifest.d.ts +504 -0
  420. package/dist/src/compiler/manifest.js +1 -0
  421. package/dist/src/compiler/model-catalog.d.ts +60 -0
  422. package/dist/src/compiler/model-catalog.js +1 -0
  423. package/dist/src/compiler/module-map.d.ts +48 -0
  424. package/dist/src/compiler/module-map.js +5 -0
  425. package/dist/src/compiler/normalize-agent-config.d.ts +18 -0
  426. package/dist/src/compiler/normalize-agent-config.js +1 -0
  427. package/dist/src/compiler/normalize-channel.d.ts +16 -0
  428. package/dist/src/compiler/normalize-channel.js +1 -0
  429. package/dist/src/compiler/normalize-connection.d.ts +21 -0
  430. package/dist/src/compiler/normalize-connection.js +1 -0
  431. package/dist/src/compiler/normalize-helpers.d.ts +28 -0
  432. package/dist/src/compiler/normalize-helpers.js +1 -0
  433. package/dist/src/compiler/normalize-hook.d.ts +12 -0
  434. package/dist/src/compiler/normalize-hook.js +1 -0
  435. package/dist/src/compiler/normalize-instructions.d.ts +35 -0
  436. package/dist/src/compiler/normalize-instructions.js +1 -0
  437. package/dist/src/compiler/normalize-manifest.d.ts +6 -0
  438. package/dist/src/compiler/normalize-manifest.js +3 -0
  439. package/dist/src/compiler/normalize-sandbox.d.ts +7 -0
  440. package/dist/src/compiler/normalize-sandbox.js +1 -0
  441. package/dist/src/compiler/normalize-schedule.d.ts +14 -0
  442. package/dist/src/compiler/normalize-schedule.js +1 -0
  443. package/dist/src/compiler/normalize-skill.d.ts +21 -0
  444. package/dist/src/compiler/normalize-skill.js +1 -0
  445. package/dist/src/compiler/normalize-subagent.d.ts +29 -0
  446. package/dist/src/compiler/normalize-subagent.js +1 -0
  447. package/dist/src/compiler/normalize-tool.d.ts +34 -0
  448. package/dist/src/compiler/normalize-tool.js +1 -0
  449. package/dist/src/compiler/remote-agent-node.d.ts +22 -0
  450. package/dist/src/compiler/remote-agent-node.js +1 -0
  451. package/dist/src/compiler/workspace-resources.d.ts +14 -0
  452. package/dist/src/compiler/workspace-resources.js +1 -0
  453. package/dist/src/context/accessors.d.ts +40 -0
  454. package/dist/src/context/accessors.js +1 -0
  455. package/dist/src/context/build-callback-context.d.ts +8 -0
  456. package/dist/src/context/build-callback-context.js +1 -0
  457. package/dist/src/context/build-dynamic-tools.d.ts +13 -0
  458. package/dist/src/context/build-dynamic-tools.js +1 -0
  459. package/dist/src/context/container.d.ts +60 -0
  460. package/dist/src/context/container.js +1 -0
  461. package/dist/src/context/dynamic-instruction-lifecycle.d.ts +26 -0
  462. package/dist/src/context/dynamic-instruction-lifecycle.js +1 -0
  463. package/dist/src/context/dynamic-resolve-context.d.ts +12 -0
  464. package/dist/src/context/dynamic-resolve-context.js +1 -0
  465. package/dist/src/context/dynamic-skill-lifecycle.d.ts +24 -0
  466. package/dist/src/context/dynamic-skill-lifecycle.js +1 -0
  467. package/dist/src/context/dynamic-tool-lifecycle.d.ts +25 -0
  468. package/dist/src/context/dynamic-tool-lifecycle.js +1 -0
  469. package/dist/src/context/hook-lifecycle.d.ts +14 -0
  470. package/dist/src/context/hook-lifecycle.js +1 -0
  471. package/dist/src/context/key.d.ts +47 -0
  472. package/dist/src/context/key.js +1 -0
  473. package/dist/src/context/keys.d.ts +105 -0
  474. package/dist/src/context/keys.js +1 -0
  475. package/dist/src/context/node.d.ts +7 -0
  476. package/dist/src/context/node.js +1 -0
  477. package/dist/src/context/provider.d.ts +27 -0
  478. package/dist/src/context/provider.js +1 -0
  479. package/dist/src/context/providers/connection.d.ts +12 -0
  480. package/dist/src/context/providers/connection.js +1 -0
  481. package/dist/src/context/providers/sandbox.d.ts +3 -0
  482. package/dist/src/context/providers/sandbox.js +1 -0
  483. package/dist/src/context/providers/session.d.ts +3 -0
  484. package/dist/src/context/providers/session.js +1 -0
  485. package/dist/src/context/run-step.d.ts +23 -0
  486. package/dist/src/context/run-step.js +1 -0
  487. package/dist/src/context/serialize.d.ts +15 -0
  488. package/dist/src/context/serialize.js +1 -0
  489. package/dist/src/discover/connections.d.ts +34 -0
  490. package/dist/src/discover/connections.js +1 -0
  491. package/dist/src/discover/diagnostics.d.ts +53 -0
  492. package/dist/src/discover/diagnostics.js +1 -0
  493. package/dist/src/discover/discover-agent.d.ts +30 -0
  494. package/dist/src/discover/discover-agent.js +1 -0
  495. package/dist/src/discover/discover-subagent.d.ts +36 -0
  496. package/dist/src/discover/discover-subagent.js +1 -0
  497. package/dist/src/discover/filesystem.d.ts +71 -0
  498. package/dist/src/discover/filesystem.js +1 -0
  499. package/dist/src/discover/grammar.d.ts +202 -0
  500. package/dist/src/discover/grammar.js +1 -0
  501. package/dist/src/discover/lib.d.ts +34 -0
  502. package/dist/src/discover/lib.js +1 -0
  503. package/dist/src/discover/manifest.d.ts +250 -0
  504. package/dist/src/discover/manifest.js +1 -0
  505. package/dist/src/discover/markdown.d.ts +19 -0
  506. package/dist/src/discover/markdown.js +1 -0
  507. package/dist/src/discover/named-source-directory.d.ts +97 -0
  508. package/dist/src/discover/named-source-directory.js +1 -0
  509. package/dist/src/discover/project-source.d.ts +107 -0
  510. package/dist/src/discover/project-source.js +1 -0
  511. package/dist/src/discover/project.d.ts +33 -0
  512. package/dist/src/discover/project.js +1 -0
  513. package/dist/src/discover/sandbox.d.ts +37 -0
  514. package/dist/src/discover/sandbox.js +1 -0
  515. package/dist/src/discover/schedules.d.ts +38 -0
  516. package/dist/src/discover/schedules.js +1 -0
  517. package/dist/src/discover/skills.d.ts +38 -0
  518. package/dist/src/discover/skills.js +1 -0
  519. package/dist/src/discover/slots.d.ts +30 -0
  520. package/dist/src/discover/slots.js +1 -0
  521. package/dist/src/evals/cli/eval.d.ts +18 -0
  522. package/dist/src/evals/cli/eval.js +1 -0
  523. package/dist/src/evals/define-eval-suite.d.ts +16 -0
  524. package/dist/src/evals/define-eval-suite.js +1 -0
  525. package/dist/src/evals/index.d.ts +3 -0
  526. package/dist/src/evals/index.js +1 -0
  527. package/dist/src/evals/loaders/index.d.ts +2 -0
  528. package/dist/src/evals/loaders/index.js +1 -0
  529. package/dist/src/evals/loaders/json.d.ts +12 -0
  530. package/dist/src/evals/loaders/json.js +1 -0
  531. package/dist/src/evals/loaders/yaml.d.ts +16 -0
  532. package/dist/src/evals/loaders/yaml.js +1 -0
  533. package/dist/src/evals/reporters/index.d.ts +2 -0
  534. package/dist/src/evals/reporters/index.js +1 -0
  535. package/dist/src/evals/runner/artifacts.d.ts +11 -0
  536. package/dist/src/evals/runner/artifacts.js +3 -0
  537. package/dist/src/evals/runner/derive-run-facts.d.ts +9 -0
  538. package/dist/src/evals/runner/derive-run-facts.js +1 -0
  539. package/dist/src/evals/runner/discover.d.ts +20 -0
  540. package/dist/src/evals/runner/discover.js +1 -0
  541. package/dist/src/evals/runner/execute-case.d.ts +23 -0
  542. package/dist/src/evals/runner/execute-case.js +1 -0
  543. package/dist/src/evals/runner/execute-suite.d.ts +24 -0
  544. package/dist/src/evals/runner/execute-suite.js +1 -0
  545. package/dist/src/evals/runner/reporters/braintrust.d.ts +27 -0
  546. package/dist/src/evals/runner/reporters/braintrust.js +2 -0
  547. package/dist/src/evals/runner/reporters/console.d.ts +15 -0
  548. package/dist/src/evals/runner/reporters/console.js +1 -0
  549. package/dist/src/evals/runner/reporters/types.d.ts +20 -0
  550. package/dist/src/evals/runner/reporters/types.js +1 -0
  551. package/dist/src/evals/runner/resolve-git-metadata.d.ts +16 -0
  552. package/dist/src/evals/runner/resolve-git-metadata.js +1 -0
  553. package/dist/src/evals/scorers/autoevals-client.d.ts +14 -0
  554. package/dist/src/evals/scorers/autoevals-client.js +2 -0
  555. package/dist/src/evals/scorers/autoevals.d.ts +58 -0
  556. package/dist/src/evals/scorers/autoevals.js +1 -0
  557. package/dist/src/evals/scorers/json.d.ts +10 -0
  558. package/dist/src/evals/scorers/json.js +1 -0
  559. package/dist/src/evals/scorers/run.d.ts +18 -0
  560. package/dist/src/evals/scorers/run.js +1 -0
  561. package/dist/src/evals/scorers/sql.d.ts +9 -0
  562. package/dist/src/evals/scorers/sql.js +1 -0
  563. package/dist/src/evals/scorers/text.d.ts +18 -0
  564. package/dist/src/evals/scorers/text.js +1 -0
  565. package/dist/src/evals/scores/index.d.ts +72 -0
  566. package/dist/src/evals/scores/index.js +1 -0
  567. package/dist/src/evals/types.d.ts +272 -0
  568. package/dist/src/evals/types.js +1 -0
  569. package/dist/src/execution/channel-context.d.ts +5 -0
  570. package/dist/src/execution/channel-context.js +1 -0
  571. package/dist/src/execution/connection-auth-tool-result.d.ts +2 -0
  572. package/dist/src/execution/connection-auth-tool-result.js +1 -0
  573. package/dist/src/execution/create-session-step.d.ts +43 -0
  574. package/dist/src/execution/create-session-step.js +1 -0
  575. package/dist/src/execution/delegated-parent-notification.d.ts +15 -0
  576. package/dist/src/execution/delegated-parent-notification.js +1 -0
  577. package/dist/src/execution/delegated-parent-result.d.ts +14 -0
  578. package/dist/src/execution/delegated-parent-result.js +1 -0
  579. package/dist/src/execution/dispatch-code-mode-runtime-actions-step.d.ts +21 -0
  580. package/dist/src/execution/dispatch-code-mode-runtime-actions-step.js +1 -0
  581. package/dist/src/execution/dispatch-runtime-actions-step.d.ts +19 -0
  582. package/dist/src/execution/dispatch-runtime-actions-step.js +1 -0
  583. package/dist/src/execution/durable-session-migrations/chain.d.ts +38 -0
  584. package/dist/src/execution/durable-session-migrations/chain.js +1 -0
  585. package/dist/src/execution/durable-session-migrations/snapshot.d.ts +22 -0
  586. package/dist/src/execution/durable-session-migrations/snapshot.js +1 -0
  587. package/dist/src/execution/durable-session-migrations/turn-workflow-v0-to-v1.d.ts +12 -0
  588. package/dist/src/execution/durable-session-migrations/turn-workflow-v0-to-v1.js +1 -0
  589. package/dist/src/execution/durable-session-migrations/turn-workflow.d.ts +40 -0
  590. package/dist/src/execution/durable-session-migrations/turn-workflow.js +1 -0
  591. package/dist/src/execution/durable-session-store.d.ts +113 -0
  592. package/dist/src/execution/durable-session-store.js +1 -0
  593. package/dist/src/execution/eve-workflow-attributes.d.ts +136 -0
  594. package/dist/src/execution/eve-workflow-attributes.js +1 -0
  595. package/dist/src/execution/next-driver-action.d.ts +37 -0
  596. package/dist/src/execution/next-driver-action.js +1 -0
  597. package/dist/src/execution/node-step.d.ts +52 -0
  598. package/dist/src/execution/node-step.js +1 -0
  599. package/dist/src/execution/remote-agent-dispatch.d.ts +15 -0
  600. package/dist/src/execution/remote-agent-dispatch.js +1 -0
  601. package/dist/src/execution/runtime-context.d.ts +10 -0
  602. package/dist/src/execution/runtime-context.js +1 -0
  603. package/dist/src/execution/runtime-errors.d.ts +13 -0
  604. package/dist/src/execution/runtime-errors.js +1 -0
  605. package/dist/src/execution/sandbox/bash-tool.d.ts +30 -0
  606. package/dist/src/execution/sandbox/bash-tool.js +1 -0
  607. package/dist/src/execution/sandbox/bindings/local.d.ts +22 -0
  608. package/dist/src/execution/sandbox/bindings/local.js +1 -0
  609. package/dist/src/execution/sandbox/bindings/vercel.d.ts +28 -0
  610. package/dist/src/execution/sandbox/bindings/vercel.js +1 -0
  611. package/dist/src/execution/sandbox/ensure.d.ts +27 -0
  612. package/dist/src/execution/sandbox/ensure.js +1 -0
  613. package/dist/src/execution/sandbox/glob-tool.d.ts +22 -0
  614. package/dist/src/execution/sandbox/glob-tool.js +3 -0
  615. package/dist/src/execution/sandbox/grep-tool.d.ts +26 -0
  616. package/dist/src/execution/sandbox/grep-tool.js +3 -0
  617. package/dist/src/execution/sandbox/lazy-backend.d.ts +15 -0
  618. package/dist/src/execution/sandbox/lazy-backend.js +1 -0
  619. package/dist/src/execution/sandbox/prewarm.d.ts +57 -0
  620. package/dist/src/execution/sandbox/prewarm.js +1 -0
  621. package/dist/src/execution/sandbox/read-file-tool.d.ts +28 -0
  622. package/dist/src/execution/sandbox/read-file-tool.js +3 -0
  623. package/dist/src/execution/sandbox/require-sandbox.d.ts +15 -0
  624. package/dist/src/execution/sandbox/require-sandbox.js +1 -0
  625. package/dist/src/execution/sandbox/ripgrep-probe.d.ts +9 -0
  626. package/dist/src/execution/sandbox/ripgrep-probe.js +1 -0
  627. package/dist/src/execution/sandbox/session.d.ts +17 -0
  628. package/dist/src/execution/sandbox/session.js +3 -0
  629. package/dist/src/execution/sandbox/shell-quote.d.ts +12 -0
  630. package/dist/src/execution/sandbox/shell-quote.js +1 -0
  631. package/dist/src/execution/sandbox/stream-utils.d.ts +9 -0
  632. package/dist/src/execution/sandbox/stream-utils.js +1 -0
  633. package/dist/src/execution/sandbox/truncate-output.d.ts +72 -0
  634. package/dist/src/execution/sandbox/truncate-output.js +3 -0
  635. package/dist/src/execution/sandbox/write-file-tool.d.ts +23 -0
  636. package/dist/src/execution/sandbox/write-file-tool.js +1 -0
  637. package/dist/src/execution/session-callback-step.d.ts +16 -0
  638. package/dist/src/execution/session-callback-step.js +1 -0
  639. package/dist/src/execution/session.d.ts +81 -0
  640. package/dist/src/execution/session.js +5 -0
  641. package/dist/src/execution/skills/instructions.d.ts +19 -0
  642. package/dist/src/execution/skills/instructions.js +2 -0
  643. package/dist/src/execution/skills/types.d.ts +22 -0
  644. package/dist/src/execution/skills/types.js +1 -0
  645. package/dist/src/execution/subagent-adapter.d.ts +43 -0
  646. package/dist/src/execution/subagent-adapter.js +1 -0
  647. package/dist/src/execution/subagent-hitl-proxy.d.ts +37 -0
  648. package/dist/src/execution/subagent-hitl-proxy.js +1 -0
  649. package/dist/src/execution/subagent-invocation.d.ts +16 -0
  650. package/dist/src/execution/subagent-invocation.js +2 -0
  651. package/dist/src/execution/subagent-tool.d.ts +39 -0
  652. package/dist/src/execution/subagent-tool.js +1 -0
  653. package/dist/src/execution/tool-auth.d.ts +42 -0
  654. package/dist/src/execution/tool-auth.js +1 -0
  655. package/dist/src/execution/tool-compaction.d.ts +9 -0
  656. package/dist/src/execution/tool-compaction.js +1 -0
  657. package/dist/src/execution/turn-workflow.d.ts +30 -0
  658. package/dist/src/execution/turn-workflow.js +1 -0
  659. package/dist/src/execution/web-fetch/html.d.ts +15 -0
  660. package/dist/src/execution/web-fetch/html.js +7 -0
  661. package/dist/src/execution/web-fetch/tool.d.ts +34 -0
  662. package/dist/src/execution/web-fetch/tool.js +1 -0
  663. package/dist/src/execution/workflow-callback-url.d.ts +12 -0
  664. package/dist/src/execution/workflow-callback-url.js +1 -0
  665. package/dist/src/execution/workflow-entry.d.ts +26 -0
  666. package/dist/src/execution/workflow-entry.js +1 -0
  667. package/dist/src/execution/workflow-errors.d.ts +14 -0
  668. package/dist/src/execution/workflow-errors.js +1 -0
  669. package/dist/src/execution/workflow-runtime.d.ts +48 -0
  670. package/dist/src/execution/workflow-runtime.js +3 -0
  671. package/dist/src/execution/workflow-steps.d.ts +103 -0
  672. package/dist/src/execution/workflow-steps.js +1 -0
  673. package/dist/src/harness/action-result-helpers.d.ts +40 -0
  674. package/dist/src/harness/action-result-helpers.js +1 -0
  675. package/dist/src/harness/attachment-staging.d.ts +30 -0
  676. package/dist/src/harness/attachment-staging.js +1 -0
  677. package/dist/src/harness/authorization.d.ts +116 -0
  678. package/dist/src/harness/authorization.js +1 -0
  679. package/dist/src/harness/code-mode-interrupt-state.d.ts +26 -0
  680. package/dist/src/harness/code-mode-interrupt-state.js +1 -0
  681. package/dist/src/harness/code-mode-lifecycle.d.ts +16 -0
  682. package/dist/src/harness/code-mode-lifecycle.js +1 -0
  683. package/dist/src/harness/code-mode-runtime-action-state.d.ts +6 -0
  684. package/dist/src/harness/code-mode-runtime-action-state.js +1 -0
  685. package/dist/src/harness/code-mode.d.ts +26 -0
  686. package/dist/src/harness/code-mode.js +1 -0
  687. package/dist/src/harness/compaction.d.ts +43 -0
  688. package/dist/src/harness/compaction.js +4 -0
  689. package/dist/src/harness/emission.d.ts +124 -0
  690. package/dist/src/harness/emission.js +1 -0
  691. package/dist/src/harness/execute-tool.d.ts +28 -0
  692. package/dist/src/harness/execute-tool.js +1 -0
  693. package/dist/src/harness/input-extraction.d.ts +17 -0
  694. package/dist/src/harness/input-extraction.js +1 -0
  695. package/dist/src/harness/input-requests.d.ts +75 -0
  696. package/dist/src/harness/input-requests.js +1 -0
  697. package/dist/src/harness/instrumentation-config.d.ts +18 -0
  698. package/dist/src/harness/instrumentation-config.js +1 -0
  699. package/dist/src/harness/instrumentation-runtime-context.d.ts +23 -0
  700. package/dist/src/harness/instrumentation-runtime-context.js +1 -0
  701. package/dist/src/harness/messages.d.ts +41 -0
  702. package/dist/src/harness/messages.js +1 -0
  703. package/dist/src/harness/model-call-error.d.ts +53 -0
  704. package/dist/src/harness/model-call-error.js +1 -0
  705. package/dist/src/harness/otel-integration.d.ts +9 -0
  706. package/dist/src/harness/otel-integration.js +1 -0
  707. package/dist/src/harness/prompt-cache.d.ts +83 -0
  708. package/dist/src/harness/prompt-cache.js +1 -0
  709. package/dist/src/harness/provider-tools.d.ts +62 -0
  710. package/dist/src/harness/provider-tools.js +1 -0
  711. package/dist/src/harness/proxy-input-requests.d.ts +32 -0
  712. package/dist/src/harness/proxy-input-requests.js +1 -0
  713. package/dist/src/harness/runtime-actions.d.ts +106 -0
  714. package/dist/src/harness/runtime-actions.js +1 -0
  715. package/dist/src/harness/sandbox-surface.d.ts +68 -0
  716. package/dist/src/harness/sandbox-surface.js +1 -0
  717. package/dist/src/harness/step-hooks.d.ts +109 -0
  718. package/dist/src/harness/step-hooks.js +1 -0
  719. package/dist/src/harness/tool-interrupts.d.ts +22 -0
  720. package/dist/src/harness/tool-interrupts.js +1 -0
  721. package/dist/src/harness/tool-loop.d.ts +2 -0
  722. package/dist/src/harness/tool-loop.js +1 -0
  723. package/dist/src/harness/tool-result-pruning.d.ts +8 -0
  724. package/dist/src/harness/tool-result-pruning.js +1 -0
  725. package/dist/src/harness/tools.d.ts +69 -0
  726. package/dist/src/harness/tools.js +1 -0
  727. package/dist/src/harness/turn-tag-state.d.ts +50 -0
  728. package/dist/src/harness/turn-tag-state.js +1 -0
  729. package/dist/src/harness/types.d.ts +229 -0
  730. package/dist/src/harness/types.js +1 -0
  731. package/dist/src/harness/workflow-stream-error.d.ts +29 -0
  732. package/dist/src/harness/workflow-stream-error.js +1 -0
  733. package/dist/src/harness/workflow-tool-description.d.ts +17 -0
  734. package/dist/src/harness/workflow-tool-description.js +23 -0
  735. package/dist/src/index.d.ts +1 -0
  736. package/dist/src/index.js +1 -0
  737. package/dist/src/internal/application/cache-metadata.d.ts +9 -0
  738. package/dist/src/internal/application/cache-metadata.js +1 -0
  739. package/dist/src/internal/application/compiled-artifacts.d.ts +33 -0
  740. package/dist/src/internal/application/compiled-artifacts.js +4 -0
  741. package/dist/src/internal/application/import-specifier.d.ts +17 -0
  742. package/dist/src/internal/application/import-specifier.js +1 -0
  743. package/dist/src/internal/application/package.d.ts +34 -0
  744. package/dist/src/internal/application/package.js +1 -0
  745. package/dist/src/internal/application/paths.d.ts +47 -0
  746. package/dist/src/internal/application/paths.js +1 -0
  747. package/dist/src/internal/application/runtime-compiled-artifacts-source.d.ts +6 -0
  748. package/dist/src/internal/application/runtime-compiled-artifacts-source.js +1 -0
  749. package/dist/src/internal/attachments/data.d.ts +18 -0
  750. package/dist/src/internal/attachments/data.js +1 -0
  751. package/dist/src/internal/attachments/errors.d.ts +38 -0
  752. package/dist/src/internal/attachments/errors.js +1 -0
  753. package/dist/src/internal/attachments/refs.d.ts +55 -0
  754. package/dist/src/internal/attachments/refs.js +1 -0
  755. package/dist/src/internal/attachments/sandbox-refs.d.ts +46 -0
  756. package/dist/src/internal/attachments/sandbox-refs.js +1 -0
  757. package/dist/src/internal/attachments/url-refs.d.ts +17 -0
  758. package/dist/src/internal/attachments/url-refs.js +1 -0
  759. package/dist/src/internal/authored-asset-import-plugin.d.ts +5 -0
  760. package/dist/src/internal/authored-asset-import-plugin.js +1 -0
  761. package/dist/src/internal/authored-definition/channel.d.ts +16 -0
  762. package/dist/src/internal/authored-definition/channel.js +1 -0
  763. package/dist/src/internal/authored-definition/connection.d.ts +18 -0
  764. package/dist/src/internal/authored-definition/connection.js +1 -0
  765. package/dist/src/internal/authored-definition/core.d.ts +46 -0
  766. package/dist/src/internal/authored-definition/core.js +1 -0
  767. package/dist/src/internal/authored-definition/sandbox.d.ts +17 -0
  768. package/dist/src/internal/authored-definition/sandbox.js +1 -0
  769. package/dist/src/internal/authored-definition/schema-backed.d.ts +36 -0
  770. package/dist/src/internal/authored-definition/schema-backed.js +1 -0
  771. package/dist/src/internal/authored-module-bundle.d.ts +4 -0
  772. package/dist/src/internal/authored-module-bundle.js +2 -0
  773. package/dist/src/internal/authored-module-loader.d.ts +6 -0
  774. package/dist/src/internal/authored-module-loader.js +2 -0
  775. package/dist/src/internal/authored-module-map-loader.d.ts +10 -0
  776. package/dist/src/internal/authored-module-map-loader.js +1 -0
  777. package/dist/src/internal/authored-module.d.ts +42 -0
  778. package/dist/src/internal/authored-module.js +1 -0
  779. package/dist/src/internal/authored-package-tsconfig-paths.d.ts +9 -0
  780. package/dist/src/internal/authored-package-tsconfig-paths.js +1 -0
  781. package/dist/src/internal/bundler/nitro-rolldown.d.ts +26 -0
  782. package/dist/src/internal/bundler/nitro-rolldown.js +1 -0
  783. package/dist/src/internal/helpers/markdown.d.ts +45 -0
  784. package/dist/src/internal/helpers/markdown.js +3 -0
  785. package/dist/src/internal/instrumentation.d.ts +40 -0
  786. package/dist/src/internal/instrumentation.js +1 -0
  787. package/dist/src/internal/json-schema.d.ts +1 -0
  788. package/dist/src/internal/json-schema.js +1 -0
  789. package/dist/src/internal/logging.d.ts +100 -0
  790. package/dist/src/internal/logging.js +1 -0
  791. package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +32 -0
  792. package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -0
  793. package/dist/src/internal/nitro/host/artifacts-config.d.ts +16 -0
  794. package/dist/src/internal/nitro/host/artifacts-config.js +1 -0
  795. package/dist/src/internal/nitro/host/build-application.d.ts +4 -0
  796. package/dist/src/internal/nitro/host/build-application.js +1 -0
  797. package/dist/src/internal/nitro/host/build-vercel-agent-summary.d.ts +40 -0
  798. package/dist/src/internal/nitro/host/build-vercel-agent-summary.js +1 -0
  799. package/dist/src/internal/nitro/host/channel-routes.d.ts +38 -0
  800. package/dist/src/internal/nitro/host/channel-routes.js +3 -0
  801. package/dist/src/internal/nitro/host/code-mode-runtime-dependency-plugin.d.ts +1 -0
  802. package/dist/src/internal/nitro/host/code-mode-runtime-dependency-plugin.js +1 -0
  803. package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts +13 -0
  804. package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js +2 -0
  805. package/dist/src/internal/nitro/host/configure-nitro-routes.d.ts +9 -0
  806. package/dist/src/internal/nitro/host/configure-nitro-routes.js +4 -0
  807. package/dist/src/internal/nitro/host/create-application-nitro.d.ts +14 -0
  808. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -0
  809. package/dist/src/internal/nitro/host/cron-handler-route.d.ts +41 -0
  810. package/dist/src/internal/nitro/host/cron-handler-route.js +1 -0
  811. package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts +29 -0
  812. package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -0
  813. package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.d.ts +41 -0
  814. package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.js +1 -0
  815. package/dist/src/internal/nitro/host/nitro-bundler-config.d.ts +5 -0
  816. package/dist/src/internal/nitro/host/nitro-bundler-config.js +1 -0
  817. package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.d.ts +6 -0
  818. package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.js +1 -0
  819. package/dist/src/internal/nitro/host/prepare-application-host.d.ts +8 -0
  820. package/dist/src/internal/nitro/host/prepare-application-host.js +1 -0
  821. package/dist/src/internal/nitro/host/schedule-task-routes.d.ts +60 -0
  822. package/dist/src/internal/nitro/host/schedule-task-routes.js +2 -0
  823. package/dist/src/internal/nitro/host/server-external-packages.d.ts +5 -0
  824. package/dist/src/internal/nitro/host/server-external-packages.js +1 -0
  825. package/dist/src/internal/nitro/host/start-development-server.d.ts +20 -0
  826. package/dist/src/internal/nitro/host/start-development-server.js +1 -0
  827. package/dist/src/internal/nitro/host/start-production-server.d.ts +8 -0
  828. package/dist/src/internal/nitro/host/start-production-server.js +3 -0
  829. package/dist/src/internal/nitro/host/types.d.ts +31 -0
  830. package/dist/src/internal/nitro/host/types.js +1 -0
  831. package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +8 -0
  832. package/dist/src/internal/nitro/host/vercel-build-output-config.js +1 -0
  833. package/dist/src/internal/nitro/host/vercel-build-prewarm.d.ts +19 -0
  834. package/dist/src/internal/nitro/host/vercel-build-prewarm.js +1 -0
  835. package/dist/src/internal/nitro/host.d.ts +4 -0
  836. package/dist/src/internal/nitro/host.js +1 -0
  837. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +86 -0
  838. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +6 -0
  839. package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.d.ts +26 -0
  840. package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.js +1 -0
  841. package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +22 -0
  842. package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -0
  843. package/dist/src/internal/nitro/routes/dev-runtime-artifacts.d.ts +10 -0
  844. package/dist/src/internal/nitro/routes/dev-runtime-artifacts.js +1 -0
  845. package/dist/src/internal/nitro/routes/dev-schedule-dispatch.d.ts +15 -0
  846. package/dist/src/internal/nitro/routes/dev-schedule-dispatch.js +1 -0
  847. package/dist/src/internal/nitro/routes/health.d.ts +14 -0
  848. package/dist/src/internal/nitro/routes/health.js +1 -0
  849. package/dist/src/internal/nitro/routes/index.d.ts +12 -0
  850. package/dist/src/internal/nitro/routes/index.js +151 -0
  851. package/dist/src/internal/nitro/routes/info.d.ts +16 -0
  852. package/dist/src/internal/nitro/routes/info.js +1 -0
  853. package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +17 -0
  854. package/dist/src/internal/nitro/routes/runtime-artifacts.js +1 -0
  855. package/dist/src/internal/nitro/routes/runtime-stack.d.ts +26 -0
  856. package/dist/src/internal/nitro/routes/runtime-stack.js +1 -0
  857. package/dist/src/internal/nitro/routes/schedule-task.d.ts +12 -0
  858. package/dist/src/internal/nitro/routes/schedule-task.js +1 -0
  859. package/dist/src/internal/node-esm-compat-banner.d.ts +46 -0
  860. package/dist/src/internal/node-esm-compat-banner.js +4 -0
  861. package/dist/src/internal/package-name.d.ts +8 -0
  862. package/dist/src/internal/package-name.js +1 -0
  863. package/dist/src/internal/process/pnpm.d.ts +28 -0
  864. package/dist/src/internal/process/pnpm.js +1 -0
  865. package/dist/src/internal/runtime-model.d.ts +13 -0
  866. package/dist/src/internal/runtime-model.js +1 -0
  867. package/dist/src/internal/runtime-registry.d.ts +77 -0
  868. package/dist/src/internal/runtime-registry.js +1 -0
  869. package/dist/src/internal/vercel-agent-summary.d.ts +210 -0
  870. package/dist/src/internal/vercel-agent-summary.js +1 -0
  871. package/dist/src/internal/workflow/builtins.d.ts +41 -0
  872. package/dist/src/internal/workflow/builtins.js +1 -0
  873. package/dist/src/internal/workflow/index.d.ts +6 -0
  874. package/dist/src/internal/workflow/index.js +1 -0
  875. package/dist/src/internal/workflow-bundle/builder-support.d.ts +71 -0
  876. package/dist/src/internal/workflow-bundle/builder-support.js +9 -0
  877. package/dist/src/internal/workflow-bundle/builder.d.ts +36 -0
  878. package/dist/src/internal/workflow-bundle/builder.js +5 -0
  879. package/dist/src/internal/workflow-bundle/dynamic-tool-transform.d.ts +39 -0
  880. package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +4 -0
  881. package/dist/src/internal/workflow-bundle/eve-service-route-output.d.ts +4 -0
  882. package/dist/src/internal/workflow-bundle/eve-service-route-output.js +54 -0
  883. package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +17 -0
  884. package/dist/src/internal/workflow-bundle/nitro-step-entry.js +2 -0
  885. package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts +66 -0
  886. package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +3 -0
  887. package/dist/src/internal/workflow-bundle/workflow-builders.d.ts +44 -0
  888. package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -0
  889. package/dist/src/internal/workflow-bundle/workflow-core-shim.d.ts +82 -0
  890. package/dist/src/internal/workflow-bundle/workflow-core-shim.js +1 -0
  891. package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +25 -0
  892. package/dist/src/internal/workflow-bundle/workflow-transformer.js +5 -0
  893. package/dist/src/node_modules/.pnpm/@clack_core@1.3.1/node_modules/@clack/core/dist/index.js +10 -0
  894. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js +1 -0
  895. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +1 -0
  896. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +2 -0
  897. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +1 -0
  898. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +1 -0
  899. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +1 -0
  900. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +1 -0
  901. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +1 -0
  902. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +1 -0
  903. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +1 -0
  904. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +1 -0
  905. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +1 -0
  906. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +1 -0
  907. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +4 -0
  908. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +1 -0
  909. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +1 -0
  910. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +1 -0
  911. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +1 -0
  912. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +1 -0
  913. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +1 -0
  914. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.js +1 -0
  915. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +1 -0
  916. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +1 -0
  917. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +1 -0
  918. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +1 -0
  919. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +1 -0
  920. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +1 -0
  921. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +1 -0
  922. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +1 -0
  923. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +1 -0
  924. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +4 -0
  925. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +1 -0
  926. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -0
  927. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +1 -0
  928. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +1 -0
  929. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +1 -0
  930. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +1 -0
  931. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +1 -0
  932. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +1 -0
  933. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +1 -0
  934. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +1 -0
  935. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +1 -0
  936. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +1 -0
  937. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +1 -0
  938. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +1 -0
  939. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +1 -0
  940. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -0
  941. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -0
  942. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js +1 -0
  943. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +1 -0
  944. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +1 -0
  945. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +1 -0
  946. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +1 -0
  947. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +1 -0
  948. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +1 -0
  949. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +1 -0
  950. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +1 -0
  951. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +1 -0
  952. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -0
  953. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +1 -0
  954. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +1 -0
  955. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +1 -0
  956. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +1 -0
  957. package/dist/src/node_modules/.pnpm/autoevals@0.0.132_ws@8.21.0/node_modules/autoevals/jsdist/index.js +384 -0
  958. package/dist/src/node_modules/.pnpm/compute-cosine-similarity@1.1.0/node_modules/compute-cosine-similarity/lib/index.js +1 -0
  959. package/dist/src/node_modules/.pnpm/compute-dot@1.1.0/node_modules/compute-dot/lib/index.js +1 -0
  960. package/dist/src/node_modules/.pnpm/compute-l2norm@1.1.0/node_modules/compute-l2norm/lib/index.js +1 -0
  961. package/dist/src/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +1 -0
  962. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js +1 -0
  963. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js +1 -0
  964. package/dist/src/node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js +1 -0
  965. package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +1 -0
  966. package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +1 -0
  967. package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +1 -0
  968. package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js +5 -0
  969. package/dist/src/node_modules/.pnpm/js-levenshtein@1.1.6/node_modules/js-levenshtein/index.js +1 -0
  970. package/dist/src/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.js +32 -0
  971. package/dist/src/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +1 -0
  972. package/dist/src/node_modules/.pnpm/mustache@4.2.0/node_modules/mustache/mustache.js +4 -0
  973. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/_vendor/partial-json-parser/parser.js +2 -0
  974. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/auth/workload-identity-auth.js +1 -0
  975. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/azure.js +1 -0
  976. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/client.js +11 -0
  977. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/api-promise.js +1 -0
  978. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/error.js +1 -0
  979. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/pagination.js +1 -0
  980. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/resource.js +1 -0
  981. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/streaming.js +3 -0
  982. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/uploads.js +1 -0
  983. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/error.js +1 -0
  984. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/index.js +1 -0
  985. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/decoders/line.js +3 -0
  986. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/detect-platform.js +1 -0
  987. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/errors.js +1 -0
  988. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/headers.js +1 -0
  989. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/parse.js +1 -0
  990. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/formats.js +1 -0
  991. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/stringify.js +1 -0
  992. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/utils.js +1 -0
  993. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/request-options.js +1 -0
  994. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/shims.js +1 -0
  995. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/to-file.js +1 -0
  996. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/tslib.js +1 -0
  997. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/uploads.js +1 -0
  998. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/base64.js +1 -0
  999. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/bytes.js +1 -0
  1000. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/env.js +1 -0
  1001. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/log.js +1 -0
  1002. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/path.js +2 -0
  1003. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/query.js +1 -0
  1004. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/sleep.js +1 -0
  1005. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/uuid.js +1 -0
  1006. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/values.js +1 -0
  1007. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils.js +1 -0
  1008. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/AbstractChatCompletionRunner.js +1 -0
  1009. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/AssistantStream.js +1 -0
  1010. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionRunner.js +1 -0
  1011. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionStream.js +1 -0
  1012. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionStreamingRunner.js +1 -0
  1013. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/EventStream.js +1 -0
  1014. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ResponsesParser.js +1 -0
  1015. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/RunnableFunction.js +1 -0
  1016. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/Util.js +1 -0
  1017. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/chatCompletionUtils.js +1 -0
  1018. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/parser.js +1 -0
  1019. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/responses/ResponseStream.js +1 -0
  1020. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/admin.js +1 -0
  1021. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/admin-api-keys.js +1 -0
  1022. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/audit-logs.js +1 -0
  1023. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/certificates.js +1 -0
  1024. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/data-retention.js +1 -0
  1025. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/groups.js +1 -0
  1026. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/roles.js +1 -0
  1027. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/users.js +1 -0
  1028. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/invites.js +1 -0
  1029. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/organization.js +1 -0
  1030. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/api-keys.js +1 -0
  1031. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/certificates.js +1 -0
  1032. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/data-retention.js +1 -0
  1033. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/groups/groups.js +1 -0
  1034. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/groups/roles.js +1 -0
  1035. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +1 -0
  1036. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/model-permissions.js +1 -0
  1037. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/projects.js +1 -0
  1038. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/rate-limits.js +1 -0
  1039. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/roles.js +1 -0
  1040. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/service-accounts.js +1 -0
  1041. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +1 -0
  1042. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/users/roles.js +1 -0
  1043. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/users/users.js +1 -0
  1044. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/roles.js +1 -0
  1045. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/spend-alerts.js +1 -0
  1046. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/usage.js +1 -0
  1047. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/users/roles.js +1 -0
  1048. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/users/users.js +1 -0
  1049. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/audio.js +1 -0
  1050. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/speech.js +1 -0
  1051. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/transcriptions.js +1 -0
  1052. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/translations.js +1 -0
  1053. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/batches.js +1 -0
  1054. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/assistants.js +1 -0
  1055. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/beta.js +1 -0
  1056. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/chatkit.js +1 -0
  1057. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/sessions.js +1 -0
  1058. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/threads.js +1 -0
  1059. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/realtime.js +1 -0
  1060. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/sessions.js +1 -0
  1061. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/transcription-sessions.js +1 -0
  1062. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/messages.js +1 -0
  1063. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/runs.js +1 -0
  1064. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/steps.js +1 -0
  1065. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/threads.js +1 -0
  1066. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/chat.js +1 -0
  1067. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/completions.js +1 -0
  1068. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/index.js +1 -0
  1069. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/messages.js +1 -0
  1070. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/index.js +1 -0
  1071. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/completions.js +1 -0
  1072. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/containers.js +1 -0
  1073. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/files/content.js +1 -0
  1074. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/files/files.js +1 -0
  1075. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/conversations/conversations.js +1 -0
  1076. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/conversations/items.js +1 -0
  1077. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/embeddings.js +1 -0
  1078. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/evals.js +1 -0
  1079. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/runs/output-items.js +1 -0
  1080. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/runs/runs.js +1 -0
  1081. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/files.js +1 -0
  1082. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/alpha.js +1 -0
  1083. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/graders.js +1 -0
  1084. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +1 -0
  1085. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +1 -0
  1086. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/fine-tuning.js +1 -0
  1087. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +1 -0
  1088. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/jobs.js +1 -0
  1089. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/methods.js +1 -0
  1090. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/graders/grader-models.js +1 -0
  1091. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/graders/graders.js +1 -0
  1092. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/images.js +1 -0
  1093. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/index.js +1 -0
  1094. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/models.js +1 -0
  1095. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/moderations.js +1 -0
  1096. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/calls.js +1 -0
  1097. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/client-secrets.js +1 -0
  1098. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/realtime.js +1 -0
  1099. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/input-items.js +1 -0
  1100. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/input-tokens.js +1 -0
  1101. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/responses.js +1 -0
  1102. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/shared.js +1 -0
  1103. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/content.js +1 -0
  1104. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/skills.js +1 -0
  1105. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/versions/content.js +1 -0
  1106. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/versions/versions.js +1 -0
  1107. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/uploads/parts.js +1 -0
  1108. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/uploads/uploads.js +1 -0
  1109. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/file-batches.js +1 -0
  1110. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/files.js +1 -0
  1111. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/vector-stores.js +1 -0
  1112. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/videos.js +1 -0
  1113. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks/index.js +1 -0
  1114. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks/webhooks.js +1 -0
  1115. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks.js +1 -0
  1116. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/streaming.js +1 -0
  1117. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/version.js +1 -0
  1118. package/dist/src/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +1 -0
  1119. package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js +1 -0
  1120. package/dist/src/node_modules/.pnpm/validate.io-array@1.0.6/node_modules/validate.io-array/lib/index.js +1 -0
  1121. package/dist/src/node_modules/.pnpm/validate.io-function@1.0.2/node_modules/validate.io-function/lib/index.js +1 -0
  1122. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -0
  1123. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js +1 -0
  1124. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +1 -0
  1125. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +1 -0
  1126. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js +1 -0
  1127. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js +1 -0
  1128. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  1129. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +1 -0
  1130. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +1 -0
  1131. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +1 -0
  1132. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +1 -0
  1133. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +1 -0
  1134. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +1 -0
  1135. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +1 -0
  1136. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +1 -0
  1137. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +1 -0
  1138. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +1 -0
  1139. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +1 -0
  1140. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +1 -0
  1141. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +1 -0
  1142. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +1 -0
  1143. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +1 -0
  1144. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +1 -0
  1145. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +1 -0
  1146. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +1 -0
  1147. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +1 -0
  1148. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +1 -0
  1149. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +1 -0
  1150. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +1 -0
  1151. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +1 -0
  1152. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +1 -0
  1153. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +1 -0
  1154. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +3 -0
  1155. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +1 -0
  1156. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +1 -0
  1157. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +1 -0
  1158. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +1 -0
  1159. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js +1 -0
  1160. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +1 -0
  1161. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js +1 -0
  1162. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +1 -0
  1163. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +1 -0
  1164. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js +1 -0
  1165. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +1 -0
  1166. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +1 -0
  1167. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1168. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +1 -0
  1169. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.js +1 -0
  1170. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +1 -0
  1171. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +1 -0
  1172. package/dist/src/packages/eve-catalog/src/index.js +1 -0
  1173. package/dist/src/packages/eve-scaffold/src/channels-catalog.js +1 -0
  1174. package/dist/src/packages/eve-scaffold/src/channels.js +7 -0
  1175. package/dist/src/packages/eve-scaffold/src/cli/channel-add-prompter.js +1 -0
  1176. package/dist/src/packages/eve-scaffold/src/cli/channel-setup-prompter.js +1 -0
  1177. package/dist/src/packages/eve-scaffold/src/cli/command-output.js +1 -0
  1178. package/dist/src/packages/eve-scaffold/src/cli/connection-add-prompter.js +1 -0
  1179. package/dist/src/packages/eve-scaffold/src/cli/index.js +1 -0
  1180. package/dist/src/packages/eve-scaffold/src/cli/prompt-ui.js +5 -0
  1181. package/dist/src/packages/eve-scaffold/src/cli/rail-log.js +2 -0
  1182. package/dist/src/packages/eve-scaffold/src/cli/select-component.js +1 -0
  1183. package/dist/src/packages/eve-scaffold/src/cli/select-state.js +1 -0
  1184. package/dist/src/packages/eve-scaffold/src/connections/catalog.js +1 -0
  1185. package/dist/src/packages/eve-scaffold/src/connections.js +21 -0
  1186. package/dist/src/packages/eve-scaffold/src/files.js +1 -0
  1187. package/dist/src/packages/eve-scaffold/src/human-action.js +1 -0
  1188. package/dist/src/packages/eve-scaffold/src/index.js +1 -0
  1189. package/dist/src/packages/eve-scaffold/src/module-files.js +1 -0
  1190. package/dist/src/packages/eve-scaffold/src/package-json.js +1 -0
  1191. package/dist/src/packages/eve-scaffold/src/pnpm-workspace.js +11 -0
  1192. package/dist/src/packages/eve-scaffold/src/primitives/detect-deployment.js +1 -0
  1193. package/dist/src/packages/eve-scaffold/src/primitives/index.js +1 -0
  1194. package/dist/src/packages/eve-scaffold/src/primitives/pnpm-invocation.js +1 -0
  1195. package/dist/src/packages/eve-scaffold/src/primitives/process-output.js +1 -0
  1196. package/dist/src/packages/eve-scaffold/src/primitives/run-pnpm.js +1 -0
  1197. package/dist/src/packages/eve-scaffold/src/primitives/run-vercel.js +1 -0
  1198. package/dist/src/packages/eve-scaffold/src/primitives/update-connection-connector.js +1 -0
  1199. package/dist/src/packages/eve-scaffold/src/primitives/update-slack-channel.js +1 -0
  1200. package/dist/src/packages/eve-scaffold/src/project.js +1 -0
  1201. package/dist/src/packages/eve-scaffold/src/steps/deploy-to-vercel.js +1 -0
  1202. package/dist/src/packages/eve-scaffold/src/steps/index.js +1 -0
  1203. package/dist/src/packages/eve-scaffold/src/steps/project-resolution.js +1 -0
  1204. package/dist/src/packages/eve-scaffold/src/steps/run-add-connection.js +1 -0
  1205. package/dist/src/packages/eve-scaffold/src/steps/run-add-to-agent.js +2 -0
  1206. package/dist/src/packages/eve-scaffold/src/steps/setup-connection.js +1 -0
  1207. package/dist/src/packages/eve-scaffold/src/steps/setup-slackbot.js +1 -0
  1208. package/dist/src/packages/eve-scaffold/src/web-template.js +4691 -0
  1209. package/dist/src/protocol/message.d.ts +732 -0
  1210. package/dist/src/protocol/message.js +2 -0
  1211. package/dist/src/protocol/routes.d.ts +108 -0
  1212. package/dist/src/protocol/routes.js +1 -0
  1213. package/dist/src/public/agents/auth.d.ts +46 -0
  1214. package/dist/src/public/agents/auth.js +1 -0
  1215. package/dist/src/public/channels/auth.d.ts +416 -0
  1216. package/dist/src/public/channels/auth.js +1 -0
  1217. package/dist/src/public/channels/discord/api.d.ts +106 -0
  1218. package/dist/src/public/channels/discord/api.js +2 -0
  1219. package/dist/src/public/channels/discord/defaults.d.ts +15 -0
  1220. package/dist/src/public/channels/discord/defaults.js +3 -0
  1221. package/dist/src/public/channels/discord/discordChannel.d.ts +134 -0
  1222. package/dist/src/public/channels/discord/discordChannel.js +1 -0
  1223. package/dist/src/public/channels/discord/hitl.d.ts +47 -0
  1224. package/dist/src/public/channels/discord/hitl.js +1 -0
  1225. package/dist/src/public/channels/discord/inbound.d.ts +106 -0
  1226. package/dist/src/public/channels/discord/inbound.js +2 -0
  1227. package/dist/src/public/channels/discord/index.d.ts +23 -0
  1228. package/dist/src/public/channels/discord/index.js +1 -0
  1229. package/dist/src/public/channels/discord/responses.d.ts +11 -0
  1230. package/dist/src/public/channels/discord/responses.js +1 -0
  1231. package/dist/src/public/channels/discord/verify.d.ts +46 -0
  1232. package/dist/src/public/channels/discord/verify.js +1 -0
  1233. package/dist/src/public/channels/discord/verifyInbound.d.ts +6 -0
  1234. package/dist/src/public/channels/discord/verifyInbound.js +1 -0
  1235. package/dist/src/public/channels/eve.d.ts +81 -0
  1236. package/dist/src/public/channels/eve.js +2 -0
  1237. package/dist/src/public/channels/github/api.d.ts +177 -0
  1238. package/dist/src/public/channels/github/api.js +1 -0
  1239. package/dist/src/public/channels/github/auth.d.ts +82 -0
  1240. package/dist/src/public/channels/github/auth.js +2 -0
  1241. package/dist/src/public/channels/github/binding.d.ts +59 -0
  1242. package/dist/src/public/channels/github/binding.js +1 -0
  1243. package/dist/src/public/channels/github/checkout.d.ts +48 -0
  1244. package/dist/src/public/channels/github/checkout.js +1 -0
  1245. package/dist/src/public/channels/github/constants.d.ts +2 -0
  1246. package/dist/src/public/channels/github/constants.js +1 -0
  1247. package/dist/src/public/channels/github/defaults.d.ts +26 -0
  1248. package/dist/src/public/channels/github/defaults.js +3 -0
  1249. package/dist/src/public/channels/github/dispatch.d.ts +34 -0
  1250. package/dist/src/public/channels/github/dispatch.js +1 -0
  1251. package/dist/src/public/channels/github/githubChannel.d.ts +126 -0
  1252. package/dist/src/public/channels/github/githubChannel.js +1 -0
  1253. package/dist/src/public/channels/github/inbound.d.ts +183 -0
  1254. package/dist/src/public/channels/github/inbound.js +2 -0
  1255. package/dist/src/public/channels/github/index.d.ts +9 -0
  1256. package/dist/src/public/channels/github/index.js +1 -0
  1257. package/dist/src/public/channels/github/limits.d.ts +4 -0
  1258. package/dist/src/public/channels/github/limits.js +2 -0
  1259. package/dist/src/public/channels/github/pr-context.d.ts +46 -0
  1260. package/dist/src/public/channels/github/pr-context.js +5 -0
  1261. package/dist/src/public/channels/github/state.d.ts +60 -0
  1262. package/dist/src/public/channels/github/state.js +1 -0
  1263. package/dist/src/public/channels/github/verify.d.ts +35 -0
  1264. package/dist/src/public/channels/github/verify.js +1 -0
  1265. package/dist/src/public/channels/index.d.ts +89 -0
  1266. package/dist/src/public/channels/index.js +1 -0
  1267. package/dist/src/public/channels/linear/api.d.ts +122 -0
  1268. package/dist/src/public/channels/linear/api.js +69 -0
  1269. package/dist/src/public/channels/linear/auth.d.ts +22 -0
  1270. package/dist/src/public/channels/linear/auth.js +1 -0
  1271. package/dist/src/public/channels/linear/constants.d.ts +2 -0
  1272. package/dist/src/public/channels/linear/constants.js +1 -0
  1273. package/dist/src/public/channels/linear/defaults.d.ts +16 -0
  1274. package/dist/src/public/channels/linear/defaults.js +3 -0
  1275. package/dist/src/public/channels/linear/hitl.d.ts +14 -0
  1276. package/dist/src/public/channels/linear/hitl.js +4 -0
  1277. package/dist/src/public/channels/linear/inbound.d.ts +88 -0
  1278. package/dist/src/public/channels/linear/inbound.js +2 -0
  1279. package/dist/src/public/channels/linear/index.d.ts +8 -0
  1280. package/dist/src/public/channels/linear/index.js +1 -0
  1281. package/dist/src/public/channels/linear/linearChannel.d.ts +138 -0
  1282. package/dist/src/public/channels/linear/linearChannel.js +1 -0
  1283. package/dist/src/public/channels/linear/verify.d.ts +22 -0
  1284. package/dist/src/public/channels/linear/verify.js +1 -0
  1285. package/dist/src/public/channels/slack/api-encoding.d.ts +5 -0
  1286. package/dist/src/public/channels/slack/api-encoding.js +1 -0
  1287. package/dist/src/public/channels/slack/api.d.ts +258 -0
  1288. package/dist/src/public/channels/slack/api.js +1 -0
  1289. package/dist/src/public/channels/slack/attachments.d.ts +51 -0
  1290. package/dist/src/public/channels/slack/attachments.js +1 -0
  1291. package/dist/src/public/channels/slack/auth.d.ts +16 -0
  1292. package/dist/src/public/channels/slack/auth.js +1 -0
  1293. package/dist/src/public/channels/slack/blocks.d.ts +45 -0
  1294. package/dist/src/public/channels/slack/blocks.js +3 -0
  1295. package/dist/src/public/channels/slack/connections.d.ts +53 -0
  1296. package/dist/src/public/channels/slack/connections.js +1 -0
  1297. package/dist/src/public/channels/slack/constants.d.ts +7 -0
  1298. package/dist/src/public/channels/slack/constants.js +1 -0
  1299. package/dist/src/public/channels/slack/defaults.d.ts +36 -0
  1300. package/dist/src/public/channels/slack/defaults.js +4 -0
  1301. package/dist/src/public/channels/slack/hitl.d.ts +141 -0
  1302. package/dist/src/public/channels/slack/hitl.js +1 -0
  1303. package/dist/src/public/channels/slack/inbound.d.ts +122 -0
  1304. package/dist/src/public/channels/slack/inbound.js +2 -0
  1305. package/dist/src/public/channels/slack/index.d.ts +22 -0
  1306. package/dist/src/public/channels/slack/index.js +1 -0
  1307. package/dist/src/public/channels/slack/interactions.d.ts +64 -0
  1308. package/dist/src/public/channels/slack/interactions.js +1 -0
  1309. package/dist/src/public/channels/slack/limits.d.ts +62 -0
  1310. package/dist/src/public/channels/slack/limits.js +1 -0
  1311. package/dist/src/public/channels/slack/mrkdwn.d.ts +38 -0
  1312. package/dist/src/public/channels/slack/mrkdwn.js +1 -0
  1313. package/dist/src/public/channels/slack/slackChannel.d.ts +303 -0
  1314. package/dist/src/public/channels/slack/slackChannel.js +1 -0
  1315. package/dist/src/public/channels/slack/thread.d.ts +33 -0
  1316. package/dist/src/public/channels/slack/thread.js +1 -0
  1317. package/dist/src/public/channels/slack/utils.d.ts +1 -0
  1318. package/dist/src/public/channels/slack/utils.js +1 -0
  1319. package/dist/src/public/channels/slack/verify.d.ts +48 -0
  1320. package/dist/src/public/channels/slack/verify.js +1 -0
  1321. package/dist/src/public/channels/teams/api.d.ts +155 -0
  1322. package/dist/src/public/channels/teams/api.js +4 -0
  1323. package/dist/src/public/channels/teams/attachments.d.ts +35 -0
  1324. package/dist/src/public/channels/teams/attachments.js +1 -0
  1325. package/dist/src/public/channels/teams/defaults.d.ts +24 -0
  1326. package/dist/src/public/channels/teams/defaults.js +3 -0
  1327. package/dist/src/public/channels/teams/hitl.d.ts +49 -0
  1328. package/dist/src/public/channels/teams/hitl.js +1 -0
  1329. package/dist/src/public/channels/teams/inbound.d.ts +85 -0
  1330. package/dist/src/public/channels/teams/inbound.js +3 -0
  1331. package/dist/src/public/channels/teams/index.d.ts +19 -0
  1332. package/dist/src/public/channels/teams/index.js +1 -0
  1333. package/dist/src/public/channels/teams/limits.d.ts +8 -0
  1334. package/dist/src/public/channels/teams/limits.js +1 -0
  1335. package/dist/src/public/channels/teams/teamsChannel.d.ts +164 -0
  1336. package/dist/src/public/channels/teams/teamsChannel.js +1 -0
  1337. package/dist/src/public/channels/teams/verify.d.ts +50 -0
  1338. package/dist/src/public/channels/teams/verify.js +1 -0
  1339. package/dist/src/public/channels/telegram/api.d.ts +120 -0
  1340. package/dist/src/public/channels/telegram/api.js +2 -0
  1341. package/dist/src/public/channels/telegram/attachments.d.ts +31 -0
  1342. package/dist/src/public/channels/telegram/attachments.js +1 -0
  1343. package/dist/src/public/channels/telegram/defaults.d.ts +9 -0
  1344. package/dist/src/public/channels/telegram/defaults.js +3 -0
  1345. package/dist/src/public/channels/telegram/hitl.d.ts +59 -0
  1346. package/dist/src/public/channels/telegram/hitl.js +1 -0
  1347. package/dist/src/public/channels/telegram/inbound.d.ts +102 -0
  1348. package/dist/src/public/channels/telegram/inbound.js +2 -0
  1349. package/dist/src/public/channels/telegram/index.d.ts +19 -0
  1350. package/dist/src/public/channels/telegram/index.js +1 -0
  1351. package/dist/src/public/channels/telegram/telegramChannel.d.ts +127 -0
  1352. package/dist/src/public/channels/telegram/telegramChannel.js +1 -0
  1353. package/dist/src/public/channels/telegram/verify.d.ts +35 -0
  1354. package/dist/src/public/channels/telegram/verify.js +1 -0
  1355. package/dist/src/public/channels/twilio/api.d.ts +74 -0
  1356. package/dist/src/public/channels/twilio/api.js +1 -0
  1357. package/dist/src/public/channels/twilio/defaults.d.ts +17 -0
  1358. package/dist/src/public/channels/twilio/defaults.js +3 -0
  1359. package/dist/src/public/channels/twilio/inbound.d.ts +60 -0
  1360. package/dist/src/public/channels/twilio/inbound.js +2 -0
  1361. package/dist/src/public/channels/twilio/index.d.ts +5 -0
  1362. package/dist/src/public/channels/twilio/index.js +1 -0
  1363. package/dist/src/public/channels/twilio/twilioChannel.d.ts +195 -0
  1364. package/dist/src/public/channels/twilio/twilioChannel.js +1 -0
  1365. package/dist/src/public/channels/twilio/twiml.d.ts +37 -0
  1366. package/dist/src/public/channels/twilio/twiml.js +1 -0
  1367. package/dist/src/public/channels/twilio/verify.d.ts +50 -0
  1368. package/dist/src/public/channels/twilio/verify.js +1 -0
  1369. package/dist/src/public/channels/upload-policy.d.ts +101 -0
  1370. package/dist/src/public/channels/upload-policy.js +1 -0
  1371. package/dist/src/public/connections/errors.d.ts +117 -0
  1372. package/dist/src/public/connections/errors.js +1 -0
  1373. package/dist/src/public/connections/index.d.ts +9 -0
  1374. package/dist/src/public/connections/index.js +1 -0
  1375. package/dist/src/public/context/index.d.ts +14 -0
  1376. package/dist/src/public/context/index.js +1 -0
  1377. package/dist/src/public/definitions/agent.d.ts +24 -0
  1378. package/dist/src/public/definitions/agent.js +1 -0
  1379. package/dist/src/public/definitions/callback-context.d.ts +33 -0
  1380. package/dist/src/public/definitions/callback-context.js +1 -0
  1381. package/dist/src/public/definitions/channel.d.ts +126 -0
  1382. package/dist/src/public/definitions/channel.js +1 -0
  1383. package/dist/src/public/definitions/connections/mcp.d.ts +82 -0
  1384. package/dist/src/public/definitions/connections/mcp.js +1 -0
  1385. package/dist/src/public/definitions/connections/openapi.d.ts +99 -0
  1386. package/dist/src/public/definitions/connections/openapi.js +1 -0
  1387. package/dist/src/public/definitions/connections/protocol.d.ts +12 -0
  1388. package/dist/src/public/definitions/connections/protocol.js +1 -0
  1389. package/dist/src/public/definitions/defineChannel.d.ts +145 -0
  1390. package/dist/src/public/definitions/defineChannel.js +1 -0
  1391. package/dist/src/public/definitions/exact.d.ts +7 -0
  1392. package/dist/src/public/definitions/exact.js +1 -0
  1393. package/dist/src/public/definitions/hook.d.ts +60 -0
  1394. package/dist/src/public/definitions/hook.js +1 -0
  1395. package/dist/src/public/definitions/instructions.d.ts +31 -0
  1396. package/dist/src/public/definitions/instructions.js +1 -0
  1397. package/dist/src/public/definitions/instrumentation.d.ts +1 -0
  1398. package/dist/src/public/definitions/instrumentation.js +1 -0
  1399. package/dist/src/public/definitions/remote-agent.d.ts +49 -0
  1400. package/dist/src/public/definitions/remote-agent.js +1 -0
  1401. package/dist/src/public/definitions/sandbox-backend.d.ts +17 -0
  1402. package/dist/src/public/definitions/sandbox-backend.js +1 -0
  1403. package/dist/src/public/definitions/sandbox.d.ts +24 -0
  1404. package/dist/src/public/definitions/sandbox.js +1 -0
  1405. package/dist/src/public/definitions/schedule.d.ts +96 -0
  1406. package/dist/src/public/definitions/schedule.js +1 -0
  1407. package/dist/src/public/definitions/skill.d.ts +21 -0
  1408. package/dist/src/public/definitions/skill.js +1 -0
  1409. package/dist/src/public/definitions/source.d.ts +8 -0
  1410. package/dist/src/public/definitions/source.js +1 -0
  1411. package/dist/src/public/definitions/state.d.ts +37 -0
  1412. package/dist/src/public/definitions/state.js +1 -0
  1413. package/dist/src/public/definitions/tool.d.ts +285 -0
  1414. package/dist/src/public/definitions/tool.js +1 -0
  1415. package/dist/src/public/hooks/index.d.ts +8 -0
  1416. package/dist/src/public/hooks/index.js +1 -0
  1417. package/dist/src/public/index.d.ts +5 -0
  1418. package/dist/src/public/index.js +1 -0
  1419. package/dist/src/public/instructions/index.d.ts +7 -0
  1420. package/dist/src/public/instructions/index.js +1 -0
  1421. package/dist/src/public/instrumentation/index.d.ts +144 -0
  1422. package/dist/src/public/instrumentation/index.js +1 -0
  1423. package/dist/src/public/next/index.d.ts +86 -0
  1424. package/dist/src/public/next/index.js +1 -0
  1425. package/dist/src/public/next/server.d.ts +6 -0
  1426. package/dist/src/public/next/server.js +1 -0
  1427. package/dist/src/public/next/vercel-output-config.d.ts +9 -0
  1428. package/dist/src/public/next/vercel-output-config.js +1 -0
  1429. package/dist/src/public/nuxt/dev-server.d.ts +24 -0
  1430. package/dist/src/public/nuxt/dev-server.js +1 -0
  1431. package/dist/src/public/nuxt/index.d.ts +1 -0
  1432. package/dist/src/public/nuxt/index.js +1 -0
  1433. package/dist/src/public/nuxt/module.d.ts +43 -0
  1434. package/dist/src/public/nuxt/module.js +1 -0
  1435. package/dist/src/public/nuxt/routing.d.ts +55 -0
  1436. package/dist/src/public/nuxt/routing.js +1 -0
  1437. package/dist/src/public/nuxt/vercel-json.d.ts +17 -0
  1438. package/dist/src/public/nuxt/vercel-json.js +1 -0
  1439. package/dist/src/public/sandbox/backends/default.d.ts +22 -0
  1440. package/dist/src/public/sandbox/backends/default.js +1 -0
  1441. package/dist/src/public/sandbox/backends/local.d.ts +17 -0
  1442. package/dist/src/public/sandbox/backends/local.js +1 -0
  1443. package/dist/src/public/sandbox/backends/vercel.d.ts +24 -0
  1444. package/dist/src/public/sandbox/backends/vercel.js +1 -0
  1445. package/dist/src/public/sandbox/index.d.ts +13 -0
  1446. package/dist/src/public/sandbox/index.js +1 -0
  1447. package/dist/src/public/sandbox/local-sandbox.d.ts +7 -0
  1448. package/dist/src/public/sandbox/local-sandbox.js +1 -0
  1449. package/dist/src/public/sandbox/vercel-sandbox.d.ts +42 -0
  1450. package/dist/src/public/sandbox/vercel-sandbox.js +1 -0
  1451. package/dist/src/public/schedules/index.d.ts +4 -0
  1452. package/dist/src/public/schedules/index.js +1 -0
  1453. package/dist/src/public/skills/index.d.ts +7 -0
  1454. package/dist/src/public/skills/index.js +1 -0
  1455. package/dist/src/public/sveltekit/dev-server.d.ts +24 -0
  1456. package/dist/src/public/sveltekit/dev-server.js +1 -0
  1457. package/dist/src/public/sveltekit/index.d.ts +44 -0
  1458. package/dist/src/public/sveltekit/index.js +1 -0
  1459. package/dist/src/public/sveltekit/routing.d.ts +32 -0
  1460. package/dist/src/public/sveltekit/routing.js +1 -0
  1461. package/dist/src/public/sveltekit/vercel-json.d.ts +17 -0
  1462. package/dist/src/public/sveltekit/vercel-json.js +1 -0
  1463. package/dist/src/public/tool-result-narrowing.d.ts +74 -0
  1464. package/dist/src/public/tool-result-narrowing.js +1 -0
  1465. package/dist/src/public/tools/approval/approval-helpers.d.ts +19 -0
  1466. package/dist/src/public/tools/approval/approval-helpers.js +1 -0
  1467. package/dist/src/public/tools/approval/index.d.ts +5 -0
  1468. package/dist/src/public/tools/approval/index.js +1 -0
  1469. package/dist/src/public/tools/defaults.d.ts +60 -0
  1470. package/dist/src/public/tools/defaults.js +1 -0
  1471. package/dist/src/public/tools/define-bash-tool.d.ts +21 -0
  1472. package/dist/src/public/tools/define-bash-tool.js +1 -0
  1473. package/dist/src/public/tools/define-glob-tool.d.ts +22 -0
  1474. package/dist/src/public/tools/define-glob-tool.js +1 -0
  1475. package/dist/src/public/tools/define-grep-tool.d.ts +22 -0
  1476. package/dist/src/public/tools/define-grep-tool.js +1 -0
  1477. package/dist/src/public/tools/define-read-file-tool.d.ts +27 -0
  1478. package/dist/src/public/tools/define-read-file-tool.js +1 -0
  1479. package/dist/src/public/tools/define-write-file-tool.d.ts +22 -0
  1480. package/dist/src/public/tools/define-write-file-tool.js +1 -0
  1481. package/dist/src/public/tools/index.d.ts +12 -0
  1482. package/dist/src/public/tools/index.js +1 -0
  1483. package/dist/src/public/tools/internal.d.ts +12 -0
  1484. package/dist/src/public/tools/internal.js +1 -0
  1485. package/dist/src/public/types/json.d.ts +28 -0
  1486. package/dist/src/public/types/json.js +1 -0
  1487. package/dist/src/react/index.d.ts +3 -0
  1488. package/dist/src/react/index.js +1 -0
  1489. package/dist/src/react/use-eve-agent.d.ts +76 -0
  1490. package/dist/src/react/use-eve-agent.js +1 -0
  1491. package/dist/src/runtime/actions/keys.d.ts +11 -0
  1492. package/dist/src/runtime/actions/keys.js +1 -0
  1493. package/dist/src/runtime/actions/types.d.ts +150 -0
  1494. package/dist/src/runtime/actions/types.js +1 -0
  1495. package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +37 -0
  1496. package/dist/src/runtime/agent/bootstrap-model-utils.js +1 -0
  1497. package/dist/src/runtime/agent/bootstrap-model.d.ts +7 -0
  1498. package/dist/src/runtime/agent/bootstrap-model.js +1 -0
  1499. package/dist/src/runtime/agent/bootstrap.d.ts +44 -0
  1500. package/dist/src/runtime/agent/bootstrap.js +1 -0
  1501. package/dist/src/runtime/agent/mock-model-adapter.d.ts +21 -0
  1502. package/dist/src/runtime/agent/mock-model-adapter.js +5 -0
  1503. package/dist/src/runtime/agent/mock-model-skill-selection.d.ts +9 -0
  1504. package/dist/src/runtime/agent/mock-model-skill-selection.js +4 -0
  1505. package/dist/src/runtime/agent/mock-structured-output.d.ts +5 -0
  1506. package/dist/src/runtime/agent/mock-structured-output.js +1 -0
  1507. package/dist/src/runtime/agent/resolve-model.d.ts +11 -0
  1508. package/dist/src/runtime/agent/resolve-model.js +1 -0
  1509. package/dist/src/runtime/attributes/emit.d.ts +73 -0
  1510. package/dist/src/runtime/attributes/emit.js +1 -0
  1511. package/dist/src/runtime/cache-key.d.ts +9 -0
  1512. package/dist/src/runtime/cache-key.js +1 -0
  1513. package/dist/src/runtime/channels/registry.d.ts +27 -0
  1514. package/dist/src/runtime/channels/registry.js +1 -0
  1515. package/dist/src/runtime/compiled-artifacts-source.d.ts +44 -0
  1516. package/dist/src/runtime/compiled-artifacts-source.js +1 -0
  1517. package/dist/src/runtime/connections/authorization-complete-page.d.ts +11 -0
  1518. package/dist/src/runtime/connections/authorization-complete-page.js +53 -0
  1519. package/dist/src/runtime/connections/authorization-tokens.d.ts +51 -0
  1520. package/dist/src/runtime/connections/authorization-tokens.js +1 -0
  1521. package/dist/src/runtime/connections/callback-route.d.ts +55 -0
  1522. package/dist/src/runtime/connections/callback-route.js +1 -0
  1523. package/dist/src/runtime/connections/mcp-client.d.ts +74 -0
  1524. package/dist/src/runtime/connections/mcp-client.js +1 -0
  1525. package/dist/src/runtime/connections/openapi-client.d.ts +43 -0
  1526. package/dist/src/runtime/connections/openapi-client.js +1 -0
  1527. package/dist/src/runtime/connections/openapi-operations.d.ts +30 -0
  1528. package/dist/src/runtime/connections/openapi-operations.js +1 -0
  1529. package/dist/src/runtime/connections/openapi-schema.d.ts +39 -0
  1530. package/dist/src/runtime/connections/openapi-schema.js +1 -0
  1531. package/dist/src/runtime/connections/openapi-security.d.ts +41 -0
  1532. package/dist/src/runtime/connections/openapi-security.js +1 -0
  1533. package/dist/src/runtime/connections/openapi-spec.d.ts +20 -0
  1534. package/dist/src/runtime/connections/openapi-spec.js +1 -0
  1535. package/dist/src/runtime/connections/principal.d.ts +66 -0
  1536. package/dist/src/runtime/connections/principal.js +1 -0
  1537. package/dist/src/runtime/connections/registry.d.ts +36 -0
  1538. package/dist/src/runtime/connections/registry.js +1 -0
  1539. package/dist/src/runtime/connections/scoped-authorization.d.ts +61 -0
  1540. package/dist/src/runtime/connections/scoped-authorization.js +1 -0
  1541. package/dist/src/runtime/connections/types.d.ts +349 -0
  1542. package/dist/src/runtime/connections/types.js +1 -0
  1543. package/dist/src/runtime/connections/validate-authorization.d.ts +21 -0
  1544. package/dist/src/runtime/connections/validate-authorization.js +1 -0
  1545. package/dist/src/runtime/framework-channels/index.d.ts +11 -0
  1546. package/dist/src/runtime/framework-channels/index.js +1 -0
  1547. package/dist/src/runtime/framework-tools/ask-question.d.ts +21 -0
  1548. package/dist/src/runtime/framework-tools/ask-question.js +1 -0
  1549. package/dist/src/runtime/framework-tools/bash.d.ts +17 -0
  1550. package/dist/src/runtime/framework-tools/bash.js +1 -0
  1551. package/dist/src/runtime/framework-tools/code-mode-connection-auth.d.ts +29 -0
  1552. package/dist/src/runtime/framework-tools/code-mode-connection-auth.js +1 -0
  1553. package/dist/src/runtime/framework-tools/connection-search-dynamic.d.ts +35 -0
  1554. package/dist/src/runtime/framework-tools/connection-search-dynamic.js +1 -0
  1555. package/dist/src/runtime/framework-tools/file-state.d.ts +62 -0
  1556. package/dist/src/runtime/framework-tools/file-state.js +1 -0
  1557. package/dist/src/runtime/framework-tools/final-output.d.ts +14 -0
  1558. package/dist/src/runtime/framework-tools/final-output.js +1 -0
  1559. package/dist/src/runtime/framework-tools/glob.d.ts +17 -0
  1560. package/dist/src/runtime/framework-tools/glob.js +2 -0
  1561. package/dist/src/runtime/framework-tools/grep.d.ts +17 -0
  1562. package/dist/src/runtime/framework-tools/grep.js +2 -0
  1563. package/dist/src/runtime/framework-tools/index.d.ts +26 -0
  1564. package/dist/src/runtime/framework-tools/index.js +1 -0
  1565. package/dist/src/runtime/framework-tools/read-file.d.ts +17 -0
  1566. package/dist/src/runtime/framework-tools/read-file.js +2 -0
  1567. package/dist/src/runtime/framework-tools/skill.d.ts +4 -0
  1568. package/dist/src/runtime/framework-tools/skill.js +1 -0
  1569. package/dist/src/runtime/framework-tools/todo.d.ts +39 -0
  1570. package/dist/src/runtime/framework-tools/todo.js +3 -0
  1571. package/dist/src/runtime/framework-tools/web-fetch.d.ts +5 -0
  1572. package/dist/src/runtime/framework-tools/web-fetch.js +2 -0
  1573. package/dist/src/runtime/framework-tools/web-search.d.ts +26 -0
  1574. package/dist/src/runtime/framework-tools/web-search.js +1 -0
  1575. package/dist/src/runtime/framework-tools/write-file.d.ts +17 -0
  1576. package/dist/src/runtime/framework-tools/write-file.js +2 -0
  1577. package/dist/src/runtime/governance/auth/http-basic.d.ts +8 -0
  1578. package/dist/src/runtime/governance/auth/http-basic.js +1 -0
  1579. package/dist/src/runtime/governance/auth/jwt-ecdsa.d.ts +8 -0
  1580. package/dist/src/runtime/governance/auth/jwt-ecdsa.js +1 -0
  1581. package/dist/src/runtime/governance/auth/jwt-hmac.d.ts +8 -0
  1582. package/dist/src/runtime/governance/auth/jwt-hmac.js +1 -0
  1583. package/dist/src/runtime/governance/auth/oidc.d.ts +8 -0
  1584. package/dist/src/runtime/governance/auth/oidc.js +1 -0
  1585. package/dist/src/runtime/governance/auth/token-claims.d.ts +17 -0
  1586. package/dist/src/runtime/governance/auth/token-claims.js +1 -0
  1587. package/dist/src/runtime/governance/auth/types.d.ts +104 -0
  1588. package/dist/src/runtime/governance/auth/types.js +1 -0
  1589. package/dist/src/runtime/governance/network/ip-allow-list.d.ts +17 -0
  1590. package/dist/src/runtime/governance/network/ip-allow-list.js +1 -0
  1591. package/dist/src/runtime/graph.d.ts +46 -0
  1592. package/dist/src/runtime/graph.js +1 -0
  1593. package/dist/src/runtime/hooks/registry.d.ts +40 -0
  1594. package/dist/src/runtime/hooks/registry.js +1 -0
  1595. package/dist/src/runtime/input/types.d.ts +78 -0
  1596. package/dist/src/runtime/input/types.js +1 -0
  1597. package/dist/src/runtime/loaders/artifact-paths.d.ts +18 -0
  1598. package/dist/src/runtime/loaders/artifact-paths.js +1 -0
  1599. package/dist/src/runtime/loaders/bundled-artifacts.d.ts +36 -0
  1600. package/dist/src/runtime/loaders/bundled-artifacts.js +1 -0
  1601. package/dist/src/runtime/loaders/compile-metadata.d.ts +14 -0
  1602. package/dist/src/runtime/loaders/compile-metadata.js +1 -0
  1603. package/dist/src/runtime/loaders/manifest.d.ts +21 -0
  1604. package/dist/src/runtime/loaders/manifest.js +1 -0
  1605. package/dist/src/runtime/loaders/module-map.d.ts +21 -0
  1606. package/dist/src/runtime/loaders/module-map.js +1 -0
  1607. package/dist/src/runtime/prompt/compose.d.ts +19 -0
  1608. package/dist/src/runtime/prompt/compose.js +2 -0
  1609. package/dist/src/runtime/prompt/connections.d.ts +9 -0
  1610. package/dist/src/runtime/prompt/connections.js +2 -0
  1611. package/dist/src/runtime/resolve-agent-graph.d.ts +17 -0
  1612. package/dist/src/runtime/resolve-agent-graph.js +1 -0
  1613. package/dist/src/runtime/resolve-agent.d.ts +16 -0
  1614. package/dist/src/runtime/resolve-agent.js +1 -0
  1615. package/dist/src/runtime/resolve-channel.d.ts +17 -0
  1616. package/dist/src/runtime/resolve-channel.js +1 -0
  1617. package/dist/src/runtime/resolve-connection.d.ts +15 -0
  1618. package/dist/src/runtime/resolve-connection.js +1 -0
  1619. package/dist/src/runtime/resolve-dynamic-instructions.d.ts +4 -0
  1620. package/dist/src/runtime/resolve-dynamic-instructions.js +1 -0
  1621. package/dist/src/runtime/resolve-dynamic-skill.d.ts +8 -0
  1622. package/dist/src/runtime/resolve-dynamic-skill.js +1 -0
  1623. package/dist/src/runtime/resolve-dynamic-tool.d.ts +12 -0
  1624. package/dist/src/runtime/resolve-dynamic-tool.js +1 -0
  1625. package/dist/src/runtime/resolve-helpers.d.ts +43 -0
  1626. package/dist/src/runtime/resolve-helpers.js +1 -0
  1627. package/dist/src/runtime/resolve-hook.d.ts +13 -0
  1628. package/dist/src/runtime/resolve-hook.js +1 -0
  1629. package/dist/src/runtime/resolve-sandbox.d.ts +13 -0
  1630. package/dist/src/runtime/resolve-sandbox.js +1 -0
  1631. package/dist/src/runtime/resolve-tool.d.ts +14 -0
  1632. package/dist/src/runtime/resolve-tool.js +1 -0
  1633. package/dist/src/runtime/sandbox/keys.d.ts +38 -0
  1634. package/dist/src/runtime/sandbox/keys.js +1 -0
  1635. package/dist/src/runtime/sandbox/registry.d.ts +61 -0
  1636. package/dist/src/runtime/sandbox/registry.js +1 -0
  1637. package/dist/src/runtime/sandbox/template-plan.d.ts +26 -0
  1638. package/dist/src/runtime/sandbox/template-plan.js +1 -0
  1639. package/dist/src/runtime/schedules/register.d.ts +35 -0
  1640. package/dist/src/runtime/schedules/register.js +1 -0
  1641. package/dist/src/runtime/schedules/resolve-schedule.d.ts +31 -0
  1642. package/dist/src/runtime/schedules/resolve-schedule.js +1 -0
  1643. package/dist/src/runtime/session-callback-route.d.ts +6 -0
  1644. package/dist/src/runtime/session-callback-route.js +1 -0
  1645. package/dist/src/runtime/sessions/auth.d.ts +39 -0
  1646. package/dist/src/runtime/sessions/auth.js +1 -0
  1647. package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +47 -0
  1648. package/dist/src/runtime/sessions/compiled-agent-cache.js +1 -0
  1649. package/dist/src/runtime/sessions/runtime-context-keys.d.ts +11 -0
  1650. package/dist/src/runtime/sessions/runtime-context-keys.js +1 -0
  1651. package/dist/src/runtime/sessions/runtime-session.d.ts +52 -0
  1652. package/dist/src/runtime/sessions/runtime-session.js +1 -0
  1653. package/dist/src/runtime/sessions/turn.d.ts +33 -0
  1654. package/dist/src/runtime/sessions/turn.js +1 -0
  1655. package/dist/src/runtime/skills/fragment-context.d.ts +4 -0
  1656. package/dist/src/runtime/skills/fragment-context.js +1 -0
  1657. package/dist/src/runtime/skills/sandbox-access.d.ts +21 -0
  1658. package/dist/src/runtime/skills/sandbox-access.js +1 -0
  1659. package/dist/src/runtime/subagents/registry.d.ts +32 -0
  1660. package/dist/src/runtime/subagents/registry.js +1 -0
  1661. package/dist/src/runtime/tools/registry.d.ts +30 -0
  1662. package/dist/src/runtime/tools/registry.js +1 -0
  1663. package/dist/src/runtime/types.d.ts +368 -0
  1664. package/dist/src/runtime/types.js +1 -0
  1665. package/dist/src/runtime/validation.d.ts +5 -0
  1666. package/dist/src/runtime/validation.js +1 -0
  1667. package/dist/src/runtime/workspace/seed-files.d.ts +15 -0
  1668. package/dist/src/runtime/workspace/seed-files.js +1 -0
  1669. package/dist/src/runtime/workspace/spec.d.ts +6 -0
  1670. package/dist/src/runtime/workspace/spec.js +2 -0
  1671. package/dist/src/runtime/workspace/types.d.ts +18 -0
  1672. package/dist/src/runtime/workspace/types.js +1 -0
  1673. package/dist/src/sandbox/state.d.ts +33 -0
  1674. package/dist/src/sandbox/state.js +1 -0
  1675. package/dist/src/services/dev-client/request-headers.d.ts +74 -0
  1676. package/dist/src/services/dev-client/request-headers.js +1 -0
  1677. package/dist/src/services/dev-client/stream.d.ts +5 -0
  1678. package/dist/src/services/dev-client/stream.js +1 -0
  1679. package/dist/src/services/dev-client/url.d.ts +11 -0
  1680. package/dist/src/services/dev-client/url.js +1 -0
  1681. package/dist/src/services/dev-client/vercel-auth-error.d.ts +42 -0
  1682. package/dist/src/services/dev-client/vercel-auth-error.js +2 -0
  1683. package/dist/src/services/dev-client.d.ts +75 -0
  1684. package/dist/src/services/dev-client.js +1 -0
  1685. package/dist/src/services/inspect-application.d.ts +23 -0
  1686. package/dist/src/services/inspect-application.js +1 -0
  1687. package/dist/src/shared/agent-definition.d.ts +154 -0
  1688. package/dist/src/shared/agent-definition.js +1 -0
  1689. package/dist/src/shared/code-mode.d.ts +29 -0
  1690. package/dist/src/shared/code-mode.js +1 -0
  1691. package/dist/src/shared/dynamic-tool-definition.d.ts +159 -0
  1692. package/dist/src/shared/dynamic-tool-definition.js +1 -0
  1693. package/dist/src/shared/errors.d.ts +17 -0
  1694. package/dist/src/shared/errors.js +1 -0
  1695. package/dist/src/shared/guards.d.ts +45 -0
  1696. package/dist/src/shared/guards.js +1 -0
  1697. package/dist/src/shared/json-schema.d.ts +9 -0
  1698. package/dist/src/shared/json-schema.js +1 -0
  1699. package/dist/src/shared/json-schemas.d.ts +10 -0
  1700. package/dist/src/shared/json-schemas.js +1 -0
  1701. package/dist/src/shared/json.d.ts +34 -0
  1702. package/dist/src/shared/json.js +1 -0
  1703. package/dist/src/shared/network-address.d.ts +11 -0
  1704. package/dist/src/shared/network-address.js +1 -0
  1705. package/dist/src/shared/node.d.ts +6 -0
  1706. package/dist/src/shared/node.js +1 -0
  1707. package/dist/src/shared/optional.d.ts +3 -0
  1708. package/dist/src/shared/optional.js +1 -0
  1709. package/dist/src/shared/run-mode.d.ts +7 -0
  1710. package/dist/src/shared/run-mode.js +1 -0
  1711. package/dist/src/shared/sandbox-backend.d.ts +149 -0
  1712. package/dist/src/shared/sandbox-backend.js +1 -0
  1713. package/dist/src/shared/sandbox-definition.d.ts +110 -0
  1714. package/dist/src/shared/sandbox-definition.js +1 -0
  1715. package/dist/src/shared/sandbox-network-policy.d.ts +23 -0
  1716. package/dist/src/shared/sandbox-network-policy.js +1 -0
  1717. package/dist/src/shared/sandbox-session.d.ts +144 -0
  1718. package/dist/src/shared/sandbox-session.js +1 -0
  1719. package/dist/src/shared/skill-definition.d.ts +24 -0
  1720. package/dist/src/shared/skill-definition.js +1 -0
  1721. package/dist/src/shared/skill-package.d.ts +50 -0
  1722. package/dist/src/shared/skill-package.js +1 -0
  1723. package/dist/src/shared/source-ref.d.ts +53 -0
  1724. package/dist/src/shared/source-ref.js +1 -0
  1725. package/dist/src/shared/tool-definition.d.ts +58 -0
  1726. package/dist/src/shared/tool-definition.js +1 -0
  1727. package/dist/src/shared/vercel-output-directory.d.ts +2 -0
  1728. package/dist/src/shared/vercel-output-directory.js +1 -0
  1729. package/dist/src/svelte/index.d.ts +3 -0
  1730. package/dist/src/svelte/index.js +3 -0
  1731. package/dist/src/svelte/use-eve-agent.d.ts +105 -0
  1732. package/dist/src/svelte/use-eve-agent.js +3 -0
  1733. package/dist/src/vue/index.d.ts +3 -0
  1734. package/dist/src/vue/index.js +3 -0
  1735. package/dist/src/vue/use-eve-agent.d.ts +103 -0
  1736. package/dist/src/vue/use-eve-agent.js +3 -0
  1737. package/package.json +336 -71
  1738. package/.npmignore +0 -2
  1739. package/component.json +0 -13
  1740. package/dr.json +0 -10
  1741. package/e.html +0 -66
  1742. package/eve.js +0 -435
  1743. package/template.dot +0 -13
@@ -0,0 +1 @@
1
+ import{TerminalRenderer}from"./terminal-renderer.js";import{createDevelopmentRuntimeArtifactSessionRefresher}from"#services/dev-client.js";import{isCurrentTurnBoundaryEvent}from"#client/index.js";import{getToolName,isToolUIPart}from"ai";var EveTUIRunner=class{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f=new Map;#p=new Map;#m=new Map;#h=new Map;#g=new Set;constructor(e){this.#e=e.session,e.client!==void 0&&(this.#t=e.client),this.#n=createRenderer(e)??createDefaultRenderer(e),this.#r=e.name??`Eve`,this.#i=e.tools??`full`,this.#a=e.reasoning??`full`,this.#o=e.subagents??`full`,this.#s=e.connectionAuth??`full`,this.#c=e.assistantResponseStats??`tokensPerSecond`,this.#l=e.contextSize,this.#u=e.formatTransportError??formatErrorMessage,e.serverUrl!==void 0&&(this.#d=createDevelopmentRuntimeArtifactSessionRefresher({serverUrl:e.serverUrl}))}async run(){let e=this.#r,t=[],n=0,generateMessageId=()=>`message-${++n}`,r,i,a=!1,o=!1;for(;;){if(!o){if(r==null){if(!this.#n.readPrompt){if(a)return;throw Error(`No prompt was provided and the renderer does not support prompt input.`)}try{r=await this.#n.readPrompt({title:e})}catch(e){if(isInterruptedError(e))return;throw e}if(r==null)return}let s=parsePromptCommand(r);if(s===`exit`){this.#n.shutdown?.();return}if(s===`new`){this.#_(),t.length=0,n=0,i=void 0,o=!1,r=void 0,this.#n.reset?.();continue}t.push(createUserMessage(generateMessageId(),r)),a=!0}let s=await this.#v({prompt:o?void 0:r,inputResponses:i,messages:t,generateMessageId});try{let n=await this.#n.renderStream(s,{title:e,submittedPrompt:r,continueSession:!!this.#n.readPrompt,tools:this.#i,reasoning:this.#a,subagents:this.#o,connectionAuth:this.#s,assistantResponseStats:this.#c,contextSize:this.#l,waitForExit:!1});if(n&&n.parts.length>0){let a=findPendingToolApprovalRequests(n),s=findPendingQuestionRequests(this.#f);if(a.length>0||s.length>0){let c=[];if(a.length>0){if(!this.#n.readToolApproval)throw Error(`Tool approval was requested, but the renderer does not support tool approval input.`);for(let t of a){let r=await this.#n.readToolApproval(t,{title:e});applyToolApprovalResponse(n,t,r);let i=this.#f.get(t.approvalId);i&&(c.push({requestId:i.requestId,optionId:r.approved?`approve`:`deny`}),this.#f.delete(t.approvalId))}}if(s.length>0){if(!this.#n.readInputQuestion)throw Error(`An interactive question was requested, but the renderer does not support input questions.`);for(let t of s){let n=toAgentTUIInputQuestion(t),r=await this.#n.readInputQuestion(n,{title:e});if(r===void 0)continue;let i={requestId:t.requestId};r.optionId!==void 0&&(i.optionId=r.optionId),r.text!==void 0&&(i.text=r.text),c.push(i),this.#f.delete(t.requestId)}}upsertResponseMessage(t,n,o),o=!0,i=c,r=void 0;continue}upsertResponseMessage(t,n,o)}}catch(e){if(isInterruptedError(e))return;throw e}o=!1,i=void 0,r=void 0}}#_(){for(let e of this.#m.values())e.abort();this.#m.clear(),this.#p.clear(),this.#f.clear(),this.#h.clear(),this.#g.clear(),this.#t&&(this.#e=this.#t.session()),this.#d?.clear()}async#v(e){let t={};e.prompt!==void 0&&(t.message=e.prompt),e.inputResponses!==void 0&&e.inputResponses.length>0&&(t.inputResponses=e.inputResponses);let n;try{let e=this.#t;e!==void 0&&this.#d!==void 0&&(this.#e=await this.#d.refresh({createSession:()=>e.session(),inputResponses:t.inputResponses,message:t.message,session:this.#e})),n=await this.#e.send(t)}catch(t){if(isInterruptedError(t))throw t;return{uiMessageStream:errorOnlyUIMessageStream({errorText:this.#u(t),generateMessageId:e.generateMessageId,originalMessages:e.messages}),message:lastAssistantMessage(e.messages)}}return{uiMessageStream:eveEventsToUIMessageStream({events:n,generateMessageId:e.generateMessageId,originalMessages:e.messages,pendingInputRequests:this.#f,subagentRuns:this.#p,onSubagentCalled:e=>this.#S(e),onSubagentCompleted:e=>this.#w(e),onConnectionAuthRequired:e=>this.#y(e),onConnectionAuthCompleted:e=>this.#b(e)}),message:lastAssistantMessage(e.messages)}}#y(e){let t={name:e.data.name,description:e.data.description,state:`required`};e.data.authorization!==void 0&&(t.challenge=e.data.authorization),e.data.webhookUrl!==void 0&&(t.webhookUrl=e.data.webhookUrl),this.#h.set(e.data.name,t),this.#x(t)}#b(e){let t=this.#h.get(e.data.name)??{name:e.data.name,description:``,state:e.data.outcome};t.state=e.data.outcome,e.data.reason!==void 0&&(t.reason=e.data.reason),this.#h.set(e.data.name,t),this.#g.delete(e.data.name),this.#x(t),this.#n.setConnectionAuthPendingCount?.(this.#g.size)}#x(e){let t={name:e.name,description:e.description,state:e.state};e.challenge!==void 0&&(t.challenge=e.challenge),e.reason!==void 0&&(t.reason=e.reason),this.#n.upsertConnectionAuth?.(t)}#S(e){let t=e.data.callId;if(this.#m.has(t))return;let r=this.#t;if(!r)return;let i=new AbortController;this.#m.set(t,i),(async()=>{try{let a=r.session({sessionId:e.data.childSessionId,streamIndex:0}).stream({signal:i.signal});for await(let e of a)if(i.signal.aborted||(this.#T(t,e),isCurrentTurnBoundaryEvent(e)))break}catch(e){if(!isAbortLikeError(e)){let n=formatErrorMessage(e),r=this.#p.get(t);if(r){let{key:e,step:i}=openCurrentSubagentSection(r);i.message=i.message?`${i.message}\n\nstream error: ${n}`:`stream error: ${n}`,i.finalized=!0,r.currentSectionKey=null,this.#n.upsertSubagentStep?.({callId:t,subagentName:r.name,sectionKey:e,reasoning:i.reasoning,message:i.message,finalized:!0})}}}finally{this.#m.delete(t)}})()}#C(e,t,n){let r=t.tools.get(n.childCallId),i=r??{toolName:n.toolName,input:n.input,status:n.status};if(r){let e={"approval-requested":0,executing:1,done:2,failed:2};e[n.status]>e[r.status]&&(r.status=n.status),r.input=n.input}else t.tools.set(n.childCallId,i);this.#n.markChildToolCallId?.(n.childCallId),this.#n.upsertSubagentTool?.({callId:e,subagentName:t.name,childCallId:n.childCallId,toolName:i.toolName,input:i.input,status:i.status})}#w(e){let t=this.#p.get(e);if(t){for(let[n,r]of t.steps)r.finalized||(r.finalized=!0,this.#n.upsertSubagentStep?.({callId:e,subagentName:t.name,sectionKey:n,reasoning:r.reasoning,message:r.message,finalized:!0}));t.currentSectionKey=null}}#T(e,t){let n=this.#p.get(e);if(!n)return;let r=this.#n,emit=(t,i)=>{r.upsertSubagentStep?.({callId:e,subagentName:n.name,sectionKey:t,reasoning:i.reasoning,message:i.message,finalized:i.finalized})},finalizeCurrent=()=>{if(n.currentSectionKey===null)return;let e=n.steps.get(n.currentSectionKey);e&&(e.finalized=!0,emit(n.currentSectionKey,e)),n.currentSectionKey=null};switch(t.type){case`reasoning.appended`:{let{key:e,step:r}=openCurrentSubagentSection(n);r.reasoning+=t.data.reasoningDelta,emit(e,r);break}case`reasoning.completed`:break;case`message.appended`:{let{key:e,step:r}=openCurrentSubagentSection(n);r.message+=t.data.messageDelta,emit(e,r);break}case`message.completed`:{let{key:e,step:r}=openCurrentSubagentSection(n);t.data.message!==null&&r.message.length===0&&(r.message=t.data.message),r.finalized=!0,emit(e,r),n.currentSectionKey=null;break}case`step.completed`:finalizeCurrent();break;case`actions.requested`:finalizeCurrent();for(let r of t.data.actions)r.kind===`tool-call`&&this.#C(e,n,{childCallId:r.callId,toolName:r.toolName,input:r.input,status:`executing`});break;case`input.requested`:finalizeCurrent();for(let r of t.data.requests)r.action.kind===`tool-call`&&this.#C(e,n,{childCallId:r.action.callId,toolName:r.action.toolName,input:r.action.input,status:`approval-requested`});break;case`action.result`:{let i=t.data.result;if(i.kind!==`tool-result`)break;let a=n.tools.get(i.callId);if(!a)break;t.data.status===`failed`?(a.status=`failed`,a.errorText=formatActionResultError(t)):(a.status=`done`,a.output=i.output);let o={callId:e,subagentName:n.name,childCallId:i.callId,toolName:a.toolName,input:a.input,status:a.status};a.output!==void 0&&(o.output=a.output),a.errorText!==void 0&&(o.errorText=a.errorText),r.upsertSubagentTool?.(o);break}default:break}}};function createDefaultRenderer(t){return t.tools===void 0&&t.reasoning===void 0&&t.subagents===void 0&&t.connectionAuth===void 0&&t.assistantResponseStats===void 0&&t.contextSize===void 0&&t.logs===void 0?new TerminalRenderer:new TerminalRenderer({tools:t.tools,reasoning:t.reasoning,subagents:t.subagents,connectionAuth:t.connectionAuth,assistantResponseStats:t.assistantResponseStats,contextSize:t.contextSize,logs:t.logs})}function createRenderer(t){if(t.renderer)return t.renderer;if(!(!t.screen&&!t.userInput))return new TerminalRenderer({tools:t.tools,reasoning:t.reasoning,subagents:t.subagents,connectionAuth:t.connectionAuth,assistantResponseStats:t.assistantResponseStats,contextSize:t.contextSize,logs:t.logs,input:t.userInput,output:t.screen})}async function*eveEventsToUIMessageStream(e){let{events:t,generateMessageId:n,originalMessages:r,pendingInputRequests:i,subagentRuns:a,onSubagentCalled:o,onSubagentCompleted:s,onConnectionAuthRequired:c,onConnectionAuthCompleted:l}=e,u=new Set,d=new Set,f=new Set,p=!1,m=!1,h,ensureStart=()=>{if(!p)return p=!0,{type:`start`,messageId:lastAssistantMessage(r)?.id??n()}};for await(let e of t){let t=ensureStart();switch(t&&(yield t),e.type){case`session.started`:case`turn.started`:case`message.received`:break;case`step.started`:yield{type:`start-step`};break;case`step.completed`:h=e.data.usage,yield*closeOpenTextParts(u),yield*closeOpenReasoningParts(d),yield{type:`finish-step`};break;case`message.appended`:{let t=e,n=textPartId(t.data.turnId,t.data.stepIndex);u.has(n)||(u.add(n),yield{type:`text-start`,id:n}),yield{type:`text-delta`,id:n,delta:t.data.messageDelta};break}case`message.completed`:{let t=textPartId(e.data.turnId,e.data.stepIndex);!u.has(t)&&e.data.message!==null?(yield{type:`text-start`,id:t},yield{type:`text-delta`,id:t,delta:e.data.message},yield{type:`text-end`,id:t}):u.delete(t)&&(yield{type:`text-end`,id:t});break}case`reasoning.appended`:{let t=e,n=reasoningPartId(t.data.turnId,t.data.stepIndex);d.has(n)||(d.add(n),yield{type:`reasoning-start`,id:n}),yield{type:`reasoning-delta`,id:n,delta:t.data.reasoningDelta};break}case`reasoning.completed`:{let t=reasoningPartId(e.data.turnId,e.data.stepIndex);d.delete(t)&&(yield{type:`reasoning-end`,id:t});break}case`actions.requested`:{let t=e.data.actions;for(let e of t)e.kind===`tool-call`&&(f.add(e.callId),yield{type:`tool-input-available`,toolCallId:e.callId,toolName:e.toolName,input:e.input});break}case`input.requested`:{let t=e.data.requests;for(let e of t){if(e.action.kind!==`tool-call`)continue;let t=e.action.callId;f.has(t)||(f.add(t),yield{type:`tool-input-available`,toolCallId:t,toolName:e.action.toolName,input:e.action.input}),i.set(e.requestId,e),!isQuestionRequest(e)&&(yield{type:`tool-approval-request`,approvalId:e.requestId,toolCallId:t})}break}case`action.result`:{let t=e,n=t.data.result.callId;if(!f.has(n))break;t.data.status===`failed`?yield{type:`tool-output-error`,toolCallId:n,errorText:formatActionResultError(t)}:yield{type:`tool-output-available`,toolCallId:n,output:t.data.result.output};break}case`step.failed`:case`turn.failed`:case`session.failed`:yield{type:`error`,errorText:formatFailureMessage(e)};break;case`session.waiting`:case`session.completed`:case`turn.completed`:yield*closeOpenTextParts(u),yield*closeOpenReasoningParts(d),yield{type:`finish`,messageMetadata:createResponseMetadata(h)},m=!0;break;case`subagent.called`:{let t=e;if(!a.has(t.data.callId))a.set(t.data.callId,{name:t.data.name,steps:new Map,currentSectionKey:null,nextSectionKey:0,tools:new Map});else{let e=a.get(t.data.callId);e&&(e.name=t.data.name)}o?.(t);break}case`subagent.started`:case`subagent.event`:break;case`subagent.completed`:s?.(e.data.callId);break;case`authorization.required`:c?.(e);break;case`authorization.completed`:l?.(e);break;default:break}}p||(yield{type:`start`,messageId:n()}),m||(yield*closeOpenTextParts(u),yield*closeOpenReasoningParts(d),yield{type:`finish`,messageMetadata:createResponseMetadata(h)})}async function*errorOnlyUIMessageStream(e){yield{type:`start`,messageId:lastAssistantMessage(e.originalMessages)?.id??e.generateMessageId()},yield{type:`error`,errorText:e.errorText},yield{type:`finish`}}function textPartId(e,t){return`text:${e}:${t}`}function reasoningPartId(e,t){return`reasoning:${e}:${t}`}function*closeOpenTextParts(e){for(let t of e)yield{type:`text-end`,id:t};e.clear()}function*closeOpenReasoningParts(e){for(let t of e)yield{type:`reasoning-end`,id:t};e.clear()}function createResponseMetadata(e){if(!e)return;let{inputTokens:t,outputTokens:n}=e,r=t!=null||n!=null?(t??0)+(n??0):void 0;if(r==null&&n==null)return;let i={};return r!=null&&(i.totalTokens=r),n!=null&&(i.outputTokens=n),{usage:i}}function formatActionResultError(e){if(e.data.error?.message)return e.data.error.message;let t=e.data.result.output;if(typeof t==`string`)return t;try{return JSON.stringify(t)}catch{return`Tool execution failed.`}}function formatFailureMessage(e){let{code:t,message:n}=e.data;return t?`${t}: ${n}`:n}function createUserMessage(e,t){return{id:e,role:`user`,parts:[{type:`text`,text:t}]}}function upsertResponseMessage(e,t,n){if(n&&e.at(-1)?.role===`assistant`){e[e.length-1]=t;return}e.push(t)}function lastAssistantMessage(e){let t=e.at(-1);return t?.role===`assistant`?t:void 0}function isQuestionRequest(e){return e.display===`select`||e.display===`text`?!0:e.display===`confirmation`?!1:e.options!==void 0&&e.options.length>0}function findPendingQuestionRequests(e){let t=[];for(let n of e.values())isQuestionRequest(n)&&t.push(n);return t}function toAgentTUIInputQuestion(e){let t=e.display===`text`?`text`:e.display===`select`||e.options!==void 0&&e.options.length>0?`select`:`text`,n={requestId:e.requestId,prompt:e.prompt,display:t};return e.options!==void 0&&(n.options=e.options.map(e=>{let t={id:e.id,label:e.label};return e.description!==void 0&&(t.description=e.description),e.style!==void 0&&(t.style=e.style),t})),e.allowFreeform!==void 0&&(n.allowFreeform=e.allowFreeform),n}function findPendingToolApprovalRequests(e){let t=[];for(let[n,a]of e.parts.entries()){if(!isToolUIPart(a)||a.state!==`approval-requested`||a.approval.isAutomatic===!0)continue;let o={approvalId:a.approval.id,toolCallId:a.toolCallId,toolName:getToolName(a),input:a.input,messageId:e.id,partIndex:n};a.title!==void 0&&(o.title=a.title),a.providerExecuted!==void 0&&(o.providerExecuted=a.providerExecuted),t.push(o)}return t}function applyToolApprovalResponse(e,t,n){let r=e.parts[t.partIndex];if(!r||!isToolUIPart(r)||r.toolCallId!==t.toolCallId)throw Error(`Could not find tool approval request ${t.approvalId}.`);r.state=`approval-responded`;let a={id:t.approvalId,approved:n.approved};n.reason&&(a.reason=n.reason),r.approval=a}function isInterruptedError(e){return e instanceof Error&&e.message===`Interrupted`}function parsePromptCommand(e){let t=e.trim();return t===`/new`?`new`:t===`/exit`||t===`/quit`?`exit`:null}function isAbortLikeError(e){return!!(e instanceof Error&&(e.name===`AbortError`||e.message.toLowerCase().includes(`abort`)))}function formatErrorMessage(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function openCurrentSubagentSection(e){e.currentSectionKey===null&&(e.currentSectionKey=e.nextSectionKey++,e.steps.set(e.currentSectionKey,{reasoning:``,message:``,finalized:!1}));let t=e.steps.get(e.currentSectionKey);if(!t)throw Error(`invariant: subagent section state missing for current key`);return{key:e.currentSectionKey,step:t}}export{EveTUIRunner};
@@ -0,0 +1,21 @@
1
+ export type TerminalFrameOutput = {
2
+ write(chunk: string | Uint8Array, encodingOrCallback?: BufferEncoding | ((error?: Error | null) => void), callback?: (error?: Error | null) => void): boolean;
3
+ };
4
+ export type TerminalFrameBufferOptions = {
5
+ useSynchronizedUpdates?: boolean;
6
+ };
7
+ export declare class TerminalFrameBuffer {
8
+ #private;
9
+ constructor(output: TerminalFrameOutput, options?: TerminalFrameBufferOptions);
10
+ present(frame: string): void;
11
+ reset(): void;
12
+ /**
13
+ * Writes a control sequence (e.g. alt-screen enter/exit, cursor
14
+ * show/hide) straight to the underlying terminal via the original
15
+ * write captured at construction. This bypasses any later monkey-patch
16
+ * of the output's `write` — notably the renderer's foreign-output log
17
+ * capture — so the renderer's own terminal control writes are never
18
+ * mistaken for captured log output.
19
+ */
20
+ writeControl(sequence: string): void;
21
+ }
@@ -0,0 +1,2 @@
1
+ var TerminalFrameBuffer=class{#e;#t;#n;#r=!1;#i=!1;constructor(e,t){this.#t=e.write.bind(e),this.#e=t?.useSynchronizedUpdates??!0,e.write=((e,t,n)=>(this.#r||(this.#i=!0),this.#t(e,t,n)))}present(e){let t=snapshotFrame(e),n=this.#n&&!this.#i?diffFrame(this.#n,t):`${e}`;this.#n=t,this.#i=!1,n.length!==0&&this.#a(n)}reset(){this.#n=void 0}writeControl(e){this.#t(e)}#a(e){this.#r=!0;try{if(!this.#e){this.#t(e);return}this.#t(`[?2026h${e}[?2026l`)}finally{this.#r=!1}}};function snapshotFrame(e){return{lines:e.split(`
2
+ `)}}function diffFrame(e,t){let n=``,r=Math.max(e.lines.length,t.lines.length);for(let i=0;i<r;i++){let r=t.lines[i];e.lines[i]!==r&&(n+=`[${i+1};1H${r??``}`)}return n}export{TerminalFrameBuffer};
@@ -0,0 +1,111 @@
1
+ import type { AgentTUIInputQuestion, AgentTUIInputQuestionResponse, AgentTUIStreamResult, AgentTUIToolApprovalRequest, AgentTUIToolApprovalResponse, ConnectionAuthUpdate, SubagentStepUpdate, SubagentToolUpdate } from "./runner.js";
2
+ import type { AssistantResponseStatsMode, LogDisplayMode, TerminalPartDisplayMode } from "./types.js";
3
+ import { TerminalFrameBuffer } from "./terminal-frame-buffer.js";
4
+ import { type UIMessage } from "ai";
5
+ export type TerminalInput = {
6
+ isTTY?: boolean;
7
+ on(event: "data", listener: (chunk: Buffer) => void): TerminalInput;
8
+ off(event: "data", listener: (chunk: Buffer) => void): TerminalInput;
9
+ resume(): TerminalInput;
10
+ pause(): TerminalInput;
11
+ setRawMode?: (mode: boolean) => TerminalInput;
12
+ };
13
+ export type TerminalOutput = {
14
+ columns?: number;
15
+ rows?: number;
16
+ write(chunk: string | Uint8Array, encodingOrCallback?: BufferEncoding | ((error?: Error | null) => void), callback?: (error?: Error | null) => void): boolean;
17
+ on(event: "resize", listener: () => void): TerminalOutput;
18
+ off(event: "resize", listener: () => void): TerminalOutput;
19
+ };
20
+ export type TerminalRendererOptions = {
21
+ input?: TerminalInput;
22
+ output?: TerminalOutput;
23
+ frameBuffer?: TerminalFrameBuffer;
24
+ tools?: TerminalPartDisplayMode;
25
+ reasoning?: TerminalPartDisplayMode;
26
+ subagents?: TerminalPartDisplayMode;
27
+ connectionAuth?: TerminalPartDisplayMode;
28
+ assistantResponseStats?: AssistantResponseStatsMode;
29
+ contextSize?: number;
30
+ /**
31
+ * Whether to capture foreign `process.stdout` / `process.stderr` writes
32
+ * (from the in-process dev server and agent code) and render them as
33
+ * inline log regions. Defaults to `true` only when the renderer is bound
34
+ * to the real `process.stdout`; tests can force it on with an injected
35
+ * screen.
36
+ */
37
+ captureForeignOutput?: boolean;
38
+ logs?: LogDisplayMode;
39
+ };
40
+ export type TerminalSessionOptions = {
41
+ title?: string;
42
+ initialPrompt?: string;
43
+ submittedPrompt?: string;
44
+ waitForExit?: boolean;
45
+ continueSession?: boolean;
46
+ tools?: TerminalPartDisplayMode;
47
+ reasoning?: TerminalPartDisplayMode;
48
+ subagents?: TerminalPartDisplayMode;
49
+ connectionAuth?: TerminalPartDisplayMode;
50
+ assistantResponseStats?: AssistantResponseStatsMode;
51
+ contextSize?: number;
52
+ };
53
+ export type TerminalKey = {
54
+ type: "character";
55
+ value: string;
56
+ } | {
57
+ type: "backspace";
58
+ } | {
59
+ type: "enter";
60
+ } | {
61
+ type: "up";
62
+ } | {
63
+ type: "down";
64
+ } | {
65
+ type: "left";
66
+ } | {
67
+ type: "right";
68
+ } | {
69
+ type: "tab";
70
+ } | {
71
+ type: "escape";
72
+ } | {
73
+ type: "ctrl-r";
74
+ } | {
75
+ type: "ctrl-c";
76
+ } | {
77
+ type: "ignore";
78
+ };
79
+ export declare class TerminalRenderer {
80
+ #private;
81
+ constructor(options?: TerminalRendererOptions);
82
+ readPrompt(options?: TerminalSessionOptions): Promise<string>;
83
+ renderStream(result: AgentTUIStreamResult, options?: TerminalSessionOptions): Promise<UIMessage | undefined>;
84
+ readToolApproval(request: AgentTUIToolApprovalRequest, options?: TerminalSessionOptions): Promise<AgentTUIToolApprovalResponse>;
85
+ readInputQuestion(question: AgentTUIInputQuestion, options?: TerminalSessionOptions): Promise<AgentTUIInputQuestionResponse | undefined>;
86
+ upsertSubagentStep(update: SubagentStepUpdate): void;
87
+ upsertSubagentTool(update: SubagentToolUpdate): void;
88
+ markChildToolCallId(callId: string): void;
89
+ isChildToolCallId(callId: string): boolean;
90
+ upsertConnectionAuth(update: ConnectionAuthUpdate): void;
91
+ /**
92
+ * Sets the count of connections currently awaiting an OAuth
93
+ * callback. While the count is > 0, the bottom status bar shows a
94
+ * "waiting for connection authorization" hint that overrides the
95
+ * default streaming / processing message. The runner calls this on
96
+ * `authorization.required` (incrementing) and
97
+ * `authorization.completed` (decrementing) transitions.
98
+ */
99
+ setConnectionAuthPendingCount(count: number): void;
100
+ /**
101
+ * Clears the rendered transcript and per-conversation display state,
102
+ * leaving the UI interactive on a fresh screen. Backs the `/new` command.
103
+ */
104
+ reset(): void;
105
+ /**
106
+ * Tears down interactive mode and restores the terminal. Backs the
107
+ * `/exit` command, matching the Ctrl+C teardown.
108
+ */
109
+ shutdown(): void;
110
+ }
111
+ export declare function parseKey(chunk: Buffer): TerminalKey;
@@ -0,0 +1,12 @@
1
+ import{sliceVisible,stripAnsi,visibleLength}from"./terminal-text.js";import{renderMarkdown}from"./markdown.js";import{renderScreenViewport}from"./layout.js";import{TerminalFrameBuffer}from"./terminal-frame-buffer.js";import{getToolName,isToolUIPart,readUIMessageStream}from"ai";const colors={reset:`\x1B[0m`,dim:`\x1B[2m`,user:`\x1B[96m`,assistant:`\x1B[92m`,reasoning:`\x1B[94m`,tool:`\x1B[95m`,error:`\x1B[91m`,question:`\x1B[93m`,subagent:`\x1B[38;5;208m`,connectionAuth:`\x1B[35m`,log:`\x1B[90m`},sectionStyles={user:{color:colors.user,border:`─`},assistant:{color:colors.assistant,border:`─`},reasoning:{color:colors.reasoning,border:`·`},tool:{color:colors.tool,border:`─`},error:{color:colors.error,border:`─`},question:{color:colors.question,border:`─`},"subagent-step":{color:colors.subagent,border:`─`},"subagent-tool":{color:colors.subagent,border:`─`},"connection-auth":{color:colors.connectionAuth,border:`─`},log:{color:colors.log,border:`·`}},processingStatus=`Processing input... ↑/↓ scroll · Ctrl+C quit`,processingToolResultsStatus=`Processing tool results... ↑/↓ scroll · Ctrl+C quit`,streamingStatus=`Streaming... ↑/↓ scroll · Ctrl+C quit`,executingToolsStatus=`Executing tools... ↑/↓ scroll · Ctrl+C quit`;var TerminalRenderer=class{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];#u=new Set;#d=new Map;#f=0;#p=``;#m=!1;#h=0;#g=`Agent TUI`;#_=streamingStatus;#v=!1;#y=!1;#b;#x;#S;#C;#w=!0;#T;#E;#D;#O;#k;#A=``;#j=``;#M;#N;#P;constructor(e){this.#e=e?.input??process.stdin,this.#t=e?.output??process.stdout,this.#n=e?.frameBuffer??new TerminalFrameBuffer(this.#t),this.#r=e?.tools??`full`,this.#i=e?.reasoning??`full`,this.#a=e?.subagents??`full`,this.#o=e?.connectionAuth??`full`,this.#s=e?.assistantResponseStats??`tokensPerSecond`,this.#c=e?.contextSize,this.#x=e?.contextSize,this.#M=e?.captureForeignOutput??this.#t===process.stdout,this.#N=e?.logs??`all`}async readPrompt(e){return this.#F(e),this.#m=!0,this.#p=e?.initialPrompt??``,this.#_=`Type a prompt and press Enter · ↑/↓ scroll · Ctrl+C quit`,this.#V(),this.#ne(),await new Promise((e,t)=>{this.#E=n=>{let r=parseKey(n);switch(r.type){case`character`:this.#p+=r.value,this.#U(),this.#ne();break;case`backspace`:this.#p=this.#p.slice(0,-1),this.#U(),this.#ne();break;case`enter`:{let t=this.#p;this.#m=!1,this.#H(),this.#_=processingStatus,this.#G(t),this.#P=t,this.#p=``,this.#ne(),this.#R(),e(t);break}case`up`:case`down`:this.#B(r.type);break;case`ctrl-r`:this.#re();break;case`ctrl-c`:this.#H(),this.#I(),t(interruptedError());break;case`ignore`:break}},this.#L()})}async renderStream(e,t){this.#F(t),this.#m=!1,this.#_=processingStatus,this.#W(t?.submittedPrompt),this.#y=!1,this.#b=void 0,this.#S=void 0,this.#C=void 0;let n={tools:t?.tools??this.#r,reasoning:t?.reasoning??this.#i,assistantResponseStats:t?.assistantResponseStats??this.#s};this.#ne();let r=new Promise(e=>{this.#O=e});this.#E=e=>this.#z(e),this.#L();let i,a=toReadableStream(this.#Y(e.uiMessageStream));try{let t=readUIMessageStream({message:e.message,stream:a,onError:e=>this.#X(`Error`,formatStreamError(e))});for await(let e of takeUntil(t,r)){if(this.#y)break;i=e,this.#K(e,n)}!this.#y&&i&&this.#S!=null&&this.#K(i,n)}finally{this.#O=void 0,this.#y&&e.abort?.(),this.#R(),this.#_=this.#y?`Interrupted`:t?.continueSession?`Done · Enter another prompt · ↑/↓ scroll · Ctrl+C quit`:`Done · ↑/↓ scroll · q/Ctrl+C quit`,this.#ne(),await this.#ue(t),(this.#y||!t?.continueSession)&&this.#I()}if(this.#y)throw interruptedError();return i}async readToolApproval(e,t){return this.#F(t),this.#m=!1,this.#_=`Approve ${formatToolApprovalTitle(e)}? y/n · ↑/↓ scroll · Ctrl+C quit`,this.#y=!1,this.#ne(),await new Promise((e,t)=>{this.#E=n=>{let r=parseKey(n);switch(r.type){case`character`:{let t=r.value.toLowerCase();t===`y`?(this.#_=`Approved · Processing input... ↑/↓ scroll · Ctrl+C quit`,this.#R(),this.#ne(),e({approved:!0})):t===`n`&&(this.#_=`Denied · Processing input... ↑/↓ scroll · Ctrl+C quit`,this.#R(),this.#ne(),e({approved:!1,reason:`Denied by user.`}));break}case`up`:case`down`:this.#B(r.type);break;case`ctrl-r`:this.#re();break;case`ctrl-c`:this.#y=!0,this.#I(),t(interruptedError());break;default:break}},this.#L()})}async readInputQuestion(e,t){this.#F(t),this.#m=!1,this.#y=!1;let n=e.options??[],r=n.length>0,i=(e.allowFreeform===!0||!r)&&r,a=n.length+ +!!i,o=questionSectionId(e.requestId),s=r?`select`:`text`,c=r?0:n.length,l=``,isOnFreeformRow=()=>i&&c===n.length,renderSection=()=>{let t=this.#oe();this.#q({id:o,kind:`question`,title:`Question`,rightTitle:`pending`,content:formatQuestionSectionContent(e,c)}),this.#te(t)};renderSection();let repaintStatus=()=>{if(s===`select`){let e=[`↑/↓ select`];e.push(isOnFreeformRow()?`enter type`:`enter confirm`),e.push(`Ctrl+C quit`),this.#_=e.join(` · `)}else{let e=this.#w?`_`:` `,t=[`enter send`];t.push(r?`esc back`:`esc clear`),t.push(`Ctrl+C quit`),this.#_=`> ${l}${e} ${t.join(` · `)}`}this.#ne()};s===`text`&&this.#V(),repaintStatus();let finalize=t=>{let n=this.#oe();this.#q({id:o,kind:`question`,title:`Question`,rightTitle:`answered`,content:formatAnsweredQuestionContent(e,t.label)}),this.#_=`Answered · Processing input... ↑/↓ scroll · Ctrl+C quit`,this.#H(),this.#R(),this.#te(n);let r={};return t.optionId!==void 0&&(r.optionId=t.optionId),t.text!==void 0&&(r.text=t.text),r};return await new Promise((t,i)=>{this.#E=o=>{let u=parseKey(o);if(u.type===`ctrl-c`){this.#y=!0,this.#H(),this.#I(),i(interruptedError());return}if(u.type===`ctrl-r`){this.#re();return}if(s===`select`){switch(u.type){case`up`:a>0&&(c=(c-1+a)%a,renderSection(),repaintStatus());break;case`down`:a>0&&(c=(c+1)%a,renderSection(),repaintStatus());break;case`enter`:{if(isOnFreeformRow()){s=`text`,l=``,this.#V(),repaintStatus();break}let e=n[c];e&&t(finalize({optionId:e.id,label:e.label}));break}default:break}return}switch(u.type){case`character`:l+=u.value,this.#U(),repaintStatus();break;case`backspace`:l=l.slice(0,-1),this.#U(),repaintStatus();break;case`enter`:{let n=resolveQuestionText(l,e);if(n===void 0)break;t(finalize(n));break}case`escape`:if(r){if(l.length>0){l=``,this.#U(),repaintStatus();break}s=`select`,l=``,this.#H(),repaintStatus();break}l=``,this.#U(),repaintStatus();break;default:break}},this.#L()})}#F(e){this.#g=e?.title??this.#g,this.#x=e?.contextSize??this.#c,!this.#v&&(this.#v=!0,this.#n.reset(),this.#n.writeControl(`\x1B[?1049h\x1B[?25l`),this.#Z(),this.#e.isTTY&&(this.#e.setRawMode?.(!0),this.#e.resume()),this.#D=()=>this.#re(),this.#t.on(`resize`,this.#D))}#I(){this.#R(),this.#H(),this.#v&&=(this.#e.isTTY&&(this.#e.setRawMode?.(!1),this.#e.pause()),this.#D&&=(this.#t.off(`resize`,this.#D),void 0),this.#Q(),this.#n.writeControl(`\x1B[?25h\x1B[?1049l`),this.#n.reset(),!1)}#L(){this.#E&&this.#e.on(`data`,this.#E)}#R(){this.#E&&=(this.#e.off(`data`,this.#E),void 0)}#z(e){let t=parseKey(e);switch(t.type){case`up`:case`down`:this.#B(t.type);break;case`ctrl-r`:this.#re();break;case`ctrl-c`:this.#y=!0,this.#O?.();break;default:break}}#B(e){let t=e===`up`?1:-1;this.#h=this.#ae(this.#h+t),this.#ne()}#V(){this.#H(),this.#U(),this.#T=setInterval(()=>{this.#w=!this.#w,this.#ne()},500),this.#T.unref?.()}#H(){this.#T&&=(clearInterval(this.#T),void 0),this.#w=!0}#U(){this.#w=!0}#W(e){if(e!=null){if(this.#P===e){this.#P=void 0;return}this.#G(e)}}#G(e){let t=this.#oe();this.#l.push({kind:`user`,title:`User`,content:e}),this.#te(t)}#K(e,t){let n=this.#oe(),r=new Set,i=extractAssistantResponseStatsFromMetadata(e.metadata);this.#b=i.totalTokens??this.#b,this.#S=i.outputTokens??this.#S,this.#C=i.tokensPerSecond??this.#C;for(let[n,i]of e.parts.entries()){let a=sectionId(e.id,n);switch(i.type){case`text`:{let e=i.text.trim();if(e.length===0)break;r.add(a),this.#q({id:a,kind:`assistant`,title:`Assistant`,rightTitle:formatAssistantResponseStats({totalTokens:this.#b,outputTokens:this.#S,tokensPerSecond:this.#C},t.assistantResponseStats),content:e});break}case`reasoning`:{let o=i.text.trim();if(t.reasoning===`hidden`||o.length===0)break;r.add(a),this.#q({id:a,kind:`reasoning`,title:`Reasoning`,content:o,collapsed:shouldCollapsePart(e,n,t.reasoning,t)});break}default:if(isToolUIPart(i)){if(t.tools===`hidden`||this.#u.has(i.toolCallId))break;r.add(a),this.#d.set(i.toolCallId,a),this.#q({id:a,...renderToolInvocation(i,{mode:t.tools,collapsed:shouldCollapsePart(e,n,t.tools,t)})})}break}}this.#J(e.id,r),this.#te(n)}#q(e){let t=e.id?this.#l.find(t=>t.id===e.id):void 0;if(t){let n=t.cache;t.kind=e.kind,t.title=e.title,t.rightTitle=e.rightTitle,t.content=e.content,t.collapsed=e.collapsed,t.cache=n&&sectionMatchesCache(e,n)?n:void 0;return}this.#l.push(e)}#J(e,t){let n=`${e}:`;this.#l=this.#l.filter(e=>e.id==null||!e.id.startsWith(n)||t.has(e.id))}async*#Y(e){let t=!1;for await(let n of iterateUIMessageStream(e)){let e=statusForStreamChunk(n,{hasPendingToolResults:t});if(n.type===`start-step`?t=!1:finishesToolExecution(n)&&(t=!0),e&&this.#_!==e?(this.#_=e,this.#ne()):startsVisibleAssistantStream(n)&&this.#_!==streamingStatus&&(this.#_=streamingStatus,this.#ne()),n.type===`finish`){let e=extractAssistantResponseStats(n);this.#b=e.totalTokens,this.#S=e.outputTokens,this.#C=e.tokensPerSecond}yield n}}upsertSubagentStep(e){if(this.#a===`hidden`)return;let t=this.#oe(),n=e.reasoning?.trim()??``,r=e.message?.trim()??``;if(n.length===0&&r.length===0){this.#te(t);return}let i=this.#a===`collapsed`||this.#a===`auto-collapsed`&&e.finalized,a=[];if(n.length>0){let e=n.split(`
2
+ `).map(e=>`${colors.dim} ${e}${colors.reset}`).join(`
3
+ `);a.push(e)}r.length>0&&a.push(r);let o={id:subagentStepSectionId(e.callId,e.sectionKey),kind:`subagent-step`,title:`Subagent · ${e.subagentName}`,content:a.join(`
4
+
5
+ `)};e.finalized||(o.rightTitle=`streaming`),i&&(o.collapsed=!0),this.#q(o),this.#te(t)}upsertSubagentTool(e){if(this.#a===`hidden`)return;let t=this.#oe(),n=this.#a===`collapsed`||this.#a===`auto-collapsed`&&e.status!==`executing`,r=[];e.input!==void 0&&r.push(`Input:\n${formatValue(e.input)}`),e.output===void 0?e.errorText!==void 0&&r.push(`Error:\n${e.errorText}`):r.push(`Output:\n${formatValue(e.output)}`);let i={id:subagentToolSectionId(e.callId,e.childCallId),kind:`subagent-tool`,title:`Subagent · ${e.subagentName} · Tool · ${e.toolName}`,rightTitle:e.status,content:r.join(`
6
+
7
+ `)};n&&(i.collapsed=!0),this.#q(i),this.#te(t)}markChildToolCallId(e){this.#u.add(e);let t=this.#d.get(e);if(t===void 0)return;let n=this.#oe();this.#l=this.#l.filter(e=>e.id!==t),this.#d.delete(e),this.#te(n)}isChildToolCallId(e){return this.#u.has(e)}upsertConnectionAuth(e){if(this.#o===`hidden`)return;let t=this.#oe(),n=e.state===`authorized`||e.state===`declined`||e.state===`failed`||e.state===`timed-out`,r=this.#o===`collapsed`||this.#o===`auto-collapsed`&&n,i={id:connectionAuthSectionId(e.name),kind:`connection-auth`,title:`Connection · ${e.name} · Auth`,rightTitle:e.state,content:formatConnectionAuthSectionContent(e)};r&&(i.collapsed=!0),this.#q(i),this.#te(t)}setConnectionAuthPendingCount(e){let t=Math.max(0,e);if(t===this.#f)return;let n=this.#f>0;this.#f=t,t>0?(this.#_=`Waiting for connection authorization — visit the URL above · Ctrl+C quit`,this.#ne()):n&&(this.#_=processingStatus,this.#ne())}reset(){this.#l=[],this.#u.clear(),this.#d.clear(),this.#P=void 0,this.#f=0,this.#h=0,this.#b=void 0,this.#S=void 0,this.#C=void 0,this.#v&&this.#re()}shutdown(){this.#I()}#X(e,t){let n=this.#oe();this.#l.push({kind:`error`,title:e,content:t}),this.#te(n)}#Z(){if(this.#k!==void 0||!this.#M)return;this.#A=``,this.#j=``;let capture=(e,t)=>{let n=e.write.bind(e);return e.write=((e,n,r)=>{let i=typeof n==`string`?n:void 0,a=typeof n==`function`?n:r;return this.#$(t,chunkToString(e,i)),a?.(),!0}),()=>{e.write=n}},e=capture(process.stdout,`stdout`),t=capture(process.stderr,`stderr`);this.#k=()=>{e(),t()}}#Q(){let e=this.#k;e!==void 0&&(this.#k=void 0,e(),this.#A.length>0&&(this.#ee(`stdout`)&&process.stdout.write(`${this.#A}\n`),this.#A=``),this.#j.length>0&&(this.#ee(`stderr`)&&process.stderr.write(`${this.#j}\n`),this.#j=``))}#$(e,n){let r=(e===`stdout`?this.#A:this.#j)+n,i=r.lastIndexOf(`
8
+ `),a=i===-1?r:r.slice(i+1);if(e===`stdout`?this.#A=a:this.#j=a,i===-1||!this.#ee(e))return;let o=stripAnsi(r.slice(0,i)).replace(/\s+$/u,``);if(o.trim().length===0)return;let s=this.#oe();this.#l.push({kind:`log`,title:`Log · ${e}`,content:o}),this.#te(s)}#ee(e){switch(this.#N){case`none`:return!1;case`stderr`:return e===`stderr`;case`all`:return!0}}#te(e){if(this.#h!==0){let t=this.#oe()-e;this.#h=this.#ae(this.#h+t)}this.#ne()}#ne(){let e=renderScreenViewport({width:this.#ce(),height:this.#le(),title:this.#g,rightTitle:formatTokenCount(this.#b,this.#x),visibleBodyLines:this.#ie(),input:this.#p,inputActive:this.#m,inputCursorVisible:this.#w,status:this.#_});this.#n.present(e)}#re(){this.#n.reset(),this.#ne()}#ie(){if(this.#l.length===0)return[`Waiting for input...`];let e=this.#se(),t=this.#oe(),n=Math.max(0,t-e-this.#h),r=n+e,i=[],a=0;for(let t of this.#l){let o=renderSectionLines(t,this.#ce()-4),s=a+o.length;if(s>n&&a<r&&i.push(...o.slice(Math.max(0,n-a),r-a)),i.length>=e)break;a=s}return i}#ae(e){let t=Math.max(0,this.#oe()-this.#se());return Math.min(Math.max(0,e),t)}#oe(){if(this.#l.length===0)return 1;let e=0;for(let t of this.#l)e+=renderSectionLines(t,this.#ce()-4).length;return e}#se(){return Math.max(1,this.#le()-5)}#ce(){return Math.max(20,this.#t.columns??80)}#le(){return Math.max(8,this.#t.rows??24)}async#ue(e){e?.waitForExit===!1||!this.#e.isTTY||this.#y||await new Promise(e=>{this.#E=t=>{let n=parseKey(t);switch(n.type){case`up`:case`down`:this.#B(n.type);break;case`ctrl-r`:this.#re();break;case`character`:n.value===`q`&&(this.#R(),e());break;case`ctrl-c`:this.#R(),process.exitCode=130,e();break;default:break}},this.#L()})}};function interruptedError(){return Error(`Interrupted`)}function chunkToString(e,t){return typeof e==`string`?e:Buffer.from(e).toString(t)}async function*takeUntil(e,t){let n=e[Symbol.asyncIterator](),r=t.then(()=>({done:!0,value:void 0}));for(;;){let e=await Promise.race([n.next(),r]);if(e.done)break;yield e.value}}function formatStreamError(e){return e instanceof Error?e.message:typeof e==`string`?e:JSON.stringify(e)}function renderToolInvocation(e,t){let n=getToolName(e),r=`Tool · ${e.title??n}`,i=`input`in e?e.input:void 0,a=i===void 0?`Input: (streaming...)`:`Input:\n${formatValue(i)}`,s=toolStatus(e);if(t.collapsed)return{kind:`tool`,title:r,rightTitle:s,content:``,collapsed:!0};switch(e.state){case`input-streaming`:return{kind:`tool`,title:r,rightTitle:s,content:a};case`input-available`:return{kind:`tool`,title:r,rightTitle:s,content:a};case`approval-requested`:return{kind:`tool`,title:r,rightTitle:s,content:a};case`approval-responded`:return{kind:`tool`,title:r,rightTitle:s,content:a};case`output-available`:return{kind:`tool`,title:r,rightTitle:s,content:`${a}\n\nOutput:\n${formatValue(e.output)}`};case`output-error`:return{kind:`error`,title:`Tool Error · ${e.title??n}`,rightTitle:s,content:`${a}\n\nError:\n${e.errorText}`};case`output-denied`:return{kind:`error`,title:`Tool Denied · ${e.title??n}`,rightTitle:s,content:`${a}\n\nReason: ${e.approval.reason??`denied`}`}}}function shouldCollapsePart(e,t,n,r){switch(n){case`collapsed`:return!0;case`auto-collapsed`:return e.parts.slice(t+1).some(e=>isVisibleAssistantPart(e,r));case`full`:case`hidden`:return!1}}function isVisibleAssistantPart(e,t){switch(e.type){case`text`:return e.text.trim().length>0;case`reasoning`:return t.reasoning!==`hidden`&&e.text.trim().length>0;default:return isToolUIPart(e)&&t.tools!==`hidden`}}function startsVisibleAssistantStream(e){switch(e.type){case`text-start`:case`text-delta`:case`reasoning-start`:case`reasoning-delta`:case`tool-input-start`:case`tool-input-delta`:return!0;default:return!1}}function statusForStreamChunk(e,{hasPendingToolResults:t}){switch(e.type){case`start-step`:return t?processingToolResultsStatus:processingStatus;case`tool-output-available`:case`tool-output-error`:case`tool-output-denied`:return processingToolResultsStatus;case`tool-input-available`:return executingToolsStatus;case`tool-approval-response`:return e.approved?executingToolsStatus:void 0;default:return}}function finishesToolExecution(e){switch(e.type){case`tool-output-available`:case`tool-output-error`:case`tool-output-denied`:return!0;default:return!1}}function toolStatus(e){switch(e.state){case`input-streaming`:return`waiting`;case`approval-requested`:return`approval requested`;case`input-available`:return`executing`;case`approval-responded`:return e.approval.approved?`executing`:`denied`;case`output-available`:case`output-error`:return`done`;case`output-denied`:return`denied`}}function formatValue(e){return typeof e==`string`?e:JSON.stringify(e,null,2)}function formatToolApprovalTitle(e){return`tool ${e.title??e.toolName}`}function sectionId(e,t){return`${e}:${t}`}function questionSectionId(e){return`question:${e}`}function subagentStepSectionId(e,t){return`subagent:${e}:step:${t}`}function subagentToolSectionId(e,t){return`subagent:${e}:tool:${t}`}function connectionAuthSectionId(e){return`connection-auth:${e}`}function formatConnectionAuthSectionContent(e){let t=[];e.description.length>0&&t.push(e.description);let n=e.challenge;return n?.url&&t.push(`URL: ${n.url}`),n?.userCode&&t.push(`Code: ${n.userCode}`),n?.expiresAt&&t.push(`Expires: ${n.expiresAt}`),n?.instructions&&t.push(n.instructions),e.reason!==void 0&&e.reason.length>0&&t.push(`Reason: ${e.reason}`),t.join(`
9
+ `)}function formatQuestionSectionContent(e,t){let n=[];n.push(e.prompt),n.push(``);let r=e.options??[];if(r.length>0){for(let[e,i]of r.entries()){let r=i.description?` — ${i.description}`:``,a=t===e,o=a?`▸ `:` `,s=`${i.label}${r}`,c=a?`${colors.question}${o}${s}${colors.reset}`:`${o}${s}`;n.push(c)}if(e.allowFreeform===!0){let e=t===r.length,i=e?`▸ `:` `,a=`Type your own answer`;n.push(e?`${colors.question}${i}${a}${colors.reset}`:`${colors.dim}${i}${a}${colors.reset}`)}}else n.push(`${colors.dim} (type your answer)${colors.reset}`);return n.join(`
10
+ `)}function formatAnsweredQuestionContent(e,t){return`${e.prompt}\n\n ✓ ${t}`}function resolveQuestionText(e,t){let n=e.trim();if(n.length===0)return;let r=n.toLowerCase(),i=t.options??[];if(i.length>0){let e=matchQuestionOption(r,i);if(e!==void 0)return{optionId:e.id,label:e.label}}if(t.allowFreeform===!0||i.length===0)return{text:n,label:n}}function matchQuestionOption(e,t){let n=t.find(t=>t.id.toLowerCase()===e);if(n!==void 0)return n;let r=t.find(t=>t.label.toLowerCase()===e);if(r!==void 0)return r;let i=Number(e);if(Number.isInteger(i)&&i>0&&i<=t.length)return t[i-1]}function toReadableStream(e){return e instanceof ReadableStream?e:new ReadableStream({async start(t){try{for await(let n of e)t.enqueue(n);t.close()}catch(e){t.error(e)}}})}async function*iterateUIMessageStream(e){if(e instanceof ReadableStream){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}return}yield*e}function renderSectionLines(e,t){if(e.cache&&sectionMatchesCache(e,e.cache,t))return e.cache.lines;let n=createSectionLines(e,t);return e.cache={width:t,kind:e.kind,title:e.title,rightTitle:e.rightTitle,content:e.content,collapsed:e.collapsed===!0,lines:n},n}function sectionMatchesCache(e,t,n=t.width){return t.width===n&&t.kind===e.kind&&t.title===e.title&&t.rightTitle===e.rightTitle&&t.content===e.content&&t.collapsed===(e.collapsed===!0)}function createSectionLines(e,t){let n=sectionStyles[e.kind],i=Math.max(1,t-4),a=` ${e.title} `,o=e.rightTitle?` ${e.rightTitle} `:``;if(e.collapsed){let e=Math.max(0,t-2-a.length-o.length);return[`${n.color}╭${a}${n.border.repeat(e)}${o}╮${colors.reset}`,`${n.color}╰${n.border.repeat(Math.max(0,t-2))}╯${colors.reset}`]}let s=Math.max(0,t-2-a.length-o.length),c=`${n.color}╭${a}${n.border.repeat(s)}${o}╮${colors.reset}`,d=`${n.color}╰${n.border.repeat(Math.max(0,t-2))}╯${colors.reset}`;return[c,...(e.content.length===0?colors.dim+`(streaming...)`+colors.reset:e.kind===`log`?e.content:renderMarkdown(e.content)).split(`
11
+ `).flatMap(e=>wrapVisibleLine(e,i)).map(e=>sectionLine(e,i,n.color)),d]}function sectionLine(t,r,i){let a=sliceVisible(t,r),o=` `.repeat(Math.max(0,r-visibleLength(a)));return`${i}│${colors.reset} ${a}${o} ${i}│${colors.reset}`}function wrapVisibleLine(e,t){if(e.length===0)return[``];let r=[],i=e;for(;visibleLength(i)>t;){let e=findVisibleBreakPoint(i,t);r.push(i.slice(0,e).trimEnd()),i=i.slice(e).trimStart()}return r.push(i),r}function findVisibleBreakPoint(t,n){let r=sliceVisible(t,n+1).lastIndexOf(` `);return r>0?r:sliceVisible(t,n).length}function extractAssistantResponseStats(e){let t=`usage`in e?e.usage:void 0,n=`messageMetadata`in e?e.messageMetadata?.usage:void 0,r=`messageMetadata`in e?e.messageMetadata?.performance:void 0;return{totalTokens:extractTotalTokenCountFromUsage(t??n),outputTokens:extractOutputTokenCountFromUsage(t??n),tokensPerSecond:r?.outputTokensPerSecond}}function extractAssistantResponseStatsFromMetadata(e){let t=e;return{totalTokens:extractTotalTokenCountFromUsage(t?.usage),outputTokens:extractOutputTokenCountFromUsage(t?.usage),tokensPerSecond:t?.performance?.outputTokensPerSecond}}function extractTotalTokenCountFromUsage(e){let t=e?.totalTokens;if(typeof t==`number`)return t;if(typeof t?.total==`number`)return t.total;let n=extractInputTokenCountFromUsage(e),r=extractOutputTokenCountFromUsage(e);if(n!=null&&r!=null)return n+r}function extractInputTokenCountFromUsage(e){let t=e?.inputTokens;return typeof t==`number`?t:typeof t?.total==`number`?t.total:e?.promptTokens}function extractOutputTokenCountFromUsage(e){let t=e?.outputTokens;return typeof t==`number`?t:typeof t?.total==`number`?t.total:e?.completionTokens}function formatTokenCount(e,t){if(e==null)return;let n=`${e.toLocaleString()} ${e===1?`token`:`tokens`}`,r=formatContextPercentage(e,t);return r==null?n:`${n} ${r}`}function formatContextPercentage(e,t){if(!(t==null||t<=0||!Number.isFinite(t)))return`${Math.round(e/t*100).toLocaleString()}%`}function formatAssistantResponseStats(e,t){return t===`tokensPerSecond`?formatTokensPerSecond(e.tokensPerSecond):formatTokenCount(e.outputTokens)}function formatTokensPerSecond(e){if(e!=null)return`${formatNumber(e)} tok/s`}function formatNumber(e){return Number.isInteger(e)?e.toLocaleString():e.toLocaleString(void 0,{maximumFractionDigits:1})}function parseKey(e){let t=e.toString(`utf8`);switch(t){case``:return{type:`ctrl-r`};case``:return{type:`ctrl-c`};case`\r`:case`
12
+ `:return{type:`enter`};case``:case`\b`:return{type:`backspace`};case`\x1B[A`:return{type:`up`};case`\x1B[B`:return{type:`down`};case`\x1B[C`:return{type:`right`};case`\x1B[D`:return{type:`left`};case` `:return{type:`tab`};case`\x1B`:return{type:`escape`};default:return t>=` `&&t!==``?{type:`character`,value:t}:{type:`ignore`}}}export{TerminalRenderer,parseKey};
@@ -0,0 +1,6 @@
1
+ export declare const ansiPattern: RegExp;
2
+ export declare const ansiPrefixPattern: RegExp;
3
+ export declare function stripAnsi(input: string): string;
4
+ export declare function visibleLength(input: string): number;
5
+ export declare function sliceVisible(input: string, width: number): string;
6
+ export declare function codePointWidth(codePoint: number): number;
@@ -0,0 +1 @@
1
+ const ansiPattern=RegExp(`\x1B\\[[0-?]*[ -/]*[@-~]`,`g`),ansiPrefixPattern=RegExp(`^\x1B\\[[0-?]*[ -/]*[@-~]`);function stripAnsi(t){return t.replaceAll(ansiPattern,``)}function visibleLength(e){let n=0,r=0;for(;r<e.length;){let i=e.slice(r).match(ansiPrefixPattern);if(i){r+=i[0].length;continue}let a=e.codePointAt(r);if(a==null)break;let o=String.fromCodePoint(a);n+=codePointWidth(a),r+=o.length}return n}function sliceVisible(e,n){if(n<=0)return``;let r=``,i=0,a=0;for(;a<e.length&&i<n;){let o=e.slice(a).match(ansiPrefixPattern);if(o){r+=o[0],a+=o[0].length;continue}let s=e.codePointAt(a);if(s==null)break;let c=String.fromCodePoint(s),l=codePointWidth(s);if(l>0&&i+l>n)break;r+=c,a+=c.length,i+=l}for(;a<e.length;){let n=e.slice(a).match(ansiPrefixPattern);if(!n)break;r+=n[0],a+=n[0].length}return r}function codePointWidth(e){return e===9?4:e<32||e>=127&&e<160||isZeroWidthCodePoint(e)?0:isWideCodePoint(e)?2:1}function isZeroWidthCodePoint(e){return e>=768&&e<=879||e>=1155&&e<=1161||e>=1425&&e<=1469||e===1471||e>=1473&&e<=1474||e>=1476&&e<=1477||e===1479||e>=1552&&e<=1562||e>=1611&&e<=1631||e===1648||e>=1750&&e<=1756||e>=1759&&e<=1764||e>=1767&&e<=1768||e>=1770&&e<=1773||e===1809||e>=1840&&e<=1866||e>=1958&&e<=1968||e>=2027&&e<=2035||e>=2070&&e<=2073||e>=2075&&e<=2083||e>=2085&&e<=2087||e>=2089&&e<=2093||e>=2137&&e<=2139||e>=2259&&e<=2306||e===2362||e===2364||e>=2369&&e<=2376||e===2381||e>=2385&&e<=2391||e===8205||e>=65024&&e<=65039||e>=917760&&e<=917999}function isWideCodePoint(e){return e>=4352&&(e<=4447||e===9001||e===9002||e>=11904&&e<=42191&&e!==12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=127744&&e<=128591||e>=129280&&e<=129535||e>=131072&&e<=262141)}export{ansiPattern,ansiPrefixPattern,codePointWidth,sliceVisible,stripAnsi,visibleLength};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Test-only entrypoint for driving the `eve dev` terminal UI from
3
+ * end-to-end smoke tests. Consumed via `smoke-tests/lib/tui.ts`, which
4
+ * imports the built output directly by path. Not part of the supported
5
+ * public API — production code reaches the TUI through the internal
6
+ * `#cli/dev/tui/*` modules instead.
7
+ */
8
+ export { EveTUIRunner } from "../runner.js";
9
+ export type { EveTUIRunnerOptions } from "../runner.js";
10
+ export { TerminalRenderer } from "../terminal-renderer.js";
11
+ export { MockScreen, MockUserInput } from "./mock-terminal.js";
@@ -0,0 +1 @@
1
+ import{TerminalRenderer}from"../terminal-renderer.js";import{EveTUIRunner}from"../runner.js";import{MockScreen,MockUserInput}from"./mock-terminal.js";export{EveTUIRunner,MockScreen,MockUserInput,TerminalRenderer};
@@ -0,0 +1,28 @@
1
+ import { EventEmitter } from "node:events";
2
+ import type { TerminalInput, TerminalOutput } from "../terminal-renderer.js";
3
+ export declare class MockUserInput extends EventEmitter implements TerminalInput {
4
+ isTTY: boolean;
5
+ rawModes: boolean[];
6
+ resumeCalls: number;
7
+ pauseCalls: number;
8
+ setRawMode(mode: boolean): this;
9
+ resume(): this;
10
+ pause(): this;
11
+ type(text: string): void;
12
+ enter(): void;
13
+ ctrlC(): void;
14
+ }
15
+ export declare class MockScreen extends EventEmitter implements TerminalOutput {
16
+ #private;
17
+ columns: number;
18
+ rows: number;
19
+ constructor({ columns, rows }: {
20
+ columns: number;
21
+ rows: number;
22
+ });
23
+ write(chunk: string | Uint8Array, encodingOrCallback?: BufferEncoding | ((error?: Error | null) => void), callback?: (error?: Error | null) => void): boolean;
24
+ resize(columns: number, rows: number): void;
25
+ snapshot(): string;
26
+ rawOutput(): string;
27
+ waitForText(text: string, timeoutMs?: number, getDebugOutput?: () => string): Promise<void>;
28
+ }
@@ -0,0 +1,3 @@
1
+ import{EventEmitter}from"node:events";const ansiControlSequencePattern=RegExp(`^\x1B\\[([0-9?;]*)([ -/]*)([@-~])`);var MockUserInput=class extends EventEmitter{isTTY=!0;rawModes=[];resumeCalls=0;pauseCalls=0;setRawMode(e){return this.rawModes.push(e),this}resume(){return this.resumeCalls+=1,this}pause(){return this.pauseCalls+=1,this}type(e){this.emit(`data`,Buffer.from(e))}enter(){this.emit(`data`,Buffer.from(`\r`))}ctrlC(){this.emit(`data`,Buffer.from(``))}},MockScreen=class extends EventEmitter{columns;rows;#e=``;#t=[];#n=0;#r=0;#i=[];constructor({columns:e,rows:t}){super(),this.columns=e,this.rows=t}write(e,t,n){let r=String(e);return this.#e+=r,this.#o(r),typeof t==`function`&&t(),n?.(),this.#a(),!0}resize(e,t){this.columns=e,this.rows=t,this.emit(`resize`)}snapshot(){return this.#t.join(`
2
+ `)}rawOutput(){return this.#e}async waitForText(e,t=1e3,n=()=>this.snapshot()){this.snapshot().includes(e)||await new Promise((r,i)=>{let a={text:e,resolve:r,reject:i,timeout:setTimeout(()=>{this.#i=this.#i.filter(e=>e!==a),i(Error(`Timed out waiting for screen text: ${e}\n\nScreen:\n${n()}`))},t)};this.#i.push(a)})}#a(){let e=this.snapshot();for(let t of this.#i.slice())e.includes(t.text)&&(clearTimeout(t.timeout),this.#i=this.#i.filter(e=>e!==t),t.resolve())}#o(e){let t=0;for(;t<e.length;){if(e[t]===`\x1B`){let n=this.#s(e,t);if(n>t){t=n;continue}}let n=e[t];if(t+=1,n!==void 0){if(n===`
3
+ `){this.#n+=1,this.#r=0;continue}if(n===`\r`){this.#r=0;continue}this.#c(n)}}}#s(e,n){let r=e.slice(n).match(ansiControlSequencePattern);if(!r)return n;let[i,a,,o]=r,s=a?a.split(`;`):[];return o===`H`&&s.length===0?(this.#n=0,this.#r=0):o===`J`&&s[0]===`2`?this.#t=[]:o===`K`&&s[0]===`2`?(this.#t[this.#n]=``,this.#r=0):o===`H`&&(this.#n=Number(s[0]??1)-1,this.#r=Number(s[1]??1)-1),n+i.length}#c(e){let t=this.#t[this.#n]??``,n=t.slice(0,this.#r)+e+t.slice(this.#r+e.length);this.#t[this.#n]=n,this.#r+=e.length}};export{MockScreen,MockUserInput};
@@ -0,0 +1,32 @@
1
+ import type { ClientOptions } from "#client/index.js";
2
+ import type { TuiDisplayOptions } from "./types.js";
3
+ /**
4
+ * Options for running the `eve dev` terminal UI against a server URL.
5
+ */
6
+ export interface RunDevelopmentTuiInput extends TuiDisplayOptions {
7
+ /**
8
+ * The Eve server URL the TUI connects to — either the in-process dev
9
+ * server started by `eve dev`, or a remote `--url` target.
10
+ */
11
+ readonly serverUrl: string;
12
+ }
13
+ /**
14
+ * Runs the `eve dev` terminal UI against the given server URL until the
15
+ * user exits.
16
+ *
17
+ * Builds the client with the same development auth/header resolution the
18
+ * REPL's dev client uses (`#services/dev-client`): local hosts skip the
19
+ * Vercel OIDC bearer, remote hosts attach it alongside any protection
20
+ * bypass headers. The configured client is handed to the runner so its
21
+ * subagent child-session streams inherit the same auth. Turn-dispatch
22
+ * failures — including the Vercel Deployment Protection challenge — are
23
+ * formatted into the inline error region rather than crashing the command.
24
+ */
25
+ /**
26
+ * Builds the client options the `eve dev` TUI connects with, matching the
27
+ * REPL's dev client: local hosts skip the Vercel OIDC bearer (the framework's
28
+ * `localDev()` channel auth accepts unauthenticated calls); remote hosts
29
+ * attach it alongside any protection-bypass headers resolved per request.
30
+ */
31
+ export declare function resolveDevTuiClientOptions(serverUrl: string): ClientOptions;
32
+ export declare function runDevelopmentTui(input: RunDevelopmentTuiInput): Promise<void>;
@@ -0,0 +1 @@
1
+ import{EveTUIRunner}from"./runner.js";import{toErrorMessage}from"#shared/errors.js";import{isLocalDevelopmentServerUrl,resolveDevelopmentClientHeaders,resolveDevelopmentOidcToken}from"#services/dev-client/request-headers.js";import{formatVercelAuthChallengeMessage,isVercelAuthChallenge}from"#services/dev-client/vercel-auth-error.js";import{Client}from"#client/index.js";function resolveDevTuiClientOptions(e){let t={headers:()=>resolveDevelopmentClientHeaders({serverUrl:e}),host:e};return isLocalDevelopmentServerUrl(e)?t:{...t,auth:{bearer:resolveDevelopmentOidcToken}}}async function runDevelopmentTui(n){let{serverUrl:r,...i}=n,a=new Client(resolveDevTuiClientOptions(r));await new EveTUIRunner({...i,session:a.session(),client:a,serverUrl:r,formatTransportError:e=>isVercelAuthChallenge(e)?formatVercelAuthChallengeMessage({serverUrl:r}):toErrorMessage(e)}).run()}export{resolveDevTuiClientOptions,runDevelopmentTui};
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Controls how terminal UI sections for stream parts are displayed.
3
+ */
4
+ export type TerminalPartDisplayMode = "full" | "collapsed" | "auto-collapsed" | "hidden";
5
+ /**
6
+ * Controls which usage statistic is shown for assistant responses.
7
+ */
8
+ export type AssistantResponseStatsMode = "tokens" | "tokensPerSecond";
9
+ /**
10
+ * Controls which in-process server/agent logs the TUI surfaces as inline
11
+ * regions. `all` shows both stdout and stderr; `stderr` shows only stderr;
12
+ * `none` suppresses log regions entirely.
13
+ */
14
+ export type LogDisplayMode = "all" | "stderr" | "none";
15
+ /**
16
+ * Display options shared by the terminal UI runner and renderer.
17
+ */
18
+ export type TuiDisplayOptions = {
19
+ /**
20
+ * The title shown in the terminal UI.
21
+ */
22
+ name?: string;
23
+ /**
24
+ * How tool calls should render.
25
+ */
26
+ tools?: TerminalPartDisplayMode;
27
+ /**
28
+ * How reasoning parts should render.
29
+ */
30
+ reasoning?: TerminalPartDisplayMode;
31
+ /**
32
+ * How subagent sections should render. `full` shows every nested child
33
+ * event line and the subagent's output; `auto-collapsed` collapses the
34
+ * section once the subagent reaches `done`; `collapsed` always shows
35
+ * only the header; `hidden` skips the section entirely.
36
+ */
37
+ subagents?: TerminalPartDisplayMode;
38
+ /**
39
+ * How MCP connection authorization sections should render. `full`
40
+ * shows the challenge URL and any user code; `auto-collapsed`
41
+ * collapses the section once authorization reaches a terminal
42
+ * outcome (`authorized`, `declined`, `failed`, `timed-out`);
43
+ * `collapsed` always shows only the header. `hidden` is supported
44
+ * but strongly discouraged: a hidden auth challenge looks identical
45
+ * to a hung turn from the user's perspective.
46
+ */
47
+ connectionAuth?: TerminalPartDisplayMode;
48
+ /**
49
+ * Which statistic to show in assistant response headers.
50
+ *
51
+ * @default "tokensPerSecond"
52
+ */
53
+ assistantResponseStats?: AssistantResponseStatsMode;
54
+ /**
55
+ * The model context window size in tokens.
56
+ *
57
+ * When provided, the terminal UI shows the current total token usage as a
58
+ * percentage of this context window.
59
+ */
60
+ contextSize?: number;
61
+ /**
62
+ * Which in-process server/agent logs to surface as inline regions.
63
+ * Output is always captured so it cannot corrupt the frame; this only
64
+ * controls what is rendered. Defaults to `all` — the TUI is primarily a
65
+ * development tool.
66
+ */
67
+ logs?: LogDisplayMode;
68
+ };
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Parse and normalize an Eve server URL for the development REPL.
3
+ */
4
+ export declare function parseDevelopmentServerUrl(value: string): string;
@@ -0,0 +1 @@
1
+ import{InvalidArgumentError}from"#compiled/commander/index.js";const DEVELOPMENT_SERVER_PROTOCOLS=new Set([`http:`,`https:`]);function assertDevelopmentServerProtocol(n,r){if(!DEVELOPMENT_SERVER_PROTOCOLS.has(n.protocol))throw new InvalidArgumentError(`Expected an absolute http(s) URL, received "${r}".`)}function parseDevelopmentServerUrl(t){let n=t.trim();try{let e=new URL(n);return assertDevelopmentServerProtocol(e,t),e.hash=``,e.search=``,e.toString()}catch(n){throw n instanceof InvalidArgumentError?n:new InvalidArgumentError(`Expected an absolute http(s) URL, received "${t}".`)}}export{parseDevelopmentServerUrl};
@@ -0,0 +1,112 @@
1
+ import type { AssistantResponseStatsMode, LogDisplayMode, TerminalPartDisplayMode, TuiDisplayOptions } from "#cli/dev/tui/types.js";
2
+ interface CliLogger {
3
+ error(message: string): void;
4
+ log(message: string): void;
5
+ }
6
+ interface DevelopmentCliOptions {
7
+ assistantResponseStats?: AssistantResponseStatsMode;
8
+ connectionAuth?: TerminalPartDisplayMode;
9
+ contextSize?: number;
10
+ host?: string;
11
+ logs?: LogDisplayMode;
12
+ name?: string;
13
+ port?: number;
14
+ reasoning?: TerminalPartDisplayMode;
15
+ repl?: boolean;
16
+ subagents?: TerminalPartDisplayMode;
17
+ tools?: TerminalPartDisplayMode;
18
+ ui?: boolean;
19
+ url?: string;
20
+ }
21
+ interface DevelopmentServerHandle {
22
+ readonly url: string;
23
+ close(): Promise<void>;
24
+ }
25
+ interface ProductionServerHandle {
26
+ readonly url: string;
27
+ close(): Promise<void>;
28
+ wait(): Promise<void>;
29
+ }
30
+ interface CliRuntimeDependencies {
31
+ buildHost(appRoot: string): Promise<string>;
32
+ printApplicationInfo(logger: CliLogger, appRoot: string, options?: {
33
+ json?: boolean;
34
+ }): Promise<void>;
35
+ runDevelopmentRepl(input: {
36
+ serverUrl: string;
37
+ }): Promise<void>;
38
+ runDevelopmentTui(input: {
39
+ serverUrl: string;
40
+ } & TuiDisplayOptions): Promise<void>;
41
+ runEvalCommand(options: EvalCliOptions, logger: CliLogger): Promise<void>;
42
+ startHost(appRoot: string, options?: {
43
+ host?: string;
44
+ port?: number;
45
+ }): Promise<DevelopmentServerHandle>;
46
+ startProductionHost(appRoot: string, options?: {
47
+ host?: string;
48
+ port?: number;
49
+ }): Promise<ProductionServerHandle>;
50
+ }
51
+ type CliRuntimeOverrides = Partial<CliRuntimeDependencies>;
52
+ interface EvalCliOptions {
53
+ all?: boolean;
54
+ json?: boolean;
55
+ maxConcurrency?: string;
56
+ skipReport?: boolean;
57
+ suite?: string[];
58
+ timeout?: string;
59
+ url?: string;
60
+ }
61
+ /**
62
+ * The interactive UI `eve dev` runs against a server.
63
+ *
64
+ * - `tui` — the default terminal UI.
65
+ * - `repl` — the classic line-based REPL (`--repl`).
66
+ * - `headless` — no UI: just keep the server running (`--no-ui`, or a
67
+ * non-interactive terminal).
68
+ *
69
+ * Exported for unit coverage of the flag-routing contract.
70
+ */
71
+ export type DevUiMode = "tui" | "repl" | "headless";
72
+ /**
73
+ * Resolves which UI `eve dev` should run from the parsed flags and whether
74
+ * the terminal is interactive. `--no-ui` and non-TTY terminals force
75
+ * `headless`; `--repl` selects the classic REPL; otherwise the terminal UI
76
+ * is the default.
77
+ */
78
+ export declare function resolveDevUiMode(input: {
79
+ options: Pick<DevelopmentCliOptions, "repl" | "ui">;
80
+ interactive: boolean;
81
+ }): DevUiMode;
82
+ /**
83
+ * Resolves the terminal UI's header title: an explicit `--name`, else the
84
+ * remote server's host (for `--url`), else the humanized app-folder name
85
+ * (e.g. `apps/weather-agent` → "Weather Agent"). Returns `undefined` when
86
+ * nothing meaningful can be derived, so the runner falls back to its own
87
+ * default.
88
+ */
89
+ export declare function resolveTuiTitle(input: {
90
+ name: string | undefined;
91
+ remoteServerUrl: string | undefined;
92
+ appRoot: string;
93
+ }): string | undefined;
94
+ /**
95
+ * Builds the terminal-UI display options for `eve dev`. Tools default to
96
+ * `auto-collapsed` and reasoning to `full` — the combination the example
97
+ * apps' former `tui` scripts shipped — while the other dimensions fall
98
+ * back to the runner's own defaults when unset.
99
+ */
100
+ export declare function resolveTuiDisplayOptions(options: DevelopmentCliOptions): TuiDisplayOptions;
101
+ /**
102
+ * Rewrites the deprecated `eve dev --no-repl` flag to its replacement
103
+ * `--no-ui`. The TUI is now the default UI, so "no REPL" no longer
104
+ * describes "no interactive UI"; `--no-repl` is kept as a silent alias so
105
+ * existing scripts and programmatic spawns (e.g. `withEve`) keep working.
106
+ */
107
+ export declare function rewriteDeprecatedReplFlag(argv: readonly string[]): string[];
108
+ /**
109
+ * Runs the Eve CLI entrypoint.
110
+ */
111
+ export declare function runCli(argv?: string[], logger?: CliLogger, runtime?: CliRuntimeOverrides): Promise<void>;
112
+ export {};
@@ -0,0 +1,3 @@
1
+ import{basename}from"node:path";import{createCliTheme,renderCliTaggedLine}from"#cli/ui/output.js";import{Command,CommanderError,InvalidArgumentError}from"#compiled/commander/index.js";import{resolveApplicationRoot}from"#internal/application/paths.js";import{resolveInstalledPackageInfo}from"#internal/application/package.js";import{parseDevelopmentServerUrl}from"#cli/dev/url.js";async function loadBuildHost(){return(await import(`#internal/nitro/host.js`)).buildApplication}async function loadPrintApplicationInfo(){return(await import(`#cli/commands/info.js`)).printApplicationInfo}async function loadRunDevelopmentRepl(){return(await import(`#cli/dev/repl/repl.js`)).runDevelopmentRepl}async function loadRunDevelopmentTui(){return(await import(`#cli/dev/tui/tui.js`)).runDevelopmentTui}async function loadRunEvalCommand(){return(await import(`#evals/cli/eval.js`)).runEvalCommand}async function loadStartHost(){return(await import(`#internal/nitro/host.js`)).startDevelopmentServer}async function loadStartProductionHost(){return(await import(`#internal/nitro/host.js`)).startProductionServer}function shouldPrintCliBootBanner(e){return e.name()===`info`||e.name()===`dev`}async function waitForShutdownSignal(e){await new Promise((t,n)=>{let r=!1,cleanup=()=>{process.off(`SIGINT`,handleSignal),process.off(`SIGTERM`,handleSignal)},handleSignal=()=>{r||(r=!0,cleanup(),e.close().then(t,n))};process.once(`SIGINT`,handleSignal),process.once(`SIGTERM`,handleSignal)})}async function waitForProductionServer(e){await Promise.race([e.wait(),waitForShutdownSignal({close:()=>e.close()})])}function parsePortOption(e){if(!/^-?\d+$/.test(e))throw new InvalidArgumentError(`Expected a numeric port, received "${e}".`);let t=Number(e);if(t<0||t>65535)throw new InvalidArgumentError(`Expected a port between 0 and 65535, received "${e}".`);return t}const DISPLAY_MODES=new Set([`full`,`collapsed`,`auto-collapsed`,`hidden`]),STATS_MODES=new Set([`tokens`,`tokensPerSecond`]),LOG_MODES=new Set([`all`,`stderr`,`none`]);function parseDisplayMode(e){if(!DISPLAY_MODES.has(e))throw new InvalidArgumentError(`Expected one of ${[...DISPLAY_MODES].join(`, `)}, received "${e}".`);return e}function parseStatsMode(e){if(!STATS_MODES.has(e))throw new InvalidArgumentError(`Expected one of ${[...STATS_MODES].join(`, `)}, received "${e}".`);return e}function parseLogsMode(e){if(!LOG_MODES.has(e))throw new InvalidArgumentError(`Expected one of ${[...LOG_MODES].join(`, `)}, received "${e}".`);return e}function parseContextSizeOption(e){let t=Number(e);if(!Number.isFinite(t)||t<=0)throw new InvalidArgumentError(`Expected a positive number, received "${e}".`);return t}function resolveDevUiMode(e){return e.options.ui===!1||!e.interactive?`headless`:e.options.repl===!0?`repl`:`tui`}function resolveTuiTitle(t){if(t.name!==void 0&&t.name.length>0)return t.name;if(t.remoteServerUrl!==void 0)try{return new URL(t.remoteServerUrl).host}catch{return}let n=humanizeProjectName(basename(t.appRoot));return n.length>0?n:void 0}function humanizeProjectName(e){return e.replace(/[-_.]+/gu,` `).trim().split(/\s+/u).filter(e=>e.length>0).map(e=>e[0].toUpperCase()+e.slice(1)).join(` `)}function resolveTuiDisplayOptions(e){let t={reasoning:e.reasoning??`full`,tools:e.tools??`auto-collapsed`};return e.subagents!==void 0&&(t.subagents=e.subagents),e.connectionAuth!==void 0&&(t.connectionAuth=e.connectionAuth),e.assistantResponseStats!==void 0&&(t.assistantResponseStats=e.assistantResponseStats),e.contextSize!==void 0&&(t.contextSize=e.contextSize),e.logs!==void 0&&(t.logs=e.logs),t}function hasInteractiveTerminal(){return!!(process.stdin.isTTY&&process.stdout.isTTY)}function rewriteDeprecatedReplFlag(e){return e[0]===`dev`?e.map(e=>e===`--no-repl`?`--no-ui`:e):[...e]}function rewriteDevelopmentUrlShorthand(e){let t=e[1];return e[0]!==`dev`||e.length!==2||t===void 0||t.startsWith(`-`)?[...e]:[`dev`,`--url`,t]}function resolveRemoteDevelopmentServerUrl(e){if(e.url){if(e.host!==void 0)throw new InvalidArgumentError(`The --host option cannot be used with --url.`);if(e.port!==void 0)throw new InvalidArgumentError(`The --port option cannot be used with --url.`);if(e.ui===!1)throw new InvalidArgumentError(`The --no-ui option cannot be used with --url.`);return e.url}}function createCliProgram(e,i){let a=resolveApplicationRoot(),l=resolveInstalledPackageInfo().version,u=new Command,d=createCliTheme();u.name(`eve`).description(`Build and run an Eve application.`).version(l).showHelpAfterError().exitOverride().hook(`preAction`,(t,n)=>{shouldPrintCliBootBanner(n)&&e.log(`Eve (v${l})`)}).configureOutput({writeErr:t=>{e.error(t.trimEnd())},writeOut:t=>{e.log(t.trimEnd())}});let f=u.command(`channels`).description(`Manage user-authored channels in the current project.`);return f.command(`add [kind]`).description(`Add channels interactively, or scaffold a channel kind (slack | web).`).option(`-f, --force`,`Overwrite existing channel files`).option(`-y, --yes`,`Assume yes for confirmations; requires an explicit channel kind`).action(async(t,n)=>{let{runChannelsAddCommand:r}=await import(`#cli/commands/channels.js`);await r(e,a,{kind:t,options:n})}),f.command(`list`).description(`List user-authored channels in the current project.`).option(`--json`,`Output as JSON`).action(async t=>{let{runChannelsListCommand:n}=await import(`#cli/commands/channels.js`);await n(e,a,t)}),u.command(`build`).description(`Build the current Eve application.`).action(async()=>{let{loadDevelopmentEnvironmentFiles:t}=await import(`#cli/dev/environment.js`);t(a);let r=await(i.buildHost??await loadBuildHost())(a);e.log(renderCliTaggedLine(d,{message:`built output at ${r}`,tag:`build`,tone:`success`}))}),u.command(`start`).description(`Start a built Eve application.`).option(`--host <host>`,`Host interface to bind`).option(`--port <port>`,`Port to listen on (defaults to $PORT, then 3000)`,parsePortOption).action(async t=>{let{loadDevelopmentEnvironmentFiles:r}=await import(`#cli/dev/environment.js`);r(a);let o=await(i.startProductionHost??await loadStartProductionHost())(a,{host:t.host,port:t.port});e.log(renderCliTaggedLine(d,{message:`server listening at ${o.url}`,tag:`start`,tone:`success`})),await waitForProductionServer(o)}),u.command(`dev`).description(`Start the Eve development server or connect to an existing URL.`).option(`--host <host>`,`Host interface to bind`).option(`--port <port>`,`Port to listen on (defaults to $PORT, then 3000)`,parsePortOption).option(`-u, --url <url>`,`Connect to an existing server URL`,parseDevelopmentServerUrl).option(`--repl`,`Use the classic line-based REPL instead of the default terminal UI`).option(`--no-ui`,`Start the server without an interactive UI`).option(`--name <name>`,`Title shown in the terminal UI (defaults to the app folder name)`).option(`--tools <mode>`,`How tool calls render: full | collapsed | auto-collapsed | hidden`,parseDisplayMode).option(`--reasoning <mode>`,`How reasoning renders: full | collapsed | auto-collapsed | hidden`,parseDisplayMode).option(`--subagents <mode>`,`How subagent sections render: full | collapsed | auto-collapsed | hidden`,parseDisplayMode).option(`--connection-auth <mode>`,`How connection authorization renders: full | collapsed | auto-collapsed | hidden`,parseDisplayMode).option(`--assistant-response-stats <mode>`,`Assistant header statistic: tokens | tokensPerSecond`,parseStatsMode).option(`--context-size <tokens>`,`Model context window size, shown as a usage percentage`,parseContextSizeOption).option(`--logs <mode>`,`Which server/agent logs to show: all | stderr | none`,parseLogsMode).addHelpText(`after`,`
2
+ You can also pass a bare URL as the only argument, for example: eve dev https://example.com
3
+ `).action(async t=>{let r=resolveRemoteDevelopmentServerUrl(t),{loadDevelopmentEnvironmentFiles:o}=await import(`#cli/dev/environment.js`);o(a);let runInteractiveUi=async(n,o)=>{if(e.log(``),o===`repl`){await(i.runDevelopmentRepl??await loadRunDevelopmentRepl())({serverUrl:n});return}let s=i.runDevelopmentTui??await loadRunDevelopmentTui(),c=resolveTuiDisplayOptions(t),l=resolveTuiTitle({name:t.name,remoteServerUrl:r,appRoot:a});l!==void 0&&(c.name=l),await s({serverUrl:n,...c})};if(r){e.log(renderCliTaggedLine(d,{message:`connecting to ${r}`,tag:`dev`,tone:`info`}));let i=resolveDevUiMode({options:t,interactive:hasInteractiveTerminal()});if(i===`headless`){e.log(renderCliTaggedLine(d,{message:`Interactive UI disabled because the current terminal is not a TTY.`,tag:`dev`,tone:`warning`}));return}await runInteractiveUi(r,i);return}let s=await(i.startHost??await loadStartHost())(a,{host:t.host,port:t.port}),c=!1,closeServer=async()=>{c||(c=!0,await s.close())};try{e.log(renderCliTaggedLine(d,{message:`server listening at ${s.url}`,tag:`dev`,tone:`success`}));let r=hasInteractiveTerminal(),i=resolveDevUiMode({options:t,interactive:r});if(i===`headless`)return t.ui!==!1&&!r&&e.log(renderCliTaggedLine(d,{message:`Interactive UI disabled because the current terminal is not a TTY.`,tag:`dev`,tone:`warning`})),await waitForShutdownSignal({close:closeServer});await runInteractiveUi(s.url,i)}finally{await closeServer()}}),u.command(`info`).description(`Print resolved application information.`).option(`--json`,`Output as JSON`).action(async t=>{await(i.printApplicationInfo??await loadPrintApplicationInfo())(e,a,t)}),u.command(`eval`).description(`Run eval suites against an Eve agent.`).option(`--suite <id...>`,`Suite IDs to run (repeatable)`).option(`--all`,`Run all discovered suites`).option(`--url <url>`,`Remote agent URL (skip local host startup)`).option(`--timeout <ms>`,`Per-case timeout in milliseconds`).option(`--max-concurrency <n>`,`Max concurrent case executions per suite`).option(`--json`,`Output results as JSON`).option(`--skip-report`,`Skip suite-defined reporters (e.g. Braintrust)`).action(async t=>{await(i.runEvalCommand??await loadRunEvalCommand())(t,e)}),u}async function runCli(e=process.argv.slice(2),t=console,n={}){let r=createCliProgram(t,n),a=e.length===0?[`info`]:rewriteDevelopmentUrlShorthand(rewriteDeprecatedReplFlag(e));try{await r.parseAsync(a,{from:`user`})}catch(e){if(e instanceof CommanderError){if(e.exitCode===0)return;throw Error(e.message)}throw e}}export{resolveDevUiMode,resolveTuiDisplayOptions,resolveTuiTitle,rewriteDeprecatedReplFlag,runCli};
@@ -0,0 +1,62 @@
1
+ type CliMessageTone = "accent" | "danger" | "default" | "info" | "muted" | "subagent" | "success" | "warning";
2
+ /**
3
+ * Shared color palette used by the Eve CLI.
4
+ */
5
+ export interface CliTheme {
6
+ readonly color: boolean;
7
+ accent(text: string): string;
8
+ danger(text: string): string;
9
+ heading(text: string): string;
10
+ info(text: string): string;
11
+ label(text: string): string;
12
+ muted(text: string): string;
13
+ plain(text: string): string;
14
+ subagent(text: string): string;
15
+ success(text: string): string;
16
+ warning(text: string): string;
17
+ }
18
+ /**
19
+ * One labeled value rendered inside a CLI section.
20
+ */
21
+ export interface CliRow {
22
+ readonly label: string;
23
+ readonly tone?: CliMessageTone;
24
+ readonly value: string;
25
+ }
26
+ /**
27
+ * Creates the theme used by CLI commands and the interactive REPL.
28
+ */
29
+ export declare function createCliTheme(input?: {
30
+ color?: boolean;
31
+ }): CliTheme;
32
+ /**
33
+ * Renders a CLI banner with an optional subtitle.
34
+ */
35
+ export declare function renderCliBanner(theme: CliTheme, input: {
36
+ readonly subtitle?: string;
37
+ readonly title: string;
38
+ }): string;
39
+ /**
40
+ * Renders one labeled section with aligned values.
41
+ */
42
+ export declare function renderCliSection(theme: CliTheme, input: {
43
+ readonly rows: readonly CliRow[];
44
+ readonly title: string;
45
+ }): string;
46
+ /**
47
+ * Renders one prefixed line used by the interactive dev REPL.
48
+ */
49
+ export declare function renderCliTaggedLine(theme: CliTheme, input: {
50
+ readonly message: string;
51
+ readonly tag: string;
52
+ readonly tone?: CliMessageTone;
53
+ }): string;
54
+ /**
55
+ * Renders one speaker-prefixed line such as `agent>`.
56
+ */
57
+ export declare function renderCliSpeakerLine(theme: CliTheme, input: {
58
+ readonly message: string;
59
+ readonly speaker: string;
60
+ readonly tone?: CliMessageTone;
61
+ }): string;
62
+ export {};