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
|
@@ -1,115 +1,143 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "NiceEval
|
|
2
|
+
title: "NiceEval 是什么"
|
|
3
3
|
sidebarTitle: "介绍"
|
|
4
|
-
description: "NiceEval
|
|
4
|
+
description: "NiceEval 用 TypeScript 给 AI Agent 和 AI 应用写评估:断言工具调用、回复、代码改动和业务结果,反复运行、比较配置,再逐条追查失败。"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
import { SandboxMode } from '/snippets/diagram-sandbox-mode.jsx';
|
|
8
8
|
import { DirectMode } from '/snippets/diagram-direct-mode.jsx';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
你改了一版 prompt,换了一个模型,给 Claude Code 写了一个新 Skill,或者调了游戏里 NPC 的提示词。它到底变好了没有?
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
只靠手动试几次很难回答。Agent 每次的回答都不一样,一次碰巧答对说明不了什么。改好了这道题,可能又悄悄改坏了另一道。
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
NiceEval 用来回答这个问题。它以 Agent 为主要场景,也能评任何由 LLM 驱动的应用。你用 TypeScript 写下“什么算做对”,NiceEval 负责下面这些事:
|
|
15
|
+
|
|
16
|
+
- 连上被测对象,把任务发给它。
|
|
17
|
+
- 按需要反复运行,每次都打分。
|
|
18
|
+
- 把每一次的对话、工具调用、文件改动、耗时和花费留下来。
|
|
19
|
+
- 让你在终端或浏览器里比较两个配置,并回到具体某一次失败去看发生了什么。
|
|
20
|
+
|
|
21
|
+
所有运行都在你自己的机器和 CI 里完成,不需要注册账号。
|
|
22
|
+
|
|
23
|
+
## 一条评估用例长什么样
|
|
24
|
+
|
|
25
|
+
下面这条评估用例验证一个天气助手:问天气时它要真的调用 `get_weather`,而不是凭空编一个答案。
|
|
15
26
|
|
|
16
|
-
## 构建评估用例
|
|
17
27
|
```ts
|
|
18
|
-
// evals/
|
|
28
|
+
// evals/weather-tool.eval.ts
|
|
19
29
|
import { defineEval, defineJudge } from "niceeval";
|
|
20
30
|
import { includes } from "niceeval/expect";
|
|
21
31
|
|
|
22
|
-
const
|
|
32
|
+
const groundedAnswer = defineJudge({
|
|
23
33
|
name: "grounded-weather-answer",
|
|
24
34
|
rubric: "根据 question 评价 answer 是否给出具体天气信息,而不是拒绝或含糊作答。",
|
|
25
35
|
});
|
|
26
36
|
|
|
27
37
|
export default defineEval({
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
description: "问天气时调用工具,并基于工具结果作答",
|
|
39
|
+
judge: groundedAnswer,
|
|
30
40
|
|
|
31
41
|
async test(t) {
|
|
32
42
|
const turn = await t.send("北京今天天气怎么样?");
|
|
33
43
|
turn.succeeded().label("Turn 成功");
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
t.check(turn.message, includes("天气")).label("说明天气");
|
|
38
|
-
});
|
|
45
|
+
t.calledTool("get_weather").label("调用天气工具");
|
|
46
|
+
t.check(turn.message, includes("天气")).label("说明天气");
|
|
39
47
|
|
|
40
|
-
const second = await t.send("
|
|
41
|
-
t.check(second.message, includes("上海")).label("
|
|
48
|
+
const second = await t.send("那上海明天呢?");
|
|
49
|
+
t.check(second.message, includes("上海")).label("第二轮接得上上下文");
|
|
42
50
|
|
|
43
|
-
t.judge({ question: turn.input, answer: turn.message },
|
|
51
|
+
t.judge({ question: turn.input, answer: turn.message }, groundedAnswer).gate(0.7)
|
|
44
52
|
.label("回答有依据");
|
|
45
53
|
},
|
|
46
54
|
});
|
|
47
55
|
```
|
|
48
56
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
pnpm exec niceeval view # 人在网页中审阅结果
|
|
53
|
-
```
|
|
57
|
+
确定的事实用确定的规则检查,例如调用了哪个工具、回复里有没有某个词。开放式的质量,例如回答是否有依据,交给裁判模型 Judge 打分,低于 0.7 就算不通过。
|
|
58
|
+
|
|
59
|
+
“对着哪个 Agent、用哪个模型跑”不写在评估用例里,而是写在 Experiment 里。同一批评估用例因此可以直接用来比较两个模型或两版 prompt。
|
|
54
60
|
|
|
55
|
-
##
|
|
61
|
+
## 评估用来做什么
|
|
56
62
|
|
|
57
|
-
|
|
63
|
+
评估写起来像单元测试,用起来更像实验。同一批评估用例可以服务几种目的:
|
|
58
64
|
|
|
59
|
-
|
|
65
|
+
- **防回归**:改 prompt、换模型、升级依赖后重跑同一批评估,看通过率有没有掉。见[修改后只重跑受影响的评估](/zh/tutorials/rerun-and-cache)。
|
|
66
|
+
- **做对比**:同一批评估对着两个模型、两版 prompt、装与不装某个 Skill 各跑一遍,逐题比较结果。见[编写实验](/zh/tutorials/write-experiment)和[比较两次运行](/zh/tutorials/compare-runs)。
|
|
67
|
+
- **进 CI**:评估不通过就让 PR 变红。见 [CI 集成](/zh/tutorials/ci-integration)。
|
|
68
|
+
- **越用越全**:真实使用中暴露的失败,补成一条新的评估用例,以后每次改动都会检查到它。
|
|
60
69
|
|
|
61
|
-
##
|
|
70
|
+
## 能评什么
|
|
62
71
|
|
|
63
|
-
<CardGroup cols={
|
|
64
|
-
<Card title="
|
|
65
|
-
|
|
72
|
+
<CardGroup cols={3}>
|
|
73
|
+
<Card title="你自己的 AI Agent" icon="globe" href="/zh/tutorials/connect-your-agent">
|
|
74
|
+
基于 AI SDK、LangGraph、Pi 或自研 Agent loop 都可以,用什么语言写也不影响。只要有一个能调用的接口,写一个 Adapter 就能接进来。
|
|
66
75
|
</Card>
|
|
67
|
-
<Card title="
|
|
68
|
-
|
|
76
|
+
<Card title="Coding Agent 和它的扩展" icon="code" href="/zh/tutorials/sandbox-agent">
|
|
77
|
+
把 Claude Code、Codex 等 Agent 放进 Sandbox,给它一个真实仓库和任务,用项目自己的测试判分。适合衡量 Skill、Plugin 或 memory 的实际效果。
|
|
78
|
+
</Card>
|
|
79
|
+
<Card title="任何 AI 应用,比如 LLM 游戏" icon="gamepad" href="/zh/tutorials/custom-application">
|
|
80
|
+
被测对象提供的是发帖、回复、NPC 行动这类业务操作时,把它们原样交给评估用例,直接检查返回的结构化结果和世界状态。
|
|
69
81
|
</Card>
|
|
70
82
|
</CardGroup>
|
|
71
83
|
|
|
72
|
-
|
|
84
|
+
不是对话式 Agent 的应用,评估里调用的就是它自己的方法。下面是 [`examples/zh/llm-x`](https://github.com/CorrectRoadH/niceeval/tree/main/examples/zh/llm-x) 里一个 AI 社交应用的评估:
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
// evals/social-journey.eval.ts —— 被测对象是一个 AI 驱动的社交应用
|
|
88
|
+
export default x.defineEval({
|
|
89
|
+
description: "发帖、回复后,AI 角色作出回应,社交世界保持自洽",
|
|
90
|
+
async test(t) {
|
|
91
|
+
const initial = await t.visitDiscoveryPage();
|
|
92
|
+
const post = await t.post({ intent: "邀请大家今晚一起拍摄城市夜景", withImage: true });
|
|
93
|
+
t.check(post, authoredPost(initial.viewerId)).label("帖子属于当前玩家");
|
|
94
|
+
|
|
95
|
+
const reply = await t.reply({ postId: post.id, intent: "补充集合地点在河边步道入口" });
|
|
96
|
+
const responses = await t.waitForReplies(reply.id);
|
|
97
|
+
t.check(responses.length, greaterThan(0)).label("AI 角色作出回应");
|
|
98
|
+
t.check(worldMaterial(await t.refreshFeed()), coherentSocialWorld()).label("刷新后社交关系仍完整");
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
被测对象的接入方式有两种:
|
|
73
104
|
|
|
74
105
|
<Tabs>
|
|
75
|
-
<Tab title="
|
|
76
|
-
|
|
106
|
+
<Tab title="直连你的应用">
|
|
107
|
+
NiceEval 通过 Adapter 直接请求你的 Agent 或应用接口,不需要 Docker。对话式 Agent 和提供业务操作的应用都走这条路。
|
|
77
108
|
|
|
78
|
-
<
|
|
109
|
+
<DirectMode />
|
|
79
110
|
</Tab>
|
|
80
|
-
<Tab title="
|
|
81
|
-
|
|
111
|
+
<Tab title="放进 Sandbox">
|
|
112
|
+
Coding Agent 要在真实文件系统里改代码、跑命令,NiceEval 先创建一个隔离的 Sandbox,再在里面启动 Agent。
|
|
82
113
|
|
|
83
|
-
<
|
|
114
|
+
<SandboxMode />
|
|
84
115
|
</Tab>
|
|
85
116
|
</Tabs>
|
|
86
117
|
|
|
87
|
-
##
|
|
118
|
+
## 和 DeepEval、LangFuse、Braintrust 有什么不同
|
|
88
119
|
|
|
89
|
-
|
|
90
|
-
|---|---|
|
|
91
|
-
| 评估用例 | 一个测试用例:写在 `evals/*.eval.ts` 里,描述测什么。 |
|
|
92
|
-
| Experiment | 可签入的运行配置:决定连哪个 Adapter、什么 model、什么 flags。 |
|
|
93
|
-
| Adapter | 连接被测系统的适配层:实现一个 `send`,把返回翻译成标准事件流。 |
|
|
94
|
-
| Sandbox | 需要隔离工作区的 coding agent 才用得到。直连 Web Agent 不需要。 |
|
|
95
|
-
| Tier | 接入 Adapter 的三档投入:Tier 1 只接 send,Tier 2 加 OTel 换调用瀑布图,Tier 3 侵入改造做 feature A/B。 |
|
|
120
|
+
DeepEval 是成熟的 Python 评估框架,指标库丰富。NiceEval 的取舍不同:
|
|
96
121
|
|
|
97
|
-
|
|
122
|
+
- **TypeScript 原生**:评估用例、Adapter、Experiment 都是带类型的 TypeScript 代码。
|
|
123
|
+
- **断言落在过程上**:Agent 做对一件事,往往要经过多轮对话、几次工具调用、读文件、改代码,最终答案只是其中一环。NiceEval 直接断言这些过程事实,不要求你先攒一份 golden 数据集。
|
|
124
|
+
- **在真实环境里判分**:Coding Agent 跑在 Sandbox 里,用项目自己的测试和文件改动判分,而不是只给回复打分。
|
|
125
|
+
- **对照实验是一等公民**:评估用例和 Experiment 分开,同一批评估用例直接比较模型、prompt 和扩展。
|
|
98
126
|
|
|
99
|
-
|
|
127
|
+
LangFuse、Braintrust 这类可观测平台回答“线上发生了什么”,评估回答“这个行为够不够好”。NiceEval 专注后者,以及“写评估、跑评估、看结果、改 Agent”这一段本地开发循环。两者可以共存:你继续用它们看线上 trace,也可以把 NiceEval 的结果上报给 Braintrust。
|
|
100
128
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
129
|
+
## 会反复见到的几个词
|
|
130
|
+
|
|
131
|
+
| 词 | 是什么 |
|
|
132
|
+
|---|---|
|
|
133
|
+
| [评估用例](/zh/explanation/evals) | 一条测试,写在 `evals/*.eval.ts` 里,说明发什么、怎样算做对。 |
|
|
134
|
+
| [Experiment](/zh/explanation/experiment) | 一份运行配置,说明对着哪个 Agent、用哪个模型、跑几次。 |
|
|
135
|
+
| [Adapter](/zh/explanation/adapter) | 连接被测对象的代码,把请求发过去,把回复翻译成 NiceEval 能读的事件。 |
|
|
136
|
+
| [Sandbox](/zh/tutorials/sandbox-providers) | 隔离的运行环境。只有 Coding Agent 需要,直连的应用用不到。 |
|
|
137
|
+
| Attempt | 一条评估用例的一次运行。同一条跑 5 次,就有 5 个 Attempt。 |
|
|
138
|
+
|
|
139
|
+
其它术语第一次出现时都会就地解释。
|
|
112
140
|
|
|
113
|
-
##
|
|
141
|
+
## 接下来
|
|
114
142
|
|
|
115
|
-
[快速开始](/zh/tutorials/quickstart)
|
|
143
|
+
[快速开始](/zh/tutorials/quickstart)带你在十分钟左右跑通第一条评估用例,并在终端和浏览器里看到结果。
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "CLI"
|
|
3
3
|
sidebarTitle: "CLI"
|
|
4
|
-
description: "
|
|
4
|
+
description: "用 query、show 和 view 读取运行记录。"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
运行评估用 `niceeval exp`。读取结果有三条路:脚本和 CI 用 `niceeval query` 取 JSON,人和 Coding Agent 在终端用 `niceeval show` 逐层查看,在浏览器里审阅用 `niceeval view`。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
三条路读的是同一份运行记录 `.niceeval/record.sqlite`。每次读取开始时,NiceEval 会固定一个可见边界:此刻已经写入的结果都能看到,之后写入的不会混进这次读取。所属 Run 还在运行时,已经写入的 Attempt 也能读到。
|
|
10
|
+
|
|
11
|
+
把 `niceeval exp` 的输出接到管道时,stdout 仍会显示进度。每行带上 Experiment、评估用例和 Attempt 序号。同一个 Attempt 每秒最多输出一次,内容没变就不重复输出。直接在终端里运行时显示动态面板。脚本要读结构化结果时加 `--json`。
|
|
12
|
+
|
|
13
|
+
重复传入 `--experiment` 可以一次运行多个实验,例如 `niceeval exp --experiment baseline --experiment memory --max-concurrency 4`。这些实验在同一次运行里共享并发上限和预算。同一个 ID 写两次只运行一次。只要有一个 ID 不存在,整条命令在开始执行前就会失败。用了 `--experiment` 后,位置参数用来筛选评估用例。
|
|
10
14
|
|
|
11
15
|
## `niceeval query`
|
|
12
16
|
|
|
@@ -16,15 +20,15 @@ niceeval query explain [--record <file>] --request <file|->
|
|
|
16
20
|
niceeval query run [--record <file>] --request <file|->
|
|
17
21
|
```
|
|
18
22
|
|
|
19
|
-
`query`
|
|
23
|
+
`query` 使用带版本号的 JSON 请求协议 `niceeval.query/v1`,每一种固定的读取问题叫一个 operation。成功的结果和协议里定义的失败,都会向 stdout 写出恰好一个 JSON 文档。参数写错,或者进程出错到无法生成文档时,错误只写到 stderr。
|
|
20
24
|
|
|
21
|
-
- `discover`
|
|
22
|
-
- `explain`
|
|
23
|
-
- `run`
|
|
25
|
+
- `discover` 列出当前版本支持的 operation ID。它不读运行记录,所以不接受 `--record`,也不返回请求的字段结构。
|
|
26
|
+
- `explain` 校验完整请求,说明它会运行哪个 operation,以及接下来可以发哪些请求。
|
|
27
|
+
- `run` 执行请求,返回该 operation 的完整结果。
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
先用 `discover` 确认当前版本有哪些 operation,再按本页或[查看结果](/zh/tutorials/viewing-results)里的最小请求来写,并用 `explain` 校验。不要猜字段,也不要用 SQL、JSON path 或公式拼出另一种查询语言。
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
结果分页时会带一个续读 token。这个 token 记住了 operation、请求内容、读取的记录文件和这次读取的可见边界。任何一项变了,`query` 都不会接着读,而是返回 restart correction,表示调用方要从 `discover` 或重新发请求开始。
|
|
28
32
|
|
|
29
33
|
## `niceeval show`
|
|
30
34
|
|
|
@@ -40,19 +44,33 @@ niceeval show @<locator> --usage [--record <file>]
|
|
|
40
44
|
niceeval show @<locator> --diff [--record <file>]
|
|
41
45
|
```
|
|
42
46
|
|
|
43
|
-
`show`
|
|
47
|
+
`show` 在终端里按固定格式显示结果。不带选择参数时显示默认总览。`--run <run-id>` 显示指定的 Run,`--experiment <experiment-id>` 显示指定的 Experiment,两者都可以重复传入。
|
|
48
|
+
|
|
49
|
+
通过率和分数按评估用例的类型显示:
|
|
50
|
+
|
|
51
|
+
- 通过制的评估显示 `Verdicts` 和 `Pass rate`。
|
|
52
|
+
- 纯计分制的评估显示 `Verdicts` 和 `Score`,不显示通过率。
|
|
53
|
+
- 两种混在一起时,只有通过制的行显示通过率。
|
|
44
54
|
|
|
45
|
-
|
|
55
|
+
分数“完整”只说明这个分数算得出来,不代表评估通过。判定为 `failed` 的评估即使分数完整,也显示失败,同时保留它拿到的分数。只有判定为 `passed` 且分数完整的评估才进入成功排名。
|
|
46
56
|
|
|
47
|
-
|
|
57
|
+
判定为 `passed` 且分数完整时,终端详情显示 `scored`,浏览器显示“评分完成”。零分也可以是完整评分:它说明评分做完了,不说明目标已经达成,NiceEval 也没有默认的及格线。gate 失败照样显示失败。分数不完整(`partial`)时只保留已知分数的下限,不算有效评分。
|
|
48
58
|
|
|
49
|
-
`@<locator>`
|
|
59
|
+
`@<locator>` 选中一个 Attempt。一条命令最多给一个 locator,它不能和 `--run` 或 `--experiment` 同时使用;`--run` 和 `--experiment` 之间也不能同时使用。
|
|
50
60
|
|
|
51
|
-
|
|
61
|
+
选中 Attempt 后,可以加下面任意一个选项看某一方面。这五个选项互斥,都必须配合 Attempt locator:
|
|
52
62
|
|
|
53
|
-
|
|
63
|
+
- `--source`:记录下来的源码信息,以及每条断言在源码里的位置。
|
|
64
|
+
- `--execution`:执行过程的概要,篇幅有上限。
|
|
65
|
+
- `--timing`:各阶段的耗时。
|
|
66
|
+
- `--usage`:用量合计,以及每一次上报的用量。
|
|
67
|
+
- `--diff`:运行期间的文件改动。
|
|
54
68
|
|
|
55
|
-
`--
|
|
69
|
+
`--execution` 的输出分开显示三件事:采集状态、上报方是否声明数据完整、分页状态。即使当前页为空或已到最后一页,上报方标记的 `partial` 和限制原因也会保留。
|
|
70
|
+
|
|
71
|
+
- 用 `--actor <id>` 和 `--type <event-type>` 按参与方和事件类型筛选。
|
|
72
|
+
- 用 `--continuation <token>` 翻页时,要带上相同的筛选条件。
|
|
73
|
+
- 用 `--expand <stable-id>` 直接展开一项详情。ID 必须取自概要里的 `itemId`、`toolOccurrenceId` 或 `commandId`,不能用位置序号。`--expand` 只能和 `--execution` 一起用,也不能和筛选、翻页参数同时出现。
|
|
56
74
|
|
|
57
75
|
## `niceeval view`
|
|
58
76
|
|
|
@@ -60,24 +78,28 @@ niceeval show @<locator> --diff [--record <file>]
|
|
|
60
78
|
niceeval view [--run <run-id>...] [--no-open] [--port <port>] [--json]
|
|
61
79
|
```
|
|
62
80
|
|
|
63
|
-
`view`
|
|
81
|
+
`view` 在本机打开 NiceEval 自带的浏览器界面。不带 `--run` 时打开默认总览,重复传入 `--run` 可以预先选中多个 Run。它不接受位置参数,也不加载项目自己的页面、主题、组件或渲染器。
|
|
82
|
+
|
|
83
|
+
`--no-open` 只启动服务,不自动打开浏览器。`--port` 指定端口,服务只监听 `127.0.0.1`。页面资源、本机访问授权和读取接口都准备好后,命令向 stdout 输出一次可以打开的本机地址。
|
|
64
84
|
|
|
65
|
-
`--
|
|
85
|
+
加 `--json` 时,stdout 改为 `niceeval.view/v1` 格式的 NDJSON:就绪时输出 `ready` 事件,关闭时输出 `closed` 事件。启动或运行失败时,通过退出码和 stderr 报告。
|
|
66
86
|
|
|
67
|
-
|
|
87
|
+
`view` 只读取当前项目的 `.niceeval/record.sqlite`。打开期间有新结果写入时,页面会提示刷新,确认后才切换到新数据。它没有 `--record`、SQL、部署或分享选项,也不能指定自定义报告、页面、主题、路由或 operation。
|
|
68
88
|
|
|
69
89
|
## 选择读取方式
|
|
70
90
|
|
|
91
|
+
三条路读取得到的是同一份结果,但各自负责自己的排版和展示。
|
|
92
|
+
|
|
71
93
|
| 目标 | 使用 |
|
|
72
94
|
| --- | --- |
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
95
|
+
| 让脚本或 CI 取得稳定的 JSON | `niceeval query discover`,再用 `explain` / `run` |
|
|
96
|
+
| 人或 Coding Agent 在终端查看总览、Run、Experiment 或 Attempt 的摘要 | `niceeval show` |
|
|
97
|
+
| 在浏览器里审阅总览或某个 Run | `niceeval view` |
|
|
98
|
+
| 在另一台机器上读取同一份结果 | 复制 `.niceeval/record.sqlite`,再用 `--record` 指定它 |
|
|
77
99
|
|
|
78
100
|
## CLI flags
|
|
79
101
|
|
|
80
|
-
|
|
102
|
+
下表从各命令自己的选项定义生成。表里没有的 flag 会被当作未知参数拒绝。
|
|
81
103
|
|
|
82
104
|
{/* GENERATED:BEGIN cli-flags */}
|
|
83
105
|
|
|
@@ -89,6 +111,7 @@ View 只读取项目 canonical `.niceeval/record.sqlite`。新 publication 出
|
|
|
89
111
|
| `--version` | `niceeval` | boolean | 打印当前安装的 NiceEval 版本。 |
|
|
90
112
|
| `--tag` | `niceeval check`、`niceeval exp`、`niceeval exp list` | string | 只选择带有该 tag 的评估用例。 |
|
|
91
113
|
| `--help` | `niceeval check`、`niceeval exp`、`niceeval exp list`、`niceeval exp rename`、`niceeval exp --teardown`、`niceeval debug`、`niceeval accept`、`niceeval session` | boolean | 打印该命令的帮助。 |
|
|
114
|
+
| `--experiment` | `niceeval exp` | string[] | 按 Experiment selector 缩小当前项目的结果。 |
|
|
92
115
|
| `--attempts` | `niceeval exp` | number | 让每个选中的评估用例运行指定次数。 |
|
|
93
116
|
| `--max-concurrency` | `niceeval exp` | number | 限制同时执行的 Attempt 数量。 |
|
|
94
117
|
| `--max-build-concurrency` | `niceeval exp` | number | 限制同时准备 Sandbox build 的数量。 |
|
|
@@ -126,6 +149,9 @@ View 只读取项目 canonical `.niceeval/record.sqlite`。新 publication 出
|
|
|
126
149
|
| `--all` | `niceeval show` | boolean | 显示紧凑 Results 视图中隐藏的 Attempt。 |
|
|
127
150
|
| `--source` | `niceeval show` | boolean | 显示一个 Attempt 已捕获的 source facts。 |
|
|
128
151
|
| `--execution` | `niceeval show` | boolean | 显示一个 Attempt 的有界 execution outline。 |
|
|
152
|
+
| `--actor` | `niceeval show` | string | Filter execution events by exact actor ID. |
|
|
153
|
+
| `--type` | `niceeval show` | string | Filter execution events by exact event type. |
|
|
154
|
+
| `--continuation` | `niceeval show` | string | Read the next execution page with the same filters. |
|
|
129
155
|
| `--timing` | `niceeval show` | boolean | 显示一个 Attempt 已捕获的 timing activities。 |
|
|
130
156
|
| `--usage` | `niceeval show` | boolean | 显示一个 Attempt 已捕获的 usage totals。 |
|
|
131
157
|
| `--diff` | `niceeval show` | boolean | 显示一个 Attempt 已捕获的文件变更。 |
|
|
@@ -156,5 +182,3 @@ View 只读取项目 canonical `.niceeval/record.sqlite`。新 publication 出
|
|
|
156
182
|
| `--help` | `niceeval list` | boolean | 打印该命令的帮助。 |
|
|
157
183
|
|
|
158
184
|
{/* GENERATED:END cli-flags */}
|
|
159
|
-
|
|
160
|
-
`query`、`show` 与 `view` 共享闭合的 Inspection operation 结果,但不共享 formatter、路由、组件、主题或呈现 schema。
|
|
@@ -104,33 +104,65 @@ export default defineExperiment({
|
|
|
104
104
|
#### `app`
|
|
105
105
|
|
|
106
106
|
```ts
|
|
107
|
-
readonly app:
|
|
107
|
+
readonly app: MatchContext<Context>;
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
#### `check`
|
|
111
111
|
|
|
112
112
|
```ts
|
|
113
|
-
readonly check: AssertionCheck<"polymorphic">;
|
|
113
|
+
readonly check: AssertionCheck<"polymorphic", Context>;
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
### `AdapterCleanupContext`
|
|
117
117
|
|
|
118
|
+
#### `timeoutMs`
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
readonly timeoutMs: number;
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
整个清理窗口的固定毫秒预算,不为每个回调续期。
|
|
125
|
+
|
|
126
|
+
#### `deadlineAt`
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
readonly deadlineAt: number;
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
清理窗口实际开始时确定的 Unix 毫秒截止时间。
|
|
133
|
+
|
|
118
134
|
#### `signal`
|
|
119
135
|
|
|
120
136
|
```ts
|
|
121
137
|
readonly signal: AbortSignal;
|
|
122
138
|
```
|
|
123
139
|
|
|
124
|
-
|
|
140
|
+
独立于执行信号;整个 Adapter 清理窗口截止时中止。
|
|
125
141
|
|
|
126
142
|
### `AdapterCreateContext`
|
|
127
143
|
|
|
144
|
+
#### `models`
|
|
145
|
+
|
|
146
|
+
```ts
|
|
147
|
+
readonly models: ResolvedModelSlots;
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Frozen application model selections for this Attempt.
|
|
151
|
+
|
|
128
152
|
#### `recordUsage`
|
|
129
153
|
|
|
130
154
|
```ts
|
|
131
155
|
recordUsage(input: import("./adapter-usage.ts").AdapterUsageInput): void;
|
|
132
156
|
```
|
|
133
157
|
|
|
158
|
+
#### `sealUsage`
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
sealUsage(input: import("./adapter-usage.ts").AdapterUsageSeal): void;
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Close application usage admission and declare whether the recorded collection is complete.
|
|
165
|
+
|
|
134
166
|
#### `attach`
|
|
135
167
|
|
|
136
168
|
```ts
|
|
@@ -172,10 +204,10 @@ readonly attempt: number;
|
|
|
172
204
|
#### `signal`
|
|
173
205
|
|
|
174
206
|
```ts
|
|
175
|
-
readonly signal:
|
|
207
|
+
readonly signal: AttemptSignal;
|
|
176
208
|
```
|
|
177
209
|
|
|
178
|
-
Attempt
|
|
210
|
+
Attempt 执行信号;reason 区分 timeout 与 cancelled,不用于 cleanup 窗口。
|
|
179
211
|
|
|
180
212
|
#### `model`
|
|
181
213
|
|