eve 0.20.0 → 0.21.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 (139) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/src/channel/types.d.ts +9 -5
  3. package/dist/src/chunks/{use-eve-agent-Dvy_Wjvq.js → use-eve-agent-CM24ZUEI.js} +48 -34
  4. package/dist/src/chunks/{use-eve-agent-Bh1NmXO9.js → use-eve-agent-CxcKypLZ.js} +48 -34
  5. package/dist/src/client/index.d.ts +1 -1
  6. package/dist/src/client/message-reducer-types.d.ts +11 -3
  7. package/dist/src/client/message-reducer.js +1 -1
  8. package/dist/src/compiler/manifest.js +1 -1
  9. package/dist/src/compiler/normalize-agent-config.js +1 -1
  10. package/dist/src/compiler/workspace-resources.js +1 -1
  11. package/dist/src/context/dynamic-skill-lifecycle.js +1 -1
  12. package/dist/src/context/keys.d.ts +0 -1
  13. package/dist/src/context/keys.js +1 -1
  14. package/dist/src/discover/sandbox.d.ts +0 -6
  15. package/dist/src/discover/sandbox.js +1 -1
  16. package/dist/src/evals/cli/eval.js +2 -2
  17. package/dist/src/execution/create-session-step.d.ts +2 -1
  18. package/dist/src/execution/create-session-step.js +1 -1
  19. package/dist/src/execution/delegated-parent-notification.d.ts +6 -0
  20. package/dist/src/execution/delegated-parent-notification.js +1 -1
  21. package/dist/src/execution/dispatch-runtime-actions-step.js +1 -1
  22. package/dist/src/execution/dispatch-workflow-runtime-actions-step.js +1 -1
  23. package/dist/src/execution/durable-session-store.d.ts +1 -0
  24. package/dist/src/execution/next-driver-action.d.ts +3 -0
  25. package/dist/src/execution/node-step.d.ts +6 -0
  26. package/dist/src/execution/node-step.js +1 -1
  27. package/dist/src/execution/run-session-limits.d.ts +21 -0
  28. package/dist/src/execution/run-session-limits.js +1 -0
  29. package/dist/src/execution/runtime-context.js +1 -1
  30. package/dist/src/execution/sandbox/bindings/local-backend-utils.d.ts +1 -1
  31. package/dist/src/execution/sandbox/bindings/local-backend-utils.js +1 -1
  32. package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
  33. package/dist/src/execution/sandbox/ensure.js +1 -1
  34. package/dist/src/execution/sandbox/prewarm.js +1 -1
  35. package/dist/src/execution/session-callback-step.d.ts +6 -0
  36. package/dist/src/execution/session-callback-step.js +1 -1
  37. package/dist/src/execution/session.d.ts +14 -3
  38. package/dist/src/execution/session.js +2 -4
  39. package/dist/src/execution/skills/instructions.d.ts +8 -4
  40. package/dist/src/execution/skills/instructions.js +2 -2
  41. package/dist/src/execution/subagent-tool.d.ts +7 -0
  42. package/dist/src/execution/subagent-tool.js +1 -1
  43. package/dist/src/execution/subagent-usage-span.d.ts +9 -0
  44. package/dist/src/execution/subagent-usage-span.js +1 -0
  45. package/dist/src/execution/turn-execution-cursor.d.ts +2 -0
  46. package/dist/src/execution/turn-workflow.js +1 -1
  47. package/dist/src/execution/workflow-entry.d.ts +1 -0
  48. package/dist/src/execution/workflow-entry.js +1 -1
  49. package/dist/src/execution/workflow-runtime.js +1 -1
  50. package/dist/src/execution/workflow-skill-root.d.ts +6 -0
  51. package/dist/src/execution/workflow-skill-root.js +1 -0
  52. package/dist/src/execution/workflow-steps.d.ts +3 -0
  53. package/dist/src/execution/workflow-steps.js +1 -1
  54. package/dist/src/harness/advertised-tools.d.ts +1 -0
  55. package/dist/src/harness/advertised-tools.js +1 -1
  56. package/dist/src/harness/input-requests.d.ts +8 -0
  57. package/dist/src/harness/input-requests.js +1 -1
  58. package/dist/src/harness/runtime-actions.js +1 -1
  59. package/dist/src/harness/session-limit-continuation.d.ts +55 -0
  60. package/dist/src/harness/session-limit-continuation.js +1 -0
  61. package/dist/src/harness/session-limit-enforcement.d.ts +55 -0
  62. package/dist/src/harness/session-limit-enforcement.js +1 -0
  63. package/dist/src/harness/subagent-depth.d.ts +1 -4
  64. package/dist/src/harness/subagent-depth.js +1 -1
  65. package/dist/src/harness/subagent-token-budget.d.ts +14 -0
  66. package/dist/src/harness/subagent-token-budget.js +1 -0
  67. package/dist/src/harness/tool-loop.js +1 -1
  68. package/dist/src/harness/turn-tag-state.d.ts +31 -0
  69. package/dist/src/harness/turn-tag-state.js +1 -1
  70. package/dist/src/harness/types.d.ts +21 -4
  71. package/dist/src/harness/workflow-sandbox.d.ts +1 -0
  72. package/dist/src/harness/workflow-sandbox.js +1 -1
  73. package/dist/src/harness/workflow-subagent-limit.d.ts +38 -0
  74. package/dist/src/harness/workflow-subagent-limit.js +1 -0
  75. package/dist/src/harness/workflow-tool-description.d.ts +6 -1
  76. package/dist/src/harness/workflow-tool-description.js +5 -3
  77. package/dist/src/internal/application/package.js +1 -1
  78. package/dist/src/internal/authored-definition/core.js +1 -1
  79. package/dist/src/internal/authored-definition/schema-backed.js +1 -1
  80. package/dist/src/internal/nitro/host/sandbox-shutdown-plugin.js +1 -1
  81. package/dist/src/protocol/message.d.ts +19 -2
  82. package/dist/src/protocol/message.js +2 -2
  83. package/dist/src/public/channels/chat-sdk/chatSdkChannel.d.ts +34 -3
  84. package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +2 -2
  85. package/dist/src/public/channels/chat-sdk/index.d.ts +2 -0
  86. package/dist/src/public/channels/chat-sdk/index.js +1 -1
  87. package/dist/src/public/channels/chat-sdk/messageToUserContent.d.ts +13 -0
  88. package/dist/src/public/channels/chat-sdk/messageToUserContent.js +1 -0
  89. package/dist/src/public/channels/chat-sdk/notImplemented.d.ts +7 -0
  90. package/dist/src/public/channels/chat-sdk/notImplemented.js +1 -0
  91. package/dist/src/public/channels/slack/api.d.ts +14 -12
  92. package/dist/src/public/channels/slack/api.js +1 -1
  93. package/dist/src/public/definitions/tool.d.ts +37 -0
  94. package/dist/src/public/definitions/tool.js +1 -1
  95. package/dist/src/public/tools/index.d.ts +1 -1
  96. package/dist/src/public/tools/index.js +1 -1
  97. package/dist/src/runtime/actions/types.d.ts +9 -0
  98. package/dist/src/runtime/actions/types.js +1 -1
  99. package/dist/src/runtime/agent/bootstrap.d.ts +2 -0
  100. package/dist/src/runtime/agent/bootstrap.js +1 -1
  101. package/dist/src/runtime/resolve-agent.js +1 -1
  102. package/dist/src/runtime/sandbox/keys.js +1 -1
  103. package/dist/src/runtime/sandbox/template-plan.js +1 -1
  104. package/dist/src/runtime/session-callback-route.js +1 -1
  105. package/dist/src/runtime/skills/sandbox-access.d.ts +1 -1
  106. package/dist/src/runtime/skills/sandbox-access.js +1 -1
  107. package/dist/src/runtime/workspace/seed-files.js +1 -1
  108. package/dist/src/setup/scaffold/create/project.js +1 -1
  109. package/dist/src/setup/scaffold/create/web-template.d.ts +2 -2
  110. package/dist/src/setup/scaffold/create/web-template.js +77 -3
  111. package/dist/src/shared/agent-definition.d.ts +31 -3
  112. package/dist/src/shared/skill-package.d.ts +2 -2
  113. package/dist/src/shared/skill-package.js +1 -1
  114. package/dist/src/shared/skill-paths.d.ts +28 -0
  115. package/dist/src/shared/skill-paths.js +2 -0
  116. package/dist/src/shared/token-usage.d.ts +22 -0
  117. package/dist/src/shared/token-usage.js +1 -0
  118. package/dist/src/svelte/index.js +1 -1
  119. package/dist/src/svelte/use-eve-agent.js +1 -1
  120. package/dist/src/vue/index.js +1 -1
  121. package/dist/src/vue/use-eve-agent.js +1 -1
  122. package/docs/agent-config.md +32 -15
  123. package/docs/channels/chat-sdk.mdx +209 -0
  124. package/docs/channels/meta.json +1 -0
  125. package/docs/concepts/context-control.md +2 -2
  126. package/docs/concepts/default-harness.md +10 -0
  127. package/docs/concepts/sessions-runs-and-streaming.md +1 -1
  128. package/docs/guides/client/messages.mdx +4 -0
  129. package/docs/guides/client/streaming.mdx +17 -12
  130. package/docs/guides/dynamic-workflows.md +87 -0
  131. package/docs/guides/frontend/overview.mdx +5 -1
  132. package/docs/guides/meta.json +1 -0
  133. package/docs/guides/remote-agents.md +1 -0
  134. package/docs/reference/project-layout.md +5 -4
  135. package/docs/reference/typescript-api.md +26 -26
  136. package/docs/sandbox.mdx +1 -1
  137. package/docs/skills.mdx +3 -1
  138. package/docs/subagents.mdx +2 -1
  139. package/package.json +1 -1
package/docs/sandbox.mdx CHANGED
@@ -82,7 +82,7 @@ agent/sandbox/
82
82
  scripts/run.sh ← lands at /workspace/scripts/run.sh
83
83
  ```
84
84
 
85
- Every file under `workspace/` mirrors into the sandbox cwd with its structure intact, and eve lists the top-level entries to the model in the prompt automatically. One subtree is off limits. Skill discovery already seeds skill files under `/workspace/skills/`, so authoring `agent/sandbox/workspace/skills/...` is rejected; put those under `agent/skills/` instead.
85
+ Every file under `workspace/` mirrors into the sandbox cwd with its structure intact, and eve lists the top-level entries to the model in the prompt automatically. `agent/skills/` files are materialized separately under `$HOME/.agents/skills/`, so `agent/sandbox/workspace/skills/...` is an ordinary workspace subtree when you choose to author one.
86
86
 
87
87
  ## Overriding the sandbox
88
88
 
package/docs/skills.mdx CHANGED
@@ -9,6 +9,8 @@ A skill is a model-loadable procedure that follows the `SKILL.md` convention. It
9
9
 
10
10
  eve scans the files under `agent/skills/` and exposes each one's description to the model alongside a framework-owned `load_skill` tool. When a request matches a skill's description (or you name the skill outright), the model calls `load_skill`, and eve appends that skill's markdown to the active turn's context.
11
11
 
12
+ At runtime, skill package files are placed under `$HOME/.agents/skills/<skill>/`. If `$HOME` is unavailable in a sandbox, eve falls back to `/workspace/skills/<skill>/`. `load_skill` reads `SKILL.md` automatically; any sibling references inside that file, such as `references/checklist.md`, are relative to the directory containing that specific `SKILL.md`.
13
+
12
14
  The description is a routing hint, not a label. Write it as the task that should trigger activation:
13
15
 
14
16
  ```md
@@ -68,7 +70,7 @@ const research = ctx.getSkill("research");
68
70
  const checklist = await research.file("references/checklist.md").text();
69
71
  ```
70
72
 
71
- The handle exposes the skill's `name` and `file(relativePath)`; file content is read lazily from the active sandbox.
73
+ The handle exposes the skill's `name` and `file(relativePath)`; file content is read lazily from the active sandbox, relative to that skill package directory.
72
74
 
73
75
  ## Dynamic skills
74
76
 
@@ -94,7 +94,7 @@ at depths 1 through 4; a session already at depth 4 cannot delegate again.
94
94
 
95
95
  At the configured depth, eve stops advertising subagent tools, including declared local subagents, remote-agent tools, the built-in `agent` tool, and the `Workflow` orchestration tool when it would only expose subagents. If a stale or forced subagent call still reaches execution, eve blocks it and returns an error tool result instead of starting another child session.
96
96
 
97
- `Workflow` is root-only. Delegated subagent sessions can still call their own visible subagent tools until the depth cap, but they do not receive the `Workflow` orchestration wrapper.
97
+ `Workflow` is root-only. Delegated subagent sessions can still call their own visible subagent tools until the depth cap, but they do not receive the `Workflow` orchestration wrapper. The number of subagent calls one Workflow program may dispatch is capped separately by `limits.maxSubagents` (default 100); see [Dynamic workflows](./guides/dynamic-workflows).
98
98
 
99
99
  A declared subagent's tool name is the bare path-derived name, with no prefix. `agent/subagents/researcher/` registers as the tool `researcher`. Unlike connection tools (`<connection>__<tool>`), it carries no namespace, so the model, approvals, logs, and evals all reference it by that name. Its input schema is:
100
100
 
@@ -118,3 +118,4 @@ Split out a subagent when the task needs a different prompt or specialist role,
118
118
  ## What to read next
119
119
 
120
120
  - [Remote agents](./guides/remote-agents): call another eve deployment as a subagent.
121
+ - [Dynamic workflows](./guides/dynamic-workflows): have the model orchestrate its subagents programmatically (fan-out, map-reduce).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "private": false,
5
5
  "description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
6
6
  "keywords": [