eve 0.44.3 → 0.45.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 +45 -0
- package/README.md +13 -12
- package/dist/src/acp/adapter.d.ts +1 -1
- package/dist/src/approval/definition.d.ts +84 -0
- package/dist/src/approval/definition.js +1 -0
- package/dist/src/channel/adapter.d.ts +2 -2
- package/dist/src/{runtime/governance → channel}/auth/http-basic.d.ts +1 -1
- package/dist/src/{runtime/governance → channel}/auth/jwt-ecdsa.d.ts +1 -1
- package/dist/src/channel/auth/jwt-ecdsa.js +1 -0
- package/dist/src/{runtime/governance → channel}/auth/jwt-hmac.d.ts +1 -1
- package/dist/src/channel/auth/jwt-hmac.js +1 -0
- package/dist/src/{runtime/governance → channel}/auth/oidc.d.ts +1 -1
- package/dist/src/channel/auth/oidc.js +1 -0
- package/dist/src/{runtime/governance → channel}/auth/token-claims.d.ts +1 -1
- package/dist/src/{runtime/governance → channel}/auth/types.d.ts +1 -1
- package/dist/src/{runtime/governance → channel}/auth/vercel-oidc-project.d.ts +1 -1
- package/dist/src/channel/channel-operations.d.ts +1 -1
- package/dist/src/channel/channel-operations.js +1 -1
- package/dist/src/channel/instrumentation.d.ts +1 -0
- package/dist/src/channel/instrumentation.js +1 -1
- package/dist/src/channel/resolve-text.d.ts +1 -1
- package/dist/src/channel/routes.d.ts +1 -1
- package/dist/src/channel/session.d.ts +1 -1
- package/dist/src/channel/session.js +1 -1
- package/dist/src/channel/types.d.ts +2 -2
- package/dist/src/chunks/{use-eve-agent-DpUEwS23.js → use-eve-agent-C46Kan_I.js} +390 -107
- package/dist/src/chunks/{use-eve-agent-BsLJiIbc.js → use-eve-agent-OtHRoxIS.js} +390 -107
- package/dist/src/cli/banner.js +1 -1
- package/dist/src/cli/commands/agent-instructions.js +2 -2
- package/dist/src/cli/commands/channel-add-conflicts.js +1 -1
- package/dist/src/cli/commands/extension-build.js +1 -1
- package/dist/src/cli/commands/extension-init.js +1 -1
- package/dist/src/cli/commands/info.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/trace.js +1 -1
- package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
- package/dist/src/cli/dev/tui/prompt-commands.d.ts +1 -1
- package/dist/src/cli/dev/tui/prompt-commands.js +1 -1
- package/dist/src/cli/dev/tui/remote-auth.js +1 -1
- package/dist/src/cli/dev/tui/setup-commands.d.ts +2 -0
- package/dist/src/cli/dev/tui/setup-commands.js +1 -1
- package/dist/src/cli/dev/tui/setup-selection-input.d.ts +3 -1
- package/dist/src/cli/dev/tui/setup-selection-input.js +2 -2
- package/dist/src/cli/dev/tui/terminal-renderer.js +2 -2
- package/dist/src/cli/dev/tui/traces/trace-conversation.d.ts +1 -1
- package/dist/src/cli/dev/tui/traces/trace-conversation.js +1 -1
- package/dist/src/cli/dev/tui/traces/trace-viewer-state.js +1 -1
- package/dist/src/cli/invoke/result.d.ts +1 -1
- package/dist/src/cli/ui/live-row.js +1 -1
- package/dist/src/cli/ui/output.js +1 -1
- package/dist/src/client/agent-info-schema.d.ts +1757 -302
- package/dist/src/client/agent-info-schema.js +1 -1
- package/dist/src/client/client.js +1 -1
- package/dist/src/client/eve-agent-store.d.ts +6 -5
- package/dist/src/client/eve-agent-store.js +1 -1
- package/dist/src/client/health-response-error.d.ts +5 -0
- package/dist/src/client/health-response-error.js +1 -0
- package/dist/src/client/health-schema.d.ts +7 -0
- package/dist/src/client/health-schema.js +1 -0
- package/dist/src/client/index.d.ts +6 -3
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/message-action-parts.d.ts +2 -2
- package/dist/src/client/message-reducer-types.d.ts +1 -1
- package/dist/src/client/reducer.d.ts +1 -1
- package/dist/src/client/session-utils.d.ts +1 -1
- package/dist/src/client/session.d.ts +1 -1
- package/dist/src/client/session.js +1 -1
- package/dist/src/client/types.d.ts +3 -7
- package/dist/src/compiler/artifacts.d.ts +37 -11
- package/dist/src/compiler/artifacts.js +1 -1
- package/dist/src/compiler/channel-route-plan.d.ts +10 -0
- package/dist/src/compiler/channel-route-plan.js +1 -0
- package/dist/src/compiler/compile-agent.d.ts +2 -2
- package/dist/src/compiler/compile-agent.js +2 -2
- package/dist/src/compiler/compile-from-memory.d.ts +13 -52
- package/dist/src/compiler/compile-from-memory.js +1 -1
- package/dist/src/compiler/diagnostics.d.ts +38 -0
- package/dist/src/compiler/diagnostics.js +1 -0
- package/dist/src/compiler/extension-compatibility.d.ts +14 -11
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/load-binding-namespace.d.ts +9 -0
- package/dist/src/compiler/load-binding-namespace.js +1 -0
- package/dist/src/compiler/manifest.d.ts +172 -51
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/module-map.d.ts +12 -30
- package/dist/src/compiler/module-map.js +3 -3
- package/dist/src/compiler/node-source-state.d.ts +24 -0
- package/dist/src/compiler/node-source-state.js +1 -0
- package/dist/src/compiler/normalize-agent-config.d.ts +5 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/compiler/normalize-channel.d.ts +8 -2
- package/dist/src/compiler/normalize-channel.js +1 -1
- package/dist/src/compiler/normalize-connection.d.ts +1 -1
- package/dist/src/compiler/normalize-connection.js +1 -1
- package/dist/src/compiler/normalize-helpers.d.ts +13 -4
- package/dist/src/compiler/normalize-helpers.js +1 -1
- package/dist/src/compiler/normalize-hook.d.ts +4 -11
- package/dist/src/compiler/normalize-hook.js +1 -1
- package/dist/src/compiler/normalize-instructions.d.ts +3 -3
- package/dist/src/compiler/normalize-instructions.js +1 -1
- package/dist/src/compiler/normalize-manifest-helpers.d.ts +29 -0
- package/dist/src/compiler/normalize-manifest-helpers.js +1 -0
- package/dist/src/compiler/normalize-manifest.d.ts +8 -4
- package/dist/src/compiler/normalize-manifest.js +1 -1
- package/dist/src/compiler/normalize-sandbox.d.ts +1 -1
- package/dist/src/compiler/normalize-sandbox.js +1 -1
- package/dist/src/compiler/normalize-schedule.d.ts +2 -2
- package/dist/src/compiler/normalize-schedule.js +1 -1
- package/dist/src/compiler/normalize-skill.d.ts +2 -2
- package/dist/src/compiler/normalize-skill.js +1 -1
- package/dist/src/compiler/normalize-subagent.d.ts +21 -39
- package/dist/src/compiler/normalize-subagent.js +1 -1
- package/dist/src/compiler/normalize-tool.d.ts +2 -1
- package/dist/src/compiler/normalize-tool.js +1 -1
- package/dist/src/compiler/project-sources.d.ts +71 -0
- package/dist/src/compiler/project-sources.js +1 -0
- package/dist/src/compiler/remote-agent-node.d.ts +8 -0
- package/dist/src/compiler/remote-agent-node.js +1 -1
- package/dist/src/compiler/source-graph.d.ts +153 -0
- package/dist/src/compiler/source-graph.js +1 -0
- package/dist/src/compiler/validate-artifact.d.ts +17 -0
- package/dist/src/compiler/validate-artifact.js +1 -0
- package/dist/src/compiler/workspace-resources.js +1 -1
- package/dist/src/connections/errors.d.ts +125 -0
- package/dist/src/connections/errors.js +1 -0
- package/dist/src/context/build-base-tool-context.d.ts +2 -2
- package/dist/src/context/build-callback-context.d.ts +1 -1
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/dynamic-instruction-lifecycle.js +1 -1
- package/dist/src/context/dynamic-resolve-context.d.ts +1 -1
- package/dist/src/context/dynamic-skill-lifecycle.js +1 -1
- package/dist/src/context/dynamic-subagent-lifecycle.d.ts +0 -2
- package/dist/src/context/dynamic-subagent-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.d.ts +2 -2
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/key-names.d.ts +12 -0
- package/dist/src/context/key-names.js +1 -0
- package/dist/src/context/keys.d.ts +8 -1
- package/dist/src/context/keys.js +1 -1
- package/dist/src/context/providers/connection-key.d.ts +1 -1
- package/dist/src/context/providers/connection.d.ts +1 -1
- package/dist/src/context/session-context.d.ts +32 -0
- package/dist/src/discover/discover-agent.d.ts +0 -13
- package/dist/src/discover/discover-agent.js +1 -1
- package/dist/src/discover/discover-subagent.js +1 -1
- package/dist/src/discover/extensions.d.ts +0 -6
- package/dist/src/discover/extensions.js +1 -1
- package/dist/src/discover/manifest.d.ts +4 -1
- package/dist/src/discover/manifest.js +1 -1
- package/dist/src/dynamic/definition.d.ts +117 -0
- package/dist/src/dynamic/definition.js +1 -0
- package/dist/src/evals/autoevals-client.js +1 -1
- package/dist/src/evals/index.d.ts +1 -1
- package/dist/src/evals/match.d.ts +1 -1
- package/dist/src/evals/runner/reporters/console.js +1 -1
- package/dist/src/evals/session.d.ts +1 -1
- package/dist/src/evals/target.js +1 -1
- package/dist/src/evals/types.d.ts +1 -1
- package/dist/src/eve-channel/index.d.ts +12 -0
- package/dist/src/eve-channel/index.js +1 -0
- package/dist/src/eve-channel/request.d.ts +49 -0
- package/dist/src/eve-channel/request.js +3 -0
- package/dist/src/eve-channel/support.d.ts +34 -0
- package/dist/src/eve-channel/support.js +1 -0
- package/dist/src/eve-channel/types.d.ts +128 -0
- package/dist/src/eve-channel/types.js +1 -0
- package/dist/src/execution/agent-handle-dispatch.d.ts +1 -1
- package/dist/src/execution/agent-handle-dispatch.js +1 -1
- package/dist/src/execution/authorization-callback-match.d.ts +1 -1
- package/dist/src/execution/cancel-descendant-turns-step.js +1 -1
- package/dist/src/execution/compaction.js +1 -1
- package/dist/src/execution/connection-auth-tool-result.d.ts +1 -1
- package/dist/src/{runtime → execution}/connections/callback-route.d.ts +2 -20
- package/dist/src/execution/connections/callback-route.js +1 -0
- package/dist/src/execution/create-session-step.js +1 -1
- package/dist/src/execution/delegated-parent-notification.d.ts +2 -2
- package/dist/src/execution/delegated-parent-notification.js +1 -1
- package/dist/src/execution/delegated-parent-result.d.ts +1 -1
- package/dist/src/execution/delegated-parent-result.js +1 -1
- package/dist/src/execution/delegation-tool.d.ts +1 -1
- package/dist/src/execution/delegation-tool.js +1 -1
- package/dist/src/execution/dispatch-action-failures.d.ts +1 -1
- package/dist/src/execution/dispatch-runtime-actions-shared.d.ts +1 -2
- package/dist/src/execution/dispatch-runtime-actions-shared.js +1 -1
- package/dist/src/execution/dispatch-runtime-actions-step.js +1 -1
- package/dist/src/execution/dispatch-workflow-runtime-actions-step.d.ts +1 -1
- package/dist/src/execution/durable-session-migrations/turn-workflow.d.ts +1 -1
- package/dist/src/execution/durable-session-store.js +1 -1
- package/dist/src/execution/effective-output-schema.d.ts +2 -1
- package/dist/src/execution/eve-workflow-attributes.d.ts +6 -0
- package/dist/src/execution/eve-workflow-attributes.js +1 -1
- package/dist/src/execution/forward-turn-cancellation-step.js +1 -1
- package/dist/src/execution/node-step.js +1 -1
- package/dist/src/execution/remote-agent-dispatch.d.ts +10 -8
- package/dist/src/execution/remote-agent-dispatch.js +1 -1
- package/dist/src/execution/runtime-context.js +1 -1
- package/dist/src/execution/sandbox/{bash-tool.d.ts → bash.d.ts} +2 -2
- package/dist/src/execution/sandbox/bindings/just-bash-runtime.d.ts +1 -0
- package/dist/src/execution/sandbox/bindings/just-bash-runtime.js +1 -1
- package/dist/src/execution/sandbox/bindings/just-bash.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel-credentials.js +1 -1
- package/dist/src/execution/sandbox/glob-tool.js +1 -1
- package/dist/src/execution/sandbox/grep-tool.js +1 -1
- package/dist/src/execution/sandbox/{read-file-tool.d.ts → read-file.d.ts} +2 -2
- package/dist/src/execution/sandbox/{read-file-tool.js → read-file.js} +1 -1
- package/dist/src/execution/sandbox/{write-file-tool.d.ts → write-file.d.ts} +2 -2
- package/dist/src/execution/sandbox/write-file.js +1 -0
- package/dist/src/execution/session-callback-route.d.ts +2 -0
- package/dist/src/execution/session-callback-route.js +1 -0
- package/dist/src/execution/session-callback-step.js +1 -1
- package/dist/src/execution/session-timeout-steps.js +1 -1
- package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
- package/dist/src/execution/subagent-adapter.js +1 -1
- package/dist/src/execution/subagent-hitl-proxy.d.ts +1 -1
- package/dist/src/execution/subagent-invocation.d.ts +0 -3
- package/dist/src/execution/subagent-invocation.js +1 -1
- package/dist/src/execution/subagent-start-local.d.ts +1 -2
- package/dist/src/execution/subagent-start-local.js +1 -1
- package/dist/src/execution/subagent-start-remote.d.ts +1 -2
- package/dist/src/execution/subagent-start-remote.js +1 -1
- package/dist/src/execution/subagent-tool.d.ts +4 -8
- package/dist/src/execution/subagent-tool.js +1 -1
- package/dist/src/execution/subagent-usage-span.d.ts +1 -1
- package/dist/src/execution/task-input-response-route.d.ts +2 -0
- package/dist/src/execution/task-input-response-route.js +1 -0
- package/dist/src/execution/tasks/child/instructions.js +1 -1
- package/dist/src/execution/tasks/child/update.d.ts +1 -1
- package/dist/src/execution/tasks/child/update.js +1 -1
- package/dist/src/execution/tasks/parent/continuation-dispatch.d.ts +1 -1
- package/dist/src/execution/tasks/parent/control-shared.d.ts +1 -1
- package/dist/src/execution/tasks/parent/delegate.d.ts +2 -2
- package/dist/src/execution/tasks/parent/delegate.js +1 -1
- package/dist/src/execution/tasks/parent/dispatch-task-step.js +1 -1
- package/dist/src/execution/tasks/parent/dispatch.d.ts +3 -1
- package/dist/src/execution/tasks/parent/dispatch.js +1 -1
- package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +1 -1
- package/dist/src/execution/tasks/parent/tool-execution.js +1 -1
- package/dist/src/execution/terminate-child-sessions-step.d.ts +4 -5
- package/dist/src/execution/terminate-child-sessions-step.js +1 -1
- package/dist/src/execution/tool-auth.d.ts +5 -6
- package/dist/src/execution/tool-auth.js +1 -1
- package/dist/src/execution/tools/connection-search.d.ts +1 -0
- package/dist/src/execution/tools/connection-search.js +2 -0
- package/dist/src/{runtime/framework-tools → execution/tools}/file-state.d.ts +2 -2
- package/dist/src/execution/tools/load-skill.d.ts +6 -0
- package/dist/src/execution/tools/load-skill.js +1 -0
- package/dist/src/{runtime/framework-tools → execution/tools}/subagent/local.d.ts +7 -7
- package/dist/src/execution/tools/subagent/local.js +1 -0
- package/dist/src/{runtime/framework-tools → execution/tools}/subagent/remote.d.ts +5 -5
- package/dist/src/execution/tools/subagent/remote.js +1 -0
- package/dist/src/execution/tools/tasks.d.ts +18 -0
- package/dist/src/execution/tools/tasks.js +1 -0
- package/dist/src/{runtime/framework-tools → execution/tools}/todo.d.ts +0 -2
- package/dist/src/{runtime/framework-tools → execution/tools}/todo.js +1 -2
- package/dist/src/execution/turn-control-protocol.js +1 -1
- package/dist/src/execution/web-fetch/execute.js +1 -0
- package/dist/src/execution/web-fetch/request.js +1 -1
- package/dist/src/execution/wire/session-inbox-resume.js +1 -1
- package/dist/src/execution/wire/session-inbox-wire.v1.js +1 -1
- package/dist/src/execution/workflow-entry.js +1 -1
- package/dist/src/execution/workflow-runtime.js +1 -1
- package/dist/src/execution/workflow-steps.js +1 -1
- package/dist/src/execution/workflow-trace-context.js +1 -1
- package/dist/src/framework/host-inventory.d.ts +8 -0
- package/dist/src/framework/host-inventory.js +1 -0
- package/dist/src/framework/sources/modules/agent.d.ts +4 -0
- package/dist/src/framework/sources/modules/agent.js +1 -0
- package/dist/src/framework/sources/modules/eve-channel.d.ts +1 -0
- package/dist/src/framework/sources/modules/eve-channel.js +1 -0
- package/dist/src/framework/sources/modules/home-channel.d.ts +2 -0
- package/dist/src/framework/sources/modules/home-channel.js +1 -0
- package/dist/src/framework/sources/modules/sandbox.d.ts +2 -0
- package/dist/src/framework/sources/modules/sandbox.js +1 -0
- package/dist/src/framework/sources/registry.d.ts +5 -0
- package/dist/src/framework/sources/registry.js +1 -0
- package/dist/src/harness/action-result-helpers.d.ts +1 -1
- package/dist/src/harness/advertised-tools.js +1 -1
- package/dist/src/harness/attachment-staging.js +1 -1
- package/dist/src/harness/authorization.d.ts +3 -3
- package/dist/src/harness/background-tools.d.ts +2 -2
- package/dist/src/harness/channel-delivery-instrumentation.js +1 -1
- package/dist/src/harness/compaction.js +1 -1
- package/dist/src/harness/execute-tool.d.ts +3 -3
- package/dist/src/{runtime/framework-tools → harness}/final-output.d.ts +1 -1
- package/dist/src/harness/final-output.js +1 -0
- package/dist/src/harness/handles/query.d.ts +1 -1
- package/dist/src/harness/handles/store.d.ts +8 -0
- package/dist/src/harness/handles/store.js +1 -1
- package/dist/src/harness/hitl/approval-input-requests.d.ts +1 -1
- package/dist/src/harness/hitl/approval-prompt.d.ts +1 -1
- package/dist/src/harness/hitl/pending-input-resolution.d.ts +2 -2
- package/dist/src/harness/hitl/question-input-requests.d.ts +1 -1
- package/dist/src/harness/input-extraction.d.ts +1 -1
- package/dist/src/harness/input-extraction.js +1 -1
- package/dist/src/harness/input-request-class.d.ts +1 -1
- package/dist/src/harness/input-request-resolution.d.ts +1 -1
- package/dist/src/harness/input-requests.d.ts +2 -2
- package/dist/src/harness/instrumentation/lifecycle.d.ts +3 -0
- package/dist/src/harness/instrumentation/providers.js +1 -1
- package/dist/src/harness/instrumentation/runtime.d.ts +2 -1
- package/dist/src/harness/pending-input-batches.d.ts +1 -1
- package/dist/src/harness/prepare-trace-context.d.ts +3 -0
- package/dist/src/harness/prepare-trace-context.js +1 -1
- package/dist/src/harness/provider-safety.d.ts +7 -0
- package/dist/src/harness/provider-safety.js +1 -0
- package/dist/src/{runtime/framework-tools/web-search.d.ts → harness/provider-tool-schemas.d.ts} +1 -9
- package/dist/src/harness/provider-tool-schemas.js +1 -0
- package/dist/src/harness/provider-tools.js +1 -1
- package/dist/src/harness/proxy-input-requests.d.ts +1 -1
- package/dist/src/harness/request-input-tool.d.ts +4 -0
- package/dist/src/harness/request-input-tool.js +1 -0
- package/dist/src/harness/runtime-actions.d.ts +1 -1
- package/dist/src/harness/session-limit-continuation.d.ts +1 -1
- package/dist/src/harness/step-hooks.d.ts +2 -0
- package/dist/src/harness/step-hooks.js +1 -1
- package/dist/src/harness/stream-actions.d.ts +1 -1
- package/dist/src/harness/subagent-depth.d.ts +1 -1
- package/dist/src/harness/tool-call-action.d.ts +1 -1
- package/dist/src/harness/tool-call-input-errors.d.ts +1 -1
- package/dist/src/harness/tool-loop.js +2 -2
- package/dist/src/harness/tool-model-output.d.ts +1 -1
- package/dist/src/harness/tools.d.ts +1 -1
- package/dist/src/harness/tools.js +1 -1
- package/dist/src/harness/types.d.ts +3 -9
- package/dist/src/harness/workflow-runtime-action-state.d.ts +1 -1
- package/dist/src/harness/workflow-subagent-limit.d.ts +1 -1
- package/dist/src/instrumentation/provider.d.ts +117 -0
- package/dist/src/instrumentation/provider.js +1 -0
- package/dist/src/internal/application/compiled-artifacts.js +5 -4
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/approval.d.ts +1 -1
- package/dist/src/internal/authored-definition/connection.js +1 -1
- package/dist/src/internal/authored-definition/core.js +1 -1
- package/dist/src/internal/authored-definition/schema-backed.d.ts +6 -3
- package/dist/src/internal/authored-definition/schema-backed.js +1 -1
- package/dist/src/internal/authored-definition/source-identity.d.ts +17 -0
- package/dist/src/internal/authored-definition/source-identity.js +1 -0
- package/dist/src/internal/authored-module-map-loader.d.ts +1 -5
- package/dist/src/internal/authored-module-map-loader.js +1 -1
- package/dist/src/internal/helpers/markdown.js +1 -1
- package/dist/src/internal/invocation/agent-invocation.d.ts +2 -2
- package/dist/src/internal/invocation/workflow-execution.d.ts +1 -1
- package/dist/src/internal/invocation/workflow-execution.js +1 -1
- package/dist/src/internal/materialized-authored-modules.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -1
- package/dist/src/internal/nitro/host/application-route-registry.d.ts +2 -41
- package/dist/src/internal/nitro/host/application-route-registry.js +1 -1
- package/dist/src/internal/nitro/host/build-extension.js +1 -1
- package/dist/src/internal/nitro/host/build-vercel-agent-summary.js +1 -1
- package/dist/src/internal/nitro/host/configure-nitro-routes.js +3 -4
- 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.d.ts +2 -0
- package/dist/src/internal/nitro/host/extension-capability-requirements.js +1 -1
- package/dist/src/internal/nitro/host/start-development-server.js +2 -2
- package/dist/src/internal/nitro/host/start-production-server.js +3 -3
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +9 -215
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +1 -1
- package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.d.ts +2 -13
- package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.js +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -1
- package/dist/src/internal/nitro/routes/channel-route-context.d.ts +5 -0
- package/dist/src/internal/nitro/routes/channel-route-context.js +1 -1
- package/dist/src/internal/nitro/routes/index.d.ts +0 -9
- package/dist/src/internal/nitro/routes/index.js +1 -1
- package/dist/src/internal/nitro/routes/info.js +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts +5 -5
- package/dist/src/internal/nitro/routes/runtime-stack.js +1 -1
- package/dist/src/internal/programmatic-source-loader.d.ts +1 -0
- package/dist/src/internal/programmatic-source-loader.js +1 -0
- package/dist/src/internal/runtime-registry.d.ts +3 -4
- package/dist/src/protocol/message.d.ts +3 -3
- package/dist/src/protocol/routes.d.ts +2 -0
- package/dist/src/protocol/routes.js +1 -1
- package/dist/src/public/agents/auth.d.ts +10 -6
- package/dist/src/public/agents/auth.js +1 -1
- package/dist/src/public/channels/auth.d.ts +1 -1
- package/dist/src/public/channels/auth.js +1 -1
- package/dist/src/public/channels/chat-sdk/authorization.d.ts +3 -0
- package/dist/src/public/channels/chat-sdk/authorization.js +3 -0
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.d.ts +2 -0
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +2 -2
- package/dist/src/public/channels/discord/discordChannel.js +1 -1
- package/dist/src/public/channels/discord/hitl.d.ts +1 -1
- package/dist/src/public/channels/discord/hitl.js +1 -1
- package/dist/src/public/channels/discord/inbound.d.ts +1 -0
- package/dist/src/public/channels/discord/inbound.js +1 -1
- package/dist/src/public/channels/eve.d.ts +1 -139
- package/dist/src/public/channels/eve.js +1 -3
- package/dist/src/public/channels/github/dispatch.d.ts +5 -0
- package/dist/src/public/channels/github/dispatch.js +1 -1
- package/dist/src/public/channels/github/githubChannel.js +1 -1
- package/dist/src/public/channels/github/inbound.d.ts +2 -0
- package/dist/src/public/channels/github/inbound.js +1 -1
- package/dist/src/public/channels/index.d.ts +1 -1
- package/dist/src/public/channels/index.js +1 -1
- package/dist/src/public/channels/linear/hitl.d.ts +1 -1
- package/dist/src/public/channels/linear/inbound.js +1 -1
- package/dist/src/public/channels/linq/index.d.ts +1 -1
- package/dist/src/public/channels/linq/index.js +1 -1
- package/dist/src/public/channels/linq/linqChannel.d.ts +3 -1
- package/dist/src/public/channels/linq/linqChannel.js +1 -1
- package/dist/src/public/channels/mcp.js +1 -1
- package/dist/src/public/channels/photon/index.d.ts +1 -1
- package/dist/src/public/channels/photon/index.js +1 -1
- package/dist/src/public/channels/photon/photonIMessageChannel.d.ts +3 -1
- package/dist/src/public/channels/photon/photonIMessageChannel.js +1 -1
- package/dist/src/public/channels/slack/action-status.d.ts +1 -1
- package/dist/src/public/channels/slack/api.d.ts +15 -5
- package/dist/src/public/channels/slack/api.js +1 -1
- package/dist/src/public/channels/slack/attachments.d.ts +2 -2
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/hitl.d.ts +3 -1
- package/dist/src/public/channels/slack/hitl.js +1 -1
- package/dist/src/public/channels/slack/inbound-content.d.ts +4 -0
- package/dist/src/public/channels/slack/inbound-content.js +4 -0
- package/dist/src/public/channels/slack/inbound.d.ts +17 -1
- package/dist/src/public/channels/slack/inbound.js +1 -1
- package/dist/src/public/channels/slack/index.d.ts +1 -1
- package/dist/src/public/channels/slack/input-response.d.ts +1 -0
- package/dist/src/public/channels/slack/input-response.js +1 -1
- package/dist/src/public/channels/slack/interaction-cards.d.ts +10 -0
- package/dist/src/public/channels/slack/interaction-cards.js +1 -0
- package/dist/src/public/channels/slack/interactions.d.ts +1 -0
- package/dist/src/public/channels/slack/interactions.js +1 -1
- package/dist/src/public/channels/slack/model-context.d.ts +3 -1
- package/dist/src/public/channels/slack/model-context.js +2 -2
- package/dist/src/public/channels/slack/session-operations.d.ts +1 -1
- package/dist/src/public/channels/slack/slackChannel.d.ts +7 -2
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/channels/teams/hitl.d.ts +1 -1
- package/dist/src/public/channels/teams/hitl.js +1 -1
- package/dist/src/public/channels/teams/inbound.d.ts +2 -0
- package/dist/src/public/channels/teams/inbound.js +1 -1
- package/dist/src/public/channels/teams/teamsChannel.js +1 -1
- package/dist/src/public/channels/teams/verify.js +1 -1
- package/dist/src/public/channels/telegram/api.d.ts +15 -0
- package/dist/src/public/channels/telegram/api.js +2 -2
- package/dist/src/public/channels/telegram/authorization-callback.d.ts +10 -0
- package/dist/src/public/channels/telegram/authorization-callback.js +1 -0
- package/dist/src/public/channels/telegram/authorization.d.ts +19 -0
- package/dist/src/public/channels/telegram/authorization.js +3 -0
- package/dist/src/public/channels/telegram/defaults.d.ts +1 -0
- package/dist/src/public/channels/telegram/defaults.js +3 -3
- package/dist/src/public/channels/telegram/hitl.d.ts +1 -1
- package/dist/src/public/channels/telegram/hitl.js +1 -1
- package/dist/src/public/channels/telegram/inbound.d.ts +1 -0
- package/dist/src/public/channels/telegram/inbound.js +1 -1
- package/dist/src/public/channels/telegram/index.d.ts +1 -1
- package/dist/src/public/channels/telegram/index.js +1 -1
- package/dist/src/public/channels/telegram/state.d.ts +6 -0
- package/dist/src/public/channels/telegram/state.js +1 -0
- package/dist/src/public/channels/telegram/telegramChannel.d.ts +11 -0
- package/dist/src/public/channels/telegram/telegramChannel.js +1 -1
- package/dist/src/public/connections/errors.d.ts +1 -125
- package/dist/src/public/connections/errors.js +1 -1
- package/dist/src/public/connections/index.d.ts +2 -2
- package/dist/src/public/connections/index.js +1 -1
- package/dist/src/public/definitions/agent.d.ts +1 -1
- package/dist/src/public/definitions/agent.js +1 -1
- package/dist/src/public/definitions/approval.d.ts +2 -84
- package/dist/src/public/definitions/approval.js +1 -1
- package/dist/src/public/definitions/callback-context.d.ts +1 -32
- package/dist/src/public/definitions/connections/mcp.d.ts +1 -1
- package/dist/src/public/definitions/connections/mcp.js +1 -1
- package/dist/src/public/definitions/connections/openapi.d.ts +1 -1
- package/dist/src/public/definitions/connections/openapi.js +1 -1
- package/dist/src/public/definitions/connections/protocol.d.ts +1 -1
- package/dist/src/public/definitions/instructions.d.ts +2 -2
- package/dist/src/public/definitions/instructions.js +1 -1
- package/dist/src/public/definitions/skill.js +1 -1
- package/dist/src/public/index.d.ts +1 -1
- package/dist/src/public/instructions/index.d.ts +1 -1
- package/dist/src/public/instrumentation/provider.d.ts +1 -117
- package/dist/src/public/instrumentation/provider.js +1 -1
- package/dist/src/public/models/openai/chatgpt/auth.js +1 -1
- package/dist/src/public/next/server.js +1 -1
- package/dist/src/public/nuxt/dev-server.js +1 -1
- package/dist/src/public/sandbox/backends/default.d.ts +1 -49
- package/dist/src/public/sandbox/backends/default.js +1 -1
- package/dist/src/public/sandbox/backends/docker.d.ts +1 -14
- package/dist/src/public/sandbox/backends/docker.js +1 -1
- package/dist/src/public/sandbox/backends/just-bash.d.ts +1 -17
- package/dist/src/public/sandbox/backends/just-bash.js +1 -1
- package/dist/src/public/sandbox/backends/microsandbox.d.ts +1 -17
- package/dist/src/public/sandbox/backends/microsandbox.js +1 -1
- package/dist/src/public/sandbox/backends/vercel.d.ts +1 -30
- package/dist/src/public/sandbox/backends/vercel.js +1 -1
- package/dist/src/public/sandbox/just-bash-sandbox.d.ts +12 -1
- package/dist/src/public/skills/index.d.ts +3 -3
- package/dist/src/public/skills/index.js +1 -1
- package/dist/src/public/sveltekit/dev-server.js +1 -1
- package/dist/src/public/tools/approval/index.d.ts +2 -2
- package/dist/src/public/tools/approval/index.js +1 -1
- package/dist/src/public/tools/bash.d.ts +3 -0
- package/dist/src/public/tools/bash.js +1 -0
- package/dist/src/public/tools/glob.d.ts +3 -0
- package/dist/src/public/tools/glob.js +1 -0
- package/dist/src/public/tools/grep.d.ts +3 -0
- package/dist/src/public/tools/grep.js +1 -0
- package/dist/src/public/tools/index.d.ts +6 -11
- package/dist/src/public/tools/index.js +1 -1
- package/dist/src/public/tools/load-skill.d.ts +3 -0
- package/dist/src/public/tools/load-skill.js +1 -0
- package/dist/src/public/tools/read-file.d.ts +3 -0
- package/dist/src/public/tools/read-file.js +1 -0
- package/dist/src/public/{tool-result-narrowing.d.ts → tools/result.d.ts} +2 -28
- package/dist/src/public/tools/result.js +1 -0
- package/dist/src/public/tools/sleep.d.ts +1 -0
- package/dist/src/public/tools/sleep.js +1 -0
- package/dist/src/public/tools/todo.d.ts +3 -0
- package/dist/src/public/tools/todo.js +1 -0
- package/dist/src/public/tools/web-fetch.d.ts +3 -0
- package/dist/src/public/tools/web-fetch.js +1 -0
- package/dist/src/public/tools/web-search.d.ts +3 -36
- package/dist/src/public/tools/web-search.js +1 -1
- package/dist/src/public/tools/workflow.d.ts +4 -0
- package/dist/src/public/tools/workflow.js +1 -0
- package/dist/src/public/tools/write-file.d.ts +3 -0
- package/dist/src/public/tools/write-file.js +1 -0
- package/dist/src/public/types/json.d.ts +1 -28
- package/dist/src/react/use-eve-agent.d.ts +1 -0
- package/dist/src/react/use-eve-agent.js +1 -1
- package/dist/src/runtime/actions/keys.d.ts +1 -1
- package/dist/src/runtime/actions/results.d.ts +1 -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/connections/authorization-tokens.d.ts +1 -1
- package/dist/src/runtime/connections/mcp-client.d.ts +1 -1
- package/dist/src/runtime/connections/mcp-client.js +1 -1
- package/dist/src/runtime/connections/openapi-client.d.ts +1 -1
- package/dist/src/runtime/connections/openapi-client.js +1 -1
- package/dist/src/runtime/connections/principal.d.ts +1 -1
- package/dist/src/runtime/connections/principal.js +1 -1
- package/dist/src/runtime/connections/registry-types.d.ts +11 -0
- package/dist/src/runtime/connections/registry.d.ts +3 -2
- package/dist/src/runtime/connections/resolve-authorization.d.ts +2 -2
- package/dist/src/runtime/connections/resolve-authorization.js +1 -1
- package/dist/src/runtime/connections/scoped-authorization.d.ts +2 -2
- package/dist/src/runtime/connections/scoped-authorization.js +1 -1
- package/dist/src/runtime/loaders/compile-metadata.js +1 -1
- package/dist/src/runtime/loaders/manifest.js +1 -1
- package/dist/src/runtime/prompt/compose.d.ts +0 -6
- package/dist/src/runtime/prompt/compose.js +1 -1
- package/dist/src/runtime/resolve-agent-graph.js +1 -1
- package/dist/src/runtime/resolve-agent.js +1 -1
- package/dist/src/runtime/resolve-connection.js +1 -1
- package/dist/src/runtime/resolve-dynamic-tool.js +1 -1
- package/dist/src/runtime/resolve-tool.d.ts +2 -1
- package/dist/src/runtime/resolve-tool.js +1 -1
- package/dist/src/runtime/sandbox/keys.js +1 -1
- package/dist/src/runtime/sandbox/registry.d.ts +4 -20
- package/dist/src/runtime/sandbox/registry.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 +3 -1
- package/dist/src/runtime/skills/sandbox-access.d.ts +1 -1
- package/dist/src/runtime/subagents/dynamic-agent-config.js +1 -1
- package/dist/src/runtime/subagents/dynamic-remote-agent-config.js +1 -1
- package/dist/src/runtime/subagents/registry.d.ts +0 -27
- package/dist/src/runtime/subagents/registry.js +1 -1
- package/dist/src/runtime/tools/registry.js +1 -1
- package/dist/src/runtime/types.d.ts +11 -27
- package/dist/src/sandbox/backends/default.d.ts +49 -0
- package/dist/src/sandbox/backends/default.js +1 -0
- package/dist/src/sandbox/backends/docker.d.ts +14 -0
- package/dist/src/sandbox/backends/docker.js +1 -0
- package/dist/src/sandbox/backends/just-bash.d.ts +17 -0
- package/dist/src/sandbox/backends/just-bash.js +1 -0
- package/dist/src/sandbox/backends/microsandbox.d.ts +17 -0
- package/dist/src/sandbox/backends/microsandbox.js +1 -0
- package/dist/src/sandbox/backends/vercel.d.ts +30 -0
- package/dist/src/sandbox/backends/vercel.js +1 -0
- package/dist/src/services/dev-client/runtime-artifacts.d.ts +2 -0
- package/dist/src/services/dev-client/runtime-artifacts.js +1 -1
- package/dist/src/services/dev-client.d.ts +1 -1
- package/dist/src/setup/channel-add-conflicts.js +1 -1
- package/dist/src/setup/cli/select-component.js +1 -1
- package/dist/src/setup/flows/link.js +1 -1
- package/dist/src/setup/flows/model-source-change.js +1 -1
- package/dist/src/setup/flows/model.js +1 -1
- package/dist/src/setup/flows/registry.d.ts +7 -1
- package/dist/src/setup/flows/registry.js +1 -1
- package/dist/src/setup/integrations/runner.js +1 -1
- package/dist/src/setup/prompter.js +1 -1
- package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +40 -3
- package/dist/src/setup/scaffold/create/web-template.d.ts +8 -8
- package/dist/src/setup/scaffold/create/web-template.js +336 -120
- package/dist/src/setup/scaffold/update/channels.js +1 -1
- package/dist/src/setup/scaffold/update/connections.js +1 -1
- package/dist/src/setup/vercel-project.js +0 -0
- package/dist/src/{runtime/actions/types.d.ts → shared/action-types.d.ts} +12 -12
- package/dist/src/{runtime/actions/types.js → shared/action-types.js} +1 -1
- package/dist/src/shared/agent-definition.d.ts +3 -10
- package/dist/src/shared/agent-definition.js +1 -1
- package/dist/src/shared/channel-definition.d.ts +5 -1
- package/dist/src/{runtime/connections/types.d.ts → shared/connection-types.d.ts} +3 -13
- package/dist/src/{runtime/input/types.d.ts → shared/input.d.ts} +1 -1
- package/dist/src/shared/input.js +1 -0
- package/dist/src/shared/instructions-definition.d.ts +2 -0
- package/dist/src/shared/instructions-definition.js +1 -1
- package/dist/src/shared/objects.d.ts +5 -0
- package/dist/src/shared/objects.js +1 -0
- package/dist/src/shared/sandbox-definition.d.ts +1 -1
- package/dist/src/shared/skill-definition.d.ts +2 -0
- package/dist/src/shared/skill-definition.js +1 -1
- package/dist/src/{execution/skills/types.d.ts → shared/skill-types.d.ts} +1 -1
- package/dist/src/shared/skill-types.js +1 -0
- package/dist/src/{runtime/connections → shared}/validate-authorization.d.ts +1 -1
- package/dist/src/shared/vercel-project.d.ts +1 -0
- package/dist/src/shared/vercel-project.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.d.ts +8 -4
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tasks/json.d.ts +4 -89
- package/dist/src/tasks/json.js +1 -1
- package/dist/src/tasks/session-index.d.ts +1 -1
- package/dist/src/tasks/task-id.d.ts +0 -1
- package/dist/src/tasks/task-id.js +1 -1
- package/dist/src/tasks/types.d.ts +1 -1
- package/dist/src/tasks/types.js +1 -1
- package/dist/src/{public/tools/approval/approval-helpers.d.ts → tools/approval/policies.d.ts} +1 -1
- package/dist/src/tools/approval/policies.js +1 -0
- package/dist/src/tools/auth.d.ts +35 -0
- package/dist/src/tools/auth.js +1 -0
- package/dist/src/{public/definitions/tool.d.ts → tools/definition.d.ts} +42 -138
- package/dist/src/tools/definition.js +1 -0
- package/dist/src/{shared/durable-dynamic-tool-callbacks.d.ts → tools/durable-callbacks.d.ts} +1 -1
- package/dist/src/tools/durable-callbacks.js +1 -0
- package/dist/src/tools/dynamic.d.ts +68 -0
- package/dist/src/tools/dynamic.js +1 -0
- package/dist/src/tools/framework/agent-contract.d.ts +8 -0
- package/dist/src/tools/framework/agent-contract.js +1 -0
- package/dist/src/tools/framework/agent.d.ts +17 -0
- package/dist/src/tools/framework/agent.js +1 -0
- package/dist/src/tools/framework/ask-question.d.ts +50 -0
- package/dist/src/tools/framework/ask-question.js +1 -0
- package/dist/src/tools/framework/connection-search.d.ts +3 -0
- package/dist/src/tools/framework/connection-search.js +1 -0
- package/dist/src/tools/framework/task-cancel.d.ts +29 -0
- package/dist/src/tools/framework/task-cancel.js +1 -0
- package/dist/src/tools/framework/task-contract.d.ts +167 -0
- package/dist/src/tools/framework/task-contract.js +1 -0
- package/dist/src/tools/framework/task-update.d.ts +9 -0
- package/dist/src/tools/framework/task-update.js +1 -0
- package/dist/src/{public/tools/output-builders.d.ts → tools/model-output.d.ts} +41 -1
- package/dist/src/tools/provided/bash.d.ts +29 -0
- package/dist/src/tools/provided/bash.js +1 -0
- package/dist/src/tools/provided/glob.d.ts +26 -0
- package/dist/src/tools/provided/glob.js +2 -0
- package/dist/src/{runtime/framework-tools → tools/provided}/grep.d.ts +10 -10
- package/dist/src/tools/provided/grep.js +2 -0
- package/dist/src/tools/provided/load-skill.d.ts +2 -0
- package/dist/src/tools/provided/load-skill.js +1 -0
- package/dist/src/tools/provided/read-file.d.ts +27 -0
- package/dist/src/tools/provided/read-file.js +2 -0
- package/dist/src/{public/tools/sleep/index.d.ts → tools/provided/sleep.d.ts} +3 -3
- package/dist/src/tools/provided/sleep.js +1 -0
- package/dist/src/tools/provided/todo.d.ts +8 -0
- package/dist/src/tools/provided/todo.js +2 -0
- package/dist/src/{runtime/framework-tools → tools/provided}/web-fetch.d.ts +5 -2
- package/dist/src/tools/provided/web-fetch.js +2 -0
- package/dist/src/tools/provided/web-search.d.ts +39 -0
- package/dist/src/tools/provided/web-search.js +1 -0
- package/dist/src/tools/provided/write-file.d.ts +23 -0
- package/dist/src/tools/provided/write-file.js +2 -0
- package/dist/src/tools/workflow.d.ts +37 -0
- package/dist/src/tools/workflow.js +1 -0
- 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-channel-delivery-instrumentation.js +1 -1
- package/dist/src/tracing/agent-otel-provider.js +2 -2
- package/dist/src/tracing/agent-otel-session-context.d.ts +1 -1
- package/dist/src/tracing/agent-otel-session-context.js +1 -1
- package/dist/src/tracing/agent-span-id-generator.d.ts +1 -0
- package/dist/src/tracing/agent-span-id-generator.js +1 -1
- package/dist/src/tracing/agent-trace-context-store.d.ts +1 -1
- 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 +2 -6
- package/dist/src/tracing/agent-trace-state.js +1 -1
- package/dist/src/tracing/install-instrumentation-runtime.js +1 -1
- package/dist/src/tracing/local-trace-reader.d.ts +1 -3
- package/dist/src/tracing/local-trace-reader.js +1 -1
- package/dist/src/tracing/otel-declaration.d.ts +1 -2
- package/dist/src/tracing/otel-registration.js +1 -1
- package/dist/src/tracing/sampled-trace.d.ts +10 -2
- package/dist/src/tracing/sampled-trace.js +1 -1
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.d.ts +8 -4
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +16 -4
- package/docs/channels/chat-sdk.mdx +1 -1
- package/docs/channels/discord.mdx +5 -1
- package/docs/channels/eve.mdx +19 -3
- package/docs/channels/github.mdx +2 -0
- package/docs/channels/linear.mdx +1 -1
- package/docs/channels/linq.mdx +1 -1
- package/docs/channels/overview.mdx +1 -1
- package/docs/channels/photon.mdx +4 -4
- package/docs/channels/slack.mdx +20 -3
- package/docs/channels/teams.mdx +1 -1
- package/docs/channels/telegram.mdx +2 -0
- package/docs/concepts/built-in-tools.md +31 -21
- package/docs/concepts/sessions-runs-and-streaming.md +3 -1
- package/docs/connections/overview.mdx +1 -1
- package/docs/extensions.md +2 -2
- package/docs/getting-started.mdx +10 -9
- package/docs/guides/auth-and-route-protection.md +3 -3
- package/docs/guides/client/output-schema.mdx +2 -2
- package/docs/guides/client/overview.mdx +4 -2
- package/docs/guides/dev-tui.md +26 -15
- package/docs/guides/frontend/nuxt.mdx +4 -3
- package/docs/guides/frontend/overview.mdx +21 -18
- package/docs/guides/frontend/sveltekit.mdx +4 -3
- package/docs/guides/frontend/use-eve-agent-svelte.mdx +5 -4
- package/docs/guides/frontend/use-eve-agent-vue.mdx +5 -4
- package/docs/guides/instrumentation.md +1 -0
- package/docs/guides/remote-agents.md +37 -18
- package/docs/meta.json +1 -1
- package/docs/patterns/multi-tenant-approvals.md +1 -1
- package/docs/reference/cli.md +2 -4
- package/docs/reference/typescript-api.md +35 -31
- package/docs/sandbox.mdx +21 -1
- package/docs/subagents/index.mdx +11 -28
- package/docs/tools/human-in-the-loop.md +43 -2
- package/docs/tools/overview.mdx +1 -1
- package/package.json +59 -9
- package/dist/src/compiler/normalize-extension.d.ts +0 -80
- package/dist/src/compiler/normalize-extension.js +0 -1
- package/dist/src/execution/sandbox/write-file-tool.js +0 -1
- package/dist/src/execution/web-fetch/tool.js +0 -1
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response-from-manifest.d.ts +0 -9
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response-from-manifest.js +0 -1
- package/dist/src/internal/nitro/routes/health.d.ts +0 -14
- package/dist/src/internal/nitro/routes/health.js +0 -1
- package/dist/src/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +0 -1
- package/dist/src/public/definitions/tool.js +0 -1
- package/dist/src/public/tool-result-narrowing.js +0 -1
- package/dist/src/public/tools/approval/approval-helpers.js +0 -1
- package/dist/src/public/tools/defaults.d.ts +0 -46
- package/dist/src/public/tools/defaults.js +0 -1
- package/dist/src/public/tools/define-bash-tool.d.ts +0 -21
- package/dist/src/public/tools/define-bash-tool.js +0 -1
- package/dist/src/public/tools/define-glob-tool.d.ts +0 -22
- package/dist/src/public/tools/define-glob-tool.js +0 -1
- package/dist/src/public/tools/define-grep-tool.d.ts +0 -22
- package/dist/src/public/tools/define-grep-tool.js +0 -1
- package/dist/src/public/tools/define-read-file-tool.d.ts +0 -21
- package/dist/src/public/tools/define-read-file-tool.js +0 -1
- package/dist/src/public/tools/define-write-file-tool.d.ts +0 -22
- package/dist/src/public/tools/define-write-file-tool.js +0 -1
- package/dist/src/public/tools/internal.d.ts +0 -13
- package/dist/src/public/tools/internal.js +0 -1
- package/dist/src/public/tools/sleep/index.js +0 -1
- package/dist/src/runtime/connections/callback-route.js +0 -1
- package/dist/src/runtime/framework-channels/index.d.ts +0 -6
- package/dist/src/runtime/framework-channels/index.js +0 -1
- package/dist/src/runtime/framework-tools/agent.d.ts +0 -29
- package/dist/src/runtime/framework-tools/agent.js +0 -1
- package/dist/src/runtime/framework-tools/ask-question.d.ts +0 -35
- package/dist/src/runtime/framework-tools/ask-question.js +0 -1
- package/dist/src/runtime/framework-tools/bash.d.ts +0 -24
- package/dist/src/runtime/framework-tools/bash.js +0 -1
- package/dist/src/runtime/framework-tools/connection-search-dynamic.d.ts +0 -19
- package/dist/src/runtime/framework-tools/connection-search-dynamic.js +0 -2
- package/dist/src/runtime/framework-tools/final-output.js +0 -1
- package/dist/src/runtime/framework-tools/glob.d.ts +0 -26
- package/dist/src/runtime/framework-tools/glob.js +0 -2
- package/dist/src/runtime/framework-tools/grep.js +0 -2
- package/dist/src/runtime/framework-tools/index.d.ts +0 -39
- package/dist/src/runtime/framework-tools/index.js +0 -1
- package/dist/src/runtime/framework-tools/read-file.d.ts +0 -27
- package/dist/src/runtime/framework-tools/read-file.js +0 -2
- package/dist/src/runtime/framework-tools/skill.d.ts +0 -12
- package/dist/src/runtime/framework-tools/skill.js +0 -1
- package/dist/src/runtime/framework-tools/subagent/local.js +0 -1
- package/dist/src/runtime/framework-tools/subagent/remote.js +0 -1
- package/dist/src/runtime/framework-tools/tasks.d.ts +0 -91
- package/dist/src/runtime/framework-tools/tasks.js +0 -1
- package/dist/src/runtime/framework-tools/web-fetch.js +0 -2
- package/dist/src/runtime/framework-tools/web-search.js +0 -1
- package/dist/src/runtime/framework-tools/write-file.d.ts +0 -23
- package/dist/src/runtime/framework-tools/write-file.js +0 -2
- package/dist/src/runtime/governance/auth/jwt-ecdsa.js +0 -1
- package/dist/src/runtime/governance/auth/jwt-hmac.js +0 -1
- package/dist/src/runtime/governance/auth/oidc.js +0 -1
- package/dist/src/runtime/input/types.js +0 -1
- package/dist/src/runtime/session-callback-route.d.ts +0 -6
- package/dist/src/runtime/session-callback-route.js +0 -1
- package/dist/src/runtime/task-input-response-route.d.ts +0 -5
- package/dist/src/runtime/task-input-response-route.js +0 -1
- package/dist/src/shared/durable-dynamic-tool-callbacks.js +0 -1
- package/dist/src/shared/dynamic-tool-definition.d.ts +0 -154
- package/dist/src/shared/dynamic-tool-definition.js +0 -1
- package/dist/src/shared/eve-server-health.d.ts +0 -5
- package/dist/src/shared/eve-server-health.js +0 -1
- package/dist/src/shared/tool-definition.d.ts +0 -89
- /package/dist/src/{runtime/governance → channel}/auth/http-basic.js +0 -0
- /package/dist/src/{runtime/governance → channel}/auth/token-claims.js +0 -0
- /package/dist/src/{runtime/governance → channel}/auth/types.js +0 -0
- /package/dist/src/{runtime/governance → channel}/auth/vercel-oidc-project.js +0 -0
- /package/dist/src/{runtime/governance/network → channel}/ip-allow-list.d.ts +0 -0
- /package/dist/src/{runtime/governance/network → channel}/ip-allow-list.js +0 -0
- /package/dist/src/{execution/skills/types.js → context/session-context.js} +0 -0
- /package/dist/src/execution/sandbox/{bash-tool.js → bash.js} +0 -0
- /package/dist/src/{runtime/framework-tools → execution/tools}/file-state.js +0 -0
- /package/dist/src/{runtime/framework-tools → execution/tools}/sleep.d.ts +0 -0
- /package/dist/src/{runtime/framework-tools → execution/tools}/sleep.js +0 -0
- /package/dist/src/execution/web-fetch/{tool.d.ts → execute.d.ts} +0 -0
- /package/dist/src/{shared/tool-definition.js → runtime/connections/registry-types.js} +0 -0
- /package/dist/src/{runtime/connections/types.js → shared/connection-types.js} +0 -0
- /package/dist/src/{runtime/sessions/auth.d.ts → shared/session-auth.d.ts} +0 -0
- /package/dist/src/{runtime/sessions/auth.js → shared/session-auth.js} +0 -0
- /package/dist/src/{runtime/connections → shared}/validate-authorization.js +0 -0
- /package/dist/src/{public/tools/output-builders.js → tools/model-output.js} +0 -0
- /package/dist/src/{shared/tool-schema.d.ts → tools/schema.d.ts} +0 -0
- /package/dist/src/{shared/tool-schema.js → tools/schema.js} +0 -0
- /package/dist/src/{shared/tool-task.d.ts → tools/task.d.ts} +0 -0
- /package/dist/src/{shared/tool-task.js → tools/task.js} +0 -0
|
@@ -4,6 +4,7 @@ import { asSchema } from "ai";
|
|
|
4
4
|
|
|
5
5
|
//#region src/protocol/routes.ts
|
|
6
6
|
const EVE_ROUTE_PREFIX = "/eve/v1";
|
|
7
|
+
const EVE_PRODUCTION_CRON_ROUTE_PATTERN = `${EVE_ROUTE_PREFIX}/cron/:token`;
|
|
7
8
|
const EVE_HEALTH_ROUTE_PATH = `${EVE_ROUTE_PREFIX}/health`;
|
|
8
9
|
const EVE_INFO_ROUTE_PATH = `${EVE_ROUTE_PREFIX}/info`;
|
|
9
10
|
const EVE_SESSION_ROUTE_PATH = `${EVE_ROUTE_PREFIX}/session`;
|
|
@@ -54,6 +55,26 @@ var AgentInfoResponseError = class extends Error {
|
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
57
|
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/client/health-response-error.ts
|
|
60
|
+
var HealthResponseError = class extends Error {
|
|
61
|
+
issues;
|
|
62
|
+
constructor(issues = []) {
|
|
63
|
+
const detail = issues.length === 0 ? "" : ` (${issues.join("; ")})`;
|
|
64
|
+
super(`The server returned an unrecognized eve health response.${detail}`);
|
|
65
|
+
this.name = "HealthResponseError";
|
|
66
|
+
this.issues = issues;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/client/health-schema.ts
|
|
72
|
+
const HealthResultSchema = z.object({
|
|
73
|
+
ok: z.literal(true),
|
|
74
|
+
status: z.literal("ready"),
|
|
75
|
+
workflowId: z.string().min(1)
|
|
76
|
+
}).strict();
|
|
77
|
+
|
|
57
78
|
//#endregion
|
|
58
79
|
//#region src/internal/http/basic-auth.ts
|
|
59
80
|
function encodeBasicCredentials(username, password) {
|
|
@@ -64,26 +85,68 @@ function encodeBasicCredentials(username, password) {
|
|
|
64
85
|
|
|
65
86
|
//#endregion
|
|
66
87
|
//#region src/client/agent-info-schema.ts
|
|
88
|
+
const owner = z.discriminatedUnion("kind", [
|
|
89
|
+
z.object({ kind: z.literal("application") }).strict(),
|
|
90
|
+
z.object({
|
|
91
|
+
feature: z.string(),
|
|
92
|
+
kind: z.literal("framework")
|
|
93
|
+
}).strict(),
|
|
94
|
+
z.object({
|
|
95
|
+
kind: z.literal("extension"),
|
|
96
|
+
namespace: z.string(),
|
|
97
|
+
packageName: z.string()
|
|
98
|
+
}).strict()
|
|
99
|
+
]);
|
|
100
|
+
const moduleBacking = z.discriminatedUnion("kind", [z.object({
|
|
101
|
+
externalDependencies: z.array(z.string()),
|
|
102
|
+
extensionScope: z.object({
|
|
103
|
+
namespace: z.string(),
|
|
104
|
+
sourceRoot: z.string()
|
|
105
|
+
}).strict().optional(),
|
|
106
|
+
kind: z.literal("filesystem"),
|
|
107
|
+
sourcePath: z.string()
|
|
108
|
+
}).strict(), z.object({
|
|
109
|
+
kind: z.literal("programmatic"),
|
|
110
|
+
moduleId: z.string(),
|
|
111
|
+
registryId: z.string(),
|
|
112
|
+
revision: z.string(),
|
|
113
|
+
semanticRevision: z.string().optional()
|
|
114
|
+
}).strict()]);
|
|
115
|
+
const binding = z.object({
|
|
116
|
+
backing: moduleBacking,
|
|
117
|
+
logicalPath: z.string(),
|
|
118
|
+
owner
|
|
119
|
+
}).strict();
|
|
67
120
|
const source = z.object({
|
|
121
|
+
binding: binding.optional(),
|
|
68
122
|
exportName: z.string().optional(),
|
|
69
123
|
logicalPath: z.string(),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
124
|
+
owner,
|
|
125
|
+
sourceId: z.string(),
|
|
126
|
+
sourceKind: z.enum([
|
|
127
|
+
"markdown",
|
|
128
|
+
"module",
|
|
129
|
+
"skill-package"
|
|
130
|
+
])
|
|
131
|
+
}).strict();
|
|
132
|
+
const entry = source.extend({ name: z.string() }).strict();
|
|
133
|
+
const dynamicResolver = source.extend({
|
|
134
|
+
eventNames: z.array(z.string()),
|
|
135
|
+
slug: z.string()
|
|
136
|
+
}).strict();
|
|
74
137
|
const modelRouting = z.discriminatedUnion("kind", [z.object({
|
|
75
138
|
kind: z.literal("gateway"),
|
|
76
139
|
target: z.string(),
|
|
77
140
|
byok: z.string().optional()
|
|
78
|
-
}), z.object({
|
|
141
|
+
}).strict(), z.object({
|
|
79
142
|
kind: z.literal("external"),
|
|
80
143
|
provider: z.string()
|
|
81
|
-
})]);
|
|
144
|
+
}).strict()]);
|
|
82
145
|
const modelEndpoint = z.union([
|
|
83
146
|
z.object({
|
|
84
147
|
kind: z.literal("external"),
|
|
85
148
|
provider: z.string()
|
|
86
|
-
}),
|
|
149
|
+
}).strict(),
|
|
87
150
|
z.object({
|
|
88
151
|
kind: z.literal("chatgpt"),
|
|
89
152
|
state: z.enum([
|
|
@@ -94,18 +157,18 @@ const modelEndpoint = z.union([
|
|
|
94
157
|
"unavailable"
|
|
95
158
|
]),
|
|
96
159
|
accountLabel: z.string().optional()
|
|
97
|
-
}),
|
|
160
|
+
}).strict(),
|
|
98
161
|
z.object({
|
|
99
162
|
kind: z.literal("gateway"),
|
|
100
163
|
connected: z.literal(true),
|
|
101
164
|
credential: z.enum(["api-key", "oidc"])
|
|
102
|
-
}),
|
|
165
|
+
}).strict(),
|
|
103
166
|
z.object({
|
|
104
167
|
kind: z.literal("gateway"),
|
|
105
168
|
connected: z.literal(false)
|
|
106
|
-
})
|
|
169
|
+
}).strict()
|
|
107
170
|
]);
|
|
108
|
-
const
|
|
171
|
+
const modelBaseFields = {
|
|
109
172
|
contextWindowTokens: z.number().optional(),
|
|
110
173
|
providerOptions: z.unknown().optional(),
|
|
111
174
|
reasoning: z.enum([
|
|
@@ -120,15 +183,18 @@ const agentModelBaseFields = {
|
|
|
120
183
|
source: source.optional()
|
|
121
184
|
};
|
|
122
185
|
const agentModel = z.union([z.object({
|
|
123
|
-
...
|
|
186
|
+
...modelBaseFields,
|
|
187
|
+
endpoint: modelEndpoint.optional(),
|
|
124
188
|
id: z.string(),
|
|
125
|
-
routing: modelRouting
|
|
126
|
-
endpoint: modelEndpoint.optional()
|
|
189
|
+
routing: modelRouting
|
|
127
190
|
}).strict(), z.object({
|
|
128
|
-
...
|
|
191
|
+
...modelBaseFields,
|
|
129
192
|
endpoint: z.never().optional(),
|
|
130
193
|
id: z.never().optional(),
|
|
131
|
-
routing: z.object({
|
|
194
|
+
routing: z.object({
|
|
195
|
+
kind: z.literal("dynamic"),
|
|
196
|
+
resolver: dynamicResolver
|
|
197
|
+
}).strict()
|
|
132
198
|
}).strict()]);
|
|
133
199
|
const tool = entry.extend({
|
|
134
200
|
description: z.string(),
|
|
@@ -137,71 +203,60 @@ const tool = entry.extend({
|
|
|
137
203
|
hasModelOutputProjection: z.boolean(),
|
|
138
204
|
hasOutputSchema: z.boolean(),
|
|
139
205
|
inputSchema: z.unknown(),
|
|
140
|
-
origin: z.enum(["authored", "framework"]),
|
|
141
206
|
outputSchema: z.unknown().optional(),
|
|
142
|
-
replacesFrameworkTool: z.boolean(),
|
|
143
207
|
requiresApproval: z.boolean()
|
|
144
|
-
});
|
|
145
|
-
const frameworkTool = tool.extend({
|
|
146
|
-
disabledByAuthor: z.boolean(),
|
|
147
|
-
replacedByAuthoredTool: z.boolean(),
|
|
148
|
-
status: z.enum([
|
|
149
|
-
"active",
|
|
150
|
-
"disabled",
|
|
151
|
-
"opt-in",
|
|
152
|
-
"replaced"
|
|
153
|
-
])
|
|
154
|
-
});
|
|
155
|
-
const dynamicResolver = source.extend({
|
|
156
|
-
eventNames: z.array(z.string()),
|
|
157
|
-
origin: z.enum(["authored", "framework"]),
|
|
158
|
-
slug: z.string()
|
|
159
|
-
});
|
|
208
|
+
}).strict();
|
|
160
209
|
const skill = entry.extend({
|
|
161
210
|
description: z.string(),
|
|
162
211
|
license: z.string().optional(),
|
|
163
212
|
markdown: z.string(),
|
|
164
213
|
metadata: z.record(z.string(), z.string()).optional()
|
|
165
|
-
});
|
|
214
|
+
}).strict();
|
|
166
215
|
const instructions = entry.extend({
|
|
167
216
|
content: z.string(),
|
|
168
217
|
role: z.enum(["system", "user"])
|
|
169
|
-
});
|
|
218
|
+
}).strict();
|
|
170
219
|
const schedule = entry.extend({
|
|
171
220
|
cron: z.string(),
|
|
172
221
|
hasRun: z.boolean(),
|
|
173
222
|
markdown: z.string().optional()
|
|
174
|
-
});
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
skills: z.number(),
|
|
187
|
-
tools: z.number()
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
const channel = entry.extend({
|
|
223
|
+
}).strict();
|
|
224
|
+
const channelMethod = z.enum([
|
|
225
|
+
"GET",
|
|
226
|
+
"HEAD",
|
|
227
|
+
"POST",
|
|
228
|
+
"PUT",
|
|
229
|
+
"PATCH",
|
|
230
|
+
"DELETE",
|
|
231
|
+
"OPTIONS",
|
|
232
|
+
"WEBSOCKET"
|
|
233
|
+
]);
|
|
234
|
+
const channelRoute = entry.extend({
|
|
191
235
|
adapterKind: z.string().optional(),
|
|
192
|
-
method:
|
|
193
|
-
origin: z.enum(["authored", "framework"]),
|
|
236
|
+
method: channelMethod,
|
|
194
237
|
urlPath: z.string()
|
|
195
|
-
});
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
238
|
+
}).strict();
|
|
239
|
+
const sourceDescriptor = z.object({
|
|
240
|
+
backing: z.union([moduleBacking, z.object({
|
|
241
|
+
kind: z.literal("resource"),
|
|
242
|
+
sourcePath: z.string()
|
|
243
|
+
}).strict()]),
|
|
244
|
+
layer: z.enum([
|
|
245
|
+
"framework-default",
|
|
246
|
+
"extension-package",
|
|
247
|
+
"extension-override",
|
|
248
|
+
"application"
|
|
249
|
+
]),
|
|
250
|
+
logicalPath: z.string(),
|
|
251
|
+
owner,
|
|
252
|
+
sourceId: z.string()
|
|
253
|
+
}).strict();
|
|
254
|
+
const shadowedChannelRoute = z.object({
|
|
255
|
+
method: channelMethod,
|
|
256
|
+
source: sourceDescriptor,
|
|
257
|
+
urlPath: z.string(),
|
|
258
|
+
winnerSourceId: z.string()
|
|
259
|
+
}).strict();
|
|
205
260
|
const connection = source.extend({
|
|
206
261
|
connectionName: z.string(),
|
|
207
262
|
description: z.string(),
|
|
@@ -211,11 +266,11 @@ const connection = source.extend({
|
|
|
211
266
|
protocol: z.string(),
|
|
212
267
|
toolFilter: z.unknown().optional(),
|
|
213
268
|
url: z.string()
|
|
214
|
-
});
|
|
269
|
+
}).strict();
|
|
215
270
|
const hook = source.extend({
|
|
216
271
|
eventNames: z.array(z.string()),
|
|
217
272
|
slug: z.string()
|
|
218
|
-
});
|
|
273
|
+
}).strict();
|
|
219
274
|
const sandbox = source.extend({
|
|
220
275
|
backendKind: z.string().optional(),
|
|
221
276
|
description: z.string().optional(),
|
|
@@ -223,64 +278,264 @@ const sandbox = source.extend({
|
|
|
223
278
|
hasOnSession: z.boolean(),
|
|
224
279
|
revalidationKey: z.string().optional(),
|
|
225
280
|
sourceHash: z.string().optional()
|
|
226
|
-
});
|
|
281
|
+
}).strict();
|
|
282
|
+
const subagent = entry.extend({
|
|
283
|
+
configResolver: dynamicResolver.optional(),
|
|
284
|
+
description: z.string().optional(),
|
|
285
|
+
entryPath: z.string(),
|
|
286
|
+
nodeId: z.string(),
|
|
287
|
+
parentNodeId: z.string(),
|
|
288
|
+
rootPath: z.string(),
|
|
289
|
+
summary: z.object({
|
|
290
|
+
channels: z.number(),
|
|
291
|
+
connections: z.number(),
|
|
292
|
+
hooks: z.number(),
|
|
293
|
+
instructions: z.number(),
|
|
294
|
+
schedules: z.number(),
|
|
295
|
+
skills: z.number(),
|
|
296
|
+
tools: z.number()
|
|
297
|
+
}).strict()
|
|
298
|
+
}).strict();
|
|
299
|
+
const remoteAgent = entry.extend({
|
|
300
|
+
description: z.string(),
|
|
301
|
+
nodeId: z.string(),
|
|
302
|
+
parentNodeId: z.string(),
|
|
303
|
+
url: z.string().optional()
|
|
304
|
+
}).strict();
|
|
305
|
+
const kernelEffect = z.object({
|
|
306
|
+
action: z.enum([
|
|
307
|
+
"subagent-call",
|
|
308
|
+
"task-update",
|
|
309
|
+
"task-cancel"
|
|
310
|
+
]).optional(),
|
|
311
|
+
audience: z.array(z.enum([
|
|
312
|
+
"root-session",
|
|
313
|
+
"delegated-task-child",
|
|
314
|
+
"requires-request-input",
|
|
315
|
+
"requires-loadable-skill",
|
|
316
|
+
"below-subagent-depth"
|
|
317
|
+
])),
|
|
318
|
+
kind: z.enum([
|
|
319
|
+
"request-input",
|
|
320
|
+
"dispatch",
|
|
321
|
+
"provider-tool"
|
|
322
|
+
]),
|
|
323
|
+
sourceId: z.string()
|
|
324
|
+
}).strict();
|
|
325
|
+
const compositionDiagnostic = z.object({
|
|
326
|
+
kind: z.enum(["disabled", "shadowed"]),
|
|
327
|
+
logicalPath: z.string(),
|
|
328
|
+
owner,
|
|
329
|
+
sourceId: z.string(),
|
|
330
|
+
winnerSourceId: z.string().optional()
|
|
331
|
+
}).strict();
|
|
332
|
+
const workflow = z.discriminatedUnion("enabled", [z.object({
|
|
333
|
+
enabled: z.literal(false),
|
|
334
|
+
toolName: z.string()
|
|
335
|
+
}).strict(), z.object({
|
|
336
|
+
enabled: z.literal(true),
|
|
337
|
+
source,
|
|
338
|
+
toolName: z.string()
|
|
339
|
+
}).strict()]);
|
|
227
340
|
const AgentInfoResultSchema = z.object({
|
|
228
341
|
agent: z.object({
|
|
229
342
|
agentRoot: z.string(),
|
|
230
343
|
appRoot: z.string(),
|
|
231
|
-
|
|
344
|
+
config: source.extend({ binding }).strict(),
|
|
232
345
|
description: z.string().optional(),
|
|
233
346
|
model: agentModel,
|
|
234
347
|
name: z.string(),
|
|
348
|
+
nodeId: z.string(),
|
|
235
349
|
outputSchema: z.unknown().optional()
|
|
236
|
-
}),
|
|
237
|
-
capabilities: z.object({ devRoutes: z.boolean() }),
|
|
350
|
+
}).strict(),
|
|
351
|
+
capabilities: z.object({ devRoutes: z.boolean() }).strict(),
|
|
238
352
|
channels: z.object({
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
353
|
+
routes: z.array(channelRoute),
|
|
354
|
+
shadowed: z.array(shadowedChannelRoute)
|
|
355
|
+
}).strict(),
|
|
356
|
+
composition: z.object({
|
|
357
|
+
disabled: z.array(compositionDiagnostic),
|
|
358
|
+
shadowed: z.array(compositionDiagnostic)
|
|
359
|
+
}).strict(),
|
|
244
360
|
connections: z.array(connection),
|
|
245
361
|
diagnostics: z.object({
|
|
246
362
|
discoveryErrors: z.number(),
|
|
247
363
|
discoveryWarnings: z.number()
|
|
248
|
-
}),
|
|
364
|
+
}).strict(),
|
|
249
365
|
hooks: z.array(hook),
|
|
250
366
|
instructions: z.object({
|
|
251
367
|
dynamic: z.array(dynamicResolver),
|
|
252
368
|
static: z.array(instructions)
|
|
253
|
-
}),
|
|
369
|
+
}).strict(),
|
|
370
|
+
instrumentation: source.optional(),
|
|
371
|
+
kernelEffects: z.array(kernelEffect),
|
|
254
372
|
kind: z.literal("eve-agent-info"),
|
|
255
373
|
mode: z.enum(["development", "production"]),
|
|
256
|
-
|
|
374
|
+
remoteAgents: z.object({
|
|
375
|
+
entries: z.array(remoteAgent),
|
|
376
|
+
total: z.number()
|
|
377
|
+
}).strict(),
|
|
378
|
+
sandbox,
|
|
257
379
|
schedules: z.array(schedule),
|
|
258
380
|
skills: z.object({
|
|
259
381
|
dynamic: z.array(dynamicResolver),
|
|
260
382
|
static: z.array(skill)
|
|
261
|
-
}),
|
|
383
|
+
}).strict(),
|
|
262
384
|
subagents: z.object({
|
|
263
385
|
local: z.array(subagent),
|
|
264
386
|
total: z.number()
|
|
265
|
-
}),
|
|
387
|
+
}).strict(),
|
|
266
388
|
tools: z.object({
|
|
267
|
-
authored: z.array(tool),
|
|
268
|
-
available: z.array(tool),
|
|
269
|
-
disabledFramework: z.array(z.string()),
|
|
270
389
|
dynamic: z.array(dynamicResolver),
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
workflow: z.object({
|
|
276
|
-
enabled: z.boolean(),
|
|
277
|
-
toolName: z.string()
|
|
278
|
-
}),
|
|
390
|
+
static: z.array(tool)
|
|
391
|
+
}).strict(),
|
|
392
|
+
version: z.literal(3),
|
|
393
|
+
workflow,
|
|
279
394
|
workspace: z.object({
|
|
280
395
|
resourceRoot: z.unknown(),
|
|
281
396
|
rootEntries: z.array(z.string())
|
|
282
|
-
})
|
|
397
|
+
}).strict()
|
|
398
|
+
}).strict().superRefine((value, context) => {
|
|
399
|
+
const assertUnique = (entries, identity, path) => {
|
|
400
|
+
const seen = /* @__PURE__ */ new Set();
|
|
401
|
+
entries.forEach((entry, index) => {
|
|
402
|
+
const key = identity(entry);
|
|
403
|
+
if (seen.has(key)) context.addIssue({
|
|
404
|
+
code: "custom",
|
|
405
|
+
message: `Duplicate public identity "${key}".`,
|
|
406
|
+
path: [...path, index]
|
|
407
|
+
});
|
|
408
|
+
seen.add(key);
|
|
409
|
+
});
|
|
410
|
+
};
|
|
411
|
+
const assertTotal = (total, entries, path) => {
|
|
412
|
+
if (!Number.isSafeInteger(total) || total < 0 || total !== entries.length) context.addIssue({
|
|
413
|
+
code: "custom",
|
|
414
|
+
message: `Expected total ${entries.length}, received ${total}.`,
|
|
415
|
+
path: [...path]
|
|
416
|
+
});
|
|
417
|
+
};
|
|
418
|
+
assertUnique(value.tools.static, (entry) => entry.name, ["tools", "static"]);
|
|
419
|
+
assertUnique(value.tools.dynamic, (entry) => entry.slug, ["tools", "dynamic"]);
|
|
420
|
+
assertUnique(value.skills.static, (entry) => entry.name, ["skills", "static"]);
|
|
421
|
+
assertUnique(value.skills.dynamic, (entry) => entry.slug, ["skills", "dynamic"]);
|
|
422
|
+
assertUnique(value.instructions.static, (entry) => entry.name, ["instructions", "static"]);
|
|
423
|
+
assertUnique(value.instructions.dynamic, (entry) => entry.slug, ["instructions", "dynamic"]);
|
|
424
|
+
assertUnique(value.schedules, (entry) => entry.name, ["schedules"]);
|
|
425
|
+
assertUnique(value.connections, (entry) => entry.connectionName, ["connections"]);
|
|
426
|
+
assertUnique(value.hooks, (entry) => entry.slug, ["hooks"]);
|
|
427
|
+
assertUnique(value.channels.routes, (entry) => `${entry.method} ${normalizeRoutePattern(entry.urlPath)}`, ["channels", "routes"]);
|
|
428
|
+
assertUnique(value.subagents.local, (entry) => entry.nodeId, ["subagents", "local"]);
|
|
429
|
+
assertUnique(value.remoteAgents.entries, (entry) => entry.nodeId, ["remoteAgents", "entries"]);
|
|
430
|
+
assertTotal(value.subagents.total, value.subagents.local, ["subagents", "total"]);
|
|
431
|
+
assertTotal(value.remoteAgents.total, value.remoteAgents.entries, ["remoteAgents", "total"]);
|
|
432
|
+
const boundSources = [
|
|
433
|
+
[value.agent.config, ["agent", "config"]],
|
|
434
|
+
...value.agent.model.source === void 0 ? [] : [[value.agent.model.source, [
|
|
435
|
+
"agent",
|
|
436
|
+
"model",
|
|
437
|
+
"source"
|
|
438
|
+
]]],
|
|
439
|
+
...value.agent.model.routing.kind === "dynamic" ? [[value.agent.model.routing.resolver, [
|
|
440
|
+
"agent",
|
|
441
|
+
"model",
|
|
442
|
+
"routing",
|
|
443
|
+
"resolver"
|
|
444
|
+
]]] : [],
|
|
445
|
+
...value.channels.routes.map((entry, index) => [entry, [
|
|
446
|
+
"channels",
|
|
447
|
+
"routes",
|
|
448
|
+
index
|
|
449
|
+
]]),
|
|
450
|
+
...value.connections.map((entry, index) => [entry, ["connections", index]]),
|
|
451
|
+
...value.hooks.map((entry, index) => [entry, ["hooks", index]]),
|
|
452
|
+
...value.instructions.dynamic.map((entry, index) => [entry, [
|
|
453
|
+
"instructions",
|
|
454
|
+
"dynamic",
|
|
455
|
+
index
|
|
456
|
+
]]),
|
|
457
|
+
...value.instructions.static.map((entry, index) => [entry, [
|
|
458
|
+
"instructions",
|
|
459
|
+
"static",
|
|
460
|
+
index
|
|
461
|
+
]]),
|
|
462
|
+
...value.instrumentation === void 0 ? [] : [[value.instrumentation, ["instrumentation"]]],
|
|
463
|
+
...value.remoteAgents.entries.map((entry, index) => [entry, [
|
|
464
|
+
"remoteAgents",
|
|
465
|
+
"entries",
|
|
466
|
+
index
|
|
467
|
+
]]),
|
|
468
|
+
...value.schedules.map((entry, index) => [entry, ["schedules", index]]),
|
|
469
|
+
...value.skills.dynamic.map((entry, index) => [entry, [
|
|
470
|
+
"skills",
|
|
471
|
+
"dynamic",
|
|
472
|
+
index
|
|
473
|
+
]]),
|
|
474
|
+
...value.skills.static.map((entry, index) => [entry, [
|
|
475
|
+
"skills",
|
|
476
|
+
"static",
|
|
477
|
+
index
|
|
478
|
+
]]),
|
|
479
|
+
...value.subagents.local.flatMap((entry, index) => entry.configResolver === void 0 ? [] : [[entry.configResolver, [
|
|
480
|
+
"subagents",
|
|
481
|
+
"local",
|
|
482
|
+
index,
|
|
483
|
+
"configResolver"
|
|
484
|
+
]]]),
|
|
485
|
+
...value.tools.dynamic.map((entry, index) => [entry, [
|
|
486
|
+
"tools",
|
|
487
|
+
"dynamic",
|
|
488
|
+
index
|
|
489
|
+
]]),
|
|
490
|
+
...value.tools.static.map((entry, index) => [entry, [
|
|
491
|
+
"tools",
|
|
492
|
+
"static",
|
|
493
|
+
index
|
|
494
|
+
]]),
|
|
495
|
+
...value.workflow.enabled ? [[value.workflow.source, ["workflow", "source"]]] : [],
|
|
496
|
+
[value.sandbox, ["sandbox"]]
|
|
497
|
+
];
|
|
498
|
+
for (const [entry, path] of boundSources) {
|
|
499
|
+
if (entry.sourceKind === "module" && entry.binding === void 0) {
|
|
500
|
+
context.addIssue({
|
|
501
|
+
code: "custom",
|
|
502
|
+
message: "Module source is missing its compiled binding.",
|
|
503
|
+
path: [...path, "binding"]
|
|
504
|
+
});
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
if (entry.sourceKind !== "module" && entry.binding !== void 0) {
|
|
508
|
+
context.addIssue({
|
|
509
|
+
code: "custom",
|
|
510
|
+
message: `${entry.sourceKind} source cannot carry a module binding.`,
|
|
511
|
+
path: [...path, "binding"]
|
|
512
|
+
});
|
|
513
|
+
continue;
|
|
514
|
+
}
|
|
515
|
+
if (entry.binding === void 0) continue;
|
|
516
|
+
if (entry.binding.logicalPath !== entry.logicalPath) context.addIssue({
|
|
517
|
+
code: "custom",
|
|
518
|
+
message: "Source and binding logical paths do not match.",
|
|
519
|
+
path: [
|
|
520
|
+
...path,
|
|
521
|
+
"binding",
|
|
522
|
+
"logicalPath"
|
|
523
|
+
]
|
|
524
|
+
});
|
|
525
|
+
if (JSON.stringify(entry.binding.owner) !== JSON.stringify(entry.owner)) context.addIssue({
|
|
526
|
+
code: "custom",
|
|
527
|
+
message: "Source and binding owners do not match.",
|
|
528
|
+
path: [
|
|
529
|
+
...path,
|
|
530
|
+
"binding",
|
|
531
|
+
"owner"
|
|
532
|
+
]
|
|
533
|
+
});
|
|
534
|
+
}
|
|
283
535
|
});
|
|
536
|
+
function normalizeRoutePattern(path) {
|
|
537
|
+
return path.replace(/^\/+|\/+$/g, "").split("/").map((segment) => segment.startsWith(":") || /^\[[^\]]+\]$/.test(segment) ? ":" : segment).join("/");
|
|
538
|
+
}
|
|
284
539
|
|
|
285
540
|
//#endregion
|
|
286
541
|
//#region src/shared/guards.ts
|
|
@@ -960,7 +1215,7 @@ function isPlainObject(value) {
|
|
|
960
1215
|
}
|
|
961
1216
|
|
|
962
1217
|
//#endregion
|
|
963
|
-
//#region src/
|
|
1218
|
+
//#region src/tools/schema.ts
|
|
964
1219
|
const JSON_SCHEMA_TARGET = "draft-07";
|
|
965
1220
|
function serializeOutputSchema(source) {
|
|
966
1221
|
return serializeSchema(source, "output");
|
|
@@ -1239,7 +1494,18 @@ var Client = class {
|
|
|
1239
1494
|
const body = await response.text();
|
|
1240
1495
|
throw new ClientError(response.status, body, response.headers);
|
|
1241
1496
|
}
|
|
1242
|
-
|
|
1497
|
+
let payload;
|
|
1498
|
+
try {
|
|
1499
|
+
payload = await response.json();
|
|
1500
|
+
} catch {
|
|
1501
|
+
throw new HealthResponseError();
|
|
1502
|
+
}
|
|
1503
|
+
const result = HealthResultSchema.safeParse(payload);
|
|
1504
|
+
if (!result.success) throw new HealthResponseError(result.error.issues.slice(0, 5).map((issue) => {
|
|
1505
|
+
const path = issue.path.join(".");
|
|
1506
|
+
return path.length === 0 ? issue.message : `${path}: ${issue.message}`;
|
|
1507
|
+
}));
|
|
1508
|
+
return result.data;
|
|
1243
1509
|
}
|
|
1244
1510
|
async info() {
|
|
1245
1511
|
const response = await this.fetch(EVE_INFO_ROUTE_PATH);
|
|
@@ -1430,7 +1696,10 @@ var EveAgentStore = class {
|
|
|
1430
1696
|
};
|
|
1431
1697
|
}
|
|
1432
1698
|
async send(input) {
|
|
1433
|
-
if (this.#activeTurn !== void 0)
|
|
1699
|
+
if (this.#activeTurn !== void 0) {
|
|
1700
|
+
if (this.#status === "resuming") throw new Error("eve session is resuming.");
|
|
1701
|
+
return await this.#sendFollowUp(this.#activeTurn, input);
|
|
1702
|
+
}
|
|
1434
1703
|
const response = Promise.withResolvers();
|
|
1435
1704
|
const completion = Promise.withResolvers();
|
|
1436
1705
|
const turn = {
|
|
@@ -1503,7 +1772,7 @@ var EveAgentStore = class {
|
|
|
1503
1772
|
return promise;
|
|
1504
1773
|
}
|
|
1505
1774
|
async #resume() {
|
|
1506
|
-
if (this.#status === "streaming" || this.#status === "submitted") throw new Error("eve session is already processing a turn.");
|
|
1775
|
+
if (this.#status === "resuming" || this.#status === "streaming" || this.#status === "submitted") throw new Error("eve session is already processing a turn.");
|
|
1507
1776
|
if (this.#session === void 0) throw new Error("An eve session is required before resuming.");
|
|
1508
1777
|
const response = Promise.withResolvers();
|
|
1509
1778
|
const completion = Promise.withResolvers();
|
|
@@ -1522,29 +1791,43 @@ var EveAgentStore = class {
|
|
|
1522
1791
|
this.#activeTurn = turn;
|
|
1523
1792
|
turn.resolveResponse(void 0);
|
|
1524
1793
|
this.#error = void 0;
|
|
1525
|
-
this.#status = "
|
|
1794
|
+
this.#status = "resuming";
|
|
1526
1795
|
this.#publish();
|
|
1527
1796
|
try {
|
|
1528
|
-
const
|
|
1797
|
+
const hasCompleteInitialPrefix = this.#events.length === session.state.streamIndex;
|
|
1798
|
+
const replayed = hasCompleteInitialPrefix ? [...this.#events] : [];
|
|
1529
1799
|
for await (const event of session.stream({
|
|
1530
1800
|
follow: false,
|
|
1531
1801
|
signal: turn.abortController.signal,
|
|
1532
|
-
startIndex: 0
|
|
1802
|
+
startIndex: hasCompleteInitialPrefix ? session.state.streamIndex : 0
|
|
1533
1803
|
})) {
|
|
1534
1804
|
if (!this.#isActiveTurn(turn)) return;
|
|
1535
1805
|
replayed.push(event);
|
|
1536
|
-
this.#acceptServerEvent(event,
|
|
1806
|
+
this.#acceptServerEvent(event, {
|
|
1807
|
+
publish: false,
|
|
1808
|
+
transitionToStreaming: false
|
|
1809
|
+
});
|
|
1537
1810
|
}
|
|
1538
1811
|
if (!this.#isActiveTurn(turn)) return;
|
|
1539
|
-
|
|
1540
|
-
if (
|
|
1812
|
+
const replayTail = replayed.at(-1);
|
|
1813
|
+
if (replayTail !== void 0) this.#applyTerminalStreamFailure(replayTail);
|
|
1814
|
+
const replaySettled = isSettledSessionTail(replayed);
|
|
1815
|
+
if (this.#error === void 0 && (!replaySettled || replayTail?.type === "session.waiting")) {
|
|
1541
1816
|
const pendingAuthorizations = collectPendingAuthorizations(replayed);
|
|
1542
|
-
|
|
1817
|
+
if (!replaySettled) this.#status = "streaming";
|
|
1818
|
+
this.#publish();
|
|
1819
|
+
for await (const event of session.stream({
|
|
1820
|
+
signal: turn.abortController.signal,
|
|
1821
|
+
streamReconnectPolicy: replaySettled ? { reconnect: false } : void 0
|
|
1822
|
+
})) {
|
|
1543
1823
|
if (!this.#isActiveTurn(turn)) return;
|
|
1544
1824
|
this.#acceptServerEvent(event);
|
|
1545
1825
|
updatePendingAuthorizations(pendingAuthorizations, event);
|
|
1546
1826
|
if (isCurrentTurnBoundaryEvent(event) && (event.type !== "session.waiting" || pendingAuthorizations.size === 0)) break;
|
|
1547
1827
|
}
|
|
1828
|
+
} else {
|
|
1829
|
+
this.#status = this.#error === void 0 ? "ready" : "error";
|
|
1830
|
+
this.#publish();
|
|
1548
1831
|
}
|
|
1549
1832
|
await this.#followSteeredTurns(turn);
|
|
1550
1833
|
if (this.#isActiveTurn(turn)) this.#status = this.#error === void 0 ? "ready" : "error";
|
|
@@ -1686,14 +1969,14 @@ var EveAgentStore = class {
|
|
|
1686
1969
|
type: "client.input.responded"
|
|
1687
1970
|
});
|
|
1688
1971
|
}
|
|
1689
|
-
#acceptServerEvent(event,
|
|
1972
|
+
#acceptServerEvent(event, options = {}) {
|
|
1690
1973
|
if (!this.#seenEvents.admit(event)) return;
|
|
1691
1974
|
this.#events = [...this.#events, event];
|
|
1692
1975
|
this.#applyServerEvent(event);
|
|
1693
1976
|
this.#callbacks.onEvent?.(event);
|
|
1694
|
-
this.#status = "streaming";
|
|
1977
|
+
if (options.transitionToStreaming ?? true) this.#status = "streaming";
|
|
1695
1978
|
this.#applyTerminalStreamFailure(event);
|
|
1696
|
-
if (publish) this.#publish();
|
|
1979
|
+
if (options.publish ?? true) this.#publish();
|
|
1697
1980
|
}
|
|
1698
1981
|
#applyServerEvent(event) {
|
|
1699
1982
|
const pendingSubmission = this.#pendingMessageSubmissions[0];
|