eve 0.5.4 → 0.6.0-beta.3
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 +15 -0
- package/LICENSE +2 -2
- package/NOTICE +5 -0
- package/README.md +120 -108
- package/bin/eve.d.ts +66 -0
- package/bin/eve.js +285 -0
- package/dist/docs/public/README.md +89 -0
- package/dist/docs/public/advanced/auth-and-route-protection.md +270 -0
- package/dist/docs/public/advanced/context-control.md +109 -0
- package/dist/docs/public/advanced/default-harness.md +94 -0
- package/dist/docs/public/advanced/deployment.md +113 -0
- package/dist/docs/public/advanced/dev-tui.md +37 -0
- package/dist/docs/public/advanced/dynamic-capabilities.md +129 -0
- package/dist/docs/public/advanced/dynamic-workflows.md +55 -0
- package/dist/docs/public/advanced/evals.md +121 -0
- package/dist/docs/public/advanced/execution-model-and-durability.md +48 -0
- package/dist/docs/public/advanced/hooks.md +154 -0
- package/dist/docs/public/advanced/instrumentation.md +165 -0
- package/dist/docs/public/advanced/meta.json +21 -0
- package/dist/docs/public/advanced/remote-agents.md +60 -0
- package/dist/docs/public/advanced/security-model.md +79 -0
- package/dist/docs/public/advanced/session-context.md +149 -0
- package/dist/docs/public/advanced/sessions-runs-and-streaming.md +127 -0
- package/dist/docs/public/advanced/state.md +62 -0
- package/dist/docs/public/agent-config.md +80 -0
- package/dist/docs/public/channels/custom.mdx +275 -0
- package/dist/docs/public/channels/discord.mdx +74 -0
- package/dist/docs/public/channels/eve.mdx +82 -0
- package/dist/docs/public/channels/github.mdx +56 -0
- package/dist/docs/public/channels/linear.mdx +168 -0
- package/dist/docs/public/channels/meta.json +15 -0
- package/dist/docs/public/channels/overview.mdx +53 -0
- package/dist/docs/public/channels/slack.mdx +92 -0
- package/dist/docs/public/channels/teams.mdx +55 -0
- package/dist/docs/public/channels/telegram.mdx +56 -0
- package/dist/docs/public/channels/twilio.mdx +62 -0
- package/dist/docs/public/client/continuations.mdx +126 -0
- package/dist/docs/public/client/messages.mdx +152 -0
- package/dist/docs/public/client/meta.json +4 -0
- package/dist/docs/public/client/output-schema.mdx +135 -0
- package/dist/docs/public/client/overview.mdx +116 -0
- package/dist/docs/public/client/streaming.mdx +143 -0
- package/dist/docs/public/connections.mdx +196 -0
- package/dist/docs/public/frontend/meta.json +4 -0
- package/dist/docs/public/frontend/nextjs.mdx +79 -0
- package/dist/docs/public/frontend/nuxt.mdx +82 -0
- package/dist/docs/public/frontend/overview.mdx +234 -0
- package/dist/docs/public/frontend/sveltekit.mdx +94 -0
- package/dist/docs/public/frontend/use-eve-agent-svelte.mdx +111 -0
- package/dist/docs/public/frontend/use-eve-agent-vue.mdx +123 -0
- package/dist/docs/public/getting-started.mdx +176 -0
- package/dist/docs/public/instructions.mdx +58 -0
- package/dist/docs/public/introduction.md +102 -0
- package/dist/docs/public/meta.json +22 -0
- package/dist/docs/public/reference/cli.md +123 -0
- package/dist/docs/public/reference/faqs.md +48 -0
- package/dist/docs/public/reference/meta.json +4 -0
- package/dist/docs/public/reference/project-layout.md +111 -0
- package/dist/docs/public/reference/typescript-api.md +97 -0
- package/dist/docs/public/sandbox.mdx +198 -0
- package/dist/docs/public/schedules.mdx +104 -0
- package/dist/docs/public/skills.mdx +79 -0
- package/dist/docs/public/subagents.mdx +76 -0
- package/dist/docs/public/tools.mdx +111 -0
- package/dist/docs/public/tutorial/connect-a-warehouse.mdx +47 -0
- package/dist/docs/public/tutorial/first-agent.mdx +61 -0
- package/dist/docs/public/tutorial/guard-the-spend.mdx +59 -0
- package/dist/docs/public/tutorial/how-it-runs.mdx +24 -0
- package/dist/docs/public/tutorial/meta.json +14 -0
- package/dist/docs/public/tutorial/query-sample-data.mdx +81 -0
- package/dist/docs/public/tutorial/remember-definitions.mdx +72 -0
- package/dist/docs/public/tutorial/run-analysis.mdx +86 -0
- package/dist/docs/public/tutorial/ship-it.mdx +100 -0
- package/dist/docs/public/tutorial/team-playbooks.mdx +63 -0
- package/dist/src/_virtual/_rolldown/runtime.js +1 -0
- package/dist/src/channel/adapter-context.d.ts +11 -0
- package/dist/src/channel/adapter-context.js +1 -0
- package/dist/src/channel/adapter.d.ts +160 -0
- package/dist/src/channel/adapter.js +1 -0
- package/dist/src/channel/compiled-channel.d.ts +21 -0
- package/dist/src/channel/compiled-channel.js +1 -0
- package/dist/src/channel/cross-channel-receive.d.ts +70 -0
- package/dist/src/channel/cross-channel-receive.js +2 -0
- package/dist/src/channel/http.d.ts +29 -0
- package/dist/src/channel/http.js +1 -0
- package/dist/src/channel/instrumentation.d.ts +10 -0
- package/dist/src/channel/instrumentation.js +1 -0
- package/dist/src/channel/receive-target.d.ts +17 -0
- package/dist/src/channel/receive-target.js +1 -0
- package/dist/src/channel/resolve-text.d.ts +19 -0
- package/dist/src/channel/resolve-text.js +1 -0
- package/dist/src/channel/routes.d.ts +217 -0
- package/dist/src/channel/routes.js +1 -0
- package/dist/src/channel/schedule.d.ts +66 -0
- package/dist/src/channel/schedule.js +1 -0
- package/dist/src/channel/send.d.ts +4 -0
- package/dist/src/channel/send.js +1 -0
- package/dist/src/channel/session-callback.d.ts +10 -0
- package/dist/src/channel/session-callback.js +1 -0
- package/dist/src/channel/session.d.ts +46 -0
- package/dist/src/channel/session.js +1 -0
- package/dist/src/channel/types.d.ts +303 -0
- package/dist/src/channel/types.js +1 -0
- package/dist/src/channel/websocket-upgrade-server.d.ts +26 -0
- package/dist/src/channel/websocket-upgrade-server.js +1 -0
- package/dist/src/chunks/use-eve-agent-9vL56Fjy.js +1195 -0
- package/dist/src/chunks/use-eve-agent-DTWI5Lji.js +1225 -0
- package/dist/src/cli/commands/channel-add-conflicts.d.ts +21 -0
- package/dist/src/cli/commands/channel-add-conflicts.js +1 -0
- package/dist/src/cli/commands/channels.d.ts +26 -0
- package/dist/src/cli/commands/channels.js +1 -0
- package/dist/src/cli/commands/info.d.ts +53 -0
- package/dist/src/cli/commands/info.js +2 -0
- package/dist/src/cli/dev/environment.d.ts +20 -0
- package/dist/src/cli/dev/environment.js +1 -0
- package/dist/src/cli/dev/repl/input-requests.d.ts +38 -0
- package/dist/src/cli/dev/repl/input-requests.js +1 -0
- package/dist/src/cli/dev/repl/input.d.ts +19 -0
- package/dist/src/cli/dev/repl/input.js +1 -0
- package/dist/src/cli/dev/repl/repl.d.ts +62 -0
- package/dist/src/cli/dev/repl/repl.js +2 -0
- package/dist/src/cli/dev/repl/terminal.d.ts +21 -0
- package/dist/src/cli/dev/repl/terminal.js +5 -0
- package/dist/src/cli/dev/tui/layout.d.ts +24 -0
- package/dist/src/cli/dev/tui/layout.js +3 -0
- package/dist/src/cli/dev/tui/markdown.d.ts +14 -0
- package/dist/src/cli/dev/tui/markdown.js +3 -0
- package/dist/src/cli/dev/tui/runner.d.ts +211 -0
- package/dist/src/cli/dev/tui/runner.js +1 -0
- package/dist/src/cli/dev/tui/terminal-frame-buffer.d.ts +21 -0
- package/dist/src/cli/dev/tui/terminal-frame-buffer.js +2 -0
- package/dist/src/cli/dev/tui/terminal-renderer.d.ts +111 -0
- package/dist/src/cli/dev/tui/terminal-renderer.js +12 -0
- package/dist/src/cli/dev/tui/terminal-text.d.ts +6 -0
- package/dist/src/cli/dev/tui/terminal-text.js +1 -0
- package/dist/src/cli/dev/tui/test/index.d.ts +11 -0
- package/dist/src/cli/dev/tui/test/index.js +1 -0
- package/dist/src/cli/dev/tui/test/mock-terminal.d.ts +28 -0
- package/dist/src/cli/dev/tui/test/mock-terminal.js +3 -0
- package/dist/src/cli/dev/tui/tui.d.ts +32 -0
- package/dist/src/cli/dev/tui/tui.js +1 -0
- package/dist/src/cli/dev/tui/types.d.ts +68 -0
- package/dist/src/cli/dev/tui/types.js +1 -0
- package/dist/src/cli/dev/url.d.ts +4 -0
- package/dist/src/cli/dev/url.js +1 -0
- package/dist/src/cli/run.d.ts +112 -0
- package/dist/src/cli/run.js +3 -0
- package/dist/src/cli/ui/output.d.ts +62 -0
- package/dist/src/cli/ui/output.js +8 -0
- package/dist/src/client/client-error.d.ts +14 -0
- package/dist/src/client/client-error.js +1 -0
- package/dist/src/client/client.d.ts +28 -0
- package/dist/src/client/client.js +1 -0
- package/dist/src/client/eve-agent-store.d.ts +89 -0
- package/dist/src/client/eve-agent-store.js +2 -0
- package/dist/src/client/index.d.ts +15 -0
- package/dist/src/client/index.js +1 -0
- package/dist/src/client/message-reducer-types.d.ts +174 -0
- package/dist/src/client/message-reducer-types.js +1 -0
- package/dist/src/client/message-reducer.d.ts +14 -0
- package/dist/src/client/message-reducer.js +1 -0
- package/dist/src/client/message-response.d.ts +42 -0
- package/dist/src/client/message-response.js +1 -0
- package/dist/src/client/ndjson.d.ts +16 -0
- package/dist/src/client/ndjson.js +3 -0
- package/dist/src/client/open-stream.d.ts +18 -0
- package/dist/src/client/open-stream.js +1 -0
- package/dist/src/client/output-schema.d.ts +12 -0
- package/dist/src/client/output-schema.js +1 -0
- package/dist/src/client/reducer.d.ts +63 -0
- package/dist/src/client/reducer.js +1 -0
- package/dist/src/client/session-utils.d.ts +29 -0
- package/dist/src/client/session-utils.js +1 -0
- package/dist/src/client/session.d.ts +49 -0
- package/dist/src/client/session.js +1 -0
- package/dist/src/client/types.d.ts +165 -0
- package/dist/src/client/types.js +1 -0
- package/dist/src/client/url.d.ts +8 -0
- package/dist/src/client/url.js +1 -0
- package/dist/src/compiled/.vendor-stamp.json +32 -0
- package/dist/src/compiled/@ai-sdk/anthropic/LICENSE +13 -0
- package/dist/src/compiled/@ai-sdk/anthropic/_provider-utils.d.ts +15 -0
- package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +1262 -0
- package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -0
- package/dist/src/compiled/@ai-sdk/google/LICENSE +13 -0
- package/dist/src/compiled/@ai-sdk/google/_provider-utils.d.ts +11 -0
- package/dist/src/compiled/@ai-sdk/google/index.d.ts +627 -0
- package/dist/src/compiled/@ai-sdk/google/index.js +11 -0
- package/dist/src/compiled/@ai-sdk/mcp/LICENSE +13 -0
- package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +37 -0
- package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -0
- package/dist/src/compiled/@ai-sdk/openai/LICENSE +13 -0
- package/dist/src/compiled/@ai-sdk/openai/_provider-utils.d.ts +15 -0
- package/dist/src/compiled/@ai-sdk/openai/index.d.ts +1296 -0
- package/dist/src/compiled/@ai-sdk/openai/index.js +11 -0
- package/dist/src/compiled/@ai-sdk/otel/LICENSE +13 -0
- package/dist/src/compiled/@ai-sdk/otel/index.d.ts +32 -0
- package/dist/src/compiled/@ai-sdk/otel/index.js +3 -0
- package/dist/src/compiled/@ai-sdk/provider/LICENSE +13 -0
- package/dist/src/compiled/@ai-sdk/provider/_json-schema.d.ts +5 -0
- package/dist/src/compiled/@ai-sdk/provider/index.d.ts +7138 -0
- package/dist/src/compiled/@ai-sdk/provider/index.js +3 -0
- package/dist/src/compiled/@chat-adapter/slack/LICENSE +9 -0
- package/dist/src/compiled/@chat-adapter/slack/_chat-adapter-shared.d.ts +9 -0
- package/dist/src/compiled/@chat-adapter/slack/_slack-web-api.d.ts +7 -0
- package/dist/src/compiled/@chat-adapter/slack/index.d.ts +950 -0
- package/dist/src/compiled/@chat-adapter/slack/index.js +48 -0
- package/dist/src/compiled/@chat-adapter/state-memory/LICENSE +9 -0
- package/dist/src/compiled/@chat-adapter/state-memory/index.d.ts +50 -0
- package/dist/src/compiled/@chat-adapter/state-memory/index.js +1 -0
- package/dist/src/compiled/@opentelemetry/api/LICENSE +201 -0
- package/dist/src/compiled/@opentelemetry/api/index.d.ts +47 -0
- package/dist/src/compiled/@opentelemetry/api/index.js +1 -0
- package/dist/src/compiled/@standard-schema/spec/LICENSE +21 -0
- package/dist/src/compiled/@standard-schema/spec/index.d.ts +119 -0
- package/dist/src/compiled/@standard-schema/spec/index.js +1 -0
- package/dist/src/compiled/@vercel/oidc/LICENSE +202 -0
- package/dist/src/compiled/@vercel/oidc/index.d.ts +21 -0
- package/dist/src/compiled/@vercel/oidc/index.js +2 -0
- package/dist/src/compiled/@vercel/sandbox/LICENSE +201 -0
- package/dist/src/compiled/@vercel/sandbox/index.d.ts +128 -0
- package/dist/src/compiled/@vercel/sandbox/index.js +108 -0
- package/dist/src/compiled/@vercel/sandbox/network-policy.d.ts +161 -0
- package/dist/src/compiled/@workflow/core/LICENSE.md +201 -0
- package/dist/src/compiled/@workflow/core/_ms.d.ts +4 -0
- package/dist/src/compiled/@workflow/core/_workflow-serde.d.ts +5 -0
- package/dist/src/compiled/@workflow/core/_workflow-utils.d.ts +8 -0
- package/dist/src/compiled/@workflow/core/attribute-changes.d.ts +7 -0
- package/dist/src/compiled/@workflow/core/capabilities.d.ts +45 -0
- package/dist/src/compiled/@workflow/core/capture-stack.d.ts +16 -0
- package/dist/src/compiled/@workflow/core/class-serialization.d.ts +31 -0
- package/dist/src/compiled/@workflow/core/classify-error.d.ts +20 -0
- package/dist/src/compiled/@workflow/core/context-errors.d.ts +27 -0
- package/dist/src/compiled/@workflow/core/context-violation-error.d.ts +97 -0
- package/dist/src/compiled/@workflow/core/create-hook.d.ts +179 -0
- package/dist/src/compiled/@workflow/core/define-hook.d.ts +68 -0
- package/dist/src/compiled/@workflow/core/describe-error.d.ts +70 -0
- package/dist/src/compiled/@workflow/core/encryption.d.ts +66 -0
- package/dist/src/compiled/@workflow/core/events-consumer.d.ts +72 -0
- package/dist/src/compiled/@workflow/core/flushable-stream.d.ts +82 -0
- package/dist/src/compiled/@workflow/core/global.d.ts +48 -0
- package/dist/src/compiled/@workflow/core/index.d.ts +20 -0
- package/dist/src/compiled/@workflow/core/index.js +2 -0
- package/dist/src/compiled/@workflow/core/log-format.d.ts +25 -0
- package/dist/src/compiled/@workflow/core/logger.d.ts +29 -0
- package/dist/src/compiled/@workflow/core/private.d.ts +135 -0
- package/dist/src/compiled/@workflow/core/private.js +1 -0
- package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +52 -0
- package/dist/src/compiled/@workflow/core/runtime/get-port-lazy.d.ts +10 -0
- package/dist/src/compiled/@workflow/core/runtime/get-world-lazy.d.ts +32 -0
- package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +105 -0
- package/dist/src/compiled/@workflow/core/runtime/replay-budget.d.ts +98 -0
- package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +77 -0
- package/dist/src/compiled/@workflow/core/runtime/run.d.ts +134 -0
- package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +50 -0
- package/dist/src/compiled/@workflow/core/runtime/start.d.ts +59 -0
- package/dist/src/compiled/@workflow/core/runtime/step-executor.d.ts +42 -0
- package/dist/src/compiled/@workflow/core/runtime/step-handler.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +42 -0
- package/dist/src/compiled/@workflow/core/runtime/world-init.d.ts +75 -0
- package/dist/src/compiled/@workflow/core/runtime/world.d.ts +32 -0
- package/dist/src/compiled/@workflow/core/runtime.d.ts +22 -0
- package/dist/src/compiled/@workflow/core/runtime.js +141 -0
- package/dist/src/compiled/@workflow/core/schemas.d.ts +15 -0
- package/dist/src/compiled/@workflow/core/serialization/client.d.ts +17 -0
- package/dist/src/compiled/@workflow/core/serialization/codec-devalue.d.ts +14 -0
- package/dist/src/compiled/@workflow/core/serialization/codec.d.ts +90 -0
- package/dist/src/compiled/@workflow/core/serialization/encryption.d.ts +33 -0
- package/dist/src/compiled/@workflow/core/serialization/errors.d.ts +34 -0
- package/dist/src/compiled/@workflow/core/serialization/format.d.ts +60 -0
- package/dist/src/compiled/@workflow/core/serialization/index.d.ts +18 -0
- package/dist/src/compiled/@workflow/core/serialization/reducers/class.d.ts +11 -0
- package/dist/src/compiled/@workflow/core/serialization/reducers/common.d.ts +16 -0
- package/dist/src/compiled/@workflow/core/serialization/reducers/step-function.d.ts +35 -0
- package/dist/src/compiled/@workflow/core/serialization/step.d.ts +17 -0
- package/dist/src/compiled/@workflow/core/serialization/types.d.ts +228 -0
- package/dist/src/compiled/@workflow/core/serialization/workflow.d.ts +29 -0
- package/dist/src/compiled/@workflow/core/serialization-format.d.ts +171 -0
- package/dist/src/compiled/@workflow/core/serialization.d.ts +344 -0
- package/dist/src/compiled/@workflow/core/set-attributes.d.ts +13 -0
- package/dist/src/compiled/@workflow/core/sleep.d.ts +33 -0
- package/dist/src/compiled/@workflow/core/source-map.d.ts +10 -0
- package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +29 -0
- package/dist/src/compiled/@workflow/core/step/get-closure-vars.d.ts +9 -0
- package/dist/src/compiled/@workflow/core/step/get-step-metadata.d.ts +42 -0
- package/dist/src/compiled/@workflow/core/step/get-workflow-metadata.d.ts +7 -0
- package/dist/src/compiled/@workflow/core/step/writable-stream.d.ts +22 -0
- package/dist/src/compiled/@workflow/core/step.d.ts +4 -0
- package/dist/src/compiled/@workflow/core/symbols.d.ts +42 -0
- package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +283 -0
- package/dist/src/compiled/@workflow/core/telemetry.d.ts +53 -0
- package/dist/src/compiled/@workflow/core/types.d.ts +20 -0
- package/dist/src/compiled/@workflow/core/util.d.ts +40 -0
- package/dist/src/compiled/@workflow/core/version.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/vm/index.d.ts +17 -0
- package/dist/src/compiled/@workflow/core/vm/uint8array-base64.d.ts +21 -0
- package/dist/src/compiled/@workflow/core/vm/uuid.d.ts +10 -0
- package/dist/src/compiled/@workflow/core/workflow/abort-controller.d.ts +65 -0
- package/dist/src/compiled/@workflow/core/workflow/create-hook.d.ts +7 -0
- package/dist/src/compiled/@workflow/core/workflow/define-hook.d.ts +10 -0
- package/dist/src/compiled/@workflow/core/workflow/get-workflow-metadata.d.ts +32 -0
- package/dist/src/compiled/@workflow/core/workflow/hook.d.ts +4 -0
- package/dist/src/compiled/@workflow/core/workflow/index.d.ts +12 -0
- package/dist/src/compiled/@workflow/core/workflow/set-attributes.d.ts +74 -0
- package/dist/src/compiled/@workflow/core/workflow/sleep.d.ts +4 -0
- package/dist/src/compiled/@workflow/core/workflow/world-init-stub.d.ts +15 -0
- package/dist/src/compiled/@workflow/core/workflow/writable-stream.d.ts +3 -0
- package/dist/src/compiled/@workflow/core/workflow.d.ts +1 -0
- package/dist/src/compiled/@workflow/core/workflow.js +1 -0
- package/dist/src/compiled/@workflow/errors/LICENSE.md +201 -0
- package/dist/src/compiled/@workflow/errors/_ms.d.ts +4 -0
- package/dist/src/compiled/@workflow/errors/error-codes.d.ts +23 -0
- package/dist/src/compiled/@workflow/errors/index.d.ts +536 -0
- package/dist/src/compiled/@workflow/errors/index.js +1 -0
- package/dist/src/compiled/@workflow/world/LICENSE.md +201 -0
- package/dist/src/compiled/@workflow/world/attributes.d.ts +110 -0
- package/dist/src/compiled/@workflow/world/events.d.ts +415 -0
- package/dist/src/compiled/@workflow/world/hooks.d.ts +72 -0
- package/dist/src/compiled/@workflow/world/index.d.ts +25 -0
- package/dist/src/compiled/@workflow/world/index.js +1 -0
- package/dist/src/compiled/@workflow/world/interfaces.d.ts +264 -0
- package/dist/src/compiled/@workflow/world/queue.d.ts +128 -0
- package/dist/src/compiled/@workflow/world/recovery.d.ts +13 -0
- package/dist/src/compiled/@workflow/world/runs.d.ts +144 -0
- package/dist/src/compiled/@workflow/world/serialization.d.ts +25 -0
- package/dist/src/compiled/@workflow/world/shared.d.ts +83 -0
- package/dist/src/compiled/@workflow/world/spec-version.d.ts +46 -0
- package/dist/src/compiled/@workflow/world/steps.d.ts +70 -0
- package/dist/src/compiled/@workflow/world/ulid.d.ts +35 -0
- package/dist/src/compiled/@workflow/world/waits.d.ts +21 -0
- package/dist/src/compiled/_chunks/node/auth-BsyzphzW.js +2 -0
- package/dist/src/compiled/_chunks/node/dist-BQYUcBqu.js +90 -0
- package/dist/src/compiled/_chunks/node/dist-BdTs18CF.js +1 -0
- package/dist/src/compiled/_chunks/node/retry-DkR2H1Y0.js +1 -0
- package/dist/src/compiled/_chunks/node/token-ORseRyWn.js +1 -0
- package/dist/src/compiled/_chunks/node/version-BGue04qw.js +1 -0
- package/dist/src/compiled/_chunks/workflow/chunk-DSjMdhoD.js +1 -0
- package/dist/src/compiled/_chunks/workflow/coerce-BTuSKQr5.js +1 -0
- package/dist/src/compiled/_chunks/workflow/compat-CG1hDp-3.js +1 -0
- package/dist/src/compiled/_chunks/workflow/core-5Woff_dW.js +65 -0
- package/dist/src/compiled/_chunks/workflow/dist-6a3viBXZ.js +3 -0
- package/dist/src/compiled/_chunks/workflow/dist-D0jyrm7a.js +1 -0
- package/dist/src/compiled/_chunks/workflow/dist-gEXVSMPU.js +14 -0
- package/dist/src/compiled/_chunks/workflow/resume-hook-0Zk0zSvq.js +12 -0
- package/dist/src/compiled/_chunks/workflow/schemas-DWOIBELG.js +1 -0
- package/dist/src/compiled/_chunks/workflow/sleep-DXZr2BgM.js +1 -0
- package/dist/src/compiled/_chunks/workflow/src-B54rYDvB.js +1 -0
- package/dist/src/compiled/_chunks/workflow/symbols-BWCAoPHE.js +48 -0
- package/dist/src/compiled/_chunks/workflow/token-CcaAeZHd.js +1 -0
- package/dist/src/compiled/_chunks/workflow/token-nK4u-N7w.js +1 -0
- package/dist/src/compiled/chat/LICENSE +9 -0
- package/dist/src/compiled/chat/_mdast.d.ts +24 -0
- package/dist/src/compiled/chat/index.d.ts +714 -0
- package/dist/src/compiled/chat/index.js +1 -0
- package/dist/src/compiled/chat/jsx-runtime-CFq1K_Ve.d.ts +782 -0
- package/dist/src/compiled/chokidar/LICENSE +21 -0
- package/dist/src/compiled/chokidar/index.d.ts +33 -0
- package/dist/src/compiled/chokidar/index.js +1 -0
- package/dist/src/compiled/commander/LICENSE +22 -0
- package/dist/src/compiled/commander/index.d.ts +1113 -0
- package/dist/src/compiled/commander/index.js +19 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/LICENSE +21 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/approval-continuation.d.ts +71 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/approval.d.ts +32 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/code-mode-tool.d.ts +16 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/continuation-capability.d.ts +33 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/errors.d.ts +114 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/fetch-policy.d.ts +21 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/host-interrupt.d.ts +25 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/index.d.ts +11 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/index.js +419 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/interrupt-continuation.d.ts +32 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/options.d.ts +3 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/run-code-mode.d.ts +12 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/guest-sources.d.ts +3 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/manager.d.ts +22 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/max-workers.d.ts +20 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/protocol.d.ts +49 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/worker-source.d.ts +11 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/serialization.d.ts +5 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/source-cache.d.ts +11 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/telemetry.d.ts +20 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/tool-invocation.d.ts +24 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/tool-prompt.d.ts +3 -0
- package/dist/src/compiled/experimental-ai-sdk-code-mode/types.d.ts +802 -0
- package/dist/src/compiled/gray-matter/LICENSE +21 -0
- package/dist/src/compiled/gray-matter/index.d.ts +62 -0
- package/dist/src/compiled/gray-matter/index.js +48 -0
- package/dist/src/compiled/jose/LICENSE.md +21 -0
- package/dist/src/compiled/jose/index.d.ts +40 -0
- package/dist/src/compiled/jose/index.js +2 -0
- package/dist/src/compiled/jsonc-parser/LICENSE.md +21 -0
- package/dist/src/compiled/jsonc-parser/index.d.ts +13 -0
- package/dist/src/compiled/jsonc-parser/index.js +15 -0
- package/dist/src/compiled/just-bash/LICENSE +201 -0
- package/dist/src/compiled/just-bash/index.d.ts +116 -0
- package/dist/src/compiled/just-bash/index.js +2200 -0
- package/dist/src/compiled/just-bash/network/types.d.ts +155 -0
- package/dist/src/compiled/picocolors/LICENSE +15 -0
- package/dist/src/compiled/picocolors/index.d.ts +55 -0
- package/dist/src/compiled/picocolors/index.js +1 -0
- package/dist/src/compiled/turndown/LICENSE +21 -0
- package/dist/src/compiled/turndown/index.d.ts +13 -0
- package/dist/src/compiled/turndown/index.js +69 -0
- package/dist/src/compiled/zod/LICENSE +21 -0
- package/dist/src/compiled/zod/index.d.ts +5 -0
- package/dist/src/compiled/zod/index.js +1 -0
- package/dist/src/compiled/zod-validation-error/LICENSE +9 -0
- package/dist/src/compiled/zod-validation-error/index.d.ts +12 -0
- package/dist/src/compiled/zod-validation-error/index.js +1 -0
- package/dist/src/compiler/artifacts.d.ts +109 -0
- package/dist/src/compiler/artifacts.js +1 -0
- package/dist/src/compiler/channel-instrumentation-types.d.ts +8 -0
- package/dist/src/compiler/channel-instrumentation-types.js +2 -0
- package/dist/src/compiler/compile-agent.d.ts +41 -0
- package/dist/src/compiler/compile-agent.js +3 -0
- package/dist/src/compiler/compile-from-memory.d.ts +76 -0
- package/dist/src/compiler/compile-from-memory.js +1 -0
- package/dist/src/compiler/manifest.d.ts +504 -0
- package/dist/src/compiler/manifest.js +1 -0
- package/dist/src/compiler/model-catalog.d.ts +60 -0
- package/dist/src/compiler/model-catalog.js +1 -0
- package/dist/src/compiler/module-map.d.ts +48 -0
- package/dist/src/compiler/module-map.js +5 -0
- package/dist/src/compiler/normalize-agent-config.d.ts +18 -0
- package/dist/src/compiler/normalize-agent-config.js +1 -0
- package/dist/src/compiler/normalize-channel.d.ts +16 -0
- package/dist/src/compiler/normalize-channel.js +1 -0
- package/dist/src/compiler/normalize-connection.d.ts +21 -0
- package/dist/src/compiler/normalize-connection.js +1 -0
- package/dist/src/compiler/normalize-helpers.d.ts +28 -0
- package/dist/src/compiler/normalize-helpers.js +1 -0
- package/dist/src/compiler/normalize-hook.d.ts +12 -0
- package/dist/src/compiler/normalize-hook.js +1 -0
- package/dist/src/compiler/normalize-instructions.d.ts +35 -0
- package/dist/src/compiler/normalize-instructions.js +1 -0
- package/dist/src/compiler/normalize-manifest.d.ts +6 -0
- package/dist/src/compiler/normalize-manifest.js +3 -0
- package/dist/src/compiler/normalize-sandbox.d.ts +7 -0
- package/dist/src/compiler/normalize-sandbox.js +1 -0
- package/dist/src/compiler/normalize-schedule.d.ts +14 -0
- package/dist/src/compiler/normalize-schedule.js +1 -0
- package/dist/src/compiler/normalize-skill.d.ts +21 -0
- package/dist/src/compiler/normalize-skill.js +1 -0
- package/dist/src/compiler/normalize-subagent.d.ts +29 -0
- package/dist/src/compiler/normalize-subagent.js +1 -0
- package/dist/src/compiler/normalize-tool.d.ts +34 -0
- package/dist/src/compiler/normalize-tool.js +1 -0
- package/dist/src/compiler/remote-agent-node.d.ts +22 -0
- package/dist/src/compiler/remote-agent-node.js +1 -0
- package/dist/src/compiler/workspace-resources.d.ts +14 -0
- package/dist/src/compiler/workspace-resources.js +1 -0
- package/dist/src/context/accessors.d.ts +40 -0
- package/dist/src/context/accessors.js +1 -0
- package/dist/src/context/build-callback-context.d.ts +8 -0
- package/dist/src/context/build-callback-context.js +1 -0
- package/dist/src/context/build-dynamic-tools.d.ts +13 -0
- package/dist/src/context/build-dynamic-tools.js +1 -0
- package/dist/src/context/container.d.ts +60 -0
- package/dist/src/context/container.js +1 -0
- package/dist/src/context/dynamic-instruction-lifecycle.d.ts +26 -0
- package/dist/src/context/dynamic-instruction-lifecycle.js +1 -0
- package/dist/src/context/dynamic-resolve-context.d.ts +12 -0
- package/dist/src/context/dynamic-resolve-context.js +1 -0
- package/dist/src/context/dynamic-skill-lifecycle.d.ts +24 -0
- package/dist/src/context/dynamic-skill-lifecycle.js +1 -0
- package/dist/src/context/dynamic-tool-lifecycle.d.ts +25 -0
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -0
- package/dist/src/context/hook-lifecycle.d.ts +14 -0
- package/dist/src/context/hook-lifecycle.js +1 -0
- package/dist/src/context/key.d.ts +47 -0
- package/dist/src/context/key.js +1 -0
- package/dist/src/context/keys.d.ts +105 -0
- package/dist/src/context/keys.js +1 -0
- package/dist/src/context/node.d.ts +7 -0
- package/dist/src/context/node.js +1 -0
- package/dist/src/context/provider.d.ts +27 -0
- package/dist/src/context/provider.js +1 -0
- package/dist/src/context/providers/connection.d.ts +12 -0
- package/dist/src/context/providers/connection.js +1 -0
- package/dist/src/context/providers/sandbox.d.ts +3 -0
- package/dist/src/context/providers/sandbox.js +1 -0
- package/dist/src/context/providers/session.d.ts +3 -0
- package/dist/src/context/providers/session.js +1 -0
- package/dist/src/context/run-step.d.ts +23 -0
- package/dist/src/context/run-step.js +1 -0
- package/dist/src/context/serialize.d.ts +15 -0
- package/dist/src/context/serialize.js +1 -0
- package/dist/src/discover/connections.d.ts +34 -0
- package/dist/src/discover/connections.js +1 -0
- package/dist/src/discover/diagnostics.d.ts +53 -0
- package/dist/src/discover/diagnostics.js +1 -0
- package/dist/src/discover/discover-agent.d.ts +30 -0
- package/dist/src/discover/discover-agent.js +1 -0
- package/dist/src/discover/discover-subagent.d.ts +36 -0
- package/dist/src/discover/discover-subagent.js +1 -0
- package/dist/src/discover/filesystem.d.ts +71 -0
- package/dist/src/discover/filesystem.js +1 -0
- package/dist/src/discover/grammar.d.ts +202 -0
- package/dist/src/discover/grammar.js +1 -0
- package/dist/src/discover/lib.d.ts +34 -0
- package/dist/src/discover/lib.js +1 -0
- package/dist/src/discover/manifest.d.ts +250 -0
- package/dist/src/discover/manifest.js +1 -0
- package/dist/src/discover/markdown.d.ts +19 -0
- package/dist/src/discover/markdown.js +1 -0
- package/dist/src/discover/named-source-directory.d.ts +97 -0
- package/dist/src/discover/named-source-directory.js +1 -0
- package/dist/src/discover/project-source.d.ts +107 -0
- package/dist/src/discover/project-source.js +1 -0
- package/dist/src/discover/project.d.ts +33 -0
- package/dist/src/discover/project.js +1 -0
- package/dist/src/discover/sandbox.d.ts +37 -0
- package/dist/src/discover/sandbox.js +1 -0
- package/dist/src/discover/schedules.d.ts +38 -0
- package/dist/src/discover/schedules.js +1 -0
- package/dist/src/discover/skills.d.ts +38 -0
- package/dist/src/discover/skills.js +1 -0
- package/dist/src/discover/slots.d.ts +30 -0
- package/dist/src/discover/slots.js +1 -0
- package/dist/src/evals/cli/eval.d.ts +18 -0
- package/dist/src/evals/cli/eval.js +1 -0
- package/dist/src/evals/define-eval-suite.d.ts +16 -0
- package/dist/src/evals/define-eval-suite.js +1 -0
- package/dist/src/evals/index.d.ts +3 -0
- package/dist/src/evals/index.js +1 -0
- package/dist/src/evals/loaders/index.d.ts +2 -0
- package/dist/src/evals/loaders/index.js +1 -0
- package/dist/src/evals/loaders/json.d.ts +12 -0
- package/dist/src/evals/loaders/json.js +1 -0
- package/dist/src/evals/loaders/yaml.d.ts +16 -0
- package/dist/src/evals/loaders/yaml.js +1 -0
- package/dist/src/evals/reporters/index.d.ts +2 -0
- package/dist/src/evals/reporters/index.js +1 -0
- package/dist/src/evals/runner/artifacts.d.ts +11 -0
- package/dist/src/evals/runner/artifacts.js +3 -0
- package/dist/src/evals/runner/derive-run-facts.d.ts +9 -0
- package/dist/src/evals/runner/derive-run-facts.js +1 -0
- package/dist/src/evals/runner/discover.d.ts +20 -0
- package/dist/src/evals/runner/discover.js +1 -0
- package/dist/src/evals/runner/execute-case.d.ts +23 -0
- package/dist/src/evals/runner/execute-case.js +1 -0
- package/dist/src/evals/runner/execute-suite.d.ts +24 -0
- package/dist/src/evals/runner/execute-suite.js +1 -0
- package/dist/src/evals/runner/reporters/braintrust.d.ts +27 -0
- package/dist/src/evals/runner/reporters/braintrust.js +2 -0
- package/dist/src/evals/runner/reporters/console.d.ts +15 -0
- package/dist/src/evals/runner/reporters/console.js +1 -0
- package/dist/src/evals/runner/reporters/types.d.ts +20 -0
- package/dist/src/evals/runner/reporters/types.js +1 -0
- package/dist/src/evals/runner/resolve-git-metadata.d.ts +16 -0
- package/dist/src/evals/runner/resolve-git-metadata.js +1 -0
- package/dist/src/evals/scorers/autoevals-client.d.ts +14 -0
- package/dist/src/evals/scorers/autoevals-client.js +2 -0
- package/dist/src/evals/scorers/autoevals.d.ts +58 -0
- package/dist/src/evals/scorers/autoevals.js +1 -0
- package/dist/src/evals/scorers/json.d.ts +10 -0
- package/dist/src/evals/scorers/json.js +1 -0
- package/dist/src/evals/scorers/run.d.ts +18 -0
- package/dist/src/evals/scorers/run.js +1 -0
- package/dist/src/evals/scorers/sql.d.ts +9 -0
- package/dist/src/evals/scorers/sql.js +1 -0
- package/dist/src/evals/scorers/text.d.ts +18 -0
- package/dist/src/evals/scorers/text.js +1 -0
- package/dist/src/evals/scores/index.d.ts +72 -0
- package/dist/src/evals/scores/index.js +1 -0
- package/dist/src/evals/types.d.ts +272 -0
- package/dist/src/evals/types.js +1 -0
- package/dist/src/execution/channel-context.d.ts +5 -0
- package/dist/src/execution/channel-context.js +1 -0
- package/dist/src/execution/connection-auth-tool-result.d.ts +2 -0
- package/dist/src/execution/connection-auth-tool-result.js +1 -0
- package/dist/src/execution/create-session-step.d.ts +43 -0
- package/dist/src/execution/create-session-step.js +1 -0
- package/dist/src/execution/delegated-parent-notification.d.ts +15 -0
- package/dist/src/execution/delegated-parent-notification.js +1 -0
- package/dist/src/execution/delegated-parent-result.d.ts +14 -0
- package/dist/src/execution/delegated-parent-result.js +1 -0
- package/dist/src/execution/dispatch-code-mode-runtime-actions-step.d.ts +21 -0
- package/dist/src/execution/dispatch-code-mode-runtime-actions-step.js +1 -0
- package/dist/src/execution/dispatch-runtime-actions-step.d.ts +19 -0
- package/dist/src/execution/dispatch-runtime-actions-step.js +1 -0
- package/dist/src/execution/durable-session-migrations/chain.d.ts +38 -0
- package/dist/src/execution/durable-session-migrations/chain.js +1 -0
- package/dist/src/execution/durable-session-migrations/snapshot.d.ts +22 -0
- package/dist/src/execution/durable-session-migrations/snapshot.js +1 -0
- package/dist/src/execution/durable-session-migrations/turn-workflow-v0-to-v1.d.ts +12 -0
- package/dist/src/execution/durable-session-migrations/turn-workflow-v0-to-v1.js +1 -0
- package/dist/src/execution/durable-session-migrations/turn-workflow.d.ts +40 -0
- package/dist/src/execution/durable-session-migrations/turn-workflow.js +1 -0
- package/dist/src/execution/durable-session-store.d.ts +113 -0
- package/dist/src/execution/durable-session-store.js +1 -0
- package/dist/src/execution/eve-workflow-attributes.d.ts +136 -0
- package/dist/src/execution/eve-workflow-attributes.js +1 -0
- package/dist/src/execution/next-driver-action.d.ts +37 -0
- package/dist/src/execution/next-driver-action.js +1 -0
- package/dist/src/execution/node-step.d.ts +52 -0
- package/dist/src/execution/node-step.js +1 -0
- package/dist/src/execution/remote-agent-dispatch.d.ts +15 -0
- package/dist/src/execution/remote-agent-dispatch.js +1 -0
- package/dist/src/execution/runtime-context.d.ts +10 -0
- package/dist/src/execution/runtime-context.js +1 -0
- package/dist/src/execution/runtime-errors.d.ts +13 -0
- package/dist/src/execution/runtime-errors.js +1 -0
- package/dist/src/execution/sandbox/bash-tool.d.ts +30 -0
- package/dist/src/execution/sandbox/bash-tool.js +1 -0
- package/dist/src/execution/sandbox/bindings/local.d.ts +22 -0
- package/dist/src/execution/sandbox/bindings/local.js +1 -0
- package/dist/src/execution/sandbox/bindings/vercel.d.ts +28 -0
- package/dist/src/execution/sandbox/bindings/vercel.js +1 -0
- package/dist/src/execution/sandbox/ensure.d.ts +27 -0
- package/dist/src/execution/sandbox/ensure.js +1 -0
- package/dist/src/execution/sandbox/glob-tool.d.ts +22 -0
- package/dist/src/execution/sandbox/glob-tool.js +3 -0
- package/dist/src/execution/sandbox/grep-tool.d.ts +26 -0
- package/dist/src/execution/sandbox/grep-tool.js +3 -0
- package/dist/src/execution/sandbox/lazy-backend.d.ts +15 -0
- package/dist/src/execution/sandbox/lazy-backend.js +1 -0
- package/dist/src/execution/sandbox/prewarm.d.ts +57 -0
- package/dist/src/execution/sandbox/prewarm.js +1 -0
- package/dist/src/execution/sandbox/read-file-tool.d.ts +28 -0
- package/dist/src/execution/sandbox/read-file-tool.js +3 -0
- package/dist/src/execution/sandbox/require-sandbox.d.ts +15 -0
- package/dist/src/execution/sandbox/require-sandbox.js +1 -0
- package/dist/src/execution/sandbox/ripgrep-probe.d.ts +9 -0
- package/dist/src/execution/sandbox/ripgrep-probe.js +1 -0
- package/dist/src/execution/sandbox/session.d.ts +17 -0
- package/dist/src/execution/sandbox/session.js +3 -0
- package/dist/src/execution/sandbox/shell-quote.d.ts +12 -0
- package/dist/src/execution/sandbox/shell-quote.js +1 -0
- package/dist/src/execution/sandbox/stream-utils.d.ts +9 -0
- package/dist/src/execution/sandbox/stream-utils.js +1 -0
- package/dist/src/execution/sandbox/truncate-output.d.ts +72 -0
- package/dist/src/execution/sandbox/truncate-output.js +3 -0
- package/dist/src/execution/sandbox/write-file-tool.d.ts +23 -0
- package/dist/src/execution/sandbox/write-file-tool.js +1 -0
- package/dist/src/execution/session-callback-step.d.ts +16 -0
- package/dist/src/execution/session-callback-step.js +1 -0
- package/dist/src/execution/session.d.ts +81 -0
- package/dist/src/execution/session.js +5 -0
- package/dist/src/execution/skills/instructions.d.ts +19 -0
- package/dist/src/execution/skills/instructions.js +2 -0
- package/dist/src/execution/skills/types.d.ts +22 -0
- package/dist/src/execution/skills/types.js +1 -0
- package/dist/src/execution/subagent-adapter.d.ts +43 -0
- package/dist/src/execution/subagent-adapter.js +1 -0
- package/dist/src/execution/subagent-hitl-proxy.d.ts +37 -0
- package/dist/src/execution/subagent-hitl-proxy.js +1 -0
- package/dist/src/execution/subagent-invocation.d.ts +16 -0
- package/dist/src/execution/subagent-invocation.js +2 -0
- package/dist/src/execution/subagent-tool.d.ts +39 -0
- package/dist/src/execution/subagent-tool.js +1 -0
- package/dist/src/execution/tool-auth.d.ts +42 -0
- package/dist/src/execution/tool-auth.js +1 -0
- package/dist/src/execution/tool-compaction.d.ts +9 -0
- package/dist/src/execution/tool-compaction.js +1 -0
- package/dist/src/execution/turn-workflow.d.ts +30 -0
- package/dist/src/execution/turn-workflow.js +1 -0
- package/dist/src/execution/web-fetch/html.d.ts +15 -0
- package/dist/src/execution/web-fetch/html.js +7 -0
- package/dist/src/execution/web-fetch/tool.d.ts +34 -0
- package/dist/src/execution/web-fetch/tool.js +1 -0
- package/dist/src/execution/workflow-callback-url.d.ts +12 -0
- package/dist/src/execution/workflow-callback-url.js +1 -0
- package/dist/src/execution/workflow-entry.d.ts +26 -0
- package/dist/src/execution/workflow-entry.js +1 -0
- package/dist/src/execution/workflow-errors.d.ts +14 -0
- package/dist/src/execution/workflow-errors.js +1 -0
- package/dist/src/execution/workflow-runtime.d.ts +48 -0
- package/dist/src/execution/workflow-runtime.js +3 -0
- package/dist/src/execution/workflow-steps.d.ts +103 -0
- package/dist/src/execution/workflow-steps.js +1 -0
- package/dist/src/harness/action-result-helpers.d.ts +40 -0
- package/dist/src/harness/action-result-helpers.js +1 -0
- package/dist/src/harness/attachment-staging.d.ts +30 -0
- package/dist/src/harness/attachment-staging.js +1 -0
- package/dist/src/harness/authorization.d.ts +116 -0
- package/dist/src/harness/authorization.js +1 -0
- package/dist/src/harness/code-mode-interrupt-state.d.ts +26 -0
- package/dist/src/harness/code-mode-interrupt-state.js +1 -0
- package/dist/src/harness/code-mode-lifecycle.d.ts +16 -0
- package/dist/src/harness/code-mode-lifecycle.js +1 -0
- package/dist/src/harness/code-mode-runtime-action-state.d.ts +6 -0
- package/dist/src/harness/code-mode-runtime-action-state.js +1 -0
- package/dist/src/harness/code-mode.d.ts +26 -0
- package/dist/src/harness/code-mode.js +1 -0
- package/dist/src/harness/compaction.d.ts +43 -0
- package/dist/src/harness/compaction.js +4 -0
- package/dist/src/harness/emission.d.ts +124 -0
- package/dist/src/harness/emission.js +1 -0
- package/dist/src/harness/execute-tool.d.ts +28 -0
- package/dist/src/harness/execute-tool.js +1 -0
- package/dist/src/harness/input-extraction.d.ts +17 -0
- package/dist/src/harness/input-extraction.js +1 -0
- package/dist/src/harness/input-requests.d.ts +75 -0
- package/dist/src/harness/input-requests.js +1 -0
- package/dist/src/harness/instrumentation-config.d.ts +18 -0
- package/dist/src/harness/instrumentation-config.js +1 -0
- package/dist/src/harness/instrumentation-runtime-context.d.ts +23 -0
- package/dist/src/harness/instrumentation-runtime-context.js +1 -0
- package/dist/src/harness/messages.d.ts +41 -0
- package/dist/src/harness/messages.js +1 -0
- package/dist/src/harness/model-call-error.d.ts +53 -0
- package/dist/src/harness/model-call-error.js +1 -0
- package/dist/src/harness/otel-integration.d.ts +9 -0
- package/dist/src/harness/otel-integration.js +1 -0
- package/dist/src/harness/prompt-cache.d.ts +83 -0
- package/dist/src/harness/prompt-cache.js +1 -0
- package/dist/src/harness/provider-tools.d.ts +62 -0
- package/dist/src/harness/provider-tools.js +1 -0
- package/dist/src/harness/proxy-input-requests.d.ts +32 -0
- package/dist/src/harness/proxy-input-requests.js +1 -0
- package/dist/src/harness/runtime-actions.d.ts +106 -0
- package/dist/src/harness/runtime-actions.js +1 -0
- package/dist/src/harness/sandbox-surface.d.ts +68 -0
- package/dist/src/harness/sandbox-surface.js +1 -0
- package/dist/src/harness/step-hooks.d.ts +109 -0
- package/dist/src/harness/step-hooks.js +1 -0
- package/dist/src/harness/tool-interrupts.d.ts +22 -0
- package/dist/src/harness/tool-interrupts.js +1 -0
- package/dist/src/harness/tool-loop.d.ts +2 -0
- package/dist/src/harness/tool-loop.js +1 -0
- package/dist/src/harness/tool-result-pruning.d.ts +8 -0
- package/dist/src/harness/tool-result-pruning.js +1 -0
- package/dist/src/harness/tools.d.ts +69 -0
- package/dist/src/harness/tools.js +1 -0
- package/dist/src/harness/turn-tag-state.d.ts +50 -0
- package/dist/src/harness/turn-tag-state.js +1 -0
- package/dist/src/harness/types.d.ts +229 -0
- package/dist/src/harness/types.js +1 -0
- package/dist/src/harness/workflow-stream-error.d.ts +29 -0
- package/dist/src/harness/workflow-stream-error.js +1 -0
- package/dist/src/harness/workflow-tool-description.d.ts +17 -0
- package/dist/src/harness/workflow-tool-description.js +23 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/internal/application/cache-metadata.d.ts +9 -0
- package/dist/src/internal/application/cache-metadata.js +1 -0
- package/dist/src/internal/application/compiled-artifacts.d.ts +33 -0
- package/dist/src/internal/application/compiled-artifacts.js +4 -0
- package/dist/src/internal/application/import-specifier.d.ts +17 -0
- package/dist/src/internal/application/import-specifier.js +1 -0
- package/dist/src/internal/application/package.d.ts +34 -0
- package/dist/src/internal/application/package.js +1 -0
- package/dist/src/internal/application/paths.d.ts +47 -0
- package/dist/src/internal/application/paths.js +1 -0
- package/dist/src/internal/application/runtime-compiled-artifacts-source.d.ts +6 -0
- package/dist/src/internal/application/runtime-compiled-artifacts-source.js +1 -0
- package/dist/src/internal/attachments/data.d.ts +18 -0
- package/dist/src/internal/attachments/data.js +1 -0
- package/dist/src/internal/attachments/errors.d.ts +38 -0
- package/dist/src/internal/attachments/errors.js +1 -0
- package/dist/src/internal/attachments/refs.d.ts +55 -0
- package/dist/src/internal/attachments/refs.js +1 -0
- package/dist/src/internal/attachments/sandbox-refs.d.ts +46 -0
- package/dist/src/internal/attachments/sandbox-refs.js +1 -0
- package/dist/src/internal/attachments/url-refs.d.ts +17 -0
- package/dist/src/internal/attachments/url-refs.js +1 -0
- package/dist/src/internal/authored-asset-import-plugin.d.ts +5 -0
- package/dist/src/internal/authored-asset-import-plugin.js +1 -0
- package/dist/src/internal/authored-definition/channel.d.ts +16 -0
- package/dist/src/internal/authored-definition/channel.js +1 -0
- package/dist/src/internal/authored-definition/connection.d.ts +18 -0
- package/dist/src/internal/authored-definition/connection.js +1 -0
- package/dist/src/internal/authored-definition/core.d.ts +46 -0
- package/dist/src/internal/authored-definition/core.js +1 -0
- package/dist/src/internal/authored-definition/sandbox.d.ts +17 -0
- package/dist/src/internal/authored-definition/sandbox.js +1 -0
- package/dist/src/internal/authored-definition/schema-backed.d.ts +36 -0
- package/dist/src/internal/authored-definition/schema-backed.js +1 -0
- package/dist/src/internal/authored-module-bundle.d.ts +4 -0
- package/dist/src/internal/authored-module-bundle.js +2 -0
- package/dist/src/internal/authored-module-loader.d.ts +6 -0
- package/dist/src/internal/authored-module-loader.js +2 -0
- package/dist/src/internal/authored-module-map-loader.d.ts +10 -0
- package/dist/src/internal/authored-module-map-loader.js +1 -0
- package/dist/src/internal/authored-module.d.ts +42 -0
- package/dist/src/internal/authored-module.js +1 -0
- package/dist/src/internal/authored-package-tsconfig-paths.d.ts +9 -0
- package/dist/src/internal/authored-package-tsconfig-paths.js +1 -0
- package/dist/src/internal/bundler/nitro-rolldown.d.ts +26 -0
- package/dist/src/internal/bundler/nitro-rolldown.js +1 -0
- package/dist/src/internal/helpers/markdown.d.ts +45 -0
- package/dist/src/internal/helpers/markdown.js +3 -0
- package/dist/src/internal/instrumentation.d.ts +40 -0
- package/dist/src/internal/instrumentation.js +1 -0
- package/dist/src/internal/json-schema.d.ts +1 -0
- package/dist/src/internal/json-schema.js +1 -0
- package/dist/src/internal/logging.d.ts +100 -0
- package/dist/src/internal/logging.js +1 -0
- package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +32 -0
- package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -0
- package/dist/src/internal/nitro/host/artifacts-config.d.ts +16 -0
- package/dist/src/internal/nitro/host/artifacts-config.js +1 -0
- package/dist/src/internal/nitro/host/build-application.d.ts +4 -0
- package/dist/src/internal/nitro/host/build-application.js +1 -0
- package/dist/src/internal/nitro/host/build-vercel-agent-summary.d.ts +40 -0
- package/dist/src/internal/nitro/host/build-vercel-agent-summary.js +1 -0
- package/dist/src/internal/nitro/host/channel-routes.d.ts +38 -0
- package/dist/src/internal/nitro/host/channel-routes.js +3 -0
- package/dist/src/internal/nitro/host/code-mode-runtime-dependency-plugin.d.ts +1 -0
- package/dist/src/internal/nitro/host/code-mode-runtime-dependency-plugin.js +1 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts +13 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js +2 -0
- package/dist/src/internal/nitro/host/configure-nitro-routes.d.ts +9 -0
- package/dist/src/internal/nitro/host/configure-nitro-routes.js +4 -0
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts +14 -0
- package/dist/src/internal/nitro/host/create-application-nitro.js +1 -0
- package/dist/src/internal/nitro/host/cron-handler-route.d.ts +41 -0
- package/dist/src/internal/nitro/host/cron-handler-route.js +1 -0
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts +29 -0
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -0
- package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.d.ts +41 -0
- package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.js +1 -0
- package/dist/src/internal/nitro/host/nitro-bundler-config.d.ts +5 -0
- package/dist/src/internal/nitro/host/nitro-bundler-config.js +1 -0
- package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.d.ts +6 -0
- package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.js +1 -0
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts +8 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js +1 -0
- package/dist/src/internal/nitro/host/schedule-task-routes.d.ts +60 -0
- package/dist/src/internal/nitro/host/schedule-task-routes.js +2 -0
- package/dist/src/internal/nitro/host/server-external-packages.d.ts +5 -0
- package/dist/src/internal/nitro/host/server-external-packages.js +1 -0
- package/dist/src/internal/nitro/host/start-development-server.d.ts +20 -0
- package/dist/src/internal/nitro/host/start-development-server.js +1 -0
- package/dist/src/internal/nitro/host/start-production-server.d.ts +8 -0
- package/dist/src/internal/nitro/host/start-production-server.js +3 -0
- package/dist/src/internal/nitro/host/types.d.ts +31 -0
- package/dist/src/internal/nitro/host/types.js +1 -0
- package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +8 -0
- package/dist/src/internal/nitro/host/vercel-build-output-config.js +1 -0
- package/dist/src/internal/nitro/host/vercel-build-prewarm.d.ts +19 -0
- package/dist/src/internal/nitro/host/vercel-build-prewarm.js +1 -0
- package/dist/src/internal/nitro/host.d.ts +4 -0
- package/dist/src/internal/nitro/host.js +1 -0
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +86 -0
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +6 -0
- package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.d.ts +26 -0
- package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.js +1 -0
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +22 -0
- package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -0
- package/dist/src/internal/nitro/routes/dev-runtime-artifacts.d.ts +10 -0
- package/dist/src/internal/nitro/routes/dev-runtime-artifacts.js +1 -0
- package/dist/src/internal/nitro/routes/dev-schedule-dispatch.d.ts +15 -0
- package/dist/src/internal/nitro/routes/dev-schedule-dispatch.js +1 -0
- package/dist/src/internal/nitro/routes/health.d.ts +14 -0
- package/dist/src/internal/nitro/routes/health.js +1 -0
- package/dist/src/internal/nitro/routes/index.d.ts +12 -0
- package/dist/src/internal/nitro/routes/index.js +151 -0
- package/dist/src/internal/nitro/routes/info.d.ts +16 -0
- package/dist/src/internal/nitro/routes/info.js +1 -0
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +17 -0
- package/dist/src/internal/nitro/routes/runtime-artifacts.js +1 -0
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts +26 -0
- package/dist/src/internal/nitro/routes/runtime-stack.js +1 -0
- package/dist/src/internal/nitro/routes/schedule-task.d.ts +12 -0
- package/dist/src/internal/nitro/routes/schedule-task.js +1 -0
- package/dist/src/internal/node-esm-compat-banner.d.ts +46 -0
- package/dist/src/internal/node-esm-compat-banner.js +4 -0
- package/dist/src/internal/package-name.d.ts +8 -0
- package/dist/src/internal/package-name.js +1 -0
- package/dist/src/internal/process/pnpm.d.ts +28 -0
- package/dist/src/internal/process/pnpm.js +1 -0
- package/dist/src/internal/runtime-model.d.ts +13 -0
- package/dist/src/internal/runtime-model.js +1 -0
- package/dist/src/internal/runtime-registry.d.ts +77 -0
- package/dist/src/internal/runtime-registry.js +1 -0
- package/dist/src/internal/vercel-agent-summary.d.ts +210 -0
- package/dist/src/internal/vercel-agent-summary.js +1 -0
- package/dist/src/internal/workflow/builtins.d.ts +41 -0
- package/dist/src/internal/workflow/builtins.js +1 -0
- package/dist/src/internal/workflow/index.d.ts +6 -0
- package/dist/src/internal/workflow/index.js +1 -0
- package/dist/src/internal/workflow-bundle/builder-support.d.ts +71 -0
- package/dist/src/internal/workflow-bundle/builder-support.js +9 -0
- package/dist/src/internal/workflow-bundle/builder.d.ts +36 -0
- package/dist/src/internal/workflow-bundle/builder.js +5 -0
- package/dist/src/internal/workflow-bundle/dynamic-tool-transform.d.ts +39 -0
- package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +4 -0
- package/dist/src/internal/workflow-bundle/eve-service-route-output.d.ts +4 -0
- package/dist/src/internal/workflow-bundle/eve-service-route-output.js +54 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +17 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.js +2 -0
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts +66 -0
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +3 -0
- package/dist/src/internal/workflow-bundle/workflow-builders.d.ts +44 -0
- package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -0
- package/dist/src/internal/workflow-bundle/workflow-core-shim.d.ts +82 -0
- package/dist/src/internal/workflow-bundle/workflow-core-shim.js +1 -0
- package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +25 -0
- package/dist/src/internal/workflow-bundle/workflow-transformer.js +5 -0
- package/dist/src/node_modules/.pnpm/@clack_core@1.3.1/node_modules/@clack/core/dist/index.js +10 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +2 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +4 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +4 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +1 -0
- package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +1 -0
- package/dist/src/node_modules/.pnpm/autoevals@0.0.132_ws@8.21.0/node_modules/autoevals/jsdist/index.js +384 -0
- package/dist/src/node_modules/.pnpm/compute-cosine-similarity@1.1.0/node_modules/compute-cosine-similarity/lib/index.js +1 -0
- package/dist/src/node_modules/.pnpm/compute-dot@1.1.0/node_modules/compute-dot/lib/index.js +1 -0
- package/dist/src/node_modules/.pnpm/compute-l2norm@1.1.0/node_modules/compute-l2norm/lib/index.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +1 -0
- package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js +5 -0
- package/dist/src/node_modules/.pnpm/js-levenshtein@1.1.6/node_modules/js-levenshtein/index.js +1 -0
- package/dist/src/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.js +32 -0
- package/dist/src/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +1 -0
- package/dist/src/node_modules/.pnpm/mustache@4.2.0/node_modules/mustache/mustache.js +4 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/_vendor/partial-json-parser/parser.js +2 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/auth/workload-identity-auth.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/azure.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/client.js +11 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/api-promise.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/error.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/pagination.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/resource.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/streaming.js +3 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/uploads.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/error.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/index.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/decoders/line.js +3 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/detect-platform.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/errors.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/headers.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/parse.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/formats.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/stringify.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/utils.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/request-options.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/shims.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/to-file.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/tslib.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/uploads.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/base64.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/bytes.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/env.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/log.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/path.js +2 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/query.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/sleep.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/uuid.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/values.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/AbstractChatCompletionRunner.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/AssistantStream.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionRunner.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionStream.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionStreamingRunner.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/EventStream.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ResponsesParser.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/RunnableFunction.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/Util.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/chatCompletionUtils.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/parser.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/responses/ResponseStream.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/admin.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/admin-api-keys.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/audit-logs.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/certificates.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/data-retention.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/groups.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/roles.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/users.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/invites.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/organization.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/api-keys.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/certificates.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/data-retention.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/groups/groups.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/groups/roles.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/model-permissions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/projects.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/rate-limits.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/roles.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/service-accounts.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/users/roles.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/users/users.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/roles.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/spend-alerts.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/usage.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/users/roles.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/users/users.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/audio.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/speech.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/transcriptions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/translations.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/batches.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/assistants.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/beta.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/chatkit.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/sessions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/threads.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/realtime.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/sessions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/transcription-sessions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/messages.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/runs.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/steps.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/threads.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/chat.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/completions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/index.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/messages.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/index.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/completions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/containers.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/files/content.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/files/files.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/conversations/conversations.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/conversations/items.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/embeddings.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/evals.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/runs/output-items.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/runs/runs.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/files.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/alpha.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/graders.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/fine-tuning.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/jobs.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/methods.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/graders/grader-models.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/graders/graders.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/images.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/index.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/models.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/moderations.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/calls.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/client-secrets.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/realtime.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/input-items.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/input-tokens.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/responses.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/shared.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/content.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/skills.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/versions/content.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/versions/versions.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/uploads/parts.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/uploads/uploads.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/file-batches.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/files.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/vector-stores.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/videos.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks/index.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks/webhooks.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/streaming.js +1 -0
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/version.js +1 -0
- package/dist/src/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +1 -0
- package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js +1 -0
- package/dist/src/node_modules/.pnpm/validate.io-array@1.0.6/node_modules/validate.io-array/lib/index.js +1 -0
- package/dist/src/node_modules/.pnpm/validate.io-function@1.0.2/node_modules/validate.io-function/lib/index.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +3 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +1 -0
- package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +1 -0
- package/dist/src/packages/eve-catalog/src/index.js +1 -0
- package/dist/src/packages/eve-scaffold/src/channels-catalog.js +1 -0
- package/dist/src/packages/eve-scaffold/src/channels.js +7 -0
- package/dist/src/packages/eve-scaffold/src/cli/channel-add-prompter.js +1 -0
- package/dist/src/packages/eve-scaffold/src/cli/channel-setup-prompter.js +1 -0
- package/dist/src/packages/eve-scaffold/src/cli/command-output.js +1 -0
- package/dist/src/packages/eve-scaffold/src/cli/connection-add-prompter.js +1 -0
- package/dist/src/packages/eve-scaffold/src/cli/index.js +1 -0
- package/dist/src/packages/eve-scaffold/src/cli/prompt-ui.js +5 -0
- package/dist/src/packages/eve-scaffold/src/cli/rail-log.js +2 -0
- package/dist/src/packages/eve-scaffold/src/cli/select-component.js +1 -0
- package/dist/src/packages/eve-scaffold/src/cli/select-state.js +1 -0
- package/dist/src/packages/eve-scaffold/src/connections/catalog.js +1 -0
- package/dist/src/packages/eve-scaffold/src/connections.js +21 -0
- package/dist/src/packages/eve-scaffold/src/files.js +1 -0
- package/dist/src/packages/eve-scaffold/src/human-action.js +1 -0
- package/dist/src/packages/eve-scaffold/src/index.js +1 -0
- package/dist/src/packages/eve-scaffold/src/module-files.js +1 -0
- package/dist/src/packages/eve-scaffold/src/package-json.js +1 -0
- package/dist/src/packages/eve-scaffold/src/pnpm-workspace.js +11 -0
- package/dist/src/packages/eve-scaffold/src/primitives/detect-deployment.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/index.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/pnpm-invocation.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/process-output.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/run-pnpm.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/run-vercel.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/update-connection-connector.js +1 -0
- package/dist/src/packages/eve-scaffold/src/primitives/update-slack-channel.js +1 -0
- package/dist/src/packages/eve-scaffold/src/project.js +1 -0
- package/dist/src/packages/eve-scaffold/src/steps/deploy-to-vercel.js +1 -0
- package/dist/src/packages/eve-scaffold/src/steps/index.js +1 -0
- package/dist/src/packages/eve-scaffold/src/steps/project-resolution.js +1 -0
- package/dist/src/packages/eve-scaffold/src/steps/run-add-connection.js +1 -0
- package/dist/src/packages/eve-scaffold/src/steps/run-add-to-agent.js +2 -0
- package/dist/src/packages/eve-scaffold/src/steps/setup-connection.js +1 -0
- package/dist/src/packages/eve-scaffold/src/steps/setup-slackbot.js +1 -0
- package/dist/src/packages/eve-scaffold/src/web-template.js +4691 -0
- package/dist/src/protocol/message.d.ts +732 -0
- package/dist/src/protocol/message.js +2 -0
- package/dist/src/protocol/routes.d.ts +108 -0
- package/dist/src/protocol/routes.js +1 -0
- package/dist/src/public/agents/auth.d.ts +46 -0
- package/dist/src/public/agents/auth.js +1 -0
- package/dist/src/public/channels/auth.d.ts +416 -0
- package/dist/src/public/channels/auth.js +1 -0
- package/dist/src/public/channels/discord/api.d.ts +106 -0
- package/dist/src/public/channels/discord/api.js +2 -0
- package/dist/src/public/channels/discord/defaults.d.ts +15 -0
- package/dist/src/public/channels/discord/defaults.js +3 -0
- package/dist/src/public/channels/discord/discordChannel.d.ts +134 -0
- package/dist/src/public/channels/discord/discordChannel.js +1 -0
- package/dist/src/public/channels/discord/hitl.d.ts +47 -0
- package/dist/src/public/channels/discord/hitl.js +1 -0
- package/dist/src/public/channels/discord/inbound.d.ts +106 -0
- package/dist/src/public/channels/discord/inbound.js +2 -0
- package/dist/src/public/channels/discord/index.d.ts +23 -0
- package/dist/src/public/channels/discord/index.js +1 -0
- package/dist/src/public/channels/discord/responses.d.ts +11 -0
- package/dist/src/public/channels/discord/responses.js +1 -0
- package/dist/src/public/channels/discord/verify.d.ts +46 -0
- package/dist/src/public/channels/discord/verify.js +1 -0
- package/dist/src/public/channels/discord/verifyInbound.d.ts +6 -0
- package/dist/src/public/channels/discord/verifyInbound.js +1 -0
- package/dist/src/public/channels/eve.d.ts +81 -0
- package/dist/src/public/channels/eve.js +2 -0
- package/dist/src/public/channels/github/api.d.ts +177 -0
- package/dist/src/public/channels/github/api.js +1 -0
- package/dist/src/public/channels/github/auth.d.ts +82 -0
- package/dist/src/public/channels/github/auth.js +2 -0
- package/dist/src/public/channels/github/binding.d.ts +59 -0
- package/dist/src/public/channels/github/binding.js +1 -0
- package/dist/src/public/channels/github/checkout.d.ts +48 -0
- package/dist/src/public/channels/github/checkout.js +1 -0
- package/dist/src/public/channels/github/constants.d.ts +2 -0
- package/dist/src/public/channels/github/constants.js +1 -0
- package/dist/src/public/channels/github/defaults.d.ts +26 -0
- package/dist/src/public/channels/github/defaults.js +3 -0
- package/dist/src/public/channels/github/dispatch.d.ts +34 -0
- package/dist/src/public/channels/github/dispatch.js +1 -0
- package/dist/src/public/channels/github/githubChannel.d.ts +126 -0
- package/dist/src/public/channels/github/githubChannel.js +1 -0
- package/dist/src/public/channels/github/inbound.d.ts +183 -0
- package/dist/src/public/channels/github/inbound.js +2 -0
- package/dist/src/public/channels/github/index.d.ts +9 -0
- package/dist/src/public/channels/github/index.js +1 -0
- package/dist/src/public/channels/github/limits.d.ts +4 -0
- package/dist/src/public/channels/github/limits.js +2 -0
- package/dist/src/public/channels/github/pr-context.d.ts +46 -0
- package/dist/src/public/channels/github/pr-context.js +5 -0
- package/dist/src/public/channels/github/state.d.ts +60 -0
- package/dist/src/public/channels/github/state.js +1 -0
- package/dist/src/public/channels/github/verify.d.ts +35 -0
- package/dist/src/public/channels/github/verify.js +1 -0
- package/dist/src/public/channels/index.d.ts +89 -0
- package/dist/src/public/channels/index.js +1 -0
- package/dist/src/public/channels/linear/api.d.ts +122 -0
- package/dist/src/public/channels/linear/api.js +69 -0
- package/dist/src/public/channels/linear/auth.d.ts +22 -0
- package/dist/src/public/channels/linear/auth.js +1 -0
- package/dist/src/public/channels/linear/constants.d.ts +2 -0
- package/dist/src/public/channels/linear/constants.js +1 -0
- package/dist/src/public/channels/linear/defaults.d.ts +16 -0
- package/dist/src/public/channels/linear/defaults.js +3 -0
- package/dist/src/public/channels/linear/hitl.d.ts +14 -0
- package/dist/src/public/channels/linear/hitl.js +4 -0
- package/dist/src/public/channels/linear/inbound.d.ts +88 -0
- package/dist/src/public/channels/linear/inbound.js +2 -0
- package/dist/src/public/channels/linear/index.d.ts +8 -0
- package/dist/src/public/channels/linear/index.js +1 -0
- package/dist/src/public/channels/linear/linearChannel.d.ts +138 -0
- package/dist/src/public/channels/linear/linearChannel.js +1 -0
- package/dist/src/public/channels/linear/verify.d.ts +22 -0
- package/dist/src/public/channels/linear/verify.js +1 -0
- package/dist/src/public/channels/slack/api-encoding.d.ts +5 -0
- package/dist/src/public/channels/slack/api-encoding.js +1 -0
- package/dist/src/public/channels/slack/api.d.ts +258 -0
- package/dist/src/public/channels/slack/api.js +1 -0
- package/dist/src/public/channels/slack/attachments.d.ts +51 -0
- package/dist/src/public/channels/slack/attachments.js +1 -0
- package/dist/src/public/channels/slack/auth.d.ts +16 -0
- package/dist/src/public/channels/slack/auth.js +1 -0
- package/dist/src/public/channels/slack/blocks.d.ts +45 -0
- package/dist/src/public/channels/slack/blocks.js +3 -0
- package/dist/src/public/channels/slack/connections.d.ts +53 -0
- package/dist/src/public/channels/slack/connections.js +1 -0
- package/dist/src/public/channels/slack/constants.d.ts +7 -0
- package/dist/src/public/channels/slack/constants.js +1 -0
- package/dist/src/public/channels/slack/defaults.d.ts +36 -0
- package/dist/src/public/channels/slack/defaults.js +4 -0
- package/dist/src/public/channels/slack/hitl.d.ts +141 -0
- package/dist/src/public/channels/slack/hitl.js +1 -0
- package/dist/src/public/channels/slack/inbound.d.ts +122 -0
- package/dist/src/public/channels/slack/inbound.js +2 -0
- package/dist/src/public/channels/slack/index.d.ts +22 -0
- package/dist/src/public/channels/slack/index.js +1 -0
- package/dist/src/public/channels/slack/interactions.d.ts +64 -0
- package/dist/src/public/channels/slack/interactions.js +1 -0
- package/dist/src/public/channels/slack/limits.d.ts +62 -0
- package/dist/src/public/channels/slack/limits.js +1 -0
- package/dist/src/public/channels/slack/mrkdwn.d.ts +38 -0
- package/dist/src/public/channels/slack/mrkdwn.js +1 -0
- package/dist/src/public/channels/slack/slackChannel.d.ts +303 -0
- package/dist/src/public/channels/slack/slackChannel.js +1 -0
- package/dist/src/public/channels/slack/thread.d.ts +33 -0
- package/dist/src/public/channels/slack/thread.js +1 -0
- package/dist/src/public/channels/slack/utils.d.ts +1 -0
- package/dist/src/public/channels/slack/utils.js +1 -0
- package/dist/src/public/channels/slack/verify.d.ts +48 -0
- package/dist/src/public/channels/slack/verify.js +1 -0
- package/dist/src/public/channels/teams/api.d.ts +155 -0
- package/dist/src/public/channels/teams/api.js +4 -0
- package/dist/src/public/channels/teams/attachments.d.ts +35 -0
- package/dist/src/public/channels/teams/attachments.js +1 -0
- package/dist/src/public/channels/teams/defaults.d.ts +24 -0
- package/dist/src/public/channels/teams/defaults.js +3 -0
- package/dist/src/public/channels/teams/hitl.d.ts +49 -0
- package/dist/src/public/channels/teams/hitl.js +1 -0
- package/dist/src/public/channels/teams/inbound.d.ts +85 -0
- package/dist/src/public/channels/teams/inbound.js +3 -0
- package/dist/src/public/channels/teams/index.d.ts +19 -0
- package/dist/src/public/channels/teams/index.js +1 -0
- package/dist/src/public/channels/teams/limits.d.ts +8 -0
- package/dist/src/public/channels/teams/limits.js +1 -0
- package/dist/src/public/channels/teams/teamsChannel.d.ts +164 -0
- package/dist/src/public/channels/teams/teamsChannel.js +1 -0
- package/dist/src/public/channels/teams/verify.d.ts +50 -0
- package/dist/src/public/channels/teams/verify.js +1 -0
- package/dist/src/public/channels/telegram/api.d.ts +120 -0
- package/dist/src/public/channels/telegram/api.js +2 -0
- package/dist/src/public/channels/telegram/attachments.d.ts +31 -0
- package/dist/src/public/channels/telegram/attachments.js +1 -0
- package/dist/src/public/channels/telegram/defaults.d.ts +9 -0
- package/dist/src/public/channels/telegram/defaults.js +3 -0
- package/dist/src/public/channels/telegram/hitl.d.ts +59 -0
- package/dist/src/public/channels/telegram/hitl.js +1 -0
- package/dist/src/public/channels/telegram/inbound.d.ts +102 -0
- package/dist/src/public/channels/telegram/inbound.js +2 -0
- package/dist/src/public/channels/telegram/index.d.ts +19 -0
- package/dist/src/public/channels/telegram/index.js +1 -0
- package/dist/src/public/channels/telegram/telegramChannel.d.ts +127 -0
- package/dist/src/public/channels/telegram/telegramChannel.js +1 -0
- package/dist/src/public/channels/telegram/verify.d.ts +35 -0
- package/dist/src/public/channels/telegram/verify.js +1 -0
- package/dist/src/public/channels/twilio/api.d.ts +74 -0
- package/dist/src/public/channels/twilio/api.js +1 -0
- package/dist/src/public/channels/twilio/defaults.d.ts +17 -0
- package/dist/src/public/channels/twilio/defaults.js +3 -0
- package/dist/src/public/channels/twilio/inbound.d.ts +60 -0
- package/dist/src/public/channels/twilio/inbound.js +2 -0
- package/dist/src/public/channels/twilio/index.d.ts +5 -0
- package/dist/src/public/channels/twilio/index.js +1 -0
- package/dist/src/public/channels/twilio/twilioChannel.d.ts +195 -0
- package/dist/src/public/channels/twilio/twilioChannel.js +1 -0
- package/dist/src/public/channels/twilio/twiml.d.ts +37 -0
- package/dist/src/public/channels/twilio/twiml.js +1 -0
- package/dist/src/public/channels/twilio/verify.d.ts +50 -0
- package/dist/src/public/channels/twilio/verify.js +1 -0
- package/dist/src/public/channels/upload-policy.d.ts +101 -0
- package/dist/src/public/channels/upload-policy.js +1 -0
- package/dist/src/public/connections/errors.d.ts +117 -0
- package/dist/src/public/connections/errors.js +1 -0
- package/dist/src/public/connections/index.d.ts +9 -0
- package/dist/src/public/connections/index.js +1 -0
- package/dist/src/public/context/index.d.ts +14 -0
- package/dist/src/public/context/index.js +1 -0
- package/dist/src/public/definitions/agent.d.ts +24 -0
- package/dist/src/public/definitions/agent.js +1 -0
- package/dist/src/public/definitions/callback-context.d.ts +33 -0
- package/dist/src/public/definitions/callback-context.js +1 -0
- package/dist/src/public/definitions/channel.d.ts +126 -0
- package/dist/src/public/definitions/channel.js +1 -0
- package/dist/src/public/definitions/connections/mcp.d.ts +82 -0
- package/dist/src/public/definitions/connections/mcp.js +1 -0
- package/dist/src/public/definitions/connections/openapi.d.ts +99 -0
- package/dist/src/public/definitions/connections/openapi.js +1 -0
- package/dist/src/public/definitions/connections/protocol.d.ts +12 -0
- package/dist/src/public/definitions/connections/protocol.js +1 -0
- package/dist/src/public/definitions/defineChannel.d.ts +145 -0
- package/dist/src/public/definitions/defineChannel.js +1 -0
- package/dist/src/public/definitions/exact.d.ts +7 -0
- package/dist/src/public/definitions/exact.js +1 -0
- package/dist/src/public/definitions/hook.d.ts +60 -0
- package/dist/src/public/definitions/hook.js +1 -0
- package/dist/src/public/definitions/instructions.d.ts +31 -0
- package/dist/src/public/definitions/instructions.js +1 -0
- package/dist/src/public/definitions/instrumentation.d.ts +1 -0
- package/dist/src/public/definitions/instrumentation.js +1 -0
- package/dist/src/public/definitions/remote-agent.d.ts +49 -0
- package/dist/src/public/definitions/remote-agent.js +1 -0
- package/dist/src/public/definitions/sandbox-backend.d.ts +17 -0
- package/dist/src/public/definitions/sandbox-backend.js +1 -0
- package/dist/src/public/definitions/sandbox.d.ts +24 -0
- package/dist/src/public/definitions/sandbox.js +1 -0
- package/dist/src/public/definitions/schedule.d.ts +96 -0
- package/dist/src/public/definitions/schedule.js +1 -0
- package/dist/src/public/definitions/skill.d.ts +21 -0
- package/dist/src/public/definitions/skill.js +1 -0
- package/dist/src/public/definitions/source.d.ts +8 -0
- package/dist/src/public/definitions/source.js +1 -0
- package/dist/src/public/definitions/state.d.ts +37 -0
- package/dist/src/public/definitions/state.js +1 -0
- package/dist/src/public/definitions/tool.d.ts +285 -0
- package/dist/src/public/definitions/tool.js +1 -0
- package/dist/src/public/hooks/index.d.ts +8 -0
- package/dist/src/public/hooks/index.js +1 -0
- package/dist/src/public/index.d.ts +5 -0
- package/dist/src/public/index.js +1 -0
- package/dist/src/public/instructions/index.d.ts +7 -0
- package/dist/src/public/instructions/index.js +1 -0
- package/dist/src/public/instrumentation/index.d.ts +144 -0
- package/dist/src/public/instrumentation/index.js +1 -0
- package/dist/src/public/next/index.d.ts +86 -0
- package/dist/src/public/next/index.js +1 -0
- package/dist/src/public/next/server.d.ts +6 -0
- package/dist/src/public/next/server.js +1 -0
- package/dist/src/public/next/vercel-output-config.d.ts +9 -0
- package/dist/src/public/next/vercel-output-config.js +1 -0
- package/dist/src/public/nuxt/dev-server.d.ts +24 -0
- package/dist/src/public/nuxt/dev-server.js +1 -0
- package/dist/src/public/nuxt/index.d.ts +1 -0
- package/dist/src/public/nuxt/index.js +1 -0
- package/dist/src/public/nuxt/module.d.ts +43 -0
- package/dist/src/public/nuxt/module.js +1 -0
- package/dist/src/public/nuxt/routing.d.ts +55 -0
- package/dist/src/public/nuxt/routing.js +1 -0
- package/dist/src/public/nuxt/vercel-json.d.ts +17 -0
- package/dist/src/public/nuxt/vercel-json.js +1 -0
- package/dist/src/public/sandbox/backends/default.d.ts +22 -0
- package/dist/src/public/sandbox/backends/default.js +1 -0
- package/dist/src/public/sandbox/backends/local.d.ts +17 -0
- package/dist/src/public/sandbox/backends/local.js +1 -0
- package/dist/src/public/sandbox/backends/vercel.d.ts +24 -0
- package/dist/src/public/sandbox/backends/vercel.js +1 -0
- package/dist/src/public/sandbox/index.d.ts +13 -0
- package/dist/src/public/sandbox/index.js +1 -0
- package/dist/src/public/sandbox/local-sandbox.d.ts +7 -0
- package/dist/src/public/sandbox/local-sandbox.js +1 -0
- package/dist/src/public/sandbox/vercel-sandbox.d.ts +42 -0
- package/dist/src/public/sandbox/vercel-sandbox.js +1 -0
- package/dist/src/public/schedules/index.d.ts +4 -0
- package/dist/src/public/schedules/index.js +1 -0
- package/dist/src/public/skills/index.d.ts +7 -0
- package/dist/src/public/skills/index.js +1 -0
- package/dist/src/public/sveltekit/dev-server.d.ts +24 -0
- package/dist/src/public/sveltekit/dev-server.js +1 -0
- package/dist/src/public/sveltekit/index.d.ts +44 -0
- package/dist/src/public/sveltekit/index.js +1 -0
- package/dist/src/public/sveltekit/routing.d.ts +32 -0
- package/dist/src/public/sveltekit/routing.js +1 -0
- package/dist/src/public/sveltekit/vercel-json.d.ts +17 -0
- package/dist/src/public/sveltekit/vercel-json.js +1 -0
- package/dist/src/public/tool-result-narrowing.d.ts +74 -0
- package/dist/src/public/tool-result-narrowing.js +1 -0
- package/dist/src/public/tools/approval/approval-helpers.d.ts +19 -0
- package/dist/src/public/tools/approval/approval-helpers.js +1 -0
- package/dist/src/public/tools/approval/index.d.ts +5 -0
- package/dist/src/public/tools/approval/index.js +1 -0
- package/dist/src/public/tools/defaults.d.ts +60 -0
- package/dist/src/public/tools/defaults.js +1 -0
- package/dist/src/public/tools/define-bash-tool.d.ts +21 -0
- package/dist/src/public/tools/define-bash-tool.js +1 -0
- package/dist/src/public/tools/define-glob-tool.d.ts +22 -0
- package/dist/src/public/tools/define-glob-tool.js +1 -0
- package/dist/src/public/tools/define-grep-tool.d.ts +22 -0
- package/dist/src/public/tools/define-grep-tool.js +1 -0
- package/dist/src/public/tools/define-read-file-tool.d.ts +27 -0
- package/dist/src/public/tools/define-read-file-tool.js +1 -0
- package/dist/src/public/tools/define-write-file-tool.d.ts +22 -0
- package/dist/src/public/tools/define-write-file-tool.js +1 -0
- package/dist/src/public/tools/index.d.ts +12 -0
- package/dist/src/public/tools/index.js +1 -0
- package/dist/src/public/tools/internal.d.ts +12 -0
- package/dist/src/public/tools/internal.js +1 -0
- package/dist/src/public/types/json.d.ts +28 -0
- package/dist/src/public/types/json.js +1 -0
- package/dist/src/react/index.d.ts +3 -0
- package/dist/src/react/index.js +1 -0
- package/dist/src/react/use-eve-agent.d.ts +76 -0
- package/dist/src/react/use-eve-agent.js +1 -0
- package/dist/src/runtime/actions/keys.d.ts +11 -0
- package/dist/src/runtime/actions/keys.js +1 -0
- package/dist/src/runtime/actions/types.d.ts +150 -0
- package/dist/src/runtime/actions/types.js +1 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +37 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.js +1 -0
- package/dist/src/runtime/agent/bootstrap-model.d.ts +7 -0
- package/dist/src/runtime/agent/bootstrap-model.js +1 -0
- package/dist/src/runtime/agent/bootstrap.d.ts +44 -0
- package/dist/src/runtime/agent/bootstrap.js +1 -0
- package/dist/src/runtime/agent/mock-model-adapter.d.ts +21 -0
- package/dist/src/runtime/agent/mock-model-adapter.js +5 -0
- package/dist/src/runtime/agent/mock-model-skill-selection.d.ts +9 -0
- package/dist/src/runtime/agent/mock-model-skill-selection.js +4 -0
- package/dist/src/runtime/agent/mock-structured-output.d.ts +5 -0
- package/dist/src/runtime/agent/mock-structured-output.js +1 -0
- package/dist/src/runtime/agent/resolve-model.d.ts +11 -0
- package/dist/src/runtime/agent/resolve-model.js +1 -0
- package/dist/src/runtime/attributes/emit.d.ts +73 -0
- package/dist/src/runtime/attributes/emit.js +1 -0
- package/dist/src/runtime/cache-key.d.ts +9 -0
- package/dist/src/runtime/cache-key.js +1 -0
- package/dist/src/runtime/channels/registry.d.ts +27 -0
- package/dist/src/runtime/channels/registry.js +1 -0
- package/dist/src/runtime/compiled-artifacts-source.d.ts +44 -0
- package/dist/src/runtime/compiled-artifacts-source.js +1 -0
- package/dist/src/runtime/connections/authorization-complete-page.d.ts +11 -0
- package/dist/src/runtime/connections/authorization-complete-page.js +53 -0
- package/dist/src/runtime/connections/authorization-tokens.d.ts +51 -0
- package/dist/src/runtime/connections/authorization-tokens.js +1 -0
- package/dist/src/runtime/connections/callback-route.d.ts +55 -0
- package/dist/src/runtime/connections/callback-route.js +1 -0
- package/dist/src/runtime/connections/mcp-client.d.ts +74 -0
- package/dist/src/runtime/connections/mcp-client.js +1 -0
- package/dist/src/runtime/connections/openapi-client.d.ts +43 -0
- package/dist/src/runtime/connections/openapi-client.js +1 -0
- package/dist/src/runtime/connections/openapi-operations.d.ts +30 -0
- package/dist/src/runtime/connections/openapi-operations.js +1 -0
- package/dist/src/runtime/connections/openapi-schema.d.ts +39 -0
- package/dist/src/runtime/connections/openapi-schema.js +1 -0
- package/dist/src/runtime/connections/openapi-security.d.ts +41 -0
- package/dist/src/runtime/connections/openapi-security.js +1 -0
- package/dist/src/runtime/connections/openapi-spec.d.ts +20 -0
- package/dist/src/runtime/connections/openapi-spec.js +1 -0
- package/dist/src/runtime/connections/principal.d.ts +66 -0
- package/dist/src/runtime/connections/principal.js +1 -0
- package/dist/src/runtime/connections/registry.d.ts +36 -0
- package/dist/src/runtime/connections/registry.js +1 -0
- package/dist/src/runtime/connections/scoped-authorization.d.ts +61 -0
- package/dist/src/runtime/connections/scoped-authorization.js +1 -0
- package/dist/src/runtime/connections/types.d.ts +349 -0
- package/dist/src/runtime/connections/types.js +1 -0
- package/dist/src/runtime/connections/validate-authorization.d.ts +21 -0
- package/dist/src/runtime/connections/validate-authorization.js +1 -0
- package/dist/src/runtime/framework-channels/index.d.ts +11 -0
- package/dist/src/runtime/framework-channels/index.js +1 -0
- package/dist/src/runtime/framework-tools/ask-question.d.ts +21 -0
- package/dist/src/runtime/framework-tools/ask-question.js +1 -0
- package/dist/src/runtime/framework-tools/bash.d.ts +17 -0
- package/dist/src/runtime/framework-tools/bash.js +1 -0
- package/dist/src/runtime/framework-tools/code-mode-connection-auth.d.ts +29 -0
- package/dist/src/runtime/framework-tools/code-mode-connection-auth.js +1 -0
- package/dist/src/runtime/framework-tools/connection-search-dynamic.d.ts +35 -0
- package/dist/src/runtime/framework-tools/connection-search-dynamic.js +1 -0
- package/dist/src/runtime/framework-tools/file-state.d.ts +62 -0
- package/dist/src/runtime/framework-tools/file-state.js +1 -0
- package/dist/src/runtime/framework-tools/final-output.d.ts +14 -0
- package/dist/src/runtime/framework-tools/final-output.js +1 -0
- package/dist/src/runtime/framework-tools/glob.d.ts +17 -0
- package/dist/src/runtime/framework-tools/glob.js +2 -0
- package/dist/src/runtime/framework-tools/grep.d.ts +17 -0
- package/dist/src/runtime/framework-tools/grep.js +2 -0
- package/dist/src/runtime/framework-tools/index.d.ts +26 -0
- package/dist/src/runtime/framework-tools/index.js +1 -0
- package/dist/src/runtime/framework-tools/read-file.d.ts +17 -0
- package/dist/src/runtime/framework-tools/read-file.js +2 -0
- package/dist/src/runtime/framework-tools/skill.d.ts +4 -0
- package/dist/src/runtime/framework-tools/skill.js +1 -0
- package/dist/src/runtime/framework-tools/todo.d.ts +39 -0
- package/dist/src/runtime/framework-tools/todo.js +3 -0
- package/dist/src/runtime/framework-tools/web-fetch.d.ts +5 -0
- package/dist/src/runtime/framework-tools/web-fetch.js +2 -0
- package/dist/src/runtime/framework-tools/web-search.d.ts +26 -0
- package/dist/src/runtime/framework-tools/web-search.js +1 -0
- package/dist/src/runtime/framework-tools/write-file.d.ts +17 -0
- package/dist/src/runtime/framework-tools/write-file.js +2 -0
- package/dist/src/runtime/governance/auth/http-basic.d.ts +8 -0
- package/dist/src/runtime/governance/auth/http-basic.js +1 -0
- package/dist/src/runtime/governance/auth/jwt-ecdsa.d.ts +8 -0
- package/dist/src/runtime/governance/auth/jwt-ecdsa.js +1 -0
- package/dist/src/runtime/governance/auth/jwt-hmac.d.ts +8 -0
- package/dist/src/runtime/governance/auth/jwt-hmac.js +1 -0
- package/dist/src/runtime/governance/auth/oidc.d.ts +8 -0
- package/dist/src/runtime/governance/auth/oidc.js +1 -0
- package/dist/src/runtime/governance/auth/token-claims.d.ts +17 -0
- package/dist/src/runtime/governance/auth/token-claims.js +1 -0
- package/dist/src/runtime/governance/auth/types.d.ts +104 -0
- package/dist/src/runtime/governance/auth/types.js +1 -0
- package/dist/src/runtime/governance/network/ip-allow-list.d.ts +17 -0
- package/dist/src/runtime/governance/network/ip-allow-list.js +1 -0
- package/dist/src/runtime/graph.d.ts +46 -0
- package/dist/src/runtime/graph.js +1 -0
- package/dist/src/runtime/hooks/registry.d.ts +40 -0
- package/dist/src/runtime/hooks/registry.js +1 -0
- package/dist/src/runtime/input/types.d.ts +78 -0
- package/dist/src/runtime/input/types.js +1 -0
- package/dist/src/runtime/loaders/artifact-paths.d.ts +18 -0
- package/dist/src/runtime/loaders/artifact-paths.js +1 -0
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts +36 -0
- package/dist/src/runtime/loaders/bundled-artifacts.js +1 -0
- package/dist/src/runtime/loaders/compile-metadata.d.ts +14 -0
- package/dist/src/runtime/loaders/compile-metadata.js +1 -0
- package/dist/src/runtime/loaders/manifest.d.ts +21 -0
- package/dist/src/runtime/loaders/manifest.js +1 -0
- package/dist/src/runtime/loaders/module-map.d.ts +21 -0
- package/dist/src/runtime/loaders/module-map.js +1 -0
- package/dist/src/runtime/prompt/compose.d.ts +19 -0
- package/dist/src/runtime/prompt/compose.js +2 -0
- package/dist/src/runtime/prompt/connections.d.ts +9 -0
- package/dist/src/runtime/prompt/connections.js +2 -0
- package/dist/src/runtime/resolve-agent-graph.d.ts +17 -0
- package/dist/src/runtime/resolve-agent-graph.js +1 -0
- package/dist/src/runtime/resolve-agent.d.ts +16 -0
- package/dist/src/runtime/resolve-agent.js +1 -0
- package/dist/src/runtime/resolve-channel.d.ts +17 -0
- package/dist/src/runtime/resolve-channel.js +1 -0
- package/dist/src/runtime/resolve-connection.d.ts +15 -0
- package/dist/src/runtime/resolve-connection.js +1 -0
- package/dist/src/runtime/resolve-dynamic-instructions.d.ts +4 -0
- package/dist/src/runtime/resolve-dynamic-instructions.js +1 -0
- package/dist/src/runtime/resolve-dynamic-skill.d.ts +8 -0
- package/dist/src/runtime/resolve-dynamic-skill.js +1 -0
- package/dist/src/runtime/resolve-dynamic-tool.d.ts +12 -0
- package/dist/src/runtime/resolve-dynamic-tool.js +1 -0
- package/dist/src/runtime/resolve-helpers.d.ts +43 -0
- package/dist/src/runtime/resolve-helpers.js +1 -0
- package/dist/src/runtime/resolve-hook.d.ts +13 -0
- package/dist/src/runtime/resolve-hook.js +1 -0
- package/dist/src/runtime/resolve-sandbox.d.ts +13 -0
- package/dist/src/runtime/resolve-sandbox.js +1 -0
- package/dist/src/runtime/resolve-tool.d.ts +14 -0
- package/dist/src/runtime/resolve-tool.js +1 -0
- package/dist/src/runtime/sandbox/keys.d.ts +38 -0
- package/dist/src/runtime/sandbox/keys.js +1 -0
- package/dist/src/runtime/sandbox/registry.d.ts +61 -0
- package/dist/src/runtime/sandbox/registry.js +1 -0
- package/dist/src/runtime/sandbox/template-plan.d.ts +26 -0
- package/dist/src/runtime/sandbox/template-plan.js +1 -0
- package/dist/src/runtime/schedules/register.d.ts +35 -0
- package/dist/src/runtime/schedules/register.js +1 -0
- package/dist/src/runtime/schedules/resolve-schedule.d.ts +31 -0
- package/dist/src/runtime/schedules/resolve-schedule.js +1 -0
- package/dist/src/runtime/session-callback-route.d.ts +6 -0
- package/dist/src/runtime/session-callback-route.js +1 -0
- package/dist/src/runtime/sessions/auth.d.ts +39 -0
- package/dist/src/runtime/sessions/auth.js +1 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +47 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.js +1 -0
- package/dist/src/runtime/sessions/runtime-context-keys.d.ts +11 -0
- package/dist/src/runtime/sessions/runtime-context-keys.js +1 -0
- package/dist/src/runtime/sessions/runtime-session.d.ts +52 -0
- package/dist/src/runtime/sessions/runtime-session.js +1 -0
- package/dist/src/runtime/sessions/turn.d.ts +33 -0
- package/dist/src/runtime/sessions/turn.js +1 -0
- package/dist/src/runtime/skills/fragment-context.d.ts +4 -0
- package/dist/src/runtime/skills/fragment-context.js +1 -0
- package/dist/src/runtime/skills/sandbox-access.d.ts +21 -0
- package/dist/src/runtime/skills/sandbox-access.js +1 -0
- package/dist/src/runtime/subagents/registry.d.ts +32 -0
- package/dist/src/runtime/subagents/registry.js +1 -0
- package/dist/src/runtime/tools/registry.d.ts +30 -0
- package/dist/src/runtime/tools/registry.js +1 -0
- package/dist/src/runtime/types.d.ts +368 -0
- package/dist/src/runtime/types.js +1 -0
- package/dist/src/runtime/validation.d.ts +5 -0
- package/dist/src/runtime/validation.js +1 -0
- package/dist/src/runtime/workspace/seed-files.d.ts +15 -0
- package/dist/src/runtime/workspace/seed-files.js +1 -0
- package/dist/src/runtime/workspace/spec.d.ts +6 -0
- package/dist/src/runtime/workspace/spec.js +2 -0
- package/dist/src/runtime/workspace/types.d.ts +18 -0
- package/dist/src/runtime/workspace/types.js +1 -0
- package/dist/src/sandbox/state.d.ts +33 -0
- package/dist/src/sandbox/state.js +1 -0
- package/dist/src/services/dev-client/request-headers.d.ts +74 -0
- package/dist/src/services/dev-client/request-headers.js +1 -0
- package/dist/src/services/dev-client/stream.d.ts +5 -0
- package/dist/src/services/dev-client/stream.js +1 -0
- package/dist/src/services/dev-client/url.d.ts +11 -0
- package/dist/src/services/dev-client/url.js +1 -0
- package/dist/src/services/dev-client/vercel-auth-error.d.ts +42 -0
- package/dist/src/services/dev-client/vercel-auth-error.js +2 -0
- package/dist/src/services/dev-client.d.ts +75 -0
- package/dist/src/services/dev-client.js +1 -0
- package/dist/src/services/inspect-application.d.ts +23 -0
- package/dist/src/services/inspect-application.js +1 -0
- package/dist/src/shared/agent-definition.d.ts +154 -0
- package/dist/src/shared/agent-definition.js +1 -0
- package/dist/src/shared/code-mode.d.ts +29 -0
- package/dist/src/shared/code-mode.js +1 -0
- package/dist/src/shared/dynamic-tool-definition.d.ts +159 -0
- package/dist/src/shared/dynamic-tool-definition.js +1 -0
- package/dist/src/shared/errors.d.ts +17 -0
- package/dist/src/shared/errors.js +1 -0
- package/dist/src/shared/guards.d.ts +45 -0
- package/dist/src/shared/guards.js +1 -0
- package/dist/src/shared/json-schema.d.ts +9 -0
- package/dist/src/shared/json-schema.js +1 -0
- package/dist/src/shared/json-schemas.d.ts +10 -0
- package/dist/src/shared/json-schemas.js +1 -0
- package/dist/src/shared/json.d.ts +34 -0
- package/dist/src/shared/json.js +1 -0
- package/dist/src/shared/network-address.d.ts +11 -0
- package/dist/src/shared/network-address.js +1 -0
- package/dist/src/shared/node.d.ts +6 -0
- package/dist/src/shared/node.js +1 -0
- package/dist/src/shared/optional.d.ts +3 -0
- package/dist/src/shared/optional.js +1 -0
- package/dist/src/shared/run-mode.d.ts +7 -0
- package/dist/src/shared/run-mode.js +1 -0
- package/dist/src/shared/sandbox-backend.d.ts +149 -0
- package/dist/src/shared/sandbox-backend.js +1 -0
- package/dist/src/shared/sandbox-definition.d.ts +110 -0
- package/dist/src/shared/sandbox-definition.js +1 -0
- package/dist/src/shared/sandbox-network-policy.d.ts +23 -0
- package/dist/src/shared/sandbox-network-policy.js +1 -0
- package/dist/src/shared/sandbox-session.d.ts +144 -0
- package/dist/src/shared/sandbox-session.js +1 -0
- package/dist/src/shared/skill-definition.d.ts +24 -0
- package/dist/src/shared/skill-definition.js +1 -0
- package/dist/src/shared/skill-package.d.ts +50 -0
- package/dist/src/shared/skill-package.js +1 -0
- package/dist/src/shared/source-ref.d.ts +53 -0
- package/dist/src/shared/source-ref.js +1 -0
- package/dist/src/shared/tool-definition.d.ts +58 -0
- package/dist/src/shared/tool-definition.js +1 -0
- package/dist/src/shared/vercel-output-directory.d.ts +2 -0
- package/dist/src/shared/vercel-output-directory.js +1 -0
- package/dist/src/svelte/index.d.ts +3 -0
- package/dist/src/svelte/index.js +3 -0
- package/dist/src/svelte/use-eve-agent.d.ts +105 -0
- package/dist/src/svelte/use-eve-agent.js +3 -0
- package/dist/src/vue/index.d.ts +3 -0
- package/dist/src/vue/index.js +3 -0
- package/dist/src/vue/use-eve-agent.d.ts +103 -0
- package/dist/src/vue/use-eve-agent.js +3 -0
- package/package.json +336 -71
- package/.npmignore +0 -2
- package/component.json +0 -13
- package/dr.json +0 -10
- package/e.html +0 -66
- package/eve.js +0 -435
- package/template.dot +0 -13
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-step holding pen for the full interrupt signal a tool returns from
|
|
3
|
+
* `execute`.
|
|
4
|
+
*
|
|
5
|
+
* A tool signals a park (e.g. connection OAuth) by *returning* an
|
|
6
|
+
* {@link AuthorizationSignal}. The AI SDK records that return value as the
|
|
7
|
+
* tool-result `output`, which `experimental_telemetry`'s `recordOutputs`
|
|
8
|
+
* exports to OTel spans. So the {@link "#harness/tools.js"} wrapper hands the
|
|
9
|
+
* AI SDK a `resume`-redacted copy of the signal and stashes the full signal
|
|
10
|
+
* here; the park detector reads it back so the journaled challenges keep
|
|
11
|
+
* their `resume` value.
|
|
12
|
+
*
|
|
13
|
+
* Virtual context: never serialized, wiped each step. Set during `execute`
|
|
14
|
+
* and read post-step within the same `runStep` scope, so the slot always
|
|
15
|
+
* outlives the read and never crosses a boundary.
|
|
16
|
+
*/
|
|
17
|
+
import type { AlsContext } from "#context/container.js";
|
|
18
|
+
import type { AuthorizationSignal } from "#harness/authorization.js";
|
|
19
|
+
/** Stashes a tool's full interrupt signal under its `toolCallId` for the current step. */
|
|
20
|
+
export declare function stashToolInterrupt(ctx: AlsContext, toolCallId: string, signal: AuthorizationSignal): void;
|
|
21
|
+
/** Reads the full interrupt signal stashed for `toolCallId`, if any. */
|
|
22
|
+
export declare function readToolInterrupt(ctx: AlsContext, toolCallId: string): AuthorizationSignal | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ContextKey}from"#context/key.js";const PendingToolInterruptsKey=new ContextKey(`eve.pendingToolInterrupts`);function stashToolInterrupt(e,t,n){let r=e.get(PendingToolInterruptsKey)??{};asContainer(e).setVirtualContext(PendingToolInterruptsKey,{...r,[t]:n})}function readToolInterrupt(e,t){return e.get(PendingToolInterruptsKey)?.[t]}function asContainer(e){return e}export{readToolInterrupt,stashToolInterrupt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createErrorId,createLogger,formatError,logError,recordErrorOnSpan}from"#internal/logging.js";import{createAuthorizationRequiredEvent,createCompactionCompletedEvent,createCompactionRequestedEvent,createInputRequestedEvent,createResultCompletedEvent}from"#protocol/message.js";import{toErrorMessage}from"#shared/errors.js";import{ToolLoopAgent,isStepCount}from"ai";import{resolveInstalledPackageInfo}from"#internal/application/package.js";import{formatLanguageModelGatewayId}from"#internal/runtime-model.js";import{contextStorage,loadContext}from"#context/container.js";import{setEveAttributes}from"#runtime/attributes/emit.js";import{isCodeModeRuntimeActionInterrupt}from"#harness/code-mode-runtime-action-state.js";import{clearPendingCodeModeInterrupt,getPendingCodeModeInterrupt,setPendingCodeModeInterrupt}from"#harness/code-mode-interrupt-state.js";import{createRuntimeActionRequestFromToolCall,resolvePendingRuntimeActions,setPendingRuntimeActionBatch}from"#harness/runtime-actions.js";import{advanceStep,emitFailedStep,emitRecoverableFailedTurn,emitStepStarted,emitStreamContent,emitTurnEpilogue,emitTurnPreamble,getHarnessEmissionState,setHarnessEmissionState}from"#harness/emission.js";import{CODE_MODE_TOOL_NAME,loadCodeModeModule}from"#shared/code-mode.js";import{resolveAssistantStepText}from"#harness/messages.js";import{buildDynamicInstructionMessages}from"#context/dynamic-instruction-lifecycle.js";import{PendingSkillAnnouncementKey}from"#context/dynamic-skill-lifecycle.js";import{consumeDeferredStepInput,getApprovedTools,hasDeferredStepInput,hasStepInput,resolvePendingInput,setPendingInputBatch}from"#harness/input-requests.js";import{isAuthorizationSignal,setPendingAuthorization}from"#harness/authorization.js";import{buildDynamicTools}from"#context/build-dynamic-tools.js";import{isCodeModeConnectionAuthInterrupt}from"#runtime/framework-tools/code-mode-connection-auth.js";import{isSandboxEnabled,selectSandboxSurfaces}from"#harness/sandbox-surface.js";import{buildToolSetWithProviderTools}from"#harness/tools.js";import{ASK_QUESTION_TOOL_NAME}from"#runtime/framework-tools/ask-question.js";import{WEB_SEARCH_TOOL_DEFINITION}from"#runtime/framework-tools/web-search.js";import{extractQuestionInputRequests,extractToolApprovalInputRequests}from"#harness/input-extraction.js";import{applyLastToolCacheBreakpoint,applySystemCacheBreakpoint,detectPromptCachePath,getAnthropicCacheMarker}from"#harness/prompt-cache.js";import{resolveFrameworkToolFromUpstreamType,resolveGatewayPinForWebSearchBackend,resolveWebSearchBackend}from"#harness/provider-tools.js";import{context,trace}from"#compiled/@opentelemetry/api/index.js";import{hydrateSandboxAttachments,stageAttachmentsToSandbox}from"#harness/attachment-staging.js";import{applySandboxToolSet,buildSandboxHostTools,createEveCodeModeOptions}from"#harness/code-mode.js";import{createCodeModeLifecycle}from"#harness/code-mode-lifecycle.js";import{compactMessages,getInputTokenCount,resolveCompactionModel,shouldCompact}from"#harness/compaction.js";import{accumulateTurnUsage,getTurnUsageState,setTurnUsageState}from"#harness/turn-tag-state.js";import{buildTelemetryRuntimeContext}from"#harness/instrumentation-runtime-context.js";import{getInstrumentationConfig}from"#harness/instrumentation-config.js";import{readToolInterrupt}from"#harness/tool-interrupts.js";import{classifyModelCallError,extractModelCallErrorDetails,extractUnsupportedProviderToolTypes,summarizeKnownModelCallConfigError,summarizeKnownModelCallRequestError}from"#harness/model-call-error.js";import{extractWorkflowStreamWriteErrorDetails}from"#harness/workflow-stream-error.js";import{ensureOtelIntegration}from"#harness/otel-integration.js";import{buildStepHooks,emitStepActions,isInvalidToolCall}from"#harness/step-hooks.js";import{pruneToolResults}from"#harness/tool-result-pruning.js";import{FINAL_OUTPUT_TOOL_NAME,buildFinalOutputTool}from"#runtime/framework-tools/final-output.js";const environment=process.env.NODE_ENV??`unknown`,eveVersion=resolveInstalledPackageInfo().version,log=createLogger(`harness.tool-loop`);function logToolExecutionError(e){e.toolOutput.type===`tool-error`&&logError(log,`tool execution failed`,e.toolOutput.error,{toolName:e.toolCall.toolName,toolCallId:e.toolCall.toolCallId})}function enrichTelemetry(e,t,n){if(e===void 0)return;let r={};for(let e of Object.keys(n??{}))r[e]=!0;return{functionId:e.functionId??t,includeRuntimeContext:r,isEnabled:!0,recordInputs:e.recordInputs??!0,recordOutputs:e.recordOutputs??!0}}function resolveGatewayPinForStep(e){if(e.cachePath.kind!==`gateway-auto`||e.tools[WEB_SEARCH_TOOL_DEFINITION.name]===void 0)return;let t=resolveWebSearchBackend(e.modelReference);return t===null?void 0:resolveGatewayPinForWebSearchBackend(t)??void 0}function buildGatewayAttributionHeaders(e,t){if(typeof e!=`string`)return;let n=t?.agentName??t?.agentId,r=process.env.VERCEL_PROJECT_PRODUCTION_URL||process.env.VERCEL_URL,i=r?`https://${r}`:void 0;if(!n&&!i)return;let a={};return n&&(a[`x-title`]=n),i&&(a[`http-referer`]=i),a}const TURN_TRACE_STATE_KEY=`eve.harness.turnTrace`;function getTurnTraceState(e){return e.state?.[TURN_TRACE_STATE_KEY]}function setTurnTraceState(e,t){let n={traceId:t.traceId,spanId:t.spanId,traceFlags:t.traceFlags};return{...e,state:{...e.state,[TURN_TRACE_STATE_KEY]:n}}}function resolveStepOtelContext(e,t,n){if(t)return trace.setSpan(context.active(),t);if(e){let e=getTurnTraceState(n);if(e){let t=trace.wrapSpanContext({traceId:e.traceId,spanId:e.spanId,traceFlags:e.traceFlags});return trace.setSpan(context.active(),t)}}}function createToolLoopHarness(t){let n=t.handleEvent,a=getInstrumentationConfig();a!==void 0&&ensureOtelIntegration();let o=a===void 0?void 0:trace.getTracer(`eve`),s=t.runtimeIdentity?.agentName;async function runStep(e,t){let n;if(o&&hasStepInput(t)){let t=a?.functionId??s,r={"eve.version":eveVersion,"eve.environment":environment,"eve.session.id":e.sessionId};t&&(r[`ai.telemetry.functionId`]=t),n=o.startSpan(`ai.eve.turn`,{attributes:r})}let r=resolveStepOtelContext(o,n,e),executeStep=()=>executeStepBody(e,t,n);try{return r?await context.with(r,executeStep):await executeStep()}finally{n?.end()}}async function executeStepBody(o,c,l){let p=o;l&&(p=setTurnTraceState(p,l.spanContext()));let g=getHarnessEmissionState(p.state),v=consumeDeferredStepInput({input:c,session:p});p=v.session;let y=await resolvePendingRuntimeActions({emit:n,session:p,stepInput:v.input});if(y.outcome===`unresolved`)return{next:null,session:y.session};p=y.session;let b=resolvePendingInput({history:y.messages,resolveApprovalKey:resolveApprovalKeyFromTools(t.tools),session:p,stepInput:v.input});if(b.outcome===`unresolved`)return{next:null,session:b.session};n&&hasStepInput(c)&&(g=await emitTurnPreamble(n,c??{},g,t.runtimeIdentity),p=setHarnessEmissionState(p,g),l&&l.setAttribute(`eve.turn.id`,g.turnId)),p=b.session;let x=b.messages;if(v.input?.context!==void 0)for(let e of v.input.context)x.push({content:e,role:`user`});if(v.input?.message!==void 0&&!b.deferredMessage){let e=await stageAttachmentsToSandbox(v.input.message);x.push({content:e,role:`user`})}let S=await t.resolveModel(p.agent.modelReference),w=detectPromptCachePath(S),T=w.kind===`anthropic-direct`?getAnthropicCacheMarker():void 0,k=buildGatewayAttributionHeaders(S,t.runtimeIdentity);({messages:x,session:p}=await maybeCompact({emit:n,emissionState:g,headers:k,messages:x,model:S,onCompaction:t.onCompaction,resolveModel:t.resolveModel,session:p,telemetry:enrichTelemetry(a,s)??void 0}));let A=getApprovedTools(p),j=contextStorage.getStore(),M=await hydrateSandboxAttachments(x),N=[],P=[];for(let e of M)e.role===`system`?N.push(e):P.push(e);if(j!==void 0){N.push(...buildDynamicInstructionMessages(j));let e=j.get(PendingSkillAnnouncementKey);e!==void 0&&e.length>0&&N.push({role:`system`,content:e})}let F=P,prepareModelCallInput=e=>{let t=e?[{role:`system`,content:e}]:[],n=p.agent.system?[{role:`system`,content:p.agent.system}]:[],r=N.length>0||t.length>0?[...t,...n,...N]:void 0,i=r!==void 0&&T?applySystemCacheBreakpoint(r,T):r??p.agent.system??void 0;return{instructions:i,telemetryRuntimeContext:buildTelemetryRuntimeContext({eveVersion,authored:a,emissionState:g,environment,modelInput:{instructions:i,messages:F},session:p})}},runOneModelCall=async e=>{let{instructions:i,telemetryRuntimeContext:o}=e.preparedInput??prepareModelCallInput(e.extraSystemNote),c=selectSandboxSurfaces(t),l=await buildToolSetWithProviderTools({approvedTools:A,capabilities:t.capabilities,disabledProviderTools:e.disabledProviderTools,modelReference:p.agent.modelReference,tools:t.tools});if(j!==void 0){let e=buildDynamicTools(j);for(let t of e)l[t.name]??={description:t.description,inputSchema:t.inputSchema,execute:t.execute,outputSchema:t.outputSchema}}p.outputSchema!==void 0&&(l[FINAL_OUTPUT_TOOL_NAME]=buildFinalOutputTool(p.outputSchema));let u=c.length>0?(await applySandboxToolSet({harnessTools:t.tools,lifecycle:n===void 0?void 0:createCodeModeLifecycle({emit:n,emissionState:g,tools:t.tools}),tools:l,surfaces:c})).modelTools:l,m=T?applyLastToolCacheBreakpoint(u,T):u,h=resolveGatewayPinForStep({cachePath:w,modelReference:p.agent.modelReference,tools:m}),_=buildStepHooks({cachePath:w,emit:n,emissionState:g,emitStepStarted:e.suppressStepStartedEmission!==!0,gatewayPinProvider:h,marker:T,session:p}),v=new ToolLoopAgent({headers:k,instructions:i,model:S,onToolExecutionEnd:logToolExecutionError,onError(e){logError(log,`tool-loop stream error`,e.error)},onStepFinish:_.onStepFinish,prepareStep:_.prepareStep,runtimeContext:o,stopWhen:isStepCount(1),telemetry:enrichTelemetry(a,s,o),tools:m});return runModelCallWithRetries(async()=>{if(n){let e=await v.stream({messages:F}),{inlineActionResultCallIds:r,inlineToolResultParts:i}=await emitStreamContent(n,g,e.fullStream),a=await _.stepResult;return await emitStepActions(n,g,a,{excludedActionToolNames:new Set([ASK_QUESTION_TOOL_NAME,CODE_MODE_TOOL_NAME,FINAL_OUTPUT_TOOL_NAME]),inlineActionResultCallIds:r,tools:t.tools}),i.length>0?{content:a.content,finishReason:a.finishReason,response:{...a.response,messages:[{role:`tool`,content:[...i]},...a.response.messages]},text:a.text,toolCalls:a.toolCalls,toolResults:a.toolResults,usage:a.usage}:a}return await v.generate({messages:F}),await _.stepResult},{sessionId:p.sessionId,turnId:g.turnId})},I=prepareModelCallInput();n&&await emitStepStarted(n,g,x);let L=await continuePendingCodeModeInterrupt({capabilities:t.capabilities,childResults:v.input?.runtimeActionResults,config:t,emit:n,emissionState:g,messages:x,runStep,session:p});if(L!==null)return L;let R;try{R=await runOneModelCall({preparedInput:I,suppressStepStartedEmission:!0})}catch(t){let r=await attemptUnsupportedProviderToolRecovery({error:t,runOneModelCall,sessionId:p.sessionId,turnId:g.turnId});if(r.outcome===`recovered`)R=r.result;else{let t=r.error;if(l&&recordErrorOnSpan(l,t),!n)throw t;let a=extractWorkflowStreamWriteErrorDetails(t);if(a!==null){let r=createErrorId();return log.error(`workflow stream write failed — parking session for retry by the user`,{...a,errorId:r,error:t,sessionId:p.sessionId,turnId:g.turnId}),g=await emitRecoverableFailedTurn(n,g,{code:`WORKFLOW_STREAM_WRITE_FAILED`,details:{...a,errorId:r},message:toErrorMessage(t)}),{next:null,session:setHarnessEmissionState(p,g)}}let o=classifyModelCallError(t),s=createErrorId(),c=o===`terminal`?summarizeKnownModelCallConfigError(t):null,d=c===null?summarizeKnownModelCallRequestError(t):null,f=c?.message??d?.message??toErrorMessage(t),m=extractModelCallErrorDetails(t),h=buildModelCallFailureDetails({configSummary:c,error:t,errorId:s,modelCallDetails:m,requestSummary:d}),_=buildModelCallFailureLogFields({error:t,errorId:s,modelCallDetails:m,requestSummary:d,sessionId:p.sessionId,turnId:g.turnId});return o===`terminal`?(c===null?log.error(d?.message??`model call failed terminally`,_):log.error(`${c.name}: ${c.message}`,{errorId:s,sessionId:p.sessionId,turnId:g.turnId}),await emitFailedStep(n,g,{code:`MODEL_CALL_FAILED`,details:h,message:f,sessionId:p.sessionId}),{next:{done:!0,output:``},session:p}):(log.error(d?.message??`model call failed — parking session for retry by the user`,_),g=await emitRecoverableFailedTurn(n,g,{code:`MODEL_CALL_FAILED`,details:h,message:f}),{next:null,session:setHarnessEmissionState(p,g)})}}let z=accumulateTurnUsage({previous:getTurnUsageState(p.state),turnId:g.turnId,usage:R.usage??{}});p=setTurnUsageState(p,z);let B;try{B=formatLanguageModelGatewayId(S)}catch{B=void 0}return await setEveAttributes({"$eve.model":B,"$eve.input_tokens":z.inputTokens,"$eve.output_tokens":z.outputTokens,"$eve.cache_read_tokens":z.cacheReadTokens,"$eve.tool_count":t.tools.size}),handleStepResult({config:t,emit:n,emissionState:g,promptMessages:x,result:R,runStep,session:p})}return runStep}function buildModelCallFailureDetails(e){let{configSummary:t,error:r,errorId:i,modelCallDetails:a,requestSummary:o}=e;return t===null?o===null?{...formatError(r,i),...a}:{errorId:i,message:toErrorMessage(r),name:o.name,...a}:{errorId:i,message:t.message,name:t.name,...a}}function buildModelCallFailureLogFields(e){let t={errorId:e.errorId,sessionId:e.sessionId,turnId:e.turnId};return e.requestSummary===null?{...t,error:e.error}:{...t,details:e.modelCallDetails}}async function attemptUnsupportedProviderToolRecovery(e){let t=extractUnsupportedProviderToolTypes(e.error);if(t.length===0)return{outcome:`failed`,error:e.error};let n=[];for(let e of t){let t=resolveFrameworkToolFromUpstreamType(e);t!==null&&!n.includes(t)&&n.push(t)}if(n.length===0)return{outcome:`failed`,error:e.error};log.warn(`disabling unsupported provider tool(s); retrying step once`,{disabled:n,sessionId:e.sessionId,turnId:e.turnId,upstreamTypes:t});try{return{outcome:`recovered`,result:await e.runOneModelCall({disabledProviderTools:new Set(n),extraSystemNote:buildDisabledToolNote(n),suppressStepStartedEmission:!0})}}catch(e){return{outcome:`failed`,error:e}}}function buildDisabledToolNote(e){let t=e.join(`, `);return`The following ${e.length===1?`tool is`:`tools are`} not available with the current model and has been removed: ${t}. Proceed using the remaining tools or your training knowledge.`}async function handleStepResult(e){let{config:t,emit:n,promptMessages:r,result:i,runStep:o}=e,{emissionState:s,session:l}=e,u=i.response.messages,d=resolveAssistantStepText(u,i.text),f={...l,compaction:createNextCompactionConfig(l.compaction,r,i)};if(isSandboxEnabled(t)){let{getCodeModeInterrupt:e}=await loadCodeModeModule(),a=e(i);if(a!==void 0)return parkOnCodeModeInterrupt({baseSession:f,config:t,emit:n,emissionState:s,interrupt:a,promptMessages:r,responseMessages:u})}let p=extractToolApprovalInputRequests({content:i.content??[]}),m=new Set(p.map(e=>e.action.callId)),h=extractQuestionInputRequests({toolCalls:i.toolCalls,excludedCallIds:m}),_=[...p,...h],v=(i.toolCalls??[]).filter(e=>!isInvalidToolCall(e)).filter(e=>t.tools.get(e.toolName)?.runtimeAction!==void 0).map(e=>createRuntimeActionRequestFromToolCall({toolCall:e,tools:t.tools}));if(v.length>0)return{next:null,session:setHarnessEmissionState(setPendingRuntimeActionBatch({actions:v,event:{sequence:s.sequence,stepIndex:s.stepIndex,turnId:s.turnId},responseMessages:u,session:{...f,history:[...r]}}),s)};if(_.length>0){let e=setPendingInputBatch({requests:_,responseMessages:u,session:{...f,history:[...r]}});return n&&(await n(createInputRequestedEvent({requests:_,sequence:s.sequence,stepIndex:s.stepIndex,turnId:s.turnId})),t.mode===`conversation`&&(s=await emitTurnEpilogue(n,s,t.mode),e=setHarnessEmissionState(e,s))),{next:null,session:e}}let y=(i.toolResults??[]).find(e=>isAuthorizationSignal(e.output));if(y&&isAuthorizationSignal(y.output)){let{challenges:e}=readToolInterrupt(loadContext(),y.toolCallId)??y.output;if(n)for(let t of e)await n(createAuthorizationRequiredEvent({authorization:t.challenge,name:t.name,description:t.challenge.instructions??`Authorization required for ${t.name}`,webhookUrl:t.hookUrl,sequence:s.sequence,stepIndex:s.stepIndex,turnId:s.turnId}));return{next:null,session:setHarnessEmissionState({...f,history:[...r],state:setPendingAuthorization(f.state,{challenges:e})},s)}}let b=pruneToolResults(r),x=b!==r,C=f.compaction;x&&C.lastKnownInputTokens!==void 0&&(C={recentWindowSize:C.recentWindowSize,threshold:C.threshold});let E=[...b,...u],D={...f,compaction:C,history:E},O=!(D.outputSchema!==void 0&&extractFinalOutput(i)!==void 0)&&(u.at(-1)?.role===`tool`||hasDeferredStepInput(D));return!O&&D.outputSchema===void 0&&d===null&&log.warn(`model completed terminal step without visible assistant text`,{finishReason:i.finishReason,mode:t.mode,responseMessageCount:u.length,responseMessageRoles:u.map(e=>e.role),sequence:s.sequence,sessionId:l.sessionId,stepIndex:s.stepIndex,turnId:s.turnId}),O?(n&&(s=advanceStep(s),D=setHarnessEmissionState(D,s)),{next:o,session:D}):t.mode===`task`?finishTaskTurn({emissionState:s,emit:n,prunedHistory:b,result:i,schema:D.outputSchema,session:D,stepOutput:d}):finishConversationTurn({emissionState:s,emit:n,prunedHistory:b,result:i,schema:D.outputSchema,session:D})}const OUTPUT_SCHEMA_NOT_FULFILLED={code:`OUTPUT_SCHEMA_NOT_FULFILLED`,message:`The agent could not produce a result matching the requested schema.`};function extractFinalOutput(e){return(e.toolCalls??[]).find(e=>e.toolName===FINAL_OUTPUT_TOOL_NAME)?.input}function persistStructuredAssistantTurn(e,t,n){return{...e,history:[...t,{content:JSON.stringify(n),role:`assistant`}],outputSchema:void 0}}async function emitStructuredResult(e,t,n,r){return await e(createResultCompletedEvent({result:n,sequence:t.sequence,stepIndex:t.stepIndex,turnId:t.turnId})),emitTurnEpilogue(e,t,r)}async function finishTaskTurn(e){let{emit:t,prunedHistory:n,result:r,schema:i,stepOutput:a}=e,{emissionState:o,session:s}=e;if(i===void 0)return t&&(o=await emitTurnEpilogue(t,o,`task`),s=setHarnessEmissionState(s,o)),{next:{done:!0,output:a??``},session:s};let c=extractFinalOutput(r);return c===void 0?(t&&await emitFailedStep(t,o,{...OUTPUT_SCHEMA_NOT_FULFILLED,sessionId:s.sessionId}),{next:{done:!0,isError:!0,output:OUTPUT_SCHEMA_NOT_FULFILLED.message},session:s}):(s=persistStructuredAssistantTurn(s,n,c),t&&(o=await emitStructuredResult(t,o,c,`task`),s=setHarnessEmissionState(s,o)),{next:{done:!0,output:c},session:s})}async function finishConversationTurn(e){let{emit:t,prunedHistory:n,result:r,schema:i}=e,{emissionState:a,session:o}=e;if(i===void 0)return t&&(a=await emitTurnEpilogue(t,a,`conversation`),o=setHarnessEmissionState(o,a)),{next:null,session:o};let s=extractFinalOutput(r);return s===void 0?(t&&(a=await emitRecoverableFailedTurn(t,a,OUTPUT_SCHEMA_NOT_FULFILLED),o=setHarnessEmissionState(o,a)),{next:null,session:o}):(o=persistStructuredAssistantTurn(o,n,s),t&&(a=await emitStructuredResult(t,a,s,`conversation`),o=setHarnessEmissionState(o,a)),{next:null,session:o})}async function continuePendingCodeModeInterrupt(e){let t=getPendingCodeModeInterrupt(e.session.state);if(t===void 0)return null;let{continueCodeModeApproval:n,continueCodeModeInterrupt:i,getCodeModeApprovalResponse:a,isCodeModeApprovalInterrupt:o,replaceCodeModeInterruptResult:s,unwrapCodeModeResult:c}=await loadCodeModeModule(),l=t.interrupt,d=o(l)?a([...e.messages],l):void 0;if(o(l)&&d===void 0)return{next:null,session:e.session};let f=createEveCodeModeOptions({lifecycle:e.emit===void 0?void 0:createCodeModeLifecycle({emit:e.emit,emissionState:e.emissionState,skipReplayed:!0,tools:e.config.tools})}),p;try{let t=await buildSandboxHostTools({approvedTools:getApprovedTools(e.session),capabilities:e.capabilities,tools:e.config.tools});if(o(l)&&d!==void 0)p=await n({approvalResponse:d,interrupt:l,options:f,tools:t});else if(isCodeModeConnectionAuthInterrupt(l))p=await i({interrupt:l,resolution:{status:`authorized`},tools:t,options:f});else if(isCodeModeRuntimeActionInterrupt(l)){let n=e.childResults??[],r=l,a=0;for(;;){p=await i({interrupt:r,resolution:n[a]?.output,tools:t,options:f});let e=c(p);if(e.status!==`interrupted`||!isCodeModeRuntimeActionInterrupt(e.interrupt)||a+1>=n.length)break;a++,r=e.interrupt}}else throw Error(`Unsupported code-mode interrupt kind "${l.payload.kind}".`)}catch(e){logError(log,`code-mode interrupt continuation failed`,e),p={error:`code_mode_continuation_failed`,message:toErrorMessage(e),retryable:!1}}let m=c(p),h=m.status===`interrupted`?m.interrupt:m.output,g=[...e.session.history,...t.responseMessages],_=isCodeModeRuntimeActionInterrupt(l)?replaceCodeModeToolResult(g,l.outerToolCallId,h):s(g,l,h),x=clearPendingCodeModeInterrupt({...e.session,history:_});if(m.status===`interrupted`){let t=e.session.history.length,n=_.slice(0,t),r=_.slice(t);return x={...x,history:n},parkOnCodeModeInterrupt({baseSession:x,config:e.config,emit:e.emit,emissionState:e.emissionState,interrupt:m.interrupt,promptMessages:n,responseMessages:r})}return{next:e.runStep,session:x}}function replaceCodeModeToolResult(e,t,n){if(t===void 0)return[...e];let r=typeof n==`string`?{type:`text`,value:n}:{type:`json`,value:n};return e.map(e=>{if(e.role!==`tool`)return e;let n=e.content.map(e=>e.type!==`tool-result`||e.toolCallId!==t?e:{...e,output:r});return{...e,content:n}})}async function parkOnCodeModeInterrupt(e){let{isCodeModeApprovalInterrupt:t,toCodeModeApprovalMessages:n}=await loadCodeModeModule(),r=e.interrupt,i={...e.baseSession,history:[...e.promptMessages]};if(isCodeModeConnectionAuthInterrupt(r)){let t=[...r.payload.challenges??[]];if(e.emit)for(let n of t)await e.emit(createAuthorizationRequiredEvent({authorization:n.challenge,name:n.name,description:n.challenge.instructions??`Authorization required for ${n.name}`,webhookUrl:n.hookUrl,sequence:e.emissionState.sequence,stepIndex:e.emissionState.stepIndex,turnId:e.emissionState.turnId}));return{next:null,session:setPendingCodeModeInterrupt({interrupt:r,responseMessages:e.responseMessages,session:{...i,state:setPendingAuthorization(i.state,{challenges:t})}})}}if(t(r)){let t=n(r),a=extractToolApprovalInputRequests({content:extractAssistantContent(t)}),o=setPendingInputBatch({requests:a,responseMessages:t,session:setPendingCodeModeInterrupt({interrupt:r,responseMessages:e.responseMessages,session:i})});if(e.emit&&(await e.emit(createInputRequestedEvent({requests:a,sequence:e.emissionState.sequence,stepIndex:e.emissionState.stepIndex,turnId:e.emissionState.turnId})),e.config.mode===`conversation`)){let t=await emitTurnEpilogue(e.emit,e.emissionState,e.config.mode);o=setHarnessEmissionState(o,t)}return{next:null,session:o}}return{next:null,session:setHarnessEmissionState(setPendingCodeModeInterrupt({interrupt:r,responseMessages:e.responseMessages,session:i}),e.emissionState)}}function extractAssistantContent(e){let t=[];for(let n of e)n.role===`assistant`&&Array.isArray(n.content)&&t.push(...n.content);return t}function createNextCompactionConfig(e,t,n){let r={recentWindowSize:e.recentWindowSize,threshold:e.threshold};return n.usage?.inputTokens!==void 0&&(r.lastKnownInputTokens=n.usage.inputTokens,r.lastKnownPromptMessageCount=t.length),r}async function maybeCompact(e){let{emit:t,emissionState:n}=e,r=e.messages,i=e.session;if(!shouldCompact(r,i.compaction))return{messages:r,session:i};let a=await resolveCompactionModel({compactionModelReference:i.agent.compactionModelReference,model:e.model,modelReference:i.agent.modelReference,resolveModel:e.resolveModel});if(t&&await t(createCompactionRequestedEvent({modelId:formatLanguageModelGatewayId(a.model),sequence:n.sequence,sessionId:i.sessionId,turnId:n.turnId,usageInputTokens:getInputTokenCount(r,i.compaction)})),r=await compactMessages(r,a.model,i.compaction,a.providerOptions,e.telemetry,e.headers),e.onCompaction){let t=await e.onCompaction(i);i=t.session;for(let e of t.messages)r.push(e)}return t&&await t(createCompactionCompletedEvent({modelId:formatLanguageModelGatewayId(a.model),sequence:n.sequence,sessionId:i.sessionId,turnId:n.turnId})),{messages:r,session:i}}function resolveApprovalKeyFromTools(e){return t=>{let n=e.get(t.action.toolName);if(n?.approvalKey!==void 0)return n.approvalKey(t.action.input)}}async function runModelCallWithRetries(e,t){for(let n=1;;n++)try{return await e()}catch(e){if(n===3||classifyModelCallError(e)!==`retry`)throw e;let r=500*2**(n-1)+Math.floor(Math.random()*250);log.warn(`model call failed transiently — retrying`,{attempt:n,delayMs:r,sessionId:t.sessionId,turnId:t.turnId,error:e}),await new Promise(e=>setTimeout(e,r))}}export{createToolLoopHarness};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ModelMessage } from "ai";
|
|
2
|
+
/**
|
|
3
|
+
* Reactively prunes old tool-result content from conversation history.
|
|
4
|
+
*
|
|
5
|
+
* Recent results inside {@link PRUNE_PROTECT_TOKENS} are preserved.
|
|
6
|
+
* Older results are replaced with {@link PRUNED_PLACEHOLDER}.
|
|
7
|
+
*/
|
|
8
|
+
export declare function pruneToolResults(messages: readonly ModelMessage[]): ModelMessage[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{estimateTokens}from"#harness/compaction.js";function pruneToolResults(e){let t=collectToolResultLocations(e);if(t.length===0)return e;let n=0,r=0,i=new Set;for(let e of t)n<4e4?n+=e.tokens:(i.add(e.key),r+=e.tokens);return r<2e4?e:e.map((e,t)=>{if(e.role!==`tool`||!Array.isArray(e.content))return e;let n=!1,r=e.content.map((e,r)=>{let a=`${t}:${r}`;return i.has(a)?(n=!0,{...e,output:createPrunedToolResultOutput(`[Tool result pruned to save context. Call the tool again if needed.]`)}):e});return n?{...e,content:r}:e})}function collectToolResultLocations(t){let n=[];for(let r=t.length-1;r>=0;r--){let i=t[r];if(!(i===void 0||i.role!==`tool`||!Array.isArray(i.content)))for(let t=i.content.length-1;t>=0;t--){let a=i.content[t];a?.type===`tool-result`&&n.push({key:`${r}:${t}`,tokens:estimateTokens(a)})}}return n}function createPrunedToolResultOutput(e){return{type:`text`,value:e}}export{pruneToolResults};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type ToolSet } from "ai";
|
|
2
|
+
import type { SessionCapabilities } from "#channel/types.js";
|
|
3
|
+
import type { RuntimeModelReference } from "#runtime/agent/bootstrap.js";
|
|
4
|
+
import type { HarnessToolDefinition } from "#harness/execute-tool.js";
|
|
5
|
+
import type { HarnessToolMap } from "#harness/types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Builds an AI SDK `ToolSet` from unified harness tool definitions.
|
|
8
|
+
*
|
|
9
|
+
* Tools without `execute` are surfaced to the model as client-side tools
|
|
10
|
+
* (no server execution).
|
|
11
|
+
*
|
|
12
|
+
* The framework's `ask_question` tool is only exposed to the model when
|
|
13
|
+
* {@link SessionCapabilities.requestInput} is `true`. Sessions without
|
|
14
|
+
* the HITL capability (scheduled task roots and any subagent chain
|
|
15
|
+
* descending from one) never see the tool.
|
|
16
|
+
*
|
|
17
|
+
* Entries listed in `disabledProviderTools` are skipped entirely. Used
|
|
18
|
+
* by the harness recovery path when a gateway fallback provider has
|
|
19
|
+
* rejected a provider-specific tool — the tool is dropped for the
|
|
20
|
+
* retry call so the request can proceed without it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildToolSet(input: {
|
|
23
|
+
readonly approvedTools?: ReadonlySet<string>;
|
|
24
|
+
readonly capabilities?: SessionCapabilities;
|
|
25
|
+
readonly disabledProviderTools?: ReadonlySet<string>;
|
|
26
|
+
readonly tools: HarnessToolMap;
|
|
27
|
+
}): ToolSet;
|
|
28
|
+
/**
|
|
29
|
+
* Wraps a tool's `execute` so a returned {@link AuthorizationSignal} keeps the
|
|
30
|
+
* signal shape every consumer expects (the park detector, code-mode's
|
|
31
|
+
* host-tool bridge), while the per-challenge `resume` value (e.g. a custom-PKCE
|
|
32
|
+
* verifier) is stripped from the copy the AI SDK records, so it never lands in
|
|
33
|
+
* the recorded tool output / OTel span. The full signal is stashed out-of-band
|
|
34
|
+
* ({@link stashToolInterrupt}) for the park detector to journal.
|
|
35
|
+
*
|
|
36
|
+
* Code-mode host executions consume the raw signal directly (see
|
|
37
|
+
* `harness/code-mode.ts`) and their output is not a model-facing tool result,
|
|
38
|
+
* so they pass through untouched. Returns `undefined` for client-side tools
|
|
39
|
+
* (no `execute`).
|
|
40
|
+
*/
|
|
41
|
+
export declare function wrapToolExecute(definition: HarnessToolDefinition): ((input: any, options: {
|
|
42
|
+
readonly toolCallId: string;
|
|
43
|
+
}) => Promise<any>) | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Builds the AI SDK ToolSet for one harness step.
|
|
46
|
+
*
|
|
47
|
+
* Most tools have local executors and are assembled by {@link buildToolSet}.
|
|
48
|
+
* Provider-managed tools (e.g. web_search) have no local `execute` — the
|
|
49
|
+
* execution layer intentionally omits it. This function detects the gap and
|
|
50
|
+
* injects the real AI SDK provider tool in their place.
|
|
51
|
+
* If the current model cannot supply that provider tool, the framework
|
|
52
|
+
* sentinel is removed instead of being exposed as an unexecutable tool.
|
|
53
|
+
*
|
|
54
|
+
* When a user overrides a provider-managed tool via `defineTool()`, their
|
|
55
|
+
* tool has a real executor and flows through the normal path — no
|
|
56
|
+
* replacement occurs.
|
|
57
|
+
*
|
|
58
|
+
* Tool names listed in `disabledProviderTools` are skipped entirely —
|
|
59
|
+
* both the framework definition and the injected provider tool are
|
|
60
|
+
* omitted from the returned set. Used by the harness recovery path when
|
|
61
|
+
* a gateway fallback provider has rejected a provider-specific tool.
|
|
62
|
+
*/
|
|
63
|
+
export declare function buildToolSetWithProviderTools(input: {
|
|
64
|
+
readonly approvedTools?: ReadonlySet<string>;
|
|
65
|
+
readonly capabilities?: SessionCapabilities;
|
|
66
|
+
readonly disabledProviderTools?: ReadonlySet<string>;
|
|
67
|
+
readonly modelReference: RuntimeModelReference;
|
|
68
|
+
readonly tools: HarnessToolMap;
|
|
69
|
+
}): Promise<ToolSet>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isObject}from"#shared/guards.js";import{tool}from"ai";import{loadContext}from"#context/container.js";import{isAuthorizationSignal,redactSignalResume}from"#harness/authorization.js";import{isCodeModeToolExecutionOptions}from"#runtime/framework-tools/code-mode-connection-auth.js";import{ASK_QUESTION_TOOL_NAME}from"#runtime/framework-tools/ask-question.js";import{WEB_SEARCH_TOOL_DEFINITION}from"#runtime/framework-tools/web-search.js";import{resolveWebSearchBackend,resolveWebSearchProviderTool}from"#harness/provider-tools.js";import{stashToolInterrupt}from"#harness/tool-interrupts.js";function buildToolSet(e){let n={},r=e.capabilities?.requestInput===!0,i=e.disabledProviderTools;for(let a of e.tools.values())a.name===ASK_QUESTION_TOOL_NAME&&!r||i?.has(a.name)||(n[a.name]=tool({description:a.description,execute:wrapToolExecute(a),inputSchema:a.inputSchema,needsApproval:buildNeedsApprovalFn(a,e),outputSchema:a.outputSchema,...a.toModelOutput===void 0?{}:{toModelOutput:({output:e})=>a.toModelOutput(e)}}));return n}function wrapToolExecute(e){let t=e.execute;if(t!==void 0)return async(e,o)=>{let s=await t(e);return!isAuthorizationSignal(s)||isCodeModeToolExecutionOptions(o)?s:(stashToolInterrupt(loadContext(),o.toolCallId,s),redactSignalResume(s))}}async function buildToolSetWithProviderTools(e){let t=e.disabledProviderTools,n={...buildToolSet({approvedTools:e.approvedTools,capabilities:e.capabilities,disabledProviderTools:t,tools:e.tools})};if(!t?.has(WEB_SEARCH_TOOL_DEFINITION.name)){let t=e.tools.get(WEB_SEARCH_TOOL_DEFINITION.name);if(t!==void 0&&t.execute===void 0){let t=resolveWebSearchBackend(e.modelReference);t===null?delete n[WEB_SEARCH_TOOL_DEFINITION.name]:n[WEB_SEARCH_TOOL_DEFINITION.name]=await resolveWebSearchProviderTool(t)}}return n}function buildNeedsApprovalFn(t,n){return async r=>{if(t.needsApproval===void 0)return!1;let i=isObject(r)?r:void 0;return t.needsApproval({approvedTools:n.approvedTools??new Set,toolInput:i,toolName:t.name})}}export{buildToolSet,buildToolSetWithProviderTools,wrapToolExecute};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-turn rolling token-usage accumulator for `$eve.*` observability
|
|
3
|
+
* tags. Lives on `session.state` so the totals survive workflow step
|
|
4
|
+
* boundaries the way the rest of the harness state does.
|
|
5
|
+
*
|
|
6
|
+
* The harness runs each turn as a sequence of `"use step"` invocations
|
|
7
|
+
* (one per tool-loop iteration). Each step knows its own
|
|
8
|
+
* `result.usage`, but the dashboard cares about totals **per turn**.
|
|
9
|
+
* The workflow runtime's attribute store is "last write wins" per key,
|
|
10
|
+
* so the simplest cumulative pattern is: read the previous total from
|
|
11
|
+
* `session.state`, add the new step's usage, write the running total
|
|
12
|
+
* back. The most recent emit then carries the final per-turn total.
|
|
13
|
+
*
|
|
14
|
+
* `turnId` keys the state so a fresh turn starts at zero without
|
|
15
|
+
* relying on a separate "reset" code path — when the harness moves to
|
|
16
|
+
* a new turn, the stale totals are discarded automatically.
|
|
17
|
+
*/
|
|
18
|
+
import type { HarnessSession, SessionStateMap } from "#harness/types.js";
|
|
19
|
+
/**
|
|
20
|
+
* Rolling token usage for the in-flight turn.
|
|
21
|
+
*
|
|
22
|
+
* `turnId` is the in-flight turn's stable id; when the harness step
|
|
23
|
+
* runs in a different turn (or with the empty-string between-turns
|
|
24
|
+
* sentinel), totals are reset.
|
|
25
|
+
*/
|
|
26
|
+
export interface TurnUsageState {
|
|
27
|
+
readonly cacheReadTokens: number;
|
|
28
|
+
readonly inputTokens: number;
|
|
29
|
+
readonly outputTokens: number;
|
|
30
|
+
readonly turnId: string;
|
|
31
|
+
}
|
|
32
|
+
/** Reads the stored per-turn token state, or `undefined` when absent. */
|
|
33
|
+
export declare function getTurnUsageState(state: SessionStateMap | undefined): TurnUsageState | undefined;
|
|
34
|
+
/** Writes per-turn token state onto a new copy of the session. */
|
|
35
|
+
export declare function setTurnUsageState(session: HarnessSession, next: TurnUsageState): HarnessSession;
|
|
36
|
+
/**
|
|
37
|
+
* Folds one step's `usage` into the running per-turn totals. When
|
|
38
|
+
* `turnId` differs from the stored state (e.g. a new turn just
|
|
39
|
+
* started), the previous totals are discarded — fresh turns start at
|
|
40
|
+
* zero without an explicit reset path.
|
|
41
|
+
*/
|
|
42
|
+
export declare function accumulateTurnUsage(input: {
|
|
43
|
+
readonly previous: TurnUsageState | undefined;
|
|
44
|
+
readonly turnId: string;
|
|
45
|
+
readonly usage: {
|
|
46
|
+
readonly cachedInputTokens?: number;
|
|
47
|
+
readonly inputTokens?: number;
|
|
48
|
+
readonly outputTokens?: number;
|
|
49
|
+
};
|
|
50
|
+
}): TurnUsageState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const HARNESS_TURN_USAGE_STATE_KEY=`eve.harness.turnUsage`,ZERO_USAGE={cacheReadTokens:0,inputTokens:0,outputTokens:0};function getTurnUsageState(t){return t?.[HARNESS_TURN_USAGE_STATE_KEY]}function setTurnUsageState(t,n){return{...t,state:{...t.state,[HARNESS_TURN_USAGE_STATE_KEY]:n}}}function accumulateTurnUsage(e){let n=e.previous!==void 0&&e.previous.turnId===e.turnId?e.previous:{...ZERO_USAGE,turnId:e.turnId};return{turnId:e.turnId,cacheReadTokens:n.cacheReadTokens+(e.usage.cachedInputTokens??0),inputTokens:n.inputTokens+(e.usage.inputTokens??0),outputTokens:n.outputTokens+(e.usage.outputTokens??0)}}export{accumulateTurnUsage,getTurnUsageState,setTurnUsageState};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import type { LanguageModel, ModelMessage, UserContent } from "ai";
|
|
2
|
+
import type { SessionCapabilities } from "#channel/types.js";
|
|
3
|
+
import type { HandleMessageStreamEvent, RuntimeIdentity } from "#protocol/message.js";
|
|
4
|
+
import type { RunMode } from "#shared/run-mode.js";
|
|
5
|
+
import type { RuntimeActionResult } from "#runtime/actions/types.js";
|
|
6
|
+
import type { RuntimeModelReference } from "#runtime/agent/bootstrap.js";
|
|
7
|
+
import type { InputResponse } from "#runtime/input/types.js";
|
|
8
|
+
import type { SandboxState } from "#sandbox/state.js";
|
|
9
|
+
import type { JsonObject } from "#shared/json.js";
|
|
10
|
+
import type { InternalToolDefinition } from "#shared/tool-definition.js";
|
|
11
|
+
import type { HarnessToolDefinition } from "#harness/execute-tool.js";
|
|
12
|
+
/**
|
|
13
|
+
* Serializable tool definition stored on the session.
|
|
14
|
+
*
|
|
15
|
+
* Carries schema but no execute function so the session stays serializable
|
|
16
|
+
* across workflow step boundaries.
|
|
17
|
+
*/
|
|
18
|
+
export type SessionToolDefinition = Readonly<InternalToolDefinition>;
|
|
19
|
+
/** Authored-key → opaque-value map stored on `session.state`. */
|
|
20
|
+
export type SessionStateMap = Readonly<Record<string, unknown>>;
|
|
21
|
+
/**
|
|
22
|
+
* Compaction configuration stored on the session.
|
|
23
|
+
*/
|
|
24
|
+
export interface CompactionConfig {
|
|
25
|
+
readonly lastKnownInputTokens?: number;
|
|
26
|
+
readonly lastKnownPromptMessageCount?: number;
|
|
27
|
+
readonly recentWindowSize: number;
|
|
28
|
+
readonly threshold: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Serializable agent configuration stored on the session.
|
|
32
|
+
*/
|
|
33
|
+
export interface SessionAgent {
|
|
34
|
+
/**
|
|
35
|
+
* Optional model used only for compaction summaries.
|
|
36
|
+
*
|
|
37
|
+
* When omitted, the harness uses the active turn model for compaction.
|
|
38
|
+
*/
|
|
39
|
+
readonly compactionModelReference?: RuntimeModelReference;
|
|
40
|
+
readonly modelReference: RuntimeModelReference;
|
|
41
|
+
readonly system: string;
|
|
42
|
+
readonly tools: readonly SessionToolDefinition[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Serializable session state passed between harness and runtime.
|
|
46
|
+
*
|
|
47
|
+
* Only contains plain data -- no resolved model instances or tool execute
|
|
48
|
+
* functions. The harness resolves those at step time via injected config.
|
|
49
|
+
*/
|
|
50
|
+
export interface HarnessSession {
|
|
51
|
+
readonly agent: SessionAgent;
|
|
52
|
+
readonly compaction: CompactionConfig;
|
|
53
|
+
readonly continuationToken: string;
|
|
54
|
+
readonly history: ModelMessage[];
|
|
55
|
+
readonly outputSchema?: JsonObject;
|
|
56
|
+
/**
|
|
57
|
+
* Stable identifier of the top user-facing session in the dispatch
|
|
58
|
+
* chain. For a top-level session this field is `undefined` and
|
|
59
|
+
* `sessionId` itself is the root. For any delegated subagent session,
|
|
60
|
+
* `rootSessionId` carries the original root sessionId so descendant
|
|
61
|
+
* dispatch sites (and observability tags) can attribute work back to
|
|
62
|
+
* the user-facing session without walking the chain.
|
|
63
|
+
*/
|
|
64
|
+
readonly rootSessionId?: string;
|
|
65
|
+
readonly sessionId: string;
|
|
66
|
+
readonly sandboxState?: SandboxState;
|
|
67
|
+
readonly state?: SessionStateMap;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Result returned by the compaction callback.
|
|
71
|
+
*
|
|
72
|
+
* `session` carries any state resets (e.g. clearing active skills).
|
|
73
|
+
* `messages` carries context to append to the compacted history
|
|
74
|
+
* (e.g. the current todo list as a user message).
|
|
75
|
+
*/
|
|
76
|
+
export interface CompactionCallbackResult {
|
|
77
|
+
readonly messages: readonly ModelMessage[];
|
|
78
|
+
readonly session: HarnessSession;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input payload for a harness turn.
|
|
82
|
+
*
|
|
83
|
+
* Carries an optional message and/or structured input responses from the
|
|
84
|
+
* channel emitter's `onDeliver`. The message may be a plain text string or
|
|
85
|
+
* a structured AI SDK {@link UserContent} array (mixing `text`, `image`,
|
|
86
|
+
* and `file` parts) to support multimodal attachments delivered by
|
|
87
|
+
* channels. The harness resolves any pending input batch at the start of
|
|
88
|
+
* `runStep` before the model call.
|
|
89
|
+
*/
|
|
90
|
+
export interface StepInput {
|
|
91
|
+
readonly inputResponses?: readonly InputResponse[];
|
|
92
|
+
readonly message?: string | UserContent;
|
|
93
|
+
/**
|
|
94
|
+
* Context strings from the channel delivery. Each entry is appended
|
|
95
|
+
* as a `role: "user"` message to `session.history` before the
|
|
96
|
+
* delivery message. Populated by channels via `SendPayload.context`.
|
|
97
|
+
*/
|
|
98
|
+
readonly context?: readonly string[];
|
|
99
|
+
/**
|
|
100
|
+
* Run-scoped schema that replaces the session's current output schema when
|
|
101
|
+
* present. Omitted continuations keep the existing schema.
|
|
102
|
+
*/
|
|
103
|
+
readonly outputSchema?: JsonObject;
|
|
104
|
+
/**
|
|
105
|
+
* Runtime-owned action results being resumed into the current turn.
|
|
106
|
+
*
|
|
107
|
+
* This field is internal to the execution/harness boundary and is never
|
|
108
|
+
* produced by channels.
|
|
109
|
+
*/
|
|
110
|
+
readonly runtimeActionResults?: readonly RuntimeActionResult[];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Terminal result indicating the conversation is finished.
|
|
114
|
+
*/
|
|
115
|
+
export interface StepDone {
|
|
116
|
+
readonly done: true;
|
|
117
|
+
readonly output: unknown;
|
|
118
|
+
/**
|
|
119
|
+
* Marks a terminal turn that failed (e.g. a task-mode turn that could not
|
|
120
|
+
* fulfil its output schema). For a delegated subagent this routes the result
|
|
121
|
+
* to the parent as an error tool-result rather than an empty success.
|
|
122
|
+
*/
|
|
123
|
+
readonly isError?: boolean;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The harness's instruction to the runtime about what to do next.
|
|
127
|
+
*
|
|
128
|
+
* - A `StepFn` reference means "call this step immediately" (tool loop continuation).
|
|
129
|
+
* - `null` means "park and wait for the next user message."
|
|
130
|
+
* - `StepDone` means "the conversation is finished."
|
|
131
|
+
*/
|
|
132
|
+
export type StepNext = StepDone | StepFn | null;
|
|
133
|
+
/**
|
|
134
|
+
* Result returned by one harness step invocation.
|
|
135
|
+
*/
|
|
136
|
+
export interface StepResult {
|
|
137
|
+
readonly next: StepNext;
|
|
138
|
+
readonly session: HarnessSession;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A single step of AI work. Takes the current session and optional user input,
|
|
142
|
+
* returns the updated session and an instruction for the runtime.
|
|
143
|
+
*/
|
|
144
|
+
export type StepFn = (session: HarnessSession, input?: StepInput) => Promise<StepResult>;
|
|
145
|
+
/**
|
|
146
|
+
* Map from tool name to its harness-owned definition.
|
|
147
|
+
*
|
|
148
|
+
* The harness uses these definitions for schema extraction, tool execution
|
|
149
|
+
* (via {@link buildToolSet}), approval gates, and compaction hooks.
|
|
150
|
+
*/
|
|
151
|
+
export type HarnessToolMap = ReadonlyMap<string, HarnessToolDefinition>;
|
|
152
|
+
/**
|
|
153
|
+
* Callback that writes one event to the event stream.
|
|
154
|
+
*
|
|
155
|
+
* Composed by the runtime from the underlying writable and the channel's
|
|
156
|
+
* event handler, then injected into the harness so it can emit lifecycle
|
|
157
|
+
* events without knowing about writables or handlers.
|
|
158
|
+
*/
|
|
159
|
+
export type HarnessEmitFn = (event: HandleMessageStreamEvent, messages?: readonly import("ai").ModelMessage[]) => Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Unified event handler: emits the event to the stream, then
|
|
162
|
+
* dispatches to hook subscribers and dynamic tool resolvers.
|
|
163
|
+
*
|
|
164
|
+
* Same signature as {@link HarnessEmitFn} but semantically broader —
|
|
165
|
+
* every event goes through channel adapter, stream write, hooks,
|
|
166
|
+
* and dynamic tool dispatch in one call.
|
|
167
|
+
*/
|
|
168
|
+
export type HandleEventFn = (event: HandleMessageStreamEvent, messages?: readonly import("ai").ModelMessage[]) => Promise<void>;
|
|
169
|
+
/**
|
|
170
|
+
* Dependencies injected into the tool-loop harness at construction time.
|
|
171
|
+
*/
|
|
172
|
+
export interface ToolLoopHarnessConfig {
|
|
173
|
+
/**
|
|
174
|
+
* Session-level capabilities. The harness reads
|
|
175
|
+
* {@link SessionCapabilities.requestInput} when assembling the
|
|
176
|
+
* per-step toolset to decide whether `ask_question` is available.
|
|
177
|
+
*/
|
|
178
|
+
readonly capabilities?: SessionCapabilities;
|
|
179
|
+
/**
|
|
180
|
+
* Routes executable tools through the sandboxed code-execution wrapper
|
|
181
|
+
* instead of exposing them directly to the model. Resolved by the
|
|
182
|
+
* runtime from the agent's `experimental.codeMode` flag (with the
|
|
183
|
+
* `EVE_EXPERIMENTAL_CODE_MODE` env backstop). Defaults to `false`.
|
|
184
|
+
*/
|
|
185
|
+
readonly codeMode?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Exposes the `Workflow` orchestration tool — a code-mode-style sandbox
|
|
188
|
+
* whose only callable operations are this agent's subagents and remote
|
|
189
|
+
* agents. Resolved by the runtime from the agent's `workflowEnabled` flag
|
|
190
|
+
* (set when `agent/tools/workflow.ts` re-exports the `Workflow` marker).
|
|
191
|
+
* Independent of {@link ToolLoopHarnessConfig.codeMode} — both may be on at
|
|
192
|
+
* once. Defaults to `false`.
|
|
193
|
+
*/
|
|
194
|
+
readonly workflow?: boolean;
|
|
195
|
+
readonly handleEvent?: HandleEventFn;
|
|
196
|
+
/**
|
|
197
|
+
* Execution mode for the current harness.
|
|
198
|
+
*
|
|
199
|
+
* Conversation mode parks after a final assistant reply so the runtime can
|
|
200
|
+
* await the next user message. Task mode must return `{ done: true, output }`
|
|
201
|
+
* for terminal assistant text inside the current invocation.
|
|
202
|
+
*/
|
|
203
|
+
readonly mode: RunMode;
|
|
204
|
+
/**
|
|
205
|
+
* Called after compaction to let the execution layer run session
|
|
206
|
+
* lifecycle hooks (e.g. tool compaction hooks). The harness applies
|
|
207
|
+
* the returned session and appends the returned messages to the
|
|
208
|
+
* compacted history.
|
|
209
|
+
*/
|
|
210
|
+
readonly onCompaction?: (session: HarnessSession) => CompactionCallbackResult | Promise<CompactionCallbackResult>;
|
|
211
|
+
readonly resolveModel: (reference: RuntimeModelReference) => Promise<LanguageModel>;
|
|
212
|
+
/**
|
|
213
|
+
* Runtime identity metadata attached to the `session.started` event.
|
|
214
|
+
*
|
|
215
|
+
* When provided, the harness includes this in the first `session.started`
|
|
216
|
+
* event so remote consumers (eval runners, reporters) receive
|
|
217
|
+
* authoritative server-side metadata.
|
|
218
|
+
*/
|
|
219
|
+
readonly runtimeIdentity?: RuntimeIdentity;
|
|
220
|
+
/**
|
|
221
|
+
* Unified tool definitions for this harness step.
|
|
222
|
+
*
|
|
223
|
+
* Each entry carries schema, execution, and approval gates. The
|
|
224
|
+
* harness derives AI SDK tool definitions, runs
|
|
225
|
+
* {@link buildToolSet}, and checks approval gates from these
|
|
226
|
+
* definitions directly.
|
|
227
|
+
*/
|
|
228
|
+
readonly tools: HarnessToolMap;
|
|
229
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { JsonObject } from "#shared/json.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parses a durable event-stream write failure raised by the workflow
|
|
4
|
+
* runtime's stream transport into structured diagnostics, or returns
|
|
5
|
+
* `null` when `error` is not such a failure.
|
|
6
|
+
*
|
|
7
|
+
* The harness emits every runtime event by writing to the workflow's
|
|
8
|
+
* durable `getWritable()` stream, and those writes are flushed to the
|
|
9
|
+
* workflow server over HTTP. Because the stream is consumed inside the
|
|
10
|
+
* harness's model-call try/catch, a failed flush (timeout, 5xx) would
|
|
11
|
+
* otherwise be misattributed to the model. This lets the harness label
|
|
12
|
+
* it as the workflow-infrastructure failure it is and attach the
|
|
13
|
+
* failing endpoint + platform error code as evidence.
|
|
14
|
+
*
|
|
15
|
+
* The returned object carries `operation` (`"write"`/`"close"`) and,
|
|
16
|
+
* when present in the message, `statusCode`, `url` (the `PUT` target),
|
|
17
|
+
* `vercelId` (`x-vercel-id`), and `vercelError` (`x-vercel-error`, e.g.
|
|
18
|
+
* `"FUNCTION_INVOCATION_TIMEOUT"`).
|
|
19
|
+
*
|
|
20
|
+
* Walks the cause chain so a wrapped transport error is still detected.
|
|
21
|
+
*/
|
|
22
|
+
export declare function extractWorkflowStreamWriteErrorDetails(error: unknown): JsonObject | null;
|
|
23
|
+
/**
|
|
24
|
+
* Returns `true` when `error` is a durable event-stream write failure
|
|
25
|
+
* raised by the workflow runtime's stream transport, not by the model
|
|
26
|
+
* provider. Thin predicate over
|
|
27
|
+
* {@link extractWorkflowStreamWriteErrorDetails}.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isWorkflowStreamWriteError(error: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isObject}from"#shared/guards.js";const WORKFLOW_STREAM_WRITE_ERROR_PATTERN=/^Stream (write|close) failed: HTTP (\d+)(?: \(([^)]*)\))?/;function extractWorkflowStreamWriteErrorDetails(e){for(let t of causeChainMessages(e)){let e=parseStreamErrorMessage(t);if(e!==null)return e}return null}function isWorkflowStreamWriteError(e){return extractWorkflowStreamWriteErrorDetails(e)!==null}function parseStreamErrorMessage(e){let n=WORKFLOW_STREAM_WRITE_ERROR_PATTERN.exec(e);if(n===null)return null;let r=Number(n[2]),i={operation:n[1]??``};Number.isFinite(r)&&(i.statusCode=r);for(let e of(n[3]??``).split(`; `))e.startsWith(`PUT `)?i.url=e.slice(4):e.startsWith(`x-vercel-id=`)?i.vercelId=e.slice(12):e.startsWith(`x-vercel-error=`)&&(i.vercelError=e.slice(15));return i}function*causeChainMessages(t){let n=new Set,r=t;for(;r!=null&&!n.has(r);){if(n.add(r),r instanceof Error){yield r.message,r=r.cause;continue}if(isObject(r)&&typeof r.message==`string`){yield r.message,r=r.cause;continue}return}}export{extractWorkflowStreamWriteErrorDetails,isWorkflowStreamWriteError};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the model-facing description for the `Workflow` orchestration tool.
|
|
3
|
+
*
|
|
4
|
+
* Dynamic in the agent's callable agents:
|
|
5
|
+
* - lists every callable agent by name (the built-in `agent` plus one per
|
|
6
|
+
* declared subagent and remote agent);
|
|
7
|
+
* - the worked example uses only the built-in `agent`, so it is valid for any
|
|
8
|
+
* agent;
|
|
9
|
+
* - a single simple subagent example is appended *only when* the agent has a
|
|
10
|
+
* declared subagent or remote agent (i.e. an agent other than `agent`).
|
|
11
|
+
*
|
|
12
|
+
* The exact input signatures auto-generated by `createCodeModeTool` are appended
|
|
13
|
+
* after this framing.
|
|
14
|
+
*
|
|
15
|
+
* @param toolNames - Names of the agent functions callable inside the sandbox.
|
|
16
|
+
*/
|
|
17
|
+
export declare function workflowToolDescription(toolNames: readonly string[]): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function workflowToolDescription(e){let t=e.length>0?e:[`agent`],n=t.map(e=>`\`${e}\``).join(`, `),r=t.filter(e=>e!==`agent`);return`Orchestrate this agent's subagents by writing a JavaScript program the runtime executes deterministically — fan out independent subtasks, run staged pipelines, and combine results in code, in a single step.
|
|
2
|
+
|
|
3
|
+
The only callable operations are these agents — no filesystem, network, shell, or other tools: ${n}. Call each as \`await tools.<name>(input)\`; it resolves to the child's result, or a typed object when you pass an \`outputSchema\`. Sequence with \`await\`, run agents concurrently with \`Promise.all([...])\`, and use \`map\`/\`filter\`/\`flatMap\` to build calls and combine results. The program's return value becomes the tool result.
|
|
4
|
+
|
|
5
|
+
Reach for this when work decomposes into independent or staged subtasks — map-reduce over a list, a plan-then-verify pipeline, or fan-out-and-gather. For a single delegation, call the agent directly.
|
|
6
|
+
|
|
7
|
+
Example — fan out across areas with \`agent\`, then pipe the results into a synthesis step:
|
|
8
|
+
\`\`\`js
|
|
9
|
+
const areas = ["correctness", "security", "performance"];
|
|
10
|
+
const reviews = await Promise.all(
|
|
11
|
+
areas.map((area) =>
|
|
12
|
+
tools.agent({
|
|
13
|
+
message: \`Review the change for \${area}.\`,
|
|
14
|
+
outputSchema: { type: "object", properties: { findings: { type: "array", items: { type: "string" } } } },
|
|
15
|
+
}),
|
|
16
|
+
),
|
|
17
|
+
);
|
|
18
|
+
const verdict = await tools.agent({
|
|
19
|
+
message: \`Summarize these findings into a verdict: \${JSON.stringify(reviews)}\`,
|
|
20
|
+
outputSchema: { type: "object", properties: { verdict: { type: "string" }, blocking: { type: "boolean" } } },
|
|
21
|
+
});
|
|
22
|
+
return verdict;
|
|
23
|
+
\`\`\`${r.length>0?`\n\nDeclared subagents are called the same way — e.g. \`const note = await tools.${r[0]}({ message: "..." });\`.`:``}`}export{workflowToolDescription};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "#public/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"#public/index.js";export{};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clears one Eve-owned cache directory when its recorded Eve version is missing
|
|
3
|
+
* or differs from the currently installed package version.
|
|
4
|
+
*/
|
|
5
|
+
export declare function prepareEveVersionedCacheDirectory(directoryPath: string): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* Writes the current installed Eve version into one Eve-owned cache directory.
|
|
8
|
+
*/
|
|
9
|
+
export declare function writeEveVersionedCacheMetadata(directoryPath: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{join}from"node:path";import{mkdir,readFile,rm,writeFile}from"node:fs/promises";import{resolveInstalledPackageInfo}from"#internal/application/package.js";const EVE_CACHE_METADATA_FILE=`eve-cache.json`;async function prepareEveVersionedCacheDirectory(e){let t=await readEveCacheVersion(e),n=resolveInstalledPackageInfo().version;t!==null&&t===n||await rm(e,{force:!0,recursive:!0})}async function writeEveVersionedCacheMetadata(n){await mkdir(n,{recursive:!0}),await writeFile(join(n,EVE_CACHE_METADATA_FILE),`${JSON.stringify({eveVersion:resolveInstalledPackageInfo().version},null,2)}\n`)}async function readEveCacheVersion(t){try{let r=JSON.parse(await readFile(join(t,EVE_CACHE_METADATA_FILE),`utf8`));return typeof r.eveVersion==`string`?r.eveVersion:null}catch(e){return e instanceof Error&&`code`in e&&e.code,null}}export{prepareEveVersionedCacheDirectory,writeEveVersionedCacheMetadata};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CompileAgentResult } from "#compiler/compile-agent.js";
|
|
2
|
+
/**
|
|
3
|
+
* Paths to the generated compiled-artifacts files shared by Nitro and the
|
|
4
|
+
* vendored workflow bundles for one application.
|
|
5
|
+
*/
|
|
6
|
+
export interface GeneratedCompiledArtifactsFiles {
|
|
7
|
+
/**
|
|
8
|
+
* Shared bundled-artifacts bootstrap installed by Nitro and vendored
|
|
9
|
+
* workflow handlers.
|
|
10
|
+
*/
|
|
11
|
+
bootstrapPath: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional Nitro plugin that imports the authored instrumentation module
|
|
14
|
+
* from the application when present.
|
|
15
|
+
*/
|
|
16
|
+
instrumentationPluginPath?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Absolute path to the authored instrumentation module when present.
|
|
19
|
+
* Nitro uses this to preserve the module's side effects during bundling.
|
|
20
|
+
*/
|
|
21
|
+
instrumentationSourcePath?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Writes the generated compiled-artifacts bootstrap module.
|
|
25
|
+
*
|
|
26
|
+
* The bootstrap self-installs bundled artifacts on import and exports a
|
|
27
|
+
* default function so it can be used directly as a Nitro plugin — no
|
|
28
|
+
* separate plugin wrapper file is needed.
|
|
29
|
+
*/
|
|
30
|
+
export declare function writeCompiledArtifactsFiles(input: {
|
|
31
|
+
compileResult: CompileAgentResult;
|
|
32
|
+
outDir: string;
|
|
33
|
+
}): Promise<GeneratedCompiledArtifactsFiles>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{join}from"node:path";import{mkdir,writeFile}from"node:fs/promises";import{existsSync}from"node:fs";import{resolvePackageSourceFilePath}from"#internal/application/package.js";import{createCompiledModuleMapSource}from"#compiler/module-map.js";import{stringifyEsmImportSpecifier}from"#internal/application/import-specifier.js";async function writeCompiledArtifactsFiles(r){let a=join(r.outDir,`compiled-artifacts-bootstrap.mjs`),o=join(r.outDir,`compiled-artifacts-instrumentation.mjs`),s=resolveInstrumentationModule(r.compileResult.manifest.agentRoot);await mkdir(r.outDir,{recursive:!0}),await writeFile(a,await createCompiledArtifactsBootstrapSource({compileResult:r.compileResult,installModulePath:resolvePackageSourceFilePath(`src/runtime/loaders/bundled-artifacts.ts`),moduleMapPath:a,metadata:r.compileResult.metadata})),s!==void 0&&await writeFile(o,createInstrumentationPluginSource({agentName:r.compileResult.manifest.config.name,instrumentationPath:s,registerConfigPath:resolvePackageSourceFilePath(`src/harness/instrumentation-config.ts`)}));let c={bootstrapPath:a};return s!==void 0&&(c.instrumentationPluginPath=o,c.instrumentationSourcePath=s),c}const INSTRUMENTATION_EXTENSIONS=[`.ts`,`.mts`,`.js`,`.mjs`];function resolveInstrumentationModule(t){for(let n of INSTRUMENTATION_EXTENSIONS){let i=join(t,`instrumentation${n}`);if(existsSync(i))return i}}function stripCompiledModuleMapExports(e){return e.replace(/^export const moduleMap = /m,`const moduleMap = `).replace(/\nexport default moduleMap;\n?$/,`
|
|
2
|
+
`)}async function createCompiledArtifactsBootstrapSource(e){let t=stripCompiledModuleMapExports(createCompiledModuleMapSource({importSpecifierStyle:`absolute`,manifest:e.compileResult.manifest,moduleMapPath:e.moduleMapPath})).trim();return[`// Generated by Eve. Do not edit by hand.`,`import { installBundledCompiledArtifacts } from ${stringifyEsmImportSpecifier(e.installModulePath)};`,``,t,``,`const metadata = ${JSON.stringify(e.metadata,null,2)};`,``,`const manifest = ${JSON.stringify(e.compileResult.manifest,null,2)};`,``,`export function installCompiledArtifactsBootstrap() {`,` installBundledCompiledArtifacts({`,` manifest,`,` metadata,`,` moduleMap,`,` });`,`}`,``,`installCompiledArtifactsBootstrap();`,``,`// Default export satisfies the Nitro plugin contract so this file`,`// can be used directly as a Nitro plugin without a separate wrapper.`,`export default function installCompiledArtifactsPlugin() {`,` // Already installed on import above.`,`}`,``,`export async function __eveInstallCompiledArtifactsStep() {`,` "use step";`,` return null;`,`}`,``].join(`
|
|
3
|
+
`)}function createInstrumentationPluginSource(e){return[`// Generated by Eve. Do not edit by hand.`,`import * as instrumentationModule from ${stringifyEsmImportSpecifier(e.instrumentationPath)};`,`import { registerInstrumentationConfig } from ${stringifyEsmImportSpecifier(e.registerConfigPath)};`,``,`if (instrumentationModule.default != null) {`,` registerInstrumentationConfig(instrumentationModule.default, { agentName: ${JSON.stringify(e.agentName)} });`,`}`,``,`// Default export satisfies the Nitro plugin contract so this file`,`// can be used directly as a Nitro plugin without a separate wrapper.`,`export default function installInstrumentationPlugin() {}`,``].join(`
|
|
4
|
+
`)}export{writeCompiledArtifactsFiles};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts filesystem paths into ESM-safe import specifiers.
|
|
3
|
+
*
|
|
4
|
+
* Node's ESM loader rejects raw Windows absolute paths such as
|
|
5
|
+
* `G:\app\handler.js` because the drive letter is parsed as a URL scheme.
|
|
6
|
+
* Generated source should import filesystem targets through `file://` URLs
|
|
7
|
+
* while leaving virtual, package, and relative specifiers usable by bundlers.
|
|
8
|
+
*/
|
|
9
|
+
export declare function normalizeEsmImportSpecifier(specifier: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Serializes an import specifier for direct insertion into generated ESM code.
|
|
12
|
+
*/
|
|
13
|
+
export declare function stringifyEsmImportSpecifier(specifier: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Rewrites generated ESM source containing raw Windows absolute imports.
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalizeGeneratedEsmImportSpecifiers(source: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const WINDOWS_DRIVE_ABSOLUTE_PATH_PATTERN=/^\/?[A-Za-z]:[\\/]/,WINDOWS_UNC_ABSOLUTE_PATH_PATTERN=/^\\\\[^\\]/,IMPORT_SPECIFIER_PATTERN=/(\b(?:from|import)\s*(?:\(\s*)?)(["'])([A-Za-z]:[\\/][^"'\n\r]*)\2/g;function isWindowsAbsolutePath(n){return WINDOWS_DRIVE_ABSOLUTE_PATH_PATTERN.test(n)||WINDOWS_UNC_ABSOLUTE_PATH_PATTERN.test(n)}function convertWindowsPathToFileUrl(e){let t=e.replaceAll(`\\`,`/`);return t.startsWith(`//`)?new URL(`file:${t}`).href:(/^\/[A-Za-z]:\//.test(t)&&(t=t.slice(1)),new URL(`file:///${t}`).href)}function splitPathSpecifierSuffix(e){let t=e.indexOf(`?`),n=e.indexOf(`#`),r=t===-1?n:n===-1?t:Math.min(t,n);return r===-1?{path:e,suffix:``}:{path:e.slice(0,r),suffix:e.slice(r)}}function normalizeEsmImportSpecifier(e){if(e.startsWith(`file://`))return e;let{path:t,suffix:n}=splitPathSpecifierSuffix(e);return isWindowsAbsolutePath(t)?`${convertWindowsPathToFileUrl(t)}${n}`:e.replaceAll(`\\`,`/`)}function stringifyEsmImportSpecifier(e){return JSON.stringify(normalizeEsmImportSpecifier(e))}function normalizeGeneratedEsmImportSpecifiers(e){return e.replace(IMPORT_SPECIFIER_PATTERN,(e,t,n,r)=>`${t}${n}${normalizeEsmImportSpecifier(r)}${n}`)}export{normalizeEsmImportSpecifier,normalizeGeneratedEsmImportSpecifiers,stringifyEsmImportSpecifier};
|