niceeval 0.12.1 → 0.12.2-canary.31
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/INDEX.md +33 -27
- package/bin/niceeval.js +8 -6
- package/dist/agents/ai-sdk-otel.cjs +54 -0
- package/dist/agents/ai-sdk-otel.cjs.map +1 -0
- package/dist/agents/ai-sdk-otel.d.cts +27 -0
- package/dist/agents/ai-sdk-otel.d.mts +27 -0
- package/dist/agents/ai-sdk-otel.d.ts +27 -0
- package/dist/agents/ai-sdk-otel.js +6 -0
- package/dist/agents/ai-sdk-otel.js.map +1 -0
- package/dist/agents/ai-sdk-otel.mjs +6 -0
- package/dist/agents/ai-sdk-otel.mjs.map +1 -0
- package/dist/agents/ai-sdk.cjs +412 -0
- package/dist/agents/ai-sdk.cjs.map +1 -0
- package/dist/agents/ai-sdk.d.cts +214 -0
- package/dist/agents/ai-sdk.d.mts +214 -0
- package/dist/agents/ai-sdk.d.ts +214 -0
- package/dist/agents/ai-sdk.js +8 -0
- package/dist/agents/ai-sdk.js.map +1 -0
- package/dist/agents/bub-install-spec.cjs +42 -0
- package/dist/agents/bub-install-spec.cjs.map +1 -0
- package/dist/agents/bub-install-spec.d.cts +22 -0
- package/dist/agents/bub-install-spec.d.mts +22 -0
- package/dist/agents/bub-install-spec.d.ts +22 -0
- package/dist/agents/bub-install-spec.js +20 -0
- package/dist/agents/bub-install-spec.js.map +1 -0
- package/dist/agents/bub.cjs +204 -0
- package/dist/agents/bub.cjs.map +1 -0
- package/dist/agents/bub.d.cts +57 -0
- package/dist/agents/bub.d.mts +57 -0
- package/dist/agents/bub.d.ts +57 -0
- package/dist/agents/bub.js +7 -0
- package/dist/agents/bub.js.map +1 -0
- package/dist/agents/builtin.cjs +21 -0
- package/dist/agents/builtin.cjs.map +1 -0
- package/dist/agents/builtin.d.cts +2 -0
- package/dist/agents/builtin.d.mts +2 -0
- package/dist/agents/builtin.d.ts +2 -0
- package/dist/agents/builtin.js +6 -0
- package/dist/agents/builtin.js.map +1 -0
- package/dist/agents/cache-marker.cjs +6 -0
- package/dist/agents/cache-marker.cjs.map +1 -0
- package/dist/agents/cache-marker.d.cts +5 -0
- package/dist/agents/cache-marker.d.mts +5 -0
- package/dist/agents/cache-marker.js +6 -2
- package/dist/agents/cache-marker.js.map +1 -0
- package/dist/agents/claude-code.cjs +372 -0
- package/dist/agents/claude-code.cjs.map +1 -0
- package/dist/agents/claude-code.d.cts +91 -0
- package/dist/agents/claude-code.d.mts +91 -0
- package/dist/agents/claude-code.d.ts +91 -0
- package/dist/agents/claude-code.js +9 -0
- package/dist/agents/claude-code.js.map +1 -0
- package/dist/agents/codex.cjs +658 -0
- package/dist/agents/codex.cjs.map +1 -0
- package/dist/agents/codex.d.cts +96 -0
- package/dist/agents/codex.d.mts +96 -0
- package/dist/agents/codex.d.ts +96 -0
- package/dist/agents/codex.js +9 -0
- package/dist/agents/codex.js.map +1 -0
- package/dist/agents/coding-cli-versions.cjs +71 -0
- package/dist/agents/coding-cli-versions.cjs.map +1 -0
- package/dist/agents/coding-cli-versions.d.cts +40 -0
- package/dist/agents/coding-cli-versions.d.mts +40 -0
- package/dist/agents/coding-cli-versions.d.ts +40 -0
- package/dist/agents/coding-cli-versions.js +22 -0
- package/dist/agents/coding-cli-versions.js.map +1 -0
- package/dist/agents/hermes.cjs +237 -0
- package/dist/agents/hermes.cjs.map +1 -0
- package/dist/agents/hermes.d.cts +17 -0
- package/dist/agents/hermes.d.mts +17 -0
- package/dist/agents/hermes.d.ts +17 -0
- package/dist/agents/hermes.js +7 -0
- package/dist/agents/hermes.js.map +1 -0
- package/dist/agents/index.cjs +92 -0
- package/dist/agents/index.cjs.map +1 -0
- package/dist/agents/index.d.cts +44 -0
- package/dist/agents/index.d.mts +44 -0
- package/dist/agents/index.d.ts +44 -0
- package/dist/agents/index.js +86 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/index.mjs +86 -0
- package/dist/agents/index.mjs.map +1 -0
- package/dist/agents/langgraph.cjs +426 -0
- package/dist/agents/langgraph.cjs.map +1 -0
- package/dist/agents/langgraph.d.cts +43 -0
- package/dist/agents/langgraph.d.mts +43 -0
- package/dist/agents/langgraph.d.ts +43 -0
- package/dist/agents/langgraph.js +6 -0
- package/dist/agents/langgraph.js.map +1 -0
- package/dist/agents/marketplace.cjs +81 -0
- package/dist/agents/marketplace.cjs.map +1 -0
- package/dist/agents/marketplace.d.cts +27 -0
- package/dist/agents/marketplace.d.mts +27 -0
- package/dist/agents/marketplace.d.ts +27 -0
- package/dist/agents/marketplace.js +8 -0
- package/dist/agents/marketplace.js.map +1 -0
- package/dist/agents/mcp.cjs +28 -0
- package/dist/agents/mcp.cjs.map +1 -0
- package/dist/agents/mcp.d.cts +7 -0
- package/dist/agents/mcp.d.mts +7 -0
- package/dist/agents/mcp.d.ts +7 -0
- package/dist/agents/mcp.js +10 -0
- package/dist/agents/mcp.js.map +1 -0
- package/dist/agents/native-config.cjs +288 -0
- package/dist/agents/native-config.cjs.map +1 -0
- package/dist/agents/native-config.d.cts +71 -0
- package/dist/agents/native-config.d.mts +71 -0
- package/dist/agents/native-config.d.ts +71 -0
- package/dist/agents/native-config.js +18 -0
- package/dist/agents/native-config.js.map +1 -0
- package/dist/agents/npm-staged.cjs +378 -0
- package/dist/agents/npm-staged.cjs.map +1 -0
- package/dist/agents/npm-staged.d.cts +52 -0
- package/dist/agents/npm-staged.d.mts +52 -0
- package/dist/agents/npm-staged.d.ts +52 -0
- package/dist/agents/npm-staged.js +12 -0
- package/dist/agents/npm-staged.js.map +1 -0
- package/dist/agents/openai-compat.cjs +158 -0
- package/dist/agents/openai-compat.cjs.map +1 -0
- package/dist/agents/openai-compat.d.cts +88 -0
- package/dist/agents/openai-compat.d.mts +88 -0
- package/dist/agents/openai-compat.d.ts +88 -0
- package/dist/agents/openai-compat.js +12 -0
- package/dist/agents/openai-compat.js.map +1 -0
- package/dist/agents/openclaw.cjs +236 -0
- package/dist/agents/openclaw.cjs.map +1 -0
- package/dist/agents/openclaw.d.cts +26 -0
- package/dist/agents/openclaw.d.mts +26 -0
- package/dist/agents/openclaw.d.ts +26 -0
- package/dist/agents/openclaw.js +7 -0
- package/dist/agents/openclaw.js.map +1 -0
- package/dist/agents/opencode.cjs +228 -0
- package/dist/agents/opencode.cjs.map +1 -0
- package/dist/agents/opencode.d.cts +17 -0
- package/dist/agents/opencode.d.mts +17 -0
- package/dist/agents/opencode.d.ts +17 -0
- package/dist/agents/opencode.js +7 -0
- package/dist/agents/opencode.js.map +1 -0
- package/dist/agents/post-setup.cjs +119 -0
- package/dist/agents/post-setup.cjs.map +1 -0
- package/dist/agents/post-setup.d.cts +20 -0
- package/dist/agents/post-setup.d.mts +20 -0
- package/dist/agents/post-setup.d.ts +20 -0
- package/dist/agents/post-setup.js +12 -0
- package/dist/agents/post-setup.js.map +1 -0
- package/dist/agents/provisioner.cjs +446 -0
- package/dist/agents/provisioner.cjs.map +1 -0
- package/dist/agents/provisioner.d.cts +116 -0
- package/dist/agents/provisioner.d.mts +116 -0
- package/dist/agents/provisioner.d.ts +8 -6
- package/dist/agents/provisioner.js +32 -0
- package/dist/agents/provisioner.js.map +1 -0
- package/dist/agents/sdk-streams.cjs +447 -0
- package/dist/agents/sdk-streams.cjs.map +1 -0
- package/dist/agents/sdk-streams.d.cts +135 -0
- package/dist/agents/sdk-streams.d.mts +135 -0
- package/dist/agents/sdk-streams.d.ts +135 -0
- package/dist/agents/sdk-streams.js +12 -0
- package/dist/agents/sdk-streams.js.map +1 -0
- package/dist/agents/session-slot.cjs +8 -0
- package/dist/agents/session-slot.cjs.map +1 -0
- package/dist/agents/session-slot.d.cts +12 -0
- package/dist/agents/session-slot.d.mts +12 -0
- package/dist/agents/session-slot.js +6 -0
- package/dist/agents/session-slot.js.map +1 -0
- package/dist/agents/shared.cjs +202 -0
- package/dist/agents/shared.cjs.map +1 -0
- package/dist/agents/shared.d.cts +95 -0
- package/dist/agents/shared.d.mts +95 -0
- package/dist/agents/shared.d.ts +95 -0
- package/dist/agents/shared.js +6 -0
- package/dist/agents/shared.js.map +1 -0
- package/dist/agents/skills.cjs +262 -0
- package/dist/agents/skills.cjs.map +1 -0
- package/dist/agents/skills.d.cts +60 -0
- package/dist/agents/skills.d.mts +60 -0
- package/dist/agents/skills.d.ts +60 -0
- package/dist/agents/skills.js +22 -0
- package/dist/agents/skills.js.map +1 -0
- package/dist/agents/streaming.cjs +142 -0
- package/dist/agents/streaming.cjs.map +1 -0
- package/dist/agents/streaming.d.cts +82 -0
- package/dist/agents/streaming.d.mts +82 -0
- package/dist/agents/streaming.d.ts +82 -0
- package/dist/agents/streaming.js +8 -0
- package/dist/agents/streaming.js.map +1 -0
- package/dist/agents/types.cjs +5 -0
- package/dist/agents/types.cjs.map +1 -0
- package/dist/agents/types.d.cts +592 -0
- package/dist/agents/types.d.mts +592 -0
- package/dist/agents/types.d.ts +26 -20
- package/dist/agents/types.js +4 -2
- package/dist/agents/types.js.map +1 -0
- package/dist/agents/ui-message-stream.cjs +426 -0
- package/dist/agents/ui-message-stream.cjs.map +1 -0
- package/dist/agents/ui-message-stream.d.cts +68 -0
- package/dist/agents/ui-message-stream.d.mts +68 -0
- package/dist/agents/ui-message-stream.d.ts +68 -0
- package/dist/agents/ui-message-stream.js +6 -0
- package/dist/agents/ui-message-stream.js.map +1 -0
- package/dist/analysis/index.cjs +11 -0
- package/dist/analysis/index.cjs.map +1 -0
- package/dist/analysis/index.d.cts +2 -0
- package/dist/analysis/index.d.mts +2 -0
- package/dist/analysis/index.d.ts +2 -0
- package/dist/analysis/index.js +12 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/analysis/index.mjs +12 -0
- package/dist/analysis/index.mjs.map +1 -0
- package/dist/assertions/api.cjs +26 -0
- package/dist/assertions/api.cjs.map +1 -0
- package/dist/assertions/api.d.cts +395 -0
- package/dist/assertions/api.d.mts +395 -0
- package/dist/assertions/api.d.ts +395 -0
- package/dist/assertions/api.js +8 -0
- package/dist/assertions/api.js.map +1 -0
- package/dist/assertions/coverage.cjs +97 -0
- package/dist/assertions/coverage.cjs.map +1 -0
- package/dist/assertions/coverage.d.cts +23 -0
- package/dist/assertions/coverage.d.mts +23 -0
- package/dist/assertions/coverage.d.ts +1 -1
- package/dist/assertions/coverage.js +14 -94
- package/dist/assertions/coverage.js.map +1 -0
- package/dist/assertions/diff.cjs +249 -0
- package/dist/assertions/diff.cjs.map +1 -0
- package/dist/assertions/diff.d.cts +88 -0
- package/dist/assertions/diff.d.mts +88 -0
- package/dist/assertions/diff.d.ts +70 -2
- package/dist/assertions/diff.js +36 -116
- package/dist/assertions/diff.js.map +1 -0
- package/dist/assertions/display.cjs +79 -0
- package/dist/assertions/display.cjs.map +1 -0
- package/dist/assertions/display.d.cts +36 -0
- package/dist/assertions/display.d.mts +36 -0
- package/dist/assertions/display.d.ts +32 -32
- package/dist/assertions/display.js +14 -200
- package/dist/assertions/display.js.map +1 -0
- package/dist/assertions/identity.cjs +6 -0
- package/dist/assertions/identity.cjs.map +1 -0
- package/dist/assertions/identity.d.cts +4 -0
- package/dist/assertions/identity.d.mts +4 -0
- package/dist/assertions/identity.d.ts +4 -0
- package/dist/assertions/identity.js +6 -0
- package/dist/assertions/identity.js.map +1 -0
- package/dist/assertions/judge.cjs +342 -0
- package/dist/assertions/judge.cjs.map +1 -0
- package/dist/assertions/judge.d.cts +22 -0
- package/dist/assertions/judge.d.mts +22 -0
- package/dist/assertions/judge.d.ts +22 -0
- package/dist/assertions/judge.js +12 -0
- package/dist/assertions/judge.js.map +1 -0
- package/dist/assertions/limits.cjs +14 -0
- package/dist/assertions/limits.cjs.map +1 -0
- package/dist/assertions/limits.d.cts +10 -0
- package/dist/assertions/limits.d.mts +10 -0
- package/dist/assertions/limits.d.ts +10 -0
- package/dist/assertions/limits.js +6 -0
- package/dist/assertions/limits.js.map +1 -0
- package/dist/assertions/match.cjs +1314 -0
- package/dist/assertions/match.cjs.map +1 -0
- package/dist/assertions/match.d.cts +276 -0
- package/dist/assertions/match.d.mts +276 -0
- package/dist/assertions/match.d.ts +276 -0
- package/dist/assertions/match.js +82 -0
- package/dist/assertions/match.js.map +1 -0
- package/dist/assertions/record/attachment.cjs +448 -0
- package/dist/assertions/record/attachment.cjs.map +1 -0
- package/dist/assertions/record/attachment.d.cts +220 -0
- package/dist/assertions/record/attachment.d.mts +220 -0
- package/dist/assertions/record/attachment.d.ts +220 -0
- package/dist/assertions/record/attachment.js +20 -0
- package/dist/assertions/record/attachment.js.map +1 -0
- package/dist/assertions/record/codec.cjs +541 -0
- package/dist/assertions/record/codec.cjs.map +1 -0
- package/dist/assertions/record/codec.d.cts +146 -0
- package/dist/assertions/record/codec.d.mts +146 -0
- package/dist/assertions/record/codec.d.ts +146 -0
- package/dist/assertions/record/codec.js +42 -0
- package/dist/assertions/record/codec.js.map +1 -0
- package/dist/assertions/record/diff-model.cjs +120 -0
- package/dist/assertions/record/diff-model.cjs.map +1 -0
- package/dist/assertions/record/diff-model.d.cts +47 -0
- package/dist/assertions/record/diff-model.d.mts +47 -0
- package/dist/assertions/record/diff-model.d.ts +47 -0
- package/dist/assertions/record/diff-model.js +12 -0
- package/dist/assertions/record/diff-model.js.map +1 -0
- package/dist/assertions/record/diff.cjs +149 -0
- package/dist/assertions/record/diff.cjs.map +1 -0
- package/dist/assertions/record/diff.d.cts +27 -0
- package/dist/assertions/record/diff.d.mts +27 -0
- package/dist/assertions/record/diff.d.ts +27 -0
- package/dist/assertions/record/diff.js +18 -0
- package/dist/assertions/record/diff.js.map +1 -0
- package/dist/assertions/record/index.cjs +22 -0
- package/dist/assertions/record/index.cjs.map +1 -0
- package/dist/assertions/record/index.d.cts +5 -0
- package/dist/assertions/record/index.d.mts +5 -0
- package/dist/assertions/record/index.d.ts +5 -0
- package/dist/assertions/record/index.js +76 -0
- package/dist/assertions/record/index.js.map +1 -0
- package/dist/assertions/record/model.cjs +10 -0
- package/dist/assertions/record/model.cjs.map +1 -0
- package/dist/assertions/record/model.d.cts +257 -0
- package/dist/assertions/record/model.d.mts +257 -0
- package/dist/assertions/record/model.d.ts +257 -0
- package/dist/assertions/record/model.js +6 -0
- package/dist/assertions/record/model.js.map +1 -0
- package/dist/assertions/record/producer.cjs +55 -0
- package/dist/assertions/record/producer.cjs.map +1 -0
- package/dist/assertions/record/producer.d.cts +45 -0
- package/dist/assertions/record/producer.d.mts +45 -0
- package/dist/assertions/record/producer.d.ts +45 -0
- package/dist/assertions/record/producer.js +6 -0
- package/dist/assertions/record/producer.js.map +1 -0
- package/dist/assertions/runtime.cjs +1163 -0
- package/dist/assertions/runtime.cjs.map +1 -0
- package/dist/assertions/runtime.d.cts +45 -0
- package/dist/assertions/runtime.d.mts +45 -0
- package/dist/assertions/runtime.d.ts +45 -0
- package/dist/assertions/runtime.js +16 -0
- package/dist/assertions/runtime.js.map +1 -0
- package/dist/assertions/types.cjs +3 -0
- package/dist/assertions/types.cjs.map +1 -0
- package/dist/assertions/types.d.cts +238 -0
- package/dist/assertions/types.d.mts +238 -0
- package/dist/assertions/types.d.ts +166 -186
- package/dist/assertions/types.js +4 -2
- package/dist/assertions/types.js.map +1 -0
- package/dist/assertions/workspace-diff.cjs +237 -0
- package/dist/assertions/workspace-diff.cjs.map +1 -0
- package/dist/assertions/workspace-diff.d.cts +77 -0
- package/dist/assertions/workspace-diff.d.mts +77 -0
- package/dist/assertions/workspace-diff.d.ts +77 -0
- package/dist/assertions/workspace-diff.js +16 -0
- package/dist/assertions/workspace-diff.js.map +1 -0
- package/dist/attempt-locator-resolution.cjs +51 -0
- package/dist/attempt-locator-resolution.cjs.map +1 -0
- package/dist/attempt-locator-resolution.d.cts +18 -0
- package/dist/attempt-locator-resolution.d.mts +18 -0
- package/dist/attempt-locator-resolution.d.ts +18 -0
- package/dist/attempt-locator-resolution.js +6 -0
- package/dist/attempt-locator-resolution.js.map +1 -0
- package/dist/attempt-locator.cjs +122 -0
- package/dist/attempt-locator.cjs.map +1 -0
- package/dist/attempt-locator.d.cts +25 -0
- package/dist/attempt-locator.d.mts +25 -0
- package/dist/attempt-locator.d.ts +25 -0
- package/dist/attempt-locator.js +10 -0
- package/dist/attempt-locator.js.map +1 -0
- package/dist/cli/bootstrap.cjs +87 -0
- package/dist/cli/bootstrap.cjs.map +1 -0
- package/dist/cli/bootstrap.d.mts +1 -0
- package/dist/cli/bootstrap.d.ts +1 -0
- package/dist/cli/bootstrap.js +4 -0
- package/dist/cli/bootstrap.js.map +1 -0
- package/dist/cli/record.cjs +198 -0
- package/dist/cli/record.cjs.map +1 -0
- package/dist/cli/record.d.cts +28 -0
- package/dist/cli/record.d.mts +28 -0
- package/dist/cli/record.d.ts +28 -0
- package/dist/cli/record.js +12 -0
- package/dist/cli/record.js.map +1 -0
- package/dist/cli.cjs +2405 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +139 -0
- package/dist/cli.d.mts +139 -0
- package/dist/cli.d.ts +139 -0
- package/dist/cli.js +34 -0
- package/dist/cli.js.map +1 -0
- package/dist/context/assert-first.cjs +1766 -0
- package/dist/context/assert-first.cjs.map +1 -0
- package/dist/context/assert-first.d.cts +204 -0
- package/dist/context/assert-first.d.mts +204 -0
- package/dist/context/assert-first.d.ts +204 -0
- package/dist/context/assert-first.js +6 -0
- package/dist/context/assert-first.js.map +1 -0
- package/dist/context/control-flow.cjs +15 -0
- package/dist/context/control-flow.cjs.map +1 -0
- package/dist/context/control-flow.d.cts +5 -0
- package/dist/context/control-flow.d.mts +5 -0
- package/dist/context/control-flow.d.ts +5 -0
- package/dist/context/control-flow.js +6 -0
- package/dist/context/control-flow.js.map +1 -0
- package/dist/context/send-failures.cjs +119 -0
- package/dist/context/send-failures.cjs.map +1 -0
- package/dist/context/send-failures.d.cts +45 -0
- package/dist/context/send-failures.d.mts +45 -0
- package/dist/context/send-failures.d.ts +3 -3
- package/dist/context/send-failures.js +18 -0
- package/dist/context/send-failures.js.map +1 -0
- package/dist/context/send-retry.cjs +105 -0
- package/dist/context/send-retry.cjs.map +1 -0
- package/dist/context/send-retry.d.cts +41 -0
- package/dist/context/send-retry.d.mts +41 -0
- package/dist/context/send-retry.d.ts +41 -0
- package/dist/context/send-retry.js +12 -0
- package/dist/context/send-retry.js.map +1 -0
- package/dist/context/session.cjs +503 -0
- package/dist/context/session.cjs.map +1 -0
- package/dist/context/session.d.cts +179 -0
- package/dist/context/session.d.mts +179 -0
- package/dist/context/session.d.ts +179 -0
- package/dist/context/session.js +12 -0
- package/dist/context/session.js.map +1 -0
- package/dist/context/types.cjs +3 -0
- package/dist/context/types.cjs.map +1 -0
- package/dist/context/types.d.cts +37 -0
- package/dist/context/types.d.mts +37 -0
- package/dist/context/types.d.ts +30 -387
- package/dist/context/types.js +4 -3
- package/dist/context/types.js.map +1 -0
- package/dist/define.cjs +246 -0
- package/dist/define.cjs.map +1 -0
- package/dist/define.d.cts +26 -0
- package/dist/define.d.mts +26 -0
- package/dist/define.d.ts +26 -0
- package/dist/define.js +22 -0
- package/dist/define.js.map +1 -0
- package/dist/eval/experiment-id.cjs +18 -0
- package/dist/eval/experiment-id.cjs.map +1 -0
- package/dist/eval/experiment-id.d.cts +10 -0
- package/dist/eval/experiment-id.d.mts +10 -0
- package/dist/eval/experiment-id.d.ts +10 -0
- package/dist/eval/experiment-id.js +10 -0
- package/dist/eval/experiment-id.js.map +1 -0
- package/dist/eval/record/attachment.cjs +60 -0
- package/dist/eval/record/attachment.cjs.map +1 -0
- package/dist/eval/record/attachment.d.cts +30 -0
- package/dist/eval/record/attachment.d.mts +30 -0
- package/dist/eval/record/attachment.d.ts +30 -0
- package/dist/eval/record/attachment.js +16 -0
- package/dist/eval/record/attachment.js.map +1 -0
- package/dist/eval/record/coherence.cjs +118 -0
- package/dist/eval/record/coherence.cjs.map +1 -0
- package/dist/eval/record/coherence.d.cts +61 -0
- package/dist/eval/record/coherence.d.mts +61 -0
- package/dist/eval/record/coherence.d.ts +61 -0
- package/dist/eval/record/coherence.js +6 -0
- package/dist/eval/record/coherence.js.map +1 -0
- package/dist/eval/record/eligibility.cjs +157 -0
- package/dist/eval/record/eligibility.cjs.map +1 -0
- package/dist/eval/record/eligibility.d.cts +151 -0
- package/dist/eval/record/eligibility.d.mts +151 -0
- package/dist/eval/record/eligibility.d.ts +151 -0
- package/dist/eval/record/eligibility.js +42 -0
- package/dist/eval/record/eligibility.js.map +1 -0
- package/dist/eval/record/evaluation-plan.cjs +26 -0
- package/dist/eval/record/evaluation-plan.cjs.map +1 -0
- package/dist/eval/record/evaluation-plan.d.cts +16 -0
- package/dist/eval/record/evaluation-plan.d.mts +16 -0
- package/dist/eval/record/evaluation-plan.d.ts +16 -0
- package/dist/eval/record/evaluation-plan.js +6 -0
- package/dist/eval/record/evaluation-plan.js.map +1 -0
- package/dist/eval/record/evaluation-record.cjs +540 -0
- package/dist/eval/record/evaluation-record.cjs.map +1 -0
- package/dist/eval/record/evaluation-record.d.cts +168 -0
- package/dist/eval/record/evaluation-record.d.mts +168 -0
- package/dist/eval/record/evaluation-record.d.ts +168 -0
- package/dist/eval/record/evaluation-record.js +22 -0
- package/dist/eval/record/evaluation-record.js.map +1 -0
- package/dist/eval/record/evaluation.cjs +220 -0
- package/dist/eval/record/evaluation.cjs.map +1 -0
- package/dist/eval/record/evaluation.d.cts +175 -0
- package/dist/eval/record/evaluation.d.mts +175 -0
- package/dist/eval/record/evaluation.d.ts +175 -0
- package/dist/eval/record/evaluation.js +36 -0
- package/dist/eval/record/evaluation.js.map +1 -0
- package/dist/eval/record/index.cjs +26 -0
- package/dist/eval/record/index.cjs.map +1 -0
- package/dist/eval/record/index.d.cts +9 -0
- package/dist/eval/record/index.d.mts +9 -0
- package/dist/eval/record/index.d.ts +9 -0
- package/dist/eval/record/index.js +242 -0
- package/dist/eval/record/index.js.map +1 -0
- package/dist/eval/record/membership-provenance.cjs +213 -0
- package/dist/eval/record/membership-provenance.cjs.map +1 -0
- package/dist/eval/record/membership-provenance.d.cts +855 -0
- package/dist/eval/record/membership-provenance.d.mts +855 -0
- package/dist/eval/record/membership-provenance.d.ts +855 -0
- package/dist/eval/record/membership-provenance.js +58 -0
- package/dist/eval/record/membership-provenance.js.map +1 -0
- package/dist/eval/record/score.cjs +248 -0
- package/dist/eval/record/score.cjs.map +1 -0
- package/dist/eval/record/score.d.cts +165 -0
- package/dist/eval/record/score.d.mts +165 -0
- package/dist/eval/record/score.d.ts +165 -0
- package/dist/eval/record/score.js +44 -0
- package/dist/eval/record/score.js.map +1 -0
- package/dist/eval/record/sealed-assertion.cjs +31 -0
- package/dist/eval/record/sealed-assertion.cjs.map +1 -0
- package/dist/eval/record/sealed-assertion.d.cts +32 -0
- package/dist/eval/record/sealed-assertion.d.mts +32 -0
- package/dist/eval/record/sealed-assertion.d.ts +32 -0
- package/dist/eval/record/sealed-assertion.js +14 -0
- package/dist/eval/record/sealed-assertion.js.map +1 -0
- package/dist/eval/record/verdict.cjs +89 -0
- package/dist/eval/record/verdict.cjs.map +1 -0
- package/dist/eval/record/verdict.d.cts +60 -0
- package/dist/eval/record/verdict.d.mts +60 -0
- package/dist/eval/record/verdict.d.ts +60 -0
- package/dist/eval/record/verdict.js +36 -0
- package/dist/eval/record/verdict.js.map +1 -0
- package/dist/expect/index.cjs +29 -0
- package/dist/expect/index.cjs.map +1 -0
- package/dist/expect/index.d.cts +2 -0
- package/dist/expect/index.d.mts +2 -0
- package/dist/expect/index.d.ts +2 -0
- package/dist/expect/index.js +50 -0
- package/dist/expect/index.js.map +1 -0
- package/dist/expect/index.mjs +50 -0
- package/dist/expect/index.mjs.map +1 -0
- package/dist/fresh-import.cjs +288 -0
- package/dist/fresh-import.cjs.map +1 -0
- package/dist/fresh-import.d.cts +20 -0
- package/dist/fresh-import.d.mts +20 -0
- package/dist/fresh-import.d.ts +20 -0
- package/dist/fresh-import.js +8 -0
- package/dist/fresh-import.js.map +1 -0
- package/dist/i18n/core.cjs +21 -0
- package/dist/i18n/core.cjs.map +1 -0
- package/dist/i18n/core.d.cts +11 -0
- package/dist/i18n/core.d.mts +11 -0
- package/dist/i18n/core.js +8 -19
- package/dist/i18n/core.js.map +1 -0
- package/dist/i18n/en.cjs +474 -0
- package/dist/i18n/en.cjs.map +1 -0
- package/dist/i18n/en.d.cts +391 -0
- package/dist/i18n/en.d.mts +391 -0
- package/dist/i18n/en.d.ts +389 -363
- package/dist/i18n/en.js +6 -455
- package/dist/i18n/en.js.map +1 -0
- package/dist/i18n/index.cjs +12 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +5 -0
- package/dist/i18n/index.d.mts +5 -0
- package/dist/i18n/index.d.ts +4 -9
- package/dist/i18n/index.js +6 -30
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +28 -0
- package/dist/index.mjs.map +1 -0
- package/dist/load-config.cjs +52 -0
- package/dist/load-config.cjs.map +1 -0
- package/dist/load-config.d.cts +4 -0
- package/dist/load-config.d.mts +4 -0
- package/dist/load-config.d.ts +4 -0
- package/dist/load-config.js +6 -0
- package/dist/load-config.js.map +1 -0
- package/dist/loaders/glob.cjs +150 -0
- package/dist/loaders/glob.cjs.map +1 -0
- package/dist/loaders/glob.d.cts +28 -0
- package/dist/loaders/glob.d.mts +28 -0
- package/dist/loaders/glob.d.ts +28 -0
- package/dist/loaders/glob.js +12 -0
- package/dist/loaders/glob.js.map +1 -0
- package/dist/loaders/index.cjs +281 -0
- package/dist/loaders/index.cjs.map +1 -0
- package/dist/loaders/index.d.cts +95 -0
- package/dist/loaders/index.d.mts +95 -0
- package/dist/loaders/index.d.ts +95 -0
- package/dist/loaders/index.js +16 -0
- package/dist/loaders/index.js.map +1 -0
- package/dist/loaders/index.mjs +16 -0
- package/dist/loaders/index.mjs.map +1 -0
- package/dist/o11y/command-projection.cjs +127 -0
- package/dist/o11y/command-projection.cjs.map +1 -0
- package/dist/o11y/command-projection.d.cts +29 -0
- package/dist/o11y/command-projection.d.mts +29 -0
- package/dist/o11y/command-projection.d.ts +29 -0
- package/dist/o11y/command-projection.js +18 -0
- package/dist/o11y/command-projection.js.map +1 -0
- package/dist/o11y/cost.cjs +76 -0
- package/dist/o11y/cost.cjs.map +1 -0
- package/dist/o11y/cost.d.cts +8 -0
- package/dist/o11y/cost.d.mts +8 -0
- package/dist/o11y/cost.d.ts +8 -0
- package/dist/o11y/cost.js +6 -0
- package/dist/o11y/cost.js.map +1 -0
- package/dist/o11y/derive.cjs +572 -0
- package/dist/o11y/derive.cjs.map +1 -0
- package/dist/o11y/derive.d.cts +24 -0
- package/dist/o11y/derive.d.mts +24 -0
- package/dist/o11y/derive.d.ts +16 -1
- package/dist/o11y/derive.js +14 -281
- package/dist/o11y/derive.js.map +1 -0
- package/dist/o11y/execution-tree.cjs +213 -0
- package/dist/o11y/execution-tree.cjs.map +1 -0
- package/dist/o11y/execution-tree.d.cts +113 -0
- package/dist/o11y/execution-tree.d.mts +113 -0
- package/dist/o11y/execution-tree.d.ts +1 -1
- package/dist/o11y/execution-tree.js +6 -254
- package/dist/o11y/execution-tree.js.map +1 -0
- package/dist/o11y/otlp/canonical.cjs +94 -0
- package/dist/o11y/otlp/canonical.cjs.map +1 -0
- package/dist/o11y/otlp/canonical.d.cts +34 -0
- package/dist/o11y/otlp/canonical.d.mts +34 -0
- package/dist/o11y/otlp/canonical.d.ts +34 -0
- package/dist/o11y/otlp/canonical.js +26 -0
- package/dist/o11y/otlp/canonical.js.map +1 -0
- package/dist/o11y/otlp/mappers/bub.cjs +24 -0
- package/dist/o11y/otlp/mappers/bub.cjs.map +1 -0
- package/dist/o11y/otlp/mappers/bub.d.cts +2 -0
- package/dist/o11y/otlp/mappers/bub.d.mts +2 -0
- package/dist/o11y/otlp/mappers/bub.d.ts +2 -0
- package/dist/o11y/otlp/mappers/bub.js +6 -0
- package/dist/o11y/otlp/mappers/bub.js.map +1 -0
- package/dist/o11y/otlp/mappers/claude-code.cjs +16 -0
- package/dist/o11y/otlp/mappers/claude-code.cjs.map +1 -0
- package/dist/o11y/otlp/mappers/claude-code.d.cts +2 -0
- package/dist/o11y/otlp/mappers/claude-code.d.mts +2 -0
- package/dist/o11y/otlp/mappers/claude-code.d.ts +2 -0
- package/dist/o11y/otlp/mappers/claude-code.js +6 -0
- package/dist/o11y/otlp/mappers/claude-code.js.map +1 -0
- package/dist/o11y/otlp/mappers/codex.cjs +31 -0
- package/dist/o11y/otlp/mappers/codex.cjs.map +1 -0
- package/dist/o11y/otlp/mappers/codex.d.cts +2 -0
- package/dist/o11y/otlp/mappers/codex.d.mts +2 -0
- package/dist/o11y/otlp/mappers/codex.d.ts +2 -0
- package/dist/o11y/otlp/mappers/codex.js +6 -0
- package/dist/o11y/otlp/mappers/codex.js.map +1 -0
- package/dist/o11y/otlp/mappers/index.cjs +21 -0
- package/dist/o11y/otlp/mappers/index.cjs.map +1 -0
- package/dist/o11y/otlp/mappers/index.d.cts +4 -0
- package/dist/o11y/otlp/mappers/index.d.mts +4 -0
- package/dist/o11y/otlp/mappers/index.d.ts +4 -0
- package/dist/o11y/otlp/mappers/index.js +12 -0
- package/dist/o11y/otlp/mappers/index.js.map +1 -0
- package/dist/o11y/otlp/parse.cjs +369 -0
- package/dist/o11y/otlp/parse.cjs.map +1 -0
- package/dist/o11y/otlp/parse.d.cts +3 -0
- package/dist/o11y/otlp/parse.d.mts +3 -0
- package/dist/o11y/otlp/parse.d.ts +1 -1
- package/dist/o11y/otlp/parse.js +6 -0
- package/dist/o11y/otlp/parse.js.map +1 -0
- package/dist/o11y/otlp/receiver.cjs +326 -0
- package/dist/o11y/otlp/receiver.cjs.map +1 -0
- package/dist/o11y/otlp/receiver.d.cts +27 -0
- package/dist/o11y/otlp/receiver.d.mts +27 -0
- package/dist/o11y/otlp/receiver.d.ts +16 -10
- package/dist/o11y/otlp/receiver.js +10 -0
- package/dist/o11y/otlp/receiver.js.map +1 -0
- package/dist/o11y/otlp/sandbox-receiver.cjs +226 -0
- package/dist/o11y/otlp/sandbox-receiver.cjs.map +1 -0
- package/dist/o11y/otlp/sandbox-receiver.d.cts +4 -0
- package/dist/o11y/otlp/sandbox-receiver.d.mts +4 -0
- package/dist/o11y/otlp/sandbox-receiver.d.ts +4 -0
- package/dist/o11y/otlp/sandbox-receiver.js +6 -0
- package/dist/o11y/otlp/sandbox-receiver.js.map +1 -0
- package/dist/o11y/otlp/select.cjs +82 -0
- package/dist/o11y/otlp/select.cjs.map +1 -0
- package/dist/o11y/otlp/select.d.cts +22 -0
- package/dist/o11y/otlp/select.d.mts +22 -0
- package/dist/o11y/otlp/select.d.ts +1 -1
- package/dist/o11y/otlp/select.js +12 -86
- package/dist/o11y/otlp/select.js.map +1 -0
- package/dist/o11y/otlp/turn-otel.cjs +180 -0
- package/dist/o11y/otlp/turn-otel.cjs.map +1 -0
- package/dist/o11y/otlp/turn-otel.d.cts +59 -0
- package/dist/o11y/otlp/turn-otel.d.mts +59 -0
- package/dist/o11y/otlp/turn-otel.d.ts +26 -10
- package/dist/o11y/otlp/turn-otel.js +8 -0
- package/dist/o11y/otlp/turn-otel.js.map +1 -0
- package/dist/o11y/parsers/bub.cjs +277 -0
- package/dist/o11y/parsers/bub.cjs.map +1 -0
- package/dist/o11y/parsers/bub.d.cts +7 -0
- package/dist/o11y/parsers/bub.d.mts +7 -0
- package/dist/o11y/parsers/bub.d.ts +7 -0
- package/dist/o11y/parsers/bub.js +10 -0
- package/dist/o11y/parsers/bub.js.map +1 -0
- package/dist/o11y/parsers/claude-code.cjs +309 -0
- package/dist/o11y/parsers/claude-code.cjs.map +1 -0
- package/dist/o11y/parsers/claude-code.d.cts +11 -0
- package/dist/o11y/parsers/claude-code.d.mts +11 -0
- package/dist/o11y/parsers/claude-code.d.ts +11 -0
- package/dist/o11y/parsers/claude-code.js +10 -0
- package/dist/o11y/parsers/claude-code.js.map +1 -0
- package/dist/o11y/parsers/codex.cjs +439 -0
- package/dist/o11y/parsers/codex.cjs.map +1 -0
- package/dist/o11y/parsers/codex.d.cts +7 -0
- package/dist/o11y/parsers/codex.d.mts +7 -0
- package/dist/o11y/parsers/codex.d.ts +7 -0
- package/dist/o11y/parsers/codex.js +10 -0
- package/dist/o11y/parsers/codex.js.map +1 -0
- package/dist/o11y/parsers/hermes.cjs +234 -0
- package/dist/o11y/parsers/hermes.cjs.map +1 -0
- package/dist/o11y/parsers/hermes.d.cts +9 -0
- package/dist/o11y/parsers/hermes.d.mts +9 -0
- package/dist/o11y/parsers/hermes.d.ts +9 -0
- package/dist/o11y/parsers/hermes.js +10 -0
- package/dist/o11y/parsers/hermes.js.map +1 -0
- package/dist/o11y/parsers/index.cjs +13 -0
- package/dist/o11y/parsers/index.cjs.map +1 -0
- package/dist/o11y/parsers/index.d.cts +12 -0
- package/dist/o11y/parsers/index.d.mts +12 -0
- package/dist/o11y/parsers/index.d.ts +12 -0
- package/dist/o11y/parsers/index.js +16 -0
- package/dist/o11y/parsers/index.js.map +1 -0
- package/dist/o11y/parsers/openclaw.cjs +320 -0
- package/dist/o11y/parsers/openclaw.cjs.map +1 -0
- package/dist/o11y/parsers/openclaw.d.cts +39 -0
- package/dist/o11y/parsers/openclaw.d.mts +39 -0
- package/dist/o11y/parsers/openclaw.d.ts +39 -0
- package/dist/o11y/parsers/openclaw.js +12 -0
- package/dist/o11y/parsers/openclaw.js.map +1 -0
- package/dist/o11y/parsers/opencode.cjs +337 -0
- package/dist/o11y/parsers/opencode.cjs.map +1 -0
- package/dist/o11y/parsers/opencode.d.cts +14 -0
- package/dist/o11y/parsers/opencode.d.mts +14 -0
- package/dist/o11y/parsers/opencode.d.ts +14 -0
- package/dist/o11y/parsers/opencode.js +12 -0
- package/dist/o11y/parsers/opencode.js.map +1 -0
- package/dist/o11y/prices.json +11649 -0
- package/dist/o11y/record/capture.cjs +232 -0
- package/dist/o11y/record/capture.cjs.map +1 -0
- package/dist/o11y/record/capture.d.cts +81 -0
- package/dist/o11y/record/capture.d.mts +81 -0
- package/dist/o11y/record/capture.d.ts +81 -0
- package/dist/o11y/record/capture.js +30 -0
- package/dist/o11y/record/capture.js.map +1 -0
- package/dist/o11y/record/codec.cjs +222 -0
- package/dist/o11y/record/codec.cjs.map +1 -0
- package/dist/o11y/record/codec.d.cts +661 -0
- package/dist/o11y/record/codec.d.mts +661 -0
- package/dist/o11y/record/codec.d.ts +661 -0
- package/dist/o11y/record/codec.js +66 -0
- package/dist/o11y/record/codec.js.map +1 -0
- package/dist/o11y/record/errors.cjs +71 -0
- package/dist/o11y/record/errors.cjs.map +1 -0
- package/dist/o11y/record/errors.d.cts +53 -0
- package/dist/o11y/record/errors.d.mts +53 -0
- package/dist/o11y/record/errors.d.ts +53 -0
- package/dist/o11y/record/errors.js +24 -0
- package/dist/o11y/record/errors.js.map +1 -0
- package/dist/o11y/record/families.cjs +699 -0
- package/dist/o11y/record/families.cjs.map +1 -0
- package/dist/o11y/record/families.d.cts +4298 -0
- package/dist/o11y/record/families.d.mts +4298 -0
- package/dist/o11y/record/families.d.ts +4298 -0
- package/dist/o11y/record/families.js +68 -0
- package/dist/o11y/record/families.js.map +1 -0
- package/dist/o11y/record/family-projectors.cjs +83 -0
- package/dist/o11y/record/family-projectors.cjs.map +1 -0
- package/dist/o11y/record/family-projectors.d.cts +46 -0
- package/dist/o11y/record/family-projectors.d.mts +46 -0
- package/dist/o11y/record/family-projectors.d.ts +46 -0
- package/dist/o11y/record/family-projectors.js +18 -0
- package/dist/o11y/record/family-projectors.js.map +1 -0
- package/dist/o11y/record/family-writers.cjs +371 -0
- package/dist/o11y/record/family-writers.cjs.map +1 -0
- package/dist/o11y/record/family-writers.d.cts +5293 -0
- package/dist/o11y/record/family-writers.d.mts +5293 -0
- package/dist/o11y/record/family-writers.d.ts +5293 -0
- package/dist/o11y/record/family-writers.js +60 -0
- package/dist/o11y/record/family-writers.js.map +1 -0
- package/dist/o11y/record/index.cjs +31 -0
- package/dist/o11y/record/index.cjs.map +1 -0
- package/dist/o11y/record/index.d.cts +14 -0
- package/dist/o11y/record/index.d.mts +14 -0
- package/dist/o11y/record/index.d.ts +14 -0
- package/dist/o11y/record/index.js +488 -0
- package/dist/o11y/record/index.js.map +1 -0
- package/dist/o11y/record/limits.cjs +69 -0
- package/dist/o11y/record/limits.cjs.map +1 -0
- package/dist/o11y/record/limits.d.cts +65 -0
- package/dist/o11y/record/limits.d.mts +65 -0
- package/dist/o11y/record/limits.d.ts +65 -0
- package/dist/o11y/record/limits.js +68 -0
- package/dist/o11y/record/limits.js.map +1 -0
- package/dist/o11y/record/model.cjs +590 -0
- package/dist/o11y/record/model.cjs.map +1 -0
- package/dist/o11y/record/model.d.cts +275 -0
- package/dist/o11y/record/model.d.mts +275 -0
- package/dist/o11y/record/model.d.ts +275 -0
- package/dist/o11y/record/model.js +158 -0
- package/dist/o11y/record/model.js.map +1 -0
- package/dist/o11y/record/runner-producer.cjs +1575 -0
- package/dist/o11y/record/runner-producer.cjs.map +1 -0
- package/dist/o11y/record/runner-producer.d.cts +103 -0
- package/dist/o11y/record/runner-producer.d.mts +103 -0
- package/dist/o11y/record/runner-producer.d.ts +103 -0
- package/dist/o11y/record/runner-producer.js +26 -0
- package/dist/o11y/record/runner-producer.js.map +1 -0
- package/dist/o11y/record/validation.cjs +323 -0
- package/dist/o11y/record/validation.cjs.map +1 -0
- package/dist/o11y/record/validation.d.cts +62 -0
- package/dist/o11y/record/validation.d.mts +62 -0
- package/dist/o11y/record/validation.d.ts +62 -0
- package/dist/o11y/record/validation.js +28 -0
- package/dist/o11y/record/validation.js.map +1 -0
- package/dist/o11y/tool-names.cjs +68 -0
- package/dist/o11y/tool-names.cjs.map +1 -0
- package/dist/o11y/tool-names.d.cts +11 -0
- package/dist/o11y/tool-names.d.mts +11 -0
- package/dist/o11y/tool-names.d.ts +11 -0
- package/dist/o11y/tool-names.js +8 -0
- package/dist/o11y/tool-names.js.map +1 -0
- package/dist/o11y/types.cjs +3 -0
- package/dist/o11y/types.cjs.map +1 -0
- package/dist/o11y/types.d.cts +387 -0
- package/dist/o11y/types.d.mts +387 -0
- package/dist/o11y/types.d.ts +142 -1
- package/dist/o11y/types.js +4 -3
- package/dist/o11y/types.js.map +1 -0
- package/dist/plugin/contracts.cjs +187 -0
- package/dist/plugin/contracts.cjs.map +1 -0
- package/dist/plugin/contracts.d.cts +109 -0
- package/dist/plugin/contracts.d.mts +109 -0
- package/dist/plugin/contracts.d.ts +109 -0
- package/dist/plugin/contracts.js +18 -0
- package/dist/plugin/contracts.js.map +1 -0
- package/dist/plugin/index.cjs +7 -0
- package/dist/plugin/index.cjs.map +1 -0
- package/dist/plugin/index.d.cts +2 -0
- package/dist/plugin/index.d.mts +2 -0
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.js +6 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/index.mjs +6 -0
- package/dist/plugin/index.mjs.map +1 -0
- package/dist/plugin/link.cjs +204 -0
- package/dist/plugin/link.cjs.map +1 -0
- package/dist/plugin/link.d.cts +68 -0
- package/dist/plugin/link.d.mts +68 -0
- package/dist/plugin/link.d.ts +68 -0
- package/dist/plugin/link.js +14 -0
- package/dist/plugin/link.js.map +1 -0
- package/dist/plugins/record/attachment.cjs +62 -0
- package/dist/plugins/record/attachment.cjs.map +1 -0
- package/dist/plugins/record/attachment.d.cts +14 -0
- package/dist/plugins/record/attachment.d.mts +14 -0
- package/dist/plugins/record/attachment.d.ts +14 -0
- package/dist/plugins/record/attachment.js +20 -0
- package/dist/plugins/record/attachment.js.map +1 -0
- package/dist/plugins/record/capability.cjs +258 -0
- package/dist/plugins/record/capability.cjs.map +1 -0
- package/dist/plugins/record/capability.d.cts +94 -0
- package/dist/plugins/record/capability.d.mts +94 -0
- package/dist/plugins/record/capability.d.ts +94 -0
- package/dist/plugins/record/capability.js +26 -0
- package/dist/plugins/record/capability.js.map +1 -0
- package/dist/plugins/record/codec.cjs +244 -0
- package/dist/plugins/record/codec.cjs.map +1 -0
- package/dist/plugins/record/codec.d.cts +28 -0
- package/dist/plugins/record/codec.d.mts +28 -0
- package/dist/plugins/record/codec.d.ts +28 -0
- package/dist/plugins/record/codec.js +48 -0
- package/dist/plugins/record/codec.js.map +1 -0
- package/dist/plugins/record/index.cjs +54 -0
- package/dist/plugins/record/index.cjs.map +1 -0
- package/dist/plugins/record/index.d.cts +9 -0
- package/dist/plugins/record/index.d.mts +9 -0
- package/dist/plugins/record/index.d.ts +9 -0
- package/dist/plugins/record/index.js +94 -0
- package/dist/plugins/record/index.js.map +1 -0
- package/dist/plugins/record/migration.cjs +33 -0
- package/dist/plugins/record/migration.cjs.map +1 -0
- package/dist/plugins/record/migration.d.cts +22 -0
- package/dist/plugins/record/migration.d.mts +22 -0
- package/dist/plugins/record/migration.d.ts +22 -0
- package/dist/plugins/record/migration.js +6 -0
- package/dist/plugins/record/migration.js.map +1 -0
- package/dist/plugins/record/model.cjs +3 -0
- package/dist/plugins/record/model.cjs.map +1 -0
- package/dist/plugins/record/model.d.cts +93 -0
- package/dist/plugins/record/model.d.mts +93 -0
- package/dist/plugins/record/model.d.ts +93 -0
- package/dist/plugins/record/model.js +4 -0
- package/dist/plugins/record/model.js.map +1 -0
- package/dist/plugins/record/provenance.cjs +319 -0
- package/dist/plugins/record/provenance.cjs.map +1 -0
- package/dist/plugins/record/provenance.d.cts +79 -0
- package/dist/plugins/record/provenance.d.mts +79 -0
- package/dist/plugins/record/provenance.d.ts +79 -0
- package/dist/plugins/record/provenance.js +24 -0
- package/dist/plugins/record/provenance.js.map +1 -0
- package/dist/projection/attachment-result.cjs +50 -0
- package/dist/projection/attachment-result.cjs.map +1 -0
- package/dist/projection/attachment-result.d.cts +38 -0
- package/dist/projection/attachment-result.d.mts +38 -0
- package/dist/projection/attachment-result.d.ts +38 -0
- package/dist/projection/attachment-result.js +6 -0
- package/dist/projection/attachment-result.js.map +1 -0
- package/dist/projection/attempt-selection.cjs +87 -0
- package/dist/projection/attempt-selection.cjs.map +1 -0
- package/dist/projection/attempt-selection.d.cts +40 -0
- package/dist/projection/attempt-selection.d.mts +40 -0
- package/dist/projection/attempt-selection.d.ts +40 -0
- package/dist/projection/attempt-selection.js +8 -0
- package/dist/projection/attempt-selection.js.map +1 -0
- package/dist/projection/coverage.cjs +106 -0
- package/dist/projection/coverage.cjs.map +1 -0
- package/dist/projection/coverage.d.cts +43 -0
- package/dist/projection/coverage.d.mts +43 -0
- package/dist/projection/coverage.d.ts +43 -0
- package/dist/projection/coverage.js +6 -0
- package/dist/projection/coverage.js.map +1 -0
- package/dist/projection/index.cjs +36 -0
- package/dist/projection/index.cjs.map +1 -0
- package/dist/projection/index.d.cts +25 -0
- package/dist/projection/index.d.mts +25 -0
- package/dist/projection/index.d.ts +25 -0
- package/dist/projection/index.js +46 -0
- package/dist/projection/index.js.map +1 -0
- package/dist/projection/index.mjs +46 -0
- package/dist/projection/index.mjs.map +1 -0
- package/dist/projection/model.cjs +3 -0
- package/dist/projection/model.cjs.map +1 -0
- package/dist/projection/model.d.cts +49 -0
- package/dist/projection/model.d.mts +49 -0
- package/dist/projection/model.d.ts +49 -0
- package/dist/projection/model.js +4 -0
- package/dist/projection/model.js.map +1 -0
- package/dist/projection/projector.cjs +111 -0
- package/dist/projection/projector.cjs.map +1 -0
- package/dist/projection/projector.d.cts +51 -0
- package/dist/projection/projector.d.mts +51 -0
- package/dist/projection/projector.d.ts +51 -0
- package/dist/projection/projector.js +16 -0
- package/dist/projection/projector.js.map +1 -0
- package/dist/projection/runtime.cjs +246 -0
- package/dist/projection/runtime.cjs.map +1 -0
- package/dist/projection/runtime.d.cts +14 -0
- package/dist/projection/runtime.d.mts +14 -0
- package/dist/projection/runtime.d.ts +14 -0
- package/dist/projection/runtime.js +6 -0
- package/dist/projection/runtime.js.map +1 -0
- package/dist/record/attachment/errors.cjs +71 -0
- package/dist/record/attachment/errors.cjs.map +1 -0
- package/dist/record/attachment/errors.d.cts +57 -0
- package/dist/record/attachment/errors.d.mts +57 -0
- package/dist/record/attachment/errors.d.ts +57 -0
- package/dist/record/attachment/errors.js +22 -0
- package/dist/record/attachment/errors.js.map +1 -0
- package/dist/record/attachment/index.cjs +14 -0
- package/dist/record/attachment/index.cjs.map +1 -0
- package/dist/record/attachment/index.d.cts +3 -0
- package/dist/record/attachment/index.d.mts +3 -0
- package/dist/record/attachment/index.d.ts +3 -0
- package/dist/record/attachment/index.js +22 -0
- package/dist/record/attachment/index.js.map +1 -0
- package/dist/record/attachment/internal.cjs +24 -0
- package/dist/record/attachment/internal.cjs.map +1 -0
- package/dist/record/attachment/internal.d.cts +6 -0
- package/dist/record/attachment/internal.d.mts +6 -0
- package/dist/record/attachment/internal.d.ts +6 -0
- package/dist/record/attachment/internal.js +34 -0
- package/dist/record/attachment/internal.js.map +1 -0
- package/dist/record/attachment/runtime.cjs +1017 -0
- package/dist/record/attachment/runtime.cjs.map +1 -0
- package/dist/record/attachment/runtime.d.cts +86 -0
- package/dist/record/attachment/runtime.d.mts +86 -0
- package/dist/record/attachment/runtime.d.ts +86 -0
- package/dist/record/attachment/runtime.js +52 -0
- package/dist/record/attachment/runtime.js.map +1 -0
- package/dist/record/attachment/types.cjs +47 -0
- package/dist/record/attachment/types.cjs.map +1 -0
- package/dist/record/attachment/types.d.cts +194 -0
- package/dist/record/attachment/types.d.mts +194 -0
- package/dist/record/attachment/types.d.ts +194 -0
- package/dist/record/attachment/types.js +28 -0
- package/dist/record/attachment/types.js.map +1 -0
- package/dist/record/codec/core.cjs +134 -0
- package/dist/record/codec/core.cjs.map +1 -0
- package/dist/record/codec/core.d.cts +63 -0
- package/dist/record/codec/core.d.mts +63 -0
- package/dist/record/codec/core.d.ts +63 -0
- package/dist/record/codec/core.js +46 -0
- package/dist/record/codec/core.js.map +1 -0
- package/dist/record/codec/identifiers.cjs +31 -0
- package/dist/record/codec/identifiers.cjs.map +1 -0
- package/dist/record/codec/identifiers.d.cts +11 -0
- package/dist/record/codec/identifiers.d.mts +11 -0
- package/dist/record/codec/identifiers.d.ts +11 -0
- package/dist/record/codec/identifiers.js +22 -0
- package/dist/record/codec/identifiers.js.map +1 -0
- package/dist/record/codec/index.cjs +19 -0
- package/dist/record/codec/index.cjs.map +1 -0
- package/dist/record/codec/index.d.cts +2 -0
- package/dist/record/codec/index.d.mts +2 -0
- package/dist/record/codec/index.d.ts +2 -0
- package/dist/record/codec/index.js +64 -0
- package/dist/record/codec/index.js.map +1 -0
- package/dist/record/errors/index.cjs +18 -0
- package/dist/record/errors/index.cjs.map +1 -0
- package/dist/record/errors/index.d.cts +1 -0
- package/dist/record/errors/index.d.mts +1 -0
- package/dist/record/errors/index.d.ts +1 -0
- package/dist/record/errors/index.js +28 -0
- package/dist/record/errors/index.js.map +1 -0
- package/dist/record/errors/record-errors.cjs +58 -0
- package/dist/record/errors/record-errors.cjs.map +1 -0
- package/dist/record/errors/record-errors.d.cts +64 -0
- package/dist/record/errors/record-errors.d.mts +64 -0
- package/dist/record/errors/record-errors.d.ts +64 -0
- package/dist/record/errors/record-errors.js +28 -0
- package/dist/record/errors/record-errors.js.map +1 -0
- package/dist/record/fact-record.cjs +199 -0
- package/dist/record/fact-record.cjs.map +1 -0
- package/dist/record/fact-record.d.cts +22 -0
- package/dist/record/fact-record.d.mts +22 -0
- package/dist/record/fact-record.d.ts +22 -0
- package/dist/record/fact-record.js +18 -0
- package/dist/record/fact-record.js.map +1 -0
- package/dist/record/index.cjs +55 -0
- package/dist/record/index.cjs.map +1 -0
- package/dist/record/index.d.cts +11 -0
- package/dist/record/index.d.mts +11 -0
- package/dist/record/index.d.ts +11 -0
- package/dist/record/index.js +314 -0
- package/dist/record/index.js.map +1 -0
- package/dist/record/locator.cjs +146 -0
- package/dist/record/locator.cjs.map +1 -0
- package/dist/record/locator.d.cts +71 -0
- package/dist/record/locator.d.mts +71 -0
- package/dist/record/locator.js +20 -136
- package/dist/record/locator.js.map +1 -0
- package/dist/record/maintenance/index.cjs +19 -0
- package/dist/record/maintenance/index.cjs.map +1 -0
- package/dist/record/maintenance/index.d.cts +2 -0
- package/dist/record/maintenance/index.d.mts +2 -0
- package/dist/record/maintenance/index.d.ts +2 -0
- package/dist/record/maintenance/index.js +14 -0
- package/dist/record/maintenance/index.js.map +1 -0
- package/dist/record/maintenance/runtime.cjs +98 -0
- package/dist/record/maintenance/runtime.cjs.map +1 -0
- package/dist/record/maintenance/runtime.d.cts +24 -0
- package/dist/record/maintenance/runtime.d.mts +24 -0
- package/dist/record/maintenance/runtime.d.ts +24 -0
- package/dist/record/maintenance/runtime.js +12 -0
- package/dist/record/maintenance/runtime.js.map +1 -0
- package/dist/record/maintenance/types.cjs +9 -0
- package/dist/record/maintenance/types.cjs.map +1 -0
- package/dist/record/maintenance/types.d.cts +34 -0
- package/dist/record/maintenance/types.d.mts +34 -0
- package/dist/record/maintenance/types.d.ts +34 -0
- package/dist/record/maintenance/types.js +6 -0
- package/dist/record/maintenance/types.js.map +1 -0
- package/dist/record/manifest.cjs +44 -0
- package/dist/record/manifest.cjs.map +1 -0
- package/dist/record/manifest.d.cts +39 -0
- package/dist/record/manifest.d.mts +39 -0
- package/dist/record/manifest.d.ts +5 -3
- package/dist/record/manifest.js +14 -0
- package/dist/record/manifest.js.map +1 -0
- package/dist/record/migration/errors.cjs +68 -0
- package/dist/record/migration/errors.cjs.map +1 -0
- package/dist/record/migration/errors.d.cts +73 -0
- package/dist/record/migration/errors.d.mts +73 -0
- package/dist/record/migration/errors.d.ts +73 -0
- package/dist/record/migration/errors.js +22 -0
- package/dist/record/migration/errors.js.map +1 -0
- package/dist/record/migration/identity.cjs +27 -0
- package/dist/record/migration/identity.cjs.map +1 -0
- package/dist/record/migration/identity.d.cts +5 -0
- package/dist/record/migration/identity.d.mts +5 -0
- package/dist/record/migration/identity.d.ts +5 -0
- package/dist/record/migration/identity.js +8 -0
- package/dist/record/migration/identity.js.map +1 -0
- package/dist/record/migration/index.cjs +28 -0
- package/dist/record/migration/index.cjs.map +1 -0
- package/dist/record/migration/index.d.cts +8 -0
- package/dist/record/migration/index.d.mts +8 -0
- package/dist/record/migration/index.d.ts +8 -0
- package/dist/record/migration/index.js +48 -0
- package/dist/record/migration/index.js.map +1 -0
- package/dist/record/migration/internal.cjs +3 -0
- package/dist/record/migration/internal.cjs.map +1 -0
- package/dist/record/migration/internal.d.cts +111 -0
- package/dist/record/migration/internal.d.mts +111 -0
- package/dist/record/migration/internal.d.ts +111 -0
- package/dist/record/migration/internal.js +4 -0
- package/dist/record/migration/internal.js.map +1 -0
- package/dist/record/migration/orchestrate.cjs +368 -0
- package/dist/record/migration/orchestrate.cjs.map +1 -0
- package/dist/record/migration/orchestrate.d.cts +113 -0
- package/dist/record/migration/orchestrate.d.mts +113 -0
- package/dist/record/migration/orchestrate.d.ts +113 -0
- package/dist/record/migration/orchestrate.js +16 -0
- package/dist/record/migration/orchestrate.js.map +1 -0
- package/dist/record/migration/plan.cjs +63 -0
- package/dist/record/migration/plan.cjs.map +1 -0
- package/dist/record/migration/plan.d.cts +32 -0
- package/dist/record/migration/plan.d.mts +32 -0
- package/dist/record/migration/plan.d.ts +32 -0
- package/dist/record/migration/plan.js +10 -0
- package/dist/record/migration/plan.js.map +1 -0
- package/dist/record/migration/registry.cjs +150 -0
- package/dist/record/migration/registry.cjs.map +1 -0
- package/dist/record/migration/registry.d.cts +61 -0
- package/dist/record/migration/registry.d.mts +61 -0
- package/dist/record/migration/registry.d.ts +61 -0
- package/dist/record/migration/registry.js +14 -0
- package/dist/record/migration/registry.js.map +1 -0
- package/dist/record/migration/storage.cjs +382 -0
- package/dist/record/migration/storage.cjs.map +1 -0
- package/dist/record/migration/storage.d.cts +18 -0
- package/dist/record/migration/storage.d.mts +18 -0
- package/dist/record/migration/storage.d.ts +18 -0
- package/dist/record/migration/storage.js +6 -0
- package/dist/record/migration/storage.js.map +1 -0
- package/dist/record/migration/types.cjs +3 -0
- package/dist/record/migration/types.cjs.map +1 -0
- package/dist/record/migration/types.d.cts +16 -0
- package/dist/record/migration/types.d.mts +16 -0
- package/dist/record/migration/types.d.ts +16 -0
- package/dist/record/migration/types.js +4 -0
- package/dist/record/migration/types.js.map +1 -0
- package/dist/record/model/core.cjs +11 -0
- package/dist/record/model/core.cjs.map +1 -0
- package/dist/record/model/core.d.cts +53 -0
- package/dist/record/model/core.d.mts +53 -0
- package/dist/record/model/core.d.ts +53 -0
- package/dist/record/model/core.js +6 -0
- package/dist/record/model/core.js.map +1 -0
- package/dist/record/model/identifiers.cjs +78 -0
- package/dist/record/model/identifiers.cjs.map +1 -0
- package/dist/record/model/identifiers.d.cts +44 -0
- package/dist/record/model/identifiers.d.mts +44 -0
- package/dist/record/model/identifiers.d.ts +44 -0
- package/dist/record/model/identifiers.js +40 -0
- package/dist/record/model/identifiers.js.map +1 -0
- package/dist/record/model/index.cjs +21 -0
- package/dist/record/model/index.cjs.map +1 -0
- package/dist/record/model/index.d.cts +4 -0
- package/dist/record/model/index.d.mts +4 -0
- package/dist/record/model/index.d.ts +4 -0
- package/dist/record/model/index.js +52 -0
- package/dist/record/model/index.js.map +1 -0
- package/dist/record/model/read-state.cjs +3 -0
- package/dist/record/model/read-state.cjs.map +1 -0
- package/dist/record/model/read-state.d.cts +45 -0
- package/dist/record/model/read-state.d.mts +45 -0
- package/dist/record/model/read-state.d.ts +45 -0
- package/dist/record/model/read-state.js +4 -0
- package/dist/record/model/read-state.js.map +1 -0
- package/dist/record/model/validation.cjs +143 -0
- package/dist/record/model/validation.cjs.map +1 -0
- package/dist/record/model/validation.d.cts +16 -0
- package/dist/record/model/validation.d.mts +16 -0
- package/dist/record/model/validation.d.ts +16 -0
- package/dist/record/model/validation.js +14 -0
- package/dist/record/model/validation.js.map +1 -0
- package/dist/record/platform/errors.cjs +101 -0
- package/dist/record/platform/errors.cjs.map +1 -0
- package/dist/record/platform/errors.d.cts +123 -0
- package/dist/record/platform/errors.d.mts +123 -0
- package/dist/record/platform/errors.d.ts +123 -0
- package/dist/record/platform/errors.js +32 -0
- package/dist/record/platform/errors.js.map +1 -0
- package/dist/record/platform/index.cjs +21 -0
- package/dist/record/platform/index.cjs.map +1 -0
- package/dist/record/platform/index.d.cts +4 -0
- package/dist/record/platform/index.d.mts +4 -0
- package/dist/record/platform/index.d.ts +4 -0
- package/dist/record/platform/index.js +60 -0
- package/dist/record/platform/index.js.map +1 -0
- package/dist/record/platform/node.cjs +715 -0
- package/dist/record/platform/node.cjs.map +1 -0
- package/dist/record/platform/node.d.cts +12 -0
- package/dist/record/platform/node.d.mts +12 -0
- package/dist/record/platform/node.d.ts +12 -0
- package/dist/record/platform/node.js +16 -0
- package/dist/record/platform/node.js.map +1 -0
- package/dist/record/platform/root.cjs +79 -0
- package/dist/record/platform/root.cjs.map +1 -0
- package/dist/record/platform/root.d.cts +35 -0
- package/dist/record/platform/root.d.mts +35 -0
- package/dist/record/platform/root.d.ts +35 -0
- package/dist/record/platform/root.js +8 -0
- package/dist/record/platform/root.js.map +1 -0
- package/dist/record/platform/services.cjs +24 -0
- package/dist/record/platform/services.cjs.map +1 -0
- package/dist/record/platform/services.d.cts +139 -0
- package/dist/record/platform/services.d.mts +139 -0
- package/dist/record/platform/services.d.ts +139 -0
- package/dist/record/platform/services.js +16 -0
- package/dist/record/platform/services.js.map +1 -0
- package/dist/record/reader/errors.cjs +46 -0
- package/dist/record/reader/errors.cjs.map +1 -0
- package/dist/record/reader/errors.d.cts +58 -0
- package/dist/record/reader/errors.d.mts +58 -0
- package/dist/record/reader/errors.d.ts +58 -0
- package/dist/record/reader/errors.js +16 -0
- package/dist/record/reader/errors.js.map +1 -0
- package/dist/record/reader/format.cjs +95 -0
- package/dist/record/reader/format.cjs.map +1 -0
- package/dist/record/reader/format.d.cts +17 -0
- package/dist/record/reader/format.d.mts +17 -0
- package/dist/record/reader/format.d.ts +17 -0
- package/dist/record/reader/format.js +8 -0
- package/dist/record/reader/format.js.map +1 -0
- package/dist/record/reader/identity.cjs +47 -0
- package/dist/record/reader/identity.cjs.map +1 -0
- package/dist/record/reader/identity.d.cts +31 -0
- package/dist/record/reader/identity.d.mts +31 -0
- package/dist/record/reader/identity.d.ts +31 -0
- package/dist/record/reader/identity.js +8 -0
- package/dist/record/reader/identity.js.map +1 -0
- package/dist/record/reader/index.cjs +21 -0
- package/dist/record/reader/index.cjs.map +1 -0
- package/dist/record/reader/index.d.cts +4 -0
- package/dist/record/reader/index.d.mts +4 -0
- package/dist/record/reader/index.d.ts +4 -0
- package/dist/record/reader/index.js +42 -0
- package/dist/record/reader/index.js.map +1 -0
- package/dist/record/reader/internal.cjs +17 -0
- package/dist/record/reader/internal.cjs.map +1 -0
- package/dist/record/reader/internal.d.cts +26 -0
- package/dist/record/reader/internal.d.mts +26 -0
- package/dist/record/reader/internal.d.ts +26 -0
- package/dist/record/reader/internal.js +8 -0
- package/dist/record/reader/internal.js.map +1 -0
- package/dist/record/reader/runtime.cjs +728 -0
- package/dist/record/reader/runtime.cjs.map +1 -0
- package/dist/record/reader/runtime.d.cts +22 -0
- package/dist/record/reader/runtime.d.mts +22 -0
- package/dist/record/reader/runtime.d.ts +22 -0
- package/dist/record/reader/runtime.js +20 -0
- package/dist/record/reader/runtime.js.map +1 -0
- package/dist/record/reader/types.cjs +12 -0
- package/dist/record/reader/types.cjs.map +1 -0
- package/dist/record/reader/types.d.cts +50 -0
- package/dist/record/reader/types.d.mts +50 -0
- package/dist/record/reader/types.d.ts +50 -0
- package/dist/record/reader/types.js +10 -0
- package/dist/record/reader/types.js.map +1 -0
- package/dist/record/source-hash.cjs +30 -0
- package/dist/record/source-hash.cjs.map +1 -0
- package/dist/record/source-hash.d.cts +9 -0
- package/dist/record/source-hash.d.mts +9 -0
- package/dist/record/source-hash.js +8 -25
- package/dist/record/source-hash.js.map +1 -0
- package/dist/record/writer/attachment-payload.cjs +81 -0
- package/dist/record/writer/attachment-payload.cjs.map +1 -0
- package/dist/record/writer/attachment-payload.d.cts +19 -0
- package/dist/record/writer/attachment-payload.d.mts +19 -0
- package/dist/record/writer/attachment-payload.d.ts +19 -0
- package/dist/record/writer/attachment-payload.js +10 -0
- package/dist/record/writer/attachment-payload.js.map +1 -0
- package/dist/record/writer/errors.cjs +35 -0
- package/dist/record/writer/errors.cjs.map +1 -0
- package/dist/record/writer/errors.d.cts +35 -0
- package/dist/record/writer/errors.d.mts +35 -0
- package/dist/record/writer/errors.d.ts +35 -0
- package/dist/record/writer/errors.js +14 -0
- package/dist/record/writer/errors.js.map +1 -0
- package/dist/record/writer/index.cjs +20 -0
- package/dist/record/writer/index.cjs.map +1 -0
- package/dist/record/writer/index.d.cts +3 -0
- package/dist/record/writer/index.d.mts +3 -0
- package/dist/record/writer/index.d.ts +3 -0
- package/dist/record/writer/index.js +22 -0
- package/dist/record/writer/index.js.map +1 -0
- package/dist/record/writer/limits.cjs +16 -0
- package/dist/record/writer/limits.cjs.map +1 -0
- package/dist/record/writer/limits.d.cts +4 -0
- package/dist/record/writer/limits.d.mts +4 -0
- package/dist/record/writer/limits.d.ts +4 -0
- package/dist/record/writer/limits.js +8 -0
- package/dist/record/writer/limits.js.map +1 -0
- package/dist/record/writer/runtime.cjs +656 -0
- package/dist/record/writer/runtime.cjs.map +1 -0
- package/dist/record/writer/runtime.d.cts +7 -0
- package/dist/record/writer/runtime.d.mts +7 -0
- package/dist/record/writer/runtime.d.ts +7 -0
- package/dist/record/writer/runtime.js +6 -0
- package/dist/record/writer/runtime.js.map +1 -0
- package/dist/record/writer/types.cjs +7 -0
- package/dist/record/writer/types.cjs.map +1 -0
- package/dist/record/writer/types.d.cts +56 -0
- package/dist/record/writer/types.d.mts +56 -0
- package/dist/record/writer/types.d.ts +56 -0
- package/dist/record/writer/types.js +10 -0
- package/dist/record/writer/types.js.map +1 -0
- package/dist/report/author/identity.cjs +268 -0
- package/dist/report/author/identity.cjs.map +1 -0
- package/dist/report/author/identity.d.cts +75 -0
- package/dist/report/author/identity.d.mts +75 -0
- package/dist/report/author/identity.d.ts +75 -0
- package/dist/report/author/identity.js +34 -0
- package/dist/report/author/identity.js.map +1 -0
- package/dist/report/author/index.cjs +19 -0
- package/dist/report/author/index.cjs.map +1 -0
- package/dist/report/author/index.d.cts +4 -0
- package/dist/report/author/index.d.mts +4 -0
- package/dist/report/author/index.d.ts +4 -0
- package/dist/report/author/index.js +30 -0
- package/dist/report/author/index.js.map +1 -0
- package/dist/report/author/internal.cjs +98 -0
- package/dist/report/author/internal.cjs.map +1 -0
- package/dist/report/author/internal.d.cts +91 -0
- package/dist/report/author/internal.d.mts +91 -0
- package/dist/report/author/internal.d.ts +91 -0
- package/dist/report/author/internal.js +18 -0
- package/dist/report/author/internal.js.map +1 -0
- package/dist/report/author/model.cjs +467 -0
- package/dist/report/author/model.cjs.map +1 -0
- package/dist/report/author/model.d.cts +241 -0
- package/dist/report/author/model.d.mts +241 -0
- package/dist/report/author/model.d.ts +241 -0
- package/dist/report/author/model.js +32 -0
- package/dist/report/author/model.js.map +1 -0
- package/dist/report/built-in/attempt-overview.cjs +395 -0
- package/dist/report/built-in/attempt-overview.cjs.map +1 -0
- package/dist/report/built-in/attempt-overview.d.cts +10 -0
- package/dist/report/built-in/attempt-overview.d.mts +10 -0
- package/dist/report/built-in/attempt-overview.d.ts +10 -0
- package/dist/report/built-in/attempt-overview.js +9 -0
- package/dist/report/built-in/attempt-overview.js.map +1 -0
- package/dist/report/built-in/execution.cjs +766 -0
- package/dist/report/built-in/execution.cjs.map +1 -0
- package/dist/report/built-in/execution.d.cts +25 -0
- package/dist/report/built-in/execution.d.mts +25 -0
- package/dist/report/built-in/execution.d.ts +25 -0
- package/dist/report/built-in/execution.js +12 -0
- package/dist/report/built-in/execution.js.map +1 -0
- package/dist/report/built-in/index.cjs +31 -0
- package/dist/report/built-in/index.cjs.map +1 -0
- package/dist/report/built-in/index.d.cts +6 -0
- package/dist/report/built-in/index.d.mts +6 -0
- package/dist/report/built-in/index.d.ts +6 -8
- package/dist/report/built-in/index.js +35 -13
- package/dist/report/built-in/index.js.map +1 -0
- package/dist/report/built-in/index.mjs +35 -0
- package/dist/report/built-in/index.mjs.map +1 -0
- package/dist/report/built-in/overview.cjs +206 -0
- package/dist/report/built-in/overview.cjs.map +1 -0
- package/dist/report/built-in/overview.d.cts +6 -0
- package/dist/report/built-in/overview.d.mts +6 -0
- package/dist/report/built-in/overview.d.ts +6 -0
- package/dist/report/built-in/overview.js +11 -0
- package/dist/report/built-in/overview.js.map +1 -0
- package/dist/report/built-in/run-membership-overview.cjs +194 -0
- package/dist/report/built-in/run-membership-overview.cjs.map +1 -0
- package/dist/report/built-in/run-membership-overview.d.cts +6 -0
- package/dist/report/built-in/run-membership-overview.d.mts +6 -0
- package/dist/report/built-in/run-membership-overview.d.ts +6 -0
- package/dist/report/built-in/run-membership-overview.js +9 -0
- package/dist/report/built-in/run-membership-overview.js.map +1 -0
- package/dist/report/built-in/sandbox-history.cjs +384 -0
- package/dist/report/built-in/sandbox-history.cjs.map +1 -0
- package/dist/report/built-in/sandbox-history.d.cts +9 -0
- package/dist/report/built-in/sandbox-history.d.mts +9 -0
- package/dist/report/built-in/sandbox-history.d.ts +9 -0
- package/dist/report/built-in/sandbox-history.js +9 -0
- package/dist/report/built-in/sandbox-history.js.map +1 -0
- package/dist/report/built-in/source.cjs +162 -0
- package/dist/report/built-in/source.cjs.map +1 -0
- package/dist/report/built-in/source.d.cts +11 -0
- package/dist/report/built-in/source.d.mts +11 -0
- package/dist/report/built-in/source.d.ts +11 -0
- package/dist/report/built-in/source.js +8 -0
- package/dist/report/built-in/source.js.map +1 -0
- package/dist/report/execution/index.cjs +20 -0
- package/dist/report/execution/index.cjs.map +1 -0
- package/dist/report/execution/index.d.cts +3 -0
- package/dist/report/execution/index.d.mts +3 -0
- package/dist/report/execution/index.d.ts +3 -0
- package/dist/report/execution/index.js +30 -0
- package/dist/report/execution/index.js.map +1 -0
- package/dist/report/execution/model.cjs +483 -0
- package/dist/report/execution/model.cjs.map +1 -0
- package/dist/report/execution/model.d.cts +50 -0
- package/dist/report/execution/model.d.mts +50 -0
- package/dist/report/execution/model.d.ts +50 -0
- package/dist/report/execution/model.js +16 -0
- package/dist/report/execution/model.js.map +1 -0
- package/dist/report/execution/problems.cjs +210 -0
- package/dist/report/execution/problems.cjs.map +1 -0
- package/dist/report/execution/problems.d.cts +54 -0
- package/dist/report/execution/problems.d.mts +54 -0
- package/dist/report/execution/problems.d.ts +54 -0
- package/dist/report/execution/problems.js +14 -0
- package/dist/report/execution/problems.js.map +1 -0
- package/dist/report/execution/results.cjs +26 -0
- package/dist/report/execution/results.cjs.map +1 -0
- package/dist/report/execution/results.d.cts +102 -0
- package/dist/report/execution/results.d.mts +102 -0
- package/dist/report/execution/results.d.ts +102 -0
- package/dist/report/execution/results.js +8 -0
- package/dist/report/execution/results.js.map +1 -0
- package/dist/report/host/execute.cjs +1287 -0
- package/dist/report/host/execute.cjs.map +1 -0
- package/dist/report/host/execute.d.cts +23 -0
- package/dist/report/host/execute.d.mts +23 -0
- package/dist/report/host/execute.d.ts +23 -0
- package/dist/report/host/execute.js +6 -0
- package/dist/report/host/execute.js.map +1 -0
- package/dist/report/host/from-record.cjs +47 -0
- package/dist/report/host/from-record.cjs.map +1 -0
- package/dist/report/host/from-record.d.cts +36 -0
- package/dist/report/host/from-record.d.mts +36 -0
- package/dist/report/host/from-record.d.ts +36 -0
- package/dist/report/host/from-record.js +8 -0
- package/dist/report/host/from-record.js.map +1 -0
- package/dist/report/host/html.cjs +424 -0
- package/dist/report/host/html.cjs.map +1 -0
- package/dist/report/host/html.d.cts +28 -0
- package/dist/report/host/html.d.mts +28 -0
- package/dist/report/host/html.d.ts +28 -0
- package/dist/report/host/html.js +6 -0
- package/dist/report/host/html.js.map +1 -0
- package/dist/report/host/index.cjs +21 -0
- package/dist/report/host/index.cjs.map +1 -0
- package/dist/report/host/index.d.cts +11 -0
- package/dist/report/host/index.d.mts +11 -0
- package/dist/report/host/index.d.ts +11 -0
- package/dist/report/host/index.js +24 -0
- package/dist/report/host/index.js.map +1 -0
- package/dist/report/host/node/loader.cjs +210 -0
- package/dist/report/host/node/loader.cjs.map +1 -0
- package/dist/report/host/node/loader.d.cts +45 -0
- package/dist/report/host/node/loader.d.mts +45 -0
- package/dist/report/host/node/loader.d.ts +45 -0
- package/dist/report/host/node/loader.js +14 -0
- package/dist/report/host/node/loader.js.map +1 -0
- package/dist/report/host/node/theme.cjs +21 -0
- package/dist/report/host/node/theme.cjs.map +1 -0
- package/dist/report/host/node/theme.d.cts +1 -0
- package/dist/report/host/node/theme.d.mts +1 -0
- package/dist/report/host/node/theme.d.ts +1 -0
- package/dist/report/host/node/theme.js +14 -0
- package/dist/report/host/node/theme.js.map +1 -0
- package/dist/report/host/node.cjs +147 -0
- package/dist/report/host/node.cjs.map +1 -0
- package/dist/report/host/node.d.cts +36 -0
- package/dist/report/host/node.d.mts +36 -0
- package/dist/report/host/node.d.ts +36 -0
- package/dist/report/host/node.js +36 -0
- package/dist/report/host/node.js.map +1 -0
- package/dist/report/host/presentation.cjs +423 -0
- package/dist/report/host/presentation.cjs.map +1 -0
- package/dist/report/host/presentation.d.cts +42 -0
- package/dist/report/host/presentation.d.mts +42 -0
- package/dist/report/host/presentation.d.ts +42 -0
- package/dist/report/host/presentation.js +16 -0
- package/dist/report/host/presentation.js.map +1 -0
- package/dist/report/host/static.cjs +126 -0
- package/dist/report/host/static.cjs.map +1 -0
- package/dist/report/host/static.d.cts +55 -0
- package/dist/report/host/static.d.mts +55 -0
- package/dist/report/host/static.d.ts +55 -0
- package/dist/report/host/static.js +8 -0
- package/dist/report/host/static.js.map +1 -0
- package/dist/report/host/theme.cjs +223 -0
- package/dist/report/host/theme.cjs.map +1 -0
- package/dist/report/host/theme.d.cts +64 -0
- package/dist/report/host/theme.d.mts +64 -0
- package/dist/report/host/theme.d.ts +64 -0
- package/dist/report/host/theme.js +14 -0
- package/dist/report/host/theme.js.map +1 -0
- package/dist/report/host/view-session.cjs +82 -0
- package/dist/report/host/view-session.cjs.map +1 -0
- package/dist/report/host/view-session.d.cts +82 -0
- package/dist/report/host/view-session.d.mts +82 -0
- package/dist/report/host/view-session.d.ts +82 -0
- package/dist/report/host/view-session.js +6 -0
- package/dist/report/host/view-session.js.map +1 -0
- package/dist/report/index.cjs +58 -0
- package/dist/report/index.cjs.map +1 -0
- package/dist/report/index.d.cts +11 -0
- package/dist/report/index.d.mts +11 -0
- package/dist/report/index.d.ts +11 -43
- package/dist/report/index.js +120 -44
- package/dist/report/index.js.map +1 -0
- package/dist/report/index.mjs +120 -0
- package/dist/report/index.mjs.map +1 -0
- package/dist/report/model/panel.cjs +271 -0
- package/dist/report/model/panel.cjs.map +1 -0
- package/dist/report/model/panel.d.cts +109 -0
- package/dist/report/model/panel.d.mts +109 -0
- package/dist/report/model/panel.d.ts +2 -2
- package/dist/report/model/panel.js +22 -260
- package/dist/report/model/panel.js.map +1 -0
- package/dist/report/model/text-layout.cjs +185 -0
- package/dist/report/model/text-layout.cjs.map +1 -0
- package/dist/report/model/text-layout.d.cts +75 -0
- package/dist/report/model/text-layout.d.mts +75 -0
- package/dist/report/model/text-layout.js +22 -173
- package/dist/report/model/text-layout.js.map +1 -0
- package/dist/report/semantic/document.cjs +593 -0
- package/dist/report/semantic/document.cjs.map +1 -0
- package/dist/report/semantic/document.d.cts +162 -0
- package/dist/report/semantic/document.d.mts +162 -0
- package/dist/report/semantic/document.d.ts +162 -0
- package/dist/report/semantic/document.js +38 -0
- package/dist/report/semantic/document.js.map +1 -0
- package/dist/report/semantic/index.cjs +18 -0
- package/dist/report/semantic/index.cjs.map +1 -0
- package/dist/report/semantic/index.d.cts +1 -0
- package/dist/report/semantic/index.d.mts +1 -0
- package/dist/report/semantic/index.d.ts +1 -0
- package/dist/report/semantic/index.js +38 -0
- package/dist/report/semantic/index.js.map +1 -0
- package/dist/runner/accept-prompt.cjs +50 -0
- package/dist/runner/accept-prompt.cjs.map +1 -0
- package/dist/runner/accept-prompt.d.cts +27 -0
- package/dist/runner/accept-prompt.d.mts +27 -0
- package/dist/runner/accept-prompt.d.ts +27 -0
- package/dist/runner/accept-prompt.js +10 -0
- package/dist/runner/accept-prompt.js.map +1 -0
- package/dist/runner/accept.cjs +280 -0
- package/dist/runner/accept.cjs.map +1 -0
- package/dist/runner/accept.d.cts +75 -0
- package/dist/runner/accept.d.mts +75 -0
- package/dist/runner/accept.d.ts +75 -0
- package/dist/runner/accept.js +16 -0
- package/dist/runner/accept.js.map +1 -0
- package/dist/runner/adoption.cjs +859 -0
- package/dist/runner/adoption.cjs.map +1 -0
- package/dist/runner/adoption.d.cts +214 -0
- package/dist/runner/adoption.d.mts +214 -0
- package/dist/runner/adoption.d.ts +214 -0
- package/dist/runner/adoption.js +50 -0
- package/dist/runner/adoption.js.map +1 -0
- package/dist/runner/assert-first-bridge.cjs +203 -0
- package/dist/runner/assert-first-bridge.cjs.map +1 -0
- package/dist/runner/assert-first-bridge.d.cts +51 -0
- package/dist/runner/assert-first-bridge.d.mts +51 -0
- package/dist/runner/assert-first-bridge.d.ts +51 -0
- package/dist/runner/assert-first-bridge.js +6 -0
- package/dist/runner/assert-first-bridge.js.map +1 -0
- package/dist/runner/assertions.cjs +77 -0
- package/dist/runner/assertions.cjs.map +1 -0
- package/dist/runner/assertions.d.cts +8 -0
- package/dist/runner/assertions.d.mts +8 -0
- package/dist/runner/assertions.d.ts +8 -0
- package/dist/runner/assertions.js +6 -0
- package/dist/runner/assertions.js.map +1 -0
- package/dist/runner/attempt.cjs +2057 -0
- package/dist/runner/attempt.cjs.map +1 -0
- package/dist/runner/attempt.d.cts +90 -0
- package/dist/runner/attempt.d.mts +90 -0
- package/dist/runner/attempt.d.ts +90 -0
- package/dist/runner/attempt.js +14 -0
- package/dist/runner/attempt.js.map +1 -0
- package/dist/runner/build-preparation.cjs +87 -0
- package/dist/runner/build-preparation.cjs.map +1 -0
- package/dist/runner/build-preparation.d.cts +23 -0
- package/dist/runner/build-preparation.d.mts +23 -0
- package/dist/runner/build-preparation.d.ts +23 -0
- package/dist/runner/build-preparation.js +8 -0
- package/dist/runner/build-preparation.js.map +1 -0
- package/dist/runner/cleanup-timeout.cjs +40 -0
- package/dist/runner/cleanup-timeout.cjs.map +1 -0
- package/dist/runner/cleanup-timeout.d.cts +21 -0
- package/dist/runner/cleanup-timeout.d.mts +21 -0
- package/dist/runner/cleanup-timeout.d.ts +19 -1
- package/dist/runner/cleanup-timeout.js +12 -0
- package/dist/runner/cleanup-timeout.js.map +1 -0
- package/dist/runner/command-plan.cjs +475 -0
- package/dist/runner/command-plan.cjs.map +1 -0
- package/dist/runner/command-plan.d.cts +106 -0
- package/dist/runner/command-plan.d.mts +106 -0
- package/dist/runner/command-plan.d.ts +106 -0
- package/dist/runner/command-plan.js +6 -0
- package/dist/runner/command-plan.js.map +1 -0
- package/dist/runner/config-identity.cjs +259 -0
- package/dist/runner/config-identity.cjs.map +1 -0
- package/dist/runner/config-identity.d.cts +88 -0
- package/dist/runner/config-identity.d.mts +88 -0
- package/dist/runner/config-identity.d.ts +7 -5
- package/dist/runner/config-identity.js +22 -0
- package/dist/runner/config-identity.js.map +1 -0
- package/dist/runner/direct-agent-sandbox.cjs +64 -0
- package/dist/runner/direct-agent-sandbox.cjs.map +1 -0
- package/dist/runner/direct-agent-sandbox.d.cts +5 -0
- package/dist/runner/direct-agent-sandbox.d.mts +5 -0
- package/dist/runner/direct-agent-sandbox.d.ts +5 -0
- package/dist/runner/direct-agent-sandbox.js +8 -0
- package/dist/runner/direct-agent-sandbox.js.map +1 -0
- package/dist/runner/discover.cjs +628 -0
- package/dist/runner/discover.cjs.map +1 -0
- package/dist/runner/discover.d.cts +29 -0
- package/dist/runner/discover.d.mts +29 -0
- package/dist/runner/discover.d.ts +29 -0
- package/dist/runner/discover.js +12 -0
- package/dist/runner/discover.js.map +1 -0
- package/dist/runner/eval-selection.cjs +95 -0
- package/dist/runner/eval-selection.cjs.map +1 -0
- package/dist/runner/eval-selection.d.cts +37 -0
- package/dist/runner/eval-selection.d.mts +37 -0
- package/dist/runner/eval-selection.d.ts +2 -7
- package/dist/runner/eval-selection.js +12 -0
- package/dist/runner/eval-selection.js.map +1 -0
- package/dist/runner/eval-source.cjs +64 -0
- package/dist/runner/eval-source.cjs.map +1 -0
- package/dist/runner/eval-source.d.cts +28 -0
- package/dist/runner/eval-source.d.mts +28 -0
- package/dist/runner/eval-source.d.ts +1 -1
- package/dist/runner/eval-source.js +26 -0
- package/dist/runner/eval-source.js.map +1 -0
- package/dist/runner/experiment-cleanup-registry.cjs +70 -0
- package/dist/runner/experiment-cleanup-registry.cjs.map +1 -0
- package/dist/runner/experiment-cleanup-registry.d.cts +19 -0
- package/dist/runner/experiment-cleanup-registry.d.mts +19 -0
- package/dist/runner/experiment-cleanup-registry.d.ts +19 -0
- package/dist/runner/experiment-cleanup-registry.js +14 -0
- package/dist/runner/experiment-cleanup-registry.js.map +1 -0
- package/dist/runner/feedback/coordinator.cjs +404 -0
- package/dist/runner/feedback/coordinator.cjs.map +1 -0
- package/dist/runner/feedback/coordinator.d.cts +61 -0
- package/dist/runner/feedback/coordinator.d.mts +61 -0
- package/dist/runner/feedback/coordinator.d.ts +61 -0
- package/dist/runner/feedback/coordinator.js +6 -0
- package/dist/runner/feedback/coordinator.js.map +1 -0
- package/dist/runner/feedback/eval-conclusions.cjs +75 -0
- package/dist/runner/feedback/eval-conclusions.cjs.map +1 -0
- package/dist/runner/feedback/eval-conclusions.d.cts +30 -0
- package/dist/runner/feedback/eval-conclusions.d.mts +30 -0
- package/dist/runner/feedback/eval-conclusions.d.ts +30 -0
- package/dist/runner/feedback/eval-conclusions.js +8 -0
- package/dist/runner/feedback/eval-conclusions.js.map +1 -0
- package/dist/runner/feedback/failure.cjs +194 -0
- package/dist/runner/feedback/failure.cjs.map +1 -0
- package/dist/runner/feedback/failure.d.cts +13 -0
- package/dist/runner/feedback/failure.d.mts +13 -0
- package/dist/runner/feedback/failure.d.ts +13 -0
- package/dist/runner/feedback/failure.js +8 -0
- package/dist/runner/feedback/failure.js.map +1 -0
- package/dist/runner/feedback/human.cjs +1469 -0
- package/dist/runner/feedback/human.cjs.map +1 -0
- package/dist/runner/feedback/human.d.cts +139 -0
- package/dist/runner/feedback/human.d.mts +139 -0
- package/dist/runner/feedback/human.d.ts +139 -0
- package/dist/runner/feedback/human.js +18 -0
- package/dist/runner/feedback/human.js.map +1 -0
- package/dist/runner/feedback/index.cjs +51 -0
- package/dist/runner/feedback/index.cjs.map +1 -0
- package/dist/runner/feedback/index.d.cts +10 -0
- package/dist/runner/feedback/index.d.mts +10 -0
- package/dist/runner/feedback/index.d.ts +10 -0
- package/dist/runner/feedback/index.js +58 -0
- package/dist/runner/feedback/index.js.map +1 -0
- package/dist/runner/feedback/input-guard.cjs +106 -0
- package/dist/runner/feedback/input-guard.cjs.map +1 -0
- package/dist/runner/feedback/input-guard.d.cts +43 -0
- package/dist/runner/feedback/input-guard.d.mts +43 -0
- package/dist/runner/feedback/input-guard.d.ts +43 -0
- package/dist/runner/feedback/input-guard.js +8 -0
- package/dist/runner/feedback/input-guard.js.map +1 -0
- package/dist/runner/feedback/io.cjs +43 -0
- package/dist/runner/feedback/io.cjs.map +1 -0
- package/dist/runner/feedback/io.d.cts +38 -0
- package/dist/runner/feedback/io.d.mts +38 -0
- package/dist/runner/feedback/io.d.ts +38 -0
- package/dist/runner/feedback/io.js +6 -0
- package/dist/runner/feedback/io.js.map +1 -0
- package/dist/runner/feedback/json.cjs +371 -0
- package/dist/runner/feedback/json.cjs.map +1 -0
- package/dist/runner/feedback/json.d.cts +242 -0
- package/dist/runner/feedback/json.d.mts +242 -0
- package/dist/runner/feedback/json.d.ts +242 -0
- package/dist/runner/feedback/json.js +10 -0
- package/dist/runner/feedback/json.js.map +1 -0
- package/dist/runner/feedback/profile.cjs +8 -0
- package/dist/runner/feedback/profile.cjs.map +1 -0
- package/dist/runner/feedback/profile.d.cts +14 -0
- package/dist/runner/feedback/profile.d.mts +14 -0
- package/dist/runner/feedback/profile.d.ts +14 -0
- package/dist/runner/feedback/profile.js +6 -0
- package/dist/runner/feedback/profile.js.map +1 -0
- package/dist/runner/feedback/reducer.cjs +372 -0
- package/dist/runner/feedback/reducer.cjs.map +1 -0
- package/dist/runner/feedback/reducer.d.cts +4 -0
- package/dist/runner/feedback/reducer.d.mts +4 -0
- package/dist/runner/feedback/reducer.d.ts +4 -0
- package/dist/runner/feedback/reducer.js +8 -0
- package/dist/runner/feedback/reducer.js.map +1 -0
- package/dist/runner/feedback/renderer.cjs +3 -0
- package/dist/runner/feedback/renderer.cjs.map +1 -0
- package/dist/runner/feedback/renderer.d.cts +63 -0
- package/dist/runner/feedback/renderer.d.mts +63 -0
- package/dist/runner/feedback/renderer.d.ts +63 -0
- package/dist/runner/feedback/renderer.js +4 -0
- package/dist/runner/feedback/renderer.js.map +1 -0
- package/dist/runner/feedback/sink.cjs +194 -0
- package/dist/runner/feedback/sink.cjs.map +1 -0
- package/dist/runner/feedback/sink.d.cts +187 -0
- package/dist/runner/feedback/sink.d.mts +187 -0
- package/dist/runner/feedback/sink.d.ts +7 -7
- package/dist/runner/feedback/sink.js +34 -0
- package/dist/runner/feedback/sink.js.map +1 -0
- package/dist/runner/feedback/testing.cjs +69 -0
- package/dist/runner/feedback/testing.cjs.map +1 -0
- package/dist/runner/feedback/testing.d.cts +26 -0
- package/dist/runner/feedback/testing.d.mts +26 -0
- package/dist/runner/feedback/testing.d.ts +26 -0
- package/dist/runner/feedback/testing.js +6 -0
- package/dist/runner/feedback/testing.js.map +1 -0
- package/dist/runner/fingerprint.cjs +379 -0
- package/dist/runner/fingerprint.cjs.map +1 -0
- package/dist/runner/fingerprint.d.cts +71 -0
- package/dist/runner/fingerprint.d.mts +71 -0
- package/dist/runner/fingerprint.d.ts +49 -167
- package/dist/runner/fingerprint.js +22 -0
- package/dist/runner/fingerprint.js.map +1 -0
- package/dist/runner/gate-lease.cjs +271 -0
- package/dist/runner/gate-lease.cjs.map +1 -0
- package/dist/runner/gate-lease.d.cts +62 -0
- package/dist/runner/gate-lease.d.mts +62 -0
- package/dist/runner/gate-lease.d.ts +62 -0
- package/dist/runner/gate-lease.js +22 -0
- package/dist/runner/gate-lease.js.map +1 -0
- package/dist/runner/judge-config.cjs +26 -0
- package/dist/runner/judge-config.cjs.map +1 -0
- package/dist/runner/judge-config.d.cts +8 -0
- package/dist/runner/judge-config.d.mts +8 -0
- package/dist/runner/judge-config.d.ts +6 -4
- package/dist/runner/judge-config.js +6 -0
- package/dist/runner/judge-config.js.map +1 -0
- package/dist/runner/leak-gate.cjs +381 -0
- package/dist/runner/leak-gate.cjs.map +1 -0
- package/dist/runner/leak-gate.d.cts +124 -0
- package/dist/runner/leak-gate.d.mts +124 -0
- package/dist/runner/leak-gate.d.ts +36 -8
- package/dist/runner/leak-gate.js +32 -0
- package/dist/runner/leak-gate.js.map +1 -0
- package/dist/runner/ledger.cjs +470 -0
- package/dist/runner/ledger.cjs.map +1 -0
- package/dist/runner/ledger.d.cts +35 -0
- package/dist/runner/ledger.d.mts +35 -0
- package/dist/runner/ledger.d.ts +35 -0
- package/dist/runner/ledger.js +8 -0
- package/dist/runner/ledger.js.map +1 -0
- package/dist/runner/lock.cjs +236 -0
- package/dist/runner/lock.cjs.map +1 -0
- package/dist/runner/lock.d.cts +56 -0
- package/dist/runner/lock.d.mts +56 -0
- package/dist/runner/lock.d.ts +56 -0
- package/dist/runner/lock.js +22 -0
- package/dist/runner/lock.js.map +1 -0
- package/dist/runner/manifest.cjs +179 -0
- package/dist/runner/manifest.cjs.map +1 -0
- package/dist/runner/manifest.d.cts +61 -0
- package/dist/runner/manifest.d.mts +61 -0
- package/dist/runner/manifest.d.ts +4 -4
- package/dist/runner/manifest.js +22 -0
- package/dist/runner/manifest.js.map +1 -0
- package/dist/runner/project-current.cjs +117 -0
- package/dist/runner/project-current.cjs.map +1 -0
- package/dist/runner/project-current.d.cts +29 -0
- package/dist/runner/project-current.d.mts +29 -0
- package/dist/runner/project-current.d.ts +29 -0
- package/dist/runner/project-current.js +8 -0
- package/dist/runner/project-current.js.map +1 -0
- package/dist/runner/project-target.cjs +3 -0
- package/dist/runner/project-target.cjs.map +1 -0
- package/dist/runner/project-target.d.cts +30 -0
- package/dist/runner/project-target.d.mts +30 -0
- package/dist/runner/project-target.d.ts +30 -0
- package/dist/runner/project-target.js +4 -0
- package/dist/runner/project-target.js.map +1 -0
- package/dist/runner/record.cjs +883 -0
- package/dist/runner/record.cjs.map +1 -0
- package/dist/runner/record.d.cts +151 -0
- package/dist/runner/record.d.mts +151 -0
- package/dist/runner/record.d.ts +151 -0
- package/dist/runner/record.js +10 -0
- package/dist/runner/record.js.map +1 -0
- package/dist/runner/rename-experiment.cjs +273 -0
- package/dist/runner/rename-experiment.cjs.map +1 -0
- package/dist/runner/rename-experiment.d.cts +123 -0
- package/dist/runner/rename-experiment.d.mts +123 -0
- package/dist/runner/rename-experiment.d.ts +123 -0
- package/dist/runner/rename-experiment.js +14 -0
- package/dist/runner/rename-experiment.js.map +1 -0
- package/dist/runner/report.cjs +123 -0
- package/dist/runner/report.cjs.map +1 -0
- package/dist/runner/report.d.cts +27 -0
- package/dist/runner/report.d.mts +27 -0
- package/dist/runner/report.d.ts +27 -0
- package/dist/runner/report.js +14 -0
- package/dist/runner/report.js.map +1 -0
- package/dist/runner/reporters/braintrust.cjs +302 -0
- package/dist/runner/reporters/braintrust.cjs.map +1 -0
- package/dist/runner/reporters/braintrust.d.cts +59 -0
- package/dist/runner/reporters/braintrust.d.mts +59 -0
- package/dist/runner/reporters/braintrust.d.ts +59 -0
- package/dist/runner/reporters/braintrust.js +8 -0
- package/dist/runner/reporters/braintrust.js.map +1 -0
- package/dist/runner/reporters/index.cjs +12 -0
- package/dist/runner/reporters/index.cjs.map +1 -0
- package/dist/runner/reporters/index.d.cts +2 -0
- package/dist/runner/reporters/index.d.mts +2 -0
- package/dist/runner/reporters/index.d.ts +2 -0
- package/dist/runner/reporters/index.js +10 -0
- package/dist/runner/reporters/index.js.map +1 -0
- package/dist/runner/reporters/index.mjs +10 -0
- package/dist/runner/reporters/index.mjs.map +1 -0
- package/dist/runner/reporters/json.cjs +116 -0
- package/dist/runner/reporters/json.cjs.map +1 -0
- package/dist/runner/reporters/json.d.cts +3 -0
- package/dist/runner/reporters/json.d.mts +3 -0
- package/dist/runner/reporters/json.d.ts +3 -0
- package/dist/runner/reporters/json.js +8 -0
- package/dist/runner/reporters/json.js.map +1 -0
- package/dist/runner/reporters/shared.cjs +14 -0
- package/dist/runner/reporters/shared.cjs.map +1 -0
- package/dist/runner/reporters/shared.d.cts +3 -0
- package/dist/runner/reporters/shared.d.mts +3 -0
- package/dist/runner/reporters/shared.d.ts +3 -0
- package/dist/runner/reporters/shared.js +8 -0
- package/dist/runner/reporters/shared.js.map +1 -0
- package/dist/runner/reuse-diagnostics.cjs +71 -0
- package/dist/runner/reuse-diagnostics.cjs.map +1 -0
- package/dist/runner/reuse-diagnostics.d.cts +21 -0
- package/dist/runner/reuse-diagnostics.d.mts +21 -0
- package/dist/runner/reuse-diagnostics.d.ts +21 -0
- package/dist/runner/reuse-diagnostics.js +8 -0
- package/dist/runner/reuse-diagnostics.js.map +1 -0
- package/dist/runner/reuse-plan.cjs +739 -0
- package/dist/runner/reuse-plan.cjs.map +1 -0
- package/dist/runner/reuse-plan.d.cts +185 -0
- package/dist/runner/reuse-plan.d.mts +185 -0
- package/dist/runner/reuse-plan.d.ts +185 -0
- package/dist/runner/reuse-plan.js +26 -0
- package/dist/runner/reuse-plan.js.map +1 -0
- package/dist/runner/reuse-readback.cjs +275 -0
- package/dist/runner/reuse-readback.cjs.map +1 -0
- package/dist/runner/reuse-readback.d.cts +169 -0
- package/dist/runner/reuse-readback.d.mts +169 -0
- package/dist/runner/reuse-readback.d.ts +169 -0
- package/dist/runner/reuse-readback.js +20 -0
- package/dist/runner/reuse-readback.js.map +1 -0
- package/dist/runner/run.cjs +2362 -0
- package/dist/runner/run.cjs.map +1 -0
- package/dist/runner/run.d.cts +44 -0
- package/dist/runner/run.d.mts +44 -0
- package/dist/runner/run.d.ts +44 -0
- package/dist/runner/run.js +12 -0
- package/dist/runner/run.js.map +1 -0
- package/dist/runner/sandbox-pool.cjs +312 -0
- package/dist/runner/sandbox-pool.cjs.map +1 -0
- package/dist/runner/sandbox-pool.d.cts +70 -0
- package/dist/runner/sandbox-pool.d.mts +70 -0
- package/dist/runner/sandbox-pool.d.ts +70 -0
- package/dist/runner/sandbox-pool.js +6 -0
- package/dist/runner/sandbox-pool.js.map +1 -0
- package/dist/runner/sandbox-prep.cjs +57 -0
- package/dist/runner/sandbox-prep.cjs.map +1 -0
- package/dist/runner/sandbox-prep.d.cts +8 -0
- package/dist/runner/sandbox-prep.d.mts +8 -0
- package/dist/runner/sandbox-prep.d.ts +8 -0
- package/dist/runner/sandbox-prep.js +8 -0
- package/dist/runner/sandbox-prep.js.map +1 -0
- package/dist/runner/sandbox-record-producer.cjs +142 -0
- package/dist/runner/sandbox-record-producer.cjs.map +1 -0
- package/dist/runner/sandbox-record-producer.d.cts +30 -0
- package/dist/runner/sandbox-record-producer.d.mts +30 -0
- package/dist/runner/sandbox-record-producer.d.ts +30 -0
- package/dist/runner/sandbox-record-producer.js +6 -0
- package/dist/runner/sandbox-record-producer.js.map +1 -0
- package/dist/runner/sandbox-reuse.cjs +57 -0
- package/dist/runner/sandbox-reuse.cjs.map +1 -0
- package/dist/runner/sandbox-reuse.d.cts +43 -0
- package/dist/runner/sandbox-reuse.d.mts +43 -0
- package/dist/runner/sandbox-reuse.d.ts +43 -0
- package/dist/runner/sandbox-reuse.js +8 -0
- package/dist/runner/sandbox-reuse.js.map +1 -0
- package/dist/runner/sandbox-selection.cjs +362 -0
- package/dist/runner/sandbox-selection.cjs.map +1 -0
- package/dist/runner/sandbox-selection.d.cts +87 -0
- package/dist/runner/sandbox-selection.d.mts +87 -0
- package/dist/runner/sandbox-selection.d.ts +17 -6
- package/dist/runner/sandbox-selection.js +22 -0
- package/dist/runner/sandbox-selection.js.map +1 -0
- package/dist/runner/session.cjs +535 -0
- package/dist/runner/session.cjs.map +1 -0
- package/dist/runner/session.d.cts +116 -0
- package/dist/runner/session.d.mts +116 -0
- package/dist/runner/session.d.ts +44 -24
- package/dist/runner/session.js +28 -0
- package/dist/runner/session.js.map +1 -0
- package/dist/runner/source-closure.cjs +51 -0
- package/dist/runner/source-closure.cjs.map +1 -0
- package/dist/runner/source-closure.d.cts +6 -0
- package/dist/runner/source-closure.d.mts +6 -0
- package/dist/runner/source-closure.d.ts +6 -0
- package/dist/runner/source-closure.js +6 -0
- package/dist/runner/source-closure.js.map +1 -0
- package/dist/runner/source-producer.cjs +417 -0
- package/dist/runner/source-producer.cjs.map +1 -0
- package/dist/runner/source-producer.d.cts +70 -0
- package/dist/runner/source-producer.d.mts +70 -0
- package/dist/runner/source-producer.d.ts +70 -0
- package/dist/runner/source-producer.js +10 -0
- package/dist/runner/source-producer.js.map +1 -0
- package/dist/runner/teardown-registry.cjs +112 -0
- package/dist/runner/teardown-registry.cjs.map +1 -0
- package/dist/runner/teardown-registry.d.cts +35 -0
- package/dist/runner/teardown-registry.d.mts +35 -0
- package/dist/runner/teardown-registry.d.ts +35 -0
- package/dist/runner/teardown-registry.js +20 -0
- package/dist/runner/teardown-registry.js.map +1 -0
- package/dist/runner/timeout.cjs +31 -0
- package/dist/runner/timeout.cjs.map +1 -0
- package/dist/runner/timeout.d.cts +30 -0
- package/dist/runner/timeout.d.mts +30 -0
- package/dist/runner/timeout.d.ts +30 -0
- package/dist/runner/timeout.js +8 -0
- package/dist/runner/timeout.js.map +1 -0
- package/dist/runner/timing.cjs +279 -0
- package/dist/runner/timing.cjs.map +1 -0
- package/dist/runner/timing.d.cts +97 -0
- package/dist/runner/timing.d.mts +97 -0
- package/dist/runner/timing.d.ts +2 -2
- package/dist/runner/timing.js +26 -0
- package/dist/runner/timing.js.map +1 -0
- package/dist/runner/types.cjs +135 -0
- package/dist/runner/types.cjs.map +1 -0
- package/dist/runner/types.d.cts +1703 -0
- package/dist/runner/types.d.mts +1703 -0
- package/dist/runner/types.d.ts +214 -166
- package/dist/runner/types.js +32 -109
- package/dist/runner/types.js.map +1 -0
- package/dist/sample/analysis.cjs +1068 -0
- package/dist/sample/analysis.cjs.map +1 -0
- package/dist/sample/analysis.d.cts +153 -0
- package/dist/sample/analysis.d.mts +153 -0
- package/dist/sample/analysis.d.ts +153 -0
- package/dist/sample/analysis.js +30 -0
- package/dist/sample/analysis.js.map +1 -0
- package/dist/sample/index.cjs +16 -0
- package/dist/sample/index.cjs.map +1 -0
- package/dist/sample/index.d.cts +2 -0
- package/dist/sample/index.d.mts +2 -0
- package/dist/sample/index.d.ts +2 -102
- package/dist/sample/index.js +28 -386
- package/dist/sample/index.js.map +1 -0
- package/dist/sandbox/backend.cjs +116 -0
- package/dist/sandbox/backend.cjs.map +1 -0
- package/dist/sandbox/backend.d.cts +58 -0
- package/dist/sandbox/backend.d.mts +58 -0
- package/dist/sandbox/backend.d.ts +9 -3
- package/dist/sandbox/backend.js +26 -0
- package/dist/sandbox/backend.js.map +1 -0
- package/dist/sandbox/build-coordinator.cjs +309 -0
- package/dist/sandbox/build-coordinator.cjs.map +1 -0
- package/dist/sandbox/build-coordinator.d.cts +111 -0
- package/dist/sandbox/build-coordinator.d.mts +111 -0
- package/dist/sandbox/build-coordinator.d.ts +4 -4
- package/dist/sandbox/build-coordinator.js +12 -0
- package/dist/sandbox/build-coordinator.js.map +1 -0
- package/dist/sandbox/case-types.cjs +3 -0
- package/dist/sandbox/case-types.cjs.map +1 -0
- package/dist/sandbox/case-types.d.cts +55 -0
- package/dist/sandbox/case-types.d.mts +55 -0
- package/dist/sandbox/case-types.d.ts +3 -3
- package/dist/sandbox/case-types.js +4 -0
- package/dist/sandbox/case-types.js.map +1 -0
- package/dist/sandbox/checkpoint.cjs +65 -0
- package/dist/sandbox/checkpoint.cjs.map +1 -0
- package/dist/sandbox/checkpoint.d.cts +7 -0
- package/dist/sandbox/checkpoint.d.mts +7 -0
- package/dist/sandbox/checkpoint.d.ts +7 -0
- package/dist/sandbox/checkpoint.js +8 -0
- package/dist/sandbox/checkpoint.js.map +1 -0
- package/dist/sandbox/cli-commands.cjs +535 -0
- package/dist/sandbox/cli-commands.cjs.map +1 -0
- package/dist/sandbox/cli-commands.d.cts +41 -0
- package/dist/sandbox/cli-commands.d.mts +41 -0
- package/dist/sandbox/cli-commands.d.ts +41 -0
- package/dist/sandbox/cli-commands.js +14 -0
- package/dist/sandbox/cli-commands.js.map +1 -0
- package/dist/sandbox/commands.cjs +281 -0
- package/dist/sandbox/commands.cjs.map +1 -0
- package/dist/sandbox/commands.d.cts +141 -0
- package/dist/sandbox/commands.d.mts +141 -0
- package/dist/sandbox/commands.d.ts +64 -3
- package/dist/sandbox/commands.js +20 -0
- package/dist/sandbox/commands.js.map +1 -0
- package/dist/sandbox/compose.cjs +1293 -0
- package/dist/sandbox/compose.cjs.map +1 -0
- package/dist/sandbox/compose.d.cts +215 -0
- package/dist/sandbox/compose.d.mts +215 -0
- package/dist/sandbox/compose.d.ts +32 -16
- package/dist/sandbox/compose.js +38 -0
- package/dist/sandbox/compose.js.map +1 -0
- package/dist/sandbox/content.cjs +153 -0
- package/dist/sandbox/content.cjs.map +1 -0
- package/dist/sandbox/content.d.cts +35 -0
- package/dist/sandbox/content.d.mts +35 -0
- package/dist/sandbox/content.js +10 -0
- package/dist/sandbox/content.js.map +1 -0
- package/dist/sandbox/deadline.cjs +44 -0
- package/dist/sandbox/deadline.cjs.map +1 -0
- package/dist/sandbox/deadline.d.cts +45 -0
- package/dist/sandbox/deadline.d.mts +45 -0
- package/dist/sandbox/deadline.d.ts +2 -2
- package/dist/sandbox/deadline.js +10 -0
- package/dist/sandbox/deadline.js.map +1 -0
- package/dist/sandbox/dind-supervisor.cjs +124 -0
- package/dist/sandbox/dind-supervisor.cjs.map +1 -0
- package/dist/sandbox/dind-supervisor.d.cts +12 -0
- package/dist/sandbox/dind-supervisor.d.mts +12 -0
- package/dist/sandbox/dind-supervisor.d.ts +12 -0
- package/dist/sandbox/dind-supervisor.js +14 -0
- package/dist/sandbox/dind-supervisor.js.map +1 -0
- package/dist/sandbox/docker-agent-image.cjs +36 -0
- package/dist/sandbox/docker-agent-image.cjs.map +1 -0
- package/dist/sandbox/docker-agent-image.d.cts +22 -0
- package/dist/sandbox/docker-agent-image.d.mts +22 -0
- package/dist/sandbox/docker-agent-image.d.ts +22 -0
- package/dist/sandbox/docker-agent-image.js +20 -0
- package/dist/sandbox/docker-agent-image.js.map +1 -0
- package/dist/sandbox/docker-profile/cli.cjs +193 -0
- package/dist/sandbox/docker-profile/cli.cjs.map +1 -0
- package/dist/sandbox/docker-profile/cli.d.cts +12 -0
- package/dist/sandbox/docker-profile/cli.d.mts +12 -0
- package/dist/sandbox/docker-profile/cli.d.ts +12 -0
- package/dist/sandbox/docker-profile/cli.js +12 -0
- package/dist/sandbox/docker-profile/cli.js.map +1 -0
- package/dist/sandbox/docker-profile/errors.cjs +16 -0
- package/dist/sandbox/docker-profile/errors.cjs.map +1 -0
- package/dist/sandbox/docker-profile/errors.d.cts +25 -0
- package/dist/sandbox/docker-profile/errors.d.mts +25 -0
- package/dist/sandbox/docker-profile/errors.d.ts +25 -0
- package/dist/sandbox/docker-profile/errors.js +8 -0
- package/dist/sandbox/docker-profile/errors.js.map +1 -0
- package/dist/sandbox/docker-profile/registry.cjs +377 -0
- package/dist/sandbox/docker-profile/registry.cjs.map +1 -0
- package/dist/sandbox/docker-profile/registry.d.cts +43 -0
- package/dist/sandbox/docker-profile/registry.d.mts +43 -0
- package/dist/sandbox/docker-profile/registry.d.ts +43 -0
- package/dist/sandbox/docker-profile/registry.js +18 -0
- package/dist/sandbox/docker-profile/registry.js.map +1 -0
- package/dist/sandbox/docker-profile/runtime.cjs +198 -0
- package/dist/sandbox/docker-profile/runtime.cjs.map +1 -0
- package/dist/sandbox/docker-profile/runtime.d.cts +36 -0
- package/dist/sandbox/docker-profile/runtime.d.mts +36 -0
- package/dist/sandbox/docker-profile/runtime.d.ts +36 -0
- package/dist/sandbox/docker-profile/runtime.js +20 -0
- package/dist/sandbox/docker-profile/runtime.js.map +1 -0
- package/dist/sandbox/docker-profile/schema.cjs +650 -0
- package/dist/sandbox/docker-profile/schema.cjs.map +1 -0
- package/dist/sandbox/docker-profile/schema.d.cts +129 -0
- package/dist/sandbox/docker-profile/schema.d.mts +129 -0
- package/dist/sandbox/docker-profile/schema.d.ts +129 -0
- package/dist/sandbox/docker-profile/schema.js +38 -0
- package/dist/sandbox/docker-profile/schema.js.map +1 -0
- package/dist/sandbox/docker-stream.cjs +153 -0
- package/dist/sandbox/docker-stream.cjs.map +1 -0
- package/dist/sandbox/docker-stream.d.cts +33 -0
- package/dist/sandbox/docker-stream.d.mts +33 -0
- package/dist/sandbox/docker-stream.js +14 -0
- package/dist/sandbox/docker-stream.js.map +1 -0
- package/dist/sandbox/docker.cjs +1161 -0
- package/dist/sandbox/docker.cjs.map +1 -0
- package/dist/sandbox/docker.d.cts +288 -0
- package/dist/sandbox/docker.d.mts +288 -0
- package/dist/sandbox/docker.d.ts +84 -12
- package/dist/sandbox/docker.js +20 -0
- package/dist/sandbox/docker.js.map +1 -0
- package/dist/sandbox/dockerfile-agent-cache.cjs +104 -0
- package/dist/sandbox/dockerfile-agent-cache.cjs.map +1 -0
- package/dist/sandbox/dockerfile-agent-cache.d.cts +45 -0
- package/dist/sandbox/dockerfile-agent-cache.d.mts +45 -0
- package/dist/sandbox/dockerfile-agent-cache.d.ts +8 -7
- package/dist/sandbox/dockerfile-agent-cache.js +14 -0
- package/dist/sandbox/dockerfile-agent-cache.js.map +1 -0
- package/dist/sandbox/dockerfile-build.cjs +256 -0
- package/dist/sandbox/dockerfile-build.cjs.map +1 -0
- package/dist/sandbox/dockerfile-build.d.cts +59 -0
- package/dist/sandbox/dockerfile-build.d.mts +59 -0
- package/dist/sandbox/dockerfile-build.d.ts +21 -8
- package/dist/sandbox/dockerfile-build.js +16 -0
- package/dist/sandbox/dockerfile-build.js.map +1 -0
- package/dist/sandbox/dockerfile-identity.cjs +124 -0
- package/dist/sandbox/dockerfile-identity.cjs.map +1 -0
- package/dist/sandbox/dockerfile-identity.d.cts +37 -0
- package/dist/sandbox/dockerfile-identity.d.mts +37 -0
- package/dist/sandbox/dockerfile-identity.d.ts +13 -3
- package/dist/sandbox/dockerfile-identity.js +12 -0
- package/dist/sandbox/dockerfile-identity.js.map +1 -0
- package/dist/sandbox/download-directory.cjs +26 -0
- package/dist/sandbox/download-directory.cjs.map +1 -0
- package/dist/sandbox/download-directory.d.cts +9 -0
- package/dist/sandbox/download-directory.d.mts +9 -0
- package/dist/sandbox/download-directory.d.ts +1 -1
- package/dist/sandbox/download-directory.js +6 -0
- package/dist/sandbox/download-directory.js.map +1 -0
- package/dist/sandbox/e2b-agent-template.cjs +140 -0
- package/dist/sandbox/e2b-agent-template.cjs.map +1 -0
- package/dist/sandbox/e2b-agent-template.d.cts +65 -0
- package/dist/sandbox/e2b-agent-template.d.mts +65 -0
- package/dist/sandbox/e2b-agent-template.d.ts +65 -0
- package/dist/sandbox/e2b-agent-template.js +24 -0
- package/dist/sandbox/e2b-agent-template.js.map +1 -0
- package/dist/sandbox/e2b-agent-template.mjs +24 -0
- package/dist/sandbox/e2b-agent-template.mjs.map +1 -0
- package/dist/sandbox/e2b.cjs +664 -0
- package/dist/sandbox/e2b.cjs.map +1 -0
- package/dist/sandbox/e2b.d.cts +124 -0
- package/dist/sandbox/e2b.d.mts +124 -0
- package/dist/sandbox/e2b.d.ts +9 -9
- package/dist/sandbox/e2b.js +10 -0
- package/dist/sandbox/e2b.js.map +1 -0
- package/dist/sandbox/errors.cjs +191 -0
- package/dist/sandbox/errors.cjs.map +1 -0
- package/dist/sandbox/errors.d.cts +60 -0
- package/dist/sandbox/errors.d.mts +60 -0
- package/dist/sandbox/errors.d.ts +1 -1
- package/dist/sandbox/errors.js +20 -0
- package/dist/sandbox/errors.js.map +1 -0
- package/dist/sandbox/identity.cjs +140 -0
- package/dist/sandbox/identity.cjs.map +1 -0
- package/dist/sandbox/identity.d.cts +97 -0
- package/dist/sandbox/identity.d.mts +97 -0
- package/dist/sandbox/identity.d.ts +1 -1
- package/dist/sandbox/identity.js +26 -0
- package/dist/sandbox/identity.js.map +1 -0
- package/dist/sandbox/index.cjs +93 -0
- package/dist/sandbox/index.cjs.map +1 -0
- package/dist/sandbox/index.d.cts +28 -0
- package/dist/sandbox/index.d.mts +28 -0
- package/dist/sandbox/index.d.ts +28 -0
- package/dist/sandbox/index.js +144 -0
- package/dist/sandbox/index.js.map +1 -0
- package/dist/sandbox/index.mjs +144 -0
- package/dist/sandbox/index.mjs.map +1 -0
- package/dist/sandbox/io-retry.cjs +29 -0
- package/dist/sandbox/io-retry.cjs.map +1 -0
- package/dist/sandbox/io-retry.d.cts +17 -0
- package/dist/sandbox/io-retry.d.mts +17 -0
- package/dist/sandbox/io-retry.d.ts +1 -1
- package/dist/sandbox/io-retry.js +6 -0
- package/dist/sandbox/io-retry.js.map +1 -0
- package/dist/sandbox/keep-registry.cjs +269 -0
- package/dist/sandbox/keep-registry.cjs.map +1 -0
- package/dist/sandbox/keep-registry.d.cts +78 -0
- package/dist/sandbox/keep-registry.d.mts +78 -0
- package/dist/sandbox/keep-registry.d.ts +78 -0
- package/dist/sandbox/keep-registry.js +26 -0
- package/dist/sandbox/keep-registry.js.map +1 -0
- package/dist/sandbox/keep.cjs +448 -0
- package/dist/sandbox/keep.cjs.map +1 -0
- package/dist/sandbox/keep.d.cts +64 -0
- package/dist/sandbox/keep.d.mts +64 -0
- package/dist/sandbox/keep.d.ts +64 -0
- package/dist/sandbox/keep.js +28 -0
- package/dist/sandbox/keep.js.map +1 -0
- package/dist/sandbox/layer.cjs +1639 -0
- package/dist/sandbox/layer.cjs.map +1 -0
- package/dist/sandbox/layer.d.cts +565 -0
- package/dist/sandbox/layer.d.mts +565 -0
- package/dist/sandbox/layer.d.ts +179 -32
- package/dist/sandbox/layer.js +42 -0
- package/dist/sandbox/layer.js.map +1 -0
- package/dist/sandbox/ledger-paths.cjs +22 -0
- package/dist/sandbox/ledger-paths.cjs.map +1 -0
- package/dist/sandbox/ledger-paths.d.cts +14 -0
- package/dist/sandbox/ledger-paths.d.mts +14 -0
- package/dist/sandbox/ledger-paths.js +12 -0
- package/dist/sandbox/ledger-paths.js.map +1 -0
- package/dist/sandbox/link.cjs +395 -0
- package/dist/sandbox/link.cjs.map +1 -0
- package/dist/sandbox/link.d.cts +160 -0
- package/dist/sandbox/link.d.mts +160 -0
- package/dist/sandbox/link.d.ts +25 -8
- package/dist/sandbox/link.js +18 -0
- package/dist/sandbox/link.js.map +1 -0
- package/dist/sandbox/local-files.cjs +31 -0
- package/dist/sandbox/local-files.cjs.map +1 -0
- package/dist/sandbox/local-files.d.cts +6 -0
- package/dist/sandbox/local-files.d.mts +6 -0
- package/dist/sandbox/local-files.js +6 -0
- package/dist/sandbox/local-files.js.map +1 -0
- package/dist/sandbox/local.cjs +297 -0
- package/dist/sandbox/local.cjs.map +1 -0
- package/dist/sandbox/local.d.cts +78 -0
- package/dist/sandbox/local.d.mts +78 -0
- package/dist/sandbox/local.d.ts +7 -7
- package/dist/sandbox/local.js +6 -0
- package/dist/sandbox/local.js.map +1 -0
- package/dist/sandbox/operations.cjs +160 -0
- package/dist/sandbox/operations.cjs.map +1 -0
- package/dist/sandbox/operations.d.cts +10 -0
- package/dist/sandbox/operations.d.mts +10 -0
- package/dist/sandbox/operations.d.ts +2 -2
- package/dist/sandbox/operations.js +10 -0
- package/dist/sandbox/operations.js.map +1 -0
- package/dist/sandbox/orphans.cjs +199 -0
- package/dist/sandbox/orphans.cjs.map +1 -0
- package/dist/sandbox/orphans.d.cts +45 -0
- package/dist/sandbox/orphans.d.mts +45 -0
- package/dist/sandbox/orphans.d.ts +45 -0
- package/dist/sandbox/orphans.js +10 -0
- package/dist/sandbox/orphans.js.map +1 -0
- package/dist/sandbox/paths.cjs +102 -0
- package/dist/sandbox/paths.cjs.map +1 -0
- package/dist/sandbox/paths.d.cts +11 -0
- package/dist/sandbox/paths.d.mts +11 -0
- package/dist/sandbox/paths.d.ts +2 -2
- package/dist/sandbox/paths.js +12 -0
- package/dist/sandbox/paths.js.map +1 -0
- package/dist/sandbox/plan.cjs +223 -0
- package/dist/sandbox/plan.cjs.map +1 -0
- package/dist/sandbox/plan.d.cts +88 -0
- package/dist/sandbox/plan.d.mts +88 -0
- package/dist/sandbox/plan.d.ts +4 -3
- package/dist/sandbox/plan.js +20 -0
- package/dist/sandbox/plan.js.map +1 -0
- package/dist/sandbox/prepare-commands.cjs +280 -0
- package/dist/sandbox/prepare-commands.cjs.map +1 -0
- package/dist/sandbox/prepare-commands.d.cts +29 -0
- package/dist/sandbox/prepare-commands.d.mts +29 -0
- package/dist/sandbox/prepare-commands.d.ts +29 -0
- package/dist/sandbox/prepare-commands.js +8 -0
- package/dist/sandbox/prepare-commands.js.map +1 -0
- package/dist/sandbox/record/attachment.cjs +72 -0
- package/dist/sandbox/record/attachment.cjs.map +1 -0
- package/dist/sandbox/record/attachment.d.cts +30 -0
- package/dist/sandbox/record/attachment.d.mts +30 -0
- package/dist/sandbox/record/attachment.d.ts +30 -0
- package/dist/sandbox/record/attachment.js +10 -0
- package/dist/sandbox/record/attachment.js.map +1 -0
- package/dist/sandbox/record/codec.cjs +36 -0
- package/dist/sandbox/record/codec.cjs.map +1 -0
- package/dist/sandbox/record/codec.d.cts +30 -0
- package/dist/sandbox/record/codec.d.mts +30 -0
- package/dist/sandbox/record/codec.d.ts +30 -0
- package/dist/sandbox/record/codec.js +10 -0
- package/dist/sandbox/record/codec.js.map +1 -0
- package/dist/sandbox/record/model.cjs +20 -0
- package/dist/sandbox/record/model.cjs.map +1 -0
- package/dist/sandbox/record/model.d.cts +33 -0
- package/dist/sandbox/record/model.d.mts +33 -0
- package/dist/sandbox/record/model.d.ts +33 -0
- package/dist/sandbox/record/model.js +10 -0
- package/dist/sandbox/record/model.js.map +1 -0
- package/dist/sandbox/record/projector.cjs +29 -0
- package/dist/sandbox/record/projector.cjs.map +1 -0
- package/dist/sandbox/record/projector.d.cts +18 -0
- package/dist/sandbox/record/projector.d.mts +18 -0
- package/dist/sandbox/record/projector.d.ts +18 -0
- package/dist/sandbox/record/projector.js +6 -0
- package/dist/sandbox/record/projector.js.map +1 -0
- package/dist/sandbox/redaction.cjs +59 -0
- package/dist/sandbox/redaction.cjs.map +1 -0
- package/dist/sandbox/redaction.d.cts +19 -0
- package/dist/sandbox/redaction.d.mts +19 -0
- package/dist/sandbox/redaction.js +14 -0
- package/dist/sandbox/redaction.js.map +1 -0
- package/dist/sandbox/registry.cjs +76 -0
- package/dist/sandbox/registry.cjs.map +1 -0
- package/dist/sandbox/registry.d.cts +16 -0
- package/dist/sandbox/registry.d.mts +16 -0
- package/dist/sandbox/registry.d.ts +4 -3
- package/dist/sandbox/registry.js +14 -0
- package/dist/sandbox/registry.js.map +1 -0
- package/dist/sandbox/retry.cjs +82 -0
- package/dist/sandbox/retry.cjs.map +1 -0
- package/dist/sandbox/retry.d.cts +20 -0
- package/dist/sandbox/retry.d.mts +20 -0
- package/dist/sandbox/retry.d.ts +2 -2
- package/dist/sandbox/retry.js +6 -0
- package/dist/sandbox/retry.js.map +1 -0
- package/dist/sandbox/run-identity.cjs +109 -0
- package/dist/sandbox/run-identity.cjs.map +1 -0
- package/dist/sandbox/run-identity.d.cts +38 -0
- package/dist/sandbox/run-identity.d.mts +38 -0
- package/dist/sandbox/run-identity.js +36 -0
- package/dist/sandbox/run-identity.js.map +1 -0
- package/dist/sandbox/runtime.cjs +873 -0
- package/dist/sandbox/runtime.cjs.map +1 -0
- package/dist/sandbox/runtime.d.cts +116 -0
- package/dist/sandbox/runtime.d.mts +116 -0
- package/dist/sandbox/runtime.d.ts +16 -16
- package/dist/sandbox/runtime.js +40 -0
- package/dist/sandbox/runtime.js.map +1 -0
- package/dist/sandbox/shell.cjs +22 -0
- package/dist/sandbox/shell.cjs.map +1 -0
- package/dist/sandbox/shell.d.cts +11 -0
- package/dist/sandbox/shell.d.mts +11 -0
- package/dist/sandbox/shell.js +8 -0
- package/dist/sandbox/shell.js.map +1 -0
- package/dist/sandbox/transfer-errors.cjs +116 -0
- package/dist/sandbox/transfer-errors.cjs.map +1 -0
- package/dist/sandbox/transfer-errors.d.cts +25 -0
- package/dist/sandbox/transfer-errors.d.mts +25 -0
- package/dist/sandbox/transfer-errors.js +14 -0
- package/dist/sandbox/transfer-errors.js.map +1 -0
- package/dist/sandbox/types.cjs +3 -0
- package/dist/sandbox/types.cjs.map +1 -0
- package/dist/sandbox/types.d.cts +177 -0
- package/dist/sandbox/types.d.mts +177 -0
- package/dist/sandbox/types.d.ts +15 -10
- package/dist/sandbox/types.js +4 -3
- package/dist/sandbox/types.js.map +1 -0
- package/dist/sandbox/vercel.cjs +335 -0
- package/dist/sandbox/vercel.cjs.map +1 -0
- package/dist/sandbox/vercel.d.cts +97 -0
- package/dist/sandbox/vercel.d.mts +97 -0
- package/dist/sandbox/vercel.d.ts +9 -9
- package/dist/sandbox/vercel.js +8 -0
- package/dist/sandbox/vercel.js.map +1 -0
- package/dist/shared/aggregate.cjs +97 -0
- package/dist/shared/aggregate.cjs.map +1 -0
- package/dist/shared/aggregate.d.cts +45 -0
- package/dist/shared/aggregate.d.mts +45 -0
- package/dist/shared/aggregate.d.ts +4 -4
- package/dist/shared/aggregate.js +24 -87
- package/dist/shared/aggregate.js.map +1 -0
- package/dist/shared/entry-file-store.cjs +126 -0
- package/dist/shared/entry-file-store.cjs.map +1 -0
- package/dist/shared/entry-file-store.d.cts +46 -0
- package/dist/shared/entry-file-store.d.mts +46 -0
- package/dist/shared/entry-file-store.d.ts +9 -6
- package/dist/shared/entry-file-store.js +18 -0
- package/dist/shared/entry-file-store.js.map +1 -0
- package/dist/shared/external-cause.cjs +278 -0
- package/dist/shared/external-cause.cjs.map +1 -0
- package/dist/shared/external-cause.d.cts +51 -0
- package/dist/shared/external-cause.d.mts +51 -0
- package/dist/shared/external-cause.d.ts +1 -1
- package/dist/shared/external-cause.js +12 -0
- package/dist/shared/external-cause.js.map +1 -0
- package/dist/shared/facts.cjs +24 -0
- package/dist/shared/facts.cjs.map +1 -0
- package/dist/shared/facts.d.cts +7 -0
- package/dist/shared/facts.d.mts +7 -0
- package/dist/shared/facts.d.ts +7 -0
- package/dist/shared/facts.js +6 -0
- package/dist/shared/facts.js.map +1 -0
- package/dist/shared/failure-class.cjs +166 -0
- package/dist/shared/failure-class.cjs.map +1 -0
- package/dist/shared/failure-class.d.cts +92 -0
- package/dist/shared/failure-class.d.mts +92 -0
- package/dist/shared/failure-class.d.ts +2 -2
- package/dist/shared/failure-class.js +20 -0
- package/dist/shared/failure-class.js.map +1 -0
- package/dist/shared/format.cjs +36 -0
- package/dist/shared/format.cjs.map +1 -0
- package/dist/shared/format.d.cts +3 -0
- package/dist/shared/format.d.mts +3 -0
- package/dist/shared/format.d.ts +3 -0
- package/dist/shared/format.js +10 -0
- package/dist/shared/format.js.map +1 -0
- package/dist/shared/json-match.cjs +44 -0
- package/dist/shared/json-match.cjs.map +1 -0
- package/dist/shared/json-match.d.cts +3 -0
- package/dist/shared/json-match.d.mts +3 -0
- package/dist/shared/json-match.d.ts +3 -0
- package/dist/shared/json-match.js +6 -0
- package/dist/shared/json-match.js.map +1 -0
- package/dist/shared/json-value.cjs +45 -0
- package/dist/shared/json-value.cjs.map +1 -0
- package/dist/shared/json-value.d.cts +11 -0
- package/dist/shared/json-value.d.mts +11 -0
- package/dist/shared/json-value.d.ts +11 -0
- package/dist/shared/json-value.js +8 -0
- package/dist/shared/json-value.js.map +1 -0
- package/dist/shared/turn-label.cjs +19 -0
- package/dist/shared/turn-label.cjs.map +1 -0
- package/dist/shared/turn-label.d.cts +9 -0
- package/dist/shared/turn-label.d.mts +9 -0
- package/dist/shared/turn-label.js +8 -14
- package/dist/shared/turn-label.js.map +1 -0
- package/dist/shared/types.cjs +3 -0
- package/dist/shared/types.cjs.map +1 -0
- package/dist/shared/types.d.cts +80 -0
- package/dist/shared/types.d.mts +80 -0
- package/dist/shared/types.d.ts +0 -2
- package/dist/shared/types.js +4 -4
- package/dist/shared/types.js.map +1 -0
- package/dist/shared/verdict.cjs +70 -0
- package/dist/shared/verdict.cjs.map +1 -0
- package/dist/shared/verdict.d.cts +36 -0
- package/dist/shared/verdict.d.mts +36 -0
- package/dist/shared/verdict.d.ts +21 -32
- package/dist/shared/verdict.js +14 -53
- package/dist/shared/verdict.js.map +1 -0
- package/dist/show/command.cjs +20 -0
- package/dist/show/command.cjs.map +1 -0
- package/dist/show/command.d.cts +13 -0
- package/dist/show/command.d.mts +13 -0
- package/dist/show/command.d.ts +13 -0
- package/dist/show/command.js +6 -0
- package/dist/show/command.js.map +1 -0
- package/dist/show/json.cjs +8 -0
- package/dist/show/json.cjs.map +1 -0
- package/dist/show/json.d.cts +2 -0
- package/dist/show/json.d.mts +2 -0
- package/dist/show/json.d.ts +2 -0
- package/dist/show/json.js +8 -0
- package/dist/show/json.js.map +1 -0
- package/dist/show/render.cjs +7 -0
- package/dist/show/render.cjs.map +1 -0
- package/dist/show/render.d.cts +2 -0
- package/dist/show/render.d.mts +2 -0
- package/dist/show/render.d.ts +2 -0
- package/dist/show/render.js +6 -0
- package/dist/show/render.js.map +1 -0
- package/dist/source-loc.cjs +137 -0
- package/dist/source-loc.cjs.map +1 -0
- package/dist/source-loc.d.cts +22 -0
- package/dist/source-loc.d.mts +22 -0
- package/dist/source-loc.d.ts +22 -0
- package/dist/source-loc.js +10 -0
- package/dist/source-loc.js.map +1 -0
- package/dist/sources/assemble.cjs +634 -0
- package/dist/sources/assemble.cjs.map +1 -0
- package/dist/sources/assemble.d.cts +6 -0
- package/dist/sources/assemble.d.mts +6 -0
- package/dist/sources/assemble.d.ts +6 -0
- package/dist/sources/assemble.js +6 -0
- package/dist/sources/assemble.js.map +1 -0
- package/dist/sources/attachment.cjs +272 -0
- package/dist/sources/attachment.cjs.map +1 -0
- package/dist/sources/attachment.d.cts +331 -0
- package/dist/sources/attachment.d.mts +331 -0
- package/dist/sources/attachment.d.ts +331 -0
- package/dist/sources/attachment.js +22 -0
- package/dist/sources/attachment.js.map +1 -0
- package/dist/sources/codec.cjs +220 -0
- package/dist/sources/codec.cjs.map +1 -0
- package/dist/sources/codec.d.cts +408 -0
- package/dist/sources/codec.d.mts +408 -0
- package/dist/sources/codec.d.ts +408 -0
- package/dist/sources/codec.js +56 -0
- package/dist/sources/codec.js.map +1 -0
- package/dist/sources/identity.cjs +10 -0
- package/dist/sources/identity.cjs.map +1 -0
- package/dist/sources/identity.d.cts +10 -0
- package/dist/sources/identity.d.mts +10 -0
- package/dist/sources/identity.d.ts +10 -0
- package/dist/sources/identity.js +10 -0
- package/dist/sources/identity.js.map +1 -0
- package/dist/sources/index.cjs +24 -0
- package/dist/sources/index.cjs.map +1 -0
- package/dist/sources/index.d.cts +7 -0
- package/dist/sources/index.d.mts +7 -0
- package/dist/sources/index.d.ts +7 -0
- package/dist/sources/index.js +90 -0
- package/dist/sources/index.js.map +1 -0
- package/dist/sources/model.cjs +6 -0
- package/dist/sources/model.cjs.map +1 -0
- package/dist/sources/model.d.cts +92 -0
- package/dist/sources/model.d.mts +92 -0
- package/dist/sources/model.d.ts +92 -0
- package/dist/sources/model.js +6 -0
- package/dist/sources/model.js.map +1 -0
- package/dist/sources/projection-model.cjs +3 -0
- package/dist/sources/projection-model.cjs.map +1 -0
- package/dist/sources/projection-model.d.cts +327 -0
- package/dist/sources/projection-model.d.mts +327 -0
- package/dist/sources/projection-model.d.ts +327 -0
- package/dist/sources/projection-model.js +4 -0
- package/dist/sources/projection-model.js.map +1 -0
- package/dist/sources/projector.cjs +282 -0
- package/dist/sources/projector.cjs.map +1 -0
- package/dist/sources/projector.d.cts +8 -0
- package/dist/sources/projector.d.mts +8 -0
- package/dist/sources/projector.d.ts +8 -0
- package/dist/sources/projector.js +10 -0
- package/dist/sources/projector.js.map +1 -0
- package/dist/tty-line.cjs +17 -0
- package/dist/tty-line.cjs.map +1 -0
- package/dist/tty-line.d.cts +2 -0
- package/dist/tty-line.d.mts +2 -0
- package/dist/tty-line.js +6 -0
- package/dist/tty-line.js.map +1 -0
- package/dist/types.cjs +38 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +9 -0
- package/dist/types.d.mts +9 -0
- package/dist/types.d.ts +9 -9
- package/dist/types.js +32 -21
- package/dist/types.js.map +1 -0
- package/dist/util.cjs +193 -0
- package/dist/util.cjs.map +1 -0
- package/dist/util.d.cts +46 -0
- package/dist/util.d.mts +46 -0
- package/dist/util.js +22 -132
- package/dist/util.js.map +1 -0
- package/dist/vendor/remark/remark-gfm.cjs +3484 -0
- package/dist/vendor/remark/remark-gfm.cjs.map +7 -0
- package/dist/vendor/remark/remark-parse.cjs +6975 -0
- package/dist/vendor/remark/remark-parse.cjs.map +7 -0
- package/dist/vendor/remark/remark.cjs +10151 -0
- package/dist/vendor/remark/remark.cjs.map +7 -0
- package/dist/view/data.cjs +3 -0
- package/dist/view/data.cjs.map +1 -0
- package/dist/view/data.d.cts +8 -0
- package/dist/view/data.d.mts +8 -0
- package/dist/view/data.d.ts +8 -0
- package/dist/view/data.js +4 -0
- package/dist/view/data.js.map +1 -0
- package/dist/view/index.cjs +25 -0
- package/dist/view/index.cjs.map +1 -0
- package/dist/view/index.d.cts +9 -0
- package/dist/view/index.d.mts +9 -0
- package/dist/view/index.d.ts +9 -0
- package/dist/view/index.js +30 -0
- package/dist/view/index.js.map +1 -0
- package/dist/view/server.cjs +658 -0
- package/dist/view/server.cjs.map +1 -0
- package/dist/view/server.d.cts +49 -0
- package/dist/view/server.d.mts +49 -0
- package/dist/view/server.d.ts +49 -0
- package/dist/view/server.js +6 -0
- package/dist/view/server.js.map +1 -0
- package/dist/view/shared/types.cjs +3 -0
- package/dist/view/shared/types.cjs.map +1 -0
- package/dist/view/shared/types.d.cts +51 -0
- package/dist/view/shared/types.d.mts +51 -0
- package/dist/view/shared/types.d.ts +51 -0
- package/dist/view/shared/types.js +4 -0
- package/dist/view/shared/types.js.map +1 -0
- package/dist/view/site.cjs +40 -0
- package/dist/view/site.cjs.map +1 -0
- package/dist/view/site.d.cts +26 -0
- package/dist/view/site.d.mts +26 -0
- package/dist/view/site.d.ts +26 -0
- package/dist/view/site.js +10 -0
- package/dist/view/site.js.map +1 -0
- package/dist/view/styles.css +170 -0
- package/docs-site/zh/README.md +6 -6
- package/docs-site/zh/examples/ai-agent-application.mdx +3 -3
- package/docs-site/zh/examples/coding-agent-extensions.mdx +3 -3
- package/docs-site/zh/examples/index.mdx +10 -3
- package/docs-site/zh/examples/integrations/ai-sdk-v7.mdx +10 -9
- package/docs-site/zh/examples/integrations/claude-sdk.mdx +11 -9
- package/docs-site/zh/examples/integrations/codex-sdk.mdx +14 -13
- package/docs-site/zh/examples/integrations/langgraph.mdx +13 -11
- package/docs-site/zh/examples/integrations/pi-sdk.mdx +11 -9
- package/docs-site/zh/explanation/adapter.mdx +27 -27
- package/docs-site/zh/explanation/assert.mdx +51 -198
- package/docs-site/zh/explanation/drive.mdx +14 -12
- package/docs-site/zh/explanation/evals.mdx +16 -12
- package/docs-site/zh/explanation/experiment.mdx +7 -3
- package/docs-site/zh/explanation/hitl.mdx +7 -7
- package/docs-site/zh/explanation/judge.mdx +67 -96
- package/docs-site/zh/explanation/overview.mdx +59 -100
- package/docs-site/zh/explanation/record.mdx +60 -0
- package/docs-site/zh/explanation/runner.mdx +47 -123
- package/docs-site/zh/explanation/tier.mdx +2 -2
- package/docs-site/zh/index.mdx +15 -13
- package/docs-site/zh/introduction.mdx +15 -13
- package/docs-site/zh/reference/builtin-agents.mdx +60 -37
- package/docs-site/zh/reference/capabilities.mdx +7 -7
- package/docs-site/zh/reference/cli.mdx +146 -80
- package/docs-site/zh/reference/define-agent.mdx +29 -20
- package/docs-site/zh/reference/define-config.mdx +6 -15
- package/docs-site/zh/reference/define-eval.mdx +78 -326
- package/docs-site/zh/reference/events.mdx +70 -21
- package/docs-site/zh/reference/expect.mdx +148 -117
- package/docs-site/zh/reference/official-adapters.mdx +33 -22
- package/docs-site/zh/reference/report-components.mdx +78 -362
- package/docs-site/zh/reference/results-data.mdx +53 -270
- package/docs-site/zh/troubleshooting/debug-sandbox.mdx +8 -6
- package/docs-site/zh/troubleshooting/debugging.mdx +48 -218
- package/docs-site/zh/troubleshooting/recover-after-kill.mdx +3 -3
- package/docs-site/zh/tutorials/agent-feedback-loop.mdx +48 -290
- package/docs-site/zh/tutorials/agent-onboarding.mdx +22 -20
- package/docs-site/zh/tutorials/authoring.mdx +9 -9
- package/docs-site/zh/tutorials/ci-integration.mdx +40 -117
- package/docs-site/zh/tutorials/concurrency.mdx +44 -56
- package/docs-site/zh/tutorials/configuration.mdx +10 -14
- package/docs-site/zh/tutorials/connect-otel.mdx +21 -21
- package/docs-site/zh/tutorials/connect-your-agent.mdx +29 -24
- package/docs-site/zh/tutorials/criteria-files.mdx +2 -2
- package/docs-site/zh/tutorials/custom-reports.mdx +69 -343
- package/docs-site/zh/tutorials/dataset-fanout.mdx +1 -1
- package/docs-site/zh/tutorials/deploy-report-site.mdx +34 -136
- package/docs-site/zh/tutorials/docker-in-docker.mdx +295 -0
- package/docs-site/zh/tutorials/eval-groups.mdx +207 -0
- package/docs-site/zh/tutorials/evaluation-kinds.mdx +67 -103
- package/docs-site/zh/tutorials/experiments.mdx +4 -4
- package/docs-site/zh/tutorials/fixtures.mdx +3 -3
- package/docs-site/zh/tutorials/handle-execution-failures.mdx +114 -0
- package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +102 -0
- package/docs-site/zh/tutorials/plugins.mdx +110 -0
- package/docs-site/zh/tutorials/publish-report.mdx +40 -121
- package/docs-site/zh/tutorials/quickstart.mdx +15 -9
- package/docs-site/zh/tutorials/reporters.mdx +40 -90
- package/docs-site/zh/tutorials/rerun-and-cache.mdx +44 -225
- package/docs-site/zh/tutorials/sandbox-agent.mdx +47 -40
- package/docs-site/zh/tutorials/sandbox-providers.mdx +49 -39
- package/docs-site/zh/tutorials/sandbox-reuse.mdx +37 -15
- package/docs-site/zh/tutorials/theming.mdx +21 -156
- package/docs-site/zh/tutorials/viewing-results.mdx +73 -666
- package/docs-site/zh/tutorials/write-experiment.mdx +22 -21
- package/docs-site/zh/tutorials/write-send.mdx +38 -35
- package/package.json +127 -65
- package/dist/context/deferred-file-content.d.ts +0 -15
- package/dist/i18n/zh-CN.d.ts +0 -367
- package/dist/i18n/zh-CN.js +0 -458
- package/dist/record/annotated-source.d.ts +0 -126
- package/dist/record/annotated-source.js +0 -511
- package/dist/record/attempt-evidence.d.ts +0 -84
- package/dist/record/attempt-evidence.js +0 -108
- package/dist/record/attempt-source.d.ts +0 -4
- package/dist/record/attempt-source.js +0 -28
- package/dist/record/format.d.ts +0 -39
- package/dist/record/format.js +0 -75
- package/dist/record/open.d.ts +0 -62
- package/dist/record/open.js +0 -683
- package/dist/record/types.d.ts +0 -297
- package/dist/record/types.js +0 -9
- package/dist/report/assets/colors.d.ts +0 -22
- package/dist/report/assets/colors.js +0 -61
- package/dist/report/assets/series-encoding.d.ts +0 -36
- package/dist/report/assets/series-encoding.js +0 -104
- package/dist/report/built-in/failures.d.ts +0 -1
- package/dist/report/built-in/failures.js +0 -18
- package/dist/report/built-in/result-components.d.ts +0 -10
- package/dist/report/built-in/result-components.js +0 -199
- package/dist/report/built-in/stability.d.ts +0 -1
- package/dist/report/built-in/stability.js +0 -20
- package/dist/report/built-in/standard.d.ts +0 -50
- package/dist/report/built-in/standard.js +0 -93
- package/dist/report/components/attempt-detail/compute.d.ts +0 -51
- package/dist/report/components/attempt-detail/compute.js +0 -512
- package/dist/report/components/attempt-detail/content.d.ts +0 -28
- package/dist/report/components/attempt-detail/content.js +0 -575
- package/dist/report/components/attempt-detail/index.d.ts +0 -15
- package/dist/report/components/attempt-detail/index.js +0 -154
- package/dist/report/components/attempt-detail/validate.d.ts +0 -11
- package/dist/report/components/attempt-detail/validate.js +0 -417
- package/dist/report/components/cell.d.ts +0 -12
- package/dist/report/components/cell.js +0 -10
- package/dist/report/components/entity-lists/compute.d.ts +0 -35
- package/dist/report/components/entity-lists/compute.js +0 -333
- package/dist/report/components/entity-lists/content.d.ts +0 -7
- package/dist/report/components/entity-lists/content.js +0 -483
- package/dist/report/components/entity-lists/index.d.ts +0 -48
- package/dist/report/components/entity-lists/index.js +0 -81
- package/dist/report/components/entity-lists/validate.d.ts +0 -4
- package/dist/report/components/entity-lists/validate.js +0 -155
- package/dist/report/components/experiment-detail/compute.d.ts +0 -7
- package/dist/report/components/experiment-detail/compute.js +0 -32
- package/dist/report/components/experiment-detail/index.d.ts +0 -9
- package/dist/report/components/experiment-detail/index.js +0 -41
- package/dist/report/components/fixtures.d.ts +0 -10
- package/dist/report/components/fixtures.js +0 -341
- package/dist/report/components/shared-compute.d.ts +0 -23
- package/dist/report/components/shared-compute.js +0 -48
- package/dist/report/components/shared-faces.d.ts +0 -8
- package/dist/report/components/shared-faces.js +0 -21
- package/dist/report/components/shared.d.ts +0 -52
- package/dist/report/components/shared.js +0 -95
- package/dist/report/components/site-components/HeroCard.d.ts +0 -14
- package/dist/report/components/site-components/HeroCard.js +0 -35
- package/dist/report/components/site-components/PoweredBy.d.ts +0 -5
- package/dist/report/components/site-components/PoweredBy.js +0 -7
- package/dist/report/components/site-components/compute.d.ts +0 -34
- package/dist/report/components/site-components/compute.js +0 -144
- package/dist/report/components/site-components/content.d.ts +0 -1
- package/dist/report/components/site-components/content.js +0 -2
- package/dist/report/components/site-components/faces.d.ts +0 -9
- package/dist/report/components/site-components/faces.js +0 -34
- package/dist/report/components/site-components/hero-types.d.ts +0 -17
- package/dist/report/components/site-components/index.d.ts +0 -34
- package/dist/report/components/site-components/index.js +0 -55
- package/dist/report/components/site-components/projections.d.ts +0 -12
- package/dist/report/components/site-components/projections.js +0 -67
- package/dist/report/components/site-components/scope-warnings.d.ts +0 -44
- package/dist/report/components/site-components/scope-warnings.js +0 -115
- package/dist/report/components/site-components/snapshot-diagnostics.d.ts +0 -18
- package/dist/report/components/site-components/snapshot-diagnostics.js +0 -42
- package/dist/report/components/site-components/validators.d.ts +0 -6
- package/dist/report/components/site-components/validators.js +0 -115
- package/dist/report/components/summaries/compute.d.ts +0 -7
- package/dist/report/components/summaries/compute.js +0 -60
- package/dist/report/components/summaries/index.d.ts +0 -29
- package/dist/report/components/summaries/index.js +0 -122
- package/dist/report/components/summaries/stability-overview.d.ts +0 -13
- package/dist/report/components/summaries/stability-overview.js +0 -73
- package/dist/report/components/summaries/validate.d.ts +0 -2
- package/dist/report/components/summaries/validate.js +0 -29
- package/dist/report/definition/cell.d.ts +0 -118
- package/dist/report/definition/cell.js +0 -96
- package/dist/report/definition/grid-layout.d.ts +0 -77
- package/dist/report/definition/grid-layout.js +0 -147
- package/dist/report/definition/primitives/callouts-logic.d.ts +0 -26
- package/dist/report/definition/primitives/callouts-logic.js +0 -102
- package/dist/report/definition/primitives/callouts.d.ts +0 -9
- package/dist/report/definition/primitives/callouts.js +0 -101
- package/dist/report/definition/primitives/chart-map.d.ts +0 -74
- package/dist/report/definition/primitives/chart-map.js +0 -124
- package/dist/report/definition/primitives/chart.d.ts +0 -43
- package/dist/report/definition/primitives/chart.js +0 -619
- package/dist/report/definition/primitives/conversation.d.ts +0 -55
- package/dist/report/definition/primitives/conversation.js +0 -216
- package/dist/report/definition/primitives/copy-block.d.ts +0 -19
- package/dist/report/definition/primitives/copy-block.js +0 -51
- package/dist/report/definition/primitives/diff-lines.d.ts +0 -68
- package/dist/report/definition/primitives/diff-lines.js +0 -149
- package/dist/report/definition/primitives/diff-view.d.ts +0 -14
- package/dist/report/definition/primitives/diff-view.js +0 -156
- package/dist/report/definition/primitives/markdown.d.ts +0 -29
- package/dist/report/definition/primitives/markdown.js +0 -278
- package/dist/report/definition/primitives/marks.d.ts +0 -124
- package/dist/report/definition/primitives/marks.js +0 -91
- package/dist/report/definition/primitives/points-dataset.d.ts +0 -17
- package/dist/report/definition/primitives/points-dataset.js +0 -121
- package/dist/report/definition/primitives/source-view.d.ts +0 -43
- package/dist/report/definition/primitives/source-view.js +0 -179
- package/dist/report/definition/primitives/waterfall.d.ts +0 -34
- package/dist/report/definition/primitives/waterfall.js +0 -201
- package/dist/report/definition/primitives.d.ts +0 -154
- package/dist/report/definition/primitives.js +0 -691
- package/dist/report/definition/report.d.ts +0 -200
- package/dist/report/definition/report.js +0 -275
- package/dist/report/definition/table-text.d.ts +0 -14
- package/dist/report/definition/table-text.js +0 -187
- package/dist/report/definition/tree.d.ts +0 -233
- package/dist/report/definition/tree.js +0 -566
- package/dist/report/extension/assets.d.ts +0 -16
- package/dist/report/extension/assets.js +0 -124
- package/dist/report/extension/define.d.ts +0 -9
- package/dist/report/extension/define.js +0 -137
- package/dist/report/extension/index.d.ts +0 -6
- package/dist/report/extension/index.js +0 -5
- package/dist/report/extension/meta.d.ts +0 -9
- package/dist/report/extension/meta.js +0 -11
- package/dist/report/extension/types.d.ts +0 -52
- package/dist/report/extension/types.js +0 -3
- package/dist/report/model/aggregate.d.ts +0 -111
- package/dist/report/model/aggregate.js +0 -396
- package/dist/report/model/calculation.d.ts +0 -139
- package/dist/report/model/calculation.js +0 -447
- package/dist/report/model/chart/math.d.ts +0 -73
- package/dist/report/model/chart/math.js +0 -198
- package/dist/report/model/chart/plot.d.ts +0 -52
- package/dist/report/model/chart/plot.js +0 -89
- package/dist/report/model/conversions.d.ts +0 -40
- package/dist/report/model/conversions.js +0 -88
- package/dist/report/model/dataset.d.ts +0 -18
- package/dist/report/model/dataset.js +0 -74
- package/dist/report/model/evaluation-kind.d.ts +0 -19
- package/dist/report/model/evaluation-kind.js +0 -32
- package/dist/report/model/flag.d.ts +0 -52
- package/dist/report/model/flag.js +0 -157
- package/dist/report/model/format.d.ts +0 -96
- package/dist/report/model/format.js +0 -339
- package/dist/report/model/locale.d.ts +0 -219
- package/dist/report/model/locale.js +0 -426
- package/dist/report/model/metrics.d.ts +0 -44
- package/dist/report/model/metrics.js +0 -255
- package/dist/report/model/types.d.ts +0 -784
- package/dist/report/model/types.js +0 -5
- package/dist/report/presentation.d.ts +0 -114
- package/dist/report/presentation.js +0 -210
- package/dist/report/react/index.d.ts +0 -13
- package/dist/report/react/index.js +0 -18
- package/dist/report/runtime/load.d.ts +0 -17
- package/dist/report/runtime/load.js +0 -146
- package/dist/report/runtime/page-render.d.ts +0 -47
- package/dist/report/runtime/page-render.js +0 -95
- package/dist/report/runtime/resolved-page.d.ts +0 -35
- package/dist/report/runtime/resolved-page.js +0 -122
- package/dist/report/runtime/target.d.ts +0 -19
- package/dist/report/runtime/target.js +0 -42
- package/dist/report/runtime/text.d.ts +0 -76
- package/dist/report/runtime/text.js +0 -78
- package/dist/report/runtime/web.d.ts +0 -37
- package/dist/report/runtime/web.js +0 -34
- package/dist/report/slices/compute.d.ts +0 -83
- package/dist/report/slices/compute.js +0 -808
- package/dist/report/slices/content.d.ts +0 -17
- package/dist/report/slices/content.js +0 -132
- package/dist/report/slices/validate.d.ts +0 -6
- package/dist/report/slices/validate.js +0 -296
- package/dist/report/tasks.d.ts +0 -144
- package/dist/report/tasks.js +0 -313
- package/dist/report/theme.d.ts +0 -51
- package/dist/report/theme.js +0 -112
- package/src/agents/ai-sdk-otel.ts +0 -62
- package/src/agents/ai-sdk.test.ts +0 -35
- package/src/agents/ai-sdk.ts +0 -603
- package/src/agents/bub-install-spec.ts +0 -50
- package/src/agents/bub.ts +0 -293
- package/src/agents/builtin.ts +0 -16
- package/src/agents/cache-marker.ts +0 -6
- package/src/agents/claude-code.ts +0 -439
- package/src/agents/codex-env.test.ts +0 -153
- package/src/agents/codex.ts +0 -727
- package/src/agents/coding-cli-versions.ts +0 -87
- package/src/agents/command-redaction.test.ts +0 -96
- package/src/agents/hermes.ts +0 -269
- package/src/agents/index.ts +0 -149
- package/src/agents/langgraph.test.ts +0 -30
- package/src/agents/langgraph.ts +0 -508
- package/src/agents/marketplace.ts +0 -96
- package/src/agents/mcp.test.ts +0 -41
- package/src/agents/mcp.ts +0 -31
- package/src/agents/native-config.ts +0 -267
- package/src/agents/npm-staged.ts +0 -370
- package/src/agents/openai-compat.test.ts +0 -69
- package/src/agents/openai-compat.ts +0 -205
- package/src/agents/openclaw.ts +0 -275
- package/src/agents/opencode.ts +0 -198
- package/src/agents/post-setup.test.ts +0 -118
- package/src/agents/post-setup.ts +0 -116
- package/src/agents/provisioner.test.ts +0 -291
- package/src/agents/provisioner.ts +0 -593
- package/src/agents/sdk-streams.test.ts +0 -66
- package/src/agents/sdk-streams.ts +0 -542
- package/src/agents/session-slot.ts +0 -15
- package/src/agents/shared.ts +0 -250
- package/src/agents/skills.ts +0 -309
- package/src/agents/streaming.ts +0 -203
- package/src/agents/types.ts +0 -612
- package/src/agents/ui-message-stream.ts +0 -398
- package/src/assertions/collector.test.ts +0 -457
- package/src/assertions/collector.ts +0 -452
- package/src/assertions/coverage.ts +0 -118
- package/src/assertions/diff.ts +0 -120
- package/src/assertions/display.test.ts +0 -175
- package/src/assertions/display.ts +0 -213
- package/src/assertions/evidence.test.ts +0 -194
- package/src/assertions/judge.test.ts +0 -623
- package/src/assertions/judge.ts +0 -448
- package/src/assertions/match.ts +0 -79
- package/src/assertions/scoped.test.ts +0 -359
- package/src/assertions/scoped.ts +0 -551
- package/src/assertions/types.ts +0 -286
- package/src/cli.ts +0 -1762
- package/src/context/context.test.ts +0 -759
- package/src/context/context.ts +0 -816
- package/src/context/control-flow.ts +0 -17
- package/src/context/deferred-file-content.ts +0 -16
- package/src/context/send-failures.test.ts +0 -122
- package/src/context/send-failures.ts +0 -164
- package/src/context/send-retry.test.ts +0 -112
- package/src/context/send-retry.ts +0 -145
- package/src/context/session.test.ts +0 -477
- package/src/context/session.ts +0 -516
- package/src/context/types.ts +0 -409
- package/src/define-agent.test.ts +0 -99
- package/src/define-eval.test.ts +0 -213
- package/src/define-experiment.test.ts +0 -44
- package/src/define.test.ts +0 -25
- package/src/define.ts +0 -238
- package/src/expect/index.test.ts +0 -39
- package/src/expect/index.ts +0 -252
- package/src/fresh-import.ts +0 -34
- package/src/i18n/core.ts +0 -28
- package/src/i18n/en.ts +0 -532
- package/src/i18n/index.ts +0 -40
- package/src/i18n/locale.test.ts +0 -41
- package/src/i18n/zh-CN.ts +0 -533
- package/src/index.ts +0 -91
- package/src/load-config.ts +0 -39
- package/src/loaders/criteria.test.ts +0 -305
- package/src/loaders/glob.ts +0 -149
- package/src/loaders/index.test.ts +0 -166
- package/src/loaders/index.ts +0 -256
- package/src/loaders/private.test.ts +0 -110
- package/src/o11y/cost.test.ts +0 -41
- package/src/o11y/cost.ts +0 -81
- package/src/o11y/derive.test.ts +0 -161
- package/src/o11y/derive.ts +0 -301
- package/src/o11y/execution-tree.test.ts +0 -390
- package/src/o11y/execution-tree.ts +0 -391
- package/src/o11y/otlp/canonical.ts +0 -113
- package/src/o11y/otlp/mappers/bub.ts +0 -30
- package/src/o11y/otlp/mappers/claude-code.ts +0 -24
- package/src/o11y/otlp/mappers/codex.ts +0 -40
- package/src/o11y/otlp/mappers/index.ts +0 -14
- package/src/o11y/otlp/parse.ts +0 -334
- package/src/o11y/otlp/receiver.ts +0 -118
- package/src/o11y/otlp/sandbox-receiver.test.ts +0 -301
- package/src/o11y/otlp/sandbox-receiver.ts +0 -255
- package/src/o11y/otlp/select.ts +0 -86
- package/src/o11y/otlp/turn-otel.ts +0 -132
- package/src/o11y/parsers/bub.test.ts +0 -30
- package/src/o11y/parsers/bub.ts +0 -264
- package/src/o11y/parsers/claude-code.ts +0 -302
- package/src/o11y/parsers/codex.test.ts +0 -19
- package/src/o11y/parsers/codex.ts +0 -476
- package/src/o11y/parsers/hermes.ts +0 -199
- package/src/o11y/parsers/index.ts +0 -28
- package/src/o11y/parsers/openclaw.ts +0 -340
- package/src/o11y/parsers/opencode.ts +0 -300
- package/src/o11y/prices.json +0 -10812
- package/src/o11y/tool-names.ts +0 -74
- package/src/o11y/types.ts +0 -221
- package/src/record/annotated-source.test.ts +0 -329
- package/src/record/annotated-source.ts +0 -643
- package/src/record/attempt-evidence.test.ts +0 -208
- package/src/record/attempt-evidence.ts +0 -184
- package/src/record/attempt-source.ts +0 -37
- package/src/record/copy.ts +0 -303
- package/src/record/evidence-schema.test.ts +0 -85
- package/src/record/format.ts +0 -91
- package/src/record/host-equivalence.test.ts +0 -539
- package/src/record/index.ts +0 -119
- package/src/record/locator.test.ts +0 -125
- package/src/record/locator.ts +0 -178
- package/src/record/manifest.ts +0 -72
- package/src/record/open.ts +0 -758
- package/src/record/publish.ts +0 -7
- package/src/record/results.test.ts +0 -1563
- package/src/record/skipped-notice.ts +0 -44
- package/src/record/source-hash.ts +0 -28
- package/src/record/timing-activity.test.ts +0 -395
- package/src/record/truncate.ts +0 -116
- package/src/record/types.ts +0 -319
- package/src/record/writer.ts +0 -549
- package/src/report/assets/colors.ts +0 -69
- package/src/report/assets/enhance.js +0 -214
- package/src/report/assets/series-encoding.tsx +0 -177
- package/src/report/assets/styles.css +0 -1780
- package/src/report/built-in/failures.tsx +0 -29
- package/src/report/built-in/index.tsx +0 -66
- package/src/report/built-in/result-components.tsx +0 -404
- package/src/report/built-in/stability.tsx +0 -30
- package/src/report/built-in/standard.tsx +0 -132
- package/src/report/components/attempt-detail/attempt-components.test.tsx +0 -706
- package/src/report/components/attempt-detail/compute.ts +0 -544
- package/src/report/components/attempt-detail/content.tsx +0 -633
- package/src/report/components/attempt-detail/index.tsx +0 -285
- package/src/report/components/attempt-detail/validate.test.ts +0 -253
- package/src/report/components/attempt-detail/validate.tsx +0 -361
- package/src/report/components/cell.tsx +0 -79
- package/src/report/components/compute.test.ts +0 -1540
- package/src/report/components/entity-lists/compute.test.ts +0 -38
- package/src/report/components/entity-lists/compute.ts +0 -383
- package/src/report/components/entity-lists/content.test.ts +0 -611
- package/src/report/components/entity-lists/content.ts +0 -591
- package/src/report/components/entity-lists/index.tsx +0 -169
- package/src/report/components/entity-lists/validate.test.ts +0 -161
- package/src/report/components/entity-lists/validate.ts +0 -121
- package/src/report/components/experiment-detail/compute.ts +0 -40
- package/src/report/components/experiment-detail/experiment-detail.test.tsx +0 -181
- package/src/report/components/experiment-detail/index.tsx +0 -89
- package/src/report/components/fixtures.ts +0 -366
- package/src/report/components/scope.harness.ts +0 -83
- package/src/report/components/shared-compute.ts +0 -60
- package/src/report/components/shared-faces.ts +0 -25
- package/src/report/components/shared.test.ts +0 -62
- package/src/report/components/shared.ts +0 -127
- package/src/report/components/site-components/HeroCard.tsx +0 -87
- package/src/report/components/site-components/PoweredBy.tsx +0 -20
- package/src/report/components/site-components/compute.ts +0 -165
- package/src/report/components/site-components/content.ts +0 -8
- package/src/report/components/site-components/faces.ts +0 -46
- package/src/report/components/site-components/hero-types.ts +0 -20
- package/src/report/components/site-components/index.tsx +0 -109
- package/src/report/components/site-components/projections.ts +0 -74
- package/src/report/components/site-components/scope-warnings.ts +0 -160
- package/src/report/components/site-components/site-components.test.tsx +0 -460
- package/src/report/components/site-components/snapshot-diagnostics.ts +0 -69
- package/src/report/components/site-components/validate.test.ts +0 -121
- package/src/report/components/site-components/validators.ts +0 -97
- package/src/report/components/summaries/compute.ts +0 -66
- package/src/report/components/summaries/index.tsx +0 -255
- package/src/report/components/summaries/stability-overview.test.tsx +0 -141
- package/src/report/components/summaries/stability-overview.tsx +0 -105
- package/src/report/components/summaries/validate.test.ts +0 -49
- package/src/report/components/summaries/validate.ts +0 -21
- package/src/report/definition/callouts.test.tsx +0 -146
- package/src/report/definition/cell.ts +0 -203
- package/src/report/definition/chart.test.tsx +0 -285
- package/src/report/definition/conversation.test.tsx +0 -150
- package/src/report/definition/copy-block.test.tsx +0 -71
- package/src/report/definition/diff-view.test.tsx +0 -209
- package/src/report/definition/grid-layout.test.tsx +0 -262
- package/src/report/definition/grid-layout.ts +0 -203
- package/src/report/definition/markdown.test.tsx +0 -179
- package/src/report/definition/primitives/callouts-logic.ts +0 -117
- package/src/report/definition/primitives/callouts.tsx +0 -185
- package/src/report/definition/primitives/chart-map.ts +0 -214
- package/src/report/definition/primitives/chart.tsx +0 -1012
- package/src/report/definition/primitives/conversation.tsx +0 -345
- package/src/report/definition/primitives/copy-block.tsx +0 -87
- package/src/report/definition/primitives/diff-lines.ts +0 -212
- package/src/report/definition/primitives/diff-view.tsx +0 -332
- package/src/report/definition/primitives/markdown.tsx +0 -365
- package/src/report/definition/primitives/marks-contract.test.tsx +0 -45
- package/src/report/definition/primitives/marks.tsx +0 -254
- package/src/report/definition/primitives/points-dataset.test.ts +0 -117
- package/src/report/definition/primitives/points-dataset.ts +0 -168
- package/src/report/definition/primitives/source-view.tsx +0 -359
- package/src/report/definition/primitives/waterfall.tsx +0 -386
- package/src/report/definition/primitives.test.tsx +0 -186
- package/src/report/definition/primitives.tsx +0 -1150
- package/src/report/definition/report-contract.test.ts +0 -119
- package/src/report/definition/report.ts +0 -562
- package/src/report/definition/shell-head.test.ts +0 -100
- package/src/report/definition/source-view.test.tsx +0 -119
- package/src/report/definition/stat.test.tsx +0 -45
- package/src/report/definition/table-text.ts +0 -228
- package/src/report/definition/table.test.tsx +0 -633
- package/src/report/definition/tree.ts +0 -852
- package/src/report/definition/waterfall.test.tsx +0 -581
- package/src/report/extension/assets.ts +0 -154
- package/src/report/extension/define.test.tsx +0 -228
- package/src/report/extension/define.ts +0 -182
- package/src/report/extension/index.ts +0 -23
- package/src/report/extension/meta.ts +0 -21
- package/src/report/extension/types.ts +0 -64
- package/src/report/index.ts +0 -410
- package/src/report/model/aggregate.ts +0 -463
- package/src/report/model/calculation.test.ts +0 -354
- package/src/report/model/calculation.ts +0 -659
- package/src/report/model/chart/math.test.ts +0 -189
- package/src/report/model/chart/math.ts +0 -245
- package/src/report/model/chart/plot.ts +0 -144
- package/src/report/model/conversions.ts +0 -150
- package/src/report/model/dataset.ts +0 -80
- package/src/report/model/evaluation-kind.ts +0 -35
- package/src/report/model/flag.ts +0 -174
- package/src/report/model/format.ts +0 -375
- package/src/report/model/locale.ts +0 -510
- package/src/report/model/metrics.ts +0 -256
- package/src/report/model/panel.test.ts +0 -272
- package/src/report/model/panel.ts +0 -340
- package/src/report/model/presentation.test.ts +0 -141
- package/src/report/model/text-layout.ts +0 -190
- package/src/report/model/types.ts +0 -824
- package/src/report/presentation.test.tsx +0 -474
- package/src/report/presentation.ts +0 -354
- package/src/report/react/index.tsx +0 -96
- package/src/report/runtime/dual-render.test.tsx +0 -1088
- package/src/report/runtime/host.test.ts +0 -86
- package/src/report/runtime/host.ts +0 -317
- package/src/report/runtime/load.test.ts +0 -34
- package/src/report/runtime/load.ts +0 -159
- package/src/report/runtime/page-render.test.tsx +0 -247
- package/src/report/runtime/page-render.ts +0 -147
- package/src/report/runtime/resolved-page.test.tsx +0 -81
- package/src/report/runtime/resolved-page.ts +0 -169
- package/src/report/runtime/target.ts +0 -50
- package/src/report/runtime/text.ts +0 -155
- package/src/report/runtime/web.ts +0 -65
- package/src/report/slices/compute.ts +0 -979
- package/src/report/slices/content.ts +0 -157
- package/src/report/slices/delta-table.test.ts +0 -423
- package/src/report/slices/stability-matrix.test.ts +0 -169
- package/src/report/slices/validate.test.ts +0 -236
- package/src/report/slices/validate.ts +0 -216
- package/src/report/tasks.test.ts +0 -82
- package/src/report/tasks.ts +0 -553
- package/src/report/theme.test.ts +0 -32
- package/src/report/theme.ts +0 -141
- package/src/runner/accept-prompt.test.ts +0 -51
- package/src/runner/accept-prompt.ts +0 -67
- package/src/runner/accept.test.ts +0 -592
- package/src/runner/accept.ts +0 -705
- package/src/runner/attempt.test.ts +0 -1989
- package/src/runner/attempt.ts +0 -1912
- package/src/runner/build-preparation-plan.test.ts +0 -119
- package/src/runner/build-preparation.ts +0 -104
- package/src/runner/cleanup-timeout.test.ts +0 -16
- package/src/runner/cleanup-timeout.ts +0 -23
- package/src/runner/config-identity.test.ts +0 -277
- package/src/runner/config-identity.ts +0 -318
- package/src/runner/direct-agent-sandbox.test.ts +0 -48
- package/src/runner/direct-agent-sandbox.ts +0 -68
- package/src/runner/discover.test.ts +0 -262
- package/src/runner/discover.ts +0 -469
- package/src/runner/eval-selection.test.ts +0 -241
- package/src/runner/eval-selection.ts +0 -139
- package/src/runner/eval-source.test.ts +0 -108
- package/src/runner/eval-source.ts +0 -82
- package/src/runner/experiment-cleanup-registry.test.ts +0 -89
- package/src/runner/experiment-cleanup-registry.ts +0 -39
- package/src/runner/experiment-labels.test.ts +0 -100
- package/src/runner/feedback/coordinator.test.ts +0 -367
- package/src/runner/feedback/coordinator.ts +0 -511
- package/src/runner/feedback/eval-conclusions.test.ts +0 -135
- package/src/runner/feedback/eval-conclusions.ts +0 -115
- package/src/runner/feedback/failure.test.ts +0 -104
- package/src/runner/feedback/failure.ts +0 -60
- package/src/runner/feedback/human.test.ts +0 -1722
- package/src/runner/feedback/human.ts +0 -1499
- package/src/runner/feedback/index.ts +0 -94
- package/src/runner/feedback/input-guard.test.ts +0 -251
- package/src/runner/feedback/input-guard.ts +0 -171
- package/src/runner/feedback/io.ts +0 -82
- package/src/runner/feedback/json.test.ts +0 -617
- package/src/runner/feedback/json.ts +0 -708
- package/src/runner/feedback/profile.test.ts +0 -28
- package/src/runner/feedback/profile.ts +0 -23
- package/src/runner/feedback/reducer.test.ts +0 -908
- package/src/runner/feedback/reducer.ts +0 -411
- package/src/runner/feedback/renderer.ts +0 -83
- package/src/runner/feedback/sink.ts +0 -332
- package/src/runner/feedback/testing.ts +0 -109
- package/src/runner/fingerprint.test.ts +0 -1406
- package/src/runner/fingerprint.ts +0 -924
- package/src/runner/gate-lease.test.ts +0 -555
- package/src/runner/gate-lease.ts +0 -398
- package/src/runner/judge-config.test.ts +0 -32
- package/src/runner/judge-config.ts +0 -26
- package/src/runner/leak-gate.test.ts +0 -195
- package/src/runner/leak-gate.ts +0 -364
- package/src/runner/ledger.test.ts +0 -577
- package/src/runner/ledger.ts +0 -533
- package/src/runner/lock.test.ts +0 -498
- package/src/runner/lock.ts +0 -334
- package/src/runner/manifest.ts +0 -282
- package/src/runner/report.test.ts +0 -238
- package/src/runner/report.ts +0 -127
- package/src/runner/reporters/artifacts.ts +0 -120
- package/src/runner/reporters/braintrust.test.ts +0 -109
- package/src/runner/reporters/braintrust.ts +0 -211
- package/src/runner/reporters/index.ts +0 -7
- package/src/runner/reporters/json.test.ts +0 -163
- package/src/runner/reporters/json.ts +0 -79
- package/src/runner/reporters/shared.ts +0 -14
- package/src/runner/reuse-diagnostics.test.ts +0 -114
- package/src/runner/reuse-diagnostics.ts +0 -92
- package/src/runner/reuse-pool-key.test.ts +0 -22
- package/src/runner/run.test.ts +0 -5319
- package/src/runner/run.ts +0 -2656
- package/src/runner/sandbox-pool-plan.test.ts +0 -180
- package/src/runner/sandbox-pool.test.ts +0 -278
- package/src/runner/sandbox-pool.ts +0 -337
- package/src/runner/sandbox-prep.ts +0 -55
- package/src/runner/sandbox-selection.test.ts +0 -288
- package/src/runner/sandbox-selection.ts +0 -351
- package/src/runner/session.test.ts +0 -112
- package/src/runner/session.ts +0 -466
- package/src/runner/teardown-registry.test.ts +0 -156
- package/src/runner/teardown-registry.ts +0 -146
- package/src/runner/timeout-attribution.test.ts +0 -34
- package/src/runner/timeout.ts +0 -54
- package/src/runner/timing.ts +0 -379
- package/src/runner/types.ts +0 -1733
- package/src/sample/index.ts +0 -483
- package/src/sample/sample.test.ts +0 -622
- package/src/sandbox/backend.ts +0 -140
- package/src/sandbox/build-coordinator.test.ts +0 -333
- package/src/sandbox/build-coordinator.ts +0 -444
- package/src/sandbox/case-types.ts +0 -67
- package/src/sandbox/checkpoint.test.ts +0 -55
- package/src/sandbox/checkpoint.ts +0 -64
- package/src/sandbox/cli-commands.test.ts +0 -524
- package/src/sandbox/cli-commands.ts +0 -593
- package/src/sandbox/commands.ts +0 -287
- package/src/sandbox/compose.test.ts +0 -625
- package/src/sandbox/compose.ts +0 -1291
- package/src/sandbox/content.ts +0 -202
- package/src/sandbox/deadline.ts +0 -73
- package/src/sandbox/docker-agent-image.ts +0 -36
- package/src/sandbox/docker-stream.ts +0 -116
- package/src/sandbox/docker.test.ts +0 -263
- package/src/sandbox/docker.ts +0 -836
- package/src/sandbox/dockerfile-agent-cache.test.ts +0 -157
- package/src/sandbox/dockerfile-agent-cache.ts +0 -155
- package/src/sandbox/dockerfile-agent-runtime.test.ts +0 -166
- package/src/sandbox/dockerfile-build.test.ts +0 -27
- package/src/sandbox/dockerfile-build.ts +0 -269
- package/src/sandbox/dockerfile-identity.ts +0 -129
- package/src/sandbox/download-directory.test.ts +0 -68
- package/src/sandbox/download-directory.ts +0 -36
- package/src/sandbox/e2b-agent-template.test.ts +0 -107
- package/src/sandbox/e2b-agent-template.ts +0 -194
- package/src/sandbox/e2b-reconcile.test.ts +0 -126
- package/src/sandbox/e2b.test.ts +0 -629
- package/src/sandbox/e2b.ts +0 -781
- package/src/sandbox/errors.test.ts +0 -72
- package/src/sandbox/errors.ts +0 -203
- package/src/sandbox/identity.ts +0 -203
- package/src/sandbox/index.ts +0 -138
- package/src/sandbox/io-retry.test.ts +0 -58
- package/src/sandbox/io-retry.ts +0 -45
- package/src/sandbox/keep-registry.test.ts +0 -141
- package/src/sandbox/keep-registry.ts +0 -271
- package/src/sandbox/keep.test.ts +0 -538
- package/src/sandbox/keep.ts +0 -405
- package/src/sandbox/layer.test.ts +0 -343
- package/src/sandbox/layer.ts +0 -1641
- package/src/sandbox/ledger-paths.ts +0 -37
- package/src/sandbox/link.test.ts +0 -321
- package/src/sandbox/link.ts +0 -484
- package/src/sandbox/local-files.ts +0 -31
- package/src/sandbox/local.test.ts +0 -216
- package/src/sandbox/local.ts +0 -364
- package/src/sandbox/official-baselines.test.ts +0 -175
- package/src/sandbox/operations.test.ts +0 -391
- package/src/sandbox/operations.ts +0 -187
- package/src/sandbox/orphans.test.ts +0 -470
- package/src/sandbox/orphans.ts +0 -261
- package/src/sandbox/paths.test.ts +0 -141
- package/src/sandbox/paths.ts +0 -132
- package/src/sandbox/plan.test.ts +0 -487
- package/src/sandbox/plan.ts +0 -353
- package/src/sandbox/prepare-commands.test.ts +0 -168
- package/src/sandbox/prepare-commands.ts +0 -342
- package/src/sandbox/redaction.test.ts +0 -48
- package/src/sandbox/redaction.ts +0 -50
- package/src/sandbox/registry.ts +0 -78
- package/src/sandbox/retry.test.ts +0 -138
- package/src/sandbox/retry.ts +0 -86
- package/src/sandbox/run-identity.ts +0 -120
- package/src/sandbox/runtime.test.ts +0 -551
- package/src/sandbox/runtime.ts +0 -984
- package/src/sandbox/shell.test.ts +0 -23
- package/src/sandbox/shell.ts +0 -18
- package/src/sandbox/transfer-errors.test.ts +0 -116
- package/src/sandbox/transfer-errors.ts +0 -118
- package/src/sandbox/types.ts +0 -196
- package/src/sandbox/vercel.test.ts +0 -180
- package/src/sandbox/vercel.ts +0 -400
- package/src/shared/aggregate.test.ts +0 -52
- package/src/shared/aggregate.ts +0 -99
- package/src/shared/entry-file-store.test.ts +0 -193
- package/src/shared/entry-file-store.ts +0 -145
- package/src/shared/external-cause.ts +0 -322
- package/src/shared/facts.ts +0 -36
- package/src/shared/failure-class.test.ts +0 -195
- package/src/shared/failure-class.ts +0 -206
- package/src/shared/format.ts +0 -26
- package/src/shared/json-match.ts +0 -42
- package/src/shared/json-value.test.ts +0 -24
- package/src/shared/json-value.ts +0 -36
- package/src/shared/turn-label.test.ts +0 -20
- package/src/shared/turn-label.ts +0 -15
- package/src/shared/types.ts +0 -101
- package/src/shared/verdict.ts +0 -82
- package/src/show/command.test.ts +0 -36
- package/src/show/command.ts +0 -18
- package/src/show/compose.ts +0 -89
- package/src/show/index.test.ts +0 -95
- package/src/show/index.ts +0 -1226
- package/src/show/json.test.ts +0 -412
- package/src/show/json.ts +0 -106
- package/src/show/render.test.ts +0 -857
- package/src/show/render.ts +0 -1510
- package/src/source-loc.ts +0 -134
- package/src/tty-line.ts +0 -14
- package/src/types.ts +0 -37
- package/src/util.test.ts +0 -77
- package/src/util.ts +0 -138
- package/src/view/app/App.tsx +0 -351
- package/src/view/app/components/ui/dialog.tsx +0 -36
- package/src/view/app/components/ui/tabs.tsx +0 -30
- package/src/view/app/css.d.ts +0 -3
- package/src/view/app/i18n.ts +0 -65
- package/src/view/app/index.html +0 -13
- package/src/view/app/lib/cn.ts +0 -7
- package/src/view/app/lib/target-dialog.test.ts +0 -105
- package/src/view/app/lib/target-dialog.ts +0 -110
- package/src/view/app/main.tsx +0 -109
- package/src/view/app/types.ts +0 -15
- package/src/view/app/vite.config.ts +0 -26
- package/src/view/data.test.ts +0 -541
- package/src/view/data.ts +0 -950
- package/src/view/index.ts +0 -91
- package/src/view/server-rebuild.test.ts +0 -323
- package/src/view/server-watch.test.ts +0 -106
- package/src/view/server.ts +0 -484
- package/src/view/shared/types.ts +0 -93
- package/src/view/site-base.test.ts +0 -51
- package/src/view/site-head.test.ts +0 -142
- package/src/view/site-param-pages.test.ts +0 -186
- package/src/view/site-renderer-assets.test.ts +0 -68
- package/src/view/site.ts +0 -484
- package/src/view/styles.css +0 -170
- /package/dist/{report/components/site-components/hero-types.js → cli/bootstrap.d.cts} +0 -0
- /package/{src → dist}/view/client-dist/app.css +0 -0
- /package/{src → dist}/view/client-dist/app.js +0 -0
- /package/{src → dist}/view/template.html +0 -0
package/src/show/render.ts
DELETED
|
@@ -1,1510 +0,0 @@
|
|
|
1
|
-
// show 的文本渲染:--history 时间轴、四个证据切面(source / execution / timing / diff)。多
|
|
2
|
-
// attempt 范围的分节由 show/index.ts 的 renderEvidenceSections 逐 attempt 复用这些 renderer,
|
|
3
|
-
// 不在这里重复。输出形态照 docs-site/zh/tutorials/viewing-results.mdx 的示例块;长内容一律
|
|
4
|
-
// 截断,但截断永远如实标注剩余数量和原始 artifact 路径 —— 输出对上下文窗口友好,事实源留在
|
|
5
|
-
// 盘上。全部纯函数(时间经 now 显式传入),证据数据由调用方 await 好了递进来。
|
|
6
|
-
|
|
7
|
-
import { join, relative } from "node:path";
|
|
8
|
-
import type { AssertionResult, CommandExitEvidence, CommandLimitAttribution, EvalResult, LocalizedText, SandboxBuildRecord, TimingActivity, TraceSpan, Verdict } from "../types.ts";
|
|
9
|
-
import type { AttemptEvidence, AttemptHandle, Run } from "../record/index.ts";
|
|
10
|
-
import type {
|
|
11
|
-
LineAnnotation,
|
|
12
|
-
ProjectedSourceCall,
|
|
13
|
-
ProjectedSourceLine,
|
|
14
|
-
SendAnnotation,
|
|
15
|
-
SourceCallSummary,
|
|
16
|
-
SourceContentNode,
|
|
17
|
-
} from "../record/index.ts";
|
|
18
|
-
import { groupIncompatibleVersionSkips } from "../record/index.ts";
|
|
19
|
-
import type { UnreadableRun } from "../record/index.ts";
|
|
20
|
-
import type { ExecutionNode, ExecutionTree } from "../o11y/execution-tree.ts";
|
|
21
|
-
import { summaryText } from "../assertions/display.ts";
|
|
22
|
-
import { firstLine } from "../util.ts";
|
|
23
|
-
import { formatDurationMs, formatMetricValue, formatPlainNumber, formatUSD } from "../report/model/format.ts";
|
|
24
|
-
import { formatTurnLabel, normalizeTurnLabel } from "../shared/turn-label.ts";
|
|
25
|
-
import { diffFilePatchText, diffSummaryText } from "../report/definition/primitives/diff-lines.ts";
|
|
26
|
-
import type { AttemptDiffData } from "../report/model/types.ts";
|
|
27
|
-
import type {
|
|
28
|
-
AnnotatedSourceResult,
|
|
29
|
-
AttemptTimingResult,
|
|
30
|
-
ConversationResult,
|
|
31
|
-
RunTimingBuildResult,
|
|
32
|
-
RunTimingResult,
|
|
33
|
-
} from "../report/tasks.ts";
|
|
34
|
-
import { indentBlock, padDisplay, renderAlignedRows, wrapDisplay } from "../report/model/text-layout.ts";
|
|
35
|
-
import type { AttemptHistoryRow } from "./compose.ts";
|
|
36
|
-
import { localizeText, type HostCommandContext } from "../report/runtime/host.ts";
|
|
37
|
-
import { showCommand } from "./command.ts";
|
|
38
|
-
|
|
39
|
-
const MISSING = "—";
|
|
40
|
-
|
|
41
|
-
// ───────────────────────── 时间与小件 ─────────────────────────
|
|
42
|
-
|
|
43
|
-
/** 判定时间的相对标注("just now" / "41s ago" / "2h ago");未来时刻按 just now 兜底。 */
|
|
44
|
-
export function relativeAgo(iso: string | undefined, now: number): string {
|
|
45
|
-
if (!iso) return "";
|
|
46
|
-
const ms = now - Date.parse(iso);
|
|
47
|
-
if (!Number.isFinite(ms) || ms < 10_000) return "just now";
|
|
48
|
-
const seconds = Math.floor(ms / 1000);
|
|
49
|
-
if (seconds < 120) return `${seconds}s ago`;
|
|
50
|
-
const minutes = Math.floor(seconds / 60);
|
|
51
|
-
if (minutes < 120) return `${minutes}m ago`;
|
|
52
|
-
const hours = Math.floor(minutes / 60);
|
|
53
|
-
if (hours < 48) return `${hours}h ago`;
|
|
54
|
-
return `${Math.floor(hours / 24)}d ago`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** 时间轴行的时刻:ISO 截到分钟,冒号换 -(与 run 目录名的清洗一致)。 */
|
|
58
|
-
export function timelineStamp(iso: string): string {
|
|
59
|
-
return iso.slice(0, 16).replace(/:/g, "-");
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function verdictMark(verdict: Verdict): string {
|
|
63
|
-
if (verdict === "passed") return "✓";
|
|
64
|
-
if (verdict === "skipped") return "-";
|
|
65
|
-
return "✗";
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function attemptsLabel(n: number): string {
|
|
69
|
-
return `${n} ${n === 1 ? "attempt" : "attempts"}`;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* attempt artifact 目录的展示路径:尽量给相对 cwd 的短路径,出了 cwd 给绝对路径。
|
|
74
|
-
* 本快照跑出的条目:artifact 与 result.json 同目录,= `<run.dir>/<ref.attempt>`。
|
|
75
|
-
* 携带条目(--resume 合入):落盘的 artifactBase 相对结果根(= run.dir 的上两级,
|
|
76
|
-
* 即 `<experiment-dir>/<run-dir>` 的上一层),指向原快照的 attempt 目录。
|
|
77
|
-
*/
|
|
78
|
-
export function attemptArtifactsPath(attempt: AttemptHandle, cwd: string): string {
|
|
79
|
-
const r = attempt.result;
|
|
80
|
-
const abs = r.artifactBase
|
|
81
|
-
? join(attempt.run.dir, "..", "..", r.artifactBase)
|
|
82
|
-
: join(attempt.run.dir, attempt.ref.attempt);
|
|
83
|
-
const rel = relative(cwd, abs);
|
|
84
|
-
return rel.startsWith("..") ? abs : rel;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 裸 `show` 零可读结果时,unreadable 目录的展示文案。niceeval 自己写的、schemaVersion 不兼容的
|
|
89
|
-
* 落盘按 producer 版本分组,一条 `npx niceeval@<version> show --record <记录根>` 覆盖同版本全部
|
|
90
|
-
* Run——show 没有 view 的单 Run 直读模式,`--record` 认的是记录根(其下可以有多个 experiment),
|
|
91
|
-
* 不是单个快照目录,所以不对每个目录重复拼一条各自的命令(那条命令用同一个 root 跑起来
|
|
92
|
-
* 结果完全一样,重复只会刷屏)。其余(第三方 harness、版本信息缺失、malformed、incomplete)
|
|
93
|
-
* 没有可执行的统一建议,原样逐条列出。
|
|
94
|
-
*/
|
|
95
|
-
export function skippedRunsText(unreadable: readonly UnreadableRun[], root: string, cwd: string): string {
|
|
96
|
-
const { groups, rest } = groupIncompatibleVersionSkips(unreadable);
|
|
97
|
-
const rootDisplay = relative(cwd, root) || ".";
|
|
98
|
-
const lines: string[] = [];
|
|
99
|
-
for (const g of groups) {
|
|
100
|
-
const count = g.dirs.length;
|
|
101
|
-
const version = g.producer.version;
|
|
102
|
-
const schema = g.schemaVersion !== undefined ? ` (schemaVersion ${g.schemaVersion})` : "";
|
|
103
|
-
const cmd = `npx niceeval@${version} show --record ${rootDisplay}`;
|
|
104
|
-
lines.push(
|
|
105
|
-
` ${count} run${count === 1 ? "" : "s"} written by niceeval ${version}${schema} — run \`${cmd}\` to view`,
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
for (const s of rest) {
|
|
109
|
-
lines.push(` unreadable ${s.dir} (${s.reason})`);
|
|
110
|
-
}
|
|
111
|
-
return lines.join("\n");
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// ───────────────────────── 断言行 ─────────────────────────
|
|
115
|
-
|
|
116
|
-
function scoreText(score: number): string {
|
|
117
|
-
return formatPlainNumber(Math.round(score * 100) / 100);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/** 分组路径标题(嵌套用 " > " 拼接);无分组返回 undefined。 */
|
|
121
|
-
function groupTitle(a: AssertionResult): string | undefined {
|
|
122
|
-
return a.groupPath && a.groupPath.length > 0 ? a.groupPath.join(" > ") : undefined;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** 断言行:✓/✗/◌ + severity + 标题;unavailable 带 reason,soft 恒带 score/1(失败再补 detail)。 */
|
|
126
|
-
export function assertionLine(a: AssertionResult): string {
|
|
127
|
-
const group = groupTitle(a);
|
|
128
|
-
const scope = group ? `${group} · ` : "";
|
|
129
|
-
const optional = a.optional ? "optional · " : "";
|
|
130
|
-
if (a.outcome === "unavailable") {
|
|
131
|
-
return `◌ ${a.severity} · ${optional}${scope}${a.name} — unavailable: ${a.reason}`;
|
|
132
|
-
}
|
|
133
|
-
const head = `${a.outcome === "passed" ? "✓" : "✗"} ${a.severity} ${optional}${scope}${a.name}`;
|
|
134
|
-
if (a.severity === "soft") {
|
|
135
|
-
const detail = a.outcome === "failed" && a.detail ? `: ${a.detail}` : "";
|
|
136
|
-
const threshold = a.threshold !== undefined ? ` / ${scoreText(a.threshold)}` : "/1";
|
|
137
|
-
return `${head} — ${scoreText(a.score)}${threshold}${detail}`;
|
|
138
|
-
}
|
|
139
|
-
if (a.outcome === "failed") {
|
|
140
|
-
const reason = a.detail ?? `score ${scoreText(a.score)}`;
|
|
141
|
-
const received = a.received ?? a.evidence;
|
|
142
|
-
// 单行面只放摘要收口后的预览;多行值(如 output tail)的完整版在 attempt 首页展开。
|
|
143
|
-
return received !== undefined ? `${head} — ${reason} · received: ${summaryText(received)}` : `${head} — ${reason}`;
|
|
144
|
-
}
|
|
145
|
-
return head;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// ───────────────────────── AttemptEvidence 共用 ─────────────────────────
|
|
149
|
-
// evalSourceText / executionText / timingText / diffText(--source / --execution / --timing / --diff
|
|
150
|
-
// 四个证据切面)共用的小件:locator 头、失败原因、断言计票摘要。四个证据 renderer 都只消费
|
|
151
|
-
// 同一份 AttemptEvidence,不各自读 artifact 或重新判定 capability(loadAttemptEvidence 已经
|
|
152
|
-
// 算好);多 attempt 范围的分节由 show/index.ts 的 renderEvidenceSections 逐 attempt 复用这些
|
|
153
|
-
// renderer,不在这里重复。无证据 flag 的默认页改由 niceeval/report 的 attempt-input page 管线
|
|
154
|
-
// 渲染(docs/feature/reports/show/attempt.md),不在这里。
|
|
155
|
-
|
|
156
|
-
/** 证据切面的头行:`@<locator> · <evalId> · <experimentId> · <verdict>`。 */
|
|
157
|
-
export function attemptEvidenceHeader(evidence: AttemptEvidence): string {
|
|
158
|
-
return [evidence.locator, evidence.identity.evalId, evidence.experimentId, evidence.result.verdict].join(" · ");
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* 一次 attempt 未通过的判定原因,单行、不含 detail——供紧凑索引行使用。precedence 与
|
|
163
|
-
* `report/compute.ts::reasonFor` 同一条规则(error → skipReason → 未通过的 gate 断言,
|
|
164
|
-
* soft 永不进入),但格式更短(`gate <name>`,不带 `: <detail>`——detail 留给
|
|
165
|
-
* `--eval`/单 eval 详情块的完整断言明细),这里独立实现而不是导入 report/ 的函数:
|
|
166
|
-
* report 包正被并行重写(见 plan/attempt-evidence-feedback-loop.md),show 的紧凑索引不应
|
|
167
|
-
* 依赖它的内部实现细节。
|
|
168
|
-
*/
|
|
169
|
-
export function verdictReasonLine(result: EvalResult): string | undefined {
|
|
170
|
-
// 单行面只要 error 的一层摘要:message 取首行(diagnose 的 output tail 等后续行归
|
|
171
|
-
// attempt 详情块展开),再经 summaryText 剥控制字节 + 收口。
|
|
172
|
-
if (result.error !== undefined) return summaryText(firstLine(result.error.message));
|
|
173
|
-
if (result.skipReason !== undefined) return result.skipReason;
|
|
174
|
-
const gates = result.assertions.filter((a) => a.outcome === "failed" && a.severity === "gate");
|
|
175
|
-
if (gates.length === 0) {
|
|
176
|
-
const gap = result.assertions.find((a) => a.outcome === "unavailable" && !a.optional);
|
|
177
|
-
return gap && gap.outcome === "unavailable" ? `unavailable ${gap.name} (${gap.reason})` : undefined;
|
|
178
|
-
}
|
|
179
|
-
return gates.map((a) => `gate ${a.name}`).join(", ");
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* 断言计票摘要,`--eval` 与全景面共用:`assertions: 1 passed · 1 gate failed · 1 soft below
|
|
184
|
-
* target`。直接读 `EvalResult.assertions`(恒可用的瘦身字段)而不是
|
|
185
|
-
* 完整源码树的 summary 与这批断言计票恒等,但源码证据可能不可用;直接读
|
|
186
|
-
* `result.assertions` 让这条摘要不因缺源码而跟着消失。
|
|
187
|
-
*/
|
|
188
|
-
export function assertionSummaryLine(assertions: AssertionResult[]): string {
|
|
189
|
-
const passed = assertions.filter((a) => a.outcome === "passed").length;
|
|
190
|
-
const gateFailed = assertions.filter((a) => a.outcome === "failed" && a.severity === "gate").length;
|
|
191
|
-
const softBelow = assertions.filter((a) => a.outcome === "failed" && a.severity === "soft").length;
|
|
192
|
-
const unavailableCount = assertions.filter((a) => a.outcome === "unavailable").length;
|
|
193
|
-
const parts: string[] = [];
|
|
194
|
-
if (passed > 0) parts.push(`${passed} passed`);
|
|
195
|
-
if (gateFailed > 0) parts.push(`${gateFailed} gate failed`);
|
|
196
|
-
if (softBelow > 0) parts.push(`${softBelow} soft below target`);
|
|
197
|
-
if (unavailableCount > 0) parts.push(`${unavailableCount} unavailable`);
|
|
198
|
-
return `assertions: ${parts.length > 0 ? parts.join(" · ") : "(none)"}`;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// ───────────────────────── --history ─────────────────────────
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* 一个 experimentId + evalId 的执行时间轴分节(docs/feature/reports/show.md「--history」):
|
|
205
|
-
* 节头 `<evalId> · <experimentId> · N attempts · passed x/N`,节内每行
|
|
206
|
-
* 时间 / verdict / 单行摘要 / 耗时 / 成本 / locator,startedAt 升序(compose 已排好)。
|
|
207
|
-
*/
|
|
208
|
-
export function attemptHistoryText(opts: {
|
|
209
|
-
experimentId: string;
|
|
210
|
-
evalId: string;
|
|
211
|
-
rows: AttemptHistoryRow[];
|
|
212
|
-
}): string {
|
|
213
|
-
const { experimentId, evalId, rows } = opts;
|
|
214
|
-
const passed = rows.filter((r) => r.verdict === "passed").length;
|
|
215
|
-
const head = [
|
|
216
|
-
evalId,
|
|
217
|
-
experimentId,
|
|
218
|
-
attemptsLabel(rows.length),
|
|
219
|
-
`passed ${passed}/${rows.length}`,
|
|
220
|
-
].join(" · ");
|
|
221
|
-
if (rows.length === 0) return head;
|
|
222
|
-
const table = renderAlignedRows(
|
|
223
|
-
rows.map((r) => [
|
|
224
|
-
r.startedAt !== undefined ? timelineStamp(r.startedAt) : MISSING,
|
|
225
|
-
`${verdictMark(r.verdict)} ${r.verdict}`,
|
|
226
|
-
r.summary ?? MISSING,
|
|
227
|
-
formatDurationMs(r.durationMs),
|
|
228
|
-
r.costUSD === null ? MISSING : formatUSD(r.costUSD),
|
|
229
|
-
r.locator ?? MISSING,
|
|
230
|
-
]),
|
|
231
|
-
);
|
|
232
|
-
return `${head}\n\n${indentBlock(table, " ")}`;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// ───────────────────────── --report 其余页索引 ─────────────────────────
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* 渲染初始页之后追加的「其余页」索引(docs/feature/reports/show/reports.md Case 2):
|
|
239
|
-
* 只列未渲染的页 —— 每行 id / 本 locale 页名 / 可复制的 `--page` 命令,索引命令携带完整上下文
|
|
240
|
-
* (--record / --report / 位置参数),复制即可精确复现下一层视图。调用方只在页数大于一时
|
|
241
|
-
* 拼接这段(单页定义没有「其余页」段);`otherPages` 不含被渲染的那一页。
|
|
242
|
-
*/
|
|
243
|
-
export function otherPagesText(opts: {
|
|
244
|
-
otherPages: { id: string; title: LocalizedText }[];
|
|
245
|
-
command: HostCommandContext;
|
|
246
|
-
locale: string;
|
|
247
|
-
}): string {
|
|
248
|
-
const { otherPages, command, locale } = opts;
|
|
249
|
-
const head = locale === "zh-CN" ? "其余页:" : "Other pages:";
|
|
250
|
-
const table = renderAlignedRows(
|
|
251
|
-
otherPages.map((page) => [
|
|
252
|
-
page.id,
|
|
253
|
-
localizeText(page.title, locale) ?? page.id,
|
|
254
|
-
showCommand({ ...command, page: page.id }),
|
|
255
|
-
]),
|
|
256
|
-
);
|
|
257
|
-
return `${head}\n${indentBlock(table, " ")}`;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// ───────────────────────── 截断预算(--eval / --execution / 全景共用) ─────────────────────────
|
|
261
|
-
|
|
262
|
-
const MAX_EVENTS = 80;
|
|
263
|
-
const MAX_TEXT = 600;
|
|
264
|
-
|
|
265
|
-
function clip(text: string, max = MAX_TEXT): string {
|
|
266
|
-
if (text.length <= max) return text;
|
|
267
|
-
return `${text.slice(0, max)}… (+${text.length - max} more chars)`;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
function jsonPreview(value: unknown, max = 200): string {
|
|
271
|
-
let text: string;
|
|
272
|
-
try {
|
|
273
|
-
text = JSON.stringify(value) ?? "";
|
|
274
|
-
} catch {
|
|
275
|
-
text = String(value);
|
|
276
|
-
}
|
|
277
|
-
return clip(text, max);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function recordOf(value: unknown): globalThis.Record<string, unknown> | undefined {
|
|
281
|
-
return value !== null && typeof value === "object" && !Array.isArray(value) ? value as globalThis.Record<string, unknown> : undefined;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
function indentedText(text: string, width: number, indent = 4, maxLines = 18): string[] {
|
|
285
|
-
const source = clip(text).split("\n");
|
|
286
|
-
const shown = source.slice(0, maxLines);
|
|
287
|
-
const lines = shown.flatMap((line) => wrapDisplay(line || " ", Math.max(20, width - indent)).map((part) => `${" ".repeat(indent)}${part}`));
|
|
288
|
-
if (source.length > shown.length) lines.push(`${" ".repeat(indent)}… (+${source.length - shown.length} more lines)`);
|
|
289
|
-
return lines;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
// ───────────────────────── 证据切面:--eval(Eval 源码标注) ─────────────────────────
|
|
293
|
-
|
|
294
|
-
/** gate 失败 / soft 恒带分 / unavailable 带 reason——与 assertionLine 的口径一致,但不带断言
|
|
295
|
-
* name(源码行本身就是名字)。 */
|
|
296
|
-
function evalAssertionDetailLine(a: AssertionResult): string | undefined {
|
|
297
|
-
if (a.outcome === "unavailable") {
|
|
298
|
-
return `${a.severity} · unavailable · ${a.reason}${a.evidence ? ` · ${summaryText(a.evidence)}` : ""}`;
|
|
299
|
-
}
|
|
300
|
-
if (a.severity === "soft") {
|
|
301
|
-
const detail = a.outcome === "failed" && a.detail ? ` · ${a.detail}` : "";
|
|
302
|
-
const threshold = a.threshold !== undefined ? ` / ${scoreText(a.threshold)}` : "/1";
|
|
303
|
-
return `soft · ${scoreText(a.score)}${threshold}${detail}`;
|
|
304
|
-
}
|
|
305
|
-
if (a.outcome === "failed") {
|
|
306
|
-
// 标注行是源码页里的一行事实,不是证据面:expected / received 过摘要收口
|
|
307
|
-
// (折单行 + 上限),完整值在 attempt 首页与 events.json / diff.json。
|
|
308
|
-
const parts = ["gate"];
|
|
309
|
-
const group = groupTitle(a);
|
|
310
|
-
if (group) parts.push(group);
|
|
311
|
-
parts.push(a.name);
|
|
312
|
-
if (a.expected !== undefined) parts.push(`expected ${summaryText(a.expected)}`);
|
|
313
|
-
const received = a.received ?? a.evidence;
|
|
314
|
-
if (received !== undefined) parts.push(`received ${summaryText(received)}`);
|
|
315
|
-
if (a.detail) parts.push(summaryText(a.detail));
|
|
316
|
-
return parts.join(" · ");
|
|
317
|
-
}
|
|
318
|
-
return undefined;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/** send 行摘要只显示 status · 墙钟(有记录才出现),不透传内部轮 label。 */
|
|
322
|
-
function sendAnnotationLine(send: SendAnnotation): string {
|
|
323
|
-
const parts: string[] = [send.status];
|
|
324
|
-
if (send.durationMs !== undefined) parts.push(formatDurationMs(send.durationMs));
|
|
325
|
-
return parts.join(" · ");
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
function lineGlyph(annotations: readonly LineAnnotation[]): string {
|
|
329
|
-
const assertions = annotations.flatMap((annotation) =>
|
|
330
|
-
annotation.kind === "assertion" ? [annotation.assertion] : []
|
|
331
|
-
);
|
|
332
|
-
const sends = annotations.flatMap((annotation) => annotation.kind === "send" ? [annotation.send] : []);
|
|
333
|
-
const anyFailed = assertions.some((assertion) => assertion.outcome === "failed") ||
|
|
334
|
-
sends.some((send) => send.status === "failed");
|
|
335
|
-
const anyUnavailable = assertions.some((assertion) => assertion.outcome === "unavailable");
|
|
336
|
-
return annotations.length === 0
|
|
337
|
-
? " "
|
|
338
|
-
: anyFailed
|
|
339
|
-
? "✗"
|
|
340
|
-
: anyUnavailable
|
|
341
|
-
? "◌"
|
|
342
|
-
: "✓";
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function annotationDetailLine(annotation: LineAnnotation): string | undefined {
|
|
346
|
-
if (annotation.kind === "assertion") return evalAssertionDetailLine(annotation.assertion);
|
|
347
|
-
if (annotation.kind === "send") return sendAnnotationLine(annotation.send);
|
|
348
|
-
const group = annotation.score.groupPath?.join(" · ");
|
|
349
|
-
return [group, annotation.score.label, `${annotation.score.points} pts`].filter(Boolean).join(" · ");
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
function evalSourceLineText(line: ProjectedSourceLine, gutterWidth: number, width: number, indent: string): string[] {
|
|
353
|
-
const glyph = lineGlyph(line.annotations);
|
|
354
|
-
const marginWidth = gutterWidth + 2; // 行号列 + glyph + 分隔空格
|
|
355
|
-
const prefix = `${indent}${padDisplay(String(line.line), gutterWidth)}${glyph} `;
|
|
356
|
-
// 源码行的空白(尤其是缩进)是语义的一部分:wrapDisplay 按单词重排会把连续空格
|
|
357
|
-
// 吃成一个、把缩进整体丢掉(agent-feedback-loop.mdx 的示例明确保留 2/4/6 格嵌套缩进)。
|
|
358
|
-
// 过长的源码行只裁一刀(clip,与其它证据切面的截断口径一致),不按词折成多行——
|
|
359
|
-
// 折行只对续行加统一 margin,救不回已经被吃掉的原始缩进,不如老实截断。
|
|
360
|
-
const available = Math.max(20, width - marginWidth - indent.length);
|
|
361
|
-
const out = [prefix + clip(line.text, available)];
|
|
362
|
-
const margin = `${indent}${" ".repeat(marginWidth)}`;
|
|
363
|
-
for (const annotation of line.annotations) {
|
|
364
|
-
const detail = annotationDetailLine(annotation);
|
|
365
|
-
if (detail === undefined) continue;
|
|
366
|
-
for (const wrapped2 of wrapDisplay(detail, available)) out.push(margin + wrapped2);
|
|
367
|
-
}
|
|
368
|
-
return out;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
function sourceCallSummaryLine(summary: SourceCallSummary): string {
|
|
372
|
-
return [
|
|
373
|
-
`${summary.checks} checks`,
|
|
374
|
-
`${summary.passed} ✓`,
|
|
375
|
-
`${summary.failed} ✗`,
|
|
376
|
-
...(summary.unavailable > 0 ? [`${summary.unavailable} unavailable`] : []),
|
|
377
|
-
...(summary.points ? [`${summary.points.earned}/${summary.points.available} pts`] : []),
|
|
378
|
-
...(summary.aborted ? ["aborted"] : []),
|
|
379
|
-
].join(" · ");
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
function renderOpaqueCall(call: ProjectedSourceCall, indent: string, width: number): string[] {
|
|
383
|
-
const target = call.target;
|
|
384
|
-
if (target.kind === "source") return renderSourceNode(target.node, indent, width);
|
|
385
|
-
const label = target.kind === "package"
|
|
386
|
-
? `package: ${target.package}`
|
|
387
|
-
: `source unavailable: ${target.file}${target.line === undefined ? "" : `:${target.line}`}`;
|
|
388
|
-
const lines = [`${indent}${label}`];
|
|
389
|
-
if (target.kind === "unavailable") {
|
|
390
|
-
for (const annotation of target.annotations) {
|
|
391
|
-
const detail = annotationDetailLine(annotation);
|
|
392
|
-
if (detail) lines.push(...wrapDisplay(detail, Math.max(20, width - indent.length - 2)).map((part) => `${indent} ${part}`));
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
if (call.open) {
|
|
396
|
-
for (const child of target.calls) {
|
|
397
|
-
const childLabel = child.target.kind === "source"
|
|
398
|
-
? child.target.node.file
|
|
399
|
-
: child.target.kind === "package"
|
|
400
|
-
? `package: ${child.target.package}`
|
|
401
|
-
: `source unavailable: ${child.target.file}`;
|
|
402
|
-
lines.push(`${indent}↳ ${childLabel} · ${sourceCallSummaryLine(child.summary)}`);
|
|
403
|
-
if (child.open) lines.push(...renderOpaqueCall(child, `${indent}│ `, width));
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
return lines;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
function renderSourceNode(node: SourceContentNode, indent: string, width: number): string[] {
|
|
410
|
-
const lines: string[] = [`${indent}${node.file}`];
|
|
411
|
-
const gutterWidth = String(node.lines.at(-1)?.line ?? 1).length;
|
|
412
|
-
let previous = 0;
|
|
413
|
-
for (const line of node.lines) {
|
|
414
|
-
if (previous > 0 && line.line > previous + 1) lines.push(`${indent}... ${line.line - previous - 1} lines`);
|
|
415
|
-
else if (previous === 0 && line.line > 1) lines.push(`${indent}... ${line.line - 1} lines`);
|
|
416
|
-
lines.push(...evalSourceLineText(line, gutterWidth, width, indent));
|
|
417
|
-
for (const call of line.calls) {
|
|
418
|
-
const label = call.target.kind === "source"
|
|
419
|
-
? call.target.node.file
|
|
420
|
-
: call.target.kind === "package"
|
|
421
|
-
? `package: ${call.target.package}`
|
|
422
|
-
: `source unavailable: ${call.target.file}`;
|
|
423
|
-
lines.push(`${indent} ↳ ${label} · ${sourceCallSummaryLine(call.summary)}`);
|
|
424
|
-
if (call.open) lines.push(...renderOpaqueCall(call, `${indent} │ `, width));
|
|
425
|
-
}
|
|
426
|
-
previous = line.line;
|
|
427
|
-
}
|
|
428
|
-
return lines;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
function hasClosedCalls(node: SourceContentNode): boolean {
|
|
432
|
-
const visit = (calls: readonly ProjectedSourceCall[]): boolean => calls.some((call) => {
|
|
433
|
-
if (!call.open) return true;
|
|
434
|
-
if (call.target.kind === "source") return hasClosedCalls(call.target.node);
|
|
435
|
-
return visit(call.target.calls);
|
|
436
|
-
});
|
|
437
|
-
return node.lines.some((line) => visit(line.calls));
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* `--eval`:运行时保存的 Eval 源码,gate/soft 断言标回源码行,外加 unmapped 断言(永不丢弃)
|
|
442
|
-
* 与断言计票摘要。`evidence.evalSource === null` 时如实说明源码未捕获,不伪造空文档。
|
|
443
|
-
*/
|
|
444
|
-
export function evalSourceText(
|
|
445
|
-
result: AnnotatedSourceResult,
|
|
446
|
-
opts: { header: string; artifactPath?: string; width: number },
|
|
447
|
-
): string {
|
|
448
|
-
const { header, artifactPath, width } = opts;
|
|
449
|
-
const source = result.source;
|
|
450
|
-
const artifact = artifactPath ? join(artifactPath, "sources.json") : undefined;
|
|
451
|
-
if (!source) {
|
|
452
|
-
return `${header}\n\n(eval source unavailable for this attempt${artifact ? ` · expected: ${artifact}` : ""})`;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
const blocks: string[] = [header, renderSourceNode(source.spine, "", width).join("\n")];
|
|
456
|
-
for (const detached of source.detached) {
|
|
457
|
-
blocks.push(`outside the eval entry · ${renderSourceNode(detached, "", width).join("\n")}`);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
if (source.unmapped.assertions.length > 0 || source.unmapped.scores.length > 0) {
|
|
461
|
-
const unmappedLines = [
|
|
462
|
-
...source.unmapped.assertions.map((assertion) => assertionLine(assertion)),
|
|
463
|
-
...source.unmapped.scores.map((score) => `${score.groupPath?.join(" · ") ?? "score"} · ${score.label} · ${score.points} pts`),
|
|
464
|
-
].map((line) => indentBlock(wrapDisplay(line, width - 2).join("\n"), " "));
|
|
465
|
-
blocks.push(
|
|
466
|
-
[`unmapped evidence (${unmappedLines.length}, no source location):`, ...unmappedLines].join("\n"),
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
const tail = [
|
|
471
|
-
`${source.summary.checks} checks · ${source.summary.passed} passed · ${source.summary.failed} failed` +
|
|
472
|
-
(source.summary.unavailable > 0 ? ` · ${source.summary.unavailable} unavailable` : ""),
|
|
473
|
-
];
|
|
474
|
-
// 标注行的值是收口预览;有未通过断言时给「更进一步」——attempt 首页展开完整 expected /
|
|
475
|
-
// received(含 output tail),再往下是 result.json / events.json。
|
|
476
|
-
if (source.summary.failed > 0 || source.summary.unavailable > 0) {
|
|
477
|
-
tail.push(`full failure detail: niceeval show ${result.locator}`);
|
|
478
|
-
}
|
|
479
|
-
if (hasClosedCalls(source.spine) || source.detached.some(hasClosedCalls)) {
|
|
480
|
-
tail.push(`inline every callee: niceeval show ${result.locator} --source=full`);
|
|
481
|
-
}
|
|
482
|
-
if (artifact) tail.push(`full eval source: ${artifact}`);
|
|
483
|
-
blocks.push(tail.join("\n"));
|
|
484
|
-
return blocks.join("\n\n");
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
// ───────────────────────── 证据切面:--execution(标准事件流 + OTel enrichment) ─────────────────────────
|
|
488
|
-
|
|
489
|
-
function relSeconds(ms: number, originMs: number): string {
|
|
490
|
-
return `${((ms - originMs) / 1000).toFixed(1)}s`;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/** 卡片正文的有界预览预算(docs/feature/reports/show/execution.md「卡片预览预算与 --expand」):
|
|
494
|
-
* 主尺度是行——每个内容段最多显示前 3 行(保留原始换行);每段另有 1 KiB(UTF-8 字节)兜底,
|
|
495
|
-
* 防单行超长的 JSON blob 击穿行预算。 */
|
|
496
|
-
const CARD_SEGMENT_MAX_LINES = 3;
|
|
497
|
-
const CARD_SEGMENT_BUDGET_BYTES = 1024;
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* 按 UTF-8 字节预算截断,永不切断一个 codepoint。快速路径:总字节数不超预算时不做任何逐字符
|
|
501
|
-
* 扫描。慢速路径只在确实超限时才逐 codepoint 累加字节数,找到恰好塞满预算的前缀。
|
|
502
|
-
*/
|
|
503
|
-
function truncateByteBudget(text: string, maxBytes: number): { shown: string; foldedChars: number } {
|
|
504
|
-
if (Buffer.byteLength(text, "utf8") <= maxBytes) return { shown: text, foldedChars: 0 };
|
|
505
|
-
const chars = Array.from(text);
|
|
506
|
-
let bytes = 0;
|
|
507
|
-
let i = 0;
|
|
508
|
-
for (; i < chars.length; i++) {
|
|
509
|
-
const charBytes = Buffer.byteLength(chars[i]!, "utf8");
|
|
510
|
-
if (bytes + charBytes > maxBytes) break;
|
|
511
|
-
bytes += charBytes;
|
|
512
|
-
}
|
|
513
|
-
return { shown: chars.slice(0, i).join(""), foldedChars: chars.length - i };
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
/** 一段内容截断后的状态:`shown` 是保留的前缀,`linesFullyHidden` 是被 3 行上限整行折掉的行数
|
|
517
|
-
* (不含被字节兜底截到一半的那一行),`partialCut` 标记这段是否被字节兜底从中间截断过,
|
|
518
|
-
* `foldedChars` 是这段被折掉的字符总数(= 原文 codepoint 数 − `shown` 的 codepoint 数)。 */
|
|
519
|
-
interface SegmentTruncation {
|
|
520
|
-
shown: string;
|
|
521
|
-
linesFullyHidden: number;
|
|
522
|
-
partialCut: boolean;
|
|
523
|
-
foldedChars: number;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* 单段的行 + 字节双重预算截断(docs/feature/reports/show/execution.md「卡片预览预算与
|
|
528
|
-
* --expand」):先按 3 行裁剪(保留原始换行),再对裁剪结果套 1 KiB 字节兜底(按字符边界回退,
|
|
529
|
-
* 不切分代理对),防单行超长的 JSON blob 击穿行预算。两次裁剪都只从末尾裁,`shown` 因此恒是
|
|
530
|
-
* 原文的一个前缀,折字符数可以直接用两侧 codepoint 数之差倒推。
|
|
531
|
-
*/
|
|
532
|
-
function truncateSegment(text: string): SegmentTruncation {
|
|
533
|
-
const lines = text.split("\n");
|
|
534
|
-
const shownLineCount = Math.min(CARD_SEGMENT_MAX_LINES, lines.length);
|
|
535
|
-
const candidate = lines.slice(0, shownLineCount).join("\n");
|
|
536
|
-
const { shown, foldedChars: byteFoldedChars } = truncateByteBudget(candidate, CARD_SEGMENT_BUDGET_BYTES);
|
|
537
|
-
const totalChars = Array.from(text).length;
|
|
538
|
-
const shownChars = Array.from(shown).length;
|
|
539
|
-
return {
|
|
540
|
-
shown,
|
|
541
|
-
linesFullyHidden: lines.length - shownLineCount,
|
|
542
|
-
partialCut: byteFoldedChars > 0,
|
|
543
|
-
foldedChars: totalChars - shownChars,
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* 卡尾截断提示的聚合(docs/feature/reports/show/execution.md「卡片预览预算与 --expand」):
|
|
549
|
-
* N 是全卡各段被整行折掉的行数之和,再加上「同一张卡里确实有整行被折」时,每个被字节兜底截到
|
|
550
|
-
* 一半的段各计 1 行——这条规则只在 N 本来就 > 0 时生效;如果全卡没有任何一段整行被折、只是
|
|
551
|
-
* 某段字节兜底切了字符(单段本身没超 3 行,但这一两行太长),N 退化为 0,尾巴退化成
|
|
552
|
-
* `(+M chars · …)`,不虚报一行「被折」。返回 undefined 表示这张卡没有任何段被截断,调用方不
|
|
553
|
-
* 应追加尾巴。
|
|
554
|
-
*/
|
|
555
|
-
function foldCardTail(bits: readonly SegmentTruncation[], locator: string, handle: string): string | undefined {
|
|
556
|
-
const totalFoldedChars = bits.reduce((sum, b) => sum + b.foldedChars, 0);
|
|
557
|
-
if (totalFoldedChars === 0) return undefined;
|
|
558
|
-
const totalHiddenLines = bits.reduce((sum, b) => sum + b.linesFullyHidden, 0);
|
|
559
|
-
const partialCutCount = bits.reduce((sum, b) => sum + (b.partialCut ? 1 : 0), 0);
|
|
560
|
-
const n = totalHiddenLines > 0 ? totalHiddenLines + partialCutCount : 0;
|
|
561
|
-
const head = n > 0 ? `+${n} line${n === 1 ? "" : "s"} · ${totalFoldedChars} chars` : `+${totalFoldedChars} chars`;
|
|
562
|
-
return `(${head} · niceeval show ${locator} --execution --expand ${handle})`;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
/** 逐行加前缀,保留原始换行(不做 wrapDisplay 折行——「保留原始换行」是这个区块 text 面的契约)。
|
|
566
|
-
* 空行不补前缀,避免制造纯空白的尾随行。 */
|
|
567
|
-
function indentLines(text: string, indent: string): string {
|
|
568
|
-
if (indent === "") return text;
|
|
569
|
-
return text
|
|
570
|
-
.split("\n")
|
|
571
|
-
.map((line) => (line === "" ? "" : `${indent}${line}`))
|
|
572
|
-
.join("\n");
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
function jsonText(value: unknown): string {
|
|
576
|
-
try {
|
|
577
|
-
return JSON.stringify(value) ?? String(value);
|
|
578
|
-
} catch {
|
|
579
|
-
return String(value);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
/** grep 的一次匹配测试;显式重置 lastIndex,不让调用方传入的全局/粘性正则的内部状态
|
|
584
|
-
* 在多张卡片之间互相污染(RegExp.test 对 g/y 标志有状态)。 */
|
|
585
|
-
function testGrep(grep: RegExp, text: string): boolean {
|
|
586
|
-
if (grep.global || grep.sticky) grep.lastIndex = 0;
|
|
587
|
-
return grep.test(text);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
// ───────────────────────── 卡片模型:句柄、分组、内容 ─────────────────────────
|
|
591
|
-
|
|
592
|
-
/** Agent 事件卡:句柄 `t<轮序>.c<轮内卡序>`,两个序号从 1 起、由 events.json 的事件序确定性派生
|
|
593
|
-
* (docs/feature/reports/show/execution.md「卡片预览预算与 --expand」)。 */
|
|
594
|
-
interface AgentCard {
|
|
595
|
-
handle: string;
|
|
596
|
-
turnNumber: number;
|
|
597
|
-
cardNumber: number;
|
|
598
|
-
node: ExecutionNode;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
interface TurnSection {
|
|
602
|
-
turnNumber: number;
|
|
603
|
-
/** 对应的 timing turn 节点;缺失时(如没有阶段计时)只用序号兜底渲染头行。 */
|
|
604
|
-
turn?: TimingActivity;
|
|
605
|
-
cards: AgentCard[];
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/** Sandbox 命令卡(成功、observed、failed 三态):句柄 `cmd<序号>`,按关联 timing 节点的 startOffsetMs 排序后从 1 编号。 */
|
|
609
|
-
interface CommandCard {
|
|
610
|
-
handle: string;
|
|
611
|
-
command: CommandExitEvidence;
|
|
612
|
-
timingNode?: TimingActivity;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/** `commands.json` 的投影(docs/feature/record/architecture.md「commandsjson」);没有 Sandbox 命令时 evidence.commands 为空。 */
|
|
616
|
-
function commandExitsOf(evidence: ConversationResult): readonly CommandExitEvidence[] {
|
|
617
|
-
return evidence.commands;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
function findTimingActivityById(nodes: readonly TimingActivity[] | undefined, id: string): TimingActivity | undefined {
|
|
621
|
-
for (const n of nodes ?? []) {
|
|
622
|
-
if (n.id === id) return n;
|
|
623
|
-
const found = findTimingActivityById(n.children, id);
|
|
624
|
-
if (found) return found;
|
|
625
|
-
}
|
|
626
|
-
return undefined;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
function findCommandTimingActivity(phases: readonly NonNullable<EvalResult["phases"]>[number][], id: string): TimingActivity | undefined {
|
|
630
|
-
for (const p of phases) {
|
|
631
|
-
const found = findTimingActivityById(p.children, id);
|
|
632
|
-
if (found) return found;
|
|
633
|
-
}
|
|
634
|
-
return undefined;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
/** 失败命令卡按关联 timing 节点的 startOffsetMs 排序后编号;关联不到节点的排到最后(仍确定性,
|
|
638
|
-
* 按原始 commands.json 顺序兜底)。 */
|
|
639
|
-
function buildCommandCards(evidence: ConversationResult): CommandCard[] {
|
|
640
|
-
const commands = commandExitsOf(evidence);
|
|
641
|
-
if (commands.length === 0) return [];
|
|
642
|
-
const phases = evidence.phases;
|
|
643
|
-
const withNode = commands.map((command, index) => ({ command, index, timingNode: findCommandTimingActivity(phases, command.timingNodeId) }));
|
|
644
|
-
withNode.sort((a, b) =>
|
|
645
|
-
(a.timingNode?.startOffsetMs ?? Number.POSITIVE_INFINITY) - (b.timingNode?.startOffsetMs ?? Number.POSITIVE_INFINITY) ||
|
|
646
|
-
a.index - b.index,
|
|
647
|
-
);
|
|
648
|
-
return withNode.map((entry, i) => ({ handle: `cmd${i + 1}`, command: entry.command, timingNode: entry.timingNode }));
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* 按轮分段(docs/feature/reports/show.md「--execution」):边界按用户消息切(t.send 恒以用户消息
|
|
653
|
-
* 开轮)。事件流不以用户消息开头的极端情形(如首个事件是前置注入)仍归入轮 1——句柄两个序号从 1
|
|
654
|
-
* 起是契约,不发明 0 号轮。
|
|
655
|
-
*/
|
|
656
|
-
function groupIntoTurnCards(agentNodes: readonly ExecutionNode[], turnNodes: readonly TimingActivity[]): TurnSection[] {
|
|
657
|
-
const turns: TurnSection[] = [];
|
|
658
|
-
for (const node of agentNodes) {
|
|
659
|
-
const isTurnStart = node.kind === "message" && node.role === "user";
|
|
660
|
-
if (isTurnStart || turns.length === 0) {
|
|
661
|
-
const turnNumber = turns.length + 1;
|
|
662
|
-
turns.push({ turnNumber, turn: turnNodes[turnNumber - 1], cards: [] });
|
|
663
|
-
}
|
|
664
|
-
const section = turns[turns.length - 1]!;
|
|
665
|
-
const cardNumber = section.cards.length + 1;
|
|
666
|
-
section.cards.push({ handle: `t${section.turnNumber}.c${cardNumber}`, turnNumber: section.turnNumber, cardNumber, node });
|
|
667
|
-
}
|
|
668
|
-
return turns;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
function nodeMeta(node: ExecutionNode, originMs: number): string {
|
|
672
|
-
const span = node.kind !== "telemetry" ? node.span : undefined;
|
|
673
|
-
if (!span) return "";
|
|
674
|
-
return `${relSeconds(span.startMs, originMs)} · ${formatDurationMs(span.endMs - span.startMs)}`;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/** 卡片正文的一个内容段(docs/feature/reports/show/execution.md「卡片预览预算与 --expand」):
|
|
678
|
-
* 预览预算(3 行 + 1 KiB 兜底)按段独立截断,不是对整卡正文一次性截断。 */
|
|
679
|
-
interface CardSegment {
|
|
680
|
-
/** 段的骨架行(如 `input` / `result · completed`);不计入预算、不截断。undefined 表示这段
|
|
681
|
-
* 没有骨架行——单段卡的正文,或失败命令卡的命令行本身。 */
|
|
682
|
-
label?: string;
|
|
683
|
-
/** 这段的完整(未截断)原始内容,保留原始换行;预算截断与 --expand 的完整输出都基于它。 */
|
|
684
|
-
text: string;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
interface CardParts {
|
|
688
|
-
/** 卡片标题行(不缩进,含 kind 标签与相对时间/耗时 meta)。 */
|
|
689
|
-
header: string;
|
|
690
|
-
/** 卡片正文按结构划分的段落;角色文本/thinking 这类单段卡只有 1 段,TOOL 卡 input/result
|
|
691
|
-
* 各一段,失败命令卡命令行/stdout/stderr 各一段。 */
|
|
692
|
-
segments: CardSegment[];
|
|
693
|
-
/** --grep 的匹配面:角色文本、工具名、input、result(docs/feature/reports/show/execution.md
|
|
694
|
-
* 「范围化:跨 attempt 扫描与 --grep」);未经截断,grep 命中不受预览预算影响。 */
|
|
695
|
-
matchText: string;
|
|
696
|
-
/** 截断尾巴相对卡片正文的额外缩进——多段结构(如 TOOL 的 input/result)的正文本身已经带
|
|
697
|
-
* 一层内嵌缩进,尾巴要落在同一层,不是贴着卡片左边。 */
|
|
698
|
-
tailIndent: string;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
/** 一个 Agent 事件节点 → 卡片的标题/段落/匹配面。`node.kind` 已排除 telemetry(见调用方的
|
|
702
|
-
* agentNodes 过滤),telemetry 分支仅为联合类型穷尽性存在,不会被触达。 */
|
|
703
|
-
function agentCardParts(node: ExecutionNode, originMs: number): CardParts {
|
|
704
|
-
const meta = nodeMeta(node, originMs);
|
|
705
|
-
const withMeta = (title: string) => (meta ? `${title} ${meta}` : title);
|
|
706
|
-
switch (node.kind) {
|
|
707
|
-
case "message":
|
|
708
|
-
return { header: withMeta(node.role.toUpperCase()), segments: [{ text: node.text }], matchText: node.text, tailIndent: "" };
|
|
709
|
-
case "thinking":
|
|
710
|
-
return { header: withMeta("THINKING"), segments: [{ text: node.text }], matchText: node.text, tailIndent: "" };
|
|
711
|
-
case "context.injected":
|
|
712
|
-
return {
|
|
713
|
-
header: withMeta(node.source ? `CONTEXT INJECTED · ${node.source}` : "CONTEXT INJECTED"),
|
|
714
|
-
segments: [{ text: node.text }],
|
|
715
|
-
matchText: node.text,
|
|
716
|
-
tailIndent: "",
|
|
717
|
-
};
|
|
718
|
-
case "skill.loaded":
|
|
719
|
-
return { header: withMeta(`SKILL · ${node.skill}`), segments: [{ text: "loaded" }], matchText: node.skill, tailIndent: "" };
|
|
720
|
-
case "action": {
|
|
721
|
-
const input = recordOf(node.input);
|
|
722
|
-
const output = recordOf(node.output);
|
|
723
|
-
const inputText = typeof input?.command === "string" ? input.command : jsonText(node.input);
|
|
724
|
-
const outputText = typeof output?.output === "string"
|
|
725
|
-
? output.output
|
|
726
|
-
: node.output !== undefined
|
|
727
|
-
? jsonText(node.output)
|
|
728
|
-
: "(no result)";
|
|
729
|
-
const exit = typeof output?.exit_code === "number" ? ` · exit ${output.exit_code}` : "";
|
|
730
|
-
return {
|
|
731
|
-
header: withMeta(`TOOL · ${node.name}`),
|
|
732
|
-
segments: [
|
|
733
|
-
{ label: "input", text: inputText },
|
|
734
|
-
{ label: `result · ${node.status}${exit}`, text: outputText },
|
|
735
|
-
],
|
|
736
|
-
matchText: `${node.name} ${inputText} ${outputText}`,
|
|
737
|
-
tailIndent: " ",
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
case "subagent": {
|
|
741
|
-
const resultText = node.output === undefined ? node.status : `result · ${node.status}: ${jsonText(node.output)}`;
|
|
742
|
-
return { header: withMeta(`SUBAGENT · ${node.name}`), segments: [{ text: resultText }], matchText: `${node.name} ${resultText}`, tailIndent: "" };
|
|
743
|
-
}
|
|
744
|
-
case "input.requested": {
|
|
745
|
-
const text = node.request.prompt ?? node.request.display ?? "(input requested)";
|
|
746
|
-
const matchText = [text, node.request.action, node.request.input !== undefined ? jsonText(node.request.input) : undefined]
|
|
747
|
-
.filter((s): s is string => s !== undefined)
|
|
748
|
-
.join(" ");
|
|
749
|
-
return { header: withMeta("INPUT REQUESTED"), segments: [{ text }], matchText, tailIndent: "" };
|
|
750
|
-
}
|
|
751
|
-
case "compaction":
|
|
752
|
-
return { header: withMeta("COMPACTION"), segments: [{ text: node.reason ?? "context compacted" }], matchText: node.reason ?? "", tailIndent: "" };
|
|
753
|
-
case "error":
|
|
754
|
-
return { header: withMeta("ERROR"), segments: [{ text: node.message }], matchText: node.message, tailIndent: "" };
|
|
755
|
-
case "telemetry":
|
|
756
|
-
return { header: "TELEMETRY", segments: [], matchText: "", tailIndent: "" };
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
function commandCardParts(command: CommandExitEvidence): CardParts {
|
|
761
|
-
const segments: CardSegment[] = [{ text: command.display }];
|
|
762
|
-
if (command.stdout) segments.push({ label: "stdout", text: command.stdout });
|
|
763
|
-
if (command.stderr) segments.push({ label: "stderr", text: command.stderr });
|
|
764
|
-
return {
|
|
765
|
-
header: "",
|
|
766
|
-
segments,
|
|
767
|
-
matchText: `${command.display} ${command.stdout} ${command.stderr}`,
|
|
768
|
-
tailIndent: " ",
|
|
769
|
-
};
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
function commandCardHeader(entry: CommandCard): string {
|
|
773
|
-
const duration = entry.timingNode ? ` · ${formatDurationMs(entry.timingNode.durationMs)}` : "";
|
|
774
|
-
const title =
|
|
775
|
-
entry.command.exitCode === 0 ? "COMMAND"
|
|
776
|
-
: entry.command.checked ? "FAILED COMMAND"
|
|
777
|
-
: "NON-ZERO COMMAND · observed";
|
|
778
|
-
return `${title} · ${entry.command.phase} · exit ${entry.command.exitCode}${duration}`;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
/** turn 头行:`标签 · status · 该轮墙钟 · 该轮 usage`(usage 有记录才出现;docs/feature/reports/
|
|
782
|
-
* show/execution.md)。usage 读 TimingActivity.usage(该轮 `Turn.usage` 落盘原样),字段不存在时
|
|
783
|
-
* 这一段照常省略。 */
|
|
784
|
-
function turnHeadLine(section: TurnSection): string {
|
|
785
|
-
const label = normalizeTurnLabel(section.turn?.label ?? formatTurnLabel(1, section.turnNumber));
|
|
786
|
-
const status = section.turn?.failed ? "failed" : "completed";
|
|
787
|
-
const parts = [label, status];
|
|
788
|
-
if (section.turn) parts.push(formatDurationMs(section.turn.durationMs));
|
|
789
|
-
const usage = turnUsageText(section.turn);
|
|
790
|
-
if (usage) parts.push(usage);
|
|
791
|
-
return parts.join(" · ");
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
function turnUsageText(turn: TimingActivity | undefined): string | undefined {
|
|
795
|
-
const usage = turn?.usage;
|
|
796
|
-
if (!usage) return undefined;
|
|
797
|
-
const parts: string[] = [];
|
|
798
|
-
if (usage.inputTokens !== undefined && usage.outputTokens !== undefined) {
|
|
799
|
-
const total = usage.inputTokens + usage.outputTokens + (usage.cacheReadTokens ?? 0) + (usage.cacheCreationTokens ?? 0);
|
|
800
|
-
parts.push(`${formatMetricValue(total)} tok`);
|
|
801
|
-
}
|
|
802
|
-
if (usage.costUSD !== undefined) parts.push(formatUSD(usage.costUSD));
|
|
803
|
-
return parts.length > 0 ? parts.join(" · ") : undefined;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* 一张卡片的完整渲染:`full` 时逐段输出未截断的落盘内容(--expand);否则每段独立按 3 行 + 1 KiB
|
|
808
|
-
* 预算截断(docs/feature/reports/show/execution.md「卡片预览预算与 --expand」),卡尾追加一条
|
|
809
|
-
* 聚合尾巴。带 `label` 的段(TOOL 的 input/result、失败命令的 stdout/stderr)先输出骨架行,
|
|
810
|
-
* 段正文本身再多缩进一层;没有 label 的段(单段卡的正文,命令行本身)正文与骨架行同一层。
|
|
811
|
-
* 两种形态都只做逐行前缀(indentLines),不做 wrapDisplay 折行——保留原始换行是这个区块 text
|
|
812
|
-
* 面的契约,不是遗漏。
|
|
813
|
-
*/
|
|
814
|
-
function renderCardLines(parts: CardParts, handle: string, locator: string, full: boolean): string[] {
|
|
815
|
-
const bodyLines: string[] = [];
|
|
816
|
-
const truncations: SegmentTruncation[] = [];
|
|
817
|
-
for (const seg of parts.segments) {
|
|
818
|
-
let content: string;
|
|
819
|
-
if (full) {
|
|
820
|
-
content = seg.text;
|
|
821
|
-
} else {
|
|
822
|
-
const t = truncateSegment(seg.text);
|
|
823
|
-
truncations.push(t);
|
|
824
|
-
content = t.shown;
|
|
825
|
-
}
|
|
826
|
-
if (seg.label) {
|
|
827
|
-
bodyLines.push(seg.label, ...indentLines(content, " ").split("\n"));
|
|
828
|
-
} else {
|
|
829
|
-
bodyLines.push(...content.split("\n"));
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
if (!full) {
|
|
833
|
-
const tail = foldCardTail(truncations, locator, handle);
|
|
834
|
-
if (tail) bodyLines.push(`${parts.tailIndent}${tail}`);
|
|
835
|
-
}
|
|
836
|
-
const body = indentLines(bodyLines.join("\n"), " ");
|
|
837
|
-
return parts.header ? [parts.header, ...body.split("\n")] : body.split("\n");
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
// ───────────────────────── --execution 三种输出形态 ─────────────────────────
|
|
841
|
-
|
|
842
|
-
function executionTail(
|
|
843
|
-
evidence: ConversationResult,
|
|
844
|
-
tree: ExecutionTree | null,
|
|
845
|
-
timingAvailable: boolean,
|
|
846
|
-
telemetryCount: number,
|
|
847
|
-
eventsSource: string | undefined,
|
|
848
|
-
artifactPath: string | undefined,
|
|
849
|
-
): string[] {
|
|
850
|
-
const tail: string[] = [];
|
|
851
|
-
if (timingAvailable) {
|
|
852
|
-
const nodes = tree?.nodes ?? [];
|
|
853
|
-
const skillLoads = nodes.filter((n) => n.kind === "skill.loaded").length;
|
|
854
|
-
const toolCalls = nodes.filter((n) => n.kind === "action").length;
|
|
855
|
-
const aiMessages = nodes.filter((n) => n.kind === "message" && n.role === "assistant").length;
|
|
856
|
-
tail.push(
|
|
857
|
-
[
|
|
858
|
-
`total ${formatDurationMs(evidence.durationMs)}`,
|
|
859
|
-
`${skillLoads} skill ${skillLoads === 1 ? "load" : "loads"}`,
|
|
860
|
-
`${toolCalls} tool ${toolCalls === 1 ? "call" : "calls"}`,
|
|
861
|
-
`${aiMessages} AI ${aiMessages === 1 ? "message" : "messages"}`,
|
|
862
|
-
].join(" · "),
|
|
863
|
-
);
|
|
864
|
-
} else {
|
|
865
|
-
tail.push("timing unavailable · OTel trace was not collected");
|
|
866
|
-
}
|
|
867
|
-
if (eventsSource) tail.push(`full events: ${eventsSource}`);
|
|
868
|
-
if (telemetryCount > 0) tail.push(`${telemetryCount} unlinked telemetry spans omitted; inspect the OTel trace for framework timing.`);
|
|
869
|
-
if (timingAvailable && artifactPath) tail.push(`full OTel trace: ${join(artifactPath, "trace.json")}`);
|
|
870
|
-
return tail;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
type OrderedExecutionBlock =
|
|
874
|
-
| { kind: "turn"; section: TurnSection; order: number }
|
|
875
|
-
| { kind: "command"; entry: CommandCard; order: number };
|
|
876
|
-
|
|
877
|
-
const CLOSING_COMMAND_PHASES = new Set(["agent.teardown", "sandbox.cleanup", "sandbox.suspend", "sandbox.stop"]);
|
|
878
|
-
|
|
879
|
-
function commandPlacement(phase: string): number {
|
|
880
|
-
return CLOSING_COMMAND_PHASES.has(phase) ? 2 : phase === "eval.run" ? 1 : 0;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
/** execution 的生命周期命令独立成卡,按 setup/turn/teardown 的 timing 位置安插。 */
|
|
884
|
-
function orderedExecutionBlocks(
|
|
885
|
-
turns: readonly TurnSection[],
|
|
886
|
-
commandCards: readonly CommandCard[],
|
|
887
|
-
): OrderedExecutionBlock[] {
|
|
888
|
-
const blocks: OrderedExecutionBlock[] = turns.map((section, index) => ({ kind: "turn", section, order: index }));
|
|
889
|
-
for (const [index, entry] of commandCards.entries()) blocks.push({ kind: "command", entry, order: turns.length + index });
|
|
890
|
-
return blocks.sort((a, b) => {
|
|
891
|
-
const aPosition = a.kind === "command" ? commandPlacement(a.entry.command.phase) : 1;
|
|
892
|
-
const bPosition = b.kind === "command" ? commandPlacement(b.entry.command.phase) : 1;
|
|
893
|
-
if (aPosition !== bPosition) return aPosition - bPosition;
|
|
894
|
-
const aOffset = a.kind === "command" ? a.entry.timingNode?.startOffsetMs : a.section.turn?.startOffsetMs;
|
|
895
|
-
const bOffset = b.kind === "command" ? b.entry.timingNode?.startOffsetMs : b.section.turn?.startOffsetMs;
|
|
896
|
-
return (aOffset ?? Number.POSITIVE_INFINITY) - (bOffset ?? Number.POSITIVE_INFINITY) || a.order - b.order;
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
/** 全量渲染(无 --grep/--expand):轮次与独立命令证据按 lifecycle timing 合并,末尾追加事实小结。 */
|
|
901
|
-
function renderFull(
|
|
902
|
-
evidence: ConversationResult,
|
|
903
|
-
header: string,
|
|
904
|
-
tree: ExecutionTree | null,
|
|
905
|
-
timingAvailable: boolean,
|
|
906
|
-
telemetryCount: number,
|
|
907
|
-
eventsSource: string | undefined,
|
|
908
|
-
artifactPath: string | undefined,
|
|
909
|
-
turns: readonly TurnSection[],
|
|
910
|
-
commandCards: readonly CommandCard[],
|
|
911
|
-
originMs: number,
|
|
912
|
-
): string {
|
|
913
|
-
const lines: string[] = [];
|
|
914
|
-
for (const [i, block] of orderedExecutionBlocks(turns, commandCards).entries()) {
|
|
915
|
-
if (i > 0) lines.push("");
|
|
916
|
-
if (block.kind === "turn") {
|
|
917
|
-
const section = block.section;
|
|
918
|
-
lines.push(turnHeadLine(section));
|
|
919
|
-
section.cards.forEach((card, j) => {
|
|
920
|
-
if (j > 0) lines.push("");
|
|
921
|
-
const parts = agentCardParts(card.node, originMs);
|
|
922
|
-
lines.push(...renderCardLines(parts, card.handle, evidence.locator, false).map((l) => ` ${l}`));
|
|
923
|
-
});
|
|
924
|
-
} else {
|
|
925
|
-
const entry = block.entry;
|
|
926
|
-
const parts = commandCardParts(entry.command);
|
|
927
|
-
lines.push(...renderCardLines({ ...parts, header: commandCardHeader(entry) }, entry.handle, evidence.locator, false).map((l) => ` ${l}`));
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
const tail = executionTail(evidence, tree, timingAvailable, telemetryCount, eventsSource, artifactPath);
|
|
931
|
-
return `${header}\n\n${lines.join("\n")}\n\n${tail.join("\n")}`;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* `--grep`:只输出命中的卡片,每卡自带定位行(locator · evalId · experimentId · 所在轮/阶段,
|
|
936
|
-
* 不是 verdict——grep 结果关心「这条证据在哪一轮」,不是判定)。命中卡照常受预览预算约束。
|
|
937
|
-
* 0 命中与「N matches in M attempts」的最终措辞归调用方,这里只回填 matches 数。
|
|
938
|
-
*/
|
|
939
|
-
function renderGrep(
|
|
940
|
-
evidence: ConversationResult,
|
|
941
|
-
turns: readonly TurnSection[],
|
|
942
|
-
commandCards: readonly CommandCard[],
|
|
943
|
-
grep: RegExp,
|
|
944
|
-
originMs: number,
|
|
945
|
-
): { text: string; matches: number } {
|
|
946
|
-
const blocks: string[] = [];
|
|
947
|
-
let matches = 0;
|
|
948
|
-
for (const section of turns) {
|
|
949
|
-
for (const card of section.cards) {
|
|
950
|
-
const parts = agentCardParts(card.node, originMs);
|
|
951
|
-
if (!testGrep(grep, parts.matchText)) continue;
|
|
952
|
-
matches += 1;
|
|
953
|
-
const locatorLine = [evidence.locator, evidence.identity.evalId, evidence.experimentId, normalizeTurnLabel(section.turn?.label ?? formatTurnLabel(1, section.turnNumber))].join(
|
|
954
|
-
" · ",
|
|
955
|
-
);
|
|
956
|
-
const cardLines = renderCardLines(parts, card.handle, evidence.locator, false);
|
|
957
|
-
blocks.push([locatorLine, ...cardLines.map((l) => ` ${l}`)].join("\n"));
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
for (const entry of commandCards) {
|
|
961
|
-
const parts = commandCardParts(entry.command);
|
|
962
|
-
if (!testGrep(grep, parts.matchText)) continue;
|
|
963
|
-
matches += 1;
|
|
964
|
-
const locatorLine = [evidence.locator, evidence.identity.evalId, evidence.experimentId, entry.command.phase].join(" · ");
|
|
965
|
-
const cardLines = renderCardLines({ ...parts, header: commandCardHeader(entry) }, entry.handle, evidence.locator, false);
|
|
966
|
-
blocks.push([locatorLine, ...cardLines.map((l) => ` ${l}`)].join("\n"));
|
|
967
|
-
}
|
|
968
|
-
return { text: blocks.join("\n\n"), matches };
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* `--expand <handle>`:句柄未命中(轮/卡序号或命令序号超界,或语法不认识)按用法错误抛出,报该
|
|
973
|
-
* attempt 实际的 turn 数与该 turn 的卡片数(或命令数)——不猜相邻卡片
|
|
974
|
-
* (docs/feature/reports/show/execution.md「卡片预览预算与 --expand」)。
|
|
975
|
-
*/
|
|
976
|
-
function renderExpand(
|
|
977
|
-
evidence: ConversationResult,
|
|
978
|
-
header: string,
|
|
979
|
-
turns: readonly TurnSection[],
|
|
980
|
-
commandCards: readonly CommandCard[],
|
|
981
|
-
handle: string,
|
|
982
|
-
originMs: number,
|
|
983
|
-
): string {
|
|
984
|
-
const agentMatch = /^t(\d+)\.c(\d+)$/.exec(handle);
|
|
985
|
-
const cmdMatch = /^cmd(\d+)$/.exec(handle);
|
|
986
|
-
if (agentMatch) {
|
|
987
|
-
const turnNumber = Number(agentMatch[1]);
|
|
988
|
-
const cardNumber = Number(agentMatch[2]);
|
|
989
|
-
const section = turns.find((s) => s.turnNumber === turnNumber);
|
|
990
|
-
if (!section) {
|
|
991
|
-
throw new Error(`handle "${handle}" not found: this attempt has ${turns.length} turn${turns.length === 1 ? "" : "s"}.`);
|
|
992
|
-
}
|
|
993
|
-
const card = section.cards.find((c) => c.cardNumber === cardNumber);
|
|
994
|
-
if (!card) {
|
|
995
|
-
throw new Error(`handle "${handle}" not found: turn ${turnNumber} has ${section.cards.length} card${section.cards.length === 1 ? "" : "s"}.`);
|
|
996
|
-
}
|
|
997
|
-
const parts = agentCardParts(card.node, originMs);
|
|
998
|
-
const lines = renderCardLines(parts, handle, evidence.locator, true);
|
|
999
|
-
return `${header}\n\n${lines.join("\n")}`;
|
|
1000
|
-
}
|
|
1001
|
-
if (cmdMatch) {
|
|
1002
|
-
const n = Number(cmdMatch[1]);
|
|
1003
|
-
const entry = commandCards[n - 1];
|
|
1004
|
-
if (!entry) {
|
|
1005
|
-
throw new Error(
|
|
1006
|
-
`handle "${handle}" not found: this attempt has ${commandCards.length} command exit${commandCards.length === 1 ? "" : "s"}.`,
|
|
1007
|
-
);
|
|
1008
|
-
}
|
|
1009
|
-
const parts = commandCardParts(entry.command);
|
|
1010
|
-
const lines = renderCardLines({ ...parts, header: commandCardHeader(entry) }, handle, evidence.locator, true);
|
|
1011
|
-
return `${header}\n\n${lines.join("\n")}`;
|
|
1012
|
-
}
|
|
1013
|
-
throw new Error(`invalid handle "${handle}": expected "t<turn>.c<card>" or "cmd<n>".`);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
/** `--execution` 的渲染选项(docs/feature/reports/show/execution.md):两者互斥,`expand` 优先——
|
|
1017
|
-
* 校验层面的「--expand 与 --grep 不能组合」不是这里的职责,这里按存在性直接分支。 */
|
|
1018
|
-
export interface ExecutionRenderOptions {
|
|
1019
|
-
/** JS 正则;有值时只输出命中的卡片,每卡带定位行。 */
|
|
1020
|
-
grep?: RegExp;
|
|
1021
|
-
/** 展开句柄(`t<N>.c<M>` 或 `cmd<N>`);有值时只输出该卡片完整落盘内容(不截断),未命中抛
|
|
1022
|
-
* 带 turn/卡计数(或命令计数)的 Error。 */
|
|
1023
|
-
expand?: string;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* `--execution`:标准事件流骨架(message / thinking / context.injected / skill load /
|
|
1028
|
-
* tool call+result / subagent / input.requested / compaction / error)按轮分段渲染成卡片,
|
|
1029
|
-
* 有 OTel 时同一节点补相对时间与耗时;没有 OTel 时节点、顺序与内容不变,只去掉时间列,并在结尾
|
|
1030
|
-
* 如实标 timing unavailable(ExecutionTree 的契约:骨架不因时间有无而变形,见
|
|
1031
|
-
* o11y/execution-tree.ts 头注)。除 Agent 事件外,attempt 按 lifecycle timing 放置独立的
|
|
1032
|
-
* Sandbox 命令退出卡(`cmd<N>`,来自 `commands.json`,经 `evidence.commands` 读取;没有命令
|
|
1033
|
-
* 退出时这一段自然零输出,见 `commandExitsOf`)。
|
|
1034
|
-
*
|
|
1035
|
-
* 卡片正文按段(单段卡的正文、TOOL 卡的 input/result、命令证据卡的命令行/stdout/stderr)分别是
|
|
1036
|
-
* 3 行(保留原始换行)的有界预览,单段另有 1 KiB 字节兜底(按字符边界回退);截断尾巴带被折
|
|
1037
|
-
* 行数与字符数、以及展开句柄(全卡没有整行被折、只是字节兜底切了字符时,行数退化为省略)。
|
|
1038
|
-
* `options.expand` 精确定位一张卡片输出完整落盘内容;`options.grep` 只输出匹配面(角色文本/
|
|
1039
|
-
* 工具名/input/result,命令卡另加 display/stdout/stderr)命中的卡片,返回值的 `matches` 是本
|
|
1040
|
-
* attempt 内的命中卡片数——「N matches in M attempts」与 0 命中的措辞归调用方组装。
|
|
1041
|
-
*/
|
|
1042
|
-
export function executionText(
|
|
1043
|
-
input: ConversationResult | AttemptEvidence,
|
|
1044
|
-
opts: { header: string; artifactPath?: string; width: number },
|
|
1045
|
-
options?: ExecutionRenderOptions,
|
|
1046
|
-
): { text: string; matches?: number } {
|
|
1047
|
-
const evidence: ConversationResult = "conversation" in input ? input : {
|
|
1048
|
-
locator: input.locator,
|
|
1049
|
-
experimentId: input.experimentId,
|
|
1050
|
-
identity: input.identity,
|
|
1051
|
-
conversation: null,
|
|
1052
|
-
execution: input.execution,
|
|
1053
|
-
commands: input.commands ?? [],
|
|
1054
|
-
phases: input.result.phases ?? [],
|
|
1055
|
-
durationMs: input.result.durationMs,
|
|
1056
|
-
};
|
|
1057
|
-
const { header, artifactPath } = opts;
|
|
1058
|
-
const tree = evidence.execution;
|
|
1059
|
-
const eventsSource = artifactPath ? join(artifactPath, "events.json") : undefined;
|
|
1060
|
-
|
|
1061
|
-
const timingAvailable = tree?.timingAvailable ?? false;
|
|
1062
|
-
const spanStarts = tree ? tree.nodes.flatMap((n) => (n.span ? [n.span.startMs] : [])) : [];
|
|
1063
|
-
const originMs = spanStarts.length > 0 ? Math.min(...spanStarts) : 0;
|
|
1064
|
-
|
|
1065
|
-
// `--execution` 回答 Agent 做了什么。未关联到标准事件的原始 spans 属于 trace 证据,
|
|
1066
|
-
// 逐条混入 transcript 会把几十条 SDK 内部 span 盖过消息和工具调用。
|
|
1067
|
-
const agentNodes = tree ? tree.nodes.filter((node) => node.kind !== "telemetry") : [];
|
|
1068
|
-
const telemetryCount = tree ? tree.nodes.length - agentNodes.length : 0;
|
|
1069
|
-
|
|
1070
|
-
// 按轮分段(见 docs/feature/reports/show.md「--execution」):边界按用户消息切
|
|
1071
|
-
// (t.send 恒以用户消息开轮),turn 身份取自 result.json.phases 的 turn 时间树。
|
|
1072
|
-
const turnNodes = evidence.phases
|
|
1073
|
-
.flatMap((p) => p.children ?? [])
|
|
1074
|
-
.filter((n) => n.key === "agent.turn");
|
|
1075
|
-
|
|
1076
|
-
const turns = groupIntoTurnCards(agentNodes, turnNodes);
|
|
1077
|
-
const commandCards = buildCommandCards(evidence);
|
|
1078
|
-
|
|
1079
|
-
if (options?.expand !== undefined) {
|
|
1080
|
-
return { text: renderExpand(evidence, header, turns, commandCards, options.expand, originMs) };
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
if (agentNodes.length === 0 && commandCards.length === 0) {
|
|
1084
|
-
if (options?.grep) return { text: "", matches: 0 };
|
|
1085
|
-
return { text: `${header}\n\n(no events recorded for this attempt${eventsSource ? ` · expected: ${eventsSource}` : ""})` };
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
if (options?.grep) {
|
|
1089
|
-
return renderGrep(evidence, turns, commandCards, options.grep, originMs);
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
return { text: renderFull(evidence, header, tree, timingAvailable, telemetryCount, eventsSource, artifactPath, turns, commandCards, originMs) };
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
/** net 效果的单字母标记(A/M/D;none = 动过但净无变化,标 ±)。 */
|
|
1096
|
-
// ───────────────────────── 证据切面:diff ─────────────────────────
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* `--diff` 摘要与 `--diff=<path>` 的逐窗口 patch 都读 attemptDiffData 这一份投影
|
|
1100
|
-
* (docs/feature/reports/show/diff.md),渲染函数与 DiffView 的 text 面同一个,不另算一遍。
|
|
1101
|
-
*/
|
|
1102
|
-
export function diffText(opts: {
|
|
1103
|
-
header: string;
|
|
1104
|
-
data: AttemptDiffData | null;
|
|
1105
|
-
artifactPath?: string;
|
|
1106
|
-
/** --diff=<路径>:看单个文件的完整内容。 */
|
|
1107
|
-
file?: string;
|
|
1108
|
-
}): string {
|
|
1109
|
-
const { header, data, artifactPath, file } = opts;
|
|
1110
|
-
const source = artifactPath ? join(artifactPath, "diff.json") : undefined;
|
|
1111
|
-
if (data === null) {
|
|
1112
|
-
return `${header}\n\ndiff unavailable (no diff recorded for this attempt: Direct Agent, or diff artifact not published${source ? `; expected: ${source}` : ""})`;
|
|
1113
|
-
}
|
|
1114
|
-
const files = data.files;
|
|
1115
|
-
|
|
1116
|
-
if (file !== undefined) {
|
|
1117
|
-
const entry = files.find((f) => f.path === file);
|
|
1118
|
-
if (entry === undefined) {
|
|
1119
|
-
const known = files.map((f) => f.path);
|
|
1120
|
-
return `${header}\n\nFile "${file}" is not in this attempt's agent diff. Files: ${known.join(", ") || "(none)"}`;
|
|
1121
|
-
}
|
|
1122
|
-
return `${header}\n\n${diffFilePatchText(entry)}${source ? `\n\n(full diff: ${source})` : ""}`;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
if (files.length === 0) {
|
|
1126
|
-
return `${header}\n\n(no file changes by the agent in any send window${source ? ` · full diff: ${source}` : ""})`;
|
|
1127
|
-
}
|
|
1128
|
-
return `${header}\n\n${diffSummaryText(files, { singleFileHint: true })}`;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
// ───────────────────────── 证据切面:--timing(统一时间树) ─────────────────────────
|
|
1132
|
-
|
|
1133
|
-
const CLOSING_PHASE_NAMES = new Set(["agent.teardown", "sandbox.cleanup", "sandbox.suspend", "sandbox.stop"]);
|
|
1134
|
-
|
|
1135
|
-
const TIMING_DETAIL_NODE_BUDGET = 80;
|
|
1136
|
-
|
|
1137
|
-
interface DiagnosticTimingActivity {
|
|
1138
|
-
id: string;
|
|
1139
|
-
label: string;
|
|
1140
|
-
startOffsetMs: number;
|
|
1141
|
-
durationMs: number;
|
|
1142
|
-
failed: boolean;
|
|
1143
|
-
otel: boolean;
|
|
1144
|
-
/** 命令节点的时限归属(采集端写下的事实,renderer 只投影)。 */
|
|
1145
|
-
limit?: CommandLimitAttribution;
|
|
1146
|
-
children: DiagnosticTimingActivity[];
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
/** 时限来源层的人读词(词表单源在 docs/feature/sandbox/architecture.md「时限归属」)。 */
|
|
1150
|
-
const TIMING_LIMIT_SOURCE_LABEL: Readonly<globalThis.Record<CommandLimitAttribution["source"], string>> = {
|
|
1151
|
-
"attempt-deadline": "attempt deadline",
|
|
1152
|
-
"command-timeout": "per-command timeout",
|
|
1153
|
-
"provider-limit": "provider limit",
|
|
1154
|
-
};
|
|
1155
|
-
|
|
1156
|
-
/** `deadline 1m 0s · per-command timeout`:生效的值 + 它来自哪一层,两样一起给。 */
|
|
1157
|
-
function timingLimitNote(limit: CommandLimitAttribution): string {
|
|
1158
|
-
return `deadline ${formatDurationMs(limit.limitMs)} · ${TIMING_LIMIT_SOURCE_LABEL[limit.source]}`;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
function timingNodeLabel(node: TimingActivity): string {
|
|
1162
|
-
// 结构化字段归 key 所有:sandbox.command / agent.turn 用自己的摘要形态。
|
|
1163
|
-
// 其它 key(含未知)一律渲染 producer 的 label——不查 LifecyclePhase 锚点表,也不对 key 穷尽 switch。
|
|
1164
|
-
if (node.key === "sandbox.command" && node.command) return `shell · ${node.command.display}`;
|
|
1165
|
-
if (node.key === "agent.turn") return `turn ${normalizeTurnLabel(node.label)}`;
|
|
1166
|
-
return node.label;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
function traceReferenceCounts(nodes: readonly TimingActivity[], counts = new Map<string, number>()): Map<string, number> {
|
|
1170
|
-
for (const node of nodes) {
|
|
1171
|
-
if (node.key === "agent.turn" && node.traceId) counts.set(node.traceId, (counts.get(node.traceId) ?? 0) + 1);
|
|
1172
|
-
traceReferenceCounts(node.children ?? [], counts);
|
|
1173
|
-
}
|
|
1174
|
-
return counts;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
/** OTel 只按唯一 traceId 归属和 span parent 关系挂接;不按绝对墙钟猜跨进程顺序。 */
|
|
1178
|
-
function otelForest(traceId: string, spans: readonly TraceSpan[], turnStartOffsetMs: number): DiagnosticTimingActivity[] {
|
|
1179
|
-
const unique = new Map<string, TraceSpan>();
|
|
1180
|
-
for (const span of spans) if (span.traceId === traceId && !unique.has(span.spanId)) unique.set(span.spanId, span);
|
|
1181
|
-
const selected = [...unique.values()];
|
|
1182
|
-
if (selected.length === 0) return [];
|
|
1183
|
-
const traceOrigin = Math.min(...selected.map((span) => span.startMs));
|
|
1184
|
-
const nodes = new Map<string, DiagnosticTimingActivity>();
|
|
1185
|
-
for (const span of selected) {
|
|
1186
|
-
nodes.set(span.spanId, {
|
|
1187
|
-
id: `otel:${span.traceId}:${span.spanId}`,
|
|
1188
|
-
label: `${span.kind ?? "span"} · ${span.name}`,
|
|
1189
|
-
startOffsetMs: turnStartOffsetMs + Math.max(0, span.startMs - traceOrigin),
|
|
1190
|
-
durationMs: Math.max(0, span.endMs - span.startMs),
|
|
1191
|
-
failed: span.status === "error",
|
|
1192
|
-
otel: true,
|
|
1193
|
-
children: [],
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
const roots: DiagnosticTimingActivity[] = [];
|
|
1197
|
-
for (const span of selected) {
|
|
1198
|
-
const node = nodes.get(span.spanId)!;
|
|
1199
|
-
const parent = span.parentSpanId && span.parentSpanId !== span.spanId ? nodes.get(span.parentSpanId) : undefined;
|
|
1200
|
-
if (parent) parent.children.push(node);
|
|
1201
|
-
else roots.push(node);
|
|
1202
|
-
}
|
|
1203
|
-
const sort = (items: DiagnosticTimingActivity[]) => {
|
|
1204
|
-
items.sort((a, b) => a.startOffsetMs - b.startOffsetMs || a.id.localeCompare(b.id));
|
|
1205
|
-
for (const item of items) sort(item.children);
|
|
1206
|
-
};
|
|
1207
|
-
sort(roots);
|
|
1208
|
-
return roots;
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
function diagnosticTimingActivity(
|
|
1212
|
-
node: TimingActivity,
|
|
1213
|
-
spans: readonly TraceSpan[],
|
|
1214
|
-
uniqueTraceIds: ReadonlySet<string>,
|
|
1215
|
-
): DiagnosticTimingActivity {
|
|
1216
|
-
const children = (node.children ?? []).map((child) => diagnosticTimingActivity(child, spans, uniqueTraceIds));
|
|
1217
|
-
if (node.key === "agent.turn" && node.traceId && uniqueTraceIds.has(node.traceId)) {
|
|
1218
|
-
children.push(...otelForest(node.traceId, spans, node.startOffsetMs));
|
|
1219
|
-
}
|
|
1220
|
-
return {
|
|
1221
|
-
id: `runner:${node.id}`,
|
|
1222
|
-
label: timingNodeLabel(node),
|
|
1223
|
-
startOffsetMs: node.startOffsetMs,
|
|
1224
|
-
durationMs: node.durationMs,
|
|
1225
|
-
failed: node.failed === true,
|
|
1226
|
-
otel: false,
|
|
1227
|
-
...(node.command?.limit !== undefined ? { limit: node.command.limit } : {}),
|
|
1228
|
-
children,
|
|
1229
|
-
};
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
interface FlatTimingActivity {
|
|
1233
|
-
node: DiagnosticTimingActivity;
|
|
1234
|
-
path: readonly DiagnosticTimingActivity[];
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
function flattenTimingForest(roots: readonly DiagnosticTimingActivity[]): FlatTimingActivity[] {
|
|
1238
|
-
const flat: FlatTimingActivity[] = [];
|
|
1239
|
-
const visit = (node: DiagnosticTimingActivity, ancestors: readonly DiagnosticTimingActivity[]) => {
|
|
1240
|
-
const path = [...ancestors, node];
|
|
1241
|
-
flat.push({ node, path });
|
|
1242
|
-
for (const child of node.children) visit(child, path);
|
|
1243
|
-
};
|
|
1244
|
-
for (const root of roots) visit(root, []);
|
|
1245
|
-
return flat;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
/**
|
|
1249
|
-
* 默认 80-node 投影。四个稳定池先各用自己的配额,再把空余额按失败→最慢→首尾重分配。
|
|
1250
|
-
* 选中深层节点必须连同祖先整条加入;四池合并后按 id 去重。
|
|
1251
|
-
*/
|
|
1252
|
-
function selectTimingActivitys(roots: readonly DiagnosticTimingActivity[]): ReadonlySet<string> {
|
|
1253
|
-
const flat = flattenTimingForest(roots);
|
|
1254
|
-
if (flat.length <= TIMING_DETAIL_NODE_BUDGET) return new Set(flat.map(({ node }) => node.id));
|
|
1255
|
-
|
|
1256
|
-
const selected = new Set<string>();
|
|
1257
|
-
const byStart = [...flat].sort(
|
|
1258
|
-
(a, b) => a.node.startOffsetMs - b.node.startOffsetMs || a.node.id.localeCompare(b.node.id),
|
|
1259
|
-
);
|
|
1260
|
-
const failed = byStart.filter(({ node }) => node.failed);
|
|
1261
|
-
const slow = [...flat].sort(
|
|
1262
|
-
(a, b) => b.node.durationMs - a.node.durationMs || a.node.startOffsetMs - b.node.startOffsetMs || a.node.id.localeCompare(b.node.id),
|
|
1263
|
-
);
|
|
1264
|
-
const latest = [...flat].sort(
|
|
1265
|
-
(a, b) => b.node.startOffsetMs - a.node.startOffsetMs || a.node.id.localeCompare(b.node.id),
|
|
1266
|
-
);
|
|
1267
|
-
|
|
1268
|
-
const add = (candidate: FlatTimingActivity, allowance: number): number => {
|
|
1269
|
-
const missing = candidate.path.filter((node) => !selected.has(node.id));
|
|
1270
|
-
if (missing.length === 0 || missing.length > allowance || selected.size + missing.length > TIMING_DETAIL_NODE_BUDGET) {
|
|
1271
|
-
return 0;
|
|
1272
|
-
}
|
|
1273
|
-
for (const node of missing) selected.add(node.id);
|
|
1274
|
-
return missing.length;
|
|
1275
|
-
};
|
|
1276
|
-
const pool = (candidates: readonly FlatTimingActivity[], cap: number) => {
|
|
1277
|
-
let remaining = cap;
|
|
1278
|
-
for (const candidate of candidates) {
|
|
1279
|
-
if (remaining === 0) break;
|
|
1280
|
-
remaining -= add(candidate, remaining);
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
|
|
1284
|
-
pool(failed, 40);
|
|
1285
|
-
pool(slow, 20);
|
|
1286
|
-
pool(byStart, 10);
|
|
1287
|
-
pool(latest, 10);
|
|
1288
|
-
|
|
1289
|
-
// 固定池未用满时,剩余额度按契约优先级继续分配;候选稳定、无法容纳的整条路径跳过。
|
|
1290
|
-
for (const candidate of [...failed, ...slow, ...byStart, ...latest]) {
|
|
1291
|
-
const remaining = TIMING_DETAIL_NODE_BUDGET - selected.size;
|
|
1292
|
-
if (remaining === 0) break;
|
|
1293
|
-
add(candidate, remaining);
|
|
1294
|
-
}
|
|
1295
|
-
return selected;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
function subtreeStats(node: DiagnosticTimingActivity): { nodes: number; failed: number } {
|
|
1299
|
-
let nodes = 1;
|
|
1300
|
-
let failed = node.failed ? 1 : 0;
|
|
1301
|
-
for (const child of node.children) {
|
|
1302
|
-
const stats = subtreeStats(child);
|
|
1303
|
-
nodes += stats.nodes;
|
|
1304
|
-
failed += stats.failed;
|
|
1305
|
-
}
|
|
1306
|
-
return { nodes, failed };
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
type VisibleTimingEntry =
|
|
1310
|
-
| { kind: "node"; node: DiagnosticTimingActivity }
|
|
1311
|
-
| { kind: "omitted"; nodes: number; failed: number };
|
|
1312
|
-
|
|
1313
|
-
function visibleTimingEntries(
|
|
1314
|
-
nodes: readonly DiagnosticTimingActivity[],
|
|
1315
|
-
selected: ReadonlySet<string> | undefined,
|
|
1316
|
-
): VisibleTimingEntry[] {
|
|
1317
|
-
if (!selected) return nodes.map((node) => ({ kind: "node", node }));
|
|
1318
|
-
const entries: VisibleTimingEntry[] = [];
|
|
1319
|
-
for (let i = 0; i < nodes.length;) {
|
|
1320
|
-
const node = nodes[i]!;
|
|
1321
|
-
if (selected.has(node.id)) {
|
|
1322
|
-
entries.push({ kind: "node", node });
|
|
1323
|
-
i += 1;
|
|
1324
|
-
continue;
|
|
1325
|
-
}
|
|
1326
|
-
let omittedNodes = 0;
|
|
1327
|
-
let omittedFailed = 0;
|
|
1328
|
-
while (i < nodes.length && !selected.has(nodes[i]!.id)) {
|
|
1329
|
-
const stats = subtreeStats(nodes[i]!);
|
|
1330
|
-
omittedNodes += stats.nodes;
|
|
1331
|
-
omittedFailed += stats.failed;
|
|
1332
|
-
i += 1;
|
|
1333
|
-
}
|
|
1334
|
-
entries.push({ kind: "omitted", nodes: omittedNodes, failed: omittedFailed });
|
|
1335
|
-
}
|
|
1336
|
-
return entries;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
/**
|
|
1340
|
-
* 一棵子树的行。时限归属两档:撞线失败的节点**在哪一档都**原位标注(读者不该靠「停在整
|
|
1341
|
-
* 1m 0s」这种巧合反推是谁掐断了命令);`full` 档对全部带线的命令节点给出该字段。
|
|
1342
|
-
*/
|
|
1343
|
-
function diagnosticTimingLines(
|
|
1344
|
-
nodes: readonly DiagnosticTimingActivity[],
|
|
1345
|
-
prefix: string,
|
|
1346
|
-
selected: ReadonlySet<string> | undefined,
|
|
1347
|
-
locator: string,
|
|
1348
|
-
full: boolean,
|
|
1349
|
-
): string[] {
|
|
1350
|
-
const entries = visibleTimingEntries(nodes, selected);
|
|
1351
|
-
const lines: string[] = [];
|
|
1352
|
-
entries.forEach((entry, index) => {
|
|
1353
|
-
const last = index === entries.length - 1;
|
|
1354
|
-
const branch = `${prefix}${last ? "└─ " : "├─ "}`;
|
|
1355
|
-
const childPrefix = `${prefix}${last ? " " : "│ "}`;
|
|
1356
|
-
if (entry.kind === "omitted") {
|
|
1357
|
-
const failed = entry.failed > 0 ? ` · ${entry.failed} failed` : "";
|
|
1358
|
-
lines.push(`${branch}… ${entry.nodes} nodes omitted${failed} · full: niceeval show ${locator} --timing=full`);
|
|
1359
|
-
return;
|
|
1360
|
-
}
|
|
1361
|
-
const node = entry.node;
|
|
1362
|
-
const limitNote = node.limit?.timedOut
|
|
1363
|
-
? ` ${timingLimitNote(node.limit)}`
|
|
1364
|
-
: full && node.limit
|
|
1365
|
-
? ` ${timingLimitNote(node.limit)}`
|
|
1366
|
-
: "";
|
|
1367
|
-
lines.push(
|
|
1368
|
-
`${branch}${node.label} ${formatDurationMs(node.durationMs)}${node.failed ? " ✗" : ""}${limitNote}${node.otel ? " OTel" : ""}`,
|
|
1369
|
-
);
|
|
1370
|
-
lines.push(...diagnosticTimingLines(node.children, childPrefix, selected, locator, full));
|
|
1371
|
-
});
|
|
1372
|
-
return lines;
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* `--timing`:整个 attempt 的统一时间树(见 docs/feature/reports/show.md)。先按
|
|
1377
|
-
* `result.json.phases` 输出 runner 生命周期,再展开 hook / 命令 / turn;turn 带 traceId 时
|
|
1378
|
-
* 从 trace.json 挂接 agent/model/tool spans。缩进表达包含关系,子项不能求和后与父项比较。
|
|
1379
|
-
*/
|
|
1380
|
-
export function timingText(
|
|
1381
|
-
input: AttemptTimingResult | AttemptEvidence,
|
|
1382
|
-
opts: { header: string; artifactPath?: string; width: number; mode?: "summary" | "full" },
|
|
1383
|
-
): string {
|
|
1384
|
-
const result: AttemptTimingResult = "kind" in input ? input : {
|
|
1385
|
-
kind: "attempt",
|
|
1386
|
-
locator: input.locator,
|
|
1387
|
-
durationMs: input.result.durationMs,
|
|
1388
|
-
...(input.result.error !== undefined ? { error: input.result.error } : {}),
|
|
1389
|
-
phases: input.result.phases ?? [],
|
|
1390
|
-
trace: input.trace,
|
|
1391
|
-
};
|
|
1392
|
-
if (result.phases.length === 0) {
|
|
1393
|
-
return `${opts.header}\n\nphase timing unavailable (this result was not produced by a runner with phase timing)`;
|
|
1394
|
-
}
|
|
1395
|
-
const spans = result.trace;
|
|
1396
|
-
// 超时 attempt 的 workspace.diff 条目是收尾段补折叠的(docs/runner.md「超时:双层保护」超时
|
|
1397
|
-
// 不丢证据),不计入 durationMs——与正常完成路径里 workspace.diff 属于主链、计入 durationMs
|
|
1398
|
-
// 是两回事,但两者共用同一个 phase 名字(同一件事:折叠 workspace diff,只是时点不同)。
|
|
1399
|
-
// `error.code === "timeout"` 是唯二真正把它归为收尾段的场景(非超时 attempt 的 error.code
|
|
1400
|
-
// 永远不是 "timeout"),用它做判别,不新增 LifecyclePhase 成员。
|
|
1401
|
-
const isTimeoutClosingDiff = (p: NonNullable<EvalResult["phases"]>[number]) =>
|
|
1402
|
-
p.name === "workspace.diff" && result.error?.code === "timeout";
|
|
1403
|
-
const main = result.phases.filter((p) => !CLOSING_PHASE_NAMES.has(p.name) && !isTimeoutClosingDiff(p));
|
|
1404
|
-
const closing = result.phases.filter((p) => CLOSING_PHASE_NAMES.has(p.name) || isTimeoutClosingDiff(p));
|
|
1405
|
-
const traceCounts = new Map<string, number>();
|
|
1406
|
-
for (const phase of result.phases) traceReferenceCounts(phase.children ?? [], traceCounts);
|
|
1407
|
-
const uniqueTraceIds = new Set([...traceCounts].filter(([, count]) => count === 1).map(([traceId]) => traceId));
|
|
1408
|
-
const phaseForests = new Map(
|
|
1409
|
-
result.phases.map((phase) => [
|
|
1410
|
-
phase,
|
|
1411
|
-
(phase.children ?? []).map((node) => diagnosticTimingActivity(node, spans ?? [], uniqueTraceIds)),
|
|
1412
|
-
]),
|
|
1413
|
-
);
|
|
1414
|
-
const allRoots = [...phaseForests.values()].flat();
|
|
1415
|
-
const selected = opts.mode === "full" ? undefined : selectTimingActivitys(allRoots);
|
|
1416
|
-
|
|
1417
|
-
const lines: string[] = [`total ${formatDurationMs(result.durationMs)}`, ""];
|
|
1418
|
-
// 超时归属:撞的是哪层时限、上限多少、值从哪一层来。三样一起印在时间树顶上——
|
|
1419
|
-
// 「跑了 20 分钟然后 ✗」本身说不出是谁把它掐的(见 docs/feature/sandbox/architecture.md
|
|
1420
|
-
// 「时限归属」)。
|
|
1421
|
-
if (result.error?.timeout) {
|
|
1422
|
-
const { trigger, limitMs, source } = result.error.timeout;
|
|
1423
|
-
lines.push(`timeout ${trigger} · limit ${formatDurationMs(limitMs)} · from ${source}`, "");
|
|
1424
|
-
}
|
|
1425
|
-
const renderPhase = (p: NonNullable<EvalResult["phases"]>[number]) => {
|
|
1426
|
-
const failedNote = p.failed ? ` ✗ failed here${result.error ? ` (${result.error.code})` : ""}` : "";
|
|
1427
|
-
lines.push(`${p.name.padEnd(22)}${formatDurationMs(p.durationMs)}${failedNote}`);
|
|
1428
|
-
lines.push(...diagnosticTimingLines(phaseForests.get(p) ?? [], " ", selected, result.locator, opts.mode === "full"));
|
|
1429
|
-
};
|
|
1430
|
-
for (const p of main) renderPhase(p);
|
|
1431
|
-
if (closing.length > 0) {
|
|
1432
|
-
lines.push("", "teardown (not counted in total):");
|
|
1433
|
-
for (const p of closing) renderPhase(p);
|
|
1434
|
-
}
|
|
1435
|
-
return `${opts.header}\n\n${lines.join("\n")}`;
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
* `--timing` 不带 attempt locator 时的 Run 级 activity 树(docs/feature/reports/show/timing.md
|
|
1440
|
-
* 「Run 级 activity 的读取」)。与 attempt 树共用预算 / 失败 / 时序投影;`sandboxBuilds`
|
|
1441
|
-
* 专用卡从 provenance 读 locator/inputs/依赖 attempt,不解析 timing label。
|
|
1442
|
-
*/
|
|
1443
|
-
export function runTimingText(
|
|
1444
|
-
input: RunTimingResult | Run,
|
|
1445
|
-
opts: {
|
|
1446
|
-
header: string;
|
|
1447
|
-
width: number;
|
|
1448
|
-
mode?: "summary" | "full";
|
|
1449
|
-
},
|
|
1450
|
-
): string {
|
|
1451
|
-
const result: RunTimingResult = "kind" in input ? input : {
|
|
1452
|
-
kind: "run",
|
|
1453
|
-
experimentId: input.experimentId,
|
|
1454
|
-
runId: input.runId,
|
|
1455
|
-
startedAt: input.startedAt,
|
|
1456
|
-
timings: input.timings ?? [],
|
|
1457
|
-
sandboxBuilds: (input.sandboxBuilds ?? []).map((build) => {
|
|
1458
|
-
const timing = findTimingActivityById(input.timings, build.timingNodeId);
|
|
1459
|
-
const dependents = input.attempts
|
|
1460
|
-
.filter((attempt) => attempt.result.error?.origin?.scope === "run" && attempt.result.error.origin.timingNodeId === build.timingNodeId)
|
|
1461
|
-
.map((attempt) => attempt.locator ?? `${attempt.evalId}#${attempt.result.attempt}`);
|
|
1462
|
-
return {
|
|
1463
|
-
...build,
|
|
1464
|
-
...(timing !== undefined ? { durationMs: timing.durationMs } : {}),
|
|
1465
|
-
...(dependents.length > 0 ? { dependents } : {}),
|
|
1466
|
-
};
|
|
1467
|
-
}),
|
|
1468
|
-
};
|
|
1469
|
-
const timings = result.timings;
|
|
1470
|
-
const builds = result.sandboxBuilds;
|
|
1471
|
-
if (timings.length === 0 && builds.length === 0) {
|
|
1472
|
-
return `${opts.header}\n\nrun timing unavailable (this run has no shared activity)`;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
const roots = timings.map((node) => diagnosticTimingActivity(node, [], new Set()));
|
|
1476
|
-
const selected = opts.mode === "full" ? undefined : selectTimingActivitys(roots);
|
|
1477
|
-
const totalMs = timings.reduce((sum, node) => Math.max(sum, node.startOffsetMs + node.durationMs), 0);
|
|
1478
|
-
const lines: string[] = [`total ${formatDurationMs(totalMs)}`, ""];
|
|
1479
|
-
lines.push(...diagnosticTimingLines(roots, "", selected, result.runId, opts.mode === "full"));
|
|
1480
|
-
|
|
1481
|
-
if (builds.length > 0) {
|
|
1482
|
-
lines.push("", "sandboxBuilds:");
|
|
1483
|
-
for (const build of builds) {
|
|
1484
|
-
lines.push(...sandboxBuildCardLines(build));
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
return `${opts.header}\n\n${lines.join("\n")}`;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
/** sandboxBuild 专用卡:字段全部来自 provenance + 经 timingNodeId 关联的耗时,不解析 label。 */
|
|
1491
|
-
function sandboxBuildCardLines(
|
|
1492
|
-
build: RunTimingBuildResult,
|
|
1493
|
-
): string[] {
|
|
1494
|
-
const duration = build.durationMs !== undefined ? formatDurationMs(build.durationMs) : "—";
|
|
1495
|
-
const dependents = build.dependents ?? [];
|
|
1496
|
-
const lines = [
|
|
1497
|
-
` ${build.status} · ${build.provider} · ${build.buildKey.slice(0, 16)}… ${duration}${build.status === "failed" ? " ✗" : ""}`,
|
|
1498
|
-
];
|
|
1499
|
-
if (build.locator !== undefined) {
|
|
1500
|
-
lines.push(` locator: ${JSON.stringify(build.locator)}`);
|
|
1501
|
-
}
|
|
1502
|
-
lines.push(` inputs: ${JSON.stringify(build.inputs)}`);
|
|
1503
|
-
if (build.error) {
|
|
1504
|
-
lines.push(` error: ${build.error.code} · ${firstLine(build.error.message)}`);
|
|
1505
|
-
}
|
|
1506
|
-
if (dependents.length > 0) {
|
|
1507
|
-
lines.push(` dependents: ${dependents.join(", ")}`);
|
|
1508
|
-
}
|
|
1509
|
-
return lines;
|
|
1510
|
-
}
|