eve 0.69.0 → 0.70.1

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 (361) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/src/acp/adapter.js +1 -1
  3. package/dist/src/channel/task-card.d.ts +3 -3
  4. package/dist/src/channel/task-card.js +1 -1
  5. package/dist/src/channel/types.d.ts +18 -0
  6. package/dist/src/chunks/{use-eve-agent-Dab2MnT2.js → use-eve-agent-CJQeE7-t.js} +1873 -1236
  7. package/dist/src/chunks/{use-eve-agent-D_5129A9.js → use-eve-agent-DdemtY6C.js} +1874 -1234
  8. package/dist/src/cli/dev/command.js +1 -1
  9. package/dist/src/cli/dev/console-records-preload.d.ts +1 -0
  10. package/dist/src/cli/dev/console-records-preload.js +1 -0
  11. package/dist/src/cli/dev/console-records.d.ts +17 -0
  12. package/dist/src/cli/dev/console-records.js +3 -0
  13. package/dist/src/cli/dev/diagnostic-sink.d.ts +1 -0
  14. package/dist/src/cli/dev/local-server-process.js +1 -1
  15. package/dist/src/cli/dev/tui/blocks.d.ts +2 -1
  16. package/dist/src/cli/dev/tui/blocks.js +3 -3
  17. package/dist/src/cli/dev/tui/conversation-view.d.ts +54 -0
  18. package/dist/src/cli/dev/tui/conversation-view.js +1 -0
  19. package/dist/src/cli/dev/tui/flow-drawer.d.ts +5 -2
  20. package/dist/src/cli/dev/tui/flow-drawer.js +1 -1
  21. package/dist/src/cli/dev/tui/log-display-mode.d.ts +4 -10
  22. package/dist/src/cli/dev/tui/log-display-mode.js +1 -1
  23. package/dist/src/cli/dev/tui/message-queue.d.ts +7 -63
  24. package/dist/src/cli/dev/tui/message-queue.js +3 -1
  25. package/dist/src/cli/dev/tui/prompt-commands.d.ts +7 -7
  26. package/dist/src/cli/dev/tui/prompt-commands.js +1 -1
  27. package/dist/src/cli/dev/tui/question-panel.d.ts +3 -1
  28. package/dist/src/cli/dev/tui/question-panel.js +1 -1
  29. package/dist/src/cli/dev/tui/runner.d.ts +58 -195
  30. package/dist/src/cli/dev/tui/runner.js +3 -3
  31. package/dist/src/cli/dev/tui/task-activity.d.ts +11 -24
  32. package/dist/src/cli/dev/tui/task-activity.js +1 -1
  33. package/dist/src/cli/dev/tui/task-records.d.ts +17 -0
  34. package/dist/src/cli/dev/tui/task-records.js +1 -0
  35. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +15 -37
  36. package/dist/src/cli/dev/tui/terminal-renderer.js +10 -13
  37. package/dist/src/cli/dev/tui/terminal-tool-part.d.ts +2 -0
  38. package/dist/src/cli/dev/tui/terminal-tool-part.js +1 -0
  39. package/dist/src/cli/dev/tui/test/fake-eve-server.d.ts +34 -0
  40. package/dist/src/cli/dev/tui/test/fake-eve-server.js +1 -0
  41. package/dist/src/cli/dev/tui/test/index.d.ts +1 -0
  42. package/dist/src/cli/dev/tui/test/index.js +1 -1
  43. package/dist/src/cli/dev/tui/tool-block-groups.js +1 -1
  44. package/dist/src/cli/dev/tui/tool-presentation.d.ts +1 -0
  45. package/dist/src/cli/dev/tui/tool-presentation.js +1 -1
  46. package/dist/src/cli/dev/tui/tool-rows.d.ts +1 -0
  47. package/dist/src/cli/dev/tui/tool-rows.js +2 -2
  48. package/dist/src/cli/dev/tui/transcript-parts.d.ts +81 -0
  49. package/dist/src/cli/dev/tui/transcript-parts.js +3 -0
  50. package/dist/src/cli/dev/tui/transcript.d.ts +47 -0
  51. package/dist/src/cli/dev/tui/transcript.js +1 -0
  52. package/dist/src/cli/dev/tui/tui.js +1 -1
  53. package/dist/src/cli/dev/tui/turn-clock.d.ts +11 -26
  54. package/dist/src/cli/dev/tui/turn-clock.js +1 -1
  55. package/dist/src/cli/dev/tui/types.d.ts +2 -4
  56. package/dist/src/cli/dev/ui-options.js +1 -1
  57. package/dist/src/client/agent-stream-follower.d.ts +26 -0
  58. package/dist/src/client/agent-stream-follower.js +1 -0
  59. package/dist/src/client/authorization-message-parts.js +1 -1
  60. package/dist/src/client/conversation-client.d.ts +40 -0
  61. package/dist/src/client/conversation-client.js +1 -0
  62. package/dist/src/client/conversation-reducer.d.ts +29 -0
  63. package/dist/src/client/conversation-reducer.js +1 -0
  64. package/dist/src/client/conversation-state.d.ts +110 -0
  65. package/dist/src/client/conversation-state.js +1 -0
  66. package/dist/src/client/eve-agent-projection.d.ts +24 -7
  67. package/dist/src/client/eve-agent-projection.js +1 -1
  68. package/dist/src/client/eve-agent-store-helpers.d.ts +21 -2
  69. package/dist/src/client/eve-agent-store-helpers.js +2 -2
  70. package/dist/src/client/eve-agent-store-state.d.ts +15 -3
  71. package/dist/src/client/eve-agent-store.d.ts +10 -1
  72. package/dist/src/client/eve-agent-store.js +1 -1
  73. package/dist/src/client/index.d.ts +4 -1
  74. package/dist/src/client/index.js +1 -1
  75. package/dist/src/client/message-reducer-primitives.d.ts +1 -2
  76. package/dist/src/client/message-reducer-primitives.js +1 -1
  77. package/dist/src/client/message-reducer-types.d.ts +9 -2
  78. package/dist/src/client/message-reducer.js +1 -1
  79. package/dist/src/client/message-response.js +1 -1
  80. package/dist/src/client/message-run-parts.d.ts +10 -6
  81. package/dist/src/client/message-run-parts.js +1 -1
  82. package/dist/src/client/optimistic-message-submissions.d.ts +6 -4
  83. package/dist/src/client/optimistic-message-submissions.js +1 -1
  84. package/dist/src/client/reducer.d.ts +5 -1
  85. package/dist/src/client/session-turn-dispatch.d.ts +15 -0
  86. package/dist/src/client/session-turn-dispatch.js +1 -0
  87. package/dist/src/client/session-utils.d.ts +27 -10
  88. package/dist/src/client/session-utils.js +1 -1
  89. package/dist/src/client/session.js +1 -1
  90. package/dist/src/client/types.d.ts +2 -1
  91. package/dist/src/compiled/.vendor-stamp.json +2 -2
  92. package/dist/src/compiled/{gray-matter → js-yaml}/LICENSE +2 -2
  93. package/dist/src/compiled/js-yaml/index.d.ts +12 -0
  94. package/dist/src/compiled/js-yaml/index.js +34 -0
  95. package/dist/src/compiler/extension-compatibility.d.ts +18 -18
  96. package/dist/src/compiler/extension-compatibility.js +1 -1
  97. package/dist/src/compiler/load-binding-namespace.js +1 -1
  98. package/dist/src/context/keys.d.ts +5 -2
  99. package/dist/src/context/keys.js +1 -1
  100. package/dist/src/context/provider.d.ts +5 -9
  101. package/dist/src/context/run-step.d.ts +4 -4
  102. package/dist/src/context/run-step.js +1 -1
  103. package/dist/src/context/serialize.d.ts +5 -1
  104. package/dist/src/context/serialize.js +1 -1
  105. package/dist/src/evals/loaders/yaml.js +1 -1
  106. package/dist/src/evals/runner/derive-run-facts.js +1 -1
  107. package/dist/src/evals/runner/execute-task.js +1 -1
  108. package/dist/src/evals/session.js +2 -2
  109. package/dist/src/evals/types.d.ts +16 -0
  110. package/dist/src/eve-channel/index.js +1 -1
  111. package/dist/src/execution/agent-sessions/context.d.ts +4 -2
  112. package/dist/src/execution/agent-sessions/context.js +1 -1
  113. package/dist/src/execution/agent-sessions/steps.js +1 -1
  114. package/dist/src/execution/cancelled-model-call-batch.js +1 -1
  115. package/dist/src/execution/coordination-dispatch-shared.d.ts +6 -4
  116. package/dist/src/execution/coordination-dispatch-shared.js +1 -1
  117. package/dist/src/execution/create-session-step.d.ts +4 -2
  118. package/dist/src/execution/create-session-step.js +1 -1
  119. package/dist/src/execution/durable-session-store.d.ts +10 -4
  120. package/dist/src/execution/durable-session-store.js +1 -1
  121. package/dist/src/execution/dynamic-workflow/tool.js +1 -1
  122. package/dist/src/execution/legacy-remote-agent/protocol.d.ts +8 -0
  123. package/dist/src/execution/legacy-remote-agent/protocol.js +1 -1
  124. package/dist/src/execution/legacy-session/completion-step.d.ts +2 -0
  125. package/dist/src/execution/legacy-session/completion-step.js +1 -1
  126. package/dist/src/execution/legacy-session/interrupt-step.js +1 -1
  127. package/dist/src/execution/legacy-session/prepare-step.d.ts +1 -0
  128. package/dist/src/execution/legacy-session/prepare-step.js +1 -1
  129. package/dist/src/execution/legacy-session/snapshot.d.ts +8 -4
  130. package/dist/src/execution/legacy-session/snapshot.js +1 -1
  131. package/dist/src/execution/legacy-session/turn-workflow.js +1 -1
  132. package/dist/src/execution/proxied-deliver-step.js +1 -1
  133. package/dist/src/execution/publish-session-events.d.ts +27 -7
  134. package/dist/src/execution/publish-session-events.js +1 -1
  135. package/dist/src/execution/reconcile-session-continuation-token.d.ts +2 -2
  136. package/dist/src/execution/runtime-context.js +1 -1
  137. package/dist/src/execution/session/active-turn.d.ts +97 -0
  138. package/dist/src/execution/session/active-turn.js +1 -0
  139. package/dist/src/execution/session/checkpoint-migrations.d.ts +23 -0
  140. package/dist/src/execution/session/checkpoint-migrations.js +1 -0
  141. package/dist/src/execution/session/entry.js +1 -1
  142. package/dist/src/execution/session/finalization.js +1 -1
  143. package/dist/src/execution/session/handoff-steps.d.ts +24 -5
  144. package/dist/src/execution/session/handoff-steps.js +1 -1
  145. package/dist/src/execution/session/handoff.d.ts +10 -6
  146. package/dist/src/execution/session/handoff.js +1 -1
  147. package/dist/src/execution/session/input-queue.d.ts +19 -13
  148. package/dist/src/execution/session/input-queue.js +1 -1
  149. package/dist/src/execution/session/next-input.d.ts +2 -10
  150. package/dist/src/execution/session/next-input.js +1 -1
  151. package/dist/src/execution/session/pending-turn-state.d.ts +2 -0
  152. package/dist/src/execution/session/pending-turn-state.js +1 -1
  153. package/dist/src/execution/session/program.d.ts +2 -0
  154. package/dist/src/execution/session/program.js +1 -1
  155. package/dist/src/execution/session/state-cursor.d.ts +22 -16
  156. package/dist/src/execution/session/state-cursor.js +1 -1
  157. package/dist/src/execution/session/state-delta.d.ts +8 -1
  158. package/dist/src/execution/session/state-delta.js +1 -1
  159. package/dist/src/execution/session/turn-event-handler.js +1 -1
  160. package/dist/src/execution/session/turn-step-result.js +1 -1
  161. package/dist/src/execution/session/turn-step-types.d.ts +20 -4
  162. package/dist/src/execution/session/turn-step.js +1 -1
  163. package/dist/src/execution/session/turn-waiting-step.js +1 -1
  164. package/dist/src/execution/session/turn.d.ts +22 -3
  165. package/dist/src/execution/session/turn.js +1 -1
  166. package/dist/src/execution/session.d.ts +5 -5
  167. package/dist/src/execution/session.js +2 -2
  168. package/dist/src/execution/settle-cancelled-turn-step.d.ts +5 -4
  169. package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
  170. package/dist/src/execution/tasks/start.d.ts +2 -2
  171. package/dist/src/execution/tasks/task-id-input.d.ts +1 -1
  172. package/dist/src/execution/tasks/task-id-input.js +1 -1
  173. package/dist/src/execution/terminal-session-completion-step.d.ts +2 -0
  174. package/dist/src/execution/terminal-session-completion-step.js +1 -1
  175. package/dist/src/execution/terminal-session-failure-step.d.ts +2 -0
  176. package/dist/src/execution/terminal-session-failure-step.js +1 -1
  177. package/dist/src/execution/tools/agent-router-workflow.js +1 -1
  178. package/dist/src/execution/tools/connection-target.d.ts +5 -0
  179. package/dist/src/execution/tools/connection-target.js +1 -1
  180. package/dist/src/execution/tools/connection-tools.js +2 -2
  181. package/dist/src/execution/tools/workflow/start.d.ts +3 -3
  182. package/dist/src/harness/authorization.d.ts +15 -2
  183. package/dist/src/harness/authorization.js +1 -1
  184. package/dist/src/harness/cancelled-turn-emission.d.ts +2 -1
  185. package/dist/src/harness/cancelled-turn-emission.js +1 -1
  186. package/dist/src/harness/coordination.d.ts +5 -3
  187. package/dist/src/harness/emission.d.ts +5 -2
  188. package/dist/src/harness/emission.js +1 -1
  189. package/dist/src/harness/held-requests.d.ts +18 -0
  190. package/dist/src/harness/held-requests.js +1 -0
  191. package/dist/src/harness/hitl/approval-input-requests.d.ts +16 -0
  192. package/dist/src/harness/hitl/approval-input-requests.js +1 -1
  193. package/dist/src/harness/input-extraction.js +1 -1
  194. package/dist/src/harness/input-requests.d.ts +0 -4
  195. package/dist/src/harness/input-requests.js +1 -1
  196. package/dist/src/harness/model-call-error.js +1 -1
  197. package/dist/src/harness/proxy-input-requests.d.ts +4 -4
  198. package/dist/src/harness/session-limit-enforcement.js +1 -1
  199. package/dist/src/harness/stale-input-responses.js +1 -1
  200. package/dist/src/harness/tool-loop.js +2 -2
  201. package/dist/src/harness/turn-tag-state.d.ts +2 -0
  202. package/dist/src/harness/turn-tag-state.js +1 -1
  203. package/dist/src/harness/types.d.ts +23 -11
  204. package/dist/src/instrumentation/channel-delivery.d.ts +1 -0
  205. package/dist/src/instrumentation/channel-delivery.js +1 -1
  206. package/dist/src/instrumentation/lifecycle.d.ts +4 -0
  207. package/dist/src/instrumentation/memory.d.ts +2 -0
  208. package/dist/src/instrumentation/memory.js +1 -1
  209. package/dist/src/instrumentation/native-events.d.ts +1 -0
  210. package/dist/src/instrumentation/native-events.js +1 -1
  211. package/dist/src/instrumentation/runtime.d.ts +4 -3
  212. package/dist/src/instrumentation/runtime.js +1 -1
  213. package/dist/src/instrumentation/session-init.js +1 -1
  214. package/dist/src/internal/application/package.js +1 -1
  215. package/dist/src/internal/authored-module-loader.d.ts +14 -6
  216. package/dist/src/internal/authored-module-loader.js +1 -1
  217. package/dist/src/internal/authored-package-boundary.d.ts +1 -1
  218. package/dist/src/internal/authored-package-boundary.js +1 -1
  219. package/dist/src/internal/bundler/extension-mount-plugin.js +1 -1
  220. package/dist/src/internal/helpers/frontmatter.d.ts +24 -0
  221. package/dist/src/internal/helpers/frontmatter.js +1 -0
  222. package/dist/src/internal/helpers/markdown.js +1 -3
  223. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
  224. package/dist/src/internal/nitro/host/nitro-bundler-config.js +1 -1
  225. package/dist/src/internal/node-esm-compat-banner.js +1 -1
  226. package/dist/src/internal/workflow-bundle/dynamic-remote-agent-transform.js +1 -1
  227. package/dist/src/internal/workflow-bundle/dynamic-tool-ast-references.d.ts +27 -1
  228. package/dist/src/internal/workflow-bundle/dynamic-tool-ast-references.js +1 -1
  229. package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +2 -2
  230. package/dist/src/protocol/message.d.ts +41 -3
  231. package/dist/src/protocol/message.js +2 -2
  232. package/dist/src/public/channels/slack/action-status.d.ts +2 -2
  233. package/dist/src/public/channels/slack/action-status.js +1 -1
  234. package/dist/src/public/channels/slack/approval-cards.d.ts +15 -0
  235. package/dist/src/public/channels/slack/approval-cards.js +2 -0
  236. package/dist/src/public/channels/slack/auth.d.ts +2 -0
  237. package/dist/src/public/channels/slack/auth.js +1 -1
  238. package/dist/src/public/channels/slack/connections.d.ts +15 -11
  239. package/dist/src/public/channels/slack/connections.js +1 -1
  240. package/dist/src/public/channels/slack/defaults.d.ts +1 -15
  241. package/dist/src/public/channels/slack/defaults.js +3 -4
  242. package/dist/src/public/channels/slack/hitl.js +1 -1
  243. package/dist/src/public/channels/slack/inbound.d.ts +10 -2
  244. package/dist/src/public/channels/slack/inbound.js +1 -1
  245. package/dist/src/public/channels/slack/index.d.ts +2 -0
  246. package/dist/src/public/channels/slack/index.js +1 -1
  247. package/dist/src/public/channels/slack/input-response.js +1 -1
  248. package/dist/src/public/channels/slack/interaction-cards.js +1 -1
  249. package/dist/src/public/channels/slack/interactions.js +1 -1
  250. package/dist/src/public/channels/slack/limits.d.ts +5 -3
  251. package/dist/src/public/channels/slack/private-approval-delivery.js +1 -1
  252. package/dist/src/public/channels/slack/renderers.d.ts +1 -1
  253. package/dist/src/public/channels/slack/renderers.js +1 -1
  254. package/dist/src/public/channels/slack/reply-delivery.d.ts +72 -0
  255. package/dist/src/public/channels/slack/reply-delivery.js +1 -0
  256. package/dist/src/public/channels/slack/sign-in-cancel.d.ts +20 -0
  257. package/dist/src/public/channels/slack/sign-in-cancel.js +1 -0
  258. package/dist/src/public/channels/slack/slackChannel.d.ts +15 -0
  259. package/dist/src/public/channels/slack/slackChannel.js +1 -1
  260. package/dist/src/public/channels/slack/task-card.js +1 -1
  261. package/dist/src/public/channels/teams/defaults.d.ts +1 -1
  262. package/dist/src/public/channels/teams/defaults.js +2 -2
  263. package/dist/src/public/definitions/channel.d.ts +1 -0
  264. package/dist/src/public/definitions/channel.js +1 -1
  265. package/dist/src/public/definitions/state.d.ts +2 -0
  266. package/dist/src/public/definitions/state.js +1 -1
  267. package/dist/src/public/next/index.js +1 -1
  268. package/dist/src/public/next/server.d.ts +2 -0
  269. package/dist/src/public/next/server.js +1 -2
  270. package/dist/src/public/nuxt/module.d.ts +6 -0
  271. package/dist/src/public/nuxt/module.js +1 -1
  272. package/dist/src/react/index.d.ts +3 -0
  273. package/dist/src/react/index.js +1 -1
  274. package/dist/src/react/use-eve-agent.d.ts +7 -5
  275. package/dist/src/react/use-eve-agent.js +1 -1
  276. package/dist/src/runtime/connections/openapi-spec.d.ts +1 -4
  277. package/dist/src/runtime/connections/openapi-spec.js +1 -1
  278. package/dist/src/runtime/connections/scoped-authorization.d.ts +2 -0
  279. package/dist/src/runtime/connections/scoped-authorization.js +1 -1
  280. package/dist/src/setup/boxes/deploy-project.js +1 -1
  281. package/dist/src/setup/integrations/web/setup.js +6 -2
  282. package/dist/src/setup/scaffold/create/project.js +1 -1
  283. package/dist/src/setup/scaffold/create/web-template.d.ts +5 -5
  284. package/dist/src/setup/scaffold/create/web-template.js +61 -35
  285. package/dist/src/setup/vercel-project-framework.js +1 -1
  286. package/dist/src/shared/display-name.d.ts +15 -0
  287. package/dist/src/shared/display-name.js +1 -0
  288. package/dist/src/shared/framework-eve-server.d.ts +43 -0
  289. package/dist/src/shared/framework-eve-server.js +2 -0
  290. package/dist/src/shared/token-usage.d.ts +2 -0
  291. package/dist/src/shared/token-usage.js +1 -1
  292. package/dist/src/shared/trace-root.d.ts +8 -0
  293. package/dist/src/shared/trace-root.js +1 -0
  294. package/dist/src/subagents/callback-route.js +1 -1
  295. package/dist/src/subagents/hitl-proxy.d.ts +3 -3
  296. package/dist/src/subagents/hitl-proxy.js +1 -1
  297. package/dist/src/subagents/invocation.d.ts +3 -1
  298. package/dist/src/subagents/parent-notification.d.ts +7 -7
  299. package/dist/src/subagents/parent-notification.js +1 -1
  300. package/dist/src/subagents/tool.js +1 -1
  301. package/dist/src/svelte/index.d.ts +3 -0
  302. package/dist/src/svelte/index.js +2 -2
  303. package/dist/src/svelte/use-eve-agent.d.ts +7 -4
  304. package/dist/src/svelte/use-eve-agent.js +1 -1
  305. package/dist/src/tools/provided/ask-question-workflow.js +1 -1
  306. package/dist/src/tools/provided/load-skill.js +1 -1
  307. package/dist/src/tools/provided/sleep-workflow.js +1 -1
  308. package/dist/src/tracing/agent-action-instrumentation.js +1 -1
  309. package/dist/src/tracing/agent-approval-instrumentation.js +1 -1
  310. package/dist/src/tracing/agent-memory-instrumentation.js +1 -1
  311. package/dist/src/tracing/agent-otel-attributes.d.ts +6 -0
  312. package/dist/src/tracing/agent-otel-attributes.js +1 -1
  313. package/dist/src/tracing/agent-otel-provider.js +2 -2
  314. package/dist/src/tracing/agent-otel-runtime-context.d.ts +1 -1
  315. package/dist/src/tracing/agent-otel-runtime-context.js +1 -1
  316. package/dist/src/tracing/agent-otel-session-context.js +1 -1
  317. package/dist/src/tracing/agent-span-contract.js +1 -1
  318. package/dist/src/tracing/agent-tool-instrumentation.js +1 -1
  319. package/dist/src/tracing/agent-trace-context-codec.d.ts +4 -0
  320. package/dist/src/tracing/agent-trace-context-codec.js +1 -1
  321. package/dist/src/tracing/agent-trace-span-processor.js +1 -1
  322. package/dist/src/tracing/agent-trace-state.d.ts +3 -0
  323. package/dist/src/tracing/conversation-context.d.ts +10 -0
  324. package/dist/src/tracing/conversation-context.js +1 -1
  325. package/dist/src/tracing/otel-registration.js +1 -1
  326. package/dist/src/vue/index.d.ts +3 -0
  327. package/dist/src/vue/index.js +2 -2
  328. package/dist/src/vue/use-eve-agent.d.ts +7 -3
  329. package/dist/src/vue/use-eve-agent.js +1 -1
  330. package/docs/channels/slack.mdx +60 -13
  331. package/docs/concepts/built-in-tools.md +3 -2
  332. package/docs/concepts/execution-model-and-durability.mdx +3 -1
  333. package/docs/concepts/sessions-runs-and-streaming.md +4 -4
  334. package/docs/connections/overview.mdx +9 -3
  335. package/docs/evals/reporters.mdx +4 -0
  336. package/docs/extensions.md +15 -3
  337. package/docs/guides/client/streaming.mdx +7 -6
  338. package/docs/guides/deployment/vercel.mdx +2 -1
  339. package/docs/guides/dev-tui.md +17 -17
  340. package/docs/guides/dynamic-capabilities.md +1 -1
  341. package/docs/guides/frontend/nuxt.mdx +24 -4
  342. package/docs/guides/frontend/overview.mdx +44 -38
  343. package/docs/guides/frontend/use-eve-agent-svelte.mdx +4 -10
  344. package/docs/guides/frontend/use-eve-agent-vue.mdx +4 -10
  345. package/docs/guides/instrumentation/otel.mdx +24 -6
  346. package/docs/guides/remote-agents.md +26 -8
  347. package/docs/reference/cli.md +4 -4
  348. package/docs/tools/human-in-the-loop.md +4 -4
  349. package/docs/tools/overview.mdx +1 -1
  350. package/docs/tools/tasks.md +8 -8
  351. package/package.json +2 -2
  352. package/dist/src/cli/dev/tui/steering-stream.d.ts +0 -15
  353. package/dist/src/cli/dev/tui/steering-stream.js +0 -1
  354. package/dist/src/cli/dev/tui/subagent-pump.d.ts +0 -134
  355. package/dist/src/cli/dev/tui/subagent-pump.js +0 -1
  356. package/dist/src/compiled/gray-matter/index.d.ts +0 -62
  357. package/dist/src/compiled/gray-matter/index.js +0 -48
  358. package/dist/src/internal/helpers/gray-matter.d.ts +0 -25
  359. package/dist/src/internal/helpers/gray-matter.js +0 -1
  360. package/dist/src/public/nuxt/dev-server.d.ts +0 -25
  361. package/dist/src/public/nuxt/dev-server.js +0 -1
@@ -1,134 +0,0 @@
1
- /**
2
- * The subagent child-stream subsystem: for every call to an agent task on
3
- * the parent stream, a parallel pump over the agent's session folds its
4
- * events into the renderer's view of what that agent is doing. Extracted
5
- * from the runner — the subsystem touches nothing but its own run state, the
6
- * client, and the {@link SubagentView} seam.
7
- */
8
- import type { Client } from "#client/index.js";
9
- import { type ActionResultStreamEvent, type AgentStartedStreamEvent, type TaskStartedStreamEvent } from "#protocol/message.js";
10
- /**
11
- * The renderer's view of each agent task's own activity. One cohesive
12
- * capability: a renderer that implements it shows what every working agent
13
- * is doing, and a renderer without it simply shows none. Individually
14
- * optional methods would let a renderer implement a type-legal subset that
15
- * ghosts placeholders or duplicates parent tool rows. The task's start and
16
- * end reach the renderer on the parent stream, not through this view.
17
- */
18
- export interface SubagentView {
19
- /**
20
- * The pump follows the agent a call reaches. The agent's last events can
21
- * trail the parent's `task.settled`, so the task's end waits for {@link end}.
22
- */
23
- begin(update: {
24
- callId: string;
25
- }): void;
26
- /** The followed agent's own stream ended, or the pump stopped following it. */
27
- end(update: {
28
- callId: string;
29
- }): void;
30
- upsertStep(update: SubagentStepUpdate): void;
31
- upsertTool(update: SubagentToolUpdate): void;
32
- /**
33
- * Drops a child tool call that never materialized, or one the session
34
- * refused for the model to retry (`reason` says why).
35
- */
36
- removeTool(update: {
37
- callId: string;
38
- childCallId: string;
39
- reason?: string;
40
- }): void;
41
- /** Suppresses the parent-level tool row for a child-owned call id. */
42
- markChildToolCallId(callId: string): void;
43
- }
44
- type SubagentChildStep = {
45
- reasoning: string;
46
- message: string;
47
- finalized: boolean;
48
- };
49
- type SubagentToolStatus = "preparing" | "approval-requested" | "executing" | "done" | "failed" | "rejected";
50
- type SubagentToolState = {
51
- toolName: string;
52
- input: unknown;
53
- status: SubagentToolStatus;
54
- output?: unknown;
55
- errorText?: string;
56
- label?: string;
57
- /** The child's call started an agent task of its own. */
58
- agentTask?: boolean;
59
- };
60
- export type SubagentRun = {
61
- name: string;
62
- childSessionId: string;
63
- /** Parent turn that originated this dispatch; cancellation is scoped to it. */
64
- parentTurnId: string;
65
- /** Only the child's own boundary ends the run: its last events can trail the parent's. */
66
- done: boolean;
67
- /** The parent session, whose client follows the child stream. */
68
- parentSessionId: string;
69
- /** The agent task's session, whose stream this run follows. */
70
- started: AgentStartedStreamEvent;
71
- /**
72
- * One entry per logical "child message" — independent of the child's
73
- * `stepIndex` field, which the harness can reuse across multiple
74
- * assistant messages within a turn (e.g. a message before a tool call
75
- * and another message after the tool result both arrive under
76
- * `stepIndex: 0`). The key is a monotonic counter so each
77
- * `message.completed` opens a new box on the next inbound delta.
78
- */
79
- steps: Map<number, SubagentChildStep>;
80
- /**
81
- * Section currently accepting reasoning/message deltas. `null` means
82
- * the next delta opens a new section.
83
- */
84
- currentSectionKey: number | null;
85
- /** Monotonic counter for new section keys. */
86
- nextSectionKey: number;
87
- tools: Map<string, SubagentToolState>;
88
- /** Child calls that started tasks: their `action.result` is only a receipt. */
89
- taskCallIds: Set<string>;
90
- };
91
- export type SubagentStepUpdate = {
92
- callId: string;
93
- subagentName: string;
94
- sectionKey: number;
95
- reasoning: string;
96
- message: string;
97
- finalized: boolean;
98
- };
99
- export type SubagentToolUpdate = {
100
- callId: string;
101
- subagentName: string;
102
- childCallId: string;
103
- toolName: string;
104
- input: unknown;
105
- status: SubagentToolStatus;
106
- output?: unknown;
107
- errorText?: string;
108
- /** The tool's own label copy, when it defines one. */
109
- label?: string;
110
- /** The call started an agent task, so it reads as a delegation. */
111
- agentTask?: boolean;
112
- };
113
- export interface SubagentPumpOptions {
114
- client?: Client;
115
- view?: SubagentView;
116
- formatActionResultError: (event: ActionResultStreamEvent) => string;
117
- /** Runs TUI-owned handling after a child tool result becomes visible. */
118
- onToolCompleted?: (subagentName: string, toolName: string, output: unknown) => Promise<void>;
119
- }
120
- export declare class SubagentPump {
121
- #private;
122
- constructor(options: SubagentPumpOptions);
123
- /** A call started or reached a task. A call to an agent task starts following it at once. */
124
- taskStarted(event: TaskStartedStreamEvent, parentSessionId: string | undefined): void;
125
- /**
126
- * A run opened a session. The session an agent task opens is its agent's;
127
- * sessions other tools open are not followed.
128
- */
129
- agentStarted(started: AgentStartedStreamEvent, parentSessionId: string | undefined): void;
130
- abortAll(): void;
131
- /** Settles and aborts the descendants of the cancelled parent turn. */
132
- settleCancelledTurn(turnId: string): void;
133
- }
134
- export {};
@@ -1 +0,0 @@
1
- import{isTaskControlTool,isTaskRetryRefusal}from"#protocol/task-tools.js";import{isCurrentTurnBoundaryEvent}from"#protocol/message.js";const childStreamReconnectPolicy={streamIdleReconnectPolicy:{maxAttempts:1/0},streamOpenReconnectPolicy:{maxAttempts:1/0}};var SubagentPump=class{#e;#t;#n;#r;#i=new Map;#a=new Map;#o=new Map;#s=new Map;#c=new Map;#l=new Map;constructor(e){this.#e=e.client,this.#t=e.view,this.#n=e.formatActionResultError,this.#r=e.onToolCompleted}taskStarted(e,t){let{callId:n,kind:r,taskId:i,turnId:a}=e.data;if(r!==`agent`)return;let o=this.#a.get(i);if(o===void 0){this.#a.set(i,{});return}o.started!==void 0&&t!==void 0&&this.#u({callId:n,parentSessionId:t,parentTurnId:a,started:o.started})}agentStarted(e,t){let{callId:n,taskId:r,turnId:i}=e.data,a=r===void 0?void 0:this.#a.get(r);a!==void 0&&(a.started??=e,t!==void 0&&this.#u({callId:n,parentSessionId:t,parentTurnId:i,started:a.started}))}#u(e){let{callId:t,started:n}=e,r=this.#i.get(t);r===void 0?this.#i.set(t,{name:n.data.name,childSessionId:n.data.sessionId,parentSessionId:e.parentSessionId,parentTurnId:e.parentTurnId,done:!1,started:n,steps:new Map,currentSectionKey:null,nextSectionKey:0,tools:new Map,taskCallIds:new Set}):r.name=n.data.name,this.#t?.markChildToolCallId(t),r===void 0&&(this.#t?.begin({callId:t}),this.#d(t))}abortAll(){for(let e of this.#o.values())e.abort();this.#o.clear(),this.#i.clear(),this.#a.clear(),this.#s.clear(),this.#c.clear(),this.#l.clear()}settleCancelledTurn(e){for(let[t,n]of this.#i)n.parentTurnId===e&&(this.#h(t),this.#o.get(t)?.abort(),this.#o.delete(t))}#d(e){let t=this.#i.get(e);if(t===void 0||t.done)return;let n=this.#c.get(t.childSessionId);if(n===void 0){this.#c.set(t.childSessionId,e),this.#f(e);return}if(n===e)return;let r=this.#l.get(t.childSessionId)??[];r.includes(e)||r.push(e),this.#l.set(t.childSessionId,r)}#f(e){if(this.#o.has(e))return;let t=this.#e;if(!t)return;let n=this.#i.get(e);if(n===void 0||n.done)return;let r=new AbortController;this.#o.set(e,r),(async()=>{let{childSessionId:i}=n,a=this.#s.get(i)??0;try{let o=t.sessions.attach(n.parentSessionId).agent(n.started).stream({signal:r.signal,startIndex:a,streamReconnectPolicy:childStreamReconnectPolicy});for await(let t of o){if(r.signal.aborted)return;this.#s.set(i,a+=1);let o=this.#v(e,t);if(o!==void 0&&await o,isCurrentTurnBoundaryEvent(t)&&!(t.type===`session.waiting`&&hasPendingChildApproval(n))){this.#h(e);return}}}catch{r.signal.aborted||this.#t?.end({callId:e})}finally{r.abort(),this.#o.get(e)===r&&this.#o.delete(e)}})()}#p(e,t,n){let r=t.tools.get(n.childCallId),i=r??{toolName:n.toolName,input:n.input,status:n.status};if(n.label!==void 0&&(i.label=n.label),r){let e=r.status===`done`||r.status===`failed`||r.status===`rejected`;if(n.status===`approval-requested`&&!e)r.status=n.status;else{let e={preparing:0,"approval-requested":1,executing:2,done:3,failed:3,rejected:3};e[n.status]>e[r.status]&&(r.status=n.status)}n.input!==void 0&&(r.input=n.input)}else t.tools.set(n.childCallId,i);this.#t?.markChildToolCallId(n.childCallId),this.#m(e,t,n.childCallId,i)}#m(e,t,n,r){let i={callId:e,subagentName:t.name,childCallId:n,toolName:r.toolName,input:r.input,status:r.status};r.output!==void 0&&(i.output=r.output),r.errorText!==void 0&&(i.errorText=r.errorText),r.label!==void 0&&(i.label=r.label),r.agentTask===!0&&(i.agentTask=!0),this.#t?.upsertTool(i)}#h(e){let t=this.#i.get(e);if(t&&!t.done){t.done=!0;for(let[n,r]of t.steps)r.finalized||(r.finalized=!0,this.#t?.upsertStep({callId:e,subagentName:t.name,sectionKey:n,reasoning:r.reasoning,message:r.message,finalized:!0}));t.currentSectionKey=null,this.#_(e,t),this.#t?.end({callId:e}),this.#g(e,t.childSessionId)}}#g(e,t){let n=(this.#l.get(t)??[]).filter(t=>t!==e);if(this.#c.get(t)!==e){n.length===0?this.#l.delete(t):this.#l.set(t,n);return}for(this.#c.delete(t);n.length>0;){let e=n.shift(),r=this.#i.get(e);if(!(r===void 0||r.done)){n.length===0?this.#l.delete(t):this.#l.set(t,n),this.#c.set(t,e),this.#f(e);return}}this.#l.delete(t)}#_(e,t){for(let[n,r]of t.tools)r.status===`preparing`&&(t.tools.delete(n),this.#t?.removeTool({callId:e,childCallId:n}))}#v(e,t){let n=this.#i.get(e);if(!n)return;let r=this.#t,emit=(t,i)=>{r?.upsertStep({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);r.message.length===0&&(r.message=t.data.message),r.finalized=!0,emit(e,r),n.currentSectionKey=null;break}case`step.completed`:finalizeCurrent(),this.#_(e,n);break;case`action.input.appended`:{let{callId:r,toolName:i}=t.data;if(n.tools.has(r)||isTaskControlTool(i))break;this.#p(e,n,{childCallId:r,toolName:i,input:void 0,status:`preparing`});break}case`actions.requested`:finalizeCurrent();for(let r of t.data.actions)r.kind!==`tool-call`||isTaskControlTool(r.toolName)||r.parentCallId===void 0&&this.#p(e,n,{childCallId:r.callId,toolName:r.toolName,input:r.input,status:`executing`,...labelOf(t.data.presentation,r.callId)});break;case`input.requested`:finalizeCurrent();for(let r of t.data.requests)r.action.kind===`tool-call`&&(isTaskControlTool(r.action.toolName)||this.#p(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`||n.taskCallIds.has(i.callId))break;let a=n.tools.get(i.callId);if(!a)break;if(isTaskRetryRefusal(t)){n.tools.delete(i.callId),r?.removeTool({callId:e,childCallId:i.callId,reason:this.#n(t)});break}let o=labelOf(t.data.presentation,i.callId).label;switch(o!==void 0&&(a.label=o),t.data.status){case`completed`:a.status=`done`,a.output=i.output;break;case`failed`:a.status=`failed`,a.errorText=this.#n(t);break;case`rejected`:a.status=`rejected`,a.errorText=this.#n(t)}if(this.#m(e,n,i.callId,a),t.data.status===`completed`)return this.#r?.(n.name,a.toolName,i.output);break}case`task.started`:{n.taskCallIds.add(t.data.callId);let r=n.tools.get(t.data.callId);if(r===void 0||t.data.kind!==`agent`)break;r.agentTask=!0,this.#m(e,n,t.data.callId,r);break}case`task.settled`:{let r=n.tools.get(t.data.callId);if(r===void 0)break;switch(t.data.status){case`completed`:r.status=`done`,t.data.output!==void 0&&(r.output=t.data.output);break;case`failed`:r.status=`failed`,r.errorText=t.data.error?.message??`Failed.`;break;case`cancelled`:r.status=`rejected`,r.errorText=`Stopped.`}this.#m(e,n,t.data.callId,r);break}}}};function labelOf(e,t){let n=e?.[t]?.label;return n===void 0?{}:{label:n}}function hasPendingChildApproval(e){return[...e.tools.values()].some(e=>e.status===`approval-requested`)}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{SubagentPump};
@@ -1,62 +0,0 @@
1
- // Hand-authored ESM declaration for the vendored slice of `gray-matter`.
2
- // The upstream `gray-matter.d.ts` is `export =` (CJS-style) and cannot be
3
- // re-exported as a default ESM binding without rewriting. Only the surface
4
- // eve touches is typed here: invoking the default function, the static
5
- // `test()` predicate, and the `data`/`content` properties on the result.
6
-
7
- export type Input = string | Buffer;
8
-
9
- export interface GrayMatterOption<I extends Input, O extends GrayMatterOption<I, O>> {
10
- parser?: () => void;
11
- eval?: boolean;
12
- excerpt?: boolean | ((input: I, options: O) => string);
13
- excerpt_separator?: string;
14
- engines?: Record<
15
- string,
16
- ((input: string) => object) | { parse(input: string): object; stringify?(data: object): string }
17
- >;
18
- language?: string;
19
- delimiters?: string | [string, string];
20
- }
21
-
22
- export interface GrayMatterFile<I extends Input> {
23
- data: Record<string, unknown>;
24
- content: string;
25
- excerpt?: string;
26
- orig: Buffer | I;
27
- language: string;
28
- matter: string;
29
- stringify(lang: string): string;
30
- }
31
-
32
- export interface GrayMatterFunction {
33
- <I extends Input, O extends GrayMatterOption<I, O>>(
34
- input: I | { content: I },
35
- options?: O,
36
- ): GrayMatterFile<I>;
37
-
38
- test<O extends GrayMatterOption<string, O>>(
39
- str: string,
40
- options?: GrayMatterOption<string, O>,
41
- ): boolean;
42
-
43
- read<O extends GrayMatterOption<string, O>>(
44
- filepath: string,
45
- options?: GrayMatterOption<string, O>,
46
- ): GrayMatterFile<string>;
47
-
48
- stringify<O extends GrayMatterOption<string, O>>(
49
- file: string | { content: string },
50
- data: object,
51
- options?: GrayMatterOption<string, O>,
52
- ): string;
53
-
54
- language<O extends GrayMatterOption<string, O>>(
55
- str: string,
56
- options?: GrayMatterOption<string, O>,
57
- ): { name: string; raw: string };
58
- }
59
-
60
- declare const matter: GrayMatterFunction;
61
-
62
- export default matter;