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
|
@@ -1,125 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Typed error classes for the connection authorization lifecycle.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* User-facing authorization challenge payload.
|
|
6
|
-
*/
|
|
7
|
-
export interface ConnectionAuthorizationChallenge {
|
|
8
|
-
/**
|
|
9
|
-
* Optional URL the user should visit to complete authorization.
|
|
10
|
-
* Serves as the redirect target, the verification URL in device
|
|
11
|
-
* code flow, or the source for a QR code.
|
|
12
|
-
*/
|
|
13
|
-
readonly url?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Optional short code to display alongside `url` (device code flow).
|
|
16
|
-
*/
|
|
17
|
-
readonly userCode?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional ISO timestamp at which the authorization opportunity
|
|
20
|
-
* expires. When provided, the runtime clamps the authorization deadline to
|
|
21
|
-
* `min(configured_timeout, expiresAt)` so the turn cannot outlive
|
|
22
|
-
* the challenge.
|
|
23
|
-
*/
|
|
24
|
-
readonly expiresAt?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Optional human-readable call to action. When no `url` is
|
|
27
|
-
* available (e.g. CIBA, push-to-approve), this is what the channel
|
|
28
|
-
* should show as the primary affordance.
|
|
29
|
-
*/
|
|
30
|
-
readonly instructions?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Optional human-readable provider name for sign-in UI (e.g.
|
|
33
|
-
* `"Salesforce"`). Presentation-only: identity (the authorization
|
|
34
|
-
* scope, token cache keys, callback URLs) stays the path-derived
|
|
35
|
-
* name. Channels fall back to title-casing the scope name when
|
|
36
|
-
* absent.
|
|
37
|
-
*/
|
|
38
|
-
readonly displayName?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Options accepted by {@link ConnectionAuthorizationRequiredError}.
|
|
42
|
-
*/
|
|
43
|
-
export interface ConnectionAuthorizationRequiredErrorOptions {
|
|
44
|
-
/**
|
|
45
|
-
* Override for the default `Error.message`. Defaults to
|
|
46
|
-
* `Connection "{name}" requires authorization.` when omitted.
|
|
47
|
-
*/
|
|
48
|
-
readonly message?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Options accepted by {@link ConnectionAuthorizationFailedError}.
|
|
52
|
-
*/
|
|
53
|
-
export interface ConnectionAuthorizationFailedErrorOptions {
|
|
54
|
-
/**
|
|
55
|
-
* Override for the default `Error.message`. Defaults to
|
|
56
|
-
* `Connection "{name}" authorization failed.` when omitted.
|
|
57
|
-
*/
|
|
58
|
-
readonly message?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Stable machine-readable code describing why authorization failed.
|
|
61
|
-
*
|
|
62
|
-
* The runtime surfaces this code on the `authorization.completed`
|
|
63
|
-
* stream event and on the failed tool result the model sees. Use a
|
|
64
|
-
* short kebab- or snake-cased string (e.g. `"access_denied"`,
|
|
65
|
-
* `"invalid_grant"`).
|
|
66
|
-
*
|
|
67
|
-
* The runtime also emits a few reason codes itself, independently
|
|
68
|
-
* of authored throws:
|
|
69
|
-
*
|
|
70
|
-
* - `"principal_required"`: a `principalType: "user"` connection
|
|
71
|
-
* was invoked without an authenticated user principal. Terminal.
|
|
72
|
-
* - `"app_not_installed"`: an authored `getToken` for a
|
|
73
|
-
* `principalType: "app"` connection signalled the agent's own
|
|
74
|
-
* credentials are missing. Terminal.
|
|
75
|
-
*/
|
|
76
|
-
readonly reason?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Controls whether the runtime re-prompts the user after this
|
|
79
|
-
* failure.
|
|
80
|
-
*
|
|
81
|
-
* Defaults to `true`; set `false` for terminal cases such as user
|
|
82
|
-
* denial (`reason: "access_denied"`).
|
|
83
|
-
*/
|
|
84
|
-
readonly retryable?: boolean;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Thrown from a connection's `getToken` when no valid credential is
|
|
88
|
-
* available and authorization must be completed before the connection
|
|
89
|
-
* can be used. Covers both interactive OAuth (the runtime emits
|
|
90
|
-
* `authorization.required` and suspends the turn on a webhook) and
|
|
91
|
-
* non-interactive / out-of-band flows such as static API keys (the
|
|
92
|
-
* runtime emits `authorization.required` without suspending).
|
|
93
|
-
*/
|
|
94
|
-
export declare class ConnectionAuthorizationRequiredError extends Error {
|
|
95
|
-
readonly connectionName: string;
|
|
96
|
-
constructor(connectionName: string, options?: ConnectionAuthorizationRequiredErrorOptions);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Thrown when a connection's authorization fails.
|
|
100
|
-
*
|
|
101
|
-
* Retryable by default; pass `retryable: false` for terminal failures
|
|
102
|
-
* where starting a fresh authorization flow would be wrong.
|
|
103
|
-
*/
|
|
104
|
-
export declare class ConnectionAuthorizationFailedError extends Error {
|
|
105
|
-
readonly connectionName: string;
|
|
106
|
-
readonly reason?: string;
|
|
107
|
-
readonly retryable: boolean;
|
|
108
|
-
constructor(connectionName: string, options?: ConnectionAuthorizationFailedErrorOptions);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Type guard for {@link ConnectionAuthorizationRequiredError}.
|
|
112
|
-
*
|
|
113
|
-
* Uses `err.name` rather than `instanceof` because user code and
|
|
114
|
-
* framework internals can end up with different class identities
|
|
115
|
-
* after bundling (dual-instance hazard in Nitro output).
|
|
116
|
-
*/
|
|
117
|
-
export declare function isConnectionAuthorizationRequiredError(err: unknown): err is ConnectionAuthorizationRequiredError;
|
|
118
|
-
/**
|
|
119
|
-
* Type guard for {@link ConnectionAuthorizationFailedError}.
|
|
120
|
-
*
|
|
121
|
-
* Uses `err.name` rather than `instanceof` because user code and
|
|
122
|
-
* framework internals can end up with different class identities
|
|
123
|
-
* after bundling (dual-instance hazard in Nitro output).
|
|
124
|
-
*/
|
|
125
|
-
export declare function isConnectionAuthorizationFailedError(err: unknown): err is ConnectionAuthorizationFailedError;
|
|
1
|
+
export { ConnectionAuthorizationFailedError, ConnectionAuthorizationRequiredError, isConnectionAuthorizationFailedError, isConnectionAuthorizationRequiredError, type ConnectionAuthorizationChallenge, type ConnectionAuthorizationFailedErrorOptions, type ConnectionAuthorizationRequiredErrorOptions, } from "#connections/errors.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{ConnectionAuthorizationFailedError,ConnectionAuthorizationRequiredError,isConnectionAuthorizationFailedError,isConnectionAuthorizationRequiredError}from"#connections/errors.js";export{ConnectionAuthorizationFailedError,ConnectionAuthorizationRequiredError,isConnectionAuthorizationFailedError,isConnectionAuthorizationRequiredError};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Connection authoring helpers for `agent/connections/*.ts` files.
|
|
3
3
|
*/
|
|
4
|
-
export type { AuthorizationCallback, AuthorizationDefinition, ConnectionAuthDefinition, ConnectionAuthProvider, ConnectionAuthResolver, ConnectionPrincipal, HeadersDefinition, InteractiveAuthorizationDefinition, NonInteractiveAuthorizationDefinition, TokenResult, ToolFilterDefinition, } from "#
|
|
5
|
-
export { defineInteractiveAuthorization } from "#
|
|
4
|
+
export type { AuthorizationCallback, AuthorizationDefinition, ConnectionAuthDefinition, ConnectionAuthProvider, ConnectionAuthResolver, ConnectionPrincipal, HeadersDefinition, InteractiveAuthorizationDefinition, NonInteractiveAuthorizationDefinition, TokenResult, ToolFilterDefinition, } from "#shared/connection-types.js";
|
|
5
|
+
export { defineInteractiveAuthorization } from "#shared/connection-types.js";
|
|
6
6
|
export type { JsonValue } from "#public/types/json.js";
|
|
7
7
|
export { defineMcpClientConnection, type McpClientConnectionDefinition, } from "#public/definitions/connections/mcp.js";
|
|
8
8
|
export type { ConnectionToolCallDefinition, ProvidedArgumentContext, ProvidedArgumentsDefinition, ProvidedArgumentValue, } from "#public/definitions/connections/tool-call.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{defineInteractiveAuthorization}from"#shared/connection-types.js";import{defineMcpClientConnection}from"#public/definitions/connections/mcp.js";import{defineOpenAPIConnection}from"#public/definitions/connections/openapi.js";import{ConnectionAuthorizationFailedError,ConnectionAuthorizationRequiredError,isConnectionAuthorizationFailedError,isConnectionAuthorizationRequiredError}from"#public/connections/errors.js";export{ConnectionAuthorizationFailedError,ConnectionAuthorizationRequiredError,defineInteractiveAuthorization,defineMcpClientConnection,defineOpenAPIConnection,isConnectionAuthorizationFailedError,isConnectionAuthorizationRequiredError};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AgentBuildDefinition, PublicAgentDefinition, PublicAgentStaticModelDefinition } from "#shared/agent-definition.js";
|
|
2
2
|
import type { ExactDefinition } from "#public/definitions/exact.js";
|
|
3
3
|
import type { RemoteAgentDefinition } from "#public/definitions/remote-agent.js";
|
|
4
|
-
import type { DynamicEvents, DynamicSentinel } from "#
|
|
4
|
+
import type { DynamicEvents, DynamicSentinel } from "#dynamic/definition.js";
|
|
5
5
|
declare const DEFINED_AGENT: unique symbol;
|
|
6
6
|
export type { AgentModelResolveContext, AgentModelOptionsDefinition, AgentModelResolver, AgentReasoningDefinition, AgentBuildDefinition, PublicAgentDynamicModelDefinition as AgentDynamicModelDefinition, PublicAgentDynamicModelResult as AgentDynamicModelResult, AgentExperimentalDefinition, AgentLimitsDefinition, PublicAgentModelSelectionDefinition as AgentModelSelectionDefinition, AgentWorkflowDefinition, AgentWorkflowWorldDefinition, PublicAgentModelDefinition as AgentModelDefinition, PublicAgentStaticModelDefinition as AgentStaticModelDefinition, PublicAgentCompactionDefinition as AgentCompactionDefinition, } from "#shared/agent-definition.js";
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineDynamic as defineDynamic$1}from"#
|
|
1
|
+
import{defineDynamic as defineDynamic$1}from"#dynamic/definition.js";const defineDynamic=(t=>{let n=defineDynamic$1({events:t.events});return t.build===void 0?n:{...n,build:t.build}});function defineAgent(e){return e}export{defineAgent,defineDynamic};
|
|
@@ -1,84 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { ToolAuthOptions, ToolAuthProvider } from "#public/definitions/tool.js";
|
|
4
|
-
import type { SessionContext } from "#public/definitions/callback-context.js";
|
|
5
|
-
import type { TokenResult } from "#runtime/connections/types.js";
|
|
6
|
-
type ApprovalToolInput<TInput> = TInput extends object ? Readonly<TInput> : TInput;
|
|
7
|
-
/**
|
|
8
|
-
* Context passed to an {@link ApprovalPolicy} function.
|
|
9
|
-
*
|
|
10
|
-
* Extends {@link SessionContext} so approval policies can make decisions from
|
|
11
|
-
* the active session, current caller, and turn.
|
|
12
|
-
*/
|
|
13
|
-
export interface ApprovalContext<TInput = Record<string, unknown>> extends SessionContext {
|
|
14
|
-
readonly approvedTools: ReadonlySet<string>;
|
|
15
|
-
readonly callId: string;
|
|
16
|
-
readonly toolInput?: ApprovalToolInput<TInput>;
|
|
17
|
-
readonly toolName: string;
|
|
18
|
-
}
|
|
19
|
-
/** Request-time approval decision returned by an {@link ApprovalPolicy}. */
|
|
20
|
-
export type ApprovalStatus = undefined | boolean | "not-applicable" | "approved" | "denied" | "user-approval" | {
|
|
21
|
-
readonly type: "not-applicable";
|
|
22
|
-
readonly reason?: never;
|
|
23
|
-
} | {
|
|
24
|
-
readonly type: "approved";
|
|
25
|
-
readonly reason?: string;
|
|
26
|
-
} | {
|
|
27
|
-
readonly type: "denied";
|
|
28
|
-
readonly reason?: string;
|
|
29
|
-
} | {
|
|
30
|
-
readonly type: "user-approval";
|
|
31
|
-
readonly reason?: never;
|
|
32
|
-
};
|
|
33
|
-
/** Request-time approval policy shared by authored tools and connections. */
|
|
34
|
-
export type ApprovalPolicy<TInput = Record<string, unknown>> = (ctx: ApprovalContext<TInput>) => ApprovalStatus | Promise<ApprovalStatus>;
|
|
35
|
-
/** Stable tool request passed to a response authorizer. */
|
|
36
|
-
export interface ApprovalRequest<TInput = Record<string, unknown>> {
|
|
37
|
-
readonly callId: string;
|
|
38
|
-
readonly requestId: string;
|
|
39
|
-
readonly toolInput?: ApprovalToolInput<TInput>;
|
|
40
|
-
readonly toolName: string;
|
|
41
|
-
}
|
|
42
|
-
/** Read-only session identity and lineage available to a response authorizer. */
|
|
43
|
-
export interface ApprovalResponseSession {
|
|
44
|
-
readonly id: string;
|
|
45
|
-
readonly initiator: SessionAuthContext | null;
|
|
46
|
-
readonly parent?: SessionParent;
|
|
47
|
-
readonly turn: SessionTurn;
|
|
48
|
-
}
|
|
49
|
-
/** Narrow authorization capability available while validating a responder. */
|
|
50
|
-
export interface ApprovalResponseAuth {
|
|
51
|
-
getToken(provider: ToolAuthProvider, options?: ToolAuthOptions): Promise<TokenResult>;
|
|
52
|
-
requireAuth(provider: ToolAuthProvider, options?: ToolAuthOptions): never;
|
|
53
|
-
}
|
|
54
|
-
/** Submitted decision passed to an approval response policy. */
|
|
55
|
-
export interface ApprovalResponse {
|
|
56
|
-
readonly decision: "approve";
|
|
57
|
-
}
|
|
58
|
-
/** Context passed to an approval response policy. */
|
|
59
|
-
export interface ApprovalResponseContext<TInput = Record<string, unknown>> {
|
|
60
|
-
readonly auth: ApprovalResponseAuth;
|
|
61
|
-
readonly request: ApprovalRequest<TInput>;
|
|
62
|
-
readonly response: ApprovalResponse;
|
|
63
|
-
readonly responder: SessionAuthContext;
|
|
64
|
-
readonly session: ApprovalResponseSession;
|
|
65
|
-
}
|
|
66
|
-
/** Response policy decision. Rejection keeps the shared request pending. */
|
|
67
|
-
export type ApprovalResponseDecision = {
|
|
68
|
-
readonly status: "allowed";
|
|
69
|
-
} | {
|
|
70
|
-
readonly reason: string;
|
|
71
|
-
readonly status: "rejected";
|
|
72
|
-
};
|
|
73
|
-
/** Decides whether an authenticated responder may approve one request. */
|
|
74
|
-
export type ApprovalResponsePolicy<TInput = Record<string, unknown>> = (ctx: ApprovalResponseContext<TInput>) => ApprovalResponseDecision | Promise<ApprovalResponseDecision>;
|
|
75
|
-
/** Approval definition with request- and response-time policy. */
|
|
76
|
-
export interface ApprovalConfiguration<TInput = Record<string, unknown>> {
|
|
77
|
-
readonly request: ApprovalPolicy<TInput>;
|
|
78
|
-
readonly response?: ApprovalResponsePolicy<TInput>;
|
|
79
|
-
}
|
|
80
|
-
/** Shared approval definition used by authored tools and connections. */
|
|
81
|
-
export type Approval<TInput = Record<string, unknown>> = ApprovalPolicy<TInput> | ApprovalConfiguration<TInput>;
|
|
82
|
-
/** Returns the request-time policy from either approval authoring shape. */
|
|
83
|
-
export declare function resolveApprovalPolicy<TInput>(approval: Approval<TInput>): ApprovalPolicy<TInput>;
|
|
84
|
-
export {};
|
|
1
|
+
export type { Approval, ApprovalConfiguration, ApprovalContext, ApprovalPolicy, ApprovalRequest, ApprovalResponse, ApprovalResponseAuth, ApprovalResponseContext, ApprovalResponseDecision, ApprovalResponsePolicy, ApprovalResponseSession, ApprovalStatus, } from "#approval/definition.js";
|
|
2
|
+
export { resolveApprovalPolicy } from "#approval/definition.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{resolveApprovalPolicy}from"#approval/definition.js";export{resolveApprovalPolicy};
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { RuntimeSandboxSession } from "#shared/sandbox-session.js";
|
|
3
|
-
import type { SessionAuth, SessionParent, SessionTurn } from "#context/keys.js";
|
|
4
|
-
export type { SessionAuth, SessionParent, SessionTurn };
|
|
5
|
-
/**
|
|
6
|
-
* Shared runtime context available to all authored callbacks that run
|
|
7
|
-
* inside the ALS-scoped harness step (tools, hooks, channel events).
|
|
8
|
-
*
|
|
9
|
-
* Non-ALS callbacks (schedule `run`, sandbox `bootstrap`/`onSession`,
|
|
10
|
-
* instrumentation `setup`) do not receive this context. They get
|
|
11
|
-
* domain-specific arguments instead.
|
|
12
|
-
*/
|
|
13
|
-
export interface SessionContext {
|
|
14
|
-
/**
|
|
15
|
-
* Active session metadata for the callback's exact durable session.
|
|
16
|
-
*/
|
|
17
|
-
readonly session: {
|
|
18
|
-
readonly id: string;
|
|
19
|
-
readonly auth: SessionAuth;
|
|
20
|
-
readonly turn: SessionTurn;
|
|
21
|
-
readonly parent?: SessionParent;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Resolves the session's sandbox. Throws when no sandbox is available
|
|
25
|
-
* in the current authored runtime context.
|
|
26
|
-
*/
|
|
27
|
-
getSandbox(): Promise<RuntimeSandboxSession>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns a {@link SkillHandle} for the named authored skill.
|
|
30
|
-
*/
|
|
31
|
-
getSkill(identifier: string): SkillHandle;
|
|
32
|
-
}
|
|
1
|
+
export type { SessionAuth, SessionContext, SessionParent, SessionTurn, } from "#context/session-context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectionAuthDefinition, HeadersDefinition, ToolFilterDefinition } from "#
|
|
1
|
+
import type { ConnectionAuthDefinition, HeadersDefinition, ToolFilterDefinition } from "#shared/connection-types.js";
|
|
2
2
|
import type { ConnectionToolCallDefinition } from "#public/definitions/connections/tool-call.js";
|
|
3
3
|
import type { Approval } from "#public/definitions/approval.js";
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{stampConnectionProtocol}from"#public/definitions/connections/protocol.js";import{
|
|
1
|
+
import{stampConnectionProtocol}from"#public/definitions/connections/protocol.js";import{stampDefinitionKey}from"#internal/authored-definition/source-identity.js";import{normalizeAuthorizationSpec}from"#shared/validate-authorization.js";function defineMcpClientConnection(e){return e.auth!==void 0&&typeof e.auth!=`function`&&(e.auth=normalizeAuthorizationSpec(e.auth,`defineMcpClientConnection:`)),stampDefinitionKey(e,`connection:${e.url}`),stampConnectionProtocol(e,`mcp`),e}export{defineMcpClientConnection};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectionAuthDefinition, HeadersDefinition, ToolFilterDefinition } from "#
|
|
1
|
+
import type { ConnectionAuthDefinition, HeadersDefinition, ToolFilterDefinition } from "#shared/connection-types.js";
|
|
2
2
|
import type { Approval } from "#public/definitions/approval.js";
|
|
3
3
|
import type { ConnectionToolCallDefinition } from "#public/definitions/connections/tool-call.js";
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{stampConnectionProtocol}from"#public/definitions/connections/protocol.js";import{
|
|
1
|
+
import{stampConnectionProtocol}from"#public/definitions/connections/protocol.js";import{stampDefinitionKey}from"#internal/authored-definition/source-identity.js";import{normalizeAuthorizationSpec}from"#shared/validate-authorization.js";function defineOpenAPIConnection(e){return e.auth!==void 0&&typeof e.auth!=`function`&&(e.auth=normalizeAuthorizationSpec(e.auth,`defineOpenAPIConnection:`)),stampDefinitionKey(e,`connection:${e.baseUrl??(typeof e.spec==`string`?e.spec:e.description)}`),stampConnectionProtocol(e,`openapi`),e}export{defineOpenAPIConnection};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type DynamicResolveContext, type DynamicSentinel } from "#
|
|
1
|
+
import { type DynamicResolveContext, type DynamicSentinel } from "#dynamic/definition.js";
|
|
2
2
|
import type { ExactDefinition } from "#public/definitions/exact.js";
|
|
3
|
-
import type
|
|
3
|
+
import { type PublicInstructionsDefinition } from "#shared/instructions-definition.js";
|
|
4
4
|
export type InstructionsDefinition = Readonly<PublicInstructionsDefinition>;
|
|
5
5
|
/**
|
|
6
6
|
* Defines instructions in TypeScript from a `{ content, role? }`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DYNAMIC_SENTINEL_KIND
|
|
1
|
+
import{DYNAMIC_SENTINEL_KIND}from"#dynamic/definition.js";import{INSTRUCTIONS_BRAND}from"#shared/instructions-definition.js";import{stampDefinitionKey}from"#internal/authored-definition/source-identity.js";function defineInstructions(e){return Object.assign(e,{[INSTRUCTIONS_BRAND]:!0}),e}function defineDynamic(t){let n={kind:DYNAMIC_SENTINEL_KIND,events:t.events};return stampDefinitionKey(n,`dynamic-instructions:${Object.keys(t.events).join(`,`)}`),n}export{defineDynamic,defineInstructions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SKILL_BRAND}from"#shared/
|
|
1
|
+
import{SKILL_BRAND}from"#shared/skill-definition.js";function defineSkill(e){return Object.defineProperty(e,SKILL_BRAND,{value:!0}),e}export{defineSkill};
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Core agent authoring helpers for `agent/agent.ts`.
|
|
3
3
|
*/
|
|
4
4
|
export { type AgentCompactionDefinition, type AgentDefinition, type AgentExperimentalDefinition, type AgentLimitsDefinition, type AgentModelDefinition, type AgentModelOptionsDefinition, type AgentReasoningDefinition, type AgentStaticModelDefinition, type AgentWorkflowDefinition, type AgentWorkflowWorldDefinition, type DefinedAgent, type DynamicSubagentDefinition, type DynamicLocalSubagentDefinition, defineAgent, defineDynamic, } from "#public/definitions/agent.js";
|
|
5
|
-
export type { DynamicResolveContext, DynamicSentinel } from "#
|
|
5
|
+
export type { DynamicResolveContext, DynamicSentinel } from "#dynamic/definition.js";
|
|
6
6
|
export { type RemoteAgentDefinition, type RemoteAgentDefinitionInput, type RemoteAgentUrl, defineRemoteAgent, } from "#public/definitions/remote-agent.js";
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* and `agent/instructions/*.ts` files.
|
|
4
4
|
*/
|
|
5
5
|
export { defineDynamic, defineInstructions, type DynamicInstructionsEvents, type DynamicInstructionsResult, type InstructionsDefinition, } from "#public/definitions/instructions.js";
|
|
6
|
-
export type { DynamicResolveContext, DynamicSentinel } from "#
|
|
6
|
+
export type { DynamicResolveContext, DynamicSentinel } from "#dynamic/definition.js";
|
|
@@ -1,117 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* The provider contract authored under `agent/instrumentation/`.
|
|
3
|
-
*
|
|
4
|
-
* Reachable only with `experimental.instrumentationProviders` on. With the flag
|
|
5
|
-
* off nothing discovers that directory, so these types compile but never run.
|
|
6
|
-
*/
|
|
7
|
-
import type { InstrumentationCapture, InstrumentationEvent } from "#harness/instrumentation/lifecycle.js";
|
|
8
|
-
import type { JsonValue } from "#public/types/json.js";
|
|
9
|
-
export type { JsonValue } from "#public/types/json.js";
|
|
10
|
-
export type { InstrumentationActionCompletedEvent, InstrumentationActionFailedEvent, InstrumentationActionKind, InstrumentationActionOutcome, InstrumentationActionOutput, InstrumentationActionStartedEvent, InstrumentationAttemptScope, InstrumentationCapture, InstrumentationChannelDeliveryInput, InstrumentationChannelDeliveryOutcome, InstrumentationChannelDeliveryRef, InstrumentationChannelDeliveryStartedEvent, InstrumentationChannelDeliveryTerminalEvent, InstrumentationContentPart, InstrumentationEvent, InstrumentationInputKind, InstrumentationInputOption, InstrumentationInputOutcome, InstrumentationInputRequest, InstrumentationInputRequestedEvent, InstrumentationInputResolvedEvent, InstrumentationInputResponse, InstrumentationModelCallCompletedEvent, InstrumentationModelCallFailedEvent, InstrumentationModelCallStartedEvent, InstrumentationModelRef, InstrumentationOperationRef, InstrumentationParentLineage, InstrumentationSessionFailedEvent, InstrumentationSessionSettledEvent, InstrumentationSessionStartedEvent, InstrumentationSessionTransitionEvent, InstrumentationStepAttemptMetadataEvent, InstrumentationStepAttemptCompletedEvent, InstrumentationStepAttemptFailedEvent, InstrumentationStepAttemptStartedEvent, InstrumentationStepAttemptTerminalEvent, InstrumentationToolCallCompletedEvent, InstrumentationToolCallFailedEvent, InstrumentationToolCallStartedEvent, InstrumentationToolOutput, InstrumentationTraceContext, InstrumentationTurnFailedEvent, InstrumentationTurnSettledEvent, InstrumentationTurnStartedEvent, InstrumentationTurnTerminalEvent, InstrumentationUsage, } from "#harness/instrumentation/lifecycle.js";
|
|
11
|
-
/**
|
|
12
|
-
* Marks a value as having come from `defineInstrumentation` or a built-in
|
|
13
|
-
* factory.
|
|
14
|
-
*
|
|
15
|
-
* It does not say which layout the value belongs to: a provider and a legacy
|
|
16
|
-
* config both carry `events` and `setup`, so no value-level check separates
|
|
17
|
-
* them. The layout decides — `agent/instrumentation.ts` is read as a config and
|
|
18
|
-
* `agent/instrumentation/*.ts` as providers, and the two are mutually exclusive
|
|
19
|
-
* builds. The brand's job is only to catch a default export that never went
|
|
20
|
-
* through eve at all.
|
|
21
|
-
*/
|
|
22
|
-
export declare const PROVIDER: unique symbol;
|
|
23
|
-
/** Marks a slot the author turned off rather than configured. */
|
|
24
|
-
export declare const DISABLED: unique symbol;
|
|
25
|
-
/** Where the agent is running when `setup` fires. */
|
|
26
|
-
export type InstrumentationEnvironment = "development" | "preview" | "production";
|
|
27
|
-
/** The local eval run this server was started to serve. */
|
|
28
|
-
export interface EvaluationRef {
|
|
29
|
-
readonly runId: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Passed to {@link InstrumentationProvider.setup} once at server startup,
|
|
33
|
-
* before any event is published.
|
|
34
|
-
*/
|
|
35
|
-
export interface ProviderSetupContext {
|
|
36
|
-
/** The agent name declared by `defineAgent`. */
|
|
37
|
-
readonly agentName: string;
|
|
38
|
-
/** Always supplied at runtime; optional for legacy setup-context compatibility. */
|
|
39
|
-
readonly environment?: InstrumentationEnvironment;
|
|
40
|
-
/** Present only when this server was started for a local `eve eval` run. */
|
|
41
|
-
readonly evaluation?: EvaluationRef;
|
|
42
|
-
/** The eve version running the agent. */
|
|
43
|
-
/** Always supplied at runtime; optional for legacy setup-context compatibility. */
|
|
44
|
-
readonly frameworkVersion?: string;
|
|
45
|
-
}
|
|
46
|
-
export interface ProviderState {
|
|
47
|
-
get(): JsonValue | undefined;
|
|
48
|
-
/** Stages a JSON value; `undefined` releases this operation's slot. */
|
|
49
|
-
set(value: JsonValue | undefined): void;
|
|
50
|
-
}
|
|
51
|
-
export interface ProviderContext {
|
|
52
|
-
readonly state: ProviderState;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* One event handler.
|
|
56
|
-
*
|
|
57
|
-
* A handler can carry durable JSON state from a start to its terminal through
|
|
58
|
-
* `ctx.state`. eve scopes and releases that state by provider and operation.
|
|
59
|
-
*/
|
|
60
|
-
export type Handler<TEvent> = (event: TEvent, ctx: ProviderContext) => void | PromiseLike<void>;
|
|
61
|
-
type EventForType<TEvent, TType> = TEvent extends {
|
|
62
|
-
readonly type: infer TEventType;
|
|
63
|
-
} ? TType extends TEventType ? TEvent & {
|
|
64
|
-
readonly type: TType;
|
|
65
|
-
} : never : never;
|
|
66
|
-
/**
|
|
67
|
-
* The events a provider may handle, one optional handler per event type.
|
|
68
|
-
*
|
|
69
|
-
* Derived from the event union rather than written out, so a new event reaches
|
|
70
|
-
* providers the moment the bus can publish it.
|
|
71
|
-
*/
|
|
72
|
-
export type ProviderEvents = {
|
|
73
|
-
readonly [TType in InstrumentationEvent["type"]]?: Handler<EventForType<InstrumentationEvent, TType>>;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* What an author writes for one file under `agent/instrumentation/`.
|
|
77
|
-
*
|
|
78
|
-
* Setup runs in slot order, but event handlers across authored providers run
|
|
79
|
-
* concurrently and are failure-isolated. Do not coordinate providers through
|
|
80
|
-
* completion order.
|
|
81
|
-
*/
|
|
82
|
-
export interface ProviderDefinition {
|
|
83
|
-
/**
|
|
84
|
-
* How much of each event this provider is handed. Defaults to `"metadata"`:
|
|
85
|
-
* structure, identity, usage, and timing, but not what was said.
|
|
86
|
-
*
|
|
87
|
-
* `"content"` adds the prompt, the response, tool arguments, and tool
|
|
88
|
-
* results. Asking is what makes eve build the projection at all, so a
|
|
89
|
-
* directory in which nobody asks never serializes a prompt.
|
|
90
|
-
*/
|
|
91
|
-
readonly capture?: InstrumentationCapture;
|
|
92
|
-
readonly events?: ProviderEvents;
|
|
93
|
-
/** Runs once at server startup, before any event is published. */
|
|
94
|
-
readonly setup?: (context: ProviderSetupContext) => void | PromiseLike<void>;
|
|
95
|
-
/** Drains anything buffered. eve calls this before a session goes idle. */
|
|
96
|
-
readonly flush?: () => void | PromiseLike<void>;
|
|
97
|
-
/** Releases resources when the process is going away. */
|
|
98
|
-
readonly shutdown?: () => void | PromiseLike<void>;
|
|
99
|
-
}
|
|
100
|
-
/** A {@link ProviderDefinition} that has been through `defineInstrumentation`. */
|
|
101
|
-
export type InstrumentationProvider = ProviderDefinition & {
|
|
102
|
-
readonly [PROVIDER]: true;
|
|
103
|
-
};
|
|
104
|
-
/** A slot the author turned off. eve registers nothing for it. */
|
|
105
|
-
export interface InstrumentationDisabled {
|
|
106
|
-
readonly [DISABLED]: true;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Turns off the slot the file it is exported from names.
|
|
110
|
-
*
|
|
111
|
-
* Export it as the default of `agent/instrumentation/local.ts` to stop eve
|
|
112
|
-
* spooling local traces, for instance. Omitting the file entirely leaves eve's
|
|
113
|
-
* default in place, which is why turning one off takes a value.
|
|
114
|
-
*/
|
|
115
|
-
export declare function disableInstrumentation(): InstrumentationDisabled;
|
|
116
|
-
export declare function isInstrumentationProvider(value: unknown): value is InstrumentationProvider;
|
|
117
|
-
export declare function isInstrumentationDisabled(value: unknown): value is InstrumentationDisabled;
|
|
1
|
+
export * from "#instrumentation/provider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export*from"#instrumentation/provider.js";export{};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { ModelMessage } from "ai";
|
|
2
|
+
import type { SessionAuth } from "#context/keys.js";
|
|
3
|
+
import type { Approval } from "#public/definitions/approval.js";
|
|
4
|
+
import type { SessionContext } from "#public/definitions/callback-context.js";
|
|
5
|
+
import type { ExactDefinition } from "#public/definitions/exact.js";
|
|
6
|
+
import type { DynamicResolveContext } from "#dynamic/definition.js";
|
|
7
|
+
import { MEMORY_DEFINITION_BRAND } from "#shared/memory-definition.js";
|
|
8
|
+
import type { ToolContext, ToolModelOutput } from "#tools/definition.js";
|
|
9
|
+
export interface MemoryNamespaceContext {
|
|
10
|
+
readonly appRoot: string;
|
|
11
|
+
readonly node: string;
|
|
12
|
+
readonly slot: string;
|
|
13
|
+
}
|
|
14
|
+
export type MemoryNamespaceDefinition = string | null | ((context: MemoryNamespaceContext) => string | null | Promise<string | null>);
|
|
15
|
+
export type MemoryScopeResolverResult = string | readonly string[] | null;
|
|
16
|
+
export interface MemoryScopeContext {
|
|
17
|
+
readonly abortSignal: AbortSignal;
|
|
18
|
+
readonly session: {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly auth: SessionAuth;
|
|
21
|
+
};
|
|
22
|
+
readonly channel: {
|
|
23
|
+
readonly kind?: string;
|
|
24
|
+
readonly continuationToken?: string;
|
|
25
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export type MemoryScopeDefinition = string | null | ((context: MemoryScopeContext) => MemoryScopeResolverResult | Promise<MemoryScopeResolverResult>);
|
|
29
|
+
export interface MemoryScope {
|
|
30
|
+
readonly key: string;
|
|
31
|
+
readonly namespace: string;
|
|
32
|
+
readonly value: string | readonly string[];
|
|
33
|
+
}
|
|
34
|
+
export interface MemoryRecallMessage {
|
|
35
|
+
readonly content: string;
|
|
36
|
+
readonly id?: string;
|
|
37
|
+
}
|
|
38
|
+
export type MemoryRecallResult = {
|
|
39
|
+
readonly messages: readonly MemoryRecallMessage[];
|
|
40
|
+
} | null | undefined;
|
|
41
|
+
export interface MemoryTurnContext {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly input: readonly ModelMessage[];
|
|
44
|
+
readonly sequence: number;
|
|
45
|
+
}
|
|
46
|
+
export interface MemoryOperationContext extends SessionContext {
|
|
47
|
+
readonly abortSignal: AbortSignal;
|
|
48
|
+
readonly messages: readonly ModelMessage[];
|
|
49
|
+
readonly operationId: string;
|
|
50
|
+
readonly memory: {
|
|
51
|
+
readonly scope: MemoryScope;
|
|
52
|
+
readonly slot: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface MemoryTurnStartedContext extends MemoryOperationContext {
|
|
56
|
+
readonly turn: MemoryTurnContext;
|
|
57
|
+
}
|
|
58
|
+
export interface MemoryCompactionCompletedContext extends MemoryOperationContext {
|
|
59
|
+
readonly turn: MemoryTurnContext | null;
|
|
60
|
+
readonly compaction: {
|
|
61
|
+
readonly modelId: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface MemoryCompactionRequestedContext extends MemoryOperationContext {
|
|
65
|
+
readonly turn: MemoryTurnContext | null;
|
|
66
|
+
readonly compaction: {
|
|
67
|
+
readonly modelId: string;
|
|
68
|
+
readonly usageInputTokens: number | null;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export interface MemoryTurnCompletedContext extends MemoryOperationContext {
|
|
72
|
+
readonly turn: MemoryTurnContext;
|
|
73
|
+
}
|
|
74
|
+
export type MemoryRecallHandler<TContext extends MemoryOperationContext> = (context: TContext) => MemoryRecallResult | Promise<MemoryRecallResult>;
|
|
75
|
+
export type MemoryCaptureHandler<TContext extends MemoryOperationContext> = (context: TContext) => void | Promise<void>;
|
|
76
|
+
export interface MemoryToolsContext extends DynamicResolveContext {
|
|
77
|
+
readonly memory: {
|
|
78
|
+
readonly scope: MemoryScope;
|
|
79
|
+
readonly slot: string;
|
|
80
|
+
};
|
|
81
|
+
readonly turn: MemoryTurnContext;
|
|
82
|
+
}
|
|
83
|
+
export interface MemoryToolDefinition {
|
|
84
|
+
readonly approval?: Approval<never>;
|
|
85
|
+
readonly description: string;
|
|
86
|
+
readonly execution?: never;
|
|
87
|
+
execute(input: never, context: ToolContext): unknown | Promise<unknown> | AsyncIterable<unknown>;
|
|
88
|
+
readonly inputSchema: unknown;
|
|
89
|
+
readonly outputSchema?: unknown;
|
|
90
|
+
readonly toModelOutput?: (output: never) => ToolModelOutput | Promise<ToolModelOutput>;
|
|
91
|
+
}
|
|
92
|
+
export type MemoryToolSet = Readonly<Record<string, MemoryToolDefinition>>;
|
|
93
|
+
export interface MemoryProvider {
|
|
94
|
+
readonly recall: {
|
|
95
|
+
readonly "turn.started": MemoryRecallHandler<MemoryTurnStartedContext>;
|
|
96
|
+
readonly "compaction.completed"?: MemoryRecallHandler<MemoryCompactionCompletedContext>;
|
|
97
|
+
};
|
|
98
|
+
readonly capture?: {
|
|
99
|
+
readonly "compaction.requested"?: MemoryCaptureHandler<MemoryCompactionRequestedContext>;
|
|
100
|
+
readonly "turn.completed"?: MemoryCaptureHandler<MemoryTurnCompletedContext>;
|
|
101
|
+
};
|
|
102
|
+
readonly tools?: (context: MemoryToolsContext) => Promise<MemoryToolSet | null>;
|
|
103
|
+
}
|
|
104
|
+
export type MemoryVisibility = "scope" | "session";
|
|
105
|
+
export interface MemoryDefinition {
|
|
106
|
+
readonly description?: string;
|
|
107
|
+
readonly namespace?: MemoryNamespaceDefinition;
|
|
108
|
+
readonly provider: MemoryProvider;
|
|
109
|
+
readonly scope: MemoryScopeDefinition;
|
|
110
|
+
readonly visibility?: MemoryVisibility;
|
|
111
|
+
}
|
|
112
|
+
export type DefinedMemory<T extends MemoryDefinition = MemoryDefinition> = T & {
|
|
113
|
+
readonly [MEMORY_DEFINITION_BRAND]: true;
|
|
114
|
+
};
|
|
115
|
+
export declare function defineMemoryProvider<const T extends MemoryProvider>(provider: ExactDefinition<T, MemoryProvider>): T;
|
|
116
|
+
export declare function defineMemory<const T extends MemoryDefinition>(definition: ExactDefinition<T, MemoryDefinition>): DefinedMemory<T>;
|
|
117
|
+
export declare function defaultNamespace(context: MemoryNamespaceContext): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createHash}from"node:crypto";import{resolveVercelProjectIdFromEnvironment}from"#shared/vercel-project.js";import{MEMORY_DEFINITION_BRAND}from"#shared/memory-definition.js";function defineMemoryProvider(e){return e}function defineMemory(e){return Object.assign(e,{[MEMORY_DEFINITION_BRAND]:!0}),e}function defaultNamespace(t){let n=resolveVercelProjectIdFromEnvironment();if(n===void 0)return JSON.stringify([`eve-memory-default-namespace-v1`,`local`,createHash(`sha256`).update(t.appRoot).digest(`base64url`),t.node,t.slot]);let r=process.env.VERCEL_TARGET_ENV?.trim()||process.env.VERCEL_ENV?.trim()||`production`,i=r===`preview`?process.env.VERCEL_GIT_COMMIT_REF?.trim()||process.env.VERCEL_DEPLOYMENT_ID?.trim()||process.env.VERCEL_URL?.trim()||`unknown-preview`:null;return JSON.stringify([`eve-memory-default-namespace-v1`,`vercel`,n,r,i,t.node,t.slot])}export{defaultNamespace,defineMemory,defineMemoryProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const DISABLED_PRINCIPAL_TYPES=new Set([`anonymous`,`runtime`]);function byPrincipal(e){let t=e.session.auth.current;return t===null||DISABLED_PRINCIPAL_TYPES.has(t.principalType)?null:t.principalType===`local-dev`?`local-dev`:JSON.stringify([t.principalType,t.authenticator,t.issuer??null,t.principalId])}export{byPrincipal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{decodeJwt}from"#compiled/jose/index.js";import{isObject}from"#shared/guards.js";function readCodexJwtExpirationMs(e){let t=parseCodexJwtClaims(e);if(!(t===void 0||typeof t.exp!=`number`))return t.exp*1e3}function extractCodexAccountIdFromToken(e){let n=parseCodexJwtClaims(e);if(n===void 0)return;let r=n[`https://api.openai.com/auth`],i=n.organizations;return readNonEmptyString$1(n.chatgpt_account_id)??readNonEmptyString$1(isObject(r)?r.chatgpt_account_id:void 0)??readNonEmptyString$1(Array.isArray(i)&&isObject(i[0])?i[0].id:void 0)}function extractCodexAccountLabelFromToken(e){let n=parseCodexJwtClaims(e);if(n===void 0)return;let r=n[`https://api.openai.com/auth`],i=readEmail(n.email)??readEmail(isObject(r)?r.email:void 0);if(i!==void 0)return i;let a=readNonEmptyString$1(n.sub);return a===void 0?void 0:readEmail(a.split(`|`).at(-1))}function readEmail(e){let t=readNonEmptyString$1(e);return t!==void 0&&/^[^@\s]+@[^@\s]+\.[^@\s]+$/u.test(t)?t:void 0}function readNonEmptyString$1(e){return typeof e==`string`&&e.trim()!==``?e:void 0}function parseCodexJwtClaims(t){if(t!==void 0)try{return decodeJwt(t)}catch{return}}export{extractCodexAccountIdFromToken,extractCodexAccountLabelFromToken,readCodexJwtExpirationMs};
|