eve 0.44.4 → 0.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -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/{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-BtsOXv3s.js → use-eve-agent-BH7Z6SDu.js} +397 -106
- package/dist/src/chunks/{use-eve-agent-BJwaMe5k.js → use-eve-agent-DI2j5XK8.js} +397 -106
- 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/integration-connect.d.ts +2 -0
- package/dist/src/cli/commands/integration-connect.js +1 -1
- package/dist/src/cli/commands/register-integration-commands.js +1 -1
- package/dist/src/cli/commands/trace.js +1 -1
- package/dist/src/cli/dev/tui/remote-auth.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 +1946 -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 +182 -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 +14 -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-memory.d.ts +5 -0
- package/dist/src/compiler/normalize-memory.js +1 -0
- 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 +70 -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 +155 -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 +10 -3
- 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 +33 -1
- package/dist/src/context/keys.js +1 -1
- package/dist/src/context/memory-event-lifecycle.d.ts +13 -0
- package/dist/src/context/memory-event-lifecycle.js +1 -0
- package/dist/src/context/memory-lifecycle.d.ts +52 -0
- package/dist/src/context/memory-lifecycle.js +1 -0
- package/dist/src/context/memory-tools.d.ts +12 -0
- package/dist/src/context/memory-tools.js +1 -0
- 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 +6 -6
- package/dist/src/discover/extensions.js +1 -1
- package/dist/src/discover/filesystem.d.ts +2 -2
- package/dist/src/discover/filesystem.js +1 -1
- package/dist/src/discover/manifest.d.ts +9 -1
- package/dist/src/discover/manifest.js +1 -1
- package/dist/src/discover/memory.d.ts +14 -0
- package/dist/src/discover/memory.js +1 -0
- package/dist/src/discover/project.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/cli/eval.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/history-view.d.ts +2 -2
- package/dist/src/execution/history-view.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/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/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.d.ts +1 -3
- 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/memory-wrapper.d.ts +2 -0
- package/dist/src/framework/sources/modules/memory-wrapper.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 +6 -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/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/emission.d.ts +1 -1
- package/dist/src/harness/emission.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/memory.d.ts +2 -0
- package/dist/src/internal/authored-definition/memory.js +1 -0
- package/dist/src/internal/authored-definition/schema-backed.d.ts +7 -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/dynamic-tool-rebind.d.ts +3 -0
- package/dist/src/internal/dynamic-tool-rebind.js +1 -0
- 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 +2 -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 +2 -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/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/mcp.js +1 -1
- package/dist/src/public/channels/slack/action-status.d.ts +1 -1
- package/dist/src/public/channels/slack/hitl.d.ts +1 -1
- package/dist/src/public/channels/slack/hitl.js +1 -1
- package/dist/src/public/channels/slack/inbound.d.ts +9 -0
- package/dist/src/public/channels/slack/inbound.js +1 -1
- 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 +1 -1
- 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/memory/index.d.ts +117 -0
- package/dist/src/public/memory/index.js +1 -0
- package/dist/src/public/memory/scope.d.ts +2 -0
- package/dist/src/public/memory/scope.js +1 -0
- 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/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.d.ts +1 -0
- package/dist/src/runtime/resolve-dynamic-tool.js +1 -1
- package/dist/src/runtime/resolve-memory.d.ts +4 -0
- package/dist/src/runtime/resolve-memory.js +1 -0
- 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 +18 -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/connection-connector.d.ts +2 -0
- package/dist/src/setup/connection-connector.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.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 +2 -2
- package/dist/src/setup/scaffold/create/web-template.d.ts +10 -8
- package/dist/src/setup/scaffold/create/web-template.js +364 -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/{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/memory-definition.d.ts +2 -0
- package/dist/src/shared/memory-definition.js +1 -0
- package/dist/src/shared/memory-state.d.ts +55 -0
- package/dist/src/shared/memory-state.js +1 -0
- 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/overview.mdx +1 -1
- package/docs/channels/slack.mdx +2 -0
- package/docs/channels/teams.mdx +1 -1
- package/docs/channels/telegram.mdx +2 -0
- package/docs/concepts/built-in-tools.md +30 -21
- package/docs/concepts/context-control.md +7 -0
- package/docs/concepts/default-harness.md +8 -0
- package/docs/concepts/sessions-runs-and-streaming.md +5 -3
- package/docs/concepts/state.md +8 -1
- package/docs/connections/overview.mdx +1 -1
- package/docs/extensions.md +8 -4
- package/docs/getting-started.mdx +9 -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/dynamic-capabilities.md +3 -2
- 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/memory.md +255 -0
- package/docs/meta.json +1 -0
- package/docs/patterns/multi-tenant-approvals.md +1 -1
- package/docs/patterns/multi-tenant-memory.md +108 -136
- package/docs/reference/cli.md +2 -4
- package/docs/reference/typescript-api.md +35 -31
- package/docs/sandbox.mdx +1 -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 +68 -8
- 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/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/execution/web-fetch/{tool.js → execute.js} +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,70 @@ 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
|
+
dependencies: z.record(z.string(), z.string()).optional(),
|
|
110
|
+
kind: z.literal("programmatic"),
|
|
111
|
+
moduleId: z.string(),
|
|
112
|
+
parameters: z.record(z.string(), z.unknown()).optional(),
|
|
113
|
+
registryId: z.string(),
|
|
114
|
+
revision: z.string(),
|
|
115
|
+
semanticRevision: z.string().optional()
|
|
116
|
+
}).strict()]);
|
|
117
|
+
const binding = z.object({
|
|
118
|
+
backing: moduleBacking,
|
|
119
|
+
logicalPath: z.string(),
|
|
120
|
+
owner
|
|
121
|
+
}).strict();
|
|
67
122
|
const source = z.object({
|
|
123
|
+
binding: binding.optional(),
|
|
68
124
|
exportName: z.string().optional(),
|
|
69
125
|
logicalPath: z.string(),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
126
|
+
owner,
|
|
127
|
+
sourceId: z.string(),
|
|
128
|
+
sourceKind: z.enum([
|
|
129
|
+
"markdown",
|
|
130
|
+
"module",
|
|
131
|
+
"skill-package"
|
|
132
|
+
])
|
|
133
|
+
}).strict();
|
|
134
|
+
const entry = source.extend({ name: z.string() }).strict();
|
|
135
|
+
const dynamicResolver = source.extend({
|
|
136
|
+
eventNames: z.array(z.string()),
|
|
137
|
+
slug: z.string()
|
|
138
|
+
}).strict();
|
|
74
139
|
const modelRouting = z.discriminatedUnion("kind", [z.object({
|
|
75
140
|
kind: z.literal("gateway"),
|
|
76
141
|
target: z.string(),
|
|
77
142
|
byok: z.string().optional()
|
|
78
|
-
}), z.object({
|
|
143
|
+
}).strict(), z.object({
|
|
79
144
|
kind: z.literal("external"),
|
|
80
145
|
provider: z.string()
|
|
81
|
-
})]);
|
|
146
|
+
}).strict()]);
|
|
82
147
|
const modelEndpoint = z.union([
|
|
83
148
|
z.object({
|
|
84
149
|
kind: z.literal("external"),
|
|
85
150
|
provider: z.string()
|
|
86
|
-
}),
|
|
151
|
+
}).strict(),
|
|
87
152
|
z.object({
|
|
88
153
|
kind: z.literal("chatgpt"),
|
|
89
154
|
state: z.enum([
|
|
@@ -94,18 +159,18 @@ const modelEndpoint = z.union([
|
|
|
94
159
|
"unavailable"
|
|
95
160
|
]),
|
|
96
161
|
accountLabel: z.string().optional()
|
|
97
|
-
}),
|
|
162
|
+
}).strict(),
|
|
98
163
|
z.object({
|
|
99
164
|
kind: z.literal("gateway"),
|
|
100
165
|
connected: z.literal(true),
|
|
101
166
|
credential: z.enum(["api-key", "oidc"])
|
|
102
|
-
}),
|
|
167
|
+
}).strict(),
|
|
103
168
|
z.object({
|
|
104
169
|
kind: z.literal("gateway"),
|
|
105
170
|
connected: z.literal(false)
|
|
106
|
-
})
|
|
171
|
+
}).strict()
|
|
107
172
|
]);
|
|
108
|
-
const
|
|
173
|
+
const modelBaseFields = {
|
|
109
174
|
contextWindowTokens: z.number().optional(),
|
|
110
175
|
providerOptions: z.unknown().optional(),
|
|
111
176
|
reasoning: z.enum([
|
|
@@ -120,15 +185,18 @@ const agentModelBaseFields = {
|
|
|
120
185
|
source: source.optional()
|
|
121
186
|
};
|
|
122
187
|
const agentModel = z.union([z.object({
|
|
123
|
-
...
|
|
188
|
+
...modelBaseFields,
|
|
189
|
+
endpoint: modelEndpoint.optional(),
|
|
124
190
|
id: z.string(),
|
|
125
|
-
routing: modelRouting
|
|
126
|
-
endpoint: modelEndpoint.optional()
|
|
191
|
+
routing: modelRouting
|
|
127
192
|
}).strict(), z.object({
|
|
128
|
-
...
|
|
193
|
+
...modelBaseFields,
|
|
129
194
|
endpoint: z.never().optional(),
|
|
130
195
|
id: z.never().optional(),
|
|
131
|
-
routing: z.object({
|
|
196
|
+
routing: z.object({
|
|
197
|
+
kind: z.literal("dynamic"),
|
|
198
|
+
resolver: dynamicResolver
|
|
199
|
+
}).strict()
|
|
132
200
|
}).strict()]);
|
|
133
201
|
const tool = entry.extend({
|
|
134
202
|
description: z.string(),
|
|
@@ -137,71 +205,61 @@ const tool = entry.extend({
|
|
|
137
205
|
hasModelOutputProjection: z.boolean(),
|
|
138
206
|
hasOutputSchema: z.boolean(),
|
|
139
207
|
inputSchema: z.unknown(),
|
|
140
|
-
origin: z.enum(["authored", "framework"]),
|
|
141
208
|
outputSchema: z.unknown().optional(),
|
|
142
|
-
replacesFrameworkTool: z.boolean(),
|
|
143
209
|
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
|
-
});
|
|
210
|
+
}).strict();
|
|
160
211
|
const skill = entry.extend({
|
|
161
212
|
description: z.string(),
|
|
162
213
|
license: z.string().optional(),
|
|
163
214
|
markdown: z.string(),
|
|
164
215
|
metadata: z.record(z.string(), z.string()).optional()
|
|
165
|
-
});
|
|
216
|
+
}).strict();
|
|
166
217
|
const instructions = entry.extend({
|
|
167
218
|
content: z.string(),
|
|
168
219
|
role: z.enum(["system", "user"])
|
|
169
|
-
});
|
|
220
|
+
}).strict();
|
|
170
221
|
const schedule = entry.extend({
|
|
171
222
|
cron: z.string(),
|
|
172
223
|
hasRun: z.boolean(),
|
|
173
224
|
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({
|
|
225
|
+
}).strict();
|
|
226
|
+
const channelMethod = z.enum([
|
|
227
|
+
"GET",
|
|
228
|
+
"HEAD",
|
|
229
|
+
"POST",
|
|
230
|
+
"PUT",
|
|
231
|
+
"PATCH",
|
|
232
|
+
"DELETE",
|
|
233
|
+
"OPTIONS",
|
|
234
|
+
"WEBSOCKET"
|
|
235
|
+
]);
|
|
236
|
+
const channelRoute = entry.extend({
|
|
191
237
|
adapterKind: z.string().optional(),
|
|
192
|
-
method:
|
|
193
|
-
origin: z.enum(["authored", "framework"]),
|
|
238
|
+
method: channelMethod,
|
|
194
239
|
urlPath: z.string()
|
|
195
|
-
});
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
240
|
+
}).strict();
|
|
241
|
+
const sourceDescriptor = z.object({
|
|
242
|
+
backing: z.union([moduleBacking, z.object({
|
|
243
|
+
kind: z.literal("resource"),
|
|
244
|
+
sourcePath: z.string()
|
|
245
|
+
}).strict()]),
|
|
246
|
+
form: z.enum(["derived", "direct"]),
|
|
247
|
+
layer: z.enum([
|
|
248
|
+
"framework-default",
|
|
249
|
+
"extension-package",
|
|
250
|
+
"extension-override",
|
|
251
|
+
"application"
|
|
252
|
+
]),
|
|
253
|
+
logicalPath: z.string(),
|
|
254
|
+
owner,
|
|
255
|
+
sourceId: z.string()
|
|
256
|
+
}).strict();
|
|
257
|
+
const shadowedChannelRoute = z.object({
|
|
258
|
+
method: channelMethod,
|
|
259
|
+
source: sourceDescriptor,
|
|
260
|
+
urlPath: z.string(),
|
|
261
|
+
winnerSourceId: z.string()
|
|
262
|
+
}).strict();
|
|
205
263
|
const connection = source.extend({
|
|
206
264
|
connectionName: z.string(),
|
|
207
265
|
description: z.string(),
|
|
@@ -211,11 +269,16 @@ const connection = source.extend({
|
|
|
211
269
|
protocol: z.string(),
|
|
212
270
|
toolFilter: z.unknown().optional(),
|
|
213
271
|
url: z.string()
|
|
214
|
-
});
|
|
272
|
+
}).strict();
|
|
215
273
|
const hook = source.extend({
|
|
216
274
|
eventNames: z.array(z.string()),
|
|
217
275
|
slug: z.string()
|
|
218
|
-
});
|
|
276
|
+
}).strict();
|
|
277
|
+
const memory = source.extend({
|
|
278
|
+
description: z.string().optional(),
|
|
279
|
+
slot: z.string(),
|
|
280
|
+
visibility: z.enum(["scope", "session"])
|
|
281
|
+
}).strict();
|
|
219
282
|
const sandbox = source.extend({
|
|
220
283
|
backendKind: z.string().optional(),
|
|
221
284
|
description: z.string().optional(),
|
|
@@ -223,64 +286,268 @@ const sandbox = source.extend({
|
|
|
223
286
|
hasOnSession: z.boolean(),
|
|
224
287
|
revalidationKey: z.string().optional(),
|
|
225
288
|
sourceHash: z.string().optional()
|
|
226
|
-
});
|
|
289
|
+
}).strict();
|
|
290
|
+
const subagent = entry.extend({
|
|
291
|
+
configResolver: dynamicResolver.optional(),
|
|
292
|
+
description: z.string().optional(),
|
|
293
|
+
entryPath: z.string(),
|
|
294
|
+
nodeId: z.string(),
|
|
295
|
+
parentNodeId: z.string(),
|
|
296
|
+
rootPath: z.string(),
|
|
297
|
+
summary: z.object({
|
|
298
|
+
channels: z.number(),
|
|
299
|
+
connections: z.number(),
|
|
300
|
+
hooks: z.number(),
|
|
301
|
+
instructions: z.number(),
|
|
302
|
+
memories: z.number(),
|
|
303
|
+
schedules: z.number(),
|
|
304
|
+
skills: z.number(),
|
|
305
|
+
tools: z.number()
|
|
306
|
+
}).strict()
|
|
307
|
+
}).strict();
|
|
308
|
+
const remoteAgent = entry.extend({
|
|
309
|
+
description: z.string(),
|
|
310
|
+
nodeId: z.string(),
|
|
311
|
+
parentNodeId: z.string(),
|
|
312
|
+
url: z.string().optional()
|
|
313
|
+
}).strict();
|
|
314
|
+
const kernelEffect = z.object({
|
|
315
|
+
action: z.enum([
|
|
316
|
+
"subagent-call",
|
|
317
|
+
"task-update",
|
|
318
|
+
"task-cancel"
|
|
319
|
+
]).optional(),
|
|
320
|
+
audience: z.array(z.enum([
|
|
321
|
+
"root-session",
|
|
322
|
+
"delegated-task-child",
|
|
323
|
+
"requires-request-input",
|
|
324
|
+
"requires-loadable-skill",
|
|
325
|
+
"below-subagent-depth"
|
|
326
|
+
])),
|
|
327
|
+
kind: z.enum([
|
|
328
|
+
"request-input",
|
|
329
|
+
"dispatch",
|
|
330
|
+
"provider-tool"
|
|
331
|
+
]),
|
|
332
|
+
sourceId: z.string()
|
|
333
|
+
}).strict();
|
|
334
|
+
const compositionDiagnostic = z.object({
|
|
335
|
+
kind: z.enum(["disabled", "shadowed"]),
|
|
336
|
+
logicalPath: z.string(),
|
|
337
|
+
owner,
|
|
338
|
+
sourceId: z.string(),
|
|
339
|
+
winnerSourceId: z.string().optional()
|
|
340
|
+
}).strict();
|
|
341
|
+
const workflow = z.discriminatedUnion("enabled", [z.object({
|
|
342
|
+
enabled: z.literal(false),
|
|
343
|
+
toolName: z.string()
|
|
344
|
+
}).strict(), z.object({
|
|
345
|
+
enabled: z.literal(true),
|
|
346
|
+
source,
|
|
347
|
+
toolName: z.string()
|
|
348
|
+
}).strict()]);
|
|
227
349
|
const AgentInfoResultSchema = z.object({
|
|
228
350
|
agent: z.object({
|
|
229
351
|
agentRoot: z.string(),
|
|
230
352
|
appRoot: z.string(),
|
|
231
|
-
|
|
353
|
+
config: source.extend({ binding }).strict(),
|
|
232
354
|
description: z.string().optional(),
|
|
233
355
|
model: agentModel,
|
|
234
356
|
name: z.string(),
|
|
357
|
+
nodeId: z.string(),
|
|
235
358
|
outputSchema: z.unknown().optional()
|
|
236
|
-
}),
|
|
237
|
-
capabilities: z.object({ devRoutes: z.boolean() }),
|
|
359
|
+
}).strict(),
|
|
360
|
+
capabilities: z.object({ devRoutes: z.boolean() }).strict(),
|
|
238
361
|
channels: z.object({
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
362
|
+
routes: z.array(channelRoute),
|
|
363
|
+
shadowed: z.array(shadowedChannelRoute)
|
|
364
|
+
}).strict(),
|
|
365
|
+
composition: z.object({
|
|
366
|
+
disabled: z.array(compositionDiagnostic),
|
|
367
|
+
shadowed: z.array(compositionDiagnostic)
|
|
368
|
+
}).strict(),
|
|
244
369
|
connections: z.array(connection),
|
|
245
370
|
diagnostics: z.object({
|
|
246
371
|
discoveryErrors: z.number(),
|
|
247
372
|
discoveryWarnings: z.number()
|
|
248
|
-
}),
|
|
373
|
+
}).strict(),
|
|
249
374
|
hooks: z.array(hook),
|
|
250
375
|
instructions: z.object({
|
|
251
376
|
dynamic: z.array(dynamicResolver),
|
|
252
377
|
static: z.array(instructions)
|
|
253
|
-
}),
|
|
378
|
+
}).strict(),
|
|
379
|
+
instrumentation: source.optional(),
|
|
380
|
+
kernelEffects: z.array(kernelEffect),
|
|
254
381
|
kind: z.literal("eve-agent-info"),
|
|
382
|
+
memories: z.array(memory),
|
|
255
383
|
mode: z.enum(["development", "production"]),
|
|
256
|
-
|
|
384
|
+
remoteAgents: z.object({
|
|
385
|
+
entries: z.array(remoteAgent),
|
|
386
|
+
total: z.number()
|
|
387
|
+
}).strict(),
|
|
388
|
+
sandbox,
|
|
257
389
|
schedules: z.array(schedule),
|
|
258
390
|
skills: z.object({
|
|
259
391
|
dynamic: z.array(dynamicResolver),
|
|
260
392
|
static: z.array(skill)
|
|
261
|
-
}),
|
|
393
|
+
}).strict(),
|
|
262
394
|
subagents: z.object({
|
|
263
395
|
local: z.array(subagent),
|
|
264
396
|
total: z.number()
|
|
265
|
-
}),
|
|
397
|
+
}).strict(),
|
|
266
398
|
tools: z.object({
|
|
267
|
-
authored: z.array(tool),
|
|
268
|
-
available: z.array(tool),
|
|
269
|
-
disabledFramework: z.array(z.string()),
|
|
270
399
|
dynamic: z.array(dynamicResolver),
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
workflow: z.object({
|
|
276
|
-
enabled: z.boolean(),
|
|
277
|
-
toolName: z.string()
|
|
278
|
-
}),
|
|
400
|
+
static: z.array(tool)
|
|
401
|
+
}).strict(),
|
|
402
|
+
version: z.literal(4),
|
|
403
|
+
workflow,
|
|
279
404
|
workspace: z.object({
|
|
280
405
|
resourceRoot: z.unknown(),
|
|
281
406
|
rootEntries: z.array(z.string())
|
|
282
|
-
})
|
|
407
|
+
}).strict()
|
|
408
|
+
}).strict().superRefine((value, context) => {
|
|
409
|
+
const assertUnique = (entries, identity, path) => {
|
|
410
|
+
const seen = /* @__PURE__ */ new Set();
|
|
411
|
+
entries.forEach((entry, index) => {
|
|
412
|
+
const key = identity(entry);
|
|
413
|
+
if (seen.has(key)) context.addIssue({
|
|
414
|
+
code: "custom",
|
|
415
|
+
message: `Duplicate public identity "${key}".`,
|
|
416
|
+
path: [...path, index]
|
|
417
|
+
});
|
|
418
|
+
seen.add(key);
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
const assertTotal = (total, entries, path) => {
|
|
422
|
+
if (!Number.isSafeInteger(total) || total < 0 || total !== entries.length) context.addIssue({
|
|
423
|
+
code: "custom",
|
|
424
|
+
message: `Expected total ${entries.length}, received ${total}.`,
|
|
425
|
+
path: [...path]
|
|
426
|
+
});
|
|
427
|
+
};
|
|
428
|
+
assertUnique(value.tools.static, (entry) => entry.name, ["tools", "static"]);
|
|
429
|
+
assertUnique(value.tools.dynamic, (entry) => entry.slug, ["tools", "dynamic"]);
|
|
430
|
+
assertUnique(value.skills.static, (entry) => entry.name, ["skills", "static"]);
|
|
431
|
+
assertUnique(value.skills.dynamic, (entry) => entry.slug, ["skills", "dynamic"]);
|
|
432
|
+
assertUnique(value.instructions.static, (entry) => entry.name, ["instructions", "static"]);
|
|
433
|
+
assertUnique(value.instructions.dynamic, (entry) => entry.slug, ["instructions", "dynamic"]);
|
|
434
|
+
assertUnique(value.schedules, (entry) => entry.name, ["schedules"]);
|
|
435
|
+
assertUnique(value.connections, (entry) => entry.connectionName, ["connections"]);
|
|
436
|
+
assertUnique(value.hooks, (entry) => entry.slug, ["hooks"]);
|
|
437
|
+
assertUnique(value.memories, (entry) => entry.slot, ["memories"]);
|
|
438
|
+
assertUnique(value.channels.routes, (entry) => `${entry.method} ${normalizeRoutePattern(entry.urlPath)}`, ["channels", "routes"]);
|
|
439
|
+
assertUnique(value.subagents.local, (entry) => entry.nodeId, ["subagents", "local"]);
|
|
440
|
+
assertUnique(value.remoteAgents.entries, (entry) => entry.nodeId, ["remoteAgents", "entries"]);
|
|
441
|
+
assertTotal(value.subagents.total, value.subagents.local, ["subagents", "total"]);
|
|
442
|
+
assertTotal(value.remoteAgents.total, value.remoteAgents.entries, ["remoteAgents", "total"]);
|
|
443
|
+
const boundSources = [
|
|
444
|
+
[value.agent.config, ["agent", "config"]],
|
|
445
|
+
...value.agent.model.source === void 0 ? [] : [[value.agent.model.source, [
|
|
446
|
+
"agent",
|
|
447
|
+
"model",
|
|
448
|
+
"source"
|
|
449
|
+
]]],
|
|
450
|
+
...value.agent.model.routing.kind === "dynamic" ? [[value.agent.model.routing.resolver, [
|
|
451
|
+
"agent",
|
|
452
|
+
"model",
|
|
453
|
+
"routing",
|
|
454
|
+
"resolver"
|
|
455
|
+
]]] : [],
|
|
456
|
+
...value.channels.routes.map((entry, index) => [entry, [
|
|
457
|
+
"channels",
|
|
458
|
+
"routes",
|
|
459
|
+
index
|
|
460
|
+
]]),
|
|
461
|
+
...value.connections.map((entry, index) => [entry, ["connections", index]]),
|
|
462
|
+
...value.hooks.map((entry, index) => [entry, ["hooks", index]]),
|
|
463
|
+
...value.instructions.dynamic.map((entry, index) => [entry, [
|
|
464
|
+
"instructions",
|
|
465
|
+
"dynamic",
|
|
466
|
+
index
|
|
467
|
+
]]),
|
|
468
|
+
...value.instructions.static.map((entry, index) => [entry, [
|
|
469
|
+
"instructions",
|
|
470
|
+
"static",
|
|
471
|
+
index
|
|
472
|
+
]]),
|
|
473
|
+
...value.memories.map((entry, index) => [entry, ["memories", index]]),
|
|
474
|
+
...value.instrumentation === void 0 ? [] : [[value.instrumentation, ["instrumentation"]]],
|
|
475
|
+
...value.remoteAgents.entries.map((entry, index) => [entry, [
|
|
476
|
+
"remoteAgents",
|
|
477
|
+
"entries",
|
|
478
|
+
index
|
|
479
|
+
]]),
|
|
480
|
+
...value.schedules.map((entry, index) => [entry, ["schedules", index]]),
|
|
481
|
+
...value.skills.dynamic.map((entry, index) => [entry, [
|
|
482
|
+
"skills",
|
|
483
|
+
"dynamic",
|
|
484
|
+
index
|
|
485
|
+
]]),
|
|
486
|
+
...value.skills.static.map((entry, index) => [entry, [
|
|
487
|
+
"skills",
|
|
488
|
+
"static",
|
|
489
|
+
index
|
|
490
|
+
]]),
|
|
491
|
+
...value.subagents.local.flatMap((entry, index) => entry.configResolver === void 0 ? [] : [[entry.configResolver, [
|
|
492
|
+
"subagents",
|
|
493
|
+
"local",
|
|
494
|
+
index,
|
|
495
|
+
"configResolver"
|
|
496
|
+
]]]),
|
|
497
|
+
...value.tools.dynamic.map((entry, index) => [entry, [
|
|
498
|
+
"tools",
|
|
499
|
+
"dynamic",
|
|
500
|
+
index
|
|
501
|
+
]]),
|
|
502
|
+
...value.tools.static.map((entry, index) => [entry, [
|
|
503
|
+
"tools",
|
|
504
|
+
"static",
|
|
505
|
+
index
|
|
506
|
+
]]),
|
|
507
|
+
...value.workflow.enabled ? [[value.workflow.source, ["workflow", "source"]]] : [],
|
|
508
|
+
[value.sandbox, ["sandbox"]]
|
|
509
|
+
];
|
|
510
|
+
for (const [entry, path] of boundSources) {
|
|
511
|
+
if (entry.sourceKind === "module" && entry.binding === void 0) {
|
|
512
|
+
context.addIssue({
|
|
513
|
+
code: "custom",
|
|
514
|
+
message: "Module source is missing its compiled binding.",
|
|
515
|
+
path: [...path, "binding"]
|
|
516
|
+
});
|
|
517
|
+
continue;
|
|
518
|
+
}
|
|
519
|
+
if (entry.sourceKind !== "module" && entry.binding !== void 0) {
|
|
520
|
+
context.addIssue({
|
|
521
|
+
code: "custom",
|
|
522
|
+
message: `${entry.sourceKind} source cannot carry a module binding.`,
|
|
523
|
+
path: [...path, "binding"]
|
|
524
|
+
});
|
|
525
|
+
continue;
|
|
526
|
+
}
|
|
527
|
+
if (entry.binding === void 0) continue;
|
|
528
|
+
if (entry.binding.logicalPath !== entry.logicalPath) context.addIssue({
|
|
529
|
+
code: "custom",
|
|
530
|
+
message: "Source and binding logical paths do not match.",
|
|
531
|
+
path: [
|
|
532
|
+
...path,
|
|
533
|
+
"binding",
|
|
534
|
+
"logicalPath"
|
|
535
|
+
]
|
|
536
|
+
});
|
|
537
|
+
if (JSON.stringify(entry.binding.owner) !== JSON.stringify(entry.owner)) context.addIssue({
|
|
538
|
+
code: "custom",
|
|
539
|
+
message: "Source and binding owners do not match.",
|
|
540
|
+
path: [
|
|
541
|
+
...path,
|
|
542
|
+
"binding",
|
|
543
|
+
"owner"
|
|
544
|
+
]
|
|
545
|
+
});
|
|
546
|
+
}
|
|
283
547
|
});
|
|
548
|
+
function normalizeRoutePattern(path) {
|
|
549
|
+
return path.replace(/^\/+|\/+$/g, "").split("/").map((segment) => segment.startsWith(":") || /^\[[^\]]+\]$/.test(segment) ? ":" : segment).join("/");
|
|
550
|
+
}
|
|
284
551
|
|
|
285
552
|
//#endregion
|
|
286
553
|
//#region src/shared/guards.ts
|
|
@@ -960,7 +1227,7 @@ function isPlainObject(value) {
|
|
|
960
1227
|
}
|
|
961
1228
|
|
|
962
1229
|
//#endregion
|
|
963
|
-
//#region src/
|
|
1230
|
+
//#region src/tools/schema.ts
|
|
964
1231
|
const JSON_SCHEMA_TARGET = "draft-07";
|
|
965
1232
|
function serializeOutputSchema(source) {
|
|
966
1233
|
return serializeSchema(source, "output");
|
|
@@ -1239,7 +1506,18 @@ var Client = class {
|
|
|
1239
1506
|
const body = await response.text();
|
|
1240
1507
|
throw new ClientError(response.status, body, response.headers);
|
|
1241
1508
|
}
|
|
1242
|
-
|
|
1509
|
+
let payload;
|
|
1510
|
+
try {
|
|
1511
|
+
payload = await response.json();
|
|
1512
|
+
} catch {
|
|
1513
|
+
throw new HealthResponseError();
|
|
1514
|
+
}
|
|
1515
|
+
const result = HealthResultSchema.safeParse(payload);
|
|
1516
|
+
if (!result.success) throw new HealthResponseError(result.error.issues.slice(0, 5).map((issue) => {
|
|
1517
|
+
const path = issue.path.join(".");
|
|
1518
|
+
return path.length === 0 ? issue.message : `${path}: ${issue.message}`;
|
|
1519
|
+
}));
|
|
1520
|
+
return result.data;
|
|
1243
1521
|
}
|
|
1244
1522
|
async info() {
|
|
1245
1523
|
const response = await this.fetch(EVE_INFO_ROUTE_PATH);
|
|
@@ -1430,7 +1708,10 @@ var EveAgentStore = class {
|
|
|
1430
1708
|
};
|
|
1431
1709
|
}
|
|
1432
1710
|
async send(input) {
|
|
1433
|
-
if (this.#activeTurn !== void 0)
|
|
1711
|
+
if (this.#activeTurn !== void 0) {
|
|
1712
|
+
if (this.#status === "resuming") throw new Error("eve session is resuming.");
|
|
1713
|
+
return await this.#sendFollowUp(this.#activeTurn, input);
|
|
1714
|
+
}
|
|
1434
1715
|
const response = Promise.withResolvers();
|
|
1435
1716
|
const completion = Promise.withResolvers();
|
|
1436
1717
|
const turn = {
|
|
@@ -1503,7 +1784,7 @@ var EveAgentStore = class {
|
|
|
1503
1784
|
return promise;
|
|
1504
1785
|
}
|
|
1505
1786
|
async #resume() {
|
|
1506
|
-
if (this.#status === "streaming" || this.#status === "submitted") throw new Error("eve session is already processing a turn.");
|
|
1787
|
+
if (this.#status === "resuming" || this.#status === "streaming" || this.#status === "submitted") throw new Error("eve session is already processing a turn.");
|
|
1507
1788
|
if (this.#session === void 0) throw new Error("An eve session is required before resuming.");
|
|
1508
1789
|
const response = Promise.withResolvers();
|
|
1509
1790
|
const completion = Promise.withResolvers();
|
|
@@ -1522,24 +1803,31 @@ var EveAgentStore = class {
|
|
|
1522
1803
|
this.#activeTurn = turn;
|
|
1523
1804
|
turn.resolveResponse(void 0);
|
|
1524
1805
|
this.#error = void 0;
|
|
1525
|
-
this.#status = "
|
|
1806
|
+
this.#status = "resuming";
|
|
1526
1807
|
this.#publish();
|
|
1527
1808
|
try {
|
|
1528
|
-
const
|
|
1809
|
+
const hasCompleteInitialPrefix = this.#events.length === session.state.streamIndex;
|
|
1810
|
+
const replayed = hasCompleteInitialPrefix ? [...this.#events] : [];
|
|
1529
1811
|
for await (const event of session.stream({
|
|
1530
1812
|
follow: false,
|
|
1531
1813
|
signal: turn.abortController.signal,
|
|
1532
|
-
startIndex: 0
|
|
1814
|
+
startIndex: hasCompleteInitialPrefix ? session.state.streamIndex : 0
|
|
1533
1815
|
})) {
|
|
1534
1816
|
if (!this.#isActiveTurn(turn)) return;
|
|
1535
1817
|
replayed.push(event);
|
|
1536
|
-
this.#acceptServerEvent(event,
|
|
1818
|
+
this.#acceptServerEvent(event, {
|
|
1819
|
+
publish: false,
|
|
1820
|
+
transitionToStreaming: false
|
|
1821
|
+
});
|
|
1537
1822
|
}
|
|
1538
1823
|
if (!this.#isActiveTurn(turn)) return;
|
|
1539
|
-
|
|
1824
|
+
const replayTail = replayed.at(-1);
|
|
1825
|
+
if (replayTail !== void 0) this.#applyTerminalStreamFailure(replayTail);
|
|
1540
1826
|
const replaySettled = isSettledSessionTail(replayed);
|
|
1541
|
-
if (!replaySettled ||
|
|
1827
|
+
if (this.#error === void 0 && (!replaySettled || replayTail?.type === "session.waiting")) {
|
|
1542
1828
|
const pendingAuthorizations = collectPendingAuthorizations(replayed);
|
|
1829
|
+
if (!replaySettled) this.#status = "streaming";
|
|
1830
|
+
this.#publish();
|
|
1543
1831
|
for await (const event of session.stream({
|
|
1544
1832
|
signal: turn.abortController.signal,
|
|
1545
1833
|
streamReconnectPolicy: replaySettled ? { reconnect: false } : void 0
|
|
@@ -1549,6 +1837,9 @@ var EveAgentStore = class {
|
|
|
1549
1837
|
updatePendingAuthorizations(pendingAuthorizations, event);
|
|
1550
1838
|
if (isCurrentTurnBoundaryEvent(event) && (event.type !== "session.waiting" || pendingAuthorizations.size === 0)) break;
|
|
1551
1839
|
}
|
|
1840
|
+
} else {
|
|
1841
|
+
this.#status = this.#error === void 0 ? "ready" : "error";
|
|
1842
|
+
this.#publish();
|
|
1552
1843
|
}
|
|
1553
1844
|
await this.#followSteeredTurns(turn);
|
|
1554
1845
|
if (this.#isActiveTurn(turn)) this.#status = this.#error === void 0 ? "ready" : "error";
|
|
@@ -1690,14 +1981,14 @@ var EveAgentStore = class {
|
|
|
1690
1981
|
type: "client.input.responded"
|
|
1691
1982
|
});
|
|
1692
1983
|
}
|
|
1693
|
-
#acceptServerEvent(event,
|
|
1984
|
+
#acceptServerEvent(event, options = {}) {
|
|
1694
1985
|
if (!this.#seenEvents.admit(event)) return;
|
|
1695
1986
|
this.#events = [...this.#events, event];
|
|
1696
1987
|
this.#applyServerEvent(event);
|
|
1697
1988
|
this.#callbacks.onEvent?.(event);
|
|
1698
|
-
this.#status = "streaming";
|
|
1989
|
+
if (options.transitionToStreaming ?? true) this.#status = "streaming";
|
|
1699
1990
|
this.#applyTerminalStreamFailure(event);
|
|
1700
|
-
if (publish) this.#publish();
|
|
1991
|
+
if (options.publish ?? true) this.#publish();
|
|
1701
1992
|
}
|
|
1702
1993
|
#applyServerEvent(event) {
|
|
1703
1994
|
const pendingSubmission = this.#pendingMessageSubmissions[0];
|
package/dist/src/cli/banner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import pc from"#compiled/picocolors/index.js";import{resolveInstalledPackageInfo}from"#internal/application/package.js";const EVE_WORDMARK=`eve`;function eveCliBanner(){let{version:t}=resolveInstalledPackageInfo();return`${pc.bgBlack(pc.white(`☰eve `))} ${pc.dim(`v${t}`)}`}function eveVersionTag(){let{version:e}=resolveInstalledPackageInfo();return`☰eve v${e}`}export{EVE_WORDMARK,eveCliBanner,eveVersionTag};
|