eve 0.67.2 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +120 -0
- package/bin/eve.js +15 -0
- package/dist/src/_virtual/_rolldown/runtime.js +1 -1
- package/dist/src/approval/definition.d.ts +19 -5
- package/dist/src/channel/adapter.d.ts +2 -0
- package/dist/src/channel/auth/oidc.js +1 -1
- package/dist/src/channel/channel-address.d.ts +1 -4
- package/dist/src/channel/channel-address.js +1 -1
- package/dist/src/channel/channel-operations.d.ts +4 -11
- package/dist/src/channel/channel-operations.js +1 -1
- package/dist/src/channel/compiled-channel.d.ts +0 -2
- package/dist/src/channel/compiled-channel.js +2 -2
- package/dist/src/channel/cross-channel-receive.d.ts +1 -3
- package/dist/src/channel/cross-channel-receive.js +1 -1
- package/dist/src/channel/forwarded-principal.js +1 -1
- package/dist/src/channel/schedule-auth.d.ts +16 -0
- package/dist/src/channel/schedule-auth.js +1 -1
- package/dist/src/channel/session-callback.js +1 -1
- package/dist/src/channel/session.d.ts +3 -8
- package/dist/src/channel/session.js +1 -1
- package/dist/src/channel/task-card.d.ts +121 -0
- package/dist/src/channel/task-card.js +1 -0
- package/dist/src/channel/types.d.ts +12 -54
- package/dist/src/chunks/{use-eve-agent-DXcE_8Ja.js → use-eve-agent-D_5129A9.js} +295 -205
- package/dist/src/chunks/{use-eve-agent-D4HVZBjn.js → use-eve-agent-Dab2MnT2.js} +295 -205
- package/dist/src/cli/commands/info.d.ts +11 -0
- package/dist/src/cli/commands/info.js +1 -1
- package/dist/src/cli/commands/init-agent-workspace.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/dev/command-options.d.ts +3 -2
- package/dist/src/cli/dev/command.js +1 -1
- package/dist/src/cli/dev/local-server-process.js +1 -1
- package/dist/src/cli/dev/tui/blocks.d.ts +19 -18
- package/dist/src/cli/dev/tui/blocks.js +3 -3
- package/dist/src/cli/dev/tui/command-typeahead.d.ts +3 -6
- package/dist/src/cli/dev/tui/diagnostic-presentation.d.ts +10 -0
- package/dist/src/cli/dev/tui/diagnostic-presentation.js +3 -2
- package/dist/src/cli/dev/tui/prompt-placeholder.d.ts +2 -0
- package/dist/src/cli/dev/tui/prompt-placeholder.js +1 -0
- package/dist/src/cli/dev/tui/rail.d.ts +1 -1
- package/dist/src/cli/dev/tui/runner.d.ts +25 -2
- package/dist/src/cli/dev/tui/runner.js +3 -3
- package/dist/src/cli/dev/tui/status-line.d.ts +4 -2
- package/dist/src/cli/dev/tui/status-line.js +1 -1
- package/dist/src/cli/dev/tui/subagent-pump.d.ts +44 -52
- package/dist/src/cli/dev/tui/subagent-pump.js +1 -1
- package/dist/src/cli/dev/tui/task-activity.d.ts +55 -0
- package/dist/src/cli/dev/tui/task-activity.js +1 -0
- package/dist/src/cli/dev/tui/terminal-renderer.d.ts +13 -30
- package/dist/src/cli/dev/tui/terminal-renderer.js +11 -11
- package/dist/src/cli/dev/tui/theme.d.ts +1 -1
- package/dist/src/cli/dev/tui/theme.js +1 -1
- package/dist/src/cli/dev/tui/tool-block-groups.d.ts +6 -9
- package/dist/src/cli/dev/tui/tool-block-groups.js +1 -1
- package/dist/src/cli/dev/tui/tool-presentation.d.ts +16 -3
- package/dist/src/cli/dev/tui/tool-presentation.js +1 -1
- package/dist/src/cli/dev/tui/traces/trace-conversation.js +3 -1
- package/dist/src/cli/dev/tui/traces/trace-view.js +1 -1
- package/dist/src/cli/dev/tui/tui.js +1 -1
- package/dist/src/cli/dev/tui/types.d.ts +11 -5
- package/dist/src/cli/dev/ui-options.d.ts +2 -2
- package/dist/src/cli/option-parsers.d.ts +3 -1
- package/dist/src/cli/option-parsers.js +1 -1
- package/dist/src/cli/ui/terminal-text.js +1 -1
- package/dist/src/client/agent-info-schema.d.ts +150 -9
- package/dist/src/client/agent-info-schema.js +1 -1
- package/dist/src/client/agent-session.d.ts +28 -0
- package/dist/src/client/agent-session.js +1 -0
- package/dist/src/client/eve-agent-store-helpers.d.ts +1 -1
- package/dist/src/client/eve-agent-store-helpers.js +2 -2
- package/dist/src/client/eve-agent-store.js +1 -1
- package/dist/src/client/index.d.ts +2 -1
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/message-action-parts.js +1 -1
- package/dist/src/client/message-reducer.js +1 -1
- package/dist/src/client/message-task-parts.d.ts +8 -0
- package/dist/src/client/message-task-parts.js +1 -0
- package/dist/src/client/optimistic-message-submissions.js +1 -1
- package/dist/src/client/session-controls.d.ts +0 -1
- package/dist/src/client/session-utils.d.ts +10 -0
- package/dist/src/client/session-utils.js +1 -1
- package/dist/src/client/session.d.ts +8 -16
- package/dist/src/client/session.js +1 -1
- package/dist/src/client/stream-version.js +1 -1
- package/dist/src/client/types.d.ts +2 -4
- package/dist/src/compiled/.vendor-stamp.json +3 -2
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/@photon-ai/chat-adapter-imessage/index.js +55 -55
- package/dist/src/compiled/@vercel/blob/index.js +1 -1
- package/dist/src/compiled/@vercel/connect/LICENSE +202 -0
- package/dist/src/compiled/@vercel/connect/authorization-details.d.ts +11 -0
- package/dist/src/compiled/@vercel/connect/authorization.d.ts +47 -0
- package/dist/src/compiled/@vercel/connect/connector.d.ts +32 -0
- package/dist/src/compiled/@vercel/connect/index.d.ts +5 -0
- package/dist/src/compiled/@vercel/connect/index.js +26 -0
- package/dist/src/compiled/@vercel/connect/installation.d.ts +48 -0
- package/dist/src/compiled/@vercel/connect/token.d.ts +137 -0
- package/dist/src/compiled/@vercel/oidc/index.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime.js +3 -3
- package/dist/src/compiled/@workflow/world-vercel/index.js +1 -1
- package/dist/src/compiler/bundled-extension.d.ts +7 -1
- package/dist/src/compiler/bundled-extension.js +1 -1
- package/dist/src/compiler/default-tool-policy.d.ts +2 -2
- package/dist/src/compiler/default-tool-policy.js +1 -1
- package/dist/src/compiler/development-extensions.js +1 -1
- package/dist/src/compiler/extension-compatibility.d.ts +54 -18
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/extension-mount-bindings.d.ts +5 -0
- package/dist/src/compiler/extension-mount-bindings.js +1 -0
- package/dist/src/compiler/load-binding-namespace.d.ts +10 -2
- package/dist/src/compiler/load-binding-namespace.js +1 -1
- package/dist/src/compiler/manifest.d.ts +19 -17
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/module-lifecycle.d.ts +2 -2
- package/dist/src/compiler/module-lifecycle.js +1 -1
- package/dist/src/compiler/module-map.d.ts +1 -1
- package/dist/src/compiler/module-map.js +3 -3
- package/dist/src/compiler/normalize-manifest-helpers.d.ts +18 -1
- package/dist/src/compiler/normalize-manifest-helpers.js +1 -1
- package/dist/src/compiler/normalize-manifest-types.d.ts +2 -0
- package/dist/src/compiler/normalize-manifest.js +1 -1
- package/dist/src/compiler/normalize-subagent.js +1 -1
- package/dist/src/compiler/normalize-tool.js +1 -1
- package/dist/src/compiler/project-sources.d.ts +4 -0
- package/dist/src/compiler/project-sources.js +1 -1
- package/dist/src/compiler/remote-agent-node.js +1 -1
- package/dist/src/compiler/source-graph.d.ts +5 -0
- package/dist/src/compiler/source-graph.js +1 -1
- package/dist/src/computer-use/extension/extension.d.ts +2 -0
- package/dist/src/computer-use/extension/extension.js +1 -0
- package/dist/src/computer-use/extension/lib/command-failure.d.ts +7 -0
- package/dist/src/computer-use/extension/lib/command-failure.js +2 -0
- package/dist/src/{extensions/code → computer-use}/extension/lib/computer-use-sandbox.d.ts +8 -0
- package/dist/src/{extensions/code → computer-use}/extension/lib/computer-use-sandbox.js +3 -3
- package/dist/src/{extensions/code → computer-use}/extension/lib/computer-use.d.ts +2 -0
- package/dist/src/{extensions/code → computer-use}/extension/lib/computer-use.js +2 -1
- package/dist/src/computer-use/extension/lib/sandbox.d.ts +1 -0
- package/dist/src/computer-use/extension/lib/sandbox.js +1 -0
- package/dist/src/computer-use/extension/lib/shell.d.ts +1 -0
- package/dist/src/computer-use/extension/lib/shell.js +1 -0
- package/dist/src/computer-use/extension/tools/computer_use.js +1 -0
- package/dist/src/computer-use/tools.d.ts +1 -0
- package/dist/src/computer-use/tools.js +1 -0
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/dynamic-subagent-lifecycle.d.ts +5 -0
- package/dist/src/context/dynamic-subagent-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.d.ts +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-metadata.d.ts +1 -1
- package/dist/src/context/hook-lifecycle.d.ts +4 -3
- package/dist/src/context/hook-lifecycle.js +1 -1
- package/dist/src/context/key-names.d.ts +0 -1
- package/dist/src/context/key-names.js +1 -1
- package/dist/src/context/keys.d.ts +8 -14
- package/dist/src/context/keys.js +1 -1
- package/dist/src/context/memory-lifecycle.js +1 -1
- package/dist/src/context/memory-tools.d.ts +0 -1
- package/dist/src/context/provider.d.ts +1 -3
- package/dist/src/context/run-step.d.ts +2 -3
- package/dist/src/context/run-step.js +1 -1
- package/dist/src/context/serialize.js +1 -1
- package/dist/src/discover/bundled-extension.js +1 -1
- package/dist/src/discover/discover-agent.js +1 -1
- package/dist/src/discover/extensions.d.ts +0 -7
- package/dist/src/discover/extensions.js +1 -1
- package/dist/src/discover/manifest.d.ts +4 -0
- package/dist/src/evals/assertions/run.d.ts +4 -3
- package/dist/src/evals/assertions/run.js +1 -1
- package/dist/src/evals/index.d.ts +1 -1
- package/dist/src/evals/match.d.ts +4 -4
- package/dist/src/evals/mock-model.js +1 -1
- package/dist/src/evals/runner/derive-run-facts.d.ts +3 -3
- package/dist/src/evals/runner/derive-run-facts.js +1 -1
- package/dist/src/evals/runner/reporters/assertion-scores.d.ts +19 -0
- package/dist/src/evals/runner/reporters/assertion-scores.js +1 -0
- package/dist/src/evals/runner/reporters/braintrust.js +1 -1
- package/dist/src/evals/runner/reporters/datadog-client.d.ts +123 -0
- package/dist/src/evals/runner/reporters/datadog-client.js +4 -0
- package/dist/src/evals/runner/reporters/datadog.d.ts +9 -98
- package/dist/src/evals/runner/reporters/datadog.js +2 -3
- package/dist/src/evals/session-content.js +1 -1
- package/dist/src/evals/session.d.ts +4 -4
- package/dist/src/evals/session.js +2 -2
- package/dist/src/evals/types.d.ts +18 -15
- package/dist/src/eve-channel/create-request.d.ts +5 -4
- package/dist/src/eve-channel/create-request.js +1 -1
- package/dist/src/eve-channel/index.d.ts +0 -9
- package/dist/src/eve-channel/index.js +1 -1
- package/dist/src/eve-channel/request.d.ts +3 -7
- package/dist/src/eve-channel/request.js +1 -1
- package/dist/src/eve-channel/support.d.ts +15 -5
- package/dist/src/eve-channel/support.js +1 -1
- package/dist/src/eve-channel/turn-policy-request.d.ts +2 -0
- package/dist/src/eve-channel/turn-policy-request.js +1 -0
- package/dist/src/eve-channel/types.d.ts +4 -0
- package/dist/src/execution/agent-sessions/context.d.ts +60 -0
- package/dist/src/execution/agent-sessions/context.js +1 -0
- package/dist/src/{subagents/remote-dispatch.d.ts → execution/agent-sessions/remote.d.ts} +17 -40
- package/dist/src/execution/agent-sessions/remote.js +1 -0
- package/dist/src/execution/agent-sessions/requests.d.ts +20 -0
- package/dist/src/execution/agent-sessions/requests.js +1 -0
- package/dist/src/execution/agent-sessions/session.d.ts +12 -0
- package/dist/src/execution/agent-sessions/session.js +1 -0
- package/dist/src/execution/agent-sessions/steps.d.ts +59 -0
- package/dist/src/execution/agent-sessions/steps.js +1 -0
- package/dist/src/execution/agent-sessions/target.d.ts +45 -0
- package/dist/src/execution/agent-sessions/target.js +1 -0
- package/dist/src/execution/agent-sessions/usage.d.ts +18 -0
- package/dist/src/execution/agent-sessions/usage.js +1 -0
- package/dist/src/execution/authorization-callback-match.d.ts +2 -4
- package/dist/src/execution/authorization-callback-match.js +1 -1
- package/dist/src/execution/cancel-descendant-turns-step.d.ts +1 -5
- package/dist/src/execution/cancel-descendant-turns-step.js +1 -1
- package/dist/src/execution/cancelled-model-call-batch.js +1 -1
- package/dist/src/execution/connection-announcement.d.ts +7 -0
- package/dist/src/execution/connection-announcement.js +4 -0
- package/dist/src/execution/continuation-conflict-step.d.ts +2 -3
- package/dist/src/execution/continuation-conflict-step.js +1 -1
- package/dist/src/execution/coordination-dispatch-shared.d.ts +9 -27
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/coordination-dispatch-step.d.ts +3 -2
- package/dist/src/execution/coordination-dispatch-step.js +1 -1
- package/dist/src/execution/create-session-step.d.ts +0 -1
- package/dist/src/execution/create-session-step.js +1 -1
- package/dist/src/execution/deliver-payloads.js +1 -1
- package/dist/src/execution/durable-session-store.d.ts +0 -1
- package/dist/src/execution/dynamic-connections.js +1 -1
- package/dist/src/execution/dynamic-workflow/program-step.js +1 -1
- package/dist/src/execution/dynamic-workflow/schema.d.ts +1 -3
- package/dist/src/execution/dynamic-workflow/schema.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.d.ts +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/dynamic-workflow/workflow.js +1 -1
- package/dist/src/execution/forward-session-input.d.ts +4 -0
- package/dist/src/execution/forward-session-input.js +1 -0
- package/dist/src/execution/legacy-remote-agent/protocol.d.ts +41 -0
- package/dist/src/execution/legacy-remote-agent/protocol.js +1 -0
- package/dist/src/execution/legacy-session/authorization.js +1 -1
- package/dist/src/execution/legacy-session/completion-step.js +1 -1
- package/dist/src/execution/legacy-session/inbox.js +1 -1
- package/dist/src/execution/legacy-session/input.js +1 -1
- package/dist/src/execution/legacy-session/interrupt-step.js +1 -1
- package/dist/src/execution/model-call-batching.js +1 -1
- package/dist/src/execution/node-step.d.ts +1 -1
- package/dist/src/execution/node-step.js +1 -1
- package/dist/src/execution/proxied-deliver-step.d.ts +9 -6
- package/dist/src/execution/proxied-deliver-step.js +1 -1
- package/dist/src/execution/publish-session-events.d.ts +130 -0
- package/dist/src/execution/publish-session-events.js +1 -0
- package/dist/src/execution/route-child-delivery.d.ts +5 -4
- package/dist/src/execution/route-child-delivery.js +1 -3
- package/dist/src/execution/runtime-context.js +1 -1
- package/dist/src/execution/sandbox/prewarm.js +1 -1
- package/dist/src/execution/session/admission.d.ts +1 -12
- package/dist/src/execution/session/admission.js +1 -1
- package/dist/src/execution/session/entry-input.d.ts +0 -2
- package/dist/src/execution/session/entry.js +1 -1
- package/dist/src/execution/session/finalization.js +1 -1
- package/dist/src/execution/session/handoff-steps.d.ts +13 -2
- package/dist/src/execution/session/handoff-steps.js +1 -1
- package/dist/src/execution/session/handoff.d.ts +17 -3
- package/dist/src/execution/session/handoff.js +1 -1
- package/dist/src/execution/session/input-queue.d.ts +27 -28
- package/dist/src/execution/session/input-queue.js +1 -1
- package/dist/src/execution/session/next-input.d.ts +5 -0
- package/dist/src/execution/session/next-input.js +1 -1
- package/dist/src/execution/session/pending-turn-state.d.ts +2 -0
- package/dist/src/execution/session/pending-turn-state.js +1 -1
- package/dist/src/execution/session/principal.d.ts +14 -0
- package/dist/src/execution/session/principal.js +1 -0
- package/dist/src/execution/session/program.js +1 -1
- package/dist/src/execution/session/route-selected-delivery.js +1 -1
- package/dist/src/execution/session/state-cursor.d.ts +17 -15
- package/dist/src/execution/session/state-cursor.js +1 -1
- package/dist/src/execution/session/state-delta.d.ts +33 -0
- package/dist/src/execution/session/state-delta.js +1 -0
- package/dist/src/execution/session/timeout-steps.js +1 -1
- package/dist/src/execution/session/turn-event-handler.d.ts +27 -0
- package/dist/src/execution/session/turn-event-handler.js +1 -0
- package/dist/src/execution/session/turn-step-result.d.ts +1 -3
- package/dist/src/execution/session/turn-step-result.js +1 -1
- package/dist/src/execution/session/turn-step-types.d.ts +24 -15
- package/dist/src/execution/session/turn-step.d.ts +2 -2
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn-waiting-step.d.ts +4 -0
- package/dist/src/execution/session/turn-waiting-step.js +1 -0
- package/dist/src/execution/session/turn.d.ts +33 -2
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/session-callback-request.js +1 -1
- package/dist/src/execution/session-event-stream.d.ts +33 -0
- package/dist/src/execution/session-event-stream.js +1 -0
- package/dist/src/execution/session-inbox/inbox.d.ts +2 -0
- package/dist/src/execution/session-inbox/inbox.js +1 -1
- package/dist/src/execution/session-inbox/protocol.js +1 -1
- package/dist/src/execution/session-inbox/release-step.js +1 -1
- package/dist/src/execution/session-inbox/resume.js +1 -1
- package/dist/src/execution/session-workflow-tool-run.d.ts +11 -2
- package/dist/src/execution/session-workflow-tool-run.js +1 -1
- package/dist/src/execution/session.d.ts +0 -1
- package/dist/src/execution/session.js +2 -2
- package/dist/src/execution/settle-cancelled-turn-step.d.ts +21 -9
- package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
- package/dist/src/execution/stable-workflow-names.d.ts +0 -1
- package/dist/src/execution/stable-workflow-names.js +1 -1
- package/dist/src/execution/tasks/calls.d.ts +42 -0
- package/dist/src/execution/tasks/calls.js +1 -0
- package/dist/src/execution/tasks/model-step.d.ts +58 -0
- package/dist/src/execution/tasks/model-step.js +1 -0
- package/dist/src/execution/tasks/render.d.ts +66 -0
- package/dist/src/execution/tasks/render.js +8 -0
- package/dist/src/execution/tasks/session.d.ts +19 -0
- package/dist/src/execution/tasks/session.js +1 -0
- package/dist/src/execution/tasks/start.d.ts +34 -0
- package/dist/src/execution/tasks/start.js +1 -0
- package/dist/src/execution/tasks/steps.d.ts +31 -0
- package/dist/src/execution/tasks/steps.js +1 -0
- package/dist/src/execution/tasks/table.d.ts +192 -0
- package/dist/src/execution/tasks/table.js +1 -0
- package/dist/src/execution/tasks/task-id-input.d.ts +19 -0
- package/dist/src/execution/tasks/task-id-input.js +1 -0
- package/dist/src/execution/tasks/tool-entry-point.d.ts +11 -0
- package/dist/src/execution/tasks/tool-entry-point.js +1 -0
- package/dist/src/execution/tasks/workflow-target.d.ts +2 -0
- package/dist/src/execution/tasks/workflow-target.js +1 -1
- package/dist/src/execution/terminal-session-completion-step.js +1 -1
- package/dist/src/execution/terminal-session-failure-step.js +1 -1
- package/dist/src/execution/terminate-child-sessions-step.d.ts +2 -9
- package/dist/src/execution/terminate-child-sessions-step.js +1 -1
- package/dist/src/execution/tool-auth.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.d.ts +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/execution/tools/agent-router.d.ts +1 -1
- package/dist/src/execution/tools/agent-router.js +1 -1
- package/dist/src/execution/tools/connection-approval.d.ts +25 -0
- package/dist/src/execution/tools/connection-approval.js +1 -0
- package/dist/src/execution/tools/connection-search-rank.d.ts +21 -0
- package/dist/src/execution/tools/connection-search-rank.js +1 -0
- package/dist/src/execution/tools/connection-target.d.ts +13 -0
- package/dist/src/execution/tools/connection-target.js +1 -0
- package/dist/src/execution/tools/connection-tools.d.ts +10 -0
- package/dist/src/execution/tools/connection-tools.js +2 -0
- package/dist/src/execution/tools/load-skill.js +1 -1
- package/dist/src/execution/tools/workflow/answer.d.ts +10 -4
- package/dist/src/execution/tools/workflow/answer.js +1 -1
- package/dist/src/execution/tools/workflow/ask.d.ts +73 -10
- package/dist/src/execution/tools/workflow/ask.js +1 -1
- package/dist/src/execution/tools/workflow/body.d.ts +60 -19
- package/dist/src/execution/tools/workflow/body.js +1 -1
- package/dist/src/execution/tools/workflow/cancel.d.ts +7 -2
- package/dist/src/execution/tools/workflow/cancel.js +1 -1
- package/dist/src/execution/tools/workflow/emit-workflow-tool-run-report-step.d.ts +10 -4
- package/dist/src/execution/tools/workflow/emit-workflow-tool-run-report-step.js +1 -1
- package/dist/src/execution/tools/workflow/{background.d.ts → harness-definition.d.ts} +6 -6
- package/dist/src/execution/tools/workflow/harness-definition.js +1 -0
- package/dist/src/execution/tools/workflow/interrupt.d.ts +6 -0
- package/dist/src/execution/tools/workflow/interrupt.js +1 -0
- package/dist/src/execution/tools/workflow/messages.d.ts +135 -10
- package/dist/src/execution/tools/workflow/messages.js +1 -1
- package/dist/src/execution/tools/workflow/owner-inbox.js +1 -1
- package/dist/src/execution/tools/workflow/owner.d.ts +15 -4
- package/dist/src/execution/tools/workflow/owner.js +1 -1
- package/dist/src/execution/tools/workflow/serve.d.ts +3 -0
- package/dist/src/execution/tools/workflow/serve.js +1 -0
- package/dist/src/execution/tools/workflow/start.d.ts +18 -11
- package/dist/src/execution/tools/workflow/start.js +1 -1
- package/dist/src/execution/tools/workflow/step-execution.js +1 -1
- package/dist/src/execution/tools/workflow/step.js +1 -1
- package/dist/src/execution/tools/workflow/types.d.ts +0 -10
- package/dist/src/execution/tools/workflow/withdraw-step.d.ts +31 -0
- package/dist/src/execution/tools/workflow/withdraw-step.js +1 -0
- package/dist/src/execution/tools/workflow/workflow-owner-blocking.d.ts +3 -5
- package/dist/src/execution/tools/workflow/workflow-owner-blocking.js +1 -1
- package/dist/src/execution/tools/workflow/workflow.d.ts +3 -3
- package/dist/src/execution/tools/workflow/workflow.js +1 -1
- package/dist/src/execution/web-fetch/request.js +1 -1
- package/dist/src/execution/workflow-callback-url.d.ts +0 -5
- package/dist/src/execution/workflow-callback-url.js +1 -1
- package/dist/src/execution/workflow-runtime.d.ts +3 -5
- package/dist/src/execution/workflow-runtime.js +1 -1
- package/dist/src/execution/workflow-webhook-route.js +1 -1
- package/dist/src/extensions/code/extension/lib/connect-authentication.js +1 -1
- package/dist/src/extensions/code/extension/lib/github-shell.js +1 -1
- package/dist/src/extensions/code/extension/lib/prwatch-github.js +1 -1
- package/dist/src/extensions/code/extension/lib/sandbox.d.ts +3 -2
- package/dist/src/extensions/code/extension/lib/sandbox.js +1 -1
- package/dist/src/extensions/code/extension/lib/signed-commit.d.ts +1 -1
- package/dist/src/extensions/code/extension/lib/signed-commit.js +2 -2
- package/dist/src/extensions/code/tools.d.ts +2 -1
- package/dist/src/extensions/code/tools.js +1 -1
- package/dist/src/framework/sources/modules/agent.d.ts +1 -0
- package/dist/src/framework/sources/modules/agent.js +1 -1
- package/dist/src/framework/sources/registry.js +1 -1
- package/dist/src/harness/action-presentation.js +1 -1
- package/dist/src/harness/action-result-helpers.d.ts +1 -0
- package/dist/src/harness/action-result-helpers.js +1 -1
- package/dist/src/harness/advertised-tools.d.ts +1 -1
- package/dist/src/harness/advertised-tools.js +1 -1
- package/dist/src/harness/announcements.d.ts +22 -0
- package/dist/src/harness/announcements.js +1 -0
- package/dist/src/harness/approval-candidates.d.ts +10 -2
- package/dist/src/harness/approval-candidates.js +1 -1
- package/dist/src/harness/approval-delivery-coordinator.d.ts +4 -5
- package/dist/src/harness/approval-delivery-coordinator.js +1 -1
- package/dist/src/harness/approval-recheck.d.ts +7 -0
- package/dist/src/harness/approval-recheck.js +1 -0
- package/dist/src/harness/authorization-event-fields.d.ts +13 -0
- package/dist/src/harness/authorization-event-fields.js +1 -0
- package/dist/src/harness/authorization.d.ts +2 -1
- package/dist/src/harness/authorization.js +1 -1
- package/dist/src/harness/coordination.d.ts +31 -27
- package/dist/src/harness/coordination.js +1 -1
- package/dist/src/harness/current-messages.d.ts +6 -1
- package/dist/src/harness/current-messages.js +1 -1
- package/dist/src/harness/emission.d.ts +7 -1
- package/dist/src/harness/emission.js +1 -1
- package/dist/src/harness/execute-tool.d.ts +4 -15
- package/dist/src/harness/hitl/session-limit-input-requests.d.ts +2 -0
- package/dist/src/harness/hitl/session-limit-input-requests.js +1 -1
- package/dist/src/harness/input-request-resolution.d.ts +5 -2
- package/dist/src/harness/input-request-resolution.js +1 -1
- package/dist/src/harness/input-requests.js +1 -1
- package/dist/src/harness/messages.d.ts +11 -3
- package/dist/src/harness/messages.js +1 -1
- package/dist/src/harness/nested-actions.d.ts +23 -0
- package/dist/src/harness/nested-actions.js +1 -0
- package/dist/src/harness/pending-input-batches.d.ts +8 -6
- package/dist/src/harness/pending-input-batches.js +1 -1
- package/dist/src/harness/provider-tool-history.d.ts +7 -2
- package/dist/src/harness/provider-tool-history.js +1 -1
- package/dist/src/harness/proxy-input-requests.d.ts +41 -36
- package/dist/src/harness/proxy-input-requests.js +1 -1
- package/dist/src/harness/session-limit-enforcement.js +1 -1
- package/dist/src/harness/stale-input-responses.js +1 -1
- package/dist/src/harness/step-hooks.js +1 -1
- package/dist/src/harness/tool-loop.js +2 -2
- package/dist/src/harness/tool-model-output.js +1 -1
- package/dist/src/harness/tool-presentation.js +1 -1
- package/dist/src/harness/tools.d.ts +1 -5
- package/dist/src/harness/tools.js +1 -1
- package/dist/src/harness/turn-tag-state.d.ts +6 -5
- package/dist/src/harness/types.d.ts +7 -15
- package/dist/src/harness/workflow-dispatch.d.ts +30 -0
- package/dist/src/harness/workflow-dispatch.js +1 -0
- package/dist/src/harness/workflow-tool-runs.d.ts +5 -65
- package/dist/src/harness/workflow-tool-runs.js +1 -1
- package/dist/src/instrumentation/ai-sdk-hook-bridge.js +1 -1
- package/dist/src/instrumentation/lifecycle.d.ts +5 -2
- package/dist/src/instrumentation/lifecycle.js +1 -1
- package/dist/src/instrumentation/native-events.d.ts +0 -7
- package/dist/src/instrumentation/native-events.js +1 -1
- package/dist/src/instrumentation/runtime.d.ts +1 -4
- package/dist/src/instrumentation/runtime.js +1 -1
- package/dist/src/instrumentation/state.d.ts +0 -6
- package/dist/src/instrumentation/state.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/schema-backed.d.ts +10 -0
- package/dist/src/internal/authored-definition/schema-backed.js +1 -1
- package/dist/src/internal/authored-module-loader.d.ts +12 -6
- package/dist/src/internal/authored-module-loader.js +2 -2
- package/dist/src/internal/authored-module-map-loader.js +1 -1
- package/dist/src/internal/authored-package-boundary.d.ts +3 -0
- package/dist/src/internal/authored-package-boundary.js +1 -1
- package/dist/src/internal/bundler/extension-mount-plugin.d.ts +14 -0
- package/dist/src/internal/bundler/extension-mount-plugin.js +1 -0
- package/dist/src/internal/bundler/extension-scope-plugin.d.ts +8 -11
- package/dist/src/internal/bundler/extension-scope-plugin.js +2 -3
- package/dist/src/internal/invocation/workflow-execution.d.ts +2 -2
- package/dist/src/internal/invocation/workflow-execution.js +1 -1
- package/dist/src/internal/mount-state.d.ts +1 -0
- package/dist/src/internal/mount-state.js +1 -0
- package/dist/src/internal/nitro/dev-runtime-artifacts-retention.d.ts +2 -2
- package/dist/src/internal/nitro/dev-runtime-artifacts-retention.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +2 -4
- package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-generation-metadata.d.ts +13 -0
- package/dist/src/internal/nitro/dev-runtime-generation-metadata.js +1 -0
- package/dist/src/internal/nitro/development-generation.d.ts +2 -0
- package/dist/src/internal/nitro/development-generation.js +1 -1
- package/dist/src/internal/nitro/host/build-application.js +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.d.ts +1 -0
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.js +1 -1
- package/dist/src/internal/nitro/host/dev-host-fingerprint.js +1 -1
- package/dist/src/internal/nitro/host/dev-workflow-world-setup.d.ts +1 -0
- package/dist/src/internal/nitro/host/dev-workflow-world-setup.js +1 -1
- package/dist/src/internal/nitro/host/extension-capability-requirements.js +1 -1
- package/dist/src/internal/nitro/host/start-development-server.js +1 -1
- package/dist/src/internal/nitro/host/types.d.ts +2 -0
- package/dist/src/internal/nitro/host/workspace-extensions.js +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.js +1 -1
- package/dist/src/internal/node-esm-compat-banner.js +1 -1
- package/dist/src/internal/workflow/cancel-expired-development-run.d.ts +2 -0
- package/dist/src/internal/workflow/cancel-expired-development-run.js +1 -0
- package/dist/src/internal/workflow/development-runtime-compatibility.d.ts +12 -0
- package/dist/src/internal/workflow/development-runtime-compatibility.js +1 -0
- package/dist/src/internal/workflow/development-world-client.js +1 -1
- package/dist/src/internal/workflow/development-world-protocol.d.ts +9 -0
- package/dist/src/internal/workflow/development-world-server.d.ts +2 -0
- package/dist/src/internal/workflow/development-world-server.js +1 -1
- package/dist/src/internal/workflow/is-inactive-workflow-run-error.d.ts +2 -0
- package/dist/src/internal/workflow/is-inactive-workflow-run-error.js +1 -0
- package/dist/src/internal/workflow-bundle/authored-workflow-directives.d.ts +4 -3
- package/dist/src/internal/workflow-bundle/authored-workflow-directives.js +1 -1
- package/dist/src/internal/workflow-bundle/builder.js +1 -1
- package/dist/src/internal/workflow-bundle/dynamic-capability-transform-plugin.js +1 -1
- package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -1
- package/dist/src/models/auto.d.ts +6 -0
- package/dist/src/models/auto.js +2 -2
- package/dist/src/protocol/message-version.d.ts +1 -0
- package/dist/src/protocol/message-version.js +1 -1
- package/dist/src/protocol/message.d.ts +126 -67
- package/dist/src/protocol/message.js +2 -2
- package/dist/src/protocol/remote-agent-protocol.d.ts +16 -0
- package/dist/src/protocol/remote-agent-protocol.js +1 -0
- package/dist/src/protocol/routes.d.ts +0 -6
- package/dist/src/protocol/routes.js +1 -1
- package/dist/src/protocol/task-tools.d.ts +21 -0
- package/dist/src/protocol/task-tools.js +1 -0
- package/dist/src/public/channels/auth.js +1 -1
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.d.ts +25 -16
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +2 -2
- package/dist/src/public/channels/chat-sdk/index.d.ts +1 -1
- package/dist/src/public/channels/chat-sdk/input-actions.d.ts +8 -0
- package/dist/src/public/channels/chat-sdk/input-actions.js +1 -0
- package/dist/src/public/channels/index.d.ts +1 -1
- package/dist/src/public/channels/linq/linqChannel.js +1 -1
- package/dist/src/public/channels/photon/photonIMessageChannel.js +1 -1
- package/dist/src/public/channels/slack/action-status.d.ts +11 -12
- package/dist/src/public/channels/slack/action-status.js +1 -1
- package/dist/src/public/channels/slack/api.js +1 -1
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/auth.d.ts +3 -0
- package/dist/src/public/channels/slack/auth.js +1 -1
- package/dist/src/public/channels/slack/connections.d.ts +6 -6
- package/dist/src/public/channels/slack/connections.js +1 -1
- package/dist/src/public/channels/slack/defaults.d.ts +13 -19
- package/dist/src/public/channels/slack/defaults.js +4 -4
- package/dist/src/public/channels/slack/hitl.d.ts +22 -13
- package/dist/src/public/channels/slack/hitl.js +2 -2
- package/dist/src/public/channels/slack/index.d.ts +4 -3
- package/dist/src/public/channels/slack/index.js +1 -1
- package/dist/src/public/channels/slack/input-response.d.ts +1 -5
- package/dist/src/public/channels/slack/input-response.js +1 -1
- package/dist/src/public/channels/slack/interaction-cards.js +1 -1
- package/dist/src/public/channels/slack/interactions.js +1 -1
- package/dist/src/public/channels/slack/renderers.d.ts +76 -0
- package/dist/src/public/channels/slack/renderers.js +1 -0
- package/dist/src/public/channels/slack/session-operations.d.ts +6 -0
- package/dist/src/public/channels/slack/session-operations.js +1 -1
- package/dist/src/public/channels/slack/slackChannel.d.ts +47 -103
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/channels/slack/task-card.d.ts +24 -0
- package/dist/src/public/channels/slack/task-card.js +1 -0
- package/dist/src/public/channels/telegram/hitl.d.ts +7 -1
- package/dist/src/public/channels/telegram/hitl.js +2 -1
- package/dist/src/public/channels/telegram/state.js +1 -1
- package/dist/src/public/channels/telegram/telegramChannel.d.ts +5 -0
- package/dist/src/public/channels/telegram/telegramChannel.js +1 -1
- package/dist/src/public/definitions/channel.d.ts +6 -1
- package/dist/src/public/definitions/channel.js +1 -1
- package/dist/src/public/definitions/connections/mcp.d.ts +4 -6
- package/dist/src/public/definitions/connections/openapi.d.ts +7 -8
- package/dist/src/public/definitions/extension.d.ts +2 -2
- package/dist/src/public/definitions/extension.js +1 -1
- package/dist/src/public/definitions/hook.d.ts +16 -4
- package/dist/src/public/definitions/state.d.ts +4 -2
- package/dist/src/public/definitions/state.js +1 -1
- package/dist/src/public/memory/index.d.ts +0 -1
- package/dist/src/public/models/openai/index.d.ts +1 -1
- package/dist/src/public/models/openai/index.js +1 -1
- package/dist/src/public/schedules/index.d.ts +1 -0
- package/dist/src/public/schedules/index.js +1 -1
- package/dist/src/public/server/index.d.ts +28 -0
- package/dist/src/public/server/index.js +1 -0
- package/dist/src/public/tools/index.d.ts +3 -2
- package/dist/src/public/tools/index.js +1 -1
- package/dist/src/public/tools/no-reply.d.ts +1 -0
- package/dist/src/public/tools/no-reply.js +1 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +6 -7
- package/dist/src/runtime/agent/bootstrap-model-utils.js +1 -1
- package/dist/src/runtime/agent/bootstrap.d.ts +0 -1
- package/dist/src/runtime/agent/bootstrap.js +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.js +1 -1
- package/dist/src/runtime/agent/mock-model-fixtures.d.ts +1 -1
- package/dist/src/runtime/agent/mock-model-fixtures.js +2 -2
- package/dist/src/runtime/channels/registry.js +1 -1
- package/dist/src/runtime/connections/mcp-client.d.ts +1 -2
- package/dist/src/runtime/connections/openapi-client.js +1 -1
- package/dist/src/runtime/connections/scoped-authorization.d.ts +1 -1
- package/dist/src/runtime/connections/scoped-authorization.js +1 -1
- package/dist/src/runtime/connections/tool-result.d.ts +27 -0
- package/dist/src/runtime/connections/tool-result.js +2 -0
- package/dist/src/runtime/connections/tool-signature.d.ts +14 -0
- package/dist/src/runtime/connections/tool-signature.js +1 -0
- package/dist/src/runtime/local-dev-capability.js +1 -1
- package/dist/src/runtime/prompt/compose.d.ts +1 -3
- package/dist/src/runtime/prompt/compose.js +3 -3
- package/dist/src/runtime/resolve-agent-graph.js +1 -1
- package/dist/src/runtime/resolve-tool.js +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.js +1 -1
- package/dist/src/runtime/sessions/runtime-context-keys.js +1 -1
- package/dist/src/runtime/sessions/turn.d.ts +1 -16
- package/dist/src/runtime/subagents/dynamic-remote-agent-config.js +1 -1
- package/dist/src/runtime/subagents/registry.js +1 -1
- package/dist/src/runtime/subagents/workflow-reference.d.ts +6 -3
- package/dist/src/runtime/subagents/workflow-reference.js +1 -1
- package/dist/src/runtime/subagents/workflow.d.ts +12 -6
- package/dist/src/runtime/subagents/workflow.js +1 -1
- package/dist/src/runtime/tools/registry.js +1 -1
- package/dist/src/self-modification/extension/classify-registry-item.d.ts +3 -0
- package/dist/src/self-modification/extension/classify-registry-item.js +1 -1
- package/dist/src/self-modification/extension/subagents/agent/agent.d.ts +1 -1
- package/dist/src/self-modification/extension/subagents/agent/agent.js +1 -1
- package/dist/src/self-modification/extension/subagents/agent/instructions.js +7 -7
- package/dist/src/self-modification/extension/subagents/agent/tools/registry_add.js +1 -1
- package/dist/src/self-modification/extension/subagents/agent/tools/search_registry.d.ts +2 -0
- package/dist/src/self-modification/extension/subagents/agent/tools/search_registry.js +1 -1
- package/dist/src/self-modification/extension/subagents/agent/tools/search_traces.js +1 -1
- package/dist/src/self-modification/scaffold.d.ts +2 -0
- package/dist/src/self-modification/scaffold.js +7 -0
- package/dist/src/self-modification/setup.js +1 -7
- package/dist/src/setup/boxes/model-capabilities.d.ts +2 -2
- package/dist/src/setup/boxes/model-capabilities.js +1 -1
- package/dist/src/setup/boxes/select-model.js +1 -1
- package/dist/src/setup/integrations/shopify/templates.d.ts +1 -1
- package/dist/src/setup/integrations/shopify/templates.js +31 -19
- package/dist/src/setup/integrations/web/setup.d.ts +0 -2
- package/dist/src/setup/integrations/web/setup.js +3 -3
- package/dist/src/setup/scaffold/create/agent-paths.d.ts +5 -0
- package/dist/src/setup/scaffold/create/agent-paths.js +1 -0
- package/dist/src/setup/scaffold/create/instructions-template.d.ts +1 -0
- package/dist/src/setup/scaffold/create/instructions-template.js +8 -0
- package/dist/src/setup/scaffold/create/project.js +3 -10
- package/dist/src/setup/scaffold/create/web-template.d.ts +1 -1
- package/dist/src/setup/scaffold/create/web-template.js +1 -1
- package/dist/src/shared/action-request-name.d.ts +3 -0
- package/dist/src/shared/action-request-name.js +1 -0
- package/dist/src/shared/action-types.d.ts +49 -21
- package/dist/src/shared/action-types.js +1 -1
- package/dist/src/shared/agent-definition.d.ts +0 -7
- package/dist/src/shared/chatgpt-model.d.ts +1 -1
- package/dist/src/shared/chatgpt-model.js +1 -1
- package/dist/src/shared/connection-types.d.ts +2 -3
- package/dist/src/shared/default-agent-model.d.ts +10 -1
- package/dist/src/shared/default-agent-model.js +1 -1
- package/dist/src/shared/extension-mount.d.ts +2 -0
- package/dist/src/shared/extension-mount.js +1 -0
- package/dist/src/shared/format-duration.d.ts +2 -0
- package/dist/src/shared/format-duration.js +1 -0
- package/dist/src/shared/gateway-model-catalog.d.ts +25 -2
- package/dist/src/shared/gateway-model-catalog.js +1 -1
- package/dist/src/shared/input.d.ts +1 -0
- package/dist/src/shared/memory-state.d.ts +1 -0
- package/dist/src/shared/memory-state.js +1 -1
- package/dist/src/shared/model-helper.d.ts +2 -2
- package/dist/src/shared/model-helper.js +1 -1
- package/dist/src/shared/model-summary.d.ts +2 -6
- package/dist/src/shared/model-summary.js +1 -1
- package/dist/src/shared/presentation-text.d.ts +5 -0
- package/dist/src/shared/presentation-text.js +1 -1
- package/dist/src/shared/serialized-observability-state.d.ts +0 -4
- package/dist/src/shared/serialized-observability-state.js +1 -1
- package/dist/src/shared/value-delta.d.ts +39 -0
- package/dist/src/shared/value-delta.js +1 -0
- package/dist/src/subagents/adapter-state.d.ts +0 -2
- package/dist/src/subagents/adapter-state.js +1 -1
- package/dist/src/subagents/adapter.js +1 -1
- package/dist/src/subagents/callback-route.js +1 -1
- package/dist/src/subagents/event-proxy-step.d.ts +16 -29
- package/dist/src/subagents/event-proxy-step.js +1 -1
- package/dist/src/subagents/hitl-proxy.d.ts +35 -17
- package/dist/src/subagents/hitl-proxy.js +1 -1
- package/dist/src/subagents/invocation.d.ts +1 -2
- package/dist/src/subagents/parent-notification.d.ts +2 -1
- package/dist/src/subagents/parent-notification.js +1 -1
- package/dist/src/subagents/token-budget.d.ts +8 -9
- package/dist/src/subagents/token-budget.js +1 -1
- package/dist/src/subagents/tool.d.ts +6 -12
- package/dist/src/subagents/tool.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/behavior.d.ts +5 -5
- package/dist/src/tools/definition.d.ts +58 -14
- package/dist/src/tools/definition.js +1 -1
- package/dist/src/tools/durable-callbacks.d.ts +1 -1
- package/dist/src/tools/dynamic.d.ts +6 -0
- package/dist/src/tools/framework/agent-contract.d.ts +2 -5
- package/dist/src/tools/framework/agent-contract.js +1 -1
- package/dist/src/tools/framework/agent.d.ts +2 -5
- package/dist/src/tools/framework/agent.js +1 -1
- package/dist/src/tools/framework/connection-tools.d.ts +3 -0
- package/dist/src/tools/framework/connection-tools.js +1 -0
- package/dist/src/tools/provided/agent-router.d.ts +6 -3
- package/dist/src/tools/provided/agent-router.js +1 -1
- package/dist/src/{execution/tools → tools/provided}/ask-question-workflow.d.ts +3 -4
- package/dist/src/tools/provided/ask-question-workflow.js +1 -0
- package/dist/src/tools/provided/ask-question.d.ts +20 -5
- package/dist/src/tools/provided/ask-question.js +2 -1
- package/dist/src/tools/provided/interrupted.d.ts +18 -0
- package/dist/src/tools/provided/interrupted.js +1 -0
- package/dist/src/tools/provided/no-reply.d.ts +19 -0
- package/dist/src/tools/provided/no-reply.js +1 -0
- package/dist/src/tools/provided/sleep-workflow.d.ts +4 -0
- package/dist/src/tools/provided/sleep-workflow.js +1 -0
- package/dist/src/tools/provided/sleep.d.ts +11 -5
- package/dist/src/tools/provided/sleep.js +1 -1
- package/dist/src/tools/provided/task-cancel.d.ts +6 -0
- package/dist/src/tools/provided/task-cancel.js +1 -0
- package/dist/src/tools/provided/task-wait.d.ts +9 -0
- package/dist/src/tools/provided/task-wait.js +1 -0
- package/dist/src/tools/provided/workflow.d.ts +2 -2
- package/dist/src/tools/provided/workflow.js +1 -1
- package/dist/src/tools/schema-emission.d.ts +23 -0
- package/dist/src/tools/schema-emission.js +1 -0
- package/dist/src/tools/schema.d.ts +22 -8
- package/dist/src/tools/schema.js +1 -1
- package/dist/src/tools/workflow-definition.d.ts +187 -85
- package/dist/src/tools/workflow-definition.js +1 -1
- package/dist/src/tools/workflow-entry-point.d.ts +3 -0
- package/dist/src/tools/workflow-entry-point.js +1 -0
- package/dist/src/tracing/agent-action-instrumentation.d.ts +1 -3
- package/dist/src/tracing/agent-action-instrumentation.js +1 -1
- package/dist/src/tracing/agent-invocation-coordinator.d.ts +9 -18
- package/dist/src/tracing/agent-invocation-coordinator.js +1 -1
- package/dist/src/tracing/agent-otel-content.d.ts +0 -2
- package/dist/src/tracing/agent-otel-content.js +3 -3
- package/dist/src/tracing/agent-otel-provider.js +2 -2
- package/dist/src/tracing/agent-otel-runtime-context.d.ts +20 -0
- package/dist/src/tracing/agent-otel-runtime-context.js +1 -1
- package/dist/src/tracing/agent-otel-usage.js +1 -1
- package/dist/src/tracing/agent-span-contract.d.ts +1 -1
- package/dist/src/tracing/agent-span-contract.js +1 -1
- package/dist/src/tracing/agent-span-id-generator.d.ts +0 -1
- package/dist/src/tracing/agent-span-id-generator.js +1 -1
- package/dist/src/tracing/agent-trace-context-codec.d.ts +1 -2
- package/dist/src/tracing/agent-trace-context-codec.js +1 -1
- package/dist/src/tracing/agent-trace-context-store.d.ts +2 -27
- package/dist/src/tracing/agent-trace-context-store.js +1 -1
- package/dist/src/tracing/agent-trace-state.d.ts +1 -19
- package/dist/src/tracing/content-attributes.js +1 -1
- package/dist/src/tracing/install-instrumentation-runtime.js +1 -1
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +36 -13
- package/docs/channels/chat-sdk.mdx +15 -4
- package/docs/channels/custom.mdx +89 -17
- package/docs/channels/eve.mdx +1 -1
- package/docs/channels/mcp.mdx +1 -1
- package/docs/channels/overview.mdx +14 -56
- package/docs/channels/slack.mdx +230 -35
- package/docs/channels/telegram.mdx +2 -0
- package/docs/concepts/built-in-tools.md +36 -28
- package/docs/concepts/context-control.md +2 -2
- package/docs/concepts/execution-model-and-durability.mdx +10 -11
- package/docs/concepts/project-structure.mdx +1 -1
- package/docs/concepts/sessions-runs-and-streaming.md +67 -47
- package/docs/connections/mcp.mdx +4 -4
- package/docs/connections/openapi.mdx +2 -2
- package/docs/connections/overview.mdx +2 -2
- package/docs/evals/assertions.mdx +5 -5
- package/docs/evals/cases.mdx +1 -1
- package/docs/evals/reporters.mdx +6 -4
- package/docs/extensions.md +11 -2
- package/docs/guides/auth-and-route-protection.md +1 -1
- package/docs/guides/client/streaming.mdx +31 -11
- package/docs/guides/deployment/vercel.mdx +1 -1
- package/docs/guides/dev-tui.md +13 -3
- package/docs/guides/dynamic-capabilities.md +15 -10
- package/docs/guides/evaluate.md +29 -2
- package/docs/guides/frontend/overview.mdx +5 -7
- package/docs/guides/hooks.md +48 -12
- package/docs/guides/instrumentation/instrumentation.mdx +2 -0
- package/docs/guides/remote-agents.md +12 -14
- package/docs/guides/self-modification.md +10 -0
- package/docs/install-integrations.mdx +1 -1
- package/docs/instructions.mdx +1 -1
- package/docs/patterns/multi-tenant-approvals.md +1 -1
- package/docs/protocols/ucp.mdx +20 -16
- package/docs/reference/cli.md +96 -22
- package/docs/reference/typescript-api.md +43 -41
- package/docs/schedules.mdx +14 -34
- package/docs/subagents/index.mdx +24 -56
- package/docs/tools/human-in-the-loop.md +50 -13
- package/docs/tools/meta.json +1 -1
- package/docs/tools/overview.mdx +79 -59
- package/docs/tools/tasks-upgrade.md +201 -0
- package/docs/tools/tasks.md +315 -0
- package/docs/tools/workflows.mdx +368 -154
- package/package.json +41 -14
- package/dist/src/channel/activity-renderer.d.ts +0 -21
- package/dist/src/channel/activity-renderer.js +0 -1
- package/dist/src/channel/activity-sink.d.ts +0 -2
- package/dist/src/channel/activity-sink.js +0 -1
- package/dist/src/eve-channel/activity-observer-request.d.ts +0 -7
- package/dist/src/eve-channel/activity-observer-request.js +0 -1
- package/dist/src/eve-channel/delivery-policy-request.d.ts +0 -4
- package/dist/src/eve-channel/delivery-policy-request.js +0 -1
- package/dist/src/execution/activity-cohort.d.ts +0 -20
- package/dist/src/execution/activity-cohort.js +0 -1
- package/dist/src/execution/activity-collector.d.ts +0 -12
- package/dist/src/execution/activity-collector.js +0 -1
- package/dist/src/execution/activity-events.d.ts +0 -8
- package/dist/src/execution/activity-events.js +0 -1
- package/dist/src/execution/activity-route.d.ts +0 -2
- package/dist/src/execution/activity-route.js +0 -1
- package/dist/src/execution/activity-work-id.d.ts +0 -9
- package/dist/src/execution/activity-work-id.js +0 -1
- package/dist/src/execution/activity-work.d.ts +0 -30
- package/dist/src/execution/activity-work.js +0 -1
- package/dist/src/execution/cancel-indexed-session-tasks-step.d.ts +0 -7
- package/dist/src/execution/cancel-indexed-session-tasks-step.js +0 -1
- package/dist/src/execution/dispatch-action-failures.d.ts +0 -8
- package/dist/src/execution/dispatch-action-failures.js +0 -1
- package/dist/src/execution/dispatch-start-operation.d.ts +0 -15
- package/dist/src/execution/dispatch-start-operation.js +0 -1
- package/dist/src/execution/publish-channel-event.d.ts +0 -23
- package/dist/src/execution/publish-channel-event.js +0 -1
- package/dist/src/execution/scheduled-launch-delivery.d.ts +0 -7
- package/dist/src/execution/scheduled-launch-delivery.js +0 -1
- package/dist/src/execution/session/event-sink.d.ts +0 -26
- package/dist/src/execution/session/event-sink.js +0 -1
- package/dist/src/execution/session-activity-projection.d.ts +0 -16
- package/dist/src/execution/session-activity-projection.js +0 -1
- package/dist/src/execution/session-activity-renderer-step.d.ts +0 -15
- package/dist/src/execution/session-activity-renderer-step.js +0 -1
- package/dist/src/execution/session-activity.d.ts +0 -3
- package/dist/src/execution/session-activity.js +0 -1
- package/dist/src/execution/submit-activity.d.ts +0 -7
- package/dist/src/execution/submit-activity.js +0 -1
- package/dist/src/execution/task-event-callback.d.ts +0 -12
- package/dist/src/execution/task-event-callback.js +0 -1
- package/dist/src/execution/task-input-capability.d.ts +0 -4
- package/dist/src/execution/task-input-capability.js +0 -1
- package/dist/src/execution/task-input-response-route.d.ts +0 -2
- package/dist/src/execution/task-input-response-route.js +0 -1
- package/dist/src/execution/tasks/child/notify.d.ts +0 -44
- package/dist/src/execution/tasks/child/notify.js +0 -1
- package/dist/src/execution/tasks/parent/control-shared.d.ts +0 -23
- package/dist/src/execution/tasks/parent/control-shared.js +0 -1
- package/dist/src/execution/tasks/parent/delegate.d.ts +0 -35
- package/dist/src/execution/tasks/parent/delegate.js +0 -1
- package/dist/src/execution/tasks/parent/dispatch.d.ts +0 -22
- package/dist/src/execution/tasks/parent/dispatch.js +0 -1
- package/dist/src/execution/tasks/parent/hitl-proxy-steps.d.ts +0 -27
- package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +0 -1
- package/dist/src/execution/tasks/parent/run-parent.d.ts +0 -58
- package/dist/src/execution/tasks/parent/run-parent.js +0 -1
- package/dist/src/execution/tasks/parent/subagent-task-projection.d.ts +0 -26
- package/dist/src/execution/tasks/parent/subagent-task-projection.js +0 -1
- package/dist/src/execution/tasks/parent/task-cancel.d.ts +0 -12
- package/dist/src/execution/tasks/parent/task-cancel.js +0 -1
- package/dist/src/execution/tasks/parent/tool-execution.d.ts +0 -45
- package/dist/src/execution/tasks/parent/tool-execution.js +0 -1
- package/dist/src/execution/terminal-session-event.d.ts +0 -13
- package/dist/src/execution/terminal-session-event.js +0 -1
- package/dist/src/execution/tools/ask-question-workflow.js +0 -1
- package/dist/src/execution/tools/ask-question.d.ts +0 -19
- package/dist/src/execution/tools/ask-question.js +0 -2
- package/dist/src/execution/tools/connection-search.d.ts +0 -2
- package/dist/src/execution/tools/connection-search.js +0 -2
- package/dist/src/execution/tools/sleep-workflow.d.ts +0 -3
- package/dist/src/execution/tools/sleep-workflow.js +0 -1
- package/dist/src/execution/tools/sleep.d.ts +0 -10
- package/dist/src/execution/tools/sleep.js +0 -1
- package/dist/src/execution/tools/subagent/accept-event-step.d.ts +0 -7
- package/dist/src/execution/tools/subagent/accept-event-step.js +0 -1
- package/dist/src/execution/tools/subagent/emit-event-step.d.ts +0 -12
- package/dist/src/execution/tools/subagent/emit-event-step.js +0 -1
- package/dist/src/execution/tools/subagent/invoke-agent.d.ts +0 -42
- package/dist/src/execution/tools/subagent/invoke-agent.js +0 -1
- package/dist/src/execution/tools/subagent/invoke-preparation.d.ts +0 -44
- package/dist/src/execution/tools/subagent/invoke-preparation.js +0 -1
- package/dist/src/execution/tools/subagent/invoke-step.d.ts +0 -64
- package/dist/src/execution/tools/subagent/invoke-step.js +0 -1
- package/dist/src/execution/tools/subagent/receipt-identity.d.ts +0 -11
- package/dist/src/execution/tools/subagent/receipt-identity.js +0 -1
- package/dist/src/execution/tools/subagent/start.d.ts +0 -51
- package/dist/src/execution/tools/subagent/start.js +0 -1
- package/dist/src/execution/tools/subagent/steer.d.ts +0 -13
- package/dist/src/execution/tools/subagent/steer.js +0 -1
- package/dist/src/execution/tools/subagent/task-agent-requests.d.ts +0 -24
- package/dist/src/execution/tools/subagent/task-agent-requests.js +0 -1
- package/dist/src/execution/tools/subagent/task-cancel.d.ts +0 -10
- package/dist/src/execution/tools/subagent/task-cancel.js +0 -1
- package/dist/src/execution/tools/tasks.d.ts +0 -3
- package/dist/src/execution/tools/tasks.js +0 -1
- package/dist/src/execution/tools/workflow/background.js +0 -1
- package/dist/src/execution/tools/workflow/workflow-owner-background.d.ts +0 -14
- package/dist/src/execution/tools/workflow/workflow-owner-background.js +0 -1
- package/dist/src/extensions/code/extension/tools/computer_use.js +0 -1
- package/dist/src/harness/background-tools.d.ts +0 -45
- package/dist/src/harness/background-tools.js +0 -1
- package/dist/src/instrumentation/background-task-runtime.d.ts +0 -18
- package/dist/src/instrumentation/background-task-runtime.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-config@0.3.0/node_modules/@vercel/cli-config/dist/index.js +0 -21
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/envpath.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errors.js +0 -2
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errutils.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/exec.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/fsutils.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/lookup.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/safety.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/authorization.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/connector.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/installation.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/internal/base-url.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/internal/default-scopes.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/internal/env.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/internal/url-validation.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.3.3_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_a37674779346d612fa7d2ca9bd316494/node_modules/@vercel/connect/dist/token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/auth-errors.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/exchange-vercel-oidc-token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/get-context.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/get-vercel-oidc-token-sync.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/get-vercel-oidc-token-with-refresh.js +0 -2
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/index.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/oauth.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/token-error.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/token-io.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/token-util.js +0 -2
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/verify-vercel-oidc-token.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_oidc@3.8.9/node_modules/@vercel/oidc/dist/version.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js +0 -1
- package/dist/src/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js +0 -2
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js +0 -1
- package/dist/src/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js +0 -1
- package/dist/src/node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js +0 -1
- package/dist/src/node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js +0 -1
- package/dist/src/node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js +0 -1
- package/dist/src/node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js +0 -1
- package/dist/src/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js +0 -1
- package/dist/src/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js +0 -1
- package/dist/src/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/index.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/compact/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/compact/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/flattened/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/flattened/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/general/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwe/general/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwk/embedded.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwk/thumbprint.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwks/local.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwks/remote.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/compact/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/compact/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/flattened/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/flattened/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/general/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jws/general/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/produce.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/unsecured.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/jwt/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/export.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/generate_key_pair.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/generate_secret.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/key/import.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/aesgcmkw.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/buffer_utils.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/cek.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/check_iv_length.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/check_key_type.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/check_p2s.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/crypto_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/decrypt_key_management.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/encrypt_key_management.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/epoch.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/invalid_key_input.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/is_disjoint.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/is_jwk.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/is_object.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/iv.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/jwt_claims_set.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/private_symbols.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/secs.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/validate_algorithms.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/lib/validate_crit.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/aeskw.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/asn1.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/base64url.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/cbc_tag.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/check_cek_length.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/check_key_length.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/ciphers.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/decrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/digest.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/dsa_digest.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/ecdhes.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/encrypt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/fetch_jwks.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/generate.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/get_named_curve.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/get_sign_verify_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/hmac_digest.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/is_key_like.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/is_key_object.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/jwk_to_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/key_to_jwk.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/node_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/normalize_key.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/pbes2kw.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/random.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/rsaes.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/runtime.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/sign.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/timing_safe_equal.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/verify.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/runtime/webcrypto.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/base64url.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/decode_jwt.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/decode_protected_header.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/errors.js +0 -1
- package/dist/src/node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/cjs/util/runtime.js +0 -1
- package/dist/src/node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js +0 -1
- package/dist/src/node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js +0 -1
- package/dist/src/node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js +0 -1
- package/dist/src/node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js +0 -1
- package/dist/src/node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js +0 -1
- package/dist/src/node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js +0 -1
- package/dist/src/node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js +0 -1
- package/dist/src/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +0 -1
- package/dist/src/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +0 -1
- package/dist/src/node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js +0 -2
- package/dist/src/node_modules/.pnpm/which@2.0.2/node_modules/which/which.js +0 -1
- package/dist/src/protocol/activity.d.ts +0 -112
- package/dist/src/protocol/activity.js +0 -1
- package/dist/src/protocol/agent-handle-error.d.ts +0 -13
- package/dist/src/protocol/agent-handle-error.js +0 -1
- package/dist/src/public/channels/slack/activity-plan.d.ts +0 -5
- package/dist/src/public/channels/slack/activity-plan.js +0 -1
- package/dist/src/public/channels/slack/activity.d.ts +0 -63
- package/dist/src/public/channels/slack/activity.js +0 -2
- package/dist/src/public/tools/connection-search.d.ts +0 -1
- package/dist/src/public/tools/connection-search.js +0 -1
- package/dist/src/public/tools/task-cancel.d.ts +0 -1
- package/dist/src/public/tools/task-cancel.js +0 -1
- package/dist/src/runtime/prompt/connections.d.ts +0 -9
- package/dist/src/runtime/prompt/connections.js +0 -2
- package/dist/src/shared/boundary-hook-error.d.ts +0 -4
- package/dist/src/shared/boundary-hook-error.js +0 -1
- package/dist/src/shared/empty-delivery.d.ts +0 -3
- package/dist/src/shared/empty-delivery.js +0 -1
- package/dist/src/subagents/agent-handle-errors.d.ts +0 -25
- package/dist/src/subagents/agent-handle-errors.js +0 -1
- package/dist/src/subagents/callback-step.d.ts +0 -11
- package/dist/src/subagents/callback-step.js +0 -1
- package/dist/src/subagents/continuation-bundle.d.ts +0 -13
- package/dist/src/subagents/continuation-bundle.js +0 -1
- package/dist/src/subagents/handle-dispatch.d.ts +0 -65
- package/dist/src/subagents/handle-dispatch.js +0 -1
- package/dist/src/subagents/handles/operation-id.d.ts +0 -15
- package/dist/src/subagents/handles/operation-id.js +0 -1
- package/dist/src/subagents/handles/prompt.d.ts +0 -52
- package/dist/src/subagents/handles/prompt.js +0 -3
- package/dist/src/subagents/handles/query.d.ts +0 -41
- package/dist/src/subagents/handles/query.js +0 -1
- package/dist/src/subagents/handles/state-key.d.ts +0 -8
- package/dist/src/subagents/handles/state-key.js +0 -1
- package/dist/src/subagents/handles/store.d.ts +0 -217
- package/dist/src/subagents/handles/store.js +0 -1
- package/dist/src/subagents/handles/transitions.d.ts +0 -103
- package/dist/src/subagents/handles/transitions.js +0 -1
- package/dist/src/subagents/remote-dispatch.js +0 -1
- package/dist/src/subagents/start-local.d.ts +0 -29
- package/dist/src/subagents/start-local.js +0 -1
- package/dist/src/subagents/start-remote.d.ts +0 -21
- package/dist/src/subagents/start-remote.js +0 -1
- package/dist/src/tasks/delivery-context.d.ts +0 -32
- package/dist/src/tasks/delivery-context.js +0 -4
- package/dist/src/tasks/delivery-policy.d.ts +0 -14
- package/dist/src/tasks/delivery-policy.js +0 -1
- package/dist/src/tasks/json.d.ts +0 -88
- package/dist/src/tasks/json.js +0 -1
- package/dist/src/tasks/notification.d.ts +0 -10
- package/dist/src/tasks/notification.js +0 -1
- package/dist/src/tasks/task-id.d.ts +0 -31
- package/dist/src/tasks/task-id.js +0 -1
- package/dist/src/tasks/task-inbox-token.d.ts +0 -2
- package/dist/src/tasks/task-inbox-token.js +0 -1
- package/dist/src/tasks/transitions.d.ts +0 -17
- package/dist/src/tasks/transitions.js +0 -1
- package/dist/src/tasks/types.d.ts +0 -136
- package/dist/src/tasks/types.js +0 -1
- package/dist/src/tools/framework/connection-search.d.ts +0 -3
- package/dist/src/tools/framework/connection-search.js +0 -1
- package/dist/src/tools/framework/task-cancel.d.ts +0 -4
- package/dist/src/tools/framework/task-cancel.js +0 -1
- package/dist/src/tools/framework/task-contract.d.ts +0 -19
- package/dist/src/tools/framework/task-contract.js +0 -1
- package/dist/src/tools/native-definition.d.ts +0 -7
- package/dist/src/tools/native-definition.js +0 -1
- package/dist/src/tracing/agent-invocation-terminal.d.ts +0 -18
- package/dist/src/tracing/agent-invocation-terminal.js +0 -1
- /package/dist/src/{extensions/code → computer-use}/extension/lib/computer-use-driver-source.d.ts +0 -0
- /package/dist/src/{extensions/code → computer-use}/extension/lib/computer-use-driver-source.js +0 -0
- /package/dist/src/{extensions/code → computer-use}/extension/tools/computer_use.d.ts +0 -0
- /package/dist/src/execution/{tools/subagent → agent-sessions}/metadata.d.ts +0 -0
- /package/dist/src/execution/{tools/subagent → agent-sessions}/metadata.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, onScopeDispose, shallowRef } from "vue";
|
|
2
2
|
import { z } from "#compiled/zod/index.js";
|
|
3
|
-
import
|
|
3
|
+
import "ai";
|
|
4
4
|
import { Validator } from "#compiled/@cfworker/json-schema/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/protocol/routes.ts
|
|
@@ -23,8 +23,6 @@ const EVE_DEV_RUNTIME_ARTIFACTS_SUSPEND_ROUTE_PATH = `${EVE_DEV_RUNTIME_ARTIFACT
|
|
|
23
23
|
const EVE_DEV_RUNTIME_ARTIFACTS_RESUME_ROUTE_PATH = `${EVE_DEV_RUNTIME_ARTIFACTS_ROUTE_PATH}/resume`;
|
|
24
24
|
const EVE_CONNECTION_CALLBACK_ROUTE_PATTERN = `${EVE_ROUTE_PREFIX}/connections/:name/callback/:attemptId/:token`;
|
|
25
25
|
const EVE_CALLBACK_ROUTE_PATTERN = `${EVE_ROUTE_PREFIX}/callback/:token`;
|
|
26
|
-
const EVE_TASK_INPUT_ROUTE_PATTERN = `${EVE_ROUTE_PREFIX}/task-input/:token`;
|
|
27
|
-
const EVE_ACTIVITY_ROUTE_PATTERN = `${EVE_ROUTE_PREFIX}/activity/:token`;
|
|
28
26
|
function createEveSessionRoutePath(sessionId) {
|
|
29
27
|
return `${EVE_SESSION_ROUTE_PATH}/${encodeURIComponent(sessionId)}`;
|
|
30
28
|
}
|
|
@@ -84,6 +82,10 @@ function encodeBasicCredentials(username, password) {
|
|
|
84
82
|
return btoa(binaryString);
|
|
85
83
|
}
|
|
86
84
|
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/shared/extension-mount.ts
|
|
87
|
+
const mountIdSchema = z.string().min(1);
|
|
88
|
+
|
|
87
89
|
//#endregion
|
|
88
90
|
//#region src/client/agent-info-schema.ts
|
|
89
91
|
const owner = z.discriminatedUnion("kind", [
|
|
@@ -94,6 +96,7 @@ const owner = z.discriminatedUnion("kind", [
|
|
|
94
96
|
}).strict(),
|
|
95
97
|
z.object({
|
|
96
98
|
kind: z.literal("extension"),
|
|
99
|
+
mountId: mountIdSchema.optional(),
|
|
97
100
|
namespace: z.string(),
|
|
98
101
|
packageName: z.string()
|
|
99
102
|
}).strict()
|
|
@@ -105,10 +108,12 @@ const moduleBacking = z.discriminatedUnion("kind", [z.object({
|
|
|
105
108
|
sourceRoot: z.string()
|
|
106
109
|
}).strict().optional(),
|
|
107
110
|
kind: z.literal("filesystem"),
|
|
111
|
+
mountId: z.string().optional(),
|
|
108
112
|
sourcePath: z.string()
|
|
109
113
|
}).strict(), z.object({
|
|
110
114
|
dependencies: z.record(z.string(), z.string()).optional(),
|
|
111
115
|
kind: z.literal("programmatic"),
|
|
116
|
+
mountId: z.string().optional(),
|
|
112
117
|
moduleId: z.string(),
|
|
113
118
|
parameters: z.record(z.string(), z.unknown()).optional(),
|
|
114
119
|
registryId: z.string(),
|
|
@@ -315,13 +320,9 @@ const remoteAgent = entry.extend({
|
|
|
315
320
|
url: z.string().optional()
|
|
316
321
|
}).strict();
|
|
317
322
|
const kernelEffect = z.object({
|
|
318
|
-
action: z.enum([
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
"workflow-tool-call"
|
|
322
|
-
]).optional(),
|
|
323
|
-
audience: z.array(z.enum(["root-session", "delegated-task-child"])),
|
|
324
|
-
kind: z.enum(["dispatch", "provider-tool"]),
|
|
323
|
+
action: z.union([z.enum(["subagent-call", "workflow-tool-call"]), z.literal("unrecognized")]).catch("unrecognized").optional(),
|
|
324
|
+
audience: z.array(z.union([z.literal("root-session"), z.literal("unrecognized")]).catch("unrecognized")),
|
|
325
|
+
kind: z.union([z.enum(["dispatch", "provider-tool"]), z.literal("unrecognized")]).catch("unrecognized"),
|
|
325
326
|
sourceId: z.string()
|
|
326
327
|
}).strict();
|
|
327
328
|
const compositionDiagnostic = z.object({
|
|
@@ -687,11 +688,14 @@ function summarizeTurnEvents(events) {
|
|
|
687
688
|
let failure;
|
|
688
689
|
let message;
|
|
689
690
|
const inputRequests = [];
|
|
691
|
+
const pendingInputRequests = /* @__PURE__ */ new Set();
|
|
690
692
|
const pendingAuthorizations = /* @__PURE__ */ new Map();
|
|
691
693
|
for (const event of events) {
|
|
692
|
-
|
|
694
|
+
updatePendingInputRequests(pendingInputRequests, event);
|
|
695
|
+
if (isTurnSegmentBoundary(event, pendingInputRequests)) boundary = event;
|
|
693
696
|
if (isTurnFailureEvent(event)) failure = event;
|
|
694
697
|
if (isFinalMessageCompleted(event)) message = event.data.message ?? void 0;
|
|
698
|
+
if (event.type === "turn.waiting") message = void 0;
|
|
695
699
|
if (event.type === "input.requested") inputRequests.push(...event.data.requests);
|
|
696
700
|
if (event.type === "authorization.required") pendingAuthorizations.set(event.data.name, event.data);
|
|
697
701
|
if (event.type === "authorization.completed") pendingAuthorizations.delete(event.data.name);
|
|
@@ -702,9 +706,22 @@ function summarizeTurnEvents(events) {
|
|
|
702
706
|
inputRequests,
|
|
703
707
|
message,
|
|
704
708
|
pendingAuthorizations: [...pendingAuthorizations.values()],
|
|
705
|
-
status: boundary
|
|
709
|
+
status: summarizeBoundaryStatus(boundary)
|
|
706
710
|
};
|
|
707
711
|
}
|
|
712
|
+
function summarizeBoundaryStatus(boundary) {
|
|
713
|
+
if (boundary?.type === "session.waiting" || boundary?.type === "turn.waiting") return "waiting";
|
|
714
|
+
if (boundary?.type === "session.failed") return "failed";
|
|
715
|
+
return "completed";
|
|
716
|
+
}
|
|
717
|
+
function isTurnSegmentBoundary(event, pendingInputRequests) {
|
|
718
|
+
if (event.type === "turn.waiting") return pendingInputRequests.size > 0;
|
|
719
|
+
return isCurrentTurnBoundaryEvent(event);
|
|
720
|
+
}
|
|
721
|
+
function updatePendingInputRequests(pending, event) {
|
|
722
|
+
if (event.type === "input.requested") for (const request of event.data.requests) pending.add(request.requestId);
|
|
723
|
+
else if (event.type === "input.resolved") for (const resolution of event.data.resolutions) pending.delete(resolution.requestId);
|
|
724
|
+
}
|
|
708
725
|
function isFinalMessageCompleted(event) {
|
|
709
726
|
return event.type === "message.completed" && event.data.finishReason !== "tool-calls";
|
|
710
727
|
}
|
|
@@ -713,89 +730,6 @@ function updatePendingAuthorizations(pending, event) {
|
|
|
713
730
|
else if (event.type === "authorization.completed") pending.delete(event.data.name);
|
|
714
731
|
}
|
|
715
732
|
|
|
716
|
-
//#endregion
|
|
717
|
-
//#region src/client/output-schema.ts
|
|
718
|
-
function extractCompletedResult(events) {
|
|
719
|
-
let result;
|
|
720
|
-
for (const event of events) if (isResultCompletedEvent(event)) result = event.data.result;
|
|
721
|
-
return result;
|
|
722
|
-
}
|
|
723
|
-
function isResultCompletedEvent(event) {
|
|
724
|
-
return event.type === "result.completed";
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
//#endregion
|
|
728
|
-
//#region src/client/message-response.ts
|
|
729
|
-
const consumeResponse = Symbol("consumeMessageResponse");
|
|
730
|
-
const acceptedDeliveryId = Symbol("acceptedDeliveryId");
|
|
731
|
-
var MessageResponse = class {
|
|
732
|
-
sessionId;
|
|
733
|
-
[acceptedDeliveryId];
|
|
734
|
-
#cancelTurn;
|
|
735
|
-
#cancellation;
|
|
736
|
-
#consumed = false;
|
|
737
|
-
#createStream;
|
|
738
|
-
#settled = false;
|
|
739
|
-
#turnId = Promise.withResolvers();
|
|
740
|
-
constructor(input) {
|
|
741
|
-
this.#cancelTurn = input.cancelTurn;
|
|
742
|
-
this.sessionId = input.sessionId;
|
|
743
|
-
this[acceptedDeliveryId] = input.deliveryId;
|
|
744
|
-
this.#createStream = input.createStream;
|
|
745
|
-
}
|
|
746
|
-
cancel() {
|
|
747
|
-
if (this.#settled) return Promise.resolve({ status: "no_active_turn" });
|
|
748
|
-
if (this.#cancellation !== void 0) return this.#cancellation;
|
|
749
|
-
const cancellation = this.#turnId.promise.then((turnId) => turnId === void 0 ? { status: "no_active_turn" } : this.#cancelTurn(turnId));
|
|
750
|
-
this.#cancellation = cancellation;
|
|
751
|
-
cancellation.catch(() => {
|
|
752
|
-
if (!this.#settled && this.#cancellation === cancellation) this.#cancellation = void 0;
|
|
753
|
-
});
|
|
754
|
-
return cancellation;
|
|
755
|
-
}
|
|
756
|
-
async result() {
|
|
757
|
-
const events = [];
|
|
758
|
-
for await (const event of this) events.push(event);
|
|
759
|
-
const summary = summarizeTurnEvents(events);
|
|
760
|
-
return {
|
|
761
|
-
data: extractCompletedResult(events),
|
|
762
|
-
events,
|
|
763
|
-
inputRequests: summary.inputRequests,
|
|
764
|
-
message: summary.message,
|
|
765
|
-
sessionId: this.sessionId,
|
|
766
|
-
status: summary.status
|
|
767
|
-
};
|
|
768
|
-
}
|
|
769
|
-
[Symbol.asyncIterator]() {
|
|
770
|
-
return this[consumeResponse]();
|
|
771
|
-
}
|
|
772
|
-
[consumeResponse](source) {
|
|
773
|
-
if (this.#consumed) throw new Error("MessageResponse has already been consumed.");
|
|
774
|
-
this.#consumed = true;
|
|
775
|
-
return this.#observeStream(source);
|
|
776
|
-
}
|
|
777
|
-
async *#observeStream(source) {
|
|
778
|
-
try {
|
|
779
|
-
for await (const event of this.#createStream(source)) {
|
|
780
|
-
if (event.type === "turn.started") this.#turnId.resolve(event.data.turnId);
|
|
781
|
-
else if (isCurrentTurnBoundaryEvent(event)) {
|
|
782
|
-
this.#settled = true;
|
|
783
|
-
this.#turnId.resolve(void 0);
|
|
784
|
-
}
|
|
785
|
-
yield event;
|
|
786
|
-
}
|
|
787
|
-
} finally {
|
|
788
|
-
this.#turnId.resolve(void 0);
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
function getMessageResponseDeliveryId(response) {
|
|
793
|
-
return response[acceptedDeliveryId];
|
|
794
|
-
}
|
|
795
|
-
function consumeMessageResponse(response, source) {
|
|
796
|
-
return response[consumeResponse](source);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
733
|
//#endregion
|
|
800
734
|
//#region src/protocol/message-version.ts
|
|
801
735
|
function normalizeMessageStreamEvent(version, event) {
|
|
@@ -804,7 +738,8 @@ function normalizeMessageStreamEvent(version, event) {
|
|
|
804
738
|
case "22":
|
|
805
739
|
case "23":
|
|
806
740
|
case "24": return normalizeLegacyMessageStreamEvent(version, event);
|
|
807
|
-
case "25":
|
|
741
|
+
case "25":
|
|
742
|
+
case "26": return validateDeltaMessageStreamEvent(version, event);
|
|
808
743
|
default: return assertNever(version);
|
|
809
744
|
}
|
|
810
745
|
}
|
|
@@ -853,26 +788,26 @@ function normalizeLegacyMessageStreamEvent(version, event) {
|
|
|
853
788
|
}
|
|
854
789
|
return event;
|
|
855
790
|
}
|
|
856
|
-
function
|
|
791
|
+
function validateDeltaMessageStreamEvent(version, event) {
|
|
857
792
|
if (event.type === "message.appended") {
|
|
858
|
-
|
|
859
|
-
assertUnsupportedAppendField(event.data, "messageOffset", "message");
|
|
860
|
-
assertUnsupportedAppendField(event.data, "messageSoFar", "message");
|
|
793
|
+
assertAppendDelta(event.data.messageDelta, "message", version);
|
|
794
|
+
assertUnsupportedAppendField(event.data, "messageOffset", "message", version);
|
|
795
|
+
assertUnsupportedAppendField(event.data, "messageSoFar", "message", version);
|
|
861
796
|
} else if (event.type === "reasoning.appended") {
|
|
862
|
-
|
|
863
|
-
assertUnsupportedAppendField(event.data, "reasoningOffset", "reasoning");
|
|
864
|
-
assertUnsupportedAppendField(event.data, "reasoningSoFar", "reasoning");
|
|
797
|
+
assertAppendDelta(event.data.reasoningDelta, "reasoning", version);
|
|
798
|
+
assertUnsupportedAppendField(event.data, "reasoningOffset", "reasoning", version);
|
|
799
|
+
assertUnsupportedAppendField(event.data, "reasoningSoFar", "reasoning", version);
|
|
865
800
|
} else if (event.type === "action.input.appended") {
|
|
866
|
-
|
|
867
|
-
assertUnsupportedAppendField(event.data, "inputTextOffset", "action input");
|
|
801
|
+
assertAppendDelta(event.data.inputTextDelta, "action input", version);
|
|
802
|
+
assertUnsupportedAppendField(event.data, "inputTextOffset", "action input", version);
|
|
868
803
|
}
|
|
869
804
|
return event;
|
|
870
805
|
}
|
|
871
|
-
function
|
|
872
|
-
if (typeof delta !== "string") throw new TypeError(`Invalid ${stream} append delta for stream version
|
|
806
|
+
function assertAppendDelta(delta, stream, version) {
|
|
807
|
+
if (typeof delta !== "string") throw new TypeError(`Invalid ${stream} append delta for stream version ${version}.`);
|
|
873
808
|
}
|
|
874
|
-
function assertUnsupportedAppendField(data, field, stream) {
|
|
875
|
-
if (field in data) throw new TypeError(`Invalid ${stream} append shape for stream version
|
|
809
|
+
function assertUnsupportedAppendField(data, field, stream, version) {
|
|
810
|
+
if (field in data) throw new TypeError(`Invalid ${stream} append shape for stream version ${version}.`);
|
|
876
811
|
}
|
|
877
812
|
function assertNever(value) {
|
|
878
813
|
throw new TypeError(`Unsupported message stream version: ${String(value)}.`);
|
|
@@ -973,7 +908,8 @@ const supportedMessageStreamVersions = {
|
|
|
973
908
|
"22": true,
|
|
974
909
|
"23": true,
|
|
975
910
|
"24": true,
|
|
976
|
-
"25": true
|
|
911
|
+
"25": true,
|
|
912
|
+
"26": true
|
|
977
913
|
};
|
|
978
914
|
function readMessageStreamVersion(headers) {
|
|
979
915
|
const version = headers.get(EVE_STREAM_VERSION_HEADER);
|
|
@@ -1255,6 +1191,120 @@ async function sleep(ms, signal) {
|
|
|
1255
1191
|
});
|
|
1256
1192
|
}
|
|
1257
1193
|
|
|
1194
|
+
//#endregion
|
|
1195
|
+
//#region src/client/agent-session.ts
|
|
1196
|
+
var ClientAgentSession = class {
|
|
1197
|
+
name;
|
|
1198
|
+
sessionId;
|
|
1199
|
+
taskId;
|
|
1200
|
+
#context;
|
|
1201
|
+
#streamPath;
|
|
1202
|
+
constructor(context, started) {
|
|
1203
|
+
this.#context = context;
|
|
1204
|
+
this.#streamPath = started.data.streamPath;
|
|
1205
|
+
this.name = started.data.name;
|
|
1206
|
+
this.sessionId = started.data.sessionId;
|
|
1207
|
+
this.taskId = started.data.taskId;
|
|
1208
|
+
}
|
|
1209
|
+
stream(options) {
|
|
1210
|
+
const startIndex = options?.startIndex ?? 0;
|
|
1211
|
+
if (options?.follow === false && startIndex < 0) throw new Error("agent(started).stream({ follow: false }) requires a nonnegative startIndex; a tail-relative cursor cannot be bounded.");
|
|
1212
|
+
return followStreamIterable({
|
|
1213
|
+
follow: options?.follow,
|
|
1214
|
+
host: this.#context.host,
|
|
1215
|
+
path: this.#streamPath,
|
|
1216
|
+
redirect: this.#context.redirect,
|
|
1217
|
+
resolveHeaders: () => this.#context.resolveHeaders(),
|
|
1218
|
+
signal: options?.signal,
|
|
1219
|
+
startIndex,
|
|
1220
|
+
streamReconnectPolicy: options?.streamReconnectPolicy
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
//#endregion
|
|
1226
|
+
//#region src/client/output-schema.ts
|
|
1227
|
+
function extractCompletedResult(events) {
|
|
1228
|
+
let result;
|
|
1229
|
+
for (const event of events) if (isResultCompletedEvent(event)) result = event.data.result;
|
|
1230
|
+
return result;
|
|
1231
|
+
}
|
|
1232
|
+
function isResultCompletedEvent(event) {
|
|
1233
|
+
return event.type === "result.completed";
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region src/client/message-response.ts
|
|
1238
|
+
const consumeResponse = Symbol("consumeMessageResponse");
|
|
1239
|
+
const acceptedDeliveryId = Symbol("acceptedDeliveryId");
|
|
1240
|
+
var MessageResponse = class {
|
|
1241
|
+
sessionId;
|
|
1242
|
+
[acceptedDeliveryId];
|
|
1243
|
+
#cancelTurn;
|
|
1244
|
+
#cancellation;
|
|
1245
|
+
#consumed = false;
|
|
1246
|
+
#createStream;
|
|
1247
|
+
#settled = false;
|
|
1248
|
+
#turnId = Promise.withResolvers();
|
|
1249
|
+
constructor(input) {
|
|
1250
|
+
this.#cancelTurn = input.cancelTurn;
|
|
1251
|
+
this.sessionId = input.sessionId;
|
|
1252
|
+
this[acceptedDeliveryId] = input.deliveryId;
|
|
1253
|
+
this.#createStream = input.createStream;
|
|
1254
|
+
}
|
|
1255
|
+
cancel() {
|
|
1256
|
+
if (this.#settled) return Promise.resolve({ status: "no_active_turn" });
|
|
1257
|
+
if (this.#cancellation !== void 0) return this.#cancellation;
|
|
1258
|
+
const cancellation = this.#turnId.promise.then((turnId) => turnId === void 0 ? { status: "no_active_turn" } : this.#cancelTurn(turnId));
|
|
1259
|
+
this.#cancellation = cancellation;
|
|
1260
|
+
cancellation.catch(() => {
|
|
1261
|
+
if (!this.#settled && this.#cancellation === cancellation) this.#cancellation = void 0;
|
|
1262
|
+
});
|
|
1263
|
+
return cancellation;
|
|
1264
|
+
}
|
|
1265
|
+
async result() {
|
|
1266
|
+
const events = [];
|
|
1267
|
+
for await (const event of this) events.push(event);
|
|
1268
|
+
const summary = summarizeTurnEvents(events);
|
|
1269
|
+
return {
|
|
1270
|
+
data: extractCompletedResult(events),
|
|
1271
|
+
events,
|
|
1272
|
+
inputRequests: summary.inputRequests,
|
|
1273
|
+
message: summary.message,
|
|
1274
|
+
sessionId: this.sessionId,
|
|
1275
|
+
status: summary.status
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
[Symbol.asyncIterator]() {
|
|
1279
|
+
return this[consumeResponse]();
|
|
1280
|
+
}
|
|
1281
|
+
[consumeResponse](source) {
|
|
1282
|
+
if (this.#consumed) throw new Error("MessageResponse has already been consumed.");
|
|
1283
|
+
this.#consumed = true;
|
|
1284
|
+
return this.#observeStream(source);
|
|
1285
|
+
}
|
|
1286
|
+
async *#observeStream(source) {
|
|
1287
|
+
try {
|
|
1288
|
+
for await (const event of this.#createStream(source)) {
|
|
1289
|
+
if (event.type === "turn.started") this.#turnId.resolve(event.data.turnId);
|
|
1290
|
+
else if (isCurrentTurnBoundaryEvent(event)) {
|
|
1291
|
+
this.#settled = true;
|
|
1292
|
+
this.#turnId.resolve(void 0);
|
|
1293
|
+
}
|
|
1294
|
+
yield event;
|
|
1295
|
+
}
|
|
1296
|
+
} finally {
|
|
1297
|
+
this.#turnId.resolve(void 0);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
function getMessageResponseDeliveryId(response) {
|
|
1302
|
+
return response[acceptedDeliveryId];
|
|
1303
|
+
}
|
|
1304
|
+
function consumeMessageResponse(response, source) {
|
|
1305
|
+
return response[consumeResponse](source);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1258
1308
|
//#endregion
|
|
1259
1309
|
//#region src/protocol/cancel-turn.ts
|
|
1260
1310
|
const CancelTurnResponseSchema = z.discriminatedUnion("status", [z.strictObject({
|
|
@@ -1436,11 +1486,42 @@ function isPlainObject(value) {
|
|
|
1436
1486
|
}
|
|
1437
1487
|
|
|
1438
1488
|
//#endregion
|
|
1439
|
-
//#region src/tools/schema.ts
|
|
1489
|
+
//#region src/tools/schema-emission.ts
|
|
1440
1490
|
const JSON_SCHEMA_TARGET = "draft-07";
|
|
1441
1491
|
function serializeOutputSchema(source) {
|
|
1442
|
-
|
|
1492
|
+
if (source === null || source === void 0) return source;
|
|
1493
|
+
return emitJsonSchema(source, "output");
|
|
1494
|
+
}
|
|
1495
|
+
function emitJsonSchema(source, direction) {
|
|
1496
|
+
const standard = getStandardSchemaProperties(source);
|
|
1497
|
+
if (standard === void 0) return withoutSchemaVersion(parseJsonObject(source));
|
|
1498
|
+
const emit = readJsonSchemaEmitter(standard, direction);
|
|
1499
|
+
if (emit === void 0) throw new Error(describeMissingEmitter(standard));
|
|
1500
|
+
return withoutSchemaVersion(parseJsonObject(emit({ target: JSON_SCHEMA_TARGET })));
|
|
1443
1501
|
}
|
|
1502
|
+
function readJsonSchemaEmitter(standard, direction) {
|
|
1503
|
+
const jsonSchema = standard.jsonSchema;
|
|
1504
|
+
if (typeof jsonSchema !== "object" || jsonSchema === null) return void 0;
|
|
1505
|
+
const emit = jsonSchema[direction];
|
|
1506
|
+
return typeof emit === "function" ? emit : void 0;
|
|
1507
|
+
}
|
|
1508
|
+
function getStandardSchemaProperties(value) {
|
|
1509
|
+
if (typeof value !== "object" || value === null || !("~standard" in value)) return void 0;
|
|
1510
|
+
const standard = value["~standard"];
|
|
1511
|
+
return typeof standard === "object" && standard !== null ? standard : void 0;
|
|
1512
|
+
}
|
|
1513
|
+
function describeMissingEmitter(standard) {
|
|
1514
|
+
const vendor = typeof standard.vendor === "string" ? standard.vendor : "unknown";
|
|
1515
|
+
if (vendor === "zod") return "Zod 3 cannot emit an output JSON Schema. Upgrade to Zod 4 or provide a plain JSON Schema object.";
|
|
1516
|
+
return `Standard Schema vendor "${vendor}" does not support JSON Schema conversion. Provide a Standard Schema implementation with JSON Schema conversion or a plain JSON Schema object.`;
|
|
1517
|
+
}
|
|
1518
|
+
function withoutSchemaVersion(schema) {
|
|
1519
|
+
const { $schema: _schemaVersion, ...canonical } = schema;
|
|
1520
|
+
return canonical;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region src/tools/schema.ts
|
|
1444
1525
|
function defineJsonSchema(schema, check) {
|
|
1445
1526
|
const emit = () => structuredClone(schema);
|
|
1446
1527
|
const toolSchema = { "~standard": {
|
|
@@ -1457,32 +1538,6 @@ function defineJsonSchema(schema, check) {
|
|
|
1457
1538
|
}
|
|
1458
1539
|
const plainJsonSchemas = /* @__PURE__ */ new WeakSet();
|
|
1459
1540
|
const UNSPECIFIED_INPUT_SCHEMA = defineJsonSchema({});
|
|
1460
|
-
function serializeSchema(source, direction) {
|
|
1461
|
-
if (source === null || source === void 0) return source;
|
|
1462
|
-
return toJsonObject(source, direction);
|
|
1463
|
-
}
|
|
1464
|
-
function toJsonObject(source, direction) {
|
|
1465
|
-
const standard = getStandardSchemaProperties(source);
|
|
1466
|
-
const jsonSchema = standard?.jsonSchema;
|
|
1467
|
-
const emit = typeof jsonSchema === "object" && jsonSchema !== null ? jsonSchema[direction] : void 0;
|
|
1468
|
-
const vendor = typeof standard?.vendor === "string" ? standard.vendor : "unknown";
|
|
1469
|
-
if (standard !== void 0 && typeof emit !== "function" && vendor === "zod") {
|
|
1470
|
-
if (direction === "input") {
|
|
1471
|
-
const schema = asSchema(source);
|
|
1472
|
-
const { $schema: _schemaVersion, ...canonical } = parseJsonObject(schema.jsonSchema);
|
|
1473
|
-
return canonical;
|
|
1474
|
-
}
|
|
1475
|
-
throw new Error("Zod 3 cannot emit an output JSON Schema. Upgrade to Zod 4 or provide a plain JSON Schema object.");
|
|
1476
|
-
}
|
|
1477
|
-
if (standard !== void 0 && typeof emit !== "function") throw new Error(`Standard Schema vendor "${vendor}" does not support JSON Schema conversion. Provide a Standard Schema implementation with JSON Schema conversion or a plain JSON Schema object.`);
|
|
1478
|
-
const { $schema: _schemaVersion, ...canonical } = standard === void 0 ? parseJsonObject(source) : parseJsonObject(emit({ target: JSON_SCHEMA_TARGET }));
|
|
1479
|
-
return canonical;
|
|
1480
|
-
}
|
|
1481
|
-
function getStandardSchemaProperties(value) {
|
|
1482
|
-
if (typeof value !== "object" || value === null || !("~standard" in value)) return void 0;
|
|
1483
|
-
const standard = value["~standard"];
|
|
1484
|
-
return typeof standard === "object" && standard !== null ? standard : void 0;
|
|
1485
|
-
}
|
|
1486
1541
|
function createJsonSchemaValidator(schema, check) {
|
|
1487
1542
|
let validator;
|
|
1488
1543
|
let warned = false;
|
|
@@ -1813,21 +1868,8 @@ var ClientSession = class ClientSession {
|
|
|
1813
1868
|
if (options?.follow === false && (options.startIndex ?? this.#state.streamIndex) < 0) throw new Error("stream({ follow: false }) requires a nonnegative startIndex; a tail-relative cursor cannot be bounded.");
|
|
1814
1869
|
return this.#streamAndAdvance(options);
|
|
1815
1870
|
}
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
if (typeof called.data.childStreamPath !== "string") throw new Error(`streamSubagent() requires a subagent.called event with childStreamPath, but call ${called.data.callId} has none. The event was recorded by an older eve version.`);
|
|
1819
|
-
const startIndex = options?.startIndex ?? 0;
|
|
1820
|
-
if (options?.follow === false && startIndex < 0) throw new Error("streamSubagent({ follow: false }) requires a nonnegative startIndex; a tail-relative cursor cannot be bounded.");
|
|
1821
|
-
return followStreamIterable({
|
|
1822
|
-
follow: options?.follow,
|
|
1823
|
-
host: this.#context.host,
|
|
1824
|
-
path: called.data.childStreamPath,
|
|
1825
|
-
redirect: this.#context.redirect,
|
|
1826
|
-
resolveHeaders: () => this.#context.resolveHeaders(),
|
|
1827
|
-
signal: options?.signal,
|
|
1828
|
-
startIndex,
|
|
1829
|
-
streamReconnectPolicy: options?.streamReconnectPolicy
|
|
1830
|
-
});
|
|
1871
|
+
agent(started) {
|
|
1872
|
+
return new ClientAgentSession(this.#context, started);
|
|
1831
1873
|
}
|
|
1832
1874
|
[followSession](options) {
|
|
1833
1875
|
return this.#streamAndAdvance({
|
|
@@ -1849,6 +1891,7 @@ var ClientSession = class ClientSession {
|
|
|
1849
1891
|
let started = deliveryId === void 0;
|
|
1850
1892
|
let reachedBoundary = false;
|
|
1851
1893
|
const pendingAuthorizations = /* @__PURE__ */ new Set();
|
|
1894
|
+
const pendingInputRequests = /* @__PURE__ */ new Set();
|
|
1852
1895
|
try {
|
|
1853
1896
|
for await (const event of source ?? this.#readStream({
|
|
1854
1897
|
headers: input.headers,
|
|
@@ -1867,7 +1910,8 @@ var ClientSession = class ClientSession {
|
|
|
1867
1910
|
started = true;
|
|
1868
1911
|
}
|
|
1869
1912
|
updatePendingAuthorizations(pendingAuthorizations, event);
|
|
1870
|
-
|
|
1913
|
+
updatePendingInputRequests(pendingInputRequests, event);
|
|
1914
|
+
reachedBoundary = isTurnSegmentBoundary(event, pendingInputRequests) && (event.type !== "session.waiting" || pendingAuthorizations.size === 0);
|
|
1871
1915
|
yield event;
|
|
1872
1916
|
if (reachedBoundary) break;
|
|
1873
1917
|
}
|
|
@@ -1985,7 +2029,6 @@ function createMessageBody(input, requireMessage) {
|
|
|
1985
2029
|
if (input.message !== void 0) body.message = input.message;
|
|
1986
2030
|
if (input.inputResponses !== void 0 && input.inputResponses.length > 0) body.inputResponses = input.inputResponses;
|
|
1987
2031
|
if (!requireMessage && input.message !== void 0 && input.turnPolicy !== void 0) body.turnPolicy = input.turnPolicy;
|
|
1988
|
-
if (input.message !== void 0 && input.taskDeliveryPolicy !== void 0) body.taskDeliveryPolicy = input.taskDeliveryPolicy;
|
|
1989
2032
|
if (input.clientContext !== void 0) body.clientContext = input.clientContext;
|
|
1990
2033
|
const outputSchema = serializeOutputSchema(input.outputSchema);
|
|
1991
2034
|
if (outputSchema !== void 0) body.outputSchema = outputSchema;
|
|
@@ -2286,12 +2329,14 @@ var EveAgentProjection = class {
|
|
|
2286
2329
|
//#region src/client/eve-agent-store-helpers.ts
|
|
2287
2330
|
function isSettledSessionTail(events) {
|
|
2288
2331
|
const tail = events.at(-1);
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
const
|
|
2293
|
-
|
|
2294
|
-
|
|
2332
|
+
if (tail === void 0) return false;
|
|
2333
|
+
const pendingAuthorizations = /* @__PURE__ */ new Set();
|
|
2334
|
+
const pendingInputRequests = /* @__PURE__ */ new Set();
|
|
2335
|
+
for (const event of events) {
|
|
2336
|
+
updatePendingAuthorizations(pendingAuthorizations, event);
|
|
2337
|
+
updatePendingInputRequests(pendingInputRequests, event);
|
|
2338
|
+
}
|
|
2339
|
+
return isTurnSegmentBoundary(tail, pendingInputRequests) && (tail.type !== "session.waiting" || pendingAuthorizations.size === 0);
|
|
2295
2340
|
}
|
|
2296
2341
|
function assertExclusiveTurnInput(input) {
|
|
2297
2342
|
if (input.message !== void 0 === (input.inputResponses !== void 0)) throw new Error("A turn requires exactly one of message or inputResponses.");
|
|
@@ -2343,11 +2388,13 @@ function createActiveTurn(cancel) {
|
|
|
2343
2388
|
async function followSteeredTurns(turn, events, isActive) {
|
|
2344
2389
|
while (turn.followUpDispatches.size > 0) await Promise.allSettled(turn.followUpDispatches);
|
|
2345
2390
|
if (turn.receivedFollowUps >= turn.acceptedFollowUps) return;
|
|
2391
|
+
const pendingInputRequests = /* @__PURE__ */ new Set();
|
|
2346
2392
|
for await (const event of events) {
|
|
2347
2393
|
if (!isActive()) return;
|
|
2348
2394
|
turn.receivedFollowUps += turn.receivedFollowUpEvents.get(event) ?? 0;
|
|
2349
2395
|
turn.receivedFollowUpEvents.delete(event);
|
|
2350
|
-
|
|
2396
|
+
updatePendingInputRequests(pendingInputRequests, event);
|
|
2397
|
+
if (isTurnSegmentBoundary(event, pendingInputRequests)) {
|
|
2351
2398
|
while (turn.followUpDispatches.size > 0) await Promise.allSettled(turn.followUpDispatches);
|
|
2352
2399
|
if (turn.receivedFollowUps >= turn.acceptedFollowUps) return;
|
|
2353
2400
|
}
|
|
@@ -2404,10 +2451,6 @@ var OptimisticMessageSubmissions = class {
|
|
|
2404
2451
|
this.#projection.append(event);
|
|
2405
2452
|
return;
|
|
2406
2453
|
}
|
|
2407
|
-
if (event.data.kind === "execution.background_task") {
|
|
2408
|
-
this.#projection.append(event);
|
|
2409
|
-
return;
|
|
2410
|
-
}
|
|
2411
2454
|
const matching = this.#matching(event);
|
|
2412
2455
|
if (matching.length === 0) {
|
|
2413
2456
|
this.#projection.append(event);
|
|
@@ -2425,7 +2468,7 @@ var OptimisticMessageSubmissions = class {
|
|
|
2425
2468
|
const pending = this.#pending.find((candidate) => candidate.id === submissionId);
|
|
2426
2469
|
if (pending === void 0) return void 0;
|
|
2427
2470
|
for (const event of events.slice(pending.eventStartIndex)) {
|
|
2428
|
-
if (event.type !== "message.received"
|
|
2471
|
+
if (event.type !== "message.received") continue;
|
|
2429
2472
|
const matching = this.#matching(event);
|
|
2430
2473
|
if (matching.some((candidate) => candidate.id === submissionId)) return this.#reconcile(matching, event, true);
|
|
2431
2474
|
}
|
|
@@ -2495,6 +2538,7 @@ var EveAgentStore = class {
|
|
|
2495
2538
|
#attached = false;
|
|
2496
2539
|
#stream;
|
|
2497
2540
|
#pendingAuthorizations = /* @__PURE__ */ new Set();
|
|
2541
|
+
#pendingInputRequests = /* @__PURE__ */ new Set();
|
|
2498
2542
|
#externalSession;
|
|
2499
2543
|
#optimistic;
|
|
2500
2544
|
#projection;
|
|
@@ -2523,7 +2567,7 @@ var EveAgentStore = class {
|
|
|
2523
2567
|
const initialEvents = [];
|
|
2524
2568
|
for (const event of init.initialEvents ?? []) {
|
|
2525
2569
|
if (this.#seenEvents.admit(event)) initialEvents.push(event);
|
|
2526
|
-
|
|
2570
|
+
this.#trackPendingRequests(event);
|
|
2527
2571
|
}
|
|
2528
2572
|
this.#events = initialEvents;
|
|
2529
2573
|
this.#projection = new EveAgentProjection(init.reducer, this.#events);
|
|
@@ -2681,7 +2725,7 @@ var EveAgentStore = class {
|
|
|
2681
2725
|
if (!this.#isActiveTurn(turn)) return;
|
|
2682
2726
|
turn.receivedFollowUps += turn.receivedFollowUpEvents.get(event) ?? 0;
|
|
2683
2727
|
turn.receivedFollowUpEvents.delete(event);
|
|
2684
|
-
if (
|
|
2728
|
+
if (this.#isSettledAt(event)) break;
|
|
2685
2729
|
}
|
|
2686
2730
|
}
|
|
2687
2731
|
await followSteeredTurns(turn, reader, () => this.#isActiveTurn(turn));
|
|
@@ -2720,6 +2764,7 @@ var EveAgentStore = class {
|
|
|
2720
2764
|
this.#stream?.close();
|
|
2721
2765
|
this.#stream = void 0;
|
|
2722
2766
|
this.#pendingAuthorizations.clear();
|
|
2767
|
+
this.#pendingInputRequests.clear();
|
|
2723
2768
|
const turn = this.#activeTurn;
|
|
2724
2769
|
this.#activeTurn = void 0;
|
|
2725
2770
|
turn?.resolveResponse(void 0);
|
|
@@ -2886,12 +2931,12 @@ var EveAgentStore = class {
|
|
|
2886
2931
|
#acceptServerEvent(event) {
|
|
2887
2932
|
if (!this.#seenEvents.admit(event)) return;
|
|
2888
2933
|
const wasStreaming = this.#status === "streaming";
|
|
2889
|
-
|
|
2934
|
+
this.#trackPendingRequests(event);
|
|
2890
2935
|
this.#events = [...this.#events, event];
|
|
2891
2936
|
this.#handleReconciliation(this.#messageSubmissions.apply(event));
|
|
2892
2937
|
this.#callbacks.onEvent?.(event);
|
|
2893
2938
|
this.#applyTerminalStreamFailure(event);
|
|
2894
|
-
const settled =
|
|
2939
|
+
const settled = this.#isSettledAt(event);
|
|
2895
2940
|
if (this.#status !== "resuming" && this.#error === void 0) {
|
|
2896
2941
|
if ("data" in event && "turnId" in event.data) this.#status = "streaming";
|
|
2897
2942
|
if (this.#activeTurn === void 0 && settled) this.#status = "ready";
|
|
@@ -2900,6 +2945,13 @@ var EveAgentStore = class {
|
|
|
2900
2945
|
if (this.#status !== "resuming") this.#publish();
|
|
2901
2946
|
if (this.#activeTurn === void 0 && wasStreaming && settled) this.#callbacks.onFinish?.(this.#snapshot);
|
|
2902
2947
|
}
|
|
2948
|
+
#trackPendingRequests(event) {
|
|
2949
|
+
updatePendingAuthorizations(this.#pendingAuthorizations, event);
|
|
2950
|
+
updatePendingInputRequests(this.#pendingInputRequests, event);
|
|
2951
|
+
}
|
|
2952
|
+
#isSettledAt(event) {
|
|
2953
|
+
return isTurnSegmentBoundary(event, this.#pendingInputRequests) && this.#pendingAuthorizations.size === 0;
|
|
2954
|
+
}
|
|
2903
2955
|
#handleReconciliation(reconciliation) {
|
|
2904
2956
|
if (reconciliation === void 0) return false;
|
|
2905
2957
|
let followed = 0;
|
|
@@ -3004,6 +3056,18 @@ function formatAuthorizationDisplayName(name) {
|
|
|
3004
3056
|
return `${name.charAt(0).toUpperCase()}${name.slice(1)}`;
|
|
3005
3057
|
}
|
|
3006
3058
|
|
|
3059
|
+
//#endregion
|
|
3060
|
+
//#region src/shared/action-request-name.ts
|
|
3061
|
+
function actionRequestName(action) {
|
|
3062
|
+
switch (action.kind) {
|
|
3063
|
+
case "load-skill": return "load_skill";
|
|
3064
|
+
case "subagent-call": return action.subagentName;
|
|
3065
|
+
case "remote-agent-call": return action.remoteAgentName;
|
|
3066
|
+
case "tool-call":
|
|
3067
|
+
case "workflow-tool-call": return action.toolName;
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3007
3071
|
//#endregion
|
|
3008
3072
|
//#region src/client/message-action-parts.ts
|
|
3009
3073
|
function toMessageInputRequest(request) {
|
|
@@ -3045,27 +3109,24 @@ function approvedApproval(part) {
|
|
|
3045
3109
|
};
|
|
3046
3110
|
}
|
|
3047
3111
|
function normalizeActionRequest(action) {
|
|
3112
|
+
const name = actionRequestName(action);
|
|
3048
3113
|
switch (action.kind) {
|
|
3049
3114
|
case "load-skill": return {
|
|
3050
3115
|
kind: "load-skill",
|
|
3051
|
-
name
|
|
3116
|
+
name,
|
|
3052
3117
|
toolName: "eve:load-skill"
|
|
3053
3118
|
};
|
|
3054
3119
|
case "tool-call":
|
|
3055
3120
|
case "workflow-tool-call": return {
|
|
3056
3121
|
kind: "tool-call",
|
|
3057
|
-
name
|
|
3058
|
-
toolName:
|
|
3059
|
-
};
|
|
3060
|
-
case "subagent-call": return {
|
|
3061
|
-
kind: "subagent-call",
|
|
3062
|
-
name: action.subagentName,
|
|
3063
|
-
toolName: `eve:subagent:${action.subagentName}`
|
|
3122
|
+
name,
|
|
3123
|
+
toolName: name
|
|
3064
3124
|
};
|
|
3125
|
+
case "subagent-call":
|
|
3065
3126
|
case "remote-agent-call": return {
|
|
3066
3127
|
kind: "subagent-call",
|
|
3067
|
-
name
|
|
3068
|
-
toolName: `eve:subagent:${
|
|
3128
|
+
name,
|
|
3129
|
+
toolName: `eve:subagent:${name}`
|
|
3069
3130
|
};
|
|
3070
3131
|
}
|
|
3071
3132
|
}
|
|
@@ -3193,6 +3254,37 @@ const messageRun = {
|
|
|
3193
3254
|
upsert
|
|
3194
3255
|
};
|
|
3195
3256
|
|
|
3257
|
+
//#endregion
|
|
3258
|
+
//#region src/client/message-task-parts.ts
|
|
3259
|
+
function createSettledTaskPart(existing, event) {
|
|
3260
|
+
const settledPartBase = {
|
|
3261
|
+
approval: approvedApproval(existing),
|
|
3262
|
+
input: existing.input,
|
|
3263
|
+
stepIndex: existing.stepIndex,
|
|
3264
|
+
toolCallId: existing.toolCallId,
|
|
3265
|
+
toolMetadata: existing.toolMetadata,
|
|
3266
|
+
toolName: existing.toolName,
|
|
3267
|
+
type: "dynamic-tool"
|
|
3268
|
+
};
|
|
3269
|
+
switch (event.data.status) {
|
|
3270
|
+
case "completed": return {
|
|
3271
|
+
...settledPartBase,
|
|
3272
|
+
output: event.data.output,
|
|
3273
|
+
state: "output-available"
|
|
3274
|
+
};
|
|
3275
|
+
case "failed": return {
|
|
3276
|
+
...settledPartBase,
|
|
3277
|
+
errorText: event.data.error?.message ?? "Task failed.",
|
|
3278
|
+
state: "output-error"
|
|
3279
|
+
};
|
|
3280
|
+
case "cancelled": return {
|
|
3281
|
+
...settledPartBase,
|
|
3282
|
+
errorText: "Task was cancelled.",
|
|
3283
|
+
state: "output-error"
|
|
3284
|
+
};
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3196
3288
|
//#endregion
|
|
3197
3289
|
//#region src/client/message-reducer.ts
|
|
3198
3290
|
function receivedMessageEventId(event) {
|
|
@@ -3239,17 +3331,15 @@ function reduceMessageData(data, event) {
|
|
|
3239
3331
|
for (const resolution of event.data.resolutions) next = resolveInputRequest(next, resolution);
|
|
3240
3332
|
return next;
|
|
3241
3333
|
}
|
|
3242
|
-
case "message.received":
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
role: "user"
|
|
3252
|
-
});
|
|
3334
|
+
case "message.received": return upsertMessage(data, {
|
|
3335
|
+
id: `${receivedMessageEventId(event)}:user`,
|
|
3336
|
+
metadata: {
|
|
3337
|
+
status: "complete",
|
|
3338
|
+
turnId: event.data.turnId
|
|
3339
|
+
},
|
|
3340
|
+
parts: projectReceivedParts(event.data.parts, event.data.message),
|
|
3341
|
+
role: "user"
|
|
3342
|
+
});
|
|
3253
3343
|
case "step.started": return updateAssistantMessage(data, event.data.turnId, (message) => ensureStepStartPart(message, event.data.stepIndex));
|
|
3254
3344
|
case "reasoning.appended": return updateAssistantMessage(data, event.data.turnId, (message) => messageRun.append(ensureStepStartPart(message, event.data.stepIndex), {
|
|
3255
3345
|
delta: event.data.reasoningDelta,
|
|
@@ -3406,6 +3496,11 @@ function reduceMessageData(data, event) {
|
|
|
3406
3496
|
if (existing !== void 0) return updateToolPart(data, event.data.result.callId, nextPart);
|
|
3407
3497
|
return updateAssistantMessage(data, event.data.turnId, (message) => upsertPart(ensureStepStartPart(message, event.data.stepIndex), nextPart));
|
|
3408
3498
|
}
|
|
3499
|
+
case "task.settled": {
|
|
3500
|
+
const existing = findToolPart(data, event.data.callId);
|
|
3501
|
+
if (existing === void 0) return data;
|
|
3502
|
+
return replaceToolPart(data, createSettledTaskPart(existing, event));
|
|
3503
|
+
}
|
|
3409
3504
|
case "authorization.required": return updateAssistantMessage(data, event.data.turnId, (message) => upsertPart(ensureStepStartPart(message, event.data.stepIndex), createAuthorizationRequiredPart(event)));
|
|
3410
3505
|
case "authorization.completed": return completeAuthorization(data, event);
|
|
3411
3506
|
case "message.appended": return updateAssistantMessage(data, event.data.turnId, (message) => messageRun.append(ensureStepStartPart(message, event.data.stepIndex), {
|
|
@@ -3414,7 +3509,6 @@ function reduceMessageData(data, event) {
|
|
|
3414
3509
|
type: "text"
|
|
3415
3510
|
}));
|
|
3416
3511
|
case "message.completed": return updateAssistantMessage(data, event.data.turnId, (message) => {
|
|
3417
|
-
if (event.data.message === null) return removeTextPart(message, event.data.stepIndex);
|
|
3418
3512
|
return messageRun.upsert(ensureStepStartPart(message, event.data.stepIndex), {
|
|
3419
3513
|
state: "done",
|
|
3420
3514
|
stepIndex: event.data.stepIndex,
|
|
@@ -3534,23 +3628,19 @@ function upsertPart(message, next) {
|
|
|
3534
3628
|
parts
|
|
3535
3629
|
};
|
|
3536
3630
|
}
|
|
3537
|
-
function removeTextPart(message, stepIndex) {
|
|
3538
|
-
const parts = message.parts.filter((part) => part.type !== "text" || part.stepIndex !== stepIndex);
|
|
3539
|
-
if (parts.length === message.parts.length) return message;
|
|
3540
|
-
return {
|
|
3541
|
-
...message,
|
|
3542
|
-
metadata: {
|
|
3543
|
-
...message.metadata,
|
|
3544
|
-
status: "complete"
|
|
3545
|
-
},
|
|
3546
|
-
parts
|
|
3547
|
-
};
|
|
3548
|
-
}
|
|
3549
3631
|
function updateToolPart(data, toolCallId, next) {
|
|
3550
3632
|
const message = data.messages.find((candidate) => candidate.role === "assistant" && candidate.parts.some((part) => part.type === "dynamic-tool" && part.toolCallId === toolCallId));
|
|
3551
3633
|
if (!message) return data;
|
|
3552
3634
|
return upsertMessage(data, upsertPart(message, next));
|
|
3553
3635
|
}
|
|
3636
|
+
function replaceToolPart(data, next) {
|
|
3637
|
+
const message = data.messages.find((candidate) => candidate.parts.some((part) => part.type === "dynamic-tool" && part.toolCallId === next.toolCallId));
|
|
3638
|
+
if (message === void 0) return data;
|
|
3639
|
+
return upsertMessage(data, {
|
|
3640
|
+
...message,
|
|
3641
|
+
parts: message.parts.map((part) => partKey(part) === partKey(next) ? next : part)
|
|
3642
|
+
});
|
|
3643
|
+
}
|
|
3554
3644
|
function completeAuthorization(data, event) {
|
|
3555
3645
|
const existing = findLatestPendingAuthorizationPart(data, event.data.name);
|
|
3556
3646
|
const next = createAuthorizationCompletedPart(event, existing);
|