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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Which phase of a test owns an `expect.poll`, so one left running fails that phase and nothing later. */
|
|
2
|
+
import { TestError } from '../internal/errors.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The polls one phase started: a test body with its fixtures and
|
|
5
|
+
* `beforeEach` hooks, one teardown, or one suite hook. A poll is not a step
|
|
6
|
+
* and records nothing; what the scope adds is that a poll the phase did not
|
|
7
|
+
* await ends with the phase instead of failing whatever runs when it times out.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PollScope {
|
|
10
|
+
private readonly owner;
|
|
11
|
+
private readonly running;
|
|
12
|
+
private closed;
|
|
13
|
+
/** `owner` completes "... returned before", as in `the test body`. */
|
|
14
|
+
constructor(owner: string);
|
|
15
|
+
/**
|
|
16
|
+
* Runs one poll, owned by this scope until it settles. `work` receives the
|
|
17
|
+
* signal that cancels it when the scope closes first. A poll started after
|
|
18
|
+
* the scope closed, by work its phase left running (a body past its
|
|
19
|
+
* timeout), is cancelled before its first read: it belongs to no phase
|
|
20
|
+
* that could still fail, and must not fail the one running now.
|
|
21
|
+
*/
|
|
22
|
+
track<T>(label: string, stack: string | undefined, work: (signal: AbortSignal) => Promise<T>): Promise<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Ends the scope when its phase has returned: every poll still running is
|
|
25
|
+
* cancelled and its later rejection observed. Returns the error naming
|
|
26
|
+
* them, at the line of the first, or nothing when every poll had settled.
|
|
27
|
+
* A caller whose phase was cut short (a timeout, a throw) may drop the
|
|
28
|
+
* error: the phase may have been awaiting the poll. Closing twice returns
|
|
29
|
+
* nothing the second time.
|
|
30
|
+
*/
|
|
31
|
+
close(): TestError | undefined;
|
|
32
|
+
private cancel;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Runs `run` with `scope` owning every poll it starts, however deep in its
|
|
36
|
+
* async work and however long that work outlives the phase: a poll belongs
|
|
37
|
+
* to the phase that started it, never to the one running when it is called.
|
|
38
|
+
*/
|
|
39
|
+
export declare function runInPollScope<T>(scope: PollScope, run: () => T): T;
|
|
40
|
+
/** One lineage of async work whose polls go to the scope current where it started, until `handOver`. */
|
|
41
|
+
export interface PollLineage {
|
|
42
|
+
run<T>(run: () => T): T;
|
|
43
|
+
/** Sends the lineage's polls from now on to the scope current at this call. */
|
|
44
|
+
handOver(): void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A lineage for work that spans two phases, a fixture: its setup runs in the
|
|
48
|
+
* body's phase, and the rest of its function after `use` is its teardown's.
|
|
49
|
+
*/
|
|
50
|
+
export declare function pollLineage(): PollLineage;
|
|
51
|
+
/** The scope a poll started here belongs to, or undefined outside any phase (a standalone script). */
|
|
52
|
+
export declare function currentPollScope(): PollScope | undefined;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/** Which phase of a test owns an `expect.poll`, so one left running fails that phase and nothing later. */
|
|
2
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
|
+
import { markAbandonedRejection, relocateStack } from '../internal/abandoned.js';
|
|
4
|
+
import { pollScopesBrand } from '../internal/brands.js';
|
|
5
|
+
import { TestError, withHint } from '../internal/errors.js';
|
|
6
|
+
import { realmSlot } from '../internal/realm-slot.js';
|
|
7
|
+
/**
|
|
8
|
+
* The polls one phase started: a test body with its fixtures and
|
|
9
|
+
* `beforeEach` hooks, one teardown, or one suite hook. A poll is not a step
|
|
10
|
+
* and records nothing; what the scope adds is that a poll the phase did not
|
|
11
|
+
* await ends with the phase instead of failing whatever runs when it times out.
|
|
12
|
+
*/
|
|
13
|
+
export class PollScope {
|
|
14
|
+
owner;
|
|
15
|
+
running = new Set();
|
|
16
|
+
closed = false;
|
|
17
|
+
/** `owner` completes "... returned before", as in `the test body`. */
|
|
18
|
+
constructor(owner) {
|
|
19
|
+
this.owner = owner;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Runs one poll, owned by this scope until it settles. `work` receives the
|
|
23
|
+
* signal that cancels it when the scope closes first. A poll started after
|
|
24
|
+
* the scope closed, by work its phase left running (a body past its
|
|
25
|
+
* timeout), is cancelled before its first read: it belongs to no phase
|
|
26
|
+
* that could still fail, and must not fail the one running now.
|
|
27
|
+
*/
|
|
28
|
+
track(label, stack, work) {
|
|
29
|
+
const poll = { label, stack, controller: new AbortController(), promise: Promise.resolve(), abandoned: false };
|
|
30
|
+
if (this.closed)
|
|
31
|
+
this.cancel(poll);
|
|
32
|
+
const promise = (async () => {
|
|
33
|
+
try {
|
|
34
|
+
return await work(poll.controller.signal);
|
|
35
|
+
}
|
|
36
|
+
catch (cause) {
|
|
37
|
+
if (poll.abandoned)
|
|
38
|
+
markAbandonedRejection(cause);
|
|
39
|
+
throw cause;
|
|
40
|
+
}
|
|
41
|
+
finally {
|
|
42
|
+
this.running.delete(poll);
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
poll.promise = promise;
|
|
46
|
+
if (poll.abandoned)
|
|
47
|
+
promise.catch(() => undefined);
|
|
48
|
+
else
|
|
49
|
+
this.running.add(poll);
|
|
50
|
+
return promise;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Ends the scope when its phase has returned: every poll still running is
|
|
54
|
+
* cancelled and its later rejection observed. Returns the error naming
|
|
55
|
+
* them, at the line of the first, or nothing when every poll had settled.
|
|
56
|
+
* A caller whose phase was cut short (a timeout, a throw) may drop the
|
|
57
|
+
* error: the phase may have been awaiting the poll. Closing twice returns
|
|
58
|
+
* nothing the second time.
|
|
59
|
+
*/
|
|
60
|
+
close() {
|
|
61
|
+
this.closed = true;
|
|
62
|
+
const polls = [...this.running];
|
|
63
|
+
const [first] = polls;
|
|
64
|
+
if (first === undefined)
|
|
65
|
+
return undefined;
|
|
66
|
+
for (const poll of polls)
|
|
67
|
+
this.cancel(poll);
|
|
68
|
+
const more = polls.length > 1 ? ` and ${polls.length - 1} more` : '';
|
|
69
|
+
const error = new TestError('STEP_NOT_AWAITED', withHint(`${this.owner} returned before ${first.label}${more} finished`, 'put `await` in front of every expect.poll call'));
|
|
70
|
+
relocateStack(error, first.stack);
|
|
71
|
+
return error;
|
|
72
|
+
}
|
|
73
|
+
cancel(poll) {
|
|
74
|
+
this.running.delete(poll);
|
|
75
|
+
poll.abandoned = true;
|
|
76
|
+
poll.promise.catch(() => undefined);
|
|
77
|
+
poll.controller.abort();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const storage = new AsyncLocalStorage();
|
|
81
|
+
const scopes = { current: () => storage.getStore()?.scope };
|
|
82
|
+
const slot = realmSlot(pollScopesBrand);
|
|
83
|
+
/** Runs `run` in the lineage `owner` names, publishing the runner's context for a test module's `expect`. */
|
|
84
|
+
function enter(owner, run) {
|
|
85
|
+
if (slot.get(globalThis) !== scopes)
|
|
86
|
+
slot.set(globalThis, scopes);
|
|
87
|
+
return storage.run(owner, run);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Runs `run` with `scope` owning every poll it starts, however deep in its
|
|
91
|
+
* async work and however long that work outlives the phase: a poll belongs
|
|
92
|
+
* to the phase that started it, never to the one running when it is called.
|
|
93
|
+
*/
|
|
94
|
+
export function runInPollScope(scope, run) {
|
|
95
|
+
return enter({ scope }, run);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A lineage for work that spans two phases, a fixture: its setup runs in the
|
|
99
|
+
* body's phase, and the rest of its function after `use` is its teardown's.
|
|
100
|
+
*/
|
|
101
|
+
export function pollLineage() {
|
|
102
|
+
const owner = { scope: scopes.current() };
|
|
103
|
+
return {
|
|
104
|
+
run: (run) => enter(owner, run),
|
|
105
|
+
handOver: () => {
|
|
106
|
+
owner.scope = scopes.current();
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/** The scope a poll started here belongs to, or undefined outside any phase (a standalone script). */
|
|
111
|
+
export function currentPollScope() {
|
|
112
|
+
return slot.get(globalThis)?.current();
|
|
113
|
+
}
|
package/dist/expect/poll.d.ts
CHANGED
|
@@ -2,4 +2,3 @@
|
|
|
2
2
|
import type { PollExpectation, PollOptions } from '../types.ts';
|
|
3
3
|
/** Re-reads `read` until the chosen value matcher holds or `options.timeout` passes. */
|
|
4
4
|
export declare function createPollExpectation<T>(read: () => T | Promise<T>, options?: PollOptions): PollExpectation<T>;
|
|
5
|
-
//# sourceMappingURL=poll.d.ts.map
|
package/dist/expect/poll.js
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
import { ConfigurationError, E2EError, TestError } from '../internal/errors.js';
|
|
3
3
|
import { Deadline, POLL_INTERVAL_MS, sleep, withAbort, withTimeout } from '../internal/time.js';
|
|
4
4
|
import { currentAttempt } from './attempt.js';
|
|
5
|
+
import { currentPollScope } from './poll-scope.js';
|
|
5
6
|
import { createValueExpectation } from './values.js';
|
|
6
7
|
/** Outside an attempt (a standalone script) there is no config to read `assertionTimeout` from. */
|
|
7
8
|
const DEFAULT_TIMEOUT_MS = 5000;
|
|
9
|
+
/** Frames kept for the line a poll was called on; the user's line is a few frames up. */
|
|
10
|
+
const CALL_STACK_FRAMES = 20;
|
|
8
11
|
/** `satisfies` keeps this list equal to the ValueExpectation matcher set. */
|
|
9
12
|
const MATCHERS = {
|
|
10
13
|
toBe: true,
|
|
@@ -46,7 +49,21 @@ function sample(read, deadline, signal) {
|
|
|
46
49
|
const bounded = withTimeout((async () => read())(), deadline.remaining(), () => new ReadHung());
|
|
47
50
|
return signal === undefined ? bounded : withAbort(bounded, signal, () => new ReadAborted());
|
|
48
51
|
}
|
|
49
|
-
|
|
52
|
+
/** The stack at a poll's call, for the error that names it when its phase did not await it. */
|
|
53
|
+
function callStack() {
|
|
54
|
+
const limit = Error.stackTraceLimit;
|
|
55
|
+
Error.stackTraceLimit = CALL_STACK_FRAMES;
|
|
56
|
+
try {
|
|
57
|
+
return new Error().stack;
|
|
58
|
+
}
|
|
59
|
+
finally {
|
|
60
|
+
Error.stackTraceLimit = limit;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function matcherLabel(negated, name) {
|
|
64
|
+
return `expect.poll(...).${negated ? 'not.' : ''}${name}(...)`;
|
|
65
|
+
}
|
|
66
|
+
async function pollMatcher(read, options, negated, name, args, scopeSignal) {
|
|
50
67
|
const attempt = currentAttempt();
|
|
51
68
|
const timeout = options.timeout ?? attempt?.assertionTimeout ?? DEFAULT_TIMEOUT_MS;
|
|
52
69
|
const interval = options.interval ?? POLL_INTERVAL_MS;
|
|
@@ -57,9 +74,14 @@ async function pollMatcher(read, options, negated, name, args) {
|
|
|
57
74
|
// the moment the attempt is cancelled, so a timed-out test never keeps
|
|
58
75
|
// reading through teardown.
|
|
59
76
|
const deadline = attempt === undefined ? own : Deadline.min(own, attempt.budget.deadline);
|
|
60
|
-
|
|
77
|
+
// The phase that started the poll cancels it when it returns without
|
|
78
|
+
// awaiting it, so the poll can never fail whatever runs after.
|
|
79
|
+
const signals = [attempt?.budget.signal, scopeSignal].filter((signal) => signal !== undefined);
|
|
80
|
+
const signal = signals.length === 0 ? undefined : AbortSignal.any(signals);
|
|
61
81
|
let last;
|
|
62
82
|
while (!deadline.expired()) {
|
|
83
|
+
if (signal?.aborted === true)
|
|
84
|
+
throw cancelled();
|
|
63
85
|
let value;
|
|
64
86
|
try {
|
|
65
87
|
value = await sample(read, deadline, signal);
|
|
@@ -89,7 +111,7 @@ async function pollMatcher(read, options, negated, name, args) {
|
|
|
89
111
|
? `timed out after ${timeout} ms`
|
|
90
112
|
: `stopped at the attempt deadline after ${Date.now() - startedAt} ms`;
|
|
91
113
|
throw new TestError('ASSERTION_FAILED', [
|
|
92
|
-
|
|
114
|
+
`${matcherLabel(negated, name)} ${ending}`,
|
|
93
115
|
...(options.message === undefined ? [] : [options.message]),
|
|
94
116
|
`last: ${last ?? 'no read completed'}`,
|
|
95
117
|
].join('\n'));
|
|
@@ -107,7 +129,12 @@ function checkOptions(options) {
|
|
|
107
129
|
function build(read, options, negated) {
|
|
108
130
|
const matchers = Object.fromEntries(Object.keys(MATCHERS).map((name) => [
|
|
109
131
|
name,
|
|
110
|
-
(...args) =>
|
|
132
|
+
(...args) => {
|
|
133
|
+
const scope = currentPollScope();
|
|
134
|
+
if (scope === undefined)
|
|
135
|
+
return pollMatcher(read, options, negated, name, args, undefined);
|
|
136
|
+
return scope.track(matcherLabel(negated, name), callStack(), (signal) => pollMatcher(read, options, negated, name, args, signal));
|
|
137
|
+
},
|
|
111
138
|
]));
|
|
112
139
|
return {
|
|
113
140
|
...matchers,
|
|
@@ -121,4 +148,3 @@ export function createPollExpectation(read, options = {}) {
|
|
|
121
148
|
checkOptions(options);
|
|
122
149
|
return build(read, options, false);
|
|
123
150
|
}
|
|
124
|
-
//# sourceMappingURL=poll.js.map
|
package/dist/expect/soft.d.ts
CHANGED
package/dist/expect/soft.js
CHANGED
package/dist/expect/values.d.ts
CHANGED
package/dist/expect/values.js
CHANGED
|
@@ -207,18 +207,24 @@ class ValueExpectationImpl {
|
|
|
207
207
|
this.check(holds(actual), () => `expected ${actual} to be ${phrase} ${expected}`, () => `expected ${actual} not to be ${phrase} ${expected}`);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Walks `keys` into `value`; `present` says whether the whole path resolved.
|
|
212
|
+
* A primitive on the way is read through its wrapper object, as Jest does,
|
|
213
|
+
* so a string has its `length` and indices; `null` and `undefined` have no
|
|
214
|
+
* properties.
|
|
215
|
+
*/
|
|
211
216
|
function lookup(value, keys) {
|
|
212
217
|
let current = value;
|
|
213
218
|
for (const key of keys) {
|
|
214
|
-
if (
|
|
219
|
+
if (current === null || current === undefined)
|
|
215
220
|
return { present: false, value: undefined };
|
|
216
|
-
|
|
217
|
-
|
|
221
|
+
const holder = Object(current);
|
|
222
|
+
if (!(key in holder))
|
|
223
|
+
return { present: false, value: undefined };
|
|
224
|
+
current = holder[key];
|
|
218
225
|
}
|
|
219
226
|
return { present: true, value: current };
|
|
220
227
|
}
|
|
221
228
|
export function createValueExpectation(actual, message) {
|
|
222
229
|
return new ValueExpectationImpl(actual, false, message);
|
|
223
230
|
}
|
|
224
|
-
//# sourceMappingURL=values.js.map
|
package/dist/explore/body.d.ts
CHANGED
package/dist/explore/body.js
CHANGED
|
@@ -178,4 +178,3 @@ function conclude(state) {
|
|
|
178
178
|
throw new AgentError(code !== undefined && BLOCKABLE_CODES.has(code) ? code : 'AUTOMATION_UNSUPPORTED', `exploration could not complete a charter: ${first.summary ?? first.title}`, { blocked: true });
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
//# sourceMappingURL=body.js.map
|
|
@@ -31,4 +31,3 @@ export interface ExplorerOptions {
|
|
|
31
31
|
export declare function explorerAgent(options: ExplorerOptions): AgentConfig;
|
|
32
32
|
/** The resolved explorer with the finding tool beside the project's tools. */
|
|
33
33
|
export declare function withFindingTool(explorer: ResolvedAgentConfig, state: ExploreState): ResolvedAgentConfig;
|
|
34
|
-
//# sourceMappingURL=executor.d.ts.map
|
package/dist/explore/executor.js
CHANGED
package/dist/explore/index.d.ts
CHANGED
package/dist/explore/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import { resolveConfig } from '../config/resolve.js';
|
|
|
15
15
|
import { ConfigurationError } from '../internal/errors.js';
|
|
16
16
|
import { labelSegment } from '../run/artifacts.js';
|
|
17
17
|
import { run } from '../run/runner.js';
|
|
18
|
+
import { staticSecretLedger } from '../run/secrecy.js';
|
|
18
19
|
import { createExploreBody } from './body.js';
|
|
19
20
|
import { explorerAgent, withFindingTool } from './executor.js';
|
|
20
21
|
import { signedInContext } from './plan.js';
|
|
@@ -66,7 +67,7 @@ export async function explore(options = {}) {
|
|
|
66
67
|
const agentName = resolved.agentNames[0];
|
|
67
68
|
if (agentName !== 'default')
|
|
68
69
|
notice(`exploring with agent "${agentName}"`);
|
|
69
|
-
const state = new ExploreState(goal, budgets);
|
|
70
|
+
const state = new ExploreState(redactGoal(goal, resolved.allSecrets), budgets);
|
|
70
71
|
const explorer = explorerAgent({ state, agentName, entry: raw.agents?.[agentName], resolved: resolved.agent, notice });
|
|
71
72
|
const resolvedExplorer = resolveAgentConfig(exploreAgentConfig(explorer), `agents.${agentName}`);
|
|
72
73
|
// Every exploration step calls the model, a custom executor's included,
|
|
@@ -121,6 +122,20 @@ function resolveGoal(goal) {
|
|
|
121
122
|
}
|
|
122
123
|
return trimmed;
|
|
123
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* The goal with every static secret value it spells out redacted. The goal
|
|
127
|
+
* becomes the test's title, its artifact directory, the report's goal, and
|
|
128
|
+
* model input, so it is redacted once, here, as a test file's titles are at
|
|
129
|
+
* collection. A marker can be longer than the value it replaces, so the
|
|
130
|
+
* ceiling is checked again on what the run will keep.
|
|
131
|
+
*/
|
|
132
|
+
function redactGoal(goal, secrets) {
|
|
133
|
+
const redacted = staticSecretLedger(secrets).redact(goal);
|
|
134
|
+
if (redacted.length > MAX_GOAL_CHARS) {
|
|
135
|
+
throw new ConfigurationError('INVALID_CONFIG', `the goal must be at most ${MAX_GOAL_CHARS} characters with its secret values redacted, got ${redacted.length}`);
|
|
136
|
+
}
|
|
137
|
+
return redacted;
|
|
138
|
+
}
|
|
124
139
|
function resolveBounded(value, bounds, label) {
|
|
125
140
|
if (value === undefined)
|
|
126
141
|
return bounds.default;
|
|
@@ -204,4 +219,3 @@ function exploreRegistration(state, start) {
|
|
|
204
219
|
};
|
|
205
220
|
return { tests: [test], hooks: [] };
|
|
206
221
|
}
|
|
207
|
-
//# sourceMappingURL=index.js.map
|
package/dist/explore/plan.d.ts
CHANGED
|
@@ -79,4 +79,3 @@ export declare function repairPlan(answer: PlanAnswer): PlanDecision;
|
|
|
79
79
|
/** The planner's instruction: the goal, the record so far, the budget, and how to decide. */
|
|
80
80
|
export declare function planInstruction(state: ExploreState, request: PlanRequest): string;
|
|
81
81
|
export {};
|
|
82
|
-
//# sourceMappingURL=plan.d.ts.map
|
package/dist/explore/plan.js
CHANGED
|
@@ -173,4 +173,3 @@ export function planInstruction(state, request) {
|
|
|
173
173
|
'Respond with every field present: {"decision": "step", "title": "...", "instruction": "...", "summary": ""} or {"decision": "finish", "title": "", "instruction": "", "summary": "..."}.',
|
|
174
174
|
].join('\n');
|
|
175
175
|
}
|
|
176
|
-
//# sourceMappingURL=plan.js.map
|
package/dist/explore/progress.js
CHANGED
package/dist/explore/state.d.ts
CHANGED
package/dist/explore/state.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export type { ExecutorActions, ExecutorAttempt, ExecutorBudgets, ExecutorModelCa
|
|
|
11
11
|
export type { StepTurn, VisionDegradation } from './run/steps.ts';
|
|
12
12
|
export type { RunEvent, RunEventOf, RunExitCode, RunStatus } from './run/events.ts';
|
|
13
13
|
export type { EngineAppDeclaration } from './engine/index.ts';
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -7,4 +7,3 @@ export { AgentError, isAgentError } from './agent/error.js';
|
|
|
7
7
|
// The markdown page the `markdown` reporter writes, for a reporter that posts
|
|
8
8
|
// it elsewhere: @e2e-dev/github renders the pull request comment from it.
|
|
9
9
|
export { renderMarkdownReport } from './report/markdown.js';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Work a test left running when its phase returned: steps and polls nobody awaited. */
|
|
2
|
+
/** Records `cause` as the rejection of work already failed as not awaited. */
|
|
3
|
+
export declare function markAbandonedRejection(cause: unknown): void;
|
|
4
|
+
/**
|
|
5
|
+
* Whether an unhandled rejection is abandoned work's: already recorded as
|
|
6
|
+
* `STEP_NOT_AWAITED`, reaching the process only because the promise the
|
|
7
|
+
* test did not await rejected with it. Such a rejection is not a fault.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isAbandonedRejection(cause: unknown): boolean;
|
|
10
|
+
/** Points `error` at the frames of `stack`, keeping its own name and message as the first line. */
|
|
11
|
+
export declare function relocateStack(error: Error, stack: string | undefined): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Work a test left running when its phase returned: steps and polls nobody awaited. */
|
|
2
|
+
/** What abandoned work rejected with. The promise the test holds rejects with the same value, and nobody awaits it. */
|
|
3
|
+
const ABANDONED_REJECTIONS = new WeakSet();
|
|
4
|
+
/** Records `cause` as the rejection of work already failed as not awaited. */
|
|
5
|
+
export function markAbandonedRejection(cause) {
|
|
6
|
+
if (typeof cause === 'object' && cause !== null)
|
|
7
|
+
ABANDONED_REJECTIONS.add(cause);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Whether an unhandled rejection is abandoned work's: already recorded as
|
|
11
|
+
* `STEP_NOT_AWAITED`, reaching the process only because the promise the
|
|
12
|
+
* test did not await rejected with it. Such a rejection is not a fault.
|
|
13
|
+
*/
|
|
14
|
+
export function isAbandonedRejection(cause) {
|
|
15
|
+
return typeof cause === 'object' && cause !== null && ABANDONED_REJECTIONS.has(cause);
|
|
16
|
+
}
|
|
17
|
+
/** Points `error` at the frames of `stack`, keeping its own name and message as the first line. */
|
|
18
|
+
export function relocateStack(error, stack) {
|
|
19
|
+
if (stack === undefined)
|
|
20
|
+
return;
|
|
21
|
+
const frames = stack.split('\n').slice(1).join('\n');
|
|
22
|
+
error.stack = `${error.name}: ${error.message}\n${frames}`;
|
|
23
|
+
}
|
|
@@ -14,4 +14,3 @@ export interface AtomicWriteOptions {
|
|
|
14
14
|
export declare function writeFileAtomic(filePath: string, content: string | Uint8Array, options?: AtomicWriteOptions): Promise<void>;
|
|
15
15
|
/** The synchronous twin, for a store that is read and written from synchronous code. */
|
|
16
16
|
export declare function writeFileAtomicSync(filePath: string, content: string, options?: AtomicWriteOptions): void;
|
|
17
|
-
//# sourceMappingURL=atomic-write.d.ts.map
|
|
@@ -9,4 +9,5 @@ export declare const locatorBrand: unique symbol;
|
|
|
9
9
|
export declare const expectationBrand: unique symbol;
|
|
10
10
|
/** Slot on `globalThis` naming the running attempt for `expect.poll`. */
|
|
11
11
|
export declare const attemptBrand: unique symbol;
|
|
12
|
-
|
|
12
|
+
/** Slot on `globalThis` holding the runner's view of which phase owns an `expect.poll`. */
|
|
13
|
+
export declare const pollScopesBrand: unique symbol;
|
package/dist/internal/brands.js
CHANGED
|
@@ -9,4 +9,5 @@ export const locatorBrand = Symbol.for('e2e.locator');
|
|
|
9
9
|
export const expectationBrand = Symbol.for('e2e.expectation.v1');
|
|
10
10
|
/** Slot on `globalThis` naming the running attempt for `expect.poll`. */
|
|
11
11
|
export const attemptBrand = Symbol.for('e2e.attempt.v1');
|
|
12
|
-
|
|
12
|
+
/** Slot on `globalThis` holding the runner's view of which phase owns an `expect.poll`. */
|
|
13
|
+
export const pollScopesBrand = Symbol.for('e2e.pollScopes.v1');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** How e2e names itself to the vendors it calls. */
|
|
2
|
+
/** `e2e/<version> (<platform>; <arch>)`: what every vendor request identifies as. Never another client's name. */
|
|
3
|
+
export declare const USER_AGENT: string;
|
|
4
|
+
/**
|
|
5
|
+
* Sent with every model call, whichever provider serves it. The AI SDK appends
|
|
6
|
+
* its own user agent after ours; `http-referer` and `x-title` are the app
|
|
7
|
+
* attribution the Vercel AI Gateway and OpenRouter read, and others ignore.
|
|
8
|
+
*/
|
|
9
|
+
export declare const MODEL_REQUEST_HEADERS: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** How e2e names itself to the vendors it calls. */
|
|
2
|
+
import { packageVersion } from './package-version.js';
|
|
3
|
+
/** `e2e/<version> (<platform>; <arch>)`: what every vendor request identifies as. Never another client's name. */
|
|
4
|
+
export const USER_AGENT = `e2e/${packageVersion(import.meta.url, '../../package.json', '0.0.0')} (${process.platform}; ${process.arch})`;
|
|
5
|
+
/**
|
|
6
|
+
* Sent with every model call, whichever provider serves it. The AI SDK appends
|
|
7
|
+
* its own user agent after ours; `http-referer` and `x-title` are the app
|
|
8
|
+
* attribution the Vercel AI Gateway and OpenRouter read, and others ignore.
|
|
9
|
+
*/
|
|
10
|
+
export const MODEL_REQUEST_HEADERS = {
|
|
11
|
+
'user-agent': USER_AGENT,
|
|
12
|
+
'http-referer': 'https://tester.army/e2e',
|
|
13
|
+
'x-title': 'e2e',
|
|
14
|
+
};
|
package/dist/internal/debug.d.ts
CHANGED
|
@@ -40,4 +40,3 @@ export declare class DebugTrace {
|
|
|
40
40
|
export declare function table(title: string, header: readonly string[], rows: readonly (readonly string[])[], empty: string, leftAligned?: ReadonlySet<number>): string;
|
|
41
41
|
export declare function formatMs(value: number): string;
|
|
42
42
|
export {};
|
|
43
|
-
//# sourceMappingURL=debug.d.ts.map
|
package/dist/internal/debug.js
CHANGED
package/dist/internal/env.d.ts
CHANGED
|
@@ -3,4 +3,3 @@
|
|
|
3
3
|
export declare function envValue(env: NodeJS.ProcessEnv, name: string): string | undefined;
|
|
4
4
|
/** True for a set variable that is not blank, `0`, or `false`. */
|
|
5
5
|
export declare function envFlag(env: NodeJS.ProcessEnv, name: string): boolean;
|
|
6
|
-
//# sourceMappingURL=env.d.ts.map
|
package/dist/internal/env.js
CHANGED
|
@@ -172,4 +172,3 @@ export declare function sanitizeText(text: string): string;
|
|
|
172
172
|
/** Truncates a string so its UTF-8 encoding fits maxBytes without splitting a code point. */
|
|
173
173
|
export declare function truncateUtf8(text: string, maxBytes: number): string;
|
|
174
174
|
export {};
|
|
175
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/dist/internal/errors.js
CHANGED
package/dist/internal/git.d.ts
CHANGED
package/dist/internal/git.js
CHANGED
package/dist/internal/globs.d.ts
CHANGED
|
@@ -66,4 +66,3 @@ export declare function discoverFiles(root: string, patterns: readonly string[])
|
|
|
66
66
|
/** Sorts strings by Unicode code point, the order collection is defined in. */
|
|
67
67
|
export declare function compareCodePoints(a: string, b: string): number;
|
|
68
68
|
export {};
|
|
69
|
-
//# sourceMappingURL=globs.d.ts.map
|
package/dist/internal/globs.js
CHANGED
package/dist/internal/ids.d.ts
CHANGED
|
@@ -35,4 +35,3 @@ export declare function resultId(test: string, targetId: string, agent: string,
|
|
|
35
35
|
export declare function uuidv7(now?: number): string;
|
|
36
36
|
/** RFC 3339 UTC timestamp with exactly millisecond precision. */
|
|
37
37
|
export declare function timestamp(date?: Date): string;
|
|
38
|
-
//# sourceMappingURL=ids.d.ts.map
|
package/dist/internal/ids.js
CHANGED
|
@@ -12,4 +12,3 @@ export interface JsonValueRules {
|
|
|
12
12
|
}
|
|
13
13
|
/** Validates that a value is JSON-safe, throwing a labeled TestError otherwise. */
|
|
14
14
|
export declare function validateJsonValue(value: unknown, label: string, rules?: JsonValueRules): void;
|
|
15
|
-
//# sourceMappingURL=json-value.d.ts.map
|