niceeval 0.13.2-canary.35 → 0.13.2
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 +24 -2
- package/dist/agents/bub-install-spec.cjs +19 -5
- package/dist/agents/bub-install-spec.cjs.map +1 -1
- package/dist/agents/bub-install-spec.d.cts +9 -2
- package/dist/agents/bub-install-spec.d.mts +9 -2
- package/dist/agents/bub-install-spec.d.ts +9 -2
- package/dist/agents/bub-install-spec.js +14 -12
- package/dist/agents/bub.cjs +10 -6
- package/dist/agents/bub.cjs.map +1 -1
- package/dist/agents/bub.d.cts +2 -2
- package/dist/agents/bub.d.mts +2 -2
- package/dist/agents/bub.d.ts +2 -2
- package/dist/agents/claude-code.cjs.map +1 -1
- package/dist/agents/claude-code.d.cts +2 -2
- package/dist/agents/claude-code.d.mts +2 -2
- package/dist/agents/claude-code.d.ts +2 -2
- package/dist/agents/codex.cjs +4 -4
- package/dist/agents/codex.cjs.map +1 -1
- package/dist/agents/codex.d.cts +3 -3
- package/dist/agents/codex.d.mts +3 -3
- package/dist/agents/codex.d.ts +3 -3
- package/dist/agents/deepseek-harness.cjs +50 -2
- package/dist/agents/deepseek-harness.cjs.map +1 -1
- package/dist/agents/deepseek-harness.d.cts +2 -0
- package/dist/agents/deepseek-harness.d.mts +2 -0
- package/dist/agents/deepseek-harness.d.ts +2 -0
- package/dist/agents/exact-npm-plugins.cjs +28 -0
- package/dist/agents/exact-npm-plugins.cjs.map +1 -0
- package/dist/agents/exact-npm-plugins.d.cts +10 -0
- package/dist/agents/exact-npm-plugins.d.mts +10 -0
- package/dist/agents/exact-npm-plugins.d.ts +10 -0
- package/dist/agents/exact-npm-plugins.js +8 -0
- package/dist/agents/exact-npm-plugins.js.map +1 -0
- package/dist/agents/openclaw.cjs +51 -2
- package/dist/agents/openclaw.cjs.map +1 -1
- package/dist/agents/openclaw.d.cts +2 -0
- package/dist/agents/openclaw.d.mts +2 -0
- package/dist/agents/openclaw.d.ts +2 -0
- package/dist/agents/types.cjs.map +1 -1
- package/dist/agents/types.d.cts +2 -2
- package/dist/agents/types.d.mts +2 -2
- package/dist/agents/types.d.ts +2 -2
- package/dist/agents/ui-message-stream.cjs +24 -7
- package/dist/agents/ui-message-stream.cjs.map +1 -1
- package/dist/analysis/api.cjs +19 -1
- package/dist/analysis/api.cjs.map +1 -1
- package/dist/analysis/api.d.cts +2 -2
- package/dist/analysis/api.d.mts +2 -2
- package/dist/analysis/api.d.ts +2 -2
- package/dist/analysis/bindings.cjs +11 -18
- package/dist/analysis/bindings.cjs.map +1 -1
- package/dist/analysis/bindings.d.cts +177 -49
- package/dist/analysis/bindings.d.mts +177 -49
- package/dist/analysis/bindings.d.ts +177 -49
- package/dist/analysis/contracts.cjs +1 -0
- package/dist/analysis/contracts.cjs.map +1 -1
- package/dist/analysis/contracts.d.cts +43 -3
- package/dist/analysis/contracts.d.mts +43 -3
- package/dist/analysis/contracts.d.ts +43 -3
- package/dist/analysis/cost-projection.cjs +2 -1
- package/dist/analysis/cost-projection.cjs.map +1 -1
- package/dist/analysis/cost-projection.d.cts +1 -1
- package/dist/analysis/cost-projection.d.mts +1 -1
- package/dist/analysis/cost-projection.d.ts +1 -1
- package/dist/analysis/cost.cjs +13 -3
- package/dist/analysis/cost.cjs.map +1 -1
- package/dist/analysis/cost.d.cts +10 -3
- package/dist/analysis/cost.d.mts +10 -3
- package/dist/analysis/cost.d.ts +10 -3
- package/dist/analysis/experiment-groups.cjs +96 -0
- package/dist/analysis/experiment-groups.cjs.map +1 -0
- package/dist/analysis/experiment-groups.d.cts +9 -0
- package/dist/analysis/experiment-groups.d.mts +9 -0
- package/dist/analysis/experiment-groups.d.ts +9 -0
- package/dist/analysis/experiment-groups.js +10 -0
- package/dist/analysis/experiment-groups.js.map +1 -0
- package/dist/analysis/index.cjs +4 -1
- package/dist/analysis/index.cjs.map +1 -1
- package/dist/analysis/index.d.cts +4 -2
- package/dist/analysis/index.d.mts +4 -2
- package/dist/analysis/index.d.ts +4 -2
- package/dist/analysis/index.js +40 -36
- package/dist/analysis/index.mjs +40 -36
- package/dist/assertions/limits.cjs +4 -0
- package/dist/assertions/limits.cjs.map +1 -1
- package/dist/assertions/limits.d.cts +4 -0
- package/dist/assertions/limits.d.mts +4 -0
- package/dist/assertions/limits.d.ts +4 -0
- package/dist/assertions/match.cjs +63 -25
- package/dist/assertions/match.cjs.map +1 -1
- package/dist/assertions/match.d.cts +7 -0
- package/dist/assertions/match.d.mts +7 -0
- package/dist/assertions/match.d.ts +7 -0
- package/dist/assertions/record/attachment.cjs +32 -4
- package/dist/assertions/record/attachment.cjs.map +1 -1
- package/dist/assertions/record/diff.cjs +10 -4
- package/dist/assertions/record/diff.cjs.map +1 -1
- package/dist/assertions/record/producer.cjs +101 -4
- package/dist/assertions/record/producer.cjs.map +1 -1
- package/dist/assertions/record/producer.d.cts +4 -1
- package/dist/assertions/record/producer.d.mts +4 -1
- package/dist/assertions/record/producer.d.ts +4 -1
- package/dist/assertions/runtime.cjs +45 -5
- package/dist/assertions/runtime.cjs.map +1 -1
- package/dist/cli/record.cjs +113 -8
- package/dist/cli/record.cjs.map +1 -1
- package/dist/cli/record.d.cts +20 -1
- package/dist/cli/record.d.mts +20 -1
- package/dist/cli/record.d.ts +20 -1
- package/dist/cli/record.js +4 -2
- package/dist/cli.cjs +386 -31
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +10 -2
- package/dist/cli.d.mts +10 -2
- package/dist/cli.d.ts +10 -2
- package/dist/context/send-retry.cjs +4 -4
- package/dist/context/send-retry.cjs.map +1 -1
- package/dist/coordination/host/runtime.cjs +8 -30
- package/dist/coordination/host/runtime.cjs.map +1 -1
- package/dist/coordination/host/runtime.d.cts +3 -3
- package/dist/coordination/host/runtime.d.mts +3 -3
- package/dist/coordination/host/runtime.d.ts +3 -3
- package/dist/coordination/host/types.cjs.map +1 -1
- package/dist/coordination/host/types.d.cts +0 -5
- package/dist/coordination/host/types.d.mts +0 -5
- package/dist/coordination/host/types.d.ts +0 -5
- package/dist/coordination/platform/node.cjs +90 -9
- package/dist/coordination/platform/node.cjs.map +1 -1
- package/dist/define.cjs +25 -1
- package/dist/define.cjs.map +1 -1
- package/dist/experiment/host/index.cjs +1 -0
- package/dist/experiment/host/index.cjs.map +1 -1
- package/dist/i18n/en.cjs +19 -6
- package/dist/i18n/en.cjs.map +1 -1
- package/dist/i18n/en.d.cts +12 -4
- package/dist/i18n/en.d.mts +12 -4
- package/dist/i18n/en.d.ts +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/o11y/prices.json +1 -1
- package/dist/o11y/record/families.cjs +12 -3
- package/dist/o11y/record/families.cjs.map +1 -1
- package/dist/o11y/record/families.d.cts +8 -8
- package/dist/o11y/record/families.d.mts +8 -8
- package/dist/o11y/record/families.d.ts +8 -8
- package/dist/o11y/record/family-projectors.d.cts +66 -18
- package/dist/o11y/record/family-projectors.d.mts +66 -18
- package/dist/o11y/record/family-projectors.d.ts +66 -18
- package/dist/o11y/record/family-writers.d.cts +11 -3
- package/dist/o11y/record/family-writers.d.mts +11 -3
- package/dist/o11y/record/family-writers.d.ts +11 -3
- package/dist/o11y/record/runner-producer.cjs +14 -4
- package/dist/o11y/record/runner-producer.cjs.map +1 -1
- package/dist/record/codec/core.d.cts +2 -2
- package/dist/record/codec/core.d.mts +2 -2
- package/dist/record/codec/core.d.ts +2 -2
- package/dist/record/family/catalog.d.cts +44 -12
- package/dist/record/family/catalog.d.mts +44 -12
- package/dist/record/family/catalog.d.ts +44 -12
- package/dist/record/family/index.js +128 -124
- package/dist/record/family/observability-v1.cjs +35 -0
- package/dist/record/family/observability-v1.cjs.map +1 -0
- package/dist/record/family/observability-v1.d.cts +3 -0
- package/dist/record/family/observability-v1.d.mts +3 -0
- package/dist/record/family/observability-v1.d.ts +3 -0
- package/dist/record/family/observability-v1.js +6 -0
- package/dist/record/family/observability-v1.js.map +1 -0
- package/dist/record/family/observability.cjs +58 -9
- package/dist/record/family/observability.cjs.map +1 -1
- package/dist/record/family/observability.d.cts +1014 -15
- package/dist/record/family/observability.d.mts +1014 -15
- package/dist/record/family/observability.d.ts +1014 -15
- package/dist/record/family/observability.js +22 -18
- package/dist/record/host/runtime.cjs +600 -31
- package/dist/record/host/runtime.cjs.map +1 -1
- package/dist/record/host/types.cjs.map +1 -1
- package/dist/record/host/types.d.cts +33 -9
- package/dist/record/host/types.d.mts +33 -9
- package/dist/record/host/types.d.ts +33 -9
- package/dist/record/maintenance/runtime.cjs +1 -2
- package/dist/record/maintenance/runtime.cjs.map +1 -1
- package/dist/record/model/core.cjs.map +1 -1
- package/dist/record/model/core.d.cts +1 -1
- package/dist/record/model/core.d.mts +1 -1
- package/dist/record/model/core.d.ts +1 -1
- package/dist/record/model/definition.d.cts +6 -6
- package/dist/record/model/definition.d.mts +6 -6
- package/dist/record/model/definition.d.ts +6 -6
- package/dist/record/model/identifiers.cjs +1 -1
- package/dist/record/model/identifiers.cjs.map +1 -1
- package/dist/record/model/identifiers.d.cts +1 -1
- package/dist/record/model/identifiers.d.mts +1 -1
- package/dist/record/model/identifiers.d.ts +1 -1
- package/dist/record/platform/node.cjs +159 -23
- package/dist/record/platform/node.cjs.map +1 -1
- package/dist/record/platform/services.cjs.map +1 -1
- package/dist/record/platform/services.d.cts +15 -2
- package/dist/record/platform/services.d.mts +15 -2
- package/dist/record/platform/services.d.ts +15 -2
- package/dist/record/reader/errors.cjs +37 -1
- package/dist/record/reader/errors.cjs.map +1 -1
- package/dist/record/reader/errors.d.cts +49 -1
- package/dist/record/reader/errors.d.mts +49 -1
- package/dist/record/reader/errors.d.ts +49 -1
- package/dist/record/reader/errors.js +22 -12
- package/dist/record/reader/format.cjs +76 -17
- package/dist/record/reader/format.cjs.map +1 -1
- package/dist/record/reader/format.d.cts +11 -4
- package/dist/record/reader/format.d.mts +11 -4
- package/dist/record/reader/format.d.ts +11 -4
- package/dist/record/reader/format.js +2 -0
- package/dist/record/reader/index.js +32 -18
- package/dist/record/reader/runtime.cjs +64 -0
- package/dist/record/reader/runtime.cjs.map +1 -1
- package/dist/record/reader/runtime.d.cts +15 -0
- package/dist/record/reader/runtime.d.mts +15 -0
- package/dist/record/reader/runtime.d.ts +15 -0
- package/dist/record/reader/runtime.js +2 -0
- package/dist/report/assets/styles.css +53 -29
- package/dist/report/built-in/analysis-values.cjs +0 -8
- package/dist/report/built-in/analysis-values.cjs.map +1 -1
- package/dist/report/built-in/analysis-values.d.cts +0 -13
- package/dist/report/built-in/analysis-values.d.mts +0 -13
- package/dist/report/built-in/analysis-values.d.ts +0 -13
- package/dist/report/built-in/analysis-values.js +4 -6
- package/dist/report/built-in/index.cjs +1 -3
- package/dist/report/built-in/index.cjs.map +1 -1
- package/dist/report/built-in/index.d.cts +1 -1
- package/dist/report/built-in/index.d.mts +1 -1
- package/dist/report/built-in/index.d.ts +1 -1
- package/dist/report/built-in/index.js +4 -8
- package/dist/report/built-in/index.mjs +4 -8
- package/dist/report/built-in/machine.cjs +0 -2
- package/dist/report/built-in/machine.cjs.map +1 -1
- package/dist/report/built-in/machine.d.cts +0 -2
- package/dist/report/built-in/machine.d.mts +0 -2
- package/dist/report/built-in/machine.d.ts +0 -2
- package/dist/report/built-in/result-components.cjs +25 -73
- package/dist/report/built-in/result-components.cjs.map +1 -1
- package/dist/report/built-in/result-components.d.cts +3 -19
- package/dist/report/built-in/result-components.d.mts +3 -19
- package/dist/report/built-in/result-components.d.ts +3 -19
- package/dist/report/built-in/result-components.js +0 -4
- package/dist/report/built-in/run-membership-overview.cjs +30 -17
- package/dist/report/built-in/run-membership-overview.cjs.map +1 -1
- package/dist/report/built-in/run-membership-overview.d.cts +14 -0
- package/dist/report/built-in/run-membership-overview.d.mts +14 -0
- package/dist/report/built-in/run-membership-overview.d.ts +14 -0
- package/dist/report/built-in/run-membership-overview.js +4 -2
- package/dist/report/built-in/standard.cjs +80 -46
- package/dist/report/built-in/standard.cjs.map +1 -1
- package/dist/report/built-in/standard.d.cts +19 -42
- package/dist/report/built-in/standard.d.mts +19 -42
- package/dist/report/built-in/standard.d.ts +19 -42
- package/dist/report/built-in/standard.js +6 -6
- package/dist/report/components/attempt-detail/compute.cjs +78 -2
- package/dist/report/components/attempt-detail/compute.cjs.map +1 -1
- package/dist/report/components/attempt-detail/compute.d.cts +1 -1
- package/dist/report/components/attempt-detail/compute.d.mts +1 -1
- package/dist/report/components/attempt-detail/compute.d.ts +1 -1
- package/dist/report/components/attempt-detail/content.cjs +1 -1
- package/dist/report/components/attempt-detail/content.cjs.map +1 -1
- package/dist/report/components/entity-lists/compute.cjs +2 -2
- package/dist/report/components/entity-lists/compute.cjs.map +1 -1
- package/dist/report/components/entity-lists/compute.d.cts +2 -2
- package/dist/report/components/entity-lists/compute.d.mts +2 -2
- package/dist/report/components/entity-lists/compute.d.ts +2 -2
- package/dist/report/components/entity-lists/index.cjs +6 -2
- package/dist/report/components/entity-lists/index.cjs.map +1 -1
- package/dist/report/components/entity-lists/index.d.cts +3 -6
- package/dist/report/components/entity-lists/index.d.mts +3 -6
- package/dist/report/components/entity-lists/index.d.ts +3 -6
- package/dist/report/components/summaries/compute.cjs +8 -1
- package/dist/report/components/summaries/compute.cjs.map +1 -1
- package/dist/report/components/summaries/compute.d.cts +9 -1
- package/dist/report/components/summaries/compute.d.mts +9 -1
- package/dist/report/components/summaries/compute.d.ts +9 -1
- package/dist/report/components/summaries/index.cjs +48 -4
- package/dist/report/components/summaries/index.cjs.map +1 -1
- package/dist/report/components/summaries/index.d.cts +7 -4
- package/dist/report/components/summaries/index.d.mts +7 -4
- package/dist/report/components/summaries/index.d.ts +7 -4
- package/dist/report/definition/primitives/chart.cjs +8 -5
- package/dist/report/definition/primitives/chart.cjs.map +1 -1
- package/dist/report/definition/primitives/points-dataset.cjs +1 -0
- package/dist/report/definition/primitives/points-dataset.cjs.map +1 -1
- package/dist/report/definition/primitives.cjs +6 -0
- package/dist/report/definition/primitives.cjs.map +1 -1
- package/dist/report/definition/report.cjs +27 -3
- package/dist/report/definition/report.cjs.map +1 -1
- package/dist/report/definition/report.d.cts +8 -0
- package/dist/report/definition/report.d.mts +8 -0
- package/dist/report/definition/report.d.ts +8 -0
- package/dist/report/execution/machine.cjs +30 -14
- package/dist/report/execution/machine.cjs.map +1 -1
- package/dist/report/execution/machine.d.cts +20 -10
- package/dist/report/execution/machine.d.mts +20 -10
- package/dist/report/execution/machine.d.ts +20 -10
- package/dist/report/execution/machine.js +6 -6
- package/dist/report/host/execute.cjs +25 -16
- package/dist/report/host/execute.cjs.map +1 -1
- package/dist/report/host/execute.d.cts +4 -0
- package/dist/report/host/execute.d.mts +4 -0
- package/dist/report/host/execute.d.ts +4 -0
- package/dist/report/host/from-record.cjs +22 -5
- package/dist/report/host/from-record.cjs.map +1 -1
- package/dist/report/host/machine.cjs +53 -11
- package/dist/report/host/machine.cjs.map +1 -1
- package/dist/report/host/site-runtime.cjs +9 -8
- package/dist/report/host/site-runtime.cjs.map +1 -1
- package/dist/report/host/site-runtime.d.cts +1 -1
- package/dist/report/host/site-runtime.d.mts +1 -1
- package/dist/report/host/site-runtime.d.ts +1 -1
- package/dist/report/host/static.cjs +56 -9
- package/dist/report/host/static.cjs.map +1 -1
- package/dist/report/index.cjs.map +1 -1
- package/dist/report/index.d.cts +1 -1
- package/dist/report/index.d.mts +1 -1
- package/dist/report/index.d.ts +1 -1
- package/dist/report/model/dataset.cjs +7 -2
- package/dist/report/model/dataset.cjs.map +1 -1
- package/dist/report/model/locale.cjs +2 -0
- package/dist/report/model/locale.cjs.map +1 -1
- package/dist/report/model/locale.d.cts +1 -0
- package/dist/report/model/locale.d.mts +1 -0
- package/dist/report/model/locale.d.ts +1 -0
- package/dist/report/model/metrics.cjs +3 -1
- package/dist/report/model/metrics.cjs.map +1 -1
- package/dist/report/model/pricing.cjs +16 -11
- package/dist/report/model/pricing.cjs.map +1 -1
- package/dist/report/react/styles.css +53 -29
- package/dist/runner/adoption.cjs +1 -0
- package/dist/runner/adoption.cjs.map +1 -1
- package/dist/runner/attempt.cjs +44 -5
- package/dist/runner/attempt.cjs.map +1 -1
- package/dist/runner/attempt.d.cts +13 -1
- package/dist/runner/attempt.d.mts +13 -1
- package/dist/runner/attempt.d.ts +13 -1
- package/dist/runner/config-identity.cjs +10 -2
- package/dist/runner/config-identity.cjs.map +1 -1
- package/dist/runner/config-identity.d.cts +4 -2
- package/dist/runner/config-identity.d.mts +4 -2
- package/dist/runner/config-identity.d.ts +4 -2
- package/dist/runner/feedback/human.cjs +139 -64
- package/dist/runner/feedback/human.cjs.map +1 -1
- package/dist/runner/feedback/json.cjs +14 -6
- package/dist/runner/feedback/json.cjs.map +1 -1
- package/dist/runner/feedback/json.d.cts +3 -2
- package/dist/runner/feedback/json.d.mts +3 -2
- package/dist/runner/feedback/json.d.ts +3 -2
- package/dist/runner/feedback/reducer.cjs +2 -0
- package/dist/runner/feedback/reducer.cjs.map +1 -1
- package/dist/runner/judge-config.cjs +1 -1
- package/dist/runner/judge-config.cjs.map +1 -1
- package/dist/runner/ledger.cjs +124 -12
- package/dist/runner/ledger.cjs.map +1 -1
- package/dist/runner/project-current.cjs +13 -5
- package/dist/runner/project-current.cjs.map +1 -1
- package/dist/runner/run.cjs +521 -256
- package/dist/runner/run.cjs.map +1 -1
- package/dist/runner/sandbox-pool.cjs +161 -30
- package/dist/runner/sandbox-pool.cjs.map +1 -1
- package/dist/runner/sandbox-pool.d.cts +34 -2
- package/dist/runner/sandbox-pool.d.mts +34 -2
- package/dist/runner/sandbox-pool.d.ts +34 -2
- package/dist/runner/shared-state-lease.cjs +803 -0
- package/dist/runner/shared-state-lease.cjs.map +1 -0
- package/dist/runner/shared-state-lease.d.cts +121 -0
- package/dist/runner/shared-state-lease.d.mts +121 -0
- package/dist/runner/shared-state-lease.d.ts +121 -0
- package/dist/runner/shared-state-lease.js +24 -0
- package/dist/runner/shared-state-lease.js.map +1 -0
- package/dist/runner/teardown-registry.cjs +97 -34
- package/dist/runner/teardown-registry.cjs.map +1 -1
- package/dist/runner/teardown-registry.d.cts +27 -1
- package/dist/runner/teardown-registry.d.mts +27 -1
- package/dist/runner/teardown-registry.d.ts +27 -1
- package/dist/runner/teardown-registry.js +20 -16
- package/dist/runner/types.cjs.map +1 -1
- package/dist/runner/types.d.cts +31 -5
- package/dist/runner/types.d.mts +31 -5
- package/dist/runner/types.d.ts +31 -5
- package/dist/sample/analysis.cjs +249 -459
- package/dist/sample/analysis.cjs.map +1 -1
- package/dist/sample/capability.cjs +46 -8
- package/dist/sample/capability.cjs.map +1 -1
- package/dist/sandbox/docker-profile/schema.cjs +283 -534
- package/dist/sandbox/docker-profile/schema.cjs.map +1 -1
- package/dist/sandbox/docker-profile/schema.d.cts +10 -27
- package/dist/sandbox/docker-profile/schema.d.mts +10 -27
- package/dist/sandbox/docker-profile/schema.d.ts +10 -27
- package/dist/sandbox/e2b-agent-template.cjs +5 -2
- package/dist/sandbox/e2b-agent-template.cjs.map +1 -1
- package/dist/sandbox/keep-registry.cjs +28 -66
- package/dist/sandbox/keep-registry.cjs.map +1 -1
- package/dist/sandbox/types.cjs.map +1 -1
- package/dist/sandbox/types.d.cts +1 -1
- package/dist/sandbox/types.d.mts +1 -1
- package/dist/sandbox/types.d.ts +1 -1
- package/dist/shared/aggregate.cjs +16 -6
- package/dist/shared/aggregate.cjs.map +1 -1
- package/dist/shared/aggregate.d.cts +12 -4
- package/dist/shared/aggregate.d.mts +12 -4
- package/dist/shared/aggregate.d.ts +12 -4
- package/dist/shared/turn-label.cjs +20 -2
- package/dist/shared/turn-label.cjs.map +1 -1
- package/dist/shared/turn-label.d.cts +2 -0
- package/dist/shared/turn-label.d.mts +2 -0
- package/dist/shared/turn-label.d.ts +2 -0
- package/dist/shared/turn-label.js +4 -2
- package/dist/vendor/remark/remark-gfm.cjs +7 -7
- package/dist/vendor/remark/remark-gfm.cjs.map +1 -1
- package/dist/vendor/remark/remark-parse.cjs +12 -12
- package/dist/vendor/remark/remark-parse.cjs.map +1 -1
- package/dist/vendor/remark/remark.cjs +13 -13
- package/dist/vendor/remark/remark.cjs.map +1 -1
- package/dist/view/server.cjs +6 -0
- package/dist/view/server.cjs.map +1 -1
- package/docs-site/zh/examples/ai-agent-application.mdx +1 -1
- package/docs-site/zh/examples/coding-agent-extensions.mdx +1 -1
- package/docs-site/zh/examples/integrations/ai-sdk-v7.mdx +1 -0
- package/docs-site/zh/examples/integrations/langgraph.mdx +1 -1
- package/docs-site/zh/explanation/assert.mdx +6 -6
- package/docs-site/zh/explanation/drive.mdx +1 -1
- package/docs-site/zh/explanation/evals.mdx +9 -9
- package/docs-site/zh/explanation/experiment.mdx +2 -2
- package/docs-site/zh/explanation/hitl.mdx +3 -3
- package/docs-site/zh/explanation/judge.mdx +5 -5
- package/docs-site/zh/explanation/overview.mdx +3 -3
- package/docs-site/zh/explanation/runner.mdx +1 -1
- package/docs-site/zh/index.mdx +3 -3
- package/docs-site/zh/reference/builtin-agents.mdx +9 -9
- package/docs-site/zh/reference/cli.mdx +18 -12
- package/docs-site/zh/reference/define-agent.mdx +130 -5
- package/docs-site/zh/reference/define-config.mdx +2 -2
- package/docs-site/zh/reference/define-eval.mdx +4 -4
- package/docs-site/zh/reference/events.mdx +1 -1
- package/docs-site/zh/reference/official-adapters.mdx +5 -5
- package/docs-site/zh/troubleshooting/debugging.mdx +1 -1
- package/docs-site/zh/troubleshooting/recover-after-kill.mdx +37 -5
- package/docs-site/zh/tutorials/accept-results.mdx +72 -0
- package/docs-site/zh/tutorials/agent-onboarding.mdx +6 -6
- package/docs-site/zh/tutorials/authoring.mdx +9 -13
- package/docs-site/zh/tutorials/ci-integration.mdx +6 -6
- package/docs-site/zh/tutorials/compare-runs.mdx +61 -0
- package/docs-site/zh/tutorials/concurrency.mdx +13 -12
- package/docs-site/zh/tutorials/configuration.mdx +4 -6
- package/docs-site/zh/tutorials/connect-your-agent.mdx +1 -1
- package/docs-site/zh/tutorials/control-run-cost.mdx +58 -0
- package/docs-site/zh/tutorials/criteria-files.mdx +2 -2
- package/docs-site/zh/tutorials/custom-reports.mdx +2 -2
- package/docs-site/zh/tutorials/debug-lifecycle-plan.mdx +46 -0
- package/docs-site/zh/tutorials/docker-in-docker.mdx +50 -44
- package/docs-site/zh/tutorials/eval-groups.mdx +6 -6
- package/docs-site/zh/tutorials/evaluation-kinds.mdx +3 -3
- package/docs-site/zh/tutorials/experiments.mdx +2 -3
- package/docs-site/zh/tutorials/handle-execution-failures.mdx +18 -10
- package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +16 -8
- package/docs-site/zh/tutorials/plugins.mdx +14 -0
- package/docs-site/zh/tutorials/rerun-and-cache.mdx +3 -17
- package/docs-site/zh/tutorials/sandbox-agent.mdx +17 -11
- package/docs-site/zh/tutorials/sandbox-providers.mdx +17 -13
- package/docs-site/zh/tutorials/sandbox-reuse.mdx +12 -19
- package/docs-site/zh/tutorials/select-and-preview.mdx +65 -0
- package/docs-site/zh/tutorials/verify-judge.mdx +78 -0
- package/docs-site/zh/tutorials/viewing-results.mdx +27 -8
- package/docs-site/zh/tutorials/write-experiment.mdx +7 -5
- package/docs-site/zh/tutorials/write-send.mdx +2 -2
- package/package.json +9 -5
- package/dist/report/built-in/overview.cjs +0 -45
- package/dist/report/built-in/overview.cjs.map +0 -1
- package/dist/report/built-in/overview.d.cts +0 -6
- package/dist/report/built-in/overview.d.mts +0 -6
- package/dist/report/built-in/overview.d.ts +0 -6
- package/dist/report/built-in/overview.js +0 -9
- package/dist/report/built-in/overview.js.map +0 -1
- package/dist/runner/gate-lease.cjs +0 -283
- package/dist/runner/gate-lease.cjs.map +0 -1
- package/dist/runner/gate-lease.d.cts +0 -62
- package/dist/runner/gate-lease.d.mts +0 -62
- package/dist/runner/gate-lease.d.ts +0 -62
- package/dist/runner/gate-lease.js +0 -22
- package/dist/runner/gate-lease.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-components.js","sourceRoot":"","sources":["result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F,EACT,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,IACrB,CAAC,CAAC;AACZ,CAAC;AACY,QAAA,0BAA0B,GAAG,IAAA,yBAAe,EAAyB,CAAC,KAAK,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1H,kCAA0B,CAAC,WAAW,GAAG,4BAA4B,CAAC;AACtE,SAAS,QAAQ,CAAC,KAAgB;IAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;AAClE,CAAC","sourcesContent":["/**\n * Built-in report composition over already-closed values.\n *\n * Nothing in this module accepts a Sample, storage capability, attachment, or\n * Effect Scope. Page loaders own Analysis and DomainView acquisition; these\n * components only arrange their rows and views into the report product.\n */\nimport type { AttemptEvidenceDomainView, AttemptObservabilityDomainView, ClosedCommandEntry, ClosedConversationItem, ClosedUsageObservation, ExperimentId, FileChangesDomainView, JsonValue, MetricValue, SandboxHistoryDomainView, SourcesDomainView, } from \"../../analysis/index.ts\";\nimport type { AttemptLocator } from \"../../attempt-locator.ts\";\nimport { Hero, type HeroData } from \"../components/site-components/index.tsx\";\nimport { defineComponent } from \"../definition/tree.ts\";\nimport { Bars, Col, Grid, Section, Stat, Table, Text, } from \"../definition/primitives.tsx\";\nimport type { Cell } from \"../definition/cell.tsx\";\nimport { evidenceRow } from \"../model/metrics.ts\";\nimport { experimentDetailTarget } from \"../library/details.ts\";\nimport type { BuiltInAttemptRows, BuiltInExperimentRows, BuiltInSummaryRows, } from \"./analysis-values.ts\";\nconst DETAIL_ROWS_MAX = 200;\nconst SOURCE_TEXT_MAX = 12000;\nexport interface OverviewCounts {\n readonly experiments: number;\n readonly attempts: number;\n readonly expectedResults: number;\n}\n/** Display-safe membership facts prepared by the Page loader from Snapshot. */\nexport interface MembershipRow {\n readonly key: string;\n readonly experiment: string;\n readonly eval: string;\n readonly attempt: number;\n readonly selectedRun: string;\n readonly slot: string;\n readonly state: string;\n readonly relation: string | null;\n readonly locator: string | null;\n readonly outcome?: string | null;\n readonly phase?: string | null;\n readonly error?: string | null;\n readonly sharedFailure?: string | null;\n}\nexport interface RunErrorRow {\n readonly key: string;\n readonly failure: string;\n readonly phase: string;\n readonly affected: string;\n readonly error: string;\n readonly message: string;\n readonly fix: string | null;\n}\nexport interface StandardOverviewResult {\n readonly hero: HeroData;\n readonly summary: BuiltInSummaryRows;\n readonly experiments: BuiltInExperimentRows;\n readonly counts: OverviewCounts;\n}\nexport interface StandardAttemptsResult {\n readonly hero: HeroData;\n readonly attempts: BuiltInAttemptRows;\n}\nexport interface ExperimentDetailResult {\n readonly hero: HeroData;\n readonly experiment: string;\n readonly rows: BuiltInExperimentRows;\n readonly members: readonly MembershipRow[];\n}\nexport interface AttemptDetailResult {\n readonly hero: HeroData;\n readonly locator: AttemptLocator | null;\n readonly members: readonly MembershipRow[];\n readonly evidence: AttemptEvidenceDomainView;\n readonly observability: AttemptObservabilityDomainView;\n readonly fileChanges: FileChangesDomainView;\n readonly sources: SourcesDomainView;\n readonly sandbox: SandboxHistoryDomainView;\n}\nexport interface RunMembershipResult {\n readonly hero: HeroData;\n readonly summary: BuiltInSummaryRows;\n readonly members: readonly MembershipRow[];\n readonly errors: readonly RunErrorRow[];\n readonly evidence: AttemptEvidenceDomainView;\n}\nexport interface AttemptTraceProps {\n readonly view: AttemptObservabilityDomainView;\n readonly locator?: AttemptLocator;\n readonly mode: \"execution\" | \"timing\";\n readonly grep?: string;\n readonly timingMode?: \"summary\" | \"full\";\n}\nexport interface FileChangesTrajectoryProps {\n readonly view: FileChangesDomainView;\n readonly locator?: AttemptLocator;\n}\nexport interface SourcesResultProps {\n readonly view: SourcesDomainView;\n readonly locator?: AttemptLocator;\n readonly file?: string;\n}\nexport interface SandboxHistoryResultProps {\n readonly view: SandboxHistoryDomainView;\n readonly locator?: AttemptLocator;\n}\nfunction metricCell(metric: MetricValue): Cell {\n return { kind: \"metric\", metric };\n}\nfunction metricValueOnlyCell(metric: MetricValue): Cell {\n return { kind: \"metric\", metric, showCoverage: false };\n}\nfunction limited<Row>(rows: readonly Row[], maximum = DETAIL_ROWS_MAX): readonly Row[] {\n return rows.slice(0, maximum);\n}\nfunction omittedText(total: number, visible: number, label: string) {\n return total === visible ? null : <Text>{`${total - visible} additional ${label} omitted from this page.`}</Text>;\n}\nfunction issueRows(view: {\n readonly issues: readonly {\n readonly code: string;\n readonly message: string;\n }[];\n}) {\n return view.issues.map((issue, index) => ({\n key: `${issue.code}:${index}`,\n code: issue.code,\n message: issue.message,\n }));\n}\nfunction issueSection(view: {\n readonly issues: readonly {\n readonly code: string;\n readonly message: string;\n }[];\n}) {\n const rows = issueRows(view);\n return rows.length === 0 ? null : (<Section title=\"Analysis notes\" meta={`${rows.length}`}>\n <Table rows={rows} columns={[\"code\", \"message\"]}/>\n </Section>);\n}\nfunction heroAndKpis(input: StandardOverviewResult) {\n const summary = input.summary[0];\n const hasScore = input.experiments.some((row) => row.evaluationKind !== \"pass\");\n const hasPassSummary = input.experiments.length > 0 && input.experiments.every((row) => row.evaluationKind === \"pass\");\n const scores = input.experiments.flatMap((row) => row.totalScore === undefined ? [] : [row.totalScore]);\n const meanScore = scores.length === 0 ? null : scores.reduce((sum, score) => sum + score, 0) / scores.length;\n return (<>\n <Hero data={input.hero}/>\n <Grid>\n {hasPassSummary ? <Stat label=\"Pass rate\" value={summary === undefined ? null : metricValueOnlyCell(summary.passRate)}/> : null}\n {hasScore ? <Stat label=\"Mean score\" value={meanScore}/> : null}\n <Stat label=\"Mean duration\" value={summary === undefined ? null : metricValueOnlyCell(summary.durationMs)}/>\n <Stat label=\"Mean tokens\" value={summary === undefined ? null : metricValueOnlyCell(summary.tokens)}/>\n <Stat label=\"Experiments\" value={input.counts.experiments}/>\n <Stat label=\"Included attempts\" value={input.counts.attempts}/>\n </Grid>\n </>);\n}\nfunction resultCoverageSection(counts: OverviewCounts) {\n if (counts.attempts >= counts.expectedResults)\n return null;\n return (<Section title=\"Result coverage\" meta={`${counts.attempts} of ${counts.expectedResults} results available`}>\n <Text>Some expected results do not have an analyzable Attempt. Result coverage is not a score or pass rate.</Text>\n </Section>);\n}\nfunction experimentPoints(rows: BuiltInExperimentRows) {\n return rows.filter((row) => row.passRate !== null).map((row) => evidenceRow({\n experiment: String(row.experiment),\n passRate: row.passRate!,\n durationMs: row.durationMs,\n }));\n}\nfunction experimentTarget(experiment: string) {\n return { page: \"experiment\", params: experimentDetailTarget(experiment as ExperimentId) };\n}\nfunction standardOverviewTree(input: StandardOverviewResult) {\n const hasScore = input.experiments.some((row) => row.evaluationKind !== \"pass\");\n const hasPass = input.experiments.some((row) => row.evaluationKind === \"pass\");\n const points = experimentPoints(input.experiments);\n const columns = [\n { field: \"experiment\", label: \"Experiment\" },\n ...(hasPass ? [{ field: \"passRate\", label: \"Pass rate\" }] : []),\n ...(hasScore ? [{ field: \"totalScore\", label: \"Score\" }] : []),\n { field: \"durationMs\", label: \"Mean duration\" },\n { field: \"tokens\", label: \"Mean tokens\" },\n ];\n const tableRows = input.experiments.map((row) => ({\n ...row,\n passRate: row.passRate === null ? null : metricValueOnlyCell(row.passRate),\n totalScore: row.totalScore ?? null,\n durationMs: metricValueOnlyCell(row.durationMs),\n tokens: metricValueOnlyCell(row.tokens),\n }));\n return (<Col>\n {heroAndKpis(input)}\n {resultCoverageSection(input.counts)}\n <Section title=\"Experiment results\" meta={`${input.experiments.length} experiments`}>\n {input.experiments.length === 0 ? <Text>No experiment rows are available for this selection.</Text> : !hasPass ? null : (<Col>\n <Bars points={points} x=\"experiment\" y=\"passRate\" point=\"experiment\" pointTarget={(point) => experimentTarget(point.key)} sort={{ field: \"passRate\", direction: \"desc\" }} layout=\"horizontal\"/>\n </Col>)}\n <Table rows={tableRows} columns={columns}/>\n </Section>\n {issueSection(input.experiments)}\n </Col>);\n}\n/** The default product overview: Hero, exactly six KPIs, Bars, Scatter, and Table. */\nexport const StandardOverviewResultView = defineComponent<StandardOverviewResult>((input) => standardOverviewTree(input));\nStandardOverviewResultView.displayName = \"StandardOverviewResultView\";\nfunction standardAttemptsTree(input: StandardAttemptsResult) {\n const rows = input.attempts.map((row) => ({\n ...row,\n attempt: typeof row.attempt === \"string\"\n ? { kind: \"locator\" as const, locator: row.attempt as AttemptLocator }\n : row.attempt,\n }));\n return (<Col>\n <Hero data={input.hero}/>\n <Section title=\"Attempts\" meta={`${input.attempts.length} attempts`}>\n <Table rows={rows} columns={[\n { field: \"experiment\", label: \"Experiment\" },\n { field: \"evalId\", label: \"Eval\" },\n { field: \"attempt\", label: \"Attempt\" },\n { field: \"passRate\", label: \"Pass rate\" },\n { field: \"durationMs\", label: \"Mean duration\" },\n { field: \"tokens\", label: \"Mean tokens\" },\n ]}/>\n </Section>\n {issueSection(input.attempts)}\n </Col>);\n}\nexport const StandardAttemptsResultView = defineComponent<StandardAttemptsResult>((input) => standardAttemptsTree(input));\nStandardAttemptsResultView.displayName = \"StandardAttemptsResultView\";\nfunction membershipTable(rows: readonly MembershipRow[]) {\n const normalized = rows.map((row) => ({\n ...row,\n outcome: row.outcome ?? null,\n phase: row.phase ?? null,\n error: row.error ?? null,\n sharedFailure: row.sharedFailure ?? null,\n }));\n return (<Table rows={normalized} columns={[\n { field: \"experiment\", label: \"Experiment\" },\n { field: \"eval\", label: \"Eval\" },\n { field: \"attempt\", label: \"Attempt\" },\n { field: \"state\", label: \"Membership\" },\n { field: \"outcome\", label: \"Outcome\" },\n { field: \"error\", label: \"Error\" },\n { field: \"phase\", label: \"Phase\" },\n { field: \"sharedFailure\", label: \"Shared failure\" },\n { field: \"locator\", label: \"Attempt locator\" },\n { field: \"selectedRun\", label: \"Selected run\" },\n { field: \"slot\", label: \"Slot\" },\n { field: \"relation\", label: \"Relation\" },\n ]}/>);\n}\nfunction runErrorsSection(rows: readonly RunErrorRow[]) {\n return rows.length === 0 ? null : (<Section title=\"Run errors\" meta={`${rows.length} shared failure${rows.length === 1 ? \"\" : \"s\"}`}>\n {rows.map((row) => (<Section key={row.key} title={`${row.error} · ${row.failure}`}>\n <Text>{`phase: ${row.phase}`}</Text>\n <Text>{`affected: ${row.affected}`}</Text>\n <Text>{row.message}</Text>\n {row.fix === null ? null : <Text>{`fix: ${row.fix}`}</Text>}\n </Section>))}\n </Section>);\n}\nfunction evidenceEntryRows(view: AttemptEvidenceDomainView, locator?: AttemptLocator) {\n return view.entries\n .filter((entry) => locator === undefined || entry.attempt.locator === locator)\n .map((entry) => ({\n key: entry.attempt.locator,\n locator: entry.attempt.locator,\n originRun: entry.attempt.originRunId,\n state: entry.state,\n outcome: entry.state === \"available\" ? entry.detail.outcome : null,\n verdict: entry.state === \"available\" ? entry.detail.verdict : null,\n assertions: entry.state === \"available\" ? entry.detail.entries.length : null,\n sourceSites: entry.state === \"available\" ? entry.detail.sourceSites.length : null,\n }));\n}\nfunction assertionRows(entry: Extract<AttemptEvidenceDomainView[\"entries\"][number], {\n readonly state: \"available\";\n}>) {\n return entry.detail.entries.map((assertion) => ({\n key: assertion.entryId,\n assertion: assertion.entryId,\n display: jsonText(assertion.display),\n criterion: jsonText(assertion.criterion),\n result: jsonText(assertion.result),\n coverage: jsonText(assertion.coverage),\n }));\n}\nfunction attemptEvidenceTree(props: {\n readonly view: AttemptEvidenceDomainView;\n readonly locator?: AttemptLocator;\n}) {\n const entries = evidenceEntryRows(props.view, props.locator);\n const visible = limited(entries);\n const available = props.view.entries.filter((entry): entry is Extract<typeof entry, {\n readonly state: \"available\";\n }> => (props.locator === undefined || entry.attempt.locator === props.locator) && entry.state === \"available\");\n return (<Section title=\"Assessment evidence\" meta={`${entries.length} attempt${entries.length === 1 ? \"\" : \"s\"}`}>\n {visible.length === 0 ? <Text>No closed assessment evidence matches this target.</Text> : (<Table rows={visible} columns={[\"locator\", \"originRun\", \"state\", \"outcome\", \"verdict\", \"assertions\", \"sourceSites\"]}/>)}\n {omittedText(entries.length, visible.length, \"assessment evidence rows\")}\n {available.map((entry) => {\n const assertions = limited(assertionRows(entry));\n return (<Section key={entry.attempt.locator} title={`Assertions · ${entry.attempt.locator}`}>\n {assertions.length === 0 ? <Text>No recorded assertions.</Text> : (<Table rows={assertions} columns={[\"assertion\", \"display\", \"criterion\", \"result\", \"coverage\"]}/>)}\n {omittedText(entry.detail.entries.length, assertions.length, \"assertions\")}\n </Section>);\n })}\n {issueSection(props.view)}\n </Section>);\n}\nexport const AttemptEvidenceResultView = defineComponent<{\n readonly view: AttemptEvidenceDomainView;\n readonly locator?: AttemptLocator;\n}>((props) => attemptEvidenceTree(props));\nAttemptEvidenceResultView.displayName = \"AttemptEvidenceResultView\";\nfunction conversationText(item: ClosedConversationItem): string {\n switch (item.kind) {\n case \"message\":\n return `${item.role}: ${item.text}`;\n case \"tool-call\":\n return `${item.tool}(${item.inputSummary})`;\n case \"tool-result\":\n return `${item.outcome}: ${item.outputSummary}`;\n case \"thinking-summary\":\n case \"compaction\":\n case \"context-injection\":\n return item.summary;\n case \"subagent\":\n return `${item.label} · ${item.state} · ${item.summary}`;\n case \"input-request\":\n return `${item.state} · ${item.promptSummary}${item.responseSummary === null ? \"\" : ` · ${item.responseSummary}`}`;\n case \"skill-load\":\n case \"conversation-error\":\n return `${item.code} · ${item.summary}`;\n }\n}\nfunction commandText(command: ClosedCommandEntry) {\n const invocation = command.manifest.invocation.kind === \"argv\"\n ? [command.manifest.invocation.executable, ...command.manifest.invocation.arguments].join(\" \")\n : command.manifest.invocation.command;\n const outcome = command.result.outcome.kind === \"exited\"\n ? `exit ${command.result.outcome.exitCode}`\n : `${command.result.outcome.kind}: ${command.result.outcome.reason}`;\n return { invocation, outcome };\n}\nfunction usageValue(observation: ClosedUsageObservation) {\n switch (observation.kind) {\n case \"token-bucket\":\n return `${observation.bucket}: ${observation.tokens}`;\n case \"request\":\n return observation.requestKind;\n case \"provider-cost\":\n return `${observation.amount} ${observation.currency}`;\n }\n}\nfunction traceEntryTree(entry: Extract<AttemptObservabilityDomainView[\"entries\"][number], {\n readonly state: \"available\";\n}>, props: AttemptTraceProps) {\n const detail = entry.detail;\n const filter = props.grep === undefined ? undefined : new RegExp(props.grep);\n const conversationRows = detail.conversation.items\n .map((item) => ({\n key: item.itemId,\n sequence: item.sequence,\n turn: item.turnId,\n event: item.kind,\n detail: conversationText(item),\n }))\n .filter((row) => filter === undefined || filter.test(`${row.event}\\n${row.detail}`));\n const commands = detail.commands.entries.map((command) => ({\n key: command.commandId,\n phase: command.manifest.phase,\n command: commandText(command).invocation,\n outcome: commandText(command).outcome,\n workingDirectory: command.manifest.workingDirectory.kind === \"project-relative\"\n ? command.manifest.workingDirectory.path\n : command.manifest.workingDirectory.kind,\n })).filter((row) => filter === undefined || filter.test(`${row.command}\\n${row.outcome}`));\n const timings = detail.timing.intervals.map((interval) => ({\n key: interval.intervalId,\n phase: interval.phase,\n label: interval.label,\n startMs: interval.startOffsetMs,\n durationMs: interval.durationMs,\n outcome: interval.outcome,\n parent: props.timingMode === \"full\" ? interval.parentIntervalId : null,\n }));\n const usage = detail.usage.observations.map((observation, index) => ({\n key: `${observation.provider}:${observation.kind}:${index}`,\n provider: observation.provider,\n kind: observation.kind,\n value: usageValue(observation),\n }));\n const diagnostics = detail.diagnostics.diagnostics.map((diagnostic) => ({\n key: diagnostic.diagnosticId,\n kind: diagnostic.kind,\n phase: diagnostic.phase,\n code: diagnostic.code,\n summary: diagnostic.summary,\n redaction: diagnostic.redaction.state === \"applied\" ? `${diagnostic.redaction.replacements} replacements` : \"none\",\n }));\n if (props.mode === \"timing\") {\n return (<Section title={`Timing · ${entry.attempt.locator}`} meta={detail.timing.collection.state}>\n {timings.length === 0 ? <Text>No recorded timing intervals.</Text> : (<Table rows={timings} columns={props.timingMode === \"full\"\n ? [\"phase\", \"label\", \"startMs\", \"durationMs\", \"outcome\", \"parent\"]\n : [\"phase\", \"label\", \"durationMs\", \"outcome\"]}/>)}\n </Section>);\n }\n return (<Section title={`Execution trace · ${entry.attempt.locator}`} meta={detail.conversation.collection.state}>\n <Table rows={[{\n key: entry.attempt.locator,\n turns: detail.conversation.turns.length,\n conversationItems: detail.conversation.items.length,\n commands: detail.commands.entries.length,\n timingIntervals: detail.timing.intervals.length,\n diagnostics: detail.diagnostics.diagnostics.length,\n }]} columns={[\"turns\", \"conversationItems\", \"commands\", \"timingIntervals\", \"diagnostics\"]}/>\n <Section title=\"Conversation\" meta={detail.conversation.collection.state}>\n {conversationRows.length === 0 ? <Text>No recorded conversation entries match this view.</Text> : (<Table rows={limited(conversationRows)} columns={[\"sequence\", \"turn\", \"event\", \"detail\"]}/>)}\n {omittedText(conversationRows.length, Math.min(conversationRows.length, DETAIL_ROWS_MAX), \"conversation entries\")}\n </Section>\n <Section title=\"Commands\" meta={detail.commands.collection.state}>\n {commands.length === 0 ? <Text>No recorded commands match this view.</Text> : (<Table rows={limited(commands)} columns={[\"phase\", \"command\", \"outcome\", \"workingDirectory\"]}/>)}\n {omittedText(commands.length, Math.min(commands.length, DETAIL_ROWS_MAX), \"commands\")}\n </Section>\n <Section title=\"Timing\" meta={detail.timing.collection.state}>\n {timings.length === 0 ? <Text>No recorded timing intervals.</Text> : (<Table rows={limited(timings)} columns={[\"phase\", \"label\", \"startMs\", \"durationMs\", \"outcome\"]}/>)}\n </Section>\n <Section title=\"Usage\" meta={detail.usage.collection.state}>\n {usage.length === 0 ? <Text>No recorded provider usage.</Text> : <Table rows={limited(usage)} columns={[\"provider\", \"kind\", \"value\"]}/>}\n </Section>\n <Section title=\"Diagnostics\" meta={detail.diagnostics.collection.state}>\n {diagnostics.length === 0 ? <Text>No recorded diagnostics.</Text> : (<Table rows={limited(diagnostics)} columns={[\"kind\", \"phase\", \"code\", \"summary\", \"redaction\"]}/>)}\n </Section>\n </Section>);\n}\nfunction attemptTraceTree(props: AttemptTraceProps) {\n const entries = props.view.entries\n .filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator)\n .slice(0, DETAIL_ROWS_MAX);\n return (<Col>\n {entries.length === 0 ? <Section title={props.mode === \"timing\" ? \"Timing\" : \"Execution trace\"}><Text>No matching closed trace data.</Text></Section> : null}\n {entries.map((entry) => entry.state === \"available\"\n ? <>{traceEntryTree(entry, props)}</>\n : <Section key={entry.attempt.locator} title={`${props.mode === \"timing\" ? \"Timing\" : \"Execution trace\"} · ${entry.attempt.locator}`}><Text>{`Trace data is ${entry.state}.`}</Text></Section>)}\n {issueSection(props.view)}\n </Col>);\n}\n/** Execution and timing never query: their only input is a closed observability DomainView. */\nexport const AttemptTrace = defineComponent<AttemptTraceProps>((props) => attemptTraceTree(props));\nAttemptTrace.displayName = \"AttemptTrace\";\nfunction endpointText(endpoint: {\n readonly state: \"absent\";\n} | {\n readonly state: \"present\";\n readonly revision: {\n readonly kind: string;\n };\n}): string {\n return endpoint.state === \"absent\" ? \"absent\" : endpoint.revision.kind;\n}\nfunction fileChangesTree(props: FileChangesTrajectoryProps) {\n const entries = props.view.entries.filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator);\n return (<Col>\n {entries.length === 0 ? <Section title=\"File changes\"><Text>No matching closed file-change data.</Text></Section> : null}\n {entries.map((entry) => {\n if (entry.state !== \"available\") {\n return <Section key={entry.attempt.locator} title={`File changes · ${entry.attempt.locator}`}><Text>{`File changes are ${entry.state}.`}</Text></Section>;\n }\n const changes = entry.detail.trajectory.flatMap((window) => window.changes.map((change) => ({\n key: `${window.windowId}:${change.changeId}`,\n window: window.sequence,\n path: change.path,\n kind: change.kind,\n before: endpointText(change.before),\n after: endpointText(change.after),\n })));\n const paths = entry.detail.paths.map((path) => ({\n key: path.path,\n path: path.path,\n changes: path.changes.length,\n net: path.net.state === \"available\" ? path.net.kind : path.net.reason,\n }));\n return (<Section key={entry.attempt.locator} title={`File changes · ${entry.attempt.locator}`} meta={entry.detail.collection.state}>\n <Table rows={[{\n key: entry.attempt.locator,\n attribution: entry.detail.attribution.kind,\n windows: entry.detail.trajectory.length,\n paths: entry.detail.paths.length,\n limitations: entry.detail.collection.limitations.length,\n }]} columns={[\"attribution\", \"windows\", \"paths\", \"limitations\"]}/>\n <Section title=\"Change trajectory\">\n {changes.length === 0 ? <Text>No retained changed paths.</Text> : <Table rows={limited(changes)} columns={[\"window\", \"path\", \"kind\", \"before\", \"after\"]}/>}\n {omittedText(changes.length, Math.min(changes.length, DETAIL_ROWS_MAX), \"file changes\")}\n </Section>\n <Section title=\"Path summary\">\n {paths.length === 0 ? <Text>No retained path summaries.</Text> : <Table rows={limited(paths)} columns={[\"path\", \"changes\", \"net\"]}/>}\n </Section>\n </Section>);\n })}\n {issueSection(props.view)}\n </Col>);\n}\nexport const FileChangesTrajectory = defineComponent<FileChangesTrajectoryProps>((props) => fileChangesTree(props));\nFileChangesTrajectory.displayName = \"FileChangesTrajectory\";\nfunction sourceContentText(content: {\n readonly state: \"available\";\n readonly text: string;\n} | {\n readonly state: \"unavailable\" | \"binary\";\n}): string {\n if (content.state !== \"available\")\n return content.state;\n return content.text.length <= SOURCE_TEXT_MAX\n ? content.text\n : `${content.text.slice(0, SOURCE_TEXT_MAX)}\\n… source text truncated for this page.`;\n}\nfunction sourcesTree(props: SourcesResultProps) {\n const entries = props.view.entries.filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator);\n return (<Col>\n {entries.length === 0 ? <Section title=\"Recorded source\"><Text>No matching closed source data.</Text></Section> : null}\n {entries.map((entry) => {\n if (entry.state !== \"available\") {\n return <Section key={entry.attempt.locator} title={`Recorded source · ${entry.attempt.locator}`}><Text>{`Sources are ${entry.state}.`}</Text></Section>;\n }\n const items = entry.detail.items.filter((item) => props.file === undefined || item.path === props.file);\n return (<Section key={entry.attempt.locator} title={`Recorded source · ${entry.attempt.locator}`}>\n {items.length === 0 ? <Text>{props.file === undefined ? \"No recorded source files.\" : `No recorded source matches ${props.file}.`}</Text> : null}\n {items.map((item) => (<Section key={item.sourceItemId} title={item.path} meta={item.sha256}>\n <Table rows={[{\n key: item.sourceItemId,\n sourceItem: item.sourceItemId,\n content: item.content.state,\n }]} columns={[\"sourceItem\", \"content\"]}/>\n <Text>{sourceContentText(item.content)}</Text>\n </Section>))}\n </Section>);\n })}\n {issueSection(props.view)}\n </Col>);\n}\nexport const SourcesResultView = defineComponent<SourcesResultProps>((props) => sourcesTree(props));\nSourcesResultView.displayName = \"SourcesResultView\";\nfunction sandboxTree(props: SandboxHistoryResultProps) {\n const entries = props.view.entries.filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator);\n const rows = entries.map((entry) => ({\n key: entry.attempt.locator,\n locator: entry.attempt.locator,\n state: entry.state,\n commands: entry.state === \"available\" ? entry.detail.commands.entries.length : null,\n timingIntervals: entry.state === \"available\" ? entry.detail.timing.intervals.length : null,\n diagnostics: entry.state === \"available\" ? entry.detail.diagnostics.diagnostics.length : null,\n }));\n return (<Section title=\"Sandbox history\" meta={`${rows.length} attempt${rows.length === 1 ? \"\" : \"s\"}`}>\n {rows.length === 0 ? <Text>No matching closed sandbox history.</Text> : (<Table rows={limited(rows)} columns={[\"locator\", \"state\", \"commands\", \"timingIntervals\", \"diagnostics\"]}/>)}\n {omittedText(rows.length, Math.min(rows.length, DETAIL_ROWS_MAX), \"sandbox history rows\")}\n {issueSection(props.view)}\n </Section>);\n}\nexport const SandboxHistoryResultView = defineComponent<SandboxHistoryResultProps>((props) => sandboxTree(props));\nSandboxHistoryResultView.displayName = \"SandboxHistoryResultView\";\nfunction runMembershipTree(input: RunMembershipResult) {\n const summary = input.summary[0];\n return (<Col>\n <Hero data={input.hero}/>\n <Grid>\n <Stat label=\"Pass rate\" value={summary === undefined ? null : metricCell(summary.passRate)}/>\n <Stat label=\"Included attempts\" value={input.members.filter((member) => member.state === \"included\").length}/>\n </Grid>\n <Section title=\"Run membership\" meta={`${input.members.length} slots`}>\n {membershipTable(limited(input.members))}\n {omittedText(input.members.length, Math.min(input.members.length, DETAIL_ROWS_MAX), \"membership rows\")}\n </Section>\n {runErrorsSection(input.errors)}\n <AttemptEvidenceResultView view={input.evidence}/>\n {issueSection(input.summary)}\n </Col>);\n}\nexport const RunMembershipResultView = defineComponent<RunMembershipResult>((input) => runMembershipTree(input));\nRunMembershipResultView.displayName = \"RunMembershipResultView\";\nfunction attemptDetailTree(input: AttemptDetailResult) {\n const locator = input.locator ?? undefined;\n return (<Col>\n <Hero data={input.hero}/>\n <Section title={`Attempt · ${input.locator ?? \"unavailable\"}`}>\n {membershipTable(input.members)}\n </Section>\n <AttemptEvidenceResultView view={input.evidence} locator={locator}/>\n <AttemptTrace view={input.observability} locator={locator} mode=\"execution\" timingMode=\"full\"/>\n <FileChangesTrajectory view={input.fileChanges} locator={locator}/>\n <SourcesResultView view={input.sources} locator={locator}/>\n <SandboxHistoryResultView view={input.sandbox} locator={locator}/>\n </Col>);\n}\nexport const AttemptDetailResultView = defineComponent<AttemptDetailResult>((input) => attemptDetailTree(input));\nAttemptDetailResultView.displayName = \"AttemptDetailResultView\";\nfunction experimentDetailTree(input: ExperimentDetailResult) {\n const rows = input.rows.filter((row) => String(row.experiment) === input.experiment);\n const hasScore = rows.some((row) => row.evaluationKind !== \"pass\");\n const hasPass = rows.some((row) => row.evaluationKind === \"pass\");\n const columns = [\n \"experiment\",\n ...(hasPass ? [\"passRate\"] : []),\n ...(hasScore ? [\"totalScore\"] : []),\n \"durationMs\",\n \"tokens\",\n ];\n return (<Col>\n <Hero data={input.hero}/>\n <Section title={`Experiment · ${input.experiment}`}>\n <Table rows={rows} columns={columns}/>\n </Section>\n <Section title=\"Experiment members\" meta={`${input.members.length} slots`}>\n {membershipTable(limited(input.members))}\n {omittedText(input.members.length, Math.min(input.members.length, DETAIL_ROWS_MAX), \"member rows\")}\n </Section>\n {issueSection(input.rows)}\n </Col>);\n}\nexport const ExperimentDetailResultView = defineComponent<ExperimentDetailResult>((input) => experimentDetailTree(input));\nExperimentDetailResultView.displayName = \"ExperimentDetailResultView\";\nfunction jsonText(value: JsonValue): string {\n const text = JSON.stringify(value);\n return text.length <= 1000 ? text : `${text.slice(0, 1000)}…`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"result-components.js","sourceRoot":"","sources":["result-components.tsx"],"names":[],"mappings":";;;;AASA,sEAA8E;AAC9E,mDAAwD;AACxD,gEAAsF;AAGtF,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,eAAe,GAAG,KAAK,CAAC;AAuE9B,SAAS,UAAU,CAAC,MAAmB;IACnC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACtC,CAAC;AACD,SAAS,OAAO,CAAM,IAAoB,EAAE,OAAO,GAAG,eAAe;IACjE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AACD,SAAS,WAAW,CAAC,KAAa,EAAE,OAAe,EAAE,KAAa;IAC9D,OAAO,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAC,qBAAI,cAAE,GAAG,KAAK,GAAG,OAAO,eAAe,KAAK,0BAA0B,GAAQ,CAAC;AACtH,CAAC;AACD,SAAS,SAAS,CAAC,IAKlB;IACG,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACtC,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,EAAE;QAC7B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO;KACzB,CAAC,CAAC,CAAC;AACR,CAAC;AACD,SAAS,YAAY,CAAC,IAKrB;IACG,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAC,wBAAO,IAAC,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAE,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AAE,IAAI,CAAC,GAAG,CAAC;AAClE,CAAC","sourcesContent":["/**\n * Built-in report composition over already-closed values.\n *\n * Nothing in this module accepts a Sample, storage capability, attachment, or\n * Effect Scope. Page loaders own Analysis and DomainView acquisition; these\n * components only arrange their rows and views into the report product.\n */\nimport type { AttemptEvidenceDomainView, AttemptObservabilityDomainView, ClosedCommandEntry, ClosedConversationItem, ClosedUsageObservation, FileChangesDomainView, JsonValue, MetricValue, SandboxHistoryDomainView, SourcesDomainView, } from \"../../analysis/index.ts\";\nimport type { AttemptLocator } from \"../../attempt-locator.ts\";\nimport { Hero, type HeroData } from \"../components/site-components/index.tsx\";\nimport { defineComponent } from \"../definition/tree.ts\";\nimport { Col, Grid, Section, Stat, Table, Text, } from \"../definition/primitives.tsx\";\nimport type { Cell } from \"../definition/cell.tsx\";\nimport type { BuiltInExperimentRows, BuiltInSummaryRows, } from \"./analysis-values.ts\";\nconst DETAIL_ROWS_MAX = 200;\nconst SOURCE_TEXT_MAX = 12000;\n/** Display-safe membership facts prepared by the Page loader from Snapshot. */\nexport interface MembershipRow {\n readonly key: string;\n readonly experiment: string;\n readonly eval: string;\n readonly attempt: number;\n readonly selectedRun: string;\n readonly slot: string;\n readonly state: string;\n readonly relation: string | null;\n readonly locator: string | null;\n readonly outcome?: string | null;\n readonly verdict?: string | null;\n readonly phase?: string | null;\n readonly error?: string | null;\n readonly sharedFailure?: string | null;\n}\nexport interface RunErrorRow {\n readonly key: string;\n readonly failure: string;\n readonly phase: string;\n readonly affected: string;\n readonly affectedCount: number;\n readonly error: string;\n readonly message: string;\n readonly fix: string | null;\n}\nexport interface ExperimentDetailResult {\n readonly hero: HeroData;\n readonly experiment: string;\n readonly rows: BuiltInExperimentRows;\n readonly members: readonly MembershipRow[];\n}\nexport interface AttemptDetailResult {\n readonly hero: HeroData;\n readonly locator: AttemptLocator | null;\n readonly members: readonly MembershipRow[];\n readonly evidence: AttemptEvidenceDomainView;\n readonly observability: AttemptObservabilityDomainView;\n readonly fileChanges: FileChangesDomainView;\n readonly sources: SourcesDomainView;\n readonly sandbox: SandboxHistoryDomainView;\n}\nexport interface RunMembershipResult {\n readonly hero: HeroData;\n readonly summary: BuiltInSummaryRows;\n readonly members: readonly MembershipRow[];\n readonly errors: readonly RunErrorRow[];\n readonly evidence: AttemptEvidenceDomainView;\n}\nexport interface AttemptTraceProps {\n readonly view: AttemptObservabilityDomainView;\n readonly locator?: AttemptLocator;\n readonly mode: \"execution\" | \"timing\";\n readonly grep?: string;\n readonly timingMode?: \"summary\" | \"full\";\n}\nexport interface FileChangesTrajectoryProps {\n readonly view: FileChangesDomainView;\n readonly locator?: AttemptLocator;\n}\nexport interface SourcesResultProps {\n readonly view: SourcesDomainView;\n readonly locator?: AttemptLocator;\n readonly file?: string;\n}\nexport interface SandboxHistoryResultProps {\n readonly view: SandboxHistoryDomainView;\n readonly locator?: AttemptLocator;\n}\nfunction metricCell(metric: MetricValue): Cell {\n return { kind: \"metric\", metric };\n}\nfunction limited<Row>(rows: readonly Row[], maximum = DETAIL_ROWS_MAX): readonly Row[] {\n return rows.slice(0, maximum);\n}\nfunction omittedText(total: number, visible: number, label: string) {\n return total === visible ? null : <Text>{`${total - visible} additional ${label} omitted from this page.`}</Text>;\n}\nfunction issueRows(view: {\n readonly issues: readonly {\n readonly code: string;\n readonly message: string;\n }[];\n}) {\n return view.issues.map((issue, index) => ({\n key: `${issue.code}:${index}`,\n code: issue.code,\n message: issue.message,\n }));\n}\nfunction issueSection(view: {\n readonly issues: readonly {\n readonly code: string;\n readonly message: string;\n }[];\n}) {\n const rows = issueRows(view);\n return rows.length === 0 ? null : (<Section title=\"Analysis notes\" meta={`${rows.length}`}>\n <Table rows={rows} columns={[\"code\", \"message\"]}/>\n </Section>);\n}\nfunction membershipTable(rows: readonly MembershipRow[]) {\n const normalized = rows.map((row) => ({\n ...row,\n outcome: row.outcome ?? null,\n phase: row.phase ?? null,\n error: row.error ?? null,\n sharedFailure: row.sharedFailure ?? null,\n }));\n return (<Table rows={normalized} columns={[\n { field: \"experiment\", label: \"Experiment\" },\n { field: \"eval\", label: \"Eval\" },\n { field: \"attempt\", label: \"Attempt\" },\n { field: \"state\", label: \"Membership\" },\n { field: \"outcome\", label: \"Outcome\" },\n { field: \"error\", label: \"Error\" },\n { field: \"phase\", label: \"Phase\" },\n { field: \"sharedFailure\", label: \"Shared failure\" },\n { field: \"locator\", label: \"Attempt locator\" },\n { field: \"selectedRun\", label: \"Selected run\" },\n { field: \"slot\", label: \"Slot\" },\n { field: \"relation\", label: \"Relation\" },\n ]}/>);\n}\nfunction runErrorsSection(rows: readonly RunErrorRow[]) {\n const notStarted = rows.reduce((total, row) => total + row.affectedCount, 0);\n return rows.length === 0 ? null : (<Section title=\"Run errors\" meta={`${notStarted} attempt${notStarted === 1 ? \"\" : \"s\"} not started`}>\n {rows.map((row) => (<Section key={row.key} title=\"Sandbox image build failed\">\n <Text>{`affected: ${row.affected}`}</Text>\n <Text>{`error: ${row.message}`}</Text>\n </Section>))}\n </Section>);\n}\nfunction evidenceEntryRows(view: AttemptEvidenceDomainView, locator?: AttemptLocator) {\n return view.entries\n .filter((entry) => locator === undefined || entry.attempt.locator === locator)\n .map((entry) => ({\n key: entry.attempt.locator,\n locator: entry.attempt.locator,\n originRun: entry.attempt.originRunId,\n state: entry.state,\n outcome: entry.state === \"available\" ? entry.detail.outcome : null,\n verdict: entry.state === \"available\" ? entry.detail.verdict : null,\n assertions: entry.state === \"available\" ? entry.detail.entries.length : null,\n sourceSites: entry.state === \"available\" ? entry.detail.sourceSites.length : null,\n }));\n}\nfunction assertionRows(entry: Extract<AttemptEvidenceDomainView[\"entries\"][number], {\n readonly state: \"available\";\n}>) {\n return entry.detail.entries.map((assertion) => ({\n key: assertion.entryId,\n assertion: assertion.entryId,\n display: jsonText(assertion.display),\n criterion: jsonText(assertion.criterion),\n result: jsonText(assertion.result),\n coverage: jsonText(assertion.coverage),\n }));\n}\nfunction attemptEvidenceTree(props: {\n readonly view: AttemptEvidenceDomainView;\n readonly locator?: AttemptLocator;\n}) {\n const entries = evidenceEntryRows(props.view, props.locator);\n const visible = limited(entries);\n const available = props.view.entries.filter((entry): entry is Extract<typeof entry, {\n readonly state: \"available\";\n }> => (props.locator === undefined || entry.attempt.locator === props.locator) && entry.state === \"available\");\n return (<Section title=\"Assessment evidence\" meta={`${entries.length} attempt${entries.length === 1 ? \"\" : \"s\"}`}>\n {visible.length === 0 ? <Text>No closed assessment evidence matches this target.</Text> : (<Table rows={visible} columns={[\"locator\", \"originRun\", \"state\", \"outcome\", \"verdict\", \"assertions\", \"sourceSites\"]}/>)}\n {omittedText(entries.length, visible.length, \"assessment evidence rows\")}\n {available.map((entry) => {\n const assertions = limited(assertionRows(entry));\n return (<Section key={entry.attempt.locator} title={`Assertions · ${entry.attempt.locator}`}>\n {assertions.length === 0 ? <Text>No recorded assertions.</Text> : (<Table rows={assertions} columns={[\"assertion\", \"display\", \"criterion\", \"result\", \"coverage\"]}/>)}\n {omittedText(entry.detail.entries.length, assertions.length, \"assertions\")}\n </Section>);\n })}\n {issueSection(props.view)}\n </Section>);\n}\nexport const AttemptEvidenceResultView = defineComponent<{\n readonly view: AttemptEvidenceDomainView;\n readonly locator?: AttemptLocator;\n}>((props) => attemptEvidenceTree(props));\nAttemptEvidenceResultView.displayName = \"AttemptEvidenceResultView\";\nfunction conversationText(item: ClosedConversationItem): string {\n switch (item.kind) {\n case \"message\":\n return `${item.role}: ${item.text}`;\n case \"tool-call\":\n return `${item.tool}(${item.inputSummary})`;\n case \"tool-result\":\n return `${item.outcome}: ${item.outputSummary}`;\n case \"thinking-summary\":\n case \"compaction\":\n case \"context-injection\":\n return item.summary;\n case \"subagent\":\n return `${item.label} · ${item.state} · ${item.summary}`;\n case \"input-request\":\n return `${item.state} · ${item.promptSummary}${item.responseSummary === null ? \"\" : ` · ${item.responseSummary}`}`;\n case \"skill-load\":\n case \"conversation-error\":\n return `${item.code} · ${item.summary}`;\n }\n}\nfunction commandText(command: ClosedCommandEntry) {\n const invocation = command.manifest.invocation.kind === \"argv\"\n ? [command.manifest.invocation.executable, ...command.manifest.invocation.arguments].join(\" \")\n : command.manifest.invocation.command;\n const outcome = command.result.outcome.kind === \"exited\"\n ? `exit ${command.result.outcome.exitCode}`\n : `${command.result.outcome.kind}: ${command.result.outcome.reason}`;\n return { invocation, outcome };\n}\nfunction usageValue(observation: ClosedUsageObservation) {\n switch (observation.kind) {\n case \"token-bucket\":\n return `${observation.bucket}: ${observation.tokens}`;\n case \"request\":\n return observation.requestKind;\n case \"provider-cost\":\n return `${observation.amount} ${observation.currency}`;\n }\n}\nfunction traceEntryTree(entry: Extract<AttemptObservabilityDomainView[\"entries\"][number], {\n readonly state: \"available\";\n}>, props: AttemptTraceProps) {\n const detail = entry.detail;\n const filter = props.grep === undefined ? undefined : new RegExp(props.grep);\n const conversationRows = detail.conversation.items\n .map((item) => ({\n key: item.itemId,\n sequence: item.sequence,\n turn: item.turnId,\n event: item.kind,\n detail: conversationText(item),\n }))\n .filter((row) => filter === undefined || filter.test(`${row.event}\\n${row.detail}`));\n const commands = detail.commands.entries.map((command) => ({\n key: command.commandId,\n phase: command.manifest.phase,\n command: commandText(command).invocation,\n outcome: commandText(command).outcome,\n workingDirectory: command.manifest.workingDirectory.kind === \"project-relative\"\n ? command.manifest.workingDirectory.path\n : command.manifest.workingDirectory.kind,\n })).filter((row) => filter === undefined || filter.test(`${row.command}\\n${row.outcome}`));\n const timings = detail.timing.intervals.map((interval) => ({\n key: interval.intervalId,\n phase: interval.phase,\n label: interval.label,\n startMs: interval.startOffsetMs,\n durationMs: interval.durationMs,\n outcome: interval.outcome,\n parent: props.timingMode === \"full\" ? interval.parentIntervalId : null,\n }));\n const usage = detail.usage.observations.map((observation, index) => ({\n key: `${observation.provider}:${observation.kind}:${index}`,\n provider: observation.provider,\n kind: observation.kind,\n value: usageValue(observation),\n }));\n const diagnostics = detail.diagnostics.diagnostics.map((diagnostic) => ({\n key: diagnostic.diagnosticId,\n kind: diagnostic.kind,\n phase: diagnostic.phase,\n code: diagnostic.code,\n summary: diagnostic.summary,\n redaction: diagnostic.redaction.state === \"applied\" ? `${diagnostic.redaction.replacements} replacements` : \"none\",\n }));\n if (props.mode === \"timing\") {\n return (<Section title={`Timing · ${entry.attempt.locator}`} meta={detail.timing.collection.state}>\n {timings.length === 0 ? <Text>No recorded timing intervals.</Text> : (<Table rows={timings} columns={props.timingMode === \"full\"\n ? [\"phase\", \"label\", \"startMs\", \"durationMs\", \"outcome\", \"parent\"]\n : [\"phase\", \"label\", \"durationMs\", \"outcome\"]}/>)}\n </Section>);\n }\n return (<Section title={`Execution trace · ${entry.attempt.locator}`} meta={detail.conversation.collection.state}>\n <Table rows={[{\n key: entry.attempt.locator,\n turns: detail.conversation.turns.length,\n conversationItems: detail.conversation.items.length,\n commands: detail.commands.entries.length,\n timingIntervals: detail.timing.intervals.length,\n diagnostics: detail.diagnostics.diagnostics.length,\n }]} columns={[\"turns\", \"conversationItems\", \"commands\", \"timingIntervals\", \"diagnostics\"]}/>\n <Section title=\"Conversation\" meta={detail.conversation.collection.state}>\n {conversationRows.length === 0 ? <Text>No recorded conversation entries match this view.</Text> : (<Table rows={limited(conversationRows)} columns={[\"sequence\", \"turn\", \"event\", \"detail\"]}/>)}\n {omittedText(conversationRows.length, Math.min(conversationRows.length, DETAIL_ROWS_MAX), \"conversation entries\")}\n </Section>\n <Section title=\"Commands\" meta={detail.commands.collection.state}>\n {commands.length === 0 ? <Text>No recorded commands match this view.</Text> : (<Table rows={limited(commands)} columns={[\"phase\", \"command\", \"outcome\", \"workingDirectory\"]}/>)}\n {omittedText(commands.length, Math.min(commands.length, DETAIL_ROWS_MAX), \"commands\")}\n </Section>\n <Section title=\"Timing\" meta={detail.timing.collection.state}>\n {timings.length === 0 ? <Text>No recorded timing intervals.</Text> : (<Table rows={limited(timings)} columns={[\"phase\", \"label\", \"startMs\", \"durationMs\", \"outcome\"]}/>)}\n </Section>\n <Section title=\"Usage\" meta={detail.usage.collection.state}>\n {usage.length === 0 ? <Text>No recorded provider usage.</Text> : <Table rows={limited(usage)} columns={[\"provider\", \"kind\", \"value\"]}/>}\n </Section>\n <Section title=\"Diagnostics\" meta={detail.diagnostics.collection.state}>\n {diagnostics.length === 0 ? <Text>No recorded diagnostics.</Text> : (<Table rows={limited(diagnostics)} columns={[\"kind\", \"phase\", \"code\", \"summary\", \"redaction\"]}/>)}\n </Section>\n </Section>);\n}\nfunction attemptTraceTree(props: AttemptTraceProps) {\n const entries = props.view.entries\n .filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator)\n .slice(0, DETAIL_ROWS_MAX);\n return (<Col>\n {entries.length === 0 ? <Section title={props.mode === \"timing\" ? \"Timing\" : \"Execution trace\"}><Text>No matching closed trace data.</Text></Section> : null}\n {entries.map((entry) => entry.state === \"available\"\n ? <>{traceEntryTree(entry, props)}</>\n : <Section key={entry.attempt.locator} title={`${props.mode === \"timing\" ? \"Timing\" : \"Execution trace\"} · ${entry.attempt.locator}`}><Text>{`Trace data is ${entry.state}.`}</Text></Section>)}\n {issueSection(props.view)}\n </Col>);\n}\n/** Execution and timing never query: their only input is a closed observability DomainView. */\nexport const AttemptTrace = defineComponent<AttemptTraceProps>((props) => attemptTraceTree(props));\nAttemptTrace.displayName = \"AttemptTrace\";\nfunction endpointText(endpoint: {\n readonly state: \"absent\";\n} | {\n readonly state: \"present\";\n readonly revision: {\n readonly kind: string;\n };\n}): string {\n return endpoint.state === \"absent\" ? \"absent\" : endpoint.revision.kind;\n}\nfunction fileChangesTree(props: FileChangesTrajectoryProps) {\n const entries = props.view.entries.filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator);\n return (<Col>\n {entries.length === 0 ? <Section title=\"File changes\"><Text>No matching closed file-change data.</Text></Section> : null}\n {entries.map((entry) => {\n if (entry.state !== \"available\") {\n return <Section key={entry.attempt.locator} title={`File changes · ${entry.attempt.locator}`}><Text>{`File changes are ${entry.state}.`}</Text></Section>;\n }\n const changes = entry.detail.trajectory.flatMap((window) => window.changes.map((change) => ({\n key: `${window.windowId}:${change.changeId}`,\n window: window.sequence,\n path: change.path,\n kind: change.kind,\n before: endpointText(change.before),\n after: endpointText(change.after),\n })));\n const paths = entry.detail.paths.map((path) => ({\n key: path.path,\n path: path.path,\n changes: path.changes.length,\n net: path.net.state === \"available\" ? path.net.kind : path.net.reason,\n }));\n return (<Section key={entry.attempt.locator} title={`File changes · ${entry.attempt.locator}`} meta={entry.detail.collection.state}>\n <Table rows={[{\n key: entry.attempt.locator,\n attribution: entry.detail.attribution.kind,\n windows: entry.detail.trajectory.length,\n paths: entry.detail.paths.length,\n limitations: entry.detail.collection.limitations.length,\n }]} columns={[\"attribution\", \"windows\", \"paths\", \"limitations\"]}/>\n <Section title=\"Change trajectory\">\n {changes.length === 0 ? <Text>No retained changed paths.</Text> : <Table rows={limited(changes)} columns={[\"window\", \"path\", \"kind\", \"before\", \"after\"]}/>}\n {omittedText(changes.length, Math.min(changes.length, DETAIL_ROWS_MAX), \"file changes\")}\n </Section>\n <Section title=\"Path summary\">\n {paths.length === 0 ? <Text>No retained path summaries.</Text> : <Table rows={limited(paths)} columns={[\"path\", \"changes\", \"net\"]}/>}\n </Section>\n </Section>);\n })}\n {issueSection(props.view)}\n </Col>);\n}\nexport const FileChangesTrajectory = defineComponent<FileChangesTrajectoryProps>((props) => fileChangesTree(props));\nFileChangesTrajectory.displayName = \"FileChangesTrajectory\";\nfunction sourceContentText(content: {\n readonly state: \"available\";\n readonly text: string;\n} | {\n readonly state: \"unavailable\" | \"binary\";\n}): string {\n if (content.state !== \"available\")\n return content.state;\n return content.text.length <= SOURCE_TEXT_MAX\n ? content.text\n : `${content.text.slice(0, SOURCE_TEXT_MAX)}\\n… source text truncated for this page.`;\n}\nfunction sourcesTree(props: SourcesResultProps) {\n const entries = props.view.entries.filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator);\n return (<Col>\n {entries.length === 0 ? <Section title=\"Recorded source\"><Text>No matching closed source data.</Text></Section> : null}\n {entries.map((entry) => {\n if (entry.state !== \"available\") {\n return <Section key={entry.attempt.locator} title={`Recorded source · ${entry.attempt.locator}`}><Text>{`Sources are ${entry.state}.`}</Text></Section>;\n }\n const items = entry.detail.items.filter((item) => props.file === undefined || item.path === props.file);\n return (<Section key={entry.attempt.locator} title={`Recorded source · ${entry.attempt.locator}`}>\n {items.length === 0 ? <Text>{props.file === undefined ? \"No recorded source files.\" : `No recorded source matches ${props.file}.`}</Text> : null}\n {items.map((item) => (<Section key={item.sourceItemId} title={item.path} meta={item.sha256}>\n <Table rows={[{\n key: item.sourceItemId,\n sourceItem: item.sourceItemId,\n content: item.content.state,\n }]} columns={[\"sourceItem\", \"content\"]}/>\n <Text>{sourceContentText(item.content)}</Text>\n </Section>))}\n </Section>);\n })}\n {issueSection(props.view)}\n </Col>);\n}\nexport const SourcesResultView = defineComponent<SourcesResultProps>((props) => sourcesTree(props));\nSourcesResultView.displayName = \"SourcesResultView\";\nfunction sandboxTree(props: SandboxHistoryResultProps) {\n const entries = props.view.entries.filter((entry) => props.locator === undefined || entry.attempt.locator === props.locator);\n const rows = entries.map((entry) => ({\n key: entry.attempt.locator,\n locator: entry.attempt.locator,\n state: entry.state,\n commands: entry.state === \"available\" ? entry.detail.commands.entries.length : null,\n timingIntervals: entry.state === \"available\" ? entry.detail.timing.intervals.length : null,\n diagnostics: entry.state === \"available\" ? entry.detail.diagnostics.diagnostics.length : null,\n }));\n return (<Section title=\"Sandbox history\" meta={`${rows.length} attempt${rows.length === 1 ? \"\" : \"s\"}`}>\n {rows.length === 0 ? <Text>No matching closed sandbox history.</Text> : (<Table rows={limited(rows)} columns={[\"locator\", \"state\", \"commands\", \"timingIntervals\", \"diagnostics\"]}/>)}\n {omittedText(rows.length, Math.min(rows.length, DETAIL_ROWS_MAX), \"sandbox history rows\")}\n {issueSection(props.view)}\n </Section>);\n}\nexport const SandboxHistoryResultView = defineComponent<SandboxHistoryResultProps>((props) => sandboxTree(props));\nSandboxHistoryResultView.displayName = \"SandboxHistoryResultView\";\nfunction runMembershipTree(input: RunMembershipResult) {\n const hasAttempts = input.members.some((member) => member.locator !== null);\n const rows = input.members.map((member) => ({\n key: member.key,\n experiment: member.experiment,\n eval: member.eval,\n attempt: `#${member.attempt + 1}`,\n result: member.locator === null\n ? member.outcome === \"errored\" ? \"errored\" : \"not started\"\n : member.relation === \"reference\" || member.state === \"carried\" || member.state === \"accepted\"\n ? `using result ${member.locator}`\n : member.verdict ?? member.outcome ?? member.state,\n details: member.locator === null\n ? null\n : { kind: \"locator\" as const, locator: member.locator as AttemptLocator },\n }));\n return (<Col>\n <Hero data={input.hero}/>\n {runErrorsSection(input.errors)}\n <Section title=\"Planned attempts\" meta={`${input.members.length} attempt${input.members.length === 1 ? \"\" : \"s\"}`}>\n <Table rows={limited(rows)} columns={[\n { field: \"experiment\", label: \"Experiment\" },\n { field: \"eval\", label: \"Eval\" },\n { field: \"attempt\", label: \"Attempt\" },\n { field: \"result\", label: \"Result\" },\n { field: \"details\", label: \"Details\" },\n ]}/>\n {omittedText(rows.length, Math.min(rows.length, DETAIL_ROWS_MAX), \"planned attempts\")}\n </Section>\n {hasAttempts ? <AttemptEvidenceResultView view={input.evidence}/> : null}\n {hasAttempts ? issueSection(input.summary) : null}\n </Col>);\n}\nexport const RunMembershipResultView = defineComponent<RunMembershipResult>((input) => runMembershipTree(input));\nRunMembershipResultView.displayName = \"RunMembershipResultView\";\nfunction attemptDetailTree(input: AttemptDetailResult) {\n const locator = input.locator ?? undefined;\n return (<Col>\n <Hero data={input.hero}/>\n <Section title={`Attempt · ${input.locator ?? \"unavailable\"}`}>\n {membershipTable(input.members)}\n </Section>\n <AttemptEvidenceResultView view={input.evidence} locator={locator}/>\n <AttemptTrace view={input.observability} locator={locator} mode=\"execution\" timingMode=\"full\"/>\n <FileChangesTrajectory view={input.fileChanges} locator={locator}/>\n <SourcesResultView view={input.sources} locator={locator}/>\n <SandboxHistoryResultView view={input.sandbox} locator={locator}/>\n </Col>);\n}\nexport const AttemptDetailResultView = defineComponent<AttemptDetailResult>((input) => attemptDetailTree(input));\nAttemptDetailResultView.displayName = \"AttemptDetailResultView\";\nfunction experimentDetailTree(input: ExperimentDetailResult) {\n const rows = input.rows.filter((row) => String(row.experiment) === input.experiment);\n const hasScore = rows.some((row) => row.evaluationKind !== \"pass\");\n const hasPass = rows.some((row) => row.evaluationKind === \"pass\");\n const columns = [\n \"experiment\",\n ...(hasPass ? [\"passRate\"] : []),\n ...(hasScore ? [\"totalScore\"] : []),\n \"durationMs\",\n \"tokens\",\n ];\n return (<Col>\n <Hero data={input.hero}/>\n <Section title={`Experiment · ${input.experiment}`}>\n <Table rows={rows} columns={columns}/>\n </Section>\n <Section title=\"Experiment members\" meta={`${input.members.length} slots`}>\n {membershipTable(limited(input.members))}\n {omittedText(input.members.length, Math.min(input.members.length, DETAIL_ROWS_MAX), \"member rows\")}\n </Section>\n {issueSection(input.rows)}\n </Col>);\n}\nexport const ExperimentDetailResultView = defineComponent<ExperimentDetailResult>((input) => experimentDetailTree(input));\nExperimentDetailResultView.displayName = \"ExperimentDetailResultView\";\nfunction jsonText(value: JsonValue): string {\n const text = JSON.stringify(value);\n return text.length <= 1000 ? text : `${text.slice(0, 1000)}…`;\n}\n"]}
|
|
@@ -8,12 +8,7 @@
|
|
|
8
8
|
import type { AttemptEvidenceDomainView, AttemptObservabilityDomainView, FileChangesDomainView, SandboxHistoryDomainView, SourcesDomainView } from "../../analysis/index.cjs";
|
|
9
9
|
import type { AttemptLocator } from "../../attempt-locator.cjs";
|
|
10
10
|
import { type HeroData } from "../components/site-components/index.cjs";
|
|
11
|
-
import type {
|
|
12
|
-
export interface OverviewCounts {
|
|
13
|
-
readonly experiments: number;
|
|
14
|
-
readonly attempts: number;
|
|
15
|
-
readonly expectedResults: number;
|
|
16
|
-
}
|
|
11
|
+
import type { BuiltInExperimentRows, BuiltInSummaryRows } from "./analysis-values.cjs";
|
|
17
12
|
/** Display-safe membership facts prepared by the Page loader from Snapshot. */
|
|
18
13
|
export interface MembershipRow {
|
|
19
14
|
readonly key: string;
|
|
@@ -26,6 +21,7 @@ export interface MembershipRow {
|
|
|
26
21
|
readonly relation: string | null;
|
|
27
22
|
readonly locator: string | null;
|
|
28
23
|
readonly outcome?: string | null;
|
|
24
|
+
readonly verdict?: string | null;
|
|
29
25
|
readonly phase?: string | null;
|
|
30
26
|
readonly error?: string | null;
|
|
31
27
|
readonly sharedFailure?: string | null;
|
|
@@ -35,20 +31,11 @@ export interface RunErrorRow {
|
|
|
35
31
|
readonly failure: string;
|
|
36
32
|
readonly phase: string;
|
|
37
33
|
readonly affected: string;
|
|
34
|
+
readonly affectedCount: number;
|
|
38
35
|
readonly error: string;
|
|
39
36
|
readonly message: string;
|
|
40
37
|
readonly fix: string | null;
|
|
41
38
|
}
|
|
42
|
-
export interface StandardOverviewResult {
|
|
43
|
-
readonly hero: HeroData;
|
|
44
|
-
readonly summary: BuiltInSummaryRows;
|
|
45
|
-
readonly experiments: BuiltInExperimentRows;
|
|
46
|
-
readonly counts: OverviewCounts;
|
|
47
|
-
}
|
|
48
|
-
export interface StandardAttemptsResult {
|
|
49
|
-
readonly hero: HeroData;
|
|
50
|
-
readonly attempts: BuiltInAttemptRows;
|
|
51
|
-
}
|
|
52
39
|
export interface ExperimentDetailResult {
|
|
53
40
|
readonly hero: HeroData;
|
|
54
41
|
readonly experiment: string;
|
|
@@ -92,9 +79,6 @@ export interface SandboxHistoryResultProps {
|
|
|
92
79
|
readonly view: SandboxHistoryDomainView;
|
|
93
80
|
readonly locator?: AttemptLocator;
|
|
94
81
|
}
|
|
95
|
-
/** The default product overview: Hero, exactly six KPIs, Bars, Scatter, and Table. */
|
|
96
|
-
export declare const StandardOverviewResultView: import("../definition/tree.cjs").ReportComponent<StandardOverviewResult>;
|
|
97
|
-
export declare const StandardAttemptsResultView: import("../definition/tree.cjs").ReportComponent<StandardAttemptsResult>;
|
|
98
82
|
export declare const AttemptEvidenceResultView: import("../definition/tree.cjs").ReportComponent<{
|
|
99
83
|
readonly view: AttemptEvidenceDomainView;
|
|
100
84
|
readonly locator?: AttemptLocator;
|
|
@@ -8,12 +8,7 @@
|
|
|
8
8
|
import type { AttemptEvidenceDomainView, AttemptObservabilityDomainView, FileChangesDomainView, SandboxHistoryDomainView, SourcesDomainView } from "../../analysis/index.mjs";
|
|
9
9
|
import type { AttemptLocator } from "../../attempt-locator.mjs";
|
|
10
10
|
import { type HeroData } from "../components/site-components/index.mjs";
|
|
11
|
-
import type {
|
|
12
|
-
export interface OverviewCounts {
|
|
13
|
-
readonly experiments: number;
|
|
14
|
-
readonly attempts: number;
|
|
15
|
-
readonly expectedResults: number;
|
|
16
|
-
}
|
|
11
|
+
import type { BuiltInExperimentRows, BuiltInSummaryRows } from "./analysis-values.mjs";
|
|
17
12
|
/** Display-safe membership facts prepared by the Page loader from Snapshot. */
|
|
18
13
|
export interface MembershipRow {
|
|
19
14
|
readonly key: string;
|
|
@@ -26,6 +21,7 @@ export interface MembershipRow {
|
|
|
26
21
|
readonly relation: string | null;
|
|
27
22
|
readonly locator: string | null;
|
|
28
23
|
readonly outcome?: string | null;
|
|
24
|
+
readonly verdict?: string | null;
|
|
29
25
|
readonly phase?: string | null;
|
|
30
26
|
readonly error?: string | null;
|
|
31
27
|
readonly sharedFailure?: string | null;
|
|
@@ -35,20 +31,11 @@ export interface RunErrorRow {
|
|
|
35
31
|
readonly failure: string;
|
|
36
32
|
readonly phase: string;
|
|
37
33
|
readonly affected: string;
|
|
34
|
+
readonly affectedCount: number;
|
|
38
35
|
readonly error: string;
|
|
39
36
|
readonly message: string;
|
|
40
37
|
readonly fix: string | null;
|
|
41
38
|
}
|
|
42
|
-
export interface StandardOverviewResult {
|
|
43
|
-
readonly hero: HeroData;
|
|
44
|
-
readonly summary: BuiltInSummaryRows;
|
|
45
|
-
readonly experiments: BuiltInExperimentRows;
|
|
46
|
-
readonly counts: OverviewCounts;
|
|
47
|
-
}
|
|
48
|
-
export interface StandardAttemptsResult {
|
|
49
|
-
readonly hero: HeroData;
|
|
50
|
-
readonly attempts: BuiltInAttemptRows;
|
|
51
|
-
}
|
|
52
39
|
export interface ExperimentDetailResult {
|
|
53
40
|
readonly hero: HeroData;
|
|
54
41
|
readonly experiment: string;
|
|
@@ -92,9 +79,6 @@ export interface SandboxHistoryResultProps {
|
|
|
92
79
|
readonly view: SandboxHistoryDomainView;
|
|
93
80
|
readonly locator?: AttemptLocator;
|
|
94
81
|
}
|
|
95
|
-
/** The default product overview: Hero, exactly six KPIs, Bars, Scatter, and Table. */
|
|
96
|
-
export declare const StandardOverviewResultView: import("../definition/tree.mjs").ReportComponent<StandardOverviewResult>;
|
|
97
|
-
export declare const StandardAttemptsResultView: import("../definition/tree.mjs").ReportComponent<StandardAttemptsResult>;
|
|
98
82
|
export declare const AttemptEvidenceResultView: import("../definition/tree.mjs").ReportComponent<{
|
|
99
83
|
readonly view: AttemptEvidenceDomainView;
|
|
100
84
|
readonly locator?: AttemptLocator;
|
|
@@ -8,12 +8,7 @@
|
|
|
8
8
|
import type { AttemptEvidenceDomainView, AttemptObservabilityDomainView, FileChangesDomainView, SandboxHistoryDomainView, SourcesDomainView } from "../../analysis/index.js";
|
|
9
9
|
import type { AttemptLocator } from "../../attempt-locator.js";
|
|
10
10
|
import { type HeroData } from "../components/site-components/index.js";
|
|
11
|
-
import type {
|
|
12
|
-
export interface OverviewCounts {
|
|
13
|
-
readonly experiments: number;
|
|
14
|
-
readonly attempts: number;
|
|
15
|
-
readonly expectedResults: number;
|
|
16
|
-
}
|
|
11
|
+
import type { BuiltInExperimentRows, BuiltInSummaryRows } from "./analysis-values.js";
|
|
17
12
|
/** Display-safe membership facts prepared by the Page loader from Snapshot. */
|
|
18
13
|
export interface MembershipRow {
|
|
19
14
|
readonly key: string;
|
|
@@ -26,6 +21,7 @@ export interface MembershipRow {
|
|
|
26
21
|
readonly relation: string | null;
|
|
27
22
|
readonly locator: string | null;
|
|
28
23
|
readonly outcome?: string | null;
|
|
24
|
+
readonly verdict?: string | null;
|
|
29
25
|
readonly phase?: string | null;
|
|
30
26
|
readonly error?: string | null;
|
|
31
27
|
readonly sharedFailure?: string | null;
|
|
@@ -35,20 +31,11 @@ export interface RunErrorRow {
|
|
|
35
31
|
readonly failure: string;
|
|
36
32
|
readonly phase: string;
|
|
37
33
|
readonly affected: string;
|
|
34
|
+
readonly affectedCount: number;
|
|
38
35
|
readonly error: string;
|
|
39
36
|
readonly message: string;
|
|
40
37
|
readonly fix: string | null;
|
|
41
38
|
}
|
|
42
|
-
export interface StandardOverviewResult {
|
|
43
|
-
readonly hero: HeroData;
|
|
44
|
-
readonly summary: BuiltInSummaryRows;
|
|
45
|
-
readonly experiments: BuiltInExperimentRows;
|
|
46
|
-
readonly counts: OverviewCounts;
|
|
47
|
-
}
|
|
48
|
-
export interface StandardAttemptsResult {
|
|
49
|
-
readonly hero: HeroData;
|
|
50
|
-
readonly attempts: BuiltInAttemptRows;
|
|
51
|
-
}
|
|
52
39
|
export interface ExperimentDetailResult {
|
|
53
40
|
readonly hero: HeroData;
|
|
54
41
|
readonly experiment: string;
|
|
@@ -92,9 +79,6 @@ export interface SandboxHistoryResultProps {
|
|
|
92
79
|
readonly view: SandboxHistoryDomainView;
|
|
93
80
|
readonly locator?: AttemptLocator;
|
|
94
81
|
}
|
|
95
|
-
/** The default product overview: Hero, exactly six KPIs, Bars, Scatter, and Table. */
|
|
96
|
-
export declare const StandardOverviewResultView: import("../definition/tree.js").ReportComponent<StandardOverviewResult>;
|
|
97
|
-
export declare const StandardAttemptsResultView: import("../definition/tree.js").ReportComponent<StandardAttemptsResult>;
|
|
98
82
|
export declare const AttemptEvidenceResultView: import("../definition/tree.js").ReportComponent<{
|
|
99
83
|
readonly view: AttemptEvidenceDomainView;
|
|
100
84
|
readonly locator?: AttemptLocator;
|
|
@@ -17,8 +17,4 @@ const __niceevalExport6 = __niceevalCanonical["SandboxHistoryResultView"];
|
|
|
17
17
|
export { __niceevalExport6 as SandboxHistoryResultView };
|
|
18
18
|
const __niceevalExport7 = __niceevalCanonical["SourcesResultView"];
|
|
19
19
|
export { __niceevalExport7 as SourcesResultView };
|
|
20
|
-
const __niceevalExport8 = __niceevalCanonical["StandardAttemptsResultView"];
|
|
21
|
-
export { __niceevalExport8 as StandardAttemptsResultView };
|
|
22
|
-
const __niceevalExport9 = __niceevalCanonical["StandardOverviewResultView"];
|
|
23
|
-
export { __niceevalExport9 as StandardOverviewResultView };
|
|
24
20
|
//# sourceMappingURL=result-components.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultRunMembershipOverviewReport = void 0;
|
|
4
|
+
exports.loadRunMembershipPageInput = loadRunMembershipPageInput;
|
|
4
5
|
exports.runMembershipOverviewReport = runMembershipOverviewReport;
|
|
5
6
|
const index_ts_1 = require("../../analysis/index.cjs");
|
|
6
7
|
const api_ts_1 = require("../../analysis/api.cjs");
|
|
@@ -9,6 +10,22 @@ const conversions_ts_1 = require("../model/conversions.cjs");
|
|
|
9
10
|
const analysis_values_ts_1 = require("./analysis-values.cjs");
|
|
10
11
|
const result_components_tsx_1 = require("./result-components.cjs");
|
|
11
12
|
const machine_ts_1 = require("./machine.cjs");
|
|
13
|
+
const standard_tsx_1 = require("./standard.cjs");
|
|
14
|
+
/** Closes the data shared by the Human Page and its Host-owned machine producer. */
|
|
15
|
+
async function loadRunMembershipPageInput(sample) {
|
|
16
|
+
const [summary, evidence, diagnostics] = await Promise.all([
|
|
17
|
+
(0, analysis_values_ts_1.loadBuiltInSummaryRows)(sample),
|
|
18
|
+
(0, conversions_ts_1.toAttemptEvidence)(sample),
|
|
19
|
+
(0, index_ts_1.query)(sample, { kind: "domain-view", view: api_ts_1.runDiagnosticsView }),
|
|
20
|
+
]);
|
|
21
|
+
return Object.freeze({
|
|
22
|
+
hero: heroData(sample.snapshot),
|
|
23
|
+
summary,
|
|
24
|
+
members: membershipRows(sample.snapshot, diagnostics, evidence),
|
|
25
|
+
errors: runErrorRows(diagnostics),
|
|
26
|
+
evidence,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
12
29
|
function heroData(snapshot) {
|
|
13
30
|
const latest = snapshot.runs.reduce((current, run) => current === null || Number(run.startedAt) > current ? Number(run.startedAt) : current, null);
|
|
14
31
|
return Object.freeze({
|
|
@@ -86,6 +103,7 @@ function runErrorRows(view) {
|
|
|
86
103
|
failure: group.failure.failureId,
|
|
87
104
|
phase: group.failure.phase,
|
|
88
105
|
affected: `${group.experimentId} · ${group.affected.join(", ")}`,
|
|
106
|
+
affectedCount: group.affected.length,
|
|
89
107
|
error: group.failure.errorCode,
|
|
90
108
|
message: group.failure.message,
|
|
91
109
|
fix: group.failure.remediation === "pnpm-allow-builds"
|
|
@@ -96,6 +114,7 @@ function runErrorRows(view) {
|
|
|
96
114
|
function membershipRows(snapshot, diagnostics, evidence) {
|
|
97
115
|
const failures = failureBySlot(diagnostics);
|
|
98
116
|
const outcomes = new Map(evidence.entries.flatMap((entry) => entry.state === "available" ? [[entry.attempt.locator, entry.detail.outcome]] : []));
|
|
117
|
+
const verdicts = new Map(evidence.entries.flatMap((entry) => entry.state === "available" ? [[entry.attempt.locator, entry.detail.verdict]] : []));
|
|
99
118
|
return Object.freeze(snapshot.slots.map((slot) => Object.freeze({
|
|
100
119
|
key: `${slot.runId}:${slot.slotId}`,
|
|
101
120
|
experiment: String(slot.experimentId),
|
|
@@ -107,6 +126,7 @@ function membershipRows(snapshot, diagnostics, evidence) {
|
|
|
107
126
|
relation: slot.state === "included" ? slot.relation : null,
|
|
108
127
|
locator: slot.state === "included" ? slot.attempt.locator : null,
|
|
109
128
|
outcome: slot.state === "included" ? outcomes.get(slot.attempt.locator) ?? null : null,
|
|
129
|
+
verdict: slot.state === "included" ? verdicts.get(slot.attempt.locator) ?? null : null,
|
|
110
130
|
phase: null,
|
|
111
131
|
error: null,
|
|
112
132
|
sharedFailure: null,
|
|
@@ -124,28 +144,21 @@ function membershipRows(snapshot, diagnostics, evidence) {
|
|
|
124
144
|
const runMembershipPage = {
|
|
125
145
|
id: "run-membership",
|
|
126
146
|
path: "/",
|
|
127
|
-
title: "Run
|
|
128
|
-
load:
|
|
129
|
-
const [summary, evidence, diagnostics] = await Promise.all([
|
|
130
|
-
(0, analysis_values_ts_1.loadBuiltInSummaryRows)(sample),
|
|
131
|
-
(0, conversions_ts_1.toAttemptEvidence)(sample),
|
|
132
|
-
(0, index_ts_1.query)(sample, { kind: "domain-view", view: api_ts_1.runDiagnosticsView }),
|
|
133
|
-
]);
|
|
134
|
-
return Object.freeze({
|
|
135
|
-
hero: heroData(sample.snapshot),
|
|
136
|
-
summary,
|
|
137
|
-
members: membershipRows(sample.snapshot, diagnostics, evidence),
|
|
138
|
-
errors: runErrorRows(diagnostics),
|
|
139
|
-
evidence,
|
|
140
|
-
});
|
|
141
|
-
},
|
|
147
|
+
title: "Run results",
|
|
148
|
+
load: loadRunMembershipPageInput,
|
|
142
149
|
render: (input) => (0, jsx_runtime_1.jsx)(result_components_tsx_1.RunMembershipResultView, input),
|
|
143
150
|
};
|
|
144
151
|
/** The bounded default for explicit historical Run selectors. */
|
|
145
152
|
function runMembershipOverviewReport() {
|
|
146
153
|
return (0, machine_ts_1.defineBuiltInReport)(machine_ts_1.builtInMachineProducerIds.runMembershipOverview, {
|
|
147
|
-
title: "Run
|
|
148
|
-
pages: [
|
|
154
|
+
title: "Run results",
|
|
155
|
+
pages: [
|
|
156
|
+
runMembershipPage,
|
|
157
|
+
standard_tsx_1.standardNamedGroupPage,
|
|
158
|
+
standard_tsx_1.standardSingletonGroupPage,
|
|
159
|
+
standard_tsx_1.standardAttemptPage,
|
|
160
|
+
standard_tsx_1.standardExperimentPage,
|
|
161
|
+
],
|
|
149
162
|
});
|
|
150
163
|
}
|
|
151
164
|
/** The CLI default Report for one or more explicit `--run` selectors. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-membership-overview.js","sourceRoot":"","sources":["run-membership-overview.ts"],"names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,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,2BAAkB,EAAE,CAAC;SACnE,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,MAAM,CAAC;YACjB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;YAC/B,OAAO;YACP,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC;YAC/D,MAAM,EAAE,YAAY,CAAC,WAAW,CAAC;YACjC,QAAQ;SACX,CAAC,CAAC;IACP,CAAC;IACD,MAAM,EAAE,CAAC,KAA6B,EAAE,EAAE,CAAC,IAAA,iBAAG,EAAC,+CAAuB,EAAE,KAAK,CAAC;CACpC,CAAC;AAC/C,iEAAiE;AACjE,SAAgB,2BAA2B;IACvC,OAAO,IAAA,gCAAmB,EAAC,sCAAyB,CAAC,qBAAqB,EAAE;QACxE,KAAK,EAAE,yBAAyB;QAChC,KAAK,EAAE,CAAC,iBAAiB,CAAC;KAC7B,CAAC,CAAC;AACP,CAAC;AACD,yEAAyE;AAC5D,QAAA,kCAAkC,GAAG,2BAA2B,EAAE,CAAC;AAChF,kBAAe,0CAAkC,CAAC","sourcesContent":["/** The stable explicit-Run membership selector. */\nimport type { Sample, SampleSnapshot, } from \"../../analysis/index.ts\";\nimport { query } from \"../../analysis/index.ts\";\nimport { runDiagnosticsView, type RunDiagnosticsDomainView, } from \"../../analysis/api.ts\";\nimport { jsx } from \"react/jsx-runtime\";\nimport type { Page } from \"../definition/report.ts\";\nimport { type HeroData } from \"../components/site-components/index.tsx\";\nimport { toAttemptEvidence } from \"../model/conversions.ts\";\nimport { loadBuiltInSummaryRows, type BuiltInSummaryRows, } from \"./analysis-values.ts\";\nimport { RunMembershipResultView, type MembershipRow, type RunErrorRow, } from \"./result-components.tsx\";\nimport { builtInMachineProducerIds, defineBuiltInReport, } from \"./machine.ts\";\ninterface RunMembershipPageInput {\n readonly hero: HeroData;\n readonly summary: BuiltInSummaryRows;\n readonly members: readonly MembershipRow[];\n readonly errors: readonly RunErrorRow[];\n readonly evidence: Awaited<ReturnType<typeof toAttemptEvidence>>;\n}\nfunction heroData(snapshot: SampleSnapshot): HeroData {\n const latest = snapshot.runs.reduce<number | null>((current, run) => current === null || Number(run.startedAt) > current ? Number(run.startedAt) : current, null);\n return Object.freeze({\n latestStartedAt: latest === null ? null : new Date(latest).toISOString(),\n runs: snapshot.runs.length,\n });\n}\ninterface SharedBuildFailureDiagnostic {\n readonly schema: \"niceeval.shared-build-failure/v1\";\n readonly failureId: string;\n readonly evalId: string;\n readonly attemptOrdinal: number;\n readonly phase: \"sandbox.image.build\";\n readonly errorCode: string;\n readonly message: string;\n readonly remediation?: \"pnpm-allow-builds\";\n}\nfunction sharedBuildFailure(summary: string): SharedBuildFailureDiagnostic | undefined {\n let value: unknown;\n try {\n value = JSON.parse(summary);\n }\n catch {\n return undefined;\n }\n if (typeof value !== \"object\" || value === null)\n return undefined;\n const item = value as Partial<SharedBuildFailureDiagnostic>;\n return item.schema === \"niceeval.shared-build-failure/v1\"\n && typeof item.failureId === \"string\"\n && typeof item.evalId === \"string\"\n && Number.isSafeInteger(item.attemptOrdinal)\n && item.phase === \"sandbox.image.build\"\n && typeof item.errorCode === \"string\"\n && typeof item.message === \"string\"\n && (item.remediation === undefined || item.remediation === \"pnpm-allow-builds\")\n ? item as SharedBuildFailureDiagnostic\n : undefined;\n}\nfunction failureBySlot(view: RunDiagnosticsDomainView): ReadonlyMap<string, SharedBuildFailureDiagnostic> {\n const failures = new Map<string, SharedBuildFailureDiagnostic>();\n for (const entry of view.entries) {\n if (entry.state !== \"available\")\n continue;\n for (const diagnostic of entry.detail.diagnostics) {\n if (diagnostic.code !== \"sandbox-build-failed\")\n continue;\n const failure = sharedBuildFailure(diagnostic.summary);\n if (failure !== undefined) {\n failures.set(`${entry.runId}\\u0000${failure.evalId}\\u0000${failure.attemptOrdinal}`, failure);\n }\n }\n }\n return failures;\n}\nfunction runErrorRows(view: RunDiagnosticsDomainView): readonly RunErrorRow[] {\n const groups = new Map<string, {\n readonly runId: string;\n readonly experimentId: string;\n readonly failure: SharedBuildFailureDiagnostic;\n readonly affected: string[];\n }>();\n for (const entry of view.entries) {\n if (entry.state !== \"available\")\n continue;\n for (const diagnostic of entry.detail.diagnostics) {\n if (diagnostic.code !== \"sandbox-build-failed\")\n continue;\n const failure = sharedBuildFailure(diagnostic.summary);\n if (failure === undefined)\n continue;\n const key = `${entry.runId}\\u0000${failure.failureId}`;\n const group = groups.get(key);\n const affected = `${failure.evalId}#${failure.attemptOrdinal + 1}`;\n if (group === undefined) {\n groups.set(key, {\n runId: entry.runId,\n experimentId: entry.experimentId,\n failure,\n affected: [affected],\n });\n }\n else {\n group.affected.push(affected);\n }\n }\n }\n return Object.freeze([...groups.entries()].map(([key, group]) => Object.freeze({\n key,\n failure: group.failure.failureId,\n phase: group.failure.phase,\n affected: `${group.experimentId} · ${group.affected.join(\", \")}`,\n error: group.failure.errorCode,\n message: group.failure.message,\n fix: group.failure.remediation === \"pnpm-allow-builds\"\n ? \"Review these dependencies and configure pnpm allowBuilds.\"\n : null,\n })));\n}\nfunction membershipRows(snapshot: SampleSnapshot, diagnostics: RunDiagnosticsDomainView, evidence: Awaited<ReturnType<typeof toAttemptEvidence>>): readonly MembershipRow[] {\n const failures = failureBySlot(diagnostics);\n const outcomes = new Map(evidence.entries.flatMap((entry) => entry.state === \"available\" ? [[entry.attempt.locator, entry.detail.outcome] as const] : []));\n return Object.freeze(snapshot.slots.map((slot) => Object.freeze({\n key: `${slot.runId}:${slot.slotId}`,\n experiment: String(slot.experimentId),\n eval: String(slot.evalId),\n attempt: slot.attemptOrdinal,\n selectedRun: String(slot.runId),\n slot: String(slot.slotId),\n state: slot.state === \"included\" ? slot.action : slot.state === \"not-recorded\" ? slot.action ?? slot.state : slot.state,\n relation: slot.state === \"included\" ? slot.relation : null,\n locator: slot.state === \"included\" ? slot.attempt.locator : null,\n outcome: slot.state === \"included\" ? outcomes.get(slot.attempt.locator) ?? null : null,\n phase: null,\n error: null,\n sharedFailure: null,\n ...(() => {\n const failure = failures.get(`${slot.runId}\\u0000${slot.evalId}\\u0000${slot.attemptOrdinal}`);\n return failure === undefined ? {} : {\n outcome: \"errored\",\n phase: failure.phase,\n error: failure.errorCode,\n sharedFailure: failure.failureId,\n };\n })(),\n })));\n}\nconst runMembershipPage = {\n id: \"run-membership\",\n path: \"/\",\n title: \"Run membership overview\",\n load: async (sample: Sample): Promise<RunMembershipPageInput> => {\n const [summary, evidence, diagnostics] = await Promise.all([\n loadBuiltInSummaryRows(sample),\n toAttemptEvidence(sample),\n query(sample, { kind: \"domain-view\", view: runDiagnosticsView }),\n ]);\n return Object.freeze({\n hero: heroData(sample.snapshot),\n summary,\n members: membershipRows(sample.snapshot, diagnostics, evidence),\n errors: runErrorRows(diagnostics),\n evidence,\n });\n },\n render: (input: RunMembershipPageInput) => jsx(RunMembershipResultView, input),\n} satisfies Page<void, RunMembershipPageInput>;\n/** The bounded default for explicit historical Run selectors. */\nexport function runMembershipOverviewReport() {\n return defineBuiltInReport(builtInMachineProducerIds.runMembershipOverview, {\n title: \"Run membership overview\",\n pages: [runMembershipPage],\n });\n}\n/** The CLI default Report for one or more explicit `--run` selectors. */\nexport const defaultRunMembershipOverviewReport = runMembershipOverviewReport();\nexport default defaultRunMembershipOverviewReport;\n"]}
|
|
1
|
+
{"version":3,"file":"run-membership-overview.js","sourceRoot":"","sources":["run-membership-overview.ts"],"names":[],"mappings":";;;AAoBA,gEAaC;AA2ID,kEAWC;AArLD,sDAAgD;AAChD,kDAA2F;AAC3F,mDAAwC;AAGxC,4DAA4D;AAC5D,6DAAwF;AACxF,kEAAyG;AACzG,6CAA+E;AAC/E,gDAAkI;AAQlI,oFAAoF;AAC7E,KAAK,UAAU,0BAA0B,CAAC,MAAc;IAC3D,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvD,IAA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EAAE,IAAI;QACnB,GAAG,CAAC,GAAG,EAAE;YACL,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,MAAM,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;YAC9F,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAChC,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,KAAK,EAAE,OAAO,CAAC,SAAS;gBACxB,aAAa,EAAE,OAAO,CAAC,SAAS;aACnC,CAAC;QACN,CAAC,CAAC,EAAE;KACP,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AACD,MAAM,iBAAiB,GAAG;IACtB,EAAE,EAAE,gBAAgB;IACpB,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,0BAA0B;IAChC,MAAM,EAAE,CAAC,KAA6B,EAAE,EAAE,CAAC,IAAA,iBAAG,EAAC,+CAAuB,EAAE,KAAK,CAAC;CACpC,CAAC;AAC/C,iEAAiE;AACjE,SAAgB,2BAA2B;IACvC,OAAO,IAAA,gCAAmB,EAAC,sCAAyB,CAAC,qBAAqB,EAAE;QACxE,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE;YACH,iBAAiB;YACjB,qCAAsB;YACtB,yCAA0B;YAC1B,kCAAmB;YACnB,qCAAsB;SACzB;KACJ,CAAC,CAAC;AACP,CAAC;AACD,yEAAyE;AAC5D,QAAA,kCAAkC,GAAG,2BAA2B,EAAE,CAAC;AAChF,kBAAe,0CAAkC,CAAC","sourcesContent":["/** The stable explicit-Run membership selector. */\nimport type { Sample, SampleSnapshot, } from \"../../analysis/index.ts\";\nimport { query } from \"../../analysis/index.ts\";\nimport { runDiagnosticsView, type RunDiagnosticsDomainView, } from \"../../analysis/api.ts\";\nimport { jsx } from \"react/jsx-runtime\";\nimport type { Page } from \"../definition/report.ts\";\nimport { type HeroData } from \"../components/site-components/index.tsx\";\nimport { toAttemptEvidence } from \"../model/conversions.ts\";\nimport { loadBuiltInSummaryRows, type BuiltInSummaryRows, } from \"./analysis-values.ts\";\nimport { RunMembershipResultView, type MembershipRow, type RunErrorRow, } from \"./result-components.tsx\";\nimport { builtInMachineProducerIds, defineBuiltInReport, } from \"./machine.ts\";\nimport { standardAttemptPage, standardExperimentPage, standardNamedGroupPage, standardSingletonGroupPage, } from \"./standard.tsx\";\nexport interface RunMembershipPageInput {\n readonly hero: HeroData;\n readonly summary: BuiltInSummaryRows;\n readonly members: readonly MembershipRow[];\n readonly errors: readonly RunErrorRow[];\n readonly evidence: Awaited<ReturnType<typeof toAttemptEvidence>>;\n}\n/** Closes the data shared by the Human Page and its Host-owned machine producer. */\nexport async function loadRunMembershipPageInput(sample: Sample): Promise<RunMembershipPageInput> {\n const [summary, evidence, diagnostics] = await Promise.all([\n loadBuiltInSummaryRows(sample),\n toAttemptEvidence(sample),\n query(sample, { kind: \"domain-view\", view: runDiagnosticsView }),\n ]);\n return Object.freeze({\n hero: heroData(sample.snapshot),\n summary,\n members: membershipRows(sample.snapshot, diagnostics, evidence),\n errors: runErrorRows(diagnostics),\n evidence,\n });\n}\nfunction heroData(snapshot: SampleSnapshot): HeroData {\n const latest = snapshot.runs.reduce<number | null>((current, run) => current === null || Number(run.startedAt) > current ? Number(run.startedAt) : current, null);\n return Object.freeze({\n latestStartedAt: latest === null ? null : new Date(latest).toISOString(),\n runs: snapshot.runs.length,\n });\n}\ninterface SharedBuildFailureDiagnostic {\n readonly schema: \"niceeval.shared-build-failure/v1\";\n readonly failureId: string;\n readonly evalId: string;\n readonly attemptOrdinal: number;\n readonly phase: \"sandbox.image.build\";\n readonly errorCode: string;\n readonly message: string;\n readonly remediation?: \"pnpm-allow-builds\";\n}\nfunction sharedBuildFailure(summary: string): SharedBuildFailureDiagnostic | undefined {\n let value: unknown;\n try {\n value = JSON.parse(summary);\n }\n catch {\n return undefined;\n }\n if (typeof value !== \"object\" || value === null)\n return undefined;\n const item = value as Partial<SharedBuildFailureDiagnostic>;\n return item.schema === \"niceeval.shared-build-failure/v1\"\n && typeof item.failureId === \"string\"\n && typeof item.evalId === \"string\"\n && Number.isSafeInteger(item.attemptOrdinal)\n && item.phase === \"sandbox.image.build\"\n && typeof item.errorCode === \"string\"\n && typeof item.message === \"string\"\n && (item.remediation === undefined || item.remediation === \"pnpm-allow-builds\")\n ? item as SharedBuildFailureDiagnostic\n : undefined;\n}\nfunction failureBySlot(view: RunDiagnosticsDomainView): ReadonlyMap<string, SharedBuildFailureDiagnostic> {\n const failures = new Map<string, SharedBuildFailureDiagnostic>();\n for (const entry of view.entries) {\n if (entry.state !== \"available\")\n continue;\n for (const diagnostic of entry.detail.diagnostics) {\n if (diagnostic.code !== \"sandbox-build-failed\")\n continue;\n const failure = sharedBuildFailure(diagnostic.summary);\n if (failure !== undefined) {\n failures.set(`${entry.runId}\\u0000${failure.evalId}\\u0000${failure.attemptOrdinal}`, failure);\n }\n }\n }\n return failures;\n}\nfunction runErrorRows(view: RunDiagnosticsDomainView): readonly RunErrorRow[] {\n const groups = new Map<string, {\n readonly runId: string;\n readonly experimentId: string;\n readonly failure: SharedBuildFailureDiagnostic;\n readonly affected: string[];\n }>();\n for (const entry of view.entries) {\n if (entry.state !== \"available\")\n continue;\n for (const diagnostic of entry.detail.diagnostics) {\n if (diagnostic.code !== \"sandbox-build-failed\")\n continue;\n const failure = sharedBuildFailure(diagnostic.summary);\n if (failure === undefined)\n continue;\n const key = `${entry.runId}\\u0000${failure.failureId}`;\n const group = groups.get(key);\n const affected = `${failure.evalId}#${failure.attemptOrdinal + 1}`;\n if (group === undefined) {\n groups.set(key, {\n runId: entry.runId,\n experimentId: entry.experimentId,\n failure,\n affected: [affected],\n });\n }\n else {\n group.affected.push(affected);\n }\n }\n }\n return Object.freeze([...groups.entries()].map(([key, group]) => Object.freeze({\n key,\n failure: group.failure.failureId,\n phase: group.failure.phase,\n affected: `${group.experimentId} · ${group.affected.join(\", \")}`,\n affectedCount: group.affected.length,\n error: group.failure.errorCode,\n message: group.failure.message,\n fix: group.failure.remediation === \"pnpm-allow-builds\"\n ? \"Review these dependencies and configure pnpm allowBuilds.\"\n : null,\n })));\n}\nfunction membershipRows(snapshot: SampleSnapshot, diagnostics: RunDiagnosticsDomainView, evidence: Awaited<ReturnType<typeof toAttemptEvidence>>): readonly MembershipRow[] {\n const failures = failureBySlot(diagnostics);\n const outcomes = new Map(evidence.entries.flatMap((entry) => entry.state === \"available\" ? [[entry.attempt.locator, entry.detail.outcome] as const] : []));\n const verdicts = new Map(evidence.entries.flatMap((entry) => entry.state === \"available\" ? [[entry.attempt.locator, entry.detail.verdict] as const] : []));\n return Object.freeze(snapshot.slots.map((slot) => Object.freeze({\n key: `${slot.runId}:${slot.slotId}`,\n experiment: String(slot.experimentId),\n eval: String(slot.evalId),\n attempt: slot.attemptOrdinal,\n selectedRun: String(slot.runId),\n slot: String(slot.slotId),\n state: slot.state === \"included\" ? slot.action : slot.state === \"not-recorded\" ? slot.action ?? slot.state : slot.state,\n relation: slot.state === \"included\" ? slot.relation : null,\n locator: slot.state === \"included\" ? slot.attempt.locator : null,\n outcome: slot.state === \"included\" ? outcomes.get(slot.attempt.locator) ?? null : null,\n verdict: slot.state === \"included\" ? verdicts.get(slot.attempt.locator) ?? null : null,\n phase: null,\n error: null,\n sharedFailure: null,\n ...(() => {\n const failure = failures.get(`${slot.runId}\\u0000${slot.evalId}\\u0000${slot.attemptOrdinal}`);\n return failure === undefined ? {} : {\n outcome: \"errored\",\n phase: failure.phase,\n error: failure.errorCode,\n sharedFailure: failure.failureId,\n };\n })(),\n })));\n}\nconst runMembershipPage = {\n id: \"run-membership\",\n path: \"/\",\n title: \"Run results\",\n load: loadRunMembershipPageInput,\n render: (input: RunMembershipPageInput) => jsx(RunMembershipResultView, input),\n} satisfies Page<void, RunMembershipPageInput>;\n/** The bounded default for explicit historical Run selectors. */\nexport function runMembershipOverviewReport() {\n return defineBuiltInReport(builtInMachineProducerIds.runMembershipOverview, {\n title: \"Run results\",\n pages: [\n runMembershipPage,\n standardNamedGroupPage,\n standardSingletonGroupPage,\n standardAttemptPage,\n standardExperimentPage,\n ],\n });\n}\n/** The CLI default Report for one or more explicit `--run` selectors. */\nexport const defaultRunMembershipOverviewReport = runMembershipOverviewReport();\nexport default defaultRunMembershipOverviewReport;\n"]}
|