eve 0.54.5 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/src/channel/adapter.d.ts +3 -2
  3. package/dist/src/channel/audience.d.ts +16 -0
  4. package/dist/src/channel/audience.js +1 -0
  5. package/dist/src/channel/conversation-context.d.ts +3 -0
  6. package/dist/src/channel/conversation-context.js +1 -0
  7. package/dist/src/channel/instrumentation.js +1 -1
  8. package/dist/src/channel/types.d.ts +9 -0
  9. package/dist/src/cli/commands/agent-prompt/scaffold.md +5 -4
  10. package/dist/src/cli/commands/init-target.js +2 -2
  11. package/dist/src/cli/commands/init.js +1 -1
  12. package/dist/src/cli/dev/environment.js +1 -1
  13. package/dist/src/cli/dev/tui/terminal-renderer.js +9 -9
  14. package/dist/src/compiled/.vendor-stamp.json +1 -1
  15. package/dist/src/compiler/extension-compatibility.d.ts +16 -16
  16. package/dist/src/compiler/extension-compatibility.js +1 -1
  17. package/dist/src/context/dynamic-resolve-context.js +1 -1
  18. package/dist/src/discover/filesystem.d.ts +3 -1
  19. package/dist/src/discover/filesystem.js +1 -1
  20. package/dist/src/discover/skills.js +1 -1
  21. package/dist/src/dynamic/definition.d.ts +6 -0
  22. package/dist/src/eve-channel/audience.d.ts +3 -0
  23. package/dist/src/eve-channel/audience.js +1 -0
  24. package/dist/src/eve-channel/index.js +1 -1
  25. package/dist/src/eve-channel/types.d.ts +14 -1
  26. package/dist/src/execution/activity-work.d.ts +2 -0
  27. package/dist/src/execution/activity-work.js +1 -1
  28. package/dist/src/execution/channel-context.js +1 -1
  29. package/dist/src/execution/coordination-dispatch-shared.d.ts +1 -0
  30. package/dist/src/execution/coordination-dispatch-shared.js +1 -1
  31. package/dist/src/execution/eve-workflow-attributes.js +1 -1
  32. package/dist/src/execution/runtime-context.js +1 -1
  33. package/dist/src/execution/scheduled-launch-delivery.d.ts +7 -0
  34. package/dist/src/execution/scheduled-launch-delivery.js +1 -0
  35. package/dist/src/execution/session-activity.js +1 -1
  36. package/dist/src/execution/tasks/child/steps.js +1 -1
  37. package/dist/src/execution/tasks/parent/delegate.d.ts +2 -0
  38. package/dist/src/execution/tasks/parent/tool-execution.js +1 -1
  39. package/dist/src/execution/tools/sleep-workflow.js +1 -1
  40. package/dist/src/execution/tools/subagent/invoke-step.d.ts +2 -0
  41. package/dist/src/execution/tools/subagent/invoke-step.js +1 -1
  42. package/dist/src/execution/tools/subagent/start.d.ts +5 -0
  43. package/dist/src/execution/tools/subagent/start.js +1 -1
  44. package/dist/src/execution/wire/session-inbox-contract.d.ts +2 -2
  45. package/dist/src/execution/wire/session-inbox-contract.js +1 -1
  46. package/dist/src/execution/wire/session-inbox-encoder.d.ts +6 -2
  47. package/dist/src/execution/wire/session-inbox-encoder.js +1 -1
  48. package/dist/src/execution/wire/session-inbox-resume.js +1 -1
  49. package/dist/src/execution/wire/session-inbox-wire.js +1 -1
  50. package/dist/src/execution/wire/session-inbox-wire.v7.d.ts +342 -0
  51. package/dist/src/execution/wire/session-inbox-wire.v7.js +1 -0
  52. package/dist/src/execution/workflow-steps.js +1 -1
  53. package/dist/src/harness/action-presentation.d.ts +5 -0
  54. package/dist/src/harness/action-presentation.js +1 -1
  55. package/dist/src/harness/background-tools.d.ts +3 -1
  56. package/dist/src/harness/emission.js +1 -1
  57. package/dist/src/harness/step-hooks.js +1 -1
  58. package/dist/src/harness/tool-loop.js +1 -1
  59. package/dist/src/harness/tools.js +1 -1
  60. package/dist/src/harness/workflow-lifecycle.js +1 -1
  61. package/dist/src/instrumentation/channel-delivery.js +1 -1
  62. package/dist/src/instrumentation/content-policy.d.ts +2 -2
  63. package/dist/src/instrumentation/principal-summary.d.ts +3 -3
  64. package/dist/src/instrumentation/runtime-global.d.ts +4 -0
  65. package/dist/src/instrumentation/runtime-global.js +1 -0
  66. package/dist/src/instrumentation/runtime.d.ts +5 -9
  67. package/dist/src/instrumentation/runtime.js +1 -1
  68. package/dist/src/instrumentation/session-context.d.ts +1 -0
  69. package/dist/src/instrumentation/session-context.js +1 -1
  70. package/dist/src/instrumentation/session-init.d.ts +5 -0
  71. package/dist/src/instrumentation/session-init.js +1 -0
  72. package/dist/src/instrumentation/setup-context.js +1 -1
  73. package/dist/src/internal/application/dev-environment.d.ts +3 -0
  74. package/dist/src/internal/application/dev-environment.js +1 -1
  75. package/dist/src/internal/application/output-publication-journal.js +1 -1
  76. package/dist/src/internal/application/output-publication-lock.js +1 -1
  77. package/dist/src/internal/application/package.js +1 -1
  78. package/dist/src/internal/authored-definition/connection.js +1 -1
  79. package/dist/src/internal/instrumentation.d.ts +1 -12
  80. package/dist/src/internal/instrumentation.js +1 -1
  81. package/dist/src/internal/logging.js +1 -1
  82. package/dist/src/internal/nitro/host/build-application.js +1 -1
  83. package/dist/src/protocol/activity.d.ts +1 -0
  84. package/dist/src/protocol/activity.js +1 -1
  85. package/dist/src/public/channels/chat-sdk/audience.d.ts +8 -0
  86. package/dist/src/public/channels/chat-sdk/audience.js +1 -1
  87. package/dist/src/public/channels/chat-sdk/chatSdkChannel.d.ts +0 -2
  88. package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +1 -1
  89. package/dist/src/public/channels/discord/audience.js +1 -1
  90. package/dist/src/public/channels/discord/discordChannel.js +1 -1
  91. package/dist/src/public/channels/discord/index.d.ts +0 -1
  92. package/dist/src/public/channels/index.d.ts +2 -3
  93. package/dist/src/public/channels/slack/activity-plan.js +1 -1
  94. package/dist/src/public/channels/slack/defaults.d.ts +2 -2
  95. package/dist/src/public/channels/slack/index.d.ts +1 -1
  96. package/dist/src/public/channels/slack/slackChannel.d.ts +11 -3
  97. package/dist/src/public/channels/slack/slackChannel.js +1 -1
  98. package/dist/src/public/channels/teams/hitl.js +1 -1
  99. package/dist/src/public/channels/teams/index.d.ts +0 -1
  100. package/dist/src/public/channels/teams/teamsChannel.js +1 -1
  101. package/dist/src/public/channels/teams/verify.js +1 -1
  102. package/dist/src/public/channels/telegram/audience.d.ts +7 -0
  103. package/dist/src/public/channels/telegram/audience.js +1 -1
  104. package/dist/src/public/channels/telegram/index.d.ts +0 -1
  105. package/dist/src/public/channels/telegram/telegramChannel.js +1 -1
  106. package/dist/src/public/channels/twilio/twilioChannel.d.ts +0 -2
  107. package/dist/src/public/channels/twilio/twilioChannel.js +1 -1
  108. package/dist/src/public/definitions/channel.d.ts +2 -1
  109. package/dist/src/public/definitions/channel.js +1 -1
  110. package/dist/src/public/definitions/connections/mcp.d.ts +6 -0
  111. package/dist/src/public/definitions/workspace-agent.js +1 -1
  112. package/dist/src/public/models/openai/chatgpt/auth.js +1 -1
  113. package/dist/src/public/models/openai/chatgpt/codex-app-server.js +1 -1
  114. package/dist/src/public/models/openai/chatgpt/credential-store.js +1 -1
  115. package/dist/src/public/next/index.d.ts +6 -4
  116. package/dist/src/public/next/index.js +1 -1
  117. package/dist/src/public/next/server.js +1 -1
  118. package/dist/src/public/next/vercel-output-config.d.ts +1 -0
  119. package/dist/src/runtime/connections/mcp-client.js +1 -1
  120. package/dist/src/runtime/resolve-connection.js +1 -1
  121. package/dist/src/runtime/sessions/runtime-context-keys.js +1 -1
  122. package/dist/src/runtime/types.d.ts +1 -0
  123. package/dist/src/self-modification/agent.d.ts +7 -1
  124. package/dist/src/self-modification/agent.js +1 -1
  125. package/dist/src/setup/flows/chatgpt-auth.js +1 -1
  126. package/dist/src/setup/flows/registry.js +1 -1
  127. package/dist/src/setup/provider-settings.js +1 -1
  128. package/dist/src/setup/scaffold/create/project.js +1 -1
  129. package/dist/src/shared/channel-audience.d.ts +0 -3
  130. package/dist/src/shared/channel-definition.d.ts +13 -4
  131. package/dist/src/shared/conversation-context.d.ts +47 -0
  132. package/dist/src/shared/conversation-context.js +1 -0
  133. package/dist/src/shared/forwarded-trace-policy.d.ts +2 -1
  134. package/dist/src/shared/forwarded-trace-policy.js +1 -1
  135. package/dist/src/shared/instrumentation-channel-kind.d.ts +3 -0
  136. package/dist/src/shared/instrumentation-channel-kind.js +1 -0
  137. package/dist/src/shared/instrumentation-content.d.ts +9 -4
  138. package/dist/src/shared/instrumentation-content.js +1 -1
  139. package/dist/src/shared/trace-policy.d.ts +7 -6
  140. package/dist/src/shared/trace-policy.js +1 -1
  141. package/dist/src/subagents/handle-dispatch.d.ts +2 -1
  142. package/dist/src/subagents/handle-dispatch.js +1 -1
  143. package/dist/src/subagents/remote-dispatch.js +1 -1
  144. package/dist/src/subagents/start-local.d.ts +1 -0
  145. package/dist/src/subagents/start-local.js +1 -1
  146. package/dist/src/subagents/start-remote.d.ts +2 -0
  147. package/dist/src/subagents/start-remote.js +1 -1
  148. package/dist/src/subagents/tool.d.ts +3 -0
  149. package/dist/src/subagents/tool.js +1 -1
  150. package/dist/src/tasks/session-index.d.ts +2 -0
  151. package/dist/src/tasks/session-index.js +1 -1
  152. package/dist/src/tracing/agent-invocation-coordinator.d.ts +3 -2
  153. package/dist/src/tracing/agent-invocation-coordinator.js +1 -1
  154. package/dist/src/tracing/agent-memory-instrumentation.d.ts +3 -1
  155. package/dist/src/tracing/agent-memory-instrumentation.js +1 -1
  156. package/dist/src/tracing/agent-otel-provider.d.ts +2 -0
  157. package/dist/src/tracing/agent-otel-provider.js +2 -2
  158. package/dist/src/tracing/agent-otel-session-context.d.ts +2 -0
  159. package/dist/src/tracing/agent-otel-session-context.js +1 -1
  160. package/dist/src/tracing/agent-trace-context-store.js +1 -1
  161. package/dist/src/tracing/install-instrumentation-runtime.js +1 -1
  162. package/dist/src/tracing/local-instrumentation-runtime.d.ts +1 -1
  163. package/dist/src/tracing/local-instrumentation-runtime.js +1 -1
  164. package/docs/channels/custom.mdx +22 -2
  165. package/docs/channels/eve.mdx +39 -0
  166. package/docs/channels/slack.mdx +32 -0
  167. package/docs/connections/mcp.mdx +14 -0
  168. package/docs/guides/frontend/nextjs.mdx +12 -10
  169. package/docs/guides/instrumentation-providers.md +10 -8
  170. package/docs/guides/instrumentation.md +2 -2
  171. package/docs/guides/remote-agents.md +1 -1
  172. package/docs/install-integrations.mdx +1 -1
  173. package/docs/reference/cli.md +9 -8
  174. package/docs/subagents/index.mdx +3 -1
  175. package/package.json +1 -1
@@ -47,14 +47,15 @@ eve init [target] [--model <provider/model-id>] [--reasoning <effort>] [--channe
47
47
 
48
48
  Creates a new agent app or adds an agent to an existing app. Always installs dependencies. New directories also initialize Git.
49
49
 
50
- | Target | What happens |
51
- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
52
- | `eve init my-agent` | Creates an agent project in `my-agent/` |
53
- | `eve init` or `eve init .` in an empty directory | Creates an agent project in the current directory |
54
- | `eve init` or `eve init .` in a non-empty directory without `package.json` | Asks whether to scaffold in the current directory or a named subdirectory. Using the current directory preserves unrelated files but overwrites files at generated paths |
55
- | `eve init .` in an existing project | Adds `agent/` plus missing `eve`, `ai`, and `zod` dependencies. Requires `package.json` and no existing `agent/` files |
56
-
57
- Coding-agent launches and non-interactive terminals cannot answer the location prompt and fail before writing. Pass a new directory name, such as `eve init my-agent`, in those environments.
50
+ | Target | What happens |
51
+ | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
52
+ | `eve init my-agent` | Creates an agent project in `my-agent/` |
53
+ | `eve init` or `eve init .` in an empty directory | Creates an agent project in the current directory |
54
+ | `eve init` or `eve init .` in a directory with files other than environment metadata and no `package.json` | Refuses to overwrite the directory. Pass a new directory name, such as `eve init my-agent` |
55
+ | `eve init` or `eve init .` in an existing project | Adds `agent/` plus missing `eve`, `ai`, and `zod` dependencies. Requires `package.json` and no existing `agent/` files |
56
+ | `eve init path/to/app` | Adds an agent to the existing package at `path/to/app` |
57
+
58
+ Existing packages do not need a target-selection prompt: run `eve init` from the project directory or `eve init path/to/app`. New projects in non-interactive environments need a new directory name, such as `eve init my-agent`.
58
59
 
59
60
  After scaffolding, a human terminal usually continues into `eve dev`. Enable the self-modification subagent to edit your agent from the dev session. Otherwise, if a coding-agent REPL is on `PATH`, you can launch it to make changes instead of opening the TUI. Fresh projects use the parent workspace's package manager when there is one; otherwise they use the manager that launched `eve init`.
60
61
 
@@ -79,7 +79,7 @@ export default defineWorkspaceAgent({
79
79
  });
80
80
  ```
81
81
 
82
- The helper uses the peer's root `defineAgent({ description })` value as the model-visible tool description. Pass `description` to override it for this caller. When `transport` is omitted, eve selects the built-in transport for the runtime environment. Vercel deployments route through the current deployment and authenticate with the caller's Vercel OIDC token. Outside Vercel, provide an explicit transport with `url` and optional `auth` or `headers`:
82
+ The helper uses the peer's root `defineAgent({ description })` value as the model-visible tool description. Pass `description` to override it for this caller. When `transport` is omitted, eve selects the built-in transport for the runtime environment. Vercel deployments route through the current deployment and authenticate with the caller's Vercel OIDC token. A workspace hosted through `withEve()` in a Next.js app uses its `/eve/agents/<name>` mount; a hostless workspace uses `/<name>`. Outside Vercel, provide an explicit transport with `url` and optional `auth` or `headers`:
83
83
 
84
84
  ```ts title="agents/foreman/agent/subagents/research.ts"
85
85
  import { defineWorkspaceAgent } from "eve";
@@ -217,6 +217,8 @@ Do not rely on subagent delegation by itself as an approval boundary. Put sensit
217
217
 
218
218
  Each delegated subagent spins up its own child session and stream. The parent stream carries the control-plane events `subagent.called` and `subagent.completed`, plus interactive `input.requested`, `authorization.required`, and `authorization.completed` events proxied from descendants so the root channel can prompt the user. To follow the child's other progress, read `subagent.called.data.childSessionId` and subscribe at `GET /eve/v1/session/:childSessionId/stream`.
219
219
 
220
+ Channels with activity reporting attribute the backing agent's tool activity to its background task. Local and remote subagents share the task's progress item rather than adding a separate agent item. Continuing or steering a child with `agentId` attaches its new activity to the new task; the previous task keeps its completed or cancelled status. This applies to the built-in `agent` and declared subagent tools, not to child invocations inside custom workflow tools. Activity reporting is best-effort and does not change task execution or result delivery.
221
+
220
222
  A background task that was already admitted survives cancellation of the turn that started it; background work that has not yet been admitted is rejected with the cancelled step. Use `task_cancel` to stop an admitted task. Cancellation delivers the task's final notification to an active parent even if the task must be stopped forcibly. Parent-session finalization cancels remaining live tasks.
221
223
 
222
224
  Subagent model calls automatically retry classified transient provider failures, including overload errors delivered after a stream starts. eve makes at most three fresh model-call attempts, repeating only the current uncommitted call by default so completed earlier Workflow steps, tool results, and sandbox work remain available to the child. A declared subagent that opts into [Workflow checkpoint batching](./agent-config#workflow-checkpoint-batching) can instead repeat the uncommitted calls and inline tool executions in its current batch. Other recoverable task errors fall back to Workflow's durable step retry from the last committed session snapshot. Exhausting the transient model-call attempts or the dedicated empty-response reissue returns one failed task result instead of stacking both retry budgets; terminal errors fail immediately.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve",
3
- "version": "0.54.5",
3
+ "version": "0.55.0",
4
4
  "private": false,
5
5
  "description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
6
6
  "keywords": [