eve 0.50.0 → 0.51.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 (734) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/src/acp/adapter.js +1 -1
  3. package/dist/src/channel/session.d.ts +2 -1
  4. package/dist/src/channel/session.js +1 -1
  5. package/dist/src/channel/types.d.ts +16 -20
  6. package/dist/src/chunks/{use-eve-agent-B5I-k6Ek.js → use-eve-agent-3DZuvuWE.js} +21 -10
  7. package/dist/src/chunks/{use-eve-agent-DUMU6dap.js → use-eve-agent-D7apPojZ.js} +21 -10
  8. package/dist/src/cli/acp/command.d.ts +1 -1
  9. package/dist/src/cli/acp/command.js +2 -2
  10. package/dist/src/cli/agent-command.d.ts +5 -0
  11. package/dist/src/cli/agent-command.js +1 -0
  12. package/dist/src/cli/application-command.d.ts +2 -0
  13. package/dist/src/cli/commands/agent-instructions.d.ts +3 -1
  14. package/dist/src/cli/commands/agent-instructions.js +1 -1
  15. package/dist/src/cli/commands/build.d.ts +1 -1
  16. package/dist/src/cli/commands/build.js +1 -1
  17. package/dist/src/cli/commands/deploy.d.ts +2 -0
  18. package/dist/src/cli/commands/deploy.js +1 -1
  19. package/dist/src/cli/commands/init-agent-workspace.d.ts +14 -0
  20. package/dist/src/cli/commands/init-agent-workspace.js +1 -0
  21. package/dist/src/cli/commands/init.d.ts +2 -13
  22. package/dist/src/cli/commands/init.js +1 -1
  23. package/dist/src/cli/commands/link.d.ts +2 -0
  24. package/dist/src/cli/commands/link.js +1 -1
  25. package/dist/src/cli/commands/preconditions.d.ts +15 -0
  26. package/dist/src/cli/commands/preconditions.js +1 -1
  27. package/dist/src/cli/commands/register-integration-commands.d.ts +1 -1
  28. package/dist/src/cli/commands/register-integration-commands.js +1 -1
  29. package/dist/src/cli/commands/register-project-commands.d.ts +1 -1
  30. package/dist/src/cli/commands/register-project-commands.js +1 -1
  31. package/dist/src/cli/commands/register-registry-commands.js +2 -2
  32. package/dist/src/cli/dev/environment.d.ts +1 -1
  33. package/dist/src/cli/dev/environment.js +1 -1
  34. package/dist/src/cli/dev/local-server-process.js +1 -1
  35. package/dist/src/cli/dev/run-interactive-ui.js +1 -1
  36. package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
  37. package/dist/src/cli/dev/tui/runner.js +1 -1
  38. package/dist/src/cli/dev/tui/setup-commands.d.ts +3 -1
  39. package/dist/src/cli/dev/tui/setup-commands.js +1 -1
  40. package/dist/src/cli/invoke/command.d.ts +1 -1
  41. package/dist/src/cli/invoke/command.js +1 -1
  42. package/dist/src/cli/option-parsers.d.ts +1 -0
  43. package/dist/src/cli/option-parsers.js +1 -1
  44. package/dist/src/cli/run.js +3 -3
  45. package/dist/src/client/agent-info-schema.d.ts +0 -1
  46. package/dist/src/client/agent-info-schema.js +1 -1
  47. package/dist/src/client/message-action-parts.js +1 -1
  48. package/dist/src/client/open-stream.js +1 -1
  49. package/dist/src/client/session-controls.d.ts +3 -0
  50. package/dist/src/client/session-controls.js +1 -1
  51. package/dist/src/client/session.d.ts +4 -1
  52. package/dist/src/compiled/.vendor-stamp.json +11 -11
  53. package/dist/src/compiled/@clack/core/LICENSE +9 -0
  54. package/dist/src/compiled/@clack/core/index.d.ts +363 -0
  55. package/dist/src/compiled/@clack/core/index.js +20 -0
  56. package/dist/src/compiled/@eve/catalog/index.js +1 -1
  57. package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +34 -92
  58. package/dist/src/compiled/@vercel/sandbox/api-client/base-client.d.ts +1 -1
  59. package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +1 -1
  60. package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +13 -29
  61. package/dist/src/compiled/@vercel/sandbox/constants.d.ts +11 -1
  62. package/dist/src/compiled/@vercel/sandbox/index.d.ts +3 -3
  63. package/dist/src/compiled/@vercel/sandbox/index.js +9 -9
  64. package/dist/src/compiled/@vercel/sandbox/sandbox-user.d.ts +5 -6
  65. package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +79 -67
  66. package/dist/src/compiled/@vercel/sandbox/session.d.ts +5 -3
  67. package/dist/src/compiled/@vercel/sandbox/snapshot.d.ts +9 -0
  68. package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/api-client.d.ts +86 -1
  69. package/dist/src/compiled/@vercel/sandbox-drives/api-client/index.d.ts +2 -0
  70. package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/validators.d.ts +26 -1
  71. package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/constants.d.ts +2 -2
  72. package/dist/src/compiled/@vercel/{sandbox → sandbox-drives}/drive.d.ts +10 -0
  73. package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/index.d.ts +3 -2
  74. package/dist/src/compiled/@vercel/sandbox-drives/index.js +9 -0
  75. package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/sandbox.d.ts +35 -6
  76. package/dist/src/compiled/@workflow/core/index.js +1 -1
  77. package/dist/src/compiled/@workflow/core/private.d.ts +2 -4
  78. package/dist/src/compiled/@workflow/core/private.js +1 -1
  79. package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +9 -7
  80. package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +13 -0
  81. package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +54 -1
  82. package/dist/src/compiled/@workflow/core/runtime.js +3 -3
  83. package/dist/src/compiled/@workflow/core/serialization/types.d.ts +7 -0
  84. package/dist/src/compiled/@workflow/core/serialization.d.ts +24 -2
  85. package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
  86. package/dist/src/compiled/@workflow/core/workflow.js +1 -1
  87. package/dist/src/compiled/@workflow/errors/error-codes.d.ts +2 -0
  88. package/dist/src/compiled/@workflow/errors/index.d.ts +19 -0
  89. package/dist/src/compiled/@workflow/errors/index.js +1 -1
  90. package/dist/src/compiled/@workflow/world/analytics.d.ts +46 -2
  91. package/dist/src/compiled/@workflow/world/events.d.ts +26 -1
  92. package/dist/src/compiled/@workflow/world/index.d.ts +1 -1
  93. package/dist/src/compiled/@workflow/world/runs.d.ts +2 -2
  94. package/dist/src/compiled/@workflow/world-local/index.js +3 -3
  95. package/dist/src/compiled/@workflow/world-vercel/index.js +12 -12
  96. package/dist/src/compiled/_chunks/node/{auth-BSKyPAEP.js → auth-Bx1Aoyfo.js} +1 -1
  97. package/dist/src/compiled/_chunks/node/{auth-YpKlwhP1.js → auth-CA8ZMfB8.js} +1 -1
  98. package/dist/src/compiled/_chunks/node/esm-CE0tAvRh.js +7 -0
  99. package/dist/src/compiled/_chunks/node/version-BC6t2Txc.js +1 -0
  100. package/dist/src/compiled/_chunks/node/version-DSQqVZ5T.js +1 -0
  101. package/dist/src/compiled/_chunks/workflow/{attribute-changes-BwAadFfB.js → attribute-changes-03lzo29R.js} +1 -1
  102. package/dist/src/compiled/_chunks/workflow/dist-BIdMK5N8.js +40 -0
  103. package/dist/src/compiled/_chunks/workflow/dist-DMQ3CtWt.js +3 -0
  104. package/dist/src/compiled/_chunks/workflow/frames-Boesh7kU.js +3 -0
  105. package/dist/src/compiled/_chunks/workflow/{private-CZFMABEf.js → private-CKx3PkSS.js} +1 -1
  106. package/dist/src/compiled/_chunks/workflow/{resume-hook-BToMtPbH.js → resume-hook-C6eL-S_T.js} +1 -1
  107. package/dist/src/compiled/_chunks/workflow/run-BV0S6Zc2.js +1 -0
  108. package/dist/src/compiled/_chunks/workflow/sleep-Bh3jP9ii.js +1 -0
  109. package/dist/src/compiled/_chunks/workflow/wait-until-l-cwfJvm.js +15 -0
  110. package/dist/src/compiled/_chunks/workflow/{ws-transport-PnVVxT0R.js → ws-transport-BagXNxCE.js} +1 -1
  111. package/dist/src/compiler/compile-from-memory.d.ts +1 -0
  112. package/dist/src/compiler/extension-compatibility.d.ts +20 -20
  113. package/dist/src/compiler/extension-compatibility.js +1 -1
  114. package/dist/src/compiler/manifest.d.ts +2 -2
  115. package/dist/src/compiler/manifest.js +1 -1
  116. package/dist/src/compiler/normalize-agent-config.js +1 -1
  117. package/dist/src/compiler/normalize-manifest-helpers.js +1 -1
  118. package/dist/src/compiler/normalize-manifest.js +1 -1
  119. package/dist/src/compiler/normalize-tool.js +1 -1
  120. package/dist/src/context/build-dynamic-tools.js +1 -1
  121. package/dist/src/context/dynamic-subagent-lifecycle.js +1 -1
  122. package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
  123. package/dist/src/context/dynamic-tool-metadata.d.ts +1 -0
  124. package/dist/src/context/keys.d.ts +0 -3
  125. package/dist/src/context/keys.js +1 -1
  126. package/dist/src/discover/extensions.d.ts +2 -0
  127. package/dist/src/discover/extensions.js +1 -1
  128. package/dist/src/discover/filesystem.d.ts +1 -0
  129. package/dist/src/discover/filesystem.js +1 -1
  130. package/dist/src/discover/project.js +1 -1
  131. package/dist/src/evals/cli/eval.js +1 -1
  132. package/dist/src/evals/mock-model.js +1 -1
  133. package/dist/src/evals/runner/execute-task.js +1 -1
  134. package/dist/src/evals/session-cleanup.d.ts +7 -0
  135. package/dist/src/evals/session-cleanup.js +1 -0
  136. package/dist/src/evals/session.d.ts +4 -0
  137. package/dist/src/evals/session.js +1 -1
  138. package/dist/src/eve-channel/index.js +1 -1
  139. package/dist/src/eve-channel/request.d.ts +1 -0
  140. package/dist/src/eve-channel/request.js +1 -1
  141. package/dist/src/execution/activity-collector.js +1 -1
  142. package/dist/src/execution/activity-work-id.js +1 -1
  143. package/dist/src/execution/activity-work.d.ts +8 -0
  144. package/dist/src/execution/activity-work.js +1 -1
  145. package/dist/src/execution/cancel-descendant-turns-step.js +1 -1
  146. package/dist/src/execution/cancel-indexed-session-tasks-step.d.ts +6 -0
  147. package/dist/src/execution/cancel-indexed-session-tasks-step.js +1 -0
  148. package/dist/src/execution/channel-context.js +1 -1
  149. package/dist/src/execution/coordination-dispatch-shared.d.ts +103 -0
  150. package/dist/src/execution/coordination-dispatch-shared.js +1 -0
  151. package/dist/src/execution/coordination-dispatch-step.d.ts +7 -0
  152. package/dist/src/execution/coordination-dispatch-step.js +1 -0
  153. package/dist/src/execution/create-session-step.d.ts +1 -2
  154. package/dist/src/execution/create-session-step.js +1 -1
  155. package/dist/src/execution/deliver-payloads.js +1 -1
  156. package/dist/src/execution/dispatch-action-failures.d.ts +5 -5
  157. package/dist/src/execution/dispatch-action-failures.js +1 -1
  158. package/dist/src/execution/dispatch-start-operation.d.ts +1 -1
  159. package/dist/src/execution/dispatch-start-operation.js +1 -1
  160. package/dist/src/execution/durable-session-store.d.ts +1 -1
  161. package/dist/src/execution/eve-workflow-attributes.d.ts +1 -1
  162. package/dist/src/execution/inline-turn.d.ts +2 -0
  163. package/dist/src/execution/inline-turn.js +1 -1
  164. package/dist/src/execution/next-driver-action.d.ts +7 -13
  165. package/dist/src/execution/node-step.d.ts +1 -2
  166. package/dist/src/execution/node-step.js +1 -1
  167. package/dist/src/execution/parked-delivery-wait.js +1 -1
  168. package/dist/src/execution/pending-turn-state.d.ts +1 -2
  169. package/dist/src/execution/pending-turn-state.js +1 -1
  170. package/dist/src/execution/proxied-deliver-step.js +1 -1
  171. package/dist/src/execution/route-child-delivery.js +1 -1
  172. package/dist/src/execution/run-session-limits.d.ts +5 -5
  173. package/dist/src/execution/runtime-context.js +1 -1
  174. package/dist/src/execution/sandbox/bindings/vercel-create-sdk.js +1 -1
  175. package/dist/src/execution/sandbox/bindings/vercel-sdk-types.d.ts +4 -4
  176. package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
  177. package/dist/src/execution/session-activity-projection.js +1 -1
  178. package/dist/src/execution/session-activity.js +1 -1
  179. package/dist/src/execution/session-command-inbox.d.ts +2 -3
  180. package/dist/src/execution/session-timeout-workflow.js +1 -1
  181. package/dist/src/execution/session.d.ts +2 -1
  182. package/dist/src/execution/session.js +2 -2
  183. package/dist/src/execution/settle-cancelled-turn-step.d.ts +1 -1
  184. package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
  185. package/dist/src/execution/stable-workflow-names.d.ts +1 -1
  186. package/dist/src/execution/stable-workflow-names.js +1 -1
  187. package/dist/src/execution/task-event-callback.js +1 -1
  188. package/dist/src/execution/tasks/child/steps.d.ts +19 -11
  189. package/dist/src/execution/tasks/child/steps.js +1 -1
  190. package/dist/src/execution/tasks/child/update-step.d.ts +6 -0
  191. package/dist/src/execution/tasks/child/update-step.js +1 -0
  192. package/dist/src/execution/tasks/child/update.d.ts +7 -10
  193. package/dist/src/execution/tasks/child/update.js +1 -1
  194. package/dist/src/execution/tasks/child/workflow.d.ts +21 -27
  195. package/dist/src/execution/tasks/child/workflow.js +1 -1
  196. package/dist/src/execution/tasks/parent/control-shared.d.ts +6 -17
  197. package/dist/src/execution/tasks/parent/control-shared.js +1 -1
  198. package/dist/src/execution/tasks/parent/delegate.d.ts +15 -48
  199. package/dist/src/execution/tasks/parent/delegate.js +1 -1
  200. package/dist/src/execution/tasks/parent/dispatch.d.ts +19 -34
  201. package/dist/src/execution/tasks/parent/dispatch.js +1 -1
  202. package/dist/src/execution/tasks/parent/hitl-proxy-steps.d.ts +5 -15
  203. package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +1 -1
  204. package/dist/src/execution/tasks/parent/run-parent.d.ts +2 -2
  205. package/dist/src/execution/tasks/parent/subagent-task-projection.d.ts +26 -0
  206. package/dist/src/execution/tasks/parent/subagent-task-projection.js +1 -0
  207. package/dist/src/execution/tasks/parent/task-cancel.d.ts +11 -0
  208. package/dist/src/execution/tasks/parent/task-cancel.js +1 -0
  209. package/dist/src/execution/tasks/parent/tool-execution.d.ts +2 -3
  210. package/dist/src/execution/tasks/parent/tool-execution.js +1 -1
  211. package/dist/src/execution/terminate-child-sessions-step.js +1 -1
  212. package/dist/src/execution/tools/sleep-workflow.d.ts +3 -0
  213. package/dist/src/execution/tools/sleep-workflow.js +1 -0
  214. package/dist/src/execution/tools/sleep.d.ts +1 -5
  215. package/dist/src/execution/tools/sleep.js +1 -1
  216. package/dist/src/execution/tools/subagent/accept-event-step.d.ts +7 -0
  217. package/dist/src/execution/tools/subagent/accept-event-step.js +1 -0
  218. package/dist/src/execution/tools/subagent/emit-called-step.d.ts +9 -0
  219. package/dist/src/execution/tools/subagent/emit-called-step.js +1 -0
  220. package/dist/src/execution/tools/subagent/invoke-agent.d.ts +51 -0
  221. package/dist/src/execution/tools/subagent/invoke-agent.js +1 -0
  222. package/dist/src/execution/tools/subagent/invoke-preparation.d.ts +37 -0
  223. package/dist/src/execution/tools/subagent/invoke-preparation.js +1 -0
  224. package/dist/src/execution/tools/subagent/invoke-step.d.ts +55 -0
  225. package/dist/src/execution/tools/subagent/invoke-step.js +1 -0
  226. package/dist/src/execution/tools/subagent/receipt-identity.d.ts +11 -0
  227. package/dist/src/execution/tools/subagent/receipt-identity.js +1 -0
  228. package/dist/src/execution/{dispatch-runtime-actions-start.d.ts → tools/subagent/start.d.ts} +17 -5
  229. package/dist/src/execution/tools/subagent/start.js +1 -0
  230. package/dist/src/execution/tools/subagent/task-agent-requests.d.ts +24 -0
  231. package/dist/src/execution/tools/subagent/task-agent-requests.js +1 -0
  232. package/dist/src/execution/tools/subagent/task-cancel.d.ts +10 -0
  233. package/dist/src/execution/tools/subagent/task-cancel.js +1 -0
  234. package/dist/src/execution/tools/tasks.d.ts +10 -0
  235. package/dist/src/execution/tools/tasks.js +1 -0
  236. package/dist/src/execution/{tool-run → tools/workflow}/answer.d.ts +1 -1
  237. package/dist/src/execution/tools/workflow/answer.js +1 -0
  238. package/dist/src/execution/tools/workflow/ask.d.ts +22 -0
  239. package/dist/src/execution/tools/workflow/ask.js +1 -0
  240. package/dist/src/execution/tools/workflow/background.d.ts +18 -0
  241. package/dist/src/execution/tools/workflow/background.js +1 -0
  242. package/dist/src/execution/tools/workflow/body.d.ts +25 -0
  243. package/dist/src/execution/tools/workflow/body.js +1 -0
  244. package/dist/src/execution/tools/workflow/cancel.d.ts +11 -0
  245. package/dist/src/execution/tools/workflow/cancel.js +1 -0
  246. package/dist/src/execution/tools/workflow/emit-workflow-tool-run-report-step.d.ts +7 -0
  247. package/dist/src/execution/tools/workflow/emit-workflow-tool-run-report-step.js +1 -0
  248. package/dist/src/execution/tools/workflow/messages.d.ts +88 -0
  249. package/dist/src/execution/tools/workflow/messages.js +1 -0
  250. package/dist/src/execution/tools/workflow/owner-inbox.d.ts +13 -0
  251. package/dist/src/execution/tools/workflow/owner-inbox.js +1 -0
  252. package/dist/src/execution/tools/workflow/owner.d.ts +13 -0
  253. package/dist/src/execution/tools/workflow/owner.js +1 -0
  254. package/dist/src/execution/tools/workflow/run-control.d.ts +18 -0
  255. package/dist/src/execution/tools/workflow/run-control.js +1 -0
  256. package/dist/src/execution/tools/workflow/start.d.ts +33 -0
  257. package/dist/src/execution/tools/workflow/start.js +1 -0
  258. package/dist/src/execution/tools/workflow/types.d.ts +26 -0
  259. package/dist/src/execution/tools/workflow/types.js +1 -0
  260. package/dist/src/execution/tools/workflow/workflow.d.ts +3 -0
  261. package/dist/src/execution/tools/workflow/workflow.js +1 -0
  262. package/dist/src/execution/turn-cancellation-control.d.ts +1 -0
  263. package/dist/src/execution/turn-cancellation-control.js +1 -1
  264. package/dist/src/execution/turn-cancellation-token.d.ts +1 -0
  265. package/dist/src/execution/turn-control-receiver.d.ts +3 -0
  266. package/dist/src/execution/turn-control-receiver.js +1 -1
  267. package/dist/src/execution/turn-dispatch.d.ts +2 -0
  268. package/dist/src/execution/turn-dispatch.js +1 -1
  269. package/dist/src/execution/turn-workflow-tool-run.d.ts +16 -0
  270. package/dist/src/execution/turn-workflow-tool-run.js +1 -0
  271. package/dist/src/execution/turn-workflow.js +1 -1
  272. package/dist/src/execution/wire/session-inbox-contract.d.ts +2 -2
  273. package/dist/src/execution/wire/session-inbox-contract.js +1 -1
  274. package/dist/src/execution/wire/session-inbox-encoder.d.ts +14 -2
  275. package/dist/src/execution/wire/session-inbox-encoder.js +1 -1
  276. package/dist/src/execution/wire/session-inbox-resume.js +1 -1
  277. package/dist/src/execution/wire/session-inbox-wire.d.ts +3 -3
  278. package/dist/src/execution/wire/session-inbox-wire.js +1 -1
  279. package/dist/src/execution/wire/session-inbox-wire.v1.js +1 -1
  280. package/dist/src/execution/wire/session-inbox-wire.v4.d.ts +267 -0
  281. package/dist/src/execution/wire/session-inbox-wire.v4.js +1 -0
  282. package/dist/src/execution/wire/session-inbox-wire.v4.migration.d.ts +3 -0
  283. package/dist/src/execution/wire/session-inbox-wire.v4.migration.js +1 -0
  284. package/dist/src/execution/wire/session-inbox-wire.v5.d.ts +341 -0
  285. package/dist/src/execution/wire/session-inbox-wire.v5.js +1 -0
  286. package/dist/src/execution/wire/session-inbox-wire.v5.migration.d.ts +3 -0
  287. package/dist/src/execution/wire/session-inbox-wire.v5.migration.js +1 -0
  288. package/dist/src/execution/wire/session-inbox-wire.v6.d.ts +341 -0
  289. package/dist/src/execution/wire/session-inbox-wire.v6.js +1 -0
  290. package/dist/src/execution/workflow-entry-finalization.d.ts +6 -0
  291. package/dist/src/execution/workflow-entry-finalization.js +1 -1
  292. package/dist/src/execution/workflow-entry.d.ts +2 -1
  293. package/dist/src/execution/workflow-entry.js +1 -1
  294. package/dist/src/execution/workflow-runtime.d.ts +1 -1
  295. package/dist/src/execution/workflow-runtime.js +1 -1
  296. package/dist/src/execution/workflow-steps.js +1 -1
  297. package/dist/src/framework/sources/registry.js +1 -1
  298. package/dist/src/harness/advertised-tools.d.ts +1 -7
  299. package/dist/src/harness/advertised-tools.js +1 -1
  300. package/dist/src/harness/background-tools.d.ts +8 -2
  301. package/dist/src/harness/{runtime-actions.d.ts → coordination.d.ts} +40 -27
  302. package/dist/src/harness/coordination.js +1 -0
  303. package/dist/src/harness/emission.d.ts +9 -2
  304. package/dist/src/harness/emission.js +1 -1
  305. package/dist/src/harness/execute-tool.d.ts +52 -0
  306. package/dist/src/harness/hitl/session-limit-input-requests.js +1 -1
  307. package/dist/src/harness/input-requests.js +1 -1
  308. package/dist/src/harness/proxy-input-requests.d.ts +6 -2
  309. package/dist/src/harness/session-limit-continuation.d.ts +5 -5
  310. package/dist/src/harness/session-limit-continuation.js +1 -1
  311. package/dist/src/harness/session-limit-enforcement.d.ts +4 -4
  312. package/dist/src/harness/session-limit-enforcement.js +1 -1
  313. package/dist/src/harness/session-usage-limits.d.ts +48 -0
  314. package/dist/src/harness/session-usage-limits.js +1 -0
  315. package/dist/src/harness/stale-input-responses.js +1 -1
  316. package/dist/src/harness/step-hooks.d.ts +1 -2
  317. package/dist/src/harness/step-hooks.js +1 -1
  318. package/dist/src/harness/tool-call-action.js +1 -1
  319. package/dist/src/harness/tool-call-input-errors.js +1 -1
  320. package/dist/src/harness/tool-loop.js +2 -2
  321. package/dist/src/harness/tools.js +1 -1
  322. package/dist/src/harness/turn-tag-state.d.ts +20 -21
  323. package/dist/src/harness/turn-tag-state.js +1 -1
  324. package/dist/src/harness/types.d.ts +9 -7
  325. package/dist/src/harness/workflow-interrupt-state.js +1 -1
  326. package/dist/src/harness/workflow-lifecycle.d.ts +10 -0
  327. package/dist/src/harness/workflow-lifecycle.js +1 -1
  328. package/dist/src/harness/workflow-sandbox.d.ts +1 -1
  329. package/dist/src/harness/workflow-sandbox.js +2 -2
  330. package/dist/src/harness/workflow-subagent-limit.d.ts +7 -7
  331. package/dist/src/harness/workflow-subagent-limit.js +1 -1
  332. package/dist/src/harness/workflow-task-state.d.ts +9 -0
  333. package/dist/src/harness/workflow-task-state.js +1 -0
  334. package/dist/src/harness/workflow-tool-runs.d.ts +27 -0
  335. package/dist/src/harness/workflow-tool-runs.js +1 -0
  336. package/dist/src/instrumentation/native-events.js +1 -1
  337. package/dist/src/instrumentation/parent-lineage.js +1 -1
  338. package/dist/src/internal/agent-name.d.ts +4 -0
  339. package/dist/src/internal/agent-name.js +1 -0
  340. package/dist/src/internal/application/build-output-environment.d.ts +1 -0
  341. package/dist/src/internal/application/build-output-environment.js +1 -1
  342. package/dist/src/internal/application/package.js +1 -1
  343. package/dist/src/internal/application/paths.js +1 -1
  344. package/dist/src/internal/authored-definition/core.js +1 -1
  345. package/dist/src/internal/eve-project-root.d.ts +8 -0
  346. package/dist/src/internal/eve-project-root.js +1 -0
  347. package/dist/src/internal/invocation/workflow-execution.js +1 -1
  348. package/dist/src/internal/nitro/host/build-application.js +1 -1
  349. package/dist/src/internal/nitro/host/create-application-nitro.d.ts +1 -0
  350. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
  351. package/dist/src/internal/nitro/host/start-development-server.js +1 -1
  352. package/dist/src/internal/nitro/host/start-production-server.js +3 -3
  353. package/dist/src/internal/nitro/host/types.d.ts +2 -0
  354. package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +1 -0
  355. package/dist/src/internal/nitro/host/vercel-build-output-config.js +1 -1
  356. package/dist/src/internal/nitro/routes/runtime-stack.js +1 -1
  357. package/dist/src/internal/project-context.d.ts +31 -0
  358. package/dist/src/internal/project-context.js +1 -0
  359. package/dist/src/internal/vercel/assemble-eve-services.d.ts +17 -0
  360. package/dist/src/internal/vercel/assemble-eve-services.js +1 -0
  361. package/dist/src/internal/vercel/build-agent-workspace.d.ts +3 -0
  362. package/dist/src/internal/vercel/build-agent-workspace.js +1 -0
  363. package/dist/src/internal/vercel/build-command.d.ts +4 -0
  364. package/dist/src/internal/vercel/build-command.js +1 -0
  365. package/dist/src/internal/vercel/eve-service-contribution.d.ts +28 -0
  366. package/dist/src/internal/vercel/eve-service-contribution.js +1 -0
  367. package/dist/src/internal/vercel/vercel-service-config-operations.d.ts +18 -0
  368. package/dist/src/internal/vercel/vercel-service-config-operations.js +1 -0
  369. package/dist/src/internal/vercel/vercel-service-name.d.ts +6 -0
  370. package/dist/src/internal/vercel/vercel-service-name.js +1 -0
  371. package/dist/src/internal/vercel/vercel-services-config.d.ts +53 -0
  372. package/dist/src/internal/vercel/vercel-services-config.js +1 -0
  373. package/dist/src/internal/workflow/reference.d.ts +2 -0
  374. package/dist/src/internal/workflow/reference.js +1 -0
  375. package/dist/src/internal/workflow-bundle/authored-workflow-modules.d.ts +0 -9
  376. package/dist/src/internal/workflow-bundle/authored-workflow-modules.js +1 -1
  377. package/dist/src/internal/workflow-bundle/builder.js +1 -1
  378. package/dist/src/internal/workflow-bundle/workflow-builders.d.ts +1 -1
  379. package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -1
  380. package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +1 -1
  381. package/dist/src/internal/workflow-bundle/workflow-transformer.js +1 -1
  382. package/dist/src/protocol/message.d.ts +2 -0
  383. package/dist/src/protocol/message.js +1 -1
  384. package/dist/src/public/channels/slack/action-status.js +1 -1
  385. package/dist/src/public/channels/slack/activity-plan.d.ts +4 -0
  386. package/dist/src/public/channels/slack/activity-plan.js +1 -0
  387. package/dist/src/public/channels/slack/activity.d.ts +45 -2
  388. package/dist/src/public/channels/slack/activity.js +2 -1
  389. package/dist/src/public/channels/slack/index.d.ts +1 -1
  390. package/dist/src/public/channels/slack/index.js +1 -1
  391. package/dist/src/public/channels/slack/slackChannel.js +1 -1
  392. package/dist/src/public/memory/file/backends/vercel-blob.js +1 -1
  393. package/dist/src/public/memory/index.js +1 -1
  394. package/dist/src/public/next/index.js +1 -1
  395. package/dist/src/public/next/vercel-output-config.js +1 -1
  396. package/dist/src/public/nuxt/index.js +1 -1
  397. package/dist/src/public/nuxt/module.d.ts +3 -2
  398. package/dist/src/public/nuxt/module.js +1 -1
  399. package/dist/src/public/sandbox/vercel-sandbox.d.ts +9 -5
  400. package/dist/src/public/sandbox/vercel.d.ts +1 -1
  401. package/dist/src/public/sandbox/vercel.js +1 -1
  402. package/dist/src/public/workflow/index.d.ts +3 -1
  403. package/dist/src/public/workflow/index.js +1 -1
  404. package/dist/src/runtime/actions/results.d.ts +3 -3
  405. package/dist/src/runtime/actions/results.js +1 -1
  406. package/dist/src/runtime/agent/bootstrap-model-utils.js +1 -1
  407. package/dist/src/runtime/agent/bootstrap.d.ts +1 -0
  408. package/dist/src/runtime/agent/bootstrap.js +1 -1
  409. package/dist/src/runtime/agent/mock-model-adapter.js +1 -1
  410. package/dist/src/runtime/channels/registry.js +1 -1
  411. package/dist/src/runtime/prompt/compose.d.ts +0 -1
  412. package/dist/src/runtime/prompt/compose.js +1 -1
  413. package/dist/src/runtime/resolve-agent-graph.js +1 -1
  414. package/dist/src/runtime/resolve-agent.js +1 -1
  415. package/dist/src/runtime/sessions/turn.d.ts +16 -1
  416. package/dist/src/runtime/subagents/registry.js +1 -1
  417. package/dist/src/runtime/subagents/workflow-reference.d.ts +5 -0
  418. package/dist/src/runtime/subagents/workflow-reference.js +1 -0
  419. package/dist/src/runtime/subagents/workflow.d.ts +8 -0
  420. package/dist/src/runtime/subagents/workflow.js +1 -0
  421. package/dist/src/runtime/tools/registry.js +1 -1
  422. package/dist/src/self-modification/agent.d.ts +22 -0
  423. package/dist/src/self-modification/agent.js +1 -0
  424. package/dist/src/self-modification/extension/classify-registry-item.d.ts +19 -0
  425. package/dist/src/self-modification/extension/classify-registry-item.js +1 -0
  426. package/dist/src/self-modification/extension/eve-add.d.ts +56 -0
  427. package/dist/src/self-modification/extension/eve-add.js +2 -0
  428. package/dist/src/self-modification/extension/extension.d.ts +2 -0
  429. package/dist/src/self-modification/extension/extension.js +1 -0
  430. package/dist/src/self-modification/extension/instructions.d.ts +4 -0
  431. package/dist/src/self-modification/extension/instructions.js +23 -0
  432. package/dist/src/self-modification/extension/source-lock.d.ts +2 -0
  433. package/dist/src/self-modification/extension/source-lock.js +1 -0
  434. package/dist/src/self-modification/extension/tools/edit_file.d.ts +16 -0
  435. package/dist/src/self-modification/extension/tools/edit_file.js +1 -0
  436. package/dist/src/self-modification/extension/tools/registry_add.d.ts +52 -0
  437. package/dist/src/self-modification/extension/tools/registry_add.js +1 -0
  438. package/dist/src/self-modification/extension/tools/search_models.d.ts +22 -0
  439. package/dist/src/self-modification/extension/tools/search_models.js +1 -0
  440. package/dist/src/self-modification/extension/tools/search_registry.d.ts +103 -0
  441. package/dist/src/self-modification/extension/tools/search_registry.js +1 -0
  442. package/dist/src/self-modification/filesystem.d.ts +6 -0
  443. package/dist/src/self-modification/filesystem.js +1 -0
  444. package/dist/src/self-modification/sandbox.d.ts +2 -0
  445. package/dist/src/self-modification/sandbox.js +1 -0
  446. package/dist/src/services/dev-client/target.d.ts +3 -1
  447. package/dist/src/setup/boxes/select-model.d.ts +3 -21
  448. package/dist/src/setup/boxes/select-model.js +1 -1
  449. package/dist/src/setup/cli/prompt-ui.js +4 -4
  450. package/dist/src/setup/cli/select-component.d.ts +1 -1
  451. package/dist/src/setup/cli/select-component.js +1 -1
  452. package/dist/src/setup/flows/model.d.ts +3 -0
  453. package/dist/src/setup/flows/model.js +1 -1
  454. package/dist/src/setup/integrations/discord/setup.js +1 -1
  455. package/dist/src/setup/integrations/file-memory/vercel.js +1 -1
  456. package/dist/src/setup/integrations/linear/setup.js +1 -1
  457. package/dist/src/setup/integrations/linq/setup.js +3 -3
  458. package/dist/src/setup/integrations/shopify/setup.js +1 -1
  459. package/dist/src/setup/prompter.js +1 -1
  460. package/dist/src/setup/scaffold/create/project.js +1 -1
  461. package/dist/src/setup/scaffold/update/channels.d.ts +4 -12
  462. package/dist/src/setup/scaffold/update/channels.js +1 -1
  463. package/dist/src/setup/scaffold/update/web-options.js +1 -1
  464. package/dist/src/shared/action-types.d.ts +103 -30
  465. package/dist/src/shared/action-types.js +1 -1
  466. package/dist/src/shared/agent-definition.d.ts +13 -0
  467. package/dist/src/shared/agent-turn-outcome.d.ts +2 -0
  468. package/dist/src/shared/agent-turn-outcome.js +1 -1
  469. package/dist/src/shared/extension-package-contract.d.ts +2 -0
  470. package/dist/src/shared/extension-package-contract.js +1 -1
  471. package/dist/src/shared/gateway-model-catalog.d.ts +21 -0
  472. package/dist/src/shared/gateway-model-catalog.js +1 -0
  473. package/dist/src/shared/json.js +1 -1
  474. package/dist/src/shared/sandbox-network-policy.d.ts +1 -1
  475. package/dist/src/shared/token-usage.d.ts +11 -15
  476. package/dist/src/shared/token-usage.js +1 -1
  477. package/dist/src/shared/workflow-sandbox.d.ts +1 -1
  478. package/dist/src/{execution/subagent-adapter-state.d.ts → subagents/adapter-state.d.ts} +2 -0
  479. package/dist/src/{execution/subagent-adapter-state.js → subagents/adapter-state.js} +1 -1
  480. package/dist/src/subagents/adapter.js +1 -0
  481. package/dist/src/{harness → subagents}/agent-handle-errors.d.ts +6 -0
  482. package/dist/src/subagents/agent-handle-errors.js +1 -0
  483. package/dist/src/subagents/callback-route.js +1 -0
  484. package/dist/src/subagents/callback-step.js +1 -0
  485. package/dist/src/{execution/agent-continuation-bundle.d.ts → subagents/continuation-bundle.d.ts} +1 -1
  486. package/dist/src/subagents/continuation-bundle.js +1 -0
  487. package/dist/src/{execution/subagent-event-proxy-step.d.ts → subagents/event-proxy-step.d.ts} +2 -8
  488. package/dist/src/subagents/event-proxy-step.js +1 -0
  489. package/dist/src/subagents/handle-dispatch.d.ts +54 -0
  490. package/dist/src/subagents/handle-dispatch.js +1 -0
  491. package/dist/src/{harness → subagents}/handles/prompt.d.ts +4 -4
  492. package/dist/src/{harness → subagents}/handles/prompt.js +1 -1
  493. package/dist/src/{harness → subagents}/handles/query.d.ts +8 -2
  494. package/dist/src/subagents/handles/query.js +1 -0
  495. package/dist/src/subagents/handles/rebase.d.ts +4 -0
  496. package/dist/src/subagents/handles/rebase.js +1 -0
  497. package/dist/src/{harness → subagents}/handles/store.d.ts +90 -15
  498. package/dist/src/subagents/handles/store.js +1 -0
  499. package/dist/src/subagents/handles/transitions.d.ts +103 -0
  500. package/dist/src/subagents/handles/transitions.js +1 -0
  501. package/dist/src/{execution/delegated-parent-notification.d.ts → subagents/parent-notification.d.ts} +1 -7
  502. package/dist/src/subagents/parent-notification.js +1 -0
  503. package/dist/src/subagents/parent-result.js +1 -0
  504. package/dist/src/{execution/remote-agent-dispatch.d.ts → subagents/remote-dispatch.d.ts} +3 -2
  505. package/dist/src/subagents/remote-dispatch.js +1 -0
  506. package/dist/src/{execution/subagent-start-local.d.ts → subagents/start-local.d.ts} +5 -6
  507. package/dist/src/subagents/start-local.js +1 -0
  508. package/dist/src/{execution/subagent-start-remote.d.ts → subagents/start-remote.d.ts} +5 -5
  509. package/dist/src/subagents/start-remote.js +1 -0
  510. package/dist/src/subagents/token-budget.js +1 -0
  511. package/dist/src/{execution/subagent-tool.d.ts → subagents/tool.d.ts} +5 -3
  512. package/dist/src/subagents/tool.js +1 -0
  513. package/dist/src/svelte/index.js +1 -1
  514. package/dist/src/svelte/use-eve-agent.js +1 -1
  515. package/dist/src/tasks/json.js +1 -1
  516. package/dist/src/tasks/session-index.d.ts +2 -3
  517. package/dist/src/tasks/session-index.js +1 -1
  518. package/dist/src/tasks/task-id.d.ts +3 -4
  519. package/dist/src/tasks/task-id.js +1 -1
  520. package/dist/src/tasks/transitions.d.ts +3 -47
  521. package/dist/src/tasks/transitions.js +1 -1
  522. package/dist/src/tasks/types.d.ts +70 -247
  523. package/dist/src/tasks/types.js +1 -1
  524. package/dist/src/tools/dynamic.d.ts +3 -1
  525. package/dist/src/tools/framework/agent.d.ts +18 -2
  526. package/dist/src/tools/framework/agent.js +1 -1
  527. package/dist/src/tools/framework/task-cancel.d.ts +2 -6
  528. package/dist/src/tools/framework/task-contract.d.ts +44 -65
  529. package/dist/src/tools/framework/task-contract.js +1 -1
  530. package/dist/src/tools/framework/task-update.d.ts +1 -0
  531. package/dist/src/tools/framework/task-update.js +1 -1
  532. package/dist/src/tools/provided/sleep.d.ts +2 -2
  533. package/dist/src/vue/index.js +1 -1
  534. package/dist/src/vue/use-eve-agent.js +1 -1
  535. package/docs/agent-config.md +24 -19
  536. package/docs/channels/eve.mdx +1 -1
  537. package/docs/concepts/built-in-tools.md +10 -91
  538. package/docs/concepts/context-control.md +2 -2
  539. package/docs/concepts/execution-model-and-durability.mdx +1 -1
  540. package/docs/concepts/sessions-runs-and-streaming.md +11 -3
  541. package/docs/guides/client/streaming.mdx +1 -1
  542. package/docs/guides/deployment/vercel.mdx +20 -2
  543. package/docs/guides/dynamic-capabilities.md +2 -2
  544. package/docs/guides/frontend/overview.mdx +1 -1
  545. package/docs/guides/instrumentation-providers.md +242 -0
  546. package/docs/guides/instrumentation.md +2 -0
  547. package/docs/guides/meta.json +1 -0
  548. package/docs/guides/remote-agents.md +8 -9
  549. package/docs/memory/overview.mdx +1 -1
  550. package/docs/reference/cli.md +5 -2
  551. package/docs/sandbox.mdx +3 -1
  552. package/docs/subagents/index.mdx +9 -8
  553. package/docs/tools/overview.mdx +11 -10
  554. package/docs/tools/workflows.mdx +52 -18
  555. package/package.json +38 -13
  556. package/dist/src/compiled/@vercel/sandbox-delete/api-client/index.d.ts +0 -2
  557. package/dist/src/compiled/@vercel/sandbox-delete/index.js +0 -9
  558. package/dist/src/compiled/@vercel/sandbox-stable/LICENSE +0 -201
  559. package/dist/src/compiled/@vercel/sandbox-stable/_async-retry.d.ts +0 -8
  560. package/dist/src/compiled/@vercel/sandbox-stable/_workflow-serde.d.ts +0 -5
  561. package/dist/src/compiled/@vercel/sandbox-stable/api-client/api-client.d.ts +0 -1456
  562. package/dist/src/compiled/@vercel/sandbox-stable/api-client/api-error.d.ts +0 -29
  563. package/dist/src/compiled/@vercel/sandbox-stable/api-client/base-client.d.ts +0 -39
  564. package/dist/src/compiled/@vercel/sandbox-stable/api-client/file-writer.d.ts +0 -66
  565. package/dist/src/compiled/@vercel/sandbox-stable/api-client/index.d.ts +0 -2
  566. package/dist/src/compiled/@vercel/sandbox-stable/api-client/validators.d.ts +0 -899
  567. package/dist/src/compiled/@vercel/sandbox-stable/api-client/with-retry.d.ts +0 -10
  568. package/dist/src/compiled/@vercel/sandbox-stable/auth/error.d.ts +0 -15
  569. package/dist/src/compiled/@vercel/sandbox-stable/auth/file.d.ts +0 -18
  570. package/dist/src/compiled/@vercel/sandbox-stable/auth/index.d.ts +0 -6
  571. package/dist/src/compiled/@vercel/sandbox-stable/auth/oauth.d.ts +0 -111
  572. package/dist/src/compiled/@vercel/sandbox-stable/auth/poll-for-token.d.ts +0 -28
  573. package/dist/src/compiled/@vercel/sandbox-stable/auth/project.d.ts +0 -40
  574. package/dist/src/compiled/@vercel/sandbox-stable/command.d.ts +0 -292
  575. package/dist/src/compiled/@vercel/sandbox-stable/constants.d.ts +0 -5
  576. package/dist/src/compiled/@vercel/sandbox-stable/execution-context.d.ts +0 -116
  577. package/dist/src/compiled/@vercel/sandbox-stable/filesystem.d.ts +0 -258
  578. package/dist/src/compiled/@vercel/sandbox-stable/index.d.ts +0 -12
  579. package/dist/src/compiled/@vercel/sandbox-stable/index.js +0 -1
  580. package/dist/src/compiled/@vercel/sandbox-stable/network-policy.d.ts +0 -169
  581. package/dist/src/compiled/@vercel/sandbox-stable/proxy.d.ts +0 -55
  582. package/dist/src/compiled/@vercel/sandbox-stable/sandbox-user.d.ts +0 -212
  583. package/dist/src/compiled/@vercel/sandbox-stable/sandbox.d.ts +0 -1216
  584. package/dist/src/compiled/@vercel/sandbox-stable/session.d.ts +0 -433
  585. package/dist/src/compiled/@vercel/sandbox-stable/snapshot.d.ts +0 -229
  586. package/dist/src/compiled/@vercel/sandbox-stable/utils/get-credentials.d.ts +0 -21
  587. package/dist/src/compiled/@vercel/sandbox-stable/utils/paginator.d.ts +0 -16
  588. package/dist/src/compiled/@vercel/sandbox-stable/utils/resolveSignal.d.ts +0 -15
  589. package/dist/src/compiled/@vercel/sandbox-stable/utils/sandbox-snapshot.d.ts +0 -11
  590. package/dist/src/compiled/@vercel/sandbox-stable/utils/types.d.ts +0 -11
  591. package/dist/src/compiled/_chunks/node/decode_jwt-Col8JOnf.js +0 -7
  592. package/dist/src/compiled/_chunks/node/version-BYHw-SDY.js +0 -1
  593. package/dist/src/compiled/_chunks/node/version-DH6yRy-M.js +0 -1
  594. package/dist/src/compiled/_chunks/workflow/dist-CgbVZs5l.js +0 -40
  595. package/dist/src/compiled/_chunks/workflow/dist-DjojkP5e.js +0 -3
  596. package/dist/src/compiled/_chunks/workflow/frames-CZ9eHShe.js +0 -3
  597. package/dist/src/compiled/_chunks/workflow/run-DzyAoGh4.js +0 -1
  598. package/dist/src/compiled/_chunks/workflow/sleep-3_A5uOp-.js +0 -1
  599. package/dist/src/compiled/_chunks/workflow/wait-until-BtySPYD0.js +0 -15
  600. package/dist/src/execution/agent-continuation-bundle.js +0 -1
  601. package/dist/src/execution/agent-handle-dispatch.d.ts +0 -79
  602. package/dist/src/execution/agent-handle-dispatch.js +0 -1
  603. package/dist/src/execution/delegated-parent-notification.js +0 -1
  604. package/dist/src/execution/delegated-parent-result.js +0 -1
  605. package/dist/src/execution/delegation-tool.d.ts +0 -10
  606. package/dist/src/execution/delegation-tool.js +0 -1
  607. package/dist/src/execution/dispatch-runtime-actions-shared.d.ts +0 -165
  608. package/dist/src/execution/dispatch-runtime-actions-shared.js +0 -1
  609. package/dist/src/execution/dispatch-runtime-actions-start.js +0 -1
  610. package/dist/src/execution/dispatch-runtime-actions-step.d.ts +0 -18
  611. package/dist/src/execution/dispatch-runtime-actions-step.js +0 -1
  612. package/dist/src/execution/dispatch-workflow-runtime-actions-step.d.ts +0 -18
  613. package/dist/src/execution/dispatch-workflow-runtime-actions-step.js +0 -1
  614. package/dist/src/execution/finalize-terminal-session.d.ts +0 -17
  615. package/dist/src/execution/finalize-terminal-session.js +0 -1
  616. package/dist/src/execution/prepared-agent-action.d.ts +0 -7
  617. package/dist/src/execution/prepared-agent-action.js +0 -1
  618. package/dist/src/execution/remote-agent-dispatch.js +0 -1
  619. package/dist/src/execution/session-callback-route.js +0 -1
  620. package/dist/src/execution/session-callback-step.js +0 -1
  621. package/dist/src/execution/subagent-adapter.js +0 -1
  622. package/dist/src/execution/subagent-event-proxy-step.js +0 -1
  623. package/dist/src/execution/subagent-start-local.js +0 -1
  624. package/dist/src/execution/subagent-start-remote.js +0 -1
  625. package/dist/src/execution/subagent-tool.js +0 -1
  626. package/dist/src/execution/tasks/child/instructions.d.ts +0 -3
  627. package/dist/src/execution/tasks/child/instructions.js +0 -1
  628. package/dist/src/execution/tasks/parent/agent-identity.d.ts +0 -13
  629. package/dist/src/execution/tasks/parent/agent-identity.js +0 -1
  630. package/dist/src/execution/tasks/parent/agent-views.d.ts +0 -7
  631. package/dist/src/execution/tasks/parent/agent-views.js +0 -1
  632. package/dist/src/execution/tasks/parent/continuation-dispatch.d.ts +0 -43
  633. package/dist/src/execution/tasks/parent/continuation-dispatch.js +0 -1
  634. package/dist/src/execution/tasks/parent/dispatch-task-step.d.ts +0 -19
  635. package/dist/src/execution/tasks/parent/dispatch-task-step.js +0 -1
  636. package/dist/src/execution/tool-run/answer.js +0 -1
  637. package/dist/src/execution/tool-run/background.d.ts +0 -14
  638. package/dist/src/execution/tool-run/background.js +0 -1
  639. package/dist/src/execution/tool-run/cancel.d.ts +0 -7
  640. package/dist/src/execution/tool-run/cancel.js +0 -1
  641. package/dist/src/execution/tool-run/dispatch.d.ts +0 -24
  642. package/dist/src/execution/tool-run/dispatch.js +0 -1
  643. package/dist/src/execution/tool-run/emit-run-report-step.d.ts +0 -7
  644. package/dist/src/execution/tool-run/emit-run-report-step.js +0 -1
  645. package/dist/src/execution/tool-run/messages.d.ts +0 -70
  646. package/dist/src/execution/tool-run/messages.js +0 -1
  647. package/dist/src/execution/tool-run/owner-inbox.d.ts +0 -11
  648. package/dist/src/execution/tool-run/owner-inbox.js +0 -1
  649. package/dist/src/execution/tool-run/owner.d.ts +0 -13
  650. package/dist/src/execution/tool-run/owner.js +0 -1
  651. package/dist/src/execution/tool-run/run-control.d.ts +0 -18
  652. package/dist/src/execution/tool-run/run-control.js +0 -1
  653. package/dist/src/execution/tool-run/start.d.ts +0 -11
  654. package/dist/src/execution/tool-run/start.js +0 -1
  655. package/dist/src/execution/tool-run/types.d.ts +0 -21
  656. package/dist/src/execution/tool-run/types.js +0 -1
  657. package/dist/src/execution/tool-run/workflow.d.ts +0 -9
  658. package/dist/src/execution/tool-run/workflow.js +0 -1
  659. package/dist/src/execution/tools/subagent/local.d.ts +0 -40
  660. package/dist/src/execution/tools/subagent/local.js +0 -1
  661. package/dist/src/execution/tools/subagent/remote.d.ts +0 -26
  662. package/dist/src/execution/tools/subagent/remote.js +0 -1
  663. package/dist/src/harness/agent-handle-errors.js +0 -1
  664. package/dist/src/harness/handles/query.js +0 -1
  665. package/dist/src/harness/handles/store.js +0 -1
  666. package/dist/src/harness/handles/transitions.d.ts +0 -167
  667. package/dist/src/harness/handles/transitions.js +0 -1
  668. package/dist/src/harness/runtime-actions.js +0 -1
  669. package/dist/src/harness/session-token-limits.d.ts +0 -41
  670. package/dist/src/harness/session-token-limits.js +0 -1
  671. package/dist/src/harness/subagent-depth.d.ts +0 -10
  672. package/dist/src/harness/subagent-depth.js +0 -1
  673. package/dist/src/harness/subagent-token-budget.js +0 -1
  674. package/dist/src/harness/tool-runs.d.ts +0 -21
  675. package/dist/src/harness/tool-runs.js +0 -1
  676. package/dist/src/harness/turn-sleep.d.ts +0 -12
  677. package/dist/src/harness/turn-sleep.js +0 -1
  678. package/dist/src/harness/workflow-runtime-action-state.d.ts +0 -9
  679. package/dist/src/harness/workflow-runtime-action-state.js +0 -1
  680. package/dist/src/node_modules/.pnpm/@clack_core@1.3.1/node_modules/@clack/core/dist/index.js +0 -16
  681. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js +0 -1
  682. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js +0 -1
  683. package/dist/src/node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js +0 -1
  684. package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js +0 -5
  685. package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js +0 -1
  686. package/dist/src/runtime/actions/keys.d.ts +0 -14
  687. package/dist/src/runtime/actions/keys.js +0 -1
  688. package/dist/src/tasks/wire.d.ts +0 -25
  689. package/dist/src/tasks/wire.js +0 -1
  690. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/LICENSE +0 -0
  691. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/_async-retry.d.ts +0 -0
  692. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/_workflow-serde.d.ts +0 -0
  693. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/api-error.d.ts +0 -0
  694. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/base-client.d.ts +0 -0
  695. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/file-writer.d.ts +0 -0
  696. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/api-client/with-retry.d.ts +0 -0
  697. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/error.d.ts +0 -0
  698. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/file.d.ts +0 -0
  699. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/index.d.ts +0 -0
  700. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/oauth.d.ts +0 -0
  701. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/poll-for-token.d.ts +0 -0
  702. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/auth/project.d.ts +0 -0
  703. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/command.d.ts +0 -0
  704. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/execution-context.d.ts +0 -0
  705. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/filesystem.d.ts +0 -0
  706. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/network-policy.d.ts +0 -0
  707. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/proxy.d.ts +0 -0
  708. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/sandbox-user.d.ts +0 -0
  709. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/session.d.ts +0 -0
  710. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/snapshot.d.ts +0 -0
  711. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/get-credentials.d.ts +0 -0
  712. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/paginator.d.ts +0 -0
  713. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/resolveSignal.d.ts +0 -0
  714. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/sandbox-snapshot.d.ts +0 -0
  715. /package/dist/src/compiled/@vercel/{sandbox-delete → sandbox-drives}/utils/types.d.ts +0 -0
  716. /package/dist/src/execution/{tool-run → tools/workflow}/owner-channels.d.ts +0 -0
  717. /package/dist/src/execution/{tool-run → tools/workflow}/owner-channels.js +0 -0
  718. /package/dist/src/execution/{tool-run → tools/workflow}/resume-hook-step.d.ts +0 -0
  719. /package/dist/src/execution/{tool-run → tools/workflow}/resume-hook-step.js +0 -0
  720. /package/dist/src/{execution/subagent-adapter.d.ts → subagents/adapter.d.ts} +0 -0
  721. /package/dist/src/{execution/session-callback-route.d.ts → subagents/callback-route.d.ts} +0 -0
  722. /package/dist/src/{execution/session-callback-step.d.ts → subagents/callback-step.d.ts} +0 -0
  723. /package/dist/src/{harness → subagents}/handles/operation-id.d.ts +0 -0
  724. /package/dist/src/{harness → subagents}/handles/operation-id.js +0 -0
  725. /package/dist/src/{harness → subagents}/handles/state-key.d.ts +0 -0
  726. /package/dist/src/{harness → subagents}/handles/state-key.js +0 -0
  727. /package/dist/src/{execution/subagent-hitl-proxy.d.ts → subagents/hitl-proxy.d.ts} +0 -0
  728. /package/dist/src/{execution/subagent-hitl-proxy.js → subagents/hitl-proxy.js} +0 -0
  729. /package/dist/src/{execution/subagent-invocation.d.ts → subagents/invocation.d.ts} +0 -0
  730. /package/dist/src/{execution/subagent-invocation.js → subagents/invocation.js} +0 -0
  731. /package/dist/src/{execution/delegated-parent-result.d.ts → subagents/parent-result.d.ts} +0 -0
  732. /package/dist/src/{execution/remote-agent-route-url.d.ts → subagents/remote-route-url.d.ts} +0 -0
  733. /package/dist/src/{execution/remote-agent-route-url.js → subagents/remote-route-url.js} +0 -0
  734. /package/dist/src/{harness/subagent-token-budget.d.ts → subagents/token-budget.d.ts} +0 -0
@@ -8,13 +8,9 @@ export declare const taskCancel: import("#tools/native-definition.js").NativeToo
8
8
  type: "error" | "result";
9
9
  } | undefined;
10
10
  metadata: {
11
- agentId: string;
12
- kind: "subagent";
13
- mode: "local" | "remote";
14
- name: string;
15
- } | {
16
- data?: Record<string, unknown> | undefined;
11
+ agentId?: string | undefined;
17
12
  kind: string;
13
+ mode?: "local" | "remote" | undefined;
18
14
  name: string;
19
15
  };
20
16
  status: "cancelled" | "completed" | "failed" | "input_required" | "working";
@@ -1,6 +1,8 @@
1
1
  import { z } from "#compiled/zod/index.js";
2
2
  export declare const TASK_CANCEL_TOOL_NAME = "task_cancel";
3
3
  export declare const TASK_UPDATE_TOOL_NAME = "task_update";
4
+ /** Framework task-control tool names lowered by the runtime. */
5
+ export declare const TASK_TOOL_NAMES: ReadonlySet<string>;
4
6
  export declare const TASK_CANCEL_INPUT_SCHEMA: z.ZodObject<{
5
7
  taskIds: z.ZodArray<z.ZodString>;
6
8
  }, z.core.$strict>;
@@ -9,49 +11,40 @@ export declare const TASK_UPDATE_INPUT_SCHEMA: z.ZodObject<{
9
11
  }, z.core.$strict>;
10
12
  /** Strict model-visible task projection. */
11
13
  export declare const TASK_VIEW_JSON_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
- metadata: z.ZodUnion<readonly [z.ZodObject<{
13
- agentId: z.ZodString;
14
- kind: z.ZodLiteral<"subagent">;
15
- mode: z.ZodEnum<{
14
+ metadata: z.ZodObject<{
15
+ agentId: z.ZodOptional<z.ZodString>;
16
+ kind: z.ZodString;
17
+ mode: z.ZodOptional<z.ZodEnum<{
16
18
  local: "local";
17
19
  remote: "remote";
18
- }>;
20
+ }>>;
19
21
  name: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- kind: z.ZodString;
22
- name: z.ZodString;
23
- }, z.core.$strip>]>;
22
+ }, z.core.$strip>;
24
23
  taskId: z.ZodString;
25
24
  status: z.ZodLiteral<"working">;
26
25
  }, z.core.$strip>, z.ZodObject<{
27
- metadata: z.ZodUnion<readonly [z.ZodObject<{
28
- agentId: z.ZodString;
29
- kind: z.ZodLiteral<"subagent">;
30
- mode: z.ZodEnum<{
26
+ metadata: z.ZodObject<{
27
+ agentId: z.ZodOptional<z.ZodString>;
28
+ kind: z.ZodString;
29
+ mode: z.ZodOptional<z.ZodEnum<{
31
30
  local: "local";
32
31
  remote: "remote";
33
- }>;
34
- name: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- kind: z.ZodString;
32
+ }>>;
37
33
  name: z.ZodString;
38
- }, z.core.$strip>]>;
34
+ }, z.core.$strip>;
39
35
  taskId: z.ZodString;
40
36
  inputRequests: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>>>;
41
37
  status: z.ZodLiteral<"input_required">;
42
38
  }, z.core.$strip>, z.ZodObject<{
43
- metadata: z.ZodUnion<readonly [z.ZodObject<{
44
- agentId: z.ZodString;
45
- kind: z.ZodLiteral<"subagent">;
46
- mode: z.ZodEnum<{
39
+ metadata: z.ZodObject<{
40
+ agentId: z.ZodOptional<z.ZodString>;
41
+ kind: z.ZodString;
42
+ mode: z.ZodOptional<z.ZodEnum<{
47
43
  local: "local";
48
44
  remote: "remote";
49
- }>;
50
- name: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- kind: z.ZodString;
45
+ }>>;
53
46
  name: z.ZodString;
54
- }, z.core.$strip>]>;
47
+ }, z.core.$strip>;
55
48
  taskId: z.ZodString;
56
49
  lastOutput: z.ZodObject<{
57
50
  data: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
@@ -59,18 +52,15 @@ export declare const TASK_VIEW_JSON_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject
59
52
  }, z.core.$strip>;
60
53
  status: z.ZodLiteral<"completed">;
61
54
  }, z.core.$strip>, z.ZodObject<{
62
- metadata: z.ZodUnion<readonly [z.ZodObject<{
63
- agentId: z.ZodString;
64
- kind: z.ZodLiteral<"subagent">;
65
- mode: z.ZodEnum<{
55
+ metadata: z.ZodObject<{
56
+ agentId: z.ZodOptional<z.ZodString>;
57
+ kind: z.ZodString;
58
+ mode: z.ZodOptional<z.ZodEnum<{
66
59
  local: "local";
67
60
  remote: "remote";
68
- }>;
61
+ }>>;
69
62
  name: z.ZodString;
70
- }, z.core.$strip>, z.ZodObject<{
71
- kind: z.ZodString;
72
- name: z.ZodString;
73
- }, z.core.$strip>]>;
63
+ }, z.core.$strip>;
74
64
  taskId: z.ZodString;
75
65
  lastOutput: z.ZodObject<{
76
66
  data: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
@@ -78,18 +68,15 @@ export declare const TASK_VIEW_JSON_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject
78
68
  }, z.core.$strip>;
79
69
  status: z.ZodLiteral<"failed">;
80
70
  }, z.core.$strip>, z.ZodObject<{
81
- metadata: z.ZodUnion<readonly [z.ZodObject<{
82
- agentId: z.ZodString;
83
- kind: z.ZodLiteral<"subagent">;
84
- mode: z.ZodEnum<{
71
+ metadata: z.ZodObject<{
72
+ agentId: z.ZodOptional<z.ZodString>;
73
+ kind: z.ZodString;
74
+ mode: z.ZodOptional<z.ZodEnum<{
85
75
  local: "local";
86
76
  remote: "remote";
87
- }>;
77
+ }>>;
88
78
  name: z.ZodString;
89
- }, z.core.$strip>, z.ZodObject<{
90
- kind: z.ZodString;
91
- name: z.ZodString;
92
- }, z.core.$strip>]>;
79
+ }, z.core.$strip>;
93
80
  taskId: z.ZodString;
94
81
  status: z.ZodLiteral<"cancelled">;
95
82
  }, z.core.$strip>], "status">;
@@ -103,19 +90,15 @@ export declare const TASK_VIEW_OUTPUT_SCHEMA: z.ZodObject<{
103
90
  result: "result";
104
91
  }>;
105
92
  }, z.core.$strip>>;
106
- metadata: z.ZodUnion<readonly [z.ZodObject<{
107
- agentId: z.ZodString;
108
- kind: z.ZodLiteral<"subagent">;
109
- mode: z.ZodEnum<{
93
+ metadata: z.ZodObject<{
94
+ agentId: z.ZodOptional<z.ZodString>;
95
+ kind: z.ZodString;
96
+ mode: z.ZodOptional<z.ZodEnum<{
110
97
  local: "local";
111
98
  remote: "remote";
112
- }>;
113
- name: z.ZodString;
114
- }, z.core.$strip>, z.ZodObject<{
115
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
116
- kind: z.ZodString;
99
+ }>>;
117
100
  name: z.ZodString;
118
- }, z.core.$strip>]>;
101
+ }, z.core.$strip>;
119
102
  status: z.ZodEnum<{
120
103
  cancelled: "cancelled";
121
104
  completed: "completed";
@@ -135,19 +118,15 @@ export declare const TASK_VIEWS_OUTPUT_SCHEMA: z.ZodObject<{
135
118
  result: "result";
136
119
  }>;
137
120
  }, z.core.$strip>>;
138
- metadata: z.ZodUnion<readonly [z.ZodObject<{
139
- agentId: z.ZodString;
140
- kind: z.ZodLiteral<"subagent">;
141
- mode: z.ZodEnum<{
121
+ metadata: z.ZodObject<{
122
+ agentId: z.ZodOptional<z.ZodString>;
123
+ kind: z.ZodString;
124
+ mode: z.ZodOptional<z.ZodEnum<{
142
125
  local: "local";
143
126
  remote: "remote";
144
- }>;
145
- name: z.ZodString;
146
- }, z.core.$strip>, z.ZodObject<{
147
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
- kind: z.ZodString;
127
+ }>>;
149
128
  name: z.ZodString;
150
- }, z.core.$strip>]>;
129
+ }, z.core.$strip>;
151
130
  status: z.ZodEnum<{
152
131
  cancelled: "cancelled";
153
132
  completed: "completed";
@@ -1 +1 @@
1
- import{z}from"#compiled/zod/index.js";import{jsonValueSchema}from"#shared/json-schemas.js";const TASK_CANCEL_TOOL_NAME=`task_cancel`,TASK_UPDATE_TOOL_NAME=`task_update`,TASK_IDS_SCHEMA=z.array(z.string().min(1)).min(1).describe(`Task ids from earlier subagent task receipts.`),TASK_CANCEL_INPUT_SCHEMA=z.strictObject({taskIds:TASK_IDS_SCHEMA}),TASK_UPDATE_INPUT_SCHEMA=z.strictObject({message:z.string().min(1).describe(`Brief description of what this task is currently doing.`)}),taskMetadataJsonSchema=z.union([z.object({agentId:z.string(),kind:z.literal(`subagent`),mode:z.enum([`local`,`remote`]),name:z.string()}),z.object({kind:z.string(),name:z.string()})]),taskOutputJsonSchema=z.object({data:jsonValueSchema,type:z.enum([`result`,`error`])}),taskViewJsonBaseShape={metadata:taskMetadataJsonSchema,taskId:z.string()},TASK_VIEW_JSON_SCHEMA=z.discriminatedUnion(`status`,[z.object({...taskViewJsonBaseShape,status:z.literal(`working`)}),z.object({...taskViewJsonBaseShape,inputRequests:z.array(jsonValueSchema).readonly(),status:z.literal(`input_required`)}),z.object({...taskViewJsonBaseShape,lastOutput:taskOutputJsonSchema.extend({type:z.literal(`result`)}),status:z.literal(`completed`)}),z.object({...taskViewJsonBaseShape,lastOutput:taskOutputJsonSchema.extend({type:z.literal(`error`)}),status:z.literal(`failed`)}),z.object({...taskViewJsonBaseShape,status:z.literal(`cancelled`)})]),TASK_VIEW_OUTPUT_SCHEMA=z.object({inputRequests:z.array(z.unknown()).optional(),lastOutput:z.object({data:z.unknown(),type:z.enum([`result`,`error`])}).optional(),metadata:z.union([z.object({agentId:z.string(),kind:z.literal(`subagent`),mode:z.enum([`local`,`remote`]),name:z.string()}),z.object({data:z.record(z.string(),z.unknown()).optional(),kind:z.string(),name:z.string()})]),status:z.enum([`working`,`input_required`,`completed`,`failed`,`cancelled`]),taskId:z.string()}),TASK_VIEWS_OUTPUT_SCHEMA=z.object({tasks:z.array(TASK_VIEW_OUTPUT_SCHEMA)}),SUBAGENT_TASK_RECEIPT_OUTPUT_SCHEMA=z.strictObject({agentId:z.string(),status:z.literal(`working`),taskId:z.string()});export{SUBAGENT_TASK_RECEIPT_OUTPUT_SCHEMA,TASK_CANCEL_INPUT_SCHEMA,TASK_CANCEL_TOOL_NAME,TASK_UPDATE_INPUT_SCHEMA,TASK_UPDATE_TOOL_NAME,TASK_VIEWS_OUTPUT_SCHEMA,TASK_VIEW_JSON_SCHEMA,TASK_VIEW_OUTPUT_SCHEMA};
1
+ import{z}from"#compiled/zod/index.js";import{jsonValueSchema}from"#shared/json-schemas.js";const TASK_CANCEL_TOOL_NAME=`task_cancel`,TASK_UPDATE_TOOL_NAME=`task_update`,TASK_TOOL_NAMES=new Set([TASK_CANCEL_TOOL_NAME,TASK_UPDATE_TOOL_NAME]),TASK_IDS_SCHEMA=z.array(z.string().min(1)).min(1).describe(`Task ids from earlier subagent task receipts.`),TASK_CANCEL_INPUT_SCHEMA=z.strictObject({taskIds:TASK_IDS_SCHEMA}),TASK_UPDATE_INPUT_SCHEMA=z.strictObject({message:z.string().min(1).describe(`Brief description of what this task is currently doing.`)}),taskMetadataJsonSchema=z.object({agentId:z.string().optional(),kind:z.string(),mode:z.enum([`local`,`remote`]).optional(),name:z.string()}),taskOutputJsonSchema=z.object({data:jsonValueSchema,type:z.enum([`result`,`error`])}),taskViewJsonBaseShape={metadata:taskMetadataJsonSchema,taskId:z.string()},TASK_VIEW_JSON_SCHEMA=z.discriminatedUnion(`status`,[z.object({...taskViewJsonBaseShape,status:z.literal(`working`)}),z.object({...taskViewJsonBaseShape,inputRequests:z.array(jsonValueSchema).readonly(),status:z.literal(`input_required`)}),z.object({...taskViewJsonBaseShape,lastOutput:taskOutputJsonSchema.extend({type:z.literal(`result`)}),status:z.literal(`completed`)}),z.object({...taskViewJsonBaseShape,lastOutput:taskOutputJsonSchema.extend({type:z.literal(`error`)}),status:z.literal(`failed`)}),z.object({...taskViewJsonBaseShape,status:z.literal(`cancelled`)})]),TASK_VIEW_OUTPUT_SCHEMA=z.object({inputRequests:z.array(z.unknown()).optional(),lastOutput:z.object({data:z.unknown(),type:z.enum([`result`,`error`])}).optional(),metadata:z.object({agentId:z.string().optional(),kind:z.string(),mode:z.enum([`local`,`remote`]).optional(),name:z.string()}),status:z.enum([`working`,`input_required`,`completed`,`failed`,`cancelled`]),taskId:z.string()}),TASK_VIEWS_OUTPUT_SCHEMA=z.object({tasks:z.array(TASK_VIEW_OUTPUT_SCHEMA)}),SUBAGENT_TASK_RECEIPT_OUTPUT_SCHEMA=z.strictObject({agentId:z.string(),status:z.literal(`working`),taskId:z.string()});export{SUBAGENT_TASK_RECEIPT_OUTPUT_SCHEMA,TASK_CANCEL_INPUT_SCHEMA,TASK_CANCEL_TOOL_NAME,TASK_TOOL_NAMES,TASK_UPDATE_INPUT_SCHEMA,TASK_UPDATE_TOOL_NAME,TASK_VIEWS_OUTPUT_SCHEMA,TASK_VIEW_JSON_SCHEMA,TASK_VIEW_OUTPUT_SCHEMA};
@@ -1,3 +1,4 @@
1
+ export declare const TASK_UPDATE_SESSION_INSTRUCTION = "Background task updates\nYou are running as a background task. For multi-step work, use `task_update` at meaningful milestones to briefly state what you are currently doing. Keep updates terse and activity-focused; do not include preliminary findings or results. Do not wait for a response, and return your final result normally.";
1
2
  export declare const taskUpdate: import("#tools/native-definition.js").NativeToolDefinition<{
2
3
  message: string;
3
4
  }, unknown>;
@@ -1 +1 @@
1
- import{TASK_UPDATE_INPUT_SCHEMA}from"#tools/framework/task-contract.js";import{defineNativeTool}from"#tools/native-definition.js";const taskUpdate=defineNativeTool({description:`Briefly tell the parent agent what this background task is currently doing. Report activity, not preliminary findings or results.`,inputSchema:TASK_UPDATE_INPUT_SCHEMA},{availability:[`delegated-task-child`],handling:{action:`task-update`,kind:`dispatch`}});export{taskUpdate as default,taskUpdate};
1
+ import{TASK_UPDATE_INPUT_SCHEMA}from"#tools/framework/task-contract.js";import{defineNativeTool}from"#tools/native-definition.js";const TASK_UPDATE_SESSION_INSTRUCTION="Background task updates\nYou are running as a background task. For multi-step work, use `task_update` at meaningful milestones to briefly state what you are currently doing. Keep updates terse and activity-focused; do not include preliminary findings or results. Do not wait for a response, and return your final result normally.",taskUpdate=defineNativeTool({description:`Briefly tell the parent agent what this background task is currently doing. Report activity, not preliminary findings or results.`,inputSchema:TASK_UPDATE_INPUT_SCHEMA},{availability:[`delegated-task-child`],handling:{action:`task-update`,kind:`dispatch`}});export{TASK_UPDATE_SESSION_INSTRUCTION,taskUpdate as default,taskUpdate};
@@ -12,7 +12,7 @@ export type { SleepToolInput, SleepToolOutput };
12
12
  * export default sleep();
13
13
  * ```
14
14
  *
15
- * Calls pause the durable turn workflow rather than holding an application
16
- * runtime open with an in-process timer.
15
+ * Each call runs as a durable workflow, so the wait does not hold an
16
+ * application runtime open.
17
17
  */
18
18
  export declare function sleep(): ToolDefinition<SleepToolInput, SleepToolOutput>;
@@ -1,3 +1,3 @@
1
- import { n as defaultMessageReducer, t as useEveAgent } from "../chunks/use-eve-agent-DUMU6dap.js";
1
+ import { n as defaultMessageReducer, t as useEveAgent } from "../chunks/use-eve-agent-D7apPojZ.js";
2
2
 
3
3
  export { defaultMessageReducer, useEveAgent };
@@ -1,3 +1,3 @@
1
- import { t as useEveAgent } from "../chunks/use-eve-agent-DUMU6dap.js";
1
+ import { t as useEveAgent } from "../chunks/use-eve-agent-D7apPojZ.js";
2
2
 
3
3
  export { useEveAgent };
@@ -147,9 +147,9 @@ See [Default harness](./concepts/default-harness#compaction) for how the loop ap
147
147
 
148
148
  ## Runtime limits
149
149
 
150
- Use `limits` for framework-owned runtime caps. Session token limits stop the
150
+ Use `limits` for framework-owned runtime caps. Session usage limits stop the
151
151
  current durable session from starting another model call after accumulated
152
- provider-reported input or output token usage reaches the configured limit:
152
+ provider-reported tokens or model token cost reaches a configured limit:
153
153
 
154
154
  ```ts title="agent/agent.ts"
155
155
  export default defineAgent({
@@ -157,6 +157,7 @@ export default defineAgent({
157
157
  limits: {
158
158
  maxInputTokensPerSession: 200_000,
159
159
  maxOutputTokensPerSession: 20_000,
160
+ maxTokenCostUsdPerSession: 1.5,
160
161
  sessionTimeoutMs: 7 * 24 * 60 * 60 * 1_000,
161
162
  },
162
163
  });
@@ -169,14 +170,13 @@ then emits `session.completed` and releases the continuation; the next
169
170
  qualifying channel message starts fresh. Set it to `false` to disable the
170
171
  timeout. Expiration does not delete stored session data.
171
172
 
172
- Input and output budgets are checked independently. The model call that crosses
173
- either limit is allowed to finish because providers only report exact token
174
- usage after a call completes. Before the next model call, eve pauses the
173
+ Input tokens, output tokens, and model token cost are checked independently.
174
+ The model call that crosses a limit is allowed to finish because exact usage
175
+ arrives after the call completes. Before the next model call, eve pauses the
175
176
  session and sends a deterministic continuation prompt with two options:
176
- **Approve** grants a fresh budget window of the configured size (both input
177
- and output windows reset together), and **Stop** cancels the in-flight turn
178
- through the standard cancellation path (`turn.cancelled` → `session.waiting`)
179
- — a user decision, not an error. The session stays resumable; because it is
177
+ **Approve** grants a fresh window of each configured size, and **Stop**
178
+ cancels the in-flight turn through the standard cancellation path
179
+ (`turn.cancelled` → `session.waiting`) — a user decision, not an error. The session stays resumable; because it is
180
180
  still over budget, the next message re-raises the prompt. Declining a
181
181
  delegated child's prompt cancels the root turn, which cascades to the whole
182
182
  delegation tree — the delegating parent never receives an error result it
@@ -186,23 +186,28 @@ copy. The reply is processed once the budget is granted.
186
186
 
187
187
  Sessions that cannot reach a human — task-mode runs such as schedules and
188
188
  delegated runs without input proxying — skip the prompt and fail the next model
189
- call with `SESSION_TOKEN_LIMIT_REACHED`. A delegated task with no inherited
190
- quota also fails instead of raising a continuation prompt that could only
191
- grant another zero-token window.
189
+ call with `SESSION_TOKEN_LIMIT_REACHED` for token budgets or
190
+ `SESSION_TOKEN_COST_LIMIT_REACHED` for model token cost. A delegated task with
191
+ no inherited quota also fails instead of raising a continuation prompt that
192
+ could only grant another zero-value window.
192
193
 
193
194
  When `maxInputTokensPerSession` is omitted, root sessions apply a default
194
195
  input budget of `40_000_000` provider-reported input tokens.
195
- `maxOutputTokensPerSession` is unset unless configured. Setting either limit
196
- to `false` uncaps that axis — the session never stops on it.
196
+ `maxOutputTokensPerSession` and `maxTokenCostUsdPerSession` are unset by
197
+ default. `maxTokenCostUsdPerSession` is a US-dollar limit on model token cost,
198
+ not tool or infrastructure spend. It uses the cost reported with each model
199
+ step; AI Gateway supplies this value, while model steps without reported cost
200
+ do not add to the limit. Set any usage limit to `false` to uncap that axis.
197
201
 
198
202
  Delegated subagent sessions have no fixed default. Each child receives a
199
203
  share of the delegating parent's remaining quota at dispatch time — the
200
204
  remainder in the current budget window split evenly across the batch's local
201
205
  subagent calls — and a completed child's usage counts against the parent's
202
- quota, so a delegation tree can never outspend the budget configured at its
203
- root. Approving a continuation opens a fresh parent window for later child
204
- grants without erasing lifetime usage. An authored child limit applies only
205
- when it is tighter than the parent's grant; an uncapped parent delegates
206
+ quota. Token-cost budgets follow the same rules, including splitting the
207
+ remaining US-dollar budget across a batch and adding completed child cost back
208
+ to the parent. Approving a continuation opens a fresh parent window for later
209
+ child grants without erasing lifetime usage. An authored child limit applies
210
+ only when it is tighter than the parent's grant; an uncapped parent delegates
206
211
  uncapped children.
207
212
 
208
213
  ## Workflow world
@@ -250,7 +255,7 @@ installed package must stay external in hosted output, list it in
250
255
  | -------------- | --------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
251
256
  | `reasoning` | `AgentReasoningDefinition` | provider default | Provider-agnostic reasoning effort forwarded to the agent's turn model calls. |
252
257
  | `modelOptions` | `AgentModelOptionsDefinition` | none | Provider option overrides forwarded to the model call. |
253
- | `limits` | `AgentLimitsDefinition` | field-specific | Framework-owned runtime limits. Sessions complete after 30 days by default; token-limit defaults and inheritance are described above. Set a limit to `false` to disable it. |
258
+ | `limits` | `AgentLimitsDefinition` | field-specific | Framework-owned runtime limits. Sessions complete after 30 days by default; usage-limit defaults and inheritance are described above. Set a limit to `false` to disable it. |
254
259
  | `experimental` | `{ workflow?: { world?: string } }` | unset | Opt-in settings that can change or disappear in any release. Treat them as unstable. `workflow.world` selects the Workflow world package backing session state, queues, hooks, and streams on the root agent. |
255
260
  | `outputSchema` | Standard Schema or a JSON Schema object | none | Structured return type for function-like invocations such as a subagent turn, schedule, or remote job. Ordinary interactive turns ignore it unless the client supplies a per-message schema. |
256
261
  | `build` | `{ externalDependencies?: string[] }` | none | Hosted-build packaging controls. `externalDependencies` keeps listed packages external while eve compiles authored modules such as tools and channels, and traces those packages into the hosted output. |
@@ -91,7 +91,7 @@ Stream a session as newline-delimited JSON from `GET /eve/v1/session/:sessionId/
91
91
 
92
92
  ### Cancel a turn
93
93
 
94
- Post to `/eve/v1/session/:sessionId/cancel` to request cancellation of the active turn. You can include the observed `turnId` to keep a late request from cancelling a newer turn. Cancellation is asynchronous; confirm it on the stream as `turn.cancelled` followed by `session.waiting`.
94
+ Post to `/eve/v1/session/:sessionId/cancel` to request cancellation of the active turn. You can include the observed `turnId` to keep a late request from cancelling a newer turn. Include `tasks: true` to also cancel every background task owned by the session, including while the session is parked. Cancellation is asynchronous; confirm the turn boundary on the stream as `turn.cancelled` followed by `session.waiting`, and inspect task state in a later turn to confirm task cancellation.
95
95
 
96
96
  See [Cancel the in-flight turn](../concepts/sessions-runs-and-streaming#cancel-the-in-flight-turn) for response statuses, HTTP status codes, subagent cancellation, and race behavior.
97
97
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: "Built-in Tools"
3
- description: "The default and opt-in tools eve provides, including Workflow, glob, grep, and sleep."
3
+ description: "The default and opt-in tools eve provides, including glob, grep, and sleep."
4
4
  ---
5
5
 
6
6
  eve provides a default tool set for every agent and additional tools you can add with one file. Each default occupies the same `agent/tools/<name>.ts` slot you would author yourself, so an authored definition replaces it and `disableTool()` removes it. Use this page to review what the model can call, opt into more capabilities, or override and disable defaults. For custom tools, see [Tools](../tools).
@@ -28,7 +28,7 @@ The model-facing file tools accept absolute paths and paths beginning with `$HOM
28
28
 
29
29
  Notes:
30
30
 
31
- - **`agent`** is available only in the root session. Its child uses the root's instructions, tools, connections, and sandbox, but starts with fresh conversation history and fresh [state](./state). The child receives neither `agent` nor `Workflow`; declared subagents do not receive the built-in `agent` either. See [Subagents](../subagents).
31
+ - **`agent`** is available only in the root session and always runs in the background. Its call returns a task receipt immediately, and task notifications deliver updates or the final result. The child uses the root's instructions, tools, connections, and sandbox, but starts with fresh conversation history and fresh [state](./state). The child receives neither `agent` nor `Workflow`; declared subagents do not receive the built-in `agent` either. See [Subagents](../subagents).
32
32
  - **`load_skill`** only pulls instructions into context. It adds no new execution surface, because behavior still comes from the tools the agent already has.
33
33
  - **`connection_search`** surfaces a connection's tools by their qualified name (e.g. `linear__list_issues`), which the model can then call directly. The model sees it only when the agent has connections.
34
34
  - **`web_search`** has no local executor; the provider runs it. AI Gateway models use Exa by default. To use Parallel instead, export `webSearch({ provider: "parallel" })` from `agent/tools/web_search.ts`. Direct provider models continue to use their native search implementation. To supply your own implementation, override it with `defineTool()`.
@@ -40,12 +40,11 @@ Review these default tools before production use. Disable, wrap, restrict, or re
40
40
 
41
41
  Some framework-provided tools stay out of the default set. Add the corresponding file when your agent needs one:
42
42
 
43
- | Tool | Definition to export | Purpose |
44
- | ---------- | --------------------------------------------------- | -------------------------------------------------- |
45
- | `glob` | `glob` from `eve/tools/glob` | Find sandbox files by glob pattern. |
46
- | `grep` | `grep` from `eve/tools/grep` | Search sandbox file contents by regex. |
47
- | `Workflow` | `experimental_workflow()` from `eve/tools/workflow` | Orchestrate root-agent copies from generated code. |
48
- | `sleep` | `sleep()` from `eve/tools/sleep` | Pause and durably resume the current turn. |
43
+ | Tool | Definition to export | Purpose |
44
+ | ------- | -------------------------------- | ------------------------------------------ |
45
+ | `glob` | `glob` from `eve/tools/glob` | Find sandbox files by glob pattern. |
46
+ | `grep` | `grep` from `eve/tools/grep` | Search sandbox file contents by regex. |
47
+ | `sleep` | `sleep()` from `eve/tools/sleep` | Pause and durably resume the current turn. |
49
48
 
50
49
  For example, add file discovery and content search with two files:
51
50
 
@@ -59,7 +58,7 @@ export { grep as default } from "eve/tools/grep";
59
58
 
60
59
  The filename supplies the model-facing tool name. The tools run against the agent's sandbox and use the same schemas, results, and error behavior as eve's framework implementations. Wrap either definition with `defineTool({ ...glob, description: "..." })` or `defineTool({ ...grep, description: "..." })` when you need to change its description or approval policy.
61
60
 
62
- The sections below cover `Workflow` and `sleep` in more detail.
61
+ The section below covers `sleep` in more detail.
63
62
 
64
63
  ## Override a default
65
64
 
@@ -125,86 +124,6 @@ Three moves shape the harness. The right one depends on whether the model should
125
124
  - **Disable** when the model should not have the capability at all. A `disableTool()` sentinel removes the built-in, and the model never sees it. Reach for this to lock down `bash` or `web_fetch` in an agent that should not run shell commands or fetch arbitrary URLs.
126
125
  - **Author a new tool** when you want a capability the harness does not ship. Give it a fresh slug under `agent/tools/` and it joins the built-ins instead of replacing one. See [Tools](../tools) for the authoring model.
127
126
 
128
- ## Workflow tool
129
-
130
- The opt-in experimental `Workflow` tool lets the model write JavaScript that coordinates the agent's own subagents as a single durable step. The program can run them in sequence, feed one result into the next, fan out over a list, and combine the results. You enable the capability and the model decides and runs the orchestration.
131
-
132
- A single turn can already call several subagents, and parallel tool calls dispatch concurrently. What a workflow adds is _programmatic_ coordination. The program decides how many subagents to run based on an earlier result, which output feeds which call, and how to combine everything. That is logic the model cannot express as a few one-off calls.
133
-
134
- `Workflow` is a model-facing tool, not an API for authored tools, hooks, or application code. Authored code cannot submit a Workflow program or use `Workflow` to start an arbitrary user-authored Vercel Workflow. Use the [client SDK](../guides/client/overview) when application code needs to start or continue an eve session; use ordinary application APIs for other deterministic orchestration.
135
-
136
- ### Enable Workflow
137
-
138
- Export the experimental Workflow definition from `agent/tools/workflow.ts`. The helper name carries the "experimental" warning, but the tool the model actually sees is named `Workflow`.
139
-
140
- ```ts title="agent/tools/workflow.ts"
141
- import { experimental_workflow } from "eve/tools/workflow";
142
-
143
- export default experimental_workflow();
144
- ```
145
-
146
- Without that file, the `Workflow` tool stays off. It earns its keep only when the agent has subagents (or the built-in `agent`) worth coordinating:
147
-
148
- ```ts title="agent/subagents/analyst/agent.ts"
149
- import { defineAgent } from "eve";
150
-
151
- export default defineAgent({
152
- description: "Analyzes one metric: queries, computes, writes a short finding.",
153
- model: "anthropic/claude-opus-4.8",
154
- });
155
- ```
156
-
157
- When asked for a weekly business review, the model picks the metrics, runs one `analyst` per metric in parallel, and combines the findings. The program below is the kind of JavaScript the model authors. It fans `analyst` out over a runtime-decided list of metrics and merges the results:
158
-
159
- ```js
160
- const metrics = ["revenue", "signups", "churn"];
161
- const findings = await Promise.all(
162
- metrics.map((metric) => tools.analyst({ message: `Summarize last week's ${metric}.` })),
163
- );
164
- return findings.join("\n\n");
165
- ```
166
-
167
- Each `tools.analyst(...)` call dispatches a child subagent, so the parent stream records one `subagent.called` per metric and one `subagent.completed` as each finishes:
168
-
169
- ```json
170
- { "type": "subagent.called", "data": { "name": "analyst", "toolName": "analyst", "callId": "call_1", "childSessionId": "ses_a1", "sequence": 0 } }
171
- { "type": "subagent.called", "data": { "name": "analyst", "toolName": "analyst", "callId": "call_2", "childSessionId": "ses_a2", "sequence": 1 } }
172
- { "type": "subagent.called", "data": { "name": "analyst", "toolName": "analyst", "callId": "call_3", "childSessionId": "ses_a3", "sequence": 2 } }
173
- { "type": "subagent.completed", "data": { "subagentName": "analyst", "callId": "call_1", "output": "..." } }
174
- { "type": "subagent.completed", "data": { "subagentName": "analyst", "callId": "call_2", "output": "..." } }
175
- { "type": "subagent.completed", "data": { "subagentName": "analyst", "callId": "call_3", "output": "..." } }
176
- ```
177
-
178
- ### What a workflow can orchestrate
179
-
180
- A workflow reaches only this agent's own agents: the built-in `agent` (a copy of itself), declared [subagents](../subagents), and [remote agents](../guides/remote-agents). That is the whole list. No files, network, shell, skills, or connections. A workflow is a coordination layer over subagents, not a place to do other work. Each call can still request structured output via `outputSchema`, exactly like a direct subagent delegation.
181
-
182
- ### Caps on workflow-spawned subagents
183
-
184
- Workflow orchestration is capped in two independent ways.
185
-
186
- **Per-program call budget.** One Workflow program may dispatch at most `maxSubagents` subagent calls in total, counted across the whole program — sequential and parallel calls alike. Configure it on `experimental_workflow`; the default is 100. Calls beyond the budget do not start a child session; they resolve inside the program with a `WORKFLOW_SUBAGENT_LIMIT_REACHED` error result, and the budget is stated in the tool's description so the model sizes its fan-out to fit.
187
-
188
- ```ts title="agent/tools/workflow.ts"
189
- import { experimental_workflow } from "eve/tools/workflow";
190
-
191
- export default experimental_workflow({ maxSubagents: 4 });
192
- ```
193
-
194
- **Root-only orchestration.** Only the root session receives `Workflow`. Children started by a workflow receive neither `Workflow` nor the built-in `agent`, so Workflow programs cannot recurse. A declared child can still call subagents defined in its own directory (see [Subagents](../subagents)).
195
-
196
- ### Where the JavaScript runs
197
-
198
- The orchestration code never touches the agent's process. The runtime hands the program text to a small isolated JavaScript engine (a QuickJS sandbox) and runs it there. Nothing from the host realm crosses in, so there is no `process`, no `globalThis` from the agent, and no `import`/`require`. The program can reach exactly two things, the agent functions bridged in as `tools.<name>` and the ordinary language built-ins.
199
-
200
- That is an allowlist, not a denylist. The sandbox cannot read files, open a socket, or see an environment variable because those are not present, not because each one is blocked in turn. When the program calls an agent function, that call bridges back out to the runtime, which dispatches it exactly like a direct delegation. The orchestration glue stays inside the sandbox.
201
-
202
- ### Durability, approvals, and observability
203
-
204
- - **Durable.** The whole orchestration counts as one step. Subagents dispatched together run concurrently, and if a run parks (suspends durably without holding compute; see [Execution model and durability](./execution-model-and-durability)) on a long-running or human-gated child, it resumes where it left off after a restart.
205
- - **Approval-safe.** A subagent that needs human approval (HITL, human-in-the-loop) mid-run surfaces its request to the user, and the workflow picks back up once that is answered, same as direct delegation.
206
- - **Observable.** Every orchestrated subagent emits the usual `subagent.called` / `subagent.completed` events on the parent stream and gets its own child session and stream. The telemetry matches direct delegation, so existing dashboards and cost attribution keep working.
207
-
208
127
  ## The opt-in `sleep` tool
209
128
 
210
129
  The framework also ships a durable `sleep` tool, but does not add it to agents by default. Enable it with `agent/tools/sleep.ts`:
@@ -215,11 +134,11 @@ import { sleep } from "eve/tools/sleep";
215
134
  export default sleep();
216
135
  ```
217
136
 
218
- The model calls it with `{ seconds }` when it is useful to wait before checking progress or status again. The pause sleeps the durable turn workflow, so it does not hold an application runtime open, and the same turn continues automatically when the duration elapses. If one model response makes concurrent `sleep` calls, eve waits for the longest requested duration.
137
+ The model calls it with `{ seconds }` when it is useful to wait before checking progress or status again. Each call runs as a durable tool workflow, so it does not hold an application runtime open, and the same turn continues automatically when the duration elapses. Concurrent `sleep` calls run in parallel, so the turn continues after the longest requested duration.
219
138
 
220
139
  ## What to read next
221
140
 
222
141
  - [Tools](../tools): define your own tools, gate them on approval, and shape their output with `toModelOutput`
223
142
  - [Dynamic capabilities](../guides/dynamic-capabilities): generate the tool set per session with `defineDynamic`
224
143
  - [Sandbox](../sandbox): configure the sandbox used by shell and file tools
225
- - [Subagents](../subagents): declare the agents that `agent` and `Workflow` can call
144
+ - [Subagents](../subagents): declare specialists that the model can call as background tasks
@@ -14,7 +14,7 @@ Control context by putting information in the narrowest surface that needs it. K
14
14
  | A procedure needed only for some tasks | A [skill](../skills) | Its description until the model loads the full skill |
15
15
  | A typed action or external operation | A [tool](../tools) or [connection](../connections) | The callable schema and the result of each call |
16
16
  | Files or command execution | The [sandbox workspace](../sandbox) | A workspace hint, then files and command output the model requests through tools |
17
- | A specialist with a separate prompt and capabilities | A [subagent](../subagents) | Only the subagent's final result in the parent context |
17
+ | A specialist with a separate prompt and capabilities | A [subagent](../subagents) | A receipt followed by background task notifications |
18
18
  | Instructions or capabilities that vary by caller | A [dynamic capability](../guides/dynamic-capabilities) | The values resolved for the active session |
19
19
  | Scoped context retrieved from cross-session storage | [Memory](../memory) | Attributed user-role messages recalled before the current delivery |
20
20
 
@@ -46,7 +46,7 @@ See [Sandbox](../sandbox) for workspace seeding, runtime access, backends, and l
46
46
 
47
47
  ## Delegate to a specialist with a subagent
48
48
 
49
- Use a subagent when work needs its own instructions, tools, skills, state, or sandbox. The child runs in a separate context instead of adding its working history to the parent. The parent receives the result of the delegation.
49
+ Use a subagent when work needs its own instructions, tools, skills, state, or sandbox. The child runs in a separate context instead of adding its working history to the parent. The call returns a task receipt, and later task notifications deliver its outcome.
50
50
 
51
51
  See [Subagents](../subagents) for the distinction between root-agent copies and declared specialists, including their isolation boundaries.
52
52
 
@@ -64,7 +64,7 @@ You don't write workflow code directly. Workflow primitives (`start()`, `resumeH
64
64
 
65
65
  ## Parked work
66
66
 
67
- Some work has to wait, including a human approving a [tool](../tools), an interactive OAuth sign-in for a [connection](../connections), or a long-running [subagent](../subagents). At those points the turn parks durably. The workflow suspends and holds no compute until the input it's waiting on arrives (a click, a callback, a child completing), even if that's much later. When it does, the conversation picks up exactly where it left off.
67
+ Some work has to wait, including a human approving a [tool](../tools) or an interactive OAuth sign-in for a [connection](../connections). At those points the turn parks durably. The workflow suspends and holds no compute until the input it's waiting on arrives, even if that's much later. When it does, the conversation picks up exactly where it left off. Background tools and subagents return a task receipt instead, so the turn continues and later task notifications deliver progress or the outcome.
68
68
 
69
69
  ## Message delivery and steering
70
70
 
@@ -58,7 +58,7 @@ The stream is newline-delimited JSON (NDJSON), one event per line:
58
58
  | `input.requested` | The run paused for human input ([HITL](/docs/human-in-the-loop) approval or `ask_question`); carries `requests`. |
59
59
  | `input.resolved` | The server accepted terminal human-input outcomes; carries `resolutions` with responses when provided. |
60
60
  | `subagent.called` | A subagent was delegated; carries `childSessionId` to attach to. |
61
- | `subagent.completed` | A delegated subagent finished. |
61
+ | `subagent.completed` | A background subagent was admitted and returned its task receipt. |
62
62
  | `reasoning.appended` | A reasoning text delta. |
63
63
  | `reasoning.completed` | The finalized reasoning block. |
64
64
  | `message.appended` | An assistant text delta. |
@@ -95,7 +95,7 @@ Note: consider the privacy, confidentiality, and user-experience implications fo
95
95
 
96
96
  `message.completed` can fire more than once in a turn: the agent often emits interim assistant text before a tool call. To tell tool-call narration from a terminal reply, check `message.completed.data.finishReason`. `step.completed.data.finishReason` mirrors the step outcome, and usage lives on `step.completed`.
97
97
 
98
- A delegated subagent publishes progress on its own child-session stream. The parent only emits `subagent.called` with a `childSessionId`, which a client uses to attach.
98
+ A delegated subagent publishes progress on its own child-session stream. The parent emits `subagent.called` with a `childSessionId`, which a client uses to attach. `subagent.completed` carries a working task receipt after admission; later updates and outcomes arrive as task-triggered `message.received` notifications.
99
99
 
100
100
  `step.failed` and `turn.failed` carry `{ code, message, details? }` for the failed fragment or turn, and `session.failed` is the terminal session-level variant. `turn.cancelled` is not a failure: the cancelled turn ends without any failure event, `session.waiting` follows, and the session accepts the next message normally. Whatever the turn streamed before cancellation stays on the stream. Durable history keeps the accepted user input and previously settled work, but discards incomplete assistant output and unfinished tool state. When a turn requested an output schema, the finalized payload lands on `result.completed` as `data.result` before the turn boundary. `authorization.required` carries the sign-in challenge (`data.authorization` may include `url`, `userCode`, `expiresAt`, `instructions`), and `authorization.completed` carries `data.outcome` (`"authorized" | "declined" | "failed" | "timed-out"`).
101
101
 
@@ -191,7 +191,15 @@ curl -X POST http://127.0.0.1:2000/eve/v1/session/<sessionId>/cancel
191
191
  # {"ok":true,"sessionId":"<sessionId>","status":"accepted"}
192
192
  ```
193
193
 
194
- `"accepted"` means the live session durably queued the request. Confirm an actual cancellation on the stream as `turn.cancelled` followed by `session.waiting`; the session then accepts the next message normally. If the turn is waiting on active local or remote subagents, eve also requests cancellation of every adopted child, recursively, before settling the parent. Each child reports its own cancellation boundary on its child-session stream; the parent does not emit `subagent.completed` for cancelled work. A live but already-parked session also returns `"accepted"` and consumes the command as a no-op. `"no_active_turn"` means the session or channel address is unknown or terminal. Both statuses are success, so clients can fire and forget. See the [eve channel](../channels/eve) for the full route contract.
194
+ By default, background tasks that were already admitted survive initiating-turn cancellation. Pass `tasks: true` to cancel every background task owned by the session as well. This works while the session is parked, so you can stop background work without resetting the session:
195
+
196
+ ```bash
197
+ curl -X POST http://127.0.0.1:2000/eve/v1/session/<sessionId>/cancel \
198
+ -H 'content-type: application/json' \
199
+ -d '{"tasks":true}'
200
+ ```
201
+
202
+ `"accepted"` means the live session durably queued the request; cancellation completes asynchronously. Confirm turn cancellation on the stream as `turn.cancelled` followed by `session.waiting`. Inspect task state in a later turn to confirm task cancellation. The session then accepts the next message normally. Background work that has not yet been admitted is rejected with the cancelled step. Each cancelled child reports its own boundary on its child-session stream. A live but already-parked session returns `"accepted"`; plain cancellation is a no-op there, while `tasks: true` still cancels indexed tasks. `"no_active_turn"` means the session or channel address is unknown or terminal. Both statuses are success, so clients can fire and forget. See the [eve channel](../channels/eve) for the full route contract.
195
203
 
196
204
  The HTTP route returns `202` for `"accepted"` and `200` for
197
205
  `"no_active_turn"`. Only the accepted result includes `sessionId`.
@@ -237,7 +237,7 @@ stream index after the captured prefix.
237
237
 
238
238
  ## Abort a request
239
239
 
240
- Pass an `AbortSignal` to cancel the POST or stream. Aborting is local transport cancellation: turns are resumable across disconnects, so detaching never stops the server-side turn — it keeps running and remains attachable by index. To stop the turn itself, POST the session's [cancel route](../../channels/eve#routes) and watch the stream settle with `turn.cancelled` followed by `session.waiting`.
240
+ Pass an `AbortSignal` to cancel the POST or stream. Aborting is local transport cancellation: turns are resumable across disconnects, so detaching never stops server-side work. Use `session.cancel()` to stop the active turn, or `session.cancel({ tasks: true })` to also stop background tasks owned by the session. Cancellation is asynchronous; watch the stream for `turn.cancelled` followed by `session.waiting`, and inspect task state in a later turn to confirm task cancellation.
241
241
 
242
242
  Arm the timeout before awaiting `send()` so it covers the POST as well as the stream:
243
243
 
@@ -51,6 +51,24 @@ See [Sandbox](../../sandbox) for resource limits, network policy, and lifecycle
51
51
 
52
52
  ## Deploy the agent
53
53
 
54
+ A project containing only several independently addressed root agents can use eve's hostless workspace layout:
55
+
56
+ ```text
57
+ my-project/
58
+ ├── package.json
59
+ └── agents/
60
+ ├── support/
61
+ │ └── agent/
62
+ └── research/
63
+ └── agent/
64
+ ```
65
+
66
+ In an eve workspace, eve discovers direct `agents/<name>/` children that contain nested or flat agent files and do not have their own `package.json`. Their directory names become their public identities, exposed at `/<name>/eve/v1/*`. A child with its own `package.json` is a separate package rather than a member of the parent eve workspace. Run an agent-specific command from a member directory or pass `--agent <name>` at the workspace root; interactive commands open a picker when the name is omitted. Run project-level build, link, and deploy commands from the workspace root. Workspace members share the root package, dependencies, and build scripts.
67
+
68
+ Create this layout with `eve init my-project --agents support,research`, or add one agent to an existing workspace with `eve init billing`.
69
+
70
+ With no authored `vercel.json#services`, `eve build` derives the complete Vercel Services graph on every build. If `vercel.json` declares `services`, that authored graph is authoritative instead; use `vercel build` to build and validate the complete project. This supports heterogeneous projects with frontends, private APIs, bindings, and other non-eve services without generated configuration files.
71
+
54
72
  Deploy the linked project to production:
55
73
 
56
74
  ```bash
@@ -77,8 +95,8 @@ Vercel uses the generated output to configure these services:
77
95
  Check the health route and connect the development TUI:
78
96
 
79
97
  ```bash
80
- curl https://your_agent.vercel.app/eve/v1/health
81
- eve dev https://your_agent.vercel.app
98
+ curl https://your_agent.vercel.app/support/eve/v1/health
99
+ eve dev https://your_agent.vercel.app/support
82
100
  ```
83
101
 
84
102
  Set `VERCEL_AUTOMATION_BYPASS_SECRET` locally before connecting if the deployment uses Deployment Protection.