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
|
@@ -1,1563 +0,0 @@
|
|
|
1
|
-
// cases: docs/engineering/testing/unit/record.md
|
|
2
|
-
// niceeval/record 的单测:临时目录里构造最小 run.json / result.json / artifact fixture,
|
|
3
|
-
// 覆盖定稿契约(docs/feature/record/library.md、docs/feature/record/architecture.md):分层读取(含快照级字段注入)、
|
|
4
|
-
// 懒加载与 artifactBase 回退、unreadable 三种原因、writer(独占目录、并发快照互不干扰、
|
|
5
|
-
// run.json 键形状、writeAttempt/writeAttemptFor、finish 幂等)、publish(布局、
|
|
6
|
-
// knownEvalIds 补记、artifacts 词干列表重算)。
|
|
7
|
-
// 读取面 fixture 的目录名/artifact 路径手写(不 import 库的路径函数),让测试独立于实现充当格式基准。
|
|
8
|
-
import { currentSample, latestRunSample } from "../sample/index.ts";
|
|
9
|
-
|
|
10
|
-
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
11
|
-
import { mkdir, mkdtemp, readdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
12
|
-
import { tmpdir } from "node:os";
|
|
13
|
-
import { basename, join } from "node:path";
|
|
14
|
-
import { parseRunManifests } from "./manifest.ts";
|
|
15
|
-
import {
|
|
16
|
-
RECORD_FORMAT,
|
|
17
|
-
RECORD_SCHEMA_VERSION,
|
|
18
|
-
publish,
|
|
19
|
-
createWriter as createRecordWriter,
|
|
20
|
-
dedupeAttempts,
|
|
21
|
-
openRecord,
|
|
22
|
-
resolveLocator,
|
|
23
|
-
LocatorNotFoundError,
|
|
24
|
-
MalformedLocatorError,
|
|
25
|
-
AmbiguousLocatorError,
|
|
26
|
-
encodeAttemptLocator,
|
|
27
|
-
type AttemptHandle,
|
|
28
|
-
type AttemptArtifacts,
|
|
29
|
-
type AttemptEntry,
|
|
30
|
-
type EvalResult,
|
|
31
|
-
type RunDeclaration,
|
|
32
|
-
type RunWriter,
|
|
33
|
-
type Writer,
|
|
34
|
-
type Record,
|
|
35
|
-
type Run,
|
|
36
|
-
type RunMeta,
|
|
37
|
-
} from "./index.ts";
|
|
38
|
-
import { completeEvidenceCoverage } from "../assertions/coverage.ts";
|
|
39
|
-
|
|
40
|
-
// ───────────────────────── fixture 工具 ─────────────────────────
|
|
41
|
-
|
|
42
|
-
const roots: string[] = [];
|
|
43
|
-
async function makeRoot(): Promise<string> {
|
|
44
|
-
const root = await mkdtemp(join(tmpdir(), "niceeval-results-"));
|
|
45
|
-
roots.push(root);
|
|
46
|
-
return root;
|
|
47
|
-
}
|
|
48
|
-
afterEach(async () => {
|
|
49
|
-
await Promise.all(roots.splice(0).map((r) => rm(r, { recursive: true, force: true })));
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
/** 测试便利:封口一个 writer 已声明的全部 Run(finish() 现在是 RunWriter 的方法,
|
|
53
|
-
* 每个 Run 各自只能封一次;多数测试不关心逐个 Run 分别封口,只要「全部封完」)。 */
|
|
54
|
-
type FixtureAttemptEntry = Omit<AttemptEntry, "evidenceCoverage"> & {
|
|
55
|
-
evidenceCoverage?: AttemptEntry["evidenceCoverage"];
|
|
56
|
-
};
|
|
57
|
-
type FixtureEvalResult = Omit<EvalResult, "evidenceCoverage"> & {
|
|
58
|
-
evidenceCoverage?: EvalResult["evidenceCoverage"];
|
|
59
|
-
};
|
|
60
|
-
type FixtureRunWriter = Omit<RunWriter, "writeAttempt"> & {
|
|
61
|
-
writeAttempt(entry: FixtureAttemptEntry, artifacts?: AttemptArtifacts): Promise<void>;
|
|
62
|
-
};
|
|
63
|
-
type FixtureWriter = Omit<Writer, "run" | "writeAttemptFor" | "snapshotWriters"> & {
|
|
64
|
-
run(decl: RunDeclaration): Promise<FixtureRunWriter>;
|
|
65
|
-
writeAttemptFor(result: FixtureEvalResult): Promise<void>;
|
|
66
|
-
snapshotWriters(): Promise<{ experimentId: string; writer: FixtureRunWriter }[]>;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const fixtureRunWriterByWriter = new WeakMap<RunWriter, FixtureRunWriter>();
|
|
70
|
-
|
|
71
|
-
function fixtureRunWriter(writer: RunWriter): FixtureRunWriter {
|
|
72
|
-
const existing = fixtureRunWriterByWriter.get(writer);
|
|
73
|
-
if (existing !== undefined) return existing;
|
|
74
|
-
const fixture: FixtureRunWriter = {
|
|
75
|
-
...writer,
|
|
76
|
-
writeAttempt(entry, artifacts) {
|
|
77
|
-
return writer.writeAttempt({ ...entry, evidenceCoverage: entry.evidenceCoverage ?? completeEvidenceCoverage }, artifacts);
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
fixtureRunWriterByWriter.set(writer, fixture);
|
|
81
|
-
return fixture;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/** 测试 fixture 也经真实 writer 走一遍,默认声明完整证据覆盖,避免旧格式对象绕过 v14 校验。 */
|
|
85
|
-
function createWriter(...args: Parameters<typeof createRecordWriter>): FixtureWriter {
|
|
86
|
-
const writer = createRecordWriter(...args);
|
|
87
|
-
return {
|
|
88
|
-
...writer,
|
|
89
|
-
run: async (decl) => fixtureRunWriter(await writer.run(decl)),
|
|
90
|
-
writeAttemptFor: (result) => writer.writeAttemptFor({ ...result, evidenceCoverage: result.evidenceCoverage ?? completeEvidenceCoverage }),
|
|
91
|
-
snapshotWriters: async () =>
|
|
92
|
-
(await writer.snapshotWriters()).map(({ experimentId, writer: run }) => ({ experimentId, writer: fixtureRunWriter(run) })),
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
async function finishAll(writer: Pick<FixtureWriter, "snapshotWriters">): Promise<void> {
|
|
97
|
-
const runs = await writer.snapshotWriters();
|
|
98
|
-
await Promise.all(runs.map(({ writer: snap }) => snap.finish()));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function meta(over: { experimentId: string; agent: string; startedAt: string } & Partial<RunMeta>): RunMeta {
|
|
102
|
-
return {
|
|
103
|
-
format: RECORD_FORMAT,
|
|
104
|
-
schemaVersion: RECORD_SCHEMA_VERSION,
|
|
105
|
-
producer: { name: "niceeval", version: "0.3.0" },
|
|
106
|
-
...over,
|
|
107
|
-
runId: over.runId ?? "00000000-0000-4000-8000-000000000000",
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function record(over: { id: string; attempt: number } & globalThis.Record<string, unknown>): EvalResult {
|
|
112
|
-
return { verdict: "passed", durationMs: 1000, assertions: [], evidenceCoverage: completeEvidenceCoverage, ...over } as unknown as EvalResult;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
async function writeSnapshot(root: string, expDir: string, snapDirName: string, m: RunMeta): Promise<string> {
|
|
116
|
-
const dir = join(root, expDir, snapDirName);
|
|
117
|
-
await mkdir(dir, { recursive: true });
|
|
118
|
-
await writeFile(join(dir, "run.json"), JSON.stringify(m, null, 2), "utf-8");
|
|
119
|
-
return dir;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
async function writeResultFile(snapDir: string, relAttemptDir: string, r: unknown): Promise<string> {
|
|
123
|
-
const dir = join(snapDir, relAttemptDir);
|
|
124
|
-
await mkdir(dir, { recursive: true });
|
|
125
|
-
const path = join(dir, "result.json");
|
|
126
|
-
await writeFile(path, JSON.stringify(r, null, 2), "utf-8");
|
|
127
|
-
return path;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
async function writeArtifactFile(snapDir: string, relAttemptDir: string, file: string, data: unknown): Promise<string> {
|
|
131
|
-
const dir = join(snapDir, relAttemptDir);
|
|
132
|
-
await mkdir(dir, { recursive: true });
|
|
133
|
-
const path = join(dir, file);
|
|
134
|
-
await writeFile(path, JSON.stringify(data), "utf-8");
|
|
135
|
-
return path;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
async function exists(path: string): Promise<boolean> {
|
|
139
|
-
try {
|
|
140
|
-
await stat(path);
|
|
141
|
-
return true;
|
|
142
|
-
} catch {
|
|
143
|
-
return false;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// ───────────────────────── 分层读取 ─────────────────────────
|
|
148
|
-
|
|
149
|
-
describe("openRecord · 实验 → 快照 → eval → attempt 分层", () => {
|
|
150
|
-
it("字典序实验、最新快照在前;eval 分组、attempt 平铺;快照级字段注入进 attempt.result(缺才补)", async () => {
|
|
151
|
-
const root = await makeRoot();
|
|
152
|
-
const bubDir = await writeSnapshot(
|
|
153
|
-
root,
|
|
154
|
-
"compare_bub",
|
|
155
|
-
"2026-07-01T08-00-00-000Z-a1b2",
|
|
156
|
-
meta({
|
|
157
|
-
experimentId: "compare/bub",
|
|
158
|
-
agent: "bub",
|
|
159
|
-
model: "gpt-5",
|
|
160
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
161
|
-
completedAt: "2026-07-01T08:10:00.000Z",
|
|
162
|
-
}),
|
|
163
|
-
);
|
|
164
|
-
await writeResultFile(bubDir, "algebra/q1/a1", record({ id: "algebra/q1", attempt: 1, startedAt: "2026-07-01T08:01:00.000Z" }));
|
|
165
|
-
await writeResultFile(bubDir, "algebra/q1/a2", record({ id: "algebra/q1", attempt: 2, verdict: "failed" }));
|
|
166
|
-
await writeResultFile(bubDir, "algebra/q2/a1", record({ id: "algebra/q2", attempt: 1 }));
|
|
167
|
-
|
|
168
|
-
await writeSnapshot(
|
|
169
|
-
root,
|
|
170
|
-
"compare_codex",
|
|
171
|
-
"2026-07-01T08-05-00-000Z-c3d4",
|
|
172
|
-
meta({ experimentId: "compare/codex", agent: "codex", model: "o3", startedAt: "2026-07-01T08:05:00.000Z" }),
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
const results = await openRecord(root);
|
|
176
|
-
expect(results.unreadable).toHaveLength(0);
|
|
177
|
-
expect(results.experiments.map((e) => e.id)).toEqual(["compare/bub", "compare/codex"]); // 字典序
|
|
178
|
-
|
|
179
|
-
const bub = results.experiments[0];
|
|
180
|
-
expect(bub.runs).toHaveLength(1);
|
|
181
|
-
expect(bub.latestRun).toBe(bub.runs[0]);
|
|
182
|
-
expect(bub.knownEvalIds).toEqual(["algebra/q1", "algebra/q2"]);
|
|
183
|
-
|
|
184
|
-
const snap = bub.latestRun;
|
|
185
|
-
expect(snap.agent).toBe("bub");
|
|
186
|
-
expect(snap.model).toBe("gpt-5");
|
|
187
|
-
expect(snap.producer).toEqual({ name: "niceeval", version: "0.3.0" });
|
|
188
|
-
expect(snap.schemaVersion).toBe(RECORD_SCHEMA_VERSION);
|
|
189
|
-
expect(snap.dir).toBe(bubDir);
|
|
190
|
-
expect(snap.completedAt).toBe("2026-07-01T08:10:00.000Z");
|
|
191
|
-
expect(snap.evals.map((e) => e.id)).toEqual(["algebra/q1", "algebra/q2"]);
|
|
192
|
-
expect(snap.evals[0].attempts).toHaveLength(2);
|
|
193
|
-
expect(snap.attempts).toHaveLength(3);
|
|
194
|
-
|
|
195
|
-
const attempt = snap.evals[0].attempts[0];
|
|
196
|
-
expect(attempt.evalId).toBe("algebra/q1");
|
|
197
|
-
expect(attempt.experimentId).toBe("compare/bub");
|
|
198
|
-
expect(attempt.ref).toEqual({ run: "compare_bub/2026-07-01T08-00-00-000Z-a1b2", attempt: "algebra/q1/a1" });
|
|
199
|
-
// 快照级字段注入(record 没写 agent/model/experimentId)。
|
|
200
|
-
expect(attempt.result.agent).toBe("bub");
|
|
201
|
-
expect(attempt.result.model).toBe("gpt-5");
|
|
202
|
-
expect(attempt.result.experimentId).toBe("compare/bub");
|
|
203
|
-
// 缺才补:条目自带的 startedAt 优先。
|
|
204
|
-
expect(attempt.result.startedAt).toBe("2026-07-01T08:01:00.000Z");
|
|
205
|
-
// 第二个 attempt 没写 startedAt,补快照的。
|
|
206
|
-
expect(snap.evals[0].attempts[1].result.startedAt).toBe("2026-07-01T08:00:00.000Z");
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
describe("openRecord · configHash 回退推导", () => {
|
|
211
|
-
// cases: docs/engineering/testing/unit/record.md「configHash 读取面回退推导」
|
|
212
|
-
// bug: memory/exp-runjson-missing-confighash-breaks-current-sample.md
|
|
213
|
-
it("run.json 缺 configHash 时,全部 attempt 的 result.configHash 一致才回退推导为 Run 的值;不一致则保持缺失", async () => {
|
|
214
|
-
const root = await makeRoot();
|
|
215
|
-
// meta() 不设置 configHash——模拟 exp 写入面在这条修法之前遗留的存量落盘。
|
|
216
|
-
const consistentDir = await writeSnapshot(
|
|
217
|
-
root,
|
|
218
|
-
"compare_a",
|
|
219
|
-
"2026-07-01T08-00-00-000Z-a1b2",
|
|
220
|
-
meta({ experimentId: "compare/a", agent: "codex", startedAt: "2026-07-01T08:00:00.000Z" }),
|
|
221
|
-
);
|
|
222
|
-
await writeResultFile(consistentDir, "q1/a1", record({ id: "q1", attempt: 1, configHash: "same-hash" }));
|
|
223
|
-
await writeResultFile(consistentDir, "q2/a1", record({ id: "q2", attempt: 1, configHash: "same-hash" }));
|
|
224
|
-
|
|
225
|
-
const inconsistentDir = await writeSnapshot(
|
|
226
|
-
root,
|
|
227
|
-
"compare_b",
|
|
228
|
-
"2026-07-01T08-00-00-000Z-c3d4",
|
|
229
|
-
meta({ experimentId: "compare/b", agent: "codex", startedAt: "2026-07-01T08:00:00.000Z" }),
|
|
230
|
-
);
|
|
231
|
-
await writeResultFile(inconsistentDir, "q1/a1", record({ id: "q1", attempt: 1, configHash: "hash-a" }));
|
|
232
|
-
await writeResultFile(inconsistentDir, "q2/a1", record({ id: "q2", attempt: 1, configHash: "hash-b" }));
|
|
233
|
-
|
|
234
|
-
const results = await openRecord(root);
|
|
235
|
-
const a = results.experiments.find((e) => e.id === "compare/a")!;
|
|
236
|
-
const b = results.experiments.find((e) => e.id === "compare/b")!;
|
|
237
|
-
expect(a.latestRun.configHash).toBe("same-hash");
|
|
238
|
-
expect(b.latestRun.configHash).toBeUndefined();
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
describe("record · migratedFrom", () => {
|
|
243
|
-
it("读写保留旧 opaque carryEpoch 的迁移来源", async () => {
|
|
244
|
-
const root = await makeRoot();
|
|
245
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "test" } });
|
|
246
|
-
const snapshot = await writer.run({
|
|
247
|
-
experimentId: "exp",
|
|
248
|
-
agent: "agent",
|
|
249
|
-
startedAt: "2026-08-03T00:00:00.000Z",
|
|
250
|
-
});
|
|
251
|
-
await snapshot.writeAttempt({
|
|
252
|
-
id: "e",
|
|
253
|
-
verdict: "passed",
|
|
254
|
-
attempt: 0,
|
|
255
|
-
durationMs: 1,
|
|
256
|
-
assertions: [],
|
|
257
|
-
evidenceCoverage: completeEvidenceCoverage,
|
|
258
|
-
fingerprint: "current-deterministic-fingerprint",
|
|
259
|
-
migratedFrom: {
|
|
260
|
-
kind: "opaque-carry-epoch",
|
|
261
|
-
fingerprint: "legacy-opaque-fingerprint",
|
|
262
|
-
algorithmVersion: 0,
|
|
263
|
-
coverageVersion: 0,
|
|
264
|
-
},
|
|
265
|
-
});
|
|
266
|
-
await snapshot.finish();
|
|
267
|
-
|
|
268
|
-
const opened = await openRecord(root);
|
|
269
|
-
expect(opened.experiments[0]!.latestRun.attempts[0]!.result.migratedFrom).toEqual({
|
|
270
|
-
kind: "opaque-carry-epoch",
|
|
271
|
-
fingerprint: "legacy-opaque-fingerprint",
|
|
272
|
-
algorithmVersion: 0,
|
|
273
|
-
coverageVersion: 0,
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
// ───────────────────────── 懒加载与回退 ─────────────────────────
|
|
279
|
-
|
|
280
|
-
describe("AttemptHandle · 懒加载", () => {
|
|
281
|
-
it("缺文件返回 null;读一次记忆化;attempt 目录优先、artifactBase 回退;原快照清理后如实 null", async () => {
|
|
282
|
-
const root = await makeRoot();
|
|
283
|
-
const oldSnap = await writeSnapshot(
|
|
284
|
-
root,
|
|
285
|
-
"e",
|
|
286
|
-
"2026-06-30T08-00-00-000Z-xxxx",
|
|
287
|
-
meta({ experimentId: "e", agent: "bub", startedAt: "2026-06-30T08:00:00.000Z", completedAt: "2026-06-30T08:10:00.000Z" }),
|
|
288
|
-
);
|
|
289
|
-
await writeResultFile(oldSnap, "q3/a1", record({ id: "q3", attempt: 1, artifacts: ["events"] }));
|
|
290
|
-
await writeArtifactFile(oldSnap, "q3/a1", "events.json", [{ type: "message", text: "old" }]);
|
|
291
|
-
|
|
292
|
-
const newSnap = await writeSnapshot(
|
|
293
|
-
root,
|
|
294
|
-
"e",
|
|
295
|
-
"2026-07-01T08-00-00-000Z-yyyy",
|
|
296
|
-
meta({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z", completedAt: "2026-07-01T08:10:00.000Z" }),
|
|
297
|
-
);
|
|
298
|
-
await writeResultFile(newSnap, "q1/a1", record({ id: "q1", attempt: 1, artifacts: ["events"] }));
|
|
299
|
-
const eventsPath = await writeArtifactFile(newSnap, "q1/a1", "events.json", [{ type: "message", text: "hi" }]);
|
|
300
|
-
await writeResultFile(newSnap, "q2/a1", record({ id: "q2", attempt: 1 }));
|
|
301
|
-
await writeResultFile(
|
|
302
|
-
newSnap,
|
|
303
|
-
"q3/a1",
|
|
304
|
-
record({
|
|
305
|
-
id: "q3",
|
|
306
|
-
attempt: 1,
|
|
307
|
-
startedAt: "2026-06-30T08:01:00.000Z",
|
|
308
|
-
artifactBase: "e/2026-06-30T08-00-00-000Z-xxxx/q3/a1",
|
|
309
|
-
artifacts: ["events"],
|
|
310
|
-
}),
|
|
311
|
-
);
|
|
312
|
-
|
|
313
|
-
const results = await openRecord(root);
|
|
314
|
-
const snap = results.experiments[0].latestRun;
|
|
315
|
-
const q1 = snap.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
316
|
-
const q2 = snap.evals.find((e) => e.id === "q2")!.attempts[0];
|
|
317
|
-
const q3 = snap.evals.find((e) => e.id === "q3")!.attempts[0];
|
|
318
|
-
|
|
319
|
-
const events = await q1.events();
|
|
320
|
-
expect(events).toEqual([{ type: "message", text: "hi" }]);
|
|
321
|
-
// artifacts 只是「不 stat 磁盘就知道有什么」的声明;懒加载(缺失返回 null)独立成立、不依赖它——
|
|
322
|
-
// 这里没声明 commands/trace/o11y/diff/sources,对应文件也确实没写,五个方法照常读出 null。
|
|
323
|
-
expect(await q1.commands()).toBeNull();
|
|
324
|
-
expect(await q1.trace()).toBeNull();
|
|
325
|
-
expect(await q1.o11y()).toBeNull();
|
|
326
|
-
expect(await q1.diff()).toBeNull();
|
|
327
|
-
expect(await q1.sources()).toBeNull();
|
|
328
|
-
|
|
329
|
-
await rm(eventsPath);
|
|
330
|
-
expect(await q1.events()).toBe(events); // 记忆化:同一 handle 不重新读盘
|
|
331
|
-
|
|
332
|
-
expect(await q2.events()).toBeNull(); // 无 artifactBase,不猜路径
|
|
333
|
-
|
|
334
|
-
expect(await q3.events()).toEqual([{ type: "message", text: "old" }]); // artifactBase 回退到原快照
|
|
335
|
-
expect(q3.ref.run).toBe("e/2026-07-01T08-00-00-000Z-yyyy"); // ref 指条目所在的落盘(新快照)
|
|
336
|
-
|
|
337
|
-
await rm(oldSnap, { recursive: true });
|
|
338
|
-
const reopened = await openRecord(root);
|
|
339
|
-
const q3Again = reopened.experiments[0].latestRun.evals.find((e) => e.id === "q3")!.attempts[0];
|
|
340
|
-
expect(await q3Again.events()).toBeNull(); // 原快照清理后如实返回 null(新句柄,不吃上面的记忆化)
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
// ───────────────────────── unreadable 三种原因 ─────────────────────────
|
|
345
|
-
|
|
346
|
-
describe("openRecord · unreadable", () => {
|
|
347
|
-
it("incompatible(v3 summary.json / 无信封 legacy)、malformed(坏 JSON)、incomplete(有 attempt 无 run.json);无关 JSON 静默", async () => {
|
|
348
|
-
const root = await makeRoot();
|
|
349
|
-
|
|
350
|
-
// v2/v3 的 summary.json 带 format + schemaVersion(≠ 4),自然落进 incompatible 档。
|
|
351
|
-
const v3Dir = join(root, "old-exp", "2026-06-01T08-00-00-000Z");
|
|
352
|
-
await mkdir(v3Dir, { recursive: true });
|
|
353
|
-
await writeFile(
|
|
354
|
-
join(v3Dir, "summary.json"),
|
|
355
|
-
JSON.stringify({
|
|
356
|
-
format: RECORD_FORMAT,
|
|
357
|
-
schemaVersion: 3,
|
|
358
|
-
producer: { name: "niceeval", version: "0.4.6" },
|
|
359
|
-
agent: "bub",
|
|
360
|
-
startedAt: "2026-06-01T08:00:00.000Z",
|
|
361
|
-
completedAt: "2026-06-01T08:10:00.000Z",
|
|
362
|
-
passed: 1,
|
|
363
|
-
failed: 0,
|
|
364
|
-
unreadable: 0,
|
|
365
|
-
errored: 0,
|
|
366
|
-
durationMs: 1000,
|
|
367
|
-
results: [],
|
|
368
|
-
}),
|
|
369
|
-
"utf-8",
|
|
370
|
-
);
|
|
371
|
-
|
|
372
|
-
// legacy:引入版本信封之前的存量报告,无 format,按 schemaVersion 1 读。
|
|
373
|
-
const legacyDir = join(root, "legacy-exp", "2026-05-01T08-00-00-000Z");
|
|
374
|
-
await mkdir(legacyDir, { recursive: true });
|
|
375
|
-
await writeFile(
|
|
376
|
-
join(legacyDir, "summary.json"),
|
|
377
|
-
JSON.stringify({ agent: "bub", startedAt: "2026-05-01T08:00:00.000Z", completedAt: "2026-05-01T08:10:00.000Z", results: [] }),
|
|
378
|
-
"utf-8",
|
|
379
|
-
);
|
|
380
|
-
|
|
381
|
-
// malformed:坏 JSON。
|
|
382
|
-
const badDir = join(root, "bad-exp", "2026-07-02T08-00-00-000Z-zzzz");
|
|
383
|
-
await mkdir(badDir, { recursive: true });
|
|
384
|
-
await writeFile(join(badDir, "run.json"), "not json {", "utf-8");
|
|
385
|
-
|
|
386
|
-
// incomplete:有 result.json,没有 run.json —— crash 没收尾。
|
|
387
|
-
const crashDir = join(root, "crash-exp", "2026-07-03T08-00-00-000Z-wwww");
|
|
388
|
-
await writeResultFile(crashDir, "q1/a1", record({ id: "q1", attempt: 1 }));
|
|
389
|
-
|
|
390
|
-
// 直接存在 summary.json 但内容与 niceeval 无关(不满足 legacy 启发式)→ not-a-report,静默忽略,
|
|
391
|
-
// 且不连累父目录被判 incomplete。
|
|
392
|
-
const alienDir = join(root, "alien-exp", "2026-07-06T08-00-00-000Z-alien");
|
|
393
|
-
await mkdir(alienDir, { recursive: true });
|
|
394
|
-
await writeFile(join(alienDir, "summary.json"), JSON.stringify({ hello: 1 }), "utf-8");
|
|
395
|
-
|
|
396
|
-
// 完全无关的空目录:静默忽略。
|
|
397
|
-
await mkdir(join(root, "unrelated"), { recursive: true });
|
|
398
|
-
await writeFile(join(root, "unrelated", "hello.json"), JSON.stringify({ hello: 1 }), "utf-8");
|
|
399
|
-
|
|
400
|
-
// 一份正常快照,确认不受干扰。
|
|
401
|
-
const okDir = await writeSnapshot(root, "ok-exp", "2026-07-04T08-00-00-000Z-oooo", meta({ experimentId: "ok", agent: "bub", startedAt: "2026-07-04T08:00:00.000Z" }));
|
|
402
|
-
await writeResultFile(okDir, "q1/a1", record({ id: "q1", attempt: 1 }));
|
|
403
|
-
|
|
404
|
-
const results = await openRecord(root);
|
|
405
|
-
expect(results.experiments.map((e) => e.id)).toEqual(["ok"]);
|
|
406
|
-
expect(results.unreadable).toHaveLength(4);
|
|
407
|
-
|
|
408
|
-
const v3Skip = results.unreadable.find((s) => s.dir === v3Dir)!;
|
|
409
|
-
expect(v3Skip.reason).toBe("incompatible");
|
|
410
|
-
expect(v3Skip.schemaVersion).toBe(3);
|
|
411
|
-
expect(v3Skip.producer).toEqual({ name: "niceeval", version: "0.4.6" });
|
|
412
|
-
|
|
413
|
-
const legacySkip = results.unreadable.find((s) => s.dir === legacyDir)!;
|
|
414
|
-
expect(legacySkip.reason).toBe("incompatible");
|
|
415
|
-
expect(legacySkip.schemaVersion).toBe(1);
|
|
416
|
-
|
|
417
|
-
expect(results.unreadable.find((s) => s.dir === badDir)!.reason).toBe("malformed");
|
|
418
|
-
expect(results.unreadable.find((s) => s.dir === crashDir)!.reason).toBe("incomplete");
|
|
419
|
-
expect(results.unreadable.find((s) => s.dir === alienDir)).toBeUndefined();
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
|
|
423
|
-
function fakeSnapshot(over: { experimentId: string; startedAt: string; dir: string }): Run {
|
|
424
|
-
return {
|
|
425
|
-
runId: "00000000-0000-4000-8000-000000000000",
|
|
426
|
-
agent: "bub",
|
|
427
|
-
producer: { name: "niceeval" },
|
|
428
|
-
schemaVersion: RECORD_SCHEMA_VERSION,
|
|
429
|
-
evals: [],
|
|
430
|
-
attempts: [],
|
|
431
|
-
...over,
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
function fakeAttempt(run: Run, result: EvalResult): AttemptHandle {
|
|
436
|
-
return {
|
|
437
|
-
evalId: result.id,
|
|
438
|
-
experimentId: run.experimentId,
|
|
439
|
-
result,
|
|
440
|
-
ref: { run: "x/y", attempt: `${result.id}/a${result.attempt}` },
|
|
441
|
-
run,
|
|
442
|
-
carried: Boolean(result.artifactBase),
|
|
443
|
-
evidenceState: "local",
|
|
444
|
-
commands: async () => null,
|
|
445
|
-
events: async () => null,
|
|
446
|
-
trace: async () => null,
|
|
447
|
-
o11y: async () => null,
|
|
448
|
-
agentSetup: async () => null,
|
|
449
|
-
diff: async () => null,
|
|
450
|
-
sources: async () => null,
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
// ───────────────────────── writer ─────────────────────────
|
|
455
|
-
|
|
456
|
-
describe("createWriter", () => {
|
|
457
|
-
it("run() 建目录(独占)+ 写 run.json(无 completedAt);writeAttempt 拆 artifact + 回填 artifacts 词干列表;finish 补 completedAt 并幂等", async () => {
|
|
458
|
-
const root = await makeRoot();
|
|
459
|
-
const writer = createWriter(root, { producer: { name: "my-harness", version: "1.0.0" } });
|
|
460
|
-
|
|
461
|
-
const snapA = await writer.run({
|
|
462
|
-
experimentId: "compare/a",
|
|
463
|
-
agent: "bub",
|
|
464
|
-
model: "gpt-5",
|
|
465
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
466
|
-
knownEvalIds: ["q1", "q2", "q3"],
|
|
467
|
-
});
|
|
468
|
-
expect(snapA.dir.startsWith(root)).toBe(true);
|
|
469
|
-
const before = JSON.parse(await readFile(join(snapA.dir, "run.json"), "utf-8"));
|
|
470
|
-
expect(before.completedAt).toBeUndefined();
|
|
471
|
-
expect(Object.keys(before)).toEqual(["format", "schemaVersion", "producer", "runId", "experimentId", "agent", "model", "startedAt", "knownEvalIds"]);
|
|
472
|
-
|
|
473
|
-
const events = [{ type: "message", text: "hi" }] as never[];
|
|
474
|
-
const o11yData = { toolCalls: 2 } as never;
|
|
475
|
-
await snapA.writeAttempt(
|
|
476
|
-
{ id: "q1", verdict: "passed", attempt: 1, durationMs: 100, assertions: [], usage: { inputTokens: 10, outputTokens: 5 }, estimatedCostUSD: 0.25 },
|
|
477
|
-
{ events, o11y: o11yData },
|
|
478
|
-
);
|
|
479
|
-
await snapA.writeAttempt({ id: "q2", verdict: "failed", attempt: 1, durationMs: 50, assertions: [] });
|
|
480
|
-
|
|
481
|
-
const snapB = await writer.run({ experimentId: "compare/b", agent: "codex", startedAt: "2026-07-02T09:00:00.000Z" });
|
|
482
|
-
await snapB.writeAttempt({ id: "q1", verdict: "passed", attempt: 1, durationMs: 80, assertions: [] }, { diff: [{ window: "turn1", changes: { "a.txt": { status: "added", after: "1" } } }] });
|
|
483
|
-
|
|
484
|
-
await snapA.finish();
|
|
485
|
-
await snapB.finish();
|
|
486
|
-
expect(writer.snapshotDirs().map((s) => s.experimentId).sort()).toEqual(["compare/a", "compare/b"]);
|
|
487
|
-
|
|
488
|
-
const after = JSON.parse(await readFile(join(snapA.dir, "run.json"), "utf-8"));
|
|
489
|
-
expect(typeof after.completedAt).toBe("string");
|
|
490
|
-
expect(Object.keys(after)).toEqual(["format", "schemaVersion", "producer", "runId", "experimentId", "agent", "model", "startedAt", "completedAt", "knownEvalIds"]);
|
|
491
|
-
|
|
492
|
-
await expect(snapA.finish()).rejects.toThrow(/already called/);
|
|
493
|
-
|
|
494
|
-
const results = await openRecord(root);
|
|
495
|
-
expect(results.unreadable).toHaveLength(0);
|
|
496
|
-
expect(results.experiments.map((e) => e.id)).toEqual(["compare/a", "compare/b"]);
|
|
497
|
-
|
|
498
|
-
const a = results.experiments[0].latestRun;
|
|
499
|
-
expect(a.agent).toBe("bub");
|
|
500
|
-
expect(a.model).toBe("gpt-5");
|
|
501
|
-
expect(a.knownEvalIds).toEqual(["q1", "q2", "q3"]);
|
|
502
|
-
expect(results.experiments[0].knownEvalIds).toEqual(["q1", "q2", "q3"]);
|
|
503
|
-
|
|
504
|
-
const q1 = a.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
505
|
-
expect(q1.result).toMatchObject({
|
|
506
|
-
id: "q1",
|
|
507
|
-
agent: "bub",
|
|
508
|
-
model: "gpt-5",
|
|
509
|
-
experimentId: "compare/a",
|
|
510
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
511
|
-
verdict: "passed",
|
|
512
|
-
durationMs: 100,
|
|
513
|
-
usage: { inputTokens: 10, outputTokens: 5 },
|
|
514
|
-
estimatedCostUSD: 0.25,
|
|
515
|
-
artifacts: ["events", "o11y"],
|
|
516
|
-
});
|
|
517
|
-
expect(await q1.events()).toEqual(events);
|
|
518
|
-
expect(await q1.o11y()).toEqual(o11yData);
|
|
519
|
-
expect(await q1.trace()).toBeNull();
|
|
520
|
-
|
|
521
|
-
const b = results.experiments[1].latestRun;
|
|
522
|
-
expect(b.model).toBeUndefined();
|
|
523
|
-
const bDiff = await b.attempts[0].diff();
|
|
524
|
-
expect(bDiff?.windows).toEqual([{ window: "turn1", changes: { "a.txt": { status: "added", after: "1" } } }]);
|
|
525
|
-
expect(bDiff?.get("a.txt")).toBe("1");
|
|
526
|
-
|
|
527
|
-
const coverage = latestRunSample(results).coverage.find((c) => c.experimentId === "compare/a")!;
|
|
528
|
-
expect(coverage.knownEvalIds).toHaveLength(3);
|
|
529
|
-
expect(coverage.missingEvalIds).toHaveLength(1);
|
|
530
|
-
});
|
|
531
|
-
|
|
532
|
-
// cases: docs/engineering/testing/unit/record.md「manifests.json 落盘」「超时归属落盘」
|
|
533
|
-
it("manifests.json 与 run.json 同层、逐 eval 一份;Run 未收尾也已经有它", async () => {
|
|
534
|
-
const root = await makeRoot();
|
|
535
|
-
const manifests = {
|
|
536
|
-
q1: {
|
|
537
|
-
algorithmVersion: 2,
|
|
538
|
-
coverageVersion: 1,
|
|
539
|
-
config: { agent: "codex", model: "opus", "flags.webSearch": true },
|
|
540
|
-
source: { "evals/q1.eval.ts": "a".repeat(64), "evals/share/assert.ts": "b".repeat(64) },
|
|
541
|
-
data: { "evals/data/cases.yaml": "c".repeat(64) },
|
|
542
|
-
},
|
|
543
|
-
q2: { algorithmVersion: 2, coverageVersion: 1, config: { agent: "codex" }, source: { "evals/q2.eval.ts": "d".repeat(64) }, data: {} },
|
|
544
|
-
};
|
|
545
|
-
const writer = createWriter(root, {
|
|
546
|
-
producer: { name: "niceeval", version: "0.12.0" },
|
|
547
|
-
manifests: new Map([["compare/a", manifests]]),
|
|
548
|
-
});
|
|
549
|
-
|
|
550
|
-
const snap = await writer.run({ experimentId: "compare/a", agent: "codex", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
551
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 10, assertions: [] });
|
|
552
|
-
|
|
553
|
-
// 清单在规划期一次写成,不随 attempt 完成回写:这里**没有** finish(),文件已经在。
|
|
554
|
-
const raw = JSON.parse(await readFile(join(snap.dir, "manifests.json"), "utf-8"));
|
|
555
|
-
expect(parseRunManifests(raw)).toEqual(manifests);
|
|
556
|
-
expect(JSON.parse(await readFile(join(snap.dir, "run.json"), "utf-8")).completedAt).toBeUndefined();
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
// cases: docs/engineering/testing/unit/record.md「configHash 写入面」
|
|
560
|
-
// bug: memory/exp-runjson-missing-confighash-breaks-current-sample.md
|
|
561
|
-
it("configHash:writeAttemptFor 的隐式声明按 WriterOptions.configHashes 取值(exp 路径不必显式声明)", async () => {
|
|
562
|
-
const root = await makeRoot();
|
|
563
|
-
const writer = createWriter(root, {
|
|
564
|
-
producer: { name: "niceeval", version: "0.12.0" },
|
|
565
|
-
configHashes: new Map([["compare/a", "cfg-hash-v1"]]),
|
|
566
|
-
});
|
|
567
|
-
await writer.writeAttemptFor({
|
|
568
|
-
id: "q1",
|
|
569
|
-
experimentId: "compare/a",
|
|
570
|
-
agent: "codex",
|
|
571
|
-
verdict: "passed",
|
|
572
|
-
attempt: 0,
|
|
573
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
574
|
-
durationMs: 10,
|
|
575
|
-
assertions: [],
|
|
576
|
-
});
|
|
577
|
-
await finishAll(writer);
|
|
578
|
-
|
|
579
|
-
const dir = writer.snapshotDirs().find((s) => s.experimentId === "compare/a")!.dir;
|
|
580
|
-
const meta = JSON.parse(await readFile(join(dir, "run.json"), "utf-8"));
|
|
581
|
-
expect(meta.configHash).toBe("cfg-hash-v1");
|
|
582
|
-
|
|
583
|
-
const results = await openRecord(root);
|
|
584
|
-
expect(results.experiments[0]!.latestRun.configHash).toBe("cfg-hash-v1");
|
|
585
|
-
});
|
|
586
|
-
|
|
587
|
-
it("没有清单的 Run 不生成 manifests.json(读取面如实为缺失,不合成一份空清单)", async () => {
|
|
588
|
-
const root = await makeRoot();
|
|
589
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "0.12.0" } });
|
|
590
|
-
const snap = await writer.run({ experimentId: "compare/a", agent: "codex", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
591
|
-
await expect(readFile(join(snap.dir, "manifests.json"), "utf-8")).rejects.toThrow();
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
it("超时归属三样原样往返;非超时的 errored 不带这个字段", async () => {
|
|
595
|
-
const root = await makeRoot();
|
|
596
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "0.12.0" } });
|
|
597
|
-
const snap = await writer.run({ experimentId: "compare/a", agent: "codex", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
598
|
-
const origin = { scope: "attempt", phase: "agent.run" } as const;
|
|
599
|
-
await snap.writeAttempt({
|
|
600
|
-
id: "q1",
|
|
601
|
-
verdict: "errored",
|
|
602
|
-
attempt: 0,
|
|
603
|
-
durationMs: 10,
|
|
604
|
-
assertions: [],
|
|
605
|
-
error: { code: "timeout", message: "attempt timed out", origin, timeout: { trigger: "attempt-deadline", limitMs: 90_000, source: "eval" } },
|
|
606
|
-
});
|
|
607
|
-
await snap.writeAttempt({
|
|
608
|
-
id: "q2",
|
|
609
|
-
verdict: "errored",
|
|
610
|
-
attempt: 0,
|
|
611
|
-
durationMs: 10,
|
|
612
|
-
assertions: [],
|
|
613
|
-
error: { code: "timeout", message: "command timed out", origin, timeout: { trigger: "command-timeout", limitMs: 5_000, source: "command" } },
|
|
614
|
-
});
|
|
615
|
-
await snap.writeAttempt({
|
|
616
|
-
id: "q3",
|
|
617
|
-
verdict: "errored",
|
|
618
|
-
attempt: 0,
|
|
619
|
-
durationMs: 10,
|
|
620
|
-
assertions: [],
|
|
621
|
-
error: { code: "unexpected-error", message: "boom", origin },
|
|
622
|
-
});
|
|
623
|
-
await snap.finish();
|
|
624
|
-
|
|
625
|
-
const run = (await openRecord(root)).experiments[0]!.latestRun;
|
|
626
|
-
const errorOf = (id: string) => run.evals.find((e) => e.id === id)!.attempts[0]!.result.error;
|
|
627
|
-
expect(errorOf("q1")!.timeout).toEqual({ trigger: "attempt-deadline", limitMs: 90_000, source: "eval" });
|
|
628
|
-
expect(errorOf("q2")!.timeout).toEqual({ trigger: "command-timeout", limitMs: 5_000, source: "command" });
|
|
629
|
-
expect(errorOf("q3")!.timeout).toBeUndefined();
|
|
630
|
-
});
|
|
631
|
-
|
|
632
|
-
it("agentSetup:落成 agent-setup.json(不内联进 result.json),懒加载读回;没装扩展的 attempt 恒 null;publish 能带上", async () => {
|
|
633
|
-
const root = await makeRoot();
|
|
634
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "0.12.0" } });
|
|
635
|
-
const manifest = {
|
|
636
|
-
skills: [{ kind: "repo" as const, source: "Effect-TS/skills", ref: "8f3c1a2", skills: ["effect"] }],
|
|
637
|
-
nativePlugins: [
|
|
638
|
-
{
|
|
639
|
-
agent: "claude-code" as const,
|
|
640
|
-
marketplace: { name: "acme", source: "acme/claude-code-plugins", ref: "v1.3.0" },
|
|
641
|
-
name: "safe-shell",
|
|
642
|
-
resolvedVersion: "1.3.0",
|
|
643
|
-
},
|
|
644
|
-
],
|
|
645
|
-
mcpServers: [{ name: "browser", command: "npx", args: ["-y", "@modelcontextprotocol/server-browser"] }],
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
const snap = await writer.run({
|
|
649
|
-
experimentId: "skill-ab/claude-effect",
|
|
650
|
-
agent: "claude-code",
|
|
651
|
-
startedAt: "2026-07-11T08:00:00.000Z",
|
|
652
|
-
});
|
|
653
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 1, durationMs: 10, assertions: [] }, { agentSetup: manifest });
|
|
654
|
-
await snap.writeAttempt({ id: "q2", verdict: "passed", attempt: 1, durationMs: 10, assertions: [] });
|
|
655
|
-
await finishAll(writer);
|
|
656
|
-
|
|
657
|
-
// 文件名是磁盘侧的 kebab;判决记录里不内联 manifest(它是 artifact,不是判决的一部分)
|
|
658
|
-
const attemptDir = join(snap.dir, "q1", "a1");
|
|
659
|
-
expect(await exists(join(attemptDir, "agent-setup.json"))).toBe(true);
|
|
660
|
-
expect(JSON.parse(await readFile(join(attemptDir, "result.json"), "utf-8")).agentSetup).toBeUndefined();
|
|
661
|
-
expect(await exists(join(snap.dir, "q2", "a1", "agent-setup.json"))).toBe(false);
|
|
662
|
-
|
|
663
|
-
const results = await openRecord(root);
|
|
664
|
-
const [q1, q2] = results.experiments[0].latestRun.attempts;
|
|
665
|
-
expect(await q1.agentSetup()).toEqual(manifest);
|
|
666
|
-
expect(await q2.agentSetup()).toBeNull();
|
|
667
|
-
|
|
668
|
-
const dest = join(await makeRoot(), "published");
|
|
669
|
-
await publish(latestRunSample(results), dest, { artifacts: ["agentSetup"] });
|
|
670
|
-
const copied = join(dest, "skill-ab_claude-effect", basename(snap.dir), "q1", "a1", "agent-setup.json");
|
|
671
|
-
expect(JSON.parse(await readFile(copied, "utf-8"))).toEqual(manifest);
|
|
672
|
-
});
|
|
673
|
-
|
|
674
|
-
// cases: docs/engineering/testing/unit/record.md「命令证据落盘」
|
|
675
|
-
it("commands:落成 commands.json(不内联进 result.json),artifacts 含 commands;懒加载读回原样往返;没有 Sandbox 命令的 attempt 恒 null;publish 缺省携带", async () => {
|
|
676
|
-
const root = await makeRoot();
|
|
677
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "0.12.0" } });
|
|
678
|
-
const evidence = [
|
|
679
|
-
{
|
|
680
|
-
timingNodeId: "n1",
|
|
681
|
-
phase: "sandbox.prepare.eval" as const,
|
|
682
|
-
display: "npm install -g pnpm",
|
|
683
|
-
exitCode: 243,
|
|
684
|
-
checked: true,
|
|
685
|
-
stdout: "",
|
|
686
|
-
stderr: "npm error code EACCES\nnpm error path /usr/lib/node_modules/pnpm",
|
|
687
|
-
},
|
|
688
|
-
];
|
|
689
|
-
|
|
690
|
-
const snap = await writer.run({
|
|
691
|
-
experimentId: "install/pnpm-eacces",
|
|
692
|
-
agent: "bub",
|
|
693
|
-
startedAt: "2026-07-11T08:00:00.000Z",
|
|
694
|
-
});
|
|
695
|
-
await snap.writeAttempt({ id: "q1", verdict: "errored", attempt: 1, durationMs: 10, assertions: [] }, { commands: evidence });
|
|
696
|
-
await snap.writeAttempt({ id: "q2", verdict: "passed", attempt: 1, durationMs: 10, assertions: [] });
|
|
697
|
-
await finishAll(writer);
|
|
698
|
-
|
|
699
|
-
const attemptDir = join(snap.dir, "q1", "a1");
|
|
700
|
-
expect(await exists(join(attemptDir, "commands.json"))).toBe(true);
|
|
701
|
-
const onDiskResult = JSON.parse(await readFile(join(attemptDir, "result.json"), "utf-8"));
|
|
702
|
-
expect(onDiskResult.commands).toBeUndefined(); // 不内联进判决记录
|
|
703
|
-
expect(onDiskResult.artifacts).toContain("commands");
|
|
704
|
-
expect(await exists(join(snap.dir, "q2", "a1", "commands.json"))).toBe(false);
|
|
705
|
-
|
|
706
|
-
const results = await openRecord(root);
|
|
707
|
-
const [q1, q2] = results.experiments[0].latestRun.attempts;
|
|
708
|
-
expect(await q1.commands()).toEqual(evidence); // timingNodeId/phase/display/exitCode/stdout/stderr 原样往返
|
|
709
|
-
expect(JSON.stringify(await q1.commands())).not.toContain("classification"); // 展示语义不进入 Record
|
|
710
|
-
expect(await q2.commands()).toBeNull(); // 没有非零命令的 attempt 恒 null,不是空数组
|
|
711
|
-
|
|
712
|
-
// 缺省携带(证据 registry「publish 缺省」列):不显式声明 artifacts 时 commands 仍随行——
|
|
713
|
-
// 失败命令证据是 errored attempt 的主要下钻面,不能被默认发布拷贝静默删掉。
|
|
714
|
-
const dest = join(await makeRoot(), "published");
|
|
715
|
-
await publish(latestRunSample(results), dest);
|
|
716
|
-
const copied = join(dest, "install_pnpm-eacces", basename(snap.dir), "q1", "a1", "commands.json");
|
|
717
|
-
expect(JSON.parse(await readFile(copied, "utf-8"))).toEqual(evidence);
|
|
718
|
-
});
|
|
719
|
-
|
|
720
|
-
it("commands:stdout/stderr 各自超 64 KiB 时独立截断并打结构化 truncated 标记,未超限的流原样往返", async () => {
|
|
721
|
-
const { COMMAND_STREAM_MAX_BYTES } = await import("./truncate.ts");
|
|
722
|
-
const root = await makeRoot();
|
|
723
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "0.12.0" } });
|
|
724
|
-
// 真实形状:stdout 超限、stderr 未超限——两条流各自独立判定,不因一条超限就一起截。
|
|
725
|
-
const hugeStdout = `E assert 429 == 200\n${"collecting …\n".repeat(Math.ceil(COMMAND_STREAM_MAX_BYTES / 13))}2 failed, 14 passed in 3.41s\n`;
|
|
726
|
-
const shortStderr = "Prepared 5 packages\nInstalled 5 packages";
|
|
727
|
-
const hugeStdoutBytes = Buffer.byteLength(hugeStdout, "utf-8");
|
|
728
|
-
expect(hugeStdoutBytes).toBeGreaterThan(COMMAND_STREAM_MAX_BYTES);
|
|
729
|
-
|
|
730
|
-
const snap = await writer.run({ experimentId: "huge/output", agent: "bub", startedAt: "2026-07-11T08:00:00.000Z" });
|
|
731
|
-
const evidence = [
|
|
732
|
-
{ timingNodeId: "n1", phase: "eval.run" as const, display: "uv run pytest", exitCode: 1, checked: true, stdout: hugeStdout, stderr: shortStderr },
|
|
733
|
-
];
|
|
734
|
-
await snap.writeAttempt({ id: "q1", verdict: "errored", attempt: 1, durationMs: 10, assertions: [] }, { commands: evidence });
|
|
735
|
-
await finishAll(writer);
|
|
736
|
-
|
|
737
|
-
const results = await openRecord(root);
|
|
738
|
-
const q1 = results.experiments[0].latestRun.attempts[0]!;
|
|
739
|
-
const [readBack] = (await q1.commands())!;
|
|
740
|
-
expect(Buffer.byteLength(readBack.stdout, "utf-8")).toBeLessThanOrEqual(COMMAND_STREAM_MAX_BYTES + 100);
|
|
741
|
-
expect(readBack.stdout).toContain(`[niceeval] truncated ${hugeStdoutBytes} →`);
|
|
742
|
-
expect(readBack.stderr).toBe(shortStderr); // 未超限的流逐字节原样往返,不被同伴截断牵连
|
|
743
|
-
expect(readBack.truncated).toEqual([{ path: "stdout", originalBytes: hugeStdoutBytes }]);
|
|
744
|
-
});
|
|
745
|
-
|
|
746
|
-
it("每个 Run 各自独立封口:两个 Experiment 各自不同的 completedAt 与 diagnostics 不串味,空 diagnostics 省略字段", async () => {
|
|
747
|
-
// cases: docs/engineering/testing/unit/record.md「落盘格式」——snap.finish() 唯一一次补
|
|
748
|
-
// completedAt 与快照级 diagnostics。
|
|
749
|
-
const root = await makeRoot();
|
|
750
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
751
|
-
const snapA = await writer.run({ experimentId: "compare/a", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
752
|
-
await snapA.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
753
|
-
const snapB = await writer.run({ experimentId: "compare/b", agent: "codex", startedAt: "2026-07-01T09:00:00.000Z" });
|
|
754
|
-
await snapB.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
755
|
-
|
|
756
|
-
// 开始态:两份 run.json 都还没有 completedAt 或 diagnostics。
|
|
757
|
-
const startedA = JSON.parse(await readFile(join(snapA.dir, "run.json"), "utf-8"));
|
|
758
|
-
const startedB = JSON.parse(await readFile(join(snapB.dir, "run.json"), "utf-8"));
|
|
759
|
-
expect(startedA).not.toHaveProperty("completedAt");
|
|
760
|
-
expect(startedA).not.toHaveProperty("diagnostics");
|
|
761
|
-
expect(startedB).not.toHaveProperty("completedAt");
|
|
762
|
-
expect(startedB).not.toHaveProperty("diagnostics");
|
|
763
|
-
|
|
764
|
-
// A 先收尾,带一条 teardown 失败诊断;B 后收尾,不带诊断(空 diagnostics 省略字段,不摆空数组)。
|
|
765
|
-
await snapA.finish({
|
|
766
|
-
completedAt: "2026-07-01T08:10:00.000Z",
|
|
767
|
-
diagnostics: [{ code: "experiment-teardown-failed", level: "warning", detail: "m: tunnel refused to stop; a: leftover process; f: run `niceeval sandbox prune`", origin: { scope: "attempt" as const, phase: "experiment.teardown" }, context: { command: "niceeval sandbox prune" } }],
|
|
768
|
-
});
|
|
769
|
-
await snapB.finish({ completedAt: "2026-07-01T09:20:00.000Z" });
|
|
770
|
-
|
|
771
|
-
const finishedA = JSON.parse(await readFile(join(snapA.dir, "run.json"), "utf-8"));
|
|
772
|
-
const finishedB = JSON.parse(await readFile(join(snapB.dir, "run.json"), "utf-8"));
|
|
773
|
-
expect(finishedA.completedAt).toBe("2026-07-01T08:10:00.000Z");
|
|
774
|
-
expect(finishedA.diagnostics).toEqual([
|
|
775
|
-
{ code: "experiment-teardown-failed", level: "warning", detail: "m: tunnel refused to stop; a: leftover process; f: run `niceeval sandbox prune`", origin: { scope: "attempt" as const, phase: "experiment.teardown" }, context: { command: "niceeval sandbox prune" } },
|
|
776
|
-
]);
|
|
777
|
-
expect(finishedB.completedAt).toBe("2026-07-01T09:20:00.000Z");
|
|
778
|
-
expect(finishedB).not.toHaveProperty("diagnostics"); // B 没有诊断,不是 B 意外继承了 A 的
|
|
779
|
-
|
|
780
|
-
// diagnostics 不是快照级字段拼合进 attempt 的一部分——result.json 里不出现它。
|
|
781
|
-
const recordA = JSON.parse(await readFile(join(snapA.dir, "q1/a0/result.json"), "utf-8"));
|
|
782
|
-
expect(recordA).not.toHaveProperty("diagnostics");
|
|
783
|
-
|
|
784
|
-
// reader 原样读回,attempt.run.diagnostics 只读自己所属快照的那份。
|
|
785
|
-
const results = await openRecord(root);
|
|
786
|
-
const a = results.experiments.find((e) => e.id === "compare/a")!.latestRun;
|
|
787
|
-
const b = results.experiments.find((e) => e.id === "compare/b")!.latestRun;
|
|
788
|
-
expect(a.diagnostics).toEqual(finishedA.diagnostics);
|
|
789
|
-
expect(b.diagnostics).toBeUndefined();
|
|
790
|
-
});
|
|
791
|
-
|
|
792
|
-
it("facts:attempt 级随 writeAttempt 落进 result.json、experiment 级随 finish() 落进 run.json,两级原样读回不合并,空 facts 省略字段", async () => {
|
|
793
|
-
// cases: docs/engineering/testing/unit/record.md「Usage、facts 与失败命令证据落盘」——
|
|
794
|
-
// 两级 facts 各自独立落盘与读回,读取面不把 attempt facts 与 run facts 混在一起。
|
|
795
|
-
const root = await makeRoot();
|
|
796
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
797
|
-
|
|
798
|
-
const snapA = await writer.run({ experimentId: "compare/a", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
799
|
-
await snapA.writeAttempt({
|
|
800
|
-
id: "q1",
|
|
801
|
-
verdict: "passed",
|
|
802
|
-
attempt: 0,
|
|
803
|
-
durationMs: 1,
|
|
804
|
-
assertions: [],
|
|
805
|
-
facts: { "memory.startup_notes": 12, "memory.source": "checkpoint-9" },
|
|
806
|
-
});
|
|
807
|
-
// 没有上报过 fact 的 attempt:字段整个不落盘,不是空对象。
|
|
808
|
-
await snapA.writeAttempt({ id: "q2", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
809
|
-
await snapA.finish({ facts: { "service.version": "2026.7.1", "cache.warm": true } });
|
|
810
|
-
|
|
811
|
-
const snapB = await writer.run({ experimentId: "compare/b", agent: "codex", startedAt: "2026-07-01T09:00:00.000Z" });
|
|
812
|
-
await snapB.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
813
|
-
// experiment 级没有上报过 fact 的快照:同样整个省略字段,不摆空对象。
|
|
814
|
-
await snapB.finish();
|
|
815
|
-
|
|
816
|
-
const recordQ1 = JSON.parse(await readFile(join(snapA.dir, "q1/a0/result.json"), "utf-8"));
|
|
817
|
-
expect(recordQ1.facts).toEqual({ "memory.startup_notes": 12, "memory.source": "checkpoint-9" });
|
|
818
|
-
const recordQ2 = JSON.parse(await readFile(join(snapA.dir, "q2/a0/result.json"), "utf-8"));
|
|
819
|
-
expect(recordQ2).not.toHaveProperty("facts");
|
|
820
|
-
const metaA = JSON.parse(await readFile(join(snapA.dir, "run.json"), "utf-8"));
|
|
821
|
-
expect(metaA.facts).toEqual({ "service.version": "2026.7.1", "cache.warm": true });
|
|
822
|
-
const metaB = JSON.parse(await readFile(join(snapB.dir, "run.json"), "utf-8"));
|
|
823
|
-
expect(metaB).not.toHaveProperty("facts");
|
|
824
|
-
|
|
825
|
-
// reader:两级原样读回,不合并——q1 的 attempt facts 与它所属快照的 experiment facts 分居两处。
|
|
826
|
-
const results = await openRecord(root);
|
|
827
|
-
const a = results.experiments.find((e) => e.id === "compare/a")!.latestRun;
|
|
828
|
-
const q1 = a.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
829
|
-
const q2 = a.evals.find((e) => e.id === "q2")!.attempts[0];
|
|
830
|
-
expect(q1.result.facts).toEqual({ "memory.startup_notes": 12, "memory.source": "checkpoint-9" });
|
|
831
|
-
expect(q1.result.facts).not.toHaveProperty("service.version"); // 不把快照级 facts 并进 attempt
|
|
832
|
-
expect(q2.result.facts).toBeUndefined();
|
|
833
|
-
expect(a.facts).toEqual({ "service.version": "2026.7.1", "cache.warm": true });
|
|
834
|
-
expect(a.facts).not.toHaveProperty("memory.startup_notes"); // 不把 attempt 级 facts 并进快照
|
|
835
|
-
|
|
836
|
-
const b = results.experiments.find((e) => e.id === "compare/b")!.latestRun;
|
|
837
|
-
expect(b.facts).toBeUndefined();
|
|
838
|
-
|
|
839
|
-
// publish 发布拷贝原样保留两级 facts。
|
|
840
|
-
const dest = join(await makeRoot(), "published");
|
|
841
|
-
await publish(latestRunSample(results), dest);
|
|
842
|
-
const publishedMeta = JSON.parse(await readFile(join(dest, "compare_a", basename(snapA.dir), "run.json"), "utf-8"));
|
|
843
|
-
expect(publishedMeta.facts).toEqual({ "service.version": "2026.7.1", "cache.warm": true });
|
|
844
|
-
const publishedRecord = JSON.parse(await readFile(join(dest, "compare_a", basename(snapA.dir), "q1/a0/result.json"), "utf-8"));
|
|
845
|
-
expect(publishedRecord.facts).toEqual({ "memory.startup_notes": 12, "memory.source": "checkpoint-9" });
|
|
846
|
-
});
|
|
847
|
-
|
|
848
|
-
it("重复 finish() 同一个 Run 抛可执行错误(每个 Run 只能封一次)", async () => {
|
|
849
|
-
const root = await makeRoot();
|
|
850
|
-
const writer = createWriter(root, { producer: { name: "x" } });
|
|
851
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
852
|
-
await snap.finish();
|
|
853
|
-
await expect(snap.finish()).rejects.toThrow(/already called/);
|
|
854
|
-
});
|
|
855
|
-
|
|
856
|
-
it("run() 缺 experimentId/agent/startedAt 抛可执行错误", async () => {
|
|
857
|
-
const root = await makeRoot();
|
|
858
|
-
const writer = createWriter(root, { producer: { name: "x" } });
|
|
859
|
-
await expect(writer.run({ experimentId: "", agent: "a", startedAt: "t" })).rejects.toThrow(/experimentId/);
|
|
860
|
-
await expect(writer.run({ experimentId: "e", agent: "", startedAt: "t" })).rejects.toThrow(/agent/);
|
|
861
|
-
await expect(writer.run({ experimentId: "e", agent: "a", startedAt: "" })).rejects.toThrow(/startedAt/);
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
it("同一 writer 内同 experimentId 重复声明:复用同一个 RunWriter,knownEvalIds 取并集", async () => {
|
|
865
|
-
const root = await makeRoot();
|
|
866
|
-
const writer = createWriter(root, { producer: { name: "x" } });
|
|
867
|
-
const s1 = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z", knownEvalIds: ["q1", "q2"] });
|
|
868
|
-
const s2 = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z", knownEvalIds: ["q2", "q3"] });
|
|
869
|
-
expect(s2).toBe(s1);
|
|
870
|
-
await finishAll(writer);
|
|
871
|
-
const written = JSON.parse(await readFile(join(s1.dir, "run.json"), "utf-8"));
|
|
872
|
-
expect(written.knownEvalIds).toEqual(["q1", "q2", "q3"]);
|
|
873
|
-
});
|
|
874
|
-
|
|
875
|
-
it("同一毫秒并发声明不同 experimentId 的快照:互不干扰,各自独立目录", async () => {
|
|
876
|
-
const root = await makeRoot();
|
|
877
|
-
const writer = createWriter(root, { producer: { name: "x" } });
|
|
878
|
-
const now = "2026-07-01T08:00:00.000Z";
|
|
879
|
-
const [a, b, c] = await Promise.all([
|
|
880
|
-
writer.run({ experimentId: "e/a", agent: "bub", startedAt: now }),
|
|
881
|
-
writer.run({ experimentId: "e/b", agent: "bub", startedAt: now }),
|
|
882
|
-
writer.run({ experimentId: "e/c", agent: "bub", startedAt: now }),
|
|
883
|
-
]);
|
|
884
|
-
expect(new Set([a.dir, b.dir, c.dir]).size).toBe(3);
|
|
885
|
-
await finishAll(writer);
|
|
886
|
-
const results = await openRecord(root);
|
|
887
|
-
expect(results.experiments.map((e) => e.id).sort()).toEqual(["e/a", "e/b", "e/c"]);
|
|
888
|
-
});
|
|
889
|
-
|
|
890
|
-
it("快照目录独占创建:撞名换随机后缀重试直到成功(EEXIST 不会覆盖已有目录)", async () => {
|
|
891
|
-
const root = await makeRoot();
|
|
892
|
-
// 受控随机序列:writer B 面对同一身份时重置序列,首次尝试重放 writer A 消耗过的
|
|
893
|
-
// 随机值,必然撞上 A 的目录;重试消耗序列后续值,得到不同后缀。测试不假设一个
|
|
894
|
-
// 后缀消耗几次 random,也不假设数值到后缀字符的映射。
|
|
895
|
-
let call = 0;
|
|
896
|
-
const randomSpy = vi.spyOn(Math, "random").mockImplementation(() => {
|
|
897
|
-
call += 1;
|
|
898
|
-
return ((call * 37) % 977) / 977;
|
|
899
|
-
});
|
|
900
|
-
try {
|
|
901
|
-
const identity = { experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" } as const;
|
|
902
|
-
const writerA = createWriter(root, { producer: { name: "x" } });
|
|
903
|
-
const snapA = await writerA.run(identity);
|
|
904
|
-
const canary = join(snapA.dir, "canary.txt");
|
|
905
|
-
await writeFile(canary, "occupied", "utf8");
|
|
906
|
-
|
|
907
|
-
call = 0; // 重放同一序列,让 writer B 的首次尝试与 snapA 同名
|
|
908
|
-
const writerB = createWriter(root, { producer: { name: "x" } });
|
|
909
|
-
const snapB = await writerB.run(identity);
|
|
910
|
-
|
|
911
|
-
expect(snapB.dir).not.toBe(snapA.dir);
|
|
912
|
-
expect(await exists(join(snapB.dir, "run.json"))).toBe(true);
|
|
913
|
-
// 被占用的目录内容原样保留 —— 独占创建不会覆盖已有内容。
|
|
914
|
-
expect(await exists(canary)).toBe(true);
|
|
915
|
-
expect(await exists(join(snapB.dir, "canary.txt"))).toBe(false);
|
|
916
|
-
} finally {
|
|
917
|
-
randomSpy.mockRestore();
|
|
918
|
-
}
|
|
919
|
-
});
|
|
920
|
-
|
|
921
|
-
it("writeAttemptFor:按 EvalResult.experimentId 懒建快照;正常条目拆 artifact,携带条目原样保留 startedAt/artifactBase/artifacts", async () => {
|
|
922
|
-
const root = await makeRoot();
|
|
923
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "0.12.0" } });
|
|
924
|
-
|
|
925
|
-
const fresh: EvalResult = {
|
|
926
|
-
id: "algebra/q1",
|
|
927
|
-
experimentId: "compare/bub",
|
|
928
|
-
experiment: { flags: { style: "concise" }, attempts: 1, earlyExit: true, selectedEvalIds: ["algebra/q1"], sandboxLayer: {}, sandboxPlansByEval: {}, agentInstalls: [] },
|
|
929
|
-
agent: "bub",
|
|
930
|
-
model: "gpt-5.4",
|
|
931
|
-
verdict: "passed",
|
|
932
|
-
fingerprint: "abc",
|
|
933
|
-
attempt: 1,
|
|
934
|
-
startedAt: "2026-07-01T08:01:00.000Z",
|
|
935
|
-
durationMs: 1234,
|
|
936
|
-
assertions: [],
|
|
937
|
-
evidenceCoverage: completeEvidenceCoverage,
|
|
938
|
-
usage: { inputTokens: 10, outputTokens: 5 },
|
|
939
|
-
estimatedCostUSD: 0.5,
|
|
940
|
-
events: [{ type: "message", role: "assistant", text: "hi" } as never],
|
|
941
|
-
sources: [{ path: "evals/a.ts", content: "x", role: "referenced" }],
|
|
942
|
-
trace: [{ name: "turn", key: "agent.turn" } as never],
|
|
943
|
-
o11y: { toolCalls: 2 } as never,
|
|
944
|
-
diff: [{ window: "turn1", changes: { "a.txt": { status: "added", after: "1" } } }],
|
|
945
|
-
commands: [{ timingNodeId: "n1", phase: "eval.run" as const, display: "npm ci", exitCode: 1, checked: true, stdout: "", stderr: "boom" }],
|
|
946
|
-
rawTranscript: "raw",
|
|
947
|
-
};
|
|
948
|
-
const carried: EvalResult = {
|
|
949
|
-
id: "algebra/q3",
|
|
950
|
-
experimentId: "compare/bub",
|
|
951
|
-
agent: "bub",
|
|
952
|
-
model: "gpt-5.4",
|
|
953
|
-
verdict: "passed",
|
|
954
|
-
attempt: 1,
|
|
955
|
-
startedAt: "2026-06-30T08:01:00.000Z",
|
|
956
|
-
durationMs: 99,
|
|
957
|
-
assertions: [],
|
|
958
|
-
evidenceCoverage: completeEvidenceCoverage,
|
|
959
|
-
artifactBase: "compare_bub/2026-06-30T08-00-00-000Z-xxxx/algebra/q3/a1",
|
|
960
|
-
artifacts: ["events", "sources"],
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
await writer.writeAttemptFor(fresh);
|
|
964
|
-
await writer.writeAttemptFor(carried);
|
|
965
|
-
await finishAll(writer);
|
|
966
|
-
|
|
967
|
-
const dirs = writer.snapshotDirs();
|
|
968
|
-
expect(dirs).toHaveLength(1);
|
|
969
|
-
const snapDir = dirs[0].dir;
|
|
970
|
-
|
|
971
|
-
const freshRecord = JSON.parse(await readFile(join(snapDir, "algebra/q1/a1/result.json"), "utf-8"));
|
|
972
|
-
for (const key of ["agent", "model", "experimentId", "experiment", "events", "sources", "o11y", "trace", "diff", "commands", "rawTranscript"]) {
|
|
973
|
-
expect(freshRecord).not.toHaveProperty(key);
|
|
974
|
-
}
|
|
975
|
-
// startedAt 是 attempt 级事实(每条各异,view 靠它显示「何时跑的」),正常条目也原样落盘。
|
|
976
|
-
expect(freshRecord.startedAt).toBe("2026-07-01T08:01:00.000Z");
|
|
977
|
-
// 顺序与证据 registry 一致(commands/events/trace/o11y/agentSetup/diff/sources);fresh 没写 agentSetup。
|
|
978
|
-
expect(freshRecord.artifacts).toEqual(["commands", "events", "trace", "o11y", "diff", "sources"]);
|
|
979
|
-
expect(await readFile(join(snapDir, "algebra/q1/a1/events.json"), "utf-8")).toBe('[{"type":"message","role":"assistant","text":"hi"}]');
|
|
980
|
-
expect(await readFile(join(snapDir, "algebra/q1/a1/o11y.json"), "utf-8")).toBe('{"toolCalls":2}');
|
|
981
|
-
expect(await readFile(join(snapDir, "algebra/q1/a1/commands.json"), "utf-8")).toBe(
|
|
982
|
-
'[{"timingNodeId":"n1","phase":"eval.run","display":"npm ci","exitCode":1,"checked":true,"stdout":"","stderr":"boom"}]',
|
|
983
|
-
);
|
|
984
|
-
|
|
985
|
-
const carriedRecord = JSON.parse(await readFile(join(snapDir, "algebra/q3/a1/result.json"), "utf-8"));
|
|
986
|
-
expect(carriedRecord.startedAt).toBe("2026-06-30T08:01:00.000Z");
|
|
987
|
-
expect(carriedRecord.artifactBase).toBe("compare_bub/2026-06-30T08-00-00-000Z-xxxx/algebra/q3/a1");
|
|
988
|
-
expect(carriedRecord.artifacts).toEqual(["events", "sources"]); // 携带条目:artifacts 原样携带,不重算
|
|
989
|
-
expect(carriedRecord).not.toHaveProperty("agent");
|
|
990
|
-
expect(carriedRecord).not.toHaveProperty("experimentId");
|
|
991
|
-
expect(await exists(join(snapDir, "algebra/q3/a1/events.json"))).toBe(false); // 携带条目不写 artifact 文件
|
|
992
|
-
|
|
993
|
-
const meta = JSON.parse(await readFile(join(snapDir, "run.json"), "utf-8"));
|
|
994
|
-
expect(meta.experimentId).toBe("compare/bub");
|
|
995
|
-
expect(meta.agent).toBe("bub");
|
|
996
|
-
expect(meta.model).toBe("gpt-5.4");
|
|
997
|
-
});
|
|
998
|
-
|
|
999
|
-
it("writeAttemptFor:result.experimentId 缺失时抛可执行错误(v4 布局按实验分目录)", async () => {
|
|
1000
|
-
const root = await makeRoot();
|
|
1001
|
-
const writer = createWriter(root, { producer: { name: "x" } });
|
|
1002
|
-
await expect(
|
|
1003
|
-
writer.writeAttemptFor({ id: "q1", agent: "bub", verdict: "passed", attempt: 1, durationMs: 1, assertions: [] }),
|
|
1004
|
-
).rejects.toThrow(/experimentId/);
|
|
1005
|
-
});
|
|
1006
|
-
});
|
|
1007
|
-
|
|
1008
|
-
// ───────────────────────── publish ─────────────────────────
|
|
1009
|
-
|
|
1010
|
-
describe("publish", () => {
|
|
1011
|
-
it("产物是标准结果根目录(快照目录名原样保留);按指定 artifact 复制;补记 knownEvalIds;artifacts 按目标目录重算", async () => {
|
|
1012
|
-
const root = await makeRoot();
|
|
1013
|
-
const monday = await writeSnapshot(
|
|
1014
|
-
root,
|
|
1015
|
-
"compare_bub",
|
|
1016
|
-
"2026-07-01T08-00-00-000Z-mon1",
|
|
1017
|
-
meta({ experimentId: "compare/bub", agent: "bub", model: "gpt-5", startedAt: "2026-07-01T08:00:00.000Z", completedAt: "2026-07-01T08:10:00.000Z" }),
|
|
1018
|
-
);
|
|
1019
|
-
await writeResultFile(monday, "q1/a1", record({ id: "q1", attempt: 1, artifacts: ["events", "trace"] }));
|
|
1020
|
-
await writeArtifactFile(monday, "q1/a1", "events.json", [{ n: 1 }]);
|
|
1021
|
-
await writeArtifactFile(monday, "q1/a1", "trace.json", [{ name: "turn" }]);
|
|
1022
|
-
// 历史快照 fixture:opaque window 必须由读取/发布链路原样保留,不做迁移。
|
|
1023
|
-
await writeArtifactFile(monday, "q1/a1", "diff.json", [{ window: "legacy-window", changes: {} }]);
|
|
1024
|
-
await writeResultFile(monday, "q2/a1", record({ id: "q2", attempt: 1 }));
|
|
1025
|
-
|
|
1026
|
-
// 周五只重跑了 q1:最新快照残缺。
|
|
1027
|
-
const friday = await writeSnapshot(
|
|
1028
|
-
root,
|
|
1029
|
-
"compare_bub",
|
|
1030
|
-
"2026-07-05T08-00-00-000Z-fri1",
|
|
1031
|
-
meta({ experimentId: "compare/bub", agent: "bub", model: "gpt-5", startedAt: "2026-07-05T08:00:00.000Z", completedAt: "2026-07-05T08:10:00.000Z" }),
|
|
1032
|
-
);
|
|
1033
|
-
await writeResultFile(friday, "q1/a1", record({ id: "q1", attempt: 1, artifacts: ["events"] }));
|
|
1034
|
-
await writeArtifactFile(friday, "q1/a1", "events.json", [{ n: 1 }, { n: 2 }]);
|
|
1035
|
-
|
|
1036
|
-
const results = await openRecord(root);
|
|
1037
|
-
const dest = join(await makeRoot(), "site/data/run");
|
|
1038
|
-
const copied = await publish(latestRunSample(results), dest, { artifacts: ["events"] });
|
|
1039
|
-
|
|
1040
|
-
expect(copied.issues).toHaveLength(0);
|
|
1041
|
-
expect(copied.dir).toBe(dest);
|
|
1042
|
-
|
|
1043
|
-
const destSnapDir = join(dest, "compare_bub", "2026-07-05T08-00-00-000Z-fri1"); // 快照目录名原样保留
|
|
1044
|
-
expect(await exists(join(destSnapDir, "run.json"))).toBe(true);
|
|
1045
|
-
expect(await exists(join(destSnapDir, "q1/a1/events.json"))).toBe(true);
|
|
1046
|
-
expect(await exists(join(destSnapDir, "q1/a1/trace.json"))).toBe(false); // 未选中的 artifact 种类不复制
|
|
1047
|
-
|
|
1048
|
-
const destMeta = JSON.parse(await readFile(join(destSnapDir, "run.json"), "utf-8"));
|
|
1049
|
-
expect(destMeta.knownEvalIds).toEqual(["q1", "q2"]); // 补记:复制时刻该实验已知的 eval 并集
|
|
1050
|
-
expect(destMeta.completedAt).toBe("2026-07-05T08:10:00.000Z");
|
|
1051
|
-
expect(destMeta.producer).toEqual({ name: "niceeval", version: "0.3.0" });
|
|
1052
|
-
|
|
1053
|
-
const destRecord = JSON.parse(await readFile(join(destSnapDir, "q1/a1/result.json"), "utf-8"));
|
|
1054
|
-
expect(destRecord.artifacts).toEqual(["events"]); // 没选中 trace,目标按实际复制重算(不沿用源的列表)
|
|
1055
|
-
expect(destRecord).not.toHaveProperty("artifactBase");
|
|
1056
|
-
expect(destRecord).not.toHaveProperty("agent"); // 快照级字段不重复
|
|
1057
|
-
|
|
1058
|
-
// 发布目录上重新 openRecord().latestRun():覆盖缺口被同一套机制重新算出来,不靠发布者转述。
|
|
1059
|
-
const republished = await openRecord(dest);
|
|
1060
|
-
expect(republished.experiments[0].knownEvalIds).toEqual(["q1", "q2"]);
|
|
1061
|
-
const coverage = latestRunSample(republished).coverage.find((c) => c.experimentId === "compare/bub")!;
|
|
1062
|
-
expect(coverage).toMatchObject({ knownEvalIds: ["q1", "q2"], missingEvalIds: ["q2"] });
|
|
1063
|
-
});
|
|
1064
|
-
|
|
1065
|
-
it("目标目录非空即报错;artifacts 非法值报错;无快照报错;同实验多快照选中 → 取最新 + warning", async () => {
|
|
1066
|
-
const root = await makeRoot();
|
|
1067
|
-
await writeSnapshot(root, "e", "2026-07-01T08-00-00-000Z-a", meta({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z", completedAt: "2026-07-01T08:10:00.000Z" }));
|
|
1068
|
-
const tuesday = await writeSnapshot(root, "e", "2026-07-02T08-00-00-000Z-b", meta({ experimentId: "e", agent: "bub", startedAt: "2026-07-02T08:00:00.000Z", completedAt: "2026-07-02T08:10:00.000Z" }));
|
|
1069
|
-
await writeResultFile(tuesday, "q1/a1", record({ id: "q1", attempt: 1 }));
|
|
1070
|
-
|
|
1071
|
-
const results = await openRecord(root);
|
|
1072
|
-
|
|
1073
|
-
const occupied = await makeRoot();
|
|
1074
|
-
await writeFile(join(occupied, "existing.txt"), "x", "utf-8");
|
|
1075
|
-
await expect(publish(latestRunSample(results), occupied)).rejects.toThrow(/not empty/);
|
|
1076
|
-
|
|
1077
|
-
await expect(publish(latestRunSample(results), join(await makeRoot(), "out"), { artifacts: ["evnets" as never] })).rejects.toThrow(/Unknown artifact kind/);
|
|
1078
|
-
|
|
1079
|
-
await expect(publish([], join(await makeRoot(), "out"))).rejects.toThrow(/no runs/);
|
|
1080
|
-
|
|
1081
|
-
// 手工传入同一 experiment 的两个快照(未走 latest 去重):只带最新,记 warning。
|
|
1082
|
-
const dest2 = join(await makeRoot(), "run2");
|
|
1083
|
-
const collided = await publish(results.experiments[0].runs, dest2);
|
|
1084
|
-
expect(collided.issues).toHaveLength(1);
|
|
1085
|
-
expect(collided.issues[0]).toMatch(/multiple runs selected/);
|
|
1086
|
-
const destDirs = await readdir(join(dest2, "e"));
|
|
1087
|
-
expect(destDirs).toEqual([basename(tuesday)]);
|
|
1088
|
-
});
|
|
1089
|
-
});
|
|
1090
|
-
|
|
1091
|
-
// ───────────────────────── AttemptLocator 集成 ─────────────────────────
|
|
1092
|
-
|
|
1093
|
-
describe("AttemptLocator · 落盘 / 读取 / 携带 / 撞车", () => {
|
|
1094
|
-
it("非携带条目由 writer 按身份算出 locator 并落盘;确定性(同身份重开两次相同);resolveLocator 能找到", async () => {
|
|
1095
|
-
const root = await makeRoot();
|
|
1096
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1097
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1098
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1099
|
-
await snap.writeAttempt({ id: "q2", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1100
|
-
await finishAll(writer);
|
|
1101
|
-
|
|
1102
|
-
const record1 = JSON.parse(await readFile(join(snap.dir, "q1/a0/result.json"), "utf-8"));
|
|
1103
|
-
expect(record1.locator).toMatch(/^@1[0-9A-HJKMNP-TV-Z]{12}$/);
|
|
1104
|
-
expect(record1.locatorRunId).toBe(snap.runId);
|
|
1105
|
-
expect(record1.locator).toBe(
|
|
1106
|
-
encodeAttemptLocator({ runId: snap.runId, evalId: "q1", attempt: 0 }),
|
|
1107
|
-
);
|
|
1108
|
-
|
|
1109
|
-
const record2 = JSON.parse(await readFile(join(snap.dir, "q2/a0/result.json"), "utf-8"));
|
|
1110
|
-
expect(record2.locator).not.toBe(record1.locator); // 不同 evalId → 不同 locator
|
|
1111
|
-
|
|
1112
|
-
const resultsA = await openRecord(root);
|
|
1113
|
-
const resultsB = await openRecord(root); // 独立重开一次:身份不变,locator 必须一致
|
|
1114
|
-
const q1a = resultsA.experiments[0].latestRun.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
1115
|
-
const q1b = resultsB.experiments[0].latestRun.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
1116
|
-
expect(q1a.locator).toBe(record1.locator);
|
|
1117
|
-
expect(q1b.locator).toBe(record1.locator);
|
|
1118
|
-
|
|
1119
|
-
expect(resolveLocator(resultsA, record1.locator).evalId).toBe("q1");
|
|
1120
|
-
});
|
|
1121
|
-
|
|
1122
|
-
it("携带条目原样复制 locator 来源;全根同时保留原条目时 resolve 选最新副本而不误报歧义", async () => {
|
|
1123
|
-
const root = await makeRoot();
|
|
1124
|
-
const writer1 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1125
|
-
await writer1.writeAttemptFor({
|
|
1126
|
-
id: "q1",
|
|
1127
|
-
experimentId: "e",
|
|
1128
|
-
agent: "bub",
|
|
1129
|
-
verdict: "passed",
|
|
1130
|
-
attempt: 0,
|
|
1131
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
1132
|
-
durationMs: 1,
|
|
1133
|
-
assertions: [],
|
|
1134
|
-
});
|
|
1135
|
-
await finishAll(writer1);
|
|
1136
|
-
|
|
1137
|
-
const opened1 = await openRecord(root);
|
|
1138
|
-
const original = opened1.experiments[0].latestRun.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
1139
|
-
const originalLocator = original.locator!;
|
|
1140
|
-
|
|
1141
|
-
// 第二轮:carry 合入 q1(artifactBase 指回第一轮的快照),locator 从上一轮读回的记录里原样带过来。
|
|
1142
|
-
// q2(真正新跑的)先写:run() 的 startedAt 由「该实验首条落盘结果的 attempt 时刻」锚定
|
|
1143
|
-
// (writer.ts 的注释),让第二轮快照的真实 startedAt("07-02")明确不同于原快照("07-01")——
|
|
1144
|
-
// 这样如果 locator 被错误地按「当前快照」重算,会得到一个可判别的不同字符串。
|
|
1145
|
-
const writer2 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1146
|
-
await writer2.writeAttemptFor({
|
|
1147
|
-
id: "q2",
|
|
1148
|
-
experimentId: "e",
|
|
1149
|
-
agent: "bub",
|
|
1150
|
-
verdict: "passed",
|
|
1151
|
-
attempt: 0,
|
|
1152
|
-
startedAt: "2026-07-02T08:00:00.000Z",
|
|
1153
|
-
durationMs: 1,
|
|
1154
|
-
assertions: [],
|
|
1155
|
-
});
|
|
1156
|
-
const carried: EvalResult = {
|
|
1157
|
-
...original.result,
|
|
1158
|
-
experimentId: "e",
|
|
1159
|
-
agent: "bub",
|
|
1160
|
-
artifactBase: `${original.ref.run}/${original.ref.attempt}`,
|
|
1161
|
-
};
|
|
1162
|
-
await writer2.writeAttemptFor(carried);
|
|
1163
|
-
await finishAll(writer2);
|
|
1164
|
-
|
|
1165
|
-
const opened2 = await openRecord(root);
|
|
1166
|
-
const newest = opened2.experiments[0].latestRun;
|
|
1167
|
-
const carriedAttempt = newest.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
1168
|
-
expect(carriedAttempt.locator).toBe(originalLocator);
|
|
1169
|
-
expect(carriedAttempt.result.locatorRunId).toBe(original.run.runId);
|
|
1170
|
-
expect(carriedAttempt.locatorIdentity).toEqual({ runId: original.run.runId, evalId: "q1", attempt: 0 });
|
|
1171
|
-
expect(resolveLocator(opened2, originalLocator)).toBe(carriedAttempt);
|
|
1172
|
-
// attempt.carried 是 artifactBase 的读取面投影:携带条目为 true,本快照真实执行的 q2 为 false。
|
|
1173
|
-
expect(carriedAttempt.carried).toBe(true);
|
|
1174
|
-
expect(newest.evals.find((e) => e.id === "q2")!.attempts[0].carried).toBe(false);
|
|
1175
|
-
|
|
1176
|
-
// 反证:如果按承载它的新 Run 身份重算,会得到不同字符串。
|
|
1177
|
-
const wronglyRecomputed = encodeAttemptLocator({
|
|
1178
|
-
runId: newest.runId,
|
|
1179
|
-
evalId: "q1",
|
|
1180
|
-
attempt: 0,
|
|
1181
|
-
});
|
|
1182
|
-
expect(originalLocator).not.toBe(wronglyRecomputed);
|
|
1183
|
-
});
|
|
1184
|
-
|
|
1185
|
-
it("旧格式 carry 缺 locatorRunId 时沿 artifactBase 回溯来源,不把同一 attempt 判成 ambiguous", async () => {
|
|
1186
|
-
const root = await makeRoot();
|
|
1187
|
-
const writer1 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1188
|
-
await writer1.writeAttemptFor({
|
|
1189
|
-
id: "legacy",
|
|
1190
|
-
experimentId: "e",
|
|
1191
|
-
agent: "bub",
|
|
1192
|
-
verdict: "passed",
|
|
1193
|
-
attempt: 0,
|
|
1194
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
1195
|
-
durationMs: 1,
|
|
1196
|
-
assertions: [],
|
|
1197
|
-
});
|
|
1198
|
-
await finishAll(writer1);
|
|
1199
|
-
|
|
1200
|
-
const opened1 = await openRecord(root);
|
|
1201
|
-
const original = opened1.experiments[0].latestRun.attempts[0]!;
|
|
1202
|
-
const originalPath = join(original.run.dir, original.ref.attempt, "result.json");
|
|
1203
|
-
const originalRecord = JSON.parse(await readFile(originalPath, "utf-8"));
|
|
1204
|
-
delete originalRecord.locatorRunId;
|
|
1205
|
-
delete originalRecord.locator;
|
|
1206
|
-
await writeFile(originalPath, JSON.stringify(originalRecord), "utf-8");
|
|
1207
|
-
const expectedLocator = encodeAttemptLocator({ runId: original.run.runId, evalId: "legacy", attempt: 0 });
|
|
1208
|
-
|
|
1209
|
-
const writer2 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1210
|
-
const snap2 = await writer2.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-02T08:00:00.000Z" });
|
|
1211
|
-
await snap2.writeAttempt({ id: "fresh", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1212
|
-
const carryDir = join(snap2.dir, "legacy/a0");
|
|
1213
|
-
await mkdir(carryDir, { recursive: true });
|
|
1214
|
-
await writeFile(
|
|
1215
|
-
join(carryDir, "result.json"),
|
|
1216
|
-
JSON.stringify({
|
|
1217
|
-
...originalRecord,
|
|
1218
|
-
artifactBase: `${original.ref.run}/${original.ref.attempt}`,
|
|
1219
|
-
}),
|
|
1220
|
-
"utf-8",
|
|
1221
|
-
);
|
|
1222
|
-
await finishAll(writer2);
|
|
1223
|
-
|
|
1224
|
-
const results = await openRecord(root);
|
|
1225
|
-
const newestCarry = results.experiments[0].latestRun.evals.find((e) => e.id === "legacy")!.attempts[0]!;
|
|
1226
|
-
expect(newestCarry.result.locatorRunId).toBeUndefined();
|
|
1227
|
-
expect(newestCarry.locatorIdentity?.runId).toBe(original.run.runId);
|
|
1228
|
-
expect(newestCarry.locator).toBe(expectedLocator);
|
|
1229
|
-
expect(resolveLocator(results, expectedLocator)).toBe(newestCarry);
|
|
1230
|
-
});
|
|
1231
|
-
|
|
1232
|
-
it("resolveLocator:malformed 与 not-found 是两种可判别的错误", async () => {
|
|
1233
|
-
const root = await makeRoot();
|
|
1234
|
-
await writeSnapshot(root, "e", "2026-07-01T08-00-00-000Z-a", meta({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" }));
|
|
1235
|
-
const results = await openRecord(root);
|
|
1236
|
-
|
|
1237
|
-
expect(() => resolveLocator(results, "not-a-locator")).toThrow(MalformedLocatorError);
|
|
1238
|
-
expect(() => resolveLocator(results, "@1ZZZZZZZZZZZZ")).toThrow(LocatorNotFoundError);
|
|
1239
|
-
});
|
|
1240
|
-
|
|
1241
|
-
it("两个不同身份的 attempt 同 locator:openRecord 保留记录,resolve 抛 AmbiguousLocatorError 并列候选", async () => {
|
|
1242
|
-
const root = await makeRoot();
|
|
1243
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1244
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1245
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1246
|
-
await snap.writeAttempt({ id: "q2", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1247
|
-
await finishAll(writer);
|
|
1248
|
-
|
|
1249
|
-
// 人为制造撞车:把 q2 的 locator 改成和 q1 一样(真实哈希撞车不可复现,这里直接模拟其效果——
|
|
1250
|
-
// 索引建立逻辑只关心「同一 locator 字符串映射到身份三元组不同的两个 attempt」)。
|
|
1251
|
-
const q1Path = join(snap.dir, "q1/a0/result.json");
|
|
1252
|
-
const q2Path = join(snap.dir, "q2/a0/result.json");
|
|
1253
|
-
const q1Record = JSON.parse(await readFile(q1Path, "utf-8"));
|
|
1254
|
-
const q2Record = JSON.parse(await readFile(q2Path, "utf-8"));
|
|
1255
|
-
q2Record.locator = q1Record.locator;
|
|
1256
|
-
await writeFile(q2Path, JSON.stringify(q2Record), "utf-8");
|
|
1257
|
-
|
|
1258
|
-
const results = await openRecord(root);
|
|
1259
|
-
let ambiguous: AmbiguousLocatorError | undefined;
|
|
1260
|
-
try {
|
|
1261
|
-
resolveLocator(results, q1Record.locator);
|
|
1262
|
-
} catch (error) {
|
|
1263
|
-
if (error instanceof AmbiguousLocatorError) ambiguous = error;
|
|
1264
|
-
}
|
|
1265
|
-
expect(ambiguous).toBeDefined();
|
|
1266
|
-
expect(ambiguous?.candidates).toEqual([
|
|
1267
|
-
{ experimentId: "e", evalId: "q1", attempt: 0 },
|
|
1268
|
-
{ experimentId: "e", evalId: "q2", attempt: 0 },
|
|
1269
|
-
]);
|
|
1270
|
-
});
|
|
1271
|
-
|
|
1272
|
-
it("多 experiment:同 evalId/attempt 在不同 experiment 下产出不同 locator,resolveLocator 精确定位到各自的 experiment", async () => {
|
|
1273
|
-
const root = await makeRoot();
|
|
1274
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1275
|
-
const snapA = await writer.run({ experimentId: "compare/bub", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1276
|
-
const snapB = await writer.run({ experimentId: "compare/codex", agent: "codex", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1277
|
-
await snapA.writeAttempt({ id: "algebra/q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1278
|
-
await snapB.writeAttempt({ id: "algebra/q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1279
|
-
await finishAll(writer);
|
|
1280
|
-
|
|
1281
|
-
const results = await openRecord(root);
|
|
1282
|
-
const a = results.experiments.find((e) => e.id === "compare/bub")!.latestRun.evals[0]!.attempts[0]!;
|
|
1283
|
-
const b = results.experiments.find((e) => e.id === "compare/codex")!.latestRun.evals[0]!.attempts[0]!;
|
|
1284
|
-
// 两个 writer Run 的 runId 不同,因此相同 evalId / attempt 仍有不同 locator。
|
|
1285
|
-
expect(a.locator).not.toBe(b.locator);
|
|
1286
|
-
|
|
1287
|
-
expect(resolveLocator(results, a.locator!).experimentId).toBe("compare/bub");
|
|
1288
|
-
expect(resolveLocator(results, b.locator!).experimentId).toBe("compare/codex");
|
|
1289
|
-
});
|
|
1290
|
-
|
|
1291
|
-
it("同一 evalId 的不同 attempt 序号产出不同 locator,resolveLocator 各自精确定位到对应 attempt", async () => {
|
|
1292
|
-
const root = await makeRoot();
|
|
1293
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1294
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1295
|
-
await snap.writeAttempt({ id: "q1", verdict: "failed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1296
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 1, durationMs: 1, assertions: [] });
|
|
1297
|
-
await finishAll(writer);
|
|
1298
|
-
|
|
1299
|
-
const results = await openRecord(root);
|
|
1300
|
-
const attempts = results.experiments[0]!.latestRun.evals.find((e) => e.id === "q1")!.attempts;
|
|
1301
|
-
expect(attempts).toHaveLength(2);
|
|
1302
|
-
const [a0, a1] = attempts;
|
|
1303
|
-
expect(a0!.locator).not.toBe(a1!.locator);
|
|
1304
|
-
expect(resolveLocator(results, a0!.locator!).result).toMatchObject({ attempt: 0, verdict: "failed" });
|
|
1305
|
-
expect(resolveLocator(results, a1!.locator!).result).toMatchObject({ attempt: 1, verdict: "passed" });
|
|
1306
|
-
});
|
|
1307
|
-
|
|
1308
|
-
it("历史快照(非 latest)的 attempt 依然被建进索引,resolveLocator 能定位到旧快照里的那份", async () => {
|
|
1309
|
-
const root = await makeRoot();
|
|
1310
|
-
const writer1 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1311
|
-
const monday = await writer1.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1312
|
-
await monday.writeAttempt({ id: "q1", verdict: "failed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1313
|
-
await finishAll(writer1);
|
|
1314
|
-
|
|
1315
|
-
const writer2 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1316
|
-
const friday = await writer2.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-05T08:00:00.000Z" });
|
|
1317
|
-
await friday.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1318
|
-
await finishAll(writer2);
|
|
1319
|
-
|
|
1320
|
-
const results = await openRecord(root);
|
|
1321
|
-
const exp = results.experiments[0]!;
|
|
1322
|
-
expect(exp.runs).toHaveLength(2); // 两次快照都在(忠实磁盘,不合并/不丢弃历史)
|
|
1323
|
-
const oldAttempt = exp.runs.find((s) => s.startedAt === "2026-07-01T08:00:00.000Z")!.attempts[0]!;
|
|
1324
|
-
const newAttempt = exp.runs.find((s) => s.startedAt === "2026-07-05T08:00:00.000Z")!.attempts[0]!;
|
|
1325
|
-
expect(oldAttempt.locator).not.toBe(newAttempt.locator); // 不同 runId → 不同身份 → 不同 locator
|
|
1326
|
-
|
|
1327
|
-
expect(resolveLocator(results, oldAttempt.locator!).result.verdict).toBe("failed");
|
|
1328
|
-
expect(resolveLocator(results, newAttempt.locator!).result.verdict).toBe("passed");
|
|
1329
|
-
});
|
|
1330
|
-
|
|
1331
|
-
it("手工构造的 Record(未经 openRecord())上调 resolveLocator:索引查不到,统一按 not-found 处理,不抛意外错误", () => {
|
|
1332
|
-
const run = fakeSnapshot({ experimentId: "e", startedAt: "2026-07-01T08:00:00.000Z", dir: "/tmp/e/s1" });
|
|
1333
|
-
const attempt = fakeAttempt(run, record({ id: "q1", attempt: 0 }));
|
|
1334
|
-
run.attempts = [attempt];
|
|
1335
|
-
run.evals = [{ id: "q1", attempts: [attempt] }];
|
|
1336
|
-
const handMadeResults: Record = {
|
|
1337
|
-
root: "/tmp/e",
|
|
1338
|
-
experiments: [{ id: "e", runs: [run], latestRun: run, knownEvalIds: ["q1"] }],
|
|
1339
|
-
unreadable: [],
|
|
1340
|
-
};
|
|
1341
|
-
// 这份 locator 语法合法、甚至真的对应 handMadeResults 里那个 attempt 的身份,
|
|
1342
|
-
// 但 handMadeResults 没经过 openRecord(),locatorIndexByResults 里查不到它 —— 空索引,not-found。
|
|
1343
|
-
const syntacticallyValidLocator = encodeAttemptLocator({
|
|
1344
|
-
runId: run.runId,
|
|
1345
|
-
evalId: "q1",
|
|
1346
|
-
attempt: 0,
|
|
1347
|
-
});
|
|
1348
|
-
expect(() => resolveLocator(handMadeResults, syntacticallyValidLocator)).toThrow(LocatorNotFoundError);
|
|
1349
|
-
});
|
|
1350
|
-
|
|
1351
|
-
it("publish:普通(非 sources)attempt 的 locator 原样复制,目标结果根上 resolveLocator 依然命中", async () => {
|
|
1352
|
-
const root = await makeRoot();
|
|
1353
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1354
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1355
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] });
|
|
1356
|
-
await snap.writeAttempt({ id: "q1", verdict: "failed", attempt: 1, durationMs: 1, assertions: [] });
|
|
1357
|
-
await finishAll(writer);
|
|
1358
|
-
|
|
1359
|
-
const results = await openRecord(root);
|
|
1360
|
-
const [a0, a1] = results.experiments[0]!.latestRun.evals[0]!.attempts;
|
|
1361
|
-
const locator0 = a0!.locator!;
|
|
1362
|
-
const locator1 = a1!.locator!;
|
|
1363
|
-
|
|
1364
|
-
const dest = join(await makeRoot(), "published");
|
|
1365
|
-
await publish(latestRunSample(results), dest, { artifacts: [] });
|
|
1366
|
-
|
|
1367
|
-
const destResults = await openRecord(dest);
|
|
1368
|
-
expect(resolveLocator(destResults, locator0).result.attempt).toBe(0);
|
|
1369
|
-
expect(resolveLocator(destResults, locator1).result.attempt).toBe(1);
|
|
1370
|
-
});
|
|
1371
|
-
|
|
1372
|
-
it("createWriter({ snapshotStartedAt }):writeAttemptFor() 的隐式声明统一用这个锚点,不再按各 result 自己的 attempt startedAt 分别猜", async () => {
|
|
1373
|
-
const root = await makeRoot();
|
|
1374
|
-
const snapshotStartedAt = "2026-07-10T00:00:00.000Z";
|
|
1375
|
-
const writer = createWriter(root, {
|
|
1376
|
-
producer: { name: "niceeval", version: "1.0.0" },
|
|
1377
|
-
snapshotStartedAt,
|
|
1378
|
-
});
|
|
1379
|
-
|
|
1380
|
-
// 两个不同 experiment,各自的 result.startedAt 与 writer 级锚点都不同 —— 如果还在按
|
|
1381
|
-
// 「该 experiment 首条落盘结果的 attempt 时刻」猜,两份 run.json 的 startedAt 会
|
|
1382
|
-
// 分别变成各自 result 的 attempt 时刻,而不是这里统一传入的 snapshotStartedAt。
|
|
1383
|
-
await writer.writeAttemptFor({
|
|
1384
|
-
id: "q1", experimentId: "e1", agent: "bub", verdict: "passed", attempt: 0,
|
|
1385
|
-
startedAt: "2020-01-01T00:00:00.000Z", durationMs: 1, assertions: [],
|
|
1386
|
-
});
|
|
1387
|
-
await writer.writeAttemptFor({
|
|
1388
|
-
id: "q1", experimentId: "e2", agent: "bub", verdict: "passed", attempt: 0,
|
|
1389
|
-
startedAt: "2021-06-15T00:00:00.000Z", durationMs: 1, assertions: [],
|
|
1390
|
-
});
|
|
1391
|
-
await finishAll(writer);
|
|
1392
|
-
|
|
1393
|
-
const results = await openRecord(root);
|
|
1394
|
-
const expE1 = results.experiments.find((e) => e.id === "e1")!;
|
|
1395
|
-
const expE2 = results.experiments.find((e) => e.id === "e2")!;
|
|
1396
|
-
expect(expE1.latestRun.startedAt).toBe(snapshotStartedAt);
|
|
1397
|
-
expect(expE2.latestRun.startedAt).toBe(snapshotStartedAt); // 两个 experiment 共用同一个锚点,不碰撞
|
|
1398
|
-
|
|
1399
|
-
// attempt 级 startedAt(墙钟事实)依然各自独立保留,没有被锚点覆盖 ——
|
|
1400
|
-
// 快照身份锚点与 attempt 墙钟事实是两回事,继续分别保存。
|
|
1401
|
-
const attempt1 = expE1.latestRun.evals[0]!.attempts[0]!;
|
|
1402
|
-
const attempt2 = expE2.latestRun.evals[0]!.attempts[0]!;
|
|
1403
|
-
expect(attempt1.result.startedAt).toBe("2020-01-01T00:00:00.000Z");
|
|
1404
|
-
expect(attempt2.result.startedAt).toBe("2021-06-15T00:00:00.000Z");
|
|
1405
|
-
|
|
1406
|
-
// locator 由各自 runId 派生;展示时间相同不共享身份。
|
|
1407
|
-
expect(attempt1.locator).not.toBe(attempt2.locator);
|
|
1408
|
-
expect(attempt1.locator).toBe(
|
|
1409
|
-
encodeAttemptLocator({ runId: expE1.latestRun.runId, evalId: "q1", attempt: 0 }),
|
|
1410
|
-
);
|
|
1411
|
-
expect(attempt2.locator).toBe(
|
|
1412
|
-
encodeAttemptLocator({ runId: expE2.latestRun.runId, evalId: "q1", attempt: 0 }),
|
|
1413
|
-
);
|
|
1414
|
-
});
|
|
1415
|
-
|
|
1416
|
-
it("createWriter() 省略 snapshotStartedAt 时保留旧的按首条 result.startedAt 猜测行为(第三方直调兼容)", async () => {
|
|
1417
|
-
const root = await makeRoot();
|
|
1418
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1419
|
-
await writer.writeAttemptFor({
|
|
1420
|
-
id: "q1", experimentId: "e", agent: "bub", verdict: "passed", attempt: 0,
|
|
1421
|
-
startedAt: "2020-03-03T00:00:00.000Z", durationMs: 1, assertions: [],
|
|
1422
|
-
});
|
|
1423
|
-
await finishAll(writer);
|
|
1424
|
-
|
|
1425
|
-
const results = await openRecord(root);
|
|
1426
|
-
expect(results.experiments[0]!.latestRun.startedAt).toBe("2020-03-03T00:00:00.000Z");
|
|
1427
|
-
});
|
|
1428
|
-
});
|
|
1429
|
-
|
|
1430
|
-
// ───────────────────────── sources 去重仓库 ─────────────────────────
|
|
1431
|
-
|
|
1432
|
-
describe("sources · 快照级去重仓库", () => {
|
|
1433
|
-
it("经真实 --resume carry 流程(writeAttemptFor 的 artifactBase 分支)携带的 attempt,其 sources() 引用在新快照里依然能解到原快照内容", async () => {
|
|
1434
|
-
const root = await makeRoot();
|
|
1435
|
-
const content = "export default { test() {} };\n";
|
|
1436
|
-
const writer1 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1437
|
-
await writer1.writeAttemptFor({
|
|
1438
|
-
id: "q1",
|
|
1439
|
-
experimentId: "e",
|
|
1440
|
-
agent: "bub",
|
|
1441
|
-
verdict: "passed",
|
|
1442
|
-
attempt: 0,
|
|
1443
|
-
startedAt: "2026-07-01T08:00:00.000Z",
|
|
1444
|
-
durationMs: 1,
|
|
1445
|
-
assertions: [],
|
|
1446
|
-
sources: [{ path: "evals/q1.eval.ts", content, role: "referenced" }],
|
|
1447
|
-
});
|
|
1448
|
-
await finishAll(writer1);
|
|
1449
|
-
|
|
1450
|
-
const opened1 = await openRecord(root);
|
|
1451
|
-
const original = opened1.experiments[0]!.latestRun.evals.find((e) => e.id === "q1")!.attempts[0]!;
|
|
1452
|
-
expect(await original.sources()).toEqual([{ path: "evals/q1.eval.ts", content, role: "referenced" }]);
|
|
1453
|
-
|
|
1454
|
-
// 第二轮:q2 是真正新跑的(锚定新快照的 startedAt 明确晚于原快照),q1 是 carry 合入 ——
|
|
1455
|
-
// artifactBase 指回第一轮的快照,与 locator carry 测试同一套构造手法。
|
|
1456
|
-
const writer2 = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1457
|
-
await writer2.writeAttemptFor({
|
|
1458
|
-
id: "q2",
|
|
1459
|
-
experimentId: "e",
|
|
1460
|
-
agent: "bub",
|
|
1461
|
-
verdict: "passed",
|
|
1462
|
-
attempt: 0,
|
|
1463
|
-
startedAt: "2026-07-02T08:00:00.000Z",
|
|
1464
|
-
durationMs: 1,
|
|
1465
|
-
assertions: [],
|
|
1466
|
-
});
|
|
1467
|
-
const carried: EvalResult = {
|
|
1468
|
-
...original.result,
|
|
1469
|
-
experimentId: "e",
|
|
1470
|
-
agent: "bub",
|
|
1471
|
-
artifactBase: `${original.ref.run}/${original.ref.attempt}`,
|
|
1472
|
-
};
|
|
1473
|
-
await writer2.writeAttemptFor(carried);
|
|
1474
|
-
await finishAll(writer2);
|
|
1475
|
-
|
|
1476
|
-
const opened2 = await openRecord(root);
|
|
1477
|
-
const carriedAttempt = opened2.experiments[0]!.latestRun.evals.find((e) => e.id === "q1")!.attempts[0]!;
|
|
1478
|
-
// 新快照下没有为携带条目重新写 sources.json/blob(carry 分支不写 artifact),
|
|
1479
|
-
// sources() 必须靠 artifactBase 回退到原快照的去重仓库才能解出内容。
|
|
1480
|
-
expect(await carriedAttempt.sources()).toEqual([{ path: "evals/q1.eval.ts", content, role: "referenced" }]);
|
|
1481
|
-
});
|
|
1482
|
-
|
|
1483
|
-
it("同一快照内相同内容只落一份 blob;不同内容各一份;attempt.sources() 各自读回正确内容", async () => {
|
|
1484
|
-
const root = await makeRoot();
|
|
1485
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1486
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1487
|
-
const shared = [{ path: "evals/shared.eval.ts", content: "export default { test() {} };\n", role: "referenced" as const }];
|
|
1488
|
-
const other = [{ path: "evals/other.eval.ts", content: "export default { test() { /* different */ } };\n", role: "referenced" as const }];
|
|
1489
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] }, { sources: shared });
|
|
1490
|
-
await snap.writeAttempt({ id: "q2", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] }, { sources: shared });
|
|
1491
|
-
await snap.writeAttempt({ id: "q3", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] }, { sources: other });
|
|
1492
|
-
await finishAll(writer);
|
|
1493
|
-
|
|
1494
|
-
const storeFiles = await readdir(join(snap.dir, "sources"));
|
|
1495
|
-
expect(storeFiles).toHaveLength(2); // 三份引用,内容只两种 → 两个 blob
|
|
1496
|
-
|
|
1497
|
-
// attempt 级 sources.json 只是引用(小,不含 content),不是全量内容。
|
|
1498
|
-
const q1Ref = JSON.parse(await readFile(join(snap.dir, "q1/a0/sources.json"), "utf-8"));
|
|
1499
|
-
expect(q1Ref).toEqual([{ path: "evals/shared.eval.ts", sha256: expect.any(String), role: "referenced" }]);
|
|
1500
|
-
expect(JSON.stringify(q1Ref)).not.toContain("export default");
|
|
1501
|
-
|
|
1502
|
-
const results = await openRecord(root);
|
|
1503
|
-
const evalById = (id: string) => results.experiments[0].latestRun.evals.find((e) => e.id === id)!.attempts[0];
|
|
1504
|
-
await expect(evalById("q1").sources()).resolves.toEqual(shared);
|
|
1505
|
-
await expect(evalById("q2").sources()).resolves.toEqual(shared);
|
|
1506
|
-
await expect(evalById("q3").sources()).resolves.toEqual(other);
|
|
1507
|
-
});
|
|
1508
|
-
|
|
1509
|
-
it("携带条目(artifactBase 回退)的 sources() 仍能解到原快照的去重仓库", async () => {
|
|
1510
|
-
const root = await makeRoot();
|
|
1511
|
-
const oldSnap = await writeSnapshot(
|
|
1512
|
-
root,
|
|
1513
|
-
"e",
|
|
1514
|
-
"2026-06-30T08-00-00-000Z-xxxx",
|
|
1515
|
-
meta({ experimentId: "e", agent: "bub", startedAt: "2026-06-30T08:00:00.000Z", completedAt: "2026-06-30T08:10:00.000Z" }),
|
|
1516
|
-
);
|
|
1517
|
-
await writeResultFile(oldSnap, "q1/a0", record({ id: "q1", attempt: 0, artifacts: ["sources"] }));
|
|
1518
|
-
await mkdir(join(oldSnap, "sources"), { recursive: true });
|
|
1519
|
-
await writeFile(join(oldSnap, "sources", "abc123.json"), JSON.stringify({ content: "export default {};\n" }), "utf-8");
|
|
1520
|
-
await writeArtifactFile(oldSnap, "q1/a0", "sources.json", [{ path: "evals/q1.eval.ts", sha256: "abc123" }]);
|
|
1521
|
-
|
|
1522
|
-
const newSnap = await writeSnapshot(
|
|
1523
|
-
root,
|
|
1524
|
-
"e",
|
|
1525
|
-
"2026-07-01T08-00-00-000Z-yyyy",
|
|
1526
|
-
meta({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z", completedAt: "2026-07-01T08:10:00.000Z" }),
|
|
1527
|
-
);
|
|
1528
|
-
await writeResultFile(
|
|
1529
|
-
newSnap,
|
|
1530
|
-
"q1/a0",
|
|
1531
|
-
record({ id: "q1", attempt: 0, startedAt: "2026-06-30T08:01:00.000Z", artifactBase: "e/2026-06-30T08-00-00-000Z-xxxx/q1/a0", artifacts: ["sources"] }),
|
|
1532
|
-
);
|
|
1533
|
-
|
|
1534
|
-
const results = await openRecord(root);
|
|
1535
|
-
const carried = results.experiments[0].latestRun.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
1536
|
-
expect(await carried.sources()).toEqual([{ path: "evals/q1.eval.ts", content: "export default {};\n", role: "referenced" }]);
|
|
1537
|
-
});
|
|
1538
|
-
|
|
1539
|
-
it("publish:sources 引用与去重仓库一起复制,内容按目的地重新去重(同一份不重复落盘)", async () => {
|
|
1540
|
-
const root = await makeRoot();
|
|
1541
|
-
const writer = createWriter(root, { producer: { name: "niceeval", version: "1.0.0" } });
|
|
1542
|
-
const snap = await writer.run({ experimentId: "e", agent: "bub", startedAt: "2026-07-01T08:00:00.000Z" });
|
|
1543
|
-
const shared = [{ path: "evals/shared.eval.ts", content: "export default { test() {} };\n", role: "referenced" as const }];
|
|
1544
|
-
await snap.writeAttempt({ id: "q1", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] }, { sources: shared });
|
|
1545
|
-
await snap.writeAttempt({ id: "q2", verdict: "passed", attempt: 0, durationMs: 1, assertions: [] }, { sources: shared });
|
|
1546
|
-
await finishAll(writer);
|
|
1547
|
-
|
|
1548
|
-
const originalLocator = JSON.parse(await readFile(join(snap.dir, "q1/a0/result.json"), "utf-8")).locator;
|
|
1549
|
-
|
|
1550
|
-
const results = await openRecord(root);
|
|
1551
|
-
const dest = join(await makeRoot(), "published");
|
|
1552
|
-
await publish(latestRunSample(results), dest, { artifacts: ["sources"] });
|
|
1553
|
-
|
|
1554
|
-
const destSnapDir = join(dest, "e", basename(snap.dir));
|
|
1555
|
-
const destStoreFiles = await readdir(join(destSnapDir, "sources"));
|
|
1556
|
-
expect(destStoreFiles).toHaveLength(1); // 复制后在目的地重新按内容去重,仍只一份
|
|
1557
|
-
|
|
1558
|
-
const destResults = await openRecord(dest);
|
|
1559
|
-
const q1 = destResults.experiments[0].latestRun.evals.find((e) => e.id === "q1")!.attempts[0];
|
|
1560
|
-
expect(await q1.sources()).toEqual(shared);
|
|
1561
|
-
expect(q1.result.locator).toBe(originalLocator); // locator 随 result.json 原样复制,不重算
|
|
1562
|
-
});
|
|
1563
|
-
});
|