niceeval 0.13.3 → 0.13.4-canary.39
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 +5 -5
- package/dist/agents/index.cjs +2 -2
- package/dist/agents/index.cjs.map +1 -1
- package/dist/agents/project.json +6 -0
- package/dist/agents/streaming.cjs.map +1 -1
- package/dist/agents/types.cjs.map +1 -1
- package/dist/agents/types.d.cts +1 -1
- package/dist/agents/types.d.mts +1 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/analysis/bindings.d.cts +8 -8
- package/dist/analysis/bindings.d.mts +8 -8
- package/dist/analysis/bindings.d.ts +8 -8
- package/dist/analysis/contracts.cjs.map +1 -1
- package/dist/analysis/contracts.d.cts +8 -19
- package/dist/analysis/contracts.d.mts +8 -19
- package/dist/analysis/contracts.d.ts +8 -19
- package/dist/analysis/experiment-groups.cjs +7 -14
- package/dist/analysis/experiment-groups.cjs.map +1 -1
- package/dist/analysis/index.cjs.map +1 -1
- package/dist/analysis/index.d.cts +1 -1
- package/dist/analysis/index.d.mts +1 -1
- package/dist/analysis/index.d.ts +1 -1
- package/dist/cli/application.cjs +4 -13
- package/dist/cli/application.cjs.map +1 -1
- package/dist/cli/application.d.cts +62 -59
- package/dist/cli/application.d.mts +62 -59
- package/dist/cli/application.d.ts +62 -59
- package/dist/cli/application.js +6 -12
- package/dist/cli/bootstrap.cjs +28 -2
- package/dist/cli/bootstrap.cjs.map +1 -1
- package/dist/cli/contribution.cjs +185 -0
- package/dist/cli/contribution.cjs.map +1 -0
- package/dist/cli/contribution.d.cts +55 -0
- package/dist/cli/contribution.d.mts +55 -0
- package/dist/cli/contribution.d.ts +55 -0
- package/dist/cli/contribution.js +20 -0
- package/dist/cli/contribution.js.map +1 -0
- package/dist/cli/node-application.cjs +119 -87
- package/dist/cli/node-application.cjs.map +1 -1
- package/dist/cli/node-application.d.cts +2 -8
- package/dist/cli/node-application.d.mts +2 -8
- package/dist/cli/node-application.d.ts +2 -8
- package/dist/cli/node-application.js +12 -22
- package/dist/cli/program.cjs +87 -2756
- package/dist/cli/program.cjs.map +1 -1
- package/dist/cli/program.d.cts +11 -332
- package/dist/cli/program.d.mts +11 -332
- package/dist/cli/program.d.ts +11 -332
- package/dist/cli/program.js +4 -28
- package/dist/cli.cjs +0 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +0 -1
- package/dist/cli.d.mts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +6 -14
- package/dist/define.cjs +1 -1
- package/dist/define.cjs.map +1 -1
- package/dist/docker/cache-administration.cjs +8 -0
- package/dist/docker/cache-administration.cjs.map +1 -0
- package/dist/docker/cache-administration.d.cts +33 -0
- package/dist/docker/cache-administration.d.mts +33 -0
- package/dist/docker/cache-administration.d.ts +33 -0
- package/dist/docker/cache-administration.js +6 -0
- package/dist/docker/cache-administration.js.map +1 -0
- package/dist/docker/cache-live.cjs +27 -0
- package/dist/docker/cache-live.cjs.map +1 -0
- package/dist/docker/cache-live.d.cts +3 -0
- package/dist/docker/cache-live.d.mts +3 -0
- package/dist/docker/cache-live.d.ts +3 -0
- package/dist/docker/cache-live.js +6 -0
- package/dist/docker/cache-live.js.map +1 -0
- package/dist/docker/cli/contribution.cjs +223 -0
- package/dist/docker/cli/contribution.cjs.map +1 -0
- package/dist/docker/cli/contribution.d.cts +48 -0
- package/dist/docker/cli/contribution.d.mts +48 -0
- package/dist/docker/cli/contribution.d.ts +48 -0
- package/dist/docker/cli/contribution.js +8 -0
- package/dist/docker/cli/contribution.js.map +1 -0
- package/dist/eval/cli/contribution.cjs +62 -0
- package/dist/eval/cli/contribution.cjs.map +1 -0
- package/dist/eval/cli/contribution.d.cts +21 -0
- package/dist/eval/cli/contribution.d.mts +21 -0
- package/dist/eval/cli/contribution.d.ts +21 -0
- package/dist/eval/cli/contribution.js +8 -0
- package/dist/eval/cli/contribution.js.map +1 -0
- package/dist/eval/host/index.cjs +23 -0
- package/dist/eval/host/index.cjs.map +1 -0
- package/dist/eval/host/index.d.cts +27 -0
- package/dist/eval/host/index.d.mts +27 -0
- package/dist/eval/host/index.d.ts +27 -0
- package/dist/eval/host/index.js +8 -0
- package/dist/eval/host/index.js.map +1 -0
- package/dist/eval/host/index.mjs +8 -0
- package/dist/eval/host/index.mjs.map +1 -0
- package/dist/experiment/host/cli/contribution.cjs +835 -0
- package/dist/experiment/host/cli/contribution.cjs.map +1 -0
- package/dist/experiment/host/cli/contribution.d.cts +329 -0
- package/dist/experiment/host/cli/contribution.d.mts +329 -0
- package/dist/experiment/host/cli/contribution.d.ts +329 -0
- package/dist/experiment/host/cli/contribution.js +22 -0
- package/dist/experiment/host/cli/contribution.js.map +1 -0
- package/dist/experiment/host/cli/index.cjs +9 -0
- package/dist/experiment/host/cli/index.cjs.map +1 -0
- package/dist/experiment/host/cli/index.d.cts +2 -0
- package/dist/experiment/host/cli/index.d.mts +2 -0
- package/dist/experiment/host/cli/index.d.ts +2 -0
- package/dist/experiment/host/cli/index.js +10 -0
- package/dist/experiment/host/cli/index.js.map +1 -0
- package/dist/experiment/host/cli/terminal.cjs +15 -0
- package/dist/experiment/host/cli/terminal.cjs.map +1 -0
- package/dist/experiment/host/cli/terminal.d.cts +14 -0
- package/dist/experiment/host/cli/terminal.d.mts +14 -0
- package/dist/experiment/host/cli/terminal.d.ts +14 -0
- package/dist/experiment/host/cli/terminal.js +8 -0
- package/dist/experiment/host/cli/terminal.js.map +1 -0
- package/dist/experiment/host/index.cjs +35 -58
- package/dist/experiment/host/index.cjs.map +1 -1
- package/dist/experiment/host/index.d.cts +5 -79
- package/dist/experiment/host/index.d.mts +5 -79
- package/dist/experiment/host/index.d.ts +5 -79
- package/dist/experiment/host/index.js +4 -2
- package/dist/experiment/host/index.mjs +4 -2
- package/dist/experiment/host/operations.cjs +678 -0
- package/dist/experiment/host/operations.cjs.map +1 -0
- package/dist/experiment/host/operations.d.cts +19 -0
- package/dist/experiment/host/operations.d.mts +19 -0
- package/dist/experiment/host/operations.d.ts +19 -0
- package/dist/experiment/host/operations.js +24 -0
- package/dist/experiment/host/operations.js.map +1 -0
- package/dist/experiment/host/presentation.cjs +81 -0
- package/dist/experiment/host/presentation.cjs.map +1 -0
- package/dist/experiment/host/presentation.d.cts +9 -0
- package/dist/experiment/host/presentation.d.mts +9 -0
- package/dist/experiment/host/presentation.d.ts +9 -0
- package/dist/experiment/host/presentation.js +8 -0
- package/dist/experiment/host/presentation.js.map +1 -0
- package/dist/experiment/host/teardown.cjs +394 -0
- package/dist/experiment/host/teardown.cjs.map +1 -0
- package/dist/experiment/host/teardown.d.cts +5 -0
- package/dist/experiment/host/teardown.d.mts +5 -0
- package/dist/experiment/host/teardown.d.ts +5 -0
- package/dist/experiment/host/teardown.js +8 -0
- package/dist/experiment/host/teardown.js.map +1 -0
- package/dist/experiment/host/types.cjs +9 -0
- package/dist/experiment/host/types.cjs.map +1 -0
- package/dist/experiment/host/types.d.cts +423 -0
- package/dist/experiment/host/types.d.mts +423 -0
- package/dist/experiment/host/types.d.ts +423 -0
- package/dist/experiment/host/types.js +6 -0
- package/dist/experiment/host/types.js.map +1 -0
- package/dist/i18n/en.cjs +8 -50
- package/dist/i18n/en.cjs.map +1 -1
- package/dist/i18n/en.d.cts +2 -6
- package/dist/i18n/en.d.mts +2 -6
- package/dist/i18n/en.d.ts +2 -6
- package/dist/o11y/project.json +6 -0
- package/dist/project/cli/contribution.cjs +66 -0
- package/dist/project/cli/contribution.cjs.map +1 -0
- package/dist/project/cli/contribution.d.cts +17 -0
- package/dist/project/cli/contribution.d.mts +17 -0
- package/dist/project/cli/contribution.d.ts +17 -0
- package/dist/project/cli/contribution.js +8 -0
- package/dist/project/cli/contribution.js.map +1 -0
- package/dist/project/cli/index.cjs +7 -0
- package/dist/project/cli/index.cjs.map +1 -0
- package/dist/project/cli/index.d.cts +1 -0
- package/dist/project/cli/index.d.mts +1 -0
- package/dist/project/cli/index.d.ts +1 -0
- package/dist/project/cli/index.js +8 -0
- package/dist/project/cli/index.js.map +1 -0
- package/dist/project/host/index.cjs +11 -0
- package/dist/project/host/index.cjs.map +1 -0
- package/dist/project/host/index.d.cts +4 -0
- package/dist/project/host/index.d.mts +4 -0
- package/dist/project/host/index.d.ts +4 -0
- package/dist/project/host/index.js +14 -0
- package/dist/project/host/index.js.map +1 -0
- package/dist/project/host/index.mjs +14 -0
- package/dist/project/host/index.mjs.map +1 -0
- package/dist/project/host.cjs +59 -0
- package/dist/project/host.cjs.map +1 -0
- package/dist/project/host.d.cts +17 -0
- package/dist/project/host.d.mts +17 -0
- package/dist/project/host.d.ts +17 -0
- package/dist/project/host.js +6 -0
- package/dist/project/host.js.map +1 -0
- package/dist/project/index.cjs +11 -0
- package/dist/project/index.cjs.map +1 -0
- package/dist/project/index.d.cts +4 -0
- package/dist/project/index.d.mts +4 -0
- package/dist/project/index.d.ts +4 -0
- package/dist/project/index.js +14 -0
- package/dist/project/index.js.map +1 -0
- package/dist/project/node.cjs +91 -0
- package/dist/project/node.cjs.map +1 -0
- package/dist/project/node.d.cts +6 -0
- package/dist/project/node.d.mts +6 -0
- package/dist/project/node.d.ts +6 -0
- package/dist/project/node.js +12 -0
- package/dist/project/node.js.map +1 -0
- package/dist/project/services.cjs +17 -0
- package/dist/project/services.cjs.map +1 -0
- package/dist/project/services.d.cts +47 -0
- package/dist/project/services.d.mts +47 -0
- package/dist/project/services.d.ts +47 -0
- package/dist/project/services.js +12 -0
- package/dist/project/services.js.map +1 -0
- package/dist/project/templates.cjs +28 -0
- package/dist/project/templates.cjs.map +1 -0
- package/dist/project/templates.d.cts +4 -0
- package/dist/project/templates.d.mts +4 -0
- package/dist/project/templates.d.ts +4 -0
- package/dist/project/templates.js +12 -0
- package/dist/project/templates.js.map +1 -0
- package/dist/project.json +6 -0
- package/dist/record/family/catalog.d.cts +10 -10
- package/dist/record/family/catalog.d.mts +10 -10
- package/dist/record/family/catalog.d.ts +10 -10
- package/dist/record/family/file-changes.d.cts +8 -8
- package/dist/record/family/file-changes.d.mts +8 -8
- package/dist/record/family/file-changes.d.ts +8 -8
- package/dist/record/host/cli/contribution.cjs +206 -0
- package/dist/record/host/cli/contribution.cjs.map +1 -0
- package/dist/record/host/cli/contribution.d.cts +32 -0
- package/dist/record/host/cli/contribution.d.mts +32 -0
- package/dist/record/host/cli/contribution.d.ts +32 -0
- package/dist/record/host/cli/contribution.js +10 -0
- package/dist/record/host/cli/contribution.js.map +1 -0
- package/dist/record/host/cli/index.cjs +8 -0
- package/dist/record/host/cli/index.cjs.map +1 -0
- package/dist/record/host/cli/index.d.cts +1 -0
- package/dist/record/host/cli/index.d.mts +1 -0
- package/dist/record/host/cli/index.d.ts +1 -0
- package/dist/record/host/cli/index.js +10 -0
- package/dist/record/host/cli/index.js.map +1 -0
- package/dist/record/host/cli/presentation.cjs +122 -0
- package/dist/record/host/cli/presentation.cjs.map +1 -0
- package/dist/record/host/cli/presentation.d.cts +7 -0
- package/dist/record/host/cli/presentation.d.mts +7 -0
- package/dist/record/host/cli/presentation.d.ts +7 -0
- package/dist/record/host/cli/presentation.js +12 -0
- package/dist/record/host/cli/presentation.js.map +1 -0
- package/dist/record/host/index.cjs.map +1 -1
- package/dist/record/host/index.d.cts +1 -1
- package/dist/record/host/index.d.mts +1 -1
- package/dist/record/host/index.d.ts +1 -1
- package/dist/record/host/runtime.cjs +184 -1
- package/dist/record/host/runtime.cjs.map +1 -1
- package/dist/record/host/types.cjs.map +1 -1
- package/dist/record/host/types.d.cts +120 -0
- package/dist/record/host/types.d.mts +120 -0
- package/dist/record/host/types.d.ts +120 -0
- package/dist/record/project.json +6 -0
- package/dist/report/assets/styles.css +80 -0
- package/dist/report/cli/contribution.cjs +325 -0
- package/dist/report/cli/contribution.cjs.map +1 -0
- package/dist/report/cli/contribution.d.cts +143 -0
- package/dist/report/cli/contribution.d.mts +143 -0
- package/dist/report/cli/contribution.d.ts +143 -0
- package/dist/report/cli/contribution.js +12 -0
- package/dist/report/cli/contribution.js.map +1 -0
- package/dist/report/client-dist/app.js +9 -9
- package/dist/report/components/attempt-detail/content.cjs +1 -1
- package/dist/report/components/attempt-detail/content.cjs.map +1 -1
- package/dist/report/components/entity-lists/compute.cjs +5 -0
- package/dist/report/components/entity-lists/compute.cjs.map +1 -1
- package/dist/report/components/entity-lists/compute.d.cts +2 -0
- package/dist/report/components/entity-lists/compute.d.mts +2 -0
- package/dist/report/components/entity-lists/compute.d.ts +2 -0
- package/dist/report/components/entity-lists/content.cjs +35 -12
- package/dist/report/components/entity-lists/content.cjs.map +1 -1
- package/dist/report/components/entity-lists/index.cjs +0 -3
- package/dist/report/components/entity-lists/index.cjs.map +1 -1
- package/dist/report/components/summaries/index.cjs +2 -4
- package/dist/report/components/summaries/index.cjs.map +1 -1
- package/dist/report/definition/cell.cjs +7 -2
- package/dist/report/definition/cell.cjs.map +1 -1
- package/dist/report/definition/cell.d.cts +2 -0
- package/dist/report/definition/cell.d.mts +2 -0
- package/dist/report/definition/cell.d.ts +2 -0
- package/dist/report/definition/primitives/assertion-evidence.cjs +190 -4
- package/dist/report/definition/primitives/assertion-evidence.cjs.map +1 -1
- package/dist/report/definition/primitives/assertion-evidence.d.cts +4 -0
- package/dist/report/definition/primitives/assertion-evidence.d.mts +4 -0
- package/dist/report/definition/primitives/assertion-evidence.d.ts +4 -0
- package/dist/report/execution/machine.cjs +2 -3
- package/dist/report/execution/machine.cjs.map +1 -1
- package/dist/report/execution/machine.d.cts +11 -8
- package/dist/report/execution/machine.d.mts +11 -8
- package/dist/report/execution/machine.d.ts +11 -8
- package/dist/report/host/from-record.cjs +13 -8
- package/dist/report/host/from-record.cjs.map +1 -1
- package/dist/report/host/index.cjs +5 -1
- package/dist/report/host/index.cjs.map +1 -1
- package/dist/report/host/index.d.cts +1 -0
- package/dist/report/host/index.d.mts +1 -0
- package/dist/report/host/index.d.ts +1 -0
- package/dist/report/host/index.js +8 -2
- package/dist/report/host/index.mjs +8 -2
- package/dist/report/host/machine.cjs +23 -22
- package/dist/report/host/machine.cjs.map +1 -1
- package/dist/report/host/machine.d.cts +1 -1
- package/dist/report/host/machine.d.mts +1 -1
- package/dist/report/host/machine.d.ts +1 -1
- package/dist/report/host/node/loader.cjs +4 -2
- package/dist/report/host/node/loader.cjs.map +1 -1
- package/dist/report/host/node/loader.d.cts +3 -1
- package/dist/report/host/node/loader.d.mts +3 -1
- package/dist/report/host/node/loader.d.ts +3 -1
- package/dist/report/host/node.cjs +44 -9
- package/dist/report/host/node.cjs.map +1 -1
- package/dist/report/host/node.d.cts +13 -3
- package/dist/report/host/node.d.mts +13 -3
- package/dist/report/host/node.d.ts +13 -3
- package/dist/report/host/node.js +44 -32
- package/dist/report/host/operations.cjs +14 -0
- package/dist/report/host/operations.cjs.map +1 -0
- package/dist/report/host/operations.d.cts +39 -0
- package/dist/report/host/operations.d.mts +39 -0
- package/dist/report/host/operations.d.ts +39 -0
- package/dist/report/host/operations.js +10 -0
- package/dist/report/host/operations.js.map +1 -0
- package/dist/report/model/chart/plot.cjs +1 -1
- package/dist/report/model/chart/plot.cjs.map +1 -1
- package/dist/report/model/locale.cjs +4 -0
- package/dist/report/model/locale.cjs.map +1 -1
- package/dist/report/model/locale.d.cts +3 -1
- package/dist/report/model/locale.d.mts +3 -1
- package/dist/report/model/locale.d.ts +3 -1
- package/dist/report/react/styles.css +80 -0
- package/dist/runner/build-preparation.cjs +5 -5
- package/dist/runner/build-preparation.cjs.map +1 -1
- package/dist/runner/build-preparation.d.cts +2 -3
- package/dist/runner/build-preparation.d.mts +2 -3
- package/dist/runner/build-preparation.d.ts +2 -3
- package/dist/runner/feedback/coordinator.cjs +18 -15
- package/dist/runner/feedback/coordinator.cjs.map +1 -1
- package/dist/runner/feedback/coordinator.d.cts +6 -0
- package/dist/runner/feedback/coordinator.d.mts +6 -0
- package/dist/runner/feedback/coordinator.d.ts +6 -0
- package/dist/runner/ledger.cjs +3 -13
- package/dist/runner/ledger.cjs.map +1 -1
- package/dist/runner/ledger.d.cts +1 -3
- package/dist/runner/ledger.d.mts +1 -3
- package/dist/runner/ledger.d.ts +1 -3
- package/dist/runner/run.cjs +63 -18
- package/dist/runner/run.cjs.map +1 -1
- package/dist/runner/session.cjs +10 -0
- package/dist/runner/session.cjs.map +1 -1
- package/dist/runner/session.d.cts +25 -0
- package/dist/runner/session.d.mts +25 -0
- package/dist/runner/session.d.ts +25 -0
- package/dist/runner/types.cjs.map +1 -1
- package/dist/runner/types.d.cts +1 -2
- package/dist/runner/types.d.mts +1 -2
- package/dist/runner/types.d.ts +1 -2
- package/dist/sandbox/build-coordinator.cjs +38 -19
- package/dist/sandbox/build-coordinator.cjs.map +1 -1
- package/dist/sandbox/build-coordinator.d.cts +47 -7
- package/dist/sandbox/build-coordinator.d.mts +47 -7
- package/dist/sandbox/build-coordinator.d.ts +47 -7
- package/dist/sandbox/build-coordinator.js +8 -4
- package/dist/sandbox/cli/contribution.cjs +128 -0
- package/dist/sandbox/cli/contribution.cjs.map +1 -0
- package/dist/sandbox/cli/contribution.d.cts +71 -0
- package/dist/sandbox/cli/contribution.d.mts +71 -0
- package/dist/sandbox/cli/contribution.d.ts +71 -0
- package/dist/sandbox/cli/contribution.js +8 -0
- package/dist/sandbox/cli/contribution.js.map +1 -0
- package/dist/sandbox/cli-commands.cjs +14 -21
- package/dist/sandbox/cli-commands.cjs.map +1 -1
- package/dist/sandbox/cli-commands.d.cts +12 -8
- package/dist/sandbox/cli-commands.d.mts +12 -8
- package/dist/sandbox/cli-commands.d.ts +12 -8
- package/dist/sandbox/compose.cjs +22 -2
- package/dist/sandbox/compose.cjs.map +1 -1
- package/dist/sandbox/compose.d.cts +1 -1
- package/dist/sandbox/compose.d.mts +1 -1
- package/dist/sandbox/compose.d.ts +1 -1
- package/dist/sandbox/docker-profile/cli.cjs +13 -9
- package/dist/sandbox/docker-profile/cli.cjs.map +1 -1
- package/dist/sandbox/docker-profile/cli.d.cts +2 -0
- package/dist/sandbox/docker-profile/cli.d.mts +2 -0
- package/dist/sandbox/docker-profile/cli.d.ts +2 -0
- package/dist/sandbox/docker-profile/runtime.cjs +68 -7
- package/dist/sandbox/docker-profile/runtime.cjs.map +1 -1
- package/dist/sandbox/docker-profile/runtime.d.cts +19 -1
- package/dist/sandbox/docker-profile/runtime.d.mts +19 -1
- package/dist/sandbox/docker-profile/runtime.d.ts +19 -1
- package/dist/sandbox/docker-profile/runtime.js +10 -8
- package/dist/sandbox/docker-profile/schema.cjs +68 -19
- package/dist/sandbox/docker-profile/schema.cjs.map +1 -1
- package/dist/sandbox/docker-profile/schema.d.cts +23 -9
- package/dist/sandbox/docker-profile/schema.d.mts +23 -9
- package/dist/sandbox/docker-profile/schema.d.ts +23 -9
- package/dist/sandbox/docker-task-build-cache.cjs +532 -0
- package/dist/sandbox/docker-task-build-cache.cjs.map +1 -0
- package/dist/sandbox/docker-task-build-cache.d.cts +68 -0
- package/dist/sandbox/docker-task-build-cache.d.mts +68 -0
- package/dist/sandbox/docker-task-build-cache.d.ts +68 -0
- package/dist/sandbox/docker-task-build-cache.js +20 -0
- package/dist/sandbox/docker-task-build-cache.js.map +1 -0
- package/dist/sandbox/docker.cjs +50 -0
- package/dist/sandbox/docker.cjs.map +1 -1
- package/dist/sandbox/docker.d.cts +15 -0
- package/dist/sandbox/docker.d.mts +15 -0
- package/dist/sandbox/docker.d.ts +15 -0
- package/dist/sandbox/dockerfile-build.cjs +55 -5
- package/dist/sandbox/dockerfile-build.cjs.map +1 -1
- package/dist/sandbox/dockerfile-build.d.cts +2 -2
- package/dist/sandbox/dockerfile-build.d.mts +2 -2
- package/dist/sandbox/dockerfile-build.d.ts +2 -2
- package/dist/sandbox/index.cjs +5 -3
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.d.cts +4 -3
- package/dist/sandbox/index.d.mts +4 -3
- package/dist/sandbox/index.d.ts +4 -3
- package/dist/sandbox/index.js +16 -14
- package/dist/sandbox/index.mjs +16 -14
- package/dist/sandbox/keep.cjs +1 -3
- package/dist/sandbox/keep.cjs.map +1 -1
- package/dist/sandbox/layer.cjs +70 -79
- package/dist/sandbox/layer.cjs.map +1 -1
- package/dist/sandbox/layer.d.cts +6 -12
- package/dist/sandbox/layer.d.mts +6 -12
- package/dist/sandbox/layer.d.ts +6 -12
- package/dist/sandbox/layer.js +16 -18
- package/dist/sandbox/ledger-paths.cjs +4 -18
- package/dist/sandbox/ledger-paths.cjs.map +1 -1
- package/dist/sandbox/ledger-paths.d.cts +3 -13
- package/dist/sandbox/ledger-paths.d.mts +3 -13
- package/dist/sandbox/ledger-paths.d.ts +3 -13
- package/dist/sandbox/ledger-paths.js +4 -8
- package/dist/sandbox/registry.cjs +1 -1
- package/dist/sandbox/registry.cjs.map +1 -1
- package/dist/sandbox/runtime.cjs +27 -37
- package/dist/sandbox/runtime.cjs.map +1 -1
- package/dist/sandbox/runtime.d.cts +1 -2
- package/dist/sandbox/runtime.d.mts +1 -2
- package/dist/sandbox/runtime.d.ts +1 -2
- package/dist/sandbox/runtime.js +6 -8
- package/dist/sandbox/types.cjs.map +1 -1
- package/dist/sandbox/types.d.cts +3 -3
- package/dist/sandbox/types.d.mts +3 -3
- package/dist/sandbox/types.d.ts +3 -3
- package/dist/sources/project.json +6 -0
- package/dist/vendor/remark/remark-gfm.cjs +72 -72
- package/dist/vendor/remark/remark-gfm.cjs.map +1 -1
- package/dist/vendor/remark/remark-parse.cjs +54 -54
- package/dist/vendor/remark/remark-parse.cjs.map +1 -1
- package/dist/vendor/remark/remark.cjs +125 -125
- package/dist/vendor/remark/remark.cjs.map +2 -2
- package/docs-site/zh/README.md +1 -1
- package/docs-site/zh/explanation/assert.mdx +4 -0
- package/docs-site/zh/explanation/judge.mdx +40 -9
- package/docs-site/zh/reference/cli.mdx +67 -43
- package/docs-site/zh/reference/define-agent.mdx +2 -2
- package/docs-site/zh/reference/report-components.mdx +4 -3
- package/docs-site/zh/troubleshooting/debug-sandbox.mdx +6 -0
- package/docs-site/zh/troubleshooting/debugging.mdx +28 -1
- package/docs-site/zh/tutorials/agent-feedback-loop.mdx +4 -2
- package/docs-site/zh/tutorials/concurrency.mdx +2 -2
- package/docs-site/zh/tutorials/custom-reports.mdx +175 -9
- package/docs-site/zh/tutorials/docker-in-docker.mdx +52 -7
- package/docs-site/zh/tutorials/eval-groups.mdx +1 -2
- package/docs-site/zh/tutorials/evaluation-kinds.mdx +39 -6
- package/docs-site/zh/tutorials/nixos-managed-dind.mdx +14 -5
- package/docs-site/zh/tutorials/sandbox-providers.mdx +1 -28
- package/docs-site/zh/tutorials/sandbox-reuse.mdx +1 -1
- package/docs-site/zh/tutorials/viewing-results.mdx +2 -0
- package/package.json +24 -19
- package/README.md +0 -176
- package/README.zh.md +0 -176
- package/dist/cli/record.cjs +0 -246
- package/dist/cli/record.cjs.map +0 -1
- package/dist/cli/record.d.cts +0 -40
- package/dist/cli/record.d.mts +0 -40
- package/dist/cli/record.d.ts +0 -40
- package/dist/cli/record.js +0 -10
- package/dist/cli/record.js.map +0 -1
- package/dist/sandbox/local.cjs +0 -361
- package/dist/sandbox/local.cjs.map +0 -1
- package/dist/sandbox/local.d.cts +0 -80
- package/dist/sandbox/local.d.mts +0 -80
- package/dist/sandbox/local.d.ts +0 -80
- package/dist/sandbox/local.js +0 -6
- package/dist/sandbox/local.js.map +0 -1
package/docs-site/zh/README.md
CHANGED
|
@@ -42,4 +42,4 @@ Technical Reference 不等于整页都由生成器拼出来。页面仍可手写
|
|
|
42
42
|
- `troubleshooting/debugging.mdx` 与 `troubleshooting/debug-sandbox.mdx` 从失败症状出发,目录独立,在导航中归入 `Tutorials` 标签下的“问题排查”。
|
|
43
43
|
- `tutorials/sandbox-providers.mdx` 按 How-to 写,因为主任务是选择并配置 Provider。若以后字段表继续增长,再拆出独立 Provider Reference。
|
|
44
44
|
|
|
45
|
-
新增或移动页面时,同时更新 `docs-site/docs.json` 和旧路径 redirect。校验命令以 [`../AGENTS.md`](../AGENTS.md) 为准。
|
|
45
|
+
新增或移动页面时,同时更新 `apps/docs-site/docs.json` 和旧路径 redirect。校验命令以 [`../AGENTS.md`](../AGENTS.md) 为准。
|
|
@@ -30,6 +30,10 @@ t.check(turn.data, matches(OrderSchema));
|
|
|
30
30
|
t.check(turn.message.length, satisfies("回复不是空文本", (length) => length > 0));
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
`matched` 和 `mismatched` 只说明候选值是否满足当前 Match。它们不能单独证明这条规则刚好覆盖任务允许的全部正确结果。
|
|
34
|
+
|
|
35
|
+
`equals(expected)` 比较值的深相等;候选值是字符串时,它要求完全相同的字符串。如果任务接受多种等价表示,先把产物解析或归一化为任务关心的值,再选择能覆盖这些结果的 Match。只有字面表示本身属于任务要求时,才用精确字符串比较。
|
|
36
|
+
|
|
33
37
|
## 作用域 Assertion
|
|
34
38
|
|
|
35
39
|
作用域方法在调用时直接登记 Boolean Assertion。接收者决定证据范围:`turn.*` 只看该不可变 Turn,`session.*` 看该 Session 调用点之前的前缀,根 `t.*` 看调用点时所有已启动 Session 的 vector cut。
|
|
@@ -5,7 +5,8 @@ description: "用 t.judge 和 turn.judge 直接登记 Judge Assertion,再在
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Judge 用独立裁判模型评估难以用精确 Match 表达的质量,例如事实一致性、摘要忠实度和说明是否清楚。
|
|
8
|
-
它的三个 recipe 都直接登记 measurement Assertion
|
|
8
|
+
它的三个 recipe 都直接登记 measurement Assertion,measurement 是 `[0, 1]` 内的有限数字。这个区间是统一的数据格式,不表示每个 recipe 都会给任意连续分数。
|
|
9
|
+
调用即登记;handle 只配置同一条 Assertion。
|
|
9
10
|
|
|
10
11
|
```ts
|
|
11
12
|
const turn = await t.send("用两句话说明这项变更的风险。");
|
|
@@ -16,11 +17,13 @@ turn.judge.autoevals.closedQA("回答是否清楚说明了风险?")
|
|
|
16
17
|
|
|
17
18
|
## 三个 recipe
|
|
18
19
|
|
|
19
|
-
| Recipe | 用途 |
|
|
20
|
-
|
|
21
|
-
| `closedQA(question, material)` | 判断输出是否满足一条开放式标准 |
|
|
22
|
-
| `factuality(reference, material)` | 判断输出是否与参考文本一致 |
|
|
23
|
-
| `summarizes(source, material)` | 判断输出是否忠实总结原文 |
|
|
20
|
+
| Recipe | 用途 | 当前可能的 measurement |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| `closedQA(question, material)` | 判断输出是否满足一条开放式标准 | `0` 或 `1` |
|
|
23
|
+
| `factuality(reference, material)` | 判断输出是否与参考文本一致 | `0`、`0.4`、`0.6` 或 `1` |
|
|
24
|
+
| `summarizes(source, material)` | 判断输出是否忠实总结原文 | `0` 或 `1` |
|
|
25
|
+
|
|
26
|
+
`factuality` 的中间档位有固定含义:提交内容是参考答案的一致子集时为 `0.4`,是一致超集时为 `0.6`。它不是按事实条数计算覆盖率。只回答一个事实和回答两个事实,都可能落在同一个 `0.4` 档位。
|
|
24
27
|
|
|
25
28
|
`turn.judge.autoevals.*` 已经绑定该 Turn 的原始用户输入和助手输出,因此只传标准:
|
|
26
29
|
|
|
@@ -42,6 +45,25 @@ t.judge.autoevals.closedQA("文档是否说明了安装和回滚?", {
|
|
|
42
45
|
|
|
43
46
|
文件先经公开 Sandbox API 读取成字符串。Judge API 不接收路径、`{ on }`、隐式最后一条输入或单次模型覆盖。`session.judge` 也不是公开 API;跨 session 的材料由作者显式组合。
|
|
44
47
|
|
|
48
|
+
## 一条标准对应一个 Judge
|
|
49
|
+
|
|
50
|
+
先判断评分标准能否独立成立。可以独立判断、独立计权或需要单独显示失败原因的要求,分别登记 Judge Assertion。
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
turn.judge.autoevals.closedQA("回答是否说明了兼容性风险?")
|
|
54
|
+
.gate(1)
|
|
55
|
+
.label("兼容性风险");
|
|
56
|
+
turn.judge.autoevals.closedQA("回答是否给出了回滚方法?")
|
|
57
|
+
.gate(1)
|
|
58
|
+
.label("回滚方法");
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
不要把独立要求合成“回答是否准确、完整、清楚,并说明风险和回滚?”。一个 `closedQA` 只会给这组要求一个 `0` 或 `1`,报告无法指出是哪一项失败,也无法给各项不同权重。
|
|
62
|
+
|
|
63
|
+
只有标准描述同一个不可分割的整体质量时,才使用一个 Judge。例如“风险说明整体是否清楚”是一个维度;它的 measurement 可以作为这一项的结果。标准中出现“并且”不一定要拆,但如果其中一半可以成立、可以单独给分或失败后需要单独修复,就应该拆。
|
|
64
|
+
|
|
65
|
+
能用确定性证据验证的条件不交给 Judge。命令是否成功、文件是否存在和工具是否调用,分别使用对应的 Match 或 scoped Assertion;Judge 只评价传入文本中的开放式语义。
|
|
66
|
+
|
|
45
67
|
## 声明 capability 和配置
|
|
46
68
|
|
|
47
69
|
只有评估用例声明了 `judge` 才能创建 Judge Assertion:
|
|
@@ -77,7 +99,7 @@ export default defineConfig({
|
|
|
77
99
|
|
|
78
100
|
## 阈值与分数
|
|
79
101
|
|
|
80
|
-
通过制评估用 `.gate(n)` 把 Judge measurement 纳入 failed;`.atLeast(n)` 只记录局部 condition
|
|
102
|
+
通过制评估用 `.gate(n)` 把 Judge measurement 纳入 failed;`.atLeast(n)` 只记录局部 condition。每个必须成立的开放式要求使用一条独立 Judge,并分别设置 gate。这样任何一项失败都会使 Attempt 失败,报告也会保留各自的理由。
|
|
81
103
|
|
|
82
104
|
```ts
|
|
83
105
|
const quality = turn.judge.autoevals.closedQA("回答是否准确且完整?")
|
|
@@ -88,12 +110,21 @@ await quality.orStop();
|
|
|
88
110
|
|
|
89
111
|
`.orStop()` 是同一 handle 的 async barrier。低于阈值时它停止当前 continuation;正常 stop 后 Attempt 仍得到 `failed` Verdict。
|
|
90
112
|
|
|
91
|
-
计分制评估直接调用 `.score(n)`:measurement `m` 贡献 `m * n
|
|
113
|
+
计分制评估直接调用 `.score(n)`:measurement `m` 贡献 `m * n`。这里的 `n` 是这一评分项的权重,不是评估的固定总分。多个独立要求分别调用 `.score(n)`,各项 contribution 再累加。
|
|
92
114
|
|
|
93
115
|
```ts
|
|
94
|
-
turn.judge.autoevals.closedQA("
|
|
116
|
+
turn.judge.autoevals.closedQA("回答是否说明了兼容性风险?")
|
|
117
|
+
.score(8)
|
|
118
|
+
.label("兼容性风险");
|
|
119
|
+
turn.judge.autoevals.closedQA("回答是否给出了回滚方法?")
|
|
120
|
+
.score(12)
|
|
121
|
+
.label("回滚方法");
|
|
95
122
|
```
|
|
96
123
|
|
|
124
|
+
上例两项各自得到 `0` 或 `1`,因此分别贡献 `0/8` 和 `0/12`。如果评价的是一个整体维度,也可以只登记一条 Judge,再用 `.score(n)` 乘这一项的 measurement。例如 `factuality` 得到 `0.4` 且该项 `.score(20)` 时贡献 `8` 分。这个 `0.4` 表示固定的“一致子集”档位,不表示完成了 40% 的独立要求。
|
|
125
|
+
|
|
126
|
+
`.atLeast(n)` 只增加局部 condition,可以单独配置,也可以与 `.score(n)` 同一条 Assertion 共存。它不会改变 contribution,也不会让计分制评估产生 failed Verdict。
|
|
127
|
+
|
|
97
128
|
两种配置都只运行一次 Judge evaluator,写一条 AssertionResult。没有配置 `.score()` 的 Judge Assertion 默认只保存 evaluation。
|
|
98
129
|
|
|
99
130
|
## 配置、预检与失败
|
|
@@ -126,7 +126,7 @@ Human 输出在每条 lane 内固定依次显示 Group before-slot、physical en
|
|
|
126
126
|
|
|
127
127
|
Sandbox materialize 节点会显示 template owner、provider、kind 和安全的 configured locator。`Exact` 只代表原样显示作者配置,不代表 image tag、远端内容或最终实例已经冻结。远端 URL 的凭据、query 与 fragment 会脱敏。Docker image 只有保守的 credential-safe reference(可带标准 `sha256` digest)才显示 `Exact`;URL、非 digest userinfo 或其它不安全语法整项显示 `Opaque`,且不输出原字符串。
|
|
128
128
|
|
|
129
|
-
作者提供的本地 path、`file:` URL
|
|
129
|
+
作者提供的本地 path、`file:` URL 或 Dockerfile file 整项显示 `Opaque`,原路径不会进入输出。env value、credential、stdin、build arg value 和 custom identity 不输出。
|
|
130
130
|
|
|
131
131
|
E2B template name 与 Vercel snapshot ID 是 Provider 管理的任意字符串,因此完整 locator 同样显示 `Opaque`。Human 命令计划在统一终端出口把 C0、C1、ESC、tab 与 carriage return 显示成转义文本,覆盖 template metadata 与 Shell 行。JSON 保留结构化值,并依靠 JSON string escaping。
|
|
132
132
|
|
|
@@ -136,59 +136,83 @@ E2B template name 与 Vercel snapshot ID 是 Provider 管理的任意字符串
|
|
|
136
136
|
|
|
137
137
|
## 常用 flags
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
下表静态读取各命令自有的 option schema 生成,表外的 flag 一律按未知 flag 报错并以非零状态退出。**没有**用于选择 Sandbox provider 的 CLI flag,也没有项目级默认 provider。请在评估用例或 Experiment 上声明 template-bearing `SandboxLayer`,并从 `niceeval/sandbox` 导入下列工厂之一:
|
|
140
140
|
|
|
141
141
|
- `dockerSandbox({ source: { type: "image", image } })`
|
|
142
142
|
- `dockerComposeSandbox({ file, workspaceService })`
|
|
143
143
|
- `dockerSandbox({ source: { type: "dockerfile", context } })`
|
|
144
144
|
- `vercelSandbox({ snapshotId })`
|
|
145
145
|
- `e2bSandbox({ template })`
|
|
146
|
-
- `localSandbox()`
|
|
147
146
|
|
|
148
147
|
{/* GENERATED:BEGIN cli-flags */}
|
|
149
148
|
|
|
150
149
|
{/* 本区块由 pnpm docs:reference 从源码注释生成,勿手改;要改文案,改对应源码的 TSDoc/JSDoc(映射见 scripts/generate-reference.ts) */}
|
|
151
150
|
|
|
152
|
-
| Flag | 类型 | 说明 |
|
|
153
|
-
|
|
154
|
-
| `--
|
|
155
|
-
| `--
|
|
156
|
-
| `--
|
|
157
|
-
| `--
|
|
158
|
-
| `--
|
|
159
|
-
| `--
|
|
160
|
-
| `--
|
|
161
|
-
| `--
|
|
162
|
-
| `--
|
|
163
|
-
| `--
|
|
164
|
-
| `--
|
|
165
|
-
| `--
|
|
166
|
-
| `--
|
|
167
|
-
| `--
|
|
168
|
-
| `--
|
|
169
|
-
| `--
|
|
170
|
-
| `--
|
|
171
|
-
| `--
|
|
172
|
-
| `--
|
|
173
|
-
| `--
|
|
174
|
-
| `--
|
|
175
|
-
| `--
|
|
176
|
-
| `--
|
|
177
|
-
| `--
|
|
178
|
-
| `--
|
|
179
|
-
| `--
|
|
180
|
-
| `--
|
|
181
|
-
| `--
|
|
182
|
-
| `--
|
|
183
|
-
| `--
|
|
184
|
-
| `--
|
|
185
|
-
| `--
|
|
186
|
-
| `--
|
|
187
|
-
| `--
|
|
188
|
-
| `--
|
|
189
|
-
| `--
|
|
190
|
-
| `--
|
|
191
|
-
| `--
|
|
151
|
+
| Flag | 命令 | 类型 | 说明 |
|
|
152
|
+
|---|---|---|---|
|
|
153
|
+
| `--help` | `niceeval` | boolean | 打印根命令索引。 |
|
|
154
|
+
| `--version` | `niceeval` | boolean | 打印当前安装的 NiceEval 版本。 |
|
|
155
|
+
| `--tag` | `niceeval check`、`niceeval exp`、`niceeval exp list` | string | 只选择带有该 tag 的评估用例。 |
|
|
156
|
+
| `--help` | `niceeval check`、`niceeval exp`、`niceeval exp list`、`niceeval exp rename`、`niceeval exp --teardown`、`niceeval debug`、`niceeval accept`、`niceeval session` | boolean | 打印该命令的帮助。 |
|
|
157
|
+
| `--attempts` | `niceeval exp` | number | 让每个选中的评估用例运行指定次数。 |
|
|
158
|
+
| `--max-concurrency` | `niceeval exp` | number | 限制同时执行的 Attempt 数量。 |
|
|
159
|
+
| `--max-build-concurrency` | `niceeval exp` | number | 限制同时准备 Sandbox build 的数量。 |
|
|
160
|
+
| `--timeout` | `niceeval exp` | number | 以毫秒设置每个 Attempt 的超时时间。 |
|
|
161
|
+
| `--budget` | `niceeval exp` | number | 以美元设置本次 Invocation 的预算。 |
|
|
162
|
+
| `--junit` | `niceeval exp` | string | 写出必需的 JUnit 报告。 |
|
|
163
|
+
| `--json` | `niceeval exp` | boolean | 写出该命令的机器文档或事件流。 |
|
|
164
|
+
| `--dry` | `niceeval exp` | boolean | 规划但不创建 Invocation。 |
|
|
165
|
+
| `--rerun`(单独使用为 `failed`) / `--rerun=failed\|all` / `--rerun failed\|all` | `niceeval exp` | `failed` \| `all` | 要求重新运行失败目标或全部目标。 |
|
|
166
|
+
| `--keep-sandbox`(单独使用为 `failed`) / `--keep-sandbox=failed\|all` | `niceeval exp` | `failed` \| `all` | 保留 failed 或全部已结束 Attempt 的 Sandbox。 |
|
|
167
|
+
| `--early-exit` / `--no-early-exit` | `niceeval exp` | boolean | 某次结果通过后停止该评估用例余下的 Attempt。 |
|
|
168
|
+
| `--record` | `niceeval exp`、`niceeval accept` | string | 使用指定的 NiceEval Record root。 |
|
|
169
|
+
| `--json` | `niceeval exp list` | boolean | 写出该命令的机器文档或事件流。 |
|
|
170
|
+
| `--dry` | `niceeval exp rename` | boolean | 预览显式 Experiment 重命名。 |
|
|
171
|
+
| `--json` | `niceeval exp rename` | boolean | 写出该命令的机器文档或事件流。 |
|
|
172
|
+
| `--teardown` | `niceeval exp --teardown` | boolean | 运行显式的 Experiment teardown 恢复。 |
|
|
173
|
+
| `--json` | `niceeval exp --teardown` | boolean | 写出该命令的机器文档或事件流。 |
|
|
174
|
+
| `--recover-shared-state` | `niceeval exp --teardown` | string | 指定要显式恢复的共享状态 key。 |
|
|
175
|
+
| `--owner-token` | `niceeval exp --teardown` | string | 提供准确的共享状态 owner token。 |
|
|
176
|
+
| `--confirm-owner-terminated` | `niceeval exp --teardown` | boolean | 确认记录的 owner 已终止。 |
|
|
177
|
+
| `--confirm-remote-quiesced` | `niceeval exp --teardown` | boolean | 确认远端共享状态已静止。 |
|
|
178
|
+
| `--json` | `niceeval debug` | boolean | 写出该命令的机器文档或事件流。 |
|
|
179
|
+
| `--all` | `niceeval session` | boolean | 包含已经完成的 Invocation 状态条目。 |
|
|
180
|
+
| `--json` | `niceeval session` | boolean | 写出该命令的机器文档或事件流。 |
|
|
181
|
+
| `--record` | `niceeval show`、`niceeval view` | string | 使用指定的 NiceEval Record root。 |
|
|
182
|
+
| `--run` | `niceeval show`、`niceeval view` | string[] | 选择一个已发布的精确 Run;可重复传入以选择多个 Run。 |
|
|
183
|
+
| `--experiment` | `niceeval show`、`niceeval view` | string[] | 按 Experiment selector 缩小当前项目的结果。 |
|
|
184
|
+
| `--report` | `niceeval show`、`niceeval view` | string | 使用标准 Report 或可信的 Report module 路径。 |
|
|
185
|
+
| `--theme` | `niceeval show`、`niceeval view` | string | 使用 basalt、chalk 或可信的 Theme module 路径。 |
|
|
186
|
+
| `--page` | `niceeval show`、`niceeval view` | string | 选择 show 的目标或 view 的初始路由。 |
|
|
187
|
+
| `--json` | `niceeval show` | boolean | 写出该命令的机器文档或事件流。 |
|
|
188
|
+
| `--source` / `--source=<value>` | `niceeval show` | true \| string | 显示一个 Attempt 的源快照;可选地只显示一个文件。 |
|
|
189
|
+
| `--execution` | `niceeval show` | boolean | 显示一个 Attempt 保留的执行证据。 |
|
|
190
|
+
| `--timing`(单独使用为 `summary`) / `--timing=summary\|full` | `niceeval show` | `summary` \| `full` | 显示摘要或完整的时序证据。 |
|
|
191
|
+
| `--grep` | `niceeval show` | string | 用 JavaScript 正则表达式过滤执行证据。 |
|
|
192
|
+
| `--diff` / `--diff=<value>` | `niceeval show` | true \| string | 显示选中 Attempt 的文件改动;可选地只显示一个内联路径。 |
|
|
193
|
+
| `--out` | `niceeval view` | string | 导出完整的静态 Report 站点。 |
|
|
194
|
+
| `--host`(单独使用为 `0.0.0.0`) / `--host=<value>` / `--host <value>` | `niceeval view` | string | 监听指定地址;裸写 `--host` 会监听 0.0.0.0。 |
|
|
195
|
+
| `--port` | `niceeval view` | string | 监听指定端口;默认选择可用端口。 |
|
|
196
|
+
| `--open` / `--no-open` | `niceeval view` | boolean | 在浏览器中打开实时 Report。 |
|
|
197
|
+
| `--help` | `niceeval show`、`niceeval view` | boolean | 打印该命令的帮助。 |
|
|
198
|
+
| `--record` | `niceeval clean`、`niceeval migrate`、`niceeval sandbox list`、`niceeval sandbox enter`、`niceeval sandbox history`、`niceeval sandbox diff`、`niceeval sandbox stop`、`niceeval sandbox prune` | string | 使用指定的 NiceEval Record root。 |
|
|
199
|
+
| `--yes` | `niceeval clean`、`niceeval migrate` | boolean | 确认计划中的 Record maintenance 操作。 |
|
|
200
|
+
| `--help` | `niceeval clean`、`niceeval migrate` | boolean | 打印该命令的帮助。 |
|
|
201
|
+
| `--help` | `niceeval init` | boolean | 打印该命令的帮助。 |
|
|
202
|
+
| `--json` | `niceeval docker profile list`、`niceeval docker profile doctor`、`niceeval docker cache inventory`、`niceeval docker cache gc` | boolean | 写出该命令的机器文档或事件流。 |
|
|
203
|
+
| `--smoke` | `niceeval docker profile doctor` | boolean | 运行 Docker profile 的探测诊断。 |
|
|
204
|
+
| `--domain` | `niceeval docker cache inventory`、`niceeval docker cache gc` | string | 选择一个由 NiceEval 管理的 Docker 缓存域。 |
|
|
205
|
+
| `--apply` | `niceeval docker cache gc` | string | 应用先前签发的 Docker 缓存回收计划。 |
|
|
206
|
+
| `--help` | `niceeval docker` | boolean | 打印该命令的帮助。 |
|
|
207
|
+
| `--all` | `niceeval sandbox stop` | boolean | 销毁全部留存 Sandbox。 |
|
|
208
|
+
| `--window` | `niceeval sandbox diff` | string | 选择一个已记录的改动窗口。 |
|
|
209
|
+
| `--path` | `niceeval sandbox diff` | string | 选择 Sandbox diff 中的一个路径。 |
|
|
210
|
+
| `--leave-running` | `niceeval sandbox enter` | boolean | 离开 shell 后继续保留 Sandbox。 |
|
|
211
|
+
| `--orphans` | `niceeval sandbox list` | boolean | 检查已终止运行遗留的未登记 Sandbox 实例。 |
|
|
212
|
+
| `--force` | `niceeval sandbox prune` | boolean | 同时清理未验证的孤儿候选项。 |
|
|
213
|
+
| `--help` | `niceeval sandbox` | boolean | 打印该命令的帮助。 |
|
|
214
|
+
| `--tag` | `niceeval list` | string | 只选择带有该 tag 的评估用例。 |
|
|
215
|
+
| `--help` | `niceeval list` | boolean | 打印该命令的帮助。 |
|
|
192
216
|
|
|
193
217
|
{/* GENERATED:END cli-flags */}
|
|
194
218
|
|
|
@@ -628,11 +628,11 @@ readonly user?: string;
|
|
|
628
628
|
```
|
|
629
629
|
|
|
630
630
|
覆盖本条命令的执行身份;省略 = Sandbox 默认身份(沿用环境自己声明的身份——Docker 镜像 `USER`、
|
|
631
|
-
Compose service `user:`、E2B template
|
|
631
|
+
Compose service `user:`、E2B template 默认用户,见
|
|
632
632
|
docs/feature/sandbox/library.md「执行身份」)。
|
|
633
633
|
|
|
634
634
|
语义跨 provider 一致,各 provider 映射到自己的原生机制(docker:`exec --user`;E2B:
|
|
635
|
-
`{ user }`;Vercel:只认 `"root"`,映射 `{ sudo: true }
|
|
635
|
+
`{ user }`;Vercel:只认 `"root"`,映射 `{ sudo: true }`,其它值报错)。
|
|
636
636
|
本就全程 root 的 provider 视作 no-op;完全无法换身份的 provider 可不支持(抛错)——但**省略与
|
|
637
637
|
显式值的语义保持一致**,不因 provider 而变。
|
|
638
638
|
|
|
@@ -54,6 +54,7 @@ export default defineReport({
|
|
|
54
54
|
id: "overview",
|
|
55
55
|
path: "/",
|
|
56
56
|
title: { en: "Overview", "zh-CN": "概览" },
|
|
57
|
+
presentation: "page",
|
|
57
58
|
render: () => <Overview />,
|
|
58
59
|
}],
|
|
59
60
|
});
|
|
@@ -96,20 +97,20 @@ const MetricCard = defineComponent<
|
|
|
96
97
|
|
|
97
98
|
## Page、参数和页面选择
|
|
98
99
|
|
|
99
|
-
普通 Page 的 `render` 可以直接接收固定 Sample,或先用 `load(sample, params, context)`
|
|
100
|
+
普通 Page 的 `render` 可以直接接收固定 Sample,或先用 `load(sample, params, context)` 关闭输入。普通业务 Page 的 `presentation` 是 `"page"`。参数 Page 还要声明 `navigation: false`、`presentation` 与 `params`:
|
|
100
101
|
|
|
101
102
|
- `encode(params)` 产生 canonical key;
|
|
102
103
|
- `decode(key)` 必须能把同一种 key 还原;
|
|
103
104
|
- `enumerate(sample)` 只为完整站点列出实例;
|
|
104
105
|
- `context.evidence(locator)` 只返回当前 Sample 内的关闭证据视图。
|
|
105
106
|
|
|
106
|
-
`
|
|
107
|
+
`presentation: "overlay"` 用于叠加在当前业务 Page 上的 Attempt、Source 和 Diff 详情。其它业务页面使用 `"page"`。`pages` 是 Report 唯一的页面集合,Host 不补建任何详情或 route。`niceeval show --page <route>` 只 decode、load 和 render 这个目标 Page。它不会调用 `enumerate()` 或执行其它 Page。`niceeval view` 与 `niceeval view --out` 才会枚举全部普通 Page 和参数实例,并在所有路径、链接、资源和预算通过校验后形成完整站点。
|
|
107
108
|
|
|
108
109
|
## JSON、网页和静态站
|
|
109
110
|
|
|
110
111
|
`show --json` 固定输出英语 JSON。内建 Report 输出 Host 拥有的具名领域文档;自定义 Report 输出一个 Page 的 route、标题、80-column rendered text、下载摘要和问题表。两种 v1 JSON 都在顶层以相同的 `projections` 对象携带该目标 Page 的闭合成本数据;它们不包含作者树、HTML、全站路由或站点 identity。
|
|
111
112
|
|
|
112
|
-
view
|
|
113
|
+
view 与静态导出使用同一份完整站点版本。两者只交付一个根 app shell,并通过 hash 打开已经关闭的 Page 或 overlay。它们都携带同一个 Host runtime;静态目录不会探测 view 的实时刷新端点。目录不需要网络、源 Record 或 NiceEval 安装,但必须通过 HTTP(S) 托管,且浏览器必须启用随包交付的 JavaScript。禁用时页面显示可操作的错误,不维护第二套阅读路径。
|
|
113
114
|
|
|
114
115
|
## 样式和资源边界
|
|
115
116
|
|
|
@@ -45,6 +45,12 @@ niceeval sandbox stop a3f9c2d1 # 销毁指定沙箱(id 可以只写唯一
|
|
|
45
45
|
niceeval sandbox stop --all # 全部销毁
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
这些管理命令不读取 `niceeval.config.ts`。即使配置文件暂时无法执行,你仍可以查看或销毁现场。命令会读取
|
|
49
|
+
`.env` 来准备 Provider 凭据;`.env` 不可读时先修复它,再重试。
|
|
50
|
+
|
|
51
|
+
`sandbox` 没有 `--json` 输出。`niceeval sandbox list --json` 会直接提示 `Unknown option '--json'`,不会继续
|
|
52
|
+
打印人读文本。机器输出参数只属于明确声明它的命令。
|
|
53
|
+
|
|
48
54
|
`stop` 是幂等的:Sandbox 已经不在了(手动删过、云端过期)不算错误,只会把记录移掉并说明。如果 provider 销毁失败,命令会保留记录并返回错误,方便稍后重试,不会把仍活着的资源从列表里藏掉。忘了清也有提醒——下次运行开始时,如果还有上次保留的 Sandbox,会打一行提示。
|
|
49
55
|
|
|
50
56
|
## 各 Provider 的差别
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "排查结果与报告问题"
|
|
3
3
|
sidebarTitle: "排查手册"
|
|
4
|
-
description: "
|
|
4
|
+
description: "根据可见错误、判定和 Sample 状态定位问题,区分被测失败、证据错误与评估用例误判。"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
先用明确 Run 读取问题,不要从目录名或时间猜测目标。
|
|
@@ -13,6 +13,33 @@ pnpm exec niceeval view --run <run-id> --no-open
|
|
|
13
13
|
|
|
14
14
|
这两条命令从同一范围形成 Sample,并执行同一份 Report。先确定选择是否正确,再检查页面中的度量和问题。
|
|
15
15
|
|
|
16
|
+
## Attempt 判定为 `failed`
|
|
17
|
+
|
|
18
|
+
`failed` 只说明至少一个影响 Verdict 的断言未满足。它不会自动说明被测结果违背任务,也不会指定要修 Agent 还是评估用例。
|
|
19
|
+
|
|
20
|
+
先从 Run 页面给出的 Attempt locator 下钻:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
pnpm exec niceeval show @<attempt-locator>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
然后分别核对三件事:
|
|
27
|
+
|
|
28
|
+
1. **任务允许什么。** 阅读评估输入、Fixture 和验收说明,确定必须满足的含义,以及是否真的要求固定表示形式。不要只用断言反推任务。
|
|
29
|
+
2. **实际发生了什么。** 阅读产物、回复和断言证据,先独立判断它们是否满足任务。报告没有暴露必要证据时,记录 NiceEval 的呈现缺口,不要扫描 `.niceeval/` 私有文件补结论。
|
|
30
|
+
3. **断言接受什么。** 阅读断言条件、`expected` / `received` 和断言源码,检查判据是否覆盖任务允许的正确结果。
|
|
31
|
+
|
|
32
|
+
| 比较结果 | 归因与下一步 |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| 产物违背任务 | 修正被测应用或 Agent。 |
|
|
35
|
+
| 产物满足任务,断言却拒绝了任务允许的结果 | 这是评估用例的 False Negative。修正过窄的判据,再重跑相同范围。 |
|
|
36
|
+
| 产物正确,断言证据却没有如实表示它 | 修正 Adapter 映射或证据呈现。 |
|
|
37
|
+
| 任务含糊或证据不足 | 先澄清任务或补足公开证据,不要强行归因。 |
|
|
38
|
+
|
|
39
|
+
结构化文本可能有多种有效序列化。如果任务要求的是解析后的数据,先解析或归一化,再断言结构和值。只有字面表示本身属于任务要求时,才使用精确文本匹配。
|
|
40
|
+
|
|
41
|
+
不要因为结果是红色就放宽断言。正确的修复会让判据与任务允许的结果保持一致。
|
|
42
|
+
|
|
16
43
|
## 找不到或无法打开结果
|
|
17
44
|
|
|
18
45
|
| 可见错误 | 含义 | 下一步 |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "让 Coding Agent 根据结果迭代"
|
|
3
3
|
sidebarTitle: "Coding Agent 反馈闭环"
|
|
4
|
-
description: "让 Coding Agent 读取 receipt 的 runIds
|
|
4
|
+
description: "让 Coding Agent 读取 receipt 的 runIds,查看结果,再区分被测失败、证据错误与评估用例误判。"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Coding Agent 可以用命令行完成一次清楚的反馈闭环:阅读安装版本的文档,运行 Experiment,读取最后的 receipt,用 receipt 的 `runIds` 查看结果,再修改程序或评估用例并重新运行。
|
|
@@ -57,7 +57,7 @@ pnpm exec niceeval view --run 01J9ZK3M6P4T7V9X2C5N8QW0RY --no-open
|
|
|
57
57
|
|
|
58
58
|
| 看到的状态 | 下一步 |
|
|
59
59
|
| --- | --- |
|
|
60
|
-
| `failed` |
|
|
60
|
+
| Attempt `failed` | 比较任务允许的结果、实际产物及证据和断言条件,再决定修被测对象、Adapter 还是评估用例。 |
|
|
61
61
|
| `errored` | 检查诊断、Adapter、Sandbox 或凭据。 |
|
|
62
62
|
| `not-recorded` | 检查该 expected slot 为什么没有 Member。 |
|
|
63
63
|
| `core-invalid` | 阅读具名 Core issue,不要把它当成未采集。 |
|
|
@@ -65,6 +65,8 @@ pnpm exec niceeval view --run 01J9ZK3M6P4T7V9X2C5N8QW0RY --no-open
|
|
|
65
65
|
| `migration-required` | 运行 `niceeval migrate`。 |
|
|
66
66
|
| `unsupported` 或 `failed` | 只处理依赖该分析输入的查看内容,并阅读具名问题。 |
|
|
67
67
|
|
|
68
|
+
处理 Attempt `failed` 时,不要为了通过一个过窄的 Match 而修改本来符合任务的产物。产物满足任务、断言却拒绝任务允许的结果时,这是评估用例的 False Negative。完整归因流程见[排查手册](/zh/troubleshooting/debugging#attempt-判定为-failed)。
|
|
69
|
+
|
|
68
70
|
## 修改后再次运行
|
|
69
71
|
|
|
70
72
|
让 Agent 每次只处理一个可验证假设:修改程序或评估用例,运行相同范围,再读取新的 receipt 和 Run。需要确认所有 slot 真实执行时使用:
|
|
@@ -67,7 +67,7 @@ import { Picker, Schedule } from '/snippets/widgets.jsx';
|
|
|
67
67
|
| 实验并发上限 | 实验文件的 `maxConcurrency` | 这一个实验同时跑几条 | 各算各的,两个终端的值相加 |
|
|
68
68
|
| 共享状态租约 | 实验文件的 `sharedState.key` | 同一 checkpoint 的完整恢复、执行与回存区间 | 同 key 的区间串行 |
|
|
69
69
|
|
|
70
|
-
全局值的解析顺序是 `--max-concurrency` → 配置里的 `maxConcurrency` → 当前 Sandbox Provider 的推荐默认值(`docker` 10、`e2b` 20、`vercel` 1
|
|
70
|
+
全局值的解析顺序是 `--max-concurrency` → 配置里的 `maxConcurrency` → 当前 Sandbox Provider 的推荐默认值(`docker` 10、`e2b` 20、`vercel` 1)。推荐值反映的是 Provider 侧的约束。你自己 Agent 接口的限速用 `--max-concurrency` 压。
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
73
|
npx niceeval exp compare --max-concurrency 19
|
|
@@ -217,7 +217,7 @@ niceeval exp compare --record .niceeval/record --max-concurrency 2
|
|
|
217
217
|
## 边界
|
|
218
218
|
|
|
219
219
|
- 并发上限管的是资源占用,不是花钱。封顶花费用 `--budget`。
|
|
220
|
-
-
|
|
220
|
+
- 声明独占串行的 Provider 有一道 Provider 级串行限制,`--max-concurrency` 不解除它——那是正确性约束,不是调度参数。
|
|
221
221
|
- 按「同时在跑的 run 数」计费或限额的 Agent 服务,贴着限额值配全局上限压不稳:退避让出的位立刻被新 Attempt 顶上,服务侧并发恒在上限。单个终端可以用实验级 `maxConcurrency` 留余量。多开时各边的值会相加,账户级配额仍要分别调低或交给外部编排。
|
|
222
222
|
- 声明 `sandboxReuse: true` 的实验,每个 Sandbox 内部串行、Sandbox 之间并行,见[复用 Sandbox](/zh/tutorials/sandbox-reuse)。
|
|
223
223
|
- 评估组内部稳定串行,不同组仍可并行,见[评估组](/zh/tutorials/eval-groups)。
|