eve 0.68.0 → 0.70.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 +132 -0
- package/bin/eve.js +15 -0
- package/dist/src/_virtual/_rolldown/runtime.js +1 -1
- package/dist/src/acp/adapter.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 +30 -57
- package/dist/src/chunks/{use-eve-agent-D4HVZBjn.js → use-eve-agent-CJQeE7-t.js} +2058 -1331
- package/dist/src/chunks/{use-eve-agent-DXcE_8Ja.js → use-eve-agent-DdemtY6C.js} +2061 -1331
- 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 +2 -2
- package/dist/src/cli/dev/command.js +1 -1
- package/dist/src/cli/dev/console-records-preload.d.ts +1 -0
- package/dist/src/cli/dev/console-records-preload.js +1 -0
- package/dist/src/cli/dev/console-records.d.ts +17 -0
- package/dist/src/cli/dev/console-records.js +3 -0
- package/dist/src/cli/dev/diagnostic-sink.d.ts +1 -0
- package/dist/src/cli/dev/local-server-process.js +1 -1
- package/dist/src/cli/dev/tui/blocks.d.ts +21 -19
- package/dist/src/cli/dev/tui/blocks.js +4 -4
- package/dist/src/cli/dev/tui/command-typeahead.d.ts +3 -6
- package/dist/src/cli/dev/tui/conversation-view.d.ts +54 -0
- package/dist/src/cli/dev/tui/conversation-view.js +1 -0
- 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/flow-drawer.d.ts +5 -2
- package/dist/src/cli/dev/tui/flow-drawer.js +1 -1
- package/dist/src/cli/dev/tui/log-display-mode.d.ts +4 -10
- package/dist/src/cli/dev/tui/log-display-mode.js +1 -1
- package/dist/src/cli/dev/tui/message-queue.d.ts +7 -63
- package/dist/src/cli/dev/tui/message-queue.js +3 -1
- package/dist/src/cli/dev/tui/prompt-commands.js +1 -1
- 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/question-panel.d.ts +3 -1
- package/dist/src/cli/dev/tui/question-panel.js +1 -1
- package/dist/src/cli/dev/tui/rail.d.ts +1 -1
- package/dist/src/cli/dev/tui/runner.d.ts +60 -174
- 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/task-activity.d.ts +59 -0
- package/dist/src/cli/dev/tui/task-activity.js +1 -0
- package/dist/src/cli/dev/tui/terminal-renderer.d.ts +18 -57
- package/dist/src/cli/dev/tui/terminal-renderer.js +10 -13
- package/dist/src/cli/dev/tui/terminal-tool-part.d.ts +2 -0
- package/dist/src/cli/dev/tui/terminal-tool-part.js +1 -0
- package/dist/src/cli/dev/tui/test/fake-eve-server.d.ts +34 -0
- package/dist/src/cli/dev/tui/test/fake-eve-server.js +1 -0
- package/dist/src/cli/dev/tui/test/index.d.ts +1 -0
- package/dist/src/cli/dev/tui/test/index.js +1 -1
- 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 +17 -3
- package/dist/src/cli/dev/tui/tool-presentation.js +1 -1
- package/dist/src/cli/dev/tui/tool-rows.d.ts +1 -0
- package/dist/src/cli/dev/tui/tool-rows.js +2 -2
- 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/transcript-parts.d.ts +73 -0
- package/dist/src/cli/dev/tui/transcript-parts.js +3 -0
- package/dist/src/cli/dev/tui/transcript.d.ts +47 -0
- package/dist/src/cli/dev/tui/transcript.js +1 -0
- package/dist/src/cli/dev/tui/tui.js +1 -1
- package/dist/src/cli/dev/tui/turn-clock.d.ts +11 -26
- package/dist/src/cli/dev/tui/turn-clock.js +1 -1
- package/dist/src/cli/dev/tui/types.d.ts +13 -9
- package/dist/src/cli/dev/ui-options.d.ts +2 -2
- package/dist/src/cli/dev/ui-options.js +1 -1
- 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/agent-stream-follower.d.ts +26 -0
- package/dist/src/client/agent-stream-follower.js +1 -0
- package/dist/src/client/authorization-message-parts.js +1 -1
- package/dist/src/client/conversation-client.d.ts +40 -0
- package/dist/src/client/conversation-client.js +1 -0
- package/dist/src/client/conversation-reducer.d.ts +29 -0
- package/dist/src/client/conversation-reducer.js +1 -0
- package/dist/src/client/conversation-state.d.ts +110 -0
- package/dist/src/client/conversation-state.js +1 -0
- package/dist/src/client/eve-agent-projection.d.ts +24 -7
- package/dist/src/client/eve-agent-projection.js +1 -1
- package/dist/src/client/eve-agent-store-helpers.d.ts +20 -1
- package/dist/src/client/eve-agent-store-helpers.js +2 -2
- package/dist/src/client/eve-agent-store-state.d.ts +15 -3
- package/dist/src/client/eve-agent-store.d.ts +10 -1
- package/dist/src/client/eve-agent-store.js +1 -1
- package/dist/src/client/index.d.ts +5 -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-primitives.d.ts +1 -2
- package/dist/src/client/message-reducer-primitives.js +1 -1
- package/dist/src/client/message-reducer-types.d.ts +9 -2
- package/dist/src/client/message-reducer.js +1 -1
- package/dist/src/client/message-response.js +1 -1
- package/dist/src/client/message-run-parts.d.ts +10 -6
- package/dist/src/client/message-run-parts.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.d.ts +6 -4
- package/dist/src/client/optimistic-message-submissions.js +1 -1
- package/dist/src/client/reducer.d.ts +5 -1
- package/dist/src/client/session-controls.d.ts +0 -1
- package/dist/src/client/session-turn-dispatch.d.ts +15 -0
- package/dist/src/client/session-turn-dispatch.js +1 -0
- package/dist/src/client/session-utils.d.ts +29 -2
- 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 +4 -5
- package/dist/src/compiled/.vendor-stamp.json +3 -2
- package/dist/src/compiled/@eve/catalog/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/@workflow/core/runtime.js +3 -3
- 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/lib/computer-use-sandbox.d.ts +8 -0
- package/dist/src/computer-use/extension/lib/computer-use-sandbox.js +3 -3
- package/dist/src/computer-use/extension/lib/computer-use.d.ts +2 -0
- package/dist/src/computer-use/extension/lib/computer-use.js +2 -1
- package/dist/src/computer-use/extension/tools/computer_use.js +1 -1
- 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.js +1 -1
- package/dist/src/context/dynamic-tool-metadata.d.ts +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 +12 -15
- 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 +5 -11
- package/dist/src/context/run-step.d.ts +5 -6
- 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/execute-task.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 +34 -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 +62 -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 +12 -28
- 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 +4 -3
- 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 +10 -5
- package/dist/src/execution/durable-session-store.js +1 -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.d.ts +2 -0
- 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/legacy-session/prepare-step.d.ts +1 -0
- package/dist/src/execution/legacy-session/prepare-step.js +1 -1
- package/dist/src/execution/legacy-session/snapshot.d.ts +8 -4
- package/dist/src/execution/legacy-session/snapshot.js +1 -1
- package/dist/src/execution/legacy-session/turn-workflow.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 +150 -0
- package/dist/src/execution/publish-session-events.js +1 -0
- package/dist/src/execution/reconcile-session-continuation-token.d.ts +2 -2
- 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/active-turn.d.ts +97 -0
- package/dist/src/execution/session/active-turn.js +1 -0
- 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 +21 -5
- package/dist/src/execution/session/handoff.js +1 -1
- package/dist/src/execution/session/input-queue.d.ts +44 -39
- package/dist/src/execution/session/input-queue.js +1 -1
- package/dist/src/execution/session/next-input.d.ts +7 -10
- 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.d.ts +2 -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 +26 -18
- package/dist/src/execution/session/state-cursor.js +1 -1
- package/dist/src/execution/session/state-delta.d.ts +40 -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 +2 -2
- package/dist/src/execution/session/turn-event-handler.js +1 -1
- 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 +37 -19
- 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 +41 -3
- 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 +5 -6
- package/dist/src/execution/session.js +2 -2
- package/dist/src/execution/settle-cancelled-turn-step.d.ts +23 -10
- 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.d.ts +2 -0
- package/dist/src/execution/terminal-session-completion-step.js +1 -1
- package/dist/src/execution/terminal-session-failure-step.d.ts +2 -0
- 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 +18 -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 +7 -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/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 +17 -3
- package/dist/src/harness/authorization.js +1 -1
- package/dist/src/harness/cancelled-turn-emission.d.ts +2 -1
- package/dist/src/harness/cancelled-turn-emission.js +1 -1
- package/dist/src/harness/coordination.d.ts +36 -30
- 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 +11 -2
- package/dist/src/harness/emission.js +1 -1
- package/dist/src/harness/execute-tool.d.ts +4 -15
- package/dist/src/harness/held-requests.d.ts +18 -0
- package/dist/src/harness/held-requests.js +1 -0
- package/dist/src/harness/hitl/approval-input-requests.d.ts +16 -0
- package/dist/src/harness/hitl/approval-input-requests.js +1 -1
- 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-extraction.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.d.ts +0 -4
- 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/model-call-error.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 +45 -40
- 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 +8 -5
- package/dist/src/harness/turn-tag-state.js +1 -1
- package/dist/src/harness/types.d.ts +25 -21
- 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/channel-delivery.d.ts +1 -0
- package/dist/src/instrumentation/channel-delivery.js +1 -1
- package/dist/src/instrumentation/lifecycle.d.ts +7 -0
- package/dist/src/instrumentation/memory.d.ts +2 -0
- package/dist/src/instrumentation/memory.js +1 -1
- package/dist/src/instrumentation/native-events.d.ts +1 -7
- package/dist/src/instrumentation/native-events.js +1 -1
- package/dist/src/instrumentation/runtime.d.ts +5 -7
- package/dist/src/instrumentation/runtime.js +1 -1
- package/dist/src/instrumentation/session-init.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 +20 -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/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-host-fingerprint.js +1 -1
- package/dist/src/internal/nitro/host/extension-capability-requirements.js +1 -1
- 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/development-world-client.js +1 -1
- 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/dynamic-remote-agent-transform.js +1 -1
- package/dist/src/internal/workflow-bundle/dynamic-tool-ast-references.d.ts +27 -1
- package/dist/src/internal/workflow-bundle/dynamic-tool-ast-references.js +1 -1
- package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +2 -2
- 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 +166 -69
- 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/approval-cards.d.ts +15 -0
- package/dist/src/public/channels/slack/approval-cards.js +2 -0
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/auth.d.ts +5 -0
- package/dist/src/public/channels/slack/auth.js +1 -1
- package/dist/src/public/channels/slack/connections.d.ts +20 -16
- package/dist/src/public/channels/slack/connections.js +1 -1
- package/dist/src/public/channels/slack/defaults.d.ts +13 -33
- package/dist/src/public/channels/slack/defaults.js +3 -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/inbound.d.ts +10 -2
- package/dist/src/public/channels/slack/inbound.js +1 -1
- package/dist/src/public/channels/slack/index.d.ts +6 -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/limits.d.ts +5 -3
- package/dist/src/public/channels/slack/private-approval-delivery.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/reply-delivery.d.ts +72 -0
- package/dist/src/public/channels/slack/reply-delivery.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/sign-in-cancel.d.ts +20 -0
- package/dist/src/public/channels/slack/sign-in-cancel.js +1 -0
- package/dist/src/public/channels/slack/slackChannel.d.ts +62 -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/teams/defaults.d.ts +1 -1
- package/dist/src/public/channels/teams/defaults.js +2 -2
- 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 +7 -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 +4 -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/next/index.js +1 -1
- package/dist/src/public/next/server.d.ts +2 -0
- package/dist/src/public/next/server.js +1 -2
- package/dist/src/public/nuxt/module.d.ts +6 -0
- package/dist/src/public/nuxt/module.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/react/index.d.ts +3 -0
- package/dist/src/react/index.js +1 -1
- package/dist/src/react/use-eve-agent.d.ts +7 -5
- package/dist/src/react/use-eve-agent.js +1 -1
- 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 -9
- package/dist/src/runtime/connections/mcp-client.js +1 -1
- package/dist/src/runtime/connections/openapi-client.js +1 -1
- package/dist/src/runtime/connections/scoped-authorization.d.ts +3 -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/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/deploy-project.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.js +6 -2
- 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 +2 -2
- package/dist/src/setup/scaffold/create/web-template.js +28 -9
- package/dist/src/setup/vercel-project-framework.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 -8
- 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/display-name.d.ts +15 -0
- package/dist/src/shared/display-name.js +1 -0
- 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/framework-eve-server.d.ts +43 -0
- package/dist/src/shared/framework-eve-server.js +2 -0
- 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/token-usage.d.ts +2 -0
- package/dist/src/shared/token-usage.js +1 -1
- package/dist/src/shared/trace-root.d.ts +8 -0
- package/dist/src/shared/trace-root.js +1 -0
- 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 +38 -20
- package/dist/src/subagents/hitl-proxy.js +1 -1
- package/dist/src/subagents/invocation.d.ts +4 -3
- 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.d.ts +3 -0
- package/dist/src/svelte/index.js +2 -2
- package/dist/src/svelte/use-eve-agent.d.ts +7 -4
- 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 +50 -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/load-skill.js +1 -1
- 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-approval-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-memory-instrumentation.js +1 -1
- package/dist/src/tracing/agent-otel-attributes.d.ts +6 -0
- package/dist/src/tracing/agent-otel-attributes.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-session-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-tool-instrumentation.js +1 -1
- package/dist/src/tracing/agent-trace-context-codec.d.ts +5 -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-span-processor.js +1 -1
- package/dist/src/tracing/agent-trace-state.d.ts +4 -19
- package/dist/src/tracing/content-attributes.js +1 -1
- package/dist/src/tracing/conversation-context.d.ts +10 -0
- package/dist/src/tracing/conversation-context.js +1 -1
- package/dist/src/tracing/install-instrumentation-runtime.js +1 -1
- package/dist/src/tracing/otel-registration.js +1 -1
- package/dist/src/vue/index.d.ts +3 -0
- package/dist/src/vue/index.js +2 -2
- package/dist/src/vue/use-eve-agent.d.ts +7 -3
- 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 +287 -45
- package/docs/channels/telegram.mdx +2 -0
- package/docs/concepts/built-in-tools.md +37 -28
- package/docs/concepts/context-control.md +2 -2
- package/docs/concepts/execution-model-and-durability.mdx +10 -11
- package/docs/concepts/sessions-runs-and-streaming.md +69 -49
- package/docs/connections/mcp.mdx +4 -4
- package/docs/connections/openapi.mdx +2 -2
- package/docs/connections/overview.mdx +11 -5
- package/docs/evals/assertions.mdx +5 -5
- package/docs/evals/cases.mdx +1 -1
- package/docs/evals/reporters.mdx +10 -4
- package/docs/extensions.md +22 -2
- package/docs/guides/client/streaming.mdx +33 -12
- package/docs/guides/deployment/vercel.mdx +2 -1
- package/docs/guides/dev-tui.md +26 -16
- package/docs/guides/dynamic-capabilities.md +6 -4
- package/docs/guides/evaluate.md +29 -2
- package/docs/guides/frontend/nuxt.mdx +24 -4
- package/docs/guides/frontend/overview.mdx +45 -41
- package/docs/guides/frontend/use-eve-agent-svelte.mdx +4 -10
- package/docs/guides/frontend/use-eve-agent-vue.mdx +4 -10
- package/docs/guides/hooks.md +16 -12
- package/docs/guides/instrumentation/instrumentation.mdx +2 -0
- package/docs/guides/instrumentation/otel.mdx +24 -6
- package/docs/guides/remote-agents.md +38 -22
- package/docs/guides/self-modification.md +10 -0
- 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 +64 -11
- 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 -15
- package/docs/tools/meta.json +1 -1
- package/docs/tools/overview.mdx +80 -60
- 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 +18 -12
- 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/cli/dev/tui/steering-stream.d.ts +0 -15
- package/dist/src/cli/dev/tui/steering-stream.js +0 -1
- package/dist/src/cli/dev/tui/subagent-pump.d.ts +0 -142
- package/dist/src/cli/dev/tui/subagent-pump.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/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/nuxt/dev-server.d.ts +0 -25
- package/dist/src/public/nuxt/dev-server.js +0 -1
- 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/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 -138
- 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/execution/{tools/subagent → agent-sessions}/metadata.d.ts +0 -0
- /package/dist/src/execution/{tools/subagent → agent-sessions}/metadata.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
|
|
6
6
|
"keywords": [
|
|
@@ -137,6 +137,11 @@
|
|
|
137
137
|
"import": "./dist/src/public/tools/sleep.js",
|
|
138
138
|
"default": "./dist/src/public/tools/sleep.js"
|
|
139
139
|
},
|
|
140
|
+
"./tools/no_reply": {
|
|
141
|
+
"types": "./dist/src/public/tools/no-reply.d.ts",
|
|
142
|
+
"import": "./dist/src/public/tools/no-reply.js",
|
|
143
|
+
"default": "./dist/src/public/tools/no-reply.js"
|
|
144
|
+
},
|
|
140
145
|
"./tools": {
|
|
141
146
|
"types": "./dist/src/public/tools/index.d.ts",
|
|
142
147
|
"import": "./dist/src/public/tools/index.js",
|
|
@@ -182,16 +187,6 @@
|
|
|
182
187
|
"import": "./dist/src/public/tools/load-skill.js",
|
|
183
188
|
"default": "./dist/src/public/tools/load-skill.js"
|
|
184
189
|
},
|
|
185
|
-
"./tools/connection_search": {
|
|
186
|
-
"types": "./dist/src/public/tools/connection-search.d.ts",
|
|
187
|
-
"import": "./dist/src/public/tools/connection-search.js",
|
|
188
|
-
"default": "./dist/src/public/tools/connection-search.js"
|
|
189
|
-
},
|
|
190
|
-
"./tools/task_cancel": {
|
|
191
|
-
"types": "./dist/src/public/tools/task-cancel.d.ts",
|
|
192
|
-
"import": "./dist/src/public/tools/task-cancel.js",
|
|
193
|
-
"default": "./dist/src/public/tools/task-cancel.js"
|
|
194
|
-
},
|
|
195
190
|
"./tools/glob": {
|
|
196
191
|
"types": "./dist/src/public/tools/glob.d.ts",
|
|
197
192
|
"import": "./dist/src/public/tools/glob.js",
|
|
@@ -321,6 +316,12 @@
|
|
|
321
316
|
"import": "./dist/src/internal/programmatic-source-loader.js",
|
|
322
317
|
"default": "./dist/src/internal/programmatic-source-loader.js"
|
|
323
318
|
},
|
|
319
|
+
"./internal/mount-state": {
|
|
320
|
+
"eve-source": "./src/internal/mount-state.ts",
|
|
321
|
+
"types": "./dist/src/internal/mount-state.d.ts",
|
|
322
|
+
"import": "./dist/src/internal/mount-state.js",
|
|
323
|
+
"default": "./dist/src/internal/mount-state.js"
|
|
324
|
+
},
|
|
324
325
|
"./local-dev": {
|
|
325
326
|
"types": "./dist/src/public/local-dev.d.ts",
|
|
326
327
|
"import": "./dist/src/public/local-dev.js",
|
|
@@ -406,6 +407,11 @@
|
|
|
406
407
|
"import": "./dist/src/public/schedules/index.js",
|
|
407
408
|
"default": "./dist/src/public/schedules/index.js"
|
|
408
409
|
},
|
|
410
|
+
"./server": {
|
|
411
|
+
"types": "./dist/src/public/server/index.d.ts",
|
|
412
|
+
"import": "./dist/src/public/server/index.js",
|
|
413
|
+
"default": "./dist/src/public/server/index.js"
|
|
414
|
+
},
|
|
409
415
|
"./channels": {
|
|
410
416
|
"types": "./dist/src/public/channels/index.d.ts",
|
|
411
417
|
"import": "./dist/src/public/channels/index.js",
|
|
@@ -501,7 +507,7 @@
|
|
|
501
507
|
},
|
|
502
508
|
"dependencies": {
|
|
503
509
|
"nitro": "3.0.260903-beta",
|
|
504
|
-
"undici": "8.
|
|
510
|
+
"undici": "8.10.2"
|
|
505
511
|
},
|
|
506
512
|
"devDependencies": {
|
|
507
513
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ChannelAdapter } from "#channel/adapter.js";
|
|
2
|
-
import type { ActivitySnapshotV1 } from "#protocol/activity.js";
|
|
3
|
-
export interface ChannelActivityRenderer {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
render(input: {
|
|
6
|
-
readonly destination: Readonly<Record<string, unknown>>;
|
|
7
|
-
readonly snapshot: ActivitySnapshotV1;
|
|
8
|
-
readonly state: unknown;
|
|
9
|
-
}): Promise<unknown>;
|
|
10
|
-
dispose?(input: {
|
|
11
|
-
readonly destination: Readonly<Record<string, unknown>>;
|
|
12
|
-
readonly state: unknown;
|
|
13
|
-
}): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
export interface ChannelActivityPresentation {
|
|
16
|
-
readonly destination: (state: Record<string, unknown> | undefined) => Readonly<Record<string, unknown>>;
|
|
17
|
-
readonly renderers: readonly ChannelActivityRenderer[];
|
|
18
|
-
}
|
|
19
|
-
export declare function attachChannelActivityPresentation(adapter: ChannelAdapter, presentation: ChannelActivityPresentation): void;
|
|
20
|
-
export declare function copyChannelActivityPresentation(source: ChannelAdapter, target: ChannelAdapter): void;
|
|
21
|
-
export declare function getChannelActivityPresentation(adapter: ChannelAdapter): ChannelActivityPresentation | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const CHANNEL_ACTIVITY_PRESENTATION=Symbol.for(`eve.channel.activityPresentation`);function attachChannelActivityPresentation(e,t){Object.defineProperty(e,CHANNEL_ACTIVITY_PRESENTATION,{configurable:!0,enumerable:!1,value:t})}function copyChannelActivityPresentation(e,t){let n=Object.getOwnPropertyDescriptor(e,CHANNEL_ACTIVITY_PRESENTATION);n!==void 0&&Object.defineProperty(t,CHANNEL_ACTIVITY_PRESENTATION,n)}function getChannelActivityPresentation(e){return e[CHANNEL_ACTIVITY_PRESENTATION]}export{attachChannelActivityPresentation,copyChannelActivityPresentation,getChannelActivityPresentation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z}from"#compiled/zod/index.js";import{EVE_ACTIVITY_ROUTE_PATTERN}from"#protocol/routes.js";import{normalizePublicEveRoutePath}from"#shared/eve-route-path.js";import{isReservedIpAddress}from"#shared/network-address.js";const schema=z.object({url:z.string().min(1),version:z.literal(1)}).strict();function parseActivitySink(e){if(e===void 0)return;let t=schema.safeParse(e);if(!t.success)throw Error(`Expected activitySink version 1.`);let n;try{n=new URL(t.data.url)}catch{throw Error(`Activity sink url must be absolute.`)}let r=EVE_ACTIVITY_ROUTE_PATTERN.slice(0,-6),i=normalizePublicEveRoutePath(n.pathname),a=i.lastIndexOf(r),o=i.slice(a+r.length);if(a<0||o.length<32)throw Error(`Activity sink url must contain an opaque activity token.`);if(isReservedIpAddress(n.hostname))throw Error(`Activity sink url host must not be a private or reserved address.`);return t.data}export{parseActivitySink};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type MessageStreamEvent } from "#protocol/message.js";
|
|
2
|
-
/**
|
|
3
|
-
* Follows accepted messages through their boundary, including a send racing
|
|
4
|
-
* settlement. Delivery responses may overlap; stream event IDs deduplicate them.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SteeringStream implements AsyncIterable<MessageStreamEvent> {
|
|
7
|
-
private readonly session;
|
|
8
|
-
private readonly streams;
|
|
9
|
-
private closed;
|
|
10
|
-
private readonly controller;
|
|
11
|
-
constructor(initial: AsyncIterable<MessageStreamEvent>, session: SteeringStream["session"]);
|
|
12
|
-
send(message: string): Promise<void>;
|
|
13
|
-
abort(): void;
|
|
14
|
-
[Symbol.asyncIterator](): AsyncGenerator<MessageStreamEvent>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createEventDeduper}from"#protocol/event-dedupe.js";import{isCurrentTurnBoundaryEvent}from"#protocol/message.js";var SteeringStream=class{session;streams;closed=!1;controller=new AbortController;constructor(e,t){this.session=t,this.streams=[Promise.resolve(e)]}async send(e){if(this.closed)throw Error(`The active stream ended before steering was sent.`);let t=this.session.send(e,{turnPolicy:`steer`,signal:this.controller.signal});this.streams.push(t.then(e=>e,()=>void 0)),await t}abort(){this.closed=!0,this.controller.abort()}async*[Symbol.asyncIterator](){let e=createEventDeduper(),t;try{for(;this.streams.length>0;){let n=await this.streams.shift();if(n!==void 0){for await(let r of n)if(e.admit(r)){if(isCurrentTurnBoundaryEvent(r)){t=r;break}yield r}}}t!==void 0&&(yield t)}finally{this.abort()}}};export{SteeringStream};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The subagent child-stream subsystem: for every `subagent.called` on the
|
|
3
|
-
* parent stream, a parallel pump over the child session folds its events
|
|
4
|
-
* into the renderer's nested subagent view. Extracted from the runner —
|
|
5
|
-
* the subsystem touches nothing but its own run state, the client, and the
|
|
6
|
-
* {@link SubagentView} seam.
|
|
7
|
-
*/
|
|
8
|
-
import type { Client } from "#client/index.js";
|
|
9
|
-
import { type ActionResultStreamEvent, type SubagentCalledStreamEvent } from "#protocol/message.js";
|
|
10
|
-
/**
|
|
11
|
-
* The renderer's subagent surface. One cohesive capability: a renderer that
|
|
12
|
-
* implements it renders whole sections — header, nested steps and tools,
|
|
13
|
-
* ghost sweeps, completion — and a renderer without it simply has no
|
|
14
|
-
* subagent view. Individually-optional methods would let a renderer
|
|
15
|
-
* implement a type-legal subset that ghosts placeholders or duplicates
|
|
16
|
-
* parent tool rows.
|
|
17
|
-
*/
|
|
18
|
-
export interface SubagentView {
|
|
19
|
-
/** Opens a call's section the moment its dispatch is announced. */
|
|
20
|
-
begin(update: {
|
|
21
|
-
callId: string;
|
|
22
|
-
name: string;
|
|
23
|
-
}): void;
|
|
24
|
-
/** Keeps a receipt-returned background call mutable across parent turns. */
|
|
25
|
-
background(update: {
|
|
26
|
-
callId: string;
|
|
27
|
-
}): void;
|
|
28
|
-
upsertStep(update: SubagentStepUpdate): void;
|
|
29
|
-
upsertTool(update: SubagentToolUpdate): void;
|
|
30
|
-
/** Drops a child tool row whose call never materialized. */
|
|
31
|
-
removeTool(update: {
|
|
32
|
-
callId: string;
|
|
33
|
-
childCallId: string;
|
|
34
|
-
}): void;
|
|
35
|
-
/** Marks a call complete so its section collapses on `└ Done…`. */
|
|
36
|
-
complete(update: {
|
|
37
|
-
authoritative: boolean;
|
|
38
|
-
callId: string;
|
|
39
|
-
}): void;
|
|
40
|
-
/** Suppresses the parent-level tool row for a child-owned call id. */
|
|
41
|
-
markChildToolCallId(callId: string): void;
|
|
42
|
-
}
|
|
43
|
-
type SubagentChildStep = {
|
|
44
|
-
reasoning: string;
|
|
45
|
-
message: string;
|
|
46
|
-
finalized: boolean;
|
|
47
|
-
};
|
|
48
|
-
type SubagentToolStatus = "preparing" | "approval-requested" | "executing" | "done" | "failed" | "rejected";
|
|
49
|
-
type SubagentToolState = {
|
|
50
|
-
toolName: string;
|
|
51
|
-
input: unknown;
|
|
52
|
-
status: SubagentToolStatus;
|
|
53
|
-
output?: unknown;
|
|
54
|
-
errorText?: string;
|
|
55
|
-
};
|
|
56
|
-
export type SubagentRun = {
|
|
57
|
-
name: string;
|
|
58
|
-
childSessionId: string;
|
|
59
|
-
/** Parent turn that originated this dispatch; cancellation is scoped to it. */
|
|
60
|
-
parentTurnId: string;
|
|
61
|
-
/** A receipt-returned task survives cancellation of its originating turn. */
|
|
62
|
-
background: boolean;
|
|
63
|
-
/** Parent completion is provisional; only a child boundary is authoritative. */
|
|
64
|
-
status: "open" | "provisional" | "authoritative";
|
|
65
|
-
/** Dispatch event whose parent-origin child stream this run follows. */
|
|
66
|
-
called: SubagentCalledStreamEvent;
|
|
67
|
-
/**
|
|
68
|
-
* One entry per logical "child message" — independent of the child's
|
|
69
|
-
* `stepIndex` field, which the harness can reuse across multiple
|
|
70
|
-
* assistant messages within a turn (e.g. a message before a tool call
|
|
71
|
-
* and another message after the tool result both arrive under
|
|
72
|
-
* `stepIndex: 0`). The key is a monotonic counter so each
|
|
73
|
-
* `message.completed` opens a new box on the next inbound delta.
|
|
74
|
-
*/
|
|
75
|
-
steps: Map<number, SubagentChildStep>;
|
|
76
|
-
/**
|
|
77
|
-
* Section currently accepting reasoning/message deltas. `null` means
|
|
78
|
-
* the next delta opens a new section.
|
|
79
|
-
*/
|
|
80
|
-
currentSectionKey: number | null;
|
|
81
|
-
/** Monotonic counter for new section keys. */
|
|
82
|
-
nextSectionKey: number;
|
|
83
|
-
tools: Map<string, SubagentToolState>;
|
|
84
|
-
};
|
|
85
|
-
export type SubagentStepUpdate = {
|
|
86
|
-
callId: string;
|
|
87
|
-
subagentName: string;
|
|
88
|
-
sectionKey: number;
|
|
89
|
-
reasoning: string;
|
|
90
|
-
message: string;
|
|
91
|
-
finalized: boolean;
|
|
92
|
-
};
|
|
93
|
-
export type SubagentToolUpdate = {
|
|
94
|
-
callId: string;
|
|
95
|
-
subagentName: string;
|
|
96
|
-
childCallId: string;
|
|
97
|
-
toolName: string;
|
|
98
|
-
input: unknown;
|
|
99
|
-
status: SubagentToolStatus;
|
|
100
|
-
output?: unknown;
|
|
101
|
-
errorText?: string;
|
|
102
|
-
};
|
|
103
|
-
export interface SubagentPumpOptions {
|
|
104
|
-
client?: Client;
|
|
105
|
-
view?: SubagentView;
|
|
106
|
-
formatActionResultError: (event: ActionResultStreamEvent) => string;
|
|
107
|
-
/** Runs TUI-owned handling after a child tool result becomes visible. */
|
|
108
|
-
onToolCompleted?: (subagentName: string, toolName: string, output: unknown) => Promise<void>;
|
|
109
|
-
}
|
|
110
|
-
export declare class SubagentPump {
|
|
111
|
-
#private;
|
|
112
|
-
constructor(options: SubagentPumpOptions);
|
|
113
|
-
/**
|
|
114
|
-
* The moment a dispatch is known to be a subagent call, its section
|
|
115
|
-
* header replaces the parent-level tool row (or its still-preparing
|
|
116
|
-
* placeholder — subagent dispatches never upgrade one, since their
|
|
117
|
-
* actions are not tool-call kind). Without this the placeholder is
|
|
118
|
-
* swept at the step boundary and nothing shows until the child's first
|
|
119
|
-
* content arrives. A later parent-stream translator may replay the call;
|
|
120
|
-
* re-entry only refreshes the name.
|
|
121
|
-
*/
|
|
122
|
-
begin(called: SubagentCalledStreamEvent): void;
|
|
123
|
-
/**
|
|
124
|
-
* Parent completion is provisional because the child's final events can be
|
|
125
|
-
* in flight on an independent connection. The pump remains open until the
|
|
126
|
-
* child boundary supplies authoritative completion.
|
|
127
|
-
*/
|
|
128
|
-
settle(callId: string): void;
|
|
129
|
-
/**
|
|
130
|
-
* The originating call returned a task receipt, not the child's result.
|
|
131
|
-
* Keep the section open until the child stream reaches its own boundary.
|
|
132
|
-
* A child that already settled before the receipt raced in stays settled.
|
|
133
|
-
*/
|
|
134
|
-
background(callId: string): void;
|
|
135
|
-
abortAll(): void;
|
|
136
|
-
/**
|
|
137
|
-
* Settles and aborts only foreground descendants of the cancelled parent
|
|
138
|
-
* turn. Background tasks survive even when that same turn started them.
|
|
139
|
-
*/
|
|
140
|
-
settleCancelledTurn(turnId: string): void;
|
|
141
|
-
}
|
|
142
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isCurrentTurnBoundaryEvent}from"#protocol/message.js";const childStreamReconnectPolicy={streamIdleReconnectPolicy:{maxAttempts:1/0},streamOpenReconnectPolicy:{maxAttempts:1/0}};var SubagentPump=class{#e;#t;#n;#r;#i=new Map;#a=new Set;#o=new Map;#s=new Map;#c=new Map;#l=new Map;constructor(e){this.#e=e.client,this.#t=e.view,this.#n=e.formatActionResultError,this.#r=e.onToolCompleted}begin(e){let t=e.data.callId,n=this.#i.get(t);n===void 0?this.#i.set(t,{name:e.data.name,childSessionId:e.data.childSessionId,parentTurnId:e.data.turnId,background:!1,status:`open`,called:e,steps:new Map,currentSectionKey:null,nextSectionKey:0,tools:new Map}):n.name=e.data.name,this.#t?.markChildToolCallId(t),(n===void 0||n.status===`open`)&&(this.#t?.begin({callId:t,name:e.data.name}),this.#a.delete(t)&&this.background(t),n===void 0&&this.#u(t))}settle(e){this.#p(e,!1)}background(e){let t=this.#i.get(e);if(t===void 0){this.#a.add(e);return}t.background=!0,t.status!==`authoritative`&&this.#t?.background({callId:e})}abortAll(){for(let e of this.#o.values())e.abort();this.#o.clear(),this.#i.clear(),this.#a.clear(),this.#s.clear(),this.#c.clear(),this.#l.clear()}settleCancelledTurn(e){for(let[t,n]of this.#i)n.parentTurnId!==e||n.background||(this.#p(t,!0),this.#o.get(t)?.abort(),this.#o.delete(t))}#u(e){let t=this.#i.get(e);if(t===void 0||t.status===`authoritative`)return;let n=this.#c.get(t.childSessionId);if(n===void 0){this.#c.set(t.childSessionId,e),this.#d(e);return}if(n===e)return;let r=this.#l.get(t.childSessionId)??[];r.includes(e)||r.push(e),this.#l.set(t.childSessionId,r)}#d(e){if(this.#o.has(e))return;let t=this.#e;if(!t)return;let n=this.#i.get(e);if(n===void 0||n.status===`authoritative`)return;let r=new AbortController;this.#o.set(e,r),(async()=>{let{childSessionId:i}=n,a=this.#s.get(i)??0;try{let o=t.sessions.attach(n.called.data.sessionId).streamSubagent(n.called,{signal:r.signal,startIndex:a,streamReconnectPolicy:childStreamReconnectPolicy});for await(let t of o){if(r.signal.aborted)return;this.#s.set(i,a+=1);let o=this.#g(e,t);if(o!==void 0&&await o,isCurrentTurnBoundaryEvent(t)&&!(t.type===`session.waiting`&&hasPendingChildApproval(n))){this.#p(e,!0);return}}}catch{}finally{r.abort(),this.#o.get(e)===r&&this.#o.delete(e)}})()}#f(e,t,n){let r=t.tools.get(n.childCallId),i=r??{toolName:n.toolName,input:n.input,status:n.status};if(r){let e=r.status===`done`||r.status===`failed`||r.status===`rejected`;if(n.status===`approval-requested`&&!e)r.status=n.status;else{let e={preparing:0,"approval-requested":1,executing:2,done:3,failed:3,rejected:3};e[n.status]>e[r.status]&&(r.status=n.status)}n.input!==void 0&&(r.input=n.input)}else t.tools.set(n.childCallId,i);this.#t?.markChildToolCallId(n.childCallId),this.#t?.upsertTool({callId:e,subagentName:t.name,childCallId:n.childCallId,toolName:i.toolName,input:i.input,status:i.status})}#p(e,t){let n=this.#i.get(e);if(n&&n.status!==`authoritative`&&(t||n.status!==`provisional`)){n.status=t?`authoritative`:`provisional`;for(let[t,r]of n.steps)r.finalized||(r.finalized=!0,this.#t?.upsertStep({callId:e,subagentName:n.name,sectionKey:t,reasoning:r.reasoning,message:r.message,finalized:!0}));n.currentSectionKey=null,this.#h(e,n),this.#t?.complete({authoritative:t,callId:e}),t&&this.#m(e,n.childSessionId)}}#m(e,t){let n=(this.#l.get(t)??[]).filter(t=>t!==e);if(this.#c.get(t)!==e){n.length===0?this.#l.delete(t):this.#l.set(t,n);return}for(this.#c.delete(t);n.length>0;){let e=n.shift(),r=this.#i.get(e);if(r!==void 0&&r.status!==`authoritative`){n.length===0?this.#l.delete(t):this.#l.set(t,n),this.#c.set(t,e),this.#d(e);return}}this.#l.delete(t)}#h(e,t){for(let[n,r]of t.tools)r.status===`preparing`&&(t.tools.delete(n),this.#t?.removeTool({callId:e,childCallId:n}))}#g(e,t){let n=this.#i.get(e);if(!n)return;n.status===`provisional`&&(n.status=`open`,this.#t?.begin({callId:e,name:n.name}));let r=this.#t,emit=(t,i)=>{r?.upsertStep({callId:e,subagentName:n.name,sectionKey:t,reasoning:i.reasoning,message:i.message,finalized:i.finalized})},finalizeCurrent=()=>{if(n.currentSectionKey===null)return;let e=n.steps.get(n.currentSectionKey);e&&(e.finalized=!0,emit(n.currentSectionKey,e)),n.currentSectionKey=null};switch(t.type){case`reasoning.appended`:{let{key:e,step:r}=openCurrentSubagentSection(n);r.reasoning+=t.data.reasoningDelta,emit(e,r);break}case`reasoning.completed`:break;case`message.appended`:{let{key:e,step:r}=openCurrentSubagentSection(n);r.message+=t.data.messageDelta,emit(e,r);break}case`message.completed`:{let{key:e,step:r}=openCurrentSubagentSection(n);t.data.message!==null&&r.message.length===0&&(r.message=t.data.message),r.finalized=!0,emit(e,r),n.currentSectionKey=null;break}case`step.completed`:finalizeCurrent(),this.#h(e,n);break;case`actions.requested`:finalizeCurrent();for(let r of t.data.actions)r.kind===`tool-call`&&this.#f(e,n,{childCallId:r.callId,toolName:r.toolName,input:r.input,status:`executing`});break;case`input.requested`:finalizeCurrent();for(let r of t.data.requests)r.action.kind===`tool-call`&&this.#f(e,n,{childCallId:r.action.callId,toolName:r.action.toolName,input:r.action.input,status:`approval-requested`});break;case`action.result`:{let i=t.data.result;if(i.kind!==`tool-result`)break;let a=n.tools.get(i.callId);if(!a)break;switch(t.data.status){case`completed`:a.status=`done`,a.output=i.output;break;case`failed`:a.status=`failed`,a.errorText=this.#n(t);break;case`rejected`:a.status=`rejected`,a.errorText=this.#n(t)}let o={callId:e,subagentName:n.name,childCallId:i.callId,toolName:a.toolName,input:a.input,status:a.status};if(a.output!==void 0&&(o.output=a.output),a.errorText!==void 0&&(o.errorText=a.errorText),r?.upsertTool(o),t.data.status===`completed`)return this.#r?.(n.name,a.toolName,i.output);break}}}};function hasPendingChildApproval(e){return[...e.tools.values()].some(e=>e.status===`approval-requested`)}function openCurrentSubagentSection(e){e.currentSectionKey===null&&(e.currentSectionKey=e.nextSectionKey++,e.steps.set(e.currentSectionKey,{reasoning:``,message:``,finalized:!1}));let t=e.steps.get(e.currentSectionKey);if(!t)throw Error(`invariant: subagent section state missing for current key`);return{key:e.currentSectionKey,step:t}}export{SubagentPump};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ActivityObserverConfig, SessionCallback } from "#channel/types.js";
|
|
2
|
-
type BoundActivityObserverConfig = ActivityObserverConfig & {
|
|
3
|
-
readonly workIdentity: NonNullable<ActivityObserverConfig["workIdentity"]>;
|
|
4
|
-
};
|
|
5
|
-
export declare function parseActivityObserverField(value: unknown): BoundActivityObserverConfig | Response | undefined;
|
|
6
|
-
export declare function validateActivityObserverBinding(activityObserver: BoundActivityObserverConfig, callback: SessionCallback | undefined): Response | undefined;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{parseActivitySink}from"#channel/activity-sink.js";import{parseActivityWorkIdentityV1}from"#protocol/activity.js";function parseActivityObserverField(e){if(e!==void 0){if(typeof e!=`object`||!e)return invalidActivityObserver();try{let t=parseActivitySink(Reflect.get(e,`sink`)),n=parseActivityWorkIdentityV1(Reflect.get(e,`workIdentity`));return t===void 0||n===void 0?invalidActivityObserver():{sink:t,workIdentity:n}}catch(e){return invalidActivityObserver(e instanceof Error?e.message:`Invalid activity observer configuration.`)}}}function validateActivityObserverBinding(e,t){if(t===void 0)return invalidBinding(`Activity observer configuration requires a delegated session callback.`);if(e.workIdentity.callId!==t.callId)return invalidBinding(`Activity observer callId must match the delegated session callback.`);if(e.workIdentity.name!==t.subagentName)return invalidBinding(`Activity observer name must match the delegated session callback.`);if(new URL(e.sink.url).origin!==new URL(t.url).origin)return invalidBinding(`Activity observer sink must share the delegated callback origin.`)}function invalidActivityObserver(e=`Invalid activity observer configuration.`){return Response.json({error:e,ok:!1},{status:400})}function invalidBinding(e){return Response.json({error:e,ok:!1},{status:400})}export{parseActivityObserverField,validateActivityObserverBinding};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { UserContent } from "ai";
|
|
2
|
-
import type { TaskDeliveryPolicy, TurnPolicy } from "#channel/types.js";
|
|
3
|
-
export declare function parseTaskDeliveryPolicyField(value: unknown, message: string | UserContent | undefined): TaskDeliveryPolicy | undefined | Response;
|
|
4
|
-
export declare function parseTurnPolicyField(value: unknown): TurnPolicy | Response | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function parseTaskDeliveryPolicyField(e,t){if(e!==void 0)return e!==`auto`&&e!==`cohort`?Response.json({error:`Expected 'taskDeliveryPolicy' to be either 'auto' or 'cohort'.`,ok:!1},{status:400}):t===void 0?Response.json({error:`'taskDeliveryPolicy' requires a non-empty 'message'.`,ok:!1},{status:400}):e}function parseTurnPolicyField(e){if(e!==void 0)return e===`queue`||e===`steer`?e:Response.json({error:`Expected 'turnPolicy' to be either 'queue' or 'steer'.`,ok:!1},{status:400})}export{parseTaskDeliveryPolicyField,parseTurnPolicyField};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { DeliverHookPayload } from "#channel/types.js";
|
|
2
|
-
import type { MatchedAuthorizationCallback } from "#execution/authorization-callback-match.js";
|
|
3
|
-
import type { PendingAuthorizationState } from "#harness/authorization.js";
|
|
4
|
-
import type { ContextContainer } from "#context/container.js";
|
|
5
|
-
import type { SessionStateMap } from "#harness/types.js";
|
|
6
|
-
import type { UnstampedMessageStreamEvent } from "#protocol/message.js";
|
|
7
|
-
export declare function updateActivityRootForDelivery(input: {
|
|
8
|
-
readonly activeTurnId: string;
|
|
9
|
-
readonly ctx: ContextContainer;
|
|
10
|
-
readonly delivery?: DeliverHookPayload;
|
|
11
|
-
readonly sessionState: SessionStateMap | undefined;
|
|
12
|
-
readonly taskRootTurnId?: string;
|
|
13
|
-
}): void;
|
|
14
|
-
export declare function restoreAuthorizationActivity(input: {
|
|
15
|
-
readonly ctx: ContextContainer;
|
|
16
|
-
readonly matches: readonly MatchedAuthorizationCallback[];
|
|
17
|
-
readonly pending: PendingAuthorizationState;
|
|
18
|
-
}): readonly string[];
|
|
19
|
-
export declare function updateActivityBlockers(ctx: ContextContainer, event: UnstampedMessageStreamEvent): void;
|
|
20
|
-
export declare function clearActivityBlockers(ctx: ContextContainer, ids: readonly string[]): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ActivityObserverKey,ActivityPendingBlockersKey,ActivityRootTurnIdKey}from"#context/keys.js";import{activityRequestIdsForRootTurn,activityRootTurnIdForInputResponses}from"#harness/pending-input-batches.js";function updateActivityRootForDelivery(e){if(!e.ctx.has(ActivityObserverKey))return;if(e.taskRootTurnId!==void 0){e.ctx.set(ActivityRootTurnIdKey,e.taskRootTurnId);return}let t=e.delivery;if(t===void 0)return;if(t.payloads.some(e=>e.message!==void 0)&&t.taskDeliveryId===void 0){e.ctx.set(ActivityRootTurnIdKey,e.activeTurnId),e.ctx.delete(ActivityPendingBlockersKey);return}let n=new Set(t.payloads.flatMap(e=>(e.inputResponses??[]).map(e=>e.requestId)));if(n.size===0)return;let r=activityRootTurnIdForInputResponses(e.sessionState,n)??e.ctx.get(ActivityRootTurnIdKey)??e.activeTurnId;e.ctx.set(ActivityRootTurnIdKey,r),e.ctx.set(ActivityPendingBlockersKey,activityRequestIdsForRootTurn(e.sessionState,r))}function restoreAuthorizationActivity(e){let t=e.matches.map(e=>e.result.attemptId),n=t.map(t=>e.pending.activityRootTurnIds?.[t]).find(Boolean);return n!==void 0&&(e.ctx.set(ActivityRootTurnIdKey,n),e.ctx.set(ActivityPendingBlockersKey,Object.entries(e.pending.activityRootTurnIds??{}).flatMap(([e,t])=>t===n?[e]:[]))),clearActivityBlockers(e.ctx,t),t}function updateActivityBlockers(e,t){e.has(ActivityObserverKey)&&(t.type===`input.requested`?addActivityBlockers(e,t.data.requests.map(e=>e.requestId)):t.type===`input.resolved`?clearActivityBlockers(e,t.data.resolutions.map(e=>e.requestId)):t.type===`authorization.required`?addActivityBlockers(e,[authorizationBlockerId(t)]):t.type===`authorization.completed`&&clearActivityBlockers(e,[authorizationBlockerId(t)]))}function clearActivityBlockers(e,t){let n=new Set(t),r=(e.get(ActivityPendingBlockersKey)??[]).filter(e=>!n.has(e));r.length===0?e.delete(ActivityPendingBlockersKey):e.set(ActivityPendingBlockersKey,r)}function addActivityBlockers(e,t){e.set(ActivityPendingBlockersKey,[...new Set([...e.get(ActivityPendingBlockersKey)??[],...t])])}function authorizationBlockerId(e){return e.data.attemptId??e.data.candidateId??`${e.data.turnId}:${String(e.data.stepIndex)}:${e.data.name}`}export{clearActivityBlockers,restoreAuthorizationActivity,updateActivityBlockers,updateActivityRootForDelivery};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ActivityBatchV1, ActivitySnapshotV1 } from "#protocol/activity.js";
|
|
2
|
-
export interface ActivityCollectorInput {
|
|
3
|
-
readonly expiresAt: string;
|
|
4
|
-
readonly serializedContext: Record<string, unknown>;
|
|
5
|
-
readonly token: string;
|
|
6
|
-
}
|
|
7
|
-
/** Independently owns activity reduction and provider presentation for one root session. */
|
|
8
|
-
export declare function activityCollectorWorkflow(input: ActivityCollectorInput): Promise<void>;
|
|
9
|
-
export declare function reduceCollectorActivity(snapshot: ActivitySnapshotV1, batch: ActivityBatchV1): {
|
|
10
|
-
readonly presentationChanged: boolean;
|
|
11
|
-
readonly snapshot: ActivitySnapshotV1;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createHook,sleep}from"#compiled/@workflow/core/index.js";import{claimHookOwnership,isHookConflictError}from"#execution/hook-ownership.js";import{createActivitySnapshot,reduceActivityBatch}from"#execution/session-activity.js";import{disposeSessionActivityStep,renderSessionActivityStep}from"#execution/session-activity-renderer-step.js";async function activityCollectorWorkflow(e){"use workflow";let t=createHook({token:e.token}),n=t[Symbol.asyncIterator](),r,i=sleep(new Date(e.expiresAt)).then(()=>({kind:`expired`})),a=createActivitySnapshot(),o={};try{await claimHookOwnership(t)}catch(e){if(isHookConflictError(e))return;throw e}try{for(;;){r??=n.next();let t=await Promise.race([r.then(e=>({kind:`batch`,value:e})),i]);if(t.kind===`expired`||t.value.done===!0)break;r=void 0;let s=reduceCollectorActivity(a,t.value.value);if(a=s.snapshot,!s.presentationChanged)continue;let c=sleep(350).then(()=>({kind:`render`}));for(;;){r??=n.next();let e=await Promise.race([r.then(e=>({kind:`batch`,value:e})),c,i]);if(e.kind===`expired`)return;if(e.kind===`render`||e.value.done===!0)break;r=void 0,a=reduceActivityBatch(a,e.value.value)}o=(await renderSessionActivityStep({rendererStates:o,serializedContext:e.serializedContext,snapshot:a})).rendererStates}}finally{await disposeSessionActivityStep({rendererStates:o,serializedContext:e.serializedContext}).catch(()=>{})}}function reduceCollectorActivity(e,t){let n=e.revision,r=reduceActivityBatch(e,t);return{presentationChanged:r.revision!==n,snapshot:r}}activityCollectorWorkflow.workflowId=`workflow//eve//activityCollectorWorkflow`;export{activityCollectorWorkflow,reduceCollectorActivity};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ActivityEventV1, ActivityWorkIdentityV1 } from "#protocol/activity.js";
|
|
2
|
-
import type { UnstampedMessageStreamEvent } from "#protocol/message.js";
|
|
3
|
-
export declare function projectActivityEvents(input: {
|
|
4
|
-
readonly at: string;
|
|
5
|
-
readonly event: UnstampedMessageStreamEvent;
|
|
6
|
-
readonly eventId?: string;
|
|
7
|
-
readonly lineage: ActivityWorkIdentityV1;
|
|
8
|
-
}): readonly ActivityEventV1[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{normalizePresentationText}from"#shared/presentation-text.js";import{deriveChildActivityWorkId}from"#execution/activity-work-id.js";function projectActivityEvents(e){let{event:t,lineage:n}=e;if(t.type===`actions.requested`)return t.data.actions.flatMap(r=>{if(r.kind===`subagent-call`||r.kind===`remote-agent-call`)return[];let i=r.kind===`load-skill`?`skill`:`tool`,a=r.kind===`load-skill`?`load_skill`:r.toolName,o=normalizePresentationText(a)||(i===`skill`?`Skill`:`Tool`),s=actionId(n.id,r.callId),c=activityLabel(t.data.presentation?.[r.callId]?.label);return[{action:{id:s,kind:i,name:o,parentWorkId:n.id,rootTurnId:n.rootTurnId,stepIndex:t.data.stepIndex},eventId:`${s}:started`,kind:`action.started`,startedAt:e.at},...c===void 0?[]:[{actionId:s,eventId:`${s}:label`,kind:`action.label.updated`,label:c}]]});if(t.type===`action.partial`){let r=actionId(n.id,t.data.result.callId),i=activityLabel(t.data.presentation?.[t.data.result.callId]?.label);return i===void 0?[]:[{actionId:r,eventId:`${r}:update:${e.eventId??e.at}`,kind:`action.label.updated`,label:i}]}if(t.type===`action.result`){let r=t.data.result;if(r.kind===`subagent-result`){if(`backgroundTask`in r&&r.backgroundTask!==void 0)return[];let t=deriveChildActivityWorkId({callId:r.callId,parentSessionId:n.sessionId??n.rootSessionId,parentTurnId:n.turnId??n.rootTurnId}),i=r.origin===`dispatch`?`failed`:r.outcome.result.kind===`succeeded`?`completed`:r.outcome.result.kind===`cancelled`?`cancelled`:`failed`;return[{eventId:`${t}:settled:${i}`,kind:`work.settled`,outcome:i,settledAt:e.at,workId:t}]}let i=actionId(n.id,r.callId),a=activityLabel(t.data.presentation?.[r.callId]?.label);return[...a===void 0?[]:[{actionId:i,eventId:`${i}:result:${e.eventId??e.at}`,kind:`action.label.updated`,label:a}],{actionId:i,eventId:`${i}:settled:${t.data.status}`,kind:`action.settled`,outcome:t.data.status,settledAt:e.at}]}if(t.type===`authorization.required`){let r=blockerId(`authorization`,n.id,t.data.attemptId??t.data.candidateId??`${t.data.turnId}:${String(t.data.stepIndex)}:${t.data.name}`);return[{blocker:{id:r,kind:`authorization`,label:activityLabel(t.data.authorization?.displayName??t.data.name),parentWorkId:n.id,rootTurnId:n.rootTurnId},eventId:`${r}:started`,kind:`blocker.started`,startedAt:e.at}]}if(t.type===`authorization.completed`){let r=blockerId(`authorization`,n.id,t.data.attemptId??t.data.candidateId??`${t.data.turnId}:${String(t.data.stepIndex)}:${t.data.name}`),i=t.data.outcome===`authorized`?`completed`:t.data.outcome===`failed`?`failed`:`cancelled`;return[{blockerId:r,eventId:`${r}:settled:${i}`,kind:`blocker.settled`,outcome:i,settledAt:e.at}]}if(t.type===`approval.candidate`&&t.data.outcome===`pending`){let r=blockerId(`approval`,n.id,t.data.requestId);return[{blocker:{id:r,kind:`approval`,parentWorkId:n.id,rootTurnId:n.rootTurnId},eventId:`${r}:started`,kind:`blocker.started`,startedAt:e.at}]}if(t.type===`approval.settled`){let r=blockerId(`approval`,n.id,t.data.requestId),i=t.data.outcome===`approved`?`completed`:`cancelled`;return[{blockerId:r,eventId:`${r}:settled:${i}`,kind:`blocker.settled`,outcome:i,settledAt:e.at}]}if(t.type===`input.requested`)return t.data.requests.map(t=>{let r=t.kind===`tool-approval`?`approval`:`input`,i=blockerId(r,n.id,t.requestId);return{blocker:{id:i,kind:r,label:activityLabel(t.prompt),parentActionId:actionId(n.id,t.action.callId),parentWorkId:n.id,rootTurnId:n.rootTurnId},eventId:`${i}:started`,kind:`blocker.started`,startedAt:e.at}});if(t.type===`input.resolved`)return t.data.resolutions.map(t=>{let r=blockerId(t.kind===`tool-approval`?`approval`:`input`,n.id,t.requestId),i=t.outcome===`answered`||t.outcome===`approved`?`completed`:t.outcome===`invalid`?`failed`:`cancelled`;return{blockerId:r,eventId:`${r}:settled:${i}`,kind:`blocker.settled`,outcome:i,settledAt:e.at}});if(n.kind===`root-turn`&&(t.type===`turn.completed`||t.type===`turn.failed`||t.type===`turn.cancelled`)){let r=t.type===`turn.completed`?`completed`:t.type===`turn.failed`?`failed`:`cancelled`;return[{eventId:`${n.id}:settled:${r}`,kind:`work.settled`,outcome:r,settledAt:e.at,workId:n.id}]}return[]}function activityLabel(e){if(e===void 0)return;let t=normalizePresentationText(e);return t===``?void 0:t}function actionId(e,t){return`action:${e}:${t}`}function blockerId(e,t,n){return`${e}:${t}:${n}`}export{projectActivityEvents};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{parseActivityBatchV1}from"#protocol/activity.js";import{resumeHook}from"#internal/workflow/runtime.js";const MAX_ACTIVITY_REQUEST_BYTES=131072;async function handleActivityRequest(e,t){let n=t.params.token;if(typeof n!=`string`||n.length<32||n.length>500)return Response.json({error:`Invalid activity sink.`,ok:!1},{status:400});if(!e.headers.get(`content-type`)?.toLowerCase().startsWith(`application/json`))return Response.json({error:`Activity sinks require JSON.`,ok:!1},{status:400});let r=Number(e.headers.get(`content-length`));if(Number.isFinite(r)&&r>MAX_ACTIVITY_REQUEST_BYTES)return Response.json({error:`Activity sink body is too large.`,ok:!1},{status:400});let i;try{i=await e.text()}catch{return Response.json({error:`Invalid activity sink body.`,ok:!1},{status:400})}if(new TextEncoder().encode(i).byteLength>MAX_ACTIVITY_REQUEST_BYTES)return Response.json({error:`Activity sink body is too large.`,ok:!1},{status:400});let a;try{a=JSON.parse(i)}catch{return Response.json({error:`Invalid JSON body.`,ok:!1},{status:400})}let o=parseActivityBatchV1(a);if(o===void 0)return Response.json({error:`Invalid activity batch.`,ok:!1},{status:400});try{await resumeHook(n,o)}catch{return Response.json({error:`Activity collector not found.`,ok:!1},{status:404})}return Response.json({ok:!0},{status:202})}export{handleActivityRequest};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function deriveRootTurnActivityWorkId(input: {
|
|
2
|
-
readonly sessionId: string;
|
|
3
|
-
readonly turnId: string;
|
|
4
|
-
}): string;
|
|
5
|
-
export declare function deriveChildActivityWorkId(input: {
|
|
6
|
-
readonly callId: string;
|
|
7
|
-
readonly parentSessionId: string;
|
|
8
|
-
readonly parentTurnId: string;
|
|
9
|
-
}): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createHash}from"node:crypto";import{deriveAgentOperationId}from"#subagents/handles/operation-id.js";function deriveRootTurnActivityWorkId(e){return`root:${hashTuple([e.sessionId,e.turnId])}`}function deriveChildActivityWorkId(e){return`work:${deriveAgentOperationId(e)}`}function hashTuple(e){return createHash(`sha256`).update(JSON.stringify(e)).digest(`hex`)}export{deriveChildActivityWorkId,deriveRootTurnActivityWorkId};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ActivityObserverConfig } from "#channel/types.js";
|
|
2
|
-
import type { Session } from "#context/keys.js";
|
|
3
|
-
import type { ActivityWorkIdentityV1, ActivityWorkKind } from "#protocol/activity.js";
|
|
4
|
-
export declare function deriveRootTurnWorkIdentity(session: Session): ActivityWorkIdentityV1;
|
|
5
|
-
export declare function deriveBackgroundTaskActivityObserver(input: {
|
|
6
|
-
readonly activityObserver: ActivityObserverConfig | undefined;
|
|
7
|
-
readonly callId: string;
|
|
8
|
-
readonly label?: string;
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly parentSessionId: string;
|
|
11
|
-
readonly parentTurnId: string;
|
|
12
|
-
readonly rootSessionId: string;
|
|
13
|
-
}): ActivityObserverConfig | undefined;
|
|
14
|
-
export declare function deriveChildActivityObserverConfig(input: {
|
|
15
|
-
readonly callId: string;
|
|
16
|
-
readonly kind: Exclude<ActivityWorkKind, "root-turn">;
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly parentSessionId: string;
|
|
19
|
-
readonly parentTurnId: string;
|
|
20
|
-
readonly activityObserver: ActivityObserverConfig | undefined;
|
|
21
|
-
}): ActivityObserverConfig | undefined;
|
|
22
|
-
export declare function deriveChildWorkIdentity(input: {
|
|
23
|
-
readonly callId: string;
|
|
24
|
-
readonly kind: Exclude<ActivityWorkKind, "root-turn">;
|
|
25
|
-
readonly label?: string;
|
|
26
|
-
readonly name: string;
|
|
27
|
-
readonly parentSessionId: string;
|
|
28
|
-
readonly parentTurnId: string;
|
|
29
|
-
readonly parentWork: ActivityWorkIdentityV1;
|
|
30
|
-
}): ActivityWorkIdentityV1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{deriveChildActivityWorkId,deriveRootTurnActivityWorkId}from"#execution/activity-work-id.js";function deriveRootTurnWorkIdentity(e){return{id:deriveRootTurnActivityWorkId({sessionId:e.sessionId,turnId:e.turn.id}),kind:`root-turn`,rootSessionId:e.sessionId,rootTurnId:e.turn.id,sessionId:e.sessionId,turnId:e.turn.id}}function deriveBackgroundTaskActivityObserver(e){if(e.activityObserver===void 0)return;let t=e.activityObserver.workIdentity??{id:deriveRootTurnActivityWorkId({sessionId:e.parentSessionId,turnId:e.parentTurnId}),kind:`root-turn`,rootSessionId:e.rootSessionId,rootTurnId:e.parentTurnId,sessionId:e.parentSessionId,turnId:e.parentTurnId};return{sink:e.activityObserver.sink,workIdentity:deriveChildWorkIdentity({...e,kind:`task`,parentWork:t})}}function deriveChildActivityObserverConfig(e){if(e.activityObserver?.workIdentity!==void 0)return{sink:e.activityObserver.sink,workIdentity:deriveChildWorkIdentity({...e,parentWork:e.activityObserver.workIdentity})}}function deriveChildWorkIdentity(e){return{callId:e.callId,id:deriveChildActivityWorkId(e),kind:e.kind,label:e.label,name:e.name,parentId:e.parentWork.id,rootSessionId:e.parentWork.rootSessionId,rootTurnId:e.parentWork.rootTurnId}}export{deriveBackgroundTaskActivityObserver,deriveChildActivityObserverConfig,deriveChildWorkIdentity,deriveRootTurnWorkIdentity};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SessionStateTransition } from "#execution/session/state-cursor.js";
|
|
2
|
-
import { type DurableSessionState } from "#execution/durable-session-store.js";
|
|
3
|
-
/** Cooperatively cancels every task currently indexed by a durable session. */
|
|
4
|
-
export declare function cancelAllIndexedSessionTasksStep(input: {
|
|
5
|
-
readonly serializedContext?: Record<string, unknown>;
|
|
6
|
-
readonly sessionState: DurableSessionState;
|
|
7
|
-
}): Promise<SessionStateTransition>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createLogger,logError}from"#internal/logging.js";import{BundleKey}from"#runtime/sessions/runtime-context-keys.js";import{deserializeContext}from"#context/serialize.js";import{readDurableSession}from"#execution/durable-session-store.js";import{getBackgroundTasks}from"#harness/workflow-tool-runs.js";import{recordTerminalTaskViewsStep}from"#execution/tasks/parent/hitl-proxy-steps.js";import{resolveEffectiveAgentRuntime}from"#execution/effective-agent-config.js";import{hydrateDurableSession}from"#execution/session.js";import{cancelOwnedTask}from"#execution/tasks/parent/dispatch.js";import{cancelBackgroundAgentTask}from"#execution/tools/subagent/task-cancel.js";const log=createLogger(`execution.cancel-indexed-session-tasks`);async function cancelAllIndexedSessionTasksStep(e){"use step";let t;try{t=readDurableSession(e.sessionState)}catch(t){return logError(log,`failed to read the session for indexed task cancellation`,t,{parentSessionId:e.sessionState.sessionId}),{sessionState:e.sessionState}}let n,r;try{n=getBackgroundTasks(t.state),r=n.query({state:`working`})}catch(n){return logError(log,`failed to read the task index`,n,{parentSessionId:t.sessionId}),{sessionState:e.sessionState}}let i=[];try{i=n.query({state:`cancelled`})}catch(e){logError(log,`failed to read cancelled task outcomes`,e,{parentSessionId:t.sessionId})}let a=[...r,...i].map(e=>e.run);if(a.length===0)return{sessionState:e.sessionState};if(e.serializedContext===void 0)throw Error(`Indexed task cancellation requires serialized runtime context.`);let o=await deserializeContext(e.serializedContext),s=o.require(BundleKey),c=resolveEffectiveAgentRuntime(s,o),l=hydrateDurableSession({durable:t,turnAgent:c.turnAgent}),u=[];for(let n of a)try{let t=await cancelOwnedTask({cancelOwnedWork:cancelBackgroundAgentTask,entry:n,serializedContext:e.serializedContext,session:l});u.push(t)}catch(e){logError(log,`failed to cancel indexed task`,e,{parentSessionId:t.sessionId,taskId:n.task.taskId})}return await recordTerminalTaskViewsStep({serializedContext:e.serializedContext,sessionState:e.sessionState,views:u})}export{cancelAllIndexedSessionTasksStep};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { RuntimeRemoteAgentDispatchRequest, RuntimeSubagentDispatchRequest, RuntimeSubagentDispatchFailure } from "#shared/action-types.js";
|
|
2
|
-
export declare function createUnavailableDynamicSubagentResult(action: RuntimeSubagentDispatchRequest | RuntimeRemoteAgentDispatchRequest): RuntimeSubagentDispatchFailure;
|
|
3
|
-
export declare function getSubagentName(action: RuntimeSubagentDispatchRequest | RuntimeRemoteAgentDispatchRequest): string;
|
|
4
|
-
export declare function createRemoteAgentStartFailureResult(input: {
|
|
5
|
-
readonly action: RuntimeRemoteAgentDispatchRequest;
|
|
6
|
-
readonly error: unknown;
|
|
7
|
-
}): RuntimeSubagentDispatchFailure;
|
|
8
|
-
export declare function createRecursiveAgentRootOnlyResult(action: RuntimeSubagentDispatchRequest): RuntimeSubagentDispatchFailure;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{toErrorMessage}from"#shared/errors.js";import{REMOTE_AGENT_START_FAILED}from"#subagents/agent-handle-errors.js";function createUnavailableDynamicSubagentResult(e){let t=getSubagentName(e);return{callId:e.callId,isError:!0,kind:`subagent-result`,origin:`dispatch`,output:{code:`SUBAGENT_UNAVAILABLE`,message:`Subagent "${t}" is not available in the current session context.`},subagentName:t}}function getSubagentName(e){return e.kind===`remote-agent-call`?e.remoteAgentName:e.subagentName}function createRemoteAgentStartFailureResult(e){return{callId:e.action.callId,isError:!0,kind:`subagent-result`,origin:`dispatch`,output:{code:REMOTE_AGENT_START_FAILED,message:toErrorMessage(e.error)},subagentName:e.action.remoteAgentName}}function createRecursiveAgentRootOnlyResult(e){return{callId:e.callId,isError:!0,kind:`subagent-result`,origin:`dispatch`,output:{code:`RECURSIVE_AGENT_ROOT_ONLY`,message:`The built-in "agent" tool is only available to the root session.`},subagentName:e.subagentName}}export{createRecursiveAgentRootOnlyResult,createRemoteAgentStartFailureResult,createUnavailableDynamicSubagentResult,getSubagentName};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type AgentIdentity, type StartOperation } from "#subagents/handles/store.js";
|
|
2
|
-
/**
|
|
3
|
-
* Mints deterministic parent-controlled ownership data before the child exists,
|
|
4
|
-
* so durable step replays derive the same handle record.
|
|
5
|
-
*/
|
|
6
|
-
export declare function mintStartOperation(input: {
|
|
7
|
-
readonly callId: string;
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly nodeId: string;
|
|
10
|
-
readonly parentSessionId: string;
|
|
11
|
-
readonly parentTurnId: string;
|
|
12
|
-
}): {
|
|
13
|
-
readonly identity: AgentIdentity;
|
|
14
|
-
readonly operation: StartOperation;
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{deriveAgentOperationId}from"#subagents/handles/operation-id.js";import{deriveAgentId}from"#subagents/handles/store.js";function mintStartOperation(e){let t=deriveAgentOperationId({callId:e.callId,parentSessionId:e.parentSessionId,parentTurnId:e.parentTurnId});return{identity:{id:deriveAgentId(e.name,t),name:e.name,nodeId:e.nodeId},operation:{callId:e.callId,id:t,kind:`start`,parentTurnId:e.parentTurnId}}}export{mintStartOperation};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ChannelAdapter, type ChannelAdapterContext } from "#channel/adapter.js";
|
|
2
|
-
import type { ContextContainer } from "#context/container.js";
|
|
3
|
-
import { type MessageStreamEvent, type UnstampedMessageStreamEvent } from "#protocol/message.js";
|
|
4
|
-
interface ChannelEventInput {
|
|
5
|
-
readonly adapter: ChannelAdapter;
|
|
6
|
-
readonly adapterCtx: ChannelAdapterContext;
|
|
7
|
-
readonly ctx: ContextContainer;
|
|
8
|
-
readonly deliveryIds?: readonly string[];
|
|
9
|
-
readonly event: UnstampedMessageStreamEvent;
|
|
10
|
-
readonly writer: WritableStreamDefaultWriter<Uint8Array>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Publishes an already-routed event, then runs its stream-event hooks on the
|
|
14
|
-
* stamped event. Callers with subscribed hooks must hold an active context scope.
|
|
15
|
-
*/
|
|
16
|
-
export declare function publishChannelEvent(input: ChannelEventInput): Promise<MessageStreamEvent>;
|
|
17
|
-
/**
|
|
18
|
-
* Publishes without hooks. Only `createSessionEventSink` uses this: turn steps
|
|
19
|
-
* run memory lifecycle before hooks, and subagent notifications release the
|
|
20
|
-
* writer before hooks. Both dispatch hooks themselves after `sink.emit`.
|
|
21
|
-
*/
|
|
22
|
-
export declare function writeChannelEvent(input: ChannelEventInput): Promise<MessageStreamEvent>;
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{callAdapterEventHandler}from"#channel/adapter.js";import{encodeMessageStreamEvent,stampMessageStreamEvent}from"#protocol/message.js";import{BundleKey}from"#runtime/sessions/runtime-context-keys.js";import{dispatchStreamEventHooks}from"#context/hook-lifecycle.js";import{setChannelContext}from"#execution/channel-context.js";async function publishChannelEvent(e){let t=await writeChannelEvent(e);return await dispatchStreamEventHooks({cancelTurn:void 0,ctx:e.ctx,registry:e.ctx.require(BundleKey).hookRegistry,event:t}),t}async function writeChannelEvent(e){let t=await callAdapterEventHandler(e.adapter,e.event,e.adapterCtx);setChannelContext(e.ctx,{...e.adapter,state:{...e.adapterCtx.state}});let n=stampMessageStreamEvent(t,e.deliveryIds);return await e.writer.write(encodeMessageStreamEvent(n)),n}export{publishChannelEvent,writeChannelEvent};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { UnstampedMessageStreamEvent } from "#protocol/message.js";
|
|
2
|
-
/** Hides a scheduled background launch while preserving its turn boundary. */
|
|
3
|
-
export declare function scheduledLaunchDeliveryEvent(event: UnstampedMessageStreamEvent, input: {
|
|
4
|
-
readonly isFirstTurn: boolean;
|
|
5
|
-
readonly isScheduled: boolean;
|
|
6
|
-
readonly taskPhase: "none" | "initiating" | "pending" | "settled" | undefined;
|
|
7
|
-
}): UnstampedMessageStreamEvent | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function scheduledLaunchDeliveryEvent(e,t){if(!t.isFirstTurn||!t.isScheduled||t.taskPhase!==`initiating`)return e;if(e.type!==`message.appended`&&e.type!==`result.completed`)return e.type===`message.completed`?{...e,data:{...e.data,message:null}}:e}export{scheduledLaunchDeliveryEvent};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { buildAdapterContext } from "#channel/adapter-context.js";
|
|
2
|
-
import type { ChannelAdapter } from "#channel/adapter.js";
|
|
3
|
-
import type { ContextContainer } from "#context/container.js";
|
|
4
|
-
import { type MessageStreamEvent, type UnstampedMessageStreamEvent } from "#protocol/message.js";
|
|
5
|
-
interface SessionEventSinkInput {
|
|
6
|
-
readonly adapter: ChannelAdapter;
|
|
7
|
-
readonly ctx: ContextContainer;
|
|
8
|
-
readonly isFirstTurn: boolean;
|
|
9
|
-
readonly sessionWritable: WritableStream<Uint8Array>;
|
|
10
|
-
readonly sessionId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface PublishedSessionEvent {
|
|
13
|
-
readonly event: MessageStreamEvent;
|
|
14
|
-
readonly suppressed: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface SessionEventSink {
|
|
17
|
-
readonly adapterCtx: ReturnType<typeof buildAdapterContext>;
|
|
18
|
-
emit(event: UnstampedMessageStreamEvent): Promise<PublishedSessionEvent>;
|
|
19
|
-
/** Closes the parent stream; only a terminal `done` step does this. */
|
|
20
|
-
close(): Promise<void>;
|
|
21
|
-
/** Releases the writer lock so the next step can acquire it. Safe after `close()`. */
|
|
22
|
-
release(): void;
|
|
23
|
-
}
|
|
24
|
-
/** Publishes events without executing hooks or preparing model context. */
|
|
25
|
-
export declare function createSessionEventSink(input: SessionEventSinkInput): SessionEventSink;
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ScheduleIdKey,TurnDeliveryIdsKey,TurnTaskDeliveryKey}from"#context/keys.js";import{stampMessageStreamEvent}from"#protocol/message.js";import{buildAdapterContext}from"#channel/adapter-context.js";import*as activityCohort from"#execution/activity-cohort.js";import{writeChannelEvent}from"#execution/publish-channel-event.js";import{observeSessionActivity}from"#execution/session-activity-projection.js";import{scheduledLaunchDeliveryEvent}from"#execution/scheduled-launch-delivery.js";import{forwardTaskEventToSessionCallback}from"#execution/task-event-callback.js";function createSessionEventSink(e){let{adapter:t,ctx:n}=e,r=buildAdapterContext(t,n),i=e.sessionWritable.getWriter(),deliver=async a=>{if(await forwardTaskEventToSessionCallback(n,a))return{event:stampMessageStreamEvent(a,n.get(TurnDeliveryIdsKey)),suppressed:!1};let o=scheduledLaunchDeliveryEvent(a,{isFirstTurn:e.isFirstTurn,isScheduled:n.get(ScheduleIdKey)!==void 0,taskPhase:n.get(TurnTaskDeliveryKey)});return o===void 0?{event:stampMessageStreamEvent(a,n.get(TurnDeliveryIdsKey)),suppressed:!0}:{event:await writeChannelEvent({adapter:t,adapterCtx:r,ctx:n,writer:i,event:o,deliveryIds:n.get(TurnDeliveryIdsKey)}),suppressed:!1}},a=!1,release=()=>{a||(a=!0,i.releaseLock())};return{adapterCtx:r,async emit(t){activityCohort.updateActivityBlockers(n,t);let r=await deliver(t);return observeSessionActivity({ctx:n,event:r.event,sessionId:e.sessionId}),r},close:async()=>{await i.close(),release()},release}}export{createSessionEventSink};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ContextContainer } from "#context/container.js";
|
|
2
|
-
import type { ActivityEventV1, ActivityWorkIdentityV1 } from "#protocol/activity.js";
|
|
3
|
-
import type { MessageStreamEvent } from "#protocol/message.js";
|
|
4
|
-
/** Projects one canonical session event into best-effort activity presentation. */
|
|
5
|
-
export declare function observeSessionActivity(input: {
|
|
6
|
-
readonly ctx: ContextContainer;
|
|
7
|
-
readonly event: MessageStreamEvent;
|
|
8
|
-
readonly sessionId: string;
|
|
9
|
-
}): Promise<void>;
|
|
10
|
-
export declare function projectSessionActivity(input: {
|
|
11
|
-
readonly event: MessageStreamEvent;
|
|
12
|
-
readonly rootTurnId?: string;
|
|
13
|
-
readonly sessionId: string;
|
|
14
|
-
readonly suppressRootSettlement?: boolean;
|
|
15
|
-
readonly workIdentity?: ActivityWorkIdentityV1;
|
|
16
|
-
}): readonly ActivityEventV1[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ActivityObserverKey,ActivityPendingBlockersKey,ActivityRootTurnIdKey,TurnTaskDeliveryKey}from"#context/keys.js";import{deriveRootTurnActivityWorkId}from"#execution/activity-work-id.js";import{projectActivityEvents}from"#execution/activity-events.js";import{submitActivity}from"#execution/submit-activity.js";async function observeSessionActivity(e){let t=e.ctx.get(ActivityObserverKey);if(t===void 0)return;let n=e.ctx.get(TurnTaskDeliveryKey);(t.workIdentity!==void 0||e.ctx.get(ActivityRootTurnIdKey)!==void 0||n!==`pending`&&n!==`settled`)&&await submitActivity({events:projectSessionActivity({event:e.event,rootTurnId:e.ctx.get(ActivityRootTurnIdKey),sessionId:e.sessionId,suppressRootSettlement:n===`initiating`||n===`pending`||(e.ctx.get(ActivityPendingBlockersKey)?.length??0)>0,workIdentity:t.workIdentity}),sink:t.sink})}function projectSessionActivity(e){let t=workFor(e);if(t===void 0)return[];let n=[];return(t.kind===`root-turn`&&e.event.type===`turn.started`||t.kind!==`root-turn`&&(e.event.type===`session.started`||e.event.type===`turn.started`))&&n.push({eventId:`${t.id}:started`,kind:`work.started`,startedAt:e.event.meta.at,work:t}),e.suppressRootSettlement===!0&&t.kind===`root-turn`&&(e.event.type===`turn.completed`||e.event.type===`turn.failed`||e.event.type===`turn.cancelled`)||n.push(...projectActivityEvents({at:e.event.meta.at,event:e.event,eventId:e.event.meta.id,lineage:t})),n}function workFor(e){let t=eventTurnId(e.event);if(e.workIdentity!==void 0)return{...e.workIdentity,sessionId:e.sessionId,turnId:t??e.workIdentity.turnId};if(t===void 0)return;let n=e.rootTurnId??t;return{id:deriveRootTurnActivityWorkId({sessionId:e.sessionId,turnId:n}),kind:`root-turn`,rootSessionId:e.sessionId,rootTurnId:n,sessionId:e.sessionId,turnId:t}}function eventTurnId(e){if(`data`in e&&`turnId`in e.data&&typeof e.data.turnId==`string`)return e.data.turnId}export{observeSessionActivity,projectSessionActivity};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ActivitySnapshotV1 } from "#protocol/activity.js";
|
|
2
|
-
export interface SessionActivityRenderState {
|
|
3
|
-
readonly rendererStates: Readonly<Record<string, unknown>>;
|
|
4
|
-
}
|
|
5
|
-
/** Runs channel-owned activity effects from collector-owned immutable context. */
|
|
6
|
-
export declare function renderSessionActivityStep(input: {
|
|
7
|
-
readonly rendererStates: Readonly<Record<string, unknown>>;
|
|
8
|
-
readonly serializedContext: Record<string, unknown>;
|
|
9
|
-
readonly snapshot: ActivitySnapshotV1;
|
|
10
|
-
}): Promise<SessionActivityRenderState>;
|
|
11
|
-
/** Best-effort cleanup of transient provider state when collector ownership expires. */
|
|
12
|
-
export declare function disposeSessionActivityStep(input: {
|
|
13
|
-
readonly rendererStates: Readonly<Record<string, unknown>>;
|
|
14
|
-
readonly serializedContext: Record<string, unknown>;
|
|
15
|
-
}): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createLogger,logError}from"#internal/logging.js";import{getChannelActivityPresentation}from"#channel/activity-renderer.js";import{ChannelKey}from"#runtime/sessions/runtime-context-keys.js";import{deserializeContext}from"#context/serialize.js";const log=createLogger(`execution.session-activity-renderer`);async function renderSessionActivityStep(e){"use step";let{adapter:t,destination:n,presentation:r}=await resolveActivityPresentation(e.serializedContext),i={...e.rendererStates};for(let a of r.renderers)for(let r=0;r<2;r+=1)try{i[a.id]=await a.render({destination:n,snapshot:e.snapshot,state:i[a.id]});break}catch(n){logError(log,`activity renderer failed`,n,{adapterKind:t.kind,attempt:r+1,rendererId:a.id,revision:e.snapshot.revision}),r===0&&await new Promise(e=>setTimeout(e,250))}return{rendererStates:i}}async function disposeSessionActivityStep(e){"use step";let{adapter:t,destination:n,presentation:r}=await resolveActivityPresentation(e.serializedContext);for(let i of r.renderers)if(i.dispose!==void 0)try{await i.dispose({destination:n,state:e.rendererStates[i.id]})}catch(e){logError(log,`activity renderer disposal failed`,e,{adapterKind:t.kind,rendererId:i.id})}}async function resolveActivityPresentation(e){let t=(await deserializeContext(e)).require(ChannelKey),n=getChannelActivityPresentation(t);if(n===void 0)throw Error(`Channel has no activity presentation.`);return{adapter:t,destination:n.destination(t.state),presentation:n}}export{disposeSessionActivityStep,renderSessionActivityStep};
|