e2e 0.15.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build.json +1 -1
- package/dist/agent/act-validation.d.ts +10 -1
- package/dist/agent/act-validation.js +48 -1
- package/dist/agent/act.d.ts +1 -2
- package/dist/agent/act.js +29 -9
- package/dist/agent/action-dispatcher.d.ts +0 -1
- package/dist/agent/action-dispatcher.js +4 -6
- package/dist/agent/action-names.d.ts +0 -1
- package/dist/agent/action-names.js +0 -1
- package/dist/agent/actions.d.ts +32 -24
- package/dist/agent/actions.js +38 -25
- package/dist/agent/agent-brand.d.ts +0 -1
- package/dist/agent/agent-brand.js +0 -1
- package/dist/agent/ai-sdk.d.ts +7 -1
- package/dist/agent/ai-sdk.js +11 -1
- package/dist/agent/call-options.d.ts +0 -1
- package/dist/agent/call-options.js +0 -1
- package/dist/agent/default-agent.d.ts +0 -1
- package/dist/agent/default-agent.js +0 -1
- package/dist/agent/derived.d.ts +0 -1
- package/dist/agent/derived.js +0 -1
- package/dist/agent/error.d.ts +0 -1
- package/dist/agent/error.js +0 -1
- package/dist/agent/executor.d.ts +0 -1
- package/dist/agent/executor.js +0 -1
- package/dist/agent/index.d.ts +0 -1
- package/dist/agent/index.js +0 -1
- package/dist/agent/interactive-step.d.ts +0 -1
- package/dist/agent/interactive-step.js +0 -1
- package/dist/agent/invocation.d.ts +0 -1
- package/dist/agent/invocation.js +10 -5
- package/dist/agent/ledger.d.ts +0 -1
- package/dist/agent/ledger.js +0 -1
- package/dist/agent/loop-guards.d.ts +0 -1
- package/dist/agent/loop-guards.js +0 -1
- package/dist/agent/model/adapter.d.ts +0 -1
- package/dist/agent/model/adapter.js +0 -1
- package/dist/agent/model/overflow.d.ts +0 -1
- package/dist/agent/model/overflow.js +0 -1
- package/dist/agent/model/provider-hints.d.ts +0 -1
- package/dist/agent/model/provider-hints.js +0 -1
- package/dist/agent/model/schema.d.ts +0 -1
- package/dist/agent/model/schema.js +0 -1
- package/dist/agent/model/sdk.d.ts +0 -1
- package/dist/agent/model/sdk.js +2 -1
- package/dist/agent/model/stall.d.ts +0 -1
- package/dist/agent/model/stall.js +0 -1
- package/dist/agent/model/tool-choice.d.ts +0 -1
- package/dist/agent/model/tool-choice.js +0 -1
- package/dist/agent/observation-budget.d.ts +0 -1
- package/dist/agent/observation-budget.js +0 -1
- package/dist/agent/observation-feed.d.ts +5 -7
- package/dist/agent/observation-feed.js +5 -8
- package/dist/agent/observation.d.ts +40 -12
- package/dist/agent/observation.js +109 -60
- package/dist/agent/operation-queue.d.ts +0 -1
- package/dist/agent/operation-queue.js +0 -1
- package/dist/agent/phases.d.ts +0 -1
- package/dist/agent/phases.js +0 -1
- package/dist/agent/pixels.d.ts +0 -1
- package/dist/agent/pixels.js +0 -1
- package/dist/agent/point-tap.d.ts +8 -9
- package/dist/agent/point-tap.js +1 -2
- package/dist/agent/primitives.d.ts +6 -1
- package/dist/agent/primitives.js +4 -2
- package/dist/agent/prompts.d.ts +0 -1
- package/dist/agent/prompts.js +0 -1
- package/dist/agent/protocol.d.ts +0 -1
- package/dist/agent/protocol.js +0 -1
- package/dist/agent/public.d.ts +0 -1
- package/dist/agent/public.js +0 -1
- package/dist/agent/reading.d.ts +0 -1
- package/dist/agent/reading.js +0 -1
- package/dist/agent/replay.d.ts +19 -9
- package/dist/agent/replay.js +11 -15
- package/dist/agent/screen-update.d.ts +0 -1
- package/dist/agent/screen-update.js +0 -1
- package/dist/agent/scroll-target.d.ts +2 -4
- package/dist/agent/scroll-target.js +0 -1
- package/dist/agent/secrets.d.ts +0 -1
- package/dist/agent/secrets.js +0 -1
- package/dist/agent/settle-policy.d.ts +0 -1
- package/dist/agent/settle-policy.js +0 -1
- package/dist/agent/step-accounting.d.ts +0 -1
- package/dist/agent/step-accounting.js +0 -1
- package/dist/agent/step-cache.d.ts +41 -15
- package/dist/agent/step-cache.js +147 -63
- package/dist/agent/tool-loop.d.ts +0 -1
- package/dist/agent/tool-loop.js +2 -1
- package/dist/agent/tool-output.d.ts +0 -1
- package/dist/agent/tool-output.js +0 -1
- package/dist/agent/tool.d.ts +0 -1
- package/dist/agent/tool.js +0 -1
- package/dist/agent/transcript-compaction.d.ts +0 -1
- package/dist/agent/transcript-compaction.js +0 -1
- package/dist/agent/upload-paths.d.ts +0 -1
- package/dist/agent/upload-paths.js +0 -1
- package/dist/agent/usage.d.ts +0 -1
- package/dist/agent/usage.js +0 -1
- package/dist/cache/anchors.d.ts +72 -24
- package/dist/cache/anchors.js +233 -61
- package/dist/cache/context.d.ts +25 -15
- package/dist/cache/context.js +50 -9
- package/dist/cache/decide.d.ts +2 -3
- package/dist/cache/decide.js +4 -7
- package/dist/cache/identity.d.ts +18 -5
- package/dist/cache/identity.js +9 -5
- package/dist/cache/recorder.d.ts +15 -2
- package/dist/cache/recorder.js +36 -24
- package/dist/cache/rekeyed.d.ts +46 -0
- package/dist/cache/rekeyed.js +89 -0
- package/dist/cache/relocate.d.ts +14 -15
- package/dist/cache/relocate.js +33 -26
- package/dist/cache/route.d.ts +32 -34
- package/dist/cache/route.js +94 -51
- package/dist/cache/store.d.ts +6 -1
- package/dist/cache/store.js +21 -2
- package/dist/cache/template.d.ts +0 -1
- package/dist/cache/template.js +0 -1
- package/dist/cache/trace.d.ts +53 -15
- package/dist/cache/trace.js +70 -29
- package/dist/cli/bin.d.ts +0 -1
- package/dist/cli/bin.js +0 -1
- package/dist/cli/cache.d.ts +0 -1
- package/dist/cli/cache.js +0 -1
- package/dist/cli/docs-url.d.ts +0 -1
- package/dist/cli/docs-url.js +0 -1
- package/dist/cli/feedback.d.ts +0 -1
- package/dist/cli/feedback.js +0 -1
- package/dist/cli/guide.d.ts +0 -1
- package/dist/cli/guide.js +0 -1
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +10 -11
- package/dist/cli/init/agent-skill.d.ts +0 -1
- package/dist/cli/init/agent-skill.js +0 -1
- package/dist/cli/init/engines.d.ts +1 -4
- package/dist/cli/init/engines.js +2 -3
- package/dist/cli/init/gateways.d.ts +1 -2
- package/dist/cli/init/gateways.js +11 -2
- package/dist/cli/init/mcp-config.d.ts +0 -1
- package/dist/cli/init/mcp-config.js +0 -1
- package/dist/cli/init/package.d.ts +0 -1
- package/dist/cli/init/package.js +0 -1
- package/dist/cli/init/scaffold.d.ts +0 -1
- package/dist/cli/init/scaffold.js +0 -1
- package/dist/cli/init/sibling-versions.json +1 -1
- package/dist/cli/init/versions.d.ts +0 -9
- package/dist/cli/init/versions.js +1 -11
- package/dist/cli/init.d.ts +0 -1
- package/dist/cli/init.js +0 -1
- package/dist/cli/mcp.d.ts +9 -2
- package/dist/cli/mcp.js +14 -2
- package/dist/cli/signals.d.ts +0 -1
- package/dist/cli/signals.js +0 -1
- package/dist/cli/skill.d.ts +0 -1
- package/dist/cli/skill.js +0 -1
- package/dist/cli/telemetry.d.ts +0 -1
- package/dist/cli/telemetry.js +1 -2
- package/dist/cli/wordmark.d.ts +0 -1
- package/dist/cli/wordmark.js +0 -1
- package/dist/collect/collect.d.ts +0 -1
- package/dist/collect/collect.js +3 -2
- package/dist/collect/registry.d.ts +6 -3
- package/dist/collect/registry.js +31 -14
- package/dist/collect/select.d.ts +0 -1
- package/dist/collect/select.js +0 -1
- package/dist/config/agent.d.ts +0 -1
- package/dist/config/agent.js +0 -1
- package/dist/config/app.d.ts +0 -1
- package/dist/config/app.js +0 -1
- package/dist/config/command.d.ts +0 -1
- package/dist/config/command.js +0 -1
- package/dist/config/diagnose.d.ts +0 -1
- package/dist/config/diagnose.js +0 -1
- package/dist/config/esm-hooks.d.ts +0 -1
- package/dist/config/esm-hooks.js +0 -1
- package/dist/config/load.d.ts +0 -1
- package/dist/config/load.js +0 -1
- package/dist/config/resolve.d.ts +1 -1
- package/dist/config/resolve.js +33 -2
- package/dist/config/secrets.d.ts +0 -1
- package/dist/config/secrets.js +0 -1
- package/dist/config/targets.d.ts +0 -1
- package/dist/config/targets.js +0 -1
- package/dist/config/validate.d.ts +0 -1
- package/dist/config/validate.js +0 -1
- package/dist/engine/contract.d.ts +0 -1
- package/dist/engine/contract.js +0 -1
- package/dist/engine/index.d.ts +3 -4
- package/dist/engine/index.js +4 -4
- package/dist/engine/manifest.d.ts +0 -1
- package/dist/engine/manifest.js +0 -1
- package/dist/engine/recording.d.ts +0 -1
- package/dist/engine/recording.js +0 -1
- package/dist/engine/resolve.d.ts +0 -1
- package/dist/engine/resolve.js +0 -1
- package/dist/engine/session.d.ts +0 -1
- package/dist/engine/session.js +0 -1
- package/dist/engine/surface.d.ts +0 -1
- package/dist/engine/surface.js +0 -1
- package/dist/engine/timing.d.ts +0 -1
- package/dist/engine/timing.js +0 -1
- package/dist/expect/async.d.ts +0 -1
- package/dist/expect/async.js +101 -59
- package/dist/expect/attempt.d.ts +0 -1
- package/dist/expect/attempt.js +0 -1
- package/dist/expect/index.d.ts +0 -1
- package/dist/expect/index.js +0 -1
- package/dist/expect/poll-scope.d.ts +52 -0
- package/dist/expect/poll-scope.js +113 -0
- package/dist/expect/poll.d.ts +0 -1
- package/dist/expect/poll.js +31 -5
- package/dist/expect/soft.d.ts +0 -1
- package/dist/expect/soft.js +0 -1
- package/dist/expect/values.d.ts +0 -1
- package/dist/expect/values.js +11 -5
- package/dist/explore/body.d.ts +0 -1
- package/dist/explore/body.js +0 -1
- package/dist/explore/executor.d.ts +0 -1
- package/dist/explore/executor.js +0 -1
- package/dist/explore/index.d.ts +0 -1
- package/dist/explore/index.js +16 -2
- package/dist/explore/plan.d.ts +0 -1
- package/dist/explore/plan.js +0 -1
- package/dist/explore/progress.d.ts +0 -1
- package/dist/explore/progress.js +0 -1
- package/dist/explore/state.d.ts +0 -1
- package/dist/explore/state.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/internal/abandoned.d.ts +11 -0
- package/dist/internal/abandoned.js +23 -0
- package/dist/internal/ai-trace.d.ts +0 -1
- package/dist/internal/ai-trace.js +0 -1
- package/dist/internal/atomic-write.d.ts +0 -1
- package/dist/internal/atomic-write.js +0 -1
- package/dist/internal/brands.d.ts +2 -1
- package/dist/internal/brands.js +2 -1
- package/dist/internal/client-identity.d.ts +9 -0
- package/dist/internal/client-identity.js +14 -0
- package/dist/internal/debug.d.ts +0 -1
- package/dist/internal/debug.js +0 -1
- package/dist/internal/env.d.ts +0 -1
- package/dist/internal/env.js +0 -1
- package/dist/internal/errors.d.ts +0 -1
- package/dist/internal/errors.js +0 -1
- package/dist/internal/geometry.d.ts +0 -1
- package/dist/internal/geometry.js +0 -1
- package/dist/internal/git.d.ts +0 -1
- package/dist/internal/git.js +0 -1
- package/dist/internal/globs.d.ts +0 -1
- package/dist/internal/globs.js +0 -1
- package/dist/internal/ids.d.ts +0 -1
- package/dist/internal/ids.js +0 -1
- package/dist/internal/json-value.d.ts +0 -1
- package/dist/internal/json-value.js +0 -1
- package/dist/internal/keys.d.ts +0 -1
- package/dist/internal/keys.js +0 -1
- package/dist/internal/node-version.d.ts +0 -1
- package/dist/internal/node-version.js +0 -1
- package/dist/internal/objects.d.ts +0 -1
- package/dist/internal/objects.js +0 -1
- package/dist/internal/options.d.ts +0 -1
- package/dist/internal/options.js +0 -1
- package/dist/internal/package-manager.d.ts +0 -1
- package/dist/internal/package-manager.js +0 -1
- package/dist/internal/package-version.d.ts +0 -1
- package/dist/internal/package-version.js +0 -1
- package/dist/internal/paths.d.ts +0 -1
- package/dist/internal/paths.js +0 -1
- package/dist/internal/realm-slot.d.ts +0 -1
- package/dist/internal/realm-slot.js +0 -1
- package/dist/internal/recording-modes.d.ts +0 -1
- package/dist/internal/recording-modes.js +0 -1
- package/dist/internal/redact.d.ts +7 -5
- package/dist/internal/redact.js +116 -24
- package/dist/internal/regexp.d.ts +0 -1
- package/dist/internal/regexp.js +0 -1
- package/dist/internal/roles.d.ts +0 -1
- package/dist/internal/roles.js +0 -1
- package/dist/internal/skip.d.ts +0 -1
- package/dist/internal/skip.js +0 -1
- package/dist/internal/source.d.ts +0 -1
- package/dist/internal/source.js +0 -1
- package/dist/internal/standard-schema.d.ts +0 -1
- package/dist/internal/standard-schema.js +0 -1
- package/dist/internal/suggest.d.ts +0 -1
- package/dist/internal/suggest.js +0 -1
- package/dist/internal/text.d.ts +8 -1
- package/dist/internal/text.js +13 -2
- package/dist/internal/time.d.ts +6 -1
- package/dist/internal/time.js +25 -14
- package/dist/internal/urls.d.ts +9 -6
- package/dist/internal/urls.js +19 -11
- package/dist/internal/vcs.d.ts +0 -1
- package/dist/internal/vcs.js +0 -1
- package/dist/internal/zip.d.ts +0 -1
- package/dist/internal/zip.js +0 -1
- package/dist/locator/engine.d.ts +12 -3
- package/dist/locator/engine.js +8 -4
- package/dist/locator/expression.d.ts +0 -1
- package/dist/locator/expression.js +0 -1
- package/dist/locator/screen.d.ts +0 -1
- package/dist/locator/screen.js +28 -5
- package/dist/mcp/catalog.d.ts +7 -3
- package/dist/mcp/catalog.js +8 -9
- package/dist/mcp/config.d.ts +0 -1
- package/dist/mcp/config.js +0 -1
- package/dist/mcp/recording.d.ts +0 -1
- package/dist/mcp/recording.js +0 -1
- package/dist/mcp/server.d.ts +8 -1
- package/dist/mcp/server.js +8 -5
- package/dist/mcp/session.d.ts +4 -2
- package/dist/mcp/session.js +44 -22
- package/dist/mcp/sessions.d.ts +2 -1
- package/dist/mcp/sessions.js +5 -2
- package/dist/mcp/tools.d.ts +7 -6
- package/dist/mcp/tools.js +36 -11
- package/dist/mcp/usage.d.ts +61 -0
- package/dist/mcp/usage.js +73 -0
- package/dist/oauth/callback-server.d.ts +0 -1
- package/dist/oauth/callback-server.js +0 -1
- package/dist/oauth/chatgpt.d.ts +0 -1
- package/dist/oauth/chatgpt.js +3 -24
- package/dist/oauth/cli.d.ts +0 -1
- package/dist/oauth/cli.js +1 -1
- package/dist/oauth/copilot.d.ts +5 -5
- package/dist/oauth/copilot.js +80 -8
- package/dist/oauth/device-code.d.ts +0 -1
- package/dist/oauth/device-code.js +0 -1
- package/dist/oauth/errors.d.ts +0 -1
- package/dist/oauth/errors.js +0 -1
- package/dist/oauth/fetch.d.ts +0 -1
- package/dist/oauth/fetch.js +0 -1
- package/dist/oauth/grok.d.ts +0 -1
- package/dist/oauth/grok.js +2 -2
- package/dist/oauth/jwt.d.ts +0 -1
- package/dist/oauth/jwt.js +0 -1
- package/dist/oauth/login.d.ts +0 -1
- package/dist/oauth/login.js +0 -1
- package/dist/oauth/models.d.ts +0 -1
- package/dist/oauth/models.js +2 -2
- package/dist/oauth/opencode-console.d.ts +10 -0
- package/dist/oauth/opencode-console.js +133 -0
- package/dist/oauth/pkce.d.ts +0 -1
- package/dist/oauth/pkce.js +0 -1
- package/dist/oauth/providers/github-copilot.d.ts +12 -1
- package/dist/oauth/providers/github-copilot.js +80 -19
- package/dist/oauth/providers/openai.d.ts +0 -1
- package/dist/oauth/providers/openai.js +1 -2
- package/dist/oauth/providers/opencode-console.d.ts +31 -0
- package/dist/oauth/providers/opencode-console.js +148 -0
- package/dist/oauth/providers/xai.d.ts +0 -1
- package/dist/oauth/providers/xai.js +0 -1
- package/dist/oauth/providers.d.ts +2 -7
- package/dist/oauth/providers.js +3 -8
- package/dist/oauth/responses.d.ts +9 -0
- package/dist/oauth/responses.js +23 -0
- package/dist/oauth/sse.d.ts +0 -1
- package/dist/oauth/sse.js +0 -1
- package/dist/oauth/store.d.ts +0 -1
- package/dist/oauth/store.js +0 -1
- package/dist/oauth/token-endpoint.d.ts +0 -1
- package/dist/oauth/token-endpoint.js +0 -1
- package/dist/oauth/types.d.ts +0 -1
- package/dist/oauth/types.js +0 -1
- package/dist/params.d.ts +0 -1
- package/dist/params.js +0 -1
- package/dist/report/build.d.ts +26 -1
- package/dist/report/build.js +16 -9
- package/dist/report/builtin.d.ts +0 -1
- package/dist/report/builtin.js +0 -1
- package/dist/report/code-frame.d.ts +0 -1
- package/dist/report/code-frame.js +0 -1
- package/dist/report/debug-steps.d.ts +0 -1
- package/dist/report/debug-steps.js +0 -1
- package/dist/report/explore-text.d.ts +0 -1
- package/dist/report/explore-text.js +0 -1
- package/dist/report/failure-text.d.ts +6 -2
- package/dist/report/failure-text.js +14 -5
- package/dist/report/format.d.ts +10 -6
- package/dist/report/format.js +12 -6
- package/dist/report/json.d.ts +0 -1
- package/dist/report/json.js +0 -1
- package/dist/report/junit.d.ts +0 -1
- package/dist/report/junit.js +11 -13
- package/dist/report/list-explore.d.ts +0 -1
- package/dist/report/list-explore.js +0 -1
- package/dist/report/list-model.d.ts +0 -1
- package/dist/report/list-model.js +0 -1
- package/dist/report/list-steps.d.ts +0 -1
- package/dist/report/list-steps.js +0 -1
- package/dist/report/list.d.ts +1 -1
- package/dist/report/list.js +38 -19
- package/dist/report/live-window.d.ts +0 -1
- package/dist/report/live-window.js +0 -1
- package/dist/report/markdown-text.d.ts +0 -1
- package/dist/report/markdown-text.js +0 -1
- package/dist/report/markdown.d.ts +1 -2
- package/dist/report/markdown.js +37 -15
- package/dist/report/outcome.d.ts +0 -1
- package/dist/report/outcome.js +0 -1
- package/dist/report/repeats.d.ts +6 -2
- package/dist/report/repeats.js +12 -4
- package/dist/report/running-tree.d.ts +0 -1
- package/dist/report/running-tree.js +0 -1
- package/dist/report/write.d.ts +0 -1
- package/dist/report/write.js +0 -1
- package/dist/run/app-ports.d.ts +0 -1
- package/dist/run/app-ports.js +0 -1
- package/dist/run/artifacts.d.ts +18 -1
- package/dist/run/artifacts.js +68 -2
- package/dist/run/budget.d.ts +0 -1
- package/dist/run/budget.js +0 -1
- package/dist/run/declared-processes.d.ts +0 -1
- package/dist/run/declared-processes.js +0 -1
- package/dist/run/events.d.ts +0 -1
- package/dist/run/events.js +0 -1
- package/dist/run/execute.d.ts +9 -1
- package/dist/run/execute.js +55 -29
- package/dist/run/extended-fixtures.d.ts +0 -1
- package/dist/run/extended-fixtures.js +6 -3
- package/dist/run/failure-evidence.d.ts +0 -1
- package/dist/run/failure-evidence.js +4 -3
- package/dist/run/fixture-recording.d.ts +0 -1
- package/dist/run/fixture-recording.js +0 -1
- package/dist/run/fixtures.d.ts +0 -1
- package/dist/run/fixtures.js +6 -9
- package/dist/run/in-process.d.ts +2 -1
- package/dist/run/in-process.js +1 -1
- package/dist/run/last-run.d.ts +42 -9
- package/dist/run/last-run.js +121 -15
- package/dist/run/managed-process.d.ts +0 -1
- package/dist/run/managed-process.js +0 -1
- package/dist/run/output.d.ts +0 -1
- package/dist/run/output.js +0 -1
- package/dist/run/process-pool.d.ts +0 -1
- package/dist/run/process-pool.js +0 -1
- package/dist/run/provision.d.ts +0 -1
- package/dist/run/provision.js +0 -1
- package/dist/run/realm.d.ts +6 -2
- package/dist/run/realm.js +21 -8
- package/dist/run/records.d.ts +16 -1
- package/dist/run/records.js +26 -1
- package/dist/run/retry.d.ts +3 -2
- package/dist/run/retry.js +4 -3
- package/dist/run/runner.d.ts +3 -2
- package/dist/run/runner.js +70 -32
- package/dist/run/scheduler.d.ts +0 -1
- package/dist/run/scheduler.js +0 -1
- package/dist/run/secrecy.d.ts +15 -1
- package/dist/run/secrecy.js +27 -2
- package/dist/run/serial.d.ts +2 -1
- package/dist/run/serial.js +8 -6
- package/dist/run/sessions.d.ts +0 -1
- package/dist/run/sessions.js +0 -1
- package/dist/run/standalone.d.ts +0 -1
- package/dist/run/standalone.js +3 -3
- package/dist/run/steps.d.ts +2 -9
- package/dist/run/steps.js +7 -22
- package/dist/run/trace-redaction.d.ts +0 -1
- package/dist/run/trace-redaction.js +0 -1
- package/dist/run/unit-runner.d.ts +0 -1
- package/dist/run/unit-runner.js +0 -1
- package/dist/run/units.d.ts +0 -1
- package/dist/run/units.js +0 -1
- package/dist/run/worker/entry.d.ts +0 -1
- package/dist/run/worker/entry.js +7 -7
- package/dist/run/worker/handle.d.ts +0 -1
- package/dist/run/worker/handle.js +0 -1
- package/dist/run/worker/protocol.d.ts +2 -1
- package/dist/run/worker/protocol.js +0 -1
- package/dist/run/worker/session.d.ts +2 -1
- package/dist/run/worker/session.js +1 -1
- package/dist/run/worker-models.d.ts +0 -1
- package/dist/run/worker-models.js +0 -1
- package/dist/secrets.d.ts +0 -1
- package/dist/secrets.js +0 -1
- package/dist/telemetry/checkout.d.ts +0 -1
- package/dist/telemetry/checkout.js +0 -1
- package/dist/telemetry/environment.d.ts +0 -1
- package/dist/telemetry/environment.js +0 -1
- package/dist/telemetry/events.d.ts +26 -10
- package/dist/telemetry/events.js +108 -13
- package/dist/telemetry/failure-kind.d.ts +0 -1
- package/dist/telemetry/failure-kind.js +0 -1
- package/dist/telemetry/posthog.d.ts +0 -1
- package/dist/telemetry/posthog.js +0 -1
- package/dist/telemetry/project.d.ts +0 -1
- package/dist/telemetry/project.js +0 -1
- package/dist/telemetry/store.d.ts +0 -1
- package/dist/telemetry/store.js +0 -1
- package/dist/telemetry/telemetry.d.ts +19 -8
- package/dist/telemetry/telemetry.js +26 -9
- package/dist/telemetry/token.d.ts +0 -1
- package/dist/telemetry/token.js +0 -1
- package/dist/types.d.ts +34 -26
- package/dist/types.js +0 -1
- package/docs/agents.mdx +6 -3
- package/docs/assertions.mdx +94 -0
- package/docs/authentication.mdx +3 -1
- package/docs/browser.mdx +42 -6
- package/docs/cache.mdx +64 -18
- package/docs/ci.mdx +11 -7
- package/docs/debugging.mdx +6 -3
- package/docs/executors.mdx +5 -3
- package/docs/github.mdx +12 -4
- package/docs/{writing-tests.mdx → goals.mdx} +21 -101
- package/docs/index.mdx +4 -4
- package/docs/integrations/kernel.mdx +1 -1
- package/docs/locators.mdx +64 -0
- package/docs/migrate/cypress.mdx +2 -2
- package/docs/migrate/maestro.mdx +2 -2
- package/docs/migrate/playwright.mdx +22 -16
- package/docs/migrate/selenium.mdx +2 -2
- package/docs/mobile.mdx +61 -4
- package/docs/models.mdx +53 -7
- package/docs/physical-devices.mdx +76 -0
- package/docs/quickstart.mdx +4 -3
- package/docs/reference/app.mdx +1 -1
- package/docs/reference/cli.mdx +30 -11
- package/docs/reference/config.mdx +25 -7
- package/docs/reference/engine.mdx +4 -3
- package/docs/reference/environment.mdx +8 -1
- package/docs/reference/errors.mdx +5 -5
- package/docs/reference/expect.mdx +79 -24
- package/docs/reference/mcp.mdx +3 -0
- package/docs/reference/mobile.mdx +23 -13
- package/docs/reference/reporters.mdx +8 -2
- package/docs/reference/screen.mdx +30 -7
- package/docs/reference/test.mdx +11 -4
- package/docs/reference/web.mdx +131 -23
- package/docs/security.mdx +45 -19
- package/docs/subscriptions.mdx +97 -9
- package/docs/telemetry.mdx +48 -6
- package/package.json +18 -4
- package/schema/report-v1.schema.json +14 -1
- package/skills/e2e/SKILL.md +2 -2
- package/skills/e2e/references/agent.md +22 -11
- package/skills/e2e/references/debugging.md +4 -4
- package/skills/e2e/references/mcp.md +3 -0
- package/skills/e2e/references/running.md +13 -8
- package/skills/e2e/references/setup.md +42 -15
- package/skills/e2e/references/writing-tests.md +43 -15
- package/dist/agent/act-validation.d.ts.map +0 -1
- package/dist/agent/act-validation.js.map +0 -1
- package/dist/agent/act.d.ts.map +0 -1
- package/dist/agent/act.js.map +0 -1
- package/dist/agent/action-dispatcher.d.ts.map +0 -1
- package/dist/agent/action-dispatcher.js.map +0 -1
- package/dist/agent/action-names.d.ts.map +0 -1
- package/dist/agent/action-names.js.map +0 -1
- package/dist/agent/actions.d.ts.map +0 -1
- package/dist/agent/actions.js.map +0 -1
- package/dist/agent/agent-brand.d.ts.map +0 -1
- package/dist/agent/agent-brand.js.map +0 -1
- package/dist/agent/ai-sdk.d.ts.map +0 -1
- package/dist/agent/ai-sdk.js.map +0 -1
- package/dist/agent/call-options.d.ts.map +0 -1
- package/dist/agent/call-options.js.map +0 -1
- package/dist/agent/default-agent.d.ts.map +0 -1
- package/dist/agent/default-agent.js.map +0 -1
- package/dist/agent/derived.d.ts.map +0 -1
- package/dist/agent/derived.js.map +0 -1
- package/dist/agent/error.d.ts.map +0 -1
- package/dist/agent/error.js.map +0 -1
- package/dist/agent/executor.d.ts.map +0 -1
- package/dist/agent/executor.js.map +0 -1
- package/dist/agent/index.d.ts.map +0 -1
- package/dist/agent/index.js.map +0 -1
- package/dist/agent/interactive-step.d.ts.map +0 -1
- package/dist/agent/interactive-step.js.map +0 -1
- package/dist/agent/invocation.d.ts.map +0 -1
- package/dist/agent/invocation.js.map +0 -1
- package/dist/agent/ledger.d.ts.map +0 -1
- package/dist/agent/ledger.js.map +0 -1
- package/dist/agent/loop-guards.d.ts.map +0 -1
- package/dist/agent/loop-guards.js.map +0 -1
- package/dist/agent/model/adapter.d.ts.map +0 -1
- package/dist/agent/model/adapter.js.map +0 -1
- package/dist/agent/model/overflow.d.ts.map +0 -1
- package/dist/agent/model/overflow.js.map +0 -1
- package/dist/agent/model/provider-hints.d.ts.map +0 -1
- package/dist/agent/model/provider-hints.js.map +0 -1
- package/dist/agent/model/schema.d.ts.map +0 -1
- package/dist/agent/model/schema.js.map +0 -1
- package/dist/agent/model/sdk.d.ts.map +0 -1
- package/dist/agent/model/sdk.js.map +0 -1
- package/dist/agent/model/stall.d.ts.map +0 -1
- package/dist/agent/model/stall.js.map +0 -1
- package/dist/agent/model/tool-choice.d.ts.map +0 -1
- package/dist/agent/model/tool-choice.js.map +0 -1
- package/dist/agent/observation-budget.d.ts.map +0 -1
- package/dist/agent/observation-budget.js.map +0 -1
- package/dist/agent/observation-feed.d.ts.map +0 -1
- package/dist/agent/observation-feed.js.map +0 -1
- package/dist/agent/observation.d.ts.map +0 -1
- package/dist/agent/observation.js.map +0 -1
- package/dist/agent/operation-queue.d.ts.map +0 -1
- package/dist/agent/operation-queue.js.map +0 -1
- package/dist/agent/phases.d.ts.map +0 -1
- package/dist/agent/phases.js.map +0 -1
- package/dist/agent/pixels.d.ts.map +0 -1
- package/dist/agent/pixels.js.map +0 -1
- package/dist/agent/point-tap.d.ts.map +0 -1
- package/dist/agent/point-tap.js.map +0 -1
- package/dist/agent/primitives.d.ts.map +0 -1
- package/dist/agent/primitives.js.map +0 -1
- package/dist/agent/prompts.d.ts.map +0 -1
- package/dist/agent/prompts.js.map +0 -1
- package/dist/agent/protocol.d.ts.map +0 -1
- package/dist/agent/protocol.js.map +0 -1
- package/dist/agent/public.d.ts.map +0 -1
- package/dist/agent/public.js.map +0 -1
- package/dist/agent/reading.d.ts.map +0 -1
- package/dist/agent/reading.js.map +0 -1
- package/dist/agent/replay.d.ts.map +0 -1
- package/dist/agent/replay.js.map +0 -1
- package/dist/agent/screen-update.d.ts.map +0 -1
- package/dist/agent/screen-update.js.map +0 -1
- package/dist/agent/scroll-target.d.ts.map +0 -1
- package/dist/agent/scroll-target.js.map +0 -1
- package/dist/agent/secrets.d.ts.map +0 -1
- package/dist/agent/secrets.js.map +0 -1
- package/dist/agent/settle-policy.d.ts.map +0 -1
- package/dist/agent/settle-policy.js.map +0 -1
- package/dist/agent/step-accounting.d.ts.map +0 -1
- package/dist/agent/step-accounting.js.map +0 -1
- package/dist/agent/step-cache.d.ts.map +0 -1
- package/dist/agent/step-cache.js.map +0 -1
- package/dist/agent/tool-loop.d.ts.map +0 -1
- package/dist/agent/tool-loop.js.map +0 -1
- package/dist/agent/tool-output.d.ts.map +0 -1
- package/dist/agent/tool-output.js.map +0 -1
- package/dist/agent/tool.d.ts.map +0 -1
- package/dist/agent/tool.js.map +0 -1
- package/dist/agent/transcript-compaction.d.ts.map +0 -1
- package/dist/agent/transcript-compaction.js.map +0 -1
- package/dist/agent/upload-paths.d.ts.map +0 -1
- package/dist/agent/upload-paths.js.map +0 -1
- package/dist/agent/usage.d.ts.map +0 -1
- package/dist/agent/usage.js.map +0 -1
- package/dist/cache/anchors.d.ts.map +0 -1
- package/dist/cache/anchors.js.map +0 -1
- package/dist/cache/context.d.ts.map +0 -1
- package/dist/cache/context.js.map +0 -1
- package/dist/cache/decide.d.ts.map +0 -1
- package/dist/cache/decide.js.map +0 -1
- package/dist/cache/identity.d.ts.map +0 -1
- package/dist/cache/identity.js.map +0 -1
- package/dist/cache/recorder.d.ts.map +0 -1
- package/dist/cache/recorder.js.map +0 -1
- package/dist/cache/relocate.d.ts.map +0 -1
- package/dist/cache/relocate.js.map +0 -1
- package/dist/cache/route.d.ts.map +0 -1
- package/dist/cache/route.js.map +0 -1
- package/dist/cache/store.d.ts.map +0 -1
- package/dist/cache/store.js.map +0 -1
- package/dist/cache/template.d.ts.map +0 -1
- package/dist/cache/template.js.map +0 -1
- package/dist/cache/trace.d.ts.map +0 -1
- package/dist/cache/trace.js.map +0 -1
- package/dist/cli/bin.d.ts.map +0 -1
- package/dist/cli/bin.js.map +0 -1
- package/dist/cli/cache.d.ts.map +0 -1
- package/dist/cli/cache.js.map +0 -1
- package/dist/cli/docs-url.d.ts.map +0 -1
- package/dist/cli/docs-url.js.map +0 -1
- package/dist/cli/feedback.d.ts.map +0 -1
- package/dist/cli/feedback.js.map +0 -1
- package/dist/cli/guide.d.ts.map +0 -1
- package/dist/cli/guide.js.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/init/agent-skill.d.ts.map +0 -1
- package/dist/cli/init/agent-skill.js.map +0 -1
- package/dist/cli/init/engines.d.ts.map +0 -1
- package/dist/cli/init/engines.js.map +0 -1
- package/dist/cli/init/gateways.d.ts.map +0 -1
- package/dist/cli/init/gateways.js.map +0 -1
- package/dist/cli/init/mcp-config.d.ts.map +0 -1
- package/dist/cli/init/mcp-config.js.map +0 -1
- package/dist/cli/init/package.d.ts.map +0 -1
- package/dist/cli/init/package.js.map +0 -1
- package/dist/cli/init/scaffold.d.ts.map +0 -1
- package/dist/cli/init/scaffold.js.map +0 -1
- package/dist/cli/init/versions.d.ts.map +0 -1
- package/dist/cli/init/versions.js.map +0 -1
- package/dist/cli/init.d.ts.map +0 -1
- package/dist/cli/init.js.map +0 -1
- package/dist/cli/mcp.d.ts.map +0 -1
- package/dist/cli/mcp.js.map +0 -1
- package/dist/cli/signals.d.ts.map +0 -1
- package/dist/cli/signals.js.map +0 -1
- package/dist/cli/skill.d.ts.map +0 -1
- package/dist/cli/skill.js.map +0 -1
- package/dist/cli/telemetry.d.ts.map +0 -1
- package/dist/cli/telemetry.js.map +0 -1
- package/dist/cli/wordmark.d.ts.map +0 -1
- package/dist/cli/wordmark.js.map +0 -1
- package/dist/collect/collect.d.ts.map +0 -1
- package/dist/collect/collect.js.map +0 -1
- package/dist/collect/registry.d.ts.map +0 -1
- package/dist/collect/registry.js.map +0 -1
- package/dist/collect/select.d.ts.map +0 -1
- package/dist/collect/select.js.map +0 -1
- package/dist/config/agent.d.ts.map +0 -1
- package/dist/config/agent.js.map +0 -1
- package/dist/config/app.d.ts.map +0 -1
- package/dist/config/app.js.map +0 -1
- package/dist/config/command.d.ts.map +0 -1
- package/dist/config/command.js.map +0 -1
- package/dist/config/diagnose.d.ts.map +0 -1
- package/dist/config/diagnose.js.map +0 -1
- package/dist/config/esm-hooks.d.ts.map +0 -1
- package/dist/config/esm-hooks.js.map +0 -1
- package/dist/config/load.d.ts.map +0 -1
- package/dist/config/load.js.map +0 -1
- package/dist/config/resolve.d.ts.map +0 -1
- package/dist/config/resolve.js.map +0 -1
- package/dist/config/secrets.d.ts.map +0 -1
- package/dist/config/secrets.js.map +0 -1
- package/dist/config/targets.d.ts.map +0 -1
- package/dist/config/targets.js.map +0 -1
- package/dist/config/validate.d.ts.map +0 -1
- package/dist/config/validate.js.map +0 -1
- package/dist/engine/contract.d.ts.map +0 -1
- package/dist/engine/contract.js.map +0 -1
- package/dist/engine/index.d.ts.map +0 -1
- package/dist/engine/index.js.map +0 -1
- package/dist/engine/manifest.d.ts.map +0 -1
- package/dist/engine/manifest.js.map +0 -1
- package/dist/engine/recording.d.ts.map +0 -1
- package/dist/engine/recording.js.map +0 -1
- package/dist/engine/resolve.d.ts.map +0 -1
- package/dist/engine/resolve.js.map +0 -1
- package/dist/engine/session.d.ts.map +0 -1
- package/dist/engine/session.js.map +0 -1
- package/dist/engine/surface.d.ts.map +0 -1
- package/dist/engine/surface.js.map +0 -1
- package/dist/engine/timing.d.ts.map +0 -1
- package/dist/engine/timing.js.map +0 -1
- package/dist/expect/async.d.ts.map +0 -1
- package/dist/expect/async.js.map +0 -1
- package/dist/expect/attempt.d.ts.map +0 -1
- package/dist/expect/attempt.js.map +0 -1
- package/dist/expect/index.d.ts.map +0 -1
- package/dist/expect/index.js.map +0 -1
- package/dist/expect/poll.d.ts.map +0 -1
- package/dist/expect/poll.js.map +0 -1
- package/dist/expect/soft.d.ts.map +0 -1
- package/dist/expect/soft.js.map +0 -1
- package/dist/expect/values.d.ts.map +0 -1
- package/dist/expect/values.js.map +0 -1
- package/dist/explore/body.d.ts.map +0 -1
- package/dist/explore/body.js.map +0 -1
- package/dist/explore/executor.d.ts.map +0 -1
- package/dist/explore/executor.js.map +0 -1
- package/dist/explore/index.d.ts.map +0 -1
- package/dist/explore/index.js.map +0 -1
- package/dist/explore/plan.d.ts.map +0 -1
- package/dist/explore/plan.js.map +0 -1
- package/dist/explore/progress.d.ts.map +0 -1
- package/dist/explore/progress.js.map +0 -1
- package/dist/explore/state.d.ts.map +0 -1
- package/dist/explore/state.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal/ai-trace.d.ts.map +0 -1
- package/dist/internal/ai-trace.js.map +0 -1
- package/dist/internal/atomic-write.d.ts.map +0 -1
- package/dist/internal/atomic-write.js.map +0 -1
- package/dist/internal/brands.d.ts.map +0 -1
- package/dist/internal/brands.js.map +0 -1
- package/dist/internal/debug.d.ts.map +0 -1
- package/dist/internal/debug.js.map +0 -1
- package/dist/internal/env.d.ts.map +0 -1
- package/dist/internal/env.js.map +0 -1
- package/dist/internal/errors.d.ts.map +0 -1
- package/dist/internal/errors.js.map +0 -1
- package/dist/internal/geometry.d.ts.map +0 -1
- package/dist/internal/geometry.js.map +0 -1
- package/dist/internal/git.d.ts.map +0 -1
- package/dist/internal/git.js.map +0 -1
- package/dist/internal/globs.d.ts.map +0 -1
- package/dist/internal/globs.js.map +0 -1
- package/dist/internal/ids.d.ts.map +0 -1
- package/dist/internal/ids.js.map +0 -1
- package/dist/internal/json-value.d.ts.map +0 -1
- package/dist/internal/json-value.js.map +0 -1
- package/dist/internal/keys.d.ts.map +0 -1
- package/dist/internal/keys.js.map +0 -1
- package/dist/internal/node-version.d.ts.map +0 -1
- package/dist/internal/node-version.js.map +0 -1
- package/dist/internal/objects.d.ts.map +0 -1
- package/dist/internal/objects.js.map +0 -1
- package/dist/internal/options.d.ts.map +0 -1
- package/dist/internal/options.js.map +0 -1
- package/dist/internal/package-manager.d.ts.map +0 -1
- package/dist/internal/package-manager.js.map +0 -1
- package/dist/internal/package-version.d.ts.map +0 -1
- package/dist/internal/package-version.js.map +0 -1
- package/dist/internal/paths.d.ts.map +0 -1
- package/dist/internal/paths.js.map +0 -1
- package/dist/internal/realm-slot.d.ts.map +0 -1
- package/dist/internal/realm-slot.js.map +0 -1
- package/dist/internal/recording-modes.d.ts.map +0 -1
- package/dist/internal/recording-modes.js.map +0 -1
- package/dist/internal/redact.d.ts.map +0 -1
- package/dist/internal/redact.js.map +0 -1
- package/dist/internal/regexp.d.ts.map +0 -1
- package/dist/internal/regexp.js.map +0 -1
- package/dist/internal/roles.d.ts.map +0 -1
- package/dist/internal/roles.js.map +0 -1
- package/dist/internal/skip.d.ts.map +0 -1
- package/dist/internal/skip.js.map +0 -1
- package/dist/internal/source.d.ts.map +0 -1
- package/dist/internal/source.js.map +0 -1
- package/dist/internal/standard-schema.d.ts.map +0 -1
- package/dist/internal/standard-schema.js.map +0 -1
- package/dist/internal/suggest.d.ts.map +0 -1
- package/dist/internal/suggest.js.map +0 -1
- package/dist/internal/text.d.ts.map +0 -1
- package/dist/internal/text.js.map +0 -1
- package/dist/internal/time.d.ts.map +0 -1
- package/dist/internal/time.js.map +0 -1
- package/dist/internal/urls.d.ts.map +0 -1
- package/dist/internal/urls.js.map +0 -1
- package/dist/internal/vcs.d.ts.map +0 -1
- package/dist/internal/vcs.js.map +0 -1
- package/dist/internal/zip.d.ts.map +0 -1
- package/dist/internal/zip.js.map +0 -1
- package/dist/locator/engine.d.ts.map +0 -1
- package/dist/locator/engine.js.map +0 -1
- package/dist/locator/expression.d.ts.map +0 -1
- package/dist/locator/expression.js.map +0 -1
- package/dist/locator/screen.d.ts.map +0 -1
- package/dist/locator/screen.js.map +0 -1
- package/dist/mcp/catalog.d.ts.map +0 -1
- package/dist/mcp/catalog.js.map +0 -1
- package/dist/mcp/config.d.ts.map +0 -1
- package/dist/mcp/config.js.map +0 -1
- package/dist/mcp/recording.d.ts.map +0 -1
- package/dist/mcp/recording.js.map +0 -1
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/session.d.ts.map +0 -1
- package/dist/mcp/session.js.map +0 -1
- package/dist/mcp/sessions.d.ts.map +0 -1
- package/dist/mcp/sessions.js.map +0 -1
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js.map +0 -1
- package/dist/oauth/callback-server.d.ts.map +0 -1
- package/dist/oauth/callback-server.js.map +0 -1
- package/dist/oauth/chatgpt.d.ts.map +0 -1
- package/dist/oauth/chatgpt.js.map +0 -1
- package/dist/oauth/cli.d.ts.map +0 -1
- package/dist/oauth/cli.js.map +0 -1
- package/dist/oauth/copilot.d.ts.map +0 -1
- package/dist/oauth/copilot.js.map +0 -1
- package/dist/oauth/device-code.d.ts.map +0 -1
- package/dist/oauth/device-code.js.map +0 -1
- package/dist/oauth/errors.d.ts.map +0 -1
- package/dist/oauth/errors.js.map +0 -1
- package/dist/oauth/fetch.d.ts.map +0 -1
- package/dist/oauth/fetch.js.map +0 -1
- package/dist/oauth/grok.d.ts.map +0 -1
- package/dist/oauth/grok.js.map +0 -1
- package/dist/oauth/jwt.d.ts.map +0 -1
- package/dist/oauth/jwt.js.map +0 -1
- package/dist/oauth/login.d.ts.map +0 -1
- package/dist/oauth/login.js.map +0 -1
- package/dist/oauth/models.d.ts.map +0 -1
- package/dist/oauth/models.js.map +0 -1
- package/dist/oauth/pkce.d.ts.map +0 -1
- package/dist/oauth/pkce.js.map +0 -1
- package/dist/oauth/providers/github-copilot.d.ts.map +0 -1
- package/dist/oauth/providers/github-copilot.js.map +0 -1
- package/dist/oauth/providers/openai.d.ts.map +0 -1
- package/dist/oauth/providers/openai.js.map +0 -1
- package/dist/oauth/providers/xai.d.ts.map +0 -1
- package/dist/oauth/providers/xai.js.map +0 -1
- package/dist/oauth/providers.d.ts.map +0 -1
- package/dist/oauth/providers.js.map +0 -1
- package/dist/oauth/sse.d.ts.map +0 -1
- package/dist/oauth/sse.js.map +0 -1
- package/dist/oauth/store.d.ts.map +0 -1
- package/dist/oauth/store.js.map +0 -1
- package/dist/oauth/token-endpoint.d.ts.map +0 -1
- package/dist/oauth/token-endpoint.js.map +0 -1
- package/dist/oauth/types.d.ts.map +0 -1
- package/dist/oauth/types.js.map +0 -1
- package/dist/params.d.ts.map +0 -1
- package/dist/params.js.map +0 -1
- package/dist/report/build.d.ts.map +0 -1
- package/dist/report/build.js.map +0 -1
- package/dist/report/builtin.d.ts.map +0 -1
- package/dist/report/builtin.js.map +0 -1
- package/dist/report/code-frame.d.ts.map +0 -1
- package/dist/report/code-frame.js.map +0 -1
- package/dist/report/debug-steps.d.ts.map +0 -1
- package/dist/report/debug-steps.js.map +0 -1
- package/dist/report/explore-text.d.ts.map +0 -1
- package/dist/report/explore-text.js.map +0 -1
- package/dist/report/failure-text.d.ts.map +0 -1
- package/dist/report/failure-text.js.map +0 -1
- package/dist/report/format.d.ts.map +0 -1
- package/dist/report/format.js.map +0 -1
- package/dist/report/json.d.ts.map +0 -1
- package/dist/report/json.js.map +0 -1
- package/dist/report/junit.d.ts.map +0 -1
- package/dist/report/junit.js.map +0 -1
- package/dist/report/list-explore.d.ts.map +0 -1
- package/dist/report/list-explore.js.map +0 -1
- package/dist/report/list-model.d.ts.map +0 -1
- package/dist/report/list-model.js.map +0 -1
- package/dist/report/list-steps.d.ts.map +0 -1
- package/dist/report/list-steps.js.map +0 -1
- package/dist/report/list.d.ts.map +0 -1
- package/dist/report/list.js.map +0 -1
- package/dist/report/live-window.d.ts.map +0 -1
- package/dist/report/live-window.js.map +0 -1
- package/dist/report/markdown-text.d.ts.map +0 -1
- package/dist/report/markdown-text.js.map +0 -1
- package/dist/report/markdown.d.ts.map +0 -1
- package/dist/report/markdown.js.map +0 -1
- package/dist/report/outcome.d.ts.map +0 -1
- package/dist/report/outcome.js.map +0 -1
- package/dist/report/repeats.d.ts.map +0 -1
- package/dist/report/repeats.js.map +0 -1
- package/dist/report/running-tree.d.ts.map +0 -1
- package/dist/report/running-tree.js.map +0 -1
- package/dist/report/write.d.ts.map +0 -1
- package/dist/report/write.js.map +0 -1
- package/dist/run/app-ports.d.ts.map +0 -1
- package/dist/run/app-ports.js.map +0 -1
- package/dist/run/artifacts.d.ts.map +0 -1
- package/dist/run/artifacts.js.map +0 -1
- package/dist/run/budget.d.ts.map +0 -1
- package/dist/run/budget.js.map +0 -1
- package/dist/run/declared-processes.d.ts.map +0 -1
- package/dist/run/declared-processes.js.map +0 -1
- package/dist/run/events.d.ts.map +0 -1
- package/dist/run/events.js.map +0 -1
- package/dist/run/execute.d.ts.map +0 -1
- package/dist/run/execute.js.map +0 -1
- package/dist/run/extended-fixtures.d.ts.map +0 -1
- package/dist/run/extended-fixtures.js.map +0 -1
- package/dist/run/failure-evidence.d.ts.map +0 -1
- package/dist/run/failure-evidence.js.map +0 -1
- package/dist/run/fixture-recording.d.ts.map +0 -1
- package/dist/run/fixture-recording.js.map +0 -1
- package/dist/run/fixtures.d.ts.map +0 -1
- package/dist/run/fixtures.js.map +0 -1
- package/dist/run/in-process.d.ts.map +0 -1
- package/dist/run/in-process.js.map +0 -1
- package/dist/run/last-run.d.ts.map +0 -1
- package/dist/run/last-run.js.map +0 -1
- package/dist/run/managed-process.d.ts.map +0 -1
- package/dist/run/managed-process.js.map +0 -1
- package/dist/run/output.d.ts.map +0 -1
- package/dist/run/output.js.map +0 -1
- package/dist/run/process-pool.d.ts.map +0 -1
- package/dist/run/process-pool.js.map +0 -1
- package/dist/run/provision.d.ts.map +0 -1
- package/dist/run/provision.js.map +0 -1
- package/dist/run/realm.d.ts.map +0 -1
- package/dist/run/realm.js.map +0 -1
- package/dist/run/records.d.ts.map +0 -1
- package/dist/run/records.js.map +0 -1
- package/dist/run/retry.d.ts.map +0 -1
- package/dist/run/retry.js.map +0 -1
- package/dist/run/runner.d.ts.map +0 -1
- package/dist/run/runner.js.map +0 -1
- package/dist/run/scheduler.d.ts.map +0 -1
- package/dist/run/scheduler.js.map +0 -1
- package/dist/run/secrecy.d.ts.map +0 -1
- package/dist/run/secrecy.js.map +0 -1
- package/dist/run/serial.d.ts.map +0 -1
- package/dist/run/serial.js.map +0 -1
- package/dist/run/sessions.d.ts.map +0 -1
- package/dist/run/sessions.js.map +0 -1
- package/dist/run/standalone.d.ts.map +0 -1
- package/dist/run/standalone.js.map +0 -1
- package/dist/run/steps.d.ts.map +0 -1
- package/dist/run/steps.js.map +0 -1
- package/dist/run/trace-redaction.d.ts.map +0 -1
- package/dist/run/trace-redaction.js.map +0 -1
- package/dist/run/unit-runner.d.ts.map +0 -1
- package/dist/run/unit-runner.js.map +0 -1
- package/dist/run/units.d.ts.map +0 -1
- package/dist/run/units.js.map +0 -1
- package/dist/run/worker/entry.d.ts.map +0 -1
- package/dist/run/worker/entry.js.map +0 -1
- package/dist/run/worker/handle.d.ts.map +0 -1
- package/dist/run/worker/handle.js.map +0 -1
- package/dist/run/worker/protocol.d.ts.map +0 -1
- package/dist/run/worker/protocol.js.map +0 -1
- package/dist/run/worker/session.d.ts.map +0 -1
- package/dist/run/worker/session.js.map +0 -1
- package/dist/run/worker-models.d.ts.map +0 -1
- package/dist/run/worker-models.js.map +0 -1
- package/dist/secrets.d.ts.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/telemetry/checkout.d.ts.map +0 -1
- package/dist/telemetry/checkout.js.map +0 -1
- package/dist/telemetry/environment.d.ts.map +0 -1
- package/dist/telemetry/environment.js.map +0 -1
- package/dist/telemetry/events.d.ts.map +0 -1
- package/dist/telemetry/events.js.map +0 -1
- package/dist/telemetry/failure-kind.d.ts.map +0 -1
- package/dist/telemetry/failure-kind.js.map +0 -1
- package/dist/telemetry/posthog.d.ts.map +0 -1
- package/dist/telemetry/posthog.js.map +0 -1
- package/dist/telemetry/project.d.ts.map +0 -1
- package/dist/telemetry/project.js.map +0 -1
- package/dist/telemetry/store.d.ts.map +0 -1
- package/dist/telemetry/store.js.map +0 -1
- package/dist/telemetry/telemetry.d.ts.map +0 -1
- package/dist/telemetry/telemetry.js.map +0 -1
- package/dist/telemetry/token.d.ts.map +0 -1
- package/dist/telemetry/token.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
package/dist/mcp/sessions.js
CHANGED
|
@@ -23,7 +23,11 @@ export class SessionRegistry {
|
|
|
23
23
|
}
|
|
24
24
|
/** Whether any session is live. */
|
|
25
25
|
get hasLive() {
|
|
26
|
-
return this.
|
|
26
|
+
return this.liveCount > 0;
|
|
27
|
+
}
|
|
28
|
+
/** How many sessions are live. */
|
|
29
|
+
get liveCount() {
|
|
30
|
+
return this.live().length;
|
|
27
31
|
}
|
|
28
32
|
/**
|
|
29
33
|
* Admits a session and runs `open` for it under a fresh id. A session whose
|
|
@@ -156,4 +160,3 @@ export class SessionRegistry {
|
|
|
156
160
|
function describe(sessions) {
|
|
157
161
|
return sessions.map((session) => `${session.id} on "${session.target.name}"`).join(', ');
|
|
158
162
|
}
|
|
159
|
-
//# sourceMappingURL=sessions.js.map
|
package/dist/mcp/tools.d.ts
CHANGED
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* validates the arguments against the schema, runs the tool, and renders its
|
|
9
9
|
* output in the MCP result envelope.
|
|
10
10
|
*
|
|
11
|
-
* The schemas are read through the AI SDK's `asSchema
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* The schemas are read through the AI SDK's `asSchema` when it is installed,
|
|
12
|
+
* and through the schema's own Standard Schema (zod's, among others) when it
|
|
13
|
+
* is not. The SDK is an optional peer dependency: this module reaches it only
|
|
14
|
+
* through the lazy loader, never a static import, since the CLI loads this
|
|
15
|
+
* module for every command and `e2e init` runs before `ai` is installed.
|
|
15
16
|
*/
|
|
16
17
|
import type { JSONSchema7, ToolSet } from 'ai';
|
|
17
18
|
import type { z } from 'zod';
|
|
@@ -66,7 +67,8 @@ export declare function redactResult(result: McpToolResult, redact: (text: strin
|
|
|
66
67
|
* never need. A zod schema converts synchronously; a schema that only
|
|
67
68
|
* resolves lazily is shown as an open object rather than awaited, since the
|
|
68
69
|
* catalog is rendered inline. Synchronous, so the session that renders the
|
|
69
|
-
* catalog has loaded the SDK first
|
|
70
|
+
* catalog has loaded the SDK first when it is installed; without it, the
|
|
71
|
+
* schema's Standard JSON Schema converter is read instead.
|
|
70
72
|
*/
|
|
71
73
|
export declare function toolJsonSchema(tool: ToolSet[string]): JSONSchema7;
|
|
72
74
|
/**
|
|
@@ -89,4 +91,3 @@ export declare function invokeTool(name: string, tool: ToolSet[string], args: Re
|
|
|
89
91
|
* else is JSON, so a structured output is never lost.
|
|
90
92
|
*/
|
|
91
93
|
export declare function resultFromOutput(tool: ToolSet[string], output: unknown, input?: unknown): Promise<McpToolResult>;
|
|
92
|
-
//# sourceMappingURL=tools.d.ts.map
|
package/dist/mcp/tools.js
CHANGED
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
* validates the arguments against the schema, runs the tool, and renders its
|
|
9
9
|
* output in the MCP result envelope.
|
|
10
10
|
*
|
|
11
|
-
* The schemas are read through the AI SDK's `asSchema
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* The schemas are read through the AI SDK's `asSchema` when it is installed,
|
|
12
|
+
* and through the schema's own Standard Schema (zod's, among others) when it
|
|
13
|
+
* is not. The SDK is an optional peer dependency: this module reaches it only
|
|
14
|
+
* through the lazy loader, never a static import, since the CLI loads this
|
|
15
|
+
* module for every command and `e2e init` runs before `ai` is installed.
|
|
15
16
|
*/
|
|
16
|
-
import {
|
|
17
|
+
import { loadAiSdk, loadAiSdkIfInstalled, loadedAiSdk } from '../agent/ai-sdk.js';
|
|
17
18
|
import { isFailedResult } from '../agent/loop-guards.js';
|
|
18
19
|
import { codedMessage, ConfigurationError, errorMessage } from '../internal/errors.js';
|
|
20
|
+
import { describeIssue } from '../internal/standard-schema.js';
|
|
19
21
|
/** Declares one fixed tool with `call` typed from its `inputSchema`. */
|
|
20
22
|
export function defineMcpTool(spec) {
|
|
21
23
|
return spec;
|
|
@@ -54,15 +56,26 @@ const CATALOG_SENTENCE_MAX = 160;
|
|
|
54
56
|
* never need. A zod schema converts synchronously; a schema that only
|
|
55
57
|
* resolves lazily is shown as an open object rather than awaited, since the
|
|
56
58
|
* catalog is rendered inline. Synchronous, so the session that renders the
|
|
57
|
-
* catalog has loaded the SDK first
|
|
59
|
+
* catalog has loaded the SDK first when it is installed; without it, the
|
|
60
|
+
* schema's Standard JSON Schema converter is read instead.
|
|
58
61
|
*/
|
|
59
62
|
export function toolJsonSchema(tool) {
|
|
60
|
-
const
|
|
61
|
-
|
|
63
|
+
const sdk = loadedAiSdk();
|
|
64
|
+
const raw = sdk === undefined ? standardJsonSchema(tool.inputSchema) : sdk.asSchema(tool.inputSchema).jsonSchema;
|
|
65
|
+
if (raw === undefined || typeof raw.then === 'function')
|
|
62
66
|
return { type: 'object' };
|
|
63
67
|
const { $schema: _draft, ...schema } = raw;
|
|
64
68
|
return schema;
|
|
65
69
|
}
|
|
70
|
+
/** The tool schema as a Standard Schema v1, or undefined for a schema the AI SDK built. */
|
|
71
|
+
function standardSchemaOf(schema) {
|
|
72
|
+
const props = schema?.['~standard'];
|
|
73
|
+
return typeof props === 'object' && props !== null && typeof props.validate === 'function' ? schema : undefined;
|
|
74
|
+
}
|
|
75
|
+
/** The draft-07 JSON Schema a Standard Schema's own converter produces, or undefined without one. */
|
|
76
|
+
function standardJsonSchema(schema) {
|
|
77
|
+
return standardSchemaOf(schema)?.['~standard'].jsonSchema?.input({ target: 'draft-07' });
|
|
78
|
+
}
|
|
66
79
|
/**
|
|
67
80
|
* One catalog line: the name, the argument names (`?` marks an optional
|
|
68
81
|
* one), the first sentence of the description, and the read-only mark.
|
|
@@ -119,14 +132,27 @@ export async function invokeTool(name, tool, args, extra) {
|
|
|
119
132
|
return resultFromOutput(tool, await resolveOutput(await tool.execute(input, options)), input);
|
|
120
133
|
}
|
|
121
134
|
async function validateArgs(name, tool, args) {
|
|
122
|
-
const
|
|
135
|
+
const sdk = await loadAiSdkIfInstalled();
|
|
136
|
+
const standard = standardSchemaOf(tool.inputSchema);
|
|
137
|
+
if (sdk === undefined && standard !== undefined) {
|
|
138
|
+
const result = await standard['~standard'].validate(args);
|
|
139
|
+
if (result.issues === undefined)
|
|
140
|
+
return result.value;
|
|
141
|
+
throw invalidArgs(name, result.issues.map(describeIssue).join('; '));
|
|
142
|
+
}
|
|
143
|
+
// A schema the SDK built (`jsonSchema()`, a lazy schema) only exists with the SDK installed.
|
|
144
|
+
const { asSchema } = sdk ?? (await loadAiSdk());
|
|
123
145
|
const schema = asSchema(tool.inputSchema);
|
|
124
146
|
if (schema.validate === undefined)
|
|
125
147
|
return args;
|
|
126
148
|
const result = await schema.validate(args);
|
|
127
149
|
if (result.success)
|
|
128
150
|
return result.value;
|
|
129
|
-
throw
|
|
151
|
+
throw invalidArgs(name, describeValidationError(result.error));
|
|
152
|
+
}
|
|
153
|
+
/** The failure a `call` with arguments its tool's schema rejects gets. */
|
|
154
|
+
function invalidArgs(name, issues) {
|
|
155
|
+
return new ConfigurationError('INVALID_ARGUMENT', `call ${name}: ${issues}; tools {tool: ${JSON.stringify(name)}} shows its arguments`);
|
|
130
156
|
}
|
|
131
157
|
/**
|
|
132
158
|
* The issues a zod (or any standard schema) failure carries, one per line;
|
|
@@ -200,4 +226,3 @@ function contentFromModelOutput(output) {
|
|
|
200
226
|
return undefined;
|
|
201
227
|
}
|
|
202
228
|
}
|
|
203
|
-
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What one `e2e mcp` session did, kept beside it for whoever is told when it
|
|
3
|
+
* ends: the CLI turns it into telemetry. The host fills it from facts it
|
|
4
|
+
* already holds; nothing here reads an argument, a result, or a screen. A
|
|
5
|
+
* project tool counts under one number, never its name, and an error under
|
|
6
|
+
* its runner code alone.
|
|
7
|
+
*/
|
|
8
|
+
/** How a session ended: the agent's `close_session`, idleness, its step concluding (the TTL), or the server going away. */
|
|
9
|
+
export type SessionEndedBy = 'agent' | 'idle' | 'step' | 'server';
|
|
10
|
+
/** One session, from `open_session` to its close or failed open. */
|
|
11
|
+
export interface McpSessionSummary {
|
|
12
|
+
/** `closed` for a session that went live, `open-failed` for an `open_session` that did not. */
|
|
13
|
+
readonly outcome: 'closed' | 'open-failed';
|
|
14
|
+
/** Undefined for a failed open. */
|
|
15
|
+
readonly endedBy: SessionEndedBy | undefined;
|
|
16
|
+
/** The runner code an open failed with; undefined for a session that went live. */
|
|
17
|
+
readonly openErrorCode: string | undefined;
|
|
18
|
+
/** Undefined when the open failed before the target resolved. */
|
|
19
|
+
readonly platform: string | undefined;
|
|
20
|
+
/** Undefined before the target resolved, and for a target without an engine. */
|
|
21
|
+
readonly engine: SessionEngine | undefined;
|
|
22
|
+
readonly headed: boolean;
|
|
23
|
+
readonly durationMs: number;
|
|
24
|
+
/** Sessions live beside this one when it opened. */
|
|
25
|
+
readonly concurrent: number;
|
|
26
|
+
/** Calls of every other name, the built-in catalog tools and names the session does not have, by name; telemetry folds the latter. */
|
|
27
|
+
readonly toolCalls: ReadonlyMap<string, number>;
|
|
28
|
+
/** Calls of the project's own tools, together. */
|
|
29
|
+
readonly projectToolCalls: number;
|
|
30
|
+
/** Calls whose result was an error. */
|
|
31
|
+
readonly failedCalls: number;
|
|
32
|
+
/** How often each runner code failed a call. */
|
|
33
|
+
readonly errorCodes: ReadonlyMap<string, number>;
|
|
34
|
+
}
|
|
35
|
+
/** The engine a session's target declares, by its own name and version. */
|
|
36
|
+
export interface SessionEngine {
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly version: string;
|
|
39
|
+
}
|
|
40
|
+
/** The live counters of one session. */
|
|
41
|
+
export declare class SessionUsage {
|
|
42
|
+
private readonly concurrent;
|
|
43
|
+
private readonly headed;
|
|
44
|
+
private readonly startedAt;
|
|
45
|
+
private readonly toolCalls;
|
|
46
|
+
private projectToolCalls;
|
|
47
|
+
private failedCalls;
|
|
48
|
+
private readonly errorCodes;
|
|
49
|
+
private target;
|
|
50
|
+
constructor(concurrent: number, headed: boolean);
|
|
51
|
+
/** Notes the target once the open resolved it, so a later failure still names the platform it failed on. */
|
|
52
|
+
resolved(platform: string, engine: SessionEngine | undefined): void;
|
|
53
|
+
/** Counts one call of a catalog tool. */
|
|
54
|
+
called(name: string, project: boolean): void;
|
|
55
|
+
/** Counts one failed call, under its code when it has one. */
|
|
56
|
+
failed(code: string | undefined): void;
|
|
57
|
+
/** The summary of a session that went live and has now closed. */
|
|
58
|
+
closed(endedBy: SessionEndedBy): McpSessionSummary;
|
|
59
|
+
/** The summary of an `open_session` that failed with `code`. */
|
|
60
|
+
openFailed(code: string): McpSessionSummary;
|
|
61
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What one `e2e mcp` session did, kept beside it for whoever is told when it
|
|
3
|
+
* ends: the CLI turns it into telemetry. The host fills it from facts it
|
|
4
|
+
* already holds; nothing here reads an argument, a result, or a screen. A
|
|
5
|
+
* project tool counts under one number, never its name, and an error under
|
|
6
|
+
* its runner code alone.
|
|
7
|
+
*/
|
|
8
|
+
/** The live counters of one session. */
|
|
9
|
+
export class SessionUsage {
|
|
10
|
+
concurrent;
|
|
11
|
+
headed;
|
|
12
|
+
startedAt = Date.now();
|
|
13
|
+
toolCalls = new Map();
|
|
14
|
+
projectToolCalls = 0;
|
|
15
|
+
failedCalls = 0;
|
|
16
|
+
errorCodes = new Map();
|
|
17
|
+
target;
|
|
18
|
+
constructor(concurrent, headed) {
|
|
19
|
+
this.concurrent = concurrent;
|
|
20
|
+
this.headed = headed;
|
|
21
|
+
}
|
|
22
|
+
/** Notes the target once the open resolved it, so a later failure still names the platform it failed on. */
|
|
23
|
+
resolved(platform, engine) {
|
|
24
|
+
this.target = { platform, engine };
|
|
25
|
+
}
|
|
26
|
+
/** Counts one call of a catalog tool. */
|
|
27
|
+
called(name, project) {
|
|
28
|
+
if (project)
|
|
29
|
+
this.projectToolCalls += 1;
|
|
30
|
+
else
|
|
31
|
+
this.toolCalls.set(name, (this.toolCalls.get(name) ?? 0) + 1);
|
|
32
|
+
}
|
|
33
|
+
/** Counts one failed call, under its code when it has one. */
|
|
34
|
+
failed(code) {
|
|
35
|
+
this.failedCalls += 1;
|
|
36
|
+
if (code !== undefined)
|
|
37
|
+
this.errorCodes.set(code, (this.errorCodes.get(code) ?? 0) + 1);
|
|
38
|
+
}
|
|
39
|
+
/** The summary of a session that went live and has now closed. */
|
|
40
|
+
closed(endedBy) {
|
|
41
|
+
return {
|
|
42
|
+
outcome: 'closed',
|
|
43
|
+
endedBy,
|
|
44
|
+
openErrorCode: undefined,
|
|
45
|
+
platform: this.target?.platform,
|
|
46
|
+
engine: this.target?.engine,
|
|
47
|
+
headed: this.headed,
|
|
48
|
+
durationMs: Date.now() - this.startedAt,
|
|
49
|
+
concurrent: this.concurrent,
|
|
50
|
+
toolCalls: new Map(this.toolCalls),
|
|
51
|
+
projectToolCalls: this.projectToolCalls,
|
|
52
|
+
failedCalls: this.failedCalls,
|
|
53
|
+
errorCodes: new Map(this.errorCodes),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/** The summary of an `open_session` that failed with `code`. */
|
|
57
|
+
openFailed(code) {
|
|
58
|
+
return {
|
|
59
|
+
outcome: 'open-failed',
|
|
60
|
+
endedBy: undefined,
|
|
61
|
+
openErrorCode: code,
|
|
62
|
+
platform: this.target?.platform,
|
|
63
|
+
engine: this.target?.engine,
|
|
64
|
+
headed: this.headed,
|
|
65
|
+
durationMs: Date.now() - this.startedAt,
|
|
66
|
+
concurrent: this.concurrent,
|
|
67
|
+
toolCalls: new Map(),
|
|
68
|
+
projectToolCalls: 0,
|
|
69
|
+
failedCalls: 0,
|
|
70
|
+
errorCodes: new Map(),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
package/dist/oauth/chatgpt.d.ts
CHANGED
package/dist/oauth/chatgpt.js
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { createOpenAI } from '@ai-sdk/openai';
|
|
8
8
|
import { createOAuthFetch } from './fetch.js';
|
|
9
|
-
import { USER_AGENT
|
|
9
|
+
import { USER_AGENT } from '../internal/client-identity.js';
|
|
10
|
+
import { loginHint } from './providers.js';
|
|
10
11
|
import { createCodexProvider } from './providers/openai.js';
|
|
12
|
+
import { withoutServerStorage } from './responses.js';
|
|
11
13
|
import { defaultCredentialStore } from './store.js';
|
|
12
14
|
export function chatgpt(modelId) {
|
|
13
15
|
const fetch = createOAuthFetch(createCodexProvider(), {
|
|
@@ -18,26 +20,3 @@ export function chatgpt(modelId) {
|
|
|
18
20
|
// The key header is removed per request; the value only satisfies the constructor.
|
|
19
21
|
return withoutServerStorage(createOpenAI({ apiKey: 'oauth', fetch, name: 'chatgpt' }).responses(modelId));
|
|
20
22
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Tells the SDK what the Codex backend enforces: nothing is stored server
|
|
23
|
-
* side. Believing storage is on, the SDK refers back to an earlier turn's
|
|
24
|
-
* reasoning by id (`item_reference`), which the backend then cannot find; told
|
|
25
|
-
* it is off, the SDK carries the encrypted reasoning itself.
|
|
26
|
-
*/
|
|
27
|
-
function withoutServerStorage(model) {
|
|
28
|
-
const storeOff = (options) => ({
|
|
29
|
-
...options,
|
|
30
|
-
providerOptions: { ...options.providerOptions, openai: { ...options.providerOptions?.['openai'], store: false } },
|
|
31
|
-
});
|
|
32
|
-
return {
|
|
33
|
-
specificationVersion: model.specificationVersion,
|
|
34
|
-
provider: model.provider,
|
|
35
|
-
modelId: model.modelId,
|
|
36
|
-
get supportedUrls() {
|
|
37
|
-
return model.supportedUrls;
|
|
38
|
-
},
|
|
39
|
-
doGenerate: (options) => model.doGenerate(storeOff(options)),
|
|
40
|
-
doStream: (options) => model.doStream(storeOff(options)),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=chatgpt.js.map
|
package/dist/oauth/cli.d.ts
CHANGED
|
@@ -31,4 +31,3 @@ export declare function runLogout(providerId: string | undefined, io?: CliIo): P
|
|
|
31
31
|
* terminal controls stripped. `list` is a test seam.
|
|
32
32
|
*/
|
|
33
33
|
export declare function runModels(providerId: string | undefined, io?: CliIo, list?: (id: ProviderId) => Promise<SubscriptionModel[]>): Promise<number>;
|
|
34
|
-
//# sourceMappingURL=cli.d.ts.map
|
package/dist/oauth/cli.js
CHANGED
|
@@ -121,6 +121,7 @@ async function signedIn() {
|
|
|
121
121
|
const PROVIDER_HINTS = {
|
|
122
122
|
openai: 'ChatGPT Plus/Pro, the Codex sign-in',
|
|
123
123
|
'github-copilot': 'GitHub Copilot: OpenAI, Anthropic, Google, and SpaceXAI models',
|
|
124
|
+
'opencode-console': 'your OpenCode Console workspace',
|
|
124
125
|
spacexai: 'SuperGrok or X Premium+',
|
|
125
126
|
};
|
|
126
127
|
/** A terminal picker over providers; without a terminal the provider has to be named. */
|
|
@@ -258,4 +259,3 @@ function openInBrowser(url) {
|
|
|
258
259
|
// The printed URL is the fallback.
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
|
-
//# sourceMappingURL=cli.js.map
|
package/dist/oauth/copilot.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `copilot('claude-sonnet-5')`: a GitHub Copilot subscription as an AI SDK
|
|
3
|
-
* model. Copilot serves
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* model. Copilot serves most of its models over the OpenAI chat protocol and
|
|
4
|
+
* some only over its Responses API; the instance asks the plan's model
|
|
5
|
+
* listing which on the first call and delegates to the matching model, so
|
|
6
|
+
* construction stays synchronous and touches the network only when a call
|
|
7
|
+
* does. An enterprise login stored by `e2e login` routes to its own host.
|
|
7
8
|
*/
|
|
8
9
|
import type { LanguageModelV4 } from '@ai-sdk/provider';
|
|
9
10
|
export declare function copilot(modelId: string): LanguageModelV4;
|
|
10
|
-
//# sourceMappingURL=copilot.d.ts.map
|
package/dist/oauth/copilot.js
CHANGED
|
@@ -1,27 +1,99 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `copilot('claude-sonnet-5')`: a GitHub Copilot subscription as an AI SDK
|
|
3
|
-
* model. Copilot serves
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* model. Copilot serves most of its models over the OpenAI chat protocol and
|
|
4
|
+
* some only over its Responses API; the instance asks the plan's model
|
|
5
|
+
* listing which on the first call and delegates to the matching model, so
|
|
6
|
+
* construction stays synchronous and touches the network only when a call
|
|
7
|
+
* does. An enterprise login stored by `e2e login` routes to its own host.
|
|
7
8
|
*/
|
|
8
9
|
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
|
|
10
|
+
import { OAuthError } from './errors.js';
|
|
9
11
|
import { createOAuthFetch } from './fetch.js';
|
|
10
|
-
import { USER_AGENT
|
|
11
|
-
import {
|
|
12
|
+
import { USER_AGENT } from '../internal/client-identity.js';
|
|
13
|
+
import { loginHint } from './providers.js';
|
|
14
|
+
import { COPILOT_API_URL, copilotProtocolFor, createCopilotProvider } from './providers/github-copilot.js';
|
|
15
|
+
import { withoutServerStorage } from './responses.js';
|
|
12
16
|
import { defaultCredentialStore } from './store.js';
|
|
17
|
+
/** How long the first call waits on the model listing before it calls over chat and asks again next time. */
|
|
18
|
+
const LISTING_TIMEOUT_MS = 10_000;
|
|
13
19
|
export function copilot(modelId) {
|
|
14
20
|
const fetch = createOAuthFetch(createCopilotProvider(), {
|
|
15
21
|
store: defaultCredentialStore(),
|
|
16
22
|
userAgent: USER_AGENT,
|
|
17
23
|
loginHint: loginHint('github-copilot'),
|
|
18
24
|
});
|
|
19
|
-
|
|
25
|
+
// The key header is removed per request; the value only satisfies the constructor.
|
|
26
|
+
const chat = createOpenAICompatible({
|
|
20
27
|
name: 'github-copilot',
|
|
21
28
|
baseURL: COPILOT_API_URL,
|
|
22
29
|
apiKey: 'oauth',
|
|
23
30
|
fetch,
|
|
24
31
|
includeUsage: true,
|
|
25
32
|
}).chatModel(modelId);
|
|
33
|
+
return protocolDelegate(chat, () => responsesModel(modelId, fetch), () => copilotProtocolFor(modelId, fetch, AbortSignal.timeout(LISTING_TIMEOUT_MS)));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The Responses model for `modelId`. `@ai-sdk/openai` is imported only here,
|
|
37
|
+
* so a project that calls only chat models needs no install of it.
|
|
38
|
+
*/
|
|
39
|
+
async function responsesModel(modelId, fetch) {
|
|
40
|
+
let createOpenAI;
|
|
41
|
+
try {
|
|
42
|
+
({ createOpenAI } = await import('@ai-sdk/openai'));
|
|
43
|
+
}
|
|
44
|
+
catch (cause) {
|
|
45
|
+
throw new OAuthError('MISCONFIGURED', `GitHub Copilot serves ${modelId} only over its Responses API, which copilot() calls through @ai-sdk/openai; install it beside @ai-sdk/openai-compatible`, { cause });
|
|
46
|
+
}
|
|
47
|
+
return withoutServerStorage(createOpenAI({ apiKey: 'oauth', baseURL: COPILOT_API_URL, fetch, name: 'github-copilot' }).responses(modelId));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A model that settles its Copilot protocol on the first call and delegates
|
|
51
|
+
* to the model for it. One lookup serves every concurrent call, under its
|
|
52
|
+
* own timeout, so a caller that gives up never fails the others. Only a
|
|
53
|
+
* listing that was read is remembered: when it could not be read, that call
|
|
54
|
+
* goes over chat, the endpoint most models use, and the next call asks again.
|
|
55
|
+
*/
|
|
56
|
+
function protocolDelegate(chat, responses, lookup) {
|
|
57
|
+
let resolved;
|
|
58
|
+
let pending;
|
|
59
|
+
const settle = () => {
|
|
60
|
+
if (resolved !== undefined)
|
|
61
|
+
return Promise.resolve(resolved);
|
|
62
|
+
pending ??= (async () => {
|
|
63
|
+
const protocol = await lookup();
|
|
64
|
+
if (protocol === undefined)
|
|
65
|
+
return chat;
|
|
66
|
+
resolved = protocol === 'responses' ? await responses() : chat;
|
|
67
|
+
return resolved;
|
|
68
|
+
})().finally(() => {
|
|
69
|
+
pending = undefined;
|
|
70
|
+
});
|
|
71
|
+
return pending;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
specificationVersion: chat.specificationVersion,
|
|
75
|
+
get provider() {
|
|
76
|
+
return resolved?.provider ?? chat.provider;
|
|
77
|
+
},
|
|
78
|
+
get modelId() {
|
|
79
|
+
return resolved?.modelId ?? chat.modelId;
|
|
80
|
+
},
|
|
81
|
+
get supportedUrls() {
|
|
82
|
+
return resolved?.supportedUrls ?? chat.supportedUrls;
|
|
83
|
+
},
|
|
84
|
+
doGenerate: async (options) => (await untilAborted(settle(), options.abortSignal)).doGenerate(options),
|
|
85
|
+
doStream: async (options) => (await untilAborted(settle(), options.abortSignal)).doStream(options),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** Waits for `promise` unless `signal` aborts first, leaving the shared promise running for other callers. */
|
|
89
|
+
function untilAborted(promise, signal) {
|
|
90
|
+
if (signal === undefined)
|
|
91
|
+
return promise;
|
|
92
|
+
if (signal.aborted)
|
|
93
|
+
return Promise.reject(signal.reason);
|
|
94
|
+
return new Promise((resolve, reject) => {
|
|
95
|
+
const onAbort = () => reject(signal.reason);
|
|
96
|
+
signal.addEventListener('abort', onAbort, { once: true });
|
|
97
|
+
promise.then(resolve, reject).finally(() => signal.removeEventListener('abort', onAbort));
|
|
98
|
+
});
|
|
26
99
|
}
|
|
27
|
-
//# sourceMappingURL=copilot.js.map
|
|
@@ -53,4 +53,3 @@ export interface Rfc8628Options {
|
|
|
53
53
|
}
|
|
54
54
|
/** The standard device flow; the poll reads the body before the status, since vendors disagree on the status for "pending". */
|
|
55
55
|
export declare function rfc8628Flow(options: Rfc8628Options): Promise<TokenResponse>;
|
|
56
|
-
//# sourceMappingURL=device-code.d.ts.map
|
package/dist/oauth/errors.d.ts
CHANGED
package/dist/oauth/errors.js
CHANGED
package/dist/oauth/fetch.d.ts
CHANGED
|
@@ -17,4 +17,3 @@ export interface OAuthFetchOptions {
|
|
|
17
17
|
readonly loginHint?: string;
|
|
18
18
|
}
|
|
19
19
|
export declare function createOAuthFetch<Credentials extends OAuthCredentials>(provider: OAuthProvider<Credentials, never>, options: OAuthFetchOptions): FetchFunction;
|
|
20
|
-
//# sourceMappingURL=fetch.d.ts.map
|
package/dist/oauth/fetch.js
CHANGED
package/dist/oauth/grok.d.ts
CHANGED
package/dist/oauth/grok.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { createXai } from '@ai-sdk/xai';
|
|
7
7
|
import { createOAuthFetch } from './fetch.js';
|
|
8
|
-
import { USER_AGENT
|
|
8
|
+
import { USER_AGENT } from '../internal/client-identity.js';
|
|
9
|
+
import { loginHint } from './providers.js';
|
|
9
10
|
import { createXaiProvider } from './providers/xai.js';
|
|
10
11
|
import { defaultCredentialStore } from './store.js';
|
|
11
12
|
export function grok(modelId) {
|
|
@@ -16,4 +17,3 @@ export function grok(modelId) {
|
|
|
16
17
|
});
|
|
17
18
|
return createXai({ apiKey: 'oauth', fetch })(modelId);
|
|
18
19
|
}
|
|
19
|
-
//# sourceMappingURL=grok.js.map
|
package/dist/oauth/jwt.d.ts
CHANGED
package/dist/oauth/jwt.js
CHANGED
package/dist/oauth/login.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ export interface LoginInput<Id extends ProviderId> {
|
|
|
9
9
|
export declare function login<Id extends ProviderId>(providerId: Id, input: LoginInput<Id>): Promise<OAuthCredentials>;
|
|
10
10
|
/** Forgets a stored login; true when there was one. */
|
|
11
11
|
export declare function logout(providerId: ProviderId, store?: CredentialStore): Promise<boolean>;
|
|
12
|
-
//# sourceMappingURL=login.d.ts.map
|
package/dist/oauth/login.js
CHANGED
package/dist/oauth/models.d.ts
CHANGED
|
@@ -3,4 +3,3 @@ import { type ProviderId } from './providers.ts';
|
|
|
3
3
|
import type { CredentialStore, SubscriptionModel } from './types.ts';
|
|
4
4
|
/** The models `providerId`'s stored login serves; `NOT_LOGGED_IN` without one. */
|
|
5
5
|
export declare function listModels(providerId: ProviderId, store?: CredentialStore): Promise<SubscriptionModel[]>;
|
|
6
|
-
//# sourceMappingURL=models.d.ts.map
|
package/dist/oauth/models.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** Lists the models a stored subscription login serves, through the login's own fetch. */
|
|
2
2
|
import { OAuthError } from './errors.js';
|
|
3
3
|
import { createOAuthFetch } from './fetch.js';
|
|
4
|
-
import { USER_AGENT
|
|
4
|
+
import { USER_AGENT } from '../internal/client-identity.js';
|
|
5
|
+
import { getProvider, loginHint } from './providers.js';
|
|
5
6
|
import { defaultCredentialStore } from './store.js';
|
|
6
7
|
/** The models `providerId`'s stored login serves; `NOT_LOGGED_IN` without one. */
|
|
7
8
|
export async function listModels(providerId, store = defaultCredentialStore()) {
|
|
@@ -11,4 +12,3 @@ export async function listModels(providerId, store = defaultCredentialStore()) {
|
|
|
11
12
|
const fetch = createOAuthFetch(provider, { store, userAgent: USER_AGENT, loginHint: loginHint(providerId) });
|
|
12
13
|
return provider.models(fetch);
|
|
13
14
|
}
|
|
14
|
-
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `opencodeConsole('deepseek-v4.1-flash')`: an OpenCode Console workspace as
|
|
3
|
+
* an AI SDK model, Zen for a bare id and Go for a `go/` one. The first call
|
|
4
|
+
* reads the workspace config for the model's protocol and lazily loads the
|
|
5
|
+
* SDK for it. Requests get the prompt-cache hints the runner itself adds for
|
|
6
|
+
* OpenAI and Anthropic, which it cannot do here since the protocol is unknown
|
|
7
|
+
* until then. `OPENCODE_API_KEY` replaces the stored login when set.
|
|
8
|
+
*/
|
|
9
|
+
import type { LanguageModelV4 } from '@ai-sdk/provider';
|
|
10
|
+
export declare function opencodeConsole(modelId: string): LanguageModelV4;
|