eve 0.82.0 → 0.83.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 +81 -0
- package/NOTICE +1 -1
- package/dist/src/channel/pending-authorization.d.ts +5 -0
- package/dist/src/channel/pending-authorization.js +1 -1
- package/dist/src/channel/session.d.ts +2 -0
- package/dist/src/channel/session.js +1 -1
- package/dist/src/channel/types.d.ts +5 -0
- package/dist/src/chunks/{use-eve-agent-DTu78IAF.js → use-eve-agent-DnbG9c7c.js} +73 -14
- package/dist/src/chunks/{use-eve-agent-DlznYwQk.js → use-eve-agent-ZY7NQ2VW.js} +73 -14
- package/dist/src/cli/dev/local-server-child.js +1 -1
- package/dist/src/cli/dev/local-server-cleanup.js +1 -1
- package/dist/src/cli/dev/tui/question-panel.d.ts +4 -1
- package/dist/src/cli/dev/tui/question-panel.js +1 -1
- package/dist/src/cli/dev/tui/terminal-renderer.js +4 -4
- package/dist/src/cli/run.js +1 -1
- package/dist/src/client/eve-agent-store.d.ts +1 -1
- package/dist/src/client/eve-agent-store.js +1 -1
- package/dist/src/client/index.d.ts +1 -0
- package/dist/src/client/message-response.d.ts +18 -0
- package/dist/src/client/message-response.js +1 -1
- package/dist/src/client/session-controls.d.ts +6 -0
- package/dist/src/client/session-controls.js +1 -1
- package/dist/src/client/session.d.ts +4 -0
- package/dist/src/client/session.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +8 -8
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/@workflow/core/events-consumer.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/index.js +2 -2
- package/dist/src/compiled/@workflow/core/private.d.ts +5 -3
- package/dist/src/compiled/@workflow/core/private.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +1 -37
- package/dist/src/compiled/@workflow/core/runtime/event-limit-warning.d.ts +32 -0
- package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +5 -6
- package/dist/src/compiled/@workflow/core/runtime/helpers.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +8 -0
- package/dist/src/compiled/@workflow/core/runtime/start.d.ts +16 -0
- package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +15 -18
- package/dist/src/compiled/@workflow/core/runtime/vm-mode.d.ts +20 -0
- package/dist/src/compiled/@workflow/core/runtime.js +4 -4
- package/dist/src/compiled/@workflow/core/seeded-nanoid.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/serialization/compression.d.ts +14 -3
- package/dist/src/compiled/@workflow/core/serialization.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/serialization.js +1 -1
- package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +0 -18
- package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/workflow.js +1 -1
- package/dist/src/compiled/@workflow/errors/index.d.ts +48 -0
- package/dist/src/compiled/@workflow/errors/index.js +1 -1
- package/dist/src/compiled/@workflow/world/env-config.d.ts +24 -0
- package/dist/src/compiled/@workflow/world/events.d.ts +126 -7
- package/dist/src/compiled/@workflow/world/index.d.ts +3 -3
- package/dist/src/compiled/@workflow/world/interfaces.d.ts +59 -8
- package/dist/src/compiled/@workflow/world/queue.d.ts +71 -9
- package/dist/src/compiled/@workflow/world/recovery.d.ts +6 -0
- package/dist/src/compiled/@workflow/world/test-support/duplicate-event-fixtures.d.ts +3 -0
- package/dist/src/compiled/@workflow/world/test-support/in-band-fence-conformance.d.ts +46 -0
- package/dist/src/compiled/@workflow/world-local/index.js +5 -5
- package/dist/src/compiled/@workflow/world-vercel/index.js +18 -18
- package/dist/src/compiled/_chunks/workflow/{attribute-changes-BW-kbMMn.js → attribute-changes-7se_SE2q.js} +3 -3
- package/dist/src/compiled/_chunks/workflow/dist-CcnNPAp4.js +1 -0
- package/dist/src/compiled/_chunks/workflow/dist-S9cZRway.js +3 -0
- package/dist/src/compiled/_chunks/workflow/helpers-CxNRXH0a.js +1 -0
- package/dist/src/compiled/_chunks/workflow/private-DLYTSBbu.js +1 -0
- package/dist/src/compiled/_chunks/workflow/resume-hook-CPiIfe8r.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{run-DzdAqdb1.js → run-BJSLCXR4.js} +6 -6
- package/dist/src/compiled/_chunks/workflow/serialization-B9gneT9Z.js +15 -0
- package/dist/src/compiled/_chunks/workflow/sleep-BL0oQs3R.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{wait-until-xbRRDuUf.js → wait-until-BPou0RGO.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/workflow-routes-BaljomCk.js +1 -0
- package/dist/src/compiled/{@ai-sdk/code-mode → run}/LICENSE +1 -1
- package/dist/src/compiled/run/index.d.ts +384 -0
- package/dist/src/compiled/run/index.js +650 -0
- package/dist/src/compiler/extension-compatibility.d.ts +21 -14
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/compiler/normalize-manifest.js +1 -1
- package/dist/src/compiler/normalize-sandbox.js +1 -1
- package/dist/src/compiler/workspace-resources.js +1 -1
- package/dist/src/context/build-callback-context.js +1 -1
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/dynamic-skill-lifecycle.d.ts +2 -2
- package/dist/src/context/dynamic-skill-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/prewarm.d.ts +27 -0
- package/dist/src/context/prewarm.js +1 -0
- package/dist/src/context/providers/sandbox.d.ts +7 -0
- package/dist/src/context/providers/sandbox.js +1 -1
- package/dist/src/context/run-step.js +1 -1
- package/dist/src/discover/extension-specifier.d.ts +1 -0
- package/dist/src/discover/extension-specifier.js +1 -1
- package/dist/src/discover/lib.d.ts +4 -3
- package/dist/src/discover/lib.js +1 -1
- package/dist/src/discover/named-source-directory.d.ts +3 -2
- package/dist/src/evals/cli/eval.d.ts +2 -0
- package/dist/src/evals/cli/eval.js +2 -2
- package/dist/src/evals/define-eval-config.d.ts +5 -4
- package/dist/src/evals/define-eval-config.js +1 -1
- package/dist/src/evals/index.d.ts +1 -1
- package/dist/src/evals/runner/artifacts.js +2 -2
- package/dist/src/evals/runner/attempt-label.d.ts +2 -0
- package/dist/src/evals/runner/attempt-label.js +1 -0
- package/dist/src/evals/runner/derive-run-facts.d.ts +12 -0
- package/dist/src/evals/runner/derive-run-facts.js +1 -1
- package/dist/src/evals/runner/execute-task.js +1 -1
- package/dist/src/evals/runner/reporters/braintrust.js +1 -1
- package/dist/src/evals/runner/reporters/console.js +1 -1
- package/dist/src/evals/runner/reporters/datadog.js +1 -1
- package/dist/src/evals/runner/reporters/junit.js +2 -2
- package/dist/src/evals/runner/reporters/types.d.ts +2 -0
- package/dist/src/evals/runner/run-evals.d.ts +5 -0
- package/dist/src/evals/runner/run-evals.js +1 -1
- package/dist/src/evals/session-manager.js +1 -1
- package/dist/src/evals/session.d.ts +4 -1
- package/dist/src/evals/session.js +2 -2
- package/dist/src/evals/types.d.ts +39 -2
- package/dist/src/eve-channel/index.js +1 -1
- package/dist/src/eve-channel/request.d.ts +0 -1
- package/dist/src/eve-channel/request.js +2 -2
- package/dist/src/execution/agent-sessions/context.d.ts +1 -1
- package/dist/src/execution/agent-sessions/context.js +1 -1
- package/dist/src/execution/coordination-dispatch-shared.d.ts +3 -0
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/dynamic-workflow/program-step.d.ts +7 -7
- package/dist/src/execution/dynamic-workflow/program-step.js +1 -1
- package/dist/src/execution/dynamic-workflow/schema.d.ts +18 -11
- package/dist/src/execution/dynamic-workflow/schema.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/dynamic-workflow/workflow.js +1 -1
- package/dist/src/execution/eve-workflow-attributes.d.ts +3 -1
- package/dist/src/execution/eve-workflow-attributes.js +1 -1
- package/dist/src/execution/invoke-tool.js +1 -1
- package/dist/src/execution/sandbox/abort-bound-session.js +1 -1
- package/dist/src/execution/sandbox/active-connections.d.ts +28 -0
- package/dist/src/execution/sandbox/active-connections.js +1 -0
- package/dist/src/execution/sandbox/bindings/docker-cli.d.ts +10 -2
- package/dist/src/execution/sandbox/bindings/docker-cli.js +2 -2
- package/dist/src/execution/sandbox/bindings/docker-connection.d.ts +15 -0
- package/dist/src/execution/sandbox/bindings/docker-connection.js +2 -0
- package/dist/src/execution/sandbox/bindings/docker-container.d.ts +2 -0
- package/dist/src/execution/sandbox/bindings/docker-container.js +1 -1
- package/dist/src/execution/sandbox/bindings/docker-network.d.ts +5 -0
- package/dist/src/execution/sandbox/bindings/docker-network.js +1 -1
- package/dist/src/execution/sandbox/bindings/docker-templates.js +1 -1
- package/dist/src/execution/sandbox/bindings/docker.d.ts +12 -15
- package/dist/src/execution/sandbox/bindings/docker.js +1 -1
- package/dist/src/execution/sandbox/bindings/just-bash-runtime.d.ts +19 -29
- package/dist/src/execution/sandbox/bindings/just-bash-runtime.js +1 -1
- package/dist/src/execution/sandbox/bindings/just-bash.d.ts +2 -4
- package/dist/src/execution/sandbox/bindings/just-bash.js +1 -1
- package/dist/src/execution/sandbox/bindings/local-provider-utils.d.ts +0 -20
- package/dist/src/execution/sandbox/bindings/local-provider-utils.js +1 -1
- package/dist/src/execution/sandbox/bindings/local.d.ts +4 -6
- package/dist/src/execution/sandbox/bindings/local.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel-base-runtime.d.ts +2 -0
- package/dist/src/execution/sandbox/bindings/vercel-base-runtime.js +2 -2
- package/dist/src/execution/sandbox/bindings/vercel-errors.js +2 -2
- package/dist/src/execution/sandbox/bindings/vercel-lifecycle.d.ts +7 -5
- package/dist/src/execution/sandbox/bindings/vercel-lifecycle.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel.d.ts +5 -11
- package/dist/src/execution/sandbox/bindings/vercel.js +1 -2
- package/dist/src/execution/sandbox/development-cleanup.d.ts +0 -1
- package/dist/src/execution/sandbox/development-cleanup.js +1 -1
- package/dist/src/execution/sandbox/development-lazy-prewarm.js +1 -1
- package/dist/src/execution/sandbox/development-run.d.ts +0 -2
- package/dist/src/execution/sandbox/development-run.js +1 -1
- package/dist/src/execution/sandbox/dockerfile.d.ts +0 -4
- package/dist/src/execution/sandbox/dockerfile.js +1 -1
- package/dist/src/execution/sandbox/ensure.d.ts +31 -11
- package/dist/src/execution/sandbox/ensure.js +1 -1
- package/dist/src/execution/sandbox/glob-tool.js +3 -3
- package/dist/src/execution/sandbox/grep-tool.js +1 -1
- package/dist/src/execution/sandbox/logging-session.js +1 -1
- package/dist/src/execution/sandbox/prewarm.d.ts +23 -3
- package/dist/src/execution/sandbox/prewarm.js +2 -1
- package/dist/src/execution/sandbox/read-file.js +1 -1
- package/dist/src/execution/sandbox/require-sandbox.d.ts +3 -2
- package/dist/src/execution/sandbox/require-sandbox.js +1 -1
- package/dist/src/execution/sandbox/ripgrep-probe.js +1 -1
- package/dist/src/execution/sandbox/session.d.ts +10 -20
- package/dist/src/execution/sandbox/session.js +2 -2
- package/dist/src/execution/session/admission.js +1 -1
- package/dist/src/execution/session/checkpoint-migrations.js +1 -1
- package/dist/src/execution/session/entry-input.d.ts +5 -4
- package/dist/src/execution/session/entry.js +1 -1
- package/dist/src/execution/session/handoff-state.d.ts +5 -0
- package/dist/src/execution/session/handoff-state.js +1 -0
- package/dist/src/execution/session/handoff-steps.d.ts +1 -5
- package/dist/src/execution/session/handoff-steps.js +1 -1
- package/dist/src/execution/session/handoff.d.ts +2 -1
- package/dist/src/execution/session/handoff.js +1 -1
- package/dist/src/execution/session/handover-tracing.d.ts +3 -0
- package/dist/src/execution/session/handover-tracing.js +1 -0
- package/dist/src/execution/session/input-queue.d.ts +3 -0
- package/dist/src/execution/session/input-queue.js +1 -1
- package/dist/src/execution/session/next-input.d.ts +3 -0
- package/dist/src/execution/session/next-input.js +1 -1
- package/dist/src/execution/session/prewarm-step.d.ts +13 -0
- package/dist/src/execution/session/prewarm-step.js +1 -0
- package/dist/src/execution/session/program.d.ts +4 -1
- package/dist/src/execution/session/program.js +1 -1
- package/dist/src/execution/session/state-cursor.d.ts +11 -0
- package/dist/src/execution/session/state-cursor.js +1 -1
- package/dist/src/execution/session/timeout-control.d.ts +4 -0
- package/dist/src/execution/session/timeout-control.js +1 -1
- package/dist/src/execution/session/turn-control.d.ts +5 -2
- package/dist/src/execution/session/turn-control.js +1 -1
- package/dist/src/execution/session/turn-step-types.d.ts +2 -0
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn.d.ts +1 -0
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/session-inbox/inbox.d.ts +17 -1
- package/dist/src/execution/session-inbox/inbox.js +1 -1
- package/dist/src/execution/session-inbox/protocol.d.ts +2 -1
- package/dist/src/execution/session-inbox/protocol.js +1 -1
- package/dist/src/execution/session-inbox/resume.d.ts +2 -1
- package/dist/src/execution/session-inbox/resume.js +1 -1
- package/dist/src/execution/session-prewarm.d.ts +8 -0
- package/dist/src/execution/session-prewarm.js +1 -0
- package/dist/src/execution/skills/instructions.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/execution/tools/workflow/body.js +1 -1
- package/dist/src/execution/tools/workflow/step-context.d.ts +11 -0
- package/dist/src/execution/tools/workflow/step-execution.js +1 -1
- package/dist/src/execution/tools/workflow/step.js +1 -1
- package/dist/src/execution/workflow-runtime.js +1 -1
- package/dist/src/extensions/git/extension/lib/github-shell-schema.js +1 -1
- package/dist/src/framework/sources/modules/sandbox.d.ts +1 -1
- package/dist/src/harness/attachment-staging.d.ts +3 -7
- package/dist/src/harness/attachment-staging.js +1 -1
- package/dist/src/harness/hitl/index.d.ts +2 -1
- package/dist/src/harness/hitl/index.js +1 -1
- package/dist/src/harness/hitl/view.d.ts +1 -0
- package/dist/src/harness/hitl/view.js +1 -0
- package/dist/src/harness/model-call/run.js +1 -1
- package/dist/src/harness/semantic-errors/rules/sandbox.d.ts +3 -5
- package/dist/src/harness/semantic-errors/rules/sandbox.js +1 -1
- package/dist/src/harness/step/prompt.js +1 -1
- package/dist/src/harness/tool-history-repair.d.ts +9 -0
- package/dist/src/harness/tool-history-repair.js +1 -0
- package/dist/src/harness/tool-model-output.d.ts +19 -3
- package/dist/src/harness/tool-model-output.js +1 -1
- package/dist/src/internal/application/compiled-artifacts.js +8 -4
- package/dist/src/internal/application/optional-package-import.d.ts +10 -0
- package/dist/src/internal/application/optional-package-import.js +1 -1
- package/dist/src/internal/application/stamped-package-version.js +1 -1
- package/dist/src/internal/attachments/limited-read.d.ts +2 -2
- package/dist/src/internal/authored-module-build-options.d.ts +6 -0
- package/dist/src/internal/authored-module-build-options.js +1 -1
- package/dist/src/internal/authored-module-cache.d.ts +10 -0
- package/dist/src/internal/authored-module-cache.js +1 -0
- package/dist/src/internal/authored-module-graph.js +1 -1
- package/dist/src/internal/authored-module-loader.js +1 -1
- package/dist/src/internal/authored-relative-extension-resolver.js +1 -1
- package/dist/src/internal/bundler/nitro-rolldown.d.ts +3 -1
- package/dist/src/internal/bundler/nitro-rolldown.js +1 -1
- package/dist/src/internal/bundler/pseudo-packages.d.ts +11 -0
- package/dist/src/internal/bundler/pseudo-packages.js +1 -0
- package/dist/src/internal/nitro/host/build-extension.d.ts +6 -0
- package/dist/src/internal/nitro/host/build-extension.js +2 -2
- package/dist/src/internal/nitro/host/compiled-sandbox-provider-prune-plugin.d.ts +3 -1
- package/dist/src/internal/nitro/host/compiled-sandbox-provider-prune-plugin.js +3 -5
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts +2 -3
- package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.d.ts +2 -0
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.js +1 -1
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -1
- package/dist/src/internal/nitro/host/dev-build-host.d.ts +83 -0
- package/dist/src/internal/nitro/host/dev-build-host.js +1 -0
- package/dist/src/internal/nitro/host/dev-build-operations.d.ts +6 -0
- package/dist/src/internal/nitro/host/dev-build-operations.js +1 -0
- package/dist/src/internal/nitro/host/dev-build-process.d.ts +1 -0
- package/dist/src/internal/nitro/host/dev-build-process.js +1 -0
- package/dist/src/internal/nitro/host/development-runtime-prune-plugin.d.ts +4 -1
- package/dist/src/internal/nitro/host/development-runtime-prune-plugin.js +3 -2
- package/dist/src/internal/nitro/host/drained-nitro-dev-server.d.ts +13 -0
- package/dist/src/internal/nitro/host/drained-nitro-dev-server.js +1 -1
- package/dist/src/internal/nitro/host/optional-engine-dependency-plugin.js +1 -1
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts +3 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js +1 -1
- package/dist/src/internal/nitro/host/sandbox-shutdown-plugin.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/host/workflow-sandbox-runtime-plugin.js +1 -1
- package/dist/src/internal/nitro/host.js +1 -1
- package/dist/src/internal/workflow/local-world-delivery-auth.d.ts +17 -0
- package/dist/src/internal/workflow/local-world-delivery-auth.js +1 -0
- package/dist/src/internal/workflow/queue-namespace.d.ts +2 -0
- package/dist/src/internal/workflow/queue-namespace.js +1 -1
- package/dist/src/internal/workflow-bundle/builder-support.d.ts +0 -1
- package/dist/src/internal/workflow-bundle/builder-support.js +2 -2
- package/dist/src/internal/workflow-bundle/builder.js +2 -2
- package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +1 -1
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts +1 -1
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +1 -1
- package/dist/src/protocol/prewarm-session.d.ts +14 -0
- package/dist/src/protocol/prewarm-session.js +1 -0
- package/dist/src/protocol/routes.d.ts +2 -2
- package/dist/src/public/channels/discord/authorization.d.ts +45 -0
- package/dist/src/public/channels/discord/authorization.js +3 -0
- package/dist/src/public/channels/discord/defaults.d.ts +14 -3
- package/dist/src/public/channels/discord/defaults.js +2 -2
- package/dist/src/public/channels/discord/discordChannel.d.ts +15 -1
- package/dist/src/public/channels/discord/discordChannel.js +1 -1
- package/dist/src/public/channels/discord/gateway/connection.d.ts +26 -0
- package/dist/src/public/channels/discord/gateway/connection.js +1 -0
- package/dist/src/public/channels/discord/gateway/forwarder.d.ts +14 -0
- package/dist/src/public/channels/discord/gateway/forwarder.js +1 -0
- package/dist/src/public/channels/discord/gateway/index.d.ts +59 -0
- package/dist/src/public/channels/discord/gateway/index.js +1 -0
- package/dist/src/public/channels/discord/inbound.d.ts +10 -3
- package/dist/src/public/channels/discord/inbound.js +2 -2
- package/dist/src/public/channels/discord/index.d.ts +3 -2
- package/dist/src/public/channels/discord/index.js +1 -1
- package/dist/src/public/channels/discord/messages.d.ts +116 -0
- package/dist/src/public/channels/discord/messages.js +2 -0
- package/dist/src/public/channels/github/checkout.js +1 -1
- package/dist/src/public/channels/linq/linqChannel.d.ts +4 -1
- package/dist/src/public/channels/linq/linqChannel.js +1 -1
- package/dist/src/public/channels/photon/photonIMessageChannel.js +1 -1
- package/dist/src/public/channels/same-environment-oidc.d.ts +7 -0
- package/dist/src/public/channels/same-environment-oidc.js +1 -0
- package/dist/src/public/definitions/channel.js +1 -1
- package/dist/src/public/definitions/sandbox.d.ts +1 -1
- package/dist/src/public/next/server.js +1 -1
- package/dist/src/public/sandbox/docker-sandbox.d.ts +6 -1
- package/dist/src/public/sandbox/docker.d.ts +1 -8
- package/dist/src/public/sandbox/index.d.ts +3 -3
- package/dist/src/public/sandbox/just-bash-sandbox.d.ts +87 -7
- package/dist/src/public/sandbox/just-bash.d.ts +1 -1
- package/dist/src/public/sandbox/provider.d.ts +5 -1
- package/dist/src/public/sandbox/provider.js +1 -1
- package/dist/src/public/sandbox/vercel-sandbox.d.ts +16 -9
- package/dist/src/public/sandbox/vercel.d.ts +0 -1
- package/dist/src/public/sandbox/vercel.js +1 -1
- package/dist/src/public/tools/agent.d.ts +8 -1
- package/dist/src/public/tools/agent.js +1 -1
- package/dist/src/react/use-eve-agent.d.ts +1 -1
- package/dist/src/runtime/agent/resolve-model.js +1 -1
- package/dist/src/runtime/connections/openapi-client.d.ts +2 -0
- package/dist/src/runtime/connections/openapi-client.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-channel.js +1 -1
- package/dist/src/runtime/resolve-sandbox.js +1 -1
- package/dist/src/runtime/sandbox/prepared-artifacts.js +1 -1
- package/dist/src/runtime/sandbox/registry.d.ts +2 -0
- package/dist/src/runtime/sandbox/registry.js +1 -1
- package/dist/src/runtime/subagents/workflow.d.ts +6 -0
- package/dist/src/runtime/subagents/workflow.js +1 -1
- package/dist/src/runtime/workspace/seed-files.d.ts +9 -12
- package/dist/src/runtime/workspace/seed-files.js +1 -1
- package/dist/src/runtime/workspace/spec.d.ts +1 -1
- package/dist/src/runtime/workspace/spec.js +1 -1
- package/dist/src/runtime/workspace/types.d.ts +2 -6
- package/dist/src/sandbox/provider.d.ts +185 -0
- package/dist/src/sandbox/provider.js +1 -0
- package/dist/src/sandbox/providers/default.d.ts +20 -19
- package/dist/src/sandbox/providers/default.js +1 -1
- package/dist/src/sandbox/providers/docker.d.ts +5 -2
- package/dist/src/sandbox/providers/docker.js +1 -1
- package/dist/src/sandbox/providers/just-bash.d.ts +4 -3
- package/dist/src/sandbox/providers/just-bash.js +1 -1
- package/dist/src/sandbox/providers/vercel.d.ts +4 -10
- package/dist/src/sandbox/providers/vercel.js +1 -1
- package/dist/src/sandbox/providers.d.ts +0 -1
- package/dist/src/sandbox/providers.js +1 -1
- package/dist/src/sandbox/state.d.ts +61 -0
- package/dist/src/sandbox/state.js +1 -1
- package/dist/src/self-modification/deployed-sandbox.d.ts +4 -9
- package/dist/src/self-modification/deployed-sandbox.js +1 -1
- package/dist/src/self-modification/filesystem.d.ts +3 -3
- package/dist/src/self-modification/remote/config.d.ts +2 -2
- package/dist/src/self-modification/remote/config.js +1 -1
- package/dist/src/self-modification/setup.d.ts +0 -1
- package/dist/src/self-modification/setup.js +8 -8
- package/dist/src/setup/integrations/discord/api.d.ts +7 -0
- package/dist/src/setup/integrations/discord/api.js +1 -1
- package/dist/src/setup/integrations/discord/daemon.d.ts +18 -0
- package/dist/src/setup/integrations/discord/daemon.js +21 -0
- package/dist/src/setup/integrations/discord/setup.d.ts +24 -4
- package/dist/src/setup/integrations/discord/setup.js +5 -4
- package/dist/src/setup/integrations/self-modification/setup.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/setup/scaffold/update/web-options.js +1 -1
- package/dist/src/setup/scaffold/version-tokens.d.ts +0 -1
- package/dist/src/setup/scaffold/version-tokens.js +1 -1
- package/dist/src/shared/agent-definition.d.ts +2 -0
- package/dist/src/shared/built-server-start-failure.d.ts +12 -0
- package/dist/src/shared/built-server-start-failure.js +3 -0
- package/dist/src/shared/framework-eve-server.d.ts +2 -0
- package/dist/src/shared/framework-eve-server.js +2 -2
- package/dist/src/shared/sandbox-environment.d.ts +4 -10
- package/dist/src/shared/sandbox-environment.js +1 -1
- package/dist/src/shared/sandbox-network-policy.d.ts +45 -9
- package/dist/src/shared/sandbox-provider.d.ts +0 -103
- package/dist/src/shared/sandbox-provider.js +1 -1
- package/dist/src/shared/sandbox-recorded-data-error.d.ts +4 -0
- package/dist/src/shared/sandbox-recorded-data-error.js +1 -0
- package/dist/src/shared/sandbox-session-gone-error.d.ts +12 -0
- package/dist/src/shared/sandbox-session-gone-error.js +1 -0
- package/dist/src/shared/sandbox-session.d.ts +97 -83
- package/dist/src/shared/sandbox-template-error.d.ts +19 -4
- package/dist/src/shared/sandbox-template-error.js +1 -1
- package/dist/src/shared/sandbox-tool-session-error.d.ts +4 -0
- package/dist/src/shared/sandbox-tool-session-error.js +1 -0
- package/dist/src/shared/skill-package.js +1 -1
- package/dist/src/shared/skill-paths.d.ts +4 -5
- package/dist/src/shared/skill-paths.js +2 -2
- package/dist/src/shared/workflow-sandbox.d.ts +4 -41
- package/dist/src/shared/workflow-sandbox.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.d.ts +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/definition.js +1 -1
- package/dist/src/tools/durable-callbacks.d.ts +5 -1
- package/dist/src/tools/durable-callbacks.js +1 -1
- package/dist/src/tools/dynamic.d.ts +3 -3
- package/dist/src/tools/model-output.d.ts +23 -5
- package/dist/src/tools/model-output.js +1 -1
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/glob.js +1 -1
- package/dist/src/tools/provided/grep.js +1 -1
- package/dist/src/tools/provided/read-file.js +1 -1
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/dist/src/tools/provided/workflow.js +1 -1
- package/dist/src/tools/provided/write-file.js +1 -1
- package/dist/src/tools/workflow-definition.d.ts +19 -4
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.d.ts +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/channels/custom.mdx +3 -3
- package/docs/channels/discord.mdx +279 -7
- package/docs/channels/eve.mdx +13 -2
- package/docs/channels/linq.mdx +2 -2
- package/docs/channels/mcp.mdx +2 -2
- package/docs/channels/overview.mdx +1 -1
- package/docs/channels/photon.mdx +1 -1
- package/docs/concepts/built-in-tools.md +31 -8
- package/docs/concepts/execution-model-and-durability.mdx +6 -101
- package/docs/concepts/security-model.md +2 -0
- package/docs/concepts/sessions-runs-and-streaming.md +44 -36
- package/docs/connections/openapi.mdx +2 -0
- package/docs/evals/overview.mdx +1 -1
- package/docs/evals/reporters.mdx +5 -5
- package/docs/evals/running.mdx +19 -1
- package/docs/guides/client/messages.mdx +1 -1
- package/docs/guides/deployment/overview.md +4 -4
- package/docs/guides/deployment/self-hosting.md +50 -1
- package/docs/guides/dev-tui.md +1 -1
- package/docs/guides/dynamic-capabilities.md +2 -2
- package/docs/guides/frontend/overview.mdx +34 -10
- package/docs/guides/instrumentation/agent-runs.mdx +16 -0
- package/docs/guides/instrumentation/otel.mdx +23 -0
- package/docs/guides/self-modification.md +1 -1
- package/docs/guides/session-context.md +1 -1
- package/docs/instructions.mdx +1 -1
- package/docs/meta.json +1 -0
- package/docs/reference/agent-files.md +4 -4
- package/docs/reference/cli.md +24 -17
- package/docs/reference/typescript-api.md +9 -3
- package/docs/sandbox/custom-providers.mdx +254 -0
- package/docs/sandbox/default.mdx +71 -4
- package/docs/sandbox/docker.mdx +15 -3
- package/docs/sandbox/index.mdx +32 -106
- package/docs/sandbox/just-bash.mdx +54 -0
- package/docs/sandbox/meta.json +9 -1
- package/docs/sandbox/troubleshooting.mdx +215 -0
- package/docs/sandbox/vercel.mdx +48 -7
- package/docs/skills.mdx +1 -1
- package/docs/subagents/index.mdx +2 -2
- package/docs/tools/overview.mdx +20 -1
- package/docs/tools/workflows.mdx +73 -5
- package/docs/tutorial/run-analysis.mdx +2 -2
- package/docs/use-cases.mdx +250 -0
- package/package.json +14 -20
- package/dist/src/compiled/@ai-sdk/code-mode/_run.d.ts +0 -1
- package/dist/src/compiled/@ai-sdk/code-mode/index.d.ts +0 -325
- package/dist/src/compiled/@ai-sdk/code-mode/index.js +0 -660
- package/dist/src/compiled/_chunks/workflow/dist-CyBgVS7g.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-T5NnW-0k.js +0 -3
- package/dist/src/compiled/_chunks/workflow/helpers-DlLD3ov_.js +0 -1
- package/dist/src/compiled/_chunks/workflow/private-tQUuwBoQ.js +0 -1
- package/dist/src/compiled/_chunks/workflow/resume-hook-DMsV_b4n.js +0 -1
- package/dist/src/compiled/_chunks/workflow/serialization-DPdYS_w2.js +0 -16
- package/dist/src/compiled/_chunks/workflow/sleep-BY6leHh8.js +0 -1
- package/dist/src/compiled/_chunks/workflow/workflow-routes-CwqB063q.js +0 -1
- package/dist/src/execution/sandbox/active-handles.d.ts +0 -32
- package/dist/src/execution/sandbox/active-handles.js +0 -1
- package/dist/src/execution/sandbox/bindings/docker-session.d.ts +0 -6
- package/dist/src/execution/sandbox/bindings/docker-session.js +0 -2
- package/dist/src/execution/sandbox/bindings/immutable-resources.d.ts +0 -15
- package/dist/src/execution/sandbox/bindings/immutable-resources.js +0 -2
- package/dist/src/execution/sandbox/bindings/microsandbox-create.d.ts +0 -12
- package/dist/src/execution/sandbox/bindings/microsandbox-create.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-lifecycle.d.ts +0 -42
- package/dist/src/execution/sandbox/bindings/microsandbox-lifecycle.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-metadata.d.ts +0 -29
- package/dist/src/execution/sandbox/bindings/microsandbox-metadata.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-network.d.ts +0 -18
- package/dist/src/execution/sandbox/bindings/microsandbox-network.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-options.d.ts +0 -37
- package/dist/src/execution/sandbox/bindings/microsandbox-options.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-platform.d.ts +0 -21
- package/dist/src/execution/sandbox/bindings/microsandbox-platform.js +0 -21
- package/dist/src/execution/sandbox/bindings/microsandbox-process.d.ts +0 -3
- package/dist/src/execution/sandbox/bindings/microsandbox-process.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-provider-state.d.ts +0 -11
- package/dist/src/execution/sandbox/bindings/microsandbox-provider-state.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-runtime.d.ts +0 -82
- package/dist/src/execution/sandbox/bindings/microsandbox-runtime.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox-templates.d.ts +0 -12
- package/dist/src/execution/sandbox/bindings/microsandbox-templates.js +0 -1
- package/dist/src/execution/sandbox/bindings/microsandbox.d.ts +0 -16
- package/dist/src/execution/sandbox/bindings/microsandbox.js +0 -1
- package/dist/src/execution/sandbox/provider-host-development.d.ts +0 -2
- package/dist/src/execution/sandbox/provider-host-development.js +0 -1
- package/dist/src/execution/sandbox/provider-host.d.ts +0 -2
- package/dist/src/execution/sandbox/provider-host.js +0 -1
- package/dist/src/execution/tool-session/sandbox.d.ts +0 -22
- package/dist/src/execution/tool-session/sandbox.js +0 -1
- package/dist/src/public/sandbox/microsandbox-sandbox.d.ts +0 -48
- package/dist/src/public/sandbox/microsandbox-sandbox.js +0 -1
- package/dist/src/public/sandbox/microsandbox.d.ts +0 -9
- package/dist/src/public/sandbox/microsandbox.js +0 -1
- package/dist/src/sandbox/providers/microsandbox.d.ts +0 -12
- package/dist/src/sandbox/providers/microsandbox.js +0 -1
- package/docs/sandbox/microsandbox.mdx +0 -31
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Use Cases"
|
|
3
|
+
description: "The two most common use cases for eve are business agents that work for your own company and agents you ship to customers as a product."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
eve gives you everything you need for production agents. The two most common use cases for eve are business agents that work for your own company and agents you ship to customers as a product.
|
|
7
|
+
|
|
8
|
+
<UseCaseSummaries>
|
|
9
|
+
<UseCaseSummary
|
|
10
|
+
audience="For your team"
|
|
11
|
+
title="Business agents"
|
|
12
|
+
href="#business-agents"
|
|
13
|
+
channels={["slack", "teams", "github", "linear", "web"]}
|
|
14
|
+
>
|
|
15
|
+
Automate a company function, like analytics, a software factory, marketing, or finance.
|
|
16
|
+
</UseCaseSummary>
|
|
17
|
+
<UseCaseSummary
|
|
18
|
+
audience="For your customers"
|
|
19
|
+
title="Agent as a Service (AaaS)"
|
|
20
|
+
href="#agent-as-a-service-aaas"
|
|
21
|
+
channels={["imessage", "whatsapp", "telegram", "discord", "web"]}
|
|
22
|
+
>
|
|
23
|
+
Build multi-tenant agentic applications that scale as you grow.
|
|
24
|
+
</UseCaseSummary>
|
|
25
|
+
</UseCaseSummaries>
|
|
26
|
+
|
|
27
|
+
## Business agents
|
|
28
|
+
|
|
29
|
+
A business agent takes on work for teams inside your company. The most common are software factories that plan, build, and review code alongside engineers, and company brains that answer employees' questions from internal data. Employees reach the agent in Slack, Microsoft Teams, or GitHub, and it acts on the company's own systems and data.
|
|
30
|
+
|
|
31
|
+
<TemplateCards>
|
|
32
|
+
<TemplateCard title="Software factory" template="eve-software-factory-template">
|
|
33
|
+
Agents plan features, open pull requests, review code, and respond to incidents alongside an
|
|
34
|
+
engineering team.
|
|
35
|
+
</TemplateCard>
|
|
36
|
+
<TemplateCard title="Company brain" template="eve-company-brain-template">
|
|
37
|
+
One agent holds the company's skills, tools, and approved connections, reachable where employees
|
|
38
|
+
work, with each employee's own identity and connections.
|
|
39
|
+
</TemplateCard>
|
|
40
|
+
<TemplateCard
|
|
41
|
+
title="Marketing team"
|
|
42
|
+
template="marketing-team-eve-template"
|
|
43
|
+
label="Marketing team"
|
|
44
|
+
>
|
|
45
|
+
A lead agent routes work to specialists for positioning, long-form content, social, SEO, and
|
|
46
|
+
email, then publishes through Notion, Typefully, and Resend.
|
|
47
|
+
</TemplateCard>
|
|
48
|
+
</TemplateCards>
|
|
49
|
+
|
|
50
|
+
### How eve supports business agents
|
|
51
|
+
|
|
52
|
+
An eve agent lives in [your repository](/docs/concepts/project-structure), so it is reviewed, deployed, and governed like the rest of your stack.
|
|
53
|
+
|
|
54
|
+
<Capabilities>
|
|
55
|
+
<Capability
|
|
56
|
+
icon="channels"
|
|
57
|
+
title="Meet employees where they work"
|
|
58
|
+
href="/docs/channels/overview"
|
|
59
|
+
link="Channels"
|
|
60
|
+
>
|
|
61
|
+
One agent serves Slack, Microsoft Teams, GitHub, Linear, and your own web apps, with a session
|
|
62
|
+
for every conversation.
|
|
63
|
+
</Capability>
|
|
64
|
+
<Capability
|
|
65
|
+
icon="observability"
|
|
66
|
+
title="Govern and audit every run"
|
|
67
|
+
href="/docs/observability/instrumentation"
|
|
68
|
+
link="Observability"
|
|
69
|
+
>
|
|
70
|
+
OpenTelemetry traces and Agent Runs record every session, model call, and tool call, so you can
|
|
71
|
+
see what an agent did and why.
|
|
72
|
+
</Capability>
|
|
73
|
+
<Capability
|
|
74
|
+
icon="identity"
|
|
75
|
+
title="Use your identity provider"
|
|
76
|
+
href="/docs/guides/auth-and-route-protection"
|
|
77
|
+
link="Identity and access"
|
|
78
|
+
>
|
|
79
|
+
Verify callers with any OIDC issuer, JWTs, or your own authenticator. Each connection then acts
|
|
80
|
+
as the agent itself or on behalf of the signed-in user.
|
|
81
|
+
</Capability>
|
|
82
|
+
<Capability
|
|
83
|
+
icon="models"
|
|
84
|
+
title="Switch models without a code rewrite"
|
|
85
|
+
href="/docs/agent-config"
|
|
86
|
+
link="Models"
|
|
87
|
+
>
|
|
88
|
+
Changing models is a one-line edit in agent.ts, and requests can fall back to another provider
|
|
89
|
+
on failure.
|
|
90
|
+
</Capability>
|
|
91
|
+
<Capability
|
|
92
|
+
icon="connections"
|
|
93
|
+
title="Connect to approved services"
|
|
94
|
+
href="/docs/connections"
|
|
95
|
+
link="Connections"
|
|
96
|
+
>
|
|
97
|
+
Expose the MCP and OpenAPI services your IT team approves. Credentials stay in the runtime, and
|
|
98
|
+
the model never sees them.
|
|
99
|
+
</Capability>
|
|
100
|
+
<Capability
|
|
101
|
+
icon="evals"
|
|
102
|
+
title="Evaluate agent responses"
|
|
103
|
+
href="/docs/evals/overview"
|
|
104
|
+
link="Evals"
|
|
105
|
+
>
|
|
106
|
+
Evals are automated tests that run the agent through real turns and score the result with code
|
|
107
|
+
checks or a model judge, so you catch regressions when a prompt, tool, or model changes.
|
|
108
|
+
</Capability>
|
|
109
|
+
<Capability
|
|
110
|
+
icon="tools"
|
|
111
|
+
title="Put deterministic steps in the loop"
|
|
112
|
+
href="/docs/tools/workflows"
|
|
113
|
+
link="Workflow tools"
|
|
114
|
+
>
|
|
115
|
+
Tools are typed TypeScript functions the model chooses when to call. When a process must run the
|
|
116
|
+
same way every time, use a workflow tool instead. Its code fixes the order of steps, calls
|
|
117
|
+
subagents exactly where you say, and waits durably for approvals or webhooks between steps.
|
|
118
|
+
</Capability>
|
|
119
|
+
<Capability
|
|
120
|
+
icon="sandbox"
|
|
121
|
+
title="Run commands in sandboxed compute"
|
|
122
|
+
href="/docs/sandbox"
|
|
123
|
+
link="Sandbox"
|
|
124
|
+
>
|
|
125
|
+
Each session gets an isolated filesystem and shell for scripts, repositories, and generated
|
|
126
|
+
files.
|
|
127
|
+
</Capability>
|
|
128
|
+
<Capability
|
|
129
|
+
icon="approval"
|
|
130
|
+
title="Keep a human in the loop"
|
|
131
|
+
href="/docs/human-in-the-loop"
|
|
132
|
+
link="Human-in-the-loop"
|
|
133
|
+
>
|
|
134
|
+
Sessions pause while an approval is pending and resume durably when it resolves. A decision
|
|
135
|
+
model can auto-approve routine tool calls.
|
|
136
|
+
</Capability>
|
|
137
|
+
</Capabilities>
|
|
138
|
+
|
|
139
|
+
## Agent as a Service (AaaS)
|
|
140
|
+
|
|
141
|
+
In AaaS, the agent is the product. One multi-tenant deployment serves many customers, and each of them trusts it with their work over long stretches of time. It has to serve every user durably and keep each tenant's data and identity separate from the next.
|
|
142
|
+
|
|
143
|
+
<TemplateCards>
|
|
144
|
+
<TemplateCard title="Web chat" template="eve-chat-template">
|
|
145
|
+
A Next.js chat app with sign-in, persisted conversations, and long-term memory for each user.
|
|
146
|
+
</TemplateCard>
|
|
147
|
+
<TemplateCard title="iMessage agent" template="openinstinct-eve-template" label="iMessage">
|
|
148
|
+
A multi-tenant iMessage service with user accounts, scoped memory, an encrypted vault, and cloud
|
|
149
|
+
browser automation.
|
|
150
|
+
</TemplateCard>
|
|
151
|
+
<TemplateCard title="Voice agent" template="eve-voice-template">
|
|
152
|
+
Users talk to the agent in the browser while it runs tools, asks for approvals, and keeps
|
|
153
|
+
durable state.
|
|
154
|
+
</TemplateCard>
|
|
155
|
+
</TemplateCards>
|
|
156
|
+
|
|
157
|
+
### How eve supports AaaS
|
|
158
|
+
|
|
159
|
+
Each end user gets their own [sessions](/docs/concepts/sessions-runs-and-streaming) and connections, running on the same agent project you deploy once.
|
|
160
|
+
|
|
161
|
+
<Capabilities>
|
|
162
|
+
<Capability
|
|
163
|
+
icon="tenancy"
|
|
164
|
+
title="Isolate every tenant"
|
|
165
|
+
href="/docs/patterns/multi-tenant-auth"
|
|
166
|
+
link="Multi-tenancy"
|
|
167
|
+
>
|
|
168
|
+
Bind memory, connection credentials, and approval policy to the authenticated tenant and user,
|
|
169
|
+
so one customer's data and access never reach another.
|
|
170
|
+
</Capability>
|
|
171
|
+
<Capability
|
|
172
|
+
icon="dynamic"
|
|
173
|
+
title="Customize the agent per tenant"
|
|
174
|
+
href="/docs/guides/dynamic-capabilities"
|
|
175
|
+
link="Dynamic capabilities"
|
|
176
|
+
>
|
|
177
|
+
Resolve the model, tools, connections, skills, and instructions at runtime from the caller,
|
|
178
|
+
their tenant, or a feature flag, all from one deployment.
|
|
179
|
+
</Capability>
|
|
180
|
+
<Capability
|
|
181
|
+
icon="schedules"
|
|
182
|
+
title="Run work on fixed and dynamic schedules"
|
|
183
|
+
href="/docs/schedules"
|
|
184
|
+
link="Schedules"
|
|
185
|
+
>
|
|
186
|
+
Fixed cron schedules power digests and monitors with no user present. Experimental dynamic
|
|
187
|
+
schedules let users and agents create their own recurring or one-time runs at runtime.
|
|
188
|
+
</Capability>
|
|
189
|
+
<Capability
|
|
190
|
+
icon="observability"
|
|
191
|
+
title="Trace latency and every tool call"
|
|
192
|
+
href="/docs/observability/agent-runs"
|
|
193
|
+
link="Observability"
|
|
194
|
+
>
|
|
195
|
+
Traces and Agent Runs show per-turn latency and the tool calls behind each response.
|
|
196
|
+
</Capability>
|
|
197
|
+
<Capability
|
|
198
|
+
icon="models"
|
|
199
|
+
title="Route each request to the right model"
|
|
200
|
+
href="/docs/guides/decide"
|
|
201
|
+
link="Model selection"
|
|
202
|
+
>
|
|
203
|
+
Pick models per user, tenant, or feature, or let a decision model choose from your allowlist
|
|
204
|
+
automatically, to balance cost, latency, and quality.
|
|
205
|
+
</Capability>
|
|
206
|
+
<Capability
|
|
207
|
+
icon="durability"
|
|
208
|
+
title="Keep long-running sessions durable"
|
|
209
|
+
href="/docs/concepts/execution-model-and-durability"
|
|
210
|
+
link="Durable sessions"
|
|
211
|
+
>
|
|
212
|
+
Each user's session checkpoints every step, parks while it waits, and resumes on the next
|
|
213
|
+
message, even days later.
|
|
214
|
+
</Capability>
|
|
215
|
+
<Capability
|
|
216
|
+
icon="memory"
|
|
217
|
+
title="Keep long-term memory for each user"
|
|
218
|
+
href="/docs/memory"
|
|
219
|
+
link="Memory"
|
|
220
|
+
>
|
|
221
|
+
Each user gets their own long-term memory of preferences and facts. It carries across sessions,
|
|
222
|
+
stays isolated from other users, and lives in the provider you choose.
|
|
223
|
+
</Capability>
|
|
224
|
+
<Capability
|
|
225
|
+
icon="identity"
|
|
226
|
+
title="Act on behalf of each user"
|
|
227
|
+
href="/docs/connections"
|
|
228
|
+
link="User-scoped connections"
|
|
229
|
+
>
|
|
230
|
+
Connections authenticate to services like GitHub and Linear with each user's own grant, so tools
|
|
231
|
+
call them without managing tokens.
|
|
232
|
+
</Capability>
|
|
233
|
+
<Capability
|
|
234
|
+
icon="sandbox"
|
|
235
|
+
title="Run untrusted input in isolation"
|
|
236
|
+
href="/docs/sandbox"
|
|
237
|
+
link="Sandbox and subagents"
|
|
238
|
+
>
|
|
239
|
+
Each session processes user data in its own sandbox. Subagents take work that needs its own
|
|
240
|
+
prompt, tools, or sandbox.
|
|
241
|
+
</Capability>
|
|
242
|
+
</Capabilities>
|
|
243
|
+
|
|
244
|
+
## Start building
|
|
245
|
+
|
|
246
|
+
Create an agent and open the terminal UI.
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
npx eve@latest init my-agent
|
|
250
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.83.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
|
|
6
6
|
"keywords": [
|
|
@@ -262,11 +262,6 @@
|
|
|
262
262
|
"import": "./dist/src/public/sandbox/just-bash.js",
|
|
263
263
|
"default": "./dist/src/public/sandbox/just-bash.js"
|
|
264
264
|
},
|
|
265
|
-
"./sandbox/microsandbox": {
|
|
266
|
-
"types": "./dist/src/public/sandbox/microsandbox.d.ts",
|
|
267
|
-
"import": "./dist/src/public/sandbox/microsandbox.js",
|
|
268
|
-
"default": "./dist/src/public/sandbox/microsandbox.js"
|
|
269
|
-
},
|
|
270
265
|
"./sandbox/vercel": {
|
|
271
266
|
"types": "./dist/src/public/sandbox/vercel.d.ts",
|
|
272
267
|
"import": "./dist/src/public/sandbox/vercel.js",
|
|
@@ -511,6 +506,11 @@
|
|
|
511
506
|
"import": "./dist/src/public/channels/discord/index.js",
|
|
512
507
|
"default": "./dist/src/public/channels/discord/index.js"
|
|
513
508
|
},
|
|
509
|
+
"./channels/discord/gateway": {
|
|
510
|
+
"types": "./dist/src/public/channels/discord/gateway/index.d.ts",
|
|
511
|
+
"import": "./dist/src/public/channels/discord/gateway/index.js",
|
|
512
|
+
"default": "./dist/src/public/channels/discord/gateway/index.js"
|
|
513
|
+
},
|
|
514
514
|
"./channels/twilio": {
|
|
515
515
|
"types": "./dist/src/public/channels/twilio/index.d.ts",
|
|
516
516
|
"import": "./dist/src/public/channels/twilio/index.js",
|
|
@@ -561,7 +561,6 @@
|
|
|
561
561
|
"devDependencies": {
|
|
562
562
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
563
563
|
"@ai-sdk/anthropic": "^4.0.78",
|
|
564
|
-
"@ai-sdk/code-mode": "^1.0.94",
|
|
565
564
|
"@ai-sdk/google": "^4.0.93",
|
|
566
565
|
"@ai-sdk/mcp": "^2.0.73",
|
|
567
566
|
"@ai-sdk/openai": "^4.0.91",
|
|
@@ -600,12 +599,12 @@
|
|
|
600
599
|
"@vercel/sandbox": "3.3.0",
|
|
601
600
|
"@vercel/schedules": "0.0.0-alpha.11",
|
|
602
601
|
"@vercel/sdk": "1.28.8",
|
|
603
|
-
"@workflow/core": "5.2.
|
|
604
|
-
"@workflow/errors": "5.0.
|
|
602
|
+
"@workflow/core": "5.2.3",
|
|
603
|
+
"@workflow/errors": "5.0.5",
|
|
605
604
|
"@workflow/serde": "5.0.0",
|
|
606
|
-
"@workflow/world": "5.0.
|
|
607
|
-
"@workflow/world-local": "5.1.
|
|
608
|
-
"@workflow/world-vercel": "5.2.
|
|
605
|
+
"@workflow/world": "5.0.5",
|
|
606
|
+
"@workflow/world-local": "5.1.2",
|
|
607
|
+
"@workflow/world-vercel": "5.2.3",
|
|
609
608
|
"ai": "^7.0.137",
|
|
610
609
|
"chat": "4.42.0",
|
|
611
610
|
"chokidar": "5.0.0",
|
|
@@ -620,13 +619,12 @@
|
|
|
620
619
|
"just-bash": "3.1.0",
|
|
621
620
|
"just-secrets": "0.0.2",
|
|
622
621
|
"marked": "17.0.6",
|
|
623
|
-
"
|
|
624
|
-
"next": "16.3.4",
|
|
622
|
+
"next": "16.3.8",
|
|
625
623
|
"picocolors": "1.1.1",
|
|
626
624
|
"playwright-core": "1.63.0",
|
|
627
625
|
"react": "19.2.6",
|
|
628
626
|
"react-test-renderer": "19.2.6",
|
|
629
|
-
"run": "2.1.
|
|
627
|
+
"run": "2.1.8",
|
|
630
628
|
"semver": "7.8.4",
|
|
631
629
|
"svelte": "^5.0.0",
|
|
632
630
|
"turndown": "7.2.4",
|
|
@@ -642,8 +640,7 @@
|
|
|
642
640
|
"braintrust": "^3.0.0",
|
|
643
641
|
"chat": "^4.42.0",
|
|
644
642
|
"dd-trace": "^6.13.0",
|
|
645
|
-
"just-bash": "^3.1.0"
|
|
646
|
-
"microsandbox": "^0.5.0"
|
|
643
|
+
"just-bash": "^3.1.0"
|
|
647
644
|
},
|
|
648
645
|
"peerDependenciesMeta": {
|
|
649
646
|
"@opentelemetry/api": {
|
|
@@ -660,9 +657,6 @@
|
|
|
660
657
|
},
|
|
661
658
|
"just-bash": {
|
|
662
659
|
"optional": true
|
|
663
|
-
},
|
|
664
|
-
"microsandbox": {
|
|
665
|
-
"optional": true
|
|
666
660
|
}
|
|
667
661
|
},
|
|
668
662
|
"engines": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setMaxWorkers(maxWorkers?: number): void;
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { Experimental_ToolCallerTool, ModelMessage, Tool } from "ai";
|
|
2
|
-
import { setMaxWorkers as experimental_setMaxWorkers } from "./_run.js";
|
|
3
|
-
//#region src/direct-tool-call.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Allows the model to call a tool directly.
|
|
6
|
-
*
|
|
7
|
-
* Use a string instead of a Symbol to allow for serializability.
|
|
8
|
-
*/
|
|
9
|
-
export declare const DIRECT_TOOL_CALL = "AI_SDK_DIRECT_TOOL_CALL";
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/types.d.ts
|
|
12
|
-
/**
|
|
13
|
-
* Host tools made available to sandboxed code through the global `tools` object.
|
|
14
|
-
*/
|
|
15
|
-
type CodeModeToolSet = Record<string, Tool<any, any>>;
|
|
16
|
-
/**
|
|
17
|
-
* AI SDK execution metadata forwarded to nested host tool calls.
|
|
18
|
-
*/
|
|
19
|
-
interface CodeModeToolExecutionOptions {
|
|
20
|
-
toolCallId: string;
|
|
21
|
-
messages: ModelMessage[];
|
|
22
|
-
abortSignal?: AbortSignal;
|
|
23
|
-
experimental_context?: unknown;
|
|
24
|
-
context?: unknown;
|
|
25
|
-
codeModeInterrupt?: CodeModeInterruptExecutionContext;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* AI SDK tool returned by `createCodeModeTool`.
|
|
29
|
-
*/
|
|
30
|
-
type CodeModeTool = Tool<CodeModeToolInput, unknown> & {
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Input accepted by the generated code-mode tool.
|
|
35
|
-
*/
|
|
36
|
-
interface CodeModeToolInput {
|
|
37
|
-
/**
|
|
38
|
-
* JavaScript or type-stripped TypeScript source to execute.
|
|
39
|
-
*
|
|
40
|
-
* The source is wrapped in an async function, so top-level `await` and
|
|
41
|
-
* `return` are supported.
|
|
42
|
-
*/
|
|
43
|
-
js: string;
|
|
44
|
-
}
|
|
45
|
-
type ApprovalDecision = 'approved' | 'denied' | {
|
|
46
|
-
approved: boolean;
|
|
47
|
-
reason?: string;
|
|
48
|
-
};
|
|
49
|
-
interface CodeModeApprovalRequest {
|
|
50
|
-
toolName: string;
|
|
51
|
-
input: unknown;
|
|
52
|
-
toolCallId: string;
|
|
53
|
-
}
|
|
54
|
-
interface CodeModeApprovalResponse {
|
|
55
|
-
approvalId: string;
|
|
56
|
-
approved: boolean;
|
|
57
|
-
reason?: string;
|
|
58
|
-
}
|
|
59
|
-
interface CodeModeInterruptPayload {
|
|
60
|
-
kind: string;
|
|
61
|
-
[key: string]: unknown;
|
|
62
|
-
}
|
|
63
|
-
interface CodeModeInterruptResolution<TResolution = unknown> {
|
|
64
|
-
interruptId: string;
|
|
65
|
-
resolution: TResolution;
|
|
66
|
-
}
|
|
67
|
-
interface CodeModeInterruptExecutionContext<TPayload extends CodeModeInterruptPayload = CodeModeInterruptPayload, TResolution = unknown> {
|
|
68
|
-
interruptId: string;
|
|
69
|
-
payload: TPayload;
|
|
70
|
-
resolution: TResolution;
|
|
71
|
-
}
|
|
72
|
-
interface CodeModeContinuationAuth {
|
|
73
|
-
alg: 'HMAC-SHA256';
|
|
74
|
-
nonce: string;
|
|
75
|
-
issuedAtMs: number;
|
|
76
|
-
expiresAtMs: number;
|
|
77
|
-
signature: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Opaque continuation state for an interrupted code-mode invocation.
|
|
81
|
-
*
|
|
82
|
-
* @remarks
|
|
83
|
-
* The token and compatibility metadata are authenticated. Applications should
|
|
84
|
-
* persist this value without reading or modifying its fields.
|
|
85
|
-
*/
|
|
86
|
-
interface CodeModeContinuation {
|
|
87
|
-
version: 2;
|
|
88
|
-
js: string;
|
|
89
|
-
outerToolCallId: string;
|
|
90
|
-
toolNames: string[];
|
|
91
|
-
token: string;
|
|
92
|
-
pendingInterruptions: CodeModePendingInterruption[];
|
|
93
|
-
resolutions: CodeModePendingResolution[];
|
|
94
|
-
auth: CodeModeContinuationAuth;
|
|
95
|
-
}
|
|
96
|
-
interface CodeModeInterrupt<TPayload extends CodeModeInterruptPayload = CodeModeInterruptPayload> {
|
|
97
|
-
type: 'code-mode-interrupt';
|
|
98
|
-
interruptId: string;
|
|
99
|
-
toolName: string;
|
|
100
|
-
toolCallId: string;
|
|
101
|
-
outerToolCallId: string;
|
|
102
|
-
input: unknown;
|
|
103
|
-
payload: TPayload;
|
|
104
|
-
continuation: CodeModeContinuation;
|
|
105
|
-
}
|
|
106
|
-
type CodeModeUnwrappedResult = {
|
|
107
|
-
status: 'completed';
|
|
108
|
-
output: unknown;
|
|
109
|
-
} | {
|
|
110
|
-
status: 'interrupted';
|
|
111
|
-
interrupt: CodeModeInterrupt;
|
|
112
|
-
};
|
|
113
|
-
interface CodeModeApprovalInterruptPayload extends CodeModeInterruptPayload {
|
|
114
|
-
kind: 'ai-sdk-code-mode/tool-approval';
|
|
115
|
-
}
|
|
116
|
-
type CodeModeApprovalInterrupt = CodeModeInterrupt<CodeModeApprovalInterruptPayload>;
|
|
117
|
-
/**
|
|
118
|
-
* Execution limits applied to each sandbox invocation.
|
|
119
|
-
*/
|
|
120
|
-
interface CodeModeExecutionPolicy {
|
|
121
|
-
/** @defaultValue `30_000` */
|
|
122
|
-
timeoutMs?: number;
|
|
123
|
-
/** @defaultValue `64 * 1024 * 1024` */
|
|
124
|
-
memoryLimitBytes?: number;
|
|
125
|
-
/** @defaultValue `2 * 1024 * 1024` */
|
|
126
|
-
maxStackSizeBytes?: number;
|
|
127
|
-
/** @defaultValue `1024 * 1024` */
|
|
128
|
-
maxResultBytes?: number;
|
|
129
|
-
/** @defaultValue `64 * 1024` */
|
|
130
|
-
maxConsoleOutputBytes?: number;
|
|
131
|
-
/** @defaultValue `256 * 1024` */
|
|
132
|
-
maxSourceBytes?: number;
|
|
133
|
-
/** @defaultValue `1024 * 1024` */
|
|
134
|
-
maxToolInputBytes?: number;
|
|
135
|
-
/** @defaultValue `4 * 1024 * 1024` */
|
|
136
|
-
maxToolOutputBytes?: number;
|
|
137
|
-
/** @defaultValue `256` */
|
|
138
|
-
maxBridgeRequests?: number;
|
|
139
|
-
/** @defaultValue `32` */
|
|
140
|
-
maxInFlightBridgeRequests?: number;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Options used by `createCodeModeTool` and `runCodeMode`.
|
|
144
|
-
*/
|
|
145
|
-
interface CodeModeOptions {
|
|
146
|
-
executionPolicy?: CodeModeExecutionPolicy;
|
|
147
|
-
continuationSecurity?: CodeModeContinuationSecurityOptions;
|
|
148
|
-
approval?: {
|
|
149
|
-
/**
|
|
150
|
-
* @defaultValue `'callback'`
|
|
151
|
-
*/
|
|
152
|
-
mode?: 'callback' | 'interrupt';
|
|
153
|
-
onApprovalRequired?: (request: CodeModeApprovalRequest) => Promise<ApprovalDecision> | ApprovalDecision;
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Options for the code-mode tool caller used with `experimental_toolCallers`.
|
|
158
|
-
*/
|
|
159
|
-
interface CodeModeToolOptions extends CodeModeOptions {
|
|
160
|
-
/**
|
|
161
|
-
* Controls how host tools are presented to the model.
|
|
162
|
-
*
|
|
163
|
-
* - `'description'`: include host-tool signatures in the provider-visible
|
|
164
|
-
* code-mode tool description.
|
|
165
|
-
* - `'conversation'`: keep the code-mode tool definition stable and announce
|
|
166
|
-
* the current host-tool catalog in a user message.
|
|
167
|
-
*
|
|
168
|
-
* @defaultValue `'description'`
|
|
169
|
-
*/
|
|
170
|
-
toolDiscovery?: 'description' | 'conversation';
|
|
171
|
-
}
|
|
172
|
-
interface CodeModeContinuationSecurityOptions {
|
|
173
|
-
signingKey?: string | Uint8Array;
|
|
174
|
-
/**
|
|
175
|
-
* @defaultValue `60 * 60 * 1000`
|
|
176
|
-
*/
|
|
177
|
-
maxAgeMs?: number;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Input for `runCodeMode`.
|
|
181
|
-
*/
|
|
182
|
-
interface RunCodeModeInput {
|
|
183
|
-
js: string;
|
|
184
|
-
tools: CodeModeToolSet;
|
|
185
|
-
toolExecutionOptions?: Partial<CodeModeToolExecutionOptions>;
|
|
186
|
-
options?: CodeModeOptions;
|
|
187
|
-
continuation?: CodeModeContinuation;
|
|
188
|
-
interruptResolution?: CodeModeInterruptResolution;
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/code-mode-tool.d.ts
|
|
192
|
-
/**
|
|
193
|
-
* Creates an AI SDK tool that executes code-mode TypeScript in an isolated
|
|
194
|
-
* sandbox.
|
|
195
|
-
*/
|
|
196
|
-
declare function createCodeModeTool(tools: CodeModeToolSet, options?: CodeModeOptions): CodeModeTool;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a code-mode caller whose host tools are bound by the surrounding
|
|
199
|
-
* AI SDK generation call.
|
|
200
|
-
*/
|
|
201
|
-
declare function codeModeTool(options?: CodeModeToolOptions): Experimental_ToolCallerTool<CodeModeTool>;
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/approval-continuation.d.ts
|
|
204
|
-
declare function isCodeModeApprovalInterrupt(value: unknown, continuationSecurity?: CodeModeContinuationSecurityOptions): value is CodeModeApprovalInterrupt;
|
|
205
|
-
declare function continueCodeModeApproval({ interrupt, approvalResponse, tools, options, toolExecutionOptions }: {
|
|
206
|
-
interrupt: CodeModeApprovalInterrupt;
|
|
207
|
-
approvalResponse: CodeModeApprovalResponse;
|
|
208
|
-
tools: CodeModeToolSet;
|
|
209
|
-
options?: CodeModeOptions;
|
|
210
|
-
toolExecutionOptions?: Partial<CodeModeToolExecutionOptions>;
|
|
211
|
-
}): Promise<unknown>;
|
|
212
|
-
declare function toCodeModeApprovalMessages(interrupt: CodeModeApprovalInterrupt): ModelMessage[];
|
|
213
|
-
declare function getCodeModeApprovalResponse(messages: ModelMessage[], interrupt: CodeModeApprovalInterrupt): CodeModeApprovalResponse | undefined;
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/errors.d.ts
|
|
216
|
-
/**
|
|
217
|
-
* Base class for errors raised by code mode.
|
|
218
|
-
*
|
|
219
|
-
* All package-specific errors include a stable `code` string and may include
|
|
220
|
-
* structured `details` for diagnostics.
|
|
221
|
-
*/
|
|
222
|
-
export declare class CodeModeError extends Error {
|
|
223
|
-
/**
|
|
224
|
-
* Stable machine-readable error code.
|
|
225
|
-
*/
|
|
226
|
-
code: string;
|
|
227
|
-
/**
|
|
228
|
-
* Optional structured diagnostic details.
|
|
229
|
-
*/
|
|
230
|
-
readonly details?: unknown;
|
|
231
|
-
constructor(message: string, code?: string, details?: unknown);
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Raised when a sandbox invocation exceeds its timeout.
|
|
235
|
-
*/
|
|
236
|
-
export declare class CodeModeTimeoutError extends CodeModeError {
|
|
237
|
-
constructor(timeoutMs: number);
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Raised when the outer AI SDK abort signal aborts a code-mode invocation.
|
|
241
|
-
*/
|
|
242
|
-
export declare class CodeModeAbortedError extends CodeModeError {
|
|
243
|
-
constructor();
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Raised when the process-global worker cap has been reached.
|
|
247
|
-
*
|
|
248
|
-
* Configure the cap with `setMaxWorkers`.
|
|
249
|
-
*/
|
|
250
|
-
export declare class CodeModeConcurrencyError extends CodeModeError {
|
|
251
|
-
constructor(maxWorkers: number);
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Raised when the provided source exceeds `executionPolicy.maxSourceBytes`.
|
|
255
|
-
*/
|
|
256
|
-
export declare class CodeModeSourceTooLargeError extends CodeModeError {
|
|
257
|
-
constructor(bytes: number, maxBytes: number);
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Raised when sandboxed code exceeds bridge request limits.
|
|
261
|
-
*/
|
|
262
|
-
export declare class CodeModeBridgeLimitError extends CodeModeError {
|
|
263
|
-
constructor(message: string, details?: unknown);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Raised when sandboxed code starts host bridge work and returns without
|
|
267
|
-
* awaiting or otherwise observing it.
|
|
268
|
-
*/
|
|
269
|
-
export declare class CodeModeDetachedBridgeRequestError extends CodeModeError {
|
|
270
|
-
constructor(message: string, details?: unknown);
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Raised when the main thread and worker protocol observes an invalid or
|
|
274
|
-
* mismatched message.
|
|
275
|
-
*/
|
|
276
|
-
export declare class CodeModeProtocolError extends CodeModeError {
|
|
277
|
-
constructor(message: string, details?: unknown);
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Base class for failures caused by nested host tool execution.
|
|
281
|
-
*/
|
|
282
|
-
export declare class CodeModeToolError extends CodeModeError {
|
|
283
|
-
constructor(message: string, details?: unknown);
|
|
284
|
-
}
|
|
285
|
-
export declare class CodeModeToolApprovalRequiredError extends CodeModeToolError {
|
|
286
|
-
constructor(toolName: string, input: unknown, toolCallId: string);
|
|
287
|
-
}
|
|
288
|
-
export declare class CodeModeToolApprovalDeniedError extends CodeModeToolError {
|
|
289
|
-
constructor(toolName: string, input: unknown, toolCallId: string, reason?: string);
|
|
290
|
-
}
|
|
291
|
-
//#endregion
|
|
292
|
-
//#region src/host-interrupt.d.ts
|
|
293
|
-
declare function requestCodeModeInterrupt<TPayload extends CodeModeInterruptPayload>(payload: TPayload): never;
|
|
294
|
-
//#endregion
|
|
295
|
-
//#region src/interrupt-continuation.d.ts
|
|
296
|
-
declare function isCodeModeInterrupt(value: unknown, continuationSecurity?: CodeModeContinuationSecurityOptions): value is CodeModeInterrupt;
|
|
297
|
-
declare function continueCodeModeInterrupt<TPayload extends CodeModeInterruptPayload = CodeModeInterruptPayload, TResolution = unknown>({ interrupt, resolution, tools, options, toolExecutionOptions }: {
|
|
298
|
-
interrupt: CodeModeInterrupt<TPayload>;
|
|
299
|
-
resolution: TResolution;
|
|
300
|
-
tools: CodeModeToolSet;
|
|
301
|
-
options?: CodeModeOptions;
|
|
302
|
-
toolExecutionOptions?: Partial<CodeModeToolExecutionOptions>;
|
|
303
|
-
}): Promise<unknown>;
|
|
304
|
-
declare function getCodeModeInterrupt(result: unknown, continuationSecurity?: CodeModeContinuationSecurityOptions): CodeModeInterrupt | undefined;
|
|
305
|
-
declare function unwrapCodeModeResult(result: unknown, continuationSecurity?: CodeModeContinuationSecurityOptions): CodeModeUnwrappedResult;
|
|
306
|
-
//#endregion
|
|
307
|
-
//#region src/run-code-mode.d.ts
|
|
308
|
-
/**
|
|
309
|
-
* Runs one code-mode invocation directly without wrapping it as an AI SDK tool.
|
|
310
|
-
*
|
|
311
|
-
* The source is executed in a fresh QuickJS context with the provided host tools
|
|
312
|
-
* and execution limits.
|
|
313
|
-
*
|
|
314
|
-
* @param input - Source code, host tools, forwarded tool execution options, and code-mode options.
|
|
315
|
-
* @returns The JSON-serializable value returned by the sandboxed program.
|
|
316
|
-
*/
|
|
317
|
-
declare function runCodeMode(input: RunCodeModeInput): Promise<unknown>;
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region src/continuation-capability.d.ts
|
|
320
|
-
declare function setCodeModeContinuationSigningKey(key?: string | Uint8Array, options?: {
|
|
321
|
-
maxAgeMs?: number;
|
|
322
|
-
}): void;
|
|
323
|
-
//#endregion
|
|
324
|
-
export { type ApprovalDecision, type CodeModeApprovalInterrupt, type CodeModeApprovalRequest, type CodeModeApprovalResponse, type CodeModeContinuation, type CodeModeContinuationSecurityOptions, type CodeModeExecutionPolicy, type CodeModeInterrupt, type CodeModeInterruptExecutionContext, type CodeModeInterruptPayload, type CodeModeInterruptResolution, type CodeModeOptions, type CodeModeTool, type CodeModeToolExecutionOptions, type CodeModeToolInput, type CodeModeToolOptions, type CodeModeToolSet, type CodeModeUnwrappedResult, type RunCodeModeInput, codeModeTool as experimental_codeModeTool, continueCodeModeApproval as experimental_continueCodeModeApproval, continueCodeModeInterrupt as experimental_continueCodeModeInterrupt, createCodeModeTool as experimental_createCodeModeTool, getCodeModeApprovalResponse as experimental_getCodeModeApprovalResponse, getCodeModeInterrupt as experimental_getCodeModeInterrupt, isCodeModeApprovalInterrupt as experimental_isCodeModeApprovalInterrupt, isCodeModeInterrupt as experimental_isCodeModeInterrupt, requestCodeModeInterrupt as experimental_requestCodeModeInterrupt, runCodeMode as experimental_runCodeMode, setCodeModeContinuationSigningKey as experimental_setCodeModeContinuationSigningKey, experimental_setMaxWorkers, toCodeModeApprovalMessages as experimental_toCodeModeApprovalMessages, unwrapCodeModeResult as experimental_unwrapCodeModeResult };
|
|
325
|
-
//# sourceMappingURL=index.d.ts.map
|