eve 0.66.2 → 0.67.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 +38 -0
- package/dist/src/channel/channel-address.d.ts +0 -2
- package/dist/src/channel/channel-address.js +1 -1
- package/dist/src/channel/channel-operations.d.ts +0 -5
- package/dist/src/channel/channel-operations.js +1 -1
- package/dist/src/channel/compiled-channel.d.ts +8 -0
- package/dist/src/channel/compiled-channel.js +2 -2
- package/dist/src/channel/conversation-context.js +1 -1
- package/dist/src/channel/routes.d.ts +1 -2
- package/dist/src/channel/schedule.d.ts +2 -2
- package/dist/src/channel/schedule.js +1 -1
- package/dist/src/channel/types.d.ts +8 -13
- package/dist/src/chunks/{use-eve-agent-PbSMyJ6e.js → use-eve-agent-DzdyI97Z.js} +0 -5
- package/dist/src/chunks/{use-eve-agent-Di1u2zKu.js → use-eve-agent-OCHP4s0z.js} +0 -5
- package/dist/src/cli/acp/command.js +3 -3
- package/dist/src/cli/commands/logs.d.ts +3 -3
- package/dist/src/cli/commands/logs.js +1 -1
- package/dist/src/cli/commands/register-integration-commands.js +1 -1
- package/dist/src/cli/commands/registry-declared-setups.d.ts +0 -1
- package/dist/src/cli/commands/registry-declared-setups.js +1 -1
- package/dist/src/cli/commands/registry.d.ts +5 -1
- package/dist/src/cli/commands/registry.js +1 -1
- package/dist/src/cli/commands/trace.js +1 -1
- package/dist/src/cli/dev/command.d.ts +9 -5
- package/dist/src/cli/dev/command.js +1 -3
- package/dist/src/cli/dev/run-interactive-ui.d.ts +0 -1
- package/dist/src/cli/dev/run-interactive-ui.js +1 -1
- package/dist/src/cli/dev/tui/argument-typeahead.d.ts +1 -2
- package/dist/src/cli/dev/tui/argument-typeahead.js +2 -2
- package/dist/src/cli/dev/tui/blocks.d.ts +5 -1
- package/dist/src/cli/dev/tui/blocks.js +4 -4
- package/dist/src/cli/dev/tui/flow-drawer.d.ts +11 -0
- package/dist/src/cli/dev/tui/flow-drawer.js +1 -0
- package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
- package/dist/src/cli/dev/tui/prompt-commands.d.ts +199 -0
- package/dist/src/cli/dev/tui/prompt-commands.js +2 -2
- package/dist/src/cli/dev/tui/question-panel.d.ts +4 -4
- package/dist/src/cli/dev/tui/question-panel.js +1 -1
- package/dist/src/cli/dev/tui/registry-result-message.d.ts +15 -4
- package/dist/src/cli/dev/tui/registry-result-message.js +4 -4
- package/dist/src/cli/dev/tui/runner.d.ts +18 -6
- package/dist/src/cli/dev/tui/runner.js +3 -2
- package/dist/src/cli/dev/tui/setup-commands.d.ts +5 -22
- package/dist/src/cli/dev/tui/setup-commands.js +2 -1
- package/dist/src/cli/dev/tui/setup-flow.d.ts +2 -10
- package/dist/src/cli/dev/tui/setup-panel.d.ts +4 -23
- package/dist/src/cli/dev/tui/setup-panel.js +3 -3
- package/dist/src/cli/dev/tui/terminal-renderer.d.ts +11 -7
- package/dist/src/cli/dev/tui/terminal-renderer.js +11 -11
- package/dist/src/cli/dev/tui/theme.d.ts +1 -1
- package/dist/src/cli/dev/tui/tui-prompter.js +1 -1
- package/dist/src/cli/dev/tui/tui.js +1 -1
- package/dist/src/cli/dev/url-target.js +1 -1
- package/dist/src/cli/invoke/command.d.ts +2 -5
- package/dist/src/cli/invoke/command.js +1 -1
- package/dist/src/cli/invoke/invoke.d.ts +2 -2
- package/dist/src/cli/invoke/invoke.js +1 -1
- package/dist/src/cli/invoke/result.d.ts +14 -194
- package/dist/src/cli/invoke/result.js +1 -1
- package/dist/src/cli/run.d.ts +0 -4
- package/dist/src/cli/run.js +2 -2
- package/dist/src/cli/telemetry/index.js +1 -1
- package/dist/src/client/message-reducer.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +6 -6
- package/dist/src/compiled/@workflow/core/create-hook.d.ts +38 -1
- package/dist/src/compiled/@workflow/core/global.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/index.js +2 -2
- package/dist/src/compiled/@workflow/core/private.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +9 -0
- package/dist/src/compiled/@workflow/core/runtime/helpers.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/hook-wake.d.ts +89 -0
- package/dist/src/compiled/@workflow/core/runtime/open-hook-wait-state.d.ts +55 -0
- package/dist/src/compiled/@workflow/core/runtime/quickjs-runtime.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +8 -1
- package/dist/src/compiled/@workflow/core/runtime.js +4 -4
- package/dist/src/compiled/@workflow/core/serialization/types.d.ts +8 -0
- package/dist/src/compiled/@workflow/core/serialization.d.ts +8 -0
- package/dist/src/compiled/@workflow/core/serialization.js +1 -1
- package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/workflow.js +1 -1
- package/dist/src/compiled/@workflow/errors/index.d.ts +23 -0
- package/dist/src/compiled/@workflow/errors/index.js +1 -1
- package/dist/src/compiled/@workflow/world/events.d.ts +34 -0
- package/dist/src/compiled/@workflow/world/hooks.d.ts +27 -0
- package/dist/src/compiled/@workflow/world/index.d.ts +2 -2
- package/dist/src/compiled/@workflow/world/interfaces.d.ts +24 -0
- package/dist/src/compiled/@workflow/world/spec-version.d.ts +32 -11
- package/dist/src/compiled/@workflow/world-local/index.js +3 -3
- package/dist/src/compiled/@workflow/world-vercel/index.js +17 -17
- package/dist/src/compiled/_chunks/workflow/{attribute-changes-89Nwz7XW.js → attribute-changes-DzJovO_f.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/dist-BQSf8Hax.js +1 -0
- package/dist/src/compiled/_chunks/workflow/dist-BfMqXLK3.js +3 -0
- package/dist/src/compiled/_chunks/workflow/frames-qKc30rjg.js +3 -0
- package/dist/src/compiled/_chunks/workflow/{global-DIlFoH2w.js → global-BQnKzRXo.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{helpers-k3zcudWr.js → helpers-CNMO7zB1.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{logger-Bzc8jWWj.js → logger-BCEj9caG.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/resume-hook-QS_cMwHn.js +1 -0
- package/dist/src/compiled/_chunks/workflow/run-CA5wWV2S.js +1 -0
- package/dist/src/compiled/_chunks/workflow/serialization-CJ265vSe.js +3 -0
- package/dist/src/compiled/_chunks/workflow/sleep-CBn94Ayv.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{wait-until-DXLZx3tU.js → wait-until-Bo2U6ON9.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{ws-transport-BSM_Cl7a.js → ws-transport-BrsMYqJg.js} +1 -1
- package/dist/src/compiler/compile-from-memory.d.ts +0 -1
- package/dist/src/compiler/compile-from-memory.js +1 -1
- package/dist/src/compiler/extension-compatibility.d.ts +25 -18
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.d.ts +48 -14
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/compiler/normalize-channel.js +1 -1
- package/dist/src/compiler/normalize-connection.js +1 -1
- package/dist/src/compiler/normalize-manifest-helpers.js +1 -1
- package/dist/src/compiler/normalize-subagent.d.ts +0 -2
- package/dist/src/compiler/normalize-subagent.js +1 -1
- package/dist/src/compiler/remote-agent-node.d.ts +0 -2
- package/dist/src/compiler/remote-agent-node.js +1 -1
- package/dist/src/compiler/workspace-resources.js +1 -1
- package/dist/src/context/dynamic-subagent-lifecycle.js +1 -1
- package/dist/src/context/keys.d.ts +0 -3
- package/dist/src/context/keys.js +1 -1
- package/dist/src/context/memory-lifecycle.d.ts +1 -0
- package/dist/src/context/memory-lifecycle.js +1 -1
- package/dist/src/discover/project.js +1 -1
- package/dist/src/eve-channel/create-request.d.ts +0 -3
- package/dist/src/eve-channel/create-request.js +1 -1
- package/dist/src/eve-channel/index.js +1 -1
- package/dist/src/eve-channel/request.js +1 -1
- package/dist/src/eve-channel/types.d.ts +1 -1
- package/dist/src/execution/delegated-session-context.d.ts +2 -0
- package/dist/src/execution/delegated-session-context.js +1 -0
- package/dist/src/execution/dynamic-connections.d.ts +4 -1
- package/dist/src/execution/dynamic-connections.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/effective-agent-config.js +1 -1
- package/dist/src/execution/legacy-session/input.d.ts +0 -2
- package/dist/src/execution/legacy-session/input.js +1 -1
- package/dist/src/execution/legacy-session/prepare-step.d.ts +0 -1
- package/dist/src/execution/legacy-session/turn-workflow.js +1 -1
- package/dist/src/execution/node-step.d.ts +4 -2
- package/dist/src/execution/node-step.js +1 -1
- package/dist/src/execution/proxied-deliver-step.js +1 -1
- package/dist/src/execution/publish-channel-event.d.ts +23 -0
- package/dist/src/execution/publish-channel-event.js +1 -0
- package/dist/src/execution/runtime-context.js +1 -1
- package/dist/src/execution/session/entry-input.d.ts +4 -0
- package/dist/src/execution/session/entry-input.js +1 -1
- package/dist/src/execution/session/entry.js +1 -1
- package/dist/src/execution/session/event-sink.d.ts +1 -1
- package/dist/src/execution/session/event-sink.js +1 -1
- package/dist/src/execution/session/finalization.d.ts +1 -4
- package/dist/src/execution/session/finalization.js +1 -1
- package/dist/src/execution/session/handoff.d.ts +1 -3
- package/dist/src/execution/session/handoff.js +1 -1
- package/dist/src/execution/session/input-queue.d.ts +0 -1
- package/dist/src/execution/session/input-queue.js +1 -1
- package/dist/src/execution/session/next-input.d.ts +0 -1
- package/dist/src/execution/session/next-input.js +1 -1
- package/dist/src/execution/session/program.d.ts +0 -3
- package/dist/src/execution/session/program.js +1 -1
- package/dist/src/execution/session/turn-step-result.d.ts +1 -2
- package/dist/src/execution/session/turn-step-result.js +1 -1
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn.d.ts +2 -2
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
- package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/execution/tools/agent-router.d.ts +0 -2
- package/dist/src/execution/tools/agent-router.js +1 -1
- package/dist/src/execution/tools/ask-question-workflow.js +1 -1
- package/dist/src/execution/tools/connection-search.d.ts +1 -0
- package/dist/src/execution/tools/connection-search.js +1 -1
- package/dist/src/execution/tools/sleep-workflow.js +1 -1
- package/dist/src/execution/tools/subagent/invoke-preparation.js +1 -1
- package/dist/src/execution/workflow-runtime.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/registry.js +1 -1
- package/dist/src/harness/approval-delivery-coordinator.d.ts +3 -13
- package/dist/src/harness/approval-delivery-coordinator.js +1 -1
- package/dist/src/harness/emission.d.ts +2 -3
- package/dist/src/harness/emission.js +1 -1
- package/dist/src/harness/input-request-resolution.d.ts +2 -0
- package/dist/src/harness/input-request-resolution.js +1 -1
- package/dist/src/harness/input-requests.d.ts +3 -3
- package/dist/src/harness/input-requests.js +1 -1
- package/dist/src/harness/pending-input-batches.d.ts +3 -3
- package/dist/src/harness/pending-input-batches.js +1 -1
- package/dist/src/harness/proxy-input-requests.d.ts +2 -0
- package/dist/src/harness/proxy-input-requests.js +1 -1
- package/dist/src/harness/session-limit-enforcement.d.ts +2 -3
- package/dist/src/harness/session-limit-enforcement.js +1 -1
- package/dist/src/harness/tool-loop.js +2 -2
- package/dist/src/harness/tools.js +1 -1
- package/dist/src/harness/types.d.ts +11 -13
- package/dist/src/instrumentation/session-context.js +1 -1
- package/dist/src/instrumentation/session-init.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/core.js +1 -1
- package/dist/src/internal/authored-module-loader.js +1 -2
- package/dist/src/internal/authored-package-boundary.d.ts +0 -1
- package/dist/src/internal/authored-package-boundary.js +1 -1
- package/dist/src/internal/authored-relative-extension-resolver.js +1 -1
- package/dist/src/internal/external-resources-snapshot.d.ts +46 -0
- package/dist/src/internal/external-resources-snapshot.js +1 -0
- package/dist/src/internal/external-resources.d.ts +20 -0
- package/dist/src/internal/external-resources.js +1 -0
- package/dist/src/internal/invocation/workflow-execution.d.ts +0 -2
- package/dist/src/internal/invocation/workflow-execution.js +1 -1
- package/dist/src/internal/nitro/host/build-application.js +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
- package/dist/src/internal/nitro/host/instrumentation-entry.d.ts +3 -0
- package/dist/src/internal/nitro/host/instrumentation-entry.js +2 -0
- package/dist/src/internal/nitro/host/start-development-server.d.ts +0 -8
- package/dist/src/internal/nitro/host/start-development-server.js +2 -2
- package/dist/src/internal/nitro/host.d.ts +1 -1
- package/dist/src/internal/nitro/host.js +1 -1
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +1 -1
- package/dist/src/internal/nitro/routes/index.js +72 -3
- package/dist/src/internal/workflow/development-world-client.js +1 -1
- package/dist/src/node_modules/.pnpm/{@vercel_cli-config@0.2.7 → @vercel_cli-config@0.3.0}/node_modules/@vercel/cli-config/dist/index.js +1 -1
- package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 +1 -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 +1 -0
- package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 +1 -1
- package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 +1 -1
- package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/token-util.js +1 -1
- package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/token.js +1 -1
- package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/version.js +1 -1
- package/dist/src/protocol/message.d.ts +4 -0
- package/dist/src/protocol/message.js +1 -1
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.d.ts +0 -1
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +1 -1
- package/dist/src/public/channels/mcp.js +1 -1
- package/dist/src/public/channels/slack/activity-plan.d.ts +2 -1
- package/dist/src/public/channels/slack/activity-plan.js +1 -1
- package/dist/src/public/channels/slack/activity.d.ts +2 -0
- package/dist/src/public/channels/slack/activity.js +1 -1
- package/dist/src/public/channels/slack/api.d.ts +7 -0
- package/dist/src/public/channels/slack/api.js +1 -1
- package/dist/src/public/channels/slack/app-manifest.d.ts +9 -0
- package/dist/src/public/channels/slack/app-manifest.js +1 -0
- package/dist/src/public/channels/slack/attachments.d.ts +5 -2
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/inbound-content.js +6 -3
- package/dist/src/public/channels/slack/index.d.ts +1 -0
- package/dist/src/public/channels/slack/input-response.d.ts +2 -0
- 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.d.ts +2 -0
- package/dist/src/public/channels/slack/interactions.js +1 -1
- package/dist/src/public/channels/slack/slackChannel.d.ts +7 -1
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/channels/slack/slash-command.d.ts +5 -1
- package/dist/src/public/channels/slack/slash-command.js +1 -1
- package/dist/src/public/channels/slack/transport.d.ts +76 -0
- package/dist/src/public/channels/slack/transport.js +1 -0
- package/dist/src/public/definitions/remote-agent.d.ts +0 -9
- package/dist/src/public/definitions/workspace-agent.d.ts +0 -3
- package/dist/src/public/definitions/workspace-agent.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/connections/mcp-client.js +1 -1
- package/dist/src/runtime/connections/mcp-tracing.d.ts +27 -0
- package/dist/src/runtime/connections/mcp-tracing.js +1 -0
- package/dist/src/runtime/resolve-agent-graph.js +1 -1
- package/dist/src/runtime/resolve-agent.js +1 -1
- package/dist/src/runtime/subagents/dynamic-agent-config.d.ts +0 -2
- package/dist/src/runtime/subagents/dynamic-agent-config.js +1 -1
- package/dist/src/runtime/subagents/dynamic-remote-agent-config.d.ts +0 -2
- package/dist/src/runtime/subagents/dynamic-remote-agent-config.js +1 -1
- package/dist/src/runtime/types.d.ts +1 -2
- package/dist/src/services/dev-client/vercel-auth-error.d.ts +1 -1
- package/dist/src/setup/cli/channel-setup-prompter.d.ts +2 -9
- package/dist/src/setup/cli/channel-setup-prompter.js +1 -1
- package/dist/src/setup/cli/index.d.ts +1 -1
- package/dist/src/setup/connection-connector.js +1 -1
- package/dist/src/setup/flows/model-login-connection.d.ts +0 -16
- package/dist/src/setup/flows/model-login-connection.js +1 -1
- package/dist/src/setup/flows/model-login-options.d.ts +59 -0
- package/dist/src/setup/flows/model-login-options.js +1 -0
- package/dist/src/setup/flows/model-login.js +1 -1
- package/dist/src/setup/flows/model-source-change.d.ts +0 -2
- package/dist/src/setup/flows/model-source-change.js +1 -1
- package/dist/src/setup/flows/registry-session.d.ts +15 -13
- package/dist/src/setup/flows/registry-session.js +1 -1
- package/dist/src/setup/flows/registry.js +1 -1
- package/dist/src/setup/flows/vercel-model-login.js +1 -1
- package/dist/src/setup/integrations/photon/setup-flow.js +1 -1
- package/dist/src/setup/prompter.d.ts +2 -2
- package/dist/src/setup/registry-setup-client.js +1 -1
- package/dist/src/setup/registry-setup-protocol.d.ts +0 -4
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/setup/slack-connect-lifecycle.js +1 -1
- package/dist/src/setup/verified-remote-agent.d.ts +1 -0
- package/dist/src/setup/verified-remote-agent.js +1 -1
- package/dist/src/shared/action-types.d.ts +2 -2
- package/dist/src/shared/agent-definition.d.ts +0 -9
- package/dist/src/shared/agent-turn-outcome.d.ts +1 -1
- package/dist/src/shared/channel-definition.d.ts +2 -2
- package/dist/src/shared/conversation-context.d.ts +0 -4
- package/dist/src/shared/conversation-context.js +1 -1
- package/dist/src/shared/validate-authorization.js +1 -1
- package/dist/src/shared/vercel-connect-metadata.d.ts +12 -0
- package/dist/src/shared/vercel-connect-metadata.js +1 -0
- package/dist/src/subagents/agent-handle-errors.d.ts +0 -4
- package/dist/src/subagents/agent-handle-errors.js +1 -1
- package/dist/src/subagents/callback-route.js +1 -1
- package/dist/src/subagents/callback-step.d.ts +0 -22
- package/dist/src/subagents/callback-step.js +1 -1
- package/dist/src/subagents/event-proxy-step.js +1 -1
- package/dist/src/subagents/hitl-proxy.d.ts +3 -5
- package/dist/src/subagents/hitl-proxy.js +1 -1
- package/dist/src/subagents/invocation.d.ts +5 -6
- package/dist/src/subagents/parent-notification.d.ts +1 -18
- package/dist/src/subagents/parent-notification.js +1 -1
- package/dist/src/subagents/remote-dispatch.js +1 -1
- package/dist/src/subagents/tool.d.ts +0 -3
- package/dist/src/subagents/tool.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/framework/agent-contract.d.ts +0 -2
- package/dist/src/tools/framework/agent-contract.js +1 -1
- 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-memory-instrumentation.js +1 -1
- package/dist/src/tracing/agent-otel-provider.js +2 -2
- package/dist/src/tracing/agent-otel-session-context.js +1 -1
- package/dist/src/tracing/agent-tool-instrumentation.js +1 -1
- package/dist/src/tracing/agent-tool-span-context.d.ts +15 -0
- package/dist/src/tracing/agent-tool-span-context.js +1 -0
- package/dist/src/tracing/otel-declaration.d.ts +4 -9
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +12 -13
- package/docs/channels/chat-sdk.mdx +1 -1
- package/docs/channels/custom.mdx +1 -1
- package/docs/channels/eve.mdx +4 -4
- package/docs/channels/mcp.mdx +10 -10
- package/docs/channels/slack.mdx +32 -3
- package/docs/concepts/sessions-runs-and-streaming.md +5 -6
- package/docs/connections/overview.mdx +22 -0
- package/docs/guides/deployment/overview.md +1 -1
- package/docs/guides/deployment/self-hosting.md +1 -1
- package/docs/guides/deployment/vercel.mdx +2 -2
- package/docs/guides/dev-tui.md +7 -7
- package/docs/guides/dynamic-capabilities.md +2 -2
- package/docs/guides/frontend/overview.mdx +5 -3
- package/docs/guides/hooks.md +4 -2
- package/docs/guides/instrumentation/agent-runs.mdx +7 -7
- package/docs/guides/instrumentation/instrumentation.mdx +22 -5
- package/docs/guides/instrumentation/otel.mdx +30 -0
- package/docs/guides/remote-agents.md +3 -4
- package/docs/guides/self-modification.md +1 -1
- package/docs/memory/custom-provider.md +1 -1
- package/docs/protocols/acp.md +1 -1
- package/docs/reference/cli.md +91 -97
- package/docs/schedules.mdx +4 -5
- package/docs/subagents/index.mdx +5 -7
- package/docs/tools/human-in-the-loop.md +4 -0
- package/docs/tools/overview.mdx +2 -0
- package/docs/tools/workflows.mdx +1 -1
- package/docs/tutorial/remember-definitions.mdx +1 -1
- package/docs/tutorial/ship-it.mdx +1 -1
- package/package.json +8 -7
- package/dist/src/cli/commands/channels.d.ts +0 -9
- package/dist/src/cli/commands/channels.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-CNT2vjZ4.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-DtXwQbZr.js +0 -3
- package/dist/src/compiled/_chunks/workflow/frames-DnrfSd1P.js +0 -3
- package/dist/src/compiled/_chunks/workflow/resume-hook-BmJ263ZR.js +0 -1
- package/dist/src/compiled/_chunks/workflow/run-NLvREued.js +0 -1
- package/dist/src/compiled/_chunks/workflow/serialization-HCDeQWcR.js +0 -3
- package/dist/src/compiled/_chunks/workflow/sleep-Bi508qmg.js +0 -1
- package/dist/src/execution/effective-output-schema.d.ts +0 -22
- package/dist/src/execution/effective-output-schema.js +0 -1
- package/dist/src/node_modules/.pnpm/@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38/node_modules/@vercel/connect/dist/connector.js +0 -1
- package/dist/src/public/channels/slack/api-errors.d.ts +0 -33
- package/dist/src/public/channels/slack/api-errors.js +0 -1
- package/dist/src/shared/run-mode.d.ts +0 -7
- package/dist/src/shared/run-mode.js +0 -1
- package/dist/src/subagents/parent-result.d.ts +0 -14
- package/dist/src/subagents/parent-result.js +0 -1
- /package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_connect@2.2.0_@ai-sdk_mcp@2.0.52_zod@4.5.4__@auth_core@0.41.2_@chat-adapter_sla_37d5e4f23f0f03cba2e0819e67e81b38 → @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 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/auth-errors.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/exchange-vercel-oidc-token.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/get-context.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/get-vercel-oidc-token-sync.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/get-vercel-oidc-token-with-refresh.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/index.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/oauth.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/token-error.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/token-io.js +0 -0
- /package/dist/src/node_modules/.pnpm/{@vercel_oidc@3.8.8 → @vercel_oidc@3.8.9}/node_modules/@vercel/oidc/dist/verify-vercel-oidc-token.js +0 -0
|
@@ -95,6 +95,14 @@ export interface SerializableSpecial {
|
|
|
95
95
|
token: string;
|
|
96
96
|
conflictingRunId?: string;
|
|
97
97
|
};
|
|
98
|
+
HookForceClaimedError: {
|
|
99
|
+
message: string;
|
|
100
|
+
stack?: string;
|
|
101
|
+
cause?: unknown;
|
|
102
|
+
token: string;
|
|
103
|
+
claimedByRunId: string;
|
|
104
|
+
claimedByHookId?: string;
|
|
105
|
+
};
|
|
98
106
|
Int8Array: string;
|
|
99
107
|
Int16Array: string;
|
|
100
108
|
Int32Array: string;
|
|
@@ -183,6 +183,14 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
183
183
|
token: string;
|
|
184
184
|
conflictingRunId?: string;
|
|
185
185
|
}) => any) | undefined;
|
|
186
|
+
HookForceClaimedError?: ((value: {
|
|
187
|
+
message: string;
|
|
188
|
+
stack?: string;
|
|
189
|
+
cause?: unknown;
|
|
190
|
+
token: string;
|
|
191
|
+
claimedByRunId: string;
|
|
192
|
+
claimedByHookId?: string;
|
|
193
|
+
}) => any) | undefined;
|
|
186
194
|
Int8Array?: ((value: string) => any) | undefined;
|
|
187
195
|
Int16Array?: ((value: string) => any) | undefined;
|
|
188
196
|
Int32Array?: ((value: string) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{An as e,Bn as t,Dn as n,En as r,Fn as i,In as a,Ln as o,Nn as s,On as c,Pn as l,Rn as u,jn as d,kn as f,zn as p}from"../../_chunks/workflow/logger-
|
|
1
|
+
import{An as e,Bn as t,Dn as n,En as r,Fn as i,In as a,Ln as o,Nn as s,On as c,Pn as l,Rn as u,jn as d,kn as f,zn as p}from"../../_chunks/workflow/logger-BCEj9caG.js";import{A as m,C as h,D as g,E as _,F as v,I as y,J as b,L as x,M as S,N as C,O as w,P as T,S as E,T as D,_ as O,a as k,b as A,c as j,d as M,f as N,g as P,h as F,i as I,j as L,k as R,l as z,m as B,n as V,o as H,p as U,q as W,r as G,s as K,t as q,u as J,v as Y,w as X,x as Z,y as Q}from"../../_chunks/workflow/serialization-CJ265vSe.js";export{q as FRAMED_STREAM_MAX_RECONNECTS,V as FRAMED_STREAM_MAX_TOTAL_RECONNECTS,p as SerializationFormat,G as WorkflowServerReadableStream,I as WorkflowServerWritableStream,r as aesKeyOf,k as cancelAbortReaders,W as compress,H as createForwardedWritable,K as createReconnectingFramedStream,i as decodeFormatPrefix,b as decompress,n as decrypt,j as dehydrateRunError,z as dehydrateStepArguments,J as dehydrateStepError,M as dehydrateStepReturnValue,N as dehydrateWorkflowArguments,U as dehydrateWorkflowReturnValue,c as deriveRunPayloadKeys,B as deserializePreparedReplayPayload,F as deserializePreparedStepError,a as encodeWithFormatPrefix,f as encrypt,P as getByteFramingStream,O as getByteUnframingStream,Y as getCommonRevivers,Q as getDeserializeStream,A as getExternalReducers,Z as getExternalRevivers,E as getForwardedWritableEncryptionKey,h as getRunReadableStream,X as getSerializeStream,D as getStreamType,_ as getWorkflowReducers,g as getWorkflowRevivers,w as hydrateRunError,R as hydrateStepArguments,m as hydrateStepError,L as hydrateStepReturnValue,S as hydrateWorkflowArguments,C as hydrateWorkflowReturnValue,o as isEncrypted,t as isFormatPrefix,e as isRunPayloadKeys,d as isSealTarget,T as maybeDecrypt,v as maybeEncrypt,u as peekFormatPrefix,y as prepareReplayPayload,s as runPayloadKeys,l as sealTo,x as tagForwardedWritableTarget};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "5.0.0-beta.
|
|
1
|
+
export declare const version = "5.0.0-beta.56";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as e,i as t}from"../../_chunks/workflow/dist-BfMqXLK3.js";import{i as n}from"../../_chunks/workflow/workflow-routes-CwqB063q.js";import{X as r,Y as i,ft as a,mt as o,pt as s,st as c}from"../../_chunks/workflow/serialization-CJ265vSe.js";import{c as l,i as u,o as d,r as f,t as p}from"../../_chunks/workflow/attribute-changes-DzJovO_f.js";import{t as m}from"../../_chunks/workflow/sleep-CBn94Ayv.js";import{t as h}from"../../_chunks/workflow/run-CA5wWV2S.js";r(i,h);function g(e){let t=globalThis[a];return t||u(`createHook()`,`https://workflow-sdk.dev/docs/api-reference/workflow/create-hook`,g),t(e)}function _(e){let{respondWith:t,token:r,...i}=e??{};if(r!==void 0)throw Error("`createWebhook()` does not accept a `token` option. Webhook tokens are always generated for you. Use `createHook()` with `resumeHook()` for deterministic token patterns.");let a;t!==void 0&&(a={respondWith:t});let o=g({...i,metadata:a,isWebhook:!0}),{url:s}=l();return o.url=n(s,{type:`webhook`,token:o.token}),o}function v(){function e(t,n){d(`defineHook().resume()`,`https://workflow-sdk.dev/docs/api-reference/workflow-api/resume-hook`,e)}return{create(e){return g(e)},resume:e}}async function y(e,n={}){let r=p(e,n);if(r.length===0)return;let i=n.allowReservedAttributes===!0,a=globalThis[o];if(!a)throw new t("setAttributes() called outside a workflow runtime context. It must be called from within a workflow body (`use workflow`).");await a(r,i?{allowReservedAttributes:!0}:{})}function b(e={}){let{namespace:t}=e,n=globalThis[s](t);return Object.create(globalThis.WritableStream.prototype,{[c]:{value:n,writable:!1}})}function x(){f(`getStepMetadata()`,`https://workflow-sdk.dev/docs/api-reference/workflow/get-step-metadata`,x)}function S(){d(`resumeHook()`,`https://workflow-sdk.dev/docs/api-reference/workflow-api/resume-hook`,S)}export{t as FatalError,e as RetryableError,g as createHook,_ as createWebhook,v as defineHook,x as getStepMetadata,l as getWorkflowMetadata,b as getWritable,S as resumeHook,y as setAttributes,m as sleep};
|
|
@@ -12,6 +12,7 @@ export declare const ERROR_SLUGS: {
|
|
|
12
12
|
readonly FETCH_IN_WORKFLOW_FUNCTION: "fetch-in-workflow";
|
|
13
13
|
readonly TIMEOUT_FUNCTIONS_IN_WORKFLOW: "timeout-in-workflow";
|
|
14
14
|
readonly HOOK_CONFLICT: "hook-conflict";
|
|
15
|
+
readonly HOOK_FORCE_CLAIMED: "hook-force-claimed";
|
|
15
16
|
readonly CORRUPTED_EVENT_LOG: "corrupted-event-log";
|
|
16
17
|
readonly REPLAY_DIVERGENCE: "replay-divergence";
|
|
17
18
|
readonly STEP_NOT_REGISTERED: "step-not-registered";
|
|
@@ -387,6 +388,28 @@ export declare class HookConflictError extends WorkflowError {
|
|
|
387
388
|
constructor(token: string, conflictingRunId?: string);
|
|
388
389
|
static is(value: unknown): value is HookConflictError;
|
|
389
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Thrown from `await hook` (or the hook's async iterator) when another run
|
|
393
|
+
* took this hook's token with `createHook({ token, experimental_force: true })`.
|
|
394
|
+
*
|
|
395
|
+
* The hook is disposed: payloads it received before the takeover were still
|
|
396
|
+
* delivered, everything after goes to the new owner, and this run's log holds
|
|
397
|
+
* a `hook_disposed` naming the run that took it. Whether that ends the run is
|
|
398
|
+
* the workflow's call — catch it to hand over gracefully, or let it fail.
|
|
399
|
+
*
|
|
400
|
+
* Use the static `HookForceClaimedError.is()` method for type-safe checking
|
|
401
|
+
* in catch blocks; the class identity differs between the workflow VM and the
|
|
402
|
+
* host, so `instanceof` is not reliable across that boundary.
|
|
403
|
+
*/
|
|
404
|
+
export declare class HookForceClaimedError extends WorkflowError {
|
|
405
|
+
token: string;
|
|
406
|
+
/** The run that took the token. */
|
|
407
|
+
claimedByRunId: string;
|
|
408
|
+
/** The hook (in `claimedByRunId`) the token now belongs to. */
|
|
409
|
+
claimedByHookId?: string;
|
|
410
|
+
constructor(token: string, claimedByRunId: string, claimedByHookId?: string);
|
|
411
|
+
static is(value: unknown): value is HookForceClaimedError;
|
|
412
|
+
}
|
|
390
413
|
/**
|
|
391
414
|
* Thrown when calling `resumeHook()` or `resumeWebhook()` with a token that
|
|
392
415
|
* does not match any active hook.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,C as t,D as n,E as r,
|
|
1
|
+
import{A as e,C as t,D as n,E as r,M as i,O as a,S as o,T as s,_ as c,a as l,b as u,c as d,d as f,f as p,g as m,h,i as g,j as _,k as v,l as y,m as b,n as x,o as S,p as C,r as w,s as T,t as E,u as D,v as O,w as k,x as A,y as j}from"../../_chunks/workflow/dist-BfMqXLK3.js";export{E as CorruptedEventLogError,x as ERROR_SLUGS,w as EntityConflictError,g as FatalError,l as HookConflictError,S as HookForceClaimedError,T as HookNotFoundError,d as MaxEventsExceededError,y as PreconditionFailedError,i as RUN_ERROR_CODES,D as ReplayDivergenceError,f as RetryableError,p as RunExpiredError,C as RunNotSupportedError,b as RuntimeDecryptionError,h as SerializationError,m as StepNotRegisteredError,c as StreamError,O as StreamExpiredError,j as ThrottleError,u as TooEarlyError,A as VERCEL_403_ERROR_MESSAGE,o as WorkflowBuildError,t as WorkflowDeploymentMismatchError,k as WorkflowError,s as WorkflowNotRegisteredError,r as WorkflowRunCancelledError,n as WorkflowRunFailedError,a as WorkflowRunNotCompletedError,v as WorkflowRunNotFoundError,e as WorkflowRuntimeError,_ as WorkflowWorldError};
|
|
@@ -135,6 +135,14 @@ export declare const HookCreatedEventSchema: z.ZodObject<{
|
|
|
135
135
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
136
136
|
isWebhook: z.ZodOptional<z.ZodBoolean>;
|
|
137
137
|
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
forceClaimedFrom: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
runId: z.ZodString;
|
|
141
|
+
hookId: z.ZodString;
|
|
142
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
143
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
144
|
+
runSpecVersion: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
138
146
|
}, z.core.$strip>;
|
|
139
147
|
}, z.core.$strip>;
|
|
140
148
|
declare const HookReceivedEventSchema: z.ZodObject<{
|
|
@@ -161,6 +169,7 @@ declare const HookConflictEventSchema: z.ZodObject<{
|
|
|
161
169
|
eventData: z.ZodObject<{
|
|
162
170
|
token: z.ZodString;
|
|
163
171
|
conflictingRunId: z.ZodOptional<z.ZodString>;
|
|
172
|
+
forceRefusedReason: z.ZodOptional<z.ZodLiteral<"victim-spec-version">>;
|
|
164
173
|
}, z.core.$strip>;
|
|
165
174
|
}, z.core.$strip>;
|
|
166
175
|
/**
|
|
@@ -317,6 +326,14 @@ export declare const CreateEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
317
326
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
318
327
|
isWebhook: z.ZodOptional<z.ZodBoolean>;
|
|
319
328
|
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
329
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
forceClaimedFrom: z.ZodOptional<z.ZodObject<{
|
|
331
|
+
runId: z.ZodString;
|
|
332
|
+
hookId: z.ZodString;
|
|
333
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
334
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
335
|
+
runSpecVersion: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
320
337
|
}, z.core.$strip>;
|
|
321
338
|
}, z.core.$strip>, z.ZodObject<{
|
|
322
339
|
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -332,6 +349,10 @@ export declare const CreateEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
332
349
|
correlationId: z.ZodString;
|
|
333
350
|
eventData: z.ZodOptional<z.ZodObject<{
|
|
334
351
|
token: z.ZodOptional<z.ZodString>;
|
|
352
|
+
forceClaimedBy: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
runId: z.ZodString;
|
|
354
|
+
hookId: z.ZodString;
|
|
355
|
+
}, z.core.$strip>>;
|
|
335
356
|
}, z.core.$strip>>;
|
|
336
357
|
}, z.core.$strip>, z.ZodObject<{
|
|
337
358
|
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -484,6 +505,14 @@ export declare const EventSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.Z
|
|
|
484
505
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
485
506
|
isWebhook: z.ZodOptional<z.ZodBoolean>;
|
|
486
507
|
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
509
|
+
forceClaimedFrom: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
runId: z.ZodString;
|
|
511
|
+
hookId: z.ZodString;
|
|
512
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
513
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
514
|
+
runSpecVersion: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
}, z.core.$strip>>;
|
|
487
516
|
}, z.core.$strip>;
|
|
488
517
|
}, z.core.$strip>, z.ZodObject<{
|
|
489
518
|
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -499,6 +528,10 @@ export declare const EventSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.Z
|
|
|
499
528
|
correlationId: z.ZodString;
|
|
500
529
|
eventData: z.ZodOptional<z.ZodObject<{
|
|
501
530
|
token: z.ZodOptional<z.ZodString>;
|
|
531
|
+
forceClaimedBy: z.ZodOptional<z.ZodObject<{
|
|
532
|
+
runId: z.ZodString;
|
|
533
|
+
hookId: z.ZodString;
|
|
534
|
+
}, z.core.$strip>>;
|
|
502
535
|
}, z.core.$strip>>;
|
|
503
536
|
}, z.core.$strip>, z.ZodObject<{
|
|
504
537
|
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -507,6 +540,7 @@ export declare const EventSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.Z
|
|
|
507
540
|
eventData: z.ZodObject<{
|
|
508
541
|
token: z.ZodString;
|
|
509
542
|
conflictingRunId: z.ZodOptional<z.ZodString>;
|
|
543
|
+
forceRefusedReason: z.ZodOptional<z.ZodLiteral<"victim-spec-version">>;
|
|
510
544
|
}, z.core.$strip>;
|
|
511
545
|
}, z.core.$strip>, z.ZodObject<{
|
|
512
546
|
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -63,6 +63,26 @@ export type HookResumeCapabilities = z.infer<typeof HookResumeCapabilitiesSchema
|
|
|
63
63
|
* - specVersion >= 2: Uint8Array (binary devalue format)
|
|
64
64
|
* - specVersion 1: any (legacy JSON format)
|
|
65
65
|
*/
|
|
66
|
+
/**
|
|
67
|
+
* Who a force-claimed hook took its token from. Written by the World in the
|
|
68
|
+
* same transaction that re-points the token, and returned on the
|
|
69
|
+
* `hook_created` response and on every later read of the hook.
|
|
70
|
+
*
|
|
71
|
+
* `workflowName`, `deploymentId` and `runSpecVersion` are the VICTIM run's:
|
|
72
|
+
* the claimer's runtime publishes the victim's wake from them (the victim's
|
|
73
|
+
* replay has to read the `hook_disposed{forceClaimedBy}` row the takeover
|
|
74
|
+
* left in its log). They are optional only because a World may not have them
|
|
75
|
+
* for a legacy victim; when absent the runtime skips the wake and the victim
|
|
76
|
+
* reads the row on its next invocation.
|
|
77
|
+
*/
|
|
78
|
+
export declare const HookClaimedFromSchema: z.ZodObject<{
|
|
79
|
+
runId: z.ZodString;
|
|
80
|
+
hookId: z.ZodString;
|
|
81
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
82
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
runSpecVersion: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type HookClaimedFrom = z.infer<typeof HookClaimedFromSchema>;
|
|
66
86
|
export declare const HookSchema: z.ZodObject<{
|
|
67
87
|
runId: z.ZodString;
|
|
68
88
|
hookId: z.ZodString;
|
|
@@ -88,6 +108,13 @@ export declare const HookSchema: z.ZodObject<{
|
|
|
88
108
|
resumeCapabilities: z.ZodOptional<z.ZodObject<{
|
|
89
109
|
hookResumeDedupVersion: z.ZodNumber;
|
|
90
110
|
}, z.core.$strip>>;
|
|
111
|
+
claimedFrom: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
runId: z.ZodString;
|
|
113
|
+
hookId: z.ZodString;
|
|
114
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
115
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
runSpecVersion: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
91
118
|
}, z.core.$strip>;
|
|
92
119
|
/**
|
|
93
120
|
* Represents a Hook. Hooks kept by minimum retention remain readable after
|
|
@@ -6,7 +6,7 @@ export { _resetEnvWarnCacheForTests, type EnvNumberOptions, envFlag, envNumber,
|
|
|
6
6
|
export type * from './events.js';
|
|
7
7
|
export { BaseEventSchema, CHILD_ENTITY_CREATION_EVENT_TYPES, CreateEventSchema, classifyEntityEvent, EventSchema, EventTypeSchema, entityEventClass, getEventDataPayloadField, getEventDataRefFields, HOOK_EVENTS_REQUIRING_EXISTENCE, HOOK_LIFECYCLE_EVENT_TYPES, HookCreatedEventSchema, isChildEntityCreationEvent, isChildEntityCreationEventType, isHookEventRequiringExistence, isHookLifecycleEventType, isRunEventType, isSealedNoopEvent, isStepEventType, isTerminalRunEventType, isTerminalStepEventType, isWaitEventType, RUN_ENTITY_KEY, RUN_EVENT_TYPES, STEP_EVENT_TYPES, stripEventDataRefs, TERMINAL_EVENT_CLASSES, TERMINAL_RUN_EVENT_TYPES, TERMINAL_STEP_EVENT_TYPES, TerminalRunEventTypeSchema, WAIT_EVENT_TYPES, } from './events.js';
|
|
8
8
|
export type * from './hooks.js';
|
|
9
|
-
export { HOOK_RESUME_DEDUP_VERSION, HOOK_RESUME_INPUT_VERSION, HookResumeCapabilitiesSchema, HookSchema, } from './hooks.js';
|
|
9
|
+
export { HOOK_RESUME_DEDUP_VERSION, HOOK_RESUME_INPUT_VERSION, HookClaimedFromSchema, HookResumeCapabilitiesSchema, HookSchema, } from './hooks.js';
|
|
10
10
|
export type * from './interfaces.js';
|
|
11
11
|
export type { InvocationOutcome, SerializedWorkflowError, } from './invocation.js';
|
|
12
12
|
export { isNodeHttpEnabled, NODE_HTTP_DEFAULT, NODE_HTTP_ENV_VAR, } from './node-http-flag.js';
|
|
@@ -22,7 +22,7 @@ export type { GetChunksOptions, StreamChunk, StreamChunksResponse, StreamInfoRes
|
|
|
22
22
|
export { PaginatedResponseSchema, StructuredErrorSchema, } from './shared.js';
|
|
23
23
|
export { EVENT_ID_BODY_LENGTH, EVENT_ID_PREFIX, eventIdToSlot, FIRST_EVENT_SLOT, isSlotBody, isSlotEventId, MAX_EVENT_SLOT, requireEventSlot, slotToEventId, } from './slot-identity.js';
|
|
24
24
|
export type { SpecVersion } from './spec-version.js';
|
|
25
|
-
export { isLegacySpecVersion, mintedSpecVersion, requiresNewerWorld, SEALED_LOG_ENV_VAR, SPEC_VERSION_CURRENT, SPEC_VERSION_LEGACY, SPEC_VERSION_MAX_SUPPORTED, SPEC_VERSION_SUPPORTS_ATTRIBUTES, SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT, SPEC_VERSION_SUPPORTS_COMPRESSION, SPEC_VERSION_SUPPORTS_EVENT_SOURCING, SPEC_VERSION_SUPPORTS_SEALED_LOG, SPEC_VERSION_SUPPORTS_SLOT_IDENTITY, } from './spec-version.js';
|
|
25
|
+
export { isLegacySpecVersion, mintedSpecVersion, requiresNewerWorld, SEALED_LOG_ENV_VAR, SPEC_VERSION_CURRENT, SPEC_VERSION_LEGACY, SPEC_VERSION_MAX_SUPPORTED, SPEC_VERSION_SUPPORTS_ATTRIBUTES, SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT, SPEC_VERSION_SUPPORTS_COMPRESSION, SPEC_VERSION_SUPPORTS_EVENT_SOURCING, SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM, SPEC_VERSION_SUPPORTS_SEALED_LOG, SPEC_VERSION_SUPPORTS_SLOT_IDENTITY, } from './spec-version.js';
|
|
26
26
|
export type * from './steps.js';
|
|
27
27
|
export { isTerminalStepStatus, StepSchema, StepStatusSchema, TERMINAL_STEP_STATUSES, TerminalStepStatusSchema, } from './steps.js';
|
|
28
28
|
export type { WorkflowRunId } from './ulid.js';
|
|
@@ -433,6 +433,30 @@ export interface WorldCapabilities {
|
|
|
433
433
|
* `resumeCapabilities.hookResumeDedupVersion` on the by-token hook.
|
|
434
434
|
*/
|
|
435
435
|
hookResumeDedup?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Supports `createHook({ experimental_force: true })`: a `hook_created`
|
|
438
|
+
* carrying `eventData.force` whose token is held by another live run takes
|
|
439
|
+
* the token over instead of returning `hook_conflict`. The World must:
|
|
440
|
+
*
|
|
441
|
+
* 1. append `hook_disposed{forceClaimedBy: { runId, hookId }}` to the
|
|
442
|
+
* current owner's log — atomically with whatever that World uses to
|
|
443
|
+
* refuse later `hook_received` writes to it — BEFORE re-pointing the
|
|
444
|
+
* token, so a delivery that already resolved the old owner is refused
|
|
445
|
+
* rather than landing in a run that no longer holds the token;
|
|
446
|
+
* 2. re-point the token to the claimer atomically, recording
|
|
447
|
+
* `Hook.claimedFrom` on the claimer's hook;
|
|
448
|
+
* 3. journal the claimer's `hook_created{force, forceClaimedFrom}`,
|
|
449
|
+
* refusing it if the claimer's own hook was taken over in between;
|
|
450
|
+
* 4. answer a `hook_received` refused by a takeover with
|
|
451
|
+
* `HookForceClaimedError` (not `HookNotFoundError`), after completing
|
|
452
|
+
* the re-pointing if the claimer had not, so `resumeHook()` can follow
|
|
453
|
+
* the token to its new owner and retry with the same `resumeId`.
|
|
454
|
+
*
|
|
455
|
+
* Formalised in `workflow-server/specs/HookForceClaim.tla`. A World that
|
|
456
|
+
* cannot give these guarantees must leave this unset; the runtime then
|
|
457
|
+
* rejects `experimental_force` at `createHook()` time.
|
|
458
|
+
*/
|
|
459
|
+
hookForceClaim?: boolean;
|
|
436
460
|
/**
|
|
437
461
|
* Deployments are atomic and immutable: a deployment id names one fixed
|
|
438
462
|
* build for its whole lifetime, so a run pinned to one may only execute
|
|
@@ -64,9 +64,29 @@ export declare const SPEC_VERSION_SUPPORTS_SLOT_IDENTITY: SpecVersion;
|
|
|
64
64
|
* that does so needs the sealing half.
|
|
65
65
|
*/
|
|
66
66
|
export declare const SPEC_VERSION_SUPPORTS_SEALED_LOG: SpecVersion;
|
|
67
|
+
/**
|
|
68
|
+
* Runs at this spec version or later understand an INVOLUNTARY hook disposal:
|
|
69
|
+
* a `hook_disposed` carrying `forceClaimedBy`, written into the run's log by
|
|
70
|
+
* another run's `createHook({ experimental_force: true })`. A reader at this
|
|
71
|
+
* version rejects the hook's awaiters with `HookForceClaimedError` and settles
|
|
72
|
+
* `getConflict()`; a reader below it treats the row as its own `dispose()`
|
|
73
|
+
* and leaves every `await hook` pending forever — the run is not corrupted,
|
|
74
|
+
* but it is silently stranded. Like the sealed log, this is a READER contract,
|
|
75
|
+
* and the version is what lets a World tell the two readers apart: a World
|
|
76
|
+
* only takes a token from a running victim stamped at or above this version,
|
|
77
|
+
* and answers the forced creation with an ordinary `hook_conflict`
|
|
78
|
+
* (`forceRefusedReason: 'victim-spec-version'`) otherwise. A finished victim
|
|
79
|
+
* has no reader to strand, so a retained token is taken over at any version.
|
|
80
|
+
*
|
|
81
|
+
* The Python SDK stamps its own spec versions below this one, so a Python
|
|
82
|
+
* run's token can never be taken over — its runtime knows nothing of
|
|
83
|
+
* `forceClaimedBy` either.
|
|
84
|
+
*/
|
|
85
|
+
export declare const SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM: SpecVersion;
|
|
67
86
|
/**
|
|
68
87
|
* Current spec version: event-sourced architecture with native attributes,
|
|
69
|
-
* compressed payloads, slot-numbered event ids,
|
|
88
|
+
* compressed payloads, slot-numbered event ids, sealed-log sequencing, and
|
|
89
|
+
* involuntary hook disposal.
|
|
70
90
|
*
|
|
71
91
|
* This is both the version a World stamps on the runs it creates and the
|
|
72
92
|
* *lowest* one this runtime accepts from a World (see
|
|
@@ -98,9 +118,12 @@ export declare const SPEC_VERSION_CURRENT: SpecVersion;
|
|
|
98
118
|
*/
|
|
99
119
|
export declare const SEALED_LOG_ENV_VAR = "WORKFLOW_SEALED_LOG";
|
|
100
120
|
/**
|
|
101
|
-
* The spec version a World should stamp on the runs it creates: the
|
|
102
|
-
*
|
|
103
|
-
*
|
|
121
|
+
* The spec version a World should stamp on the runs it creates: the current
|
|
122
|
+
* version (sealed log plus involuntary hook disposal) unless
|
|
123
|
+
* {@link SEALED_LOG_ENV_VAR} switches the sealed log off, in which case the
|
|
124
|
+
* slot-identity version it supersedes. Versions are linear, so switching the
|
|
125
|
+
* sealed log off also drops below {@link SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM}:
|
|
126
|
+
* runs minted that way can force-claim, but cannot be force-claimed from.
|
|
104
127
|
*
|
|
105
128
|
* Same shape, and the same reasoning, as the flag slot identity itself shipped
|
|
106
129
|
* behind before going unconditional: default on, with one env var to put a
|
|
@@ -135,14 +158,12 @@ export declare function mintedSpecVersion(env?: Record<string, string | undefine
|
|
|
135
158
|
/**
|
|
136
159
|
* The highest spec version this SDK can read.
|
|
137
160
|
*
|
|
138
|
-
* Kept distinct from `SPEC_VERSION_CURRENT
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
161
|
+
* Kept distinct from `SPEC_VERSION_CURRENT` even when they coincide. They
|
|
162
|
+
* answer different questions, "what do we write?" versus "what can we still
|
|
163
|
+
* read?", and they come apart in exactly the release order a spec bump
|
|
164
|
+
* follows: a reader that can already handle the next version raises this
|
|
142
165
|
* ceiling first, and stamping follows only once the version is safe to mint
|
|
143
|
-
* everywhere.
|
|
144
|
-
* spec 7 and skips `noop`, while {@link mintedSpecVersion} still has to be
|
|
145
|
-
* turned on before anything creates a spec-7 run.
|
|
166
|
+
* everywhere.
|
|
146
167
|
*/
|
|
147
168
|
export declare const SPEC_VERSION_MAX_SUPPORTED: SpecVersion;
|
|
148
169
|
/**
|