niceeval 0.15.1-canary.76 → 0.16.1
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 +45 -40
- package/dist/adapter-execution-trace.cjs.map +1 -1
- package/dist/adapter-execution-trace.d.cts +26 -0
- package/dist/adapter-execution-trace.d.mts +26 -0
- package/dist/adapter-execution-trace.d.ts +26 -0
- package/dist/adapter-usage.cjs.map +1 -1
- package/dist/adapter-usage.d.cts +9 -0
- package/dist/adapter-usage.d.mts +9 -0
- package/dist/adapter-usage.d.ts +9 -0
- package/dist/adapter.cjs +19 -4
- package/dist/adapter.cjs.map +1 -1
- package/dist/adapter.d.cts +37 -12
- package/dist/adapter.d.mts +37 -12
- package/dist/adapter.d.ts +37 -12
- package/dist/agents/ai-sdk.cjs +3 -0
- package/dist/agents/ai-sdk.cjs.map +1 -1
- package/dist/agents/bub.cjs +3 -0
- package/dist/agents/bub.cjs.map +1 -1
- package/dist/agents/claude-code-native.cjs +28 -2
- package/dist/agents/claude-code-native.cjs.map +1 -1
- package/dist/agents/claude-code.cjs +3 -0
- package/dist/agents/claude-code.cjs.map +1 -1
- package/dist/agents/codex.cjs +3 -0
- package/dist/agents/codex.cjs.map +1 -1
- package/dist/agents/coding-cli-versions.cjs +9 -10
- package/dist/agents/coding-cli-versions.cjs.map +1 -1
- package/dist/agents/coding-cli-versions.d.cts +1 -1
- package/dist/agents/coding-cli-versions.d.mts +1 -1
- package/dist/agents/coding-cli-versions.d.ts +1 -1
- package/dist/agents/deepseek-harness.cjs +3 -0
- package/dist/agents/deepseek-harness.cjs.map +1 -1
- package/dist/agents/hermes.cjs +3 -0
- package/dist/agents/hermes.cjs.map +1 -1
- package/dist/agents/index.cjs.map +1 -1
- package/dist/agents/index.d.cts +3 -2
- package/dist/agents/index.d.mts +3 -2
- package/dist/agents/index.d.ts +3 -2
- package/dist/agents/omp.cjs +3 -0
- package/dist/agents/omp.cjs.map +1 -1
- package/dist/agents/openai-compat.cjs +6 -0
- package/dist/agents/openai-compat.cjs.map +1 -1
- package/dist/agents/openclaw.cjs +3 -0
- package/dist/agents/openclaw.cjs.map +1 -1
- package/dist/agents/opencode.cjs +3 -0
- package/dist/agents/opencode.cjs.map +1 -1
- package/dist/agents/sdk-streams.cjs +9 -0
- package/dist/agents/sdk-streams.cjs.map +1 -1
- package/dist/agents/ui-message-stream.cjs +3 -0
- package/dist/agents/ui-message-stream.cjs.map +1 -1
- package/dist/assertions/api.cjs.map +1 -1
- package/dist/assertions/api.d.cts +27 -5
- package/dist/assertions/api.d.mts +27 -5
- package/dist/assertions/api.d.ts +27 -5
- package/dist/assertions/collection.cjs +6 -0
- package/dist/assertions/collection.cjs.map +1 -1
- package/dist/assertions/collection.d.cts +4 -2
- package/dist/assertions/collection.d.mts +4 -2
- package/dist/assertions/collection.d.ts +4 -2
- package/dist/assertions/collection.js +12 -8
- package/dist/assertions/context-match.cjs +70 -0
- package/dist/assertions/context-match.cjs.map +1 -0
- package/dist/assertions/context-match.d.cts +107 -0
- package/dist/assertions/context-match.d.mts +107 -0
- package/dist/assertions/context-match.d.ts +107 -0
- package/dist/assertions/context-match.js +12 -0
- package/dist/assertions/context-match.js.map +1 -0
- package/dist/assertions/full-content.cjs +109 -0
- package/dist/assertions/full-content.cjs.map +1 -0
- package/dist/assertions/full-content.d.cts +6 -0
- package/dist/assertions/full-content.d.mts +6 -0
- package/dist/assertions/full-content.d.ts +6 -0
- package/dist/assertions/full-content.js +12 -0
- package/dist/assertions/full-content.js.map +1 -0
- package/dist/assertions/judge-presets.cjs +2 -34
- package/dist/assertions/judge-presets.cjs.map +1 -1
- package/dist/assertions/judge-presets.d.cts +6 -9
- package/dist/assertions/judge-presets.d.mts +6 -9
- package/dist/assertions/judge-presets.d.ts +6 -9
- package/dist/assertions/judge-presets.js +8 -8
- package/dist/assertions/judge.cjs +107 -29
- package/dist/assertions/judge.cjs.map +1 -1
- package/dist/assertions/judge.d.cts +2 -0
- package/dist/assertions/judge.d.mts +2 -0
- package/dist/assertions/judge.d.ts +2 -0
- package/dist/assertions/match.cjs +244 -5
- package/dist/assertions/match.cjs.map +1 -1
- package/dist/assertions/match.d.cts +43 -3
- package/dist/assertions/match.d.mts +43 -3
- package/dist/assertions/match.d.ts +43 -3
- package/dist/assertions/match.js +88 -78
- package/dist/assertions/material.cjs +520 -0
- package/dist/assertions/material.cjs.map +1 -0
- package/dist/assertions/material.d.cts +56 -0
- package/dist/assertions/material.d.mts +56 -0
- package/dist/assertions/material.d.ts +56 -0
- package/dist/assertions/material.js +20 -0
- package/dist/assertions/material.js.map +1 -0
- package/dist/assertions/record/attachment.cjs +5 -2
- package/dist/assertions/record/attachment.cjs.map +1 -1
- package/dist/assertions/record/codec.cjs +2 -1
- package/dist/assertions/record/codec.cjs.map +1 -1
- package/dist/assertions/record/model.cjs.map +1 -1
- package/dist/assertions/record/model.d.cts +6 -1
- package/dist/assertions/record/model.d.mts +6 -1
- package/dist/assertions/record/model.d.ts +6 -1
- package/dist/assertions/runtime.cjs +207 -14
- package/dist/assertions/runtime.cjs.map +1 -1
- package/dist/assertions/runtime.d.cts +9 -0
- package/dist/assertions/runtime.d.mts +9 -0
- package/dist/assertions/runtime.d.ts +9 -0
- package/dist/assertions/runtime.js +14 -8
- package/dist/assertions/score-match-audit.cjs +18 -8
- package/dist/assertions/score-match-audit.cjs.map +1 -1
- package/dist/assertions/score-match-gateway.cjs +83 -25
- package/dist/assertions/score-match-gateway.cjs.map +1 -1
- package/dist/assertions/score-match-gateway.d.cts +2 -0
- package/dist/assertions/score-match-gateway.d.mts +2 -0
- package/dist/assertions/score-match-gateway.d.ts +2 -0
- package/dist/assertions/value-composition.test-d.cjs +77 -0
- package/dist/assertions/value-composition.test-d.cjs.map +1 -0
- package/dist/assertions/value-composition.test-d.d.cts +1 -0
- package/dist/assertions/value-composition.test-d.d.mts +1 -0
- package/dist/assertions/value-composition.test-d.d.ts +1 -0
- package/dist/assertions/value-composition.test-d.js +4 -0
- package/dist/assertions/value-composition.test-d.js.map +1 -0
- package/dist/context/assert-first.cjs +207 -213
- package/dist/context/assert-first.cjs.map +1 -1
- package/dist/context/assert-first.d.cts +49 -23
- package/dist/context/assert-first.d.mts +49 -23
- package/dist/context/assert-first.d.ts +49 -23
- package/dist/context/session.cjs +111 -9
- package/dist/context/session.cjs.map +1 -1
- package/dist/context/session.d.cts +18 -0
- package/dist/context/session.d.mts +18 -0
- package/dist/context/session.d.ts +18 -0
- package/dist/define.cjs +17 -1
- package/dist/define.cjs.map +1 -1
- package/dist/eval/cli/contribution.cjs +2 -0
- package/dist/eval/cli/contribution.cjs.map +1 -1
- package/dist/eval/host/index.cjs +2 -0
- package/dist/eval/host/index.cjs.map +1 -1
- package/dist/eval/record/evaluation.cjs +3 -0
- package/dist/eval/record/evaluation.cjs.map +1 -1
- package/dist/eval/record/membership-provenance.d.cts +15 -15
- package/dist/eval/record/membership-provenance.d.mts +15 -15
- package/dist/eval/record/membership-provenance.d.ts +15 -15
- package/dist/eval/record/score.cjs +7 -0
- package/dist/eval/record/score.cjs.map +1 -1
- package/dist/eval/record/sealed-assertion.cjs +3 -0
- package/dist/eval/record/sealed-assertion.cjs.map +1 -1
- package/dist/eval/record/verdict.cjs +7 -0
- package/dist/eval/record/verdict.cjs.map +1 -1
- package/dist/expect/index.cjs +8 -2
- package/dist/expect/index.cjs.map +1 -1
- package/dist/expect/index.d.cts +9 -4
- package/dist/expect/index.d.mts +9 -4
- package/dist/expect/index.d.ts +9 -4
- package/dist/expect/index.js +72 -62
- package/dist/expect/index.mjs +72 -62
- package/dist/experiment/host/cli/contribution.cjs +37 -23
- package/dist/experiment/host/cli/contribution.cjs.map +1 -1
- package/dist/experiment/host/cli/contribution.d.cts +9 -1
- package/dist/experiment/host/cli/contribution.d.mts +9 -1
- package/dist/experiment/host/cli/contribution.d.ts +9 -1
- package/dist/experiment/host/current.cjs +74 -0
- package/dist/experiment/host/current.cjs.map +1 -0
- package/dist/experiment/host/current.d.cts +33 -0
- package/dist/experiment/host/current.d.mts +33 -0
- package/dist/experiment/host/current.d.ts +33 -0
- package/dist/experiment/host/current.js +10 -0
- package/dist/experiment/host/current.js.map +1 -0
- package/dist/experiment/host/index.cjs +17 -174
- package/dist/experiment/host/index.cjs.map +1 -1
- package/dist/experiment/host/index.d.cts +8 -54
- package/dist/experiment/host/index.d.mts +8 -54
- package/dist/experiment/host/index.d.ts +8 -54
- package/dist/experiment/host/operations.cjs +33 -10
- package/dist/experiment/host/operations.cjs.map +1 -1
- package/dist/experiment/host/operations.d.cts +29 -1
- package/dist/experiment/host/operations.d.mts +29 -1
- package/dist/experiment/host/operations.d.ts +29 -1
- package/dist/experiment/host/operations.js +6 -4
- package/dist/experiment/host/requirements.cjs +3 -0
- package/dist/experiment/host/requirements.cjs.map +1 -0
- package/dist/experiment/host/requirements.d.cts +3 -0
- package/dist/experiment/host/requirements.d.mts +3 -0
- package/dist/experiment/host/requirements.d.ts +3 -0
- package/dist/experiment/host/requirements.js +4 -0
- package/dist/experiment/host/requirements.js.map +1 -0
- package/dist/experiment/host/runtime.cjs +179 -0
- package/dist/experiment/host/runtime.cjs.map +1 -0
- package/dist/experiment/host/runtime.d.cts +79 -0
- package/dist/experiment/host/runtime.d.mts +79 -0
- package/dist/experiment/host/runtime.d.ts +79 -0
- package/dist/experiment/host/runtime.js +6 -0
- package/dist/experiment/host/runtime.js.map +1 -0
- package/dist/experiment/host/types.cjs.map +1 -1
- package/dist/experiment/host/types.d.cts +17 -16
- package/dist/experiment/host/types.d.mts +17 -16
- package/dist/experiment/host/types.d.ts +17 -16
- package/dist/fresh-import.cjs +2 -1
- package/dist/fresh-import.cjs.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -6
- package/dist/index.d.mts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +32 -30
- package/dist/index.mjs +32 -30
- package/dist/inspection/artifacts.cjs +83 -54
- package/dist/inspection/artifacts.cjs.map +1 -1
- package/dist/inspection/artifacts.d.cts +8 -0
- package/dist/inspection/artifacts.d.mts +8 -0
- package/dist/inspection/artifacts.d.ts +8 -0
- package/dist/inspection/artifacts.js +2 -0
- package/dist/inspection/assertions.cjs +4 -1
- package/dist/inspection/assertions.cjs.map +1 -1
- package/dist/inspection/cli/contribution.cjs +27 -4
- package/dist/inspection/cli/contribution.cjs.map +1 -1
- package/dist/inspection/cli/contribution.d.cts +2 -1
- package/dist/inspection/cli/contribution.d.mts +2 -1
- package/dist/inspection/cli/contribution.d.ts +2 -1
- package/dist/inspection/execution-traces.cjs +114 -8
- package/dist/inspection/execution-traces.cjs.map +1 -1
- package/dist/inspection/execution-traces.d.cts +38 -0
- package/dist/inspection/execution-traces.d.mts +38 -0
- package/dist/inspection/execution-traces.d.ts +38 -0
- package/dist/inspection/facts.cjs +12 -0
- package/dist/inspection/facts.cjs.map +1 -1
- package/dist/inspection/limits.cjs +5 -1
- package/dist/inspection/limits.cjs.map +1 -1
- package/dist/inspection/limits.d.cts +4 -0
- package/dist/inspection/limits.d.mts +4 -0
- package/dist/inspection/limits.d.ts +4 -0
- package/dist/inspection/limits.js +6 -2
- package/dist/inspection/overview.cjs +74 -33
- package/dist/inspection/overview.cjs.map +1 -1
- package/dist/inspection/overview.d.cts +19 -1
- package/dist/inspection/overview.d.mts +19 -1
- package/dist/inspection/overview.d.ts +19 -1
- package/dist/inspection/overview.js +4 -2
- package/dist/inspection/project-input.cjs +9 -0
- package/dist/inspection/project-input.cjs.map +1 -0
- package/dist/inspection/project-input.d.cts +20 -0
- package/dist/inspection/project-input.d.mts +20 -0
- package/dist/inspection/project-input.d.ts +20 -0
- package/dist/inspection/project-input.js +8 -0
- package/dist/inspection/project-input.js.map +1 -0
- package/dist/inspection/project-result.cjs +60 -0
- package/dist/inspection/project-result.cjs.map +1 -0
- package/dist/inspection/project-result.d.cts +1264 -0
- package/dist/inspection/project-result.d.mts +1264 -0
- package/dist/inspection/project-result.d.ts +1264 -0
- package/dist/inspection/project-result.js +10 -0
- package/dist/inspection/project-result.js.map +1 -0
- package/dist/inspection/project-source.cjs +109 -0
- package/dist/inspection/project-source.cjs.map +1 -0
- package/dist/inspection/project-source.d.cts +10 -0
- package/dist/inspection/project-source.d.mts +10 -0
- package/dist/inspection/project-source.d.ts +10 -0
- package/dist/inspection/project-source.js +6 -0
- package/dist/inspection/project-source.js.map +1 -0
- package/dist/inspection/project.cjs +100 -0
- package/dist/inspection/project.cjs.map +1 -0
- package/dist/inspection/project.d.cts +3 -0
- package/dist/inspection/project.d.mts +3 -0
- package/dist/inspection/project.d.ts +3 -0
- package/dist/inspection/project.js +6 -0
- package/dist/inspection/project.js.map +1 -0
- package/dist/inspection/protocol.cjs +19 -9
- package/dist/inspection/protocol.cjs.map +1 -1
- package/dist/inspection/protocol.d.cts +5506 -38189
- package/dist/inspection/protocol.d.mts +5506 -38189
- package/dist/inspection/protocol.d.ts +5506 -38189
- package/dist/inspection/public.mjs +896 -84
- package/dist/inspection/query.cjs +2 -0
- package/dist/inspection/query.cjs.map +1 -1
- package/dist/inspection/results.cjs +234 -29
- package/dist/inspection/results.cjs.map +1 -1
- package/dist/inspection/results.d.cts +870 -13
- package/dist/inspection/results.d.mts +870 -13
- package/dist/inspection/results.d.ts +870 -13
- package/dist/inspection/results.js +36 -34
- package/dist/inspection/select.cjs +126 -14
- package/dist/inspection/select.cjs.map +1 -1
- package/dist/inspection/select.d.cts +1 -1
- package/dist/inspection/select.d.mts +1 -1
- package/dist/inspection/select.d.ts +1 -1
- package/dist/inspection/source.cjs +4 -0
- package/dist/inspection/source.cjs.map +1 -1
- package/dist/inspection/sources.cjs +5 -0
- package/dist/inspection/sources.cjs.map +1 -1
- package/dist/inspection/trace.cjs +82 -84
- package/dist/inspection/trace.cjs.map +1 -1
- package/dist/inspection/trace.d.cts +7 -2
- package/dist/inspection/trace.d.mts +7 -2
- package/dist/inspection/trace.d.ts +7 -2
- package/dist/model-slots.cjs +35 -0
- package/dist/model-slots.cjs.map +1 -0
- package/dist/model-slots.d.cts +19 -0
- package/dist/model-slots.d.mts +19 -0
- package/dist/model-slots.d.ts +19 -0
- package/dist/model-slots.js +8 -0
- package/dist/model-slots.js.map +1 -0
- package/dist/o11y/adapter-call-price.cjs +4 -0
- package/dist/o11y/adapter-call-price.cjs.map +1 -1
- package/dist/o11y/adapter-call-price.d.cts +24 -0
- package/dist/o11y/adapter-call-price.d.mts +24 -0
- package/dist/o11y/adapter-call-price.d.ts +24 -0
- package/dist/o11y/adapter-call-price.js +6 -2
- package/dist/o11y/adapter-usage-projection.cjs +158 -0
- package/dist/o11y/adapter-usage-projection.cjs.map +1 -0
- package/dist/o11y/adapter-usage-projection.d.cts +141 -0
- package/dist/o11y/adapter-usage-projection.d.mts +141 -0
- package/dist/o11y/adapter-usage-projection.d.ts +141 -0
- package/dist/o11y/adapter-usage-projection.js +20 -0
- package/dist/o11y/adapter-usage-projection.js.map +1 -0
- package/dist/o11y/eval-usage.cjs +149 -0
- package/dist/o11y/eval-usage.cjs.map +1 -0
- package/dist/o11y/eval-usage.d.cts +46 -0
- package/dist/o11y/eval-usage.d.mts +46 -0
- package/dist/o11y/eval-usage.d.ts +46 -0
- package/dist/o11y/eval-usage.js +8 -0
- package/dist/o11y/eval-usage.js.map +1 -0
- package/dist/o11y/judge-call-price.cjs +62 -0
- package/dist/o11y/judge-call-price.cjs.map +1 -0
- package/dist/o11y/judge-call-price.d.cts +3 -0
- package/dist/o11y/judge-call-price.d.mts +3 -0
- package/dist/o11y/judge-call-price.d.ts +3 -0
- package/dist/o11y/judge-call-price.js +6 -0
- package/dist/o11y/judge-call-price.js.map +1 -0
- package/dist/o11y/judge-usage-projection.cjs +134 -0
- package/dist/o11y/judge-usage-projection.cjs.map +1 -0
- package/dist/o11y/judge-usage-projection.d.cts +18 -0
- package/dist/o11y/judge-usage-projection.d.mts +18 -0
- package/dist/o11y/judge-usage-projection.d.ts +18 -0
- package/dist/o11y/judge-usage-projection.js +20 -0
- package/dist/o11y/judge-usage-projection.js.map +1 -0
- package/dist/o11y/judge-usage-receipt.cjs +135 -0
- package/dist/o11y/judge-usage-receipt.cjs.map +1 -0
- package/dist/o11y/judge-usage-receipt.d.cts +5 -0
- package/dist/o11y/judge-usage-receipt.d.mts +5 -0
- package/dist/o11y/judge-usage-receipt.d.ts +5 -0
- package/dist/o11y/judge-usage-receipt.js +6 -0
- package/dist/o11y/judge-usage-receipt.js.map +1 -0
- package/dist/o11y/judge-usage.cjs +171 -0
- package/dist/o11y/judge-usage.cjs.map +1 -0
- package/dist/o11y/judge-usage.d.cts +35 -0
- package/dist/o11y/judge-usage.d.mts +35 -0
- package/dist/o11y/judge-usage.d.ts +35 -0
- package/dist/o11y/judge-usage.js +6 -0
- package/dist/o11y/judge-usage.js.map +1 -0
- package/dist/plugin/contracts.cjs +2 -0
- package/dist/plugin/contracts.cjs.map +1 -1
- package/dist/plugin/link.cjs +7 -0
- package/dist/plugin/link.cjs.map +1 -1
- package/dist/record/attachment/protocol.cjs +8 -6
- package/dist/record/attachment/protocol.cjs.map +1 -1
- package/dist/record/attachment/protocol.d.cts +10 -0
- package/dist/record/attachment/protocol.d.mts +10 -0
- package/dist/record/attachment/protocol.d.ts +10 -0
- package/dist/record/attachment/protocol.js +38 -36
- package/dist/record/codec/seal-manifest.d.cts +3 -3
- package/dist/record/codec/seal-manifest.d.mts +3 -3
- package/dist/record/codec/seal-manifest.d.ts +3 -3
- package/dist/record/family/adapter-usage/definition.d.cts +1 -0
- package/dist/record/family/adapter-usage/definition.d.mts +1 -0
- package/dist/record/family/adapter-usage/definition.d.ts +1 -0
- package/dist/record/family/adapter-usage/persistence.cjs +1 -1
- package/dist/record/family/adapter-usage/persistence.cjs.map +1 -1
- package/dist/record/family/adapter-usage/persistence.d.cts +2 -1
- package/dist/record/family/adapter-usage/persistence.d.mts +2 -1
- package/dist/record/family/adapter-usage/persistence.d.ts +2 -1
- package/dist/record/family/adapter-usage/schema.cjs +21 -2
- package/dist/record/family/adapter-usage/schema.cjs.map +1 -1
- package/dist/record/family/adapter-usage/schema.d.cts +85 -0
- package/dist/record/family/adapter-usage/schema.d.mts +85 -0
- package/dist/record/family/adapter-usage/schema.d.ts +85 -0
- package/dist/record/family/adapter-usage/schema.js +18 -12
- package/dist/record/family/catalog.cjs +31 -27
- package/dist/record/family/catalog.cjs.map +1 -1
- package/dist/record/family/catalog.d.cts +94 -3
- package/dist/record/family/catalog.d.mts +94 -3
- package/dist/record/family/catalog.d.ts +94 -3
- package/dist/record/family/current.cjs +45 -42
- package/dist/record/family/current.cjs.map +1 -1
- package/dist/record/family/current.d.cts +240 -1
- package/dist/record/family/current.d.mts +240 -1
- package/dist/record/family/current.d.ts +240 -1
- package/dist/record/family/execution-traces/definition.d.cts +26 -0
- package/dist/record/family/execution-traces/definition.d.mts +26 -0
- package/dist/record/family/execution-traces/definition.d.ts +26 -0
- package/dist/record/family/execution-traces/definition.js +20 -14
- package/dist/record/family/execution-traces/schema.cjs +57 -1
- package/dist/record/family/execution-traces/schema.cjs.map +1 -1
- package/dist/record/family/execution-traces/schema.d.cts +114 -0
- package/dist/record/family/execution-traces/schema.d.mts +114 -0
- package/dist/record/family/execution-traces/schema.d.ts +114 -0
- package/dist/record/family/execution-traces/schema.js +18 -12
- package/dist/record/family/judge-usage/definition.cjs +12 -0
- package/dist/record/family/judge-usage/definition.cjs.map +1 -0
- package/dist/record/family/judge-usage/definition.d.cts +91 -0
- package/dist/record/family/judge-usage/definition.d.mts +91 -0
- package/dist/record/family/judge-usage/definition.d.ts +91 -0
- package/dist/record/family/judge-usage/definition.js +6 -0
- package/dist/record/family/judge-usage/definition.js.map +1 -0
- package/dist/record/family/judge-usage/persistence.cjs +10 -0
- package/dist/record/family/judge-usage/persistence.cjs.map +1 -0
- package/dist/record/family/judge-usage/persistence.d.cts +91 -0
- package/dist/record/family/judge-usage/persistence.d.mts +91 -0
- package/dist/record/family/judge-usage/persistence.d.ts +91 -0
- package/dist/record/family/judge-usage/persistence.js +6 -0
- package/dist/record/family/judge-usage/persistence.js.map +1 -0
- package/dist/record/family/judge-usage/schema.cjs +307 -0
- package/dist/record/family/judge-usage/schema.cjs.map +1 -0
- package/dist/record/family/judge-usage/schema.d.cts +351 -0
- package/dist/record/family/judge-usage/schema.d.mts +351 -0
- package/dist/record/family/judge-usage/schema.d.ts +351 -0
- package/dist/record/family/judge-usage/schema.js +18 -0
- package/dist/record/family/judge-usage/schema.js.map +1 -0
- package/dist/record/host/sqlite-host.cjs +55 -9
- package/dist/record/host/sqlite-host.cjs.map +1 -1
- package/dist/record/host/types.cjs.map +1 -1
- package/dist/record/host/types.d.cts +7 -0
- package/dist/record/host/types.d.mts +7 -0
- package/dist/record/host/types.d.ts +7 -0
- package/dist/record/model/run-context.cjs +7 -1
- package/dist/record/model/run-context.cjs.map +1 -1
- package/dist/record/model/run-context.d.cts +4 -0
- package/dist/record/model/run-context.d.mts +4 -0
- package/dist/record/model/run-context.d.ts +4 -0
- package/dist/record/model/seal-manifest.d.cts +1 -1
- package/dist/record/model/seal-manifest.d.mts +1 -1
- package/dist/record/model/seal-manifest.d.ts +1 -1
- package/dist/record/sqlite/client.cjs +18 -5
- package/dist/record/sqlite/client.cjs.map +1 -1
- package/dist/record/sqlite/client.d.cts +1 -1
- package/dist/record/sqlite/client.d.mts +1 -1
- package/dist/record/sqlite/client.d.ts +1 -1
- package/dist/record/sqlite/project-state-database.cjs +29 -8
- package/dist/record/sqlite/project-state-database.cjs.map +1 -1
- package/dist/run/host/runtime.cjs +4 -0
- package/dist/run/host/runtime.cjs.map +1 -1
- package/dist/run/storage/sqlite.cjs +20 -0
- package/dist/run/storage/sqlite.cjs.map +1 -1
- package/dist/runner/adapter-execution-trace.cjs +125 -2
- package/dist/runner/adapter-execution-trace.cjs.map +1 -1
- package/dist/runner/adapter-execution-trace.d.cts +1 -1
- package/dist/runner/adapter-execution-trace.d.mts +1 -1
- package/dist/runner/adapter-execution-trace.d.ts +1 -1
- package/dist/runner/adapter-usage.cjs +55 -7
- package/dist/runner/adapter-usage.cjs.map +1 -1
- package/dist/runner/adapter-usage.d.cts +9 -2
- package/dist/runner/adapter-usage.d.mts +9 -2
- package/dist/runner/adapter-usage.d.ts +9 -2
- package/dist/runner/adoption.cjs +9 -0
- package/dist/runner/adoption.cjs.map +1 -1
- package/dist/runner/attempt-cancellation.cjs +12 -0
- package/dist/runner/attempt-cancellation.cjs.map +1 -0
- package/dist/runner/attempt-cancellation.d.cts +6 -0
- package/dist/runner/attempt-cancellation.d.mts +6 -0
- package/dist/runner/attempt-cancellation.d.ts +6 -0
- package/dist/runner/attempt-cancellation.js +6 -0
- package/dist/runner/attempt-cancellation.js.map +1 -0
- package/dist/runner/attempt-resources.cjs +10 -4
- package/dist/runner/attempt-resources.cjs.map +1 -1
- package/dist/runner/attempt-resources.d.cts +2 -1
- package/dist/runner/attempt-resources.d.mts +2 -1
- package/dist/runner/attempt-resources.d.ts +2 -1
- package/dist/runner/attempt.cjs +1177 -1139
- package/dist/runner/attempt.cjs.map +1 -1
- package/dist/runner/config-identity.cjs +20 -1
- package/dist/runner/config-identity.cjs.map +1 -1
- package/dist/runner/config-identity.d.cts +5 -0
- package/dist/runner/config-identity.d.mts +5 -0
- package/dist/runner/config-identity.d.ts +5 -0
- package/dist/runner/discover.cjs +14 -0
- package/dist/runner/discover.cjs.map +1 -1
- package/dist/runner/discover.d.cts +3 -0
- package/dist/runner/discover.d.mts +3 -0
- package/dist/runner/discover.d.ts +3 -0
- package/dist/runner/feedback/human.cjs +9 -4
- package/dist/runner/feedback/human.cjs.map +1 -1
- package/dist/runner/fingerprint.cjs +1 -0
- package/dist/runner/fingerprint.cjs.map +1 -1
- package/dist/runner/judge-usage.cjs +18 -0
- package/dist/runner/judge-usage.cjs.map +1 -0
- package/dist/runner/judge-usage.d.cts +5 -0
- package/dist/runner/judge-usage.d.mts +5 -0
- package/dist/runner/judge-usage.d.ts +5 -0
- package/dist/runner/judge-usage.js +8 -0
- package/dist/runner/judge-usage.js.map +1 -0
- package/dist/runner/project-target.cjs.map +1 -1
- package/dist/runner/project-target.d.cts +2 -0
- package/dist/runner/project-target.d.mts +2 -0
- package/dist/runner/project-target.d.ts +2 -0
- package/dist/runner/record/planning.cjs +1 -0
- package/dist/runner/record/planning.cjs.map +1 -1
- package/dist/runner/record.cjs +4 -0
- package/dist/runner/record.cjs.map +1 -1
- package/dist/runner/reporters/braintrust.cjs +2 -0
- package/dist/runner/reporters/braintrust.cjs.map +1 -1
- package/dist/runner/reuse-diagnostics.cjs +9 -10
- package/dist/runner/reuse-diagnostics.cjs.map +1 -1
- package/dist/runner/reuse-diagnostics.d.cts +5 -6
- package/dist/runner/reuse-diagnostics.d.mts +5 -6
- package/dist/runner/reuse-diagnostics.d.ts +5 -6
- package/dist/runner/reuse-diagnostics.js +4 -4
- package/dist/runner/reuse-plan.cjs +100 -48
- package/dist/runner/reuse-plan.cjs.map +1 -1
- package/dist/runner/reuse-plan.d.cts +60 -3
- package/dist/runner/reuse-plan.d.mts +60 -3
- package/dist/runner/reuse-plan.d.ts +60 -3
- package/dist/runner/reuse-plan.js +14 -10
- package/dist/runner/run.cjs +8 -6
- package/dist/runner/run.cjs.map +1 -1
- package/dist/runner/session.cjs +1 -1
- package/dist/runner/session.cjs.map +1 -1
- package/dist/runner/session.d.cts +1 -1
- package/dist/runner/session.d.mts +1 -1
- package/dist/runner/session.d.ts +1 -1
- package/dist/runner/source-producer.cjs +3 -1
- package/dist/runner/source-producer.cjs.map +1 -1
- package/dist/runner/types.cjs.map +1 -1
- package/dist/runner/types.d.cts +26 -5
- package/dist/runner/types.d.mts +26 -5
- package/dist/runner/types.d.ts +26 -5
- package/dist/sandbox/action.cjs +3 -0
- package/dist/sandbox/action.cjs.map +1 -1
- package/dist/sandbox/commands.cjs +3 -0
- package/dist/sandbox/commands.cjs.map +1 -1
- package/dist/sandbox/compose.cjs +6 -0
- package/dist/sandbox/compose.cjs.map +1 -1
- package/dist/sandbox/docker-profile/registry.cjs +7 -0
- package/dist/sandbox/docker-profile/registry.cjs.map +1 -1
- package/dist/sandbox/docker-profile/runtime.cjs +3 -0
- package/dist/sandbox/docker-profile/runtime.cjs.map +1 -1
- package/dist/sandbox/docker-profile/schema.cjs +7 -0
- package/dist/sandbox/docker-profile/schema.cjs.map +1 -1
- package/dist/sandbox/incus.cjs +7 -0
- package/dist/sandbox/incus.cjs.map +1 -1
- package/dist/sandbox/layer.cjs +12 -0
- package/dist/sandbox/layer.cjs.map +1 -1
- package/dist/shared/adapter-cleanup.cjs +18 -0
- package/dist/shared/adapter-cleanup.cjs.map +1 -0
- package/dist/shared/adapter-cleanup.d.cts +4 -0
- package/dist/shared/adapter-cleanup.d.mts +4 -0
- package/dist/shared/adapter-cleanup.d.ts +4 -0
- package/dist/shared/adapter-cleanup.js +10 -0
- package/dist/shared/adapter-cleanup.js.map +1 -0
- package/dist/shared/attempt-lifecycle.cjs +3 -0
- package/dist/shared/attempt-lifecycle.cjs.map +1 -0
- package/dist/shared/attempt-lifecycle.d.cts +13 -0
- package/dist/shared/attempt-lifecycle.d.mts +13 -0
- package/dist/shared/attempt-lifecycle.d.ts +13 -0
- package/dist/shared/attempt-lifecycle.js +4 -0
- package/dist/shared/attempt-lifecycle.js.map +1 -0
- package/dist/show/contribution.cjs +52 -14
- package/dist/show/contribution.cjs.map +1 -1
- package/dist/show/contribution.d.cts +23 -1
- package/dist/show/contribution.d.mts +23 -1
- package/dist/show/contribution.d.ts +23 -1
- package/dist/show/model.cjs +8 -1
- package/dist/show/model.cjs.map +1 -1
- package/dist/show/model.d.cts +10 -1
- package/dist/show/model.d.mts +10 -1
- package/dist/show/model.d.ts +10 -1
- package/dist/show/render.cjs +287 -49
- package/dist/show/render.cjs.map +1 -1
- package/dist/show/render.d.cts +3 -0
- package/dist/show/render.d.mts +3 -0
- package/dist/show/render.d.ts +3 -0
- package/dist/sources/projector.cjs +3 -0
- package/dist/sources/projector.cjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/view/app-dist/.vite/manifest.json +2 -2
- package/dist/view/app-dist/assets/index-CmVoXbwG.js +63 -0
- package/dist/view/app-dist/assets/{quality-cost-scatter-CFB3wnkN.js → quality-cost-scatter-BuLISaH4.js} +1 -1
- package/dist/view/app-dist/index.html +1 -1
- package/dist/view/cli/contribution.cjs +54 -21
- package/dist/view/cli/contribution.cjs.map +1 -1
- package/dist/view/cli/contribution.d.cts +2 -1
- package/dist/view/cli/contribution.d.mts +2 -1
- package/dist/view/cli/contribution.d.ts +2 -1
- package/dist/view/function-runtime.mjs +13231 -11647
- package/dist/view/http-protocol.cjs +3 -0
- package/dist/view/http-protocol.cjs.map +1 -1
- package/dist/view/http-protocol.d.cts +8 -0
- package/dist/view/http-protocol.d.mts +8 -0
- package/dist/view/http-protocol.d.ts +8 -0
- package/dist/view/inspection-host.cjs +17 -1
- package/dist/view/inspection-host.cjs.map +1 -1
- package/dist/view/render.cjs +1 -0
- package/dist/view/render.cjs.map +1 -1
- package/dist/view/render.d.cts +2 -1
- package/dist/view/render.d.mts +2 -1
- package/dist/view/render.d.ts +2 -1
- package/dist/view/revision.cjs.map +1 -1
- package/dist/view/revision.d.cts +12 -0
- package/dist/view/revision.d.mts +12 -0
- package/dist/view/revision.d.ts +12 -0
- package/dist/view/server.cjs +10 -9
- package/dist/view/server.cjs.map +1 -1
- package/docs-site/zh/examples/ai-agent-application.mdx +1 -1
- package/docs-site/zh/explanation/adapter.mdx +2 -2
- package/docs-site/zh/explanation/assert.mdx +60 -24
- package/docs-site/zh/explanation/drive.mdx +1 -1
- package/docs-site/zh/explanation/evals.mdx +31 -29
- package/docs-site/zh/explanation/experiment.mdx +15 -15
- package/docs-site/zh/explanation/judge.mdx +23 -15
- package/docs-site/zh/explanation/overview.mdx +44 -21
- package/docs-site/zh/explanation/record.mdx +28 -13
- package/docs-site/zh/explanation/results-flow.mdx +37 -0
- package/docs-site/zh/explanation/runner.mdx +27 -6
- package/docs-site/zh/index.mdx +22 -115
- package/docs-site/zh/introduction.mdx +89 -61
- package/docs-site/zh/reference/cli.mdx +50 -26
- package/docs-site/zh/reference/define-agent.mdx +37 -5
- package/docs-site/zh/reference/define-eval.mdx +130 -29
- package/docs-site/zh/reference/define-experiment.mdx +251 -0
- package/docs-site/zh/reference/events.mdx +34 -30
- package/docs-site/zh/reference/expect.mdx +77 -2
- package/docs-site/zh/reference/official-adapters.mdx +2 -2
- package/docs-site/zh/troubleshooting/debug-sandbox.mdx +43 -24
- package/docs-site/zh/troubleshooting/debugging.mdx +65 -42
- package/docs-site/zh/troubleshooting/recover-after-kill.mdx +35 -28
- package/docs-site/zh/tutorials/accept-results.mdx +34 -24
- package/docs-site/zh/tutorials/agent-feedback-loop.mdx +74 -43
- package/docs-site/zh/tutorials/agent-onboarding.mdx +27 -20
- package/docs-site/zh/tutorials/authoring.mdx +138 -121
- package/docs-site/zh/tutorials/ci-integration.mdx +46 -22
- package/docs-site/zh/tutorials/compare-runs.mdx +40 -13
- package/docs-site/zh/tutorials/concurrency.mdx +66 -62
- package/docs-site/zh/tutorials/configuration.mdx +17 -17
- package/docs-site/zh/tutorials/connect-otel.mdx +48 -37
- package/docs-site/zh/tutorials/connect-your-agent.mdx +80 -173
- package/docs-site/zh/tutorials/control-run-cost.mdx +63 -12
- package/docs-site/zh/tutorials/criteria-files.mdx +28 -21
- package/docs-site/zh/tutorials/custom-application.mdx +75 -55
- package/docs-site/zh/tutorials/dataset-fanout.mdx +32 -22
- package/docs-site/zh/tutorials/debug-lifecycle-plan.mdx +38 -31
- package/docs-site/zh/tutorials/docker-in-docker.mdx +83 -89
- package/docs-site/zh/tutorials/eval-groups.mdx +70 -89
- package/docs-site/zh/tutorials/evaluation-kinds.mdx +12 -5
- package/docs-site/zh/tutorials/experiment-services.mdx +243 -0
- package/docs-site/zh/tutorials/fixtures.mdx +42 -26
- package/docs-site/zh/tutorials/handle-execution-failures.mdx +41 -19
- package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +21 -16
- package/docs-site/zh/tutorials/niceeval-taste-application.mdx +394 -0
- package/docs-site/zh/tutorials/niceeval-taste.mdx +190 -0
- package/docs-site/zh/tutorials/nixos-managed-dind.mdx +51 -39
- package/docs-site/zh/tutorials/plugins.mdx +55 -31
- package/docs-site/zh/tutorials/prebuilt-sandbox.mdx +204 -0
- package/docs-site/zh/tutorials/quickstart.mdx +91 -47
- package/docs-site/zh/tutorials/reporters.mdx +45 -30
- package/docs-site/zh/tutorials/rerun-and-cache.mdx +39 -40
- package/docs-site/zh/tutorials/sandbox-agent.mdx +65 -40
- package/docs-site/zh/tutorials/sandbox-providers.mdx +104 -282
- package/docs-site/zh/tutorials/sandbox-reuse.mdx +65 -97
- package/docs-site/zh/tutorials/select-and-preview.mdx +25 -20
- package/docs-site/zh/tutorials/verify-judge.mdx +49 -26
- package/docs-site/zh/tutorials/viewing-results.mdx +130 -80
- package/docs-site/zh/tutorials/write-experiment.mdx +116 -298
- package/docs-site/zh/tutorials/write-send.mdx +53 -52
- package/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/undici/docs/docs/api/Errors.md +25 -0
- package/node_modules/undici/docs/docs/api/Interceptors.md +4 -3
- package/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/undici/lib/dispatcher/client-h1.js +11 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +52 -8
- package/node_modules/undici/lib/dispatcher/client.js +1 -1
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -2
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
- package/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +16 -3
- package/node_modules/undici/lib/handler/deduplication-handler.js +24 -11
- package/node_modules/undici/lib/handler/redirect-handler.js +5 -0
- package/node_modules/undici/lib/handler/retry-handler.js +72 -13
- package/node_modules/undici/lib/interceptor/cache.js +4 -1
- package/node_modules/undici/lib/interceptor/decompress.js +236 -69
- package/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/undici/lib/web/cookies/util.js +3 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -1
- package/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/undici/lib/web/fetch/index.js +38 -14
- package/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/undici/lib/web/websocket/receiver.js +5 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/diagnostics-channel.d.ts +2 -1
- package/node_modules/undici/types/interceptors.d.ts +1 -1
- package/node_modules/undici/types/webidl.d.ts +13 -7
- package/package.json +4 -4
- package/dist/view/app-dist/assets/index-DFzw1L97.js +0 -63
- package/docs-site/zh/tutorials/experiments.mdx +0 -101
package/dist/expect/index.js
CHANGED
|
@@ -7,66 +7,76 @@ const __niceevalExport1 = __niceevalCanonical["atLeast"];
|
|
|
7
7
|
export { __niceevalExport1 as atLeast };
|
|
8
8
|
const __niceevalExport2 = __niceevalCanonical["atMost"];
|
|
9
9
|
export { __niceevalExport2 as atMost };
|
|
10
|
-
const __niceevalExport3 = __niceevalCanonical["
|
|
11
|
-
export { __niceevalExport3 as
|
|
12
|
-
const __niceevalExport4 = __niceevalCanonical["
|
|
13
|
-
export { __niceevalExport4 as
|
|
14
|
-
const __niceevalExport5 = __niceevalCanonical["
|
|
15
|
-
export { __niceevalExport5 as
|
|
16
|
-
const __niceevalExport6 = __niceevalCanonical["
|
|
17
|
-
export { __niceevalExport6 as
|
|
18
|
-
const __niceevalExport7 = __niceevalCanonical["
|
|
19
|
-
export { __niceevalExport7 as
|
|
20
|
-
const __niceevalExport8 = __niceevalCanonical["
|
|
21
|
-
export { __niceevalExport8 as
|
|
22
|
-
const __niceevalExport9 = __niceevalCanonical["
|
|
23
|
-
export { __niceevalExport9 as
|
|
24
|
-
const __niceevalExport10 = __niceevalCanonical["
|
|
25
|
-
export { __niceevalExport10 as
|
|
26
|
-
const __niceevalExport11 = __niceevalCanonical["
|
|
27
|
-
export { __niceevalExport11 as
|
|
28
|
-
const __niceevalExport12 = __niceevalCanonical["
|
|
29
|
-
export { __niceevalExport12 as
|
|
30
|
-
const __niceevalExport13 = __niceevalCanonical["
|
|
31
|
-
export { __niceevalExport13 as
|
|
32
|
-
const __niceevalExport14 = __niceevalCanonical["
|
|
33
|
-
export { __niceevalExport14 as
|
|
34
|
-
const __niceevalExport15 = __niceevalCanonical["
|
|
35
|
-
export { __niceevalExport15 as
|
|
36
|
-
const __niceevalExport16 = __niceevalCanonical["
|
|
37
|
-
export { __niceevalExport16 as
|
|
38
|
-
const __niceevalExport17 = __niceevalCanonical["
|
|
39
|
-
export { __niceevalExport17 as
|
|
40
|
-
const __niceevalExport18 = __niceevalCanonical["
|
|
41
|
-
export { __niceevalExport18 as
|
|
42
|
-
const __niceevalExport19 = __niceevalCanonical["
|
|
43
|
-
export { __niceevalExport19 as
|
|
44
|
-
const __niceevalExport20 = __niceevalCanonical["
|
|
45
|
-
export { __niceevalExport20 as
|
|
46
|
-
const __niceevalExport21 = __niceevalCanonical["
|
|
47
|
-
export { __niceevalExport21 as
|
|
48
|
-
const __niceevalExport22 = __niceevalCanonical["
|
|
49
|
-
export { __niceevalExport22 as
|
|
50
|
-
const __niceevalExport23 = __niceevalCanonical["
|
|
51
|
-
export { __niceevalExport23 as
|
|
52
|
-
const __niceevalExport24 = __niceevalCanonical["
|
|
53
|
-
export { __niceevalExport24 as
|
|
54
|
-
const __niceevalExport25 = __niceevalCanonical["
|
|
55
|
-
export { __niceevalExport25 as
|
|
56
|
-
const __niceevalExport26 = __niceevalCanonical["
|
|
57
|
-
export { __niceevalExport26 as
|
|
58
|
-
const __niceevalExport27 = __niceevalCanonical["
|
|
59
|
-
export { __niceevalExport27 as
|
|
60
|
-
const __niceevalExport28 = __niceevalCanonical["
|
|
61
|
-
export { __niceevalExport28 as
|
|
62
|
-
const __niceevalExport29 = __niceevalCanonical["
|
|
63
|
-
export { __niceevalExport29 as
|
|
64
|
-
const __niceevalExport30 = __niceevalCanonical["
|
|
65
|
-
export { __niceevalExport30 as
|
|
66
|
-
const __niceevalExport31 = __niceevalCanonical["
|
|
67
|
-
export { __niceevalExport31 as
|
|
68
|
-
const __niceevalExport32 = __niceevalCanonical["
|
|
69
|
-
export { __niceevalExport32 as
|
|
70
|
-
const __niceevalExport33 = __niceevalCanonical["
|
|
71
|
-
export { __niceevalExport33 as
|
|
10
|
+
const __niceevalExport3 = __niceevalCanonical["commandMatch"];
|
|
11
|
+
export { __niceevalExport3 as commandMatch };
|
|
12
|
+
const __niceevalExport4 = __niceevalCanonical["commandSucceeded"];
|
|
13
|
+
export { __niceevalExport4 as commandSucceeded };
|
|
14
|
+
const __niceevalExport5 = __niceevalCanonical["countWhere"];
|
|
15
|
+
export { __niceevalExport5 as countWhere };
|
|
16
|
+
const __niceevalExport6 = __niceevalCanonical["defineContextMatch"];
|
|
17
|
+
export { __niceevalExport6 as defineContextMatch };
|
|
18
|
+
const __niceevalExport7 = __niceevalCanonical["defineJudge"];
|
|
19
|
+
export { __niceevalExport7 as defineJudge };
|
|
20
|
+
const __niceevalExport8 = __niceevalCanonical["defineMaterialMatch"];
|
|
21
|
+
export { __niceevalExport8 as defineMaterialMatch };
|
|
22
|
+
const __niceevalExport9 = __niceevalCanonical["defineScoreMatch"];
|
|
23
|
+
export { __niceevalExport9 as defineScoreMatch };
|
|
24
|
+
const __niceevalExport10 = __niceevalCanonical["defineValueMatch"];
|
|
25
|
+
export { __niceevalExport10 as defineValueMatch };
|
|
26
|
+
const __niceevalExport11 = __niceevalCanonical["equals"];
|
|
27
|
+
export { __niceevalExport11 as equals };
|
|
28
|
+
const __niceevalExport12 = __niceevalCanonical["eventMatch"];
|
|
29
|
+
export { __niceevalExport12 as eventMatch };
|
|
30
|
+
const __niceevalExport13 = __niceevalCanonical["excludes"];
|
|
31
|
+
export { __niceevalExport13 as excludes };
|
|
32
|
+
const __niceevalExport14 = __niceevalCanonical["factuality"];
|
|
33
|
+
export { __niceevalExport14 as factuality };
|
|
34
|
+
const __niceevalExport15 = __niceevalCanonical["faithfulness"];
|
|
35
|
+
export { __niceevalExport15 as faithfulness };
|
|
36
|
+
const __niceevalExport16 = __niceevalCanonical["filterWhere"];
|
|
37
|
+
export { __niceevalExport16 as filterWhere };
|
|
38
|
+
const __niceevalExport17 = __niceevalCanonical["greaterThan"];
|
|
39
|
+
export { __niceevalExport17 as greaterThan };
|
|
40
|
+
const __niceevalExport18 = __niceevalCanonical["hasSections"];
|
|
41
|
+
export { __niceevalExport18 as hasSections };
|
|
42
|
+
const __niceevalExport19 = __niceevalCanonical["inOrder"];
|
|
43
|
+
export { __niceevalExport19 as inOrder };
|
|
44
|
+
const __niceevalExport20 = __niceevalCanonical["includes"];
|
|
45
|
+
export { __niceevalExport20 as includes };
|
|
46
|
+
const __niceevalExport21 = __niceevalCanonical["includesUrl"];
|
|
47
|
+
export { __niceevalExport21 as includesUrl };
|
|
48
|
+
const __niceevalExport22 = __niceevalCanonical["instructionFollowing"];
|
|
49
|
+
export { __niceevalExport22 as instructionFollowing };
|
|
50
|
+
const __niceevalExport23 = __niceevalCanonical["isDefined"];
|
|
51
|
+
export { __niceevalExport23 as isDefined };
|
|
52
|
+
const __niceevalExport24 = __niceevalCanonical["isFalse"];
|
|
53
|
+
export { __niceevalExport24 as isFalse };
|
|
54
|
+
const __niceevalExport25 = __niceevalCanonical["isTrue"];
|
|
55
|
+
export { __niceevalExport25 as isTrue };
|
|
56
|
+
const __niceevalExport26 = __niceevalCanonical["jsonMatch"];
|
|
57
|
+
export { __niceevalExport26 as jsonMatch };
|
|
58
|
+
const __niceevalExport27 = __niceevalCanonical["lessThan"];
|
|
59
|
+
export { __niceevalExport27 as lessThan };
|
|
60
|
+
const __niceevalExport28 = __niceevalCanonical["mapEach"];
|
|
61
|
+
export { __niceevalExport28 as mapEach };
|
|
62
|
+
const __niceevalExport29 = __niceevalCanonical["mapValue"];
|
|
63
|
+
export { __niceevalExport29 as mapValue };
|
|
64
|
+
const __niceevalExport30 = __niceevalCanonical["matches"];
|
|
65
|
+
export { __niceevalExport30 as matches };
|
|
66
|
+
const __niceevalExport31 = __niceevalCanonical["not"];
|
|
67
|
+
export { __niceevalExport31 as not };
|
|
68
|
+
const __niceevalExport32 = __niceevalCanonical["or"];
|
|
69
|
+
export { __niceevalExport32 as or };
|
|
70
|
+
const __niceevalExport33 = __niceevalCanonical["pairwisePreference"];
|
|
71
|
+
export { __niceevalExport33 as pairwisePreference };
|
|
72
|
+
const __niceevalExport34 = __niceevalCanonical["pattern"];
|
|
73
|
+
export { __niceevalExport34 as pattern };
|
|
74
|
+
const __niceevalExport35 = __niceevalCanonical["referencesAnyPath"];
|
|
75
|
+
export { __niceevalExport35 as referencesAnyPath };
|
|
76
|
+
const __niceevalExport36 = __niceevalCanonical["satisfies"];
|
|
77
|
+
export { __niceevalExport36 as satisfies };
|
|
78
|
+
const __niceevalExport37 = __niceevalCanonical["similarity"];
|
|
79
|
+
export { __niceevalExport37 as similarity };
|
|
80
|
+
const __niceevalExport38 = __niceevalCanonical["toolMatch"];
|
|
81
|
+
export { __niceevalExport38 as toolMatch };
|
|
72
82
|
//# sourceMappingURL=index.js.map
|
package/dist/expect/index.mjs
CHANGED
|
@@ -7,66 +7,76 @@ const __niceevalExport1 = __niceevalCanonical["atLeast"];
|
|
|
7
7
|
export { __niceevalExport1 as atLeast };
|
|
8
8
|
const __niceevalExport2 = __niceevalCanonical["atMost"];
|
|
9
9
|
export { __niceevalExport2 as atMost };
|
|
10
|
-
const __niceevalExport3 = __niceevalCanonical["
|
|
11
|
-
export { __niceevalExport3 as
|
|
12
|
-
const __niceevalExport4 = __niceevalCanonical["
|
|
13
|
-
export { __niceevalExport4 as
|
|
14
|
-
const __niceevalExport5 = __niceevalCanonical["
|
|
15
|
-
export { __niceevalExport5 as
|
|
16
|
-
const __niceevalExport6 = __niceevalCanonical["
|
|
17
|
-
export { __niceevalExport6 as
|
|
18
|
-
const __niceevalExport7 = __niceevalCanonical["
|
|
19
|
-
export { __niceevalExport7 as
|
|
20
|
-
const __niceevalExport8 = __niceevalCanonical["
|
|
21
|
-
export { __niceevalExport8 as
|
|
22
|
-
const __niceevalExport9 = __niceevalCanonical["
|
|
23
|
-
export { __niceevalExport9 as
|
|
24
|
-
const __niceevalExport10 = __niceevalCanonical["
|
|
25
|
-
export { __niceevalExport10 as
|
|
26
|
-
const __niceevalExport11 = __niceevalCanonical["
|
|
27
|
-
export { __niceevalExport11 as
|
|
28
|
-
const __niceevalExport12 = __niceevalCanonical["
|
|
29
|
-
export { __niceevalExport12 as
|
|
30
|
-
const __niceevalExport13 = __niceevalCanonical["
|
|
31
|
-
export { __niceevalExport13 as
|
|
32
|
-
const __niceevalExport14 = __niceevalCanonical["
|
|
33
|
-
export { __niceevalExport14 as
|
|
34
|
-
const __niceevalExport15 = __niceevalCanonical["
|
|
35
|
-
export { __niceevalExport15 as
|
|
36
|
-
const __niceevalExport16 = __niceevalCanonical["
|
|
37
|
-
export { __niceevalExport16 as
|
|
38
|
-
const __niceevalExport17 = __niceevalCanonical["
|
|
39
|
-
export { __niceevalExport17 as
|
|
40
|
-
const __niceevalExport18 = __niceevalCanonical["
|
|
41
|
-
export { __niceevalExport18 as
|
|
42
|
-
const __niceevalExport19 = __niceevalCanonical["
|
|
43
|
-
export { __niceevalExport19 as
|
|
44
|
-
const __niceevalExport20 = __niceevalCanonical["
|
|
45
|
-
export { __niceevalExport20 as
|
|
46
|
-
const __niceevalExport21 = __niceevalCanonical["
|
|
47
|
-
export { __niceevalExport21 as
|
|
48
|
-
const __niceevalExport22 = __niceevalCanonical["
|
|
49
|
-
export { __niceevalExport22 as
|
|
50
|
-
const __niceevalExport23 = __niceevalCanonical["
|
|
51
|
-
export { __niceevalExport23 as
|
|
52
|
-
const __niceevalExport24 = __niceevalCanonical["
|
|
53
|
-
export { __niceevalExport24 as
|
|
54
|
-
const __niceevalExport25 = __niceevalCanonical["
|
|
55
|
-
export { __niceevalExport25 as
|
|
56
|
-
const __niceevalExport26 = __niceevalCanonical["
|
|
57
|
-
export { __niceevalExport26 as
|
|
58
|
-
const __niceevalExport27 = __niceevalCanonical["
|
|
59
|
-
export { __niceevalExport27 as
|
|
60
|
-
const __niceevalExport28 = __niceevalCanonical["
|
|
61
|
-
export { __niceevalExport28 as
|
|
62
|
-
const __niceevalExport29 = __niceevalCanonical["
|
|
63
|
-
export { __niceevalExport29 as
|
|
64
|
-
const __niceevalExport30 = __niceevalCanonical["
|
|
65
|
-
export { __niceevalExport30 as
|
|
66
|
-
const __niceevalExport31 = __niceevalCanonical["
|
|
67
|
-
export { __niceevalExport31 as
|
|
68
|
-
const __niceevalExport32 = __niceevalCanonical["
|
|
69
|
-
export { __niceevalExport32 as
|
|
70
|
-
const __niceevalExport33 = __niceevalCanonical["
|
|
71
|
-
export { __niceevalExport33 as
|
|
10
|
+
const __niceevalExport3 = __niceevalCanonical["commandMatch"];
|
|
11
|
+
export { __niceevalExport3 as commandMatch };
|
|
12
|
+
const __niceevalExport4 = __niceevalCanonical["commandSucceeded"];
|
|
13
|
+
export { __niceevalExport4 as commandSucceeded };
|
|
14
|
+
const __niceevalExport5 = __niceevalCanonical["countWhere"];
|
|
15
|
+
export { __niceevalExport5 as countWhere };
|
|
16
|
+
const __niceevalExport6 = __niceevalCanonical["defineContextMatch"];
|
|
17
|
+
export { __niceevalExport6 as defineContextMatch };
|
|
18
|
+
const __niceevalExport7 = __niceevalCanonical["defineJudge"];
|
|
19
|
+
export { __niceevalExport7 as defineJudge };
|
|
20
|
+
const __niceevalExport8 = __niceevalCanonical["defineMaterialMatch"];
|
|
21
|
+
export { __niceevalExport8 as defineMaterialMatch };
|
|
22
|
+
const __niceevalExport9 = __niceevalCanonical["defineScoreMatch"];
|
|
23
|
+
export { __niceevalExport9 as defineScoreMatch };
|
|
24
|
+
const __niceevalExport10 = __niceevalCanonical["defineValueMatch"];
|
|
25
|
+
export { __niceevalExport10 as defineValueMatch };
|
|
26
|
+
const __niceevalExport11 = __niceevalCanonical["equals"];
|
|
27
|
+
export { __niceevalExport11 as equals };
|
|
28
|
+
const __niceevalExport12 = __niceevalCanonical["eventMatch"];
|
|
29
|
+
export { __niceevalExport12 as eventMatch };
|
|
30
|
+
const __niceevalExport13 = __niceevalCanonical["excludes"];
|
|
31
|
+
export { __niceevalExport13 as excludes };
|
|
32
|
+
const __niceevalExport14 = __niceevalCanonical["factuality"];
|
|
33
|
+
export { __niceevalExport14 as factuality };
|
|
34
|
+
const __niceevalExport15 = __niceevalCanonical["faithfulness"];
|
|
35
|
+
export { __niceevalExport15 as faithfulness };
|
|
36
|
+
const __niceevalExport16 = __niceevalCanonical["filterWhere"];
|
|
37
|
+
export { __niceevalExport16 as filterWhere };
|
|
38
|
+
const __niceevalExport17 = __niceevalCanonical["greaterThan"];
|
|
39
|
+
export { __niceevalExport17 as greaterThan };
|
|
40
|
+
const __niceevalExport18 = __niceevalCanonical["hasSections"];
|
|
41
|
+
export { __niceevalExport18 as hasSections };
|
|
42
|
+
const __niceevalExport19 = __niceevalCanonical["inOrder"];
|
|
43
|
+
export { __niceevalExport19 as inOrder };
|
|
44
|
+
const __niceevalExport20 = __niceevalCanonical["includes"];
|
|
45
|
+
export { __niceevalExport20 as includes };
|
|
46
|
+
const __niceevalExport21 = __niceevalCanonical["includesUrl"];
|
|
47
|
+
export { __niceevalExport21 as includesUrl };
|
|
48
|
+
const __niceevalExport22 = __niceevalCanonical["instructionFollowing"];
|
|
49
|
+
export { __niceevalExport22 as instructionFollowing };
|
|
50
|
+
const __niceevalExport23 = __niceevalCanonical["isDefined"];
|
|
51
|
+
export { __niceevalExport23 as isDefined };
|
|
52
|
+
const __niceevalExport24 = __niceevalCanonical["isFalse"];
|
|
53
|
+
export { __niceevalExport24 as isFalse };
|
|
54
|
+
const __niceevalExport25 = __niceevalCanonical["isTrue"];
|
|
55
|
+
export { __niceevalExport25 as isTrue };
|
|
56
|
+
const __niceevalExport26 = __niceevalCanonical["jsonMatch"];
|
|
57
|
+
export { __niceevalExport26 as jsonMatch };
|
|
58
|
+
const __niceevalExport27 = __niceevalCanonical["lessThan"];
|
|
59
|
+
export { __niceevalExport27 as lessThan };
|
|
60
|
+
const __niceevalExport28 = __niceevalCanonical["mapEach"];
|
|
61
|
+
export { __niceevalExport28 as mapEach };
|
|
62
|
+
const __niceevalExport29 = __niceevalCanonical["mapValue"];
|
|
63
|
+
export { __niceevalExport29 as mapValue };
|
|
64
|
+
const __niceevalExport30 = __niceevalCanonical["matches"];
|
|
65
|
+
export { __niceevalExport30 as matches };
|
|
66
|
+
const __niceevalExport31 = __niceevalCanonical["not"];
|
|
67
|
+
export { __niceevalExport31 as not };
|
|
68
|
+
const __niceevalExport32 = __niceevalCanonical["or"];
|
|
69
|
+
export { __niceevalExport32 as or };
|
|
70
|
+
const __niceevalExport33 = __niceevalCanonical["pairwisePreference"];
|
|
71
|
+
export { __niceevalExport33 as pairwisePreference };
|
|
72
|
+
const __niceevalExport34 = __niceevalCanonical["pattern"];
|
|
73
|
+
export { __niceevalExport34 as pattern };
|
|
74
|
+
const __niceevalExport35 = __niceevalCanonical["referencesAnyPath"];
|
|
75
|
+
export { __niceevalExport35 as referencesAnyPath };
|
|
76
|
+
const __niceevalExport36 = __niceevalCanonical["satisfies"];
|
|
77
|
+
export { __niceevalExport36 as satisfies };
|
|
78
|
+
const __niceevalExport37 = __niceevalCanonical["similarity"];
|
|
79
|
+
export { __niceevalExport37 as similarity };
|
|
80
|
+
const __niceevalExport38 = __niceevalCanonical["toolMatch"];
|
|
81
|
+
export { __niceevalExport38 as toolMatch };
|
|
72
82
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.experimentCliContributions = exports.SESSION_CLI_OPTIONS = exports.ACCEPT_CLI_OPTIONS = exports.DEBUG_CLI_OPTIONS = exports.EXP_TEARDOWN_CLI_OPTIONS = exports.EXP_RENAME_CLI_OPTIONS = exports.EXP_LIST_CLI_OPTIONS = exports.EXP_NORMAL_CLI_OPTIONS = exports.CHECK_CLI_OPTIONS = exports.ExpPlanDocumentSchema = exports.decodeExpPlanDocument = void 0;
|
|
4
|
+
const runtime_ts_1 = require("../runtime.cjs");
|
|
4
5
|
const effect_1 = require("effect");
|
|
5
6
|
const application_ts_1 = require("../../../cli/application.cjs");
|
|
6
7
|
const contribution_ts_1 = require("../../../cli/contribution.cjs");
|
|
@@ -8,7 +9,6 @@ const project_configuration_ts_1 = require("../../../cli/project-configuration.c
|
|
|
8
9
|
const index_ts_1 = require("../../../runner/feedback/index.cjs");
|
|
9
10
|
const session_ts_1 = require("../../../runner/session.cjs");
|
|
10
11
|
const aggregate_ts_1 = require("../../../shared/aggregate.cjs");
|
|
11
|
-
const index_ts_2 = require("../index.cjs");
|
|
12
12
|
const terminal_ts_1 = require("./terminal.cjs");
|
|
13
13
|
var plan_protocol_ts_1 = require("./plan-protocol.cjs");
|
|
14
14
|
Object.defineProperty(exports, "decodeExpPlanDocument", { enumerable: true, get: function () { return plan_protocol_ts_1.decodeExpPlanDocument; } });
|
|
@@ -37,6 +37,7 @@ exports.CHECK_CLI_OPTIONS = Object.freeze({
|
|
|
37
37
|
help: HELP_OPTION,
|
|
38
38
|
});
|
|
39
39
|
exports.EXP_NORMAL_CLI_OPTIONS = Object.freeze({
|
|
40
|
+
experiment: option("string", "Select an exact Experiment ID; repeat to select a set.", true),
|
|
40
41
|
attempts: option("string", "Run each selected Eval this many times."),
|
|
41
42
|
"max-concurrency": option("string", "Limit concurrent Attempt execution."),
|
|
42
43
|
"max-build-concurrency": option("string", "Limit concurrent Sandbox build preparation."),
|
|
@@ -108,11 +109,13 @@ Options:
|
|
|
108
109
|
`;
|
|
109
110
|
const EXP_HELP = `Run and maintain Experiments:
|
|
110
111
|
niceeval exp [<experiment-prefix> [<eval-prefix>...]] [options]
|
|
112
|
+
niceeval exp --experiment <exact-id> [--experiment <exact-id>...] [<eval-prefix>...] [options]
|
|
111
113
|
niceeval exp list [<experiment-prefix>] [--tag <tag>] [--json]
|
|
112
114
|
niceeval exp rename <new-id> --run <source-run-id> [--dry] [--json]
|
|
113
115
|
${SHARED_STATE_RECOVERY_USAGE}
|
|
114
116
|
|
|
115
117
|
Run options:
|
|
118
|
+
--experiment <exact-id> select an exact Experiment ID (repeatable)
|
|
116
119
|
--attempts <n> run each selected Eval this many times
|
|
117
120
|
--max-concurrency <n> limit concurrent Attempt execution
|
|
118
121
|
--max-build-concurrency <n> limit concurrent Sandbox build preparation
|
|
@@ -241,8 +244,8 @@ Run \`niceeval exp <path> --dry\` to preview a plan.
|
|
|
241
244
|
}
|
|
242
245
|
if (result.status === "eval-no-match") {
|
|
243
246
|
return `No eval matched prefix: ${result.selector ?? ""} in experiments selected by ${(result.experimentIds ?? []).join(", ") || "(all)"}.
|
|
244
|
-
Positional args after the first select eval id prefixes. To
|
|
245
|
-
|
|
247
|
+
Positional args after the first select eval id prefixes. To select separate experiments in one Invocation,
|
|
248
|
+
use: niceeval exp --experiment <first-id> --experiment <second-id>
|
|
246
249
|
`;
|
|
247
250
|
}
|
|
248
251
|
return `No evals selected: ${(result.experimentIds ?? []).join(", ") || "(all)"} matched 0 evals. Available eval prefixes: ${(0, aggregate_ts_1.browsableExperimentPaths)(result.candidates ?? result.experimentIds ?? []).join(", ") || "(none)"}.
|
|
@@ -250,8 +253,11 @@ Run \`niceeval exp ${(result.experimentIds ?? []).join(", ") || "(all)"} --dry\`
|
|
|
250
253
|
`;
|
|
251
254
|
}
|
|
252
255
|
function acceptText(results) {
|
|
253
|
-
|
|
256
|
+
const accepted = results.map((result) => `Accepted source Attempt ${result.sourceLocator} into new Run ${result.runId}. Result locator remains ${result.locator}. Current fingerprint: ${result.fingerprint}
|
|
254
257
|
`).join("");
|
|
258
|
+
const commands = [...new Set(results.map((result) => result.runId))]
|
|
259
|
+
.map((runId) => `show: niceeval show --run ${runId}\n`).join("");
|
|
260
|
+
return `${accepted}${commands}`;
|
|
255
261
|
}
|
|
256
262
|
function acceptRunPlanText(plan) {
|
|
257
263
|
const members = plan.members.map((member) => ` ${member.evalId} #${String(member.attempt)} ${member.locator} eligible\n`).join("");
|
|
@@ -422,7 +428,13 @@ function factsAndConfig() {
|
|
|
422
428
|
return Object.freeze({ invocation, config });
|
|
423
429
|
});
|
|
424
430
|
}
|
|
425
|
-
function selection(positionals) {
|
|
431
|
+
function selection(positionals, experimentIds) {
|
|
432
|
+
if (experimentIds !== undefined) {
|
|
433
|
+
return Object.freeze({
|
|
434
|
+
experimentIds: Object.freeze([...new Set(experimentIds)]),
|
|
435
|
+
...(positionals.length === 0 ? {} : { evalSelectors: Object.freeze([...positionals]) }),
|
|
436
|
+
});
|
|
437
|
+
}
|
|
426
438
|
const [experimentSelector, ...evalSelectors] = positionals;
|
|
427
439
|
return Object.freeze({
|
|
428
440
|
...(experimentSelector === undefined ? {} : { experimentSelector }),
|
|
@@ -463,7 +475,7 @@ const checkCommand = Object.freeze({
|
|
|
463
475
|
if (input.values.help === true)
|
|
464
476
|
return yield* write("stdout", CHECK_HELP).pipe(effect_1.Effect.as(0));
|
|
465
477
|
const { invocation, config } = yield* factsAndConfig();
|
|
466
|
-
const result = yield*
|
|
478
|
+
const result = yield* runtime_ts_1.rawExperimentHost.check({ cwd: invocation.cwd, config, ...selection(input.positionals) }).pipe(effect_1.Effect.mapError((cause) => failure("check", cause)));
|
|
467
479
|
if (result.status !== "linked") {
|
|
468
480
|
yield* write("stderr", selectionProblemText(result));
|
|
469
481
|
return 1;
|
|
@@ -481,7 +493,7 @@ const expCommand = Object.freeze({
|
|
|
481
493
|
// schema rejects irrelevant flags before facts, config, or .env are read.
|
|
482
494
|
const preliminary = yield* parsed(argv, EXP_CLI_OPTIONS);
|
|
483
495
|
const teardownMode = preliminary.values.teardown === true;
|
|
484
|
-
const preliminaryVerb = preliminary.positionals[0];
|
|
496
|
+
const preliminaryVerb = preliminary.values.experiment === undefined ? preliminary.positionals[0] : undefined;
|
|
485
497
|
if (preliminaryVerb === "help" && preliminary.positionals.length === 1) {
|
|
486
498
|
return yield* write("stdout", EXP_HELP).pipe(effect_1.Effect.as(0));
|
|
487
499
|
}
|
|
@@ -494,7 +506,8 @@ const expCommand = Object.freeze({
|
|
|
494
506
|
: exports.EXP_NORMAL_CLI_OPTIONS);
|
|
495
507
|
if (input.values.help === true)
|
|
496
508
|
return yield* write("stdout", EXP_HELP).pipe(effect_1.Effect.as(0));
|
|
497
|
-
const [
|
|
509
|
+
const [positionalVerb, ...rest] = input.positionals;
|
|
510
|
+
const verb = input.values.experiment === undefined ? positionalVerb : undefined;
|
|
498
511
|
const facts = yield* application_ts_1.CliInvocationFacts;
|
|
499
512
|
const invocation = yield* facts.facts.pipe(effect_1.Effect.mapError((cause) => failure("read invocation facts", cause)));
|
|
500
513
|
if (teardownMode) {
|
|
@@ -512,7 +525,7 @@ const expCommand = Object.freeze({
|
|
|
512
525
|
const recoveryKey = typeof input.values["recover-shared-state"] === "string"
|
|
513
526
|
? input.values["recover-shared-state"]
|
|
514
527
|
: undefined;
|
|
515
|
-
const inspection = yield*
|
|
528
|
+
const inspection = yield* runtime_ts_1.rawExperimentHost.teardown.inspect({
|
|
516
529
|
cwd: invocation.cwd,
|
|
517
530
|
currentHost: invocation.hostname,
|
|
518
531
|
...(selector === undefined ? {} : { experimentSelector: selector }),
|
|
@@ -547,7 +560,7 @@ const expCommand = Object.freeze({
|
|
|
547
560
|
}
|
|
548
561
|
const interruption = yield* application_ts_1.CliInterruption;
|
|
549
562
|
const output = yield* application_ts_1.CliOutput;
|
|
550
|
-
const result = yield*
|
|
563
|
+
const result = yield* runtime_ts_1.rawExperimentHost.teardown.run({
|
|
551
564
|
cwd: invocation.cwd,
|
|
552
565
|
currentHost: invocation.hostname,
|
|
553
566
|
...(selector === undefined ? {} : { experimentSelector: selector }),
|
|
@@ -605,7 +618,7 @@ const expCommand = Object.freeze({
|
|
|
605
618
|
return yield* write("stderr", "niceeval exp list accepts at most one experiment prefix.\n").pipe(effect_1.Effect.as(1));
|
|
606
619
|
const project = yield* project_configuration_ts_1.ProjectConfiguration;
|
|
607
620
|
yield* project.load(invocation.cwd).pipe(effect_1.Effect.mapError((cause) => failure("load config", cause)));
|
|
608
|
-
const result = yield*
|
|
621
|
+
const result = yield* runtime_ts_1.rawExperimentHost.catalog({ cwd: invocation.cwd, ...selection(rest), ...(typeof input.values.tag === "string" ? { tag: input.values.tag } : {}) }).pipe(effect_1.Effect.mapError((cause) => failure("list", cause)));
|
|
609
622
|
if (result.experiments.length === 0 && rest[0] !== undefined) {
|
|
610
623
|
yield* write("stderr", `No experiment matched: ${rest[0]}. Available paths: ${(0, aggregate_ts_1.browsableExperimentPaths)(result.experimentIds).join(", ") || "(none)"}.
|
|
611
624
|
Run \`niceeval exp <path> --dry\` to preview a plan.
|
|
@@ -626,17 +639,17 @@ Run \`niceeval exp <path> --dry\` to preview a plan.
|
|
|
626
639
|
const config = yield* project.load(invocation.cwd).pipe(effect_1.Effect.mapError((cause) => failure("load config", cause)));
|
|
627
640
|
const renameInput = { cwd: invocation.cwd, sourceRunId, newId, config };
|
|
628
641
|
const result = input.values.dry === true
|
|
629
|
-
? yield*
|
|
630
|
-
: yield*
|
|
642
|
+
? yield* runtime_ts_1.rawExperimentHost.rename.plan(renameInput).pipe(effect_1.Effect.mapError((cause) => failure("plan rename", cause)))
|
|
643
|
+
: yield* runtime_ts_1.rawExperimentHost.rename.apply(renameInput).pipe(effect_1.Effect.mapError((cause) => failure("rename", cause)));
|
|
631
644
|
yield* write("stdout", input.values.json === true ? renameJson(result) : renameText(result));
|
|
632
645
|
return result.status === "rejected" || (result.status === "plan" && result.blocked !== undefined) ? 1 : 0;
|
|
633
646
|
}
|
|
634
647
|
const project = yield* project_configuration_ts_1.ProjectConfiguration;
|
|
635
648
|
const config = yield* project.load(invocation.cwd).pipe(effect_1.Effect.mapError((cause) => failure("load config", cause)));
|
|
636
|
-
const plan = yield*
|
|
649
|
+
const plan = yield* runtime_ts_1.rawExperimentHost.invocation.plan({
|
|
637
650
|
cwd: invocation.cwd,
|
|
638
651
|
config,
|
|
639
|
-
...selection(input.positionals),
|
|
652
|
+
...selection(input.positionals, Array.isArray(input.values.experiment) ? input.values.experiment : undefined),
|
|
640
653
|
...(typeof input.values.tag === "string" ? { tag: input.values.tag } : {}),
|
|
641
654
|
...(typeof input.values.record === "string" ? { recordRoot: input.values.record } : {}),
|
|
642
655
|
overrides: overrides(input.values),
|
|
@@ -665,7 +678,8 @@ Run \`niceeval exp <path> --dry\` to preview a plan.
|
|
|
665
678
|
const renderer = profile === "human"
|
|
666
679
|
? (0, index_ts_1.createHumanRenderer)({
|
|
667
680
|
io: terminal.feedback,
|
|
668
|
-
command: ["niceeval", "exp", ...input.
|
|
681
|
+
command: ["niceeval", "exp", ...(Array.isArray(input.values.experiment)
|
|
682
|
+
? input.values.experiment.flatMap((id) => ["--experiment", id]) : []), ...input.positionals].join(" ").trim(),
|
|
669
683
|
})
|
|
670
684
|
: (0, index_ts_1.createJsonRenderer)({ io: terminal.feedback });
|
|
671
685
|
const coordinator = (0, index_ts_1.createFeedbackCoordinator)({
|
|
@@ -683,7 +697,7 @@ Run \`niceeval exp <path> --dry\` to preview a plan.
|
|
|
683
697
|
coordinator,
|
|
684
698
|
onInterrupt: interruption.requestInterrupt,
|
|
685
699
|
})), (guard) => effect_1.Effect.sync(guard.stop));
|
|
686
|
-
return yield*
|
|
700
|
+
return yield* runtime_ts_1.rawExperimentHost.invocation.run({
|
|
687
701
|
plan: plan.plan,
|
|
688
702
|
signal: interruption.invocationSignal,
|
|
689
703
|
feedback: Object.freeze({ coordinator }),
|
|
@@ -719,7 +733,7 @@ const debugCommand = Object.freeze({
|
|
|
719
733
|
`).pipe(effect_1.Effect.as(1));
|
|
720
734
|
}
|
|
721
735
|
const { invocation, config } = yield* factsAndConfig();
|
|
722
|
-
const result = yield*
|
|
736
|
+
const result = yield* runtime_ts_1.rawExperimentHost.debug({
|
|
723
737
|
cwd: invocation.cwd,
|
|
724
738
|
config,
|
|
725
739
|
experimentSelector,
|
|
@@ -782,17 +796,17 @@ const acceptCommand = Object.freeze({
|
|
|
782
796
|
const { invocation, config } = yield* factsAndConfig();
|
|
783
797
|
if (sourceRunId !== undefined) {
|
|
784
798
|
if (input.values.dry === true) {
|
|
785
|
-
const plan = yield*
|
|
799
|
+
const plan = yield* runtime_ts_1.rawExperimentHost.acceptRun.plan({ cwd: invocation.cwd, config, runId: sourceRunId, ...(typeof input.values.record === "string" ? { recordRoot: input.values.record } : {}) }).pipe(effect_1.Effect.mapError((cause) => failure("accept", cause, 1, `error: could not accept result: ${cause.message}
|
|
786
800
|
`)));
|
|
787
801
|
yield* write("stdout", acceptRunPlanText(plan));
|
|
788
802
|
return 0;
|
|
789
803
|
}
|
|
790
|
-
const accepted = yield*
|
|
804
|
+
const accepted = yield* runtime_ts_1.rawExperimentHost.acceptRun.apply({ cwd: invocation.cwd, config, runId: sourceRunId, ...(typeof input.values.record === "string" ? { recordRoot: input.values.record } : {}) }).pipe(effect_1.Effect.mapError((cause) => failure("accept", cause, 1, `error: could not accept result: ${cause.message}
|
|
791
805
|
`)));
|
|
792
806
|
yield* write("stdout", acceptedRunText(sourceRunId, accepted));
|
|
793
807
|
return 0;
|
|
794
808
|
}
|
|
795
|
-
const result = yield*
|
|
809
|
+
const result = yield* runtime_ts_1.rawExperimentHost.accept({ cwd: invocation.cwd, config, locators: Object.freeze(input.positionals), ...(typeof input.values.record === "string" ? { recordRoot: input.values.record } : {}) }).pipe(effect_1.Effect.mapError((cause) => failure("accept", cause, 1, `error: could not accept result: ${cause.message}
|
|
796
810
|
`)));
|
|
797
811
|
yield* write("stdout", acceptText(result));
|
|
798
812
|
return 0;
|
|
@@ -810,12 +824,12 @@ const sessionCommand = Object.freeze({
|
|
|
810
824
|
const facts = yield* application_ts_1.CliInvocationFacts;
|
|
811
825
|
const invocation = yield* facts.facts.pipe(effect_1.Effect.mapError((cause) => failure("read invocation facts", cause)));
|
|
812
826
|
if (verb === "list") {
|
|
813
|
-
const result = yield*
|
|
827
|
+
const result = yield* runtime_ts_1.rawExperimentHost.invocationStatus.list({ cwd: invocation.cwd, ...(input.values.all === true ? { all: true } : {}), ...(value === undefined ? {} : { experimentSelector: value }) }).pipe(effect_1.Effect.mapError((cause) => failure("list invocation status", cause)));
|
|
814
828
|
yield* write("stdout", input.values.json === true ? jsonDocument(result) : (0, session_ts_1.renderSessionListText)(result, Date.now(), input.values.all === true));
|
|
815
829
|
return 0;
|
|
816
830
|
}
|
|
817
831
|
if (verb === "show" && value !== undefined && input.positionals.length === 2) {
|
|
818
|
-
const result = yield*
|
|
832
|
+
const result = yield* runtime_ts_1.rawExperimentHost.invocationStatus.show({ cwd: invocation.cwd, invocationSelector: value }).pipe(effect_1.Effect.mapError((cause) => failure("show invocation status", cause)));
|
|
819
833
|
yield* write("stdout", input.values.json === true ? jsonDocument(result) : (0, session_ts_1.renderSessionShowText)(result));
|
|
820
834
|
return 0;
|
|
821
835
|
}
|